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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,29 +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 ee, createVNode as e, Fragment as b, inject as w, provide as te, watch as re, isVNode as ie } from "vue";
9
- import { timezoneNames as ne, MS_PER_DAY as oe } from "@progress/kendo-date-math";
10
- import { parseRule as se } from "@progress/kendo-recurrence";
11
- import { Label as f } from "@progress/kendo-vue-labels";
12
- import { provideLocalizationService as y, provideIntlService as le } from "@progress/kendo-vue-intl";
13
- import { FormElement as ae, FieldWrapper as g, Field as u } from "@progress/kendo-vue-form";
14
- import { TextArea as ue, Switch as de, TextBox as ce } from "@progress/kendo-vue-inputs";
15
- import { getDefaultSlots as me, SvgIcon as p } from "@progress/kendo-vue-common";
16
- import { rightDoubleQuotesIcon as he, clockIcon as fe, globeIcon as C, arrowRotateCwIcon as ge, commentIcon as pe } from "@progress/kendo-svg-icons";
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
17
  import { Button as h } from "@progress/kendo-vue-buttons";
18
- import { Dialog as Te, DialogActionsBar as ke } from "@progress/kendo-vue-dialogs";
19
- import { editorValidationRequired as A, messages as n, editorEventAllDay as I, editorEventTitle as T, editorEventStart as k, editorDateConnectorTo as R, editorEventEnd as z, editorStartTimeAriaLabel as x, editorDateConnectorFrom as j, editorSetTimezoneTitle as O, editorTimezoneButton as B, editorEventStartTimeZone as G, editorResetTimezoneAriaLabel as M, editorResetTimezoneTitle as V, editorEndTimeAriaLabel as $, editorEventEndTimeZone as q, editorEventDescription as S, resetTimezoneDialogTitle as _, resetTimezoneConfirmation as N, resetTimezoneNo as P, resetTimezoneYes as Z, editorRecurrenceEdit as Re, editorRecurrenceMakeRecurring as ze } from "../messages/main.mjs";
20
- import { RecurrenceEditor as Se } from "../recurrence/RecurrenceEditor.mjs";
21
- import { ResourceEditor as ve } from "./ResourceEditor.mjs";
22
- import { ZonedSplitDateTime as K, readDateAsLocal as L, dayValue as W, readDateWithTimezone as De } from "./ZonedSplitDateTime.mjs";
23
- import { TimezoneDropDownList as Y } from "./TimezoneDropDownList.mjs";
24
- import { SchedulerRecurrenceDialog as Fe } from "./SchedulerRecurrenceDialog.mjs";
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
25
  import { RemoveRecurrenceConfirmDialog as Ee } from "./RemoveRecurrenceConfirmDialog.mjs";
26
- import { renderRecurrenceSummary as be, getRecurrenceSummary as ye } from "../hooks/useRecurrenceSummary.mjs";
27
- function v(t) {
28
- return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !ie(t);
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);
29
29
  }
30
- const We = /* @__PURE__ */ ee({
30
+ const Qe = /* @__PURE__ */ te({
31
31
  name: "KendoSchedulerFormEditor",
32
32
  props: {
33
33
  as: [String, Function, Object],
@@ -36,31 +36,31 @@ const We = /* @__PURE__ */ ee({
36
36
  titleEditor: {
37
37
  type: [String, Function, Object],
38
38
  default: function() {
39
- return ce;
39
+ return me;
40
40
  }
41
41
  },
42
42
  startEditor: {
43
43
  type: [String, Function, Object],
44
44
  default: function() {
45
- return K;
45
+ return Y;
46
46
  }
47
47
  },
48
48
  startTimezoneEditor: {
49
49
  type: [String, Function, Object],
50
50
  default: function() {
51
- return Y;
51
+ return H;
52
52
  }
53
53
  },
54
54
  endEditor: {
55
55
  type: [String, Function, Object],
56
56
  default: function() {
57
- return K;
57
+ return Y;
58
58
  }
59
59
  },
60
60
  endTimezoneEditor: {
61
61
  type: [String, Function, Object],
62
62
  default: function() {
63
- return Y;
63
+ return H;
64
64
  }
65
65
  },
66
66
  allDayLabel: {
@@ -72,25 +72,25 @@ const We = /* @__PURE__ */ ee({
72
72
  allDayEditor: {
73
73
  type: [String, Function, Object],
74
74
  default: function() {
75
- return de;
75
+ return ce;
76
76
  }
77
77
  },
78
78
  recurrenceEditor: {
79
79
  type: [String, Function, Object],
80
80
  default: function() {
81
- return Se;
81
+ return De;
82
82
  }
83
83
  },
84
84
  descriptionEditor: {
85
85
  type: [String, Function, Object],
86
86
  default: function() {
87
- return ue;
87
+ return de;
88
88
  }
89
89
  },
90
90
  resourceEditor: {
91
91
  type: [String, Function, Object],
92
92
  default: function() {
93
- return ve;
93
+ return Fe;
94
94
  }
95
95
  },
96
96
  recurrenceButtonTextTemplate: [Object, Function],
@@ -122,44 +122,45 @@ const We = /* @__PURE__ */ ee({
122
122
  }
123
123
  },
124
124
  data() {
125
- const t = this.kendoForm, r = this.ks;
125
+ const t = this.kendoForm, i = this.ks;
126
126
  return {
127
- showTimezones: !!t.valueGetter(r.fields.startTimezone),
127
+ showTimezones: !!t.valueGetter(i.fields.startTimezone),
128
128
  showTimezoneResetDialog: !1,
129
129
  showRecurrenceDialog: !1,
130
130
  showRemoveRecurrenceDialog: !1
131
131
  };
132
132
  },
133
133
  setup() {
134
- const t = w("ks"), r = w("kendoForm");
135
- let s = null, d;
136
- te("schedulerEndAdjustment", (o) => (d = o, () => {
134
+ const t = A("ks"), i = A("kendoForm"), c = fe();
135
+ let l = null, d;
136
+ re("schedulerEndAdjustment", (o) => (d = o, () => {
137
137
  d === o && (d = void 0);
138
138
  }));
139
- const c = () => {
140
- const o = r.valueGetter(t.fields.start), a = r.valueGetter(t.fields.end);
141
- o instanceof Date && a instanceof Date && Number.isFinite(o.getTime()) && Number.isFinite(a.getTime()) && a.getTime() >= o.getTime() && (s = {
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
142
  start: new Date(o),
143
143
  end: new Date(a)
144
144
  });
145
- }, i = () => {
146
- const o = r.valueGetter(t.fields.start);
147
- if (!s || !(o instanceof Date) || !Number.isFinite(o.getTime()))
145
+ }, f = () => {
146
+ const o = i.valueGetter(t.fields.start);
147
+ if (!l || !(o instanceof Date) || !Number.isFinite(o.getTime()))
148
148
  return;
149
- let a = new Date(o.getTime() + s.end.getTime() - s.start.getTime());
150
- if (r.valueGetter(t.fields.isAllDay)) {
151
- const D = L(s.start, t.timezone), F = L(o, t.timezone), m = new Date(L(s.end, t.timezone));
152
- m.setDate(m.getDate() + Math.round((W(F) - W(D)) / oe)), a = De(m, t.timezone);
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
153
  }
154
- r.onChange(t.fields.end, {
154
+ i.onChange(t.fields.end, {
155
155
  value: d ? d(a) : a
156
- }), c();
156
+ }), r();
157
157
  };
158
- return c(), re([() => r.valueGetter(t.fields.start), () => r.valueGetter(t.fields.end)], c, {
158
+ return r(), ie([() => i.valueGetter(t.fields.start), () => i.valueGetter(t.fields.end)], r, {
159
159
  flush: "post"
160
160
  }), {
161
- handleStartChange: i,
162
- updatePreviousRange: c
161
+ handleStartChange: f,
162
+ updatePreviousRange: r,
163
+ recurrenceSummaryId: c
163
164
  };
164
165
  },
165
166
  computed: {
@@ -185,36 +186,36 @@ const We = /* @__PURE__ */ ee({
185
186
  return !this.isEditingOccurrence;
186
187
  },
187
188
  recurrenceButtonText() {
188
- const t = y(this), r = this.recurrenceRule ? Re : ze;
189
- return t.toLanguageString(r, n[r]);
189
+ const t = L(this), i = this.recurrenceRule ? ze : ve;
190
+ return t.toLanguageString(i, n[i]);
190
191
  },
191
192
  recurrenceSummaryText() {
192
193
  if (!this.recurrenceRule)
193
194
  return "";
194
- const t = le(this), r = y(this);
195
- return ye(this.recurrenceRule, this.start, t, (s, d) => r.toLanguageString(s, d));
195
+ const t = ae(this), i = L(this);
196
+ return we(this.recurrenceRule, this.start, t, (c, l) => i.toLanguageString(c, l));
196
197
  },
197
198
  parsedRecurrenceRule() {
198
- return this.recurrenceRule ? se({
199
+ return this.recurrenceRule ? le({
199
200
  recurrenceRule: this.recurrenceRule
200
201
  }) : null;
201
202
  }
202
203
  },
203
204
  render() {
204
- let t, r, s;
205
- const d = me(this), c = ne(), i = y(this), o = this.$props.startEditor, a = this.$props.endEditor, D = this.$props.startTimezoneEditor, F = this.$props.endTimezoneEditor, m = this.$props.allDayEditor, Q = this.$props.allDayLabel, H = this.$props.descriptionEditor, J = this.$props.resourceEditor, U = this.$props.titleEditor, X = this.startTimezone;
206
- this.requiredValidationMessage = i.toLanguageString(A, n[A]);
207
- const E = i.toLanguageString(I, n[I]);
208
- return e(b, null, [e(ae, {
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, {
209
210
  horizontal: !0,
210
211
  class: "k-scheduler-edit-form"
211
212
  }, {
212
- default: () => [e(g, null, {
213
- default: () => [e(f, {
213
+ default: () => [e(p, null, {
214
+ default: () => [e(g, {
214
215
  class: "k-form-label"
215
216
  }, {
216
- default: () => [e(p, {
217
- icon: he,
217
+ default: () => [e(T, {
218
+ icon: ge,
218
219
  size: "xlarge"
219
220
  }, null)]
220
221
  }), e("div", {
@@ -223,16 +224,16 @@ const We = /* @__PURE__ */ ee({
223
224
  id: "k-scheduler-editor-title",
224
225
  name: this.ks.fields.title,
225
226
  field: this.ks.fields.title,
226
- component: U,
227
- placeholder: i.toLanguageString(T, n[T]),
228
- "aria-label": i.toLanguageString(T, n[T])
227
+ component: X,
228
+ placeholder: r.toLanguageString(k, n[k]),
229
+ "aria-label": r.toLanguageString(k, n[k])
229
230
  }, null)])]
230
- }), e(g, null, {
231
- default: () => [e(f, {
231
+ }), e(p, null, {
232
+ default: () => [e(g, {
232
233
  class: "k-form-label"
233
234
  }, {
234
- default: () => [e(p, {
235
- icon: fe,
235
+ default: () => [e(T, {
236
+ icon: pe,
236
237
  size: "xlarge"
237
238
  }, null)]
238
239
  }), e("div", {
@@ -243,85 +244,85 @@ const We = /* @__PURE__ */ ee({
243
244
  class: "k-scheduler-edit-form-row"
244
245
  }, [e(u, {
245
246
  name: this.ks.fields.isAllDay,
246
- component: m,
247
+ component: y,
247
248
  onLabel: "",
248
249
  offLabel: ""
249
- }, null), e(Q, null, v(E) ? E : {
250
- default: () => [E]
250
+ }, null), e(m, null, D(b) ? b : {
251
+ default: () => [b]
251
252
  })]), e("div", {
252
253
  class: "k-scheduler-datetime-grid"
253
254
  }, [this.isAllDay ? e("div", {
254
255
  class: "k-scheduler-edit-form-row"
255
256
  }, [e(u, {
256
257
  name: this.ks.fields.start,
257
- component: o,
258
+ component: f,
258
259
  onChange: this.handleStartChange,
259
260
  isAllDay: this.isAllDay,
260
261
  fieldError: this.kendoForm.errors[this.ks.fields.start],
261
- ariaLabel: i.toLanguageString(k, n[k]),
262
+ ariaLabel: r.toLanguageString(R, n[R]),
262
263
  timezone: this.ks.timezone
263
264
  }, null), e("span", {
264
265
  class: "k-scheduler-datetime-label"
265
- }, [i.toLanguageString(R, n[R])]), e(u, {
266
+ }, [r.toLanguageString(S, n[S])]), e(u, {
266
267
  name: this.ks.fields.end,
267
- component: a,
268
+ component: o,
268
269
  onChange: this.updatePreviousRange,
269
270
  isAllDay: this.isAllDay,
270
271
  fieldError: this.kendoForm.errors[this.ks.fields.end],
271
- ariaLabel: i.toLanguageString(z, n[z]),
272
+ ariaLabel: r.toLanguageString(z, n[z]),
272
273
  timezone: this.ks.timezone
273
- }, null)]) : e(b, null, [e("div", {
274
+ }, null)]) : e(E, null, [e("div", {
274
275
  class: "k-scheduler-edit-form-row"
275
276
  }, [e(u, {
276
277
  name: this.ks.fields.start,
277
- component: o,
278
+ component: f,
278
279
  onChange: this.handleStartChange,
279
280
  isAllDay: this.isAllDay,
280
- connector: i.toLanguageString(j, n[j]),
281
+ connector: r.toLanguageString(B, n[B]),
281
282
  fieldError: this.kendoForm.errors[this.ks.fields.start],
282
- ariaLabel: i.toLanguageString(k, n[k]),
283
- timeAriaLabel: i.toLanguageString(x, n[x]),
283
+ ariaLabel: r.toLanguageString(R, n[R]),
284
+ timeAriaLabel: r.toLanguageString(O, n[O]),
284
285
  timezone: this.ks.timezone
285
286
  }, null)]), !this.showTimezones && e(h, {
286
287
  class: "k-col-span-2",
287
288
  fillMode: "flat",
288
289
  themeColor: "primary",
289
- title: i.toLanguageString(O, n[O]),
290
+ title: r.toLanguageString(G, n[G]),
290
291
  onClick: this.handleTimezoneToggle,
291
- svgIcon: C
292
- }, v(t = i.toLanguageString(B, n[B])) ? t : {
292
+ svgIcon: I
293
+ }, D(t = r.toLanguageString(M, n[M])) ? t : {
293
294
  default: () => [t]
294
- }), this.showTimezones && e(b, null, [e(u, {
295
+ }), this.showTimezones && e(E, null, [e(u, {
295
296
  name: this.ks.fields.startTimezone,
296
- component: D,
297
- dataItems: c,
298
- value: X,
299
- ariaLabel: i.toLanguageString(G, n[G])
297
+ component: a,
298
+ dataItems: d,
299
+ value: ee,
300
+ ariaLabel: r.toLanguageString(V, n[V])
300
301
  }, null), e(h, {
301
- title: i.toLanguageString(V, n[V]),
302
- "aria-label": i.toLanguageString(M, n[M]),
302
+ title: r.toLanguageString(q, n[q]),
303
+ "aria-label": r.toLanguageString($, n[$]),
303
304
  onClick: this.handleTimezoneToggle,
304
- svgIcon: C,
305
+ svgIcon: I,
305
306
  fillMode: "flat",
306
307
  themeColor: "primary"
307
308
  }, null)]), e("div", {
308
309
  class: "k-scheduler-edit-form-row"
309
310
  }, [e(u, {
310
311
  name: this.ks.fields.end,
311
- component: a,
312
+ component: o,
312
313
  onChange: this.updatePreviousRange,
313
314
  isAllDay: this.isAllDay,
314
- connector: i.toLanguageString(R, n[R]),
315
+ connector: r.toLanguageString(S, n[S]),
315
316
  fieldError: this.kendoForm.errors[this.ks.fields.end],
316
- ariaLabel: i.toLanguageString(z, n[z]),
317
- timeAriaLabel: i.toLanguageString($, n[$]),
317
+ ariaLabel: r.toLanguageString(z, n[z]),
318
+ timeAriaLabel: r.toLanguageString(_, n[_]),
318
319
  timezone: this.ks.timezone
319
320
  }, null)]), this.showTimezones && e(u, {
320
321
  name: this.ks.fields.endTimezone,
321
322
  component: F,
322
- dataItems: c,
323
+ dataItems: d,
323
324
  value: this.kendoForm.valueGetter(this.ks.fields.endTimezone) || "",
324
- ariaLabel: i.toLanguageString(q, n[q])
325
+ ariaLabel: r.toLanguageString(N, n[N])
325
326
  }, null)])]), this.showRecurrenceButton && e("div", {
326
327
  class: "k-scheduler-edit-form-row"
327
328
  }, [e(h, {
@@ -329,54 +330,55 @@ const We = /* @__PURE__ */ ee({
329
330
  type: "button",
330
331
  fillMode: "flat",
331
332
  themeColor: "primary",
332
- svgIcon: ge,
333
- onClick: this.handleMakeRecurringClick
333
+ svgIcon: Te,
334
+ onClick: this.handleMakeRecurringClick,
335
+ "aria-describedby": C ? this.recurrenceSummaryId : void 0
334
336
  }, {
335
337
  default: () => [this.recurrenceButtonText]
336
- }), this.recurrenceRule && (this.recurrenceSummaryTemplate || this.recurrenceSummaryText) && be(this.recurrenceSummaryText, this.renderRecurrenceSummaryTemplate())])])])]
337
- }), e(g, null, {
338
- default: () => [e(f, {
338
+ }), C && Le(this.recurrenceSummaryText, this.renderRecurrenceSummaryTemplate(), this.recurrenceSummaryId)])])])]
339
+ }), e(p, null, {
340
+ default: () => [e(g, {
339
341
  class: "k-form-label"
340
342
  }, {
341
- default: () => [e(p, {
342
- icon: pe,
343
+ default: () => [e(T, {
344
+ icon: ke,
343
345
  size: "xlarge"
344
346
  }, null)]
345
347
  }), e("div", {
346
348
  class: "k-form-field-wrap"
347
349
  }, [e(u, {
348
- component: H,
350
+ component: J,
349
351
  name: this.ks.fields.description,
350
352
  id: "k-event-description",
351
353
  resizable: "vertical",
352
- placeholder: i.toLanguageString(S, n[S]),
353
- "aria-label": i.toLanguageString(S, n[S])
354
+ placeholder: r.toLanguageString(v, n[v]),
355
+ "aria-label": r.toLanguageString(v, n[v])
354
356
  }, null)])]
355
- }), (this.ks.props.resources || []).map((l) => e(g, {
356
- key: l.field
357
+ }), (this.ks.props.resources || []).map((s) => e(p, {
358
+ key: s.field
357
359
  }, {
358
- default: () => [l.svgIcon && e(f, {
360
+ default: () => [s.svgIcon && e(g, {
359
361
  class: "k-form-label"
360
362
  }, {
361
- default: () => [e(p, {
362
- icon: l.svgIcon,
363
+ default: () => [e(T, {
364
+ icon: s.svgIcon,
363
365
  size: "xlarge"
364
366
  }, null)]
365
367
  }), e("div", {
366
368
  class: "k-form-field-wrap"
367
369
  }, [e(u, {
368
- name: l.field,
369
- component: J,
370
- resource: l,
371
- multiple: l.multiple,
372
- dataItems: l.data,
373
- textField: l.textField,
374
- valueField: l.valueField,
375
- colorField: l.colorField,
376
- ariaLabel: l.name || l.field
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
377
379
  }, null)])]
378
- })), d]
379
- }), this.showRecurrenceDialog && e(Fe, {
380
+ })), l]
381
+ }), this.showRecurrenceDialog && e(be, {
380
382
  value: this.recurrenceRule,
381
383
  start: this.start,
382
384
  timezone: this.ks.timezone || "",
@@ -388,20 +390,20 @@ const We = /* @__PURE__ */ ee({
388
390
  }, null), this.showRemoveRecurrenceDialog && e(Ee, {
389
391
  onConfirm: this.handleRemoveRecurrenceConfirm,
390
392
  onCancel: this.handleRemoveRecurrenceCancel
391
- }, null), this.showTimezoneResetDialog && e(Te, {
392
- title: i.toLanguageString(_, n[_]),
393
+ }, null), this.showTimezoneResetDialog && e(Re, {
394
+ title: r.toLanguageString(P, n[P]),
393
395
  onClose: this.handleTimezoneResetClose
394
396
  }, {
395
- default: () => [i.toLanguageString(N, n[N]), e(ke, null, {
397
+ default: () => [r.toLanguageString(Z, n[Z]), e(Se, null, {
396
398
  default: () => [e(h, {
397
399
  onClick: this.handleTimezoneResetClose
398
- }, v(r = i.toLanguageString(P, n[P])) ? r : {
399
- default: () => [r]
400
+ }, D(i = r.toLanguageString(K, n[K])) ? i : {
401
+ default: () => [i]
400
402
  }), e(h, {
401
403
  themeColor: "primary",
402
404
  onClick: this.handleTimezoneResetConfirm
403
- }, v(s = i.toLanguageString(Z, n[Z])) ? s : {
404
- default: () => [s]
405
+ }, D(c = r.toLanguageString(W, n[W])) ? c : {
406
+ default: () => [c]
405
407
  })]
406
408
  })]
407
409
  })]);
@@ -442,29 +444,29 @@ const We = /* @__PURE__ */ ee({
442
444
  handleRemoveRecurrenceCancel() {
443
445
  this.showRemoveRecurrenceDialog = !1;
444
446
  },
445
- updateFormField(t, r) {
447
+ updateFormField(t, i) {
446
448
  this.kendoForm.onChange(t, {
447
- value: r
449
+ value: i
448
450
  }), this.$emit("change", t, {
449
- value: r
451
+ value: i
450
452
  });
451
453
  },
452
454
  requiredValidator(t) {
453
455
  return t ? void 0 : this.requiredValidationMessage;
454
456
  },
455
- startTimezoneValidator(t, r) {
456
- return this.showTimezones ? this.requiredValidator(r(this.ks.fields.startTimezone)) : void 0;
457
+ startTimezoneValidator(t, i) {
458
+ return this.showTimezones ? this.requiredValidator(i(this.ks.fields.startTimezone)) : void 0;
457
459
  },
458
- endTimezoneValidator(t, r) {
459
- return this.showTimezones ? this.requiredValidator(r(this.ks.fields.endTimezone)) || this.requiredValidator(r(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;
460
462
  }
461
463
  },
462
464
  watch: {
463
- startTimezone(t, r) {
464
- this.showTimezones && t && t !== r && this.updateFormField(this.ks.fields.endTimezone, t);
465
+ startTimezone(t, i) {
466
+ this.showTimezones && t && t !== i && this.updateFormField(this.ks.fields.endTimezone, t);
465
467
  }
466
468
  }
467
469
  });
468
470
  export {
469
- We as SchedulerFormEditor
471
+ Qe as SchedulerFormEditor
470
472
  };
@@ -8,6 +8,6 @@
8
8
  import { VNode } from 'vue';
9
9
  import { IntlService } from '@progress/kendo-vue-intl';
10
10
  /** @hidden */
11
- export declare const renderRecurrenceSummary: (text: string, template: VNode | null) => VNode;
11
+ export declare const renderRecurrenceSummary: (text: string, template: VNode | null, id?: string) => VNode;
12
12
  /** @hidden */
13
13
  export declare function getRecurrenceSummary(recurrenceRule: string | null, start: Date, intl: IntlService, localizeMessage: (key: string, defaultMessage: string) => string): string;
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("vue"),E=require("@progress/kendo-date-math"),a=require("../recurrence/common.js"),c=require("../messages/main.js"),f=new WeakMap,B=(t,n)=>{const o=f.get(t);if(!n.value){o==null||o.disconnect(),f.delete(t);return}const l=()=>{var u;t.title=((u=t.textContent)==null?void 0:u.trim())||""};if(l(),!o){const u=new MutationObserver(l);u.observe(t,{childList:!0,characterData:!0,subtree:!0}),f.set(t,u)}},N={mounted:B,updated:B,unmounted(t){var n;(n=f.get(t))==null||n.disconnect(),f.delete(t)}},j=(t,n)=>R.withDirectives(R.h("div",{class:"k-form-hint k-scheduler-recurrence-summary",title:n?void 0:t},[n||t]),[[N,!!n]]);function Y(t,n,o,l){var w,W,M,x,p,q;if(!t)return"";const u=(r,d)=>{const m=d?r:"scheduler.recurrenceEditor"+r;return l(m,c.messages[m])},e=a.getRule(t);if(!e.freq||e.freq==="never")return"";const C=a.getWeekDays(o),L=a.getExtendedWeekDays(o,u),k=a.getWeekDay(L,e,n),O=a.getMonths(o),g=a.getMonth(O,e),T=a.getOffsets(u),S=a.getOffset(T,e),b=a.getMonthDay(e,n),v=a.getRepeatOnRule(e),i=e.interval||1,y=(r,...d)=>{let m=l(r,c.messages[r]);return d.forEach((D,h)=>{m=m.replace(`{${h}}`,String(D))}),m};let s="";switch(e.freq){case"daily":s=y(c.recurrenceSummaryDaily,i);break;case"weekly":{const r=(e.byWeekDay||[]).map(({day:m})=>{var D;return(D=C.find(h=>h.value===m))==null?void 0:D.text}).filter(Boolean),d=r.length>0?r.join(", "):"";s=y(c.recurrenceSummaryWeekly,i,d);break}case"monthly":{if(v==="weekday"&&((w=e.byWeekDay)!=null&&w.length))s=y(c.recurrenceSummaryMonthlyByWeekDay,i,S.text.toLowerCase(),k.text.toLowerCase());else{const r=(M=(W=e.byMonthDay)==null?void 0:W[0])!=null?M:b;s=y(c.recurrenceSummaryMonthlyByDay,i,r)}break}case"yearly":{if(v==="weekday"&&((x=e.byWeekDay)!=null&&x.length))s=y(c.recurrenceSummaryYearlyByWeekDay,i,S.text.toLowerCase(),k.text.toLowerCase(),g.text);else{const r=(q=(p=e.byMonthDay)==null?void 0:p[0])!=null?q:b;s=y(c.recurrenceSummaryYearlyByDay,i,g.text,r)}break}}return e.count?s+=y(c.recurrenceSummaryCount,e.count):e.until&&(s+=y(c.recurrenceSummaryUntil,o.formatDate(E.toLocalDate(e.until),"D"))),s}exports.getRecurrenceSummary=Y;exports.renderRecurrenceSummary=j;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("vue"),E=require("@progress/kendo-date-math"),c=require("../recurrence/common.js"),o=require("../messages/main.js"),f=new WeakMap,B=(t,n)=>{const a=f.get(t);if(!n.value){a==null||a.disconnect(),f.delete(t);return}const l=()=>{var u;t.title=((u=t.textContent)==null?void 0:u.trim())||""};if(l(),!a){const u=new MutationObserver(l);u.observe(t,{childList:!0,characterData:!0,subtree:!0}),f.set(t,u)}},N={mounted:B,updated:B,unmounted(t){var n;(n=f.get(t))==null||n.disconnect(),f.delete(t)}},j=(t,n,a)=>R.withDirectives(R.h("div",{id:a,class:"k-form-hint k-scheduler-recurrence-summary",title:n?void 0:t},[n||t]),[[N,!!n]]);function Y(t,n,a,l){var w,W,M,x,p,q;if(!t)return"";const u=(r,d)=>{const m=d?r:"scheduler.recurrenceEditor"+r;return l(m,o.messages[m])},e=c.getRule(t);if(!e.freq||e.freq==="never")return"";const C=c.getWeekDays(a),L=c.getExtendedWeekDays(a,u),k=c.getWeekDay(L,e,n),O=c.getMonths(a),g=c.getMonth(O,e),T=c.getOffsets(u),S=c.getOffset(T,e),b=c.getMonthDay(e,n),v=c.getRepeatOnRule(e),i=e.interval||1,y=(r,...d)=>{let m=l(r,o.messages[r]);return d.forEach((D,h)=>{m=m.replace(`{${h}}`,String(D))}),m};let s="";switch(e.freq){case"daily":s=y(o.recurrenceSummaryDaily,i);break;case"weekly":{const r=(e.byWeekDay||[]).map(({day:m})=>{var D;return(D=C.find(h=>h.value===m))==null?void 0:D.text}).filter(Boolean),d=r.length>0?r.join(", "):"";s=y(o.recurrenceSummaryWeekly,i,d);break}case"monthly":{if(v==="weekday"&&((w=e.byWeekDay)!=null&&w.length))s=y(o.recurrenceSummaryMonthlyByWeekDay,i,S.text.toLowerCase(),k.text.toLowerCase());else{const r=(M=(W=e.byMonthDay)==null?void 0:W[0])!=null?M:b;s=y(o.recurrenceSummaryMonthlyByDay,i,r)}break}case"yearly":{if(v==="weekday"&&((x=e.byWeekDay)!=null&&x.length))s=y(o.recurrenceSummaryYearlyByWeekDay,i,S.text.toLowerCase(),k.text.toLowerCase(),g.text);else{const r=(q=(p=e.byMonthDay)==null?void 0:p[0])!=null?q:b;s=y(o.recurrenceSummaryYearlyByDay,i,g.text,r)}break}}return e.count?s+=y(o.recurrenceSummaryCount,e.count):e.until&&(s+=y(o.recurrenceSummaryUntil,a.formatDate(E.toLocalDate(e.until),"D"))),s}exports.getRecurrenceSummary=Y;exports.renderRecurrenceSummary=j;
@@ -30,8 +30,12 @@ const l = /* @__PURE__ */ new WeakMap(), B = (t, a) => {
30
30
  var a;
31
31
  (a = l.get(t)) == null || a.disconnect(), l.delete(t);
32
32
  }
33
- }, ne = (t, a) => T(
34
- q("div", { class: "k-form-hint k-scheduler-recurrence-summary", title: a ? void 0 : t }, [a || t]),
33
+ }, ne = (t, a, n) => T(
34
+ q("div", {
35
+ id: n,
36
+ class: "k-form-hint k-scheduler-recurrence-summary",
37
+ title: a ? void 0 : t
38
+ }, [a || t]),
35
39
  [[_, !!a]]
36
40
  );
37
41
  function oe(t, a, n, m) {
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-scheduler",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1793973260,version:"10.2.0-develop.17",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=vue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-scheduler",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1793978224,version:"10.2.0-develop.18",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=vue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
@@ -10,8 +10,8 @@ const e = {
10
10
  productName: "Kendo UI for Vue",
11
11
  productCode: "KENDOUIVUE",
12
12
  productCodes: ["KENDOUIVUE"],
13
- publishDate: 1793973260,
14
- version: "10.2.0-develop.17",
13
+ publishDate: 1793978224,
14
+ version: "10.2.0-develop.18",
15
15
  licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=vue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
16
16
  };
17
17
  export {