@fullcalendar/resource-timegrid
Advanced tools
Comparing version 6.0.2 to 6.0.3
/*! | ||
FullCalendar Resource Time Grid Plugin v6.0.2 | ||
FullCalendar Resource Time Grid Plugin v6.0.3 | ||
Docs & License: https://fullcalendar.io/docs/vertical-resource-view | ||
@@ -89,3 +89,3 @@ (c) 2022 Adam Shaw | ||
name: '@fullcalendar/resource-timegrid', | ||
premiumReleaseDate: '2022-12-27', | ||
premiumReleaseDate: '2023-01-11', | ||
deps: [ | ||
@@ -92,0 +92,0 @@ premiumCommonPlugin__default["default"], |
/*! | ||
FullCalendar Resource Time Grid Plugin v6.0.2 | ||
FullCalendar Resource Time Grid Plugin v6.0.3 | ||
Docs & License: https://fullcalendar.io/docs/vertical-resource-view | ||
(c) 2022 Adam Shaw | ||
*/ | ||
FullCalendar.ResourceTimeGrid=function(e,t,l,r,s,o,i,a,n,d){"use strict";function u(e){return e&&e.__esModule?e:{default:e}}var c=u(l),h=u(r),m=u(s);class p extends n.VResourceJoiner{transformSeg(e,t,l){return[Object.assign(Object.assign({},e),{col:t.computeCol(e.col,l)})]}}class R extends o.DateComponent{constructor(){super(...arguments),this.buildDayRanges=o.memoize(a.buildDayRanges),this.splitter=new n.VResourceSplitter,this.slicers={},this.joiner=new p,this.timeColsRef=i.createRef(),this.isHitComboAllowed=(e,t)=>1===this.dayRanges.length||e.dateSpan.resourceId===t.dateSpan.resourceId}render(){let{props:e,context:t}=this,{dateEnv:l,options:r}=t,{dateProfile:s,resourceDayTableModel:n}=e,d=this.dayRanges=this.buildDayRanges(n.dayTableModel,s,l),u=this.splitter.splitProps(e);this.slicers=o.mapHash(u,(e,t)=>this.slicers[t]||new a.DayTimeColsSlicer);let c=o.mapHash(this.slicers,(e,l)=>e.sliceProps(u[l],s,null,t,d));return i.createElement(o.NowTimer,{unit:r.nowIndicator?"minute":"day"},(t,l)=>i.createElement(a.TimeCols,Object.assign({ref:this.timeColsRef},this.joiner.joinProps(c,n),{dateProfile:s,axis:e.axis,slotDuration:e.slotDuration,slatMetas:e.slatMetas,cells:n.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:t,nowIndicatorSegs:r.nowIndicator&&this.buildNowIndicatorSegs(t),todayRange:l,onScrollTopRequest:e.onScrollTopRequest,forPrint:e.forPrint,onSlatCoords:e.onSlatCoords,isHitComboAllowed:this.isHitComboAllowed})))}buildNowIndicatorSegs(e){let t=this.slicers[""].sliceNowDate(e,this.context,this.dayRanges);return this.joiner.expandSegs(this.props.resourceDayTableModel,t)}}class b extends a.TimeColsView{constructor(){super(...arguments),this.flattenResources=o.memoize(n.flattenResources),this.buildResourceTimeColsModel=o.memoize(y),this.buildSlatMetas=o.memoize(a.buildSlatMetas)}render(){let{props:e,context:t}=this,{options:l,dateEnv:r}=t,{dateProfile:s}=e,o=this.allDaySplitter.splitProps(e),a=l.resourceOrder||n.DEFAULT_RESOURCE_ORDER,u=this.flattenResources(e.resourceStore,a),c=this.buildResourceTimeColsModel(s,t.dateProfileGenerator,u,l.datesAboveResources,t),h=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,l.slotLabelInterval,l.slotDuration,r),{dayMinWidth:m}=l,p=!m,b=m,y=l.dayHeaders&&i.createElement(n.ResourceDayHeader,{resources:u,dates:c.dayTableModel.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:p?this.renderHeadAxis:null}),C=!1!==l.allDaySlot&&(t=>i.createElement(d.ResourceDayTable,Object.assign({},o.allDay,{dateProfile:s,resourceDayTableModel:c,nextDayThreshold:l.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:p?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:e.forPrint},this.getAllDayMaxEventProps()))),D=t=>i.createElement(R,Object.assign({},o.timed,{dateProfile:s,axis:p,slotDuration:l.slotDuration,slatMetas:h,resourceDayTableModel:c,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:t.expandRows,forPrint:e.forPrint,onScrollTopRequest:this.handleScrollTopRequest}));return b?this.renderHScrollLayout(y,C,D,c.colCnt,m,h,this.state.slatCoords):this.renderSimpleLayout(y,C,D)}}function y(e,t,l,r,s){let o=a.buildTimeColsModel(e,t);return r?new n.DayResourceTableModel(o,l,s):new n.ResourceDayTableModel(o,l,s)}var C=t.createPlugin({name:"@fullcalendar/resource-timegrid",premiumReleaseDate:"2022-12-27",deps:[c.default,h.default,m.default],initialView:"resourceTimeGridDay",views:{resourceTimeGrid:{type:"timeGrid",component:b,needsResourceData:!0},resourceTimeGridDay:{type:"resourceTimeGrid",duration:{days:1}},resourceTimeGridWeek:{type:"resourceTimeGrid",duration:{weeks:1}}}}),D={__proto__:null,ResourceDayTimeColsView:b,ResourceDayTimeCols:R};return t.globalPlugins.push(C),e.Internal=D,e.default=C,Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar,FullCalendar.PremiumCommon,FullCalendar.Resource,FullCalendar.TimeGrid,FullCalendar.Internal,FullCalendar.Preact,FullCalendar.TimeGrid.Internal,FullCalendar.Resource.Internal,FullCalendar.ResourceDayGrid.Internal); | ||
FullCalendar.ResourceTimeGrid=function(e,t,l,r,s,o,i,a,n,d){"use strict";function u(e){return e&&e.__esModule?e:{default:e}}var c=u(l),h=u(r),m=u(s);class p extends n.VResourceJoiner{transformSeg(e,t,l){return[Object.assign(Object.assign({},e),{col:t.computeCol(e.col,l)})]}}class R extends o.DateComponent{constructor(){super(...arguments),this.buildDayRanges=o.memoize(a.buildDayRanges),this.splitter=new n.VResourceSplitter,this.slicers={},this.joiner=new p,this.timeColsRef=i.createRef(),this.isHitComboAllowed=(e,t)=>1===this.dayRanges.length||e.dateSpan.resourceId===t.dateSpan.resourceId}render(){let{props:e,context:t}=this,{dateEnv:l,options:r}=t,{dateProfile:s,resourceDayTableModel:n}=e,d=this.dayRanges=this.buildDayRanges(n.dayTableModel,s,l),u=this.splitter.splitProps(e);this.slicers=o.mapHash(u,(e,t)=>this.slicers[t]||new a.DayTimeColsSlicer);let c=o.mapHash(this.slicers,(e,l)=>e.sliceProps(u[l],s,null,t,d));return i.createElement(o.NowTimer,{unit:r.nowIndicator?"minute":"day"},(t,l)=>i.createElement(a.TimeCols,Object.assign({ref:this.timeColsRef},this.joiner.joinProps(c,n),{dateProfile:s,axis:e.axis,slotDuration:e.slotDuration,slatMetas:e.slatMetas,cells:n.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:t,nowIndicatorSegs:r.nowIndicator&&this.buildNowIndicatorSegs(t),todayRange:l,onScrollTopRequest:e.onScrollTopRequest,forPrint:e.forPrint,onSlatCoords:e.onSlatCoords,isHitComboAllowed:this.isHitComboAllowed})))}buildNowIndicatorSegs(e){let t=this.slicers[""].sliceNowDate(e,this.context,this.dayRanges);return this.joiner.expandSegs(this.props.resourceDayTableModel,t)}}class b extends a.TimeColsView{constructor(){super(...arguments),this.flattenResources=o.memoize(n.flattenResources),this.buildResourceTimeColsModel=o.memoize(y),this.buildSlatMetas=o.memoize(a.buildSlatMetas)}render(){let{props:e,context:t}=this,{options:l,dateEnv:r}=t,{dateProfile:s}=e,o=this.allDaySplitter.splitProps(e),a=l.resourceOrder||n.DEFAULT_RESOURCE_ORDER,u=this.flattenResources(e.resourceStore,a),c=this.buildResourceTimeColsModel(s,t.dateProfileGenerator,u,l.datesAboveResources,t),h=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,l.slotLabelInterval,l.slotDuration,r),{dayMinWidth:m}=l,p=!m,b=m,y=l.dayHeaders&&i.createElement(n.ResourceDayHeader,{resources:u,dates:c.dayTableModel.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:p?this.renderHeadAxis:null}),C=!1!==l.allDaySlot&&(t=>i.createElement(d.ResourceDayTable,Object.assign({},o.allDay,{dateProfile:s,resourceDayTableModel:c,nextDayThreshold:l.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:p?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:e.forPrint},this.getAllDayMaxEventProps()))),D=t=>i.createElement(R,Object.assign({},o.timed,{dateProfile:s,axis:p,slotDuration:l.slotDuration,slatMetas:h,resourceDayTableModel:c,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:t.expandRows,forPrint:e.forPrint,onScrollTopRequest:this.handleScrollTopRequest}));return b?this.renderHScrollLayout(y,C,D,c.colCnt,m,h,this.state.slatCoords):this.renderSimpleLayout(y,C,D)}}function y(e,t,l,r,s){let o=a.buildTimeColsModel(e,t);return r?new n.DayResourceTableModel(o,l,s):new n.ResourceDayTableModel(o,l,s)}var C=t.createPlugin({name:"@fullcalendar/resource-timegrid",premiumReleaseDate:"2023-01-11",deps:[c.default,h.default,m.default],initialView:"resourceTimeGridDay",views:{resourceTimeGrid:{type:"timeGrid",component:b,needsResourceData:!0},resourceTimeGridDay:{type:"resourceTimeGrid",duration:{days:1}},resourceTimeGridWeek:{type:"resourceTimeGrid",duration:{weeks:1}}}}),D={__proto__:null,ResourceDayTimeColsView:b,ResourceDayTimeCols:R};return t.globalPlugins.push(C),e.Internal=D,e.default=C,Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar,FullCalendar.PremiumCommon,FullCalendar.Resource,FullCalendar.TimeGrid,FullCalendar.Internal,FullCalendar.Preact,FullCalendar.TimeGrid.Internal,FullCalendar.Resource.Internal,FullCalendar.ResourceDayGrid.Internal); |
44
index.js
@@ -1,19 +0,29 @@ | ||
import { createPlugin } from '@fullcalendar/core/index.js'; | ||
import premiumCommonPlugin from '@fullcalendar/premium-common/index.js'; | ||
import resourcePlugin from '@fullcalendar/resource/index.js'; | ||
import timeGridPlugin from '@fullcalendar/timegrid/index.js'; | ||
import { ResourceDayTimeColsView } from './internal.js'; | ||
import '@fullcalendar/core/internal.js'; | ||
import '@fullcalendar/core/preact.js'; | ||
import '@fullcalendar/timegrid/internal.js'; | ||
import '@fullcalendar/resource/internal.js'; | ||
import '@fullcalendar/resource-daygrid/internal.js'; | ||
'use strict'; | ||
var index = createPlugin({ | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var core = require('@fullcalendar/core'); | ||
var premiumCommonPlugin = require('@fullcalendar/premium-common'); | ||
var resourcePlugin = require('@fullcalendar/resource'); | ||
var timeGridPlugin = require('@fullcalendar/timegrid'); | ||
var internalCommon = require('./internal.js'); | ||
require('@fullcalendar/core/internal'); | ||
require('@fullcalendar/core/preact'); | ||
require('@fullcalendar/timegrid/internal'); | ||
require('@fullcalendar/resource/internal'); | ||
require('@fullcalendar/resource-daygrid/internal'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var premiumCommonPlugin__default = /*#__PURE__*/_interopDefaultLegacy(premiumCommonPlugin); | ||
var resourcePlugin__default = /*#__PURE__*/_interopDefaultLegacy(resourcePlugin); | ||
var timeGridPlugin__default = /*#__PURE__*/_interopDefaultLegacy(timeGridPlugin); | ||
var index = core.createPlugin({ | ||
name: '@fullcalendar/resource-timegrid', | ||
premiumReleaseDate: '2022-12-27', | ||
premiumReleaseDate: '2023-01-11', | ||
deps: [ | ||
premiumCommonPlugin, | ||
resourcePlugin, | ||
timeGridPlugin, | ||
premiumCommonPlugin__default["default"], | ||
resourcePlugin__default["default"], | ||
timeGridPlugin__default["default"], | ||
], | ||
@@ -24,3 +34,3 @@ initialView: 'resourceTimeGridDay', | ||
type: 'timeGrid', | ||
component: ResourceDayTimeColsView, | ||
component: internalCommon.ResourceDayTimeColsView, | ||
needsResourceData: true, | ||
@@ -39,2 +49,2 @@ }, | ||
export { index as default }; | ||
exports["default"] = index; |
@@ -1,8 +0,12 @@ | ||
import { DateComponent, memoize, mapHash, NowTimer } from '@fullcalendar/core/internal.js'; | ||
import { createRef, createElement } from '@fullcalendar/core/preact.js'; | ||
import { buildDayRanges, DayTimeColsSlicer, TimeCols, TimeColsView, buildSlatMetas, buildTimeColsModel } from '@fullcalendar/timegrid/internal.js'; | ||
import { VResourceJoiner, VResourceSplitter, flattenResources, DEFAULT_RESOURCE_ORDER, ResourceDayHeader, DayResourceTableModel, ResourceDayTableModel } from '@fullcalendar/resource/internal.js'; | ||
import { ResourceDayTable } from '@fullcalendar/resource-daygrid/internal.js'; | ||
'use strict'; | ||
class ResourceDayTimeColsJoiner extends VResourceJoiner { | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var internal$1 = require('@fullcalendar/core/internal'); | ||
var preact = require('@fullcalendar/core/preact'); | ||
var internal$2 = require('@fullcalendar/timegrid/internal'); | ||
var internal = require('@fullcalendar/resource/internal'); | ||
var internal$3 = require('@fullcalendar/resource-daygrid/internal'); | ||
class ResourceDayTimeColsJoiner extends internal.VResourceJoiner { | ||
transformSeg(seg, resourceDayTable, resourceI) { | ||
@@ -15,10 +19,10 @@ return [ | ||
class ResourceDayTimeCols extends DateComponent { | ||
class ResourceDayTimeCols extends internal$1.DateComponent { | ||
constructor() { | ||
super(...arguments); | ||
this.buildDayRanges = memoize(buildDayRanges); | ||
this.splitter = new VResourceSplitter(); | ||
this.buildDayRanges = internal$1.memoize(internal$2.buildDayRanges); | ||
this.splitter = new internal.VResourceSplitter(); | ||
this.slicers = {}; | ||
this.joiner = new ResourceDayTimeColsJoiner(); | ||
this.timeColsRef = createRef(); | ||
this.timeColsRef = preact.createRef(); | ||
this.isHitComboAllowed = (hit0, hit1) => { | ||
@@ -35,6 +39,6 @@ let allowAcrossResources = this.dayRanges.length === 1; | ||
let splitProps = this.splitter.splitProps(props); | ||
this.slicers = mapHash(splitProps, (split, resourceId) => this.slicers[resourceId] || new DayTimeColsSlicer()); | ||
let slicedProps = mapHash(this.slicers, (slicer, resourceId) => slicer.sliceProps(splitProps[resourceId], dateProfile, null, context, dayRanges)); | ||
this.slicers = internal$1.mapHash(splitProps, (split, resourceId) => this.slicers[resourceId] || new internal$2.DayTimeColsSlicer()); | ||
let slicedProps = internal$1.mapHash(this.slicers, (slicer, resourceId) => slicer.sliceProps(splitProps[resourceId], dateProfile, null, context, dayRanges)); | ||
return ( // TODO: would move this further down hierarchy, but sliceNowDate needs it | ||
createElement(NowTimer, { unit: options.nowIndicator ? 'minute' : 'day' }, (nowDate, todayRange) => (createElement(TimeCols, Object.assign({ ref: this.timeColsRef }, this.joiner.joinProps(slicedProps, resourceDayTableModel), { dateProfile: dateProfile, axis: props.axis, slotDuration: props.slotDuration, slatMetas: props.slatMetas, cells: resourceDayTableModel.cells[0], tableColGroupNode: props.tableColGroupNode, tableMinWidth: props.tableMinWidth, clientWidth: props.clientWidth, clientHeight: props.clientHeight, expandRows: props.expandRows, nowDate: nowDate, nowIndicatorSegs: options.nowIndicator && this.buildNowIndicatorSegs(nowDate), todayRange: todayRange, onScrollTopRequest: props.onScrollTopRequest, forPrint: props.forPrint, onSlatCoords: props.onSlatCoords, isHitComboAllowed: this.isHitComboAllowed }))))); | ||
preact.createElement(internal$1.NowTimer, { unit: options.nowIndicator ? 'minute' : 'day' }, (nowDate, todayRange) => (preact.createElement(internal$2.TimeCols, Object.assign({ ref: this.timeColsRef }, this.joiner.joinProps(slicedProps, resourceDayTableModel), { dateProfile: dateProfile, axis: props.axis, slotDuration: props.slotDuration, slatMetas: props.slatMetas, cells: resourceDayTableModel.cells[0], tableColGroupNode: props.tableColGroupNode, tableMinWidth: props.tableMinWidth, clientWidth: props.clientWidth, clientHeight: props.clientHeight, expandRows: props.expandRows, nowDate: nowDate, nowIndicatorSegs: options.nowIndicator && this.buildNowIndicatorSegs(nowDate), todayRange: todayRange, onScrollTopRequest: props.onScrollTopRequest, forPrint: props.forPrint, onSlatCoords: props.onSlatCoords, isHitComboAllowed: this.isHitComboAllowed }))))); | ||
} | ||
@@ -47,8 +51,8 @@ buildNowIndicatorSegs(date) { | ||
class ResourceDayTimeColsView extends TimeColsView { | ||
class ResourceDayTimeColsView extends internal$2.TimeColsView { | ||
constructor() { | ||
super(...arguments); | ||
this.flattenResources = memoize(flattenResources); | ||
this.buildResourceTimeColsModel = memoize(buildResourceTimeColsModel); | ||
this.buildSlatMetas = memoize(buildSlatMetas); | ||
this.flattenResources = internal$1.memoize(internal.flattenResources); | ||
this.buildResourceTimeColsModel = internal$1.memoize(buildResourceTimeColsModel); | ||
this.buildSlatMetas = internal$1.memoize(internal$2.buildSlatMetas); | ||
} | ||
@@ -60,3 +64,3 @@ render() { | ||
let splitProps = this.allDaySplitter.splitProps(props); | ||
let resourceOrderSpecs = options.resourceOrder || DEFAULT_RESOURCE_ORDER; | ||
let resourceOrderSpecs = options.resourceOrder || internal.DEFAULT_RESOURCE_ORDER; | ||
let resources = this.flattenResources(props.resourceStore, resourceOrderSpecs); | ||
@@ -68,5 +72,5 @@ let resourceDayTableModel = this.buildResourceTimeColsModel(dateProfile, context.dateProfileGenerator, resources, options.datesAboveResources, context); | ||
let hasDetachedAxis = dayMinWidth; | ||
let headerContent = options.dayHeaders && (createElement(ResourceDayHeader, { resources: resources, dates: resourceDayTableModel.dayTableModel.headerDates, dateProfile: dateProfile, datesRepDistinctDays: true, renderIntro: hasAttachedAxis ? this.renderHeadAxis : null })); | ||
let allDayContent = (options.allDaySlot !== false) && ((contentArg) => (createElement(ResourceDayTable, Object.assign({}, splitProps.allDay, { dateProfile: dateProfile, resourceDayTableModel: resourceDayTableModel, nextDayThreshold: options.nextDayThreshold, tableMinWidth: contentArg.tableMinWidth, colGroupNode: contentArg.tableColGroupNode, renderRowIntro: hasAttachedAxis ? this.renderTableRowAxis : null, showWeekNumbers: false, expandRows: false, headerAlignElRef: this.headerElRef, clientWidth: contentArg.clientWidth, clientHeight: contentArg.clientHeight, forPrint: props.forPrint }, this.getAllDayMaxEventProps())))); | ||
let timeGridContent = (contentArg) => (createElement(ResourceDayTimeCols, Object.assign({}, splitProps.timed, { dateProfile: dateProfile, axis: hasAttachedAxis, slotDuration: options.slotDuration, slatMetas: slatMetas, resourceDayTableModel: resourceDayTableModel, tableColGroupNode: contentArg.tableColGroupNode, tableMinWidth: contentArg.tableMinWidth, clientWidth: contentArg.clientWidth, clientHeight: contentArg.clientHeight, onSlatCoords: this.handleSlatCoords, expandRows: contentArg.expandRows, forPrint: props.forPrint, onScrollTopRequest: this.handleScrollTopRequest }))); | ||
let headerContent = options.dayHeaders && (preact.createElement(internal.ResourceDayHeader, { resources: resources, dates: resourceDayTableModel.dayTableModel.headerDates, dateProfile: dateProfile, datesRepDistinctDays: true, renderIntro: hasAttachedAxis ? this.renderHeadAxis : null })); | ||
let allDayContent = (options.allDaySlot !== false) && ((contentArg) => (preact.createElement(internal$3.ResourceDayTable, Object.assign({}, splitProps.allDay, { dateProfile: dateProfile, resourceDayTableModel: resourceDayTableModel, nextDayThreshold: options.nextDayThreshold, tableMinWidth: contentArg.tableMinWidth, colGroupNode: contentArg.tableColGroupNode, renderRowIntro: hasAttachedAxis ? this.renderTableRowAxis : null, showWeekNumbers: false, expandRows: false, headerAlignElRef: this.headerElRef, clientWidth: contentArg.clientWidth, clientHeight: contentArg.clientHeight, forPrint: props.forPrint }, this.getAllDayMaxEventProps())))); | ||
let timeGridContent = (contentArg) => (preact.createElement(ResourceDayTimeCols, Object.assign({}, splitProps.timed, { dateProfile: dateProfile, axis: hasAttachedAxis, slotDuration: options.slotDuration, slatMetas: slatMetas, resourceDayTableModel: resourceDayTableModel, tableColGroupNode: contentArg.tableColGroupNode, tableMinWidth: contentArg.tableMinWidth, clientWidth: contentArg.clientWidth, clientHeight: contentArg.clientHeight, onSlatCoords: this.handleSlatCoords, expandRows: contentArg.expandRows, forPrint: props.forPrint, onScrollTopRequest: this.handleScrollTopRequest }))); | ||
return hasDetachedAxis | ||
@@ -78,8 +82,9 @@ ? this.renderHScrollLayout(headerContent, allDayContent, timeGridContent, resourceDayTableModel.colCnt, dayMinWidth, slatMetas, this.state.slatCoords) | ||
function buildResourceTimeColsModel(dateProfile, dateProfileGenerator, resources, datesAboveResources, context) { | ||
let dayTable = buildTimeColsModel(dateProfile, dateProfileGenerator); | ||
let dayTable = internal$2.buildTimeColsModel(dateProfile, dateProfileGenerator); | ||
return datesAboveResources ? | ||
new DayResourceTableModel(dayTable, resources, context) : | ||
new ResourceDayTableModel(dayTable, resources, context); | ||
new internal.DayResourceTableModel(dayTable, resources, context) : | ||
new internal.ResourceDayTableModel(dayTable, resources, context); | ||
} | ||
export { ResourceDayTimeCols, ResourceDayTimeColsView }; | ||
exports.ResourceDayTimeCols = ResourceDayTimeCols; | ||
exports.ResourceDayTimeColsView = ResourceDayTimeColsView; |
{ | ||
"name": "@fullcalendar/resource-timegrid", | ||
"version": "6.0.2", | ||
"version": "6.0.3", | ||
"title": "FullCalendar Resource Time Grid Plugin", | ||
@@ -18,9 +18,9 @@ "description": "Displays events on a vertical resource view with time slots", | ||
"dependencies": { | ||
"@fullcalendar/premium-common": "~6.0.2", | ||
"@fullcalendar/resource-daygrid": "~6.0.2", | ||
"@fullcalendar/timegrid": "~6.0.2" | ||
"@fullcalendar/premium-common": "~6.0.3", | ||
"@fullcalendar/resource-daygrid": "~6.0.3", | ||
"@fullcalendar/timegrid": "~6.0.3" | ||
}, | ||
"peerDependencies": { | ||
"@fullcalendar/core": "~6.0.2", | ||
"@fullcalendar/resource": "~6.0.2" | ||
"@fullcalendar/core": "~6.0.3", | ||
"@fullcalendar/resource": "~6.0.3" | ||
}, | ||
@@ -41,5 +41,5 @@ "type": "module", | ||
"copyright": "2022 Adam Shaw", | ||
"main": "./index.cjs", | ||
"module": "./index.js", | ||
"types": "./index.d.ts", | ||
"main": "./index.js", | ||
"module": "./index.esm.js", | ||
"unpkg": "./index.global.min.js", | ||
@@ -49,15 +49,11 @@ "jsdelivr": "./index.global.min.js", | ||
"./package.json": "./package.json", | ||
"./index.cjs": "./index.cjs", | ||
"./index.js": "./index.js", | ||
".": { | ||
"types": "./index.d.ts", | ||
"require": "./index.cjs", | ||
"import": "./index.js" | ||
"require": "./index.js", | ||
"import": "./index.esm.js" | ||
}, | ||
"./internal.cjs": "./internal.cjs", | ||
"./internal.js": "./internal.js", | ||
"./internal": { | ||
"types": "./internal.d.ts", | ||
"require": "./internal.cjs", | ||
"import": "./internal.js" | ||
"require": "./internal.js", | ||
"import": "./internal.esm.js" | ||
} | ||
@@ -64,0 +60,0 @@ }, |
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
34108
11