@pibit.ai/cure-design-system 0.6.5 → 0.6.7
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.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +167 -166
- package/dist/patterns/table/TableWrapper.d.ts.map +1 -1
- package/dist/patterns/table/TableWrapper.js +288 -282
- package/dist/patterns/table/toolbar/ToolbarRadio.d.ts.map +1 -1
- package/dist/patterns/table/toolbar/ToolbarRadio.js +17 -16
- package/dist/patterns/table/types.d.ts +7 -0
- package/dist/patterns/table/types.d.ts.map +1 -1
- package/dist/patterns/table-component/TableComponent.d.ts.map +1 -1
- package/dist/patterns/table-component/TableComponent.js +100 -99
- package/dist/primitives/checkbox/checkbox.d.ts +53 -19
- package/dist/primitives/checkbox/checkbox.d.ts.map +1 -1
- package/dist/primitives/checkbox/checkbox.js +164 -45
- package/dist/primitives/checkbox/index.d.ts +1 -1
- package/dist/primitives/checkbox/index.d.ts.map +1 -1
- package/dist/primitives/dropdown/dropdown.d.ts.map +1 -1
- package/dist/primitives/dropdown/dropdown.js +18 -18
- package/dist/primitives/toggle/toggle.d.ts.map +1 -1
- package/dist/primitives/toggle/toggle.js +4 -1
- package/dist/styles/components.css +1 -1
- package/package.json +1 -1
|
@@ -1,125 +1,127 @@
|
|
|
1
|
-
import { jsx as c, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { ChevronRight as
|
|
1
|
+
import { jsx as c, jsxs as P, Fragment as er } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as rn, useRef as oe, useState as K, useMemo as E, useCallback as k, useEffect as Z, useLayoutEffect as tr } from "react";
|
|
3
|
+
import { ChevronRight as nn } from "@untitledui/icons";
|
|
4
4
|
import { cx as x } from "../../utils/cn.js";
|
|
5
|
-
import { TableCard as
|
|
6
|
-
import { TablePagination as
|
|
7
|
-
import { TableZoomControl as
|
|
8
|
-
import { useFitTableToViewport as
|
|
9
|
-
import { useTableZoomState as
|
|
10
|
-
import { getEffectiveAlignment as
|
|
11
|
-
import { parsePxValue as yt, DEFAULT_ZOOMABLE_COLUMN_MIN_WIDTH as
|
|
12
|
-
import { findGridCell as
|
|
13
|
-
import { scrollGridCellIntoView as
|
|
14
|
-
import { ROW_DRAG_THRESHOLD_PX as
|
|
15
|
-
import { selectionFromSingleCell as wt, resolveCellCoordFromElement as Xe, resolveRowAnchorCoordFromTarget as
|
|
16
|
-
import { BulkActionBar as
|
|
17
|
-
import { TableToolbar as
|
|
18
|
-
import { Checkbox as
|
|
19
|
-
import { ColumnHeaderMenu as
|
|
20
|
-
import { Button as
|
|
21
|
-
import { SummaryFooterRow as
|
|
22
|
-
import { RowActionsMenu as
|
|
23
|
-
import { Icon as
|
|
24
|
-
import { ShimmerLine as
|
|
25
|
-
const
|
|
5
|
+
import { TableCard as sn, Table as m } from "./table.js";
|
|
6
|
+
import { TablePagination as on } from "./TablePagination.js";
|
|
7
|
+
import { TableZoomControl as an } from "./TableZoomControl.js";
|
|
8
|
+
import { useFitTableToViewport as cn } from "./useFitTableToViewport.js";
|
|
9
|
+
import { useTableZoomState as dn } from "./useTableZoomState.js";
|
|
10
|
+
import { getEffectiveAlignment as ur, resolveColumnLabel as ln, alignmentClass as un } from "./toolbar/tableToolbarHelpers.js";
|
|
11
|
+
import { parsePxValue as yt, DEFAULT_ZOOMABLE_COLUMN_MIN_WIDTH as rr, supportsCssZoom as fn, DEFAULT_TABLE_ZOOM_MIN as pn, computeFillBaseWidth as hn, computeEffectiveTableWidth as yn, computeFlexColumnWidth as wn, DEFAULT_COLUMN_MAX_WIDTH as fr, getTableZoomFontSize as mn, computeNeedsHorizontalScroll as gn } from "./tableZoomLayout.js";
|
|
12
|
+
import { findGridCell as nr, isWithinCellEditor as Be, getGridNeighbor as xn, getGridTabNeighbor as Rn, focusGridCell as ir, GridNavProvider as vn } from "./useGridKeyboardNavigation.js";
|
|
13
|
+
import { scrollGridCellIntoView as En } from "./scrollCellIntoView.js";
|
|
14
|
+
import { ROW_DRAG_THRESHOLD_PX as kn, computeDropTarget as In, clipDropLineToScrollport as Ln, ROW_REORDER_ATTR as sr, measureRowPreview as bn, cloneRowForPreview as Nn, FloatingRowPreview as Dn, DropIndicatorLine as Wn, getRowDragScrollDelta as Sn, ROW_DRAG_SOURCE_STYLE as _n, ROW_SOURCE_INDEX_ATTR as Pn } from "./rowReorderDrag.js";
|
|
15
|
+
import { selectionFromSingleCell as wt, resolveCellCoordFromElement as Xe, resolveRowAnchorCoordFromTarget as Cn, buildCellRangeRect as mt, nextKeyboardCellSelection as Tn, CELL_RANGE_DRAG_THRESHOLD_PX as Fn, hitTestGridCell as On, canStartCellRangeFromTarget as or, getDragScrollDeltas as zn, getCellRangeVisualState as Gn, cellRangeEdgeBoxShadow as Mn } from "./cellRangeSelection.js";
|
|
16
|
+
import { BulkActionBar as Un } from "./toolbar/BulkActionBar.js";
|
|
17
|
+
import { TableToolbar as Yn } from "./toolbar/TableToolbar.js";
|
|
18
|
+
import { Checkbox as ar } from "../../primitives/checkbox/checkbox.js";
|
|
19
|
+
import { ColumnHeaderMenu as An } from "./toolbar/ColumnHeaderMenu.js";
|
|
20
|
+
import { Button as Bn } from "../../primitives/button/button.js";
|
|
21
|
+
import { SummaryFooterRow as Xn } from "./toolbar/SummaryFooter.js";
|
|
22
|
+
import { RowActionsMenu as $n } from "./toolbar/RowActionsMenu.js";
|
|
23
|
+
import { Icon as jn } from "../../primitives/icon/icon.js";
|
|
24
|
+
import { ShimmerLine as Zn } from "../../primitives/shimmer/shimmer.js";
|
|
25
|
+
const qn = fn(), Kn = 5, Hn = "__all__", cr = {
|
|
26
26
|
ArrowUp: "up",
|
|
27
27
|
ArrowDown: "down",
|
|
28
28
|
ArrowLeft: "left",
|
|
29
29
|
ArrowRight: "right"
|
|
30
30
|
}, Re = (s) => s.__rowId ?? s.id ?? s.rule_id ?? String(s);
|
|
31
|
-
function
|
|
31
|
+
function dr(s, u) {
|
|
32
32
|
return s === "all" ? new Set(u) : s ?? /* @__PURE__ */ new Set();
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Vn(s, u, f) {
|
|
35
35
|
return s ? s === "all" ? f.includes(u) : s.has(u) : !1;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Jn(s, u) {
|
|
38
38
|
return s ? s === "all" ? u.length : s.size : 0;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Qn(s, u) {
|
|
41
41
|
return u.length === 0 ? !1 : s === "all" ? !0 : u.every((f) => (s == null ? void 0 : s.has(f)) ?? !1);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ei(s, u) {
|
|
44
44
|
return s === "all" ? u.length > 0 : u.some((f) => (s == null ? void 0 : s.has(f)) ?? !1);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function ti(s) {
|
|
47
47
|
if (s)
|
|
48
48
|
return (u) => {
|
|
49
49
|
s(u === "all" ? "all" : new Set([...u].map(String)));
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function ri(s) {
|
|
53
53
|
var u;
|
|
54
|
-
return s != null && s.length ? s.length > 1 ? !0 : ((u = s[0]) == null ? void 0 : u.key) !==
|
|
54
|
+
return s != null && s.length ? s.length > 1 ? !0 : ((u = s[0]) == null ? void 0 : u.key) !== Hn : !1;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
return f ?
|
|
56
|
+
function lr(s, u, f) {
|
|
57
|
+
return f ? ur(f, u ?? /* @__PURE__ */ new Map()) : (u == null ? void 0 : u.get(s)) ?? "left";
|
|
58
58
|
}
|
|
59
|
-
const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s) => s.width ?? (s.maxWidth && s.sticky === "right" ? s.maxWidth : void 0),
|
|
59
|
+
const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s) => s.width ?? (s.maxWidth && s.sticky === "right" ? s.maxWidth : void 0), ni = (s) => ({
|
|
60
60
|
width: s.width,
|
|
61
|
-
maxWidth: s.maxWidth ??
|
|
61
|
+
maxWidth: s.maxWidth ?? fr,
|
|
62
62
|
minWidth: s.minWidth ?? s.width
|
|
63
|
-
}),
|
|
63
|
+
}), Wi = rn(
|
|
64
64
|
function({
|
|
65
65
|
data: u,
|
|
66
66
|
columns: f,
|
|
67
67
|
renderRowCell: xt,
|
|
68
|
-
onRowClick:
|
|
68
|
+
onRowClick: Ee,
|
|
69
69
|
onRowHover: H,
|
|
70
|
-
arialabel:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
70
|
+
arialabel: pr,
|
|
71
|
+
"data-testid": hr,
|
|
72
|
+
rowTestId: Rt,
|
|
73
|
+
size: vt = "sm",
|
|
74
|
+
allowDefaultRowClass: yr = !1,
|
|
75
|
+
centeredHeaders: wr = [],
|
|
76
|
+
rootClassName: mr,
|
|
77
|
+
removeBorders: Et,
|
|
78
|
+
headerClassName: gr,
|
|
77
79
|
isRowExpandable: kt,
|
|
78
|
-
renderExpandedContent:
|
|
80
|
+
renderExpandedContent: xr,
|
|
79
81
|
loading: X = !1,
|
|
80
|
-
loadingRowCount:
|
|
82
|
+
loadingRowCount: It = Kn,
|
|
81
83
|
renderHeaderCell: $e,
|
|
82
|
-
tableClassName:
|
|
84
|
+
tableClassName: Rr,
|
|
83
85
|
getRowClassName: je,
|
|
84
86
|
selectionMode: ae = "none",
|
|
85
87
|
selectedKeys: T,
|
|
86
88
|
onSelectionChange: W,
|
|
87
|
-
inlineSelection:
|
|
89
|
+
inlineSelection: ke = !1,
|
|
88
90
|
toolbar: d,
|
|
89
|
-
showToolbar:
|
|
90
|
-
toolbarTitle:
|
|
91
|
-
toolbarTrailing:
|
|
91
|
+
showToolbar: vr,
|
|
92
|
+
toolbarTitle: Lt,
|
|
93
|
+
toolbarTrailing: bt,
|
|
92
94
|
disableExtendedTools: Ie,
|
|
93
|
-
pagination:
|
|
95
|
+
pagination: S,
|
|
94
96
|
showBorders: Le,
|
|
95
|
-
emptyState:
|
|
97
|
+
emptyState: Nt,
|
|
96
98
|
editChrome: z,
|
|
97
|
-
showEditActions:
|
|
98
|
-
searchCollapsible:
|
|
99
|
-
isEditable:
|
|
100
|
-
isEditMode:
|
|
99
|
+
showEditActions: Er = !1,
|
|
100
|
+
searchCollapsible: Dt,
|
|
101
|
+
isEditable: kr,
|
|
102
|
+
isEditMode: Wt = !0,
|
|
101
103
|
toolbarSlot: Ze,
|
|
102
|
-
rowHeightClass:
|
|
104
|
+
rowHeightClass: St,
|
|
103
105
|
groupedData: V,
|
|
104
|
-
showSummaryFooter:
|
|
106
|
+
showSummaryFooter: Ir,
|
|
105
107
|
summaryFooterProps: qe,
|
|
106
108
|
bulkActionBar: be,
|
|
107
109
|
renderBulkActionBar: Ne,
|
|
108
110
|
onBulkDuplicate: De,
|
|
109
111
|
onBulkDelete: We,
|
|
110
|
-
bulkActionBusy:
|
|
112
|
+
bulkActionBusy: Se,
|
|
111
113
|
columnAlignments: J,
|
|
112
114
|
columnTextWrap: Q,
|
|
113
|
-
onColumnHeaderAction:
|
|
114
|
-
showColumnHeaderMenu:
|
|
115
|
-
columnMenuCapabilities:
|
|
115
|
+
onColumnHeaderAction: _e,
|
|
116
|
+
showColumnHeaderMenu: Lr,
|
|
117
|
+
columnMenuCapabilities: br,
|
|
116
118
|
renderGroupHeader: _t,
|
|
117
119
|
columnMenuSchema: ce,
|
|
118
120
|
columnSchema: de,
|
|
119
|
-
labelMeta:
|
|
120
|
-
renderColumnHeaderMenuExtraItems:
|
|
121
|
-
fillWidth:
|
|
122
|
-
zoom:
|
|
121
|
+
labelMeta: Nr,
|
|
122
|
+
renderColumnHeaderMenuExtraItems: Dr,
|
|
123
|
+
fillWidth: Wr = !1,
|
|
124
|
+
zoom: Sr,
|
|
123
125
|
rowActions: I,
|
|
124
126
|
onCellActivate: ee,
|
|
125
127
|
cellSelection: w = null,
|
|
@@ -128,12 +130,12 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
128
130
|
onPasteCells: He,
|
|
129
131
|
onClearCells: Ve
|
|
130
132
|
}, le) {
|
|
131
|
-
const { zoomConfig: G, zoomPercent: ue, setZoomPercent: Pt } =
|
|
133
|
+
const { zoomConfig: G, zoomPercent: ue, setZoomPercent: Pt } = dn(Sr), F = G !== null && qn, fe = ue / 100, Pe = F ? mn(ue) : void 0, D = Wr, g = oe(null), [pe, Ct] = K(null), _r = cn({
|
|
132
134
|
containerRef: g,
|
|
133
135
|
zoomConfig: G,
|
|
134
136
|
zoomPercent: ue,
|
|
135
137
|
setZoomPercent: Pt
|
|
136
|
-
}), te =
|
|
138
|
+
}), te = E(() => {
|
|
137
139
|
if (!D) return null;
|
|
138
140
|
const e = f.reduce(
|
|
139
141
|
(i, n) => ve(n) ? i + yt(gt(n)) : i,
|
|
@@ -143,25 +145,25 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
143
145
|
(i) => !ve(i)
|
|
144
146
|
).reduce(
|
|
145
147
|
(i, n) => i + yt(
|
|
146
|
-
n.minWidth ?? (F ?
|
|
148
|
+
n.minWidth ?? (F ? rr : void 0)
|
|
147
149
|
),
|
|
148
150
|
0
|
|
149
151
|
) + e };
|
|
150
|
-
}, [f, D, F]),
|
|
152
|
+
}, [f, D, F]), Tt = (G == null ? void 0 : G.minZoom) ?? pn, [Ce, Pr] = K(
|
|
151
153
|
() => /* @__PURE__ */ new Set()
|
|
152
|
-
), [
|
|
154
|
+
), [Cr, Ft] = K(
|
|
153
155
|
null
|
|
154
|
-
), [p,
|
|
155
|
-
M.current = e,
|
|
156
|
-
}, []), [q,
|
|
156
|
+
), [p, Tr] = K(null), M = oe(null), Je = oe({ x: 0, y: 0 }), re = k((e) => {
|
|
157
|
+
M.current = e, Tr(e);
|
|
158
|
+
}, []), [q, Ot] = K(null), [ne, Fr] = K(null), y = typeof N == "function", $ = oe(null), Qe = oe({ x: 0, y: 0 }), [ie, zt] = K(!1), et = oe(null), Te = ae === "single" || ae === "multiple", tt = !!I, U = Te && !ke, Fe = ri(V), rt = !!(I != null && I.onReorderRows) && (I == null ? void 0 : I.enableRowReorder) !== !1 && !Fe && !X, Or = E(() => ce != null && ce.length ? new Map(ce.map((e) => [e.key, e])) : /* @__PURE__ */ new Map(), [ce]), Gt = E(() => de != null && de.length ? new Map(de.map((e) => [e.value, e])) : /* @__PURE__ */ new Map(), [de]), Y = E(
|
|
157
159
|
() => f.map((e) => e.key),
|
|
158
160
|
[f]
|
|
159
|
-
),
|
|
160
|
-
|
|
161
|
+
), zr = k((e) => {
|
|
162
|
+
Pr((t) => {
|
|
161
163
|
const r = new Set(t);
|
|
162
164
|
return r.has(e) ? r.delete(e) : r.add(e), r;
|
|
163
165
|
});
|
|
164
|
-
}, []), Oe =
|
|
166
|
+
}, []), Oe = E(() => X ? Array.from({ length: It }, (e, t) => ({
|
|
165
167
|
id: `loading-${t}`
|
|
166
168
|
})) : u.map((e) => {
|
|
167
169
|
const t = e;
|
|
@@ -169,12 +171,12 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
169
171
|
return t;
|
|
170
172
|
const r = Re(t);
|
|
171
173
|
return t.id != null && String(t.id) === r ? t : { ...t, id: r };
|
|
172
|
-
}), [X, u,
|
|
174
|
+
}), [X, u, It]), R = E(() => X ? [] : Fe && V ? V.flatMap(
|
|
173
175
|
(e) => Ce.has(e.key) ? [] : e.rows.map((t) => Re(t))
|
|
174
|
-
) : Oe.map((e) => Re(e)), [X, Fe, V, Ce, Oe]), he =
|
|
175
|
-
() =>
|
|
176
|
+
) : Oe.map((e) => Re(e)), [X, Fe, V, Ce, Oe]), he = E(
|
|
177
|
+
() => dr(T, R),
|
|
176
178
|
[T, R]
|
|
177
|
-
), nt =
|
|
179
|
+
), nt = Jn(T, R), it = nt > 0, Mt = it && !!(be ?? Ne ?? De ?? We), ye = E(() => {
|
|
178
180
|
if (!it) return;
|
|
179
181
|
const e = u.filter(
|
|
180
182
|
(t) => he.has(Re(t))
|
|
@@ -183,46 +185,46 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
183
185
|
selectedKeys: he,
|
|
184
186
|
selectedRows: e,
|
|
185
187
|
clearSelection: () => W == null ? void 0 : W(/* @__PURE__ */ new Set()),
|
|
186
|
-
busy:
|
|
188
|
+
busy: Se
|
|
187
189
|
};
|
|
188
190
|
}, [
|
|
189
191
|
it,
|
|
190
192
|
he,
|
|
191
193
|
u,
|
|
192
194
|
W,
|
|
193
|
-
|
|
194
|
-
]),
|
|
195
|
+
Se
|
|
196
|
+
]), Ut = E(() => {
|
|
195
197
|
if (Ze != null) return Ze;
|
|
196
|
-
if (
|
|
198
|
+
if (Mt) {
|
|
197
199
|
if (be != null) return be;
|
|
198
200
|
if (Ne && ye)
|
|
199
201
|
return Ne(ye);
|
|
200
202
|
if (ye && (De || We))
|
|
201
203
|
return /* @__PURE__ */ c(
|
|
202
|
-
|
|
204
|
+
Un,
|
|
203
205
|
{
|
|
204
206
|
count: nt,
|
|
205
207
|
onDuplicate: De,
|
|
206
208
|
onDelete: We,
|
|
207
209
|
onClearSelection: ye.clearSelection,
|
|
208
|
-
busy:
|
|
210
|
+
busy: Se
|
|
209
211
|
}
|
|
210
212
|
);
|
|
211
213
|
}
|
|
212
214
|
const e = F && G ? /* @__PURE__ */ c(
|
|
213
|
-
|
|
215
|
+
an,
|
|
214
216
|
{
|
|
215
217
|
value: ue,
|
|
216
|
-
minValue:
|
|
218
|
+
minValue: Tt,
|
|
217
219
|
maxValue: G.maxZoom,
|
|
218
220
|
step: G.step,
|
|
219
221
|
onChange: Pt,
|
|
220
|
-
onFitToViewport:
|
|
222
|
+
onFitToViewport: _r,
|
|
221
223
|
isDisabled: Ie
|
|
222
224
|
}
|
|
223
|
-
) : null, t =
|
|
225
|
+
) : null, t = bt;
|
|
224
226
|
return !d && !t && !e ? null : /* @__PURE__ */ c(
|
|
225
|
-
|
|
227
|
+
Yn,
|
|
226
228
|
{
|
|
227
229
|
sort: d == null ? void 0 : d.sort,
|
|
228
230
|
filter: d == null ? void 0 : d.filter,
|
|
@@ -235,12 +237,12 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
235
237
|
sortContent: d == null ? void 0 : d.sortContent,
|
|
236
238
|
filterContent: d == null ? void 0 : d.filterContent,
|
|
237
239
|
views: d == null ? void 0 : d.views,
|
|
238
|
-
fallbackTitle:
|
|
240
|
+
fallbackTitle: Lt,
|
|
239
241
|
beforeSearch: e,
|
|
240
242
|
trailing: t,
|
|
241
|
-
searchCollapsible:
|
|
243
|
+
searchCollapsible: Dt,
|
|
242
244
|
disableExtendedTools: Ie,
|
|
243
|
-
isEditMode:
|
|
245
|
+
isEditMode: Wt,
|
|
244
246
|
undoRedo: d != null && d.undoRedo ? {
|
|
245
247
|
...d.undoRedo,
|
|
246
248
|
isDisabled: d.undoRedo.isDisabled ?? Ie
|
|
@@ -249,38 +251,38 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
249
251
|
);
|
|
250
252
|
}, [
|
|
251
253
|
Ze,
|
|
252
|
-
|
|
254
|
+
Mt,
|
|
253
255
|
be,
|
|
254
256
|
Ne,
|
|
255
257
|
ye,
|
|
256
258
|
De,
|
|
257
259
|
We,
|
|
258
|
-
|
|
260
|
+
Se,
|
|
259
261
|
nt,
|
|
260
262
|
d,
|
|
261
|
-
It,
|
|
262
263
|
Lt,
|
|
263
|
-
|
|
264
|
+
bt,
|
|
264
265
|
Dt,
|
|
266
|
+
Wt,
|
|
265
267
|
Ie,
|
|
266
268
|
G,
|
|
267
269
|
F,
|
|
268
270
|
ue,
|
|
269
|
-
|
|
270
|
-
]),
|
|
271
|
+
Tt
|
|
272
|
+
]), Yt = Ut != null && vr !== !1, At = !!S && (S == null ? void 0 : S.showPagination) !== !1, Gr = Yt || At, Bt = !X && u.length === 0 && Nt != null, C = !!(Er && z), st = !!(z != null && z.showFooterRow), L = kr ?? (C || st || tt), Mr = Bt && !(st && z), we = f.length + (U ? 1 : 0) + (C ? 1 : 0), Ur = !!(Ir && qe), b = Le ? "border-r border-secondary last:border-r-0" : void 0, Yr = E(() => {
|
|
271
273
|
const e = /* @__PURE__ */ new Map();
|
|
272
|
-
return
|
|
274
|
+
return _e && f.forEach((t) => {
|
|
273
275
|
e.set(
|
|
274
276
|
t.key,
|
|
275
|
-
(r) =>
|
|
277
|
+
(r) => _e(t.key, r)
|
|
276
278
|
);
|
|
277
279
|
}), e;
|
|
278
|
-
}, [f,
|
|
280
|
+
}, [f, _e]), ot = k(
|
|
279
281
|
(e, t, r) => {
|
|
280
282
|
var a;
|
|
281
283
|
let i = r ?? null;
|
|
282
284
|
if (i == null) {
|
|
283
|
-
const l = (a =
|
|
285
|
+
const l = (a = nr(
|
|
284
286
|
g.current,
|
|
285
287
|
e,
|
|
286
288
|
t
|
|
@@ -296,34 +298,34 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
296
298
|
N == null || N(wt(n));
|
|
297
299
|
return;
|
|
298
300
|
}
|
|
299
|
-
|
|
301
|
+
Ot(n);
|
|
300
302
|
},
|
|
301
303
|
[y, N]
|
|
302
|
-
), ze =
|
|
304
|
+
), ze = k(() => {
|
|
303
305
|
if (y) {
|
|
304
306
|
N == null || N(null);
|
|
305
307
|
return;
|
|
306
308
|
}
|
|
307
|
-
|
|
308
|
-
}, [y, N]),
|
|
309
|
+
Ot(null);
|
|
310
|
+
}, [y, N]), _ = y ? (w == null ? void 0 : w.focus) ?? null : q, A = k(
|
|
309
311
|
(e) => {
|
|
310
312
|
y && (N == null || N(e));
|
|
311
313
|
},
|
|
312
314
|
[y, N]
|
|
313
|
-
),
|
|
315
|
+
), Ar = k(
|
|
314
316
|
(e) => {
|
|
315
317
|
var Ae, se, xe;
|
|
316
|
-
const t = e.key in
|
|
318
|
+
const t = e.key in cr;
|
|
317
319
|
if (e.key !== "Enter" && e.key !== "Tab" && e.key !== "Escape" && e.key !== "Delete" && e.key !== "Backspace" && !t || Be(e.target)) return;
|
|
318
320
|
if (e.key === "Escape") {
|
|
319
|
-
if (!
|
|
321
|
+
if (!_ && !w) return;
|
|
320
322
|
e.preventDefault(), e.stopPropagation(), ze(), (Ae = g.current) != null && Ae.contains(document.activeElement) && document.activeElement.blur();
|
|
321
323
|
return;
|
|
322
324
|
}
|
|
323
325
|
const r = (xe = (se = e.target).closest) == null ? void 0 : xe.call(
|
|
324
326
|
se,
|
|
325
327
|
"[data-grid-cell]"
|
|
326
|
-
), i = r ? Xe(r) : null, n = y && t && e.shiftKey && !
|
|
328
|
+
), i = r ? Xe(r) : null, n = y && t && e.shiftKey && !_ && !i ? Cn(e.target, g.current) : null, a = n != null && he.has(n.rowId), l = _ ?? i ?? (a ? n : null);
|
|
327
329
|
if (!l) return;
|
|
328
330
|
if (e.key === "Delete" || e.key === "Backspace") {
|
|
329
331
|
if (!y || !w || !Ve) return;
|
|
@@ -349,14 +351,14 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
349
351
|
});
|
|
350
352
|
return;
|
|
351
353
|
}
|
|
352
|
-
const h = y && e.shiftKey && t, v = t ?
|
|
354
|
+
const h = y && e.shiftKey && t, v = t ? cr[e.key] : e.shiftKey ? "left" : "right", o = t ? xn(
|
|
353
355
|
g.current,
|
|
354
356
|
R,
|
|
355
357
|
Y,
|
|
356
358
|
l.rowId,
|
|
357
359
|
l.columnKey,
|
|
358
360
|
v
|
|
359
|
-
) :
|
|
361
|
+
) : Rn(
|
|
360
362
|
g.current,
|
|
361
363
|
R,
|
|
362
364
|
Y,
|
|
@@ -375,7 +377,7 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
375
377
|
sourceIndex: o.sourceIndex
|
|
376
378
|
} : null, me = a ? null : ht, ge = me ? v : null;
|
|
377
379
|
if (et.current = ge, y) {
|
|
378
|
-
const j =
|
|
380
|
+
const j = Tn(
|
|
379
381
|
l,
|
|
380
382
|
me,
|
|
381
383
|
w,
|
|
@@ -385,7 +387,7 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
385
387
|
} else o && ot(o.rowId, o.columnKey, o.sourceIndex);
|
|
386
388
|
const O = me ?? l;
|
|
387
389
|
requestAnimationFrame(
|
|
388
|
-
() =>
|
|
390
|
+
() => ir(
|
|
389
391
|
g.current,
|
|
390
392
|
O.rowId,
|
|
391
393
|
O.columnKey,
|
|
@@ -394,7 +396,7 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
394
396
|
);
|
|
395
397
|
},
|
|
396
398
|
[
|
|
397
|
-
|
|
399
|
+
_,
|
|
398
400
|
R,
|
|
399
401
|
y,
|
|
400
402
|
w,
|
|
@@ -408,55 +410,55 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
408
410
|
]
|
|
409
411
|
);
|
|
410
412
|
Z(() => {
|
|
411
|
-
if (!L || !
|
|
413
|
+
if (!L || !_ && !w) return;
|
|
412
414
|
const e = (t) => {
|
|
413
415
|
const r = g.current;
|
|
414
416
|
r && !r.contains(t.target) && ze();
|
|
415
417
|
};
|
|
416
418
|
return document.addEventListener("pointerdown", e, !0), () => document.removeEventListener("pointerdown", e, !0);
|
|
417
|
-
}, [L,
|
|
418
|
-
const at = (
|
|
419
|
-
|
|
419
|
+
}, [L, _, w, ze]);
|
|
420
|
+
const at = (_ == null ? void 0 : _.rowId) ?? null, ct = (_ == null ? void 0 : _.columnKey) ?? null;
|
|
421
|
+
tr(() => {
|
|
420
422
|
if (!L || ie || !at || !ct) return;
|
|
421
|
-
const e =
|
|
423
|
+
const e = nr(
|
|
422
424
|
g.current,
|
|
423
425
|
at,
|
|
424
426
|
ct
|
|
425
427
|
);
|
|
426
|
-
e &&
|
|
428
|
+
e && En(e, { dir: et.current });
|
|
427
429
|
}, [L, ie, at, ct]);
|
|
428
|
-
const
|
|
430
|
+
const Xt = E(() => {
|
|
429
431
|
let e = 0;
|
|
430
432
|
return U && (e += 40), C && (e += 56), f.forEach((t) => {
|
|
431
433
|
ve(t) && (e += yt(gt(t)));
|
|
432
434
|
}), e;
|
|
433
|
-
}, [f, C, U]),
|
|
435
|
+
}, [f, C, U]), $t = E(
|
|
434
436
|
() => f.filter((e) => !ve(e)).length,
|
|
435
437
|
[f]
|
|
436
|
-
), dt =
|
|
437
|
-
() => D && te ?
|
|
438
|
+
), dt = E(
|
|
439
|
+
() => D && te ? hn(pe, te.minTableWidth) : null,
|
|
438
440
|
[pe, D, te]
|
|
439
|
-
),
|
|
440
|
-
() =>
|
|
441
|
+
), jt = D && gn(dt, pe, fe), Ge = E(
|
|
442
|
+
() => yn(dt, pe, fe),
|
|
441
443
|
[dt, pe, fe]
|
|
442
|
-
), lt =
|
|
443
|
-
() =>
|
|
444
|
+
), lt = E(
|
|
445
|
+
() => wn(
|
|
444
446
|
Ge,
|
|
445
|
-
|
|
446
|
-
|
|
447
|
+
Xt,
|
|
448
|
+
$t
|
|
447
449
|
),
|
|
448
|
-
[Ge,
|
|
450
|
+
[Ge, Xt, $t]
|
|
449
451
|
);
|
|
450
|
-
|
|
452
|
+
tr(() => {
|
|
451
453
|
if (!D) {
|
|
452
|
-
|
|
454
|
+
Ct(null);
|
|
453
455
|
return;
|
|
454
456
|
}
|
|
455
457
|
const e = g.current;
|
|
456
458
|
if (!e) return;
|
|
457
459
|
const t = () => {
|
|
458
460
|
const i = e.clientWidth;
|
|
459
|
-
i > 0 &&
|
|
461
|
+
i > 0 && Ct((n) => n === i ? n : i);
|
|
460
462
|
};
|
|
461
463
|
t();
|
|
462
464
|
const r = new ResizeObserver(t);
|
|
@@ -471,11 +473,11 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
471
473
|
C,
|
|
472
474
|
U
|
|
473
475
|
]);
|
|
474
|
-
const ut =
|
|
476
|
+
const ut = k(
|
|
475
477
|
(e) => {
|
|
476
478
|
if (!D)
|
|
477
|
-
return
|
|
478
|
-
const t = e.minWidth ?? (F ?
|
|
479
|
+
return ni(e);
|
|
480
|
+
const t = e.minWidth ?? (F ? rr : void 0), r = gt(e), i = r, n = e.maxWidth ?? r ?? fr;
|
|
479
481
|
return ve(e) && i ? {
|
|
480
482
|
minWidth: i,
|
|
481
483
|
width: i,
|
|
@@ -486,10 +488,10 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
486
488
|
} : { minWidth: t, maxWidth: n };
|
|
487
489
|
},
|
|
488
490
|
[D, lt, F]
|
|
489
|
-
),
|
|
491
|
+
), Br = E(() => {
|
|
490
492
|
const e = F ? {
|
|
491
493
|
zoom: fe,
|
|
492
|
-
"--table-zoom-font-size":
|
|
494
|
+
"--table-zoom-font-size": Pe ? `${Pe}px` : void 0
|
|
493
495
|
} : void 0;
|
|
494
496
|
return !D || !te ? F ? { ...e, width: "max-content", minWidth: "100%" } : void 0 : {
|
|
495
497
|
...e,
|
|
@@ -501,24 +503,24 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
501
503
|
}, [
|
|
502
504
|
D,
|
|
503
505
|
te,
|
|
504
|
-
|
|
506
|
+
jt,
|
|
505
507
|
Ge,
|
|
506
508
|
F,
|
|
507
509
|
fe,
|
|
508
|
-
|
|
509
|
-
]),
|
|
510
|
+
Pe
|
|
511
|
+
]), Xr = k(
|
|
510
512
|
(e) => {
|
|
511
513
|
g.current = e, typeof le == "function" ? le(e) : le && (le.current = e);
|
|
512
514
|
},
|
|
513
515
|
[le]
|
|
514
|
-
),
|
|
516
|
+
), $r = Te && ke ? {
|
|
515
517
|
selectionMode: ae,
|
|
516
518
|
selectedKeys: T === "all" ? "all" : T,
|
|
517
|
-
onSelectionChange:
|
|
518
|
-
} : {},
|
|
519
|
+
onSelectionChange: ti(W)
|
|
520
|
+
} : {}, jr = (e, t = 0) => {
|
|
519
521
|
const r = e.__sourceIndex;
|
|
520
522
|
return typeof r == "number" ? r : t;
|
|
521
|
-
}, Me =
|
|
523
|
+
}, Me = k(
|
|
522
524
|
(e) => {
|
|
523
525
|
const t = M.current;
|
|
524
526
|
if (!t) return;
|
|
@@ -526,12 +528,12 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
526
528
|
re(null), e && a && r !== i && (I != null && I.onReorderRows) && I.onReorderRows(r, i, n);
|
|
527
529
|
},
|
|
528
530
|
[I, re]
|
|
529
|
-
), Ue =
|
|
531
|
+
), Ue = k(
|
|
530
532
|
(e, t) => {
|
|
531
533
|
const r = M.current;
|
|
532
534
|
if (!r) return;
|
|
533
535
|
Je.current = { x: e, y: t };
|
|
534
|
-
const i = e - r.startX, n = t - r.startY, a = Math.hypot(i, n), l = r.active || a >=
|
|
536
|
+
const i = e - r.startX, n = t - r.startY, a = Math.hypot(i, n), l = r.active || a >= kn;
|
|
535
537
|
let h = {
|
|
536
538
|
...r,
|
|
537
539
|
currentX: e,
|
|
@@ -539,10 +541,10 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
539
541
|
active: l
|
|
540
542
|
};
|
|
541
543
|
if (l) {
|
|
542
|
-
r.active ||
|
|
544
|
+
r.active || Ft(null);
|
|
543
545
|
const v = g.current;
|
|
544
546
|
if (v) {
|
|
545
|
-
const o =
|
|
547
|
+
const o = In(
|
|
546
548
|
v,
|
|
547
549
|
t,
|
|
548
550
|
r.fromSourceIndex,
|
|
@@ -552,7 +554,7 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
552
554
|
...h,
|
|
553
555
|
toSourceIndex: o.toSourceIndex,
|
|
554
556
|
// Clip to scrollport so the line never draws over the header / outside the card.
|
|
555
|
-
dropLineY:
|
|
557
|
+
dropLineY: Ln(
|
|
556
558
|
o.dropLineY,
|
|
557
559
|
v
|
|
558
560
|
),
|
|
@@ -564,12 +566,12 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
564
566
|
re(h);
|
|
565
567
|
},
|
|
566
568
|
[re]
|
|
567
|
-
),
|
|
569
|
+
), Zr = k(
|
|
568
570
|
(e, t, r, i) => {
|
|
569
571
|
var v, o;
|
|
570
572
|
if (!rt || e.button !== 0) return;
|
|
571
573
|
const n = (v = g.current) == null ? void 0 : v.querySelector(
|
|
572
|
-
`tr[${
|
|
574
|
+
`tr[${sr}="${CSS.escape(t)}"]`
|
|
573
575
|
);
|
|
574
576
|
if (!n) return;
|
|
575
577
|
e.preventDefault();
|
|
@@ -577,7 +579,7 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
577
579
|
e.currentTarget.setPointerCapture(e.pointerId);
|
|
578
580
|
} catch {
|
|
579
581
|
}
|
|
580
|
-
const a =
|
|
582
|
+
const a = bn(n), l = Nn(n), h = ((o = n.closest("table")) == null ? void 0 : o.getBoundingClientRect()) ?? n.getBoundingClientRect();
|
|
581
583
|
Je.current = { x: e.clientX, y: e.clientY }, re({
|
|
582
584
|
rowId: t,
|
|
583
585
|
fromSourceIndex: r,
|
|
@@ -597,9 +599,9 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
597
599
|
});
|
|
598
600
|
},
|
|
599
601
|
[rt, re]
|
|
600
|
-
),
|
|
602
|
+
), Zt = p != null;
|
|
601
603
|
Z(() => {
|
|
602
|
-
if (!
|
|
604
|
+
if (!Zt) return;
|
|
603
605
|
const e = (n) => {
|
|
604
606
|
var a;
|
|
605
607
|
n.pointerId === ((a = M.current) == null ? void 0 : a.pointerId) && Ue(n.clientX, n.clientY);
|
|
@@ -615,7 +617,7 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
615
617
|
return window.addEventListener("pointermove", e), window.addEventListener("pointerup", t), window.addEventListener("pointercancel", r), window.addEventListener("keydown", i), () => {
|
|
616
618
|
window.removeEventListener("pointermove", e), window.removeEventListener("pointerup", t), window.removeEventListener("pointercancel", r), window.removeEventListener("keydown", i);
|
|
617
619
|
};
|
|
618
|
-
}, [
|
|
620
|
+
}, [Zt, Me, Ue]), Z(() => {
|
|
619
621
|
if (!(p != null && p.active)) return;
|
|
620
622
|
const e = document.body.style.userSelect, t = document.body.style.cursor;
|
|
621
623
|
return document.body.style.userSelect = "none", document.body.style.cursor = "grabbing", () => {
|
|
@@ -627,38 +629,38 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
627
629
|
const t = () => {
|
|
628
630
|
const r = M.current, i = g.current;
|
|
629
631
|
if (!(r != null && r.active) || !i) return;
|
|
630
|
-
const { x: n, y: a } = Je.current, l =
|
|
632
|
+
const { x: n, y: a } = Je.current, l = Sn(i, a);
|
|
631
633
|
l !== 0 && (i.scrollTop += l, Ue(n, a)), e = requestAnimationFrame(t);
|
|
632
634
|
};
|
|
633
635
|
return e = requestAnimationFrame(t), () => cancelAnimationFrame(e);
|
|
634
636
|
}, [p == null ? void 0 : p.active, Ue]);
|
|
635
|
-
const Ye =
|
|
637
|
+
const Ye = k(
|
|
636
638
|
(e, t) => {
|
|
637
639
|
const r = $.current, i = g.current;
|
|
638
640
|
if (!r || !i) return;
|
|
639
641
|
Qe.current = { x: e, y: t };
|
|
640
|
-
const n = e - r.startX, a = t - r.startY, l = Math.hypot(n, a), h = r.active || l >=
|
|
641
|
-
if (h && !r.active && (r.active = !0,
|
|
642
|
-
const v =
|
|
642
|
+
const n = e - r.startX, a = t - r.startY, l = Math.hypot(n, a), h = r.active || l >= Fn;
|
|
643
|
+
if (h && !r.active && (r.active = !0, zt(!0)), !h) return;
|
|
644
|
+
const v = On(i, e, t), o = v ? Xe(v) : null;
|
|
643
645
|
o && (r.focus = o, A({
|
|
644
646
|
anchor: r.anchor,
|
|
645
647
|
focus: o
|
|
646
648
|
}));
|
|
647
649
|
},
|
|
648
650
|
[A]
|
|
649
|
-
), ft =
|
|
651
|
+
), ft = k((e) => {
|
|
650
652
|
const t = $.current;
|
|
651
|
-
$.current = null,
|
|
652
|
-
() =>
|
|
653
|
+
$.current = null, zt(!1), t && requestAnimationFrame(
|
|
654
|
+
() => ir(
|
|
653
655
|
g.current,
|
|
654
656
|
t.focus.rowId,
|
|
655
657
|
t.focus.columnKey
|
|
656
658
|
)
|
|
657
659
|
);
|
|
658
|
-
}, []),
|
|
660
|
+
}, []), qr = k(
|
|
659
661
|
(e) => {
|
|
660
662
|
if (!y || !L || !ee || Be(e.target)) return;
|
|
661
|
-
const t =
|
|
663
|
+
const t = or(
|
|
662
664
|
e.target,
|
|
663
665
|
g.current
|
|
664
666
|
);
|
|
@@ -671,10 +673,10 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
671
673
|
}));
|
|
672
674
|
},
|
|
673
675
|
[y, A, L, ee]
|
|
674
|
-
),
|
|
676
|
+
), Kr = k(
|
|
675
677
|
(e) => {
|
|
676
678
|
if (!y || !L || e.button !== 0 || M.current) return;
|
|
677
|
-
const t =
|
|
679
|
+
const t = or(
|
|
678
680
|
e.target,
|
|
679
681
|
g.current
|
|
680
682
|
);
|
|
@@ -722,7 +724,7 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
722
724
|
const t = () => {
|
|
723
725
|
const r = $.current, i = g.current;
|
|
724
726
|
if (!(r != null && r.active) || !i) return;
|
|
725
|
-
const { x: n, y: a } = Qe.current, { dx: l, dy: h } =
|
|
727
|
+
const { x: n, y: a } = Qe.current, { dx: l, dy: h } = zn(i, n, a);
|
|
726
728
|
(l !== 0 || h !== 0) && (l !== 0 && (i.scrollLeft += l), h !== 0 && (i.scrollTop += h), Ye(n, a)), e = requestAnimationFrame(t);
|
|
727
729
|
};
|
|
728
730
|
return e = requestAnimationFrame(t), () => cancelAnimationFrame(e);
|
|
@@ -769,7 +771,7 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
769
771
|
Ke,
|
|
770
772
|
He
|
|
771
773
|
]);
|
|
772
|
-
const pt = Te &&
|
|
774
|
+
const pt = Te && Qn(T, R), Hr = Te && ei(T, R), Vr = () => {
|
|
773
775
|
if (W) {
|
|
774
776
|
if (pt) {
|
|
775
777
|
W(/* @__PURE__ */ new Set());
|
|
@@ -777,15 +779,15 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
777
779
|
}
|
|
778
780
|
W("all");
|
|
779
781
|
}
|
|
780
|
-
},
|
|
782
|
+
}, Jr = (e, t) => {
|
|
781
783
|
if (!W) return;
|
|
782
784
|
if (ae === "single") {
|
|
783
785
|
W(t ? /* @__PURE__ */ new Set([e]) : /* @__PURE__ */ new Set());
|
|
784
786
|
return;
|
|
785
787
|
}
|
|
786
|
-
const r = T === "all" ? new Set(R) : new Set(
|
|
788
|
+
const r = T === "all" ? new Set(R) : new Set(dr(T, R));
|
|
787
789
|
t ? r.add(e) : r.delete(e), W(r);
|
|
788
|
-
},
|
|
790
|
+
}, Qr = (e) => {
|
|
789
791
|
const t = Ce.has(e.key);
|
|
790
792
|
return _t ? /* @__PURE__ */ c(
|
|
791
793
|
m.Row,
|
|
@@ -807,16 +809,16 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
807
809
|
{
|
|
808
810
|
colSpan: we,
|
|
809
811
|
className: x("py-1.5", b),
|
|
810
|
-
children: /* @__PURE__ */
|
|
812
|
+
children: /* @__PURE__ */ P(
|
|
811
813
|
"button",
|
|
812
814
|
{
|
|
813
815
|
type: "button",
|
|
814
816
|
className: "flex w-full items-center gap-2 px-2 text-left text-xs font-medium text-secondary",
|
|
815
|
-
onClick: () =>
|
|
817
|
+
onClick: () => zr(e.key),
|
|
816
818
|
"aria-expanded": !t,
|
|
817
819
|
children: [
|
|
818
820
|
/* @__PURE__ */ c(
|
|
819
|
-
|
|
821
|
+
nn,
|
|
820
822
|
{
|
|
821
823
|
className: x(
|
|
822
824
|
"size-4 shrink-0 text-fg-quaternary transition-transform",
|
|
@@ -825,7 +827,7 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
825
827
|
}
|
|
826
828
|
),
|
|
827
829
|
/* @__PURE__ */ c("span", { className: "truncate", children: e.label || "(Empty)" }),
|
|
828
|
-
/* @__PURE__ */
|
|
830
|
+
/* @__PURE__ */ P("span", { className: "text-tertiary", children: [
|
|
829
831
|
"(",
|
|
830
832
|
e.rows.length,
|
|
831
833
|
")"
|
|
@@ -838,37 +840,39 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
838
840
|
},
|
|
839
841
|
`group-${e.key}`
|
|
840
842
|
);
|
|
841
|
-
},
|
|
842
|
-
const i = kt ? kt(e) : !1, n = Re(e), a =
|
|
843
|
-
return /* @__PURE__ */
|
|
843
|
+
}, qt = (e, t, r = 0) => {
|
|
844
|
+
const i = kt ? kt(e) : !1, n = Re(e), a = jr(e, r), l = Vn(T, n, R), h = Cr === n, v = (p == null ? void 0 : p.active) === !0 && p.rowId === n;
|
|
845
|
+
return /* @__PURE__ */ P(
|
|
844
846
|
m.Row,
|
|
845
847
|
{
|
|
846
848
|
onAction: () => {
|
|
847
849
|
var o;
|
|
848
|
-
(o = M.current) != null && o.active ||
|
|
850
|
+
(o = M.current) != null && o.active || Ee == null || Ee(e);
|
|
849
851
|
},
|
|
850
852
|
onMouseEnter: () => H == null ? void 0 : H(e, !0),
|
|
851
853
|
onMouseLeave: () => H == null ? void 0 : H(e, !1),
|
|
852
854
|
id: n,
|
|
855
|
+
"data-testid": Rt,
|
|
856
|
+
"data-row-id": Rt ? n : void 0,
|
|
853
857
|
value: e,
|
|
854
858
|
columns: f,
|
|
855
859
|
expandedColSpan: we,
|
|
856
860
|
isExpandable: i,
|
|
857
|
-
highlightSelectedRow:
|
|
858
|
-
renderExpandedContent: i ?
|
|
859
|
-
[
|
|
860
|
-
[
|
|
861
|
+
highlightSelectedRow: ke,
|
|
862
|
+
renderExpandedContent: i ? xr : void 0,
|
|
863
|
+
[sr]: n,
|
|
864
|
+
[Pn]: String(a),
|
|
861
865
|
className: x(
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
866
|
+
Ee && "cursor-pointer",
|
|
867
|
+
yr ? "prose" : "",
|
|
868
|
+
Et && "[&>td]:after:hidden",
|
|
865
869
|
tt && "group/rowactions",
|
|
866
870
|
h && "bg-utility-brand-25 hover:bg-utility-brand-25",
|
|
867
871
|
U && l && "bg-secondary",
|
|
868
|
-
|
|
872
|
+
St,
|
|
869
873
|
je == null ? void 0 : je(e)
|
|
870
874
|
),
|
|
871
|
-
style: v ?
|
|
875
|
+
style: v ? _n : void 0,
|
|
872
876
|
children: [
|
|
873
877
|
U && /* @__PURE__ */ c(
|
|
874
878
|
m.Cell,
|
|
@@ -883,10 +887,10 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
883
887
|
onClick: (o) => o.stopPropagation(),
|
|
884
888
|
onKeyDown: (o) => o.stopPropagation(),
|
|
885
889
|
children: /* @__PURE__ */ c(
|
|
886
|
-
|
|
890
|
+
ar,
|
|
887
891
|
{
|
|
888
|
-
|
|
889
|
-
|
|
892
|
+
isSelected: l,
|
|
893
|
+
onChange: (o) => Jr(n, o),
|
|
890
894
|
"aria-label": `Select row ${n}`,
|
|
891
895
|
className: "items-center justify-center"
|
|
892
896
|
}
|
|
@@ -895,18 +899,18 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
895
899
|
)
|
|
896
900
|
}
|
|
897
901
|
),
|
|
898
|
-
f.map((o,
|
|
899
|
-
const ht =
|
|
902
|
+
f.map((o, Jt) => {
|
|
903
|
+
const ht = Gt.get(o.key), me = lr(
|
|
900
904
|
o.key,
|
|
901
905
|
J,
|
|
902
906
|
ht
|
|
903
|
-
), ge = (ne == null ? void 0 : ne.rowId) === n && (ne == null ? void 0 : ne.columnKey) === o.key, O = y ?
|
|
907
|
+
), ge = (ne == null ? void 0 : ne.rowId) === n && (ne == null ? void 0 : ne.columnKey) === o.key, O = y ? Gn(
|
|
904
908
|
w,
|
|
905
909
|
n,
|
|
906
910
|
o.key,
|
|
907
911
|
R,
|
|
908
912
|
Y
|
|
909
|
-
) : null, Ae = !y && L && !ge && (q == null ? void 0 : q.rowId) === n && (q == null ? void 0 : q.columnKey) === o.key, se = !!(O != null && O.inRange) && L && !ge, xe = se && O ?
|
|
913
|
+
) : null, Ae = !y && L && !ge && (q == null ? void 0 : q.rowId) === n && (q == null ? void 0 : q.columnKey) === o.key, se = !!(O != null && O.inRange) && L && !ge, xe = se && O ? Mn(O.edges) : void 0, j = ut(o);
|
|
910
914
|
return /* @__PURE__ */ c(
|
|
911
915
|
m.Cell,
|
|
912
916
|
{
|
|
@@ -931,11 +935,11 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
931
935
|
// content must not truncate itself for wrapping to show.
|
|
932
936
|
(Q == null ? void 0 : Q.has(o.key)) && "whitespace-normal break-words",
|
|
933
937
|
o.cellClassName,
|
|
934
|
-
|
|
938
|
+
un(me),
|
|
935
939
|
b
|
|
936
940
|
),
|
|
937
941
|
children: (() => {
|
|
938
|
-
const
|
|
942
|
+
const Qt = Jt === 0 && (i || tt) ? /* @__PURE__ */ P("div", { className: "flex items-center", children: [
|
|
939
943
|
I && /* @__PURE__ */ c(
|
|
940
944
|
"div",
|
|
941
945
|
{
|
|
@@ -945,14 +949,14 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
945
949
|
onContextMenu: (B) => B.stopPropagation(),
|
|
946
950
|
onKeyDown: (B) => B.stopPropagation(),
|
|
947
951
|
children: /* @__PURE__ */ c(
|
|
948
|
-
|
|
952
|
+
$n,
|
|
949
953
|
{
|
|
950
954
|
config: I,
|
|
951
955
|
sourceRowIndex: a,
|
|
952
956
|
item: e,
|
|
953
957
|
enableDrag: rt,
|
|
954
958
|
isDragging: v,
|
|
955
|
-
onDragHandlePointerDown: (B) =>
|
|
959
|
+
onDragHandlePointerDown: (B) => Zr(
|
|
956
960
|
B,
|
|
957
961
|
n,
|
|
958
962
|
a,
|
|
@@ -964,7 +968,7 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
964
968
|
"transition-opacity group-hover/rowactions:opacity-100 focus-visible:opacity-100",
|
|
965
969
|
h || v ? "opacity-100" : "opacity-0"
|
|
966
970
|
),
|
|
967
|
-
onOpenChange: (B) =>
|
|
971
|
+
onOpenChange: (B) => Ft(B ? n : null)
|
|
968
972
|
}
|
|
969
973
|
)
|
|
970
974
|
}
|
|
@@ -977,9 +981,9 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
977
981
|
"data-grid-focus": !0,
|
|
978
982
|
tabIndex: -1,
|
|
979
983
|
className: "outline-hidden",
|
|
980
|
-
children:
|
|
984
|
+
children: Qt
|
|
981
985
|
}
|
|
982
|
-
) :
|
|
986
|
+
) : Qt;
|
|
983
987
|
})()
|
|
984
988
|
},
|
|
985
989
|
o.key
|
|
@@ -1001,7 +1005,7 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
1001
1005
|
onClick: (o) => {
|
|
1002
1006
|
o.stopPropagation(), z.onDeleteRow(a);
|
|
1003
1007
|
},
|
|
1004
|
-
children: /* @__PURE__ */ c(
|
|
1008
|
+
children: /* @__PURE__ */ c(jn, { name: "Trash02", className: "size-3" })
|
|
1005
1009
|
}
|
|
1006
1010
|
)
|
|
1007
1011
|
}
|
|
@@ -1010,12 +1014,12 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
1010
1014
|
},
|
|
1011
1015
|
n
|
|
1012
1016
|
);
|
|
1013
|
-
},
|
|
1017
|
+
}, en = (e) => /* @__PURE__ */ P(
|
|
1014
1018
|
m.Row,
|
|
1015
1019
|
{
|
|
1016
1020
|
id: String(e.id),
|
|
1017
1021
|
isExpandable: !1,
|
|
1018
|
-
className: x(
|
|
1022
|
+
className: x(Et && "[&>td]:after:hidden", St),
|
|
1019
1023
|
children: [
|
|
1020
1024
|
U && /* @__PURE__ */ c(
|
|
1021
1025
|
m.Cell,
|
|
@@ -1035,7 +1039,7 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
1035
1039
|
t.cellClassName,
|
|
1036
1040
|
b
|
|
1037
1041
|
),
|
|
1038
|
-
children: /* @__PURE__ */ c(
|
|
1042
|
+
children: /* @__PURE__ */ c(Zn, { height: "14px", width: "75%", className: "rounded" })
|
|
1039
1043
|
},
|
|
1040
1044
|
t.key
|
|
1041
1045
|
)),
|
|
@@ -1049,53 +1053,54 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
1049
1053
|
]
|
|
1050
1054
|
},
|
|
1051
1055
|
String(e.id)
|
|
1052
|
-
),
|
|
1056
|
+
), tn = () => X ? Oe.map((e) => en(e)) : Fe && V ? V.flatMap((e) => {
|
|
1053
1057
|
const t = Ce.has(e.key);
|
|
1054
1058
|
return [
|
|
1055
|
-
|
|
1059
|
+
Qr(e),
|
|
1056
1060
|
...t ? [] : e.rows.map(
|
|
1057
|
-
(r, i) =>
|
|
1061
|
+
(r, i) => qt(r, void 0, i)
|
|
1058
1062
|
)
|
|
1059
1063
|
];
|
|
1060
1064
|
}) : Oe.map(
|
|
1061
|
-
(e, t) =>
|
|
1062
|
-
),
|
|
1063
|
-
|
|
1065
|
+
(e, t) => qt(e, void 0, t)
|
|
1066
|
+
), Kt = /* @__PURE__ */ c(
|
|
1067
|
+
sn.Root,
|
|
1064
1068
|
{
|
|
1065
|
-
ref:
|
|
1066
|
-
onKeyDownCapture: L ?
|
|
1067
|
-
onPointerDownCapture: y ?
|
|
1068
|
-
onDoubleClickCapture: y ?
|
|
1069
|
+
ref: Xr,
|
|
1070
|
+
onKeyDownCapture: L ? Ar : void 0,
|
|
1071
|
+
onPointerDownCapture: y ? Kr : void 0,
|
|
1072
|
+
onDoubleClickCapture: y ? qr : void 0,
|
|
1069
1073
|
className: x(
|
|
1070
1074
|
"w-full",
|
|
1071
|
-
!D ||
|
|
1075
|
+
!D || jt ? "overflow-x-auto" : "overflow-x-hidden",
|
|
1072
1076
|
Le && "border border-secondary rounded-xl",
|
|
1073
1077
|
"[&_tr:hover>td]:!bg-secondary_subtle",
|
|
1074
|
-
|
|
1078
|
+
mr
|
|
1075
1079
|
),
|
|
1076
|
-
size:
|
|
1077
|
-
children: /* @__PURE__ */
|
|
1080
|
+
size: vt,
|
|
1081
|
+
children: /* @__PURE__ */ P(
|
|
1078
1082
|
m,
|
|
1079
1083
|
{
|
|
1080
|
-
"data-table-zoom-typography":
|
|
1081
|
-
"aria-label":
|
|
1082
|
-
|
|
1084
|
+
"data-table-zoom-typography": Pe !== void 0 ? "" : void 0,
|
|
1085
|
+
"aria-label": pr,
|
|
1086
|
+
"data-testid": hr,
|
|
1087
|
+
size: vt,
|
|
1083
1088
|
isEditable: L,
|
|
1084
|
-
inlineSelection:
|
|
1089
|
+
inlineSelection: ke,
|
|
1085
1090
|
className: x(
|
|
1086
1091
|
D && "min-w-full",
|
|
1087
|
-
|
|
1092
|
+
Rr
|
|
1088
1093
|
),
|
|
1089
|
-
style:
|
|
1090
|
-
|
|
1094
|
+
style: Br,
|
|
1095
|
+
...$r,
|
|
1091
1096
|
children: [
|
|
1092
|
-
/* @__PURE__ */
|
|
1097
|
+
/* @__PURE__ */ P(
|
|
1093
1098
|
m.Header,
|
|
1094
1099
|
{
|
|
1095
1100
|
className: x(
|
|
1096
1101
|
"sticky top-0 z-20",
|
|
1097
1102
|
Le && "[&>tr>th:first-child]:rounded-bl-none [&>tr>th:last-child]:rounded-br-none",
|
|
1098
|
-
|
|
1103
|
+
gr
|
|
1099
1104
|
),
|
|
1100
1105
|
children: [
|
|
1101
1106
|
U && /* @__PURE__ */ c(
|
|
@@ -1108,10 +1113,11 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
1108
1113
|
className: x(b),
|
|
1109
1114
|
headerCellClass: "justify-center",
|
|
1110
1115
|
children: ae === "multiple" && W && /* @__PURE__ */ c("div", { onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ c(
|
|
1111
|
-
|
|
1116
|
+
ar,
|
|
1112
1117
|
{
|
|
1113
|
-
|
|
1114
|
-
|
|
1118
|
+
isSelected: pt,
|
|
1119
|
+
isIndeterminate: Hr && !pt,
|
|
1120
|
+
onChange: () => Vr(),
|
|
1115
1121
|
"aria-label": "Select all rows",
|
|
1116
1122
|
className: "items-center justify-center"
|
|
1117
1123
|
}
|
|
@@ -1120,11 +1126,11 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
1120
1126
|
"selection"
|
|
1121
1127
|
),
|
|
1122
1128
|
f.map((e, t) => {
|
|
1123
|
-
const r =
|
|
1129
|
+
const r = Lr ? Or.get(e.key) : void 0, i = Gt.get(e.key), n = lr(
|
|
1124
1130
|
e.key,
|
|
1125
1131
|
J,
|
|
1126
1132
|
i
|
|
1127
|
-
), a =
|
|
1133
|
+
), a = wr.includes(e.key) || n === "center" ? "justify-center" : n === "right" ? "justify-end" : "";
|
|
1128
1134
|
return /* @__PURE__ */ c(
|
|
1129
1135
|
m.Head,
|
|
1130
1136
|
{
|
|
@@ -1141,20 +1147,20 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
1141
1147
|
e.headClassName,
|
|
1142
1148
|
b
|
|
1143
1149
|
),
|
|
1144
|
-
headerAction: r &&
|
|
1145
|
-
|
|
1150
|
+
headerAction: r && _e ? /* @__PURE__ */ c(
|
|
1151
|
+
An,
|
|
1146
1152
|
{
|
|
1147
1153
|
column: r,
|
|
1148
|
-
columnLabel: r.label ?? (i ?
|
|
1149
|
-
currentAlignment: i ?
|
|
1154
|
+
columnLabel: r.label ?? (i ? ln(i, Nr) : e.label),
|
|
1155
|
+
currentAlignment: i ? ur(
|
|
1150
1156
|
i,
|
|
1151
1157
|
J ?? /* @__PURE__ */ new Map()
|
|
1152
1158
|
) : (J == null ? void 0 : J.get(e.key)) ?? "left",
|
|
1153
1159
|
textWrapped: (Q == null ? void 0 : Q.has(e.key)) ?? !1,
|
|
1154
|
-
capabilities:
|
|
1160
|
+
capabilities: br,
|
|
1155
1161
|
hideDisabled: f.length <= 1,
|
|
1156
|
-
onAction:
|
|
1157
|
-
renderExtraItems:
|
|
1162
|
+
onAction: Yr.get(e.key),
|
|
1163
|
+
renderExtraItems: Dr,
|
|
1158
1164
|
showOnHeaderHover: !0
|
|
1159
1165
|
}
|
|
1160
1166
|
) : void 0,
|
|
@@ -1177,9 +1183,9 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
1177
1183
|
]
|
|
1178
1184
|
}
|
|
1179
1185
|
),
|
|
1180
|
-
/* @__PURE__ */
|
|
1181
|
-
!
|
|
1182
|
-
|
|
1186
|
+
/* @__PURE__ */ P(m.Body, { children: [
|
|
1187
|
+
!Bt && tn(),
|
|
1188
|
+
Mr && /* @__PURE__ */ c(
|
|
1183
1189
|
m.Row,
|
|
1184
1190
|
{
|
|
1185
1191
|
id: "empty-state",
|
|
@@ -1192,13 +1198,13 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
1192
1198
|
"text-left text-placeholder_subtle border-b border-secondary py-3",
|
|
1193
1199
|
b
|
|
1194
1200
|
),
|
|
1195
|
-
children:
|
|
1201
|
+
children: Nt
|
|
1196
1202
|
}
|
|
1197
1203
|
)
|
|
1198
1204
|
},
|
|
1199
1205
|
"empty-state"
|
|
1200
1206
|
),
|
|
1201
|
-
st && z && /* @__PURE__ */
|
|
1207
|
+
st && z && /* @__PURE__ */ P(
|
|
1202
1208
|
m.Row,
|
|
1203
1209
|
{
|
|
1204
1210
|
id: "add-row-footer",
|
|
@@ -1210,7 +1216,7 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
1210
1216
|
colSpan: we - (C ? 1 : 0),
|
|
1211
1217
|
className: x(b),
|
|
1212
1218
|
children: /* @__PURE__ */ c(
|
|
1213
|
-
|
|
1219
|
+
Bn,
|
|
1214
1220
|
{
|
|
1215
1221
|
color: "tertiary",
|
|
1216
1222
|
className: "bg-secondary text-primary",
|
|
@@ -1232,8 +1238,8 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
1232
1238
|
},
|
|
1233
1239
|
"add-row-footer"
|
|
1234
1240
|
),
|
|
1235
|
-
|
|
1236
|
-
|
|
1241
|
+
Ur && qe && /* @__PURE__ */ c(
|
|
1242
|
+
Xn,
|
|
1237
1243
|
{
|
|
1238
1244
|
...qe,
|
|
1239
1245
|
hasActionsColumn: C,
|
|
@@ -1246,20 +1252,20 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
1246
1252
|
}
|
|
1247
1253
|
)
|
|
1248
1254
|
}
|
|
1249
|
-
),
|
|
1250
|
-
|
|
1255
|
+
), Ht = L ? /* @__PURE__ */ c(
|
|
1256
|
+
vn,
|
|
1251
1257
|
{
|
|
1252
1258
|
rowIds: R,
|
|
1253
1259
|
columnKeys: Y,
|
|
1254
1260
|
containerRef: g,
|
|
1255
1261
|
onSelectCell: ot,
|
|
1256
|
-
onEditingCellChange:
|
|
1257
|
-
children:
|
|
1262
|
+
onEditingCellChange: Fr,
|
|
1263
|
+
children: Kt
|
|
1258
1264
|
}
|
|
1259
|
-
) :
|
|
1260
|
-
/* @__PURE__ */ c(
|
|
1265
|
+
) : Kt, Vt = p != null && p.active ? /* @__PURE__ */ P(er, { children: [
|
|
1266
|
+
/* @__PURE__ */ c(Dn, { session: p }),
|
|
1261
1267
|
p.dropLineY != null && /* @__PURE__ */ c(
|
|
1262
|
-
|
|
1268
|
+
Wn,
|
|
1263
1269
|
{
|
|
1264
1270
|
y: p.dropLineY,
|
|
1265
1271
|
left: p.dropLineLeft,
|
|
@@ -1267,28 +1273,28 @@ const ve = (s) => !!s.width || !!(s.maxWidth && s.sticky === "right"), gt = (s)
|
|
|
1267
1273
|
}
|
|
1268
1274
|
)
|
|
1269
1275
|
] }) : null;
|
|
1270
|
-
return
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1276
|
+
return Gr ? /* @__PURE__ */ P("div", { className: "flex flex-col gap-3", children: [
|
|
1277
|
+
Yt && Ut,
|
|
1278
|
+
Ht,
|
|
1279
|
+
At && S && /* @__PURE__ */ c(
|
|
1280
|
+
on,
|
|
1275
1281
|
{
|
|
1276
|
-
currentPage:
|
|
1277
|
-
pageSize:
|
|
1278
|
-
totalPages:
|
|
1279
|
-
totalItems:
|
|
1280
|
-
onPageChange:
|
|
1281
|
-
onPageSizeChange:
|
|
1282
|
-
showPagination:
|
|
1282
|
+
currentPage: S.currentPage,
|
|
1283
|
+
pageSize: S.pageSize,
|
|
1284
|
+
totalPages: S.totalPages,
|
|
1285
|
+
totalItems: S.totalItems,
|
|
1286
|
+
onPageChange: S.onPageChange,
|
|
1287
|
+
onPageSizeChange: S.onPageSizeChange,
|
|
1288
|
+
showPagination: S.showPagination
|
|
1283
1289
|
}
|
|
1284
1290
|
),
|
|
1285
|
-
|
|
1286
|
-
] }) : /* @__PURE__ */
|
|
1287
|
-
|
|
1288
|
-
|
|
1291
|
+
Vt
|
|
1292
|
+
] }) : /* @__PURE__ */ P(er, { children: [
|
|
1293
|
+
Ht,
|
|
1294
|
+
Vt
|
|
1289
1295
|
] });
|
|
1290
1296
|
}
|
|
1291
1297
|
);
|
|
1292
1298
|
export {
|
|
1293
|
-
|
|
1299
|
+
Wi as TableWrapper
|
|
1294
1300
|
};
|