@box-kite/react 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,31 +5,32 @@ import r from "../box.mjs";
5
5
  import { a as i, n as a, o, r as s, t as c } from "../behavior.mjs";
6
6
  import { t as l } from "../identity.mjs";
7
7
  import { Path as u, Svg as d } from "./svg.mjs";
8
- import f from "./baseSvg.mjs";
9
- import p from "./button.mjs";
10
- import m from "./flex.mjs";
11
- import h from "./checkbox.mjs";
12
- import g from "./overlay.mjs";
13
- import _ from "./presence.mjs";
14
- import v from "./visuallyHidden.mjs";
15
- import y from "./textbox.mjs";
16
- import b from "./grid.mjs";
17
- import x from "./dropdown.mjs";
18
- import { Span as S } from "./semantics.mjs";
19
- import C, { Fragment as w, createContext as T, forwardRef as E, memo as D, useCallback as O, useContext as ee, useEffect as k, useImperativeHandle as A, useLayoutEffect as j, useMemo as M, useRef as N, useState as P, useSyncExternalStore as F } from "react";
8
+ import f from "./button.mjs";
9
+ import p from "./flex.mjs";
10
+ import m from "./checkbox.mjs";
11
+ import h from "./overlay.mjs";
12
+ import g from "./presence.mjs";
13
+ import _ from "./visuallyHidden.mjs";
14
+ import v from "./textbox.mjs";
15
+ import y from "./grid.mjs";
16
+ import b from "./dropdown.mjs";
17
+ import { Span as x } from "./semantics.mjs";
18
+ import S from "./popover.mjs";
19
+ import C from "./switch.mjs";
20
+ import w, { Fragment as T, createContext as E, forwardRef as ee, memo as D, useCallback as O, useContext as k, useEffect as A, useImperativeHandle as j, useLayoutEffect as M, useMemo as te, useRef as N, useState as P, useSyncExternalStore as F } from "react";
20
21
  import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
21
- import { useSyncExternalStore as te } from "use-sync-external-store/shim";
22
+ import { useSyncExternalStore as ne } from "use-sync-external-store/shim";
22
23
  //#region src/components/dataGrid/components/dataGridBottomBarSelection.tsx
23
- function ne(e) {
24
+ function re(e) {
24
25
  let { grid: t } = e, n = t.selectedRows.size, i = t.isSelectionView;
25
- return /* @__PURE__ */ R(m, {
26
+ return /* @__PURE__ */ R(p, {
26
27
  component: `${t.componentName}.bottomBar.selection`,
27
28
  children: [
28
29
  /* @__PURE__ */ L(r, {
29
30
  component: `${t.componentName}.bottomBar.info`,
30
31
  children: t.localeText.selectedCount(n, t.hiddenSelectedCount)
31
32
  }),
32
- t.canShowSelection && (n > 0 || i) && /* @__PURE__ */ L(p, {
33
+ t.canShowSelection && (n > 0 || i) && /* @__PURE__ */ L(f, {
33
34
  type: "button",
34
35
  component: `${t.componentName}.bottomBar.action`,
35
36
  variant: { pressed: i },
@@ -37,7 +38,7 @@ function ne(e) {
37
38
  onClick: t.toggleSelectionView,
38
39
  children: t.localeText.showSelected
39
40
  }),
40
- n > 0 && /* @__PURE__ */ R(p, {
41
+ n > 0 && /* @__PURE__ */ R(f, {
41
42
  type: "button",
42
43
  component: `${t.componentName}.bottomBar.action`,
43
44
  onClick: t.clearSelection,
@@ -52,39 +53,39 @@ function ne(e) {
52
53
  }
53
54
  //#endregion
54
55
  //#region src/components/dataGrid/components/dataGridPagination.tsx
55
- function re(e) {
56
+ function ie(e) {
56
57
  let { grid: t } = e, { pagination: n } = t, i = n.state, a = O(() => n.firstPage(), [n]), o = O(() => n.prevPage(), [n]), s = O(() => n.nextPage(), [n]), c = O(() => n.lastPage(), [n]);
57
58
  if (!i) return null;
58
59
  let { canGoPrev: l, canGoNext: u, totalPages: d } = n;
59
- return /* @__PURE__ */ R(m, {
60
+ return /* @__PURE__ */ R(p, {
60
61
  component: `${t.componentName}.bottomBar.pagination`,
61
62
  gap: .5,
62
63
  ai: "center",
63
64
  children: [
64
- /* @__PURE__ */ L(ie, {
65
+ /* @__PURE__ */ L(ae, {
65
66
  grid: t,
66
67
  pageSize: i.pageSize
67
68
  }),
68
- /* @__PURE__ */ L(oe, {
69
+ /* @__PURE__ */ L(se, {
69
70
  componentName: t.componentName,
70
71
  label: t.localeText.firstPage,
71
72
  onClick: a,
72
73
  disabled: !l,
73
- children: /* @__PURE__ */ L(le, {})
74
+ children: /* @__PURE__ */ L(de, {})
74
75
  }),
75
- /* @__PURE__ */ L(oe, {
76
+ /* @__PURE__ */ L(se, {
76
77
  componentName: t.componentName,
77
78
  label: t.localeText.previousPage,
78
79
  onClick: o,
79
80
  disabled: !l,
80
- children: /* @__PURE__ */ L(se, {})
81
+ children: /* @__PURE__ */ L(le, {})
81
82
  }),
82
- /* @__PURE__ */ R(m, {
83
+ /* @__PURE__ */ R(p, {
83
84
  ai: "center",
84
85
  gap: 1.5,
85
86
  px: 2,
86
87
  userSelect: "none",
87
- children: [/* @__PURE__ */ L(ae, {
88
+ children: [/* @__PURE__ */ L(oe, {
88
89
  grid: t,
89
90
  page: i.page,
90
91
  totalPages: d
@@ -95,27 +96,27 @@ function re(e) {
95
96
  children: t.localeText.pageCount(d)
96
97
  })]
97
98
  }),
98
- /* @__PURE__ */ L(oe, {
99
+ /* @__PURE__ */ L(se, {
99
100
  componentName: t.componentName,
100
101
  label: t.localeText.nextPage,
101
102
  onClick: s,
102
103
  disabled: !u,
103
- children: /* @__PURE__ */ L(ce, {})
104
+ children: /* @__PURE__ */ L(ue, {})
104
105
  }),
105
- /* @__PURE__ */ L(oe, {
106
+ /* @__PURE__ */ L(se, {
106
107
  componentName: t.componentName,
107
108
  label: t.localeText.lastPage,
108
109
  onClick: c,
109
110
  disabled: !u,
110
- children: /* @__PURE__ */ L(ue, {})
111
+ children: /* @__PURE__ */ L(fe, {})
111
112
  })
112
113
  ]
113
114
  });
114
115
  }
115
- re.displayName = "DataGridPagination";
116
- function ie({ grid: e, pageSize: t }) {
116
+ ie.displayName = "DataGridPagination";
117
+ function ae({ grid: e, pageSize: t }) {
117
118
  let n = e.pagination.pageSizeOptions;
118
- return !n || n.length === 0 ? null : /* @__PURE__ */ L(m, {
119
+ return !n || n.length === 0 ? null : /* @__PURE__ */ L(p, {
119
120
  ai: "center",
120
121
  gap: 1,
121
122
  me: 1,
@@ -137,7 +138,7 @@ function ie({ grid: e, pageSize: t }) {
137
138
  })
138
139
  });
139
140
  }
140
- function ae({ grid: e, page: t, totalPages: n }) {
141
+ function oe({ grid: e, page: t, totalPages: n }) {
141
142
  let [r, i] = P(String(t)), [a, o] = P(t);
142
143
  t !== a && (o(t), i(String(t)));
143
144
  let s = O(() => {
@@ -145,7 +146,7 @@ function ae({ grid: e, page: t, totalPages: n }) {
145
146
  }, [e, r]), c = O((e) => {
146
147
  e.key === "Enter" ? s() : e.key === "Escape" && i(String(t));
147
148
  }, [s, t]);
148
- return /* @__PURE__ */ L(y, {
149
+ return /* @__PURE__ */ L(v, {
149
150
  type: "number",
150
151
  variant: "compact",
151
152
  value: r,
@@ -161,9 +162,9 @@ function ae({ grid: e, page: t, totalPages: n }) {
161
162
  }
162
163
  });
163
164
  }
164
- function oe(e) {
165
+ function se(e) {
165
166
  let { componentName: t, label: n, onClick: r, disabled: i, children: a } = e;
166
- return /* @__PURE__ */ L(p, {
167
+ return /* @__PURE__ */ L(f, {
167
168
  component: `${t}.bottomBar.pagination.button`,
168
169
  props: {
169
170
  "aria-label": n,
@@ -183,7 +184,7 @@ function oe(e) {
183
184
  children: a
184
185
  });
185
186
  }
186
- function z(e) {
187
+ function ce(e) {
187
188
  return /* @__PURE__ */ L(d, {
188
189
  viewBox: "0 0 24 24",
189
190
  width: "14",
@@ -196,45 +197,45 @@ function z(e) {
196
197
  children: /* @__PURE__ */ L(u, { d: e.d })
197
198
  });
198
199
  }
199
- function se() {
200
- return /* @__PURE__ */ L(z, { d: "M15 18l-6-6 6-6" });
201
- }
202
- function ce() {
203
- return /* @__PURE__ */ L(z, { d: "M9 18l6-6-6-6" });
204
- }
205
200
  function le() {
206
- return /* @__PURE__ */ L(z, { d: "M18 18l-6-6 6-6M11 18l-6-6 6-6" });
201
+ return /* @__PURE__ */ L(ce, { d: "M15 18l-6-6 6-6" });
207
202
  }
208
203
  function ue() {
209
- return /* @__PURE__ */ L(z, { d: "M6 18l6-6-6-6M13 18l6-6-6-6" });
204
+ return /* @__PURE__ */ L(ce, { d: "M9 18l6-6-6-6" });
205
+ }
206
+ function de() {
207
+ return /* @__PURE__ */ L(ce, { d: "M18 18l-6-6 6-6M11 18l-6-6 6-6" });
208
+ }
209
+ function fe() {
210
+ return /* @__PURE__ */ L(ce, { d: "M6 18l6-6-6-6M13 18l6-6-6-6" });
210
211
  }
211
212
  //#endregion
212
213
  //#region src/components/dataGrid/components/dataGridBottomBar.tsx
213
- function de(e) {
214
+ function pe(e) {
214
215
  let { grid: t } = e, { pagination: n, filter: i } = t;
215
216
  if (n.state) {
216
217
  let { totalItems: e, startItem: i, endItem: a } = n;
217
- return /* @__PURE__ */ R(m, {
218
+ return /* @__PURE__ */ R(p, {
218
219
  component: `${t.componentName}.bottomBar`,
219
220
  children: [
220
221
  /* @__PURE__ */ L(r, {
221
222
  component: `${t.componentName}.bottomBar.info`,
222
223
  children: t.localeText.pageRowRange(i, a, e)
223
224
  }),
224
- t.props.def.rowSelection && /* @__PURE__ */ L(ne, { grid: t }),
225
- /* @__PURE__ */ L(re, { grid: t })
225
+ t.props.def.rowSelection && /* @__PURE__ */ L(re, { grid: t }),
226
+ /* @__PURE__ */ L(ie, { grid: t })
226
227
  ]
227
228
  });
228
229
  }
229
230
  let { filtered: a, total: o } = i.filterStats;
230
- return /* @__PURE__ */ R(m, {
231
+ return /* @__PURE__ */ R(p, {
231
232
  component: `${t.componentName}.bottomBar`,
232
233
  children: [
233
234
  /* @__PURE__ */ L(r, {
234
235
  component: `${t.componentName}.bottomBar.info`,
235
236
  children: t.localeText.rowCount(a, o)
236
237
  }),
237
- i.hasActiveFilters && /* @__PURE__ */ R(p, {
238
+ i.hasActiveFilters && /* @__PURE__ */ R(f, {
238
239
  type: "button",
239
240
  component: `${t.componentName}.bottomBar.clearFilters`,
240
241
  onClick: i.clearAllFilters,
@@ -244,19 +245,19 @@ function de(e) {
244
245
  children: "✕"
245
246
  }), t.localeText.clearFilters]
246
247
  }),
247
- t.props.def.rowSelection && /* @__PURE__ */ L(ne, { grid: t })
248
+ t.props.def.rowSelection && /* @__PURE__ */ L(re, { grid: t })
248
249
  ]
249
250
  });
250
251
  }
251
252
  //#endregion
252
253
  //#region src/components/dataGrid/gridNavigationContext.ts
253
- var fe = T(null);
254
- function B() {
255
- return ee(fe);
254
+ var me = E(null);
255
+ function z() {
256
+ return k(me);
256
257
  }
257
- var pe = () => () => {};
258
- function me(e, t, n) {
259
- let r = F(e?.activeCell.subscribe ?? pe, () => !!e?.activeCell.isActive(t, n), () => !!e?.activeCell.isActive(t, n));
258
+ var he = () => () => {};
259
+ function B(e, t, n) {
260
+ let r = F(e?.activeCell.subscribe ?? he, () => !!e?.activeCell.isActive(t, n), () => !!e?.activeCell.isActive(t, n));
260
261
  return e ? {
261
262
  ...e.cellProps(t, n),
262
263
  tabIndex: r ? 0 : -1
@@ -264,7 +265,7 @@ function me(e, t, n) {
264
265
  }
265
266
  //#endregion
266
267
  //#region src/components/dataGrid/models/viewportModel.ts
267
- var he = class e {
268
+ var ge = class e {
268
269
  grid;
269
270
  static DEFAULT_VISIBLE_ROWS_COUNT = 10;
270
271
  static ROWS_AHEAD = 12;
@@ -334,7 +335,7 @@ var he = class e {
334
335
  viewHeight: this.viewHeight
335
336
  };
336
337
  }
337
- }, ge = class {
338
+ }, _e = class {
338
339
  row;
339
340
  column;
340
341
  listeners = /* @__PURE__ */ new Set();
@@ -354,27 +355,27 @@ var he = class e {
354
355
  function V(e, t) {
355
356
  return JSON.stringify([e, t]);
356
357
  }
357
- var _e = 1e3;
358
- function ve(e) {
358
+ var ve = 1e3;
359
+ function ye(e) {
359
360
  return typeof e == "number" ? "number" : typeof e == "boolean" ? "checkbox" : "text";
360
361
  }
361
- function ye(e, t) {
362
+ function be(e, t) {
362
363
  if (e === "text") return t;
363
364
  if (e !== "number" || t.trim() === "") return;
364
365
  let n = Number(t);
365
366
  return Number.isFinite(n) ? n : void 0;
366
367
  }
367
- var be = /* @__PURE__ */ new Set([
368
+ var xe = /* @__PURE__ */ new Set([
368
369
  "true",
369
370
  "1",
370
371
  "yes"
371
- ]), xe = /* @__PURE__ */ new Set([
372
+ ]), Se = /* @__PURE__ */ new Set([
372
373
  "false",
373
374
  "0",
374
375
  "no",
375
376
  ""
376
377
  ]);
377
- function Se(e, t, n) {
378
+ function Ce(e, t, n) {
378
379
  if (e.type === "number") {
379
380
  if (n.trim() === "") return { value: null };
380
381
  let e = Number(n);
@@ -382,7 +383,7 @@ function Se(e, t, n) {
382
383
  }
383
384
  if (e.type === "checkbox") {
384
385
  let e = n.trim().toLowerCase();
385
- return be.has(e) ? { value: !0 } : xe.has(e) ? { value: !1 } : void 0;
386
+ return xe.has(e) ? { value: !0 } : Se.has(e) ? { value: !1 } : void 0;
386
387
  }
387
388
  if (e.type === "select") {
388
389
  let e = t.find((e) => String(e.value) === n);
@@ -390,10 +391,10 @@ function Se(e, t, n) {
390
391
  }
391
392
  return { value: n };
392
393
  }
393
- function Ce(e) {
394
+ function we(e) {
394
395
  return e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey;
395
396
  }
396
- var we = class {
397
+ var Te = class {
397
398
  grid;
398
399
  constructor(e) {
399
400
  this.grid = e;
@@ -418,7 +419,7 @@ var we = class {
418
419
  }
419
420
  editorFor(e, t) {
420
421
  let { editor: n } = e.def;
421
- return typeof n == "object" ? n : n ? { type: n } : { type: ve(t) };
422
+ return typeof n == "object" ? n : n ? { type: n } : { type: ye(t) };
422
423
  }
423
424
  isEditing(e, t) {
424
425
  return this._active?.rowKey === e && this._active.columnKey === t;
@@ -443,7 +444,7 @@ var we = class {
443
444
  return !!this._active?.pending;
444
445
  }
445
446
  begin(e, t, n, r) {
446
- let i = r === void 0 ? void 0 : ye(this.editorFor(t, n).type, r);
447
+ let i = r === void 0 ? void 0 : be(this.editorFor(t, n).type, r);
447
448
  this.rejected.delete(V(e.key, t.key)), this._active = {
448
449
  row: e,
449
450
  rowKey: e.key,
@@ -529,7 +530,7 @@ var we = class {
529
530
  c++;
530
531
  continue;
531
532
  }
532
- let f = this.valueOf(l.key, u.key, l.data[u.key]), p = Se(this.editorFor(u, f), this.optionsFor(u, l), d), m = {
533
+ let f = this.valueOf(l.key, u.key, l.data[u.key]), p = Ce(this.editorFor(u, f), this.optionsFor(u, l), d), m = {
533
534
  rowKey: l.key,
534
535
  columnKey: u.key,
535
536
  row: l.data,
@@ -570,8 +571,8 @@ var we = class {
570
571
  });
571
572
  }
572
573
  nextEditable(e, t, n = !1) {
573
- let r = this.grid.flatRows.value, i = this.grid.columns.value.visibleLeafs, a = n ? -1 : 1, o = e * i.length + t + a, s = Math.min(r.length * i.length - 1, o + _e);
574
- for (let e = o; e >= Math.max(0, o - _e) && e <= s; e += a) {
574
+ let r = this.grid.flatRows.value, i = this.grid.columns.value.visibleLeafs, a = n ? -1 : 1, o = e * i.length + t + a, s = Math.min(r.length * i.length - 1, o + ve);
575
+ for (let e = o; e >= Math.max(0, o - ve) && e <= s; e += a) {
575
576
  let t = Math.floor(e / i.length), n = e % i.length, a = r[t], o = i[n];
576
577
  if (!(!o || a?.kind !== "row" || !this.isEditable(a, o))) return {
577
578
  row: t,
@@ -579,37 +580,7 @@ var we = class {
579
580
  };
580
581
  }
581
582
  }
582
- }, Te = Symbol("memo.unset"), Ee = class {
583
- action;
584
- deps;
585
- cache = Te;
586
- dependents = /* @__PURE__ */ new Set();
587
- wired = !1;
588
- constructor(e, t) {
589
- this.action = e, this.deps = t;
590
- }
591
- wire() {
592
- if (!this.wired) {
593
- this.wired = !0;
594
- for (let e of this.deps()) e.dependents.add(this);
595
- }
596
- }
597
- get value() {
598
- return this.wire(), this.cache === Te && (this.cache = this.action()), this.cache;
599
- }
600
- clear() {
601
- if (this.wire(), this.cache !== Te) {
602
- this.cache = Te;
603
- for (let e of this.dependents) e.clear();
604
- }
605
- }
606
- };
607
- function H(e, t = () => []) {
608
- return new Ee(e, t);
609
- }
610
- //#endregion
611
- //#region src/components/dataGrid/models/cellModel.ts
612
- var U = class {
583
+ }, H = class {
613
584
  grid;
614
585
  row;
615
586
  column;
@@ -676,7 +647,7 @@ var U = class {
676
647
  cancelEdit = () => {
677
648
  this.grid.edits.cancel();
678
649
  };
679
- }, De = class e {
650
+ }, Ee = class e {
680
651
  grid;
681
652
  parentRow;
682
653
  constructor(e, t) {
@@ -709,7 +680,7 @@ var U = class {
709
680
  get allRows() {
710
681
  return [];
711
682
  }
712
- }, W = class {
683
+ }, U = class {
713
684
  grid;
714
685
  rowIndex;
715
686
  constructor(e, t, n) {
@@ -735,9 +706,13 @@ var U = class {
735
706
  toggleDetail = () => {
736
707
  this.grid.toggleDetailRow(this.key);
737
708
  };
738
- _cells = H(() => this.grid.columns.value.visibleLeafs.map((e) => new U(this.grid, this, e)));
709
+ _cells;
739
710
  get cells() {
740
- return this._cells.value;
711
+ let e = this.grid.columns.value.visibleLeafs;
712
+ return this._cells?.leafs !== e && (this._cells = {
713
+ leafs: e,
714
+ cells: e.map((e) => new H(this.grid, this, e))
715
+ }), this._cells.cells;
741
716
  }
742
717
  get cellCount() {
743
718
  return this.cells.length;
@@ -758,7 +733,7 @@ var U = class {
758
733
  return this.grid.expandedDetailRows.has(this.key);
759
734
  }
760
735
  get flatRows() {
761
- return this.grid.props.def.rowDetail && this.expanded ? [this, new De(this.grid, this)] : [this];
736
+ return this.grid.props.def.rowDetail && this.expanded ? [this, new Ee(this.grid, this)] : [this];
762
737
  }
763
738
  get allRows() {
764
739
  return this;
@@ -766,14 +741,14 @@ var U = class {
766
741
  };
767
742
  //#endregion
768
743
  //#region src/components/dataGrid/models/treeRow.ts
769
- function Oe(e) {
744
+ function De(e) {
770
745
  return !!e && e.isTreeRow === !0;
771
746
  }
772
747
  //#endregion
773
748
  //#region src/components/dataGrid/useGridNavigation.ts
774
- var ke = "[role=\"gridcell\"],[role=\"columnheader\"]", Ae = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]", je = 2, Me = [];
775
- function Ne(e) {
776
- let { grid: t, scrollerRef: r, scroll: i, onScrollTo: a } = e, s = t.headerRows.value, l = t.filter.hasFilterableColumns, u = s.length + +!!l, d = t.viewport.isEmpty ? Me : t.flatRows.value, f = t.columns.value.visibleLeafs.length, p = t.aggregation.hasFooter && !t.viewport.isEmpty ? 1 : 0, m = u + d.length + p, h = O((e) => {
749
+ var Oe = "[role=\"gridcell\"],[role=\"columnheader\"]", ke = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]", Ae = 2, je = [];
750
+ function Me(e) {
751
+ let { grid: t, scrollerRef: r, scroll: i, onScrollTo: a } = e, s = t.headerRows.value, l = t.filter.hasFilterableColumns, u = s.length + +!!l, d = t.viewport.isEmpty ? je : t.flatRows.value, f = t.columns.value.visibleLeafs.length, p = t.aggregation.hasFooter && !t.viewport.isEmpty ? 1 : 0, m = u + d.length + p, h = O((e) => {
777
752
  if (e < s.length) return s[e]?.length ?? 0;
778
753
  if (e < u || e >= u + d.length) return f;
779
754
  let t = d[e - u];
@@ -795,7 +770,7 @@ function Ne(e) {
795
770
  return;
796
771
  }
797
772
  let { startIndex: l, take: f } = o.window(i.top, i.direction);
798
- if (s >= l + je && s < l + f - je) return;
773
+ if (s >= l + Ae && s < l + f - Ae) return;
799
774
  let p = o.rowTop(s);
800
775
  c.scrollTop = p, a(p);
801
776
  }, [
@@ -837,12 +812,12 @@ function Ne(e) {
837
812
  let C = O((e, n, r) => {
838
813
  if (!t.tree.enabled || e.key !== "ArrowRight" && e.key !== "ArrowLeft") return !1;
839
814
  let i = d[n - u];
840
- if (!Oe(i) || t.columns.value.visibleLeafs[r]?.key !== t.tree.columnKey) return !1;
815
+ if (!De(i) || t.columns.value.visibleLeafs[r]?.key !== t.tree.columnKey) return !1;
841
816
  if (e.key === (t.isRtl ? "ArrowLeft" : "ArrowRight")) return !i.hasChildren || i.treeExpanded ? !1 : (i.toggleTree(), !0);
842
817
  if (i.hasChildren && i.treeExpanded) return i.toggleTree(), !0;
843
818
  for (let e = n - 1; e >= u; e--) {
844
819
  let t = d[e - u];
845
- if (!(!Oe(t) || t.level >= i.level)) return x.setActiveCell(e, r, { reason: "keyboard" }), !0;
820
+ if (!(!De(t) || t.level >= i.level)) return x.setActiveCell(e, r, { reason: "keyboard" }), !0;
846
821
  }
847
822
  return !1;
848
823
  }, [
@@ -863,18 +838,18 @@ function Ne(e) {
863
838
  if (!t.props.def.rowSelection) return !1;
864
839
  if (e < u) return e >= s.length || !t.columns.value.visibleLeafs[n]?.isRowSelection ? !1 : (t.toggleSelectAllRows(), !0);
865
840
  let r = t.flatRows.value[e - u];
866
- return r instanceof W && (r.toggleSelection(), !0);
841
+ return r instanceof U && (r.toggleSelection(), !0);
867
842
  }, [
868
843
  t,
869
844
  u,
870
845
  s.length
871
846
  ]), E = O((e, t, n) => {
872
- let r = Array.from(e.querySelectorAll(Ae));
847
+ let r = Array.from(e.querySelectorAll(ke));
873
848
  if (r.length < 2) return !1;
874
849
  let i = r.indexOf(t);
875
850
  return i !== -1 && (r[(i + (n ? -1 : 1) + r.length) % r.length].focus(), !0);
876
- }, []), D = x.onKeyDown, ee = O((e) => {
877
- let n = e.target, r = n.closest?.(ke);
851
+ }, []), ee = x.onKeyDown, D = O((e) => {
852
+ let n = e.target, r = n.closest?.(Oe);
878
853
  if (r) {
879
854
  if (n !== r) {
880
855
  if (e.key === "Escape" && !r.querySelector("[aria-expanded=\"true\"]")) {
@@ -902,13 +877,13 @@ function Ne(e) {
902
877
  e.preventDefault();
903
878
  return;
904
879
  }
905
- let i = r.querySelector(Ae);
880
+ let i = r.querySelector(ke);
906
881
  if (i) {
907
882
  e.preventDefault(), i.focus();
908
883
  return;
909
884
  }
910
885
  }
911
- if (t.edits.enabled && Ce(e) && t.edits.beginAt(x.activeIndex - u, x.activeColumn, e.key)) {
886
+ if (t.edits.enabled && we(e) && t.edits.beginAt(x.activeIndex - u, x.activeColumn, e.key)) {
912
887
  e.preventDefault();
913
888
  return;
914
889
  }
@@ -916,7 +891,7 @@ function Ne(e) {
916
891
  e.preventDefault();
917
892
  return;
918
893
  }
919
- D(e);
894
+ ee(e);
920
895
  }
921
896
  }, [
922
897
  t,
@@ -924,46 +899,46 @@ function Ne(e) {
924
899
  s,
925
900
  x.activeColumn,
926
901
  x.activeIndex,
927
- D,
902
+ ee,
928
903
  w,
929
904
  E,
930
905
  T,
931
906
  C
932
- ]), { setActiveCell: k, activeIndex: A, activeColumn: j } = x, F = o(x.cellProps), [I] = P(() => new ge(A, j));
933
- n(() => I.set(A, j), [
934
- I,
907
+ ]), { setActiveCell: k, activeIndex: A, activeColumn: j } = x, M = o(x.cellProps), [F] = P(() => new _e(A, j));
908
+ n(() => F.set(A, j), [
909
+ F,
935
910
  j,
936
911
  A
937
912
  ]);
938
- let L = O((e, t) => {
939
- let { ref: n, onFocus: r } = F.current(e, t);
913
+ let I = O((e, t) => {
914
+ let { ref: n, onFocus: r } = M.current(e, t);
940
915
  return {
941
916
  ref: n,
942
917
  onFocus: r
943
918
  };
944
- }, [F]);
919
+ }, [M]);
945
920
  return {
946
- navigation: M(() => ({
921
+ navigation: te(() => ({
947
922
  rowCount: m,
948
923
  columnCount: f,
949
924
  headerRowCount: u,
950
- cellProps: L,
951
- activeCell: I,
925
+ cellProps: I,
926
+ activeCell: F,
952
927
  setActiveCell: k
953
928
  }), [
929
+ F,
954
930
  I,
955
- L,
956
931
  f,
957
932
  u,
958
933
  m,
959
934
  k
960
935
  ]),
961
- onKeyDown: ee
936
+ onKeyDown: D
962
937
  };
963
938
  }
964
939
  //#endregion
965
940
  //#region src/utils/array/arrayUtils.ts
966
- var Pe;
941
+ var Ne;
967
942
  (function(e) {
968
943
  function t(e, t, n = 0) {
969
944
  return e.slice(n, n + t);
@@ -1010,36 +985,63 @@ var Pe;
1010
985
  }));
1011
986
  }
1012
987
  e.groupBy = s;
1013
- })(Pe ||= {});
1014
- var G = Pe, Fe = "row-number-cell", Ie = "row-selection-cell", K = "grouping-cell", Le = "row-detail-cell";
988
+ })(Ne ||= {});
989
+ var W = Ne, Pe = "row-number-cell", Fe = "row-selection-cell", G = "grouping-cell", Ie = "row-detail-cell", K = Symbol("memo.unset"), Le = class {
990
+ action;
991
+ deps;
992
+ cache = K;
993
+ dependents = /* @__PURE__ */ new Set();
994
+ wired = !1;
995
+ constructor(e, t) {
996
+ this.action = e, this.deps = t;
997
+ }
998
+ wire() {
999
+ if (!this.wired) {
1000
+ this.wired = !0;
1001
+ for (let e of this.deps()) e.dependents.add(this);
1002
+ }
1003
+ }
1004
+ get value() {
1005
+ return this.wire(), this.cache === K && (this.cache = this.action()), this.cache;
1006
+ }
1007
+ clear() {
1008
+ if (this.wire(), this.cache !== K) {
1009
+ this.cache = K;
1010
+ for (let e of this.dependents) e.clear();
1011
+ }
1012
+ }
1013
+ };
1014
+ function q(e, t = () => []) {
1015
+ return new Le(e, t);
1016
+ }
1015
1017
  //#endregion
1016
1018
  //#region src/components/dataGrid/models/aggregationModel.ts
1017
- function q(e) {
1019
+ function Re(e) {
1018
1020
  return e.filter((e) => typeof e == "number" && !Number.isNaN(e));
1019
1021
  }
1020
- var Re = (e) => e.reduce((e, t) => e + t, 0), ze = (e, t) => e.reduce((e, n) => (t ? n < e : n > e) ? n : e), Be = {
1022
+ var ze = (e) => e.reduce((e, t) => e + t, 0), Be = (e, t) => e.reduce((e, n) => (t ? n < e : n > e) ? n : e), Ve = {
1021
1023
  sum: (e) => {
1022
- let t = q(e);
1023
- return t.length ? Re(t) : null;
1024
+ let t = Re(e);
1025
+ return t.length ? ze(t) : null;
1024
1026
  },
1025
1027
  avg: (e) => {
1026
- let t = q(e);
1027
- return t.length ? Math.round(Re(t) / t.length * 100) / 100 : null;
1028
+ let t = Re(e);
1029
+ return t.length ? Math.round(ze(t) / t.length * 100) / 100 : null;
1028
1030
  },
1029
1031
  min: (e) => {
1030
- let t = q(e);
1031
- return t.length ? ze(t, !0) : null;
1032
+ let t = Re(e);
1033
+ return t.length ? Be(t, !0) : null;
1032
1034
  },
1033
1035
  max: (e) => {
1034
- let t = q(e);
1035
- return t.length ? ze(t, !1) : null;
1036
+ let t = Re(e);
1037
+ return t.length ? Be(t, !1) : null;
1036
1038
  },
1037
1039
  count: (e, t) => t.length
1038
1040
  };
1039
- function Ve(e, t, n) {
1040
- return typeof e == "function" ? e(t, n) : Be[e]?.(t, n) ?? null;
1041
+ function He(e, t, n) {
1042
+ return typeof e == "function" ? e(t, n) : Ve[e]?.(t, n) ?? null;
1041
1043
  }
1042
- var He = class {
1044
+ var Ue = class {
1043
1045
  grid;
1044
1046
  constructor(e) {
1045
1047
  this.grid = e;
@@ -1060,8 +1062,8 @@ var He = class {
1060
1062
  get footerLabelColumn() {
1061
1063
  return this.grid.columns.value.visibleLeafs.find((e) => (e.isData || e.isGrouping) && !e.aggregate);
1062
1064
  }
1063
- footerCells = H(() => this.grid.columns.value.visibleLeafs.map((e) => new Ue(this.grid, e, this.grid.filteredData, "footer")), () => [this.grid.rows]);
1064
- }, Ue = class {
1065
+ footerCells = q(() => this.grid.columns.value.visibleLeafs.map((e) => new We(this.grid, e, this.grid.filteredData, "footer")), () => [this.grid.rows]);
1066
+ }, We = class {
1065
1067
  grid;
1066
1068
  column;
1067
1069
  rows;
@@ -1070,13 +1072,13 @@ var He = class {
1070
1072
  constructor(e, t, n, r, i) {
1071
1073
  this.grid = e, this.column = t, this.rows = n, this.scope = r, this.given = i;
1072
1074
  }
1073
- _values = H(() => this.rows.map((e) => e[this.column.key]));
1075
+ _values = q(() => this.rows.map((e) => e[this.column.key]));
1074
1076
  get values() {
1075
1077
  return this._values.value;
1076
1078
  }
1077
- _value = H(() => {
1079
+ _value = q(() => {
1078
1080
  let e = this.column.aggregate;
1079
- return e ? Ve(e, this.values, this.rows) : null;
1081
+ return e ? He(e, this.values, this.rows) : null;
1080
1082
  });
1081
1083
  get value() {
1082
1084
  let e = this.given?.();
@@ -1091,7 +1093,7 @@ var He = class {
1091
1093
  get isLast() {
1092
1094
  return !1;
1093
1095
  }
1094
- }, We = class {
1096
+ }, Ge = class {
1095
1097
  grid;
1096
1098
  row;
1097
1099
  column;
@@ -1113,7 +1115,7 @@ var He = class {
1113
1115
  get cellKind() {
1114
1116
  return this.column.isGrouping ? "grouping" : this.column.isRowSelection ? this.row.selectable ? "selection" : "spacer" : this.row.spans(this.column) ? "hidden" : this.column.aggregate ? "aggregate" : "spacer";
1115
1117
  }
1116
- _aggregate = H(() => this.column.aggregate ? new Ue(this.grid, this.column, this.row.allRows.map((e) => e.data), "group", () => this.row.aggregateValue(this.column)) : null);
1118
+ _aggregate = q(() => this.column.aggregate ? new We(this.grid, this.column, this.row.allRows.map((e) => e.data), "group", () => this.row.aggregateValue(this.column)) : null);
1117
1119
  get aggregate() {
1118
1120
  return this._aggregate.value;
1119
1121
  }
@@ -1132,7 +1134,7 @@ var He = class {
1132
1134
  get hasGroupingBorder() {
1133
1135
  return this.row.groupingColumn.pin === "START";
1134
1136
  }
1135
- }, Ge = class {
1137
+ }, Ke = class {
1136
1138
  grid;
1137
1139
  groupColumn;
1138
1140
  rows;
@@ -1158,21 +1160,25 @@ var He = class {
1158
1160
  return `${this.parentRow?.key ?? ""}${this.groupColumn.key}${this.groupValue}`;
1159
1161
  }
1160
1162
  parentRow;
1161
- _cells = H(() => this.grid.columns.value.visibleLeafs.map((e) => new We(this.grid, this, e)));
1163
+ _cells;
1162
1164
  get cells() {
1163
- return this._cells.value;
1165
+ return this.cellCache().cells;
1164
1166
  }
1165
- _renderedCells = H(() => {
1166
- let e = [];
1167
- return this.cells.forEach((t, n) => {
1168
- t.cellKind !== "hidden" && e.push({
1167
+ cellCache() {
1168
+ let e = this.grid.columns.value.visibleLeafs;
1169
+ return this._cells?.leafs !== e && (this._cells = {
1170
+ leafs: e,
1171
+ cells: e.map((e) => new Ge(this.grid, this, e))
1172
+ }), this._cells;
1173
+ }
1174
+ get renderedCells() {
1175
+ let e = this.cellCache();
1176
+ return e.rendered || (e.rendered = [], e.cells.forEach((t, n) => {
1177
+ t.cellKind !== "hidden" && e.rendered.push({
1169
1178
  cell: t,
1170
1179
  columnIndex: n
1171
1180
  });
1172
- }), e;
1173
- });
1174
- get renderedCells() {
1175
- return this._renderedCells.value;
1181
+ })), e.rendered;
1176
1182
  }
1177
1183
  get cellCount() {
1178
1184
  return this.renderedCells.length;
@@ -1193,7 +1199,7 @@ var He = class {
1193
1199
  return this.parentRow ? this.parentRow.depth + 1 : 0;
1194
1200
  }
1195
1201
  get count() {
1196
- return G.sumBy(this.rows, (e) => e.count, 0);
1202
+ return W.sumBy(this.rows, (e) => e.count, 0);
1197
1203
  }
1198
1204
  get flatRows() {
1199
1205
  return this.expanded ? [this, ...this.rows.flatMap((e) => e.flatRows)] : [this];
@@ -1202,7 +1208,7 @@ var He = class {
1202
1208
  return this.rows.flatMap((e) => e.allRows);
1203
1209
  }
1204
1210
  get groupingColumn() {
1205
- return G.findOrThrow(this.grid.columns.value.leafs, (e) => e.key === K);
1211
+ return W.findOrThrow(this.grid.columns.value.leafs, (e) => e.key === G);
1206
1212
  }
1207
1213
  get groupingColumnGridColumn() {
1208
1214
  return this.grid.groupingSpan.value.length;
@@ -1220,11 +1226,11 @@ var He = class {
1220
1226
  };
1221
1227
  //#endregion
1222
1228
  //#region src/components/dataGrid/components/dataGridDetailRow.tsx
1223
- function Ke(e) {
1224
- let { row: t, index: i } = e, { grid: a, parentRow: o } = t, s = a.props.def.rowDetail, c = B(), l = (c?.headerRowCount ?? 0) + i, { ref: u, tabIndex: d, onFocus: f } = me(c, l, 0), p = t.isAutoHeight, h = N(null);
1229
+ function qe(e) {
1230
+ let { row: t, index: i } = e, { grid: a, parentRow: o } = t, s = a.props.def.rowDetail, c = z(), l = (c?.headerRowCount ?? 0) + i, { ref: u, tabIndex: d, onFocus: f } = B(c, l, 0), m = t.isAutoHeight, h = N(null);
1225
1231
  return n(() => {
1226
1232
  a.takeDetailReveal(o.key) && h.current?.scrollIntoView?.({ block: "nearest" });
1227
- }), /* @__PURE__ */ L(m, {
1233
+ }), /* @__PURE__ */ L(p, {
1228
1234
  ref: h,
1229
1235
  component: `${a.componentName}.body.detailRow`,
1230
1236
  props: {
@@ -1233,7 +1239,7 @@ function Ke(e) {
1233
1239
  },
1234
1240
  style: {
1235
1241
  gridColumn: "1 / -1",
1236
- height: p ? "auto" : `${t.height}px`
1242
+ height: m ? "auto" : `${t.height}px`
1237
1243
  },
1238
1244
  children: /* @__PURE__ */ L(r, {
1239
1245
  ref: u,
@@ -1254,11 +1260,11 @@ function Ke(e) {
1254
1260
  })
1255
1261
  });
1256
1262
  }
1257
- Ke.displayName = "DataGridDetailRow";
1258
- var qe = D(Ke);
1263
+ qe.displayName = "DataGridDetailRow";
1264
+ var Je = D(qe);
1259
1265
  //#endregion
1260
1266
  //#region src/components/dataGrid/components/dataGridAggregateValue.tsx
1261
- function Je(e) {
1267
+ function Ye(e) {
1262
1268
  let { cell: t } = e, { column: n } = t;
1263
1269
  if (n.AggregateCell) return /* @__PURE__ */ L(n.AggregateCell, { cell: t });
1264
1270
  let i = t.scope === "footer" ? "footer.cell" : "body.groupRow.aggregate";
@@ -1271,12 +1277,12 @@ function Je(e) {
1271
1277
  children: t.value
1272
1278
  });
1273
1279
  }
1274
- Je.displayName = "DataGridAggregateValue";
1280
+ Ye.displayName = "DataGridAggregateValue";
1275
1281
  //#endregion
1276
1282
  //#region src/components/dataGrid/components/dataGridCell.tsx
1277
- var Ye = "button,a[href],input,select,textarea";
1283
+ var Xe = "button,a[href],input,select,textarea";
1278
1284
  function J(t) {
1279
- let { children: n, cell: r, row: i, columnIndex: a, ariaColIndex: o, ariaColSpan: s, style: c, ...l } = t, { column: u } = r, d = B(), { ref: f, tabIndex: p, onFocus: h } = me(d, i, a), { range: g } = u.grid, _ = r instanceof U ? i - (d?.headerRowCount ?? 0) : -1, v = _ >= 0 && g.isCurrent(_, a), y = _ >= 0 && g.isSelected(_, a);
1285
+ let { children: n, cell: r, row: i, columnIndex: a, ariaColIndex: o, ariaColSpan: s, style: c, ...l } = t, { column: u } = r, d = z(), { ref: f, tabIndex: m, onFocus: h } = B(d, i, a), { range: g } = u.grid, _ = r instanceof H ? i - (d?.headerRowCount ?? 0) : -1, v = _ >= 0 && g.isCurrent(_, a), y = _ >= 0 && g.isSelected(_, a);
1280
1286
  u.hasAlign && (l.jc = u.align);
1281
1287
  let b = r.isExpanded ? {
1282
1288
  ...u.cellVariant.value,
@@ -1289,8 +1295,8 @@ function J(t) {
1289
1295
  isInRange: y && !v,
1290
1296
  isCurrentCell: v
1291
1297
  });
1292
- let x = r instanceof U && !r.editing && r.rejected;
1293
- r instanceof U && r.editing ? b = {
1298
+ let x = r instanceof H && !r.editing && r.rejected;
1299
+ r instanceof H && r.editing ? b = {
1294
1300
  ...b,
1295
1301
  isEditing: !0,
1296
1302
  isInvalid: !!r.error
@@ -1298,14 +1304,14 @@ function J(t) {
1298
1304
  ...b,
1299
1305
  isInvalid: !0
1300
1306
  });
1301
- let S = r instanceof U ? (t) => {
1302
- t.target.closest(Ye) || (e(t.currentTarget), r.beginEdit());
1307
+ let S = r instanceof H ? (t) => {
1308
+ t.target.closest(Xe) || (e(t.currentTarget), r.beginEdit());
1303
1309
  } : void 0, C = g.enabled && _ >= 0, w = C ? (e) => {
1304
- e.button === 0 && e.pointerType !== "touch" && (e.target.closest(Ye) || g.press(_, a, e.shiftKey));
1310
+ e.button === 0 && e.pointerType !== "touch" && (e.target.closest(Xe) || g.press(_, a, e.shiftKey));
1305
1311
  } : void 0, T = C && g.isDragging ? (e) => {
1306
1312
  g.dragTo(_, a), e.currentTarget.focus();
1307
1313
  } : void 0;
1308
- return /* @__PURE__ */ L(m, {
1314
+ return /* @__PURE__ */ L(p, {
1309
1315
  ref: f,
1310
1316
  component: `${u.grid.componentName}.body.cell`,
1311
1317
  props: {
@@ -1314,7 +1320,7 @@ function J(t) {
1314
1320
  "aria-colspan": s,
1315
1321
  "aria-selected": y || void 0,
1316
1322
  "aria-invalid": x || void 0,
1317
- tabIndex: p,
1323
+ tabIndex: m,
1318
1324
  onFocus: h,
1319
1325
  onDoubleClick: S,
1320
1326
  onPointerDown: w,
@@ -1332,11 +1338,11 @@ function J(t) {
1332
1338
  J.displayName = "DataGridCell";
1333
1339
  //#endregion
1334
1340
  //#region src/components/dataGrid/components/dataGridFooter.tsx
1335
- function Xe(e) {
1336
- let { grid: t } = e, { aggregation: n } = t, i = B();
1341
+ function Ze(e) {
1342
+ let { grid: t } = e, { aggregation: n } = t, i = z();
1337
1343
  if (!n.hasFooter) return null;
1338
1344
  let a = (i?.rowCount ?? 1) - 1, { footerLabelColumn: o, footerLabel: s } = n;
1339
- return /* @__PURE__ */ L(b, {
1345
+ return /* @__PURE__ */ L(y, {
1340
1346
  component: `${t.componentName}.footer`,
1341
1347
  props: { role: "rowgroup" },
1342
1348
  style: { gridTemplateColumns: t.gridTemplateColumns.value },
@@ -1350,7 +1356,7 @@ function Xe(e) {
1350
1356
  cell: e,
1351
1357
  row: a,
1352
1358
  columnIndex: n,
1353
- children: e.column.aggregate ? /* @__PURE__ */ L(Je, { cell: e }) : e.column === o ? /* @__PURE__ */ L(r, {
1359
+ children: e.column.aggregate ? /* @__PURE__ */ L(Ye, { cell: e }) : e.column === o ? /* @__PURE__ */ L(r, {
1354
1360
  component: `${t.componentName}.footer.label`,
1355
1361
  px: 3,
1356
1362
  textWrap: "nowrap",
@@ -1360,10 +1366,10 @@ function Xe(e) {
1360
1366
  })
1361
1367
  });
1362
1368
  }
1363
- Xe.displayName = "DataGridFooter";
1369
+ Ze.displayName = "DataGridFooter";
1364
1370
  //#endregion
1365
1371
  //#region src/icons/expandIcon.tsx
1366
- function Y(e) {
1372
+ function Qe(e) {
1367
1373
  return /* @__PURE__ */ L(d, {
1368
1374
  viewBox: "4 2 16 18",
1369
1375
  width: "1rem",
@@ -1378,16 +1384,16 @@ function Y(e) {
1378
1384
  }
1379
1385
  //#endregion
1380
1386
  //#region src/components/dataGrid/components/dataGridCellPlaceholder.tsx
1381
- var Ze = [
1387
+ var $e = [
1382
1388
  "3/5",
1383
1389
  "2/5",
1384
1390
  "4/5",
1385
1391
  "1/2",
1386
1392
  "7/12"
1387
1393
  ];
1388
- function Qe(e) {
1389
- let { cell: t, columnIndex: n } = e, i = Ze[(t.row.rowIndex + n) % Ze.length];
1390
- return /* @__PURE__ */ L(m, {
1394
+ function et(e) {
1395
+ let { cell: t, columnIndex: n } = e, i = $e[(t.row.rowIndex + n) % $e.length];
1396
+ return /* @__PURE__ */ L(p, {
1391
1397
  component: `${t.grid.componentName}.body.cell.placeholder`,
1392
1398
  ai: "center",
1393
1399
  px: 3,
@@ -1398,12 +1404,12 @@ function Qe(e) {
1398
1404
  })
1399
1405
  });
1400
1406
  }
1401
- Qe.displayName = "DataGridCellPlaceholder";
1407
+ et.displayName = "DataGridCellPlaceholder";
1402
1408
  //#endregion
1403
1409
  //#region src/components/dataGrid/components/dataGridGroupRow.tsx
1404
- function $e(e) {
1405
- let { row: t, index: n } = e, { selected: i, indeterminate: a, expanded: o, placeholder: s } = t, c = (B()?.headerRowCount ?? 0) + n, l = O(() => t.toggleSelectAll(), [t]);
1406
- return /* @__PURE__ */ L(m, {
1410
+ function tt(e) {
1411
+ let { row: t, index: n } = e, { selected: i, indeterminate: a, expanded: o, placeholder: s } = t, c = (z()?.headerRowCount ?? 0) + n, l = O(() => t.toggleSelectAll(), [t]);
1412
+ return /* @__PURE__ */ L(p, {
1407
1413
  component: `${t.grid.componentName}.body.groupRow`,
1408
1414
  className: "grid-row",
1409
1415
  selected: t.grid.props.def.rowSelection ? i : void 0,
@@ -1430,13 +1436,13 @@ function $e(e) {
1430
1436
  gridColumn: e.gridColumnSpan,
1431
1437
  ps: e.depthPadding,
1432
1438
  overflow: "auto",
1433
- children: s ? /* @__PURE__ */ L(Qe, {
1439
+ children: s ? /* @__PURE__ */ L(et, {
1434
1440
  cell: e,
1435
1441
  columnIndex: u
1436
1442
  }) : /* @__PURE__ */ L(r, {
1437
1443
  textWrap: "nowrap",
1438
1444
  px: 3,
1439
- children: /* @__PURE__ */ R(p, {
1445
+ children: /* @__PURE__ */ R(f, {
1440
1446
  component: `${t.grid.componentName}.body.groupRow.expandButton`,
1441
1447
  onClick: () => t.toggleRow(),
1442
1448
  cursor: "pointer",
@@ -1447,7 +1453,7 @@ function $e(e) {
1447
1453
  tabIndex: -1,
1448
1454
  "aria-expanded": o
1449
1455
  },
1450
- children: [/* @__PURE__ */ L(Y, {
1456
+ children: [/* @__PURE__ */ L(Qe, {
1451
1457
  fill: "currentColor",
1452
1458
  width: "14px",
1453
1459
  height: "14px",
@@ -1461,7 +1467,7 @@ function $e(e) {
1461
1467
  row: c,
1462
1468
  columnIndex: u,
1463
1469
  ariaColIndex: n + 1,
1464
- children: /* @__PURE__ */ L(h, {
1470
+ children: /* @__PURE__ */ L(m, {
1465
1471
  variant: "datagrid",
1466
1472
  m: 1,
1467
1473
  checked: i,
@@ -1478,7 +1484,7 @@ function $e(e) {
1478
1484
  row: c,
1479
1485
  columnIndex: u,
1480
1486
  ariaColIndex: n + 1,
1481
- children: e.aggregate && /* @__PURE__ */ L(Je, { cell: e.aggregate })
1487
+ children: e.aggregate && /* @__PURE__ */ L(Ye, { cell: e.aggregate })
1482
1488
  }, e.column.key);
1483
1489
  case "spacer": return /* @__PURE__ */ L(J, {
1484
1490
  cell: e,
@@ -1493,21 +1499,21 @@ function $e(e) {
1493
1499
  })
1494
1500
  });
1495
1501
  }
1496
- $e.displayName = "DataGridGroupRow";
1497
- var et = D($e), tt = "input,select,textarea,button";
1498
- function nt(e) {
1502
+ tt.displayName = "DataGridGroupRow";
1503
+ var nt = D(tt), rt = "input,select,textarea,button";
1504
+ function it(e) {
1499
1505
  let { options: t } = e.editor;
1500
1506
  return typeof t == "function" ? t(e.row.data) : t ?? [];
1501
1507
  }
1502
- function rt(e) {
1503
- let { cell: t, row: r, columnIndex: i } = e, { grid: a } = t, o = B(), s = N(null), c = l("datagrid-cell-error"), { error: u, pending: d } = t;
1508
+ function at(e) {
1509
+ let { cell: t, row: r, columnIndex: i } = e, { grid: a } = t, o = z(), s = N(null), c = l("datagrid-cell-error"), { error: u, pending: d } = t;
1504
1510
  n(() => {
1505
- let e = s.current?.querySelector(tt);
1511
+ let e = s.current?.querySelector(rt);
1506
1512
  e?.focus(), e instanceof HTMLInputElement && e.type !== "checkbox" && e.select();
1507
1513
  }, []);
1508
1514
  let f = O(() => {
1509
1515
  s.current?.closest("[role=\"gridcell\"]")?.focus();
1510
- }, []), p = O((e) => {
1516
+ }, []), m = O((e) => {
1511
1517
  if (!o) return;
1512
1518
  let t = a.edits.nextEditable(r - o.headerRowCount, i, e.shiftKey);
1513
1519
  t && (e.preventDefault(), o.setActiveCell(t.row + o.headerRowCount, t.column, { reason: "programmatic" }), a.edits.beginAt(t.row, t.column));
@@ -1516,7 +1522,7 @@ function rt(e) {
1516
1522
  a,
1517
1523
  o,
1518
1524
  r
1519
- ]), h = O((e) => {
1525
+ ]), g = O((e) => {
1520
1526
  if (e.key === "Escape") {
1521
1527
  if (s.current?.querySelector("[aria-expanded=\"true\"]")) return;
1522
1528
  e.preventDefault(), e.stopPropagation(), t.cancelEdit(), f();
@@ -1531,29 +1537,29 @@ function rt(e) {
1531
1537
  e.preventDefault();
1532
1538
  return;
1533
1539
  }
1534
- p(e);
1540
+ m(e);
1535
1541
  }
1536
1542
  }, [
1537
1543
  t,
1538
1544
  f,
1539
- p
1545
+ m
1540
1546
  ]), _ = O(() => {
1541
1547
  !t.editing || t.pending || t.commitEdit();
1542
1548
  }, [t]);
1543
- return /* @__PURE__ */ R(m, {
1549
+ return /* @__PURE__ */ R(p, {
1544
1550
  ref: s,
1545
1551
  component: `${a.componentName}.body.cell.editor`,
1546
1552
  variant: { isPending: d },
1547
- props: { onKeyDown: h },
1553
+ props: { onKeyDown: g },
1548
1554
  width: "fit",
1549
1555
  height: "fit",
1550
1556
  ai: "center",
1551
- children: [/* @__PURE__ */ L(it, {
1557
+ children: [/* @__PURE__ */ L(ot, {
1552
1558
  cell: t,
1553
1559
  errorId: u ? c : void 0,
1554
1560
  onBlur: _,
1555
1561
  onCommitted: f
1556
- }), u && /* @__PURE__ */ L(g, {
1562
+ }), u && /* @__PURE__ */ L(h, {
1557
1563
  anchor: s,
1558
1564
  side: "bottom",
1559
1565
  align: "start",
@@ -1566,14 +1572,14 @@ function rt(e) {
1566
1572
  })]
1567
1573
  });
1568
1574
  }
1569
- function it(e) {
1575
+ function ot(e) {
1570
1576
  let { cell: t, errorId: n, onBlur: r, onCommitted: i } = e, { EditCell: a } = t.column.def, { type: o, placeholder: s, step: c, min: l, max: u } = t.editor, d = t.column.header ?? t.column.key, f = {
1571
1577
  "aria-label": t.grid.localeText.editCell(String(d)),
1572
1578
  "aria-invalid": n ? !0 : void 0,
1573
1579
  "aria-describedby": n
1574
1580
  };
1575
1581
  if (a) return /* @__PURE__ */ L(a, { cell: t });
1576
- if (o === "checkbox") return /* @__PURE__ */ L(h, {
1582
+ if (o === "checkbox") return /* @__PURE__ */ L(m, {
1577
1583
  checked: !!t.draft,
1578
1584
  onChange: (e) => {
1579
1585
  t.setDraft(e.target.checked), t.commitEdit(), i();
@@ -1583,7 +1589,7 @@ function it(e) {
1583
1589
  onBlur: r
1584
1590
  }
1585
1591
  });
1586
- if (o === "select") return /* @__PURE__ */ L(x, {
1592
+ if (o === "select") return /* @__PURE__ */ L(b, {
1587
1593
  value: t.draft,
1588
1594
  defaultOpen: !0,
1589
1595
  width: "fit",
@@ -1595,13 +1601,13 @@ function it(e) {
1595
1601
  t.setDraft(e ?? null), t.commitEdit(), i();
1596
1602
  },
1597
1603
  props: f,
1598
- children: nt(t).map((e) => /* @__PURE__ */ L(x.Item, {
1604
+ children: it(t).map((e) => /* @__PURE__ */ L(b.Item, {
1599
1605
  value: e.value,
1600
1606
  children: e.label ?? String(e.value)
1601
1607
  }, String(e.value)))
1602
1608
  });
1603
1609
  let p = o === "number";
1604
- return /* @__PURE__ */ L(y, {
1610
+ return /* @__PURE__ */ L(v, {
1605
1611
  type: p ? "number" : "text",
1606
1612
  value: t.draft === null || t.draft === void 0 ? "" : String(t.draft),
1607
1613
  placeholder: s,
@@ -1623,12 +1629,12 @@ function it(e) {
1623
1629
  }
1624
1630
  });
1625
1631
  }
1626
- rt.displayName = "DataGridCellEditor";
1632
+ at.displayName = "DataGridCellEditor";
1627
1633
  //#endregion
1628
1634
  //#region src/components/dataGrid/components/dataGridCellText.tsx
1629
- function at(e) {
1635
+ function st(e) {
1630
1636
  let { cell: t } = e;
1631
- return /* @__PURE__ */ L(m, {
1637
+ return /* @__PURE__ */ L(p, {
1632
1638
  component: `${t.grid.componentName}.body.cell.text`,
1633
1639
  height: "fit",
1634
1640
  width: "fit",
@@ -1644,18 +1650,18 @@ function at(e) {
1644
1650
  })
1645
1651
  });
1646
1652
  }
1647
- at.displayName = "DataGridCellText";
1653
+ st.displayName = "DataGridCellText";
1648
1654
  //#endregion
1649
1655
  //#region src/components/dataGrid/components/dataGridCellTree.tsx
1650
- function ot(e) {
1656
+ function ct(e) {
1651
1657
  let { cell: t, row: n, children: i } = e, { hasChildren: a, treeExpanded: o, level: s } = n, c = n.grid.componentName, l = O((e) => {
1652
1658
  e.stopPropagation(), n.toggleTree();
1653
1659
  }, [n]), u = t.value == null || t.value === "" ? t.grid.localeText.unnamedRow(n.rowIndex + 1) : String(t.value);
1654
- return /* @__PURE__ */ R(m, {
1660
+ return /* @__PURE__ */ R(p, {
1655
1661
  component: `${c}.body.cell.tree`,
1656
1662
  ai: "center",
1657
1663
  ps: s * n.grid.tree.indent,
1658
- children: [a ? /* @__PURE__ */ L(p, {
1664
+ children: [a ? /* @__PURE__ */ L(f, {
1659
1665
  component: `${c}.body.cell.tree.toggle`,
1660
1666
  variant: { isExpanded: o },
1661
1667
  type: "button",
@@ -1668,7 +1674,7 @@ function ot(e) {
1668
1674
  tabIndex: -1,
1669
1675
  "aria-label": (o ? t.grid.localeText.collapseTreeRow : t.grid.localeText.expandTreeRow)(u)
1670
1676
  },
1671
- children: /* @__PURE__ */ L(Y, {
1677
+ children: /* @__PURE__ */ L(Qe, {
1672
1678
  fill: "currentColor",
1673
1679
  width: "14px",
1674
1680
  height: "14px",
@@ -1683,29 +1689,29 @@ function ot(e) {
1683
1689
  })]
1684
1690
  });
1685
1691
  }
1686
- ot.displayName = "DataGridCellTree";
1692
+ ct.displayName = "DataGridCellTree";
1687
1693
  //#endregion
1688
1694
  //#region src/components/dataGrid/components/dataGridRow.tsx
1689
- function st(e) {
1690
- let { row: t, index: n } = e, { selected: r, expandOnRowClick: i } = t, a = (B()?.headerRowCount ?? 0) + n, o = Oe(t) ? t : void 0, s = o && t.grid.tree.columnKey, c = O(() => {
1695
+ function lt(e) {
1696
+ let { row: t, index: n } = e, { selected: r, expandOnRowClick: i } = t, a = (z()?.headerRowCount ?? 0) + n, o = De(t) ? t : void 0, s = o && t.grid.tree.columnKey, c = O(() => {
1691
1697
  t.toggleDetail();
1692
1698
  }, [t]), l = (e, n) => {
1693
- if (e.editing) return /* @__PURE__ */ L(rt, {
1699
+ if (e.editing) return /* @__PURE__ */ L(at, {
1694
1700
  cell: e,
1695
1701
  row: a,
1696
1702
  columnIndex: n
1697
1703
  });
1698
- let r = t.placeholder && !e.column.isRowNumber ? /* @__PURE__ */ L(Qe, {
1704
+ let r = t.placeholder && !e.column.isRowNumber ? /* @__PURE__ */ L(et, {
1699
1705
  cell: e,
1700
1706
  columnIndex: n
1701
- }) : e.column.Cell ? /* @__PURE__ */ L(e.column.Cell, { cell: e }) : /* @__PURE__ */ L(at, { cell: e });
1702
- return !o || e.column.key !== s ? r : /* @__PURE__ */ L(ot, {
1707
+ }) : e.column.Cell ? /* @__PURE__ */ L(e.column.Cell, { cell: e }) : /* @__PURE__ */ L(st, { cell: e });
1708
+ return !o || e.column.key !== s ? r : /* @__PURE__ */ L(ct, {
1703
1709
  cell: e,
1704
1710
  row: o,
1705
1711
  children: r
1706
1712
  });
1707
1713
  };
1708
- return /* @__PURE__ */ L(m, {
1714
+ return /* @__PURE__ */ L(p, {
1709
1715
  component: `${t.grid.componentName}.body.row`,
1710
1716
  className: "grid-row",
1711
1717
  selected: t.grid.props.def.rowSelection ? r : void 0,
@@ -1729,37 +1735,37 @@ function st(e) {
1729
1735
  }, e.column.key))
1730
1736
  });
1731
1737
  }
1732
- st.displayName = "DataGridRow";
1733
- var ct = D(st);
1738
+ lt.displayName = "DataGridRow";
1739
+ var ut = D(lt);
1734
1740
  //#endregion
1735
1741
  //#region src/components/dataGrid/components/dataGridBody.tsx
1736
- function lt(e, t, n) {
1737
- return e instanceof De ? /* @__PURE__ */ L(qe, {
1742
+ function dt(e, t, n) {
1743
+ return e instanceof Ee ? /* @__PURE__ */ L(Je, {
1738
1744
  row: e,
1739
1745
  index: t,
1740
1746
  version: n
1741
- }, e.key) : e instanceof Ge ? /* @__PURE__ */ L(et, {
1747
+ }, e.key) : e instanceof Ke ? /* @__PURE__ */ L(nt, {
1742
1748
  row: e,
1743
1749
  index: t,
1744
1750
  version: n
1745
- }, e.key) : /* @__PURE__ */ L(ct, {
1751
+ }, e.key) : /* @__PURE__ */ L(ut, {
1746
1752
  row: e,
1747
1753
  index: t,
1748
1754
  version: n
1749
1755
  }, e.key);
1750
1756
  }
1751
- function ut(e) {
1752
- let { grid: t, scroll: n } = e, { viewport: i } = t, { startIndex: a, take: o, translateY: s, totalHeight: c, viewHeight: l } = i.window(n.top, n.direction), u = i.showAll, d = i.isEmpty, f = t.flatRows.value, p = t.getSnapshot(), h = M(() => d ? null : G.take(f, o, a).map((e, n) => lt(e, a + n, t.rowVersion(e, a + n))), [
1757
+ function ft(e) {
1758
+ let { grid: t, scroll: n } = e, { viewport: i } = t, { startIndex: a, take: o, translateY: s, totalHeight: c, viewHeight: l } = i.window(n.top, n.direction), u = i.showAll, d = i.isEmpty, f = t.flatRows.value, m = t.getSnapshot(), h = te(() => d ? null : W.take(f, o, a).map((e, n) => dt(e, a + n, t.rowVersion(e, a + n))), [
1753
1759
  f,
1754
1760
  t,
1755
1761
  d,
1756
1762
  o,
1757
1763
  a,
1758
- p
1764
+ m
1759
1765
  ]);
1760
1766
  if (d) {
1761
1767
  let { noDataComponent: e } = t.props.def, n = t.props.loading ? t.localeText.loadingRows : t.localeText.noRows;
1762
- return /* @__PURE__ */ L(m, {
1768
+ return /* @__PURE__ */ L(p, {
1763
1769
  component: `${t.componentName}.body.empty`,
1764
1770
  jc: "center",
1765
1771
  ai: "center",
@@ -1775,7 +1781,7 @@ function ut(e) {
1775
1781
  })
1776
1782
  });
1777
1783
  }
1778
- return u ? /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L(b, {
1784
+ return u ? /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L(y, {
1779
1785
  component: `${t.componentName}.body`,
1780
1786
  width: "max-content",
1781
1787
  minWidth: "fit",
@@ -1784,13 +1790,13 @@ function ut(e) {
1784
1790
  props: { role: "rowgroup" },
1785
1791
  style: { gridTemplateColumns: t.gridTemplateColumns.value },
1786
1792
  children: h
1787
- }), /* @__PURE__ */ L(Xe, { grid: t })] }) : /* @__PURE__ */ R(r, {
1793
+ }), /* @__PURE__ */ L(Ze, { grid: t })] }) : /* @__PURE__ */ R(r, {
1788
1794
  props: { role: "presentation" },
1789
1795
  style: { height: l },
1790
1796
  children: [/* @__PURE__ */ L(r, {
1791
1797
  props: { role: "presentation" },
1792
1798
  style: { height: `${c}px` },
1793
- children: /* @__PURE__ */ L(b, {
1799
+ children: /* @__PURE__ */ L(y, {
1794
1800
  component: `${t.componentName}.body`,
1795
1801
  width: "max-content",
1796
1802
  minWidth: "fit",
@@ -1804,15 +1810,15 @@ function ut(e) {
1804
1810
  },
1805
1811
  children: h
1806
1812
  })
1807
- }), /* @__PURE__ */ L(Xe, { grid: t })]
1813
+ }), /* @__PURE__ */ L(Ze, { grid: t })]
1808
1814
  });
1809
1815
  }
1810
- ut.displayName = "DataGridBody";
1816
+ ft.displayName = "DataGridBody";
1811
1817
  //#endregion
1812
1818
  //#region src/components/dataGrid/components/dataGridEmptyColumns.tsx
1813
- function dt(e) {
1819
+ function pt(e) {
1814
1820
  let { grid: t } = e;
1815
- return /* @__PURE__ */ L(m, {
1821
+ return /* @__PURE__ */ L(p, {
1816
1822
  component: `${t.componentName}.emptyColumns`,
1817
1823
  d: "column",
1818
1824
  ai: "center",
@@ -1823,7 +1829,7 @@ function dt(e) {
1823
1829
  bgColor: "gray-50",
1824
1830
  borderRadius: 4,
1825
1831
  theme: { dark: { bgColor: "gray-900" } },
1826
- children: /* @__PURE__ */ R(m, {
1832
+ children: /* @__PURE__ */ R(p, {
1827
1833
  d: "column",
1828
1834
  ai: "center",
1829
1835
  gap: 3,
@@ -1848,7 +1854,7 @@ function dt(e) {
1848
1854
  d: "M3 6a3 3 0 013-3h12a3 3 0 013 3v12a3 3 0 01-3 3H6a3 3 0 01-3-3V6zm3-1a1 1 0 00-1 1v12a1 1 0 001 1h12a1 1 0 001-1V6a1 1 0 00-1-1H6zm2 3a1 1 0 011-1h6a1 1 0 110 2H9a1 1 0 01-1-1zm0 4a1 1 0 011-1h6a1 1 0 110 2H9a1 1 0 01-1-1zm0 4a1 1 0 011-1h4a1 1 0 110 2H9a1 1 0 01-1-1z"
1849
1855
  })
1850
1856
  })
1851
- }), /* @__PURE__ */ R(m, {
1857
+ }), /* @__PURE__ */ R(p, {
1852
1858
  d: "column",
1853
1859
  ai: "center",
1854
1860
  gap: 1,
@@ -1871,7 +1877,7 @@ function dt(e) {
1871
1877
  }
1872
1878
  //#endregion
1873
1879
  //#region src/utils/dataGrid/headerCellUtils.ts
1874
- var ft;
1880
+ var mt;
1875
1881
  (function(e) {
1876
1882
  let t = e.CELL_SELECTOR = "[role=\"columnheader\"][aria-sort]", n = ".resizer", r = `button, input, a, [role="menu"], [role="separator"], ${n}`;
1877
1883
  function i(e, t) {
@@ -1946,8 +1952,8 @@ var ft;
1946
1952
  } : e;
1947
1953
  }
1948
1954
  e.pause = u;
1949
- })(ft ||= {});
1950
- var X = ft, pt;
1955
+ })(mt ||= {});
1956
+ var Y = mt, ht;
1951
1957
  (function(e) {
1952
1958
  function t(e, t) {
1953
1959
  return (t?.type === "text" ? t.value : "") === (e.trim() ? e : "");
@@ -1974,18 +1980,18 @@ var X = ft, pt;
1974
1980
  return t.valueTo === void 0 ? isNaN(r) : t.valueTo === r;
1975
1981
  }
1976
1982
  e.numberMatches = r;
1977
- })(pt ||= {});
1978
- var Z = pt, mt = 300;
1979
- function ht(e, t, r) {
1983
+ })(ht ||= {});
1984
+ var X = ht, gt = 300;
1985
+ function _t(e, t, r) {
1980
1986
  let a = N(/* @__PURE__ */ new Map()), o = O(() => {
1981
1987
  for (let e of a.current.values()) clearTimeout(e);
1982
1988
  a.current.clear();
1983
1989
  }, []), s = O((e, t) => {
1984
1990
  clearTimeout(a.current.get(e)), a.current.set(e, setTimeout(() => {
1985
1991
  a.current.delete(e), t();
1986
- }, mt));
1992
+ }, gt));
1987
1993
  }, []);
1988
- k(() => o, [o]);
1994
+ A(() => o, [o]);
1989
1995
  let c = i(() => {
1990
1996
  t(e) || (o(), r(e));
1991
1997
  });
@@ -1996,9 +2002,9 @@ function ht(e, t, r) {
1996
2002
  }
1997
2003
  //#endregion
1998
2004
  //#region src/components/dataGrid/components/dataGridColumnFilter.tsx
1999
- function gt(e) {
2005
+ function vt(e) {
2000
2006
  let { label: t, onClear: n } = e;
2001
- return /* @__PURE__ */ L(p, {
2007
+ return /* @__PURE__ */ L(f, {
2002
2008
  clean: !0,
2003
2009
  type: "button",
2004
2010
  position: "absolute",
@@ -2021,16 +2027,16 @@ function gt(e) {
2021
2027
  })
2022
2028
  });
2023
2029
  }
2024
- function _t({ column: e }) {
2025
- let { currentFilter: t } = e, { componentName: n } = e.grid, r = String(e.header ?? e.key), i = e.grid.localeText, [a, o] = P(t?.type === "text" ? t.value : ""), { debounce: s, cancel: c } = ht(t, (e) => Z.textMatches(a, e), (e) => o(e?.type === "text" ? e.value : "")), l = O((t) => {
2030
+ function yt({ column: e }) {
2031
+ let { currentFilter: t } = e, { componentName: n } = e.grid, r = String(e.header ?? e.key), i = e.grid.localeText, [a, o] = P(t?.type === "text" ? t.value : ""), { debounce: s, cancel: c } = _t(t, (e) => X.textMatches(a, e), (e) => o(e?.type === "text" ? e.value : "")), l = O((t) => {
2026
2032
  let n = t.target.value;
2027
2033
  o(n), s("value", () => e.setTextFilter(n));
2028
2034
  }, [e, s]), u = O(() => {
2029
2035
  c(), o(""), e.clearFilter();
2030
2036
  }, [e, c]);
2031
- return /* @__PURE__ */ R(m, {
2037
+ return /* @__PURE__ */ R(p, {
2032
2038
  component: `${n}.filter.cell.input`,
2033
- children: [/* @__PURE__ */ L(y, {
2039
+ children: [/* @__PURE__ */ L(v, {
2034
2040
  width: "fit",
2035
2041
  variant: "compact",
2036
2042
  placeholder: e.filterConfig?.placeholder ?? i.filterPlaceholder,
@@ -2043,16 +2049,16 @@ function _t({ column: e }) {
2043
2049
  tabIndex: -1,
2044
2050
  "aria-label": i.filterColumn(r)
2045
2051
  }
2046
- }), a && /* @__PURE__ */ L(gt, {
2052
+ }), a && /* @__PURE__ */ L(vt, {
2047
2053
  label: i.clearFilter(r),
2048
2054
  onClear: u
2049
2055
  })]
2050
2056
  });
2051
2057
  }
2052
- function vt({ column: e }) {
2053
- let { currentFilter: t } = e, { componentName: n } = e.grid, r = String(e.header ?? e.key), i = e.grid.localeText, [a, o] = P(() => Z.numberDraft(t)), s = N(a), c = O((e) => {
2058
+ function bt({ column: e }) {
2059
+ let { currentFilter: t } = e, { componentName: n } = e.grid, r = String(e.header ?? e.key), i = e.grid.localeText, [a, o] = P(() => X.numberDraft(t)), s = N(a), c = O((e) => {
2054
2060
  s.current = e, o(e);
2055
- }, []), { debounce: l, cancel: u } = ht(t, (e) => Z.numberMatches(a, e), (e) => c(Z.numberDraft(e))), { operator: d, value: f, valueTo: p } = a, h = e.filterConfig, g = O(() => {
2061
+ }, []), { debounce: l, cancel: u } = _t(t, (e) => X.numberMatches(a, e), (e) => c(X.numberDraft(e))), { operator: d, value: f, valueTo: m } = a, h = e.filterConfig, g = O(() => {
2056
2062
  let { operator: t, value: n, valueTo: r } = s.current;
2057
2063
  e.setNumberFilter(t, n, r);
2058
2064
  }, [e]), _ = O((e, t) => {
@@ -2065,18 +2071,18 @@ function vt({ column: e }) {
2065
2071
  g,
2066
2072
  l,
2067
2073
  u
2068
- ]), v = O((e) => _({ value: e.target.value }, !0), [_]), b = O((e) => _({ valueTo: e.target.value }, !0), [_]), S = O((e) => _({ operator: e }, !1), [_]), C = O(() => {
2069
- u(), c(Z.numberDraft(void 0)), e.clearFilter();
2074
+ ]), y = O((e) => _({ value: e.target.value }, !0), [_]), x = O((e) => _({ valueTo: e.target.value }, !0), [_]), S = O((e) => _({ operator: e }, !1), [_]), C = O(() => {
2075
+ u(), c(X.numberDraft(void 0)), e.clearFilter();
2070
2076
  }, [
2071
2077
  e,
2072
2078
  u,
2073
2079
  c
2074
2080
  ]);
2075
- return /* @__PURE__ */ R(m, {
2081
+ return /* @__PURE__ */ R(p, {
2076
2082
  component: `${n}.filter.cell.input`,
2077
2083
  ai: d === "between" ? "start" : "center",
2078
2084
  gap: 1,
2079
- children: [/* @__PURE__ */ R(x, {
2085
+ children: [/* @__PURE__ */ R(b, {
2080
2086
  value: d,
2081
2087
  variant: "compact",
2082
2088
  onChange: (e) => e && S(e),
@@ -2090,49 +2096,49 @@ function vt({ column: e }) {
2090
2096
  "aria-label": i.filterComparison(r)
2091
2097
  },
2092
2098
  children: [
2093
- /* @__PURE__ */ L(x.Item, {
2099
+ /* @__PURE__ */ L(b.Item, {
2094
2100
  value: "eq",
2095
2101
  children: "="
2096
2102
  }),
2097
- /* @__PURE__ */ L(x.Item, {
2103
+ /* @__PURE__ */ L(b.Item, {
2098
2104
  value: "ne",
2099
2105
  children: "≠"
2100
2106
  }),
2101
- /* @__PURE__ */ L(x.Item, {
2107
+ /* @__PURE__ */ L(b.Item, {
2102
2108
  value: "gt",
2103
2109
  children: ">"
2104
2110
  }),
2105
- /* @__PURE__ */ L(x.Item, {
2111
+ /* @__PURE__ */ L(b.Item, {
2106
2112
  value: "gte",
2107
2113
  children: "≥"
2108
2114
  }),
2109
- /* @__PURE__ */ L(x.Item, {
2115
+ /* @__PURE__ */ L(b.Item, {
2110
2116
  value: "lt",
2111
2117
  children: "<"
2112
2118
  }),
2113
- /* @__PURE__ */ L(x.Item, {
2119
+ /* @__PURE__ */ L(b.Item, {
2114
2120
  value: "lte",
2115
2121
  children: "≤"
2116
2122
  }),
2117
- /* @__PURE__ */ L(x.Item, {
2123
+ /* @__PURE__ */ L(b.Item, {
2118
2124
  value: "between",
2119
2125
  children: "↔"
2120
2126
  })
2121
2127
  ]
2122
- }), d === "between" ? /* @__PURE__ */ R(m, {
2128
+ }), d === "between" ? /* @__PURE__ */ R(p, {
2123
2129
  d: "column",
2124
2130
  gap: 1,
2125
2131
  flex1: !0,
2126
- children: [/* @__PURE__ */ R(m, {
2132
+ children: [/* @__PURE__ */ R(p, {
2127
2133
  ai: "center",
2128
2134
  position: "relative",
2129
2135
  flex1: !0,
2130
- children: [/* @__PURE__ */ L(y, {
2136
+ children: [/* @__PURE__ */ L(v, {
2131
2137
  type: "number",
2132
2138
  variant: "compact",
2133
2139
  placeholder: h?.placeholder ?? i.filterFromPlaceholder,
2134
2140
  value: f,
2135
- onChange: v,
2141
+ onChange: y,
2136
2142
  width: "fit",
2137
2143
  step: h?.step,
2138
2144
  b: 0,
@@ -2142,19 +2148,19 @@ function vt({ column: e }) {
2142
2148
  tabIndex: -1,
2143
2149
  "aria-label": i.filterFrom(r)
2144
2150
  }
2145
- }), (f !== "" || p !== "") && /* @__PURE__ */ L(gt, {
2151
+ }), (f !== "" || m !== "") && /* @__PURE__ */ L(vt, {
2146
2152
  label: i.clearFilter(r),
2147
2153
  onClear: C
2148
2154
  })]
2149
- }), /* @__PURE__ */ L(m, {
2155
+ }), /* @__PURE__ */ L(p, {
2150
2156
  ai: "center",
2151
2157
  flex1: !0,
2152
- children: /* @__PURE__ */ L(y, {
2158
+ children: /* @__PURE__ */ L(v, {
2153
2159
  type: "number",
2154
2160
  variant: "compact",
2155
2161
  placeholder: i.filterToPlaceholder,
2156
- value: p,
2157
- onChange: b,
2162
+ value: m,
2163
+ onChange: x,
2158
2164
  width: "fit",
2159
2165
  step: h?.step,
2160
2166
  b: 0,
@@ -2166,16 +2172,16 @@ function vt({ column: e }) {
2166
2172
  }
2167
2173
  })
2168
2174
  })]
2169
- }) : /* @__PURE__ */ R(m, {
2175
+ }) : /* @__PURE__ */ R(p, {
2170
2176
  ai: "center",
2171
2177
  position: "relative",
2172
2178
  flex1: !0,
2173
- children: [/* @__PURE__ */ L(y, {
2179
+ children: [/* @__PURE__ */ L(v, {
2174
2180
  type: "number",
2175
2181
  variant: "compact",
2176
2182
  placeholder: h?.placeholder ?? i.filterValuePlaceholder,
2177
2183
  value: f,
2178
- onChange: v,
2184
+ onChange: y,
2179
2185
  width: "fit",
2180
2186
  step: h?.step,
2181
2187
  b: 0,
@@ -2185,20 +2191,20 @@ function vt({ column: e }) {
2185
2191
  tabIndex: -1,
2186
2192
  "aria-label": i.filterColumn(r)
2187
2193
  }
2188
- }), f !== "" && /* @__PURE__ */ L(gt, {
2194
+ }), f !== "" && /* @__PURE__ */ L(vt, {
2189
2195
  label: i.clearFilter(r),
2190
2196
  onClear: C
2191
2197
  })]
2192
2198
  })]
2193
2199
  });
2194
2200
  }
2195
- function yt({ column: e }) {
2201
+ function xt({ column: e }) {
2196
2202
  let { currentFilter: t } = e, { componentName: n } = e.grid, i = String(e.header ?? e.key), a = e.grid.localeText, o = t?.type === "multiselect" ? t.values : [], s = e.filterOptions, c = O((t, n) => {
2197
2203
  e.setMultiselectFilter(n);
2198
2204
  }, [e]);
2199
- return /* @__PURE__ */ L(m, {
2205
+ return /* @__PURE__ */ L(p, {
2200
2206
  component: `${n}.filter.cell.input`,
2201
- children: /* @__PURE__ */ R(x, {
2207
+ children: /* @__PURE__ */ R(b, {
2202
2208
  multiple: !0,
2203
2209
  showCheckbox: !0,
2204
2210
  isSearchable: !0,
@@ -2216,14 +2222,14 @@ function yt({ column: e }) {
2216
2222
  "aria-label": a.filterColumn(i)
2217
2223
  },
2218
2224
  children: [
2219
- /* @__PURE__ */ L(x.Display, { children: (t) => t.length === 0 ? /* @__PURE__ */ L(r, {
2225
+ /* @__PURE__ */ L(b.Display, { children: (t) => t.length === 0 ? /* @__PURE__ */ L(r, {
2220
2226
  tag: "span",
2221
2227
  color: "gray-400",
2222
2228
  children: e.filterConfig?.placeholder ?? a.filterSelectPlaceholder
2223
2229
  }) : t.length === 1 ? s.find((e) => e.value === t[0])?.label ?? String(t[0]) : `${t.length} selected` }),
2224
- /* @__PURE__ */ L(x.Unselect, { children: a.filterSelectClear }),
2225
- /* @__PURE__ */ L(x.SelectAll, { children: a.filterSelectAll }),
2226
- s.map((e) => /* @__PURE__ */ L(x.Item, {
2230
+ /* @__PURE__ */ L(b.Unselect, { children: a.filterSelectClear }),
2231
+ /* @__PURE__ */ L(b.SelectAll, { children: a.filterSelectAll }),
2232
+ s.map((e) => /* @__PURE__ */ L(b.Item, {
2227
2233
  value: e.value,
2228
2234
  ai: "center",
2229
2235
  gap: 2,
@@ -2233,21 +2239,21 @@ function yt({ column: e }) {
2233
2239
  })
2234
2240
  });
2235
2241
  }
2236
- function bt(e) {
2242
+ function St(e) {
2237
2243
  let { column: t } = e, n = t.filterConfig;
2238
2244
  if (!n) return null;
2239
2245
  switch (n.type) {
2240
- case "number": return /* @__PURE__ */ L(vt, { column: t });
2241
- case "multiselect": return /* @__PURE__ */ L(yt, { column: t });
2242
- default: return /* @__PURE__ */ L(_t, { column: t });
2246
+ case "number": return /* @__PURE__ */ L(bt, { column: t });
2247
+ case "multiselect": return /* @__PURE__ */ L(xt, { column: t });
2248
+ default: return /* @__PURE__ */ L(yt, { column: t });
2243
2249
  }
2244
2250
  }
2245
- bt.displayName = "DataGridColumnFilter";
2251
+ St.displayName = "DataGridColumnFilter";
2246
2252
  //#endregion
2247
2253
  //#region src/components/dataGrid/components/dataGridFilterCell.tsx
2248
- function xt(e) {
2249
- let { column: t, grid: n, row: r, columnIndex: i } = e, { widthVarName: a, inlineStartVarName: o, inlineEndVarName: s, filterable: c } = t, { isStartPinned: l, isEndPinned: u, isPinned: d, isFirstStartPinned: f, isLastStartPinned: p, isFirstEndPinned: h, isLastEndPinned: g } = t.pinFlags.value, { ref: _, tabIndex: v, onFocus: y } = me(B(), r, i), b = t.isGrouping || t.isRowNumber || t.isRowSelection;
2250
- return /* @__PURE__ */ L(m, {
2254
+ function Ct(e) {
2255
+ let { column: t, grid: n, row: r, columnIndex: i } = e, { widthVarName: a, inlineStartVarName: o, inlineEndVarName: s, filterable: c } = t, { isStartPinned: l, isEndPinned: u, isPinned: d, isFirstStartPinned: f, isLastStartPinned: m, isFirstEndPinned: h, isLastEndPinned: g } = t.pinFlags.value, { ref: _, tabIndex: v, onFocus: y } = B(z(), r, i), b = t.isGrouping || t.isRowNumber || t.isRowSelection;
2256
+ return /* @__PURE__ */ L(p, {
2251
2257
  ref: _,
2252
2258
  component: `${n.componentName}.filter.cell`,
2253
2259
  props: {
@@ -2259,7 +2265,7 @@ function xt(e) {
2259
2265
  variant: {
2260
2266
  isPinned: d,
2261
2267
  isFirstStartPinned: f,
2262
- isLastStartPinned: p,
2268
+ isLastStartPinned: m,
2263
2269
  isFirstEndPinned: h,
2264
2270
  isLastEndPinned: g
2265
2271
  },
@@ -2269,13 +2275,13 @@ function xt(e) {
2269
2275
  insetInlineStart: l ? `var(${o})` : void 0,
2270
2276
  insetInlineEnd: u ? `var(${s})` : void 0
2271
2277
  },
2272
- children: !b && c && /* @__PURE__ */ L(bt, { column: t })
2278
+ children: !b && c && /* @__PURE__ */ L(St, { column: t })
2273
2279
  });
2274
2280
  }
2275
- xt.displayName = "DataGridFilterCell";
2281
+ Ct.displayName = "DataGridFilterCell";
2276
2282
  //#endregion
2277
2283
  //#region src/components/dataGrid/components/dataGridFilterRow.tsx
2278
- function St(e) {
2284
+ function wt(e) {
2279
2285
  let { grid: t } = e;
2280
2286
  if (!t.filter.hasFilterableColumns) return null;
2281
2287
  let n = t.headerRows.value.length;
@@ -2285,7 +2291,7 @@ function St(e) {
2285
2291
  role: "row",
2286
2292
  "aria-rowindex": n + 1
2287
2293
  },
2288
- children: t.columns.value.visibleLeafs.map((e, r) => /* @__PURE__ */ L(xt, {
2294
+ children: t.columns.value.visibleLeafs.map((e, r) => /* @__PURE__ */ L(Ct, {
2289
2295
  column: e,
2290
2296
  grid: t,
2291
2297
  row: n,
@@ -2293,10 +2299,10 @@ function St(e) {
2293
2299
  }, e.uniqueKey))
2294
2300
  });
2295
2301
  }
2296
- St.displayName = "DataGridFilterRow";
2302
+ wt.displayName = "DataGridFilterRow";
2297
2303
  //#endregion
2298
2304
  //#region src/icons/sortIcon.tsx
2299
- function Ct(e) {
2305
+ function Tt(e) {
2300
2306
  return /* @__PURE__ */ L(d, {
2301
2307
  viewBox: "0 0 24 24",
2302
2308
  width: "1.5rem",
@@ -2306,7 +2312,7 @@ function Ct(e) {
2306
2312
  }
2307
2313
  //#endregion
2308
2314
  //#region src/icons/dotsIcon.tsx
2309
- function wt(e) {
2315
+ function Et(e) {
2310
2316
  return /* @__PURE__ */ L(d, {
2311
2317
  viewBox: "0 0 16 16",
2312
2318
  width: "18",
@@ -2319,7 +2325,7 @@ function wt(e) {
2319
2325
  }
2320
2326
  //#endregion
2321
2327
  //#region src/icons/groupingIcon.tsx
2322
- function Tt(e) {
2328
+ function Dt(e) {
2323
2329
  return /* @__PURE__ */ L(d, {
2324
2330
  viewBox: "0 0 24 24",
2325
2331
  width: "1.5rem",
@@ -2329,7 +2335,7 @@ function Tt(e) {
2329
2335
  }
2330
2336
  //#endregion
2331
2337
  //#region src/icons/pinIcon.tsx
2332
- function Et(e) {
2338
+ function Ot(e) {
2333
2339
  return /* @__PURE__ */ L(d, {
2334
2340
  viewBox: "0 0 1024 1024",
2335
2341
  width: "1.5rem",
@@ -2339,51 +2345,51 @@ function Et(e) {
2339
2345
  }
2340
2346
  //#endregion
2341
2347
  //#region src/components/dataGrid/components/dataGridHeaderCellContextMenu.tsx
2342
- function Dt(e) {
2348
+ function kt(e) {
2343
2349
  let { side: t, left: n, right: r } = e;
2344
- return /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L(S, {
2350
+ return /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L(x, {
2345
2351
  rtl: { display: "none" },
2346
2352
  children: t === "start" ? n : r
2347
- }), /* @__PURE__ */ L(S, {
2353
+ }), /* @__PURE__ */ L(x, {
2348
2354
  ltr: { display: "none" },
2349
2355
  children: t === "start" ? r : n
2350
2356
  })] });
2351
2357
  }
2352
- function Ot(e) {
2353
- let { column: t } = e, { grid: i, isEndAligned: o, header: u, key: d } = t, f = t.headerCell, h = String(u ?? d), v = i.localeText, y = l("datagrid-column-menu"), [b, x] = P(!1), C = N(null), T = N(null), E = N(!1), D = o ? 3 : void 0, ee = o ? void 0 : 3, k = M(() => {
2354
- let e = (e) => /* @__PURE__ */ L(S, {
2358
+ function At(e) {
2359
+ let { column: t } = e, { grid: i, isEndAligned: o, header: u, key: d } = t, m = t.headerCell, _ = String(u ?? d), v = i.localeText, y = l("datagrid-column-menu"), [b, S] = P(!1), C = N(null), w = N(null), E = N(!1), ee = o ? 3 : void 0, D = o ? void 0 : 3, k = te(() => {
2360
+ let e = (e) => /* @__PURE__ */ L(x, {
2355
2361
  component: `${i.componentName}.header.cell.contextMenu.tooltip.item.icon`,
2356
2362
  children: e
2357
- }), n = (t) => e(/* @__PURE__ */ L(Ct, {
2363
+ }), n = (t) => e(/* @__PURE__ */ L(Tt, {
2358
2364
  width: "100%",
2359
2365
  fill: "currentColor",
2360
2366
  rotate: t
2361
- })), a = (t, n) => e(/* @__PURE__ */ L(Et, {
2367
+ })), a = (t, n) => e(/* @__PURE__ */ L(Ot, {
2362
2368
  width: "100%",
2363
2369
  fill: "currentColor",
2364
2370
  rotate: t,
2365
2371
  rtl: { rotate: n }
2366
- })), o = e(/* @__PURE__ */ L(Tt, {
2372
+ })), o = e(/* @__PURE__ */ L(Dt, {
2367
2373
  width: "100%",
2368
2374
  fill: "currentColor"
2369
2375
  })), s = /* @__PURE__ */ L(r, { width: 4 });
2370
2376
  return [
2371
2377
  [
2372
- f.canSortAsc && {
2378
+ m.canSortAsc && {
2373
2379
  key: "sort-asc",
2374
2380
  icon: n(),
2375
2381
  label: v.sortAscending,
2376
2382
  text: v.sortAscending,
2377
2383
  run: () => t.sortColumn("ASC")
2378
2384
  },
2379
- f.canSortDesc && {
2385
+ m.canSortDesc && {
2380
2386
  key: "sort-desc",
2381
2387
  icon: n(180),
2382
2388
  label: v.sortDescending,
2383
2389
  text: v.sortDescending,
2384
2390
  run: () => t.sortColumn("DESC")
2385
2391
  },
2386
- f.canClearSort && {
2392
+ m.canClearSort && {
2387
2393
  key: "sort-clear",
2388
2394
  icon: s,
2389
2395
  label: v.clearSort,
@@ -2392,10 +2398,10 @@ function Ot(e) {
2392
2398
  }
2393
2399
  ],
2394
2400
  [
2395
- f.canPinStart && {
2401
+ m.canPinStart && {
2396
2402
  key: "pin-start",
2397
2403
  icon: a(0, -90),
2398
- label: /* @__PURE__ */ L(Dt, {
2404
+ label: /* @__PURE__ */ L(kt, {
2399
2405
  side: "start",
2400
2406
  left: v.pinLeft,
2401
2407
  right: v.pinRight
@@ -2403,10 +2409,10 @@ function Ot(e) {
2403
2409
  text: v.pinLeft,
2404
2410
  run: () => t.pinColumn("START")
2405
2411
  },
2406
- f.canPinEnd && {
2412
+ m.canPinEnd && {
2407
2413
  key: "pin-end",
2408
2414
  icon: a(-90, 0),
2409
- label: /* @__PURE__ */ L(Dt, {
2415
+ label: /* @__PURE__ */ L(kt, {
2410
2416
  side: "end",
2411
2417
  left: v.pinLeft,
2412
2418
  right: v.pinRight
@@ -2414,7 +2420,7 @@ function Ot(e) {
2414
2420
  text: v.pinRight,
2415
2421
  run: () => t.pinColumn("END")
2416
2422
  },
2417
- f.canUnpin && {
2423
+ m.canUnpin && {
2418
2424
  key: "unpin",
2419
2425
  icon: s,
2420
2426
  label: v.unpin,
@@ -2422,16 +2428,16 @@ function Ot(e) {
2422
2428
  run: () => t.pinColumn()
2423
2429
  }
2424
2430
  ],
2425
- [f.canGroupBy && {
2431
+ [m.canGroupBy && {
2426
2432
  key: "group",
2427
2433
  icon: o,
2428
2434
  label: /* @__PURE__ */ L(r, {
2429
2435
  textWrap: "nowrap",
2430
- children: v.groupBy(h)
2436
+ children: v.groupBy(_)
2431
2437
  }),
2432
- text: v.groupBy(h),
2438
+ text: v.groupBy(_),
2433
2439
  run: t.toggleGrouping
2434
- }, f.canUnGroupAll && {
2440
+ }, m.canUnGroupAll && {
2435
2441
  key: "ungroup",
2436
2442
  icon: o,
2437
2443
  label: /* @__PURE__ */ L(r, {
@@ -2447,12 +2453,12 @@ function Ot(e) {
2447
2453
  })));
2448
2454
  }, [
2449
2455
  t,
2450
- h,
2456
+ _,
2451
2457
  i,
2452
- f,
2458
+ m,
2453
2459
  v
2454
2460
  ]), A = O((e = !0) => {
2455
- E.current = !1, x(!1), e && C.current?.focus();
2461
+ E.current = !1, S(!1), e && C.current?.focus();
2456
2462
  }, []), j = c({
2457
2463
  count: k.length,
2458
2464
  textOf: (e) => k[e]?.text ?? "",
@@ -2462,49 +2468,49 @@ function Ot(e) {
2462
2468
  });
2463
2469
  s({
2464
2470
  enabled: b,
2465
- inside: [C, T],
2471
+ inside: [C, w],
2466
2472
  onDismiss: () => A()
2467
2473
  }), a({
2468
2474
  enabled: b,
2469
2475
  returnTo: C
2470
2476
  });
2471
- let F = j.setActiveIndex, I = j.activeItem, te = O(() => {
2472
- F(0, { reason: "programmatic" }), E.current = !0, x(!0);
2473
- }, [F]);
2477
+ let M = j.setActiveIndex, F = j.activeItem, I = O(() => {
2478
+ M(0, { reason: "programmatic" }), E.current = !0, S(!0);
2479
+ }, [M]);
2474
2480
  return n(() => {
2475
2481
  if (!E.current) return;
2476
- let e = I();
2482
+ let e = F();
2477
2483
  e && (E.current = !1, e.focus());
2478
- }), /* @__PURE__ */ R(m, {
2484
+ }), /* @__PURE__ */ R(p, {
2479
2485
  position: "absolute",
2480
- insetStart: D,
2481
- insetEnd: ee,
2486
+ insetStart: ee,
2487
+ insetEnd: D,
2482
2488
  top: "1/2",
2483
2489
  translateY: -3,
2484
2490
  ai: "center",
2485
- children: [/* @__PURE__ */ L(p, {
2491
+ children: [/* @__PURE__ */ L(f, {
2486
2492
  ref: C,
2487
2493
  component: `${i.componentName}.header.cell.contextMenu`,
2488
- onClick: () => b ? A(!1) : te(),
2489
- variant: f.contextMenuButtonVariant,
2494
+ onClick: () => b ? A(!1) : I(),
2495
+ variant: m.contextMenuButtonVariant,
2490
2496
  type: "button",
2491
2497
  props: {
2492
2498
  tabIndex: -1,
2493
- "aria-label": v.columnOptions(h),
2499
+ "aria-label": v.columnOptions(_),
2494
2500
  "aria-haspopup": "menu",
2495
2501
  "aria-expanded": b,
2496
2502
  "aria-controls": b ? y : void 0
2497
2503
  },
2498
- children: /* @__PURE__ */ L(S, {
2504
+ children: /* @__PURE__ */ L(x, {
2499
2505
  component: `${i.componentName}.header.cell.contextMenu.icon`,
2500
- children: /* @__PURE__ */ L(wt, { fill: "currentColor" })
2506
+ children: /* @__PURE__ */ L(Et, { fill: "currentColor" })
2501
2507
  })
2502
- }), /* @__PURE__ */ L(_, {
2508
+ }), /* @__PURE__ */ L(g, {
2503
2509
  present: b,
2504
- children: (e) => /* @__PURE__ */ L(g, {
2510
+ children: (e) => /* @__PURE__ */ L(h, {
2505
2511
  component: `${i.componentName}.header.cell.contextMenu.tooltip`,
2506
2512
  variant: { closed: !e.present },
2507
- ref: T,
2513
+ ref: w,
2508
2514
  contentRef: e.ref,
2509
2515
  anchor: C,
2510
2516
  side: "bottom",
@@ -2513,18 +2519,18 @@ function Ot(e) {
2513
2519
  id: y,
2514
2520
  props: {
2515
2521
  role: "menu",
2516
- "aria-label": v.columnOptions(h),
2522
+ "aria-label": v.columnOptions(_),
2517
2523
  onKeyDown: j.onKeyDown,
2518
2524
  ...e.props
2519
2525
  },
2520
2526
  children: k.map((e, t) => {
2521
2527
  let { ref: n, tabIndex: a, onFocus: o } = j.itemProps(t);
2522
- return /* @__PURE__ */ R(w, { children: [e.startsSection && /* @__PURE__ */ L(r, {
2528
+ return /* @__PURE__ */ R(T, { children: [e.startsSection && /* @__PURE__ */ L(r, {
2523
2529
  bb: 1,
2524
2530
  my: 2,
2525
2531
  borderColor: "gray-300",
2526
2532
  component: `${i.componentName}.header.cell.contextMenu.tooltip.item.separator`
2527
- }), /* @__PURE__ */ R(p, {
2533
+ }), /* @__PURE__ */ R(f, {
2528
2534
  component: `${i.componentName}.header.cell.contextMenu.tooltip.item`,
2529
2535
  ref: n,
2530
2536
  type: "button",
@@ -2543,24 +2549,20 @@ function Ot(e) {
2543
2549
  })]
2544
2550
  });
2545
2551
  }
2546
- Ot.displayName = "DataGridHeaderCellContextMenu";
2552
+ At.displayName = "DataGridHeaderCellContextMenu";
2547
2553
  //#endregion
2548
2554
  //#region src/components/dataGrid/components/dataGridHeaderCellResizer.tsx
2549
- var kt = (e) => "touches" in e ? e.touches[0]?.pageX ?? 0 : e.pageX, At = 16, jt = 150;
2550
- function Mt(e) {
2551
- let t = e.sizingElement;
2552
- t && Object.entries(e.sizes.value).forEach(([e, n]) => t.style.setProperty(e, n));
2553
- }
2555
+ var Z = (e) => "touches" in e ? e.touches[0]?.pageX ?? 0 : e.pageX, jt = 16, Mt = 150;
2554
2556
  function Nt(e) {
2555
2557
  let { column: t, controls: n } = e, i = t.grid.resizerStyle, a = t.headerCell, o = O((e) => {
2556
2558
  let { grid: n } = t;
2557
- e.type === "mousedown" && e.preventDefault(), t.beginResize(kt(e.nativeEvent));
2558
- let r = new AbortController(), { signal: i } = r, a = 0, o = kt(e.nativeEvent), s = () => {
2559
- t.applyResize(o), Mt(n);
2559
+ e.type === "mousedown" && e.preventDefault(), t.beginResize(Z(e.nativeEvent));
2560
+ let r = new AbortController(), { signal: i } = r, a = 0, o = Z(e.nativeEvent), s = () => {
2561
+ t.applyResize(o), n.paintSizes();
2560
2562
  }, c = n.resizeMode === "instant" ? (e) => {
2561
- o = kt(e), s();
2563
+ o = Z(e), s();
2562
2564
  } : (e) => {
2563
- o = kt(e), a ||= requestAnimationFrame(() => {
2565
+ o = Z(e), a ||= requestAnimationFrame(() => {
2564
2566
  a = 0, s();
2565
2567
  });
2566
2568
  }, l = () => {
@@ -2570,22 +2572,22 @@ function Nt(e) {
2570
2572
  }, [t]), s = N(void 0), c = N(0), l = O(() => {
2571
2573
  let { grid: e } = t;
2572
2574
  if (e.resizeMode === "instant") {
2573
- Mt(e);
2575
+ e.paintSizes();
2574
2576
  return;
2575
2577
  }
2576
2578
  c.current ||= requestAnimationFrame(() => {
2577
- c.current = 0, Mt(e);
2579
+ c.current = 0, e.paintSizes();
2578
2580
  });
2579
2581
  }, [t]), u = O(() => {
2580
2582
  s.current !== void 0 && (clearTimeout(s.current), s.current = void 0, c.current &&= (cancelAnimationFrame(c.current), 0), t.endResize());
2581
2583
  }, [t]);
2582
- k(() => () => {
2584
+ A(() => () => {
2583
2585
  clearTimeout(s.current), c.current && cancelAnimationFrame(c.current);
2584
2586
  }, []);
2585
2587
  let d = O((e) => {
2586
2588
  switch (e.key) {
2587
2589
  case "ArrowRight":
2588
- t.moveResizer(At);
2590
+ t.moveResizer(jt);
2589
2591
  break;
2590
2592
  case "ArrowLeft":
2591
2593
  t.moveResizer(-16);
@@ -2598,24 +2600,25 @@ function Nt(e) {
2598
2600
  break;
2599
2601
  default: return;
2600
2602
  }
2601
- e.preventDefault(), l(), clearTimeout(s.current), s.current = setTimeout(u, jt);
2603
+ e.preventDefault(), l(), clearTimeout(s.current), s.current = setTimeout(u, Mt);
2602
2604
  }, [
2603
2605
  t,
2604
2606
  u,
2605
2607
  a,
2606
2608
  l
2607
- ]);
2608
- return /* @__PURE__ */ L(m, {
2609
+ ]), { isAtGridEnd: f } = a;
2610
+ return /* @__PURE__ */ L(p, {
2609
2611
  height: "fit",
2610
2612
  ai: "center",
2611
2613
  position: "absolute",
2612
- insetEnd: t.pin === "END" ? void 0 : -.75,
2614
+ insetEnd: t.pin === "END" ? void 0 : f ? 0 : -.75,
2613
2615
  insetStart: t.pin === "END" ? -.75 : void 0,
2614
2616
  zIndex: 1,
2615
2617
  py: 3,
2616
2618
  children: /* @__PURE__ */ L(r, {
2617
2619
  cursor: "col-resize",
2618
- px: .75,
2620
+ px: f ? void 0 : .75,
2621
+ ps: f ? 1.5 : void 0,
2619
2622
  mt: -6,
2620
2623
  className: "resizer",
2621
2624
  height: "fit",
@@ -2648,9 +2651,9 @@ Nt.displayName = "DataGridHeaderCellResizer";
2648
2651
  //#endregion
2649
2652
  //#region src/components/dataGrid/components/dataGridHeaderCell.tsx
2650
2653
  function Pt(e) {
2651
- let { column: t, row: n, columnIndex: i } = e, { grid: a } = t, { isStartPinned: o, isEndPinned: s } = t.pinFlags.value, c = t.headerCell, { isSortable: u, showResizer: d, showContextMenu: f, paddingStart: p, paddingEnd: g } = c, { ref: _, tabIndex: y, onFocus: b } = me(B(), n, i), x = l("datagrid-columnheader"), S = N(null), C = O(() => {
2654
+ let { column: t, row: n, columnIndex: i } = e, { grid: a } = t, { isStartPinned: o, isEndPinned: s } = t.pinFlags.value, c = t.headerCell, { isSortable: u, showResizer: d, showContextMenu: f, paddingStart: h, paddingEnd: g } = c, { ref: v, tabIndex: y, onFocus: b } = B(z(), n, i), x = l("datagrid-columnheader"), S = N(null), C = O(() => {
2652
2655
  a.toggleSelectAllRows();
2653
- }, [a]), w = t.isRowSelection ? /* @__PURE__ */ L(h, {
2656
+ }, [a]), w = t.isRowSelection ? /* @__PURE__ */ L(m, {
2654
2657
  variant: "datagrid",
2655
2658
  m: 1,
2656
2659
  indeterminate: a.someRowsSelected && !a.allRowsSelected,
@@ -2660,12 +2663,12 @@ function Pt(e) {
2660
2663
  tabIndex: -1,
2661
2664
  "aria-label": a.localeText.selectAllRows
2662
2665
  }
2663
- }) : c.hiddenLabel ? /* @__PURE__ */ L(v, {
2666
+ }) : c.hiddenLabel ? /* @__PURE__ */ L(_, {
2664
2667
  tag: "span",
2665
2668
  children: c.hiddenLabel
2666
2669
  }) : c.label;
2667
- return /* @__PURE__ */ L(m, {
2668
- ref: _,
2670
+ return /* @__PURE__ */ L(p, {
2671
+ ref: v,
2669
2672
  id: x,
2670
2673
  props: {
2671
2674
  role: "columnheader",
@@ -2677,7 +2680,7 @@ function Pt(e) {
2677
2680
  onFocus: b,
2678
2681
  onPointerDown: u ? (e) => S.current = e.target : void 0,
2679
2682
  onClick: u ? (e) => {
2680
- X.isSortPress(e.currentTarget, S.current ?? e.target) && t.sortColumn(), S.current = null;
2683
+ Y.isSortPress(e.currentTarget, S.current ?? e.target) && t.sortColumn(), S.current = null;
2681
2684
  } : void 0
2682
2685
  },
2683
2686
  className: "header-cell",
@@ -2691,16 +2694,16 @@ function Pt(e) {
2691
2694
  insetInlineEnd: s ? `var(${t.inlineEndVarName})` : void 0
2692
2695
  },
2693
2696
  children: /* @__PURE__ */ R(I, { children: [
2694
- /* @__PURE__ */ L(m, {
2697
+ /* @__PURE__ */ L(p, {
2695
2698
  width: "fit",
2696
2699
  height: "fit",
2697
2700
  jc: t.align,
2698
- children: /* @__PURE__ */ R(m, {
2701
+ children: /* @__PURE__ */ R(p, {
2699
2702
  overflow: "hidden",
2700
2703
  position: t.isLeaf ? void 0 : "sticky",
2701
2704
  ai: "center",
2702
2705
  transition: "none",
2703
- ps: p,
2706
+ ps: h,
2704
2707
  pe: g,
2705
2708
  style: { insetInlineStart: t.pin ? void 0 : `var(${a.inlineStartEdgeVarName})` },
2706
2709
  children: [
@@ -2712,7 +2715,7 @@ function Pt(e) {
2712
2715
  }),
2713
2716
  c.isSorted && /* @__PURE__ */ L(r, {
2714
2717
  ps: (t.inlineWidth ?? 0) < 58 ? 0 : 2,
2715
- children: /* @__PURE__ */ L(Ct, {
2718
+ children: /* @__PURE__ */ L(Tt, {
2716
2719
  width: "16px",
2717
2720
  rotate: c.sortDirection === "ASC" ? 0 : 180,
2718
2721
  transition: "transform",
@@ -2730,7 +2733,7 @@ function Pt(e) {
2730
2733
  column: t,
2731
2734
  controls: x
2732
2735
  }),
2733
- f && /* @__PURE__ */ L(Ot, { column: t })
2736
+ f && /* @__PURE__ */ L(At, { column: t })
2734
2737
  ] })
2735
2738
  });
2736
2739
  }
@@ -2738,21 +2741,21 @@ Pt.displayName = "DataGridHeaderCell";
2738
2741
  //#endregion
2739
2742
  //#region src/components/dataGrid/components/dataGridHeader.tsx
2740
2743
  function Ft(e) {
2741
- let { grid: t } = e, n = N(null), [i, a] = P(X.INITIAL), o = t.headerHover === "sliding", s = (e) => {
2744
+ let { grid: t } = e, n = N(null), [i, a] = P(Y.INITIAL), o = t.headerHover === "sliding", s = (e) => {
2742
2745
  let t = n.current;
2743
2746
  if (!o || !t || e.pointerType === "touch") return;
2744
- if (X.isOnResizer(e.target)) return a((e) => X.pause(e));
2745
- let r = X.cellAt(t, e.target), i = r && X.bounds(t, r);
2746
- a((e) => X.hover(e, i));
2747
- }, c = () => a((e) => X.hover(e, void 0)), l = i.visible || i.paused;
2748
- k(() => {
2747
+ if (Y.isOnResizer(e.target)) return a((e) => Y.pause(e));
2748
+ let r = Y.cellAt(t, e.target), i = r && Y.bounds(t, r);
2749
+ a((e) => Y.hover(e, i));
2750
+ }, c = () => a((e) => Y.hover(e, void 0)), l = i.visible || i.paused;
2751
+ A(() => {
2749
2752
  if (l) return document.addEventListener("scroll", c, {
2750
2753
  capture: !0,
2751
2754
  passive: !0
2752
2755
  }), () => document.removeEventListener("scroll", c, { capture: !0 });
2753
2756
  }, [l]);
2754
2757
  let { bounds: u } = i;
2755
- return /* @__PURE__ */ R(b, {
2758
+ return /* @__PURE__ */ R(y, {
2756
2759
  ref: n,
2757
2760
  component: `${t.componentName}.header`,
2758
2761
  props: {
@@ -2774,7 +2777,7 @@ function Ft(e) {
2774
2777
  columnIndex: n
2775
2778
  }, e.uniqueKey))
2776
2779
  }, t)),
2777
- /* @__PURE__ */ L(St, { grid: t }),
2780
+ /* @__PURE__ */ L(wt, { grid: t }),
2778
2781
  o && u && /* @__PURE__ */ L(r, {
2779
2782
  tag: "span",
2780
2783
  component: `${t.componentName}.header.hover`,
@@ -2823,13 +2826,13 @@ function Rt(e) {
2823
2826
  }), s = N(null), c = O((e) => {
2824
2827
  o((t) => e === t.top ? t : {
2825
2828
  top: e,
2826
- direction: he.directionOf(t.top, e, t.direction)
2829
+ direction: ge.directionOf(t.top, e, t.direction)
2827
2830
  });
2828
2831
  }, []), l = O((e) => {
2829
2832
  s.current !== null && cancelAnimationFrame(s.current), s.current = requestAnimationFrame(() => {
2830
2833
  c(e.target.scrollTop), s.current = null;
2831
2834
  });
2832
- }, [c]), { navigation: u, onKeyDown: d } = Ne({
2835
+ }, [c]), { navigation: u, onKeyDown: d } = Me({
2833
2836
  grid: t,
2834
2837
  scrollerRef: i,
2835
2838
  scroll: a,
@@ -2837,7 +2840,7 @@ function Rt(e) {
2837
2840
  }), { source: f } = t, { queryVersion: p } = f;
2838
2841
  n(() => {
2839
2842
  f.enabled && i.current && (i.current.scrollTop = 0);
2840
- }, [f, p]), k(() => {
2843
+ }, [f, p]), A(() => {
2841
2844
  if (!f.enabled) return;
2842
2845
  let { startIndex: e, take: n } = t.viewport.window(i.current?.scrollTop ?? 0, a.direction);
2843
2846
  f.request(e, e + n);
@@ -2852,22 +2855,23 @@ function Rt(e) {
2852
2855
  t.expansionVersion
2853
2856
  ]);
2854
2857
  let { range: m } = t, { isDragging: h } = m;
2855
- return k(() => {
2858
+ return A(() => {
2856
2859
  if (h) return window.addEventListener("pointerup", m.endDrag), window.addEventListener("pointercancel", m.endDrag), () => {
2857
2860
  window.removeEventListener("pointerup", m.endDrag), window.removeEventListener("pointercancel", m.endDrag);
2858
2861
  };
2859
2862
  }, [h, m]), n(() => {
2860
2863
  let e = i.current;
2861
2864
  if (!e) return;
2862
- let n = new ResizeObserver(() => t.setContainerWidth(e.clientWidth));
2865
+ let n = new ResizeObserver(() => {
2866
+ t.setContainerWidth(e.clientWidth), t.paintSizes();
2867
+ });
2863
2868
  return n.observe(e), () => n.disconnect();
2864
- }, [t]), t.hasVisibleColumns ? /* @__PURE__ */ L(fe.Provider, {
2869
+ }, [t]), t.hasVisibleColumns ? /* @__PURE__ */ L(me.Provider, {
2865
2870
  value: u,
2866
2871
  children: /* @__PURE__ */ R(r, {
2867
2872
  ref: i,
2868
2873
  component: `${t.componentName}.content`,
2869
2874
  overflowX: "auto",
2870
- scrollbarGutter: t.viewport.showAll ? void 0 : "stable",
2871
2875
  style: { willChange: "scroll-position" },
2872
2876
  props: {
2873
2877
  role: t.tree.enabled ? "treegrid" : "grid",
@@ -2887,13 +2891,13 @@ function Rt(e) {
2887
2891
  version: t.headerVersion
2888
2892
  }),
2889
2893
  (t.props.loading || f.isLoading) && /* @__PURE__ */ L(Lt, { grid: t }),
2890
- /* @__PURE__ */ L(ut, {
2894
+ /* @__PURE__ */ L(ft, {
2891
2895
  grid: t,
2892
2896
  scroll: a
2893
2897
  })
2894
2898
  ]
2895
2899
  })
2896
- }) : /* @__PURE__ */ L(dt, { grid: t });
2900
+ }) : /* @__PURE__ */ L(pt, { grid: t });
2897
2901
  }
2898
2902
  Rt.displayName = "DataGridContent";
2899
2903
  //#endregion
@@ -2902,13 +2906,13 @@ function zt(e) {
2902
2906
  let { grid: t } = e, { error: n } = t.source;
2903
2907
  if (n === void 0) return null;
2904
2908
  let i = n instanceof Error && n.message ? n.message : t.localeText.loadError;
2905
- return /* @__PURE__ */ R(m, {
2909
+ return /* @__PURE__ */ R(p, {
2906
2910
  component: `${t.componentName}.error`,
2907
2911
  props: { role: "alert" },
2908
2912
  children: [/* @__PURE__ */ L(r, {
2909
2913
  component: `${t.componentName}.error.message`,
2910
2914
  children: i
2911
- }), /* @__PURE__ */ L(p, {
2915
+ }), /* @__PURE__ */ L(f, {
2912
2916
  component: `${t.componentName}.error.retry`,
2913
2917
  type: "button",
2914
2918
  onClick: t.source.retry,
@@ -2921,22 +2925,22 @@ zt.displayName = "DataGridDataSourceError";
2921
2925
  //#region src/components/dataGrid/components/dataGridColumnGroups.tsx
2922
2926
  function Bt(e) {
2923
2927
  let { grid: t } = e;
2924
- return t.groupColumns.size === 0 ? null : /* @__PURE__ */ R(m, {
2928
+ return t.groupColumns.size === 0 ? null : /* @__PURE__ */ R(p, {
2925
2929
  component: `${t.componentName}.topBar.columnGroups`,
2926
- children: [/* @__PURE__ */ L(S, {
2930
+ children: [/* @__PURE__ */ L(x, {
2927
2931
  component: `${t.componentName}.topBar.columnGroups.icon`,
2928
- children: /* @__PURE__ */ L(Tt, {
2932
+ children: /* @__PURE__ */ L(Dt, {
2929
2933
  width: "100%",
2930
2934
  fill: "currentColor"
2931
2935
  })
2932
- }), t.groupedColumns.map((e) => /* @__PURE__ */ R(C.Fragment, { children: [/* @__PURE__ */ L(Y, {
2936
+ }), t.groupedColumns.map((e) => /* @__PURE__ */ R(w.Fragment, { children: [/* @__PURE__ */ L(Qe, {
2933
2937
  fill: "currentColor",
2934
2938
  width: "14px",
2935
2939
  height: "14px",
2936
2940
  rotate: -90
2937
- }), /* @__PURE__ */ R(m, {
2941
+ }), /* @__PURE__ */ R(p, {
2938
2942
  component: `${t.componentName}.topBar.columnGroups.item`,
2939
- children: [e.header ?? e.key, /* @__PURE__ */ L(p, {
2943
+ children: [e.header ?? e.key, /* @__PURE__ */ L(f, {
2940
2944
  component: `${t.componentName}.topBar.columnGroups.item.icon`,
2941
2945
  onClick: () => t.toggleGrouping(e.key),
2942
2946
  props: { "aria-label": t.localeText.stopGrouping(String(e.header ?? e.key)) },
@@ -2952,19 +2956,184 @@ function Bt(e) {
2952
2956
  }
2953
2957
  Bt.displayName = "DataGridColumnGroups";
2954
2958
  //#endregion
2955
- //#region src/components/dataGrid/components/dataGridExport.tsx
2959
+ //#region src/icons/searchIcon.tsx
2956
2960
  function Vt(e) {
2961
+ return /* @__PURE__ */ L(d, {
2962
+ viewBox: "0 0 488.4 488.4",
2963
+ width: "1.5rem",
2964
+ ...e,
2965
+ children: /* @__PURE__ */ L(u, { d: "M0 203.25c0 112.1 91.2 203.2 203.2 203.2 51.6 0 98.8-19.4 134.7-51.2l129.5 129.5c2.4 2.4 5.5 3.6 8.7 3.6s6.3-1.2 8.7-3.6c4.8-4.8 4.8-12.5 0-17.3l-129.6-129.5c31.8-35.9 51.2-83 51.2-134.7C406.4 91.15 315.2.05 203.2.05S0 91.15 0 203.25zm381.9 0c0 98.5-80.2 178.7-178.7 178.7s-178.7-80.2-178.7-178.7 80.2-178.7 178.7-178.7 178.7 80.1 178.7 178.7z" })
2966
+ });
2967
+ }
2968
+ //#endregion
2969
+ //#region src/components/dataGrid/components/dataGridColumnsPanel.tsx
2970
+ var Ht = 6;
2971
+ function Ut(e) {
2972
+ let { grid: t } = e, { columnVisibility: n, localeText: i, componentName: a } = t, { visibleCount: o, total: s, hasHidden: c } = n, [l, p] = P(!1), [m, h] = P(""), g = O((e) => {
2973
+ p(e), e || h("");
2974
+ }, []);
2975
+ return /* @__PURE__ */ L(S, {
2976
+ label: i.columnsMenu,
2977
+ side: "bottom",
2978
+ align: "end",
2979
+ open: l,
2980
+ onOpenChange: g,
2981
+ autoFocus: !1,
2982
+ p: 0,
2983
+ overflow: "visible",
2984
+ trigger: (e) => /* @__PURE__ */ R(f, {
2985
+ ...e,
2986
+ component: `${a}.topBar.columnVisibility`,
2987
+ props: {
2988
+ ...e.props,
2989
+ "aria-label": c ? i.columnsMenuLabel(o, s) : void 0
2990
+ },
2991
+ children: [
2992
+ /* @__PURE__ */ L(d, {
2993
+ viewBox: "0 0 20 20",
2994
+ width: 16,
2995
+ height: 16,
2996
+ fill: "none",
2997
+ stroke: "currentColor",
2998
+ strokeWidth: 1.6,
2999
+ children: /* @__PURE__ */ L(u, { d: "M4.5 3.5h11a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1v-11a1 1 0 0 1 1-1ZM8 3.5v13M12 3.5v13" })
3000
+ }),
3001
+ i.columnsMenu,
3002
+ c && /* @__PURE__ */ R(r, {
3003
+ component: `${a}.topBar.columnVisibility.badge`,
3004
+ tag: "span",
3005
+ variant: { empty: o === 0 },
3006
+ props: { "aria-hidden": !0 },
3007
+ children: [
3008
+ o,
3009
+ "/",
3010
+ s
3011
+ ]
3012
+ })
3013
+ ]
3014
+ }),
3015
+ children: /* @__PURE__ */ L(Wt, {
3016
+ grid: t,
3017
+ open: l,
3018
+ query: m,
3019
+ onQueryChange: h
3020
+ })
3021
+ });
3022
+ }
3023
+ Ut.displayName = "DataGridColumnsPanel";
3024
+ function Wt({ grid: e, open: t, query: n, onQueryChange: i }) {
3025
+ let { columnVisibility: a, localeText: o, componentName: s } = e, c = `${s}.topBar.columnVisibility`, l = N(null), u = N(null), d = a.total > Ht, m = a.search(n), h = a.sections(m), g = m.every((e) => e.visible), _ = m.every((e) => !e.visible);
3026
+ A(() => {
3027
+ t && (u.current ?? l.current?.querySelector("input"))?.focus();
3028
+ }, [t]);
3029
+ let y = O((e) => {
3030
+ if (![
3031
+ "ArrowDown",
3032
+ "ArrowUp",
3033
+ "Home",
3034
+ "End"
3035
+ ].includes(e.key) || !l.current) return;
3036
+ let t = Array.from(l.current.querySelectorAll("input[role=\"switch\"]")), n = e.target;
3037
+ if (t.length === 0 || n === u.current && e.key !== "ArrowDown") return;
3038
+ let r = t.indexOf(n), i = {
3039
+ ArrowDown: t[Math.min(r + 1, t.length - 1)],
3040
+ ArrowUp: r <= 0 ? u.current ?? t[0] : t[r - 1],
3041
+ Home: t[0],
3042
+ End: t.at(-1)
3043
+ }[e.key];
3044
+ e.preventDefault(), i?.focus();
3045
+ }, []);
3046
+ return /* @__PURE__ */ R(p, {
3047
+ ref: l,
3048
+ component: `${c}.panel`,
3049
+ props: { onKeyDown: y },
3050
+ children: [
3051
+ d && /* @__PURE__ */ R(p, {
3052
+ component: `${c}.search`,
3053
+ children: [/* @__PURE__ */ L(p, {
3054
+ component: `${c}.searchIcon`,
3055
+ children: /* @__PURE__ */ L(Vt, {
3056
+ fill: "currentColor",
3057
+ width: "14px"
3058
+ })
3059
+ }), /* @__PURE__ */ L(v, {
3060
+ ref: u,
3061
+ component: `${c}.searchInput`,
3062
+ value: n,
3063
+ placeholder: o.columnsMenuSearchPlaceholder,
3064
+ onChange: (e) => i(e.target.value),
3065
+ props: {
3066
+ "aria-label": o.columnsMenuSearchPlaceholder,
3067
+ autoComplete: "off",
3068
+ spellCheck: !1
3069
+ }
3070
+ })]
3071
+ }),
3072
+ /* @__PURE__ */ R(p, {
3073
+ component: `${c}.toolbar`,
3074
+ children: [/* @__PURE__ */ L(r, {
3075
+ component: `${c}.count`,
3076
+ children: o.columnsMenuShown(a.visibleCount, a.total)
3077
+ }), /* @__PURE__ */ R(p, {
3078
+ gap: 1,
3079
+ children: [/* @__PURE__ */ L(f, {
3080
+ component: `${c}.action`,
3081
+ disabled: g,
3082
+ onClick: () => a.setAll(!0, m),
3083
+ children: o.columnsMenuShowAll
3084
+ }), /* @__PURE__ */ L(f, {
3085
+ component: `${c}.action`,
3086
+ disabled: _,
3087
+ onClick: () => a.setAll(!1, m),
3088
+ children: o.columnsMenuHideAll
3089
+ })]
3090
+ })]
3091
+ }),
3092
+ /* @__PURE__ */ R(p, {
3093
+ component: `${c}.list`,
3094
+ children: [h.map((e, t) => /* @__PURE__ */ R(p, {
3095
+ component: `${c}.section`,
3096
+ variant: { divided: t > 0 && !e.group },
3097
+ props: e.group ? {
3098
+ role: "group",
3099
+ "aria-label": e.group
3100
+ } : void 0,
3101
+ children: [e.group && /* @__PURE__ */ L(r, {
3102
+ component: `${c}.group`,
3103
+ props: { "aria-hidden": !0 },
3104
+ children: e.group
3105
+ }), e.entries.map((e) => /* @__PURE__ */ L(C, {
3106
+ checked: e.visible,
3107
+ onChange: () => e.column.toggleVisibility(),
3108
+ label: e.label,
3109
+ labelProps: {
3110
+ component: `${c}.item`,
3111
+ display: "flex"
3112
+ }
3113
+ }, e.id))]
3114
+ }, `${e.group ?? ""}-${t}`)), m.length === 0 && /* @__PURE__ */ L(r, {
3115
+ component: `${c}.empty`,
3116
+ props: { role: "status" },
3117
+ children: o.columnsMenuNoMatch(n.trim())
3118
+ })]
3119
+ })
3120
+ ]
3121
+ });
3122
+ }
3123
+ //#endregion
3124
+ //#region src/components/dataGrid/components/dataGridExport.tsx
3125
+ function Gt(e) {
2957
3126
  let { grid: t } = e, n = t.exportConfig, r = O(() => void t.exportCsv(n).catch(() => void 0), [t, n]), i = O(() => void t.exportXlsx(n).catch(() => void 0), [t, n]);
2958
- return n ? /* @__PURE__ */ R(m, {
3127
+ return n ? /* @__PURE__ */ R(p, {
2959
3128
  component: `${t.componentName}.topBar.export`,
2960
3129
  ai: "center",
2961
3130
  gap: 2,
2962
- children: [n.csv !== !1 && /* @__PURE__ */ L(Ht, {
3131
+ children: [n.csv !== !1 && /* @__PURE__ */ L(Kt, {
2963
3132
  componentName: t.componentName,
2964
3133
  onClick: r,
2965
3134
  label: t.localeText.exportCsvLabel,
2966
3135
  children: t.localeText.exportCsv
2967
- }), n.xlsx !== !1 && /* @__PURE__ */ L(Ht, {
3136
+ }), n.xlsx !== !1 && /* @__PURE__ */ L(Kt, {
2968
3137
  componentName: t.componentName,
2969
3138
  onClick: i,
2970
3139
  label: t.localeText.exportExcelLabel,
@@ -2972,10 +3141,10 @@ function Vt(e) {
2972
3141
  })]
2973
3142
  }) : null;
2974
3143
  }
2975
- Vt.displayName = "DataGridExport";
2976
- function Ht(e) {
3144
+ Gt.displayName = "DataGridExport";
3145
+ function Kt(e) {
2977
3146
  let { componentName: t, onClick: n, label: r, children: i } = e;
2978
- return /* @__PURE__ */ R(p, {
3147
+ return /* @__PURE__ */ R(f, {
2979
3148
  component: `${t}.topBar.export.button`,
2980
3149
  onClick: n,
2981
3150
  props: { "aria-label": r },
@@ -2998,25 +3167,15 @@ function Ht(e) {
2998
3167
  });
2999
3168
  }
3000
3169
  //#endregion
3001
- //#region src/icons/searchIcon.tsx
3002
- function Ut(e) {
3003
- return /* @__PURE__ */ L(d, {
3004
- viewBox: "0 0 488.4 488.4",
3005
- width: "1.5rem",
3006
- ...e,
3007
- children: /* @__PURE__ */ L(u, { d: "M0 203.25c0 112.1 91.2 203.2 203.2 203.2 51.6 0 98.8-19.4 134.7-51.2l129.5 129.5c2.4 2.4 5.5 3.6 8.7 3.6s6.3-1.2 8.7-3.6c4.8-4.8 4.8-12.5 0-17.3l-129.6-129.5c31.8-35.9 51.2-83 51.2-134.7C406.4 91.15 315.2.05 203.2.05S0 91.15 0 203.25zm381.9 0c0 98.5-80.2 178.7-178.7 178.7s-178.7-80.2-178.7-178.7 80.2-178.7 178.7-178.7 178.7 80.1 178.7 178.7z" })
3008
- });
3009
- }
3010
- //#endregion
3011
3170
  //#region src/components/dataGrid/components/dataGridGlobalFilter.tsx
3012
- function Wt(e) {
3013
- let { grid: t } = e, [n, i] = P(t.globalFilterValue), { debounce: a, cancel: o } = ht(t.globalFilterValue, (e) => e === n, i), s = O((e) => {
3171
+ function qt(e) {
3172
+ let { grid: t } = e, [n, i] = P(t.globalFilterValue), { debounce: a, cancel: o } = _t(t.globalFilterValue, (e) => e === n, i), s = O((e) => {
3014
3173
  let n = e.target.value;
3015
3174
  i(n), a("value", () => t.filter.setGlobalFilter(n));
3016
3175
  }, [t, a]), c = O(() => {
3017
3176
  o(), i(""), t.filter.setGlobalFilter("");
3018
3177
  }, [t, o]), { filtered: l, total: u } = t.filter.filterStats, d = !t.props.def.bottomBar && t.filter.hasActiveFilters && l !== u;
3019
- return /* @__PURE__ */ R(m, {
3178
+ return /* @__PURE__ */ R(p, {
3020
3179
  component: `${t.componentName}.topBar.globalFilter`,
3021
3180
  children: [d && /* @__PURE__ */ R(r, {
3022
3181
  component: `${t.componentName}.topBar.globalFilter.stats`,
@@ -3025,22 +3184,22 @@ function Wt(e) {
3025
3184
  "/",
3026
3185
  u
3027
3186
  ]
3028
- }), /* @__PURE__ */ R(m, {
3187
+ }), /* @__PURE__ */ R(p, {
3029
3188
  position: "relative",
3030
3189
  ai: "center",
3031
3190
  children: [
3032
- /* @__PURE__ */ L(m, {
3191
+ /* @__PURE__ */ L(p, {
3033
3192
  position: "absolute",
3034
3193
  insetStart: 3,
3035
3194
  pointerEvents: "none",
3036
3195
  color: "gray-400",
3037
3196
  theme: { dark: { color: "gray-500" } },
3038
- children: /* @__PURE__ */ L(Ut, {
3197
+ children: /* @__PURE__ */ L(Vt, {
3039
3198
  fill: "currentColor",
3040
3199
  width: "14px"
3041
3200
  })
3042
3201
  }),
3043
- /* @__PURE__ */ L(y, {
3202
+ /* @__PURE__ */ L(v, {
3044
3203
  placeholder: t.localeText.searchPlaceholder,
3045
3204
  variant: "compact",
3046
3205
  value: n,
@@ -3071,133 +3230,42 @@ function Wt(e) {
3071
3230
  });
3072
3231
  }
3073
3232
  //#endregion
3074
- //#region src/components/dataGrid/components/dataGridTopBarContextMenu.tsx
3075
- function Gt(e) {
3076
- let { grid: t } = e, { columnVisibility: n } = t, { entries: i, selectedIds: a, total: o, hasHidden: s } = n;
3077
- return /* @__PURE__ */ R(x, {
3078
- component: `${t.componentName}.topBar.columnVisibility`,
3079
- multiple: !0,
3080
- showCheckbox: !0,
3081
- hideIcon: !0,
3082
- variant: "compact",
3083
- value: a,
3084
- onChange: (e, t) => {
3085
- n.setVisibility(t);
3086
- },
3087
- isSearchable: i.length > 6,
3088
- searchPlaceholder: t.localeText.columnsMenuSearchPlaceholder,
3089
- display: "inline-flex",
3090
- props: { "aria-label": t.localeText.columnsMenu },
3091
- children: [
3092
- /* @__PURE__ */ L(x.Display, { children: (e) => {
3093
- let n = e.length === 0;
3094
- return /* @__PURE__ */ R(m, {
3095
- ai: "center",
3096
- gap: 2,
3097
- children: [/* @__PURE__ */ R(f, {
3098
- viewBox: "0 0 20 20",
3099
- width: "18",
3100
- height: "18",
3101
- children: [
3102
- /* @__PURE__ */ L("rect", {
3103
- x: "2",
3104
- y: "3",
3105
- width: "4",
3106
- height: "14",
3107
- rx: "1",
3108
- fill: "currentColor",
3109
- opacity: .9
3110
- }),
3111
- /* @__PURE__ */ L("rect", {
3112
- x: "8",
3113
- y: "3",
3114
- width: "4",
3115
- height: "14",
3116
- rx: "1",
3117
- fill: "currentColor",
3118
- opacity: .6
3119
- }),
3120
- /* @__PURE__ */ L("rect", {
3121
- x: "14",
3122
- y: "3",
3123
- width: "4",
3124
- height: "14",
3125
- rx: "1",
3126
- fill: "currentColor",
3127
- opacity: .3
3128
- })
3129
- ]
3130
- }), s && /* @__PURE__ */ R(r, {
3131
- component: `${t.componentName}.topBar.columnVisibility.badge`,
3132
- tag: "span",
3133
- fontSize: 11,
3134
- lineHeight: 16,
3135
- fontWeight: 500,
3136
- px: 2,
3137
- py: .5,
3138
- borderRadius: 1,
3139
- bgColor: n ? "red-100" : "amber-100",
3140
- color: n ? "red-700" : "amber-700",
3141
- theme: { dark: {
3142
- bgColor: n ? "red-900" : "amber-900",
3143
- color: n ? "red-300" : "amber-300"
3144
- } },
3145
- children: [
3146
- e.length,
3147
- "/",
3148
- o
3149
- ]
3150
- })]
3151
- });
3152
- } }),
3153
- /* @__PURE__ */ L(x.SelectAll, { children: t.localeText.columnsMenuShowAll }),
3154
- /* @__PURE__ */ L(x.Unselect, { children: t.localeText.columnsMenuHideAll }),
3155
- i.map((e) => /* @__PURE__ */ L(x.Item, {
3156
- value: e.id,
3157
- textWrap: "nowrap",
3158
- children: e.label
3159
- }, e.id))
3160
- ]
3161
- });
3162
- }
3163
- Gt.displayName = "DataGridTopBarContextMenu";
3164
- //#endregion
3165
3233
  //#region src/components/dataGrid/components/dataGridTopBar.tsx
3166
- function Kt(e) {
3234
+ function Jt(e) {
3167
3235
  let { grid: t } = e, { title: n, topBarContent: i, globalFilter: a } = t.props.def;
3168
- return /* @__PURE__ */ R(m, {
3236
+ return /* @__PURE__ */ R(p, {
3169
3237
  component: `${t.componentName}.topBar`,
3170
3238
  position: "relative",
3171
3239
  d: "column",
3172
3240
  gap: 3,
3173
- children: [/* @__PURE__ */ R(m, {
3241
+ children: [/* @__PURE__ */ R(p, {
3174
3242
  ai: "center",
3175
3243
  jc: "space-between",
3176
3244
  gap: 4,
3177
3245
  flexWrap: "wrap",
3178
3246
  width: "fit",
3179
- children: [/* @__PURE__ */ R(m, {
3247
+ children: [/* @__PURE__ */ R(p, {
3180
3248
  ai: "center",
3181
3249
  gap: 3,
3182
3250
  flexWrap: "wrap",
3183
3251
  minWidth: 0,
3184
- children: [
3185
- /* @__PURE__ */ L(Gt, { grid: t }),
3186
- n && /* @__PURE__ */ L(r, {
3187
- id: t.titleId,
3188
- fontWeight: 600,
3189
- fontSize: 16,
3190
- color: "gray-800",
3191
- theme: { dark: { color: "gray-100" } },
3192
- children: n
3193
- }),
3194
- /* @__PURE__ */ L(Bt, { grid: t })
3195
- ]
3196
- }), /* @__PURE__ */ R(m, {
3252
+ children: [n && /* @__PURE__ */ L(r, {
3253
+ id: t.titleId,
3254
+ fontWeight: 600,
3255
+ fontSize: 16,
3256
+ color: "gray-800",
3257
+ theme: { dark: { color: "gray-100" } },
3258
+ children: n
3259
+ }), /* @__PURE__ */ L(Bt, { grid: t })]
3260
+ }), /* @__PURE__ */ R(p, {
3197
3261
  ai: "center",
3198
3262
  gap: 3,
3199
3263
  flexWrap: "wrap",
3200
- children: [a && /* @__PURE__ */ L(Wt, { grid: t }), /* @__PURE__ */ L(Vt, { grid: t })]
3264
+ children: [
3265
+ a && /* @__PURE__ */ L(qt, { grid: t }),
3266
+ /* @__PURE__ */ L(Ut, { grid: t }),
3267
+ /* @__PURE__ */ L(Gt, { grid: t })
3268
+ ]
3201
3269
  })]
3202
3270
  }), i && /* @__PURE__ */ L(r, {
3203
3271
  width: "fit",
@@ -3205,10 +3273,10 @@ function Kt(e) {
3205
3273
  })]
3206
3274
  });
3207
3275
  }
3208
- Kt.displayName = "DataGridTopBar";
3276
+ Jt.displayName = "DataGridTopBar";
3209
3277
  //#endregion
3210
3278
  //#region src/utils/string/fuzzySearch.ts
3211
- function qt(e, t) {
3279
+ function Yt(e, t) {
3212
3280
  if (!e) return {
3213
3281
  score: 1,
3214
3282
  matches: []
@@ -3221,16 +3289,16 @@ function qt(e, t) {
3221
3289
  matches: o
3222
3290
  });
3223
3291
  }
3224
- function Jt(e, t) {
3225
- return qt(e, t) !== null;
3292
+ function Xt(e, t) {
3293
+ return Yt(e, t) !== null;
3226
3294
  }
3227
3295
  //#endregion
3228
3296
  //#region src/components/dataGrid/components/dataGridCellRowDetail.tsx
3229
- function Yt(e) {
3297
+ function Zt(e) {
3230
3298
  let { cell: t } = e, n = t.isExpanded, r = O((e) => {
3231
3299
  e.stopPropagation(), t.toggleDetail();
3232
3300
  }, [t]);
3233
- return /* @__PURE__ */ L(p, {
3301
+ return /* @__PURE__ */ L(f, {
3234
3302
  component: `${t.grid.componentName}.body.cell.rowDetail`,
3235
3303
  variant: { isExpanded: n },
3236
3304
  type: "button",
@@ -3246,7 +3314,7 @@ function Yt(e) {
3246
3314
  "aria-label": (n ? t.grid.localeText.collapseRowDetail : t.grid.localeText.expandRowDetail)(t.row.rowIndex + 1),
3247
3315
  "aria-expanded": n
3248
3316
  },
3249
- children: /* @__PURE__ */ L(Y, {
3317
+ children: /* @__PURE__ */ L(Qe, {
3250
3318
  fill: "currentColor",
3251
3319
  width: "14px",
3252
3320
  height: "14px",
@@ -3254,14 +3322,14 @@ function Yt(e) {
3254
3322
  })
3255
3323
  });
3256
3324
  }
3257
- Yt.displayName = "DataGridCellRowDetail";
3325
+ Zt.displayName = "DataGridCellRowDetail";
3258
3326
  //#endregion
3259
3327
  //#region src/components/dataGrid/components/dataGridCellRowSelection.tsx
3260
- function Xt(e) {
3328
+ function Qt(e) {
3261
3329
  let { cell: t } = e, n = O(() => {
3262
3330
  t.toggleSelection();
3263
3331
  }, [t]);
3264
- return /* @__PURE__ */ L(h, {
3332
+ return /* @__PURE__ */ L(m, {
3265
3333
  variant: "datagrid",
3266
3334
  checked: t.selected,
3267
3335
  indeterminate: t.indeterminate,
@@ -3272,15 +3340,15 @@ function Xt(e) {
3272
3340
  }
3273
3341
  });
3274
3342
  }
3275
- Xt.displayName = "DataGridCellRowSelection";
3343
+ Qt.displayName = "DataGridCellRowSelection";
3276
3344
  //#endregion
3277
3345
  //#region src/components/dataGrid/contracts/dataGridContract.ts
3278
- function Zt(e) {
3346
+ function $t(e) {
3279
3347
  if (e) return e === "LEFT" ? "START" : e === "RIGHT" ? "END" : e;
3280
3348
  }
3281
3349
  //#endregion
3282
3350
  //#region src/components/dataGrid/models/headerCellModel.ts
3283
- var Qt = 1e3, $t = class {
3351
+ var en = 1e3, tn = class {
3284
3352
  column;
3285
3353
  constructor(e) {
3286
3354
  this.column = e;
@@ -3293,7 +3361,7 @@ var Qt = 1e3, $t = class {
3293
3361
  if (e.isRowNumber || e.isRowSelection) return null;
3294
3362
  if (e.isGrouping) {
3295
3363
  if (this.grid.groupColumns.size === 1) {
3296
- let e = this.grid.groupColumns.values().next().value, t = G.findOrThrow(this.grid.columns.value.leafs, (t) => t.key === e);
3364
+ let e = this.grid.groupColumns.values().next().value, t = W.findOrThrow(this.grid.columns.value.leafs, (t) => t.key === e);
3297
3365
  return t.header ?? t.key;
3298
3366
  }
3299
3367
  return this.grid.localeText.groupHeader;
@@ -3346,6 +3414,10 @@ var Qt = 1e3, $t = class {
3346
3414
  get resizerLabel() {
3347
3415
  return this.grid.localeText.resizeColumn(String(this.label ?? this.column.key));
3348
3416
  }
3417
+ get isAtGridEnd() {
3418
+ let e = this.column.leafs.at(-1);
3419
+ return this.column.pin !== "END" && !!e && this.grid.columns.value.visibleLeafs.at(-1) === e;
3420
+ }
3349
3421
  get width() {
3350
3422
  return this.column.inlineWidth ?? this.column.baseWidth;
3351
3423
  }
@@ -3353,7 +3425,7 @@ var Qt = 1e3, $t = class {
3353
3425
  return Math.max(1, this.column.leafs.length) * this.grid.MIN_COLUMN_WIDTH_PX;
3354
3426
  }
3355
3427
  get maxWidth() {
3356
- return Math.max(this.grid.containerWidth || Qt, this.width, this.minWidth);
3428
+ return Math.max(this.grid.containerWidth || en, this.width, this.minWidth);
3357
3429
  }
3358
3430
  get paddingStart() {
3359
3431
  if (!this.column.isRowSelection) return this.column.isEndAligned ? 10 : 3;
@@ -3438,16 +3510,16 @@ var Qt = 1e3, $t = class {
3438
3510
  pin: t.pin
3439
3511
  } : r, n, this)) ?? [], this.isLeaf) {
3440
3512
  let e = this.grid.columnWidths.get(this.key);
3441
- this._inlineWidth = e ?? this.def.width ?? this.grid.DEFAULT_COLUMN_WIDTH_PX, this._pin = Zt(t.pin);
3513
+ this._inlineWidth = e ?? this.def.width ?? this.grid.DEFAULT_COLUMN_WIDTH_PX, this._pin = $t(t.pin);
3442
3514
  }
3443
3515
  }
3444
3516
  columns = [];
3445
3517
  get kind() {
3446
3518
  switch (this.key) {
3447
- case Fe: return "rowNumber";
3448
- case Ie: return "rowSelection";
3449
- case Le: return "rowDetail";
3450
- case K: return "grouping";
3519
+ case Pe: return "rowNumber";
3520
+ case Fe: return "rowSelection";
3521
+ case Ie: return "rowDetail";
3522
+ case G: return "grouping";
3451
3523
  default: return "data";
3452
3524
  }
3453
3525
  }
@@ -3466,7 +3538,7 @@ var Qt = 1e3, $t = class {
3466
3538
  get isData() {
3467
3539
  return this.kind === "data";
3468
3540
  }
3469
- pinFlags = H(() => {
3541
+ pinFlags = q(() => {
3470
3542
  let e = this.pin === "START", t = this.pin === "END";
3471
3543
  return {
3472
3544
  isStartPinned: e,
@@ -3478,7 +3550,7 @@ var Qt = 1e3, $t = class {
3478
3550
  isLastEndPinned: t && this.endOffset === 0
3479
3551
  };
3480
3552
  }, () => [this.grid.columns]);
3481
- cellVariant = H(() => {
3553
+ cellVariant = q(() => {
3482
3554
  let { isPinned: e, isFirstStartPinned: t, isLastStartPinned: n, isFirstEndPinned: r, isLastEndPinned: i } = this.pinFlags.value;
3483
3555
  return {
3484
3556
  isPinned: e,
@@ -3493,7 +3565,7 @@ var Qt = 1e3, $t = class {
3493
3565
  isRowDetail: this.isRowDetail
3494
3566
  };
3495
3567
  }, () => [this.pinFlags]);
3496
- cellStyleVars = H(() => {
3568
+ cellStyleVars = q(() => {
3497
3569
  let { isStartPinned: e, isEndPinned: t } = this.pinFlags.value;
3498
3570
  return {
3499
3571
  width: `var(${this.widthVarName})`,
@@ -3502,7 +3574,7 @@ var Qt = 1e3, $t = class {
3502
3574
  insetInlineEnd: t ? `var(${this.inlineEndVarName})` : void 0
3503
3575
  };
3504
3576
  }, () => [this.pinFlags]);
3505
- _headerCell = H(() => new $t(this));
3577
+ _headerCell = q(() => new tn(this));
3506
3578
  get headerCell() {
3507
3579
  return this._headerCell.value;
3508
3580
  }
@@ -3523,6 +3595,9 @@ var Qt = 1e3, $t = class {
3523
3595
  get header() {
3524
3596
  return this.def.header;
3525
3597
  }
3598
+ get group() {
3599
+ return this.parent;
3600
+ }
3526
3601
  get align() {
3527
3602
  return this.def.align;
3528
3603
  }
@@ -3663,16 +3738,16 @@ var Qt = 1e3, $t = class {
3663
3738
  get inlineWidth() {
3664
3739
  if (this.isLeaf) return this.grid.getFlexWidth(this.key) ?? this._inlineWidth;
3665
3740
  let e = this.visibleColumns.map((e) => e.inlineWidth).filter((e) => typeof e == "number");
3666
- if (e.length !== 0) return G.sumBy(e, (e) => e);
3741
+ if (e.length !== 0) return W.sumBy(e, (e) => e);
3667
3742
  }
3668
3743
  get startOffset() {
3669
3744
  let e = 0;
3670
3745
  if (this.parent) {
3671
3746
  let { visibleColumns: t, startOffset: n } = this.parent, r = t.findIndex((e) => e === this);
3672
- e += G.sumBy(t, (e, t) => t < r ? e.inlineWidth ?? 0 : 0), e += n;
3747
+ e += W.sumBy(t, (e, t) => t < r ? e.inlineWidth ?? 0 : 0), e += n;
3673
3748
  } else {
3674
3749
  let t = this.grid.columns.value.start.filter((e) => e.isVisible), n = t.findIndex((e) => e === this);
3675
- e += G.sumBy(t, (e, t) => t < n ? e.inlineWidth ?? 0 : 0);
3750
+ e += W.sumBy(t, (e, t) => t < n ? e.inlineWidth ?? 0 : 0);
3676
3751
  }
3677
3752
  return e;
3678
3753
  }
@@ -3680,10 +3755,10 @@ var Qt = 1e3, $t = class {
3680
3755
  let e = 0;
3681
3756
  if (this.parent) {
3682
3757
  let { visibleColumns: t } = this.parent, n = t.reverse(), r = n.findIndex((e) => e === this);
3683
- e += G.sumBy(n, (e, t) => t < r ? e.inlineWidth ?? 0 : 0), e += this.parent.endOffset;
3758
+ e += W.sumBy(n, (e, t) => t < r ? e.inlineWidth ?? 0 : 0), e += this.parent.endOffset;
3684
3759
  } else {
3685
3760
  let t = this.grid.columns.value.end.filter((e) => e.isVisible).reverse(), n = t.findIndex((e) => e === this);
3686
- e += G.sumBy(t, (e, t) => t < n ? e.inlineWidth ?? 0 : 0);
3761
+ e += W.sumBy(t, (e, t) => t < n ? e.inlineWidth ?? 0 : 0);
3687
3762
  }
3688
3763
  return e;
3689
3764
  }
@@ -3721,7 +3796,7 @@ var Qt = 1e3, $t = class {
3721
3796
  _resizeTotalWidth = 0;
3722
3797
  beginResize = (e) => {
3723
3798
  let { MIN_COLUMN_WIDTH_PX: t } = this.grid;
3724
- this._resizeStartX = e, this._resizeSizes = G.toRecord(this.leafs, (e) => [e.key, e.inlineWidth ?? e.baseWidth]), this._resizeTotalWidth = G.sumBy(this.leafs, (e) => this._resizeSizes[e.key]) - this.leafs.length * t;
3799
+ this._resizeStartX = e, this._resizeSizes = W.toRecord(this.leafs, (e) => [e.key, e.inlineWidth ?? e.baseWidth]), this._resizeTotalWidth = W.sumBy(this.leafs, (e) => this._resizeSizes[e.key]) - this.leafs.length * t;
3725
3800
  };
3726
3801
  get resizeSign() {
3727
3802
  return this.pin === "END" === this.grid.isRtl ? 1 : -1;
@@ -3747,7 +3822,7 @@ var Qt = 1e3, $t = class {
3747
3822
  this.moveResizer((e - t) * this.resizeSign);
3748
3823
  };
3749
3824
  pinColumn = (e) => {
3750
- this.isLeaf ? this._pin = Zt(e) : this.columns.forEach((t) => t.pinColumn(e)), this.grid.pinColumn(this.uniqueKey, e);
3825
+ this.isLeaf ? this._pin = $t(e) : this.columns.forEach((t) => t.pinColumn(e)), this.grid.pinColumn(this.uniqueKey, e);
3751
3826
  };
3752
3827
  toggleGrouping = () => {
3753
3828
  this.grid.toggleGrouping(this.key);
@@ -3762,18 +3837,22 @@ var Qt = 1e3, $t = class {
3762
3837
  toggleVisibility = () => {
3763
3838
  this.grid.toggleColumnVisibility(this.key);
3764
3839
  };
3765
- }, en = class {
3840
+ }, nn = class {
3766
3841
  grid;
3767
3842
  constructor(e) {
3768
3843
  this.grid = e;
3769
3844
  }
3770
3845
  get entries() {
3771
- return this.grid.columns.value.leafs.filter((e) => e.isData).map((e) => ({
3772
- id: String(e.key),
3773
- label: String(e.header ?? e.key),
3774
- column: e,
3775
- visible: e.isVisible
3776
- }));
3846
+ return this.grid.columns.value.leafs.filter((e) => e.isData).map((e) => {
3847
+ let t = e.group?.header ?? e.group?.key;
3848
+ return {
3849
+ id: String(e.key),
3850
+ label: String(e.header ?? e.key),
3851
+ group: t === void 0 ? void 0 : String(t),
3852
+ column: e,
3853
+ visible: e.isVisible
3854
+ };
3855
+ });
3777
3856
  }
3778
3857
  get selectedIds() {
3779
3858
  return this.entries.filter((e) => e.visible).map((e) => e.id);
@@ -3781,12 +3860,28 @@ var Qt = 1e3, $t = class {
3781
3860
  get total() {
3782
3861
  return this.entries.length;
3783
3862
  }
3863
+ get visibleCount() {
3864
+ return this.total - this.hiddenCount;
3865
+ }
3784
3866
  get hiddenCount() {
3785
3867
  return this.entries.reduce((e, t) => t.visible ? e : e + 1, 0);
3786
3868
  }
3787
3869
  get hasHidden() {
3788
3870
  return this.hiddenCount > 0;
3789
3871
  }
3872
+ search(e) {
3873
+ let t = e.trim().toLocaleLowerCase();
3874
+ return t ? this.entries.filter((e) => e.label.toLocaleLowerCase().includes(t) || !!e.group?.toLocaleLowerCase().includes(t)) : this.entries;
3875
+ }
3876
+ sections(e) {
3877
+ return e.reduce((e, t) => {
3878
+ let n = e.at(-1);
3879
+ return n && n.group === t.group ? n.entries.push(t) : e.push({
3880
+ group: t.group,
3881
+ entries: [t]
3882
+ }), e;
3883
+ }, []);
3884
+ }
3790
3885
  setVisibility = (e) => {
3791
3886
  let t = new Set(e);
3792
3887
  this.entries.forEach((e) => {
@@ -3794,22 +3889,27 @@ var Qt = 1e3, $t = class {
3794
3889
  e.visible !== n && e.column.toggleVisibility();
3795
3890
  });
3796
3891
  };
3892
+ setAll = (e, t = this.entries) => {
3893
+ t.forEach((t) => {
3894
+ t.visible !== e && t.column.toggleVisibility();
3895
+ });
3896
+ };
3797
3897
  };
3798
3898
  //#endregion
3799
3899
  //#region src/utils/array/lazyList.ts
3800
- function tn(e, t) {
3900
+ function rn(e, t) {
3801
3901
  return new Proxy([], {
3802
3902
  get(n, r, i) {
3803
3903
  if (r === "length") return e;
3804
- let a = nn(r, e);
3904
+ let a = an(r, e);
3805
3905
  return a === void 0 ? Reflect.get(n, r, i) : t(a);
3806
3906
  },
3807
3907
  has(t, n) {
3808
- return nn(n, e) !== void 0 || Reflect.has(t, n);
3908
+ return an(n, e) !== void 0 || Reflect.has(t, n);
3809
3909
  },
3810
3910
  getOwnPropertyDescriptor(n, r) {
3811
- return nn(r, e) === void 0 ? Reflect.getOwnPropertyDescriptor(n, r) : {
3812
- value: t(nn(r, e)),
3911
+ return an(r, e) === void 0 ? Reflect.getOwnPropertyDescriptor(n, r) : {
3912
+ value: t(an(r, e)),
3813
3913
  writable: !0,
3814
3914
  enumerable: !0,
3815
3915
  configurable: !0
@@ -3817,7 +3917,7 @@ function tn(e, t) {
3817
3917
  }
3818
3918
  });
3819
3919
  }
3820
- function nn(e, t) {
3920
+ function an(e, t) {
3821
3921
  if (typeof e != "string") return;
3822
3922
  let n = Number(e);
3823
3923
  return Number.isInteger(n) && n >= 0 && n < t ? n : void 0;
@@ -3948,7 +4048,7 @@ var $ = class e {
3948
4048
  }), this.source.changed());
3949
4049
  });
3950
4050
  }
3951
- }, rn = class extends Ge {
4051
+ }, on = class extends Ke {
3952
4052
  level;
3953
4053
  constructor(e, t, n, r) {
3954
4054
  super(e, n, [], r, ""), this.level = t;
@@ -3970,7 +4070,7 @@ var $ = class e {
3970
4070
  return [...this.level.groupKeys, this.groupValue];
3971
4071
  }
3972
4072
  get key() {
3973
- return this.placeholder ? `${this.level.placeholderKey}-group-${this.rowIndex}` : an(this.groupKeys);
4073
+ return this.placeholder ? `${this.level.placeholderKey}-group-${this.rowIndex}` : sn(this.groupKeys);
3974
4074
  }
3975
4075
  get depth() {
3976
4076
  return this.level.depth;
@@ -4006,21 +4106,21 @@ var $ = class e {
4006
4106
  this.placeholder || this.grid.toggleGroupRow(this.key);
4007
4107
  }
4008
4108
  };
4009
- function an(e) {
4109
+ function sn(e) {
4010
4110
  return `rb-group:${$.keyOf(e)}`;
4011
4111
  }
4012
4112
  //#endregion
4013
4113
  //#region src/components/dataGrid/models/sourceRowModel.ts
4014
- var on = {}, sn = class extends W {
4114
+ var cn = {}, ln = class extends U {
4015
4115
  sourceLevel;
4016
4116
  constructor(e, t, n) {
4017
- super(e, on, n), this.sourceLevel = t;
4117
+ super(e, cn, n), this.sourceLevel = t;
4018
4118
  }
4019
4119
  get row() {
4020
4120
  return this.sourceLevel.rowAt(this.rowIndex);
4021
4121
  }
4022
4122
  get data() {
4023
- return this.row ?? on;
4123
+ return this.row ?? cn;
4024
4124
  }
4025
4125
  get placeholder() {
4026
4126
  return this.row === void 0;
@@ -4038,7 +4138,7 @@ var on = {}, sn = class extends W {
4038
4138
  get selected() {
4039
4139
  return !this.placeholder && super.selected;
4040
4140
  }
4041
- }, cn = class extends sn {
4141
+ }, un = class extends ln {
4042
4142
  isTreeRow = !0;
4043
4143
  get level() {
4044
4144
  return this.sourceLevel.depth;
@@ -4058,7 +4158,7 @@ var on = {}, sn = class extends W {
4058
4158
  toggleTree = () => {
4059
4159
  this.hasChildren && this.grid.tree.toggle(this.key, this.level);
4060
4160
  };
4061
- }, ln = 100, un = 40, dn = class {
4161
+ }, dn = 100, fn = 40, pn = class {
4062
4162
  grid;
4063
4163
  constructor(e) {
4064
4164
  this.grid = e;
@@ -4084,11 +4184,11 @@ var on = {}, sn = class extends W {
4084
4184
  }
4085
4185
  get blockSize() {
4086
4186
  let e = this.config?.blockSize;
4087
- return e && e > 0 ? Math.floor(e) : this.grid.isPaginated ? this.grid.pageSize : ln;
4187
+ return e && e > 0 ? Math.floor(e) : this.grid.isPaginated ? this.grid.pageSize : dn;
4088
4188
  }
4089
4189
  get maxBlocks() {
4090
4190
  let e = this.config?.maxBlocks;
4091
- return e && e > 0 ? Math.floor(e) : un;
4191
+ return e && e > 0 ? Math.floor(e) : fn;
4092
4192
  }
4093
4193
  get queryVersion() {
4094
4194
  return this._query;
@@ -4143,7 +4243,7 @@ var on = {}, sn = class extends W {
4143
4243
  return e.loadedBlocks().forEach(({ index: a, rows: o }) => {
4144
4244
  o.forEach((o, s) => {
4145
4245
  let c = [...e.path, o[r]];
4146
- if (!t.has(an(c))) return;
4246
+ if (!t.has(sn(c))) return;
4147
4247
  let l = a * n + s;
4148
4248
  i.push({
4149
4249
  rowIndex: l,
@@ -4197,20 +4297,20 @@ var on = {}, sn = class extends W {
4197
4297
  listLength = -1;
4198
4298
  rowList() {
4199
4299
  let { start: e } = this.visibleRange();
4200
- return this.listLength = this.visibleLength(), tn(this.listLength, (t) => this.rowModelAt(e + t));
4300
+ return this.listLength = this.visibleLength(), rn(this.listLength, (t) => this.rowModelAt(e + t));
4201
4301
  }
4202
4302
  flatRowList(e) {
4203
4303
  let t = this.detailPositions();
4204
- return t.length === 0 ? e : tn(e.length + t.length, (n) => {
4205
- let r = pn(t, n);
4206
- return t[r] === n ? new De(this.grid, e[n - r - 1]) : e[n - r];
4304
+ return t.length === 0 ? e : rn(e.length + t.length, (n) => {
4305
+ let r = hn(t, n);
4306
+ return t[r] === n ? new Ee(this.grid, e[n - r - 1]) : e[n - r];
4207
4307
  });
4208
4308
  }
4209
4309
  rowOffsets(e) {
4210
4310
  let { rowHeight: t } = this.grid, n = this.detailPositions(), r = [0];
4211
4311
  return n.forEach((t, n) => r.push(r[n] + e[t].heightForOffset)), {
4212
- offsets: tn(e.length, (e) => {
4213
- let i = pn(n, e);
4312
+ offsets: rn(e.length, (e) => {
4313
+ let i = hn(n, e);
4214
4314
  return (e - i) * t + r[i];
4215
4315
  }),
4216
4316
  totalHeight: (e.length - n.length) * t + r[n.length]
@@ -4239,7 +4339,7 @@ var on = {}, sn = class extends W {
4239
4339
  let i = this.levels.get(r);
4240
4340
  !i || i.isGroupLevel || i.loadedBlocks().forEach(({ index: r, rows: i }) => {
4241
4341
  i.forEach((i, a) => {
4242
- let o = fn(n, r * t + a);
4342
+ let o = mn(n, r * t + a);
4243
4343
  o !== void 0 && e(o, i);
4244
4344
  });
4245
4345
  });
@@ -4247,14 +4347,14 @@ var on = {}, sn = class extends W {
4247
4347
  }
4248
4348
  rowModelAt(e) {
4249
4349
  let t = this.segmentAt(e);
4250
- if (!t) return new sn(this.grid, this.root, e);
4350
+ if (!t) return new ln(this.grid, this.root, e);
4251
4351
  let { level: n } = t, r = t.levelStart + (e - t.start), i = this.models.get(n.key);
4252
4352
  i || this.models.set(n.key, i = /* @__PURE__ */ new Map());
4253
4353
  let a = i.get(r);
4254
- return a || (a = n.isGroupLevel ? new rn(this.grid, n, this.groupColumnAt(n.depth), r) : this.isTree ? new cn(this.grid, n, r) : new sn(this.grid, n, r), i.set(r, a)), a;
4354
+ return a || (a = n.isGroupLevel ? new on(this.grid, n, this.groupColumnAt(n.depth), r) : this.isTree ? new un(this.grid, n, r) : new ln(this.grid, n, r), i.set(r, a)), a;
4255
4355
  }
4256
4356
  groupColumnAt(e) {
4257
- return G.findOrThrow(this.grid.columns.value.leafs, (t) => t.key === this.groupBy[e]);
4357
+ return W.findOrThrow(this.grid.columns.value.leafs, (t) => t.key === this.groupBy[e]);
4258
4358
  }
4259
4359
  visibleLength() {
4260
4360
  let { start: e, end: t } = this.visibleRange();
@@ -4340,10 +4440,10 @@ var on = {}, sn = class extends W {
4340
4440
  this._segments = void 0, this._byLevel = void 0, this.listLength !== this.visibleLength() && this.grid.rows.clear(), this.grid.flatRows.clear(), this.grid.notify();
4341
4441
  }
4342
4442
  };
4343
- function fn(e, t) {
4443
+ function mn(e, t) {
4344
4444
  for (let n of e) if (t >= n.levelStart && t < n.levelStart + n.length) return n.start + (t - n.levelStart);
4345
4445
  }
4346
- function pn(e, t) {
4446
+ function hn(e, t) {
4347
4447
  let n = 0, r = e.length;
4348
4448
  for (; n < r;) {
4349
4449
  let i = n + r >>> 1;
@@ -4353,7 +4453,7 @@ function pn(e, t) {
4353
4453
  }
4354
4454
  //#endregion
4355
4455
  //#region src/components/dataGrid/models/exportModel.ts
4356
- var mn = 7, hn = class {
4456
+ var gn = 7, _n = class {
4357
4457
  grid;
4358
4458
  constructor(e) {
4359
4459
  this.grid = e;
@@ -4367,7 +4467,7 @@ var mn = 7, hn = class {
4367
4467
  }
4368
4468
  width(e) {
4369
4469
  let t = e.inlineWidth ?? this.grid.DEFAULT_COLUMN_WIDTH_PX;
4370
- return Math.min(80, Math.max(6, Math.round(t / mn * 10) / 10));
4470
+ return Math.min(80, Math.max(6, Math.round(t / gn * 10) / 10));
4371
4471
  }
4372
4472
  value(e, t) {
4373
4473
  let { exportValue: n } = e.def, r = n ? n(t) : t[e.key];
@@ -4375,7 +4475,7 @@ var mn = 7, hn = class {
4375
4475
  }
4376
4476
  aggregateOf(e, t) {
4377
4477
  let n = e.aggregate;
4378
- return n ? Ve(n, t.map((t) => this.value(e, t)), t) : null;
4478
+ return n ? He(n, t.map((t) => this.value(e, t)), t) : null;
4379
4479
  }
4380
4480
  table(e = {}) {
4381
4481
  let t = this.columns(e.columns), n = e.groups ?? !0, r = [], i = (e, a, o) => {
@@ -4390,7 +4490,7 @@ var mn = 7, hn = class {
4390
4490
  }), i(s.rows, n ? a + 1 : a, o || n && e);
4391
4491
  } else {
4392
4492
  if (s.placeholder) continue;
4393
- let e = Oe(s) ? s.level : a;
4493
+ let e = De(s) ? s.level : a;
4394
4494
  r.push({
4395
4495
  kind: "data",
4396
4496
  level: e,
@@ -4439,7 +4539,7 @@ var mn = 7, hn = class {
4439
4539
  let { title: t } = this.grid.props.def, n = typeof t == "string" && t.trim() ? t.trim() : this.grid.localeText.exportFileName;
4440
4540
  return e.fileName?.trim() || n;
4441
4541
  }
4442
- }, gn = class {
4542
+ }, vn = class {
4443
4543
  grid;
4444
4544
  constructor(e) {
4445
4545
  this.grid = e;
@@ -4461,12 +4561,15 @@ var mn = 7, hn = class {
4461
4561
  }
4462
4562
  setGlobalFilter = (e) => this.grid.setGlobalFilter(e);
4463
4563
  clearAllFilters = () => this.grid.clearAllFilters();
4464
- }, _n = {
4564
+ }, yn = {
4465
4565
  searchPlaceholder: "Search...",
4466
4566
  columnsMenu: "Columns",
4467
- columnsMenuSearchPlaceholder: "Search columns...",
4468
- columnsMenuShowAll: "Show All",
4469
- columnsMenuHideAll: "Hide All",
4567
+ columnsMenuLabel: (e, t) => `Columns, ${e} of ${t} shown`,
4568
+ columnsMenuSearchPlaceholder: "Search columns",
4569
+ columnsMenuShowAll: "Show all",
4570
+ columnsMenuHideAll: "Hide all",
4571
+ columnsMenuShown: (e, t) => `${e} of ${t} shown`,
4572
+ columnsMenuNoMatch: (e) => `No columns match “${e}”`,
4470
4573
  stopGrouping: (e) => `Stop grouping by ${e}`,
4471
4574
  exportCsv: "CSV",
4472
4575
  exportCsvLabel: "Export CSV",
@@ -4534,7 +4637,7 @@ var mn = 7, hn = class {
4534
4637
  nextPage: "Next page",
4535
4638
  lastPage: "Last page",
4536
4639
  selectionAnnouncement: (e, t) => e === 0 ? "No rows selected" : `${e} of ${t} rows selected`
4537
- }, vn = class {
4640
+ }, bn = class {
4538
4641
  grid;
4539
4642
  constructor(e) {
4540
4643
  this.grid = e;
@@ -4590,16 +4693,16 @@ var mn = 7, hn = class {
4590
4693
  let t = parseInt(e, 10);
4591
4694
  isNaN(t) || this.grid.changePage(Math.max(1, Math.min(t, this.totalPages)));
4592
4695
  };
4593
- }, yn = /["\t\r\n]/;
4594
- function bn(e) {
4696
+ }, xn = /["\t\r\n]/;
4697
+ function Sn(e) {
4595
4698
  if (e == null) return "";
4596
4699
  let t = e instanceof Date ? e.toISOString() : String(e);
4597
- return yn.test(t) ? `"${t.split("\"").join("\"\"")}"` : t;
4700
+ return xn.test(t) ? `"${t.split("\"").join("\"\"")}"` : t;
4598
4701
  }
4599
- function xn(e) {
4600
- return e.map((e) => e.map(bn).join(" ")).join("\r\n");
4702
+ function Cn(e) {
4703
+ return e.map((e) => e.map(Sn).join(" ")).join("\r\n");
4601
4704
  }
4602
- function Sn(e) {
4705
+ function wn(e) {
4603
4706
  let t = [], n = [], r = "", i = !1;
4604
4707
  for (let a = 0; a < e.length; a++) {
4605
4708
  let o = e[a];
@@ -4607,10 +4710,10 @@ function Sn(e) {
4607
4710
  }
4608
4711
  return (r !== "" || n.length > 0) && (n.push(r), t.push(n)), t;
4609
4712
  }
4610
- function Cn(e, t) {
4713
+ function Tn(e, t) {
4611
4714
  return e?.row === t?.row && e?.column === t?.column;
4612
4715
  }
4613
- var wn = class {
4716
+ var En = class {
4614
4717
  grid;
4615
4718
  constructor(e) {
4616
4719
  this.grid = e;
@@ -4656,7 +4759,7 @@ var wn = class {
4656
4759
  row: e,
4657
4760
  column: t
4658
4761
  }, i = n && this._anchor ? this._anchor : r;
4659
- Cn(this._focus, r) && Cn(this._anchor, i) || (this._anchor = i, this._focus = r, this.grid.notifyRows(), this.emit(n ? "extend" : "select"));
4762
+ Tn(this._focus, r) && Tn(this._anchor, i) || (this._anchor = i, this._focus = r, this.grid.notifyRows(), this.emit(n ? "extend" : "select"));
4660
4763
  }
4661
4764
  syncCurrent(e, t) {
4662
4765
  this.isCurrent(e, t) || this.setCurrent(e, t);
@@ -4707,7 +4810,7 @@ var wn = class {
4707
4810
  onCopy = (e) => {
4708
4811
  if (!this._focus || !e.clipboardData) return;
4709
4812
  let t = e.currentTarget.ownerDocument.defaultView?.getSelection();
4710
- t && !t.isCollapsed || (e.clipboardData.setData("text/plain", xn(this.values())), e.preventDefault());
4813
+ t && !t.isCollapsed || (e.clipboardData.setData("text/plain", Cn(this.values())), e.preventDefault());
4711
4814
  };
4712
4815
  pasteBounds(e, t) {
4713
4816
  let n = this.bounds;
@@ -4724,10 +4827,10 @@ var wn = class {
4724
4827
  if (!this._focus || !e.clipboardData || this.grid.edits.isOpen || !this.grid.edits.enabled) return;
4725
4828
  let t = e.clipboardData.getData("text/plain");
4726
4829
  if (!t) return;
4727
- let n = Sn(t), r = n.reduce((e, t) => Math.max(e, t.length), 0), i = this.pasteBounds(n.length, r);
4830
+ let n = wn(t), r = n.reduce((e, t) => Math.max(e, t.length), 0), i = this.pasteBounds(n.length, r);
4728
4831
  i && (e.preventDefault(), this.grid.edits.paste(i, (e, t) => n[e % n.length][t % r] ?? ""));
4729
4832
  };
4730
- }, Tn = class extends W {
4833
+ }, Dn = class extends U {
4731
4834
  node;
4732
4835
  level;
4733
4836
  position;
@@ -4747,7 +4850,7 @@ var wn = class {
4747
4850
  toggleTree = () => {
4748
4851
  this.grid.tree.toggle(this.key, this.level);
4749
4852
  };
4750
- _subtreeKeys = H(() => {
4853
+ _subtreeKeys = q(() => {
4751
4854
  let e = [], t = (n) => {
4752
4855
  n.forEach((n) => {
4753
4856
  e.push(this.grid.getRowKey(n.data)), t(n.children);
@@ -4778,10 +4881,10 @@ var wn = class {
4778
4881
  };
4779
4882
  //#endregion
4780
4883
  //#region src/components/dataGrid/models/treeModel.ts
4781
- function En(e) {
4884
+ function On(e) {
4782
4885
  return JSON.stringify(e);
4783
4886
  }
4784
- var Dn = class {
4887
+ var kn = class {
4785
4888
  grid;
4786
4889
  constructor(e) {
4787
4890
  this.grid = e;
@@ -4835,9 +4938,9 @@ var Dn = class {
4835
4938
  data: e,
4836
4939
  children: []
4837
4940
  };
4838
- n.set(En(r), i);
4941
+ n.set(On(r), i);
4839
4942
  let a;
4840
- for (let e = r.length - 1; e > 0 && !a; e--) a = n.get(En(r.slice(0, e)));
4943
+ for (let e = r.length - 1; e > 0 && !a; e--) a = n.get(On(r.slice(0, e)));
4841
4944
  (a ? a.children : t).push(i);
4842
4945
  }), t;
4843
4946
  }
@@ -4853,17 +4956,17 @@ var Dn = class {
4853
4956
  }
4854
4957
  sortNodes(e) {
4855
4958
  let { sortColumn: t, sortDirection: n } = this.grid;
4856
- return t === void 0 ? e : G.sortBy(e, (e) => e.data[t], n).map((e) => ({
4959
+ return t === void 0 ? e : W.sortBy(e, (e) => e.data[t], n).map((e) => ({
4857
4960
  data: e.data,
4858
4961
  children: this.sortNodes(e.children)
4859
4962
  }));
4860
4963
  }
4861
- nodes = H(() => {
4964
+ nodes = q(() => {
4862
4965
  if (!this.isEager) return [];
4863
4966
  let e = this.isFlat ? this.buildFlat(this.grid.data) : this.buildNested(this.grid.data);
4864
4967
  return this.sortNodes(this.grid.hasRowFilters ? this.prune(e) : e);
4865
4968
  });
4866
- allRows = H(() => {
4969
+ allRows = q(() => {
4867
4970
  let e = [], t = (n) => {
4868
4971
  n.forEach((n) => {
4869
4972
  e.push(n.data), t(n.children);
@@ -4883,7 +4986,7 @@ var Dn = class {
4883
4986
  }
4884
4987
  rowList() {
4885
4988
  let e = 0, t = (n, r, i) => n.map((a, o) => {
4886
- let s = new Tn(this.grid, a, e++, r, o, n.length, i);
4989
+ let s = new Dn(this.grid, a, e++, r, o, n.length, i);
4887
4990
  return s.treeExpanded && (s.children = t(a.children, r + 1, s)), s;
4888
4991
  });
4889
4992
  return t(this.nodes.value, 0);
@@ -4925,7 +5028,7 @@ var Dn = class {
4925
5028
  let n = !this.isExpanded(e, t);
4926
5029
  n ? (this._opened.add(e), this._closed.delete(e)) : (this._closed.add(e), this._opened.delete(e)), this.grid.treeExpansionChanged(), this.grid.props.onExpandedTreeKeysChange?.(this.expandedKeys(), { reason: n ? "expand" : "collapse" }), this.grid.notify();
4927
5030
  };
4928
- }, On = {}, kn = class e {
5031
+ }, An = {}, jn = class e {
4929
5032
  props;
4930
5033
  constructor(e, t) {
4931
5034
  this.props = e, t && this.listeners.add(t);
@@ -4993,7 +5096,7 @@ var Dn = class {
4993
5096
  let e = this.props.def.localeText, t = this._localeText;
4994
5097
  if (t && t.from === e) return t.text;
4995
5098
  let n = {
4996
- ..._n,
5099
+ ...yn,
4997
5100
  ...e
4998
5101
  };
4999
5102
  return this._localeText = {
@@ -5001,22 +5104,22 @@ var Dn = class {
5001
5104
  text: n
5002
5105
  }, n;
5003
5106
  }
5004
- sourceColumns = H(() => {
5107
+ sourceColumns = q(() => {
5005
5108
  let { def: e } = this.props, t = [];
5006
- if (this.groupColumns.size > 0 && t.push(new Q({ key: K }, this)), t.push(...e.columns.map((e) => new Q(e, this))), e.rowSelection) {
5109
+ if (this.groupColumns.size > 0 && t.push(new Q({ key: G }, this)), t.push(...e.columns.map((e) => new Q(e, this))), e.rowSelection) {
5007
5110
  let n = typeof e.rowSelection == "object" && e.rowSelection.pinned ? "START" : void 0;
5008
5111
  t.unshift(new Q({
5009
- key: Ie,
5112
+ key: Fe,
5010
5113
  pin: n,
5011
5114
  width: 50,
5012
5115
  align: "center",
5013
- Cell: Xt
5116
+ Cell: Qt
5014
5117
  }, this));
5015
5118
  }
5016
5119
  if (e.showRowNumber) {
5017
5120
  let n, r = 70;
5018
5121
  typeof e.showRowNumber == "object" && (e.showRowNumber.pinned && (n = "START"), r = e.showRowNumber.width ?? 70), t.unshift(new Q({
5019
- key: Fe,
5122
+ key: Pe,
5020
5123
  pin: n,
5021
5124
  width: r,
5022
5125
  align: "end"
@@ -5025,17 +5128,17 @@ var Dn = class {
5025
5128
  if (e.rowDetail) {
5026
5129
  let n = e.rowDetail.pinned ? "START" : void 0, r = e.rowDetail.expandColumnWidth ?? 50, i = e.rowDetail.expandColumnHeader ?? "";
5027
5130
  t.unshift(new Q({
5028
- key: Le,
5131
+ key: Ie,
5029
5132
  header: i,
5030
5133
  pin: n,
5031
5134
  width: r,
5032
5135
  align: "center",
5033
- Cell: Yt
5136
+ Cell: Zt
5034
5137
  }, this));
5035
5138
  }
5036
5139
  return t;
5037
5140
  });
5038
- columns = H(() => {
5141
+ columns = q(() => {
5039
5142
  let e = this.sourceColumns.value.map((e) => e.getPinnedColumn("START")).filter((e) => !!e), t = this.sourceColumns.value.map((e) => e.getPinnedColumn()).filter((e) => !!e), n = this.sourceColumns.value.map((e) => e.getPinnedColumn("END")).filter((e) => !!e), r = [
5040
5143
  ...e,
5041
5144
  ...t,
@@ -5049,24 +5152,24 @@ var Dn = class {
5049
5152
  leafs: i,
5050
5153
  visibleLeafs: a,
5051
5154
  userVisibleLeafs: a.filter((e) => ![
5155
+ Pe,
5052
5156
  Fe,
5053
- Ie,
5054
- K,
5055
- Le
5157
+ G,
5158
+ Ie
5056
5159
  ].includes(e.key)),
5057
- maxDeath: G.maxBy(r, (e) => e.death) + 1
5160
+ maxDeath: W.maxBy(r, (e) => e.death) + 1
5058
5161
  };
5059
5162
  }, () => [this.sourceColumns]);
5060
- headerRows = H(() => G.sortBy(G.groupBy(this.columns.value.flat, (e) => e.death), (e) => e.key).map((e) => {
5061
- let t = G.toRecord(G.groupBy(e.values, (e) => e.pin ?? "NO_PIN"), (e) => [e.key, e.values]);
5163
+ headerRows = q(() => W.sortBy(W.groupBy(this.columns.value.flat, (e) => e.death), (e) => e.key).map((e) => {
5164
+ let t = W.toRecord(W.groupBy(e.values, (e) => e.pin ?? "NO_PIN"), (e) => [e.key, e.values]);
5062
5165
  return [
5063
5166
  ...t.START?.filter((e) => e.isVisible) ?? [],
5064
5167
  ...t.NO_PIN?.filter((e) => e.isVisible) ?? [],
5065
5168
  ...t.END?.filter((e) => e.isVisible) ?? []
5066
5169
  ];
5067
5170
  }), () => [this.columns]);
5068
- gridTemplateColumns = H(() => {
5069
- let { visibleLeafs: e } = this.columns.value, t = G.sumBy(e, (e) => +(e.pin === "END")), n = e.length - t;
5171
+ gridTemplateColumns = q(() => {
5172
+ let { visibleLeafs: e } = this.columns.value, t = W.sumBy(e, (e) => +(e.pin === "END")), n = e.length - t;
5070
5173
  return `${n > 0 ? `repeat(${n}, max-content)` : ""} ${t > 0 ? `repeat(${t}, max-content)` : ""}`.trim();
5071
5174
  }, () => [this.columns]);
5072
5175
  _globalFilterValue = "";
@@ -5077,7 +5180,7 @@ var Dn = class {
5077
5180
  get columnFilters() {
5078
5181
  return this.props.columnFilters ?? this._columnFilters;
5079
5182
  }
5080
- globalFilterColumns = H(() => this.props.def.globalFilterKeys ?? this.columns.value.leafs.filter((e) => e.key !== "row-number-cell" && e.key !== "row-selection-cell" && e.key !== "grouping-cell" && e.key !== "row-detail-cell").map((e) => e.key), () => [this.columns]);
5183
+ globalFilterColumns = q(() => this.props.def.globalFilterKeys ?? this.columns.value.leafs.filter((e) => e.key !== "row-number-cell" && e.key !== "row-selection-cell" && e.key !== "grouping-cell" && e.key !== "row-detail-cell").map((e) => e.key), () => [this.columns]);
5081
5184
  rowMatchesFilters(e) {
5082
5185
  let { filters: t } = this.props;
5083
5186
  return t && !t.every((t) => t(e)) || this.props.def.globalFilter && !this.matchesGlobalFilter(e) ? !1 : this.matchesColumnFilters(e);
@@ -5089,7 +5192,7 @@ var Dn = class {
5089
5192
  let t = this.globalFilterValue.trim();
5090
5193
  return !t || this.globalFilterColumns.value.some((n) => {
5091
5194
  let r = e[n];
5092
- return r != null && Jt(t, String(r));
5195
+ return r != null && Xt(t, String(r));
5093
5196
  });
5094
5197
  }
5095
5198
  matchesColumnFilters(e) {
@@ -5101,7 +5204,7 @@ var Dn = class {
5101
5204
  }
5102
5205
  matchesFilter(e, t) {
5103
5206
  switch (t.type) {
5104
- case "text": return !t.value.trim() || e != null && Jt(t.value, String(e));
5207
+ case "text": return !t.value.trim() || e != null && Xt(t.value, String(e));
5105
5208
  case "number": {
5106
5209
  if (e == null) return !1;
5107
5210
  let n = typeof e == "number" ? e : parseFloat(String(e));
@@ -5199,50 +5302,50 @@ var Dn = class {
5199
5302
  get totalRowCount() {
5200
5303
  return this.source.enabled ? this.source.rowCount : this.tree.isEager ? this.tree.everyRow().length : this.props.def.pagination?.totalCount ?? this.data.length;
5201
5304
  }
5202
- rows = H(() => {
5305
+ rows = q(() => {
5203
5306
  if (this.source.enabled) return this.source.rowList();
5204
5307
  if (this.tree.isEager) return this.tree.rowList();
5205
5308
  let e = this.filteredData;
5206
- if (this._sortColumn && !this.isPaginated && (e = G.sortBy(e, (e) => e[this._sortColumn], this._sortDirection)), this.groupColumns.size > 0) {
5309
+ if (this._sortColumn && !this.isPaginated && (e = W.sortBy(e, (e) => e[this._sortColumn], this._sortDirection)), this.groupColumns.size > 0) {
5207
5310
  let t = (e, n, r) => {
5208
5311
  let i = n.values().next().value;
5209
5312
  n.delete(i);
5210
- let a = G.findOrThrow(this.columns.value.leafs, (e) => e.key === i);
5211
- return this._sortColumn === "grouping-cell" && (e = G.sortBy(e, (e) => e[i], this._sortDirection)), G.groupBy(e, (e) => e[i]).map((e) => {
5313
+ let a = W.findOrThrow(this.columns.value.leafs, (e) => e.key === i);
5314
+ return this._sortColumn === "grouping-cell" && (e = W.sortBy(e, (e) => e[i], this._sortDirection)), W.groupBy(e, (e) => e[i]).map((e) => {
5212
5315
  let i;
5213
- i = n.size > 0 ? t(e.values, new Set(n), r + 1) : e.values.map((e, t) => new W(this, e, r + 1 + t));
5214
- let o = new Ge(this, a, i, r, e.key);
5316
+ i = n.size > 0 ? t(e.values, new Set(n), r + 1) : e.values.map((e, t) => new U(this, e, r + 1 + t));
5317
+ let o = new Ke(this, a, i, r, e.key);
5215
5318
  return r += 1, o.expanded && (r += i.length), o;
5216
5319
  });
5217
5320
  };
5218
5321
  return t(e, new Set(this.groupColumns), 0);
5219
5322
  }
5220
- return e.map((e, t) => new W(this, e, t));
5323
+ return e.map((e, t) => new U(this, e, t));
5221
5324
  }, () => [this.columns]);
5222
- groupingSpan = H(() => {
5325
+ groupingSpan = q(() => {
5223
5326
  let { visibleLeafs: e } = this.columns.value, t = e.findIndex((e) => e.isGrouping);
5224
5327
  if (t === -1) return [];
5225
5328
  let n = (n, r) => r > t && n.pin === e[t].pin && !n.isRowNumber && !n.isRowSelection && !n.isRowDetail, r = e.findIndex((e, t) => n(e, t) && !!e.aggregate), i = r === -1 ? e.length : r;
5226
5329
  return [e[t], ...e.filter((e, t) => t < i && n(e, t))];
5227
5330
  }, () => [this.columns]);
5228
- flatRows = H(() => this.source.enabled ? this.source.flatRowList(this.rows.value) : this.rows.value.flatMap((e) => e.flatRows), () => [this.rows]);
5331
+ flatRows = q(() => this.source.enabled ? this.source.flatRowList(this.rows.value) : this.rows.value.flatMap((e) => e.flatRows), () => [this.rows]);
5229
5332
  get rowHeight() {
5230
5333
  return this.props.def.rowHeight ?? this.DEFAULT_ROW_HEIGHT_PX;
5231
5334
  }
5232
- sizes = H(() => {
5335
+ sizes = q(() => {
5233
5336
  let e = this.columns.value.flat.reduce((e, t) => {
5234
5337
  let { inlineWidth: n } = t;
5235
5338
  return typeof n == "number" && (e[t.widthVarName] = `${t.inlineWidth}px`), t.pin === "START" && (e[t.inlineStartVarName] = `${t.startOffset}px`), t.pin === "END" && (e[t.inlineEndVarName] = `${t.endOffset}px`), e;
5236
5339
  }, {});
5237
5340
  e[this.rowHeightVarName] = `${this.rowHeight}px`, e[this.inlineStartEdgeVarName] = `${this.inlineStartEdge}px`, this._containerWidth > 0 && (e[this.viewportWidthVarName] = `${this._containerWidth}px`);
5238
- let { visibleLeafs: t } = this.columns.value, n = t.find((e) => e.key === K);
5341
+ let { visibleLeafs: t } = this.columns.value, n = t.find((e) => e.key === G);
5239
5342
  if (n) {
5240
- let t = G.sumBy(this.groupingSpan.value, (e) => e.inlineWidth ?? 0);
5343
+ let t = W.sumBy(this.groupingSpan.value, (e) => e.inlineWidth ?? 0);
5241
5344
  e[n.groupColumnWidthVarName] = `${t}px`;
5242
5345
  }
5243
5346
  return this.groupColumns.forEach((n) => {
5244
- let r = G.findOrThrow(this.columns.value.leafs, (e) => e.key === n);
5245
- e[r.groupColumnWidthVarName] = `${G.sumBy(t, (e) => e.pin === r.pin ? e.inlineWidth ?? 0 : 0)}px`;
5347
+ let r = W.findOrThrow(this.columns.value.leafs, (e) => e.key === n);
5348
+ e[r.groupColumnWidthVarName] = `${W.sumBy(t, (e) => e.pin === r.pin ? e.inlineWidth ?? 0 : 0)}px`;
5246
5349
  }), e;
5247
5350
  }, () => [this.columns, this.flexWidths]);
5248
5351
  _containerWidth = 0;
@@ -5256,17 +5359,21 @@ var Dn = class {
5256
5359
  setSizingElement = (e) => {
5257
5360
  this._sizingElement = e;
5258
5361
  };
5362
+ paintSizes = () => {
5363
+ let e = this._sizingElement;
5364
+ e && Object.entries(this.sizes.value).forEach(([t, n]) => e.style.setProperty(t, n));
5365
+ };
5259
5366
  get isRtl() {
5260
5367
  return t(this._sizingElement);
5261
5368
  }
5262
5369
  setContainerWidth = (e) => {
5263
5370
  this._containerWidth !== e && (this._containerWidth = e, this.flexWidths.clear(), this.notify());
5264
5371
  };
5265
- flexWidths = H(() => {
5372
+ flexWidths = q(() => {
5266
5373
  let e = this._containerWidth;
5267
5374
  if (e <= 0) return {};
5268
- let t = this.columns.value.visibleLeafs, n = (e) => !e.isFlexible || this.columnWidths.has(e.key), r = G.sumBy(t.filter(n), (e) => e.baseWidth), i = t.filter((e) => !n(e)), a = G.sumBy(i, (e) => e.baseWidth), o = e - r;
5269
- if (o <= a) return G.toRecord(i, (e) => [e.key, e.baseWidth]);
5375
+ let t = this.columns.value.visibleLeafs, n = (e) => !e.isFlexible || this.columnWidths.has(e.key), r = W.sumBy(t.filter(n), (e) => e.baseWidth), i = t.filter((e) => !n(e)), a = W.sumBy(i, (e) => e.baseWidth), o = e - r;
5376
+ if (o <= a) return W.toRecord(i, (e) => [e.key, e.baseWidth]);
5270
5377
  let s = {}, c = 0;
5271
5378
  return i.forEach((e, t) => {
5272
5379
  if (t === i.length - 1) s[e.key] = o - c;
@@ -5339,31 +5446,31 @@ var Dn = class {
5339
5446
  pageSize: e
5340
5447
  }), this.source.invalidate(), this.tree.nodes.clear(), this.rows.clear(), this.notify());
5341
5448
  };
5342
- rowOffsets = H(() => {
5449
+ rowOffsets = q(() => {
5343
5450
  if (this.source.enabled) return this.source.rowOffsets(this.flatRows.value);
5344
5451
  let e = [], t = 0;
5345
- for (let n of this.flatRows.value) e.push(t), t += n instanceof De ? n.heightForOffset : this.rowHeight;
5452
+ for (let n of this.flatRows.value) e.push(t), t += n instanceof Ee ? n.heightForOffset : this.rowHeight;
5346
5453
  return {
5347
5454
  offsets: e,
5348
5455
  totalHeight: t
5349
5456
  };
5350
5457
  }, () => [this.flatRows]);
5351
- viewport = new he(this);
5352
- columnVisibility = new en(this);
5353
- filter = new gn(this);
5354
- pagination = new vn(this);
5355
- aggregation = new He(this);
5356
- exporter = new hn(this);
5357
- source = new dn(this);
5358
- tree = new Dn(this);
5359
- edits = new we(this);
5360
- range = new wn(this);
5458
+ viewport = new ge(this);
5459
+ columnVisibility = new nn(this);
5460
+ filter = new vn(this);
5461
+ pagination = new bn(this);
5462
+ aggregation = new Ue(this);
5463
+ exporter = new _n(this);
5464
+ source = new pn(this);
5465
+ tree = new kn(this);
5466
+ edits = new Te(this);
5467
+ range = new En(this);
5361
5468
  refresh = () => {
5362
5469
  this.edits.clearEdits(), this.source.invalidate();
5363
5470
  };
5364
5471
  get exportConfig() {
5365
5472
  let e = this.props.def.export;
5366
- if (e) return typeof e == "object" ? e : On;
5473
+ if (e) return typeof e == "object" ? e : An;
5367
5474
  }
5368
5475
  exportCsv = async (e = {}) => {
5369
5476
  let { downloadCsv: t } = await import("../gridExport.mjs");
@@ -5382,7 +5489,7 @@ var Dn = class {
5382
5489
  get selectableRows() {
5383
5490
  return this.source.enabled ? this.loadedRows : this.filteredData;
5384
5491
  }
5385
- _selectableKeys = H(() => (this.rows.value, new Set(this.selectableRows.map((e) => this.getRowKey(e)))), () => [this.rows]);
5492
+ _selectableKeys = q(() => (this.rows.value, new Set(this.selectableRows.map((e) => this.getRowKey(e)))), () => [this.rows]);
5386
5493
  get selectableKeys() {
5387
5494
  return this.source.enabled ? new Set(this.loadedRows.map((e) => this.getRowKey(e))) : this._selectableKeys.value;
5388
5495
  }
@@ -5428,14 +5535,14 @@ var Dn = class {
5428
5535
  return this.localeText.selectionAnnouncement(e, this.totalRowCount);
5429
5536
  }
5430
5537
  get groupedColumns() {
5431
- return Array.from(this.groupColumns, (e) => G.findOrThrow(this.columns.value.leafs, (t) => t.key === e));
5538
+ return Array.from(this.groupColumns, (e) => W.findOrThrow(this.columns.value.leafs, (t) => t.key === e));
5432
5539
  }
5433
5540
  selectedRows = /* @__PURE__ */ new Set();
5434
5541
  get inlineStartEdge() {
5435
- return G.sumBy(this.columns.value.start, (e) => e.inlineWidth ?? 0);
5542
+ return W.sumBy(this.columns.value.start, (e) => e.inlineWidth ?? 0);
5436
5543
  }
5437
5544
  get inlineEndEdge() {
5438
- return G.sumBy(this.columns.value.end, (e) => e.inlineWidth ?? 0);
5545
+ return W.sumBy(this.columns.value.end, (e) => e.inlineWidth ?? 0);
5439
5546
  }
5440
5547
  inlineStartEdgeVarName = "--inline-start-edge";
5441
5548
  rowHeightVarName = "--row-height";
@@ -5466,7 +5573,7 @@ var Dn = class {
5466
5573
  }), this.source.invalidate(), this.tree.nodes.clear(), this.rows.clear(), this.notify();
5467
5574
  };
5468
5575
  pinColumn = (e, t) => {
5469
- let n = Zt(t), r = G.findOrThrow(this.columns.value.flat, (t) => t.uniqueKey === e);
5576
+ let n = $t(t), r = W.findOrThrow(this.columns.value.flat, (t) => t.uniqueKey === e);
5470
5577
  r.pin !== n && r.pinColumn(n), this.columns.clear(), this.notify();
5471
5578
  };
5472
5579
  toggleGrouping = (e) => {
@@ -5555,15 +5662,15 @@ var Dn = class {
5555
5662
  };
5556
5663
  //#endregion
5557
5664
  //#region src/components/dataGrid/useGrid.ts
5558
- function An(e) {
5559
- let [t] = P(() => new kn(e)), n = l("datagrid");
5560
- return t.setProps(e), t.setIdentifier(n), te(t.subscribe, t.getSnapshot, t.getSnapshot), t;
5665
+ function Mn(e) {
5666
+ let [t] = P(() => new jn(e)), n = l("datagrid");
5667
+ return t.setProps(e), t.setIdentifier(n), ne(t.subscribe, t.getSnapshot, t.getSnapshot), t;
5561
5668
  }
5562
5669
  //#endregion
5563
5670
  //#region src/components/dataGrid.tsx
5564
- function jn(e, t) {
5565
- let n = An(e), i = N(null);
5566
- A(t, () => ({
5671
+ function Nn(e, t) {
5672
+ let n = Mn(e), i = N(null);
5673
+ j(t, () => ({
5567
5674
  get element() {
5568
5675
  return i.current;
5569
5676
  },
@@ -5572,31 +5679,31 @@ function jn(e, t) {
5572
5679
  refresh: n.refresh,
5573
5680
  clearEdits: n.edits.clearEdits
5574
5681
  }), [n]);
5575
- let { component: a, data: o, def: s, loading: c, filters: l, globalFilterValue: u, columnFilters: d, expandedRowKeys: f, expandedTreeKeys: p, page: m, pageSize: h, onSelectedRowKeysChange: g, onSelectionChange: _, onGlobalFilterChange: y, onColumnFiltersChange: b, onExpandedRowKeysChange: x, onExpandedTreeKeysChange: S, onCellEditsChange: C, onPaginationChange: w, onPageChange: T, onPageSizeChange: E, onSortingChange: D, onSortChange: O, onServerStateChange: ee, style: k, ...M } = e;
5576
- return j(() => {
5682
+ let { component: a, data: o, def: s, loading: c, filters: l, globalFilterValue: u, columnFilters: d, expandedRowKeys: f, expandedTreeKeys: p, page: m, pageSize: h, onSelectedRowKeysChange: g, onSelectionChange: v, onGlobalFilterChange: y, onColumnFiltersChange: b, onExpandedRowKeysChange: x, onExpandedTreeKeysChange: S, onCellEditsChange: C, onPaginationChange: w, onPageChange: T, onPageSizeChange: E, onSortingChange: ee, onSortChange: D, onServerStateChange: O, style: k, ...A } = e;
5683
+ return M(() => {
5577
5684
  let e = i.current;
5578
5685
  if (e) return n.setSizingElement(e), () => n.setSizingElement(null);
5579
5686
  }, [n]), /* @__PURE__ */ R(r, {
5580
5687
  ref: i,
5581
5688
  component: n.componentName,
5582
- ...M,
5689
+ ...A,
5583
5690
  style: {
5584
5691
  ...n.sizes.value,
5585
5692
  ...k
5586
5693
  },
5587
5694
  children: [
5588
- n.props.def.topBar && /* @__PURE__ */ L(Kt, { grid: n }),
5695
+ n.props.def.topBar && /* @__PURE__ */ L(Jt, { grid: n }),
5589
5696
  /* @__PURE__ */ L(zt, { grid: n }),
5590
5697
  /* @__PURE__ */ L(Rt, { grid: n }),
5591
- n.props.def.bottomBar && /* @__PURE__ */ L(de, { grid: n }),
5592
- /* @__PURE__ */ L(v, {
5698
+ n.props.def.bottomBar && /* @__PURE__ */ L(pe, { grid: n }),
5699
+ /* @__PURE__ */ L(_, {
5593
5700
  props: { role: "status" },
5594
5701
  children: n.selectionAnnouncement
5595
5702
  })
5596
5703
  ]
5597
5704
  });
5598
5705
  }
5599
- var Mn = E(jn);
5600
- jn.displayName = "DataGrid";
5706
+ var Pn = ee(Nn);
5707
+ Nn.displayName = "DataGrid";
5601
5708
  //#endregion
5602
- export { _n as DATA_GRID_LOCALE_TEXT, Mn as default };
5709
+ export { yn as DATA_GRID_LOCALE_TEXT, Pn as default };