Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fullcalendar/resource-daygrid

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fullcalendar/resource-daygrid - npm Package Compare versions

Comparing version 6.0.0-beta.4 to 6.0.0

6

index.global.js
/*!
FullCalendar Resource Day Grid Plugin v6.0.0-beta.4
Docs & License: https://fullcalendar.io/premium
FullCalendar Resource Day Grid Plugin v6.0.0
Docs & License: https://fullcalendar.io/docs/resource-daygrid-view
(c) 2022 Adam Shaw

@@ -74,3 +74,3 @@ */

name: '@fullcalendar/resource-daygrid',
premiumReleaseDate: '2022-12-07',
premiumReleaseDate: '2022-12-14',
deps: [

@@ -77,0 +77,0 @@ premiumCommonPlugin__default["default"],

/*!
FullCalendar Resource Day Grid Plugin v6.0.0-beta.4
Docs & License: https://fullcalendar.io/premium
FullCalendar Resource Day Grid Plugin v6.0.0
Docs & License: https://fullcalendar.io/docs/resource-daygrid-view
(c) 2022 Adam Shaw
*/
FullCalendar.ResourceDayGrid=function(e,t,r,a,s,l,o,i,n){"use strict";function d(e){return e&&e.__esModule?e:{default:e}}var u=d(a),c=d(s),h=d(l);class y extends n.VResourceJoiner{transformSeg(e,t,r){return t.computeColRanges(e.firstCol,e.lastCol,r).map(t=>Object.assign(Object.assign(Object.assign({},e),t),{isStart:e.isStart&&t.isStart,isEnd:e.isEnd&&t.isEnd}))}}class R extends t.DateComponent{constructor(){super(...arguments),this.splitter=new n.VResourceSplitter,this.slicers={},this.joiner=new y,this.tableRef=o.createRef(),this.isHitComboAllowed=(e,t)=>1===this.props.resourceDayTableModel.dayTableModel.colCnt||e.dateSpan.resourceId===t.dateSpan.resourceId}render(){let{props:e,context:r}=this,{resourceDayTableModel:a,nextDayThreshold:s,dateProfile:l}=e,n=this.splitter.splitProps(e);this.slicers=t.mapHash(n,(e,t)=>this.slicers[t]||new i.DayTableSlicer);let d=t.mapHash(this.slicers,(e,t)=>e.sliceProps(n[t],l,s,r,a.dayTableModel));return o.createElement(i.Table,Object.assign({forPrint:e.forPrint,ref:this.tableRef},this.joiner.joinProps(d,a),{cells:a.cells,dateProfile:l,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,isHitComboAllowed:this.isHitComboAllowed}))}}class b extends i.TableView{constructor(){super(...arguments),this.flattenResources=t.memoize(n.flattenResources),this.buildResourceDayTableModel=t.memoize(f),this.headerRef=o.createRef(),this.tableRef=o.createRef()}render(){let{props:e,context:t}=this,{options:r}=t,a=r.resourceOrder||n.DEFAULT_RESOURCE_ORDER,s=this.flattenResources(e.resourceStore,a),l=this.buildResourceDayTableModel(e.dateProfile,t.dateProfileGenerator,s,r.datesAboveResources,t),i=r.dayHeaders&&o.createElement(n.ResourceDayHeader,{ref:this.headerRef,resources:s,dateProfile:e.dateProfile,dates:l.dayTableModel.headerDates,datesRepDistinctDays:!0}),d=t=>o.createElement(R,{ref:this.tableRef,dateProfile:e.dateProfile,resourceDayTableModel:l,businessHours:e.businessHours,eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,nextDayThreshold:r.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,dayMaxEvents:r.dayMaxEvents,dayMaxEventRows:r.dayMaxEventRows,showWeekNumbers:r.weekNumbers,expandRows:!e.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:e.forPrint});return r.dayMinWidth?this.renderHScrollLayout(i,d,l.colCnt,r.dayMinWidth):this.renderSimpleLayout(i,d)}}function f(e,t,r,a,s){let l=i.buildDayTableModel(e,t);return a?new n.DayResourceTableModel(l,r,s):new n.ResourceDayTableModel(l,r,s)}var p=r.createPlugin({name:"@fullcalendar/resource-daygrid",premiumReleaseDate:"2022-12-07",deps:[u.default,c.default,h.default],initialView:"resourceDayGridDay",views:{resourceDayGrid:{type:"dayGrid",component:b,needsResourceData:!0},resourceDayGridDay:{type:"resourceDayGrid",duration:{days:1}},resourceDayGridWeek:{type:"resourceDayGrid",duration:{weeks:1}},resourceDayGridMonth:{type:"resourceDayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),D={__proto__:null,ResourceDayTableView:b,ResourceDayTable:R};return t.globalPlugins.push(p),e.Internal=D,e.default=p,Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar.Internal,FullCalendar,FullCalendar.PremiumCommon,FullCalendar.Resource,FullCalendar.DayGrid,FullCalendar.Preact,FullCalendar.DayGrid.Internal,FullCalendar.Resource.Internal);
FullCalendar.ResourceDayGrid=function(e,t,r,a,s,l,o,i,n){"use strict";function d(e){return e&&e.__esModule?e:{default:e}}var u=d(a),c=d(s),h=d(l);class y extends n.VResourceJoiner{transformSeg(e,t,r){return t.computeColRanges(e.firstCol,e.lastCol,r).map(t=>Object.assign(Object.assign(Object.assign({},e),t),{isStart:e.isStart&&t.isStart,isEnd:e.isEnd&&t.isEnd}))}}class R extends t.DateComponent{constructor(){super(...arguments),this.splitter=new n.VResourceSplitter,this.slicers={},this.joiner=new y,this.tableRef=o.createRef(),this.isHitComboAllowed=(e,t)=>1===this.props.resourceDayTableModel.dayTableModel.colCnt||e.dateSpan.resourceId===t.dateSpan.resourceId}render(){let{props:e,context:r}=this,{resourceDayTableModel:a,nextDayThreshold:s,dateProfile:l}=e,n=this.splitter.splitProps(e);this.slicers=t.mapHash(n,(e,t)=>this.slicers[t]||new i.DayTableSlicer);let d=t.mapHash(this.slicers,(e,t)=>e.sliceProps(n[t],l,s,r,a.dayTableModel));return o.createElement(i.Table,Object.assign({forPrint:e.forPrint,ref:this.tableRef},this.joiner.joinProps(d,a),{cells:a.cells,dateProfile:l,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,isHitComboAllowed:this.isHitComboAllowed}))}}class b extends i.TableView{constructor(){super(...arguments),this.flattenResources=t.memoize(n.flattenResources),this.buildResourceDayTableModel=t.memoize(f),this.headerRef=o.createRef(),this.tableRef=o.createRef()}render(){let{props:e,context:t}=this,{options:r}=t,a=r.resourceOrder||n.DEFAULT_RESOURCE_ORDER,s=this.flattenResources(e.resourceStore,a),l=this.buildResourceDayTableModel(e.dateProfile,t.dateProfileGenerator,s,r.datesAboveResources,t),i=r.dayHeaders&&o.createElement(n.ResourceDayHeader,{ref:this.headerRef,resources:s,dateProfile:e.dateProfile,dates:l.dayTableModel.headerDates,datesRepDistinctDays:!0}),d=t=>o.createElement(R,{ref:this.tableRef,dateProfile:e.dateProfile,resourceDayTableModel:l,businessHours:e.businessHours,eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,nextDayThreshold:r.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,dayMaxEvents:r.dayMaxEvents,dayMaxEventRows:r.dayMaxEventRows,showWeekNumbers:r.weekNumbers,expandRows:!e.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:e.forPrint});return r.dayMinWidth?this.renderHScrollLayout(i,d,l.colCnt,r.dayMinWidth):this.renderSimpleLayout(i,d)}}function f(e,t,r,a,s){let l=i.buildDayTableModel(e,t);return a?new n.DayResourceTableModel(l,r,s):new n.ResourceDayTableModel(l,r,s)}var p=r.createPlugin({name:"@fullcalendar/resource-daygrid",premiumReleaseDate:"2022-12-14",deps:[u.default,c.default,h.default],initialView:"resourceDayGridDay",views:{resourceDayGrid:{type:"dayGrid",component:b,needsResourceData:!0},resourceDayGridDay:{type:"resourceDayGrid",duration:{days:1}},resourceDayGridWeek:{type:"resourceDayGrid",duration:{weeks:1}},resourceDayGridMonth:{type:"resourceDayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),D={__proto__:null,ResourceDayTableView:b,ResourceDayTable:R};return t.globalPlugins.push(p),e.Internal=D,e.default=p,Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar.Internal,FullCalendar,FullCalendar.PremiumCommon,FullCalendar.Resource,FullCalendar.DayGrid,FullCalendar.Preact,FullCalendar.DayGrid.Internal,FullCalendar.Resource.Internal);

@@ -13,3 +13,3 @@ import { createPlugin } from '@fullcalendar/core/index.js';

name: '@fullcalendar/resource-daygrid',
premiumReleaseDate: '2022-12-07',
premiumReleaseDate: '2022-12-14',
deps: [

@@ -16,0 +16,0 @@ premiumCommonPlugin,

For complete licensing information, visit:
https://fullcalendar.io/scheduler/license
https://fullcalendar.io/license

@@ -10,3 +10,3 @@ FullCalendar Scheduler is tri-licensed, meaning you must choose

(a paid license, intended for commercial use)
https://fullcalendar.io/scheduler/license-details
https://fullcalendar.io/commercial-license

@@ -13,0 +13,0 @@ - Creative Commons Non-Commercial No-Derivatives

{
"name": "@fullcalendar/resource-daygrid",
"version": "6.0.0-beta.4",
"version": "6.0.0",
"title": "FullCalendar Resource Day Grid Plugin",
"description": "Display events on day/resource columns",
"keywords": [
"calendar",
"event",
"full-sized"
"full-sized",
"fullcalendar",
"scheduler",
"resource"
],
"homepage": "https://fullcalendar.io/premium",
"docs": "https://fullcalendar.io/docs/resource-daygrid-view",
"homepage": "https://fullcalendar.io/docs/resource-daygrid-view",
"dependencies": {
"@fullcalendar/daygrid": "~6.0.0",
"@fullcalendar/premium-common": "~6.0.0"
},
"peerDependencies": {
"@fullcalendar/core": "~6.0.0",
"@fullcalendar/resource": "~6.0.0"
},
"type": "module",
"bugs": "https://fullcalendar.io/reporting-bugs",
"repository": {
"type": "git",
"url": "https://github.com/fullcalendar/fullcalendar-scheduler.git",
"homepage": "https://github.com/fullcalendar/fullcalendar-scheduler",
"directory": "packages/resource-daygrid"
"url": "https://github.com/fullcalendar/fullcalendar-workspace.git",
"directory": "premium/packages/resource-daygrid"
},

@@ -25,13 +37,2 @@ "license": "SEE LICENSE IN LICENSE.md",

"copyright": "2022 Adam Shaw",
"title": "FullCalendar Resource Day Grid Plugin",
"description": "Displays events in individual columns for days and resources",
"dependencies": {
"@fullcalendar/daygrid": "6.0.0-beta.4",
"@fullcalendar/premium-common": "6.0.0-beta.4"
},
"peerDependencies": {
"@fullcalendar/core": "6.0.0-beta.4",
"@fullcalendar/resource": "6.0.0-beta.4"
},
"type": "module",
"main": "./index.cjs",

@@ -38,0 +39,0 @@ "module": "./index.js",

# FullCalendar Resource Day Grid Plugin
Displays events in individual columns for days and resources
Display events on day/resource columns
[View the docs »](https://fullcalendar.io/docs/resource-daygrid-view)
## Installation
This package was created from the [FullCalendar monorepo »](https://github.com/fullcalendar/fullcalendar-scheduler)
Install the necessary packages. The **resource plugin is a required [peer dependency](https://nodejs.org/es/blog/npm/peer-dependencies/)**:
```sh
npm install @fullcalendar/core @fullcalendar/resource @fullcalendar/resource-daygrid
```
## Usage
Instantiate a Calendar with the necessary plugin:
```js
import { Calendar } from '@fullcalendar/core'
import resourceDayGridPlugin from '@fullcalendar/resource-daygrid'
const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
plugins: [resourceDayGridPlugin],
initialView: 'resourceDayGridDay',
resources: [
{ title: 'Resource A' },
{ title: 'Resource B' }
]
})
calendar.render()
```

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc