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

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
@@ -7,124 +7,128 @@
7
7
  */
8
8
  "use client";
9
9
  import * as r from "react";
10
- import { SchedulerItem as le } from "./SchedulerItem.mjs";
11
- import { first as W, last as se, calculateOrder as oe, intersects as $ } from "../utils/index.mjs";
12
- import { getRect as w, setRect as q } from "../views/common/utils.mjs";
10
+ import { SchedulerItem as ce } from "./SchedulerItem.mjs";
11
+ import { first as $, last as le, calculateOrder as se, intersects as q } from "../utils/index.mjs";
12
+ import { getRect as R, setRect as B } from "../views/common/utils.mjs";
13
13
  import { BORDER_WIDTH as d } from "../constants/index.mjs";
14
- import { useInternationalization as ae } from "@progress/kendo-react-intl";
15
- import { SchedulerItemContent as B } from "./SchedulerItemContent.mjs";
16
- import { useDir as me, IconWrap as A } from "@progress/kendo-react-common";
17
- import { caretAltRightIcon as ue, caretAltLeftIcon as de, arrowRotateCwIcon as fe, nonRecurrenceIcon as he } from "@progress/kendo-svg-icons";
18
- import { useSchedulerViewItemsContext as ge, useSchedulerViewSlotsContext as Se } from "../context/SchedulerViewContext.mjs";
19
- import { useSchedulerElementContext as Ie } from "../context/SchedulerContext.mjs";
20
- import { useRowSync as we } from "../hooks/useRowSync.mjs";
21
- const Re = 1, ve = r.forwardRef((e, G) => {
22
- const { item: K, _ref: j, itemRef: J, ...Q } = e, R = r.useRef(), c = r.useRef(null), P = r.useRef(null), T = r.useRef(null);
23
- r.useImperativeHandle(P, () => ({ props: e, element: c.current && c.current.element })), r.useImperativeHandle(G, () => P.current), r.useImperativeHandle(j, () => c.current), r.useImperativeHandle(J, () => c.current);
24
- const U = K || Ee.item, v = ae(), [X] = ge(), [D] = Se(), g = Ie(), [Y, E] = r.useState(!0), [Z, p] = r.useState(!1), [ee, te] = r.useState(0), k = me(g), M = r.useMemo(
25
- () => e.isAllDay ? v.toString(e.zonedStart, "t") : v.format("{0:t} - {1:t}", e.zonedStart, e.zonedEnd),
26
- [v, e.isAllDay, e.zonedEnd, e.zonedStart]
27
- ), _ = r.useMemo(() => `(${M}): ${e.title}`, [M, e.title]), C = (n, t) => {
28
- let i = 1;
29
- return n.forEach((o) => {
30
- const m = t.filter((f) => S(o.current.props, f.props));
31
- m.length > i && (i = m.length);
32
- }), i;
33
- }, ne = (n, t) => n.map((o) => t.filter((m) => S(o.current.props, m.props))), S = (n, t) => $(n.start, n.end, t.start, t.end) && n.group.index === t.group.index && n.range.index === t.range.index && (e.ignoreIsAllDay || n.isAllDay === t.isAllDay), b = () => {
34
- const n = (D || []).filter((o) => o.current && S(o.current.props, e));
35
- if (n.length === 0) {
36
- E(!1);
37
- return;
38
- }
39
- const t = W(n);
40
- if (!t.current || !c.current)
41
- return;
42
- const i = w(t.current.element);
43
- q(c.current.element, i);
44
- }, y = () => {
45
- const n = (D || []).filter((s) => s.current && S(s.current.props, e)), t = c.current && c.current.element;
46
- if (!t || !n.length)
47
- return;
48
- const i = W(n), o = se(n);
49
- if (!i.current || !c.current || !o.current)
50
- return;
51
- const m = [], f = [], x = [], V = w(i.current.element), N = (e.vertical ? V.height : V.width) / (i.current.props.end.getTime() - i.current.props.start.getTime()), I = (e.start.getTime() - i.current.props.start.getTime()) * N, F = (Math.min(e.end.getTime(), o.current.props.end.getTime()) - Math.max(e.start.getTime(), i.current.props.start.getTime())) * N;
52
- (X || []).forEach((s) => {
53
- s.current && (s.current.props.dragHint ? f.push(s.current) : s.current.props.resizeHint ? x.push(s.current) : m.push(s.current));
54
- });
55
- const h = e.dragHint || e.resizeHint ? oe(c.current, e.dragHint ? f : x, n, e.ignoreIsAllDay) : e.order || 0;
56
- let u = e.dragHint || e.resizeHint ? C(n, e.dragHint ? f : x) : C(n, m);
57
- const ie = ne(n, m);
58
- let H = 0;
59
- const l = w(t);
60
- if (ie.forEach((s) => {
61
- let z = 0;
62
- s.forEach((a) => {
63
- $(a.props.start, a.props.end, e.start, e.end) && !(e.dragHint || e.resizeHint) && a.props._maxSiblingsPerSlot && a.props._maxSiblingsPerSlot > u && a.element !== t && (u = a.props._maxSiblingsPerSlot);
64
- const L = w(a.element);
65
- a.props.order !== null && a.props.order < h && (z = L.top + L.height - l.top - d * h + Re);
66
- }), z > H && (H = z);
67
- }), n.length === 0) {
68
- E(!1);
69
- return;
70
- }
71
- const ce = 20;
72
- l.width = e.vertical ? l.width / u - d - ce / u : F + d, l.height = e.vertical ? F - d : (e.resizeHint || e.dragHint) && u <= 1 ? l.height : e.style && e.style.height ? e.style.height : 25, l.left = e.vertical ? l.left + h * l.width + d * h : l.left + (I < 0 ? 0 : I), l.top = e.vertical ? l.top + (I < 0 ? 0 : I) : l.top + H + d * h, te(u), q(t, l), p(!0), E(!0);
73
- }, O = r.useCallback(
74
- (n) => {
75
- const t = n && n[0], i = T.current;
76
- R.current !== void 0 && window.cancelAnimationFrame(R.current), i && t && (i.width !== t.contentRect.width || i.height !== t.contentRect.height) && (R.current = window.requestAnimationFrame(() => {
77
- b(), y();
78
- })), T.current = { width: t.contentRect.width, height: t.contentRect.height };
79
- },
80
- [b, y]
81
- );
82
- r.useEffect(b), r.useEffect(y);
83
- const re = c.current && c.current.element ? c.current.element.closest(".k-scheduler-layout") : null;
84
- return we({
85
- element: re,
86
- selector: ".k-resource-row",
87
- horizontalAttribute: "data-depth-index",
88
- verticalAttribute: "data-resource-index",
89
- applyTo: ".k-resource-cell",
90
- syncHeight: e.isLast
91
- }), r.useEffect(
92
- () => {
14
+ import { useInternationalization as oe } from "@progress/kendo-react-intl";
15
+ import { SchedulerItemContent as G } from "./SchedulerItemContent.mjs";
16
+ import { useDir as ae, IconWrap as A } from "@progress/kendo-react-common";
17
+ import { caretAltRightIcon as ue, caretAltLeftIcon as me, arrowRotateCwIcon as de, nonRecurrenceIcon as fe } from "@progress/kendo-svg-icons";
18
+ import { useSchedulerViewItemsContext as he, useSchedulerViewSlotsContext as ge } from "../context/SchedulerViewContext.mjs";
19
+ import { useSchedulerElementContext as Se } from "../context/SchedulerContext.mjs";
20
+ import { useRowSync as Ie } from "../hooks/useRowSync.mjs";
21
+ const Re = 1, we = r.forwardRef(
22
+ (e, K) => {
23
+ const { item: j, _ref: J, itemRef: Q, ...U } = e, w = r.useRef(), c = r.useRef(null), P = r.useRef(null), T = r.useRef(null);
24
+ r.useImperativeHandle(P, () => ({ props: e, element: c.current && c.current.element })), r.useImperativeHandle(K, () => P.current), r.useImperativeHandle(J, () => c.current), r.useImperativeHandle(Q, () => c.current);
25
+ const X = j || ve.item, v = oe(), [Y] = he(), [D] = ge(), g = Se(), [Z, E] = r.useState(!0), [p, ee] = r.useState(!1), k = r.useRef(0), _ = ae(g), C = r.useMemo(
26
+ () => e.isAllDay ? v.toString(e.zonedStart, "t") : v.format("{0:t} - {1:t}", e.zonedStart, e.zonedEnd),
27
+ [v, e.isAllDay, e.zonedEnd, e.zonedStart]
28
+ ), M = r.useMemo(() => `(${C}): ${e.title}`, [C, e.title]), O = (n, t) => {
29
+ let i = 1;
30
+ return n.forEach((o) => {
31
+ const u = t.filter((f) => S(o.current.props, f.props));
32
+ u.length > i && (i = u.length);
33
+ }), i;
34
+ }, te = (n, t) => n.map((o) => t.filter((u) => S(o.current.props, u.props))), S = (n, t) => q(n.start, n.end, t.start, t.end) && n.group.index === t.group.index && n.range.index === t.range.index && (e.ignoreIsAllDay || n.isAllDay === t.isAllDay), y = () => {
35
+ const n = (D || []).filter((o) => o.current && S(o.current.props, e));
36
+ if (n.length === 0) {
37
+ E(!1);
38
+ return;
39
+ }
40
+ const t = $(n);
41
+ if (!t.current || !c.current)
42
+ return;
43
+ const i = R(t.current.element);
44
+ B(c.current.element, i);
45
+ }, b = () => {
46
+ const n = (D || []).filter((s) => s.current && S(s.current.props, e)), t = c.current && c.current.element;
47
+ if (!t || !n.length)
48
+ return;
49
+ const i = $(n), o = le(n);
50
+ if (!i.current || !c.current || !o.current)
51
+ return;
52
+ const u = [], f = [], H = [], N = R(i.current.element), F = (e.vertical ? N.height : N.width) / (i.current.props.end.getTime() - i.current.props.start.getTime()), I = (e.start.getTime() - i.current.props.start.getTime()) * F, L = (Math.min(e.end.getTime(), o.current.props.end.getTime()) - Math.max(e.start.getTime(), i.current.props.start.getTime())) * F;
53
+ (Y || []).forEach((s) => {
54
+ s.current && (s.current.props.dragHint ? f.push(s.current) : s.current.props.resizeHint ? H.push(s.current) : u.push(s.current));
55
+ });
56
+ const h = e.dragHint || e.resizeHint ? se(
57
+ c.current,
58
+ e.dragHint ? f : H,
59
+ n,
60
+ e.ignoreIsAllDay
61
+ ) : e.order || 0;
62
+ let m = e.dragHint || e.resizeHint ? O(n, e.dragHint ? f : H) : O(n, u);
63
+ const re = te(n, u);
64
+ let x = 0;
65
+ const l = R(t);
66
+ if (re.forEach((s) => {
67
+ let z = 0;
68
+ s.forEach((a) => {
69
+ q(a.props.start, a.props.end, e.start, e.end) && !(e.dragHint || e.resizeHint) && a._maxSiblingsPerSlot && a._maxSiblingsPerSlot > m && a.element !== t && (m = a._maxSiblingsPerSlot);
70
+ const W = R(a.element);
71
+ a.props.order !== null && a.props.order < h && (z = W.top + W.height - l.top - d * h + Re);
72
+ }), z > x && (x = z);
73
+ }), n.length === 0) {
74
+ E(!1);
75
+ return;
76
+ }
77
+ const ie = 20;
78
+ l.width = e.vertical ? l.width / m - d - ie / m : L + d, l.height = e.vertical ? L - d : (e.resizeHint || e.dragHint) && m <= 1 ? l.height : e.style && e.style.height ? e.style.height : 25, l.left = e.vertical ? l.left + h * l.width + d * h : l.left + (I < 0 ? 0 : I), l.top = e.vertical ? l.top + (I < 0 ? 0 : I) : l.top + x + d * h, k.current = m, B(t, l), ee(!0), E(!0);
79
+ }, V = r.useCallback(
80
+ (n) => {
81
+ const t = n && n[0], i = T.current;
82
+ w.current !== void 0 && window.cancelAnimationFrame(w.current), i && t && (i.width !== t.contentRect.width || i.height !== t.contentRect.height) && (w.current = window.requestAnimationFrame(() => {
83
+ y(), b();
84
+ })), T.current = { width: t.contentRect.width, height: t.contentRect.height };
85
+ },
86
+ [y, b]
87
+ );
88
+ r.useEffect(y), r.useEffect(b);
89
+ const ne = c.current && c.current.element ? c.current.element.closest(".k-scheduler-layout") : null;
90
+ return Ie({
91
+ element: ne,
92
+ selector: ".k-resource-row",
93
+ horizontalAttribute: "data-depth-index",
94
+ verticalAttribute: "data-resource-index",
95
+ applyTo: ".k-resource-cell",
96
+ syncHeight: e.isLast
97
+ }), r.useEffect(() => {
93
98
  if (!g.current)
94
99
  return;
95
- const n = window.ResizeObserver, t = n && new n(O);
100
+ const n = window.ResizeObserver, t = n && new n(V);
96
101
  return t && t.observe(g.current), () => {
97
102
  t && t.disconnect();
98
103
  };
99
- },
100
- [O, g]
101
- ), /* @__PURE__ */ r.createElement(
102
- U,
103
- {
104
- ...Q,
105
- _ref: c,
106
- _maxSiblingsPerSlot: ee,
107
- itemRef: c,
108
- style: {
109
- visibility: Z ? void 0 : "hidden",
110
- display: Y ? void 0 : "none",
111
- ...e.style
112
- }
113
- },
114
- !e.resizeHint && /* @__PURE__ */ r.createElement("span", { className: "k-event-actions" }, e.tail && /* @__PURE__ */ r.createElement(
115
- A,
104
+ }, [V, g]), /* @__PURE__ */ r.createElement(
105
+ X,
116
106
  {
117
- name: k === "rtl" ? "caret-alt-right" : "caret-alt-left",
118
- icon: k === "rtl" ? ue : de
119
- }
120
- ), e.isRecurring && !e.isException && /* @__PURE__ */ r.createElement(A, { name: "reload", icon: fe }), !e.isRecurring && e.isException && /* @__PURE__ */ r.createElement(A, { name: "non-recurrence", icon: he })),
121
- !e.resizeHint && /* @__PURE__ */ r.createElement("div", { title: _ }, !e.isAllDay && /* @__PURE__ */ r.createElement(B, { className: "k-event-template k-event-time " }, _), /* @__PURE__ */ r.createElement(B, { className: "k-event-template" }, e.title))
122
- );
123
- }), Ee = {
124
- item: le
107
+ ...U,
108
+ _ref: c,
109
+ _maxSiblingsPerSlot: k,
110
+ itemRef: c,
111
+ style: {
112
+ visibility: p ? void 0 : "hidden",
113
+ display: Z ? void 0 : "none",
114
+ ...e.style
115
+ }
116
+ },
117
+ !e.resizeHint && /* @__PURE__ */ r.createElement("span", { className: "k-event-actions" }, e.tail && /* @__PURE__ */ r.createElement(
118
+ A,
119
+ {
120
+ name: _ === "rtl" ? "caret-alt-right" : "caret-alt-left",
121
+ icon: _ === "rtl" ? ue : me
122
+ }
123
+ ), e.isRecurring && !e.isException && /* @__PURE__ */ r.createElement(A, { name: "reload", icon: de }), !e.isRecurring && e.isException && /* @__PURE__ */ r.createElement(A, { name: "non-recurrence", icon: fe })),
124
+ !e.resizeHint && /* @__PURE__ */ r.createElement("div", { title: M }, !e.isAllDay && /* @__PURE__ */ r.createElement(G, { className: "k-event-template k-event-time " }, M), /* @__PURE__ */ r.createElement(G, { className: "k-event-template" }, e.title))
125
+ );
126
+ }
127
+ ), ve = {
128
+ item: ce
125
129
  };
126
- ve.displayName = "KendoReactSchedulerProportionalViewItem";
130
+ we.displayName = "KendoReactSchedulerProportionalViewItem";
127
131
  export {
128
- ve as SchedulerProportionalViewItem,
129
- Ee as schedulerProportionalViewItemDefaultProps
132
+ we as SchedulerProportionalViewItem,
133
+ ve as schedulerProportionalViewItemDefaultProps
130
134
  };
@@ -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 re=require("react"),ie=require("./SchedulerItem.js"),b=require("../utils/index.js"),S=require("../views/common/utils.js"),h=require("../constants/index.js"),ce=require("@progress/kendo-react-intl"),N=require("./SchedulerItemContent.js"),E=require("@progress/kendo-react-common"),v=require("@progress/kendo-svg-icons"),le=require("../hooks/useRowSync.js"),se=require("../hooks/useEditable.js"),B=require("../context/SchedulerViewContext.js"),oe=require("../context/SchedulerContext.js");function ae(e){const g=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const m in e)if(m!=="default"){const R=Object.getOwnPropertyDescriptor(e,m);Object.defineProperty(g,m,R.get?R:{enumerable:!0,get:()=>e[m]})}}return g.default=e,Object.freeze(g)}const n=ae(re),ue=1,j=n.forwardRef((e,g)=>{const{item:m,_ref:R,itemRef:$,...L}=e,y=n.useRef(),c=n.useRef(null),A=n.useRef(null),P=n.useRef(null),G=se.useEditable(e.editable);n.useImperativeHandle(A,()=>({props:e,element:c.current&&c.current.element})),n.useImperativeHandle(g,()=>A.current),n.useImperativeHandle(R,()=>c.current),n.useImperativeHandle($,()=>c.current);const K=m||F.item,D=ce.useInternationalization(),[J]=B.useSchedulerViewItemsContext(),[q]=B.useSchedulerViewSlotsContext(),I=oe.useSchedulerElementContext(),[Q,H]=n.useState(!0),[U,X]=n.useState(!1),[Y,Z]=n.useState(0),T=E.useDir(I),k=n.useMemo(()=>e.isAllDay?D.toString(e.zonedStart,"t"):D.format("{0:t} - {1:t}",e.zonedStart,e.zonedEnd),[D,e.isAllDay,e.zonedEnd,e.zonedStart]),C=n.useMemo(()=>`(${k}): ${e.title}`,[k,e.title]),V=(r,t)=>{let l=1;return r.forEach(o=>{const u=t.filter(d=>w(o.current.props,d.props));u.length>l&&(l=u.length)}),l},p=(r,t)=>r.map(o=>t.filter(u=>w(o.current.props,u.props))),w=(r,t)=>b.intersects(r.start,r.end,t.start,t.end)&&r.group.index===t.group.index&&r.range.index===t.range.index&&(e.ignoreIsAllDay||r.isAllDay===t.isAllDay),x=()=>{const r=(q||[]).filter(o=>o.current&&w(o.current.props,e));if(r.length===0){H(!1);return}const t=b.first(r);if(!t.current||!c.current)return;const l=S.getRect(t.current.element);S.setRect(c.current.element,l)},z=()=>{const r=c.current&&c.current.element;if(!r)return;const t=(q||[]).filter(s=>s.current&&w(s.current.props,e)),l=[],o=[],u=[];(J||[]).forEach(s=>{s.current&&(s.current.props.dragHint?o.push(s.current):s.current.props.resizeHint?u.push(s.current):l.push(s.current))});const d=e.dragHint||e.resizeHint?b.calculateOrder(c.current,e.dragHint?o:u,t,e.ignoreIsAllDay):e.order||0;let f=e.dragHint||e.resizeHint?V(t,e.dragHint?o:u):V(t,l);const te=p(t,l);let O=0;const i=S.getRect(r);if(te.forEach(s=>{let _=0;s.forEach(a=>{b.intersects(a.props.start,a.props.end,e.start,e.end)&&!(e.dragHint||e.resizeHint)&&a.props._maxSiblingsPerSlot&&a.props._maxSiblingsPerSlot>f&&a.element!==r&&(f=a.props._maxSiblingsPerSlot);const M=S.getRect(a.element);a.props.order!==null&&a.props.order<d&&(_=M.top+M.height-i.top-h.BORDER_WIDTH*d+ue)}),_>O&&(O=_)}),t.length===0){H(!1);return}const ne=G.add?20:0;i.width=e.vertical?i.width/f-h.BORDER_WIDTH-ne/f:i.width*t.length-h.BORDER_WIDTH,i.height=e.vertical?i.height*t.length-h.BORDER_WIDTH:(e.resizeHint||e.dragHint)&&f<=1?i.height:e.style&&e.style.height?e.style.height:25,i.left=e.vertical?i.left+d*i.width+h.BORDER_WIDTH*d:i.left,i.top=e.vertical?i.top:i.top+O+h.BORDER_WIDTH*d,Z(f),S.setRect(r,i),X(!0),H(!0)},W=n.useCallback(r=>{const t=r&&r[0],l=P.current;y.current!==void 0&&window.cancelAnimationFrame(y.current),l&&t&&(l.width!==t.contentRect.width||l.height!==t.contentRect.height)&&(y.current=window.requestAnimationFrame(()=>{x(),z()})),P.current={width:t.contentRect.width,height:t.contentRect.height}},[x,z]);n.useEffect(x),n.useEffect(z);const ee=c.current&&c.current.element?c.current.element.closest(".k-scheduler-layout"):null;return le.useRowSync({element:ee,selector:".k-resource-row",horizontalAttribute:"data-depth-index",verticalAttribute:"data-resource-index",applyTo:".k-resource-cell",syncHeight:e.isLast}),n.useEffect(()=>{if(!I.current)return;const r=window.ResizeObserver,t=r&&new r(W);return t&&t.observe(I.current),()=>{t&&t.disconnect()}},[W,I]),n.createElement(K,{...L,_ref:c,_maxSiblingsPerSlot:Y,itemRef:c,style:{visibility:U?void 0:"hidden",display:Q?void 0:"none",...e.style}},!e.resizeHint&&n.createElement("span",{className:"k-event-actions"},e.tail&&n.createElement(E.IconWrap,{name:T==="rtl"?"caret-alt-right":"caret-alt-left",icon:T==="rtl"?v.caretAltRightIcon:v.caretAltLeftIcon}),e.isRecurring&&!e.isException&&n.createElement(E.IconWrap,{name:"arrow-rotate-cw",icon:v.arrowRotateCwIcon}),!e.isRecurring&&e.isException&&n.createElement(E.IconWrap,{name:"arrows-no-repeat",icon:v.arrowsNoRepeatIcon})),!e.resizeHint&&n.createElement("div",{title:C},!e.isAllDay&&n.createElement(N.SchedulerItemContent,{className:"k-event-template k-event-time "},C),n.createElement(N.SchedulerItemContent,{className:"k-event-template"},e.title)))}),F={item:ie.SchedulerItem};j.displayName="KendoReactSchedulerViewItem";exports.SchedulerViewItem=j;exports.schedulerViewItemDefaultProps=F;
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ne=require("react"),re=require("./SchedulerItem.js"),b=require("../utils/index.js"),S=require("../views/common/utils.js"),h=require("../constants/index.js"),ie=require("@progress/kendo-react-intl"),M=require("./SchedulerItemContent.js"),E=require("@progress/kendo-react-common"),v=require("@progress/kendo-svg-icons"),ce=require("../hooks/useRowSync.js"),le=require("../hooks/useEditable.js"),j=require("../context/SchedulerViewContext.js"),se=require("../context/SchedulerContext.js");function oe(e){const g=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const m in e)if(m!=="default"){const R=Object.getOwnPropertyDescriptor(e,m);Object.defineProperty(g,m,R.get?R:{enumerable:!0,get:()=>e[m]})}}return g.default=e,Object.freeze(g)}const n=oe(ne),ae=1,F=n.forwardRef((e,g)=>{const{item:m,_ref:R,itemRef:L,...G}=e,y=n.useRef(),c=n.useRef(null),A=n.useRef(null),q=n.useRef(null),K=le.useEditable(e.editable);n.useImperativeHandle(A,()=>({props:e,element:c.current&&c.current.element})),n.useImperativeHandle(g,()=>A.current),n.useImperativeHandle(R,()=>c.current),n.useImperativeHandle(L,()=>c.current);const J=m||$.item,D=ie.useInternationalization(),[Q]=j.useSchedulerViewItemsContext(),[P]=j.useSchedulerViewSlotsContext(),I=se.useSchedulerElementContext(),[U,H]=n.useState(!0),[X,Y]=n.useState(!1),T=n.useRef(0),k=E.useDir(I),C=n.useMemo(()=>e.isAllDay?D.toString(e.zonedStart,"t"):D.format("{0:t} - {1:t}",e.zonedStart,e.zonedEnd),[D,e.isAllDay,e.zonedEnd,e.zonedStart]),V=n.useMemo(()=>`(${C}): ${e.title}`,[C,e.title]),W=(r,t)=>{let l=1;return r.forEach(o=>{const u=t.filter(d=>w(o.current.props,d.props));u.length>l&&(l=u.length)}),l},Z=(r,t)=>r.map(o=>t.filter(u=>w(o.current.props,u.props))),w=(r,t)=>b.intersects(r.start,r.end,t.start,t.end)&&r.group.index===t.group.index&&r.range.index===t.range.index&&(e.ignoreIsAllDay||r.isAllDay===t.isAllDay),x=()=>{const r=(P||[]).filter(o=>o.current&&w(o.current.props,e));if(r.length===0){H(!1);return}const t=b.first(r);if(!t.current||!c.current)return;const l=S.getRect(t.current.element);S.setRect(c.current.element,l)},z=()=>{const r=c.current&&c.current.element;if(!r)return;const t=(P||[]).filter(s=>s.current&&w(s.current.props,e)),l=[],o=[],u=[];(Q||[]).forEach(s=>{s.current&&(s.current.props.dragHint?o.push(s.current):s.current.props.resizeHint?u.push(s.current):l.push(s.current))});const d=e.dragHint||e.resizeHint?b.calculateOrder(c.current,e.dragHint?o:u,t,e.ignoreIsAllDay):e.order||0;let f=e.dragHint||e.resizeHint?W(t,e.dragHint?o:u):W(t,l);const ee=Z(t,l);let O=0;const i=S.getRect(r);if(ee.forEach(s=>{let _=0;s.forEach(a=>{b.intersects(a.props.start,a.props.end,e.start,e.end)&&!(e.dragHint||e.resizeHint)&&a._maxSiblingsPerSlot&&a._maxSiblingsPerSlot>f&&a.element!==r&&(f=a._maxSiblingsPerSlot);const B=S.getRect(a.element);a.props.order!==null&&a.props.order<d&&(_=B.top+B.height-i.top-h.BORDER_WIDTH*d+ae)}),_>O&&(O=_)}),t.length===0){H(!1);return}const te=K.add?20:0;i.width=e.vertical?i.width/f-h.BORDER_WIDTH-te/f:i.width*t.length-h.BORDER_WIDTH,i.height=e.vertical?i.height*t.length-h.BORDER_WIDTH:(e.resizeHint||e.dragHint)&&f<=1?i.height:e.style&&e.style.height?e.style.height:25,i.left=e.vertical?i.left+d*i.width+h.BORDER_WIDTH*d:i.left,i.top=e.vertical?i.top:i.top+O+h.BORDER_WIDTH*d,T.current=f,S.setRect(r,i),Y(!0),H(!0)},N=n.useCallback(r=>{const t=r&&r[0],l=q.current;y.current!==void 0&&window.cancelAnimationFrame(y.current),l&&t&&(l.width!==t.contentRect.width||l.height!==t.contentRect.height)&&(y.current=window.requestAnimationFrame(()=>{x(),z()})),q.current={width:t.contentRect.width,height:t.contentRect.height}},[x,z]);n.useEffect(x),n.useEffect(z);const p=c.current&&c.current.element?c.current.element.closest(".k-scheduler-layout"):null;return ce.useRowSync({element:p,selector:".k-resource-row",horizontalAttribute:"data-depth-index",verticalAttribute:"data-resource-index",applyTo:".k-resource-cell",syncHeight:e.isLast}),n.useEffect(()=>{if(!I.current)return;const r=window.ResizeObserver,t=r&&new r(N);return t&&t.observe(I.current),()=>{t&&t.disconnect()}},[N,I]),n.createElement(J,{...G,_ref:c,_maxSiblingsPerSlot:T,itemRef:c,style:{visibility:X?void 0:"hidden",display:U?void 0:"none",...e.style}},!e.resizeHint&&n.createElement("span",{className:"k-event-actions"},e.tail&&n.createElement(E.IconWrap,{name:k==="rtl"?"caret-alt-right":"caret-alt-left",icon:k==="rtl"?v.caretAltRightIcon:v.caretAltLeftIcon}),e.isRecurring&&!e.isException&&n.createElement(E.IconWrap,{name:"arrow-rotate-cw",icon:v.arrowRotateCwIcon}),!e.isRecurring&&e.isException&&n.createElement(E.IconWrap,{name:"arrows-no-repeat",icon:v.arrowsNoRepeatIcon})),!e.resizeHint&&n.createElement("div",{title:V},!e.isAllDay&&n.createElement(M.SchedulerItemContent,{className:"k-event-template k-event-time "},V),n.createElement(M.SchedulerItemContent,{className:"k-event-template"},e.title)))}),$={item:re.SchedulerItem};F.displayName="KendoReactSchedulerViewItem";exports.SchedulerViewItem=F;exports.schedulerViewItemDefaultProps=$;
@@ -7,122 +7,126 @@
7
7
  */
8
8
  "use client";
9
9
  import * as n from "react";
10
- import { SchedulerItem as ee } from "./SchedulerItem.mjs";
11
- import { first as te, calculateOrder as ne, intersects as N } from "../utils/index.mjs";
12
- import { getRect as y, setRect as T } from "../views/common/utils.mjs";
10
+ import { SchedulerItem as p } from "./SchedulerItem.mjs";
11
+ import { first as ee, calculateOrder as te, intersects as T } from "../utils/index.mjs";
12
+ import { getRect as y, setRect as V } from "../views/common/utils.mjs";
13
13
  import { BORDER_WIDTH as f } from "../constants/index.mjs";
14
- import { useInternationalization as re } from "@progress/kendo-react-intl";
15
- import { SchedulerItemContent as V } from "./SchedulerItemContent.mjs";
16
- import { useDir as ie, IconWrap as H } from "@progress/kendo-react-common";
17
- import { caretAltRightIcon as le, caretAltLeftIcon as ce, arrowRotateCwIcon as se, arrowsNoRepeatIcon as oe } from "@progress/kendo-svg-icons";
18
- import { useRowSync as ae } from "../hooks/useRowSync.mjs";
19
- import { useEditable as me } from "../hooks/useEditable.mjs";
20
- import { useSchedulerViewItemsContext as ue, useSchedulerViewSlotsContext as de } from "../context/SchedulerViewContext.mjs";
21
- import { useSchedulerElementContext as fe } from "../context/SchedulerContext.mjs";
22
- const he = 1, ge = n.forwardRef((e, M) => {
23
- const { item: F, _ref: L, itemRef: W, ...$ } = e, S = n.useRef(), l = n.useRef(null), x = n.useRef(null), z = n.useRef(null), q = me(e.editable);
24
- n.useImperativeHandle(x, () => ({ props: e, element: l.current && l.current.element })), n.useImperativeHandle(M, () => x.current), n.useImperativeHandle(L, () => l.current), n.useImperativeHandle(W, () => l.current);
25
- const B = F || Se.item, w = re(), [G] = ue(), [A] = de(), h = fe(), [K, I] = n.useState(!0), [j, J] = n.useState(!1), [Q, U] = n.useState(0), D = ie(h), P = n.useMemo(
26
- () => e.isAllDay ? w.toString(e.zonedStart, "t") : w.format("{0:t} - {1:t}", e.zonedStart, e.zonedEnd),
27
- [w, e.isAllDay, e.zonedEnd, e.zonedStart]
28
- ), k = n.useMemo(() => `(${P}): ${e.title}`, [P, e.title]), _ = (r, t) => {
29
- let c = 1;
30
- return r.forEach((o) => {
31
- const m = t.filter((u) => g(o.current.props, u.props));
32
- m.length > c && (c = m.length);
33
- }), c;
34
- }, X = (r, t) => r.map((o) => t.filter((m) => g(o.current.props, m.props))), g = (r, t) => N(r.start, r.end, t.start, t.end) && r.group.index === t.group.index && r.range.index === t.range.index && (e.ignoreIsAllDay || r.isAllDay === t.isAllDay), R = () => {
35
- const r = (A || []).filter((o) => o.current && g(o.current.props, e));
36
- if (r.length === 0) {
37
- I(!1);
38
- return;
39
- }
40
- const t = te(r);
41
- if (!t.current || !l.current)
42
- return;
43
- const c = y(t.current.element);
44
- T(l.current.element, c);
45
- }, v = () => {
46
- const r = l.current && l.current.element;
47
- if (!r)
48
- return;
49
- const t = (A || []).filter((s) => s.current && g(s.current.props, e)), c = [], o = [], m = [];
50
- (G || []).forEach((s) => {
51
- s.current && (s.current.props.dragHint ? o.push(s.current) : s.current.props.resizeHint ? m.push(s.current) : c.push(s.current));
52
- });
53
- const u = e.dragHint || e.resizeHint ? ne(l.current, e.dragHint ? o : m, t, e.ignoreIsAllDay) : e.order || 0;
54
- let d = e.dragHint || e.resizeHint ? _(t, e.dragHint ? o : m) : _(t, c);
55
- const Z = X(t, c);
56
- let b = 0;
57
- const i = y(r);
58
- if (Z.forEach((s) => {
14
+ import { useInternationalization as ne } from "@progress/kendo-react-intl";
15
+ import { SchedulerItemContent as F } from "./SchedulerItemContent.mjs";
16
+ import { useDir as re, IconWrap as H } from "@progress/kendo-react-common";
17
+ import { caretAltRightIcon as ie, caretAltLeftIcon as le, arrowRotateCwIcon as ce, arrowsNoRepeatIcon as se } from "@progress/kendo-svg-icons";
18
+ import { useRowSync as oe } from "../hooks/useRowSync.mjs";
19
+ import { useEditable as ae } from "../hooks/useEditable.mjs";
20
+ import { useSchedulerViewItemsContext as me, useSchedulerViewSlotsContext as ue } from "../context/SchedulerViewContext.mjs";
21
+ import { useSchedulerElementContext as de } from "../context/SchedulerContext.mjs";
22
+ const fe = 1, he = n.forwardRef(
23
+ (e, M) => {
24
+ const { item: L, _ref: W, itemRef: $, ...q } = e, S = n.useRef(), l = n.useRef(null), z = n.useRef(null), x = n.useRef(null), B = ae(e.editable);
25
+ n.useImperativeHandle(z, () => ({ props: e, element: l.current && l.current.element })), n.useImperativeHandle(M, () => z.current), n.useImperativeHandle(W, () => l.current), n.useImperativeHandle($, () => l.current);
26
+ const G = L || ge.item, w = ne(), [K] = me(), [A] = ue(), h = de(), [j, I] = n.useState(!0), [J, Q] = n.useState(!1), D = n.useRef(0), P = re(h), k = n.useMemo(
27
+ () => e.isAllDay ? w.toString(e.zonedStart, "t") : w.format("{0:t} - {1:t}", e.zonedStart, e.zonedEnd),
28
+ [w, e.isAllDay, e.zonedEnd, e.zonedStart]
29
+ ), _ = n.useMemo(() => `(${k}): ${e.title}`, [k, e.title]), C = (r, t) => {
30
+ let c = 1;
31
+ return r.forEach((o) => {
32
+ const m = t.filter((u) => g(o.current.props, u.props));
33
+ m.length > c && (c = m.length);
34
+ }), c;
35
+ }, U = (r, t) => r.map((o) => t.filter((m) => g(o.current.props, m.props))), g = (r, t) => T(r.start, r.end, t.start, t.end) && r.group.index === t.group.index && r.range.index === t.range.index && (e.ignoreIsAllDay || r.isAllDay === t.isAllDay), R = () => {
36
+ const r = (A || []).filter((o) => o.current && g(o.current.props, e));
37
+ if (r.length === 0) {
38
+ I(!1);
39
+ return;
40
+ }
41
+ const t = ee(r);
42
+ if (!t.current || !l.current)
43
+ return;
44
+ const c = y(t.current.element);
45
+ V(l.current.element, c);
46
+ }, v = () => {
47
+ const r = l.current && l.current.element;
48
+ if (!r)
49
+ return;
50
+ const t = (A || []).filter((s) => s.current && g(s.current.props, e)), c = [], o = [], m = [];
51
+ (K || []).forEach((s) => {
52
+ s.current && (s.current.props.dragHint ? o.push(s.current) : s.current.props.resizeHint ? m.push(s.current) : c.push(s.current));
53
+ });
54
+ const u = e.dragHint || e.resizeHint ? te(
55
+ l.current,
56
+ e.dragHint ? o : m,
57
+ t,
58
+ e.ignoreIsAllDay
59
+ ) : e.order || 0;
60
+ let d = e.dragHint || e.resizeHint ? C(t, e.dragHint ? o : m) : C(t, c);
61
+ const Y = U(t, c);
59
62
  let E = 0;
60
- s.forEach((a) => {
61
- N(a.props.start, a.props.end, e.start, e.end) && !(e.dragHint || e.resizeHint) && a.props._maxSiblingsPerSlot && a.props._maxSiblingsPerSlot > d && a.element !== r && (d = a.props._maxSiblingsPerSlot);
62
- const O = y(a.element);
63
- a.props.order !== null && a.props.order < u && (E = O.top + O.height - i.top - f * u + he);
64
- }), E > b && (b = E);
65
- }), t.length === 0) {
66
- I(!1);
67
- return;
68
- }
69
- const p = q.add ? 20 : 0;
70
- i.width = e.vertical ? i.width / d - f - p / d : i.width * t.length - f, i.height = e.vertical ? i.height * t.length - f : (e.resizeHint || e.dragHint) && d <= 1 ? i.height : e.style && e.style.height ? e.style.height : 25, i.left = e.vertical ? i.left + u * i.width + f * u : i.left, i.top = e.vertical ? i.top : i.top + b + f * u, U(d), T(r, i), J(!0), I(!0);
71
- }, C = n.useCallback(
72
- (r) => {
73
- const t = r && r[0], c = z.current;
74
- S.current !== void 0 && window.cancelAnimationFrame(S.current), c && t && (c.width !== t.contentRect.width || c.height !== t.contentRect.height) && (S.current = window.requestAnimationFrame(() => {
75
- R(), v();
76
- })), z.current = { width: t.contentRect.width, height: t.contentRect.height };
77
- },
78
- [R, v]
79
- );
80
- n.useEffect(R), n.useEffect(v);
81
- const Y = l.current && l.current.element ? l.current.element.closest(".k-scheduler-layout") : null;
82
- return ae({
83
- element: Y,
84
- selector: ".k-resource-row",
85
- horizontalAttribute: "data-depth-index",
86
- verticalAttribute: "data-resource-index",
87
- applyTo: ".k-resource-cell",
88
- syncHeight: e.isLast
89
- }), n.useEffect(
90
- () => {
63
+ const i = y(r);
64
+ if (Y.forEach((s) => {
65
+ let b = 0;
66
+ s.forEach((a) => {
67
+ T(a.props.start, a.props.end, e.start, e.end) && !(e.dragHint || e.resizeHint) && a._maxSiblingsPerSlot && a._maxSiblingsPerSlot > d && a.element !== r && (d = a._maxSiblingsPerSlot);
68
+ const N = y(a.element);
69
+ a.props.order !== null && a.props.order < u && (b = N.top + N.height - i.top - f * u + fe);
70
+ }), b > E && (E = b);
71
+ }), t.length === 0) {
72
+ I(!1);
73
+ return;
74
+ }
75
+ const Z = B.add ? 20 : 0;
76
+ i.width = e.vertical ? i.width / d - f - Z / d : i.width * t.length - f, i.height = e.vertical ? i.height * t.length - f : (e.resizeHint || e.dragHint) && d <= 1 ? i.height : e.style && e.style.height ? e.style.height : 25, i.left = e.vertical ? i.left + u * i.width + f * u : i.left, i.top = e.vertical ? i.top : i.top + E + f * u, D.current = d, V(r, i), Q(!0), I(!0);
77
+ }, O = n.useCallback(
78
+ (r) => {
79
+ const t = r && r[0], c = x.current;
80
+ S.current !== void 0 && window.cancelAnimationFrame(S.current), c && t && (c.width !== t.contentRect.width || c.height !== t.contentRect.height) && (S.current = window.requestAnimationFrame(() => {
81
+ R(), v();
82
+ })), x.current = { width: t.contentRect.width, height: t.contentRect.height };
83
+ },
84
+ [R, v]
85
+ );
86
+ n.useEffect(R), n.useEffect(v);
87
+ const X = l.current && l.current.element ? l.current.element.closest(".k-scheduler-layout") : null;
88
+ return oe({
89
+ element: X,
90
+ selector: ".k-resource-row",
91
+ horizontalAttribute: "data-depth-index",
92
+ verticalAttribute: "data-resource-index",
93
+ applyTo: ".k-resource-cell",
94
+ syncHeight: e.isLast
95
+ }), n.useEffect(() => {
91
96
  if (!h.current)
92
97
  return;
93
- const r = window.ResizeObserver, t = r && new r(C);
98
+ const r = window.ResizeObserver, t = r && new r(O);
94
99
  return t && t.observe(h.current), () => {
95
100
  t && t.disconnect();
96
101
  };
97
- },
98
- [C, h]
99
- ), /* @__PURE__ */ n.createElement(
100
- B,
101
- {
102
- ...$,
103
- _ref: l,
104
- _maxSiblingsPerSlot: Q,
105
- itemRef: l,
106
- style: {
107
- visibility: j ? void 0 : "hidden",
108
- display: K ? void 0 : "none",
109
- ...e.style
110
- }
111
- },
112
- !e.resizeHint && /* @__PURE__ */ n.createElement("span", { className: "k-event-actions" }, e.tail && /* @__PURE__ */ n.createElement(
113
- H,
102
+ }, [O, h]), /* @__PURE__ */ n.createElement(
103
+ G,
114
104
  {
115
- name: D === "rtl" ? "caret-alt-right" : "caret-alt-left",
116
- icon: D === "rtl" ? le : ce
117
- }
118
- ), e.isRecurring && !e.isException && /* @__PURE__ */ n.createElement(H, { name: "arrow-rotate-cw", icon: se }), !e.isRecurring && e.isException && /* @__PURE__ */ n.createElement(H, { name: "arrows-no-repeat", icon: oe })),
119
- !e.resizeHint && /* @__PURE__ */ n.createElement("div", { title: k }, !e.isAllDay && /* @__PURE__ */ n.createElement(V, { className: "k-event-template k-event-time " }, k), /* @__PURE__ */ n.createElement(V, { className: "k-event-template" }, e.title))
120
- );
121
- }), Se = {
122
- item: ee
105
+ ...q,
106
+ _ref: l,
107
+ _maxSiblingsPerSlot: D,
108
+ itemRef: l,
109
+ style: {
110
+ visibility: J ? void 0 : "hidden",
111
+ display: j ? void 0 : "none",
112
+ ...e.style
113
+ }
114
+ },
115
+ !e.resizeHint && /* @__PURE__ */ n.createElement("span", { className: "k-event-actions" }, e.tail && /* @__PURE__ */ n.createElement(
116
+ H,
117
+ {
118
+ name: P === "rtl" ? "caret-alt-right" : "caret-alt-left",
119
+ icon: P === "rtl" ? ie : le
120
+ }
121
+ ), e.isRecurring && !e.isException && /* @__PURE__ */ n.createElement(H, { name: "arrow-rotate-cw", icon: ce }), !e.isRecurring && e.isException && /* @__PURE__ */ n.createElement(H, { name: "arrows-no-repeat", icon: se })),
122
+ !e.resizeHint && /* @__PURE__ */ n.createElement("div", { title: _ }, !e.isAllDay && /* @__PURE__ */ n.createElement(F, { className: "k-event-template k-event-time " }, _), /* @__PURE__ */ n.createElement(F, { className: "k-event-template" }, e.title))
123
+ );
124
+ }
125
+ ), ge = {
126
+ item: p
123
127
  };
124
- ge.displayName = "KendoReactSchedulerViewItem";
128
+ he.displayName = "KendoReactSchedulerViewItem";
125
129
  export {
126
- ge as SchedulerViewItem,
127
- Se as schedulerViewItemDefaultProps
130
+ he as SchedulerViewItem,
131
+ ge as schedulerViewItemDefaultProps
128
132
  };
@@ -24,7 +24,11 @@ const u = (e, r) => {
24
24
  return e;
25
25
  }
26
26
  }, S = (e, r, n) => {
27
- const [c, o] = E(e, r, n);
27
+ const [c, o] = E(
28
+ e,
29
+ r,
30
+ n
31
+ );
28
32
  return [c, o, (O) => {
29
33
  const t = u(c, O);
30
34
  o(t);
@@ -10,7 +10,7 @@ const e = {
10
10
  name: "@progress/kendo-react-scheduler",
11
11
  productName: "KendoReact",
12
12
  productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
13
- publishDate: 1729236875,
13
+ publishDate: 1731069172,
14
14
  version: "",
15
15
  licensingDocsUrl: "https://www.telerik.com/kendo-react-ui"
16
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-scheduler",
3
- "version": "9.0.0-develop.2",
3
+ "version": "9.0.0-develop.21",
4
4
  "description": "React Scheduler brings the functionality of Outlook's Calendar to a single UI component. KendoReact Scheduler package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -24,17 +24,17 @@
24
24
  "peerDependencies": {
25
25
  "@progress/kendo-data-query": "^1.5.1",
26
26
  "@progress/kendo-date-math": "^1.4.1",
27
- "@progress/kendo-drawing": "^1.20.4",
27
+ "@progress/kendo-drawing": "^1.21.1",
28
28
  "@progress/kendo-licensing": "^1.3.4",
29
- "@progress/kendo-react-buttons": "9.0.0-develop.2",
30
- "@progress/kendo-react-common": "9.0.0-develop.2",
31
- "@progress/kendo-react-dateinputs": "9.0.0-develop.2",
32
- "@progress/kendo-react-dialogs": "9.0.0-develop.2",
33
- "@progress/kendo-react-dropdowns": "9.0.0-develop.2",
34
- "@progress/kendo-react-form": "9.0.0-develop.2",
35
- "@progress/kendo-react-inputs": "9.0.0-develop.2",
36
- "@progress/kendo-react-intl": "9.0.0-develop.2",
37
- "@progress/kendo-react-popup": "9.0.0-develop.2",
29
+ "@progress/kendo-react-buttons": "9.0.0-develop.21",
30
+ "@progress/kendo-react-common": "9.0.0-develop.21",
31
+ "@progress/kendo-react-dateinputs": "9.0.0-develop.21",
32
+ "@progress/kendo-react-dialogs": "9.0.0-develop.21",
33
+ "@progress/kendo-react-dropdowns": "9.0.0-develop.21",
34
+ "@progress/kendo-react-form": "9.0.0-develop.21",
35
+ "@progress/kendo-react-inputs": "9.0.0-develop.21",
36
+ "@progress/kendo-react-intl": "9.0.0-develop.21",
37
+ "@progress/kendo-react-popup": "9.0.0-develop.21",
38
38
  "@progress/kendo-svg-icons": "^3.0.0",
39
39
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0",
40
40
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"