@pstdio/ui 0.43.1 → 0.44.0-nightly.20261015030224
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/chat-ui.d.ts +50 -50
- package/dist/collection-view.d.ts +3 -90
- package/dist/data-table-stat-chart-content-waJAm_nt.js +125 -0
- package/dist/data-table-stat-chart-content-waJAm_nt.js.map +1 -0
- package/dist/data-table.d.ts +2 -1
- package/dist/data-table.js +700 -399
- package/dist/data-table.js.map +1 -1
- package/dist/{index-DXpADqIg.d.ts → index-0ZbpwSzu.d.ts} +1 -1
- package/dist/index-CvrqviEK.d.ts +91 -0
- package/dist/index.d.ts +50 -50
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.d.ts +1 -1
- package/dist/{workspace-badge-De6OQjb5.d.ts → workspace-badge-CvQBU6Hs.d.ts} +1 -1
- package/package.json +2 -2
- package/dist/data-table-stats-row-83mX8b1B.js +0 -415
- package/dist/data-table-stats-row-83mX8b1B.js.map +0 -1
package/dist/data-table.js
CHANGED
|
@@ -2,108 +2,108 @@ import { n as e, t } from "./scroll-area-IeoRS73V.js";
|
|
|
2
2
|
import { a as n, o as r, t as i, u as a } from "./list-row-F8kBQGB-.js";
|
|
3
3
|
import { n as o } from "./prism-EZSmZh-a.js";
|
|
4
4
|
import { b as s, h as c } from "./collection-view-search-KbQpKHdn.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 _,
|
|
6
|
-
import { a as
|
|
7
|
-
import { t as
|
|
8
|
-
import { i as
|
|
9
|
-
import { Badge as
|
|
10
|
-
import { c as
|
|
11
|
-
import { jsx as
|
|
12
|
-
import { Fragment as ae, Suspense as oe, cloneElement as
|
|
13
|
-
import { ArrowDownWideNarrow as
|
|
14
|
-
import { DndContext as
|
|
15
|
-
import { SortableContext as
|
|
16
|
-
import { CSS as
|
|
17
|
-
import { flexRender as
|
|
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 _, g as v, h as y, i as b, l as x, m as S, n as C, o as w, p as T, r as E, s as D, t as O, u as k, v as A, w as j, x as M, y as N } from "./edit-mode-data-table-ScVJJT9F.js";
|
|
6
|
+
import { a as P } from "./collection-view-grouping-jIqOrBG8.js";
|
|
7
|
+
import { t as F } from "./diff-bubble-DewUd_2w.js";
|
|
8
|
+
import { i as I, n as L, t as R } from "./display-sort-control-BCkgKET1.js";
|
|
9
|
+
import { Badge as z, Box as B, Button as ee, Flex as V, HStack as H, Icon as U, IconButton as te, Image as ne, Menu as W, Popover as G, Portal as re, Skeleton as K, Stack as ie, Table as q, Text as J, chakra as Y } from "@chakra-ui/react";
|
|
10
|
+
import { c as X } from "react/compiler-runtime";
|
|
11
|
+
import { jsx as Z, jsxs as Q } from "react/jsx-runtime";
|
|
12
|
+
import { Fragment as ae, Suspense as oe, cloneElement as se, isValidElement as ce, lazy as le, useEffect as ue, useRef as de, useState as fe } from "react";
|
|
13
|
+
import { ArrowDownWideNarrow as pe, ArrowUpNarrowWide as me, Braces as he, Check as ge, ChevronDown as _e, ChevronRight as ve, ChevronsUpDown as ye, CircleHelp as be, EyeOff as xe, GripVertical as Se, ListFilter as Ce, Minus as we, Settings2 as Te } from "lucide-react";
|
|
14
|
+
import { DndContext as Ee, PointerSensor as De, closestCenter as Oe, useSensor as ke, useSensors as Ae } from "@dnd-kit/core";
|
|
15
|
+
import { SortableContext as je, useSortable as Me, verticalListSortingStrategy as Ne } from "@dnd-kit/sortable";
|
|
16
|
+
import { CSS as Pe } from "@dnd-kit/utilities";
|
|
17
|
+
import { flexRender as Fe, getCoreRowModel as Ie, useReactTable as Le } from "@tanstack/react-table";
|
|
18
18
|
//#region src/components/data-table/categorical-color-cell.tsx
|
|
19
|
-
var
|
|
19
|
+
var Re = (e, t) => t.find((t) => Object.is(t.value, e))?.color ?? null, ze = (e) => {
|
|
20
20
|
let { children: t } = e;
|
|
21
21
|
return t;
|
|
22
|
-
},
|
|
23
|
-
let t = e.trim(), n = t.startsWith("#") ? t.slice(1) : t, r = n.length === 3 ?
|
|
22
|
+
}, Be = "#111827", Ve = "#ffffff", He = "#000000", Ue = 4.5, We = (e) => e.split("").map((e) => e + e).join(""), Ge = (e) => {
|
|
23
|
+
let t = e.trim(), n = t.startsWith("#") ? t.slice(1) : t, r = n.length === 3 ? We(n) : n;
|
|
24
24
|
return /^[\da-f]{6}$/i.test(r) ? {
|
|
25
25
|
r: Number.parseInt(r.slice(0, 2), 16),
|
|
26
26
|
g: Number.parseInt(r.slice(2, 4), 16),
|
|
27
27
|
b: Number.parseInt(r.slice(4, 6), 16)
|
|
28
28
|
} : null;
|
|
29
|
-
},
|
|
29
|
+
}, Ke = (e) => {
|
|
30
30
|
let t = e / 255;
|
|
31
31
|
return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
32
|
-
},
|
|
33
|
-
let n =
|
|
32
|
+
}, qe = (e) => .2126 * Ke(e.r) + .7152 * Ke(e.g) + .0722 * Ke(e.b), Je = (e, t) => {
|
|
33
|
+
let n = qe(e), r = qe(t), i = Math.max(n, r), a = Math.min(n, r);
|
|
34
34
|
return (i + .05) / (a + .05);
|
|
35
|
-
},
|
|
35
|
+
}, Ye = (e) => {
|
|
36
36
|
let t = (e) => Math.round(e).toString(16).padStart(2, "0");
|
|
37
37
|
return `#${t(e.r)}${t(e.g)}${t(e.b)}`;
|
|
38
|
-
},
|
|
38
|
+
}, Xe = (e, t, n) => ({
|
|
39
39
|
r: e.r * (1 - n) + t.r * n,
|
|
40
40
|
g: e.g * (1 - n) + t.g * n,
|
|
41
41
|
b: e.b * (1 - n) + t.b * n
|
|
42
|
-
}),
|
|
42
|
+
}), Ze = (e, t) => {
|
|
43
43
|
for (let n = 1; n <= 50; n += 1) {
|
|
44
|
-
let r =
|
|
45
|
-
if (
|
|
46
|
-
color:
|
|
44
|
+
let r = Xe(e, t, n / 50);
|
|
45
|
+
if (Je(r, e) >= Ue) return {
|
|
46
|
+
color: Ye(r),
|
|
47
47
|
step: n
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
51
|
-
color:
|
|
51
|
+
color: Ye(t),
|
|
52
52
|
step: 50
|
|
53
53
|
};
|
|
54
|
-
}, Xe = (e) => {
|
|
55
|
-
let t = Ue(e);
|
|
56
|
-
if (!t) return Re;
|
|
57
|
-
let n = Ue(Be), r = Ue(ze), i = Ye(t, n), a = Ye(t, r);
|
|
58
|
-
return i.step <= a.step ? i.color : a.color;
|
|
59
|
-
}, Ze = (e, t, n) => {
|
|
60
|
-
let r = Ue(e), i = Ue(t);
|
|
61
|
-
return !r || !i ? null : qe(Je(r, i, 1 - n));
|
|
62
54
|
}, Qe = (e) => {
|
|
63
|
-
let t =
|
|
55
|
+
let t = Ge(e);
|
|
56
|
+
if (!t) return Be;
|
|
57
|
+
let n = Ge(He), r = Ge(Ve), i = Ze(t, n), a = Ze(t, r);
|
|
58
|
+
return i.step <= a.step ? i.color : a.color;
|
|
59
|
+
}, $e = (e, t, n) => {
|
|
60
|
+
let r = Ge(e), i = Ge(t);
|
|
61
|
+
return !r || !i ? null : Ye(Xe(r, i, 1 - n));
|
|
62
|
+
}, et = (e) => {
|
|
63
|
+
let t = e.foreground?.light ?? Qe(e.light), n = e.foreground?.dark ?? Qe(e.dark);
|
|
64
64
|
return {
|
|
65
65
|
backgroundColor: `light-dark(${e.light}, ${e.dark})`,
|
|
66
66
|
color: `light-dark(${t}, ${n})`
|
|
67
67
|
};
|
|
68
|
-
},
|
|
68
|
+
}, tt = (e) => Math.round(e * 100) / 100, nt = (e, t, n) => $e(e, t, n) || `color-mix(in srgb, ${e} ${tt(n * 100)}%, ${t})`, rt = (e, t, n) => {
|
|
69
69
|
let r = e.foreground && t.foreground ? {
|
|
70
|
-
light:
|
|
71
|
-
dark:
|
|
70
|
+
light: nt(e.foreground.light, t.foreground.light, n),
|
|
71
|
+
dark: nt(e.foreground.dark, t.foreground.dark, n)
|
|
72
72
|
} : void 0;
|
|
73
73
|
return {
|
|
74
|
-
light:
|
|
75
|
-
dark:
|
|
74
|
+
light: nt(e.light, t.light, n),
|
|
75
|
+
dark: nt(e.dark, t.dark, n),
|
|
76
76
|
...r ? { foreground: r } : {}
|
|
77
77
|
};
|
|
78
|
-
},
|
|
78
|
+
}, it = (e, t) => {
|
|
79
79
|
if (typeof e != "number" || !Number.isFinite(e) || t.length < 2) return null;
|
|
80
80
|
let n = t[0], r = t[t.length - 1];
|
|
81
81
|
if (r.value - n.value <= 0) return null;
|
|
82
82
|
if (e <= n.value) return n.color;
|
|
83
83
|
if (e >= r.value) return r.color;
|
|
84
84
|
let i = t.findIndex((t) => e <= t.value), a = t[i - 1], o = t[i], s = 1 - (e - a.value) / (o.value - a.value);
|
|
85
|
-
return
|
|
86
|
-
},
|
|
87
|
-
let t =
|
|
88
|
-
return t[0] !== i || t[1] !== a ? (o = /* @__PURE__ */
|
|
85
|
+
return rt(a.color, o.color, s);
|
|
86
|
+
}, at = (e) => {
|
|
87
|
+
let t = X(3), { value: n, search: r } = e, i = r === void 0 ? "" : r, a = String(n), o;
|
|
88
|
+
return t[0] !== i || t[1] !== a ? (o = /* @__PURE__ */ Z(J, {
|
|
89
89
|
textStyle: "paragraph/S/medium",
|
|
90
90
|
fontVariantNumeric: "tabular-nums",
|
|
91
91
|
truncate: !0,
|
|
92
|
-
children: /* @__PURE__ */
|
|
92
|
+
children: /* @__PURE__ */ Z(P, {
|
|
93
93
|
text: a,
|
|
94
94
|
query: i
|
|
95
95
|
})
|
|
96
96
|
}), t[0] = i, t[1] = a, t[2] = o) : o = t[2], o;
|
|
97
|
-
},
|
|
98
|
-
let t =
|
|
97
|
+
}, ot = (e) => {
|
|
98
|
+
let t = X(9), { value: n, categories: r, search: i } = e, a = i === void 0 ? "" : i, o;
|
|
99
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];
|
|
100
100
|
let s = o, c = String(n), l;
|
|
101
|
-
t[3] !== a || t[4] !== c ? (l = /* @__PURE__ */
|
|
101
|
+
t[3] !== a || t[4] !== c ? (l = /* @__PURE__ */ Z(P, {
|
|
102
102
|
text: c,
|
|
103
103
|
query: a
|
|
104
104
|
}), t[3] = a, t[4] = c, t[5] = l) : l = t[5];
|
|
105
105
|
let u;
|
|
106
|
-
return t[6] !== s || t[7] !== l ? (u = /* @__PURE__ */
|
|
106
|
+
return t[6] !== s || t[7] !== l ? (u = /* @__PURE__ */ Z(z, {
|
|
107
107
|
variant: "subtle",
|
|
108
108
|
size: "sm",
|
|
109
109
|
colorPalette: s,
|
|
@@ -111,19 +111,19 @@ var Ie = (e, t) => t.find((t) => Object.is(t.value, e))?.color ?? null, Le = (e)
|
|
|
111
111
|
truncate: !0,
|
|
112
112
|
children: l
|
|
113
113
|
}), t[6] = s, t[7] = l, t[8] = u) : u = t[8], u;
|
|
114
|
-
},
|
|
115
|
-
let t =
|
|
116
|
-
t[0] !== i || t[1] !== a ? (o = /* @__PURE__ */
|
|
114
|
+
}, st = (e) => {
|
|
115
|
+
let t = X(11), { value: n, search: r } = e, i = r === void 0 ? "" : r, a = `+${n.additions}`, o;
|
|
116
|
+
t[0] !== i || t[1] !== a ? (o = /* @__PURE__ */ Z(P, {
|
|
117
117
|
text: a,
|
|
118
118
|
query: i
|
|
119
119
|
}), t[0] = i, t[1] = a, t[2] = o) : o = t[2];
|
|
120
120
|
let s = `-${n.deletions}`, c;
|
|
121
|
-
t[3] !== i || t[4] !== s ? (c = /* @__PURE__ */
|
|
121
|
+
t[3] !== i || t[4] !== s ? (c = /* @__PURE__ */ Z(P, {
|
|
122
122
|
text: s,
|
|
123
123
|
query: i
|
|
124
124
|
}), t[3] = i, t[4] = s, t[5] = c) : c = t[5];
|
|
125
125
|
let l;
|
|
126
|
-
return t[6] !== o || t[7] !== c || t[8] !== n.additions || t[9] !== n.deletions ? (l = /* @__PURE__ */
|
|
126
|
+
return t[6] !== o || t[7] !== c || t[8] !== n.additions || t[9] !== n.deletions ? (l = /* @__PURE__ */ Z(F, {
|
|
127
127
|
additions: n.additions,
|
|
128
128
|
deletions: n.deletions,
|
|
129
129
|
variant: "ghost",
|
|
@@ -131,30 +131,30 @@ var Ie = (e, t) => t.find((t) => Object.is(t.value, e))?.color ?? null, Le = (e)
|
|
|
131
131
|
additionsLabel: o,
|
|
132
132
|
deletionsLabel: c
|
|
133
133
|
}), t[6] = o, t[7] = c, t[8] = n.additions, t[9] = n.deletions, t[10] = l) : l = t[10], l;
|
|
134
|
-
},
|
|
135
|
-
let n =
|
|
134
|
+
}, ct = (t) => {
|
|
135
|
+
let n = X(16), { value: r, search: i } = t, a = i === void 0 ? "" : i, o;
|
|
136
136
|
n[0] === r ? o = n[1] : (o = r.slice(0, -5), n[0] = r, n[1] = o);
|
|
137
137
|
let s = o, c;
|
|
138
138
|
n[2] === r ? c = n[3] : (c = r.slice(-5), n[2] = r, n[3] = c);
|
|
139
139
|
let l = c, u;
|
|
140
|
-
n[4] !== a || n[5] !== s ? (u = /* @__PURE__ */
|
|
140
|
+
n[4] !== a || n[5] !== s ? (u = /* @__PURE__ */ Z(Y.span, {
|
|
141
141
|
overflow: "hidden",
|
|
142
142
|
textOverflow: "ellipsis",
|
|
143
|
-
children: /* @__PURE__ */
|
|
143
|
+
children: /* @__PURE__ */ Z(P, {
|
|
144
144
|
text: s,
|
|
145
145
|
query: a
|
|
146
146
|
})
|
|
147
147
|
}), n[4] = a, n[5] = s, n[6] = u) : u = n[6];
|
|
148
148
|
let d;
|
|
149
|
-
n[7] !== l || n[8] !== a ? (d = /* @__PURE__ */
|
|
149
|
+
n[7] !== l || n[8] !== a ? (d = /* @__PURE__ */ Z(Y.span, {
|
|
150
150
|
flexShrink: 0,
|
|
151
|
-
children: /* @__PURE__ */
|
|
151
|
+
children: /* @__PURE__ */ Z(P, {
|
|
152
152
|
text: l,
|
|
153
153
|
query: a
|
|
154
154
|
})
|
|
155
155
|
}), n[7] = l, n[8] = a, n[9] = d) : d = n[9];
|
|
156
156
|
let f;
|
|
157
|
-
n[10] !== u || n[11] !== d ? (f = /* @__PURE__ */
|
|
157
|
+
n[10] !== u || n[11] !== d ? (f = /* @__PURE__ */ Q(Y.span, {
|
|
158
158
|
display: "inline-flex",
|
|
159
159
|
minW: "0",
|
|
160
160
|
maxW: "full",
|
|
@@ -164,40 +164,40 @@ var Ie = (e, t) => t.find((t) => Object.is(t.value, e))?.color ?? null, Le = (e)
|
|
|
164
164
|
children: [u, d]
|
|
165
165
|
}), n[10] = u, n[11] = d, n[12] = f) : f = n[12];
|
|
166
166
|
let p;
|
|
167
|
-
return n[13] !== f || n[14] !== r ? (p = /* @__PURE__ */
|
|
167
|
+
return n[13] !== f || n[14] !== r ? (p = /* @__PURE__ */ Z(e, {
|
|
168
168
|
content: r,
|
|
169
169
|
openDelay: 300,
|
|
170
170
|
children: f
|
|
171
171
|
}), n[13] = f, n[14] = r, n[15] = p) : p = n[15], p;
|
|
172
|
-
},
|
|
173
|
-
let n =
|
|
172
|
+
}, lt = (e) => e.stopPropagation(), ut = (e) => {
|
|
173
|
+
let n = X(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
174
|
if (n[0] !== r || n[1] !== i) {
|
|
175
|
-
let e =
|
|
176
|
-
n[18] === i ? t = n[19] : (t =
|
|
175
|
+
let e = A(i).flatMap(dt).slice(0, 2), t;
|
|
176
|
+
n[18] === i ? t = n[19] : (t = N(i), n[18] = i, n[19] = t), u = t, l = G.Root, n[20] === Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
177
177
|
placement: "bottom-start",
|
|
178
178
|
offset: { mainAxis: 6 }
|
|
179
|
-
}, n[20] = h) : h = n[20], c =
|
|
179
|
+
}, n[20] = h) : h = n[20], c = G.Trigger, m = !0, s = ee, d = `View ${r} details`, g = "ghost", _ = "xs", v = "full", y = "0", b = "28px", x = "2xs", S = "flex-start", C = lt, p = e.length > 0 ? /* @__PURE__ */ Z(H, {
|
|
180
180
|
gap: "-1",
|
|
181
181
|
flexShrink: "0",
|
|
182
|
-
children: e.map(
|
|
183
|
-
}) : /* @__PURE__ */
|
|
182
|
+
children: e.map(ft)
|
|
183
|
+
}) : /* @__PURE__ */ Z(he, { 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
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
185
|
let w;
|
|
186
|
-
n[21] !== o || n[22] !== u ? (w = /* @__PURE__ */
|
|
186
|
+
n[21] !== o || n[22] !== u ? (w = /* @__PURE__ */ Z(J, {
|
|
187
187
|
flex: "1",
|
|
188
188
|
minWidth: "0",
|
|
189
189
|
textAlign: "left",
|
|
190
190
|
textStyle: "paragraph/S/regular",
|
|
191
191
|
truncate: !0,
|
|
192
|
-
children: /* @__PURE__ */
|
|
192
|
+
children: /* @__PURE__ */ Z(P, {
|
|
193
193
|
text: u,
|
|
194
194
|
query: o
|
|
195
195
|
})
|
|
196
196
|
}), n[21] = o, n[22] = u, n[23] = w) : w = n[23];
|
|
197
197
|
let T;
|
|
198
|
-
n[24] === Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */
|
|
198
|
+
n[24] === Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ Z(ve, { size: 12 }), n[24] = T) : T = n[24];
|
|
199
199
|
let E;
|
|
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__ */
|
|
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__ */ Q(s, {
|
|
201
201
|
"aria-label": d,
|
|
202
202
|
variant: g,
|
|
203
203
|
size: _,
|
|
@@ -214,38 +214,38 @@ var Ie = (e, t) => t.find((t) => Object.is(t.value, e))?.color ?? null, Le = (e)
|
|
|
214
214
|
]
|
|
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
216
|
let D;
|
|
217
|
-
n[38] !== c || n[39] !== m || n[40] !== E ? (D = /* @__PURE__ */
|
|
217
|
+
n[38] !== c || n[39] !== m || n[40] !== E ? (D = /* @__PURE__ */ Z(c, {
|
|
218
218
|
asChild: m,
|
|
219
219
|
children: E
|
|
220
220
|
}), n[38] = c, n[39] = m, n[40] = E, n[41] = D) : D = n[41];
|
|
221
221
|
let O;
|
|
222
222
|
n[42] === Symbol.for("react.memo_cache_sentinel") ? (O = { overscrollBehavior: "contain" }, n[42] = O) : O = n[42];
|
|
223
|
-
let
|
|
224
|
-
n[43] === i ?
|
|
223
|
+
let k;
|
|
224
|
+
n[43] === i ? k = n[44] : (k = /* @__PURE__ */ Z(re, { children: /* @__PURE__ */ Z(G.Positioner, { children: /* @__PURE__ */ Z(G.Content, {
|
|
225
225
|
width: "min(380px, calc(100vw - 32px))",
|
|
226
226
|
padding: "0",
|
|
227
227
|
background: "bg",
|
|
228
228
|
overflow: "hidden",
|
|
229
|
-
children: /* @__PURE__ */
|
|
229
|
+
children: /* @__PURE__ */ Z(t, {
|
|
230
230
|
maxH: "360px",
|
|
231
231
|
viewportProps: O,
|
|
232
|
-
children: /* @__PURE__ */
|
|
232
|
+
children: /* @__PURE__ */ Z(f, { value: i })
|
|
233
233
|
})
|
|
234
|
-
}) }) }), n[43] = i, n[44] =
|
|
234
|
+
}) }) }), n[43] = i, n[44] = k);
|
|
235
235
|
let j;
|
|
236
|
-
return n[45] !== l || n[46] !== h || n[47] !== D || n[48] !==
|
|
236
|
+
return n[45] !== l || n[46] !== h || n[47] !== D || n[48] !== k ? (j = /* @__PURE__ */ Q(l, {
|
|
237
237
|
positioning: h,
|
|
238
|
-
children: [D,
|
|
239
|
-
}), n[45] = l, n[46] = h, n[47] = D, n[48] =
|
|
238
|
+
children: [D, k]
|
|
239
|
+
}), n[45] = l, n[46] = h, n[47] = D, n[48] = k, n[49] = j) : j = n[49], j;
|
|
240
240
|
};
|
|
241
|
-
function
|
|
242
|
-
return
|
|
241
|
+
function dt(e) {
|
|
242
|
+
return M(e.value, e.label) ? [e] : !Array.isArray(e.value) || !m(e.value, e.label) ? [] : e.value.map((t, n) => ({
|
|
243
243
|
label: `${e.label} ${n + 1}`,
|
|
244
244
|
value: t
|
|
245
245
|
}));
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
return /* @__PURE__ */
|
|
247
|
+
function ft(e) {
|
|
248
|
+
return /* @__PURE__ */ Z(ne, {
|
|
249
249
|
src: String(e.value),
|
|
250
250
|
alt: `${e.label} preview`,
|
|
251
251
|
boxSize: "22px",
|
|
@@ -257,18 +257,18 @@ function ut(e) {
|
|
|
257
257
|
}
|
|
258
258
|
//#endregion
|
|
259
259
|
//#region src/components/data-table/data-table-cell-renderers.tsx
|
|
260
|
-
var
|
|
260
|
+
var pt = (e) => ce(e) ? se(e, { style: {
|
|
261
261
|
...e.props.style,
|
|
262
262
|
flexWrap: "nowrap",
|
|
263
263
|
minWidth: 0,
|
|
264
264
|
whiteSpace: "nowrap"
|
|
265
|
-
} }) : e,
|
|
265
|
+
} }) : e, mt = (e) => {
|
|
266
266
|
e.stopPropagation();
|
|
267
|
-
},
|
|
268
|
-
let t =
|
|
267
|
+
}, ht = (e) => {
|
|
268
|
+
let t = X(10), { table: r } = e, i;
|
|
269
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 ?
|
|
271
|
-
t[2] === c ? l = t[3] : (l = /* @__PURE__ */
|
|
270
|
+
let a = i, o = !a && r.getIsSomeRowsSelected(), s = o ? "indeterminate" : a, c = o ? we : ge, l;
|
|
271
|
+
t[2] === c ? l = t[3] : (l = /* @__PURE__ */ Z(U, {
|
|
272
272
|
as: c,
|
|
273
273
|
boxSize: "12px",
|
|
274
274
|
strokeWidth: "3"
|
|
@@ -276,67 +276,67 @@ var dt = (e) => $(e) ? Q(e, { style: {
|
|
|
276
276
|
let u;
|
|
277
277
|
t[4] === r ? u = t[5] : (u = (e) => r.toggleAllRowsSelected(e.checked === !0), t[4] = r, t[5] = u);
|
|
278
278
|
let d;
|
|
279
|
-
return t[6] !== s || t[7] !== l || t[8] !== u ? (d = /* @__PURE__ */
|
|
279
|
+
return t[6] !== s || t[7] !== l || t[8] !== u ? (d = /* @__PURE__ */ Z(n, {
|
|
280
280
|
checked: s,
|
|
281
281
|
"aria-label": "Select all",
|
|
282
282
|
icon: l,
|
|
283
|
-
onClick:
|
|
283
|
+
onClick: mt,
|
|
284
284
|
onCheckedChange: u
|
|
285
285
|
}), t[6] = s, t[7] = l, t[8] = u, t[9] = d) : d = t[9], d;
|
|
286
|
-
},
|
|
287
|
-
let t =
|
|
288
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */
|
|
289
|
-
as:
|
|
286
|
+
}, gt = (e) => {
|
|
287
|
+
let t = X(6), { row: r, column: i } = e, { selectedRowIds: a } = i.columnDef.meta, o = !!a?.[r.id], s;
|
|
288
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Z(U, {
|
|
289
|
+
as: ge,
|
|
290
290
|
boxSize: "12px",
|
|
291
291
|
strokeWidth: "3"
|
|
292
292
|
}), t[0] = s) : s = t[0];
|
|
293
293
|
let c;
|
|
294
294
|
t[1] === r ? c = t[2] : (c = (e) => r.toggleSelected(e.checked === !0), t[1] = r, t[2] = c);
|
|
295
295
|
let l;
|
|
296
|
-
return t[3] !== o || t[4] !== c ? (l = /* @__PURE__ */
|
|
296
|
+
return t[3] !== o || t[4] !== c ? (l = /* @__PURE__ */ Z(n, {
|
|
297
297
|
checked: o,
|
|
298
298
|
"aria-label": "Select row",
|
|
299
299
|
icon: s,
|
|
300
|
-
onClick:
|
|
300
|
+
onClick: mt,
|
|
301
301
|
onCheckedChange: c
|
|
302
302
|
}), t[3] = o, t[4] = c, t[5] = l) : l = t[5], l;
|
|
303
|
-
},
|
|
303
|
+
}, _t = (e, t) => {
|
|
304
304
|
let n = new Set(t.map((e) => e.label));
|
|
305
305
|
return [...t, ...e.filter((e) => !n.has(e.label))];
|
|
306
|
-
},
|
|
307
|
-
let t =
|
|
306
|
+
}, vt = (e) => {
|
|
307
|
+
let t = X(30), { row: n, column: r } = e, { rowActions: a, getRowActions: o } = r.columnDef.meta, s, c, l, u, d, f, p, m, h;
|
|
308
308
|
if (t[0] !== o || t[1] !== n || t[2] !== a) {
|
|
309
309
|
h = Symbol.for("react.early_return_sentinel");
|
|
310
310
|
bb0: {
|
|
311
|
-
let e =
|
|
311
|
+
let e = _t(a === void 0 ? [] : a, o?.(n.original) ?? []);
|
|
312
312
|
if (e.length === 0) {
|
|
313
313
|
h = null;
|
|
314
314
|
break bb0;
|
|
315
315
|
}
|
|
316
|
-
u =
|
|
316
|
+
u = W.Root, t[12] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ Z(W.Trigger, {
|
|
317
317
|
asChild: !0,
|
|
318
|
-
children: /* @__PURE__ */
|
|
318
|
+
children: /* @__PURE__ */ Z(te, {
|
|
319
319
|
"aria-label": "Row actions",
|
|
320
320
|
size: "2xs",
|
|
321
321
|
variant: "ghost",
|
|
322
|
-
onClick:
|
|
323
|
-
children: /* @__PURE__ */
|
|
324
|
-
as:
|
|
322
|
+
onClick: mt,
|
|
323
|
+
children: /* @__PURE__ */ Z(U, {
|
|
324
|
+
as: _e,
|
|
325
325
|
boxSize: "14px"
|
|
326
326
|
})
|
|
327
327
|
})
|
|
328
|
-
}), t[12] = m) : m = t[12], l = re, c =
|
|
328
|
+
}), t[12] = m) : m = t[12], l = re, c = W.Positioner, s = W.Content, d = "popover", f = "bg";
|
|
329
329
|
let r;
|
|
330
|
-
t[13] === n ? r = t[14] : (r = (e) => /* @__PURE__ */
|
|
330
|
+
t[13] === n ? r = t[14] : (r = (e) => /* @__PURE__ */ Z(W.Item, {
|
|
331
331
|
value: e.label,
|
|
332
332
|
asChild: !0,
|
|
333
|
-
children: /* @__PURE__ */
|
|
333
|
+
children: /* @__PURE__ */ Z(i, {
|
|
334
334
|
asChild: !0,
|
|
335
335
|
variant: "full-width",
|
|
336
336
|
tone: e.destructive ? "danger" : "default",
|
|
337
337
|
label: e.label,
|
|
338
338
|
icon: e.icon,
|
|
339
|
-
onClick:
|
|
339
|
+
onClick: mt,
|
|
340
340
|
onActivate: () => e.onSelect(n.original)
|
|
341
341
|
})
|
|
342
342
|
}, e.label), t[13] = n, t[14] = r), p = e.map(r);
|
|
@@ -345,22 +345,22 @@ var dt = (e) => $(e) ? Q(e, { style: {
|
|
|
345
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];
|
|
346
346
|
if (h !== Symbol.for("react.early_return_sentinel")) return h;
|
|
347
347
|
let g;
|
|
348
|
-
t[15] !== s || t[16] !== d || t[17] !== f || t[18] !== p ? (g = /* @__PURE__ */
|
|
348
|
+
t[15] !== s || t[16] !== d || t[17] !== f || t[18] !== p ? (g = /* @__PURE__ */ Z(s, {
|
|
349
349
|
zIndex: d,
|
|
350
350
|
bg: f,
|
|
351
351
|
children: p
|
|
352
352
|
}), t[15] = s, t[16] = d, t[17] = f, t[18] = p, t[19] = g) : g = t[19];
|
|
353
353
|
let _;
|
|
354
|
-
t[20] !== c || t[21] !== g ? (_ = /* @__PURE__ */
|
|
354
|
+
t[20] !== c || t[21] !== g ? (_ = /* @__PURE__ */ Z(c, { children: g }), t[20] = c, t[21] = g, t[22] = _) : _ = t[22];
|
|
355
355
|
let v;
|
|
356
|
-
t[23] !== l || t[24] !== _ ? (v = /* @__PURE__ */
|
|
356
|
+
t[23] !== l || t[24] !== _ ? (v = /* @__PURE__ */ Z(l, { children: _ }), t[23] = l, t[24] = _, t[25] = v) : v = t[25];
|
|
357
357
|
let y;
|
|
358
|
-
return t[26] !== u || t[27] !== m || t[28] !== v ? (y = /* @__PURE__ */
|
|
359
|
-
},
|
|
360
|
-
let t =
|
|
358
|
+
return t[26] !== u || t[27] !== m || t[28] !== v ? (y = /* @__PURE__ */ Q(u, { children: [m, v] }), t[26] = u, t[27] = m, t[28] = v, t[29] = y) : y = t[29], y;
|
|
359
|
+
}, yt = (e) => {
|
|
360
|
+
let t = X(14), { content: n, query: r } = e;
|
|
361
361
|
if (typeof n == "string" || typeof n == "number") {
|
|
362
362
|
let e = String(n), i;
|
|
363
|
-
return t[0] !== r || t[1] !== e ? (i = /* @__PURE__ */
|
|
363
|
+
return t[0] !== r || t[1] !== e ? (i = /* @__PURE__ */ Z(P, {
|
|
364
364
|
text: e,
|
|
365
365
|
query: r
|
|
366
366
|
}), t[0] = r, t[1] = e, t[2] = i) : i = t[2], i;
|
|
@@ -369,35 +369,35 @@ var dt = (e) => $(e) ? Q(e, { style: {
|
|
|
369
369
|
let e;
|
|
370
370
|
if (t[3] !== n || t[4] !== r) {
|
|
371
371
|
let i;
|
|
372
|
-
t[6] === r ? i = t[7] : (i = (e, t) => /* @__PURE__ */
|
|
372
|
+
t[6] === r ? i = t[7] : (i = (e, t) => /* @__PURE__ */ Z(yt, {
|
|
373
373
|
content: e,
|
|
374
374
|
query: r
|
|
375
375
|
}, t), t[6] = r, t[7] = i), e = n.map(i), t[3] = n, t[4] = r, t[5] = e;
|
|
376
376
|
} else e = t[5];
|
|
377
377
|
return e;
|
|
378
378
|
}
|
|
379
|
-
if (
|
|
379
|
+
if (ce(n) && n.props.children !== void 0) {
|
|
380
380
|
let e;
|
|
381
|
-
t[8] !== n.props.children || t[9] !== r ? (e = /* @__PURE__ */
|
|
381
|
+
t[8] !== n.props.children || t[9] !== r ? (e = /* @__PURE__ */ Z(yt, {
|
|
382
382
|
content: n.props.children,
|
|
383
383
|
query: r
|
|
384
384
|
}), t[8] = n.props.children, t[9] = r, t[10] = e) : e = t[10];
|
|
385
385
|
let i;
|
|
386
|
-
return t[11] !== n || t[12] !== e ? (i =
|
|
386
|
+
return t[11] !== n || t[12] !== e ? (i = se(n, { children: e }), t[11] = n, t[12] = e, t[13] = i) : i = t[13], i;
|
|
387
387
|
}
|
|
388
388
|
return n;
|
|
389
|
-
},
|
|
390
|
-
let t =
|
|
389
|
+
}, bt = (e) => {
|
|
390
|
+
let t = X(22), { value: n, wrapRows: r, search: i } = e, a = i === void 0 ? "" : i, o, s;
|
|
391
391
|
if (t[0] !== a || t[1] !== n || t[2] !== r) {
|
|
392
392
|
s = Symbol.for("react.early_return_sentinel");
|
|
393
|
-
bb0: if (o =
|
|
394
|
-
let e = r ? "visible" : "hidden", n = r ? "anywhere" : void 0, i = r ? "normal" : "nowrap", c = r ? o :
|
|
395
|
-
t[5] !== a || t[6] !== c ? (l = /* @__PURE__ */
|
|
393
|
+
bb0: if (o = S(n), ce(o)) {
|
|
394
|
+
let e = r ? "visible" : "hidden", n = r ? "anywhere" : void 0, i = r ? "normal" : "nowrap", c = r ? o : pt(o), l;
|
|
395
|
+
t[5] !== a || t[6] !== c ? (l = /* @__PURE__ */ Z(yt, {
|
|
396
396
|
content: c,
|
|
397
397
|
query: a
|
|
398
398
|
}), t[5] = a, t[6] = c, t[7] = l) : l = t[7];
|
|
399
399
|
let u;
|
|
400
|
-
t[8] !== e || t[9] !== n || t[10] !== i || t[11] !== l ? (u = /* @__PURE__ */
|
|
400
|
+
t[8] !== e || t[9] !== n || t[10] !== i || t[11] !== l ? (u = /* @__PURE__ */ Z(Y.span, {
|
|
401
401
|
display: "inline-flex",
|
|
402
402
|
maxWidth: "full",
|
|
403
403
|
minW: "0",
|
|
@@ -412,12 +412,12 @@ var dt = (e) => $(e) ? Q(e, { style: {
|
|
|
412
412
|
} else o = t[3], s = t[4];
|
|
413
413
|
if (s !== Symbol.for("react.early_return_sentinel")) return s;
|
|
414
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__ */
|
|
415
|
+
t[13] !== o || t[14] !== a ? (f = /* @__PURE__ */ Z(yt, {
|
|
416
416
|
content: o,
|
|
417
417
|
query: a
|
|
418
418
|
}), t[13] = o, t[14] = a, t[15] = f) : f = t[15];
|
|
419
419
|
let p;
|
|
420
|
-
return t[16] !== c || t[17] !== l || t[18] !== u || t[19] !== d || t[20] !== f ? (p = /* @__PURE__ */
|
|
420
|
+
return t[16] !== c || t[17] !== l || t[18] !== u || t[19] !== d || t[20] !== f ? (p = /* @__PURE__ */ Z(J, {
|
|
421
421
|
maxWidth: "full",
|
|
422
422
|
overflow: c,
|
|
423
423
|
overflowWrap: l,
|
|
@@ -426,11 +426,11 @@ var dt = (e) => $(e) ? Q(e, { style: {
|
|
|
426
426
|
whiteSpace: d,
|
|
427
427
|
children: f
|
|
428
428
|
}), t[16] = c, t[17] = l, t[18] = u, t[19] = d, t[20] = f, t[21] = p) : p = t[21], p;
|
|
429
|
-
},
|
|
430
|
-
let t =
|
|
429
|
+
}, xt = (e) => {
|
|
430
|
+
let t = X(28), { columnLabel: n, renderer: r, value: i, wrapRows: a, search: o } = e;
|
|
431
431
|
if (r?.type === "json") {
|
|
432
432
|
let e;
|
|
433
|
-
return t[0] !== n || t[1] !== o || t[2] !== i ? (e = /* @__PURE__ */
|
|
433
|
+
return t[0] !== n || t[1] !== o || t[2] !== i ? (e = /* @__PURE__ */ Z(ut, {
|
|
434
434
|
columnLabel: n,
|
|
435
435
|
value: i,
|
|
436
436
|
search: o
|
|
@@ -442,88 +442,88 @@ var dt = (e) => $(e) ? Q(e, { style: {
|
|
|
442
442
|
"boolean"
|
|
443
443
|
].includes(typeof i)) {
|
|
444
444
|
let e = i, n;
|
|
445
|
-
return t[4] !== r.categories || t[5] !== o || t[6] !== e ? (n = /* @__PURE__ */
|
|
445
|
+
return t[4] !== r.categories || t[5] !== o || t[6] !== e ? (n = /* @__PURE__ */ Z(ot, {
|
|
446
446
|
value: e,
|
|
447
447
|
search: o,
|
|
448
448
|
categories: r.categories
|
|
449
449
|
}), t[4] = r.categories, t[5] = o, t[6] = e, t[7] = n) : n = t[7], n;
|
|
450
450
|
}
|
|
451
|
-
if (r?.type === "diff" &&
|
|
451
|
+
if (r?.type === "diff" && j(i)) {
|
|
452
452
|
let e;
|
|
453
|
-
return t[8] !== o || t[9] !== i ? (e = /* @__PURE__ */
|
|
453
|
+
return t[8] !== o || t[9] !== i ? (e = /* @__PURE__ */ Z(st, {
|
|
454
454
|
value: i,
|
|
455
455
|
search: o
|
|
456
456
|
}), t[8] = o, t[9] = i, t[10] = e) : e = t[10], e;
|
|
457
457
|
}
|
|
458
458
|
if (r?.type === "path" && typeof i == "string" && !a) {
|
|
459
459
|
let e;
|
|
460
|
-
return t[11] !== o || t[12] !== i ? (e = /* @__PURE__ */
|
|
460
|
+
return t[11] !== o || t[12] !== i ? (e = /* @__PURE__ */ Z(ct, {
|
|
461
461
|
value: i,
|
|
462
462
|
search: o
|
|
463
463
|
}), t[11] = o, t[12] = i, t[13] = e) : e = t[13], e;
|
|
464
464
|
}
|
|
465
465
|
if (r?.type === "date" && l(i)) {
|
|
466
466
|
let e = i, n;
|
|
467
|
-
return t[14] !== o || t[15] !== e ? (n = /* @__PURE__ */
|
|
467
|
+
return t[14] !== o || t[15] !== e ? (n = /* @__PURE__ */ Z(u, {
|
|
468
468
|
value: e,
|
|
469
469
|
search: o
|
|
470
470
|
}), t[14] = o, t[15] = e, t[16] = n) : n = t[16], n;
|
|
471
471
|
}
|
|
472
|
-
if (r?.type === "color-scale" &&
|
|
472
|
+
if (r?.type === "color-scale" && it(i, r.stops) && typeof i == "number") {
|
|
473
473
|
let e;
|
|
474
|
-
return t[17] !== o || t[18] !== i ? (e = /* @__PURE__ */
|
|
474
|
+
return t[17] !== o || t[18] !== i ? (e = /* @__PURE__ */ Z(at, {
|
|
475
475
|
value: i,
|
|
476
476
|
search: o
|
|
477
477
|
}), t[17] = o, t[18] = i, t[19] = e) : e = t[19], e;
|
|
478
478
|
}
|
|
479
|
-
if (r?.type === "categorical-color" &&
|
|
479
|
+
if (r?.type === "categorical-color" && Re(i, r.categories)) {
|
|
480
480
|
let e;
|
|
481
|
-
return t[20] !== o || t[21] !== i || t[22] !== a ? (e = /* @__PURE__ */
|
|
481
|
+
return t[20] !== o || t[21] !== i || t[22] !== a ? (e = /* @__PURE__ */ Z(ze, { children: /* @__PURE__ */ Z(bt, {
|
|
482
482
|
value: i,
|
|
483
483
|
wrapRows: a,
|
|
484
484
|
search: o
|
|
485
485
|
}) }), t[20] = o, t[21] = i, t[22] = a, t[23] = e) : e = t[23], e;
|
|
486
486
|
}
|
|
487
487
|
let s;
|
|
488
|
-
return t[24] !== o || t[25] !== i || t[26] !== a ? (s = /* @__PURE__ */
|
|
488
|
+
return t[24] !== o || t[25] !== i || t[26] !== a ? (s = /* @__PURE__ */ Z(bt, {
|
|
489
489
|
value: i,
|
|
490
490
|
wrapRows: a,
|
|
491
491
|
search: o
|
|
492
492
|
}), t[24] = o, t[25] = i, t[26] = a, t[27] = s) : s = t[27], s;
|
|
493
|
-
},
|
|
494
|
-
let t =
|
|
493
|
+
}, St = (e) => {
|
|
494
|
+
let t = X(4), { getValue: n } = e, r;
|
|
495
495
|
t[0] === n ? r = t[1] : (r = n(), t[0] = n, t[1] = r);
|
|
496
496
|
let i;
|
|
497
|
-
return t[2] === r ? i = t[3] : (i = /* @__PURE__ */
|
|
497
|
+
return t[2] === r ? i = t[3] : (i = /* @__PURE__ */ Z(Y.span, {
|
|
498
498
|
display: "block",
|
|
499
499
|
textStyle: "paragraph/S/regular",
|
|
500
500
|
textAlign: "center",
|
|
501
501
|
children: r
|
|
502
502
|
}), t[2] = r, t[3] = i), i;
|
|
503
|
-
},
|
|
504
|
-
let t =
|
|
503
|
+
}, Ct = (e) => {
|
|
504
|
+
let t = X(8), { column: n, getValue: r } = e, { renderer: i, wrapRows: a, search: o } = n.columnDef.meta, s = a !== void 0 && a, c = n.id, l;
|
|
505
505
|
t[0] === r ? l = t[1] : (l = r(), t[0] = r, t[1] = l);
|
|
506
506
|
let u;
|
|
507
|
-
return t[2] !== n.id || t[3] !== i || t[4] !== o || t[5] !== l || t[6] !== s ? (u = /* @__PURE__ */
|
|
507
|
+
return t[2] !== n.id || t[3] !== i || t[4] !== o || t[5] !== l || t[6] !== s ? (u = /* @__PURE__ */ Z(xt, {
|
|
508
508
|
columnLabel: c,
|
|
509
509
|
renderer: i,
|
|
510
510
|
value: l,
|
|
511
511
|
wrapRows: s,
|
|
512
512
|
search: o
|
|
513
513
|
}), t[2] = n.id, t[3] = i, t[4] = o, t[5] = l, t[6] = s, t[7] = u) : u = t[7], u;
|
|
514
|
-
},
|
|
515
|
-
let n =
|
|
516
|
-
n[0] === i ? s = n[1] : (s = /* @__PURE__ */
|
|
514
|
+
}, wt = (t) => {
|
|
515
|
+
let n = X(9), { column: r } = t, { headerLabel: i, headerIcon: a, columnDescription: o } = r.columnDef.meta, s;
|
|
516
|
+
n[0] === i ? s = n[1] : (s = /* @__PURE__ */ Z(Y.span, {
|
|
517
517
|
overflow: "hidden",
|
|
518
518
|
textOverflow: "ellipsis",
|
|
519
519
|
whiteSpace: "nowrap",
|
|
520
520
|
children: i
|
|
521
521
|
}), n[0] = i, n[1] = s);
|
|
522
522
|
let c;
|
|
523
|
-
n[2] !== o || n[3] !== i ? (c = o ? /* @__PURE__ */
|
|
523
|
+
n[2] !== o || n[3] !== i ? (c = o ? /* @__PURE__ */ Z(e, {
|
|
524
524
|
content: o,
|
|
525
|
-
children: /* @__PURE__ */
|
|
526
|
-
as:
|
|
525
|
+
children: /* @__PURE__ */ Z(U, {
|
|
526
|
+
as: be,
|
|
527
527
|
"aria-label": `About ${i}`,
|
|
528
528
|
boxSize: "12px",
|
|
529
529
|
color: "fg.muted",
|
|
@@ -534,7 +534,7 @@ var dt = (e) => $(e) ? Q(e, { style: {
|
|
|
534
534
|
})
|
|
535
535
|
}) : null, n[2] = o, n[3] = i, n[4] = c) : c = n[4];
|
|
536
536
|
let l;
|
|
537
|
-
return n[5] !== a || n[6] !== s || n[7] !== c ? (l = /* @__PURE__ */
|
|
537
|
+
return n[5] !== a || n[6] !== s || n[7] !== c ? (l = /* @__PURE__ */ Q(Y.span, {
|
|
538
538
|
display: "inline-flex",
|
|
539
539
|
alignItems: "center",
|
|
540
540
|
gap: "4px",
|
|
@@ -547,37 +547,37 @@ var dt = (e) => $(e) ? Q(e, { style: {
|
|
|
547
547
|
c
|
|
548
548
|
]
|
|
549
549
|
}), n[5] = a, n[6] = s, n[7] = c, n[8] = l) : l = n[8], l;
|
|
550
|
-
},
|
|
550
|
+
}, Tt = (e, t) => {
|
|
551
551
|
if (t?.type === "color-scale") {
|
|
552
|
-
let n =
|
|
553
|
-
if (n && typeof e == "number") return
|
|
552
|
+
let n = it(e, t.stops);
|
|
553
|
+
if (n && typeof e == "number") return et(n);
|
|
554
554
|
}
|
|
555
555
|
if (t?.type === "categorical-color") {
|
|
556
|
-
let n =
|
|
557
|
-
if (n) return
|
|
556
|
+
let n = Re(e, t.categories);
|
|
557
|
+
if (n) return et(n);
|
|
558
558
|
}
|
|
559
559
|
};
|
|
560
|
-
function
|
|
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 =
|
|
560
|
+
function Et(e, t, n = {}) {
|
|
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 = T.accessor((e, t) => t + 1, {
|
|
562
562
|
header: "",
|
|
563
563
|
id: "rowIndex",
|
|
564
564
|
enableResizing: !1,
|
|
565
565
|
size: 20,
|
|
566
|
-
cell:
|
|
567
|
-
}), h =
|
|
566
|
+
cell: St
|
|
567
|
+
}), h = T.display({
|
|
568
568
|
id: "rowSelection",
|
|
569
|
-
header:
|
|
570
|
-
cell:
|
|
569
|
+
header: ht,
|
|
570
|
+
cell: gt,
|
|
571
571
|
meta: { selectedRowIds: s },
|
|
572
572
|
enableResizing: !1,
|
|
573
573
|
enableSorting: !1,
|
|
574
574
|
size: 36
|
|
575
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 ?
|
|
577
|
-
return
|
|
576
|
+
let n = t || "-", o = e.map((e) => e[n]), s = u?.[n], c = r?.[n], l = c === void 0 ? y(o) : c, f = i?.[n];
|
|
577
|
+
return T.accessor((e) => e[n], {
|
|
578
578
|
id: n,
|
|
579
|
-
header:
|
|
580
|
-
cell:
|
|
579
|
+
header: wt,
|
|
580
|
+
cell: Ct,
|
|
581
581
|
meta: {
|
|
582
582
|
headerLabel: a?.[n] ?? n,
|
|
583
583
|
headerIcon: l,
|
|
@@ -585,14 +585,14 @@ function wt(e, t, n = {}) {
|
|
|
585
585
|
renderer: s,
|
|
586
586
|
wrapRows: d,
|
|
587
587
|
search: p,
|
|
588
|
-
getCellStyle: (e) =>
|
|
588
|
+
getCellStyle: (e) => Tt(e, s)
|
|
589
589
|
},
|
|
590
590
|
enableSorting: !1
|
|
591
591
|
});
|
|
592
|
-
}), _ =
|
|
592
|
+
}), _ = T.display({
|
|
593
593
|
id: "rowActions",
|
|
594
594
|
header: "",
|
|
595
|
-
cell:
|
|
595
|
+
cell: vt,
|
|
596
596
|
meta: {
|
|
597
597
|
rowActions: c,
|
|
598
598
|
getRowActions: l
|
|
@@ -610,56 +610,56 @@ function wt(e, t, n = {}) {
|
|
|
610
610
|
}
|
|
611
611
|
//#endregion
|
|
612
612
|
//#region src/components/data-table/data-table-display-menu.tsx
|
|
613
|
-
var
|
|
614
|
-
let t =
|
|
615
|
-
t[0] === e.children ? n = t[1] : (n = /* @__PURE__ */
|
|
613
|
+
var Dt = (e) => {
|
|
614
|
+
let t = X(7), n;
|
|
615
|
+
t[0] === e.children ? n = t[1] : (n = /* @__PURE__ */ Z(J, {
|
|
616
616
|
textStyle: "label/XS/medium",
|
|
617
617
|
color: "fg.muted",
|
|
618
618
|
children: e.children
|
|
619
619
|
}), t[0] = e.children, t[1] = n);
|
|
620
620
|
let r;
|
|
621
|
-
t[2] === e.end ? r = t[3] : (r = e.end ? /* @__PURE__ */
|
|
621
|
+
t[2] === e.end ? r = t[3] : (r = e.end ? /* @__PURE__ */ Z(J, {
|
|
622
622
|
marginLeft: "auto",
|
|
623
623
|
textStyle: "label/XS",
|
|
624
624
|
color: "fg.subtle",
|
|
625
625
|
children: e.end
|
|
626
626
|
}) : null, t[2] = e.end, t[3] = r);
|
|
627
627
|
let i;
|
|
628
|
-
return t[4] !== n || t[5] !== r ? (i = /* @__PURE__ */
|
|
628
|
+
return t[4] !== n || t[5] !== r ? (i = /* @__PURE__ */ Q(H, {
|
|
629
629
|
paddingX: "xs",
|
|
630
630
|
paddingTop: "xs",
|
|
631
631
|
paddingBottom: "2xs",
|
|
632
632
|
children: [n, r]
|
|
633
633
|
}), t[4] = n, t[5] = r, t[6] = i) : i = t[6], i;
|
|
634
|
-
},
|
|
635
|
-
let t =
|
|
634
|
+
}, Ot = (e) => {
|
|
635
|
+
let t = X(14), n;
|
|
636
636
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = { role: "switch" }, t[0] = n) : n = t[0];
|
|
637
637
|
let r;
|
|
638
638
|
t[1] === e ? r = t[2] : (r = (t) => e.onChange(t.checked === !0), t[1] = e, t[2] = r);
|
|
639
639
|
let i;
|
|
640
|
-
t[3] === e.label ? i = t[4] : (i = /* @__PURE__ */
|
|
640
|
+
t[3] === e.label ? i = t[4] : (i = /* @__PURE__ */ Z(J, {
|
|
641
641
|
as: "span",
|
|
642
642
|
textStyle: "label/S/regular",
|
|
643
643
|
children: e.label
|
|
644
644
|
}), t[3] = e.label, t[4] = i);
|
|
645
645
|
let a;
|
|
646
|
-
t[5] === e.hint ? a = t[6] : (a = e.hint ? /* @__PURE__ */
|
|
646
|
+
t[5] === e.hint ? a = t[6] : (a = e.hint ? /* @__PURE__ */ Z(J, {
|
|
647
647
|
as: "span",
|
|
648
648
|
textStyle: "label/XS",
|
|
649
649
|
color: "fg.subtle",
|
|
650
650
|
children: e.hint
|
|
651
651
|
}) : null, t[5] = e.hint, t[6] = a);
|
|
652
652
|
let s;
|
|
653
|
-
t[7] !== i || t[8] !== a ? (s = /* @__PURE__ */
|
|
653
|
+
t[7] !== i || t[8] !== a ? (s = /* @__PURE__ */ Q(H, {
|
|
654
654
|
as: "span",
|
|
655
655
|
gap: "xs",
|
|
656
656
|
children: [i, a]
|
|
657
657
|
}), t[7] = i, t[8] = a, t[9] = s) : s = t[9];
|
|
658
658
|
let c;
|
|
659
|
-
return t[10] !== e.checked || t[11] !== r || t[12] !== s ? (c = /* @__PURE__ */
|
|
659
|
+
return t[10] !== e.checked || t[11] !== r || t[12] !== s ? (c = /* @__PURE__ */ Z(B, {
|
|
660
660
|
paddingX: "xs",
|
|
661
661
|
paddingY: "2xs",
|
|
662
|
-
children: /* @__PURE__ */
|
|
662
|
+
children: /* @__PURE__ */ Z(o, {
|
|
663
663
|
checked: e.checked,
|
|
664
664
|
inputProps: n,
|
|
665
665
|
width: "full",
|
|
@@ -669,11 +669,11 @@ var Tt = (e) => {
|
|
|
669
669
|
children: s
|
|
670
670
|
})
|
|
671
671
|
}), t[10] = e.checked, t[11] = r, t[12] = s, t[13] = c) : c = t[13], c;
|
|
672
|
-
},
|
|
673
|
-
let t =
|
|
672
|
+
}, kt = (e) => {
|
|
673
|
+
let t = X(33), { column: r, checked: i, onColumnVisibilityChange: a } = e, o;
|
|
674
674
|
t[0] === r.id ? o = t[1] : (o = { id: r.id }, t[0] = r.id, t[1] = o);
|
|
675
|
-
let { attributes: s, listeners: l, setNodeRef: u, transform: d, transition: f, isDragging: p } =
|
|
676
|
-
t[2] === d ? m = t[3] : (m =
|
|
675
|
+
let { attributes: s, listeners: l, setNodeRef: u, transform: d, transition: f, isDragging: p } = Me(o), m;
|
|
676
|
+
t[2] === d ? m = t[3] : (m = Pe.Transform.toString(d), t[2] = d, t[3] = m);
|
|
677
677
|
let h = p ? .5 : 1, g;
|
|
678
678
|
t[4] !== m || t[5] !== h || t[6] !== f ? (g = {
|
|
679
679
|
transform: m,
|
|
@@ -683,9 +683,9 @@ var Tt = (e) => {
|
|
|
683
683
|
let _;
|
|
684
684
|
t[8] === Symbol.for("react.memo_cache_sentinel") ? (_ = { bg: "bg.hover" }, t[8] = _) : _ = t[8];
|
|
685
685
|
let v;
|
|
686
|
-
t[9] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */
|
|
686
|
+
t[9] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ Z(Se, { size: 14 }), t[9] = v) : v = t[9];
|
|
687
687
|
let y;
|
|
688
|
-
t[10] !== s || t[11] !== l ? (y = /* @__PURE__ */
|
|
688
|
+
t[10] !== s || t[11] !== l ? (y = /* @__PURE__ */ Z(B, {
|
|
689
689
|
as: "span",
|
|
690
690
|
display: "inline-flex",
|
|
691
691
|
cursor: "grab",
|
|
@@ -695,22 +695,22 @@ var Tt = (e) => {
|
|
|
695
695
|
children: v
|
|
696
696
|
}), t[10] = s, t[11] = l, t[12] = y) : y = t[12];
|
|
697
697
|
let b;
|
|
698
|
-
t[13] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */
|
|
699
|
-
as:
|
|
698
|
+
t[13] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ Z(U, {
|
|
699
|
+
as: ge,
|
|
700
700
|
boxSize: "12px",
|
|
701
701
|
strokeWidth: "3"
|
|
702
702
|
}), t[13] = b) : b = t[13];
|
|
703
703
|
let x;
|
|
704
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];
|
|
705
705
|
let S;
|
|
706
|
-
t[17] === r.label ? S = t[18] : (S = /* @__PURE__ */
|
|
706
|
+
t[17] === r.label ? S = t[18] : (S = /* @__PURE__ */ Z(J, {
|
|
707
707
|
as: "span",
|
|
708
708
|
textStyle: "label/S/regular",
|
|
709
709
|
truncate: !0,
|
|
710
710
|
children: r.label
|
|
711
711
|
}), t[17] = r.label, t[18] = S);
|
|
712
712
|
let C;
|
|
713
|
-
t[19] !== i || t[20] !== x || t[21] !== S ? (C = /* @__PURE__ */
|
|
713
|
+
t[19] !== i || t[20] !== x || t[21] !== S ? (C = /* @__PURE__ */ Z(n, {
|
|
714
714
|
checked: i,
|
|
715
715
|
flex: "1",
|
|
716
716
|
minW: "0",
|
|
@@ -722,14 +722,14 @@ var Tt = (e) => {
|
|
|
722
722
|
let w;
|
|
723
723
|
t[23] === r ? w = t[24] : (w = c(r), t[23] = r, t[24] = w);
|
|
724
724
|
let T;
|
|
725
|
-
t[25] === w ? T = t[26] : (T = /* @__PURE__ */
|
|
725
|
+
t[25] === w ? T = t[26] : (T = /* @__PURE__ */ Z(U, {
|
|
726
726
|
as: w,
|
|
727
727
|
boxSize: "0.75rem",
|
|
728
728
|
color: "fg.subtle",
|
|
729
729
|
flexShrink: 0
|
|
730
730
|
}), t[25] = w, t[26] = T);
|
|
731
731
|
let E;
|
|
732
|
-
return t[27] !== u || t[28] !== C || t[29] !== T || t[30] !== g || t[31] !== y ? (E = /* @__PURE__ */
|
|
732
|
+
return t[27] !== u || t[28] !== C || t[29] !== T || t[30] !== g || t[31] !== y ? (E = /* @__PURE__ */ Q(H, {
|
|
733
733
|
ref: u,
|
|
734
734
|
style: g,
|
|
735
735
|
gap: "2xs",
|
|
@@ -745,10 +745,10 @@ var Tt = (e) => {
|
|
|
745
745
|
T
|
|
746
746
|
]
|
|
747
747
|
}), t[27] = u, t[28] = C, t[29] = T, t[30] = g, t[31] = y, t[32] = E) : E = t[32], E;
|
|
748
|
-
},
|
|
749
|
-
let i =
|
|
748
|
+
}, At = (n) => {
|
|
749
|
+
let i = X(75), { columns: a, settings: o, statsAvailable: s, onSettingsChange: c, onColumnVisibilityChange: l, onColumnReorder: u } = n, d = de(null), f = de(null), [p, m] = fe(!1), [h, g] = fe(""), _;
|
|
750
750
|
i[0] === Symbol.for("react.memo_cache_sentinel") ? (_ = { activationConstraint: { distance: 5 } }, i[0] = _) : _ = i[0];
|
|
751
|
-
let v =
|
|
751
|
+
let v = Ae(ke(De, _)), y;
|
|
752
752
|
if (i[1] !== a || i[2] !== h) {
|
|
753
753
|
let e = h.trim().toLowerCase();
|
|
754
754
|
y = e ? a.filter((t) => t.label.toLowerCase().includes(e)) : a, i[1] = a, i[2] = h, i[3] = y;
|
|
@@ -764,7 +764,7 @@ var Tt = (e) => {
|
|
|
764
764
|
label: "None"
|
|
765
765
|
}, i[9] = C) : C = i[9];
|
|
766
766
|
let w;
|
|
767
|
-
i[10] === a ? w = i[11] : (w = [C, ...a.filter(
|
|
767
|
+
i[10] === a ? w = i[11] : (w = [C, ...a.filter(jt).map(Mt)], i[10] = a, i[11] = w);
|
|
768
768
|
let T = w, E;
|
|
769
769
|
i[12] === u ? E = i[13] : (E = (e) => {
|
|
770
770
|
let { active: t, over: n } = e;
|
|
@@ -778,7 +778,7 @@ var Tt = (e) => {
|
|
|
778
778
|
t instanceof Node && (f.current?.contains(t) || d.current?.contains(t) || m(!1));
|
|
779
779
|
};
|
|
780
780
|
return document.addEventListener("pointerdown", e), () => document.removeEventListener("pointerdown", e);
|
|
781
|
-
}, k = [p], i[14] = p, i[15] = O, i[16] = k),
|
|
781
|
+
}, k = [p], i[14] = p, i[15] = O, i[16] = k), ue(O, k);
|
|
782
782
|
let A, j;
|
|
783
783
|
i[17] === Symbol.for("react.memo_cache_sentinel") ? (A = {
|
|
784
784
|
placement: "bottom-end",
|
|
@@ -786,64 +786,64 @@ var Tt = (e) => {
|
|
|
786
786
|
getAnchorElement: () => d.current
|
|
787
787
|
}, j = (e) => m(e.open), i[17] = A, i[18] = j) : (A = i[17], j = i[18]);
|
|
788
788
|
let M;
|
|
789
|
-
i[19] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */
|
|
789
|
+
i[19] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ Z(e, {
|
|
790
790
|
content: "Display",
|
|
791
|
-
children: /* @__PURE__ */
|
|
791
|
+
children: /* @__PURE__ */ Z(G.Trigger, {
|
|
792
792
|
asChild: !0,
|
|
793
|
-
children: /* @__PURE__ */
|
|
793
|
+
children: /* @__PURE__ */ Z(te, {
|
|
794
794
|
ref: d,
|
|
795
795
|
"aria-label": "Display settings",
|
|
796
796
|
variant: "ghost",
|
|
797
797
|
size: "2xs",
|
|
798
|
-
children: /* @__PURE__ */
|
|
798
|
+
children: /* @__PURE__ */ Z(U, { as: Te })
|
|
799
799
|
})
|
|
800
800
|
})
|
|
801
801
|
}), i[19] = M) : M = i[19];
|
|
802
802
|
let N;
|
|
803
|
-
i[20] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */
|
|
803
|
+
i[20] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ Z(Dt, { children: "TABLE DISPLAY" }), i[20] = N) : N = i[20];
|
|
804
804
|
let P;
|
|
805
|
-
i[21] !== T || i[22] !== c || i[23] !== o.grouping ? (P = T.length > 1 ? /* @__PURE__ */
|
|
805
|
+
i[21] !== T || i[22] !== c || i[23] !== o.grouping ? (P = T.length > 1 ? /* @__PURE__ */ Z(I, {
|
|
806
806
|
label: "Grouping",
|
|
807
807
|
value: o.grouping,
|
|
808
808
|
options: T,
|
|
809
809
|
onSelect: (e) => c({ grouping: e })
|
|
810
810
|
}) : null, i[21] = T, i[22] = c, i[23] = o.grouping, i[24] = P) : P = i[24];
|
|
811
|
-
let
|
|
811
|
+
let F = n.sortControl, L;
|
|
812
812
|
i[25] === c ? L = i[26] : (L = (e) => c({ rowNumbers: e }), i[25] = c, i[26] = L);
|
|
813
813
|
let R;
|
|
814
|
-
i[27] !== o.rowNumbers || i[28] !== L ? (R = /* @__PURE__ */
|
|
814
|
+
i[27] !== o.rowNumbers || i[28] !== L ? (R = /* @__PURE__ */ Z(Ot, {
|
|
815
815
|
label: "Row numbers",
|
|
816
816
|
checked: o.rowNumbers,
|
|
817
817
|
onChange: L
|
|
818
818
|
}), i[27] = o.rowNumbers, i[28] = L, i[29] = R) : R = i[29];
|
|
819
|
-
let
|
|
820
|
-
i[30] === c ?
|
|
819
|
+
let z;
|
|
820
|
+
i[30] === c ? z = i[31] : (z = (e) => c({ wrapRows: e }), i[30] = c, i[31] = z);
|
|
821
821
|
let ee;
|
|
822
|
-
i[32] !== o.wrapRows || i[33] !==
|
|
822
|
+
i[32] !== o.wrapRows || i[33] !== z ? (ee = /* @__PURE__ */ Z(Ot, {
|
|
823
823
|
label: "Wrap rows",
|
|
824
824
|
checked: o.wrapRows,
|
|
825
|
-
onChange:
|
|
826
|
-
}), i[32] = o.wrapRows, i[33] =
|
|
825
|
+
onChange: z
|
|
826
|
+
}), i[32] = o.wrapRows, i[33] = z, i[34] = ee) : ee = i[34];
|
|
827
827
|
let V;
|
|
828
|
-
i[35] !== c || i[36] !== o.showStats || i[37] !== s ? (V = s ? /* @__PURE__ */
|
|
828
|
+
i[35] !== c || i[36] !== o.showStats || i[37] !== s ? (V = s ? /* @__PURE__ */ Z(Ot, {
|
|
829
829
|
label: "Statistics",
|
|
830
830
|
hint: "from column stats",
|
|
831
831
|
checked: o.showStats,
|
|
832
832
|
onChange: (e) => c({ showStats: e })
|
|
833
833
|
}) : null, i[35] = c, i[36] = o.showStats, i[37] = s, i[38] = V) : V = i[38];
|
|
834
|
-
let
|
|
835
|
-
i[39] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
834
|
+
let H;
|
|
835
|
+
i[39] === Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ Z(B, {
|
|
836
836
|
borderTopWidth: "1px",
|
|
837
837
|
borderColor: "border.subtle",
|
|
838
838
|
marginY: "2xs"
|
|
839
|
-
}), i[39] =
|
|
840
|
-
let
|
|
841
|
-
i[40] ===
|
|
842
|
-
end:
|
|
839
|
+
}), i[39] = H) : H = i[39];
|
|
840
|
+
let ne = `${S} of ${a.length} shown`, W;
|
|
841
|
+
i[40] === ne ? W = i[41] : (W = /* @__PURE__ */ Z(Dt, {
|
|
842
|
+
end: ne,
|
|
843
843
|
children: "COLUMNS"
|
|
844
|
-
}), i[40] =
|
|
844
|
+
}), i[40] = ne, i[41] = W);
|
|
845
845
|
let K;
|
|
846
|
-
i[42] === h ? K = i[43] : (K = /* @__PURE__ */
|
|
846
|
+
i[42] === h ? K = i[43] : (K = /* @__PURE__ */ Z(r, {
|
|
847
847
|
value: h,
|
|
848
848
|
placeholder: "Search columns",
|
|
849
849
|
onValueChange: g
|
|
@@ -851,41 +851,41 @@ var Tt = (e) => {
|
|
|
851
851
|
let q;
|
|
852
852
|
i[44] === Symbol.for("react.memo_cache_sentinel") ? (q = { overscrollBehavior: "contain" }, i[44] = q) : q = i[44];
|
|
853
853
|
let J;
|
|
854
|
-
i[45] === a ? J = i[46] : (J = a.map(
|
|
855
|
-
let
|
|
854
|
+
i[45] === a ? J = i[46] : (J = a.map(Nt), i[45] = a, i[46] = J);
|
|
855
|
+
let Y;
|
|
856
856
|
if (i[47] !== b || i[48] !== l || i[49] !== o.hiddenColumns) {
|
|
857
857
|
let e;
|
|
858
|
-
i[51] !== l || i[52] !== o.hiddenColumns ? (e = (e) => /* @__PURE__ */
|
|
858
|
+
i[51] !== l || i[52] !== o.hiddenColumns ? (e = (e) => /* @__PURE__ */ Z(kt, {
|
|
859
859
|
column: e,
|
|
860
860
|
checked: !o.hiddenColumns.includes(e.id),
|
|
861
861
|
onColumnVisibilityChange: l
|
|
862
|
-
}, e.id), i[51] = l, i[52] = o.hiddenColumns, i[53] = e) : e = i[53],
|
|
863
|
-
} else
|
|
864
|
-
let
|
|
865
|
-
i[54] ===
|
|
862
|
+
}, e.id), i[51] = l, i[52] = o.hiddenColumns, i[53] = e) : e = i[53], Y = b.map(e), i[47] = b, i[48] = l, i[49] = o.hiddenColumns, i[50] = Y;
|
|
863
|
+
} else Y = i[50];
|
|
864
|
+
let ae;
|
|
865
|
+
i[54] === Y ? ae = i[55] : (ae = /* @__PURE__ */ Z(ie, {
|
|
866
866
|
gap: "1px",
|
|
867
867
|
padding: "2xs",
|
|
868
|
-
children:
|
|
869
|
-
}), i[54] =
|
|
870
|
-
let
|
|
871
|
-
i[56] !== J || i[57] !==
|
|
868
|
+
children: Y
|
|
869
|
+
}), i[54] = Y, i[55] = ae);
|
|
870
|
+
let oe;
|
|
871
|
+
i[56] !== J || i[57] !== ae ? (oe = /* @__PURE__ */ Z(je, {
|
|
872
872
|
items: J,
|
|
873
|
-
strategy:
|
|
874
|
-
children:
|
|
875
|
-
}), i[56] = J, i[57] =
|
|
876
|
-
let
|
|
877
|
-
i[59] !== D || i[60] !== v || i[61] !==
|
|
873
|
+
strategy: Ne,
|
|
874
|
+
children: ae
|
|
875
|
+
}), i[56] = J, i[57] = ae, i[58] = oe) : oe = i[58];
|
|
876
|
+
let se;
|
|
877
|
+
i[59] !== D || i[60] !== v || i[61] !== oe ? (se = /* @__PURE__ */ Z(t, {
|
|
878
878
|
maxH: "280px",
|
|
879
879
|
viewportProps: q,
|
|
880
|
-
children: /* @__PURE__ */
|
|
880
|
+
children: /* @__PURE__ */ Z(Ee, {
|
|
881
881
|
sensors: v,
|
|
882
|
-
collisionDetection:
|
|
882
|
+
collisionDetection: Oe,
|
|
883
883
|
onDragEnd: D,
|
|
884
|
-
children:
|
|
884
|
+
children: oe
|
|
885
885
|
})
|
|
886
|
-
}), i[59] = D, i[60] = v, i[61] =
|
|
887
|
-
let
|
|
888
|
-
i[63] !== n.sortControl || i[64] !== P || i[65] !== R || i[66] !== ee || i[67] !== V || i[68] !==
|
|
886
|
+
}), i[59] = D, i[60] = v, i[61] = oe, i[62] = se) : se = i[62];
|
|
887
|
+
let ce;
|
|
888
|
+
i[63] !== n.sortControl || i[64] !== P || i[65] !== R || i[66] !== ee || i[67] !== V || i[68] !== W || i[69] !== K || i[70] !== se ? (ce = /* @__PURE__ */ Z(re, { children: /* @__PURE__ */ Z(G.Positioner, { children: /* @__PURE__ */ Q(G.Content, {
|
|
889
889
|
ref: f,
|
|
890
890
|
"data-testid": "data-table-display-menu",
|
|
891
891
|
width: "min(300px, calc(100vw - 32px))",
|
|
@@ -894,61 +894,61 @@ var Tt = (e) => {
|
|
|
894
894
|
children: [
|
|
895
895
|
N,
|
|
896
896
|
P,
|
|
897
|
-
|
|
897
|
+
F,
|
|
898
898
|
R,
|
|
899
899
|
ee,
|
|
900
900
|
V,
|
|
901
|
-
|
|
902
|
-
|
|
901
|
+
H,
|
|
902
|
+
W,
|
|
903
903
|
K,
|
|
904
|
-
|
|
904
|
+
se
|
|
905
905
|
]
|
|
906
|
-
}) }) }), i[63] = n.sortControl, i[64] = P, i[65] = R, i[66] = ee, i[67] = V, i[68] =
|
|
907
|
-
let
|
|
908
|
-
return i[72] !== p || i[73] !==
|
|
906
|
+
}) }) }), i[63] = n.sortControl, i[64] = P, i[65] = R, i[66] = ee, i[67] = V, i[68] = W, i[69] = K, i[70] = se, i[71] = ce) : ce = i[71];
|
|
907
|
+
let le;
|
|
908
|
+
return i[72] !== p || i[73] !== ce ? (le = /* @__PURE__ */ Q(G.Root, {
|
|
909
909
|
open: p,
|
|
910
910
|
closeOnInteractOutside: !1,
|
|
911
911
|
positioning: A,
|
|
912
912
|
onOpenChange: j,
|
|
913
|
-
children: [M,
|
|
914
|
-
}), i[72] = p, i[73] =
|
|
913
|
+
children: [M, ce]
|
|
914
|
+
}), i[72] = p, i[73] = ce, i[74] = le) : le = i[74], le;
|
|
915
915
|
};
|
|
916
|
-
function
|
|
916
|
+
function jt(e) {
|
|
917
917
|
return e.groupable;
|
|
918
918
|
}
|
|
919
|
-
function
|
|
919
|
+
function Mt(e) {
|
|
920
920
|
return {
|
|
921
921
|
value: e.id,
|
|
922
922
|
label: e.label
|
|
923
923
|
};
|
|
924
924
|
}
|
|
925
|
-
function
|
|
925
|
+
function Nt(e) {
|
|
926
926
|
return e.id;
|
|
927
927
|
}
|
|
928
928
|
//#endregion
|
|
929
929
|
//#region src/components/data-table/data-table-group-row.tsx
|
|
930
|
-
var
|
|
931
|
-
let t =
|
|
932
|
-
t[0] === c ? l = t[1] : (l = /* @__PURE__ */
|
|
930
|
+
var Pt = (e) => {
|
|
931
|
+
let t = X(15), { label: n, count: r, collapsed: i, columnCount: a, onToggle: o } = e, s = !i, c = i ? ve : _e, l;
|
|
932
|
+
t[0] === c ? l = t[1] : (l = /* @__PURE__ */ Z(U, {
|
|
933
933
|
as: c,
|
|
934
934
|
boxSize: "0.875rem",
|
|
935
935
|
color: "fg.muted"
|
|
936
936
|
}), t[0] = c, t[1] = l);
|
|
937
937
|
let u;
|
|
938
|
-
t[2] === n ? u = t[3] : (u = /* @__PURE__ */
|
|
938
|
+
t[2] === n ? u = t[3] : (u = /* @__PURE__ */ Z(J, {
|
|
939
939
|
as: "span",
|
|
940
940
|
textStyle: "label/S/medium",
|
|
941
941
|
children: n
|
|
942
942
|
}), t[2] = n, t[3] = u);
|
|
943
943
|
let d;
|
|
944
|
-
t[4] === r ? d = t[5] : (d = /* @__PURE__ */
|
|
944
|
+
t[4] === r ? d = t[5] : (d = /* @__PURE__ */ Z(J, {
|
|
945
945
|
as: "span",
|
|
946
946
|
textStyle: "label/XS",
|
|
947
947
|
color: "fg.muted",
|
|
948
948
|
children: r
|
|
949
949
|
}), t[4] = r, t[5] = d);
|
|
950
950
|
let f;
|
|
951
|
-
t[6] !== o || t[7] !== s || t[8] !== l || t[9] !== u || t[10] !== d ? (f = /* @__PURE__ */
|
|
951
|
+
t[6] !== o || t[7] !== s || t[8] !== l || t[9] !== u || t[10] !== d ? (f = /* @__PURE__ */ Q(Y.button, {
|
|
952
952
|
type: "button",
|
|
953
953
|
"aria-expanded": s,
|
|
954
954
|
display: "flex",
|
|
@@ -963,12 +963,12 @@ var Mt = (e) => {
|
|
|
963
963
|
]
|
|
964
964
|
}), t[6] = o, t[7] = s, t[8] = l, t[9] = u, t[10] = d, t[11] = f) : f = t[11];
|
|
965
965
|
let p;
|
|
966
|
-
return t[12] !== a || t[13] !== f ? (p = /* @__PURE__ */
|
|
966
|
+
return t[12] !== a || t[13] !== f ? (p = /* @__PURE__ */ Z(q.Row, {
|
|
967
967
|
"data-testid": "data-table-group-row",
|
|
968
968
|
bg: "bg.subtle",
|
|
969
969
|
borderBottom: "1px solid",
|
|
970
970
|
borderColor: "border.subtle",
|
|
971
|
-
children: /* @__PURE__ */
|
|
971
|
+
children: /* @__PURE__ */ Z(q.Cell, {
|
|
972
972
|
colSpan: a,
|
|
973
973
|
paddingX: "xs",
|
|
974
974
|
paddingY: "2xs",
|
|
@@ -976,18 +976,322 @@ var Mt = (e) => {
|
|
|
976
976
|
children: f
|
|
977
977
|
})
|
|
978
978
|
}), t[12] = a, t[13] = f, t[14] = p) : p = t[14], p;
|
|
979
|
-
},
|
|
979
|
+
}, Ft = le(() => import("./data-table-stat-chart-content-waJAm_nt.js").then((e) => ({ default: e.DataTableStatChart }))), It = (e) => {
|
|
980
|
+
let t = X(6), { height: n, ariaLabel: r } = e, i;
|
|
981
|
+
t[0] === e ? i = t[1] : (i = /* @__PURE__ */ Z(oe, {
|
|
982
|
+
fallback: null,
|
|
983
|
+
children: /* @__PURE__ */ Z(Ft, { ...e })
|
|
984
|
+
}), t[0] = e, t[1] = i);
|
|
985
|
+
let a;
|
|
986
|
+
return t[2] !== r || t[3] !== n || t[4] !== i ? (a = /* @__PURE__ */ Z(B, {
|
|
987
|
+
height: n,
|
|
988
|
+
width: "full",
|
|
989
|
+
minWidth: "0",
|
|
990
|
+
"aria-label": r,
|
|
991
|
+
children: i
|
|
992
|
+
}), t[2] = r, t[3] = n, t[4] = i, t[5] = a) : a = t[5], a;
|
|
993
|
+
}, Lt = (e) => v(e) ? e.sortValue : e, Rt = (e, t) => e.map((e) => Lt(e[t])).filter((e) => e != null && e !== ""), zt = (e, t) => new Set(Rt(e, t)).size, Bt = (e, t, n) => {
|
|
994
|
+
let r = Rt(e, t), i = /* @__PURE__ */ new Map();
|
|
995
|
+
for (let e of r) i.set(e, (i.get(e) ?? 0) + 1);
|
|
996
|
+
let a = [...i.entries()].map(([e, t]) => ({
|
|
997
|
+
label: String(e),
|
|
998
|
+
count: t,
|
|
999
|
+
percentage: Math.round(t / r.length * 100)
|
|
1000
|
+
})).sort((e, t) => t.count - e.count || e.label.localeCompare(t.label)), o = a.slice(0, n), s = a.slice(n).reduce((e, t) => e + t.count, 0);
|
|
1001
|
+
return s === 0 ? o : [...o, {
|
|
1002
|
+
label: "Other",
|
|
1003
|
+
count: s,
|
|
1004
|
+
percentage: Math.round(s / r.length * 100)
|
|
1005
|
+
}];
|
|
1006
|
+
}, Vt = (e, t, n) => {
|
|
1007
|
+
let r = Rt(e, t).filter((e) => typeof e == "number");
|
|
1008
|
+
if (r.length === 0) return null;
|
|
1009
|
+
let i = Math.min(...r), a = Math.max(...r), o = (a - i) / n, s = Array.from({ length: n }, (e, t) => ({
|
|
1010
|
+
start: i + o * t,
|
|
1011
|
+
end: i + o * (t + 1),
|
|
1012
|
+
count: 0
|
|
1013
|
+
}));
|
|
1014
|
+
for (let e of r) {
|
|
1015
|
+
let t = e === a || o === 0 ? n - 1 : Math.floor((e - i) / o);
|
|
1016
|
+
s[t].count += 1;
|
|
1017
|
+
}
|
|
1018
|
+
return {
|
|
1019
|
+
min: i,
|
|
1020
|
+
max: a,
|
|
1021
|
+
bins: s
|
|
1022
|
+
};
|
|
1023
|
+
}, $ = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }).format, Ht = "vis.categorical.1", Ut = (e) => {
|
|
1024
|
+
let t = X(10), { value: n, count: r } = e, i;
|
|
1025
|
+
t[0] === n ? i = t[1] : (i = /* @__PURE__ */ Z(J, {
|
|
1026
|
+
textStyle: "label/L/medium",
|
|
1027
|
+
lineHeight: "1",
|
|
1028
|
+
maxWidth: "100%",
|
|
1029
|
+
truncate: !0,
|
|
1030
|
+
children: n
|
|
1031
|
+
}), t[0] = n, t[1] = i);
|
|
1032
|
+
let a;
|
|
1033
|
+
t[2] === r ? a = t[3] : (a = $(r), t[2] = r, t[3] = a);
|
|
1034
|
+
let o = r === 1 ? "value" : "values", s;
|
|
1035
|
+
t[4] !== a || t[5] !== o ? (s = /* @__PURE__ */ Q(J, {
|
|
1036
|
+
textStyle: "label/XS",
|
|
1037
|
+
color: "fg.muted",
|
|
1038
|
+
children: [
|
|
1039
|
+
a,
|
|
1040
|
+
" ",
|
|
1041
|
+
o
|
|
1042
|
+
]
|
|
1043
|
+
}), t[4] = a, t[5] = o, t[6] = s) : s = t[6];
|
|
1044
|
+
let c;
|
|
1045
|
+
return t[7] !== i || t[8] !== s ? (c = /* @__PURE__ */ Q(V, {
|
|
1046
|
+
"data-single-value-stat": !0,
|
|
1047
|
+
direction: "column",
|
|
1048
|
+
gap: "2xs",
|
|
1049
|
+
alignItems: "flex-start",
|
|
1050
|
+
minWidth: "0",
|
|
1051
|
+
children: [i, s]
|
|
1052
|
+
}), t[7] = i, t[8] = s, t[9] = c) : c = t[9], c;
|
|
1053
|
+
}, Wt = (e) => {
|
|
1054
|
+
let t = X(22), { rows: n, columnId: r } = e, i, a, o, s, c, l, u, d;
|
|
1055
|
+
if (t[0] !== r || t[1] !== n) {
|
|
1056
|
+
let e = zt(n, r);
|
|
1057
|
+
a = V, l = "column", u = "2xs", d = "flex-start", i = J, o = "label/L/medium", s = "1", c = $(e), t[0] = r, t[1] = n, t[2] = i, t[3] = a, t[4] = o, t[5] = s, t[6] = c, t[7] = l, t[8] = u, t[9] = d;
|
|
1058
|
+
} else i = t[2], a = t[3], o = t[4], s = t[5], c = t[6], l = t[7], u = t[8], d = t[9];
|
|
1059
|
+
let f;
|
|
1060
|
+
t[10] !== i || t[11] !== o || t[12] !== s || t[13] !== c ? (f = /* @__PURE__ */ Z(i, {
|
|
1061
|
+
textStyle: o,
|
|
1062
|
+
lineHeight: s,
|
|
1063
|
+
children: c
|
|
1064
|
+
}), t[10] = i, t[11] = o, t[12] = s, t[13] = c, t[14] = f) : f = t[14];
|
|
1065
|
+
let p;
|
|
1066
|
+
t[15] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ Z(J, {
|
|
1067
|
+
textStyle: "label/XS/regular",
|
|
1068
|
+
color: "fg.muted",
|
|
1069
|
+
children: "unique values"
|
|
1070
|
+
}), t[15] = p) : p = t[15];
|
|
1071
|
+
let m;
|
|
1072
|
+
return t[16] !== a || t[17] !== l || t[18] !== u || t[19] !== d || t[20] !== f ? (m = /* @__PURE__ */ Q(a, {
|
|
1073
|
+
direction: l,
|
|
1074
|
+
gap: u,
|
|
1075
|
+
alignItems: d,
|
|
1076
|
+
children: [f, p]
|
|
1077
|
+
}), t[16] = a, t[17] = l, t[18] = u, t[19] = d, t[20] = f, t[21] = m) : m = t[21], m;
|
|
1078
|
+
}, Gt = (e) => {
|
|
1079
|
+
let t = X(36), { rows: n, columnId: r, binCount: i } = e, a, o, s, c, l, u, d, f, p, m, h, g, _, v;
|
|
1080
|
+
if (t[0] !== i || t[1] !== r || t[2] !== n) {
|
|
1081
|
+
u = Symbol.for("react.early_return_sentinel");
|
|
1082
|
+
bb0: {
|
|
1083
|
+
let e = Vt(n, r, i);
|
|
1084
|
+
if (!e) {
|
|
1085
|
+
let e;
|
|
1086
|
+
t[17] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ Z(J, {
|
|
1087
|
+
textStyle: "label/XS/regular",
|
|
1088
|
+
color: "fg.muted",
|
|
1089
|
+
children: "No numeric values"
|
|
1090
|
+
}), t[17] = e) : e = t[17], u = e;
|
|
1091
|
+
break bb0;
|
|
1092
|
+
}
|
|
1093
|
+
let y = e.bins.reduce(Xt, 0);
|
|
1094
|
+
if (e.min === e.max) {
|
|
1095
|
+
u = /* @__PURE__ */ Z(Ut, {
|
|
1096
|
+
value: $(e.min),
|
|
1097
|
+
count: y
|
|
1098
|
+
});
|
|
1099
|
+
break bb0;
|
|
1100
|
+
}
|
|
1101
|
+
s = V, h = "column", g = "100%", _ = "2xs", v = /* @__PURE__ */ Z(It, {
|
|
1102
|
+
data: e.bins,
|
|
1103
|
+
dataKey: "count",
|
|
1104
|
+
color: Ht,
|
|
1105
|
+
height: "40px",
|
|
1106
|
+
ariaLabel: `Distribution for ${r}`,
|
|
1107
|
+
tooltipLabel: Zt,
|
|
1108
|
+
tooltipValue: Qt,
|
|
1109
|
+
tooltipSeriesLabel: "Count"
|
|
1110
|
+
}), o = V, f = "space-between", p = "xs", m = /* @__PURE__ */ Z(J, {
|
|
1111
|
+
textStyle: "label/XS/regular",
|
|
1112
|
+
color: "fg.muted",
|
|
1113
|
+
children: $(e.min)
|
|
1114
|
+
}), a = J, c = "label/XS/regular", l = "fg.muted", d = $(e.max);
|
|
1115
|
+
}
|
|
1116
|
+
t[0] = i, t[1] = r, t[2] = n, t[3] = a, t[4] = o, t[5] = s, t[6] = c, t[7] = l, t[8] = u, t[9] = d, t[10] = f, t[11] = p, t[12] = m, t[13] = h, t[14] = g, t[15] = _, t[16] = v;
|
|
1117
|
+
} else a = t[3], o = t[4], s = t[5], c = t[6], l = t[7], u = t[8], d = t[9], f = t[10], p = t[11], m = t[12], h = t[13], g = t[14], _ = t[15], v = t[16];
|
|
1118
|
+
if (u !== Symbol.for("react.early_return_sentinel")) return u;
|
|
1119
|
+
let y;
|
|
1120
|
+
t[18] !== a || t[19] !== c || t[20] !== l || t[21] !== d ? (y = /* @__PURE__ */ Z(a, {
|
|
1121
|
+
textStyle: c,
|
|
1122
|
+
color: l,
|
|
1123
|
+
children: d
|
|
1124
|
+
}), t[18] = a, t[19] = c, t[20] = l, t[21] = d, t[22] = y) : y = t[22];
|
|
1125
|
+
let b;
|
|
1126
|
+
t[23] !== o || t[24] !== y || t[25] !== f || t[26] !== p || t[27] !== m ? (b = /* @__PURE__ */ Q(o, {
|
|
1127
|
+
justifyContent: f,
|
|
1128
|
+
gap: p,
|
|
1129
|
+
children: [m, y]
|
|
1130
|
+
}), t[23] = o, t[24] = y, t[25] = f, t[26] = p, t[27] = m, t[28] = b) : b = t[28];
|
|
1131
|
+
let x;
|
|
1132
|
+
return t[29] !== s || t[30] !== b || t[31] !== h || t[32] !== g || t[33] !== _ || t[34] !== v ? (x = /* @__PURE__ */ Q(s, {
|
|
1133
|
+
direction: h,
|
|
1134
|
+
width: g,
|
|
1135
|
+
gap: _,
|
|
1136
|
+
children: [v, b]
|
|
1137
|
+
}), t[29] = s, t[30] = b, t[31] = h, t[32] = g, t[33] = _, t[34] = v, t[35] = x) : x = t[35], x;
|
|
1138
|
+
}, Kt = (e) => {
|
|
1139
|
+
let t = X(15), { rows: n, columnId: r, limit: i } = e, a, o, s, c, l, u;
|
|
1140
|
+
if (t[0] !== r || t[1] !== i || t[2] !== n) {
|
|
1141
|
+
u = Symbol.for("react.early_return_sentinel");
|
|
1142
|
+
bb0: {
|
|
1143
|
+
let e = Bt(n, r, i);
|
|
1144
|
+
if (e.length === 1 && e[0]) {
|
|
1145
|
+
u = /* @__PURE__ */ Z(Ut, {
|
|
1146
|
+
value: e[0].label,
|
|
1147
|
+
count: e[0].count
|
|
1148
|
+
});
|
|
1149
|
+
break bb0;
|
|
1150
|
+
}
|
|
1151
|
+
a = V, o = "column", s = "100%", c = "2xs", l = e.map(tn);
|
|
1152
|
+
}
|
|
1153
|
+
t[0] = r, t[1] = i, t[2] = n, t[3] = a, t[4] = o, t[5] = s, t[6] = c, t[7] = l, t[8] = u;
|
|
1154
|
+
} else a = t[3], o = t[4], s = t[5], c = t[6], l = t[7], u = t[8];
|
|
1155
|
+
if (u !== Symbol.for("react.early_return_sentinel")) return u;
|
|
1156
|
+
let d;
|
|
1157
|
+
return t[9] !== a || t[10] !== o || t[11] !== s || t[12] !== c || t[13] !== l ? (d = /* @__PURE__ */ Z(a, {
|
|
1158
|
+
direction: o,
|
|
1159
|
+
width: s,
|
|
1160
|
+
gap: c,
|
|
1161
|
+
children: l
|
|
1162
|
+
}), t[9] = a, t[10] = o, t[11] = s, t[12] = c, t[13] = l, t[14] = d) : d = t[14], d;
|
|
1163
|
+
}, qt = (e) => {
|
|
1164
|
+
let t = X(11), { rows: n, columnId: r, stat: i } = e;
|
|
1165
|
+
if (i.type === "unique") {
|
|
1166
|
+
let e;
|
|
1167
|
+
return t[0] !== r || t[1] !== n ? (e = /* @__PURE__ */ Z(Wt, {
|
|
1168
|
+
rows: n,
|
|
1169
|
+
columnId: r
|
|
1170
|
+
}), t[0] = r, t[1] = n, t[2] = e) : e = t[2], e;
|
|
1171
|
+
}
|
|
1172
|
+
if (i.type === "histogram") {
|
|
1173
|
+
let e = i.bins ?? 10, a;
|
|
1174
|
+
return t[3] !== r || t[4] !== n || t[5] !== e ? (a = /* @__PURE__ */ Z(Gt, {
|
|
1175
|
+
rows: n,
|
|
1176
|
+
columnId: r,
|
|
1177
|
+
binCount: e
|
|
1178
|
+
}), t[3] = r, t[4] = n, t[5] = e, t[6] = a) : a = t[6], a;
|
|
1179
|
+
}
|
|
1180
|
+
let a = i.limit ?? 2, o;
|
|
1181
|
+
return t[7] !== r || t[8] !== n || t[9] !== a ? (o = /* @__PURE__ */ Z(Kt, {
|
|
1182
|
+
rows: n,
|
|
1183
|
+
columnId: r,
|
|
1184
|
+
limit: a
|
|
1185
|
+
}), t[7] = r, t[8] = n, t[9] = a, t[10] = o) : o = t[10], o;
|
|
1186
|
+
}, Jt = (e) => {
|
|
1187
|
+
let t = X(12), { header: n, headerGroup: r, rows: i, columnStats: a, fullWidth: o } = e, s = a[n.column.id], c = s?.type, l;
|
|
1188
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (l = { borderRight: "none" }, t[0] = l) : l = t[0];
|
|
1189
|
+
let u = o && r.headers.indexOf(n) === r.headers.length - 1 ? void 0 : `calc(var(--header-${n.id}-size) * 1px)`, d;
|
|
1190
|
+
t[1] === u ? d = t[2] : (d = { width: u }, t[1] = u, t[2] = d);
|
|
1191
|
+
let f;
|
|
1192
|
+
t[3] !== n.column.id || t[4] !== i || t[5] !== s ? (f = s ? /* @__PURE__ */ Z(qt, {
|
|
1193
|
+
rows: i,
|
|
1194
|
+
columnId: n.column.id,
|
|
1195
|
+
stat: s
|
|
1196
|
+
}) : null, t[3] = n.column.id, t[4] = i, t[5] = s, t[6] = f) : f = t[6];
|
|
1197
|
+
let p;
|
|
1198
|
+
return t[7] !== n.column.id || t[8] !== c || t[9] !== d || t[10] !== f ? (p = /* @__PURE__ */ Z(q.ColumnHeader, {
|
|
1199
|
+
"data-column-id": n.column.id,
|
|
1200
|
+
"data-stat-type": c,
|
|
1201
|
+
borderRight: "1px solid",
|
|
1202
|
+
_last: l,
|
|
1203
|
+
borderColor: "border.subtle",
|
|
1204
|
+
padding: "xs",
|
|
1205
|
+
verticalAlign: "middle",
|
|
1206
|
+
overflow: "hidden",
|
|
1207
|
+
style: d,
|
|
1208
|
+
children: f
|
|
1209
|
+
}), t[7] = n.column.id, t[8] = c, t[9] = d, t[10] = f, t[11] = p) : p = t[11], p;
|
|
1210
|
+
}, Yt = (e) => {
|
|
1211
|
+
let t = X(8), { headerGroup: n, rows: r, columnStats: i, fullWidth: a, noBorder: o } = e;
|
|
1212
|
+
if (!n.headers.some((e) => i[e.column.id])) return null;
|
|
1213
|
+
let s = o ? "none" : "1px solid", c;
|
|
1214
|
+
t[0] !== i || t[1] !== a || t[2] !== n || t[3] !== r ? (c = n.headers.map((e) => /* @__PURE__ */ Z(Jt, {
|
|
1215
|
+
header: e,
|
|
1216
|
+
headerGroup: n,
|
|
1217
|
+
rows: r,
|
|
1218
|
+
columnStats: i,
|
|
1219
|
+
fullWidth: a
|
|
1220
|
+
}, e.id)), t[0] = i, t[1] = a, t[2] = n, t[3] = r, t[4] = c) : c = t[4];
|
|
1221
|
+
let l;
|
|
1222
|
+
return t[5] !== s || t[6] !== c ? (l = /* @__PURE__ */ Z(q.Row, {
|
|
1223
|
+
className: "data-table-stats-row",
|
|
1224
|
+
borderRight: s,
|
|
1225
|
+
borderColor: "border.subtle",
|
|
1226
|
+
children: c
|
|
1227
|
+
}), t[5] = s, t[6] = c, t[7] = l) : l = t[7], l;
|
|
1228
|
+
};
|
|
1229
|
+
function Xt(e, t) {
|
|
1230
|
+
return e + t.count;
|
|
1231
|
+
}
|
|
1232
|
+
function Zt(e) {
|
|
1233
|
+
return `${$(e.start)} – ${$(e.end)}`;
|
|
1234
|
+
}
|
|
1235
|
+
function Qt(e) {
|
|
1236
|
+
return `${$(Number(e))} values`;
|
|
1237
|
+
}
|
|
1238
|
+
function $t(e) {
|
|
1239
|
+
return `${e.label} · ${$(e.count)} values`;
|
|
1240
|
+
}
|
|
1241
|
+
function en(e) {
|
|
1242
|
+
return `${$(Number(e))}%`;
|
|
1243
|
+
}
|
|
1244
|
+
function tn(e) {
|
|
1245
|
+
return /* @__PURE__ */ Q(B, {
|
|
1246
|
+
position: "relative",
|
|
1247
|
+
height: "18px",
|
|
1248
|
+
children: [/* @__PURE__ */ Z(It, {
|
|
1249
|
+
data: [e],
|
|
1250
|
+
dataKey: "percentage",
|
|
1251
|
+
categoryKey: "label",
|
|
1252
|
+
color: Ht,
|
|
1253
|
+
height: "18px",
|
|
1254
|
+
ariaLabel: `${e.label}: ${e.percentage}%`,
|
|
1255
|
+
layout: "vertical",
|
|
1256
|
+
domain: [0, 100],
|
|
1257
|
+
barSize: 18,
|
|
1258
|
+
tooltipLabel: $t,
|
|
1259
|
+
tooltipValue: en,
|
|
1260
|
+
tooltipSeriesLabel: "Share"
|
|
1261
|
+
}), /* @__PURE__ */ Q(V, {
|
|
1262
|
+
position: "absolute",
|
|
1263
|
+
inset: "0",
|
|
1264
|
+
paddingX: "2xs",
|
|
1265
|
+
justifyContent: "space-between",
|
|
1266
|
+
gap: "xs",
|
|
1267
|
+
pointerEvents: "none",
|
|
1268
|
+
children: [/* @__PURE__ */ Z(J, {
|
|
1269
|
+
textStyle: "label/2XS",
|
|
1270
|
+
color: "fg.inverted",
|
|
1271
|
+
truncate: !0,
|
|
1272
|
+
children: e.label
|
|
1273
|
+
}), /* @__PURE__ */ Q(J, {
|
|
1274
|
+
textStyle: "label/2XS/medium",
|
|
1275
|
+
color: "fg.muted",
|
|
1276
|
+
children: [e.percentage, "%"]
|
|
1277
|
+
})]
|
|
1278
|
+
})]
|
|
1279
|
+
}, e.label);
|
|
1280
|
+
}
|
|
1281
|
+
//#endregion
|
|
1282
|
+
//#region src/components/data-table/data-table-table-parts.tsx
|
|
1283
|
+
var nn = /* @__PURE__ */ new Set([
|
|
980
1284
|
"rowIndex",
|
|
981
1285
|
"rowSelection",
|
|
982
1286
|
"rowActions"
|
|
983
|
-
]),
|
|
984
|
-
let t =
|
|
985
|
-
t[0] === e.icon ? n = t[1] : (n = /* @__PURE__ */
|
|
1287
|
+
]), rn = (e) => e === "asc" ? me : e === "desc" ? pe : ye, an = (e) => {
|
|
1288
|
+
let t = X(9), n;
|
|
1289
|
+
t[0] === e.icon ? n = t[1] : (n = /* @__PURE__ */ Z(U, {
|
|
986
1290
|
as: e.icon,
|
|
987
1291
|
boxSize: "16px"
|
|
988
1292
|
}), t[0] = e.icon, t[1] = n);
|
|
989
1293
|
let r;
|
|
990
|
-
t[2] !== e.label || t[3] !== e.onActivate || t[4] !== n ? (r = /* @__PURE__ */
|
|
1294
|
+
t[2] !== e.label || t[3] !== e.onActivate || t[4] !== n ? (r = /* @__PURE__ */ Z(i, {
|
|
991
1295
|
asChild: !0,
|
|
992
1296
|
variant: "full-width",
|
|
993
1297
|
label: e.label,
|
|
@@ -995,30 +1299,30 @@ var Mt = (e) => {
|
|
|
995
1299
|
onActivate: e.onActivate
|
|
996
1300
|
}), t[2] = e.label, t[3] = e.onActivate, t[4] = n, t[5] = r) : r = t[5];
|
|
997
1301
|
let a;
|
|
998
|
-
return t[6] !== e.value || t[7] !== r ? (a = /* @__PURE__ */
|
|
1302
|
+
return t[6] !== e.value || t[7] !== r ? (a = /* @__PURE__ */ Z(W.Item, {
|
|
999
1303
|
value: e.value,
|
|
1000
1304
|
asChild: !0,
|
|
1001
1305
|
children: r
|
|
1002
1306
|
}), t[6] = e.value, t[7] = r, t[8] = a) : a = t[8], a;
|
|
1003
|
-
},
|
|
1004
|
-
let n =
|
|
1307
|
+
}, on = (t) => {
|
|
1308
|
+
let n = X(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;
|
|
1005
1309
|
if (n[0] !== c || n[1] !== s || n[2] !== a || n[3] !== o || n[4] !== r || n[5] !== i) {
|
|
1006
|
-
let t = s?.sortFor(c), F = !!s && !
|
|
1007
|
-
n[32] !== c || n[33] !== r ? (I = c === "rowSelection" ? "Select all" :
|
|
1310
|
+
let t = s?.sortFor(c), F = !!s && !nn.has(c), I;
|
|
1311
|
+
n[32] !== c || n[33] !== r ? (I = c === "rowSelection" ? "Select all" : Fe(r.column.columnDef.header, r.getContext()), n[32] = c, n[33] = r, n[34] = I) : I = n[34];
|
|
1008
1312
|
let L = I;
|
|
1009
|
-
d =
|
|
1313
|
+
d = q.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";
|
|
1010
1314
|
let R = a && i.headers.indexOf(r) === i.headers.length - 1 ? void 0 : `calc(var(--header-${r.id}-size) * 1px)`;
|
|
1011
|
-
n[36] === R ? D = n[37] : (D = { width: R }, n[36] = R, n[37] = D), u = e, N = L, P = o, l =
|
|
1315
|
+
n[36] === R ? D = n[37] : (D = { width: R }, n[36] = R, n[37] = D), u = e, N = L, P = o, l = V, f = "group", p = "center", w = "space-between", O = "1", k = "1", A = "0";
|
|
1012
1316
|
let z;
|
|
1013
|
-
n[38] === r ? z = n[39] : (z =
|
|
1317
|
+
n[38] === r ? z = n[39] : (z = Fe(r.column.columnDef.header, r.getContext()), n[38] = r, n[39] = z), n[40] === z ? j = n[41] : (j = /* @__PURE__ */ Z(J, {
|
|
1014
1318
|
as: "div",
|
|
1015
1319
|
textStyle: "label/S/medium",
|
|
1016
1320
|
lineHeight: "1.2",
|
|
1017
1321
|
truncate: !0,
|
|
1018
1322
|
children: z
|
|
1019
|
-
}), n[40] = z, n[41] = j), M = F && s ? /* @__PURE__ */
|
|
1323
|
+
}), n[40] = z, n[41] = j), M = F && s ? /* @__PURE__ */ Q(W.Root, { children: [/* @__PURE__ */ Z(W.Trigger, {
|
|
1020
1324
|
asChild: !0,
|
|
1021
|
-
children: /* @__PURE__ */
|
|
1325
|
+
children: /* @__PURE__ */ Z(te, {
|
|
1022
1326
|
ml: "2px",
|
|
1023
1327
|
size: "2xs",
|
|
1024
1328
|
minW: "auto",
|
|
@@ -1026,52 +1330,52 @@ var Mt = (e) => {
|
|
|
1026
1330
|
"aria-label": t ? `Sorted ${t}` : "Column options",
|
|
1027
1331
|
variant: "ghost",
|
|
1028
1332
|
color: t ? "fg" : "fg.subtle",
|
|
1029
|
-
children: /* @__PURE__ */
|
|
1030
|
-
as:
|
|
1333
|
+
children: /* @__PURE__ */ Z(U, {
|
|
1334
|
+
as: rn(t),
|
|
1031
1335
|
boxSize: "14px"
|
|
1032
1336
|
})
|
|
1033
1337
|
})
|
|
1034
|
-
}), /* @__PURE__ */
|
|
1338
|
+
}), /* @__PURE__ */ Z(re, { children: /* @__PURE__ */ Z(W.Positioner, { children: /* @__PURE__ */ Q(W.Content, {
|
|
1035
1339
|
zIndex: "popover",
|
|
1036
1340
|
bg: "bg",
|
|
1037
1341
|
children: [
|
|
1038
|
-
/* @__PURE__ */
|
|
1342
|
+
/* @__PURE__ */ Z(an, {
|
|
1039
1343
|
value: "sort-asc",
|
|
1040
1344
|
label: "Sort ascending",
|
|
1041
|
-
icon:
|
|
1345
|
+
icon: me,
|
|
1042
1346
|
onActivate: () => s.onSort(c, "asc")
|
|
1043
1347
|
}),
|
|
1044
|
-
/* @__PURE__ */
|
|
1348
|
+
/* @__PURE__ */ Z(an, {
|
|
1045
1349
|
value: "sort-desc",
|
|
1046
1350
|
label: "Sort descending",
|
|
1047
|
-
icon:
|
|
1351
|
+
icon: pe,
|
|
1048
1352
|
onActivate: () => s.onSort(c, "desc")
|
|
1049
1353
|
}),
|
|
1050
|
-
/* @__PURE__ */
|
|
1051
|
-
/* @__PURE__ */
|
|
1354
|
+
/* @__PURE__ */ Z(W.Separator, {}),
|
|
1355
|
+
/* @__PURE__ */ Z(an, {
|
|
1052
1356
|
value: "filter",
|
|
1053
1357
|
label: "Filter by this field",
|
|
1054
|
-
icon:
|
|
1358
|
+
icon: Ce,
|
|
1055
1359
|
onActivate: () => s.onFilterBy(c)
|
|
1056
1360
|
}),
|
|
1057
|
-
/* @__PURE__ */
|
|
1361
|
+
/* @__PURE__ */ Z(an, {
|
|
1058
1362
|
value: "hide",
|
|
1059
1363
|
label: "Hide column",
|
|
1060
|
-
icon:
|
|
1364
|
+
icon: xe,
|
|
1061
1365
|
onActivate: () => s.onHide(c)
|
|
1062
1366
|
})
|
|
1063
1367
|
]
|
|
1064
1368
|
}) }) })] }) : null, n[0] = c, n[1] = s, n[2] = a, n[3] = o, n[4] = r, n[5] = i, n[6] = l, n[7] = u, n[8] = d, n[9] = f, n[10] = p, n[11] = m, n[12] = h, n[13] = g, n[14] = _, n[15] = v, n[16] = y, n[17] = b, n[18] = x, n[19] = S, n[20] = C, n[21] = w, n[22] = T, n[23] = E, n[24] = D, n[25] = O, n[26] = k, n[27] = A, n[28] = j, n[29] = M, n[30] = N, n[31] = P;
|
|
1065
1369
|
} else l = n[6], u = n[7], d = n[8], f = n[9], p = n[10], m = n[11], h = n[12], g = n[13], _ = n[14], v = n[15], y = n[16], b = n[17], x = n[18], S = n[19], C = n[20], w = n[21], T = n[22], E = n[23], D = n[24], O = n[25], k = n[26], A = n[27], j = n[28], M = n[29], N = n[30], P = n[31];
|
|
1066
1370
|
let F;
|
|
1067
|
-
n[42] === r ? F = n[43] : (F = r.column.getCanResize() && /* @__PURE__ */
|
|
1371
|
+
n[42] === r ? F = n[43] : (F = r.column.getCanResize() && /* @__PURE__ */ Z("span", {
|
|
1068
1372
|
onDoubleClick: () => r.column.resetSize(),
|
|
1069
1373
|
onMouseDown: r.getResizeHandler(),
|
|
1070
1374
|
onTouchStart: r.getResizeHandler(),
|
|
1071
1375
|
className: `resizer ${r.column.getIsResizing() ? "isResizing" : ""}`
|
|
1072
1376
|
}), n[42] = r, n[43] = F);
|
|
1073
1377
|
let I;
|
|
1074
|
-
n[44] !== l || n[45] !== f || n[46] !== p || n[47] !== w || n[48] !== F || n[49] !== O || n[50] !== k || n[51] !== A || n[52] !== j || n[53] !== M ? (I = /* @__PURE__ */
|
|
1378
|
+
n[44] !== l || n[45] !== f || n[46] !== p || n[47] !== w || n[48] !== F || n[49] !== O || n[50] !== k || n[51] !== A || n[52] !== j || n[53] !== M ? (I = /* @__PURE__ */ Q(l, {
|
|
1075
1379
|
className: f,
|
|
1076
1380
|
alignItems: p,
|
|
1077
1381
|
justifyContent: w,
|
|
@@ -1085,13 +1389,13 @@ var Mt = (e) => {
|
|
|
1085
1389
|
]
|
|
1086
1390
|
}), n[44] = l, n[45] = f, n[46] = p, n[47] = w, n[48] = F, n[49] = O, n[50] = k, n[51] = A, n[52] = j, n[53] = M, n[54] = I) : I = n[54];
|
|
1087
1391
|
let L;
|
|
1088
|
-
n[55] !== u || n[56] !== I || n[57] !== N || n[58] !== P ? (L = /* @__PURE__ */
|
|
1392
|
+
n[55] !== u || n[56] !== I || n[57] !== N || n[58] !== P ? (L = /* @__PURE__ */ Z(u, {
|
|
1089
1393
|
content: N,
|
|
1090
1394
|
disabled: P,
|
|
1091
1395
|
children: I
|
|
1092
1396
|
}), n[55] = u, n[56] = I, n[57] = N, n[58] = P, n[59] = L) : L = n[59];
|
|
1093
1397
|
let R;
|
|
1094
|
-
return 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 ? (R = /* @__PURE__ */
|
|
1398
|
+
return 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 ? (R = /* @__PURE__ */ Z(d, {
|
|
1095
1399
|
"data-column-id": m,
|
|
1096
1400
|
textTransform: h,
|
|
1097
1401
|
borderRight: g,
|
|
@@ -1106,8 +1410,8 @@ var Mt = (e) => {
|
|
|
1106
1410
|
style: D,
|
|
1107
1411
|
children: L
|
|
1108
1412
|
}, 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;
|
|
1109
|
-
},
|
|
1110
|
-
let t =
|
|
1413
|
+
}, sn = (e) => {
|
|
1414
|
+
let t = X(26), { cell: n, row: r, wrapRows: i, getCellContextMenuActions: o } = e, s = n.column.columnDef.meta, c;
|
|
1111
1415
|
t[0] !== n || t[1] !== s ? (c = s?.getCellStyle?.(n.getValue()), t[0] = n, t[1] = s, t[2] = c) : c = t[2];
|
|
1112
1416
|
let l = c, u;
|
|
1113
1417
|
if (t[3] !== n || t[4] !== o || t[5] !== r.id || t[6] !== r.original) {
|
|
@@ -1127,9 +1431,9 @@ var Mt = (e) => {
|
|
|
1127
1431
|
let d = u, f = n.column.id, p = i ? "anywhere" : void 0, m = i ? void 0 : "10", h = i ? void 0 : "10", g;
|
|
1128
1432
|
t[8] === Symbol.for("react.memo_cache_sentinel") ? (g = { borderRight: "none" }, t[8] = g) : g = t[8];
|
|
1129
1433
|
let _ = n.id, v = i ? void 0 : "ellipsis", y = i ? "top" : "middle", b = i ? "normal" : "nowrap", x;
|
|
1130
|
-
t[9] === n ? x = t[10] : (x =
|
|
1434
|
+
t[9] === n ? x = t[10] : (x = Fe(n.column.columnDef.cell, n.getContext()), t[9] = n, t[10] = x);
|
|
1131
1435
|
let S;
|
|
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__ */
|
|
1436
|
+
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__ */ Z(q.Cell, {
|
|
1133
1437
|
"data-column-id": f,
|
|
1134
1438
|
width: "fit-content",
|
|
1135
1439
|
maxWidth: "12rem",
|
|
@@ -1152,12 +1456,12 @@ var Mt = (e) => {
|
|
|
1152
1456
|
let C = S;
|
|
1153
1457
|
if (d.length === 0) return C;
|
|
1154
1458
|
let w;
|
|
1155
|
-
return t[22] !== n.id || t[23] !== C || t[24] !== d ? (w = /* @__PURE__ */
|
|
1459
|
+
return t[22] !== n.id || t[23] !== C || t[24] !== d ? (w = /* @__PURE__ */ Z(a, {
|
|
1156
1460
|
actions: d,
|
|
1157
1461
|
children: C
|
|
1158
1462
|
}, n.id), t[22] = n.id, t[23] = C, t[24] = d, t[25] = w) : w = t[25], w;
|
|
1159
|
-
},
|
|
1160
|
-
let t =
|
|
1463
|
+
}, cn = (e) => {
|
|
1464
|
+
let t = X(23), { row: n, noBorder: r, rowIsInteractive: i, rowIsActive: a, rowIsSelected: o, wrapRows: s, onRowClick: c, getCellContextMenuActions: l } = e, u = n.id, d = a ? "true" : void 0, f = o ? "true" : void 0, p = o ? "true" : void 0, m = s ? void 0 : "10", h = i ? "pointer" : void 0, g;
|
|
1161
1465
|
t[0] !== c || t[1] !== n.original || t[2] !== i ? (g = i ? () => c?.(n.original) : void 0, t[0] = c, t[1] = n.original, t[2] = i, t[3] = g) : g = t[3];
|
|
1162
1466
|
let _ = r ? "none" : "1px solid", v = r ? "none" : "1px solid", y = r ? "none" : "1px solid", b;
|
|
1163
1467
|
t[4] === y ? b = t[5] : (b = {
|
|
@@ -1165,14 +1469,14 @@ var Mt = (e) => {
|
|
|
1165
1469
|
borderColor: "border.subtle"
|
|
1166
1470
|
}, t[4] = y, t[5] = b);
|
|
1167
1471
|
let x = a ? "bg.active" : "bg", S;
|
|
1168
|
-
t[6] !== l || t[7] !== n || t[8] !== s ? (S = n.getVisibleCells().map((e) => /* @__PURE__ */
|
|
1472
|
+
t[6] !== l || t[7] !== n || t[8] !== s ? (S = n.getVisibleCells().map((e) => /* @__PURE__ */ Z(sn, {
|
|
1169
1473
|
cell: e,
|
|
1170
1474
|
row: n,
|
|
1171
1475
|
wrapRows: s,
|
|
1172
1476
|
getCellContextMenuActions: l
|
|
1173
1477
|
}, e.id)), t[6] = l, t[7] = n, t[8] = s, t[9] = S) : S = t[9];
|
|
1174
1478
|
let C;
|
|
1175
|
-
return 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 ? (C = /* @__PURE__ */
|
|
1479
|
+
return 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 ? (C = /* @__PURE__ */ Z(q.Row, {
|
|
1176
1480
|
"data-active": d,
|
|
1177
1481
|
"data-selected": f,
|
|
1178
1482
|
"aria-selected": p,
|
|
@@ -1187,16 +1491,16 @@ var Mt = (e) => {
|
|
|
1187
1491
|
background: x,
|
|
1188
1492
|
children: S
|
|
1189
1493
|
}, 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;
|
|
1190
|
-
},
|
|
1494
|
+
}, ln = (e) => {
|
|
1191
1495
|
let t = {};
|
|
1192
1496
|
for (let n of e.getFlatHeaders()) t[`--header-${n.id}-size`] = n.getSize(), t[`--col-${n.column.id}-size`] = n.column.getSize();
|
|
1193
1497
|
return t;
|
|
1194
|
-
},
|
|
1195
|
-
let n =
|
|
1498
|
+
}, un = (e) => {
|
|
1499
|
+
let n = X(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: y, getCellContextMenuActions: x } = e, S = y !== void 0 && y, C;
|
|
1196
1500
|
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) {
|
|
1197
|
-
let e = new Map(r.getRowModel().rows.map(
|
|
1198
|
-
n[18] === r ?
|
|
1199
|
-
let T =
|
|
1501
|
+
let e = new Map(r.getRowModel().rows.map(dn)), y;
|
|
1502
|
+
n[18] === r ? y = n[19] : (y = ln(r), n[18] = r, n[19] = y);
|
|
1503
|
+
let T = y, E = r.getSelectedRowModel().rows, D = `data-table${f ? " full-width" : ""}`, O;
|
|
1200
1504
|
n[20] !== f || n[21] !== r ? (O = f ? "100%" : r.getTotalSize(), n[20] = f, n[21] = r, n[22] = O) : O = n[22];
|
|
1201
1505
|
let k;
|
|
1202
1506
|
n[23] !== T || n[24] !== O ? (k = {
|
|
@@ -1204,11 +1508,11 @@ var Mt = (e) => {
|
|
|
1204
1508
|
width: O
|
|
1205
1509
|
}, n[23] = T, n[24] = O, n[25] = k) : k = n[25];
|
|
1206
1510
|
let A;
|
|
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__ */
|
|
1511
|
+
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__ */ Q(ae, { children: [/* @__PURE__ */ Z(q.Row, {
|
|
1208
1512
|
className: "data-table-column-header-row",
|
|
1209
1513
|
borderRight: d ? "none" : "1px solid",
|
|
1210
1514
|
borderColor: "border.subtle",
|
|
1211
|
-
children: e.headers.map((t) => /* @__PURE__ */
|
|
1515
|
+
children: e.headers.map((t) => /* @__PURE__ */ Z(on, {
|
|
1212
1516
|
header: t,
|
|
1213
1517
|
headerGroup: e,
|
|
1214
1518
|
table: r,
|
|
@@ -1216,22 +1520,19 @@ var Mt = (e) => {
|
|
|
1216
1520
|
hasDescription: !!_?.[t.column.id],
|
|
1217
1521
|
fieldMenu: l
|
|
1218
1522
|
}, t.id))
|
|
1219
|
-
}), v && s.showStats ? /* @__PURE__ */
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
noBorder: d,
|
|
1226
|
-
fullWidth: f
|
|
1227
|
-
})
|
|
1523
|
+
}), v && s.showStats ? /* @__PURE__ */ Z(Yt, {
|
|
1524
|
+
headerGroup: e,
|
|
1525
|
+
rows: c,
|
|
1526
|
+
columnStats: v,
|
|
1527
|
+
noBorder: d,
|
|
1528
|
+
fullWidth: f
|
|
1228
1529
|
}) : 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];
|
|
1229
1530
|
let j;
|
|
1230
|
-
n[35] === A ? j = n[36] : (j = /* @__PURE__ */
|
|
1531
|
+
n[35] === A ? j = n[36] : (j = /* @__PURE__ */ Z(q.Header, { children: A }), n[35] = A, n[36] = j);
|
|
1231
1532
|
let M = i.map((t) => {
|
|
1232
1533
|
if (t.kind === "group") {
|
|
1233
1534
|
let { key: e } = t.group;
|
|
1234
|
-
return /* @__PURE__ */
|
|
1535
|
+
return /* @__PURE__ */ Z(Pt, {
|
|
1235
1536
|
label: t.group.label,
|
|
1236
1537
|
count: t.group.rows.length,
|
|
1237
1538
|
collapsed: a.has(e),
|
|
@@ -1240,7 +1541,7 @@ var Mt = (e) => {
|
|
|
1240
1541
|
}, `group:${e}`);
|
|
1241
1542
|
}
|
|
1242
1543
|
let n = e.get(t.row.id);
|
|
1243
|
-
return n ? /* @__PURE__ */
|
|
1544
|
+
return n ? /* @__PURE__ */ Z(cn, {
|
|
1244
1545
|
row: n,
|
|
1245
1546
|
noBorder: d,
|
|
1246
1547
|
rowIsInteractive: p ? m?.(n.original) ?? !0 : !1,
|
|
@@ -1255,39 +1556,39 @@ var Mt = (e) => {
|
|
|
1255
1556
|
getCellContextMenuActions: x
|
|
1256
1557
|
}, n.id) : null;
|
|
1257
1558
|
}), N;
|
|
1258
|
-
n[37] === M ? N = n[38] : (N = /* @__PURE__ */
|
|
1559
|
+
n[37] === M ? N = n[38] : (N = /* @__PURE__ */ Z(q.Body, { children: M }), n[37] = M, n[38] = N);
|
|
1259
1560
|
let P;
|
|
1260
|
-
n[39] !== D || n[40] !== k || n[41] !== j || n[42] !== N ? (P = /* @__PURE__ */
|
|
1561
|
+
n[39] !== D || n[40] !== k || n[41] !== j || n[42] !== N ? (P = /* @__PURE__ */ Z(t, {
|
|
1261
1562
|
height: "100%",
|
|
1262
1563
|
maxWidth: "unset",
|
|
1263
1564
|
showHorizontalScrollbar: !0,
|
|
1264
|
-
children: /* @__PURE__ */
|
|
1565
|
+
children: /* @__PURE__ */ Q(q.Root, {
|
|
1265
1566
|
className: D,
|
|
1266
1567
|
style: k,
|
|
1267
1568
|
children: [j, N]
|
|
1268
1569
|
})
|
|
1269
|
-
}), n[39] = D, n[40] = k, n[41] = j, n[42] = N, n[43] = P) : P = n[43],
|
|
1570
|
+
}), n[39] = D, n[40] = k, n[41] = j, n[42] = N, n[43] = P) : P = n[43], C = /* @__PURE__ */ Q(B, {
|
|
1270
1571
|
position: "relative",
|
|
1271
1572
|
flex: "1",
|
|
1272
1573
|
minHeight: "0",
|
|
1273
|
-
children: [P, u && E.length > 0 ? /* @__PURE__ */
|
|
1574
|
+
children: [P, u && E.length > 0 ? /* @__PURE__ */ Z(b, {
|
|
1274
1575
|
selectedCount: E.length,
|
|
1275
1576
|
totalCount: c.length,
|
|
1276
1577
|
onClearSelection: () => r.toggleAllRowsSelected(!1),
|
|
1277
1578
|
onSelectAll: () => r.toggleAllRowsSelected(!0),
|
|
1278
1579
|
actions: u,
|
|
1279
|
-
selectedRows:
|
|
1580
|
+
selectedRows: w(E)
|
|
1280
1581
|
}) : null]
|
|
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] =
|
|
1282
|
-
} else
|
|
1283
|
-
return
|
|
1582
|
+
}), 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] = C;
|
|
1583
|
+
} else C = n[17];
|
|
1584
|
+
return C;
|
|
1284
1585
|
};
|
|
1285
|
-
function
|
|
1586
|
+
function dn(e) {
|
|
1286
1587
|
return [e.id, e];
|
|
1287
1588
|
}
|
|
1288
1589
|
//#endregion
|
|
1289
1590
|
//#region src/components/data-table/data-table-grouping.ts
|
|
1290
|
-
var
|
|
1591
|
+
var fn = (e, t, n, r) => {
|
|
1291
1592
|
let i = (e) => t.has(e.key) ? [] : e.rows, a = e.reduce((e, t) => e + i(t).length, 0), o = Math.max(1, Math.ceil(a / r)), s = Math.min(n, o - 1), c = s * r, l = c + r, u = [], d = 0;
|
|
1292
1593
|
for (let t of e) {
|
|
1293
1594
|
let e = i(t), n = d;
|
|
@@ -1307,7 +1608,7 @@ var Ut = (e, t, n, r) => {
|
|
|
1307
1608
|
pageCount: o,
|
|
1308
1609
|
page: s
|
|
1309
1610
|
};
|
|
1310
|
-
},
|
|
1611
|
+
}, pn = (e, t, n) => {
|
|
1311
1612
|
let r = Math.max(1, Math.ceil(e.length / n)), i = Math.min(t, r - 1);
|
|
1312
1613
|
return {
|
|
1313
1614
|
entries: e.slice(i * n, (i + 1) * n).map((e) => ({
|
|
@@ -1317,37 +1618,37 @@ var Ut = (e, t, n, r) => {
|
|
|
1317
1618
|
pageCount: r,
|
|
1318
1619
|
page: i
|
|
1319
1620
|
};
|
|
1320
|
-
},
|
|
1621
|
+
}, mn = (e) => {
|
|
1321
1622
|
let { noBorder: t, fullWidth: n, onRowClick: r, isRowInteractive: i, activeRowId: a, columnIcons: o, columnDescriptions: c, compactHeaders: l, columnStats: u, columnRenderers: f, initialPageSize: m, pageSizeOptions: g = [
|
|
1322
1623
|
10,
|
|
1323
1624
|
20,
|
|
1324
1625
|
30,
|
|
1325
1626
|
50,
|
|
1326
1627
|
100
|
|
1327
|
-
], rowActions: v = [], getRowActions: y, enableRowActivation:
|
|
1628
|
+
], rowActions: v = [], getRowActions: y, enableRowActivation: b = !1, getCellContextMenuActions: S } = e, w = C(e), { settings: T, setSettings: E, sorts: O, setSorts: A, filter: j, startRule: M } = w, N = JSON.stringify([
|
|
1328
1629
|
j,
|
|
1329
|
-
|
|
1630
|
+
O,
|
|
1330
1631
|
T.grouping,
|
|
1331
1632
|
w.deferredSearch
|
|
1332
|
-
]), [P, F] =
|
|
1633
|
+
]), [P, F] = fe({
|
|
1333
1634
|
key: N,
|
|
1334
1635
|
index: 0
|
|
1335
|
-
}),
|
|
1636
|
+
}), I = P.key === N ? P.index : 0, z = (e) => F({
|
|
1336
1637
|
key: N,
|
|
1337
1638
|
index: e
|
|
1338
|
-
}), [B,
|
|
1639
|
+
}), [B, ee] = fe(() => h({ initialPageSize: m })), [H, U] = fe(() => /* @__PURE__ */ new Set()), [te, ne] = fe({}), W = k(e), G = x(e), { groups: re } = w, K = re ? re.flatMap((e) => e.rows) : w.shownRows, ie = re ? fn(re, H, I, B) : pn(K, I, B), q = K.map((e) => e.sourceRow), J = new Map(K.map((e) => [e.sourceRow, e.id])), Y = Et(q, w.visibleColumnKeys, {
|
|
1339
1640
|
columnIcons: o,
|
|
1340
1641
|
columnDescriptions: c,
|
|
1341
1642
|
compactHeaders: l,
|
|
1342
1643
|
enableSelection: W,
|
|
1343
1644
|
rowActions: v,
|
|
1344
1645
|
getRowActions: y,
|
|
1345
|
-
selectedRowIds:
|
|
1646
|
+
selectedRowIds: te,
|
|
1346
1647
|
columnRenderers: f,
|
|
1347
1648
|
wrapRows: T.wrapRows,
|
|
1348
1649
|
rowNumbers: T.rowNumbers,
|
|
1349
1650
|
search: w.deferredSearch
|
|
1350
|
-
}),
|
|
1651
|
+
}), X = Le({
|
|
1351
1652
|
data: q,
|
|
1352
1653
|
columns: Y,
|
|
1353
1654
|
defaultColumn: {
|
|
@@ -1355,18 +1656,18 @@ var Ut = (e, t, n, r) => {
|
|
|
1355
1656
|
minSize: 40,
|
|
1356
1657
|
maxSize: 800
|
|
1357
1658
|
},
|
|
1358
|
-
state: { rowSelection:
|
|
1659
|
+
state: { rowSelection: te },
|
|
1359
1660
|
getRowId: (e) => J.get(e) ?? "",
|
|
1360
1661
|
columnResizeMode: "onChange",
|
|
1361
1662
|
columnResizeDirection: "ltr",
|
|
1362
|
-
onRowSelectionChange:
|
|
1363
|
-
getCoreRowModel:
|
|
1663
|
+
onRowSelectionChange: ne,
|
|
1664
|
+
getCoreRowModel: Ie(),
|
|
1364
1665
|
enableMultiRowSelection: W,
|
|
1365
1666
|
enableRowSelection: W,
|
|
1366
1667
|
autoResetAll: !1
|
|
1367
|
-
}),
|
|
1668
|
+
}), ae = {
|
|
1368
1669
|
sortFor: (e) => {
|
|
1369
|
-
let t =
|
|
1670
|
+
let t = O[0];
|
|
1370
1671
|
return t?.attributeId === e ? t.direction : void 0;
|
|
1371
1672
|
},
|
|
1372
1673
|
onSort: (e, t) => A([{
|
|
@@ -1377,47 +1678,47 @@ var Ut = (e, t, n, r) => {
|
|
|
1377
1678
|
let t = s(w.attributes, e);
|
|
1378
1679
|
t && M(t);
|
|
1379
1680
|
},
|
|
1380
|
-
onHide: (e) =>
|
|
1381
|
-
},
|
|
1382
|
-
return /* @__PURE__ */
|
|
1681
|
+
onHide: (e) => E({ hiddenColumns: _(T.hiddenColumns, e, !1) })
|
|
1682
|
+
}, oe = w.rows.length > 0 && w.shownRows.length === 0 && !!w.deferredSearch.trim();
|
|
1683
|
+
return /* @__PURE__ */ Q(V, {
|
|
1383
1684
|
direction: "column",
|
|
1384
1685
|
height: "100%",
|
|
1385
1686
|
width: "100%",
|
|
1386
1687
|
children: [
|
|
1387
|
-
/* @__PURE__ */
|
|
1688
|
+
/* @__PURE__ */ Z(d, {
|
|
1388
1689
|
itemLabel: e.itemLabel,
|
|
1389
1690
|
view: w,
|
|
1390
1691
|
viewsSource: e.viewsSource,
|
|
1391
1692
|
actions: e.toolbarActions,
|
|
1392
|
-
displayControl: /* @__PURE__ */
|
|
1693
|
+
displayControl: /* @__PURE__ */ Z(At, {
|
|
1393
1694
|
columns: w.attributes,
|
|
1394
|
-
sortControl: /* @__PURE__ */
|
|
1695
|
+
sortControl: /* @__PURE__ */ Z(R, {
|
|
1395
1696
|
fields: w.attributes,
|
|
1396
|
-
sorts:
|
|
1697
|
+
sorts: O,
|
|
1397
1698
|
onSortsChange: A
|
|
1398
1699
|
}),
|
|
1399
1700
|
settings: T,
|
|
1400
1701
|
statsAvailable: !!u,
|
|
1401
|
-
onSettingsChange:
|
|
1402
|
-
onColumnVisibilityChange: (e, t) =>
|
|
1403
|
-
onColumnReorder: (e, t) =>
|
|
1702
|
+
onSettingsChange: E,
|
|
1703
|
+
onColumnVisibilityChange: (e, t) => E({ hiddenColumns: _(T.hiddenColumns, e, t) }),
|
|
1704
|
+
onColumnReorder: (e, t) => E({ columnOrder: D(w.orderedColumnKeys, e, t) })
|
|
1404
1705
|
})
|
|
1405
1706
|
}),
|
|
1406
|
-
e.contentPlaceholder ?? (
|
|
1707
|
+
e.contentPlaceholder ?? (oe ? /* @__PURE__ */ Z(L, {
|
|
1407
1708
|
search: w.deferredSearch,
|
|
1408
1709
|
onClearSearch: () => w.setSearch("")
|
|
1409
|
-
}) : /* @__PURE__ */
|
|
1410
|
-
table:
|
|
1411
|
-
entries:
|
|
1710
|
+
}) : /* @__PURE__ */ Z(un, {
|
|
1711
|
+
table: X,
|
|
1712
|
+
entries: ie.entries,
|
|
1412
1713
|
collapsed: H,
|
|
1413
|
-
onToggleGroup: (e) =>
|
|
1714
|
+
onToggleGroup: (e) => U((t) => {
|
|
1414
1715
|
let n = new Set(t);
|
|
1415
1716
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
1416
1717
|
}),
|
|
1417
1718
|
settings: T,
|
|
1418
1719
|
data: q,
|
|
1419
|
-
fieldMenu:
|
|
1420
|
-
selectionActions: W ?
|
|
1720
|
+
fieldMenu: ae,
|
|
1721
|
+
selectionActions: W ? G : void 0,
|
|
1421
1722
|
noBorder: t,
|
|
1422
1723
|
fullWidth: n,
|
|
1423
1724
|
onRowClick: r,
|
|
@@ -1425,42 +1726,42 @@ var Ut = (e, t, n, r) => {
|
|
|
1425
1726
|
activeRowId: a,
|
|
1426
1727
|
columnDescriptions: c,
|
|
1427
1728
|
columnStats: u,
|
|
1428
|
-
enableRowActivation:
|
|
1429
|
-
getCellContextMenuActions:
|
|
1729
|
+
enableRowActivation: b,
|
|
1730
|
+
getCellContextMenuActions: S
|
|
1430
1731
|
})),
|
|
1431
|
-
|
|
1432
|
-
pageCount:
|
|
1433
|
-
pageIndex:
|
|
1732
|
+
ie.pageCount > 1 ? /* @__PURE__ */ Z(p, {
|
|
1733
|
+
pageCount: ie.pageCount,
|
|
1734
|
+
pageIndex: ie.page,
|
|
1434
1735
|
pageSize: B,
|
|
1435
1736
|
pageSizeOptions: g,
|
|
1436
1737
|
onPageChange: z,
|
|
1437
1738
|
onPageSizeChange: (e) => {
|
|
1438
|
-
|
|
1739
|
+
ee(e), z(0);
|
|
1439
1740
|
}
|
|
1440
1741
|
}) : null
|
|
1441
1742
|
]
|
|
1442
1743
|
});
|
|
1443
|
-
},
|
|
1444
|
-
let t =
|
|
1744
|
+
}, hn = (e) => {
|
|
1745
|
+
let t = X(4);
|
|
1445
1746
|
if (e.editMode) {
|
|
1446
1747
|
let n;
|
|
1447
|
-
return t[0] === e ? n = t[1] : (n = /* @__PURE__ */
|
|
1748
|
+
return t[0] === e ? n = t[1] : (n = /* @__PURE__ */ Z(O, { ...e }), t[0] = e, t[1] = n), n;
|
|
1448
1749
|
}
|
|
1449
1750
|
let n;
|
|
1450
|
-
return t[2] === e ? n = t[3] : (n = /* @__PURE__ */
|
|
1451
|
-
},
|
|
1751
|
+
return t[2] === e ? n = t[3] : (n = /* @__PURE__ */ Z(mn, { ...e }), t[2] = e, t[3] = n), n;
|
|
1752
|
+
}, gn = [
|
|
1452
1753
|
"70%",
|
|
1453
1754
|
"45%",
|
|
1454
1755
|
"60%",
|
|
1455
1756
|
"35%",
|
|
1456
1757
|
"55%"
|
|
1457
|
-
],
|
|
1458
|
-
let t =
|
|
1459
|
-
t[0] !== a || t[1] !== n ? (s = n && n.length > 0 ? n : Array.from({ length: a },
|
|
1758
|
+
], _n = (e) => {
|
|
1759
|
+
let t = X(15), { columns: n, columnCount: r, rowCount: i } = e, a = r === void 0 ? 3 : r, o = i === void 0 ? 5 : i, s;
|
|
1760
|
+
t[0] !== a || t[1] !== n ? (s = n && n.length > 0 ? n : Array.from({ length: a }, vn), t[0] = a, t[1] = n, t[2] = s) : s = t[2];
|
|
1460
1761
|
let c = s, l;
|
|
1461
|
-
t[3] === c ? l = t[4] : (l = c.map(
|
|
1762
|
+
t[3] === c ? l = t[4] : (l = c.map(yn), t[3] = c, t[4] = l);
|
|
1462
1763
|
let u;
|
|
1463
|
-
t[5] === l ? u = t[6] : (u = /* @__PURE__ */
|
|
1764
|
+
t[5] === l ? u = t[6] : (u = /* @__PURE__ */ Z(q.Header, { children: /* @__PURE__ */ Z(q.Row, {
|
|
1464
1765
|
className: "data-table-column-header-row",
|
|
1465
1766
|
borderRight: "1px solid",
|
|
1466
1767
|
borderColor: "border.subtle",
|
|
@@ -1469,34 +1770,34 @@ var Ut = (e, t, n, r) => {
|
|
|
1469
1770
|
let d;
|
|
1470
1771
|
if (t[7] !== c || t[8] !== o) {
|
|
1471
1772
|
let e;
|
|
1472
|
-
t[10] === c ? e = t[11] : (e = (e, t) => /* @__PURE__ */
|
|
1773
|
+
t[10] === c ? e = t[11] : (e = (e, t) => /* @__PURE__ */ Z(q.Row, { children: c.map((e, n) => /* @__PURE__ */ Z(q.Cell, {
|
|
1473
1774
|
padding: "xs",
|
|
1474
1775
|
borderRight: "1px solid",
|
|
1475
1776
|
borderColor: "border.subtle",
|
|
1476
1777
|
_last: { borderRight: "none" },
|
|
1477
1778
|
borderBottom: "none",
|
|
1478
|
-
children: /* @__PURE__ */
|
|
1779
|
+
children: /* @__PURE__ */ Z(K, {
|
|
1479
1780
|
height: "14px",
|
|
1480
|
-
width:
|
|
1781
|
+
width: gn[(t + n) % gn.length],
|
|
1481
1782
|
borderRadius: "xs"
|
|
1482
1783
|
})
|
|
1483
|
-
}, e.id)) }, t), t[10] = c, t[11] = e), d = /* @__PURE__ */
|
|
1784
|
+
}, e.id)) }, t), t[10] = c, t[11] = e), d = /* @__PURE__ */ Z(q.Body, { children: Array.from({ length: o }, e) }), t[7] = c, t[8] = o, t[9] = d;
|
|
1484
1785
|
} else d = t[9];
|
|
1485
1786
|
let f;
|
|
1486
|
-
return t[12] !== u || t[13] !== d ? (f = /* @__PURE__ */
|
|
1787
|
+
return t[12] !== u || t[13] !== d ? (f = /* @__PURE__ */ Q(q.Root, {
|
|
1487
1788
|
className: "data-table full-width",
|
|
1488
1789
|
width: "100%",
|
|
1489
1790
|
children: [u, d]
|
|
1490
1791
|
}), t[12] = u, t[13] = d, t[14] = f) : f = t[14], f;
|
|
1491
1792
|
};
|
|
1492
|
-
function
|
|
1793
|
+
function vn(e, t) {
|
|
1493
1794
|
return {
|
|
1494
1795
|
id: `column-${t + 1}`,
|
|
1495
1796
|
label: ""
|
|
1496
1797
|
};
|
|
1497
1798
|
}
|
|
1498
|
-
function
|
|
1499
|
-
return /* @__PURE__ */
|
|
1799
|
+
function yn(e) {
|
|
1800
|
+
return /* @__PURE__ */ Z(q.ColumnHeader, {
|
|
1500
1801
|
textTransform: "none",
|
|
1501
1802
|
borderRight: "1px solid",
|
|
1502
1803
|
_last: { borderRight: "none" },
|
|
@@ -1504,13 +1805,13 @@ function Xt(e) {
|
|
|
1504
1805
|
paddingX: "xs",
|
|
1505
1806
|
paddingY: "xs",
|
|
1506
1807
|
whiteSpace: "nowrap",
|
|
1507
|
-
children: e.label ? /* @__PURE__ */
|
|
1808
|
+
children: e.label ? /* @__PURE__ */ Z(J, {
|
|
1508
1809
|
as: "div",
|
|
1509
1810
|
textStyle: "label/S/medium",
|
|
1510
1811
|
lineHeight: "1.2",
|
|
1511
1812
|
truncate: !0,
|
|
1512
1813
|
children: e.label
|
|
1513
|
-
}) : /* @__PURE__ */
|
|
1814
|
+
}) : /* @__PURE__ */ Z(K, {
|
|
1514
1815
|
height: "12px",
|
|
1515
1816
|
width: "4rem",
|
|
1516
1817
|
borderRadius: "xs"
|
|
@@ -1518,6 +1819,6 @@ function Xt(e) {
|
|
|
1518
1819
|
}, e.id);
|
|
1519
1820
|
}
|
|
1520
1821
|
//#endregion
|
|
1521
|
-
export {
|
|
1822
|
+
export { hn as DataTable, _n as DataTableSkeleton, f as FriendlyJsonDisplay, S as formatDisplayValue, y as getIcon, E as useDataTableViewStore };
|
|
1522
1823
|
|
|
1523
1824
|
//# sourceMappingURL=data-table.js.map
|