@fullcalendar/resource-timegrid 7.0.0-beta.3 → 7.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +2 -2
- package/index.cjs +1 -1
- package/index.global.js +4 -4
- package/index.global.min.js +2 -2
- package/index.js +1 -1
- package/internal.cjs +2 -2
- package/internal.js +2 -2
- package/package.json +7 -7
package/LICENSE.md
CHANGED
|
@@ -13,6 +13,6 @@ one of three licenses to use. Here is a summary of those licenses:
|
|
|
13
13
|
(intended for trial and non-commercial use)
|
|
14
14
|
https://creativecommons.org/licenses/by-nc-nd/4.0/
|
|
15
15
|
|
|
16
|
-
-
|
|
16
|
+
- AGPLv3 License
|
|
17
17
|
(intended for open-source projects)
|
|
18
|
-
|
|
18
|
+
https://www.gnu.org/licenses/agpl-3.0.en.html
|
package/index.cjs
CHANGED
|
@@ -22,7 +22,7 @@ var timeGridPlugin__default = /*#__PURE__*/_interopDefaultLegacy(timeGridPlugin)
|
|
|
22
22
|
|
|
23
23
|
var index = index_cjs.createPlugin({
|
|
24
24
|
name: '@fullcalendar/resource-timegrid',
|
|
25
|
-
premiumReleaseDate: '
|
|
25
|
+
premiumReleaseDate: '2025-02-21',
|
|
26
26
|
deps: [
|
|
27
27
|
premiumCommonPlugin__default["default"],
|
|
28
28
|
resourcePlugin__default["default"],
|
package/index.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
FullCalendar Resource Time Grid Plugin v7.0.0-
|
|
2
|
+
FullCalendar Resource Time Grid Plugin v7.0.0-rc.0
|
|
3
3
|
Docs & License: https://fullcalendar.io/docs/vertical-resource-view
|
|
4
4
|
(c) 2024 Adam Shaw
|
|
5
5
|
*/
|
|
@@ -109,7 +109,7 @@ FullCalendar.ResourceTimeGrid = (function (exports, core, premiumCommonPlugin, r
|
|
|
109
109
|
let eventDragByCol = this.splitEventDrag(timedResourceJoinedProps.eventDrag, colCnt);
|
|
110
110
|
let eventResizeByCol = this.splitEventResize(timedResourceJoinedProps.eventResize, colCnt);
|
|
111
111
|
const headerTiers = this.buildResourceRowConfigs(resources, options.datesAboveResources, resourceDayTableModel.dayTableModel.headerDates, datesRepDistinctDays, props.dateProfile, todayRange, dayHeaderFormat, context);
|
|
112
|
-
return (preact.createElement(internal$5.TimeGridLayout, { dateProfile: dateProfile, nowDate: nowDate, todayRange: todayRange, cells: resourceDayTableModel.cells[0], forPrint: props.forPrint, isHitComboAllowed: this.isHitComboAllowed, className: 'fc-resource-timegrid-
|
|
112
|
+
return (preact.createElement(internal$5.TimeGridLayout, { labelId: props.labelId, labelStr: props.labelStr, dateProfile: dateProfile, nowDate: nowDate, todayRange: todayRange, cells: resourceDayTableModel.cells[0], forPrint: props.forPrint, isHitComboAllowed: this.isHitComboAllowed, className: 'fc-resource-timegrid fc-timegrid',
|
|
113
113
|
// header content
|
|
114
114
|
headerTiers: headerTiers,
|
|
115
115
|
// all-day content
|
|
@@ -117,7 +117,7 @@ FullCalendar.ResourceTimeGrid = (function (exports, core, premiumCommonPlugin, r
|
|
|
117
117
|
// timed content
|
|
118
118
|
fgEventSegsByCol: fgEventSegsByCol, bgEventSegsByCol: bgEventSegsByCol, businessHourSegsByCol: businessHourSegsByCol, nowIndicatorSegsByCol: nowIndicatorSegsByCol, dateSelectionSegsByCol: dateSelectionSegsByCol, eventDragByCol: eventDragByCol, eventResizeByCol: eventResizeByCol,
|
|
119
119
|
// universal content
|
|
120
|
-
eventSelection: allDayResourceJoinedProps.eventSelection }));
|
|
120
|
+
eventSelection: allDayResourceJoinedProps.eventSelection || splitProps.timed.eventSelection }));
|
|
121
121
|
}));
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -136,7 +136,7 @@ FullCalendar.ResourceTimeGrid = (function (exports, core, premiumCommonPlugin, r
|
|
|
136
136
|
|
|
137
137
|
var plugin = core.createPlugin({
|
|
138
138
|
name: '@fullcalendar/resource-timegrid',
|
|
139
|
-
premiumReleaseDate: '
|
|
139
|
+
premiumReleaseDate: '2025-02-21',
|
|
140
140
|
deps: [
|
|
141
141
|
premiumCommonPlugin__default["default"],
|
|
142
142
|
resourcePlugin__default["default"],
|
package/index.global.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
FullCalendar Resource Time Grid Plugin v7.0.0-
|
|
2
|
+
FullCalendar Resource Time Grid Plugin v7.0.0-rc.0
|
|
3
3
|
Docs & License: https://fullcalendar.io/docs/vertical-resource-view
|
|
4
4
|
(c) 2024 Adam Shaw
|
|
5
5
|
*/
|
|
6
|
-
FullCalendar.ResourceTimeGrid=function(e,t,s,i,r,
|
|
6
|
+
FullCalendar.ResourceTimeGrid=function(e,t,s,i,l,r,o,a,n,d,u){"use strict";function c(e){return e&&e.__esModule?e:{default:e}}var m=c(s),g=c(i),S=c(l);class y extends d.VResourceJoiner{transformSeg(e,t,s){return[Object.assign(Object.assign({},e),{col:t.computeCol(e.col,s)})]}}class h extends r.DateComponent{constructor(){super(...arguments),this.flattenResources=r.memoize(d.flattenResources),this.buildResourceTimeColsModel=r.memoize(R),this.buildResourceRowConfigs=r.memoize(n.buildResourceRowConfigs),this.createDayHeaderFormatter=r.memoize(a.createDayHeaderFormatter),this.allDaySplitter=new u.AllDaySplitter,this.allDayResourceSplitter=new d.VResourceSplitter,this.allDayResourceSlicers={},this.allDayResourceJoiner=new n.ResourceDayTableJoiner,this.buildDayRanges=r.memoize(u.buildDayRanges),this.timedResourceSplitter=new d.VResourceSplitter,this.timedResourceSlicers={},this.timedResourceJoiner=new y,this.splitFgEventSegs=r.memoize(u.organizeSegsByCol),this.splitBgEventSegs=r.memoize(u.organizeSegsByCol),this.splitBusinessHourSegs=r.memoize(u.organizeSegsByCol),this.splitNowIndicatorSegs=r.memoize(u.organizeSegsByCol),this.splitDateSelectionSegs=r.memoize(u.organizeSegsByCol),this.splitEventDrag=r.memoize(u.splitInteractionByCol),this.splitEventResize=r.memoize(u.splitInteractionByCol),this.isHitComboAllowed=(e,t)=>1===this.dayRanges.length||e.dateSpan.resourceId===t.dateSpan.resourceId}render(){let{props:e,context:t}=this,{options:s,dateEnv:i}=t,{dateProfile:l}=e,n=s.resourceOrder||d.DEFAULT_RESOURCE_ORDER,c=this.flattenResources(e.resourceStore,n),m=this.buildResourceTimeColsModel(l,t.dateProfileGenerator,c,s.datesAboveResources,t),g=this.allDaySplitter.splitProps(e),S=this.allDayResourceSplitter.splitProps({businessHours:g.allDay.businessHours,dateSelection:g.allDay.dateSelection,eventStore:g.allDay.eventStore,eventUiBases:g.allDay.eventUiBases,eventSelection:g.allDay.eventSelection,eventDrag:g.allDay.eventDrag,eventResize:g.allDay.eventResize,resourceDayTableModel:m});this.allDayResourceSlicers=r.mapHash(S,(e,t)=>this.allDayResourceSlicers[t]||new a.DayTableSlicer);let y=r.mapHash(this.allDayResourceSlicers,(e,i)=>e.sliceProps(S[i],l,s.nextDayThreshold,t,m.dayTableModel)),h=this.allDayResourceJoiner.joinProps(y,m),R=this.dayRanges=this.buildDayRanges(m.dayTableModel,l,i),p=this.timedResourceSplitter.splitProps({businessHours:g.timed.businessHours,dateSelection:g.timed.dateSelection,eventStore:g.timed.eventStore,eventUiBases:g.timed.eventUiBases,eventSelection:g.timed.eventSelection,eventDrag:g.timed.eventDrag,eventResize:g.timed.eventResize,resourceDayTableModel:m});this.timedResourceSlicers=r.mapHash(p,(e,t)=>this.timedResourceSlicers[t]||new u.DayTimeColsSlicer);let D=r.mapHash(this.timedResourceSlicers,(e,s)=>e.sliceProps(p[s],l,null,t,R)),v=this.timedResourceJoiner.joinProps(D,m),b=1===m.dayTableModel.rowCnt,C=this.createDayHeaderFormatter(t.options.dayHeaderFormat,b,m.colCnt);return o.createElement(r.NowTimer,{unit:s.nowIndicator?"minute":"day"},(i,r)=>{let a=m.colCnt,n=this.splitFgEventSegs(v.fgEventSegs,a),d=this.splitBgEventSegs(v.bgEventSegs,a),S=this.splitBusinessHourSegs(v.businessHourSegs,a),y=this.splitNowIndicatorSegs((()=>{let e=s.nowIndicator?this.timedResourceSlicers[""].sliceNowDate(i,this.props.dateProfile,this.context.options.nextDayThreshold,this.context,this.dayRanges):[];return this.timedResourceJoiner.expandSegs(m,e)})(),a),R=this.splitDateSelectionSegs(v.dateSelectionSegs,a),p=this.splitEventDrag(v.eventDrag,a),D=this.splitEventResize(v.eventResize,a);const T=this.buildResourceRowConfigs(c,s.datesAboveResources,m.dayTableModel.headerDates,b,e.dateProfile,r,C,t);return o.createElement(u.TimeGridLayout,{labelId:e.labelId,labelStr:e.labelStr,dateProfile:l,nowDate:i,todayRange:r,cells:m.cells[0],forPrint:e.forPrint,isHitComboAllowed:this.isHitComboAllowed,className:"fc-resource-timegrid fc-timegrid",headerTiers:T,fgEventSegs:h.fgEventSegs,bgEventSegs:h.bgEventSegs,businessHourSegs:h.businessHourSegs,dateSelectionSegs:h.dateSelectionSegs,eventDrag:h.eventDrag,eventResize:h.eventResize,fgEventSegsByCol:n,bgEventSegsByCol:d,businessHourSegsByCol:S,nowIndicatorSegsByCol:y,dateSelectionSegsByCol:R,eventDragByCol:p,eventResizeByCol:D,eventSelection:h.eventSelection||g.timed.eventSelection})})}}function R(e,t,s,i,l){let r=u.buildTimeColsModel(e,t);return s.length?i?new d.DayResourceTableModel(r,s,l):new d.ResourceDayTableModel(r,s,l):new d.ResourcelessDayTableModel(r)}var p=t.createPlugin({name:"@fullcalendar/resource-timegrid",premiumReleaseDate:"2025-02-21",deps:[m.default,g.default,S.default],initialView:"resourceTimeGridDay",views:{resourceTimeGrid:{type:"timeGrid",component:h,needsResourceData:!0},resourceTimeGridDay:{type:"resourceTimeGrid",duration:{days:1}},resourceTimeGridWeek:{type:"resourceTimeGrid",duration:{weeks:1}}}}),D={__proto__:null,ResourceTimeGridView:h};return t.globalPlugins.push(p),e.Internal=D,e.default=p,Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar,FullCalendar.PremiumCommon,FullCalendar.Resource,FullCalendar.TimeGrid,FullCalendar.Internal,FullCalendar.Preact,FullCalendar.DayGrid.Internal,FullCalendar.ResourceDayGrid.Internal,FullCalendar.Resource.Internal,FullCalendar.TimeGrid.Internal);
|
package/index.js
CHANGED
package/internal.cjs
CHANGED
|
@@ -106,7 +106,7 @@ class ResourceTimeGridView extends internal_cjs$1.DateComponent {
|
|
|
106
106
|
let eventDragByCol = this.splitEventDrag(timedResourceJoinedProps.eventDrag, colCnt);
|
|
107
107
|
let eventResizeByCol = this.splitEventResize(timedResourceJoinedProps.eventResize, colCnt);
|
|
108
108
|
const headerTiers = this.buildResourceRowConfigs(resources, options.datesAboveResources, resourceDayTableModel.dayTableModel.headerDates, datesRepDistinctDays, props.dateProfile, todayRange, dayHeaderFormat, context);
|
|
109
|
-
return (preact_cjs.createElement(internal_cjs$4.TimeGridLayout, { dateProfile: dateProfile, nowDate: nowDate, todayRange: todayRange, cells: resourceDayTableModel.cells[0], forPrint: props.forPrint, isHitComboAllowed: this.isHitComboAllowed, className: 'fc-resource-timegrid-
|
|
109
|
+
return (preact_cjs.createElement(internal_cjs$4.TimeGridLayout, { labelId: props.labelId, labelStr: props.labelStr, dateProfile: dateProfile, nowDate: nowDate, todayRange: todayRange, cells: resourceDayTableModel.cells[0], forPrint: props.forPrint, isHitComboAllowed: this.isHitComboAllowed, className: 'fc-resource-timegrid fc-timegrid',
|
|
110
110
|
// header content
|
|
111
111
|
headerTiers: headerTiers,
|
|
112
112
|
// all-day content
|
|
@@ -114,7 +114,7 @@ class ResourceTimeGridView extends internal_cjs$1.DateComponent {
|
|
|
114
114
|
// timed content
|
|
115
115
|
fgEventSegsByCol: fgEventSegsByCol, bgEventSegsByCol: bgEventSegsByCol, businessHourSegsByCol: businessHourSegsByCol, nowIndicatorSegsByCol: nowIndicatorSegsByCol, dateSelectionSegsByCol: dateSelectionSegsByCol, eventDragByCol: eventDragByCol, eventResizeByCol: eventResizeByCol,
|
|
116
116
|
// universal content
|
|
117
|
-
eventSelection: allDayResourceJoinedProps.eventSelection }));
|
|
117
|
+
eventSelection: allDayResourceJoinedProps.eventSelection || splitProps.timed.eventSelection }));
|
|
118
118
|
}));
|
|
119
119
|
}
|
|
120
120
|
}
|
package/internal.js
CHANGED
|
@@ -102,7 +102,7 @@ class ResourceTimeGridView extends DateComponent {
|
|
|
102
102
|
let eventDragByCol = this.splitEventDrag(timedResourceJoinedProps.eventDrag, colCnt);
|
|
103
103
|
let eventResizeByCol = this.splitEventResize(timedResourceJoinedProps.eventResize, colCnt);
|
|
104
104
|
const headerTiers = this.buildResourceRowConfigs(resources, options.datesAboveResources, resourceDayTableModel.dayTableModel.headerDates, datesRepDistinctDays, props.dateProfile, todayRange, dayHeaderFormat, context);
|
|
105
|
-
return (createElement(TimeGridLayout, { dateProfile: dateProfile, nowDate: nowDate, todayRange: todayRange, cells: resourceDayTableModel.cells[0], forPrint: props.forPrint, isHitComboAllowed: this.isHitComboAllowed, className: 'fc-resource-timegrid-
|
|
105
|
+
return (createElement(TimeGridLayout, { labelId: props.labelId, labelStr: props.labelStr, dateProfile: dateProfile, nowDate: nowDate, todayRange: todayRange, cells: resourceDayTableModel.cells[0], forPrint: props.forPrint, isHitComboAllowed: this.isHitComboAllowed, className: 'fc-resource-timegrid fc-timegrid',
|
|
106
106
|
// header content
|
|
107
107
|
headerTiers: headerTiers,
|
|
108
108
|
// all-day content
|
|
@@ -110,7 +110,7 @@ class ResourceTimeGridView extends DateComponent {
|
|
|
110
110
|
// timed content
|
|
111
111
|
fgEventSegsByCol: fgEventSegsByCol, bgEventSegsByCol: bgEventSegsByCol, businessHourSegsByCol: businessHourSegsByCol, nowIndicatorSegsByCol: nowIndicatorSegsByCol, dateSelectionSegsByCol: dateSelectionSegsByCol, eventDragByCol: eventDragByCol, eventResizeByCol: eventResizeByCol,
|
|
112
112
|
// universal content
|
|
113
|
-
eventSelection: allDayResourceJoinedProps.eventSelection }));
|
|
113
|
+
eventSelection: allDayResourceJoinedProps.eventSelection || splitProps.timed.eventSelection }));
|
|
114
114
|
}));
|
|
115
115
|
}
|
|
116
116
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullcalendar/resource-timegrid",
|
|
3
|
-
"version": "7.0.0-
|
|
3
|
+
"version": "7.0.0-rc.0",
|
|
4
4
|
"title": "FullCalendar Resource Time Grid Plugin",
|
|
5
5
|
"description": "Displays events on a vertical resource view with time slots",
|
|
6
6
|
"keywords": [
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
],
|
|
16
16
|
"homepage": "https://fullcalendar.io/docs/vertical-resource-view",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@fullcalendar/daygrid": "7.0.0-
|
|
19
|
-
"@fullcalendar/premium-common": "7.0.0-
|
|
20
|
-
"@fullcalendar/resource-daygrid": "7.0.0-
|
|
21
|
-
"@fullcalendar/timegrid": "7.0.0-
|
|
18
|
+
"@fullcalendar/daygrid": "7.0.0-rc.0",
|
|
19
|
+
"@fullcalendar/premium-common": "7.0.0-rc.0",
|
|
20
|
+
"@fullcalendar/resource-daygrid": "7.0.0-rc.0",
|
|
21
|
+
"@fullcalendar/timegrid": "7.0.0-rc.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@fullcalendar/core": "7.0.0-
|
|
25
|
-
"@fullcalendar/resource": "7.0.0-
|
|
24
|
+
"@fullcalendar/core": "7.0.0-rc.0",
|
|
25
|
+
"@fullcalendar/resource": "7.0.0-rc.0"
|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|
|
28
28
|
"bugs": "https://fullcalendar.io/reporting-bugs",
|