@progress/kendo-react-scheduler 9.4.0-develop.24 → 9.4.0-develop.4

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 (177) hide show
  1. package/NOTICE.txt +51 -40
  2. package/Scheduler.js +1 -1
  3. package/Scheduler.mjs +1 -0
  4. package/components/BaseView.js +1 -1
  5. package/components/BaseView.mjs +1 -0
  6. package/components/CurrentTimeMarket.js +1 -1
  7. package/components/CurrentTimeMarket.mjs +1 -0
  8. package/components/DateHeaderCell.js +1 -1
  9. package/components/DateHeaderCell.mjs +15 -14
  10. package/components/SchedulerForm.js +1 -1
  11. package/components/SchedulerForm.mjs +8 -7
  12. package/components/SchedulerOccurrenceDialog.js +1 -1
  13. package/components/SchedulerOccurrenceDialog.mjs +1 -0
  14. package/components/SchedulerRemoveDialog.js +1 -1
  15. package/components/SchedulerRemoveDialog.mjs +7 -6
  16. package/components/ShowMoreItemsButton.js +1 -1
  17. package/components/ShowMoreItemsButton.mjs +11 -10
  18. package/components/TimeHeaderCell.js +1 -1
  19. package/components/TimeHeaderCell.mjs +10 -9
  20. package/components/footer/SchedulerFooter.js +1 -1
  21. package/components/footer/SchedulerFooter.mjs +5 -4
  22. package/components/footer/bussiness-hours/BussinessHours.js +1 -1
  23. package/components/footer/bussiness-hours/BussinessHours.mjs +9 -8
  24. package/components/header/SchedulerHeader.js +1 -1
  25. package/components/header/SchedulerHeader.mjs +6 -5
  26. package/components/header/navigation/NavigationDatePicker.js +1 -1
  27. package/components/header/navigation/NavigationDatePicker.mjs +11 -10
  28. package/components/header/navigation/SchedulerNavigation.js +1 -1
  29. package/components/header/navigation/SchedulerNavigation.mjs +1 -0
  30. package/components/header/view-selector/SchedulerViewSelector.js +1 -1
  31. package/components/header/view-selector/SchedulerViewSelector.mjs +5 -4
  32. package/components/header/view-selector/ViewSelectorItem.js +1 -1
  33. package/components/header/view-selector/ViewSelectorItem.mjs +7 -6
  34. package/components/header/view-selector/ViewSelectorList.js +1 -1
  35. package/components/header/view-selector/ViewSelectorList.mjs +1 -0
  36. package/constants/index.js +1 -1
  37. package/constants/index.mjs +1 -0
  38. package/context/SchedulerContext.js +1 -1
  39. package/context/SchedulerContext.mjs +8 -7
  40. package/context/SchedulerEditItemContext.js +1 -1
  41. package/context/SchedulerEditItemContext.mjs +1 -0
  42. package/context/SchedulerEditSlotContext.js +1 -1
  43. package/context/SchedulerEditSlotContext.mjs +10 -9
  44. package/context/SchedulerEditTaskContext.js +1 -1
  45. package/context/SchedulerEditTaskContext.mjs +1 -0
  46. package/context/SchedulerResourceIteratorContext.js +1 -1
  47. package/context/SchedulerResourceIteratorContext.mjs +3 -2
  48. package/context/SchedulerViewContext.js +1 -1
  49. package/context/SchedulerViewContext.mjs +1 -0
  50. package/dist/cdn/js/kendo-react-scheduler.js +1 -8
  51. package/editors/FilterableComboBox.js +1 -1
  52. package/editors/FilterableComboBox.mjs +4 -3
  53. package/editors/ResourceEditor.js +1 -1
  54. package/editors/ResourceEditor.mjs +3 -2
  55. package/editors/SchedulerFormEditor.js +1 -1
  56. package/editors/SchedulerFormEditor.mjs +1 -0
  57. package/editors/ZonedDateTime.js +1 -1
  58. package/editors/ZonedDateTime.mjs +22 -21
  59. package/hooks/use-items-focus.js +1 -1
  60. package/hooks/use-items-focus.mjs +1 -0
  61. package/hooks/use-items-selection.js +1 -1
  62. package/hooks/use-items-selection.mjs +15 -14
  63. package/hooks/use-slots-focus.js +1 -1
  64. package/hooks/use-slots-focus.mjs +7 -6
  65. package/hooks/use-slots-selection.js +1 -1
  66. package/hooks/use-slots-selection.mjs +1 -0
  67. package/hooks/useCellSync.js +1 -1
  68. package/hooks/useCellSync.mjs +1 -0
  69. package/hooks/useControlledState.js +1 -1
  70. package/hooks/useControlledState.mjs +5 -4
  71. package/hooks/useEditable.js +1 -1
  72. package/hooks/useEditable.mjs +5 -4
  73. package/hooks/useRowSync.js +1 -1
  74. package/hooks/useRowSync.mjs +6 -5
  75. package/hooks/useSchedulerItem.js +1 -1
  76. package/hooks/useSchedulerItem.mjs +6 -5
  77. package/hooks/useSchedulerSlot.js +1 -1
  78. package/hooks/useSchedulerSlot.mjs +8 -7
  79. package/hooks/useSlotExpand.js +1 -1
  80. package/hooks/useSlotExpand.mjs +1 -0
  81. package/index.js +1 -2
  82. package/index.mjs +14 -14
  83. package/items/SchedulerEditItem.js +1 -1
  84. package/items/SchedulerEditItem.mjs +1 -0
  85. package/items/SchedulerItem.js +1 -1
  86. package/items/SchedulerItem.mjs +91 -90
  87. package/items/SchedulerItemContent.js +1 -1
  88. package/items/SchedulerItemContent.mjs +1 -0
  89. package/items/SchedulerProportionalViewItem.js +1 -1
  90. package/items/SchedulerProportionalViewItem.mjs +1 -0
  91. package/items/SchedulerViewItem.js +1 -1
  92. package/items/SchedulerViewItem.mjs +1 -0
  93. package/items/hooks/use-drag-item.js +1 -1
  94. package/items/hooks/use-drag-item.mjs +1 -0
  95. package/items/hooks/use-form-item.js +1 -1
  96. package/items/hooks/use-form-item.mjs +9 -8
  97. package/items/hooks/use-remove-item.js +1 -1
  98. package/items/hooks/use-remove-item.mjs +1 -0
  99. package/items/hooks/use-resize-item.js +1 -1
  100. package/items/hooks/use-resize-item.mjs +1 -0
  101. package/items/hooks/use-series.js +1 -1
  102. package/items/hooks/use-series.mjs +5 -4
  103. package/items/hooks/use-show-occurrence-dialog.js +1 -1
  104. package/items/hooks/use-show-occurrence-dialog.mjs +6 -5
  105. package/items/hooks/use-show-remove-item-dialog.js +1 -1
  106. package/items/hooks/use-show-remove-item-dialog.mjs +8 -7
  107. package/messages/index.js +1 -1
  108. package/messages/index.mjs +1 -0
  109. package/package-metadata.js +1 -1
  110. package/package-metadata.mjs +3 -2
  111. package/package.json +12 -12
  112. package/recurrence/RecurrenceEditor.js +1 -1
  113. package/recurrence/RecurrenceEditor.mjs +1 -0
  114. package/recurrence/RecurrenceFrequencyEditor.js +1 -1
  115. package/recurrence/RecurrenceFrequencyEditor.mjs +1 -0
  116. package/recurrence/RecurrenceRepeatOnWeekEditor.js +1 -1
  117. package/recurrence/RecurrenceRepeatOnWeekEditor.mjs +1 -0
  118. package/recurrence/common.js +1 -1
  119. package/recurrence/common.mjs +1 -0
  120. package/services/itemsService.js +1 -1
  121. package/services/itemsService.mjs +21 -20
  122. package/services/occurrenceService.js +1 -1
  123. package/services/occurrenceService.mjs +1 -0
  124. package/services/rangeService.js +1 -1
  125. package/services/rangeService.mjs +9 -8
  126. package/services/slotsService.js +1 -1
  127. package/services/slotsService.mjs +8 -7
  128. package/slots/SchedulerEditSlot.js +1 -1
  129. package/slots/SchedulerEditSlot.mjs +1 -0
  130. package/slots/SchedulerSlot.js +1 -1
  131. package/slots/SchedulerSlot.mjs +1 -0
  132. package/slots/SchedulerViewSlot.js +1 -1
  133. package/slots/SchedulerViewSlot.mjs +8 -7
  134. package/tasks/SchedulerEditTask.js +1 -1
  135. package/tasks/SchedulerEditTask.mjs +1 -0
  136. package/tasks/SchedulerTask.js +1 -1
  137. package/tasks/SchedulerTask.mjs +6 -5
  138. package/tasks/SchedulerViewTask.js +1 -1
  139. package/tasks/SchedulerViewTask.mjs +4 -3
  140. package/utils/index.js +1 -1
  141. package/utils/index.mjs +8 -7
  142. package/views/agenda/AgendaView.js +1 -1
  143. package/views/agenda/AgendaView.mjs +13 -12
  144. package/views/common/HorizontalResourceIterator.js +1 -1
  145. package/views/common/HorizontalResourceIterator.mjs +1 -0
  146. package/views/common/SchedulerDrag.js +1 -1
  147. package/views/common/SchedulerDrag.mjs +1 -0
  148. package/views/common/SchedulerResize.js +1 -1
  149. package/views/common/SchedulerResize.mjs +5 -4
  150. package/views/common/VerticalResourceIterator.js +1 -1
  151. package/views/common/VerticalResourceIterator.mjs +1 -0
  152. package/views/common/utils.js +1 -1
  153. package/views/common/utils.mjs +5 -4
  154. package/views/day/DayView.js +1 -1
  155. package/views/day/DayView.mjs +4 -3
  156. package/views/day/DayViewAllDayRowContent.js +1 -1
  157. package/views/day/DayViewAllDayRowContent.mjs +5 -4
  158. package/views/day/DayViewGroupRowContent.js +1 -1
  159. package/views/day/DayViewGroupRowContent.mjs +1 -0
  160. package/views/day/DayViewRowContent.js +1 -1
  161. package/views/day/DayViewRowContent.mjs +1 -0
  162. package/views/day/MultiDayView.js +1 -1
  163. package/views/day/MultiDayView.mjs +1 -0
  164. package/views/month/MonthView.js +1 -1
  165. package/views/month/MonthView.mjs +1 -0
  166. package/views/time/MultiDayTimelineView.js +1 -1
  167. package/views/time/MultiDayTimelineView.mjs +17 -16
  168. package/views/time/TimelineView.js +1 -1
  169. package/views/time/TimelineView.mjs +6 -5
  170. package/views/time/TimelineViewAllEventsRowContent.js +1 -1
  171. package/views/time/TimelineViewAllEventsRowContent.mjs +3 -2
  172. package/views/time/TimelineViewRowContent.js +1 -1
  173. package/views/time/TimelineViewRowContent.mjs +1 -0
  174. package/views/week/WeekView.js +1 -1
  175. package/views/week/WeekView.mjs +5 -4
  176. package/views/week/WorkWeekView.js +1 -1
  177. package/views/week/WorkWeekView.mjs +9 -8
@@ -5,14 +5,15 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
+ "use client";
8
9
  import * as t from "react";
9
10
  import { BaseView as re } from "../../components/BaseView.mjs";
10
11
  import { MS_PER_DAY as oe, MS_PER_MINUTE as ne, ZonedDate as z, Day as B, getDate as ae, addDays as ie } from "@progress/kendo-date-math";
11
12
  import { HorizontalResourceIterator as L } from "../common/HorizontalResourceIterator.mjs";
12
13
  import { TimelineViewRowContent as se } from "./TimelineViewRowContent.mjs";
13
- import { TimelineViewAllEventsRowContent as me } from "./TimelineViewAllEventsRowContent.mjs";
14
+ import { TimelineViewAllEventsRowContent as le } from "./TimelineViewAllEventsRowContent.mjs";
14
15
  import { VerticalResourceIterator as Z } from "../common/VerticalResourceIterator.mjs";
15
- import { isInTimeRange as S, mapItemsToSlots as le, mapSlotsToItems as ce, toUTCDateTime as H, isInDaysRange as de, intersects as X, last as Y, first as j, orderSort as ue } from "../../utils/index.mjs";
16
+ import { isInTimeRange as S, mapItemsToSlots as me, mapSlotsToItems as ce, toUTCDateTime as H, isInDaysRange as de, intersects as X, last as Y, first as j, orderSort as ue } from "../../utils/index.mjs";
16
17
  import { classNames as De } from "@progress/kendo-react-common";
17
18
  import { toRanges as Te } from "../../services/rangeService.mjs";
18
19
  import { toSlots as fe } from "../../services/slotsService.mjs";
@@ -30,11 +31,11 @@ import { TimeHeaderCell as xe } from "../../components/TimeHeaderCell.mjs";
30
31
  import { useCellSync as Ie } from "../../hooks/useCellSync.mjs";
31
32
  import { useRowSync as be } from "../../hooks/useRowSync.mjs";
32
33
  const Ae = "t", He = 0, nt = (e) => {
33
- const { group: D, timezone: n, resources: T } = ye(), f = t.useRef(null), v = t.useRef(null), E = e.editItem || Ee, y = e.editSlot || we, g = t.useRef(null), [R] = Re(), k = Ce(), h = We(), i = ze(), N = ve(), C = Se(), W = e.showWorkHours, _ = e.slotDivisions || m.slotDivisions, M = e.slotDuration || m.slotDuration, J = e.workWeekStart || m.workWeekStart, K = e.workWeekEnd || m.workWeekEnd, x = C.parseDate(
34
- e.workDayStart || e.isWorkDayStart || m.isWorkDayStart
34
+ const { group: D, timezone: n, resources: T } = ye(), f = t.useRef(null), v = t.useRef(null), E = e.editItem || Ee, y = e.editSlot || we, g = t.useRef(null), [R] = Re(), k = Ce(), h = We(), i = ze(), N = ve(), C = Se(), W = e.showWorkHours, _ = e.slotDivisions || l.slotDivisions, M = e.slotDuration || l.slotDuration, J = e.workWeekStart || l.workWeekStart, K = e.workWeekEnd || l.workWeekEnd, x = C.parseDate(
35
+ e.workDayStart || e.isWorkDayStart || l.isWorkDayStart
35
36
  ), I = C.parseDate(
36
- e.workDayEnd || e.isWorkDayEnd || m.isWorkDayEnd
37
- ), $ = C.parseDate(e.startTime || m.startTime), F = C.parseDate(e.endTime || m.endTime), l = t.useMemo(
37
+ e.workDayEnd || e.isWorkDayEnd || l.isWorkDayEnd
38
+ ), $ = C.parseDate(e.startTime || l.startTime), F = C.parseDate(e.endTime || l.endTime), m = t.useMemo(
38
39
  () => W ? x : $,
39
40
  [W, x, $]
40
41
  ), c = t.useMemo(() => W ? I : F, [W, I, F]), o = t.useMemo(
@@ -42,7 +43,7 @@ const Ae = "t", He = 0, nt = (e) => {
42
43
  [i.start.getTime(), i.end.getTime(), n]
43
44
  ), s = t.useMemo(
44
45
  () => fe(i, { step: M / _ * ne }, { groups: h, ranges: o }).filter(
45
- (r) => S(r.zonedStart, l, c) || l.getTime() === c.getTime()
46
+ (r) => S(r.zonedStart, m, c) || m.getTime() === c.getTime()
46
47
  ),
47
48
  [
48
49
  h,
@@ -52,7 +53,7 @@ const Ae = "t", He = 0, nt = (e) => {
52
53
  n,
53
54
  M,
54
55
  _,
55
- l.getTime(),
56
+ m.getTime(),
56
57
  c.getTime()
57
58
  ]
58
59
  ), U = t.useMemo(
@@ -60,16 +61,16 @@ const Ae = "t", He = 0, nt = (e) => {
60
61
  [R, i.start.getTime(), i.end.getTime(), N, n]
61
62
  ), d = t.useMemo(
62
63
  () => ke(U, { timezone: n }, { groups: h, ranges: o }).filter(
63
- (r) => l.getTime() === c.getTime() || S(r.zonedStart, l, c) || S(r.zonedEnd, l, c) || S(
64
+ (r) => m.getTime() === c.getTime() || S(r.zonedStart, m, c) || S(r.zonedEnd, m, c) || S(
64
65
  new Date(r.zonedEnd.getTime() - (r.zonedEnd.getTime() - r.zonedStart.getTime()) / 2),
65
- l,
66
+ m,
66
67
  c
67
68
  )
68
69
  ),
69
- [U, n, h, o, l.getTime(), c.getTime()]
70
+ [U, n, h, o, m.getTime(), c.getTime()]
70
71
  );
71
- t.useMemo(() => le(d, s, !0), [d, s]), t.useMemo(() => ce(d, s, !0), [d, s]);
72
- const V = (k === "horizontal" ? s.length : s.length / h.length) * ((e.columnWidth || m.columnWidth) + he), O = /* @__PURE__ */ t.createElement(A.Consumer, null, () => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("div", { className: "k-scheduler-row" }, o.map((r, w) => /* @__PURE__ */ t.createElement(
72
+ t.useMemo(() => me(d, s, !0), [d, s]), t.useMemo(() => ce(d, s, !0), [d, s]);
73
+ const V = (k === "horizontal" ? s.length : s.length / h.length) * ((e.columnWidth || l.columnWidth) + he), O = /* @__PURE__ */ t.createElement(A.Consumer, null, () => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("div", { className: "k-scheduler-row" }, o.map((r, w) => /* @__PURE__ */ t.createElement(
73
74
  Me,
74
75
  {
75
76
  as: e.dateHeaderCell,
@@ -158,7 +159,7 @@ const Ae = "t", He = 0, nt = (e) => {
158
159
  {
159
160
  group: D,
160
161
  resources: T,
161
- rowContent: me
162
+ rowContent: le
162
163
  },
163
164
  P,
164
165
  /* @__PURE__ */ t.createElement(A.Consumer, null, ({ groupIndex: r }) => e.currentTimeMarker && X(j(o).start, Y(o).end, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date(), !0) && /* @__PURE__ */ t.createElement(q, { groupIndex: r, attachArrow: f, vertical: !0 }))
@@ -187,7 +188,7 @@ const Ae = "t", He = 0, nt = (e) => {
187
188
  zonedStart: E,
188
189
  zonedEnd: y
189
190
  };
190
- }, m = {
191
+ }, l = {
191
192
  name: "multi-day-timeline",
192
193
  title: "Multi Day Timeline",
193
194
  currentTimeMarker: !0,
@@ -209,5 +210,5 @@ const Ae = "t", He = 0, nt = (e) => {
209
210
  };
210
211
  export {
211
212
  nt as MultiDayTimelineView,
212
- m as multiDayTimelineViewDefaultProps
213
+ l as multiDayTimelineViewDefaultProps
213
214
  };
@@ -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 o=require("react"),r=require("./MultiDayTimelineView.js"),n=require("../../messages/index.js");function s(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,l.get?l:{enumerable:!0,get:()=>e[t]})}}return i.default=e,Object.freeze(i)}const c=s(o),a=e=>c.createElement(r.MultiDayTimelineView,{...e}),u={...r.multiDayTimelineViewDefaultProps,name:"timeline",title:e=>e.toLanguageString(n.timelineViewTitle,n.messages[n.timelineViewTitle]),slotDuration:60,slotDivisions:2,numberOfDays:1,selectedDateFormat:"{0:D}",selectedShortDateFormat:"{0:d}"};a.displayName="KendoReactSchedulerTimelineView";exports.TimelineView=a;exports.timeLineViewDefaultProps=u;
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),r=require("./MultiDayTimelineView.js"),n=require("../../messages/index.js");function s(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,l.get?l:{enumerable:!0,get:()=>e[t]})}}return i.default=e,Object.freeze(i)}const c=s(o),a=e=>c.createElement(r.MultiDayTimelineView,{...e}),u={...r.multiDayTimelineViewDefaultProps,name:"timeline",title:e=>e.toLanguageString(n.timelineViewTitle,n.messages[n.timelineViewTitle]),slotDuration:60,slotDivisions:2,numberOfDays:1,selectedDateFormat:"{0:D}",selectedShortDateFormat:"{0:d}"};a.displayName="KendoReactSchedulerTimelineView";exports.TimelineView=a;exports.timeLineViewDefaultProps=u;
@@ -5,21 +5,22 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
+ "use client";
8
9
  import * as t from "react";
9
10
  import { MultiDayTimelineView as m, multiDayTimelineViewDefaultProps as a } from "./MultiDayTimelineView.mjs";
10
- import { timelineViewTitle as i, messages as o } from "../../messages/index.mjs";
11
- const l = (e) => /* @__PURE__ */ t.createElement(m, { ...e }), s = {
11
+ import { timelineViewTitle as i, messages as l } from "../../messages/index.mjs";
12
+ const o = (e) => /* @__PURE__ */ t.createElement(m, { ...e }), s = {
12
13
  ...a,
13
14
  name: "timeline",
14
- title: (e) => e.toLanguageString(i, o[i]),
15
+ title: (e) => e.toLanguageString(i, l[i]),
15
16
  slotDuration: 60,
16
17
  slotDivisions: 2,
17
18
  numberOfDays: 1,
18
19
  selectedDateFormat: "{0:D}",
19
20
  selectedShortDateFormat: "{0:d}"
20
21
  };
21
- l.displayName = "KendoReactSchedulerTimelineView";
22
+ o.displayName = "KendoReactSchedulerTimelineView";
22
23
  export {
23
- l as TimelineView,
24
+ o as TimelineView,
24
25
  s as timeLineViewDefaultProps
25
26
  };
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),a=require("../../messages/index.js"),i=require("@progress/kendo-react-intl");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,c.get?c:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=o(r),s=e=>{const t=i.useLocalization();return l.createElement(l.Fragment,null,l.createElement("div",{className:"k-sticky-cell"},l.createElement("div",{className:"k-scheduler-cell k-heading-cell k-side-cell k-scheduler-times-all-day","data-range-index":0},t.toLanguageString(a.allEvents,a.messages[a.allEvents]))),e.children)};exports.TimelineViewAllEventsRowContent=s;
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),a=require("../../messages/index.js"),i=require("@progress/kendo-react-intl");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,c.get?c:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=o(r),s=e=>{const t=i.useLocalization();return l.createElement(l.Fragment,null,l.createElement("div",{className:"k-sticky-cell"},l.createElement("div",{className:"k-scheduler-cell k-heading-cell k-side-cell k-scheduler-times-all-day","data-range-index":0},t.toLanguageString(a.allEvents,a.messages[a.allEvents]))),e.children)};exports.TimelineViewAllEventsRowContent=s;
@@ -5,10 +5,11 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
+ "use client";
8
9
  import * as e from "react";
9
10
  import { allEvents as l, messages as n } from "../../messages/index.mjs";
10
11
  import { useLocalization as i } from "@progress/kendo-react-intl";
11
- const s = (t) => {
12
+ const r = (t) => {
12
13
  const a = i();
13
14
  return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: "k-sticky-cell" }, /* @__PURE__ */ e.createElement(
14
15
  "div",
@@ -20,5 +21,5 @@ const s = (t) => {
20
21
  )), t.children);
21
22
  };
22
23
  export {
23
- s as TimelineViewAllEventsRowContent
24
+ r as TimelineViewAllEventsRowContent
24
25
  };
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react");function o(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(c,t,l.get?l:{enumerable:!0,get:()=>e[t]})}}return c.default=e,Object.freeze(c)}const n=o(r),a=n.createElement("div",{className:"k-scheduler-cell k-side-cell"}),i=e=>n.createElement(n.Fragment,null,n.createElement("div",{className:"k-sticky-cell"},a),e.children);exports.TimelineViewRowContent=i;
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react");function i(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(c,t,l.get?l:{enumerable:!0,get:()=>e[t]})}}return c.default=e,Object.freeze(c)}const n=i(r),o=n.createElement("div",{className:"k-scheduler-cell k-side-cell"}),a=e=>n.createElement(n.Fragment,null,n.createElement("div",{className:"k-sticky-cell"},o),e.children);exports.TimelineViewRowContent=a;
@@ -5,6 +5,7 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
+ "use client";
8
9
  import * as e from "react";
9
10
  const t = /* @__PURE__ */ e.createElement("div", { className: "k-scheduler-cell k-side-cell" }), c = (l) => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: "k-sticky-cell" }, t), l.children);
10
11
  export {
@@ -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 m=require("react"),w=require("../day/MultiDayView.js"),r=require("../../constants/index.js"),n=require("@progress/kendo-date-math"),s=require("../../messages/index.js"),d=require("../../utils/index.js");function _(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const g=_(m),l=e=>g.createElement(w.MultiDayView,{...e,step:r.DAYS_IN_WEEK_COUNT,numberOfDays:r.DAYS_IN_WEEK_COUNT}),E=e=>n.getDate(e),y=(e,a)=>n.getDate(n.addDays(e,a)),S=({intl:e,date:a,timezone:t})=>{const o=n.ZonedDate.fromLocalDate(a,t),i=E(n.firstDayInWeek(o,e.firstDay())),u=y(i,r.DAYS_IN_WEEK_COUNT),c=n.ZonedDate.fromUTCDate(d.toUTCDateTime(i),t),D=n.ZonedDate.fromUTCDate(d.toUTCDateTime(u),t),T=new Date(c.getTime()),f=new Date(D.getTime());return{start:T,end:f,zonedStart:c,zonedEnd:D}},k={name:"week",slotDuration:60,slotDivisions:2,numberOfDays:r.DAYS_IN_WEEK_COUNT,dateRange:S,title:e=>e.toLanguageString(s.weekViewTitle,s.messages[s.weekViewTitle]),selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}"};l.displayName="KendoReactSchedulerWeekView";exports.WeekView=l;exports.weekViewDefaultProps=k;
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),w=require("../day/MultiDayView.js"),r=require("../../constants/index.js"),n=require("@progress/kendo-date-math"),s=require("../../messages/index.js"),l=require("../../utils/index.js");function _(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const g=_(m),u=e=>g.createElement(w.MultiDayView,{...e,step:r.DAYS_IN_WEEK_COUNT,numberOfDays:r.DAYS_IN_WEEK_COUNT}),E=e=>n.getDate(e),y=(e,a)=>n.getDate(n.addDays(e,a)),S=({intl:e,date:a,timezone:t})=>{const o=n.ZonedDate.fromLocalDate(a,t),i=E(n.firstDayInWeek(o,e.firstDay())),d=y(i,r.DAYS_IN_WEEK_COUNT),c=n.ZonedDate.fromUTCDate(l.toUTCDateTime(i),t),D=n.ZonedDate.fromUTCDate(l.toUTCDateTime(d),t),T=new Date(c.getTime()),f=new Date(D.getTime());return{start:T,end:f,zonedStart:c,zonedEnd:D}},k={name:"week",slotDuration:60,slotDivisions:2,numberOfDays:r.DAYS_IN_WEEK_COUNT,dateRange:S,title:e=>e.toLanguageString(s.weekViewTitle,s.messages[s.weekViewTitle]),selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}"};u.displayName="KendoReactSchedulerWeekView";exports.WeekView=u;exports.weekViewDefaultProps=k;
@@ -5,13 +5,14 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
+ "use client";
8
9
  import * as w from "react";
9
10
  import { MultiDayView as p } from "../day/MultiDayView.mjs";
10
11
  import { DAYS_IN_WEEK_COUNT as t } from "../../constants/index.mjs";
11
- import { ZonedDate as r, firstDayInWeek as g, getDate as c, addDays as E } from "@progress/kendo-date-math";
12
- import { weekViewTitle as i, messages as u } from "../../messages/index.mjs";
12
+ import { ZonedDate as r, firstDayInWeek as g, getDate as c, addDays as u } from "@progress/kendo-date-math";
13
+ import { weekViewTitle as i, messages as E } from "../../messages/index.mjs";
13
14
  import { toUTCDateTime as m } from "../../utils/index.mjs";
14
- const k = (e) => /* @__PURE__ */ w.createElement(p, { ...e, step: t, numberOfDays: t }), y = (e) => c(e), _ = (e, a) => c(E(e, a)), S = ({ intl: e, date: a, timezone: o }) => {
15
+ const k = (e) => /* @__PURE__ */ w.createElement(p, { ...e, step: t, numberOfDays: t }), y = (e) => c(e), _ = (e, a) => c(u(e, a)), S = ({ intl: e, date: a, timezone: o }) => {
15
16
  const d = r.fromLocalDate(a, o), s = y(g(d, e.firstDay())), f = _(s, t), n = r.fromUTCDate(m(s), o), D = r.fromUTCDate(m(f), o), l = new Date(n.getTime()), T = new Date(D.getTime());
16
17
  return {
17
18
  start: l,
@@ -25,7 +26,7 @@ const k = (e) => /* @__PURE__ */ w.createElement(p, { ...e, step: t, numberOfDay
25
26
  slotDivisions: 2,
26
27
  numberOfDays: t,
27
28
  dateRange: S,
28
- title: (e) => e.toLanguageString(i, u[i]),
29
+ title: (e) => e.toLanguageString(i, E[i]),
29
30
  selectedDateFormat: "{0:D} - {1:D}",
30
31
  selectedShortDateFormat: "{0:d} - {1:d}"
31
32
  };
@@ -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 f=require("react"),a=require("@progress/kendo-date-math"),c=require("../../constants/index.js"),S=require("../day/MultiDayView.js"),i=require("../../messages/index.js"),u=require("../../utils/index.js"),T=require("../../context/SchedulerContext.js");function _(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,n.get?n:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const E=_(f),l=t=>{const o=T.useSchedulerDateRangeContext(),e=Math.round((o.end.getTime()-o.start.getTime())/a.MS_PER_DAY);return E.createElement(S.MultiDayView,{...t,step:c.DAYS_IN_WEEK_COUNT,numberOfDays:e})},p=(t,o=a.Day.Sunday)=>{let e=t.clone();for(;e.getDay()!==o;)e=e.addDays(-1);return e},O=({intl:t,date:o,timezone:e,...n})=>{const w=a.ZonedDate.fromLocalDate(o,e),r=n.workWeekStart!==void 0?n.workWeekStart:a.Day.Monday,s=n.workWeekEnd!==void 0?n.workWeekEnd:a.Day.Friday,y=s<r?c.DAYS_IN_WEEK_COUNT+s-r+1:s-r+1,d=a.getDate(p(w,r)),W=a.addDays(d,y),D=a.ZonedDate.fromUTCDate(u.toUTCDateTime(d),e),k=a.ZonedDate.fromUTCDate(u.toUTCDateTime(W),e),g=new Date(D.getTime()),m=new Date(k.getTime());return{start:g,end:m,zonedStart:D,zonedEnd:k}},b={name:"work-week",slotDuration:60,slotDivisions:2,numberOfDays:c.DAYS_IN_WEEK_COUNT,dateRange:O,title:t=>t.toLanguageString(i.workWeekViewTitle,i.messages[i.workWeekViewTitle]),workWeekStart:a.Day.Monday,workWeekEnd:a.Day.Friday,selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}"};l.displayName="KendoReactSchedulerWorkWeekView";exports.WorkWeekView=l;exports.workWeekDefaultProps=b;
8
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),a=require("@progress/kendo-date-math"),c=require("../../constants/index.js"),S=require("../day/MultiDayView.js"),i=require("../../messages/index.js"),k=require("../../utils/index.js"),T=require("../../context/SchedulerContext.js");function _(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const E=_(f),l=t=>{const n=T.useSchedulerDateRangeContext(),e=Math.round((n.end.getTime()-n.start.getTime())/a.MS_PER_DAY);return E.createElement(S.MultiDayView,{...t,step:c.DAYS_IN_WEEK_COUNT,numberOfDays:e})},p=(t,n=a.Day.Sunday)=>{let e=t.clone();for(;e.getDay()!==n;)e=e.addDays(-1);return e},O=({intl:t,date:n,timezone:e,...o})=>{const w=a.ZonedDate.fromLocalDate(n,e),r=o.workWeekStart!==void 0?o.workWeekStart:a.Day.Monday,s=o.workWeekEnd!==void 0?o.workWeekEnd:a.Day.Friday,y=s<r?c.DAYS_IN_WEEK_COUNT+s-r+1:s-r+1,d=a.getDate(p(w,r)),W=a.addDays(d,y),D=a.ZonedDate.fromUTCDate(k.toUTCDateTime(d),e),u=a.ZonedDate.fromUTCDate(k.toUTCDateTime(W),e),g=new Date(D.getTime()),m=new Date(u.getTime());return{start:g,end:m,zonedStart:D,zonedEnd:u}},b={name:"work-week",slotDuration:60,slotDivisions:2,numberOfDays:c.DAYS_IN_WEEK_COUNT,dateRange:O,title:t=>t.toLanguageString(i.workWeekViewTitle,i.messages[i.workWeekViewTitle]),workWeekStart:a.Day.Monday,workWeekEnd:a.Day.Friday,selectedDateFormat:"{0:D} - {1:D}",selectedShortDateFormat:"{0:d} - {1:d}"};l.displayName="KendoReactSchedulerWorkWeekView";exports.WorkWeekView=l;exports.workWeekDefaultProps=b;
@@ -5,26 +5,27 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import * as u from "react";
9
- import { MS_PER_DAY as S, Day as a, ZonedDate as d, getDate as p, addDays as T } from "@progress/kendo-date-math";
10
- import { DAYS_IN_WEEK_COUNT as i } from "../../constants/index.mjs";
8
+ "use client";
9
+ import * as g from "react";
10
+ import { MS_PER_DAY as S, Day as a, ZonedDate as i, getDate as p, addDays as T } from "@progress/kendo-date-math";
11
+ import { DAYS_IN_WEEK_COUNT as d } from "../../constants/index.mjs";
11
12
  import { MultiDayView as E } from "../day/MultiDayView.mjs";
12
13
  import { workWeekViewTitle as c, messages as R } from "../../messages/index.mjs";
13
14
  import { toUTCDateTime as w } from "../../utils/index.mjs";
14
15
  import { useSchedulerDateRangeContext as C } from "../../context/SchedulerContext.mjs";
15
16
  const M = (t) => {
16
17
  const o = C(), e = Math.round((o.end.getTime() - o.start.getTime()) / S);
17
- return /* @__PURE__ */ u.createElement(E, { ...t, step: i, numberOfDays: e });
18
+ return /* @__PURE__ */ g.createElement(E, { ...t, step: d, numberOfDays: e });
18
19
  }, V = (t, o = a.Sunday) => {
19
20
  let e = t.clone();
20
21
  for (; e.getDay() !== o; )
21
22
  e = e.addDays(-1);
22
23
  return e;
23
24
  }, _ = ({ intl: t, date: o, timezone: e, ...r }) => {
24
- const l = d.fromLocalDate(o, e), n = r.workWeekStart !== void 0 ? r.workWeekStart : a.Monday, s = r.workWeekEnd !== void 0 ? r.workWeekEnd : a.Friday, W = s < n ? i + s - n + 1 : s - n + 1, k = p(V(l, n)), f = T(k, W), m = d.fromUTCDate(w(k), e), D = d.fromUTCDate(w(f), e), y = new Date(m.getTime()), g = new Date(D.getTime());
25
+ const l = i.fromLocalDate(o, e), n = r.workWeekStart !== void 0 ? r.workWeekStart : a.Monday, s = r.workWeekEnd !== void 0 ? r.workWeekEnd : a.Friday, W = s < n ? d + s - n + 1 : s - n + 1, k = p(V(l, n)), f = T(k, W), m = i.fromUTCDate(w(k), e), D = i.fromUTCDate(w(f), e), u = new Date(m.getTime()), y = new Date(D.getTime());
25
26
  return {
26
- start: y,
27
- end: g,
27
+ start: u,
28
+ end: y,
28
29
  zonedStart: m,
29
30
  zonedEnd: D
30
31
  };
@@ -32,7 +33,7 @@ const M = (t) => {
32
33
  name: "work-week",
33
34
  slotDuration: 60,
34
35
  slotDivisions: 2,
35
- numberOfDays: i,
36
+ numberOfDays: d,
36
37
  dateRange: _,
37
38
  title: (t) => t.toLanguageString(c, R[c]),
38
39
  workWeekStart: a.Monday,