@progress/kendo-react-scheduler 13.3.0 → 13.4.0-develop.2

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 (160) hide show
  1. package/Scheduler.d.ts +597 -0
  2. package/Scheduler.js +1 -1
  3. package/Scheduler.mjs +1 -1
  4. package/components/BaseView.d.ts +25 -0
  5. package/components/BaseView.js +1 -1
  6. package/components/BaseView.mjs +3 -3
  7. package/components/CurrentTimeMarket.d.ts +17 -0
  8. package/components/DateHeaderCell.d.ts +53 -0
  9. package/components/SchedulerForm.d.ts +87 -0
  10. package/components/SchedulerForm.mjs +3 -3
  11. package/components/SchedulerOccurrenceDialog.d.ts +58 -0
  12. package/components/SchedulerOccurrenceDialog.mjs +2 -2
  13. package/components/SchedulerRemoveDialog.d.ts +54 -0
  14. package/components/ShowMoreItemsButton.d.ts +33 -0
  15. package/components/TimeHeaderCell.d.ts +53 -0
  16. package/components/footer/SchedulerFooter.d.ts +37 -0
  17. package/components/footer/bussiness-hours/BussinessHours.d.ts +20 -0
  18. package/components/header/SchedulerHeader.d.ts +34 -0
  19. package/components/header/navigation/NavigationDatePicker.d.ts +12 -0
  20. package/components/header/navigation/SchedulerNavigation.d.ts +31 -0
  21. package/components/header/view-selector/SchedulerViewSelector.d.ts +31 -0
  22. package/components/header/view-selector/ViewSelectorItem.d.ts +16 -0
  23. package/components/header/view-selector/ViewSelectorList.d.ts +10 -0
  24. package/constants/index.d.ts +61 -0
  25. package/constants/index.js +1 -1
  26. package/constants/index.mjs +9 -9
  27. package/context/SchedulerContext.d.ts +234 -0
  28. package/context/SchedulerEditItemContext.d.ts +199 -0
  29. package/context/SchedulerEditSlotContext.d.ts +54 -0
  30. package/context/SchedulerEditTaskContext.d.ts +36 -0
  31. package/context/SchedulerResourceIteratorContext.d.ts +23 -0
  32. package/context/SchedulerViewContext.d.ts +97 -0
  33. package/context/index.d.ts +12 -0
  34. package/dist/cdn/js/kendo-react-scheduler.js +1 -1
  35. package/editors/FilterableComboBox.d.ts +12 -0
  36. package/editors/ResourceEditor.d.ts +22 -0
  37. package/editors/SchedulerFormEditor.d.ts +495 -0
  38. package/editors/SchedulerFormEditor.mjs +3 -3
  39. package/editors/ZonedDateTime.d.ts +25 -0
  40. package/editors/common.d.ts +19 -0
  41. package/hooks/index.d.ts +17 -0
  42. package/hooks/use-items-focus.d.ts +39 -0
  43. package/hooks/use-items-selection.d.ts +47 -0
  44. package/hooks/use-slots-focus.d.ts +47 -0
  45. package/hooks/use-slots-selection.d.ts +37 -0
  46. package/hooks/useAsyncMouseEnterLeave.d.ts +18 -0
  47. package/hooks/useCellSync.d.ts +17 -0
  48. package/hooks/useControlledState.d.ts +20 -0
  49. package/hooks/useEditable.d.ts +10 -0
  50. package/hooks/usePropOrState.d.ts +9 -0
  51. package/hooks/useRowSync.d.ts +18 -0
  52. package/hooks/useSchedulerItem.d.ts +14 -0
  53. package/hooks/useSchedulerSlot.d.ts +14 -0
  54. package/hooks/useSlotExpand.d.ts +12 -0
  55. package/hooks/useWorkHours.d.ts +9 -0
  56. package/index.d.mts +41 -4703
  57. package/index.d.ts +41 -4703
  58. package/items/SchedulerEditItem.d.ts +453 -0
  59. package/items/SchedulerEditItem.mjs +7 -7
  60. package/items/SchedulerItem.d.ts +222 -0
  61. package/items/SchedulerItemContent.d.ts +18 -0
  62. package/items/SchedulerProportionalViewItem.d.ts +19 -0
  63. package/items/SchedulerViewItem.d.ts +46 -0
  64. package/items/hooks/use-drag-item.d.ts +51 -0
  65. package/items/hooks/use-form-item.d.ts +25 -0
  66. package/items/hooks/use-remove-item.d.ts +33 -0
  67. package/items/hooks/use-resize-item.d.ts +57 -0
  68. package/items/hooks/use-series.d.ts +30 -0
  69. package/items/hooks/use-show-occurrence-dialog.d.ts +34 -0
  70. package/items/hooks/use-show-remove-item-dialog.d.ts +34 -0
  71. package/messages/index.d.ts +243 -0
  72. package/models/DataItem.d.ts +15 -0
  73. package/models/DateRange.d.ts +25 -0
  74. package/models/EditableProp.d.ts +36 -0
  75. package/models/Fields.d.ts +60 -0
  76. package/models/Group.d.ts +21 -0
  77. package/models/Item.d.ts +71 -0
  78. package/models/NavigationAction.d.ts +65 -0
  79. package/models/Occurrence.d.ts +59 -0
  80. package/models/Omit.d.ts +11 -0
  81. package/models/Orientation.d.ts +9 -0
  82. package/models/Range.d.ts +17 -0
  83. package/models/Rect.d.ts +22 -0
  84. package/models/Resource.d.ts +15 -0
  85. package/models/SchedulerGroup.d.ts +20 -0
  86. package/models/SchedulerHandle.d.ts +21 -0
  87. package/models/SchedulerModelFields.d.ts +69 -0
  88. package/models/SchedulerResource.d.ts +40 -0
  89. package/models/SchedulerView.d.ts +103 -0
  90. package/models/Slot.d.ts +57 -0
  91. package/models/events.d.ts +96 -0
  92. package/models/index.d.ts +26 -0
  93. package/package-metadata.d.ts +12 -0
  94. package/package-metadata.js +1 -1
  95. package/package-metadata.mjs +9 -16
  96. package/package.json +11 -11
  97. package/recurrence/RecurrenceEditor.d.ts +19 -0
  98. package/recurrence/RecurrenceEditor.mjs +3 -3
  99. package/recurrence/RecurrenceFrequencyEditor.d.ts +17 -0
  100. package/recurrence/RecurrenceRepeatOnWeekEditor.d.ts +20 -0
  101. package/recurrence/common.d.ts +64 -0
  102. package/recurrence/types/EndRule.d.ts +11 -0
  103. package/recurrence/types/Frequency.d.ts +11 -0
  104. package/recurrence/types/FrequencyEntity.d.ts +15 -0
  105. package/recurrence/types/MonthEntity.d.ts +14 -0
  106. package/recurrence/types/OffsetPosition.d.ts +11 -0
  107. package/recurrence/types/OffsetPositionEntity.d.ts +14 -0
  108. package/recurrence/types/RepeatOnRule.d.ts +11 -0
  109. package/recurrence/types/WeekDayEntity.d.ts +14 -0
  110. package/recurrence/types/WeekDayRule.d.ts +14 -0
  111. package/recurrence/utils/index.d.ts +7 -0
  112. package/reducers/editReducer.d.ts +40 -0
  113. package/reducers/index.d.ts +8 -0
  114. package/services/index.d.ts +11 -0
  115. package/services/itemsService.d.ts +19 -0
  116. package/services/occurrenceService.d.ts +10 -0
  117. package/services/occurrenceService.js +1 -1
  118. package/services/occurrenceService.mjs +12 -10
  119. package/services/rangeService.d.ts +10 -0
  120. package/services/slotsService.d.ts +13 -0
  121. package/slots/SchedulerEditSlot.d.ts +62 -0
  122. package/slots/SchedulerSlot.d.ts +140 -0
  123. package/slots/SchedulerViewSlot.d.ts +56 -0
  124. package/tasks/SchedulerEditTask.d.ts +93 -0
  125. package/tasks/SchedulerTask.d.ts +70 -0
  126. package/tasks/SchedulerViewTask.d.ts +44 -0
  127. package/utils/index.d.ts +177 -0
  128. package/views/agenda/AgendaView.d.ts +97 -0
  129. package/views/agenda/AgendaView.js +1 -1
  130. package/views/agenda/AgendaView.mjs +2 -2
  131. package/views/agenda/AgendaViewHeaderItem.d.ts +15 -0
  132. package/views/common/HorizontalResourceIterator.d.ts +33 -0
  133. package/views/common/HorizontalResourceIterator.js +1 -1
  134. package/views/common/HorizontalResourceIterator.mjs +33 -39
  135. package/views/common/SchedulerDrag.d.ts +46 -0
  136. package/views/common/SchedulerResize.d.ts +48 -0
  137. package/views/common/VerticalResourceIterator.d.ts +28 -0
  138. package/views/common/VerticalResourceIterator.js +1 -1
  139. package/views/common/VerticalResourceIterator.mjs +21 -21
  140. package/views/common/utils.d.ts +41 -0
  141. package/views/day/DayView.d.ts +38 -0
  142. package/views/day/DayView.mjs +3 -3
  143. package/views/day/DayViewAllDayRowContent.d.ts +15 -0
  144. package/views/day/DayViewGroupRowContent.d.ts +15 -0
  145. package/views/day/DayViewRowContent.d.ts +20 -0
  146. package/views/day/MultiDayView.d.ts +179 -0
  147. package/views/day/MultiDayView.mjs +8 -8
  148. package/views/month/MonthView.d.ts +104 -0
  149. package/views/month/MonthView.js +1 -1
  150. package/views/month/MonthView.mjs +5 -5
  151. package/views/time/MultiDayTimelineView.d.ts +183 -0
  152. package/views/time/MultiDayTimelineView.mjs +5 -5
  153. package/views/time/TimelineView.d.ts +38 -0
  154. package/views/time/TimelineView.mjs +3 -3
  155. package/views/time/TimelineViewAllEventsRowContent.d.ts +14 -0
  156. package/views/time/TimelineViewRowContent.d.ts +14 -0
  157. package/views/week/WeekView.d.ts +109 -0
  158. package/views/week/WeekView.mjs +1 -1
  159. package/views/week/WorkWeekView.d.ts +27 -0
  160. package/views/week/WorkWeekView.mjs +1 -1
@@ -0,0 +1,179 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { Day } from '@progress/kendo-date-math';
9
+ import { DateRange, SchedulerViewProps, SchedulerViewDateRangeArgs } from '../../models/index.js';
10
+ import { SchedulerItemProps } from '../../items/SchedulerItem.js';
11
+ import { SchedulerSlotProps } from '../../slots/SchedulerSlot.js';
12
+ import { SchedulerViewItemProps } from '../../items/SchedulerViewItem.js';
13
+ import { SchedulerViewSlotProps } from '../../slots/SchedulerViewSlot.js';
14
+ import { SchedulerEditSlotProps } from '../../slots/SchedulerEditSlot.js';
15
+ import { SchedulerEditItemProps } from '../../items/SchedulerEditItem.js';
16
+ import { DateHeaderCellProps } from '../../components/DateHeaderCell.js';
17
+ import { TimeHeaderCellProps } from '../../components/TimeHeaderCell.js';
18
+ import { SchedulerFormProps } from '../../components/SchedulerForm.js';
19
+ import * as React from 'react';
20
+ /**
21
+ * @hidden
22
+ */
23
+ export interface MultiDayViewProps extends SchedulerViewProps {
24
+ /**
25
+ * The long-date format for displaying the
26
+ * selected date in the Scheduler toolbar.
27
+ * Defaults to `{0:D} - {1:D}`
28
+ * ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
29
+ */
30
+ selectedDateFormat?: string;
31
+ /**
32
+ * The short-date format for displaying the
33
+ * selected date in the Scheduler toolbar.
34
+ * Defaults to `{0:d} - {1-d}`
35
+ * ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
36
+ */
37
+ selectedShortDateFormat?: string;
38
+ /**
39
+ * Overrides the general `editable` prop of the Scheduler for the specified view only.
40
+ */
41
+ editable?: boolean;
42
+ /**
43
+ * Specifies the number of days that the view will render.
44
+ * Defaults to `1`.
45
+ */
46
+ numberOfDays?: number;
47
+ /**
48
+ * The start time of the view. The MultiDayView displays events which are visible after the start time.
49
+ * Accepts string values in the `HH:mm` format.
50
+ */
51
+ startTime?: string;
52
+ /**
53
+ * The end time of the view. The MultiDayView displays events which are visible before the end time.
54
+ * Accepts string values in the `HH:mm` format.
55
+ */
56
+ endTime?: string;
57
+ /**
58
+ * Specifies the step by which the currently rendered days will be changed, when using the back and forwards buttons in the toolbar navigation.
59
+ */
60
+ step?: number;
61
+ /**
62
+ * The start time of the view when `showWorkHours` is set to `true`.
63
+ * Accepts string values in the `HH:mm` format.
64
+ */
65
+ workDayStart?: string;
66
+ /** @hidden */
67
+ isWorkDayStart?: string;
68
+ /**
69
+ * The end time of the view when `showWorkHours` is set to `true`.
70
+ * Accepts string values in the `HH:mm` format.
71
+ */
72
+ workDayEnd?: string;
73
+ /** @hidden */
74
+ isWorkDayEnd?: string;
75
+ /**
76
+ * The start of the work week.
77
+ */
78
+ workWeekStart?: Day;
79
+ /**
80
+ * The end of the work week.
81
+ */
82
+ workWeekEnd?: Day;
83
+ /**
84
+ * The number of divisions of the time slots.
85
+ */
86
+ slotDivisions?: number;
87
+ /**
88
+ * The duration (in minutes) of the time slots.
89
+ */
90
+ slotDuration?: number;
91
+ /**
92
+ * If set to `true`, the view will be shown in the business-hours mode only.
93
+ *
94
+ * This will always override the internal `showWorkHours` state.
95
+ */
96
+ showWorkHours?: boolean;
97
+ /**
98
+ * Sets the initial business-hour mode. Default `true`.
99
+ *
100
+ * This option applies only the initial `showWorkHours` state.
101
+ */
102
+ defaultShowWorkHours?: boolean;
103
+ /**
104
+ * Sets a custom `className` to the wrapping element of the `DayView`.
105
+ */
106
+ className?: string;
107
+ /**
108
+ * Sets a custom `id` to the wrapping element of the `DayView`.
109
+ */
110
+ id?: string;
111
+ /**
112
+ * Sets a custom `style` property to the wrapping element of the `DayView`.
113
+ */
114
+ style?: React.CSSProperties;
115
+ /**
116
+ * Overrides the `item` prop of the Scheduler for the specified view only.
117
+ */
118
+ item?: React.ComponentType<SchedulerItemProps>;
119
+ /**
120
+ * Overrides the `viewItem` prop of the Scheduler for the specified view only.
121
+ */
122
+ viewItem?: React.ComponentType<SchedulerViewItemProps>;
123
+ /**
124
+ * Overrides the `editableItem` prop of the Scheduler for the specified view only.
125
+ */
126
+ editItem?: React.ComponentType<SchedulerEditItemProps>;
127
+ /**
128
+ * Overrides the `slot` prop of the Scheduler for the specified view only.
129
+ */
130
+ slot?: React.ComponentType<SchedulerSlotProps>;
131
+ /**
132
+ * Overrides the `viewSlot` prop of the Scheduler for the specified view only.
133
+ */
134
+ viewSlot?: React.ComponentType<SchedulerViewSlotProps>;
135
+ /**
136
+ * Overrides the `editSlot` prop of the Scheduler for the specified view only.
137
+ */
138
+ editSlot?: React.ComponentType<SchedulerEditSlotProps>;
139
+ /**
140
+ * Overrides the `form` prop of the Scheduler for the specified view only.
141
+ */
142
+ form?: React.ComponentType<SchedulerFormProps>;
143
+ /**
144
+ * If set to `false` the "current time" marker of the scheduler would not be displayed.
145
+ */
146
+ currentTimeMarker?: boolean;
147
+ /**
148
+ * Represents component based on the DateHeaderCellProps.
149
+ */
150
+ dateHeaderCell?: React.ComponentType<DateHeaderCellProps>;
151
+ /**
152
+ * Represents component based on the TimeHeaderCellProps.
153
+ */
154
+ timeHeaderCell?: React.ComponentType<TimeHeaderCellProps>;
155
+ }
156
+ /**
157
+ * @hidden
158
+ */
159
+ export declare const MultiDayView: React.FunctionComponent<MultiDayViewProps>;
160
+ /** @hidden */
161
+ export declare const multiDayViewDefaultProps: {
162
+ name: string;
163
+ title: string;
164
+ currentTimeMarker: boolean;
165
+ dateRange: ({ date, numberOfDays, timezone }: SchedulerViewDateRangeArgs) => DateRange;
166
+ selectedDateFormat: string;
167
+ selectedShortDateFormat: string;
168
+ numberOfDays: number;
169
+ startTime: string;
170
+ endTime: string;
171
+ isWorkDayStart: string;
172
+ isWorkDayEnd: string;
173
+ workWeekStart: Day;
174
+ workWeekEnd: Day;
175
+ slotDivisions: number;
176
+ slotDuration: number;
177
+ showCurrentTime: boolean;
178
+ defaultShowWorkHours: boolean;
179
+ };
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import * as a from "react";
9
9
  import c from "prop-types";
10
- import { MS_PER_DAY as U, ZonedDate as P, Day as me, getDate as ze, addDays as Ae } from "@progress/kendo-date-math";
10
+ import { Day as me, ZonedDate as P, getDate as ze, addDays as Ae, MS_PER_DAY as U } from "@progress/kendo-date-math";
11
11
  import { BaseView as Ne } from "../../components/BaseView.mjs";
12
12
  import { HorizontalResourceIterator as G } from "../common/HorizontalResourceIterator.mjs";
13
13
  import { DayViewGroupRowContent as se } from "./DayViewGroupRowContent.mjs";
@@ -15,7 +15,7 @@ import { VerticalResourceIterator as ce } from "../common/VerticalResourceIterat
15
15
  import { DayViewAllDayRowContent as I } from "./DayViewAllDayRowContent.mjs";
16
16
  import { DayViewRowContent as de } from "./DayViewRowContent.mjs";
17
17
  import { classNames as ue } from "@progress/kendo-react-common";
18
- import { isInTimeRange as A, mapItemsToSlots as De, mapSlotsToItems as ge, isInDaysRange as Fe, intersects as fe, last as ke, first as we, toUTCDateTime as ye } from "../../utils/index.mjs";
18
+ import { toUTCDateTime as De, isInTimeRange as A, mapItemsToSlots as ge, mapSlotsToItems as fe, isInDaysRange as Fe, intersects as ke, last as we, first as ye } from "../../utils/index.mjs";
19
19
  import { useInternationalization as He } from "@progress/kendo-react-intl";
20
20
  import { MS_PER_MINUTE as Oe } from "../../constants/index.mjs";
21
21
  import { SchedulerEditSlot as _e } from "../../slots/SchedulerEditSlot.mjs";
@@ -78,7 +78,7 @@ const _ = 0, V = 1, Xe = /* @__PURE__ */ a.createElement("div", { className: "k-
78
78
  ),
79
79
  [W, i, E, m, S.getTime(), T.getTime()]
80
80
  );
81
- a.useMemo(() => De(z, h, !1), [z, h]), a.useMemo(() => ge(z, h, !1), [z, h]), a.useMemo(() => De(H, u, !1), [H, u]), a.useMemo(() => ge(H, u, !1), [H, u]);
81
+ a.useMemo(() => ge(z, h, !1), [z, h]), a.useMemo(() => fe(z, h, !1), [z, h]), a.useMemo(() => ge(H, u, !1), [H, u]), a.useMemo(() => fe(H, u, !1), [H, u]);
82
82
  const q = /* @__PURE__ */ a.createElement(O.Consumer, null, ({ groupIndex: t }) => /* @__PURE__ */ a.createElement("div", { className: "k-scheduler-row", key: t }, m.map((n, o) => /* @__PURE__ */ a.createElement(
83
83
  Be,
84
84
  {
@@ -267,7 +267,7 @@ const _ = 0, V = 1, Xe = /* @__PURE__ */ a.createElement("div", { className: "k-
267
267
  },
268
268
  Re(t, n, o)
269
269
  ))
270
- ))), B !== !1 && fe(we(m).start, ke(m).end, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date(), !0) && /* @__PURE__ */ a.createElement(Ee, null)) : /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(ce, { nested: !0, group: v, resources: C }, /* @__PURE__ */ a.createElement(O.Consumer, null, ({ groupIndex: t }) => /* @__PURE__ */ a.createElement(a.Fragment, { key: t }, /* @__PURE__ */ a.createElement("div", { className: "k-scheduler-row" }, /* @__PURE__ */ a.createElement(I, { groupIndex: t }, $.map((n, o) => {
270
+ ))), B !== !1 && ke(ye(m).start, we(m).end, /* @__PURE__ */ new Date(), /* @__PURE__ */ new Date(), !0) && /* @__PURE__ */ a.createElement(Ee, null)) : /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(ce, { nested: !0, group: v, resources: C }, /* @__PURE__ */ a.createElement(O.Consumer, null, ({ groupIndex: t }) => /* @__PURE__ */ a.createElement(a.Fragment, { key: t }, /* @__PURE__ */ a.createElement("div", { className: "k-scheduler-row" }, /* @__PURE__ */ a.createElement(I, { groupIndex: t }, $.map((n, o) => {
271
271
  const r = u.filter(
272
272
  (D) => D.group.index === t && D.range.index === _
273
273
  ).length;
@@ -283,9 +283,9 @@ const _ = 0, V = 1, Xe = /* @__PURE__ */ a.createElement("div", { className: "k-
283
283
  timeHeaderCell: e.timeHeaderCell
284
284
  },
285
285
  We(n, r, t, o)
286
- ))), B !== !1 && fe(
287
- we(m).start,
288
- ke(m).end,
286
+ ))), B !== !1 && ke(
287
+ ye(m).start,
288
+ we(m).end,
289
289
  /* @__PURE__ */ new Date(),
290
290
  /* @__PURE__ */ new Date(),
291
291
  !0
@@ -317,7 +317,7 @@ const _ = 0, V = 1, Xe = /* @__PURE__ */ a.createElement("div", { className: "k-
317
317
  )))
318
318
  );
319
319
  }, Ze = ({ date: e, numberOfDays: v = 1, timezone: i }) => {
320
- const C = P.fromLocalDate(e, i), M = ze(C), N = Ae(M, v), g = P.fromUTCDate(ye(M), i), b = P.fromUTCDate(ye(N), i), d = new Date(g.getTime()), w = new Date(b.getTime());
320
+ const C = P.fromLocalDate(e, i), M = ze(C), N = Ae(M, v), g = P.fromUTCDate(De(M), i), b = P.fromUTCDate(De(N), i), d = new Date(g.getTime()), w = new Date(b.getTime());
321
321
  return {
322
322
  start: d,
323
323
  end: w,
@@ -0,0 +1,104 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { DateRange, SchedulerViewProps, SchedulerViewDateRangeArgs } from '../../models/index.js';
9
+ import { SchedulerEditSlotProps } from '../../slots/SchedulerEditSlot.js';
10
+ import { SchedulerItemProps } from '../../items/SchedulerItem.js';
11
+ import { SchedulerViewItemProps } from '../../items/SchedulerViewItem.js';
12
+ import { SchedulerEditItemProps } from '../../items/SchedulerEditItem.js';
13
+ import { SchedulerSlotProps } from '../../slots/SchedulerSlot.js';
14
+ import { SchedulerViewSlotProps } from '../../slots/SchedulerViewSlot.js';
15
+ import { DateHeaderCellProps } from '../../components/DateHeaderCell.js';
16
+ import { SchedulerFormProps } from '../../components/SchedulerForm.js';
17
+ import * as React from 'react';
18
+ /**
19
+ * Represents the props of the KendoReact [MonthView](https://www.telerik.com/kendo-react-ui/components/scheduler/api/monthview) Component.
20
+ */
21
+ export interface MonthViewProps extends Omit<SchedulerViewProps, 'numberOfDays' | 'step'> {
22
+ /**
23
+ * Sets the maximum number of `items` to be rendered in a single `slot`, before adding the `show-more` button.
24
+ */
25
+ itemsPerSlot?: number;
26
+ /**
27
+ * The long-date format for displaying the
28
+ * selected date in the Scheduler toolbar.
29
+ * Defaults to `{0:Y}`
30
+ * ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
31
+ */
32
+ selectedDateFormat?: string;
33
+ /**
34
+ * The short-date format for displaying the
35
+ * selected date in the Scheduler toolbar.
36
+ * Defaults to `{0:Y}`
37
+ * ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
38
+ */
39
+ selectedShortDateFormat?: string;
40
+ /**
41
+ * Overrides the general `editable` prop of the Scheduler for the specified view only.
42
+ */
43
+ editable?: boolean;
44
+ /**
45
+ * Sets a custom `className` to the wrapping element of the `DayView`.
46
+ */
47
+ className?: string;
48
+ /**
49
+ * Sets a custom `id` to the wrapping element of the `DayView`.
50
+ */
51
+ id?: string;
52
+ /**
53
+ * Sets a custom `style` property to the wrapping element of the `DayView`.
54
+ */
55
+ style?: React.CSSProperties;
56
+ /**
57
+ * Overrides the `item` prop of the Scheduler for the specified view only.
58
+ */
59
+ item?: React.ComponentType<SchedulerItemProps>;
60
+ /**
61
+ * Overrides the `viewItem` prop of the Scheduler for the specified view only.
62
+ */
63
+ viewItem?: React.ComponentType<SchedulerViewItemProps>;
64
+ /**
65
+ * Overrides the `editableItem` prop of the Scheduler for the specified view only.
66
+ */
67
+ editItem?: React.ComponentType<SchedulerEditItemProps>;
68
+ /**
69
+ * Overrides the `slot` prop of the Scheduler for the specified view only.
70
+ */
71
+ slot?: React.ComponentType<SchedulerSlotProps>;
72
+ /**
73
+ * Overrides the `viewSlot` prop of the Scheduler for the specified view only.
74
+ */
75
+ viewSlot?: React.ComponentType<SchedulerViewSlotProps>;
76
+ /**
77
+ * Overrides the `editSlot` prop of the Scheduler for the specified view only.
78
+ */
79
+ editSlot?: React.ComponentType<SchedulerEditSlotProps>;
80
+ /**
81
+ * Represents component based on the DateHeaderCellProps.
82
+ */
83
+ dateHeaderCell?: React.ComponentType<DateHeaderCellProps>;
84
+ /**
85
+ * Overrides the `form` prop of the Scheduler for the specified view only.
86
+ */
87
+ form?: React.ComponentType<SchedulerFormProps>;
88
+ }
89
+ /**
90
+ * Represents the KendoReact [MonthView](https://www.telerik.com/kendo-react-ui/components/scheduler/views/month) Component.
91
+ */
92
+ export declare const MonthView: React.FunctionComponent<MonthViewProps>;
93
+ /** @hidden */
94
+ export declare const monthViewDefaultProps: {
95
+ name: string;
96
+ dateRange: ({ intl, date, timezone }: SchedulerViewDateRangeArgs) => DateRange;
97
+ slotDuration: number;
98
+ slotDivision: number;
99
+ itemsPerSlot: number;
100
+ numberOfDays: number;
101
+ title: (localization: any) => any;
102
+ selectedDateFormat: string;
103
+ selectedShortDateFormat: string;
104
+ };
@@ -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 U=require("react"),j=require("prop-types"),B=require("../../components/BaseView.js"),s=require("@progress/kendo-date-math"),_=require("@progress/kendo-react-common"),z=require("../common/VerticalResourceIterator.js"),O=require("../common/HorizontalResourceIterator.js"),D=require("../../utils/index.js"),q=require("../../messages/index.js"),F=require("../../slots/SchedulerEditSlot.js"),W=require("@progress/kendo-react-intl"),p=require("../../constants/index.js"),K=require("../../services/rangeService.js"),Z=require("../../services/slotsService.js"),L=require("../../services/occurrenceService.js"),G=require("../../services/itemsService.js"),J=require("../../components/ShowMoreItemsButton.js"),Q=require("../../items/SchedulerEditItem.js"),d=require("../../context/SchedulerContext.js"),P=require("../../context/SchedulerResourceIteratorContext.js"),X=require("../../components/DateHeaderCell.js");function ee(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(c,o,i.get?i:{enumerable:!0,get:()=>e[o]})}}return c.default=e,Object.freeze(c)}const r=ee(U),te={skeleton:"dd"},I=e=>{const{group:c,timezone:o,resources:i}=d.useSchedulerPropsContext(),y=e.editItem||Q.SchedulerEditItem,f=e.editSlot||F.SchedulerEditSlot,[S]=d.useSchedulerDataContext(),[E,C]=d.useSchedulerDateContext(),[,k]=d.useSchedulerActiveViewContext(),b=d.useSchedulerViewsContext(),T=d.useSchedulerGroupsContext(),w=d.useSchedulerOrientationContext(),l=d.useSchedulerDateRangeContext(),$=W.useInternationalization(),x=d.useSchedulerFieldsContext(),M=e.itemsPerSlot||A.itemsPerSlot,m=r.useMemo(()=>K.toRanges(l,{step:s.MS_PER_DAY*p.DAYS_IN_WEEK_COUNT,timezone:o}),[l.start.getTime(),l.end.getTime(),o]),h=r.useMemo(()=>Z.toSlots(l,{step:s.MS_PER_DAY},{groups:T,ranges:m}),[l.start.getTime(),l.end.getTime(),T,m]),v=r.useMemo(()=>L.toOccurrences(S,{dateRange:l,fields:x,timezone:o}),[S,l.start.getTime(),l.end.getTime(),x,o]),g=r.useMemo(()=>G.toItems(v,{timezone:o},{groups:T,ranges:m}),[v,o,T,m]),Y=r.useCallback(t=>{const n=b.find(u=>u.props.name==="day");!k||!n||!n.props.name||!t.target.slot||(k(n.props.name,t),C(t.target.slot.start,t))},[k,b]);r.useMemo(()=>D.mapItemsToSlots(g,h,!0),[g,h]),r.useMemo(()=>D.mapSlotsToItems(g,h,!0),[g,h]);const V=r.createElement(P.SchedulerResourceIteratorContext.Consumer,null,({groupIndex:t})=>r.createElement("div",{className:"k-scheduler-row",key:t},h.filter(n=>n.group.index===t&&n.range.index===0).map((n,u)=>r.createElement(X.DateHeaderCell,{as:e.dateHeaderCell,key:u,"data-dayslot-index":u,date:s.ZonedDate.fromLocalDate(new Date(n.zonedEnd.getTime()-(n.zonedEnd.getTime()-n.zonedStart.getTime())/2),o),start:n.start,end:n.end,format:{skeleton:"EEEE"}})))),N=r.createElement(P.SchedulerResourceIteratorContext.Consumer,null,({groupIndex:t})=>m.map((n,u)=>r.createElement("div",{className:"k-scheduler-row",key:u},h.filter(a=>a.group.index===t&&a.range.index===u).map((a,R,H)=>r.createElement(f,{slot:e.slot,viewSlot:e.viewSlot,key:R,form:e.form,...a,expandable:{offsetTop:30,offsetBottom:M<a.items.length?15:0},onDataAction:e.onDataAction,col:w==="horizontal"?H.length*(t||0)+R:R,row:w==="horizontal"?u:m.length*(t||0)+u,editable:e.editable,className:_.classNames({"k-other-month":a.start.getMonth()<E.getMonth()||a.start.getMonth()>E.getMonth()})},r.createElement("span",{className:"k-link k-nav-day"},$.formatDate(new Date(a.end.getTime()-(a.end.getTime()-a.start.getTime())/2),te)),M<a.items.length&&r.createElement(J.ShowMoreItemsButton,{slot:a,onClick:Y}))))));return r.createElement(B.BaseView,{props:e,slots:h,ranges:m,className:_.classNames("k-scheduler-monthview",e.className)},r.createElement("div",{className:"k-scheduler-head"},w==="horizontal"?r.createElement(O.HorizontalResourceIterator,{nested:!0,resources:i,group:c},V):r.createElement(z.VerticalResourceIterator,{resources:i,group:c},V)),r.createElement("div",{className:"k-scheduler-body"},w==="horizontal"?r.createElement(O.HorizontalResourceIterator,{resources:i,group:c},N):r.createElement(z.VerticalResourceIterator,{nested:!0,resources:i,group:c},N),g.filter(t=>t.order===null||t.order<M).sort(D.orderSort).map(t=>r.createElement(y,{item:e.item,viewItem:e.viewItem,form:e.form,key:t.isRecurring?`${t.uid}:${t.group.index}:${t.range.index}:${t.originalStart}`:`${t.uid}:${t.group.index}:${t.range.index}`,...t,onDataAction:e.onDataAction,style:{transform:"translateY(30px)"},vertical:!1,editable:e.editable,ignoreIsAllDay:!0}))))},re=({intl:e,date:c,timezone:o})=>{const i=s.firstDayInWeek(s.firstDayOfMonth(s.getDate(c)),e.firstDay()),y=s.addDays(s.firstDayInWeek(s.lastDayOfMonth(s.getDate(c)),e.firstDay()),p.DAYS_IN_WEEK_COUNT),f=s.ZonedDate.fromUTCDate(D.toUTCDateTime(i),o),S=s.ZonedDate.fromUTCDate(D.toUTCDateTime(y),o),E=new Date(f.getTime()),C=new Date(S.getTime());return{start:E,end:C,zonedStart:f,zonedEnd:S}},A={name:"month",dateRange:re,slotDuration:24*60,slotDivision:1,itemsPerSlot:2,numberOfDays:31,title:e=>e.toLanguageString(q.monthViewTitle,q.messages[q.monthViewTitle]),selectedDateFormat:"{0:Y}",selectedShortDateFormat:"{0:Y}"},oe={itemsPerSlot:j.number};I.propTypes=oe;I.displayName="KendoReactSchedulerMonthView";exports.MonthView=I;exports.monthViewDefaultProps=A;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("react"),j=require("prop-types"),B=require("../../components/BaseView.js"),s=require("@progress/kendo-date-math"),_=require("@progress/kendo-react-common"),z=require("../common/VerticalResourceIterator.js"),O=require("../common/HorizontalResourceIterator.js"),D=require("../../utils/index.js"),q=require("../../messages/index.js"),F=require("../../slots/SchedulerEditSlot.js"),W=require("@progress/kendo-react-intl"),p=require("../../constants/index.js"),K=require("../../services/rangeService.js"),Z=require("../../services/slotsService.js"),L=require("../../services/occurrenceService.js"),G=require("../../services/itemsService.js"),J=require("../../components/ShowMoreItemsButton.js"),Q=require("../../items/SchedulerEditItem.js"),d=require("../../context/SchedulerContext.js"),P=require("../../context/SchedulerResourceIteratorContext.js"),X=require("../../components/DateHeaderCell.js");function ee(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(c,o,i.get?i:{enumerable:!0,get:()=>e[o]})}}return c.default=e,Object.freeze(c)}const r=ee(U),te={skeleton:"dd"},I=e=>{const{group:c,timezone:o,resources:i}=d.useSchedulerPropsContext(),y=e.editItem||Q.SchedulerEditItem,f=e.editSlot||F.SchedulerEditSlot,[S]=d.useSchedulerDataContext(),[E,C]=d.useSchedulerDateContext(),[,k]=d.useSchedulerActiveViewContext(),b=d.useSchedulerViewsContext(),T=d.useSchedulerGroupsContext(),w=d.useSchedulerOrientationContext(),l=d.useSchedulerDateRangeContext(),$=W.useInternationalization(),x=d.useSchedulerFieldsContext(),M=e.itemsPerSlot||A.itemsPerSlot,m=r.useMemo(()=>K.toRanges(l,{step:s.MS_PER_DAY*p.DAYS_IN_WEEK_COUNT,timezone:o}),[l.start.getTime(),l.end.getTime(),o]),h=r.useMemo(()=>Z.toSlots(l,{step:s.MS_PER_DAY},{groups:T,ranges:m}),[l.start.getTime(),l.end.getTime(),T,m]),v=r.useMemo(()=>L.toOccurrences(S,{dateRange:l,fields:x,timezone:o}),[S,l.start.getTime(),l.end.getTime(),x,o]),g=r.useMemo(()=>G.toItems(v,{timezone:o},{groups:T,ranges:m}),[v,o,T,m]),Y=r.useCallback(t=>{const n=b.find(u=>u.props.name==="day");!k||!n||!n.props.name||!t.target.slot||(k(n.props.name,t),C(t.target.slot.start,t))},[k,b]);r.useMemo(()=>D.mapItemsToSlots(g,h,!0),[g,h]),r.useMemo(()=>D.mapSlotsToItems(g,h,!0),[g,h]);const V=r.createElement(P.SchedulerResourceIteratorContext.Consumer,null,({groupIndex:t})=>r.createElement("div",{className:"k-scheduler-row",key:t},h.filter(n=>n.group.index===t&&n.range.index===0).map((n,u)=>r.createElement(X.DateHeaderCell,{as:e.dateHeaderCell,key:u,"data-dayslot-index":u,date:s.ZonedDate.fromLocalDate(new Date(n.zonedEnd.getTime()-(n.zonedEnd.getTime()-n.zonedStart.getTime())/2),o),start:n.start,end:n.end,format:{skeleton:"EEEE"}})))),N=r.createElement(P.SchedulerResourceIteratorContext.Consumer,null,({groupIndex:t})=>m.map((n,u)=>r.createElement("div",{className:"k-scheduler-row",key:u},h.filter(a=>a.group.index===t&&a.range.index===u).map((a,R,H)=>r.createElement(f,{slot:e.slot,viewSlot:e.viewSlot,key:R,form:e.form,...a,expandable:{offsetTop:30,offsetBottom:M<a.items.length?15:0},onDataAction:e.onDataAction,col:w==="horizontal"?H.length*(t||0)+R:R,row:w==="horizontal"?u:m.length*(t||0)+u,editable:e.editable,className:_.classNames({"k-other-month":a.start.getMonth()<E.getMonth()||a.start.getMonth()>E.getMonth()})},r.createElement("span",{className:"k-link k-nav-day"},$.formatDate(new Date(a.end.getTime()-(a.end.getTime()-a.start.getTime())/2),te)),M<a.items.length&&r.createElement(J.ShowMoreItemsButton,{slot:a,onClick:Y}))))));return r.createElement(B.BaseView,{props:e,slots:h,ranges:m,className:_.classNames("k-scheduler-monthview",e.className)},r.createElement("div",{className:"k-scheduler-head"},w==="horizontal"?r.createElement(O.HorizontalResourceIterator,{nested:!0,resources:i,group:c},V):r.createElement(z.VerticalResourceIterator,{resources:i,group:c},V)),r.createElement("div",{className:"k-scheduler-body"},w==="horizontal"?r.createElement(O.HorizontalResourceIterator,{resources:i,group:c},N):r.createElement(z.VerticalResourceIterator,{nested:!0,resources:i,group:c},N),g.filter(t=>t.order===null||t.order<M).sort(D.orderSort).map(t=>r.createElement(y,{item:e.item,viewItem:e.viewItem,form:e.form,key:t.isRecurring?`${t.uid}:${t.group.index}:${t.range.index}:${t.originalStart}`:`${t.uid}:${t.group.index}:${t.range.index}`,...t,onDataAction:e.onDataAction,style:{transform:"translateY(30px)"},vertical:!1,editable:e.editable,ignoreIsAllDay:!0}))))},re=({intl:e,date:c,timezone:o})=>{const i=s.firstDayInWeek(s.firstDayOfMonth(s.getDate(c)),e.firstDay()),y=s.addDays(s.firstDayInWeek(s.lastDayOfMonth(s.getDate(c)),e.firstDay()),p.DAYS_IN_WEEK_COUNT),f=s.ZonedDate.fromUTCDate(D.toUTCDateTime(i),o),S=s.ZonedDate.fromUTCDate(D.toUTCDateTime(y),o),E=new Date(f.getTime()),C=new Date(S.getTime());return{start:E,end:C,zonedStart:f,zonedEnd:S}},A={name:"month",dateRange:re,slotDuration:1440,slotDivision:1,itemsPerSlot:2,numberOfDays:31,title:e=>e.toLanguageString(q.monthViewTitle,q.messages[q.monthViewTitle]),selectedDateFormat:"{0:Y}",selectedShortDateFormat:"{0:Y}"},oe={itemsPerSlot:j.number};I.propTypes=oe;I.displayName="KendoReactSchedulerMonthView";exports.MonthView=I;exports.monthViewDefaultProps=A;
@@ -8,7 +8,7 @@
8
8
  import * as t from "react";
9
9
  import H from "prop-types";
10
10
  import { BaseView as K } from "../../components/BaseView.mjs";
11
- import { ZonedDate as C, MS_PER_DAY as v, firstDayInWeek as z, firstDayOfMonth as L, getDate as V, addDays as W, lastDayOfMonth as G } from "@progress/kendo-date-math";
11
+ import { ZonedDate as C, firstDayInWeek as v, firstDayOfMonth as L, getDate as z, addDays as W, lastDayOfMonth as G, MS_PER_DAY as V } from "@progress/kendo-date-math";
12
12
  import { classNames as b } from "@progress/kendo-react-common";
13
13
  import { VerticalResourceIterator as A } from "../common/VerticalResourceIterator.mjs";
14
14
  import { HorizontalResourceIterator as P } from "../common/HorizontalResourceIterator.mjs";
@@ -28,10 +28,10 @@ import { SchedulerResourceIteratorContext as _ } from "../../context/SchedulerRe
28
28
  import { DateHeaderCell as ge } from "../../components/DateHeaderCell.mjs";
29
29
  const De = { skeleton: "dd" }, Y = (o) => {
30
30
  const { group: i, timezone: n, resources: d } = se(), E = o.editItem || ne, h = o.editSlot || Q, [u] = me(), [g, p] = ie(), [, T] = ce(), k = le(), D = de(), S = ue(), s = fe(), F = X(), M = he(), w = o.itemsPerSlot || Ee.itemsPerSlot, c = t.useMemo(
31
- () => ee(s, { step: v * $, timezone: n }),
31
+ () => ee(s, { step: V * $, timezone: n }),
32
32
  [s.start.getTime(), s.end.getTime(), n]
33
33
  ), l = t.useMemo(
34
- () => te(s, { step: v }, { groups: D, ranges: c }),
34
+ () => te(s, { step: V }, { groups: D, ranges: c }),
35
35
  [s.start.getTime(), s.end.getTime(), D, c]
36
36
  ), R = t.useMemo(
37
37
  () => oe(u, { dateRange: s, fields: M, timezone: n }),
@@ -117,7 +117,7 @@ const De = { skeleton: "dd" }, Y = (o) => {
117
117
  )))
118
118
  );
119
119
  }, Se = ({ intl: o, date: i, timezone: n }) => {
120
- const d = z(L(V(i)), o.firstDay()), E = W(z(G(V(i)), o.firstDay()), $), h = C.fromUTCDate(I(d), n), u = C.fromUTCDate(I(E), n), g = new Date(h.getTime()), p = new Date(u.getTime());
120
+ const d = v(L(z(i)), o.firstDay()), E = W(v(G(z(i)), o.firstDay()), $), h = C.fromUTCDate(I(d), n), u = C.fromUTCDate(I(E), n), g = new Date(h.getTime()), p = new Date(u.getTime());
121
121
  return {
122
122
  start: g,
123
123
  end: p,
@@ -127,7 +127,7 @@ const De = { skeleton: "dd" }, Y = (o) => {
127
127
  }, Ee = {
128
128
  name: "month",
129
129
  dateRange: Se,
130
- slotDuration: 24 * 60,
130
+ slotDuration: 1440,
131
131
  slotDivision: 1,
132
132
  itemsPerSlot: 2,
133
133
  numberOfDays: 31,
@@ -0,0 +1,183 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { DateRange, SchedulerViewProps, EditableProp, SchedulerViewDateRangeArgs } from '../../models/index.js';
9
+ import { Day } from '@progress/kendo-date-math';
10
+ import { SchedulerItemProps } from '../../items/SchedulerItem.js';
11
+ import { SchedulerEditSlotProps } from '../../slots/SchedulerEditSlot.js';
12
+ import { SchedulerSlotProps } from '../../slots/SchedulerSlot.js';
13
+ import { SchedulerEditItemProps } from '../../items/SchedulerEditItem.js';
14
+ import { SchedulerViewItemProps } from '../../items/SchedulerViewItem.js';
15
+ import { SchedulerViewSlotProps } from '../../slots/SchedulerViewSlot.js';
16
+ import { DateHeaderCellProps } from '../../components/DateHeaderCell.js';
17
+ import { TimeHeaderCellProps } from '../../components/TimeHeaderCell.js';
18
+ import { SchedulerFormProps } from '../../components/SchedulerForm.js';
19
+ import * as React from 'react';
20
+ /**
21
+ * @hidden
22
+ */
23
+ export interface MultiDayTimelineViewProps extends SchedulerViewProps {
24
+ /**
25
+ * Specifies the step by which the currently rendered days will be changed, when using the back and forwards buttons in the toolbar navigation.
26
+ */
27
+ step?: number;
28
+ /**
29
+ * Specifies the number of days that the view will render.
30
+ * Defaults to `1`.
31
+ */
32
+ numberOfDays?: number;
33
+ /**
34
+ * The long-date format for displaying the
35
+ * selected date in the Scheduler toolbar.
36
+ * Defaults to `{0:D} - {1:D}`
37
+ * ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
38
+ */
39
+ selectedDateFormat?: string;
40
+ /**
41
+ * The short-date format for displaying the
42
+ * selected date in the Scheduler toolbar.
43
+ * Defaults to `{0:d} - {1-d}`
44
+ * ([more information](https://www.github.com/telerik/kendo-intl/blob/develop/docs/date-formatting/index.md))
45
+ */
46
+ selectedShortDateFormat?: string;
47
+ /**
48
+ * Overrides the general `editable` prop of the Scheduler for the specified view only.
49
+ */
50
+ editable?: boolean | EditableProp;
51
+ /**
52
+ * The start time of the view. The TimelineView displays events which are visible after the start time.
53
+ * Accepts string values in the `HH:mm` format.
54
+ */
55
+ startTime?: string;
56
+ /**
57
+ * The end time of the view. The TimelineView displays events which are visible before the end time.
58
+ * Accepts string values in the `HH:mm` format.
59
+ */
60
+ endTime?: string;
61
+ /**
62
+ * The start time of the view when `showWorkHours` is set to `true`.
63
+ * Accepts string values in the `HH:mm` format.
64
+ */
65
+ workDayStart?: string;
66
+ /** @hidden */
67
+ isWorkDayStart?: string;
68
+ /**
69
+ * The end time of the view when `showWorkHours` is set to `true`.
70
+ * Accepts string values in the `HH:mm` format.
71
+ */
72
+ workDayEnd?: string;
73
+ /** @hidden */
74
+ isWorkDayEnd?: string;
75
+ /**
76
+ * The start of the work week.
77
+ */
78
+ workWeekStart?: Day;
79
+ /**
80
+ * The end of the work week.
81
+ */
82
+ workWeekEnd?: Day;
83
+ /**
84
+ * The number of divisions of the time slots.
85
+ */
86
+ slotDivisions?: number;
87
+ /**
88
+ * The duration (in minutes) of the time slots.
89
+ */
90
+ slotDuration?: number;
91
+ /**
92
+ * The width of a single time slot in pixels. Default is 100px.
93
+ */
94
+ columnWidth?: number;
95
+ /**
96
+ * If set to `true`, the view will be shown in the business-hours mode only.
97
+ *
98
+ * This will always override the internal `showWorkHours` state.
99
+ */
100
+ showWorkHours?: boolean;
101
+ /**
102
+ * Sets the initial business-hour mode. Default `true`.
103
+ *
104
+ * This option applies only the initial `showWorkHours` state.
105
+ */
106
+ defaultShowWorkHours?: boolean;
107
+ /**
108
+ * Sets a custom `className` to the wrapping element of the `TimelineView`.
109
+ */
110
+ className?: string;
111
+ /**
112
+ * Sets a custom `id` to the wrapping element of the `TimelineView`.
113
+ */
114
+ id?: string;
115
+ /**
116
+ * Sets a custom `style` property to the wrapping element of the `TimelineView`.
117
+ */
118
+ style?: React.CSSProperties;
119
+ /**
120
+ * Overrides the `item` prop of the Scheduler for the specified view only.
121
+ */
122
+ item?: React.ComponentType<SchedulerItemProps>;
123
+ /**
124
+ * Overrides the `viewItem` prop of the Scheduler for the specified view only.
125
+ */
126
+ viewItem?: React.ComponentType<SchedulerViewItemProps>;
127
+ /**
128
+ * Overrides the `editableItem` prop of the Scheduler for the specified view only.
129
+ */
130
+ editItem?: React.ComponentType<SchedulerEditItemProps>;
131
+ /**
132
+ * Overrides the `slot` prop of the Scheduler for the specified view only.
133
+ */
134
+ slot?: React.ComponentType<SchedulerSlotProps>;
135
+ /**
136
+ * Overrides the `viewSlot` prop of the Scheduler for the specified view only.
137
+ */
138
+ viewSlot?: React.ComponentType<SchedulerViewSlotProps>;
139
+ /**
140
+ * Overrides the `editSlot` prop of the Scheduler for the specified view only.
141
+ */
142
+ editSlot?: React.ComponentType<SchedulerEditSlotProps>;
143
+ /**
144
+ * Overrides the `form` prop of the Scheduler for the specified view only.
145
+ */
146
+ form?: React.ComponentType<SchedulerFormProps>;
147
+ /**
148
+ * If set to `false` the "current time" marker of the scheduler would not be displayed.
149
+ */
150
+ currentTimeMarker?: boolean;
151
+ /**
152
+ * Represents component based on the DateHeaderCellProps.
153
+ */
154
+ dateHeaderCell?: React.ComponentType<DateHeaderCellProps>;
155
+ /**
156
+ * Represents component based on the TimeHeaderCellProps.
157
+ */
158
+ timeHeaderCell?: React.ComponentType<TimeHeaderCellProps>;
159
+ }
160
+ /**
161
+ * @hidden
162
+ */
163
+ export declare const MultiDayTimelineView: React.FunctionComponent<MultiDayTimelineViewProps>;
164
+ /** @hidden */
165
+ export declare const multiDayTimelineViewDefaultProps: {
166
+ name: string;
167
+ title: string;
168
+ currentTimeMarker: boolean;
169
+ dateRange: ({ date, numberOfDays, timezone }: SchedulerViewDateRangeArgs) => DateRange;
170
+ selectedDateFormat: string;
171
+ selectedShortDateFormat: string;
172
+ numberOfDays: number;
173
+ startTime: string;
174
+ endTime: string;
175
+ isWorkDayStart: string;
176
+ isWorkDayEnd: string;
177
+ workWeekStart: Day;
178
+ workWeekEnd: Day;
179
+ slotDivisions: number;
180
+ slotDuration: number;
181
+ defaultShowWorkHours: boolean;
182
+ columnWidth: number;
183
+ };
@@ -7,12 +7,12 @@
7
7
  */
8
8
  import * as t from "react";
9
9
  import { BaseView as re } from "../../components/BaseView.mjs";
10
- 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";
10
+ import { Day as B, ZonedDate as z, getDate as oe, addDays as ne, MS_PER_DAY as ae, MS_PER_MINUTE as ie } from "@progress/kendo-date-math";
11
11
  import { HorizontalResourceIterator as L } from "../common/HorizontalResourceIterator.mjs";
12
12
  import { TimelineViewRowContent as se } from "./TimelineViewRowContent.mjs";
13
13
  import { TimelineViewAllEventsRowContent as me } from "./TimelineViewAllEventsRowContent.mjs";
14
14
  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";
15
+ import { toUTCDateTime as H, isInTimeRange as S, mapItemsToSlots as le, mapSlotsToItems as ce, isInDaysRange as de, intersects as X, last as Y, first as j, orderSort as ue } from "../../utils/index.mjs";
16
16
  import { classNames as De } from "@progress/kendo-react-common";
17
17
  import { toRanges as Te } from "../../services/rangeService.mjs";
18
18
  import { toSlots as fe } from "../../services/slotsService.mjs";
@@ -38,10 +38,10 @@ const Ae = "t", He = 0, nt = (e) => {
38
38
  () => W ? x : $,
39
39
  [W, x, $]
40
40
  ), c = t.useMemo(() => W ? I : F, [W, I, F]), o = t.useMemo(
41
- () => Te(i, { step: oe, timezone: n }),
41
+ () => Te(i, { step: ae, timezone: n }),
42
42
  [i.start.getTime(), i.end.getTime(), n]
43
43
  ), s = t.useMemo(
44
- () => fe(i, { step: M / _ * ne }, { groups: h, ranges: o }).filter(
44
+ () => fe(i, { step: M / _ * ie }, { groups: h, ranges: o }).filter(
45
45
  (r) => S(r.zonedStart, l, c) || l.getTime() === c.getTime()
46
46
  ),
47
47
  [
@@ -180,7 +180,7 @@ const Ae = "t", He = 0, nt = (e) => {
180
180
  )))
181
181
  );
182
182
  }, Ne = ({ date: e, numberOfDays: D = 1, timezone: n }) => {
183
- const T = z.fromLocalDate(e, n), f = ae(T), v = ie(f, D), E = z.fromUTCDate(H(f), n), y = z.fromUTCDate(H(v), n), g = new Date(E.getTime()), R = new Date(y.getTime());
183
+ const T = z.fromLocalDate(e, n), f = oe(T), v = ne(f, D), E = z.fromUTCDate(H(f), n), y = z.fromUTCDate(H(v), n), g = new Date(E.getTime()), R = new Date(y.getTime());
184
184
  return {
185
185
  start: g,
186
186
  end: R,