@progress/kendo-react-scheduler 9.0.0-develop.2 → 9.0.0-develop.20

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 (82) hide show
  1. package/README.md +28 -28
  2. package/Scheduler.mjs +42 -65
  3. package/components/BaseView.mjs +1 -10
  4. package/components/CurrentTimeMarket.mjs +31 -46
  5. package/components/DateHeaderCell.mjs +2 -8
  6. package/components/SchedulerForm.js +1 -1
  7. package/components/SchedulerForm.mjs +46 -24
  8. package/components/SchedulerOccurrenceDialog.mjs +5 -7
  9. package/components/SchedulerRemoveDialog.mjs +42 -31
  10. package/components/ShowMoreItemsButton.mjs +30 -32
  11. package/components/TimeHeaderCell.mjs +2 -8
  12. package/components/footer/SchedulerFooter.js +1 -1
  13. package/components/footer/SchedulerFooter.mjs +20 -21
  14. package/components/footer/bussiness-hours/BussinessHours.mjs +15 -16
  15. package/components/header/SchedulerHeader.mjs +18 -19
  16. package/components/header/navigation/NavigationDatePicker.mjs +12 -43
  17. package/components/header/navigation/SchedulerNavigation.mjs +15 -16
  18. package/components/header/view-selector/SchedulerViewSelector.mjs +15 -16
  19. package/components/header/view-selector/ViewSelectorItem.mjs +3 -6
  20. package/components/header/view-selector/ViewSelectorList.mjs +4 -7
  21. package/context/SchedulerContext.mjs +10 -2
  22. package/context/SchedulerEditItemContext.mjs +20 -4
  23. package/context/SchedulerEditSlotContext.mjs +4 -6
  24. package/context/SchedulerEditTaskContext.mjs +3 -1
  25. package/dist/cdn/js/kendo-react-scheduler.js +1 -1
  26. package/editors/FilterableComboBox.mjs +4 -10
  27. package/editors/SchedulerFormEditor.mjs +218 -297
  28. package/editors/ZonedDateTime.mjs +14 -27
  29. package/hooks/use-items-focus.mjs +2 -12
  30. package/hooks/use-items-selection.mjs +2 -12
  31. package/hooks/use-slots-focus.mjs +9 -1
  32. package/hooks/useCellSync.js +1 -1
  33. package/hooks/useCellSync.mjs +8 -9
  34. package/hooks/useRowSync.js +1 -1
  35. package/hooks/useRowSync.mjs +7 -5
  36. package/hooks/useSchedulerItem.js +1 -1
  37. package/hooks/useSchedulerItem.mjs +21 -16
  38. package/hooks/useSchedulerSlot.mjs +8 -10
  39. package/hooks/useSlotExpand.mjs +14 -21
  40. package/index.d.mts +88 -43
  41. package/index.d.ts +88 -43
  42. package/items/SchedulerEditItem.mjs +576 -471
  43. package/items/SchedulerItem.mjs +294 -304
  44. package/items/SchedulerItemContent.mjs +6 -10
  45. package/items/SchedulerProportionalViewItem.js +1 -1
  46. package/items/SchedulerProportionalViewItem.mjs +115 -111
  47. package/items/SchedulerViewItem.js +1 -1
  48. package/items/SchedulerViewItem.mjs +112 -108
  49. package/items/hooks/use-show-occurrence-dialog.mjs +5 -1
  50. package/package-metadata.mjs +1 -1
  51. package/package.json +11 -11
  52. package/recurrence/RecurrenceEditor.js +1 -1
  53. package/recurrence/RecurrenceEditor.mjs +73 -92
  54. package/recurrence/RecurrenceFrequencyEditor.mjs +10 -18
  55. package/recurrence/RecurrenceRepeatOnWeekEditor.js +1 -1
  56. package/recurrence/RecurrenceRepeatOnWeekEditor.mjs +7 -4
  57. package/recurrence/common.js +1 -1
  58. package/recurrence/common.mjs +45 -34
  59. package/services/itemsService.mjs +8 -9
  60. package/services/occurrenceService.mjs +1 -3
  61. package/slots/SchedulerEditSlot.mjs +111 -133
  62. package/slots/SchedulerSlot.mjs +148 -154
  63. package/slots/SchedulerViewSlot.mjs +7 -5
  64. package/tasks/SchedulerEditTask.mjs +108 -129
  65. package/tasks/SchedulerTask.mjs +39 -47
  66. package/tasks/SchedulerViewTask.mjs +8 -6
  67. package/utils/index.js +1 -1
  68. package/utils/index.mjs +99 -96
  69. package/views/agenda/AgendaView.mjs +50 -66
  70. package/views/common/HorizontalResourceIterator.mjs +33 -3
  71. package/views/common/VerticalResourceIterator.mjs +8 -1
  72. package/views/common/utils.js +1 -1
  73. package/views/common/utils.mjs +35 -34
  74. package/views/day/DayViewRowContent.mjs +3 -6
  75. package/views/day/MultiDayView.js +1 -1
  76. package/views/day/MultiDayView.mjs +156 -187
  77. package/views/month/MonthView.mjs +18 -28
  78. package/views/time/MultiDayTimelineView.js +1 -1
  79. package/views/time/MultiDayTimelineView.mjs +41 -90
  80. package/views/time/TimelineViewAllEventsRowContent.mjs +8 -1
  81. package/views/week/WeekView.mjs +1 -8
  82. package/views/week/WorkWeekView.mjs +1 -8
@@ -13,37 +13,48 @@ import { useLocalization as E } from "@progress/kendo-react-intl";
13
13
  import { editorCancel as s, messages as l, editorDelete as m, deleteConfirmation as u, deleteDialogTitle as g } from "../messages/index.mjs";
14
14
  import { canUseDOM as y } from "@progress/kendo-react-common";
15
15
  import { Button as d } from "@progress/kendo-react-buttons";
16
- const z = e.forwardRef((c, f) => {
17
- const { onClose: a, onCancel: n, onConfirm: r } = c, i = e.useRef(null);
18
- e.useImperativeHandle(i, () => ({ props: c })), e.useImperativeHandle(f, () => i.current);
19
- const t = E(), C = t.toLanguageString(s, l[s]), v = t.toLanguageString(m, l[m]), p = t.toLanguageString(u, l[u]), D = t.toLanguageString(g, l[g]), R = e.useCallback(
20
- ({ syntheticEvent: o }) => {
21
- if (!a)
22
- return;
23
- const h = {
24
- syntheticEvent: o,
25
- value: null,
26
- target: i.current
27
- };
28
- a.call(void 0, h);
29
- },
30
- [a]
31
- ), M = e.useCallback(
32
- (o) => {
33
- n && n.call(void 0, { syntheticEvent: o, value: null });
34
- },
35
- [n]
36
- ), S = e.useCallback(
37
- (o) => {
38
- r && r.call(void 0, { syntheticEvent: o, value: null });
39
- },
40
- [r]
41
- );
42
- return y ? k.createPortal(
43
- /* @__PURE__ */ e.createElement(L, { title: D, onClose: R }, p, /* @__PURE__ */ e.createElement(b, null, /* @__PURE__ */ e.createElement(d, { onClick: M }, C), /* @__PURE__ */ e.createElement(d, { onClick: S }, v))),
44
- document && document.body
45
- ) : null;
46
- });
16
+ const z = e.forwardRef(
17
+ (c, f) => {
18
+ const { onClose: a, onCancel: n, onConfirm: r } = c, i = e.useRef(null);
19
+ e.useImperativeHandle(i, () => ({ props: c })), e.useImperativeHandle(
20
+ f,
21
+ () => i.current
22
+ );
23
+ const t = E(), C = t.toLanguageString(s, l[s]), v = t.toLanguageString(m, l[m]), p = t.toLanguageString(u, l[u]), D = t.toLanguageString(g, l[g]), R = e.useCallback(
24
+ ({ syntheticEvent: o }) => {
25
+ if (!a)
26
+ return;
27
+ const h = {
28
+ syntheticEvent: o,
29
+ value: null,
30
+ target: i.current
31
+ };
32
+ a.call(void 0, h);
33
+ },
34
+ [a]
35
+ ), M = e.useCallback(
36
+ (o) => {
37
+ n && n.call(void 0, {
38
+ syntheticEvent: o,
39
+ value: null
40
+ });
41
+ },
42
+ [n]
43
+ ), S = e.useCallback(
44
+ (o) => {
45
+ r && r.call(void 0, {
46
+ syntheticEvent: o,
47
+ value: null
48
+ });
49
+ },
50
+ [r]
51
+ );
52
+ return y ? k.createPortal(
53
+ /* @__PURE__ */ e.createElement(L, { title: D, onClose: R }, p, /* @__PURE__ */ e.createElement(b, null, /* @__PURE__ */ e.createElement(d, { onClick: M }, C), /* @__PURE__ */ e.createElement(d, { onClick: S }, v))),
54
+ document && document.body
55
+ ) : null;
56
+ }
57
+ );
47
58
  z.displayName = "KendoReactSchedulerRemoveDialog";
48
59
  export {
49
60
  z as SchedulerRemoveDialog
@@ -11,38 +11,36 @@ import { Button as s } from "@progress/kendo-react-buttons";
11
11
  import { useLocalization as u } from "@progress/kendo-react-intl";
12
12
  import { moreEvents as r, messages as f } from "../messages/index.mjs";
13
13
  import { moreHorizontalIcon as d } from "@progress/kendo-svg-icons";
14
- const k = e.forwardRef((t, l) => {
15
- const n = e.useRef(null), o = e.useRef(null), a = u();
16
- e.useImperativeHandle(n, () => ({
17
- element: o.current && o.current.element,
18
- ...t
19
- })), e.useImperativeHandle(l, () => n.current);
20
- const c = e.useCallback(
21
- (i) => {
22
- !t.onClick || !n.current || t.onClick.call(void 0, {
23
- target: n.current,
24
- syntheticEvent: i
25
- });
26
- },
27
- [
28
- n,
29
- t.slot,
30
- t.onClick
31
- ]
32
- ), m = a.toLanguageString(r, f[r]);
33
- return /* @__PURE__ */ e.createElement(
34
- s,
35
- {
36
- ref: o,
37
- tabIndex: -1,
38
- className: "k-more-events",
39
- onClick: c,
40
- "aria-label": m,
41
- icon: "more-horizontal",
42
- svgIcon: d
43
- }
44
- );
45
- });
14
+ const k = e.forwardRef(
15
+ (t, l) => {
16
+ const n = e.useRef(null), o = e.useRef(null), a = u();
17
+ e.useImperativeHandle(n, () => ({
18
+ element: o.current && o.current.element,
19
+ ...t
20
+ })), e.useImperativeHandle(l, () => n.current);
21
+ const c = e.useCallback(
22
+ (i) => {
23
+ !t.onClick || !n.current || t.onClick.call(void 0, {
24
+ target: n.current,
25
+ syntheticEvent: i
26
+ });
27
+ },
28
+ [n, t.slot, t.onClick]
29
+ ), m = a.toLanguageString(r, f[r]);
30
+ return /* @__PURE__ */ e.createElement(
31
+ s,
32
+ {
33
+ ref: o,
34
+ tabIndex: -1,
35
+ className: "k-more-events",
36
+ onClick: c,
37
+ "aria-label": m,
38
+ icon: "more-horizontal",
39
+ svgIcon: d
40
+ }
41
+ );
42
+ }
43
+ );
46
44
  k.displayName = "KendoReactSchedulerShowMoreItemsButton";
47
45
  export {
48
46
  k as ShowMoreItemsButton
@@ -10,10 +10,7 @@ import * as e from "react";
10
10
  import { useInternationalization as u } from "@progress/kendo-react-intl";
11
11
  import { classNames as f } from "@progress/kendo-react-common";
12
12
  const i = e.forwardRef((t, m) => {
13
- const {
14
- as: n = l.as,
15
- ...s
16
- } = t, a = e.useRef(null), r = e.useRef(null), c = u(), o = e.useMemo(
13
+ const { as: n = l.as, ...s } = t, a = e.useRef(null), r = e.useRef(null), c = u(), o = e.useMemo(
17
14
  () => f("k-scheduler-cell k-heading-cell", t.className),
18
15
  [t.className]
19
16
  );
@@ -27,10 +24,7 @@ const i = e.forwardRef((t, m) => {
27
24
  ...s,
28
25
  className: o
29
26
  },
30
- c.formatDate(
31
- t.date,
32
- t.format ? t.format : l.format
33
- )
27
+ c.formatDate(t.date, t.format ? t.format : l.format)
34
28
  );
35
29
  }), l = {
36
30
  as: e.forwardRef(({ as: t, format: m, start: n, end: s, ...a }, r) => /* @__PURE__ */ e.createElement("div", { ...a, ref: r })),
@@ -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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),i=require("@progress/kendo-react-common"),f=require("@progress/kendo-react-buttons");function d(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const t=d(m),b=t.forwardRef((e,n)=>{const{className:r,style:o,...l}=e,c=t.useRef(null),a=t.useRef(null);t.useImperativeHandle(c,()=>({element:a.current,props:e})),t.useImperativeHandle(n,()=>c.current);const u=t.useMemo(()=>i.classNames("k-scheduler-footer",e.className),[e.className]);return t.createElement(f.Toolbar,{ref:s=>{s&&(a.current=s.element)},className:u,style:{boxShadow:"none",...o},...l},e.children)});exports.SchedulerFooter=b;
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),i=require("@progress/kendo-react-common"),f=require("@progress/kendo-react-buttons");function b(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const t=b(d),s=t.forwardRef((e,n)=>{const{className:r,style:o,...u}=e,c=t.useRef(null),a=t.useRef(null);t.useImperativeHandle(c,()=>({element:a.current,props:e})),t.useImperativeHandle(n,()=>c.current);const m=t.useMemo(()=>i.classNames("k-scheduler-footer",e.className),[e.className]);return t.createElement(f.Toolbar,{ref:l=>{l&&(a.current=l.element)},className:m,style:{boxShadow:"none",...o},...u},e.children)});s.displayName="KendoReactSchedulerFooter";exports.SchedulerFooter=s;
@@ -9,27 +9,26 @@
9
9
  import * as e from "react";
10
10
  import { classNames as m } from "@progress/kendo-react-common";
11
11
  import { Toolbar as u } from "@progress/kendo-react-buttons";
12
- const N = e.forwardRef((t, o) => {
13
- const {
14
- className: f,
15
- style: a,
16
- ...n
17
- } = t, r = e.useRef(null), s = e.useRef(null);
18
- e.useImperativeHandle(r, () => ({ element: s.current, props: t })), e.useImperativeHandle(o, () => r.current);
19
- const c = e.useMemo(() => m("k-scheduler-footer", t.className), [t.className]);
20
- return /* @__PURE__ */ e.createElement(
21
- u,
22
- {
23
- ref: (l) => {
24
- l && (s.current = l.element);
12
+ const f = e.forwardRef(
13
+ (t, a) => {
14
+ const { className: d, style: l, ...n } = t, r = e.useRef(null), o = e.useRef(null);
15
+ e.useImperativeHandle(r, () => ({ element: o.current, props: t })), e.useImperativeHandle(a, () => r.current);
16
+ const c = e.useMemo(() => m("k-scheduler-footer", t.className), [t.className]);
17
+ return /* @__PURE__ */ e.createElement(
18
+ u,
19
+ {
20
+ ref: (s) => {
21
+ s && (o.current = s.element);
22
+ },
23
+ className: c,
24
+ style: { boxShadow: "none", ...l },
25
+ ...n
25
26
  },
26
- className: c,
27
- style: { boxShadow: "none", ...a },
28
- ...n
29
- },
30
- t.children
31
- );
32
- });
27
+ t.children
28
+ );
29
+ }
30
+ );
31
+ f.displayName = "KendoReactSchedulerFooter";
33
32
  export {
34
- N as SchedulerFooter
33
+ f as SchedulerFooter
35
34
  };
@@ -9,23 +9,22 @@
9
9
  import * as e from "react";
10
10
  import { ToolbarItem as m } from "@progress/kendo-react-buttons";
11
11
  import { classNames as o } from "@progress/kendo-react-common";
12
- const i = e.forwardRef((r, s) => {
13
- const {
14
- className: a,
15
- ...l
16
- } = r, t = e.useRef(null);
17
- return e.useImperativeHandle(s, () => ({ element: t.current, props: r })), /* @__PURE__ */ e.createElement(
18
- m,
19
- {
20
- ref: (n) => {
21
- n && (t.current = n.element);
12
+ const i = e.forwardRef(
13
+ (r, s) => {
14
+ const { className: a, ...l } = r, t = e.useRef(null);
15
+ return e.useImperativeHandle(s, () => ({ element: t.current, props: r })), /* @__PURE__ */ e.createElement(
16
+ m,
17
+ {
18
+ ref: (n) => {
19
+ n && (t.current = n.element);
20
+ },
21
+ className: o("k-scheduler-navigation", a),
22
+ ...l
22
23
  },
23
- className: o("k-scheduler-navigation", a),
24
- ...l
25
- },
26
- r.children
27
- );
28
- });
24
+ r.children
25
+ );
26
+ }
27
+ );
29
28
  export {
30
29
  i as BusinessHours
31
30
  };
@@ -9,26 +9,25 @@
9
9
  import * as e from "react";
10
10
  import { classNames as o } from "@progress/kendo-react-common";
11
11
  import { Toolbar as u } from "@progress/kendo-react-buttons";
12
- const d = e.forwardRef((r, s) => {
13
- const {
14
- className: t,
15
- ...c
16
- } = r, a = e.useRef(null), l = e.useRef(null);
17
- e.useImperativeHandle(l, () => ({ element: a.current, props: r })), e.useImperativeHandle(s, () => l.current);
18
- const m = e.useMemo(() => o("k-scheduler-toolbar", t), [t]);
19
- return /* @__PURE__ */ e.createElement(
20
- u,
21
- {
22
- id: r.id,
23
- ref: (n) => {
24
- n && (a.current = n.element);
12
+ const d = e.forwardRef(
13
+ (r, s) => {
14
+ const { className: t, ...c } = r, a = e.useRef(null), l = e.useRef(null);
15
+ e.useImperativeHandle(l, () => ({ element: a.current, props: r })), e.useImperativeHandle(s, () => l.current);
16
+ const m = e.useMemo(() => o("k-scheduler-toolbar", t), [t]);
17
+ return /* @__PURE__ */ e.createElement(
18
+ u,
19
+ {
20
+ id: r.id,
21
+ ref: (n) => {
22
+ n && (a.current = n.element);
23
+ },
24
+ className: m,
25
+ ...c
25
26
  },
26
- className: m,
27
- ...c
28
- },
29
- r.children
30
- );
31
- });
27
+ r.children
28
+ );
29
+ }
30
+ );
32
31
  d.displayName = "KendoReactSchedulerHeader";
33
32
  export {
34
33
  d as SchedulerHeader
@@ -19,10 +19,7 @@ import { toUTCDateTime as G } from "../../../utils/index.mjs";
19
19
  const J = e.forwardRef((s, b) => {
20
20
  var k;
21
21
  const u = e.useRef(null), i = e.useRef(null);
22
- e.useImperativeHandle(
23
- b,
24
- () => u.current
25
- );
22
+ e.useImperativeHandle(b, () => u.current);
26
23
  const { timezone: d } = L(), x = S.fromLocalDate(s.value, d), z = U(x), m = Y(), n = _(m), [E, F] = e.useState("desktop"), [a, f] = e.useState(!1), [C, g] = e.useState(!1), p = A(), { dateFormat: R, shortDateFormat: w } = Z(), t = j(), [c] = q(), l = t.end.getTime() - t.start.getTime() > V * 27, M = p.format(
27
24
  R,
28
25
  l ? c : t.zonedStart,
@@ -31,22 +28,13 @@ const J = e.forwardRef((s, b) => {
31
28
  w,
32
29
  l ? c : t.zonedStart,
33
30
  l ? c : t.zonedEnd.addDays(-1)
34
- ), B = e.useCallback(
35
- () => {
36
- f(!a);
37
- },
38
- [a]
39
- ), I = e.useCallback(
40
- () => {
41
- g(!0);
42
- },
43
- []
44
- ), P = e.useCallback(
45
- () => {
46
- f(!1), g(!1);
47
- },
48
- []
49
- ), y = e.useCallback(
31
+ ), B = e.useCallback(() => {
32
+ f(!a);
33
+ }, [a]), I = e.useCallback(() => {
34
+ g(!0);
35
+ }, []), P = e.useCallback(() => {
36
+ f(!1), g(!1);
37
+ }, []), y = e.useCallback(
50
38
  (o) => {
51
39
  if (s.onChange) {
52
40
  const r = S.fromUTCDate(G(o.value), d);
@@ -67,12 +55,9 @@ const J = e.forwardRef((s, b) => {
67
55
  return r && r.observe(m.current), () => {
68
56
  o && r.disconnect();
69
57
  };
70
- }, [h, m, n]), e.useEffect(
71
- () => {
72
- a && C && i.current && i.current.focus();
73
- },
74
- [C, a]
75
- );
58
+ }, [h, m, n]), e.useEffect(() => {
59
+ a && C && i.current && i.current.focus();
60
+ }, [C, a]);
76
61
  const { onFocus: v, onBlur: D } = H({ onFocus: I, onBlur: P });
77
62
  return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
78
63
  O,
@@ -89,23 +74,7 @@ const J = e.forwardRef((s, b) => {
89
74
  onClick: B
90
75
  },
91
76
  E === "desktop" ? M : T
92
- ), /* @__PURE__ */ e.createElement(
93
- W,
94
- {
95
- anchor: (k = u.current) == null ? void 0 : k.element,
96
- show: a
97
- },
98
- /* @__PURE__ */ e.createElement(
99
- N,
100
- {
101
- ref: i,
102
- onFocus: v,
103
- onBlur: D,
104
- onChange: y,
105
- value: z
106
- }
107
- )
108
- ));
77
+ ), /* @__PURE__ */ e.createElement(W, { anchor: (k = u.current) == null ? void 0 : k.element, show: a }, /* @__PURE__ */ e.createElement(N, { ref: i, onFocus: v, onBlur: D, onChange: y, value: z })));
109
78
  });
110
79
  J.displayName = "KendoReactSchedulerNavigationDatePicker";
111
80
  export {
@@ -9,23 +9,22 @@
9
9
  import * as e from "react";
10
10
  import { ToolbarItem as m } from "@progress/kendo-react-buttons";
11
11
  import { classNames as o } from "@progress/kendo-react-common";
12
- const s = e.forwardRef((r, l) => {
13
- const {
14
- className: n,
15
- ...c
16
- } = r, t = e.useRef(null);
17
- return e.useImperativeHandle(l, () => ({ element: t.current, props: r })), /* @__PURE__ */ e.createElement(
18
- m,
19
- {
20
- ref: (a) => {
21
- a && (t.current = a.element);
12
+ const s = e.forwardRef(
13
+ (r, l) => {
14
+ const { className: n, ...c } = r, t = e.useRef(null);
15
+ return e.useImperativeHandle(l, () => ({ element: t.current, props: r })), /* @__PURE__ */ e.createElement(
16
+ m,
17
+ {
18
+ ref: (a) => {
19
+ a && (t.current = a.element);
20
+ },
21
+ className: o(n),
22
+ ...c
22
23
  },
23
- className: o(n),
24
- ...c
25
- },
26
- r.children
27
- );
28
- });
24
+ r.children
25
+ );
26
+ }
27
+ );
29
28
  s.displayName = "KendoReactSchedulerSchedulerNavigation";
30
29
  export {
31
30
  s as SchedulerNavigation
@@ -9,23 +9,22 @@
9
9
  import * as e from "react";
10
10
  import { ToolbarItem as n } from "@progress/kendo-react-buttons";
11
11
  import { classNames as o } from "@progress/kendo-react-common";
12
- const s = e.forwardRef((r, c) => {
13
- const {
14
- className: a,
15
- ...m
16
- } = r, t = e.useRef(null);
17
- return e.useImperativeHandle(c, () => ({ element: t.current, props: r })), /* @__PURE__ */ e.createElement(
18
- n,
19
- {
20
- ref: (l) => {
21
- l && (t.current = l.element);
12
+ const s = e.forwardRef(
13
+ (r, c) => {
14
+ const { className: a, ...m } = r, t = e.useRef(null);
15
+ return e.useImperativeHandle(c, () => ({ element: t.current, props: r })), /* @__PURE__ */ e.createElement(
16
+ n,
17
+ {
18
+ ref: (l) => {
19
+ l && (t.current = l.element);
20
+ },
21
+ className: o("k-scheduler-views", a),
22
+ ...m
22
23
  },
23
- className: o("k-scheduler-views", a),
24
- ...m
25
- },
26
- r.children
27
- );
28
- });
24
+ r.children
25
+ );
26
+ }
27
+ );
29
28
  s.displayName = "KendoReactSchedulerViewSelector";
30
29
  export {
31
30
  s as SchedulerViewSelector
@@ -14,12 +14,9 @@ const s = (e) => {
14
14
  const [l, i] = u(), o = m(), n = t.useMemo(
15
15
  () => typeof e.view.title == "function" ? e.view.title.call(void 0, o) : e.view.title,
16
16
  [e.view.title, o]
17
- ), a = t.useCallback(
18
- () => {
19
- e.view.name && i(e.view.name);
20
- },
21
- [i, e.view.name]
22
- );
17
+ ), a = t.useCallback(() => {
18
+ e.view.name && i(e.view.name);
19
+ }, [i, e.view.name]);
23
20
  return /* @__PURE__ */ t.createElement(
24
21
  c,
25
22
  {
@@ -31,13 +31,10 @@ const V = t.forwardRef(() => {
31
31
  }, []), /* @__PURE__ */ t.createElement(
32
32
  "div",
33
33
  {
34
- className: b(
35
- "k-toolbar-button-group k-button-group k-button-group-solid",
36
- {
37
- "k-scheduler-views": o === "desktop",
38
- "k-scheduler-tools": o === "mobile"
39
- }
40
- ),
34
+ className: b("k-toolbar-button-group k-button-group k-button-group-solid", {
35
+ "k-scheduler-views": o === "desktop",
36
+ "k-scheduler-tools": o === "mobile"
37
+ }),
41
38
  role: "group",
42
39
  ref: s
43
40
  },
@@ -18,11 +18,19 @@ const r = e.createContext([]), I = () => e.useContext(r);
18
18
  r.displayName = "SchedulerViewsContext";
19
19
  const a = e.createContext(R), U = () => e.useContext(a);
20
20
  a.displayName = "SchedulerFieldsContext";
21
- const c = e.createContext({ dateFormat: "{0:D}", shortDateFormat: "{0:d}" }), M = () => e.useContext(c);
21
+ const c = e.createContext({
22
+ dateFormat: "{0:D}",
23
+ shortDateFormat: "{0:d}"
24
+ }), M = () => e.useContext(c);
22
25
  c.displayName = "SchedulerDateFormatContext";
23
26
  const l = e.createContext([A]), T = () => e.useContext(l);
24
27
  l.displayName = "SchedulerGroupsContext";
25
- const u = e.createContext({ start: /* @__PURE__ */ new Date(), end: /* @__PURE__ */ new Date(), zonedStart: i.fromLocalDate(/* @__PURE__ */ new Date()), zonedEnd: i.fromLocalDate(/* @__PURE__ */ new Date()) }), Z = () => e.useContext(u);
28
+ const u = e.createContext({
29
+ start: /* @__PURE__ */ new Date(),
30
+ end: /* @__PURE__ */ new Date(),
31
+ zonedStart: i.fromLocalDate(/* @__PURE__ */ new Date()),
32
+ zonedEnd: i.fromLocalDate(/* @__PURE__ */ new Date())
33
+ }), Z = () => e.useContext(u);
26
34
  u.displayName = "SchedulerDateRangeContext";
27
35
  const s = e.createContext(null), _ = () => e.useContext(s);
28
36
  s.displayName = "SchedulerOrientationContext";
@@ -10,13 +10,29 @@ import * as e from "react";
10
10
  import { noop as t } from "@progress/kendo-react-common";
11
11
  const o = e.createContext([null]), S = () => e.useContext(o);
12
12
  o.displayName = "SchedulerEditItemPropsContext";
13
- const r = e.createContext([null, t, t]), v = () => e.useContext(r);
13
+ const r = e.createContext([
14
+ null,
15
+ t,
16
+ t
17
+ ]), v = () => e.useContext(r);
14
18
  r.displayName = "SchedulerEditItemFormItemContext";
15
- const n = e.createContext([null, t, t]), p = () => e.useContext(n);
19
+ const n = e.createContext([
20
+ null,
21
+ t,
22
+ t
23
+ ]), p = () => e.useContext(n);
16
24
  n.displayName = "SchedulerEditItemDragItemContext";
17
- const c = e.createContext([null, t, t]), P = () => e.useContext(c);
25
+ const c = e.createContext([
26
+ null,
27
+ t,
28
+ t
29
+ ]), P = () => e.useContext(c);
18
30
  c.displayName = "SchedulerEditItemResizeItemContext";
19
- const l = e.createContext([null, t, t]), R = () => e.useContext(l);
31
+ const l = e.createContext([
32
+ null,
33
+ t,
34
+ t
35
+ ]), R = () => e.useContext(l);
20
36
  l.displayName = "SchedulerEditItemRemoveItemContext";
21
37
  const m = e.createContext([!1, t, t]), g = () => e.useContext(m);
22
38
  m.displayName = "SchedulerEditItemShowRemoveDialogContext";
@@ -9,13 +9,11 @@
9
9
  import * as e from "react";
10
10
  const t = e.createContext([null]), c = () => e.useContext(t);
11
11
  t.displayName = "SchedulerEditSlotPropsContext";
12
- const o = e.createContext([null]), d = () => e.useContext(o);
12
+ const o = e.createContext([
13
+ null
14
+ ]), d = () => e.useContext(o);
13
15
  o.displayName = "SchedulerEditSlotFormItemContext";
14
- const u = ({
15
- props: r,
16
- form: l,
17
- children: n
18
- }) => /* @__PURE__ */ e.createElement(t.Provider, { value: r }, /* @__PURE__ */ e.createElement(o.Provider, { value: l }, n));
16
+ const u = ({ props: r, form: l, children: n }) => /* @__PURE__ */ e.createElement(t.Provider, { value: r }, /* @__PURE__ */ e.createElement(o.Provider, { value: l }, n));
19
17
  export {
20
18
  u as SchedulerEditSlotContext,
21
19
  o as SchedulerEditSlotFormItemContext,
@@ -7,7 +7,9 @@
7
7
  */
8
8
  "use client";
9
9
  import * as e from "react";
10
- const o = e.createContext([null]), r = e.createContext([!1]), c = e.createContext([!1]), a = (t) => /* @__PURE__ */ e.createElement(o.Provider, { value: t.remove }, /* @__PURE__ */ e.createElement(r.Provider, { value: t.showRemoveDialog }, /* @__PURE__ */ e.createElement(c.Provider, { value: t.showOccurrenceDialog }, t.children)));
10
+ const o = e.createContext([
11
+ null
12
+ ]), r = e.createContext([!1]), c = e.createContext([!1]), a = (t) => /* @__PURE__ */ e.createElement(o.Provider, { value: t.remove }, /* @__PURE__ */ e.createElement(r.Provider, { value: t.showRemoveDialog }, /* @__PURE__ */ e.createElement(c.Provider, { value: t.showOccurrenceDialog }, t.children)));
11
13
  export {
12
14
  a as SchedulerEditTaskContext,
13
15
  o as SchedulerEditTaskRemoveItemContext,