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 6.0.0-beta.4 to 6.0.0

6

index.global.js
/*!
FullCalendar Resource Time Grid Plugin v6.0.0-beta.4
Docs & License: https://fullcalendar.io/premium
FullCalendar Resource Time Grid Plugin v6.0.0
Docs & License: https://fullcalendar.io/docs/vertical-resource-view
(c) 2022 Adam Shaw

@@ -89,3 +89,3 @@ */

name: '@fullcalendar/resource-timegrid',
premiumReleaseDate: '2022-12-07',
premiumReleaseDate: '2022-12-14',
deps: [

@@ -92,0 +92,0 @@ premiumCommonPlugin__default["default"],

/*!
FullCalendar Resource Time Grid Plugin v6.0.0-beta.4
Docs & License: https://fullcalendar.io/premium
FullCalendar Resource Time Grid Plugin v6.0.0
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(r),h=u(s),m=u(o);class p extends n.VResourceJoiner{transformSeg(e,t,l){return[Object.assign(Object.assign({},e),{col:t.computeCol(e.col,l)})]}}class R extends t.DateComponent{constructor(){super(...arguments),this.buildDayRanges=t.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:l}=this,{dateEnv:r,options:s}=l,{dateProfile:o,resourceDayTableModel:n}=e,d=this.dayRanges=this.buildDayRanges(n.dayTableModel,o,r),u=this.splitter.splitProps(e);this.slicers=t.mapHash(u,(e,t)=>this.slicers[t]||new a.DayTimeColsSlicer);let c=t.mapHash(this.slicers,(e,t)=>e.sliceProps(u[t],o,null,l,d));return i.createElement(t.NowTimer,{unit:s.nowIndicator?"minute":"day"},(t,l)=>i.createElement(a.TimeCols,Object.assign({ref:this.timeColsRef},this.joiner.joinProps(c,n),{dateProfile:o,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:s.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=t.memoize(n.flattenResources),this.buildResourceTimeColsModel=t.memoize(y),this.buildSlatMetas=t.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=l.createPlugin({name:"@fullcalendar/resource-timegrid",premiumReleaseDate:"2022-12-07",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.Internal,FullCalendar,FullCalendar.PremiumCommon,FullCalendar.Resource,FullCalendar.TimeGrid,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(r),h=u(s),m=u(o);class p extends n.VResourceJoiner{transformSeg(e,t,l){return[Object.assign(Object.assign({},e),{col:t.computeCol(e.col,l)})]}}class R extends t.DateComponent{constructor(){super(...arguments),this.buildDayRanges=t.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:l}=this,{dateEnv:r,options:s}=l,{dateProfile:o,resourceDayTableModel:n}=e,d=this.dayRanges=this.buildDayRanges(n.dayTableModel,o,r),u=this.splitter.splitProps(e);this.slicers=t.mapHash(u,(e,t)=>this.slicers[t]||new a.DayTimeColsSlicer);let c=t.mapHash(this.slicers,(e,t)=>e.sliceProps(u[t],o,null,l,d));return i.createElement(t.NowTimer,{unit:s.nowIndicator?"minute":"day"},(t,l)=>i.createElement(a.TimeCols,Object.assign({ref:this.timeColsRef},this.joiner.joinProps(c,n),{dateProfile:o,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:s.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=t.memoize(n.flattenResources),this.buildResourceTimeColsModel=t.memoize(y),this.buildSlatMetas=t.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=l.createPlugin({name:"@fullcalendar/resource-timegrid",premiumReleaseDate:"2022-12-14",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.Internal,FullCalendar,FullCalendar.PremiumCommon,FullCalendar.Resource,FullCalendar.TimeGrid,FullCalendar.Preact,FullCalendar.TimeGrid.Internal,FullCalendar.Resource.Internal,FullCalendar.ResourceDayGrid.Internal);

@@ -14,3 +14,3 @@ import { createPlugin } from '@fullcalendar/core/index.js';

name: '@fullcalendar/resource-timegrid',
premiumReleaseDate: '2022-12-07',
premiumReleaseDate: '2022-12-14',
deps: [

@@ -17,0 +17,0 @@ premiumCommonPlugin,

For complete licensing information, visit:
https://fullcalendar.io/scheduler/license
https://fullcalendar.io/license

@@ -10,3 +10,3 @@ FullCalendar Scheduler is tri-licensed, meaning you must choose

(a paid license, intended for commercial use)
https://fullcalendar.io/scheduler/license-details
https://fullcalendar.io/commercial-license

@@ -13,0 +13,0 @@ - Creative Commons Non-Commercial No-Derivatives

{
"name": "@fullcalendar/resource-timegrid",
"version": "6.0.0-beta.4",
"version": "6.0.0",
"title": "FullCalendar Resource Time Grid Plugin",
"description": "Displays events on a vertical resource view with time slots",
"keywords": [
"calendar",
"event",
"full-sized"
"full-sized",
"fullcalendar",
"scheduler",
"resource"
],
"homepage": "https://fullcalendar.io/premium",
"docs": "https://fullcalendar.io/docs/vertical-resource-view",
"homepage": "https://fullcalendar.io/docs/vertical-resource-view",
"dependencies": {
"@fullcalendar/premium-common": "~6.0.0",
"@fullcalendar/resource-daygrid": "~6.0.0",
"@fullcalendar/timegrid": "~6.0.0"
},
"peerDependencies": {
"@fullcalendar/core": "~6.0.0",
"@fullcalendar/resource": "~6.0.0"
},
"type": "module",
"bugs": "https://fullcalendar.io/reporting-bugs",
"repository": {
"type": "git",
"url": "https://github.com/fullcalendar/fullcalendar-scheduler.git",
"homepage": "https://github.com/fullcalendar/fullcalendar-scheduler",
"directory": "packages/resource-timegrid"
"url": "https://github.com/fullcalendar/fullcalendar-workspace.git",
"directory": "premium/packages/resource-timegrid"
},

@@ -25,14 +38,2 @@ "license": "SEE LICENSE IN LICENSE.md",

"copyright": "2022 Adam Shaw",
"title": "FullCalendar Resource Time Grid Plugin",
"description": "Displays events on a vertical resource view with time slots",
"dependencies": {
"@fullcalendar/premium-common": "6.0.0-beta.4",
"@fullcalendar/resource-daygrid": "6.0.0-beta.4",
"@fullcalendar/timegrid": "6.0.0-beta.4"
},
"peerDependencies": {
"@fullcalendar/core": "6.0.0-beta.4",
"@fullcalendar/resource": "6.0.0-beta.4"
},
"type": "module",
"main": "./index.cjs",

@@ -39,0 +40,0 @@ "module": "./index.js",

# FullCalendar Resource Time Grid Plugin
Displays events on a vertical resource view with time slots
Display events on day/resource time slots
[View the docs »](https://fullcalendar.io/docs/vertical-resource-view)
## Installation
This package was created from the [FullCalendar monorepo »](https://github.com/fullcalendar/fullcalendar-scheduler)
Install the necessary packages. The **resource plugin is a required [peer dependency](https://nodejs.org/es/blog/npm/peer-dependencies/)**:
```sh
npm install @fullcalendar/core @fullcalendar/resource @fullcalendar/resource-timegrid
```
## Usage
Instantiate a Calendar with the necessary plugin:
```js
import { Calendar } from '@fullcalendar/core'
import resourceTimeGridPlugin from '@fullcalendar/resource-timegrid'
const calendarEl = document.getElementById('calendar')
const calendar = new Calendar(calendarEl, {
plugins: [resourceTimeGridPlugin],
initialView: 'resourceTimeGridDay',
resources: [
{ title: 'Resource A' },
{ title: 'Resource B' }
]
})
calendar.render()
```

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