@fullcalendar/resource-daygrid
Advanced tools
Comparing version 6.0.0-beta.3 to 6.0.0-beta.4
/*! | ||
FullCalendar Resource Day Grid Plugin v6.0.0-beta.3 | ||
FullCalendar Resource Day Grid Plugin v6.0.0-beta.4 | ||
Docs & License: https://fullcalendar.io/premium | ||
@@ -74,3 +74,3 @@ (c) 2022 Adam Shaw | ||
name: '@fullcalendar/resource-daygrid', | ||
premiumReleaseDate: '2022-12-02', | ||
premiumReleaseDate: '2022-12-07', | ||
deps: [ | ||
@@ -77,0 +77,0 @@ premiumCommonPlugin__default["default"], |
/*! | ||
FullCalendar Resource Day Grid Plugin v6.0.0-beta.3 | ||
FullCalendar Resource Day Grid Plugin v6.0.0-beta.4 | ||
Docs & License: https://fullcalendar.io/premium | ||
(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-02",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-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); |
@@ -13,3 +13,3 @@ import { createPlugin } from '@fullcalendar/core/index.js'; | ||
name: '@fullcalendar/resource-daygrid', | ||
premiumReleaseDate: '2022-12-02', | ||
premiumReleaseDate: '2022-12-07', | ||
deps: [ | ||
@@ -16,0 +16,0 @@ premiumCommonPlugin, |
{ | ||
"name": "@fullcalendar/resource-daygrid", | ||
"version": "6.0.0-beta.3", | ||
"version": "6.0.0-beta.4", | ||
"keywords": [ | ||
@@ -28,8 +28,8 @@ "calendar", | ||
"dependencies": { | ||
"@fullcalendar/daygrid": "6.0.0-beta.3", | ||
"@fullcalendar/premium-common": "6.0.0-beta.3" | ||
"@fullcalendar/daygrid": "6.0.0-beta.4", | ||
"@fullcalendar/premium-common": "6.0.0-beta.4" | ||
}, | ||
"peerDependencies": { | ||
"@fullcalendar/core": "6.0.0-beta.3", | ||
"@fullcalendar/resource": "6.0.0-beta.3" | ||
"@fullcalendar/core": "6.0.0-beta.4", | ||
"@fullcalendar/resource": "6.0.0-beta.4" | ||
}, | ||
@@ -41,3 +41,3 @@ "type": "module", | ||
"unpkg": "./index.global.min.js", | ||
"jsdelvr": "./index.global.min.js", | ||
"jsdelivr": "./index.global.min.js", | ||
"exports": { | ||
@@ -44,0 +44,0 @@ "./package.json": "./package.json", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29238
+ Added@fullcalendar/core@6.0.0-beta.4(transitive)
+ Added@fullcalendar/daygrid@6.0.0-beta.4(transitive)
+ Added@fullcalendar/premium-common@6.0.0-beta.4(transitive)
+ Added@fullcalendar/resource@6.0.0-beta.4(transitive)
- Removed@fullcalendar/core@6.0.0-beta.3(transitive)
- Removed@fullcalendar/daygrid@6.0.0-beta.3(transitive)
- Removed@fullcalendar/premium-common@6.0.0-beta.3(transitive)
- Removed@fullcalendar/resource@6.0.0-beta.3(transitive)