Socket
Socket
Sign inDemoInstall

@fullcalendar/resource-timegrid

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fullcalendar/resource-timegrid - npm Package Compare versions

Comparing version 5.6.0 to 5.7.0

40

main.cjs.js
/*!
FullCalendar Scheduler v5.6.0
FullCalendar Scheduler v5.7.0
Docs & License: https://fullcalendar.io/scheduler
(c) 2020 Adam Shaw
(c) 2021 Adam Shaw
*/

@@ -40,3 +40,2 @@ 'use strict';

var _this = _super !== null && _super.apply(this, arguments) || this;
_this.allowAcrossResources = false;
_this.buildDayRanges = common.memoize(timeGridPlugin.buildDayRanges);

@@ -47,9 +46,5 @@ _this.splitter = new resourceCommonPlugin.VResourceSplitter();

_this.timeColsRef = common.createRef();
_this.handleRootEl = function (rootEl) {
if (rootEl) {
_this.context.registerInteractiveComponent(_this, { el: rootEl });
}
else {
_this.context.unregisterInteractiveComponent(_this);
}
_this.isHitComboAllowed = function (hit0, hit1) {
var allowAcrossResources = _this.dayRanges.length === 1;
return allowAcrossResources || hit0.dateSpan.resourceId === hit1.dateSpan.resourceId;
};

@@ -67,5 +62,4 @@ return _this;

var slicedProps = common.mapHash(this.slicers, function (slicer, resourceId) { return slicer.sliceProps(splitProps[resourceId], dateProfile, null, context, dayRanges); });
this.allowAcrossResources = dayRanges.length === 1;
return ( // TODO: would move this further down hierarchy, but sliceNowDate needs it
common.createElement(common.NowTimer, { unit: options.nowIndicator ? 'minute' : 'day' }, function (nowDate, todayRange) { return (common.createElement(timeGridPlugin.TimeCols, tslib.__assign({ ref: _this.timeColsRef, rootElRef: _this.handleRootEl }, _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 }))); }));
common.createElement(common.NowTimer, { unit: options.nowIndicator ? 'minute' : 'day' }, function (nowDate, todayRange) { return (common.createElement(timeGridPlugin.TimeCols, tslib.__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 }))); }));
};

@@ -76,24 +70,2 @@ ResourceDayTimeCols.prototype.buildNowIndicatorSegs = function (date) {

};
ResourceDayTimeCols.prototype.queryHit = function (positionLeft, positionTop) {
var rawHit = this.timeColsRef.current.positionToHit(positionLeft, positionTop);
if (rawHit) {
return {
component: this,
dateSpan: {
range: rawHit.dateSpan.range,
allDay: rawHit.dateSpan.allDay,
resourceId: this.props.resourceDayTableModel.cells[0][rawHit.col].resource.id,
},
dayEl: rawHit.dayEl,
rect: {
left: rawHit.relativeRect.left,
right: rawHit.relativeRect.right,
top: rawHit.relativeRect.top,
bottom: rawHit.relativeRect.bottom,
},
layer: 0,
};
}
return null;
};
return ResourceDayTimeCols;

@@ -100,0 +72,0 @@ }(common.DateComponent));

6

main.d.ts
import { createElement, DateComponent, DateMarker, Hit, DateProfile, Duration, EventStore, EventUiHash, DateSpan, EventInteractionState, VNode, CssDimValue, PluginDef } from '@fullcalendar/common';
import { createElement, DateComponent, Hit, DateMarker, DateProfile, Duration, EventStore, EventUiHash, DateSpan, EventInteractionState, VNode, CssDimValue, PluginDef } from '@fullcalendar/common';
import '@fullcalendar/premium-common';

@@ -39,3 +39,2 @@ import { TimeColsView, TimeSlatMeta, TimeColsSlatsCoords } from '@fullcalendar/timegrid';

declare class ResourceDayTimeCols extends DateComponent<ResourceDayTimeColsProps> {
allowAcrossResources: boolean;
private buildDayRanges;

@@ -48,5 +47,4 @@ private dayRanges;

render(): createElement.JSX.Element;
handleRootEl: (rootEl: HTMLElement | null) => void;
isHitComboAllowed: (hit0: Hit, hit1: Hit) => boolean;
buildNowIndicatorSegs(date: DateMarker): any[];
queryHit(positionLeft: number, positionTop: number): Hit;
}

@@ -53,0 +51,0 @@

/*!
FullCalendar Scheduler v5.6.0
FullCalendar Scheduler v5.7.0
Docs & License: https://fullcalendar.io/scheduler
(c) 2020 Adam Shaw
(c) 2021 Adam Shaw
*/

@@ -72,3 +72,2 @@ var FullCalendarResourceTimeGrid = (function (exports, common, premiumCommonPlugin, resourceCommonPlugin, timeGridPlugin, resourceDaygrid) {

var _this = _super !== null && _super.apply(this, arguments) || this;
_this.allowAcrossResources = false;
_this.buildDayRanges = common.memoize(timeGridPlugin.buildDayRanges);

@@ -79,9 +78,5 @@ _this.splitter = new resourceCommonPlugin.VResourceSplitter();

_this.timeColsRef = common.createRef();
_this.handleRootEl = function (rootEl) {
if (rootEl) {
_this.context.registerInteractiveComponent(_this, { el: rootEl });
}
else {
_this.context.unregisterInteractiveComponent(_this);
}
_this.isHitComboAllowed = function (hit0, hit1) {
var allowAcrossResources = _this.dayRanges.length === 1;
return allowAcrossResources || hit0.dateSpan.resourceId === hit1.dateSpan.resourceId;
};

@@ -99,5 +94,4 @@ return _this;

var slicedProps = common.mapHash(this.slicers, function (slicer, resourceId) { return slicer.sliceProps(splitProps[resourceId], dateProfile, null, context, dayRanges); });
this.allowAcrossResources = dayRanges.length === 1;
return ( // TODO: would move this further down hierarchy, but sliceNowDate needs it
common.createElement(common.NowTimer, { unit: options.nowIndicator ? 'minute' : 'day' }, function (nowDate, todayRange) { return (common.createElement(timeGridPlugin.TimeCols, __assign({ ref: _this.timeColsRef, rootElRef: _this.handleRootEl }, _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 }))); }));
common.createElement(common.NowTimer, { unit: options.nowIndicator ? 'minute' : 'day' }, function (nowDate, todayRange) { return (common.createElement(timeGridPlugin.TimeCols, __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 }))); }));
};

@@ -108,24 +102,2 @@ ResourceDayTimeCols.prototype.buildNowIndicatorSegs = function (date) {

};
ResourceDayTimeCols.prototype.queryHit = function (positionLeft, positionTop) {
var rawHit = this.timeColsRef.current.positionToHit(positionLeft, positionTop);
if (rawHit) {
return {
component: this,
dateSpan: {
range: rawHit.dateSpan.range,
allDay: rawHit.dateSpan.allDay,
resourceId: this.props.resourceDayTableModel.cells[0][rawHit.col].resource.id,
},
dayEl: rawHit.dayEl,
rect: {
left: rawHit.relativeRect.left,
right: rawHit.relativeRect.right,
top: rawHit.relativeRect.top,
bottom: rawHit.relativeRect.bottom,
},
layer: 0,
};
}
return null;
};
return ResourceDayTimeCols;

@@ -132,0 +104,0 @@ }(common.DateComponent));

/*!
FullCalendar Scheduler v5.6.0
FullCalendar Scheduler v5.7.0
Docs & License: https://fullcalendar.io/scheduler
(c) 2020 Adam Shaw
(c) 2021 Adam Shaw
*/
var FullCalendarResourceTimeGrid=function(e,t,o,r,l,n){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(o),s=i(r),u=i(l),c=function(e,t){return(c=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 d(e,t){function o(){this.constructor=e}c(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 l in t=arguments[o])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e}).apply(this,arguments)},h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(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.allowAcrossResources=!1,o.buildDayRanges=t.memoize(l.buildDayRanges),o.splitter=new r.VResourceSplitter,o.slicers={},o.joiner=new h,o.timeColsRef=t.createRef(),o.handleRootEl=function(e){e?o.context.registerInteractiveComponent(o,{el:e}):o.context.unregisterInteractiveComponent(o)},o}return d(o,e),o.prototype.render=function(){var e=this,o=this.props,r=this.context,n=r.dateEnv,i=r.options,a=o.dateProfile,s=o.resourceDayTableModel,u=this.dayRanges=this.buildDayRanges(s.dayTableModel,a,n),c=this.splitter.splitProps(o);this.slicers=t.mapHash(c,(function(t,o){return e.slicers[o]||new l.DayTimeColsSlicer}));var d=t.mapHash(this.slicers,(function(e,t){return e.sliceProps(c[t],a,null,r,u)}));return this.allowAcrossResources=1===u.length,t.createElement(t.NowTimer,{unit:i.nowIndicator?"minute":"day"},(function(r,n){return t.createElement(l.TimeCols,p({ref:e.timeColsRef,rootElRef:e.handleRootEl},e.joiner.joinProps(d,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:i.nowIndicator&&e.buildNowIndicatorSegs(r),todayRange:n,onScrollTopRequest:o.onScrollTopRequest,forPrint:o.forPrint,onSlatCoords:o.onSlatCoords}))}))},o.prototype.buildNowIndicatorSegs=function(e){var t=this.slicers[""].sliceNowDate(e,this.context,this.dayRanges);return this.joiner.expandSegs(this.props.resourceDayTableModel,t)},o.prototype.queryHit=function(e,t){var o=this.timeColsRef.current.positionToHit(e,t);return o?{component:this,dateSpan:{range:o.dateSpan.range,allDay:o.dateSpan.allDay,resourceId:this.props.resourceDayTableModel.cells[0][o.col].resource.id},dayEl:o.dayEl,rect:{left:o.relativeRect.left,right:o.relativeRect.right,top:o.relativeRect.top,bottom:o.relativeRect.bottom},layer:0}:null},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(l.buildSlatMetas),o}return d(o,e),o.prototype.render=function(){var e=this,o=this.props,l=this.context,i=l.options,a=l.dateEnv,s=o.dateProfile,u=this.allDaySplitter.splitProps(o),c=i.resourceOrder||r.DEFAULT_RESOURCE_ORDER,d=this.flattenResources(o.resourceStore,c),h=this.buildResourceTimeColsModel(s,l.dateProfileGenerator,d,i.datesAboveResources,l),y=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,i.slotLabelInterval,i.slotDuration,a),m=i.dayMinWidth,R=!m,b=m,D=i.dayHeaders&&t.createElement(r.ResourceDayHeader,{resources:d,dates:h.dayTableModel.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:R?this.renderHeadAxis:null}),T=!1!==i.allDaySlot&&function(r){return t.createElement(n.ResourceDayTable,p({},u.allDay,{dateProfile:s,resourceDayTableModel:h,nextDayThreshold:i.nextDayThreshold,tableMinWidth:r.tableMinWidth,colGroupNode:r.tableColGroupNode,renderRowIntro:R?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:R,slotDuration:i.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 b?this.renderHScrollLayout(D,T,C,h.colCnt,m,y,this.state.slatCoords):this.renderSimpleLayout(D,T,C)},o}(l.TimeColsView);function m(e,t,o,n,i){var a=l.buildTimeColsModel(e,t);return n?new r.DayResourceTableModel(a,o,i):new r.ResourceDayTableModel(a,o,i)}var R=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(R),e.ResourceDayTimeCols=f,e.ResourceDayTimeColsView=y,e.default=R,Object.defineProperty(e,"__esModule",{value:!0}),e}({},FullCalendar,FullCalendarPremiumCommon,FullCalendarResourceCommon,FullCalendarTimeGrid,FullCalendarResourceDayGrid);
var FullCalendarResourceTimeGrid=function(e,t,o,r,i,n){"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(i),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){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 i in t=arguments[o])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);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(i.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,n=r.dateEnv,l=r.options,a=o.dateProfile,s=o.resourceDayTableModel,u=this.dayRanges=this.buildDayRanges(s.dayTableModel,a,n),d=this.splitter.splitProps(o);this.slicers=t.mapHash(d,(function(t,o){return e.slicers[o]||new i.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,n){return t.createElement(i.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:n,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(i.buildSlatMetas),o}return c(o,e),o.prototype.render=function(){var e=this,o=this.props,i=this.context,l=i.options,a=i.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,i.dateProfileGenerator,c,l.datesAboveResources,i),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(n.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}(i.TimeColsView);function m(e,t,o,n,l){var a=i.buildTimeColsModel(e,t);return n?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);
/*!
FullCalendar Scheduler v5.6.0
FullCalendar Scheduler v5.7.0
Docs & License: https://fullcalendar.io/scheduler
(c) 2020 Adam Shaw
(c) 2021 Adam Shaw
*/

@@ -30,3 +30,2 @@ import { memoize, createRef, mapHash, createElement, NowTimer, DateComponent, createPlugin } from '@fullcalendar/common';

var _this = _super !== null && _super.apply(this, arguments) || this;
_this.allowAcrossResources = false;
_this.buildDayRanges = memoize(buildDayRanges);

@@ -37,9 +36,5 @@ _this.splitter = new VResourceSplitter();

_this.timeColsRef = createRef();
_this.handleRootEl = function (rootEl) {
if (rootEl) {
_this.context.registerInteractiveComponent(_this, { el: rootEl });
}
else {
_this.context.unregisterInteractiveComponent(_this);
}
_this.isHitComboAllowed = function (hit0, hit1) {
var allowAcrossResources = _this.dayRanges.length === 1;
return allowAcrossResources || hit0.dateSpan.resourceId === hit1.dateSpan.resourceId;
};

@@ -57,5 +52,4 @@ return _this;

var slicedProps = mapHash(this.slicers, function (slicer, resourceId) { return slicer.sliceProps(splitProps[resourceId], dateProfile, null, context, dayRanges); });
this.allowAcrossResources = dayRanges.length === 1;
return ( // TODO: would move this further down hierarchy, but sliceNowDate needs it
createElement(NowTimer, { unit: options.nowIndicator ? 'minute' : 'day' }, function (nowDate, todayRange) { return (createElement(TimeCols, __assign({ ref: _this.timeColsRef, rootElRef: _this.handleRootEl }, _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 }))); }));
createElement(NowTimer, { unit: options.nowIndicator ? 'minute' : 'day' }, function (nowDate, todayRange) { return (createElement(TimeCols, __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 }))); }));
};

@@ -66,24 +60,2 @@ ResourceDayTimeCols.prototype.buildNowIndicatorSegs = function (date) {

};
ResourceDayTimeCols.prototype.queryHit = function (positionLeft, positionTop) {
var rawHit = this.timeColsRef.current.positionToHit(positionLeft, positionTop);
if (rawHit) {
return {
component: this,
dateSpan: {
range: rawHit.dateSpan.range,
allDay: rawHit.dateSpan.allDay,
resourceId: this.props.resourceDayTableModel.cells[0][rawHit.col].resource.id,
},
dayEl: rawHit.dayEl,
rect: {
left: rawHit.relativeRect.left,
right: rawHit.relativeRect.right,
top: rawHit.relativeRect.top,
bottom: rawHit.relativeRect.bottom,
},
layer: 0,
};
}
return null;
};
return ResourceDayTimeCols;

@@ -90,0 +62,0 @@ }(DateComponent));

{
"name": "@fullcalendar/resource-timegrid",
"version": "5.6.0",
"version": "5.7.0",
"title": "FullCalendar Resource Time Grid Plugin",

@@ -8,7 +8,7 @@ "description": "Displays events on a vertical resource view with time slots",

"dependencies": {
"@fullcalendar/common": "~5.6.0",
"@fullcalendar/premium-common": "~5.6.0",
"@fullcalendar/resource-common": "~5.6.0",
"@fullcalendar/resource-daygrid": "~5.6.0",
"@fullcalendar/timegrid": "~5.6.0",
"@fullcalendar/common": "~5.7.0",
"@fullcalendar/premium-common": "~5.7.0",
"@fullcalendar/resource-common": "~5.7.0",
"@fullcalendar/resource-daygrid": "~5.7.0",
"@fullcalendar/timegrid": "~5.7.0",
"tslib": "^2.0.3"

@@ -35,4 +35,4 @@ },

"devDependencies": {
"@fullcalendar/core-preact": "5.6.0"
"@fullcalendar/core-preact": "5.7.0"
}
}

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