@progress/kendo-react-grid 9.4.0-develop.27 → 9.4.0-develop.29

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/GridComponent.mjs CHANGED
@@ -8,7 +8,7 @@
8
8
  import * as l from "react";
9
9
  import { validatePackage as wt, uGrid as Et, getter as H, classNames as f, canUseDOM as It } from "@progress/kendo-react-common";
10
10
  import { process as St } from "@progress/kendo-data-query";
11
- import { combineFilters as vt, getDetailExpandableOptions as Rt, getGroupExpandableOptions as xt, getSelectionOptions as Gt, tableKeyboardNavigationTools as p, Pager as kt, tableKeyboardNavigationBodyAttributes as Nt, tableKeyboardNavigationScopeAttributes as Ke, tableColumnsVirtualization as Ft } from "@progress/kendo-react-data-tools";
11
+ import { combineFilters as vt, getDetailExpandableOptions as Rt, getGroupExpandableOptions as xt, getSelectionOptions as Gt, tableKeyboardNavigationTools as ee, Pager as kt, tableKeyboardNavigationBodyAttributes as Nt, tableKeyboardNavigationScopeAttributes as Ke, tableColumnsVirtualization as Ft } from "@progress/kendo-react-data-tools";
12
12
  import { GridSelectionCell as Dt } from "./cells/GridSelectionCell.mjs";
13
13
  import { GridHierarchyCell as Tt } from "./cells/GridHierarchyCell.mjs";
14
14
  import { GridEditCell as Ht } from "./cells/GridEditCell.mjs";
@@ -17,7 +17,7 @@ import { HeaderRow as At } from "./header/HeaderRow.mjs";
17
17
  import { FilterRow as Bt } from "./header/FilterRow.mjs";
18
18
  import { GroupPanel as Pt } from "./header/GroupPanel.mjs";
19
19
  import { Footer as Vt } from "./footer/Footer.mjs";
20
- import { isRowReorderEnabled as Lt, getRowSpanOptions as Ae, getColumnWidth as ee, isSorted as Be, flatData as Ot, autoGenerateColumns as _t, mapColumns as zt, clientColumn as Mt, getNestedValue as Pe, getColSpan as Ve, resolveCells as Wt, isClientReference as jt, sanitizeColumns as $t, readColumns as Ut } from "./utils/index.mjs";
20
+ import { isRowReorderEnabled as Lt, getRowSpanOptions as Ae, getColumnWidth as te, isSorted as Be, flatData as Ot, autoGenerateColumns as _t, mapColumns as zt, clientColumn as Mt, getNestedValue as Pe, getColSpan as Ve, resolveCells as Wt, isClientReference as jt, sanitizeColumns as $t, readColumns as Ut } from "./utils/index.mjs";
21
21
  import { GridCell as Jt } from "./cells/GridCell.mjs";
22
22
  import { GridGroupCell as Le } from "./cells/GridGroupCell.mjs";
23
23
  import { GridRow as Qt } from "./rows/GridRow.mjs";
@@ -51,8 +51,8 @@ import { GridReorderableRowsContainer as fl } from "./components/GridDraggableRo
51
51
  import { GridRowReorderCell as gl } from "./cells/GridRowReorderCell.mjs";
52
52
  import { GridHeaderRowReorderCell as bl } from "./header/client/GridHeaderRowReorderCell.mjs";
53
53
  import { GridLoader as Qe } from "./components/GridLoader.mjs";
54
- const hl = l.forwardRef((e, te) => {
55
- var Ie, Se, ve, Re, xe, Ge, ke;
54
+ const hl = l.forwardRef((e, le) => {
55
+ var Se, ve, Re, xe, Ge, ke, Ne;
56
56
  const R = e.id + "-role-element-id", x = e.navigatable ? R : "";
57
57
  wt(qt);
58
58
  const Xe = (t, r, d, o, i, a, c) => {
@@ -102,7 +102,7 @@ const hl = l.forwardRef((e, te) => {
102
102
  prevId: 0,
103
103
  idPrefix: x
104
104
  }
105
- )), m.current = pe(m.current), tt(m.current, r), G = zt(m.current, !0), ae.current = m.current.map(Mt);
105
+ )), m.current = pe(m.current), tt(m.current, r), G = zt(m.current, !0), re.current = m.current.map(Mt);
106
106
  }, tt = (t, r) => {
107
107
  var i;
108
108
  t.filter((a) => e.selectedField && a.field === e.selectedField || a.columnType === "checkbox").forEach((a) => {
@@ -147,12 +147,12 @@ const hl = l.forwardRef((e, te) => {
147
147
  locked: e.lockGroups
148
148
  }), o++;
149
149
  t.slice(o).forEach((a) => {
150
- a.parentIndex >= 0 && (a.parentIndex += o), a.rowSpannable = a.rowSpannable !== void 0 ? Ae(a.rowSpannable) : ne;
150
+ a.parentIndex >= 0 && (a.parentIndex += o), a.rowSpannable = a.rowSpannable !== void 0 ? Ae(a.rowSpannable) : ie;
151
151
  });
152
- }, le = () => C.length === e.total, lt = () => {
153
- const { rowHeight: t, detailRowHeight: r, detail: d, expandField: o } = e, i = le(), a = t !== void 0 && t > 0, c = r !== void 0 && r > 0;
152
+ }, ae = () => C.length === e.total, lt = () => {
153
+ const { rowHeight: t, detailRowHeight: r, detail: d, expandField: o } = e, i = ae(), a = t !== void 0 && t > 0, c = r !== void 0 && r > 0;
154
154
  return !a || K && !i || !!(d && o) && (!c || !i) ? ml : j;
155
- }, $ = () => e.isClient ? m : ae, at = (t, r, d, o, i, a) => {
155
+ }, $ = () => e.isClient ? m : re, at = (t, r, d, o, i, a) => {
156
156
  let c = Ve(t, r);
157
157
  if (e.columnVirtualization && t.colSpan === 1)
158
158
  return { colSpan: a, colsToSkip: i };
@@ -160,7 +160,7 @@ const hl = l.forwardRef((e, te) => {
160
160
  return e.columnVirtualization && (s = b.length - 1 === o, h = b.length - o), c > 1 && !s ? i = c - 1 : c = 1, h <= c && !s && (c = h), { colSpan: c, colsToSkip: i };
161
161
  };
162
162
  let U, g = [], O;
163
- const m = e.columnsRef || { current: [] }, ae = { current: [] };
163
+ const m = e.columnsRef || { current: [] }, re = { current: [] };
164
164
  let G = [[]];
165
165
  const rt = e.scrollLeftRef || { current: 0 }, _ = e.localization || new dl(), nt = e.intl || new cl("en"), k = e.unstyled, u = k && k.uGrid ? k.uGrid : Et, N = Lt(e.rowReorderable), F = e.autoProcessData === !0 ? {
166
166
  group: !0,
@@ -170,7 +170,7 @@ const hl = l.forwardRef((e, te) => {
170
170
  page: !0
171
171
  } : e.autoProcessData;
172
172
  let C, v;
173
- if (Array.isArray(e.data) ? (C = e.data, v = (Ie = e.total) != null ? Ie : C.length) : (C = ((Se = e.data) == null ? void 0 : Se.data) || [], v = (xe = (Re = e.total) != null ? Re : (ve = e.data) == null ? void 0 : ve.total) != null ? xe : C.length), F) {
173
+ if (Array.isArray(e.data) ? (C = e.data, v = (Se = e.total) != null ? Se : C.length) : (C = ((ve = e.data) == null ? void 0 : ve.data) || [], v = (Ge = (xe = e.total) != null ? xe : (Re = e.data) == null ? void 0 : Re.total) != null ? Ge : C.length), F) {
174
174
  const { data: t, total: r } = St(C, {
175
175
  group: F.group ? e.group : void 0,
176
176
  sort: F.sort ? e.sort : void 0,
@@ -183,7 +183,7 @@ const hl = l.forwardRef((e, te) => {
183
183
  skip: e.skip
184
184
  } : {}
185
185
  });
186
- C = t, v = (Ge = e.total) != null ? Ge : r;
186
+ C = t, v = (ke = e.total) != null ? ke : r;
187
187
  }
188
188
  const { size: E = "medium" } = e, it = typeof e.groupable == "object" && e.groupable.footer || "none", D = e.scrollable === "virtual", K = e.groupable === !0 || typeof e.groupable == "object" && e.groupable.enabled !== !1, A = Rt(!!e.detail), ot = xt(
189
189
  typeof e.groupable == "object" && e.groupable.enabled !== !1 ? e.groupable.expandable : e.groupable
@@ -198,15 +198,15 @@ const hl = l.forwardRef((e, te) => {
198
198
  );
199
199
  g = ct;
200
200
  const J = lt();
201
- J === j && le() && (O = g.slice(
201
+ J === j && ae() && (O = g.slice(
202
202
  e.skip || 0,
203
203
  (e.skip || 0) + ((e.take !== void 0 ? e.take : e.pageSize) || 0)
204
204
  ));
205
- const re = Gt(e.selectable || !!e.selectedField), ne = Ae(e.rowSpannable), st = re && re.drag ? "none" : void 0, z = l.Children.toArray(e.children);
205
+ const ne = Gt(e.selectable || !!e.selectedField), ie = Ae(e.rowSpannable), st = ne && ne.drag ? "none" : void 0, z = l.Children.toArray(e.children);
206
206
  et(z, dt);
207
- const ie = z.map((t) => t && t.type && t.type.displayName === "KendoReactGridToolbar" ? l.cloneElement(t, { ...t.props, ariaControls: R }) : null), M = z.filter((t) => t && t.type && t.type.displayName === "KendoReactGridNoRecords"), oe = z.filter(
207
+ const oe = z.map((t) => t && t.type && t.type.displayName === "KendoReactGridToolbar" ? l.cloneElement(t, { ...t.props, ariaControls: R }) : null), M = z.filter((t) => t && t.type && t.type.displayName === "KendoReactGridNoRecords"), de = z.filter(
208
208
  (t) => t && t.type && t.type.displayName === "KendoReactGridStatusBar"
209
- ), b = m.current.filter((t) => t.children.length === 0), de = K && /* @__PURE__ */ l.createElement(Pt, { columns: $().current, group: e.group || [], ariaControls: R }), ce = /* @__PURE__ */ l.createElement(
209
+ ), b = m.current.filter((t) => t.children.length === 0), ce = K && /* @__PURE__ */ l.createElement(Pt, { columns: $().current, group: e.group || [], ariaControls: R }), se = /* @__PURE__ */ l.createElement(
210
210
  Kt,
211
211
  {
212
212
  size: E,
@@ -251,7 +251,7 @@ const hl = l.forwardRef((e, te) => {
251
251
  localization: _
252
252
  }
253
253
  ) || void 0,
254
- cols: b.map((t, r) => /* @__PURE__ */ l.createElement("col", { key: r.toString(), width: ee(t) }))
254
+ cols: b.map((t, r) => /* @__PURE__ */ l.createElement("col", { key: r.toString(), width: te(t) }))
255
255
  }
256
256
  ), mt = rt.current || 0, ut = parseFloat(((e.style || {}).width || "").toString()), ft = (t, r, d, o, i) => {
257
257
  let a = !1;
@@ -287,14 +287,14 @@ const hl = l.forwardRef((e, te) => {
287
287
  );
288
288
  s = Y;
289
289
  const V = n.id ? n.id : y, ht = f(u.contentSticky({ locked: n.locked }), n.className), yt = n.left !== void 0 ? { left: n.left, right: n.right } : {};
290
- let Ne = !1;
290
+ let Z = !1;
291
291
  if (n.editable && (e.editable || e.editField)) {
292
- const S = e.editField ? Pe(e.editField, t.dataItem) : e.edit && e.dataItemKey ? e.edit[H(e.dataItemKey)(t.dataItem)] : void 0, q = typeof S == "boolean" ? S : Array.isArray(S) ? S.indexOf(n.field) > -1 : n.field !== void 0 && S === n.field;
293
- q && n.columnType === "data" && (q === !0 || q === n.field) && (a = !0, Ne = !0);
292
+ const S = e.editField ? Pe(e.editField, t.dataItem) : e.edit && e.dataItemKey ? e.edit[H(e.dataItemKey)(t.dataItem)] : void 0, p = typeof S == "boolean" ? S : Array.isArray(S) ? S.indexOf(n.field) > -1 : n.field !== void 0 && S === n.field;
293
+ p && n.columnType === "data" && (p === !0 || p === n.field) && (a = !0, Z = !0);
294
294
  }
295
- const Z = n.cell || Ne && Ht || Jt, Ct = e.expandField && e.detail && n.field === e.expandField || n._type === "expand", L = {
295
+ const q = n.cell || Z && Ht || Jt, Ct = e.expandField && e.detail && n.field === e.expandField || n._type === "expand", L = {
296
296
  locked: e.lockGroups,
297
- id: p.generateNavigatableId(
297
+ id: ee.generateNavigatableId(
298
298
  `${r}-${String(y)}`,
299
299
  x,
300
300
  Ct || t.rowType === "groupHeader" || t.rowType === "groupFooter" || n.field === "value" ? "nodata" : "cell"
@@ -321,7 +321,7 @@ const hl = l.forwardRef((e, te) => {
321
321
  ariaColumnIndex: n.ariaColumnIndex,
322
322
  isSelected: (n == null ? void 0 : n._type) === "edit" ? c : Array.isArray(c) && c.indexOf(y) > -1,
323
323
  isSorted: !!Be(n.field, e.sort),
324
- isInEdit: a,
324
+ isInEdit: Z,
325
325
  isAlt: o,
326
326
  unstyled: k,
327
327
  group: t.group,
@@ -333,38 +333,38 @@ const hl = l.forwardRef((e, te) => {
333
333
  ul,
334
334
  {
335
335
  key: V,
336
- isClient: jt(Z),
336
+ isClient: jt(q),
337
337
  dataItem: L.dataItem,
338
338
  rowDataIndex: L.rowDataIndex,
339
339
  columnIndex: L.columnIndex
340
340
  },
341
- /* @__PURE__ */ l.createElement(Z, { ...L })
342
- ) : /* @__PURE__ */ l.createElement(Z, { key: V, ...L });
341
+ /* @__PURE__ */ l.createElement(q, { ...L })
342
+ ) : /* @__PURE__ */ l.createElement(q, { key: V, ...L });
343
343
  }),
344
344
  isInEdit: a,
345
345
  isSelected: typeof c == "boolean" && c
346
346
  };
347
347
  };
348
- let se = 0;
348
+ let me = 0;
349
349
  if (D && U)
350
350
  for (let t = 0; t < U.topCacheCount + U.attendedSkip - (e.skip || 0); t++) {
351
351
  const r = g.shift();
352
352
  if (r)
353
- g.push(r), se++, r.rowType === "groupHeader" && t--;
353
+ g.push(r), me++, r.rowType === "groupHeader" && t--;
354
354
  else
355
355
  break;
356
356
  }
357
- const me = (t) => t >= g.length - se;
358
- let ue = e.skip || 0;
359
- const Q = [], fe = !g.length, ge = G.length + (e.filterable ? 1 : 0) + 1;
357
+ const ue = (t) => t >= g.length - me;
358
+ let fe = e.skip || 0;
359
+ const Q = [], ge = !g.length, be = G.length + (e.filterable ? 1 : 0) + 1;
360
360
  let B = 0;
361
361
  if (g.length) {
362
362
  let t = -1, r = 0;
363
- const d = ne.enabled ? {} : void 0;
363
+ const d = ie.enabled ? {} : void 0;
364
364
  (O || g).forEach((o, i) => {
365
- o.rowType === "data" && (ue++, t++);
366
- const a = ue % 2 === 0, c = e.dataItemKey && H(e.dataItemKey)(o.dataItem), s = i + (e.skip || 0), h = c || "ai" + s, T = h + "_1", I = ft(o, h, t, a, d);
367
- if (B = s + ge + r, Q.push(
365
+ o.rowType === "data" && (fe++, t++);
366
+ const a = fe % 2 === 0, c = e.dataItemKey && H(e.dataItemKey)(o.dataItem), s = i + (e.skip || 0), h = c || "ai" + s, T = h + "_1", I = ft(o, h, t, a, d);
367
+ if (B = s + be + r, Q.push(
368
368
  /* @__PURE__ */ l.createElement(
369
369
  Qt,
370
370
  {
@@ -374,7 +374,7 @@ const hl = l.forwardRef((e, te) => {
374
374
  isInEdit: I.isInEdit,
375
375
  rowType: o.rowType,
376
376
  isRowReorderable: N,
377
- isHidden: me(i),
377
+ isHidden: ue(i),
378
378
  onClick: null,
379
379
  onDoubleClick: null,
380
380
  selectedField: e.selectedField,
@@ -390,14 +390,14 @@ const hl = l.forwardRef((e, te) => {
390
390
  )
391
391
  ), e.detail && o.rowType === "data" && o.expanded) {
392
392
  const n = b.length - (e.expandField || A.enabled ? 1 : 0) - (e.group ? e.group.length : 0) || 1;
393
- r++, B = s + ge + r, Q.push(
393
+ r++, B = s + be + r, Q.push(
394
394
  /* @__PURE__ */ l.createElement(
395
395
  "tr",
396
396
  {
397
397
  key: T,
398
398
  className: f(u.detailTr({ isAlt: a })),
399
399
  style: {
400
- visibility: me(i) ? "hidden" : "",
400
+ visibility: ue(i) ? "hidden" : "",
401
401
  height: e.detailRowHeight
402
402
  },
403
403
  role: "row",
@@ -428,7 +428,7 @@ const hl = l.forwardRef((e, te) => {
428
428
  el,
429
429
  {
430
430
  unstyled: k,
431
- id: p.generateNavigatableId(`${T}-dhcell`, x)
431
+ id: ee.generateNavigatableId(`${T}-dhcell`, x)
432
432
  }
433
433
  ),
434
434
  /* @__PURE__ */ l.createElement(
@@ -439,7 +439,7 @@ const hl = l.forwardRef((e, te) => {
439
439
  colSpan: n,
440
440
  ariaColIndex: 2 + (e.group ? e.group.length : 0),
441
441
  detail: e.detail,
442
- id: p.generateNavigatableId(`${T}-dcell`, x)
442
+ id: ee.generateNavigatableId(`${T}-dcell`, x)
443
443
  }
444
444
  )
445
445
  )
@@ -447,13 +447,13 @@ const hl = l.forwardRef((e, te) => {
447
447
  }
448
448
  });
449
449
  }
450
- const be = {
450
+ const he = {
451
451
  size: E,
452
452
  total: v,
453
453
  skip: e.skip || 0,
454
454
  take: (e.take !== void 0 ? e.take : e.pageSize) || 10,
455
455
  ...Zt(e.pageable || {})
456
- }, he = /* @__PURE__ */ l.createElement(rl, null, e.pager ? /* @__PURE__ */ l.createElement(e.pager, { ...be }) : /* @__PURE__ */ l.createElement(kt, { className: f(u.pager({})), ...be })), gt = (t, r) => /* @__PURE__ */ l.createElement("col", { key: r.toString(), width: ee(t) }), bt = (ke = e.cells) != null && ke.footerCell || m.current.some((t) => {
456
+ }, ye = /* @__PURE__ */ l.createElement(rl, null, e.pager ? /* @__PURE__ */ l.createElement(e.pager, { ...he }) : /* @__PURE__ */ l.createElement(kt, { className: f(u.pager({})), ...he })), gt = (t, r) => /* @__PURE__ */ l.createElement("col", { key: r.toString(), width: te(t) }), bt = (Ne = e.cells) != null && Ne.footerCell || m.current.some((t) => {
457
457
  var r;
458
458
  return !!(t.footerCell || (r = t.cells) != null && r.footerCell);
459
459
  }) ? /* @__PURE__ */ l.createElement(
@@ -472,14 +472,14 @@ const hl = l.forwardRef((e, te) => {
472
472
  ),
473
473
  cols: b.map(gt)
474
474
  }
475
- ) : null, ye = /* @__PURE__ */ l.createElement(ll, null, b.map((t, r) => /* @__PURE__ */ l.createElement(
475
+ ) : null, Ce = /* @__PURE__ */ l.createElement(ll, null, b.map((t, r) => /* @__PURE__ */ l.createElement(
476
476
  "col",
477
477
  {
478
478
  key: r.toString(),
479
479
  className: Be(t.field, e.sort) ? f(u.sorted({})) : void 0,
480
- width: ee(t)
480
+ width: te(t)
481
481
  }
482
- ))), Ce = e.reorderable || K, { detail: yl, cells: Cl, rows: wl, ...we } = e, Ee = /* @__PURE__ */ l.createElement(
482
+ ))), we = e.reorderable || K, { detail: yl, cells: Cl, rows: wl, ...Ee } = e, Ie = /* @__PURE__ */ l.createElement(
483
483
  "tbody",
484
484
  {
485
485
  role: "rowgroup",
@@ -488,7 +488,7 @@ const hl = l.forwardRef((e, te) => {
488
488
  },
489
489
  Q
490
490
  );
491
- let X = Ee;
491
+ let X = Ie;
492
492
  if (N && (X = /* @__PURE__ */ l.createElement(
493
493
  fl,
494
494
  {
@@ -496,13 +496,13 @@ const hl = l.forwardRef((e, te) => {
496
496
  columns: m.current,
497
497
  rowReorderSettings: e.rowReorderable
498
498
  },
499
- Ee
499
+ Ie
500
500
  )), e.scrollable === "none")
501
501
  return /* @__PURE__ */ l.createElement(
502
502
  Me,
503
503
  {
504
- gridRef: te,
505
- gridProps: we,
504
+ gridRef: le,
505
+ gridProps: Ee,
506
506
  columnsRef: $(),
507
507
  columnsMapRef: G,
508
508
  dataRef: g,
@@ -521,31 +521,31 @@ const hl = l.forwardRef((e, te) => {
521
521
  "aria-label": e.ariaLabel,
522
522
  ...Ke
523
523
  },
524
- ie,
525
- de,
524
+ oe,
525
+ ce,
526
526
  /* @__PURE__ */ l.createElement(
527
527
  al,
528
528
  {
529
529
  selectable: e.selectable,
530
530
  className: f(u.table({ size: E }))
531
531
  },
532
- ye,
533
- ce,
532
+ Ce,
533
+ se,
534
534
  /* @__PURE__ */ l.createElement($e, { rowReorderable: N }, X)
535
535
  ),
536
- fe && /* @__PURE__ */ l.createElement(ze, null, M.length ? M : /* @__PURE__ */ l.createElement(Oe, null)),
537
- Ce && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(We, null), /* @__PURE__ */ l.createElement(je, null))
536
+ ge && /* @__PURE__ */ l.createElement(ze, null, M.length ? M : /* @__PURE__ */ l.createElement(Oe, null)),
537
+ we && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(We, null), /* @__PURE__ */ l.createElement(je, null))
538
538
  )),
539
- oe,
540
- e.pageable && he,
539
+ de,
540
+ e.pageable && ye,
541
541
  /* @__PURE__ */ l.createElement(Qe, { loader: e.loader, showLoader: e.showLoader })
542
542
  );
543
543
  let W = e.style || {};
544
544
  return D && (W.height || (W = Object.assign({}, W, { height: "450px" }))), /* @__PURE__ */ l.createElement(
545
545
  Me,
546
546
  {
547
- gridRef: te,
548
- gridProps: we,
547
+ gridRef: le,
548
+ gridProps: Ee,
549
549
  columnsRef: $(),
550
550
  columnsMapRef: G,
551
551
  dataRef: g,
@@ -570,8 +570,8 @@ const hl = l.forwardRef((e, te) => {
570
570
  "aria-label": e.ariaLabel,
571
571
  ...Ke
572
572
  },
573
- ie,
574
- de,
573
+ oe,
574
+ ce,
575
575
  /* @__PURE__ */ l.createElement(
576
576
  "div",
577
577
  {
@@ -582,7 +582,7 @@ const hl = l.forwardRef((e, te) => {
582
582
  id: R,
583
583
  "aria-label": _.toLanguageString(Je, sl[Je])
584
584
  },
585
- ce,
585
+ se,
586
586
  /* @__PURE__ */ l.createElement("div", { className: f(u.container({})), role: "presentation" }, /* @__PURE__ */ l.createElement(il, null, /* @__PURE__ */ l.createElement("div", { className: f(u.content({})), role: "presentation" }, /* @__PURE__ */ l.createElement("div", { className: f(u.tableWrap({})), role: "presentation" }, /* @__PURE__ */ l.createElement(
587
587
  nl,
588
588
  {
@@ -594,9 +594,9 @@ const hl = l.forwardRef((e, te) => {
594
594
  ),
595
595
  tableStyle: { userSelect: st }
596
596
  },
597
- ye,
597
+ Ce,
598
598
  /* @__PURE__ */ l.createElement($e, { rowReorderable: N }, X)
599
- ), fe && /* @__PURE__ */ l.createElement(ze, null, M.length ? M : /* @__PURE__ */ l.createElement(Oe, null))), D && /* @__PURE__ */ l.createElement(
599
+ ), ge && /* @__PURE__ */ l.createElement(ze, null, M.length ? M : /* @__PURE__ */ l.createElement(Oe, null))), D && /* @__PURE__ */ l.createElement(
600
600
  "div",
601
601
  {
602
602
  className: f(u.heightContainer({})),
@@ -605,11 +605,11 @@ const hl = l.forwardRef((e, te) => {
605
605
  /* @__PURE__ */ l.createElement(ol, { isVirtualScroll: D })
606
606
  )))),
607
607
  bt,
608
- Ce && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(We, null), /* @__PURE__ */ l.createElement(je, null)),
608
+ we && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(We, null), /* @__PURE__ */ l.createElement(je, null)),
609
609
  /* @__PURE__ */ l.createElement(tl, null)
610
610
  ),
611
- oe,
612
- e.pageable && he,
611
+ de,
612
+ e.pageable && ye,
613
613
  /* @__PURE__ */ l.createElement(Qe, { loader: e.loader, showLoader: e.showLoader })
614
614
  ))
615
615
  );
@@ -6,4 +6,4 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  "use client";
9
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("react"),L=require("@progress/kendo-data-query"),Y=require("./GridColumnMenuItem.js"),Z=require("./GridColumnMenuItemGroup.js"),$=require("./GridColumnMenuItemContent.js"),ee=require("@progress/kendo-react-intl"),i=require("../filterCommon.js"),c=require("../messages/index.js"),te=require("./GridColumnMenuFilterUI.js"),T=require("@progress/kendo-react-buttons"),re=require("@progress/kendo-svg-icons");function le(e){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const f in e)if(f!=="default"){const F=Object.getOwnPropertyDescriptor(e,f);Object.defineProperty(u,f,F.get?F:{enumerable:!0,get:()=>e[f]})}}return u.default=e,Object.freeze(u)}const l=le(X),I=e=>e||{filters:[],logic:"and"},v=(e,u)=>I(u).filters.filter(n=>L.isCompositeFilterDescriptor(n)?n.filters&&n.filters.length&&n.filters.length<=2&&!n.filters.find(C=>L.isCompositeFilterDescriptor(C)||C.field!==e):!1)[0]||null,ne=(e,u)=>!!v(e,u),ie=e=>{const u=l.useCallback(()=>{let t;if(e.column&&e.column.field){const a=i.getFilterType(e.column.filter),r=i.getDefaultOperator(e.filterOperators,a);t=v(e.column.field,e.filter),t=t?{...t,filters:t.filters.map(o=>({...o}))}:{logic:"and",filters:[{field:e.column.field,operator:r,value:i.IsUnaryFilter(r)?null:void 0},{field:e.column.field,operator:r,value:i.IsUnaryFilter(r)?null:void 0}]},t.filters.filter(o=>o.field===e.column.field).length===1&&t.filters.splice(1,0,{field:e.column.field,operator:r})}return t},[e.column]),[f,F]=l.useState(e.expanded||!1),[n,C]=l.useState(u()),S=()=>e.expanded!==void 0,_=()=>{const t=S(),a=!(t?e.expanded:f);e.onExpandChange&&e.onExpandChange(a),t||F(a)},j=t=>{p(0,t)},R=t=>{p(1,t)},p=(t,a)=>{const r=n.filters.map((o,s)=>s===t?{...o,value:a.value,operator:a.operator}:o);C({...n,filters:r})},V=t=>{C({...n,logic:t.target.value.operator})},w=t=>{if(t.preventDefault(),!e.onFilterChange)return;const a=e.column.field,r=I(e.filter),o=v(a,e.filter),s=r.filters.filter(g=>g!==o);s.length?e.onFilterChange({...r,filters:s},t):e.onFilterChange(null,t),e.onCloseMenu&&e.onCloseMenu()},b=()=>({...n,filters:n.filters.filter(t=>t.value!==void 0&&t.value!==null&&t.value!==""||t.value===null&&t.operator)}),N=t=>{if(t.preventDefault(),!e.onFilterChange)return;const a=e.column.field,r=I(e.filter),o=v(a,e.filter),s=b();let g=null;if(o&&s.filters.length>0){const M=r.filters.map(y=>y===o?s:y);g={...r,filters:M}}else if(s.filters.length===0){const M=r.filters.filter(y=>y!==o);M.length&&(g={...r,filters:M})}else g={...r,filters:[...r.filters,s]};e.onFilterChange(g,t),e.onCloseMenu&&e.onCloseMenu()},{column:h,filterUI:z,hideSecondFilter:x,filterOperators:A}=e,d=ee.useLocalization();if(!h||!h.field)return l.createElement("div",null);const G=i.getFilterType(h.filter),H=x!==void 0?x:i.defaultHideSecondFilter[G],m=n.filters,O=i.operatorMap(A[G],d),k=i.operatorMap(i.booleanFilterValues,d),Q={field:h.field,value:m[0].value,operator:m[0].operator,operators:O,booleanValues:k,onChange:j,filterType:G},J={field:h.field,value:m[1].value,operator:m[1].operator,operators:O,booleanValues:k,onChange:R,filterType:G},D=n.logic,q=i.operatorMap(i.filterLogicList,d),E={value:q.find(t=>t.operator===(D===null?"":D)),onChange:V,data:q},B=z,P={firstFilterProps:Q,secondFilterProps:J,logicData:E.data,logicValue:E.value,onLogicChange:E.onChange,hideSecondFilter:H},K=b().filters.length!==0||i.IsUnaryFilter(m[0].operator)||i.IsUnaryFilter(m[1].operator),W=S()?e.expanded:f,U=e.alwaysExpand;return l.createElement(Z.GridColumnMenuItemGroup,null,!U&&l.createElement(Y.GridColumnMenuItem,{title:d.toLanguageString(c.filterTitle,c.messages[c.filterTitle]),iconClass:"k-i-filter",svgIcon:re.filterIcon,onClick:_}),l.createElement($.GridColumnMenuItemContent,{show:U||!!W},l.createElement("form",{className:"k-filter-menu",onSubmit:N,onReset:w},l.createElement("div",{className:"k-filter-menu-container"},B?l.createElement(B,{...P}):l.createElement(te.GridColumnMenuFilterUI,{...P}),l.createElement("div",{className:"k-actions k-actions-stretched"},l.createElement(T.Button,{themeColor:"primary",disabled:!K},d.toLanguageString(c.filterSubmitButton,c.messages[c.filterSubmitButton])),l.createElement(T.Button,{type:"reset"},d.toLanguageString(c.filterClearButton,c.messages[c.filterClearButton])))))))};exports.GridColumnMenuFilter=ie;exports.filterGroupByField=v;exports.isColumnMenuFilterActive=ne;exports.rootFilterOrDefault=I;
9
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("react"),L=require("@progress/kendo-data-query"),Y=require("./GridColumnMenuItem.js"),Z=require("./GridColumnMenuItemGroup.js"),$=require("./GridColumnMenuItemContent.js"),ee=require("@progress/kendo-react-intl"),n=require("../filterCommon.js"),c=require("../messages/index.js"),te=require("./GridColumnMenuFilterUI.js"),T=require("@progress/kendo-react-buttons"),re=require("@progress/kendo-svg-icons");function le(e){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const f in e)if(f!=="default"){const F=Object.getOwnPropertyDescriptor(e,f);Object.defineProperty(u,f,F.get?F:{enumerable:!0,get:()=>e[f]})}}return u.default=e,Object.freeze(u)}const l=le(X),I=e=>e||{filters:[],logic:"and"},v=(e,u)=>I(u).filters.filter(i=>L.isCompositeFilterDescriptor(i)?i.filters&&i.filters.length&&!i.filters.find(C=>L.isCompositeFilterDescriptor(C)||C.field!==e):!1)[0]||null,ne=(e,u)=>!!v(e,u),ie=e=>{const u=l.useCallback(()=>{let t;if(e.column&&e.column.field){const a=n.getFilterType(e.column.filter),r=n.getDefaultOperator(e.filterOperators,a);t=v(e.column.field,e.filter),t=t?{...t,filters:t.filters.map(o=>({...o}))}:{logic:"and",filters:[{field:e.column.field,operator:r,value:n.IsUnaryFilter(r)?null:void 0},{field:e.column.field,operator:r,value:n.IsUnaryFilter(r)?null:void 0}]},t.filters.filter(o=>o.field===e.column.field).length===1&&t.filters.splice(1,0,{field:e.column.field,operator:r})}return t},[e.column]),[f,F]=l.useState(e.expanded||!1),[i,C]=l.useState(u()),S=()=>e.expanded!==void 0,_=()=>{const t=S(),a=!(t?e.expanded:f);e.onExpandChange&&e.onExpandChange(a),t||F(a)},j=t=>{p(0,t)},R=t=>{p(1,t)},p=(t,a)=>{const r=i.filters.map((o,s)=>s===t?{...o,value:a.value,operator:a.operator}:o);C({...i,filters:r})},V=t=>{C({...i,logic:t.target.value.operator})},w=t=>{if(t.preventDefault(),!e.onFilterChange)return;const a=e.column.field,r=I(e.filter),o=v(a,e.filter),s=r.filters.filter(g=>g!==o);s.length?e.onFilterChange({...r,filters:s},t):e.onFilterChange(null,t),e.onCloseMenu&&e.onCloseMenu()},b=()=>({...i,filters:i.filters.filter(t=>t.value!==void 0&&t.value!==null&&t.value!==""||t.value===null&&t.operator)}),N=t=>{if(t.preventDefault(),!e.onFilterChange)return;const a=e.column.field,r=I(e.filter),o=v(a,e.filter),s=b();let g=null;if(o&&s.filters.length>0){const M=r.filters.map(y=>y===o?s:y);g={...r,filters:M}}else if(s.filters.length===0){const M=r.filters.filter(y=>y!==o);M.length&&(g={...r,filters:M})}else g={...r,filters:[...r.filters,s]};e.onFilterChange(g,t),e.onCloseMenu&&e.onCloseMenu()},{column:h,filterUI:z,hideSecondFilter:x,filterOperators:A}=e,d=ee.useLocalization();if(!h||!h.field)return l.createElement("div",null);const G=n.getFilterType(h.filter),H=x!==void 0?x:n.defaultHideSecondFilter[G],m=i.filters,O=n.operatorMap(A[G],d),k=n.operatorMap(n.booleanFilterValues,d),Q={field:h.field,value:m[0].value,operator:m[0].operator,operators:O,booleanValues:k,onChange:j,filterType:G},J={field:h.field,value:m[1].value,operator:m[1].operator,operators:O,booleanValues:k,onChange:R,filterType:G},D=i.logic,q=n.operatorMap(n.filterLogicList,d),E={value:q.find(t=>t.operator===(D===null?"":D)),onChange:V,data:q},B=z,P={firstFilterProps:Q,secondFilterProps:J,logicData:E.data,logicValue:E.value,onLogicChange:E.onChange,hideSecondFilter:H},K=b().filters.length!==0||n.IsUnaryFilter(m[0].operator)||n.IsUnaryFilter(m[1].operator),W=S()?e.expanded:f,U=e.alwaysExpand;return l.createElement(Z.GridColumnMenuItemGroup,null,!U&&l.createElement(Y.GridColumnMenuItem,{title:d.toLanguageString(c.filterTitle,c.messages[c.filterTitle]),iconClass:"k-i-filter",svgIcon:re.filterIcon,onClick:_}),l.createElement($.GridColumnMenuItemContent,{show:U||!!W},l.createElement("form",{className:"k-filter-menu",onSubmit:N,onReset:w},l.createElement("div",{className:"k-filter-menu-container"},B?l.createElement(B,{...P}):l.createElement(te.GridColumnMenuFilterUI,{...P}),l.createElement("div",{className:"k-actions k-actions-stretched"},l.createElement(T.Button,{themeColor:"primary",disabled:!K},d.toLanguageString(c.filterSubmitButton,c.messages[c.filterSubmitButton])),l.createElement(T.Button,{type:"reset"},d.toLanguageString(c.filterClearButton,c.messages[c.filterClearButton])))))))};exports.GridColumnMenuFilter=ie;exports.filterGroupByField=v;exports.isColumnMenuFilterActive=ne;exports.rootFilterOrDefault=I;
@@ -12,19 +12,19 @@ import { GridColumnMenuItem as te } from "./GridColumnMenuItem.mjs";
12
12
  import { GridColumnMenuItemGroup as le } from "./GridColumnMenuItemGroup.mjs";
13
13
  import { GridColumnMenuItemContent as re } from "./GridColumnMenuItemContent.mjs";
14
14
  import { useLocalization as ie } from "@progress/kendo-react-intl";
15
- import { getFilterType as w, getDefaultOperator as ne, IsUnaryFilter as h, operatorMap as x, booleanFilterValues as oe, filterLogicList as ae, defaultHideSecondFilter as ce } from "../filterCommon.mjs";
15
+ import { getFilterType as w, getDefaultOperator as oe, IsUnaryFilter as h, operatorMap as x, booleanFilterValues as ne, filterLogicList as ae, defaultHideSecondFilter as ce } from "../filterCommon.mjs";
16
16
  import { filterTitle as N, messages as p, filterSubmitButton as _, filterClearButton as z } from "../messages/index.mjs";
17
17
  import { GridColumnMenuFilterUI as se } from "./GridColumnMenuFilterUI.mjs";
18
18
  import { Button as H } from "@progress/kendo-react-buttons";
19
19
  import { filterIcon as ue } from "@progress/kendo-svg-icons";
20
- const S = (e) => e || { filters: [], logic: "and" }, v = (e, f) => S(f).filters.filter((i) => T(i) ? i.filters && i.filters.length && i.filters.length <= 2 && !i.filters.find((d) => T(d) || d.field !== e) : !1)[0] || null, xe = (e, f) => !!v(e, f), pe = (e) => {
20
+ const S = (e) => e || { filters: [], logic: "and" }, v = (e, f) => S(f).filters.filter((i) => T(i) ? i.filters && i.filters.length && !i.filters.find((d) => T(d) || d.field !== e) : !1)[0] || null, xe = (e, f) => !!v(e, f), pe = (e) => {
21
21
  const f = r.useCallback(() => {
22
22
  let t;
23
23
  if (e.column && e.column.field) {
24
- const o = w(e.column.filter), l = ne(e.filterOperators, o);
24
+ const n = w(e.column.filter), l = oe(e.filterOperators, n);
25
25
  t = v(e.column.field, e.filter), t = t ? {
26
26
  ...t,
27
- filters: t.filters.map((n) => ({ ...n }))
27
+ filters: t.filters.map((o) => ({ ...o }))
28
28
  } : {
29
29
  logic: "and",
30
30
  filters: [
@@ -39,22 +39,22 @@ const S = (e) => e || { filters: [], logic: "and" }, v = (e, f) => S(f).filters.
39
39
  value: h(l) ? null : void 0
40
40
  }
41
41
  ]
42
- }, t.filters.filter((n) => n.field === e.column.field).length === 1 && t.filters.splice(1, 0, { field: e.column.field, operator: l });
42
+ }, t.filters.filter((o) => o.field === e.column.field).length === 1 && t.filters.splice(1, 0, { field: e.column.field, operator: l });
43
43
  }
44
44
  return t;
45
45
  }, [e.column]), [E, M] = r.useState(e.expanded || !1), [i, d] = r.useState(f()), I = () => e.expanded !== void 0, R = () => {
46
- const t = I(), o = !(t ? e.expanded : E);
47
- e.onExpandChange && e.onExpandChange(o), t || M(o);
46
+ const t = I(), n = !(t ? e.expanded : E);
47
+ e.onExpandChange && e.onExpandChange(n), t || M(n);
48
48
  }, A = (t) => {
49
49
  y(0, t);
50
50
  }, j = (t) => {
51
51
  y(1, t);
52
- }, y = (t, o) => {
53
- const l = i.filters.map((n, a) => a === t ? {
54
- ...n,
55
- value: o.value,
56
- operator: o.operator
57
- } : n);
52
+ }, y = (t, n) => {
53
+ const l = i.filters.map((o, a) => a === t ? {
54
+ ...o,
55
+ value: n.value,
56
+ operator: n.operator
57
+ } : o);
58
58
  d({
59
59
  ...i,
60
60
  filters: l
@@ -67,7 +67,7 @@ const S = (e) => e || { filters: [], logic: "and" }, v = (e, f) => S(f).filters.
67
67
  }, J = (t) => {
68
68
  if (t.preventDefault(), !e.onFilterChange)
69
69
  return;
70
- const o = e.column.field, l = S(e.filter), n = v(o, e.filter), a = l.filters.filter((u) => u !== n);
70
+ const n = e.column.field, l = S(e.filter), o = v(n, e.filter), a = l.filters.filter((u) => u !== o);
71
71
  a.length ? e.onFilterChange({ ...l, filters: a }, t) : e.onFilterChange(null, t), e.onCloseMenu && e.onCloseMenu();
72
72
  }, L = () => ({
73
73
  ...i,
@@ -75,16 +75,16 @@ const S = (e) => e || { filters: [], logic: "and" }, v = (e, f) => S(f).filters.
75
75
  }), K = (t) => {
76
76
  if (t.preventDefault(), !e.onFilterChange)
77
77
  return;
78
- const o = e.column.field, l = S(e.filter), n = v(o, e.filter), a = L();
78
+ const n = e.column.field, l = S(e.filter), o = v(n, e.filter), a = L();
79
79
  let u = null;
80
- if (n && a.filters.length > 0) {
81
- const F = l.filters.map((C) => C === n ? a : C);
80
+ if (o && a.filters.length > 0) {
81
+ const F = l.filters.map((C) => C === o ? a : C);
82
82
  u = {
83
83
  ...l,
84
84
  filters: F
85
85
  };
86
86
  } else if (a.filters.length === 0) {
87
- const F = l.filters.filter((C) => C !== n);
87
+ const F = l.filters.filter((C) => C !== o);
88
88
  F.length && (u = {
89
89
  ...l,
90
90
  filters: F
@@ -98,7 +98,7 @@ const S = (e) => e || { filters: [], logic: "and" }, v = (e, f) => S(f).filters.
98
98
  }, { column: m, filterUI: Q, hideSecondFilter: b, filterOperators: W } = e, c = ie();
99
99
  if (!m || !m.field)
100
100
  return /* @__PURE__ */ r.createElement("div", null);
101
- const g = w(m.filter), X = b !== void 0 ? b : ce[g], s = i.filters, k = x(W[g], c), D = x(oe, c), Y = {
101
+ const g = w(m.filter), X = b !== void 0 ? b : ce[g], s = i.filters, k = x(W[g], c), D = x(ne, c), Y = {
102
102
  field: m.field,
103
103
  value: s[0].value,
104
104
  operator: s[0].operator,