@progress/kendo-react-scheduler 16.1.0-develop.7 → 16.1.0-develop.8

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 (40) hide show
  1. package/Scheduler.js +1 -1
  2. package/Scheduler.mjs +199 -191
  3. package/components/BaseView.d.ts +1 -0
  4. package/components/BaseView.js +1 -1
  5. package/components/BaseView.mjs +7 -7
  6. package/components/DateHeaderCell.js +1 -1
  7. package/components/DateHeaderCell.mjs +5 -5
  8. package/constants/index.d.ts +2 -0
  9. package/constants/index.js +1 -1
  10. package/constants/index.mjs +15 -13
  11. package/dist/cdn/js/kendo-react-scheduler.js +1 -1
  12. package/editors/SchedulerRecurrenceDialog.js +1 -1
  13. package/editors/SchedulerRecurrenceDialog.mjs +191 -188
  14. package/hooks/useSlotExpand.js +1 -1
  15. package/hooks/useSlotExpand.mjs +22 -22
  16. package/items/SchedulerViewItem.d.ts +2 -0
  17. package/items/SchedulerViewItem.js +1 -1
  18. package/items/SchedulerViewItem.mjs +118 -116
  19. package/package-metadata.js +1 -1
  20. package/package-metadata.mjs +2 -2
  21. package/package.json +12 -12
  22. package/slots/SchedulerSlot.d.ts +2 -0
  23. package/slots/SchedulerSlot.js +1 -1
  24. package/slots/SchedulerSlot.mjs +1 -0
  25. package/tasks/SchedulerTask.js +1 -1
  26. package/tasks/SchedulerTask.mjs +12 -12
  27. package/views/agenda/AgendaView.js +1 -1
  28. package/views/agenda/AgendaView.mjs +48 -24
  29. package/views/common/VerticalResourceIterator.d.ts +1 -0
  30. package/views/common/VerticalResourceIterator.js +1 -1
  31. package/views/common/VerticalResourceIterator.mjs +29 -29
  32. package/views/day/MultiDayView.js +1 -1
  33. package/views/day/MultiDayView.mjs +77 -77
  34. package/views/month/MonthView.js +1 -1
  35. package/views/month/MonthView.mjs +67 -67
  36. package/views/time/MultiDayTimelineView.js +1 -1
  37. package/views/time/MultiDayTimelineView.mjs +44 -44
  38. package/components/footer/bussiness-hours/BussinessHours.d.ts +0 -20
  39. package/components/footer/bussiness-hours/BussinessHours.js +0 -8
  40. package/components/footer/bussiness-hours/BussinessHours.mjs +0 -29
@@ -6,262 +6,264 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import * as e from "react";
9
- import * as We from "react-dom";
10
- import { canUseDOM as Fe } from "@progress/kendo-react-common";
11
- import { Button as F } from "@progress/kendo-react-buttons";
12
- import { Dialog as Oe, DialogActionsBar as qe } from "@progress/kendo-react-dialogs";
13
- import { useInternationalization as Ie, useLocalization as Le } from "@progress/kendo-react-intl";
14
- import { NumericTextBox as O, RadioGroup as re } from "@progress/kendo-react-inputs";
9
+ import * as Oe from "react-dom";
10
+ import { canUseDOM as qe } from "@progress/kendo-react-common";
11
+ import { Button as q } from "@progress/kendo-react-buttons";
12
+ import { Dialog as Ie, DialogActionsBar as Le } from "@progress/kendo-react-dialogs";
13
+ import { useInternationalization as ze, useLocalization as Ke } from "@progress/kendo-react-intl";
14
+ import { NumericTextBox as I, RadioGroup as le } from "@progress/kendo-react-inputs";
15
15
  import { DropDownList as y } from "@progress/kendo-react-dropdowns";
16
- import { DatePicker as ze } from "@progress/kendo-react-dateinputs";
16
+ import { DatePicker as Be } from "@progress/kendo-react-dateinputs";
17
17
  import { Label as b } from "@progress/kendo-react-labels";
18
- import { Form as ne, FormElement as le, Field as Ke, FieldWrapper as f } from "@progress/kendo-react-form";
19
- import { ZonedDate as T, toLocalDate as oe } from "@progress/kendo-date-math";
20
- import { serializeRule as B, parseRule as Pe } from "@progress/kendo-recurrence";
21
- import { messages as U, editorSave as ce, editorCancel as ue, recurrenceEditorFrequenciesDaily as Te, recurrenceEditorFrequenciesWeekly as Be, recurrenceEditorFrequenciesMonthly as Ue, recurrenceEditorFrequenciesYearly as Ve, recurrenceEditorEndNever as Ye, recurrenceEditorEndAfter as Ae, recurrenceEditorEndOn as Ge, recurrenceEditorDialogTitle as Ze, recurrenceEditorRepeat as $e, recurrenceEditorWeeklyRepeatOn as je, recurrenceEditorWeeklyRepeatOnDays as He, recurrenceEditorMonthlyRepeatOn as Je, recurrenceEditorYearlyRepeatOn as Qe, recurrenceEditorYearlyOf as Xe, recurrenceEditorEndLabel as _e, recurrenceEditorEndOccurrence as et, recurrenceEditorRemoveRecurrence as tt } from "../messages/index.mjs";
22
- import { getRule as at, getFrequency as rt, getWeekDays as nt, getExtendedWeekDays as lt, getWeekDay as ot, getMonths as ct, getMonth as ut, getOffsets as st, getOffset as it, getEndRule as mt, getMonthDay as dt, getRepeatOnRule as yt, weekDayRuleFromString as se } from "../recurrence/common.mjs";
23
- import { getRecurrenceSummary as ft } from "../hooks/useRecurrenceSummary.mjs";
24
- import { useSchedulerFieldsContext as vt } from "../context/SchedulerContext.mjs";
25
- const kt = (ie) => {
18
+ import { Form as oe, FormElement as ce, Field as Pe, FieldWrapper as f } from "@progress/kendo-react-form";
19
+ import { ZonedDate as T, toLocalDate as ue } from "@progress/kendo-date-math";
20
+ import { serializeRule as U, parseRule as Te } from "@progress/kendo-recurrence";
21
+ import { messages as V, editorSave as se, editorCancel as ie, recurrenceEditorFrequenciesDaily as Ue, recurrenceEditorFrequenciesWeekly as Ve, recurrenceEditorFrequenciesMonthly as Ye, recurrenceEditorFrequenciesYearly as Ae, recurrenceEditorEndNever as Ge, recurrenceEditorEndAfter as Ze, recurrenceEditorEndOn as $e, recurrenceEditorDialogTitle as je, recurrenceEditorRepeat as He, recurrenceEditorWeeklyRepeatOn as Je, recurrenceEditorWeeklyRepeatOnDays as Qe, recurrenceEditorMonthlyRepeatOn as Xe, recurrenceEditorYearlyRepeatOn as _e, recurrenceEditorYearlyOf as et, recurrenceEditorEndLabel as tt, recurrenceEditorEndOccurrence as at, recurrenceEditorRemoveRecurrence as rt } from "../messages/index.mjs";
22
+ import { getRule as nt, getFrequency as lt, getWeekDays as ot, getExtendedWeekDays as ct, getWeekDay as ut, getMonths as st, getMonth as it, getOffsets as dt, getOffset as mt, getEndRule as yt, getMonthDay as ft, getRepeatOnRule as vt, weekDayRuleFromString as de } from "../recurrence/common.mjs";
23
+ import { getRecurrenceSummary as kt } from "../hooks/useRecurrenceSummary.mjs";
24
+ import { useSchedulerFieldsContext as ht } from "../context/SchedulerContext.mjs";
25
+ const Et = (me) => {
26
26
  const {
27
27
  value: E,
28
- start: V,
28
+ start: Y,
29
29
  timezone: s,
30
- onSave: D,
31
- onCancel: Y,
32
- onRemoveRecurrence: A,
33
- recurrenceSummaryTemplate: G,
34
- recurrenceEditor: p
35
- } = ie, c = Ie(), v = Le(), C = vt(), l = e.useCallback(
30
+ onSave: p,
31
+ onCancel: A,
32
+ onRemoveRecurrence: G,
33
+ recurrenceSummaryTemplate: Z,
34
+ recurrenceEditor: C
35
+ } = me, c = ze(), v = Ke(), D = ht(), l = e.useCallback(
36
36
  (a, t) => {
37
- const n = t ? a : "scheduler.recurrenceEditor" + a;
38
- return v.toLanguageString(n, U[n]);
37
+ const o = t ? a : "scheduler.recurrenceEditor" + a;
38
+ return v.toLanguageString(o, V[o]);
39
39
  },
40
40
  [v]
41
- ), [r, me] = e.useState(() => {
42
- const a = at(E != null ? E : "");
41
+ ), [r, ye] = e.useState(() => {
42
+ const a = nt(E != null ? E : "");
43
43
  return a.freq ? a : { freq: "daily", interval: 1 };
44
- }), [q, de] = e.useState(1), [I, ye] = e.useState(() => T.fromUTCDate(V)), [u] = e.useState(V), w = e.useRef(null), m = e.useMemo(() => rt(r), [r]), Z = e.useMemo(() => nt(c), [c]), R = e.useMemo(
45
- () => lt(c, l),
44
+ }), [L, $] = e.useState(1), w = e.useRef(!1), [z, fe] = e.useState(() => T.fromUTCDate(Y)), [u] = e.useState(Y), R = e.useRef(null), d = e.useMemo(() => lt(r), [r]), j = e.useMemo(() => ot(c), [c]), M = e.useMemo(
45
+ () => ct(c, l),
46
46
  [c, l]
47
47
  ), k = e.useMemo(
48
- () => ot(R, r, u),
49
- [R, r, u]
50
- ), M = e.useMemo(() => ct(c), [c]), $ = e.useMemo(() => ut(M, r), [M, r]), x = e.useMemo(() => st(l), [l]), d = e.useMemo(() => it(x, r), [x, r]), N = e.useMemo(() => mt(r), [r]), L = e.useMemo(() => dt(r, u), [r, u]), z = e.useMemo(() => r.until ? oe(r.until) : null, [r.until]), i = e.useMemo(
51
- () => yt(r),
48
+ () => ut(M, r, u),
49
+ [M, r, u]
50
+ ), x = e.useMemo(() => st(c), [c]), H = e.useMemo(() => it(x, r), [x, r]), N = e.useMemo(() => dt(l), [l]), m = e.useMemo(() => mt(N, r), [N, r]), S = e.useMemo(() => yt(r), [r]), W = e.useMemo(() => ft(r, u), [r, u]), K = e.useMemo(() => r.until ? ue(r.until) : null, [r.until]), i = e.useMemo(
51
+ () => vt(r),
52
52
  [r.byWeekDay, r.byMonthDay]
53
- ), fe = !!E, ve = v.toLanguageString(ce, U[ce]), ke = v.toLanguageString(ue, U[ue]), o = e.useCallback((a) => {
54
- me({ ...a });
55
- }, []), j = e.useCallback(
53
+ ), ve = !!E, ke = v.toLanguageString(se, V[se]), he = v.toLanguageString(ie, V[ie]), n = e.useCallback((a) => {
54
+ ye({ ...a });
55
+ }, []), J = e.useCallback(
56
56
  (a) => {
57
57
  const t = {};
58
- t.freq = a, t.interval = 1, a === "weekly" && (t.byWeekDay = [{ day: T.fromLocalDate(u, s).getDay(), offset: 0 }]), (a === "monthly" || a === "yearly") && (t.byMonthDay = [u.getDate()]), a === "yearly" && (t.byMonth = [u.getMonth() + 1]), o(t);
58
+ t.freq = a, t.interval = 1, a === "weekly" && (t.byWeekDay = [{ day: T.fromLocalDate(u, s).getDay(), offset: 0 }]), (a === "monthly" || a === "yearly") && (t.byMonthDay = [u.getDate()]), a === "yearly" && (t.byMonth = [u.getMonth() + 1]), n(t);
59
59
  },
60
- [u, s, o]
61
- ), he = e.useCallback(
60
+ [u, s, n]
61
+ ), Ee = e.useCallback(
62
62
  (a) => {
63
63
  var t;
64
- o({ ...r, interval: (t = a.value) != null ? t : 1 });
64
+ n({ ...r, interval: (t = a.value) != null ? t : 1 });
65
65
  },
66
- [r, o]
67
- ), Ee = e.useCallback(
66
+ [r, n]
67
+ ), ge = e.useCallback(
68
68
  (a) => {
69
69
  const t = a.value;
70
- o({ ...r, count: t != null ? t : void 0 }), t !== null && de(t);
70
+ t !== null ? (w.current = !1, n({ ...r, count: t }), $(t)) : w.current = !0;
71
71
  },
72
- [r, o]
73
- ), ge = e.useCallback(
72
+ [r, n]
73
+ ), be = e.useCallback(() => {
74
+ w.current && (w.current = !1, $(1), n({ ...r, count: 1 }));
75
+ }, [r, n]), pe = e.useCallback(
74
76
  (a) => {
75
77
  if (!a.value)
76
78
  return;
77
79
  const t = T.fromLocalDate(a.value, s);
78
- o({ ...r, until: t }), ye(t);
80
+ n({ ...r, until: t }), fe(t);
79
81
  },
80
- [r, s, o]
81
- ), H = e.useCallback(
82
+ [r, s, n]
83
+ ), Q = e.useCallback(
82
84
  (a) => {
83
- o({
85
+ n({
84
86
  ...r,
85
- byWeekDay: Z.filter((t) => a.some((n) => n === t.value)).map((t) => ({ offset: 0, day: t.value }))
87
+ byWeekDay: j.filter((t) => a.some((o) => o === t.value)).map((t) => ({ offset: 0, day: t.value }))
86
88
  });
87
89
  },
88
- [r, Z, o]
89
- ), J = e.useCallback(
90
+ [r, j, n]
91
+ ), X = e.useCallback(
90
92
  (a) => {
91
- const t = { ...r }, n = a.target.value;
92
- typeof n.value == "string" ? (t.byWeekDay = se(n.value), t.bySetPosition = [d.value]) : (t.bySetPosition = void 0, t.byWeekDay = [{ day: n.value, offset: d.value }]), o(t);
93
+ const t = { ...r }, o = a.target.value;
94
+ typeof o.value == "string" ? (t.byWeekDay = de(o.value), t.bySetPosition = [m.value]) : (t.bySetPosition = void 0, t.byWeekDay = [{ day: o.value, offset: m.value }]), n(t);
93
95
  },
94
- [d.value, r, o]
95
- ), Q = e.useCallback(
96
+ [m.value, r, n]
97
+ ), _ = e.useCallback(
96
98
  (a) => {
97
99
  var t;
98
- o({ ...r, byMonthDay: [(t = a.value) != null ? t : 1] });
100
+ n({ ...r, byMonthDay: [(t = a.value) != null ? t : 1] });
99
101
  },
100
- [r, o]
101
- ), X = e.useCallback(
102
+ [r, n]
103
+ ), ee = e.useCallback(
102
104
  (a) => {
103
- o({ ...r, byMonth: [a.value.value] });
105
+ n({ ...r, byMonth: [a.value.value] });
104
106
  },
105
- [r, o]
106
- ), be = e.useCallback(
107
+ [r, n]
108
+ ), Ce = e.useCallback(
107
109
  (a) => {
108
- const t = a.value.value, n = { ...r };
110
+ const t = a.value.value, o = { ...r };
109
111
  switch (t) {
110
112
  case "never":
111
- n.until = void 0, n.count = void 0;
113
+ o.until = void 0, o.count = void 0;
112
114
  break;
113
115
  case "count":
114
- n.until = void 0, n.count = q;
116
+ o.until = void 0, o.count = L;
115
117
  break;
116
118
  case "until":
117
- n.until = I, n.count = void 0;
119
+ o.until = z, o.count = void 0;
118
120
  break;
119
121
  }
120
- o(n);
122
+ n(o);
121
123
  },
122
- [r, q, I, o]
123
- ), _ = e.useCallback(
124
+ [r, L, z, n]
125
+ ), te = e.useCallback(
124
126
  (a) => {
125
127
  const t = { ...r };
126
- a.value === "monthday" ? (t.byWeekDay = void 0, t.bySetPosition = void 0, t.byMonthDay = [L]) : a.value === "weekday" && (t.byMonthDay = void 0, typeof k.value == "string" ? (t.bySetPosition = [d.value], t.byWeekDay = se(k.value)) : t.byWeekDay = [{ day: k.value, offset: d.value }]), o(t);
128
+ a.value === "monthday" ? (t.byWeekDay = void 0, t.bySetPosition = void 0, t.byMonthDay = [W]) : a.value === "weekday" && (t.byMonthDay = void 0, typeof k.value == "string" ? (t.bySetPosition = [m.value], t.byWeekDay = de(k.value)) : t.byWeekDay = [{ day: k.value, offset: m.value }]), n(t);
127
129
  },
128
- [r, L, k, d.value, o]
129
- ), ee = e.useCallback(
130
+ [r, W, k, m.value, n]
131
+ ), ae = e.useCallback(
130
132
  (a) => {
131
- const t = { ...r }, n = a.value;
133
+ const t = { ...r }, o = a.value;
132
134
  if (t.byWeekDay)
133
135
  switch (t.byWeekDay.length) {
134
136
  case 7:
135
137
  case 5:
136
138
  case 2:
137
- t.bySetPosition = [n.value];
139
+ t.bySetPosition = [o.value];
138
140
  break;
139
141
  case 1:
140
- t.byWeekDay[0].offset = n.value;
142
+ t.byWeekDay[0].offset = o.value;
141
143
  break;
142
144
  }
143
- o(t);
145
+ n(t);
144
146
  },
145
- [r, o]
147
+ [r, n]
146
148
  ), De = e.useCallback(
147
149
  (a) => {
148
150
  const t = a.value.value;
149
- j(t);
151
+ J(t);
150
152
  },
151
- [j]
152
- ), S = e.useMemo(
153
+ [J]
154
+ ), F = e.useMemo(
153
155
  () => [
154
- { text: l(Te, !0), value: "daily" },
155
- { text: l(Be, !0), value: "weekly" },
156
- { text: l(Ue, !0), value: "monthly" },
157
- { text: l(Ve, !0), value: "yearly" }
156
+ { text: l(Ue, !0), value: "daily" },
157
+ { text: l(Ve, !0), value: "weekly" },
158
+ { text: l(Ye, !0), value: "monthly" },
159
+ { text: l(Ae, !0), value: "yearly" }
158
160
  ],
159
161
  [l]
160
- ), W = e.useMemo(
162
+ ), O = e.useMemo(
161
163
  () => [
162
- { text: l(Ye, !0), value: "never" },
163
- { text: l(Ae, !0), value: "count" },
164
- { text: l(Ge, !0), value: "until" }
164
+ { text: l(Ge, !0), value: "never" },
165
+ { text: l(Ze, !0), value: "count" },
166
+ { text: l($e, !0), value: "until" }
165
167
  ],
166
168
  [l]
167
- ), pe = e.useMemo(
168
- () => S.find((a) => a.value === m) || S[0],
169
- [S, m]
170
- ), Ce = e.useMemo(
171
- () => W.find((a) => a.value === N) || W[0],
172
- [W, N]
173
- ), we = e.useMemo(() => {
174
- const a = c.firstDay(), t = c.dateFormatNames({ type: "days", nameType: "narrow" }), n = c.dateFormatNames({ type: "days", nameType: "wide" }), P = t.map((Se, ae) => ({
175
- narrow: Se,
176
- wide: n[ae],
177
- value: ae
169
+ ), we = e.useMemo(
170
+ () => F.find((a) => a.value === d) || F[0],
171
+ [F, d]
172
+ ), Re = e.useMemo(
173
+ () => O.find((a) => a.value === S) || O[0],
174
+ [O, S]
175
+ ), Me = e.useMemo(() => {
176
+ const a = c.firstDay(), t = c.dateFormatNames({ type: "days", nameType: "narrow" }), o = c.dateFormatNames({ type: "days", nameType: "wide" }), P = t.map((Fe, ne) => ({
177
+ narrow: Fe,
178
+ wide: o[ne],
179
+ value: ne
178
180
  }));
179
181
  return P.slice(a).concat(P.slice(0, a));
180
- }, [c]), h = e.useMemo(() => (r.byWeekDay || []).map(({ day: a }) => a), [r.byWeekDay]), Re = e.useCallback(
182
+ }, [c]), h = e.useMemo(() => (r.byWeekDay || []).map(({ day: a }) => a), [r.byWeekDay]), xe = e.useCallback(
181
183
  (a) => {
182
- const t = h.includes(a) ? h.filter((n) => n !== a) : [...h, a];
183
- H(t);
184
+ const t = h.includes(a) ? h.filter((o) => o !== a) : [...h, a];
185
+ Q(t);
184
186
  },
185
- [h, H]
186
- ), Me = e.useCallback(() => {
187
+ [h, Q]
188
+ ), Ne = e.useCallback(() => {
187
189
  var a;
188
- if (p) {
189
- const t = ((a = w.current) == null ? void 0 : a.call(w, C.recurrenceRule)) || null;
190
- D(t);
191
- } else r.freq === "never" || !r.freq ? D(null) : (r.weekStart === void 0 && (r.weekStart = c.firstDay()), D(B(r, s)));
192
- }, [p, r, s, c, D]), te = e.useCallback(() => {
193
- Y();
194
- }, [Y]), K = e.useMemo(() => {
190
+ if (C) {
191
+ const t = ((a = R.current) == null ? void 0 : a.call(R, D.recurrenceRule)) || null;
192
+ p(t);
193
+ } else r.freq === "never" || !r.freq ? p(null) : (r.weekStart === void 0 && (r.weekStart = c.firstDay()), p(U(r, s)));
194
+ }, [C, r, s, c, p]), re = e.useCallback(() => {
195
+ A();
196
+ }, [A]), B = e.useMemo(() => {
195
197
  if (!r.freq || r.freq === "never")
196
198
  return "";
197
- const a = B(r, s);
198
- return ft(a, u, c, v);
199
- }, [r, s, u, c, v]), g = e.useMemo(() => !r.freq || r.freq === "never" ? null : B(r, s), [r, s]), xe = e.useMemo(() => g ? Pe({ recurrenceRule: g }) : null, [g]), Ne = /* @__PURE__ */ e.createElement(Oe, { title: l(Ze, !0), onClose: te, width: 540 }, p ? /* @__PURE__ */ e.createElement(
200
- ne,
199
+ const a = U(r, s);
200
+ return kt(a, u, c, v);
201
+ }, [r, s, u, c, v]), g = e.useMemo(() => !r.freq || r.freq === "never" ? null : U(r, s), [r, s]), Se = e.useMemo(() => g ? Te({ recurrenceRule: g }) : null, [g]), We = /* @__PURE__ */ e.createElement(Ie, { title: l(je, !0), onClose: re, width: 540 }, C ? /* @__PURE__ */ e.createElement(
202
+ oe,
201
203
  {
202
- initialValues: { [C.recurrenceRule]: E || "" },
203
- render: (a) => (w.current = a.valueGetter, /* @__PURE__ */ e.createElement(le, { horizontal: !0 }, /* @__PURE__ */ e.createElement(
204
- Ke,
204
+ initialValues: { [D.recurrenceRule]: E || "" },
205
+ render: (a) => (R.current = a.valueGetter, /* @__PURE__ */ e.createElement(ce, { horizontal: !0 }, /* @__PURE__ */ e.createElement(
206
+ Pe,
205
207
  {
206
- name: C.recurrenceRule,
207
- field: C.recurrenceRule,
208
- component: p,
208
+ name: D.recurrenceRule,
209
+ field: D.recurrenceRule,
210
+ component: C,
209
211
  start: u
210
212
  }
211
213
  )))
212
214
  }
213
215
  ) : /* @__PURE__ */ e.createElement(
214
- ne,
216
+ oe,
215
217
  {
216
218
  render: () => {
217
- var a, t;
218
- return /* @__PURE__ */ e.createElement(le, { horizontal: !0 }, /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(b, { editorId: "recurrence-interval", className: "k-form-label" }, l($e, !0)), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement("div", { className: "k-scheduler-recurrence-fields" }, m !== "never" && /* @__PURE__ */ e.createElement(
219
- O,
219
+ var a;
220
+ return /* @__PURE__ */ e.createElement(ce, { horizontal: !0 }, /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(b, { editorId: "recurrence-interval", className: "k-form-label" }, l(He, !0)), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement("div", { className: "k-scheduler-recurrence-fields" }, d !== "never" && /* @__PURE__ */ e.createElement(
221
+ I,
220
222
  {
221
223
  id: "recurrence-interval",
222
224
  min: 1,
223
225
  step: 1,
224
226
  defaultValue: 1,
225
227
  value: r.interval,
226
- onChange: he
228
+ onChange: Ee
227
229
  }
228
230
  ), /* @__PURE__ */ e.createElement(
229
231
  y,
230
232
  {
231
- data: S,
233
+ data: F,
232
234
  textField: "text",
233
235
  dataItemKey: "value",
234
- value: pe,
236
+ value: we,
235
237
  onChange: De
236
238
  }
237
- )))), m === "weekly" && /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(b, { className: "k-form-label" }, l(je, !0)), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
239
+ )))), d === "weekly" && /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(b, { className: "k-form-label" }, l(Je, !0)), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
238
240
  "div",
239
241
  {
240
242
  className: "k-scheduler-weekday-picker",
241
243
  role: "group",
242
- "aria-label": l(He, !0)
244
+ "aria-label": l(Qe, !0)
243
245
  },
244
- we.map((n) => /* @__PURE__ */ e.createElement(
245
- F,
246
+ Me.map((t) => /* @__PURE__ */ e.createElement(
247
+ q,
246
248
  {
247
- key: n.value,
249
+ key: t.value,
248
250
  type: "button",
249
251
  themeColor: "primary",
250
252
  fillMode: "flat",
251
253
  rounded: "full",
252
254
  togglable: !0,
253
- selected: h.includes(n.value),
254
- "aria-label": n.wide,
255
- "aria-pressed": h.includes(n.value),
256
- onClick: () => Re(n.value)
255
+ selected: h.includes(t.value),
256
+ "aria-label": t.wide,
257
+ "aria-pressed": h.includes(t.value),
258
+ onClick: () => xe(t.value)
257
259
  },
258
- n.narrow
260
+ t.narrow
259
261
  ))
260
- ))), m === "monthly" && /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(b, { className: "k-form-label" }, l(Je, !0)), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
261
- re,
262
+ ))), d === "monthly" && /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(b, { className: "k-form-label" }, l(Xe, !0)), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
263
+ le,
262
264
  {
263
265
  value: i,
264
- onChange: _,
266
+ onChange: te,
265
267
  className: "k-reset",
266
268
  data: [
267
269
  {
@@ -280,9 +282,9 @@ const kt = (ie) => {
280
282
  textField: "text",
281
283
  dataItemKey: "value",
282
284
  disabled: i !== "weekday",
283
- data: x,
284
- value: d,
285
- onChange: ee
285
+ data: N,
286
+ value: m,
287
+ onChange: ae
286
288
  }
287
289
  ),
288
290
  /* @__PURE__ */ e.createElement(
@@ -290,8 +292,8 @@ const kt = (ie) => {
290
292
  {
291
293
  disabled: i !== "weekday",
292
294
  value: k,
293
- data: R,
294
- onChange: J,
295
+ data: M,
296
+ onChange: X,
295
297
  textField: "text",
296
298
  dataItemKey: "value"
297
299
  }
@@ -310,13 +312,13 @@ const kt = (ie) => {
310
312
  className: "k-scheduler-recurrence-fields"
311
313
  },
312
314
  /* @__PURE__ */ e.createElement(
313
- O,
315
+ I,
314
316
  {
315
317
  min: 1,
316
318
  max: 31,
317
319
  disabled: i !== "monthday",
318
- value: (a = r == null ? void 0 : r.byMonthDay) == null ? void 0 : a[0],
319
- onChange: Q,
320
+ value: W,
321
+ onChange: _,
320
322
  width: "auto"
321
323
  }
322
324
  )
@@ -325,11 +327,11 @@ const kt = (ie) => {
325
327
  }
326
328
  ]
327
329
  }
328
- ))), m === "yearly" && /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(b, { className: "k-form-label" }, l(Qe, !0)), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
329
- re,
330
+ ))), d === "yearly" && /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(b, { className: "k-form-label" }, l(_e, !0)), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement(
331
+ le,
330
332
  {
331
333
  value: i,
332
- onChange: _,
334
+ onChange: te,
333
335
  className: "k-reset",
334
336
  data: [
335
337
  {
@@ -346,21 +348,21 @@ const kt = (ie) => {
346
348
  y,
347
349
  {
348
350
  disabled: i !== "monthday",
349
- value: $,
350
- data: M,
351
+ value: H,
352
+ data: x,
351
353
  textField: "text",
352
354
  dataItemKey: "value",
353
- onChange: X
355
+ onChange: ee
354
356
  }
355
357
  ),
356
358
  /* @__PURE__ */ e.createElement(
357
- O,
359
+ I,
358
360
  {
359
361
  min: 1,
360
362
  max: 31,
361
363
  disabled: i !== "monthday",
362
- value: L,
363
- onChange: Q,
364
+ value: W,
365
+ onChange: _,
364
366
  width: "auto"
365
367
  }
366
368
  )
@@ -383,9 +385,9 @@ const kt = (ie) => {
383
385
  textField: "text",
384
386
  dataItemKey: "value",
385
387
  disabled: i !== "weekday",
386
- data: x,
387
- value: d,
388
- onChange: ee
388
+ data: N,
389
+ value: m,
390
+ onChange: ae
389
391
  }
390
392
  ),
391
393
  /* @__PURE__ */ e.createElement(
@@ -395,19 +397,19 @@ const kt = (ie) => {
395
397
  dataItemKey: "value",
396
398
  disabled: i !== "weekday",
397
399
  value: k,
398
- data: R,
399
- onChange: J
400
+ data: M,
401
+ onChange: X
400
402
  }
401
403
  ),
402
- /* @__PURE__ */ e.createElement("span", { key: "of-row", className: "k-scheduler-edit-form-row" }, /* @__PURE__ */ e.createElement("span", null, l(Xe, !0)), /* @__PURE__ */ e.createElement(
404
+ /* @__PURE__ */ e.createElement("span", { key: "of-row", className: "k-scheduler-edit-form-row" }, /* @__PURE__ */ e.createElement("span", null, l(et, !0)), /* @__PURE__ */ e.createElement(
403
405
  y,
404
406
  {
405
407
  textField: "text",
406
408
  dataItemKey: "value",
407
409
  disabled: i !== "weekday",
408
- value: $,
409
- data: M,
410
- onChange: X
410
+ value: H,
411
+ data: x,
412
+ onChange: ee
411
413
  }
412
414
  ))
413
415
  )
@@ -415,49 +417,50 @@ const kt = (ie) => {
415
417
  }
416
418
  ]
417
419
  }
418
- ))), m !== "never" && /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(b, { className: "k-form-label" }, l(_e, !0)), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement("div", { className: "k-scheduler-recurrence-fields" }, /* @__PURE__ */ e.createElement(
420
+ ))), d !== "never" && /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement(b, { className: "k-form-label" }, l(tt, !0)), /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement("div", { className: "k-scheduler-recurrence-fields" }, /* @__PURE__ */ e.createElement(
419
421
  y,
420
422
  {
421
- data: W,
423
+ data: O,
422
424
  textField: "text",
423
425
  dataItemKey: "value",
424
- value: Ce,
425
- onChange: be
426
+ value: Re,
427
+ onChange: Ce
426
428
  }
427
- ), N === "count" && /* @__PURE__ */ e.createElement(
428
- O,
429
+ ), S === "count" && /* @__PURE__ */ e.createElement(
430
+ I,
429
431
  {
430
432
  min: 1,
431
433
  width: "auto",
432
- value: (t = r.count) != null ? t : q,
433
- onChange: Ee,
434
+ value: (a = r.count) != null ? a : L,
435
+ onChange: ge,
436
+ onBlur: be,
434
437
  format: `0 '${l(
435
- et,
438
+ at,
436
439
  !0
437
440
  )}'`
438
441
  }
439
- ), N === "until" && /* @__PURE__ */ e.createElement(
440
- ze,
442
+ ), S === "until" && /* @__PURE__ */ e.createElement(
443
+ Be,
441
444
  {
442
445
  min: u,
443
- value: z != null ? z : oe(I),
444
- onChange: ge,
446
+ value: K != null ? K : ue(z),
447
+ onChange: pe,
445
448
  width: "auto"
446
449
  }
447
- )))), m !== "never" && (G && g ? /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement("div", { className: "k-form-hint" }, /* @__PURE__ */ e.createElement(
448
- G,
450
+ )))), d !== "never" && (Z && g ? /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement("div", { className: "k-form-hint" }, /* @__PURE__ */ e.createElement(
451
+ Z,
449
452
  {
450
453
  recurrenceRule: g,
451
- text: K || "",
452
- parsedRule: xe
454
+ text: B || "",
455
+ parsedRule: Se
453
456
  }
454
- )))) : K ? /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement("div", { className: "k-form-hint" }, K))) : null));
457
+ )))) : B ? /* @__PURE__ */ e.createElement(f, null, /* @__PURE__ */ e.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ e.createElement("div", { className: "k-form-hint" }, B))) : null));
455
458
  }
456
459
  }
457
- ), /* @__PURE__ */ e.createElement(qe, { layout: "end" }, fe && A && /* @__PURE__ */ e.createElement(F, { fillMode: "flat", themeColor: "primary", onClick: A }, l(tt, !0)), /* @__PURE__ */ e.createElement(F, { onClick: te }, ke), /* @__PURE__ */ e.createElement(F, { themeColor: "primary", onClick: Me }, ve)));
458
- return Fe ? We.createPortal(Ne, document.body) : null;
460
+ ), /* @__PURE__ */ e.createElement(Le, { layout: "end" }, ve && G && /* @__PURE__ */ e.createElement(q, { fillMode: "flat", themeColor: "primary", onClick: G }, l(rt, !0)), /* @__PURE__ */ e.createElement(q, { onClick: re }, he), /* @__PURE__ */ e.createElement(q, { themeColor: "primary", onClick: Ne }, ke)));
461
+ return qe ? Oe.createPortal(We, document.body) : null;
459
462
  };
460
- kt.displayName = "KendoReactSchedulerRecurrenceDialog";
463
+ Et.displayName = "KendoReactSchedulerRecurrenceDialog";
461
464
  export {
462
- kt as SchedulerRecurrenceDialog
465
+ Et as SchedulerRecurrenceDialog
463
466
  };
@@ -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 k=require("react"),g=require("../views/common/utils.js"),q=require("../constants/index.js"),B=require("@progress/kendo-react-common"),C=require("../context/SchedulerContext.js");function M(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const l=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(n,s,l.get?l:{enumerable:!0,get:()=>e[s]})}}return n.default=e,Object.freeze(n)}const a=M(k),P=(e,n)=>{const s=a.useRef(void 0),l=a.useRef(0),y=C.useSchedulerElementContext(),H=()=>{if(!e.current)return;const o=e.current.element;o&&(l.current=o.clientHeight)},p=a.useCallback(()=>{if(!n||!e.current)return;const o=e.current.element,v=e.current.props;if(!o)return;const d=g.getPadding(o),t=new Map;let m=!1;const c=v.items.filter(r=>r._ref.current);c.forEach(r=>{var x,O,R,S,E;if(!r._ref.current)return;const{height:f}=g.getRect(r._ref.current.element),u=(R=(O=(x=r._ref.current)==null?void 0:x._order)!=null?O:r.order)!=null?R:-1;(S=r._ref.current.element)!=null&&S.style.top&&(m=!0),((E=t.get(u))!=null?E:0)<f&&t.set(u,f)});let i,_;if(!m||t.size===0){o.style.minHeight="";return}else{const r=Math.max(...Array.from(t.keys()));_=r+1;const f=Math.max(...Array.from(t.values()));i=0;for(let u=0;u<=r;u++)i+=t.has(u)?t.get(u):f}const j=typeof n=="object"&&n.offsetTop?n.offsetTop:0;let b=typeof n=="object"&&n.offsetBottom?n.offsetBottom:0;if(b>0){const r=o.querySelector(".k-more-events");if(r){const f=parseFloat(window.getComputedStyle(r).bottom)||0;b=r.offsetHeight+f}}const w=_*q.BORDER_WIDTH*2+i-d+j+b;c.length?w>l.current-d&&g.setRect(o,{height:w},!0):o&&(o.style.minHeight="")},[n,e]),h=a.useCallback(()=>{s.current!==void 0&&window.cancelAnimationFrame(s.current),s.current=window.requestAnimationFrame(()=>{p()})},[p]);B.useIsomorphicLayoutEffect(H,[]),a.useEffect(p,[e,e.current&&e.current.props,n]),a.useEffect(()=>{if(!e.current)return;const d=e.current.props.items.filter(t=>t._ref.current).map(t=>{if(!t._ref.current||!t._ref.current.element||!y.current)return;const m=window.ResizeObserver,c=m&&new m(h);c&&c.observe(t._ref.current.element);const i=new MutationObserver(h);return i.observe(t._ref.current.element,{attributes:!0,attributeFilter:["style"]}),()=>{c&&c.disconnect(),i.disconnect()}});return()=>{d.forEach(t=>t&&t())}},[h,y,e])};exports.useSlotExpand=P;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("react"),g=require("../views/common/utils.js"),q=require("../constants/index.js"),B=require("@progress/kendo-react-common"),C=require("../context/SchedulerContext.js");function M(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const l=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(n,s,l.get?l:{enumerable:!0,get:()=>e[s]})}}return n.default=e,Object.freeze(n)}const a=M(k),P=(e,n)=>{const s=a.useRef(void 0),l=a.useRef(0),y=C.useSchedulerElementContext(),H=()=>{if(!e.current)return;const o=e.current.element;o&&(l.current=o.clientHeight)},d=a.useCallback(()=>{if(!n||!e.current)return;const o=e.current.element,v=e.current.props;if(!o)return;const p=g.getPadding(o),t=new Map;let m=!1;const c=v.items.filter(r=>r._ref.current);c.forEach(r=>{var x,O,R,S,E;if(!r._ref.current)return;const{height:f}=g.getRect(r._ref.current.element),u=(R=(O=(x=r._ref.current)==null?void 0:x._order)!=null?O:r.order)!=null?R:-1;(S=r._ref.current.element)!=null&&S.style.top&&(m=!0),((E=t.get(u))!=null?E:0)<f&&t.set(u,f)});let i,_;if(!m||t.size===0){o.style.minHeight="";return}else{const r=Math.max(...Array.from(t.keys()));_=r+1;const f=Math.max(...Array.from(t.values()));i=0;for(let u=0;u<=r;u++)i+=t.has(u)?t.get(u):f}const j=typeof n=="object"&&n.offsetTop?n.offsetTop:0;let b=typeof n=="object"&&n.offsetBottom?n.offsetBottom:0;if(b>0){const r=o.querySelector(".k-more-events");if(r){const f=parseFloat(window.getComputedStyle(r).bottom)||0;b=r.offsetHeight+f}}const w=_*q.BORDER_WIDTH*2+i-p+j+b;c.length?w>l.current-p&&g.setRect(o,{height:w},!0):o&&(o.style.minHeight="")},[n,e]),h=a.useCallback(()=>{s.current!==void 0&&window.cancelAnimationFrame(s.current),s.current=window.requestAnimationFrame(()=>{d()})},[d]);B.useIsomorphicLayoutEffect(H,[]),a.useEffect(d,[e,e.current&&e.current.props,n]),a.useEffect(()=>{if(!e.current)return;const p=e.current.props.items.filter(t=>t._ref.current).map(t=>{if(!t._ref.current||!t._ref.current.element||!y.current)return;const m=window.ResizeObserver,c=m&&new m(h);c&&c.observe(t._ref.current.element);const i=new MutationObserver(h);return i.observe(t._ref.current.element,{attributes:!0,attributeFilter:["style"]}),()=>{c&&c.disconnect(),i.disconnect()}});return()=>{p.forEach(t=>t&&t())}},[h,y,e,e.current&&e.current.props])};exports.useSlotExpand=P;