@box-kite/react 2.2.4 → 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 (167) hide show
  1. package/.claude/rules/box-kite-rules.md +11 -1
  2. package/.claude/skills/box-kite/SKILL.md +11 -1
  3. package/.claude/skills/box-kite/references/components.md +83 -3
  4. package/.cursor/rules/box-kite.mdc +11 -1
  5. package/AGENTS.md +11 -1
  6. package/BOX_AI_CONTEXT.md +371 -25
  7. package/BOX_KITE_AI_CONTEXT.md +371 -25
  8. package/behavior.cjs +1 -1
  9. package/behavior.mjs +57 -57
  10. package/box.cjs +1 -1
  11. package/box.d.ts +5 -0
  12. package/box.mjs +15 -15
  13. package/catalog.cjs +1 -1
  14. package/catalog.mjs +906 -0
  15. package/client.cjs +1 -1
  16. package/client.mjs +94 -80
  17. package/components/calendar.cjs +1 -0
  18. package/components/calendar.d.ts +77 -0
  19. package/components/calendar.mjs +483 -0
  20. package/components/dashboard.cjs +1 -1
  21. package/components/dashboard.mjs +1 -1
  22. package/components/dataGrid/components/dataGridBooleanValue.d.ts +11 -0
  23. package/components/dataGrid/components/dataGridDateParts.d.ts +40 -0
  24. package/components/dataGrid/components/dataGridDateValue.d.ts +14 -0
  25. package/components/dataGrid/components/dataGridList.d.ts +12 -0
  26. package/components/dataGrid/components/dataGridListAggregate.d.ts +7 -0
  27. package/components/dataGrid/components/dataGridListFilter.d.ts +7 -0
  28. package/components/dataGrid/components/dataGridListFilterSheet.d.ts +11 -0
  29. package/components/dataGrid/components/dataGridListFooter.d.ts +13 -0
  30. package/components/dataGrid/components/dataGridListGroup.d.ts +13 -0
  31. package/components/dataGrid/components/dataGridListItem.d.ts +21 -0
  32. package/components/dataGrid/components/dataGridListLayout.d.ts +20 -0
  33. package/components/dataGrid/components/dataGridListRecord.d.ts +11 -0
  34. package/components/dataGrid/components/dataGridListSelectionBar.d.ts +11 -0
  35. package/components/dataGrid/components/dataGridListSheet.d.ts +30 -0
  36. package/components/dataGrid/components/dataGridListSortSheet.d.ts +10 -0
  37. package/components/dataGrid/components/dataGridListToolbar.d.ts +10 -0
  38. package/components/dataGrid/components/dataGridListValue.d.ts +12 -0
  39. package/components/dataGrid/contracts/dataGridContract.d.ts +70 -11
  40. package/components/dataGrid/models/columnModel.d.ts +3 -1
  41. package/components/dataGrid/models/editModel.d.ts +3 -1
  42. package/components/dataGrid/models/gridModel.d.ts +3 -0
  43. package/components/dataGrid/models/listModel.d.ts +129 -0
  44. package/components/dataGrid/models/localeText.d.ts +36 -0
  45. package/components/dataGrid/models/viewportModel.d.ts +0 -2
  46. package/components/dataGrid/useDateParts.d.ts +17 -0
  47. package/components/dataGrid/useListLayout.d.ts +13 -0
  48. package/components/dataGrid.cjs +3 -3
  49. package/components/dataGrid.mjs +1251 -854
  50. package/components/dateField.cjs +1 -0
  51. package/components/dateField.d.ts +78 -0
  52. package/components/dateField.mjs +313 -0
  53. package/components/datePicker.cjs +1 -0
  54. package/components/datePicker.d.ts +120 -0
  55. package/components/datePicker.mjs +529 -0
  56. package/components/dateTime.cjs +1 -0
  57. package/components/dateTime.d.ts +23 -0
  58. package/components/dateTime.mjs +34 -0
  59. package/components/dialog.cjs +1 -1
  60. package/components/dialog.mjs +29 -29
  61. package/components/list/listItemParts.d.ts +9 -0
  62. package/components/list.cjs +1 -0
  63. package/components/list.d.ts +118 -0
  64. package/components/list.mjs +391 -0
  65. package/components/menu.cjs +1 -1
  66. package/components/menu.mjs +25 -25
  67. package/components/overlay.cjs +1 -1
  68. package/components/overlay.mjs +12 -12
  69. package/components/semantics.d.ts +29 -29
  70. package/components/slider.cjs +1 -1
  71. package/components/slider.mjs +1 -1
  72. package/components/sortableList.cjs +1 -0
  73. package/components/sortableList.d.ts +49 -0
  74. package/components/sortableList.mjs +384 -0
  75. package/components/swipeItem.cjs +1 -0
  76. package/components/swipeItem.d.ts +52 -0
  77. package/components/swipeItem.mjs +321 -0
  78. package/components/tabs.cjs +1 -1
  79. package/components/tabs.mjs +1 -1
  80. package/components/timeZoneSelect.cjs +1 -0
  81. package/components/timeZoneSelect.d.ts +52 -0
  82. package/components/timeZoneSelect.mjs +74 -0
  83. package/components/toaster.cjs +1 -1
  84. package/components/toaster.mjs +24 -24
  85. package/components/virtualList.cjs +1 -0
  86. package/components/virtualList.d.ts +32 -0
  87. package/components/virtualList.mjs +188 -0
  88. package/dataGridDateParts.cjs +1 -0
  89. package/dataGridDateParts.mjs +223 -0
  90. package/dataGridList.cjs +1 -0
  91. package/dataGridList.mjs +1314 -0
  92. package/dataGridListLayout.cjs +1 -0
  93. package/dataGridListLayout.mjs +49 -0
  94. package/date-environment.cjs +1 -0
  95. package/date-environment.mjs +29 -0
  96. package/date-input.cjs +1 -0
  97. package/date-input.mjs +346 -0
  98. package/date-math.cjs +1 -0
  99. package/date-math.mjs +317 -0
  100. package/date.cjs +1 -0
  101. package/date.d.ts +40 -0
  102. package/date.mjs +4 -0
  103. package/dates.cjs +1 -0
  104. package/dates.mjs +689 -0
  105. package/docs/components.md +10 -1
  106. package/icons/closeIcon.d.ts +2 -0
  107. package/icons/filterIcon.d.ts +2 -0
  108. package/layer.cjs +1 -1
  109. package/layer.mjs +1 -1
  110. package/mcp/src/data.d.ts +2 -0
  111. package/package.json +178 -22
  112. package/placement.cjs +1 -1
  113. package/placement.mjs +10 -10
  114. package/platform.cjs +1 -1
  115. package/platform.mjs +4 -1
  116. package/react/a11y/useControllableState.d.ts +2 -1
  117. package/react/boxComponent.d.ts +1 -1
  118. package/react/componentsContext.d.ts +4 -0
  119. package/react/componentsProvider.d.ts +10 -0
  120. package/react/date/dateChange.d.ts +18 -0
  121. package/react/date/dateEnvironment.d.ts +34 -0
  122. package/react/resolveStyles.d.ts +2 -1
  123. package/react/theme/theme.d.ts +6 -1
  124. package/react-shared.cjs +1 -1
  125. package/react-shared.mjs +6 -6
  126. package/registry/blocks/dashboard-shell/dashboard-shell.d.ts +3 -1
  127. package/registry/designs/store/address-form.d.ts +11 -0
  128. package/registry/designs/store/cart-items.d.ts +10 -0
  129. package/registry/designs/store/cart-page.d.ts +4 -0
  130. package/registry/designs/store/checkout-page.d.ts +7 -0
  131. package/registry/designs/store/credit-card-form.d.ts +10 -0
  132. package/registry/designs/store/form-field.d.ts +19 -0
  133. package/registry/designs/store/order-summary.d.ts +18 -0
  134. package/registry/designs/store/product-art.d.ts +26 -0
  135. package/registry/designs/store/product-card.d.ts +11 -0
  136. package/registry/designs/store/product-gallery.d.ts +11 -0
  137. package/registry/designs/store/product-grid.d.ts +10 -0
  138. package/registry/designs/store/product-page.d.ts +5 -0
  139. package/registry/designs/store/quantity-stepper.d.ts +13 -0
  140. package/registry/designs/store/shipping-method.d.ts +14 -0
  141. package/registry/designs/store/store-data.d.ts +53 -0
  142. package/registry/designs/store/store-design.d.ts +63 -0
  143. package/registry/designs/store/store-shell.d.ts +12 -0
  144. package/registry/designs/store/storefront-page.d.ts +4 -0
  145. package/registry/designs/store/variant-picker.d.ts +15 -0
  146. package/rsc.cjs +1 -1
  147. package/rsc.d.ts +2 -0
  148. package/rsc.mjs +1 -1
  149. package/scrolling.cjs +1 -0
  150. package/scrolling.mjs +22 -0
  151. package/utils/date/calendar.d.ts +44 -0
  152. package/utils/date/calendarModel.d.ts +46 -0
  153. package/utils/date/dateTime.d.ts +144 -0
  154. package/utils/date/fieldModel.d.ts +74 -0
  155. package/utils/date/format.d.ts +39 -0
  156. package/utils/date/iso.d.ts +40 -0
  157. package/utils/date/locale.d.ts +17 -0
  158. package/utils/date/parse.d.ts +20 -0
  159. package/utils/date/settings.d.ts +26 -0
  160. package/utils/date/value.d.ts +43 -0
  161. package/utils/date/zoneOptions.d.ts +19 -0
  162. package/utils/date/zones.d.ts +32 -0
  163. package/utils/scroll/scrollUtils.d.ts +6 -0
  164. package/utils/sortable/sortableUtils.d.ts +25 -0
  165. package/utils/swipe/swipeUtils.d.ts +53 -0
  166. package/utils/virtual/measuredWindow.d.ts +28 -0
  167. package/utils/virtual/rowSearch.d.ts +11 -0
@@ -1,48 +1,49 @@
1
1
  "use client";
2
- import { o as e, u as t } from "../platform.mjs";
3
- import { n } from "../effects.mjs";
4
- import r from "../box.mjs";
5
- import { a as i, n as a, o, r as s, t as c } from "../behavior.mjs";
6
- import { t as l } from "../identity.mjs";
7
- import { Path as u, Svg as d } from "./svg.mjs";
8
- import f from "./button.mjs";
9
- import p from "./flex.mjs";
10
- import m from "./checkbox.mjs";
11
- import h from "./overlay.mjs";
12
- import g from "./presence.mjs";
13
- import _ from "./visuallyHidden.mjs";
14
- import v from "./textbox.mjs";
15
- import y from "./grid.mjs";
16
- import b from "./dropdown.mjs";
17
- import { Span as x } from "./semantics.mjs";
18
- import S from "./popover.mjs";
19
- import C from "./switch.mjs";
20
- import w, { Fragment as T, createContext as E, forwardRef as ee, memo as D, useCallback as O, useContext as k, useEffect as A, useImperativeHandle as j, useLayoutEffect as M, useMemo as te, useRef as N, useState as P, useSyncExternalStore as F } from "react";
21
- import { Fragment as I, jsx as L, jsxs as R } from "react/jsx-runtime";
22
- import { useSyncExternalStore as ne } from "use-sync-external-store/shim";
2
+ import { d as e, i as t, s as n } from "../platform.mjs";
3
+ import { n as r } from "../effects.mjs";
4
+ import i from "../box.mjs";
5
+ import { a, n as o, o as s, r as c, t as l } from "../behavior.mjs";
6
+ import { t as u } from "../identity.mjs";
7
+ import { Path as d, Svg as f } from "./svg.mjs";
8
+ import p from "./button.mjs";
9
+ import m from "./visuallyHidden.mjs";
10
+ import h from "./flex.mjs";
11
+ import g from "./checkbox.mjs";
12
+ import _ from "./overlay.mjs";
13
+ import v from "./presence.mjs";
14
+ import y from "./textbox.mjs";
15
+ import { n as b } from "../scrolling.mjs";
16
+ import x from "./grid.mjs";
17
+ import S from "./dropdown.mjs";
18
+ import { Span as C } from "./semantics.mjs";
19
+ import w from "./popover.mjs";
20
+ import T from "./switch.mjs";
21
+ import ee, { Fragment as te, createContext as ne, forwardRef as E, memo as D, useCallback as O, useContext as k, useEffect as A, useImperativeHandle as j, useLayoutEffect as re, useMemo as M, useRef as N, useState as P, useSyncExternalStore as ie } from "react";
22
+ import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
23
+ import { useSyncExternalStore as ae } from "use-sync-external-store/shim";
23
24
  //#region src/components/dataGrid/components/dataGridBottomBarSelection.tsx
24
- function re(e) {
25
- let { grid: t } = e, n = t.selectedRows.size, i = t.isSelectionView;
26
- return /* @__PURE__ */ R(p, {
25
+ function oe(e) {
26
+ let { grid: t } = e, n = t.selectedRows.size, r = t.isSelectionView;
27
+ return /* @__PURE__ */ L(h, {
27
28
  component: `${t.componentName}.bottomBar.selection`,
28
29
  children: [
29
- /* @__PURE__ */ L(r, {
30
+ /* @__PURE__ */ I(i, {
30
31
  component: `${t.componentName}.bottomBar.info`,
31
32
  children: t.localeText.selectedCount(n, t.hiddenSelectedCount)
32
33
  }),
33
- t.canShowSelection && (n > 0 || i) && /* @__PURE__ */ L(f, {
34
+ t.canShowSelection && (n > 0 || r) && /* @__PURE__ */ I(p, {
34
35
  type: "button",
35
36
  component: `${t.componentName}.bottomBar.action`,
36
- variant: { pressed: i },
37
- props: { "aria-pressed": i },
37
+ variant: { pressed: r },
38
+ props: { "aria-pressed": r },
38
39
  onClick: t.toggleSelectionView,
39
40
  children: t.localeText.showSelected
40
41
  }),
41
- n > 0 && /* @__PURE__ */ R(f, {
42
+ n > 0 && /* @__PURE__ */ L(p, {
42
43
  type: "button",
43
44
  component: `${t.componentName}.bottomBar.action`,
44
45
  onClick: t.clearSelection,
45
- children: [/* @__PURE__ */ L(r, {
46
+ children: [/* @__PURE__ */ I(i, {
46
47
  tag: "span",
47
48
  props: { "aria-hidden": !0 },
48
49
  children: "✕"
@@ -53,74 +54,74 @@ function re(e) {
53
54
  }
54
55
  //#endregion
55
56
  //#region src/components/dataGrid/components/dataGridPagination.tsx
56
- function ie(e) {
57
- let { grid: t } = e, { pagination: n } = t, i = n.state, a = O(() => n.firstPage(), [n]), o = O(() => n.prevPage(), [n]), s = O(() => n.nextPage(), [n]), c = O(() => n.lastPage(), [n]);
58
- if (!i) return null;
57
+ function se(e) {
58
+ let { grid: t } = e, { pagination: n } = t, r = n.state, a = O(() => n.firstPage(), [n]), o = O(() => n.prevPage(), [n]), s = O(() => n.nextPage(), [n]), c = O(() => n.lastPage(), [n]);
59
+ if (!r) return null;
59
60
  let { canGoPrev: l, canGoNext: u, totalPages: d } = n;
60
- return /* @__PURE__ */ R(p, {
61
+ return /* @__PURE__ */ L(h, {
61
62
  component: `${t.componentName}.bottomBar.pagination`,
62
63
  gap: .5,
63
64
  ai: "center",
64
65
  children: [
65
- /* @__PURE__ */ L(ae, {
66
+ /* @__PURE__ */ I(ce, {
66
67
  grid: t,
67
- pageSize: i.pageSize
68
+ pageSize: r.pageSize
68
69
  }),
69
- /* @__PURE__ */ L(se, {
70
+ /* @__PURE__ */ I(R, {
70
71
  componentName: t.componentName,
71
72
  label: t.localeText.firstPage,
72
73
  onClick: a,
73
74
  disabled: !l,
74
- children: /* @__PURE__ */ L(de, {})
75
+ children: /* @__PURE__ */ I(pe, {})
75
76
  }),
76
- /* @__PURE__ */ L(se, {
77
+ /* @__PURE__ */ I(R, {
77
78
  componentName: t.componentName,
78
79
  label: t.localeText.previousPage,
79
80
  onClick: o,
80
81
  disabled: !l,
81
- children: /* @__PURE__ */ L(le, {})
82
+ children: /* @__PURE__ */ I(de, {})
82
83
  }),
83
- /* @__PURE__ */ R(p, {
84
+ /* @__PURE__ */ L(h, {
84
85
  ai: "center",
85
86
  gap: 1.5,
86
87
  px: 2,
87
88
  userSelect: "none",
88
- children: [/* @__PURE__ */ L(oe, {
89
+ children: [/* @__PURE__ */ I(le, {
89
90
  grid: t,
90
- page: i.page,
91
+ page: r.page,
91
92
  totalPages: d
92
- }), /* @__PURE__ */ L(r, {
93
+ }), /* @__PURE__ */ I(i, {
93
94
  component: `${t.componentName}.bottomBar.pagination.info`,
94
95
  fontSize: 12,
95
96
  opacity: .7,
96
97
  children: t.localeText.pageCount(d)
97
98
  })]
98
99
  }),
99
- /* @__PURE__ */ L(se, {
100
+ /* @__PURE__ */ I(R, {
100
101
  componentName: t.componentName,
101
102
  label: t.localeText.nextPage,
102
103
  onClick: s,
103
104
  disabled: !u,
104
- children: /* @__PURE__ */ L(ue, {})
105
+ children: /* @__PURE__ */ I(fe, {})
105
106
  }),
106
- /* @__PURE__ */ L(se, {
107
+ /* @__PURE__ */ I(R, {
107
108
  componentName: t.componentName,
108
109
  label: t.localeText.lastPage,
109
110
  onClick: c,
110
111
  disabled: !u,
111
- children: /* @__PURE__ */ L(fe, {})
112
+ children: /* @__PURE__ */ I(me, {})
112
113
  })
113
114
  ]
114
115
  });
115
116
  }
116
- ie.displayName = "DataGridPagination";
117
- function ae({ grid: e, pageSize: t }) {
117
+ se.displayName = "DataGridPagination";
118
+ function ce({ grid: e, pageSize: t }) {
118
119
  let n = e.pagination.pageSizeOptions;
119
- return !n || n.length === 0 ? null : /* @__PURE__ */ L(p, {
120
+ return !n || n.length === 0 ? null : /* @__PURE__ */ I(h, {
120
121
  ai: "center",
121
122
  gap: 1,
122
123
  me: 1,
123
- children: /* @__PURE__ */ L(r, {
124
+ children: /* @__PURE__ */ I(i, {
124
125
  component: `${e.componentName}.bottomBar.pagination.pageSize`,
125
126
  tag: "select",
126
127
  fontSize: 12,
@@ -131,14 +132,14 @@ function ae({ grid: e, pageSize: t }) {
131
132
  value: t,
132
133
  onChange: (t) => e.pagination.changePageSize(Number(t.target.value))
133
134
  },
134
- children: n.map((t) => /* @__PURE__ */ L("option", {
135
+ children: n.map((t) => /* @__PURE__ */ I("option", {
135
136
  value: t,
136
137
  children: e.localeText.pageSizeOption(t)
137
138
  }, t))
138
139
  })
139
140
  });
140
141
  }
141
- function oe({ grid: e, page: t, totalPages: n }) {
142
+ function le({ grid: e, page: t, totalPages: n }) {
142
143
  let [r, i] = P(String(t)), [a, o] = P(t);
143
144
  t !== a && (o(t), i(String(t)));
144
145
  let s = O(() => {
@@ -146,7 +147,7 @@ function oe({ grid: e, page: t, totalPages: n }) {
146
147
  }, [e, r]), c = O((e) => {
147
148
  e.key === "Enter" ? s() : e.key === "Escape" && i(String(t));
148
149
  }, [s, t]);
149
- return /* @__PURE__ */ L(v, {
150
+ return /* @__PURE__ */ I(y, {
150
151
  type: "number",
151
152
  variant: "compact",
152
153
  value: r,
@@ -162,9 +163,9 @@ function oe({ grid: e, page: t, totalPages: n }) {
162
163
  }
163
164
  });
164
165
  }
165
- function se(e) {
166
+ function R(e) {
166
167
  let { componentName: t, label: n, onClick: r, disabled: i, children: a } = e;
167
- return /* @__PURE__ */ L(f, {
168
+ return /* @__PURE__ */ I(p, {
168
169
  component: `${t}.bottomBar.pagination.button`,
169
170
  props: {
170
171
  "aria-label": n,
@@ -184,8 +185,8 @@ function se(e) {
184
185
  children: a
185
186
  });
186
187
  }
187
- function ce(e) {
188
- return /* @__PURE__ */ L(d, {
188
+ function ue(e) {
189
+ return /* @__PURE__ */ I(f, {
189
190
  viewBox: "0 0 24 24",
190
191
  width: "14",
191
192
  height: "14",
@@ -194,70 +195,70 @@ function ce(e) {
194
195
  strokeWidth: 2,
195
196
  strokeLinecap: "round",
196
197
  strokeLinejoin: "round",
197
- children: /* @__PURE__ */ L(u, { d: e.d })
198
+ children: /* @__PURE__ */ I(d, { d: e.d })
198
199
  });
199
200
  }
200
- function le() {
201
- return /* @__PURE__ */ L(ce, { d: "M15 18l-6-6 6-6" });
202
- }
203
- function ue() {
204
- return /* @__PURE__ */ L(ce, { d: "M9 18l6-6-6-6" });
205
- }
206
201
  function de() {
207
- return /* @__PURE__ */ L(ce, { d: "M18 18l-6-6 6-6M11 18l-6-6 6-6" });
202
+ return /* @__PURE__ */ I(ue, { d: "M15 18l-6-6 6-6" });
208
203
  }
209
204
  function fe() {
210
- return /* @__PURE__ */ L(ce, { d: "M6 18l6-6-6-6M13 18l6-6-6-6" });
205
+ return /* @__PURE__ */ I(ue, { d: "M9 18l6-6-6-6" });
206
+ }
207
+ function pe() {
208
+ return /* @__PURE__ */ I(ue, { d: "M18 18l-6-6 6-6M11 18l-6-6 6-6" });
209
+ }
210
+ function me() {
211
+ return /* @__PURE__ */ I(ue, { d: "M6 18l6-6-6-6M13 18l6-6-6-6" });
211
212
  }
212
213
  //#endregion
213
214
  //#region src/components/dataGrid/components/dataGridBottomBar.tsx
214
- function pe(e) {
215
- let { grid: t } = e, { pagination: n, filter: i } = t;
215
+ function he(e) {
216
+ let { grid: t } = e, { pagination: n, filter: r } = t;
216
217
  if (n.state) {
217
- let { totalItems: e, startItem: i, endItem: a } = n;
218
- return /* @__PURE__ */ R(p, {
218
+ let { totalItems: e, startItem: r, endItem: a } = n;
219
+ return /* @__PURE__ */ L(h, {
219
220
  component: `${t.componentName}.bottomBar`,
220
221
  children: [
221
- /* @__PURE__ */ L(r, {
222
+ /* @__PURE__ */ I(i, {
222
223
  component: `${t.componentName}.bottomBar.info`,
223
- children: t.localeText.pageRowRange(i, a, e)
224
+ children: t.localeText.pageRowRange(r, a, e)
224
225
  }),
225
- t.props.def.rowSelection && /* @__PURE__ */ L(re, { grid: t }),
226
- /* @__PURE__ */ L(ie, { grid: t })
226
+ t.props.def.rowSelection && /* @__PURE__ */ I(oe, { grid: t }),
227
+ /* @__PURE__ */ I(se, { grid: t })
227
228
  ]
228
229
  });
229
230
  }
230
- let { filtered: a, total: o } = i.filterStats;
231
- return /* @__PURE__ */ R(p, {
231
+ let { filtered: a, total: o } = r.filterStats;
232
+ return /* @__PURE__ */ L(h, {
232
233
  component: `${t.componentName}.bottomBar`,
233
234
  children: [
234
- /* @__PURE__ */ L(r, {
235
+ /* @__PURE__ */ I(i, {
235
236
  component: `${t.componentName}.bottomBar.info`,
236
237
  children: t.localeText.rowCount(a, o)
237
238
  }),
238
- i.hasActiveFilters && /* @__PURE__ */ R(f, {
239
+ r.hasActiveFilters && /* @__PURE__ */ L(p, {
239
240
  type: "button",
240
241
  component: `${t.componentName}.bottomBar.clearFilters`,
241
- onClick: i.clearAllFilters,
242
- children: [/* @__PURE__ */ L(r, {
242
+ onClick: r.clearAllFilters,
243
+ children: [/* @__PURE__ */ I(i, {
243
244
  tag: "span",
244
245
  props: { "aria-hidden": !0 },
245
246
  children: "✕"
246
247
  }), t.localeText.clearFilters]
247
248
  }),
248
- t.props.def.rowSelection && /* @__PURE__ */ L(re, { grid: t })
249
+ t.props.def.rowSelection && /* @__PURE__ */ I(oe, { grid: t })
249
250
  ]
250
251
  });
251
252
  }
252
253
  //#endregion
253
254
  //#region src/components/dataGrid/gridNavigationContext.ts
254
- var me = E(null);
255
+ var ge = ne(null);
255
256
  function z() {
256
- return k(me);
257
+ return k(ge);
257
258
  }
258
- var he = () => () => {};
259
- function B(e, t, n) {
260
- let r = F(e?.activeCell.subscribe ?? he, () => !!e?.activeCell.isActive(t, n), () => !!e?.activeCell.isActive(t, n));
259
+ var _e = () => () => {};
260
+ function ve(e, t, n) {
261
+ let r = ie(e?.activeCell.subscribe ?? _e, () => !!e?.activeCell.isActive(t, n), () => !!e?.activeCell.isActive(t, n));
261
262
  return e ? {
262
263
  ...e.cellProps(t, n),
263
264
  tabIndex: r ? 0 : -1
@@ -265,7 +266,7 @@ function B(e, t, n) {
265
266
  }
266
267
  //#endregion
267
268
  //#region src/components/dataGrid/models/viewportModel.ts
268
- var ge = class e {
269
+ var ye = class e {
269
270
  grid;
270
271
  static DEFAULT_VISIBLE_ROWS_COUNT = 10;
271
272
  static ROWS_AHEAD = 12;
@@ -309,14 +310,6 @@ var ge = class e {
309
310
  rowTop(e) {
310
311
  return this.hasDetailRows ? this.grid.rowOffsets.value.offsets[e] ?? 0 : e * this.grid.rowHeight;
311
312
  }
312
- findStartIndex(e, t) {
313
- let n = 0, r = e.length - 1;
314
- for (; n < r;) {
315
- let i = n + r + 1 >>> 1;
316
- e[i] <= t ? n = i : r = i - 1;
317
- }
318
- return n;
319
- }
320
313
  window(t, n = "down") {
321
314
  let r = this.grid.flatRows.value.length;
322
315
  if (this.showAll) return {
@@ -326,7 +319,7 @@ var ge = class e {
326
319
  totalHeight: this.totalHeight,
327
320
  viewHeight: void 0
328
321
  };
329
- let { rowHeight: i } = this.grid, { ROWS_AHEAD: a, ROWS_BEHIND: o, PARTIAL_ROWS: s } = e, c = n === "down" ? o : a, { offsets: l } = this.grid.rowOffsets.value, u = this.hasDetailRows ? this.findStartIndex(l, t) : Math.floor(t / i), d = Math.max(0, u - c), f = this.hasDetailRows ? l[d] ?? 0 : d * i;
322
+ let { rowHeight: i } = this.grid, { ROWS_AHEAD: a, ROWS_BEHIND: o, PARTIAL_ROWS: s } = e, c = n === "down" ? o : a, { offsets: l } = this.grid.rowOffsets.value, u = this.hasDetailRows ? b(l, t) : Math.floor(t / i), d = Math.max(0, u - c), f = this.hasDetailRows ? l[d] ?? 0 : d * i;
330
323
  return {
331
324
  startIndex: d,
332
325
  take: this.visibleRowsCount + s + o + a,
@@ -335,7 +328,7 @@ var ge = class e {
335
328
  viewHeight: this.viewHeight
336
329
  };
337
330
  }
338
- }, _e = class {
331
+ }, be = class {
339
332
  row;
340
333
  column;
341
334
  listeners = /* @__PURE__ */ new Set();
@@ -349,33 +342,61 @@ var ge = class e {
349
342
  set(e, t) {
350
343
  (e !== this.row || t !== this.column) && (this.row = e, this.column = t, this.listeners.forEach((e) => e()));
351
344
  }
352
- };
345
+ }, xe, Se;
346
+ function Ce() {
347
+ return Se ??= import("../dataGridDateParts.mjs").then((e) => xe = e.default), Se;
348
+ }
349
+ function we() {
350
+ return xe;
351
+ }
352
+ function Te(e) {
353
+ let [t, n] = P(void 0);
354
+ return r(() => {
355
+ if (!e || t) return;
356
+ if (xe) {
357
+ n(() => xe);
358
+ return;
359
+ }
360
+ let r = !0;
361
+ return Ce().then((e) => r && n(() => e)), () => {
362
+ r = !1;
363
+ };
364
+ }, [e, t]), t;
365
+ }
353
366
  //#endregion
354
367
  //#region src/components/dataGrid/models/editModel.ts
355
- function V(e, t) {
368
+ function B(e, t) {
356
369
  return JSON.stringify([e, t]);
357
370
  }
358
- var ve = 1e3;
359
- function ye(e) {
360
- return typeof e == "number" ? "number" : typeof e == "boolean" ? "checkbox" : "text";
371
+ var Ee = 1e3;
372
+ function De(e) {
373
+ return typeof e == "number" ? "number" : typeof e == "boolean" ? "checkbox" : e instanceof Date ? "datetime" : typeof e == "string" ? ke.test(e) ? "date" : Ae.test(e) ? "time" : je.test(e) ? "datetime" : "text" : "text";
374
+ }
375
+ var Oe = /* @__PURE__ */ new Set([
376
+ "date",
377
+ "time",
378
+ "datetime"
379
+ ]), ke = /^\d{4}-\d{2}-\d{2}$/, Ae = /^\d{2}:\d{2}(:\d{2}(\.\d+)?)?$/, je = /^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}/;
380
+ function Me(e) {
381
+ return Oe.has(e);
361
382
  }
362
- function be(e, t) {
383
+ function Ne(e, t) {
363
384
  if (e === "text") return t;
364
385
  if (e !== "number" || t.trim() === "") return;
365
386
  let n = Number(t);
366
387
  return Number.isFinite(n) ? n : void 0;
367
388
  }
368
- var xe = /* @__PURE__ */ new Set([
389
+ var Pe = /* @__PURE__ */ new Set([
369
390
  "true",
370
391
  "1",
371
392
  "yes"
372
- ]), Se = /* @__PURE__ */ new Set([
393
+ ]), Fe = /* @__PURE__ */ new Set([
373
394
  "false",
374
395
  "0",
375
396
  "no",
376
397
  ""
377
398
  ]);
378
- function Ce(e, t, n) {
399
+ function Ie(e, t, n) {
379
400
  if (e.type === "number") {
380
401
  if (n.trim() === "") return { value: null };
381
402
  let e = Number(n);
@@ -383,7 +404,17 @@ function Ce(e, t, n) {
383
404
  }
384
405
  if (e.type === "checkbox") {
385
406
  let e = n.trim().toLowerCase();
386
- return xe.has(e) ? { value: !0 } : Se.has(e) ? { value: !1 } : void 0;
407
+ return Pe.has(e) ? { value: !0 } : Fe.has(e) ? { value: !1 } : void 0;
408
+ }
409
+ if (Me(e.type)) {
410
+ if (n.trim() === "") return { value: null };
411
+ let t = we();
412
+ if (t) {
413
+ let r = t.parsePasted(e, n);
414
+ return r ? { value: r } : void 0;
415
+ }
416
+ let r = n.trim();
417
+ return (e.type === "date" ? ke : e.type === "time" ? Ae : je).test(r) ? { value: r } : void 0;
387
418
  }
388
419
  if (e.type === "select") {
389
420
  let e = t.find((e) => String(e.value) === n);
@@ -391,10 +422,10 @@ function Ce(e, t, n) {
391
422
  }
392
423
  return { value: n };
393
424
  }
394
- function we(e) {
425
+ function Le(e) {
395
426
  return e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey;
396
427
  }
397
- var Te = class {
428
+ var Re = class {
398
429
  grid;
399
430
  constructor(e) {
400
431
  this.grid = e;
@@ -419,7 +450,7 @@ var Te = class {
419
450
  }
420
451
  editorFor(e, t) {
421
452
  let { editor: n } = e.def;
422
- return typeof n == "object" ? n : n ? { type: n } : { type: ye(t) };
453
+ return typeof n == "object" ? n : n ? { type: n } : { type: De(t) };
423
454
  }
424
455
  isEditing(e, t) {
425
456
  return this._active?.rowKey === e && this._active.columnKey === t;
@@ -432,7 +463,7 @@ var Te = class {
432
463
  return !!this._active;
433
464
  }
434
465
  isRejected(e, t) {
435
- return this.rejected.size > 0 && this.rejected.has(V(e, t));
466
+ return this.rejected.size > 0 && this.rejected.has(B(e, t));
436
467
  }
437
468
  get draft() {
438
469
  return this._active?.draft;
@@ -444,8 +475,8 @@ var Te = class {
444
475
  return !!this._active?.pending;
445
476
  }
446
477
  begin(e, t, n, r) {
447
- let i = r === void 0 ? void 0 : be(this.editorFor(t, n).type, r);
448
- this.rejected.delete(V(e.key, t.key)), this._active = {
478
+ let i = r === void 0 ? void 0 : Ne(this.editorFor(t, n).type, r);
479
+ this.rejected.delete(B(e.key, t.key)), this._active = {
449
480
  row: e,
450
481
  rowKey: e.key,
451
482
  columnKey: t.key,
@@ -506,12 +537,12 @@ var Te = class {
506
537
  }, this.grid.notify();
507
538
  return;
508
539
  }
509
- this.values.set(V(t.rowKey, t.columnKey), t.value), this._edits = [...this._edits, t], this._active = void 0, this.grid.notify(), this.grid.props.onCellEditsChange?.(this._edits, { reason: "edit" });
540
+ this.values.set(B(t.rowKey, t.columnKey), t.value), this._edits = [...this._edits, t], this._active = void 0, this.grid.notify(), this.grid.props.onCellEditsChange?.(this._edits, { reason: "edit" });
510
541
  }
511
542
  }
512
543
  valueOf(e, t, n) {
513
544
  if (this.values.size === 0) return n;
514
- let r = V(e, t);
545
+ let r = B(e, t);
515
546
  return this.values.has(r) ? this.values.get(r) : n;
516
547
  }
517
548
  get edits() {
@@ -530,7 +561,7 @@ var Te = class {
530
561
  c++;
531
562
  continue;
532
563
  }
533
- let f = this.valueOf(l.key, u.key, l.data[u.key]), p = Ce(this.editorFor(u, f), this.optionsFor(u, l), d), m = {
564
+ let f = this.valueOf(l.key, u.key, l.data[u.key]), p = Ie(this.editorFor(u, f), this.optionsFor(u, l), d), m = {
534
565
  rowKey: l.key,
535
566
  columnKey: u.key,
536
567
  row: l.data,
@@ -556,13 +587,13 @@ var Te = class {
556
587
  this.rejected.clear(), n.forEach((e, t) => {
557
588
  let n = r[t];
558
589
  if (typeof n == "string" || n === !1) {
559
- this.rejected.add(V(e.rowKey, e.columnKey)), o.push({
590
+ this.rejected.add(B(e.rowKey, e.columnKey)), o.push({
560
591
  ...e,
561
592
  error: typeof n == "string" ? n : this.invalidValue
562
593
  });
563
594
  return;
564
595
  }
565
- Object.is(e.value, e.oldValue) || (this.values.set(V(e.rowKey, e.columnKey), e.value), a.push(e));
596
+ Object.is(e.value, e.oldValue) || (this.values.set(B(e.rowKey, e.columnKey), e.value), a.push(e));
566
597
  }), a.length > 0 && (this._edits = [...this._edits, ...a]), this.grid.notify(), a.length > 0 && this.grid.props.onCellEditsChange?.(this._edits, { reason: "paste" }), this.grid.props.onPaste?.({
567
598
  range: this.grid.range.rangeOf(t),
568
599
  applied: a,
@@ -571,8 +602,8 @@ var Te = class {
571
602
  });
572
603
  }
573
604
  nextEditable(e, t, n = !1) {
574
- let r = this.grid.flatRows.value, i = this.grid.columns.value.visibleLeafs, a = n ? -1 : 1, o = e * i.length + t + a, s = Math.min(r.length * i.length - 1, o + ve);
575
- for (let e = o; e >= Math.max(0, o - ve) && e <= s; e += a) {
605
+ let r = this.grid.flatRows.value, i = this.grid.columns.value.visibleLeafs, a = n ? -1 : 1, o = e * i.length + t + a, s = Math.min(r.length * i.length - 1, o + Ee);
606
+ for (let e = o; e >= Math.max(0, o - Ee) && e <= s; e += a) {
576
607
  let t = Math.floor(e / i.length), n = e % i.length, a = r[t], o = i[n];
577
608
  if (!(!o || a?.kind !== "row" || !this.isEditable(a, o))) return {
578
609
  row: t,
@@ -580,7 +611,7 @@ var Te = class {
580
611
  };
581
612
  }
582
613
  }
583
- }, H = class {
614
+ }, V = class {
584
615
  grid;
585
616
  row;
586
617
  column;
@@ -647,7 +678,7 @@ var Te = class {
647
678
  cancelEdit = () => {
648
679
  this.grid.edits.cancel();
649
680
  };
650
- }, Ee = class e {
681
+ }, H = class e {
651
682
  grid;
652
683
  parentRow;
653
684
  constructor(e, t) {
@@ -711,7 +742,7 @@ var Te = class {
711
742
  let e = this.grid.columns.value.visibleLeafs;
712
743
  return this._cells?.leafs !== e && (this._cells = {
713
744
  leafs: e,
714
- cells: e.map((e) => new H(this.grid, this, e))
745
+ cells: e.map((e) => new V(this.grid, this, e))
715
746
  }), this._cells.cells;
716
747
  }
717
748
  get cellCount() {
@@ -733,7 +764,7 @@ var Te = class {
733
764
  return this.grid.expandedDetailRows.has(this.key);
734
765
  }
735
766
  get flatRows() {
736
- return this.grid.props.def.rowDetail && this.expanded ? [this, new Ee(this.grid, this)] : [this];
767
+ return this.grid.props.def.rowDetail && this.expanded ? [this, new H(this.grid, this)] : [this];
737
768
  }
738
769
  get allRows() {
739
770
  return this;
@@ -741,15 +772,15 @@ var Te = class {
741
772
  };
742
773
  //#endregion
743
774
  //#region src/components/dataGrid/models/treeRow.ts
744
- function De(e) {
775
+ function W(e) {
745
776
  return !!e && e.isTreeRow === !0;
746
777
  }
747
778
  //#endregion
748
779
  //#region src/components/dataGrid/useGridNavigation.ts
749
- var Oe = "[role=\"gridcell\"],[role=\"columnheader\"]", ke = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]", Ae = 2, je = [];
750
- function Me(e) {
751
- let { grid: t, scrollerRef: r, scroll: i, onScrollTo: a } = e, s = t.headerRows.value, l = t.filter.hasFilterableColumns, u = s.length + +!!l, d = t.viewport.isEmpty ? je : t.flatRows.value, f = t.columns.value.visibleLeafs.length, p = t.aggregation.hasFooter && !t.viewport.isEmpty ? 1 : 0, m = u + d.length + p, h = O((e) => {
752
- if (e < s.length) return s[e]?.length ?? 0;
780
+ var ze = "[role=\"gridcell\"],[role=\"columnheader\"]", Be = "a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]", Ve = 2, He = [];
781
+ function Ue(e) {
782
+ let { grid: t, scrollerRef: n, scroll: i, onScrollTo: a } = e, o = t.headerRows.value, c = t.filter.hasFilterableColumns, u = o.length + +!!c, d = t.viewport.isEmpty ? He : t.flatRows.value, f = t.columns.value.visibleLeafs.length, p = t.aggregation.hasFooter && !t.viewport.isEmpty ? 1 : 0, m = u + d.length + p, h = O((e) => {
783
+ if (e < o.length) return o[e]?.length ?? 0;
753
784
  if (e < u || e >= u + d.length) return f;
754
785
  let t = d[e - u];
755
786
  return t ? t.cellCount : 0;
@@ -757,20 +788,20 @@ function Me(e) {
757
788
  d,
758
789
  f,
759
790
  u,
760
- s
761
- ]), g = O((e, t) => e < s.length ? (s[e]?.[t]?.headerCell.columnIndex ?? t + 1) - 1 : e < u ? t : d[e - u]?.columnOf(t) ?? t, [
791
+ o
792
+ ]), g = O((e, t) => e < o.length ? (o[e]?.[t]?.headerCell.columnIndex ?? t + 1) - 1 : e < u ? t : d[e - u]?.columnOf(t) ?? t, [
762
793
  d,
763
794
  u,
764
- s
765
- ]), _ = N(!1), v = O((e, n) => {
766
- let { viewport: o } = t, s = e - u, c = r.current;
795
+ o
796
+ ]), _ = N(!1), v = O((e, r) => {
797
+ let { viewport: o } = t, s = e - u, c = n.current;
767
798
  if (o.showAll || !c || s >= d.length) return;
768
799
  if (s < 0) {
769
- n >= u && (c.scrollTop = 0, a(0));
800
+ r >= u && (c.scrollTop = 0, a(0));
770
801
  return;
771
802
  }
772
803
  let { startIndex: l, take: f } = o.window(i.top, i.direction);
773
- if (s >= l + Ae && s < l + f - Ae) return;
804
+ if (s >= l + Ve && s < l + f - Ve) return;
774
805
  let p = o.rowTop(s);
775
806
  c.scrollTop = p, a(p);
776
807
  }, [
@@ -779,7 +810,7 @@ function Me(e) {
779
810
  u,
780
811
  a,
781
812
  i,
782
- r
813
+ n
783
814
  ]), y = N(0), b = O((e, n, r) => {
784
815
  let i = e - u;
785
816
  if (i < 0 || i >= d.length) {
@@ -796,7 +827,7 @@ function Me(e) {
796
827
  g,
797
828
  t,
798
829
  u
799
- ]), x = c({
830
+ ]), x = l({
800
831
  count: m,
801
832
  columns: h,
802
833
  columnIndexOf: g,
@@ -806,18 +837,18 @@ function Me(e) {
806
837
  y.current = e.row, b(e.row, e.column, t), t.reason === "keyboard" && (v(e.row, n), _.current = !0);
807
838
  }
808
839
  }), S = x.activeItem;
809
- n(() => {
840
+ r(() => {
810
841
  _.current && (_.current = !1, S()?.focus());
811
842
  });
812
843
  let C = O((e, n, r) => {
813
844
  if (!t.tree.enabled || e.key !== "ArrowRight" && e.key !== "ArrowLeft") return !1;
814
845
  let i = d[n - u];
815
- if (!De(i) || t.columns.value.visibleLeafs[r]?.key !== t.tree.columnKey) return !1;
846
+ if (!W(i) || t.columns.value.visibleLeafs[r]?.key !== t.tree.columnKey) return !1;
816
847
  if (e.key === (t.isRtl ? "ArrowLeft" : "ArrowRight")) return !i.hasChildren || i.treeExpanded ? !1 : (i.toggleTree(), !0);
817
848
  if (i.hasChildren && i.treeExpanded) return i.toggleTree(), !0;
818
849
  for (let e = n - 1; e >= u; e--) {
819
850
  let t = d[e - u];
820
- if (!(!De(t) || t.level >= i.level)) return x.setActiveCell(e, r, { reason: "keyboard" }), !0;
851
+ if (!(!W(t) || t.level >= i.level)) return x.setActiveCell(e, r, { reason: "keyboard" }), !0;
821
852
  }
822
853
  return !1;
823
854
  }, [
@@ -836,27 +867,27 @@ function Me(e) {
836
867
  m
837
868
  ]), T = O((e, n) => {
838
869
  if (!t.props.def.rowSelection) return !1;
839
- if (e < u) return e >= s.length || !t.columns.value.visibleLeafs[n]?.isRowSelection ? !1 : (t.toggleSelectAllRows(), !0);
870
+ if (e < u) return e >= o.length || !t.columns.value.visibleLeafs[n]?.isRowSelection ? !1 : (t.toggleSelectAllRows(), !0);
840
871
  let r = t.flatRows.value[e - u];
841
872
  return r instanceof U && (r.toggleSelection(), !0);
842
873
  }, [
843
874
  t,
844
875
  u,
845
- s.length
846
- ]), E = O((e, t, n) => {
847
- let r = Array.from(e.querySelectorAll(ke));
876
+ o.length
877
+ ]), ee = O((e, t, n) => {
878
+ let r = Array.from(e.querySelectorAll(Be));
848
879
  if (r.length < 2) return !1;
849
880
  let i = r.indexOf(t);
850
881
  return i !== -1 && (r[(i + (n ? -1 : 1) + r.length) % r.length].focus(), !0);
851
- }, []), ee = x.onKeyDown, D = O((e) => {
852
- let n = e.target, r = n.closest?.(Oe);
882
+ }, []), te = x.onKeyDown, ne = O((e) => {
883
+ let n = e.target, r = n.closest?.(ze);
853
884
  if (r) {
854
885
  if (n !== r) {
855
886
  if (e.key === "Escape" && !r.querySelector("[aria-expanded=\"true\"]")) {
856
887
  e.preventDefault(), r.focus();
857
888
  return;
858
889
  }
859
- e.key === "Tab" && E(r, n, e.shiftKey) && e.preventDefault();
890
+ e.key === "Tab" && ee(r, n, e.shiftKey) && e.preventDefault();
860
891
  return;
861
892
  }
862
893
  if (e.key === "Tab" && t.props.def.tabNavigation === "cells") {
@@ -868,7 +899,7 @@ function Me(e) {
868
899
  return;
869
900
  }
870
901
  if (e.key === "Enter" || e.key === " " || e.key === "F2") {
871
- let n = s[x.activeIndex]?.[x.activeColumn];
902
+ let n = o[x.activeIndex]?.[x.activeColumn];
872
903
  if (e.key !== "F2" && n?.headerCell.isSortable) {
873
904
  e.preventDefault(), n.sortColumn();
874
905
  return;
@@ -877,13 +908,13 @@ function Me(e) {
877
908
  e.preventDefault();
878
909
  return;
879
910
  }
880
- let i = r.querySelector(ke);
911
+ let i = r.querySelector(Be);
881
912
  if (i) {
882
913
  e.preventDefault(), i.focus();
883
914
  return;
884
915
  }
885
916
  }
886
- if (t.edits.enabled && we(e) && t.edits.beginAt(x.activeIndex - u, x.activeColumn, e.key)) {
917
+ if (t.edits.enabled && Le(e) && t.edits.beginAt(x.activeIndex - u, x.activeColumn, e.key)) {
887
918
  e.preventDefault();
888
919
  return;
889
920
  }
@@ -891,54 +922,54 @@ function Me(e) {
891
922
  e.preventDefault();
892
923
  return;
893
924
  }
894
- ee(e);
925
+ te(e);
895
926
  }
896
927
  }, [
897
928
  t,
898
929
  u,
899
- s,
930
+ o,
900
931
  x.activeColumn,
901
932
  x.activeIndex,
902
- ee,
933
+ te,
903
934
  w,
904
- E,
935
+ ee,
905
936
  T,
906
937
  C
907
- ]), { setActiveCell: k, activeIndex: A, activeColumn: j } = x, M = o(x.cellProps), [F] = P(() => new _e(A, j));
908
- n(() => F.set(A, j), [
909
- F,
938
+ ]), { setActiveCell: E, activeIndex: D, activeColumn: k } = x, A = s(x.cellProps), [j] = P(() => new be(D, k));
939
+ r(() => j.set(D, k), [
910
940
  j,
911
- A
941
+ k,
942
+ D
912
943
  ]);
913
- let I = O((e, t) => {
914
- let { ref: n, onFocus: r } = M.current(e, t);
944
+ let re = O((e, t) => {
945
+ let { ref: n, onFocus: r } = A.current(e, t);
915
946
  return {
916
947
  ref: n,
917
948
  onFocus: r
918
949
  };
919
- }, [M]);
950
+ }, [A]);
920
951
  return {
921
- navigation: te(() => ({
952
+ navigation: M(() => ({
922
953
  rowCount: m,
923
954
  columnCount: f,
924
955
  headerRowCount: u,
925
- cellProps: I,
926
- activeCell: F,
927
- setActiveCell: k
956
+ cellProps: re,
957
+ activeCell: j,
958
+ setActiveCell: E
928
959
  }), [
929
- F,
930
- I,
960
+ j,
961
+ re,
931
962
  f,
932
963
  u,
933
964
  m,
934
- k
965
+ E
935
966
  ]),
936
- onKeyDown: D
967
+ onKeyDown: ne
937
968
  };
938
969
  }
939
970
  //#endregion
940
971
  //#region src/utils/array/arrayUtils.ts
941
- var Ne;
972
+ var We;
942
973
  (function(e) {
943
974
  function t(e, t, n = 0) {
944
975
  return e.slice(n, n + t);
@@ -985,11 +1016,11 @@ var Ne;
985
1016
  }));
986
1017
  }
987
1018
  e.groupBy = s;
988
- })(Ne ||= {});
989
- var W = Ne, Pe = "row-number-cell", Fe = "row-selection-cell", G = "grouping-cell", Ie = "row-detail-cell", K = Symbol("memo.unset"), Le = class {
1019
+ })(We ||= {});
1020
+ var G = We, Ge = "row-number-cell", Ke = "row-selection-cell", K = "grouping-cell", qe = "row-detail-cell", Je = Symbol("memo.unset"), Ye = class {
990
1021
  action;
991
1022
  deps;
992
- cache = K;
1023
+ cache = Je;
993
1024
  dependents = /* @__PURE__ */ new Set();
994
1025
  wired = !1;
995
1026
  constructor(e, t) {
@@ -1002,46 +1033,46 @@ var W = Ne, Pe = "row-number-cell", Fe = "row-selection-cell", G = "grouping-cel
1002
1033
  }
1003
1034
  }
1004
1035
  get value() {
1005
- return this.wire(), this.cache === K && (this.cache = this.action()), this.cache;
1036
+ return this.wire(), this.cache === Je && (this.cache = this.action()), this.cache;
1006
1037
  }
1007
1038
  clear() {
1008
- if (this.wire(), this.cache !== K) {
1009
- this.cache = K;
1039
+ if (this.wire(), this.cache !== Je) {
1040
+ this.cache = Je;
1010
1041
  for (let e of this.dependents) e.clear();
1011
1042
  }
1012
1043
  }
1013
1044
  };
1014
1045
  function q(e, t = () => []) {
1015
- return new Le(e, t);
1046
+ return new Ye(e, t);
1016
1047
  }
1017
1048
  //#endregion
1018
1049
  //#region src/components/dataGrid/models/aggregationModel.ts
1019
- function Re(e) {
1050
+ function Xe(e) {
1020
1051
  return e.filter((e) => typeof e == "number" && !Number.isNaN(e));
1021
1052
  }
1022
- var ze = (e) => e.reduce((e, t) => e + t, 0), Be = (e, t) => e.reduce((e, n) => (t ? n < e : n > e) ? n : e), Ve = {
1053
+ var Ze = (e) => e.reduce((e, t) => e + t, 0), Qe = (e, t) => e.reduce((e, n) => (t ? n < e : n > e) ? n : e), $e = {
1023
1054
  sum: (e) => {
1024
- let t = Re(e);
1025
- return t.length ? ze(t) : null;
1055
+ let t = Xe(e);
1056
+ return t.length ? Ze(t) : null;
1026
1057
  },
1027
1058
  avg: (e) => {
1028
- let t = Re(e);
1029
- return t.length ? Math.round(ze(t) / t.length * 100) / 100 : null;
1059
+ let t = Xe(e);
1060
+ return t.length ? Math.round(Ze(t) / t.length * 100) / 100 : null;
1030
1061
  },
1031
1062
  min: (e) => {
1032
- let t = Re(e);
1033
- return t.length ? Be(t, !0) : null;
1063
+ let t = Xe(e);
1064
+ return t.length ? Qe(t, !0) : null;
1034
1065
  },
1035
1066
  max: (e) => {
1036
- let t = Re(e);
1037
- return t.length ? Be(t, !1) : null;
1067
+ let t = Xe(e);
1068
+ return t.length ? Qe(t, !1) : null;
1038
1069
  },
1039
1070
  count: (e, t) => t.length
1040
1071
  };
1041
- function He(e, t, n) {
1042
- return typeof e == "function" ? e(t, n) : Ve[e]?.(t, n) ?? null;
1072
+ function et(e, t, n) {
1073
+ return typeof e == "function" ? e(t, n) : $e[e]?.(t, n) ?? null;
1043
1074
  }
1044
- var Ue = class {
1075
+ var tt = class {
1045
1076
  grid;
1046
1077
  constructor(e) {
1047
1078
  this.grid = e;
@@ -1062,8 +1093,8 @@ var Ue = class {
1062
1093
  get footerLabelColumn() {
1063
1094
  return this.grid.columns.value.visibleLeafs.find((e) => (e.isData || e.isGrouping) && !e.aggregate);
1064
1095
  }
1065
- footerCells = q(() => this.grid.columns.value.visibleLeafs.map((e) => new We(this.grid, e, this.grid.filteredData, "footer")), () => [this.grid.rows]);
1066
- }, We = class {
1096
+ footerCells = q(() => this.grid.columns.value.visibleLeafs.map((e) => new nt(this.grid, e, this.grid.filteredData, "footer")), () => [this.grid.rows]);
1097
+ }, nt = class {
1067
1098
  grid;
1068
1099
  column;
1069
1100
  rows;
@@ -1078,7 +1109,7 @@ var Ue = class {
1078
1109
  }
1079
1110
  _value = q(() => {
1080
1111
  let e = this.column.aggregate;
1081
- return e ? He(e, this.values, this.rows) : null;
1112
+ return e ? et(e, this.values, this.rows) : null;
1082
1113
  });
1083
1114
  get value() {
1084
1115
  let e = this.given?.();
@@ -1093,7 +1124,7 @@ var Ue = class {
1093
1124
  get isLast() {
1094
1125
  return !1;
1095
1126
  }
1096
- }, Ge = class {
1127
+ }, rt = class {
1097
1128
  grid;
1098
1129
  row;
1099
1130
  column;
@@ -1115,7 +1146,7 @@ var Ue = class {
1115
1146
  get cellKind() {
1116
1147
  return this.column.isGrouping ? "grouping" : this.column.isRowSelection ? this.row.selectable ? "selection" : "spacer" : this.row.spans(this.column) ? "hidden" : this.column.aggregate ? "aggregate" : "spacer";
1117
1148
  }
1118
- _aggregate = q(() => this.column.aggregate ? new We(this.grid, this.column, this.row.allRows.map((e) => e.data), "group", () => this.row.aggregateValue(this.column)) : null);
1149
+ _aggregate = q(() => this.column.aggregate ? new nt(this.grid, this.column, this.row.allRows.map((e) => e.data), "group", () => this.row.aggregateValue(this.column)) : null);
1119
1150
  get aggregate() {
1120
1151
  return this._aggregate.value;
1121
1152
  }
@@ -1134,7 +1165,7 @@ var Ue = class {
1134
1165
  get hasGroupingBorder() {
1135
1166
  return this.row.groupingColumn.pin === "START";
1136
1167
  }
1137
- }, Ke = class {
1168
+ }, it = class {
1138
1169
  grid;
1139
1170
  groupColumn;
1140
1171
  rows;
@@ -1168,7 +1199,7 @@ var Ue = class {
1168
1199
  let e = this.grid.columns.value.visibleLeafs;
1169
1200
  return this._cells?.leafs !== e && (this._cells = {
1170
1201
  leafs: e,
1171
- cells: e.map((e) => new Ge(this.grid, this, e))
1202
+ cells: e.map((e) => new rt(this.grid, this, e))
1172
1203
  }), this._cells;
1173
1204
  }
1174
1205
  get renderedCells() {
@@ -1199,7 +1230,7 @@ var Ue = class {
1199
1230
  return this.parentRow ? this.parentRow.depth + 1 : 0;
1200
1231
  }
1201
1232
  get count() {
1202
- return W.sumBy(this.rows, (e) => e.count, 0);
1233
+ return G.sumBy(this.rows, (e) => e.count, 0);
1203
1234
  }
1204
1235
  get flatRows() {
1205
1236
  return this.expanded ? [this, ...this.rows.flatMap((e) => e.flatRows)] : [this];
@@ -1208,7 +1239,7 @@ var Ue = class {
1208
1239
  return this.rows.flatMap((e) => e.allRows);
1209
1240
  }
1210
1241
  get groupingColumn() {
1211
- return W.findOrThrow(this.grid.columns.value.leafs, (e) => e.key === G);
1242
+ return G.findOrThrow(this.grid.columns.value.leafs, (e) => e.key === K);
1212
1243
  }
1213
1244
  get groupingColumnGridColumn() {
1214
1245
  return this.grid.groupingSpan.value.length;
@@ -1226,28 +1257,30 @@ var Ue = class {
1226
1257
  };
1227
1258
  //#endregion
1228
1259
  //#region src/components/dataGrid/components/dataGridDetailRow.tsx
1229
- function qe(e) {
1230
- let { row: t, index: i } = e, { grid: a, parentRow: o } = t, s = a.props.def.rowDetail, c = z(), l = (c?.headerRowCount ?? 0) + i, { ref: u, tabIndex: d, onFocus: f } = B(c, l, 0), m = t.isAutoHeight, h = N(null);
1231
- return n(() => {
1232
- a.takeDetailReveal(o.key) && h.current?.scrollIntoView?.({ block: "nearest" });
1233
- }), /* @__PURE__ */ L(p, {
1234
- ref: h,
1260
+ function at(e) {
1261
+ let { row: t, index: n } = e, { grid: a, parentRow: o } = t, s = a.props.def.rowDetail, c = z(), l = (c?.headerRowCount ?? 0) + n, { ref: u, tabIndex: d, onFocus: f } = ve(c, l, 0), p = t.isAutoHeight, m = N(null);
1262
+ return r(() => {
1263
+ a.takeDetailReveal(o.key) && m.current?.scrollIntoView?.({ block: "nearest" });
1264
+ }), /* @__PURE__ */ I(h, {
1265
+ ref: m,
1235
1266
  component: `${a.componentName}.body.detailRow`,
1267
+ transition: "none",
1236
1268
  props: {
1237
1269
  role: "row",
1238
1270
  "aria-rowindex": l + 1
1239
1271
  },
1240
1272
  style: {
1241
1273
  gridColumn: "1 / -1",
1242
- height: m ? "auto" : `${t.height}px`
1274
+ height: p ? "auto" : `${t.height}px`
1243
1275
  },
1244
- children: /* @__PURE__ */ L(r, {
1276
+ children: /* @__PURE__ */ I(i, {
1245
1277
  ref: u,
1246
1278
  component: `${a.componentName}.body.detailRow.content`,
1247
1279
  position: "sticky",
1248
1280
  insetStart: 0,
1249
1281
  overflowX: "auto",
1250
1282
  overflowY: "hidden",
1283
+ transition: "none",
1251
1284
  props: {
1252
1285
  role: "gridcell",
1253
1286
  "aria-colindex": 1,
@@ -1260,16 +1293,16 @@ function qe(e) {
1260
1293
  })
1261
1294
  });
1262
1295
  }
1263
- qe.displayName = "DataGridDetailRow";
1264
- var Je = D(qe);
1296
+ at.displayName = "DataGridDetailRow";
1297
+ var ot = D(at);
1265
1298
  //#endregion
1266
1299
  //#region src/components/dataGrid/components/dataGridAggregateValue.tsx
1267
- function Ye(e) {
1300
+ function st(e) {
1268
1301
  let { cell: t } = e, { column: n } = t;
1269
- if (n.AggregateCell) return /* @__PURE__ */ L(n.AggregateCell, { cell: t });
1270
- let i = t.scope === "footer" ? "footer.cell" : "body.groupRow.aggregate";
1271
- return /* @__PURE__ */ L(r, {
1272
- component: `${n.grid.componentName}.${i}`,
1302
+ if (n.AggregateCell) return /* @__PURE__ */ I(n.AggregateCell, { cell: t });
1303
+ let r = t.scope === "footer" ? "footer.cell" : "body.groupRow.aggregate";
1304
+ return /* @__PURE__ */ I(i, {
1305
+ component: `${n.grid.componentName}.${r}`,
1273
1306
  px: 3,
1274
1307
  textOverflow: "ellipsis",
1275
1308
  overflow: "hidden",
@@ -1277,12 +1310,12 @@ function Ye(e) {
1277
1310
  children: t.value
1278
1311
  });
1279
1312
  }
1280
- Ye.displayName = "DataGridAggregateValue";
1313
+ st.displayName = "DataGridAggregateValue";
1281
1314
  //#endregion
1282
1315
  //#region src/components/dataGrid/components/dataGridCell.tsx
1283
- var Xe = "button,a[href],input,select,textarea";
1284
- function J(t) {
1285
- let { children: n, cell: r, row: i, columnIndex: a, ariaColIndex: o, ariaColSpan: s, style: c, ...l } = t, { column: u } = r, d = z(), { ref: f, tabIndex: m, onFocus: h } = B(d, i, a), { range: g } = u.grid, _ = r instanceof H ? i - (d?.headerRowCount ?? 0) : -1, v = _ >= 0 && g.isCurrent(_, a), y = _ >= 0 && g.isSelected(_, a);
1316
+ var ct = "button,a[href],input,select,textarea";
1317
+ function J(e) {
1318
+ let { children: t, cell: r, row: i, columnIndex: a, ariaColIndex: o, ariaColSpan: s, style: c, ...l } = e, { column: u } = r, d = z(), { ref: f, tabIndex: p, onFocus: m } = ve(d, i, a), { range: g } = u.grid, _ = r instanceof V ? i - (d?.headerRowCount ?? 0) : -1, v = _ >= 0 && g.isCurrent(_, a), y = _ >= 0 && g.isSelected(_, a);
1286
1319
  u.hasAlign && (l.jc = u.align);
1287
1320
  let b = r.isExpanded ? {
1288
1321
  ...u.cellVariant.value,
@@ -1295,8 +1328,8 @@ function J(t) {
1295
1328
  isInRange: y && !v,
1296
1329
  isCurrentCell: v
1297
1330
  });
1298
- let x = r instanceof H && !r.editing && r.rejected;
1299
- r instanceof H && r.editing ? b = {
1331
+ let x = r instanceof V && !r.editing && r.rejected;
1332
+ r instanceof V && r.editing ? b = {
1300
1333
  ...b,
1301
1334
  isEditing: !0,
1302
1335
  isInvalid: !!r.error
@@ -1304,14 +1337,14 @@ function J(t) {
1304
1337
  ...b,
1305
1338
  isInvalid: !0
1306
1339
  });
1307
- let S = r instanceof H ? (t) => {
1308
- t.target.closest(Xe) || (e(t.currentTarget), r.beginEdit());
1340
+ let S = r instanceof V ? (e) => {
1341
+ e.target.closest(ct) || (n(e.currentTarget), r.beginEdit());
1309
1342
  } : void 0, C = g.enabled && _ >= 0, w = C ? (e) => {
1310
- e.button === 0 && e.pointerType !== "touch" && (e.target.closest(Xe) || g.press(_, a, e.shiftKey));
1343
+ e.button === 0 && e.pointerType !== "touch" && (e.target.closest(ct) || g.press(_, a, e.shiftKey));
1311
1344
  } : void 0, T = C && g.isDragging ? (e) => {
1312
1345
  g.dragTo(_, a), e.currentTarget.focus();
1313
1346
  } : void 0;
1314
- return /* @__PURE__ */ L(p, {
1347
+ return /* @__PURE__ */ I(h, {
1315
1348
  ref: f,
1316
1349
  component: `${u.grid.componentName}.body.cell`,
1317
1350
  props: {
@@ -1320,8 +1353,8 @@ function J(t) {
1320
1353
  "aria-colspan": s,
1321
1354
  "aria-selected": y || void 0,
1322
1355
  "aria-invalid": x || void 0,
1323
- tabIndex: m,
1324
- onFocus: h,
1356
+ tabIndex: p,
1357
+ onFocus: m,
1325
1358
  onDoubleClick: S,
1326
1359
  onPointerDown: w,
1327
1360
  onPointerEnter: T
@@ -1332,31 +1365,31 @@ function J(t) {
1332
1365
  ...c
1333
1366
  },
1334
1367
  ...l,
1335
- children: n
1368
+ children: t
1336
1369
  });
1337
1370
  }
1338
1371
  J.displayName = "DataGridCell";
1339
1372
  //#endregion
1340
1373
  //#region src/components/dataGrid/components/dataGridFooter.tsx
1341
- function Ze(e) {
1342
- let { grid: t } = e, { aggregation: n } = t, i = z();
1374
+ function lt(e) {
1375
+ let { grid: t } = e, { aggregation: n } = t, r = z();
1343
1376
  if (!n.hasFooter) return null;
1344
- let a = (i?.rowCount ?? 1) - 1, { footerLabelColumn: o, footerLabel: s } = n;
1345
- return /* @__PURE__ */ L(y, {
1377
+ let a = (r?.rowCount ?? 1) - 1, { footerLabelColumn: o, footerLabel: s } = n;
1378
+ return /* @__PURE__ */ I(x, {
1346
1379
  component: `${t.componentName}.footer`,
1347
1380
  props: { role: "rowgroup" },
1348
1381
  style: { gridTemplateColumns: t.gridTemplateColumns.value },
1349
- children: /* @__PURE__ */ L(r, {
1382
+ children: /* @__PURE__ */ I(i, {
1350
1383
  display: "contents",
1351
1384
  props: {
1352
1385
  role: "row",
1353
1386
  "aria-rowindex": a + 1
1354
1387
  },
1355
- children: n.footerCells.value.map((e, n) => /* @__PURE__ */ L(J, {
1388
+ children: n.footerCells.value.map((e, n) => /* @__PURE__ */ I(J, {
1356
1389
  cell: e,
1357
1390
  row: a,
1358
1391
  columnIndex: n,
1359
- children: e.column.aggregate ? /* @__PURE__ */ L(Ye, { cell: e }) : e.column === o ? /* @__PURE__ */ L(r, {
1392
+ children: e.column.aggregate ? /* @__PURE__ */ I(st, { cell: e }) : e.column === o ? /* @__PURE__ */ I(i, {
1360
1393
  component: `${t.componentName}.footer.label`,
1361
1394
  px: 3,
1362
1395
  textWrap: "nowrap",
@@ -1366,16 +1399,16 @@ function Ze(e) {
1366
1399
  })
1367
1400
  });
1368
1401
  }
1369
- Ze.displayName = "DataGridFooter";
1402
+ lt.displayName = "DataGridFooter";
1370
1403
  //#endregion
1371
1404
  //#region src/icons/expandIcon.tsx
1372
- function Qe(e) {
1373
- return /* @__PURE__ */ L(d, {
1405
+ function Y(e) {
1406
+ return /* @__PURE__ */ I(f, {
1374
1407
  viewBox: "4 2 16 18",
1375
1408
  width: "1rem",
1376
1409
  fill: "currentColor",
1377
1410
  ...e,
1378
- children: /* @__PURE__ */ L(u, {
1411
+ children: /* @__PURE__ */ I(d, {
1379
1412
  fillRule: "evenodd",
1380
1413
  d: "M12.707 14.707a1 1 0 0 1-1.414 0l-5-5a1 1 0 0 1 1.414-1.414L12 12.586l4.293-4.293a1 1 0 1 1 1.414 1.414l-5 5Z",
1381
1414
  props: { clipRule: "evenodd" }
@@ -1384,35 +1417,35 @@ function Qe(e) {
1384
1417
  }
1385
1418
  //#endregion
1386
1419
  //#region src/components/dataGrid/components/dataGridCellPlaceholder.tsx
1387
- var $e = [
1420
+ var ut = [
1388
1421
  "3/5",
1389
1422
  "2/5",
1390
1423
  "4/5",
1391
1424
  "1/2",
1392
1425
  "7/12"
1393
1426
  ];
1394
- function et(e) {
1395
- let { cell: t, columnIndex: n } = e, i = $e[(t.row.rowIndex + n) % $e.length];
1396
- return /* @__PURE__ */ L(p, {
1427
+ function dt(e) {
1428
+ let { cell: t, columnIndex: n } = e, r = ut[(t.row.rowIndex + n) % ut.length];
1429
+ return /* @__PURE__ */ I(h, {
1397
1430
  component: `${t.grid.componentName}.body.cell.placeholder`,
1398
1431
  ai: "center",
1399
1432
  px: 3,
1400
1433
  props: { "aria-hidden": !0 },
1401
- children: /* @__PURE__ */ L(r, {
1434
+ children: /* @__PURE__ */ I(i, {
1402
1435
  component: `${t.grid.componentName}.body.cell.placeholder.bar`,
1403
- width: i
1436
+ width: r
1404
1437
  })
1405
1438
  });
1406
1439
  }
1407
- et.displayName = "DataGridCellPlaceholder";
1440
+ dt.displayName = "DataGridCellPlaceholder";
1408
1441
  //#endregion
1409
1442
  //#region src/components/dataGrid/components/dataGridGroupRow.tsx
1410
- function tt(e) {
1411
- let { row: t, index: n } = e, { selected: i, indeterminate: a, expanded: o, placeholder: s } = t, c = (z()?.headerRowCount ?? 0) + n, l = O(() => t.toggleSelectAll(), [t]);
1412
- return /* @__PURE__ */ L(p, {
1443
+ function ft(e) {
1444
+ let { row: t, index: n } = e, { selected: r, indeterminate: a, expanded: o, placeholder: s } = t, c = (z()?.headerRowCount ?? 0) + n, l = O(() => t.toggleSelectAll(), [t]);
1445
+ return /* @__PURE__ */ I(h, {
1413
1446
  component: `${t.grid.componentName}.body.groupRow`,
1414
1447
  className: "grid-row",
1415
- selected: t.grid.props.def.rowSelection ? i : void 0,
1448
+ selected: t.grid.props.def.rowSelection ? r : void 0,
1416
1449
  display: "contents",
1417
1450
  props: {
1418
1451
  role: "row",
@@ -1422,7 +1455,7 @@ function tt(e) {
1422
1455
  },
1423
1456
  children: t.renderedCells.map(({ cell: e, columnIndex: n }, u) => {
1424
1457
  switch (e.cellKind) {
1425
- case "grouping": return /* @__PURE__ */ L(J, {
1458
+ case "grouping": return /* @__PURE__ */ I(J, {
1426
1459
  cell: e,
1427
1460
  row: c,
1428
1461
  columnIndex: u,
@@ -1436,13 +1469,13 @@ function tt(e) {
1436
1469
  gridColumn: e.gridColumnSpan,
1437
1470
  ps: e.depthPadding,
1438
1471
  overflow: "auto",
1439
- children: s ? /* @__PURE__ */ L(et, {
1472
+ children: s ? /* @__PURE__ */ I(dt, {
1440
1473
  cell: e,
1441
1474
  columnIndex: u
1442
- }) : /* @__PURE__ */ L(r, {
1475
+ }) : /* @__PURE__ */ I(i, {
1443
1476
  textWrap: "nowrap",
1444
1477
  px: 3,
1445
- children: /* @__PURE__ */ R(f, {
1478
+ children: /* @__PURE__ */ L(p, {
1446
1479
  component: `${t.grid.componentName}.body.groupRow.expandButton`,
1447
1480
  onClick: () => t.toggleRow(),
1448
1481
  cursor: "pointer",
@@ -1453,7 +1486,7 @@ function tt(e) {
1453
1486
  tabIndex: -1,
1454
1487
  "aria-expanded": o
1455
1488
  },
1456
- children: [/* @__PURE__ */ L(Qe, {
1489
+ children: [/* @__PURE__ */ I(Y, {
1457
1490
  fill: "currentColor",
1458
1491
  width: "14px",
1459
1492
  height: "14px",
@@ -1462,15 +1495,15 @@ function tt(e) {
1462
1495
  })
1463
1496
  })
1464
1497
  }, e.column.key);
1465
- case "selection": return /* @__PURE__ */ L(J, {
1498
+ case "selection": return /* @__PURE__ */ I(J, {
1466
1499
  cell: e,
1467
1500
  row: c,
1468
1501
  columnIndex: u,
1469
1502
  ariaColIndex: n + 1,
1470
- children: /* @__PURE__ */ L(m, {
1503
+ children: /* @__PURE__ */ I(g, {
1471
1504
  variant: "datagrid",
1472
1505
  m: 1,
1473
- checked: i,
1506
+ checked: r,
1474
1507
  indeterminate: a,
1475
1508
  onChange: l,
1476
1509
  props: {
@@ -1479,14 +1512,14 @@ function tt(e) {
1479
1512
  }
1480
1513
  })
1481
1514
  }, e.column.key);
1482
- case "aggregate": return /* @__PURE__ */ L(J, {
1515
+ case "aggregate": return /* @__PURE__ */ I(J, {
1483
1516
  cell: e,
1484
1517
  row: c,
1485
1518
  columnIndex: u,
1486
1519
  ariaColIndex: n + 1,
1487
- children: e.aggregate && /* @__PURE__ */ L(Ye, { cell: e.aggregate })
1520
+ children: e.aggregate && /* @__PURE__ */ I(st, { cell: e.aggregate })
1488
1521
  }, e.column.key);
1489
- case "spacer": return /* @__PURE__ */ L(J, {
1522
+ case "spacer": return /* @__PURE__ */ I(J, {
1490
1523
  cell: e,
1491
1524
  row: c,
1492
1525
  columnIndex: u,
@@ -1499,30 +1532,30 @@ function tt(e) {
1499
1532
  })
1500
1533
  });
1501
1534
  }
1502
- tt.displayName = "DataGridGroupRow";
1503
- var nt = D(tt), rt = "input,select,textarea,button";
1504
- function it(e) {
1535
+ ft.displayName = "DataGridGroupRow";
1536
+ var pt = D(ft), mt = "input:not([type=\"hidden\"]),select,textarea,button,[role=\"spinbutton\"]";
1537
+ function ht(e) {
1505
1538
  let { options: t } = e.editor;
1506
1539
  return typeof t == "function" ? t(e.row.data) : t ?? [];
1507
1540
  }
1508
- function at(e) {
1509
- let { cell: t, row: r, columnIndex: i } = e, { grid: a } = t, o = z(), s = N(null), c = l("datagrid-cell-error"), { error: u, pending: d } = t;
1510
- n(() => {
1511
- let e = s.current?.querySelector(rt);
1541
+ function gt(e) {
1542
+ let { cell: t, row: n, columnIndex: i } = e, { grid: a } = t, o = z(), s = N(null), c = u("datagrid-cell-error"), { error: l, pending: d } = t;
1543
+ r(() => {
1544
+ let e = s.current?.querySelector(mt);
1512
1545
  e?.focus(), e instanceof HTMLInputElement && e.type !== "checkbox" && e.select();
1513
1546
  }, []);
1514
1547
  let f = O(() => {
1515
1548
  s.current?.closest("[role=\"gridcell\"]")?.focus();
1516
- }, []), m = O((e) => {
1549
+ }, []), p = O((e) => {
1517
1550
  if (!o) return;
1518
- let t = a.edits.nextEditable(r - o.headerRowCount, i, e.shiftKey);
1551
+ let t = a.edits.nextEditable(n - o.headerRowCount, i, e.shiftKey);
1519
1552
  t && (e.preventDefault(), o.setActiveCell(t.row + o.headerRowCount, t.column, { reason: "programmatic" }), a.edits.beginAt(t.row, t.column));
1520
1553
  }, [
1521
1554
  i,
1522
1555
  a,
1523
1556
  o,
1524
- r
1525
- ]), g = O((e) => {
1557
+ n
1558
+ ]), m = O((e) => {
1526
1559
  if (e.key === "Escape") {
1527
1560
  if (s.current?.querySelector("[aria-expanded=\"true\"]")) return;
1528
1561
  e.preventDefault(), e.stopPropagation(), t.cancelEdit(), f();
@@ -1537,29 +1570,29 @@ function at(e) {
1537
1570
  e.preventDefault();
1538
1571
  return;
1539
1572
  }
1540
- m(e);
1573
+ p(e);
1541
1574
  }
1542
1575
  }, [
1543
1576
  t,
1544
1577
  f,
1545
- m
1546
- ]), _ = O(() => {
1578
+ p
1579
+ ]), g = O(() => {
1547
1580
  !t.editing || t.pending || t.commitEdit();
1548
1581
  }, [t]);
1549
- return /* @__PURE__ */ R(p, {
1582
+ return /* @__PURE__ */ L(h, {
1550
1583
  ref: s,
1551
1584
  component: `${a.componentName}.body.cell.editor`,
1552
1585
  variant: { isPending: d },
1553
- props: { onKeyDown: g },
1586
+ props: { onKeyDown: m },
1554
1587
  width: "fit",
1555
1588
  height: "fit",
1556
1589
  ai: "center",
1557
- children: [/* @__PURE__ */ L(ot, {
1590
+ children: [/* @__PURE__ */ I(_t, {
1558
1591
  cell: t,
1559
- errorId: u ? c : void 0,
1560
- onBlur: _,
1592
+ errorId: l ? c : void 0,
1593
+ onBlur: g,
1561
1594
  onCommitted: f
1562
- }), u && /* @__PURE__ */ L(h, {
1595
+ }), l && /* @__PURE__ */ I(_, {
1563
1596
  anchor: s,
1564
1597
  side: "bottom",
1565
1598
  align: "start",
@@ -1568,18 +1601,18 @@ function at(e) {
1568
1601
  component: `${a.componentName}.body.cell.error`,
1569
1602
  id: c,
1570
1603
  props: { role: "alert" },
1571
- children: u
1604
+ children: l
1572
1605
  })]
1573
1606
  });
1574
1607
  }
1575
- function ot(e) {
1608
+ function _t(e) {
1576
1609
  let { cell: t, errorId: n, onBlur: r, onCommitted: i } = e, { EditCell: a } = t.column.def, { type: o, placeholder: s, step: c, min: l, max: u } = t.editor, d = t.column.header ?? t.column.key, f = {
1577
1610
  "aria-label": t.grid.localeText.editCell(String(d)),
1578
1611
  "aria-invalid": n ? !0 : void 0,
1579
1612
  "aria-describedby": n
1580
- };
1581
- if (a) return /* @__PURE__ */ L(a, { cell: t });
1582
- if (o === "checkbox") return /* @__PURE__ */ L(m, {
1613
+ }, p = Te(Me(o));
1614
+ if (a) return /* @__PURE__ */ I(a, { cell: t });
1615
+ if (o === "checkbox") return /* @__PURE__ */ I(g, {
1583
1616
  checked: !!t.draft,
1584
1617
  onChange: (e) => {
1585
1618
  t.setDraft(e.target.checked), t.commitEdit(), i();
@@ -1589,7 +1622,7 @@ function ot(e) {
1589
1622
  onBlur: r
1590
1623
  }
1591
1624
  });
1592
- if (o === "select") return /* @__PURE__ */ L(b, {
1625
+ if (o === "select") return /* @__PURE__ */ I(S, {
1593
1626
  value: t.draft,
1594
1627
  defaultOpen: !0,
1595
1628
  width: "fit",
@@ -1601,14 +1634,20 @@ function ot(e) {
1601
1634
  t.setDraft(e ?? null), t.commitEdit(), i();
1602
1635
  },
1603
1636
  props: f,
1604
- children: it(t).map((e) => /* @__PURE__ */ L(b.Item, {
1637
+ children: ht(t).map((e) => /* @__PURE__ */ I(S.Item, {
1605
1638
  value: e.value,
1606
1639
  children: e.label ?? String(e.value)
1607
1640
  }, String(e.value)))
1608
1641
  });
1609
- let p = o === "number";
1610
- return /* @__PURE__ */ L(v, {
1611
- type: p ? "number" : "text",
1642
+ if (Me(o)) return p ? /* @__PURE__ */ I(p.DateEditor, {
1643
+ cell: t,
1644
+ label: f["aria-label"],
1645
+ errorId: n,
1646
+ onBlur: r
1647
+ }) : null;
1648
+ let m = o === "number";
1649
+ return /* @__PURE__ */ I(y, {
1650
+ type: m ? "number" : "text",
1612
1651
  value: t.draft === null || t.draft === void 0 ? "" : String(t.draft),
1613
1652
  placeholder: s,
1614
1653
  step: c,
@@ -1619,7 +1658,7 @@ function ot(e) {
1619
1658
  focus: { outline: 0 },
1620
1659
  onChange: (e) => {
1621
1660
  let n = e.target.value;
1622
- t.setDraft(p ? n === "" ? null : Number(n) : n);
1661
+ t.setDraft(m ? n === "" ? null : Number(n) : n);
1623
1662
  },
1624
1663
  props: {
1625
1664
  ...f,
@@ -1629,39 +1668,84 @@ function ot(e) {
1629
1668
  }
1630
1669
  });
1631
1670
  }
1632
- at.displayName = "DataGridCellEditor";
1671
+ gt.displayName = "DataGridCellEditor";
1672
+ //#endregion
1673
+ //#region src/components/dataGrid/components/dataGridBooleanValue.tsx
1674
+ function vt(e) {
1675
+ let { value: t, text: n } = e;
1676
+ return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(f, {
1677
+ viewBox: "0 0 16 16",
1678
+ width: "1rem",
1679
+ height: "1rem",
1680
+ css: { verticalAlign: "middle" },
1681
+ color: t ? void 0 : "gray-400",
1682
+ props: { fill: "none" },
1683
+ children: /* @__PURE__ */ I(d, {
1684
+ d: t ? "m3.5 8.5 3 3 6-7" : "m5 5 6 6m0-6-6 6",
1685
+ stroke: "currentColor",
1686
+ strokeWidth: 1.75,
1687
+ strokeLinecap: "round",
1688
+ strokeLinejoin: "round"
1689
+ })
1690
+ }), /* @__PURE__ */ I(m, {
1691
+ tag: "span",
1692
+ children: t ? n.booleanTrue : n.booleanFalse
1693
+ })] });
1694
+ }
1695
+ vt.displayName = "DataGridBooleanValue";
1696
+ //#endregion
1697
+ //#region src/components/dataGrid/components/dataGridDateValue.tsx
1698
+ function yt(e, t) {
1699
+ if (e.def.dateFormat) return e.def.dateFormat;
1700
+ let { editor: n } = e.def, r = typeof n == "object" ? n.type : n;
1701
+ return r && Me(r) ? r : t instanceof Date ? "datetime" : null;
1702
+ }
1703
+ function bt(e) {
1704
+ let { value: t, format: n } = e, r = Te(!0);
1705
+ return r ? /* @__PURE__ */ I(r.DateValue, {
1706
+ value: t,
1707
+ format: n
1708
+ }) : /* @__PURE__ */ I(F, { children: t instanceof Date ? t.toISOString() : t == null ? "" : String(t) });
1709
+ }
1710
+ bt.displayName = "DataGridDateValue";
1633
1711
  //#endregion
1634
1712
  //#region src/components/dataGrid/components/dataGridCellText.tsx
1635
- function st(e) {
1636
- let { cell: t } = e;
1637
- return /* @__PURE__ */ L(p, {
1713
+ function xt(e) {
1714
+ let { cell: t } = e, { value: n } = t, r = yt(t.column, n);
1715
+ return /* @__PURE__ */ I(h, {
1638
1716
  component: `${t.grid.componentName}.body.cell.text`,
1639
1717
  height: "fit",
1640
1718
  width: "fit",
1641
1719
  overflow: "auto",
1642
1720
  ai: "center",
1643
1721
  jc: t.column.align,
1644
- children: /* @__PURE__ */ L(r, {
1722
+ children: /* @__PURE__ */ I(i, {
1645
1723
  px: 3,
1646
1724
  textOverflow: "ellipsis",
1647
1725
  overflow: "hidden",
1648
1726
  textWrap: "nowrap",
1649
- children: t.value
1727
+ children: typeof n == "boolean" ? /* @__PURE__ */ I(vt, {
1728
+ value: n,
1729
+ text: t.grid.localeText
1730
+ }) : r ? /* @__PURE__ */ I(bt, {
1731
+ value: n,
1732
+ format: r
1733
+ }) : n
1650
1734
  })
1651
1735
  });
1652
1736
  }
1653
- st.displayName = "DataGridCellText";
1737
+ xt.displayName = "DataGridCellText";
1654
1738
  //#endregion
1655
1739
  //#region src/components/dataGrid/components/dataGridCellTree.tsx
1656
- function ct(e) {
1657
- let { cell: t, row: n, children: i } = e, { hasChildren: a, treeExpanded: o, level: s } = n, c = n.grid.componentName, l = O((e) => {
1740
+ function St(e) {
1741
+ let { cell: t, row: n, children: r } = e, { hasChildren: a, treeExpanded: o, level: s } = n, c = n.grid.componentName, l = O((e) => {
1658
1742
  e.stopPropagation(), n.toggleTree();
1659
1743
  }, [n]), u = t.value == null || t.value === "" ? t.grid.localeText.unnamedRow(n.rowIndex + 1) : String(t.value);
1660
- return /* @__PURE__ */ R(p, {
1744
+ return /* @__PURE__ */ L(h, {
1661
1745
  component: `${c}.body.cell.tree`,
1662
1746
  ai: "center",
1663
1747
  ps: s * n.grid.tree.indent,
1664
- children: [a ? /* @__PURE__ */ L(f, {
1748
+ children: [a ? /* @__PURE__ */ I(p, {
1665
1749
  component: `${c}.body.cell.tree.toggle`,
1666
1750
  variant: { isExpanded: o },
1667
1751
  type: "button",
@@ -1674,44 +1758,44 @@ function ct(e) {
1674
1758
  tabIndex: -1,
1675
1759
  "aria-label": (o ? t.grid.localeText.collapseTreeRow : t.grid.localeText.expandTreeRow)(u)
1676
1760
  },
1677
- children: /* @__PURE__ */ L(Qe, {
1761
+ children: /* @__PURE__ */ I(Y, {
1678
1762
  fill: "currentColor",
1679
1763
  width: "14px",
1680
1764
  height: "14px",
1681
1765
  rotate: o ? 0 : -90
1682
1766
  })
1683
- }) : /* @__PURE__ */ L(r, { component: `${c}.body.cell.tree.spacer` }), /* @__PURE__ */ L(r, {
1767
+ }) : /* @__PURE__ */ I(i, { component: `${c}.body.cell.tree.spacer` }), /* @__PURE__ */ I(i, {
1684
1768
  textOverflow: "ellipsis",
1685
1769
  overflow: "hidden",
1686
1770
  textWrap: "nowrap",
1687
1771
  minWidth: 0,
1688
- children: i
1772
+ children: r
1689
1773
  })]
1690
1774
  });
1691
1775
  }
1692
- ct.displayName = "DataGridCellTree";
1776
+ St.displayName = "DataGridCellTree";
1693
1777
  //#endregion
1694
1778
  //#region src/components/dataGrid/components/dataGridRow.tsx
1695
- function lt(e) {
1696
- let { row: t, index: n } = e, { selected: r, expandOnRowClick: i } = t, a = (z()?.headerRowCount ?? 0) + n, o = De(t) ? t : void 0, s = o && t.grid.tree.columnKey, c = O(() => {
1779
+ function Ct(e) {
1780
+ let { row: t, index: n } = e, { selected: r, expandOnRowClick: i } = t, a = (z()?.headerRowCount ?? 0) + n, o = W(t) ? t : void 0, s = o && t.grid.tree.columnKey, c = O(() => {
1697
1781
  t.toggleDetail();
1698
1782
  }, [t]), l = (e, n) => {
1699
- if (e.editing) return /* @__PURE__ */ L(at, {
1783
+ if (e.editing) return /* @__PURE__ */ I(gt, {
1700
1784
  cell: e,
1701
1785
  row: a,
1702
1786
  columnIndex: n
1703
1787
  });
1704
- let r = t.placeholder && !e.column.isRowNumber ? /* @__PURE__ */ L(et, {
1788
+ let r = t.placeholder && !e.column.isRowNumber ? /* @__PURE__ */ I(dt, {
1705
1789
  cell: e,
1706
1790
  columnIndex: n
1707
- }) : e.column.Cell ? /* @__PURE__ */ L(e.column.Cell, { cell: e }) : /* @__PURE__ */ L(st, { cell: e });
1708
- return !o || e.column.key !== s ? r : /* @__PURE__ */ L(ct, {
1791
+ }) : e.column.Cell ? /* @__PURE__ */ I(e.column.Cell, { cell: e }) : /* @__PURE__ */ I(xt, { cell: e });
1792
+ return !o || e.column.key !== s ? r : /* @__PURE__ */ I(St, {
1709
1793
  cell: e,
1710
1794
  row: o,
1711
1795
  children: r
1712
1796
  });
1713
1797
  };
1714
- return /* @__PURE__ */ L(p, {
1798
+ return /* @__PURE__ */ I(h, {
1715
1799
  component: `${t.grid.componentName}.body.row`,
1716
1800
  className: "grid-row",
1717
1801
  selected: t.grid.props.def.rowSelection ? r : void 0,
@@ -1727,7 +1811,7 @@ function lt(e) {
1727
1811
  onClick: i ? c : void 0
1728
1812
  },
1729
1813
  cursor: i ? "pointer" : void 0,
1730
- children: t.cells.map((e, t) => /* @__PURE__ */ L(J, {
1814
+ children: t.cells.map((e, t) => /* @__PURE__ */ I(J, {
1731
1815
  cell: e,
1732
1816
  row: a,
1733
1817
  columnIndex: t,
@@ -1735,37 +1819,37 @@ function lt(e) {
1735
1819
  }, e.column.key))
1736
1820
  });
1737
1821
  }
1738
- lt.displayName = "DataGridRow";
1739
- var ut = D(lt);
1822
+ Ct.displayName = "DataGridRow";
1823
+ var wt = D(Ct);
1740
1824
  //#endregion
1741
1825
  //#region src/components/dataGrid/components/dataGridBody.tsx
1742
- function dt(e, t, n) {
1743
- return e instanceof Ee ? /* @__PURE__ */ L(Je, {
1826
+ function Tt(e, t, n) {
1827
+ return e instanceof H ? /* @__PURE__ */ I(ot, {
1744
1828
  row: e,
1745
1829
  index: t,
1746
1830
  version: n
1747
- }, e.key) : e instanceof Ke ? /* @__PURE__ */ L(nt, {
1831
+ }, e.key) : e instanceof it ? /* @__PURE__ */ I(pt, {
1748
1832
  row: e,
1749
1833
  index: t,
1750
1834
  version: n
1751
- }, e.key) : /* @__PURE__ */ L(ut, {
1835
+ }, e.key) : /* @__PURE__ */ I(wt, {
1752
1836
  row: e,
1753
1837
  index: t,
1754
1838
  version: n
1755
1839
  }, e.key);
1756
1840
  }
1757
- function ft(e) {
1758
- let { grid: t, scroll: n } = e, { viewport: i } = t, { startIndex: a, take: o, translateY: s, totalHeight: c, viewHeight: l } = i.window(n.top, n.direction), u = i.showAll, d = i.isEmpty, f = t.flatRows.value, m = t.getSnapshot(), h = te(() => d ? null : W.take(f, o, a).map((e, n) => dt(e, a + n, t.rowVersion(e, a + n))), [
1841
+ function Et(e) {
1842
+ let { grid: t, scroll: n } = e, { viewport: r } = t, { startIndex: a, take: o, translateY: s, totalHeight: c, viewHeight: l } = r.window(n.top, n.direction), u = r.showAll, d = r.isEmpty, f = t.flatRows.value, p = t.getSnapshot(), m = M(() => d ? null : G.take(f, o, a).map((e, n) => Tt(e, a + n, t.rowVersion(e, a + n))), [
1759
1843
  f,
1760
1844
  t,
1761
1845
  d,
1762
1846
  o,
1763
1847
  a,
1764
- m
1848
+ p
1765
1849
  ]);
1766
1850
  if (d) {
1767
1851
  let { noDataComponent: e } = t.props.def, n = t.props.loading ? t.localeText.loadingRows : t.localeText.noRows;
1768
- return /* @__PURE__ */ L(p, {
1852
+ return /* @__PURE__ */ I(h, {
1769
1853
  component: `${t.componentName}.body.empty`,
1770
1854
  jc: "center",
1771
1855
  ai: "center",
@@ -1773,15 +1857,15 @@ function ft(e) {
1773
1857
  position: "sticky",
1774
1858
  insetStart: 0,
1775
1859
  props: { role: "row" },
1776
- style: { height: i.emptyHeight },
1777
- children: /* @__PURE__ */ L(r, {
1860
+ style: { height: r.emptyHeight },
1861
+ children: /* @__PURE__ */ I(i, {
1778
1862
  display: "contents",
1779
1863
  props: { role: "gridcell" },
1780
1864
  children: e ?? n
1781
1865
  })
1782
1866
  });
1783
1867
  }
1784
- return u ? /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L(y, {
1868
+ return u ? /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(x, {
1785
1869
  component: `${t.componentName}.body`,
1786
1870
  width: "max-content",
1787
1871
  minWidth: "fit",
@@ -1789,14 +1873,14 @@ function ft(e) {
1789
1873
  userSelect: t.range.enabled ? "none" : void 0,
1790
1874
  props: { role: "rowgroup" },
1791
1875
  style: { gridTemplateColumns: t.gridTemplateColumns.value },
1792
- children: h
1793
- }), /* @__PURE__ */ L(Ze, { grid: t })] }) : /* @__PURE__ */ R(r, {
1876
+ children: m
1877
+ }), /* @__PURE__ */ I(lt, { grid: t })] }) : /* @__PURE__ */ L(i, {
1794
1878
  props: { role: "presentation" },
1795
1879
  style: { height: l },
1796
- children: [/* @__PURE__ */ L(r, {
1880
+ children: [/* @__PURE__ */ I(i, {
1797
1881
  props: { role: "presentation" },
1798
1882
  style: { height: `${c}px` },
1799
- children: /* @__PURE__ */ L(y, {
1883
+ children: /* @__PURE__ */ I(x, {
1800
1884
  component: `${t.componentName}.body`,
1801
1885
  width: "max-content",
1802
1886
  minWidth: "fit",
@@ -1808,17 +1892,17 @@ function ft(e) {
1808
1892
  willChange: "transform",
1809
1893
  gridTemplateColumns: t.gridTemplateColumns.value
1810
1894
  },
1811
- children: h
1895
+ children: m
1812
1896
  })
1813
- }), /* @__PURE__ */ L(Ze, { grid: t })]
1897
+ }), /* @__PURE__ */ I(lt, { grid: t })]
1814
1898
  });
1815
1899
  }
1816
- ft.displayName = "DataGridBody";
1900
+ Et.displayName = "DataGridBody";
1817
1901
  //#endregion
1818
1902
  //#region src/components/dataGrid/components/dataGridEmptyColumns.tsx
1819
- function pt(e) {
1903
+ function Dt(e) {
1820
1904
  let { grid: t } = e;
1821
- return /* @__PURE__ */ L(p, {
1905
+ return /* @__PURE__ */ I(h, {
1822
1906
  component: `${t.componentName}.emptyColumns`,
1823
1907
  d: "column",
1824
1908
  ai: "center",
@@ -1829,11 +1913,11 @@ function pt(e) {
1829
1913
  bgColor: "gray-50",
1830
1914
  borderRadius: 4,
1831
1915
  theme: { dark: { bgColor: "gray-900" } },
1832
- children: /* @__PURE__ */ R(p, {
1916
+ children: /* @__PURE__ */ L(h, {
1833
1917
  d: "column",
1834
1918
  ai: "center",
1835
1919
  gap: 3,
1836
- children: [/* @__PURE__ */ L(r, {
1920
+ children: [/* @__PURE__ */ I(i, {
1837
1921
  width: 16,
1838
1922
  height: 16,
1839
1923
  borderRadius: 999,
@@ -1842,29 +1926,29 @@ function pt(e) {
1842
1926
  display: "flex",
1843
1927
  ai: "center",
1844
1928
  jc: "center",
1845
- children: /* @__PURE__ */ L(d, {
1929
+ children: /* @__PURE__ */ I(f, {
1846
1930
  viewBox: "0 0 24 24",
1847
1931
  width: "40",
1848
1932
  fill: "currentColor",
1849
1933
  color: "gray-400",
1850
1934
  theme: { dark: { color: "gray-500" } },
1851
- children: /* @__PURE__ */ L(u, {
1935
+ children: /* @__PURE__ */ I(d, {
1852
1936
  fillRule: "evenodd",
1853
1937
  props: { clipRule: "evenodd" },
1854
1938
  d: "M3 6a3 3 0 013-3h12a3 3 0 013 3v12a3 3 0 01-3 3H6a3 3 0 01-3-3V6zm3-1a1 1 0 00-1 1v12a1 1 0 001 1h12a1 1 0 001-1V6a1 1 0 00-1-1H6zm2 3a1 1 0 011-1h6a1 1 0 110 2H9a1 1 0 01-1-1zm0 4a1 1 0 011-1h6a1 1 0 110 2H9a1 1 0 01-1-1zm0 4a1 1 0 011-1h4a1 1 0 110 2H9a1 1 0 01-1-1z"
1855
1939
  })
1856
1940
  })
1857
- }), /* @__PURE__ */ R(p, {
1941
+ }), /* @__PURE__ */ L(h, {
1858
1942
  d: "column",
1859
1943
  ai: "center",
1860
1944
  gap: 1,
1861
- children: [/* @__PURE__ */ L(r, {
1945
+ children: [/* @__PURE__ */ I(i, {
1862
1946
  fontSize: 18,
1863
1947
  fontWeight: 600,
1864
1948
  color: "gray-900",
1865
1949
  theme: { dark: { color: "gray-50" } },
1866
1950
  children: t.localeText.noColumnsTitle
1867
- }), /* @__PURE__ */ L(r, {
1951
+ }), /* @__PURE__ */ I(i, {
1868
1952
  fontSize: 14,
1869
1953
  color: "gray-500",
1870
1954
  textAlign: "center",
@@ -1877,7 +1961,7 @@ function pt(e) {
1877
1961
  }
1878
1962
  //#endregion
1879
1963
  //#region src/utils/dataGrid/headerCellUtils.ts
1880
- var mt;
1964
+ var Ot;
1881
1965
  (function(e) {
1882
1966
  let t = e.CELL_SELECTOR = "[role=\"columnheader\"][aria-sort]", n = ".resizer", r = `button, input, a, [role="menu"], [role="separator"], ${n}`;
1883
1967
  function i(e, t) {
@@ -1952,8 +2036,8 @@ var mt;
1952
2036
  } : e;
1953
2037
  }
1954
2038
  e.pause = u;
1955
- })(mt ||= {});
1956
- var Y = mt, ht;
2039
+ })(Ot ||= {});
2040
+ var X = Ot, kt;
1957
2041
  (function(e) {
1958
2042
  function t(e, t) {
1959
2043
  return (t?.type === "text" ? t.value : "") === (e.trim() ? e : "");
@@ -1980,31 +2064,31 @@ var Y = mt, ht;
1980
2064
  return t.valueTo === void 0 ? isNaN(r) : t.valueTo === r;
1981
2065
  }
1982
2066
  e.numberMatches = r;
1983
- })(ht ||= {});
1984
- var X = ht, gt = 300;
1985
- function _t(e, t, r) {
1986
- let a = N(/* @__PURE__ */ new Map()), o = O(() => {
1987
- for (let e of a.current.values()) clearTimeout(e);
1988
- a.current.clear();
2067
+ })(kt ||= {});
2068
+ var Z = kt, At = 300;
2069
+ function jt(e, t, n) {
2070
+ let i = N(/* @__PURE__ */ new Map()), o = O(() => {
2071
+ for (let e of i.current.values()) clearTimeout(e);
2072
+ i.current.clear();
1989
2073
  }, []), s = O((e, t) => {
1990
- clearTimeout(a.current.get(e)), a.current.set(e, setTimeout(() => {
1991
- a.current.delete(e), t();
1992
- }, gt));
2074
+ clearTimeout(i.current.get(e)), i.current.set(e, setTimeout(() => {
2075
+ i.current.delete(e), t();
2076
+ }, At));
1993
2077
  }, []);
1994
2078
  A(() => o, [o]);
1995
- let c = i(() => {
1996
- t(e) || (o(), r(e));
2079
+ let c = a(() => {
2080
+ t(e) || (o(), n(e));
1997
2081
  });
1998
- return n(c, [e, c]), {
2082
+ return r(c, [e, c]), {
1999
2083
  debounce: s,
2000
2084
  cancel: o
2001
2085
  };
2002
2086
  }
2003
2087
  //#endregion
2004
2088
  //#region src/components/dataGrid/components/dataGridColumnFilter.tsx
2005
- function vt(e) {
2089
+ function Mt(e) {
2006
2090
  let { label: t, onClear: n } = e;
2007
- return /* @__PURE__ */ L(f, {
2091
+ return /* @__PURE__ */ I(p, {
2008
2092
  clean: !0,
2009
2093
  type: "button",
2010
2094
  position: "absolute",
@@ -2019,7 +2103,7 @@ function vt(e) {
2019
2103
  tabIndex: -1,
2020
2104
  "aria-label": t
2021
2105
  },
2022
- children: /* @__PURE__ */ L(r, {
2106
+ children: /* @__PURE__ */ I(i, {
2023
2107
  fontSize: 10,
2024
2108
  color: "gray-400",
2025
2109
  hover: { color: "gray-600" },
@@ -2027,16 +2111,16 @@ function vt(e) {
2027
2111
  })
2028
2112
  });
2029
2113
  }
2030
- function yt({ column: e }) {
2031
- let { currentFilter: t } = e, { componentName: n } = e.grid, r = String(e.header ?? e.key), i = e.grid.localeText, [a, o] = P(t?.type === "text" ? t.value : ""), { debounce: s, cancel: c } = _t(t, (e) => X.textMatches(a, e), (e) => o(e?.type === "text" ? e.value : "")), l = O((t) => {
2114
+ function Nt({ column: e }) {
2115
+ let { currentFilter: t } = e, { componentName: n } = e.grid, r = String(e.header ?? e.key), i = e.grid.localeText, [a, o] = P(t?.type === "text" ? t.value : ""), { debounce: s, cancel: c } = jt(t, (e) => Z.textMatches(a, e), (e) => o(e?.type === "text" ? e.value : "")), l = O((t) => {
2032
2116
  let n = t.target.value;
2033
2117
  o(n), s("value", () => e.setTextFilter(n));
2034
2118
  }, [e, s]), u = O(() => {
2035
2119
  c(), o(""), e.clearFilter();
2036
2120
  }, [e, c]);
2037
- return /* @__PURE__ */ R(p, {
2121
+ return /* @__PURE__ */ L(h, {
2038
2122
  component: `${n}.filter.cell.input`,
2039
- children: [/* @__PURE__ */ L(v, {
2123
+ children: [/* @__PURE__ */ I(y, {
2040
2124
  width: "fit",
2041
2125
  variant: "compact",
2042
2126
  placeholder: e.filterConfig?.placeholder ?? i.filterPlaceholder,
@@ -2049,16 +2133,16 @@ function yt({ column: e }) {
2049
2133
  tabIndex: -1,
2050
2134
  "aria-label": i.filterColumn(r)
2051
2135
  }
2052
- }), a && /* @__PURE__ */ L(vt, {
2136
+ }), a && /* @__PURE__ */ I(Mt, {
2053
2137
  label: i.clearFilter(r),
2054
2138
  onClear: u
2055
2139
  })]
2056
2140
  });
2057
2141
  }
2058
- function bt({ column: e }) {
2059
- let { currentFilter: t } = e, { componentName: n } = e.grid, r = String(e.header ?? e.key), i = e.grid.localeText, [a, o] = P(() => X.numberDraft(t)), s = N(a), c = O((e) => {
2142
+ function Pt({ column: e }) {
2143
+ let { currentFilter: t } = e, { componentName: n } = e.grid, r = String(e.header ?? e.key), i = e.grid.localeText, [a, o] = P(() => Z.numberDraft(t)), s = N(a), c = O((e) => {
2060
2144
  s.current = e, o(e);
2061
- }, []), { debounce: l, cancel: u } = _t(t, (e) => X.numberMatches(a, e), (e) => c(X.numberDraft(e))), { operator: d, value: f, valueTo: m } = a, h = e.filterConfig, g = O(() => {
2145
+ }, []), { debounce: l, cancel: u } = jt(t, (e) => Z.numberMatches(a, e), (e) => c(Z.numberDraft(e))), { operator: d, value: f, valueTo: p } = a, m = e.filterConfig, g = O(() => {
2062
2146
  let { operator: t, value: n, valueTo: r } = s.current;
2063
2147
  e.setNumberFilter(t, n, r);
2064
2148
  }, [e]), _ = O((e, t) => {
@@ -2071,21 +2155,21 @@ function bt({ column: e }) {
2071
2155
  g,
2072
2156
  l,
2073
2157
  u
2074
- ]), y = O((e) => _({ value: e.target.value }, !0), [_]), x = O((e) => _({ valueTo: e.target.value }, !0), [_]), S = O((e) => _({ operator: e }, !1), [_]), C = O(() => {
2075
- u(), c(X.numberDraft(void 0)), e.clearFilter();
2158
+ ]), v = O((e) => _({ value: e.target.value }, !0), [_]), b = O((e) => _({ valueTo: e.target.value }, !0), [_]), x = O((e) => _({ operator: e }, !1), [_]), C = O(() => {
2159
+ u(), c(Z.numberDraft(void 0)), e.clearFilter();
2076
2160
  }, [
2077
2161
  e,
2078
2162
  u,
2079
2163
  c
2080
2164
  ]);
2081
- return /* @__PURE__ */ R(p, {
2165
+ return /* @__PURE__ */ L(h, {
2082
2166
  component: `${n}.filter.cell.input`,
2083
2167
  ai: d === "between" ? "start" : "center",
2084
2168
  gap: 1,
2085
- children: [/* @__PURE__ */ R(b, {
2169
+ children: [/* @__PURE__ */ L(S, {
2086
2170
  value: d,
2087
2171
  variant: "compact",
2088
- onChange: (e) => e && S(e),
2172
+ onChange: (e) => e && x(e),
2089
2173
  minWidth: 6,
2090
2174
  hideIcon: !0,
2091
2175
  b: 0,
@@ -2096,51 +2180,51 @@ function bt({ column: e }) {
2096
2180
  "aria-label": i.filterComparison(r)
2097
2181
  },
2098
2182
  children: [
2099
- /* @__PURE__ */ L(b.Item, {
2183
+ /* @__PURE__ */ I(S.Item, {
2100
2184
  value: "eq",
2101
2185
  children: "="
2102
2186
  }),
2103
- /* @__PURE__ */ L(b.Item, {
2187
+ /* @__PURE__ */ I(S.Item, {
2104
2188
  value: "ne",
2105
2189
  children: "≠"
2106
2190
  }),
2107
- /* @__PURE__ */ L(b.Item, {
2191
+ /* @__PURE__ */ I(S.Item, {
2108
2192
  value: "gt",
2109
2193
  children: ">"
2110
2194
  }),
2111
- /* @__PURE__ */ L(b.Item, {
2195
+ /* @__PURE__ */ I(S.Item, {
2112
2196
  value: "gte",
2113
2197
  children: "≥"
2114
2198
  }),
2115
- /* @__PURE__ */ L(b.Item, {
2199
+ /* @__PURE__ */ I(S.Item, {
2116
2200
  value: "lt",
2117
2201
  children: "<"
2118
2202
  }),
2119
- /* @__PURE__ */ L(b.Item, {
2203
+ /* @__PURE__ */ I(S.Item, {
2120
2204
  value: "lte",
2121
2205
  children: "≤"
2122
2206
  }),
2123
- /* @__PURE__ */ L(b.Item, {
2207
+ /* @__PURE__ */ I(S.Item, {
2124
2208
  value: "between",
2125
2209
  children: "↔"
2126
2210
  })
2127
2211
  ]
2128
- }), d === "between" ? /* @__PURE__ */ R(p, {
2212
+ }), d === "between" ? /* @__PURE__ */ L(h, {
2129
2213
  d: "column",
2130
2214
  gap: 1,
2131
2215
  flex1: !0,
2132
- children: [/* @__PURE__ */ R(p, {
2216
+ children: [/* @__PURE__ */ L(h, {
2133
2217
  ai: "center",
2134
2218
  position: "relative",
2135
2219
  flex1: !0,
2136
- children: [/* @__PURE__ */ L(v, {
2220
+ children: [/* @__PURE__ */ I(y, {
2137
2221
  type: "number",
2138
2222
  variant: "compact",
2139
- placeholder: h?.placeholder ?? i.filterFromPlaceholder,
2223
+ placeholder: m?.placeholder ?? i.filterFromPlaceholder,
2140
2224
  value: f,
2141
- onChange: y,
2225
+ onChange: v,
2142
2226
  width: "fit",
2143
- step: h?.step,
2227
+ step: m?.step,
2144
2228
  b: 0,
2145
2229
  bgColor: "transparent",
2146
2230
  focus: { outline: 0 },
@@ -2148,21 +2232,21 @@ function bt({ column: e }) {
2148
2232
  tabIndex: -1,
2149
2233
  "aria-label": i.filterFrom(r)
2150
2234
  }
2151
- }), (f !== "" || m !== "") && /* @__PURE__ */ L(vt, {
2235
+ }), (f !== "" || p !== "") && /* @__PURE__ */ I(Mt, {
2152
2236
  label: i.clearFilter(r),
2153
2237
  onClear: C
2154
2238
  })]
2155
- }), /* @__PURE__ */ L(p, {
2239
+ }), /* @__PURE__ */ I(h, {
2156
2240
  ai: "center",
2157
2241
  flex1: !0,
2158
- children: /* @__PURE__ */ L(v, {
2242
+ children: /* @__PURE__ */ I(y, {
2159
2243
  type: "number",
2160
2244
  variant: "compact",
2161
2245
  placeholder: i.filterToPlaceholder,
2162
- value: m,
2163
- onChange: x,
2246
+ value: p,
2247
+ onChange: b,
2164
2248
  width: "fit",
2165
- step: h?.step,
2249
+ step: m?.step,
2166
2250
  b: 0,
2167
2251
  bgColor: "transparent",
2168
2252
  focus: { outline: 0 },
@@ -2172,18 +2256,18 @@ function bt({ column: e }) {
2172
2256
  }
2173
2257
  })
2174
2258
  })]
2175
- }) : /* @__PURE__ */ R(p, {
2259
+ }) : /* @__PURE__ */ L(h, {
2176
2260
  ai: "center",
2177
2261
  position: "relative",
2178
2262
  flex1: !0,
2179
- children: [/* @__PURE__ */ L(v, {
2263
+ children: [/* @__PURE__ */ I(y, {
2180
2264
  type: "number",
2181
2265
  variant: "compact",
2182
- placeholder: h?.placeholder ?? i.filterValuePlaceholder,
2266
+ placeholder: m?.placeholder ?? i.filterValuePlaceholder,
2183
2267
  value: f,
2184
- onChange: y,
2268
+ onChange: v,
2185
2269
  width: "fit",
2186
- step: h?.step,
2270
+ step: m?.step,
2187
2271
  b: 0,
2188
2272
  bgColor: "transparent",
2189
2273
  focus: { outline: 0 },
@@ -2191,20 +2275,24 @@ function bt({ column: e }) {
2191
2275
  tabIndex: -1,
2192
2276
  "aria-label": i.filterColumn(r)
2193
2277
  }
2194
- }), f !== "" && /* @__PURE__ */ L(vt, {
2278
+ }), f !== "" && /* @__PURE__ */ I(Mt, {
2195
2279
  label: i.clearFilter(r),
2196
2280
  onClear: C
2197
2281
  })]
2198
2282
  })]
2199
2283
  });
2200
2284
  }
2201
- function xt({ column: e }) {
2202
- let { currentFilter: t } = e, { componentName: n } = e.grid, i = String(e.header ?? e.key), a = e.grid.localeText, o = t?.type === "multiselect" ? t.values : [], s = e.filterOptions, c = O((t, n) => {
2285
+ function Ft({ column: e }) {
2286
+ let t = Te(!0);
2287
+ return t ? /* @__PURE__ */ I(t.DateFilter, { column: e }) : null;
2288
+ }
2289
+ function It({ column: e }) {
2290
+ let { currentFilter: t } = e, { componentName: n } = e.grid, r = String(e.header ?? e.key), a = e.grid.localeText, o = t?.type === "multiselect" ? t.values : [], s = e.filterOptions, c = O((t, n) => {
2203
2291
  e.setMultiselectFilter(n);
2204
2292
  }, [e]);
2205
- return /* @__PURE__ */ L(p, {
2293
+ return /* @__PURE__ */ I(h, {
2206
2294
  component: `${n}.filter.cell.input`,
2207
- children: /* @__PURE__ */ R(b, {
2295
+ children: /* @__PURE__ */ L(S, {
2208
2296
  multiple: !0,
2209
2297
  showCheckbox: !0,
2210
2298
  isSearchable: !0,
@@ -2219,17 +2307,17 @@ function xt({ column: e }) {
2219
2307
  focus: { outline: 0 },
2220
2308
  props: {
2221
2309
  tabIndex: -1,
2222
- "aria-label": a.filterColumn(i)
2310
+ "aria-label": a.filterColumn(r)
2223
2311
  },
2224
2312
  children: [
2225
- /* @__PURE__ */ L(b.Display, { children: (t) => t.length === 0 ? /* @__PURE__ */ L(r, {
2313
+ /* @__PURE__ */ I(S.Display, { children: (t) => t.length === 0 ? /* @__PURE__ */ I(i, {
2226
2314
  tag: "span",
2227
2315
  color: "gray-400",
2228
2316
  children: e.filterConfig?.placeholder ?? a.filterSelectPlaceholder
2229
2317
  }) : t.length === 1 ? s.find((e) => e.value === t[0])?.label ?? String(t[0]) : `${t.length} selected` }),
2230
- /* @__PURE__ */ L(b.Unselect, { children: a.filterSelectClear }),
2231
- /* @__PURE__ */ L(b.SelectAll, { children: a.filterSelectAll }),
2232
- s.map((e) => /* @__PURE__ */ L(b.Item, {
2318
+ /* @__PURE__ */ I(S.Unselect, { children: a.filterSelectClear }),
2319
+ /* @__PURE__ */ I(S.SelectAll, { children: a.filterSelectAll }),
2320
+ s.map((e) => /* @__PURE__ */ I(S.Item, {
2233
2321
  value: e.value,
2234
2322
  ai: "center",
2235
2323
  gap: 2,
@@ -2239,21 +2327,22 @@ function xt({ column: e }) {
2239
2327
  })
2240
2328
  });
2241
2329
  }
2242
- function St(e) {
2330
+ function Lt(e) {
2243
2331
  let { column: t } = e, n = t.filterConfig;
2244
2332
  if (!n) return null;
2245
2333
  switch (n.type) {
2246
- case "number": return /* @__PURE__ */ L(bt, { column: t });
2247
- case "multiselect": return /* @__PURE__ */ L(xt, { column: t });
2248
- default: return /* @__PURE__ */ L(yt, { column: t });
2334
+ case "number": return /* @__PURE__ */ I(Pt, { column: t });
2335
+ case "multiselect": return /* @__PURE__ */ I(It, { column: t });
2336
+ case "date": return /* @__PURE__ */ I(Ft, { column: t });
2337
+ default: return /* @__PURE__ */ I(Nt, { column: t });
2249
2338
  }
2250
2339
  }
2251
- St.displayName = "DataGridColumnFilter";
2340
+ Lt.displayName = "DataGridColumnFilter";
2252
2341
  //#endregion
2253
2342
  //#region src/components/dataGrid/components/dataGridFilterCell.tsx
2254
- function Ct(e) {
2255
- let { column: t, grid: n, row: r, columnIndex: i } = e, { widthVarName: a, inlineStartVarName: o, inlineEndVarName: s, filterable: c } = t, { isStartPinned: l, isEndPinned: u, isPinned: d, isFirstStartPinned: f, isLastStartPinned: m, isFirstEndPinned: h, isLastEndPinned: g } = t.pinFlags.value, { ref: _, tabIndex: v, onFocus: y } = B(z(), r, i), b = t.isGrouping || t.isRowNumber || t.isRowSelection;
2256
- return /* @__PURE__ */ L(p, {
2343
+ function Rt(e) {
2344
+ let { column: t, grid: n, row: r, columnIndex: i } = e, { widthVarName: a, inlineStartVarName: o, inlineEndVarName: s, filterable: c } = t, { isStartPinned: l, isEndPinned: u, isPinned: d, isFirstStartPinned: f, isLastStartPinned: p, isFirstEndPinned: m, isLastEndPinned: g } = t.pinFlags.value, { ref: _, tabIndex: v, onFocus: y } = ve(z(), r, i), b = t.isGrouping || t.isRowNumber || t.isRowSelection;
2345
+ return /* @__PURE__ */ I(h, {
2257
2346
  ref: _,
2258
2347
  component: `${n.componentName}.filter.cell`,
2259
2348
  props: {
@@ -2265,8 +2354,8 @@ function Ct(e) {
2265
2354
  variant: {
2266
2355
  isPinned: d,
2267
2356
  isFirstStartPinned: f,
2268
- isLastStartPinned: m,
2269
- isFirstEndPinned: h,
2357
+ isLastStartPinned: p,
2358
+ isFirstEndPinned: m,
2270
2359
  isLastEndPinned: g
2271
2360
  },
2272
2361
  px: 2,
@@ -2275,23 +2364,23 @@ function Ct(e) {
2275
2364
  insetInlineStart: l ? `var(${o})` : void 0,
2276
2365
  insetInlineEnd: u ? `var(${s})` : void 0
2277
2366
  },
2278
- children: !b && c && /* @__PURE__ */ L(St, { column: t })
2367
+ children: !b && c && /* @__PURE__ */ I(Lt, { column: t })
2279
2368
  });
2280
2369
  }
2281
- Ct.displayName = "DataGridFilterCell";
2370
+ Rt.displayName = "DataGridFilterCell";
2282
2371
  //#endregion
2283
2372
  //#region src/components/dataGrid/components/dataGridFilterRow.tsx
2284
- function wt(e) {
2373
+ function zt(e) {
2285
2374
  let { grid: t } = e;
2286
2375
  if (!t.filter.hasFilterableColumns) return null;
2287
2376
  let n = t.headerRows.value.length;
2288
- return /* @__PURE__ */ L(r, {
2377
+ return /* @__PURE__ */ I(i, {
2289
2378
  display: "contents",
2290
2379
  props: {
2291
2380
  role: "row",
2292
2381
  "aria-rowindex": n + 1
2293
2382
  },
2294
- children: t.columns.value.visibleLeafs.map((e, r) => /* @__PURE__ */ L(Ct, {
2383
+ children: t.columns.value.visibleLeafs.map((e, r) => /* @__PURE__ */ I(Rt, {
2295
2384
  column: e,
2296
2385
  grid: t,
2297
2386
  row: n,
@@ -2299,25 +2388,25 @@ function wt(e) {
2299
2388
  }, e.uniqueKey))
2300
2389
  });
2301
2390
  }
2302
- wt.displayName = "DataGridFilterRow";
2391
+ zt.displayName = "DataGridFilterRow";
2303
2392
  //#endregion
2304
2393
  //#region src/icons/sortIcon.tsx
2305
- function Tt(e) {
2306
- return /* @__PURE__ */ L(d, {
2394
+ function Bt(e) {
2395
+ return /* @__PURE__ */ I(f, {
2307
2396
  viewBox: "0 0 24 24",
2308
2397
  width: "1.5rem",
2309
2398
  ...e,
2310
- children: /* @__PURE__ */ L(u, { d: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" })
2399
+ children: /* @__PURE__ */ I(d, { d: "M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" })
2311
2400
  });
2312
2401
  }
2313
2402
  //#endregion
2314
2403
  //#region src/icons/dotsIcon.tsx
2315
- function Et(e) {
2316
- return /* @__PURE__ */ L(d, {
2404
+ function Vt(e) {
2405
+ return /* @__PURE__ */ I(f, {
2317
2406
  viewBox: "0 0 16 16",
2318
2407
  width: "18",
2319
2408
  ...e,
2320
- children: /* @__PURE__ */ L(u, {
2409
+ children: /* @__PURE__ */ I(d, {
2321
2410
  strokeWidth: 4,
2322
2411
  d: "M7.936 12.128a.936.936 0 1 1 0 1.872.936.936 0 0 1 0-1.872ZM7.936 7.052a.936.936 0 1 1 0 1.873.936.936 0 0 1 0-1.873ZM7.936 1.977a.936.936 0 1 1 0 1.872.936.936 0 0 1 0-1.872Z"
2323
2412
  })
@@ -2325,127 +2414,127 @@ function Et(e) {
2325
2414
  }
2326
2415
  //#endregion
2327
2416
  //#region src/icons/groupingIcon.tsx
2328
- function Dt(e) {
2329
- return /* @__PURE__ */ L(d, {
2417
+ function Ht(e) {
2418
+ return /* @__PURE__ */ I(f, {
2330
2419
  viewBox: "0 0 24 24",
2331
2420
  width: "1.5rem",
2332
2421
  ...e,
2333
- children: /* @__PURE__ */ L(u, { d: "M3 5h8v2H3V5zm0 6h8v2H3v-2zm0 6h8v2H3v-2zm12-12h6v6h-6V5zm1 1v4h4V6h-4zm-1 7h6v6h-6v-6zm1 1v4h4v-4h-4z" })
2422
+ children: /* @__PURE__ */ I(d, { d: "M3 5h8v2H3V5zm0 6h8v2H3v-2zm0 6h8v2H3v-2zm12-12h6v6h-6V5zm1 1v4h4V6h-4zm-1 7h6v6h-6v-6zm1 1v4h4v-4h-4z" })
2334
2423
  });
2335
2424
  }
2336
2425
  //#endregion
2337
2426
  //#region src/icons/pinIcon.tsx
2338
- function Ot(e) {
2339
- return /* @__PURE__ */ L(d, {
2427
+ function Ut(e) {
2428
+ return /* @__PURE__ */ I(f, {
2340
2429
  viewBox: "0 0 1024 1024",
2341
2430
  width: "1.5rem",
2342
2431
  ...e,
2343
- children: /* @__PURE__ */ L(u, { d: "M31.997 1023.957a31.699 31.699 0 0 1-22.611-9.386C3.328 1008.556 0 1000.493 0 991.96s3.328-16.596 9.386-22.611L328.25 650.484l-152.52-152.52a95.907 95.907 0 0 1-25.087-92.152 95.31 95.31 0 0 1 44.327-58.62l.896-.512a353.464 353.464 0 0 1 176.156-47.398c20.137 0 40.36 1.749 60.283 5.205L597.71 44.54A95.224 95.224 0 0 1 678.685.085c25.64 0 49.745 9.983 67.877 28.073l249.195 249.195a95.224 95.224 0 0 1 25.897 88.74 95.139 95.139 0 0 1-42.152 60.154L719.513 591.695a352.227 352.227 0 0 1-42.663 237.292A95.395 95.395 0 0 1 594 876.514a95.523 95.523 0 0 1-67.963-28.2L373.43 695.706 54.61 1014.614a31.912 31.912 0 0 1-22.612 9.343zm340.025-660.68c-50.64 0-100.685 13.566-144.798 39.207a31.57 31.57 0 0 0-14.676 19.497 31.699 31.699 0 0 0 8.362 30.675L571.344 803.09c6.059 6.059 14.122 9.386 22.697 9.386a31.699 31.699 0 0 0 27.56-15.785 287.421 287.421 0 0 0 31.06-212.676 31.997 31.997 0 0 1 13.907-34.471l278.59-177.266a31.57 31.57 0 0 0 14.037-20.051 31.699 31.699 0 0 0-8.618-29.566l-249.28-249.28a31.912 31.912 0 0 0-49.618 5.418l-177.308 278.59a31.827 31.827 0 0 1-34.472 13.908 293.778 293.778 0 0 0-67.877-8.02z" })
2432
+ children: /* @__PURE__ */ I(d, { d: "M31.997 1023.957a31.699 31.699 0 0 1-22.611-9.386C3.328 1008.556 0 1000.493 0 991.96s3.328-16.596 9.386-22.611L328.25 650.484l-152.52-152.52a95.907 95.907 0 0 1-25.087-92.152 95.31 95.31 0 0 1 44.327-58.62l.896-.512a353.464 353.464 0 0 1 176.156-47.398c20.137 0 40.36 1.749 60.283 5.205L597.71 44.54A95.224 95.224 0 0 1 678.685.085c25.64 0 49.745 9.983 67.877 28.073l249.195 249.195a95.224 95.224 0 0 1 25.897 88.74 95.139 95.139 0 0 1-42.152 60.154L719.513 591.695a352.227 352.227 0 0 1-42.663 237.292A95.395 95.395 0 0 1 594 876.514a95.523 95.523 0 0 1-67.963-28.2L373.43 695.706 54.61 1014.614a31.912 31.912 0 0 1-22.612 9.343zm340.025-660.68c-50.64 0-100.685 13.566-144.798 39.207a31.57 31.57 0 0 0-14.676 19.497 31.699 31.699 0 0 0 8.362 30.675L571.344 803.09c6.059 6.059 14.122 9.386 22.697 9.386a31.699 31.699 0 0 0 27.56-15.785 287.421 287.421 0 0 0 31.06-212.676 31.997 31.997 0 0 1 13.907-34.471l278.59-177.266a31.57 31.57 0 0 0 14.037-20.051 31.699 31.699 0 0 0-8.618-29.566l-249.28-249.28a31.912 31.912 0 0 0-49.618 5.418l-177.308 278.59a31.827 31.827 0 0 1-34.472 13.908 293.778 293.778 0 0 0-67.877-8.02z" })
2344
2433
  });
2345
2434
  }
2346
2435
  //#endregion
2347
2436
  //#region src/components/dataGrid/components/dataGridHeaderCellContextMenu.tsx
2348
- function kt(e) {
2437
+ function Wt(e) {
2349
2438
  let { side: t, left: n, right: r } = e;
2350
- return /* @__PURE__ */ R(I, { children: [/* @__PURE__ */ L(x, {
2439
+ return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(C, {
2351
2440
  rtl: { display: "none" },
2352
2441
  children: t === "start" ? n : r
2353
- }), /* @__PURE__ */ L(x, {
2442
+ }), /* @__PURE__ */ I(C, {
2354
2443
  ltr: { display: "none" },
2355
2444
  children: t === "start" ? r : n
2356
2445
  })] });
2357
2446
  }
2358
- function At(e) {
2359
- let { column: t } = e, { grid: i, isEndAligned: o, header: u, key: d } = t, m = t.headerCell, _ = String(u ?? d), v = i.localeText, y = l("datagrid-column-menu"), [b, S] = P(!1), C = N(null), w = N(null), E = N(!1), ee = o ? 3 : void 0, D = o ? void 0 : 3, k = te(() => {
2360
- let e = (e) => /* @__PURE__ */ L(x, {
2361
- component: `${i.componentName}.header.cell.contextMenu.tooltip.item.icon`,
2447
+ function Gt(e) {
2448
+ let { column: t } = e, { grid: n, isEndAligned: a, header: s, key: d } = t, f = t.headerCell, m = String(s ?? d), g = n.localeText, y = u("datagrid-column-menu"), [b, x] = P(!1), S = N(null), w = N(null), T = N(!1), ee = a ? 3 : void 0, ne = a ? void 0 : 3, E = M(() => {
2449
+ let e = (e) => /* @__PURE__ */ I(C, {
2450
+ component: `${n.componentName}.header.cell.contextMenu.tooltip.item.icon`,
2362
2451
  children: e
2363
- }), n = (t) => e(/* @__PURE__ */ L(Tt, {
2452
+ }), r = (t) => e(/* @__PURE__ */ I(Bt, {
2364
2453
  width: "100%",
2365
2454
  fill: "currentColor",
2366
2455
  rotate: t
2367
- })), a = (t, n) => e(/* @__PURE__ */ L(Ot, {
2456
+ })), a = (t, n) => e(/* @__PURE__ */ I(Ut, {
2368
2457
  width: "100%",
2369
2458
  fill: "currentColor",
2370
2459
  rotate: t,
2371
2460
  rtl: { rotate: n }
2372
- })), o = e(/* @__PURE__ */ L(Dt, {
2461
+ })), o = e(/* @__PURE__ */ I(Ht, {
2373
2462
  width: "100%",
2374
2463
  fill: "currentColor"
2375
- })), s = /* @__PURE__ */ L(r, { width: 4 });
2464
+ })), s = /* @__PURE__ */ I(i, { width: 4 });
2376
2465
  return [
2377
2466
  [
2378
- m.canSortAsc && {
2467
+ f.canSortAsc && {
2379
2468
  key: "sort-asc",
2380
- icon: n(),
2381
- label: v.sortAscending,
2382
- text: v.sortAscending,
2469
+ icon: r(),
2470
+ label: g.sortAscending,
2471
+ text: g.sortAscending,
2383
2472
  run: () => t.sortColumn("ASC")
2384
2473
  },
2385
- m.canSortDesc && {
2474
+ f.canSortDesc && {
2386
2475
  key: "sort-desc",
2387
- icon: n(180),
2388
- label: v.sortDescending,
2389
- text: v.sortDescending,
2476
+ icon: r(180),
2477
+ label: g.sortDescending,
2478
+ text: g.sortDescending,
2390
2479
  run: () => t.sortColumn("DESC")
2391
2480
  },
2392
- m.canClearSort && {
2481
+ f.canClearSort && {
2393
2482
  key: "sort-clear",
2394
2483
  icon: s,
2395
- label: v.clearSort,
2396
- text: v.clearSort,
2484
+ label: g.clearSort,
2485
+ text: g.clearSort,
2397
2486
  run: () => t.sortColumn(void 0)
2398
2487
  }
2399
2488
  ],
2400
2489
  [
2401
- m.canPinStart && {
2490
+ f.canPinStart && {
2402
2491
  key: "pin-start",
2403
2492
  icon: a(0, -90),
2404
- label: /* @__PURE__ */ L(kt, {
2493
+ label: /* @__PURE__ */ I(Wt, {
2405
2494
  side: "start",
2406
- left: v.pinLeft,
2407
- right: v.pinRight
2495
+ left: g.pinLeft,
2496
+ right: g.pinRight
2408
2497
  }),
2409
- text: v.pinLeft,
2498
+ text: g.pinLeft,
2410
2499
  run: () => t.pinColumn("START")
2411
2500
  },
2412
- m.canPinEnd && {
2501
+ f.canPinEnd && {
2413
2502
  key: "pin-end",
2414
2503
  icon: a(-90, 0),
2415
- label: /* @__PURE__ */ L(kt, {
2504
+ label: /* @__PURE__ */ I(Wt, {
2416
2505
  side: "end",
2417
- left: v.pinLeft,
2418
- right: v.pinRight
2506
+ left: g.pinLeft,
2507
+ right: g.pinRight
2419
2508
  }),
2420
- text: v.pinRight,
2509
+ text: g.pinRight,
2421
2510
  run: () => t.pinColumn("END")
2422
2511
  },
2423
- m.canUnpin && {
2512
+ f.canUnpin && {
2424
2513
  key: "unpin",
2425
2514
  icon: s,
2426
- label: v.unpin,
2427
- text: v.unpin,
2515
+ label: g.unpin,
2516
+ text: g.unpin,
2428
2517
  run: () => t.pinColumn()
2429
2518
  }
2430
2519
  ],
2431
- [m.canGroupBy && {
2520
+ [f.canGroupBy && {
2432
2521
  key: "group",
2433
2522
  icon: o,
2434
- label: /* @__PURE__ */ L(r, {
2523
+ label: /* @__PURE__ */ I(i, {
2435
2524
  textWrap: "nowrap",
2436
- children: v.groupBy(_)
2525
+ children: g.groupBy(m)
2437
2526
  }),
2438
- text: v.groupBy(_),
2527
+ text: g.groupBy(m),
2439
2528
  run: t.toggleGrouping
2440
- }, m.canUnGroupAll && {
2529
+ }, f.canUnGroupAll && {
2441
2530
  key: "ungroup",
2442
2531
  icon: o,
2443
- label: /* @__PURE__ */ L(r, {
2532
+ label: /* @__PURE__ */ I(i, {
2444
2533
  textWrap: "nowrap",
2445
- children: v.ungroupAll
2534
+ children: g.ungroupAll
2446
2535
  }),
2447
- text: v.ungroupAll,
2448
- run: i.unGroupAll
2536
+ text: g.ungroupAll,
2537
+ run: n.unGroupAll
2449
2538
  }]
2450
2539
  ].map((e) => e.filter((e) => e !== !1)).filter((e) => e.length > 0).flatMap((e, t) => e.map((e, n) => ({
2451
2540
  ...e,
@@ -2453,89 +2542,89 @@ function At(e) {
2453
2542
  })));
2454
2543
  }, [
2455
2544
  t,
2456
- _,
2457
- i,
2458
2545
  m,
2459
- v
2460
- ]), A = O((e = !0) => {
2461
- E.current = !1, S(!1), e && C.current?.focus();
2462
- }, []), j = c({
2463
- count: k.length,
2464
- textOf: (e) => k[e]?.text ?? "",
2546
+ n,
2547
+ f,
2548
+ g
2549
+ ]), D = O((e = !0) => {
2550
+ T.current = !1, x(!1), e && S.current?.focus();
2551
+ }, []), k = l({
2552
+ count: E.length,
2553
+ textOf: (e) => E[e]?.text ?? "",
2465
2554
  onSelect: (e) => {
2466
- k[e]?.run(), A();
2555
+ E[e]?.run(), D();
2467
2556
  }
2468
2557
  });
2469
- s({
2558
+ c({
2470
2559
  enabled: b,
2471
- inside: [C, w],
2472
- onDismiss: () => A()
2473
- }), a({
2560
+ inside: [S, w],
2561
+ onDismiss: () => D()
2562
+ }), o({
2474
2563
  enabled: b,
2475
- returnTo: C
2564
+ returnTo: S
2476
2565
  });
2477
- let M = j.setActiveIndex, F = j.activeItem, I = O(() => {
2478
- M(0, { reason: "programmatic" }), E.current = !0, S(!0);
2479
- }, [M]);
2480
- return n(() => {
2481
- if (!E.current) return;
2482
- let e = F();
2483
- e && (E.current = !1, e.focus());
2484
- }), /* @__PURE__ */ R(p, {
2566
+ let A = k.setActiveIndex, j = k.activeItem, re = O(() => {
2567
+ A(0, { reason: "programmatic" }), T.current = !0, x(!0);
2568
+ }, [A]);
2569
+ return r(() => {
2570
+ if (!T.current) return;
2571
+ let e = j();
2572
+ e && (T.current = !1, e.focus());
2573
+ }), /* @__PURE__ */ L(h, {
2485
2574
  position: "absolute",
2486
2575
  insetStart: ee,
2487
- insetEnd: D,
2576
+ insetEnd: ne,
2488
2577
  top: "1/2",
2489
2578
  translateY: -3,
2490
2579
  ai: "center",
2491
- children: [/* @__PURE__ */ L(f, {
2492
- ref: C,
2493
- component: `${i.componentName}.header.cell.contextMenu`,
2494
- onClick: () => b ? A(!1) : I(),
2495
- variant: m.contextMenuButtonVariant,
2580
+ children: [/* @__PURE__ */ I(p, {
2581
+ ref: S,
2582
+ component: `${n.componentName}.header.cell.contextMenu`,
2583
+ onClick: () => b ? D(!1) : re(),
2584
+ variant: f.contextMenuButtonVariant,
2496
2585
  type: "button",
2497
2586
  props: {
2498
2587
  tabIndex: -1,
2499
- "aria-label": v.columnOptions(_),
2588
+ "aria-label": g.columnOptions(m),
2500
2589
  "aria-haspopup": "menu",
2501
2590
  "aria-expanded": b,
2502
2591
  "aria-controls": b ? y : void 0
2503
2592
  },
2504
- children: /* @__PURE__ */ L(x, {
2505
- component: `${i.componentName}.header.cell.contextMenu.icon`,
2506
- children: /* @__PURE__ */ L(Et, { fill: "currentColor" })
2593
+ children: /* @__PURE__ */ I(C, {
2594
+ component: `${n.componentName}.header.cell.contextMenu.icon`,
2595
+ children: /* @__PURE__ */ I(Vt, { fill: "currentColor" })
2507
2596
  })
2508
- }), /* @__PURE__ */ L(g, {
2597
+ }), /* @__PURE__ */ I(v, {
2509
2598
  present: b,
2510
- children: (e) => /* @__PURE__ */ L(h, {
2511
- component: `${i.componentName}.header.cell.contextMenu.tooltip`,
2599
+ children: (e) => /* @__PURE__ */ I(_, {
2600
+ component: `${n.componentName}.header.cell.contextMenu.tooltip`,
2512
2601
  variant: { closed: !e.present },
2513
2602
  ref: w,
2514
2603
  contentRef: e.ref,
2515
- anchor: C,
2604
+ anchor: S,
2516
2605
  side: "bottom",
2517
2606
  align: "end",
2518
2607
  matchWidth: !1,
2519
2608
  id: y,
2520
2609
  props: {
2521
2610
  role: "menu",
2522
- "aria-label": v.columnOptions(_),
2523
- onKeyDown: j.onKeyDown,
2611
+ "aria-label": g.columnOptions(m),
2612
+ onKeyDown: k.onKeyDown,
2524
2613
  ...e.props
2525
2614
  },
2526
- children: k.map((e, t) => {
2527
- let { ref: n, tabIndex: a, onFocus: o } = j.itemProps(t);
2528
- return /* @__PURE__ */ R(T, { children: [e.startsSection && /* @__PURE__ */ L(r, {
2615
+ children: E.map((e, t) => {
2616
+ let { ref: r, tabIndex: a, onFocus: o } = k.itemProps(t);
2617
+ return /* @__PURE__ */ L(te, { children: [e.startsSection && /* @__PURE__ */ I(i, {
2529
2618
  bb: 1,
2530
2619
  my: 2,
2531
2620
  borderColor: "gray-300",
2532
- component: `${i.componentName}.header.cell.contextMenu.tooltip.item.separator`
2533
- }), /* @__PURE__ */ R(f, {
2534
- component: `${i.componentName}.header.cell.contextMenu.tooltip.item`,
2535
- ref: n,
2621
+ component: `${n.componentName}.header.cell.contextMenu.tooltip.item.separator`
2622
+ }), /* @__PURE__ */ L(p, {
2623
+ component: `${n.componentName}.header.cell.contextMenu.tooltip.item`,
2624
+ ref: r,
2536
2625
  type: "button",
2537
2626
  onClick: (t) => {
2538
- t.stopPropagation(), e.run(), A();
2627
+ t.stopPropagation(), e.run(), D();
2539
2628
  },
2540
2629
  props: {
2541
2630
  role: "menuitem",
@@ -2549,20 +2638,20 @@ function At(e) {
2549
2638
  })]
2550
2639
  });
2551
2640
  }
2552
- At.displayName = "DataGridHeaderCellContextMenu";
2641
+ Gt.displayName = "DataGridHeaderCellContextMenu";
2553
2642
  //#endregion
2554
2643
  //#region src/components/dataGrid/components/dataGridHeaderCellResizer.tsx
2555
- var Z = (e) => "touches" in e ? e.touches[0]?.pageX ?? 0 : e.pageX, jt = 16, Mt = 150;
2556
- function Nt(e) {
2557
- let { column: t, controls: n } = e, i = t.grid.resizerStyle, a = t.headerCell, o = O((e) => {
2644
+ var Kt = (e) => "touches" in e ? e.touches[0]?.pageX ?? 0 : e.pageX, qt = 16, Jt = 150;
2645
+ function Yt(e) {
2646
+ let { column: t, controls: n } = e, r = t.grid.resizerStyle, a = t.headerCell, o = O((e) => {
2558
2647
  let { grid: n } = t;
2559
- e.type === "mousedown" && e.preventDefault(), t.beginResize(Z(e.nativeEvent));
2560
- let r = new AbortController(), { signal: i } = r, a = 0, o = Z(e.nativeEvent), s = () => {
2648
+ e.type === "mousedown" && e.preventDefault(), t.beginResize(Kt(e.nativeEvent));
2649
+ let r = new AbortController(), { signal: i } = r, a = 0, o = Kt(e.nativeEvent), s = () => {
2561
2650
  t.applyResize(o), n.paintSizes();
2562
2651
  }, c = n.resizeMode === "instant" ? (e) => {
2563
- o = Z(e), s();
2652
+ o = Kt(e), s();
2564
2653
  } : (e) => {
2565
- o = Z(e), a ||= requestAnimationFrame(() => {
2654
+ o = Kt(e), a ||= requestAnimationFrame(() => {
2566
2655
  a = 0, s();
2567
2656
  });
2568
2657
  }, l = () => {
@@ -2587,7 +2676,7 @@ function Nt(e) {
2587
2676
  let d = O((e) => {
2588
2677
  switch (e.key) {
2589
2678
  case "ArrowRight":
2590
- t.moveResizer(jt);
2679
+ t.moveResizer(qt);
2591
2680
  break;
2592
2681
  case "ArrowLeft":
2593
2682
  t.moveResizer(-16);
@@ -2600,14 +2689,14 @@ function Nt(e) {
2600
2689
  break;
2601
2690
  default: return;
2602
2691
  }
2603
- e.preventDefault(), l(), clearTimeout(s.current), s.current = setTimeout(u, Mt);
2692
+ e.preventDefault(), l(), clearTimeout(s.current), s.current = setTimeout(u, Jt);
2604
2693
  }, [
2605
2694
  t,
2606
2695
  u,
2607
2696
  a,
2608
2697
  l
2609
2698
  ]), { isAtGridEnd: f } = a;
2610
- return /* @__PURE__ */ L(p, {
2699
+ return /* @__PURE__ */ I(h, {
2611
2700
  height: "fit",
2612
2701
  ai: "center",
2613
2702
  position: "absolute",
@@ -2615,7 +2704,7 @@ function Nt(e) {
2615
2704
  insetStart: t.pin === "END" ? -.75 : void 0,
2616
2705
  zIndex: 1,
2617
2706
  py: 3,
2618
- children: /* @__PURE__ */ L(r, {
2707
+ children: /* @__PURE__ */ I(i, {
2619
2708
  cursor: "col-resize",
2620
2709
  px: f ? void 0 : .75,
2621
2710
  ps: f ? 1.5 : void 0,
@@ -2626,10 +2715,10 @@ function Nt(e) {
2626
2715
  onMouseDown: o,
2627
2716
  onTouchStart: o
2628
2717
  },
2629
- children: /* @__PURE__ */ L(r, {
2718
+ children: /* @__PURE__ */ I(i, {
2630
2719
  component: `${t.grid.componentName}.header.cell.resizer`,
2631
- opacity: i === "visible" ? void 0 : 0,
2632
- group: i === "hover" ? { "header-cell/hover": { opacity: 1 } } : void 0,
2720
+ opacity: r === "visible" ? void 0 : 0,
2721
+ group: r === "hover" ? { "header-cell/hover": { opacity: 1 } } : void 0,
2633
2722
  props: {
2634
2723
  role: "separator",
2635
2724
  "aria-label": a.resizerLabel,
@@ -2647,13 +2736,13 @@ function Nt(e) {
2647
2736
  })
2648
2737
  });
2649
2738
  }
2650
- Nt.displayName = "DataGridHeaderCellResizer";
2739
+ Yt.displayName = "DataGridHeaderCellResizer";
2651
2740
  //#endregion
2652
2741
  //#region src/components/dataGrid/components/dataGridHeaderCell.tsx
2653
- function Pt(e) {
2654
- let { column: t, row: n, columnIndex: i } = e, { grid: a } = t, { isStartPinned: o, isEndPinned: s } = t.pinFlags.value, c = t.headerCell, { isSortable: u, showResizer: d, showContextMenu: f, paddingStart: h, paddingEnd: g } = c, { ref: v, tabIndex: y, onFocus: b } = B(z(), n, i), x = l("datagrid-columnheader"), S = N(null), C = O(() => {
2742
+ function Xt(e) {
2743
+ let { column: t, row: n, columnIndex: r } = e, { grid: a } = t, { isStartPinned: o, isEndPinned: s } = t.pinFlags.value, c = t.headerCell, { isSortable: l, showResizer: d, showContextMenu: f, paddingStart: p, paddingEnd: _ } = c, { ref: v, tabIndex: y, onFocus: b } = ve(z(), n, r), x = u("datagrid-columnheader"), S = N(null), C = O(() => {
2655
2744
  a.toggleSelectAllRows();
2656
- }, [a]), w = t.isRowSelection ? /* @__PURE__ */ L(m, {
2745
+ }, [a]), w = t.isRowSelection ? /* @__PURE__ */ I(g, {
2657
2746
  variant: "datagrid",
2658
2747
  m: 1,
2659
2748
  indeterminate: a.someRowsSelected && !a.allRowsSelected,
@@ -2663,11 +2752,11 @@ function Pt(e) {
2663
2752
  tabIndex: -1,
2664
2753
  "aria-label": a.localeText.selectAllRows
2665
2754
  }
2666
- }) : c.hiddenLabel ? /* @__PURE__ */ L(_, {
2755
+ }) : c.hiddenLabel ? /* @__PURE__ */ I(m, {
2667
2756
  tag: "span",
2668
2757
  children: c.hiddenLabel
2669
2758
  }) : c.label;
2670
- return /* @__PURE__ */ L(p, {
2759
+ return /* @__PURE__ */ I(h, {
2671
2760
  ref: v,
2672
2761
  id: x,
2673
2762
  props: {
@@ -2678,9 +2767,9 @@ function Pt(e) {
2678
2767
  "aria-sort": c.ariaSort,
2679
2768
  tabIndex: y,
2680
2769
  onFocus: b,
2681
- onPointerDown: u ? (e) => S.current = e.target : void 0,
2682
- onClick: u ? (e) => {
2683
- Y.isSortPress(e.currentTarget, S.current ?? e.target) && t.sortColumn(), S.current = null;
2770
+ onPointerDown: l ? (e) => S.current = e.target : void 0,
2771
+ onClick: l ? (e) => {
2772
+ X.isSortPress(e.currentTarget, S.current ?? e.target) && t.sortColumn(), S.current = null;
2684
2773
  } : void 0
2685
2774
  },
2686
2775
  className: "header-cell",
@@ -2693,29 +2782,29 @@ function Pt(e) {
2693
2782
  insetInlineStart: o ? `var(${t.inlineStartVarName})` : void 0,
2694
2783
  insetInlineEnd: s ? `var(${t.inlineEndVarName})` : void 0
2695
2784
  },
2696
- children: /* @__PURE__ */ R(I, { children: [
2697
- /* @__PURE__ */ L(p, {
2785
+ children: /* @__PURE__ */ L(F, { children: [
2786
+ /* @__PURE__ */ I(h, {
2698
2787
  width: "fit",
2699
2788
  height: "fit",
2700
2789
  jc: t.align,
2701
- children: /* @__PURE__ */ R(p, {
2790
+ children: /* @__PURE__ */ L(h, {
2702
2791
  overflow: "hidden",
2703
2792
  position: t.isLeaf ? void 0 : "sticky",
2704
2793
  ai: "center",
2705
2794
  transition: "none",
2706
- ps: h,
2707
- pe: g,
2795
+ ps: p,
2796
+ pe: _,
2708
2797
  style: { insetInlineStart: t.pin ? void 0 : `var(${a.inlineStartEdgeVarName})` },
2709
2798
  children: [
2710
- /* @__PURE__ */ L(r, {
2799
+ /* @__PURE__ */ I(i, {
2711
2800
  overflow: "hidden",
2712
2801
  textOverflow: "ellipsis",
2713
2802
  textWrap: "nowrap",
2714
2803
  children: w
2715
2804
  }),
2716
- c.isSorted && /* @__PURE__ */ L(r, {
2805
+ c.isSorted && /* @__PURE__ */ I(i, {
2717
2806
  ps: (t.inlineWidth ?? 0) < 58 ? 0 : 2,
2718
- children: /* @__PURE__ */ L(Tt, {
2807
+ children: /* @__PURE__ */ I(Bt, {
2719
2808
  width: "16px",
2720
2809
  rotate: c.sortDirection === "ASC" ? 0 : 180,
2721
2810
  transition: "transform",
@@ -2725,37 +2814,37 @@ function Pt(e) {
2725
2814
  fill: "currentColor"
2726
2815
  })
2727
2816
  }),
2728
- f && /* @__PURE__ */ L(r, { minWidth: t.isEndAligned ? 4 : 10 })
2817
+ f && /* @__PURE__ */ I(i, { minWidth: t.isEndAligned ? 4 : 10 })
2729
2818
  ]
2730
2819
  })
2731
2820
  }),
2732
- d && /* @__PURE__ */ L(Nt, {
2821
+ d && /* @__PURE__ */ I(Yt, {
2733
2822
  column: t,
2734
2823
  controls: x
2735
2824
  }),
2736
- f && /* @__PURE__ */ L(At, { column: t })
2825
+ f && /* @__PURE__ */ I(Gt, { column: t })
2737
2826
  ] })
2738
2827
  });
2739
2828
  }
2740
- Pt.displayName = "DataGridHeaderCell";
2829
+ Xt.displayName = "DataGridHeaderCell";
2741
2830
  //#endregion
2742
2831
  //#region src/components/dataGrid/components/dataGridHeader.tsx
2743
- function Ft(e) {
2744
- let { grid: t } = e, n = N(null), [i, a] = P(Y.INITIAL), o = t.headerHover === "sliding", s = (e) => {
2832
+ function Zt(e) {
2833
+ let { grid: t } = e, n = N(null), [r, a] = P(X.INITIAL), o = t.headerHover === "sliding", s = (e) => {
2745
2834
  let t = n.current;
2746
2835
  if (!o || !t || e.pointerType === "touch") return;
2747
- if (Y.isOnResizer(e.target)) return a((e) => Y.pause(e));
2748
- let r = Y.cellAt(t, e.target), i = r && Y.bounds(t, r);
2749
- a((e) => Y.hover(e, i));
2750
- }, c = () => a((e) => Y.hover(e, void 0)), l = i.visible || i.paused;
2836
+ if (X.isOnResizer(e.target)) return a((e) => X.pause(e));
2837
+ let r = X.cellAt(t, e.target), i = r && X.bounds(t, r);
2838
+ a((e) => X.hover(e, i));
2839
+ }, c = () => a((e) => X.hover(e, void 0)), l = r.visible || r.paused;
2751
2840
  A(() => {
2752
2841
  if (l) return document.addEventListener("scroll", c, {
2753
2842
  capture: !0,
2754
2843
  passive: !0
2755
2844
  }), () => document.removeEventListener("scroll", c, { capture: !0 });
2756
2845
  }, [l]);
2757
- let { bounds: u } = i;
2758
- return /* @__PURE__ */ R(y, {
2846
+ let { bounds: u } = r;
2847
+ return /* @__PURE__ */ L(x, {
2759
2848
  ref: n,
2760
2849
  component: `${t.componentName}.header`,
2761
2850
  props: {
@@ -2765,26 +2854,26 @@ function Ft(e) {
2765
2854
  },
2766
2855
  style: { gridTemplateColumns: t.gridTemplateColumns.value },
2767
2856
  children: [
2768
- t.headerRows.value.map((e, t) => /* @__PURE__ */ L(r, {
2857
+ t.headerRows.value.map((e, t) => /* @__PURE__ */ I(i, {
2769
2858
  display: "contents",
2770
2859
  props: {
2771
2860
  role: "row",
2772
2861
  "aria-rowindex": t + 1
2773
2862
  },
2774
- children: e.map((e, n) => /* @__PURE__ */ L(Pt, {
2863
+ children: e.map((e, n) => /* @__PURE__ */ I(Xt, {
2775
2864
  column: e,
2776
2865
  row: t,
2777
2866
  columnIndex: n
2778
2867
  }, e.uniqueKey))
2779
2868
  }, t)),
2780
- /* @__PURE__ */ L(wt, { grid: t }),
2781
- o && u && /* @__PURE__ */ L(r, {
2869
+ /* @__PURE__ */ I(zt, { grid: t }),
2870
+ o && u && /* @__PURE__ */ I(i, {
2782
2871
  tag: "span",
2783
2872
  component: `${t.componentName}.header.hover`,
2784
2873
  variant: {
2785
- visible: i.visible,
2786
- backward: i.backward,
2787
- entering: i.entering
2874
+ visible: r.visible,
2875
+ backward: r.backward,
2876
+ entering: r.entering
2788
2877
  },
2789
2878
  style: {
2790
2879
  left: `${u.left}px`,
@@ -2797,53 +2886,53 @@ function Ft(e) {
2797
2886
  ]
2798
2887
  });
2799
2888
  }
2800
- Ft.displayName = "DataGridHeader";
2801
- var It = D(Ft);
2889
+ Zt.displayName = "DataGridHeader";
2890
+ var Qt = D(Zt);
2802
2891
  //#endregion
2803
2892
  //#region src/components/dataGrid/components/dataGridLoader.tsx
2804
- function Lt(e) {
2893
+ function $t(e) {
2805
2894
  let { grid: t } = e;
2806
- return /* @__PURE__ */ L(r, {
2895
+ return /* @__PURE__ */ I(i, {
2807
2896
  component: `${t.componentName}.loader`,
2808
2897
  props: { "aria-hidden": !0 },
2809
- children: /* @__PURE__ */ L(r, {
2898
+ children: /* @__PURE__ */ I(i, {
2810
2899
  component: `${t.componentName}.loader.track`,
2811
2900
  style: { height: 3 },
2812
- children: /* @__PURE__ */ L(r, {
2901
+ children: /* @__PURE__ */ I(i, {
2813
2902
  component: `${t.componentName}.loader.track.bar`,
2814
2903
  width: "2/5"
2815
2904
  })
2816
2905
  })
2817
2906
  });
2818
2907
  }
2819
- Lt.displayName = "DataGridLoader";
2908
+ $t.displayName = "DataGridLoader";
2820
2909
  //#endregion
2821
2910
  //#region src/components/dataGrid/components/dataGridContent.tsx
2822
- function Rt(e) {
2823
- let { grid: t } = e, i = N(null), [a, o] = P({
2911
+ function en(e) {
2912
+ let { grid: t } = e, n = N(null), [a, o] = P({
2824
2913
  top: 0,
2825
2914
  direction: "down"
2826
2915
  }), s = N(null), c = O((e) => {
2827
2916
  o((t) => e === t.top ? t : {
2828
2917
  top: e,
2829
- direction: ge.directionOf(t.top, e, t.direction)
2918
+ direction: ye.directionOf(t.top, e, t.direction)
2830
2919
  });
2831
2920
  }, []), l = O((e) => {
2832
2921
  s.current !== null && cancelAnimationFrame(s.current), s.current = requestAnimationFrame(() => {
2833
2922
  c(e.target.scrollTop), s.current = null;
2834
2923
  });
2835
- }, [c]), { navigation: u, onKeyDown: d } = Me({
2924
+ }, [c]), { navigation: u, onKeyDown: d } = Ue({
2836
2925
  grid: t,
2837
- scrollerRef: i,
2926
+ scrollerRef: n,
2838
2927
  scroll: a,
2839
2928
  onScrollTo: c
2840
2929
  }), { source: f } = t, { queryVersion: p } = f;
2841
- n(() => {
2842
- f.enabled && i.current && (i.current.scrollTop = 0);
2930
+ r(() => {
2931
+ f.enabled && n.current && (n.current.scrollTop = 0);
2843
2932
  }, [f, p]), A(() => {
2844
2933
  if (!f.enabled) return;
2845
- let { startIndex: e, take: n } = t.viewport.window(i.current?.scrollTop ?? 0, a.direction);
2846
- f.request(e, e + n);
2934
+ let { startIndex: e, take: r } = t.viewport.window(n.current?.scrollTop ?? 0, a.direction);
2935
+ f.request(e, e + r);
2847
2936
  }, [
2848
2937
  t,
2849
2938
  f,
@@ -2859,17 +2948,17 @@ function Rt(e) {
2859
2948
  if (h) return window.addEventListener("pointerup", m.endDrag), window.addEventListener("pointercancel", m.endDrag), () => {
2860
2949
  window.removeEventListener("pointerup", m.endDrag), window.removeEventListener("pointercancel", m.endDrag);
2861
2950
  };
2862
- }, [h, m]), n(() => {
2863
- let e = i.current;
2951
+ }, [h, m]), r(() => {
2952
+ let e = n.current;
2864
2953
  if (!e) return;
2865
- let n = new ResizeObserver(() => {
2954
+ let r = new ResizeObserver(() => {
2866
2955
  t.setContainerWidth(e.clientWidth), t.paintSizes();
2867
2956
  });
2868
- return n.observe(e), () => n.disconnect();
2869
- }, [t]), t.hasVisibleColumns ? /* @__PURE__ */ L(me.Provider, {
2957
+ return r.observe(e), () => r.disconnect();
2958
+ }, [t]), t.hasVisibleColumns ? /* @__PURE__ */ I(ge.Provider, {
2870
2959
  value: u,
2871
- children: /* @__PURE__ */ R(r, {
2872
- ref: i,
2960
+ children: /* @__PURE__ */ L(i, {
2961
+ ref: n,
2873
2962
  component: `${t.componentName}.content`,
2874
2963
  overflowX: "auto",
2875
2964
  style: { willChange: "scroll-position" },
@@ -2886,33 +2975,33 @@ function Rt(e) {
2886
2975
  onPaste: m.onPaste
2887
2976
  },
2888
2977
  children: [
2889
- /* @__PURE__ */ L(It, {
2978
+ /* @__PURE__ */ I(Qt, {
2890
2979
  grid: t,
2891
2980
  version: t.headerVersion
2892
2981
  }),
2893
- (t.props.loading || f.isLoading) && /* @__PURE__ */ L(Lt, { grid: t }),
2894
- /* @__PURE__ */ L(ft, {
2982
+ (t.props.loading || f.isLoading) && /* @__PURE__ */ I($t, { grid: t }),
2983
+ /* @__PURE__ */ I(Et, {
2895
2984
  grid: t,
2896
2985
  scroll: a
2897
2986
  })
2898
2987
  ]
2899
2988
  })
2900
- }) : /* @__PURE__ */ L(pt, { grid: t });
2989
+ }) : /* @__PURE__ */ I(Dt, { grid: t });
2901
2990
  }
2902
- Rt.displayName = "DataGridContent";
2991
+ en.displayName = "DataGridContent";
2903
2992
  //#endregion
2904
2993
  //#region src/components/dataGrid/components/dataGridDataSourceError.tsx
2905
- function zt(e) {
2994
+ function tn(e) {
2906
2995
  let { grid: t } = e, { error: n } = t.source;
2907
2996
  if (n === void 0) return null;
2908
- let i = n instanceof Error && n.message ? n.message : t.localeText.loadError;
2909
- return /* @__PURE__ */ R(p, {
2997
+ let r = n instanceof Error && n.message ? n.message : t.localeText.loadError;
2998
+ return /* @__PURE__ */ L(h, {
2910
2999
  component: `${t.componentName}.error`,
2911
3000
  props: { role: "alert" },
2912
- children: [/* @__PURE__ */ L(r, {
3001
+ children: [/* @__PURE__ */ I(i, {
2913
3002
  component: `${t.componentName}.error.message`,
2914
- children: i
2915
- }), /* @__PURE__ */ L(f, {
3003
+ children: r
3004
+ }), /* @__PURE__ */ I(p, {
2916
3005
  component: `${t.componentName}.error.retry`,
2917
3006
  type: "button",
2918
3007
  onClick: t.source.retry,
@@ -2920,31 +3009,31 @@ function zt(e) {
2920
3009
  })]
2921
3010
  });
2922
3011
  }
2923
- zt.displayName = "DataGridDataSourceError";
3012
+ tn.displayName = "DataGridDataSourceError";
2924
3013
  //#endregion
2925
3014
  //#region src/components/dataGrid/components/dataGridColumnGroups.tsx
2926
- function Bt(e) {
3015
+ function nn(e) {
2927
3016
  let { grid: t } = e;
2928
- return t.groupColumns.size === 0 ? null : /* @__PURE__ */ R(p, {
3017
+ return t.groupColumns.size === 0 ? null : /* @__PURE__ */ L(h, {
2929
3018
  component: `${t.componentName}.topBar.columnGroups`,
2930
- children: [/* @__PURE__ */ L(x, {
3019
+ children: [/* @__PURE__ */ I(C, {
2931
3020
  component: `${t.componentName}.topBar.columnGroups.icon`,
2932
- children: /* @__PURE__ */ L(Dt, {
3021
+ children: /* @__PURE__ */ I(Ht, {
2933
3022
  width: "100%",
2934
3023
  fill: "currentColor"
2935
3024
  })
2936
- }), t.groupedColumns.map((e) => /* @__PURE__ */ R(w.Fragment, { children: [/* @__PURE__ */ L(Qe, {
3025
+ }), t.groupedColumns.map((e) => /* @__PURE__ */ L(ee.Fragment, { children: [/* @__PURE__ */ I(Y, {
2937
3026
  fill: "currentColor",
2938
3027
  width: "14px",
2939
3028
  height: "14px",
2940
3029
  rotate: -90
2941
- }), /* @__PURE__ */ R(p, {
3030
+ }), /* @__PURE__ */ L(h, {
2942
3031
  component: `${t.componentName}.topBar.columnGroups.item`,
2943
- children: [e.header ?? e.key, /* @__PURE__ */ L(f, {
3032
+ children: [e.header ?? e.key, /* @__PURE__ */ I(p, {
2944
3033
  component: `${t.componentName}.topBar.columnGroups.item.icon`,
2945
3034
  onClick: () => t.toggleGrouping(e.key),
2946
3035
  props: { "aria-label": t.localeText.stopGrouping(String(e.header ?? e.key)) },
2947
- children: /* @__PURE__ */ L(r, {
3036
+ children: /* @__PURE__ */ I(i, {
2948
3037
  fontSize: 10,
2949
3038
  color: "gray-400",
2950
3039
  hover: { color: "gray-600" },
@@ -2954,26 +3043,26 @@ function Bt(e) {
2954
3043
  })] }, e.key))]
2955
3044
  });
2956
3045
  }
2957
- Bt.displayName = "DataGridColumnGroups";
3046
+ nn.displayName = "DataGridColumnGroups";
2958
3047
  //#endregion
2959
3048
  //#region src/icons/searchIcon.tsx
2960
- function Vt(e) {
2961
- return /* @__PURE__ */ L(d, {
3049
+ function rn(e) {
3050
+ return /* @__PURE__ */ I(f, {
2962
3051
  viewBox: "0 0 488.4 488.4",
2963
3052
  width: "1.5rem",
2964
3053
  ...e,
2965
- children: /* @__PURE__ */ L(u, { d: "M0 203.25c0 112.1 91.2 203.2 203.2 203.2 51.6 0 98.8-19.4 134.7-51.2l129.5 129.5c2.4 2.4 5.5 3.6 8.7 3.6s6.3-1.2 8.7-3.6c4.8-4.8 4.8-12.5 0-17.3l-129.6-129.5c31.8-35.9 51.2-83 51.2-134.7C406.4 91.15 315.2.05 203.2.05S0 91.15 0 203.25zm381.9 0c0 98.5-80.2 178.7-178.7 178.7s-178.7-80.2-178.7-178.7 80.2-178.7 178.7-178.7 178.7 80.1 178.7 178.7z" })
3054
+ children: /* @__PURE__ */ I(d, { d: "M0 203.25c0 112.1 91.2 203.2 203.2 203.2 51.6 0 98.8-19.4 134.7-51.2l129.5 129.5c2.4 2.4 5.5 3.6 8.7 3.6s6.3-1.2 8.7-3.6c4.8-4.8 4.8-12.5 0-17.3l-129.6-129.5c31.8-35.9 51.2-83 51.2-134.7C406.4 91.15 315.2.05 203.2.05S0 91.15 0 203.25zm381.9 0c0 98.5-80.2 178.7-178.7 178.7s-178.7-80.2-178.7-178.7 80.2-178.7 178.7-178.7 178.7 80.1 178.7 178.7z" })
2966
3055
  });
2967
3056
  }
2968
3057
  //#endregion
2969
3058
  //#region src/components/dataGrid/components/dataGridColumnsPanel.tsx
2970
- var Ht = 6;
2971
- function Ut(e) {
2972
- let { grid: t } = e, { columnVisibility: n, localeText: i, componentName: a } = t, { visibleCount: o, total: s, hasHidden: c } = n, [l, p] = P(!1), [m, h] = P(""), g = O((e) => {
2973
- p(e), e || h("");
3059
+ var an = 6;
3060
+ function on(e) {
3061
+ let { grid: t } = e, { columnVisibility: n, localeText: r, componentName: a } = t, { visibleCount: o, total: s, hasHidden: c } = n, [l, u] = P(!1), [m, h] = P(""), g = O((e) => {
3062
+ u(e), e || h("");
2974
3063
  }, []);
2975
- return /* @__PURE__ */ L(S, {
2976
- label: i.columnsMenu,
3064
+ return /* @__PURE__ */ I(w, {
3065
+ label: r.columnsMenu,
2977
3066
  side: "bottom",
2978
3067
  align: "end",
2979
3068
  open: l,
@@ -2981,25 +3070,25 @@ function Ut(e) {
2981
3070
  autoFocus: !1,
2982
3071
  p: 0,
2983
3072
  overflow: "visible",
2984
- trigger: (e) => /* @__PURE__ */ R(f, {
3073
+ trigger: (e) => /* @__PURE__ */ L(p, {
2985
3074
  ...e,
2986
3075
  component: `${a}.topBar.columnVisibility`,
2987
3076
  props: {
2988
3077
  ...e.props,
2989
- "aria-label": c ? i.columnsMenuLabel(o, s) : void 0
3078
+ "aria-label": c ? r.columnsMenuLabel(o, s) : void 0
2990
3079
  },
2991
3080
  children: [
2992
- /* @__PURE__ */ L(d, {
3081
+ /* @__PURE__ */ I(f, {
2993
3082
  viewBox: "0 0 20 20",
2994
3083
  width: 16,
2995
3084
  height: 16,
2996
3085
  fill: "none",
2997
3086
  stroke: "currentColor",
2998
3087
  strokeWidth: 1.6,
2999
- children: /* @__PURE__ */ L(u, { d: "M4.5 3.5h11a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1v-11a1 1 0 0 1 1-1ZM8 3.5v13M12 3.5v13" })
3088
+ children: /* @__PURE__ */ I(d, { d: "M4.5 3.5h11a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1v-11a1 1 0 0 1 1-1ZM8 3.5v13M12 3.5v13" })
3000
3089
  }),
3001
- i.columnsMenu,
3002
- c && /* @__PURE__ */ R(r, {
3090
+ r.columnsMenu,
3091
+ c && /* @__PURE__ */ L(i, {
3003
3092
  component: `${a}.topBar.columnVisibility.badge`,
3004
3093
  tag: "span",
3005
3094
  variant: { empty: o === 0 },
@@ -3012,7 +3101,7 @@ function Ut(e) {
3012
3101
  })
3013
3102
  ]
3014
3103
  }),
3015
- children: /* @__PURE__ */ L(Wt, {
3104
+ children: /* @__PURE__ */ I(sn, {
3016
3105
  grid: t,
3017
3106
  open: l,
3018
3107
  query: m,
@@ -3020,13 +3109,13 @@ function Ut(e) {
3020
3109
  })
3021
3110
  });
3022
3111
  }
3023
- Ut.displayName = "DataGridColumnsPanel";
3024
- function Wt({ grid: e, open: t, query: n, onQueryChange: i }) {
3025
- let { columnVisibility: a, localeText: o, componentName: s } = e, c = `${s}.topBar.columnVisibility`, l = N(null), u = N(null), d = a.total > Ht, m = a.search(n), h = a.sections(m), g = m.every((e) => e.visible), _ = m.every((e) => !e.visible);
3112
+ on.displayName = "DataGridColumnsPanel";
3113
+ function sn({ grid: e, open: t, query: n, onQueryChange: r }) {
3114
+ let { columnVisibility: a, localeText: o, componentName: s } = e, c = `${s}.topBar.columnVisibility`, l = N(null), u = N(null), d = a.total > an, f = a.search(n), m = a.sections(f), g = f.every((e) => e.visible), _ = f.every((e) => !e.visible);
3026
3115
  A(() => {
3027
3116
  t && (u.current ?? l.current?.querySelector("input"))?.focus();
3028
3117
  }, [t]);
3029
- let y = O((e) => {
3118
+ let v = O((e) => {
3030
3119
  if (![
3031
3120
  "ArrowDown",
3032
3121
  "ArrowUp",
@@ -3043,25 +3132,25 @@ function Wt({ grid: e, open: t, query: n, onQueryChange: i }) {
3043
3132
  }[e.key];
3044
3133
  e.preventDefault(), i?.focus();
3045
3134
  }, []);
3046
- return /* @__PURE__ */ R(p, {
3135
+ return /* @__PURE__ */ L(h, {
3047
3136
  ref: l,
3048
3137
  component: `${c}.panel`,
3049
- props: { onKeyDown: y },
3138
+ props: { onKeyDown: v },
3050
3139
  children: [
3051
- d && /* @__PURE__ */ R(p, {
3140
+ d && /* @__PURE__ */ L(h, {
3052
3141
  component: `${c}.search`,
3053
- children: [/* @__PURE__ */ L(p, {
3142
+ children: [/* @__PURE__ */ I(h, {
3054
3143
  component: `${c}.searchIcon`,
3055
- children: /* @__PURE__ */ L(Vt, {
3144
+ children: /* @__PURE__ */ I(rn, {
3056
3145
  fill: "currentColor",
3057
3146
  width: "14px"
3058
3147
  })
3059
- }), /* @__PURE__ */ L(v, {
3148
+ }), /* @__PURE__ */ I(y, {
3060
3149
  ref: u,
3061
3150
  component: `${c}.searchInput`,
3062
3151
  value: n,
3063
3152
  placeholder: o.columnsMenuSearchPlaceholder,
3064
- onChange: (e) => i(e.target.value),
3153
+ onChange: (e) => r(e.target.value),
3065
3154
  props: {
3066
3155
  "aria-label": o.columnsMenuSearchPlaceholder,
3067
3156
  autoComplete: "off",
@@ -3069,40 +3158,40 @@ function Wt({ grid: e, open: t, query: n, onQueryChange: i }) {
3069
3158
  }
3070
3159
  })]
3071
3160
  }),
3072
- /* @__PURE__ */ R(p, {
3161
+ /* @__PURE__ */ L(h, {
3073
3162
  component: `${c}.toolbar`,
3074
- children: [/* @__PURE__ */ L(r, {
3163
+ children: [/* @__PURE__ */ I(i, {
3075
3164
  component: `${c}.count`,
3076
3165
  children: o.columnsMenuShown(a.visibleCount, a.total)
3077
- }), /* @__PURE__ */ R(p, {
3166
+ }), /* @__PURE__ */ L(h, {
3078
3167
  gap: 1,
3079
- children: [/* @__PURE__ */ L(f, {
3168
+ children: [/* @__PURE__ */ I(p, {
3080
3169
  component: `${c}.action`,
3081
3170
  disabled: g,
3082
- onClick: () => a.setAll(!0, m),
3171
+ onClick: () => a.setAll(!0, f),
3083
3172
  children: o.columnsMenuShowAll
3084
- }), /* @__PURE__ */ L(f, {
3173
+ }), /* @__PURE__ */ I(p, {
3085
3174
  component: `${c}.action`,
3086
3175
  disabled: _,
3087
- onClick: () => a.setAll(!1, m),
3176
+ onClick: () => a.setAll(!1, f),
3088
3177
  children: o.columnsMenuHideAll
3089
3178
  })]
3090
3179
  })]
3091
3180
  }),
3092
- /* @__PURE__ */ R(p, {
3181
+ /* @__PURE__ */ L(h, {
3093
3182
  component: `${c}.list`,
3094
- children: [h.map((e, t) => /* @__PURE__ */ R(p, {
3183
+ children: [m.map((e, t) => /* @__PURE__ */ L(h, {
3095
3184
  component: `${c}.section`,
3096
3185
  variant: { divided: t > 0 && !e.group },
3097
3186
  props: e.group ? {
3098
3187
  role: "group",
3099
3188
  "aria-label": e.group
3100
3189
  } : void 0,
3101
- children: [e.group && /* @__PURE__ */ L(r, {
3190
+ children: [e.group && /* @__PURE__ */ I(i, {
3102
3191
  component: `${c}.group`,
3103
3192
  props: { "aria-hidden": !0 },
3104
3193
  children: e.group
3105
- }), e.entries.map((e) => /* @__PURE__ */ L(C, {
3194
+ }), e.entries.map((e) => /* @__PURE__ */ I(T, {
3106
3195
  checked: e.visible,
3107
3196
  onChange: () => e.column.toggleVisibility(),
3108
3197
  label: e.label,
@@ -3111,7 +3200,7 @@ function Wt({ grid: e, open: t, query: n, onQueryChange: i }) {
3111
3200
  display: "flex"
3112
3201
  }
3113
3202
  }, e.id))]
3114
- }, `${e.group ?? ""}-${t}`)), m.length === 0 && /* @__PURE__ */ L(r, {
3203
+ }, `${e.group ?? ""}-${t}`)), f.length === 0 && /* @__PURE__ */ I(i, {
3115
3204
  component: `${c}.empty`,
3116
3205
  props: { role: "status" },
3117
3206
  children: o.columnsMenuNoMatch(n.trim())
@@ -3122,18 +3211,18 @@ function Wt({ grid: e, open: t, query: n, onQueryChange: i }) {
3122
3211
  }
3123
3212
  //#endregion
3124
3213
  //#region src/components/dataGrid/components/dataGridExport.tsx
3125
- function Gt(e) {
3214
+ function cn(e) {
3126
3215
  let { grid: t } = e, n = t.exportConfig, r = O(() => void t.exportCsv(n).catch(() => void 0), [t, n]), i = O(() => void t.exportXlsx(n).catch(() => void 0), [t, n]);
3127
- return n ? /* @__PURE__ */ R(p, {
3216
+ return n ? /* @__PURE__ */ L(h, {
3128
3217
  component: `${t.componentName}.topBar.export`,
3129
3218
  ai: "center",
3130
3219
  gap: 2,
3131
- children: [n.csv !== !1 && /* @__PURE__ */ L(Kt, {
3220
+ children: [n.csv !== !1 && /* @__PURE__ */ I(ln, {
3132
3221
  componentName: t.componentName,
3133
3222
  onClick: r,
3134
3223
  label: t.localeText.exportCsvLabel,
3135
3224
  children: t.localeText.exportCsv
3136
- }), n.xlsx !== !1 && /* @__PURE__ */ L(Kt, {
3225
+ }), n.xlsx !== !1 && /* @__PURE__ */ I(ln, {
3137
3226
  componentName: t.componentName,
3138
3227
  onClick: i,
3139
3228
  label: t.localeText.exportExcelLabel,
@@ -3141,25 +3230,25 @@ function Gt(e) {
3141
3230
  })]
3142
3231
  }) : null;
3143
3232
  }
3144
- Gt.displayName = "DataGridExport";
3145
- function Kt(e) {
3233
+ cn.displayName = "DataGridExport";
3234
+ function ln(e) {
3146
3235
  let { componentName: t, onClick: n, label: r, children: i } = e;
3147
- return /* @__PURE__ */ R(f, {
3236
+ return /* @__PURE__ */ L(p, {
3148
3237
  component: `${t}.topBar.export.button`,
3149
3238
  onClick: n,
3150
3239
  props: { "aria-label": r },
3151
- children: [/* @__PURE__ */ R(d, {
3240
+ children: [/* @__PURE__ */ L(f, {
3152
3241
  viewBox: "0 0 20 20",
3153
3242
  width: 16,
3154
3243
  height: 16,
3155
3244
  fill: "none",
3156
3245
  stroke: "currentColor",
3157
3246
  strokeWidth: 1.6,
3158
- children: [/* @__PURE__ */ L(u, {
3247
+ children: [/* @__PURE__ */ I(d, {
3159
3248
  d: "M10 3v9m0 0 3.5-3.5M10 12 6.5 8.5",
3160
3249
  strokeLinecap: "round",
3161
3250
  strokeLinejoin: "round"
3162
- }), /* @__PURE__ */ L(u, {
3251
+ }), /* @__PURE__ */ I(d, {
3163
3252
  d: "M3.5 13.5v2a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-2",
3164
3253
  strokeLinecap: "round"
3165
3254
  })]
@@ -3168,38 +3257,38 @@ function Kt(e) {
3168
3257
  }
3169
3258
  //#endregion
3170
3259
  //#region src/components/dataGrid/components/dataGridGlobalFilter.tsx
3171
- function qt(e) {
3172
- let { grid: t } = e, [n, i] = P(t.globalFilterValue), { debounce: a, cancel: o } = _t(t.globalFilterValue, (e) => e === n, i), s = O((e) => {
3260
+ function un(e) {
3261
+ let { grid: t } = e, [n, r] = P(t.globalFilterValue), { debounce: a, cancel: o } = jt(t.globalFilterValue, (e) => e === n, r), s = O((e) => {
3173
3262
  let n = e.target.value;
3174
- i(n), a("value", () => t.filter.setGlobalFilter(n));
3263
+ r(n), a("value", () => t.filter.setGlobalFilter(n));
3175
3264
  }, [t, a]), c = O(() => {
3176
- o(), i(""), t.filter.setGlobalFilter("");
3265
+ o(), r(""), t.filter.setGlobalFilter("");
3177
3266
  }, [t, o]), { filtered: l, total: u } = t.filter.filterStats, d = !t.props.def.bottomBar && t.filter.hasActiveFilters && l !== u;
3178
- return /* @__PURE__ */ R(p, {
3267
+ return /* @__PURE__ */ L(h, {
3179
3268
  component: `${t.componentName}.topBar.globalFilter`,
3180
- children: [d && /* @__PURE__ */ R(r, {
3269
+ children: [d && /* @__PURE__ */ L(i, {
3181
3270
  component: `${t.componentName}.topBar.globalFilter.stats`,
3182
3271
  children: [
3183
3272
  l,
3184
3273
  "/",
3185
3274
  u
3186
3275
  ]
3187
- }), /* @__PURE__ */ R(p, {
3276
+ }), /* @__PURE__ */ L(h, {
3188
3277
  position: "relative",
3189
3278
  ai: "center",
3190
3279
  children: [
3191
- /* @__PURE__ */ L(p, {
3280
+ /* @__PURE__ */ I(h, {
3192
3281
  position: "absolute",
3193
3282
  insetStart: 3,
3194
3283
  pointerEvents: "none",
3195
3284
  color: "gray-400",
3196
3285
  theme: { dark: { color: "gray-500" } },
3197
- children: /* @__PURE__ */ L(Vt, {
3286
+ children: /* @__PURE__ */ I(rn, {
3198
3287
  fill: "currentColor",
3199
3288
  width: "14px"
3200
3289
  })
3201
3290
  }),
3202
- /* @__PURE__ */ L(v, {
3291
+ /* @__PURE__ */ I(y, {
3203
3292
  placeholder: t.localeText.searchPlaceholder,
3204
3293
  variant: "compact",
3205
3294
  value: n,
@@ -3207,7 +3296,7 @@ function qt(e) {
3207
3296
  ps: 8,
3208
3297
  pe: n ? 8 : 3
3209
3298
  }),
3210
- n && /* @__PURE__ */ L(r, {
3299
+ n && /* @__PURE__ */ I(i, {
3211
3300
  position: "absolute",
3212
3301
  insetEnd: 2,
3213
3302
  cursor: "pointer",
@@ -3219,7 +3308,7 @@ function qt(e) {
3219
3308
  hover: { color: "gray-300" }
3220
3309
  } },
3221
3310
  props: { onClick: c },
3222
- children: /* @__PURE__ */ L(r, {
3311
+ children: /* @__PURE__ */ I(i, {
3223
3312
  fontSize: 12,
3224
3313
  fontWeight: 600,
3225
3314
  children: "✕"
@@ -3231,52 +3320,52 @@ function qt(e) {
3231
3320
  }
3232
3321
  //#endregion
3233
3322
  //#region src/components/dataGrid/components/dataGridTopBar.tsx
3234
- function Jt(e) {
3235
- let { grid: t } = e, { title: n, topBarContent: i, globalFilter: a } = t.props.def;
3236
- return /* @__PURE__ */ R(p, {
3323
+ function dn(e) {
3324
+ let { grid: t } = e, { title: n, topBarContent: r, globalFilter: a } = t.props.def;
3325
+ return /* @__PURE__ */ L(h, {
3237
3326
  component: `${t.componentName}.topBar`,
3238
3327
  position: "relative",
3239
3328
  d: "column",
3240
3329
  gap: 3,
3241
- children: [/* @__PURE__ */ R(p, {
3330
+ children: [/* @__PURE__ */ L(h, {
3242
3331
  ai: "center",
3243
3332
  jc: "space-between",
3244
3333
  gap: 4,
3245
3334
  flexWrap: "wrap",
3246
3335
  width: "fit",
3247
- children: [/* @__PURE__ */ R(p, {
3336
+ children: [/* @__PURE__ */ L(h, {
3248
3337
  ai: "center",
3249
3338
  gap: 3,
3250
3339
  flexWrap: "wrap",
3251
3340
  minWidth: 0,
3252
- children: [n && /* @__PURE__ */ L(r, {
3341
+ children: [n && /* @__PURE__ */ I(i, {
3253
3342
  id: t.titleId,
3254
3343
  fontWeight: 600,
3255
3344
  fontSize: 16,
3256
3345
  color: "gray-800",
3257
3346
  theme: { dark: { color: "gray-100" } },
3258
3347
  children: n
3259
- }), /* @__PURE__ */ L(Bt, { grid: t })]
3260
- }), /* @__PURE__ */ R(p, {
3348
+ }), /* @__PURE__ */ I(nn, { grid: t })]
3349
+ }), /* @__PURE__ */ L(h, {
3261
3350
  ai: "center",
3262
3351
  gap: 3,
3263
3352
  flexWrap: "wrap",
3264
3353
  children: [
3265
- a && /* @__PURE__ */ L(qt, { grid: t }),
3266
- /* @__PURE__ */ L(Ut, { grid: t }),
3267
- /* @__PURE__ */ L(Gt, { grid: t })
3354
+ a && /* @__PURE__ */ I(un, { grid: t }),
3355
+ /* @__PURE__ */ I(on, { grid: t }),
3356
+ /* @__PURE__ */ I(cn, { grid: t })
3268
3357
  ]
3269
3358
  })]
3270
- }), i && /* @__PURE__ */ L(r, {
3359
+ }), r && /* @__PURE__ */ I(i, {
3271
3360
  width: "fit",
3272
- children: i
3361
+ children: r
3273
3362
  })]
3274
3363
  });
3275
3364
  }
3276
- Jt.displayName = "DataGridTopBar";
3365
+ dn.displayName = "DataGridTopBar";
3277
3366
  //#endregion
3278
3367
  //#region src/utils/string/fuzzySearch.ts
3279
- function Yt(e, t) {
3368
+ function fn(e, t) {
3280
3369
  if (!e) return {
3281
3370
  score: 1,
3282
3371
  matches: []
@@ -3289,16 +3378,16 @@ function Yt(e, t) {
3289
3378
  matches: o
3290
3379
  });
3291
3380
  }
3292
- function Xt(e, t) {
3293
- return Yt(e, t) !== null;
3381
+ function pn(e, t) {
3382
+ return fn(e, t) !== null;
3294
3383
  }
3295
3384
  //#endregion
3296
3385
  //#region src/components/dataGrid/components/dataGridCellRowDetail.tsx
3297
- function Zt(e) {
3386
+ function mn(e) {
3298
3387
  let { cell: t } = e, n = t.isExpanded, r = O((e) => {
3299
3388
  e.stopPropagation(), t.toggleDetail();
3300
3389
  }, [t]);
3301
- return /* @__PURE__ */ L(f, {
3390
+ return /* @__PURE__ */ I(p, {
3302
3391
  component: `${t.grid.componentName}.body.cell.rowDetail`,
3303
3392
  variant: { isExpanded: n },
3304
3393
  type: "button",
@@ -3314,7 +3403,7 @@ function Zt(e) {
3314
3403
  "aria-label": (n ? t.grid.localeText.collapseRowDetail : t.grid.localeText.expandRowDetail)(t.row.rowIndex + 1),
3315
3404
  "aria-expanded": n
3316
3405
  },
3317
- children: /* @__PURE__ */ L(Qe, {
3406
+ children: /* @__PURE__ */ I(Y, {
3318
3407
  fill: "currentColor",
3319
3408
  width: "14px",
3320
3409
  height: "14px",
@@ -3322,14 +3411,14 @@ function Zt(e) {
3322
3411
  })
3323
3412
  });
3324
3413
  }
3325
- Zt.displayName = "DataGridCellRowDetail";
3414
+ mn.displayName = "DataGridCellRowDetail";
3326
3415
  //#endregion
3327
3416
  //#region src/components/dataGrid/components/dataGridCellRowSelection.tsx
3328
- function Qt(e) {
3417
+ function hn(e) {
3329
3418
  let { cell: t } = e, n = O(() => {
3330
3419
  t.toggleSelection();
3331
3420
  }, [t]);
3332
- return /* @__PURE__ */ L(m, {
3421
+ return /* @__PURE__ */ I(g, {
3333
3422
  variant: "datagrid",
3334
3423
  checked: t.selected,
3335
3424
  indeterminate: t.indeterminate,
@@ -3340,15 +3429,15 @@ function Qt(e) {
3340
3429
  }
3341
3430
  });
3342
3431
  }
3343
- Qt.displayName = "DataGridCellRowSelection";
3432
+ hn.displayName = "DataGridCellRowSelection";
3344
3433
  //#endregion
3345
3434
  //#region src/components/dataGrid/contracts/dataGridContract.ts
3346
- function $t(e) {
3435
+ function gn(e) {
3347
3436
  if (e) return e === "LEFT" ? "START" : e === "RIGHT" ? "END" : e;
3348
3437
  }
3349
3438
  //#endregion
3350
3439
  //#region src/components/dataGrid/models/headerCellModel.ts
3351
- var en = 1e3, tn = class {
3440
+ var _n = 1e3, vn = class {
3352
3441
  column;
3353
3442
  constructor(e) {
3354
3443
  this.column = e;
@@ -3361,7 +3450,7 @@ var en = 1e3, tn = class {
3361
3450
  if (e.isRowNumber || e.isRowSelection) return null;
3362
3451
  if (e.isGrouping) {
3363
3452
  if (this.grid.groupColumns.size === 1) {
3364
- let e = this.grid.groupColumns.values().next().value, t = W.findOrThrow(this.grid.columns.value.leafs, (t) => t.key === e);
3453
+ let e = this.grid.groupColumns.values().next().value, t = G.findOrThrow(this.grid.columns.value.leafs, (t) => t.key === e);
3365
3454
  return t.header ?? t.key;
3366
3455
  }
3367
3456
  return this.grid.localeText.groupHeader;
@@ -3425,7 +3514,7 @@ var en = 1e3, tn = class {
3425
3514
  return Math.max(1, this.column.leafs.length) * this.grid.MIN_COLUMN_WIDTH_PX;
3426
3515
  }
3427
3516
  get maxWidth() {
3428
- return Math.max(this.grid.containerWidth || en, this.width, this.minWidth);
3517
+ return Math.max(this.grid.containerWidth || _n, this.width, this.minWidth);
3429
3518
  }
3430
3519
  get paddingStart() {
3431
3520
  if (!this.column.isRowSelection) return this.column.isEndAligned ? 10 : 3;
@@ -3510,16 +3599,16 @@ var en = 1e3, tn = class {
3510
3599
  pin: t.pin
3511
3600
  } : r, n, this)) ?? [], this.isLeaf) {
3512
3601
  let e = this.grid.columnWidths.get(this.key);
3513
- this._inlineWidth = e ?? this.def.width ?? this.grid.DEFAULT_COLUMN_WIDTH_PX, this._pin = $t(t.pin);
3602
+ this._inlineWidth = e ?? this.def.width ?? this.grid.DEFAULT_COLUMN_WIDTH_PX, this._pin = gn(t.pin);
3514
3603
  }
3515
3604
  }
3516
3605
  columns = [];
3517
3606
  get kind() {
3518
3607
  switch (this.key) {
3519
- case Pe: return "rowNumber";
3520
- case Fe: return "rowSelection";
3521
- case Ie: return "rowDetail";
3522
- case G: return "grouping";
3608
+ case Ge: return "rowNumber";
3609
+ case Ke: return "rowSelection";
3610
+ case qe: return "rowDetail";
3611
+ case K: return "grouping";
3523
3612
  default: return "data";
3524
3613
  }
3525
3614
  }
@@ -3574,7 +3663,7 @@ var en = 1e3, tn = class {
3574
3663
  insetInlineEnd: t ? `var(${this.inlineEndVarName})` : void 0
3575
3664
  };
3576
3665
  }, () => [this.pinFlags]);
3577
- _headerCell = q(() => new tn(this));
3666
+ _headerCell = q(() => new vn(this));
3578
3667
  get headerCell() {
3579
3668
  return this._headerCell.value;
3580
3669
  }
@@ -3659,6 +3748,18 @@ var en = 1e3, tn = class {
3659
3748
  }
3660
3749
  this.grid.setColumnFilter(this.key, i);
3661
3750
  }
3751
+ setDateFilter(e, t, n) {
3752
+ if (!t) {
3753
+ this.grid.setColumnFilter(this.key, void 0);
3754
+ return;
3755
+ }
3756
+ let r = {
3757
+ type: "date",
3758
+ operator: e,
3759
+ value: t
3760
+ };
3761
+ e === "between" && n && (r.valueTo = n), this.grid.setColumnFilter(this.key, r);
3762
+ }
3662
3763
  setMultiselectFilter(e) {
3663
3764
  this.grid.setColumnFilter(this.key, e.length === 0 ? void 0 : {
3664
3765
  type: "multiselect",
@@ -3738,16 +3839,16 @@ var en = 1e3, tn = class {
3738
3839
  get inlineWidth() {
3739
3840
  if (this.isLeaf) return this.grid.getFlexWidth(this.key) ?? this._inlineWidth;
3740
3841
  let e = this.visibleColumns.map((e) => e.inlineWidth).filter((e) => typeof e == "number");
3741
- if (e.length !== 0) return W.sumBy(e, (e) => e);
3842
+ if (e.length !== 0) return G.sumBy(e, (e) => e);
3742
3843
  }
3743
3844
  get startOffset() {
3744
3845
  let e = 0;
3745
3846
  if (this.parent) {
3746
3847
  let { visibleColumns: t, startOffset: n } = this.parent, r = t.findIndex((e) => e === this);
3747
- e += W.sumBy(t, (e, t) => t < r ? e.inlineWidth ?? 0 : 0), e += n;
3848
+ e += G.sumBy(t, (e, t) => t < r ? e.inlineWidth ?? 0 : 0), e += n;
3748
3849
  } else {
3749
3850
  let t = this.grid.columns.value.start.filter((e) => e.isVisible), n = t.findIndex((e) => e === this);
3750
- e += W.sumBy(t, (e, t) => t < n ? e.inlineWidth ?? 0 : 0);
3851
+ e += G.sumBy(t, (e, t) => t < n ? e.inlineWidth ?? 0 : 0);
3751
3852
  }
3752
3853
  return e;
3753
3854
  }
@@ -3755,10 +3856,10 @@ var en = 1e3, tn = class {
3755
3856
  let e = 0;
3756
3857
  if (this.parent) {
3757
3858
  let { visibleColumns: t } = this.parent, n = t.reverse(), r = n.findIndex((e) => e === this);
3758
- e += W.sumBy(n, (e, t) => t < r ? e.inlineWidth ?? 0 : 0), e += this.parent.endOffset;
3859
+ e += G.sumBy(n, (e, t) => t < r ? e.inlineWidth ?? 0 : 0), e += this.parent.endOffset;
3759
3860
  } else {
3760
3861
  let t = this.grid.columns.value.end.filter((e) => e.isVisible).reverse(), n = t.findIndex((e) => e === this);
3761
- e += W.sumBy(t, (e, t) => t < n ? e.inlineWidth ?? 0 : 0);
3862
+ e += G.sumBy(t, (e, t) => t < n ? e.inlineWidth ?? 0 : 0);
3762
3863
  }
3763
3864
  return e;
3764
3865
  }
@@ -3796,7 +3897,7 @@ var en = 1e3, tn = class {
3796
3897
  _resizeTotalWidth = 0;
3797
3898
  beginResize = (e) => {
3798
3899
  let { MIN_COLUMN_WIDTH_PX: t } = this.grid;
3799
- this._resizeStartX = e, this._resizeSizes = W.toRecord(this.leafs, (e) => [e.key, e.inlineWidth ?? e.baseWidth]), this._resizeTotalWidth = W.sumBy(this.leafs, (e) => this._resizeSizes[e.key]) - this.leafs.length * t;
3900
+ this._resizeStartX = e, this._resizeSizes = G.toRecord(this.leafs, (e) => [e.key, e.inlineWidth ?? e.baseWidth]), this._resizeTotalWidth = G.sumBy(this.leafs, (e) => this._resizeSizes[e.key]) - this.leafs.length * t;
3800
3901
  };
3801
3902
  get resizeSign() {
3802
3903
  return this.pin === "END" === this.grid.isRtl ? 1 : -1;
@@ -3822,7 +3923,7 @@ var en = 1e3, tn = class {
3822
3923
  this.moveResizer((e - t) * this.resizeSign);
3823
3924
  };
3824
3925
  pinColumn = (e) => {
3825
- this.isLeaf ? this._pin = $t(e) : this.columns.forEach((t) => t.pinColumn(e)), this.grid.pinColumn(this.uniqueKey, e);
3926
+ this.isLeaf ? this._pin = gn(e) : this.columns.forEach((t) => t.pinColumn(e)), this.grid.pinColumn(this.uniqueKey, e);
3826
3927
  };
3827
3928
  toggleGrouping = () => {
3828
3929
  this.grid.toggleGrouping(this.key);
@@ -3837,7 +3938,7 @@ var en = 1e3, tn = class {
3837
3938
  toggleVisibility = () => {
3838
3939
  this.grid.toggleColumnVisibility(this.key);
3839
3940
  };
3840
- }, nn = class {
3941
+ }, yn = class {
3841
3942
  grid;
3842
3943
  constructor(e) {
3843
3944
  this.grid = e;
@@ -3897,19 +3998,19 @@ var en = 1e3, tn = class {
3897
3998
  };
3898
3999
  //#endregion
3899
4000
  //#region src/utils/array/lazyList.ts
3900
- function rn(e, t) {
4001
+ function bn(e, t) {
3901
4002
  return new Proxy([], {
3902
4003
  get(n, r, i) {
3903
4004
  if (r === "length") return e;
3904
- let a = an(r, e);
4005
+ let a = xn(r, e);
3905
4006
  return a === void 0 ? Reflect.get(n, r, i) : t(a);
3906
4007
  },
3907
4008
  has(t, n) {
3908
- return an(n, e) !== void 0 || Reflect.has(t, n);
4009
+ return xn(n, e) !== void 0 || Reflect.has(t, n);
3909
4010
  },
3910
4011
  getOwnPropertyDescriptor(n, r) {
3911
- return an(r, e) === void 0 ? Reflect.getOwnPropertyDescriptor(n, r) : {
3912
- value: t(an(r, e)),
4012
+ return xn(r, e) === void 0 ? Reflect.getOwnPropertyDescriptor(n, r) : {
4013
+ value: t(xn(r, e)),
3913
4014
  writable: !0,
3914
4015
  enumerable: !0,
3915
4016
  configurable: !0
@@ -3917,7 +4018,7 @@ function rn(e, t) {
3917
4018
  }
3918
4019
  });
3919
4020
  }
3920
- function an(e, t) {
4021
+ function xn(e, t) {
3921
4022
  if (typeof e != "string") return;
3922
4023
  let n = Number(e);
3923
4024
  return Number.isInteger(n) && n >= 0 && n < t ? n : void 0;
@@ -4048,7 +4149,7 @@ var $ = class e {
4048
4149
  }), this.source.changed());
4049
4150
  });
4050
4151
  }
4051
- }, on = class extends Ke {
4152
+ }, Sn = class extends it {
4052
4153
  level;
4053
4154
  constructor(e, t, n, r) {
4054
4155
  super(e, n, [], r, ""), this.level = t;
@@ -4070,7 +4171,7 @@ var $ = class e {
4070
4171
  return [...this.level.groupKeys, this.groupValue];
4071
4172
  }
4072
4173
  get key() {
4073
- return this.placeholder ? `${this.level.placeholderKey}-group-${this.rowIndex}` : sn(this.groupKeys);
4174
+ return this.placeholder ? `${this.level.placeholderKey}-group-${this.rowIndex}` : Cn(this.groupKeys);
4074
4175
  }
4075
4176
  get depth() {
4076
4177
  return this.level.depth;
@@ -4106,21 +4207,21 @@ var $ = class e {
4106
4207
  this.placeholder || this.grid.toggleGroupRow(this.key);
4107
4208
  }
4108
4209
  };
4109
- function sn(e) {
4210
+ function Cn(e) {
4110
4211
  return `rb-group:${$.keyOf(e)}`;
4111
4212
  }
4112
4213
  //#endregion
4113
4214
  //#region src/components/dataGrid/models/sourceRowModel.ts
4114
- var cn = {}, ln = class extends U {
4215
+ var wn = {}, Tn = class extends U {
4115
4216
  sourceLevel;
4116
4217
  constructor(e, t, n) {
4117
- super(e, cn, n), this.sourceLevel = t;
4218
+ super(e, wn, n), this.sourceLevel = t;
4118
4219
  }
4119
4220
  get row() {
4120
4221
  return this.sourceLevel.rowAt(this.rowIndex);
4121
4222
  }
4122
4223
  get data() {
4123
- return this.row ?? cn;
4224
+ return this.row ?? wn;
4124
4225
  }
4125
4226
  get placeholder() {
4126
4227
  return this.row === void 0;
@@ -4138,7 +4239,7 @@ var cn = {}, ln = class extends U {
4138
4239
  get selected() {
4139
4240
  return !this.placeholder && super.selected;
4140
4241
  }
4141
- }, un = class extends ln {
4242
+ }, En = class extends Tn {
4142
4243
  isTreeRow = !0;
4143
4244
  get level() {
4144
4245
  return this.sourceLevel.depth;
@@ -4158,7 +4259,7 @@ var cn = {}, ln = class extends U {
4158
4259
  toggleTree = () => {
4159
4260
  this.hasChildren && this.grid.tree.toggle(this.key, this.level);
4160
4261
  };
4161
- }, dn = 100, fn = 40, pn = class {
4262
+ }, Dn = 100, On = 40, kn = class {
4162
4263
  grid;
4163
4264
  constructor(e) {
4164
4265
  this.grid = e;
@@ -4184,11 +4285,11 @@ var cn = {}, ln = class extends U {
4184
4285
  }
4185
4286
  get blockSize() {
4186
4287
  let e = this.config?.blockSize;
4187
- return e && e > 0 ? Math.floor(e) : this.grid.isPaginated ? this.grid.pageSize : dn;
4288
+ return e && e > 0 ? Math.floor(e) : this.grid.isPaginated ? this.grid.pageSize : Dn;
4188
4289
  }
4189
4290
  get maxBlocks() {
4190
4291
  let e = this.config?.maxBlocks;
4191
- return e && e > 0 ? Math.floor(e) : fn;
4292
+ return e && e > 0 ? Math.floor(e) : On;
4192
4293
  }
4193
4294
  get queryVersion() {
4194
4295
  return this._query;
@@ -4243,7 +4344,7 @@ var cn = {}, ln = class extends U {
4243
4344
  return e.loadedBlocks().forEach(({ index: a, rows: o }) => {
4244
4345
  o.forEach((o, s) => {
4245
4346
  let c = [...e.path, o[r]];
4246
- if (!t.has(sn(c))) return;
4347
+ if (!t.has(Cn(c))) return;
4247
4348
  let l = a * n + s;
4248
4349
  i.push({
4249
4350
  rowIndex: l,
@@ -4297,20 +4398,20 @@ var cn = {}, ln = class extends U {
4297
4398
  listLength = -1;
4298
4399
  rowList() {
4299
4400
  let { start: e } = this.visibleRange();
4300
- return this.listLength = this.visibleLength(), rn(this.listLength, (t) => this.rowModelAt(e + t));
4401
+ return this.listLength = this.visibleLength(), bn(this.listLength, (t) => this.rowModelAt(e + t));
4301
4402
  }
4302
4403
  flatRowList(e) {
4303
4404
  let t = this.detailPositions();
4304
- return t.length === 0 ? e : rn(e.length + t.length, (n) => {
4305
- let r = hn(t, n);
4306
- return t[r] === n ? new Ee(this.grid, e[n - r - 1]) : e[n - r];
4405
+ return t.length === 0 ? e : bn(e.length + t.length, (n) => {
4406
+ let r = jn(t, n);
4407
+ return t[r] === n ? new H(this.grid, e[n - r - 1]) : e[n - r];
4307
4408
  });
4308
4409
  }
4309
4410
  rowOffsets(e) {
4310
4411
  let { rowHeight: t } = this.grid, n = this.detailPositions(), r = [0];
4311
4412
  return n.forEach((t, n) => r.push(r[n] + e[t].heightForOffset)), {
4312
- offsets: rn(e.length, (e) => {
4313
- let i = hn(n, e);
4413
+ offsets: bn(e.length, (e) => {
4414
+ let i = jn(n, e);
4314
4415
  return (e - i) * t + r[i];
4315
4416
  }),
4316
4417
  totalHeight: (e.length - n.length) * t + r[n.length]
@@ -4339,7 +4440,7 @@ var cn = {}, ln = class extends U {
4339
4440
  let i = this.levels.get(r);
4340
4441
  !i || i.isGroupLevel || i.loadedBlocks().forEach(({ index: r, rows: i }) => {
4341
4442
  i.forEach((i, a) => {
4342
- let o = mn(n, r * t + a);
4443
+ let o = An(n, r * t + a);
4343
4444
  o !== void 0 && e(o, i);
4344
4445
  });
4345
4446
  });
@@ -4347,14 +4448,14 @@ var cn = {}, ln = class extends U {
4347
4448
  }
4348
4449
  rowModelAt(e) {
4349
4450
  let t = this.segmentAt(e);
4350
- if (!t) return new ln(this.grid, this.root, e);
4451
+ if (!t) return new Tn(this.grid, this.root, e);
4351
4452
  let { level: n } = t, r = t.levelStart + (e - t.start), i = this.models.get(n.key);
4352
4453
  i || this.models.set(n.key, i = /* @__PURE__ */ new Map());
4353
4454
  let a = i.get(r);
4354
- return a || (a = n.isGroupLevel ? new on(this.grid, n, this.groupColumnAt(n.depth), r) : this.isTree ? new un(this.grid, n, r) : new ln(this.grid, n, r), i.set(r, a)), a;
4455
+ return a || (a = n.isGroupLevel ? new Sn(this.grid, n, this.groupColumnAt(n.depth), r) : this.isTree ? new En(this.grid, n, r) : new Tn(this.grid, n, r), i.set(r, a)), a;
4355
4456
  }
4356
4457
  groupColumnAt(e) {
4357
- return W.findOrThrow(this.grid.columns.value.leafs, (t) => t.key === this.groupBy[e]);
4458
+ return G.findOrThrow(this.grid.columns.value.leafs, (t) => t.key === this.groupBy[e]);
4358
4459
  }
4359
4460
  visibleLength() {
4360
4461
  let { start: e, end: t } = this.visibleRange();
@@ -4440,10 +4541,10 @@ var cn = {}, ln = class extends U {
4440
4541
  this._segments = void 0, this._byLevel = void 0, this.listLength !== this.visibleLength() && this.grid.rows.clear(), this.grid.flatRows.clear(), this.grid.notify();
4441
4542
  }
4442
4543
  };
4443
- function mn(e, t) {
4544
+ function An(e, t) {
4444
4545
  for (let n of e) if (t >= n.levelStart && t < n.levelStart + n.length) return n.start + (t - n.levelStart);
4445
4546
  }
4446
- function hn(e, t) {
4547
+ function jn(e, t) {
4447
4548
  let n = 0, r = e.length;
4448
4549
  for (; n < r;) {
4449
4550
  let i = n + r >>> 1;
@@ -4453,7 +4554,7 @@ function hn(e, t) {
4453
4554
  }
4454
4555
  //#endregion
4455
4556
  //#region src/components/dataGrid/models/exportModel.ts
4456
- var gn = 7, _n = class {
4557
+ var Mn = 7, Nn = class {
4457
4558
  grid;
4458
4559
  constructor(e) {
4459
4560
  this.grid = e;
@@ -4467,7 +4568,7 @@ var gn = 7, _n = class {
4467
4568
  }
4468
4569
  width(e) {
4469
4570
  let t = e.inlineWidth ?? this.grid.DEFAULT_COLUMN_WIDTH_PX;
4470
- return Math.min(80, Math.max(6, Math.round(t / gn * 10) / 10));
4571
+ return Math.min(80, Math.max(6, Math.round(t / Mn * 10) / 10));
4471
4572
  }
4472
4573
  value(e, t) {
4473
4574
  let { exportValue: n } = e.def, r = n ? n(t) : t[e.key];
@@ -4475,7 +4576,7 @@ var gn = 7, _n = class {
4475
4576
  }
4476
4577
  aggregateOf(e, t) {
4477
4578
  let n = e.aggregate;
4478
- return n ? He(n, t.map((t) => this.value(e, t)), t) : null;
4579
+ return n ? et(n, t.map((t) => this.value(e, t)), t) : null;
4479
4580
  }
4480
4581
  table(e = {}) {
4481
4582
  let t = this.columns(e.columns), n = e.groups ?? !0, r = [], i = (e, a, o) => {
@@ -4490,7 +4591,7 @@ var gn = 7, _n = class {
4490
4591
  }), i(s.rows, n ? a + 1 : a, o || n && e);
4491
4592
  } else {
4492
4593
  if (s.placeholder) continue;
4493
- let e = De(s) ? s.level : a;
4594
+ let e = W(s) ? s.level : a;
4494
4595
  r.push({
4495
4596
  kind: "data",
4496
4597
  level: e,
@@ -4539,7 +4640,7 @@ var gn = 7, _n = class {
4539
4640
  let { title: t } = this.grid.props.def, n = typeof t == "string" && t.trim() ? t.trim() : this.grid.localeText.exportFileName;
4540
4641
  return e.fileName?.trim() || n;
4541
4642
  }
4542
- }, vn = class {
4643
+ }, Pn = class {
4543
4644
  grid;
4544
4645
  constructor(e) {
4545
4646
  this.grid = e;
@@ -4561,7 +4662,236 @@ var gn = 7, _n = class {
4561
4662
  }
4562
4663
  setGlobalFilter = (e) => this.grid.setGlobalFilter(e);
4563
4664
  clearAllFilters = () => this.grid.clearAllFilters();
4564
- }, yn = {
4665
+ }, Fn = class {
4666
+ grid;
4667
+ constructor(e) {
4668
+ this.grid = e;
4669
+ }
4670
+ get config() {
4671
+ return this.grid.props.def.list ?? {};
4672
+ }
4673
+ get breakpoint() {
4674
+ return this.config.breakpoint ?? 576;
4675
+ }
4676
+ _width = 0;
4677
+ get width() {
4678
+ return this._width;
4679
+ }
4680
+ get active() {
4681
+ let e = this.grid.props.def.layout ?? "auto";
4682
+ return e === "auto" ? this._width > 0 && this._width < this.breakpoint : e === "list";
4683
+ }
4684
+ setWidth = (e) => {
4685
+ let t = this.active;
4686
+ this._width = e, this.active !== t && this.grid.notify();
4687
+ };
4688
+ layout = q(() => {
4689
+ let e = this.grid.groupColumns, t = this.grid.columns.value.visibleLeafs.filter((t) => t.isData && !e.has(t.key) && t.def.list !== "hidden"), n = (e) => e.def.list, r = (e) => n(e) === void 0, i = this.grid.tree.enabled ? this.grid.tree.columnKey : void 0, a = t.find((e) => n(e) === "title") ?? t.find((e) => e.key === i && r(e)) ?? t.find(r), o = t.find((e) => e !== a && n(e) === "end") ?? t.find((e) => e !== a && r(e) && e.isEndAligned), s = t.find((e) => n(e) === "kicker"), c = t.filter((e) => n(e) === "subtitle"), l = this.config.fields ?? 4, u = [], d = [];
4690
+ for (let e of t) {
4691
+ if (e === a || e === o || e === s || c.includes(e)) continue;
4692
+ let t = n(e);
4693
+ t === "field" || t === void 0 && u.length < l ? u.push(e) : d.push(e);
4694
+ }
4695
+ return {
4696
+ title: a,
4697
+ kicker: s,
4698
+ subtitle: c,
4699
+ end: o,
4700
+ fields: u,
4701
+ detail: d
4702
+ };
4703
+ }, () => [this.grid.columns]);
4704
+ get recordColumns() {
4705
+ let { title: e, kicker: t, subtitle: n, end: r, fields: i, detail: a } = this.layout.value, o = /* @__PURE__ */ new Set([
4706
+ e,
4707
+ t,
4708
+ r,
4709
+ ...n,
4710
+ ...i,
4711
+ ...a
4712
+ ]);
4713
+ return this.grid.columns.value.visibleLeafs.filter((e) => o.has(e));
4714
+ }
4715
+ get batch() {
4716
+ return this.config.batchSize ?? 20;
4717
+ }
4718
+ _limit;
4719
+ get query() {
4720
+ let { grid: e } = this;
4721
+ return JSON.stringify([
4722
+ e.globalFilterValue,
4723
+ e.columnFilters,
4724
+ e.sortColumn,
4725
+ e.sortDirection,
4726
+ [...e.groupColumns],
4727
+ e.source.enabled ? e.source.queryVersion : e.data.length
4728
+ ]);
4729
+ }
4730
+ get count() {
4731
+ if (this.grid.isPaginated) return Infinity;
4732
+ let { query: e } = this;
4733
+ return this._limit?.query !== e && (this._limit = {
4734
+ query: e,
4735
+ count: this.batch
4736
+ }), this._limit.count;
4737
+ }
4738
+ _more = 0;
4739
+ get visibleItems() {
4740
+ let e = this.grid.flatRows.value, t = this.count, n = [], r = 0;
4741
+ for (; r < e.length && n.length < t; r++) {
4742
+ let t = e[r];
4743
+ t.kind !== "detail" && n.push({
4744
+ row: t,
4745
+ index: r
4746
+ });
4747
+ }
4748
+ for (; r < e.length && e[r].kind === "detail";) r++;
4749
+ return this._more = e.length - r, n;
4750
+ }
4751
+ get hasMore() {
4752
+ return !this.grid.isPaginated && this._more > 0;
4753
+ }
4754
+ get nextBatch() {
4755
+ return Math.min(this.batch, this._more);
4756
+ }
4757
+ showMore = () => {
4758
+ this._limit = {
4759
+ query: this.query,
4760
+ count: this.count + this.batch
4761
+ }, this.grid.notify();
4762
+ };
4763
+ _selecting = !1;
4764
+ get selecting() {
4765
+ return !!this.grid.props.def.rowSelection && this._selecting;
4766
+ }
4767
+ setSelecting = (e) => {
4768
+ this._selecting !== e && (this._selecting = e, this.grid.notify());
4769
+ };
4770
+ checkboxId(e) {
4771
+ return `${this.grid.identifier}-pick-${encodeURIComponent(String(e))}`;
4772
+ }
4773
+ _sheet = null;
4774
+ get sheet() {
4775
+ return this._sheet;
4776
+ }
4777
+ openSheet = (e) => {
4778
+ this._sheet !== e && (this._sheet = e, this.grid.notify());
4779
+ };
4780
+ get sortableColumns() {
4781
+ return this.grid.columns.value.visibleLeafs.filter((e) => e.isData && e.sortable);
4782
+ }
4783
+ get sortedColumn() {
4784
+ let e = this.grid.sortColumn;
4785
+ if (e !== void 0) return this.sortableColumns.find((t) => t.key === e);
4786
+ }
4787
+ get filterableColumns() {
4788
+ return this.grid.columns.value.visibleLeafs.filter((e) => e.isData && !!e.filterConfig);
4789
+ }
4790
+ get activeFilters() {
4791
+ let e = this.grid.columnFilters;
4792
+ return this.grid.columns.value.leafs.flatMap((t) => {
4793
+ let n = e[t.key];
4794
+ return n ? [{
4795
+ column: t,
4796
+ label: String(t.header ?? t.key),
4797
+ value: this.describe(t, n)
4798
+ }] : [];
4799
+ });
4800
+ }
4801
+ describe(e, t) {
4802
+ switch (t.type) {
4803
+ case "text": return `“${t.value}”`;
4804
+ case "number": return t.operator === "between" ? `${t.value}–${t.valueTo ?? ""}` : `${Ln[t.operator]} ${t.value}`;
4805
+ case "multiselect": {
4806
+ let n = e.filterOptions, r = t.values.map((e) => e === null ? this.grid.localeText.filterEmptyValue : n.find((t) => t.value === e)?.label ?? String(e)), i = r.slice(0, 2).join(", ");
4807
+ return r.length > 2 ? `${i} +${r.length - 2}` : i;
4808
+ }
4809
+ case "date": return t.operator === "between" ? we()?.describeDay(t.value, t.valueTo ?? t.value) ?? `${t.value}–${t.valueTo ?? ""}` : `${Rn[t.operator]} ${we()?.describeDay(t.value) ?? t.value}`;
4810
+ }
4811
+ }
4812
+ _record = null;
4813
+ get record() {
4814
+ if (!this._record) return;
4815
+ let e = this.grid.flatRows.value, { index: t, key: n } = this._record;
4816
+ if (zn(e[t]) && e[t].key === n) return e[t];
4817
+ let r = -1;
4818
+ for (let t = 0; t < Math.min(e.length, In) && r === -1; t++) {
4819
+ let i = e[t];
4820
+ zn(i) && i.key === n && (r = t);
4821
+ }
4822
+ if (r !== -1) return this._record = {
4823
+ index: r,
4824
+ key: n
4825
+ }, e[r];
4826
+ }
4827
+ get recordViewEnabled() {
4828
+ return this.config.recordView ?? !0;
4829
+ }
4830
+ openRecord = (e, t) => {
4831
+ this._record = {
4832
+ index: t,
4833
+ key: e.key
4834
+ }, this.grid.notify();
4835
+ };
4836
+ closeRecord = () => {
4837
+ this._record && (this._record = null, this.grid.notify());
4838
+ };
4839
+ neighbour(e) {
4840
+ if (!this.record || !this._record) return -1;
4841
+ let t = this.grid.flatRows.value;
4842
+ for (let n = this._record.index + e; n >= 0 && n < t.length; n += e) {
4843
+ let e = t[n];
4844
+ if (zn(e) && !e.placeholder) return n;
4845
+ }
4846
+ return -1;
4847
+ }
4848
+ get hasPreviousRecord() {
4849
+ return this.neighbour(-1) !== -1;
4850
+ }
4851
+ get hasNextRecord() {
4852
+ return this.neighbour(1) !== -1;
4853
+ }
4854
+ stepRecord = (e) => {
4855
+ let t = this.neighbour(e);
4856
+ t !== -1 && (this._record = {
4857
+ index: t,
4858
+ key: this.grid.flatRows.value[t].key
4859
+ }, this._limit && t >= this._limit.count && (this._limit = {
4860
+ query: this.query,
4861
+ count: t + 1
4862
+ }), this.grid.notify());
4863
+ };
4864
+ get recordPosition() {
4865
+ if (!this.record || !this._record) return;
4866
+ if (this.grid.source.enabled) return {
4867
+ position: this._record.index + 1,
4868
+ total: this.grid.totalRowCount
4869
+ };
4870
+ let e = this.grid.flatRows.value, t = 0, n = 0;
4871
+ for (let r = 0; r < e.length; r++) zn(e[r]) && (n++, r <= this._record.index && t++);
4872
+ return {
4873
+ position: t,
4874
+ total: n
4875
+ };
4876
+ }
4877
+ }, In = 1e4, Ln = {
4878
+ eq: "=",
4879
+ ne: "≠",
4880
+ gt: ">",
4881
+ gte: "≥",
4882
+ lt: "<",
4883
+ lte: "≤"
4884
+ }, Rn = {
4885
+ on: "=",
4886
+ before: "<",
4887
+ after: ">"
4888
+ };
4889
+ function zn(e) {
4890
+ return !!e && e.kind === "row";
4891
+ }
4892
+ //#endregion
4893
+ //#region src/components/dataGrid/models/localeText.ts
4894
+ var Bn = {
4565
4895
  searchPlaceholder: "Search...",
4566
4896
  columnsMenu: "Columns",
4567
4897
  columnsMenuLabel: (e, t) => `Columns, ${e} of ${t} shown`,
@@ -4605,6 +4935,8 @@ var gn = 7, _n = class {
4605
4935
  filterSelectClear: "Clear",
4606
4936
  filterSelectAll: "Select All",
4607
4937
  filterEmptyValue: "(empty)",
4938
+ booleanTrue: "Yes",
4939
+ booleanFalse: "No",
4608
4940
  noRows: "empty",
4609
4941
  loadingRows: "loading...",
4610
4942
  selectRow: (e) => `Select row ${e}`,
@@ -4636,8 +4968,27 @@ var gn = 7, _n = class {
4636
4968
  previousPage: "Previous page",
4637
4969
  nextPage: "Next page",
4638
4970
  lastPage: "Last page",
4971
+ sortBy: "Sort",
4972
+ sortedBy: (e, t) => `${e} ${t ? "↓" : "↑"}`,
4973
+ ascending: "Ascending",
4974
+ descending: "Descending",
4975
+ filters: "Filters",
4976
+ filtersLabel: (e) => e > 0 ? `Filters, ${e} applied` : "Filters",
4977
+ showRows: (e) => e === 1 ? "Show 1 row" : `Show ${e} rows`,
4978
+ close: "Close",
4979
+ showMore: (e) => `Show ${e} more`,
4980
+ shownCount: (e, t) => `${e} of ${t}`,
4981
+ recordPosition: (e, t) => `${e} of ${t}`,
4982
+ previousRow: "Previous row",
4983
+ nextRow: "Next row",
4984
+ details: "Details",
4985
+ selectRows: "Select",
4986
+ clearSearch: "Clear search",
4987
+ edit: "Edit",
4988
+ selectedRows: (e) => `${e} selected`,
4989
+ selectAll: "Select all",
4639
4990
  selectionAnnouncement: (e, t) => e === 0 ? "No rows selected" : `${e} of ${t} rows selected`
4640
- }, bn = class {
4991
+ }, Vn = class {
4641
4992
  grid;
4642
4993
  constructor(e) {
4643
4994
  this.grid = e;
@@ -4693,16 +5044,16 @@ var gn = 7, _n = class {
4693
5044
  let t = parseInt(e, 10);
4694
5045
  isNaN(t) || this.grid.changePage(Math.max(1, Math.min(t, this.totalPages)));
4695
5046
  };
4696
- }, xn = /["\t\r\n]/;
4697
- function Sn(e) {
5047
+ }, Hn = /["\t\r\n]/;
5048
+ function Un(e) {
4698
5049
  if (e == null) return "";
4699
5050
  let t = e instanceof Date ? e.toISOString() : String(e);
4700
- return xn.test(t) ? `"${t.split("\"").join("\"\"")}"` : t;
5051
+ return Hn.test(t) ? `"${t.split("\"").join("\"\"")}"` : t;
4701
5052
  }
4702
- function Cn(e) {
4703
- return e.map((e) => e.map(Sn).join(" ")).join("\r\n");
5053
+ function Wn(e) {
5054
+ return e.map((e) => e.map(Un).join(" ")).join("\r\n");
4704
5055
  }
4705
- function wn(e) {
5056
+ function Gn(e) {
4706
5057
  let t = [], n = [], r = "", i = !1;
4707
5058
  for (let a = 0; a < e.length; a++) {
4708
5059
  let o = e[a];
@@ -4710,10 +5061,10 @@ function wn(e) {
4710
5061
  }
4711
5062
  return (r !== "" || n.length > 0) && (n.push(r), t.push(n)), t;
4712
5063
  }
4713
- function Tn(e, t) {
5064
+ function Kn(e, t) {
4714
5065
  return e?.row === t?.row && e?.column === t?.column;
4715
5066
  }
4716
- var En = class {
5067
+ var qn = class {
4717
5068
  grid;
4718
5069
  constructor(e) {
4719
5070
  this.grid = e;
@@ -4759,7 +5110,7 @@ var En = class {
4759
5110
  row: e,
4760
5111
  column: t
4761
5112
  }, i = n && this._anchor ? this._anchor : r;
4762
- Tn(this._focus, r) && Tn(this._anchor, i) || (this._anchor = i, this._focus = r, this.grid.notifyRows(), this.emit(n ? "extend" : "select"));
5113
+ Kn(this._focus, r) && Kn(this._anchor, i) || (this._anchor = i, this._focus = r, this.grid.notifyRows(), this.emit(n ? "extend" : "select"));
4763
5114
  }
4764
5115
  syncCurrent(e, t) {
4765
5116
  this.isCurrent(e, t) || this.setCurrent(e, t);
@@ -4810,7 +5161,7 @@ var En = class {
4810
5161
  onCopy = (e) => {
4811
5162
  if (!this._focus || !e.clipboardData) return;
4812
5163
  let t = e.currentTarget.ownerDocument.defaultView?.getSelection();
4813
- t && !t.isCollapsed || (e.clipboardData.setData("text/plain", Cn(this.values())), e.preventDefault());
5164
+ t && !t.isCollapsed || (e.clipboardData.setData("text/plain", Wn(this.values())), e.preventDefault());
4814
5165
  };
4815
5166
  pasteBounds(e, t) {
4816
5167
  let n = this.bounds;
@@ -4827,10 +5178,10 @@ var En = class {
4827
5178
  if (!this._focus || !e.clipboardData || this.grid.edits.isOpen || !this.grid.edits.enabled) return;
4828
5179
  let t = e.clipboardData.getData("text/plain");
4829
5180
  if (!t) return;
4830
- let n = wn(t), r = n.reduce((e, t) => Math.max(e, t.length), 0), i = this.pasteBounds(n.length, r);
5181
+ let n = Gn(t), r = n.reduce((e, t) => Math.max(e, t.length), 0), i = this.pasteBounds(n.length, r);
4831
5182
  i && (e.preventDefault(), this.grid.edits.paste(i, (e, t) => n[e % n.length][t % r] ?? ""));
4832
5183
  };
4833
- }, Dn = class extends U {
5184
+ }, Jn = class extends U {
4834
5185
  node;
4835
5186
  level;
4836
5187
  position;
@@ -4881,10 +5232,10 @@ var En = class {
4881
5232
  };
4882
5233
  //#endregion
4883
5234
  //#region src/components/dataGrid/models/treeModel.ts
4884
- function On(e) {
5235
+ function Yn(e) {
4885
5236
  return JSON.stringify(e);
4886
5237
  }
4887
- var kn = class {
5238
+ var Xn = class {
4888
5239
  grid;
4889
5240
  constructor(e) {
4890
5241
  this.grid = e;
@@ -4938,9 +5289,9 @@ var kn = class {
4938
5289
  data: e,
4939
5290
  children: []
4940
5291
  };
4941
- n.set(On(r), i);
5292
+ n.set(Yn(r), i);
4942
5293
  let a;
4943
- for (let e = r.length - 1; e > 0 && !a; e--) a = n.get(On(r.slice(0, e)));
5294
+ for (let e = r.length - 1; e > 0 && !a; e--) a = n.get(Yn(r.slice(0, e)));
4944
5295
  (a ? a.children : t).push(i);
4945
5296
  }), t;
4946
5297
  }
@@ -4956,7 +5307,7 @@ var kn = class {
4956
5307
  }
4957
5308
  sortNodes(e) {
4958
5309
  let { sortColumn: t, sortDirection: n } = this.grid;
4959
- return t === void 0 ? e : W.sortBy(e, (e) => e.data[t], n).map((e) => ({
5310
+ return t === void 0 ? e : G.sortBy(e, (e) => e.data[t], n).map((e) => ({
4960
5311
  data: e.data,
4961
5312
  children: this.sortNodes(e.children)
4962
5313
  }));
@@ -4986,7 +5337,7 @@ var kn = class {
4986
5337
  }
4987
5338
  rowList() {
4988
5339
  let e = 0, t = (n, r, i) => n.map((a, o) => {
4989
- let s = new Dn(this.grid, a, e++, r, o, n.length, i);
5340
+ let s = new Jn(this.grid, a, e++, r, o, n.length, i);
4990
5341
  return s.treeExpanded && (s.children = t(a.children, r + 1, s)), s;
4991
5342
  });
4992
5343
  return t(this.nodes.value, 0);
@@ -5028,7 +5379,16 @@ var kn = class {
5028
5379
  let n = !this.isExpanded(e, t);
5029
5380
  n ? (this._opened.add(e), this._closed.delete(e)) : (this._closed.add(e), this._opened.delete(e)), this.grid.treeExpansionChanged(), this.grid.props.onExpandedTreeKeysChange?.(this.expandedKeys(), { reason: n ? "expand" : "collapse" }), this.grid.notify();
5030
5381
  };
5031
- }, An = {}, jn = class e {
5382
+ }, Zn = {};
5383
+ function Qn(e) {
5384
+ if (typeof e == "string" && /^\d{4}-\d{2}-\d{2}$/.test(e)) return e;
5385
+ if (!(e instanceof Date) && typeof e != "string" && typeof e != "number") return null;
5386
+ let t = e instanceof Date ? e : new Date(e);
5387
+ if (Number.isNaN(t.getTime())) return null;
5388
+ let n = (e) => String(e).padStart(2, "0");
5389
+ return `${String(t.getFullYear()).padStart(4, "0")}-${n(t.getMonth() + 1)}-${n(t.getDate())}`;
5390
+ }
5391
+ var $n = class t {
5032
5392
  props;
5033
5393
  constructor(e, t) {
5034
5394
  this.props = e, t && this.listeners.add(t);
@@ -5059,9 +5419,9 @@ var kn = class {
5059
5419
  get headerVersion() {
5060
5420
  return `${this._epoch}:${this._selectionVersion}`;
5061
5421
  }
5062
- setProps(t) {
5422
+ setProps(e) {
5063
5423
  let n = this.props;
5064
- n !== t && (e.drawnPropsChanged(n, t) && this._epoch++, this.props = t, n.def !== t.def && this.sourceColumns.clear(), (n.data !== t.data || n.def !== t.def || n.globalFilterValue !== t.globalFilterValue || n.columnFilters !== t.columnFilters || n.filters !== t.filters || n.expandedRowKeys !== t.expandedRowKeys || n.expandedTreeKeys !== t.expandedTreeKeys || n.page !== t.page || n.pageSize !== t.pageSize) && this.rows.clear(), (n.globalFilterValue !== t.globalFilterValue || n.columnFilters !== t.columnFilters || n.filters !== t.filters) && this.leaveSelectionView(), (n.data !== t.data || n.def !== t.def || n.globalFilterValue !== t.globalFilterValue || n.columnFilters !== t.columnFilters || n.filters !== t.filters) && this.tree.nodes.clear());
5424
+ n !== e && (t.drawnPropsChanged(n, e) && this._epoch++, this.props = e, n.def !== e.def && this.sourceColumns.clear(), (n.data !== e.data || n.def !== e.def || n.globalFilterValue !== e.globalFilterValue || n.columnFilters !== e.columnFilters || n.filters !== e.filters || n.expandedRowKeys !== e.expandedRowKeys || n.expandedTreeKeys !== e.expandedTreeKeys || n.page !== e.page || n.pageSize !== e.pageSize) && this.rows.clear(), (n.globalFilterValue !== e.globalFilterValue || n.columnFilters !== e.columnFilters || n.filters !== e.filters) && this.leaveSelectionView(), (n.data !== e.data || n.def !== e.def || n.globalFilterValue !== e.globalFilterValue || n.columnFilters !== e.columnFilters || n.filters !== e.filters) && this.tree.nodes.clear());
5065
5425
  }
5066
5426
  get data() {
5067
5427
  return this.props.data ?? [];
@@ -5096,7 +5456,7 @@ var kn = class {
5096
5456
  let e = this.props.def.localeText, t = this._localeText;
5097
5457
  if (t && t.from === e) return t.text;
5098
5458
  let n = {
5099
- ...yn,
5459
+ ...Bn,
5100
5460
  ...e
5101
5461
  };
5102
5462
  return this._localeText = {
@@ -5106,20 +5466,20 @@ var kn = class {
5106
5466
  }
5107
5467
  sourceColumns = q(() => {
5108
5468
  let { def: e } = this.props, t = [];
5109
- if (this.groupColumns.size > 0 && t.push(new Q({ key: G }, this)), t.push(...e.columns.map((e) => new Q(e, this))), e.rowSelection) {
5469
+ if (this.groupColumns.size > 0 && t.push(new Q({ key: K }, this)), t.push(...e.columns.map((e) => new Q(e, this))), e.rowSelection) {
5110
5470
  let n = typeof e.rowSelection == "object" && e.rowSelection.pinned ? "START" : void 0;
5111
5471
  t.unshift(new Q({
5112
- key: Fe,
5472
+ key: Ke,
5113
5473
  pin: n,
5114
5474
  width: 50,
5115
5475
  align: "center",
5116
- Cell: Qt
5476
+ Cell: hn
5117
5477
  }, this));
5118
5478
  }
5119
5479
  if (e.showRowNumber) {
5120
5480
  let n, r = 70;
5121
5481
  typeof e.showRowNumber == "object" && (e.showRowNumber.pinned && (n = "START"), r = e.showRowNumber.width ?? 70), t.unshift(new Q({
5122
- key: Pe,
5482
+ key: Ge,
5123
5483
  pin: n,
5124
5484
  width: r,
5125
5485
  align: "end"
@@ -5128,12 +5488,12 @@ var kn = class {
5128
5488
  if (e.rowDetail) {
5129
5489
  let n = e.rowDetail.pinned ? "START" : void 0, r = e.rowDetail.expandColumnWidth ?? 50, i = e.rowDetail.expandColumnHeader ?? "";
5130
5490
  t.unshift(new Q({
5131
- key: Ie,
5491
+ key: qe,
5132
5492
  header: i,
5133
5493
  pin: n,
5134
5494
  width: r,
5135
5495
  align: "center",
5136
- Cell: Zt
5496
+ Cell: mn
5137
5497
  }, this));
5138
5498
  }
5139
5499
  return t;
@@ -5152,16 +5512,16 @@ var kn = class {
5152
5512
  leafs: i,
5153
5513
  visibleLeafs: a,
5154
5514
  userVisibleLeafs: a.filter((e) => ![
5155
- Pe,
5156
- Fe,
5157
- G,
5158
- Ie
5515
+ Ge,
5516
+ Ke,
5517
+ K,
5518
+ qe
5159
5519
  ].includes(e.key)),
5160
- maxDeath: W.maxBy(r, (e) => e.death) + 1
5520
+ maxDeath: G.maxBy(r, (e) => e.death) + 1
5161
5521
  };
5162
5522
  }, () => [this.sourceColumns]);
5163
- headerRows = q(() => W.sortBy(W.groupBy(this.columns.value.flat, (e) => e.death), (e) => e.key).map((e) => {
5164
- let t = W.toRecord(W.groupBy(e.values, (e) => e.pin ?? "NO_PIN"), (e) => [e.key, e.values]);
5523
+ headerRows = q(() => G.sortBy(G.groupBy(this.columns.value.flat, (e) => e.death), (e) => e.key).map((e) => {
5524
+ let t = G.toRecord(G.groupBy(e.values, (e) => e.pin ?? "NO_PIN"), (e) => [e.key, e.values]);
5165
5525
  return [
5166
5526
  ...t.START?.filter((e) => e.isVisible) ?? [],
5167
5527
  ...t.NO_PIN?.filter((e) => e.isVisible) ?? [],
@@ -5169,7 +5529,7 @@ var kn = class {
5169
5529
  ];
5170
5530
  }), () => [this.columns]);
5171
5531
  gridTemplateColumns = q(() => {
5172
- let { visibleLeafs: e } = this.columns.value, t = W.sumBy(e, (e) => +(e.pin === "END")), n = e.length - t;
5532
+ let { visibleLeafs: e } = this.columns.value, t = G.sumBy(e, (e) => +(e.pin === "END")), n = e.length - t;
5173
5533
  return `${n > 0 ? `repeat(${n}, max-content)` : ""} ${t > 0 ? `repeat(${t}, max-content)` : ""}`.trim();
5174
5534
  }, () => [this.columns]);
5175
5535
  _globalFilterValue = "";
@@ -5192,7 +5552,7 @@ var kn = class {
5192
5552
  let t = this.globalFilterValue.trim();
5193
5553
  return !t || this.globalFilterColumns.value.some((n) => {
5194
5554
  let r = e[n];
5195
- return r != null && Xt(t, String(r));
5555
+ return r != null && pn(t, String(r));
5196
5556
  });
5197
5557
  }
5198
5558
  matchesColumnFilters(e) {
@@ -5204,7 +5564,7 @@ var kn = class {
5204
5564
  }
5205
5565
  matchesFilter(e, t) {
5206
5566
  switch (t.type) {
5207
- case "text": return !t.value.trim() || e != null && Xt(t.value, String(e));
5567
+ case "text": return !t.value.trim() || e != null && pn(t.value, String(e));
5208
5568
  case "number": {
5209
5569
  if (e == null) return !1;
5210
5570
  let n = typeof e == "number" ? e : parseFloat(String(e));
@@ -5220,6 +5580,17 @@ var kn = class {
5220
5580
  default: return !0;
5221
5581
  }
5222
5582
  }
5583
+ case "date": {
5584
+ if (!t.value) return !0;
5585
+ let n = Qn(e);
5586
+ if (!n) return !1;
5587
+ switch (t.operator) {
5588
+ case "on": return n === t.value;
5589
+ case "before": return n < t.value;
5590
+ case "after": return n > t.value;
5591
+ default: return n >= t.value && (!t.valueTo || n <= t.valueTo);
5592
+ }
5593
+ }
5223
5594
  case "multiselect": return t.values.length === 0 || t.values.includes(e);
5224
5595
  default: return !0;
5225
5596
  }
@@ -5306,15 +5677,15 @@ var kn = class {
5306
5677
  if (this.source.enabled) return this.source.rowList();
5307
5678
  if (this.tree.isEager) return this.tree.rowList();
5308
5679
  let e = this.filteredData;
5309
- if (this._sortColumn && !this.isPaginated && (e = W.sortBy(e, (e) => e[this._sortColumn], this._sortDirection)), this.groupColumns.size > 0) {
5680
+ if (this._sortColumn && !this.isPaginated && (e = G.sortBy(e, (e) => e[this._sortColumn], this._sortDirection)), this.groupColumns.size > 0) {
5310
5681
  let t = (e, n, r) => {
5311
5682
  let i = n.values().next().value;
5312
5683
  n.delete(i);
5313
- let a = W.findOrThrow(this.columns.value.leafs, (e) => e.key === i);
5314
- return this._sortColumn === "grouping-cell" && (e = W.sortBy(e, (e) => e[i], this._sortDirection)), W.groupBy(e, (e) => e[i]).map((e) => {
5684
+ let a = G.findOrThrow(this.columns.value.leafs, (e) => e.key === i);
5685
+ return this._sortColumn === "grouping-cell" && (e = G.sortBy(e, (e) => e[i], this._sortDirection)), G.groupBy(e, (e) => e[i]).map((e) => {
5315
5686
  let i;
5316
5687
  i = n.size > 0 ? t(e.values, new Set(n), r + 1) : e.values.map((e, t) => new U(this, e, r + 1 + t));
5317
- let o = new Ke(this, a, i, r, e.key);
5688
+ let o = new it(this, a, i, r, e.key);
5318
5689
  return r += 1, o.expanded && (r += i.length), o;
5319
5690
  });
5320
5691
  };
@@ -5338,14 +5709,14 @@ var kn = class {
5338
5709
  return typeof n == "number" && (e[t.widthVarName] = `${t.inlineWidth}px`), t.pin === "START" && (e[t.inlineStartVarName] = `${t.startOffset}px`), t.pin === "END" && (e[t.inlineEndVarName] = `${t.endOffset}px`), e;
5339
5710
  }, {});
5340
5711
  e[this.rowHeightVarName] = `${this.rowHeight}px`, e[this.inlineStartEdgeVarName] = `${this.inlineStartEdge}px`, this._containerWidth > 0 && (e[this.viewportWidthVarName] = `${this._containerWidth}px`);
5341
- let { visibleLeafs: t } = this.columns.value, n = t.find((e) => e.key === G);
5712
+ let { visibleLeafs: t } = this.columns.value, n = t.find((e) => e.key === K);
5342
5713
  if (n) {
5343
- let t = W.sumBy(this.groupingSpan.value, (e) => e.inlineWidth ?? 0);
5714
+ let t = G.sumBy(this.groupingSpan.value, (e) => e.inlineWidth ?? 0);
5344
5715
  e[n.groupColumnWidthVarName] = `${t}px`;
5345
5716
  }
5346
5717
  return this.groupColumns.forEach((n) => {
5347
- let r = W.findOrThrow(this.columns.value.leafs, (e) => e.key === n);
5348
- e[r.groupColumnWidthVarName] = `${W.sumBy(t, (e) => e.pin === r.pin ? e.inlineWidth ?? 0 : 0)}px`;
5718
+ let r = G.findOrThrow(this.columns.value.leafs, (e) => e.key === n);
5719
+ e[r.groupColumnWidthVarName] = `${G.sumBy(t, (e) => e.pin === r.pin ? e.inlineWidth ?? 0 : 0)}px`;
5349
5720
  }), e;
5350
5721
  }, () => [this.columns, this.flexWidths]);
5351
5722
  _containerWidth = 0;
@@ -5364,7 +5735,7 @@ var kn = class {
5364
5735
  e && Object.entries(this.sizes.value).forEach(([t, n]) => e.style.setProperty(t, n));
5365
5736
  };
5366
5737
  get isRtl() {
5367
- return t(this._sizingElement);
5738
+ return e(this._sizingElement);
5368
5739
  }
5369
5740
  setContainerWidth = (e) => {
5370
5741
  this._containerWidth !== e && (this._containerWidth = e, this.flexWidths.clear(), this.notify());
@@ -5372,8 +5743,8 @@ var kn = class {
5372
5743
  flexWidths = q(() => {
5373
5744
  let e = this._containerWidth;
5374
5745
  if (e <= 0) return {};
5375
- let t = this.columns.value.visibleLeafs, n = (e) => !e.isFlexible || this.columnWidths.has(e.key), r = W.sumBy(t.filter(n), (e) => e.baseWidth), i = t.filter((e) => !n(e)), a = W.sumBy(i, (e) => e.baseWidth), o = e - r;
5376
- if (o <= a) return W.toRecord(i, (e) => [e.key, e.baseWidth]);
5746
+ let t = this.columns.value.visibleLeafs, n = (e) => !e.isFlexible || this.columnWidths.has(e.key), r = G.sumBy(t.filter(n), (e) => e.baseWidth), i = t.filter((e) => !n(e)), a = G.sumBy(i, (e) => e.baseWidth), o = e - r;
5747
+ if (o <= a) return G.toRecord(i, (e) => [e.key, e.baseWidth]);
5377
5748
  let s = {}, c = 0;
5378
5749
  return i.forEach((e, t) => {
5379
5750
  if (t === i.length - 1) s[e.key] = o - c;
@@ -5449,28 +5820,29 @@ var kn = class {
5449
5820
  rowOffsets = q(() => {
5450
5821
  if (this.source.enabled) return this.source.rowOffsets(this.flatRows.value);
5451
5822
  let e = [], t = 0;
5452
- for (let n of this.flatRows.value) e.push(t), t += n instanceof Ee ? n.heightForOffset : this.rowHeight;
5823
+ for (let n of this.flatRows.value) e.push(t), t += n instanceof H ? n.heightForOffset : this.rowHeight;
5453
5824
  return {
5454
5825
  offsets: e,
5455
5826
  totalHeight: t
5456
5827
  };
5457
5828
  }, () => [this.flatRows]);
5458
- viewport = new ge(this);
5459
- columnVisibility = new nn(this);
5460
- filter = new vn(this);
5461
- pagination = new bn(this);
5462
- aggregation = new Ue(this);
5463
- exporter = new _n(this);
5464
- source = new pn(this);
5465
- tree = new kn(this);
5466
- edits = new Te(this);
5467
- range = new En(this);
5829
+ viewport = new ye(this);
5830
+ columnVisibility = new yn(this);
5831
+ filter = new Pn(this);
5832
+ pagination = new Vn(this);
5833
+ aggregation = new tt(this);
5834
+ exporter = new Nn(this);
5835
+ source = new kn(this);
5836
+ tree = new Xn(this);
5837
+ edits = new Re(this);
5838
+ range = new qn(this);
5839
+ list = new Fn(this);
5468
5840
  refresh = () => {
5469
5841
  this.edits.clearEdits(), this.source.invalidate();
5470
5842
  };
5471
5843
  get exportConfig() {
5472
5844
  let e = this.props.def.export;
5473
- if (e) return typeof e == "object" ? e : An;
5845
+ if (e) return typeof e == "object" ? e : Zn;
5474
5846
  }
5475
5847
  exportCsv = async (e = {}) => {
5476
5848
  let { downloadCsv: t } = await import("../gridExport.mjs");
@@ -5535,14 +5907,14 @@ var kn = class {
5535
5907
  return this.localeText.selectionAnnouncement(e, this.totalRowCount);
5536
5908
  }
5537
5909
  get groupedColumns() {
5538
- return Array.from(this.groupColumns, (e) => W.findOrThrow(this.columns.value.leafs, (t) => t.key === e));
5910
+ return Array.from(this.groupColumns, (e) => G.findOrThrow(this.columns.value.leafs, (t) => t.key === e));
5539
5911
  }
5540
5912
  selectedRows = /* @__PURE__ */ new Set();
5541
5913
  get inlineStartEdge() {
5542
- return W.sumBy(this.columns.value.start, (e) => e.inlineWidth ?? 0);
5914
+ return G.sumBy(this.columns.value.start, (e) => e.inlineWidth ?? 0);
5543
5915
  }
5544
5916
  get inlineEndEdge() {
5545
- return W.sumBy(this.columns.value.end, (e) => e.inlineWidth ?? 0);
5917
+ return G.sumBy(this.columns.value.end, (e) => e.inlineWidth ?? 0);
5546
5918
  }
5547
5919
  inlineStartEdgeVarName = "--inline-start-edge";
5548
5920
  rowHeightVarName = "--row-height";
@@ -5573,7 +5945,7 @@ var kn = class {
5573
5945
  }), this.source.invalidate(), this.tree.nodes.clear(), this.rows.clear(), this.notify();
5574
5946
  };
5575
5947
  pinColumn = (e, t) => {
5576
- let n = $t(t), r = W.findOrThrow(this.columns.value.flat, (t) => t.uniqueKey === e);
5948
+ let n = gn(t), r = G.findOrThrow(this.columns.value.flat, (t) => t.uniqueKey === e);
5577
5949
  r.pin !== n && r.pinColumn(n), this.columns.clear(), this.notify();
5578
5950
  };
5579
5951
  toggleGrouping = (e) => {
@@ -5662,48 +6034,73 @@ var kn = class {
5662
6034
  };
5663
6035
  //#endregion
5664
6036
  //#region src/components/dataGrid/useGrid.ts
5665
- function Mn(e) {
5666
- let [t] = P(() => new jn(e)), n = l("datagrid");
5667
- return t.setProps(e), t.setIdentifier(n), ne(t.subscribe, t.getSnapshot, t.getSnapshot), t;
6037
+ function er(e) {
6038
+ let [t] = P(() => new $n(e)), n = u("datagrid");
6039
+ return t.setProps(e), t.setIdentifier(n), ae(t.subscribe, t.getSnapshot, t.getSnapshot), t;
6040
+ }
6041
+ //#endregion
6042
+ //#region src/components/dataGrid/useListLayout.ts
6043
+ var tr, nr;
6044
+ function rr() {
6045
+ return nr ??= import("../dataGridList.mjs").then((e) => tr = e.default), nr;
6046
+ }
6047
+ t("(max-width: 36rem)")?.matches && rr();
6048
+ function ir(e) {
6049
+ let [t, n] = P(() => tr);
6050
+ return A(() => {
6051
+ if (!e || t) return;
6052
+ let r = !0;
6053
+ return rr().then((e) => r && n(() => e)), () => {
6054
+ r = !1;
6055
+ };
6056
+ }, [e, t]), t;
5668
6057
  }
5669
6058
  //#endregion
5670
6059
  //#region src/components/dataGrid.tsx
5671
- function Nn(e, t) {
5672
- let n = Mn(e), i = N(null);
6060
+ function ar(e, t) {
6061
+ let n = er(e), a = N(null);
5673
6062
  j(t, () => ({
5674
6063
  get element() {
5675
- return i.current;
6064
+ return a.current;
5676
6065
  },
5677
6066
  exportCsv: n.exportCsv,
5678
6067
  exportXlsx: n.exportXlsx,
5679
6068
  refresh: n.refresh,
5680
6069
  clearEdits: n.edits.clearEdits
5681
6070
  }), [n]);
5682
- let { component: a, data: o, def: s, loading: c, filters: l, globalFilterValue: u, columnFilters: d, expandedRowKeys: f, expandedTreeKeys: p, page: m, pageSize: h, onSelectedRowKeysChange: g, onSelectionChange: v, onGlobalFilterChange: y, onColumnFiltersChange: b, onExpandedRowKeysChange: x, onExpandedTreeKeysChange: S, onCellEditsChange: C, onPaginationChange: w, onPageChange: T, onPageSizeChange: E, onSortingChange: ee, onSortChange: D, onServerStateChange: O, style: k, ...A } = e;
5683
- return M(() => {
5684
- let e = i.current;
6071
+ let { component: o, data: s, def: c, loading: l, filters: u, globalFilterValue: d, columnFilters: f, expandedRowKeys: p, expandedTreeKeys: h, page: g, pageSize: _, onSelectedRowKeysChange: v, onSelectionChange: y, onGlobalFilterChange: b, onColumnFiltersChange: x, onExpandedRowKeysChange: S, onExpandedTreeKeysChange: C, onCellEditsChange: w, onPaginationChange: T, onPageChange: ee, onPageSizeChange: te, onSortingChange: ne, onSortChange: E, onServerStateChange: D, style: O, ...k } = e;
6072
+ re(() => {
6073
+ let e = a.current;
5685
6074
  if (e) return n.setSizingElement(e), () => n.setSizingElement(null);
5686
- }, [n]), /* @__PURE__ */ R(r, {
5687
- ref: i,
6075
+ }, [n]), r(() => {
6076
+ let e = a.current;
6077
+ if (!e) return;
6078
+ n.list.setWidth(e.clientWidth);
6079
+ let t = new ResizeObserver(() => n.list.setWidth(e.clientWidth));
6080
+ return t.observe(e), () => t.disconnect();
6081
+ }, [n]);
6082
+ let A = n.list.active, M = ir(A);
6083
+ return /* @__PURE__ */ L(i, {
6084
+ ref: a,
5688
6085
  component: n.componentName,
5689
- ...A,
6086
+ variant: { list: !!M && A },
6087
+ ...k,
5690
6088
  style: {
5691
6089
  ...n.sizes.value,
5692
- ...k
6090
+ ...O
5693
6091
  },
5694
- children: [
5695
- n.props.def.topBar && /* @__PURE__ */ L(Jt, { grid: n }),
5696
- /* @__PURE__ */ L(zt, { grid: n }),
5697
- /* @__PURE__ */ L(Rt, { grid: n }),
5698
- n.props.def.bottomBar && /* @__PURE__ */ L(pe, { grid: n }),
5699
- /* @__PURE__ */ L(_, {
5700
- props: { role: "status" },
5701
- children: n.selectionAnnouncement
5702
- })
5703
- ]
6092
+ children: [M && A ? /* @__PURE__ */ I(M, { grid: n }) : /* @__PURE__ */ L(F, { children: [
6093
+ n.props.def.topBar && /* @__PURE__ */ I(dn, { grid: n }),
6094
+ /* @__PURE__ */ I(tn, { grid: n }),
6095
+ /* @__PURE__ */ I(en, { grid: n }),
6096
+ n.props.def.bottomBar && /* @__PURE__ */ I(he, { grid: n })
6097
+ ] }), /* @__PURE__ */ I(m, {
6098
+ props: { role: "status" },
6099
+ children: n.selectionAnnouncement
6100
+ })]
5704
6101
  });
5705
6102
  }
5706
- var Pn = ee(Nn);
5707
- Nn.displayName = "DataGrid";
6103
+ var or = E(ar);
6104
+ ar.displayName = "DataGrid";
5708
6105
  //#endregion
5709
- export { yn as DATA_GRID_LOCALE_TEXT, Pn as default };
6106
+ export { Bn as DATA_GRID_LOCALE_TEXT, $t as a, Z as c, gt as d, or as default, Y as f, tn as i, bt as l, Te as m, on as n, Bt as o, W as p, rn as r, jt as s, cn as t, yt as u };