@box-kite/react 2.2.7 → 2.2.8

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