@mechane-ai/elements 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -11
- package/dist/ai.js +175 -148
- package/dist/{categorical-values-CTrHn9jH.js → categorical-values-BnWfIPlv.js} +3 -3
- package/dist/{chart-frame-38ES6kwK.js → chart-frame-Dm8UNfYD.js} +6 -6
- package/dist/{chart-input-C9fu7f1Q.js → chart-input-ceiMZYI-.js} +3 -3
- package/dist/charts/cartesian.js +16 -16
- package/dist/charts/distribution.js +6 -6
- package/dist/charts/graph.js +5 -5
- package/dist/charts/hierarchy.js +3 -3
- package/dist/charts/matrix.js +13 -13
- package/dist/charts/timeline.js +30 -30
- package/dist/charts.js +1 -1
- package/dist/{code-block-BjV2EFZS.js → code-block-D07N6mYS.js} +4 -4
- package/dist/collections.js +414 -395
- package/dist/constants.stylex-bbdiv1fD.js +83 -0
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +5 -5
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +4 -4
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-C460m-O7.js → content-link-CEx2s1MU.js} +1 -1
- package/dist/content.js +5 -5
- package/dist/elements.css +71 -120
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +21 -21
- package/dist/forms.js +1 -1
- package/dist/index.js +1 -1
- package/dist/layout.js +22 -22
- package/dist/navigation/commands.js +6 -6
- package/dist/navigation.js +30 -16
- package/dist/overlays.js +1 -1
- package/dist/packages/ai/src/approval.d.ts +1 -1
- package/dist/packages/ai/src/conversation.d.ts +4 -4
- package/dist/packages/ai/src/index.d.ts +2 -2
- package/dist/packages/ai/src/prompt-input.d.ts +9 -5
- package/dist/packages/charts/src/cartesian/time-series-data.d.ts +1 -1
- package/dist/packages/charts/src/cartesian/time-series.d.ts +2 -2
- package/dist/packages/charts/src/chart-frame.d.ts +2 -2
- package/dist/packages/collections/src/collection-controls.d.ts +8 -7
- package/dist/packages/collections/src/collection-scroll.d.ts +2 -2
- package/dist/packages/collections/src/data-table.d.ts +23 -6
- package/dist/packages/collections/src/index.d.ts +4 -5
- package/dist/packages/content/src/code/code-block.d.ts +4 -4
- package/dist/packages/content/src/diff/diff-source.d.ts +1 -1
- package/dist/packages/content/src/diff/pierre-diff.d.ts +2 -2
- package/dist/packages/content/src/markdown/markdown.d.ts +2 -2
- package/dist/packages/content/src/trace.d.ts +3 -3
- package/dist/packages/core/src/actions.d.ts +2 -2
- package/dist/packages/core/src/surfaces.d.ts +6 -6
- package/dist/packages/core/src/text.d.ts +2 -2
- package/dist/packages/feedback/src/async-region.d.ts +18 -10
- package/dist/packages/feedback/src/control-placeholders.d.ts +10 -5
- package/dist/packages/feedback/src/feedback.d.ts +2 -2
- package/dist/packages/feedback/src/index.d.ts +2 -3
- package/dist/packages/forms/src/form-actions.d.ts +2 -2
- package/dist/packages/forms/src/forms.d.ts +2 -2
- package/dist/packages/forms/src/selection-styles.d.ts +1 -1
- package/dist/packages/foundations/src/constants.stylex.d.ts +90 -0
- package/dist/packages/foundations/src/control-styles.d.ts +21 -0
- package/dist/packages/foundations/src/tokens.d.ts +2 -0
- package/dist/packages/foundations/src/tokens.stylex.d.ts +0 -85
- package/dist/packages/layout/src/app-shell.d.ts +2 -2
- package/dist/packages/layout/src/page-toolbar.d.ts +3 -3
- package/dist/packages/layout/src/record-page.d.ts +2 -2
- package/dist/packages/layout/src/resizable.d.ts +2 -2
- package/dist/packages/layout/src/sidebar.d.ts +6 -6
- package/dist/packages/layout/src/view-stack.d.ts +2 -2
- package/dist/packages/layout/src/workbench.d.ts +2 -2
- package/dist/packages/navigation/src/commands/command.d.ts +3 -3
- package/dist/packages/navigation/src/index.d.ts +2 -2
- package/dist/packages/navigation/src/page-navigation.d.ts +7 -2
- package/dist/packages/overlays/src/drawer.d.ts +2 -2
- package/dist/{pierre-diff-sUAU-xeL.js → pierre-diff-C_j0nxwS.js} +2 -2
- package/dist/pierre-theme-BUeJim8s.js +127 -0
- package/dist/{pierre-tree-DKN2eGlZ.js → pierre-tree-CBBDlJ_Y.js} +4 -4
- package/dist/{src-DOzle5d4.js → src-BkXlN6aZ.js} +180 -195
- package/dist/{src-CI6KtN2w.js → src-C9GQP3px.js} +353 -377
- package/dist/{src-3gzujMhN.js → src-CyJd2qSZ.js} +47 -33
- package/dist/{src-CVlgjAlw.js → src-d7EAi61b.js} +9 -9
- package/dist/theme.js +1 -1
- package/dist/tokens.js +3 -203
- package/dist/tokens.stylex-DTHHFbyl.js +128 -0
- package/package.json +4 -2
- package/packages/foundations/src/constants.stylex.ts +91 -0
- package/packages/foundations/src/tokens.stylex.ts +0 -88
- package/dist/packages/collections/src/table.d.ts +0 -17
- package/dist/packages/feedback/src/loading.d.ts +0 -7
- package/dist/pierre-theme-CBAncKdH.js +0 -126
package/dist/collections.js
CHANGED
|
@@ -1,49 +1,50 @@
|
|
|
1
|
-
import { C as e, c as t, f as n, g as r, w as i } from "./src-
|
|
2
|
-
import { r as a } from "./src-
|
|
3
|
-
import { r as o, t as s } from "./src-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { Fragment as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
1
|
+
import { C as e, c as t, f as n, g as r, w as i } from "./src-CyJd2qSZ.js";
|
|
2
|
+
import { r as a } from "./src-BkXlN6aZ.js";
|
|
3
|
+
import { r as o, t as s } from "./src-d7EAi61b.js";
|
|
4
|
+
import { d as c } from "./src-C9GQP3px.js";
|
|
5
|
+
import { t as l } from "./accessibility-C-aIZ1Yx.js";
|
|
6
|
+
import { l as u, t as d } from "./constants.stylex-bbdiv1fD.js";
|
|
7
|
+
import { mergeProps as f } from "@base-ui/react/merge-props";
|
|
8
|
+
import * as p from "@stylexjs/stylex";
|
|
9
|
+
import { Children as m, Fragment as ee, useEffect as h, useLayoutEffect as g, useMemo as te, useRef as _, useState as v, useSyncExternalStore as ne } from "react";
|
|
10
|
+
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
11
|
+
import { ArrowDown as re, ArrowUp as ie, ArrowUpDown as ae, ChevronLeft as S, ChevronRight as C, Settings2 as w, X as T } from "lucide-react";
|
|
12
|
+
import { createColumnHelper as oe, tableFeatures as E, useTable as se } from "@tanstack/react-table";
|
|
13
|
+
import { defaultRangeExtractor as ce, useVirtualizer as le } from "@tanstack/react-virtual";
|
|
13
14
|
// packages/collections/src/collection-controls.tsx
|
|
14
|
-
var
|
|
15
|
+
var D = { remove: {
|
|
15
16
|
kmuXW: "x2lah0s",
|
|
16
17
|
$$css: !0
|
|
17
18
|
} };
|
|
18
|
-
function
|
|
19
|
-
let r =
|
|
20
|
-
return !r && !i ? null : /* @__PURE__ */
|
|
19
|
+
function O({ label: e, children: t, actions: n }) {
|
|
20
|
+
let r = m.toArray(t).length > 0, i = m.toArray(n).length > 0;
|
|
21
|
+
return !r && !i ? null : /* @__PURE__ */ x("div", {
|
|
21
22
|
role: "group",
|
|
22
23
|
"aria-label": e,
|
|
23
|
-
className: "x9f619 x78zum5 x6s0dn4 x1a02dak xeuugli x1oec0jp x1hnptsi x1dc62k6 xmpbh3m
|
|
24
|
-
children: [t, i && /* @__PURE__ */
|
|
24
|
+
className: "x9f619 x78zum5 x6s0dn4 x1a02dak xeuugli x1oec0jp x1hnptsi x1dc62k6 xmpbh3m xc06uyd xso031l x1q0q8m5 x1qndepd xbixft x1hz01jw xtqrqnz x1778rvt xjl7jj",
|
|
25
|
+
children: [t, i && /* @__PURE__ */ b("div", {
|
|
25
26
|
className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli xvc5jky",
|
|
26
27
|
children: n
|
|
27
28
|
})]
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
31
|
+
function k({ filters: e, onRemove: t, label: n = "Applied filters" }) {
|
|
32
|
+
return e.length === 0 ? null : /* @__PURE__ */ b("div", {
|
|
32
33
|
role: "group",
|
|
33
34
|
"aria-label": n,
|
|
34
35
|
className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli",
|
|
35
|
-
children: e.map((e) => /* @__PURE__ */
|
|
36
|
-
className: "x1n2onr6 x9f619 x3nfvp2 x6s0dn4 xunmzkg x1f9pz31
|
|
37
|
-
children: [/* @__PURE__ */
|
|
36
|
+
children: e.map((e) => /* @__PURE__ */ x("span", {
|
|
37
|
+
className: "x1n2onr6 x9f619 x3nfvp2 x6s0dn4 xunmzkg x1f9pz31 x992rv9 xyibt8p x1ok0vyi xeuugli x193iq5w xpvm0e4 xbixft x1hz01jw xtqrqnz x1778rvt x1s928wv x1j6awrg xarstr8 x5hscyn x86avzo x10z0kkz x1k48kgn x2q1x1w",
|
|
38
|
+
children: [/* @__PURE__ */ b("span", {
|
|
38
39
|
title: e.label,
|
|
39
40
|
className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
|
|
40
41
|
children: e.label
|
|
41
|
-
}), /* @__PURE__ */
|
|
42
|
+
}), /* @__PURE__ */ b(i, {
|
|
42
43
|
"aria-label": `Remove ${e.label}`,
|
|
43
44
|
variant: "ghost",
|
|
44
45
|
onClick: () => t(e.id),
|
|
45
|
-
xstyle:
|
|
46
|
-
children: /* @__PURE__ */
|
|
46
|
+
xstyle: D.remove,
|
|
47
|
+
children: /* @__PURE__ */ b(T, {
|
|
47
48
|
size: 14,
|
|
48
49
|
"aria-hidden": "true"
|
|
49
50
|
})
|
|
@@ -51,51 +52,56 @@ function O({ filters: e, onRemove: t, label: n = "Applied filters" }) {
|
|
|
51
52
|
}, e.id))
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
-
return /* @__PURE__ */
|
|
56
|
-
render: /* @__PURE__ */
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
function A({ options: t, onChange: n, onReset: r, label: s = "Display options" }) {
|
|
56
|
+
return /* @__PURE__ */ x(o.Root, { children: [/* @__PURE__ */ b(o.Trigger, {
|
|
57
|
+
render: /* @__PURE__ */ b(i, {
|
|
58
|
+
"aria-label": s,
|
|
59
|
+
title: s
|
|
60
|
+
}),
|
|
61
|
+
children: /* @__PURE__ */ b(w, {
|
|
62
|
+
size: 14,
|
|
59
63
|
"aria-hidden": "true"
|
|
60
|
-
}), r]
|
|
61
|
-
}), /* @__PURE__ */ y(o.Portal, { children: /* @__PURE__ */ y(o.Positioner, {
|
|
62
|
-
align: "end",
|
|
63
|
-
children: /* @__PURE__ */ y(o.Popup, {
|
|
64
|
-
"aria-label": r,
|
|
65
|
-
children: /* @__PURE__ */ y("div", {
|
|
66
|
-
className: "xrvj5dj x1n8ia3y xfb3i0g",
|
|
67
|
-
children: t.map((e) => /* @__PURE__ */ b("label", {
|
|
68
|
-
className: "x78zum5 x6s0dn4 x1hnptsi xbixft xtqrqnz x1hz01jw x1778rvt xeuugli xj0a0fe",
|
|
69
|
-
children: [/* @__PURE__ */ y(a.Root, {
|
|
70
|
-
checked: e.visible,
|
|
71
|
-
onCheckedChange: (t) => n(e.id, t),
|
|
72
|
-
disabled: e.required,
|
|
73
|
-
children: /* @__PURE__ */ y(a.Indicator, {})
|
|
74
|
-
}), e.label]
|
|
75
|
-
}, e.id))
|
|
76
|
-
})
|
|
77
64
|
})
|
|
65
|
+
}), /* @__PURE__ */ b(o.Portal, { children: /* @__PURE__ */ b(o.Positioner, {
|
|
66
|
+
align: "end",
|
|
67
|
+
children: /* @__PURE__ */ x(o.Popup, { children: [/* @__PURE__ */ b(o.Title, { children: "Display" }), /* @__PURE__ */ x("div", {
|
|
68
|
+
className: "xrvj5dj x1n8ia3y xfb3i0g",
|
|
69
|
+
children: [t.map((e) => /* @__PURE__ */ x("label", {
|
|
70
|
+
className: "x78zum5 x6s0dn4 x1hnptsi xbixft xtqrqnz x1hz01jw x1778rvt xeuugli xj0a0fe",
|
|
71
|
+
children: [/* @__PURE__ */ b(a.Root, {
|
|
72
|
+
checked: e.isChecked,
|
|
73
|
+
onCheckedChange: (t) => n(e.id, t),
|
|
74
|
+
disabled: e.isRequired,
|
|
75
|
+
children: /* @__PURE__ */ b(a.Indicator, {})
|
|
76
|
+
}), e.label]
|
|
77
|
+
}, e.id)), r !== void 0 && /* @__PURE__ */ b(e, {
|
|
78
|
+
type: "button",
|
|
79
|
+
variant: "ghost",
|
|
80
|
+
onClick: r,
|
|
81
|
+
children: "Reset defaults"
|
|
82
|
+
})]
|
|
83
|
+
})] })
|
|
78
84
|
}) })] });
|
|
79
85
|
}
|
|
80
|
-
function
|
|
81
|
-
return /* @__PURE__ */
|
|
86
|
+
function ue({ description: n, previous: r, next: i }) {
|
|
87
|
+
return /* @__PURE__ */ x("nav", {
|
|
82
88
|
"aria-label": "Pagination",
|
|
83
89
|
className: "x78zum5 x6s0dn4 x1qughib x1a02dak xaml1ju xeuugli",
|
|
84
|
-
children: [/* @__PURE__ */
|
|
90
|
+
children: [/* @__PURE__ */ b(t, { children: n }), /* @__PURE__ */ x("div", {
|
|
85
91
|
className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli xvc5jky",
|
|
86
|
-
children: [/* @__PURE__ */
|
|
92
|
+
children: [/* @__PURE__ */ x(e, {
|
|
87
93
|
variant: "outline",
|
|
88
94
|
disabled: r.disabled,
|
|
89
95
|
onClick: r.onClick,
|
|
90
|
-
children: [/* @__PURE__ */
|
|
96
|
+
children: [/* @__PURE__ */ b(S, {
|
|
91
97
|
size: 16,
|
|
92
98
|
"aria-hidden": "true"
|
|
93
99
|
}), "Previous"]
|
|
94
|
-
}), /* @__PURE__ */
|
|
100
|
+
}), /* @__PURE__ */ x(e, {
|
|
95
101
|
variant: "outline",
|
|
96
102
|
disabled: i.disabled,
|
|
97
103
|
onClick: i.onClick,
|
|
98
|
-
children: ["Next", /* @__PURE__ */
|
|
104
|
+
children: ["Next", /* @__PURE__ */ b(C, {
|
|
99
105
|
size: 16,
|
|
100
106
|
"aria-hidden": "true"
|
|
101
107
|
})]
|
|
@@ -104,8 +110,8 @@ function A({ description: n, previous: r, next: i }) {
|
|
|
104
110
|
});
|
|
105
111
|
}
|
|
106
112
|
// packages/collections/src/use-end-reached.ts
|
|
107
|
-
function
|
|
108
|
-
|
|
113
|
+
function de({ end: e, viewport: t, onEndReached: n, content: r }) {
|
|
114
|
+
h(() => {
|
|
109
115
|
if (n === void 0 || e.current === null) return;
|
|
110
116
|
let r = new IntersectionObserver((e) => {
|
|
111
117
|
e.some((e) => e.isIntersecting) && n();
|
|
@@ -119,7 +125,7 @@ function j({ end: e, viewport: t, onEndReached: n, content: r }) {
|
|
|
119
125
|
]);
|
|
120
126
|
}
|
|
121
127
|
// packages/collections/src/data-table.tsx
|
|
122
|
-
var
|
|
128
|
+
var fe = E({}), pe = 76, j = d.compactTable.slice(7), me = "a, button, input, select, textarea, label, summary, [role=\"button\"], [role=\"link\"], [role=\"switch\"], [role=\"checkbox\"], [role=\"radio\"], [role=\"combobox\"], [role=\"slider\"], [role=\"spinbutton\"], [role=\"textbox\"], [role=\"tab\"], [role^=\"menuitem\"], [contenteditable]:not([contenteditable=\"false\"]), [tabindex]:not([tabindex=\"-1\"])", he = /* @__PURE__ */ new Map([["ArrowUp", -1], ["ArrowDown", 1]]), M = {
|
|
123
129
|
kmVPX3: "x1717udv",
|
|
124
130
|
kMzoRj: "xc342km",
|
|
125
131
|
$$css: !0
|
|
@@ -135,6 +141,10 @@ var ce = T({}), le = 76, ue = "a, button, input, select, textarea, label, summar
|
|
|
135
141
|
$$css: !0
|
|
136
142
|
},
|
|
137
143
|
content: { $$css: !0 },
|
|
144
|
+
placeholder: {
|
|
145
|
+
kfzvcC: "x47corl",
|
|
146
|
+
$$css: !0
|
|
147
|
+
},
|
|
138
148
|
fillFrame: {
|
|
139
149
|
k1xSpc: "x78zum5",
|
|
140
150
|
kXwgrk: "xdt5ytf",
|
|
@@ -176,11 +186,11 @@ var ce = T({}), le = 76, ue = "a, button, input, select, textarea, label, summar
|
|
|
176
186
|
$$css: !0
|
|
177
187
|
},
|
|
178
188
|
minimumWidth: (e, t) => [{
|
|
179
|
-
k7Eaqz: (e == null ? e : "x7w7ha4 ") + (t == null ? t : "
|
|
189
|
+
k7Eaqz: (e == null ? e : "x7w7ha4 ") + (t == null ? t : "x18ie477"),
|
|
180
190
|
$$css: !0
|
|
181
191
|
}, {
|
|
182
192
|
"--x-1utbgw4": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e),
|
|
183
|
-
"--x-
|
|
193
|
+
"--x-1wqfzdf": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(t)
|
|
184
194
|
}],
|
|
185
195
|
caption: {
|
|
186
196
|
k9WMMc: "xdpxx8g",
|
|
@@ -194,8 +204,8 @@ var ce = T({}), le = 76, ue = "a, button, input, select, textarea, label, summar
|
|
|
194
204
|
kB7OPa: "x9f619",
|
|
195
205
|
kVAEAm: "x7wzq59",
|
|
196
206
|
k87sOh: "x13vifvy",
|
|
197
|
-
kY2c9j: "
|
|
198
|
-
kZKoxP: "
|
|
207
|
+
kY2c9j: "x11ru5tl",
|
|
208
|
+
kZKoxP: "x1krvmzm",
|
|
199
209
|
k8WAf4: "xt970qd",
|
|
200
210
|
kg3NbH: "x1dc62k6",
|
|
201
211
|
kt9PQ7: "xso031l",
|
|
@@ -234,7 +244,7 @@ var ce = T({}), le = 76, ue = "a, button, input, select, textarea, label, summar
|
|
|
234
244
|
"--x-minWidth": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e)
|
|
235
245
|
}],
|
|
236
246
|
secondary: {
|
|
237
|
-
k1xSpc: "
|
|
247
|
+
k1xSpc: "xqxxu6g",
|
|
238
248
|
$$css: !0
|
|
239
249
|
},
|
|
240
250
|
contentCell: {
|
|
@@ -249,220 +259,305 @@ var ce = T({}), le = 76, ue = "a, button, input, select, textarea, label, summar
|
|
|
249
259
|
},
|
|
250
260
|
{ "--x-height": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e) }
|
|
251
261
|
]
|
|
252
|
-
},
|
|
262
|
+
}, P = {
|
|
253
263
|
primary: {
|
|
254
264
|
minimumWidth: 240,
|
|
255
|
-
|
|
256
|
-
|
|
265
|
+
isFlexible: !0,
|
|
266
|
+
shouldTruncate: !0
|
|
257
267
|
},
|
|
258
268
|
text: {
|
|
259
269
|
minimumWidth: 160,
|
|
260
|
-
|
|
261
|
-
|
|
270
|
+
isFlexible: !1,
|
|
271
|
+
shouldTruncate: !0
|
|
262
272
|
},
|
|
263
273
|
status: {
|
|
264
274
|
minimumWidth: 160,
|
|
265
|
-
|
|
266
|
-
|
|
275
|
+
isFlexible: !1,
|
|
276
|
+
shouldTruncate: !1
|
|
267
277
|
},
|
|
268
278
|
number: {
|
|
269
279
|
minimumWidth: 112,
|
|
270
|
-
|
|
271
|
-
|
|
280
|
+
isFlexible: !1,
|
|
281
|
+
shouldTruncate: !1
|
|
272
282
|
},
|
|
273
283
|
timestamp: {
|
|
274
284
|
minimumWidth: 160,
|
|
275
|
-
|
|
276
|
-
|
|
285
|
+
isFlexible: !1,
|
|
286
|
+
shouldTruncate: !1
|
|
277
287
|
},
|
|
278
288
|
actions: {
|
|
279
289
|
minimumWidth: 112,
|
|
280
|
-
|
|
281
|
-
|
|
290
|
+
isFlexible: !1,
|
|
291
|
+
shouldTruncate: !1
|
|
282
292
|
}
|
|
283
|
-
},
|
|
293
|
+
}, ge = {
|
|
284
294
|
fixed: N.content,
|
|
285
295
|
content: N.contentCell
|
|
286
|
-
},
|
|
296
|
+
}, F = {
|
|
287
297
|
primary: N.start,
|
|
288
298
|
text: N.start,
|
|
289
299
|
status: N.start,
|
|
290
300
|
number: N.end,
|
|
291
301
|
timestamp: N.end,
|
|
292
302
|
actions: N.end
|
|
293
|
-
},
|
|
303
|
+
}, I = {
|
|
294
304
|
content: N.content,
|
|
295
305
|
fill: N.fillFrame
|
|
296
|
-
},
|
|
306
|
+
}, L = {
|
|
297
307
|
content: N.content,
|
|
298
308
|
fill: N.fillViewport
|
|
299
309
|
};
|
|
300
|
-
function
|
|
301
|
-
return
|
|
310
|
+
function _e(e) {
|
|
311
|
+
return e.map((e) => {
|
|
312
|
+
let t = P[e.role], n = e.width ?? (t.isFlexible ? void 0 : t.minimumWidth);
|
|
313
|
+
return {
|
|
314
|
+
...e,
|
|
315
|
+
...n === void 0 ? {} : { width: n }
|
|
316
|
+
};
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
function ve(e, t = 0) {
|
|
320
|
+
return {
|
|
321
|
+
minimumWidth: e.reduce((e, t) => e + (t.width ?? P[t.role].minimumWidth), t),
|
|
322
|
+
compactWidth: e.filter((e) => e.isSecondary !== !0).reduce((e, t) => e + (t.width ?? P[t.role].minimumWidth), t)
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
function ye(e) {
|
|
326
|
+
let t = globalThis.matchMedia(j);
|
|
327
|
+
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
|
|
328
|
+
}
|
|
329
|
+
function be() {
|
|
330
|
+
return globalThis.matchMedia(j).matches;
|
|
331
|
+
}
|
|
332
|
+
function xe({ columns: e, canSelect: t = !1 }) {
|
|
333
|
+
return /* @__PURE__ */ x("colgroup", { children: [t && /* @__PURE__ */ b("col", { className: "x1d7z9mz xeuugli x1dc62k6" }), e.map((e) => /* @__PURE__ */ b("col", { ...p.props(e.width !== void 0 && N.width(e.width), e.isSecondary === !0 && N.secondary) }, e.id))] });
|
|
334
|
+
}
|
|
335
|
+
function R({ columns: e, sizing: t = "content", rowSizing: n = "fixed", hideHeaders: r = !1 }) {
|
|
336
|
+
let i = _e(e), { minimumWidth: a, compactWidth: o } = ve(i);
|
|
337
|
+
return /* @__PURE__ */ b("div", {
|
|
338
|
+
"aria-hidden": !0,
|
|
339
|
+
inert: !0,
|
|
340
|
+
...p.props(N.frame, I[t], N.placeholder),
|
|
341
|
+
children: /* @__PURE__ */ b("div", {
|
|
342
|
+
...p.props(N.viewport, L[t]),
|
|
343
|
+
children: /* @__PURE__ */ x("table", {
|
|
344
|
+
...p.props(N.table, N.fixed, N.minimumWidth(a, o)),
|
|
345
|
+
children: [
|
|
346
|
+
/* @__PURE__ */ b(xe, { columns: i }),
|
|
347
|
+
/* @__PURE__ */ b("thead", {
|
|
348
|
+
...p.props(r && l.hidden),
|
|
349
|
+
children: /* @__PURE__ */ b("tr", { children: i.map((e) => /* @__PURE__ */ b("th", {
|
|
350
|
+
...p.props(N.header, F[e.role], e.width !== void 0 && N.width(e.width), e.isSecondary === !0 && N.secondary),
|
|
351
|
+
children: /* @__PURE__ */ b("span", {
|
|
352
|
+
className: "x1lliihq xeuugli xb3r6kr xlyipyv xuxw1ft",
|
|
353
|
+
children: e.label
|
|
354
|
+
})
|
|
355
|
+
}, e.id)) })
|
|
356
|
+
}),
|
|
357
|
+
/* @__PURE__ */ b("tbody", { children: [
|
|
358
|
+
"first",
|
|
359
|
+
"second",
|
|
360
|
+
"third"
|
|
361
|
+
].map((e) => /* @__PURE__ */ b("tr", {
|
|
362
|
+
className: "x1wtzb06 xso031l x1q0q8m5 x1qndepd x19k386i x1t1lzn6",
|
|
363
|
+
children: i.map((e) => /* @__PURE__ */ b("td", {
|
|
364
|
+
...p.props(N.cell, ge[n], F[e.role], e.width !== void 0 && N.width(e.width), e.isSecondary === !0 && N.secondary),
|
|
365
|
+
children: /* @__PURE__ */ b(H, {
|
|
366
|
+
role: e.role,
|
|
367
|
+
isFixed: n === "fixed",
|
|
368
|
+
shouldTruncate: void 0,
|
|
369
|
+
children: e.placeholder ?? /* @__PURE__ */ b(c, { width: "60%" })
|
|
370
|
+
})
|
|
371
|
+
}, e.id))
|
|
372
|
+
}, e)) })
|
|
373
|
+
]
|
|
374
|
+
})
|
|
375
|
+
})
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
function z({ children: e, leading: t, isDecorative: n = !1 }) {
|
|
379
|
+
return /* @__PURE__ */ x("span", {
|
|
380
|
+
"aria-hidden": n || void 0,
|
|
381
|
+
inert: n || void 0,
|
|
302
382
|
className: "x78zum5 x6s0dn4 x1n8ia3y xeuugli xh8yej3",
|
|
303
|
-
children: [
|
|
383
|
+
children: [t !== void 0 && /* @__PURE__ */ b("span", {
|
|
304
384
|
"aria-hidden": !0,
|
|
305
385
|
className: "x3nfvp2 x6s0dn4 x2lah0s",
|
|
306
|
-
children:
|
|
386
|
+
children: t
|
|
307
387
|
}), /* @__PURE__ */ b("span", {
|
|
308
388
|
className: "x98rzlu xeuugli",
|
|
389
|
+
children: e
|
|
390
|
+
})]
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
function B({ children: e, secondary: t, leading: n, trailing: r }) {
|
|
394
|
+
return /* @__PURE__ */ x(z, {
|
|
395
|
+
leading: n,
|
|
396
|
+
children: [/* @__PURE__ */ x("span", {
|
|
397
|
+
className: "x78zum5 x6s0dn4 x1hnptsi xeuugli",
|
|
309
398
|
children: [/* @__PURE__ */ b("span", {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
className: "x3nfvp2 x6s0dn4 x2lah0s",
|
|
317
|
-
children: r
|
|
318
|
-
})]
|
|
319
|
-
}), t !== void 0 && /* @__PURE__ */ y("span", {
|
|
320
|
-
title: t,
|
|
321
|
-
className: "x1lliihq xeuugli xh8yej3 xb3r6kr xuxw1ft xlyipyv x153jb6y xy8obcc xas2l8k",
|
|
322
|
-
children: t
|
|
399
|
+
title: e,
|
|
400
|
+
className: "x1lliihq xeuugli x14atkfc xs83m0k xb3r6kr xuxw1ft xlyipyv",
|
|
401
|
+
children: e
|
|
402
|
+
}), r != null && /* @__PURE__ */ b("span", {
|
|
403
|
+
className: "x3nfvp2 x6s0dn4 x2lah0s",
|
|
404
|
+
children: r
|
|
323
405
|
})]
|
|
406
|
+
}), t !== void 0 && /* @__PURE__ */ b("span", {
|
|
407
|
+
title: t,
|
|
408
|
+
className: "x1lliihq xeuugli xh8yej3 xb3r6kr xuxw1ft xlyipyv x153jb6y xy8obcc xas2l8k",
|
|
409
|
+
children: t
|
|
324
410
|
})]
|
|
325
411
|
});
|
|
326
412
|
}
|
|
327
|
-
function
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
413
|
+
function V({ leading: e, isSecondary: t = !1 }) {
|
|
414
|
+
return /* @__PURE__ */ x(z, {
|
|
415
|
+
leading: e,
|
|
416
|
+
isDecorative: !0,
|
|
417
|
+
children: [/* @__PURE__ */ b("span", {
|
|
418
|
+
className: "x1lliihq xeuugli xh8yej3",
|
|
419
|
+
children: /* @__PURE__ */ b(c, { width: "70%" })
|
|
420
|
+
}), t && /* @__PURE__ */ b("span", {
|
|
421
|
+
className: "x1lliihq xeuugli xh8yej3 x153jb6y xy8obcc xas2l8k",
|
|
422
|
+
children: /* @__PURE__ */ b(c, { width: "45%" })
|
|
423
|
+
})]
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
function Se({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, onSortChange: s, selectedIds: c, onSelectionChange: d, selectionLabel: f, rowAction: m, activeRowId: y, focusRowId: S, hideCaption: C = !1, hideHeaders: w = !1, rowSizing: T = "fixed", window: E, endContent: D, onEndReached: O, footer: k }) {
|
|
427
|
+
let A = te(() => _e(t), [t]), ue = ne(ye, be, () => !1), j = te(() => {
|
|
428
|
+
let e = oe();
|
|
429
|
+
return e.columns(A.map((t) => e.display({
|
|
338
430
|
id: t.id,
|
|
339
431
|
header: t.label
|
|
340
432
|
})));
|
|
341
|
-
}, [
|
|
342
|
-
features:
|
|
343
|
-
columns:
|
|
433
|
+
}, [A]), M = se({
|
|
434
|
+
features: fe,
|
|
435
|
+
columns: j,
|
|
344
436
|
data: e,
|
|
345
437
|
getRowId: n
|
|
346
|
-
}),
|
|
347
|
-
|
|
348
|
-
if (
|
|
349
|
-
|
|
438
|
+
}), P = _(null), R = _(null), z = _(null), B = _(null), [V, Se] = v(0), [we, W] = v(), G = _(void 0), K = _(void 0), q = e.findIndex((e) => n(e) === we), J = A.findIndex((e) => e.role === "primary" && e.isSecondary !== !0), Y = J === -1 ? A.findIndex((e) => e.isSecondary !== !0) : J, X = typeof E?.height == "string" ? E.height : "content";
|
|
439
|
+
g(() => {
|
|
440
|
+
if (S === void 0) {
|
|
441
|
+
K.current = void 0;
|
|
350
442
|
return;
|
|
351
443
|
}
|
|
352
|
-
if (
|
|
353
|
-
let e =
|
|
444
|
+
if (K.current === S) return;
|
|
445
|
+
let e = P.current?.querySelector(`[data-row-id="${CSS.escape(S)}"] [data-row-action]`);
|
|
354
446
|
if (e == null) return;
|
|
355
447
|
let t = requestAnimationFrame(() => {
|
|
356
|
-
e.focus({ preventScroll: !0 }),
|
|
448
|
+
e.focus({ preventScroll: !0 }), K.current = S;
|
|
357
449
|
});
|
|
358
450
|
return () => cancelAnimationFrame(t);
|
|
359
|
-
}, [e,
|
|
360
|
-
end:
|
|
361
|
-
onEndReached:
|
|
451
|
+
}, [e, S]), de({
|
|
452
|
+
end: R,
|
|
453
|
+
onEndReached: E === void 0 ? O : void 0,
|
|
362
454
|
content: e.length
|
|
363
|
-
}),
|
|
364
|
-
let e =
|
|
365
|
-
if (
|
|
366
|
-
let n = new ResizeObserver(() =>
|
|
455
|
+
}), h(() => {
|
|
456
|
+
let e = z.current, t = B.current;
|
|
457
|
+
if (E === void 0 || e === null || t === null) return;
|
|
458
|
+
let n = new ResizeObserver(() => Se(e.offsetHeight + t.offsetHeight));
|
|
367
459
|
return n.observe(e), n.observe(t), () => n.disconnect();
|
|
368
460
|
}, [
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
461
|
+
E,
|
|
462
|
+
C,
|
|
463
|
+
w
|
|
372
464
|
]);
|
|
373
|
-
let Z =
|
|
465
|
+
let Z = le({
|
|
374
466
|
count: e.length,
|
|
375
|
-
enabled:
|
|
376
|
-
getScrollElement: () =>
|
|
467
|
+
enabled: E !== void 0,
|
|
468
|
+
getScrollElement: () => P.current,
|
|
377
469
|
getItemKey: (t) => {
|
|
378
470
|
let r = e[t];
|
|
379
471
|
if (r === void 0) throw RangeError("The virtual row is outside the supplied table page.");
|
|
380
472
|
return n(r);
|
|
381
473
|
},
|
|
382
|
-
estimateSize: () =>
|
|
383
|
-
scrollMargin:
|
|
384
|
-
scrollPaddingStart:
|
|
474
|
+
estimateSize: () => T === "fixed" ? u.rowHeight : E?.estimatedRowHeight ?? u.rowHeight,
|
|
475
|
+
scrollMargin: V,
|
|
476
|
+
scrollPaddingStart: V,
|
|
385
477
|
overscan: 6,
|
|
386
478
|
rangeExtractor: (t) => {
|
|
387
|
-
let n =
|
|
388
|
-
return
|
|
479
|
+
let n = ce(t);
|
|
480
|
+
return q === -1 ? n : [.../* @__PURE__ */ new Set([
|
|
389
481
|
...n,
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
482
|
+
q - 1,
|
|
483
|
+
q,
|
|
484
|
+
q + 1
|
|
393
485
|
])].filter((t) => t >= 0 && t < e.length).toSorted((e, t) => e - t);
|
|
394
486
|
}
|
|
395
|
-
}),
|
|
487
|
+
}), Te = E === void 0 ? M.getRowModel().rows.map((e, t) => ({
|
|
396
488
|
row: e,
|
|
397
489
|
index: t,
|
|
398
490
|
spacerHeight: 0
|
|
399
491
|
})) : Z.getVirtualItems().flatMap((e, t, n) => {
|
|
400
|
-
let r =
|
|
492
|
+
let r = M.getRowModel().rows[e.index];
|
|
401
493
|
return r === void 0 ? [] : [{
|
|
402
494
|
row: r,
|
|
403
495
|
index: e.index,
|
|
404
|
-
spacerHeight: e.start - (n[t - 1]?.end ??
|
|
496
|
+
spacerHeight: e.start - (n[t - 1]?.end ?? V)
|
|
405
497
|
}];
|
|
406
|
-
}), Q =
|
|
407
|
-
|
|
408
|
-
Q &&
|
|
498
|
+
}), Q = E !== void 0 && (e.length === 0 || Z.range?.endIndex === e.length - 1);
|
|
499
|
+
h(() => {
|
|
500
|
+
Q && O?.();
|
|
409
501
|
}, [
|
|
410
502
|
Q,
|
|
411
|
-
|
|
503
|
+
O,
|
|
412
504
|
e.length
|
|
413
|
-
]),
|
|
414
|
-
if (
|
|
415
|
-
let e = Array.from(
|
|
416
|
-
e != null && (e.focus({ preventScroll:
|
|
505
|
+
]), g(() => {
|
|
506
|
+
if (G.current === void 0) return;
|
|
507
|
+
let e = Array.from(P.current?.querySelectorAll("[data-row-id]") ?? []).find((e) => e.dataset.rowId === G.current)?.querySelector("[data-row-action]");
|
|
508
|
+
e != null && (e.focus({ preventScroll: E !== void 0 }), G.current = void 0);
|
|
417
509
|
});
|
|
418
|
-
function
|
|
510
|
+
function Ee(t, r) {
|
|
419
511
|
let i = t.metaKey || t.ctrlKey, a = t.altKey || t.shiftKey;
|
|
420
512
|
if (i || a) return;
|
|
421
|
-
let o =
|
|
513
|
+
let o = he.get(t.key);
|
|
422
514
|
if (o === void 0) return;
|
|
423
515
|
t.preventDefault();
|
|
424
516
|
let s = r + o, c = e[s];
|
|
425
|
-
c !== void 0 && (
|
|
517
|
+
c !== void 0 && (G.current = n(c), W(G.current), E !== void 0 && Z.scrollToIndex(s, { align: "auto" }));
|
|
426
518
|
}
|
|
427
|
-
let $ =
|
|
428
|
-
return /* @__PURE__ */
|
|
429
|
-
...
|
|
430
|
-
children: [/* @__PURE__ */
|
|
431
|
-
ref:
|
|
519
|
+
let $ = A.filter((e) => !ue || e.isSecondary !== !0).length + (c === void 0 ? 0 : 1), De = c === void 0 ? 0 : pe, Oe = k != null && typeof k != "boolean", { minimumWidth: ke, compactWidth: Ae } = ve(A, De), je = Z.getTotalSize() - (Z.getVirtualItems().at(-1)?.end ?? V) + V;
|
|
520
|
+
return /* @__PURE__ */ x("div", {
|
|
521
|
+
...p.props(N.frame, I[X]),
|
|
522
|
+
children: [/* @__PURE__ */ x("div", {
|
|
523
|
+
ref: P,
|
|
432
524
|
role: "region",
|
|
433
525
|
"aria-label": r,
|
|
434
526
|
tabIndex: 0,
|
|
435
|
-
...
|
|
436
|
-
children: [/* @__PURE__ */
|
|
437
|
-
"aria-rowcount":
|
|
438
|
-
...
|
|
527
|
+
...p.props(N.viewport, L[X], typeof E?.height == "number" && N.virtual(E.height)),
|
|
528
|
+
children: [/* @__PURE__ */ x("table", {
|
|
529
|
+
"aria-rowcount": E === void 0 ? void 0 : Math.max(1, e.length) + 1,
|
|
530
|
+
...p.props(N.table, N.fixed, N.minimumWidth(ke, Ae)),
|
|
439
531
|
children: [
|
|
440
|
-
/* @__PURE__ */
|
|
441
|
-
ref:
|
|
442
|
-
...
|
|
532
|
+
/* @__PURE__ */ b("caption", {
|
|
533
|
+
ref: z,
|
|
534
|
+
...p.props(N.caption, C && l.hidden),
|
|
443
535
|
children: r
|
|
444
536
|
}),
|
|
445
|
-
/* @__PURE__ */ b(
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
537
|
+
/* @__PURE__ */ b(xe, {
|
|
538
|
+
columns: A,
|
|
539
|
+
canSelect: c !== void 0
|
|
540
|
+
}),
|
|
541
|
+
/* @__PURE__ */ b("thead", {
|
|
542
|
+
ref: B,
|
|
543
|
+
...p.props(w && l.hidden),
|
|
544
|
+
children: /* @__PURE__ */ x("tr", { children: [c !== void 0 && /* @__PURE__ */ b("th", {
|
|
450
545
|
scope: "col",
|
|
451
|
-
className: "x9f619 x7wzq59 x13vifvy
|
|
452
|
-
children: /* @__PURE__ */
|
|
453
|
-
...
|
|
546
|
+
className: "x9f619 x7wzq59 x13vifvy x11ru5tl x1krvmzm xt970qd xso031l x1q0q8m5 x1qndepd x153jb6y xpvm0e4 xj57cvi xy8obcc xas2l8k xuxw1ft x1d7z9mz xeuugli x1dc62k6",
|
|
547
|
+
children: /* @__PURE__ */ b("span", {
|
|
548
|
+
...p.props(l.hidden),
|
|
454
549
|
children: "Select"
|
|
455
550
|
})
|
|
456
|
-
}),
|
|
551
|
+
}), A.map((e) => {
|
|
457
552
|
let t = o?.columnId === e.id ? o.direction : void 0;
|
|
458
|
-
return /* @__PURE__ */
|
|
553
|
+
return /* @__PURE__ */ b("th", {
|
|
459
554
|
scope: "col",
|
|
460
555
|
title: e.label,
|
|
461
556
|
"aria-sort": t,
|
|
462
|
-
...
|
|
463
|
-
children: e.
|
|
557
|
+
...p.props(N.header, F[e.role], e.width !== void 0 && N.width(e.width), e.isSecondary === !0 && N.secondary),
|
|
558
|
+
children: e.canSort === !0 && s !== void 0 ? /* @__PURE__ */ x("button", {
|
|
464
559
|
type: "button",
|
|
465
|
-
className: "x3nfvp2 x6s0dn4 x1hnptsi x193iq5w xeuugli
|
|
560
|
+
className: "x3nfvp2 x6s0dn4 x1hnptsi x193iq5w xeuugli x2zujid x17oiadl x1717udv xc342km x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x1ypdohk xp9636p x1s9zmfe x13qnu6 x9v5kkp x19rmrnh x7s97pk",
|
|
466
561
|
onClick: () => {
|
|
467
562
|
s(t === "ascending" ? {
|
|
468
563
|
columnId: e.id,
|
|
@@ -472,89 +567,89 @@ function F({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
|
|
|
472
567
|
direction: "ascending"
|
|
473
568
|
});
|
|
474
569
|
},
|
|
475
|
-
children: [/* @__PURE__ */
|
|
570
|
+
children: [/* @__PURE__ */ b("span", {
|
|
476
571
|
className: "x1lliihq xeuugli xb3r6kr xlyipyv xuxw1ft",
|
|
477
572
|
children: e.label
|
|
478
|
-
}),
|
|
573
|
+
}), b(t === "ascending" ? ie : t === "descending" ? re : ae, {
|
|
479
574
|
size: 14,
|
|
480
575
|
"aria-hidden": "true",
|
|
481
576
|
className: "x2lah0s"
|
|
482
577
|
})]
|
|
483
|
-
}) : /* @__PURE__ */
|
|
578
|
+
}) : /* @__PURE__ */ b("span", {
|
|
484
579
|
className: "x1lliihq xeuugli xb3r6kr xlyipyv xuxw1ft",
|
|
485
580
|
children: e.label
|
|
486
581
|
})
|
|
487
582
|
}, e.id);
|
|
488
583
|
})] })
|
|
489
584
|
}),
|
|
490
|
-
/* @__PURE__ */
|
|
585
|
+
/* @__PURE__ */ x("tbody", {
|
|
491
586
|
onBlur: (e) => {
|
|
492
|
-
e.currentTarget.contains(e.relatedTarget) ||
|
|
587
|
+
e.currentTarget.contains(e.relatedTarget) || W(void 0);
|
|
493
588
|
},
|
|
494
589
|
children: [
|
|
495
|
-
|
|
590
|
+
Te.map(({ row: e, index: t, spacerHeight: n }) => /* @__PURE__ */ x(ee, { children: [n > 0 && /* @__PURE__ */ b("tr", {
|
|
496
591
|
"aria-hidden": "true",
|
|
497
|
-
children: /* @__PURE__ */
|
|
592
|
+
children: /* @__PURE__ */ b("td", {
|
|
498
593
|
colSpan: $,
|
|
499
|
-
...
|
|
594
|
+
...p.props(N.spacer(n))
|
|
500
595
|
})
|
|
501
|
-
}), /* @__PURE__ */
|
|
596
|
+
}), /* @__PURE__ */ x("tr", {
|
|
502
597
|
"data-index": t,
|
|
503
598
|
"data-row-id": e.id,
|
|
504
|
-
"aria-rowindex":
|
|
505
|
-
ref:
|
|
506
|
-
onFocus: () =>
|
|
599
|
+
"aria-rowindex": E === void 0 ? void 0 : t + 2,
|
|
600
|
+
ref: E === void 0 || T === "fixed" ? void 0 : Z.measureElement,
|
|
601
|
+
onFocus: () => W(e.id),
|
|
507
602
|
onClick: (e) => {
|
|
508
|
-
if (
|
|
603
|
+
if (m === void 0 || !U(e) || e.target instanceof Element && e.target.closest(me) !== null) return;
|
|
509
604
|
let t = e.currentTarget.querySelector("[data-row-action]");
|
|
510
605
|
t?.focus({ preventScroll: !0 }), t?.click();
|
|
511
606
|
},
|
|
512
607
|
...{
|
|
513
|
-
0: { className: "
|
|
514
|
-
2: { className: "
|
|
515
|
-
1: { className: "
|
|
516
|
-
3: { className: "
|
|
517
|
-
}[(
|
|
518
|
-
children: [
|
|
608
|
+
0: { className: "x1wtzb06 xso031l x1q0q8m5 x1qndepd x19k386i x1t1lzn6" },
|
|
609
|
+
2: { className: "x1wtzb06 xso031l x1q0q8m5 x1qndepd x19k386i x1t1lzn6 x1ypdohk x1ecmtor" },
|
|
610
|
+
1: { className: "x1wtzb06 xso031l x1q0q8m5 x1qndepd x19k386i x1t1lzn6 x1r8u7ye" },
|
|
611
|
+
3: { className: "x1wtzb06 xso031l x1q0q8m5 x1qndepd x19k386i x1t1lzn6 x1ypdohk x1ecmtor x1r8u7ye" }
|
|
612
|
+
}[(m !== void 0) << 1 | (c?.has(e.id) === !0 || y === e.id)],
|
|
613
|
+
children: [c !== void 0 && /* @__PURE__ */ b("td", {
|
|
519
614
|
className: "x9f619 xt970qd xxymvpz xj0a0fe x1d7z9mz xeuugli x1dc62k6",
|
|
520
|
-
children: /* @__PURE__ */
|
|
521
|
-
"aria-label":
|
|
522
|
-
checked:
|
|
615
|
+
children: /* @__PURE__ */ b(a.Root, {
|
|
616
|
+
"aria-label": f(e.original),
|
|
617
|
+
checked: c.has(e.id),
|
|
523
618
|
onCheckedChange: (t) => {
|
|
524
|
-
let n = new Set(
|
|
525
|
-
t ? n.add(e.id) : n.delete(e.id),
|
|
619
|
+
let n = new Set(c);
|
|
620
|
+
t ? n.add(e.id) : n.delete(e.id), d(n);
|
|
526
621
|
},
|
|
527
|
-
children: /* @__PURE__ */
|
|
622
|
+
children: /* @__PURE__ */ b(a.Indicator, {})
|
|
528
623
|
})
|
|
529
|
-
}),
|
|
530
|
-
...
|
|
531
|
-
children:
|
|
624
|
+
}), A.map((n, r) => /* @__PURE__ */ b("td", {
|
|
625
|
+
...p.props(N.cell, ge[T], F[n.role], n.width !== void 0 && N.width(n.width), n.isSecondary === !0 && N.secondary),
|
|
626
|
+
children: m !== void 0 && r === Y ? /* @__PURE__ */ b(Ce, {
|
|
532
627
|
row: e.original,
|
|
533
|
-
action:
|
|
534
|
-
|
|
535
|
-
onKeyDown: (e) =>
|
|
536
|
-
children: /* @__PURE__ */
|
|
628
|
+
action: m,
|
|
629
|
+
isActive: y === e.id,
|
|
630
|
+
onKeyDown: (e) => Ee(e, t),
|
|
631
|
+
children: /* @__PURE__ */ b(H, {
|
|
537
632
|
role: n.role,
|
|
538
|
-
|
|
539
|
-
|
|
633
|
+
isFixed: T === "fixed",
|
|
634
|
+
shouldTruncate: n.shouldTruncate,
|
|
540
635
|
children: n.cell(e.original)
|
|
541
636
|
})
|
|
542
|
-
}) : /* @__PURE__ */
|
|
637
|
+
}) : /* @__PURE__ */ b(H, {
|
|
543
638
|
role: n.role,
|
|
544
|
-
|
|
545
|
-
|
|
639
|
+
isFixed: T === "fixed",
|
|
640
|
+
shouldTruncate: n.shouldTruncate,
|
|
546
641
|
children: n.cell(e.original)
|
|
547
642
|
})
|
|
548
643
|
}, n.id))]
|
|
549
644
|
})] }, e.id)),
|
|
550
|
-
|
|
645
|
+
E !== void 0 && je > 0 && /* @__PURE__ */ b("tr", {
|
|
551
646
|
"aria-hidden": "true",
|
|
552
|
-
children: /* @__PURE__ */
|
|
647
|
+
children: /* @__PURE__ */ b("td", {
|
|
553
648
|
colSpan: $,
|
|
554
|
-
...
|
|
649
|
+
...p.props(N.spacer(je))
|
|
555
650
|
})
|
|
556
651
|
}),
|
|
557
|
-
e.length === 0 && /* @__PURE__ */
|
|
652
|
+
e.length === 0 && /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", {
|
|
558
653
|
colSpan: $,
|
|
559
654
|
className: "x1ttojsm x2b8uid x153jb6y",
|
|
560
655
|
children: i
|
|
@@ -562,117 +657,117 @@ function F({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: o, on
|
|
|
562
657
|
]
|
|
563
658
|
})
|
|
564
659
|
]
|
|
565
|
-
}), /* @__PURE__ */
|
|
566
|
-
ref:
|
|
660
|
+
}), /* @__PURE__ */ b("div", {
|
|
661
|
+
ref: R,
|
|
567
662
|
...{
|
|
568
663
|
0: {},
|
|
569
664
|
1: { className: "xid9utz xg7ukam x153jb6y xy8obcc xas2l8k x15x95ik x1az1eml" }
|
|
570
|
-
}[
|
|
571
|
-
children:
|
|
665
|
+
}[D !== void 0 | 0],
|
|
666
|
+
children: D
|
|
572
667
|
})]
|
|
573
|
-
}),
|
|
668
|
+
}), Oe && /* @__PURE__ */ b("div", {
|
|
574
669
|
className: "xg7ukam x178xt8z x13fuv20 xhjagg4",
|
|
575
|
-
children:
|
|
670
|
+
children: k
|
|
576
671
|
})]
|
|
577
672
|
});
|
|
578
673
|
}
|
|
579
|
-
function
|
|
580
|
-
let i =
|
|
581
|
-
return /* @__PURE__ */
|
|
674
|
+
function H({ role: e, isFixed: t, shouldTruncate: n, children: r }) {
|
|
675
|
+
let i = P[e], a = t && i.shouldTruncate, o = typeof r == "string" && (n ?? a);
|
|
676
|
+
return /* @__PURE__ */ b("span", {
|
|
582
677
|
...{
|
|
583
|
-
0: { className: "x78zum5 x6s0dn4 xeuugli xh8yej3
|
|
678
|
+
0: { className: "x78zum5 x6s0dn4 xeuugli xh8yej3 xw3im37" },
|
|
584
679
|
1: { className: "x78zum5 x6s0dn4 xeuugli xh8yej3 xt7dq6l" }
|
|
585
680
|
}[!t | 0],
|
|
586
|
-
children: /* @__PURE__ */
|
|
681
|
+
children: /* @__PURE__ */ b("span", {
|
|
587
682
|
title: typeof r == "string" ? r : void 0,
|
|
588
683
|
...{
|
|
589
684
|
0: { className: "x1lliihq xeuugli xh8yej3 x193iq5w" },
|
|
590
|
-
4: { className: "x1lliihq xeuugli xh8yej3 x193iq5w
|
|
685
|
+
4: { className: "x1lliihq xeuugli xh8yej3 x193iq5w x1l6neo7" },
|
|
591
686
|
2: { className: "x1lliihq xeuugli xh8yej3 x193iq5w xuxw1ft" },
|
|
592
|
-
6: { className: "x1lliihq xeuugli xh8yej3 x193iq5w
|
|
687
|
+
6: { className: "x1lliihq xeuugli xh8yej3 x193iq5w x1l6neo7 xuxw1ft" },
|
|
593
688
|
1: { className: "x1lliihq xeuugli xh8yej3 x193iq5w xb3r6kr xuxw1ft xlyipyv" },
|
|
594
|
-
5: { className: "x1lliihq xeuugli xh8yej3 x193iq5w
|
|
689
|
+
5: { className: "x1lliihq xeuugli xh8yej3 x193iq5w x1l6neo7 xb3r6kr xuxw1ft xlyipyv" },
|
|
595
690
|
3: { className: "x1lliihq xeuugli xh8yej3 x193iq5w xb3r6kr xuxw1ft xlyipyv" },
|
|
596
|
-
7: { className: "x1lliihq xeuugli xh8yej3 x193iq5w
|
|
597
|
-
}[!!t << 2 | !(!t || i.
|
|
691
|
+
7: { className: "x1lliihq xeuugli xh8yej3 x193iq5w x1l6neo7 xb3r6kr xuxw1ft xlyipyv" }
|
|
692
|
+
}[!!t << 2 | !(!t || i.shouldTruncate) << 1 | !!o],
|
|
598
693
|
children: r
|
|
599
694
|
})
|
|
600
695
|
});
|
|
601
696
|
}
|
|
602
|
-
function
|
|
697
|
+
function U(e) {
|
|
603
698
|
if (e.defaultPrevented || e.button !== 0) return !1;
|
|
604
699
|
let t = e.metaKey || e.ctrlKey, n = e.altKey || e.shiftKey;
|
|
605
700
|
return t || n ? !1 : e.detail === 0 || e.currentTarget.ownerDocument.getSelection()?.isCollapsed !== !1;
|
|
606
701
|
}
|
|
607
|
-
function
|
|
608
|
-
let a = t.label?.(e), o = t.href === void 0 ? /* @__PURE__ */
|
|
702
|
+
function Ce({ row: e, action: t, isActive: n, children: r, onKeyDown: i }) {
|
|
703
|
+
let a = t.label?.(e), o = t.href === void 0 ? /* @__PURE__ */ b("button", {
|
|
609
704
|
type: "button",
|
|
610
705
|
"aria-label": a,
|
|
611
706
|
"aria-pressed": n,
|
|
612
707
|
"data-row-action": !0,
|
|
613
708
|
onKeyDown: i,
|
|
614
709
|
onClick: (n) => {
|
|
615
|
-
|
|
710
|
+
U(n) && t.onActivate(e);
|
|
616
711
|
},
|
|
617
|
-
className: "x1rh3ycu x1hx0egp x78zum5 x6s0dn4 xh8yej3 xeuugli x17tes2r
|
|
712
|
+
className: "x1rh3ycu x1hx0egp x78zum5 x6s0dn4 xh8yej3 xeuugli x17tes2r x17oiadl x1717udv xc342km x1ok0vyi x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x16tdsg8 x1hl2dhg x1ypdohk x13qnu6 x9v5kkp x19rmrnh x7s97pk",
|
|
618
713
|
children: r
|
|
619
|
-
}) : /* @__PURE__ */
|
|
714
|
+
}) : /* @__PURE__ */ b("a", {
|
|
620
715
|
href: t.href(e),
|
|
621
716
|
"aria-label": a,
|
|
622
717
|
"data-row-action": !0,
|
|
623
718
|
onKeyDown: i,
|
|
624
719
|
onClick: (n) => {
|
|
625
|
-
t.onActivate !== void 0 &&
|
|
720
|
+
t.onActivate !== void 0 && U(n) && (n.preventDefault(), t.onActivate(e));
|
|
626
721
|
},
|
|
627
|
-
className: "x1rh3ycu x1hx0egp x78zum5 x6s0dn4 xh8yej3 xeuugli x17tes2r
|
|
722
|
+
className: "x1rh3ycu x1hx0egp x78zum5 x6s0dn4 xh8yej3 xeuugli x17tes2r x17oiadl x1717udv xc342km x1ok0vyi x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x16tdsg8 x1hl2dhg x1ypdohk x13qnu6 x9v5kkp x19rmrnh x7s97pk",
|
|
628
723
|
children: r
|
|
629
724
|
});
|
|
630
|
-
return a === void 0 ? o : /* @__PURE__ */
|
|
725
|
+
return a === void 0 ? o : /* @__PURE__ */ x(s.Root, { children: [/* @__PURE__ */ b(s.Trigger, { render: o }), /* @__PURE__ */ b(s.Portal, { children: /* @__PURE__ */ b(s.Positioner, {
|
|
631
726
|
side: "top",
|
|
632
727
|
align: "start",
|
|
633
|
-
children: /* @__PURE__ */
|
|
728
|
+
children: /* @__PURE__ */ b(s.Popup, { children: a })
|
|
634
729
|
}) })] });
|
|
635
730
|
}
|
|
636
731
|
// packages/collections/src/collection-scroll.tsx
|
|
637
|
-
function
|
|
732
|
+
function we(r) {
|
|
638
733
|
switch (r.status) {
|
|
639
|
-
case "loading": return /* @__PURE__ */
|
|
734
|
+
case "loading": return /* @__PURE__ */ b(t, {
|
|
640
735
|
role: "status",
|
|
641
736
|
variant: "caption",
|
|
642
737
|
tone: "muted",
|
|
643
738
|
children: r.message ?? "Loading…"
|
|
644
739
|
});
|
|
645
|
-
case "complete": return r.message === void 0 ? null : /* @__PURE__ */
|
|
740
|
+
case "complete": return r.message === void 0 ? null : /* @__PURE__ */ b(t, {
|
|
646
741
|
variant: "caption",
|
|
647
742
|
tone: "muted",
|
|
648
743
|
children: r.message
|
|
649
744
|
});
|
|
650
|
-
case "ready": return /* @__PURE__ */
|
|
745
|
+
case "ready": return /* @__PURE__ */ b(e, {
|
|
651
746
|
onClick: r.onLoadMore,
|
|
652
747
|
children: r.message ?? "Load more"
|
|
653
748
|
});
|
|
654
|
-
case "error": return /* @__PURE__ */
|
|
749
|
+
case "error": return /* @__PURE__ */ x(n, {
|
|
655
750
|
role: "status",
|
|
656
|
-
children: [/* @__PURE__ */
|
|
751
|
+
children: [/* @__PURE__ */ b(t, {
|
|
657
752
|
variant: "caption",
|
|
658
753
|
tone: "muted",
|
|
659
754
|
children: r.message ?? "More records could not be loaded."
|
|
660
|
-
}), /* @__PURE__ */
|
|
755
|
+
}), /* @__PURE__ */ b(e, {
|
|
661
756
|
onClick: r.onLoadMore,
|
|
662
757
|
children: "Retry"
|
|
663
758
|
})]
|
|
664
759
|
});
|
|
665
760
|
}
|
|
666
761
|
}
|
|
667
|
-
function
|
|
668
|
-
let o =
|
|
669
|
-
|
|
762
|
+
function W({ children: e, endContent: t, onEndReached: n, shouldFill: r = !1, endPosition: i = "end", label: a = "Collection" }) {
|
|
763
|
+
let o = _(null), s = _(null);
|
|
764
|
+
de({
|
|
670
765
|
end: s,
|
|
671
766
|
viewport: r ? o : void 0,
|
|
672
767
|
onEndReached: n,
|
|
673
768
|
content: e
|
|
674
769
|
});
|
|
675
|
-
let c = /* @__PURE__ */
|
|
770
|
+
let c = /* @__PURE__ */ b("div", {
|
|
676
771
|
ref: s,
|
|
677
772
|
...{
|
|
678
773
|
0: {},
|
|
@@ -680,7 +775,7 @@ function z({ children: e, endContent: t, onEndReached: n, fill: r = !1, endPosit
|
|
|
680
775
|
}[t !== void 0 | 0],
|
|
681
776
|
children: t
|
|
682
777
|
});
|
|
683
|
-
return /* @__PURE__ */
|
|
778
|
+
return /* @__PURE__ */ x("div", {
|
|
684
779
|
ref: o,
|
|
685
780
|
role: r ? "region" : void 0,
|
|
686
781
|
"aria-label": r ? a : void 0,
|
|
@@ -697,44 +792,44 @@ function z({ children: e, endContent: t, onEndReached: n, fill: r = !1, endPosit
|
|
|
697
792
|
});
|
|
698
793
|
}
|
|
699
794
|
// packages/collections/src/inspector.tsx
|
|
700
|
-
var
|
|
701
|
-
function
|
|
702
|
-
let c =
|
|
703
|
-
|
|
704
|
-
a !== void 0 && c.current !== null &&
|
|
795
|
+
var G = 860;
|
|
796
|
+
function K({ master: t, detail: n, label: r, masterLabel: i, revealKey: a, returnFocusRef: o, ...s }) {
|
|
797
|
+
let c = _(null), l = _(null), u = _(null);
|
|
798
|
+
g(() => {
|
|
799
|
+
a !== void 0 && c.current !== null && u.current !== null && c.current.clientWidth <= G && (u.current.focus({ preventScroll: !0 }), u.current.scrollIntoView({
|
|
705
800
|
block: "start",
|
|
706
801
|
behavior: "instant"
|
|
707
802
|
}));
|
|
708
803
|
}, [a]);
|
|
709
|
-
function
|
|
804
|
+
function d() {
|
|
710
805
|
let e = o?.current ?? l.current;
|
|
711
806
|
e?.focus({ preventScroll: !0 }), e?.scrollIntoView({
|
|
712
807
|
block: "nearest",
|
|
713
808
|
behavior: "instant"
|
|
714
809
|
});
|
|
715
810
|
}
|
|
716
|
-
return /* @__PURE__ */
|
|
717
|
-
...
|
|
718
|
-
children: /* @__PURE__ */
|
|
811
|
+
return /* @__PURE__ */ b("div", {
|
|
812
|
+
...f({ className: "x9vvk8s x12h1iku xeuugli xbixft x1hz01jw xtqrqnz x1778rvt" }, s),
|
|
813
|
+
children: /* @__PURE__ */ x("div", {
|
|
719
814
|
ref: c,
|
|
720
815
|
className: "xrvj5dj x4ruv2j x1y7acmc x7a106z x1j825kq xeuugli",
|
|
721
|
-
children: [/* @__PURE__ */
|
|
816
|
+
children: [/* @__PURE__ */ b("div", {
|
|
722
817
|
ref: l,
|
|
723
818
|
role: "group",
|
|
724
819
|
"aria-label": i,
|
|
725
820
|
tabIndex: -1,
|
|
726
821
|
className: "xeuugli",
|
|
727
822
|
children: t
|
|
728
|
-
}), /* @__PURE__ */
|
|
729
|
-
ref:
|
|
823
|
+
}), /* @__PURE__ */ x("aside", {
|
|
824
|
+
ref: u,
|
|
730
825
|
"aria-label": r,
|
|
731
826
|
tabIndex: -1,
|
|
732
827
|
className: "x7wzq59 x7cfggw xqfmuo8 xeuugli x1sbza1b xhuqrux xexx8yu xdz7uhd xpilrb4 xdctr63 x1t7ytsu x97x49r x972fbf x1mg79u0 x13fuv20 xhjagg4 x14ijc3v x13qnu6 x9v5kkp x19rmrnh x12ijfkc",
|
|
733
|
-
children: [/* @__PURE__ */
|
|
828
|
+
children: [/* @__PURE__ */ b("div", {
|
|
734
829
|
className: "x1s85apg x1yamub6 x1xxlxpq",
|
|
735
|
-
children: /* @__PURE__ */
|
|
830
|
+
children: /* @__PURE__ */ x(e, {
|
|
736
831
|
variant: "ghost",
|
|
737
|
-
onClick:
|
|
832
|
+
onClick: d,
|
|
738
833
|
children: ["Back to ", i.toLowerCase()]
|
|
739
834
|
})
|
|
740
835
|
}), n]
|
|
@@ -742,15 +837,15 @@ function V({ master: t, detail: n, label: r, masterLabel: i, revealKey: a, retur
|
|
|
742
837
|
})
|
|
743
838
|
});
|
|
744
839
|
}
|
|
745
|
-
function
|
|
746
|
-
return /* @__PURE__ */
|
|
747
|
-
...
|
|
748
|
-
children: e.map(({ label: e, value: t }) => /* @__PURE__ */
|
|
840
|
+
function q({ items: e, ...t }) {
|
|
841
|
+
return /* @__PURE__ */ b("dl", {
|
|
842
|
+
...f({ className: "x1ghz6dp xrvj5dj xezdspq x1i3977y xuytk5h x1hz01jw xvmahel xtqrqnz x1778rvt" }, t),
|
|
843
|
+
children: e.map(({ label: e, value: t }) => /* @__PURE__ */ x("div", {
|
|
749
844
|
className: "xjp7ctv",
|
|
750
|
-
children: [/* @__PURE__ */
|
|
845
|
+
children: [/* @__PURE__ */ b("dt", {
|
|
751
846
|
className: "xeuugli x153jb6y xj0a0fe",
|
|
752
847
|
children: e
|
|
753
|
-
}), /* @__PURE__ */
|
|
848
|
+
}), /* @__PURE__ */ b("dd", {
|
|
754
849
|
className: "xeuugli x1ghz6dp xbixft xj0a0fe xss6m8b",
|
|
755
850
|
children: t
|
|
756
851
|
})]
|
|
@@ -758,20 +853,20 @@ function H({ items: e, ...t }) {
|
|
|
758
853
|
});
|
|
759
854
|
}
|
|
760
855
|
// packages/collections/src/list-footer.tsx
|
|
761
|
-
function
|
|
762
|
-
return /* @__PURE__ */
|
|
763
|
-
...
|
|
764
|
-
children: [/* @__PURE__ */
|
|
856
|
+
function J({ children: e, actions: t, ...n }) {
|
|
857
|
+
return /* @__PURE__ */ x("div", {
|
|
858
|
+
...f({ className: "x78zum5 x6s0dn4 x1qughib x1a02dak xeuugli x1n8ia3y x1qokhjc x1m92p3w x178xt8z x13fuv20 xhjagg4 x153jb6y x1hz01jw xvmahel xtqrqnz x1778rvt" }, n),
|
|
859
|
+
children: [/* @__PURE__ */ b("div", {
|
|
765
860
|
className: "xeuugli xj0a0fe",
|
|
766
861
|
children: e
|
|
767
|
-
}), t != null && /* @__PURE__ */
|
|
862
|
+
}), t != null && /* @__PURE__ */ b("div", {
|
|
768
863
|
className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli",
|
|
769
864
|
children: t
|
|
770
865
|
})]
|
|
771
866
|
});
|
|
772
867
|
}
|
|
773
868
|
// packages/collections/src/metrics.tsx
|
|
774
|
-
var
|
|
869
|
+
var Y = {
|
|
775
870
|
grid: {
|
|
776
871
|
k1xSpc: "x78zum5",
|
|
777
872
|
kwnvtZ: "x1a02dak",
|
|
@@ -789,160 +884,84 @@ var W = {
|
|
|
789
884
|
kogj98: "x1ghz6dp",
|
|
790
885
|
$$css: !0
|
|
791
886
|
}
|
|
792
|
-
},
|
|
793
|
-
inline:
|
|
794
|
-
columns:
|
|
887
|
+
}, X = {
|
|
888
|
+
inline: Y.grid,
|
|
889
|
+
columns: Y.columns
|
|
795
890
|
};
|
|
796
|
-
function
|
|
797
|
-
return /* @__PURE__ */
|
|
891
|
+
function Z({ layout: e = "inline", ...t }) {
|
|
892
|
+
return /* @__PURE__ */ b("dl", { ...f(p.props(X[e]), t) });
|
|
798
893
|
}
|
|
799
|
-
function
|
|
800
|
-
return /* @__PURE__ */
|
|
801
|
-
...
|
|
802
|
-
children: [/* @__PURE__ */
|
|
894
|
+
function Te({ label: e, value: t, ...n }) {
|
|
895
|
+
return /* @__PURE__ */ x("div", {
|
|
896
|
+
...f({ className: "x3nfvp2 x1pha0wt x1a02dak xunmzkg xeuugli x1hz01jw xvmahel xtqrqnz x1778rvt" }, n),
|
|
897
|
+
children: [/* @__PURE__ */ b("dt", {
|
|
803
898
|
className: "xeuugli x153jb6y x9ek82g xj0a0fe",
|
|
804
899
|
children: e
|
|
805
|
-
}), /* @__PURE__ */
|
|
900
|
+
}), /* @__PURE__ */ b("dd", {
|
|
806
901
|
className: "xeuugli x1ghz6dp xbixft xk4h15q xss6m8b xj0a0fe",
|
|
807
902
|
children: t
|
|
808
903
|
})]
|
|
809
904
|
});
|
|
810
905
|
}
|
|
811
|
-
// packages/collections/src/table.tsx
|
|
812
|
-
var J = {
|
|
813
|
-
kzqmXN: "x11ymkkh x2ipgtl",
|
|
814
|
-
$$css: !0
|
|
815
|
-
}, Y = {
|
|
816
|
-
secondary: {
|
|
817
|
-
k1xSpc: "x1n9xxwz xazwdyr",
|
|
818
|
-
$$css: !0
|
|
819
|
-
},
|
|
820
|
-
column: (e) => [J, { "--x-1xmrurk": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(`${e}%`) }],
|
|
821
|
-
th: {
|
|
822
|
-
kVAEAm: "x1n2onr6",
|
|
823
|
-
kZKoxP: "x24vdcc",
|
|
824
|
-
kB7OPa: "x9f619",
|
|
825
|
-
k8WAf4: "xt970qd",
|
|
826
|
-
kg3NbH: "x1dc62k6",
|
|
827
|
-
kWkggS: "xpvm0e4",
|
|
828
|
-
kMwMTN: "x153jb6y",
|
|
829
|
-
kGuDYH: "xy8obcc",
|
|
830
|
-
k63SB2: "xj57cvi",
|
|
831
|
-
kLWn49: "xas2l8k",
|
|
832
|
-
khDVqt: "xuxw1ft",
|
|
833
|
-
k5JduY: "x1s928wv",
|
|
834
|
-
kwXMNM: "x1j6awrg",
|
|
835
|
-
kLxBhq: "xnbfe2x",
|
|
836
|
-
k3foIR: "xxb5w0g",
|
|
837
|
-
k4zj60: "x1a5uphr",
|
|
838
|
-
kkgrvl: "xv6d0c5",
|
|
839
|
-
ks3ayO: "xtccgxd",
|
|
840
|
-
$$css: !0
|
|
841
|
-
},
|
|
842
|
-
lastHeader: {
|
|
843
|
-
kc3QkE: "x1h1zc6f",
|
|
844
|
-
$$css: !0
|
|
845
|
-
},
|
|
846
|
-
lastPrimaryHeader: {
|
|
847
|
-
kc3QkE: "x1f72eer",
|
|
848
|
-
$$css: !0
|
|
849
|
-
}
|
|
850
|
-
};
|
|
851
|
-
function ve({ headers: e, children: t, label: n, ...r }) {
|
|
852
|
-
let i = e.findLastIndex((e) => typeof e == "string" || e.secondary !== !0);
|
|
853
|
-
return /* @__PURE__ */ y("div", {
|
|
854
|
-
role: "region",
|
|
855
|
-
"aria-label": n,
|
|
856
|
-
tabIndex: 0,
|
|
857
|
-
className: "xeuugli xh8yej3 xw2csxc x1t137rt x13qnu6 x9v5kkp x19rmrnh x1bqaal",
|
|
858
|
-
children: /* @__PURE__ */ b("table", {
|
|
859
|
-
...u({ "aria-label": n }, {
|
|
860
|
-
0: { className: "xh8yej3 x1mwwwfo xpvm0e4 x1hz01jw xvmahel xtqrqnz x1778rvt xdpxx8g" },
|
|
861
|
-
1: { className: "xh8yej3 x1mwwwfo xpvm0e4 x1hz01jw xvmahel xtqrqnz x1778rvt xdpxx8g x140o2bo" }
|
|
862
|
-
}[!!e.some((e) => typeof e != "string") | 0], r),
|
|
863
|
-
children: [/* @__PURE__ */ y("thead", { children: /* @__PURE__ */ y("tr", { children: e.map((t, n) => /* @__PURE__ */ y("th", {
|
|
864
|
-
scope: "col",
|
|
865
|
-
...d.props(Y.th, typeof t != "string" && Y.column(t.width), typeof t != "string" && t.secondary === !0 && Y.secondary, n === e.length - 1 && Y.lastHeader, n === i && Y.lastPrimaryHeader),
|
|
866
|
-
children: /* @__PURE__ */ y("span", {
|
|
867
|
-
title: typeof t == "string" ? t : t.label,
|
|
868
|
-
className: "x1lliihq xb3r6kr xlyipyv",
|
|
869
|
-
children: typeof t == "string" ? t : t.label
|
|
870
|
-
})
|
|
871
|
-
}, typeof t == "string" ? t : t.label)) }) }), /* @__PURE__ */ y("tbody", { children: t })]
|
|
872
|
-
})
|
|
873
|
-
});
|
|
874
|
-
}
|
|
875
|
-
function X({ children: e, secondary: t = !1, mobileLabel: n, ...r }) {
|
|
876
|
-
return /* @__PURE__ */ b("td", {
|
|
877
|
-
...u({
|
|
878
|
-
0: { className: "x1v2how9 x9f619 x1hmw7ec x1dc62k6 xbixft xxymvpz xuxw1ft xss6m8b xb3r6kr xlyipyv" },
|
|
879
|
-
1: { className: "x1v2how9 x9f619 x1hmw7ec x1dc62k6 xbixft xxymvpz xuxw1ft xss6m8b xb3r6kr xlyipyv x1n9xxwz xazwdyr" }
|
|
880
|
-
}[!!t | 0], r),
|
|
881
|
-
children: [e, n !== void 0 && /* @__PURE__ */ y("small", {
|
|
882
|
-
className: "x1s85apg xacuhyv x153jb6y xy8obcc xas2l8k xb3r6kr xlyipyv",
|
|
883
|
-
children: n
|
|
884
|
-
})]
|
|
885
|
-
});
|
|
886
|
-
}
|
|
887
906
|
// packages/collections/src/timestamp.tsx
|
|
888
|
-
function
|
|
889
|
-
return n === void 0 ? /* @__PURE__ */
|
|
907
|
+
function Q({ dateTime: e, label: t, title: n }) {
|
|
908
|
+
return n === void 0 ? /* @__PURE__ */ b("time", {
|
|
890
909
|
dateTime: e,
|
|
891
910
|
className: "x1hz01jw xy8obcc xas2l8k x153jb6y xss6m8b xj0a0fe x13qnu6 x9v5kkp x19rmrnh x7s97pk",
|
|
892
911
|
children: t
|
|
893
|
-
}) : /* @__PURE__ */
|
|
894
|
-
render: /* @__PURE__ */
|
|
912
|
+
}) : /* @__PURE__ */ x(s.Root, { children: [/* @__PURE__ */ b(s.Trigger, {
|
|
913
|
+
render: /* @__PURE__ */ b("time", {
|
|
895
914
|
dateTime: e,
|
|
896
915
|
tabIndex: 0,
|
|
897
916
|
"aria-label": n,
|
|
898
917
|
className: "x1hz01jw xy8obcc xas2l8k x153jb6y xss6m8b xj0a0fe x13qnu6 x9v5kkp x19rmrnh x7s97pk"
|
|
899
918
|
}),
|
|
900
919
|
children: t
|
|
901
|
-
}), /* @__PURE__ */
|
|
920
|
+
}), /* @__PURE__ */ b(s.Portal, { children: /* @__PURE__ */ b(s.Positioner, { children: /* @__PURE__ */ b(s.Popup, { children: n }) }) })] });
|
|
902
921
|
}
|
|
903
922
|
// packages/collections/src/timeline.tsx
|
|
904
|
-
function
|
|
905
|
-
return /* @__PURE__ */
|
|
923
|
+
function Ee({ label: e, children: t }) {
|
|
924
|
+
return /* @__PURE__ */ b("ol", {
|
|
906
925
|
"aria-label": e,
|
|
907
926
|
className: "xe8uvvx x1ghz6dp x1717udv xeuugli",
|
|
908
927
|
children: t
|
|
909
928
|
});
|
|
910
929
|
}
|
|
911
|
-
function
|
|
912
|
-
let [c, l] =
|
|
930
|
+
function $({ icon: e, title: t, time: n, metadata: i, children: a, details: o, defaultOpen: s = !1 }) {
|
|
931
|
+
let [c, l] = v(s), u = /* @__PURE__ */ x("div", {
|
|
913
932
|
className: "x78zum5 x1pha0wt x1hnptsi x1a02dak xeuugli",
|
|
914
|
-
children: [/* @__PURE__ */
|
|
933
|
+
children: [/* @__PURE__ */ b("div", {
|
|
915
934
|
className: "xeuugli xk4h15q xj0a0fe",
|
|
916
|
-
children: o === void 0 ? t : /* @__PURE__ */
|
|
917
|
-
className: "x14atkfc x16exltd
|
|
935
|
+
children: o === void 0 ? t : /* @__PURE__ */ b(r.Trigger, {
|
|
936
|
+
className: "x14atkfc x16exltd x17oiadl xt970qd xlqzeqv",
|
|
918
937
|
children: t
|
|
919
938
|
})
|
|
920
|
-
}), n != null && /* @__PURE__ */
|
|
939
|
+
}), n != null && /* @__PURE__ */ b("div", {
|
|
921
940
|
className: "xeuugli x153jb6y xy8obcc xas2l8k xss6m8b xj0a0fe",
|
|
922
941
|
children: n
|
|
923
942
|
})]
|
|
924
|
-
}), d = /* @__PURE__ */
|
|
943
|
+
}), d = /* @__PURE__ */ x(y, { children: [
|
|
925
944
|
u,
|
|
926
|
-
a != null && (!c || o === void 0) && /* @__PURE__ */
|
|
945
|
+
a != null && (!c || o === void 0) && /* @__PURE__ */ b("div", {
|
|
927
946
|
className: "xeuugli x1ewvobj xj0a0fe",
|
|
928
947
|
children: a
|
|
929
948
|
}),
|
|
930
|
-
i != null && /* @__PURE__ */
|
|
949
|
+
i != null && /* @__PURE__ */ b("div", {
|
|
931
950
|
className: "xeuugli x153jb6y xy8obcc xas2l8k xj0a0fe",
|
|
932
951
|
children: i
|
|
933
952
|
}),
|
|
934
|
-
o !== void 0 && /* @__PURE__ */
|
|
953
|
+
o !== void 0 && /* @__PURE__ */ b(r.Panel, { children: o })
|
|
935
954
|
] });
|
|
936
|
-
return /* @__PURE__ */
|
|
955
|
+
return /* @__PURE__ */ x("li", {
|
|
937
956
|
className: "x1n2onr6 xrvj5dj x1eqwfih x1y1mm1b xhlx3wy xeuugli x1hz01jw xvmahel xtqrqnz x1778rvt xbixft x1cpjm7i x1hmns74 x1lk18uv x1gi6gvw x1jw5pjq x1vgi0k x1mi36wk x1wse844 xup0pd7",
|
|
938
|
-
children: [/* @__PURE__ */
|
|
957
|
+
children: [/* @__PURE__ */ b("span", {
|
|
939
958
|
"aria-hidden": !0,
|
|
940
959
|
className: "x78zum5 x6s0dn4 xl56j7k x1b1e0sl x153jb6y",
|
|
941
960
|
children: e
|
|
942
|
-
}), o === void 0 ? /* @__PURE__ */
|
|
961
|
+
}), o === void 0 ? /* @__PURE__ */ b("div", {
|
|
943
962
|
className: "xrvj5dj x1hnptsi xeuugli",
|
|
944
963
|
children: d
|
|
945
|
-
}) : /* @__PURE__ */
|
|
964
|
+
}) : /* @__PURE__ */ b(r.Root, {
|
|
946
965
|
open: c,
|
|
947
966
|
onOpenChange: l,
|
|
948
967
|
className: "xrvj5dj x1hnptsi xeuugli xh8yej3",
|
|
@@ -950,8 +969,8 @@ function Q({ icon: e, title: t, time: n, metadata: i, children: a, details: o, d
|
|
|
950
969
|
})]
|
|
951
970
|
});
|
|
952
971
|
}
|
|
953
|
-
var
|
|
954
|
-
Root:
|
|
955
|
-
Item:
|
|
972
|
+
var De = {
|
|
973
|
+
Root: Ee,
|
|
974
|
+
Item: $
|
|
956
975
|
};
|
|
957
|
-
export {
|
|
976
|
+
export { we as CollectionEnd, ue as CollectionPagination, W as CollectionScroll, O as CollectionToolbar, Se as DataTable, R as DataTablePlaceholder, B as DataTableText, V as DataTableTextPlaceholder, q as Details, A as DisplayOptions, k as FilterChips, K as Inspector, J as ListFooter, Te as Metric, Z as MetricGrid, De as Timeline, Q as Timestamp };
|