@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
@@ -5,28 +5,29 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as U, createVNode as e, Fragment as S, isVNode as X } from "vue";
9
- import { timezoneNames as ee } from "@progress/kendo-date-math";
10
- import { Label as u } from "@progress/kendo-vue-labels";
11
- import { provideLocalizationService as b, provideIntlService as te } from "@progress/kendo-vue-intl";
12
- import { FormElement as ie, FieldWrapper as m, Field as l } from "@progress/kendo-vue-form";
13
- import { TextArea as re, Switch as ne, TextBox as oe } from "@progress/kendo-vue-inputs";
14
- import { getDefaultSlots as le, SvgIcon as h } from "@progress/kendo-vue-common";
15
- import { rightDoubleQuotesIcon as se, clockIcon as ae, globeIcon as D, arrowRotateCwIcon as de, commentIcon as ce } from "@progress/kendo-svg-icons";
16
- import { Button as a } from "@progress/kendo-vue-buttons";
17
- import { Dialog as ue, DialogActionsBar as me } from "@progress/kendo-vue-dialogs";
18
- import { editorValidationRequired as E, messages as r, editorEventAllDay as L, editorEventTitle as f, editorEventStart as g, editorDateConnectorTo as p, editorEventEnd as k, editorStartTimeAriaLabel as w, editorDateConnectorFrom as y, editorSetTimezoneTitle as C, editorTimezoneButton as A, editorEventStartTimeZone as I, editorResetTimezoneAriaLabel as x, editorResetTimezoneTitle as B, editorEndTimeAriaLabel as j, editorEventEndTimeZone as O, editorEventDescription as T, resetTimezoneDialogTitle as M, resetTimezoneConfirmation as V, resetTimezoneNo as $, resetTimezoneYes as q, editorRecurrenceMakeRecurring as G } from "../messages/main.mjs";
19
- import { RecurrenceEditor as he } from "../recurrence/RecurrenceEditor.mjs";
20
- import { ResourceEditor as fe } from "./ResourceEditor.mjs";
21
- import { ZonedSplitDateTime as _ } from "./ZonedSplitDateTime.mjs";
22
- import { TimezoneDropDownList as N } from "./TimezoneDropDownList.mjs";
23
- import { SchedulerRecurrenceDialog as ge } from "./SchedulerRecurrenceDialog.mjs";
24
- import { RemoveRecurrenceConfirmDialog as pe } from "./RemoveRecurrenceConfirmDialog.mjs";
25
- import { getRecurrenceSummary as ke } from "../hooks/useRecurrenceSummary.mjs";
26
- function z(t) {
27
- return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !X(t);
8
+ import { defineComponent as te, createVNode as e, Fragment as E, inject as A, provide as re, watch as ie, isVNode as ne } from "vue";
9
+ import { timezoneNames as oe, MS_PER_DAY as se } from "@progress/kendo-date-math";
10
+ import { parseRule as le } from "@progress/kendo-recurrence";
11
+ import { Label as g } from "@progress/kendo-vue-labels";
12
+ import { provideLocalizationService as L, provideIntlService as ae } from "@progress/kendo-vue-intl";
13
+ import { FormElement as ue, FieldWrapper as p, Field as u } from "@progress/kendo-vue-form";
14
+ import { TextArea as de, Switch as ce, TextBox as me } from "@progress/kendo-vue-inputs";
15
+ import { getDefaultSlots as he, SvgIcon as T, guid as fe } from "@progress/kendo-vue-common";
16
+ import { rightDoubleQuotesIcon as ge, clockIcon as pe, globeIcon as I, arrowRotateCwIcon as Te, commentIcon as ke } from "@progress/kendo-svg-icons";
17
+ import { Button as h } from "@progress/kendo-vue-buttons";
18
+ import { Dialog as Re, DialogActionsBar as Se } from "@progress/kendo-vue-dialogs";
19
+ import { editorValidationRequired as x, messages as n, editorEventAllDay as j, editorEventTitle as k, editorEventStart as R, editorDateConnectorTo as S, editorEventEnd as z, editorStartTimeAriaLabel as O, editorDateConnectorFrom as B, editorSetTimezoneTitle as G, editorTimezoneButton as M, editorEventStartTimeZone as V, editorResetTimezoneAriaLabel as $, editorResetTimezoneTitle as q, editorEndTimeAriaLabel as _, editorEventEndTimeZone as N, editorEventDescription as v, resetTimezoneDialogTitle as P, resetTimezoneConfirmation as Z, resetTimezoneNo as K, resetTimezoneYes as W, editorRecurrenceEdit as ze, editorRecurrenceMakeRecurring as ve } from "../messages/main.mjs";
20
+ import { RecurrenceEditor as De } from "../recurrence/RecurrenceEditor.mjs";
21
+ import { ResourceEditor as Fe } from "./ResourceEditor.mjs";
22
+ import { ZonedSplitDateTime as Y, readDateAsLocal as w, dayValue as Q, readDateWithTimezone as ye } from "./ZonedSplitDateTime.mjs";
23
+ import { TimezoneDropDownList as H } from "./TimezoneDropDownList.mjs";
24
+ import { SchedulerRecurrenceDialog as be } from "./SchedulerRecurrenceDialog.mjs";
25
+ import { RemoveRecurrenceConfirmDialog as Ee } from "./RemoveRecurrenceConfirmDialog.mjs";
26
+ import { renderRecurrenceSummary as Le, getRecurrenceSummary as we } from "../hooks/useRecurrenceSummary.mjs";
27
+ function D(t) {
28
+ return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !ne(t);
28
29
  }
29
- const Oe = /* @__PURE__ */ U({
30
+ const Qe = /* @__PURE__ */ te({
30
31
  name: "KendoSchedulerFormEditor",
31
32
  props: {
32
33
  as: [String, Function, Object],
@@ -35,31 +36,31 @@ const Oe = /* @__PURE__ */ U({
35
36
  titleEditor: {
36
37
  type: [String, Function, Object],
37
38
  default: function() {
38
- return oe;
39
+ return me;
39
40
  }
40
41
  },
41
42
  startEditor: {
42
43
  type: [String, Function, Object],
43
44
  default: function() {
44
- return _;
45
+ return Y;
45
46
  }
46
47
  },
47
48
  startTimezoneEditor: {
48
49
  type: [String, Function, Object],
49
50
  default: function() {
50
- return N;
51
+ return H;
51
52
  }
52
53
  },
53
54
  endEditor: {
54
55
  type: [String, Function, Object],
55
56
  default: function() {
56
- return _;
57
+ return Y;
57
58
  }
58
59
  },
59
60
  endTimezoneEditor: {
60
61
  type: [String, Function, Object],
61
62
  default: function() {
62
- return N;
63
+ return H;
63
64
  }
64
65
  },
65
66
  allDayLabel: {
@@ -71,25 +72,25 @@ const Oe = /* @__PURE__ */ U({
71
72
  allDayEditor: {
72
73
  type: [String, Function, Object],
73
74
  default: function() {
74
- return ne;
75
+ return ce;
75
76
  }
76
77
  },
77
78
  recurrenceEditor: {
78
79
  type: [String, Function, Object],
79
80
  default: function() {
80
- return he;
81
+ return De;
81
82
  }
82
83
  },
83
84
  descriptionEditor: {
84
85
  type: [String, Function, Object],
85
86
  default: function() {
86
- return re;
87
+ return de;
87
88
  }
88
89
  },
89
90
  resourceEditor: {
90
91
  type: [String, Function, Object],
91
92
  default: function() {
92
- return fe;
93
+ return Fe;
93
94
  }
94
95
  },
95
96
  recurrenceButtonTextTemplate: [Object, Function],
@@ -113,19 +114,55 @@ const Oe = /* @__PURE__ */ U({
113
114
  kendoForm: {
114
115
  default: {}
115
116
  },
117
+ kendoIntlService: {
118
+ default: null
119
+ },
116
120
  kendoLocalizationService: {
117
121
  default: null
118
122
  }
119
123
  },
120
124
  data() {
121
- const t = this.kendoForm, n = this.ks;
125
+ const t = this.kendoForm, i = this.ks;
122
126
  return {
123
- showTimezones: !!t.valueGetter(n.fields.startTimezone),
127
+ showTimezones: !!t.valueGetter(i.fields.startTimezone),
124
128
  showTimezoneResetDialog: !1,
125
129
  showRecurrenceDialog: !1,
126
130
  showRemoveRecurrenceDialog: !1
127
131
  };
128
132
  },
133
+ setup() {
134
+ const t = A("ks"), i = A("kendoForm"), c = fe();
135
+ let l = null, d;
136
+ re("schedulerEndAdjustment", (o) => (d = o, () => {
137
+ d === o && (d = void 0);
138
+ }));
139
+ const r = () => {
140
+ const o = i.valueGetter(t.fields.start), a = i.valueGetter(t.fields.end);
141
+ o instanceof Date && a instanceof Date && Number.isFinite(o.getTime()) && Number.isFinite(a.getTime()) && a.getTime() >= o.getTime() && (l = {
142
+ start: new Date(o),
143
+ end: new Date(a)
144
+ });
145
+ }, f = () => {
146
+ const o = i.valueGetter(t.fields.start);
147
+ if (!l || !(o instanceof Date) || !Number.isFinite(o.getTime()))
148
+ return;
149
+ let a = new Date(o.getTime() + l.end.getTime() - l.start.getTime());
150
+ if (i.valueGetter(t.fields.isAllDay)) {
151
+ const F = w(l.start, t.timezone), y = w(o, t.timezone), m = new Date(w(l.end, t.timezone));
152
+ m.setDate(m.getDate() + Math.round((Q(y) - Q(F)) / se)), a = ye(m, t.timezone);
153
+ }
154
+ i.onChange(t.fields.end, {
155
+ value: d ? d(a) : a
156
+ }), r();
157
+ };
158
+ return r(), ie([() => i.valueGetter(t.fields.start), () => i.valueGetter(t.fields.end)], r, {
159
+ flush: "post"
160
+ }), {
161
+ handleStartChange: f,
162
+ updatePreviousRange: r,
163
+ recurrenceSummaryId: c
164
+ };
165
+ },
129
166
  computed: {
130
167
  isAllDay() {
131
168
  return !!this.kendoForm.valueGetter(this.ks.fields.isAllDay);
@@ -149,43 +186,54 @@ const Oe = /* @__PURE__ */ U({
149
186
  return !this.isEditingOccurrence;
150
187
  },
151
188
  recurrenceButtonText() {
152
- const t = te(this), n = b(this), s = (c, i) => n.toLanguageString(c, i), d = n.toLanguageString(G, r[G]);
153
- return this.recurrenceRule && ke(this.recurrenceRule, this.start, t, s) || d;
189
+ const t = L(this), i = this.recurrenceRule ? ze : ve;
190
+ return t.toLanguageString(i, n[i]);
191
+ },
192
+ recurrenceSummaryText() {
193
+ if (!this.recurrenceRule)
194
+ return "";
195
+ const t = ae(this), i = L(this);
196
+ return we(this.recurrenceRule, this.start, t, (c, l) => i.toLanguageString(c, l));
197
+ },
198
+ parsedRecurrenceRule() {
199
+ return this.recurrenceRule ? le({
200
+ recurrenceRule: this.recurrenceRule
201
+ }) : null;
154
202
  }
155
203
  },
156
204
  render() {
157
- let t, n, s;
158
- const d = le(this), c = ee(), i = b(this), v = this.$props.startEditor, F = this.$props.endEditor, Z = this.$props.startTimezoneEditor, K = this.$props.endTimezoneEditor, Q = this.$props.allDayEditor, W = this.$props.allDayLabel, Y = this.$props.descriptionEditor, H = this.$props.resourceEditor, J = this.$props.titleEditor, P = this.startTimezone;
159
- this.requiredValidationMessage = i.toLanguageString(E, r[E]);
160
- const R = i.toLanguageString(L, r[L]);
161
- return e(S, null, [e(ie, {
205
+ let t, i, c;
206
+ const l = he(this), d = oe(), r = L(this), f = this.$props.startEditor, o = this.$props.endEditor, a = this.$props.startTimezoneEditor, F = this.$props.endTimezoneEditor, y = this.$props.allDayEditor, m = this.$props.allDayLabel, J = this.$props.descriptionEditor, U = this.$props.resourceEditor, X = this.$props.titleEditor, ee = this.startTimezone, C = !!(this.recurrenceRule && (this.recurrenceSummaryTemplate || this.recurrenceSummaryText));
207
+ this.requiredValidationMessage = r.toLanguageString(x, n[x]);
208
+ const b = r.toLanguageString(j, n[j]);
209
+ return e(E, null, [e(ue, {
162
210
  horizontal: !0,
163
211
  class: "k-scheduler-edit-form"
164
212
  }, {
165
- default: () => [e(m, null, {
166
- default: () => [e(u, {
213
+ default: () => [e(p, null, {
214
+ default: () => [e(g, {
167
215
  class: "k-form-label"
168
216
  }, {
169
- default: () => [e(h, {
170
- icon: se,
217
+ default: () => [e(T, {
218
+ icon: ge,
171
219
  size: "xlarge"
172
220
  }, null)]
173
221
  }), e("div", {
174
222
  class: "k-form-field-wrap"
175
- }, [e(l, {
223
+ }, [e(u, {
176
224
  id: "k-scheduler-editor-title",
177
225
  name: this.ks.fields.title,
178
226
  field: this.ks.fields.title,
179
- component: J,
180
- placeholder: i.toLanguageString(f, r[f]),
181
- "aria-label": i.toLanguageString(f, r[f])
227
+ component: X,
228
+ placeholder: r.toLanguageString(k, n[k]),
229
+ "aria-label": r.toLanguageString(k, n[k])
182
230
  }, null)])]
183
- }), e(m, null, {
184
- default: () => [e(u, {
231
+ }), e(p, null, {
232
+ default: () => [e(g, {
185
233
  class: "k-form-label"
186
234
  }, {
187
- default: () => [e(h, {
188
- icon: ae,
235
+ default: () => [e(T, {
236
+ icon: pe,
189
237
  size: "xlarge"
190
238
  }, null)]
191
239
  }), e("div", {
@@ -194,138 +242,143 @@ const Oe = /* @__PURE__ */ U({
194
242
  class: "k-scheduler-datetime-section"
195
243
  }, [e("div", {
196
244
  class: "k-scheduler-edit-form-row"
197
- }, [e(l, {
245
+ }, [e(u, {
198
246
  name: this.ks.fields.isAllDay,
199
- component: Q,
247
+ component: y,
200
248
  onLabel: "",
201
249
  offLabel: ""
202
- }, null), e(W, null, z(R) ? R : {
203
- default: () => [R]
250
+ }, null), e(m, null, D(b) ? b : {
251
+ default: () => [b]
204
252
  })]), e("div", {
205
253
  class: "k-scheduler-datetime-grid"
206
254
  }, [this.isAllDay ? e("div", {
207
255
  class: "k-scheduler-edit-form-row"
208
- }, [e(l, {
256
+ }, [e(u, {
209
257
  name: this.ks.fields.start,
210
- component: v,
258
+ component: f,
259
+ onChange: this.handleStartChange,
211
260
  isAllDay: this.isAllDay,
212
261
  fieldError: this.kendoForm.errors[this.ks.fields.start],
213
- ariaLabel: i.toLanguageString(g, r[g]),
262
+ ariaLabel: r.toLanguageString(R, n[R]),
214
263
  timezone: this.ks.timezone
215
264
  }, null), e("span", {
216
265
  class: "k-scheduler-datetime-label"
217
- }, [i.toLanguageString(p, r[p])]), e(l, {
266
+ }, [r.toLanguageString(S, n[S])]), e(u, {
218
267
  name: this.ks.fields.end,
219
- component: F,
268
+ component: o,
269
+ onChange: this.updatePreviousRange,
220
270
  isAllDay: this.isAllDay,
221
271
  fieldError: this.kendoForm.errors[this.ks.fields.end],
222
- ariaLabel: i.toLanguageString(k, r[k]),
272
+ ariaLabel: r.toLanguageString(z, n[z]),
223
273
  timezone: this.ks.timezone
224
- }, null)]) : e(S, null, [e("div", {
274
+ }, null)]) : e(E, null, [e("div", {
225
275
  class: "k-scheduler-edit-form-row"
226
- }, [e(l, {
276
+ }, [e(u, {
227
277
  name: this.ks.fields.start,
228
- component: v,
278
+ component: f,
279
+ onChange: this.handleStartChange,
229
280
  isAllDay: this.isAllDay,
230
- connector: i.toLanguageString(y, r[y]),
281
+ connector: r.toLanguageString(B, n[B]),
231
282
  fieldError: this.kendoForm.errors[this.ks.fields.start],
232
- ariaLabel: i.toLanguageString(g, r[g]),
233
- timeAriaLabel: i.toLanguageString(w, r[w]),
283
+ ariaLabel: r.toLanguageString(R, n[R]),
284
+ timeAriaLabel: r.toLanguageString(O, n[O]),
234
285
  timezone: this.ks.timezone
235
- }, null)]), !this.showTimezones && e(a, {
286
+ }, null)]), !this.showTimezones && e(h, {
236
287
  class: "k-col-span-2",
237
288
  fillMode: "flat",
238
289
  themeColor: "primary",
239
- title: i.toLanguageString(C, r[C]),
290
+ title: r.toLanguageString(G, n[G]),
240
291
  onClick: this.handleTimezoneToggle,
241
- svgIcon: D
242
- }, z(t = i.toLanguageString(A, r[A])) ? t : {
292
+ svgIcon: I
293
+ }, D(t = r.toLanguageString(M, n[M])) ? t : {
243
294
  default: () => [t]
244
- }), this.showTimezones && e(S, null, [e(l, {
295
+ }), this.showTimezones && e(E, null, [e(u, {
245
296
  name: this.ks.fields.startTimezone,
246
- component: Z,
247
- dataItems: c,
248
- value: P,
249
- ariaLabel: i.toLanguageString(I, r[I])
250
- }, null), e(a, {
251
- title: i.toLanguageString(B, r[B]),
252
- "aria-label": i.toLanguageString(x, r[x]),
297
+ component: a,
298
+ dataItems: d,
299
+ value: ee,
300
+ ariaLabel: r.toLanguageString(V, n[V])
301
+ }, null), e(h, {
302
+ title: r.toLanguageString(q, n[q]),
303
+ "aria-label": r.toLanguageString($, n[$]),
253
304
  onClick: this.handleTimezoneToggle,
254
- svgIcon: D,
305
+ svgIcon: I,
255
306
  fillMode: "flat",
256
307
  themeColor: "primary"
257
308
  }, null)]), e("div", {
258
309
  class: "k-scheduler-edit-form-row"
259
- }, [e(l, {
310
+ }, [e(u, {
260
311
  name: this.ks.fields.end,
261
- component: F,
312
+ component: o,
313
+ onChange: this.updatePreviousRange,
262
314
  isAllDay: this.isAllDay,
263
- connector: i.toLanguageString(p, r[p]),
315
+ connector: r.toLanguageString(S, n[S]),
264
316
  fieldError: this.kendoForm.errors[this.ks.fields.end],
265
- ariaLabel: i.toLanguageString(k, r[k]),
266
- timeAriaLabel: i.toLanguageString(j, r[j]),
317
+ ariaLabel: r.toLanguageString(z, n[z]),
318
+ timeAriaLabel: r.toLanguageString(_, n[_]),
267
319
  timezone: this.ks.timezone
268
- }, null)]), this.showTimezones && e(l, {
320
+ }, null)]), this.showTimezones && e(u, {
269
321
  name: this.ks.fields.endTimezone,
270
- component: K,
271
- dataItems: c,
322
+ component: F,
323
+ dataItems: d,
272
324
  value: this.kendoForm.valueGetter(this.ks.fields.endTimezone) || "",
273
- ariaLabel: i.toLanguageString(O, r[O])
325
+ ariaLabel: r.toLanguageString(N, n[N])
274
326
  }, null)])]), this.showRecurrenceButton && e("div", {
275
327
  class: "k-scheduler-edit-form-row"
276
- }, [e(a, {
328
+ }, [e(h, {
277
329
  class: "k-scheduler-recurrence-button",
278
330
  type: "button",
279
331
  fillMode: "flat",
280
332
  themeColor: "primary",
281
- svgIcon: de,
282
- onClick: this.handleMakeRecurringClick
333
+ svgIcon: Te,
334
+ onClick: this.handleMakeRecurringClick,
335
+ "aria-describedby": C ? this.recurrenceSummaryId : void 0
283
336
  }, {
284
- default: () => [this.recurrenceButtonTextTemplate ? this.renderRecurrenceButtonTextTemplate() : this.recurrenceButtonText]
285
- })])])])]
286
- }), e(m, null, {
287
- default: () => [e(u, {
337
+ default: () => [this.recurrenceButtonText]
338
+ }), C && Le(this.recurrenceSummaryText, this.renderRecurrenceSummaryTemplate(), this.recurrenceSummaryId)])])])]
339
+ }), e(p, null, {
340
+ default: () => [e(g, {
288
341
  class: "k-form-label"
289
342
  }, {
290
- default: () => [e(h, {
291
- icon: ce,
343
+ default: () => [e(T, {
344
+ icon: ke,
292
345
  size: "xlarge"
293
346
  }, null)]
294
347
  }), e("div", {
295
348
  class: "k-form-field-wrap"
296
- }, [e(l, {
297
- component: Y,
349
+ }, [e(u, {
350
+ component: J,
298
351
  name: this.ks.fields.description,
299
352
  id: "k-event-description",
300
353
  resizable: "vertical",
301
- placeholder: i.toLanguageString(T, r[T]),
302
- "aria-label": i.toLanguageString(T, r[T])
354
+ placeholder: r.toLanguageString(v, n[v]),
355
+ "aria-label": r.toLanguageString(v, n[v])
303
356
  }, null)])]
304
- }), (this.ks.props.resources || []).map((o) => e(m, {
305
- key: o.field
357
+ }), (this.ks.props.resources || []).map((s) => e(p, {
358
+ key: s.field
306
359
  }, {
307
- default: () => [o.svgIcon && e(u, {
360
+ default: () => [s.svgIcon && e(g, {
308
361
  class: "k-form-label"
309
362
  }, {
310
- default: () => [e(h, {
311
- icon: o.svgIcon,
363
+ default: () => [e(T, {
364
+ icon: s.svgIcon,
312
365
  size: "xlarge"
313
366
  }, null)]
314
367
  }), e("div", {
315
368
  class: "k-form-field-wrap"
316
- }, [e(l, {
317
- name: o.field,
318
- component: H,
319
- resource: o,
320
- multiple: o.multiple,
321
- dataItems: o.data,
322
- textField: o.textField,
323
- valueField: o.valueField,
324
- colorField: o.colorField,
325
- ariaLabel: o.name || o.field
369
+ }, [e(u, {
370
+ name: s.field,
371
+ component: U,
372
+ resource: s,
373
+ multiple: s.multiple,
374
+ dataItems: s.data,
375
+ textField: s.textField,
376
+ valueField: s.valueField,
377
+ colorField: s.colorField,
378
+ ariaLabel: s.name || s.field
326
379
  }, null)])]
327
- })), d]
328
- }), this.showRecurrenceDialog && e(ge, {
380
+ })), l]
381
+ }), this.showRecurrenceDialog && e(be, {
329
382
  value: this.recurrenceRule,
330
383
  start: this.start,
331
384
  timezone: this.ks.timezone || "",
@@ -334,33 +387,35 @@ const Oe = /* @__PURE__ */ U({
334
387
  onRemoveRecurrence: this.handleRemoveRecurrenceClick,
335
388
  recurrenceSummaryTemplate: this.recurrenceSummaryTemplate,
336
389
  recurrenceEditor: this.recurrenceEditor
337
- }, null), this.showRemoveRecurrenceDialog && e(pe, {
390
+ }, null), this.showRemoveRecurrenceDialog && e(Ee, {
338
391
  onConfirm: this.handleRemoveRecurrenceConfirm,
339
392
  onCancel: this.handleRemoveRecurrenceCancel
340
- }, null), this.showTimezoneResetDialog && e(ue, {
341
- title: i.toLanguageString(M, r[M]),
393
+ }, null), this.showTimezoneResetDialog && e(Re, {
394
+ title: r.toLanguageString(P, n[P]),
342
395
  onClose: this.handleTimezoneResetClose
343
396
  }, {
344
- default: () => [i.toLanguageString(V, r[V]), e(me, null, {
345
- default: () => [e(a, {
397
+ default: () => [r.toLanguageString(Z, n[Z]), e(Se, null, {
398
+ default: () => [e(h, {
346
399
  onClick: this.handleTimezoneResetClose
347
- }, z(n = i.toLanguageString($, r[$])) ? n : {
348
- default: () => [n]
349
- }), e(a, {
400
+ }, D(i = r.toLanguageString(K, n[K])) ? i : {
401
+ default: () => [i]
402
+ }), e(h, {
350
403
  themeColor: "primary",
351
404
  onClick: this.handleTimezoneResetConfirm
352
- }, z(s = i.toLanguageString(q, r[q])) ? s : {
353
- default: () => [s]
405
+ }, D(c = r.toLanguageString(W, n[W])) ? c : {
406
+ default: () => [c]
354
407
  })]
355
408
  })]
356
409
  })]);
357
410
  },
358
411
  methods: {
359
- renderRecurrenceButtonTextTemplate() {
360
- const t = this.recurrenceButtonTextTemplate;
361
- return t ? e(t, {
362
- recurrenceRule: this.recurrenceRule
363
- }, null) : null;
412
+ renderRecurrenceSummaryTemplate() {
413
+ const t = this.recurrenceSummaryTemplate;
414
+ return !t || !this.recurrenceRule ? null : e(t, {
415
+ recurrenceRule: this.recurrenceRule,
416
+ text: this.recurrenceSummaryText,
417
+ parsedRule: this.parsedRecurrenceRule
418
+ }, null);
364
419
  },
365
420
  handleTimezoneToggle(t) {
366
421
  t.preventDefault(), this.showTimezones ? this.showTimezoneResetDialog = !0 : (this.updateFormField(this.ks.fields.startTimezone, null), this.updateFormField(this.ks.fields.endTimezone, null), this.showTimezones = !0);
@@ -389,29 +444,29 @@ const Oe = /* @__PURE__ */ U({
389
444
  handleRemoveRecurrenceCancel() {
390
445
  this.showRemoveRecurrenceDialog = !1;
391
446
  },
392
- updateFormField(t, n) {
447
+ updateFormField(t, i) {
393
448
  this.kendoForm.onChange(t, {
394
- value: n
449
+ value: i
395
450
  }), this.$emit("change", t, {
396
- value: n
451
+ value: i
397
452
  });
398
453
  },
399
454
  requiredValidator(t) {
400
455
  return t ? void 0 : this.requiredValidationMessage;
401
456
  },
402
- startTimezoneValidator(t, n) {
403
- return this.showTimezones ? this.requiredValidator(n(this.ks.fields.startTimezone)) : void 0;
457
+ startTimezoneValidator(t, i) {
458
+ return this.showTimezones ? this.requiredValidator(i(this.ks.fields.startTimezone)) : void 0;
404
459
  },
405
- endTimezoneValidator(t, n) {
406
- return this.showTimezones ? this.requiredValidator(n(this.ks.fields.endTimezone)) || this.requiredValidator(n(this.ks.fields.startTimezone)) : void 0;
460
+ endTimezoneValidator(t, i) {
461
+ return this.showTimezones ? this.requiredValidator(i(this.ks.fields.endTimezone)) || this.requiredValidator(i(this.ks.fields.startTimezone)) : void 0;
407
462
  }
408
463
  },
409
464
  watch: {
410
- startTimezone(t, n) {
411
- this.showTimezones && t && t !== n && this.updateFormField(this.ks.fields.endTimezone, t);
465
+ startTimezone(t, i) {
466
+ this.showTimezones && t && t !== i && this.updateFormField(this.ks.fields.endTimezone, t);
412
467
  }
413
468
  }
414
469
  });
415
470
  export {
416
- Oe as SchedulerFormEditor
471
+ Qe as SchedulerFormEditor
417
472
  };
@@ -11,7 +11,7 @@ import { DropDownListChangeEvent } from '@progress/kendo-vue-dropdowns';
11
11
  import { DatePickerChangeEvent } from '@progress/kendo-vue-dateinputs';
12
12
  import { ZonedDate } from '@progress/kendo-date-math';
13
13
  import { RecurrenceRule } from '@progress/kendo-recurrence';
14
- import { PropType } from 'vue';
14
+ import { PropType, VNode } from 'vue';
15
15
  import { Frequency } from '../recurrence/types/Frequency';
16
16
  import { WeekDayEntity } from '../recurrence/types/WeekDayEntity';
17
17
  import { MonthEntity } from '../recurrence/types/MonthEntity';
@@ -100,7 +100,7 @@ declare const SchedulerRecurrenceDialog: import('vue').DefineComponent<import('v
100
100
  parsedCurrentRule(): any;
101
101
  }, {
102
102
  localizeMessage(baseMassage: string, removePrepend?: boolean): string;
103
- renderRecurrenceSummaryTemplate(): import("vue/jsx-runtime").JSX.Element;
103
+ renderRecurrenceSummaryTemplate(): VNode | null;
104
104
  updateRrule(newRrule: RecurrenceRule): void;
105
105
  handleFrequencyChange(newFreq: string): void;
106
106
  handleIntervalChange(event: NumericTextBoxChangeEvent): void;