@progress/kendo-vue-scheduler 10.2.0-develop.17 → 10.2.0-develop.18

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.
@@ -377,7 +377,8 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
377
377
  startEditor: {
378
378
  type: (ObjectConstructor | StringConstructor | FunctionConstructor)[];
379
379
  default: () => import('vue').DefineComponent<import('vue').ExtractPropTypes<{
380
- value: import('vue').PropType<Date>; /**
380
+ value: import('vue').PropType<Date>;
381
+ /**
381
382
  * The current recurrence rule string (RRULE), or `null` when no recurrence is set.
382
383
  */
383
384
  isAllDay: BooleanConstructor;
@@ -411,7 +412,8 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
411
412
  readDateAsLocal: typeof readDateAsLocal;
412
413
  readDateWithTimezone: (value: Date, timezone?: string) => Date;
413
414
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "change"[], "change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
414
- value: import('vue').PropType<Date>; /**
415
+ value: import('vue').PropType<Date>;
416
+ /**
415
417
  * The current recurrence rule string (RRULE), or `null` when no recurrence is set.
416
418
  */
417
419
  isAllDay: BooleanConstructor;
@@ -467,7 +469,8 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
467
469
  endEditor: {
468
470
  type: (ObjectConstructor | StringConstructor | FunctionConstructor)[];
469
471
  default: () => import('vue').DefineComponent<import('vue').ExtractPropTypes<{
470
- value: import('vue').PropType<Date>; /**
472
+ value: import('vue').PropType<Date>;
473
+ /**
471
474
  * The current recurrence rule string (RRULE), or `null` when no recurrence is set.
472
475
  */
473
476
  isAllDay: BooleanConstructor;
@@ -501,7 +504,8 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
501
504
  readDateAsLocal: typeof readDateAsLocal;
502
505
  readDateWithTimezone: (value: Date, timezone?: string) => Date;
503
506
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "change"[], "change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
504
- value: import('vue').PropType<Date>; /**
507
+ value: import('vue').PropType<Date>;
508
+ /**
505
509
  * The current recurrence rule string (RRULE), or `null` when no recurrence is set.
506
510
  */
507
511
  isAllDay: BooleanConstructor;
@@ -573,6 +577,9 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
573
577
  default: boolean;
574
578
  };
575
579
  defaultChecked: {
580
+ /**
581
+ * Overrides the component used for visualizing the `allDay` field label.
582
+ */
576
583
  type: BooleanConstructor;
577
584
  default: boolean;
578
585
  };
@@ -656,7 +663,10 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
656
663
  handleWrapperBlur(event: any): void;
657
664
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
658
665
  change: (event: SwitchChangeEvent) => true;
659
- changemodel: (value: boolean) => true;
666
+ changemodel: (value: boolean) => true; /**
667
+ * Overrides the component used for visualizing the `end` field editor.
668
+ * The `ZonedSplitDateTime` component is used by default, rendering a split DatePicker and TimePicker.
669
+ */
660
670
  'update:modelValue': (value: boolean) => true;
661
671
  focus: (event: import('@progress/kendo-vue-inputs').SwitchFocusEvent) => true;
662
672
  blur: (event: import('@progress/kendo-vue-inputs').SwitchBlurEvent) => true;
@@ -673,6 +683,9 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
673
683
  default: boolean;
674
684
  };
675
685
  defaultChecked: {
686
+ /**
687
+ * Overrides the component used for visualizing the `allDay` field label.
688
+ */
676
689
  type: BooleanConstructor;
677
690
  default: boolean;
678
691
  };
@@ -804,6 +817,11 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
804
817
  ariaLabelledBy: import('vue').PropType<string>;
805
818
  autoSize: import('vue').PropType<boolean>;
806
819
  modelValue: {
820
+ /**
821
+ * Represents the props passed to the [`recurrenceButtonTextTemplate`](slug:api_scheduler_schedulerformeditorprops#toc-recurrenceButtonTextTemplate) component.
822
+ *
823
+ * @deprecated The `recurrenceButtonTextTemplate` is ignored. Use `recurrenceSummaryTemplate` and `RecurrenceSummaryTemplateProps` instead.
824
+ */
807
825
  type: import('vue').PropType<string | number | string[]>;
808
826
  default: any;
809
827
  };
@@ -812,7 +830,10 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
812
830
  disabled: import('vue').PropType<boolean>;
813
831
  readOnly: import('vue').PropType<boolean>;
814
832
  rows: import('vue').PropType<number>;
815
- id: import('vue').PropType<string>;
833
+ id: import('vue').PropType<string>; /**
834
+ * The default summary text computed by the Scheduler for the current recurrence rule,
835
+ * or `null` when no recurrence is set.
836
+ */
816
837
  name: import('vue').PropType<string>;
817
838
  validationMessage: import('vue').PropType<string>;
818
839
  size: {
@@ -831,13 +852,8 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
831
852
  placeholder: import('vue').PropType<string>;
832
853
  tabIndex: import('vue').PropType<number>;
833
854
  valid: {
834
- /**
835
- * Specifies the `id` attribute of the root element.
836
- */
837
855
  type: import('vue').PropType<boolean>;
838
- default: any; /**
839
- * Specifies the `tabIndex` attribute of the root element.
840
- */
856
+ default: any;
841
857
  };
842
858
  value: import('vue').PropType<string | number | string[]>;
843
859
  validityStyles: {
@@ -873,13 +889,7 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
873
889
  [x: string]: any;
874
890
  [x: number]: any;
875
891
  'k-input': boolean;
876
- 'k-textarea': boolean; /**
877
- * This template is ignored. The recurrence button always uses the localized
878
- * "Make recurring" or "Edit recurrence" label. Use `recurrenceSummaryTemplate`
879
- * to customize the separate recurrence summary instead.
880
- *
881
- * @deprecated Use `recurrenceSummaryTemplate` instead.
882
- */
892
+ 'k-textarea': boolean;
883
893
  'k-disabled': any;
884
894
  'k-invalid': boolean;
885
895
  'k-required': any;
@@ -934,6 +944,11 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
934
944
  ariaLabelledBy: import('vue').PropType<string>;
935
945
  autoSize: import('vue').PropType<boolean>;
936
946
  modelValue: {
947
+ /**
948
+ * Represents the props passed to the [`recurrenceButtonTextTemplate`](slug:api_scheduler_schedulerformeditorprops#toc-recurrenceButtonTextTemplate) component.
949
+ *
950
+ * @deprecated The `recurrenceButtonTextTemplate` is ignored. Use `recurrenceSummaryTemplate` and `RecurrenceSummaryTemplateProps` instead.
951
+ */
937
952
  type: import('vue').PropType<string | number | string[]>;
938
953
  default: any;
939
954
  };
@@ -942,7 +957,10 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
942
957
  disabled: import('vue').PropType<boolean>;
943
958
  readOnly: import('vue').PropType<boolean>;
944
959
  rows: import('vue').PropType<number>;
945
- id: import('vue').PropType<string>;
960
+ id: import('vue').PropType<string>; /**
961
+ * The default summary text computed by the Scheduler for the current recurrence rule,
962
+ * or `null` when no recurrence is set.
963
+ */
946
964
  name: import('vue').PropType<string>;
947
965
  validationMessage: import('vue').PropType<string>;
948
966
  size: {
@@ -961,13 +979,8 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
961
979
  placeholder: import('vue').PropType<string>;
962
980
  tabIndex: import('vue').PropType<number>;
963
981
  valid: {
964
- /**
965
- * Specifies the `id` attribute of the root element.
966
- */
967
982
  type: import('vue').PropType<boolean>;
968
- default: any; /**
969
- * Specifies the `tabIndex` attribute of the root element.
970
- */
983
+ default: any;
971
984
  };
972
985
  value: import('vue').PropType<string | number | string[]>;
973
986
  validityStyles: {
@@ -1063,6 +1076,7 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1063
1076
  }>, {
1064
1077
  handleStartChange: () => void;
1065
1078
  updatePreviousRange: () => void;
1079
+ recurrenceSummaryId: string;
1066
1080
  }, {
1067
1081
  showTimezones: boolean;
1068
1082
  showTimezoneResetDialog: boolean;
@@ -1335,7 +1349,8 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1335
1349
  startEditor: {
1336
1350
  type: (ObjectConstructor | StringConstructor | FunctionConstructor)[];
1337
1351
  default: () => import('vue').DefineComponent<import('vue').ExtractPropTypes<{
1338
- value: import('vue').PropType<Date>; /**
1352
+ value: import('vue').PropType<Date>;
1353
+ /**
1339
1354
  * The current recurrence rule string (RRULE), or `null` when no recurrence is set.
1340
1355
  */
1341
1356
  isAllDay: BooleanConstructor;
@@ -1369,7 +1384,8 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1369
1384
  readDateAsLocal: typeof readDateAsLocal;
1370
1385
  readDateWithTimezone: (value: Date, timezone?: string) => Date;
1371
1386
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "change"[], "change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
1372
- value: import('vue').PropType<Date>; /**
1387
+ value: import('vue').PropType<Date>;
1388
+ /**
1373
1389
  * The current recurrence rule string (RRULE), or `null` when no recurrence is set.
1374
1390
  */
1375
1391
  isAllDay: BooleanConstructor;
@@ -1425,7 +1441,8 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1425
1441
  endEditor: {
1426
1442
  type: (ObjectConstructor | StringConstructor | FunctionConstructor)[];
1427
1443
  default: () => import('vue').DefineComponent<import('vue').ExtractPropTypes<{
1428
- value: import('vue').PropType<Date>; /**
1444
+ value: import('vue').PropType<Date>;
1445
+ /**
1429
1446
  * The current recurrence rule string (RRULE), or `null` when no recurrence is set.
1430
1447
  */
1431
1448
  isAllDay: BooleanConstructor;
@@ -1459,7 +1476,8 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1459
1476
  readDateAsLocal: typeof readDateAsLocal;
1460
1477
  readDateWithTimezone: (value: Date, timezone?: string) => Date;
1461
1478
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "change"[], "change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
1462
- value: import('vue').PropType<Date>; /**
1479
+ value: import('vue').PropType<Date>;
1480
+ /**
1463
1481
  * The current recurrence rule string (RRULE), or `null` when no recurrence is set.
1464
1482
  */
1465
1483
  isAllDay: BooleanConstructor;
@@ -1531,6 +1549,9 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1531
1549
  default: boolean;
1532
1550
  };
1533
1551
  defaultChecked: {
1552
+ /**
1553
+ * Overrides the component used for visualizing the `allDay` field label.
1554
+ */
1534
1555
  type: BooleanConstructor;
1535
1556
  default: boolean;
1536
1557
  };
@@ -1614,7 +1635,10 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1614
1635
  handleWrapperBlur(event: any): void;
1615
1636
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1616
1637
  change: (event: SwitchChangeEvent) => true;
1617
- changemodel: (value: boolean) => true;
1638
+ changemodel: (value: boolean) => true; /**
1639
+ * Overrides the component used for visualizing the `end` field editor.
1640
+ * The `ZonedSplitDateTime` component is used by default, rendering a split DatePicker and TimePicker.
1641
+ */
1618
1642
  'update:modelValue': (value: boolean) => true;
1619
1643
  focus: (event: import('@progress/kendo-vue-inputs').SwitchFocusEvent) => true;
1620
1644
  blur: (event: import('@progress/kendo-vue-inputs').SwitchBlurEvent) => true;
@@ -1631,6 +1655,9 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1631
1655
  default: boolean;
1632
1656
  };
1633
1657
  defaultChecked: {
1658
+ /**
1659
+ * Overrides the component used for visualizing the `allDay` field label.
1660
+ */
1634
1661
  type: BooleanConstructor;
1635
1662
  default: boolean;
1636
1663
  };
@@ -1762,6 +1789,11 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1762
1789
  ariaLabelledBy: import('vue').PropType<string>;
1763
1790
  autoSize: import('vue').PropType<boolean>;
1764
1791
  modelValue: {
1792
+ /**
1793
+ * Represents the props passed to the [`recurrenceButtonTextTemplate`](slug:api_scheduler_schedulerformeditorprops#toc-recurrenceButtonTextTemplate) component.
1794
+ *
1795
+ * @deprecated The `recurrenceButtonTextTemplate` is ignored. Use `recurrenceSummaryTemplate` and `RecurrenceSummaryTemplateProps` instead.
1796
+ */
1765
1797
  type: import('vue').PropType<string | number | string[]>;
1766
1798
  default: any;
1767
1799
  };
@@ -1770,7 +1802,10 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1770
1802
  disabled: import('vue').PropType<boolean>;
1771
1803
  readOnly: import('vue').PropType<boolean>;
1772
1804
  rows: import('vue').PropType<number>;
1773
- id: import('vue').PropType<string>;
1805
+ id: import('vue').PropType<string>; /**
1806
+ * The default summary text computed by the Scheduler for the current recurrence rule,
1807
+ * or `null` when no recurrence is set.
1808
+ */
1774
1809
  name: import('vue').PropType<string>;
1775
1810
  validationMessage: import('vue').PropType<string>;
1776
1811
  size: {
@@ -1789,13 +1824,8 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1789
1824
  placeholder: import('vue').PropType<string>;
1790
1825
  tabIndex: import('vue').PropType<number>;
1791
1826
  valid: {
1792
- /**
1793
- * Specifies the `id` attribute of the root element.
1794
- */
1795
1827
  type: import('vue').PropType<boolean>;
1796
- default: any; /**
1797
- * Specifies the `tabIndex` attribute of the root element.
1798
- */
1828
+ default: any;
1799
1829
  };
1800
1830
  value: import('vue').PropType<string | number | string[]>;
1801
1831
  validityStyles: {
@@ -1831,13 +1861,7 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1831
1861
  [x: string]: any;
1832
1862
  [x: number]: any;
1833
1863
  'k-input': boolean;
1834
- 'k-textarea': boolean; /**
1835
- * This template is ignored. The recurrence button always uses the localized
1836
- * "Make recurring" or "Edit recurrence" label. Use `recurrenceSummaryTemplate`
1837
- * to customize the separate recurrence summary instead.
1838
- *
1839
- * @deprecated Use `recurrenceSummaryTemplate` instead.
1840
- */
1864
+ 'k-textarea': boolean;
1841
1865
  'k-disabled': any;
1842
1866
  'k-invalid': boolean;
1843
1867
  'k-required': any;
@@ -1892,6 +1916,11 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1892
1916
  ariaLabelledBy: import('vue').PropType<string>;
1893
1917
  autoSize: import('vue').PropType<boolean>;
1894
1918
  modelValue: {
1919
+ /**
1920
+ * Represents the props passed to the [`recurrenceButtonTextTemplate`](slug:api_scheduler_schedulerformeditorprops#toc-recurrenceButtonTextTemplate) component.
1921
+ *
1922
+ * @deprecated The `recurrenceButtonTextTemplate` is ignored. Use `recurrenceSummaryTemplate` and `RecurrenceSummaryTemplateProps` instead.
1923
+ */
1895
1924
  type: import('vue').PropType<string | number | string[]>;
1896
1925
  default: any;
1897
1926
  };
@@ -1900,7 +1929,10 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1900
1929
  disabled: import('vue').PropType<boolean>;
1901
1930
  readOnly: import('vue').PropType<boolean>;
1902
1931
  rows: import('vue').PropType<number>;
1903
- id: import('vue').PropType<string>;
1932
+ id: import('vue').PropType<string>; /**
1933
+ * The default summary text computed by the Scheduler for the current recurrence rule,
1934
+ * or `null` when no recurrence is set.
1935
+ */
1904
1936
  name: import('vue').PropType<string>;
1905
1937
  validationMessage: import('vue').PropType<string>;
1906
1938
  size: {
@@ -1919,13 +1951,8 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1919
1951
  placeholder: import('vue').PropType<string>;
1920
1952
  tabIndex: import('vue').PropType<number>;
1921
1953
  valid: {
1922
- /**
1923
- * Specifies the `id` attribute of the root element.
1924
- */
1925
1954
  type: import('vue').PropType<boolean>;
1926
- default: any; /**
1927
- * Specifies the `tabIndex` attribute of the root element.
1928
- */
1955
+ default: any;
1929
1956
  };
1930
1957
  value: import('vue').PropType<string | number | string[]>;
1931
1958
  validityStyles: {
@@ -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"),F=require("@progress/kendo-date-math"),A=require("@progress/kendo-recurrence"),T=require("@progress/kendo-vue-labels"),k=require("@progress/kendo-vue-intl"),s=require("@progress/kendo-vue-form"),D=require("@progress/kendo-vue-inputs"),f=require("@progress/kendo-vue-common"),h=require("@progress/kendo-svg-icons"),p=require("@progress/kendo-vue-buttons"),E=require("@progress/kendo-vue-dialogs"),e=require("../messages/main.js"),I=require("../recurrence/RecurrenceEditor.js"),q=require("./ResourceEditor.js"),u=require("./ZonedSplitDateTime.js"),V=require("./TimezoneDropDownList.js"),j=require("./SchedulerRecurrenceDialog.js"),B=require("./RemoveRecurrenceConfirmDialog.js"),b=require("../hooks/useRecurrenceSummary.js");function v(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!t.isVNode(r)}const x=t.defineComponent({name:"KendoSchedulerFormEditor",props:{as:[String,Function,Object],id:String,tabIndex:Number,titleEditor:{type:[String,Function,Object],default:function(){return D.TextBox}},startEditor:{type:[String,Function,Object],default:function(){return u.ZonedSplitDateTime}},startTimezoneEditor:{type:[String,Function,Object],default:function(){return V.TimezoneDropDownList}},endEditor:{type:[String,Function,Object],default:function(){return u.ZonedSplitDateTime}},endTimezoneEditor:{type:[String,Function,Object],default:function(){return V.TimezoneDropDownList}},allDayLabel:{type:[String,Function,Object],default:function(){return"span"}},allDayEditor:{type:[String,Function,Object],default:function(){return D.Switch}},recurrenceEditor:{type:[String,Function,Object],default:function(){return I.RecurrenceEditor}},descriptionEditor:{type:[String,Function,Object],default:function(){return D.TextArea}},resourceEditor:{type:[String,Function,Object],default:function(){return q.ResourceEditor}},recurrenceButtonTextTemplate:[Object,Function],recurrenceSummaryTemplate:[Object,Function],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:{}},kendoIntlService:{default:null},kendoLocalizationService:{default:null}},data(){const r=this.kendoForm,i=this.ks;return{showTimezones:!!r.valueGetter(i.fields.startTimezone),showTimezoneResetDialog:!1,showRecurrenceDialog:!1,showRemoveRecurrenceDialog:!1}},setup(){const r=t.inject("ks"),i=t.inject("kendoForm");let a=null,c;t.provide("schedulerEndAdjustment",o=>(c=o,()=>{c===o&&(c=void 0)}));const m=()=>{const o=i.valueGetter(r.fields.start),d=i.valueGetter(r.fields.end);o instanceof Date&&d instanceof Date&&Number.isFinite(o.getTime())&&Number.isFinite(d.getTime())&&d.getTime()>=o.getTime()&&(a={start:new Date(o),end:new Date(d)})},n=()=>{const o=i.valueGetter(r.fields.start);if(!a||!(o instanceof Date)||!Number.isFinite(o.getTime()))return;let d=new Date(o.getTime()+a.end.getTime()-a.start.getTime());if(i.valueGetter(r.fields.isAllDay)){const R=u.readDateAsLocal(a.start,r.timezone),S=u.readDateAsLocal(o,r.timezone),g=new Date(u.readDateAsLocal(a.end,r.timezone));g.setDate(g.getDate()+Math.round((u.dayValue(S)-u.dayValue(R))/F.MS_PER_DAY)),d=u.readDateWithTimezone(g,r.timezone)}i.onChange(r.fields.end,{value:c?c(d):d}),m()};return m(),t.watch([()=>i.valueGetter(r.fields.start),()=>i.valueGetter(r.fields.end)],m,{flush:"post"}),{handleStartChange:n,updatePreviousRange:m}},computed:{isAllDay(){return!!this.kendoForm.valueGetter(this.ks.fields.isAllDay)},start(){return this.kendoForm.valueGetter(this.ks.fields.start)||new Date},startTimezone(){return this.kendoForm.valueGetter(this.ks.fields.startTimezone)||""},recurrenceRule(){return this.kendoForm.valueGetter(this.ks.fields.recurrenceRule)},recurrenceId(){return this.kendoForm.valueGetter(this.ks.fields.recurrenceId)},isEditingOccurrence(){return this.recurrenceId!==void 0&&this.recurrenceId!==null},showRecurrenceButton(){return!this.isEditingOccurrence},recurrenceButtonText(){const r=k.provideLocalizationService(this),i=this.recurrenceRule?e.editorRecurrenceEdit:e.editorRecurrenceMakeRecurring;return r.toLanguageString(i,e.messages[i])},recurrenceSummaryText(){if(!this.recurrenceRule)return"";const r=k.provideIntlService(this),i=k.provideLocalizationService(this);return b.getRecurrenceSummary(this.recurrenceRule,this.start,r,(a,c)=>i.toLanguageString(a,c))},parsedRecurrenceRule(){return this.recurrenceRule?A.parseRule({recurrenceRule:this.recurrenceRule}):null}},render(){let r,i,a;const c=f.getDefaultSlots(this),m=F.timezoneNames(),n=k.provideLocalizationService(this),o=this.$props.startEditor,d=this.$props.endEditor,R=this.$props.startTimezoneEditor,S=this.$props.endTimezoneEditor,g=this.$props.allDayEditor,L=this.$props.allDayLabel,y=this.$props.descriptionEditor,N=this.$props.resourceEditor,C=this.$props.titleEditor,w=this.startTimezone;this.requiredValidationMessage=n.toLanguageString(e.editorValidationRequired,e.messages[e.editorValidationRequired]);const z=n.toLanguageString(e.editorEventAllDay,e.messages[e.editorEventAllDay]);return t.createVNode(t.Fragment,null,[t.createVNode(s.FormElement,{horizontal:!0,class:"k-scheduler-edit-form"},{default:()=>[t.createVNode(s.FieldWrapper,null,{default:()=>[t.createVNode(T.Label,{class:"k-form-label"},{default:()=>[t.createVNode(f.SvgIcon,{icon:h.rightDoubleQuotesIcon,size:"xlarge"},null)]}),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(s.Field,{id:"k-scheduler-editor-title",name:this.ks.fields.title,field:this.ks.fields.title,component:C,placeholder:n.toLanguageString(e.editorEventTitle,e.messages[e.editorEventTitle]),"aria-label":n.toLanguageString(e.editorEventTitle,e.messages[e.editorEventTitle])},null)])]}),t.createVNode(s.FieldWrapper,null,{default:()=>[t.createVNode(T.Label,{class:"k-form-label"},{default:()=>[t.createVNode(f.SvgIcon,{icon:h.clockIcon,size:"xlarge"},null)]}),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode("div",{class:"k-scheduler-datetime-section"},[t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(s.Field,{name:this.ks.fields.isAllDay,component:g,onLabel:"",offLabel:""},null),t.createVNode(L,null,v(z)?z:{default:()=>[z]})]),t.createVNode("div",{class:"k-scheduler-datetime-grid"},[this.isAllDay?t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(s.Field,{name:this.ks.fields.start,component:o,onChange:this.handleStartChange,isAllDay:this.isAllDay,fieldError:this.kendoForm.errors[this.ks.fields.start],ariaLabel:n.toLanguageString(e.editorEventStart,e.messages[e.editorEventStart]),timezone:this.ks.timezone},null),t.createVNode("span",{class:"k-scheduler-datetime-label"},[n.toLanguageString(e.editorDateConnectorTo,e.messages[e.editorDateConnectorTo])]),t.createVNode(s.Field,{name:this.ks.fields.end,component:d,onChange:this.updatePreviousRange,isAllDay:this.isAllDay,fieldError:this.kendoForm.errors[this.ks.fields.end],ariaLabel:n.toLanguageString(e.editorEventEnd,e.messages[e.editorEventEnd]),timezone:this.ks.timezone},null)]):t.createVNode(t.Fragment,null,[t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(s.Field,{name:this.ks.fields.start,component:o,onChange:this.handleStartChange,isAllDay:this.isAllDay,connector:n.toLanguageString(e.editorDateConnectorFrom,e.messages[e.editorDateConnectorFrom]),fieldError:this.kendoForm.errors[this.ks.fields.start],ariaLabel:n.toLanguageString(e.editorEventStart,e.messages[e.editorEventStart]),timeAriaLabel:n.toLanguageString(e.editorStartTimeAriaLabel,e.messages[e.editorStartTimeAriaLabel]),timezone:this.ks.timezone},null)]),!this.showTimezones&&t.createVNode(p.Button,{class:"k-col-span-2",fillMode:"flat",themeColor:"primary",title:n.toLanguageString(e.editorSetTimezoneTitle,e.messages[e.editorSetTimezoneTitle]),onClick:this.handleTimezoneToggle,svgIcon:h.globeIcon},v(r=n.toLanguageString(e.editorTimezoneButton,e.messages[e.editorTimezoneButton]))?r:{default:()=>[r]}),this.showTimezones&&t.createVNode(t.Fragment,null,[t.createVNode(s.Field,{name:this.ks.fields.startTimezone,component:R,dataItems:m,value:w,ariaLabel:n.toLanguageString(e.editorEventStartTimeZone,e.messages[e.editorEventStartTimeZone])},null),t.createVNode(p.Button,{title:n.toLanguageString(e.editorResetTimezoneTitle,e.messages[e.editorResetTimezoneTitle]),"aria-label":n.toLanguageString(e.editorResetTimezoneAriaLabel,e.messages[e.editorResetTimezoneAriaLabel]),onClick:this.handleTimezoneToggle,svgIcon:h.globeIcon,fillMode:"flat",themeColor:"primary"},null)]),t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(s.Field,{name:this.ks.fields.end,component:d,onChange:this.updatePreviousRange,isAllDay:this.isAllDay,connector:n.toLanguageString(e.editorDateConnectorTo,e.messages[e.editorDateConnectorTo]),fieldError:this.kendoForm.errors[this.ks.fields.end],ariaLabel:n.toLanguageString(e.editorEventEnd,e.messages[e.editorEventEnd]),timeAriaLabel:n.toLanguageString(e.editorEndTimeAriaLabel,e.messages[e.editorEndTimeAriaLabel]),timezone:this.ks.timezone},null)]),this.showTimezones&&t.createVNode(s.Field,{name:this.ks.fields.endTimezone,component:S,dataItems:m,value:this.kendoForm.valueGetter(this.ks.fields.endTimezone)||"",ariaLabel:n.toLanguageString(e.editorEventEndTimeZone,e.messages[e.editorEventEndTimeZone])},null)])]),this.showRecurrenceButton&&t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(p.Button,{class:"k-scheduler-recurrence-button",type:"button",fillMode:"flat",themeColor:"primary",svgIcon:h.arrowRotateCwIcon,onClick:this.handleMakeRecurringClick},{default:()=>[this.recurrenceButtonText]}),this.recurrenceRule&&(this.recurrenceSummaryTemplate||this.recurrenceSummaryText)&&b.renderRecurrenceSummary(this.recurrenceSummaryText,this.renderRecurrenceSummaryTemplate())])])])]}),t.createVNode(s.FieldWrapper,null,{default:()=>[t.createVNode(T.Label,{class:"k-form-label"},{default:()=>[t.createVNode(f.SvgIcon,{icon:h.commentIcon,size:"xlarge"},null)]}),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(s.Field,{component:y,name:this.ks.fields.description,id:"k-event-description",resizable:"vertical",placeholder:n.toLanguageString(e.editorEventDescription,e.messages[e.editorEventDescription]),"aria-label":n.toLanguageString(e.editorEventDescription,e.messages[e.editorEventDescription])},null)])]}),(this.ks.props.resources||[]).map(l=>t.createVNode(s.FieldWrapper,{key:l.field},{default:()=>[l.svgIcon&&t.createVNode(T.Label,{class:"k-form-label"},{default:()=>[t.createVNode(f.SvgIcon,{icon:l.svgIcon,size:"xlarge"},null)]}),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(s.Field,{name:l.field,component:N,resource:l,multiple:l.multiple,dataItems:l.data,textField:l.textField,valueField:l.valueField,colorField:l.colorField,ariaLabel:l.name||l.field},null)])]})),c]}),this.showRecurrenceDialog&&t.createVNode(j.SchedulerRecurrenceDialog,{value:this.recurrenceRule,start:this.start,timezone:this.ks.timezone||"",onSave:this.handleRecurrenceSave,onCancel:this.handleRecurrenceCancel,onRemoveRecurrence:this.handleRemoveRecurrenceClick,recurrenceSummaryTemplate:this.recurrenceSummaryTemplate,recurrenceEditor:this.recurrenceEditor},null),this.showRemoveRecurrenceDialog&&t.createVNode(B.RemoveRecurrenceConfirmDialog,{onConfirm:this.handleRemoveRecurrenceConfirm,onCancel:this.handleRemoveRecurrenceCancel},null),this.showTimezoneResetDialog&&t.createVNode(E.Dialog,{title:n.toLanguageString(e.resetTimezoneDialogTitle,e.messages[e.resetTimezoneDialogTitle]),onClose:this.handleTimezoneResetClose},{default:()=>[n.toLanguageString(e.resetTimezoneConfirmation,e.messages[e.resetTimezoneConfirmation]),t.createVNode(E.DialogActionsBar,null,{default:()=>[t.createVNode(p.Button,{onClick:this.handleTimezoneResetClose},v(i=n.toLanguageString(e.resetTimezoneNo,e.messages[e.resetTimezoneNo]))?i:{default:()=>[i]}),t.createVNode(p.Button,{themeColor:"primary",onClick:this.handleTimezoneResetConfirm},v(a=n.toLanguageString(e.resetTimezoneYes,e.messages[e.resetTimezoneYes]))?a:{default:()=>[a]})]})]})])},methods:{renderRecurrenceSummaryTemplate(){const r=this.recurrenceSummaryTemplate;return!r||!this.recurrenceRule?null:t.createVNode(r,{recurrenceRule:this.recurrenceRule,text:this.recurrenceSummaryText,parsedRule:this.parsedRecurrenceRule},null)},handleTimezoneToggle(r){r.preventDefault(),this.showTimezones?this.showTimezoneResetDialog=!0:(this.updateFormField(this.ks.fields.startTimezone,null),this.updateFormField(this.ks.fields.endTimezone,null),this.showTimezones=!0)},handleTimezoneResetConfirm(){this.updateFormField(this.ks.fields.startTimezone,null),this.updateFormField(this.ks.fields.endTimezone,null),this.showTimezones=!1,this.showTimezoneResetDialog=!1},handleTimezoneResetClose(){this.showTimezoneResetDialog=!1},handleMakeRecurringClick(){this.showRecurrenceDialog=!0},handleRecurrenceSave(r){this.updateFormField(this.ks.fields.recurrenceRule,r),this.showRecurrenceDialog=!1},handleRecurrenceCancel(){this.showRecurrenceDialog=!1},handleRemoveRecurrenceClick(){this.showRemoveRecurrenceDialog=!0},handleRemoveRecurrenceConfirm(){this.updateFormField(this.ks.fields.recurrenceRule,null),this.updateFormField(this.ks.fields.recurrenceExceptions,null),this.showRemoveRecurrenceDialog=!1,this.showRecurrenceDialog=!1},handleRemoveRecurrenceCancel(){this.showRemoveRecurrenceDialog=!1},updateFormField(r,i){this.kendoForm.onChange(r,{value:i}),this.$emit("change",r,{value:i})},requiredValidator(r){return r?void 0:this.requiredValidationMessage},startTimezoneValidator(r,i){return this.showTimezones?this.requiredValidator(i(this.ks.fields.startTimezone)):void 0},endTimezoneValidator(r,i){return this.showTimezones?this.requiredValidator(i(this.ks.fields.endTimezone))||this.requiredValidator(i(this.ks.fields.startTimezone)):void 0}},watch:{startTimezone(r,i){this.showTimezones&&r&&r!==i&&this.updateFormField(this.ks.fields.endTimezone,r)}}});exports.SchedulerFormEditor=x;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),V=require("@progress/kendo-date-math"),A=require("@progress/kendo-recurrence"),k=require("@progress/kendo-vue-labels"),S=require("@progress/kendo-vue-intl"),s=require("@progress/kendo-vue-form"),F=require("@progress/kendo-vue-inputs"),h=require("@progress/kendo-vue-common"),g=require("@progress/kendo-svg-icons"),p=require("@progress/kendo-vue-buttons"),b=require("@progress/kendo-vue-dialogs"),e=require("../messages/main.js"),q=require("../recurrence/RecurrenceEditor.js"),B=require("./ResourceEditor.js"),u=require("./ZonedSplitDateTime.js"),y=require("./TimezoneDropDownList.js"),j=require("./SchedulerRecurrenceDialog.js"),x=require("./RemoveRecurrenceConfirmDialog.js"),L=require("../hooks/useRecurrenceSummary.js");function v(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!t.isVNode(r)}const O=t.defineComponent({name:"KendoSchedulerFormEditor",props:{as:[String,Function,Object],id:String,tabIndex:Number,titleEditor:{type:[String,Function,Object],default:function(){return F.TextBox}},startEditor:{type:[String,Function,Object],default:function(){return u.ZonedSplitDateTime}},startTimezoneEditor:{type:[String,Function,Object],default:function(){return y.TimezoneDropDownList}},endEditor:{type:[String,Function,Object],default:function(){return u.ZonedSplitDateTime}},endTimezoneEditor:{type:[String,Function,Object],default:function(){return y.TimezoneDropDownList}},allDayLabel:{type:[String,Function,Object],default:function(){return"span"}},allDayEditor:{type:[String,Function,Object],default:function(){return F.Switch}},recurrenceEditor:{type:[String,Function,Object],default:function(){return q.RecurrenceEditor}},descriptionEditor:{type:[String,Function,Object],default:function(){return F.TextArea}},resourceEditor:{type:[String,Function,Object],default:function(){return B.ResourceEditor}},recurrenceButtonTextTemplate:[Object,Function],recurrenceSummaryTemplate:[Object,Function],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:{}},kendoIntlService:{default:null},kendoLocalizationService:{default:null}},data(){const r=this.kendoForm,n=this.ks;return{showTimezones:!!r.valueGetter(n.fields.startTimezone),showTimezoneResetDialog:!1,showRecurrenceDialog:!1,showRemoveRecurrenceDialog:!1}},setup(){const r=t.inject("ks"),n=t.inject("kendoForm"),m=h.guid();let l=null,c;t.provide("schedulerEndAdjustment",o=>(c=o,()=>{c===o&&(c=void 0)}));const i=()=>{const o=n.valueGetter(r.fields.start),d=n.valueGetter(r.fields.end);o instanceof Date&&d instanceof Date&&Number.isFinite(o.getTime())&&Number.isFinite(d.getTime())&&d.getTime()>=o.getTime()&&(l={start:new Date(o),end:new Date(d)})},T=()=>{const o=n.valueGetter(r.fields.start);if(!l||!(o instanceof Date)||!Number.isFinite(o.getTime()))return;let d=new Date(o.getTime()+l.end.getTime()-l.start.getTime());if(n.valueGetter(r.fields.isAllDay)){const R=u.readDateAsLocal(l.start,r.timezone),z=u.readDateAsLocal(o,r.timezone),f=new Date(u.readDateAsLocal(l.end,r.timezone));f.setDate(f.getDate()+Math.round((u.dayValue(z)-u.dayValue(R))/V.MS_PER_DAY)),d=u.readDateWithTimezone(f,r.timezone)}n.onChange(r.fields.end,{value:c?c(d):d}),i()};return i(),t.watch([()=>n.valueGetter(r.fields.start),()=>n.valueGetter(r.fields.end)],i,{flush:"post"}),{handleStartChange:T,updatePreviousRange:i,recurrenceSummaryId:m}},computed:{isAllDay(){return!!this.kendoForm.valueGetter(this.ks.fields.isAllDay)},start(){return this.kendoForm.valueGetter(this.ks.fields.start)||new Date},startTimezone(){return this.kendoForm.valueGetter(this.ks.fields.startTimezone)||""},recurrenceRule(){return this.kendoForm.valueGetter(this.ks.fields.recurrenceRule)},recurrenceId(){return this.kendoForm.valueGetter(this.ks.fields.recurrenceId)},isEditingOccurrence(){return this.recurrenceId!==void 0&&this.recurrenceId!==null},showRecurrenceButton(){return!this.isEditingOccurrence},recurrenceButtonText(){const r=S.provideLocalizationService(this),n=this.recurrenceRule?e.editorRecurrenceEdit:e.editorRecurrenceMakeRecurring;return r.toLanguageString(n,e.messages[n])},recurrenceSummaryText(){if(!this.recurrenceRule)return"";const r=S.provideIntlService(this),n=S.provideLocalizationService(this);return L.getRecurrenceSummary(this.recurrenceRule,this.start,r,(m,l)=>n.toLanguageString(m,l))},parsedRecurrenceRule(){return this.recurrenceRule?A.parseRule({recurrenceRule:this.recurrenceRule}):null}},render(){let r,n,m;const l=h.getDefaultSlots(this),c=V.timezoneNames(),i=S.provideLocalizationService(this),T=this.$props.startEditor,o=this.$props.endEditor,d=this.$props.startTimezoneEditor,R=this.$props.endTimezoneEditor,z=this.$props.allDayEditor,f=this.$props.allDayLabel,N=this.$props.descriptionEditor,w=this.$props.resourceEditor,C=this.$props.titleEditor,I=this.startTimezone,E=!!(this.recurrenceRule&&(this.recurrenceSummaryTemplate||this.recurrenceSummaryText));this.requiredValidationMessage=i.toLanguageString(e.editorValidationRequired,e.messages[e.editorValidationRequired]);const D=i.toLanguageString(e.editorEventAllDay,e.messages[e.editorEventAllDay]);return t.createVNode(t.Fragment,null,[t.createVNode(s.FormElement,{horizontal:!0,class:"k-scheduler-edit-form"},{default:()=>[t.createVNode(s.FieldWrapper,null,{default:()=>[t.createVNode(k.Label,{class:"k-form-label"},{default:()=>[t.createVNode(h.SvgIcon,{icon:g.rightDoubleQuotesIcon,size:"xlarge"},null)]}),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(s.Field,{id:"k-scheduler-editor-title",name:this.ks.fields.title,field:this.ks.fields.title,component:C,placeholder:i.toLanguageString(e.editorEventTitle,e.messages[e.editorEventTitle]),"aria-label":i.toLanguageString(e.editorEventTitle,e.messages[e.editorEventTitle])},null)])]}),t.createVNode(s.FieldWrapper,null,{default:()=>[t.createVNode(k.Label,{class:"k-form-label"},{default:()=>[t.createVNode(h.SvgIcon,{icon:g.clockIcon,size:"xlarge"},null)]}),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode("div",{class:"k-scheduler-datetime-section"},[t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(s.Field,{name:this.ks.fields.isAllDay,component:z,onLabel:"",offLabel:""},null),t.createVNode(f,null,v(D)?D:{default:()=>[D]})]),t.createVNode("div",{class:"k-scheduler-datetime-grid"},[this.isAllDay?t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(s.Field,{name:this.ks.fields.start,component:T,onChange:this.handleStartChange,isAllDay:this.isAllDay,fieldError:this.kendoForm.errors[this.ks.fields.start],ariaLabel:i.toLanguageString(e.editorEventStart,e.messages[e.editorEventStart]),timezone:this.ks.timezone},null),t.createVNode("span",{class:"k-scheduler-datetime-label"},[i.toLanguageString(e.editorDateConnectorTo,e.messages[e.editorDateConnectorTo])]),t.createVNode(s.Field,{name:this.ks.fields.end,component:o,onChange:this.updatePreviousRange,isAllDay:this.isAllDay,fieldError:this.kendoForm.errors[this.ks.fields.end],ariaLabel:i.toLanguageString(e.editorEventEnd,e.messages[e.editorEventEnd]),timezone:this.ks.timezone},null)]):t.createVNode(t.Fragment,null,[t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(s.Field,{name:this.ks.fields.start,component:T,onChange:this.handleStartChange,isAllDay:this.isAllDay,connector:i.toLanguageString(e.editorDateConnectorFrom,e.messages[e.editorDateConnectorFrom]),fieldError:this.kendoForm.errors[this.ks.fields.start],ariaLabel:i.toLanguageString(e.editorEventStart,e.messages[e.editorEventStart]),timeAriaLabel:i.toLanguageString(e.editorStartTimeAriaLabel,e.messages[e.editorStartTimeAriaLabel]),timezone:this.ks.timezone},null)]),!this.showTimezones&&t.createVNode(p.Button,{class:"k-col-span-2",fillMode:"flat",themeColor:"primary",title:i.toLanguageString(e.editorSetTimezoneTitle,e.messages[e.editorSetTimezoneTitle]),onClick:this.handleTimezoneToggle,svgIcon:g.globeIcon},v(r=i.toLanguageString(e.editorTimezoneButton,e.messages[e.editorTimezoneButton]))?r:{default:()=>[r]}),this.showTimezones&&t.createVNode(t.Fragment,null,[t.createVNode(s.Field,{name:this.ks.fields.startTimezone,component:d,dataItems:c,value:I,ariaLabel:i.toLanguageString(e.editorEventStartTimeZone,e.messages[e.editorEventStartTimeZone])},null),t.createVNode(p.Button,{title:i.toLanguageString(e.editorResetTimezoneTitle,e.messages[e.editorResetTimezoneTitle]),"aria-label":i.toLanguageString(e.editorResetTimezoneAriaLabel,e.messages[e.editorResetTimezoneAriaLabel]),onClick:this.handleTimezoneToggle,svgIcon:g.globeIcon,fillMode:"flat",themeColor:"primary"},null)]),t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(s.Field,{name:this.ks.fields.end,component:o,onChange:this.updatePreviousRange,isAllDay:this.isAllDay,connector:i.toLanguageString(e.editorDateConnectorTo,e.messages[e.editorDateConnectorTo]),fieldError:this.kendoForm.errors[this.ks.fields.end],ariaLabel:i.toLanguageString(e.editorEventEnd,e.messages[e.editorEventEnd]),timeAriaLabel:i.toLanguageString(e.editorEndTimeAriaLabel,e.messages[e.editorEndTimeAriaLabel]),timezone:this.ks.timezone},null)]),this.showTimezones&&t.createVNode(s.Field,{name:this.ks.fields.endTimezone,component:R,dataItems:c,value:this.kendoForm.valueGetter(this.ks.fields.endTimezone)||"",ariaLabel:i.toLanguageString(e.editorEventEndTimeZone,e.messages[e.editorEventEndTimeZone])},null)])]),this.showRecurrenceButton&&t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(p.Button,{class:"k-scheduler-recurrence-button",type:"button",fillMode:"flat",themeColor:"primary",svgIcon:g.arrowRotateCwIcon,onClick:this.handleMakeRecurringClick,"aria-describedby":E?this.recurrenceSummaryId:void 0},{default:()=>[this.recurrenceButtonText]}),E&&L.renderRecurrenceSummary(this.recurrenceSummaryText,this.renderRecurrenceSummaryTemplate(),this.recurrenceSummaryId)])])])]}),t.createVNode(s.FieldWrapper,null,{default:()=>[t.createVNode(k.Label,{class:"k-form-label"},{default:()=>[t.createVNode(h.SvgIcon,{icon:g.commentIcon,size:"xlarge"},null)]}),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(s.Field,{component:N,name:this.ks.fields.description,id:"k-event-description",resizable:"vertical",placeholder:i.toLanguageString(e.editorEventDescription,e.messages[e.editorEventDescription]),"aria-label":i.toLanguageString(e.editorEventDescription,e.messages[e.editorEventDescription])},null)])]}),(this.ks.props.resources||[]).map(a=>t.createVNode(s.FieldWrapper,{key:a.field},{default:()=>[a.svgIcon&&t.createVNode(k.Label,{class:"k-form-label"},{default:()=>[t.createVNode(h.SvgIcon,{icon:a.svgIcon,size:"xlarge"},null)]}),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(s.Field,{name:a.field,component:w,resource:a,multiple:a.multiple,dataItems:a.data,textField:a.textField,valueField:a.valueField,colorField:a.colorField,ariaLabel:a.name||a.field},null)])]})),l]}),this.showRecurrenceDialog&&t.createVNode(j.SchedulerRecurrenceDialog,{value:this.recurrenceRule,start:this.start,timezone:this.ks.timezone||"",onSave:this.handleRecurrenceSave,onCancel:this.handleRecurrenceCancel,onRemoveRecurrence:this.handleRemoveRecurrenceClick,recurrenceSummaryTemplate:this.recurrenceSummaryTemplate,recurrenceEditor:this.recurrenceEditor},null),this.showRemoveRecurrenceDialog&&t.createVNode(x.RemoveRecurrenceConfirmDialog,{onConfirm:this.handleRemoveRecurrenceConfirm,onCancel:this.handleRemoveRecurrenceCancel},null),this.showTimezoneResetDialog&&t.createVNode(b.Dialog,{title:i.toLanguageString(e.resetTimezoneDialogTitle,e.messages[e.resetTimezoneDialogTitle]),onClose:this.handleTimezoneResetClose},{default:()=>[i.toLanguageString(e.resetTimezoneConfirmation,e.messages[e.resetTimezoneConfirmation]),t.createVNode(b.DialogActionsBar,null,{default:()=>[t.createVNode(p.Button,{onClick:this.handleTimezoneResetClose},v(n=i.toLanguageString(e.resetTimezoneNo,e.messages[e.resetTimezoneNo]))?n:{default:()=>[n]}),t.createVNode(p.Button,{themeColor:"primary",onClick:this.handleTimezoneResetConfirm},v(m=i.toLanguageString(e.resetTimezoneYes,e.messages[e.resetTimezoneYes]))?m:{default:()=>[m]})]})]})])},methods:{renderRecurrenceSummaryTemplate(){const r=this.recurrenceSummaryTemplate;return!r||!this.recurrenceRule?null:t.createVNode(r,{recurrenceRule:this.recurrenceRule,text:this.recurrenceSummaryText,parsedRule:this.parsedRecurrenceRule},null)},handleTimezoneToggle(r){r.preventDefault(),this.showTimezones?this.showTimezoneResetDialog=!0:(this.updateFormField(this.ks.fields.startTimezone,null),this.updateFormField(this.ks.fields.endTimezone,null),this.showTimezones=!0)},handleTimezoneResetConfirm(){this.updateFormField(this.ks.fields.startTimezone,null),this.updateFormField(this.ks.fields.endTimezone,null),this.showTimezones=!1,this.showTimezoneResetDialog=!1},handleTimezoneResetClose(){this.showTimezoneResetDialog=!1},handleMakeRecurringClick(){this.showRecurrenceDialog=!0},handleRecurrenceSave(r){this.updateFormField(this.ks.fields.recurrenceRule,r),this.showRecurrenceDialog=!1},handleRecurrenceCancel(){this.showRecurrenceDialog=!1},handleRemoveRecurrenceClick(){this.showRemoveRecurrenceDialog=!0},handleRemoveRecurrenceConfirm(){this.updateFormField(this.ks.fields.recurrenceRule,null),this.updateFormField(this.ks.fields.recurrenceExceptions,null),this.showRemoveRecurrenceDialog=!1,this.showRecurrenceDialog=!1},handleRemoveRecurrenceCancel(){this.showRemoveRecurrenceDialog=!1},updateFormField(r,n){this.kendoForm.onChange(r,{value:n}),this.$emit("change",r,{value:n})},requiredValidator(r){return r?void 0:this.requiredValidationMessage},startTimezoneValidator(r,n){return this.showTimezones?this.requiredValidator(n(this.ks.fields.startTimezone)):void 0},endTimezoneValidator(r,n){return this.showTimezones?this.requiredValidator(n(this.ks.fields.endTimezone))||this.requiredValidator(n(this.ks.fields.startTimezone)):void 0}},watch:{startTimezone(r,n){this.showTimezones&&r&&r!==n&&this.updateFormField(this.ks.fields.endTimezone,r)}}});exports.SchedulerFormEditor=O;