Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fullcalendar/resource-timegrid

Package Overview
Dependencies
Maintainers
1
Versions
60
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 4.3.0 to 4.4.0

main.js.map

14

main.d.ts

@@ -17,3 +17,3 @@ // Generated by dts-bundle v0.7.3-fork.1

declare module '@fullcalendar/resource-timegrid/ResourceTimeGridView' {
import { ComponentContext, ViewSpec, DateProfileGenerator } from '@fullcalendar/core';
import { ComponentContext } from '@fullcalendar/core';
import { AbstractTimeGridView } from '@fullcalendar/timegrid';

@@ -30,5 +30,6 @@ import { ResourceDayHeader, ResourceViewProps } from '@fullcalendar/resource-common';

resourceDayGrid: ResourceDayGrid;
constructor(context: ComponentContext, viewSpec: ViewSpec, dateProfileGenerator: DateProfileGenerator, parentEl: HTMLElement);
destroy(): void;
render(props: ResourceViewProps): void;
_processOptions(options: any): void;
render(props: ResourceViewProps, context: ComponentContext): void;
_renderSkeleton(context: ComponentContext): void;
_unrenderSkeleton(): void;
renderNowIndicator(date: any): void;

@@ -56,5 +57,6 @@ }

timeGrid: TimeGrid;
constructor(context: ComponentContext, timeGrid: TimeGrid);
constructor(timeGrid: TimeGrid);
firstContext(context: ComponentContext): void;
destroy(): void;
render(props: ResourceTimeGridProps): void;
render(props: ResourceTimeGridProps, context: ComponentContext): void;
renderNowIndicator(date: DateMarker): void;

@@ -61,0 +63,0 @@ buildPositionCaches(): void;

/*!
FullCalendar Resource Time Grid Plugin v4.3.0
FullCalendar Resource Time Grid Plugin v4.4.0
Docs & License: https://fullcalendar.io/scheduler

@@ -54,4 +54,4 @@ (c) 2019 Adam Shaw

__extends(ResourceTimeGrid, _super);
function ResourceTimeGrid(context, timeGrid) {
var _this = _super.call(this, context, timeGrid.el) || this;
function ResourceTimeGrid(timeGrid) {
var _this = _super.call(this, timeGrid.el) || this;
_this.buildDayRanges = memoize(buildDayRanges);

@@ -62,15 +62,18 @@ _this.splitter = new VResourceSplitter();

_this.timeGrid = timeGrid;
context.calendar.registerInteractiveComponent(_this, {
el: _this.timeGrid.el
});
return _this;
}
ResourceTimeGrid.prototype.firstContext = function (context) {
context.calendar.registerInteractiveComponent(this, {
el: this.timeGrid.el
});
};
ResourceTimeGrid.prototype.destroy = function () {
this.calendar.unregisterInteractiveComponent(this);
this.context.calendar.unregisterInteractiveComponent(this);
};
ResourceTimeGrid.prototype.render = function (props) {
ResourceTimeGrid.prototype.render = function (props, context) {
var _this = this;
var timeGrid = this.timeGrid;
var dateEnv = context.dateEnv;
var dateProfile = props.dateProfile, resourceDayTable = props.resourceDayTable;
var dayRanges = this.dayRanges = this.buildDayRanges(resourceDayTable.dayTable, dateProfile, this.dateEnv);
var dayRanges = this.dayRanges = this.buildDayRanges(resourceDayTable.dayTable, dateProfile, dateEnv);
var splitProps = this.splitter.splitProps(props);

@@ -81,6 +84,6 @@ this.slicers = mapHash(splitProps, function (split, resourceId) {

var slicedProps = mapHash(this.slicers, function (slicer, resourceId) {
return slicer.sliceProps(splitProps[resourceId], dateProfile, null, timeGrid, dayRanges);
return slicer.sliceProps(splitProps[resourceId], dateProfile, null, context.calendar, timeGrid, dayRanges);
});
timeGrid.allowAcrossResources = dayRanges.length === 1;
timeGrid.receiveProps(__assign({}, this.joiner.joinProps(slicedProps, resourceDayTable), { dateProfile: dateProfile, cells: resourceDayTable.cells[0] }));
timeGrid.receiveProps(__assign({}, this.joiner.joinProps(slicedProps, resourceDayTable), { dateProfile: dateProfile, cells: resourceDayTable.cells[0] }), context);
};

@@ -135,31 +138,19 @@ ResourceTimeGrid.prototype.renderNowIndicator = function (date) {

__extends(ResourceTimeGridView, _super);
function ResourceTimeGridView(context, viewSpec, dateProfileGenerator, parentEl) {
var _this = _super.call(this, context, viewSpec, dateProfileGenerator, parentEl) || this;
function ResourceTimeGridView() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.processOptions = memoize(_this._processOptions);
_this.flattenResources = memoize(flattenResources);
_this.buildResourceDayTable = memoize(buildResourceDayTable);
_this.resourceOrderSpecs = parseFieldSpecs(_this.opt('resourceOrder'));
if (_this.opt('columnHeader')) {
_this.header = new ResourceDayHeader(_this.context, _this.el.querySelector('.fc-head-container'));
}
_this.resourceTimeGrid = new ResourceTimeGrid(context, _this.timeGrid);
if (_this.dayGrid) {
_this.resourceDayGrid = new ResourceDayGrid(context, _this.dayGrid);
}
return _this;
}
ResourceTimeGridView.prototype.destroy = function () {
_super.prototype.destroy.call(this);
if (this.header) {
this.header.destroy();
}
this.resourceTimeGrid.destroy();
if (this.resourceDayGrid) {
this.resourceDayGrid.destroy();
}
ResourceTimeGridView.prototype._processOptions = function (options) {
this.resourceOrderSpecs = parseFieldSpecs(options.resourceOrder);
};
ResourceTimeGridView.prototype.render = function (props) {
_super.prototype.render.call(this, props); // for flags for updateSize
ResourceTimeGridView.prototype.render = function (props, context) {
_super.prototype.render.call(this, props, context); // for flags for updateSize. and will call _renderSkeleton/_unrenderSkeleton
var options = context.options, nextDayThreshold = context.nextDayThreshold;
this.processOptions(options);
var splitProps = this.splitter.splitProps(props);
var resources = this.flattenResources(props.resourceStore, this.resourceOrderSpecs);
var resourceDayTable = this.buildResourceDayTable(this.props.dateProfile, this.dateProfileGenerator, resources, this.opt('datesAboveResources'));
var resourceDayTable = this.buildResourceDayTable(props.dateProfile, props.dateProfileGenerator, resources, options.datesAboveResources);
if (this.header) {

@@ -172,9 +163,30 @@ this.header.receiveProps({

renderIntroHtml: this.renderHeadIntroHtml
});
}, context);
}
this.resourceTimeGrid.receiveProps(__assign({}, splitProps['timed'], { dateProfile: props.dateProfile, resourceDayTable: resourceDayTable }));
this.resourceTimeGrid.receiveProps(__assign({}, splitProps['timed'], { dateProfile: props.dateProfile, resourceDayTable: resourceDayTable }), context);
if (this.resourceDayGrid) {
this.resourceDayGrid.receiveProps(__assign({}, splitProps['allDay'], { dateProfile: props.dateProfile, resourceDayTable: resourceDayTable, isRigid: false, nextDayThreshold: this.nextDayThreshold }));
this.resourceDayGrid.receiveProps(__assign({}, splitProps['allDay'], { dateProfile: props.dateProfile, resourceDayTable: resourceDayTable, isRigid: false, nextDayThreshold: nextDayThreshold }), context);
}
this.startNowIndicator(props.dateProfile, props.dateProfileGenerator);
};
ResourceTimeGridView.prototype._renderSkeleton = function (context) {
_super.prototype._renderSkeleton.call(this, context);
if (context.options.columnHeader) {
this.header = new ResourceDayHeader(this.el.querySelector('.fc-head-container'));
}
this.resourceTimeGrid = new ResourceTimeGrid(this.timeGrid);
if (this.dayGrid) {
this.resourceDayGrid = new ResourceDayGrid(this.dayGrid);
}
};
ResourceTimeGridView.prototype._unrenderSkeleton = function () {
_super.prototype._unrenderSkeleton.call(this);
if (this.header) {
this.header.destroy();
}
this.resourceTimeGrid.destroy();
if (this.resourceDayGrid) {
this.resourceDayGrid.destroy();
}
};
ResourceTimeGridView.prototype.renderNowIndicator = function (date) {

@@ -181,0 +193,0 @@ this.resourceTimeGrid.renderNowIndicator(date);

/*!
FullCalendar Resource Time Grid Plugin v4.3.0
FullCalendar Resource Time Grid Plugin v4.4.0
Docs & License: https://fullcalendar.io/scheduler

@@ -58,4 +58,4 @@ (c) 2019 Adam Shaw

__extends(ResourceTimeGrid, _super);
function ResourceTimeGrid(context, timeGrid) {
var _this = _super.call(this, context, timeGrid.el) || this;
function ResourceTimeGrid(timeGrid) {
var _this = _super.call(this, timeGrid.el) || this;
_this.buildDayRanges = core.memoize(TimeGridPlugin.buildDayRanges);

@@ -66,15 +66,18 @@ _this.splitter = new ResourceCommonPlugin.VResourceSplitter();

_this.timeGrid = timeGrid;
context.calendar.registerInteractiveComponent(_this, {
el: _this.timeGrid.el
});
return _this;
}
ResourceTimeGrid.prototype.firstContext = function (context) {
context.calendar.registerInteractiveComponent(this, {
el: this.timeGrid.el
});
};
ResourceTimeGrid.prototype.destroy = function () {
this.calendar.unregisterInteractiveComponent(this);
this.context.calendar.unregisterInteractiveComponent(this);
};
ResourceTimeGrid.prototype.render = function (props) {
ResourceTimeGrid.prototype.render = function (props, context) {
var _this = this;
var timeGrid = this.timeGrid;
var dateEnv = context.dateEnv;
var dateProfile = props.dateProfile, resourceDayTable = props.resourceDayTable;
var dayRanges = this.dayRanges = this.buildDayRanges(resourceDayTable.dayTable, dateProfile, this.dateEnv);
var dayRanges = this.dayRanges = this.buildDayRanges(resourceDayTable.dayTable, dateProfile, dateEnv);
var splitProps = this.splitter.splitProps(props);

@@ -85,6 +88,6 @@ this.slicers = core.mapHash(splitProps, function (split, resourceId) {

var slicedProps = core.mapHash(this.slicers, function (slicer, resourceId) {
return slicer.sliceProps(splitProps[resourceId], dateProfile, null, timeGrid, dayRanges);
return slicer.sliceProps(splitProps[resourceId], dateProfile, null, context.calendar, timeGrid, dayRanges);
});
timeGrid.allowAcrossResources = dayRanges.length === 1;
timeGrid.receiveProps(__assign({}, this.joiner.joinProps(slicedProps, resourceDayTable), { dateProfile: dateProfile, cells: resourceDayTable.cells[0] }));
timeGrid.receiveProps(__assign({}, this.joiner.joinProps(slicedProps, resourceDayTable), { dateProfile: dateProfile, cells: resourceDayTable.cells[0] }), context);
};

@@ -139,31 +142,19 @@ ResourceTimeGrid.prototype.renderNowIndicator = function (date) {

__extends(ResourceTimeGridView, _super);
function ResourceTimeGridView(context, viewSpec, dateProfileGenerator, parentEl) {
var _this = _super.call(this, context, viewSpec, dateProfileGenerator, parentEl) || this;
function ResourceTimeGridView() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.processOptions = core.memoize(_this._processOptions);
_this.flattenResources = core.memoize(ResourceCommonPlugin.flattenResources);
_this.buildResourceDayTable = core.memoize(buildResourceDayTable);
_this.resourceOrderSpecs = core.parseFieldSpecs(_this.opt('resourceOrder'));
if (_this.opt('columnHeader')) {
_this.header = new ResourceCommonPlugin.ResourceDayHeader(_this.context, _this.el.querySelector('.fc-head-container'));
}
_this.resourceTimeGrid = new ResourceTimeGrid(context, _this.timeGrid);
if (_this.dayGrid) {
_this.resourceDayGrid = new resourceDaygrid.ResourceDayGrid(context, _this.dayGrid);
}
return _this;
}
ResourceTimeGridView.prototype.destroy = function () {
_super.prototype.destroy.call(this);
if (this.header) {
this.header.destroy();
}
this.resourceTimeGrid.destroy();
if (this.resourceDayGrid) {
this.resourceDayGrid.destroy();
}
ResourceTimeGridView.prototype._processOptions = function (options) {
this.resourceOrderSpecs = core.parseFieldSpecs(options.resourceOrder);
};
ResourceTimeGridView.prototype.render = function (props) {
_super.prototype.render.call(this, props); // for flags for updateSize
ResourceTimeGridView.prototype.render = function (props, context) {
_super.prototype.render.call(this, props, context); // for flags for updateSize. and will call _renderSkeleton/_unrenderSkeleton
var options = context.options, nextDayThreshold = context.nextDayThreshold;
this.processOptions(options);
var splitProps = this.splitter.splitProps(props);
var resources = this.flattenResources(props.resourceStore, this.resourceOrderSpecs);
var resourceDayTable = this.buildResourceDayTable(this.props.dateProfile, this.dateProfileGenerator, resources, this.opt('datesAboveResources'));
var resourceDayTable = this.buildResourceDayTable(props.dateProfile, props.dateProfileGenerator, resources, options.datesAboveResources);
if (this.header) {

@@ -176,9 +167,30 @@ this.header.receiveProps({

renderIntroHtml: this.renderHeadIntroHtml
});
}, context);
}
this.resourceTimeGrid.receiveProps(__assign({}, splitProps['timed'], { dateProfile: props.dateProfile, resourceDayTable: resourceDayTable }));
this.resourceTimeGrid.receiveProps(__assign({}, splitProps['timed'], { dateProfile: props.dateProfile, resourceDayTable: resourceDayTable }), context);
if (this.resourceDayGrid) {
this.resourceDayGrid.receiveProps(__assign({}, splitProps['allDay'], { dateProfile: props.dateProfile, resourceDayTable: resourceDayTable, isRigid: false, nextDayThreshold: this.nextDayThreshold }));
this.resourceDayGrid.receiveProps(__assign({}, splitProps['allDay'], { dateProfile: props.dateProfile, resourceDayTable: resourceDayTable, isRigid: false, nextDayThreshold: nextDayThreshold }), context);
}
this.startNowIndicator(props.dateProfile, props.dateProfileGenerator);
};
ResourceTimeGridView.prototype._renderSkeleton = function (context) {
_super.prototype._renderSkeleton.call(this, context);
if (context.options.columnHeader) {
this.header = new ResourceCommonPlugin.ResourceDayHeader(this.el.querySelector('.fc-head-container'));
}
this.resourceTimeGrid = new ResourceTimeGrid(this.timeGrid);
if (this.dayGrid) {
this.resourceDayGrid = new resourceDaygrid.ResourceDayGrid(this.dayGrid);
}
};
ResourceTimeGridView.prototype._unrenderSkeleton = function () {
_super.prototype._unrenderSkeleton.call(this);
if (this.header) {
this.header.destroy();
}
this.resourceTimeGrid.destroy();
if (this.resourceDayGrid) {
this.resourceDayGrid.destroy();
}
};
ResourceTimeGridView.prototype.renderNowIndicator = function (date) {

@@ -185,0 +197,0 @@ this.resourceTimeGrid.renderNowIndicator(date);

/*!
FullCalendar Resource Time Grid Plugin v4.3.0
FullCalendar Resource Time Grid Plugin v4.4.0
Docs & License: https://fullcalendar.io/scheduler
(c) 2019 Adam Shaw
*/
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@fullcalendar/core"),require("@fullcalendar/resource-common"),require("@fullcalendar/timegrid"),require("@fullcalendar/resource-daygrid")):"function"==typeof define&&define.amd?define(["exports","@fullcalendar/core","@fullcalendar/resource-common","@fullcalendar/timegrid","@fullcalendar/resource-daygrid"],r):r((e=e||self).FullCalendarResourceTimeGrid={},e.FullCalendar,e.FullCalendarResourceCommon,e.FullCalendarTimeGrid,e.FullCalendarResourceDayGrid)}(this,function(e,r,t,i,o){"use strict";var s="default"in t?t.default:t,a="default"in i?i.default:i,n=function(e,r){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(e,r)};function l(e,r){function t(){this.constructor=e}n(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}var c=function(){return(c=Object.assign||function(e){for(var r,t=1,i=arguments.length;t<i;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)},d=function(e){function o(o,s){var a=e.call(this,o,s.el)||this;return a.buildDayRanges=r.memoize(i.buildDayRanges),a.splitter=new t.VResourceSplitter,a.slicers={},a.joiner=new u,a.timeGrid=s,o.calendar.registerInteractiveComponent(a,{el:a.timeGrid.el}),a}return l(o,e),o.prototype.destroy=function(){this.calendar.unregisterInteractiveComponent(this)},o.prototype.render=function(e){var t=this,o=this.timeGrid,s=e.dateProfile,a=e.resourceDayTable,n=this.dayRanges=this.buildDayRanges(a.dayTable,s,this.dateEnv),l=this.splitter.splitProps(e);this.slicers=r.mapHash(l,function(e,r){return t.slicers[r]||new i.TimeGridSlicer});var d=r.mapHash(this.slicers,function(e,r){return e.sliceProps(l[r],s,null,o,n)});o.allowAcrossResources=1===n.length,o.receiveProps(c({},this.joiner.joinProps(d,a),{dateProfile:s,cells:a.cells[0]}))},o.prototype.renderNowIndicator=function(e){var r=this.timeGrid,t=this.props.resourceDayTable,i=this.slicers[""].sliceNowDate(e,r,this.dayRanges),o=this.joiner.expandSegs(t,i);r.renderNowIndicator(o,e)},o.prototype.buildPositionCaches=function(){this.timeGrid.buildPositionCaches()},o.prototype.queryHit=function(e,r){var t=this.timeGrid.positionToHit(e,r);if(t)return{component:this.timeGrid,dateSpan:{range:t.dateSpan.range,allDay:t.dateSpan.allDay,resourceId:this.props.resourceDayTable.cells[0][t.col].resource.id},dayEl:t.dayEl,rect:{left:t.relativeRect.left,right:t.relativeRect.right,top:t.relativeRect.top,bottom:t.relativeRect.bottom},layer:0}},o}(r.DateComponent),u=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return l(r,e),r.prototype.transformSeg=function(e,r,t){return[c({},e,{col:r.computeCol(e.col,t)})]},r}(t.VResourceJoiner),p=function(e){function i(i,s,a,n){var l=e.call(this,i,s,a,n)||this;return l.flattenResources=r.memoize(t.flattenResources),l.buildResourceDayTable=r.memoize(y),l.resourceOrderSpecs=r.parseFieldSpecs(l.opt("resourceOrder")),l.opt("columnHeader")&&(l.header=new t.ResourceDayHeader(l.context,l.el.querySelector(".fc-head-container"))),l.resourceTimeGrid=new d(i,l.timeGrid),l.dayGrid&&(l.resourceDayGrid=new o.ResourceDayGrid(i,l.dayGrid)),l}return l(i,e),i.prototype.destroy=function(){e.prototype.destroy.call(this),this.header&&this.header.destroy(),this.resourceTimeGrid.destroy(),this.resourceDayGrid&&this.resourceDayGrid.destroy()},i.prototype.render=function(r){e.prototype.render.call(this,r);var t=this.splitter.splitProps(r),i=this.flattenResources(r.resourceStore,this.resourceOrderSpecs),o=this.buildResourceDayTable(this.props.dateProfile,this.dateProfileGenerator,i,this.opt("datesAboveResources"));this.header&&this.header.receiveProps({resources:i,dates:o.dayTable.headerDates,dateProfile:r.dateProfile,datesRepDistinctDays:!0,renderIntroHtml:this.renderHeadIntroHtml}),this.resourceTimeGrid.receiveProps(c({},t.timed,{dateProfile:r.dateProfile,resourceDayTable:o})),this.resourceDayGrid&&this.resourceDayGrid.receiveProps(c({},t.allDay,{dateProfile:r.dateProfile,resourceDayTable:o,isRigid:!1,nextDayThreshold:this.nextDayThreshold}))},i.prototype.renderNowIndicator=function(e){this.resourceTimeGrid.renderNowIndicator(e)},i.needsResourceData=!0,i}(i.AbstractTimeGridView);function y(e,r,o,s){var a=i.buildDayTable(e,r);return s?new t.DayResourceTable(a,o):new t.ResourceDayTable(a,o)}var f=r.createPlugin({deps:[s,a],defaultView:"resourceTimeGridDay",views:{resourceTimeGrid:{class:p,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},resourceTimeGridDay:{type:"resourceTimeGrid",duration:{days:1}},resourceTimeGridWeek:{type:"resourceTimeGrid",duration:{weeks:1}}}});e.ResourceTimeGrid=d,e.ResourceTimeGridView=p,e.default=f,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@fullcalendar/core"),require("@fullcalendar/resource-common"),require("@fullcalendar/timegrid"),require("@fullcalendar/resource-daygrid")):"function"==typeof define&&define.amd?define(["exports","@fullcalendar/core","@fullcalendar/resource-common","@fullcalendar/timegrid","@fullcalendar/resource-daygrid"],r):r((e=e||self).FullCalendarResourceTimeGrid={},e.FullCalendar,e.FullCalendarResourceCommon,e.FullCalendarTimeGrid,e.FullCalendarResourceDayGrid)}(this,function(e,r,t,i,o){"use strict";var s="default"in t?t.default:t,n="default"in i?i.default:i,a=function(e,r){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(e,r)};function l(e,r){function t(){this.constructor=e}a(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}var c=function(){return(c=Object.assign||function(e){for(var r,t=1,i=arguments.length;t<i;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)},d=function(e){function o(o){var s=e.call(this,o.el)||this;return s.buildDayRanges=r.memoize(i.buildDayRanges),s.splitter=new t.VResourceSplitter,s.slicers={},s.joiner=new u,s.timeGrid=o,s}return l(o,e),o.prototype.firstContext=function(e){e.calendar.registerInteractiveComponent(this,{el:this.timeGrid.el})},o.prototype.destroy=function(){this.context.calendar.unregisterInteractiveComponent(this)},o.prototype.render=function(e,t){var o=this,s=this.timeGrid,n=t.dateEnv,a=e.dateProfile,l=e.resourceDayTable,d=this.dayRanges=this.buildDayRanges(l.dayTable,a,n),u=this.splitter.splitProps(e);this.slicers=r.mapHash(u,function(e,r){return o.slicers[r]||new i.TimeGridSlicer});var p=r.mapHash(this.slicers,function(e,r){return e.sliceProps(u[r],a,null,t.calendar,s,d)});s.allowAcrossResources=1===d.length,s.receiveProps(c({},this.joiner.joinProps(p,l),{dateProfile:a,cells:l.cells[0]}),t)},o.prototype.renderNowIndicator=function(e){var r=this.timeGrid,t=this.props.resourceDayTable,i=this.slicers[""].sliceNowDate(e,r,this.dayRanges),o=this.joiner.expandSegs(t,i);r.renderNowIndicator(o,e)},o.prototype.buildPositionCaches=function(){this.timeGrid.buildPositionCaches()},o.prototype.queryHit=function(e,r){var t=this.timeGrid.positionToHit(e,r);if(t)return{component:this.timeGrid,dateSpan:{range:t.dateSpan.range,allDay:t.dateSpan.allDay,resourceId:this.props.resourceDayTable.cells[0][t.col].resource.id},dayEl:t.dayEl,rect:{left:t.relativeRect.left,right:t.relativeRect.right,top:t.relativeRect.top,bottom:t.relativeRect.bottom},layer:0}},o}(r.DateComponent),u=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return l(r,e),r.prototype.transformSeg=function(e,r,t){return[c({},e,{col:r.computeCol(e.col,t)})]},r}(t.VResourceJoiner),p=function(e){function i(){var i=null!==e&&e.apply(this,arguments)||this;return i.processOptions=r.memoize(i._processOptions),i.flattenResources=r.memoize(t.flattenResources),i.buildResourceDayTable=r.memoize(f),i}return l(i,e),i.prototype._processOptions=function(e){this.resourceOrderSpecs=r.parseFieldSpecs(e.resourceOrder)},i.prototype.render=function(r,t){e.prototype.render.call(this,r,t);var i=t.options,o=t.nextDayThreshold;this.processOptions(i);var s=this.splitter.splitProps(r),n=this.flattenResources(r.resourceStore,this.resourceOrderSpecs),a=this.buildResourceDayTable(r.dateProfile,r.dateProfileGenerator,n,i.datesAboveResources);this.header&&this.header.receiveProps({resources:n,dates:a.dayTable.headerDates,dateProfile:r.dateProfile,datesRepDistinctDays:!0,renderIntroHtml:this.renderHeadIntroHtml},t),this.resourceTimeGrid.receiveProps(c({},s.timed,{dateProfile:r.dateProfile,resourceDayTable:a}),t),this.resourceDayGrid&&this.resourceDayGrid.receiveProps(c({},s.allDay,{dateProfile:r.dateProfile,resourceDayTable:a,isRigid:!1,nextDayThreshold:o}),t),this.startNowIndicator(r.dateProfile,r.dateProfileGenerator)},i.prototype._renderSkeleton=function(r){e.prototype._renderSkeleton.call(this,r),r.options.columnHeader&&(this.header=new t.ResourceDayHeader(this.el.querySelector(".fc-head-container"))),this.resourceTimeGrid=new d(this.timeGrid),this.dayGrid&&(this.resourceDayGrid=new o.ResourceDayGrid(this.dayGrid))},i.prototype._unrenderSkeleton=function(){e.prototype._unrenderSkeleton.call(this),this.header&&this.header.destroy(),this.resourceTimeGrid.destroy(),this.resourceDayGrid&&this.resourceDayGrid.destroy()},i.prototype.renderNowIndicator=function(e){this.resourceTimeGrid.renderNowIndicator(e)},i.needsResourceData=!0,i}(i.AbstractTimeGridView);function f(e,r,o,s){var n=i.buildDayTable(e,r);return s?new t.DayResourceTable(n,o):new t.ResourceDayTable(n,o)}var h=r.createPlugin({deps:[s,n],defaultView:"resourceTimeGridDay",views:{resourceTimeGrid:{class:p,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},resourceTimeGridDay:{type:"resourceTimeGrid",duration:{days:1}},resourceTimeGridWeek:{type:"resourceTimeGrid",duration:{weeks:1}}}});e.ResourceTimeGrid=d,e.ResourceTimeGridView=p,e.default=h,Object.defineProperty(e,"__esModule",{value:!0})});
{
"name": "@fullcalendar/resource-timegrid",
"version": "4.3.0",
"version": "4.4.0",
"title": "FullCalendar Resource Time Grid Plugin",

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

"dependencies": {
"@fullcalendar/resource-common": "~4.3.0",
"@fullcalendar/timegrid": "~4.3.0",
"@fullcalendar/resource-daygrid": "~4.3.0"
"@fullcalendar/resource-common": "~4.4.0",
"@fullcalendar/timegrid": "~4.4.0",
"@fullcalendar/resource-daygrid": "~4.4.0"
},
"peerDependencies": {
"@fullcalendar/core": "~4.3.0"
"@fullcalendar/core": "~4.4.0"
},

@@ -35,0 +35,0 @@ "main": "main.js",

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