@fullcalendar/resource-timegrid 5.10.0 → 5.11.2
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/main.cjs.js +2 -2
- package/main.global.js +2 -2
- package/main.global.min.js +2 -2
- package/main.js +2 -2
- package/package.json +7 -7
package/main.cjs.js
CHANGED
package/main.global.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
FullCalendar Scheduler v5.
|
|
2
|
+
FullCalendar Scheduler v5.11.2
|
|
3
3
|
Docs & License: https://fullcalendar.io/scheduler
|
|
4
|
-
(c)
|
|
4
|
+
(c) 2022 Adam Shaw
|
|
5
5
|
*/
|
|
6
6
|
var FullCalendarResourceTimeGrid = (function (exports, common, premiumCommonPlugin, resourceCommonPlugin, timeGridPlugin, resourceDaygrid) {
|
|
7
7
|
'use strict';
|
package/main.global.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
FullCalendar Scheduler v5.
|
|
2
|
+
FullCalendar Scheduler v5.11.2
|
|
3
3
|
Docs & License: https://fullcalendar.io/scheduler
|
|
4
|
-
(c)
|
|
4
|
+
(c) 2022 Adam Shaw
|
|
5
5
|
*/
|
|
6
6
|
var FullCalendarResourceTimeGrid=function(e,t,o,r,n,i){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=l(o),s=l(r),u=l(n),d=function(e,t){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(e,t)};function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var p=function(){return(p=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.transformSeg=function(e,t,o){return[p(p({},e),{col:t.computeCol(e.col,o)})]},t}(r.VResourceJoiner),f=function(e){function o(){var o=null!==e&&e.apply(this,arguments)||this;return o.buildDayRanges=t.memoize(n.buildDayRanges),o.splitter=new r.VResourceSplitter,o.slicers={},o.joiner=new h,o.timeColsRef=t.createRef(),o.isHitComboAllowed=function(e,t){return 1===o.dayRanges.length||e.dateSpan.resourceId===t.dateSpan.resourceId},o}return c(o,e),o.prototype.render=function(){var e=this,o=this.props,r=this.context,i=r.dateEnv,l=r.options,a=o.dateProfile,s=o.resourceDayTableModel,u=this.dayRanges=this.buildDayRanges(s.dayTableModel,a,i),d=this.splitter.splitProps(o);this.slicers=t.mapHash(d,(function(t,o){return e.slicers[o]||new n.DayTimeColsSlicer}));var c=t.mapHash(this.slicers,(function(e,t){return e.sliceProps(d[t],a,null,r,u)}));return t.createElement(t.NowTimer,{unit:l.nowIndicator?"minute":"day"},(function(r,i){return t.createElement(n.TimeCols,p({ref:e.timeColsRef},e.joiner.joinProps(c,s),{dateProfile:a,axis:o.axis,slotDuration:o.slotDuration,slatMetas:o.slatMetas,cells:s.cells[0],tableColGroupNode:o.tableColGroupNode,tableMinWidth:o.tableMinWidth,clientWidth:o.clientWidth,clientHeight:o.clientHeight,expandRows:o.expandRows,nowDate:r,nowIndicatorSegs:l.nowIndicator&&e.buildNowIndicatorSegs(r),todayRange:i,onScrollTopRequest:o.onScrollTopRequest,forPrint:o.forPrint,onSlatCoords:o.onSlatCoords,isHitComboAllowed:e.isHitComboAllowed}))}))},o.prototype.buildNowIndicatorSegs=function(e){var t=this.slicers[""].sliceNowDate(e,this.context,this.dayRanges);return this.joiner.expandSegs(this.props.resourceDayTableModel,t)},o}(t.DateComponent),y=function(e){function o(){var o=null!==e&&e.apply(this,arguments)||this;return o.flattenResources=t.memoize(r.flattenResources),o.buildResourceTimeColsModel=t.memoize(m),o.buildSlatMetas=t.memoize(n.buildSlatMetas),o}return c(o,e),o.prototype.render=function(){var e=this,o=this.props,n=this.context,l=n.options,a=n.dateEnv,s=o.dateProfile,u=this.allDaySplitter.splitProps(o),d=l.resourceOrder||r.DEFAULT_RESOURCE_ORDER,c=this.flattenResources(o.resourceStore,d),h=this.buildResourceTimeColsModel(s,n.dateProfileGenerator,c,l.datesAboveResources,n),y=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,l.slotLabelInterval,l.slotDuration,a),m=l.dayMinWidth,b=!m,R=m,D=l.dayHeaders&&t.createElement(r.ResourceDayHeader,{resources:c,dates:h.dayTableModel.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:b?this.renderHeadAxis:null}),T=!1!==l.allDaySlot&&function(r){return t.createElement(i.ResourceDayTable,p({},u.allDay,{dateProfile:s,resourceDayTableModel:h,nextDayThreshold:l.nextDayThreshold,tableMinWidth:r.tableMinWidth,colGroupNode:r.tableColGroupNode,renderRowIntro:b?e.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:e.headerElRef,clientWidth:r.clientWidth,clientHeight:r.clientHeight,forPrint:o.forPrint},e.getAllDayMaxEventProps()))},C=function(r){return t.createElement(f,p({},u.timed,{dateProfile:s,axis:b,slotDuration:l.slotDuration,slatMetas:y,resourceDayTableModel:h,tableColGroupNode:r.tableColGroupNode,tableMinWidth:r.tableMinWidth,clientWidth:r.clientWidth,clientHeight:r.clientHeight,onSlatCoords:e.handleSlatCoords,expandRows:r.expandRows,forPrint:o.forPrint,onScrollTopRequest:e.handleScrollTopRequest}))};return R?this.renderHScrollLayout(D,T,C,h.colCnt,m,y,this.state.slatCoords):this.renderSimpleLayout(D,T,C)},o}(n.TimeColsView);function m(e,t,o,i,l){var a=n.buildTimeColsModel(e,t);return i?new r.DayResourceTableModel(a,o,l):new r.ResourceDayTableModel(a,o,l)}var b=t.createPlugin({deps:[a.default,s.default,u.default],initialView:"resourceTimeGridDay",views:{resourceTimeGrid:{type:"timeGrid",component:y,needsResourceData:!0},resourceTimeGridDay:{type:"resourceTimeGrid",duration:{days:1}},resourceTimeGridWeek:{type:"resourceTimeGrid",duration:{weeks:1}}}});return t.globalPlugins.push(b),e.ResourceDayTimeCols=f,e.ResourceDayTimeColsView=y,e.default=b,Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar,FullCalendarPremiumCommon,FullCalendarResourceCommon,FullCalendarTimeGrid,FullCalendarResourceDayGrid);
|
package/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
FullCalendar Scheduler v5.
|
|
2
|
+
FullCalendar Scheduler v5.11.2
|
|
3
3
|
Docs & License: https://fullcalendar.io/scheduler
|
|
4
|
-
(c)
|
|
4
|
+
(c) 2022 Adam Shaw
|
|
5
5
|
*/
|
|
6
6
|
import { memoize, createRef, mapHash, createElement, NowTimer, DateComponent, createPlugin } from '@fullcalendar/common';
|
|
7
7
|
import premiumCommonPlugin from '@fullcalendar/premium-common';
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullcalendar/resource-timegrid",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.11.2",
|
|
4
4
|
"title": "FullCalendar Resource Time Grid Plugin",
|
|
5
5
|
"description": "Displays events on a vertical resource view with time slots",
|
|
6
6
|
"docs": "https://fullcalendar.io/docs/vertical-resource-view",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@fullcalendar/common": "~5.
|
|
9
|
-
"@fullcalendar/premium-common": "~5.
|
|
10
|
-
"@fullcalendar/resource-common": "~5.
|
|
11
|
-
"@fullcalendar/resource-daygrid": "~5.
|
|
12
|
-
"@fullcalendar/timegrid": "~5.
|
|
8
|
+
"@fullcalendar/common": "~5.11.2",
|
|
9
|
+
"@fullcalendar/premium-common": "~5.11.2",
|
|
10
|
+
"@fullcalendar/resource-common": "~5.11.2",
|
|
11
|
+
"@fullcalendar/resource-daygrid": "~5.11.2",
|
|
12
|
+
"@fullcalendar/timegrid": "~5.11.2",
|
|
13
13
|
"tslib": "^2.1.0"
|
|
14
14
|
},
|
|
15
15
|
"main": "main.cjs.js",
|
|
@@ -31,6 +31,6 @@
|
|
|
31
31
|
"url": "http://arshaw.com/"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@fullcalendar/core-preact": "5.
|
|
34
|
+
"@fullcalendar/core-preact": "5.11.2"
|
|
35
35
|
}
|
|
36
36
|
}
|