@progress/kendo-vue-scheduler 10.2.0-develop.8 → 11.0.0-develop.1

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 (180) hide show
  1. package/Scheduler.d.ts +157 -56
  2. package/Scheduler.js +1 -1
  3. package/Scheduler.mjs +242 -214
  4. package/codemods/v10/index.js +8 -0
  5. package/codemods/v10/scheduler-agenda-rendering-changes.js +12 -0
  6. package/codemods/v10/scheduler-date-format-changes.js +12 -0
  7. package/codemods/v10/scheduler-editor-title-message.js +8 -0
  8. package/codemods/v10/scheduler-form-rendering-changes.js +12 -0
  9. package/codemods/v10/scheduler-item-rendering-changes.js +12 -0
  10. package/codemods/v10/scheduler-more-events-changes.js +12 -0
  11. package/codemods/v10/scheduler-toolbar-rendering-changes.js +12 -0
  12. package/codemods/v10/utils.js +8 -0
  13. package/codemods/v11/index.js +8 -0
  14. package/codemods/v11/scheduler-data-action-prop-rename.js +12 -0
  15. package/codemods/v11/scheduler-default-behavior-changes.js +12 -0
  16. package/codemods/v11/scheduler-event-rendering-changes.js +14 -0
  17. package/codemods/v9/index.js +8 -0
  18. package/codemods/v9/scheduler-rendering-changes.js +12 -0
  19. package/codemods/v9/utils.js +8 -0
  20. package/components/EventOverviewPopover.d.ts +62 -0
  21. package/components/EventOverviewPopover.js +8 -0
  22. package/components/EventOverviewPopover.mjs +191 -0
  23. package/components/MoreEventsPopover.d.ts +3 -1
  24. package/components/MoreEventsPopover.js +1 -1
  25. package/components/MoreEventsPopover.mjs +32 -29
  26. package/components/SchedulerActionButtons.js +1 -1
  27. package/components/SchedulerActionButtons.mjs +1 -0
  28. package/components/SchedulerForm.d.ts +412 -2
  29. package/components/SchedulerForm.js +1 -1
  30. package/components/SchedulerForm.mjs +162 -60
  31. package/components/SchedulerQuickCreateForm.d.ts +118 -0
  32. package/components/SchedulerQuickCreateForm.js +8 -0
  33. package/components/SchedulerQuickCreateForm.mjs +249 -0
  34. package/constants/main.d.ts +2 -0
  35. package/constants/main.js +1 -1
  36. package/constants/main.mjs +10 -9
  37. package/dist/cdn/js/kendo-vue-scheduler.js +1 -1
  38. package/editors/KeepResetCustomEventsDialog.d.ts +31 -0
  39. package/editors/KeepResetCustomEventsDialog.js +8 -0
  40. package/editors/KeepResetCustomEventsDialog.mjs +72 -0
  41. package/editors/ResourceEditor.d.ts +3 -1
  42. package/editors/ResourceEditor.js +1 -1
  43. package/editors/ResourceEditor.mjs +27 -22
  44. package/editors/SchedulerFormEditor.d.ts +176 -46
  45. package/editors/SchedulerFormEditor.js +1 -1
  46. package/editors/SchedulerFormEditor.mjs +199 -144
  47. package/editors/SchedulerRecurrenceDialog.d.ts +2 -2
  48. package/editors/SchedulerRecurrenceDialog.js +1 -1
  49. package/editors/SchedulerRecurrenceDialog.mjs +126 -131
  50. package/editors/ZonedSplitDateTime.d.ts +32 -3
  51. package/editors/ZonedSplitDateTime.js +1 -1
  52. package/editors/ZonedSplitDateTime.mjs +112 -47
  53. package/hooks/useCloseOnAnchorScrollOut.d.ts +10 -0
  54. package/hooks/useCloseOnAnchorScrollOut.js +8 -0
  55. package/hooks/useCloseOnAnchorScrollOut.mjs +43 -0
  56. package/hooks/useCustomEventsConfirmation.d.ts +20 -0
  57. package/hooks/useCustomEventsConfirmation.js +8 -0
  58. package/hooks/useCustomEventsConfirmation.mjs +48 -0
  59. package/hooks/useDeferredClick.d.ts +12 -0
  60. package/hooks/useDeferredClick.js +8 -0
  61. package/hooks/useDeferredClick.mjs +22 -0
  62. package/hooks/useExclusivePopover.d.ts +26 -0
  63. package/hooks/useExclusivePopover.js +8 -0
  64. package/hooks/useExclusivePopover.mjs +30 -0
  65. package/hooks/useRecurrenceSummary.d.ts +3 -0
  66. package/hooks/useRecurrenceSummary.js +1 -1
  67. package/hooks/useRecurrenceSummary.mjs +72 -41
  68. package/index.d.mts +4 -2
  69. package/index.d.ts +4 -2
  70. package/index.js +1 -1
  71. package/index.mjs +83 -78
  72. package/items/SchedulerEditItem.d.ts +116 -12
  73. package/items/SchedulerEditItem.js +1 -1
  74. package/items/SchedulerEditItem.mjs +212 -131
  75. package/items/SchedulerItem.d.ts +5 -3
  76. package/items/SchedulerItem.js +1 -1
  77. package/items/SchedulerItem.mjs +34 -30
  78. package/items/SchedulerProportionalViewItem.d.ts +1 -0
  79. package/items/SchedulerProportionalViewItem.js +1 -1
  80. package/items/SchedulerProportionalViewItem.mjs +83 -68
  81. package/items/SchedulerViewItem.d.ts +1 -0
  82. package/items/SchedulerViewItem.js +1 -1
  83. package/items/SchedulerViewItem.mjs +84 -75
  84. package/items/hooks/use-drag-item.js +1 -1
  85. package/items/hooks/use-drag-item.mjs +49 -48
  86. package/items/hooks/use-form-item.d.ts +1 -1
  87. package/items/hooks/use-remove-item.d.ts +1 -1
  88. package/items/hooks/use-resize-item.js +1 -1
  89. package/items/hooks/use-resize-item.mjs +74 -65
  90. package/messages/main.d.ts +42 -0
  91. package/messages/main.js +1 -1
  92. package/messages/main.mjs +303 -275
  93. package/models/InternalDataAction.d.ts +13 -0
  94. package/models/SchedulerView.d.ts +1 -1
  95. package/package-metadata.js +1 -1
  96. package/package-metadata.mjs +2 -2
  97. package/package.json +94 -13
  98. package/recurrence/RecurrenceEditor.js +1 -1
  99. package/recurrence/RecurrenceEditor.mjs +42 -42
  100. package/recurrence/common.d.ts +10 -0
  101. package/recurrence/common.js +1 -1
  102. package/recurrence/common.mjs +39 -35
  103. package/services/itemsService.d.ts +5 -2
  104. package/services/itemsService.js +1 -1
  105. package/services/itemsService.mjs +46 -33
  106. package/services/occurrenceService.js +1 -1
  107. package/services/occurrenceService.mjs +18 -18
  108. package/slots/SchedulerEditSlot.d.ts +70 -8
  109. package/slots/SchedulerEditSlot.js +1 -1
  110. package/slots/SchedulerEditSlot.mjs +222 -141
  111. package/slots/SchedulerSlot.js +1 -1
  112. package/slots/SchedulerSlot.mjs +20 -16
  113. package/slots/SchedulerViewSlot.d.ts +3 -0
  114. package/slots/SchedulerViewSlot.js +1 -1
  115. package/slots/SchedulerViewSlot.mjs +21 -15
  116. package/tasks/SchedulerEditTask.d.ts +13 -2
  117. package/tasks/SchedulerEditTask.js +1 -1
  118. package/tasks/SchedulerEditTask.mjs +45 -30
  119. package/tasks/SchedulerTask.d.ts +3 -1
  120. package/tasks/SchedulerTask.js +1 -1
  121. package/tasks/SchedulerTask.mjs +34 -28
  122. package/utils/main.d.ts +31 -0
  123. package/utils/main.js +1 -1
  124. package/utils/main.mjs +170 -109
  125. package/views/agenda/AgendaView.d.ts +6 -2
  126. package/views/agenda/AgendaView.js +1 -1
  127. package/views/agenda/AgendaView.mjs +31 -29
  128. package/views/agenda/AgendaViewBody.d.ts +3 -3
  129. package/views/agenda/AgendaViewBody.js +1 -1
  130. package/views/agenda/AgendaViewBody.mjs +31 -29
  131. package/views/common/SchedulerDrag.d.ts +4 -2
  132. package/views/common/SchedulerDrag.js +1 -1
  133. package/views/common/SchedulerDrag.mjs +8 -7
  134. package/views/common/SchedulerResize.d.ts +4 -2
  135. package/views/common/SchedulerResize.js +1 -1
  136. package/views/common/SchedulerResize.mjs +14 -12
  137. package/views/common/VerticalResourceIterator.d.ts +3 -3
  138. package/views/common/VerticalResourceIterator.js +1 -1
  139. package/views/common/VerticalResourceIterator.mjs +34 -33
  140. package/views/day/DayView.d.ts +2 -0
  141. package/views/day/DayView.js +1 -1
  142. package/views/day/DayView.mjs +9 -7
  143. package/views/day/DayViewAllDaySlots.d.ts +7 -5
  144. package/views/day/DayViewAllDaySlots.js +1 -1
  145. package/views/day/DayViewAllDaySlots.mjs +24 -21
  146. package/views/day/DayViewMiddleRow.d.ts +7 -5
  147. package/views/day/DayViewMiddleRow.js +1 -1
  148. package/views/day/DayViewMiddleRow.mjs +18 -13
  149. package/views/day/DayViewVerticalRow.d.ts +7 -5
  150. package/views/day/DayViewVerticalRow.js +1 -1
  151. package/views/day/DayViewVerticalRow.mjs +23 -17
  152. package/views/day/DayViewVerticalSlotsRow.d.ts +7 -5
  153. package/views/day/DayViewVerticalSlotsRow.js +1 -1
  154. package/views/day/DayViewVerticalSlotsRow.mjs +34 -29
  155. package/views/day/MultiDayView.d.ts +13 -7
  156. package/views/day/MultiDayView.js +1 -1
  157. package/views/day/MultiDayView.mjs +108 -95
  158. package/views/month/MonthView.d.ts +15 -4
  159. package/views/month/MonthView.js +1 -1
  160. package/views/month/MonthView.mjs +105 -68
  161. package/views/month/MonthViewBody.d.ts +3 -3
  162. package/views/month/MonthViewBody.js +1 -1
  163. package/views/month/MonthViewBody.mjs +18 -16
  164. package/views/time/MultiDayTimelineView.d.ts +6 -4
  165. package/views/time/MultiDayTimelineView.js +1 -1
  166. package/views/time/MultiDayTimelineView.mjs +64 -63
  167. package/views/time/TimelineView.d.ts +2 -0
  168. package/views/time/TimelineView.js +1 -1
  169. package/views/time/TimelineView.mjs +5 -3
  170. package/views/time/TimelineViewBody.d.ts +7 -5
  171. package/views/time/TimelineViewBody.js +1 -1
  172. package/views/time/TimelineViewBody.mjs +29 -27
  173. package/views/week/WeekView.d.ts +2 -0
  174. package/views/week/WeekView.js +1 -1
  175. package/views/week/WeekView.mjs +11 -10
  176. package/views/week/WorkWeekView.d.ts +2 -0
  177. package/views/week/WorkWeekView.js +1 -1
  178. package/views/week/WorkWeekView.mjs +17 -16
  179. package/EULA.pdf +0 -0
  180. package/EULA.rtf +0 -2730
@@ -9,8 +9,12 @@ import { RecurrenceRule } from '@progress/kendo-recurrence';
9
9
  import { FormRenderProps, FormElementProps } from '@progress/kendo-vue-form';
10
10
  import { SwitchChangeEvent } from '@progress/kendo-vue-inputs';
11
11
  import { Omit } from '../models/Omit';
12
+ import { readDateAsLocal } from './ZonedSplitDateTime';
13
+ import { VNode } from 'vue';
12
14
  /**
13
15
  * Represents the props passed to the [`recurrenceButtonTextTemplate`](slug:api_scheduler_schedulerformeditorprops#toc-recurrenceButtonTextTemplate) component.
16
+ *
17
+ * @deprecated The `recurrenceButtonTextTemplate` is ignored. Use `recurrenceSummaryTemplate` and `RecurrenceSummaryTemplateProps` instead.
14
18
  */
15
19
  export interface RecurrenceButtonTextTemplateProps {
16
20
  /**
@@ -108,17 +112,19 @@ export interface SchedulerFormEditorProps extends Omit<FormElementProps, 'childr
108
112
  */
109
113
  resourceEditor?: any;
110
114
  /**
111
- * Overrides the content rendered inside the "Make recurring" button in the event edit form.
115
+ * This template is ignored. The recurrence button always uses the localized
116
+ * "Make recurring" or "Edit recurrence" label. Use `recurrenceSummaryTemplate`
117
+ * to customize the separate recurrence summary instead.
112
118
  *
113
- * Receives the current `recurrenceRule` (RRULE string or `null` when no recurrence is set).
114
- * The developer controls the entire button content for both states.
119
+ * @deprecated Use `recurrenceSummaryTemplate` instead.
115
120
  */
116
121
  recurrenceButtonTextTemplate?: any;
117
122
  /**
118
- * Overrides the recurrence summary hint displayed inside the recurrence editor dialog.
123
+ * Overrides the recurrence summary displayed below the recurrence button and inside the recurrence editor dialog.
119
124
  *
120
- * Receives the current `recurrenceRule` (RRULE string) and should render the desired summary.
121
- * This template is only used when a recurrence rule exists.
125
+ * Receives `recurrenceRule` (RRULE string), `text` (full default summary), and `parsedRule`.
126
+ * This template is only rendered when a recurrence rule exists.
127
+ * The native tooltip displays the full rendered template text.
122
128
  */
123
129
  recurrenceSummaryTemplate?: any;
124
130
  }
@@ -372,6 +378,9 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
372
378
  type: (ObjectConstructor | StringConstructor | FunctionConstructor)[];
373
379
  default: () => import('vue').DefineComponent<import('vue').ExtractPropTypes<{
374
380
  value: import('vue').PropType<Date>;
381
+ /**
382
+ * The current recurrence rule string (RRULE), or `null` when no recurrence is set.
383
+ */
375
384
  isAllDay: BooleanConstructor;
376
385
  connector: StringConstructor;
377
386
  connectorElement: import('vue').PropType<any>;
@@ -380,17 +389,33 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
380
389
  fieldError: StringConstructor;
381
390
  ariaLabel: StringConstructor;
382
391
  timeAriaLabel: StringConstructor;
383
- }>, {}, {}, {
392
+ }>, {
393
+ ks: any;
394
+ pendingValue: import('vue').Ref<Date, Date>;
395
+ boundAttr: (key: "min" | "max") => Date;
396
+ isInBounds: (value: Date) => boolean;
397
+ dateMin: () => Date;
398
+ timeMin: (value: Date) => Date;
399
+ timeMax: (value: Date) => Date;
400
+ modelStart: () => Date;
401
+ }, {}, {
384
402
  timezone(): string;
385
403
  localValue(): Date;
404
+ displayValue(): Date;
386
405
  isInvalid(): boolean;
387
406
  }, {
388
407
  handleDateChange(e: import('@progress/kendo-vue-dateinputs').DatePickerChangeEvent): void;
389
408
  handleTimeChange(e: import('@progress/kendo-vue-dateinputs').TimePickerChangeEvent): void;
390
- readDateAsLocal(value: any, timezone?: string): Date;
391
- readDateWithTimezone(value: any, timezone?: string): Date;
409
+ commit(local: Date, event?: Event): void;
410
+ handleBlur(event: any): void;
411
+ handleKeyDown(event: KeyboardEvent): void;
412
+ readDateAsLocal: typeof readDateAsLocal;
413
+ readDateWithTimezone: (value: Date, timezone?: string) => Date;
392
414
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "change"[], "change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
393
415
  value: import('vue').PropType<Date>;
416
+ /**
417
+ * The current recurrence rule string (RRULE), or `null` when no recurrence is set.
418
+ */
394
419
  isAllDay: BooleanConstructor;
395
420
  connector: StringConstructor;
396
421
  connectorElement: import('vue').PropType<any>;
@@ -445,6 +470,9 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
445
470
  type: (ObjectConstructor | StringConstructor | FunctionConstructor)[];
446
471
  default: () => import('vue').DefineComponent<import('vue').ExtractPropTypes<{
447
472
  value: import('vue').PropType<Date>;
473
+ /**
474
+ * The current recurrence rule string (RRULE), or `null` when no recurrence is set.
475
+ */
448
476
  isAllDay: BooleanConstructor;
449
477
  connector: StringConstructor;
450
478
  connectorElement: import('vue').PropType<any>;
@@ -453,17 +481,33 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
453
481
  fieldError: StringConstructor;
454
482
  ariaLabel: StringConstructor;
455
483
  timeAriaLabel: StringConstructor;
456
- }>, {}, {}, {
484
+ }>, {
485
+ ks: any;
486
+ pendingValue: import('vue').Ref<Date, Date>;
487
+ boundAttr: (key: "min" | "max") => Date;
488
+ isInBounds: (value: Date) => boolean;
489
+ dateMin: () => Date;
490
+ timeMin: (value: Date) => Date;
491
+ timeMax: (value: Date) => Date;
492
+ modelStart: () => Date;
493
+ }, {}, {
457
494
  timezone(): string;
458
495
  localValue(): Date;
496
+ displayValue(): Date;
459
497
  isInvalid(): boolean;
460
498
  }, {
461
499
  handleDateChange(e: import('@progress/kendo-vue-dateinputs').DatePickerChangeEvent): void;
462
500
  handleTimeChange(e: import('@progress/kendo-vue-dateinputs').TimePickerChangeEvent): void;
463
- readDateAsLocal(value: any, timezone?: string): Date;
464
- readDateWithTimezone(value: any, timezone?: string): Date;
501
+ commit(local: Date, event?: Event): void;
502
+ handleBlur(event: any): void;
503
+ handleKeyDown(event: KeyboardEvent): void;
504
+ readDateAsLocal: typeof readDateAsLocal;
505
+ readDateWithTimezone: (value: Date, timezone?: string) => Date;
465
506
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "change"[], "change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
466
507
  value: import('vue').PropType<Date>;
508
+ /**
509
+ * The current recurrence rule string (RRULE), or `null` when no recurrence is set.
510
+ */
467
511
  isAllDay: BooleanConstructor;
468
512
  connector: StringConstructor;
469
513
  connectorElement: import('vue').PropType<any>;
@@ -524,10 +568,7 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
524
568
  name: StringConstructor;
525
569
  accessKey: StringConstructor;
526
570
  checked: {
527
- type: BooleanConstructor; /**
528
- * Overrides the component used for visualizing the `allDay` field editor.
529
- * The [Kendo UI for Vue Switch]({% slug overview_switch %}) component is used, by default.
530
- */
571
+ type: BooleanConstructor;
531
572
  default: any;
532
573
  };
533
574
  className: StringConstructor;
@@ -536,6 +577,9 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
536
577
  default: boolean;
537
578
  };
538
579
  defaultChecked: {
580
+ /**
581
+ * Overrides the component used for visualizing the `allDay` field label.
582
+ */
539
583
  type: BooleanConstructor;
540
584
  default: boolean;
541
585
  };
@@ -619,7 +663,10 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
619
663
  handleWrapperBlur(event: any): void;
620
664
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
621
665
  change: (event: SwitchChangeEvent) => true;
622
- 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
+ */
623
670
  'update:modelValue': (value: boolean) => true;
624
671
  focus: (event: import('@progress/kendo-vue-inputs').SwitchFocusEvent) => true;
625
672
  blur: (event: import('@progress/kendo-vue-inputs').SwitchBlurEvent) => true;
@@ -627,10 +674,7 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
627
674
  name: StringConstructor;
628
675
  accessKey: StringConstructor;
629
676
  checked: {
630
- type: BooleanConstructor; /**
631
- * Overrides the component used for visualizing the `allDay` field editor.
632
- * The [Kendo UI for Vue Switch]({% slug overview_switch %}) component is used, by default.
633
- */
677
+ type: BooleanConstructor;
634
678
  default: any;
635
679
  };
636
680
  className: StringConstructor;
@@ -639,6 +683,9 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
639
683
  default: boolean;
640
684
  };
641
685
  defaultChecked: {
686
+ /**
687
+ * Overrides the component used for visualizing the `allDay` field label.
688
+ */
642
689
  type: BooleanConstructor;
643
690
  default: boolean;
644
691
  };
@@ -770,6 +817,11 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
770
817
  ariaLabelledBy: import('vue').PropType<string>;
771
818
  autoSize: import('vue').PropType<boolean>;
772
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
+ */
773
825
  type: import('vue').PropType<string | number | string[]>;
774
826
  default: any;
775
827
  };
@@ -778,7 +830,10 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
778
830
  disabled: import('vue').PropType<boolean>;
779
831
  readOnly: import('vue').PropType<boolean>;
780
832
  rows: import('vue').PropType<number>;
781
- 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
+ */
782
837
  name: import('vue').PropType<string>;
783
838
  validationMessage: import('vue').PropType<string>;
784
839
  size: {
@@ -889,6 +944,11 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
889
944
  ariaLabelledBy: import('vue').PropType<string>;
890
945
  autoSize: import('vue').PropType<boolean>;
891
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
+ */
892
952
  type: import('vue').PropType<string | number | string[]>;
893
953
  default: any;
894
954
  };
@@ -897,7 +957,10 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
897
957
  disabled: import('vue').PropType<boolean>;
898
958
  readOnly: import('vue').PropType<boolean>;
899
959
  rows: import('vue').PropType<number>;
900
- 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
+ */
901
964
  name: import('vue').PropType<string>;
902
965
  validationMessage: import('vue').PropType<string>;
903
966
  size: {
@@ -952,8 +1015,8 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
952
1015
  "onUpdate:modelValue"?: (value: string | number | string[]) => any;
953
1016
  }>, {
954
1017
  flow: string;
955
- resizable: string;
956
1018
  valid: boolean;
1019
+ resizable: string;
957
1020
  modelValue: string | number | string[];
958
1021
  validityStyles: boolean;
959
1022
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -975,7 +1038,9 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
975
1038
  visited: import('vue').PropType<boolean>;
976
1039
  valid: import('vue').PropType<boolean>;
977
1040
  name: import('vue').PropType<string>;
978
- }>, {}, {}, {}, {
1041
+ }>, {
1042
+ getResourceColor: (color?: string) => string;
1043
+ }, {}, {}, {
979
1044
  handleChange(event: import('@progress/kendo-vue-dropdowns').DropDownListChangeEvent | import('@progress/kendo-vue-dropdowns').MultiSelectChangeEvent): void;
980
1045
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
981
1046
  change: any;
@@ -1008,7 +1073,11 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1008
1073
  submitted: BooleanConstructor;
1009
1074
  allowSubmit: BooleanConstructor;
1010
1075
  valueGetter: FunctionConstructor;
1011
- }>, {}, {
1076
+ }>, {
1077
+ handleStartChange: () => void;
1078
+ updatePreviousRange: () => void;
1079
+ recurrenceSummaryId: string;
1080
+ }, {
1012
1081
  showTimezones: boolean;
1013
1082
  showTimezoneResetDialog: boolean;
1014
1083
  showRecurrenceDialog: boolean;
@@ -1022,8 +1091,10 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1022
1091
  isEditingOccurrence(): boolean;
1023
1092
  showRecurrenceButton(): boolean;
1024
1093
  recurrenceButtonText(): string;
1094
+ recurrenceSummaryText(): string;
1095
+ parsedRecurrenceRule(): RecurrenceRule | null;
1025
1096
  }, {
1026
- renderRecurrenceButtonTextTemplate(): import("vue/jsx-runtime").JSX.Element;
1097
+ renderRecurrenceSummaryTemplate(): VNode | null;
1027
1098
  handleTimezoneToggle(event: Event): void;
1028
1099
  handleTimezoneResetConfirm(): void;
1029
1100
  handleTimezoneResetClose(): void;
@@ -1279,6 +1350,9 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1279
1350
  type: (ObjectConstructor | StringConstructor | FunctionConstructor)[];
1280
1351
  default: () => import('vue').DefineComponent<import('vue').ExtractPropTypes<{
1281
1352
  value: import('vue').PropType<Date>;
1353
+ /**
1354
+ * The current recurrence rule string (RRULE), or `null` when no recurrence is set.
1355
+ */
1282
1356
  isAllDay: BooleanConstructor;
1283
1357
  connector: StringConstructor;
1284
1358
  connectorElement: import('vue').PropType<any>;
@@ -1287,17 +1361,33 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1287
1361
  fieldError: StringConstructor;
1288
1362
  ariaLabel: StringConstructor;
1289
1363
  timeAriaLabel: StringConstructor;
1290
- }>, {}, {}, {
1364
+ }>, {
1365
+ ks: any;
1366
+ pendingValue: import('vue').Ref<Date, Date>;
1367
+ boundAttr: (key: "min" | "max") => Date;
1368
+ isInBounds: (value: Date) => boolean;
1369
+ dateMin: () => Date;
1370
+ timeMin: (value: Date) => Date;
1371
+ timeMax: (value: Date) => Date;
1372
+ modelStart: () => Date;
1373
+ }, {}, {
1291
1374
  timezone(): string;
1292
1375
  localValue(): Date;
1376
+ displayValue(): Date;
1293
1377
  isInvalid(): boolean;
1294
1378
  }, {
1295
1379
  handleDateChange(e: import('@progress/kendo-vue-dateinputs').DatePickerChangeEvent): void;
1296
1380
  handleTimeChange(e: import('@progress/kendo-vue-dateinputs').TimePickerChangeEvent): void;
1297
- readDateAsLocal(value: any, timezone?: string): Date;
1298
- readDateWithTimezone(value: any, timezone?: string): Date;
1381
+ commit(local: Date, event?: Event): void;
1382
+ handleBlur(event: any): void;
1383
+ handleKeyDown(event: KeyboardEvent): void;
1384
+ readDateAsLocal: typeof readDateAsLocal;
1385
+ readDateWithTimezone: (value: Date, timezone?: string) => Date;
1299
1386
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "change"[], "change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
1300
1387
  value: import('vue').PropType<Date>;
1388
+ /**
1389
+ * The current recurrence rule string (RRULE), or `null` when no recurrence is set.
1390
+ */
1301
1391
  isAllDay: BooleanConstructor;
1302
1392
  connector: StringConstructor;
1303
1393
  connectorElement: import('vue').PropType<any>;
@@ -1352,6 +1442,9 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1352
1442
  type: (ObjectConstructor | StringConstructor | FunctionConstructor)[];
1353
1443
  default: () => import('vue').DefineComponent<import('vue').ExtractPropTypes<{
1354
1444
  value: import('vue').PropType<Date>;
1445
+ /**
1446
+ * The current recurrence rule string (RRULE), or `null` when no recurrence is set.
1447
+ */
1355
1448
  isAllDay: BooleanConstructor;
1356
1449
  connector: StringConstructor;
1357
1450
  connectorElement: import('vue').PropType<any>;
@@ -1360,17 +1453,33 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1360
1453
  fieldError: StringConstructor;
1361
1454
  ariaLabel: StringConstructor;
1362
1455
  timeAriaLabel: StringConstructor;
1363
- }>, {}, {}, {
1456
+ }>, {
1457
+ ks: any;
1458
+ pendingValue: import('vue').Ref<Date, Date>;
1459
+ boundAttr: (key: "min" | "max") => Date;
1460
+ isInBounds: (value: Date) => boolean;
1461
+ dateMin: () => Date;
1462
+ timeMin: (value: Date) => Date;
1463
+ timeMax: (value: Date) => Date;
1464
+ modelStart: () => Date;
1465
+ }, {}, {
1364
1466
  timezone(): string;
1365
1467
  localValue(): Date;
1468
+ displayValue(): Date;
1366
1469
  isInvalid(): boolean;
1367
1470
  }, {
1368
1471
  handleDateChange(e: import('@progress/kendo-vue-dateinputs').DatePickerChangeEvent): void;
1369
1472
  handleTimeChange(e: import('@progress/kendo-vue-dateinputs').TimePickerChangeEvent): void;
1370
- readDateAsLocal(value: any, timezone?: string): Date;
1371
- readDateWithTimezone(value: any, timezone?: string): Date;
1473
+ commit(local: Date, event?: Event): void;
1474
+ handleBlur(event: any): void;
1475
+ handleKeyDown(event: KeyboardEvent): void;
1476
+ readDateAsLocal: typeof readDateAsLocal;
1477
+ readDateWithTimezone: (value: Date, timezone?: string) => Date;
1372
1478
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "change"[], "change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
1373
1479
  value: import('vue').PropType<Date>;
1480
+ /**
1481
+ * The current recurrence rule string (RRULE), or `null` when no recurrence is set.
1482
+ */
1374
1483
  isAllDay: BooleanConstructor;
1375
1484
  connector: StringConstructor;
1376
1485
  connectorElement: import('vue').PropType<any>;
@@ -1431,10 +1540,7 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1431
1540
  name: StringConstructor;
1432
1541
  accessKey: StringConstructor;
1433
1542
  checked: {
1434
- type: BooleanConstructor; /**
1435
- * Overrides the component used for visualizing the `allDay` field editor.
1436
- * The [Kendo UI for Vue Switch]({% slug overview_switch %}) component is used, by default.
1437
- */
1543
+ type: BooleanConstructor;
1438
1544
  default: any;
1439
1545
  };
1440
1546
  className: StringConstructor;
@@ -1443,6 +1549,9 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1443
1549
  default: boolean;
1444
1550
  };
1445
1551
  defaultChecked: {
1552
+ /**
1553
+ * Overrides the component used for visualizing the `allDay` field label.
1554
+ */
1446
1555
  type: BooleanConstructor;
1447
1556
  default: boolean;
1448
1557
  };
@@ -1526,7 +1635,10 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1526
1635
  handleWrapperBlur(event: any): void;
1527
1636
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1528
1637
  change: (event: SwitchChangeEvent) => true;
1529
- 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
+ */
1530
1642
  'update:modelValue': (value: boolean) => true;
1531
1643
  focus: (event: import('@progress/kendo-vue-inputs').SwitchFocusEvent) => true;
1532
1644
  blur: (event: import('@progress/kendo-vue-inputs').SwitchBlurEvent) => true;
@@ -1534,10 +1646,7 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1534
1646
  name: StringConstructor;
1535
1647
  accessKey: StringConstructor;
1536
1648
  checked: {
1537
- type: BooleanConstructor; /**
1538
- * Overrides the component used for visualizing the `allDay` field editor.
1539
- * The [Kendo UI for Vue Switch]({% slug overview_switch %}) component is used, by default.
1540
- */
1649
+ type: BooleanConstructor;
1541
1650
  default: any;
1542
1651
  };
1543
1652
  className: StringConstructor;
@@ -1546,6 +1655,9 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1546
1655
  default: boolean;
1547
1656
  };
1548
1657
  defaultChecked: {
1658
+ /**
1659
+ * Overrides the component used for visualizing the `allDay` field label.
1660
+ */
1549
1661
  type: BooleanConstructor;
1550
1662
  default: boolean;
1551
1663
  };
@@ -1677,6 +1789,11 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1677
1789
  ariaLabelledBy: import('vue').PropType<string>;
1678
1790
  autoSize: import('vue').PropType<boolean>;
1679
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
+ */
1680
1797
  type: import('vue').PropType<string | number | string[]>;
1681
1798
  default: any;
1682
1799
  };
@@ -1685,7 +1802,10 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1685
1802
  disabled: import('vue').PropType<boolean>;
1686
1803
  readOnly: import('vue').PropType<boolean>;
1687
1804
  rows: import('vue').PropType<number>;
1688
- 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
+ */
1689
1809
  name: import('vue').PropType<string>;
1690
1810
  validationMessage: import('vue').PropType<string>;
1691
1811
  size: {
@@ -1796,6 +1916,11 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1796
1916
  ariaLabelledBy: import('vue').PropType<string>;
1797
1917
  autoSize: import('vue').PropType<boolean>;
1798
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
+ */
1799
1924
  type: import('vue').PropType<string | number | string[]>;
1800
1925
  default: any;
1801
1926
  };
@@ -1804,7 +1929,10 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1804
1929
  disabled: import('vue').PropType<boolean>;
1805
1930
  readOnly: import('vue').PropType<boolean>;
1806
1931
  rows: import('vue').PropType<number>;
1807
- 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
+ */
1808
1936
  name: import('vue').PropType<string>;
1809
1937
  validationMessage: import('vue').PropType<string>;
1810
1938
  size: {
@@ -1859,8 +1987,8 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1859
1987
  "onUpdate:modelValue"?: (value: string | number | string[]) => any;
1860
1988
  }>, {
1861
1989
  flow: string;
1862
- resizable: string;
1863
1990
  valid: boolean;
1991
+ resizable: string;
1864
1992
  modelValue: string | number | string[];
1865
1993
  validityStyles: boolean;
1866
1994
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1882,7 +2010,9 @@ declare const SchedulerFormEditor: import('vue').DefineComponent<import('vue').E
1882
2010
  visited: import('vue').PropType<boolean>;
1883
2011
  valid: import('vue').PropType<boolean>;
1884
2012
  name: import('vue').PropType<string>;
1885
- }>, {}, {}, {}, {
2013
+ }>, {
2014
+ getResourceColor: (color?: string) => string;
2015
+ }, {}, {}, {
1886
2016
  handleChange(event: import('@progress/kendo-vue-dropdowns').DropDownListChangeEvent | import('@progress/kendo-vue-dropdowns').MultiSelectChangeEvent): void;
1887
2017
  }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1888
2018
  change: any;
@@ -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"),w=require("@progress/kendo-date-math"),h=require("@progress/kendo-vue-labels"),T=require("@progress/kendo-vue-intl"),n=require("@progress/kendo-vue-form"),p=require("@progress/kendo-vue-inputs"),d=require("@progress/kendo-vue-common"),a=require("@progress/kendo-svg-icons"),c=require("@progress/kendo-vue-buttons"),v=require("@progress/kendo-vue-dialogs"),e=require("../messages/main.js"),C=require("../recurrence/RecurrenceEditor.js"),I=require("./ResourceEditor.js"),R=require("./ZonedSplitDateTime.js"),S=require("./TimezoneDropDownList.js"),q=require("./SchedulerRecurrenceDialog.js"),A=require("./RemoveRecurrenceConfirmDialog.js"),B=require("../hooks/useRecurrenceSummary.js");function g(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!t.isVNode(r)}const j=t.defineComponent({name:"KendoSchedulerFormEditor",props:{as:[String,Function,Object],id:String,tabIndex:Number,titleEditor:{type:[String,Function,Object],default:function(){return p.TextBox}},startEditor:{type:[String,Function,Object],default:function(){return R.ZonedSplitDateTime}},startTimezoneEditor:{type:[String,Function,Object],default:function(){return S.TimezoneDropDownList}},endEditor:{type:[String,Function,Object],default:function(){return R.ZonedSplitDateTime}},endTimezoneEditor:{type:[String,Function,Object],default:function(){return S.TimezoneDropDownList}},allDayLabel:{type:[String,Function,Object],default:function(){return"span"}},allDayEditor:{type:[String,Function,Object],default:function(){return p.Switch}},recurrenceEditor:{type:[String,Function,Object],default:function(){return C.RecurrenceEditor}},descriptionEditor:{type:[String,Function,Object],default:function(){return p.TextArea}},resourceEditor:{type:[String,Function,Object],default:function(){return I.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:{}},kendoLocalizationService:{default:null}},data(){const r=this.kendoForm,o=this.ks;return{showTimezones:!!r.valueGetter(o.fields.startTimezone),showTimezoneResetDialog:!1,showRecurrenceDialog:!1,showRemoveRecurrenceDialog:!1}},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=T.provideIntlService(this),o=T.provideLocalizationService(this),l=(m,i)=>o.toLanguageString(m,i),u=o.toLanguageString(e.editorRecurrenceMakeRecurring,e.messages[e.editorRecurrenceMakeRecurring]);return this.recurrenceRule&&B.getRecurrenceSummary(this.recurrenceRule,this.start,r,l)||u}},render(){let r,o,l;const u=d.getDefaultSlots(this),m=w.timezoneNames(),i=T.provideLocalizationService(this),k=this.$props.startEditor,z=this.$props.endEditor,F=this.$props.startTimezoneEditor,E=this.$props.endTimezoneEditor,D=this.$props.allDayEditor,V=this.$props.allDayLabel,b=this.$props.descriptionEditor,L=this.$props.resourceEditor,N=this.$props.titleEditor,y=this.startTimezone;this.requiredValidationMessage=i.toLanguageString(e.editorValidationRequired,e.messages[e.editorValidationRequired]);const f=i.toLanguageString(e.editorEventAllDay,e.messages[e.editorEventAllDay]);return t.createVNode(t.Fragment,null,[t.createVNode(n.FormElement,{horizontal:!0,class:"k-scheduler-edit-form"},{default:()=>[t.createVNode(n.FieldWrapper,null,{default:()=>[t.createVNode(h.Label,{class:"k-form-label"},{default:()=>[t.createVNode(d.SvgIcon,{icon:a.rightDoubleQuotesIcon,size:"xlarge"},null)]}),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(n.Field,{id:"k-scheduler-editor-title",name:this.ks.fields.title,field:this.ks.fields.title,component:N,placeholder:i.toLanguageString(e.editorEventTitle,e.messages[e.editorEventTitle]),"aria-label":i.toLanguageString(e.editorEventTitle,e.messages[e.editorEventTitle])},null)])]}),t.createVNode(n.FieldWrapper,null,{default:()=>[t.createVNode(h.Label,{class:"k-form-label"},{default:()=>[t.createVNode(d.SvgIcon,{icon:a.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(n.Field,{name:this.ks.fields.isAllDay,component:D,onLabel:"",offLabel:""},null),t.createVNode(V,null,g(f)?f:{default:()=>[f]})]),t.createVNode("div",{class:"k-scheduler-datetime-grid"},[this.isAllDay?t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(n.Field,{name:this.ks.fields.start,component:k,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(n.Field,{name:this.ks.fields.end,component:z,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(n.Field,{name:this.ks.fields.start,component:k,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(c.Button,{class:"k-col-span-2",fillMode:"flat",themeColor:"primary",title:i.toLanguageString(e.editorSetTimezoneTitle,e.messages[e.editorSetTimezoneTitle]),onClick:this.handleTimezoneToggle,svgIcon:a.globeIcon},g(r=i.toLanguageString(e.editorTimezoneButton,e.messages[e.editorTimezoneButton]))?r:{default:()=>[r]}),this.showTimezones&&t.createVNode(t.Fragment,null,[t.createVNode(n.Field,{name:this.ks.fields.startTimezone,component:F,dataItems:m,value:y,ariaLabel:i.toLanguageString(e.editorEventStartTimeZone,e.messages[e.editorEventStartTimeZone])},null),t.createVNode(c.Button,{title:i.toLanguageString(e.editorResetTimezoneTitle,e.messages[e.editorResetTimezoneTitle]),"aria-label":i.toLanguageString(e.editorResetTimezoneAriaLabel,e.messages[e.editorResetTimezoneAriaLabel]),onClick:this.handleTimezoneToggle,svgIcon:a.globeIcon,fillMode:"flat",themeColor:"primary"},null)]),t.createVNode("div",{class:"k-scheduler-edit-form-row"},[t.createVNode(n.Field,{name:this.ks.fields.end,component:z,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(n.Field,{name:this.ks.fields.endTimezone,component:E,dataItems:m,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(c.Button,{class:"k-scheduler-recurrence-button",type:"button",fillMode:"flat",themeColor:"primary",svgIcon:a.arrowRotateCwIcon,onClick:this.handleMakeRecurringClick},{default:()=>[this.recurrenceButtonTextTemplate?this.renderRecurrenceButtonTextTemplate():this.recurrenceButtonText]})])])])]}),t.createVNode(n.FieldWrapper,null,{default:()=>[t.createVNode(h.Label,{class:"k-form-label"},{default:()=>[t.createVNode(d.SvgIcon,{icon:a.commentIcon,size:"xlarge"},null)]}),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(n.Field,{component:b,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(s=>t.createVNode(n.FieldWrapper,{key:s.field},{default:()=>[s.svgIcon&&t.createVNode(h.Label,{class:"k-form-label"},{default:()=>[t.createVNode(d.SvgIcon,{icon:s.svgIcon,size:"xlarge"},null)]}),t.createVNode("div",{class:"k-form-field-wrap"},[t.createVNode(n.Field,{name:s.field,component:L,resource:s,multiple:s.multiple,dataItems:s.data,textField:s.textField,valueField:s.valueField,colorField:s.colorField,ariaLabel:s.name||s.field},null)])]})),u]}),this.showRecurrenceDialog&&t.createVNode(q.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(A.RemoveRecurrenceConfirmDialog,{onConfirm:this.handleRemoveRecurrenceConfirm,onCancel:this.handleRemoveRecurrenceCancel},null),this.showTimezoneResetDialog&&t.createVNode(v.Dialog,{title:i.toLanguageString(e.resetTimezoneDialogTitle,e.messages[e.resetTimezoneDialogTitle]),onClose:this.handleTimezoneResetClose},{default:()=>[i.toLanguageString(e.resetTimezoneConfirmation,e.messages[e.resetTimezoneConfirmation]),t.createVNode(v.DialogActionsBar,null,{default:()=>[t.createVNode(c.Button,{onClick:this.handleTimezoneResetClose},g(o=i.toLanguageString(e.resetTimezoneNo,e.messages[e.resetTimezoneNo]))?o:{default:()=>[o]}),t.createVNode(c.Button,{themeColor:"primary",onClick:this.handleTimezoneResetConfirm},g(l=i.toLanguageString(e.resetTimezoneYes,e.messages[e.resetTimezoneYes]))?l:{default:()=>[l]})]})]})])},methods:{renderRecurrenceButtonTextTemplate(){const r=this.recurrenceButtonTextTemplate;return r?t.createVNode(r,{recurrenceRule:this.recurrenceRule},null):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,o){this.kendoForm.onChange(r,{value:o}),this.$emit("change",r,{value:o})},requiredValidator(r){return r?void 0:this.requiredValidationMessage},startTimezoneValidator(r,o){return this.showTimezones?this.requiredValidator(o(this.ks.fields.startTimezone)):void 0},endTimezoneValidator(r,o){return this.showTimezones?this.requiredValidator(o(this.ks.fields.endTimezone))||this.requiredValidator(o(this.ks.fields.startTimezone)):void 0}},watch:{startTimezone(r,o){this.showTimezones&&r&&r!==o&&this.updateFormField(this.ks.fields.endTimezone,r)}}});exports.SchedulerFormEditor=j;
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;