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 5.7.0 to 5.7.2

2

main.cjs.js
/*!
FullCalendar Scheduler v5.7.0
FullCalendar Scheduler v5.7.2
Docs & License: https://fullcalendar.io/scheduler

@@ -4,0 +4,0 @@ (c) 2021 Adam Shaw

import { createElement, DateComponent, Hit, DateMarker, DateProfile, Duration, EventStore, EventUiHash, DateSpan, EventInteractionState, VNode, CssDimValue, PluginDef } from '@fullcalendar/common';
import * as _fullcalendar_common from '@fullcalendar/common';
import { createElement, DateComponent, Hit, DateMarker, DateProfile, Duration, EventStore, EventUiHash, DateSpan, EventInteractionState, VNode, CssDimValue } from '@fullcalendar/common';
import '@fullcalendar/premium-common';

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

interface ResourceDayTimeColsProps {

@@ -51,6 +51,6 @@ dateProfile: DateProfile;

declare const _default: _fullcalendar_common.PluginDef;
declare const _default: PluginDef;
export default _default;
export { ResourceDayTimeCols, ResourceDayTimeColsView };
/*!
FullCalendar Scheduler v5.7.0
FullCalendar Scheduler v5.7.2
Docs & License: https://fullcalendar.io/scheduler

@@ -39,2 +39,4 @@ (c) 2021 Adam Shaw

function __extends(d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);

@@ -41,0 +43,0 @@ function __() { this.constructor = d; }

/*!
FullCalendar Scheduler v5.7.0
FullCalendar Scheduler v5.7.2
Docs & License: https://fullcalendar.io/scheduler
(c) 2021 Adam Shaw
*/
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);
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);
/*!
FullCalendar Scheduler v5.7.0
FullCalendar Scheduler v5.7.2
Docs & License: https://fullcalendar.io/scheduler

@@ -4,0 +4,0 @@ (c) 2021 Adam Shaw

{
"name": "@fullcalendar/resource-timegrid",
"version": "5.7.0",
"version": "5.7.2",
"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.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",
"@fullcalendar/common": "~5.7.2",
"@fullcalendar/premium-common": "~5.7.2",
"@fullcalendar/resource-common": "~5.7.2",
"@fullcalendar/resource-daygrid": "~5.7.2",
"@fullcalendar/timegrid": "~5.7.2",
"tslib": "^2.0.3"

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

"devDependencies": {
"@fullcalendar/core-preact": "5.7.0"
"@fullcalendar/core-preact": "5.7.2"
}
}
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