@progress/kendo-react-scheduler 15.2.0-develop.5 → 15.2.0-develop.7

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 (108) hide show
  1. package/Scheduler.d.ts +2 -2
  2. package/Scheduler.js +1 -1
  3. package/Scheduler.mjs +394 -302
  4. package/components/DateHeaderCell.js +1 -1
  5. package/components/DateHeaderCell.mjs +23 -20
  6. package/components/MoreEventsPopover.d.ts +25 -0
  7. package/components/MoreEventsPopover.js +8 -0
  8. package/components/MoreEventsPopover.mjs +59 -0
  9. package/components/SchedulerForm.d.ts +4 -0
  10. package/components/SchedulerForm.js +1 -1
  11. package/components/SchedulerForm.mjs +113 -100
  12. package/components/SchedulerRemoveDialog.d.ts +4 -0
  13. package/components/SchedulerRemoveDialog.js +1 -1
  14. package/components/SchedulerRemoveDialog.mjs +29 -29
  15. package/components/ShowMoreItemsButton.d.ts +1 -0
  16. package/components/ShowMoreItemsButton.js +1 -1
  17. package/components/ShowMoreItemsButton.mjs +33 -26
  18. package/components/header/navigation/NavigationDatePicker.d.ts +9 -1
  19. package/components/header/navigation/NavigationDatePicker.js +1 -1
  20. package/components/header/navigation/NavigationDatePicker.mjs +65 -71
  21. package/components/header/view-selector/ViewSelectorList.d.ts +9 -1
  22. package/components/header/view-selector/ViewSelectorList.js +1 -1
  23. package/components/header/view-selector/ViewSelectorList.mjs +35 -51
  24. package/dist/cdn/js/kendo-react-scheduler.js +1 -1
  25. package/editors/RemoveRecurrenceConfirmDialog.d.ts +17 -0
  26. package/editors/RemoveRecurrenceConfirmDialog.js +8 -0
  27. package/editors/RemoveRecurrenceConfirmDialog.mjs +28 -0
  28. package/editors/ResourceEditor.d.ts +1 -0
  29. package/editors/ResourceEditor.js +1 -1
  30. package/editors/ResourceEditor.mjs +18 -17
  31. package/editors/SchedulerFormEditor.d.ts +69 -356
  32. package/editors/SchedulerFormEditor.js +1 -1
  33. package/editors/SchedulerFormEditor.mjs +360 -227
  34. package/editors/SchedulerRecurrenceDialog.d.ts +30 -0
  35. package/editors/SchedulerRecurrenceDialog.js +8 -0
  36. package/editors/SchedulerRecurrenceDialog.mjs +463 -0
  37. package/editors/{FilterableComboBox.d.ts → TimezoneDropDownList.d.ts} +2 -2
  38. package/editors/TimezoneDropDownList.js +8 -0
  39. package/editors/TimezoneDropDownList.mjs +42 -0
  40. package/editors/ZonedDateTime.d.ts +2 -0
  41. package/editors/ZonedDateTime.js +1 -1
  42. package/editors/ZonedDateTime.mjs +11 -18
  43. package/editors/ZonedSplitDateTime.d.ts +34 -0
  44. package/editors/ZonedSplitDateTime.js +8 -0
  45. package/editors/ZonedSplitDateTime.mjs +72 -0
  46. package/hooks/index.d.ts +2 -0
  47. package/hooks/useGroupRowHeightSync.d.ts +10 -0
  48. package/hooks/useGroupRowHeightSync.js +8 -0
  49. package/hooks/useGroupRowHeightSync.mjs +84 -0
  50. package/hooks/useRecurrenceSummary.d.ts +10 -0
  51. package/hooks/useRecurrenceSummary.js +8 -0
  52. package/hooks/useRecurrenceSummary.mjs +69 -0
  53. package/hooks/useSlotExpand.js +1 -1
  54. package/hooks/useSlotExpand.mjs +55 -45
  55. package/hooks/useToolbarResponsive.d.ts +22 -0
  56. package/hooks/useToolbarResponsive.js +8 -0
  57. package/hooks/useToolbarResponsive.mjs +37 -0
  58. package/index.d.mts +5 -2
  59. package/index.d.ts +5 -2
  60. package/index.js +1 -1
  61. package/index.mjs +83 -79
  62. package/items/SchedulerEditItem.js +1 -1
  63. package/items/SchedulerEditItem.mjs +361 -347
  64. package/items/SchedulerItem.d.ts +4 -0
  65. package/items/SchedulerItem.js +1 -1
  66. package/items/SchedulerItem.mjs +171 -185
  67. package/items/SchedulerProportionalViewItem.js +1 -1
  68. package/items/SchedulerProportionalViewItem.mjs +111 -94
  69. package/items/SchedulerViewItem.js +1 -1
  70. package/items/SchedulerViewItem.mjs +175 -142
  71. package/messages/index.d.ts +75 -0
  72. package/messages/index.js +1 -1
  73. package/messages/index.mjs +147 -97
  74. package/models/Item.d.ts +2 -0
  75. package/models/Occurrence.d.ts +2 -0
  76. package/models/SchedulerModelFields.d.ts +5 -0
  77. package/models/SchedulerResource.d.ts +6 -0
  78. package/models/SchedulerView.d.ts +3 -0
  79. package/package-metadata.js +1 -1
  80. package/package-metadata.mjs +2 -2
  81. package/package.json +12 -11
  82. package/services/itemsService.js +1 -1
  83. package/services/itemsService.mjs +34 -32
  84. package/services/occurrenceService.js +1 -1
  85. package/services/occurrenceService.mjs +27 -26
  86. package/tasks/SchedulerTask.js +1 -1
  87. package/tasks/SchedulerTask.mjs +26 -26
  88. package/utils/index.d.ts +1 -0
  89. package/utils/index.js +1 -1
  90. package/utils/index.mjs +7 -6
  91. package/views/agenda/AgendaView.js +1 -1
  92. package/views/agenda/AgendaView.mjs +7 -7
  93. package/views/day/DayView.js +1 -1
  94. package/views/day/DayView.mjs +2 -2
  95. package/views/day/MultiDayView.js +1 -1
  96. package/views/day/MultiDayView.mjs +2 -2
  97. package/views/month/MonthView.js +1 -1
  98. package/views/month/MonthView.mjs +111 -82
  99. package/views/time/MultiDayTimelineView.js +1 -1
  100. package/views/time/MultiDayTimelineView.mjs +23 -23
  101. package/views/time/TimelineView.js +1 -1
  102. package/views/time/TimelineView.mjs +2 -2
  103. package/views/week/WeekView.js +1 -1
  104. package/views/week/WeekView.mjs +5 -5
  105. package/views/week/WorkWeekView.js +1 -1
  106. package/views/week/WorkWeekView.mjs +15 -15
  107. package/editors/FilterableComboBox.js +0 -8
  108. package/editors/FilterableComboBox.mjs +0 -30
@@ -6,54 +6,54 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import * as n from "react";
9
- import { SchedulerOccurrenceDialog as Mt } from "../components/SchedulerOccurrenceDialog.mjs";
10
- import { SchedulerForm as Kt } from "../components/SchedulerForm.mjs";
11
- import { SchedulerRemoveDialog as Tt } from "../components/SchedulerRemoveDialog.mjs";
12
- import { useId as Nt, Keys as z } from "@progress/kendo-react-common";
13
- import { SchedulerDrag as Pt } from "../views/common/SchedulerDrag.mjs";
14
- import { SchedulerResize as Ut } from "../views/common/SchedulerResize.mjs";
15
- import { SchedulerViewItem as Vt } from "./SchedulerViewItem.mjs";
16
- import { SchedulerEditItemContext as Xt } from "../context/SchedulerEditItemContext.mjs";
17
- import { FORM_ITEM_ACTION as I, useFormItem as Yt } from "./hooks/use-form-item.mjs";
18
- import { SHOW_OCCURRENCE_DIALOG_ACTION as d, useShowOccurrenceDialog as Ht } from "./hooks/use-show-occurrence-dialog.mjs";
19
- import { REMOVE_ITEM_ACTION as C, useRemoveItem as Lt } from "./hooks/use-remove-item.mjs";
20
- import { SHOW_REMOVE_DIALOG_ACTION as A, useShowRemoveDialog as Gt } from "./hooks/use-show-remove-item-dialog.mjs";
21
- import { DRAG_ITEM_ACTION as y, useDragItem as Wt } from "./hooks/use-drag-item.mjs";
22
- import { RESIZE_ITEM_ACTION as m, useResizeItem as Zt } from "./hooks/use-resize-item.mjs";
23
- import { SERIES_ACTION as D, useSeries as jt } from "./hooks/use-series.mjs";
24
- import { ITEMS_SELECT_ACTION as g } from "../hooks/use-items-selection.mjs";
25
- import { useEditable as qt } from "../hooks/useEditable.mjs";
26
- import { useSchedulerViewSelectedItemsContext as Jt, useSchedulerViewItemsContext as Qt, useSchedulerViewFocusedItemsContext as $t, useSchedulerViewFocusedSlotsContext as eo } from "../context/SchedulerViewContext.mjs";
27
- import { SLOTS_FOCUS_ACTION as R } from "../hooks/use-slots-focus.mjs";
9
+ import { SchedulerOccurrenceDialog as Tt } from "../components/SchedulerOccurrenceDialog.mjs";
10
+ import { SchedulerForm as Nt } from "../components/SchedulerForm.mjs";
11
+ import { SchedulerRemoveDialog as Pt } from "../components/SchedulerRemoveDialog.mjs";
12
+ import { useId as Ut, Keys as _ } from "@progress/kendo-react-common";
13
+ import { SchedulerDrag as Vt } from "../views/common/SchedulerDrag.mjs";
14
+ import { SchedulerResize as Xt } from "../views/common/SchedulerResize.mjs";
15
+ import { SchedulerViewItem as Yt } from "./SchedulerViewItem.mjs";
16
+ import { SchedulerEditItemContext as Ht } from "../context/SchedulerEditItemContext.mjs";
17
+ import { FORM_ITEM_ACTION as I, useFormItem as Lt } from "./hooks/use-form-item.mjs";
18
+ import { SHOW_OCCURRENCE_DIALOG_ACTION as d, useShowOccurrenceDialog as Gt } from "./hooks/use-show-occurrence-dialog.mjs";
19
+ import { REMOVE_ITEM_ACTION as C, useRemoveItem as Wt } from "./hooks/use-remove-item.mjs";
20
+ import { SHOW_REMOVE_DIALOG_ACTION as g, useShowRemoveDialog as Zt } from "./hooks/use-show-remove-item-dialog.mjs";
21
+ import { DRAG_ITEM_ACTION as y, useDragItem as jt } from "./hooks/use-drag-item.mjs";
22
+ import { RESIZE_ITEM_ACTION as m, useResizeItem as qt } from "./hooks/use-resize-item.mjs";
23
+ import { SERIES_ACTION as S, useSeries as Jt } from "./hooks/use-series.mjs";
24
+ import { ITEMS_SELECT_ACTION as A } from "../hooks/use-items-selection.mjs";
25
+ import { useEditable as Qt } from "../hooks/useEditable.mjs";
26
+ import { useSchedulerViewSelectedItemsContext as $t, useSchedulerViewItemsContext as eo, useSchedulerViewFocusedItemsContext as to, useSchedulerViewFocusedSlotsContext as oo } from "../context/SchedulerViewContext.mjs";
27
+ import { SLOTS_FOCUS_ACTION as p } from "../hooks/use-slots-focus.mjs";
28
28
  import { ITEMS_FOCUS_ACTION as X } from "../hooks/use-items-focus.mjs";
29
- import { SchedulerItemSelectionContext as to } from "../context/SchedulerContext.mjs";
30
- const oo = n.forwardRef(
31
- (t, i) => {
29
+ import { SchedulerItemSelectionContext as ao } from "../context/SchedulerContext.mjs";
30
+ const ro = n.forwardRef(
31
+ (t, l) => {
32
32
  const {
33
33
  _ref: s,
34
- itemRef: Ke,
35
- onDataAction: M,
36
- ignoreIsAllDay: K,
37
- viewItem: Te,
38
- series: Ne,
39
- onSeriesChange: Pe,
40
- form: Ue,
41
- formItem: Ve,
42
- onFormItemChange: Xe,
43
- drag: Ye,
44
- dragItem: He,
45
- onDragItemChange: Le,
46
- resize: Ge,
47
- resizeItem: We,
48
- onResizeItemChange: Ze,
49
- removeDialog: je,
50
- removeItem: qe,
51
- onRemoveItemChange: Je,
52
- occurrenceDialog: Qe,
53
- showOccurrenceDialog: $e,
54
- onShowOccurrenceDialogChange: et,
55
- showRemoveDialog: tt,
56
- onShowRemoveDialogChange: ot,
34
+ itemRef: Te,
35
+ onDataAction: T,
36
+ ignoreIsAllDay: N,
37
+ viewItem: Ne,
38
+ series: Pe,
39
+ onSeriesChange: Ue,
40
+ form: Ve,
41
+ formItem: Xe,
42
+ onFormItemChange: Ye,
43
+ drag: He,
44
+ dragItem: Le,
45
+ onDragItemChange: Ge,
46
+ resize: We,
47
+ resizeItem: Ze,
48
+ onResizeItemChange: je,
49
+ removeDialog: qe,
50
+ removeItem: Je,
51
+ onRemoveItemChange: Qe,
52
+ occurrenceDialog: $e,
53
+ showOccurrenceDialog: et,
54
+ onShowOccurrenceDialogChange: tt,
55
+ showRemoveDialog: ot,
56
+ onShowRemoveDialogChange: at,
57
57
  onFocus: Y,
58
58
  onFocusAction: H,
59
59
  onMouseDown: L,
@@ -68,10 +68,10 @@ const oo = n.forwardRef(
68
68
  onRemoveClickAction: ee,
69
69
  onPress: te,
70
70
  onPressAction: oe,
71
- onDrag: re,
72
- onDragAction: ae,
73
- onRelease: ie,
74
- onReleaseAction: le,
71
+ onDrag: ae,
72
+ onDragAction: re,
73
+ onRelease: le,
74
+ onReleaseAction: ie,
75
75
  onResizePress: ne,
76
76
  onResizePressAction: ce,
77
77
  onResizeStartDrag: se,
@@ -94,78 +94,78 @@ const oo = n.forwardRef(
94
94
  onFormSubmitAction: be,
95
95
  onCancel: ke,
96
96
  onCancelAction: we
97
- } = { ...k, ...t }, [rt, at] = n.useState(t.tabIndex), Be = n.useRef(null), l = n.useRef(null), it = Nt();
98
- n.useImperativeHandle(Be, () => ({ props: t, element: l.current && l.current.element })), n.useImperativeHandle(i, () => Be.current), n.useImperativeHandle(s, () => l.current), n.useImperativeHandle(Ke, () => l.current);
99
- const Oe = Te || k.viewItem, Fe = Ye || k.drag, Me = Ge || k.resize, lt = Ue || k.form, nt = Qe || k.occurrenceDialog, ct = je || k.removeDialog, T = qt(t.editable), [N, v] = Jt(), [P, , U] = jt(null, Ne, Pe), [w, st, O] = Yt({ series: P, onDataAction: M }, [
97
+ } = { ...O, ...t }, [rt, lt] = n.useState(t.tabIndex), Be = n.useRef(null), i = n.useRef(null), it = Ut();
98
+ n.useImperativeHandle(Be, () => ({ props: t, element: i.current && i.current.element })), n.useImperativeHandle(l, () => Be.current), n.useImperativeHandle(s, () => i.current), n.useImperativeHandle(Te, () => i.current);
99
+ const Oe = Ne || O.viewItem, Fe = He || O.drag, Me = We || O.resize, nt = Ve || O.form, ct = $e || O.occurrenceDialog, st = qe || O.removeDialog, x = Qt(t.editable), [P, b] = $t(), [B, , U] = Jt(null, Pe, Ue), [E, mt, z] = Lt({ series: B, onDataAction: T }, [
100
100
  null,
101
- Ve,
102
- Xe
103
- ]), [E, mt, f] = Wt(
104
- { dataItem: t.dataItem, ignoreIsAllDay: t.ignoreIsAllDay, isAllDay: t.isAllDay, onDataAction: M },
105
- [null, He, Le]
106
- ), [h, dt, u] = Zt(
107
- { dataItem: t.dataItem, onDataAction: M },
108
- [null, We, Ze]
109
- ), [S, yt, _] = Lt({ series: P, onDataAction: M }, [
101
+ Xe,
102
+ Ye
103
+ ]), [R, dt, h] = jt(
104
+ { dataItem: t.dataItem, ignoreIsAllDay: t.ignoreIsAllDay, isAllDay: t.isAllDay, onDataAction: T },
105
+ [null, Le, Ge]
106
+ ), [v, yt, u] = qt(
107
+ { dataItem: t.dataItem, onDataAction: T },
108
+ [null, Ze, je]
109
+ ), [k, ut, D] = Wt({ series: B, onDataAction: T }, [
110
110
  null,
111
- qe,
112
- Je
113
- ]), [V, ut, p] = Gt(
111
+ Je,
112
+ Qe
113
+ ]), [V, gt, f] = Zt(
114
114
  !1,
115
- tt,
116
- ot
117
- ), [x, gt, b] = Ht(
115
+ ot,
116
+ at
117
+ ), [F, ft, w] = Gt(
118
118
  !1,
119
- $e,
120
- et
121
- ), [ze] = Qt(), [, _e] = $t(), [, B] = eo(), xe = !!(l.current && N && N.some((o) => o.current === l.current)), c = n.useMemo(
119
+ et,
120
+ tt
121
+ ), [ze] = eo(), [, _e] = to(), [, M] = oo(), xe = !!(i.current && P && P.some((o) => o.current === i.current)), c = n.useMemo(
122
122
  () => ({
123
123
  selected: xe,
124
- series: P,
125
- formItem: w,
126
- dragItem: E,
127
- resizeItem: h,
128
- removeItem: S,
124
+ series: B,
125
+ formItem: E,
126
+ dragItem: R,
127
+ resizeItem: v,
128
+ removeItem: k,
129
129
  showRemoveDialog: V,
130
- showOccurrenceDialog: x
130
+ showOccurrenceDialog: F
131
131
  }),
132
- [E, w, S, h, xe, P, x, V]
133
- ), a = n.useMemo(
132
+ [R, E, k, v, xe, B, F, V]
133
+ ), r = n.useMemo(
134
134
  () => ({
135
- [D.set]: U,
136
- [D.toggle]: U,
137
- [D.reset]: U,
138
- [g.select]: v,
139
- [g.add]: v,
140
- [g.remove]: v,
141
- [g.reset]: v,
142
- [g.selectNext]: v,
143
- [g.selectPrev]: v,
144
- [I.set]: O,
145
- [I.setMaster]: O,
146
- [I.reset]: O,
147
- [I.complete]: O,
148
- [C.set]: _,
149
- [C.reset]: _,
150
- [C.complete]: _,
151
- [d.close]: b,
152
- [d.open]: b,
153
- [d.set]: b,
154
- [d.toggle]: b,
155
- [d.reset]: b,
156
- [A.close]: p,
157
- [A.open]: p,
158
- [A.set]: p,
159
- [A.toggle]: p,
160
- [A.reset]: p,
161
- [y.start]: f,
162
- [y.drag]: f,
163
- [y.complete]: f,
164
- [y.completeOccurrence]: f,
165
- [y.completeSeries]: f,
166
- [y.set]: f,
167
- [y.reset]: f,
168
- [y.dragSelected]: f,
135
+ [S.set]: U,
136
+ [S.toggle]: U,
137
+ [S.reset]: U,
138
+ [A.select]: b,
139
+ [A.add]: b,
140
+ [A.remove]: b,
141
+ [A.reset]: b,
142
+ [A.selectNext]: b,
143
+ [A.selectPrev]: b,
144
+ [I.set]: z,
145
+ [I.setMaster]: z,
146
+ [I.reset]: z,
147
+ [I.complete]: z,
148
+ [C.set]: D,
149
+ [C.reset]: D,
150
+ [C.complete]: D,
151
+ [d.close]: w,
152
+ [d.open]: w,
153
+ [d.set]: w,
154
+ [d.toggle]: w,
155
+ [d.reset]: w,
156
+ [g.close]: f,
157
+ [g.open]: f,
158
+ [g.set]: f,
159
+ [g.toggle]: f,
160
+ [g.reset]: f,
161
+ [y.start]: h,
162
+ [y.drag]: h,
163
+ [y.complete]: h,
164
+ [y.completeOccurrence]: h,
165
+ [y.completeSeries]: h,
166
+ [y.set]: h,
167
+ [y.reset]: h,
168
+ [y.dragSelected]: h,
169
169
  [m.start]: u,
170
170
  [m.startDrag]: u,
171
171
  [m.startDragSelected]: u,
@@ -178,339 +178,349 @@ const oo = n.forwardRef(
178
178
  [m.reset]: u,
179
179
  [X.next]: _e,
180
180
  [X.prev]: _e,
181
- [R.left]: B,
182
- [R.right]: B,
183
- [R.up]: B,
184
- [R.down]: B,
181
+ [p.left]: M,
182
+ [p.right]: M,
183
+ [p.up]: M,
184
+ [p.down]: M,
185
185
  null: () => {
186
186
  }
187
187
  }),
188
188
  [
189
- f,
190
- O,
191
- v,
192
- _,
189
+ h,
190
+ z,
191
+ b,
192
+ D,
193
193
  u,
194
194
  U,
195
- b,
196
- p,
195
+ w,
196
+ f,
197
197
  _e,
198
- B
198
+ M
199
199
  ]
200
- ), ft = n.useCallback(
200
+ ), It = n.useCallback(
201
201
  (o) => {
202
202
  if (H) {
203
203
  const e = H(o, t, c);
204
204
  e && (Array.isArray(e) ? e.filter(Boolean).map(
205
- (r) => r && a[r.type]({ ...r, item: l }, o)
206
- ) : a[e.type]({ ...e, item: l }));
205
+ (a) => a && r[a.type]({ ...a, item: i }, o)
206
+ ) : r[e.type]({ ...e, item: i }));
207
207
  }
208
208
  Y && Y.call(void 0, o);
209
209
  },
210
- [a, Y, H, t, c]
211
- ), It = n.useCallback(
210
+ [r, Y, H, t, c]
211
+ ), At = n.useCallback(
212
212
  (o) => {
213
213
  if (G) {
214
214
  const e = G(o, t, c);
215
215
  e && (Array.isArray(e) ? e.filter(Boolean).map(
216
- (r) => r && a[r.type]({ ...r, item: l }, o)
217
- ) : a[e.type]({ ...e, item: l }));
216
+ (a) => a && r[a.type]({ ...a, item: i }, o)
217
+ ) : r[e.type]({ ...e, item: i }));
218
218
  }
219
219
  L && L.call(void 0, o);
220
220
  },
221
- [a, L, G, t, c]
222
- ), At = n.useCallback(
221
+ [r, L, G, t, c]
222
+ ), Et = n.useCallback(
223
223
  (o) => {
224
224
  if (Z) {
225
225
  const e = Z(o, t, c);
226
226
  e && (Array.isArray(e) ? e.filter(Boolean).map(
227
- (r) => r && a[r.type]({ ...r, item: l }, o)
228
- ) : a[e.type]({ ...e, item: l }));
227
+ (a) => a && r[a.type]({ ...a, item: i }, o)
228
+ ) : r[e.type]({ ...e, item: i }));
229
229
  }
230
230
  W && W.call(void 0, o);
231
231
  },
232
- [a, W, Z, t, c]
233
- ), [, Et] = n.useContext(to), ht = n.useCallback(
232
+ [r, W, Z, t, c]
233
+ ), [, ht] = n.useContext(ao), Ct = n.useCallback(
234
234
  (o) => {
235
235
  if (q) {
236
- Et(l.current);
236
+ ht(i.current);
237
237
  const e = q(o, t, c);
238
238
  e && (Array.isArray(e) ? e.filter(Boolean).map(
239
- (r) => r && a[r.type]({ ...r, item: l }, o)
240
- ) : a[e.type]({ ...e, item: l }));
239
+ (a) => a && r[a.type]({ ...a, item: i }, o)
240
+ ) : r[e.type]({ ...e, item: i }));
241
241
  }
242
242
  j && j.call(void 0, o);
243
243
  },
244
- [a, j, q, t, c]
245
- ), Ct = n.useCallback(
244
+ [r, j, q, t, c]
245
+ ), Dt = n.useCallback(
246
246
  (o) => {
247
247
  if (Q) {
248
248
  const e = Q(o, t, c);
249
249
  e && (Array.isArray(e) ? e.filter(Boolean).map(
250
- (r) => r && a[r.type]({ ...r, item: l }, o)
251
- ) : a[e.type]({ ...e, item: l }));
250
+ (a) => a && r[a.type]({ ...a, item: i }, o)
251
+ ) : r[e.type]({ ...e, item: i }));
252
252
  }
253
253
  J && J.call(void 0, o);
254
254
  },
255
- [Q, J, t, a, c]
256
- ), Dt = n.useCallback(
255
+ [Q, J, t, r, c]
256
+ ), Rt = n.useCallback(
257
257
  (o) => {
258
258
  if (ee) {
259
259
  const e = ee(o, t, c);
260
260
  e && (Array.isArray(e) ? e.filter(Boolean).map(
261
- (r) => r && a[r.type]({ ...r, item: l }, o)
262
- ) : a[e.type]({ ...e, item: l }));
261
+ (a) => a && r[a.type]({ ...a, item: i }, o)
262
+ ) : r[e.type]({ ...e, item: i }));
263
263
  }
264
264
  $ && $.call(void 0, o);
265
265
  },
266
- [ee, $, t, a, c]
267
- ), Rt = n.useCallback(
266
+ [ee, $, t, r, c]
267
+ ), vt = n.useCallback(
268
268
  (o) => {
269
269
  if (oe) {
270
270
  const e = oe(o, t, c);
271
271
  e && (Array.isArray(e) ? e.filter(Boolean).map(
272
- (r) => r && a[r.type]({ ...r, item: l }, o)
273
- ) : a[e.type]({ ...e, item: l }, o));
272
+ (a) => a && r[a.type]({ ...a, item: i }, o)
273
+ ) : r[e.type]({ ...e, item: i }, o));
274
274
  }
275
275
  te && te.call(void 0, o);
276
276
  },
277
- [oe, te, t, a, c]
278
- ), vt = n.useCallback(
277
+ [oe, te, t, r, c]
278
+ ), St = n.useCallback(
279
279
  (o) => {
280
- if (ae) {
281
- const e = ae(o, t, c);
280
+ if (re) {
281
+ const e = re(o, t, c);
282
282
  e && (Array.isArray(e) ? e.filter(Boolean).map(
283
- (r) => r && a[r.type](
284
- { ...r, item: l },
283
+ (a) => a && r[a.type](
284
+ { ...a, item: i },
285
285
  o.dragEvent.originalEvent
286
286
  )
287
- ) : a[e.type](
288
- { ...e, item: l },
287
+ ) : r[e.type](
288
+ { ...e, item: i },
289
289
  o.dragEvent.originalEvent
290
290
  ));
291
291
  }
292
- re && re.call(void 0, o);
292
+ ae && ae.call(void 0, o);
293
293
  },
294
- [ae, re, t, a, c]
295
- ), St = n.useCallback(
294
+ [re, ae, t, r, c]
295
+ ), pt = n.useCallback(
296
296
  (o) => {
297
- if (le) {
298
- const e = le(o, t, c);
297
+ if (ie) {
298
+ const e = ie(o, t, c);
299
299
  e && (Array.isArray(e) ? e.filter(Boolean).map(
300
- (r) => r && a[r.type](
301
- { ...r, item: l },
300
+ (a) => a && r[a.type](
301
+ { ...a, item: i },
302
302
  o.dragEvent.originalEvent
303
303
  )
304
- ) : a[e.type](
305
- { ...e, item: l },
304
+ ) : r[e.type](
305
+ { ...e, item: i },
306
306
  o.dragEvent.originalEvent
307
307
  ));
308
308
  }
309
- ie && ie.call(void 0, o);
309
+ le && le.call(void 0, o);
310
310
  },
311
- [le, ie, t, a, c]
312
- ), pt = n.useCallback(
311
+ [ie, le, t, r, c]
312
+ ), bt = n.useCallback(
313
313
  (o) => {
314
314
  if (ce) {
315
315
  const e = ce(o, t, c);
316
316
  e && (Array.isArray(e) ? e.filter(Boolean).map(
317
- (r) => r && a[r.type](
318
- { ...r, item: l },
317
+ (a) => a && r[a.type](
318
+ { ...a, item: i },
319
319
  o.dragEvent.originalEvent
320
320
  )
321
- ) : a[e.type](
322
- { ...e, item: l },
321
+ ) : r[e.type](
322
+ { ...e, item: i },
323
323
  o.dragEvent.originalEvent
324
324
  ));
325
325
  }
326
326
  ne && ne.call(void 0, o);
327
327
  },
328
- [ce, ne, t, c, a]
329
- ), bt = n.useCallback(
328
+ [ce, ne, t, c, r]
329
+ ), kt = n.useCallback(
330
330
  (o) => {
331
331
  if (me) {
332
332
  const e = me(o, t, c);
333
333
  e && (Array.isArray(e) ? e.filter(Boolean).map(
334
- (r) => r && a[r.type](
335
- { ...r, item: l },
334
+ (a) => a && r[a.type](
335
+ { ...a, item: i },
336
336
  o.dragEvent.originalEvent
337
337
  )
338
- ) : a[e.type](
339
- { ...e, item: l },
338
+ ) : r[e.type](
339
+ { ...e, item: i },
340
340
  o.dragEvent.originalEvent
341
341
  ));
342
342
  }
343
343
  se && se.call(void 0, o);
344
344
  },
345
- [se, me, t, a, c]
346
- ), kt = n.useCallback(
345
+ [se, me, t, r, c]
346
+ ), wt = n.useCallback(
347
347
  (o) => {
348
348
  if (ye) {
349
349
  const e = ye(o, t, c);
350
350
  e && (Array.isArray(e) ? e.filter(Boolean).map(
351
- (r) => r && a[r.type](
352
- { ...r, item: l },
351
+ (a) => a && r[a.type](
352
+ { ...a, item: i },
353
353
  o.dragEvent.originalEvent
354
354
  )
355
- ) : a[e.type](
356
- { ...e, item: l },
355
+ ) : r[e.type](
356
+ { ...e, item: i },
357
357
  o.dragEvent.originalEvent
358
358
  ));
359
359
  }
360
360
  de && de.call(void 0, o);
361
361
  },
362
- [de, ye, t, a, c]
363
- ), wt = n.useCallback(
362
+ [de, ye, t, r, c]
363
+ ), Ot = n.useCallback(
364
364
  (o) => {
365
365
  if (ge) {
366
366
  const e = ge(o, t, c);
367
367
  e && (Array.isArray(e) ? e.filter(Boolean).map(
368
- (r) => r && a[r.type](
369
- { ...r, item: l },
368
+ (a) => a && r[a.type](
369
+ { ...a, item: i },
370
370
  o.dragEvent.originalEvent
371
371
  )
372
- ) : a[e.type](
373
- { ...e, item: l },
372
+ ) : r[e.type](
373
+ { ...e, item: i },
374
374
  o.dragEvent.originalEvent
375
375
  ));
376
376
  }
377
377
  ue && ue.call(void 0, o);
378
378
  },
379
- [ge, ue, t, a, c]
380
- ), Ot = n.useCallback(
379
+ [ge, ue, t, r, c]
380
+ ), zt = n.useCallback(
381
381
  (o) => {
382
382
  if (be) {
383
383
  const e = be(o, t, c);
384
384
  e && (Array.isArray(e) ? e.filter(Boolean).map(
385
- (r) => r && a[r.type]({ ...r, item: l }, o)
386
- ) : a[e.type]({ ...e, item: l }, o));
385
+ (a) => a && r[a.type]({ ...a, item: i }, o)
386
+ ) : r[e.type]({ ...e, item: i }, o));
387
387
  }
388
388
  pe && pe.call(void 0, o);
389
389
  },
390
- [be, pe, t, c, a]
391
- ), F = n.useCallback(
390
+ [be, pe, t, c, r]
391
+ ), K = n.useCallback(
392
392
  (o) => {
393
393
  if (we) {
394
394
  const e = we(o, t, c);
395
395
  e && (Array.isArray(e) ? e.filter(Boolean).map(
396
- (r) => r && a[r.type]({ ...r, item: l }, o)
397
- ) : a[e.type]({ ...e, item: l }, o));
396
+ (a) => a && r[a.type]({ ...a, item: i }, o)
397
+ ) : r[e.type]({ ...e, item: i }, o));
398
398
  }
399
399
  ke && ke.call(void 0, o);
400
400
  },
401
- [we, ke, t, c, a]
402
- ), zt = n.useCallback(
401
+ [we, ke, t, c, r]
402
+ ), _t = n.useCallback(
403
403
  (o) => {
404
404
  if (Ie) {
405
405
  const e = Ie(o, t, c);
406
406
  e && (Array.isArray(e) ? e.filter(Boolean).map(
407
- (r) => r && a[r.type]({ ...r, item: l }, o)
408
- ) : a[e.type]({ ...e, item: l }, o));
407
+ (a) => a && r[a.type]({ ...a, item: i }, o)
408
+ ) : r[e.type]({ ...e, item: i }, o));
409
409
  }
410
410
  fe && fe.call(void 0, o);
411
411
  },
412
- [Ie, fe, t, c, a]
413
- ), _t = n.useCallback(
412
+ [Ie, fe, t, c, r]
413
+ ), xt = n.useCallback(
414
414
  (o) => {
415
415
  if (Ee) {
416
416
  const e = Ee(o, t, c);
417
417
  e && (Array.isArray(e) ? e.filter(Boolean).map(
418
- (r) => r && a[r.type]({ ...r, item: l }, o)
419
- ) : a[e.type]({ ...e, item: l }, o));
418
+ (a) => a && r[a.type]({ ...a, item: i }, o)
419
+ ) : r[e.type]({ ...e, item: i }, o));
420
420
  }
421
421
  Ae && Ae.call(void 0, o);
422
422
  },
423
- [Ee, Ae, t, c, a]
424
- ), xt = n.useCallback(
423
+ [Ee, Ae, t, c, r]
424
+ ), Bt = n.useCallback(
425
425
  (o) => {
426
426
  if (Ce) {
427
427
  const e = Ce(o, t, c);
428
428
  e && (Array.isArray(e) ? e.filter(Boolean).map(
429
- (r) => r && a[r.type](
430
- { ...r, item: l },
429
+ (a) => a && r[a.type](
430
+ { ...a, item: i },
431
431
  o.syntheticEvent
432
432
  )
433
- ) : a[e.type]({ ...e, item: l }, o.syntheticEvent));
433
+ ) : r[e.type]({ ...e, item: i }, o.syntheticEvent));
434
434
  }
435
435
  he && he.call(void 0, o);
436
436
  },
437
- [Ce, he, t, c, a]
438
- ), Bt = n.useCallback(
437
+ [Ce, he, t, c, r]
438
+ ), Ft = n.useCallback(
439
439
  (o) => {
440
440
  if (Re) {
441
441
  const e = Re(o, t, c);
442
442
  e && (Array.isArray(e) ? e.filter(Boolean).map(
443
- (r) => r && a[r.type](
444
- { ...r, item: l },
443
+ (a) => a && r[a.type](
444
+ { ...a, item: i },
445
445
  o.syntheticEvent
446
446
  )
447
- ) : a[e.type]({ ...e, item: l }, o.syntheticEvent));
447
+ ) : r[e.type]({ ...e, item: i }, o.syntheticEvent));
448
448
  }
449
449
  De && De.call(void 0, o);
450
450
  },
451
- [Re, De, t, c, a]
452
- ), Ft = n.useCallback(
451
+ [Re, De, t, c, r]
452
+ ), Mt = n.useCallback(
453
+ (o) => {
454
+ D({ type: C.set, payload: o.value || E }), f({ type: g.open });
455
+ },
456
+ [D, f, E]
457
+ ), Kt = n.useCallback(
453
458
  (o) => {
454
459
  if (Se) {
455
460
  const e = Se(o, t, c);
456
461
  e && (Array.isArray(e) ? e.filter(Boolean).map(
457
- (r) => r && a[r.type](
458
- { ...r, item: l },
462
+ (a) => a && r[a.type](
463
+ { ...a, item: i },
459
464
  o.syntheticEvent
460
465
  )
461
- ) : a[e.type]({ ...e, item: l }, o.syntheticEvent));
466
+ ) : r[e.type]({ ...e, item: i }, o.syntheticEvent));
462
467
  }
463
468
  ve && ve.call(void 0, o);
464
469
  },
465
- [Se, ve, t, c, a]
470
+ [Se, ve, t, c, r]
471
+ ), Ke = n.useCallback(
472
+ (o) => {
473
+ E ? (D({ type: C.reset }), f({ type: g.close })) : K(o);
474
+ },
475
+ [E, D, f, K]
466
476
  );
467
477
  return n.useEffect(() => {
468
- const o = ze.length && ze[0].current === l.current;
469
- at(
470
- t.tabIndex !== void 0 ? t.tabIndex === null ? void 0 : t.tabIndex : N.length === 0 && o ? 0 : void 0
478
+ const o = ze.length && ze[0].current === i.current;
479
+ lt(
480
+ t.tabIndex !== void 0 ? t.tabIndex === null ? void 0 : t.tabIndex : P.length === 0 && o ? 0 : void 0
471
481
  );
472
- }, [ze, t.tabIndex, N.length]), /* @__PURE__ */ n.createElement(
473
- Xt,
482
+ }, [ze, t.tabIndex, P.length]), /* @__PURE__ */ n.createElement(
483
+ Ht,
474
484
  {
475
485
  props: t,
476
- form: [w, st, O],
477
- drag: [E, mt, f],
478
- resize: [h, dt, u],
479
- remove: [S, yt, _],
480
- showRemoveDialog: [V, ut, p],
481
- showOccurrenceDialog: [x, gt, b]
486
+ form: [E, mt, z],
487
+ drag: [R, dt, h],
488
+ resize: [v, yt, u],
489
+ remove: [k, ut, D],
490
+ showRemoveDialog: [V, gt, f],
491
+ showOccurrenceDialog: [F, ft, w]
482
492
  },
483
493
  /* @__PURE__ */ n.createElement(
484
494
  Oe,
485
495
  {
486
496
  ...t,
487
- _ref: l,
488
- itemRef: l,
497
+ _ref: i,
498
+ itemRef: i,
489
499
  selected: xe,
490
500
  tabIndex: rt,
491
501
  id: it,
492
- onKeyDown: xt,
493
- onKeyUp: Bt,
494
- onFocus: ft,
495
- onMouseUp: At,
496
- onMouseDown: It,
497
- onClick: ht,
498
- onDoubleClick: Ct,
499
- onRemoveClick: Dt,
500
- onPress: Rt,
501
- onDrag: vt,
502
- onRelease: St,
503
- onResizePress: pt,
504
- onResizeEndDrag: kt,
505
- onResizeStartDrag: bt,
506
- onResizeRelease: wt
502
+ onKeyDown: Bt,
503
+ onKeyUp: Ft,
504
+ onFocus: It,
505
+ onMouseUp: Et,
506
+ onMouseDown: At,
507
+ onClick: Ct,
508
+ onDoubleClick: Dt,
509
+ onRemoveClick: Rt,
510
+ onPress: vt,
511
+ onDrag: St,
512
+ onRelease: pt,
513
+ onResizePress: bt,
514
+ onResizeEndDrag: wt,
515
+ onResizeStartDrag: kt,
516
+ onResizeRelease: Ot
507
517
  }
508
518
  ),
509
- E && T.drag && (Array.isArray(E) ? E.map((o, e) => /* @__PURE__ */ n.createElement(
519
+ R && x.drag && (Array.isArray(R) ? R.map((o, e) => /* @__PURE__ */ n.createElement(
510
520
  Fe,
511
521
  {
512
522
  key: e,
513
- ignoreIsAllDay: K,
523
+ ignoreIsAllDay: N,
514
524
  dataItem: o,
515
525
  vertical: t.vertical,
516
526
  viewItem: Oe,
@@ -519,19 +529,19 @@ const oo = n.forwardRef(
519
529
  )) : /* @__PURE__ */ n.createElement(
520
530
  Fe,
521
531
  {
522
- ignoreIsAllDay: K,
523
- dataItem: E,
532
+ ignoreIsAllDay: N,
533
+ dataItem: R,
524
534
  vertical: t.vertical,
525
535
  viewItem: Oe,
526
536
  item: t.item
527
537
  }
528
538
  )),
529
- h && T.resize && (Array.isArray(h) ? h.map((o, e) => /* @__PURE__ */ n.createElement(
539
+ v && x.resize && (Array.isArray(v) ? v.map((o, e) => /* @__PURE__ */ n.createElement(
530
540
  Me,
531
541
  {
532
542
  key: e,
533
543
  format: t.format,
534
- ignoreIsAllDay: K,
544
+ ignoreIsAllDay: N,
535
545
  dataItem: o,
536
546
  viewItem: t.viewItem,
537
547
  item: t.item,
@@ -541,149 +551,151 @@ const oo = n.forwardRef(
541
551
  Me,
542
552
  {
543
553
  format: t.format,
544
- ignoreIsAllDay: K,
545
- dataItem: h,
554
+ ignoreIsAllDay: N,
555
+ dataItem: v,
546
556
  viewItem: t.viewItem,
547
557
  item: t.item,
548
558
  vertical: t.vertical
549
559
  }
550
560
  )),
551
- w && !x && T.edit && /* @__PURE__ */ n.createElement(
552
- lt,
561
+ E && !F && x.edit && /* @__PURE__ */ n.createElement(
562
+ nt,
553
563
  {
554
- dataItem: w,
555
- onSubmit: Ot,
556
- onClose: F,
557
- onCancel: F
564
+ dataItem: E,
565
+ onSubmit: zt,
566
+ onClose: K,
567
+ onCancel: K,
568
+ onDelete: x.remove ? Mt : void 0
558
569
  }
559
570
  ),
560
- x && /* @__PURE__ */ n.createElement(
561
- nt,
571
+ F && /* @__PURE__ */ n.createElement(
572
+ ct,
562
573
  {
563
- dataItem: w || E || h || S,
564
- isRemove: S !== null,
565
- onClose: F,
566
- onOccurrenceClick: zt,
567
- onSeriesClick: _t
574
+ dataItem: E || R || v || k,
575
+ isRemove: k !== null,
576
+ onClose: K,
577
+ onOccurrenceClick: _t,
578
+ onSeriesClick: xt
568
579
  }
569
580
  ),
570
- V && S && T.remove && /* @__PURE__ */ n.createElement(
571
- ct,
581
+ V && k && x.remove && /* @__PURE__ */ n.createElement(
582
+ st,
572
583
  {
573
- dataItem: S,
574
- onClose: F,
575
- onCancel: F,
576
- onConfirm: Ft
584
+ dataItem: k,
585
+ isSeries: B === !0,
586
+ onClose: Ke,
587
+ onCancel: Ke,
588
+ onConfirm: Kt
577
589
  }
578
590
  )
579
591
  );
580
592
  }
581
- ), k = {
582
- viewItem: Vt,
583
- drag: Pt,
584
- resize: Ut,
585
- form: Kt,
586
- occurrenceDialog: Mt,
587
- removeDialog: Tt,
588
- onClickAction: (t, i, s) => [
593
+ ), O = {
594
+ viewItem: Yt,
595
+ drag: Vt,
596
+ resize: Xt,
597
+ form: Nt,
598
+ occurrenceDialog: Tt,
599
+ removeDialog: Pt,
600
+ onClickAction: (t, l, s) => [
589
601
  {
590
- type: t.syntheticEvent.metaKey || t.syntheticEvent.ctrlKey ? s.selected && !s.dragItem && !s.resizeItem ? g.remove : g.add : g.select
602
+ type: t.syntheticEvent.metaKey || t.syntheticEvent.ctrlKey ? s.selected && !s.dragItem && !s.resizeItem ? A.remove : A.add : A.select
591
603
  }
592
604
  ],
593
- onDoubleClickAction: (t, i) => i.editable ? [
594
- { type: I.set, payload: i.dataItem },
595
- i.isRecurring && { type: d.open }
605
+ onDoubleClickAction: (t, l) => l.editable ? [
606
+ { type: I.set, payload: l.dataItem },
607
+ l.isRecurring && { type: d.open }
596
608
  ].filter(Boolean) : [],
597
- onRemoveClickAction: (t, i) => i.editable ? [
598
- { type: C.set, payload: i.dataItem },
599
- i.isRecurring ? { type: d.open } : { type: A.open }
609
+ onRemoveClickAction: (t, l) => l.editable ? [
610
+ { type: C.set, payload: l.dataItem },
611
+ l.isRecurring ? { type: d.open } : { type: g.open }
600
612
  ] : [],
601
- onPressAction: (t, i) => i.editable ? { type: y.start, payload: { x: t.dragEvent.clientX, y: t.dragEvent.clientY } } : [],
602
- onDragAction: (t, i) => i.editable ? {
613
+ onPressAction: (t, l) => l.editable ? { type: y.start, payload: { x: t.dragEvent.clientX, y: t.dragEvent.clientY } } : [],
614
+ onDragAction: (t, l) => l.editable ? {
603
615
  type: t.dragEvent.originalEvent.metaKey || t.dragEvent.originalEvent.ctrlKey ? y.dragSelected : y.drag,
604
616
  payload: { x: t.dragEvent.clientX, y: t.dragEvent.clientY }
605
617
  } : [],
606
- onReleaseAction: (t, i, s) => i.editable && s.dragItem ? i.isRecurring && !i.isException && s.series === null ? { type: d.open } : {
607
- type: i.isRecurring ? s.series ? y.completeSeries : y.completeOccurrence : y.complete,
618
+ onReleaseAction: (t, l, s) => l.editable && s.dragItem ? l.isRecurring && !l.isException && s.series === null ? { type: d.open } : {
619
+ type: l.isRecurring ? s.series ? y.completeSeries : y.completeOccurrence : y.complete,
608
620
  payload: { x: t.dragEvent.clientX, y: t.dragEvent.clientY }
609
621
  } : [],
610
- onResizePressAction: (t, i) => i.editable ? { type: m.start, payload: { x: t.dragEvent.clientX, y: t.dragEvent.clientY } } : [],
611
- onResizeStartDragAction: (t, i) => i.editable ? {
622
+ onResizePressAction: (t, l) => l.editable ? { type: m.start, payload: { x: t.dragEvent.clientX, y: t.dragEvent.clientY } } : [],
623
+ onResizeStartDragAction: (t, l) => l.editable ? {
612
624
  type: t.dragEvent.originalEvent.metaKey || t.dragEvent.originalEvent.ctrlKey ? m.startDragSelected : m.startDrag,
613
625
  payload: { x: t.dragEvent.clientX, y: t.dragEvent.clientY }
614
626
  } : [],
615
- onResizeEndDragAction: (t, i) => i.editable ? {
627
+ onResizeEndDragAction: (t, l) => l.editable ? {
616
628
  type: t.dragEvent.originalEvent.metaKey || t.dragEvent.originalEvent.ctrlKey ? m.endDragSelected : m.endDrag,
617
629
  payload: { x: t.dragEvent.clientX, y: t.dragEvent.clientY }
618
630
  } : [],
619
- onResizeReleaseAction: (t, i, s) => i.editable && s.resizeItem ? i.isRecurring && !i.isException && s.series === null ? { type: d.open } : {
620
- type: i.isRecurring ? s.series ? m.completeSeries : m.completeOccurrence : m.complete,
631
+ onResizeReleaseAction: (t, l, s) => l.editable && s.resizeItem ? l.isRecurring && !l.isException && s.series === null ? { type: d.open } : {
632
+ type: l.isRecurring ? s.series ? m.completeSeries : m.completeOccurrence : m.complete,
621
633
  payload: { x: t.dragEvent.clientX, y: t.dragEvent.clientY }
622
634
  } : [],
623
- onOccurrenceClickAction: (t, i, s) => s.dragItem ? [{ type: y.completeOccurrence }, { type: d.close }] : s.resizeItem ? [{ type: m.completeOccurrence }, { type: d.close }] : s.formItem ? [
624
- { type: D.set, payload: !1 },
625
- { type: I.set, payload: i.dataItem },
635
+ onOccurrenceClickAction: (t, l, s) => s.dragItem ? [{ type: y.completeOccurrence }, { type: d.close }] : s.resizeItem ? [{ type: m.completeOccurrence }, { type: d.close }] : s.formItem ? [
636
+ { type: S.set, payload: !1 },
637
+ { type: I.set, payload: l.dataItem },
626
638
  { type: d.close }
627
639
  ] : s.removeItem ? [
628
- { type: D.set, payload: !1 },
629
- { type: C.set, payload: i.dataItem },
630
- { type: A.open },
640
+ { type: S.set, payload: !1 },
641
+ { type: C.set, payload: l.dataItem },
642
+ { type: g.open },
631
643
  { type: d.close }
632
644
  ] : [],
633
- onSeriesClickAction: (t, i, s) => s.dragItem ? [{ type: y.completeSeries }, { type: d.close }] : s.resizeItem ? [{ type: m.completeSeries }, { type: d.close }] : s.formItem ? [
634
- { type: D.set, payload: !0 },
635
- { type: I.setMaster, payload: i.dataItem },
645
+ onSeriesClickAction: (t, l, s) => s.dragItem ? [{ type: y.completeSeries }, { type: d.close }] : s.resizeItem ? [{ type: m.completeSeries }, { type: d.close }] : s.formItem ? [
646
+ { type: S.set, payload: !0 },
647
+ { type: I.setMaster, payload: l.dataItem },
636
648
  { type: d.close }
637
649
  ] : s.removeItem ? [
638
- { type: D.set, payload: !0 },
639
- { type: C.set, payload: i.dataItem },
640
- { type: A.open },
650
+ { type: S.set, payload: !0 },
651
+ { type: C.set, payload: l.dataItem },
652
+ { type: g.open },
641
653
  { type: d.close }
642
654
  ] : [],
643
- onKeyDownAction: (t, i) => {
655
+ onKeyDownAction: (t, l) => {
644
656
  switch (t.syntheticEvent.keyCode) {
645
- case z.enter:
646
- return [
647
- { type: I.set, payload: i.dataItem },
648
- i.isRecurring && { type: d.open }
649
- ];
650
- case z.tab:
657
+ case _.enter:
658
+ return l.editable && !l.readonly ? [
659
+ { type: I.set, payload: l.dataItem },
660
+ l.isRecurring && { type: d.open }
661
+ ] : [];
662
+ case _.tab:
651
663
  return [
652
664
  {
653
665
  type: t.syntheticEvent.shiftKey ? X.prev : X.next,
654
- ignoreIsAllDay: i.ignoreIsAllDay
666
+ ignoreIsAllDay: l.ignoreIsAllDay
655
667
  },
656
668
  {
657
- type: t.syntheticEvent.shiftKey ? g.selectPrev : g.selectNext,
658
- ignoreIsAllDay: i.ignoreIsAllDay
669
+ type: t.syntheticEvent.shiftKey ? A.selectPrev : A.selectNext,
670
+ ignoreIsAllDay: l.ignoreIsAllDay
659
671
  }
660
672
  ];
661
- case z.up:
673
+ case _.up:
662
674
  return [
663
- !!(i.slots.length && i.slots[0]._ref.current) && {
664
- type: R.up,
665
- slot: i.slots[0]._ref
675
+ !!(l.slots.length && l.slots[0]._ref.current) && {
676
+ type: p.up,
677
+ slot: l.slots[0]._ref
666
678
  }
667
679
  ];
668
- case z.right:
680
+ case _.right:
669
681
  return [
670
- !!(i.slots.length && i.slots[0]._ref.current) && {
671
- type: R.right,
672
- slot: i.slots[0]._ref
682
+ !!(l.slots.length && l.slots[0]._ref.current) && {
683
+ type: p.right,
684
+ slot: l.slots[0]._ref
673
685
  }
674
686
  ];
675
- case z.down:
687
+ case _.down:
676
688
  return [
677
- !!(i.slots.length && i.slots[i.slots.length - 1]._ref.current) && {
678
- type: R.down,
679
- slot: i.slots[i.slots.length - 1]._ref
689
+ !!(l.slots.length && l.slots[l.slots.length - 1]._ref.current) && {
690
+ type: p.down,
691
+ slot: l.slots[l.slots.length - 1]._ref
680
692
  }
681
693
  ];
682
- case z.left:
694
+ case _.left:
683
695
  return [
684
- !!(i.slots.length && i.slots[0]._ref.current) && {
685
- type: R.left,
686
- slot: i.slots[0]._ref
696
+ !!(l.slots.length && l.slots[0]._ref.current) && {
697
+ type: p.left,
698
+ slot: l.slots[0]._ref
687
699
  }
688
700
  ];
689
701
  default:
@@ -695,20 +707,22 @@ const oo = n.forwardRef(
695
707
  ],
696
708
  onRemoveConfirmAction: () => [
697
709
  { type: C.complete },
710
+ { type: I.reset },
711
+ { type: g.close },
698
712
  { type: d.close }
699
713
  ],
700
714
  onCancelAction: () => [
701
- { type: D.reset },
715
+ { type: S.reset },
702
716
  { type: C.reset },
703
717
  { type: I.reset },
704
718
  { type: y.reset },
705
719
  { type: m.reset },
706
- { type: A.reset },
720
+ { type: g.reset },
707
721
  { type: d.reset }
708
722
  ]
709
723
  };
710
- oo.displayName = "KendoReactSchedulerEditItem";
724
+ ro.displayName = "KendoReactSchedulerEditItem";
711
725
  export {
712
- oo as SchedulerEditItem,
713
- k as schedulerEditItemDefaultProps
726
+ ro as SchedulerEditItem,
727
+ O as schedulerEditItemDefaultProps
714
728
  };