@progress/kendo-react-gantt 7.1.0-develop.9 → 7.1.1-develop.1

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.
package/index.mjs CHANGED
@@ -5,25 +5,25 @@
5
5
  "use client";
6
6
  import * as t from "react";
7
7
  import u from "prop-types";
8
- import { mapTree as ja, extendDataItem as Za, getter as T, classNames as ie, noop as W, useDraggable as nn, IconWrap as fn, canUseDOM as St, useId as an, validatePackage as Ja, shouldShowValidationUI as Qa, WatermarkOverlay as eo, setter as ne, guid as mt } from "@progress/kendo-react-common";
9
- import { MS_PER_MINUTE as to, MS_PER_DAY as Ue, getDate as pe, addDays as bt, ZonedDate as L, firstDayInWeek as ft, addMonths as pn, firstDayOfMonth as Cn, lastDayOfMonth as kn, firstMonthOfYear as no, lastMonthOfYear as ao } from "@progress/kendo-date-math";
10
- import { TABLE_ROW_INDEX_ATTRIBUTE as oo, TABLE_COL_INDEX_ATTRIBUTE as ro, TABLE_PREVENT_SELECTION_ELEMENT as so, orderBy as lo, filterBy as io, tableKeyboardNavigation as Re, getSelectionOptions as on, CommonDragLogic as co, ColumnResize as uo, tableKeyboardNavigationTools as rn, Header as mo, HeaderRow as go, tableColumnsVirtualization as ho, TableKeyboardNavigationContext as Dn, tableKeyboardNavigationScopeAttributes as fo, TableSelection as po, tableKeyboardNavigationBodyAttributes as Co, DropClue as ko, DragClue as Do, FilterRow as Eo, readColumns as yo, mapColumns as vo, TextFilterCell as wo, NumericFilterCell as To, BooleanFilterCell as So, DateFilterCell as bo } from "@progress/kendo-react-data-tools";
11
- import { getSelectedState as zs, getSelectedStateFromKeyDown as Ps, setSelectedState as Gs } from "@progress/kendo-react-data-tools";
12
- import { createDataTree as Io, setHeaderRowsTop as Ro, tableRowsVirtualization as xo, TreeListRow as En, TreeListNoRecords as Mo, TreeListCell as No, flatData as yn } from "@progress/kendo-react-treelist";
8
+ import { mapTree as Za, extendDataItem as Ja, getter as T, classNames as ie, noop as W, useIsomorphicLayoutEffect as fn, useDraggable as nn, IconWrap as pn, canUseDOM as St, useId as an, validatePackage as Qa, shouldShowValidationUI as eo, WatermarkOverlay as to, setter as ne, guid as mt } from "@progress/kendo-react-common";
9
+ import { MS_PER_MINUTE as no, MS_PER_DAY as Ue, getDate as pe, addDays as bt, ZonedDate as L, firstDayInWeek as ft, addMonths as Cn, firstDayOfMonth as kn, lastDayOfMonth as Dn, firstMonthOfYear as ao, lastMonthOfYear as oo } from "@progress/kendo-date-math";
10
+ import { TABLE_ROW_INDEX_ATTRIBUTE as ro, TABLE_COL_INDEX_ATTRIBUTE as so, TABLE_PREVENT_SELECTION_ELEMENT as lo, orderBy as io, filterBy as co, tableKeyboardNavigation as Re, getSelectionOptions as on, CommonDragLogic as uo, ColumnResize as mo, tableKeyboardNavigationTools as rn, Header as go, HeaderRow as ho, tableColumnsVirtualization as fo, TableKeyboardNavigationContext as En, tableKeyboardNavigationScopeAttributes as po, TableSelection as Co, tableKeyboardNavigationBodyAttributes as ko, DropClue as Do, DragClue as Eo, FilterRow as yo, readColumns as vo, mapColumns as wo, TextFilterCell as To, NumericFilterCell as So, BooleanFilterCell as bo, DateFilterCell as Io } from "@progress/kendo-react-data-tools";
11
+ import { getSelectedState as Ps, getSelectedStateFromKeyDown as Gs, setSelectedState as Ws } from "@progress/kendo-react-data-tools";
12
+ import { createDataTree as Ro, setHeaderRowsTop as xo, tableRowsVirtualization as Mo, TreeListRow as yn, TreeListNoRecords as No, TreeListCell as Fo, flatData as vn } from "@progress/kendo-react-treelist";
13
13
  import { useInternationalization as Ae, useLocalization as ce } from "@progress/kendo-react-intl";
14
- import { xIcon as Fo, plusIcon as It, minusIcon as vn, saveIcon as Lo, cancelIcon as Ao, trashIcon as Ho } from "@progress/kendo-svg-icons";
15
- import { Button as me, ButtonGroup as Vo, ToolbarItem as zo, Toolbar as Po, DropDownButton as Go, ToolbarSpacer as Wo } from "@progress/kendo-react-buttons";
16
- import * as wn from "react-dom";
17
- import { FieldWrapper as qe, FormElement as sn, Field as fe, Form as Oo } from "@progress/kendo-react-form";
18
- import { Window as _o, WindowActionsBar as Bo, Dialog as Ko, DialogActionsBar as $o } from "@progress/kendo-react-dialogs";
14
+ import { xIcon as Lo, plusIcon as It, minusIcon as wn, saveIcon as Ao, cancelIcon as Ho, trashIcon as Vo } from "@progress/kendo-svg-icons";
15
+ import { Button as me, ButtonGroup as zo, ToolbarItem as Po, Toolbar as Go, DropDownButton as Wo, ToolbarSpacer as Oo } from "@progress/kendo-react-buttons";
16
+ import * as Tn from "react-dom";
17
+ import { FieldWrapper as qe, FormElement as sn, Field as fe, Form as _o } from "@progress/kendo-react-form";
18
+ import { Window as Bo, WindowActionsBar as Ko, Dialog as $o, DialogActionsBar as Uo } from "@progress/kendo-react-dialogs";
19
19
  import { Label as Ye, Hint as Xe, Error as je } from "@progress/kendo-react-labels";
20
- import { Input as Uo, NumericTextBox as qo } from "@progress/kendo-react-inputs";
21
- import { TabStrip as Yo, TabStripTab as gt } from "@progress/kendo-react-layout";
22
- import { DateTimePicker as Xo } from "@progress/kendo-react-dateinputs";
20
+ import { Input as qo, NumericTextBox as Yo } from "@progress/kendo-react-inputs";
21
+ import { TabStrip as Xo, TabStripTab as gt } from "@progress/kendo-react-layout";
22
+ import { DateTimePicker as jo } from "@progress/kendo-react-dateinputs";
23
23
  import { findByFieldValue as re, DropDownList as He } from "@progress/kendo-react-dropdowns";
24
- import { Grid as Tn, GridToolbar as Sn, GridColumn as Be } from "@progress/kendo-react-grid";
25
- import { orderBy as bn, filterBy as In } from "@progress/kendo-data-query";
26
- const ys = oo, vs = ro, ws = so, ln = (/* @__PURE__ */ new Date()).getTime(), Rn = 7, jo = "hh:mm a", pt = { skeleton: "MEd" }, Zo = "MMM", Jo = "yyyy", Ve = 100, Qo = 6, Ke = "data-dependency-drag-handle", er = "start", tr = "finish", cn = { [Ke]: er }, dn = { [Ke]: tr }, $e = "data-task-id", xn = {
24
+ import { Grid as Sn, GridToolbar as bn, GridColumn as Be } from "@progress/kendo-react-grid";
25
+ import { orderBy as In, filterBy as Rn } from "@progress/kendo-data-query";
26
+ const vs = ro, ws = so, Ts = lo, ln = (/* @__PURE__ */ new Date()).getTime(), xn = 7, Zo = "hh:mm a", pt = { skeleton: "MEd" }, Jo = "MMM", Qo = "yyyy", Ve = 100, er = 6, Ke = "data-dependency-drag-handle", tr = "start", nr = "finish", cn = { [Ke]: tr }, dn = { [Ke]: nr }, $e = "data-task-id", Mn = {
27
27
  id: "id",
28
28
  start: "start",
29
29
  end: "end",
@@ -35,12 +35,12 @@ const ys = oo, vs = ro, ws = so, ln = (/* @__PURE__ */ new Date()).getTime(), Rn
35
35
  isInEdit: "isInEdit",
36
36
  children: "children",
37
37
  isSelected: "isSelected"
38
- }, Mn = {
38
+ }, Nn = {
39
39
  id: "id",
40
40
  fromId: "fromId",
41
41
  toId: "toId",
42
42
  type: "type"
43
- }, Ts = lo, Ss = io, Ze = ja, bs = Za, Is = Io, nr = (e) => ({ fields: { ...xn, ...e } }), ar = (e) => ({ fields: { ...Mn, ...e } }), Nn = (e) => pe(e), Rt = (e, a) => pe(bt(e, a || 1)), or = (e, a, n, r) => n < a && e <= r;
43
+ }, Ss = io, bs = co, Ze = Za, Is = Ja, Rs = Ro, ar = (e) => ({ fields: { ...Mn, ...e } }), or = (e) => ({ fields: { ...Nn, ...e } }), Fn = (e) => pe(e), Rt = (e, a) => pe(bt(e, a || 1)), rr = (e, a, n, r) => n < a && e <= r;
44
44
  function Ce(e) {
45
45
  return new Date(Date.UTC(
46
46
  e.getFullYear(),
@@ -52,7 +52,7 @@ function Ce(e) {
52
52
  e.getMilliseconds()
53
53
  ));
54
54
  }
55
- const ge = 4, ht = 10, rr = (e, a, n, r) => {
55
+ const ge = 4, ht = 10, sr = (e, a, n, r) => {
56
56
  const s = [];
57
57
  let o = 0, l = 0;
58
58
  const i = ht, g = Math.floor(n / 2), d = e.top < a.top, m = () => s.push({ left: l, top: o });
@@ -64,7 +64,7 @@ const ge = 4, ht = 10, rr = (e, a, n, r) => {
64
64
  o = e.top, l = e[c], m(), l = c === "start" ? l - i : l + i, m(), C || (o = d ? o + g : o - g, m(), l = c === "start" ? a[h] + i : a[h] - i, m()), o = a.top, m(), l = h === "start" ? a[h] - ge : a[h] + ge, m(), un(o, l, s, h !== "start");
65
65
  }
66
66
  return s;
67
- }, un = (e, a, n, r) => r ? sr(e, a, n) : lr(e, a, n), sr = (e, a, n) => {
67
+ }, un = (e, a, n, r) => r ? lr(e, a, n) : ir(e, a, n), lr = (e, a, n) => {
68
68
  n.push({
69
69
  top: e - ge / 2,
70
70
  left: a
@@ -78,7 +78,7 @@ const ge = 4, ht = 10, rr = (e, a, n, r) => {
78
78
  top: e,
79
79
  left: a
80
80
  });
81
- }, lr = (e, a, n) => {
81
+ }, ir = (e, a, n) => {
82
82
  n.push({
83
83
  top: e + ge / 2,
84
84
  left: a
@@ -92,7 +92,7 @@ const ge = 4, ht = 10, rr = (e, a, n, r) => {
92
92
  top: e,
93
93
  left: a
94
94
  });
95
- }, Fn = (e) => {
95
+ }, Ln = (e) => {
96
96
  if (e.workWeekStart === void 0 || e.workWeekEnd === void 0)
97
97
  return [];
98
98
  const a = [];
@@ -100,10 +100,10 @@ const ge = 4, ht = 10, rr = (e, a, n, r) => {
100
100
  for (a.push(n); e.workWeekEnd !== n; )
101
101
  n > 6 ? n -= 7 : n++, a.push(n);
102
102
  return a;
103
- }, ir = (e, a) => {
103
+ }, cr = (e, a) => {
104
104
  const n = e.getDay();
105
105
  return a.indexOf(n) > -1;
106
- }, Ln = (e, { step: a, timezone: n }) => {
106
+ }, An = (e, { step: a, timezone: n }) => {
107
107
  const r = [], s = L.fromLocalDate(e.start, n), o = L.fromLocalDate(e.end, n);
108
108
  let l = s.clone();
109
109
  for (; l.getTime() < o.getTime(); ) {
@@ -116,10 +116,10 @@ const ge = 4, ht = 10, rr = (e, a, n, r) => {
116
116
  r.push(c), l = l.addTime(a);
117
117
  }
118
118
  return r;
119
- }, cr = (e, { timezone: a }, n) => {
119
+ }, dr = (e, { timezone: a }, n) => {
120
120
  const r = [], s = L.fromLocalDate(e.start, a), o = L.fromLocalDate(e.end, a);
121
121
  for (let l = s.clone(), i = 0; l.getTime() < o.getTime(); i++) {
122
- const g = l.clone(), d = Rt(ft(pe(g), n.firstDay()), Rn), m = L.fromUTCDate(Ce(d), a), c = m.getTime() > o.getTime() ? o.clone() : m;
122
+ const g = l.clone(), d = Rt(ft(pe(g), n.firstDay()), xn), m = L.fromUTCDate(Ce(d), a), c = m.getTime() > o.getTime() ? o.clone() : m;
123
123
  l = c.clone();
124
124
  const h = new Date(g.getTime()), f = {
125
125
  end: new Date(c.getTime()),
@@ -130,10 +130,10 @@ const ge = 4, ht = 10, rr = (e, a, n, r) => {
130
130
  r.push(f);
131
131
  }
132
132
  return r;
133
- }, dr = (e, { timezone: a }) => {
133
+ }, ur = (e, { timezone: a }) => {
134
134
  const n = [], r = L.fromLocalDate(e.start, a), s = L.fromLocalDate(e.end, a);
135
135
  for (let o = r.clone(), l = 0; o.getTime() < s.getTime(); l++) {
136
- const i = o.clone(), g = L.fromLocalDate(pn(new Date(i.getTime()), 1), a);
136
+ const i = o.clone(), g = L.fromLocalDate(Cn(new Date(i.getTime()), 1), a);
137
137
  o = g.clone();
138
138
  const d = new Date(i.getTime()), c = {
139
139
  end: new Date(g.getTime()),
@@ -144,10 +144,10 @@ const ge = 4, ht = 10, rr = (e, a, n, r) => {
144
144
  n.push(c);
145
145
  }
146
146
  return n;
147
- }, ur = (e, { timezone: a }) => {
147
+ }, mr = (e, { timezone: a }) => {
148
148
  const n = [], r = L.fromLocalDate(e.start, a), s = L.fromLocalDate(e.end, a);
149
149
  for (let o = r.clone(), l = 0; o.getTime() < s.getTime(); l++) {
150
- const i = o.clone(), g = L.fromLocalDate(pn(new Date(i.getTime()), 12), a);
150
+ const i = o.clone(), g = L.fromLocalDate(Cn(new Date(i.getTime()), 12), a);
151
151
  o = g.clone();
152
152
  const d = new Date(i.getTime()), c = {
153
153
  end: new Date(g.getTime()),
@@ -158,25 +158,25 @@ const ge = 4, ht = 10, rr = (e, a, n, r) => {
158
158
  n.push(c);
159
159
  }
160
160
  return n;
161
- }, mr = (e, a, n) => {
161
+ }, gr = (e, a, n) => {
162
162
  const r = n.parseDate(a.workDayStart).getHours(), s = n.parseDate(a.workDayEnd).getHours();
163
- return Ln(e, { step: to * a.slotDuration, timezone: a.timezone }).map((l) => {
163
+ return An(e, { step: no * a.slotDuration, timezone: a.timezone }).map((l) => {
164
164
  const i = l.zonedStart.getHours();
165
165
  return {
166
166
  range: l,
167
167
  isWork: i >= r && i < s,
168
168
  span: 1,
169
- text: n.formatDate(l.zonedStart, jo),
169
+ text: n.formatDate(l.zonedStart, Zo),
170
170
  type: "time"
171
171
  };
172
172
  });
173
- }, An = (e, a, n) => Ln(e, { step: Ue, timezone: a.timezone }).map((s) => ({
173
+ }, Hn = (e, a, n) => An(e, { step: Ue, timezone: a.timezone }).map((s) => ({
174
174
  range: s,
175
- isWork: ir(s.start, a.workDays),
175
+ isWork: cr(s.start, a.workDays),
176
176
  span: 1,
177
177
  text: n.formatDate(s.zonedStart, pt),
178
178
  type: "day"
179
- })), Hn = (e, a, n) => cr(e, { timezone: a.timezone }, n).map((s) => {
179
+ })), Vn = (e, a, n) => dr(e, { timezone: a.timezone }, n).map((s) => {
180
180
  const o = Math.round((s.zonedEnd.getTime() - s.zonedStart.getTime()) / Ue);
181
181
  return {
182
182
  range: s,
@@ -185,25 +185,25 @@ const ge = 4, ht = 10, rr = (e, a, n, r) => {
185
185
  text: `${n.formatDate(s.zonedStart, pt)} - ${n.formatDate(s.zonedEnd, pt)}`,
186
186
  type: "week"
187
187
  };
188
- }), Vn = (e, a, n) => dr(e, { timezone: a.timezone }).map((s) => {
188
+ }), zn = (e, a, n) => ur(e, { timezone: a.timezone }).map((s) => {
189
189
  const o = Math.round((s.zonedEnd.getTime() - s.zonedStart.getTime()) / Ue);
190
190
  return {
191
191
  range: s,
192
192
  isWork: !1,
193
193
  span: o,
194
- text: n.formatDate(s.zonedStart, Zo),
194
+ text: n.formatDate(s.zonedStart, Jo),
195
195
  type: "month"
196
196
  };
197
- }), gr = (e, a, n) => ur(e, { timezone: a.timezone }).map((s) => {
197
+ }), hr = (e, a, n) => mr(e, { timezone: a.timezone }).map((s) => {
198
198
  const o = Math.round((s.zonedEnd.getTime() - s.zonedStart.getTime()) / Ue);
199
199
  return {
200
200
  range: s,
201
201
  isWork: !1,
202
202
  span: o,
203
- text: n.formatDate(s.zonedStart, Jo),
203
+ text: n.formatDate(s.zonedStart, Qo),
204
204
  type: "year"
205
205
  };
206
- }), hr = (e, a, n) => {
206
+ }), fr = (e, a, n) => {
207
207
  const r = n;
208
208
  return /* @__PURE__ */ t.createElement("table", { className: "k-table k-table-md", ref: a, "aria-hidden": !0 }, /* @__PURE__ */ t.createElement("tbody", { className: "k-table-tbody" }, e.map((s, o) => /* @__PURE__ */ t.createElement("tr", { className: "k-table-row", key: o }, s.map((l, i) => /* @__PURE__ */ t.createElement(
209
209
  "td",
@@ -230,7 +230,7 @@ const ge = 4, ht = 10, rr = (e, a, n, r) => {
230
230
  }
231
231
  ) : l.text
232
232
  ))))));
233
- }, fr = (e, a) => {
233
+ }, pr = (e, a) => {
234
234
  const n = e[e.length - 1];
235
235
  return /* @__PURE__ */ t.createElement("table", { className: "k-table k-table-md k-gantt-columns", ref: a, "aria-hidden": !0 }, /* @__PURE__ */ t.createElement("tbody", { className: "k-table-tbody" }, /* @__PURE__ */ t.createElement("tr", { className: "k-table-row" }, n.map((r) => /* @__PURE__ */ t.createElement(
236
236
  "td",
@@ -245,20 +245,20 @@ const ge = 4, ht = 10, rr = (e, a, n, r) => {
245
245
  )
246
246
  }
247
247
  )))));
248
- }, pr = (e, a) => {
248
+ }, Cr = (e, a) => {
249
249
  const n = e[e.length - 1];
250
250
  let r = 0, s = 0;
251
251
  return n.forEach((o) => {
252
252
  const l = o.span;
253
253
  s += l, l > r && (r = l);
254
254
  }), Math.round(s * a / r);
255
- }, Ct = (e, a) => !!T(a)(e), zn = (e, a) => !!T(a)(e), Cr = (e, a) => (n) => Ct(n, e) && zn(n, a) ? [...T(a)(n)] : [], xt = t.createContext([]), kr = () => t.useContext(xt);
255
+ }, Ct = (e, a) => !!T(a)(e), Pn = (e, a) => !!T(a)(e), kr = (e, a) => (n) => Ct(n, e) && Pn(n, a) ? [...T(a)(n)] : [], xt = t.createContext([]), Dr = () => t.useContext(xt);
256
256
  xt.displayName = "KendoReactGanttTaskDataContext";
257
- const Mt = t.createContext([]), Dr = () => t.useContext(Mt);
257
+ const Mt = t.createContext([]), Er = () => t.useContext(Mt);
258
258
  Mt.displayName = "KendoReactGanttDependencyDataContext";
259
- const Nt = t.createContext(xn), Ft = () => t.useContext(Nt);
259
+ const Nt = t.createContext(Mn), Ft = () => t.useContext(Nt);
260
260
  Nt.displayName = "KendoReactGanttTaskModelFieldsContext";
261
- const Lt = t.createContext(Mn), Pn = () => t.useContext(Lt);
261
+ const Lt = t.createContext(Nn), Gn = () => t.useContext(Lt);
262
262
  Lt.displayName = "KendoReactGanttDependencyModelFieldsContext";
263
263
  const At = t.createContext({}), ze = () => t.useContext(At);
264
264
  At.displayName = "KendoReactGanttPropsContext";
@@ -269,13 +269,13 @@ const Ht = t.createContext({
269
269
  zonedEnd: L.fromLocalDate(/* @__PURE__ */ new Date())
270
270
  }), Pe = () => t.useContext(Ht);
271
271
  Ht.displayName = "KendoReactGanttDateRangeContext";
272
- const Vt = t.createContext([]), Er = () => t.useContext(Vt);
272
+ const Vt = t.createContext([]), yr = () => t.useContext(Vt);
273
273
  Vt.displayName = "KendoReactGanttViewsContext";
274
- const zt = t.createContext(["week", W]), Gn = () => t.useContext(zt);
274
+ const zt = t.createContext(["week", W]), Wn = () => t.useContext(zt);
275
275
  zt.displayName = "KendoReactGanttActiveViewContext";
276
- const Pt = t.createContext(0), Wn = () => t.useContext(Pt);
276
+ const Pt = t.createContext(0), On = () => t.useContext(Pt);
277
277
  Pt.displayName = "KendoReactGanttRowHeightContext";
278
- const Gt = t.createContext(0), yr = () => t.useContext(Gt);
278
+ const Gt = t.createContext(0), vr = () => t.useContext(Gt);
279
279
  Gt.displayName = "KendoReactGanttToolbarHeightContext";
280
280
  const Wt = t.createContext({
281
281
  onDataStateChange: W,
@@ -292,15 +292,15 @@ const Wt = t.createContext({
292
292
  onKeyDown: W,
293
293
  onSelectionChange: W,
294
294
  onHeaderSelectionChange: W
295
- }), vr = () => t.useContext(Wt);
295
+ }), wr = () => t.useContext(Wt);
296
296
  Wt.displayName = "KendoReactGanttEventsContext";
297
297
  const Ot = t.createContext({
298
298
  onTaskClick: W,
299
299
  onTaskDoubleClick: W,
300
300
  onTaskContextMenu: W
301
- }), wr = () => t.useContext(Ot);
301
+ }), Tr = () => t.useContext(Ot);
302
302
  Ot.displayName = "KendoReactGanttTaskEventsContext";
303
- const On = ({
303
+ const _n = ({
304
304
  children: e,
305
305
  taskData: a,
306
306
  dependencyData: n,
@@ -315,10 +315,10 @@ const On = ({
315
315
  events: c,
316
316
  taskEvents: h
317
317
  }) => /* @__PURE__ */ t.createElement(At.Provider, { value: o }, /* @__PURE__ */ t.createElement(xt.Provider, { value: a }, /* @__PURE__ */ t.createElement(Mt.Provider, { value: n }, /* @__PURE__ */ t.createElement(Nt.Provider, { value: r }, /* @__PURE__ */ t.createElement(Lt.Provider, { value: s }, /* @__PURE__ */ t.createElement(Ht.Provider, { value: l }, /* @__PURE__ */ t.createElement(Vt.Provider, { value: i }, /* @__PURE__ */ t.createElement(zt.Provider, { value: g }, /* @__PURE__ */ t.createElement(Pt.Provider, { value: d }, /* @__PURE__ */ t.createElement(Gt.Provider, { value: m }, /* @__PURE__ */ t.createElement(Wt.Provider, { value: c }, /* @__PURE__ */ t.createElement(Ot.Provider, { value: h }, e))))))))))));
318
- On.displayName = "KendoReactGanttContext";
319
- const _t = t.createContext([{ current: {} }, W]), _n = () => t.useContext(_t);
318
+ _n.displayName = "KendoReactGanttContext";
319
+ const _t = t.createContext([{ current: {} }, W]), Bn = () => t.useContext(_t);
320
320
  _t.displayName = "KendoReactGanttViewContext";
321
- const Bt = t.createContext(0), Tr = () => t.useContext(Bt);
321
+ const Bt = t.createContext(0), Sr = () => t.useContext(Bt);
322
322
  Bt.displayName = "KendoReactGanttViewTimelineWidthContext";
323
323
  const Kt = t.createContext({
324
324
  onDependencyHandlePress: W,
@@ -326,17 +326,17 @@ const Kt = t.createContext({
326
326
  onDependencyHandleRelease: W,
327
327
  isEnabled: !1,
328
328
  draggedId: null
329
- }), Sr = () => t.useContext(Kt);
329
+ }), br = () => t.useContext(Kt);
330
330
  Kt.displayName = "KendoReactGanttViewDependencyDragContext";
331
- const Bn = ({
331
+ const Kn = ({
332
332
  children: e,
333
333
  tasksStore: a,
334
334
  timelineWidth: n,
335
335
  dependencyDrag: r
336
336
  }) => /* @__PURE__ */ t.createElement(_t.Provider, { value: a }, /* @__PURE__ */ t.createElement(Bt.Provider, { value: n }, /* @__PURE__ */ t.createElement(Kt.Provider, { value: r }, e)));
337
- Bn.displayName = "KendoReactGanttViewContext";
337
+ Kn.displayName = "KendoReactGanttViewContext";
338
338
  var kt = /* @__PURE__ */ ((e) => (e[e.add = 0] = "add", e[e.remove = 1] = "remove", e))(kt || {});
339
- const br = () => {
339
+ const Ir = () => {
340
340
  const e = t.useRef({}), a = t.useCallback(
341
341
  (n) => {
342
342
  switch (n.type) {
@@ -351,9 +351,9 @@ const br = () => {
351
351
  []
352
352
  );
353
353
  return [e, a];
354
- }, Ir = (e, a, n, r) => {
355
- const s = t.useRef(null), [, o] = _n();
356
- t.useImperativeHandle(s, () => ({ element: r.current, dataItem: e })), t.useImperativeHandle(n, () => s.current), t.useLayoutEffect(
354
+ }, Rr = (e, a, n, r) => {
355
+ const s = t.useRef(null), [, o] = Bn();
356
+ t.useImperativeHandle(s, () => ({ element: r.current, dataItem: e })), t.useImperativeHandle(n, () => s.current), fn(
357
357
  () => {
358
358
  const l = s.current;
359
359
  if (l)
@@ -370,10 +370,10 @@ const br = () => {
370
370
  };
371
371
  }
372
372
  );
373
- }, Kn = t.forwardRef((e, a) => {
374
- const n = Pe(), r = Ft(), s = Tr(), o = Sr(), l = wr(), i = t.useRef(null), g = t.useRef(null);
375
- Ir(e.dataItem, T(r.id)(e.dataItem), a, i);
376
- const d = t.useRef(null), m = T(r.id)(e.dataItem), c = T(r.start)(e.dataItem), h = T(r.end)(e.dataItem), C = T(r.title)(e.dataItem), f = T(r.percentComplete)(e.dataItem), k = T(r.children)(e.dataItem), y = T(r.isSelected)(e.dataItem), M = c && c.getTime(), A = h && h.getTime(), x = k && k.length, G = !x && M === A, b = M && A && or(n.start, n.end, c, h), [F, v] = t.useState(!1), w = t.useRef(null), $ = t.useRef(null);
373
+ }, $n = t.forwardRef((e, a) => {
374
+ const n = Pe(), r = Ft(), s = Sr(), o = br(), l = Tr(), i = t.useRef(null), g = t.useRef(null);
375
+ Rr(e.dataItem, T(r.id)(e.dataItem), a, i);
376
+ const d = t.useRef(null), m = T(r.id)(e.dataItem), c = T(r.start)(e.dataItem), h = T(r.end)(e.dataItem), C = T(r.title)(e.dataItem), f = T(r.percentComplete)(e.dataItem), k = T(r.children)(e.dataItem), y = T(r.isSelected)(e.dataItem), M = c && c.getTime(), A = h && h.getTime(), x = k && k.length, G = !x && M === A, b = M && A && rr(n.start, n.end, c, h), [F, v] = t.useState(!1), w = t.useRef(null), $ = t.useRef(null);
377
377
  nn(w, {
378
378
  onPress: o.onDependencyHandlePress,
379
379
  onDrag: o.onDependencyHandleDrag,
@@ -433,7 +433,7 @@ const br = () => {
433
433
  if (!b || I === null || N === null)
434
434
  return;
435
435
  const Q = I.clientWidth / (J.getTime() - S.getTime()), B = (c.getTime() - S.getTime()) * Q, q = (h.getTime() - c.getTime()) * Q, ke = (I.offsetHeight - N.offsetHeight) / 2;
436
- N.style.left = `${Math.round(G ? B - Qo : B)}px`, N.style.top = `${Math.round(ke)}px`, G || (N.style.width = `${Math.round(q)}px`, j !== null && (j.style.width = `${Math.round(q * (f || 0))}px`)), v(!0);
436
+ N.style.left = `${Math.round(G ? B - er : B)}px`, N.style.top = `${Math.round(ke)}px`, G || (N.style.width = `${Math.round(q)}px`, j !== null && (j.style.width = `${Math.round(q * (f || 0))}px`)), v(!0);
437
437
  },
438
438
  [n.start.getTime(), n.end.getTime(), M, A, b, f, s]
439
439
  );
@@ -498,7 +498,7 @@ const br = () => {
498
498
  onContextMenu: X
499
499
  },
500
500
  x ? /* @__PURE__ */ t.createElement("div", { className: "k-task-summary-progress", ref: g }, /* @__PURE__ */ t.createElement("div", { className: "k-task-summary-complete" })) : /* @__PURE__ */ t.createElement("div", { className: "k-task-complete", ref: g }),
501
- !x && /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("div", { className: "k-task-content" }, C), l.onTaskRemoveClick ? /* @__PURE__ */ t.createElement("span", { className: "k-task-actions" }, /* @__PURE__ */ t.createElement("span", { onClick: D, className: "k-link k-task-delete", "aria-label": "Delete" }, /* @__PURE__ */ t.createElement(fn, { name: "x", icon: Fo }))) : null),
501
+ !x && /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("div", { className: "k-task-content" }, C), l.onTaskRemoveClick ? /* @__PURE__ */ t.createElement("span", { className: "k-task-actions" }, /* @__PURE__ */ t.createElement("span", { onClick: D, className: "k-link k-task-delete", "aria-label": "Delete" }, /* @__PURE__ */ t.createElement(pn, { name: "x", icon: Lo }))) : null),
502
502
  o.isEnabled && /* @__PURE__ */ t.createElement(
503
503
  "div",
504
504
  {
@@ -519,9 +519,9 @@ const br = () => {
519
519
  )
520
520
  ));
521
521
  });
522
- Kn.displayName = "KendoReactGanttTask";
523
- const $n = (e) => {
524
- const { dependency: a } = e, [n] = _n(), r = t.useRef(null), s = Pn(), o = Wn(), [l, i] = t.useState(!1), g = () => {
522
+ $n.displayName = "KendoReactGanttTask";
523
+ const Un = (e) => {
524
+ const { dependency: a } = e, [n] = Bn(), r = t.useRef(null), s = Gn(), o = On(), [l, i] = t.useState(!1), g = () => {
525
525
  if (r.current === null || n.current === null) {
526
526
  i(!1);
527
527
  return;
@@ -548,7 +548,7 @@ const $n = (e) => {
548
548
  top: h.offsetTop + h.offsetHeight / 2,
549
549
  start: h.offsetLeft,
550
550
  end: h.offsetLeft + h.offsetWidth
551
- }, k = T(s.type)(a), y = rr(C, f, o, k);
551
+ }, k = T(s.type)(a), y = sr(C, f, o, k);
552
552
  y && y.length && r.current.setAttribute("points", y.map((M) => `${M.left},${M.top}`).join(" "));
553
553
  };
554
554
  return t.useEffect(g), /* @__PURE__ */ t.createElement(
@@ -561,7 +561,7 @@ const $n = (e) => {
561
561
  }
562
562
  );
563
563
  };
564
- $n.displayName = "KendoReactGanttDependency";
564
+ Un.displayName = "KendoReactGanttDependency";
565
565
  class $t extends t.Component {
566
566
  constructor(a) {
567
567
  super(a), this.state = {
@@ -671,7 +671,7 @@ class $t extends t.Component {
671
671
  const i = o.style.boxSizing;
672
672
  o.style.boxSizing = "border-box", l = parseFloat(String(window.getComputedStyle(o).height)) || o.offsetHeight, o.style.boxSizing = i, o.getAttribute("style") || o.removeAttribute("style");
673
673
  }
674
- this.tbodyOffsetTop = s.tBodies[0].offsetTop, Ro(s, l);
674
+ this.tbodyOffsetTop = s.tBodies[0].offsetTop, xo(s, l);
675
675
  }, this.onItemChange = (n) => {
676
676
  if (n.field === this.props.expandField) {
677
677
  const r = this.props.onExpandChange;
@@ -802,7 +802,7 @@ class $t extends t.Component {
802
802
  nativeEvent: n && n.nativeEvent,
803
803
  syntheticEvent: n,
804
804
  target: this
805
- }), this.getLeafDataItems = () => this.flatData.map((n) => n.dataItem), this.dragLogic = new co(this.onColumnReorder, W, W), this.columnResize = new uo(this.onColumnResize), Re.onConstructor({
805
+ }), this.getLeafDataItems = () => this.flatData.map((n) => n.dataItem), this.dragLogic = new uo(this.onColumnReorder, W, W), this.columnResize = new mo(this.onColumnResize), Re.onConstructor({
806
806
  navigatable: !!a.navigatable,
807
807
  contextStateRef: this.contextStateRef,
808
808
  navigationStateRef: this.navigationStateRef,
@@ -863,13 +863,13 @@ class $t extends t.Component {
863
863
  afterContent: i,
864
864
  extendedColumns: g = [],
865
865
  columnsMap: d
866
- } = this.props, m = g.some((D) => !!D.filter) || a !== void 0, c = a || Eo, h = rn.getIdPrefix(this.navigationStateRef);
866
+ } = this.props, m = g.some((D) => !!D.filter) || a !== void 0, c = a || yo, h = rn.getIdPrefix(this.navigationStateRef);
867
867
  this.columnResize.columns = g, this.columnResize.resizable = r, this.dragLogic.columns = g, this.dragLogic.reorderable = s, this.dragLogic.groupable = !1;
868
868
  const C = g.filter((D) => D.children.length === 0), f = /* @__PURE__ */ t.createElement(
869
- mo,
869
+ go,
870
870
  {
871
871
  headerRow: /* @__PURE__ */ t.createElement(
872
- go,
872
+ ho,
873
873
  {
874
874
  sort: this.props.sort,
875
875
  sortable: this.props.sortable,
@@ -899,7 +899,7 @@ class $t extends t.Component {
899
899
  ) || void 0,
900
900
  columnResize: this.columnResize
901
901
  }
902
- ), k = this.props.style || {}, { colSpans: y, hiddenColumns: M } = ho({
902
+ ), k = this.props.style || {}, { colSpans: y, hiddenColumns: M } = fo({
903
903
  enabled: this.props.columnVirtualization,
904
904
  columns: C,
905
905
  scrollLeft: this.wrapperScrollLeft,
@@ -922,7 +922,7 @@ class $t extends t.Component {
922
922
  level: D.level,
923
923
  expandable: I.expandable,
924
924
  expanded: U,
925
- hasChildren: zn(D.dataItem, this.props.subItemsField),
925
+ hasChildren: Pn(D.dataItem, this.props.subItemsField),
926
926
  colIndex: N,
927
927
  ariaColumnIndex: I.ariaColumnIndex,
928
928
  onExpandChange: this.onExpandChange,
@@ -933,11 +933,11 @@ class $t extends t.Component {
933
933
  } || {},
934
934
  isSelected: Array.isArray(J) && J.indexOf(N) > -1
935
935
  };
936
- return P && I.editCell ? /* @__PURE__ */ t.createElement(I.editCell, { ...B, onChange: this.onItemChange, key: j }) : I.cell ? /* @__PURE__ */ t.createElement(I.cell, { key: j, ...B }) : /* @__PURE__ */ t.createElement(No, { key: j, ...B });
936
+ return P && I.editCell ? /* @__PURE__ */ t.createElement(I.editCell, { ...B, onChange: this.onItemChange, key: j }) : I.cell ? /* @__PURE__ */ t.createElement(I.cell, { key: j, ...B }) : /* @__PURE__ */ t.createElement(Fo, { key: j, ...B });
937
937
  });
938
938
  let x = this.flatData;
939
939
  const G = x.length;
940
- o !== void 0 && l !== void 0 && (x = x.slice(o, o + l)), n === "virtual" && (x = xo({
940
+ o !== void 0 && l !== void 0 && (x = x.slice(o, o + l)), n === "virtual" && (x = Mo({
941
941
  rows: x,
942
942
  tableViewPortHeight: parseFloat((k.height || k.maxHeight || "").toString()),
943
943
  scrollTop: this.wrapperScrollTop
@@ -963,9 +963,9 @@ class $t extends t.Component {
963
963
  ariaSetSize: D.levelCount,
964
964
  ariaPosInSet: D.level[D.level.length - 1] + 1,
965
965
  isSelected: typeof I == "boolean" && I
966
- }, j = this.props.editRow, Q = this.props.row || En, B = A(D, Y, S, J, P, I);
966
+ }, j = this.props.editRow, Q = this.props.row || yn, B = A(D, Y, S, J, P, I);
967
967
  return Y && j ? /* @__PURE__ */ t.createElement(j, { ...N, key: N.key }, B) : /* @__PURE__ */ t.createElement(Q, { ...N, key: N.key }, B);
968
- }) || /* @__PURE__ */ t.createElement("tr", { className: "k-table-row k-grid-norecords" }, /* @__PURE__ */ t.createElement("td", { className: "k-table-td", colSpan: C.length }, this.props.noRecords || /* @__PURE__ */ t.createElement(Mo, null))), w = (D) => this.props.sort && this.props.sort.some((P) => P.field === D), $ = /* @__PURE__ */ t.createElement("colgroup", { ref: (D) => {
968
+ }) || /* @__PURE__ */ t.createElement("tr", { className: "k-table-row k-grid-norecords" }, /* @__PURE__ */ t.createElement("td", { className: "k-table-td", colSpan: C.length }, this.props.noRecords || /* @__PURE__ */ t.createElement(No, null))), w = (D) => this.props.sort && this.props.sort.some((P) => P.field === D), $ = /* @__PURE__ */ t.createElement("colgroup", { ref: (D) => {
969
969
  this.columnResize.colGroupMain = D;
970
970
  } }, C.map(
971
971
  (D, P) => /* @__PURE__ */ t.createElement(
@@ -977,7 +977,7 @@ class $t extends t.Component {
977
977
  }
978
978
  )
979
979
  )), O = this.props.columnVirtualization || this.props.scrollable === "virtual", _ = this.props.selectable && this.props.selectable.drag ? "none" : void 0, X = this.props.tableProps || {};
980
- return /* @__PURE__ */ t.createElement(Dn.Provider, { value: this.contextStateRef.current }, /* @__PURE__ */ t.createElement(
980
+ return /* @__PURE__ */ t.createElement(En.Provider, { value: this.contextStateRef.current }, /* @__PURE__ */ t.createElement(
981
981
  "div",
982
982
  {
983
983
  id: this.props.treelistId,
@@ -994,11 +994,11 @@ class $t extends t.Component {
994
994
  "aria-rowcount": G,
995
995
  "aria-colcount": C.length,
996
996
  role: "treegrid",
997
- ...fo
997
+ ...po
998
998
  },
999
999
  this.props.toolbar,
1000
1000
  /* @__PURE__ */ t.createElement(
1001
- po,
1001
+ Co,
1002
1002
  {
1003
1003
  selectable: this.props.selectable,
1004
1004
  onRelease: this.selectionRelease,
@@ -1016,7 +1016,7 @@ class $t extends t.Component {
1016
1016
  },
1017
1017
  $,
1018
1018
  f,
1019
- /* @__PURE__ */ t.createElement("tbody", { className: "k-table-tbody", ...Co, ref: (D) => this.tbodyElement = D, role: "presentation" }, v)
1019
+ /* @__PURE__ */ t.createElement("tbody", { className: "k-table-tbody", ...ko, ref: (D) => this.tbodyElement = D, role: "presentation" }, v)
1020
1020
  )
1021
1021
  ),
1022
1022
  this.props.pager && /* @__PURE__ */ t.createElement(
@@ -1029,7 +1029,7 @@ class $t extends t.Component {
1029
1029
  onPageChange: this.onPageChange
1030
1030
  }
1031
1031
  ),
1032
- s && /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(ko, { ref: this.dragLogic.refDropElementClue }), /* @__PURE__ */ t.createElement(Do, { ref: this.dragLogic.refDragElementClue })),
1032
+ s && /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(Do, { ref: this.dragLogic.refDropElementClue }), /* @__PURE__ */ t.createElement(Eo, { ref: this.dragLogic.refDragElementClue })),
1033
1033
  i
1034
1034
  ));
1035
1035
  }
@@ -1115,7 +1115,7 @@ $t.propTypes = {
1115
1115
  idPrefix: u.string,
1116
1116
  treelistId: u.string
1117
1117
  };
1118
- $t.contextType = Dn;
1118
+ $t.contextType = En;
1119
1119
  const Ge = t.forwardRef((e, a) => {
1120
1120
  const { slotLevels: n, slotWidth: r, timelineHeaderCell: s } = e, {
1121
1121
  columns: o,
@@ -1145,16 +1145,16 @@ const Ge = t.forwardRef((e, a) => {
1145
1145
  onKeyDown: X,
1146
1146
  onSelectionChange: D,
1147
1147
  onHeaderSelectionChange: P
1148
- } = vr(), Y = Wn(), U = yr(), S = Ft(), J = Pn(), I = kr(), N = Dr(), j = t.useRef(null), Q = t.useRef(null), B = t.useRef(null), q = t.useRef(null), ke = t.useRef(0), De = t.useRef(an()), z = t.useRef(an()), ae = t.useRef(null), Se = t.useRef(null), xe = t.useCallback(
1148
+ } = wr(), Y = On(), U = vr(), S = Ft(), J = Gn(), I = Dr(), N = Er(), j = t.useRef(null), Q = t.useRef(null), B = t.useRef(null), q = t.useRef(null), ke = t.useRef(0), De = t.useRef(an()), z = t.useRef(an()), ae = t.useRef(null), Se = t.useRef(null), xe = t.useCallback(
1149
1149
  (R) => {
1150
1150
  B.current && B.current.scrollIntoView(R);
1151
1151
  },
1152
1152
  []
1153
1153
  );
1154
1154
  t.useImperativeHandle(Se, () => ({ scrollIntoView: xe })), t.useImperativeHandle(a, () => Se.current);
1155
- const we = t.useRef(0), p = t.useRef(0), H = t.useRef(0), K = t.useRef(0), de = t.useRef(null), Ee = t.useRef(null), [le, Me] = t.useState(null), ot = hr(n, j, s), rt = fr(n, Q), be = pr(n, r), { extendedColumns: st, columnsWidth: lt, columnsMap: it } = t.useMemo(
1155
+ const we = t.useRef(0), p = t.useRef(0), H = t.useRef(0), K = t.useRef(0), de = t.useRef(null), Ee = t.useRef(null), [le, Me] = t.useState(null), ot = fr(n, j, s), rt = pr(n, Q), be = Cr(n, r), { extendedColumns: st, columnsWidth: lt, columnsMap: it } = t.useMemo(
1156
1156
  () => {
1157
- const R = yo(
1157
+ const R = vo(
1158
1158
  [
1159
1159
  ...o,
1160
1160
  {
@@ -1164,7 +1164,7 @@ const Ge = t.forwardRef((e, a) => {
1164
1164
  reorderable: !1,
1165
1165
  width: be,
1166
1166
  headerCell: () => ot,
1167
- cell: Kn,
1167
+ cell: $n,
1168
1168
  orderIndex: Number.MAX_SAFE_INTEGER,
1169
1169
  navigatable: !1
1170
1170
  }
@@ -1178,11 +1178,11 @@ const Ge = t.forwardRef((e, a) => {
1178
1178
  }), {
1179
1179
  extendedColumns: R,
1180
1180
  columnsWidth: Z,
1181
- columnsMap: vo(R)
1181
+ columnsMap: wo(R)
1182
1182
  };
1183
1183
  },
1184
1184
  [o, be]
1185
- ), [ct, dt] = br(), E = t.useCallback(
1185
+ ), [ct, dt] = Ir(), E = t.useCallback(
1186
1186
  () => j.current && j.current.parentElement,
1187
1187
  []
1188
1188
  ), he = () => {
@@ -1234,8 +1234,8 @@ const Ge = t.forwardRef((e, a) => {
1234
1234
  return;
1235
1235
  const ve = V.getAttribute(Ke);
1236
1236
  if (ve) {
1237
- const Ka = ee.offsetTop, $a = ee.offsetLeft, Ua = oe.offsetTop, qa = oe.offsetLeft, Ya = te.scrollTop, Xa = te.scrollLeft;
1238
- H.current = $a + qa, K.current = Ka + Ua, we.current = R.clientX - H.current + Xa, p.current = R.clientY - K.current + Ya, de.current = V.parentElement.getAttribute($e), Ee.current = ve;
1237
+ const $a = ee.offsetTop, Ua = ee.offsetLeft, qa = oe.offsetTop, Ya = oe.offsetLeft, Xa = te.scrollTop, ja = te.scrollLeft;
1238
+ H.current = Ua + Ya, K.current = $a + qa, we.current = R.clientX - H.current + ja, p.current = R.clientY - K.current + Xa, de.current = V.parentElement.getAttribute($e), Ee.current = ve;
1239
1239
  }
1240
1240
  },
1241
1241
  []
@@ -1256,7 +1256,7 @@ const Ge = t.forwardRef((e, a) => {
1256
1256
  });
1257
1257
  },
1258
1258
  []
1259
- ), Ba = t.useCallback(
1259
+ ), Ka = t.useCallback(
1260
1260
  (R) => {
1261
1261
  const V = (ae.current && ae.current.ownerDocument ? ae.current.ownerDocument : document).elementFromPoint(R.clientX, R.clientY);
1262
1262
  if (!V || !V.parentElement)
@@ -1275,7 +1275,7 @@ const Ge = t.forwardRef((e, a) => {
1275
1275
  [_, Me]
1276
1276
  );
1277
1277
  return /* @__PURE__ */ t.createElement(
1278
- Bn,
1278
+ Kn,
1279
1279
  {
1280
1280
  tasksStore: [ct, dt],
1281
1281
  timelineWidth: be,
@@ -1284,7 +1284,7 @@ const Ge = t.forwardRef((e, a) => {
1284
1284
  draggedId: de.current,
1285
1285
  onDependencyHandlePress: ut,
1286
1286
  onDependencyHandleDrag: Ie,
1287
- onDependencyHandleRelease: Ba
1287
+ onDependencyHandleRelease: Ka
1288
1288
  }
1289
1289
  },
1290
1290
  /* @__PURE__ */ t.createElement("div", { className: "k-gantt-content", ref: ae, style: { height: `calc(100% - ${U}px)` } }, /* @__PURE__ */ t.createElement(
@@ -1327,13 +1327,13 @@ const Ge = t.forwardRef((e, a) => {
1327
1327
  columnMenu: C,
1328
1328
  row: k,
1329
1329
  selectable: y,
1330
- afterContent: /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("svg", { className: "k-gantt-dependencies-svg", ref: q, style: { left: 0, top: 0 } }, N.map((R) => /* @__PURE__ */ t.createElement($n, { key: T(J.id)(R), dependency: R }))), /* @__PURE__ */ t.createElement("svg", { className: "k-gantt-dependencies-svg", style: { left: 0, top: 0, zIndex: 3 } }, le && /* @__PURE__ */ t.createElement("polyline", { points: `${le.startX},${le.startY} ${le.endX},${le.endY}` })), I && I.length ? rt : null)
1330
+ afterContent: /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("svg", { className: "k-gantt-dependencies-svg", ref: q, style: { left: 0, top: 0 } }, N.map((R) => /* @__PURE__ */ t.createElement(Un, { key: T(J.id)(R), dependency: R }))), /* @__PURE__ */ t.createElement("svg", { className: "k-gantt-dependencies-svg", style: { left: 0, top: 0, zIndex: 3 } }, le && /* @__PURE__ */ t.createElement("polyline", { points: `${le.startX},${le.startY} ${le.endX},${le.endY}` })), I && I.length ? rt : null)
1331
1331
  }
1332
1332
  ))
1333
1333
  );
1334
1334
  });
1335
1335
  Ge.displayName = "KendoReactGanttBaseView";
1336
- const Dt = "gantt.weekViewTitle", Et = "gantt.dayViewTitle", yt = "gantt.monthViewTitle", vt = "gantt.yearViewTitle", wt = "gantt.filterClearButton", Je = "gantt.filterEqOperator", Qe = "gantt.filterNotEqOperator", et = "gantt.filterIsNullOperator", tt = "gantt.filterIsNotNullOperator", Un = "gantt.filterIsEmptyOperator", qn = "gantt.filterIsNotEmptyOperator", Yn = "gantt.filterStartsWithOperator", Xn = "gantt.filterContainsOperator", jn = "gantt.filterNotContainsOperator", Zn = "gantt.filterEndsWithOperator", Jn = "gantt.filterGteOperator", Qn = "gantt.filterGtOperator", ea = "gantt.filterLteOperator", ta = "gantt.filterLtOperator", na = "gantt.filterIsTrue", aa = "gantt.filterIsFalse", oa = "gantt.filterBooleanAll", ra = "gantt.filterAfterOrEqualOperator", sa = "gantt.filterAfterOperator", la = "gantt.filterBeforeOperator", ia = "gantt.filterBeforeOrEqualOperator", Rr = "gantt.noRecords", ca = "gantt.editSave", Ut = "gantt.editCancel", qt = "gantt.editAdd", Yt = "gantt.editRemove", da = "gantt.editTabGeneral", ua = "gantt.editTabPredecessors", ma = "gantt.editTabSuccessors", ga = "gantt.editorTitle", ha = "gantt.editorTaskTitle", fa = "gantt.editorTaskStart", pa = "gantt.editorTaskEnd", xr = "gantt.editorTaskPlannedStart", Mr = "gantt.editorTaskPlannedEnd", Nr = "gantt.editorTaskActualStart", Fr = "gantt.editorTaskActualEnd", Ca = "gantt.editorTaskComplete", ka = "gantt.editorTaskParent", Da = "gantt.editorValidationRequired", Ea = "gantt.editorValidationStart", ya = "gantt.editorValidationEnd", va = "gantt.editorValidationPercentCompleteRange", Tt = "gantt.editorDependencyTypesFF", wa = "gantt.editorDependencyTypesSF", Ta = "gantt.editorDependencyTypesFS", Sa = "gantt.editorDependencyTypesSS", ba = "gantt.addTask", Ia = "gantt.addChild", Ra = "gantt.addAbove", xa = "gantt.addBelow", Ma = "gantt.viewSelector", Xt = "gantt.editorDelete", Na = "gantt.deleteConfirmation", Fa = "gantt.deleteDialogTitle", jt = "gantt.editorDependencyNameLabel", Zt = "gantt.editorDependencyTypeLabel", se = {
1336
+ const Dt = "gantt.weekViewTitle", Et = "gantt.dayViewTitle", yt = "gantt.monthViewTitle", vt = "gantt.yearViewTitle", wt = "gantt.filterClearButton", Je = "gantt.filterEqOperator", Qe = "gantt.filterNotEqOperator", et = "gantt.filterIsNullOperator", tt = "gantt.filterIsNotNullOperator", qn = "gantt.filterIsEmptyOperator", Yn = "gantt.filterIsNotEmptyOperator", Xn = "gantt.filterStartsWithOperator", jn = "gantt.filterContainsOperator", Zn = "gantt.filterNotContainsOperator", Jn = "gantt.filterEndsWithOperator", Qn = "gantt.filterGteOperator", ea = "gantt.filterGtOperator", ta = "gantt.filterLteOperator", na = "gantt.filterLtOperator", aa = "gantt.filterIsTrue", oa = "gantt.filterIsFalse", ra = "gantt.filterBooleanAll", sa = "gantt.filterAfterOrEqualOperator", la = "gantt.filterAfterOperator", ia = "gantt.filterBeforeOperator", ca = "gantt.filterBeforeOrEqualOperator", xr = "gantt.noRecords", da = "gantt.editSave", Ut = "gantt.editCancel", qt = "gantt.editAdd", Yt = "gantt.editRemove", ua = "gantt.editTabGeneral", ma = "gantt.editTabPredecessors", ga = "gantt.editTabSuccessors", ha = "gantt.editorTitle", fa = "gantt.editorTaskTitle", pa = "gantt.editorTaskStart", Ca = "gantt.editorTaskEnd", Mr = "gantt.editorTaskPlannedStart", Nr = "gantt.editorTaskPlannedEnd", Fr = "gantt.editorTaskActualStart", Lr = "gantt.editorTaskActualEnd", ka = "gantt.editorTaskComplete", Da = "gantt.editorTaskParent", Ea = "gantt.editorValidationRequired", ya = "gantt.editorValidationStart", va = "gantt.editorValidationEnd", wa = "gantt.editorValidationPercentCompleteRange", Tt = "gantt.editorDependencyTypesFF", Ta = "gantt.editorDependencyTypesSF", Sa = "gantt.editorDependencyTypesFS", ba = "gantt.editorDependencyTypesSS", Ia = "gantt.addTask", Ra = "gantt.addChild", xa = "gantt.addAbove", Ma = "gantt.addBelow", Na = "gantt.viewSelector", Xt = "gantt.editorDelete", Fa = "gantt.deleteConfirmation", La = "gantt.deleteDialogTitle", jt = "gantt.editorDependencyNameLabel", Zt = "gantt.editorDependencyTypeLabel", se = {
1337
1337
  [Dt]: "Week",
1338
1338
  [Et]: "Day",
1339
1339
  [yt]: "Month",
@@ -1343,57 +1343,57 @@ const Dt = "gantt.weekViewTitle", Et = "gantt.dayViewTitle", yt = "gantt.monthVi
1343
1343
  [Qe]: "Is not equal to",
1344
1344
  [et]: "Is null",
1345
1345
  [tt]: "Is not null",
1346
- [Un]: "Is empty",
1347
- [qn]: "Is not empty",
1348
- [Yn]: "Starts with",
1349
- [Xn]: "Contains",
1350
- [jn]: "Does not contain",
1351
- [Zn]: "Ends with",
1352
- [Jn]: "Is greater than or equal to",
1353
- [Qn]: "Is greater than",
1354
- [ea]: "Is less than or equal to",
1355
- [ta]: "Is less than",
1356
- [na]: "Is true",
1357
- [aa]: "Is false",
1358
- [oa]: "(All)",
1359
- [ra]: "Is after or equal to",
1360
- [sa]: "Is after",
1361
- [la]: "Is before",
1362
- [ia]: "Is before or equal to",
1363
- [Rr]: "No records available",
1364
- [ca]: "Save",
1346
+ [qn]: "Is empty",
1347
+ [Yn]: "Is not empty",
1348
+ [Xn]: "Starts with",
1349
+ [jn]: "Contains",
1350
+ [Zn]: "Does not contain",
1351
+ [Jn]: "Ends with",
1352
+ [Qn]: "Is greater than or equal to",
1353
+ [ea]: "Is greater than",
1354
+ [ta]: "Is less than or equal to",
1355
+ [na]: "Is less than",
1356
+ [aa]: "Is true",
1357
+ [oa]: "Is false",
1358
+ [ra]: "(All)",
1359
+ [sa]: "Is after or equal to",
1360
+ [la]: "Is after",
1361
+ [ia]: "Is before",
1362
+ [ca]: "Is before or equal to",
1363
+ [xr]: "No records available",
1364
+ [da]: "Save",
1365
1365
  [Ut]: "Cancel",
1366
1366
  [qt]: "Add",
1367
1367
  [Yt]: "Remove",
1368
- [da]: "General",
1369
- [ua]: "Predecessors",
1370
- [ma]: "Successors",
1371
- [ga]: "Edit task",
1372
- [ha]: "Title",
1373
- [fa]: "Start",
1374
- [pa]: "End",
1375
- [xr]: "Planned Start Date",
1376
- [Mr]: "Planned End Date",
1377
- [Nr]: "Actual Start Date",
1378
- [Fr]: "Actual End Date",
1379
- [Ca]: "Complete",
1380
- [ka]: "Parent",
1381
- [Da]: "Field is required.",
1382
- [Ea]: "Start time must be be before End time.",
1383
- [ya]: "End time must be after Start time.",
1384
- [va]: "Value should be between 0 and 100.",
1368
+ [ua]: "General",
1369
+ [ma]: "Predecessors",
1370
+ [ga]: "Successors",
1371
+ [ha]: "Edit task",
1372
+ [fa]: "Title",
1373
+ [pa]: "Start",
1374
+ [Ca]: "End",
1375
+ [Mr]: "Planned Start Date",
1376
+ [Nr]: "Planned End Date",
1377
+ [Fr]: "Actual Start Date",
1378
+ [Lr]: "Actual End Date",
1379
+ [ka]: "Complete",
1380
+ [Da]: "Parent",
1381
+ [Ea]: "Field is required.",
1382
+ [ya]: "Start time must be be before End time.",
1383
+ [va]: "End time must be after Start time.",
1384
+ [wa]: "Value should be between 0 and 100.",
1385
1385
  [Tt]: "Finish-Finish",
1386
- [Ta]: "Finish-Start",
1387
- [wa]: "Start-Finish",
1388
- [Sa]: "Start-Start",
1389
- [ba]: "Add Task",
1390
- [Ia]: "Add Child",
1391
- [Ra]: "Add Above",
1392
- [xa]: "Add Below",
1393
- [Ma]: "View Selector",
1386
+ [Sa]: "Finish-Start",
1387
+ [Ta]: "Start-Finish",
1388
+ [ba]: "Start-Start",
1389
+ [Ia]: "Add Task",
1390
+ [Ra]: "Add Child",
1391
+ [xa]: "Add Above",
1392
+ [Ma]: "Add Below",
1393
+ [Na]: "View Selector",
1394
1394
  [Xt]: "Delete",
1395
- [Na]: "Are you sure you want to delete this event?",
1396
- [Fa]: "Delete Event",
1395
+ [Fa]: "Are you sure you want to delete this event?",
1396
+ [La]: "Delete Event",
1397
1397
  [jt]: "Name",
1398
1398
  [Zt]: "Type"
1399
1399
  }, nt = t.forwardRef((e, a) => {
@@ -1406,12 +1406,12 @@ const Dt = "gantt.weekViewTitle", Et = "gantt.dayViewTitle", yt = "gantt.monthVi
1406
1406
  t.useImperativeHandle(i, () => ({ scrollIntoView: d })), t.useImperativeHandle(a, () => i.current);
1407
1407
  const m = Pe(), c = e.workWeekStart || Oe.workWeekStart, h = e.workWeekEnd || Oe.workWeekEnd, C = t.useMemo(
1408
1408
  () => {
1409
- const f = Fn({
1409
+ const f = Ln({
1410
1410
  workWeekStart: c,
1411
1411
  workWeekEnd: h
1412
- }), k = [], y = Hn(m, { timezone: o }, l);
1412
+ }), k = [], y = Vn(m, { timezone: o }, l);
1413
1413
  return y.forEach((M) => {
1414
- const A = An(M.range, { workDays: f, timezone: o }, l);
1414
+ const A = Hn(M.range, { workDays: f, timezone: o }, l);
1415
1415
  k.push.apply(k, A);
1416
1416
  }), r && k[0] && (r.current = k[0].range), [y, k];
1417
1417
  },
@@ -1426,8 +1426,8 @@ const Dt = "gantt.weekViewTitle", Et = "gantt.dayViewTitle", yt = "gantt.monthVi
1426
1426
  timelineHeaderCell: s
1427
1427
  }
1428
1428
  );
1429
- }), Lr = ({ intl: e, tasksStart: a, tasksEnd: n, timezone: r }) => {
1430
- const s = L.fromLocalDate(a, r), o = L.fromLocalDate(n, r), l = Nn(ft(pe(s), e.firstDay())), i = Rt(ft(pe(o), e.firstDay()), Rn), g = L.fromUTCDate(Ce(l), r), d = L.fromUTCDate(Ce(i), r);
1429
+ }), Ar = ({ intl: e, tasksStart: a, tasksEnd: n, timezone: r }) => {
1430
+ const s = L.fromLocalDate(a, r), o = L.fromLocalDate(n, r), l = Fn(ft(pe(s), e.firstDay())), i = Rt(ft(pe(o), e.firstDay()), xn), g = L.fromUTCDate(Ce(l), r), d = L.fromUTCDate(Ce(i), r);
1431
1431
  return {
1432
1432
  start: new Date(g.getTime()),
1433
1433
  end: new Date(d.getTime()),
@@ -1436,7 +1436,7 @@ const Dt = "gantt.weekViewTitle", Et = "gantt.dayViewTitle", yt = "gantt.monthVi
1436
1436
  };
1437
1437
  }, Oe = {
1438
1438
  name: "week",
1439
- dateRange: Lr,
1439
+ dateRange: Ar,
1440
1440
  title: (e) => e.toLanguageString(Dt, se[Dt]),
1441
1441
  slotWidth: Ve,
1442
1442
  workWeekStart: 1,
@@ -1456,7 +1456,7 @@ nt.propTypes = {
1456
1456
  workDayEnd: u.string
1457
1457
  };
1458
1458
  nt.displayName = "KendoReactGanttWeekView";
1459
- const Ar = (e, a, n) => {
1459
+ const Hr = (e, a, n) => {
1460
1460
  const [r, s] = t.useState(a || e), o = t.useCallback(
1461
1461
  (l, i) => {
1462
1462
  s(l), n && n.call(void 0, { ...i, value: l });
@@ -1464,8 +1464,8 @@ const Ar = (e, a, n) => {
1464
1464
  [n, s]
1465
1465
  );
1466
1466
  return [a !== void 0 ? a : r, o];
1467
- }, La = (e) => {
1468
- const [a, n] = Gn(), r = ce(), s = t.useMemo(
1467
+ }, Aa = (e) => {
1468
+ const [a, n] = Wn(), r = ce(), s = t.useMemo(
1469
1469
  () => typeof e.view.title == "function" ? e.view.title.call(void 0, r) : e.view.title,
1470
1470
  [e.view.title, r]
1471
1471
  ), o = t.useCallback(
@@ -1487,33 +1487,33 @@ const Ar = (e, a, n) => {
1487
1487
  s
1488
1488
  );
1489
1489
  };
1490
- La.displayName = "KendoReactGanttViewSelectorItem";
1491
- const Aa = t.forwardRef(() => {
1492
- const e = Er(), [a, n] = Gn(), r = ce(), s = (l) => r.toLanguageString(l, se[l]), o = t.useCallback(
1490
+ Aa.displayName = "KendoReactGanttViewSelectorItem";
1491
+ const Ha = t.forwardRef(() => {
1492
+ const e = yr(), [a, n] = Wn(), r = ce(), s = (l) => r.toLanguageString(l, se[l]), o = t.useCallback(
1493
1493
  (l) => {
1494
1494
  n && (l.preventDefault(), n(l.target.value));
1495
1495
  },
1496
1496
  [n]
1497
1497
  );
1498
- return /* @__PURE__ */ t.createElement("div", { className: "k-gantt-views-wrapper" }, /* @__PURE__ */ t.createElement(Vo, { className: "k-gantt-views" }, e.map((l) => /* @__PURE__ */ t.createElement(La, { key: l.props.name, view: l.props }))), /* @__PURE__ */ t.createElement(
1498
+ return /* @__PURE__ */ t.createElement("div", { className: "k-gantt-views-wrapper" }, /* @__PURE__ */ t.createElement(zo, { className: "k-gantt-views" }, e.map((l) => /* @__PURE__ */ t.createElement(Aa, { key: l.props.name, view: l.props }))), /* @__PURE__ */ t.createElement(
1499
1499
  "select",
1500
1500
  {
1501
1501
  value: a,
1502
1502
  onChange: o,
1503
- "aria-label": s(Ma),
1503
+ "aria-label": s(Na),
1504
1504
  className: "k-picker k-picker-solid k-dropdown-list k-dropdown k-views-dropdown k-rounded-md"
1505
1505
  },
1506
1506
  e.map((l) => /* @__PURE__ */ t.createElement("option", { key: l.props.name, value: l.props.name }, typeof l.props.title == "function" ? l.props.title.call(void 0, r) : l.props.title))
1507
1507
  ));
1508
1508
  });
1509
- Aa.displayName = "KendoReactGanttViewSelectorList";
1510
- const Ha = t.forwardRef((e, a) => {
1509
+ Ha.displayName = "KendoReactGanttViewSelectorList";
1510
+ const Va = t.forwardRef((e, a) => {
1511
1511
  const {
1512
1512
  className: n,
1513
1513
  ...r
1514
1514
  } = e, s = t.useRef(null);
1515
1515
  return t.useImperativeHandle(a, () => ({ element: s.current, props: e })), /* @__PURE__ */ t.createElement(
1516
- zo,
1516
+ Po,
1517
1517
  {
1518
1518
  ref: (o) => {
1519
1519
  o && (s.current = o.element);
@@ -1524,8 +1524,8 @@ const Ha = t.forwardRef((e, a) => {
1524
1524
  e.children
1525
1525
  );
1526
1526
  });
1527
- Ha.displayName = "KendoReactGanttViewSelector";
1528
- const Va = t.forwardRef((e, a) => {
1527
+ Va.displayName = "KendoReactGanttViewSelector";
1528
+ const za = t.forwardRef((e, a) => {
1529
1529
  const {
1530
1530
  className: n,
1531
1531
  ...r
@@ -1533,7 +1533,7 @@ const Va = t.forwardRef((e, a) => {
1533
1533
  t.useImperativeHandle(o, () => ({ element: s.current, props: e })), t.useImperativeHandle(a, () => o.current);
1534
1534
  const l = t.useMemo(() => ie("k-gantt-toolbar k-gantt-header", n), [n]);
1535
1535
  return /* @__PURE__ */ t.createElement(
1536
- Po,
1536
+ Go,
1537
1537
  {
1538
1538
  ref: (i) => {
1539
1539
  i && (s.current = i.element);
@@ -1544,16 +1544,16 @@ const Va = t.forwardRef((e, a) => {
1544
1544
  e.children
1545
1545
  );
1546
1546
  });
1547
- Va.displayName = "KendoReactGanttToolbar";
1547
+ za.displayName = "KendoReactGanttToolbar";
1548
1548
  const mn = {
1549
1549
  name: "@progress/kendo-react-gantt",
1550
1550
  productName: "KendoReact",
1551
1551
  productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
1552
- publishDate: 1706027393,
1552
+ publishDate: 1706772783,
1553
1553
  version: "",
1554
1554
  licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/"
1555
- }, za = t.forwardRef((e, a) => {
1556
- const n = ce(), r = (c) => n.toLanguageString(c, se[c]), s = r(ba), o = r(Ia), l = r(Ra), i = r(xa), g = t.useCallback(
1555
+ }, Pa = t.forwardRef((e, a) => {
1556
+ const n = ce(), r = (c) => n.toLanguageString(c, se[c]), s = r(Ia), o = r(Ra), l = r(xa), i = r(Ma), g = t.useCallback(
1557
1557
  (c) => {
1558
1558
  c.syntheticEvent.preventDefault();
1559
1559
  const h = c.item && c.item.direction ? c.item.direction : "none";
@@ -1573,9 +1573,9 @@ const mn = {
1573
1573
  });
1574
1574
  },
1575
1575
  [e.onClick]
1576
- ), m = /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(fn, { name: "plus", icon: It }), s);
1576
+ ), m = /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(pn, { name: "plus", icon: It }), s);
1577
1577
  return e.selectedTask ? /* @__PURE__ */ t.createElement(
1578
- Go,
1578
+ Wo,
1579
1579
  {
1580
1580
  className: "k-views-dropdown",
1581
1581
  onItemClick: g,
@@ -1590,10 +1590,10 @@ const mn = {
1590
1590
  }
1591
1591
  ) : /* @__PURE__ */ t.createElement(me, { onClick: d }, m);
1592
1592
  });
1593
- za.displayName = "KendoReactGanttAddButton";
1593
+ Pa.displayName = "KendoReactGanttAddButton";
1594
1594
  const Jt = t.forwardRef((e, a) => {
1595
- Ja(mn);
1596
- const n = Qa(mn), {
1595
+ Qa(mn);
1596
+ const n = eo(mn), {
1597
1597
  columns: r = Le.columns,
1598
1598
  taskData: s = Le.taskData,
1599
1599
  dependencyData: o = Le.dependencyData,
@@ -1613,8 +1613,8 @@ const Jt = t.forwardRef((e, a) => {
1613
1613
  toolbar: x,
1614
1614
  row: G,
1615
1615
  selectable: b
1616
- } = e, F = Ae(), { fields: v } = t.useMemo(() => nr(e.taskModelFields), [e.taskModelFields]), { fields: w } = t.useMemo(() => ar(e.dependencyModelFields), [e.dependencyModelFields]), $ = t.useCallback(
1617
- Cr(v.isExpanded, v.children),
1616
+ } = e, F = Ae(), { fields: v } = t.useMemo(() => ar(e.taskModelFields), [e.taskModelFields]), { fields: w } = t.useMemo(() => or(e.dependencyModelFields), [e.dependencyModelFields]), $ = t.useCallback(
1617
+ kr(v.isExpanded, v.children),
1618
1618
  [v.isExpanded, v.children]
1619
1619
  ), O = t.useRef(null), _ = t.useRef(null), X = t.useRef(null), D = t.useRef(null), P = t.useRef(null), Y = t.useCallback(
1620
1620
  (E) => {
@@ -1623,7 +1623,7 @@ const Jt = t.forwardRef((e, a) => {
1623
1623
  },
1624
1624
  [v.start, v.end]
1625
1625
  ), U = t.useMemo(
1626
- () => (_.current = null, X.current = null, D.current = null, yn(s, $, Y)),
1626
+ () => (_.current = null, X.current = null, D.current = null, vn(s, $, Y)),
1627
1627
  [s, $]
1628
1628
  );
1629
1629
  (!_.current || !X.current) && (_.current = new Date(ln), X.current = new Date(ln));
@@ -1632,7 +1632,7 @@ const Jt = t.forwardRef((e, a) => {
1632
1632
  ), [
1633
1633
  J,
1634
1634
  I
1635
- ] = Ar(
1635
+ ] = Hr(
1636
1636
  e.defaultView || S[0].props.name,
1637
1637
  e.view,
1638
1638
  e.onViewChange
@@ -1642,7 +1642,7 @@ const Jt = t.forwardRef((e, a) => {
1642
1642
  tasksEnd: X.current,
1643
1643
  timezone: d
1644
1644
  }) : N.props.dateRange, Q = t.useRef(null), [B, q] = t.useState(0);
1645
- t.useLayoutEffect(
1645
+ fn(
1646
1646
  () => {
1647
1647
  Q.current && q(Q.current.element.offsetHeight);
1648
1648
  },
@@ -1832,7 +1832,7 @@ const Jt = t.forwardRef((e, a) => {
1832
1832
  [e.onDependencyCreate, v, U]
1833
1833
  );
1834
1834
  return /* @__PURE__ */ t.createElement(
1835
- On,
1835
+ _n,
1836
1836
  {
1837
1837
  dateRange: j,
1838
1838
  taskData: U,
@@ -1889,7 +1889,7 @@ const Jt = t.forwardRef((e, a) => {
1889
1889
  style: l,
1890
1890
  className: ie("k-gantt", i)
1891
1891
  },
1892
- /* @__PURE__ */ t.createElement(Va, { ref: Q }, x && x.addTaskButton ? /* @__PURE__ */ t.createElement(za, { selectedTask: D.current, onClick: Ee }) : null, /* @__PURE__ */ t.createElement(Wo, null), /* @__PURE__ */ t.createElement(Ha, null, /* @__PURE__ */ t.createElement(Aa, null))),
1892
+ /* @__PURE__ */ t.createElement(za, { ref: Q }, x && x.addTaskButton ? /* @__PURE__ */ t.createElement(Pa, { selectedTask: D.current, onClick: Ee }) : null, /* @__PURE__ */ t.createElement(Oo, null), /* @__PURE__ */ t.createElement(Va, null, /* @__PURE__ */ t.createElement(Ha, null))),
1893
1893
  N && /* @__PURE__ */ t.createElement(
1894
1894
  N.type,
1895
1895
  {
@@ -1899,7 +1899,7 @@ const Jt = t.forwardRef((e, a) => {
1899
1899
  firstSlotRangeRef: P
1900
1900
  }
1901
1901
  ),
1902
- n && /* @__PURE__ */ t.createElement(eo, null)
1902
+ n && /* @__PURE__ */ t.createElement(to, null)
1903
1903
  )
1904
1904
  );
1905
1905
  }), Le = {
@@ -1985,12 +1985,12 @@ const Qt = t.forwardRef((e, a) => {
1985
1985
  t.useImperativeHandle(g, () => ({ scrollIntoView: m })), t.useImperativeHandle(a, () => g.current);
1986
1986
  const c = Pe(), h = e.workWeekStart || Te.workWeekStart, C = e.workWeekEnd || Te.workWeekEnd, f = e.workDayStart || Te.workDayStart, k = e.workDayEnd || Te.workDayEnd, y = t.useMemo(
1987
1987
  () => {
1988
- const M = Fn({
1988
+ const M = Ln({
1989
1989
  workWeekStart: h,
1990
1990
  workWeekEnd: C
1991
- }), A = [], x = An(c, { workDays: M, timezone: l }, i);
1991
+ }), A = [], x = Hn(c, { workDays: M, timezone: l }, i);
1992
1992
  return x.forEach((G) => {
1993
- const b = mr(
1993
+ const b = gr(
1994
1994
  G.range,
1995
1995
  {
1996
1996
  workDayStart: f,
@@ -2014,8 +2014,8 @@ const Qt = t.forwardRef((e, a) => {
2014
2014
  timelineHeaderCell: o
2015
2015
  }
2016
2016
  );
2017
- }), Hr = ({ tasksStart: e, tasksEnd: a, timezone: n }) => {
2018
- const r = L.fromLocalDate(e, n), s = L.fromLocalDate(a, n), o = Nn(r), l = Rt(s), i = L.fromUTCDate(Ce(o), n), g = L.fromUTCDate(Ce(l), n);
2017
+ }), Vr = ({ tasksStart: e, tasksEnd: a, timezone: n }) => {
2018
+ const r = L.fromLocalDate(e, n), s = L.fromLocalDate(a, n), o = Fn(r), l = Rt(s), i = L.fromUTCDate(Ce(o), n), g = L.fromUTCDate(Ce(l), n);
2019
2019
  return {
2020
2020
  // Sat May 31 2014 07:00:00 GMT+0300 (Eastern European Summer Time)
2021
2021
  start: new Date(i.getTime()),
@@ -2026,7 +2026,7 @@ const Qt = t.forwardRef((e, a) => {
2026
2026
  };
2027
2027
  }, Te = {
2028
2028
  name: "day",
2029
- dateRange: Hr,
2029
+ dateRange: Vr,
2030
2030
  title: (e) => e.toLanguageString(Et, se[Et]),
2031
2031
  slotWidth: Ve,
2032
2032
  slotDuration: 60,
@@ -2049,7 +2049,7 @@ Qt.propTypes = {
2049
2049
  };
2050
2050
  Qt.displayName = "KendoReactGanttDayView";
2051
2051
  const en = t.forwardRef((e, a) => {
2052
- const { slotWidth: n = Pa.slotWidth, firstSlotRangeRef: r, timelineHeaderCell: s } = e, { timezone: o } = ze(), l = Ae(), i = t.useRef(null), g = t.useRef(null), d = t.useCallback(
2052
+ const { slotWidth: n = Ga.slotWidth, firstSlotRangeRef: r, timelineHeaderCell: s } = e, { timezone: o } = ze(), l = Ae(), i = t.useRef(null), g = t.useRef(null), d = t.useCallback(
2053
2053
  (h) => {
2054
2054
  g.current && g.current.scrollIntoView(h);
2055
2055
  },
@@ -2058,9 +2058,9 @@ const en = t.forwardRef((e, a) => {
2058
2058
  t.useImperativeHandle(i, () => ({ scrollIntoView: d })), t.useImperativeHandle(a, () => i.current);
2059
2059
  const m = Pe(), c = t.useMemo(
2060
2060
  () => {
2061
- const h = [], C = Vn(m, { timezone: o }, l);
2061
+ const h = [], C = zn(m, { timezone: o }, l);
2062
2062
  return C.forEach((f) => {
2063
- const k = Hn(
2063
+ const k = Vn(
2064
2064
  f.range,
2065
2065
  { timezone: o },
2066
2066
  l
@@ -2079,17 +2079,17 @@ const en = t.forwardRef((e, a) => {
2079
2079
  timelineHeaderCell: s
2080
2080
  }
2081
2081
  );
2082
- }), Vr = ({ tasksStart: e, tasksEnd: a, timezone: n }) => {
2083
- const r = L.fromLocalDate(e, n), s = L.fromLocalDate(a, n), o = Cn(pe(r)), l = bt(kn(pe(s)), 1), i = L.fromUTCDate(Ce(o), n), g = L.fromUTCDate(Ce(l), n);
2082
+ }), zr = ({ tasksStart: e, tasksEnd: a, timezone: n }) => {
2083
+ const r = L.fromLocalDate(e, n), s = L.fromLocalDate(a, n), o = kn(pe(r)), l = bt(Dn(pe(s)), 1), i = L.fromUTCDate(Ce(o), n), g = L.fromUTCDate(Ce(l), n);
2084
2084
  return {
2085
2085
  start: new Date(i.getTime()),
2086
2086
  end: new Date(g.getTime()),
2087
2087
  zonedStart: i,
2088
2088
  zonedEnd: g
2089
2089
  };
2090
- }, Pa = {
2090
+ }, Ga = {
2091
2091
  name: "month",
2092
- dateRange: Vr,
2092
+ dateRange: zr,
2093
2093
  title: (e) => e.toLanguageString(yt, se[yt]),
2094
2094
  slotWidth: Ve,
2095
2095
  workWeekStart: 1,
@@ -2097,7 +2097,7 @@ const en = t.forwardRef((e, a) => {
2097
2097
  workDayStart: "08:00",
2098
2098
  workDayEnd: "17:00"
2099
2099
  };
2100
- en.defaultProps = Pa;
2100
+ en.defaultProps = Ga;
2101
2101
  en.propTypes = {
2102
2102
  name: u.string,
2103
2103
  dateRange: u.oneOfType([u.func, u.object]),
@@ -2110,7 +2110,7 @@ en.propTypes = {
2110
2110
  };
2111
2111
  en.displayName = "GanttMonthView";
2112
2112
  const tn = t.forwardRef((e, a) => {
2113
- const { slotWidth: n = Ga.slotWidth, firstSlotRangeRef: r, timelineHeaderCell: s } = e, { timezone: o } = ze(), l = Ae(), i = t.useRef(null), g = t.useRef(null), d = t.useCallback(
2113
+ const { slotWidth: n = Wa.slotWidth, firstSlotRangeRef: r, timelineHeaderCell: s } = e, { timezone: o } = ze(), l = Ae(), i = t.useRef(null), g = t.useRef(null), d = t.useCallback(
2114
2114
  (h) => {
2115
2115
  g.current && g.current.scrollIntoView(h);
2116
2116
  },
@@ -2119,9 +2119,9 @@ const tn = t.forwardRef((e, a) => {
2119
2119
  t.useImperativeHandle(i, () => ({ scrollIntoView: d })), t.useImperativeHandle(a, () => i.current);
2120
2120
  const m = Pe(), c = t.useMemo(
2121
2121
  () => {
2122
- const h = gr(m, { timezone: o }, l), C = [];
2122
+ const h = hr(m, { timezone: o }, l), C = [];
2123
2123
  return h.forEach((f) => {
2124
- const k = Vn(
2124
+ const k = zn(
2125
2125
  f.range,
2126
2126
  { timezone: o },
2127
2127
  l
@@ -2139,21 +2139,21 @@ const tn = t.forwardRef((e, a) => {
2139
2139
  timelineHeaderCell: s
2140
2140
  }
2141
2141
  );
2142
- }), zr = ({ tasksStart: e, tasksEnd: a, timezone: n }) => {
2143
- const r = L.fromLocalDate(e, n), s = L.fromLocalDate(a, n), o = Cn(no(pe(r))), l = bt(kn(ao(pe(s))), 1), i = L.fromUTCDate(Ce(o), n), g = L.fromUTCDate(Ce(l), n);
2142
+ }), Pr = ({ tasksStart: e, tasksEnd: a, timezone: n }) => {
2143
+ const r = L.fromLocalDate(e, n), s = L.fromLocalDate(a, n), o = kn(ao(pe(r))), l = bt(Dn(oo(pe(s))), 1), i = L.fromUTCDate(Ce(o), n), g = L.fromUTCDate(Ce(l), n);
2144
2144
  return {
2145
2145
  start: new Date(i.getTime()),
2146
2146
  end: new Date(g.getTime()),
2147
2147
  zonedStart: i,
2148
2148
  zonedEnd: g
2149
2149
  };
2150
- }, Ga = {
2150
+ }, Wa = {
2151
2151
  name: "year",
2152
- dateRange: zr,
2152
+ dateRange: Pr,
2153
2153
  title: (e) => e.toLanguageString(vt, se[vt]),
2154
2154
  slotWidth: Ve
2155
2155
  };
2156
- tn.defaultProps = Ga;
2156
+ tn.defaultProps = Wa;
2157
2157
  tn.propTypes = {
2158
2158
  name: u.string,
2159
2159
  dateRange: u.oneOfType([u.func, u.object]),
@@ -2161,39 +2161,39 @@ tn.propTypes = {
2161
2161
  slotWidth: u.number
2162
2162
  };
2163
2163
  tn.displayName = "GanttYearView";
2164
- const Pr = [
2165
- { text: Xn, operator: "contains" },
2166
- { text: jn, operator: "doesnotcontain" },
2164
+ const Gr = [
2165
+ { text: jn, operator: "contains" },
2166
+ { text: Zn, operator: "doesnotcontain" },
2167
2167
  { text: Je, operator: "eq" },
2168
2168
  { text: Qe, operator: "neq" },
2169
- { text: Yn, operator: "startswith" },
2170
- { text: Zn, operator: "endswith" },
2169
+ { text: Xn, operator: "startswith" },
2170
+ { text: Jn, operator: "endswith" },
2171
2171
  { text: et, operator: "isnull" },
2172
2172
  { text: tt, operator: "isnotnull" },
2173
- { text: Un, operator: "isempty" },
2174
- { text: qn, operator: "isnotempty" }
2175
- ], Gr = [
2173
+ { text: qn, operator: "isempty" },
2174
+ { text: Yn, operator: "isnotempty" }
2175
+ ], Wr = [
2176
2176
  { text: Je, operator: "eq" },
2177
2177
  { text: Qe, operator: "neq" },
2178
- { text: Jn, operator: "gte" },
2179
- { text: Qn, operator: "gt" },
2180
- { text: ea, operator: "lte" },
2181
- { text: ta, operator: "lt" },
2178
+ { text: Qn, operator: "gte" },
2179
+ { text: ea, operator: "gt" },
2180
+ { text: ta, operator: "lte" },
2181
+ { text: na, operator: "lt" },
2182
2182
  { text: et, operator: "isnull" },
2183
2183
  { text: tt, operator: "isnotnull" }
2184
- ], Wr = [
2184
+ ], Or = [
2185
2185
  { text: Je, operator: "eq" },
2186
2186
  { text: Qe, operator: "neq" },
2187
- { text: ra, operator: "gte" },
2188
- { text: sa, operator: "gt" },
2189
- { text: la, operator: "lt" },
2190
- { text: ia, operator: "lte" },
2187
+ { text: sa, operator: "gte" },
2188
+ { text: la, operator: "gt" },
2189
+ { text: ia, operator: "lt" },
2190
+ { text: ca, operator: "lte" },
2191
2191
  { text: et, operator: "isnull" },
2192
2192
  { text: tt, operator: "isnotnull" }
2193
- ], Or = [
2194
- { text: oa, operator: "" },
2195
- { text: na, operator: !0 },
2196
- { text: aa, operator: !1 }
2193
+ ], _r = [
2194
+ { text: ra, operator: "" },
2195
+ { text: aa, operator: !0 },
2196
+ { text: oa, operator: !1 }
2197
2197
  ];
2198
2198
  function at(e, a) {
2199
2199
  return {
@@ -2204,58 +2204,58 @@ function at(e, a) {
2204
2204
  }))
2205
2205
  };
2206
2206
  }
2207
- const _r = (e) => {
2207
+ const Br = (e) => {
2208
2208
  const { operators: a, ...n } = e;
2209
2209
  return /* @__PURE__ */ t.createElement(
2210
- wo,
2210
+ To,
2211
2211
  {
2212
2212
  ariaLabel: "text filter",
2213
- ...at(ce(), a || Pr),
2213
+ ...at(ce(), a || Gr),
2214
2214
  ...n
2215
2215
  }
2216
2216
  );
2217
2217
  };
2218
- _r.displayName = "KendoReactGanttTextFilter";
2219
- const Br = (e) => {
2218
+ Br.displayName = "KendoReactGanttTextFilter";
2219
+ const Kr = (e) => {
2220
2220
  const { operators: a, ...n } = e;
2221
2221
  return /* @__PURE__ */ t.createElement(
2222
- To,
2222
+ So,
2223
2223
  {
2224
2224
  ariaLabel: "numeric filter",
2225
- ...at(ce(), a || Gr),
2225
+ ...at(ce(), a || Wr),
2226
2226
  ...n
2227
2227
  }
2228
2228
  );
2229
2229
  };
2230
- Br.displayName = "KendoReactGanttNumericFilter";
2231
- const Kr = (e) => {
2230
+ Kr.displayName = "KendoReactGanttNumericFilter";
2231
+ const $r = (e) => {
2232
2232
  const { operators: a, ...n } = e;
2233
2233
  return /* @__PURE__ */ t.createElement(
2234
- So,
2234
+ bo,
2235
2235
  {
2236
2236
  ariaLabel: "boolean filter",
2237
- ...at(ce(), a || Or),
2237
+ ...at(ce(), a || _r),
2238
2238
  ...n
2239
2239
  }
2240
2240
  );
2241
2241
  };
2242
- Kr.displayName = "KendoReactGanttBooleanFilter";
2243
- const $r = (e) => {
2242
+ $r.displayName = "KendoReactGanttBooleanFilter";
2243
+ const Ur = (e) => {
2244
2244
  const { operators: a, ...n } = e;
2245
2245
  return /* @__PURE__ */ t.createElement(
2246
- bo,
2246
+ Io,
2247
2247
  {
2248
2248
  ariaLabel: "date filter",
2249
- ...at(ce(), a || Wr),
2249
+ ...at(ce(), a || Or),
2250
2250
  ...n
2251
2251
  }
2252
2252
  );
2253
2253
  };
2254
- $r.displayName = "KendoReactGanttDateFilter";
2255
- const Rs = (e) => {
2254
+ Ur.displayName = "KendoReactGanttDateFilter";
2255
+ const xs = (e) => {
2256
2256
  const { dependencyData: a, dependencyModelFields: n, defaultDataItem: r, fromId: s, toId: o, type: l } = e, i = a.map((h) => ({ ...h })), g = ne(n.fromId), d = ne(n.toId), m = ne(n.type), c = r ? { ...r } : {};
2257
2257
  return g(c, s), d(c, o), m(c, l), i.push(c), i;
2258
- }, xs = (e) => {
2258
+ }, Ms = (e) => {
2259
2259
  const { defaultDataItem: a, selectedDataItem: n, direction: r, taskModelFields: s, dataTree: o, slotStart: l, slotEnd: i } = e, g = Ze(o, s.children, (y) => ({ ...y })), d = ne(s.start), m = ne(s.end), c = T(s.start), h = T(s.end), C = ne(s.parentId || ""), f = a ? { ...a } : {}, k = c(f) && h(f);
2260
2260
  if (!n || r === "none")
2261
2261
  k || (d(f, l), m(f, i)), s.parentId && C(f, null), g.unshift(f);
@@ -2293,7 +2293,7 @@ const Rs = (e) => {
2293
2293
  }
2294
2294
  }
2295
2295
  return g;
2296
- }, Ms = (e) => {
2296
+ }, Ns = (e) => {
2297
2297
  const { updatedDataItem: a, taskModelFields: n, dataTree: r } = e, s = T(n.id), o = T(n.children), l = s(a);
2298
2298
  let i;
2299
2299
  const g = Ze(r, n.children, (m) => s(m) === l ? (i = m, { ...a }) : { ...m });
@@ -2314,17 +2314,17 @@ const Rs = (e) => {
2314
2314
  d = d.splice(1, d.length - 2);
2315
2315
  const m = T(n.start), c = T(n.end), h = T(n.percentComplete), C = T(n.parentId || "");
2316
2316
  if (m(i).getTime() !== m(a).getTime()) {
2317
- Wa(d.map((k) => k.task), n);
2317
+ Oa(d.map((k) => k.task), n);
2318
2318
  const f = m(a).getTime() - m(i).getTime();
2319
- Yr(o(a), n, f);
2319
+ Xr(o(a), n, f);
2320
2320
  }
2321
- if (c(i).getTime() !== c(a).getTime() && Oa(d.map((f) => f.task), n), h(i) !== h(a) && _a(d.map((f) => f.task), n), n.parentId && C(i) !== C(a)) {
2321
+ if (c(i).getTime() !== c(a).getTime() && _a(d.map((f) => f.task), n), h(i) !== h(a) && Ba(d.map((f) => f.task), n), n.parentId && C(i) !== C(a)) {
2322
2322
  let f;
2323
- return d.length ? Ur(d.map((k) => k.task), n, i) : f = g.filter((k) => s(k) !== s(a)), qr(f || g, n, a);
2323
+ return d.length ? qr(d.map((k) => k.task), n, i) : f = g.filter((k) => s(k) !== s(a)), Yr(f || g, n, a);
2324
2324
  }
2325
2325
  }
2326
2326
  return g;
2327
- }, Ns = (e) => {
2327
+ }, Fs = (e) => {
2328
2328
  const { removedDataItem: a, taskModelFields: n, dataTree: r } = e, s = Ze(r, n.children, (d) => ({ ...d }));
2329
2329
  let o = [{
2330
2330
  task: { [n.children]: s },
@@ -2346,8 +2346,8 @@ const Rs = (e) => {
2346
2346
  }
2347
2347
  return s;
2348
2348
  }, _e = (e, a) => {
2349
- Wa(e, a), Oa(e, a), _a(e, a);
2350
- }, Ur = (e, a, n) => {
2349
+ Oa(e, a), _a(e, a), Ba(e, a);
2350
+ }, qr = (e, a, n) => {
2351
2351
  const r = T(a.children), s = ne(a.children);
2352
2352
  for (let o = e.length - 1; o >= 0; o--) {
2353
2353
  const l = e[o], i = r(l);
@@ -2356,7 +2356,7 @@ const Rs = (e) => {
2356
2356
  s(l, g);
2357
2357
  }
2358
2358
  }
2359
- }, qr = (e, a, n) => {
2359
+ }, Yr = (e, a, n) => {
2360
2360
  const r = T(a.children), s = ne(a.children);
2361
2361
  return n.parentId === null ? [...e, n] : (e = Ze(e, a.children, (o) => {
2362
2362
  if (o.id === n.parentId) {
@@ -2365,7 +2365,7 @@ const Rs = (e) => {
2365
2365
  }
2366
2366
  return { ...o };
2367
2367
  }), e);
2368
- }, Wa = (e, a) => {
2368
+ }, Oa = (e, a) => {
2369
2369
  if (!e.length)
2370
2370
  return;
2371
2371
  const n = T(a.children), r = T(a.start), s = ne(a.start);
@@ -2379,7 +2379,7 @@ const Rs = (e) => {
2379
2379
  s(l, new Date(g));
2380
2380
  }
2381
2381
  }
2382
- }, Oa = (e, a) => {
2382
+ }, _a = (e, a) => {
2383
2383
  if (!e.length)
2384
2384
  return;
2385
2385
  const n = T(a.children), r = T(a.end), s = ne(a.end);
@@ -2393,7 +2393,7 @@ const Rs = (e) => {
2393
2393
  s(l, new Date(g));
2394
2394
  }
2395
2395
  }
2396
- }, _a = (e, a) => {
2396
+ }, Ba = (e, a) => {
2397
2397
  if (!e.length)
2398
2398
  return;
2399
2399
  const n = T(a.children), r = T(a.percentComplete), s = ne(a.percentComplete), o = ({ avg: l, n: i }, g) => ({
@@ -2407,7 +2407,7 @@ const Rs = (e) => {
2407
2407
  s(i, d);
2408
2408
  }
2409
2409
  }
2410
- }, Yr = (e, a, n) => {
2410
+ }, Xr = (e, a, n) => {
2411
2411
  if (!e)
2412
2412
  return;
2413
2413
  const r = T(a.children), s = T(a.start), o = ne(a.start), l = T(a.end), i = ne(a.end), g = e.map((d) => ({ task: d, childrenIndex: 0 }));
@@ -2421,7 +2421,7 @@ const Rs = (e) => {
2421
2421
  }, gn = (e) => {
2422
2422
  const { validationMessage: a, touched: n, label: r, id: s, valid: o, disabled: l, hint: i, type: g, optional: d, ...m } = e, c = n && a, h = !c && i, C = h ? `${s}_hint` : "", f = c ? `${s}_error` : "";
2423
2423
  return /* @__PURE__ */ t.createElement(qe, { className: "k-col-span-full" }, /* @__PURE__ */ t.createElement(Ye, { editorId: s, editorValid: o, editorDisabled: l, optional: d }, r), /* @__PURE__ */ t.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ t.createElement(
2424
- Uo,
2424
+ qo,
2425
2425
  {
2426
2426
  valid: o,
2427
2427
  type: g,
@@ -2434,7 +2434,7 @@ const Rs = (e) => {
2434
2434
  }, We = (e) => {
2435
2435
  const { validationMessage: a, touched: n, label: r, id: s, valid: o, disabled: l, hint: i, wrapperStyle: g, ...d } = e, m = n && a, c = !m && i, h = c ? `${s}_hint` : "", C = m ? `${s}_error` : "", f = r ? `${s}_label` : "";
2436
2436
  return /* @__PURE__ */ t.createElement(qe, { style: g, className: "k-col-span-2" }, /* @__PURE__ */ t.createElement(Ye, { id: f, editorId: s, editorValid: o, editorDisabled: l }, r), /* @__PURE__ */ t.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ t.createElement(
2437
- Xo,
2437
+ jo,
2438
2438
  {
2439
2439
  ariaLabelledBy: f,
2440
2440
  ariaDescribedBy: `${h} ${C}`,
@@ -2447,7 +2447,7 @@ const Rs = (e) => {
2447
2447
  }, hn = (e) => {
2448
2448
  const { validationMessage: a, visited: n, label: r, id: s, valid: o, disabled: l, hint: i, ...g } = e, d = n && a, m = !d && i, c = m ? `${s}_hint` : "", h = d ? `${s}_error` : "";
2449
2449
  return /* @__PURE__ */ t.createElement(qe, null, /* @__PURE__ */ t.createElement(Ye, { editorId: s, editorValid: o, editorDisabled: l }, r), /* @__PURE__ */ t.createElement("div", { className: "k-form-field-wrap" }, /* @__PURE__ */ t.createElement(
2450
- qo,
2450
+ Yo,
2451
2451
  {
2452
2452
  ariaDescribedBy: `${c} ${h}`,
2453
2453
  valid: o,
@@ -2458,7 +2458,7 @@ const Rs = (e) => {
2458
2458
  ...g
2459
2459
  }
2460
2460
  ), m && /* @__PURE__ */ t.createElement(Xe, { id: c }, i), d && /* @__PURE__ */ t.createElement(je, { id: h }, a)));
2461
- }, Xr = (e) => {
2461
+ }, jr = (e) => {
2462
2462
  const {
2463
2463
  validationMessage: a,
2464
2464
  touched: n,
@@ -2504,7 +2504,7 @@ const Rs = (e) => {
2504
2504
  defaultItem: c
2505
2505
  }
2506
2506
  ), f && /* @__PURE__ */ t.createElement(Xe, { id: k }, i), C && /* @__PURE__ */ t.createElement(je, { id: y }, a)));
2507
- }, jr = (e, a, n, r) => {
2507
+ }, Zr = (e, a, n, r) => {
2508
2508
  const [s, o] = t.useState(e), l = t.useRef(null), i = (c) => {
2509
2509
  r(a, "fromId", c.target.value.id);
2510
2510
  }, g = () => {
@@ -2516,7 +2516,7 @@ const Rs = (e) => {
2516
2516
  () => re(e, "id", a.fromId),
2517
2517
  [e, a.fromId]
2518
2518
  ), m = (c) => {
2519
- const h = In(e, c.filter);
2519
+ const h = Rn(e, c.filter);
2520
2520
  o(h);
2521
2521
  };
2522
2522
  return /* @__PURE__ */ t.createElement("td", { ref: l, className: ie(g() && "k-selected") }, /* @__PURE__ */ t.createElement(
@@ -2531,7 +2531,7 @@ const Rs = (e) => {
2531
2531
  required: !0
2532
2532
  }
2533
2533
  ));
2534
- }, Zr = (e, a, n, r) => {
2534
+ }, Jr = (e, a, n, r) => {
2535
2535
  const s = (i) => {
2536
2536
  r(a, "type", i.target.value.type);
2537
2537
  }, o = () => {
@@ -2552,7 +2552,7 @@ const Rs = (e) => {
2552
2552
  onChange: s
2553
2553
  }
2554
2554
  ));
2555
- }, Jr = (e) => {
2555
+ }, Qr = (e) => {
2556
2556
  var m;
2557
2557
  const [a, n] = t.useState([]), r = ce(), s = (c) => r.toLanguageString(c, se[c]), o = s(qt), l = s(Yt), i = s(jt), g = s(Zt), d = t.useMemo(() => {
2558
2558
  const c = e.predecessors.map((h) => {
@@ -2563,10 +2563,10 @@ const Rs = (e) => {
2563
2563
  typeName: f ? f.type : ""
2564
2564
  };
2565
2565
  });
2566
- return bn(c, a);
2566
+ return In(c, a);
2567
2567
  }, [e.predecessors, e.dependencyTypes, e.flatTasks, a]);
2568
2568
  return /* @__PURE__ */ t.createElement(
2569
- Tn,
2569
+ Sn,
2570
2570
  {
2571
2571
  data: d,
2572
2572
  sort: a,
@@ -2577,11 +2577,11 @@ const Rs = (e) => {
2577
2577
  },
2578
2578
  style: { height: "23em" }
2579
2579
  },
2580
- /* @__PURE__ */ t.createElement(Sn, null, /* @__PURE__ */ t.createElement(me, { icon: "plus", svgIcon: It, onClick: e.addPredecessorsDependency }, o), /* @__PURE__ */ t.createElement(
2580
+ /* @__PURE__ */ t.createElement(bn, null, /* @__PURE__ */ t.createElement(me, { icon: "plus", svgIcon: It, onClick: e.addPredecessorsDependency }, o), /* @__PURE__ */ t.createElement(
2581
2581
  me,
2582
2582
  {
2583
2583
  icon: "minus",
2584
- svgIcon: vn,
2584
+ svgIcon: wn,
2585
2585
  onClick: e.deleteDependency,
2586
2586
  disabled: ((m = e.selectedItem) == null ? void 0 : m.id) === void 0
2587
2587
  },
@@ -2592,7 +2592,7 @@ const Rs = (e) => {
2592
2592
  {
2593
2593
  field: "taskTitle",
2594
2594
  title: i,
2595
- cell: (c) => jr(e.flatTasks, c.dataItem, e.selectedItem, e.updateDependency)
2595
+ cell: (c) => Zr(e.flatTasks, c.dataItem, e.selectedItem, e.updateDependency)
2596
2596
  }
2597
2597
  ),
2598
2598
  /* @__PURE__ */ t.createElement(
@@ -2600,11 +2600,11 @@ const Rs = (e) => {
2600
2600
  {
2601
2601
  field: "typeName",
2602
2602
  title: g,
2603
- cell: (c) => Zr(e.dependencyTypes, c.dataItem, e.selectedItem, e.updateDependency)
2603
+ cell: (c) => Jr(e.dependencyTypes, c.dataItem, e.selectedItem, e.updateDependency)
2604
2604
  }
2605
2605
  )
2606
2606
  );
2607
- }, Qr = (e, a, n, r) => {
2607
+ }, es = (e, a, n, r) => {
2608
2608
  const [s, o] = t.useState(e), l = (m) => {
2609
2609
  r(a, "toId", m.target.value.id);
2610
2610
  }, i = () => {
@@ -2616,7 +2616,7 @@ const Rs = (e) => {
2616
2616
  () => re(e, "id", a.toId),
2617
2617
  [e, a.toId]
2618
2618
  ), d = (m) => {
2619
- const c = In(e, m.filter);
2619
+ const c = Rn(e, m.filter);
2620
2620
  o(c);
2621
2621
  };
2622
2622
  return /* @__PURE__ */ t.createElement("td", { className: ie(i() && "k-selected") }, /* @__PURE__ */ t.createElement(
@@ -2631,7 +2631,7 @@ const Rs = (e) => {
2631
2631
  required: !0
2632
2632
  }
2633
2633
  ));
2634
- }, es = (e, a, n, r) => {
2634
+ }, ts = (e, a, n, r) => {
2635
2635
  const s = (i) => {
2636
2636
  r(a, "type", i.target.value.type);
2637
2637
  }, o = () => {
@@ -2652,7 +2652,7 @@ const Rs = (e) => {
2652
2652
  onChange: s
2653
2653
  }
2654
2654
  ));
2655
- }, ts = (e) => {
2655
+ }, ns = (e) => {
2656
2656
  var m;
2657
2657
  const [a, n] = t.useState([]), r = ce(), s = (c) => r.toLanguageString(c, se[c]), o = s(qt), l = s(Yt), i = s(jt), g = s(Zt), d = t.useMemo(() => {
2658
2658
  const c = e.successors.map((h) => {
@@ -2663,10 +2663,10 @@ const Rs = (e) => {
2663
2663
  typeName: f ? f.type : ""
2664
2664
  };
2665
2665
  });
2666
- return bn(c, a);
2666
+ return In(c, a);
2667
2667
  }, [e.successors, e.dependencyTypes, e.flatTasks, a]);
2668
2668
  return /* @__PURE__ */ t.createElement(
2669
- Tn,
2669
+ Sn,
2670
2670
  {
2671
2671
  data: d,
2672
2672
  sort: a,
@@ -2677,11 +2677,11 @@ const Rs = (e) => {
2677
2677
  },
2678
2678
  style: { height: "23em" }
2679
2679
  },
2680
- /* @__PURE__ */ t.createElement(Sn, null, /* @__PURE__ */ t.createElement(me, { icon: "plus", svgIcon: It, onClick: e.addSuccessorsDependency }, o), /* @__PURE__ */ t.createElement(
2680
+ /* @__PURE__ */ t.createElement(bn, null, /* @__PURE__ */ t.createElement(me, { icon: "plus", svgIcon: It, onClick: e.addSuccessorsDependency }, o), /* @__PURE__ */ t.createElement(
2681
2681
  me,
2682
2682
  {
2683
2683
  icon: "minus",
2684
- svgIcon: vn,
2684
+ svgIcon: wn,
2685
2685
  onClick: e.deleteDependency,
2686
2686
  disabled: ((m = e.selectedItem) == null ? void 0 : m.id) === void 0
2687
2687
  },
@@ -2692,7 +2692,7 @@ const Rs = (e) => {
2692
2692
  {
2693
2693
  field: "taskTitle",
2694
2694
  title: i,
2695
- cell: (c) => Qr(e.flatTasks, c.dataItem, e.selectedItem, e.updateDependency)
2695
+ cell: (c) => es(e.flatTasks, c.dataItem, e.selectedItem, e.updateDependency)
2696
2696
  }
2697
2697
  ),
2698
2698
  /* @__PURE__ */ t.createElement(
@@ -2700,20 +2700,20 @@ const Rs = (e) => {
2700
2700
  {
2701
2701
  field: "type",
2702
2702
  title: g,
2703
- cell: (c) => es(e.dependencyTypes, c.dataItem, e.selectedItem, e.updateDependency)
2703
+ cell: (c) => ts(e.dependencyTypes, c.dataItem, e.selectedItem, e.updateDependency)
2704
2704
  }
2705
2705
  )
2706
2706
  );
2707
2707
  };
2708
2708
  var ue = /* @__PURE__ */ ((e) => (e[e.FF = 0] = "FF", e[e.FS = 1] = "FS", e[e.SF = 2] = "SF", e[e.SS = 3] = "SS", e))(ue || {});
2709
- const ns = [
2709
+ const as = [
2710
2710
  { type: ue.FF },
2711
2711
  { type: ue.FS },
2712
2712
  { type: ue.SF },
2713
2713
  { type: ue.SS }
2714
- ], as = (e) => {
2715
- const [a, n] = t.useState(0), [r, s] = t.useState(), [o, l] = t.useState([...e.dependencyData || []]), [i, g] = t.useState([]), d = Ft(), m = ce(), c = (p) => m.toLanguageString(p, se[p]), h = c(ha), C = c(fa), f = c(pa), k = c(Ca), y = c(ka), M = c(da), A = c(ua), x = c(ma), G = c(Da), b = c(Ea), F = c(ya), v = c(va), w = t.useMemo(
2716
- () => yn(
2714
+ ], os = (e) => {
2715
+ const [a, n] = t.useState(0), [r, s] = t.useState(), [o, l] = t.useState([...e.dependencyData || []]), [i, g] = t.useState([]), d = Ft(), m = ce(), c = (p) => m.toLanguageString(p, se[p]), h = c(fa), C = c(pa), f = c(Ca), k = c(ka), y = c(Da), M = c(ua), A = c(ma), x = c(ga), G = c(Ea), b = c(ya), F = c(va), v = c(wa), w = t.useMemo(
2716
+ () => vn(
2717
2717
  e.taskData || [],
2718
2718
  (p) => p.children || [],
2719
2719
  (p) => {
@@ -2798,20 +2798,20 @@ const ns = [
2798
2798
  (le) => le.id && le.id === de.id || le.uid && le.uid === de.uid
2799
2799
  );
2800
2800
  Ee > -1 && (o.splice(Ee, 1, de), l([...o]));
2801
- }, z = t.useMemo(() => ns.map((p) => {
2801
+ }, z = t.useMemo(() => as.map((p) => {
2802
2802
  let H;
2803
2803
  switch (p.type) {
2804
2804
  case ue.FF:
2805
2805
  H = c(Tt);
2806
2806
  break;
2807
2807
  case ue.FS:
2808
- H = c(Ta);
2808
+ H = c(Sa);
2809
2809
  break;
2810
2810
  case ue.SF:
2811
- H = c(wa);
2811
+ H = c(Ta);
2812
2812
  break;
2813
2813
  case ue.SS:
2814
- H = c(Sa);
2814
+ H = c(ba);
2815
2815
  break;
2816
2816
  default:
2817
2817
  H = c(Tt);
@@ -2908,13 +2908,13 @@ const ns = [
2908
2908
  name: d.parentId || "",
2909
2909
  idField: d.id,
2910
2910
  label: y,
2911
- component: Xr,
2911
+ component: jr,
2912
2912
  data: $,
2913
2913
  dataItem: e.dataItem
2914
2914
  }
2915
2915
  ))));
2916
- return ae ? /* @__PURE__ */ t.createElement(Yo, { selected: a, onSelect: Q }, /* @__PURE__ */ t.createElement(gt, { title: M }, xe), /* @__PURE__ */ t.createElement(gt, { title: A }, /* @__PURE__ */ t.createElement(
2917
- Jr,
2916
+ return ae ? /* @__PURE__ */ t.createElement(Xo, { selected: a, onSelect: Q }, /* @__PURE__ */ t.createElement(gt, { title: M }, xe), /* @__PURE__ */ t.createElement(gt, { title: A }, /* @__PURE__ */ t.createElement(
2917
+ Qr,
2918
2918
  {
2919
2919
  flatTasks: w,
2920
2920
  predecessors: O,
@@ -2926,7 +2926,7 @@ const ns = [
2926
2926
  updateDependency: De
2927
2927
  }
2928
2928
  )), /* @__PURE__ */ t.createElement(gt, { title: x }, /* @__PURE__ */ t.createElement(
2929
- ts,
2929
+ ns,
2930
2930
  {
2931
2931
  flatTasks: w,
2932
2932
  successors: _,
@@ -2938,8 +2938,8 @@ const ns = [
2938
2938
  updateDependency: De
2939
2939
  }
2940
2940
  ))) : Se;
2941
- }, Fs = (e) => {
2942
- const { onCancel: a, onDelete: n, onClose: r, onSubmit: s, ...o } = e, l = t.useRef(e.dataItem), [i, g] = t.useState({}), d = ce(), m = (v) => d.toLanguageString(v, se[v]), c = m(ca), h = m(Ut), C = m(Xt), f = m(ga), k = t.useCallback(
2941
+ }, Ls = (e) => {
2942
+ const { onCancel: a, onDelete: n, onClose: r, onSubmit: s, ...o } = e, l = t.useRef(e.dataItem), [i, g] = t.useState({}), d = ce(), m = (v) => d.toLanguageString(v, se[v]), c = m(da), h = m(Ut), C = m(Xt), f = m(ha), k = t.useCallback(
2943
2943
  (v) => {
2944
2944
  if (a) {
2945
2945
  const w = { syntheticEvent: v, nativeEvent: v.nativeEvent, dataItem: e.dataItem };
@@ -2989,12 +2989,12 @@ const ns = [
2989
2989
  },
2990
2990
  []
2991
2991
  ), F = /* @__PURE__ */ t.createElement(
2992
- Oo,
2992
+ _o,
2993
2993
  {
2994
2994
  initialValues: e.dataItem,
2995
2995
  onSubmit: A,
2996
2996
  render: (v) => /* @__PURE__ */ t.createElement(
2997
- _o,
2997
+ Bo,
2998
2998
  {
2999
2999
  title: f,
3000
3000
  minWidth: 90,
@@ -3004,7 +3004,7 @@ const ns = [
3004
3004
  onClose: M
3005
3005
  },
3006
3006
  /* @__PURE__ */ t.createElement(
3007
- as,
3007
+ os,
3008
3008
  {
3009
3009
  taskData: e.taskData,
3010
3010
  dependencyData: e.dependencyData,
@@ -3012,24 +3012,24 @@ const ns = [
3012
3012
  onDependencyCreate: b
3013
3013
  }
3014
3014
  ),
3015
- /* @__PURE__ */ t.createElement(Bo, { layout: "start" }, /* @__PURE__ */ t.createElement(
3015
+ /* @__PURE__ */ t.createElement(Ko, { layout: "start" }, /* @__PURE__ */ t.createElement(
3016
3016
  me,
3017
3017
  {
3018
3018
  disabled: !v.allowSubmit && !G,
3019
3019
  onClick: v.allowSubmit ? v.onSubmit : (w) => A(e.dataItem, w),
3020
3020
  icon: "save",
3021
- svgIcon: Lo,
3021
+ svgIcon: Ao,
3022
3022
  themeColor: "primary"
3023
3023
  },
3024
3024
  c
3025
- ), /* @__PURE__ */ t.createElement(me, { onClick: k, type: "button", icon: "cancel", svgIcon: Ao }, h), /* @__PURE__ */ t.createElement("div", { className: "k-spacer" }), n && /* @__PURE__ */ t.createElement(me, { onClick: y, icon: "trash", svgIcon: Ho, fillMode: "flat", themeColor: "primary" }, C))
3025
+ ), /* @__PURE__ */ t.createElement(me, { onClick: k, type: "button", icon: "cancel", svgIcon: Ho }, h), /* @__PURE__ */ t.createElement("div", { className: "k-spacer" }), n && /* @__PURE__ */ t.createElement(me, { onClick: y, icon: "trash", svgIcon: Vo, fillMode: "flat", themeColor: "primary" }, C))
3026
3026
  ),
3027
3027
  ...o
3028
3028
  }
3029
3029
  );
3030
- return St ? wn.createPortal(F, document && document.body) : null;
3031
- }, Ls = (e) => {
3032
- const { onClose: a, onCancel: n, onConfirm: r, dataItem: s } = e, o = ce(), l = (k) => o.toLanguageString(k, se[k]), i = l(Xt), g = l(Ut), d = l(Na), m = l(Fa), c = t.useCallback(
3030
+ return St ? Tn.createPortal(F, document && document.body) : null;
3031
+ }, As = (e) => {
3032
+ const { onClose: a, onCancel: n, onConfirm: r, dataItem: s } = e, o = ce(), l = (k) => o.toLanguageString(k, se[k]), i = l(Xt), g = l(Ut), d = l(Fa), m = l(La), c = t.useCallback(
3033
3033
  ({ syntheticEvent: k }) => {
3034
3034
  a && a.call(void 0, {
3035
3035
  syntheticEvent: k,
@@ -3056,35 +3056,35 @@ const ns = [
3056
3056
  });
3057
3057
  },
3058
3058
  [r, s]
3059
- ), f = /* @__PURE__ */ t.createElement(Ko, { title: m, onClose: c }, d, /* @__PURE__ */ t.createElement($o, { layout: "end" }, /* @__PURE__ */ t.createElement(me, { themeColor: "primary", onClick: C }, i), /* @__PURE__ */ t.createElement(me, { onClick: h }, g)));
3060
- return St ? wn.createPortal(f, document && document.body) : null;
3061
- }, As = En;
3059
+ ), f = /* @__PURE__ */ t.createElement($o, { title: m, onClose: c }, d, /* @__PURE__ */ t.createElement(Uo, { layout: "end" }, /* @__PURE__ */ t.createElement(me, { themeColor: "primary", onClick: C }, i), /* @__PURE__ */ t.createElement(me, { onClick: h }, g)));
3060
+ return St ? Tn.createPortal(f, document && document.body) : null;
3061
+ }, Hs = yn;
3062
3062
  export {
3063
- vs as GANTT_COL_INDEX_ATTRIBUTE,
3064
- ws as GANTT_PREVENT_SELECTION_ELEMENT,
3065
- ys as GANTT_ROW_INDEX_ATTRIBUTE,
3063
+ ws as GANTT_COL_INDEX_ATTRIBUTE,
3064
+ Ts as GANTT_PREVENT_SELECTION_ELEMENT,
3065
+ vs as GANTT_ROW_INDEX_ATTRIBUTE,
3066
3066
  Jt as Gantt,
3067
- Kr as GanttBooleanFilter,
3068
- $r as GanttDateFilter,
3067
+ $r as GanttBooleanFilter,
3068
+ Ur as GanttDateFilter,
3069
3069
  Qt as GanttDayView,
3070
- Fs as GanttForm,
3070
+ Ls as GanttForm,
3071
3071
  en as GanttMonthView,
3072
- Br as GanttNumericFilter,
3073
- Ls as GanttRemoveDialog,
3074
- As as GanttRow,
3075
- _r as GanttTextFilter,
3072
+ Kr as GanttNumericFilter,
3073
+ As as GanttRemoveDialog,
3074
+ Hs as GanttRow,
3075
+ Br as GanttTextFilter,
3076
3076
  nt as GanttWeekView,
3077
3077
  tn as GanttYearView,
3078
- Rs as addDependency,
3079
- xs as addTask,
3080
- Is as createDataTree,
3081
- bs as extendDataItem,
3082
- Ss as filterBy,
3083
- zs as getSelectedState,
3084
- Ps as getSelectedStateFromKeyDown,
3078
+ xs as addDependency,
3079
+ Ms as addTask,
3080
+ Rs as createDataTree,
3081
+ Is as extendDataItem,
3082
+ bs as filterBy,
3083
+ Ps as getSelectedState,
3084
+ Gs as getSelectedStateFromKeyDown,
3085
3085
  Ze as mapTree,
3086
- Ts as orderBy,
3087
- Ns as removeTask,
3088
- Gs as setSelectedState,
3089
- Ms as updateTask
3086
+ Ss as orderBy,
3087
+ Fs as removeTask,
3088
+ Ws as setSelectedState,
3089
+ Ns as updateTask
3090
3090
  };