@noxickon/onyx 6.7.0 → 6.7.1

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 (149) hide show
  1. package/dist/code-block/CodeBlock.styles.d.ts +2 -2
  2. package/dist/code-block/CodeBlock2.js +1 -1
  3. package/dist/components/Accordion/Accordion.js +1 -1
  4. package/dist/components/Accordion/Accordion.styles.d.ts +2 -2
  5. package/dist/components/Alert/Alert.js +16 -14
  6. package/dist/components/Alert/Alert.styles.d.ts +2 -2
  7. package/dist/components/AlertDialog/AlertDialog.styles.d.ts +2 -2
  8. package/dist/components/AnimatedGradientText/AnimatedGradientText.styles.d.ts +2 -2
  9. package/dist/components/AnimatedGradientText/AnimatedGradientText2.js +1 -1
  10. package/dist/components/AppLayout/AppLayout.js +1 -1
  11. package/dist/components/AppLayout/AppLayout.styles.d.ts +26 -26
  12. package/dist/components/Autocomplete/Autocomplete.js +2 -2
  13. package/dist/components/Autocomplete/Autocomplete.styles.d.ts +64 -64
  14. package/dist/components/Avatar/Avatar.styles.d.ts +4 -4
  15. package/dist/components/Badge/Badge.js +1 -1
  16. package/dist/components/Badge/Badge.styles.d.ts +2 -2
  17. package/dist/components/BlurSwitch/BlurSwitch.styles.d.ts +2 -2
  18. package/dist/components/BlurSwitch/BlurSwitch.styles.js +4 -3
  19. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  20. package/dist/components/Breadcrumb/Breadcrumb.styles.d.ts +29 -29
  21. package/dist/components/Button/Button.js +2 -2
  22. package/dist/components/Button/Button.styles.d.ts +2 -2
  23. package/dist/components/Card/Card.styles.d.ts +2 -2
  24. package/dist/components/Checkbox/Checkbox.styles.d.ts +14 -14
  25. package/dist/components/Checkbox/Checkbox.types.d.ts +4 -1
  26. package/dist/components/CheckboxGroup/CheckboxGroup.styles.d.ts +8 -8
  27. package/dist/components/Chip/Chip.js +1 -1
  28. package/dist/components/Chip/Chip.styles.d.ts +2 -2
  29. package/dist/components/Collapsible/Collapsible.js +2 -2
  30. package/dist/components/Collapsible/Collapsible.styles.d.ts +20 -20
  31. package/dist/components/Combobox/Combobox.js +4 -4
  32. package/dist/components/Combobox/Combobox.styles.d.ts +16 -16
  33. package/dist/components/Command/Command.js +2 -2
  34. package/dist/components/Command/Command.styles.d.ts +2 -2
  35. package/dist/components/ContextMenu/ContextMenu.styles.d.ts +2 -2
  36. package/dist/components/CopyButton/CopyButton.js +1 -1
  37. package/dist/components/CopyButton/CopyButton.styles.d.ts +2 -2
  38. package/dist/components/CopyInput/CopyInput.js +1 -1
  39. package/dist/components/CopyInput/CopyInput.styles.d.ts +2 -2
  40. package/dist/components/DataTable/DataTable.d.ts +1 -1
  41. package/dist/components/DataTable/DataTable.js +396 -328
  42. package/dist/components/DataTable/DataTable.styles.d.ts +26 -5
  43. package/dist/components/DataTable/DataTable.styles.js +17 -7
  44. package/dist/components/DataTable/DataTable.types.d.ts +10 -0
  45. package/dist/components/DataTable/DataTable.utils.js +1 -1
  46. package/dist/components/DescriptionList/DescriptionList.js +1 -1
  47. package/dist/components/DescriptionList/DescriptionList.styles.d.ts +14 -14
  48. package/dist/components/Dialog/Dialog.js +1 -1
  49. package/dist/components/Dialog/Dialog.styles.d.ts +2 -2
  50. package/dist/components/Drawer/Drawer.styles.d.ts +2 -2
  51. package/dist/components/Drawer/Drawer.styles.js +2 -2
  52. package/dist/components/Drawer/Drawer2.js +4 -4
  53. package/dist/components/Dropdown/Dropdown.js +1 -1
  54. package/dist/components/Dropdown/Dropdown.styles.d.ts +2 -2
  55. package/dist/components/Field/Field.styles.d.ts +29 -29
  56. package/dist/components/Fieldset/Fieldset.styles.d.ts +11 -11
  57. package/dist/components/Footer/Footer.js +1 -1
  58. package/dist/components/Footer/Footer.styles.d.ts +2 -2
  59. package/dist/components/Header/Header.js +1 -1
  60. package/dist/components/Header/Header.styles.d.ts +2 -2
  61. package/dist/components/Header/Header.styles.js +1 -1
  62. package/dist/components/HoldToDelete/HoldToDelete.css +1 -1
  63. package/dist/components/HoldToDelete/HoldToDelete.styles.d.ts +48 -21
  64. package/dist/components/HoldToDelete/HoldToDelete.styles.js +32 -17
  65. package/dist/components/HoldToDelete/HoldToDelete2.js +97 -85
  66. package/dist/components/IconTile/IconTile.styles.d.ts +8 -8
  67. package/dist/components/Input/Input.js +1 -1
  68. package/dist/components/Input/Input.styles.d.ts +26 -26
  69. package/dist/components/Kbd/Kbd.styles.d.ts +1 -1
  70. package/dist/components/Main/Main.styles.d.ts +1 -1
  71. package/dist/components/Meter/Meter.styles.d.ts +20 -20
  72. package/dist/components/NavigationMenu/NavigationMenu.js +1 -1
  73. package/dist/components/NavigationMenu/NavigationMenu.styles.d.ts +2 -2
  74. package/dist/components/NumberInput/NumberInput.js +1 -1
  75. package/dist/components/NumberInput/NumberInput.styles.d.ts +32 -32
  76. package/dist/components/OtpField/OtpField.styles.d.ts +14 -14
  77. package/dist/components/PageProgress/PageProgress.styles.d.ts +14 -14
  78. package/dist/components/PageProgress/PageProgress.styles.js +1 -1
  79. package/dist/components/Pagination/Pagination.js +1 -1
  80. package/dist/components/Pagination/Pagination.styles.d.ts +2 -2
  81. package/dist/components/Popover/Popover.js +1 -1
  82. package/dist/components/Popover/Popover.styles.d.ts +26 -26
  83. package/dist/components/Popover/Popover.styles.js +1 -1
  84. package/dist/components/Progress/Progress.styles.d.ts +20 -20
  85. package/dist/components/Radio/Radio.styles.d.ts +19 -19
  86. package/dist/components/ResponsiveOverlay/ResponsiveOverlay.d.ts +1 -1
  87. package/dist/components/ResponsiveOverlay/ResponsiveOverlay.js +193 -157
  88. package/dist/components/ResponsiveOverlay/ResponsiveOverlay.styles.d.ts +11 -2
  89. package/dist/components/ResponsiveOverlay/ResponsiveOverlay.styles.js +2 -1
  90. package/dist/components/ResponsiveOverlay/ResponsiveOverlay.types.d.ts +9 -2
  91. package/dist/components/ResponsiveOverlay/index.d.ts +1 -1
  92. package/dist/components/ScrollArea/ScrollArea.styles.d.ts +23 -23
  93. package/dist/components/ScrollArea/ScrollArea2.js +1 -1
  94. package/dist/components/Select/Select.js +1 -1
  95. package/dist/components/Select/Select.styles.d.ts +38 -38
  96. package/dist/components/Separator/Separator.styles.d.ts +1 -1
  97. package/dist/components/Sidebar/Sidebar.styles.d.ts +15 -15
  98. package/dist/components/Sidebar/Sidebar2.js +19 -19
  99. package/dist/components/SidebarRail/SidebarRail.js +1 -1
  100. package/dist/components/SidebarRail/SidebarRail.styles.d.ts +17 -17
  101. package/dist/components/Skeleton/Skeleton.styles.d.ts +11 -11
  102. package/dist/components/Slider/Slider.styles.d.ts +20 -20
  103. package/dist/components/Spinner/Spinner.styles.d.ts +2 -2
  104. package/dist/components/StatusDisplay/StatusDisplay.styles.d.ts +2 -2
  105. package/dist/components/Switch/Switch.styles.d.ts +11 -11
  106. package/dist/components/TabBar/TabBar.js +1 -1
  107. package/dist/components/TabBar/TabBar.styles.d.ts +2 -2
  108. package/dist/components/Table/Table.js +1 -1
  109. package/dist/components/Table/Table.styles.d.ts +8 -8
  110. package/dist/components/Table/Table.styles.js +11 -11
  111. package/dist/components/Tabs/Tabs.js +4 -4
  112. package/dist/components/Tabs/Tabs.styles.d.ts +2 -2
  113. package/dist/components/Textarea/Textarea.js +2 -2
  114. package/dist/components/Textarea/Textarea.styles.d.ts +39 -39
  115. package/dist/components/Toast/Toast.css +1 -1
  116. package/dist/components/Toast/Toast.styles.d.ts +2 -2
  117. package/dist/components/Toast/Toast.styles.js +1 -1
  118. package/dist/components/Toast/Toast2.js +16 -14
  119. package/dist/components/Toggle/Toggle.js +2 -2
  120. package/dist/components/Toggle/Toggle.styles.d.ts +6 -6
  121. package/dist/components/Tooltip/Tooltip.js +1 -1
  122. package/dist/components/Tooltip/Tooltip.styles.d.ts +17 -17
  123. package/dist/components/Tooltip/Tooltip.styles.js +1 -1
  124. package/dist/components/Typewriter/Typewriter.styles.d.ts +14 -14
  125. package/dist/components/Typewriter/Typewriter2.js +4 -4
  126. package/dist/components/VirtualList/VirtualList.styles.d.ts +14 -14
  127. package/dist/context/Auth/Auth.types.d.ts +3 -1
  128. package/dist/context/Theme/Theme.js +1 -1
  129. package/dist/hooks/useCommandShortcut/useCommandShortcut.js +1 -1
  130. package/dist/hooks/useFilter/useFilter.js +1 -1
  131. package/dist/hooks/useMediaQuery/useMediaQuery.js +1 -1
  132. package/dist/hooks/useVirtualizer/useVirtualizer.js +2 -2
  133. package/dist/internal/hooks/useControllableState/useControllableState.types.d.ts +1 -1
  134. package/dist/internal/hooks/useFormState/useFormState.js +81 -81
  135. package/dist/internal/styles/addonStyles.d.ts +28 -28
  136. package/dist/internal/styles/dialogSurfaceStyles.d.ts +1 -1
  137. package/dist/internal/styles/dialogSurfaceStyles.js +2 -2
  138. package/dist/internal/styles/menuSurfaceStyles.d.ts +1 -1
  139. package/dist/internal/styles/menuSurfaceStyles.js +1 -1
  140. package/dist/internal/styles/stackedLayerStyles.d.ts +1 -0
  141. package/dist/internal/styles/stackedLayerStyles.js +4 -0
  142. package/dist/internal/styles/tableCellStyles.d.ts +5 -0
  143. package/dist/internal/styles/tableCellStyles.js +7 -0
  144. package/dist/rest/executors/restExecutor.js +1 -1
  145. package/dist/rich-editor/RichEditor.styles.d.ts +36 -36
  146. package/dist/rich-editor/RichEditor2.js +3 -3
  147. package/dist/rich-editor/useOxRichEditor.js +1 -1
  148. package/dist/tokens/shared.css +5 -0
  149. package/package.json +17 -11
@@ -25,42 +25,76 @@ var ne = "__ox-expand", re = "__ox-select", ie = [
25
25
  "w-3/5",
26
26
  "w-2/5",
27
27
  "w-4/5"
28
- ], ae = 43, J = 33, oe = ae * 2, se = J * 2, Y = 1, ce = (e) => e + Y + 1;
29
- function le(e, t, n, r) {
30
- let i = [];
31
- for (let [a, o] of e.entries()) i.push({
32
- dataIndex: a,
33
- kind: "row",
34
- row: o
35
- }), n(o) && r.has(t(o)) && i.push({
36
- dataIndex: a,
37
- kind: "detail",
38
- row: o
39
- });
40
- return i;
28
+ ], ae = 43, oe = 33, se = 86, J = 66, Y = 39, ce = 29, le = 1, ue = (e) => e + le + 1;
29
+ function de(e, { canExpand: t, expandedRowIds: n, getRowGroupId: r, getRowId: i, withDetailItems: a }) {
30
+ let o = [], s = /* @__PURE__ */ new Map(), c;
31
+ for (let [l, u] of e.entries()) {
32
+ if (r != null) {
33
+ let e = r(u);
34
+ if (c == null || c.groupId !== e) {
35
+ let t = s.get(e) ?? 0;
36
+ s.set(e, t + 1), c = {
37
+ groupId: e,
38
+ kind: "group",
39
+ occurrence: t,
40
+ rows: []
41
+ }, o.push(c);
42
+ }
43
+ c.rows.push(u);
44
+ }
45
+ o.push({
46
+ dataIndex: l,
47
+ kind: "row",
48
+ row: u
49
+ }), a && t(u) && n.has(i(u)) && o.push({
50
+ dataIndex: l,
51
+ kind: "detail",
52
+ row: u
53
+ });
54
+ }
55
+ return o;
41
56
  }
42
- function ue(e, { defaultDetailHeight: t, defaultRowHeight: n, estimateSize: r }) {
43
- return e.kind === "detail" ? t : r?.(e.dataIndex) ?? n;
57
+ function fe(e, { defaultDetailHeight: t, defaultGroupHeight: n, defaultRowHeight: r, estimateSize: i }) {
58
+ return e.kind === "group" ? n : e.kind === "detail" ? t : i?.(e.dataIndex) ?? r;
44
59
  }
45
- var de = "__ox-detached";
46
- function fe(e, t) {
47
- if (e == null) return de;
60
+ var pe = "__ox-detached", X = (e, t) => `__ox-group-${String(e)}-${t}`, me = (e) => `__ox-detail-${e}`, he = (e) => `__ox-row-${e}`;
61
+ function ge(e, t) {
62
+ if (e == null) return pe;
63
+ if (e.kind === "group") return X(e.occurrence, e.groupId);
48
64
  let n = t(e.row);
49
- return e.kind === "detail" ? `${n}__detail` : n;
65
+ return e.kind === "detail" ? me(n) : he(n);
50
66
  }
51
- function pe(e, t, n) {
67
+ function _e(e, t, n) {
52
68
  return t != null && (n?.(e) ?? !0);
53
69
  }
54
- var me = (e) => e === "compact" ? J : ae, he = (e) => e === "compact" ? se : oe, { Provider: ge, useRequiredContext: _e } = e("OxDataTable"), X = (...e) => e.filter(Boolean).join(" ") || void 0, ve = (e) => {
70
+ var ve = (e) => e === "compact" ? oe : ae, ye = (e) => e === "compact" ? J : se, be = (e) => e === "compact" ? ce : Y;
71
+ function xe(e, t) {
72
+ let n = e.filter((e) => !e.sticky), r = n[0], i = n.at(-1);
73
+ if (r == null || i == null) return;
74
+ let a = e.filter((e) => e.sticky && e.index > i.index), o = i.index, s = 0;
75
+ for (let e of a) {
76
+ if (e.index !== o + 1) break;
77
+ o = e.index, s += e.size;
78
+ }
79
+ let c = e.findLast((e) => e.sticky && e.index < r.index);
80
+ return {
81
+ bottomHeight: t - (i.start + i.size) - s,
82
+ endIndex: o,
83
+ pinnedItem: c,
84
+ startIndex: r.index,
85
+ topHeight: r.start - (c?.size ?? 0)
86
+ };
87
+ }
88
+ var { Provider: Se, useRequiredContext: Ce } = e("OxDataTable"), Z = (...e) => e.filter(Boolean).join(" ") || void 0, we = (e) => {
55
89
  if (typeof e == "number") return e;
56
90
  if (typeof e == "string" && e.endsWith("px")) return Number.parseFloat(e);
57
- }, ye = (e) => e == null ? null : typeof e == "string" || typeof e == "number" ? e : typeof e == "boolean" ? e ? "Yes" : "No" : null, be = (e) => A(e) && e.type === Ue, xe = ({ headHeight: e, maxHeight: t, stickyHeader: n }) => {
91
+ }, Te = (e) => e == null ? null : typeof e == "string" || typeof e == "number" ? e : typeof e == "boolean" ? e ? "Yes" : "No" : null, Ee = (e) => A(e) && e.type === Xe, De = ({ headHeight: e, maxHeight: t, stickyHeader: n }) => {
58
92
  if (!(t == null && !n)) return {
59
93
  ...t != null && { "--ox-data-table-max-h": typeof t == "number" ? `${t}px` : t },
60
94
  ...n && { "--ox-data-table-head-h": `${e}px` }
61
95
  };
62
96
  };
63
- function Se(e) {
97
+ function Oe(e) {
64
98
  let t = h(3), [n, r] = P(0), i, a;
65
99
  return t[0] === e ? (i = t[1], a = t[2]) : (i = () => {
66
100
  let t = e.current;
@@ -73,7 +107,7 @@ function Se(e) {
73
107
  return i.observe(t), () => i.disconnect();
74
108
  }, a = [e], t[0] = e, t[1] = i, t[2] = a), j(i, a), n;
75
109
  }
76
- function Ce(e, t) {
110
+ function ke(e, t) {
77
111
  let n = h(6), { enabled: r, onEndReached: i, threshold: a } = t, o = N(!1), s, c;
78
112
  n[0] !== r || n[1] !== i || n[2] !== e || n[3] !== a ? (s = () => {
79
113
  let t = e.current;
@@ -93,95 +127,106 @@ function Ce(e, t) {
93
127
  a
94
128
  ], n[0] = r, n[1] = i, n[2] = e, n[3] = a, n[4] = s, n[5] = c) : (s = n[4], c = n[5]), j(s, c);
95
129
  }
96
- function we(e) {
97
- let t = h(71), { caption: n, children: r, className: i, columnOrder: a, columnVisibility: u, columns: m, data: g, defaultColumnOrder: _, defaultColumnVisibility: v, defaultExpandedRows: y, defaultFrozenColumns: b, defaultPage: x, defaultSelectedRows: S, defaultSort: C, density: w, emptyState: T, endReachedThreshold: E, estimateSize: D, frozenColumns: k, getRowCanExpand: A, getRowId: j, hover: P, loading: R, maxHeight: z, onColumnOrderChange: B, onColumnVisibilityChange: V, onEndReached: H, onFrozenColumnsChange: U, onPageChange: W, onSelectionChange: G, onSortChange: K, overscan: ee, page: q, pageSize: te, paginationMode: ae, renderExpandedRow: J, rowCount: oe, selectable: se, selectedRows: Y, sort: de, stickyHeader: _e } = e, ye = C === void 0 ? null : C, be = w === void 0 ? "comfortable" : w, we = T === void 0 ? "No results." : T, Fe = E === void 0 ? 320 : E, Ie = P === void 0 ? !0 : P, Le = R === void 0 ? !1 : R, Re = te === void 0 ? 10 : te, ze = ae === void 0 ? "pages" : ae, Be = se === void 0 ? !1 : se, Ve = _e === void 0 ? !0 : _e, He = M(), Z = ze === "virtual", Q = f({
98
- density: be,
99
- stickyHeader: Ve
100
- }), Ue = N(null), We = N(null), Ge = N(null), Ke = Se(Ge), qe = me(be), Je = he(be), Ye;
101
- t[0] === y ? Ye = t[1] : (Ye = y ?? /* @__PURE__ */ new Set(), t[0] = y, t[1] = Ye);
102
- let Xe;
103
- t[2] === Ye ? Xe = t[3] : (Xe = {
104
- prop: void 0,
105
- defaultProp: Ye
106
- }, t[2] = Ye, t[3] = Xe);
107
- let [Ze, Qe] = c(Xe), $e;
108
- t[4] !== A || t[5] !== J ? ($e = (e) => pe(e, J, A), t[4] = A, t[5] = J, t[6] = $e) : $e = t[6];
109
- let et = $e, tt = Z ? le(g, j, et, Ze) : [], nt = d({
110
- count: Z ? tt.length : 0,
111
- estimateSize: (e) => ue(tt[e], {
112
- defaultDetailHeight: Je,
113
- defaultRowHeight: qe,
130
+ function Ae(e) {
131
+ let t = h(73), { caption: n, children: r, className: i, columnOrder: a, columnVisibility: u, columns: m, data: g, defaultColumnOrder: _, defaultColumnVisibility: v, defaultExpandedRows: y, defaultFrozenColumns: b, defaultPage: x, defaultSelectedRows: S, defaultSort: C, density: w, emptyState: T, endReachedThreshold: E, estimateSize: D, expandedRows: k, frozenColumns: A, getRowCanExpand: j, getRowGroupId: P, getRowId: F, hover: R, loading: z, maxHeight: B, onColumnOrderChange: V, onColumnVisibilityChange: H, onEndReached: U, onExpandedChange: W, onFrozenColumnsChange: G, onPageChange: K, onSelectionChange: ee, onSortChange: q, overscan: te, page: ae, pageSize: oe, paginationMode: se, renderExpandedRow: J, renderGroupHeader: Y, rowCount: ce, selectable: le, selectedRows: pe, sort: X, stickyHeader: Ce } = e, Te = C === void 0 ? null : C, Ee = w === void 0 ? "comfortable" : w, Ae = T === void 0 ? "No results." : T, He = E === void 0 ? 320 : E, Ue = R === void 0 || R, We = z !== void 0 && z, Ge = oe === void 0 ? 10 : oe, Ke = se === void 0 ? "pages" : se, qe = le !== void 0 && le, Je = Ce === void 0 || Ce, Ye = M(), Q = Ke === "virtual", $ = f({
132
+ density: Ee,
133
+ stickyHeader: Je
134
+ }), Xe = N(null), Ze = N(null), Qe = N(null), $e = Oe(Qe), et = ve(Ee), tt = ye(Ee), nt = be(Ee), rt;
135
+ t[0] === y ? rt = t[1] : (rt = y ?? /* @__PURE__ */ new Set(), t[0] = y, t[1] = rt);
136
+ let it;
137
+ t[2] !== k || t[3] !== W || t[4] !== rt ? (it = {
138
+ prop: k,
139
+ defaultProp: rt,
140
+ onChange: W
141
+ }, t[2] = k, t[3] = W, t[4] = rt, t[5] = it) : it = t[5];
142
+ let [at, ot] = c(it), st;
143
+ t[6] !== j || t[7] !== J ? (st = (e) => _e(e, J, j), t[6] = j, t[7] = J, t[8] = st) : st = t[8];
144
+ let ct = st, lt = de(g, {
145
+ canExpand: ct,
146
+ expandedRowIds: at,
147
+ getRowGroupId: Y == null ? void 0 : P,
148
+ getRowId: F,
149
+ withDetailItems: Q
150
+ }), ut = lt.flatMap(Be), dt = d({
151
+ count: Q ? lt.length : 0,
152
+ estimateSize: (e) => fe(lt[e], {
153
+ defaultDetailHeight: tt,
154
+ defaultGroupHeight: nt,
155
+ defaultRowHeight: et,
114
156
  estimateSize: D
115
157
  }),
116
- getItemKey: (e) => fe(tt[e], j),
117
- overscan: ee,
118
- scrollRef: Z ? Ue : We
119
- }), rt = new Map(m.map(Ne)), it = Me, at;
120
- t[7] !== m || t[8] !== _ ? (at = _ ?? m.map(je), t[7] = m, t[8] = _, t[9] = at) : at = t[9];
121
- let ot;
122
- t[10] !== a || t[11] !== B || t[12] !== at ? (ot = {
158
+ getItemKey: (e) => ge(lt[e], F),
159
+ overscan: te,
160
+ scrollRef: Q ? Xe : Ze,
161
+ stickyIndices: ut
162
+ }), ft = new Map(m.map(ze)), pt = Re, mt;
163
+ t[9] !== m || t[10] !== _ ? (mt = _ ?? m.map(Le), t[9] = m, t[10] = _, t[11] = mt) : mt = t[11];
164
+ let ht;
165
+ t[12] !== a || t[13] !== V || t[14] !== mt ? (ht = {
123
166
  prop: a,
124
- defaultProp: at,
125
- onChange: B
126
- }, t[10] = a, t[11] = B, t[12] = at, t[13] = ot) : ot = t[13];
127
- let [st, ct] = c(ot), lt;
128
- t[14] === v ? lt = t[15] : (lt = v ?? {}, t[14] = v, t[15] = lt);
129
- let ut;
130
- t[16] !== u || t[17] !== V || t[18] !== lt ? (ut = {
131
- prop: u,
132
- defaultProp: lt,
167
+ defaultProp: mt,
133
168
  onChange: V
134
- }, t[16] = u, t[17] = V, t[18] = lt, t[19] = ut) : ut = t[19];
135
- let [dt, ft] = c(ut), pt;
136
- t[20] === b ? pt = t[21] : (pt = b ?? [], t[20] = b, t[21] = pt);
137
- let mt;
138
- t[22] !== k || t[23] !== U || t[24] !== pt ? (mt = {
139
- prop: k,
140
- defaultProp: pt,
141
- onChange: U
142
- }, t[22] = k, t[23] = U, t[24] = pt, t[25] = mt) : mt = t[25];
143
- let [ht, gt] = c(mt), _t;
144
- t[26] !== ye || t[27] !== de ? (_t = {
145
- prop: de,
146
- defaultProp: ye
147
- }, t[26] = ye, t[27] = de, t[28] = _t) : _t = t[28];
148
- let [vt, yt] = c(_t), bt;
149
- t[29] === S ? bt = t[30] : (bt = S ?? /* @__PURE__ */ new Set(), t[29] = S, t[30] = bt);
150
- let xt;
151
- t[31] !== G || t[32] !== Y || t[33] !== bt ? (xt = {
152
- prop: Y,
153
- defaultProp: bt,
169
+ }, t[12] = a, t[13] = V, t[14] = mt, t[15] = ht) : ht = t[15];
170
+ let [gt, _t] = c(ht), vt;
171
+ t[16] === v ? vt = t[17] : (vt = v ?? {}, t[16] = v, t[17] = vt);
172
+ let yt;
173
+ t[18] !== u || t[19] !== H || t[20] !== vt ? (yt = {
174
+ prop: u,
175
+ defaultProp: vt,
176
+ onChange: H
177
+ }, t[18] = u, t[19] = H, t[20] = vt, t[21] = yt) : yt = t[21];
178
+ let [bt, xt] = c(yt), St;
179
+ t[22] === b ? St = t[23] : (St = b ?? [], t[22] = b, t[23] = St);
180
+ let Ct;
181
+ t[24] !== A || t[25] !== G || t[26] !== St ? (Ct = {
182
+ prop: A,
183
+ defaultProp: St,
154
184
  onChange: G
155
- }, t[31] = G, t[32] = Y, t[33] = bt, t[34] = xt) : xt = t[34];
156
- let [St, Ct] = c(xt), wt = x ?? 1, Tt;
157
- t[35] !== W || t[36] !== q || t[37] !== wt ? (Tt = {
158
- prop: q,
159
- defaultProp: wt,
160
- onChange: W
161
- }, t[35] = W, t[36] = q, t[37] = wt, t[38] = Tt) : Tt = t[38];
162
- let [Et, Dt] = c(Tt), Ot = p(m, st), kt = (e) => dt[e] !== !1, At = Ot.map((e) => rt.get(e)).filter(Ae), jt = [...At.filter(ke), ...At.filter(Oe)], Mt = jt.filter((e) => e.system || kt(e.id)), Nt = new Set(ht), Pt = Mt.filter((e) => Nt.has(e.id)), Ft = [...Pt, ...Mt.filter((e) => !Nt.has(e.id))], It = Nt.size > 0, Lt = [];
163
- J && Lt.push({
185
+ }, t[24] = A, t[25] = G, t[26] = St, t[27] = Ct) : Ct = t[27];
186
+ let [wt, Tt] = c(Ct), Et;
187
+ t[28] !== Te || t[29] !== X ? (Et = {
188
+ prop: X,
189
+ defaultProp: Te
190
+ }, t[28] = Te, t[29] = X, t[30] = Et) : Et = t[30];
191
+ let [Dt, Ot] = c(Et), kt;
192
+ t[31] === S ? kt = t[32] : (kt = S ?? /* @__PURE__ */ new Set(), t[31] = S, t[32] = kt);
193
+ let At;
194
+ t[33] !== ee || t[34] !== pe || t[35] !== kt ? (At = {
195
+ prop: pe,
196
+ defaultProp: kt,
197
+ onChange: ee
198
+ }, t[33] = ee, t[34] = pe, t[35] = kt, t[36] = At) : At = t[36];
199
+ let [jt, Mt] = c(At), Nt = x ?? 1, Pt;
200
+ t[37] !== K || t[38] !== ae || t[39] !== Nt ? (Pt = {
201
+ prop: ae,
202
+ defaultProp: Nt,
203
+ onChange: K
204
+ }, t[37] = K, t[38] = ae, t[39] = Nt, t[40] = Pt) : Pt = t[40];
205
+ let [Ft, It] = c(Pt), Lt = p(m, gt), Rt = (e) => bt[e] !== !1, zt = Lt.map((e) => ft.get(e)).filter(Ie), Bt = [...zt.filter(Fe), ...zt.filter(Pe)], Vt = Bt.filter((e) => e.system || Rt(e.id)), Ht = new Set(wt), Ut = Vt.filter((e) => Ht.has(e.id)), Wt = [...Ut, ...Vt.filter((e) => !Ht.has(e.id))], Gt = Ht.size > 0, Kt = [];
206
+ J && Kt.push({
164
207
  key: ne,
165
208
  width: 44
166
- }), Be && Lt.push({
209
+ }), qe && Kt.push({
167
210
  key: re,
168
211
  width: 48
169
212
  });
170
- for (let e of Pt) Lt.push({
213
+ for (let e of Ut) Kt.push({
171
214
  key: e.id,
172
- width: ve(e.width) ?? ve(e.minWidth) ?? 200
215
+ width: we(e.width) ?? we(e.minWidth) ?? 200
173
216
  });
174
- let Rt = /* @__PURE__ */ new Map(), zt = 0;
175
- for (let e of Lt) Rt.set(e.key, zt), zt += e.width;
176
- let Bt = Lt.at(-1)?.key, Vt = (e, t, n) => {
217
+ let qt = /* @__PURE__ */ new Map(), Jt = 0;
218
+ for (let e of Kt) qt.set(e.key, Jt), Jt += e.width;
219
+ let Yt = Kt.at(-1)?.key, Xt = (e, t, n) => {
177
220
  let r = {};
178
221
  t != null && (r.width = t), n != null && (r.minWidth = n);
179
222
  let i, a, o;
180
- if (Rt.has(e)) if (It) i = "left", r.left = Rt.get(e), e !== Bt && (a = "shadow-none", o = "shadow-none");
181
- else {
182
- Object.assign(r, { "--ox-frozen-left": `${Rt.get(e)}px` });
183
- let t = e === Bt ? Q.frozenEdge() : void 0;
184
- a = X(Q.frozenHead(), t), o = X(Q.frozenCell(), t);
223
+ if (qt.has(e)) {
224
+ if (Gt) i = "left", r.left = qt.get(e), e !== Yt && (a = "shadow-none", o = "shadow-none");
225
+ else {
226
+ Object.assign(r, { "--ox-frozen-left": `${qt.get(e)}px` });
227
+ let t = e === Yt ? $.frozenEdge() : void 0;
228
+ a = Z($.frozenHead(), t), o = Z($.frozenCell(), t);
229
+ }
185
230
  }
186
231
  return {
187
232
  sticky: i,
@@ -189,226 +234,242 @@ function we(e) {
189
234
  cellClass: o,
190
235
  style: Object.keys(r).length > 0 ? r : void 0
191
236
  };
192
- }, Ht;
193
- t[39] !== K || t[40] !== yt || t[41] !== vt ? (Ht = (e, t) => {
237
+ }, Zt;
238
+ t[41] !== q || t[42] !== Ot || t[43] !== Dt ? (Zt = (e, t) => {
194
239
  let n;
195
- n = t === void 0 ? !vt || vt.columnId !== e ? {
240
+ n = t === void 0 ? !Dt || Dt.columnId !== e ? {
196
241
  columnId: e,
197
242
  direction: "asc"
198
- } : vt.direction === "asc" ? {
243
+ } : Dt.direction === "asc" ? {
199
244
  columnId: e,
200
245
  direction: "desc"
201
246
  } : null : t === null ? null : {
202
247
  columnId: e,
203
248
  direction: t
204
- }, yt(n), K?.(e, n?.direction ?? null);
205
- }, t[39] = K, t[40] = yt, t[41] = vt, t[42] = Ht) : Ht = t[42];
206
- let Ut = Ht, Wt;
207
- t[43] === gt ? Wt = t[44] : (Wt = (e) => {
208
- gt((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
209
- }, t[43] = gt, t[44] = Wt);
210
- let Gt = Wt, Kt;
211
- t[45] === ft ? Kt = t[46] : (Kt = (e) => {
212
- ft((t) => ({
249
+ }, Ot(n), q?.(e, n?.direction ?? null);
250
+ }, t[41] = q, t[42] = Ot, t[43] = Dt, t[44] = Zt) : Zt = t[44];
251
+ let Qt = Zt, $t;
252
+ t[45] === Tt ? $t = t[46] : ($t = (e) => {
253
+ Tt((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
254
+ }, t[45] = Tt, t[46] = $t);
255
+ let en = $t, tn;
256
+ t[47] === xt ? tn = t[48] : (tn = (e) => {
257
+ xt((t) => ({
213
258
  ...t,
214
259
  [e]: !1
215
260
  }));
216
- }, t[45] = ft, t[46] = Kt);
217
- let qt = Kt, Jt;
218
- t[47] === Ct ? Jt = t[48] : (Jt = () => Ct(/* @__PURE__ */ new Set()), t[47] = Ct, t[48] = Jt);
219
- let Yt = Jt, Xt;
220
- t[49] !== j || t[50] !== St ? (Xt = (e) => St.has(j(e)), t[49] = j, t[50] = St, t[51] = Xt) : Xt = t[51];
221
- let Zt = g.filter(Xt), Qt = oe == null ? void 0 : Math.max(1, Math.ceil(oe / Re)), $t = {
222
- baseId: He,
223
- clearSelection: Yt,
224
- columnVisibility: dt,
225
- density: be,
226
- frozenColumns: Nt,
227
- hideColumn: qt,
228
- orderedColumns: jt.map((e) => ({
261
+ }, t[47] = xt, t[48] = tn);
262
+ let nn = tn, rn;
263
+ t[49] === Mt ? rn = t[50] : (rn = () => Mt(/* @__PURE__ */ new Set()), t[49] = Mt, t[50] = rn);
264
+ let an = rn, on;
265
+ t[51] !== F || t[52] !== jt ? (on = (e) => jt.has(F(e)), t[51] = F, t[52] = jt, t[53] = on) : on = t[53];
266
+ let sn = g.filter(on), cn = ce == null ? void 0 : Math.max(1, Math.ceil(ce / Ge)), ln = {
267
+ baseId: Ye,
268
+ clearSelection: an,
269
+ columnVisibility: bt,
270
+ density: Ee,
271
+ frozenColumns: Ht,
272
+ hideColumn: nn,
273
+ orderedColumns: Bt.map((e) => ({
229
274
  header: e.header,
230
- hideable: it(e),
275
+ hideable: pt(e),
231
276
  id: e.id,
232
277
  locked: e.locked ?? !1,
233
278
  system: e.system ?? !1
234
279
  })),
235
- page: Et,
236
- pageCount: Qt,
237
- pageSize: Re,
238
- paginationMode: ze,
239
- requestSort: Ut,
240
- rowCount: oe,
241
- selectable: Be,
242
- selectedCount: Zt.length,
243
- selectedRows: Zt,
244
- setColumnOrder: ct,
245
- setColumnVisibility: ft,
246
- setPage: Dt,
247
- sort: vt,
248
- toggleFrozen: Gt
249
- }, en = ze === "infinite", tn;
250
- t[52] !== Fe || t[53] !== H || t[54] !== en ? (tn = {
251
- enabled: en,
252
- onEndReached: H,
253
- threshold: Fe
254
- }, t[52] = Fe, t[53] = H, t[54] = en, t[55] = tn) : tn = t[55], Ce(Ue, tn);
255
- let nn;
256
- t[56] !== Ke || t[57] !== z || t[58] !== Ve ? (nn = xe({
257
- headHeight: Ke,
258
- maxHeight: z,
259
- stickyHeader: Ve
260
- }), t[56] = Ke, t[57] = z, t[58] = Ve, t[59] = nn) : nn = t[59];
261
- let rn = nn, an, on;
262
- if (t[60] !== r) {
280
+ page: Ft,
281
+ pageCount: cn,
282
+ pageSize: Ge,
283
+ paginationMode: Ke,
284
+ requestSort: Qt,
285
+ rowCount: ce,
286
+ selectable: qe,
287
+ selectedCount: sn.length,
288
+ selectedRows: sn,
289
+ setColumnOrder: _t,
290
+ setColumnVisibility: xt,
291
+ setPage: It,
292
+ sort: Dt,
293
+ toggleFrozen: en
294
+ }, un = Ke === "infinite", dn;
295
+ t[54] !== He || t[55] !== U || t[56] !== un ? (dn = {
296
+ enabled: un,
297
+ onEndReached: U,
298
+ threshold: He
299
+ }, t[54] = He, t[55] = U, t[56] = un, t[57] = dn) : dn = t[57], ke(Xe, dn);
300
+ let fn;
301
+ t[58] !== $e || t[59] !== B || t[60] !== Je ? (fn = De({
302
+ headHeight: $e,
303
+ maxHeight: B,
304
+ stickyHeader: Je
305
+ }), t[58] = $e, t[59] = B, t[60] = Je, t[61] = fn) : fn = t[61];
306
+ let pn = fn, mn, hn;
307
+ if (t[62] !== r) {
263
308
  let e = O.toArray(r);
264
- on = e.filter(De), an = e.filter(Ee), t[60] = r, t[61] = an, t[62] = on;
265
- } else an = t[61], on = t[62];
266
- let sn = an, cn = Ft.length + +!!Be + +!!J, $ = Vt(ne), ln = Vt(re), un = It ? void 0 : Q.selectCol(), dn = Te, fn;
267
- t[63] === nt.measureElement ? fn = t[64] : (fn = (e) => ({
268
- "aria-rowindex": ce(e.index),
309
+ hn = e.filter(Ne), mn = e.filter(Me), t[62] = r, t[63] = mn, t[64] = hn;
310
+ } else mn = t[63], hn = t[64];
311
+ let gn = mn, _n = Wt.length + +!!qe + +!!J, vn = Xt(ne), yn = Xt(re), bn = Gt ? void 0 : $.selectCol(), xn = je, Sn;
312
+ t[65] === dt.measureElement ? Sn = t[66] : (Sn = (e) => ({
313
+ "aria-rowindex": ue(e.index),
269
314
  "data-index": e.index,
270
- ref: nt.measureElement
271
- }), t[63] = nt.measureElement, t[64] = fn);
272
- let pn = fn, mn = (e, t) => {
273
- let n = j(e), r = et(e);
315
+ "data-sticky": e.sticky ? "" : void 0,
316
+ ref: dt.measureElement
317
+ }), t[65] = dt.measureElement, t[66] = Sn);
318
+ let Cn = Sn, wn = (e, t) => {
319
+ let n = F(e), r = ct(e);
274
320
  return /* @__PURE__ */ L(l.Row, {
275
321
  rowId: n,
276
322
  ...t,
277
323
  children: [
278
324
  J != null && /* @__PURE__ */ I(l.Cell, {
279
325
  align: "center",
280
- className: X("w-11", $.cellClass),
281
- sticky: $.sticky,
282
- style: $.style,
326
+ className: Z("w-11", vn.cellClass),
327
+ sticky: vn.sticky,
328
+ style: vn.style,
283
329
  children: r && /* @__PURE__ */ I(l.ExpandTrigger, {})
284
330
  }),
285
- Be && /* @__PURE__ */ I(l.SelectCell, {
286
- className: X(un, ln.cellClass),
287
- sticky: ln.sticky,
288
- style: ln.style
331
+ qe && /* @__PURE__ */ I(l.SelectCell, {
332
+ className: Z(bn, yn.cellClass),
333
+ sticky: yn.sticky,
334
+ style: yn.style
289
335
  }),
290
- Ft.map((t) => {
291
- let n = Vt(t.id, t.width, t.minWidth);
336
+ Wt.map((t) => {
337
+ let n = Xt(t.id, t.width, t.minWidth);
292
338
  return /* @__PURE__ */ I(l.Cell, {
293
339
  align: t.align,
294
340
  className: n.cellClass,
295
341
  sticky: n.sticky,
296
342
  style: n.style,
297
- children: dn(t, e)
343
+ children: xn(t, e)
298
344
  }, t.id);
299
345
  })
300
346
  ]
301
- }, n);
302
- }, hn = (e) => {
303
- let t = j(e), n = [mn(e)];
304
- return et(e) && n.push(/* @__PURE__ */ I(l.ExpandedRow, {
347
+ }, he(n));
348
+ }, Tn = (e) => {
349
+ let t = F(e), n = [wn(e)];
350
+ return ct(e) && n.push(/* @__PURE__ */ I(l.ExpandedRow, {
305
351
  rowId: t,
306
352
  children: J(e)
307
- }, `${t}__detail`)), n;
308
- }, gn = (e) => {
309
- let t = tt[e.index], n = pn(e);
310
- return t.kind === "detail" ? /* @__PURE__ */ I(l.ExpandedRow, {
311
- rowId: j(t.row),
312
- ...n,
313
- children: J(t.row)
314
- }, e.key) : mn(t.row, n);
315
- }, _n = (e, t) => /* @__PURE__ */ I("tr", {
353
+ }, me(t))), n;
354
+ }, En = (e, t) => /* @__PURE__ */ I(l.Row, {
355
+ className: $.groupRow(),
356
+ "data-ox-group-id": e.groupId,
357
+ ...t,
358
+ children: /* @__PURE__ */ I("th", {
359
+ className: $.groupCell(),
360
+ colSpan: _n || 1,
361
+ "data-ox-slot": "data-table-group-cell",
362
+ children: Y?.(e.groupId, e.rows)
363
+ })
364
+ }, ge(e, F)), Dn = (e) => {
365
+ let t = lt[e.index], n = Cn(e);
366
+ if (t.kind === "group") return En(t, n);
367
+ if (t.kind === "detail") {
368
+ let e = F(t.row);
369
+ return /* @__PURE__ */ I(l.ExpandedRow, {
370
+ rowId: e,
371
+ ...n,
372
+ children: J(t.row)
373
+ }, me(e));
374
+ }
375
+ return wn(t.row, n);
376
+ }, On = (e, t) => /* @__PURE__ */ I("tr", {
316
377
  "aria-hidden": "true",
317
378
  "data-ox-slot": "data-table-virtual-spacer",
318
379
  children: /* @__PURE__ */ I("td", {
319
- className: Q.virtualSpacerCell(),
320
- colSpan: cn || 1,
380
+ className: $.virtualSpacerCell(),
381
+ colSpan: _n || 1,
321
382
  style: { height: t }
322
383
  })
323
- }, `__ox-virtual-spacer-${e}`), vn = () => {
324
- let { totalSize: e, virtualItems: t } = nt, n = t[0], r = t.at(-1), i = n == null ? 0 : n.start, a = r == null ? 0 : e - (r.start + r.size);
325
- return /* @__PURE__ */ L(F, { children: [
326
- i > 0 && _n("top", i),
327
- t.map((e) => gn(e)),
328
- a > 0 && _n("bottom", a)
329
- ] });
330
- }, yn = () => Le && (ze === "pages" || Z) ? Array.from({ length: Math.min(Re, 8) }, (e, t) => /* @__PURE__ */ L(l.Row, { children: [
384
+ }, `__ox-virtual-spacer-${e}`), kn = () => {
385
+ let { totalSize: e, virtualItems: t } = dt, n = xe(t, e);
386
+ if (n == null) return e > 0 ? On("top", e) : null;
387
+ let { bottomHeight: r, endIndex: i, pinnedItem: a, startIndex: o, topHeight: s } = n, c = [];
388
+ s > 0 && c.push(On("top", s)), a != null && c.push(Dn(a));
389
+ for (let e of t) e.index >= o && e.index <= i && c.push(Dn(e));
390
+ return r > 0 && c.push(On("bottom", r)), c;
391
+ }, An = () => We && (Ke === "pages" || Q) ? Array.from({ length: Math.min(Ge, 8) }, (e, t) => /* @__PURE__ */ L(l.Row, { children: [
331
392
  J != null && /* @__PURE__ */ I(l.Cell, {
332
- className: X("w-11", $.cellClass),
333
- sticky: $.sticky,
334
- style: $.style
393
+ className: Z("w-11", vn.cellClass),
394
+ sticky: vn.sticky,
395
+ style: vn.style
335
396
  }),
336
- Be && /* @__PURE__ */ I(l.Cell, {
337
- className: X(un, ln.cellClass),
338
- sticky: ln.sticky,
339
- style: ln.style
397
+ qe && /* @__PURE__ */ I(l.Cell, {
398
+ className: Z(bn, yn.cellClass),
399
+ sticky: yn.sticky,
400
+ style: yn.style
340
401
  }),
341
- Ft.map((e, n) => {
342
- let r = Vt(e.id, e.width, e.minWidth);
402
+ Wt.map((e, n) => {
403
+ let r = Xt(e.id, e.width, e.minWidth);
343
404
  return /* @__PURE__ */ I(l.Cell, {
344
405
  align: e.align,
345
406
  className: r.cellClass,
346
407
  sticky: r.sticky,
347
408
  style: r.style,
348
- children: /* @__PURE__ */ I(s, { className: X("h-2.5", ie[(t + n) % ie.length]) })
409
+ children: /* @__PURE__ */ I(s, { className: Z("h-2.5", ie[(t + n) % ie.length]) })
349
410
  }, e.id);
350
411
  })
351
412
  ] }, `__ox-skeleton-${t}`)) : g.length === 0 ? /* @__PURE__ */ I(l.Row, { children: /* @__PURE__ */ I(l.Cell, {
352
- className: Q.empty(),
353
- colSpan: cn || 1,
354
- children: we
355
- }) }, "__ox-empty") : Z ? vn() : g.flatMap((e) => hn(e)), bn;
356
- t[65] !== g || t[66] !== j || t[67] !== Z ? (bn = Z ? g.map((e) => j(e)) : void 0, t[65] = g, t[66] = j, t[67] = Z, t[68] = bn) : bn = t[68];
357
- let xn;
358
- return t[69] === n ? xn = t[70] : (xn = n != null && /* @__PURE__ */ I(l.Caption, { children: n }), t[69] = n, t[70] = xn), /* @__PURE__ */ I(ge, {
359
- value: $t,
413
+ className: $.empty(),
414
+ colSpan: _n || 1,
415
+ children: Ae
416
+ }) }, "__ox-empty") : Q ? kn() : lt.flatMap((e) => e.kind === "group" ? [En(e)] : Tn(e.row)), jn;
417
+ t[67] !== g || t[68] !== F || t[69] !== Q ? (jn = Q ? g.map((e) => F(e)) : void 0, t[67] = g, t[68] = F, t[69] = Q, t[70] = jn) : jn = t[70];
418
+ let Mn;
419
+ return t[71] === n ? Mn = t[72] : (Mn = n != null && /* @__PURE__ */ I(l.Caption, { children: n }), t[71] = n, t[72] = Mn), /* @__PURE__ */ I(Se, {
420
+ value: ln,
360
421
  children: /* @__PURE__ */ L("div", {
361
- className: Q.root({ class: i }),
422
+ className: $.root({ class: i }),
362
423
  "data-ox-slot": "data-table",
363
424
  children: [
364
- on,
425
+ hn,
365
426
  /* @__PURE__ */ L(o, {
366
- "aria-busy": Le || void 0,
367
- className: Q.scroll(),
427
+ "aria-busy": We || void 0,
428
+ className: $.scroll(),
368
429
  "data-ox-slot": "data-table-scroll",
369
430
  orientation: "both",
370
- scrollbarClassName: Q.scrollScrollbar(),
371
- style: rn,
372
- viewportClassName: Q.scrollViewport(),
373
- viewportRef: Ue,
431
+ scrollbarClassName: $.scrollScrollbar(),
432
+ style: pn,
433
+ viewportClassName: $.scrollViewport(),
434
+ viewportRef: Xe,
374
435
  children: [/* @__PURE__ */ L(l, {
375
- "aria-rowcount": Z ? tt.length + 1 : void 0,
376
- density: be,
377
- expandedRows: Ze,
378
- hover: Ie,
379
- selectable: Be,
380
- selectableRowIds: bn,
381
- selectedRows: St,
382
- stickyHeader: Ve,
436
+ "aria-rowcount": Q ? lt.length + 1 : void 0,
437
+ density: Ee,
438
+ expandedRows: at,
439
+ hover: Ue,
440
+ selectable: qe,
441
+ selectableRowIds: jn,
442
+ selectedRows: jt,
443
+ stickyHeader: Je,
383
444
  unwrapped: !0,
384
- onExpandedChange: Qe,
385
- onSelectedChange: Ct,
445
+ onExpandedChange: ot,
446
+ onSelectedChange: Mt,
386
447
  children: [
387
- xn,
448
+ Mn,
388
449
  /* @__PURE__ */ I(l.Header, {
389
- ref: Ge,
450
+ ref: Qe,
390
451
  children: /* @__PURE__ */ L(l.Row, {
391
- "aria-rowindex": Z ? 1 : void 0,
452
+ "aria-rowindex": Q ? 1 : void 0,
392
453
  children: [
393
454
  J != null && /* @__PURE__ */ I(l.Head, {
394
- className: X("w-11", $.headClass),
395
- sticky: $.sticky,
396
- style: $.style
455
+ className: Z("w-11", vn.headClass),
456
+ sticky: vn.sticky,
457
+ style: vn.style
397
458
  }),
398
- Be && /* @__PURE__ */ I(l.SelectAllCell, {
399
- className: X(un, ln.headClass),
400
- sticky: ln.sticky,
401
- style: ln.style
459
+ qe && /* @__PURE__ */ I(l.SelectAllCell, {
460
+ className: Z(bn, yn.headClass),
461
+ sticky: yn.sticky,
462
+ style: yn.style
402
463
  }),
403
- Ft.map((e) => {
404
- let t = Vt(e.id, e.width, e.minWidth);
405
- return /* @__PURE__ */ I(Pe, {
464
+ Wt.map((e) => {
465
+ let t = Xt(e.id, e.width, e.minWidth);
466
+ return /* @__PURE__ */ I(Ve, {
406
467
  id: e.id,
407
468
  align: e.align,
408
469
  className: t.headClass,
409
470
  freezable: e.freezable,
410
471
  header: e.header,
411
- hideable: it(e),
472
+ hideable: pt(e),
412
473
  locked: e.locked,
413
474
  sortable: e.sortable,
414
475
  sticky: t.sticky,
@@ -418,51 +479,54 @@ function we(e) {
418
479
  ]
419
480
  })
420
481
  }),
421
- /* @__PURE__ */ I(l.Body, { children: yn() })
482
+ /* @__PURE__ */ I(l.Body, { children: An() })
422
483
  ]
423
- }), ze === "infinite" && Le && /* @__PURE__ */ L("div", {
424
- className: Q.footer(),
484
+ }), Ke === "infinite" && We && /* @__PURE__ */ L("div", {
485
+ className: $.footer(),
425
486
  "data-ox-slot": "data-table-loading",
426
487
  children: [/* @__PURE__ */ I("span", {
427
488
  "aria-hidden": "true",
428
- className: Q.spinner()
489
+ className: $.spinner()
429
490
  }), "Loading more…"]
430
491
  })]
431
492
  }),
432
- sn
493
+ gn
433
494
  ]
434
495
  })
435
496
  });
436
497
  }
437
- function Te(e, t) {
438
- return e.cell ? e.cell(t) : ye(typeof e.accessor == "function" ? e.accessor(t) : t[e.accessor]);
498
+ function je(e, t) {
499
+ return e.cell ? e.cell(t) : Te(typeof e.accessor == "function" ? e.accessor(t) : t[e.accessor]);
439
500
  }
440
- function Ee(e) {
441
- return be(e);
501
+ function Me(e) {
502
+ return Ee(e);
442
503
  }
443
- function De(e) {
444
- return !be(e);
504
+ function Ne(e) {
505
+ return !Ee(e);
445
506
  }
446
- function Oe(e) {
507
+ function Pe(e) {
447
508
  return e.system;
448
509
  }
449
- function ke(e) {
510
+ function Fe(e) {
450
511
  return !e.system;
451
512
  }
452
- function Ae(e) {
513
+ function Ie(e) {
453
514
  return e != null;
454
515
  }
455
- function je(e) {
516
+ function Le(e) {
456
517
  return e.id;
457
518
  }
458
- function Me(e) {
519
+ function Re(e) {
459
520
  return e.system ? !1 : e.hideable ?? !e.locked;
460
521
  }
461
- function Ne(e) {
522
+ function ze(e) {
462
523
  return [e.id, e];
463
524
  }
464
- function Pe(e) {
465
- let t = h(43), { align: r, className: i, freezable: a, header: o, hideable: s, id: c, locked: u, sortable: d, sticky: p, style: m } = e, { density: y, frozenColumns: b, hideColumn: C, requestSort: w, sort: E, toggleFrozen: O } = _e(), k;
525
+ function Be(e, t) {
526
+ return e.kind === "group" ? [t] : [];
527
+ }
528
+ function Ve(e) {
529
+ let t = h(43), { align: r, className: i, freezable: a, header: o, hideable: s, id: c, locked: u, sortable: d, sticky: p, style: m } = e, { density: y, frozenColumns: b, hideColumn: C, requestSort: w, sort: E, toggleFrozen: O } = Ce(), k;
466
530
  t[0] !== b || t[1] !== c ? (k = b.has(c), t[0] = b, t[1] = c, t[2] = k) : k = t[2];
467
531
  let A = k, j = E?.columnId === c, M, N, P, R, z, B, V, H, U;
468
532
  if (t[3] !== r || t[4] !== i || t[5] !== y || t[6] !== a || t[7] !== o || t[8] !== C || t[9] !== s || t[10] !== c || t[11] !== j || t[12] !== A || t[13] !== u || t[14] !== w || t[15] !== E?.direction || t[16] !== d || t[17] !== p || t[18] !== m || t[19] !== O) {
@@ -479,7 +543,7 @@ function Pe(e) {
479
543
  }) : /* @__PURE__ */ I(_, {
480
544
  "aria-hidden": "true",
481
545
  className: e.headSortIcon()
482
- })), M = l.Head, B = r, t[29] === i ? V = t[30] : (V = X("group/head", i), t[29] = i, t[30] = V), H = p, U = m, N = e.headCell(), P = u && /* @__PURE__ */ I(T, {
546
+ })), M = l.Head, B = r, t[29] === i ? V = t[30] : (V = Z("group/head", i), t[29] = i, t[30] = V), H = p, U = m, N = e.headCell(), P = u && /* @__PURE__ */ I(T, {
483
547
  "aria-hidden": "true",
484
548
  className: e.lockIcon()
485
549
  }), R = d ? /* @__PURE__ */ L("button", {
@@ -533,8 +597,8 @@ function Pe(e) {
533
597
  children: W
534
598
  }), t[36] = M, t[37] = W, t[38] = B, t[39] = V, t[40] = H, t[41] = U, t[42] = G) : G = t[42], G;
535
599
  }
536
- function Fe(e) {
537
- let t = h(6), { children: n, className: r } = e, { density: i } = _e(), a;
600
+ function He(e) {
601
+ let t = h(6), { children: n, className: r } = e, { density: i } = Ce(), a;
538
602
  t[0] !== r || t[1] !== i ? (a = f({ density: i }).toolbar({ class: r }), t[0] = r, t[1] = i, t[2] = a) : a = t[2];
539
603
  let o;
540
604
  return t[3] !== n || t[4] !== a ? (o = /* @__PURE__ */ I("div", {
@@ -543,7 +607,7 @@ function Fe(e) {
543
607
  children: n
544
608
  }), t[3] = n, t[4] = a, t[5] = o) : o = t[5], o;
545
609
  }
546
- function Ie(e) {
610
+ function Ue(e) {
547
611
  let t = h(5), { children: n, className: r } = e, i;
548
612
  t[0] === r ? i = t[1] : (i = f({}).toolbarGroup({ class: r }), t[0] = r, t[1] = i);
549
613
  let a;
@@ -553,15 +617,19 @@ function Ie(e) {
553
617
  children: n
554
618
  }), t[2] = n, t[3] = i, t[4] = a) : a = t[4], a;
555
619
  }
556
- function Le() {
620
+ function We() {
557
621
  let e = h(1), t;
558
- return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ I("span", {
559
- "aria-hidden": "true",
560
- className: f({}).divider(),
561
- "data-ox-slot": "toolbar-divider"
562
- }), e[0] = t) : t = e[0], t;
622
+ if (e[0] === Symbol.for("react.memo_cache_sentinel")) {
623
+ let n = f({});
624
+ t = /* @__PURE__ */ I("span", {
625
+ "aria-hidden": "true",
626
+ className: n.divider(),
627
+ "data-ox-slot": "toolbar-divider"
628
+ }), e[0] = t;
629
+ } else t = e[0];
630
+ return t;
563
631
  }
564
- function Re(e) {
632
+ function Ge(e) {
565
633
  let t = h(18), { children: n, className: r, rowClassName: i, slot: a, trailing: o } = e, s = f({}), c;
566
634
  t[0] === n ? c = t[1] : (c = O.toArray(n), t[0] = n, t[1] = c);
567
635
  let l = c.length > 0, u;
@@ -574,7 +642,7 @@ function Re(e) {
574
642
  children: n,
575
643
  trailing: o
576
644
  });
577
- let m = s.collapse({ class: r }), g = l ? void 0 : !0, _ = !l, v = s.collapseClip(), y = l ? n : d.children, b = l ? o : d.trailing, x;
645
+ let m = s.collapse({ class: r }), g = !l || void 0, _ = !l, v = s.collapseClip(), y = l ? n : d.children, b = l ? o : d.trailing, x;
578
646
  t[5] !== i || t[6] !== y || t[7] !== b ? (x = /* @__PURE__ */ L("div", {
579
647
  className: i,
580
648
  children: [y, b]
@@ -593,7 +661,7 @@ function Re(e) {
593
661
  children: S
594
662
  }), t[12] = a, t[13] = S, t[14] = m, t[15] = g, t[16] = _, t[17] = C) : C = t[17], C;
595
663
  }
596
- function ze(e) {
664
+ function Ke(e) {
597
665
  let n = h(20), { children: r, className: i, clearLabel: a, onClearAll: o } = e, s = a === void 0 ? "Clear all" : a, c, l, u, d;
598
666
  if (n[0] !== r || n[1] !== i || n[2] !== s || n[3] !== o) {
599
667
  let e = f({}), a;
@@ -603,7 +671,7 @@ function ze(e) {
603
671
  variant: "ghost",
604
672
  onClick: o,
605
673
  children: s
606
- }), n[10] = p, n[11] = s, n[12] = o, n[13] = m) : m = n[13], l = m, c = Re, u = i, d = e.filterChipsRow(), n[0] = r, n[1] = i, n[2] = s, n[3] = o, n[4] = c, n[5] = l, n[6] = u, n[7] = d;
674
+ }), n[10] = p, n[11] = s, n[12] = o, n[13] = m) : m = n[13], l = m, c = Ge, u = i, d = e.filterChipsRow(), n[0] = r, n[1] = i, n[2] = s, n[3] = o, n[4] = c, n[5] = l, n[6] = u, n[7] = d;
607
675
  } else c = n[4], l = n[5], u = n[6], d = n[7];
608
676
  let p;
609
677
  return n[14] !== c || n[15] !== r || n[16] !== l || n[17] !== u || n[18] !== d ? (p = /* @__PURE__ */ I(c, {
@@ -614,7 +682,7 @@ function ze(e) {
614
682
  children: r
615
683
  }), n[14] = c, n[15] = r, n[16] = l, n[17] = u, n[18] = d, n[19] = p) : p = n[19], p;
616
684
  }
617
- function Be(e) {
685
+ function qe(e) {
618
686
  let n = h(30), { className: i, groups: o, trigger: s, triggerLabel: c } = e, l, u, d, p, m, g, _;
619
687
  if (n[0] !== i || n[1] !== o || n[2] !== s || n[3] !== c) {
620
688
  let e = f({});
@@ -625,7 +693,7 @@ function Be(e) {
625
693
  isIconOnly: !0,
626
694
  variant: "ghost",
627
695
  children: /* @__PURE__ */ I(C, {})
628
- }), n[11] = s, n[12] = c, n[13] = h) : h = n[13], n[14] === h ? _ = n[15] : (_ = /* @__PURE__ */ I(a.Trigger, { children: h }), n[14] = h, n[15] = _), l = a.Content, m = "end", n[16] === i ? g = n[17] : (g = X("w-56 p-1.5", i), n[16] = i, n[17] = g), d = "filter-menu", p = o.map((t, n) => /* @__PURE__ */ L(k, { children: [
696
+ }), n[11] = s, n[12] = c, n[13] = h) : h = n[13], n[14] === h ? _ = n[15] : (_ = /* @__PURE__ */ I(a.Trigger, { children: h }), n[14] = h, n[15] = _), l = a.Content, m = "end", n[16] === i ? g = n[17] : (g = Z("w-56 p-1.5", i), n[16] = i, n[17] = g), d = "filter-menu", p = o.map((t, n) => /* @__PURE__ */ L(k, { children: [
629
697
  n > 0 && /* @__PURE__ */ I("div", { className: e.configSeparator() }),
630
698
  /* @__PURE__ */ I("div", {
631
699
  className: e.configTitle(),
@@ -657,8 +725,8 @@ function Be(e) {
657
725
  let b;
658
726
  return n[26] !== u || n[27] !== _ || n[28] !== y ? (b = /* @__PURE__ */ L(u, { children: [_, y] }), n[26] = u, n[27] = _, n[28] = y, n[29] = b) : b = n[29], b;
659
727
  }
660
- function Ve(e) {
661
- let t = h(18), { className: n, rows: r, toolbar: i } = e, a = r === void 0 ? 6 : r, o = i === void 0 ? !0 : i, c, l, u, d, p;
728
+ function Je(e) {
729
+ let t = h(18), { className: n, rows: r, toolbar: i } = e, a = r === void 0 ? 6 : r, o = i === void 0 || i, c, l, u, d, p;
662
730
  if (t[0] !== n || t[1] !== o) {
663
731
  let e = f({});
664
732
  l = "true", u = e.skeleton({ class: n }), d = "data-table-skeleton", p = o && /* @__PURE__ */ L("div", {
@@ -667,7 +735,7 @@ function Ve(e) {
667
735
  }), c = e.skeletonBody(), t[0] = n, t[1] = o, t[2] = c, t[3] = l, t[4] = u, t[5] = d, t[6] = p;
668
736
  } else c = t[2], l = t[3], u = t[4], d = t[5], p = t[6];
669
737
  let m;
670
- t[7] === a ? m = t[8] : (m = Array.from({ length: a }, He), t[7] = a, t[8] = m);
738
+ t[7] === a ? m = t[8] : (m = Array.from({ length: a }, Ye), t[7] = a, t[8] = m);
671
739
  let g;
672
740
  t[9] !== c || t[10] !== m ? (g = /* @__PURE__ */ I("div", {
673
741
  className: c,
@@ -681,11 +749,11 @@ function Ve(e) {
681
749
  children: [p, g]
682
750
  }), t[12] = l, t[13] = u, t[14] = d, t[15] = p, t[16] = g, t[17] = _) : _ = t[17], _;
683
751
  }
684
- function He(e, t) {
752
+ function Ye(e, t) {
685
753
  return /* @__PURE__ */ I(s, { className: "h-9.5 w-full rounded-sm" }, t);
686
754
  }
687
- function Z(e) {
688
- let t = h(11), { children: n, count: r, fallback: i } = e, { clearSelection: a, selectedCount: o, selectedRows: s } = _e(), c = r ?? o;
755
+ function Q(e) {
756
+ let t = h(11), { children: n, count: r, fallback: i } = e, { clearSelection: a, selectedCount: o, selectedRows: s } = Ce(), c = r ?? o;
689
757
  if (c === 0) {
690
758
  let e;
691
759
  return t[0] === i ? e = t[1] : (e = i == null ? null : /* @__PURE__ */ I(F, { children: i }), t[0] = i, t[1] = e), e;
@@ -705,8 +773,8 @@ function Z(e) {
705
773
  children: d
706
774
  }), t[8] = l, t[9] = d, t[10] = p) : p = t[10], p;
707
775
  }
708
- function Q(e) {
709
- let n = h(90), { className: r, layout: a, nextLabel: o, previousLabel: s, summary: c, variant: l } = e, d = a === void 0 ? "end" : a, p = o === void 0 ? "Next page" : o, m = s === void 0 ? "Previous page" : s, g = l === void 0 ? "simple" : l, { page: _, pageCount: v, pageSize: x, rowCount: S, setPage: C } = _e(), w = v ?? 1, T;
776
+ function $(e) {
777
+ let n = h(90), { className: r, layout: a, nextLabel: o, previousLabel: s, summary: c, variant: l } = e, d = a === void 0 ? "end" : a, p = o === void 0 ? "Next page" : o, m = s === void 0 ? "Previous page" : s, g = l === void 0 ? "simple" : l, { page: _, pageCount: v, pageSize: x, rowCount: S, setPage: C } = Ce(), w = v ?? 1, T;
710
778
  n[0] !== _ || n[1] !== w ? (T = {
711
779
  total: w,
712
780
  page: _
@@ -715,7 +783,7 @@ function Q(e) {
715
783
  if (n[3] !== r || n[4] !== E || n[5] !== D || n[6] !== O || n[7] !== M || n[8] !== p || n[9] !== k || n[10] !== _ || n[11] !== v || n[12] !== x || n[13] !== m || n[14] !== A || n[15] !== j || n[16] !== N || n[17] !== S || n[18] !== C || n[19] !== c) {
716
784
  B = Symbol.for("react.early_return_sentinel");
717
785
  bb0: {
718
- let e = f({ paginationLayout: N }), a = _ > 1, o = v == null ? !0 : _ < v, s = S === 0 ? 0 : (_ - 1) * x + 1, l = S == null ? _ * x : Math.min(_ * x, S), u;
786
+ let e = f({ paginationLayout: N }), a = _ > 1, o = v == null || _ < v, s = S === 0 ? 0 : (_ - 1) * x + 1, l = S == null ? _ * x : Math.min(_ * x, S), u;
719
787
  n[27] !== l || n[28] !== S || n[29] !== s || n[30] !== c ? (u = c ?? /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ L("span", {
720
788
  className: "font-medium text-fg",
721
789
  children: [
@@ -842,8 +910,8 @@ function Q(e) {
842
910
  ]
843
911
  }), n[83] = P, n[84] = R, n[85] = z, n[86] = V, n[87] = H, n[88] = U, n[89] = W) : W = n[89], W;
844
912
  }
845
- function Ue(e) {
846
- let t = h(6), { children: n, className: r } = e, { density: i } = _e(), a;
913
+ function Xe(e) {
914
+ let t = h(6), { children: n, className: r } = e, { density: i } = Ce(), a;
847
915
  t[0] !== r || t[1] !== i ? (a = f({ density: i }).footerBar({ class: r }), t[0] = r, t[1] = i, t[2] = a) : a = t[2];
848
916
  let o;
849
917
  return t[3] !== n || t[4] !== a ? (o = /* @__PURE__ */ I("div", {
@@ -852,7 +920,7 @@ function Ue(e) {
852
920
  children: n
853
921
  }), t[3] = n, t[4] = a, t[5] = o) : o = t[5], o;
854
922
  }
855
- function We(e) {
923
+ function Ze(e) {
856
924
  let t = h(29), { column: n, draftVisible: i, onToggleVisible: a } = e, o = f({}), s = M(), c = n.locked || !n.hideable, l;
857
925
  t[0] !== n.id || t[1] !== n.locked ? (l = {
858
926
  id: n.id,
@@ -886,7 +954,7 @@ function We(e) {
886
954
  disabled: c,
887
955
  onCheckedChange: D
888
956
  }), t[12] = c, t[13] = s, t[14] = E, t[15] = D, t[16] = O) : O = t[16];
889
- let k = X(o.configLabel(), c ? "cursor-not-allowed opacity-50" : "cursor-pointer select-none"), A;
957
+ let k = Z(o.configLabel(), c ? "cursor-not-allowed opacity-50" : "cursor-pointer select-none"), A;
890
958
  t[17] !== n.header || t[18] !== s || t[19] !== k ? (A = /* @__PURE__ */ I("label", {
891
959
  className: k,
892
960
  htmlFor: s,
@@ -905,18 +973,18 @@ function We(e) {
905
973
  ]
906
974
  }), t[21] = m, t[22] = x, t[23] = O, t[24] = A, t[25] = S, t[26] = C, t[27] = T, t[28] = j) : j = t[28], j;
907
975
  }
908
- function Ge(e) {
909
- let n = h(48), { applyLabel: r, cancelLabel: i, className: o, title: s, trigger: c } = e, l = r === void 0 ? "Apply" : r, u = i === void 0 ? "Cancel" : i, d = s === void 0 ? "Configure table" : s, { columnVisibility: p, orderedColumns: g, setColumnOrder: _, setColumnVisibility: v } = _e(), y;
910
- n[0] === g ? y = n[1] : (y = g.filter(Xe), n[0] = g, n[1] = y);
976
+ function Qe(e) {
977
+ let n = h(48), { applyLabel: r, cancelLabel: i, className: o, title: s, trigger: c } = e, l = r === void 0 ? "Apply" : r, u = i === void 0 ? "Cancel" : i, d = s === void 0 ? "Configure table" : s, { columnVisibility: p, orderedColumns: g, setColumnOrder: _, setColumnVisibility: v } = Ce(), y;
978
+ n[0] === g ? y = n[1] : (y = g.filter(rt), n[0] = g, n[1] = y);
911
979
  let b = y, x = f({}), [S, C] = P(!1), w;
912
- n[2] === b ? w = n[3] : (w = () => b.map(Ye), n[2] = b, n[3] = w);
980
+ n[2] === b ? w = n[3] : (w = () => b.map(nt), n[2] = b, n[3] = w);
913
981
  let [T, D] = P(w), O;
914
982
  n[4] === p ? O = n[5] : (O = () => p, n[4] = p, n[5] = O);
915
983
  let [k, A] = P(O), j;
916
- n[6] === b ? j = n[7] : (j = new Map(b.map(Je)), n[6] = b, n[7] = j);
984
+ n[6] === b ? j = n[7] : (j = new Map(b.map(tt)), n[6] = b, n[7] = j);
917
985
  let M = j, N;
918
986
  n[8] !== p || n[9] !== b || n[10] !== C ? (N = (e) => {
919
- e && (D(b.map(qe)), A(p)), C(e);
987
+ e && (D(b.map(et)), A(p)), C(e);
920
988
  }, n[8] = p, n[9] = b, n[10] = C, n[11] = N) : N = n[11];
921
989
  let F = N, K;
922
990
  n[12] === Symbol.for("react.memo_cache_sentinel") ? (K = { activationConstraint: { distance: 4 } }, n[12] = K) : K = n[12];
@@ -934,12 +1002,12 @@ function Ge(e) {
934
1002
  [e]: t[e] === !1
935
1003
  }));
936
1004
  }, n[15] = ae) : ae = n[15];
937
- let J = ae, oe;
938
- n[16] !== b || n[17] !== T || n[18] !== k || n[19] !== _ || n[20] !== v || n[21] !== C ? (oe = () => {
939
- let e = b.map(Ke), t = new Set(e);
1005
+ let oe = ae, se;
1006
+ n[16] !== b || n[17] !== T || n[18] !== k || n[19] !== _ || n[20] !== v || n[21] !== C ? (se = () => {
1007
+ let e = b.map($e), t = new Set(e);
940
1008
  _(T.filter((e) => t.has(e))), v(te(k, e)), C(!1);
941
- }, n[16] = b, n[17] = T, n[18] = k, n[19] = _, n[20] = v, n[21] = C, n[22] = oe) : oe = n[22];
942
- let se = oe, Y;
1009
+ }, n[16] = b, n[17] = T, n[18] = k, n[19] = _, n[20] = v, n[21] = C, n[22] = se) : se = n[22];
1010
+ let J = se, Y;
943
1011
  n[23] === c ? Y = n[24] : (Y = c ?? /* @__PURE__ */ I(t, {
944
1012
  "aria-label": "Configure table",
945
1013
  isIconOnly: !0,
@@ -949,37 +1017,37 @@ function Ge(e) {
949
1017
  let ce;
950
1018
  n[25] === Y ? ce = n[26] : (ce = /* @__PURE__ */ I(a.Trigger, { children: Y }), n[25] = Y, n[26] = ce);
951
1019
  let le;
952
- n[27] === o ? le = n[28] : (le = X("p-1.5", o), n[27] = o, n[28] = le);
1020
+ n[27] === o ? le = n[28] : (le = Z("p-1.5", o), n[27] = o, n[28] = le);
953
1021
  let ue = x.configPanel(), de = x.configList(), fe;
954
1022
  if (n[29] !== T || n[30] !== k || n[31] !== M) {
955
1023
  let e;
956
1024
  n[33] !== k || n[34] !== M ? (e = (e) => {
957
1025
  let t = M.get(e);
958
- return t == null ? null : /* @__PURE__ */ I(We, {
1026
+ return t == null ? null : /* @__PURE__ */ I(Ze, {
959
1027
  column: t,
960
1028
  draftVisible: k[e] !== !1,
961
- onToggleVisible: J
1029
+ onToggleVisible: oe
962
1030
  }, e);
963
1031
  }, n[33] = k, n[34] = M, n[35] = e) : e = n[35], fe = T.map(e), n[29] = T, n[30] = k, n[31] = M, n[32] = fe;
964
1032
  } else fe = n[32];
965
- let pe = x.configActions(), me;
966
- n[36] === C ? me = n[37] : (me = () => C(!1), n[36] = C, n[37] = me);
967
- let he;
968
- n[38] !== u || n[39] !== me ? (he = /* @__PURE__ */ I(t, {
1033
+ let pe = x.configActions(), X;
1034
+ n[36] === C ? X = n[37] : (X = () => C(!1), n[36] = C, n[37] = X);
1035
+ let me;
1036
+ n[38] !== u || n[39] !== X ? (me = /* @__PURE__ */ I(t, {
969
1037
  variant: "outline",
970
- onClick: me,
1038
+ onClick: X,
971
1039
  children: u
972
- }), n[38] = u, n[39] = me, n[40] = he) : he = n[40];
973
- let ge;
974
- n[41] !== se || n[42] !== l ? (ge = /* @__PURE__ */ I(t, {
975
- onClick: se,
1040
+ }), n[38] = u, n[39] = X, n[40] = me) : me = n[40];
1041
+ let he;
1042
+ n[41] !== J || n[42] !== l ? (he = /* @__PURE__ */ I(t, {
1043
+ onClick: J,
976
1044
  children: l
977
- }), n[41] = se, n[42] = l, n[43] = ge) : ge = n[43];
978
- let ve;
979
- return n[44] !== pe || n[45] !== he || n[46] !== ge ? (ve = /* @__PURE__ */ L("div", {
1045
+ }), n[41] = J, n[42] = l, n[43] = he) : he = n[43];
1046
+ let ge;
1047
+ return n[44] !== pe || n[45] !== me || n[46] !== he ? (ge = /* @__PURE__ */ L("div", {
980
1048
  className: pe,
981
- children: [he, ge]
982
- }), n[44] = pe, n[45] = he, n[46] = ge, n[47] = ve) : ve = n[47], /* @__PURE__ */ L(a, {
1049
+ children: [me, he]
1050
+ }), n[44] = pe, n[45] = me, n[46] = he, n[47] = ge) : ge = n[47], /* @__PURE__ */ L(a, {
983
1051
  open: S,
984
1052
  onOpenChange: F,
985
1053
  children: [ce, /* @__PURE__ */ I(a.Content, {
@@ -1007,26 +1075,26 @@ function Ge(e) {
1007
1075
  })
1008
1076
  }),
1009
1077
  /* @__PURE__ */ I("div", { className: x.configSeparator() }),
1010
- ve
1078
+ ge
1011
1079
  ]
1012
1080
  })
1013
1081
  })]
1014
1082
  });
1015
1083
  }
1016
- function Ke(e) {
1084
+ function $e(e) {
1017
1085
  return e.id;
1018
1086
  }
1019
- function qe(e) {
1087
+ function et(e) {
1020
1088
  return e.id;
1021
1089
  }
1022
- function Je(e) {
1090
+ function tt(e) {
1023
1091
  return [e.id, e];
1024
1092
  }
1025
- function Ye(e) {
1093
+ function nt(e) {
1026
1094
  return e.id;
1027
1095
  }
1028
- function Xe(e) {
1096
+ function rt(e) {
1029
1097
  return !e.system;
1030
1098
  }
1031
1099
  //#endregion
1032
- export { Ge as OxDataTableColumnConfig, Le as OxDataTableDivider, ze as OxDataTableFilterChips, Be as OxDataTableFilterMenu, Ue as OxDataTableFooter, Q as OxDataTablePagination, we as OxDataTableRoot, Z as OxDataTableSelectionActions, Ve as OxDataTableSkeleton, Fe as OxDataTableToolbar, Ie as OxDataTableToolbarGroup };
1100
+ export { Qe as OxDataTableColumnConfig, We as OxDataTableDivider, Ke as OxDataTableFilterChips, qe as OxDataTableFilterMenu, Xe as OxDataTableFooter, $ as OxDataTablePagination, Ae as OxDataTableRoot, Q as OxDataTableSelectionActions, Je as OxDataTableSkeleton, He as OxDataTableToolbar, Ue as OxDataTableToolbarGroup };