@pstdio/ui 0.41.0 → 0.42.0
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/{MermaidComponent-BCiI63_G.js → MermaidComponent-D7vhkpka.js} +2 -2
- package/dist/{MermaidComponent-BCiI63_G.js.map → MermaidComponent-D7vhkpka.js.map} +1 -1
- package/dist/alert-MQ47wy7f.js +388 -0
- package/dist/alert-MQ47wy7f.js.map +1 -0
- package/dist/chat-ui.d.ts +36 -5
- package/dist/chat-ui.js +1777 -1422
- package/dist/chat-ui.js.map +1 -1
- package/dist/collection-view-fields-D3cysHNT.d.ts +232 -0
- package/dist/collection-view-grouping-D4nZk8-3.js +90 -0
- package/dist/collection-view-grouping-D4nZk8-3.js.map +1 -0
- package/dist/collection-view-search-CpjJy76w.js +1973 -0
- package/dist/collection-view-search-CpjJy76w.js.map +1 -0
- package/dist/collection-view.d.ts +4 -0
- package/dist/collection-view.js +2 -0
- package/dist/{data-table-stats-row-EiTEONdY.js → data-table-stats-row-64magT2g.js} +2 -2
- package/dist/{data-table-stats-row-EiTEONdY.js.map → data-table-stats-row-64magT2g.js.map} +1 -1
- package/dist/data-table.d.ts +3 -1
- package/dist/data-table.js +279 -277
- package/dist/data-table.js.map +1 -1
- package/dist/{diff-drawer-BwZBOObe.js → diff-drawer-IYpQ-QQK.js} +192 -191
- package/dist/diff-drawer-IYpQ-QQK.js.map +1 -0
- package/dist/{diff-viewer-kOOd7C7h.js → diff-viewer-C-0VAt9P.js} +4 -4
- package/dist/{diff-viewer-kOOd7C7h.js.map → diff-viewer-C-0VAt9P.js.map} +1 -1
- package/dist/diff.js +2 -2
- package/dist/{display-sort-control-DPxc0e5z.js → display-sort-control-f3rbILsV.js} +87 -86
- package/dist/{display-sort-control-DPxc0e5z.js.map → display-sort-control-f3rbILsV.js.map} +1 -1
- package/dist/drop-indicator-HjlBSIeV.js +27 -0
- package/dist/drop-indicator-HjlBSIeV.js.map +1 -0
- package/dist/edit-mode-data-table-DnMB2jiy.js +1449 -0
- package/dist/edit-mode-data-table-DnMB2jiy.js.map +1 -0
- package/dist/host-storage-BIo5azql.js +31 -0
- package/dist/host-storage-BIo5azql.js.map +1 -0
- package/dist/host-storage-J0089Hyk.d.ts +17 -0
- package/dist/icon-options-Tt6Wzhtv.js +308 -0
- package/dist/icon-options-Tt6Wzhtv.js.map +1 -0
- package/dist/{index-C9mywhyX.d.ts → index-B79hwNcB.d.ts} +17 -1
- package/dist/index-CKsd23jv.d.ts +80 -0
- package/dist/{index-D3UJyWWh.d.ts → index-ICoad2I_.d.ts} +4 -223
- package/dist/index.d.ts +22 -6
- package/dist/index.js +1174 -1112
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.d.ts +2 -1
- package/dist/kanban-renderer.js +531 -528
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/list-row-Z4SHkseA.js +1195 -0
- package/dist/list-row-Z4SHkseA.js.map +1 -0
- package/dist/markdown-editor-Dd4mor7l.js +3236 -0
- package/dist/markdown-editor-Dd4mor7l.js.map +1 -0
- package/dist/number-input-7K66wnSC.js +63 -0
- package/dist/number-input-7K66wnSC.js.map +1 -0
- package/dist/param-editor-Dnix-fJo.js +225 -0
- package/dist/param-editor-Dnix-fJo.js.map +1 -0
- package/dist/param-editor-field-B3vLST-B.js +2394 -0
- package/dist/param-editor-field-B3vLST-B.js.map +1 -0
- package/dist/param-editor.js +4 -2
- package/dist/prism-OG4H7Hu4.js +334 -0
- package/dist/prism-OG4H7Hu4.js.map +1 -0
- package/dist/queued-follow-up-Bj_vtMgd.js +208 -0
- package/dist/queued-follow-up-Bj_vtMgd.js.map +1 -0
- package/dist/rich-text-BgEnAHr2.js +1160 -0
- package/dist/rich-text-BgEnAHr2.js.map +1 -0
- package/dist/rich-text.d.ts +1 -1
- package/dist/rich-text.js +4 -2
- package/dist/terminal.js +1 -1
- package/dist/{theme-at0rtSnX.js → theme-CMJdH59Z.js} +224 -90
- package/dist/theme-CMJdH59Z.js.map +1 -0
- package/dist/theme.js +1 -1
- package/dist/tree-list-jarhD31R.js +1652 -0
- package/dist/tree-list-jarhD31R.js.map +1 -0
- package/dist/use-virtualizer-uj43XjBp.js +10 -0
- package/dist/use-virtualizer-uj43XjBp.js.map +1 -0
- package/dist/{host-storage-DP0RLj4i.d.ts → workspace-badge-BKtB805G.d.ts} +6 -16
- package/package.json +6 -2
- package/dist/chat-question-bubble-w2vMbFsS.js +0 -68
- package/dist/chat-question-bubble-w2vMbFsS.js.map +0 -1
- package/dist/diff-drawer-BwZBOObe.js.map +0 -1
- package/dist/list-row-DM0DiIrN.js +0 -1167
- package/dist/list-row-DM0DiIrN.js.map +0 -1
- package/dist/prism-JVIsQMoJ.js +0 -1029
- package/dist/prism-JVIsQMoJ.js.map +0 -1
- package/dist/rich-text-DM24VNQZ.js +0 -10447
- package/dist/rich-text-DM24VNQZ.js.map +0 -1
- package/dist/theme-at0rtSnX.js.map +0 -1
- package/dist/tree-list-Cqgl8mnN.js +0 -1621
- package/dist/tree-list-Cqgl8mnN.js.map +0 -1
package/dist/data-table.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { n as e, t } from "./scroll-area-Cr1lNXAr.js";
|
|
2
|
+
import { a as n, o as r, t as i, u as a } from "./list-row-Z4SHkseA.js";
|
|
3
|
+
import { n as o } from "./prism-OG4H7Hu4.js";
|
|
4
|
+
import { f as s, m as c } from "./collection-view-search-CpjJy76w.js";
|
|
5
|
+
import { C as l, S as u, T as d, _ as f, a as p, b as m, c as h, d as g, f as _, h as v, i as y, l as b, m as x, n as S, o as C, p as w, r as T, s as E, t as D, u as O, v as k, w as A, x as j, y as M } from "./edit-mode-data-table-DnMB2jiy.js";
|
|
6
|
+
import { a as N } from "./collection-view-grouping-D4nZk8-3.js";
|
|
5
7
|
import { t as P } from "./diff-bubble-DewUd_2w.js";
|
|
6
|
-
import { i as F, n as I, t as L } from "./display-sort-control-
|
|
8
|
+
import { i as F, n as I, t as L } from "./display-sort-control-f3rbILsV.js";
|
|
7
9
|
import { Badge as R, Box as z, Button as B, Flex as ee, HStack as V, Icon as H, IconButton as te, Image as ne, Menu as U, Popover as W, Portal as re, Skeleton as G, Stack as ie, Table as K, Text as q, chakra as J } from "@chakra-ui/react";
|
|
8
10
|
import { c as Y } from "react/compiler-runtime";
|
|
9
11
|
import { jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
@@ -87,7 +89,7 @@ var Ie = (e, t) => t.find((t) => Object.is(t.value, e))?.color ?? null, Le = (e)
|
|
|
87
89
|
textStyle: "paragraph/S/medium",
|
|
88
90
|
fontVariantNumeric: "tabular-nums",
|
|
89
91
|
truncate: !0,
|
|
90
|
-
children: /* @__PURE__ */ X(
|
|
92
|
+
children: /* @__PURE__ */ X(N, {
|
|
91
93
|
text: a,
|
|
92
94
|
query: i
|
|
93
95
|
})
|
|
@@ -96,7 +98,7 @@ var Ie = (e, t) => t.find((t) => Object.is(t.value, e))?.color ?? null, Le = (e)
|
|
|
96
98
|
let t = Y(9), { value: n, categories: r, search: i } = e, a = i === void 0 ? "" : i, o;
|
|
97
99
|
t[0] !== r || t[1] !== n ? (o = r?.find((e) => e.value === n)?.palette ?? "gray", t[0] = r, t[1] = n, t[2] = o) : o = t[2];
|
|
98
100
|
let s = o, c = String(n), l;
|
|
99
|
-
t[3] !== a || t[4] !== c ? (l = /* @__PURE__ */ X(
|
|
101
|
+
t[3] !== a || t[4] !== c ? (l = /* @__PURE__ */ X(N, {
|
|
100
102
|
text: c,
|
|
101
103
|
query: a
|
|
102
104
|
}), t[3] = a, t[4] = c, t[5] = l) : l = t[5];
|
|
@@ -111,12 +113,12 @@ var Ie = (e, t) => t.find((t) => Object.is(t.value, e))?.color ?? null, Le = (e)
|
|
|
111
113
|
}), t[6] = s, t[7] = l, t[8] = u) : u = t[8], u;
|
|
112
114
|
}, at = (e) => {
|
|
113
115
|
let t = Y(11), { value: n, search: r } = e, i = r === void 0 ? "" : r, a = `+${n.additions}`, o;
|
|
114
|
-
t[0] !== i || t[1] !== a ? (o = /* @__PURE__ */ X(
|
|
116
|
+
t[0] !== i || t[1] !== a ? (o = /* @__PURE__ */ X(N, {
|
|
115
117
|
text: a,
|
|
116
118
|
query: i
|
|
117
119
|
}), t[0] = i, t[1] = a, t[2] = o) : o = t[2];
|
|
118
120
|
let s = `-${n.deletions}`, c;
|
|
119
|
-
t[3] !== i || t[4] !== s ? (c = /* @__PURE__ */ X(
|
|
121
|
+
t[3] !== i || t[4] !== s ? (c = /* @__PURE__ */ X(N, {
|
|
120
122
|
text: s,
|
|
121
123
|
query: i
|
|
122
124
|
}), t[3] = i, t[4] = s, t[5] = c) : c = t[5];
|
|
@@ -129,8 +131,8 @@ var Ie = (e, t) => t.find((t) => Object.is(t.value, e))?.color ?? null, Le = (e)
|
|
|
129
131
|
additionsLabel: o,
|
|
130
132
|
deletionsLabel: c
|
|
131
133
|
}), t[6] = o, t[7] = c, t[8] = n.additions, t[9] = n.deletions, t[10] = l) : l = t[10], l;
|
|
132
|
-
}, ot = (
|
|
133
|
-
let n = Y(16), { value: r, search: i } =
|
|
134
|
+
}, ot = (t) => {
|
|
135
|
+
let n = Y(16), { value: r, search: i } = t, a = i === void 0 ? "" : i, o;
|
|
134
136
|
n[0] === r ? o = n[1] : (o = r.slice(0, -5), n[0] = r, n[1] = o);
|
|
135
137
|
let s = o, c;
|
|
136
138
|
n[2] === r ? c = n[3] : (c = r.slice(-5), n[2] = r, n[3] = c);
|
|
@@ -138,7 +140,7 @@ var Ie = (e, t) => t.find((t) => Object.is(t.value, e))?.color ?? null, Le = (e)
|
|
|
138
140
|
n[4] !== a || n[5] !== s ? (u = /* @__PURE__ */ X(J.span, {
|
|
139
141
|
overflow: "hidden",
|
|
140
142
|
textOverflow: "ellipsis",
|
|
141
|
-
children: /* @__PURE__ */ X(
|
|
143
|
+
children: /* @__PURE__ */ X(N, {
|
|
142
144
|
text: s,
|
|
143
145
|
query: a
|
|
144
146
|
})
|
|
@@ -146,7 +148,7 @@ var Ie = (e, t) => t.find((t) => Object.is(t.value, e))?.color ?? null, Le = (e)
|
|
|
146
148
|
let d;
|
|
147
149
|
n[7] !== l || n[8] !== a ? (d = /* @__PURE__ */ X(J.span, {
|
|
148
150
|
flexShrink: 0,
|
|
149
|
-
children: /* @__PURE__ */ X(
|
|
151
|
+
children: /* @__PURE__ */ X(N, {
|
|
150
152
|
text: l,
|
|
151
153
|
query: a
|
|
152
154
|
})
|
|
@@ -162,82 +164,82 @@ var Ie = (e, t) => t.find((t) => Object.is(t.value, e))?.color ?? null, Le = (e)
|
|
|
162
164
|
children: [u, d]
|
|
163
165
|
}), n[10] = u, n[11] = d, n[12] = f) : f = n[12];
|
|
164
166
|
let p;
|
|
165
|
-
return n[13] !== f || n[14] !== r ? (p = /* @__PURE__ */ X(
|
|
167
|
+
return n[13] !== f || n[14] !== r ? (p = /* @__PURE__ */ X(e, {
|
|
166
168
|
content: r,
|
|
167
169
|
openDelay: 300,
|
|
168
170
|
children: f
|
|
169
171
|
}), n[13] = f, n[14] = r, n[15] = p) : p = n[15], p;
|
|
170
172
|
}, st = (e) => e.stopPropagation(), ct = (e) => {
|
|
171
|
-
let
|
|
172
|
-
if (
|
|
173
|
-
let e =
|
|
174
|
-
|
|
173
|
+
let n = Y(50), { columnLabel: r, value: i, search: a } = e, o = a === void 0 ? "" : a, s, c, l, u, d, p, m, h, g, _, v, y, b, x, S, C;
|
|
174
|
+
if (n[0] !== r || n[1] !== i) {
|
|
175
|
+
let e = k(i).flatMap(lt).slice(0, 2), t;
|
|
176
|
+
n[18] === i ? t = n[19] : (t = M(i), n[18] = i, n[19] = t), u = t, l = W.Root, n[20] === Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
175
177
|
placement: "bottom-start",
|
|
176
178
|
offset: { mainAxis: 6 }
|
|
177
|
-
},
|
|
179
|
+
}, n[20] = h) : h = n[20], c = W.Trigger, m = !0, s = B, d = `View ${r} details`, g = "ghost", _ = "xs", v = "full", y = "0", b = "28px", x = "2xs", S = "flex-start", C = st, p = e.length > 0 ? /* @__PURE__ */ X(V, {
|
|
178
180
|
gap: "-1",
|
|
179
181
|
flexShrink: "0",
|
|
180
182
|
children: e.map(ut)
|
|
181
|
-
}) : /* @__PURE__ */ X(pe, { size: 14 }),
|
|
182
|
-
} else s =
|
|
183
|
-
let
|
|
184
|
-
|
|
183
|
+
}) : /* @__PURE__ */ X(pe, { size: 14 }), n[0] = r, n[1] = i, n[2] = s, n[3] = c, n[4] = l, n[5] = u, n[6] = d, n[7] = p, n[8] = m, n[9] = h, n[10] = g, n[11] = _, n[12] = v, n[13] = y, n[14] = b, n[15] = x, n[16] = S, n[17] = C;
|
|
184
|
+
} else s = n[2], c = n[3], l = n[4], u = n[5], d = n[6], p = n[7], m = n[8], h = n[9], g = n[10], _ = n[11], v = n[12], y = n[13], b = n[14], x = n[15], S = n[16], C = n[17];
|
|
185
|
+
let w;
|
|
186
|
+
n[21] !== o || n[22] !== u ? (w = /* @__PURE__ */ X(q, {
|
|
185
187
|
flex: "1",
|
|
186
188
|
minWidth: "0",
|
|
187
189
|
textAlign: "left",
|
|
188
190
|
textStyle: "paragraph/S/regular",
|
|
189
191
|
truncate: !0,
|
|
190
|
-
children: /* @__PURE__ */ X(
|
|
191
|
-
text:
|
|
192
|
+
children: /* @__PURE__ */ X(N, {
|
|
193
|
+
text: u,
|
|
192
194
|
query: o
|
|
193
195
|
})
|
|
194
|
-
}),
|
|
196
|
+
}), n[21] = o, n[22] = u, n[23] = w) : w = n[23];
|
|
197
|
+
let T;
|
|
198
|
+
n[24] === Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ X(ge, { size: 12 }), n[24] = T) : T = n[24];
|
|
195
199
|
let E;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
t[25] !== s || t[26] !== f || t[27] !== p || t[28] !== T || t[29] !== g || t[30] !== _ || t[31] !== v || t[32] !== y || t[33] !== x || t[34] !== S || t[35] !== C || t[36] !== w ? (D = /* @__PURE__ */ Z(s, {
|
|
199
|
-
"aria-label": f,
|
|
200
|
+
n[25] !== s || n[26] !== d || n[27] !== p || n[28] !== w || n[29] !== g || n[30] !== _ || n[31] !== v || n[32] !== y || n[33] !== b || n[34] !== x || n[35] !== S || n[36] !== C ? (E = /* @__PURE__ */ Z(s, {
|
|
201
|
+
"aria-label": d,
|
|
200
202
|
variant: g,
|
|
201
203
|
size: _,
|
|
202
204
|
width: v,
|
|
203
205
|
minWidth: y,
|
|
204
|
-
height:
|
|
205
|
-
paddingX:
|
|
206
|
-
justifyContent:
|
|
207
|
-
onClick:
|
|
206
|
+
height: b,
|
|
207
|
+
paddingX: x,
|
|
208
|
+
justifyContent: S,
|
|
209
|
+
onClick: C,
|
|
208
210
|
children: [
|
|
209
211
|
p,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
+
w,
|
|
213
|
+
T
|
|
212
214
|
]
|
|
213
|
-
}),
|
|
214
|
-
let
|
|
215
|
-
|
|
215
|
+
}), n[25] = s, n[26] = d, n[27] = p, n[28] = w, n[29] = g, n[30] = _, n[31] = v, n[32] = y, n[33] = b, n[34] = x, n[35] = S, n[36] = C, n[37] = E) : E = n[37];
|
|
216
|
+
let D;
|
|
217
|
+
n[38] !== c || n[39] !== m || n[40] !== E ? (D = /* @__PURE__ */ X(c, {
|
|
216
218
|
asChild: m,
|
|
217
|
-
children:
|
|
218
|
-
}),
|
|
219
|
-
let
|
|
220
|
-
|
|
219
|
+
children: E
|
|
220
|
+
}), n[38] = c, n[39] = m, n[40] = E, n[41] = D) : D = n[41];
|
|
221
|
+
let O;
|
|
222
|
+
n[42] === Symbol.for("react.memo_cache_sentinel") ? (O = { overscrollBehavior: "contain" }, n[42] = O) : O = n[42];
|
|
221
223
|
let A;
|
|
222
|
-
|
|
224
|
+
n[43] === i ? A = n[44] : (A = /* @__PURE__ */ X(re, { children: /* @__PURE__ */ X(W.Positioner, { children: /* @__PURE__ */ X(W.Content, {
|
|
223
225
|
width: "min(380px, calc(100vw - 32px))",
|
|
224
226
|
padding: "0",
|
|
225
227
|
background: "bg",
|
|
226
228
|
overflow: "hidden",
|
|
227
|
-
children: /* @__PURE__ */ X(
|
|
229
|
+
children: /* @__PURE__ */ X(t, {
|
|
228
230
|
maxH: "360px",
|
|
229
|
-
viewportProps:
|
|
230
|
-
children: /* @__PURE__ */ X(
|
|
231
|
+
viewportProps: O,
|
|
232
|
+
children: /* @__PURE__ */ X(f, { value: i })
|
|
231
233
|
})
|
|
232
|
-
}) }) }),
|
|
234
|
+
}) }) }), n[43] = i, n[44] = A);
|
|
233
235
|
let j;
|
|
234
|
-
return
|
|
236
|
+
return n[45] !== l || n[46] !== h || n[47] !== D || n[48] !== A ? (j = /* @__PURE__ */ Z(l, {
|
|
235
237
|
positioning: h,
|
|
236
|
-
children: [
|
|
237
|
-
}),
|
|
238
|
+
children: [D, A]
|
|
239
|
+
}), n[45] = l, n[46] = h, n[47] = D, n[48] = A, n[49] = j) : j = n[49], j;
|
|
238
240
|
};
|
|
239
241
|
function lt(e) {
|
|
240
|
-
return
|
|
242
|
+
return j(e.value, e.label) ? [e] : !Array.isArray(e.value) || !m(e.value, e.label) ? [] : e.value.map((t, n) => ({
|
|
241
243
|
label: `${e.label} ${n + 1}`,
|
|
242
244
|
value: t
|
|
243
245
|
}));
|
|
@@ -263,18 +265,18 @@ var dt = (e) => $(e) ? Q(e, { style: {
|
|
|
263
265
|
} }) : e, ft = (e) => {
|
|
264
266
|
e.stopPropagation();
|
|
265
267
|
}, pt = (e) => {
|
|
266
|
-
let t = Y(10), { table:
|
|
267
|
-
t[0] ===
|
|
268
|
-
let a = i, o = !a &&
|
|
268
|
+
let t = Y(10), { table: r } = e, i;
|
|
269
|
+
t[0] === r ? i = t[1] : (i = r.getIsAllRowsSelected(), t[0] = r, t[1] = i);
|
|
270
|
+
let a = i, o = !a && r.getIsSomeRowsSelected(), s = o ? "indeterminate" : a, c = o ? Se : me, l;
|
|
269
271
|
t[2] === c ? l = t[3] : (l = /* @__PURE__ */ X(H, {
|
|
270
272
|
as: c,
|
|
271
273
|
boxSize: "12px",
|
|
272
274
|
strokeWidth: "3"
|
|
273
275
|
}), t[2] = c, t[3] = l);
|
|
274
276
|
let u;
|
|
275
|
-
t[4] ===
|
|
277
|
+
t[4] === r ? u = t[5] : (u = (e) => r.toggleAllRowsSelected(e.checked === !0), t[4] = r, t[5] = u);
|
|
276
278
|
let d;
|
|
277
|
-
return t[6] !== s || t[7] !== l || t[8] !== u ? (d = /* @__PURE__ */ X(
|
|
279
|
+
return t[6] !== s || t[7] !== l || t[8] !== u ? (d = /* @__PURE__ */ X(n, {
|
|
278
280
|
checked: s,
|
|
279
281
|
"aria-label": "Select all",
|
|
280
282
|
icon: l,
|
|
@@ -282,16 +284,16 @@ var dt = (e) => $(e) ? Q(e, { style: {
|
|
|
282
284
|
onCheckedChange: u
|
|
283
285
|
}), t[6] = s, t[7] = l, t[8] = u, t[9] = d) : d = t[9], d;
|
|
284
286
|
}, mt = (e) => {
|
|
285
|
-
let t = Y(6), { row:
|
|
287
|
+
let t = Y(6), { row: r, column: i } = e, { selectedRowIds: a } = i.columnDef.meta, o = !!a?.[r.id], s;
|
|
286
288
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ X(H, {
|
|
287
289
|
as: me,
|
|
288
290
|
boxSize: "12px",
|
|
289
291
|
strokeWidth: "3"
|
|
290
292
|
}), t[0] = s) : s = t[0];
|
|
291
293
|
let c;
|
|
292
|
-
t[1] ===
|
|
294
|
+
t[1] === r ? c = t[2] : (c = (e) => r.toggleSelected(e.checked === !0), t[1] = r, t[2] = c);
|
|
293
295
|
let l;
|
|
294
|
-
return t[3] !== o || t[4] !== c ? (l = /* @__PURE__ */ X(
|
|
296
|
+
return t[3] !== o || t[4] !== c ? (l = /* @__PURE__ */ X(n, {
|
|
295
297
|
checked: o,
|
|
296
298
|
"aria-label": "Select row",
|
|
297
299
|
icon: s,
|
|
@@ -302,11 +304,11 @@ var dt = (e) => $(e) ? Q(e, { style: {
|
|
|
302
304
|
let n = new Set(t.map((e) => e.label));
|
|
303
305
|
return [...t, ...e.filter((e) => !n.has(e.label))];
|
|
304
306
|
}, gt = (e) => {
|
|
305
|
-
let t = Y(30), { row: n, column: r } = e, { rowActions:
|
|
306
|
-
if (t[0] !==
|
|
307
|
+
let t = Y(30), { row: n, column: r } = e, { rowActions: a, getRowActions: o } = r.columnDef.meta, s, c, l, u, d, f, p, m, h;
|
|
308
|
+
if (t[0] !== o || t[1] !== n || t[2] !== a) {
|
|
307
309
|
h = Symbol.for("react.early_return_sentinel");
|
|
308
310
|
bb0: {
|
|
309
|
-
let e = ht(
|
|
311
|
+
let e = ht(a === void 0 ? [] : a, o?.(n.original) ?? []);
|
|
310
312
|
if (e.length === 0) {
|
|
311
313
|
h = null;
|
|
312
314
|
break bb0;
|
|
@@ -328,7 +330,7 @@ var dt = (e) => $(e) ? Q(e, { style: {
|
|
|
328
330
|
t[13] === n ? r = t[14] : (r = (e) => /* @__PURE__ */ X(U.Item, {
|
|
329
331
|
value: e.label,
|
|
330
332
|
asChild: !0,
|
|
331
|
-
children: /* @__PURE__ */ X(
|
|
333
|
+
children: /* @__PURE__ */ X(i, {
|
|
332
334
|
asChild: !0,
|
|
333
335
|
variant: "full-width",
|
|
334
336
|
tone: e.destructive ? "danger" : "default",
|
|
@@ -339,7 +341,7 @@ var dt = (e) => $(e) ? Q(e, { style: {
|
|
|
339
341
|
})
|
|
340
342
|
}, e.label), t[13] = n, t[14] = r), p = e.map(r);
|
|
341
343
|
}
|
|
342
|
-
t[0] =
|
|
344
|
+
t[0] = o, t[1] = n, t[2] = a, t[3] = s, t[4] = c, t[5] = l, t[6] = u, t[7] = d, t[8] = f, t[9] = p, t[10] = m, t[11] = h;
|
|
343
345
|
} else s = t[3], c = t[4], l = t[5], u = t[6], d = t[7], f = t[8], p = t[9], m = t[10], h = t[11];
|
|
344
346
|
if (h !== Symbol.for("react.early_return_sentinel")) return h;
|
|
345
347
|
let g;
|
|
@@ -358,7 +360,7 @@ var dt = (e) => $(e) ? Q(e, { style: {
|
|
|
358
360
|
let t = Y(14), { content: n, query: r } = e;
|
|
359
361
|
if (typeof n == "string" || typeof n == "number") {
|
|
360
362
|
let e = String(n), i;
|
|
361
|
-
return t[0] !== r || t[1] !== e ? (i = /* @__PURE__ */ X(
|
|
363
|
+
return t[0] !== r || t[1] !== e ? (i = /* @__PURE__ */ X(N, {
|
|
362
364
|
text: e,
|
|
363
365
|
query: r
|
|
364
366
|
}), t[0] = r, t[1] = e, t[2] = i) : i = t[2], i;
|
|
@@ -388,7 +390,7 @@ var dt = (e) => $(e) ? Q(e, { style: {
|
|
|
388
390
|
let t = Y(22), { value: n, wrapRows: r, search: i } = e, a = i === void 0 ? "" : i, o, s;
|
|
389
391
|
if (t[0] !== a || t[1] !== n || t[2] !== r) {
|
|
390
392
|
s = Symbol.for("react.early_return_sentinel");
|
|
391
|
-
bb0: if (o =
|
|
393
|
+
bb0: if (o = x(n), $(o)) {
|
|
392
394
|
let e = r ? "visible" : "hidden", n = r ? "anywhere" : void 0, i = r ? "normal" : "nowrap", c = r ? o : dt(o), l;
|
|
393
395
|
t[5] !== a || t[6] !== c ? (l = /* @__PURE__ */ X(_t, {
|
|
394
396
|
content: c,
|
|
@@ -409,21 +411,21 @@ var dt = (e) => $(e) ? Q(e, { style: {
|
|
|
409
411
|
t[0] = a, t[1] = n, t[2] = r, t[3] = o, t[4] = s;
|
|
410
412
|
} else o = t[3], s = t[4];
|
|
411
413
|
if (s !== Symbol.for("react.early_return_sentinel")) return s;
|
|
412
|
-
let c = r ? "visible" : "hidden", l = r ? "anywhere" : void 0, u = r ? void 0 : "ellipsis",
|
|
413
|
-
t[13] !== o || t[14] !== a ? (
|
|
414
|
+
let c = r ? "visible" : "hidden", l = r ? "anywhere" : void 0, u = r ? void 0 : "ellipsis", d = r ? "normal" : "nowrap", f;
|
|
415
|
+
t[13] !== o || t[14] !== a ? (f = /* @__PURE__ */ X(_t, {
|
|
414
416
|
content: o,
|
|
415
417
|
query: a
|
|
416
|
-
}), t[13] = o, t[14] = a, t[15] =
|
|
417
|
-
let
|
|
418
|
-
return t[16] !== c || t[17] !== l || t[18] !== u || t[19] !==
|
|
418
|
+
}), t[13] = o, t[14] = a, t[15] = f) : f = t[15];
|
|
419
|
+
let p;
|
|
420
|
+
return t[16] !== c || t[17] !== l || t[18] !== u || t[19] !== d || t[20] !== f ? (p = /* @__PURE__ */ X(q, {
|
|
419
421
|
maxWidth: "full",
|
|
420
422
|
overflow: c,
|
|
421
423
|
overflowWrap: l,
|
|
422
424
|
textOverflow: u,
|
|
423
425
|
textStyle: "paragraph/S/regular",
|
|
424
|
-
whiteSpace:
|
|
425
|
-
children:
|
|
426
|
-
}), t[16] = c, t[17] = l, t[18] = u, t[19] =
|
|
426
|
+
whiteSpace: d,
|
|
427
|
+
children: f
|
|
428
|
+
}), t[16] = c, t[17] = l, t[18] = u, t[19] = d, t[20] = f, t[21] = p) : p = t[21], p;
|
|
427
429
|
}, yt = (e) => {
|
|
428
430
|
let t = Y(28), { columnLabel: n, renderer: r, value: i, wrapRows: a, search: o } = e;
|
|
429
431
|
if (r?.type === "json") {
|
|
@@ -460,9 +462,9 @@ var dt = (e) => $(e) ? Q(e, { style: {
|
|
|
460
462
|
search: o
|
|
461
463
|
}), t[11] = o, t[12] = i, t[13] = e) : e = t[13], e;
|
|
462
464
|
}
|
|
463
|
-
if (r?.type === "date" &&
|
|
465
|
+
if (r?.type === "date" && l(i)) {
|
|
464
466
|
let e = i, n;
|
|
465
|
-
return t[14] !== o || t[15] !== e ? (n = /* @__PURE__ */ X(
|
|
467
|
+
return t[14] !== o || t[15] !== e ? (n = /* @__PURE__ */ X(u, {
|
|
466
468
|
value: e,
|
|
467
469
|
search: o
|
|
468
470
|
}), t[14] = o, t[15] = e, t[16] = n) : n = t[16], n;
|
|
@@ -509,8 +511,8 @@ var dt = (e) => $(e) ? Q(e, { style: {
|
|
|
509
511
|
wrapRows: s,
|
|
510
512
|
search: o
|
|
511
513
|
}), t[2] = n.id, t[3] = i, t[4] = o, t[5] = l, t[6] = s, t[7] = u) : u = t[7], u;
|
|
512
|
-
}, St = (
|
|
513
|
-
let n = Y(9), { column: r } =
|
|
514
|
+
}, St = (t) => {
|
|
515
|
+
let n = Y(9), { column: r } = t, { headerLabel: i, headerIcon: a, columnDescription: o } = r.columnDef.meta, s;
|
|
514
516
|
n[0] === i ? s = n[1] : (s = /* @__PURE__ */ X(J.span, {
|
|
515
517
|
overflow: "hidden",
|
|
516
518
|
textOverflow: "ellipsis",
|
|
@@ -518,7 +520,7 @@ var dt = (e) => $(e) ? Q(e, { style: {
|
|
|
518
520
|
children: i
|
|
519
521
|
}), n[0] = i, n[1] = s);
|
|
520
522
|
let c;
|
|
521
|
-
n[2] !== o || n[3] !== i ? (c = o ? /* @__PURE__ */ X(
|
|
523
|
+
n[2] !== o || n[3] !== i ? (c = o ? /* @__PURE__ */ X(e, {
|
|
522
524
|
content: o,
|
|
523
525
|
children: /* @__PURE__ */ X(H, {
|
|
524
526
|
as: ve,
|
|
@@ -556,13 +558,13 @@ var dt = (e) => $(e) ? Q(e, { style: {
|
|
|
556
558
|
}
|
|
557
559
|
};
|
|
558
560
|
function wt(e, t, n = {}) {
|
|
559
|
-
let { columnIcons: r, columnDescriptions: i, compactHeaders: a, enableSelection: o = !1, selectedRowIds: s, rowActions: c = [], getRowActions: l, columnRenderers: u, wrapRows: d = !1, rowNumbers: f = !0, search:
|
|
561
|
+
let { columnIcons: r, columnDescriptions: i, compactHeaders: a, enableSelection: o = !1, selectedRowIds: s, rowActions: c = [], getRowActions: l, columnRenderers: u, wrapRows: d = !1, rowNumbers: f = !0, search: p } = n, m = w.accessor((e, t) => t + 1, {
|
|
560
562
|
header: "",
|
|
561
563
|
id: "rowIndex",
|
|
562
564
|
enableResizing: !1,
|
|
563
565
|
size: 20,
|
|
564
566
|
cell: bt
|
|
565
|
-
}),
|
|
567
|
+
}), h = w.display({
|
|
566
568
|
id: "rowSelection",
|
|
567
569
|
header: pt,
|
|
568
570
|
cell: mt,
|
|
@@ -570,9 +572,9 @@ function wt(e, t, n = {}) {
|
|
|
570
572
|
enableResizing: !1,
|
|
571
573
|
enableSorting: !1,
|
|
572
574
|
size: 36
|
|
573
|
-
}),
|
|
574
|
-
let n = t || "-", o = e.map((e) => e[n]), s = u?.[n], c = r?.[n], l = c === void 0 ?
|
|
575
|
-
return
|
|
575
|
+
}), g = t.map((t) => {
|
|
576
|
+
let n = t || "-", o = e.map((e) => e[n]), s = u?.[n], c = r?.[n], l = c === void 0 ? v(o) : c, f = i?.[n];
|
|
577
|
+
return w.accessor((e) => e[n], {
|
|
576
578
|
id: n,
|
|
577
579
|
header: St,
|
|
578
580
|
cell: xt,
|
|
@@ -582,12 +584,12 @@ function wt(e, t, n = {}) {
|
|
|
582
584
|
columnDescription: f,
|
|
583
585
|
renderer: s,
|
|
584
586
|
wrapRows: d,
|
|
585
|
-
search:
|
|
587
|
+
search: p,
|
|
586
588
|
getCellStyle: (e) => Ct(e, s)
|
|
587
589
|
},
|
|
588
590
|
enableSorting: !1
|
|
589
591
|
});
|
|
590
|
-
}),
|
|
592
|
+
}), _ = w.display({
|
|
591
593
|
id: "rowActions",
|
|
592
594
|
header: "",
|
|
593
595
|
cell: gt,
|
|
@@ -600,10 +602,10 @@ function wt(e, t, n = {}) {
|
|
|
600
602
|
size: 36
|
|
601
603
|
});
|
|
602
604
|
return [
|
|
603
|
-
...f ? [
|
|
604
|
-
...o ? [
|
|
605
|
-
...
|
|
606
|
-
...c.length > 0 || l ? [
|
|
605
|
+
...f ? [m] : [],
|
|
606
|
+
...o ? [h] : [],
|
|
607
|
+
...g,
|
|
608
|
+
...c.length > 0 || l ? [_] : []
|
|
607
609
|
];
|
|
608
610
|
}
|
|
609
611
|
//#endregion
|
|
@@ -629,69 +631,69 @@ var Tt = (e) => {
|
|
|
629
631
|
paddingBottom: "2xs",
|
|
630
632
|
children: [n, r]
|
|
631
633
|
}), t[4] = n, t[5] = r, t[6] = i) : i = t[6], i;
|
|
632
|
-
}, Et = (
|
|
633
|
-
let
|
|
634
|
-
|
|
634
|
+
}, Et = (e) => {
|
|
635
|
+
let t = Y(14), n;
|
|
636
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = { role: "switch" }, t[0] = n) : n = t[0];
|
|
637
|
+
let r;
|
|
638
|
+
t[1] === e ? r = t[2] : (r = (t) => e.onChange(t.checked === !0), t[1] = e, t[2] = r);
|
|
635
639
|
let i;
|
|
636
|
-
|
|
637
|
-
let a;
|
|
638
|
-
n[3] === t.label ? a = n[4] : (a = /* @__PURE__ */ X(q, {
|
|
640
|
+
t[3] === e.label ? i = t[4] : (i = /* @__PURE__ */ X(q, {
|
|
639
641
|
as: "span",
|
|
640
642
|
textStyle: "label/S/regular",
|
|
641
|
-
children:
|
|
642
|
-
}),
|
|
643
|
-
let
|
|
644
|
-
|
|
643
|
+
children: e.label
|
|
644
|
+
}), t[3] = e.label, t[4] = i);
|
|
645
|
+
let a;
|
|
646
|
+
t[5] === e.hint ? a = t[6] : (a = e.hint ? /* @__PURE__ */ X(q, {
|
|
645
647
|
as: "span",
|
|
646
648
|
textStyle: "label/XS",
|
|
647
649
|
color: "fg.subtle",
|
|
648
|
-
children:
|
|
649
|
-
}) : null,
|
|
650
|
+
children: e.hint
|
|
651
|
+
}) : null, t[5] = e.hint, t[6] = a);
|
|
650
652
|
let s;
|
|
651
|
-
|
|
653
|
+
t[7] !== i || t[8] !== a ? (s = /* @__PURE__ */ Z(V, {
|
|
652
654
|
as: "span",
|
|
653
655
|
gap: "xs",
|
|
654
|
-
children: [
|
|
655
|
-
}),
|
|
656
|
+
children: [i, a]
|
|
657
|
+
}), t[7] = i, t[8] = a, t[9] = s) : s = t[9];
|
|
656
658
|
let c;
|
|
657
|
-
return
|
|
659
|
+
return t[10] !== e.checked || t[11] !== r || t[12] !== s ? (c = /* @__PURE__ */ X(z, {
|
|
658
660
|
paddingX: "xs",
|
|
659
661
|
paddingY: "2xs",
|
|
660
|
-
children: /* @__PURE__ */ X(
|
|
661
|
-
checked:
|
|
662
|
-
inputProps:
|
|
662
|
+
children: /* @__PURE__ */ X(o, {
|
|
663
|
+
checked: e.checked,
|
|
664
|
+
inputProps: n,
|
|
663
665
|
width: "full",
|
|
664
666
|
flexDirection: "row-reverse",
|
|
665
667
|
justifyContent: "space-between",
|
|
666
|
-
onCheckedChange:
|
|
668
|
+
onCheckedChange: r,
|
|
667
669
|
children: s
|
|
668
670
|
})
|
|
669
|
-
}),
|
|
671
|
+
}), t[10] = e.checked, t[11] = r, t[12] = s, t[13] = c) : c = t[13], c;
|
|
670
672
|
}, Dt = (e) => {
|
|
671
|
-
let t = Y(33), { column:
|
|
672
|
-
t[0] ===
|
|
673
|
-
let { attributes:
|
|
674
|
-
t[2] ===
|
|
675
|
-
let
|
|
676
|
-
t[4] !==
|
|
677
|
-
transform:
|
|
678
|
-
transition:
|
|
679
|
-
opacity:
|
|
680
|
-
}, t[4] =
|
|
673
|
+
let t = Y(33), { column: r, checked: i, onColumnVisibilityChange: a } = e, o;
|
|
674
|
+
t[0] === r.id ? o = t[1] : (o = { id: r.id }, t[0] = r.id, t[1] = o);
|
|
675
|
+
let { attributes: c, listeners: l, setNodeRef: u, transform: d, transition: f, isDragging: p } = Ae(o), m;
|
|
676
|
+
t[2] === d ? m = t[3] : (m = Me.Transform.toString(d), t[2] = d, t[3] = m);
|
|
677
|
+
let h = p ? .5 : 1, g;
|
|
678
|
+
t[4] !== m || t[5] !== h || t[6] !== f ? (g = {
|
|
679
|
+
transform: m,
|
|
680
|
+
transition: f,
|
|
681
|
+
opacity: h
|
|
682
|
+
}, t[4] = m, t[5] = h, t[6] = f, t[7] = g) : g = t[7];
|
|
681
683
|
let _;
|
|
682
684
|
t[8] === Symbol.for("react.memo_cache_sentinel") ? (_ = { bg: "bg.hover" }, t[8] = _) : _ = t[8];
|
|
683
685
|
let v;
|
|
684
686
|
t[9] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ X(be, { size: 14 }), t[9] = v) : v = t[9];
|
|
685
687
|
let y;
|
|
686
|
-
t[10] !==
|
|
688
|
+
t[10] !== c || t[11] !== l ? (y = /* @__PURE__ */ X(z, {
|
|
687
689
|
as: "span",
|
|
688
690
|
display: "inline-flex",
|
|
689
691
|
cursor: "grab",
|
|
690
692
|
color: "fg.muted",
|
|
691
|
-
...s,
|
|
692
693
|
...c,
|
|
694
|
+
...l,
|
|
693
695
|
children: v
|
|
694
|
-
}), t[10] =
|
|
696
|
+
}), t[10] = c, t[11] = l, t[12] = y) : y = t[12];
|
|
695
697
|
let b;
|
|
696
698
|
t[13] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ X(H, {
|
|
697
699
|
as: me,
|
|
@@ -699,16 +701,16 @@ var Tt = (e) => {
|
|
|
699
701
|
strokeWidth: "3"
|
|
700
702
|
}), t[13] = b) : b = t[13];
|
|
701
703
|
let x;
|
|
702
|
-
t[14] !==
|
|
704
|
+
t[14] !== r.id || t[15] !== a ? (x = (e) => a(r.id, e.checked === !0), t[14] = r.id, t[15] = a, t[16] = x) : x = t[16];
|
|
703
705
|
let S;
|
|
704
|
-
t[17] ===
|
|
706
|
+
t[17] === r.label ? S = t[18] : (S = /* @__PURE__ */ X(q, {
|
|
705
707
|
as: "span",
|
|
706
708
|
textStyle: "label/S/regular",
|
|
707
709
|
truncate: !0,
|
|
708
|
-
children:
|
|
709
|
-
}), t[17] =
|
|
710
|
+
children: r.label
|
|
711
|
+
}), t[17] = r.label, t[18] = S);
|
|
710
712
|
let C;
|
|
711
|
-
t[19] !== i || t[20] !== x || t[21] !== S ? (C = /* @__PURE__ */ X(
|
|
713
|
+
t[19] !== i || t[20] !== x || t[21] !== S ? (C = /* @__PURE__ */ X(n, {
|
|
712
714
|
checked: i,
|
|
713
715
|
flex: "1",
|
|
714
716
|
minW: "0",
|
|
@@ -718,7 +720,7 @@ var Tt = (e) => {
|
|
|
718
720
|
children: S
|
|
719
721
|
}), t[19] = i, t[20] = x, t[21] = S, t[22] = C) : C = t[22];
|
|
720
722
|
let w;
|
|
721
|
-
t[23] ===
|
|
723
|
+
t[23] === r ? w = t[24] : (w = s(r), t[23] = r, t[24] = w);
|
|
722
724
|
let T;
|
|
723
725
|
t[25] === w ? T = t[26] : (T = /* @__PURE__ */ X(H, {
|
|
724
726
|
as: w,
|
|
@@ -727,8 +729,8 @@ var Tt = (e) => {
|
|
|
727
729
|
flexShrink: 0
|
|
728
730
|
}), t[25] = w, t[26] = T);
|
|
729
731
|
let E;
|
|
730
|
-
return t[27] !==
|
|
731
|
-
ref:
|
|
732
|
+
return t[27] !== u || t[28] !== C || t[29] !== T || t[30] !== g || t[31] !== y ? (E = /* @__PURE__ */ Z(V, {
|
|
733
|
+
ref: u,
|
|
732
734
|
style: g,
|
|
733
735
|
gap: "2xs",
|
|
734
736
|
minW: "0",
|
|
@@ -742,49 +744,49 @@ var Tt = (e) => {
|
|
|
742
744
|
C,
|
|
743
745
|
T
|
|
744
746
|
]
|
|
745
|
-
}), t[27] =
|
|
746
|
-
}, Ot = (
|
|
747
|
-
let
|
|
748
|
-
|
|
747
|
+
}), t[27] = u, t[28] = C, t[29] = T, t[30] = g, t[31] = y, t[32] = E) : E = t[32], E;
|
|
748
|
+
}, Ot = (n) => {
|
|
749
|
+
let i = Y(75), { columns: a, settings: o, statsAvailable: s, onSettingsChange: c, onColumnVisibilityChange: l, onColumnReorder: u } = n, d = le(null), f = le(null), [p, m] = ue(!1), [h, g] = ue(""), _;
|
|
750
|
+
i[0] === Symbol.for("react.memo_cache_sentinel") ? (_ = { activationConstraint: { distance: 5 } }, i[0] = _) : _ = i[0];
|
|
749
751
|
let v = Oe(De(Te, _)), y;
|
|
750
|
-
if (
|
|
752
|
+
if (i[1] !== a || i[2] !== h) {
|
|
751
753
|
let e = h.trim().toLowerCase();
|
|
752
|
-
y = e ?
|
|
753
|
-
} else y =
|
|
754
|
+
y = e ? a.filter((t) => t.label.toLowerCase().includes(e)) : a, i[1] = a, i[2] = h, i[3] = y;
|
|
755
|
+
} else y = i[3];
|
|
754
756
|
let b = y, x;
|
|
755
|
-
if (
|
|
757
|
+
if (i[4] !== a || i[5] !== o.hiddenColumns) {
|
|
756
758
|
let e;
|
|
757
|
-
|
|
758
|
-
} else x =
|
|
759
|
+
i[7] === o.hiddenColumns ? e = i[8] : (e = (e) => !o.hiddenColumns.includes(e.id), i[7] = o.hiddenColumns, i[8] = e), x = a.filter(e), i[4] = a, i[5] = o.hiddenColumns, i[6] = x;
|
|
760
|
+
} else x = i[6];
|
|
759
761
|
let S = x.length, C;
|
|
760
|
-
|
|
762
|
+
i[9] === Symbol.for("react.memo_cache_sentinel") ? (C = {
|
|
761
763
|
value: "none",
|
|
762
764
|
label: "None"
|
|
763
|
-
},
|
|
765
|
+
}, i[9] = C) : C = i[9];
|
|
764
766
|
let w;
|
|
765
|
-
|
|
767
|
+
i[10] === a ? w = i[11] : (w = [C, ...a.filter(kt).map(At)], i[10] = a, i[11] = w);
|
|
766
768
|
let T = w, E;
|
|
767
|
-
|
|
769
|
+
i[12] === u ? E = i[13] : (E = (e) => {
|
|
768
770
|
let { active: t, over: n } = e;
|
|
769
771
|
n && t.id !== n.id && u(String(t.id), String(n.id));
|
|
770
|
-
},
|
|
772
|
+
}, i[12] = u, i[13] = E);
|
|
771
773
|
let D = E, O, k;
|
|
772
|
-
|
|
774
|
+
i[14] === p ? (O = i[15], k = i[16]) : (O = () => {
|
|
773
775
|
if (!p) return;
|
|
774
776
|
let e = (e) => {
|
|
775
777
|
let t = e.target;
|
|
776
778
|
t instanceof Node && (f.current?.contains(t) || d.current?.contains(t) || m(!1));
|
|
777
779
|
};
|
|
778
780
|
return document.addEventListener("pointerdown", e), () => document.removeEventListener("pointerdown", e);
|
|
779
|
-
}, k = [p],
|
|
781
|
+
}, k = [p], i[14] = p, i[15] = O, i[16] = k), ce(O, k);
|
|
780
782
|
let A, j;
|
|
781
|
-
|
|
783
|
+
i[17] === Symbol.for("react.memo_cache_sentinel") ? (A = {
|
|
782
784
|
placement: "bottom-end",
|
|
783
785
|
offset: { mainAxis: 8 },
|
|
784
786
|
getAnchorElement: () => d.current
|
|
785
|
-
}, j = (e) => m(e.open),
|
|
787
|
+
}, j = (e) => m(e.open), i[17] = A, i[18] = j) : (A = i[17], j = i[18]);
|
|
786
788
|
let M;
|
|
787
|
-
|
|
789
|
+
i[19] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ X(e, {
|
|
788
790
|
content: "Display",
|
|
789
791
|
children: /* @__PURE__ */ X(W.Trigger, {
|
|
790
792
|
asChild: !0,
|
|
@@ -796,83 +798,83 @@ var Tt = (e) => {
|
|
|
796
798
|
children: /* @__PURE__ */ X(H, { as: Ce })
|
|
797
799
|
})
|
|
798
800
|
})
|
|
799
|
-
}),
|
|
801
|
+
}), i[19] = M) : M = i[19];
|
|
800
802
|
let N;
|
|
801
|
-
|
|
803
|
+
i[20] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ X(Tt, { children: "TABLE DISPLAY" }), i[20] = N) : N = i[20];
|
|
802
804
|
let P;
|
|
803
|
-
|
|
805
|
+
i[21] !== T || i[22] !== c || i[23] !== o.grouping ? (P = T.length > 1 ? /* @__PURE__ */ X(F, {
|
|
804
806
|
label: "Grouping",
|
|
805
807
|
value: o.grouping,
|
|
806
808
|
options: T,
|
|
807
809
|
onSelect: (e) => c({ grouping: e })
|
|
808
|
-
}) : null,
|
|
809
|
-
let I =
|
|
810
|
-
|
|
810
|
+
}) : null, i[21] = T, i[22] = c, i[23] = o.grouping, i[24] = P) : P = i[24];
|
|
811
|
+
let I = n.sortControl, L;
|
|
812
|
+
i[25] === c ? L = i[26] : (L = (e) => c({ rowNumbers: e }), i[25] = c, i[26] = L);
|
|
811
813
|
let R;
|
|
812
|
-
|
|
814
|
+
i[27] !== o.rowNumbers || i[28] !== L ? (R = /* @__PURE__ */ X(Et, {
|
|
813
815
|
label: "Row numbers",
|
|
814
816
|
checked: o.rowNumbers,
|
|
815
817
|
onChange: L
|
|
816
|
-
}),
|
|
818
|
+
}), i[27] = o.rowNumbers, i[28] = L, i[29] = R) : R = i[29];
|
|
817
819
|
let B;
|
|
818
|
-
|
|
820
|
+
i[30] === c ? B = i[31] : (B = (e) => c({ wrapRows: e }), i[30] = c, i[31] = B);
|
|
819
821
|
let ee;
|
|
820
|
-
|
|
822
|
+
i[32] !== o.wrapRows || i[33] !== B ? (ee = /* @__PURE__ */ X(Et, {
|
|
821
823
|
label: "Wrap rows",
|
|
822
824
|
checked: o.wrapRows,
|
|
823
825
|
onChange: B
|
|
824
|
-
}),
|
|
826
|
+
}), i[32] = o.wrapRows, i[33] = B, i[34] = ee) : ee = i[34];
|
|
825
827
|
let V;
|
|
826
|
-
|
|
828
|
+
i[35] !== c || i[36] !== o.showStats || i[37] !== s ? (V = s ? /* @__PURE__ */ X(Et, {
|
|
827
829
|
label: "Statistics",
|
|
828
830
|
hint: "from column stats",
|
|
829
831
|
checked: o.showStats,
|
|
830
832
|
onChange: (e) => c({ showStats: e })
|
|
831
|
-
}) : null,
|
|
833
|
+
}) : null, i[35] = c, i[36] = o.showStats, i[37] = s, i[38] = V) : V = i[38];
|
|
832
834
|
let ne;
|
|
833
|
-
|
|
835
|
+
i[39] === Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ X(z, {
|
|
834
836
|
borderTopWidth: "1px",
|
|
835
837
|
borderColor: "border.subtle",
|
|
836
838
|
marginY: "2xs"
|
|
837
|
-
}),
|
|
838
|
-
let U = `${S} of ${
|
|
839
|
-
|
|
839
|
+
}), i[39] = ne) : ne = i[39];
|
|
840
|
+
let U = `${S} of ${a.length} shown`, G;
|
|
841
|
+
i[40] === U ? G = i[41] : (G = /* @__PURE__ */ X(Tt, {
|
|
840
842
|
end: U,
|
|
841
843
|
children: "COLUMNS"
|
|
842
|
-
}),
|
|
844
|
+
}), i[40] = U, i[41] = G);
|
|
843
845
|
let K;
|
|
844
|
-
|
|
846
|
+
i[42] === h ? K = i[43] : (K = /* @__PURE__ */ X(r, {
|
|
845
847
|
value: h,
|
|
846
848
|
placeholder: "Search columns",
|
|
847
849
|
onValueChange: g
|
|
848
|
-
}),
|
|
850
|
+
}), i[42] = h, i[43] = K);
|
|
849
851
|
let q;
|
|
850
|
-
|
|
852
|
+
i[44] === Symbol.for("react.memo_cache_sentinel") ? (q = { overscrollBehavior: "contain" }, i[44] = q) : q = i[44];
|
|
851
853
|
let J;
|
|
852
|
-
|
|
854
|
+
i[45] === a ? J = i[46] : (J = a.map(jt), i[45] = a, i[46] = J);
|
|
853
855
|
let ae;
|
|
854
|
-
if (
|
|
856
|
+
if (i[47] !== b || i[48] !== l || i[49] !== o.hiddenColumns) {
|
|
855
857
|
let e;
|
|
856
|
-
|
|
858
|
+
i[51] !== l || i[52] !== o.hiddenColumns ? (e = (e) => /* @__PURE__ */ X(Dt, {
|
|
857
859
|
column: e,
|
|
858
860
|
checked: !o.hiddenColumns.includes(e.id),
|
|
859
861
|
onColumnVisibilityChange: l
|
|
860
|
-
}, e.id),
|
|
861
|
-
} else ae =
|
|
862
|
+
}, e.id), i[51] = l, i[52] = o.hiddenColumns, i[53] = e) : e = i[53], ae = b.map(e), i[47] = b, i[48] = l, i[49] = o.hiddenColumns, i[50] = ae;
|
|
863
|
+
} else ae = i[50];
|
|
862
864
|
let oe;
|
|
863
|
-
|
|
865
|
+
i[54] === ae ? oe = i[55] : (oe = /* @__PURE__ */ X(ie, {
|
|
864
866
|
gap: "1px",
|
|
865
867
|
padding: "2xs",
|
|
866
868
|
children: ae
|
|
867
|
-
}),
|
|
869
|
+
}), i[54] = ae, i[55] = oe);
|
|
868
870
|
let Q;
|
|
869
|
-
|
|
871
|
+
i[56] !== J || i[57] !== oe ? (Q = /* @__PURE__ */ X(ke, {
|
|
870
872
|
items: J,
|
|
871
873
|
strategy: je,
|
|
872
874
|
children: oe
|
|
873
|
-
}),
|
|
875
|
+
}), i[56] = J, i[57] = oe, i[58] = Q) : Q = i[58];
|
|
874
876
|
let $;
|
|
875
|
-
|
|
877
|
+
i[59] !== D || i[60] !== v || i[61] !== Q ? ($ = /* @__PURE__ */ X(t, {
|
|
876
878
|
maxH: "280px",
|
|
877
879
|
viewportProps: q,
|
|
878
880
|
children: /* @__PURE__ */ X(we, {
|
|
@@ -881,9 +883,9 @@ var Tt = (e) => {
|
|
|
881
883
|
onDragEnd: D,
|
|
882
884
|
children: Q
|
|
883
885
|
})
|
|
884
|
-
}),
|
|
886
|
+
}), i[59] = D, i[60] = v, i[61] = Q, i[62] = $) : $ = i[62];
|
|
885
887
|
let se;
|
|
886
|
-
|
|
888
|
+
i[63] !== n.sortControl || i[64] !== P || i[65] !== R || i[66] !== ee || i[67] !== V || i[68] !== G || i[69] !== K || i[70] !== $ ? (se = /* @__PURE__ */ X(re, { children: /* @__PURE__ */ X(W.Positioner, { children: /* @__PURE__ */ Z(W.Content, {
|
|
887
889
|
ref: f,
|
|
888
890
|
"data-testid": "data-table-display-menu",
|
|
889
891
|
width: "min(300px, calc(100vw - 32px))",
|
|
@@ -901,15 +903,15 @@ var Tt = (e) => {
|
|
|
901
903
|
K,
|
|
902
904
|
$
|
|
903
905
|
]
|
|
904
|
-
}) }) }),
|
|
906
|
+
}) }) }), i[63] = n.sortControl, i[64] = P, i[65] = R, i[66] = ee, i[67] = V, i[68] = G, i[69] = K, i[70] = $, i[71] = se) : se = i[71];
|
|
905
907
|
let de;
|
|
906
|
-
return
|
|
908
|
+
return i[72] !== p || i[73] !== se ? (de = /* @__PURE__ */ Z(W.Root, {
|
|
907
909
|
open: p,
|
|
908
910
|
closeOnInteractOutside: !1,
|
|
909
911
|
positioning: A,
|
|
910
912
|
onOpenChange: j,
|
|
911
913
|
children: [M, se]
|
|
912
|
-
}),
|
|
914
|
+
}), i[72] = p, i[73] = se, i[74] = de) : de = i[74], de;
|
|
913
915
|
};
|
|
914
916
|
function kt(e) {
|
|
915
917
|
return e.groupable;
|
|
@@ -985,28 +987,28 @@ var Mt = (e) => {
|
|
|
985
987
|
boxSize: "16px"
|
|
986
988
|
}), t[0] = e.icon, t[1] = n);
|
|
987
989
|
let r;
|
|
988
|
-
t[2] !== e.label || t[3] !== e.onActivate || t[4] !== n ? (r = /* @__PURE__ */ X(
|
|
990
|
+
t[2] !== e.label || t[3] !== e.onActivate || t[4] !== n ? (r = /* @__PURE__ */ X(i, {
|
|
989
991
|
asChild: !0,
|
|
990
992
|
variant: "full-width",
|
|
991
993
|
label: e.label,
|
|
992
994
|
icon: n,
|
|
993
995
|
onActivate: e.onActivate
|
|
994
996
|
}), t[2] = e.label, t[3] = e.onActivate, t[4] = n, t[5] = r) : r = t[5];
|
|
995
|
-
let
|
|
996
|
-
return t[6] !== e.value || t[7] !== r ? (
|
|
997
|
+
let a;
|
|
998
|
+
return t[6] !== e.value || t[7] !== r ? (a = /* @__PURE__ */ X(U.Item, {
|
|
997
999
|
value: e.value,
|
|
998
1000
|
asChild: !0,
|
|
999
1001
|
children: r
|
|
1000
|
-
}), t[6] = e.value, t[7] = r, t[8] =
|
|
1001
|
-
}, It = (
|
|
1002
|
-
let n = Y(76), { header: r, headerGroup: i, fullWidth: a, hasDescription: o, fieldMenu: s } =
|
|
1002
|
+
}), t[6] = e.value, t[7] = r, t[8] = a) : a = t[8], a;
|
|
1003
|
+
}, It = (t) => {
|
|
1004
|
+
let n = Y(76), { header: r, headerGroup: i, fullWidth: a, hasDescription: o, fieldMenu: s } = t, c = r.column.id, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, A, j, M, N, P;
|
|
1003
1005
|
if (n[0] !== c || n[1] !== s || n[2] !== a || n[3] !== o || n[4] !== r || n[5] !== i) {
|
|
1004
|
-
let
|
|
1006
|
+
let t = s?.sortFor(c), F = !!s && !Nt.has(c), I;
|
|
1005
1007
|
n[32] !== c || n[33] !== r ? (I = c === "rowSelection" ? "Select all" : Ne(r.column.columnDef.header, r.getContext()), n[32] = c, n[33] = r, n[34] = I) : I = n[34];
|
|
1006
1008
|
let L = I;
|
|
1007
1009
|
d = K.ColumnHeader, m = c, h = "none", g = "1px solid", n[35] === Symbol.for("react.memo_cache_sentinel") ? (_ = { borderRight: "none" }, n[35] = _) : _ = n[35], v = "border.subtle", y = "xs", b = "xs", x = r.id, S = "hidden", C = "relative", T = "middle", E = "nowrap";
|
|
1008
1010
|
let R = a && i.headers.indexOf(r) === i.headers.length - 1 ? void 0 : `calc(var(--header-${r.id}-size) * 1px)`;
|
|
1009
|
-
n[36] === R ? D = n[37] : (D = { width: R }, n[36] = R, n[37] = D), u =
|
|
1011
|
+
n[36] === R ? D = n[37] : (D = { width: R }, n[36] = R, n[37] = D), u = e, N = L, P = o, l = ee, f = "group", p = "center", w = "space-between", O = "1", k = "1", A = "0";
|
|
1010
1012
|
let z;
|
|
1011
1013
|
n[38] === r ? z = n[39] : (z = Ne(r.column.columnDef.header, r.getContext()), n[38] = r, n[39] = z), n[40] === z ? j = n[41] : (j = /* @__PURE__ */ X(q, {
|
|
1012
1014
|
as: "div",
|
|
@@ -1021,11 +1023,11 @@ var Mt = (e) => {
|
|
|
1021
1023
|
size: "2xs",
|
|
1022
1024
|
minW: "auto",
|
|
1023
1025
|
paddingX: "2xs",
|
|
1024
|
-
"aria-label":
|
|
1026
|
+
"aria-label": t ? `Sorted ${t}` : "Column options",
|
|
1025
1027
|
variant: "ghost",
|
|
1026
|
-
color:
|
|
1028
|
+
color: t ? "fg" : "fg.subtle",
|
|
1027
1029
|
children: /* @__PURE__ */ X(H, {
|
|
1028
|
-
as: Pt(
|
|
1030
|
+
as: Pt(t),
|
|
1029
1031
|
boxSize: "14px"
|
|
1030
1032
|
})
|
|
1031
1033
|
})
|
|
@@ -1105,7 +1107,7 @@ var Mt = (e) => {
|
|
|
1105
1107
|
children: L
|
|
1106
1108
|
}, x), n[60] = d, n[61] = m, n[62] = h, n[63] = g, n[64] = _, n[65] = v, n[66] = y, n[67] = b, n[68] = x, n[69] = S, n[70] = C, n[71] = T, n[72] = E, n[73] = D, n[74] = L, n[75] = R) : R = n[75], R;
|
|
1107
1109
|
}, Lt = (e) => {
|
|
1108
|
-
let t = Y(26), { cell: n, row: r, wrapRows:
|
|
1110
|
+
let t = Y(26), { cell: n, row: r, wrapRows: i, getCellContextMenuActions: o } = e, s = n.column.columnDef.meta, c;
|
|
1109
1111
|
t[0] !== n || t[1] !== s ? (c = s?.getCellStyle?.(n.getValue()), t[0] = n, t[1] = s, t[2] = c) : c = t[2];
|
|
1110
1112
|
let l = c, u;
|
|
1111
1113
|
if (t[3] !== n || t[4] !== o || t[5] !== r.id || t[6] !== r.original) {
|
|
@@ -1122,9 +1124,9 @@ var Mt = (e) => {
|
|
|
1122
1124
|
onClick: () => t.onSelect(e)
|
|
1123
1125
|
})) ?? [], t[3] = n, t[4] = o, t[5] = r.id, t[6] = r.original, t[7] = u;
|
|
1124
1126
|
} else u = t[7];
|
|
1125
|
-
let d = u, f = n.column.id, p =
|
|
1127
|
+
let d = u, f = n.column.id, p = i ? "anywhere" : void 0, m = i ? void 0 : "10", h = i ? void 0 : "10", g;
|
|
1126
1128
|
t[8] === Symbol.for("react.memo_cache_sentinel") ? (g = { borderRight: "none" }, t[8] = g) : g = t[8];
|
|
1127
|
-
let _ = n.id, v =
|
|
1129
|
+
let _ = n.id, v = i ? void 0 : "ellipsis", y = i ? "top" : "middle", b = i ? "normal" : "nowrap", x;
|
|
1128
1130
|
t[9] === n ? x = t[10] : (x = Ne(n.column.columnDef.cell, n.getContext()), t[9] = n, t[10] = x);
|
|
1129
1131
|
let S;
|
|
1130
1132
|
t[11] !== n.column.id || t[12] !== n.id || t[13] !== l || t[14] !== b || t[15] !== x || t[16] !== p || t[17] !== m || t[18] !== h || t[19] !== v || t[20] !== y ? (S = /* @__PURE__ */ X(K.Cell, {
|
|
@@ -1150,7 +1152,7 @@ var Mt = (e) => {
|
|
|
1150
1152
|
let C = S;
|
|
1151
1153
|
if (d.length === 0) return C;
|
|
1152
1154
|
let w;
|
|
1153
|
-
return t[22] !== n.id || t[23] !== C || t[24] !== d ? (w = /* @__PURE__ */ X(
|
|
1155
|
+
return t[22] !== n.id || t[23] !== C || t[24] !== d ? (w = /* @__PURE__ */ X(a, {
|
|
1154
1156
|
actions: d,
|
|
1155
1157
|
children: C
|
|
1156
1158
|
}, n.id), t[22] = n.id, t[23] = C, t[24] = d, t[25] = w) : w = t[25], w;
|
|
@@ -1185,47 +1187,47 @@ var Mt = (e) => {
|
|
|
1185
1187
|
background: x,
|
|
1186
1188
|
children: S
|
|
1187
1189
|
}, u), t[10] = n.id, t[11] = d, t[12] = b, t[13] = x, t[14] = S, t[15] = f, t[16] = p, t[17] = m, t[18] = h, t[19] = g, t[20] = _, t[21] = v, t[22] = C) : C = t[22], C;
|
|
1188
|
-
}, zt = se(() => import("./data-table-stats-row-
|
|
1190
|
+
}, zt = se(() => import("./data-table-stats-row-64magT2g.js").then((e) => ({ default: e.DataTableStatsRow }))), Bt = (e) => {
|
|
1189
1191
|
let t = {};
|
|
1190
1192
|
for (let n of e.getFlatHeaders()) t[`--header-${n.id}-size`] = n.getSize(), t[`--col-${n.column.id}-size`] = n.column.getSize();
|
|
1191
1193
|
return t;
|
|
1192
1194
|
}, Vt = (e) => {
|
|
1193
|
-
let
|
|
1194
|
-
if (
|
|
1195
|
+
let n = Y(44), { table: r, entries: i, collapsed: a, onToggleGroup: o, settings: s, data: c, fieldMenu: l, selectionActions: u } = e, { noBorder: d, fullWidth: f, onRowClick: p, isRowInteractive: m, activeRowId: h, columnDescriptions: _, columnStats: v } = e, { enableRowActivation: b, getCellContextMenuActions: x } = e, S = b !== void 0 && b, w;
|
|
1196
|
+
if (n[0] !== h || n[1] !== a || n[2] !== _ || n[3] !== v || n[4] !== c || n[5] !== S || n[6] !== i || n[7] !== l || n[8] !== f || n[9] !== x || n[10] !== m || n[11] !== d || n[12] !== p || n[13] !== o || n[14] !== u || n[15] !== s || n[16] !== r) {
|
|
1195
1197
|
let e = new Map(r.getRowModel().rows.map(Ht)), b;
|
|
1196
|
-
|
|
1197
|
-
let T = b, E = r.getSelectedRowModel().rows, D = `data-table${
|
|
1198
|
-
|
|
1198
|
+
n[18] === r ? b = n[19] : (b = Bt(r), n[18] = r, n[19] = b);
|
|
1199
|
+
let T = b, E = r.getSelectedRowModel().rows, D = `data-table${f ? " full-width" : ""}`, O;
|
|
1200
|
+
n[20] !== f || n[21] !== r ? (O = f ? "100%" : r.getTotalSize(), n[20] = f, n[21] = r, n[22] = O) : O = n[22];
|
|
1199
1201
|
let k;
|
|
1200
|
-
|
|
1202
|
+
n[23] !== T || n[24] !== O ? (k = {
|
|
1201
1203
|
...T,
|
|
1202
1204
|
width: O
|
|
1203
|
-
},
|
|
1205
|
+
}, n[23] = T, n[24] = O, n[25] = k) : k = n[25];
|
|
1204
1206
|
let A;
|
|
1205
|
-
|
|
1207
|
+
n[26] !== _ || n[27] !== v || n[28] !== c || n[29] !== l || n[30] !== f || n[31] !== d || n[32] !== s || n[33] !== r ? (A = r.getHeaderGroups().map((e) => /* @__PURE__ */ Z(ae, { children: [/* @__PURE__ */ X(K.Row, {
|
|
1206
1208
|
className: "data-table-column-header-row",
|
|
1207
|
-
borderRight:
|
|
1209
|
+
borderRight: d ? "none" : "1px solid",
|
|
1208
1210
|
borderColor: "border.subtle",
|
|
1209
1211
|
children: e.headers.map((t) => /* @__PURE__ */ X(It, {
|
|
1210
1212
|
header: t,
|
|
1211
1213
|
headerGroup: e,
|
|
1212
1214
|
table: r,
|
|
1213
|
-
fullWidth:
|
|
1214
|
-
hasDescription: !!
|
|
1215
|
-
fieldMenu:
|
|
1215
|
+
fullWidth: f,
|
|
1216
|
+
hasDescription: !!_?.[t.column.id],
|
|
1217
|
+
fieldMenu: l
|
|
1216
1218
|
}, t.id))
|
|
1217
|
-
}),
|
|
1219
|
+
}), v && s.showStats ? /* @__PURE__ */ X(oe, {
|
|
1218
1220
|
fallback: null,
|
|
1219
1221
|
children: /* @__PURE__ */ X(zt, {
|
|
1220
1222
|
headerGroup: e,
|
|
1221
1223
|
rows: c,
|
|
1222
|
-
columnStats:
|
|
1223
|
-
noBorder:
|
|
1224
|
-
fullWidth:
|
|
1224
|
+
columnStats: v,
|
|
1225
|
+
noBorder: d,
|
|
1226
|
+
fullWidth: f
|
|
1225
1227
|
})
|
|
1226
|
-
}) : null] }, e.id)),
|
|
1228
|
+
}) : null] }, e.id)), n[26] = _, n[27] = v, n[28] = c, n[29] = l, n[30] = f, n[31] = d, n[32] = s, n[33] = r, n[34] = A) : A = n[34];
|
|
1227
1229
|
let j;
|
|
1228
|
-
|
|
1230
|
+
n[35] === A ? j = n[36] : (j = /* @__PURE__ */ X(K.Header, { children: A }), n[35] = A, n[36] = j);
|
|
1229
1231
|
let M = i.map((t) => {
|
|
1230
1232
|
if (t.kind === "group") {
|
|
1231
1233
|
let { key: e } = t.group;
|
|
@@ -1240,22 +1242,22 @@ var Mt = (e) => {
|
|
|
1240
1242
|
let n = e.get(t.row.id);
|
|
1241
1243
|
return n ? /* @__PURE__ */ X(Rt, {
|
|
1242
1244
|
row: n,
|
|
1243
|
-
noBorder:
|
|
1244
|
-
rowIsInteractive:
|
|
1245
|
-
rowIsActive:
|
|
1246
|
-
enableRowActivation:
|
|
1247
|
-
activeRowId:
|
|
1245
|
+
noBorder: d,
|
|
1246
|
+
rowIsInteractive: p ? m?.(n.original) ?? !0 : !1,
|
|
1247
|
+
rowIsActive: g({
|
|
1248
|
+
enableRowActivation: S,
|
|
1249
|
+
activeRowId: h,
|
|
1248
1250
|
rowId: n.id
|
|
1249
1251
|
}),
|
|
1250
1252
|
rowIsSelected: n.getIsSelected(),
|
|
1251
1253
|
wrapRows: s.wrapRows,
|
|
1252
|
-
onRowClick:
|
|
1254
|
+
onRowClick: p,
|
|
1253
1255
|
getCellContextMenuActions: x
|
|
1254
1256
|
}, n.id) : null;
|
|
1255
1257
|
}), N;
|
|
1256
|
-
|
|
1258
|
+
n[37] === M ? N = n[38] : (N = /* @__PURE__ */ X(K.Body, { children: M }), n[37] = M, n[38] = N);
|
|
1257
1259
|
let P;
|
|
1258
|
-
|
|
1260
|
+
n[39] !== D || n[40] !== k || n[41] !== j || n[42] !== N ? (P = /* @__PURE__ */ X(t, {
|
|
1259
1261
|
height: "100%",
|
|
1260
1262
|
maxWidth: "unset",
|
|
1261
1263
|
showHorizontalScrollbar: !0,
|
|
@@ -1264,20 +1266,20 @@ var Mt = (e) => {
|
|
|
1264
1266
|
style: k,
|
|
1265
1267
|
children: [j, N]
|
|
1266
1268
|
})
|
|
1267
|
-
}),
|
|
1269
|
+
}), n[39] = D, n[40] = k, n[41] = j, n[42] = N, n[43] = P) : P = n[43], w = /* @__PURE__ */ Z(z, {
|
|
1268
1270
|
position: "relative",
|
|
1269
1271
|
flex: "1",
|
|
1270
1272
|
minHeight: "0",
|
|
1271
|
-
children: [P,
|
|
1273
|
+
children: [P, u && E.length > 0 ? /* @__PURE__ */ X(y, {
|
|
1272
1274
|
selectedCount: E.length,
|
|
1273
1275
|
totalCount: c.length,
|
|
1274
1276
|
onClearSelection: () => r.toggleAllRowsSelected(!1),
|
|
1275
1277
|
onSelectAll: () => r.toggleAllRowsSelected(!0),
|
|
1276
|
-
actions:
|
|
1277
|
-
selectedRows:
|
|
1278
|
+
actions: u,
|
|
1279
|
+
selectedRows: C(E)
|
|
1278
1280
|
}) : null]
|
|
1279
|
-
}),
|
|
1280
|
-
} else w =
|
|
1281
|
+
}), n[0] = h, n[1] = a, n[2] = _, n[3] = v, n[4] = c, n[5] = S, n[6] = i, n[7] = l, n[8] = f, n[9] = x, n[10] = m, n[11] = d, n[12] = p, n[13] = o, n[14] = u, n[15] = s, n[16] = r, n[17] = w;
|
|
1282
|
+
} else w = n[17];
|
|
1281
1283
|
return w;
|
|
1282
1284
|
};
|
|
1283
1285
|
function Ht(e) {
|
|
@@ -1316,35 +1318,35 @@ var Ut = (e, t, n, r) => {
|
|
|
1316
1318
|
page: i
|
|
1317
1319
|
};
|
|
1318
1320
|
}, Gt = (e) => {
|
|
1319
|
-
let { noBorder: t, fullWidth: n, onRowClick: r, isRowInteractive: i, activeRowId: a, columnIcons: o, columnDescriptions:
|
|
1321
|
+
let { noBorder: t, fullWidth: n, onRowClick: r, isRowInteractive: i, activeRowId: a, columnIcons: o, columnDescriptions: s, compactHeaders: l, columnStats: u, columnRenderers: f, initialPageSize: m, pageSizeOptions: g = [
|
|
1320
1322
|
10,
|
|
1321
1323
|
20,
|
|
1322
1324
|
30,
|
|
1323
1325
|
50,
|
|
1324
1326
|
100
|
|
1325
|
-
], rowActions:
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1327
|
+
], rowActions: v = [], getRowActions: y, enableRowActivation: x = !1, getCellContextMenuActions: C } = e, w = S(e), { settings: T, setSettings: D, sorts: k, setSorts: A, filter: j, startRule: M } = w, N = JSON.stringify([
|
|
1328
|
+
j,
|
|
1329
|
+
k,
|
|
1330
|
+
T.grouping,
|
|
1331
|
+
w.deferredSearch
|
|
1330
1332
|
]), [P, F] = ue({
|
|
1331
1333
|
key: N,
|
|
1332
1334
|
index: 0
|
|
1333
1335
|
}), R = P.key === N ? P.index : 0, z = (e) => F({
|
|
1334
1336
|
key: N,
|
|
1335
1337
|
index: e
|
|
1336
|
-
}), [B, V] = ue(() =>
|
|
1338
|
+
}), [B, V] = ue(() => h({ initialPageSize: m })), [H, te] = ue(() => /* @__PURE__ */ new Set()), [ne, U] = ue({}), W = O(e), re = b(e), { groups: G } = w, ie = G ? G.flatMap((e) => e.rows) : w.shownRows, K = G ? Ut(G, H, R, B) : Wt(ie, R, B), q = ie.map((e) => e.sourceRow), J = new Map(ie.map((e) => [e.sourceRow, e.id])), Y = wt(q, w.visibleColumnKeys, {
|
|
1337
1339
|
columnIcons: o,
|
|
1338
|
-
columnDescriptions:
|
|
1340
|
+
columnDescriptions: s,
|
|
1339
1341
|
compactHeaders: l,
|
|
1340
1342
|
enableSelection: W,
|
|
1341
|
-
rowActions:
|
|
1342
|
-
getRowActions:
|
|
1343
|
+
rowActions: v,
|
|
1344
|
+
getRowActions: y,
|
|
1343
1345
|
selectedRowIds: ne,
|
|
1344
1346
|
columnRenderers: f,
|
|
1345
|
-
wrapRows:
|
|
1346
|
-
rowNumbers:
|
|
1347
|
-
search:
|
|
1347
|
+
wrapRows: T.wrapRows,
|
|
1348
|
+
rowNumbers: T.rowNumbers,
|
|
1349
|
+
search: w.deferredSearch
|
|
1348
1350
|
}), ae = Fe({
|
|
1349
1351
|
data: q,
|
|
1350
1352
|
columns: Y,
|
|
@@ -1364,46 +1366,46 @@ var Ut = (e, t, n, r) => {
|
|
|
1364
1366
|
autoResetAll: !1
|
|
1365
1367
|
}), oe = {
|
|
1366
1368
|
sortFor: (e) => {
|
|
1367
|
-
let t =
|
|
1369
|
+
let t = k[0];
|
|
1368
1370
|
return t?.attributeId === e ? t.direction : void 0;
|
|
1369
1371
|
},
|
|
1370
|
-
onSort: (e, t) =>
|
|
1372
|
+
onSort: (e, t) => A([{
|
|
1371
1373
|
attributeId: e,
|
|
1372
1374
|
direction: t
|
|
1373
1375
|
}]),
|
|
1374
1376
|
onFilterBy: (e) => {
|
|
1375
|
-
let t =
|
|
1377
|
+
let t = c(w.attributes, e);
|
|
1376
1378
|
t && M(t);
|
|
1377
1379
|
},
|
|
1378
|
-
onHide: (e) =>
|
|
1379
|
-
}, Q =
|
|
1380
|
+
onHide: (e) => D({ hiddenColumns: _(T.hiddenColumns, e, !1) })
|
|
1381
|
+
}, Q = w.rows.length > 0 && w.shownRows.length === 0 && !!w.deferredSearch.trim();
|
|
1380
1382
|
return /* @__PURE__ */ Z(ee, {
|
|
1381
1383
|
direction: "column",
|
|
1382
1384
|
height: "100%",
|
|
1383
1385
|
width: "100%",
|
|
1384
1386
|
children: [
|
|
1385
|
-
/* @__PURE__ */ X(
|
|
1387
|
+
/* @__PURE__ */ X(d, {
|
|
1386
1388
|
itemLabel: e.itemLabel,
|
|
1387
|
-
view:
|
|
1389
|
+
view: w,
|
|
1388
1390
|
viewsSource: e.viewsSource,
|
|
1389
1391
|
actions: e.toolbarActions,
|
|
1390
1392
|
displayControl: /* @__PURE__ */ X(Ot, {
|
|
1391
|
-
columns:
|
|
1393
|
+
columns: w.attributes,
|
|
1392
1394
|
sortControl: /* @__PURE__ */ X(L, {
|
|
1393
|
-
fields:
|
|
1394
|
-
sorts:
|
|
1395
|
-
onSortsChange:
|
|
1395
|
+
fields: w.attributes,
|
|
1396
|
+
sorts: k,
|
|
1397
|
+
onSortsChange: A
|
|
1396
1398
|
}),
|
|
1397
|
-
settings:
|
|
1398
|
-
statsAvailable: !!
|
|
1399
|
-
onSettingsChange:
|
|
1400
|
-
onColumnVisibilityChange: (e, t) =>
|
|
1401
|
-
onColumnReorder: (e, t) =>
|
|
1399
|
+
settings: T,
|
|
1400
|
+
statsAvailable: !!u,
|
|
1401
|
+
onSettingsChange: D,
|
|
1402
|
+
onColumnVisibilityChange: (e, t) => D({ hiddenColumns: _(T.hiddenColumns, e, t) }),
|
|
1403
|
+
onColumnReorder: (e, t) => D({ columnOrder: E(w.orderedColumnKeys, e, t) })
|
|
1402
1404
|
})
|
|
1403
1405
|
}),
|
|
1404
1406
|
e.contentPlaceholder ?? (Q ? /* @__PURE__ */ X(I, {
|
|
1405
|
-
search:
|
|
1406
|
-
onClearSearch: () =>
|
|
1407
|
+
search: w.deferredSearch,
|
|
1408
|
+
onClearSearch: () => w.setSearch("")
|
|
1407
1409
|
}) : /* @__PURE__ */ X(Vt, {
|
|
1408
1410
|
table: ae,
|
|
1409
1411
|
entries: K.entries,
|
|
@@ -1412,7 +1414,7 @@ var Ut = (e, t, n, r) => {
|
|
|
1412
1414
|
let n = new Set(t);
|
|
1413
1415
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
1414
1416
|
}),
|
|
1415
|
-
settings:
|
|
1417
|
+
settings: T,
|
|
1416
1418
|
data: q,
|
|
1417
1419
|
fieldMenu: oe,
|
|
1418
1420
|
selectionActions: W ? re : void 0,
|
|
@@ -1421,16 +1423,16 @@ var Ut = (e, t, n, r) => {
|
|
|
1421
1423
|
onRowClick: r,
|
|
1422
1424
|
isRowInteractive: i,
|
|
1423
1425
|
activeRowId: a,
|
|
1424
|
-
columnDescriptions:
|
|
1425
|
-
columnStats:
|
|
1426
|
-
enableRowActivation:
|
|
1427
|
-
getCellContextMenuActions:
|
|
1426
|
+
columnDescriptions: s,
|
|
1427
|
+
columnStats: u,
|
|
1428
|
+
enableRowActivation: x,
|
|
1429
|
+
getCellContextMenuActions: C
|
|
1428
1430
|
})),
|
|
1429
|
-
K.pageCount > 1 ? /* @__PURE__ */ X(
|
|
1431
|
+
K.pageCount > 1 ? /* @__PURE__ */ X(p, {
|
|
1430
1432
|
pageCount: K.pageCount,
|
|
1431
1433
|
pageIndex: K.page,
|
|
1432
1434
|
pageSize: B,
|
|
1433
|
-
pageSizeOptions:
|
|
1435
|
+
pageSizeOptions: g,
|
|
1434
1436
|
onPageChange: z,
|
|
1435
1437
|
onPageSizeChange: (e) => {
|
|
1436
1438
|
V(e), z(0);
|
|
@@ -1442,7 +1444,7 @@ var Ut = (e, t, n, r) => {
|
|
|
1442
1444
|
let t = Y(4);
|
|
1443
1445
|
if (e.editMode) {
|
|
1444
1446
|
let n;
|
|
1445
|
-
return t[0] === e ? n = t[1] : (n = /* @__PURE__ */ X(
|
|
1447
|
+
return t[0] === e ? n = t[1] : (n = /* @__PURE__ */ X(D, { ...e }), t[0] = e, t[1] = n), n;
|
|
1446
1448
|
}
|
|
1447
1449
|
let n;
|
|
1448
1450
|
return t[2] === e ? n = t[3] : (n = /* @__PURE__ */ X(Gt, { ...e }), t[2] = e, t[3] = n), n;
|
|
@@ -1516,6 +1518,6 @@ function Xt(e) {
|
|
|
1516
1518
|
}, e.id);
|
|
1517
1519
|
}
|
|
1518
1520
|
//#endregion
|
|
1519
|
-
export { Kt as DataTable, Jt as DataTableSkeleton,
|
|
1521
|
+
export { Kt as DataTable, Jt as DataTableSkeleton, f as FriendlyJsonDisplay, x as formatDisplayValue, v as getIcon, T as useDataTableViewStore };
|
|
1520
1522
|
|
|
1521
1523
|
//# sourceMappingURL=data-table.js.map
|