@progress/kendo-react-scheduler 16.1.0-develop.9 → 16.1.0

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.
@@ -6,61 +6,61 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import * as n from "react";
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";
9
+ import { SchedulerOccurrenceDialog as Nt } from "../components/SchedulerOccurrenceDialog.mjs";
10
+ import { SchedulerForm as Pt } from "../components/SchedulerForm.mjs";
11
+ import { SchedulerRemoveDialog as Ut } from "../components/SchedulerRemoveDialog.mjs";
12
+ import { useId as Vt, Keys as _ } from "@progress/kendo-react-common";
13
+ import { SchedulerDrag as Xt } from "../views/common/SchedulerDrag.mjs";
14
+ import { SchedulerResize as Yt } from "../views/common/SchedulerResize.mjs";
15
+ import { SchedulerViewItem as Ht } from "./SchedulerViewItem.mjs";
16
+ import { SchedulerEditItemContext as Lt } from "../context/SchedulerEditItemContext.mjs";
17
+ import { FORM_ITEM_ACTION as I, useFormItem as Gt } from "./hooks/use-form-item.mjs";
18
+ import { SHOW_OCCURRENCE_DIALOG_ACTION as d, useShowOccurrenceDialog as Wt } from "./hooks/use-show-occurrence-dialog.mjs";
19
+ import { REMOVE_ITEM_ACTION as C, useRemoveItem as jt } from "./hooks/use-remove-item.mjs";
20
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";
21
+ import { DRAG_ITEM_ACTION as y, useDragItem as qt } from "./hooks/use-drag-item.mjs";
22
+ import { RESIZE_ITEM_ACTION as m, useResizeItem as Jt } from "./hooks/use-resize-item.mjs";
23
+ import { SERIES_ACTION as S, useSeries as Qt } from "./hooks/use-series.mjs";
24
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";
25
+ import { useEditable as $t } from "../hooks/useEditable.mjs";
26
+ import { useSchedulerViewSelectedItemsContext as eo, useSchedulerViewItemsContext as to, useSchedulerViewFocusedItemsContext as oo, useSchedulerViewFocusedSlotsContext as ro } from "../context/SchedulerViewContext.mjs";
27
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
29
  import { SchedulerItemSelectionContext as ao } from "../context/SchedulerContext.mjs";
30
- const ro = n.forwardRef(
30
+ const Be = (t) => t === !0 || typeof t == "object" && t !== null && t.drag === !0, lo = n.forwardRef(
31
31
  (t, l) => {
32
32
  const {
33
33
  _ref: s,
34
- itemRef: Te,
34
+ itemRef: Ne,
35
35
  onDataAction: T,
36
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,
37
+ viewItem: Pe,
38
+ series: Ue,
39
+ onSeriesChange: Ve,
40
+ form: Xe,
41
+ formItem: Ye,
42
+ onFormItemChange: He,
43
+ drag: Le,
44
+ dragItem: Ge,
45
+ onDragItemChange: We,
46
+ resize: je,
47
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,
48
+ onResizeItemChange: qe,
49
+ removeDialog: Je,
50
+ removeItem: Qe,
51
+ onRemoveItemChange: $e,
52
+ occurrenceDialog: et,
53
+ showOccurrenceDialog: tt,
54
+ onShowOccurrenceDialogChange: ot,
55
+ showRemoveDialog: rt,
56
56
  onShowRemoveDialogChange: at,
57
57
  onFocus: Y,
58
58
  onFocusAction: H,
59
59
  onMouseDown: L,
60
60
  onMouseDownAction: G,
61
61
  onMouseUp: W,
62
- onMouseUpAction: Z,
63
- onClick: j,
62
+ onMouseUpAction: j,
63
+ onClick: Z,
64
64
  onClickAction: q,
65
65
  onDoubleClick: J,
66
66
  onDoubleClickAction: Q,
@@ -68,8 +68,8 @@ const ro = n.forwardRef(
68
68
  onRemoveClickAction: ee,
69
69
  onPress: te,
70
70
  onPressAction: oe,
71
- onDrag: ae,
72
- onDragAction: re,
71
+ onDrag: re,
72
+ onDragAction: ae,
73
73
  onRelease: le,
74
74
  onReleaseAction: ie,
75
75
  onResizePress: ne,
@@ -94,31 +94,31 @@ const ro = n.forwardRef(
94
94
  onFormSubmitAction: be,
95
95
  onCancel: ke,
96
96
  onCancelAction: we
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 }, [
97
+ } = { ...O, ...t }, [lt, it] = n.useState(t.tabIndex), Fe = n.useRef(null), i = n.useRef(null), nt = Vt();
98
+ n.useImperativeHandle(Fe, () => ({ props: t, element: i.current && i.current.element })), n.useImperativeHandle(l, () => Fe.current), n.useImperativeHandle(s, () => i.current), n.useImperativeHandle(Ne, () => i.current);
99
+ const Oe = Pe || O.viewItem, Me = Le || O.drag, Ke = je || O.resize, ct = Xe || O.form, st = et || O.occurrenceDialog, mt = Je || O.removeDialog, x = $t(t.editable), [P, b] = eo(), [B, , U] = Qt(null, Ue, Ve), [E, dt, z] = Gt({ series: B, onDataAction: T }, [
100
100
  null,
101
- Xe,
102
- Ye
103
- ]), [R, dt, h] = jt(
101
+ Ye,
102
+ He
103
+ ]), [R, yt, h] = qt(
104
104
  { dataItem: t.dataItem, ignoreIsAllDay: t.ignoreIsAllDay, isAllDay: t.isAllDay, onDataAction: T },
105
- [null, Le, Ge]
106
- ), [v, yt, u] = qt(
105
+ [null, Ge, We]
106
+ ), [v, ut, u] = Jt(
107
107
  { dataItem: t.dataItem, onDataAction: T },
108
- [null, Ze, je]
109
- ), [k, ut, D] = Wt({ series: B, onDataAction: T }, [
108
+ [null, Ze, qe]
109
+ ), [k, gt, D] = jt({ series: B, onDataAction: T }, [
110
110
  null,
111
- Je,
112
- Qe
113
- ]), [V, gt, f] = Zt(
111
+ Qe,
112
+ $e
113
+ ]), [V, ft, f] = Zt(
114
114
  !1,
115
- ot,
115
+ rt,
116
116
  at
117
- ), [F, ft, w] = Gt(
117
+ ), [F, It, w] = Wt(
118
118
  !1,
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(
119
+ tt,
120
+ ot
121
+ ), [ze] = to(), [, _e] = oo(), [, M] = ro(), xe = !!(i.current && P && P.some((o) => o.current === i.current)), c = n.useMemo(
122
122
  () => ({
123
123
  selected: xe,
124
124
  series: B,
@@ -130,7 +130,7 @@ const ro = n.forwardRef(
130
130
  showOccurrenceDialog: F
131
131
  }),
132
132
  [R, E, k, v, xe, B, F, V]
133
- ), r = n.useMemo(
133
+ ), a = n.useMemo(
134
134
  () => ({
135
135
  [S.set]: U,
136
136
  [S.toggle]: U,
@@ -197,278 +197,278 @@ const ro = n.forwardRef(
197
197
  _e,
198
198
  M
199
199
  ]
200
- ), It = n.useCallback(
200
+ ), At = 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
- (a) => a && r[a.type]({ ...a, item: i }, o)
206
- ) : r[e.type]({ ...e, item: i }));
205
+ (r) => r && a[r.type]({ ...r, item: i }, o)
206
+ ) : a[e.type]({ ...e, item: i }));
207
207
  }
208
208
  Y && Y.call(void 0, o);
209
209
  },
210
- [r, Y, H, t, c]
211
- ), At = n.useCallback(
210
+ [a, Y, H, t, c]
211
+ ), Et = 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
- (a) => a && r[a.type]({ ...a, item: i }, o)
217
- ) : r[e.type]({ ...e, item: i }));
216
+ (r) => r && a[r.type]({ ...r, item: i }, o)
217
+ ) : a[e.type]({ ...e, item: i }));
218
218
  }
219
219
  L && L.call(void 0, o);
220
220
  },
221
- [r, L, G, t, c]
222
- ), Et = n.useCallback(
221
+ [a, L, G, t, c]
222
+ ), ht = n.useCallback(
223
223
  (o) => {
224
- if (Z) {
225
- const e = Z(o, t, c);
224
+ if (j) {
225
+ const e = j(o, t, c);
226
226
  e && (Array.isArray(e) ? e.filter(Boolean).map(
227
- (a) => a && r[a.type]({ ...a, item: i }, o)
228
- ) : r[e.type]({ ...e, item: i }));
227
+ (r) => r && a[r.type]({ ...r, item: i }, o)
228
+ ) : a[e.type]({ ...e, item: i }));
229
229
  }
230
230
  W && W.call(void 0, o);
231
231
  },
232
- [r, W, Z, t, c]
233
- ), [, ht] = n.useContext(ao), Ct = n.useCallback(
232
+ [a, W, j, t, c]
233
+ ), [, Ct] = n.useContext(ao), Dt = n.useCallback(
234
234
  (o) => {
235
235
  if (q) {
236
- ht(i.current);
236
+ Ct(i.current);
237
237
  const e = q(o, t, c);
238
238
  e && (Array.isArray(e) ? e.filter(Boolean).map(
239
- (a) => a && r[a.type]({ ...a, item: i }, o)
240
- ) : r[e.type]({ ...e, item: i }));
239
+ (r) => r && a[r.type]({ ...r, item: i }, o)
240
+ ) : a[e.type]({ ...e, item: i }));
241
241
  }
242
- j && j.call(void 0, o);
242
+ Z && Z.call(void 0, o);
243
243
  },
244
- [r, j, q, t, c]
245
- ), Dt = n.useCallback(
244
+ [a, Z, q, t, c]
245
+ ), Rt = 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
- (a) => a && r[a.type]({ ...a, item: i }, o)
251
- ) : r[e.type]({ ...e, item: i }));
250
+ (r) => r && a[r.type]({ ...r, item: i }, o)
251
+ ) : a[e.type]({ ...e, item: i }));
252
252
  }
253
253
  J && J.call(void 0, o);
254
254
  },
255
- [Q, J, t, r, c]
256
- ), Rt = n.useCallback(
255
+ [Q, J, t, a, c]
256
+ ), vt = 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
- (a) => a && r[a.type]({ ...a, item: i }, o)
262
- ) : r[e.type]({ ...e, item: i }));
261
+ (r) => r && a[r.type]({ ...r, item: i }, o)
262
+ ) : a[e.type]({ ...e, item: i }));
263
263
  }
264
264
  $ && $.call(void 0, o);
265
265
  },
266
- [ee, $, t, r, c]
267
- ), vt = n.useCallback(
266
+ [ee, $, t, a, c]
267
+ ), St = 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
- (a) => a && r[a.type]({ ...a, item: i }, o)
273
- ) : r[e.type]({ ...e, item: i }, o));
272
+ (r) => r && a[r.type]({ ...r, item: i }, o)
273
+ ) : a[e.type]({ ...e, item: i }, o));
274
274
  }
275
275
  te && te.call(void 0, o);
276
276
  },
277
- [oe, te, t, r, c]
278
- ), St = n.useCallback(
277
+ [oe, te, t, a, c]
278
+ ), pt = n.useCallback(
279
279
  (o) => {
280
- if (re) {
281
- const e = re(o, t, c);
280
+ if (ae) {
281
+ const e = ae(o, t, c);
282
282
  e && (Array.isArray(e) ? e.filter(Boolean).map(
283
- (a) => a && r[a.type](
284
- { ...a, item: i },
283
+ (r) => r && a[r.type](
284
+ { ...r, item: i },
285
285
  o.dragEvent.originalEvent
286
286
  )
287
- ) : r[e.type](
287
+ ) : a[e.type](
288
288
  { ...e, item: i },
289
289
  o.dragEvent.originalEvent
290
290
  ));
291
291
  }
292
- ae && ae.call(void 0, o);
292
+ re && re.call(void 0, o);
293
293
  },
294
- [re, ae, t, r, c]
295
- ), pt = n.useCallback(
294
+ [ae, re, t, a, c]
295
+ ), bt = n.useCallback(
296
296
  (o) => {
297
297
  if (ie) {
298
298
  const e = ie(o, t, c);
299
299
  e && (Array.isArray(e) ? e.filter(Boolean).map(
300
- (a) => a && r[a.type](
301
- { ...a, item: i },
300
+ (r) => r && a[r.type](
301
+ { ...r, item: i },
302
302
  o.dragEvent.originalEvent
303
303
  )
304
- ) : r[e.type](
304
+ ) : a[e.type](
305
305
  { ...e, item: i },
306
306
  o.dragEvent.originalEvent
307
307
  ));
308
308
  }
309
309
  le && le.call(void 0, o);
310
310
  },
311
- [ie, le, t, r, c]
312
- ), bt = n.useCallback(
311
+ [ie, le, t, a, c]
312
+ ), kt = 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
- (a) => a && r[a.type](
318
- { ...a, item: i },
317
+ (r) => r && a[r.type](
318
+ { ...r, item: i },
319
319
  o.dragEvent.originalEvent
320
320
  )
321
- ) : r[e.type](
321
+ ) : a[e.type](
322
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, r]
329
- ), kt = n.useCallback(
328
+ [ce, ne, t, c, a]
329
+ ), wt = 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
- (a) => a && r[a.type](
335
- { ...a, item: i },
334
+ (r) => r && a[r.type](
335
+ { ...r, item: i },
336
336
  o.dragEvent.originalEvent
337
337
  )
338
- ) : r[e.type](
338
+ ) : a[e.type](
339
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, r, c]
346
- ), wt = n.useCallback(
345
+ [se, me, t, a, c]
346
+ ), Ot = 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
- (a) => a && r[a.type](
352
- { ...a, item: i },
351
+ (r) => r && a[r.type](
352
+ { ...r, item: i },
353
353
  o.dragEvent.originalEvent
354
354
  )
355
- ) : r[e.type](
355
+ ) : a[e.type](
356
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, r, c]
363
- ), Ot = n.useCallback(
362
+ [de, ye, t, a, c]
363
+ ), zt = 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
- (a) => a && r[a.type](
369
- { ...a, item: i },
368
+ (r) => r && a[r.type](
369
+ { ...r, item: i },
370
370
  o.dragEvent.originalEvent
371
371
  )
372
- ) : r[e.type](
372
+ ) : a[e.type](
373
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, r, c]
380
- ), zt = n.useCallback(
379
+ [ge, ue, t, a, c]
380
+ ), _t = 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
- (a) => a && r[a.type]({ ...a, item: i }, o)
386
- ) : r[e.type]({ ...e, item: i }, o));
385
+ (r) => r && a[r.type]({ ...r, item: i }, o)
386
+ ) : a[e.type]({ ...e, item: i }, o));
387
387
  }
388
388
  pe && pe.call(void 0, o);
389
389
  },
390
- [be, pe, t, c, r]
390
+ [be, pe, t, c, a]
391
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
- (a) => a && r[a.type]({ ...a, item: i }, o)
397
- ) : r[e.type]({ ...e, item: i }, o));
396
+ (r) => r && a[r.type]({ ...r, item: i }, o)
397
+ ) : a[e.type]({ ...e, item: i }, o));
398
398
  }
399
399
  ke && ke.call(void 0, o);
400
400
  },
401
- [we, ke, t, c, r]
402
- ), _t = n.useCallback(
401
+ [we, ke, t, c, a]
402
+ ), xt = 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
- (a) => a && r[a.type]({ ...a, item: i }, o)
408
- ) : r[e.type]({ ...e, item: i }, o));
407
+ (r) => r && a[r.type]({ ...r, item: i }, o)
408
+ ) : a[e.type]({ ...e, item: i }, o));
409
409
  }
410
410
  fe && fe.call(void 0, o);
411
411
  },
412
- [Ie, fe, t, c, r]
413
- ), xt = n.useCallback(
412
+ [Ie, fe, t, c, a]
413
+ ), Bt = 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
- (a) => a && r[a.type]({ ...a, item: i }, o)
419
- ) : r[e.type]({ ...e, item: i }, o));
418
+ (r) => r && a[r.type]({ ...r, item: i }, o)
419
+ ) : a[e.type]({ ...e, item: i }, o));
420
420
  }
421
421
  Ae && Ae.call(void 0, o);
422
422
  },
423
- [Ee, Ae, t, c, r]
424
- ), Bt = n.useCallback(
423
+ [Ee, Ae, t, c, a]
424
+ ), Ft = 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
- (a) => a && r[a.type](
430
- { ...a, item: i },
429
+ (r) => r && a[r.type](
430
+ { ...r, item: i },
431
431
  o.syntheticEvent
432
432
  )
433
- ) : r[e.type]({ ...e, item: i }, o.syntheticEvent));
433
+ ) : a[e.type]({ ...e, item: i }, o.syntheticEvent));
434
434
  }
435
435
  he && he.call(void 0, o);
436
436
  },
437
- [Ce, he, t, c, r]
438
- ), Ft = n.useCallback(
437
+ [Ce, he, t, c, a]
438
+ ), Mt = 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
- (a) => a && r[a.type](
444
- { ...a, item: i },
443
+ (r) => r && a[r.type](
444
+ { ...r, item: i },
445
445
  o.syntheticEvent
446
446
  )
447
- ) : r[e.type]({ ...e, item: i }, o.syntheticEvent));
447
+ ) : a[e.type]({ ...e, item: i }, o.syntheticEvent));
448
448
  }
449
449
  De && De.call(void 0, o);
450
450
  },
451
- [Re, De, t, c, r]
452
- ), Mt = n.useCallback(
451
+ [Re, De, t, c, a]
452
+ ), Kt = n.useCallback(
453
453
  (o) => {
454
454
  D({ type: C.set, payload: o.value || E }), f({ type: g.open });
455
455
  },
456
456
  [D, f, E]
457
- ), Kt = n.useCallback(
457
+ ), Tt = n.useCallback(
458
458
  (o) => {
459
459
  if (Se) {
460
460
  const e = Se(o, t, c);
461
461
  e && (Array.isArray(e) ? e.filter(Boolean).map(
462
- (a) => a && r[a.type](
463
- { ...a, item: i },
462
+ (r) => r && a[r.type](
463
+ { ...r, item: i },
464
464
  o.syntheticEvent
465
465
  )
466
- ) : r[e.type]({ ...e, item: i }, o.syntheticEvent));
466
+ ) : a[e.type]({ ...e, item: i }, o.syntheticEvent));
467
467
  }
468
468
  ve && ve.call(void 0, o);
469
469
  },
470
- [Se, ve, t, c, r]
471
- ), Ke = n.useCallback(
470
+ [Se, ve, t, c, a]
471
+ ), Te = n.useCallback(
472
472
  (o) => {
473
473
  E ? (D({ type: C.reset }), f({ type: g.close })) : K(o);
474
474
  },
@@ -476,19 +476,19 @@ const ro = n.forwardRef(
476
476
  );
477
477
  return n.useEffect(() => {
478
478
  const o = ze.length && ze[0].current === i.current;
479
- lt(
479
+ it(
480
480
  t.tabIndex !== void 0 ? t.tabIndex === null ? void 0 : t.tabIndex : P.length === 0 && o ? 0 : void 0
481
481
  );
482
482
  }, [ze, t.tabIndex, P.length]), /* @__PURE__ */ n.createElement(
483
- Ht,
483
+ Lt,
484
484
  {
485
485
  props: t,
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]
486
+ form: [E, dt, z],
487
+ drag: [R, yt, h],
488
+ resize: [v, ut, u],
489
+ remove: [k, gt, D],
490
+ showRemoveDialog: [V, ft, f],
491
+ showOccurrenceDialog: [F, It, w]
492
492
  },
493
493
  /* @__PURE__ */ n.createElement(
494
494
  Oe,
@@ -497,27 +497,27 @@ const ro = n.forwardRef(
497
497
  _ref: i,
498
498
  itemRef: i,
499
499
  selected: xe,
500
- tabIndex: rt,
501
- id: it,
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
500
+ tabIndex: lt,
501
+ id: nt,
502
+ onKeyDown: Ft,
503
+ onKeyUp: Mt,
504
+ onFocus: At,
505
+ onMouseUp: ht,
506
+ onMouseDown: Et,
507
+ onClick: Dt,
508
+ onDoubleClick: Rt,
509
+ onRemoveClick: vt,
510
+ onPress: St,
511
+ onDrag: pt,
512
+ onRelease: bt,
513
+ onResizePress: kt,
514
+ onResizeEndDrag: Ot,
515
+ onResizeStartDrag: wt,
516
+ onResizeRelease: zt
517
517
  }
518
518
  ),
519
519
  R && x.drag && (Array.isArray(R) ? R.map((o, e) => /* @__PURE__ */ n.createElement(
520
- Fe,
520
+ Me,
521
521
  {
522
522
  key: e,
523
523
  ignoreIsAllDay: N,
@@ -527,7 +527,7 @@ const ro = n.forwardRef(
527
527
  item: t.item
528
528
  }
529
529
  )) : /* @__PURE__ */ n.createElement(
530
- Fe,
530
+ Me,
531
531
  {
532
532
  ignoreIsAllDay: N,
533
533
  dataItem: R,
@@ -537,7 +537,7 @@ const ro = n.forwardRef(
537
537
  }
538
538
  )),
539
539
  v && x.resize && (Array.isArray(v) ? v.map((o, e) => /* @__PURE__ */ n.createElement(
540
- Me,
540
+ Ke,
541
541
  {
542
542
  key: e,
543
543
  format: t.format,
@@ -548,7 +548,7 @@ const ro = n.forwardRef(
548
548
  vertical: t.vertical
549
549
  }
550
550
  )) : /* @__PURE__ */ n.createElement(
551
- Me,
551
+ Ke,
552
552
  {
553
553
  format: t.format,
554
554
  ignoreIsAllDay: N,
@@ -559,44 +559,44 @@ const ro = n.forwardRef(
559
559
  }
560
560
  )),
561
561
  E && !F && x.edit && /* @__PURE__ */ n.createElement(
562
- nt,
562
+ ct,
563
563
  {
564
564
  dataItem: E,
565
- onSubmit: zt,
565
+ onSubmit: _t,
566
566
  onClose: K,
567
567
  onCancel: K,
568
- onDelete: x.remove ? Mt : void 0
568
+ onDelete: x.remove ? Kt : void 0
569
569
  }
570
570
  ),
571
571
  F && /* @__PURE__ */ n.createElement(
572
- ct,
572
+ st,
573
573
  {
574
574
  dataItem: E || R || v || k,
575
575
  isRemove: k !== null,
576
576
  onClose: K,
577
- onOccurrenceClick: _t,
578
- onSeriesClick: xt
577
+ onOccurrenceClick: xt,
578
+ onSeriesClick: Bt
579
579
  }
580
580
  ),
581
581
  V && k && x.remove && /* @__PURE__ */ n.createElement(
582
- st,
582
+ mt,
583
583
  {
584
584
  dataItem: k,
585
585
  isSeries: B === !0,
586
- onClose: Ke,
587
- onCancel: Ke,
588
- onConfirm: Kt
586
+ onClose: Te,
587
+ onCancel: Te,
588
+ onConfirm: Tt
589
589
  }
590
590
  )
591
591
  );
592
592
  }
593
593
  ), O = {
594
- viewItem: Yt,
595
- drag: Vt,
596
- resize: Xt,
597
- form: Nt,
598
- occurrenceDialog: Tt,
599
- removeDialog: Pt,
594
+ viewItem: Ht,
595
+ drag: Xt,
596
+ resize: Yt,
597
+ form: Pt,
598
+ occurrenceDialog: Nt,
599
+ removeDialog: Ut,
600
600
  onClickAction: (t, l, s) => [
601
601
  {
602
602
  type: t.syntheticEvent.metaKey || t.syntheticEvent.ctrlKey ? s.selected && !s.dragItem && !s.resizeItem ? A.remove : A.add : A.select
@@ -610,12 +610,12 @@ const ro = n.forwardRef(
610
610
  { type: C.set, payload: l.dataItem },
611
611
  l.isRecurring ? { type: d.open } : { type: g.open }
612
612
  ] : [],
613
- onPressAction: (t, l) => l.editable ? { type: y.start, payload: { x: t.dragEvent.clientX, y: t.dragEvent.clientY } } : [],
614
- onDragAction: (t, l) => l.editable ? {
613
+ onPressAction: (t, l) => Be(l.editable) ? { type: y.start, payload: { x: t.dragEvent.clientX, y: t.dragEvent.clientY } } : [],
614
+ onDragAction: (t, l) => Be(l.editable) ? {
615
615
  type: t.dragEvent.originalEvent.metaKey || t.dragEvent.originalEvent.ctrlKey ? y.dragSelected : y.drag,
616
616
  payload: { x: t.dragEvent.clientX, y: t.dragEvent.clientY }
617
617
  } : [],
618
- onReleaseAction: (t, l, s) => l.editable && s.dragItem ? l.isRecurring && !l.isException && s.series === null ? { type: d.open } : {
618
+ onReleaseAction: (t, l, s) => Be(l.editable) && s.dragItem ? l.isRecurring && !l.isException && s.series === null ? { type: d.open } : {
619
619
  type: l.isRecurring ? s.series ? y.completeSeries : y.completeOccurrence : y.complete,
620
620
  payload: { x: t.dragEvent.clientX, y: t.dragEvent.clientY }
621
621
  } : [],
@@ -721,8 +721,8 @@ const ro = n.forwardRef(
721
721
  { type: d.reset }
722
722
  ]
723
723
  };
724
- ro.displayName = "KendoReactSchedulerEditItem";
724
+ lo.displayName = "KendoReactSchedulerEditItem";
725
725
  export {
726
- ro as SchedulerEditItem,
726
+ lo as SchedulerEditItem,
727
727
  O as schedulerEditItemDefaultProps
728
728
  };