@pibit.ai/cure-design-system 0.3.24 → 0.3.26
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableWrapper.d.ts","sourceRoot":"","sources":["../../../src/patterns/table/TableWrapper.tsx"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAKV,iBAAiB,EAGlB,MAAM,SAAS,CAAC;AAUjB,YAAY,EACV,iBAAiB,EACjB,YAAY,EACZ,sBAAsB,EACtB,4BAA4B,EAC5B,iBAAiB,EACjB,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,GAC1B,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"TableWrapper.d.ts","sourceRoot":"","sources":["../../../src/patterns/table/TableWrapper.tsx"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAKV,iBAAiB,EAGlB,MAAM,SAAS,CAAC;AAUjB,YAAY,EACV,iBAAiB,EACjB,YAAY,EACZ,sBAAsB,EACtB,4BAA4B,EAC5B,iBAAiB,EACjB,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,GAC1B,MAAM,SAAS,CAAC;AA8HjB,eAAO,MAAM,YAAY,8GAylCxB,CAAC"}
|
|
@@ -1,110 +1,114 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { ChevronRight as
|
|
1
|
+
import { jsx as s, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as Jt, useState as B, useMemo as u, useCallback as J, useRef as Vt, useEffect as Xt, useLayoutEffect as Yt } from "react";
|
|
3
|
+
import { ChevronRight as Ht } from "@untitledui/icons";
|
|
4
4
|
import { cx as c } from "../../utils/cn.js";
|
|
5
|
-
import { TableCard as
|
|
6
|
-
import { TablePagination as
|
|
7
|
-
import { getEffectiveAlignment as
|
|
8
|
-
import { findGridCell as
|
|
9
|
-
import { BulkActionBar as
|
|
10
|
-
import { TableToolbar as
|
|
11
|
-
import { Checkbox as
|
|
12
|
-
import { ColumnHeaderMenu as
|
|
13
|
-
import { Button as
|
|
14
|
-
import { SummaryFooterRow as
|
|
15
|
-
import { RowActionsMenu as
|
|
16
|
-
import { Icon as
|
|
17
|
-
import { ShimmerLine as
|
|
18
|
-
const
|
|
5
|
+
import { TableCard as Qt, Table as d } from "./table.js";
|
|
6
|
+
import { TablePagination as Zt } from "./TablePagination.js";
|
|
7
|
+
import { getEffectiveAlignment as dt, resolveColumnLabel as Kt, alignmentClass as er } from "./toolbar/tableToolbarHelpers.js";
|
|
8
|
+
import { findGridCell as tr, isWithinCellEditor as rr, getGridNeighbor as nr, getGridTabNeighbor as ir, focusGridCell as sr, GridNavProvider as ar } from "./useGridKeyboardNavigation.js";
|
|
9
|
+
import { BulkActionBar as lr } from "./toolbar/BulkActionBar.js";
|
|
10
|
+
import { TableToolbar as or } from "./toolbar/TableToolbar.js";
|
|
11
|
+
import { Checkbox as it } from "../../primitives/checkbox/checkbox.js";
|
|
12
|
+
import { ColumnHeaderMenu as dr } from "./toolbar/ColumnHeaderMenu.js";
|
|
13
|
+
import { Button as cr } from "../../primitives/button/button.js";
|
|
14
|
+
import { SummaryFooterRow as fr } from "./toolbar/SummaryFooter.js";
|
|
15
|
+
import { RowActionsMenu as hr } from "./toolbar/RowActionsMenu.js";
|
|
16
|
+
import { Icon as ur } from "../../primitives/icon/icon.js";
|
|
17
|
+
import { ShimmerLine as yr } from "../../primitives/shimmer/shimmer.js";
|
|
18
|
+
const wr = 5, pr = "__all__", st = {
|
|
19
19
|
ArrowUp: "up",
|
|
20
20
|
ArrowDown: "down",
|
|
21
21
|
ArrowLeft: "left",
|
|
22
22
|
ArrowRight: "right"
|
|
23
|
-
},
|
|
24
|
-
function
|
|
25
|
-
return t === "all" ? new Set(
|
|
23
|
+
}, V = (t) => t.__rowId ?? t.id ?? t.rule_id ?? String(t);
|
|
24
|
+
function at(t, i) {
|
|
25
|
+
return t === "all" ? new Set(i) : t ?? /* @__PURE__ */ new Set();
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return t ? t === "all" ? l.includes(
|
|
27
|
+
function xr(t, i, l) {
|
|
28
|
+
return t ? t === "all" ? l.includes(i) : t.has(i) : !1;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
return t ? t === "all" ?
|
|
30
|
+
function gr(t, i) {
|
|
31
|
+
return t ? t === "all" ? i.length : t.size : 0;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
return
|
|
33
|
+
function br(t, i) {
|
|
34
|
+
return i.length === 0 ? !1 : t === "all" ? !0 : i.every((l) => (t == null ? void 0 : t.has(l)) ?? !1);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
return t === "all" ?
|
|
36
|
+
function mr(t, i) {
|
|
37
|
+
return t === "all" ? i.length > 0 : i.some((l) => (t == null ? void 0 : t.has(l)) ?? !1);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Nr(t) {
|
|
40
40
|
if (t)
|
|
41
|
-
return (
|
|
42
|
-
t(
|
|
41
|
+
return (i) => {
|
|
42
|
+
t(i === "all" ? "all" : new Set([...i].map(String)));
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
var
|
|
47
|
-
return t != null && t.length ? t.length > 1 ? !0 : ((
|
|
45
|
+
function kr(t) {
|
|
46
|
+
var i;
|
|
47
|
+
return t != null && t.length ? t.length > 1 ? !0 : ((i = t[0]) == null ? void 0 : i.key) !== pr : !1;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
return l ?
|
|
49
|
+
function lt(t, i, l) {
|
|
50
|
+
return l ? dt(l, i ?? /* @__PURE__ */ new Map()) : (i == null ? void 0 : i.get(t)) ?? "left";
|
|
51
51
|
}
|
|
52
|
-
const
|
|
52
|
+
const Le = "300px", Te = (t) => {
|
|
53
53
|
if (!t) return 0;
|
|
54
|
-
const
|
|
55
|
-
return
|
|
56
|
-
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
54
|
+
const i = t.match(/^(\d+(?:\.\d+)?)px$/);
|
|
55
|
+
return i ? Number(i[1]) : 0;
|
|
56
|
+
}, X = (t) => !!t.width || !!(t.maxWidth && t.sticky === "right"), Oe = (t) => t.width ?? (t.maxWidth && t.sticky === "right" ? t.maxWidth : void 0), Cr = (t) => ({
|
|
57
|
+
width: t.width,
|
|
58
|
+
maxWidth: t.maxWidth ?? Le,
|
|
59
|
+
minWidth: t.minWidth ?? t.width
|
|
60
|
+
}), ot = (t) => {
|
|
61
|
+
const i = Oe(t);
|
|
62
|
+
return i ? {
|
|
63
|
+
minWidth: i,
|
|
64
|
+
width: i,
|
|
65
|
+
maxWidth: t.maxWidth ?? i
|
|
66
|
+
} : {
|
|
67
|
+
minWidth: t.minWidth,
|
|
68
|
+
maxWidth: t.maxWidth ?? Le
|
|
69
|
+
};
|
|
70
|
+
}, Dr = Jt(
|
|
67
71
|
function({
|
|
68
|
-
data:
|
|
72
|
+
data: i,
|
|
69
73
|
columns: l,
|
|
70
|
-
renderRowCell:
|
|
74
|
+
renderRowCell: ze,
|
|
71
75
|
onRowClick: Y,
|
|
72
76
|
onRowHover: O,
|
|
73
|
-
arialabel:
|
|
74
|
-
size:
|
|
75
|
-
allowDefaultRowClass:
|
|
76
|
-
centeredHeaders:
|
|
77
|
-
rootClassName:
|
|
78
|
-
removeBorders:
|
|
79
|
-
headerClassName:
|
|
80
|
-
isRowExpandable:
|
|
81
|
-
renderExpandedContent:
|
|
77
|
+
arialabel: ct,
|
|
78
|
+
size: Ae = "sm",
|
|
79
|
+
allowDefaultRowClass: ft = !1,
|
|
80
|
+
centeredHeaders: ht = [],
|
|
81
|
+
rootClassName: ut,
|
|
82
|
+
removeBorders: Ge,
|
|
83
|
+
headerClassName: yt,
|
|
84
|
+
isRowExpandable: $e,
|
|
85
|
+
renderExpandedContent: wt,
|
|
82
86
|
loading: P = !1,
|
|
83
|
-
loadingRowCount:
|
|
87
|
+
loadingRowCount: je = wr,
|
|
84
88
|
renderHeaderCell: ce,
|
|
85
89
|
tableClassName: pt,
|
|
86
90
|
getRowClassName: fe,
|
|
87
|
-
selectionMode:
|
|
91
|
+
selectionMode: G = "none",
|
|
88
92
|
selectedKeys: k,
|
|
89
|
-
onSelectionChange:
|
|
93
|
+
onSelectionChange: p,
|
|
90
94
|
inlineSelection: he = !1,
|
|
91
95
|
toolbar: h,
|
|
92
|
-
showToolbar:
|
|
93
|
-
toolbarTitle:
|
|
94
|
-
toolbarTrailing:
|
|
96
|
+
showToolbar: xt,
|
|
97
|
+
toolbarTitle: Fe,
|
|
98
|
+
toolbarTrailing: Me,
|
|
95
99
|
disableExtendedTools: ue,
|
|
96
100
|
pagination: x,
|
|
97
101
|
showBorders: H,
|
|
98
|
-
emptyState:
|
|
102
|
+
emptyState: De,
|
|
99
103
|
editChrome: v,
|
|
100
|
-
showEditActions:
|
|
101
|
-
searchCollapsible:
|
|
102
|
-
isEditable:
|
|
104
|
+
showEditActions: gt = !1,
|
|
105
|
+
searchCollapsible: Ue,
|
|
106
|
+
isEditable: bt,
|
|
103
107
|
toolbarSlot: ye,
|
|
104
|
-
rowHeightClass:
|
|
108
|
+
rowHeightClass: qe,
|
|
105
109
|
groupedData: L,
|
|
106
|
-
showSummaryFooter:
|
|
107
|
-
summaryFooterProps:
|
|
110
|
+
showSummaryFooter: mt,
|
|
111
|
+
summaryFooterProps: we,
|
|
108
112
|
bulkActionBar: Q,
|
|
109
113
|
renderBulkActionBar: Z,
|
|
110
114
|
onBulkDuplicate: K,
|
|
@@ -112,79 +116,79 @@ const Oe = "300px", Te = (t) => {
|
|
|
112
116
|
bulkActionBusy: te,
|
|
113
117
|
columnAlignments: z,
|
|
114
118
|
onColumnHeaderAction: re,
|
|
115
|
-
showColumnHeaderMenu:
|
|
116
|
-
columnMenuCapabilities:
|
|
117
|
-
renderGroupHeader:
|
|
118
|
-
columnMenuSchema:
|
|
119
|
-
columnSchema:
|
|
120
|
-
labelMeta:
|
|
121
|
-
renderColumnHeaderMenuExtraItems:
|
|
122
|
-
fillWidth:
|
|
123
|
-
rowActions:
|
|
119
|
+
showColumnHeaderMenu: Nt,
|
|
120
|
+
columnMenuCapabilities: kt,
|
|
121
|
+
renderGroupHeader: Be,
|
|
122
|
+
columnMenuSchema: $,
|
|
123
|
+
columnSchema: j,
|
|
124
|
+
labelMeta: Ct,
|
|
125
|
+
renderColumnHeaderMenuExtraItems: St,
|
|
126
|
+
fillWidth: w = !1,
|
|
127
|
+
rowActions: pe,
|
|
124
128
|
onCellActivate: xe
|
|
125
|
-
},
|
|
126
|
-
const [ne,
|
|
129
|
+
}, F) {
|
|
130
|
+
const [ne, vt] = B(
|
|
127
131
|
() => /* @__PURE__ */ new Set()
|
|
128
|
-
), [
|
|
132
|
+
), [Wt, Rt] = B(
|
|
129
133
|
null
|
|
130
|
-
), [b, ge] =
|
|
134
|
+
), [b, ge] = B(null), [A, It] = B(null), ie = G === "single" || G === "multiple", be = !!pe, W = ie && !he, me = kr(L), _t = u(() => $ != null && $.length ? new Map($.map((e) => [e.key, e])) : /* @__PURE__ */ new Map(), [$]), Je = u(() => j != null && j.length ? new Map(j.map((e) => [e.value, e])) : /* @__PURE__ */ new Map(), [j]), se = u(
|
|
131
135
|
() => l.map((e) => e.key),
|
|
132
136
|
[l]
|
|
133
|
-
),
|
|
134
|
-
|
|
137
|
+
), Et = J((e) => {
|
|
138
|
+
vt((r) => {
|
|
135
139
|
const n = new Set(r);
|
|
136
140
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
137
141
|
});
|
|
138
|
-
}, []), ae = u(() => P ? Array.from({ length:
|
|
142
|
+
}, []), ae = u(() => P ? Array.from({ length: je }, (e, r) => ({
|
|
139
143
|
id: `loading-${r}`
|
|
140
|
-
})) :
|
|
144
|
+
})) : i.map((e) => {
|
|
141
145
|
const r = e;
|
|
142
146
|
if (r.__rowId != null)
|
|
143
147
|
return r;
|
|
144
|
-
const n =
|
|
148
|
+
const n = V(r);
|
|
145
149
|
return r.id != null && String(r.id) === n ? r : { ...r, id: n };
|
|
146
|
-
}), [P,
|
|
147
|
-
(e) => ne.has(e.key) ? [] : e.rows.map((r) =>
|
|
148
|
-
) : ae.map((e) =>
|
|
149
|
-
() =>
|
|
150
|
+
}), [P, i, je]), g = u(() => P ? [] : me && L ? L.flatMap(
|
|
151
|
+
(e) => ne.has(e.key) ? [] : e.rows.map((r) => V(r))
|
|
152
|
+
) : ae.map((e) => V(e)), [P, me, L, ne, ae]), Ne = u(
|
|
153
|
+
() => at(k, g),
|
|
150
154
|
[k, g]
|
|
151
|
-
), ke =
|
|
155
|
+
), ke = gr(k, g), Ce = ke > 0, Ve = Ce && !!(Q ?? Z ?? K ?? ee), M = u(() => {
|
|
152
156
|
if (!Ce) return;
|
|
153
|
-
const e =
|
|
154
|
-
(r) => Ne.has(
|
|
157
|
+
const e = i.filter(
|
|
158
|
+
(r) => Ne.has(V(r))
|
|
155
159
|
);
|
|
156
160
|
return {
|
|
157
161
|
selectedKeys: Ne,
|
|
158
162
|
selectedRows: e,
|
|
159
|
-
clearSelection: () =>
|
|
163
|
+
clearSelection: () => p == null ? void 0 : p(/* @__PURE__ */ new Set()),
|
|
160
164
|
busy: te
|
|
161
165
|
};
|
|
162
166
|
}, [
|
|
163
167
|
Ce,
|
|
164
168
|
Ne,
|
|
165
|
-
|
|
166
|
-
|
|
169
|
+
i,
|
|
170
|
+
p,
|
|
167
171
|
te
|
|
168
|
-
]),
|
|
172
|
+
]), Xe = u(() => {
|
|
169
173
|
if (ye != null) return ye;
|
|
170
|
-
if (
|
|
174
|
+
if (Ve) {
|
|
171
175
|
if (Q != null) return Q;
|
|
172
|
-
if (Z &&
|
|
173
|
-
return Z(
|
|
174
|
-
if (
|
|
175
|
-
return /* @__PURE__ */
|
|
176
|
-
|
|
176
|
+
if (Z && M)
|
|
177
|
+
return Z(M);
|
|
178
|
+
if (M && (K || ee))
|
|
179
|
+
return /* @__PURE__ */ s(
|
|
180
|
+
lr,
|
|
177
181
|
{
|
|
178
182
|
count: ke,
|
|
179
183
|
onDuplicate: K,
|
|
180
184
|
onDelete: ee,
|
|
181
|
-
onClearSelection:
|
|
185
|
+
onClearSelection: M.clearSelection,
|
|
182
186
|
busy: te
|
|
183
187
|
}
|
|
184
188
|
);
|
|
185
189
|
}
|
|
186
|
-
return h ? /* @__PURE__ */
|
|
187
|
-
|
|
190
|
+
return h ? /* @__PURE__ */ s(
|
|
191
|
+
or,
|
|
188
192
|
{
|
|
189
193
|
sort: h.sort,
|
|
190
194
|
filter: h.filter,
|
|
@@ -196,9 +200,9 @@ const Oe = "300px", Te = (t) => {
|
|
|
196
200
|
summary: h.summary,
|
|
197
201
|
sortContent: h.sortContent,
|
|
198
202
|
filterContent: h.filterContent,
|
|
199
|
-
fallbackTitle:
|
|
200
|
-
trailing:
|
|
201
|
-
searchCollapsible:
|
|
203
|
+
fallbackTitle: Fe,
|
|
204
|
+
trailing: Me,
|
|
205
|
+
searchCollapsible: Ue,
|
|
202
206
|
disableExtendedTools: ue,
|
|
203
207
|
undoRedo: h.undoRedo ? {
|
|
204
208
|
...h.undoRedo,
|
|
@@ -208,32 +212,32 @@ const Oe = "300px", Te = (t) => {
|
|
|
208
212
|
) : null;
|
|
209
213
|
}, [
|
|
210
214
|
ye,
|
|
211
|
-
|
|
215
|
+
Ve,
|
|
212
216
|
Q,
|
|
213
217
|
Z,
|
|
214
|
-
|
|
218
|
+
M,
|
|
215
219
|
K,
|
|
216
220
|
ee,
|
|
217
221
|
te,
|
|
218
222
|
ke,
|
|
219
223
|
h,
|
|
220
|
-
je,
|
|
221
224
|
Fe,
|
|
222
|
-
|
|
225
|
+
Me,
|
|
226
|
+
Ue,
|
|
223
227
|
ue
|
|
224
|
-
]),
|
|
225
|
-
if (!
|
|
228
|
+
]), Ye = Xe != null && xt !== !1, He = !!x && (x == null ? void 0 : x.showPagination) !== !1, Pt = Ye || He, Qe = !P && i.length === 0 && De != null, m = !!(gt && v), Se = !!(v != null && v.showFooterRow), T = bt ?? (m || Se || be), Tt = Qe && !(Se && v), D = l.length + (W ? 1 : 0) + (m ? 1 : 0), Ot = !!(mt && we), y = H ? "border-r border-secondary last:border-r-0" : void 0, I = u(() => {
|
|
229
|
+
if (!w) return null;
|
|
226
230
|
const e = l.reduce(
|
|
227
|
-
(
|
|
231
|
+
(a, f) => X(f) ? a + Te(Oe(f)) : a,
|
|
228
232
|
0
|
|
229
233
|
);
|
|
230
234
|
return { minTableWidth: l.filter(
|
|
231
|
-
(
|
|
235
|
+
(a) => !X(a)
|
|
232
236
|
).reduce(
|
|
233
|
-
(
|
|
237
|
+
(a, f) => a + Te(f.minWidth),
|
|
234
238
|
0
|
|
235
239
|
) + e };
|
|
236
|
-
}, [l,
|
|
240
|
+
}, [l, w]), Lt = u(() => {
|
|
237
241
|
const e = /* @__PURE__ */ new Map();
|
|
238
242
|
return re && l.forEach((r) => {
|
|
239
243
|
e.set(
|
|
@@ -241,26 +245,26 @@ const Oe = "300px", Te = (t) => {
|
|
|
241
245
|
(n) => re(r.key, n)
|
|
242
246
|
);
|
|
243
247
|
}), e;
|
|
244
|
-
}, [l, re]), R =
|
|
248
|
+
}, [l, re]), R = Vt(null), [U, Ze] = B(null), ve = J(
|
|
245
249
|
(e, r, n) => {
|
|
246
250
|
var f;
|
|
247
|
-
let
|
|
248
|
-
if (
|
|
249
|
-
const N = (f =
|
|
251
|
+
let a = n ?? null;
|
|
252
|
+
if (a == null) {
|
|
253
|
+
const N = (f = tr(
|
|
250
254
|
R.current,
|
|
251
255
|
e,
|
|
252
256
|
r
|
|
253
257
|
)) == null ? void 0 : f.getAttribute("data-grid-source-index"), _ = N != null && N !== "" ? Number(N) : NaN;
|
|
254
|
-
|
|
258
|
+
a = Number.isNaN(_) ? null : _;
|
|
255
259
|
}
|
|
256
|
-
ge({ rowId: e, columnKey: r, sourceIndex:
|
|
260
|
+
ge({ rowId: e, columnKey: r, sourceIndex: a });
|
|
257
261
|
},
|
|
258
262
|
[]
|
|
259
|
-
),
|
|
263
|
+
), zt = J(
|
|
260
264
|
(e) => {
|
|
261
265
|
var le, oe, de;
|
|
262
|
-
const r = e.key in
|
|
263
|
-
if (e.key !== "Enter" && e.key !== "Tab" && e.key !== "Escape" && !r ||
|
|
266
|
+
const r = e.key in st;
|
|
267
|
+
if (e.key !== "Enter" && e.key !== "Tab" && e.key !== "Escape" && !r || rr(e.target)) return;
|
|
264
268
|
if (e.key === "Escape") {
|
|
265
269
|
if (!b) return;
|
|
266
270
|
e.preventDefault(), e.stopPropagation(), ge(null), (le = R.current) != null && le.contains(document.activeElement) && document.activeElement.blur();
|
|
@@ -269,10 +273,10 @@ const Oe = "300px", Te = (t) => {
|
|
|
269
273
|
const n = (de = (oe = e.target).closest) == null ? void 0 : de.call(
|
|
270
274
|
oe,
|
|
271
275
|
"[data-grid-cell]"
|
|
272
|
-
),
|
|
276
|
+
), a = n == null ? void 0 : n.getAttribute("data-grid-row-id"), f = n == null ? void 0 : n.getAttribute("data-grid-col-key"), N = n == null ? void 0 : n.getAttribute(
|
|
273
277
|
"data-grid-source-index"
|
|
274
|
-
), _ = N != null && N !== "" ? Number(N) : NaN, o = Number.isNaN(_) ? null : _, C = b ?? (
|
|
275
|
-
rowId:
|
|
278
|
+
), _ = N != null && N !== "" ? Number(N) : NaN, o = Number.isNaN(_) ? null : _, C = b ?? (a && f ? {
|
|
279
|
+
rowId: a,
|
|
276
280
|
columnKey: f,
|
|
277
281
|
sourceIndex: o
|
|
278
282
|
} : null);
|
|
@@ -286,14 +290,14 @@ const Oe = "300px", Te = (t) => {
|
|
|
286
290
|
});
|
|
287
291
|
return;
|
|
288
292
|
}
|
|
289
|
-
const E = r ?
|
|
293
|
+
const E = r ? nr(
|
|
290
294
|
R.current,
|
|
291
295
|
g,
|
|
292
296
|
se,
|
|
293
297
|
C.rowId,
|
|
294
298
|
C.columnKey,
|
|
295
|
-
|
|
296
|
-
) :
|
|
299
|
+
st[e.key]
|
|
300
|
+
) : ir(
|
|
297
301
|
R.current,
|
|
298
302
|
g,
|
|
299
303
|
se,
|
|
@@ -306,7 +310,7 @@ const Oe = "300px", Te = (t) => {
|
|
|
306
310
|
return;
|
|
307
311
|
}
|
|
308
312
|
e.preventDefault(), e.stopPropagation(), ve(E.rowId, E.columnKey, E.sourceIndex), requestAnimationFrame(
|
|
309
|
-
() =>
|
|
313
|
+
() => sr(
|
|
310
314
|
R.current,
|
|
311
315
|
E.rowId,
|
|
312
316
|
E.columnKey
|
|
@@ -315,7 +319,7 @@ const Oe = "300px", Te = (t) => {
|
|
|
315
319
|
},
|
|
316
320
|
[b, g, se, xe, ve]
|
|
317
321
|
);
|
|
318
|
-
|
|
322
|
+
Xt(() => {
|
|
319
323
|
if (!T || !b) return;
|
|
320
324
|
const e = (r) => {
|
|
321
325
|
const n = R.current;
|
|
@@ -323,32 +327,32 @@ const Oe = "300px", Te = (t) => {
|
|
|
323
327
|
};
|
|
324
328
|
return document.addEventListener("pointerdown", e, !0), () => document.removeEventListener("pointerdown", e, !0);
|
|
325
329
|
}, [T, b]);
|
|
326
|
-
const
|
|
330
|
+
const Ke = u(() => {
|
|
327
331
|
let e = 0;
|
|
328
332
|
return W && (e += 40), m && (e += 56), l.forEach((r) => {
|
|
329
|
-
|
|
333
|
+
X(r) && (e += Te(Oe(r)));
|
|
330
334
|
}), e;
|
|
331
335
|
}, [l, m, W]), We = u(
|
|
332
|
-
() => l.filter((e) => !
|
|
336
|
+
() => l.filter((e) => !X(e)).length,
|
|
333
337
|
[l]
|
|
334
338
|
), Re = u(() => {
|
|
335
|
-
if (!
|
|
339
|
+
if (!w || !I) return null;
|
|
336
340
|
const { minTableWidth: e } = I;
|
|
337
|
-
return
|
|
338
|
-
}, [
|
|
341
|
+
return U ? Math.max(U, e) : e;
|
|
342
|
+
}, [U, w, I]), Ie = !!(w && I && U && U < I.minTableWidth), _e = u(() => !Re || We === 0 ? null : Math.max(
|
|
339
343
|
0,
|
|
340
|
-
(Re -
|
|
341
|
-
), [Re,
|
|
342
|
-
|
|
343
|
-
if (!
|
|
344
|
-
|
|
344
|
+
(Re - Ke) / We
|
|
345
|
+
), [Re, Ke, We]);
|
|
346
|
+
Yt(() => {
|
|
347
|
+
if (!w) {
|
|
348
|
+
Ze(null);
|
|
345
349
|
return;
|
|
346
350
|
}
|
|
347
351
|
const e = R.current;
|
|
348
352
|
if (!e) return;
|
|
349
353
|
const r = () => {
|
|
350
|
-
const
|
|
351
|
-
|
|
354
|
+
const a = e.clientWidth;
|
|
355
|
+
a > 0 && Ze((f) => f === a ? f : a);
|
|
352
356
|
};
|
|
353
357
|
r();
|
|
354
358
|
const n = new ResizeObserver(r);
|
|
@@ -357,21 +361,21 @@ const Oe = "300px", Te = (t) => {
|
|
|
357
361
|
};
|
|
358
362
|
}, [
|
|
359
363
|
l.length,
|
|
360
|
-
|
|
361
|
-
|
|
364
|
+
i.length,
|
|
365
|
+
w,
|
|
362
366
|
P,
|
|
363
367
|
m,
|
|
364
368
|
W
|
|
365
369
|
]);
|
|
366
|
-
const Ee =
|
|
367
|
-
(e) =>
|
|
370
|
+
const Ee = J(
|
|
371
|
+
(e) => w ? X(e) ? ot(e) : _e != null ? {
|
|
368
372
|
width: `${_e}px`,
|
|
369
373
|
minWidth: e.minWidth,
|
|
370
|
-
maxWidth: e.maxWidth ??
|
|
371
|
-
} :
|
|
372
|
-
[
|
|
373
|
-
),
|
|
374
|
-
if (!(!
|
|
374
|
+
maxWidth: e.maxWidth ?? Le
|
|
375
|
+
} : ot(e) : Cr(e),
|
|
376
|
+
[w, _e]
|
|
377
|
+
), At = u(() => {
|
|
378
|
+
if (!(!w || !I))
|
|
375
379
|
return Ie ? {
|
|
376
380
|
width: `${I.minTableWidth}px`,
|
|
377
381
|
tableLayout: "fixed"
|
|
@@ -379,66 +383,66 @@ const Oe = "300px", Te = (t) => {
|
|
|
379
383
|
width: "100%",
|
|
380
384
|
tableLayout: "fixed"
|
|
381
385
|
};
|
|
382
|
-
}, [
|
|
386
|
+
}, [w, I, Ie]), Gt = J(
|
|
383
387
|
(e) => {
|
|
384
|
-
R.current = e, typeof
|
|
388
|
+
R.current = e, typeof F == "function" ? F(e) : F && (F.current = e);
|
|
385
389
|
},
|
|
386
|
-
[
|
|
387
|
-
),
|
|
388
|
-
selectionMode:
|
|
390
|
+
[F]
|
|
391
|
+
), $t = ie ? {
|
|
392
|
+
selectionMode: G,
|
|
389
393
|
selectedKeys: k === "all" ? "all" : k,
|
|
390
|
-
onSelectionChange:
|
|
391
|
-
} : {},
|
|
394
|
+
onSelectionChange: Nr(p)
|
|
395
|
+
} : {}, jt = (e) => {
|
|
392
396
|
const r = e.__sourceIndex;
|
|
393
397
|
return typeof r == "number" ? r : 0;
|
|
394
|
-
}, Pe = ie &&
|
|
395
|
-
if (
|
|
398
|
+
}, Pe = ie && br(k, g), Ft = ie && mr(k, g), Mt = () => {
|
|
399
|
+
if (p) {
|
|
396
400
|
if (Pe) {
|
|
397
|
-
|
|
401
|
+
p(/* @__PURE__ */ new Set());
|
|
398
402
|
return;
|
|
399
403
|
}
|
|
400
|
-
|
|
404
|
+
p("all");
|
|
401
405
|
}
|
|
402
|
-
},
|
|
403
|
-
if (!
|
|
404
|
-
if (
|
|
405
|
-
|
|
406
|
+
}, Dt = (e, r) => {
|
|
407
|
+
if (!p) return;
|
|
408
|
+
if (G === "single") {
|
|
409
|
+
p(r ? /* @__PURE__ */ new Set([e]) : /* @__PURE__ */ new Set());
|
|
406
410
|
return;
|
|
407
411
|
}
|
|
408
|
-
const n = k === "all" ? new Set(g) : new Set(
|
|
409
|
-
r ? n.add(e) : n.delete(e),
|
|
410
|
-
},
|
|
412
|
+
const n = k === "all" ? new Set(g) : new Set(at(k, g));
|
|
413
|
+
r ? n.add(e) : n.delete(e), p(n);
|
|
414
|
+
}, Ut = (e) => {
|
|
411
415
|
const r = ne.has(e.key);
|
|
412
|
-
return
|
|
416
|
+
return Be ? /* @__PURE__ */ s(
|
|
413
417
|
d.Row,
|
|
414
418
|
{
|
|
415
419
|
id: `group-${e.key}`,
|
|
416
420
|
highlightSelectedRow: !1,
|
|
417
421
|
className: "bg-secondary_subtle hover:bg-secondary_subtle",
|
|
418
|
-
children: /* @__PURE__ */
|
|
422
|
+
children: /* @__PURE__ */ s(d.Cell, { colSpan: D, className: c(y), children: Be(e) })
|
|
419
423
|
},
|
|
420
424
|
`group-${e.key}`
|
|
421
|
-
) : /* @__PURE__ */
|
|
425
|
+
) : /* @__PURE__ */ s(
|
|
422
426
|
d.Row,
|
|
423
427
|
{
|
|
424
428
|
id: `group-${e.key}`,
|
|
425
429
|
highlightSelectedRow: !1,
|
|
426
430
|
className: "bg-secondary_subtle hover:bg-secondary_subtle",
|
|
427
|
-
children: /* @__PURE__ */
|
|
431
|
+
children: /* @__PURE__ */ s(
|
|
428
432
|
d.Cell,
|
|
429
433
|
{
|
|
430
|
-
colSpan:
|
|
434
|
+
colSpan: D,
|
|
431
435
|
className: c("py-1.5", y),
|
|
432
436
|
children: /* @__PURE__ */ S(
|
|
433
437
|
"button",
|
|
434
438
|
{
|
|
435
439
|
type: "button",
|
|
436
440
|
className: "flex w-full items-center gap-2 px-2 text-left text-xs font-medium text-secondary",
|
|
437
|
-
onClick: () =>
|
|
441
|
+
onClick: () => Et(e.key),
|
|
438
442
|
"aria-expanded": !r,
|
|
439
443
|
children: [
|
|
440
|
-
/* @__PURE__ */
|
|
441
|
-
|
|
444
|
+
/* @__PURE__ */ s(
|
|
445
|
+
Ht,
|
|
442
446
|
{
|
|
443
447
|
className: c(
|
|
444
448
|
"size-4 shrink-0 text-fg-quaternary transition-transform",
|
|
@@ -446,7 +450,7 @@ const Oe = "300px", Te = (t) => {
|
|
|
446
450
|
)
|
|
447
451
|
}
|
|
448
452
|
),
|
|
449
|
-
/* @__PURE__ */
|
|
453
|
+
/* @__PURE__ */ s("span", { className: "truncate", children: e.label || "(Empty)" }),
|
|
450
454
|
/* @__PURE__ */ S("span", { className: "text-tertiary", children: [
|
|
451
455
|
"(",
|
|
452
456
|
e.rows.length,
|
|
@@ -460,48 +464,48 @@ const Oe = "300px", Te = (t) => {
|
|
|
460
464
|
},
|
|
461
465
|
`group-${e.key}`
|
|
462
466
|
);
|
|
463
|
-
},
|
|
464
|
-
const n =
|
|
467
|
+
}, et = (e, r) => {
|
|
468
|
+
const n = $e ? $e(e) : !1, a = V(e), f = jt(e), N = xr(k, a, g), _ = Wt === a;
|
|
465
469
|
return /* @__PURE__ */ S(
|
|
466
470
|
d.Row,
|
|
467
471
|
{
|
|
468
472
|
onAction: () => Y == null ? void 0 : Y(e),
|
|
469
473
|
onMouseEnter: () => O == null ? void 0 : O(e, !0),
|
|
470
474
|
onMouseLeave: () => O == null ? void 0 : O(e, !1),
|
|
471
|
-
id:
|
|
475
|
+
id: a,
|
|
472
476
|
value: e,
|
|
473
477
|
columns: l,
|
|
474
|
-
expandedColSpan:
|
|
478
|
+
expandedColSpan: D,
|
|
475
479
|
isExpandable: n,
|
|
476
480
|
highlightSelectedRow: !he,
|
|
477
|
-
renderExpandedContent: n ?
|
|
481
|
+
renderExpandedContent: n ? wt : void 0,
|
|
478
482
|
className: c(
|
|
479
483
|
Y && "cursor-pointer",
|
|
480
|
-
|
|
481
|
-
|
|
484
|
+
ft ? "prose" : "",
|
|
485
|
+
Ge && "[&>td]:after:hidden",
|
|
482
486
|
be && "group/rowactions",
|
|
483
487
|
_ && "bg-utility-brand-25 hover:bg-utility-brand-25",
|
|
484
|
-
|
|
488
|
+
qe,
|
|
485
489
|
fe == null ? void 0 : fe(e)
|
|
486
490
|
),
|
|
487
491
|
children: [
|
|
488
|
-
W && /* @__PURE__ */
|
|
492
|
+
W && /* @__PURE__ */ s(
|
|
489
493
|
d.Cell,
|
|
490
494
|
{
|
|
491
495
|
className: c("relative w-10 text-center", y),
|
|
492
496
|
style: { minWidth: "40px", width: "40px" },
|
|
493
|
-
children: /* @__PURE__ */
|
|
497
|
+
children: /* @__PURE__ */ s(
|
|
494
498
|
"div",
|
|
495
499
|
{
|
|
496
500
|
className: "flex items-center justify-center",
|
|
497
501
|
onClick: (o) => o.stopPropagation(),
|
|
498
502
|
onKeyDown: (o) => o.stopPropagation(),
|
|
499
|
-
children: /* @__PURE__ */
|
|
500
|
-
|
|
503
|
+
children: /* @__PURE__ */ s(
|
|
504
|
+
it,
|
|
501
505
|
{
|
|
502
506
|
checked: N,
|
|
503
|
-
onCheckedChange: (o) =>
|
|
504
|
-
"aria-label": `Select row ${
|
|
507
|
+
onCheckedChange: (o) => Dt(a, o === !0),
|
|
508
|
+
"aria-label": `Select row ${a}`,
|
|
505
509
|
className: "items-center justify-center"
|
|
506
510
|
}
|
|
507
511
|
)
|
|
@@ -510,19 +514,19 @@ const Oe = "300px", Te = (t) => {
|
|
|
510
514
|
}
|
|
511
515
|
),
|
|
512
516
|
l.map((o, C) => {
|
|
513
|
-
const E =
|
|
517
|
+
const E = Je.get(o.key), le = lt(
|
|
514
518
|
o.key,
|
|
515
519
|
z,
|
|
516
520
|
E
|
|
517
|
-
), oe = (A == null ? void 0 : A.rowId) ===
|
|
518
|
-
return /* @__PURE__ */
|
|
521
|
+
), oe = (A == null ? void 0 : A.rowId) === a && (A == null ? void 0 : A.columnKey) === o.key, de = T && !oe && (b == null ? void 0 : b.rowId) === a && (b == null ? void 0 : b.columnKey) === o.key;
|
|
522
|
+
return /* @__PURE__ */ s(
|
|
519
523
|
d.Cell,
|
|
520
524
|
{
|
|
521
525
|
sticky: o.sticky,
|
|
522
526
|
stickyOffset: o.stickyOffset,
|
|
523
527
|
style: Ee(o),
|
|
524
528
|
"data-grid-cell": "",
|
|
525
|
-
"data-grid-row-id":
|
|
529
|
+
"data-grid-row-id": a,
|
|
526
530
|
"data-grid-col-key": o.key,
|
|
527
531
|
"data-grid-source-index": f,
|
|
528
532
|
className: c(
|
|
@@ -533,54 +537,54 @@ const Oe = "300px", Te = (t) => {
|
|
|
533
537
|
// border pseudo-element so it doesn't overlap the ring's bottom edge.
|
|
534
538
|
de && "z-1 outline-hidden ring-2 ring-inset ring-brand after:opacity-0",
|
|
535
539
|
o.cellClassName,
|
|
536
|
-
|
|
540
|
+
er(le),
|
|
537
541
|
y
|
|
538
542
|
),
|
|
539
543
|
children: (() => {
|
|
540
|
-
const
|
|
541
|
-
|
|
544
|
+
const nt = C === 0 && (n || be) ? /* @__PURE__ */ S("div", { className: "flex items-center", children: [
|
|
545
|
+
pe && /* @__PURE__ */ s(
|
|
542
546
|
"div",
|
|
543
547
|
{
|
|
544
548
|
className: "flex items-center justify-center",
|
|
545
|
-
onClick: (
|
|
546
|
-
onKeyDown: (
|
|
547
|
-
children: /* @__PURE__ */
|
|
548
|
-
|
|
549
|
+
onClick: (q) => q.stopPropagation(),
|
|
550
|
+
onKeyDown: (q) => q.stopPropagation(),
|
|
551
|
+
children: /* @__PURE__ */ s(
|
|
552
|
+
hr,
|
|
549
553
|
{
|
|
550
|
-
config:
|
|
554
|
+
config: pe,
|
|
551
555
|
sourceRowIndex: f,
|
|
552
556
|
item: e,
|
|
553
557
|
triggerClassName: c(
|
|
554
558
|
"transition-opacity group-hover/rowactions:opacity-100 focus-visible:opacity-100",
|
|
555
559
|
_ ? "opacity-100" : "opacity-0"
|
|
556
560
|
),
|
|
557
|
-
onOpenChange: (
|
|
561
|
+
onOpenChange: (q) => Rt(q ? a : null)
|
|
558
562
|
}
|
|
559
563
|
)
|
|
560
564
|
}
|
|
561
565
|
),
|
|
562
|
-
/* @__PURE__ */
|
|
563
|
-
] }) :
|
|
564
|
-
return T ? /* @__PURE__ */
|
|
566
|
+
/* @__PURE__ */ s("div", { className: "flex-1 min-w-0", children: ze(o.key, e[o.key], e) })
|
|
567
|
+
] }) : ze(o.key, e[o.key], e);
|
|
568
|
+
return T ? /* @__PURE__ */ s(
|
|
565
569
|
"div",
|
|
566
570
|
{
|
|
567
571
|
"data-grid-focus": !0,
|
|
568
572
|
tabIndex: -1,
|
|
569
573
|
className: "outline-hidden",
|
|
570
|
-
children:
|
|
574
|
+
children: nt
|
|
571
575
|
}
|
|
572
|
-
) :
|
|
576
|
+
) : nt;
|
|
573
577
|
})()
|
|
574
578
|
},
|
|
575
579
|
o.key
|
|
576
580
|
);
|
|
577
581
|
}),
|
|
578
|
-
m && v && /* @__PURE__ */
|
|
582
|
+
m && v && /* @__PURE__ */ s(
|
|
579
583
|
d.Cell,
|
|
580
584
|
{
|
|
581
585
|
className: c("relative w-14 text-center", y),
|
|
582
586
|
style: { minWidth: "56px", width: "56px" },
|
|
583
|
-
children: /* @__PURE__ */
|
|
587
|
+
children: /* @__PURE__ */ s(
|
|
584
588
|
"button",
|
|
585
589
|
{
|
|
586
590
|
type: "button",
|
|
@@ -590,30 +594,30 @@ const Oe = "300px", Te = (t) => {
|
|
|
590
594
|
onClick: (o) => {
|
|
591
595
|
o.stopPropagation(), v.onDeleteRow(f);
|
|
592
596
|
},
|
|
593
|
-
children: /* @__PURE__ */
|
|
597
|
+
children: /* @__PURE__ */ s(ur, { name: "Trash02", className: "size-3" })
|
|
594
598
|
}
|
|
595
599
|
)
|
|
596
600
|
}
|
|
597
601
|
)
|
|
598
602
|
]
|
|
599
603
|
},
|
|
600
|
-
|
|
604
|
+
a
|
|
601
605
|
);
|
|
602
|
-
},
|
|
606
|
+
}, qt = (e) => /* @__PURE__ */ S(
|
|
603
607
|
d.Row,
|
|
604
608
|
{
|
|
605
609
|
id: String(e.id),
|
|
606
610
|
isExpandable: !1,
|
|
607
|
-
className: c(
|
|
611
|
+
className: c(Ge && "[&>td]:after:hidden", qe),
|
|
608
612
|
children: [
|
|
609
|
-
W && /* @__PURE__ */
|
|
613
|
+
W && /* @__PURE__ */ s(
|
|
610
614
|
d.Cell,
|
|
611
615
|
{
|
|
612
616
|
className: c("relative w-10", y),
|
|
613
617
|
style: { minWidth: "40px", width: "40px" }
|
|
614
618
|
}
|
|
615
619
|
),
|
|
616
|
-
l.map((r) => /* @__PURE__ */
|
|
620
|
+
l.map((r) => /* @__PURE__ */ s(
|
|
617
621
|
d.Cell,
|
|
618
622
|
{
|
|
619
623
|
sticky: r.sticky,
|
|
@@ -624,11 +628,11 @@ const Oe = "300px", Te = (t) => {
|
|
|
624
628
|
r.cellClassName,
|
|
625
629
|
y
|
|
626
630
|
),
|
|
627
|
-
children: /* @__PURE__ */
|
|
631
|
+
children: /* @__PURE__ */ s(yr, { height: "14px", width: "75%", className: "rounded" })
|
|
628
632
|
},
|
|
629
633
|
r.key
|
|
630
634
|
)),
|
|
631
|
-
m && /* @__PURE__ */
|
|
635
|
+
m && /* @__PURE__ */ s(
|
|
632
636
|
d.Cell,
|
|
633
637
|
{
|
|
634
638
|
className: c("w-14", y),
|
|
@@ -638,35 +642,35 @@ const Oe = "300px", Te = (t) => {
|
|
|
638
642
|
]
|
|
639
643
|
},
|
|
640
644
|
String(e.id)
|
|
641
|
-
),
|
|
645
|
+
), Bt = () => P ? ae.map((e) => qt(e)) : me && L ? L.flatMap((e) => {
|
|
642
646
|
const r = ne.has(e.key);
|
|
643
647
|
return [
|
|
644
|
-
|
|
645
|
-
...r ? [] : e.rows.map((n) =>
|
|
648
|
+
Ut(e),
|
|
649
|
+
...r ? [] : e.rows.map((n) => et(n))
|
|
646
650
|
];
|
|
647
|
-
}) : ae.map((e) =>
|
|
648
|
-
|
|
651
|
+
}) : ae.map((e) => et(e)), tt = /* @__PURE__ */ s(
|
|
652
|
+
Qt.Root,
|
|
649
653
|
{
|
|
650
|
-
ref:
|
|
651
|
-
onKeyDownCapture: T ?
|
|
654
|
+
ref: Gt,
|
|
655
|
+
onKeyDownCapture: T ? zt : void 0,
|
|
652
656
|
className: c(
|
|
653
657
|
"w-full",
|
|
654
|
-
!
|
|
658
|
+
!w || Ie ? "overflow-x-auto" : "overflow-x-hidden",
|
|
655
659
|
H && "border border-secondary rounded-xl",
|
|
656
660
|
"[&_tr:hover>td]:!bg-secondary_subtle",
|
|
657
|
-
|
|
661
|
+
ut
|
|
658
662
|
),
|
|
659
|
-
size:
|
|
663
|
+
size: Ae,
|
|
660
664
|
children: /* @__PURE__ */ S(
|
|
661
665
|
d,
|
|
662
666
|
{
|
|
663
|
-
"aria-label":
|
|
664
|
-
size:
|
|
667
|
+
"aria-label": ct,
|
|
668
|
+
size: Ae,
|
|
665
669
|
isEditable: T,
|
|
666
670
|
inlineSelection: he,
|
|
667
|
-
className: c(
|
|
668
|
-
style:
|
|
669
|
-
|
|
671
|
+
className: c(w && "min-w-full", pt),
|
|
672
|
+
style: At,
|
|
673
|
+
...$t,
|
|
670
674
|
children: [
|
|
671
675
|
/* @__PURE__ */ S(
|
|
672
676
|
d.Header,
|
|
@@ -674,10 +678,10 @@ const Oe = "300px", Te = (t) => {
|
|
|
674
678
|
className: c(
|
|
675
679
|
"sticky top-0",
|
|
676
680
|
H && "[&>tr>th:first-child]:rounded-bl-none [&>tr>th:last-child]:rounded-br-none z-1",
|
|
677
|
-
|
|
681
|
+
yt
|
|
678
682
|
),
|
|
679
683
|
children: [
|
|
680
|
-
W && /* @__PURE__ */
|
|
684
|
+
W && /* @__PURE__ */ s(
|
|
681
685
|
d.Head,
|
|
682
686
|
{
|
|
683
687
|
label: "",
|
|
@@ -686,11 +690,11 @@ const Oe = "300px", Te = (t) => {
|
|
|
686
690
|
style: { minWidth: "40px", width: "40px" },
|
|
687
691
|
className: c(y),
|
|
688
692
|
headerCellClass: "justify-center",
|
|
689
|
-
children:
|
|
690
|
-
|
|
693
|
+
children: G === "multiple" && p && /* @__PURE__ */ s("div", { onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ s(
|
|
694
|
+
it,
|
|
691
695
|
{
|
|
692
|
-
checked: Pe ? !0 :
|
|
693
|
-
onCheckedChange: () =>
|
|
696
|
+
checked: Pe ? !0 : Ft && !Pe ? "indeterminate" : !1,
|
|
697
|
+
onCheckedChange: () => Mt(),
|
|
694
698
|
"aria-label": "Select all rows",
|
|
695
699
|
className: "items-center justify-center"
|
|
696
700
|
}
|
|
@@ -699,12 +703,12 @@ const Oe = "300px", Te = (t) => {
|
|
|
699
703
|
"selection"
|
|
700
704
|
),
|
|
701
705
|
l.map((e, r) => {
|
|
702
|
-
const n =
|
|
706
|
+
const n = Nt ? _t.get(e.key) : void 0, a = Je.get(e.key), f = lt(
|
|
703
707
|
e.key,
|
|
704
708
|
z,
|
|
705
|
-
|
|
706
|
-
), N =
|
|
707
|
-
return /* @__PURE__ */
|
|
709
|
+
a
|
|
710
|
+
), N = ht.includes(e.key) || f === "center" ? "justify-center" : f === "right" ? "justify-end" : "";
|
|
711
|
+
return /* @__PURE__ */ s(
|
|
708
712
|
d.Head,
|
|
709
713
|
{
|
|
710
714
|
sticky: e.sticky,
|
|
@@ -720,19 +724,19 @@ const Oe = "300px", Te = (t) => {
|
|
|
720
724
|
e.headClassName,
|
|
721
725
|
y
|
|
722
726
|
),
|
|
723
|
-
headerAction: n && re ? /* @__PURE__ */
|
|
724
|
-
|
|
727
|
+
headerAction: n && re ? /* @__PURE__ */ s(
|
|
728
|
+
dr,
|
|
725
729
|
{
|
|
726
730
|
column: n,
|
|
727
|
-
columnLabel: n.label ?? (
|
|
728
|
-
currentAlignment:
|
|
729
|
-
|
|
731
|
+
columnLabel: n.label ?? (a ? Kt(a, Ct) : e.label),
|
|
732
|
+
currentAlignment: a ? dt(
|
|
733
|
+
a,
|
|
730
734
|
z ?? /* @__PURE__ */ new Map()
|
|
731
735
|
) : (z == null ? void 0 : z.get(e.key)) ?? "left",
|
|
732
|
-
capabilities:
|
|
736
|
+
capabilities: kt,
|
|
733
737
|
hideDisabled: l.length <= 1,
|
|
734
|
-
onAction:
|
|
735
|
-
renderExtraItems:
|
|
738
|
+
onAction: Lt.get(e.key),
|
|
739
|
+
renderExtraItems: St,
|
|
736
740
|
showOnHeaderHover: !0
|
|
737
741
|
}
|
|
738
742
|
) : void 0,
|
|
@@ -741,7 +745,7 @@ const Oe = "300px", Te = (t) => {
|
|
|
741
745
|
e.key
|
|
742
746
|
);
|
|
743
747
|
}),
|
|
744
|
-
m && /* @__PURE__ */
|
|
748
|
+
m && /* @__PURE__ */ s(
|
|
745
749
|
d.Head,
|
|
746
750
|
{
|
|
747
751
|
label: "",
|
|
@@ -756,21 +760,21 @@ const Oe = "300px", Te = (t) => {
|
|
|
756
760
|
}
|
|
757
761
|
),
|
|
758
762
|
/* @__PURE__ */ S(d.Body, { children: [
|
|
759
|
-
!
|
|
760
|
-
|
|
763
|
+
!Qe && Bt(),
|
|
764
|
+
Tt && /* @__PURE__ */ s(
|
|
761
765
|
d.Row,
|
|
762
766
|
{
|
|
763
767
|
id: "empty-state",
|
|
764
768
|
highlightSelectedRow: !1,
|
|
765
|
-
children: /* @__PURE__ */
|
|
769
|
+
children: /* @__PURE__ */ s(
|
|
766
770
|
d.Cell,
|
|
767
771
|
{
|
|
768
|
-
colSpan:
|
|
772
|
+
colSpan: D,
|
|
769
773
|
className: c(
|
|
770
774
|
"text-left text-placeholder_subtle border-b border-secondary py-3",
|
|
771
775
|
y
|
|
772
776
|
),
|
|
773
|
-
children:
|
|
777
|
+
children: De
|
|
774
778
|
}
|
|
775
779
|
)
|
|
776
780
|
},
|
|
@@ -782,13 +786,13 @@ const Oe = "300px", Te = (t) => {
|
|
|
782
786
|
id: "add-row-footer",
|
|
783
787
|
highlightSelectedRow: !1,
|
|
784
788
|
children: [
|
|
785
|
-
/* @__PURE__ */
|
|
789
|
+
/* @__PURE__ */ s(
|
|
786
790
|
d.Cell,
|
|
787
791
|
{
|
|
788
|
-
colSpan:
|
|
792
|
+
colSpan: D - (m ? 1 : 0),
|
|
789
793
|
className: c(y),
|
|
790
|
-
children: /* @__PURE__ */
|
|
791
|
-
|
|
794
|
+
children: /* @__PURE__ */ s(
|
|
795
|
+
cr,
|
|
792
796
|
{
|
|
793
797
|
color: "tertiary",
|
|
794
798
|
className: "bg-secondary text-primary",
|
|
@@ -799,7 +803,7 @@ const Oe = "300px", Te = (t) => {
|
|
|
799
803
|
)
|
|
800
804
|
}
|
|
801
805
|
),
|
|
802
|
-
m && /* @__PURE__ */
|
|
806
|
+
m && /* @__PURE__ */ s(
|
|
803
807
|
d.Cell,
|
|
804
808
|
{
|
|
805
809
|
className: c("w-14", y),
|
|
@@ -810,10 +814,10 @@ const Oe = "300px", Te = (t) => {
|
|
|
810
814
|
},
|
|
811
815
|
"add-row-footer"
|
|
812
816
|
),
|
|
813
|
-
|
|
814
|
-
|
|
817
|
+
Ot && we && /* @__PURE__ */ s(
|
|
818
|
+
fr,
|
|
815
819
|
{
|
|
816
|
-
...
|
|
820
|
+
...we,
|
|
817
821
|
hasActionsColumn: m,
|
|
818
822
|
hasSelectionColumn: W,
|
|
819
823
|
showBorders: !!H
|
|
@@ -824,22 +828,22 @@ const Oe = "300px", Te = (t) => {
|
|
|
824
828
|
}
|
|
825
829
|
)
|
|
826
830
|
}
|
|
827
|
-
),
|
|
828
|
-
|
|
831
|
+
), rt = T ? /* @__PURE__ */ s(
|
|
832
|
+
ar,
|
|
829
833
|
{
|
|
830
834
|
rowIds: g,
|
|
831
835
|
columnKeys: se,
|
|
832
836
|
containerRef: R,
|
|
833
837
|
onSelectCell: ve,
|
|
834
|
-
onEditingCellChange:
|
|
835
|
-
children:
|
|
838
|
+
onEditingCellChange: It,
|
|
839
|
+
children: tt
|
|
836
840
|
}
|
|
837
|
-
) :
|
|
838
|
-
return
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
841
|
+
) : tt;
|
|
842
|
+
return Pt ? /* @__PURE__ */ S("div", { className: "flex flex-col gap-3", children: [
|
|
843
|
+
Ye && Xe,
|
|
844
|
+
rt,
|
|
845
|
+
He && x && /* @__PURE__ */ s(
|
|
846
|
+
Zt,
|
|
843
847
|
{
|
|
844
848
|
currentPage: x.currentPage,
|
|
845
849
|
pageSize: x.pageSize,
|
|
@@ -850,9 +854,9 @@ const Oe = "300px", Te = (t) => {
|
|
|
850
854
|
showPagination: x.showPagination
|
|
851
855
|
}
|
|
852
856
|
)
|
|
853
|
-
] }) :
|
|
857
|
+
] }) : rt;
|
|
854
858
|
}
|
|
855
859
|
);
|
|
856
860
|
export {
|
|
857
|
-
|
|
861
|
+
Dr as TableWrapper
|
|
858
862
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/patterns/table/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACjG,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,QAAQ,EACR,qBAAqB,EACtB,MAAM,WAAW,CAAC;AAEnB,0EAA0E;AAC1E,MAAM,MAAM,oBAAoB,GAC5B,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,MAAM,GACN,YAAY,GACZ,oBAAoB,GACpB,OAAO,GACP,MAAM,CAAC;AAEX;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iFAAiF;IACjF,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAA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