@box-kite/react 2.2.5 → 2.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/.claude/rules/box-kite-rules.md +3 -1
  2. package/.claude/skills/box-kite/SKILL.md +3 -1
  3. package/.claude/skills/box-kite/references/components.md +34 -0
  4. package/.cursor/rules/box-kite.mdc +3 -1
  5. package/AGENTS.md +3 -1
  6. package/BOX_AI_CONTEXT.md +95 -5
  7. package/BOX_KITE_AI_CONTEXT.md +95 -5
  8. package/box.cjs +1 -1
  9. package/box.mjs +7 -7
  10. package/catalog.cjs +1 -1
  11. package/catalog.mjs +521 -0
  12. package/client.cjs +1 -1
  13. package/client.mjs +94 -106
  14. package/components/calendar.cjs +1 -0
  15. package/components/calendar.d.ts +77 -0
  16. package/components/calendar.mjs +483 -0
  17. package/components/dataGrid/components/dataGridBooleanValue.d.ts +11 -0
  18. package/components/dataGrid/components/dataGridDateParts.d.ts +40 -0
  19. package/components/dataGrid/components/dataGridDateValue.d.ts +14 -0
  20. package/components/dataGrid/contracts/dataGridContract.d.ts +38 -11
  21. package/components/dataGrid/models/columnModel.d.ts +3 -1
  22. package/components/dataGrid/models/editModel.d.ts +3 -1
  23. package/components/dataGrid/models/localeText.d.ts +4 -0
  24. package/components/dataGrid/useDateParts.d.ts +17 -0
  25. package/components/dataGrid.cjs +3 -3
  26. package/components/dataGrid.mjs +797 -664
  27. package/components/dateField.cjs +1 -0
  28. package/components/dateField.d.ts +78 -0
  29. package/components/dateField.mjs +313 -0
  30. package/components/datePicker.cjs +1 -0
  31. package/components/datePicker.d.ts +120 -0
  32. package/components/datePicker.mjs +529 -0
  33. package/components/dateTime.cjs +1 -0
  34. package/components/dateTime.d.ts +23 -0
  35. package/components/dateTime.mjs +34 -0
  36. package/components/dialog.cjs +1 -1
  37. package/components/dialog.mjs +87 -75
  38. package/components/overlay.cjs +1 -1
  39. package/components/overlay.mjs +1 -1
  40. package/components/semantics.d.ts +29 -29
  41. package/components/timeZoneSelect.cjs +1 -0
  42. package/components/timeZoneSelect.d.ts +52 -0
  43. package/components/timeZoneSelect.mjs +74 -0
  44. package/components/toaster.cjs +1 -1
  45. package/components/toaster.mjs +1 -1
  46. package/dataGridDateParts.cjs +1 -0
  47. package/dataGridDateParts.mjs +223 -0
  48. package/dataGridList.cjs +1 -1
  49. package/dataGridList.mjs +328 -365
  50. package/dataGridListLayout.cjs +1 -0
  51. package/dataGridListLayout.mjs +49 -0
  52. package/date-environment.cjs +1 -0
  53. package/date-environment.mjs +29 -0
  54. package/date-input.cjs +1 -0
  55. package/date-input.mjs +346 -0
  56. package/date-math.cjs +1 -0
  57. package/date-math.mjs +317 -0
  58. package/date.cjs +1 -0
  59. package/date.d.ts +40 -0
  60. package/date.mjs +4 -0
  61. package/dates.cjs +1 -0
  62. package/dates.mjs +689 -0
  63. package/docs/components.md +6 -1
  64. package/package.json +118 -26
  65. package/react/boxComponent.d.ts +1 -1
  66. package/react/date/dateChange.d.ts +18 -0
  67. package/react/date/dateEnvironment.d.ts +34 -0
  68. package/react-shared.cjs +1 -1
  69. package/react-shared.mjs +1 -1
  70. package/ssg.cjs +1 -1
  71. package/ssg.mjs +1 -1
  72. package/utils/date/calendar.d.ts +44 -0
  73. package/utils/date/calendarModel.d.ts +46 -0
  74. package/utils/date/dateTime.d.ts +144 -0
  75. package/utils/date/fieldModel.d.ts +74 -0
  76. package/utils/date/format.d.ts +39 -0
  77. package/utils/date/iso.d.ts +40 -0
  78. package/utils/date/locale.d.ts +17 -0
  79. package/utils/date/parse.d.ts +20 -0
  80. package/utils/date/settings.d.ts +26 -0
  81. package/utils/date/value.d.ts +43 -0
  82. package/utils/date/zoneOptions.d.ts +19 -0
  83. package/utils/date/zones.d.ts +32 -0
package/dataGridList.mjs CHANGED
@@ -1,111 +1,64 @@
1
1
  import e from "./box.mjs";
2
2
  import { Path as t, Svg as n } from "./components/svg.mjs";
3
3
  import r from "./components/button.mjs";
4
- import i from "./components/flex.mjs";
5
- import a from "./components/checkbox.mjs";
6
- import o from "./components/visuallyHidden.mjs";
4
+ import i from "./components/visuallyHidden.mjs";
5
+ import a from "./components/flex.mjs";
6
+ import o from "./components/checkbox.mjs";
7
7
  import s from "./components/textbox.mjs";
8
8
  import { H3 as c, Span as l } from "./components/semantics.mjs";
9
- import { a as u, c as d, d as f, i as p, l as m, n as h, o as g, r as _, s as v, t as y, u as b } from "./components/dataGrid.mjs";
10
- import x from "./components/dialog.mjs";
11
- import S from "./components/list.mjs";
12
- import C from "./components/radioButton.mjs";
9
+ import { a as u, c as d, d as f, f as p, i as m, l as h, m as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C } from "./components/dataGrid.mjs";
10
+ import w from "./components/dialog.mjs";
11
+ import T from "./components/list.mjs";
12
+ import E from "./components/radioButton.mjs";
13
13
  import ee from "./components/skeleton.mjs";
14
- import { memo as w, useCallback as T, useEffect as E, useRef as D, useState as O } from "react";
15
- import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
14
+ import { t as D } from "./dataGridListLayout.mjs";
15
+ import { memo as O, useCallback as k, useEffect as A, useRef as j, useState as M } from "react";
16
+ import { Fragment as N, jsx as P, jsxs as F } from "react/jsx-runtime";
16
17
  //#region src/components/dataGrid/components/dataGridListAggregate.tsx
17
- function M(e) {
18
+ function I(e) {
18
19
  let { cell: t } = e, { AggregateCell: n } = t.column;
19
- return n ? /* @__PURE__ */ A(n, { cell: t }) : /* @__PURE__ */ A(k, { children: t.value ?? "—" });
20
+ return n ? /* @__PURE__ */ P(n, { cell: t }) : /* @__PURE__ */ P(N, { children: t.value ?? "—" });
20
21
  }
21
- M.displayName = "DataGridListAggregate";
22
- //#endregion
23
- //#region src/components/dataGrid/components/dataGridListLayout.ts
24
- var N;
25
- (function(e) {
26
- e.ICON_BUTTON = {
27
- display: "inline-flex",
28
- ai: "center",
29
- jc: "center",
30
- width: 11,
31
- height: 11,
32
- flexShrink: 0,
33
- borderRadius: 999,
34
- cursor: "pointer"
35
- }, e.PILL = {
36
- display: "inline-flex",
37
- ai: "center",
38
- gap: 1.5,
39
- flexShrink: 0,
40
- height: 10,
41
- px: 3.5,
42
- borderRadius: 999,
43
- fontSize: 14,
44
- fontWeight: 500,
45
- textWrap: "nowrap",
46
- cursor: "pointer"
47
- }, e.TRUNCATE = {
48
- textOverflow: "ellipsis",
49
- overflow: "hidden",
50
- textWrap: "nowrap"
51
- }, e.INPUT = {
52
- width: "fit",
53
- height: 11,
54
- px: 3,
55
- borderRadius: 2,
56
- fontSize: 16
57
- }, e.LABEL = {
58
- fontSize: 12,
59
- lineHeight: 16
60
- }, e.SHEET_BUTTON = {
61
- height: 12,
62
- px: 4,
63
- borderRadius: 3,
64
- fontSize: 16,
65
- fontWeight: 500,
66
- cursor: "pointer"
67
- };
68
- })(N ||= {});
69
- var P = N;
22
+ I.displayName = "DataGridListAggregate";
70
23
  //#endregion
71
24
  //#region src/components/dataGrid/components/dataGridListFooter.tsx
72
- function F(t) {
73
- let { grid: n, shown: a } = t, { list: o, pagination: s, aggregation: c } = n, l = n.componentName, u = n.localeText, d = s.state, f = c.hasFooter ? c.footerCells.value.filter((e) => e.column.aggregate) : [];
74
- return /* @__PURE__ */ j(k, { children: [f.length > 0 && /* @__PURE__ */ j(e, {
25
+ function L(t) {
26
+ let { grid: n, shown: i } = t, { list: o, pagination: s, aggregation: c } = n, l = n.componentName, u = n.localeText, d = s.state, f = c.hasFooter ? c.footerCells.value.filter((e) => e.column.aggregate) : [];
27
+ return /* @__PURE__ */ F(N, { children: [f.length > 0 && /* @__PURE__ */ F(e, {
75
28
  bgColor: "currentColor/3",
76
29
  px: 4,
77
30
  py: 3,
78
- children: [/* @__PURE__ */ A(e, {
31
+ children: [/* @__PURE__ */ P(e, {
79
32
  fontWeight: 600,
80
33
  fontSize: 14,
81
34
  mb: 1,
82
35
  children: c.footerLabel
83
- }), /* @__PURE__ */ A(e, {
36
+ }), /* @__PURE__ */ P(e, {
84
37
  tag: "dl",
85
38
  display: "grid",
86
39
  gridTemplateColumns: 2,
87
40
  columnGap: 4,
88
41
  rowGap: 2,
89
42
  m: 0,
90
- children: f.map((t) => /* @__PURE__ */ j(e, {
43
+ children: f.map((t) => /* @__PURE__ */ F(e, {
91
44
  minWidth: 0,
92
- children: [/* @__PURE__ */ A(e, {
45
+ children: [/* @__PURE__ */ P(e, {
93
46
  tag: "dt",
94
47
  component: "list.muted",
95
48
  fontSize: 12,
96
49
  lineHeight: 16,
97
50
  children: t.column.header ?? String(t.column.key)
98
- }), /* @__PURE__ */ A(e, {
51
+ }), /* @__PURE__ */ P(e, {
99
52
  tag: "dd",
100
53
  m: 0,
101
54
  fontSize: 14,
102
55
  lineHeight: 20,
103
56
  fontWeight: 600,
104
- children: /* @__PURE__ */ A(M, { cell: t })
57
+ children: /* @__PURE__ */ P(I, { cell: t })
105
58
  })]
106
59
  }, t.column.key))
107
60
  })]
108
- }), d ? /* @__PURE__ */ A(i, {
61
+ }), d ? /* @__PURE__ */ P(a, {
109
62
  component: "list.muted",
110
63
  d: "column",
111
64
  gap: 2,
@@ -114,40 +67,40 @@ function F(t) {
114
67
  py: 4,
115
68
  fontSize: 13,
116
69
  css: { fontVariantNumeric: "tabular-nums" },
117
- children: /* @__PURE__ */ j(i, {
70
+ children: /* @__PURE__ */ F(a, {
118
71
  ai: "center",
119
72
  jc: "space-between",
120
73
  gap: 3,
121
74
  width: "fit",
122
75
  children: [
123
- /* @__PURE__ */ A(r, {
76
+ /* @__PURE__ */ P(r, {
124
77
  type: "button",
125
78
  component: `${l}.list.button`,
126
- ...P.ICON_BUTTON,
79
+ ...D.ICON_BUTTON,
127
80
  borderRadius: 3,
128
81
  disabled: !s.canGoPrev,
129
82
  onClick: s.prevPage,
130
83
  props: { "aria-label": u.previousPage },
131
- children: /* @__PURE__ */ A(b, {
84
+ children: /* @__PURE__ */ P(p, {
132
85
  width: "18px",
133
86
  height: "18px",
134
87
  rotate: 90,
135
88
  rtl: { rotate: -90 }
136
89
  })
137
90
  }),
138
- /* @__PURE__ */ A(e, {
91
+ /* @__PURE__ */ P(e, {
139
92
  textAlign: "center",
140
93
  children: u.pageRowRange(s.startItem, s.endItem, s.totalItems)
141
94
  }),
142
- /* @__PURE__ */ A(r, {
95
+ /* @__PURE__ */ P(r, {
143
96
  type: "button",
144
97
  component: `${l}.list.button`,
145
- ...P.ICON_BUTTON,
98
+ ...D.ICON_BUTTON,
146
99
  borderRadius: 3,
147
100
  disabled: !s.canGoNext,
148
101
  onClick: s.nextPage,
149
102
  props: { "aria-label": u.nextPage },
150
- children: /* @__PURE__ */ A(b, {
103
+ children: /* @__PURE__ */ P(p, {
151
104
  width: "18px",
152
105
  height: "18px",
153
106
  rotate: -90,
@@ -156,7 +109,7 @@ function F(t) {
156
109
  })
157
110
  ]
158
111
  })
159
- }) : (o.hasMore || a !== void 0) && /* @__PURE__ */ j(i, {
112
+ }) : (o.hasMore || i !== void 0) && /* @__PURE__ */ F(a, {
160
113
  component: "list.muted",
161
114
  d: "column",
162
115
  gap: 2,
@@ -165,7 +118,7 @@ function F(t) {
165
118
  py: 4,
166
119
  fontSize: 13,
167
120
  css: { fontVariantNumeric: "tabular-nums" },
168
- children: [o.hasMore && /* @__PURE__ */ A(r, {
121
+ children: [o.hasMore && /* @__PURE__ */ P(r, {
169
122
  type: "button",
170
123
  component: `${l}.list.button`,
171
124
  width: "fit",
@@ -178,59 +131,59 @@ function F(t) {
178
131
  theme: { dark: { color: "indigo-300" } },
179
132
  onClick: o.showMore,
180
133
  children: u.showMore(o.nextBatch)
181
- }), a !== void 0 && /* @__PURE__ */ A(e, { children: u.shownCount(a, n.source.enabled ? n.totalRowCount : n.filterStats.filtered) })]
134
+ }), i !== void 0 && /* @__PURE__ */ P(e, { children: u.shownCount(i, n.source.enabled ? n.totalRowCount : n.filterStats.filtered) })]
182
135
  })] });
183
136
  }
184
- F.displayName = "DataGridListFooter";
137
+ L.displayName = "DataGridListFooter";
185
138
  //#endregion
186
139
  //#region src/components/dataGrid/components/dataGridListGroup.tsx
187
- function I(e) {
140
+ function R(e) {
188
141
  let { row: t } = e, { grid: n } = t, r = t.cells.flatMap((e) => e.aggregate ? [e.aggregate] : []), i = t.placeholder ? "" : String(t.groupValue);
189
- return /* @__PURE__ */ j(S.Item, {
142
+ return /* @__PURE__ */ F(T.Item, {
190
143
  size: "sm",
191
144
  bgColor: "currentColor/3",
192
145
  ps: 4 + Math.min(t.depth, 3) * 4,
193
146
  props: { "aria-busy": t.placeholder || void 0 },
194
147
  children: [
195
- n.list.selecting && t.selectable && /* @__PURE__ */ A(S.Actions, { children: /* @__PURE__ */ A(a, {
148
+ n.list.selecting && t.selectable && /* @__PURE__ */ P(T.Actions, { children: /* @__PURE__ */ P(o, {
196
149
  variant: "datagrid",
197
150
  checked: t.selected,
198
151
  indeterminate: t.indeterminate,
199
152
  onChange: t.toggleSelectAll,
200
153
  props: { "aria-label": n.localeText.selectGroupRows(i) }
201
154
  }) }),
202
- /* @__PURE__ */ A(b, {
155
+ /* @__PURE__ */ P(p, {
203
156
  width: "16px",
204
157
  height: "16px",
205
158
  flexShrink: 0,
206
159
  rotate: t.expanded ? 0 : -90,
207
160
  rtl: { rotate: t.expanded ? 0 : 90 }
208
161
  }),
209
- /* @__PURE__ */ j(S.Content, { children: [/* @__PURE__ */ A(S.Title, {
162
+ /* @__PURE__ */ F(T.Content, { children: [/* @__PURE__ */ P(T.Title, {
210
163
  lines: 1,
211
164
  fontSize: 14,
212
165
  fontWeight: 600,
213
- children: /* @__PURE__ */ A(S.Action, {
166
+ children: /* @__PURE__ */ P(T.Action, {
214
167
  onClick: () => t.toggleRow(),
215
168
  props: { "aria-expanded": t.expanded },
216
169
  children: i
217
170
  })
218
- }), r.length > 0 && /* @__PURE__ */ A(S.Row, {
171
+ }), r.length > 0 && /* @__PURE__ */ P(T.Row, {
219
172
  secondary: !0,
220
173
  wrap: !0,
221
174
  columnGap: 4,
222
175
  fontSize: 13,
223
176
  css: { fontVariantNumeric: "tabular-nums" },
224
- children: r.map((e) => /* @__PURE__ */ j(l, {
177
+ children: r.map((e) => /* @__PURE__ */ F(l, {
225
178
  display: "inline-flex",
226
179
  gap: 1,
227
- children: [/* @__PURE__ */ A(l, { children: e.column.header ?? String(e.column.key) }), /* @__PURE__ */ A(l, {
180
+ children: [/* @__PURE__ */ P(l, { children: e.column.header ?? String(e.column.key) }), /* @__PURE__ */ P(l, {
228
181
  fontWeight: 600,
229
- children: /* @__PURE__ */ A(M, { cell: e })
182
+ children: /* @__PURE__ */ P(I, { cell: e })
230
183
  })]
231
184
  }, e.column.key))
232
185
  })] }),
233
- /* @__PURE__ */ A(S.Meta, {
186
+ /* @__PURE__ */ P(T.Meta, {
234
187
  px: 2,
235
188
  borderRadius: 999,
236
189
  fontSize: 12,
@@ -243,149 +196,154 @@ function I(e) {
243
196
  ]
244
197
  });
245
198
  }
246
- I.displayName = "DataGridListGroup";
247
- var L = w(I);
199
+ R.displayName = "DataGridListGroup";
200
+ var te = O(R);
248
201
  //#endregion
249
202
  //#region src/components/dataGrid/components/dataGridListValue.tsx
250
- function R(e) {
203
+ function z(e) {
251
204
  let { row: t, column: n } = e, r = t.cells.find((e) => e.column === n);
252
205
  if (!r) return null;
253
- if (n.Cell) return /* @__PURE__ */ A(n.Cell, { cell: r });
206
+ if (n.Cell) return /* @__PURE__ */ P(n.Cell, { cell: r });
254
207
  let { value: i } = r;
255
- return /* @__PURE__ */ A(k, { children: i == null || i === "" ? "—" : String(i) });
208
+ if (typeof i == "boolean") return /* @__PURE__ */ P(N, { children: i ? r.grid.localeText.booleanTrue : r.grid.localeText.booleanFalse });
209
+ let a = C(n, i);
210
+ return a && i != null && i !== "" ? /* @__PURE__ */ P(h, {
211
+ value: i,
212
+ format: a
213
+ }) : /* @__PURE__ */ P(N, { children: i == null || i === "" ? "—" : String(i) });
256
214
  }
257
- R.displayName = "DataGridListValue";
215
+ z.displayName = "DataGridListValue";
258
216
  //#endregion
259
217
  //#region src/components/dataGrid/components/dataGridListItem.tsx
260
- function z(t) {
261
- let { row: n, index: i, position: o, setSize: s } = t, { grid: c } = n, { list: u } = c, { title: d, kicker: p, subtitle: m, end: h, fields: g } = u.layout.value, { selecting: _ } = u, v = u.recordViewEnabled && !n.placeholder, y = f(n) ? n : void 0, x = c.props.def.rowDetail, C = c.localeText, w = {
262
- "aria-posinset": o,
218
+ function B(t) {
219
+ let { row: n, index: i, position: a, setSize: s } = t, { grid: c } = n, { list: u } = c, { title: d, kicker: f, subtitle: m, end: h, fields: g } = u.layout.value, { selecting: _ } = u, v = u.recordViewEnabled && !n.placeholder, b = y(n) ? n : void 0, x = c.props.def.rowDetail, S = c.localeText, C = {
220
+ "aria-posinset": a,
263
221
  "aria-setsize": s
264
222
  };
265
- if (n.placeholder) return /* @__PURE__ */ A(S.Item, {
223
+ if (n.placeholder) return /* @__PURE__ */ P(T.Item, {
266
224
  props: {
267
- ...w,
225
+ ...C,
268
226
  "aria-busy": !0
269
227
  },
270
- children: /* @__PURE__ */ A(ee, {
228
+ children: /* @__PURE__ */ P(ee, {
271
229
  lines: 2,
272
230
  flex1: !0
273
231
  })
274
232
  });
275
- let T = d ? /* @__PURE__ */ A(R, {
233
+ let w = d ? /* @__PURE__ */ P(z, {
276
234
  row: n,
277
235
  column: d
278
- }) : C.unnamedRow(n.rowIndex + 1), E = d ? String(n.cells.find((e) => e.column === d)?.value ?? "") : "", D = u.checkboxId(n.key);
279
- return /* @__PURE__ */ j(S.Item, {
236
+ }) : S.unnamedRow(n.rowIndex + 1), E = d ? String(n.cells.find((e) => e.column === d)?.value ?? "") : "", O = u.checkboxId(n.key);
237
+ return /* @__PURE__ */ F(T.Item, {
280
238
  ai: "start",
281
239
  selected: !!c.props.def.rowSelection && n.selected,
282
240
  chevron: v && !_,
283
- ps: y ? 4 + Math.min(y.level, 3) * 4 : void 0,
241
+ ps: b ? 4 + Math.min(b.level, 3) * 4 : void 0,
284
242
  props: {
285
- ...w,
243
+ ...C,
286
244
  "data-list-key": String(n.key)
287
245
  },
288
- children: [_ && /* @__PURE__ */ A(S.Actions, {
246
+ children: [_ && /* @__PURE__ */ P(T.Actions, {
289
247
  width: 6,
290
248
  jc: "center",
291
249
  alignSelf: "center",
292
- children: /* @__PURE__ */ A(a, {
293
- id: D,
250
+ children: /* @__PURE__ */ P(o, {
251
+ id: O,
294
252
  variant: "datagrid",
295
253
  checked: n.selected,
296
254
  indeterminate: n.indeterminate,
297
255
  onChange: n.toggleSelection
298
256
  })
299
- }), /* @__PURE__ */ j(S.Content, { children: [
300
- p && /* @__PURE__ */ A(S.Overline, {
257
+ }), /* @__PURE__ */ F(T.Content, { children: [
258
+ f && /* @__PURE__ */ P(T.Overline, {
301
259
  lines: 1,
302
- children: /* @__PURE__ */ A(R, {
260
+ children: /* @__PURE__ */ P(z, {
303
261
  row: n,
304
- column: p
262
+ column: f
305
263
  })
306
264
  }),
307
- /* @__PURE__ */ j(S.Row, {
265
+ /* @__PURE__ */ F(T.Row, {
308
266
  ai: "start",
309
267
  gap: 3,
310
- children: [/* @__PURE__ */ j(S.Row, {
268
+ children: [/* @__PURE__ */ F(T.Row, {
311
269
  jc: "start",
312
270
  ai: "center",
313
271
  gap: 1,
314
272
  flex1: !0,
315
- children: [y?.hasChildren && /* @__PURE__ */ A(S.Actions, {
273
+ children: [b?.hasChildren && /* @__PURE__ */ P(T.Actions, {
316
274
  ms: -2,
317
- children: /* @__PURE__ */ A(r, {
275
+ children: /* @__PURE__ */ P(r, {
318
276
  type: "button",
319
277
  component: `${c.componentName}.list.toggle`,
320
- ...P.ICON_BUTTON,
278
+ ...D.ICON_BUTTON,
321
279
  width: 8,
322
280
  height: 8,
323
- onClick: y.toggleTree,
281
+ onClick: b.toggleTree,
324
282
  props: {
325
- "aria-expanded": y.treeExpanded,
326
- "aria-label": (y.treeExpanded ? C.collapseTreeRow : C.expandTreeRow)(E || C.unnamedRow(n.rowIndex + 1))
283
+ "aria-expanded": b.treeExpanded,
284
+ "aria-label": (b.treeExpanded ? S.collapseTreeRow : S.expandTreeRow)(E || S.unnamedRow(n.rowIndex + 1))
327
285
  },
328
- children: /* @__PURE__ */ A(b, {
286
+ children: /* @__PURE__ */ P(p, {
329
287
  width: "16px",
330
288
  height: "16px",
331
- rotate: y.treeExpanded ? 0 : -90,
332
- rtl: { rotate: y.treeExpanded ? 0 : 90 }
289
+ rotate: b.treeExpanded ? 0 : -90,
290
+ rtl: { rotate: b.treeExpanded ? 0 : 90 }
333
291
  })
334
292
  })
335
- }), /* @__PURE__ */ A(S.Title, {
293
+ }), /* @__PURE__ */ P(T.Title, {
336
294
  lines: 1,
337
295
  flex1: !0,
338
296
  fontWeight: 600,
339
- children: _ ? /* @__PURE__ */ A(S.Action, {
340
- props: { htmlFor: D },
341
- children: T
342
- }) : v ? /* @__PURE__ */ A(S.Action, {
297
+ children: _ ? /* @__PURE__ */ P(T.Action, {
298
+ props: { htmlFor: O },
299
+ children: w
300
+ }) : v ? /* @__PURE__ */ P(T.Action, {
343
301
  props: { "aria-haspopup": "dialog" },
344
302
  onClick: () => u.openRecord(n, i),
345
- children: T
346
- }) : T
303
+ children: w
304
+ }) : w
347
305
  })]
348
- }), h && /* @__PURE__ */ j(S.End, {
306
+ }), h && /* @__PURE__ */ F(T.End, {
349
307
  fontSize: 16,
350
308
  fontWeight: 600,
351
309
  lineHeight: 22,
352
- ...P.TRUNCATE,
353
- children: [/* @__PURE__ */ A(R, {
310
+ ...D.TRUNCATE,
311
+ children: [/* @__PURE__ */ P(z, {
354
312
  row: n,
355
313
  column: h
356
- }), /* @__PURE__ */ A(S.Meta, {
314
+ }), /* @__PURE__ */ P(T.Meta, {
357
315
  fontWeight: 400,
358
- ...P.LABEL,
316
+ ...D.LABEL,
359
317
  children: h.header ?? String(h.key)
360
318
  })]
361
319
  })]
362
320
  }),
363
- m.length > 0 && /* @__PURE__ */ A(S.Description, {
321
+ m.length > 0 && /* @__PURE__ */ P(T.Description, {
364
322
  lines: 1,
365
- children: m.map((e, t) => /* @__PURE__ */ j(l, { children: [t > 0 && " · ", /* @__PURE__ */ A(R, {
323
+ children: m.map((e, t) => /* @__PURE__ */ F(l, { children: [t > 0 && " · ", /* @__PURE__ */ P(z, {
366
324
  row: n,
367
325
  column: e
368
326
  })] }, e.key))
369
327
  }),
370
- g.length > 0 && /* @__PURE__ */ A(S.Fields, {
328
+ g.length > 0 && /* @__PURE__ */ P(T.Fields, {
371
329
  mt: 2,
372
330
  css: { gridTemplateColumns: "repeat(2, minmax(0, 1fr))" },
373
- children: g.map((t) => /* @__PURE__ */ A(S.Field, {
331
+ children: g.map((t) => /* @__PURE__ */ P(T.Field, {
374
332
  label: t.header ?? String(t.key),
375
- children: /* @__PURE__ */ A(e, {
376
- ...P.TRUNCATE,
377
- children: /* @__PURE__ */ A(R, {
333
+ children: /* @__PURE__ */ P(e, {
334
+ ...D.TRUNCATE,
335
+ children: /* @__PURE__ */ P(z, {
378
336
  row: n,
379
337
  column: t
380
338
  })
381
339
  })
382
340
  }, t.key))
383
341
  }),
384
- x && /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(S.Actions, {
342
+ x && /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(T.Actions, {
385
343
  alignSelf: "start",
386
344
  mt: 1,
387
345
  ms: -2,
388
- children: /* @__PURE__ */ j(r, {
346
+ children: /* @__PURE__ */ F(r, {
389
347
  type: "button",
390
348
  component: `${c.componentName}.list.toggle`,
391
349
  display: "inline-flex",
@@ -399,17 +357,17 @@ function z(t) {
399
357
  cursor: "pointer",
400
358
  onClick: n.toggleDetail,
401
359
  props: { "aria-expanded": n.expanded },
402
- children: [/* @__PURE__ */ A(b, {
360
+ children: [/* @__PURE__ */ P(p, {
403
361
  width: "14px",
404
362
  height: "14px",
405
363
  rotate: n.expanded ? 0 : -90,
406
364
  rtl: { rotate: n.expanded ? 0 : 90 }
407
- }), C.details]
365
+ }), S.details]
408
366
  })
409
- }), n.expanded && /* @__PURE__ */ A(S.Actions, {
367
+ }), n.expanded && /* @__PURE__ */ P(T.Actions, {
410
368
  display: "block",
411
369
  mt: 2,
412
- children: /* @__PURE__ */ A(e, {
370
+ children: /* @__PURE__ */ P(e, {
413
371
  component: `${c.componentName}.list.detail`,
414
372
  p: 3,
415
373
  borderRadius: 2,
@@ -420,19 +378,19 @@ function z(t) {
420
378
  ] })]
421
379
  });
422
380
  }
423
- z.displayName = "DataGridListItem";
424
- var B = w(z);
381
+ B.displayName = "DataGridListItem";
382
+ var ne = O(B);
425
383
  //#endregion
426
384
  //#region src/icons/closeIcon.tsx
427
385
  function V(e) {
428
- return /* @__PURE__ */ A(n, {
386
+ return /* @__PURE__ */ P(n, {
429
387
  viewBox: "0 0 24 24",
430
388
  width: "1.25rem",
431
389
  fill: "none",
432
390
  stroke: "currentColor",
433
391
  strokeWidth: 2,
434
392
  ...e,
435
- children: /* @__PURE__ */ A(t, {
393
+ children: /* @__PURE__ */ P(t, {
436
394
  d: "M6 6l12 12M18 6L6 18",
437
395
  strokeLinecap: "round"
438
396
  })
@@ -440,9 +398,9 @@ function V(e) {
440
398
  }
441
399
  //#endregion
442
400
  //#region src/components/dataGrid/components/dataGridListSheet.tsx
443
- var H = 80;
444
- function U(t) {
445
- let { grid: n, open: a, onOpen: o, onClose: s, title: c, trigger: l, actions: u, footer: d, tall: f, bodyProps: p, bodyRef: m, onKeyDown: h, children: g } = t, _ = n.componentName, v = `${_}.list.sheet.line`, y = D(null), b = T((e) => {
401
+ var re = 80;
402
+ function H(t) {
403
+ let { grid: n, open: i, onOpen: o, onClose: s, title: c, trigger: l, actions: u, footer: d, tall: f, bodyProps: p, bodyRef: m, onKeyDown: h, children: g } = t, _ = n.componentName, v = `${_}.list.sheet.line`, y = j(null), b = k((e) => {
446
404
  let t = e.currentTarget.closest("dialog");
447
405
  e.button !== 0 || !t || e.target.closest("button") || (y.current = {
448
406
  id: e.pointerId,
@@ -450,38 +408,38 @@ function U(t) {
450
408
  dy: 0,
451
409
  dialog: t
452
410
  }, e.currentTarget.setPointerCapture(e.pointerId));
453
- }, []), S = T((e) => {
411
+ }, []), x = k((e) => {
454
412
  let t = y.current;
455
413
  if (!t || t.id !== e.pointerId) return;
456
414
  let { dialog: n } = t;
457
415
  t.dy = Math.max(0, e.clientY - t.y), n.style.transition = "none", n.style.translate = `0 ${t.dy}px`;
458
- }, []), C = T(() => {
416
+ }, []), S = k(() => {
459
417
  let e = y.current;
460
418
  if (y.current = null, !e) return;
461
419
  let { dialog: t } = e;
462
- t.style.transition = "", t.style.translate = "", e.dy > H && s();
420
+ t.style.transition = "", t.style.translate = "", e.dy > re && s();
463
421
  }, [s]);
464
- return /* @__PURE__ */ j(x, {
422
+ return /* @__PURE__ */ F(w, {
465
423
  component: `${_}.list.sheet`,
466
424
  display: "flex",
467
425
  d: "column",
468
426
  css: f ? { minHeight: "min(32rem, calc(100dvh - 2rem))" } : void 0,
469
- open: a,
427
+ open: i,
470
428
  onOpenChange: (e) => e ? o?.() : s(),
471
429
  trigger: l,
472
430
  props: { onKeyDown: h },
473
431
  children: [
474
- /* @__PURE__ */ j(i, {
432
+ /* @__PURE__ */ F(a, {
475
433
  d: "column",
476
434
  flexShrink: 0,
477
435
  css: { touchAction: "none" },
478
436
  props: {
479
437
  onPointerDown: b,
480
- onPointerMove: S,
481
- onPointerUp: C,
482
- onPointerCancel: C
438
+ onPointerMove: x,
439
+ onPointerUp: S,
440
+ onPointerCancel: S
483
441
  },
484
- children: [/* @__PURE__ */ A(e, {
442
+ children: [/* @__PURE__ */ P(e, {
485
443
  width: 9,
486
444
  height: 1.25,
487
445
  mt: 2,
@@ -490,7 +448,7 @@ function U(t) {
490
448
  bgColor: "gray-300",
491
449
  theme: { dark: { bgColor: "gray-600" } },
492
450
  props: { "aria-hidden": !0 }
493
- }), /* @__PURE__ */ j(i, {
451
+ }), /* @__PURE__ */ F(a, {
494
452
  component: `${v}`,
495
453
  ai: "center",
496
454
  gap: 2,
@@ -499,29 +457,29 @@ function U(t) {
499
457
  py: 2,
500
458
  bb: 1,
501
459
  children: [
502
- /* @__PURE__ */ A(x.Title, {
460
+ /* @__PURE__ */ P(w.Title, {
503
461
  flex1: !0,
504
462
  minWidth: 0,
505
463
  m: 0,
506
464
  fontSize: 17,
507
465
  fontWeight: 600,
508
466
  lineHeight: 24,
509
- ...P.TRUNCATE,
467
+ ...D.TRUNCATE,
510
468
  children: c
511
469
  }),
512
470
  u,
513
- /* @__PURE__ */ A(r, {
471
+ /* @__PURE__ */ P(r, {
514
472
  type: "button",
515
473
  component: `${_}.list.sheet.button`,
516
- ...P.ICON_BUTTON,
474
+ ...D.ICON_BUTTON,
517
475
  onClick: s,
518
476
  props: { "aria-label": n.localeText.close },
519
- children: /* @__PURE__ */ A(V, {})
477
+ children: /* @__PURE__ */ P(V, {})
520
478
  })
521
479
  ]
522
480
  })]
523
481
  }),
524
- /* @__PURE__ */ A(e, {
482
+ /* @__PURE__ */ P(e, {
525
483
  ref: m,
526
484
  flex1: !0,
527
485
  overflowY: "auto",
@@ -534,7 +492,7 @@ function U(t) {
534
492
  props: p,
535
493
  children: g
536
494
  }),
537
- d && /* @__PURE__ */ A(i, {
495
+ d && /* @__PURE__ */ P(a, {
538
496
  component: v,
539
497
  gap: 3,
540
498
  flexShrink: 0,
@@ -547,25 +505,25 @@ function U(t) {
547
505
  ]
548
506
  });
549
507
  }
550
- U.displayName = "DataGridListSheet";
508
+ H.displayName = "DataGridListSheet";
551
509
  //#endregion
552
510
  //#region src/components/dataGrid/components/dataGridListRecord.tsx
553
- var W = 60;
554
- function G({ cell: t, index: n }) {
555
- let { grid: a, column: o } = t, s = a.componentName, c = String(o.header ?? o.key), { editing: l } = t, u = D(null), d = D(!1);
556
- return E(() => {
511
+ var ie = 60;
512
+ function ae({ cell: t, index: n }) {
513
+ let { grid: i, column: o } = t, s = i.componentName, c = String(o.header ?? o.key), { editing: l } = t, u = j(null), d = j(!1);
514
+ return A(() => {
557
515
  d.current && !l && u.current?.focus(), d.current = l;
558
- }, [l]), /* @__PURE__ */ j(e, {
516
+ }, [l]), /* @__PURE__ */ F(e, {
559
517
  component: `${s}.list.sheet.line`,
560
518
  py: 3,
561
519
  bb: 1,
562
- children: [/* @__PURE__ */ A(e, {
520
+ children: [/* @__PURE__ */ P(e, {
563
521
  tag: "dt",
564
522
  component: "list.muted",
565
523
  fontSize: 13,
566
524
  lineHeight: 18,
567
525
  children: c
568
- }), /* @__PURE__ */ j(e, {
526
+ }), /* @__PURE__ */ F(e, {
569
527
  tag: "dd",
570
528
  display: "flex",
571
529
  ai: "center",
@@ -577,84 +535,84 @@ function G({ cell: t, index: n }) {
577
535
  fontVariantNumeric: "tabular-nums",
578
536
  overflowWrap: "anywhere"
579
537
  },
580
- children: [l ? /* @__PURE__ */ A(i, {
538
+ children: [l ? /* @__PURE__ */ P(a, {
581
539
  component: `${s}.list.sheet.input`,
582
- ...P.INPUT,
540
+ ...D.INPUT,
583
541
  flex1: !0,
584
542
  ai: "center",
585
543
  px: 1,
586
- children: /* @__PURE__ */ A(m, {
544
+ children: /* @__PURE__ */ P(f, {
587
545
  cell: t,
588
546
  row: -1,
589
547
  columnIndex: n
590
548
  })
591
- }) : /* @__PURE__ */ A(e, {
549
+ }) : /* @__PURE__ */ P(e, {
592
550
  flex1: !0,
593
551
  minWidth: 0,
594
- children: /* @__PURE__ */ A(R, {
552
+ children: /* @__PURE__ */ P(z, {
595
553
  row: t.row,
596
554
  column: o
597
555
  })
598
- }), t.editable && !l && /* @__PURE__ */ A(r, {
556
+ }), t.editable && !l && /* @__PURE__ */ P(r, {
599
557
  ref: u,
600
558
  type: "button",
601
559
  component: `${s}.list.sheet.button`,
602
- ...P.SHEET_BUTTON,
560
+ ...D.SHEET_BUTTON,
603
561
  height: 10,
604
562
  onClick: () => t.beginEdit(),
605
- props: { "aria-label": a.localeText.editCell(c) },
606
- children: a.localeText.edit
563
+ props: { "aria-label": i.localeText.editCell(c) },
564
+ children: i.localeText.edit
607
565
  })]
608
566
  })]
609
567
  });
610
568
  }
611
- function K(t) {
612
- let { grid: n } = t, { list: o } = n, s = n.componentName, l = n.localeText, u = o.record, d = o.recordPosition, { title: f } = o.layout.value, p = D(null), m = D(null), h = u?.key;
613
- E(() => {
614
- m.current?.scrollTo?.({ top: 0 });
615
- }, [h]);
616
- let g = T(() => {
617
- let e = o.record?.key;
618
- n.edits.cancel(), o.closeRecord(), requestAnimationFrame(() => {
569
+ function U(t) {
570
+ let { grid: n } = t, { list: i } = n, s = n.componentName, l = n.localeText, u = i.record, d = i.recordPosition, { title: f } = i.layout.value, m = j(null), h = j(null), g = u?.key;
571
+ A(() => {
572
+ h.current?.scrollTo?.({ top: 0 });
573
+ }, [g]);
574
+ let _ = k(() => {
575
+ let e = i.record?.key;
576
+ n.edits.cancel(), i.closeRecord(), requestAnimationFrame(() => {
619
577
  let t = n.sizingElement?.querySelectorAll("[data-list-key]") ?? [];
620
578
  Array.from(t).find((t) => t.dataset.listKey === String(e))?.querySelector("[data-list-action]")?.focus();
621
579
  });
622
- }, [n, o]), _ = T((e) => {
623
- n.edits.isOpen && n.edits.commit(), n.edits.isOpen || o.stepRecord(e);
624
- }, [n, o]), v = (e) => {
625
- p.current = e.pointerType === "touch" ? {
580
+ }, [n, i]), v = k((e) => {
581
+ n.edits.isOpen && n.edits.commit(), n.edits.isOpen || i.stepRecord(e);
582
+ }, [n, i]), y = (e) => {
583
+ m.current = e.pointerType === "touch" ? {
626
584
  x: e.clientX,
627
585
  y: e.clientY
628
586
  } : null;
629
- }, y = (e) => {
630
- let t = p.current;
631
- if (p.current = null, !t) return;
587
+ }, b = (e) => {
588
+ let t = m.current;
589
+ if (m.current = null, !t) return;
632
590
  let r = e.clientX - t.x, i = e.clientY - t.y;
633
- Math.abs(r) < W || Math.abs(r) < Math.abs(i) * 1.5 || _(r < 0 === n.isRtl ? -1 : 1);
591
+ Math.abs(r) < ie || Math.abs(r) < Math.abs(i) * 1.5 || v(r < 0 === n.isRtl ? -1 : 1);
634
592
  }, x = (e) => {
635
593
  if (e.target.closest("input,select,textarea,[role=\"combobox\"]")) return;
636
594
  let t = n.isRtl ? "ArrowLeft" : "ArrowRight", r = n.isRtl ? "ArrowRight" : "ArrowLeft";
637
- (e.key === t || e.key === r) && (e.preventDefault(), _(e.key === t ? 1 : -1));
638
- }, S = u && d && /* @__PURE__ */ j(i, {
595
+ (e.key === t || e.key === r) && (e.preventDefault(), v(e.key === t ? 1 : -1));
596
+ }, S = u && d && /* @__PURE__ */ F(a, {
639
597
  ai: "center",
640
598
  gap: .5,
641
599
  flexShrink: 0,
642
600
  children: [
643
- /* @__PURE__ */ A(r, {
601
+ /* @__PURE__ */ P(r, {
644
602
  type: "button",
645
603
  component: `${s}.list.sheet.button`,
646
- ...P.ICON_BUTTON,
647
- disabled: !o.hasPreviousRecord,
648
- onClick: () => _(-1),
604
+ ...D.ICON_BUTTON,
605
+ disabled: !i.hasPreviousRecord,
606
+ onClick: () => v(-1),
649
607
  props: { "aria-label": l.previousRow },
650
- children: /* @__PURE__ */ A(b, {
608
+ children: /* @__PURE__ */ P(p, {
651
609
  width: "18px",
652
610
  height: "18px",
653
611
  rotate: 90,
654
612
  rtl: { rotate: -90 }
655
613
  })
656
614
  }),
657
- /* @__PURE__ */ A(e, {
615
+ /* @__PURE__ */ P(e, {
658
616
  fontSize: 13,
659
617
  color: "gray-500",
660
618
  textWrap: "nowrap",
@@ -662,14 +620,14 @@ function K(t) {
662
620
  props: { "aria-live": "polite" },
663
621
  children: l.recordPosition(d.position, d.total)
664
622
  }),
665
- /* @__PURE__ */ A(r, {
623
+ /* @__PURE__ */ P(r, {
666
624
  type: "button",
667
625
  component: `${s}.list.sheet.button`,
668
- ...P.ICON_BUTTON,
669
- disabled: !o.hasNextRecord,
670
- onClick: () => _(1),
626
+ ...D.ICON_BUTTON,
627
+ disabled: !i.hasNextRecord,
628
+ onClick: () => v(1),
671
629
  props: { "aria-label": l.nextRow },
672
- children: /* @__PURE__ */ A(b, {
630
+ children: /* @__PURE__ */ P(p, {
673
631
  width: "18px",
674
632
  height: "18px",
675
633
  rotate: -90,
@@ -678,26 +636,26 @@ function K(t) {
678
636
  })
679
637
  ]
680
638
  }), C = n.props.def.rowDetail;
681
- return /* @__PURE__ */ A(U, {
639
+ return /* @__PURE__ */ P(H, {
682
640
  grid: n,
683
641
  open: !!u,
684
- onClose: g,
642
+ onClose: _,
685
643
  tall: !0,
686
- title: u && f ? /* @__PURE__ */ A(R, {
644
+ title: u && f ? /* @__PURE__ */ P(z, {
687
645
  row: u,
688
646
  column: f
689
647
  }) : "",
690
648
  actions: S,
691
649
  onKeyDown: x,
692
- bodyRef: m,
650
+ bodyRef: h,
693
651
  bodyProps: {
694
- onPointerDown: v,
695
- onPointerUp: y
652
+ onPointerDown: y,
653
+ onPointerUp: b
696
654
  },
697
- children: u && /* @__PURE__ */ j(k, { children: [
698
- n.props.def.rowSelection && /* @__PURE__ */ A(e, {
655
+ children: u && /* @__PURE__ */ F(N, { children: [
656
+ n.props.def.rowSelection && /* @__PURE__ */ P(e, {
699
657
  py: 3,
700
- children: /* @__PURE__ */ A(a, {
658
+ children: /* @__PURE__ */ P(o, {
701
659
  variant: "datagrid",
702
660
  checked: u.selected,
703
661
  onChange: u.toggleSelection,
@@ -710,22 +668,22 @@ function K(t) {
710
668
  }
711
669
  })
712
670
  }),
713
- /* @__PURE__ */ A(e, {
671
+ /* @__PURE__ */ P(e, {
714
672
  tag: "dl",
715
673
  m: 0,
716
- children: o.recordColumns.map((e) => {
674
+ children: i.recordColumns.map((e) => {
717
675
  let t = u.cells.findIndex((t) => t.column === e);
718
- return t === -1 ? null : /* @__PURE__ */ A(G, {
676
+ return t === -1 ? null : /* @__PURE__ */ P(ae, {
719
677
  cell: u.cells[t],
720
678
  index: t
721
679
  }, e.key);
722
680
  })
723
681
  }),
724
- C && /* @__PURE__ */ j(i, {
682
+ C && /* @__PURE__ */ F(a, {
725
683
  d: "column",
726
684
  gap: 2,
727
685
  py: 3,
728
- children: [/* @__PURE__ */ A(c, {
686
+ children: [/* @__PURE__ */ P(c, {
729
687
  m: 0,
730
688
  fontSize: 14,
731
689
  fontWeight: 600,
@@ -735,13 +693,13 @@ function K(t) {
735
693
  ] })
736
694
  });
737
695
  }
738
- K.displayName = "DataGridListRecord";
696
+ U.displayName = "DataGridListRecord";
739
697
  //#endregion
740
698
  //#region src/components/dataGrid/components/dataGridListSelectionBar.tsx
741
- function q(t) {
742
- let { grid: n } = t, a = n.componentName, o = n.localeText, s = n.selectedRows.size;
743
- return !n.props.def.rowSelection || s === 0 ? null : /* @__PURE__ */ j(i, {
744
- component: `${a}.list.selectionBar`,
699
+ function W(t) {
700
+ let { grid: n } = t, i = n.componentName, o = n.localeText, s = n.selectedRows.size;
701
+ return !n.props.def.rowSelection || s === 0 ? null : /* @__PURE__ */ F(a, {
702
+ component: `${i}.list.selectionBar`,
745
703
  position: "sticky",
746
704
  bottom: 0,
747
705
  zIndex: 2,
@@ -752,14 +710,14 @@ function q(t) {
752
710
  fontSize: 14,
753
711
  fontWeight: 500,
754
712
  children: [
755
- /* @__PURE__ */ A(e, {
713
+ /* @__PURE__ */ P(e, {
756
714
  flex1: !0,
757
715
  minWidth: 0,
758
716
  textWrap: "nowrap",
759
717
  css: { fontVariantNumeric: "tabular-nums" },
760
718
  children: o.selectedRows(s)
761
719
  }),
762
- !n.allRowsSelected && /* @__PURE__ */ A(r, {
720
+ !n.allRowsSelected && /* @__PURE__ */ P(r, {
763
721
  type: "button",
764
722
  minHeight: 10,
765
723
  px: 3,
@@ -772,7 +730,7 @@ function q(t) {
772
730
  onClick: n.toggleSelectAllRows,
773
731
  children: o.selectAll
774
732
  }),
775
- /* @__PURE__ */ A(r, {
733
+ /* @__PURE__ */ P(r, {
776
734
  type: "button",
777
735
  minHeight: 10,
778
736
  px: 3,
@@ -788,18 +746,18 @@ function q(t) {
788
746
  ]
789
747
  });
790
748
  }
791
- q.displayName = "DataGridListSelectionBar";
749
+ W.displayName = "DataGridListSelectionBar";
792
750
  //#endregion
793
751
  //#region src/icons/filterIcon.tsx
794
- function J(e) {
795
- return /* @__PURE__ */ A(n, {
752
+ function G(e) {
753
+ return /* @__PURE__ */ P(n, {
796
754
  viewBox: "0 0 24 24",
797
755
  width: "1rem",
798
756
  fill: "none",
799
757
  stroke: "currentColor",
800
758
  strokeWidth: 2,
801
759
  ...e,
802
- children: /* @__PURE__ */ A(t, {
760
+ children: /* @__PURE__ */ P(t, {
803
761
  d: "M4 6h16M7 12h10M10 18h4",
804
762
  strokeLinecap: "round"
805
763
  })
@@ -807,7 +765,7 @@ function J(e) {
807
765
  }
808
766
  //#endregion
809
767
  //#region src/components/dataGrid/components/dataGridListFilter.tsx
810
- var te = 8, ne = [
768
+ var K = 8, q = [
811
769
  {
812
770
  value: "eq",
813
771
  label: "="
@@ -837,11 +795,11 @@ var te = 8, ne = [
837
795
  label: "↔"
838
796
  }
839
797
  ];
840
- function re({ column: e }) {
841
- let { currentFilter: t } = e, n = e.grid.componentName, r = e.grid.localeText, [i, a] = O(t?.type === "text" ? t.value : ""), { debounce: o } = v(t, (e) => d.textMatches(i, e), (e) => a(e?.type === "text" ? e.value : ""));
842
- return /* @__PURE__ */ A(s, {
798
+ function oe({ column: e }) {
799
+ let { currentFilter: t } = e, n = e.grid.componentName, r = e.grid.localeText, [i, a] = M(t?.type === "text" ? t.value : ""), { debounce: o } = x(t, (e) => d.textMatches(i, e), (e) => a(e?.type === "text" ? e.value : ""));
800
+ return /* @__PURE__ */ P(s, {
843
801
  component: `${n}.list.sheet.input`,
844
- ...P.INPUT,
802
+ ...D.INPUT,
845
803
  type: "search",
846
804
  value: i,
847
805
  placeholder: e.filterConfig?.placeholder ?? r.filterPlaceholder,
@@ -852,19 +810,19 @@ function re({ column: e }) {
852
810
  props: { "aria-label": r.filterColumn(String(e.header ?? e.key)) }
853
811
  });
854
812
  }
855
- function ie({ column: t }) {
856
- let { currentFilter: n } = t, r = t.grid.componentName, a = t.grid.localeText, o = String(t.header ?? t.key), c = t.filterConfig, [l, u] = O(() => d.numberDraft(n)), f = D(l), p = T((e) => {
813
+ function se({ column: t }) {
814
+ let { currentFilter: n } = t, r = t.grid.componentName, i = t.grid.localeText, o = String(t.header ?? t.key), c = t.filterConfig, [l, u] = M(() => d.numberDraft(n)), f = j(l), p = k((e) => {
857
815
  f.current = e, u(e);
858
- }, []), { debounce: m, cancel: h } = v(n, (e) => d.numberMatches(l, e), (e) => p(d.numberDraft(e))), g = (e, n) => {
816
+ }, []), { debounce: m, cancel: h } = x(n, (e) => d.numberMatches(l, e), (e) => p(d.numberDraft(e))), g = (e, n) => {
859
817
  p({
860
818
  ...f.current,
861
819
  ...e
862
820
  });
863
821
  let r = () => t.setNumberFilter(f.current.operator, f.current.value, f.current.valueTo);
864
822
  n ? m("value", r) : (h(), r());
865
- }, _ = (e, t, n, i) => /* @__PURE__ */ A(s, {
823
+ }, _ = (e, t, n, i) => /* @__PURE__ */ P(s, {
866
824
  component: `${r}.list.sheet.input`,
867
- ...P.INPUT,
825
+ ...D.INPUT,
868
826
  type: "number",
869
827
  value: e,
870
828
  step: c?.step,
@@ -877,39 +835,43 @@ function ie({ column: t }) {
877
835
  max: c?.max
878
836
  }
879
837
  });
880
- return /* @__PURE__ */ j(i, {
838
+ return /* @__PURE__ */ F(a, {
881
839
  gap: 2,
882
840
  ai: "center",
883
841
  children: [
884
- /* @__PURE__ */ A(e, {
842
+ /* @__PURE__ */ P(e, {
885
843
  tag: "select",
886
844
  component: `${r}.list.sheet.input`,
887
- ...P.INPUT,
845
+ ...D.INPUT,
888
846
  width: 18,
889
847
  flexShrink: 0,
890
848
  props: {
891
849
  value: l.operator,
892
- "aria-label": a.filterComparison(o),
850
+ "aria-label": i.filterComparison(o),
893
851
  onChange: (e) => g({ operator: e.target.value }, !1)
894
852
  },
895
- children: ne.map((e) => /* @__PURE__ */ A("option", {
853
+ children: q.map((e) => /* @__PURE__ */ P("option", {
896
854
  value: e.value,
897
855
  children: e.label
898
856
  }, e.value))
899
857
  }),
900
- _(l.value, l.operator === "between" ? a.filterFrom(o) : a.filterColumn(o), l.operator === "between" ? a.filterFromPlaceholder : c?.placeholder ?? a.filterValuePlaceholder, "value"),
901
- l.operator === "between" && _(l.valueTo, a.filterTo(o), a.filterToPlaceholder, "valueTo")
858
+ _(l.value, l.operator === "between" ? i.filterFrom(o) : i.filterColumn(o), l.operator === "between" ? i.filterFromPlaceholder : c?.placeholder ?? i.filterValuePlaceholder, "value"),
859
+ l.operator === "between" && _(l.valueTo, i.filterTo(o), i.filterToPlaceholder, "valueTo")
902
860
  ]
903
861
  });
904
862
  }
905
- function ae({ column: e }) {
906
- let { currentFilter: t } = e, n = e.grid.componentName, o = e.grid.localeText, c = t?.type === "multiselect" ? t.values : [], l = e.filterOptions, [u, d] = O(""), f = (t) => {
863
+ function ce({ column: e }) {
864
+ let t = g(!0);
865
+ return t ? /* @__PURE__ */ P(t.ListDateFilter, { column: e }) : null;
866
+ }
867
+ function J({ column: e }) {
868
+ let { currentFilter: t } = e, n = e.grid.componentName, i = e.grid.localeText, c = t?.type === "multiselect" ? t.values : [], l = e.filterOptions, [u, d] = M(""), f = (t) => {
907
869
  e.setMultiselectFilter(c.includes(t) ? c.filter((e) => e !== t) : [...c, t]);
908
870
  };
909
- if (l.length <= te) return /* @__PURE__ */ A(i, {
871
+ if (l.length <= K) return /* @__PURE__ */ P(a, {
910
872
  flexWrap: "wrap",
911
873
  gap: 2,
912
- children: l.map((e) => /* @__PURE__ */ A(r, {
874
+ children: l.map((e) => /* @__PURE__ */ P(r, {
913
875
  type: "button",
914
876
  component: `${n}.list.sheet.chip`,
915
877
  display: "inline-flex",
@@ -925,22 +887,22 @@ function ae({ column: e }) {
925
887
  }, String(e.value)))
926
888
  });
927
889
  let p = u.trim().toLocaleLowerCase(), m = p ? l.filter((e) => e.label.toLocaleLowerCase().includes(p)) : l;
928
- return /* @__PURE__ */ j(i, {
890
+ return /* @__PURE__ */ F(a, {
929
891
  d: "column",
930
892
  gap: 2,
931
- children: [/* @__PURE__ */ A(s, {
893
+ children: [/* @__PURE__ */ P(s, {
932
894
  component: `${n}.list.sheet.input`,
933
- ...P.INPUT,
895
+ ...D.INPUT,
934
896
  type: "search",
935
897
  value: u,
936
- placeholder: o.filterSelectSearchPlaceholder,
898
+ placeholder: i.filterSelectSearchPlaceholder,
937
899
  onChange: (e) => d(e.target.value),
938
- props: { "aria-label": o.filterColumn(String(e.header ?? e.key)) }
939
- }), /* @__PURE__ */ A(i, {
900
+ props: { "aria-label": i.filterColumn(String(e.header ?? e.key)) }
901
+ }), /* @__PURE__ */ P(a, {
940
902
  d: "column",
941
903
  maxHeight: 64,
942
904
  overflowY: "auto",
943
- children: m.map((e) => /* @__PURE__ */ A(a, {
905
+ children: m.map((e) => /* @__PURE__ */ P(o, {
944
906
  checked: c.includes(e.value),
945
907
  onChange: () => f(e.value),
946
908
  label: e.label,
@@ -961,27 +923,28 @@ function Y(e) {
961
923
  let { column: t } = e;
962
924
  switch (t.filterConfig?.type) {
963
925
  case void 0: return null;
964
- case "number": return /* @__PURE__ */ A(ie, { column: t });
965
- case "multiselect": return /* @__PURE__ */ A(ae, { column: t });
966
- default: return /* @__PURE__ */ A(re, { column: t });
926
+ case "number": return /* @__PURE__ */ P(se, { column: t });
927
+ case "multiselect": return /* @__PURE__ */ P(J, { column: t });
928
+ case "date": return /* @__PURE__ */ P(ce, { column: t });
929
+ default: return /* @__PURE__ */ P(oe, { column: t });
967
930
  }
968
931
  }
969
932
  Y.displayName = "DataGridListFilter";
970
933
  //#endregion
971
934
  //#region src/components/dataGrid/components/dataGridListFilterSheet.tsx
972
935
  function X(t) {
973
- let { grid: n } = t, { list: a } = n, o = n.componentName, s = n.localeText, l = a.activeFilters.length, u = a.filterableColumns;
974
- return u.length === 0 ? null : /* @__PURE__ */ A(U, {
936
+ let { grid: n } = t, { list: i } = n, o = n.componentName, s = n.localeText, l = i.activeFilters.length, u = i.filterableColumns;
937
+ return u.length === 0 ? null : /* @__PURE__ */ P(H, {
975
938
  grid: n,
976
- open: a.sheet === "filter",
977
- onOpen: () => a.openSheet("filter"),
978
- onClose: () => a.openSheet(null),
939
+ open: i.sheet === "filter",
940
+ onOpen: () => i.openSheet("filter"),
941
+ onClose: () => i.openSheet(null),
979
942
  title: s.filters,
980
- trigger: ({ ref: t, props: { onClick: n, ...i } }) => /* @__PURE__ */ j(r, {
943
+ trigger: ({ ref: t, props: { onClick: n, ...i } }) => /* @__PURE__ */ F(r, {
981
944
  type: "button",
982
945
  component: `${o}.list.toolbar.button`,
983
946
  variant: { active: l > 0 },
984
- ...P.PILL,
947
+ ...D.PILL,
985
948
  ref: t,
986
949
  onClick: n,
987
950
  props: {
@@ -989,9 +952,9 @@ function X(t) {
989
952
  "aria-label": s.filtersLabel(l)
990
953
  },
991
954
  children: [
992
- /* @__PURE__ */ A(J, {}),
955
+ /* @__PURE__ */ P(G, {}),
993
956
  s.filters,
994
- l > 0 && /* @__PURE__ */ A(e, {
957
+ l > 0 && /* @__PURE__ */ P(e, {
995
958
  tag: "span",
996
959
  minWidth: 5,
997
960
  height: 5,
@@ -1008,33 +971,33 @@ function X(t) {
1008
971
  })
1009
972
  ]
1010
973
  }),
1011
- footer: /* @__PURE__ */ j(k, { children: [l > 0 && /* @__PURE__ */ A(r, {
974
+ footer: /* @__PURE__ */ F(N, { children: [l > 0 && /* @__PURE__ */ P(r, {
1012
975
  type: "button",
1013
976
  component: `${o}.list.sheet.button`,
1014
- ...P.SHEET_BUTTON,
977
+ ...D.SHEET_BUTTON,
1015
978
  onClick: n.clearColumnFilters,
1016
979
  children: s.clearFilters
1017
- }), /* @__PURE__ */ A(r, {
980
+ }), /* @__PURE__ */ P(r, {
1018
981
  type: "button",
1019
982
  component: `${o}.list.sheet.primary`,
1020
- ...P.SHEET_BUTTON,
983
+ ...D.SHEET_BUTTON,
1021
984
  flex1: !0,
1022
985
  fontWeight: 600,
1023
- onClick: () => a.openSheet(null),
986
+ onClick: () => i.openSheet(null),
1024
987
  children: s.showRows(n.filterStats.filtered)
1025
988
  })] }),
1026
- children: u.map((e) => /* @__PURE__ */ j(i, {
989
+ children: u.map((e) => /* @__PURE__ */ F(a, {
1027
990
  component: `${o}.list.sheet.line`,
1028
991
  d: "column",
1029
992
  gap: 2,
1030
993
  py: 3,
1031
994
  bb: 1,
1032
- children: [/* @__PURE__ */ A(c, {
995
+ children: [/* @__PURE__ */ P(c, {
1033
996
  m: 0,
1034
997
  fontSize: 14,
1035
998
  fontWeight: 600,
1036
999
  children: e.header ?? String(e.key)
1037
- }), /* @__PURE__ */ A(Y, { column: e })]
1000
+ }), /* @__PURE__ */ P(Y, { column: e })]
1038
1001
  }, e.key))
1039
1002
  });
1040
1003
  }
@@ -1042,8 +1005,8 @@ X.displayName = "DataGridListFilterSheet";
1042
1005
  //#endregion
1043
1006
  //#region src/components/dataGrid/components/dataGridListSortSheet.tsx
1044
1007
  function Z(e) {
1045
- let { grid: t } = e, { list: n } = t, a = t.componentName, o = t.localeText, s = n.sortedColumn, c = t.sortDirection === "DESC", l = `${t.identifier}-sort`, u = {
1046
- component: `${a}.list.sheet.line`,
1008
+ let { grid: t } = e, { list: n } = t, i = t.componentName, o = t.localeText, s = n.sortedColumn, c = t.sortDirection === "DESC", l = `${t.identifier}-sort`, u = {
1009
+ component: `${i}.list.sheet.line`,
1047
1010
  display: "flex",
1048
1011
  ai: "center",
1049
1012
  gap: 3,
@@ -1052,57 +1015,57 @@ function Z(e) {
1052
1015
  cursor: "pointer",
1053
1016
  bb: 1
1054
1017
  };
1055
- return /* @__PURE__ */ j(U, {
1018
+ return /* @__PURE__ */ F(H, {
1056
1019
  grid: t,
1057
1020
  open: n.sheet === "sort",
1058
1021
  onClose: () => n.openSheet(null),
1059
1022
  title: o.sortBy,
1060
1023
  onOpen: () => n.openSheet("sort"),
1061
- trigger: ({ ref: e, props: { onClick: t, ...n } }) => /* @__PURE__ */ j(r, {
1024
+ trigger: ({ ref: e, props: { onClick: t, ...n } }) => /* @__PURE__ */ F(r, {
1062
1025
  type: "button",
1063
- component: `${a}.list.toolbar.button`,
1026
+ component: `${i}.list.toolbar.button`,
1064
1027
  variant: { active: !!s },
1065
- ...P.PILL,
1028
+ ...D.PILL,
1066
1029
  ref: e,
1067
1030
  onClick: t,
1068
1031
  props: n,
1069
- children: [/* @__PURE__ */ A(g, {
1032
+ children: [/* @__PURE__ */ P(v, {
1070
1033
  width: "16px",
1071
1034
  height: "16px",
1072
1035
  fill: "currentColor",
1073
1036
  rotate: c ? 180 : 0
1074
1037
  }), s ? o.sortedBy(String(s.header ?? s.key), c) : o.sortBy]
1075
1038
  }),
1076
- footer: /* @__PURE__ */ j(k, { children: [s && /* @__PURE__ */ A(r, {
1039
+ footer: /* @__PURE__ */ F(N, { children: [s && /* @__PURE__ */ P(r, {
1077
1040
  type: "button",
1078
- component: `${a}.list.sheet.button`,
1079
- ...P.SHEET_BUTTON,
1041
+ component: `${i}.list.sheet.button`,
1042
+ ...D.SHEET_BUTTON,
1080
1043
  onClick: () => t.setSortColumn(s.key, void 0),
1081
1044
  children: o.clearSort
1082
- }), /* @__PURE__ */ A(r, {
1045
+ }), /* @__PURE__ */ P(r, {
1083
1046
  type: "button",
1084
- component: `${a}.list.sheet.primary`,
1085
- ...P.SHEET_BUTTON,
1047
+ component: `${i}.list.sheet.primary`,
1048
+ ...D.SHEET_BUTTON,
1086
1049
  flex1: !0,
1087
1050
  fontWeight: 600,
1088
1051
  onClick: () => n.openSheet(null),
1089
1052
  children: o.close
1090
1053
  })] }),
1091
- children: [/* @__PURE__ */ A(i, {
1054
+ children: [/* @__PURE__ */ P(a, {
1092
1055
  tag: "fieldset",
1093
1056
  d: "column",
1094
1057
  b: 0,
1095
1058
  m: 0,
1096
1059
  p: 0,
1097
1060
  props: { "aria-label": o.sortBy },
1098
- children: n.sortableColumns.map((e) => /* @__PURE__ */ A(C, {
1061
+ children: n.sortableColumns.map((e) => /* @__PURE__ */ P(E, {
1099
1062
  name: l,
1100
1063
  checked: s === e,
1101
1064
  onChange: () => t.setSortColumn(e.key, c && s ? "DESC" : "ASC"),
1102
1065
  label: e.header ?? String(e.key),
1103
1066
  labelProps: u
1104
1067
  }, e.key))
1105
- }), s && /* @__PURE__ */ A(i, {
1068
+ }), s && /* @__PURE__ */ P(a, {
1106
1069
  tag: "fieldset",
1107
1070
  d: "column",
1108
1071
  b: 0,
@@ -1110,7 +1073,7 @@ function Z(e) {
1110
1073
  p: 0,
1111
1074
  pt: 4,
1112
1075
  props: { "aria-label": `${o.sortBy}: ${s.header ?? s.key}` },
1113
- children: ["ASC", "DESC"].map((e) => /* @__PURE__ */ A(C, {
1076
+ children: ["ASC", "DESC"].map((e) => /* @__PURE__ */ P(E, {
1114
1077
  name: `${l}-direction`,
1115
1078
  checked: t.sortDirection === e,
1116
1079
  onChange: () => t.setSortColumn(s.key, e),
@@ -1123,24 +1086,24 @@ function Z(e) {
1123
1086
  Z.displayName = "DataGridListSortSheet";
1124
1087
  //#endregion
1125
1088
  //#region src/components/dataGrid/components/dataGridListToolbar.tsx
1126
- function oe({ grid: e }) {
1127
- let t = e.componentName, [n, a] = O(e.globalFilterValue), { debounce: o, cancel: c } = v(e.globalFilterValue, (e) => e === n, a);
1128
- return /* @__PURE__ */ j(i, {
1089
+ function le({ grid: e }) {
1090
+ let t = e.componentName, [n, i] = M(e.globalFilterValue), { debounce: o, cancel: c } = x(e.globalFilterValue, (e) => e === n, i);
1091
+ return /* @__PURE__ */ F(a, {
1129
1092
  position: "relative",
1130
1093
  ai: "center",
1131
1094
  children: [
1132
- /* @__PURE__ */ A(i, {
1095
+ /* @__PURE__ */ P(a, {
1133
1096
  position: "absolute",
1134
1097
  insetStart: 3.5,
1135
1098
  pointerEvents: "none",
1136
1099
  color: "gray-500",
1137
1100
  props: { "aria-hidden": !0 },
1138
- children: /* @__PURE__ */ A(_, {
1101
+ children: /* @__PURE__ */ P(b, {
1139
1102
  fill: "currentColor",
1140
1103
  width: "16px"
1141
1104
  })
1142
1105
  }),
1143
- /* @__PURE__ */ A(s, {
1106
+ /* @__PURE__ */ P(s, {
1144
1107
  component: `${t}.list.toolbar.search`,
1145
1108
  width: "fit",
1146
1109
  height: 11,
@@ -1154,14 +1117,14 @@ function oe({ grid: e }) {
1154
1117
  placeholder: e.localeText.searchPlaceholder,
1155
1118
  onChange: (t) => {
1156
1119
  let n = t.target.value;
1157
- a(n), o("value", () => e.filter.setGlobalFilter(n));
1120
+ i(n), o("value", () => e.filter.setGlobalFilter(n));
1158
1121
  },
1159
1122
  props: {
1160
1123
  "aria-label": e.localeText.searchPlaceholder,
1161
1124
  enterKeyHint: "search"
1162
1125
  }
1163
1126
  }),
1164
- n && /* @__PURE__ */ A(r, {
1127
+ n && /* @__PURE__ */ P(r, {
1165
1128
  type: "button",
1166
1129
  component: `${t}.list.sheet.button`,
1167
1130
  display: "inline-flex",
@@ -1174,17 +1137,17 @@ function oe({ grid: e }) {
1174
1137
  position: "absolute",
1175
1138
  insetEnd: 2,
1176
1139
  onClick: () => {
1177
- c(), a(""), e.filter.setGlobalFilter("");
1140
+ c(), i(""), e.filter.setGlobalFilter("");
1178
1141
  },
1179
1142
  props: { "aria-label": e.localeText.clearSearch },
1180
- children: /* @__PURE__ */ A(V, { width: "16px" })
1143
+ children: /* @__PURE__ */ P(V, { width: "16px" })
1181
1144
  })
1182
1145
  ]
1183
1146
  });
1184
1147
  }
1185
1148
  function Q(t) {
1186
- let { grid: n } = t, { list: a } = n, { def: s } = n.props, c = n.componentName, l = n.localeText, { filtered: u, total: d } = n.filterStats, f = a.activeFilters, p = a.sortableColumns.length > 0;
1187
- return /* @__PURE__ */ j(i, {
1149
+ let { grid: n } = t, { list: o } = n, { def: s } = n.props, c = n.componentName, l = n.localeText, { filtered: u, total: d } = n.filterStats, f = o.activeFilters, p = o.sortableColumns.length > 0;
1150
+ return /* @__PURE__ */ F(a, {
1188
1151
  component: `${c}.list.toolbar`,
1189
1152
  d: "column",
1190
1153
  gap: 3,
@@ -1192,61 +1155,61 @@ function Q(t) {
1192
1155
  pt: 4,
1193
1156
  pb: 3,
1194
1157
  children: [
1195
- /* @__PURE__ */ j(i, {
1158
+ /* @__PURE__ */ F(a, {
1196
1159
  ai: "center",
1197
1160
  gap: 3,
1198
1161
  flexWrap: "wrap",
1199
- children: [/* @__PURE__ */ j(i, {
1162
+ children: [/* @__PURE__ */ F(a, {
1200
1163
  d: "column",
1201
1164
  flex1: !0,
1202
1165
  minWidth: 0,
1203
- children: [s.title && /* @__PURE__ */ A(e, {
1166
+ children: [s.title && /* @__PURE__ */ P(e, {
1204
1167
  id: n.titleId,
1205
1168
  fontSize: 17,
1206
1169
  fontWeight: 600,
1207
1170
  lineHeight: 24,
1208
1171
  children: s.title
1209
- }), /* @__PURE__ */ A(e, {
1172
+ }), /* @__PURE__ */ P(e, {
1210
1173
  component: `${c}.list.toolbar.count`,
1211
1174
  fontSize: 13,
1212
1175
  css: { fontVariantNumeric: "tabular-nums" },
1213
1176
  children: l.rowCount(u, d)
1214
1177
  })]
1215
- }), s.topBar && /* @__PURE__ */ j(i, {
1178
+ }), s.topBar && /* @__PURE__ */ F(a, {
1216
1179
  ai: "center",
1217
1180
  gap: 2,
1218
1181
  flexWrap: "wrap",
1219
- children: [/* @__PURE__ */ A(h, { grid: n }), /* @__PURE__ */ A(y, { grid: n })]
1182
+ children: [/* @__PURE__ */ P(_, { grid: n }), /* @__PURE__ */ P(S, { grid: n })]
1220
1183
  })]
1221
1184
  }),
1222
- s.globalFilter && /* @__PURE__ */ A(oe, { grid: n }),
1223
- /* @__PURE__ */ j(i, {
1185
+ s.globalFilter && /* @__PURE__ */ P(le, { grid: n }),
1186
+ /* @__PURE__ */ F(a, {
1224
1187
  gap: 2,
1225
1188
  overflowX: "auto",
1226
1189
  scrollbarWidth: "none",
1227
1190
  mx: -4,
1228
1191
  px: 4,
1229
1192
  children: [
1230
- p && /* @__PURE__ */ A(Z, { grid: n }),
1231
- /* @__PURE__ */ A(X, { grid: n }),
1232
- s.rowSelection && /* @__PURE__ */ A(r, {
1193
+ p && /* @__PURE__ */ P(Z, { grid: n }),
1194
+ /* @__PURE__ */ P(X, { grid: n }),
1195
+ s.rowSelection && /* @__PURE__ */ P(r, {
1233
1196
  type: "button",
1234
1197
  component: `${c}.list.toolbar.button`,
1235
- ...P.PILL,
1236
- variant: { active: a.selecting },
1237
- onClick: () => a.setSelecting(!a.selecting),
1238
- props: { "aria-pressed": a.selecting },
1198
+ ...D.PILL,
1199
+ variant: { active: o.selecting },
1200
+ onClick: () => o.setSelecting(!o.selecting),
1201
+ props: { "aria-pressed": o.selecting },
1239
1202
  children: l.selectRows
1240
1203
  })
1241
1204
  ]
1242
1205
  }),
1243
- f.length > 0 && /* @__PURE__ */ A(i, {
1206
+ f.length > 0 && /* @__PURE__ */ P(a, {
1244
1207
  gap: 2,
1245
1208
  overflowX: "auto",
1246
1209
  scrollbarWidth: "none",
1247
1210
  mx: -4,
1248
1211
  px: 4,
1249
- children: f.map((t) => /* @__PURE__ */ j(e, {
1212
+ children: f.map((t) => /* @__PURE__ */ F(e, {
1250
1213
  tag: "span",
1251
1214
  component: `${c}.list.toolbar.chip`,
1252
1215
  display: "inline-flex",
@@ -1260,16 +1223,16 @@ function Q(t) {
1260
1223
  fontSize: 13,
1261
1224
  textWrap: "nowrap",
1262
1225
  children: [
1263
- /* @__PURE__ */ j(e, {
1226
+ /* @__PURE__ */ F(e, {
1264
1227
  tag: "span",
1265
1228
  fontWeight: 500,
1266
1229
  children: [t.label, ":"]
1267
1230
  }),
1268
- /* @__PURE__ */ A(e, {
1231
+ /* @__PURE__ */ P(e, {
1269
1232
  tag: "span",
1270
1233
  children: t.value
1271
1234
  }),
1272
- /* @__PURE__ */ A(r, {
1235
+ /* @__PURE__ */ P(r, {
1273
1236
  type: "button",
1274
1237
  component: `${c}.list.sheet.button`,
1275
1238
  display: "inline-flex",
@@ -1281,13 +1244,13 @@ function Q(t) {
1281
1244
  cursor: "pointer",
1282
1245
  onClick: () => t.column.clearFilter(),
1283
1246
  props: { "aria-label": l.clearFilter(t.label) },
1284
- children: /* @__PURE__ */ A(V, { width: "14px" })
1247
+ children: /* @__PURE__ */ P(V, { width: "14px" })
1285
1248
  })
1286
1249
  ]
1287
1250
  }, t.column.key))
1288
1251
  }),
1289
- s.topBarContent && /* @__PURE__ */ A(e, { children: s.topBarContent }),
1290
- /* @__PURE__ */ A(o, {
1252
+ s.topBarContent && /* @__PURE__ */ P(e, { children: s.topBarContent }),
1253
+ /* @__PURE__ */ P(i, {
1291
1254
  props: { role: "status" },
1292
1255
  children: n.hasActiveFilters ? l.rowCount(u, d) : ""
1293
1256
  })
@@ -1298,38 +1261,38 @@ Q.displayName = "DataGridListToolbar";
1298
1261
  //#endregion
1299
1262
  //#region src/components/dataGrid/components/dataGridList.tsx
1300
1263
  function $(t) {
1301
- let { grid: n } = t, { list: r, source: a } = n, o = n.componentName, s = r.visibleItems, c = n.props.loading || a.isLoading, l = n.groupColumns.size === 0 && !n.tree.enabled, d = a.enabled ? n.totalRowCount : n.filterStats.filtered, { queryVersion: f } = a;
1302
- return E(() => {
1303
- a.enabled && a.request(0, Math.max(s.length, 1));
1264
+ let { grid: n } = t, { list: r, source: i } = n, o = n.componentName, s = r.visibleItems, c = n.props.loading || i.isLoading, l = n.groupColumns.size === 0 && !n.tree.enabled, d = i.enabled ? n.totalRowCount : n.filterStats.filtered, { queryVersion: f } = i;
1265
+ return A(() => {
1266
+ i.enabled && i.request(0, Math.max(s.length, 1));
1304
1267
  }, [
1305
- a,
1268
+ i,
1306
1269
  f,
1307
1270
  s.length,
1308
1271
  n.page,
1309
1272
  n.pageSize,
1310
1273
  n.expansionVersion
1311
- ]), /* @__PURE__ */ j(i, {
1274
+ ]), /* @__PURE__ */ F(a, {
1312
1275
  component: `${o}.list`,
1313
1276
  d: "column",
1314
1277
  children: [
1315
- /* @__PURE__ */ A(Q, { grid: n }),
1316
- /* @__PURE__ */ A(p, { grid: n }),
1317
- c && /* @__PURE__ */ A(u, { grid: n }),
1318
- s.length === 0 ? /* @__PURE__ */ A(e, {
1278
+ /* @__PURE__ */ P(Q, { grid: n }),
1279
+ /* @__PURE__ */ P(m, { grid: n }),
1280
+ c && /* @__PURE__ */ P(u, { grid: n }),
1281
+ s.length === 0 ? /* @__PURE__ */ P(e, {
1319
1282
  component: "list.muted",
1320
1283
  px: 4,
1321
1284
  py: 10,
1322
1285
  textAlign: "center",
1323
1286
  children: n.props.def.noDataComponent ?? (c ? n.localeText.loadingRows : n.localeText.noRows)
1324
- }) : /* @__PURE__ */ A(S, {
1287
+ }) : /* @__PURE__ */ P(T, {
1325
1288
  props: {
1326
1289
  "aria-labelledby": n.props.def.title ? n.titleId : void 0,
1327
1290
  "aria-busy": c || void 0
1328
1291
  },
1329
- children: s.map(({ row: e, index: t }, r) => e.kind === "group" ? /* @__PURE__ */ A(L, {
1292
+ children: s.map(({ row: e, index: t }, r) => e.kind === "group" ? /* @__PURE__ */ P(te, {
1330
1293
  row: e,
1331
1294
  version: n.rowVersion(e, t)
1332
- }, e.key) : /* @__PURE__ */ A(B, {
1295
+ }, e.key) : /* @__PURE__ */ P(ne, {
1333
1296
  row: e,
1334
1297
  index: t,
1335
1298
  position: l ? r + 1 : void 0,
@@ -1337,12 +1300,12 @@ function $(t) {
1337
1300
  version: n.rowVersion(e, t)
1338
1301
  }, e.key))
1339
1302
  }),
1340
- /* @__PURE__ */ A(F, {
1303
+ /* @__PURE__ */ P(L, {
1341
1304
  grid: n,
1342
1305
  shown: l ? s.length : void 0
1343
1306
  }),
1344
- /* @__PURE__ */ A(q, { grid: n }),
1345
- /* @__PURE__ */ A(K, { grid: n })
1307
+ /* @__PURE__ */ P(W, { grid: n }),
1308
+ /* @__PURE__ */ P(U, { grid: n })
1346
1309
  ]
1347
1310
  });
1348
1311
  }