@pibit.ai/cure-design-system 0.3.24 → 0.3.28
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 +55 -54
- package/dist/patterns/table/TableWrapper.d.ts.map +1 -1
- package/dist/patterns/table/TableWrapper.js +688 -546
- package/dist/patterns/table/index.d.ts +1 -1
- package/dist/patterns/table/index.d.ts.map +1 -1
- package/dist/patterns/table/rowReorderDrag.d.ts +57 -0
- package/dist/patterns/table/rowReorderDrag.d.ts.map +1 -0
- package/dist/patterns/table/rowReorderDrag.js +120 -0
- package/dist/patterns/table/table.d.ts.map +1 -1
- package/dist/patterns/table/table.js +36 -36
- package/dist/patterns/table/tableUndoRedo.d.ts.map +1 -1
- package/dist/patterns/table/tableUndoRedo.js +21 -18
- package/dist/patterns/table/toolbar/RowActionsMenu.d.ts +17 -1
- package/dist/patterns/table/toolbar/RowActionsMenu.d.ts.map +1 -1
- package/dist/patterns/table/toolbar/RowActionsMenu.js +69 -51
- package/dist/patterns/table/types.d.ts +1 -0
- package/dist/patterns/table/types.d.ts.map +1 -1
- package/dist/patterns/table/useTableUndoRedo.d.ts +9 -0
- package/dist/patterns/table/useTableUndoRedo.d.ts.map +1 -1
- package/dist/patterns/table/useTableUndoRedo.js +217 -127
- package/dist/primitives/checkbox/checkbox.d.ts.map +1 -1
- package/dist/primitives/checkbox/checkbox.js +16 -16
- package/dist/primitives/select/ExpandableSearchInput.d.ts.map +1 -1
- package/dist/primitives/select/ExpandableSearchInput.js +2 -1
- package/dist/primitives/select/SearchInput.d.ts +7 -7
- package/dist/primitives/select/SearchInput.d.ts.map +1 -1
- package/dist/primitives/select/SearchInput.js +66 -62
- package/dist/styles/components.css +1 -1
- package/package.json +1 -1
|
@@ -1,453 +1,559 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { ChevronRight as
|
|
4
|
-
import { cx as
|
|
5
|
-
import { TableCard as
|
|
6
|
-
import { TablePagination as
|
|
7
|
-
import { getEffectiveAlignment as
|
|
8
|
-
import { findGridCell as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
1
|
+
import { jsx as o, jsxs as N, Fragment as pt } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as lr, useState as U, useRef as yt, useCallback as T, useMemo as w, useEffect as Fe, useLayoutEffect as dr } from "react";
|
|
3
|
+
import { ChevronRight as cr } from "@untitledui/icons";
|
|
4
|
+
import { cx as f } from "../../utils/cn.js";
|
|
5
|
+
import { TableCard as ur, Table as u } from "./table.js";
|
|
6
|
+
import { TablePagination as fr } from "./TablePagination.js";
|
|
7
|
+
import { getEffectiveAlignment as Rt, resolveColumnLabel as hr, alignmentClass as pr } from "./toolbar/tableToolbarHelpers.js";
|
|
8
|
+
import { findGridCell as yr, isWithinCellEditor as wr, getGridNeighbor as xr, getGridTabNeighbor as gr, focusGridCell as br, GridNavProvider as mr } from "./useGridKeyboardNavigation.js";
|
|
9
|
+
import { ROW_DRAG_THRESHOLD_PX as vr, computeDropTarget as Rr, ROW_REORDER_ATTR as wt, measureRowPreview as Sr, cloneRowForPreview as Nr, FloatingRowPreview as Cr, DropIndicatorLine as kr, ROW_SOURCE_INDEX_ATTR as Ir } from "./rowReorderDrag.js";
|
|
10
|
+
import { BulkActionBar as Wr } from "./toolbar/BulkActionBar.js";
|
|
11
|
+
import { TableToolbar as Lr } from "./toolbar/TableToolbar.js";
|
|
12
|
+
import { Checkbox as xt } from "../../primitives/checkbox/checkbox.js";
|
|
13
|
+
import { ColumnHeaderMenu as Er } from "./toolbar/ColumnHeaderMenu.js";
|
|
14
|
+
import { Button as Pr } from "../../primitives/button/button.js";
|
|
15
|
+
import { SummaryFooterRow as _r } from "./toolbar/SummaryFooter.js";
|
|
16
|
+
import { RowActionsMenu as Tr } from "./toolbar/RowActionsMenu.js";
|
|
17
|
+
import { Icon as Or } from "../../primitives/icon/icon.js";
|
|
18
|
+
import { ShimmerLine as Dr } from "../../primitives/shimmer/shimmer.js";
|
|
19
|
+
const zr = 5, Fr = "__all__", gt = {
|
|
19
20
|
ArrowUp: "up",
|
|
20
21
|
ArrowDown: "down",
|
|
21
22
|
ArrowLeft: "left",
|
|
22
23
|
ArrowRight: "right"
|
|
23
|
-
},
|
|
24
|
-
function
|
|
25
|
-
return
|
|
24
|
+
}, Q = (n) => n.__rowId ?? n.id ?? n.rule_id ?? String(n);
|
|
25
|
+
function bt(n, l) {
|
|
26
|
+
return n === "all" ? new Set(l) : n ?? /* @__PURE__ */ new Set();
|
|
26
27
|
}
|
|
27
|
-
function
|
|
28
|
-
return
|
|
28
|
+
function Gr(n, l, c) {
|
|
29
|
+
return n ? n === "all" ? c.includes(l) : n.has(l) : !1;
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
-
return
|
|
31
|
+
function $r(n, l) {
|
|
32
|
+
return n ? n === "all" ? l.length : n.size : 0;
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
-
return
|
|
34
|
+
function Mr(n, l) {
|
|
35
|
+
return l.length === 0 ? !1 : n === "all" ? !0 : l.every((c) => (n == null ? void 0 : n.has(c)) ?? !1);
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
-
return
|
|
37
|
+
function Yr(n, l) {
|
|
38
|
+
return n === "all" ? l.length > 0 : l.some((c) => (n == null ? void 0 : n.has(c)) ?? !1);
|
|
38
39
|
}
|
|
39
|
-
function
|
|
40
|
-
if (
|
|
41
|
-
return (
|
|
42
|
-
|
|
40
|
+
function jr(n) {
|
|
41
|
+
if (n)
|
|
42
|
+
return (l) => {
|
|
43
|
+
n(l === "all" ? "all" : new Set([...l].map(String)));
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
-
var
|
|
47
|
-
return
|
|
46
|
+
function Ur(n) {
|
|
47
|
+
var l;
|
|
48
|
+
return n != null && n.length ? n.length > 1 ? !0 : ((l = n[0]) == null ? void 0 : l.key) !== Fr : !1;
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
-
return
|
|
50
|
+
function mt(n, l, c) {
|
|
51
|
+
return c ? Rt(c, l ?? /* @__PURE__ */ new Map()) : (l == null ? void 0 : l.get(n)) ?? "left";
|
|
51
52
|
}
|
|
52
|
-
const
|
|
53
|
-
if (!
|
|
54
|
-
const
|
|
55
|
-
return
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
53
|
+
const Me = "300px", Ge = (n) => {
|
|
54
|
+
if (!n) return 0;
|
|
55
|
+
const l = n.match(/^(\d+(?:\.\d+)?)px$/);
|
|
56
|
+
return l ? Number(l[1]) : 0;
|
|
57
|
+
}, Z = (n) => !!n.width || !!(n.maxWidth && n.sticky === "right"), $e = (n) => n.width ?? (n.maxWidth && n.sticky === "right" ? n.maxWidth : void 0), Xr = (n) => ({
|
|
58
|
+
width: n.width,
|
|
59
|
+
maxWidth: n.maxWidth ?? Me,
|
|
60
|
+
minWidth: n.minWidth ?? n.width
|
|
61
|
+
}), vt = (n) => {
|
|
62
|
+
const l = $e(n);
|
|
63
|
+
return l ? {
|
|
64
|
+
minWidth: l,
|
|
65
|
+
width: l,
|
|
66
|
+
maxWidth: n.maxWidth ?? l
|
|
67
|
+
} : {
|
|
68
|
+
minWidth: n.minWidth,
|
|
69
|
+
maxWidth: n.maxWidth ?? Me
|
|
70
|
+
};
|
|
71
|
+
}, un = lr(
|
|
67
72
|
function({
|
|
68
|
-
data:
|
|
69
|
-
columns:
|
|
70
|
-
renderRowCell:
|
|
71
|
-
onRowClick:
|
|
72
|
-
onRowHover:
|
|
73
|
-
arialabel:
|
|
74
|
-
size:
|
|
75
|
-
allowDefaultRowClass:
|
|
76
|
-
centeredHeaders:
|
|
77
|
-
rootClassName:
|
|
78
|
-
removeBorders:
|
|
79
|
-
headerClassName:
|
|
80
|
-
isRowExpandable:
|
|
81
|
-
renderExpandedContent:
|
|
82
|
-
loading:
|
|
83
|
-
loadingRowCount:
|
|
84
|
-
renderHeaderCell:
|
|
85
|
-
tableClassName:
|
|
86
|
-
getRowClassName:
|
|
87
|
-
selectionMode:
|
|
88
|
-
selectedKeys:
|
|
89
|
-
onSelectionChange:
|
|
90
|
-
inlineSelection:
|
|
91
|
-
toolbar:
|
|
92
|
-
showToolbar:
|
|
93
|
-
toolbarTitle:
|
|
94
|
-
toolbarTrailing:
|
|
95
|
-
disableExtendedTools:
|
|
96
|
-
pagination:
|
|
97
|
-
showBorders:
|
|
98
|
-
emptyState:
|
|
99
|
-
editChrome:
|
|
100
|
-
showEditActions:
|
|
101
|
-
searchCollapsible:
|
|
102
|
-
isEditable:
|
|
103
|
-
toolbarSlot:
|
|
104
|
-
rowHeightClass:
|
|
105
|
-
groupedData:
|
|
106
|
-
showSummaryFooter:
|
|
107
|
-
summaryFooterProps:
|
|
108
|
-
bulkActionBar:
|
|
109
|
-
renderBulkActionBar:
|
|
110
|
-
onBulkDuplicate:
|
|
111
|
-
onBulkDelete:
|
|
112
|
-
bulkActionBusy:
|
|
113
|
-
columnAlignments:
|
|
114
|
-
onColumnHeaderAction:
|
|
115
|
-
showColumnHeaderMenu:
|
|
116
|
-
columnMenuCapabilities:
|
|
117
|
-
renderGroupHeader:
|
|
118
|
-
columnMenuSchema:
|
|
119
|
-
columnSchema:
|
|
120
|
-
labelMeta:
|
|
121
|
-
renderColumnHeaderMenuExtraItems:
|
|
122
|
-
fillWidth:
|
|
123
|
-
rowActions:
|
|
124
|
-
onCellActivate:
|
|
125
|
-
},
|
|
126
|
-
const [
|
|
73
|
+
data: l,
|
|
74
|
+
columns: c,
|
|
75
|
+
renderRowCell: Ye,
|
|
76
|
+
onRowClick: K,
|
|
77
|
+
onRowHover: G,
|
|
78
|
+
arialabel: St,
|
|
79
|
+
size: je = "sm",
|
|
80
|
+
allowDefaultRowClass: Nt = !1,
|
|
81
|
+
centeredHeaders: Ct = [],
|
|
82
|
+
rootClassName: kt,
|
|
83
|
+
removeBorders: Ue,
|
|
84
|
+
headerClassName: It,
|
|
85
|
+
isRowExpandable: Xe,
|
|
86
|
+
renderExpandedContent: Wt,
|
|
87
|
+
loading: O = !1,
|
|
88
|
+
loadingRowCount: Be = zr,
|
|
89
|
+
renderHeaderCell: xe,
|
|
90
|
+
tableClassName: Lt,
|
|
91
|
+
getRowClassName: ge,
|
|
92
|
+
selectionMode: X = "none",
|
|
93
|
+
selectedKeys: L,
|
|
94
|
+
onSelectionChange: v,
|
|
95
|
+
inlineSelection: ee = !1,
|
|
96
|
+
toolbar: y,
|
|
97
|
+
showToolbar: Et,
|
|
98
|
+
toolbarTitle: qe,
|
|
99
|
+
toolbarTrailing: He,
|
|
100
|
+
disableExtendedTools: be,
|
|
101
|
+
pagination: R,
|
|
102
|
+
showBorders: te,
|
|
103
|
+
emptyState: Je,
|
|
104
|
+
editChrome: E,
|
|
105
|
+
showEditActions: Pt = !1,
|
|
106
|
+
searchCollapsible: Ve,
|
|
107
|
+
isEditable: _t,
|
|
108
|
+
toolbarSlot: me,
|
|
109
|
+
rowHeightClass: Ae,
|
|
110
|
+
groupedData: $,
|
|
111
|
+
showSummaryFooter: Tt,
|
|
112
|
+
summaryFooterProps: ve,
|
|
113
|
+
bulkActionBar: re,
|
|
114
|
+
renderBulkActionBar: ne,
|
|
115
|
+
onBulkDuplicate: ie,
|
|
116
|
+
onBulkDelete: se,
|
|
117
|
+
bulkActionBusy: oe,
|
|
118
|
+
columnAlignments: M,
|
|
119
|
+
onColumnHeaderAction: ae,
|
|
120
|
+
showColumnHeaderMenu: Ot,
|
|
121
|
+
columnMenuCapabilities: Dt,
|
|
122
|
+
renderGroupHeader: Qe,
|
|
123
|
+
columnMenuSchema: B,
|
|
124
|
+
columnSchema: q,
|
|
125
|
+
labelMeta: zt,
|
|
126
|
+
renderColumnHeaderMenuExtraItems: Ft,
|
|
127
|
+
fillWidth: b = !1,
|
|
128
|
+
rowActions: x,
|
|
129
|
+
onCellActivate: Re
|
|
130
|
+
}, H) {
|
|
131
|
+
const [le, Gt] = U(
|
|
127
132
|
() => /* @__PURE__ */ new Set()
|
|
128
|
-
), [
|
|
133
|
+
), [$t, Ze] = U(
|
|
129
134
|
null
|
|
130
|
-
), [
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
), [h, Mt] = U(null), z = yt(null), Y = T((e) => {
|
|
136
|
+
z.current = e, Mt(e);
|
|
137
|
+
}, []), [C, Se] = U(null), [j, Yt] = U(null), de = X === "single" || X === "multiple", Ne = !!x, P = de && !ee, ce = Ur($), Ce = !!(x != null && x.onReorderRows) && (x == null ? void 0 : x.enableRowReorder) !== !1 && !ce && !O, jt = w(() => B != null && B.length ? new Map(B.map((e) => [e.key, e])) : /* @__PURE__ */ new Map(), [B]), Ke = w(() => q != null && q.length ? new Map(q.map((e) => [e.value, e])) : /* @__PURE__ */ new Map(), [q]), ue = w(
|
|
138
|
+
() => c.map((e) => e.key),
|
|
139
|
+
[c]
|
|
140
|
+
), Ut = T((e) => {
|
|
141
|
+
Gt((t) => {
|
|
142
|
+
const r = new Set(t);
|
|
143
|
+
return r.has(e) ? r.delete(e) : r.add(e), r;
|
|
137
144
|
});
|
|
138
|
-
}, []),
|
|
139
|
-
id: `loading-${
|
|
140
|
-
})) :
|
|
141
|
-
const
|
|
142
|
-
if (
|
|
143
|
-
return
|
|
144
|
-
const
|
|
145
|
-
return
|
|
146
|
-
}), [
|
|
147
|
-
(e) =>
|
|
148
|
-
) :
|
|
149
|
-
() =>
|
|
150
|
-
[
|
|
151
|
-
),
|
|
152
|
-
if (!
|
|
153
|
-
const e =
|
|
154
|
-
(
|
|
145
|
+
}, []), fe = w(() => O ? Array.from({ length: Be }, (e, t) => ({
|
|
146
|
+
id: `loading-${t}`
|
|
147
|
+
})) : l.map((e) => {
|
|
148
|
+
const t = e;
|
|
149
|
+
if (t.__rowId != null)
|
|
150
|
+
return t;
|
|
151
|
+
const r = Q(t);
|
|
152
|
+
return t.id != null && String(t.id) === r ? t : { ...t, id: r };
|
|
153
|
+
}), [O, l, Be]), S = w(() => O ? [] : ce && $ ? $.flatMap(
|
|
154
|
+
(e) => le.has(e.key) ? [] : e.rows.map((t) => Q(t))
|
|
155
|
+
) : fe.map((e) => Q(e)), [O, ce, $, le, fe]), ke = w(
|
|
156
|
+
() => bt(L, S),
|
|
157
|
+
[L, S]
|
|
158
|
+
), Ie = $r(L, S), We = Ie > 0, et = We && !!(re ?? ne ?? ie ?? se), J = w(() => {
|
|
159
|
+
if (!We) return;
|
|
160
|
+
const e = l.filter(
|
|
161
|
+
(t) => ke.has(Q(t))
|
|
155
162
|
);
|
|
156
163
|
return {
|
|
157
|
-
selectedKeys:
|
|
164
|
+
selectedKeys: ke,
|
|
158
165
|
selectedRows: e,
|
|
159
|
-
clearSelection: () =>
|
|
160
|
-
busy:
|
|
166
|
+
clearSelection: () => v == null ? void 0 : v(/* @__PURE__ */ new Set()),
|
|
167
|
+
busy: oe
|
|
161
168
|
};
|
|
162
169
|
}, [
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
]),
|
|
169
|
-
if (
|
|
170
|
-
if (
|
|
171
|
-
if (
|
|
172
|
-
if (
|
|
173
|
-
return
|
|
174
|
-
if (
|
|
175
|
-
return /* @__PURE__ */
|
|
176
|
-
|
|
170
|
+
We,
|
|
171
|
+
ke,
|
|
172
|
+
l,
|
|
173
|
+
v,
|
|
174
|
+
oe
|
|
175
|
+
]), tt = w(() => {
|
|
176
|
+
if (me != null) return me;
|
|
177
|
+
if (et) {
|
|
178
|
+
if (re != null) return re;
|
|
179
|
+
if (ne && J)
|
|
180
|
+
return ne(J);
|
|
181
|
+
if (J && (ie || se))
|
|
182
|
+
return /* @__PURE__ */ o(
|
|
183
|
+
Wr,
|
|
177
184
|
{
|
|
178
|
-
count:
|
|
179
|
-
onDuplicate:
|
|
180
|
-
onDelete:
|
|
181
|
-
onClearSelection:
|
|
182
|
-
busy:
|
|
185
|
+
count: Ie,
|
|
186
|
+
onDuplicate: ie,
|
|
187
|
+
onDelete: se,
|
|
188
|
+
onClearSelection: J.clearSelection,
|
|
189
|
+
busy: oe
|
|
183
190
|
}
|
|
184
191
|
);
|
|
185
192
|
}
|
|
186
|
-
return
|
|
187
|
-
|
|
193
|
+
return y ? /* @__PURE__ */ o(
|
|
194
|
+
Lr,
|
|
188
195
|
{
|
|
189
|
-
sort:
|
|
190
|
-
filter:
|
|
191
|
-
search:
|
|
192
|
-
rowHeight:
|
|
193
|
-
hideFields:
|
|
194
|
-
align:
|
|
195
|
-
groupBy:
|
|
196
|
-
summary:
|
|
197
|
-
sortContent:
|
|
198
|
-
filterContent:
|
|
199
|
-
fallbackTitle:
|
|
200
|
-
trailing:
|
|
201
|
-
searchCollapsible:
|
|
202
|
-
disableExtendedTools:
|
|
203
|
-
undoRedo:
|
|
204
|
-
...
|
|
205
|
-
isDisabled:
|
|
196
|
+
sort: y.sort,
|
|
197
|
+
filter: y.filter,
|
|
198
|
+
search: y.search,
|
|
199
|
+
rowHeight: y.rowHeight,
|
|
200
|
+
hideFields: y.hideFields,
|
|
201
|
+
align: y.align,
|
|
202
|
+
groupBy: y.groupBy,
|
|
203
|
+
summary: y.summary,
|
|
204
|
+
sortContent: y.sortContent,
|
|
205
|
+
filterContent: y.filterContent,
|
|
206
|
+
fallbackTitle: qe,
|
|
207
|
+
trailing: He,
|
|
208
|
+
searchCollapsible: Ve,
|
|
209
|
+
disableExtendedTools: be,
|
|
210
|
+
undoRedo: y.undoRedo ? {
|
|
211
|
+
...y.undoRedo,
|
|
212
|
+
isDisabled: y.undoRedo.isDisabled ?? be
|
|
206
213
|
} : void 0
|
|
207
214
|
}
|
|
208
215
|
) : null;
|
|
209
216
|
}, [
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
]),
|
|
225
|
-
if (!
|
|
226
|
-
const e =
|
|
227
|
-
(
|
|
217
|
+
me,
|
|
218
|
+
et,
|
|
219
|
+
re,
|
|
220
|
+
ne,
|
|
221
|
+
J,
|
|
222
|
+
ie,
|
|
223
|
+
se,
|
|
224
|
+
oe,
|
|
225
|
+
Ie,
|
|
226
|
+
y,
|
|
227
|
+
qe,
|
|
228
|
+
He,
|
|
229
|
+
Ve,
|
|
230
|
+
be
|
|
231
|
+
]), rt = tt != null && Et !== !1, nt = !!R && (R == null ? void 0 : R.showPagination) !== !1, Xt = rt || nt, it = !O && l.length === 0 && Je != null, k = !!(Pt && E), Le = !!(E != null && E.showFooterRow), F = _t ?? (k || Le || Ne), Bt = it && !(Le && E), V = c.length + (P ? 1 : 0) + (k ? 1 : 0), qt = !!(Tt && ve), g = te ? "border-r border-secondary last:border-r-0" : void 0, D = w(() => {
|
|
232
|
+
if (!b) return null;
|
|
233
|
+
const e = c.reduce(
|
|
234
|
+
(a, i) => Z(i) ? a + Ge($e(i)) : a,
|
|
228
235
|
0
|
|
229
236
|
);
|
|
230
|
-
return { minTableWidth:
|
|
231
|
-
(
|
|
237
|
+
return { minTableWidth: c.filter(
|
|
238
|
+
(a) => !Z(a)
|
|
232
239
|
).reduce(
|
|
233
|
-
(
|
|
240
|
+
(a, i) => a + Ge(i.minWidth),
|
|
234
241
|
0
|
|
235
242
|
) + e };
|
|
236
|
-
}, [
|
|
243
|
+
}, [c, b]), Ht = w(() => {
|
|
237
244
|
const e = /* @__PURE__ */ new Map();
|
|
238
|
-
return
|
|
245
|
+
return ae && c.forEach((t) => {
|
|
239
246
|
e.set(
|
|
240
|
-
|
|
241
|
-
(
|
|
247
|
+
t.key,
|
|
248
|
+
(r) => ae(t.key, r)
|
|
242
249
|
);
|
|
243
250
|
}), e;
|
|
244
|
-
}, [
|
|
245
|
-
(e,
|
|
246
|
-
var
|
|
247
|
-
let
|
|
248
|
-
if (
|
|
249
|
-
const
|
|
250
|
-
|
|
251
|
+
}, [c, ae]), I = yt(null), [A, st] = U(null), Ee = T(
|
|
252
|
+
(e, t, r) => {
|
|
253
|
+
var i;
|
|
254
|
+
let a = r ?? null;
|
|
255
|
+
if (a == null) {
|
|
256
|
+
const d = (i = yr(
|
|
257
|
+
I.current,
|
|
251
258
|
e,
|
|
252
|
-
|
|
253
|
-
)) == null ? void 0 :
|
|
254
|
-
|
|
259
|
+
t
|
|
260
|
+
)) == null ? void 0 : i.getAttribute("data-grid-source-index"), m = d != null && d !== "" ? Number(d) : NaN;
|
|
261
|
+
a = Number.isNaN(m) ? null : m;
|
|
255
262
|
}
|
|
256
|
-
|
|
263
|
+
Se({ rowId: e, columnKey: t, sourceIndex: a });
|
|
257
264
|
},
|
|
258
265
|
[]
|
|
259
|
-
),
|
|
266
|
+
), Jt = T(
|
|
260
267
|
(e) => {
|
|
261
|
-
var
|
|
262
|
-
const
|
|
263
|
-
if (e.key !== "Enter" && e.key !== "Tab" && e.key !== "Escape" && !
|
|
268
|
+
var pe, ye, we;
|
|
269
|
+
const t = e.key in gt;
|
|
270
|
+
if (e.key !== "Enter" && e.key !== "Tab" && e.key !== "Escape" && !t || wr(e.target)) return;
|
|
264
271
|
if (e.key === "Escape") {
|
|
265
|
-
if (!
|
|
266
|
-
e.preventDefault(), e.stopPropagation(),
|
|
272
|
+
if (!C) return;
|
|
273
|
+
e.preventDefault(), e.stopPropagation(), Se(null), (pe = I.current) != null && pe.contains(document.activeElement) && document.activeElement.blur();
|
|
267
274
|
return;
|
|
268
275
|
}
|
|
269
|
-
const
|
|
270
|
-
|
|
276
|
+
const r = (we = (ye = e.target).closest) == null ? void 0 : we.call(
|
|
277
|
+
ye,
|
|
271
278
|
"[data-grid-cell]"
|
|
272
|
-
),
|
|
279
|
+
), a = r == null ? void 0 : r.getAttribute("data-grid-row-id"), i = r == null ? void 0 : r.getAttribute("data-grid-col-key"), d = r == null ? void 0 : r.getAttribute(
|
|
273
280
|
"data-grid-source-index"
|
|
274
|
-
),
|
|
275
|
-
rowId:
|
|
276
|
-
columnKey:
|
|
277
|
-
sourceIndex:
|
|
281
|
+
), m = d != null && d !== "" ? Number(d) : NaN, W = Number.isNaN(m) ? null : m, p = C ?? (a && i ? {
|
|
282
|
+
rowId: a,
|
|
283
|
+
columnKey: i,
|
|
284
|
+
sourceIndex: W
|
|
278
285
|
} : null);
|
|
279
|
-
if (!
|
|
286
|
+
if (!p) return;
|
|
280
287
|
if (e.key === "Enter") {
|
|
281
|
-
if (!
|
|
282
|
-
e.preventDefault(), e.stopPropagation(),
|
|
283
|
-
rowId:
|
|
284
|
-
columnKey:
|
|
285
|
-
sourceIndex:
|
|
288
|
+
if (!Re) return;
|
|
289
|
+
e.preventDefault(), e.stopPropagation(), Re({
|
|
290
|
+
rowId: p.rowId,
|
|
291
|
+
columnKey: p.columnKey,
|
|
292
|
+
sourceIndex: p.sourceIndex
|
|
286
293
|
});
|
|
287
294
|
return;
|
|
288
295
|
}
|
|
289
|
-
const
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
) :
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
296
|
+
const s = t ? xr(
|
|
297
|
+
I.current,
|
|
298
|
+
S,
|
|
299
|
+
ue,
|
|
300
|
+
p.rowId,
|
|
301
|
+
p.columnKey,
|
|
302
|
+
gt[e.key]
|
|
303
|
+
) : gr(
|
|
304
|
+
I.current,
|
|
305
|
+
S,
|
|
306
|
+
ue,
|
|
307
|
+
p.rowId,
|
|
308
|
+
p.columnKey,
|
|
302
309
|
!e.shiftKey
|
|
303
310
|
);
|
|
304
|
-
if (!
|
|
305
|
-
|
|
311
|
+
if (!s) {
|
|
312
|
+
t && (e.preventDefault(), e.stopPropagation());
|
|
306
313
|
return;
|
|
307
314
|
}
|
|
308
|
-
e.preventDefault(), e.stopPropagation(),
|
|
309
|
-
() =>
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
315
|
+
e.preventDefault(), e.stopPropagation(), Ee(s.rowId, s.columnKey, s.sourceIndex), requestAnimationFrame(
|
|
316
|
+
() => br(
|
|
317
|
+
I.current,
|
|
318
|
+
s.rowId,
|
|
319
|
+
s.columnKey
|
|
313
320
|
)
|
|
314
321
|
);
|
|
315
322
|
},
|
|
316
|
-
[
|
|
323
|
+
[C, S, ue, Re, Ee]
|
|
317
324
|
);
|
|
318
|
-
|
|
319
|
-
if (!
|
|
320
|
-
const e = (
|
|
321
|
-
const
|
|
322
|
-
|
|
325
|
+
Fe(() => {
|
|
326
|
+
if (!F || !C) return;
|
|
327
|
+
const e = (t) => {
|
|
328
|
+
const r = I.current;
|
|
329
|
+
r && !r.contains(t.target) && Se(null);
|
|
323
330
|
};
|
|
324
331
|
return document.addEventListener("pointerdown", e, !0), () => document.removeEventListener("pointerdown", e, !0);
|
|
325
|
-
}, [
|
|
326
|
-
const
|
|
332
|
+
}, [F, C]);
|
|
333
|
+
const ot = w(() => {
|
|
327
334
|
let e = 0;
|
|
328
|
-
return
|
|
329
|
-
|
|
335
|
+
return P && (e += 40), k && (e += 56), c.forEach((t) => {
|
|
336
|
+
Z(t) && (e += Ge($e(t)));
|
|
330
337
|
}), e;
|
|
331
|
-
}, [
|
|
332
|
-
() =>
|
|
333
|
-
[
|
|
334
|
-
),
|
|
335
|
-
if (!
|
|
336
|
-
const { minTableWidth: e } =
|
|
337
|
-
return
|
|
338
|
-
}, [
|
|
338
|
+
}, [c, k, P]), Pe = w(
|
|
339
|
+
() => c.filter((e) => !Z(e)).length,
|
|
340
|
+
[c]
|
|
341
|
+
), _e = w(() => {
|
|
342
|
+
if (!b || !D) return null;
|
|
343
|
+
const { minTableWidth: e } = D;
|
|
344
|
+
return A ? Math.max(A, e) : e;
|
|
345
|
+
}, [A, b, D]), Te = !!(b && D && A && A < D.minTableWidth), Oe = w(() => !_e || Pe === 0 ? null : Math.max(
|
|
339
346
|
0,
|
|
340
|
-
(
|
|
341
|
-
), [
|
|
342
|
-
|
|
343
|
-
if (!
|
|
344
|
-
|
|
347
|
+
(_e - ot) / Pe
|
|
348
|
+
), [_e, ot, Pe]);
|
|
349
|
+
dr(() => {
|
|
350
|
+
if (!b) {
|
|
351
|
+
st(null);
|
|
345
352
|
return;
|
|
346
353
|
}
|
|
347
|
-
const e =
|
|
354
|
+
const e = I.current;
|
|
348
355
|
if (!e) return;
|
|
349
|
-
const
|
|
350
|
-
const
|
|
351
|
-
|
|
356
|
+
const t = () => {
|
|
357
|
+
const a = e.clientWidth;
|
|
358
|
+
a > 0 && st((i) => i === a ? i : a);
|
|
352
359
|
};
|
|
353
|
-
|
|
354
|
-
const
|
|
355
|
-
return
|
|
356
|
-
|
|
360
|
+
t();
|
|
361
|
+
const r = new ResizeObserver(t);
|
|
362
|
+
return r.observe(e), () => {
|
|
363
|
+
r.disconnect();
|
|
357
364
|
};
|
|
358
365
|
}, [
|
|
366
|
+
c.length,
|
|
359
367
|
l.length,
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
W
|
|
368
|
+
b,
|
|
369
|
+
O,
|
|
370
|
+
k,
|
|
371
|
+
P
|
|
365
372
|
]);
|
|
366
|
-
const
|
|
367
|
-
(e) =>
|
|
368
|
-
width: `${
|
|
373
|
+
const De = T(
|
|
374
|
+
(e) => b ? Z(e) ? vt(e) : Oe != null ? {
|
|
375
|
+
width: `${Oe}px`,
|
|
369
376
|
minWidth: e.minWidth,
|
|
370
|
-
maxWidth: e.maxWidth ??
|
|
371
|
-
} :
|
|
372
|
-
[
|
|
373
|
-
),
|
|
374
|
-
if (!(!
|
|
375
|
-
return
|
|
376
|
-
width: `${
|
|
377
|
+
maxWidth: e.maxWidth ?? Me
|
|
378
|
+
} : vt(e) : Xr(e),
|
|
379
|
+
[b, Oe]
|
|
380
|
+
), Vt = w(() => {
|
|
381
|
+
if (!(!b || !D))
|
|
382
|
+
return Te ? {
|
|
383
|
+
width: `${D.minTableWidth}px`,
|
|
377
384
|
tableLayout: "fixed"
|
|
378
385
|
} : {
|
|
379
386
|
width: "100%",
|
|
380
387
|
tableLayout: "fixed"
|
|
381
388
|
};
|
|
382
|
-
}, [
|
|
389
|
+
}, [b, D, Te]), At = T(
|
|
383
390
|
(e) => {
|
|
384
|
-
|
|
391
|
+
I.current = e, typeof H == "function" ? H(e) : H && (H.current = e);
|
|
385
392
|
},
|
|
386
|
-
[
|
|
387
|
-
),
|
|
388
|
-
selectionMode:
|
|
389
|
-
selectedKeys:
|
|
390
|
-
onSelectionChange:
|
|
391
|
-
} : {},
|
|
393
|
+
[H]
|
|
394
|
+
), Qt = de && ee ? {
|
|
395
|
+
selectionMode: X,
|
|
396
|
+
selectedKeys: L === "all" ? "all" : L,
|
|
397
|
+
onSelectionChange: jr(v)
|
|
398
|
+
} : {}, Zt = (e, t = 0) => {
|
|
392
399
|
const r = e.__sourceIndex;
|
|
393
|
-
return typeof r == "number" ? r :
|
|
394
|
-
},
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
400
|
+
return typeof r == "number" ? r : t;
|
|
401
|
+
}, he = T(
|
|
402
|
+
(e) => {
|
|
403
|
+
const t = z.current;
|
|
404
|
+
if (!t) return;
|
|
405
|
+
const { fromSourceIndex: r, toSourceIndex: a, item: i, active: d } = t;
|
|
406
|
+
Y(null), e && d && r !== a && (x != null && x.onReorderRows) && x.onReorderRows(r, a, i);
|
|
407
|
+
},
|
|
408
|
+
[x, Y]
|
|
409
|
+
), at = T(
|
|
410
|
+
(e, t) => {
|
|
411
|
+
const r = z.current;
|
|
412
|
+
if (!r) return;
|
|
413
|
+
const a = e - r.startX, i = t - r.startY, d = Math.hypot(a, i), m = r.active || d >= vr;
|
|
414
|
+
let W = {
|
|
415
|
+
...r,
|
|
416
|
+
currentX: e,
|
|
417
|
+
currentY: t,
|
|
418
|
+
active: m
|
|
419
|
+
};
|
|
420
|
+
if (m) {
|
|
421
|
+
r.active || Ze(null);
|
|
422
|
+
const p = I.current;
|
|
423
|
+
if (p) {
|
|
424
|
+
const s = Rr(
|
|
425
|
+
p,
|
|
426
|
+
t,
|
|
427
|
+
r.fromSourceIndex,
|
|
428
|
+
r.rowId
|
|
429
|
+
);
|
|
430
|
+
s && (W = {
|
|
431
|
+
...W,
|
|
432
|
+
toSourceIndex: s.toSourceIndex,
|
|
433
|
+
dropLineY: s.dropLineY,
|
|
434
|
+
dropLineLeft: s.dropLineLeft,
|
|
435
|
+
dropLineWidth: s.dropLineWidth
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
Y(W);
|
|
440
|
+
},
|
|
441
|
+
[Y]
|
|
442
|
+
), Kt = T(
|
|
443
|
+
(e, t, r, a) => {
|
|
444
|
+
var p, s;
|
|
445
|
+
if (!Ce || e.button !== 0) return;
|
|
446
|
+
const i = (p = I.current) == null ? void 0 : p.querySelector(
|
|
447
|
+
`tr[${wt}="${CSS.escape(t)}"]`
|
|
448
|
+
);
|
|
449
|
+
if (!i) return;
|
|
450
|
+
e.preventDefault();
|
|
451
|
+
try {
|
|
452
|
+
e.currentTarget.setPointerCapture(e.pointerId);
|
|
453
|
+
} catch {
|
|
454
|
+
}
|
|
455
|
+
const d = Sr(i), m = Nr(i), W = ((s = i.closest("table")) == null ? void 0 : s.getBoundingClientRect()) ?? i.getBoundingClientRect();
|
|
456
|
+
Y({
|
|
457
|
+
rowId: t,
|
|
458
|
+
fromSourceIndex: r,
|
|
459
|
+
item: a,
|
|
460
|
+
pointerId: e.pointerId,
|
|
461
|
+
startX: e.clientX,
|
|
462
|
+
startY: e.clientY,
|
|
463
|
+
currentX: e.clientX,
|
|
464
|
+
currentY: e.clientY,
|
|
465
|
+
active: !1,
|
|
466
|
+
preview: d,
|
|
467
|
+
toSourceIndex: r,
|
|
468
|
+
dropLineY: null,
|
|
469
|
+
dropLineLeft: W.left,
|
|
470
|
+
dropLineWidth: W.width,
|
|
471
|
+
rowClone: m
|
|
472
|
+
});
|
|
473
|
+
},
|
|
474
|
+
[Ce, Y]
|
|
475
|
+
), lt = h != null;
|
|
476
|
+
Fe(() => {
|
|
477
|
+
if (!lt) return;
|
|
478
|
+
const e = (i) => {
|
|
479
|
+
var d;
|
|
480
|
+
i.pointerId === ((d = z.current) == null ? void 0 : d.pointerId) && at(i.clientX, i.clientY);
|
|
481
|
+
}, t = (i) => {
|
|
482
|
+
var d;
|
|
483
|
+
i.pointerId === ((d = z.current) == null ? void 0 : d.pointerId) && he(!0);
|
|
484
|
+
}, r = (i) => {
|
|
485
|
+
var d;
|
|
486
|
+
i.pointerId === ((d = z.current) == null ? void 0 : d.pointerId) && he(!1);
|
|
487
|
+
}, a = (i) => {
|
|
488
|
+
i.key === "Escape" && (i.preventDefault(), he(!1));
|
|
489
|
+
};
|
|
490
|
+
return window.addEventListener("pointermove", e), window.addEventListener("pointerup", t), window.addEventListener("pointercancel", r), window.addEventListener("keydown", a), () => {
|
|
491
|
+
window.removeEventListener("pointermove", e), window.removeEventListener("pointerup", t), window.removeEventListener("pointercancel", r), window.removeEventListener("keydown", a);
|
|
492
|
+
};
|
|
493
|
+
}, [lt, he, at]), Fe(() => {
|
|
494
|
+
if (!(h != null && h.active)) return;
|
|
495
|
+
const e = document.body.style.userSelect, t = document.body.style.cursor;
|
|
496
|
+
return document.body.style.userSelect = "none", document.body.style.cursor = "grabbing", () => {
|
|
497
|
+
document.body.style.userSelect = e, document.body.style.cursor = t;
|
|
498
|
+
};
|
|
499
|
+
}, [h == null ? void 0 : h.active]);
|
|
500
|
+
const ze = de && Mr(L, S), er = de && Yr(L, S), tr = () => {
|
|
501
|
+
if (v) {
|
|
502
|
+
if (ze) {
|
|
503
|
+
v(/* @__PURE__ */ new Set());
|
|
398
504
|
return;
|
|
399
505
|
}
|
|
400
|
-
|
|
506
|
+
v("all");
|
|
401
507
|
}
|
|
402
|
-
},
|
|
403
|
-
if (!
|
|
404
|
-
if (
|
|
405
|
-
|
|
508
|
+
}, rr = (e, t) => {
|
|
509
|
+
if (!v) return;
|
|
510
|
+
if (X === "single") {
|
|
511
|
+
v(t ? /* @__PURE__ */ new Set([e]) : /* @__PURE__ */ new Set());
|
|
406
512
|
return;
|
|
407
513
|
}
|
|
408
|
-
const
|
|
409
|
-
|
|
410
|
-
},
|
|
411
|
-
const
|
|
412
|
-
return
|
|
413
|
-
|
|
514
|
+
const r = L === "all" ? new Set(S) : new Set(bt(L, S));
|
|
515
|
+
t ? r.add(e) : r.delete(e), v(r);
|
|
516
|
+
}, nr = (e) => {
|
|
517
|
+
const t = le.has(e.key);
|
|
518
|
+
return Qe ? /* @__PURE__ */ o(
|
|
519
|
+
u.Row,
|
|
414
520
|
{
|
|
415
521
|
id: `group-${e.key}`,
|
|
416
522
|
highlightSelectedRow: !1,
|
|
417
523
|
className: "bg-secondary_subtle hover:bg-secondary_subtle",
|
|
418
|
-
children: /* @__PURE__ */
|
|
524
|
+
children: /* @__PURE__ */ o(u.Cell, { colSpan: V, className: f(g), children: Qe(e) })
|
|
419
525
|
},
|
|
420
526
|
`group-${e.key}`
|
|
421
|
-
) : /* @__PURE__ */
|
|
422
|
-
|
|
527
|
+
) : /* @__PURE__ */ o(
|
|
528
|
+
u.Row,
|
|
423
529
|
{
|
|
424
530
|
id: `group-${e.key}`,
|
|
425
531
|
highlightSelectedRow: !1,
|
|
426
532
|
className: "bg-secondary_subtle hover:bg-secondary_subtle",
|
|
427
|
-
children: /* @__PURE__ */
|
|
428
|
-
|
|
533
|
+
children: /* @__PURE__ */ o(
|
|
534
|
+
u.Cell,
|
|
429
535
|
{
|
|
430
|
-
colSpan:
|
|
431
|
-
className:
|
|
432
|
-
children: /* @__PURE__ */
|
|
536
|
+
colSpan: V,
|
|
537
|
+
className: f("py-1.5", g),
|
|
538
|
+
children: /* @__PURE__ */ N(
|
|
433
539
|
"button",
|
|
434
540
|
{
|
|
435
541
|
type: "button",
|
|
436
542
|
className: "flex w-full items-center gap-2 px-2 text-left text-xs font-medium text-secondary",
|
|
437
|
-
onClick: () =>
|
|
438
|
-
"aria-expanded": !
|
|
543
|
+
onClick: () => Ut(e.key),
|
|
544
|
+
"aria-expanded": !t,
|
|
439
545
|
children: [
|
|
440
|
-
/* @__PURE__ */
|
|
441
|
-
|
|
546
|
+
/* @__PURE__ */ o(
|
|
547
|
+
cr,
|
|
442
548
|
{
|
|
443
|
-
className:
|
|
549
|
+
className: f(
|
|
444
550
|
"size-4 shrink-0 text-fg-quaternary transition-transform",
|
|
445
|
-
!
|
|
551
|
+
!t && "rotate-90"
|
|
446
552
|
)
|
|
447
553
|
}
|
|
448
554
|
),
|
|
449
|
-
/* @__PURE__ */
|
|
450
|
-
/* @__PURE__ */
|
|
555
|
+
/* @__PURE__ */ o("span", { className: "truncate", children: e.label || "(Empty)" }),
|
|
556
|
+
/* @__PURE__ */ N("span", { className: "text-tertiary", children: [
|
|
451
557
|
"(",
|
|
452
558
|
e.rows.length,
|
|
453
559
|
")"
|
|
@@ -460,48 +566,55 @@ const Oe = "300px", Te = (t) => {
|
|
|
460
566
|
},
|
|
461
567
|
`group-${e.key}`
|
|
462
568
|
);
|
|
463
|
-
},
|
|
464
|
-
const
|
|
465
|
-
return /* @__PURE__ */
|
|
466
|
-
|
|
569
|
+
}, dt = (e, t, r = 0) => {
|
|
570
|
+
const a = Xe ? Xe(e) : !1, i = Q(e), d = Zt(e, r), m = Gr(L, i, S), W = $t === i, p = (h == null ? void 0 : h.active) === !0 && h.rowId === i;
|
|
571
|
+
return /* @__PURE__ */ N(
|
|
572
|
+
u.Row,
|
|
467
573
|
{
|
|
468
|
-
onAction: () =>
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
574
|
+
onAction: () => {
|
|
575
|
+
var s;
|
|
576
|
+
(s = z.current) != null && s.active || K == null || K(e);
|
|
577
|
+
},
|
|
578
|
+
onMouseEnter: () => G == null ? void 0 : G(e, !0),
|
|
579
|
+
onMouseLeave: () => G == null ? void 0 : G(e, !1),
|
|
580
|
+
id: i,
|
|
472
581
|
value: e,
|
|
473
|
-
columns:
|
|
474
|
-
expandedColSpan:
|
|
475
|
-
isExpandable:
|
|
476
|
-
highlightSelectedRow:
|
|
477
|
-
renderExpandedContent:
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
582
|
+
columns: c,
|
|
583
|
+
expandedColSpan: V,
|
|
584
|
+
isExpandable: a,
|
|
585
|
+
highlightSelectedRow: ee,
|
|
586
|
+
renderExpandedContent: a ? Wt : void 0,
|
|
587
|
+
[wt]: i,
|
|
588
|
+
[Ir]: String(d),
|
|
589
|
+
className: f(
|
|
590
|
+
K && "cursor-pointer",
|
|
591
|
+
Nt ? "prose" : "",
|
|
592
|
+
Ue && "[&>td]:after:hidden",
|
|
593
|
+
Ne && "group/rowactions",
|
|
594
|
+
W && "bg-utility-brand-25 hover:bg-utility-brand-25",
|
|
595
|
+
P && m && "bg-secondary",
|
|
596
|
+
p && "opacity-40 blur-[1.5px] [&_*]:!pointer-events-none",
|
|
597
|
+
Ae,
|
|
598
|
+
ge == null ? void 0 : ge(e)
|
|
486
599
|
),
|
|
487
600
|
children: [
|
|
488
|
-
|
|
489
|
-
|
|
601
|
+
P && /* @__PURE__ */ o(
|
|
602
|
+
u.Cell,
|
|
490
603
|
{
|
|
491
|
-
className:
|
|
604
|
+
className: f("relative w-10 text-center", g),
|
|
492
605
|
style: { minWidth: "40px", width: "40px" },
|
|
493
|
-
children: /* @__PURE__ */
|
|
606
|
+
children: /* @__PURE__ */ o(
|
|
494
607
|
"div",
|
|
495
608
|
{
|
|
496
609
|
className: "flex items-center justify-center",
|
|
497
|
-
onClick: (
|
|
498
|
-
onKeyDown: (
|
|
499
|
-
children: /* @__PURE__ */
|
|
500
|
-
|
|
610
|
+
onClick: (s) => s.stopPropagation(),
|
|
611
|
+
onKeyDown: (s) => s.stopPropagation(),
|
|
612
|
+
children: /* @__PURE__ */ o(
|
|
613
|
+
xt,
|
|
501
614
|
{
|
|
502
|
-
checked:
|
|
503
|
-
onCheckedChange: (
|
|
504
|
-
"aria-label": `Select row ${
|
|
615
|
+
checked: m,
|
|
616
|
+
onCheckedChange: (s) => rr(i, s === !0),
|
|
617
|
+
"aria-label": `Select row ${i}`,
|
|
505
618
|
className: "items-center justify-center"
|
|
506
619
|
}
|
|
507
620
|
)
|
|
@@ -509,188 +622,203 @@ const Oe = "300px", Te = (t) => {
|
|
|
509
622
|
)
|
|
510
623
|
}
|
|
511
624
|
),
|
|
512
|
-
|
|
513
|
-
const
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
),
|
|
518
|
-
return /* @__PURE__ */
|
|
519
|
-
|
|
625
|
+
c.map((s, pe) => {
|
|
626
|
+
const ye = Ke.get(s.key), we = mt(
|
|
627
|
+
s.key,
|
|
628
|
+
M,
|
|
629
|
+
ye
|
|
630
|
+
), or = (j == null ? void 0 : j.rowId) === i && (j == null ? void 0 : j.columnKey) === s.key, ar = F && !or && (C == null ? void 0 : C.rowId) === i && (C == null ? void 0 : C.columnKey) === s.key;
|
|
631
|
+
return /* @__PURE__ */ o(
|
|
632
|
+
u.Cell,
|
|
520
633
|
{
|
|
521
|
-
sticky:
|
|
522
|
-
stickyOffset:
|
|
523
|
-
style:
|
|
634
|
+
sticky: s.sticky,
|
|
635
|
+
stickyOffset: s.stickyOffset,
|
|
636
|
+
style: De(s),
|
|
524
637
|
"data-grid-cell": "",
|
|
525
|
-
"data-grid-row-id":
|
|
526
|
-
"data-grid-col-key":
|
|
527
|
-
"data-grid-source-index":
|
|
528
|
-
className:
|
|
638
|
+
"data-grid-row-id": i,
|
|
639
|
+
"data-grid-col-key": s.key,
|
|
640
|
+
"data-grid-source-index": d,
|
|
641
|
+
className: f(
|
|
529
642
|
"relative overflow-x-hidden",
|
|
530
643
|
// Excel-style selected-cell highlight: an inset brand border on the
|
|
531
644
|
// selected cell (state-driven). Inset so it sits at the cell edge
|
|
532
645
|
// without shifting layout. `after:opacity-0` hides the row's bottom-
|
|
533
646
|
// border pseudo-element so it doesn't overlap the ring's bottom edge.
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
647
|
+
ar && "z-1 outline-hidden ring-2 ring-inset ring-brand after:opacity-0",
|
|
648
|
+
s.cellClassName,
|
|
649
|
+
pr(we),
|
|
650
|
+
g
|
|
538
651
|
),
|
|
539
652
|
children: (() => {
|
|
540
|
-
const
|
|
541
|
-
|
|
653
|
+
const ht = pe === 0 && (a || Ne) ? /* @__PURE__ */ N("div", { className: "flex items-center", children: [
|
|
654
|
+
x && /* @__PURE__ */ o(
|
|
542
655
|
"div",
|
|
543
656
|
{
|
|
544
657
|
className: "flex items-center justify-center",
|
|
545
|
-
onClick: (
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
658
|
+
onClick: (_) => _.stopPropagation(),
|
|
659
|
+
onContextMenu: (_) => _.stopPropagation(),
|
|
660
|
+
onKeyDown: (_) => _.stopPropagation(),
|
|
661
|
+
children: /* @__PURE__ */ o(
|
|
662
|
+
Tr,
|
|
549
663
|
{
|
|
550
|
-
config:
|
|
551
|
-
sourceRowIndex:
|
|
664
|
+
config: x,
|
|
665
|
+
sourceRowIndex: d,
|
|
552
666
|
item: e,
|
|
553
|
-
|
|
667
|
+
enableDrag: Ce,
|
|
668
|
+
isDragging: p,
|
|
669
|
+
onDragHandlePointerDown: (_) => Kt(
|
|
670
|
+
_,
|
|
671
|
+
i,
|
|
672
|
+
d,
|
|
673
|
+
e
|
|
674
|
+
),
|
|
675
|
+
triggerClassName: f(
|
|
676
|
+
// Hover-reveal: hidden until row hover / focus / menu open / this row is the drag source.
|
|
677
|
+
// Do not force all handles visible while another row is dragging.
|
|
554
678
|
"transition-opacity group-hover/rowactions:opacity-100 focus-visible:opacity-100",
|
|
555
|
-
|
|
679
|
+
W || p ? "opacity-100" : "opacity-0"
|
|
556
680
|
),
|
|
557
|
-
onOpenChange: (
|
|
681
|
+
onOpenChange: (_) => Ze(_ ? i : null)
|
|
558
682
|
}
|
|
559
683
|
)
|
|
560
684
|
}
|
|
561
685
|
),
|
|
562
|
-
/* @__PURE__ */
|
|
563
|
-
] }) :
|
|
564
|
-
return
|
|
686
|
+
/* @__PURE__ */ o("div", { className: "flex-1 min-w-0", children: Ye(s.key, e[s.key], e) })
|
|
687
|
+
] }) : Ye(s.key, e[s.key], e);
|
|
688
|
+
return F ? /* @__PURE__ */ o(
|
|
565
689
|
"div",
|
|
566
690
|
{
|
|
567
691
|
"data-grid-focus": !0,
|
|
568
692
|
tabIndex: -1,
|
|
569
693
|
className: "outline-hidden",
|
|
570
|
-
children:
|
|
694
|
+
children: ht
|
|
571
695
|
}
|
|
572
|
-
) :
|
|
696
|
+
) : ht;
|
|
573
697
|
})()
|
|
574
698
|
},
|
|
575
|
-
|
|
699
|
+
s.key
|
|
576
700
|
);
|
|
577
701
|
}),
|
|
578
|
-
|
|
579
|
-
|
|
702
|
+
k && E && /* @__PURE__ */ o(
|
|
703
|
+
u.Cell,
|
|
580
704
|
{
|
|
581
|
-
className:
|
|
705
|
+
className: f("relative w-14 text-center", g),
|
|
582
706
|
style: { minWidth: "56px", width: "56px" },
|
|
583
|
-
children: /* @__PURE__ */
|
|
707
|
+
children: /* @__PURE__ */ o(
|
|
584
708
|
"button",
|
|
585
709
|
{
|
|
586
710
|
type: "button",
|
|
587
711
|
title: "Delete row",
|
|
588
712
|
"aria-label": "Delete row",
|
|
589
713
|
className: "inline-flex items-center justify-center rounded p-1 text-fg-quaternary hover:bg-secondary_subtle hover:text-fg-secondary",
|
|
590
|
-
onClick: (
|
|
591
|
-
|
|
714
|
+
onClick: (s) => {
|
|
715
|
+
s.stopPropagation(), E.onDeleteRow(d);
|
|
592
716
|
},
|
|
593
|
-
children: /* @__PURE__ */
|
|
717
|
+
children: /* @__PURE__ */ o(Or, { name: "Trash02", className: "size-3" })
|
|
594
718
|
}
|
|
595
719
|
)
|
|
596
720
|
}
|
|
597
721
|
)
|
|
598
722
|
]
|
|
599
723
|
},
|
|
600
|
-
|
|
724
|
+
i
|
|
601
725
|
);
|
|
602
|
-
},
|
|
603
|
-
|
|
726
|
+
}, ir = (e) => /* @__PURE__ */ N(
|
|
727
|
+
u.Row,
|
|
604
728
|
{
|
|
605
729
|
id: String(e.id),
|
|
606
730
|
isExpandable: !1,
|
|
607
|
-
className:
|
|
731
|
+
className: f(Ue && "[&>td]:after:hidden", Ae),
|
|
608
732
|
children: [
|
|
609
|
-
|
|
610
|
-
|
|
733
|
+
P && /* @__PURE__ */ o(
|
|
734
|
+
u.Cell,
|
|
611
735
|
{
|
|
612
|
-
className:
|
|
736
|
+
className: f("relative w-10", g),
|
|
613
737
|
style: { minWidth: "40px", width: "40px" }
|
|
614
738
|
}
|
|
615
739
|
),
|
|
616
|
-
|
|
617
|
-
|
|
740
|
+
c.map((t) => /* @__PURE__ */ o(
|
|
741
|
+
u.Cell,
|
|
618
742
|
{
|
|
619
|
-
sticky:
|
|
620
|
-
stickyOffset:
|
|
621
|
-
style:
|
|
622
|
-
className:
|
|
743
|
+
sticky: t.sticky,
|
|
744
|
+
stickyOffset: t.stickyOffset,
|
|
745
|
+
style: De(t),
|
|
746
|
+
className: f(
|
|
623
747
|
"overflow-x-hidden text-left",
|
|
624
|
-
|
|
625
|
-
|
|
748
|
+
t.cellClassName,
|
|
749
|
+
g
|
|
626
750
|
),
|
|
627
|
-
children: /* @__PURE__ */
|
|
751
|
+
children: /* @__PURE__ */ o(Dr, { height: "14px", width: "75%", className: "rounded" })
|
|
628
752
|
},
|
|
629
|
-
|
|
753
|
+
t.key
|
|
630
754
|
)),
|
|
631
|
-
|
|
632
|
-
|
|
755
|
+
k && /* @__PURE__ */ o(
|
|
756
|
+
u.Cell,
|
|
633
757
|
{
|
|
634
|
-
className:
|
|
758
|
+
className: f("w-14", g),
|
|
635
759
|
style: { minWidth: "56px", width: "56px" }
|
|
636
760
|
}
|
|
637
761
|
)
|
|
638
762
|
]
|
|
639
763
|
},
|
|
640
764
|
String(e.id)
|
|
641
|
-
),
|
|
642
|
-
const
|
|
765
|
+
), sr = () => O ? fe.map((e) => ir(e)) : ce && $ ? $.flatMap((e) => {
|
|
766
|
+
const t = le.has(e.key);
|
|
643
767
|
return [
|
|
644
|
-
|
|
645
|
-
...
|
|
768
|
+
nr(e),
|
|
769
|
+
...t ? [] : e.rows.map(
|
|
770
|
+
(r, a) => dt(r, void 0, a)
|
|
771
|
+
)
|
|
646
772
|
];
|
|
647
|
-
}) :
|
|
648
|
-
|
|
773
|
+
}) : fe.map(
|
|
774
|
+
(e, t) => dt(e, void 0, t)
|
|
775
|
+
), ct = /* @__PURE__ */ o(
|
|
776
|
+
ur.Root,
|
|
649
777
|
{
|
|
650
778
|
ref: At,
|
|
651
|
-
onKeyDownCapture:
|
|
652
|
-
className:
|
|
779
|
+
onKeyDownCapture: F ? Jt : void 0,
|
|
780
|
+
className: f(
|
|
653
781
|
"w-full",
|
|
654
|
-
!
|
|
655
|
-
|
|
782
|
+
!b || Te ? "overflow-x-auto" : "overflow-x-hidden",
|
|
783
|
+
te && "border border-secondary rounded-xl",
|
|
656
784
|
"[&_tr:hover>td]:!bg-secondary_subtle",
|
|
657
|
-
|
|
785
|
+
kt
|
|
658
786
|
),
|
|
659
|
-
size:
|
|
660
|
-
children: /* @__PURE__ */
|
|
661
|
-
|
|
787
|
+
size: je,
|
|
788
|
+
children: /* @__PURE__ */ N(
|
|
789
|
+
u,
|
|
662
790
|
{
|
|
663
|
-
"aria-label":
|
|
664
|
-
size:
|
|
665
|
-
isEditable:
|
|
666
|
-
inlineSelection:
|
|
667
|
-
className:
|
|
668
|
-
style:
|
|
669
|
-
...
|
|
791
|
+
"aria-label": St,
|
|
792
|
+
size: je,
|
|
793
|
+
isEditable: F,
|
|
794
|
+
inlineSelection: ee,
|
|
795
|
+
className: f(b && "min-w-full", Lt),
|
|
796
|
+
style: Vt,
|
|
797
|
+
...Qt,
|
|
670
798
|
children: [
|
|
671
|
-
/* @__PURE__ */
|
|
672
|
-
|
|
799
|
+
/* @__PURE__ */ N(
|
|
800
|
+
u.Header,
|
|
673
801
|
{
|
|
674
|
-
className:
|
|
802
|
+
className: f(
|
|
675
803
|
"sticky top-0",
|
|
676
|
-
|
|
677
|
-
|
|
804
|
+
te && "[&>tr>th:first-child]:rounded-bl-none [&>tr>th:last-child]:rounded-br-none z-1",
|
|
805
|
+
It
|
|
678
806
|
),
|
|
679
807
|
children: [
|
|
680
|
-
|
|
681
|
-
|
|
808
|
+
P && /* @__PURE__ */ o(
|
|
809
|
+
u.Head,
|
|
682
810
|
{
|
|
683
811
|
label: "",
|
|
684
812
|
allowsSorting: !1,
|
|
685
813
|
isRowHeader: !1,
|
|
686
814
|
style: { minWidth: "40px", width: "40px" },
|
|
687
|
-
className:
|
|
815
|
+
className: f(g),
|
|
688
816
|
headerCellClass: "justify-center",
|
|
689
|
-
children:
|
|
690
|
-
|
|
817
|
+
children: X === "multiple" && v && /* @__PURE__ */ o("div", { onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ o(
|
|
818
|
+
xt,
|
|
691
819
|
{
|
|
692
|
-
checked:
|
|
693
|
-
onCheckedChange: () =>
|
|
820
|
+
checked: ze ? !0 : er && !ze ? "indeterminate" : !1,
|
|
821
|
+
onCheckedChange: () => tr(),
|
|
694
822
|
"aria-label": "Select all rows",
|
|
695
823
|
className: "items-center justify-center"
|
|
696
824
|
}
|
|
@@ -698,111 +826,111 @@ const Oe = "300px", Te = (t) => {
|
|
|
698
826
|
},
|
|
699
827
|
"selection"
|
|
700
828
|
),
|
|
701
|
-
|
|
702
|
-
const
|
|
829
|
+
c.map((e, t) => {
|
|
830
|
+
const r = Ot ? jt.get(e.key) : void 0, a = Ke.get(e.key), i = mt(
|
|
703
831
|
e.key,
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
),
|
|
707
|
-
return /* @__PURE__ */
|
|
708
|
-
|
|
832
|
+
M,
|
|
833
|
+
a
|
|
834
|
+
), d = Ct.includes(e.key) || i === "center" ? "justify-center" : i === "right" ? "justify-end" : "";
|
|
835
|
+
return /* @__PURE__ */ o(
|
|
836
|
+
u.Head,
|
|
709
837
|
{
|
|
710
838
|
sticky: e.sticky,
|
|
711
839
|
stickyOffset: e.stickyOffset,
|
|
712
840
|
id: e.key,
|
|
713
841
|
label: e.label,
|
|
714
|
-
isRowHeader:
|
|
842
|
+
isRowHeader: t === 0,
|
|
715
843
|
allowsSorting: e.allowsSorting,
|
|
716
|
-
headerCellClass: `${e.headerCellClass} ${
|
|
717
|
-
style:
|
|
718
|
-
className:
|
|
844
|
+
headerCellClass: `${e.headerCellClass} ${d}`,
|
|
845
|
+
style: De(e),
|
|
846
|
+
className: f(
|
|
719
847
|
"overflow-hidden",
|
|
720
848
|
e.headClassName,
|
|
721
|
-
|
|
849
|
+
g
|
|
722
850
|
),
|
|
723
|
-
headerAction:
|
|
724
|
-
|
|
851
|
+
headerAction: r && ae ? /* @__PURE__ */ o(
|
|
852
|
+
Er,
|
|
725
853
|
{
|
|
726
|
-
column:
|
|
727
|
-
columnLabel:
|
|
728
|
-
currentAlignment:
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
) : (
|
|
732
|
-
capabilities:
|
|
733
|
-
hideDisabled:
|
|
734
|
-
onAction:
|
|
735
|
-
renderExtraItems:
|
|
854
|
+
column: r,
|
|
855
|
+
columnLabel: r.label ?? (a ? hr(a, zt) : e.label),
|
|
856
|
+
currentAlignment: a ? Rt(
|
|
857
|
+
a,
|
|
858
|
+
M ?? /* @__PURE__ */ new Map()
|
|
859
|
+
) : (M == null ? void 0 : M.get(e.key)) ?? "left",
|
|
860
|
+
capabilities: Dt,
|
|
861
|
+
hideDisabled: c.length <= 1,
|
|
862
|
+
onAction: Ht.get(e.key),
|
|
863
|
+
renderExtraItems: Ft,
|
|
736
864
|
showOnHeaderHover: !0
|
|
737
865
|
}
|
|
738
866
|
) : void 0,
|
|
739
|
-
children: (
|
|
867
|
+
children: (xe == null ? void 0 : xe(e.key)) ?? null
|
|
740
868
|
},
|
|
741
869
|
e.key
|
|
742
870
|
);
|
|
743
871
|
}),
|
|
744
|
-
|
|
745
|
-
|
|
872
|
+
k && /* @__PURE__ */ o(
|
|
873
|
+
u.Head,
|
|
746
874
|
{
|
|
747
875
|
label: "",
|
|
748
876
|
allowsSorting: !1,
|
|
749
877
|
isRowHeader: !1,
|
|
750
878
|
style: { minWidth: "56px", width: "56px" },
|
|
751
|
-
className:
|
|
879
|
+
className: f(g)
|
|
752
880
|
},
|
|
753
881
|
"actions"
|
|
754
882
|
)
|
|
755
883
|
]
|
|
756
884
|
}
|
|
757
885
|
),
|
|
758
|
-
/* @__PURE__ */
|
|
759
|
-
!
|
|
760
|
-
|
|
761
|
-
|
|
886
|
+
/* @__PURE__ */ N(u.Body, { children: [
|
|
887
|
+
!it && sr(),
|
|
888
|
+
Bt && /* @__PURE__ */ o(
|
|
889
|
+
u.Row,
|
|
762
890
|
{
|
|
763
891
|
id: "empty-state",
|
|
764
892
|
highlightSelectedRow: !1,
|
|
765
|
-
children: /* @__PURE__ */
|
|
766
|
-
|
|
893
|
+
children: /* @__PURE__ */ o(
|
|
894
|
+
u.Cell,
|
|
767
895
|
{
|
|
768
|
-
colSpan:
|
|
769
|
-
className:
|
|
896
|
+
colSpan: V,
|
|
897
|
+
className: f(
|
|
770
898
|
"text-left text-placeholder_subtle border-b border-secondary py-3",
|
|
771
|
-
|
|
899
|
+
g
|
|
772
900
|
),
|
|
773
|
-
children:
|
|
901
|
+
children: Je
|
|
774
902
|
}
|
|
775
903
|
)
|
|
776
904
|
},
|
|
777
905
|
"empty-state"
|
|
778
906
|
),
|
|
779
|
-
|
|
780
|
-
|
|
907
|
+
Le && E && /* @__PURE__ */ N(
|
|
908
|
+
u.Row,
|
|
781
909
|
{
|
|
782
910
|
id: "add-row-footer",
|
|
783
911
|
highlightSelectedRow: !1,
|
|
784
912
|
children: [
|
|
785
|
-
/* @__PURE__ */
|
|
786
|
-
|
|
913
|
+
/* @__PURE__ */ o(
|
|
914
|
+
u.Cell,
|
|
787
915
|
{
|
|
788
|
-
colSpan:
|
|
789
|
-
className:
|
|
790
|
-
children: /* @__PURE__ */
|
|
791
|
-
|
|
916
|
+
colSpan: V - (k ? 1 : 0),
|
|
917
|
+
className: f(g),
|
|
918
|
+
children: /* @__PURE__ */ o(
|
|
919
|
+
Pr,
|
|
792
920
|
{
|
|
793
921
|
color: "tertiary",
|
|
794
922
|
className: "bg-secondary text-primary",
|
|
795
923
|
size: "xs",
|
|
796
|
-
onClick:
|
|
924
|
+
onClick: E.onAddRow,
|
|
797
925
|
children: "+ Add Row"
|
|
798
926
|
}
|
|
799
927
|
)
|
|
800
928
|
}
|
|
801
929
|
),
|
|
802
|
-
|
|
803
|
-
|
|
930
|
+
k && /* @__PURE__ */ o(
|
|
931
|
+
u.Cell,
|
|
804
932
|
{
|
|
805
|
-
className:
|
|
933
|
+
className: f("w-14", g),
|
|
806
934
|
style: { minWidth: "56px", width: "56px" }
|
|
807
935
|
}
|
|
808
936
|
)
|
|
@@ -810,13 +938,13 @@ const Oe = "300px", Te = (t) => {
|
|
|
810
938
|
},
|
|
811
939
|
"add-row-footer"
|
|
812
940
|
),
|
|
813
|
-
|
|
814
|
-
|
|
941
|
+
qt && ve && /* @__PURE__ */ o(
|
|
942
|
+
_r,
|
|
815
943
|
{
|
|
816
|
-
...
|
|
817
|
-
hasActionsColumn:
|
|
818
|
-
hasSelectionColumn:
|
|
819
|
-
showBorders: !!
|
|
944
|
+
...ve,
|
|
945
|
+
hasActionsColumn: k,
|
|
946
|
+
hasSelectionColumn: P,
|
|
947
|
+
showBorders: !!te
|
|
820
948
|
}
|
|
821
949
|
)
|
|
822
950
|
] })
|
|
@@ -824,35 +952,49 @@ const Oe = "300px", Te = (t) => {
|
|
|
824
952
|
}
|
|
825
953
|
)
|
|
826
954
|
}
|
|
827
|
-
),
|
|
828
|
-
|
|
955
|
+
), ut = F ? /* @__PURE__ */ o(
|
|
956
|
+
mr,
|
|
829
957
|
{
|
|
830
|
-
rowIds:
|
|
831
|
-
columnKeys:
|
|
832
|
-
containerRef:
|
|
833
|
-
onSelectCell:
|
|
834
|
-
onEditingCellChange:
|
|
835
|
-
children:
|
|
958
|
+
rowIds: S,
|
|
959
|
+
columnKeys: ue,
|
|
960
|
+
containerRef: I,
|
|
961
|
+
onSelectCell: Ee,
|
|
962
|
+
onEditingCellChange: Yt,
|
|
963
|
+
children: ct
|
|
836
964
|
}
|
|
837
|
-
) :
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
Ye && x && /* @__PURE__ */ i(
|
|
842
|
-
Qt,
|
|
965
|
+
) : ct, ft = h != null && h.active ? /* @__PURE__ */ N(pt, { children: [
|
|
966
|
+
/* @__PURE__ */ o(Cr, { session: h }),
|
|
967
|
+
h.dropLineY != null && /* @__PURE__ */ o(
|
|
968
|
+
kr,
|
|
843
969
|
{
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
totalItems: x.totalItems,
|
|
848
|
-
onPageChange: x.onPageChange,
|
|
849
|
-
onPageSizeChange: x.onPageSizeChange,
|
|
850
|
-
showPagination: x.showPagination
|
|
970
|
+
y: h.dropLineY,
|
|
971
|
+
left: h.dropLineLeft,
|
|
972
|
+
width: h.dropLineWidth
|
|
851
973
|
}
|
|
852
974
|
)
|
|
853
|
-
] }) :
|
|
975
|
+
] }) : null;
|
|
976
|
+
return Xt ? /* @__PURE__ */ N("div", { className: "flex flex-col gap-3", children: [
|
|
977
|
+
rt && tt,
|
|
978
|
+
ut,
|
|
979
|
+
nt && R && /* @__PURE__ */ o(
|
|
980
|
+
fr,
|
|
981
|
+
{
|
|
982
|
+
currentPage: R.currentPage,
|
|
983
|
+
pageSize: R.pageSize,
|
|
984
|
+
totalPages: R.totalPages,
|
|
985
|
+
totalItems: R.totalItems,
|
|
986
|
+
onPageChange: R.onPageChange,
|
|
987
|
+
onPageSizeChange: R.onPageSizeChange,
|
|
988
|
+
showPagination: R.showPagination
|
|
989
|
+
}
|
|
990
|
+
),
|
|
991
|
+
ft
|
|
992
|
+
] }) : /* @__PURE__ */ N(pt, { children: [
|
|
993
|
+
ut,
|
|
994
|
+
ft
|
|
995
|
+
] });
|
|
854
996
|
}
|
|
855
997
|
);
|
|
856
998
|
export {
|
|
857
|
-
|
|
999
|
+
un as TableWrapper
|
|
858
1000
|
};
|