@progress/kendo-vue-scheduler 6.4.1-develop.2 → 6.4.2-develop.3

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.
Files changed (47) hide show
  1. package/Scheduler.mjs +7 -7
  2. package/components/BaseView.js +1 -1
  3. package/components/BaseView.mjs +4 -4
  4. package/components/CurrentTimeMarkerArrow.mjs +3 -3
  5. package/components/DateHeaderCell.mjs +3 -3
  6. package/components/SchedulerForm.mjs +4 -4
  7. package/components/SchedulerOccurrenceDialog.mjs +3 -3
  8. package/components/SchedulerRemoveDialog.mjs +1 -1
  9. package/components/ShowMoreItemsButton.mjs +1 -1
  10. package/components/TimeHeaderCell.mjs +4 -4
  11. package/components/header/navigation/NavigationDatePicker.mjs +1 -1
  12. package/constants/main.js +1 -1
  13. package/constants/main.mjs +13 -13
  14. package/dist/cdn/js/kendo-vue-scheduler.js +1 -1
  15. package/editors/FilterableComboBox.js +1 -1
  16. package/editors/FilterableComboBox.mjs +13 -5
  17. package/editors/SchedulerFormEditor.js +1 -1
  18. package/editors/SchedulerFormEditor.mjs +9 -8
  19. package/editors/ZonedDateTime.mjs +1 -1
  20. package/hooks/useRowSync.js +1 -1
  21. package/hooks/useRowSync.mjs +4 -1
  22. package/items/SchedulerEditItem.js +1 -1
  23. package/items/SchedulerEditItem.mjs +6 -6
  24. package/items/SchedulerItem.mjs +3 -3
  25. package/items/SchedulerViewItem.mjs +4 -4
  26. package/package-metadata.js +1 -1
  27. package/package-metadata.mjs +2 -2
  28. package/package.json +11 -11
  29. package/recurrence/RecurrenceEditor.mjs +22 -22
  30. package/services/occurrenceService.mjs +1 -1
  31. package/slots/SchedulerEditSlot.js +1 -1
  32. package/slots/SchedulerEditSlot.mjs +9 -9
  33. package/slots/SchedulerSlot.mjs +1 -1
  34. package/slots/SchedulerViewSlot.mjs +4 -4
  35. package/views/agenda/AgendaView.mjs +1 -1
  36. package/views/common/SchedulerDrag.js +1 -1
  37. package/views/common/SchedulerDrag.mjs +4 -4
  38. package/views/common/SchedulerResize.js +1 -1
  39. package/views/common/SchedulerResize.mjs +4 -4
  40. package/views/day/DayViewVerticalSlotsRow.mjs +3 -3
  41. package/views/day/MultiDayView.js +1 -1
  42. package/views/day/MultiDayView.mjs +7 -7
  43. package/views/month/MonthView.mjs +8 -8
  44. package/views/time/MultiDayTimelineView.js +1 -1
  45. package/views/time/MultiDayTimelineView.mjs +26 -34
  46. package/views/time/TimelineViewBody.mjs +3 -3
  47. package/views/week/WeekView.mjs +1 -1
@@ -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"),a=require("@progress/kendo-data-query"),n=require("@progress/kendo-vue-dropdowns"),i=t.defineComponent({name:"KendoFilterableComboBox",props:{value:[String,Number,Object],dataItems:Array,validationMessage:String,touched:Boolean,modified:Boolean,visited:Boolean,valid:Boolean,name:String},data(){return{filteredData:this.$props.dataItems}},setup(){return{kendoLocalizationService:t.inject("kendoLocalizationService",{})}},render(){return this.$props,t.createVNode(n.ComboBox,{dataItems:this.filteredData,filterable:!0,onFilterchange:this.onFilterChange,onChange:this.onValueChange},null)},methods:{onValueChange(e){this.$emit("change",e)},onFilterChange(e){const o=a.filterBy(this.$props.dataItems||[],e.filter);this.filteredData=o}}});exports.FilterableComboBox=i;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),a=require("@progress/kendo-data-query"),i=require("@progress/kendo-vue-dropdowns"),n=t.defineComponent({name:"KendoFilterableComboBox",props:{value:[String,Number,Object],dataItems:Array,validationMessage:String,touched:Boolean,modified:Boolean,visited:Boolean,valid:Boolean,name:String},data(){return{filteredData:this.$props.dataItems}},setup(){return{kendoLocalizationService:t.inject("kendoLocalizationService",{})}},render(){const{data:e,validationMessage:o,visited:r,touched:s,modified:l,...d}=this.$props;return t.createVNode(i.ComboBox,{dataItems:this.filteredData,filterable:!0,onFilterchange:this.onFilterChange,onChange:this.onValueChange},null)},methods:{onValueChange(e){this.$emit("change",e)},onFilterChange(e){const o=a.filterBy(this.$props.dataItems||[],e.filter);this.filteredData=o}}});exports.FilterableComboBox=n;
@@ -5,10 +5,10 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as o, inject as a, createVNode as i } from "vue";
8
+ import { defineComponent as o, createVNode as a, inject as i } from "vue";
9
9
  import { filterBy as n } from "@progress/kendo-data-query";
10
10
  import { ComboBox as r } from "@progress/kendo-vue-dropdowns";
11
- const m = /* @__PURE__ */ o({
11
+ const f = /* @__PURE__ */ o({
12
12
  name: "KendoFilterableComboBox",
13
13
  props: {
14
14
  value: [String, Number, Object],
@@ -27,11 +27,19 @@ const m = /* @__PURE__ */ o({
27
27
  },
28
28
  setup() {
29
29
  return {
30
- kendoLocalizationService: a("kendoLocalizationService", {})
30
+ kendoLocalizationService: i("kendoLocalizationService", {})
31
31
  };
32
32
  },
33
33
  render() {
34
- return this.$props, i(r, {
34
+ const {
35
+ data: e,
36
+ validationMessage: t,
37
+ visited: l,
38
+ touched: s,
39
+ modified: d,
40
+ ...m
41
+ } = this.$props;
42
+ return a(r, {
35
43
  dataItems: this.filteredData,
36
44
  filterable: !0,
37
45
  onFilterchange: this.onFilterChange,
@@ -49,5 +57,5 @@ const m = /* @__PURE__ */ o({
49
57
  }
50
58
  });
51
59
  export {
52
- m as FilterableComboBox
60
+ f as FilterableComboBox
53
61
  };
@@ -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=require("vue"),Y=require("@progress/kendo-date-math"),o=require("@progress/kendo-vue-labels"),ee=require("@progress/kendo-vue-intl"),i=require("@progress/kendo-vue-form"),u=require("@progress/kendo-vue-inputs"),t=require("@progress/kendo-vue-common"),n=require("../messages/main.js"),E=require("./FilterableComboBox.js"),te=require("../recurrence/RecurrenceEditor.js"),ie=require("./ResourceEditor.js"),L=require("./ZonedDateTime.js");function a(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!e.isVNode(r)}const ne=e.defineComponent({name:"KendoSchedulerFormEditor",props:{as:[String,Function,Object],id:String,tabIndex:Number,titleLabel:{type:[String,Function,Object],default:function(){return o.Label}},titleError:{type:[String,Function,Object],default:function(){return o.Error}},titleEditor:{type:[String,Function,Object],default:function(){return u.TextBox}},startLabel:{type:[String,Function,Object],default:function(){return o.Label}},startError:{type:[String,Function,Object],default:function(){return o.Error}},startEditor:{type:[String,Function,Object],default:function(){return L.ZonedDateTime}},startTimezoneLabel:{type:[String,Function,Object],default:function(){return o.Label}},startTimezoneError:{type:[String,Function,Object],default:function(){return o.Error}},startTimezoneEditor:{type:[String,Function,Object],default:function(){return E.FilterableComboBox}},startTimezoneCheckedLabel:{type:[String,Function,Object],default:function(){return o.Label}},startTimezoneCheckedEditor:{type:[String,Function,Object],default:function(){return u.Checkbox}},endLabel:{type:[String,Function,Object],default:function(){return o.Label}},endError:{type:[String,Function,Object],default:function(){return o.Error}},endEditor:{type:[String,Function,Object],default:function(){return L.ZonedDateTime}},endTimezoneLabel:{type:[String,Function,Object],default:function(){return o.Label}},endTimezoneError:{type:[String,Function,Object],default:function(){return o.Error}},endTimezoneEditor:{type:[String,Function,Object],default:function(){return E.FilterableComboBox}},endTimezoneCheckedLabel:{type:[String,Function,Object],default:function(){return o.Label}},endTimezoneCheckedEditor:{type:[String,Function,Object],default:function(){return u.Checkbox}},allDayLabel:{type:[String,Function,Object],default:function(){return o.Label}},allDayEditor:{type:[String,Function,Object],default:function(){return u.Checkbox}},recurrenceEditor:{type:[String,Function,Object],default:function(){return te.RecurrenceEditor}},descriptionLabel:{type:[String,Function,Object],default:function(){return o.Label}},descriptionError:{type:[String,Function,Object],default:function(){return o.Error}},descriptionEditor:{type:[String,Function,Object],default:function(){return u.TextArea}},resourceLabel:{type:[String,Function,Object],default:function(){return o.Label}},resourcesError:{type:[String,Function,Object],default:function(){return o.Label}},resourceEditor:{type:[String,Function,Object],default:function(){return ie.ResourceEditor}},errors:Object,valid:Boolean,touched:Boolean,visited:Boolean,modified:Boolean,submitted:Boolean,allowSubmit:Boolean,valueGetter:Function},created(){this.requiredValidationMessage=void 0},inject:{ks:{default:null},kendoForm:{default:{}},kendoLocalizationService:{default:null}},data(){const r=this.kendoForm,s=this.ks;return{startZoneChecked:!!r.valueGetter(s.fields.startTimezone),endZoneChecked:!!r.valueGetter(s.fields.endTimezone)}},render(){let r,s,h,m,f,k,p,g,b;const T=t.getDefaultSlots(this),F=Y.timezoneNames(),d=ee.provideLocalizationService(this);this.$props;const{startTimezoneCheckedLabel:z,startTimezoneCheckedEditor:V,endTimezoneCheckedLabel:S,endTimezoneCheckedEditor:v}=this.$props,y=t.templateRendering.call(this,this.titleLabel,t.getListeners.call(this)),N=t.templateRendering.call(this,this.titleError,t.getListeners.call(this)),C=t.templateRendering.call(this,this.titleEditor,t.getListeners.call(this)),j=t.templateRendering.call(this,this.startLabel,t.getListeners.call(this)),O=t.templateRendering.call(this,this.startError,t.getListeners.call(this)),R=t.templateRendering.call(this,this.startEditor,t.getListeners.call(this)),Z=t.templateRendering.call(this,this.startTimezoneLabel,t.getListeners.call(this)),D=t.templateRendering.call(this,this.startTimezoneError,t.getListeners.call(this)),x=t.templateRendering.call(this,this.startTimezoneEditor,t.getListeners.call(this)),q=t.templateRendering.call(this,this.endLabel,t.getListeners.call(this)),I=t.templateRendering.call(this,this.endError,t.getListeners.call(this)),w=t.templateRendering.call(this,this.endEditor,t.getListeners.call(this)),B=t.templateRendering.call(this,this.endTimezoneLabel,t.getListeners.call(this)),_=t.templateRendering.call(this,this.endTimezoneError,t.getListeners.call(this)),A=t.templateRendering.call(this,this.endTimezoneEditor,t.getListeners.call(this)),W=t.templateRendering.call(this,this.allDayLabel,t.getListeners.call(this)),G=t.templateRendering.call(this,this.allDayEditor,t.getListeners.call(this)),M=t.templateRendering.call(this,this.recurrenceEditor,t.getListeners.call(this)),$=t.templateRendering.call(this,this.descriptionLabel,t.getListeners.call(this)),K=t.templateRendering.call(this,this.descriptionEditor,t.getListeners.call(this)),P=t.templateRendering.call(this,this.descriptionError,t.getListeners.call(this)),H=t.templateRendering.call(this,this.resourceLabel,t.getListeners.call(this)),J=t.templateRendering.call(this,this.resourceEditor,t.getListeners.call(this)),Q=this.kendoForm.valueGetter(this.ks.fields.start)||new Date,U=this.kendoForm.valueGetter(this.ks.fields.startTimezone)||this.ks.timezone||"",X=this.kendoForm.valueGetter(this.ks.fields.endTimezone)||this.ks.timezone||"";this.requiredValidationMessage=d.toLanguageString(n.editorValidationRequired,n.messages[n.editorValidationRequired]);const c=this.ks.fields.title;return e.createVNode(i.FormElement,{class:"k-scheduler-edit-form"},{default:()=>[e.createVNode(i.FieldWrapper,null,{default:()=>[e.createVNode(i.Field,{name:c,component:y,editorId:"k-scheduler-editor-title"},a(r=d.toLanguageString(n.editorEventTitle,n.messages[n.editorEventTitle]))?r:{default:()=>[r]}),e.createVNode("div",{class:"k-form-field-wrap"},[e.createVNode(i.Field,{id:"k-scheduler-editor-title",name:c,field:c,component:C},null),this.kendoForm.errors[c]&&e.createVNode(i.Field,{name:c,component:N},{default:()=>[this.kendoForm.errors[c]]})])]}),e.createVNode(i.FieldWrapper,null,{default:()=>[e.createVNode(i.Field,{name:this.ks.fields.start,component:j,editorId:"k-scheduler-editor-start",class:"k-form-label"},a(s=d.toLanguageString(n.editorEventStart,n.messages[n.editorEventStart]))?s:{default:()=>[s]}),e.createVNode("div",{class:"k-form-field-wrap"},[e.createVNode(i.Field,{id:"k-scheduler-editor-start",name:this.ks.fields.start,width:"auto",component:R,isAllDay:!!this.kendoForm.values.isAllDay,timezone:this.ks.timezone},null),this.kendoForm.errors[this.ks.fields.start]&&e.createVNode(i.Field,{name:this.ks.fields.start,component:O},{default:()=>[this.kendoForm.errors[this.ks.fields.start]]})])]}),e.createVNode(i.FieldWrapper,null,{default:()=>[F.length>0&&e.createVNode("div",null,[e.createVNode(V,{id:"k-scheduler-editor-set-start-timezone",onChange:this.handleStartZoneCheckboxChange,value:this.startZoneChecked},null),e.createVNode(z,{class:"k-checkbox-label",editorId:"k-scheduler-editor-set-start-timezone",style:{display:"inline-flex"}},a(h=d.toLanguageString(n.editorEventTimeZone,n.messages[n.editorEventTimeZone]))?h:{default:()=>[h]})])]}),this.startZoneChecked&&e.createVNode(i.FieldWrapper,null,{default:()=>[e.createVNode(i.Field,{name:this.ks.fields.start,component:Z},a(m=d.toLanguageString(n.editorEventStartTimeZone,n.messages[n.editorEventStartTimeZone]))?m:{default:()=>[m]}),e.createVNode("div",{class:"k-form-field-wrap"},[e.createVNode(i.Field,{component:x,value:U,validator:this.startTimezoneValidator,dataItems:F,name:this.ks.fields.startTimezone},null),this.kendoForm.errors[this.ks.fields.startTimezone]&&e.createVNode(i.Field,{name:this.ks.fields.startTimezone,component:D},{default:()=>[this.kendoForm.errors[this.ks.fields.startTimezone]]})])]}),e.createVNode(i.FieldWrapper,null,{default:()=>[e.createVNode(i.Field,{name:this.ks.fields.end,component:q,editorId:"k-scheduler-editor-end",class:"k-form-label"},a(f=d.toLanguageString(n.editorEventEnd,n.messages[n.editorEventEnd]))?f:{default:()=>[f]}),e.createVNode("div",{class:"k-form-field-wrap"},[e.createVNode(i.Field,{id:"k-scheduler-editor-end",name:this.ks.fields.end,width:"auto",component:w,isAllDay:!!this.kendoForm.values.isAllDay,timezone:this.ks.timezone},null),this.kendoForm.errors[this.ks.fields.end]&&e.createVNode(i.Field,{name:this.ks.fields.end,component:I},{default:()=>[this.kendoForm.errors[this.ks.fields.end]]})])]}),this.startZoneChecked&&e.createVNode(i.FieldWrapper,null,{default:()=>[e.createVNode("div",{class:"k-form-field-wrap"},[e.createVNode(v,{id:"k-scheduler-editor-set-end-timezone",onChange:this.handleEndZoneCheckboxChange,value:this.endZoneChecked},null)]),e.createVNode(S,{class:"k-checkbox-label",editorId:"k-scheduler-editor-set-end-timezone",style:{display:"inline-flex"}},a(k=d.toLanguageString(n.editorEventSeparateTimeZones,n.messages[n.editorEventSeparateTimeZones]))?k:{default:()=>[k]})]}),this.endZoneChecked&&e.createVNode(i.FieldWrapper,null,{default:()=>[e.createVNode(i.Field,{name:this.ks.fields.endTimezone,component:B,class:"k-form-label"},a(p=d.toLanguageString(n.editorEventEndTimeZone,n.messages[n.editorEventEndTimeZone]))?p:{default:()=>[p]}),e.createVNode("div",{class:"k-form-field-wrap"},[e.createVNode(i.Field,{value:X,dataItems:F,validator:this.endTimezoneValidator,component:A,name:this.ks.fields.endTimezone},null),this.kendoForm.errors[this.ks.fields.endTimezone]&&e.createVNode(i.Field,{name:this.ks.fields.endTimezone,component:_},{default:()=>[this.kendoForm.errors[this.ks.fields.endTimezone]]})])]}),e.createVNode(i.FieldWrapper,null,{default:()=>[e.createVNode(i.Field,{name:this.ks.fields.isAllDay,component:o.Label,class:"k-form-label"},null),e.createVNode("div",{class:"k-form-field-wrap"},[e.createVNode(i.Field,{id:"k-is-allday-checkbox",name:this.ks.fields.isAllDay,component:G},null),e.createVNode(i.Field,{name:this.ks.fields.isAllDay,field:this.ks.fields.isAllDay,editorId:"k-is-allday-checkbox",class:"k-checkbox-label",component:W},a(g=d.toLanguageString(n.editorEventAllDay,n.messages[n.editorEventAllDay]))?g:{default:()=>[g]})])]}),e.createVNode("div",{class:"k-recurrence-editor"},[e.createVNode(i.Field,{component:M,changeOnInput:!1,field:this.ks.fields.recurrenceRule,name:this.ks.fields.recurrenceRule,start:Q},null)]),e.createVNode(i.FieldWrapper,null,{default:()=>[e.createVNode(i.Field,{name:this.ks.fields.description,component:$,class:"k-form-label"},a(b=d.toLanguageString(n.editorEventDescription,n.messages[n.editorEventDescription]))?b:{default:()=>[b]}),e.createVNode("div",{class:"k-form-field-wrap"},[e.createVNode(i.Field,{component:K,name:this.ks.fields.description,rows:1,id:"k-event-description"},null),this.kendoForm.errors[this.ks.fields.description]&&e.createVNode(i.Field,{name:this.ks.fields.description,component:P},{default:()=>[this.kendoForm.errors[this.ks.fields.description]]})])]}),(this.ks.props.resources||[]).map(function(l){return e.createVNode(i.FieldWrapper,{key:l.field},{default:()=>[e.createVNode(i.Field,{name:l.field,component:H,class:"k-form-label"},null),e.createVNode(o.Label,{class:"k-form-label"},{default:()=>[l.name]}),e.createVNode(i.Field,{name:l.field,component:J,resource:l,multiple:l.multiple,dataItems:l.data,textField:l.textField,valueField:l.valueField,colorField:l.colorField},null),this.kendoForm.errors[l.field]&&e.createVNode(i.Field,{name:l.field,component:o.Error},{default:()=>[this.kendoForm.errors[l.field]]})]})},this),T]})},methods:{handleStartZoneCheckboxChange(r){r.value||(this.$emit("change",this.ks.fields.startTimezone,{value:null}),this.$emit("change",this.ks.fields.endTimezone,{value:null}),this.endZoneChecked=r.value),this.startZoneChecked=r.value},handleEndZoneCheckboxChange(r){r.value||this.$emit("change",this.ks.fields.endTimezone,{value:null}),this.endZoneChecked=r.value},requiredValidator(r){return r?void 0:this.requiredValidationMessage},startTimezoneValidator(r,s){return this.startZoneChecked?this.requiredValidator(s(this.ks.fields.startTimezone)):void 0},endTimezoneValidator(r,s){return this.startZoneChecked&&this.endZoneChecked?this.requiredValidator(s(this.ks.fields.endTimezone))||this.requiredValidator(s(this.ks.fields.startTimezone)):void 0}}});exports.SchedulerFormEditor=ne;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),Y=require("@progress/kendo-date-math"),o=require("@progress/kendo-vue-labels"),ee=require("@progress/kendo-vue-intl"),i=require("@progress/kendo-vue-form"),u=require("@progress/kendo-vue-inputs"),t=require("@progress/kendo-vue-common"),n=require("../messages/main.js"),E=require("./FilterableComboBox.js"),te=require("../recurrence/RecurrenceEditor.js"),ie=require("./ResourceEditor.js"),L=require("./ZonedDateTime.js");function a(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!e.isVNode(r)}const ne=e.defineComponent({name:"KendoSchedulerFormEditor",props:{as:[String,Function,Object],id:String,tabIndex:Number,titleLabel:{type:[String,Function,Object],default:function(){return o.Label}},titleError:{type:[String,Function,Object],default:function(){return o.Error}},titleEditor:{type:[String,Function,Object],default:function(){return u.TextBox}},startLabel:{type:[String,Function,Object],default:function(){return o.Label}},startError:{type:[String,Function,Object],default:function(){return o.Error}},startEditor:{type:[String,Function,Object],default:function(){return L.ZonedDateTime}},startTimezoneLabel:{type:[String,Function,Object],default:function(){return o.Label}},startTimezoneError:{type:[String,Function,Object],default:function(){return o.Error}},startTimezoneEditor:{type:[String,Function,Object],default:function(){return E.FilterableComboBox}},startTimezoneCheckedLabel:{type:[String,Function,Object],default:function(){return o.Label}},startTimezoneCheckedEditor:{type:[String,Function,Object],default:function(){return u.Checkbox}},endLabel:{type:[String,Function,Object],default:function(){return o.Label}},endError:{type:[String,Function,Object],default:function(){return o.Error}},endEditor:{type:[String,Function,Object],default:function(){return L.ZonedDateTime}},endTimezoneLabel:{type:[String,Function,Object],default:function(){return o.Label}},endTimezoneError:{type:[String,Function,Object],default:function(){return o.Error}},endTimezoneEditor:{type:[String,Function,Object],default:function(){return E.FilterableComboBox}},endTimezoneCheckedLabel:{type:[String,Function,Object],default:function(){return o.Label}},endTimezoneCheckedEditor:{type:[String,Function,Object],default:function(){return u.Checkbox}},allDayLabel:{type:[String,Function,Object],default:function(){return o.Label}},allDayEditor:{type:[String,Function,Object],default:function(){return u.Checkbox}},recurrenceEditor:{type:[String,Function,Object],default:function(){return te.RecurrenceEditor}},descriptionLabel:{type:[String,Function,Object],default:function(){return o.Label}},descriptionError:{type:[String,Function,Object],default:function(){return o.Error}},descriptionEditor:{type:[String,Function,Object],default:function(){return u.TextArea}},resourceLabel:{type:[String,Function,Object],default:function(){return o.Label}},resourcesError:{type:[String,Function,Object],default:function(){return o.Label}},resourceEditor:{type:[String,Function,Object],default:function(){return ie.ResourceEditor}},errors:Object,valid:Boolean,touched:Boolean,visited:Boolean,modified:Boolean,submitted:Boolean,allowSubmit:Boolean,valueGetter:Function},created(){this.requiredValidationMessage=void 0},inject:{ks:{default:null},kendoForm:{default:{}},kendoLocalizationService:{default:null}},data(){const r=this.kendoForm,s=this.ks;return{startZoneChecked:!!r.valueGetter(s.fields.startTimezone),endZoneChecked:!!r.valueGetter(s.fields.endTimezone)}},render(){let r,s,h,m,f,k,p,g,b;const T=t.getDefaultSlots(this),F=Y.timezoneNames(),d=ee.provideLocalizationService(this),{as:re,...oe}=this.$props,{startTimezoneCheckedLabel:z,startTimezoneCheckedEditor:V,endTimezoneCheckedLabel:S,endTimezoneCheckedEditor:v}=this.$props,y=t.templateRendering.call(this,this.titleLabel,t.getListeners.call(this)),N=t.templateRendering.call(this,this.titleError,t.getListeners.call(this)),C=t.templateRendering.call(this,this.titleEditor,t.getListeners.call(this)),j=t.templateRendering.call(this,this.startLabel,t.getListeners.call(this)),O=t.templateRendering.call(this,this.startError,t.getListeners.call(this)),R=t.templateRendering.call(this,this.startEditor,t.getListeners.call(this)),Z=t.templateRendering.call(this,this.startTimezoneLabel,t.getListeners.call(this)),D=t.templateRendering.call(this,this.startTimezoneError,t.getListeners.call(this)),x=t.templateRendering.call(this,this.startTimezoneEditor,t.getListeners.call(this)),q=t.templateRendering.call(this,this.endLabel,t.getListeners.call(this)),I=t.templateRendering.call(this,this.endError,t.getListeners.call(this)),w=t.templateRendering.call(this,this.endEditor,t.getListeners.call(this)),B=t.templateRendering.call(this,this.endTimezoneLabel,t.getListeners.call(this)),_=t.templateRendering.call(this,this.endTimezoneError,t.getListeners.call(this)),A=t.templateRendering.call(this,this.endTimezoneEditor,t.getListeners.call(this)),W=t.templateRendering.call(this,this.allDayLabel,t.getListeners.call(this)),G=t.templateRendering.call(this,this.allDayEditor,t.getListeners.call(this)),M=t.templateRendering.call(this,this.recurrenceEditor,t.getListeners.call(this)),$=t.templateRendering.call(this,this.descriptionLabel,t.getListeners.call(this)),K=t.templateRendering.call(this,this.descriptionEditor,t.getListeners.call(this)),P=t.templateRendering.call(this,this.descriptionError,t.getListeners.call(this)),H=t.templateRendering.call(this,this.resourceLabel,t.getListeners.call(this)),J=t.templateRendering.call(this,this.resourceEditor,t.getListeners.call(this)),Q=this.kendoForm.valueGetter(this.ks.fields.start)||new Date,U=this.kendoForm.valueGetter(this.ks.fields.startTimezone)||this.ks.timezone||"",X=this.kendoForm.valueGetter(this.ks.fields.endTimezone)||this.ks.timezone||"";this.requiredValidationMessage=d.toLanguageString(n.editorValidationRequired,n.messages[n.editorValidationRequired]);const c=this.ks.fields.title;return e.createVNode(i.FormElement,{class:"k-scheduler-edit-form"},{default:()=>[e.createVNode(i.FieldWrapper,null,{default:()=>[e.createVNode(i.Field,{name:c,component:y,editorId:"k-scheduler-editor-title"},a(r=d.toLanguageString(n.editorEventTitle,n.messages[n.editorEventTitle]))?r:{default:()=>[r]}),e.createVNode("div",{class:"k-form-field-wrap"},[e.createVNode(i.Field,{id:"k-scheduler-editor-title",name:c,field:c,component:C},null),this.kendoForm.errors[c]&&e.createVNode(i.Field,{name:c,component:N},{default:()=>[this.kendoForm.errors[c]]})])]}),e.createVNode(i.FieldWrapper,null,{default:()=>[e.createVNode(i.Field,{name:this.ks.fields.start,component:j,editorId:"k-scheduler-editor-start",class:"k-form-label"},a(s=d.toLanguageString(n.editorEventStart,n.messages[n.editorEventStart]))?s:{default:()=>[s]}),e.createVNode("div",{class:"k-form-field-wrap"},[e.createVNode(i.Field,{id:"k-scheduler-editor-start",name:this.ks.fields.start,width:"auto",component:R,isAllDay:!!this.kendoForm.values.isAllDay,timezone:this.ks.timezone},null),this.kendoForm.errors[this.ks.fields.start]&&e.createVNode(i.Field,{name:this.ks.fields.start,component:O},{default:()=>[this.kendoForm.errors[this.ks.fields.start]]})])]}),e.createVNode(i.FieldWrapper,null,{default:()=>[F.length>0&&e.createVNode("div",null,[e.createVNode(V,{id:"k-scheduler-editor-set-start-timezone",onChange:this.handleStartZoneCheckboxChange,value:this.startZoneChecked},null),e.createVNode(z,{class:"k-checkbox-label",editorId:"k-scheduler-editor-set-start-timezone",style:{display:"inline-flex"}},a(h=d.toLanguageString(n.editorEventTimeZone,n.messages[n.editorEventTimeZone]))?h:{default:()=>[h]})])]}),this.startZoneChecked&&e.createVNode(i.FieldWrapper,null,{default:()=>[e.createVNode(i.Field,{name:this.ks.fields.start,component:Z},a(m=d.toLanguageString(n.editorEventStartTimeZone,n.messages[n.editorEventStartTimeZone]))?m:{default:()=>[m]}),e.createVNode("div",{class:"k-form-field-wrap"},[e.createVNode(i.Field,{component:x,value:U,validator:this.startTimezoneValidator,dataItems:F,name:this.ks.fields.startTimezone},null),this.kendoForm.errors[this.ks.fields.startTimezone]&&e.createVNode(i.Field,{name:this.ks.fields.startTimezone,component:D},{default:()=>[this.kendoForm.errors[this.ks.fields.startTimezone]]})])]}),e.createVNode(i.FieldWrapper,null,{default:()=>[e.createVNode(i.Field,{name:this.ks.fields.end,component:q,editorId:"k-scheduler-editor-end",class:"k-form-label"},a(f=d.toLanguageString(n.editorEventEnd,n.messages[n.editorEventEnd]))?f:{default:()=>[f]}),e.createVNode("div",{class:"k-form-field-wrap"},[e.createVNode(i.Field,{id:"k-scheduler-editor-end",name:this.ks.fields.end,width:"auto",component:w,isAllDay:!!this.kendoForm.values.isAllDay,timezone:this.ks.timezone},null),this.kendoForm.errors[this.ks.fields.end]&&e.createVNode(i.Field,{name:this.ks.fields.end,component:I},{default:()=>[this.kendoForm.errors[this.ks.fields.end]]})])]}),this.startZoneChecked&&e.createVNode(i.FieldWrapper,null,{default:()=>[e.createVNode("div",{class:"k-form-field-wrap"},[e.createVNode(v,{id:"k-scheduler-editor-set-end-timezone",onChange:this.handleEndZoneCheckboxChange,value:this.endZoneChecked},null)]),e.createVNode(S,{class:"k-checkbox-label",editorId:"k-scheduler-editor-set-end-timezone",style:{display:"inline-flex"}},a(k=d.toLanguageString(n.editorEventSeparateTimeZones,n.messages[n.editorEventSeparateTimeZones]))?k:{default:()=>[k]})]}),this.endZoneChecked&&e.createVNode(i.FieldWrapper,null,{default:()=>[e.createVNode(i.Field,{name:this.ks.fields.endTimezone,component:B,class:"k-form-label"},a(p=d.toLanguageString(n.editorEventEndTimeZone,n.messages[n.editorEventEndTimeZone]))?p:{default:()=>[p]}),e.createVNode("div",{class:"k-form-field-wrap"},[e.createVNode(i.Field,{value:X,dataItems:F,validator:this.endTimezoneValidator,component:A,name:this.ks.fields.endTimezone},null),this.kendoForm.errors[this.ks.fields.endTimezone]&&e.createVNode(i.Field,{name:this.ks.fields.endTimezone,component:_},{default:()=>[this.kendoForm.errors[this.ks.fields.endTimezone]]})])]}),e.createVNode(i.FieldWrapper,null,{default:()=>[e.createVNode(i.Field,{name:this.ks.fields.isAllDay,component:o.Label,class:"k-form-label"},null),e.createVNode("div",{class:"k-form-field-wrap"},[e.createVNode(i.Field,{id:"k-is-allday-checkbox",name:this.ks.fields.isAllDay,component:G},null),e.createVNode(i.Field,{name:this.ks.fields.isAllDay,field:this.ks.fields.isAllDay,editorId:"k-is-allday-checkbox",class:"k-checkbox-label",component:W},a(g=d.toLanguageString(n.editorEventAllDay,n.messages[n.editorEventAllDay]))?g:{default:()=>[g]})])]}),e.createVNode("div",{class:"k-recurrence-editor"},[e.createVNode(i.Field,{component:M,changeOnInput:!1,field:this.ks.fields.recurrenceRule,name:this.ks.fields.recurrenceRule,start:Q},null)]),e.createVNode(i.FieldWrapper,null,{default:()=>[e.createVNode(i.Field,{name:this.ks.fields.description,component:$,class:"k-form-label"},a(b=d.toLanguageString(n.editorEventDescription,n.messages[n.editorEventDescription]))?b:{default:()=>[b]}),e.createVNode("div",{class:"k-form-field-wrap"},[e.createVNode(i.Field,{component:K,name:this.ks.fields.description,rows:1,id:"k-event-description"},null),this.kendoForm.errors[this.ks.fields.description]&&e.createVNode(i.Field,{name:this.ks.fields.description,component:P},{default:()=>[this.kendoForm.errors[this.ks.fields.description]]})])]}),(this.ks.props.resources||[]).map(function(l){return e.createVNode(i.FieldWrapper,{key:l.field},{default:()=>[e.createVNode(i.Field,{name:l.field,component:H,class:"k-form-label"},null),e.createVNode(o.Label,{class:"k-form-label"},{default:()=>[l.name]}),e.createVNode(i.Field,{name:l.field,component:J,resource:l,multiple:l.multiple,dataItems:l.data,textField:l.textField,valueField:l.valueField,colorField:l.colorField},null),this.kendoForm.errors[l.field]&&e.createVNode(i.Field,{name:l.field,component:o.Error},{default:()=>[this.kendoForm.errors[l.field]]})]})},this),T]})},methods:{handleStartZoneCheckboxChange(r){r.value||(this.$emit("change",this.ks.fields.startTimezone,{value:null}),this.$emit("change",this.ks.fields.endTimezone,{value:null}),this.endZoneChecked=r.value),this.startZoneChecked=r.value},handleEndZoneCheckboxChange(r){r.value||this.$emit("change",this.ks.fields.endTimezone,{value:null}),this.endZoneChecked=r.value},requiredValidator(r){return r?void 0:this.requiredValidationMessage},startTimezoneValidator(r,s){return this.startZoneChecked?this.requiredValidator(s(this.ks.fields.startTimezone)):void 0},endTimezoneValidator(r,s){return this.startZoneChecked&&this.endZoneChecked?this.requiredValidator(s(this.ks.fields.endTimezone))||this.requiredValidator(s(this.ks.fields.startTimezone)):void 0}}});exports.SchedulerFormEditor=ne;
@@ -10,7 +10,7 @@ import { timezoneNames as fe } from "@progress/kendo-date-math";
10
10
  import { Label as l, Error as h } from "@progress/kendo-vue-labels";
11
11
  import { provideLocalizationService as ke } from "@progress/kendo-vue-intl";
12
12
  import { FormElement as pe, FieldWrapper as d, Field as t } from "@progress/kendo-vue-form";
13
- import { TextBox as be, Checkbox as T, TextArea as ge } from "@progress/kendo-vue-inputs";
13
+ import { TextArea as be, Checkbox as T, TextBox as ge } from "@progress/kendo-vue-inputs";
14
14
  import { getDefaultSlots as Ee, templateRendering as i, getListeners as n } from "@progress/kendo-vue-common";
15
15
  import { editorValidationRequired as S, messages as c, editorEventTitle as y, editorEventStart as v, editorEventTimeZone as L, editorEventStartTimeZone as C, editorEventEnd as j, editorEventSeparateTimeZones as O, editorEventEndTimeZone as Z, editorEventAllDay as x, editorEventDescription as D } from "../messages/main.mjs";
16
16
  import { FilterableComboBox as w } from "./FilterableComboBox.mjs";
@@ -20,7 +20,7 @@ import { ZonedDateTime as I } from "./ZonedDateTime.mjs";
20
20
  function u(o) {
21
21
  return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !me(o);
22
22
  }
23
- const Ie = /* @__PURE__ */ he({
23
+ const _e = /* @__PURE__ */ he({
24
24
  name: "KendoSchedulerFormEditor",
25
25
  props: {
26
26
  as: [String, Function, Object],
@@ -41,7 +41,7 @@ const Ie = /* @__PURE__ */ he({
41
41
  titleEditor: {
42
42
  type: [String, Function, Object],
43
43
  default: function() {
44
- return be;
44
+ return ge;
45
45
  }
46
46
  },
47
47
  startLabel: {
@@ -173,7 +173,7 @@ const Ie = /* @__PURE__ */ he({
173
173
  descriptionEditor: {
174
174
  type: [String, Function, Object],
175
175
  default: function() {
176
- return ge;
176
+ return be;
177
177
  }
178
178
  },
179
179
  resourceLabel: {
@@ -226,9 +226,10 @@ const Ie = /* @__PURE__ */ he({
226
226
  },
227
227
  render() {
228
228
  let o, s, f, k, p, b, g, E, z;
229
- const V = Ee(this), F = fe(), a = ke(this);
230
- this.$props;
231
- const {
229
+ const V = Ee(this), F = fe(), a = ke(this), {
230
+ as: Te,
231
+ ...Se
232
+ } = this.$props, {
232
233
  startTimezoneCheckedLabel: _,
233
234
  startTimezoneCheckedEditor: A,
234
235
  endTimezoneCheckedLabel: B,
@@ -480,5 +481,5 @@ const Ie = /* @__PURE__ */ he({
480
481
  }
481
482
  });
482
483
  export {
483
- Ie as SchedulerFormEditor
484
+ _e as SchedulerFormEditor
484
485
  };
@@ -6,7 +6,7 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import { DateTimePicker as o, DatePicker as s } from "@progress/kendo-vue-dateinputs";
9
- import { toLocalDate as m, ZonedDate as n } from "@progress/kendo-date-math";
9
+ import { ZonedDate as n, toLocalDate as m } from "@progress/kendo-date-math";
10
10
  import { defineComponent as d, h } from "vue";
11
11
  const p = /* @__PURE__ */ d({
12
12
  name: "KendoZonedDateTime",
@@ -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=(t,o)=>{};exports.useRowSync=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=(e,n)=>{const{element:o}=e};exports.useRowSync=t;
@@ -5,7 +5,10 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- const o = (s, n) => {
8
+ const o = (e, n) => {
9
+ const {
10
+ element: t
11
+ } = e;
9
12
  };
10
13
  export {
11
14
  o as useRowSync
@@ -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"),E=require("../constants/main.js"),h=require("@progress/kendo-vue-common"),A=require("./SchedulerViewItem.js"),o=require("./hooks/use-form-item.js"),s=require("./hooks/use-show-occurrence-dialog.js"),c=require("./hooks/use-remove-item.js"),l=require("./hooks/use-show-remove-item-dialog.js"),a=require("./hooks/use-drag-item.js"),r=require("./hooks/use-resize-item.js"),d=require("./hooks/use-series.js"),m=require("../hooks/use-items-selection.js"),p=require("../utils/main.js"),u=require("../hooks/use-items-focus.js"),I=require("../hooks/use-slots-focus.js"),_=O.defineComponent({name:"KendoSchedulerEditItem",inheritAttrs:!1,props:{tabIndex:{type:Number,default:void 0},item:[String,Function,Object],viewItem:[String,Function,Object],drag:[String,Function,Object],resize:[String,Function,Object],form:[String,Function,Object],removeDialog:[String,Function,Object],occurrenceDialog:[String,Function,Object],formItem:Object,dragItem:Object,resizeItem:Object,removeItem:Object,showOccurrenceDialog:{type:Boolean,default:void 0},showRemoveDialog:{type:Boolean,default:void 0},series:{type:Boolean,default:void 0},uid:[String,Number],start:Date,end:Date,originalStart:Date,startTimezone:String,endTimezone:String,isAllDay:Boolean,title:String,description:String,occurrenceId:String,recurrenceExceptions:Array,recurrenceRule:String,recurrenceId:[String,Number],dataItem:Object,head:Boolean,tail:Boolean,order:Number,zonedStart:Object,zonedEnd:Object,slots:Array,group:Object,range:Object,isException:Boolean,isRecurring:Boolean,id:String,className:String,itemStyle:Object,editable:[Object,Boolean],selected:Boolean,vertical:Boolean,dragHint:Boolean,resizeHint:Boolean,format:String,ignoreIsAllDay:Boolean,itemRef:Object,onRemoveclick:Function,onDataaction:Function,onFormItemChange:Function,onDragitemchange:Function,onResizeitemchange:Function},inject:{bv:{default:null},ks:{default:null},dispatchFocusedItems:{default:null},dispatchFocusedSlots:{default:null},dispatchSelectedItems:{default:null}},provide(){return{ei:this.ei,ksCancel:this.handleCancel,ksFormSubmit:this.handleFormSubmit,ksOccurrenceClick:this.handleOccurrenceClick,ksSeriesClick:this.handleSeriesClick,ksRemoveConfirm:this.handleRemoveConfirm}},data(){return{ei:{props:this.$props,form:this.$props.formItem,drag:this.drag,resize:this.resize,remove:this.remove,showRemoveDialog:this.showRemoveDialog,showOccurrenceDialog:this.showOccurrenceDialog},currentFormItem:null,currentSelected:null,currentSeries:null,currentRemoveItem:null,currentDragItem:null,currentResizeItem:null,currentShowRemoveDialog:null,currentShowOccurrenceDialog:null}},computed:{currentTabIndex(){const t=this.bv.items.length&&this.bv.items[0].dataItem.id===this.dataItem.id;return this.$props.tabIndex!==void 0?this.$props.tabIndex===null?void 0:this.$props.tabIndex:this.bv.selectedItems.length===0&&t?0:void 0},compSelected(){return this.selected!==void 0?this.selected:this.currentSelected},compSeries(){return this.series!==void 0?this.series:this.currentSeries},compFormItem(){return this.formItem!==void 0?this.formItem:this.currentFormItem},compRemoveItem(){return this.removeItem!==void 0?this.removeItem:this.currentRemoveItem},compDragItem(){return this.dragItem!==void 0?this.dragItem:this.currentDragItem},compResizeItem(){return this.resizeItem!==void 0?this.resizeItem:this.currentResizeItem},compShowRemoveDialog(){return this.showRemoveDialog!==void 0?this.showRemoveDialog:this.currentShowRemoveDialog},compShowOccurrenceDialog(){return this.showOccurrenceDialog!==void 0?this.showOccurrenceDialog:this.currentShowOccurrenceDialog},actionsReducerMap(){return{[d.SERIES_ACTION.set]:this.dispatchSeries,[d.SERIES_ACTION.toggle]:this.dispatchSeries,[d.SERIES_ACTION.reset]:this.dispatchSeries,[m.ITEMS_SELECT_ACTION.select]:this.dispatchItemSelection,[m.ITEMS_SELECT_ACTION.add]:this.dispatchItemSelection,[m.ITEMS_SELECT_ACTION.remove]:this.dispatchItemSelection,[m.ITEMS_SELECT_ACTION.reset]:this.dispatchItemSelection,[m.ITEMS_SELECT_ACTION.selectNext]:this.dispatchItemSelection,[m.ITEMS_SELECT_ACTION.selectPrev]:this.dispatchItemSelection,[o.FORM_ITEM_ACTION.set]:this.dispatchFormItem,[o.FORM_ITEM_ACTION.setMaster]:this.dispatchFormItem,[o.FORM_ITEM_ACTION.reset]:this.dispatchFormItem,[o.FORM_ITEM_ACTION.complete]:this.dispatchFormItem,[c.REMOVE_ITEM_ACTION.set]:this.dispatchRemoveItem,[c.REMOVE_ITEM_ACTION.reset]:this.dispatchRemoveItem,[c.REMOVE_ITEM_ACTION.complete]:this.dispatchRemoveItem,[s.SHOW_OCCURRENCE_DIALOG_ACTION.close]:this.dispatchShowOccurrenceDialog,[s.SHOW_OCCURRENCE_DIALOG_ACTION.open]:this.dispatchShowOccurrenceDialog,[s.SHOW_OCCURRENCE_DIALOG_ACTION.set]:this.dispatchShowOccurrenceDialog,[s.SHOW_OCCURRENCE_DIALOG_ACTION.toggle]:this.dispatchShowOccurrenceDialog,[s.SHOW_OCCURRENCE_DIALOG_ACTION.reset]:this.dispatchShowOccurrenceDialog,[l.SHOW_REMOVE_DIALOG_ACTION.close]:this.dispatchShowRemoveDialog,[l.SHOW_REMOVE_DIALOG_ACTION.open]:this.dispatchShowRemoveDialog,[l.SHOW_REMOVE_DIALOG_ACTION.set]:this.dispatchShowRemoveDialog,[l.SHOW_REMOVE_DIALOG_ACTION.toggle]:this.dispatchShowRemoveDialog,[l.SHOW_REMOVE_DIALOG_ACTION.reset]:this.dispatchShowRemoveDialog,[a.DRAG_ITEM_ACTION.start]:this.dispatchDragItem,[a.DRAG_ITEM_ACTION.drag]:this.dispatchDragItem,[a.DRAG_ITEM_ACTION.complete]:this.dispatchDragItem,[a.DRAG_ITEM_ACTION.completeOccurrence]:this.dispatchDragItem,[a.DRAG_ITEM_ACTION.completeSeries]:this.dispatchDragItem,[a.DRAG_ITEM_ACTION.set]:this.dispatchDragItem,[a.DRAG_ITEM_ACTION.reset]:this.dispatchDragItem,[a.DRAG_ITEM_ACTION.dragSelected]:this.dispatchDragItem,[r.RESIZE_ITEM_ACTION.start]:this.dispatchResizeItem,[r.RESIZE_ITEM_ACTION.startDrag]:this.dispatchResizeItem,[r.RESIZE_ITEM_ACTION.startDragSelected]:this.dispatchResizeItem,[r.RESIZE_ITEM_ACTION.endDrag]:this.dispatchResizeItem,[r.RESIZE_ITEM_ACTION.endDragSelected]:this.dispatchResizeItem,[r.RESIZE_ITEM_ACTION.complete]:this.dispatchResizeItem,[r.RESIZE_ITEM_ACTION.completeOccurrence]:this.dispatchResizeItem,[r.RESIZE_ITEM_ACTION.completeSeries]:this.dispatchResizeItem,[r.RESIZE_ITEM_ACTION.set]:this.dispatchResizeItem,[r.RESIZE_ITEM_ACTION.reset]:this.dispatchResizeItem,[u.ITEMS_FOCUS_ACTION.next]:this.dispatchViewItemsFocus,[u.ITEMS_FOCUS_ACTION.prev]:this.dispatchViewItemsFocus,[I.SLOTS_FOCUS_ACTION.left]:this.dispatchViewSlotsFocus,[I.SLOTS_FOCUS_ACTION.right]:this.dispatchViewSlotsFocus,[I.SLOTS_FOCUS_ACTION.up]:this.dispatchViewSlotsFocus,[I.SLOTS_FOCUS_ACTION.down]:this.dispatchViewSlotsFocus,null:()=>{}}}},render(){const t=h.getDefaultSlots(this),e=!!(this.bv.selectedItems&&this.bv.selectedItems.some(R=>p.compareItems(R,this,this.ignoreIsAllDay)));let i;const n=O.createVNode(A.SchedulerViewItem,{ignoreIsAllDay:this.ignoreIsAllDay,item:this.item,uid:this.uid,start:this.start,end:this.end,originalStart:this.originalStart,startTimezone:this.startTimezone,endTimezone:this.endTimezone,isAllDay:this.isAllDay,title:this.title,description:this.description,occurrenceId:this.occurrenceId,recurrenceExceptions:this.recurrenceExceptions,recurrenceRule:this.recurrenceRule,recurrenceId:this.recurrenceId,dataItem:this.dataItem,head:this.head,tail:this.tail,order:this.order,zonedStart:this.zonedStart,zonedEnd:this.zonedEnd,slots:this.slots,group:this.group,range:this.range,isException:this.isException,isRecurring:this.isRecurring,id:this.id,className:this.className,itemStyle:this.itemStyle,editable:this.editable,vertical:this.vertical,dragHint:this.dragHint,resizeHint:this.resizeHint,format:this.format,showOccurrenceDialog:this.compShowOccurrenceDialog,showRemoveDialog:this.compShowRemoveDialog,formItem:this.compFormItem,dragItem:this.compDragItem,resizeItem:this.compResizeItem,removeItem:this.compRemoveItem,itemRef:this.item,selected:e,tabIndex:this.currentTabIndex,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onFocus:this.handleFocus,onMouseup:this.handleMouseUp,onMousedown:this.handleMouseDown,onClick:this.handleClick,onDoubleclick:this.handleDoubleClick,onRemoveclick:this.handleRemoveClick,onPress:this.handlePress,onDrag:this.handleDrag,onRelease:this.handleRelease,onResizepress:this.handleResizePress,onResizeenddrag:this.handleResizeEndDrag,onResizestartdrag:this.handleResizeStartDrag,onResizerelease:this.handleResizeRelease},null);return i=h.getTemplate.call(this,{h:O.h,template:this.$props.viewItem,defaultRendering:n,defaultSlots:t,additionalListeners:{doubleclick:this.handleDoubleClick,removeclick:this.handleRemoveClick,press:this.handlePress,drag:this.handleDrag,release:this.handleRelease,resizepress:this.handleResizePress,resizeenddrag:this.handleResizeEndDrag,resizestartdrag:this.handleResizeStartDrag,resizerelease:this.handleResizeRelease}}),i},methods:{dispatchSeries(t,e){const i=d.seriesReducer(this.compSeries,t);this.currentSeries=i,this.$emit("serieschange",i)},dispatchItemSelection(t,e){this.dispatchSelectedItems(t,e)},dispatchRemoveItem(t,e){let i;switch(t.type){case c.REMOVE_ITEM_ACTION.set:i=t.payload;break;case c.REMOVE_ITEM_ACTION.reset:i=null;break;case c.REMOVE_ITEM_ACTION.complete:this.compRemoveItem&&this.$emit("dataaction",{type:E.DATA_ACTION.remove,series:this.compSeries,dataItem:this.compRemoveItem}),i=null;break;default:i=this.compRemoveItem;break}this.currentRemoveItem=i,this.$emit("removeitemchange",i)},dispatchShowOccurrenceDialog(t,e){const i=s.showOccurrenceDialogReducer(this.compShowOccurrenceDialog,t);this.currentShowOccurrenceDialog=i,this.$emit("showremovedialogchange",i)},dispatchShowRemoveDialog(t,e){const i=l.showRemoveDialogReducer(this.compShowRemoveDialog,t);this.currentShowRemoveDialog=i,this.$emit("showremovedialogchange",i)},dispatchDragItem(t,e){a.useDragItem.call(this,t)},dispatchResizeItem(t,e){r.useResizeItem.call(this,t,e)},dispatchViewSlotsFocus(t,e){this.dispatchFocusedSlots(t,e)},dispatchViewItemsFocus(t,e){this.dispatchFocusedItems(t,e)},dispatchFormItem(t,e){let i;switch(t.type){case o.FORM_ITEM_ACTION.set:i=t.payload;break;case o.FORM_ITEM_ACTION.reset:i=null;break;case o.FORM_ITEM_ACTION.setMaster:i=h.clone(p.findMaster(t.payload,this.ks.fields,this.ks.dataItems));break;case o.FORM_ITEM_ACTION.complete:this.compFormItem&&(this.$emit("dataaction",{type:E.DATA_ACTION.update,series:this.compSeries,dataItem:t.payload}),i=null);break;default:i=this.compFormItem;break}this.currentFormItem=i,this.$emit("formitemchange",i)},handleFocus(t){if(this.onFocusAction){const e=this.onFocusAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t)):this.actionsReducerMap[e.type]({...e,item:this.dataItem}))}this.$emit("focus",t)},handleMouseDown(t){if(this.onMouseDownAction){const e=this.onMouseDownAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t)):this.actionsReducerMap[e.type]({...e,item:this.dataItem}))}this.$emit("mousedown",t)},handleMouseUp(t){if(this.onMouseUpAction){const e=this.onMouseUpAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t)):this.actionsReducerMap[e.type]({...e,item:this.dataItem}))}this.$emit("mouseup",t)},handleClick(t){if(this.onClickAction){const e=this.onClickAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t)):this.actionsReducerMap[e.type]({...e,item:this.dataItem}))}this.$emit("click",t)},handleDoubleClick(t){if(this.onDoubleClickAction){const e=this.onDoubleClickAction(t,this.$props),i=this;e&&(Array.isArray(e)?e.filter(Boolean).map(n=>n&&i.actionsReducerMap[n.type]({...n,item:i.dataItem},t)):i.actionsReducerMap[e.type]({...e,item:i.dataItem}))}this.$emit("doubleclick",t)},handleRemoveClick(t){if(this.onRemoveClickAction){const e=this.onRemoveClickAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t)):this.actionsReducerMap[e.type]({...e,item:this.dataItem}))}this.$emit("removeclick",t)},handlePress(t){if(this.onPressAction){const e=this.onPressAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t))}this.$emit("press",t)},handleDrag(t){if(this.onDragAction){const e=this.onDragAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t.dragEvent.originalEvent)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t.dragEvent.originalEvent))}this.$emit("drag",t)},handleRelease(t){if(this.onReleaseAction){const e=this.onReleaseAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t.dragEvent.originalEvent)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t.dragEvent.originalEvent))}this.$emit("release",t)},handleResizePress(t){if(this.onResizePressAction){const e=this.onResizePressAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t.dragEvent.originalEvent)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t.dragEvent.originalEvent))}this.$emit("resizepress",t)},handleResizeStartDrag(t){if(this.onResizeStartDragAction){const e=this.onResizeStartDragAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t.dragEvent.originalEvent)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t.dragEvent.originalEvent))}this.$emit("resizestartdrag",t)},handleResizeEndDrag(t){if(this.onResizeEndDragAction){const e=this.onResizeEndDragAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t.dragEvent.originalEvent)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t.dragEvent.originalEvent))}this.$emit("resizeenddrag",t)},handleResizeRelease(t){if(this.onResizeReleaseAction){const e=this.onResizeReleaseAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t.dragEvent.originalEvent)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t.dragEvent.originalEvent))}this.$emit("resizerelease",t)},handleFormSubmit(t){if(this.onFormSubmitAction){const e=this.onFormSubmitAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t))}this.$emit("formsubmit",t)},handleCancel(t){if(this.onCancelAction){const e=this.onCancelAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t))}this.$emit("cancel",t)},handleOccurrenceClick(t){if(this.onOccurrenceClickAction){const e=this.onOccurrenceClickAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t))}this.$emit("occurrenceclick",t)},handleSeriesClick(t){if(this.onSeriesClickAction){const e=this.onSeriesClickAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t))}this.$emit("seriesclick",t)},handleKeyDown(t){if(this.onKeyDownAction){const e=this.onKeyDownAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this},t.event)):this.actionsReducerMap[e.type]({...e,item:this},t.event))}this.$emit("keydown",t)},handleKeyUp(t){if(this.onKeyUpAction){const e=this.onKeyUpAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t.event)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t.event))}this.$emit("keyup",t)},handleRemoveConfirm(t){if(this.onRemoveConfirmAction){const e=this.onRemoveConfirmAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t.event)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t.event))}this.$emit("removeconfirm",t)},onClickAction(t,e){return[{type:t.event.metaKey||t.event.ctrlKey?this.compSelected&&!this.compDragItem&&!this.compResizeItem?m.ITEMS_SELECT_ACTION.remove:m.ITEMS_SELECT_ACTION.add:m.ITEMS_SELECT_ACTION.select}]},onDoubleClickAction(t,e){return e.editable?[{type:o.FORM_ITEM_ACTION.set,payload:e.dataItem},e.isRecurring&&{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.open}].filter(Boolean):[]},onRemoveClickAction(t,e){return e.editable?[{type:c.REMOVE_ITEM_ACTION.set,payload:e.dataItem},e.isRecurring?{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.open}:{type:l.SHOW_REMOVE_DIALOG_ACTION.open}]:[]},onPressAction(t,e){return e.editable?{type:a.DRAG_ITEM_ACTION.start,payload:{x:t.dragEvent.clientX,y:t.dragEvent.clientY}}:[]},onDragAction(t,e){return e.editable?{type:t.dragEvent.originalEvent.metaKey||t.dragEvent.originalEvent.ctrlKey?a.DRAG_ITEM_ACTION.dragSelected:a.DRAG_ITEM_ACTION.drag,payload:{x:t.dragEvent.clientX,y:t.dragEvent.clientY}}:[]},onReleaseAction(t,e){return e.editable&&this.compDragItem?e.isRecurring&&!e.isException&&this.compSeries===null?{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.open}:{type:e.isRecurring?this.compSeries?a.DRAG_ITEM_ACTION.completeSeries:a.DRAG_ITEM_ACTION.completeOccurrence:a.DRAG_ITEM_ACTION.complete,payload:{x:t.dragEvent.clientX,y:t.dragEvent.clientY}}:[]},onResizePressAction(t,e){return e.editable?{type:r.RESIZE_ITEM_ACTION.start,payload:{x:t.dragEvent.clientX,y:t.dragEvent.clientY}}:[]},onResizeStartDragAction(t,e){return e.editable?{type:t.dragEvent.originalEvent.metaKey||t.dragEvent.originalEvent.ctrlKey?r.RESIZE_ITEM_ACTION.startDragSelected:r.RESIZE_ITEM_ACTION.startDrag,payload:{x:t.dragEvent.clientX,y:t.dragEvent.clientY}}:[]},onResizeEndDragAction(t,e){return e.editable?{type:t.dragEvent.originalEvent.metaKey||t.dragEvent.originalEvent.ctrlKey?r.RESIZE_ITEM_ACTION.endDragSelected:r.RESIZE_ITEM_ACTION.endDrag,payload:{x:t.dragEvent.clientX,y:t.dragEvent.clientY}}:[]},onResizeReleaseAction(t,e){return e.editable&&this.compResizeItem?e.isRecurring&&!e.isException&&this.compSeries===null?{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.open}:{type:e.isRecurring?this.compSeries?r.RESIZE_ITEM_ACTION.completeSeries:r.RESIZE_ITEM_ACTION.completeOccurrence:r.RESIZE_ITEM_ACTION.complete,payload:{x:t.dragEvent.clientX,y:t.dragEvent.clientY}}:[]},onOccurrenceClickAction(t,e){if(this.compDragItem)return[{type:a.DRAG_ITEM_ACTION.completeOccurrence},{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.close}];if(this.compResizeItem)return[{type:r.RESIZE_ITEM_ACTION.completeOccurrence},{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.close}];if(this.compFormItem)return[{type:d.SERIES_ACTION.set,payload:!1},{type:o.FORM_ITEM_ACTION.set,payload:e.dataItem},{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.close}];if(this.compRemoveItem)return[{type:d.SERIES_ACTION.set,payload:!1},{type:c.REMOVE_ITEM_ACTION.set,payload:e.dataItem},{type:l.SHOW_REMOVE_DIALOG_ACTION.open},{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.close}]},onSeriesClickAction(t,e){if(this.compDragItem)return[{type:a.DRAG_ITEM_ACTION.completeSeries},{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.close}];if(this.compResizeItem)return[{type:r.RESIZE_ITEM_ACTION.completeSeries},{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.close}];if(this.compFormItem)return[{type:d.SERIES_ACTION.set,payload:!0},{type:o.FORM_ITEM_ACTION.setMaster,payload:e.dataItem},{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.close}];if(this.compRemoveItem)return[{type:d.SERIES_ACTION.set,payload:!0},{type:c.REMOVE_ITEM_ACTION.set,payload:e.dataItem},{type:l.SHOW_REMOVE_DIALOG_ACTION.open},{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.close}]},onKeyDownAction(t,e){let i;switch(t.event.keyCode){case h.Keys.enter:return[{type:o.FORM_ITEM_ACTION.set,payload:e.dataItem},e.isRecurring&&{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.open}];case h.Keys.tab:return[{type:t.event.shiftKey?u.ITEMS_FOCUS_ACTION.prev:u.ITEMS_FOCUS_ACTION.next,ignoreIsAllDay:e.ignoreIsAllDay},{type:t.event.shiftKey?m.ITEMS_SELECT_ACTION.selectPrev:m.ITEMS_SELECT_ACTION.selectNext,ignoreIsAllDay:e.ignoreIsAllDay}];case h.Keys.up:return i=this.bv.slots.find(n=>p.compareSlots(n.cSlot,e.slots[0])),[!!(e.slots.length&&i)&&{type:I.SLOTS_FOCUS_ACTION.up,slot:i}];case h.Keys.right:return i=this.bv.slots.find(n=>p.compareSlots(n.cSlot,e.slots[0])),[!!(e.slots.length&&i)&&{type:I.SLOTS_FOCUS_ACTION.right,slot:i}];case h.Keys.down:return i=this.bv.slots.find(n=>p.compareSlots(n.cSlot,e.slots[e.slots.length-1])),[!!(e.slots.length&&i)&&{type:I.SLOTS_FOCUS_ACTION.down,slot:i}];case h.Keys.left:return i=this.bv.slots.find(n=>p.compareSlots(n.cSlot.cSlot,e.slots[0])),[!!(e.slots.length&&i)&&{type:I.SLOTS_FOCUS_ACTION.left,slot:i}];case h.Keys.delete:case h.Keys.backspace:return[{type:c.REMOVE_ITEM_ACTION.set,payload:e.dataItem},e.isRecurring?{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.open}:{type:l.SHOW_REMOVE_DIALOG_ACTION.open}];default:return}},onFormSubmitAction(t){return{type:o.FORM_ITEM_ACTION.complete,payload:t.value}},onRemoveConfirmAction(){return[{type:c.REMOVE_ITEM_ACTION.complete},{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.close}]},onCancelAction(){return[{type:d.SERIES_ACTION.reset},{type:c.REMOVE_ITEM_ACTION.reset},{type:o.FORM_ITEM_ACTION.reset},{type:a.DRAG_ITEM_ACTION.reset},{type:r.RESIZE_ITEM_ACTION.reset},{type:l.SHOW_REMOVE_DIALOG_ACTION.reset},{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.reset}]}}});exports.SchedulerEditItem=_;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("vue"),E=require("../constants/main.js"),h=require("@progress/kendo-vue-common"),A=require("./SchedulerViewItem.js"),o=require("./hooks/use-form-item.js"),s=require("./hooks/use-show-occurrence-dialog.js"),c=require("./hooks/use-remove-item.js"),l=require("./hooks/use-show-remove-item-dialog.js"),a=require("./hooks/use-drag-item.js"),r=require("./hooks/use-resize-item.js"),d=require("./hooks/use-series.js"),m=require("../hooks/use-items-selection.js"),p=require("../utils/main.js"),I=require("../hooks/use-slots-focus.js"),u=require("../hooks/use-items-focus.js"),_=O.defineComponent({name:"KendoSchedulerEditItem",inheritAttrs:!1,props:{tabIndex:{type:Number,default:void 0},item:[String,Function,Object],viewItem:[String,Function,Object],drag:[String,Function,Object],resize:[String,Function,Object],form:[String,Function,Object],removeDialog:[String,Function,Object],occurrenceDialog:[String,Function,Object],formItem:Object,dragItem:Object,resizeItem:Object,removeItem:Object,showOccurrenceDialog:{type:Boolean,default:void 0},showRemoveDialog:{type:Boolean,default:void 0},series:{type:Boolean,default:void 0},uid:[String,Number],start:Date,end:Date,originalStart:Date,startTimezone:String,endTimezone:String,isAllDay:Boolean,title:String,description:String,occurrenceId:String,recurrenceExceptions:Array,recurrenceRule:String,recurrenceId:[String,Number],dataItem:Object,head:Boolean,tail:Boolean,order:Number,zonedStart:Object,zonedEnd:Object,slots:Array,group:Object,range:Object,isException:Boolean,isRecurring:Boolean,id:String,className:String,itemStyle:Object,editable:[Object,Boolean],selected:Boolean,vertical:Boolean,dragHint:Boolean,resizeHint:Boolean,format:String,ignoreIsAllDay:Boolean,itemRef:Object,onRemoveclick:Function,onDataaction:Function,onFormItemChange:Function,onDragitemchange:Function,onResizeitemchange:Function},inject:{bv:{default:null},ks:{default:null},dispatchFocusedItems:{default:null},dispatchFocusedSlots:{default:null},dispatchSelectedItems:{default:null}},provide(){return{ei:this.ei,ksCancel:this.handleCancel,ksFormSubmit:this.handleFormSubmit,ksOccurrenceClick:this.handleOccurrenceClick,ksSeriesClick:this.handleSeriesClick,ksRemoveConfirm:this.handleRemoveConfirm}},data(){return{ei:{props:this.$props,form:this.$props.formItem,drag:this.drag,resize:this.resize,remove:this.remove,showRemoveDialog:this.showRemoveDialog,showOccurrenceDialog:this.showOccurrenceDialog},currentFormItem:null,currentSelected:null,currentSeries:null,currentRemoveItem:null,currentDragItem:null,currentResizeItem:null,currentShowRemoveDialog:null,currentShowOccurrenceDialog:null}},computed:{currentTabIndex(){const t=this.bv.items.length&&this.bv.items[0].dataItem.id===this.dataItem.id;return this.$props.tabIndex!==void 0?this.$props.tabIndex===null?void 0:this.$props.tabIndex:this.bv.selectedItems.length===0&&t?0:void 0},compSelected(){return this.selected!==void 0?this.selected:this.currentSelected},compSeries(){return this.series!==void 0?this.series:this.currentSeries},compFormItem(){return this.formItem!==void 0?this.formItem:this.currentFormItem},compRemoveItem(){return this.removeItem!==void 0?this.removeItem:this.currentRemoveItem},compDragItem(){return this.dragItem!==void 0?this.dragItem:this.currentDragItem},compResizeItem(){return this.resizeItem!==void 0?this.resizeItem:this.currentResizeItem},compShowRemoveDialog(){return this.showRemoveDialog!==void 0?this.showRemoveDialog:this.currentShowRemoveDialog},compShowOccurrenceDialog(){return this.showOccurrenceDialog!==void 0?this.showOccurrenceDialog:this.currentShowOccurrenceDialog},actionsReducerMap(){return{[d.SERIES_ACTION.set]:this.dispatchSeries,[d.SERIES_ACTION.toggle]:this.dispatchSeries,[d.SERIES_ACTION.reset]:this.dispatchSeries,[m.ITEMS_SELECT_ACTION.select]:this.dispatchItemSelection,[m.ITEMS_SELECT_ACTION.add]:this.dispatchItemSelection,[m.ITEMS_SELECT_ACTION.remove]:this.dispatchItemSelection,[m.ITEMS_SELECT_ACTION.reset]:this.dispatchItemSelection,[m.ITEMS_SELECT_ACTION.selectNext]:this.dispatchItemSelection,[m.ITEMS_SELECT_ACTION.selectPrev]:this.dispatchItemSelection,[o.FORM_ITEM_ACTION.set]:this.dispatchFormItem,[o.FORM_ITEM_ACTION.setMaster]:this.dispatchFormItem,[o.FORM_ITEM_ACTION.reset]:this.dispatchFormItem,[o.FORM_ITEM_ACTION.complete]:this.dispatchFormItem,[c.REMOVE_ITEM_ACTION.set]:this.dispatchRemoveItem,[c.REMOVE_ITEM_ACTION.reset]:this.dispatchRemoveItem,[c.REMOVE_ITEM_ACTION.complete]:this.dispatchRemoveItem,[s.SHOW_OCCURRENCE_DIALOG_ACTION.close]:this.dispatchShowOccurrenceDialog,[s.SHOW_OCCURRENCE_DIALOG_ACTION.open]:this.dispatchShowOccurrenceDialog,[s.SHOW_OCCURRENCE_DIALOG_ACTION.set]:this.dispatchShowOccurrenceDialog,[s.SHOW_OCCURRENCE_DIALOG_ACTION.toggle]:this.dispatchShowOccurrenceDialog,[s.SHOW_OCCURRENCE_DIALOG_ACTION.reset]:this.dispatchShowOccurrenceDialog,[l.SHOW_REMOVE_DIALOG_ACTION.close]:this.dispatchShowRemoveDialog,[l.SHOW_REMOVE_DIALOG_ACTION.open]:this.dispatchShowRemoveDialog,[l.SHOW_REMOVE_DIALOG_ACTION.set]:this.dispatchShowRemoveDialog,[l.SHOW_REMOVE_DIALOG_ACTION.toggle]:this.dispatchShowRemoveDialog,[l.SHOW_REMOVE_DIALOG_ACTION.reset]:this.dispatchShowRemoveDialog,[a.DRAG_ITEM_ACTION.start]:this.dispatchDragItem,[a.DRAG_ITEM_ACTION.drag]:this.dispatchDragItem,[a.DRAG_ITEM_ACTION.complete]:this.dispatchDragItem,[a.DRAG_ITEM_ACTION.completeOccurrence]:this.dispatchDragItem,[a.DRAG_ITEM_ACTION.completeSeries]:this.dispatchDragItem,[a.DRAG_ITEM_ACTION.set]:this.dispatchDragItem,[a.DRAG_ITEM_ACTION.reset]:this.dispatchDragItem,[a.DRAG_ITEM_ACTION.dragSelected]:this.dispatchDragItem,[r.RESIZE_ITEM_ACTION.start]:this.dispatchResizeItem,[r.RESIZE_ITEM_ACTION.startDrag]:this.dispatchResizeItem,[r.RESIZE_ITEM_ACTION.startDragSelected]:this.dispatchResizeItem,[r.RESIZE_ITEM_ACTION.endDrag]:this.dispatchResizeItem,[r.RESIZE_ITEM_ACTION.endDragSelected]:this.dispatchResizeItem,[r.RESIZE_ITEM_ACTION.complete]:this.dispatchResizeItem,[r.RESIZE_ITEM_ACTION.completeOccurrence]:this.dispatchResizeItem,[r.RESIZE_ITEM_ACTION.completeSeries]:this.dispatchResizeItem,[r.RESIZE_ITEM_ACTION.set]:this.dispatchResizeItem,[r.RESIZE_ITEM_ACTION.reset]:this.dispatchResizeItem,[u.ITEMS_FOCUS_ACTION.next]:this.dispatchViewItemsFocus,[u.ITEMS_FOCUS_ACTION.prev]:this.dispatchViewItemsFocus,[I.SLOTS_FOCUS_ACTION.left]:this.dispatchViewSlotsFocus,[I.SLOTS_FOCUS_ACTION.right]:this.dispatchViewSlotsFocus,[I.SLOTS_FOCUS_ACTION.up]:this.dispatchViewSlotsFocus,[I.SLOTS_FOCUS_ACTION.down]:this.dispatchViewSlotsFocus,null:()=>{}}}},render(){const t=h.getDefaultSlots(this),e=!!(this.bv.selectedItems&&this.bv.selectedItems.some(R=>p.compareItems(R,this,this.ignoreIsAllDay)));let i;const n=O.createVNode(A.SchedulerViewItem,{ignoreIsAllDay:this.ignoreIsAllDay,item:this.item,uid:this.uid,start:this.start,end:this.end,originalStart:this.originalStart,startTimezone:this.startTimezone,endTimezone:this.endTimezone,isAllDay:this.isAllDay,title:this.title,description:this.description,occurrenceId:this.occurrenceId,recurrenceExceptions:this.recurrenceExceptions,recurrenceRule:this.recurrenceRule,recurrenceId:this.recurrenceId,dataItem:this.dataItem,head:this.head,tail:this.tail,order:this.order,zonedStart:this.zonedStart,zonedEnd:this.zonedEnd,slots:this.slots,group:this.group,range:this.range,isException:this.isException,isRecurring:this.isRecurring,id:this.id,className:this.className,itemStyle:this.itemStyle,editable:this.editable,vertical:this.vertical,dragHint:this.dragHint,resizeHint:this.resizeHint,format:this.format,showOccurrenceDialog:this.compShowOccurrenceDialog,showRemoveDialog:this.compShowRemoveDialog,formItem:this.compFormItem,dragItem:this.compDragItem,resizeItem:this.compResizeItem,removeItem:this.compRemoveItem,itemRef:this.item,selected:e,tabIndex:this.currentTabIndex,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onFocus:this.handleFocus,onMouseup:this.handleMouseUp,onMousedown:this.handleMouseDown,onClick:this.handleClick,onDoubleclick:this.handleDoubleClick,onRemoveclick:this.handleRemoveClick,onPress:this.handlePress,onDrag:this.handleDrag,onRelease:this.handleRelease,onResizepress:this.handleResizePress,onResizeenddrag:this.handleResizeEndDrag,onResizestartdrag:this.handleResizeStartDrag,onResizerelease:this.handleResizeRelease},null);return i=h.getTemplate.call(this,{h:O.h,template:this.$props.viewItem,defaultRendering:n,defaultSlots:t,additionalListeners:{doubleclick:this.handleDoubleClick,removeclick:this.handleRemoveClick,press:this.handlePress,drag:this.handleDrag,release:this.handleRelease,resizepress:this.handleResizePress,resizeenddrag:this.handleResizeEndDrag,resizestartdrag:this.handleResizeStartDrag,resizerelease:this.handleResizeRelease}}),i},methods:{dispatchSeries(t,e){const i=d.seriesReducer(this.compSeries,t);this.currentSeries=i,this.$emit("serieschange",i)},dispatchItemSelection(t,e){this.dispatchSelectedItems(t,e)},dispatchRemoveItem(t,e){let i;switch(t.type){case c.REMOVE_ITEM_ACTION.set:i=t.payload;break;case c.REMOVE_ITEM_ACTION.reset:i=null;break;case c.REMOVE_ITEM_ACTION.complete:this.compRemoveItem&&this.$emit("dataaction",{type:E.DATA_ACTION.remove,series:this.compSeries,dataItem:this.compRemoveItem}),i=null;break;default:i=this.compRemoveItem;break}this.currentRemoveItem=i,this.$emit("removeitemchange",i)},dispatchShowOccurrenceDialog(t,e){const i=s.showOccurrenceDialogReducer(this.compShowOccurrenceDialog,t);this.currentShowOccurrenceDialog=i,this.$emit("showremovedialogchange",i)},dispatchShowRemoveDialog(t,e){const i=l.showRemoveDialogReducer(this.compShowRemoveDialog,t);this.currentShowRemoveDialog=i,this.$emit("showremovedialogchange",i)},dispatchDragItem(t,e){a.useDragItem.call(this,t)},dispatchResizeItem(t,e){r.useResizeItem.call(this,t,e)},dispatchViewSlotsFocus(t,e){this.dispatchFocusedSlots(t,e)},dispatchViewItemsFocus(t,e){this.dispatchFocusedItems(t,e)},dispatchFormItem(t,e){let i;switch(t.type){case o.FORM_ITEM_ACTION.set:i=t.payload;break;case o.FORM_ITEM_ACTION.reset:i=null;break;case o.FORM_ITEM_ACTION.setMaster:i=h.clone(p.findMaster(t.payload,this.ks.fields,this.ks.dataItems));break;case o.FORM_ITEM_ACTION.complete:this.compFormItem&&(this.$emit("dataaction",{type:E.DATA_ACTION.update,series:this.compSeries,dataItem:t.payload}),i=null);break;default:i=this.compFormItem;break}this.currentFormItem=i,this.$emit("formitemchange",i)},handleFocus(t){if(this.onFocusAction){const e=this.onFocusAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t)):this.actionsReducerMap[e.type]({...e,item:this.dataItem}))}this.$emit("focus",t)},handleMouseDown(t){if(this.onMouseDownAction){const e=this.onMouseDownAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t)):this.actionsReducerMap[e.type]({...e,item:this.dataItem}))}this.$emit("mousedown",t)},handleMouseUp(t){if(this.onMouseUpAction){const e=this.onMouseUpAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t)):this.actionsReducerMap[e.type]({...e,item:this.dataItem}))}this.$emit("mouseup",t)},handleClick(t){if(this.onClickAction){const e=this.onClickAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t)):this.actionsReducerMap[e.type]({...e,item:this.dataItem}))}this.$emit("click",t)},handleDoubleClick(t){if(this.onDoubleClickAction){const e=this.onDoubleClickAction(t,this.$props),i=this;e&&(Array.isArray(e)?e.filter(Boolean).map(n=>n&&i.actionsReducerMap[n.type]({...n,item:i.dataItem},t)):i.actionsReducerMap[e.type]({...e,item:i.dataItem}))}this.$emit("doubleclick",t)},handleRemoveClick(t){if(this.onRemoveClickAction){const e=this.onRemoveClickAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t)):this.actionsReducerMap[e.type]({...e,item:this.dataItem}))}this.$emit("removeclick",t)},handlePress(t){if(this.onPressAction){const e=this.onPressAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t))}this.$emit("press",t)},handleDrag(t){if(this.onDragAction){const e=this.onDragAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t.dragEvent.originalEvent)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t.dragEvent.originalEvent))}this.$emit("drag",t)},handleRelease(t){if(this.onReleaseAction){const e=this.onReleaseAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t.dragEvent.originalEvent)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t.dragEvent.originalEvent))}this.$emit("release",t)},handleResizePress(t){if(this.onResizePressAction){const e=this.onResizePressAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t.dragEvent.originalEvent)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t.dragEvent.originalEvent))}this.$emit("resizepress",t)},handleResizeStartDrag(t){if(this.onResizeStartDragAction){const e=this.onResizeStartDragAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t.dragEvent.originalEvent)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t.dragEvent.originalEvent))}this.$emit("resizestartdrag",t)},handleResizeEndDrag(t){if(this.onResizeEndDragAction){const e=this.onResizeEndDragAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t.dragEvent.originalEvent)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t.dragEvent.originalEvent))}this.$emit("resizeenddrag",t)},handleResizeRelease(t){if(this.onResizeReleaseAction){const e=this.onResizeReleaseAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t.dragEvent.originalEvent)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t.dragEvent.originalEvent))}this.$emit("resizerelease",t)},handleFormSubmit(t){if(this.onFormSubmitAction){const e=this.onFormSubmitAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t))}this.$emit("formsubmit",t)},handleCancel(t){if(this.onCancelAction){const e=this.onCancelAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t))}this.$emit("cancel",t)},handleOccurrenceClick(t){if(this.onOccurrenceClickAction){const e=this.onOccurrenceClickAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t))}this.$emit("occurrenceclick",t)},handleSeriesClick(t){if(this.onSeriesClickAction){const e=this.onSeriesClickAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t))}this.$emit("seriesclick",t)},handleKeyDown(t){if(this.onKeyDownAction){const e=this.onKeyDownAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this},t.event)):this.actionsReducerMap[e.type]({...e,item:this},t.event))}this.$emit("keydown",t)},handleKeyUp(t){if(this.onKeyUpAction){const e=this.onKeyUpAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t.event)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t.event))}this.$emit("keyup",t)},handleRemoveConfirm(t){if(this.onRemoveConfirmAction){const e=this.onRemoveConfirmAction(t,this.$props);e&&(Array.isArray(e)?e.filter(Boolean).map(i=>i&&this.actionsReducerMap[i.type]({...i,item:this.dataItem},t.event)):this.actionsReducerMap[e.type]({...e,item:this.dataItem},t.event))}this.$emit("removeconfirm",t)},onClickAction(t,e){return[{type:t.event.metaKey||t.event.ctrlKey?this.compSelected&&!this.compDragItem&&!this.compResizeItem?m.ITEMS_SELECT_ACTION.remove:m.ITEMS_SELECT_ACTION.add:m.ITEMS_SELECT_ACTION.select}]},onDoubleClickAction(t,e){return e.editable?[{type:o.FORM_ITEM_ACTION.set,payload:e.dataItem},e.isRecurring&&{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.open}].filter(Boolean):[]},onRemoveClickAction(t,e){return e.editable?[{type:c.REMOVE_ITEM_ACTION.set,payload:e.dataItem},e.isRecurring?{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.open}:{type:l.SHOW_REMOVE_DIALOG_ACTION.open}]:[]},onPressAction(t,e){return e.editable?{type:a.DRAG_ITEM_ACTION.start,payload:{x:t.dragEvent.clientX,y:t.dragEvent.clientY}}:[]},onDragAction(t,e){return e.editable?{type:t.dragEvent.originalEvent.metaKey||t.dragEvent.originalEvent.ctrlKey?a.DRAG_ITEM_ACTION.dragSelected:a.DRAG_ITEM_ACTION.drag,payload:{x:t.dragEvent.clientX,y:t.dragEvent.clientY}}:[]},onReleaseAction(t,e){return e.editable&&this.compDragItem?e.isRecurring&&!e.isException&&this.compSeries===null?{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.open}:{type:e.isRecurring?this.compSeries?a.DRAG_ITEM_ACTION.completeSeries:a.DRAG_ITEM_ACTION.completeOccurrence:a.DRAG_ITEM_ACTION.complete,payload:{x:t.dragEvent.clientX,y:t.dragEvent.clientY}}:[]},onResizePressAction(t,e){return e.editable?{type:r.RESIZE_ITEM_ACTION.start,payload:{x:t.dragEvent.clientX,y:t.dragEvent.clientY}}:[]},onResizeStartDragAction(t,e){return e.editable?{type:t.dragEvent.originalEvent.metaKey||t.dragEvent.originalEvent.ctrlKey?r.RESIZE_ITEM_ACTION.startDragSelected:r.RESIZE_ITEM_ACTION.startDrag,payload:{x:t.dragEvent.clientX,y:t.dragEvent.clientY}}:[]},onResizeEndDragAction(t,e){return e.editable?{type:t.dragEvent.originalEvent.metaKey||t.dragEvent.originalEvent.ctrlKey?r.RESIZE_ITEM_ACTION.endDragSelected:r.RESIZE_ITEM_ACTION.endDrag,payload:{x:t.dragEvent.clientX,y:t.dragEvent.clientY}}:[]},onResizeReleaseAction(t,e){return e.editable&&this.compResizeItem?e.isRecurring&&!e.isException&&this.compSeries===null?{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.open}:{type:e.isRecurring?this.compSeries?r.RESIZE_ITEM_ACTION.completeSeries:r.RESIZE_ITEM_ACTION.completeOccurrence:r.RESIZE_ITEM_ACTION.complete,payload:{x:t.dragEvent.clientX,y:t.dragEvent.clientY}}:[]},onOccurrenceClickAction(t,e){if(this.compDragItem)return[{type:a.DRAG_ITEM_ACTION.completeOccurrence},{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.close}];if(this.compResizeItem)return[{type:r.RESIZE_ITEM_ACTION.completeOccurrence},{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.close}];if(this.compFormItem)return[{type:d.SERIES_ACTION.set,payload:!1},{type:o.FORM_ITEM_ACTION.set,payload:e.dataItem},{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.close}];if(this.compRemoveItem)return[{type:d.SERIES_ACTION.set,payload:!1},{type:c.REMOVE_ITEM_ACTION.set,payload:e.dataItem},{type:l.SHOW_REMOVE_DIALOG_ACTION.open},{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.close}]},onSeriesClickAction(t,e){if(this.compDragItem)return[{type:a.DRAG_ITEM_ACTION.completeSeries},{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.close}];if(this.compResizeItem)return[{type:r.RESIZE_ITEM_ACTION.completeSeries},{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.close}];if(this.compFormItem)return[{type:d.SERIES_ACTION.set,payload:!0},{type:o.FORM_ITEM_ACTION.setMaster,payload:e.dataItem},{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.close}];if(this.compRemoveItem)return[{type:d.SERIES_ACTION.set,payload:!0},{type:c.REMOVE_ITEM_ACTION.set,payload:e.dataItem},{type:l.SHOW_REMOVE_DIALOG_ACTION.open},{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.close}]},onKeyDownAction(t,e){let i;switch(t.event.keyCode){case h.Keys.enter:return[{type:o.FORM_ITEM_ACTION.set,payload:e.dataItem},e.isRecurring&&{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.open}];case h.Keys.tab:return[{type:t.event.shiftKey?u.ITEMS_FOCUS_ACTION.prev:u.ITEMS_FOCUS_ACTION.next,ignoreIsAllDay:e.ignoreIsAllDay},{type:t.event.shiftKey?m.ITEMS_SELECT_ACTION.selectPrev:m.ITEMS_SELECT_ACTION.selectNext,ignoreIsAllDay:e.ignoreIsAllDay}];case h.Keys.up:return i=this.bv.slots.find(n=>p.compareSlots(n.cSlot,e.slots[0])),[!!(e.slots.length&&i)&&{type:I.SLOTS_FOCUS_ACTION.up,slot:i}];case h.Keys.right:return i=this.bv.slots.find(n=>p.compareSlots(n.cSlot,e.slots[0])),[!!(e.slots.length&&i)&&{type:I.SLOTS_FOCUS_ACTION.right,slot:i}];case h.Keys.down:return i=this.bv.slots.find(n=>p.compareSlots(n.cSlot,e.slots[e.slots.length-1])),[!!(e.slots.length&&i)&&{type:I.SLOTS_FOCUS_ACTION.down,slot:i}];case h.Keys.left:return i=this.bv.slots.find(n=>p.compareSlots(n.cSlot.cSlot,e.slots[0])),[!!(e.slots.length&&i)&&{type:I.SLOTS_FOCUS_ACTION.left,slot:i}];case h.Keys.delete:case h.Keys.backspace:return[{type:c.REMOVE_ITEM_ACTION.set,payload:e.dataItem},e.isRecurring?{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.open}:{type:l.SHOW_REMOVE_DIALOG_ACTION.open}];default:return}},onFormSubmitAction(t){return{type:o.FORM_ITEM_ACTION.complete,payload:t.value}},onRemoveConfirmAction(){return[{type:c.REMOVE_ITEM_ACTION.complete},{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.close}]},onCancelAction(){return[{type:d.SERIES_ACTION.reset},{type:c.REMOVE_ITEM_ACTION.reset},{type:o.FORM_ITEM_ACTION.reset},{type:a.DRAG_ITEM_ACTION.reset},{type:r.RESIZE_ITEM_ACTION.reset},{type:l.SHOW_REMOVE_DIALOG_ACTION.reset},{type:s.SHOW_OCCURRENCE_DIALOG_ACTION.reset}]}}});exports.SchedulerEditItem=_;
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { defineComponent as R, createVNode as f, h as S } from "vue";
9
9
  import { DATA_ACTION as y } from "../constants/main.mjs";
10
- import { getDefaultSlots as A, getTemplate as D, clone as E, Keys as m } from "@progress/kendo-vue-common";
10
+ import { Keys as m, clone as A, getDefaultSlots as D, getTemplate as E } from "@progress/kendo-vue-common";
11
11
  import { SchedulerViewItem as v } from "./SchedulerViewItem.mjs";
12
12
  import { FORM_ITEM_ACTION as o } from "./hooks/use-form-item.mjs";
13
13
  import { SHOW_OCCURRENCE_DIALOG_ACTION as s, showOccurrenceDialogReducer as b } from "./hooks/use-show-occurrence-dialog.mjs";
@@ -17,9 +17,9 @@ import { DRAG_ITEM_ACTION as a, useDragItem as w } from "./hooks/use-drag-item.m
17
17
  import { RESIZE_ITEM_ACTION as r, useResizeItem as O } from "./hooks/use-resize-item.mjs";
18
18
  import { SERIES_ACTION as d, seriesReducer as M } from "./hooks/use-series.mjs";
19
19
  import { ITEMS_SELECT_ACTION as h } from "../hooks/use-items-selection.mjs";
20
- import { compareItems as C, findMaster as k, compareSlots as u } from "../utils/main.mjs";
21
- import { ITEMS_FOCUS_ACTION as g } from "../hooks/use-items-focus.mjs";
20
+ import { compareSlots as u, findMaster as C, compareItems as k } from "../utils/main.mjs";
22
21
  import { SLOTS_FOCUS_ACTION as p } from "../hooks/use-slots-focus.mjs";
22
+ import { ITEMS_FOCUS_ACTION as g } from "../hooks/use-items-focus.mjs";
23
23
  const L = /* @__PURE__ */ R({
24
24
  name: "KendoSchedulerEditItem",
25
25
  inheritAttrs: !1,
@@ -228,7 +228,7 @@ const L = /* @__PURE__ */ R({
228
228
  }
229
229
  },
230
230
  render() {
231
- const t = A(this), e = !!(this.bv.selectedItems && this.bv.selectedItems.some((I) => C(I, this, this.ignoreIsAllDay)));
231
+ const t = D(this), e = !!(this.bv.selectedItems && this.bv.selectedItems.some((I) => k(I, this, this.ignoreIsAllDay)));
232
232
  let i;
233
233
  const n = f(v, {
234
234
  ignoreIsAllDay: this.ignoreIsAllDay,
@@ -290,7 +290,7 @@ const L = /* @__PURE__ */ R({
290
290
  onResizestartdrag: this.handleResizeStartDrag,
291
291
  onResizerelease: this.handleResizeRelease
292
292
  }, null);
293
- return i = D.call(this, {
293
+ return i = E.call(this, {
294
294
  h: S,
295
295
  template: this.$props.viewItem,
296
296
  defaultRendering: n,
@@ -378,7 +378,7 @@ const L = /* @__PURE__ */ R({
378
378
  i = null;
379
379
  break;
380
380
  case o.setMaster:
381
- i = E(k(t.payload, this.ks.fields, this.ks.dataItems));
381
+ i = A(C(t.payload, this.ks.fields, this.ks.dataItems));
382
382
  break;
383
383
  case o.complete:
384
384
  this.compFormItem && (this.$emit("dataaction", {
@@ -6,7 +6,7 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import { defineComponent as p, h as m, createVNode as t } from "vue";
9
- import { toSchedulerGroups as u, formatEventTime as c, COLLECTION_ACTION as n } from "../utils/main.mjs";
9
+ import { COLLECTION_ACTION as n, formatEventTime as u, toSchedulerGroups as c } from "../utils/main.mjs";
10
10
  import { getDefaultSlots as g, getTemplate as $, Draggable as r, Icon as l } from "@progress/kendo-vue-common";
11
11
  import { provideIntlService as k, provideLocalizationService as b } from "@progress/kendo-vue-intl";
12
12
  import { deleteTitle as o, messages as f } from "../messages/main.mjs";
@@ -139,7 +139,7 @@ const N = /* @__PURE__ */ p({
139
139
  return D(this.$props.editable);
140
140
  },
141
141
  resource() {
142
- const e = this.$props.group.resources.find((s) => !!(s.colorField && s[s.colorField] !== "" && s[s.colorField] !== void 0)), i = u(void 0, this.ks.props.resources)[0].resources.find((s) => !!(s.colorField && s[s.colorField] !== "" && s[s.colorField] !== void 0 && this.dataItem[s.field] === s.value));
142
+ const e = this.$props.group.resources.find((s) => !!(s.colorField && s[s.colorField] !== "" && s[s.colorField] !== void 0)), i = c(void 0, this.ks.props.resources)[0].resources.find((s) => !!(s.colorField && s[s.colorField] !== "" && s[s.colorField] !== void 0 && this.dataItem[s.field] === s.value));
143
143
  return e || i;
144
144
  },
145
145
  color() {
@@ -161,7 +161,7 @@ const N = /* @__PURE__ */ p({
161
161
  };
162
162
  },
163
163
  eventLabel() {
164
- return `${c(this.intl, this.$props.zonedStart, this.$props.zonedEnd, this.$props.isAllDay)}, ${this.$props.title}`;
164
+ return `${u(this.intl, this.$props.zonedStart, this.$props.zonedEnd, this.$props.isAllDay)}, ${this.$props.title}`;
165
165
  },
166
166
  computedStyle() {
167
167
  return {
@@ -7,12 +7,12 @@
7
7
  */
8
8
  import { defineComponent as v, createVNode as c, h as I, isVNode as D } from "vue";
9
9
  import { SchedulerItem as y } from "./SchedulerItem.mjs";
10
- import { intersects as S, first as w, calculateOrder as k } from "../utils/main.mjs";
10
+ import { calculateOrder as w, intersects as S, first as k } from "../utils/main.mjs";
11
11
  import { getRect as u, setRect as f } from "../views/common/utils.mjs";
12
12
  import { BORDER_WIDTH as a } from "../constants/main.mjs";
13
13
  import { provideIntlService as O } from "@progress/kendo-vue-intl";
14
14
  import { SchedulerItemContent as $ } from "./SchedulerItemContent.mjs";
15
- import { canUseDOM as b, getDefaultSlots as E, getTemplate as F } from "@progress/kendo-vue-common";
15
+ import { getDefaultSlots as E, getTemplate as F, canUseDOM as b } from "@progress/kendo-vue-common";
16
16
  function z(e) {
17
17
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !D(e);
18
18
  }
@@ -329,7 +329,7 @@ const x = 1, N = /* @__PURE__ */ v({
329
329
  this.display = !1;
330
330
  return;
331
331
  }
332
- const t = w(e.sort(function(s, n) {
332
+ const t = k(e.sort(function(s, n) {
333
333
  return s.cSlot.start && n.cSlot.start ? s.cSlot.start.getTime() - n.cSlot.start.getTime() : !0;
334
334
  }));
335
335
  if (!t)
@@ -344,7 +344,7 @@ const x = 1, N = /* @__PURE__ */ v({
344
344
  (this.bv.items || []).forEach((o) => {
345
345
  o && (o.$props.dragHint ? r.push(o) : o.$props.resizeHint ? s.push(o) : t.push(o));
346
346
  });
347
- const n = this.$props.dragHint || this.$props.resizeHint ? k(this, this.$props.dragHint ? r : s, e, this.$props.ignoreIsAllDay) : this.$props.order || 0;
347
+ const n = this.$props.dragHint || this.$props.resizeHint ? w(this, this.$props.dragHint ? r : s, e, this.$props.ignoreIsAllDay) : this.$props.order || 0;
348
348
  let h = this.$props.dragHint || this.$props.resizeHint ? this.calculateMostSiblings(e, this.$props.dragHint ? r : s) : this.calculateMostSiblings(e, t);
349
349
  const R = this.getSiblingsInAllSlots(e, t);
350
350
  let p = 0;
@@ -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: 1748962097,version:"6.4.1-develop.2",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;
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: 1750422048,version:"6.4.2-develop.3",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;
@@ -10,8 +10,8 @@ const e = {
10
10
  productName: "Kendo UI for Vue",
11
11
  productCode: "KENDOUIVUE",
12
12
  productCodes: ["KENDOUIVUE"],
13
- publishDate: 1748962097,
14
- version: "6.4.1-develop.2",
13
+ publishDate: 1750422048,
14
+ version: "6.4.2-develop.3",
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.1-develop.2",
3
+ "version": "6.4.2-develop.3",
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.1-develop.2",
25
- "@progress/kendo-vue-buttons": "6.4.1-develop.2",
26
- "@progress/kendo-vue-dateinputs": "6.4.1-develop.2",
27
- "@progress/kendo-vue-dialogs": "6.4.1-develop.2",
28
- "@progress/kendo-vue-dropdowns": "6.4.1-develop.2",
29
- "@progress/kendo-vue-form": "6.4.1-develop.2",
30
- "@progress/kendo-vue-inputs": "6.4.1-develop.2",
31
- "@progress/kendo-vue-intl": "6.4.1-develop.2",
32
- "@progress/kendo-vue-popup": "6.4.1-develop.2",
24
+ "@progress/kendo-vue-common": "6.4.2-develop.3",
25
+ "@progress/kendo-vue-buttons": "6.4.2-develop.3",
26
+ "@progress/kendo-vue-dateinputs": "6.4.2-develop.3",
27
+ "@progress/kendo-vue-dialogs": "6.4.2-develop.3",
28
+ "@progress/kendo-vue-dropdowns": "6.4.2-develop.3",
29
+ "@progress/kendo-vue-form": "6.4.2-develop.3",
30
+ "@progress/kendo-vue-inputs": "6.4.2-develop.3",
31
+ "@progress/kendo-vue-intl": "6.4.2-develop.3",
32
+ "@progress/kendo-vue-popup": "6.4.2-develop.3",
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": 1748962097,
57
+ "publishDate": 1750422048,
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
  },
@@ -8,12 +8,12 @@
8
8
  import { defineComponent as W, createVNode as a, isVNode as z } from "vue";
9
9
  import { provideIntlService as E, provideLocalizationService as I } from "@progress/kendo-vue-intl";
10
10
  import { FieldWrapper as r } from "@progress/kendo-vue-form";
11
- import { recurrenceEditorRepeat as k, messages as v, recurrenceEditorWeeklyRepeatOn as x, recurrenceEditorMonthlyRepeatOn as S, recurrenceEditorMonthlyDay as j, recurrenceEditorYearlyRepeatOn as q, recurrenceEditorEndLabel as H, recurrenceEditorEndNever as $, recurrenceEditorEndAfter as L, recurrenceEditorEndOn as U, recurrenceEditorYearlyOf as F, recurrenceEditorEndOccurrence as _ } from "../messages/main.mjs";
11
+ import { messages as k, recurrenceEditorRepeat as v, recurrenceEditorWeeklyRepeatOn as x, recurrenceEditorMonthlyRepeatOn as S, recurrenceEditorMonthlyDay as j, recurrenceEditorYearlyRepeatOn as q, recurrenceEditorEndLabel as H, recurrenceEditorEndNever as $, recurrenceEditorEndAfter as L, recurrenceEditorEndOn as U, recurrenceEditorYearlyOf as F, recurrenceEditorEndOccurrence as _ } from "../messages/main.mjs";
12
12
  import { serializeRule as K } from "@progress/kendo-recurrence";
13
13
  import { ZonedDate as g, toLocalDate as P } from "@progress/kendo-date-math";
14
14
  import { RecurrenceFrequencyEditor as N } from "./RecurrenceFrequencyEditor.mjs";
15
15
  import { RecurrenceRepeatOnWeekEditor as V } from "./RecurrenceRepeatOnWeekEditor.mjs";
16
- import { getRule as T, getFrequencies as Y, getFrequency as A, getExtendedWeekDays as B, getWeekDay as G, getMonths as Z, getMonth as J, getOffsets as Q, getOffset as X, getEndRule as ee, getMonthDay as te, getUntil as ae, getWeekDays as ne, getRepeatOnRule as le, capitalize as p, weekDayRuleFromString as b } from "./common.mjs";
16
+ import { weekDayRuleFromString as p, capitalize as b, getRepeatOnRule as T, getWeekDays as Y, getUntil as A, getMonthDay as B, getEndRule as G, getOffset as Z, getOffsets as J, getMonth as Q, getMonths as X, getWeekDay as ee, getExtendedWeekDays as te, getFrequency as ae, getFrequencies as ne, getRule as le } from "./common.mjs";
17
17
  import { Label as l } from "@progress/kendo-vue-labels";
18
18
  import { NumericTextBox as d, RadioGroup as m } from "@progress/kendo-vue-inputs";
19
19
  import { DropDownList as o } from "@progress/kendo-vue-dropdowns";
@@ -48,46 +48,46 @@ const pe = /* @__PURE__ */ W({
48
48
  },
49
49
  computed: {
50
50
  rrule() {
51
- return T(this.$props.value);
51
+ return le(this.$props.value);
52
52
  },
53
53
  frequencies() {
54
- return Y(this.localizeMessage);
54
+ return ne(this.localizeMessage);
55
55
  },
56
56
  frequency() {
57
- return A(this.rrule);
57
+ return ae(this.rrule);
58
58
  },
59
59
  extendedWeekDays() {
60
- return B(this.intl, this.localizeMessage);
60
+ return te(this.intl, this.localizeMessage);
61
61
  },
62
62
  weekDay() {
63
- return G(this.extendedWeekDays, this.rrule, this.$props.start);
63
+ return ee(this.extendedWeekDays, this.rrule, this.$props.start);
64
64
  },
65
65
  months() {
66
- return Z(this.intl);
66
+ return X(this.intl);
67
67
  },
68
68
  month() {
69
- return J(this.months, this.rrule);
69
+ return Q(this.months, this.rrule);
70
70
  },
71
71
  offsets() {
72
- return Q(this.localizeMessage);
72
+ return J(this.localizeMessage);
73
73
  },
74
74
  offset() {
75
- return X(this.offsets, this.rrule);
75
+ return Z(this.offsets, this.rrule);
76
76
  },
77
77
  endRule() {
78
- return ee(this.rrule);
78
+ return G(this.rrule);
79
79
  },
80
80
  monthDay() {
81
- return te(this.rrule, this.$props.start);
81
+ return B(this.rrule, this.$props.start);
82
82
  },
83
83
  until() {
84
- return ae(this.rrule);
84
+ return A(this.rrule);
85
85
  },
86
86
  weekDays() {
87
- return ne(this.intl);
87
+ return Y(this.intl);
88
88
  },
89
89
  repeatOnRule() {
90
- return le(this.rrule);
90
+ return T(this.rrule);
91
91
  }
92
92
  },
93
93
  data() {
@@ -232,7 +232,7 @@ const pe = /* @__PURE__ */ W({
232
232
  return a("div", null, [a(r, null, {
233
233
  default: () => [a(l, {
234
234
  class: "k-form-label"
235
- }, s(t = this.localization.toLanguageString(k, v[k])) ? t : {
235
+ }, s(t = this.localization.toLanguageString(v, k[v])) ? t : {
236
236
  default: () => [t]
237
237
  }), a("div", {
238
238
  class: "k-form-field-wrap"
@@ -245,7 +245,7 @@ const pe = /* @__PURE__ */ W({
245
245
  default: () => [a(l, {
246
246
  editorId: "interval-editor",
247
247
  class: "k-form-label"
248
- }, s(e = this.localizeMessage(p(this.frequency) + "RepeatEvery")) ? e : {
248
+ }, s(e = this.localizeMessage(b(this.frequency) + "RepeatEvery")) ? e : {
249
249
  default: () => [e]
250
250
  }), a("div", {
251
251
  class: "k-form-field-wrap"
@@ -258,7 +258,7 @@ const pe = /* @__PURE__ */ W({
258
258
  id: "interval-editor"
259
259
  }, null), a(l, {
260
260
  editorId: "interval-editor"
261
- }, s(n = this.localizeMessage(p(this.frequency) + "Interval")) ? n : {
261
+ }, s(n = this.localizeMessage(b(this.frequency) + "Interval")) ? n : {
262
262
  default: () => [n]
263
263
  })])]
264
264
  }), this.frequency === "weekly" && a(r, null, {
@@ -353,7 +353,7 @@ const pe = /* @__PURE__ */ W({
353
353
  methods: {
354
354
  localizeMessage(t, e) {
355
355
  const n = e ? t : "scheduler.recurrenceEditor" + t;
356
- return this.localization.toLanguageString(n, v[n]);
356
+ return this.localization.toLanguageString(n, k[n]);
357
357
  },
358
358
  onChangeHandler(t) {
359
359
  t.freq === "never" ? this.$emit("change", {
@@ -400,7 +400,7 @@ const pe = /* @__PURE__ */ W({
400
400
  },
401
401
  handleWeekDayChange(t) {
402
402
  const e = Object.assign({}, this.rrule), n = t.target.value;
403
- typeof n.value == "string" ? (e.byWeekDay = b(n.value), e.bySetPosition = [this.offset.value]) : e.byWeekDay = [{
403
+ typeof n.value == "string" ? (e.byWeekDay = p(n.value), e.bySetPosition = [this.offset.value]) : e.byWeekDay = [{
404
404
  day: n.value,
405
405
  offset: this.offset.value
406
406
  }], this.onChangeHandler(e);
@@ -433,7 +433,7 @@ const pe = /* @__PURE__ */ W({
433
433
  },
434
434
  handleRepeatOnRuleChange(t) {
435
435
  const e = Object.assign({}, this.rrule);
436
- t.value === "monthday" ? (e.byWeekDay = void 0, e.bySetPosition = void 0, e.byMonthDay = [this.monthDay]) : t.value === "weekday" && (e.byMonthDay = void 0, typeof this.weekDay.value == "string" ? (e.bySetPosition = [this.offset.value], e.byWeekDay = b(this.weekDay.value)) : e.byWeekDay = [{
436
+ t.value === "monthday" ? (e.byWeekDay = void 0, e.bySetPosition = void 0, e.byMonthDay = [this.monthDay]) : t.value === "weekday" && (e.byMonthDay = void 0, typeof this.weekDay.value == "string" ? (e.bySetPosition = [this.offset.value], e.byWeekDay = p(this.weekDay.value)) : e.byWeekDay = [{
437
437
  day: this.weekDay.value,
438
438
  offset: this.offset.value
439
439
  }]), this.onChangeHandler(e);