@progress/kendo-vue-scheduler 6.4.0-develop.2 → 6.4.0-develop.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Scheduler.js +1 -1
- package/Scheduler.mjs +30 -37
- package/dist/cdn/js/kendo-vue-scheduler.js +1 -1
- package/index.d.mts +3 -3
- package/index.d.ts +3 -3
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +11 -11
- package/tasks/SchedulerEditTask.js +1 -1
- package/tasks/SchedulerEditTask.mjs +1 -1
- package/tasks/SchedulerViewTask.js +1 -1
- package/tasks/SchedulerViewTask.mjs +1 -1
- package/views/common/VerticalResourceIterator.js +1 -1
- package/views/common/VerticalResourceIterator.mjs +13 -13
package/index.d.mts
CHANGED
|
@@ -2739,10 +2739,10 @@ readonly showOccurrenceDialog?: boolean;
|
|
|
2739
2739
|
readonly showRemoveDialog?: boolean;
|
|
2740
2740
|
readonly onRemoveclick?: (e: any) => void;
|
|
2741
2741
|
readonly onDataaction?: (action: DataAction, event?: any) => void;
|
|
2742
|
+
readonly itemRef?: any;
|
|
2742
2743
|
readonly removeDialog?: any;
|
|
2743
2744
|
readonly occurrenceDialog?: any;
|
|
2744
2745
|
readonly series?: boolean;
|
|
2745
|
-
readonly itemRef?: any;
|
|
2746
2746
|
readonly viewItem?: any;
|
|
2747
2747
|
readonly onFormItemChange?: (event: SchedulerEditItemStateChangeEvent<DataItem | null>) => void;
|
|
2748
2748
|
readonly onDragitemchange?: (event: SchedulerEditItemStateChangeEvent<DataItem | null>) => void;
|
|
@@ -10093,7 +10093,7 @@ export declare interface SchedulerViewSlotProps extends SchedulerSlotProps {
|
|
|
10093
10093
|
* @hidden
|
|
10094
10094
|
*/
|
|
10095
10095
|
export declare const SchedulerViewTask: DefineComponent<ExtractPropTypes< {
|
|
10096
|
-
|
|
10096
|
+
itemRef: PropType<any>;
|
|
10097
10097
|
id: PropType<string>;
|
|
10098
10098
|
tabIndex: PropType<number>;
|
|
10099
10099
|
head: PropType<boolean>;
|
|
@@ -10135,7 +10135,7 @@ onRemoveclick: PropType<Function>;
|
|
|
10135
10135
|
}>, {}, {}, {}, {
|
|
10136
10136
|
handleRemoveClick(event: SchedulerTaskMouseEvent): void;
|
|
10137
10137
|
}, ComponentOptionsMixin, ComponentOptionsMixin, "removeclick"[], "removeclick", PublicProps, Readonly<ExtractPropTypes< {
|
|
10138
|
-
|
|
10138
|
+
itemRef: PropType<any>;
|
|
10139
10139
|
id: PropType<string>;
|
|
10140
10140
|
tabIndex: PropType<number>;
|
|
10141
10141
|
head: PropType<boolean>;
|
package/index.d.ts
CHANGED
|
@@ -2739,10 +2739,10 @@ readonly showOccurrenceDialog?: boolean;
|
|
|
2739
2739
|
readonly showRemoveDialog?: boolean;
|
|
2740
2740
|
readonly onRemoveclick?: (e: any) => void;
|
|
2741
2741
|
readonly onDataaction?: (action: DataAction, event?: any) => void;
|
|
2742
|
+
readonly itemRef?: any;
|
|
2742
2743
|
readonly removeDialog?: any;
|
|
2743
2744
|
readonly occurrenceDialog?: any;
|
|
2744
2745
|
readonly series?: boolean;
|
|
2745
|
-
readonly itemRef?: any;
|
|
2746
2746
|
readonly viewItem?: any;
|
|
2747
2747
|
readonly onFormItemChange?: (event: SchedulerEditItemStateChangeEvent<DataItem | null>) => void;
|
|
2748
2748
|
readonly onDragitemchange?: (event: SchedulerEditItemStateChangeEvent<DataItem | null>) => void;
|
|
@@ -10093,7 +10093,7 @@ export declare interface SchedulerViewSlotProps extends SchedulerSlotProps {
|
|
|
10093
10093
|
* @hidden
|
|
10094
10094
|
*/
|
|
10095
10095
|
export declare const SchedulerViewTask: DefineComponent<ExtractPropTypes< {
|
|
10096
|
-
|
|
10096
|
+
itemRef: PropType<any>;
|
|
10097
10097
|
id: PropType<string>;
|
|
10098
10098
|
tabIndex: PropType<number>;
|
|
10099
10099
|
head: PropType<boolean>;
|
|
@@ -10135,7 +10135,7 @@ onRemoveclick: PropType<Function>;
|
|
|
10135
10135
|
}>, {}, {}, {}, {
|
|
10136
10136
|
handleRemoveClick(event: SchedulerTaskMouseEvent): void;
|
|
10137
10137
|
}, ComponentOptionsMixin, ComponentOptionsMixin, "removeclick"[], "removeclick", PublicProps, Readonly<ExtractPropTypes< {
|
|
10138
|
-
|
|
10138
|
+
itemRef: PropType<any>;
|
|
10139
10139
|
id: PropType<string>;
|
|
10140
10140
|
tabIndex: PropType<number>;
|
|
10141
10141
|
head: PropType<boolean>;
|
package/package-metadata.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-scheduler",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate:
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-scheduler",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1745846730,version:"6.4.0-develop.4",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=vue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
|
package/package-metadata.mjs
CHANGED
|
@@ -10,8 +10,8 @@ const e = {
|
|
|
10
10
|
productName: "Kendo UI for Vue",
|
|
11
11
|
productCode: "KENDOUIVUE",
|
|
12
12
|
productCodes: ["KENDOUIVUE"],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: "6.4.0-develop.
|
|
13
|
+
publishDate: 1745846730,
|
|
14
|
+
version: "6.4.0-develop.4",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=vue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
|
|
16
16
|
};
|
|
17
17
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-vue-scheduler",
|
|
3
|
-
"version": "6.4.0-develop.
|
|
3
|
+
"version": "6.4.0-develop.4",
|
|
4
4
|
"description": "TODO",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"@progress/kendo-date-math": "^1.5.13",
|
|
22
22
|
"@progress/kendo-drawing": "^1.20.1",
|
|
23
23
|
"@progress/kendo-licensing": "^1.4.0",
|
|
24
|
-
"@progress/kendo-vue-common": "6.4.0-develop.
|
|
25
|
-
"@progress/kendo-vue-buttons": "6.4.0-develop.
|
|
26
|
-
"@progress/kendo-vue-dateinputs": "6.4.0-develop.
|
|
27
|
-
"@progress/kendo-vue-dialogs": "6.4.0-develop.
|
|
28
|
-
"@progress/kendo-vue-dropdowns": "6.4.0-develop.
|
|
29
|
-
"@progress/kendo-vue-form": "6.4.0-develop.
|
|
30
|
-
"@progress/kendo-vue-inputs": "6.4.0-develop.
|
|
31
|
-
"@progress/kendo-vue-intl": "6.4.0-develop.
|
|
32
|
-
"@progress/kendo-vue-popup": "6.4.0-develop.
|
|
24
|
+
"@progress/kendo-vue-common": "6.4.0-develop.4",
|
|
25
|
+
"@progress/kendo-vue-buttons": "6.4.0-develop.4",
|
|
26
|
+
"@progress/kendo-vue-dateinputs": "6.4.0-develop.4",
|
|
27
|
+
"@progress/kendo-vue-dialogs": "6.4.0-develop.4",
|
|
28
|
+
"@progress/kendo-vue-dropdowns": "6.4.0-develop.4",
|
|
29
|
+
"@progress/kendo-vue-form": "6.4.0-develop.4",
|
|
30
|
+
"@progress/kendo-vue-inputs": "6.4.0-develop.4",
|
|
31
|
+
"@progress/kendo-vue-intl": "6.4.0-develop.4",
|
|
32
|
+
"@progress/kendo-vue-popup": "6.4.0-develop.4",
|
|
33
33
|
"@progress/kendo-svg-icons": "^4.0.0",
|
|
34
34
|
"vue": "^3.0.2"
|
|
35
35
|
},
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"package": {
|
|
55
55
|
"productName": "Kendo UI for Vue",
|
|
56
56
|
"productCode": "KENDOUIVUE",
|
|
57
|
-
"publishDate":
|
|
57
|
+
"publishDate": 1745846730,
|
|
58
58
|
"licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=vue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
|
|
59
59
|
}
|
|
60
60
|
},
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),i=require("./SchedulerViewTask.js"),o=require("../utils/main.js"),s=require("../constants/main.js"),n=require("@progress/kendo-vue-common"),c=require("../hooks/useEditable.js");function a(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!r.isVNode(e)}const h=r.defineComponent({name:"KendoSchedulerEditTask",emits:["dataaction","showremovedialogchange","showoccurrencedialogchange","removeitemchange"],props:{viewTask:[String,Function,Object],removeDialog:[String,Function,Object],removeItem:[String,Function,Object],occurrenceDialog:[String,Function,Object],task:[String,Function,Object],showOccurrenceDialog:{type:Boolean,default:void 0},showRemoveDialog:{type:Boolean,default:void 0},series:{type:Boolean,default:void 0},refTo:[Function,Object],id:String,tabIndex:Number,editable:[Object,Boolean],head:Boolean,tail:Boolean,order:Number,zonedStart:Object,zonedEnd:Object,slots:Array,group:Object,range:Object,isException:Boolean,isRecurring:Boolean,isAllDay:Boolean,uid:[String,Number],start:Date,end:Date,originalStart:Date,startTimezone:String,endTimezone:String,title:String,description:String,occurrenceId:String,recurrenceExceptions:Array,recurrenceRule:String,recurrenceId:[String,Number],dataItem:Object},created(){},inject:{bv:{default:null},ks:{default:null}},provide(){return{et:this.et,removeTask:this.handleRemoveItemChange,removeDialog:this.handleRemoveDialogChange,occurrenceDialog:this.handleOccurrenceDialogChange,ksCancel:this.handleCancel,ksSeriesClick:this.handleSeriesClick,ksOccurrenceClick:this.handleOccurrenceClick,ksRemoveConfirm:this.handleRemoveConfirm}},data(){return{et:{removeItem:null,showRemoveDialog:!1,showOccurrenceDialog:!1},currentSeries:null,currentRemoveItem:null,currentShowRemoveDialog:null,currentShowOccurrenceDialog:null}},computed:{compSeries(){return this.series!==void 0?this.series:this.currentSeries},compRemoveItem(){return this.removeItem!==void 0?this.removeItem:this.currentRemoveItem},compShowRemoveDialog(){return this.showRemoveDialog!==void 0?this.showRemoveDialog:this.currentShowRemoveDialog},compShowOccurrenceDialog(){return this.showOccurrenceDialog!==void 0?this.showOccurrenceDialog:this.currentShowOccurrenceDialog},currentEditable(){return c.useEditable(this.$props.editable)}},render(){const e=n.getDefaultSlots(this);return
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),i=require("./SchedulerViewTask.js"),o=require("../utils/main.js"),s=require("../constants/main.js"),n=require("@progress/kendo-vue-common"),c=require("../hooks/useEditable.js");function a(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!r.isVNode(e)}const h=r.defineComponent({name:"KendoSchedulerEditTask",emits:["dataaction","showremovedialogchange","showoccurrencedialogchange","removeitemchange"],props:{viewTask:[String,Function,Object],removeDialog:[String,Function,Object],removeItem:[String,Function,Object],occurrenceDialog:[String,Function,Object],task:[String,Function,Object],showOccurrenceDialog:{type:Boolean,default:void 0},showRemoveDialog:{type:Boolean,default:void 0},series:{type:Boolean,default:void 0},refTo:[Function,Object],id:String,tabIndex:Number,editable:[Object,Boolean],head:Boolean,tail:Boolean,order:Number,zonedStart:Object,zonedEnd:Object,slots:Array,group:Object,range:Object,isException:Boolean,isRecurring:Boolean,isAllDay:Boolean,uid:[String,Number],start:Date,end:Date,originalStart:Date,startTimezone:String,endTimezone:String,title:String,description:String,occurrenceId:String,recurrenceExceptions:Array,recurrenceRule:String,recurrenceId:[String,Number],dataItem:Object},created(){},inject:{bv:{default:null},ks:{default:null}},provide(){return{et:this.et,removeTask:this.handleRemoveItemChange,removeDialog:this.handleRemoveDialogChange,occurrenceDialog:this.handleOccurrenceDialogChange,ksCancel:this.handleCancel,ksSeriesClick:this.handleSeriesClick,ksOccurrenceClick:this.handleOccurrenceClick,ksRemoveConfirm:this.handleRemoveConfirm}},data(){return{et:{removeItem:null,showRemoveDialog:!1,showOccurrenceDialog:!1},currentSeries:null,currentRemoveItem:null,currentShowRemoveDialog:null,currentShowOccurrenceDialog:null}},computed:{compSeries(){return this.series!==void 0?this.series:this.currentSeries},compRemoveItem(){return this.removeItem!==void 0?this.removeItem:this.currentRemoveItem},compShowRemoveDialog(){return this.showRemoveDialog!==void 0?this.showRemoveDialog:this.currentShowRemoveDialog},compShowOccurrenceDialog(){return this.showOccurrenceDialog!==void 0?this.showOccurrenceDialog:this.currentShowOccurrenceDialog},currentEditable(){return c.useEditable(this.$props.editable)}},render(){const e=n.getDefaultSlots(this);return r.createVNode(i.SchedulerViewTask,{id:this.$props.id,tabIndex:this.$props.tabIndex,head:this.$props.head,tail:this.$props.tail,order:this.$props.order,zonedStart:this.$props.zonedStart,zonedEnd:this.$props.zonedEnd,slots:this.$props.slots,group:this.$props.group,range:this.$props.range,isException:this.$props.isException,isRecurring:this.$props.isRecurring,isAllDay:this.$props.isAllDay,uid:this.$props.uid,start:this.$props.start,end:this.$props.end,originalStart:this.$props.originalStart,startTimezone:this.$props.startTimezone,endTimezone:this.$props.endTimezone,title:this.$props.title,description:this.$props.description,occurrenceId:this.$props.occurrenceId,recurrenceExceptions:this.$props.recurrenceExceptions,recurrenceRule:this.$props.recurrenceRule,recurrenceId:this.$props.recurrenceId,dataItem:this.$props.dataItem,removeItem:this.compRemoveItem,task:this.$props.task,editable:this.$props.editable,showOccurrenceDialog:this.compShowOccurrenceDialog,showRemoveDialog:this.compShowRemoveDialog,onRemoveclick:this.handleRemoveClick},a(e)?e:{default:()=>[e]})},methods:{setRemoveItem(e,t){this.currentRemoveItem=e,this.$emit("removeitemchange",{item:e,event:t})},setShowRemoveDialog(e,t){this.currentShowRemoveDialog=e,this.$emit("showremovedialogchange",{show:e,event:t})},setShowOccurrenceDialog(e,t){this.currentShowOccurrenceDialog=e,this.$emit("showoccurrencedialogchange",{show:e,event:t})},handleRemoveClick(e){this.currentEditable.remove&&(this.setRemoveItem(this.$props.dataItem,e),this.$props.isRecurring?this.setShowOccurrenceDialog(!0,e):this.setShowRemoveDialog(!0,e))},handleCancel(e){this.currentSeries=null,this.setRemoveItem(null,e),this.setShowRemoveDialog(!1,e),this.setShowOccurrenceDialog(!1,e)},handleRemoveConfirm(e){this.compRemoveItem&&this.$emit("dataaction",{type:s.DATA_ACTION.remove,series:this.compSeries,dataItem:this.compRemoveItem}),this.setRemoveItem(null,e),this.setShowRemoveDialog(!1,e)},handleRemoveItemChange(e,t){this.setRemoveItem&&this.setRemoveItem(e,t)},handleRemoveDialogChange(e,t){this.setShowRemoveDialog&&this.setShowRemoveDialog(e,t)},handleOccurrenceDialogChange(e,t){this.setShowOccurrenceDialog&&this.setShowOccurrenceDialog(e,t)},handleOccurrenceClick(e){this.compRemoveItem&&(this.currentSeries=!1,this.setRemoveItem(this.$props.dataItem,e),this.setShowRemoveDialog(!0,e)),this.setShowOccurrenceDialog(!1,e)},handleSeriesClick(e){if(this.compRemoveItem){this.currentSeries=!0;const t=o.findMaster(this.compRemoveItem,this.ks.fields,this.ks.dataItems);this.setRemoveItem(t,e),this.setShowRemoveDialog(!0,e)}this.setShowOccurrenceDialog(!1,e)}}});exports.SchedulerEditTask=h;
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),n=require("./SchedulerTask.js"),o=require("@progress/kendo-vue-common");function s(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const c=t.defineComponent({name:"KendoSchedulerViewTask",emits:["removeclick"],props:{
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),n=require("./SchedulerTask.js"),o=require("@progress/kendo-vue-common");function s(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!t.isVNode(e)}const c=t.defineComponent({name:"KendoSchedulerViewTask",emits:["removeclick"],props:{itemRef:[Function,Object],id:String,tabIndex:Number,head:Boolean,tail:Boolean,order:Number,zonedStart:Object,zonedEnd:Object,slots:Array,group:Object,range:Object,isException:Boolean,isRecurring:Boolean,isAllDay:Boolean,uid:[String,Number],start:Date,end:Date,originalStart:Date,startTimezone:String,endTimezone:String,title:String,description:String,occurrenceId:String,recurrenceExceptions:Array,recurrenceRule:String,recurrenceId:[String,Number],dataItem:Object,removeItem:Object,task:[String,Function,Object],editable:[Object,Boolean],showOccurrenceDialog:{type:Boolean,default:void 0},showRemoveDialog:{type:Boolean,default:void 0},onRemoveclick:Function},render(){const e=o.getDefaultSlots(this);let r;const i=t.createVNode(n.SchedulerTask,{id:this.$props.id,tabIndex:this.$props.tabIndex,head:this.$props.head,tail:this.$props.tail,order:this.$props.order,zonedStart:this.$props.zonedStart,zonedEnd:this.$props.zonedEnd,slots:this.$props.slots,group:this.$props.group,range:this.$props.range,isException:this.$props.isException,isRecurring:this.$props.isRecurring,isAllDay:this.$props.isAllDay,uid:this.$props.uid,start:this.$props.start,end:this.$props.end,originalStart:this.$props.originalStart,startTimezone:this.$props.startTimezone,endTimezone:this.$props.endTimezone,title:this.$props.title,description:this.$props.description,occurrenceId:this.$props.occurrenceId,recurrenceExceptions:this.$props.recurrenceExceptions,recurrenceRule:this.$props.recurrenceRule,recurrenceId:this.$props.recurrenceId,dataItem:this.$props.dataItem,removeItem:this.removeItem,editable:this.$props.editable,showOccurrenceDialog:this.showOccurrenceDialog,showRemoveDialog:this.showRemoveDialog,onRemoveclick:this.handleRemoveClick},s(e)?e:{default:()=>[e]});return r=o.getTemplate.call(this,{h:t.h,template:this.$props.task,defaultRendering:i,defaultSlots:e,additionalListeners:{removeclick:this.handleRemoveClick}}),r},methods:{handleRemoveClick(e){this.$emit("removeclick",e)}}});exports.SchedulerViewTask=c;
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),b=require("./utils.js"),S=require("../../context/SchedulerResourceIteratorContext.js"),f=require("@progress/kendo-vue-common"),C=require("../day/DayViewVerticalSlotsRow.js"),I=require("../month/MonthViewBody.js"),g=require("../time/TimelineViewBody.js");function
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),b=require("./utils.js"),S=require("../../context/SchedulerResourceIteratorContext.js"),f=require("@progress/kendo-vue-common"),C=require("../day/DayViewVerticalSlotsRow.js"),I=require("../month/MonthViewBody.js"),g=require("../time/TimelineViewBody.js");function O(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!o.isVNode(s)}const j=0,B=o.defineComponent({name:"KendoVerticalResourceIterator",emits:["dataaction"],props:{more:Object,group:Object,resources:Array,nested:Boolean,wrapGroup:Boolean,cellContent:Object,emptyCell:Boolean,onDataaction:Function,editable:[Boolean,Object]},render(){const s=this,i=f.getDefaultSlots(this),{nested:y,wrapGroup:m,more:t}=this.$props,u=this.$props.cellContent||W,d=b.toGroupResources(this.$props.group,this.$props.resources),a=0,h=0,v=function(e,l){return t?t.timelineSlots?o.createVNode(g.TimelineViewBody,{slotRender:t.slotRender,viewSlot:t.viewSlot,groupIndex:l,ranges:t.ranges,workDayStart:t.workDayStart,workDayEnd:t.workDayEnd,timelineSlots:t.timelineSlots,onDataaction:this.handleDataAction,editable:t.editable},null):t.monthSlots?t.ranges.map(function(r,c){return o.createVNode(I.MonthViewBody,{slotRender:t.slotRender,viewSlot:t.viewSlot,ranges:t.ranges,groupIndex:l,monthSlots:t.monthSlots,rangeIndex:c,itemsPerSlot:t.itemsPerSlot,onDataaction:this.handleDataAction,editable:t.editable},null)},this):t.timeSlots.filter(r=>r.group.index===l&&r.range.index===j).map(function(r,c,n){return o.createVNode(C.DayViewVerticalSlotsRow,{slotRender:t.slotRender,viewSlot:t.viewSlot,groupIndex:l,onDataaction:this.handleDataAction,root:r,rootIndex:c,filtered:n,timeRanges:t.timeRanges,timeSlots:t.timeSlots,workDayStart:t.workDayStart,workDayEnd:t.workDayEnd,numberOfDays:t.numberOfDays,workWeekStart:t.workWeekStart,workWeekEnd:t.workWeekEnd,editable:t.editable,currentTimeMarker:t.currentTimeMarker},null)},this):null},N=function(e){return o.createVNode("div",{class:"k-scheduler-row"},[o.createVNode("div",{class:"k-scheduler-row"},[e.resources.map(function(l,r){return o.createVNode("div",{key:r,class:"k-scheduler-cell k-resource-cell k-heading-cell","data-depth-index":r},null)},this)])])},k=function(e,l=!0){const{children:r}=e,c=e.resources.length>0;if(e.depth===e.resources.length||!c){let p;return[o.createVNode(S.SchedulerResourceIteratorContext,{noWrap:!0,resource:e.resources[e.depth],groupIndex:c?e.groupIndex:0},O(p=f.getDefaultSlots(s))?p:{default:()=>[p]}),v.call(this,e.resources[e.depth],c?e.groupIndex:0)]}const n=e.resources[e.depth].data.length;return e.resources[e.depth].data.map(function(p,V){return o.createVNode("div",{key:V,class:"k-scheduler-row"},[l&&o.createVNode("div",{class:"k-scheduler-cell k-group-cell k-heading-cell","data-depth-index":e.depth},[p.text]),o.createVNode("div",{class:"k-scheduler-cell k-group-content k-resource-row","data-depth-index":e.depth,"data-resource-index":n*e.groupIndex+V},[k.call(this,{resources:e.resources,children:r,cellContent:e.cellContent,groupIndex:n*e.groupIndex+V,depth:e.depth+1},l)])])},this)},w=function(e){const{children:l}=e,r=e.resources.length?e.resources[e.depth].data.length:0;return e.resources[e.depth]?e.resources[e.depth].data.map(function(c,n){return o.createVNode("div",{key:n,class:"k-scheduler-row"},[o.createVNode("div",{class:"k-scheduler-cell k-resource-cell k-resource-row k-heading-cell","data-depth-index":e.depth,"data-resource-index":r*e.groupIndex+n},[c.text]),e.depth+1!==d.length&&o.createVNode("div",{class:"k-scheduler-cell k-resource-content"},[w.call(this,{resources:d,children:l,cellContent:e.cellContent,groupIndex:r*e.groupIndex+n,depth:e.depth+1})])])},this):null},D=function(e){const{children:l}=e;return o.createVNode("div",{class:"k-scheduler-row"},[x.call(this,e.resources),this.emptyCell&&o.createVNode("div",{class:"k-scheduler-cell k-side-cell"},null),R.call(this,l,e.resources,e.groupIndex)])},R=function(e,l,r){const c=l.length>0;return o.createVNode(S.SchedulerResourceIteratorContext,{noWrap:!0,resource:l[r],groupIndex:c?r:void 0},{default:()=>[o.createVNode("div",{class:"k-scheduler-cell k-group-content"},[e])]})},x=function(e){return e.map(function(l,r){return o.createVNode("div",{key:r,class:"k-scheduler-cell k-group-cell k-heading-cell","data-depth-index":r},null)},this)};return o.createVNode("div",{class:"k-scheduler-group"},[y?m?o.createVNode("div",{class:"k-scheduler-row"},[o.createVNode("div",{class:"k-sticky-cell"},[w.call(this,{resources:d,children:i,cellContent:u,depth:a,groupIndex:h})]),o.createVNode("div",{class:"k-scheduler-cell k-group-content"},[k.call(this,{resources:d,children:i,cellContent:u,depth:a,groupIndex:h},!1)])]):k.call(this,{resources:d,children:i,cellContent:u,depth:a,groupIndex:h},!0):m?o.createVNode("div",{class:"k-scheduler-row"},[o.createVNode("div",{class:"k-sticky-cell"},[N.call(this,{resources:d,children:i,cellContent:u,depth:a,groupIndex:h})]),o.createVNode("div",{class:"k-scheduler-cell k-group-content"},[i])]):D.call(this,{resources:d,children:i,cellContent:u,depth:a,groupIndex:h})])},methods:{handleDataAction(s){this.$emit("dataaction",s)}}}),W=null;exports.VerticalResourceIterator=B;
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import { defineComponent as I, createVNode as o, isVNode as g } from "vue";
|
|
9
|
-
import { toGroupResources as
|
|
9
|
+
import { toGroupResources as O } from "./utils.mjs";
|
|
10
10
|
import { SchedulerResourceIteratorContext as S } from "../../context/SchedulerResourceIteratorContext.mjs";
|
|
11
11
|
import { getDefaultSlots as v } from "@progress/kendo-vue-common";
|
|
12
|
-
import { DayViewVerticalSlotsRow as
|
|
13
|
-
import { MonthViewBody as
|
|
14
|
-
import { TimelineViewBody as
|
|
15
|
-
function
|
|
12
|
+
import { DayViewVerticalSlotsRow as V } from "../day/DayViewVerticalSlotsRow.mjs";
|
|
13
|
+
import { MonthViewBody as W } from "../month/MonthViewBody.mjs";
|
|
14
|
+
import { TimelineViewBody as j } from "../time/TimelineViewBody.mjs";
|
|
15
|
+
function E(s) {
|
|
16
16
|
return typeof s == "function" || Object.prototype.toString.call(s) === "[object Object]" && !g(s);
|
|
17
17
|
}
|
|
18
|
-
const
|
|
18
|
+
const _ = 0, L = /* @__PURE__ */ I({
|
|
19
19
|
name: "KendoVerticalResourceIterator",
|
|
20
20
|
emits: ["dataaction"],
|
|
21
21
|
props: {
|
|
@@ -27,15 +27,15 @@ const j = 0, L = /* @__PURE__ */ I({
|
|
|
27
27
|
cellContent: Object,
|
|
28
28
|
emptyCell: Boolean,
|
|
29
29
|
onDataaction: Function,
|
|
30
|
-
editable: Boolean
|
|
30
|
+
editable: [Boolean, Object]
|
|
31
31
|
},
|
|
32
32
|
render() {
|
|
33
33
|
const s = this, d = v(this), {
|
|
34
34
|
nested: y,
|
|
35
35
|
wrapGroup: f,
|
|
36
36
|
more: t
|
|
37
|
-
} = this.$props, u = this.$props.cellContent || B, i =
|
|
38
|
-
return t ? t.timelineSlots ? o(
|
|
37
|
+
} = this.$props, u = this.$props.cellContent || B, i = O(this.$props.group, this.$props.resources), a = 0, h = 0, D = function(e, r) {
|
|
38
|
+
return t ? t.timelineSlots ? o(j, {
|
|
39
39
|
slotRender: t.slotRender,
|
|
40
40
|
viewSlot: t.viewSlot,
|
|
41
41
|
groupIndex: r,
|
|
@@ -46,7 +46,7 @@ const j = 0, L = /* @__PURE__ */ I({
|
|
|
46
46
|
onDataaction: this.handleDataAction,
|
|
47
47
|
editable: t.editable
|
|
48
48
|
}, null) : t.monthSlots ? t.ranges.map(function(l, n) {
|
|
49
|
-
return o(
|
|
49
|
+
return o(W, {
|
|
50
50
|
slotRender: t.slotRender,
|
|
51
51
|
viewSlot: t.viewSlot,
|
|
52
52
|
ranges: t.ranges,
|
|
@@ -57,8 +57,8 @@ const j = 0, L = /* @__PURE__ */ I({
|
|
|
57
57
|
onDataaction: this.handleDataAction,
|
|
58
58
|
editable: t.editable
|
|
59
59
|
}, null);
|
|
60
|
-
}, this) : t.timeSlots.filter((l) => l.group.index === r && l.range.index ===
|
|
61
|
-
return o(
|
|
60
|
+
}, this) : t.timeSlots.filter((l) => l.group.index === r && l.range.index === _).map(function(l, n, c) {
|
|
61
|
+
return o(V, {
|
|
62
62
|
slotRender: t.slotRender,
|
|
63
63
|
viewSlot: t.viewSlot,
|
|
64
64
|
groupIndex: r,
|
|
@@ -99,7 +99,7 @@ const j = 0, L = /* @__PURE__ */ I({
|
|
|
99
99
|
noWrap: !0,
|
|
100
100
|
resource: e.resources[e.depth],
|
|
101
101
|
groupIndex: n ? e.groupIndex : 0
|
|
102
|
-
},
|
|
102
|
+
}, E(p = v(s)) ? p : {
|
|
103
103
|
default: () => [p]
|
|
104
104
|
}), D.call(this, e.resources[e.depth], n ? e.groupIndex : 0)];
|
|
105
105
|
}
|