@mechane-ai/elements 0.64.0 → 0.65.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 +18 -17
- package/dist/ai.js +7 -7
- package/dist/{article-BopqPz1K.js → article-BrUa4Wz1.js} +6 -6
- package/dist/article.js +1 -1
- package/dist/catalog.json +59 -15
- package/dist/{categorical-values-8LA9KXhi.js → categorical-values-AXJkMt-Y.js} +1 -1
- package/dist/charts/cartesian.js +1 -1
- package/dist/charts/comparison.js +1 -1
- package/dist/charts/distribution.js +1 -1
- package/dist/charts/figure.js +12 -12
- package/dist/charts/graph.js +1 -1
- package/dist/charts/hierarchy.js +1 -1
- package/dist/charts/image.js +1 -1
- package/dist/charts/matrix.js +1 -1
- package/dist/charts/plot.js +3 -3
- package/dist/charts/relationship.js +1 -1
- package/dist/charts/text.js +1 -1
- package/dist/charts/timeline.js +2 -2
- package/dist/charts/trend.js +1 -1
- package/dist/charts.js +2 -2
- package/dist/{code-block-BjQUIvvw.js → code-block-BDRmjlES.js} +1 -1
- package/dist/collections.js +1 -1
- package/dist/{commands-BI9rWGpb.js → commands-rzsDElrG.js} +2 -2
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +3 -3
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +1 -1
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-C3RAJ2kP.js → content-link-DRaNf1mD.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/{dates-D1v_jiva.js → dates-wu-gKO2C.js} +2 -2
- package/dist/{dumbbell-plot-QGjFMk0X.js → dumbbell-plot-VFajQtEW.js} +3 -3
- package/dist/{embedding-map-D_RNxsCD.js → embedding-map-BqDEmy88.js} +6 -6
- package/dist/feedback.js +1 -1
- package/dist/{figure-frame-CF3298LZ.js → figure-frame-Dd-pOeZN.js} +3 -3
- package/dist/forms/dates.js +1 -1
- package/dist/{forms-DlKhXUlc.js → forms-Bjx7JQ30.js} +1 -1
- package/dist/forms.js +2 -2
- package/dist/{image-grid-BXsgVBnB.js → image-grid-Dpyqxgwy.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/kits/evaluation.js +4 -4
- package/dist/kits/interpretability.js +11 -11
- package/dist/kits/operations.js +6 -6
- package/dist/kits/research.js +128 -149
- package/dist/kits/training.js +5 -5
- package/dist/layout.js +1 -1
- package/dist/lesson.js +3 -3
- package/dist/{markdown-B92daSMP.js → markdown--nfaDoR1.js} +2 -2
- package/dist/mdx.js +6 -6
- package/dist/navigation/commands.js +1 -1
- package/dist/{navigation-D3vnWiVv.js → navigation-Cp3p0gss.js} +1 -1
- package/dist/navigation.js +4 -4
- package/dist/packages/collections/src/table-query.d.ts +4 -3
- package/dist/packages/collections/src/use-collection-controls.d.ts +6 -0
- package/dist/packages/kits/src/research/collection-page.d.ts +3 -4
- package/dist/packages/layout/src/app-shell.d.ts +3 -1
- package/dist/packages/layout/src/index.d.ts +4 -4
- package/dist/packages/layout/src/page-inset.d.ts +5 -0
- package/dist/packages/layout/src/page-layout.d.ts +4 -9
- package/dist/packages/layout/src/page-toolbar.d.ts +1 -2
- package/dist/packages/layout/src/reading-column.d.ts +4 -0
- package/dist/packages/layout/src/record-page.d.ts +4 -6
- package/dist/packages/layout/src/sidebar.d.ts +3 -1
- package/dist/packages/layout/src/workbench.d.ts +2 -6
- package/dist/packages/navigation/src/current-page-click.d.ts +3 -0
- package/dist/packages/navigation/src/index.d.ts +1 -0
- package/dist/{param-DfOYi9wL.js → param-CwT1RvUS.js} +1 -1
- package/dist/{pierre-diff-DP_TXXIt.js → pierre-diff-DuvK3kLF.js} +1 -1
- package/dist/{plot-layout-BfXmAi71.js → plot-layout-CvkeUuG6.js} +2 -2
- package/dist/{plot-surface-UQgDiTVe.js → plot-surface-yy37R4vs.js} +1 -1
- package/dist/{reference-lines-BRHB78Wb.js → reference-lines-AMeDkYlo.js} +1 -1
- package/dist/{scene-DlVQupfw.js → scene-BRhI8XSy.js} +6 -6
- package/dist/scene.js +1 -1
- package/dist/{slope-chart-CjXcvoRJ.js → slope-chart-BMOCaa8R.js} +4 -4
- package/dist/{src-DojhQZKX.js → src-9n2M1V_y.js} +376 -399
- package/dist/{src-DPcnDU5H.js → src-BdyO4PgQ.js} +1 -1
- package/dist/{src-BYmv3_AL.js → src-BgmAkau8.js} +37 -31
- package/dist/{src-BdQGb362.js → src-Bns-5joF.js} +4 -4
- package/dist/{src-BYnmQkDq.js → src-C5SH3jjU.js} +2 -2
- package/dist/{src-BI1xQE7D.js → src-C_E29-DX.js} +46 -32
- package/dist/{src-P19zz_aO.js → src-Tu6d_Pm8.js} +535 -531
- package/dist/styles2.css +14 -40
- package/dist/{time-series-Dg3DZRGx.js → time-series-CTNVqoUQ.js} +8 -8
- package/dist/{timeline-C2IVroD3.js → timeline-DrsDtEIW.js} +4 -4
- package/dist/{token-heatmap-CZtIPU60.js → token-heatmap-DddArdH8.js} +3 -3
- package/dist/{token-predictions-BJ5L-Lrm.js → token-predictions-CBykmPID.js} +3 -3
- package/dist/{transport-D9e0H2we.js → transport-r1QgELf8.js} +4 -4
- package/dist/{tree-diagram-DRAJiqjW.js → tree-diagram-BIJFK4pl.js} +4 -4
- package/dist/{treemap-BdELCV7E.js → treemap-DgmEw_mr.js} +4 -4
- package/dist/{use-tween-COV8bEYL.js → use-tween-BWf44Jy4.js} +1 -1
- package/dist/{violin-plot-DuxqWnuD.js → violin-plot-BYJnv6sG.js} +3 -3
- package/dist/{waterfall-D4ewGb4u.js → waterfall-BNseqMas.js} +4 -4
- package/package.json +1 -1
- package/recipes/allocation-report.tsx +4 -4
- package/recipes/calendar-workspace.tsx +14 -10
- package/recipes/consequential-form.tsx +4 -4
- package/recipes/searchable-collection.tsx +69 -59
- package/recipes/sectioned-report.tsx +17 -18
- package/recipes/session-timeline.tsx +59 -0
- package/recipes/tabbed-workspace.tsx +7 -8
- package/recipes/workspace-files.tsx +94 -0
- package/recipes/workspace-report.tsx +130 -0
- package/skills/extend-elements/SKILL.md +20 -0
- package/skills/review-elements/SKILL.md +10 -7
- package/skills/upgrade-elements/references/releases.md +16 -0
- package/skills/use-elements/SKILL.md +6 -2
- package/skills/use-elements/references/collections.md +8 -2
- package/skills/use-elements/references/editorial-restraint.md +13 -18
- package/skills/use-elements/references/reports.md +4 -1
- package/skills/use-elements/references/workspace.md +18 -14
- package/dist/packages/layout/src/detail-page.d.ts +0 -9
- package/dist/packages/layout/src/page-content.d.ts +0 -5
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { E as e, O as t, c as n, i as r, m as i, u as a, v as o } from "./src-
|
|
2
|
-
import { c as s } from "./src-
|
|
1
|
+
import { E as e, O as t, c as n, i as r, m as i, u as a, v as o } from "./src-BgmAkau8.js";
|
|
2
|
+
import { c as s } from "./src-C5SH3jjU.js";
|
|
3
3
|
import { i as c, r as l, t as u } from "./src-na2DdkKI.js";
|
|
4
|
-
import { d } from "./src-
|
|
4
|
+
import { d } from "./src-BdyO4PgQ.js";
|
|
5
5
|
import { l as f, t as p } from "./constants.stylex-CqhVl0uU.js";
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { n as
|
|
9
|
-
import * as
|
|
10
|
-
import { Button as
|
|
11
|
-
import { createParts as _, mergeProps as v, usePart as
|
|
12
|
-
import { Children as
|
|
13
|
-
import { byCell as
|
|
14
|
-
import { Fragment as
|
|
15
|
-
import { ArrowDown as
|
|
16
|
-
import { useShortcut as
|
|
17
|
-
import { Toolbar as
|
|
18
|
-
import { createColumnHelper as
|
|
19
|
-
import { Timeline as
|
|
6
|
+
import { t as m } from "./accessibility-P89UG9-r.js";
|
|
7
|
+
import { t as ee } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
8
|
+
import { n as h } from "./forms-Bjx7JQ30.js";
|
|
9
|
+
import * as g from "@stylexjs/stylex";
|
|
10
|
+
import { Button as te } from "@ui-sdk/react/button";
|
|
11
|
+
import { createParts as _, mergeProps as v, usePart as ne, usePrimitive as y } from "@ui-sdk/react/primitive";
|
|
12
|
+
import { Children as b, Fragment as x, createContext as S, useContext as C, useEffect as w, useId as T, useLayoutEffect as E, useMemo as D, useRef as O, useState as k, useSyncExternalStore as A } from "react";
|
|
13
|
+
import { byCell as j, createChange as M, createGridFocus as re, createSelection as N, createVirtualizer as ie, definePrimitive as P, dispatch as F, selects as I } from "@ui-sdk/core";
|
|
14
|
+
import { Fragment as ae, jsx as L, jsxs as R } from "react/jsx-runtime";
|
|
15
|
+
import { ArrowDown as oe, ArrowUp as se, ArrowUpDown as ce, ChevronLeft as le, ChevronRight as ue, CircleDashed as de, ListFilter as z, Search as fe, Settings2 as pe, X as B } from "lucide-react";
|
|
16
|
+
import { useShortcut as V } from "@ui-sdk/react/shortcuts";
|
|
17
|
+
import { Toolbar as H, ToolbarButton as U, ToolbarGroup as me, ToolbarInput as W } from "@ui-sdk/react/toolbar";
|
|
18
|
+
import { createColumnHelper as he, tableFeatures as ge, useTable as _e } from "@tanstack/react-table";
|
|
19
|
+
import { Timeline as ve, TimelineDescription as ye, TimelineItem as be, TimelineMarker as G, TimelineTime as K, TimelineTitle as xe } from "@ui-sdk/react/timeline";
|
|
20
20
|
// packages/collections/src/control-toolbar.tsx
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
return C(
|
|
21
|
+
var Se = S(!1);
|
|
22
|
+
function Ce(e) {
|
|
23
|
+
return C(Se) ? /* @__PURE__ */ L(me, { ...e }) : /* @__PURE__ */ L(Se, {
|
|
24
24
|
value: !0,
|
|
25
|
-
children: /* @__PURE__ */
|
|
25
|
+
children: /* @__PURE__ */ L(H, { ...e })
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
return C(
|
|
28
|
+
function we(e) {
|
|
29
|
+
return C(Se) ? /* @__PURE__ */ L(U, { render: e }) : e;
|
|
30
30
|
}
|
|
31
31
|
// packages/collections/src/collection-controls.tsx
|
|
32
|
-
var
|
|
32
|
+
var Te = {
|
|
33
33
|
toolbar: {
|
|
34
34
|
kOIVth: "x1hnptsi",
|
|
35
35
|
kMwMTN: "xbixft",
|
|
@@ -44,40 +44,40 @@ var W = {
|
|
|
44
44
|
$$css: !0
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
-
function
|
|
48
|
-
let r =
|
|
49
|
-
return !r && !i ? null : /* @__PURE__ */
|
|
47
|
+
function Ee({ label: e, children: t, actions: n }) {
|
|
48
|
+
let r = b.toArray(t).length > 0, i = b.toArray(n).length > 0;
|
|
49
|
+
return !r && !i ? null : /* @__PURE__ */ R(Ce, {
|
|
50
50
|
"aria-label": e,
|
|
51
|
-
...
|
|
52
|
-
children: [t, i && /* @__PURE__ */
|
|
51
|
+
...g.props(a.row, a.blockEnd, Te.toolbar),
|
|
52
|
+
children: [t, i && /* @__PURE__ */ L("div", {
|
|
53
53
|
className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli xvc5jky",
|
|
54
54
|
children: n
|
|
55
55
|
})]
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
58
|
+
function q({ filters: e, onRemove: n, label: r = "Applied filters" }) {
|
|
59
|
+
return e.length === 0 ? null : /* @__PURE__ */ L(Ce, {
|
|
60
60
|
"aria-label": r,
|
|
61
61
|
className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli",
|
|
62
|
-
children: e.map((e) => /* @__PURE__ */
|
|
62
|
+
children: e.map((e) => /* @__PURE__ */ R("span", {
|
|
63
63
|
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",
|
|
64
|
-
children: [/* @__PURE__ */
|
|
64
|
+
children: [/* @__PURE__ */ L("span", {
|
|
65
65
|
title: e.label,
|
|
66
66
|
className: "xeuugli xb3r6kr xlyipyv xuxw1ft",
|
|
67
67
|
children: e.label
|
|
68
|
-
}), /* @__PURE__ */
|
|
69
|
-
render: /* @__PURE__ */
|
|
68
|
+
}), /* @__PURE__ */ L(U, {
|
|
69
|
+
render: /* @__PURE__ */ L(t, {
|
|
70
70
|
"aria-label": `Remove ${e.label}`,
|
|
71
71
|
variant: "ghost",
|
|
72
|
-
xstyle:
|
|
72
|
+
xstyle: Te.remove
|
|
73
73
|
}),
|
|
74
74
|
onClick: (t) => {
|
|
75
|
-
|
|
75
|
+
F({ options: () => ({ onRemove: n }) }, "onRemove", e.id, {
|
|
76
76
|
reason: "remove-press",
|
|
77
77
|
event: t.nativeEvent
|
|
78
78
|
});
|
|
79
79
|
},
|
|
80
|
-
children: /* @__PURE__ */
|
|
80
|
+
children: /* @__PURE__ */ L(B, {
|
|
81
81
|
size: 14,
|
|
82
82
|
"aria-hidden": "true"
|
|
83
83
|
})
|
|
@@ -85,30 +85,30 @@ function K({ filters: e, onRemove: n, label: r = "Applied filters" }) {
|
|
|
85
85
|
}, e.id))
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
let o =
|
|
88
|
+
function De({ options: n, onChange: r, onReset: i, label: a = "Display options" }) {
|
|
89
|
+
let o = we(/* @__PURE__ */ L(t, {
|
|
90
90
|
"aria-label": a,
|
|
91
91
|
title: a
|
|
92
92
|
}));
|
|
93
|
-
return /* @__PURE__ */
|
|
93
|
+
return /* @__PURE__ */ R(l.Root, { children: [/* @__PURE__ */ L(l.Trigger, {
|
|
94
94
|
render: o,
|
|
95
|
-
children: /* @__PURE__ */
|
|
95
|
+
children: /* @__PURE__ */ L(pe, {
|
|
96
96
|
size: 14,
|
|
97
97
|
"aria-hidden": "true"
|
|
98
98
|
})
|
|
99
|
-
}), /* @__PURE__ */
|
|
99
|
+
}), /* @__PURE__ */ R(l.Popup, {
|
|
100
100
|
align: "end",
|
|
101
|
-
children: [/* @__PURE__ */
|
|
101
|
+
children: [/* @__PURE__ */ L(l.Title, { children: "Display" }), /* @__PURE__ */ R("div", {
|
|
102
102
|
className: "xrvj5dj x1n8ia3y xfb3i0g",
|
|
103
|
-
children: [n.map((e) => /* @__PURE__ */
|
|
103
|
+
children: [n.map((e) => /* @__PURE__ */ R("label", {
|
|
104
104
|
className: "x78zum5 x6s0dn4 x1hnptsi xbixft xtqrqnz x1hz01jw x1778rvt xeuugli xj0a0fe",
|
|
105
|
-
children: [/* @__PURE__ */
|
|
105
|
+
children: [/* @__PURE__ */ L(s.Root, {
|
|
106
106
|
checked: e.isChecked,
|
|
107
107
|
onCheckedChange: (t) => r(e.id, t),
|
|
108
108
|
disabled: e.isRequired === !0,
|
|
109
|
-
children: /* @__PURE__ */
|
|
109
|
+
children: /* @__PURE__ */ L(s.Indicator, {})
|
|
110
110
|
}), e.label]
|
|
111
|
-
}, e.id)), i !== void 0 && /* @__PURE__ */
|
|
111
|
+
}, e.id)), i !== void 0 && /* @__PURE__ */ L(e, {
|
|
112
112
|
type: "button",
|
|
113
113
|
variant: "ghost",
|
|
114
114
|
onClick: i,
|
|
@@ -117,27 +117,27 @@ function Oe({ options: n, onChange: r, onReset: i, label: a = "Display options"
|
|
|
117
117
|
})]
|
|
118
118
|
})] });
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
return /* @__PURE__ */
|
|
120
|
+
function Oe({ label: t, description: r, previous: i, next: a }) {
|
|
121
|
+
return /* @__PURE__ */ R("nav", {
|
|
122
122
|
"aria-label": t === void 0 ? "Pagination" : `${t} pagination`,
|
|
123
123
|
className: "x78zum5 x6s0dn4 x1qughib x1a02dak xaml1ju xeuugli",
|
|
124
|
-
children: [/* @__PURE__ */
|
|
124
|
+
children: [/* @__PURE__ */ L(n, { children: r }), /* @__PURE__ */ R("div", {
|
|
125
125
|
className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli xvc5jky",
|
|
126
|
-
children: [/* @__PURE__ */
|
|
126
|
+
children: [/* @__PURE__ */ R(e, {
|
|
127
127
|
variant: "outline",
|
|
128
128
|
"aria-label": t === void 0 ? void 0 : `Previous page of ${t}`,
|
|
129
129
|
disabled: i.disabled,
|
|
130
130
|
onClick: i.onClick,
|
|
131
|
-
children: [/* @__PURE__ */
|
|
131
|
+
children: [/* @__PURE__ */ L(le, {
|
|
132
132
|
size: 16,
|
|
133
133
|
"aria-hidden": "true"
|
|
134
134
|
}), "Previous"]
|
|
135
|
-
}), /* @__PURE__ */
|
|
135
|
+
}), /* @__PURE__ */ R(e, {
|
|
136
136
|
variant: "outline",
|
|
137
137
|
"aria-label": t === void 0 ? void 0 : `Next page of ${t}`,
|
|
138
138
|
disabled: a.disabled,
|
|
139
139
|
onClick: a.onClick,
|
|
140
|
-
children: ["Next", /* @__PURE__ */
|
|
140
|
+
children: ["Next", /* @__PURE__ */ L(ue, {
|
|
141
141
|
size: 16,
|
|
142
142
|
"aria-hidden": "true"
|
|
143
143
|
})]
|
|
@@ -146,11 +146,11 @@ function ke({ label: t, description: r, previous: i, next: a }) {
|
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
// packages/collections/src/data-table-styles.ts
|
|
149
|
-
var
|
|
149
|
+
var ke = {
|
|
150
150
|
kmVPX3: "x1717udv",
|
|
151
151
|
kMzoRj: "xc342km",
|
|
152
152
|
$$css: !0
|
|
153
|
-
},
|
|
153
|
+
}, Ae = {
|
|
154
154
|
kVAEAm: "x10l6tqk",
|
|
155
155
|
k87sOh: "x13vifvy",
|
|
156
156
|
kLqNvP: "x1o0tod",
|
|
@@ -158,7 +158,7 @@ var Ae = {
|
|
|
158
158
|
k33iCy: "xlshs6z",
|
|
159
159
|
kfzvcC: "x47corl",
|
|
160
160
|
$$css: !0
|
|
161
|
-
},
|
|
161
|
+
}, J = {
|
|
162
162
|
frame: {
|
|
163
163
|
k7Eaqz: "xeuugli",
|
|
164
164
|
kMv6JI: "x1hz01jw",
|
|
@@ -469,7 +469,7 @@ var Ae = {
|
|
|
469
469
|
$$css: !0
|
|
470
470
|
},
|
|
471
471
|
spacer: (e) => [
|
|
472
|
-
|
|
472
|
+
ke,
|
|
473
473
|
{
|
|
474
474
|
kZKoxP: e == null ? e : "x16ye13r",
|
|
475
475
|
$$css: !0
|
|
@@ -477,7 +477,7 @@ var Ae = {
|
|
|
477
477
|
{ "--x-height": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e) }
|
|
478
478
|
],
|
|
479
479
|
sizer: (e) => [
|
|
480
|
-
|
|
480
|
+
Ae,
|
|
481
481
|
{
|
|
482
482
|
kZKoxP: e == null ? e : "x16ye13r",
|
|
483
483
|
$$css: !0
|
|
@@ -520,59 +520,59 @@ var Ae = {
|
|
|
520
520
|
}
|
|
521
521
|
};
|
|
522
522
|
// packages/collections/src/data-table-text.tsx
|
|
523
|
-
function
|
|
524
|
-
let r =
|
|
525
|
-
return /* @__PURE__ */
|
|
523
|
+
function je({ children: e, leading: t, isDecorative: n = !1 }) {
|
|
524
|
+
let r = b.toArray(t).length > 0;
|
|
525
|
+
return /* @__PURE__ */ R("span", {
|
|
526
526
|
"aria-hidden": n || void 0,
|
|
527
527
|
inert: n || void 0,
|
|
528
|
-
...
|
|
529
|
-
children: [r && /* @__PURE__ */
|
|
528
|
+
...g.props(J.textRow),
|
|
529
|
+
children: [r && /* @__PURE__ */ L("span", {
|
|
530
530
|
"aria-hidden": !0,
|
|
531
|
-
...
|
|
531
|
+
...g.props(J.adornment),
|
|
532
532
|
children: t
|
|
533
|
-
}), /* @__PURE__ */
|
|
534
|
-
...
|
|
533
|
+
}), /* @__PURE__ */ L("span", {
|
|
534
|
+
...g.props(J.textColumn),
|
|
535
535
|
children: e
|
|
536
536
|
})]
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
|
-
function
|
|
540
|
-
let a =
|
|
541
|
-
return /* @__PURE__ */
|
|
539
|
+
function Me({ children: e, secondary: t, leading: n, trailing: r, isMono: i = !1 }) {
|
|
540
|
+
let a = b.toArray(r).length > 0;
|
|
541
|
+
return /* @__PURE__ */ R(je, {
|
|
542
542
|
leading: n,
|
|
543
|
-
children: [/* @__PURE__ */
|
|
544
|
-
...
|
|
545
|
-
children: [/* @__PURE__ */
|
|
543
|
+
children: [/* @__PURE__ */ R("span", {
|
|
544
|
+
...g.props(J.primaryRow),
|
|
545
|
+
children: [/* @__PURE__ */ L("span", {
|
|
546
546
|
"data-record-text": !0,
|
|
547
547
|
title: typeof e == "string" ? e : void 0,
|
|
548
|
-
...
|
|
548
|
+
...g.props(J.text, J.primaryText, J.truncated, i && J.mono),
|
|
549
549
|
children: e
|
|
550
|
-
}), a && /* @__PURE__ */
|
|
551
|
-
...
|
|
550
|
+
}), a && /* @__PURE__ */ L("span", {
|
|
551
|
+
...g.props(J.adornment),
|
|
552
552
|
children: r
|
|
553
553
|
})]
|
|
554
|
-
}), t !== void 0 && /* @__PURE__ */
|
|
554
|
+
}), t !== void 0 && /* @__PURE__ */ L("span", {
|
|
555
555
|
title: t,
|
|
556
|
-
...
|
|
556
|
+
...g.props(J.text, J.truncated, J.secondaryText),
|
|
557
557
|
children: t
|
|
558
558
|
})]
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
|
-
function
|
|
562
|
-
return /* @__PURE__ */
|
|
561
|
+
function Ne({ leading: e, isSecondary: t = !1 }) {
|
|
562
|
+
return /* @__PURE__ */ R(je, {
|
|
563
563
|
leading: e,
|
|
564
564
|
isDecorative: !0,
|
|
565
|
-
children: [/* @__PURE__ */
|
|
566
|
-
...
|
|
567
|
-
children: /* @__PURE__ */
|
|
568
|
-
}), t && /* @__PURE__ */
|
|
569
|
-
...
|
|
570
|
-
children: /* @__PURE__ */
|
|
565
|
+
children: [/* @__PURE__ */ L("span", {
|
|
566
|
+
...g.props(J.text),
|
|
567
|
+
children: /* @__PURE__ */ L(d, { width: "70%" })
|
|
568
|
+
}), t && /* @__PURE__ */ L("span", {
|
|
569
|
+
...g.props(J.text, J.secondaryText),
|
|
570
|
+
children: /* @__PURE__ */ L(d, { width: "45%" })
|
|
571
571
|
})]
|
|
572
572
|
});
|
|
573
573
|
}
|
|
574
574
|
// packages/collections/src/data-table-layout.tsx
|
|
575
|
-
var
|
|
575
|
+
var Pe = p.compactTable.slice(7), Fe = /* @__PURE__ */ new Set(["string", "number"]), Y = {
|
|
576
576
|
primary: {
|
|
577
577
|
minimumWidth: 240,
|
|
578
578
|
isFlexible: !0,
|
|
@@ -603,62 +603,62 @@ var Fe = p.compactTable.slice(7), Ie = /* @__PURE__ */ new Set(["string", "numbe
|
|
|
603
603
|
isFlexible: !1,
|
|
604
604
|
shouldTruncate: !1
|
|
605
605
|
}
|
|
606
|
+
}, Ie = {
|
|
607
|
+
fixed: J.content,
|
|
608
|
+
content: J.contentCell
|
|
606
609
|
}, Le = {
|
|
607
|
-
|
|
608
|
-
|
|
610
|
+
primary: J.start,
|
|
611
|
+
text: J.start,
|
|
612
|
+
status: J.start,
|
|
613
|
+
number: J.end,
|
|
614
|
+
timestamp: J.end,
|
|
615
|
+
actions: J.end
|
|
609
616
|
}, Re = {
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
status: q.start,
|
|
613
|
-
number: q.end,
|
|
614
|
-
timestamp: q.end,
|
|
615
|
-
actions: q.end
|
|
617
|
+
content: J.content,
|
|
618
|
+
fill: J.fillFrame
|
|
616
619
|
}, ze = {
|
|
617
|
-
content:
|
|
618
|
-
fill:
|
|
619
|
-
}, Be = {
|
|
620
|
-
content: q.content,
|
|
621
|
-
fill: q.fillViewport
|
|
620
|
+
content: J.content,
|
|
621
|
+
fill: J.fillViewport
|
|
622
622
|
};
|
|
623
|
-
function
|
|
623
|
+
function Be(e) {
|
|
624
624
|
return e.map((e) => {
|
|
625
|
-
let t =
|
|
625
|
+
let t = Y[e.role], n = e.width ?? (t.isFlexible ? void 0 : t.minimumWidth);
|
|
626
626
|
return {
|
|
627
627
|
...e,
|
|
628
628
|
...n === void 0 ? {} : { width: n }
|
|
629
629
|
};
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function Ve(e, t = 0) {
|
|
633
633
|
return {
|
|
634
|
-
minimumWidth: e.reduce((e, t) => e + (t.width ??
|
|
635
|
-
compactWidth: e.filter((e) => e.isSecondary !== !0).reduce((e, t) => e + (t.width ??
|
|
634
|
+
minimumWidth: e.reduce((e, t) => e + (t.width ?? Y[t.role].minimumWidth), t),
|
|
635
|
+
compactWidth: e.filter((e) => e.isSecondary !== !0).reduce((e, t) => e + (t.width ?? Y[t.role].minimumWidth), t)
|
|
636
636
|
};
|
|
637
637
|
}
|
|
638
|
-
function
|
|
639
|
-
let t = globalThis.matchMedia(
|
|
638
|
+
function He(e) {
|
|
639
|
+
let t = globalThis.matchMedia(Pe);
|
|
640
640
|
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
|
|
641
641
|
}
|
|
642
|
-
function
|
|
643
|
-
return globalThis.matchMedia(
|
|
642
|
+
function Ue() {
|
|
643
|
+
return globalThis.matchMedia(Pe).matches;
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
return /* @__PURE__ */
|
|
645
|
+
function We({ columns: e, canSelect: t = !1 }) {
|
|
646
|
+
return /* @__PURE__ */ R("colgroup", { children: [t && /* @__PURE__ */ L("col", { ...g.props(J.selection) }), e.map((e) => /* @__PURE__ */ L("col", { ...g.props(e.width !== void 0 && J.width(e.width), e.isSecondary === !0 && J.secondary) }, e.id))] });
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
let i =
|
|
650
|
-
return /* @__PURE__ */
|
|
651
|
-
...
|
|
652
|
-
children: /* @__PURE__ */
|
|
653
|
-
"data-record-text":
|
|
648
|
+
function Ge({ role: e, isFixed: t, shouldTruncate: n, children: r }) {
|
|
649
|
+
let i = Y[e], a = t && i.shouldTruncate, o = n === !0 || typeof r == "string" && (n ?? a);
|
|
650
|
+
return /* @__PURE__ */ L("span", {
|
|
651
|
+
...g.props(J.cellViewport, !t && J.contentViewport),
|
|
652
|
+
children: /* @__PURE__ */ L("span", {
|
|
653
|
+
"data-record-text": Fe.has(typeof r) || void 0,
|
|
654
654
|
title: typeof r == "string" ? r : void 0,
|
|
655
|
-
...
|
|
655
|
+
...g.props(J.cellContent, t && J.fixedContent, t && !i.shouldTruncate && J.readable, o && J.truncated),
|
|
656
656
|
children: r
|
|
657
657
|
})
|
|
658
658
|
});
|
|
659
659
|
}
|
|
660
660
|
// packages/collections/src/table-results.tsx
|
|
661
|
-
function
|
|
661
|
+
function Ke({ status: e, sort: t, selected: n, pagination: r, isPlaceholder: i }) {
|
|
662
662
|
return {
|
|
663
663
|
status: e,
|
|
664
664
|
pending: e === "pending",
|
|
@@ -670,24 +670,24 @@ function qe({ status: e, sort: t, selected: n, pagination: r, isPlaceholder: i }
|
|
|
670
670
|
isPlaceholder: i
|
|
671
671
|
};
|
|
672
672
|
}
|
|
673
|
-
var
|
|
674
|
-
function
|
|
673
|
+
var X = "[hidden], [inert], [aria-hidden=\"true\"], [data-agent-hidden], [data-agent-secret]";
|
|
674
|
+
function qe(e) {
|
|
675
675
|
let t = e instanceof HTMLTableElement ? e.tBodies[0] : void 0;
|
|
676
|
-
if (t !== void 0 && t.closest(
|
|
676
|
+
if (t !== void 0 && t.closest(X) === null) return new Map(Array.from(t.rows).flatMap((e) => {
|
|
677
677
|
let t = e.dataset.rowId, n = Array.from(e.cells).find((e) => e.dataset.recordLabel !== void 0);
|
|
678
678
|
if (t === void 0 || n === void 0) return [];
|
|
679
|
-
if (n.closest(
|
|
679
|
+
if (n.closest(X) !== null || n.querySelector("[data-agent-secret], [data-agent-hidden]") !== null || !n.checkVisibility({ visibilityProperty: !0 })) return [[t, null]];
|
|
680
680
|
let r = n.querySelector("[data-row-action][aria-label]") ?? n.querySelector("[data-record-text]");
|
|
681
|
-
if (r !== null && r.closest(
|
|
681
|
+
if (r !== null && r.closest(X) !== null || r?.checkVisibility({ visibilityProperty: !0 }) === !1) return [[t, null]];
|
|
682
682
|
let i = r?.getAttribute("aria-label") ?? r?.textContent.trim();
|
|
683
683
|
return [[t, i === void 0 || i.length === 0 ? t : i]];
|
|
684
684
|
}));
|
|
685
685
|
}
|
|
686
|
-
var
|
|
686
|
+
var Je = {
|
|
687
687
|
none: "ascending",
|
|
688
688
|
ascending: "descending",
|
|
689
689
|
descending: "none"
|
|
690
|
-
},
|
|
690
|
+
}, Ye = /* @__PURE__ */ new Set(["ascending", "descending"]), Xe = /* @__PURE__ */ new Set(["Home", "End"]), Ze = P({
|
|
691
691
|
name: "collection-results",
|
|
692
692
|
options: {
|
|
693
693
|
status: "string",
|
|
@@ -705,10 +705,10 @@ var Ye = {
|
|
|
705
705
|
isPlaceholder: "boolean"
|
|
706
706
|
},
|
|
707
707
|
state: (e) => ({
|
|
708
|
-
...
|
|
708
|
+
...Ke(e),
|
|
709
709
|
active: null
|
|
710
710
|
}),
|
|
711
|
-
sync:
|
|
711
|
+
sync: Ke,
|
|
712
712
|
controlled: [
|
|
713
713
|
"status",
|
|
714
714
|
"sort",
|
|
@@ -718,7 +718,7 @@ var Ye = {
|
|
|
718
718
|
"hasNextPage"
|
|
719
719
|
],
|
|
720
720
|
api: (e) => {
|
|
721
|
-
let t =
|
|
721
|
+
let t = M(e), n = re(e, {
|
|
722
722
|
key: "active",
|
|
723
723
|
rows: () => e.options().rowIds.length,
|
|
724
724
|
cols: () => 1,
|
|
@@ -734,7 +734,7 @@ var Ye = {
|
|
|
734
734
|
col: 0
|
|
735
735
|
} });
|
|
736
736
|
});
|
|
737
|
-
let i =
|
|
737
|
+
let i = N(e, {
|
|
738
738
|
key: "selected",
|
|
739
739
|
set: (e, n) => t("selected", e, n),
|
|
740
740
|
order: () => e.options().rowIds,
|
|
@@ -759,7 +759,7 @@ var Ye = {
|
|
|
759
759
|
return {
|
|
760
760
|
grid: n,
|
|
761
761
|
rowKeydown(t) {
|
|
762
|
-
t.shiftKey || (t.metaKey || t.ctrlKey || !
|
|
762
|
+
t.shiftKey || (t.metaKey || t.ctrlKey || !Xe.has(t.key) ? n.keydown(t) : (t.preventDefault(), n.focus({
|
|
763
763
|
row: t.key === "Home" ? 0 : e.options().rowIds.length - 1,
|
|
764
764
|
col: 0
|
|
765
765
|
}, {
|
|
@@ -772,7 +772,7 @@ var Ye = {
|
|
|
772
772
|
col: 0
|
|
773
773
|
}),
|
|
774
774
|
toggleSort(n, r) {
|
|
775
|
-
let { sort: i } = e.options(), a =
|
|
775
|
+
let { sort: i } = e.options(), a = Je[i?.columnId === n ? i.direction : "none"];
|
|
776
776
|
return t("sort", a === "none" ? null : {
|
|
777
777
|
columnId: n,
|
|
778
778
|
direction: a
|
|
@@ -796,7 +796,7 @@ var Ye = {
|
|
|
796
796
|
},
|
|
797
797
|
sort(e, n = "ascending") {
|
|
798
798
|
if (n === "none") return t("sort", null, { reason: "imperative" });
|
|
799
|
-
if (!
|
|
799
|
+
if (!Ye.has(n)) throw Error("The direction is ascending, descending or none.");
|
|
800
800
|
return t("sort", {
|
|
801
801
|
columnId: o(e),
|
|
802
802
|
direction: n === "descending" ? "descending" : "ascending"
|
|
@@ -816,7 +816,7 @@ var Ye = {
|
|
|
816
816
|
previousPage: () => s("previous"),
|
|
817
817
|
nextPage: () => s("next"),
|
|
818
818
|
records() {
|
|
819
|
-
let t =
|
|
819
|
+
let t = qe(e.element("root")), { rowIds: n, rowLabel: r } = e.options();
|
|
820
820
|
if (t === void 0) return [];
|
|
821
821
|
let i = Array.from(t.values()).includes(null);
|
|
822
822
|
return n.flatMap((e, n) => {
|
|
@@ -837,7 +837,7 @@ var Ye = {
|
|
|
837
837
|
row: "number",
|
|
838
838
|
col: "number"
|
|
839
839
|
},
|
|
840
|
-
selects:
|
|
840
|
+
selects: I({ active: j }),
|
|
841
841
|
attrs: (e, { props: t, api: n }) => ({ tabindex: n.grid.tabIndex(e, t) }),
|
|
842
842
|
on: {
|
|
843
843
|
keydown: (e, { api: t }) => t.rowKeydown(e),
|
|
@@ -863,28 +863,28 @@ var Ye = {
|
|
|
863
863
|
shown: (e) => !e.isPlaceholder
|
|
864
864
|
}
|
|
865
865
|
});
|
|
866
|
-
function
|
|
867
|
-
let n =
|
|
866
|
+
function Qe(e, t) {
|
|
867
|
+
let n = y(Ze, e), r = ne(n, "root", {}, t(n.api), "table");
|
|
868
868
|
return {
|
|
869
869
|
api: n.api,
|
|
870
870
|
element: r
|
|
871
871
|
};
|
|
872
872
|
}
|
|
873
|
-
var
|
|
873
|
+
var $e = _(Ze, {
|
|
874
874
|
root: "table",
|
|
875
875
|
trigger: "a"
|
|
876
|
-
}).Trigger,
|
|
876
|
+
}).Trigger, et = _(Ze, {
|
|
877
877
|
root: "table",
|
|
878
878
|
trigger: "button"
|
|
879
879
|
}).Trigger;
|
|
880
880
|
// packages/collections/src/data-table-trigger.tsx
|
|
881
|
-
function
|
|
881
|
+
function tt(e) {
|
|
882
882
|
if (e.defaultPrevented || e.button !== 0) return !1;
|
|
883
883
|
let t = e.metaKey || e.ctrlKey, n = e.altKey || e.shiftKey;
|
|
884
884
|
return t || n ? !1 : e.detail === 0 || e.currentTarget.ownerDocument.getSelection()?.isCollapsed !== !1;
|
|
885
885
|
}
|
|
886
|
-
function
|
|
887
|
-
let o = r.label?.(n), s = r.href === void 0 ? /* @__PURE__ */
|
|
886
|
+
function nt({ index: e, recordId: t, row: n, action: r, isActive: i, children: a }) {
|
|
887
|
+
let o = r.label?.(n), s = r.href === void 0 ? /* @__PURE__ */ L(et, {
|
|
888
888
|
value: t,
|
|
889
889
|
row: e,
|
|
890
890
|
col: 0,
|
|
@@ -894,11 +894,11 @@ function rt({ index: e, recordId: t, row: n, action: r, isActive: i, children: a
|
|
|
894
894
|
"aria-pressed": i,
|
|
895
895
|
"data-row-action": !0,
|
|
896
896
|
onClick: (e) => {
|
|
897
|
-
|
|
897
|
+
tt(e) && r.onActivate(n);
|
|
898
898
|
},
|
|
899
|
-
...
|
|
899
|
+
...g.props(J.trigger),
|
|
900
900
|
children: a
|
|
901
|
-
}) : /* @__PURE__ */
|
|
901
|
+
}) : /* @__PURE__ */ L($e, {
|
|
902
902
|
value: t,
|
|
903
903
|
row: e,
|
|
904
904
|
col: 0,
|
|
@@ -906,19 +906,19 @@ function rt({ index: e, recordId: t, row: n, action: r, isActive: i, children: a
|
|
|
906
906
|
href: r.href(n),
|
|
907
907
|
"data-row-action": !0,
|
|
908
908
|
onClick: (e) => {
|
|
909
|
-
r.onActivate !== void 0 &&
|
|
909
|
+
r.onActivate !== void 0 && tt(e) && (e.preventDefault(), r.onActivate(n));
|
|
910
910
|
},
|
|
911
|
-
...
|
|
911
|
+
...g.props(J.trigger),
|
|
912
912
|
children: a
|
|
913
913
|
});
|
|
914
|
-
return o === void 0 || r.showTooltip !== !0 ? s : /* @__PURE__ */
|
|
914
|
+
return o === void 0 || r.showTooltip !== !0 ? s : /* @__PURE__ */ R(u.Root, { children: [/* @__PURE__ */ L(u.Trigger, { render: s }), /* @__PURE__ */ L(u.Popup, {
|
|
915
915
|
side: "top",
|
|
916
916
|
align: "start",
|
|
917
917
|
children: o
|
|
918
918
|
})] });
|
|
919
919
|
}
|
|
920
920
|
// packages/collections/src/use-end-reached.ts
|
|
921
|
-
function
|
|
921
|
+
function rt({ end: e, viewport: t, onEndReached: n, content: r }) {
|
|
922
922
|
w(() => {
|
|
923
923
|
if (n === void 0 || e.current === null) return;
|
|
924
924
|
let r = new IntersectionObserver((e) => {
|
|
@@ -933,10 +933,10 @@ function it({ end: e, viewport: t, onEndReached: n, content: r }) {
|
|
|
933
933
|
]);
|
|
934
934
|
}
|
|
935
935
|
// packages/collections/src/use-table-window.ts
|
|
936
|
-
var
|
|
937
|
-
function
|
|
936
|
+
var it = [];
|
|
937
|
+
function at(e) {
|
|
938
938
|
let t = O(e), [{ rows: n, subscribe: r, readItems: i, scrollToIndex: a }] = k(() => {
|
|
939
|
-
let e =
|
|
939
|
+
let e = ie({
|
|
940
940
|
count: () => t.current.count,
|
|
941
941
|
estimate: () => t.current.estimate,
|
|
942
942
|
key: (e) => t.current.keyOf(e),
|
|
@@ -965,7 +965,7 @@ function ot(e) {
|
|
|
965
965
|
n,
|
|
966
966
|
c
|
|
967
967
|
]), {
|
|
968
|
-
items:
|
|
968
|
+
items: A(r, i, () => it),
|
|
969
969
|
size: n.size(),
|
|
970
970
|
scrollToIndex: a,
|
|
971
971
|
measure(e) {
|
|
@@ -977,12 +977,12 @@ function ot(e) {
|
|
|
977
977
|
};
|
|
978
978
|
}
|
|
979
979
|
// packages/collections/src/data-table-rows.tsx
|
|
980
|
-
var
|
|
981
|
-
ascending:
|
|
982
|
-
descending:
|
|
983
|
-
none:
|
|
980
|
+
var ot = ge({}), st = {
|
|
981
|
+
ascending: se,
|
|
982
|
+
descending: oe,
|
|
983
|
+
none: ce
|
|
984
984
|
};
|
|
985
|
-
function
|
|
985
|
+
function ct(e, t) {
|
|
986
986
|
let n = O(void 0);
|
|
987
987
|
w(() => {
|
|
988
988
|
if (t === void 0) {
|
|
@@ -998,94 +998,94 @@ function lt(e, t) {
|
|
|
998
998
|
};
|
|
999
999
|
}, [e, t]);
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1002
|
-
let
|
|
1003
|
-
let e =
|
|
1004
|
-
return e.columns(
|
|
1001
|
+
function lt({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: a, onSortChange: o, selectedIds: c, onSelectionChange: l, selectionLabel: u, rowAction: d, activeRowId: p, focusRowId: h, onRowHighlightChange: _, hideCaption: v = !1, hideHeaders: ne = !1, rowSizing: y = "fixed", window: b, endContent: S, onEndReached: C, footer: T, pagination: j, resultStatus: M = "ready", isPlaceholder: re = !1 }) {
|
|
1002
|
+
let N = D(() => Be(t), [t]), ie = A(He, Ue, () => !1), P = D(() => {
|
|
1003
|
+
let e = he();
|
|
1004
|
+
return e.columns(N.map((t) => e.display({
|
|
1005
1005
|
id: t.id,
|
|
1006
1006
|
header: t.label
|
|
1007
1007
|
})));
|
|
1008
|
-
}, [
|
|
1009
|
-
features:
|
|
1010
|
-
columns:
|
|
1008
|
+
}, [N]), F = _e({
|
|
1009
|
+
features: ot,
|
|
1010
|
+
columns: P,
|
|
1011
1011
|
data: e,
|
|
1012
1012
|
getRowId: n
|
|
1013
|
-
}),
|
|
1014
|
-
|
|
1015
|
-
end:
|
|
1016
|
-
onEndReached:
|
|
1013
|
+
}), I = ee(), oe = I.viewport, se = O(null), ce = O(null), le = O(null), [ue, de] = k(0), [z, fe] = k(), [pe, B] = k(), V = O(void 0), H = O(void 0), U = D(() => e.map(n), [e, n]), me = z === void 0 ? -1 : U.indexOf(z.id), W = z?.isWithin === !0 ? me : -1, ge = W === -1 ? void 0 : z?.id, ve = N.findIndex((e) => e.role === "primary" && e.isSecondary !== !0), ye = ve === -1 ? N.findIndex((e) => e.isSecondary !== !0) : ve, be = typeof b?.height == "string" ? b.height : "content", G = d !== void 0 && d.disabled !== !0;
|
|
1014
|
+
rt({
|
|
1015
|
+
end: se,
|
|
1016
|
+
onEndReached: b === void 0 ? C : void 0,
|
|
1017
1017
|
content: e.length
|
|
1018
1018
|
}), w(() => {
|
|
1019
|
-
let e =
|
|
1020
|
-
if (
|
|
1021
|
-
let n = new ResizeObserver(() =>
|
|
1019
|
+
let e = ce.current, t = le.current;
|
|
1020
|
+
if (b === void 0 || e === null || t === null) return;
|
|
1021
|
+
let n = new ResizeObserver(() => de(e.offsetHeight + t.offsetHeight));
|
|
1022
1022
|
return n.observe(e), n.observe(t), () => n.disconnect();
|
|
1023
1023
|
}, [
|
|
1024
|
-
|
|
1024
|
+
b,
|
|
1025
1025
|
v,
|
|
1026
|
-
|
|
1026
|
+
ne
|
|
1027
1027
|
]);
|
|
1028
|
-
let
|
|
1029
|
-
isEnabled:
|
|
1030
|
-
viewport:
|
|
1028
|
+
let K = at({
|
|
1029
|
+
isEnabled: b !== void 0,
|
|
1030
|
+
viewport: oe,
|
|
1031
1031
|
count: e.length,
|
|
1032
|
-
keyOf: (e) =>
|
|
1033
|
-
estimate:
|
|
1034
|
-
margin:
|
|
1032
|
+
keyOf: (e) => U[e] ?? String(e),
|
|
1033
|
+
estimate: y === "fixed" ? f.rowHeight : b?.estimatedRowHeight ?? f.rowHeight,
|
|
1034
|
+
margin: ue,
|
|
1035
1035
|
keep: () => [
|
|
1036
|
-
Math.max(0,
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1036
|
+
Math.max(0, me),
|
|
1037
|
+
W - 1,
|
|
1038
|
+
W,
|
|
1039
|
+
W + 1
|
|
1040
1040
|
],
|
|
1041
1041
|
onEnd: C
|
|
1042
1042
|
});
|
|
1043
1043
|
w(() => {
|
|
1044
|
-
|
|
1044
|
+
b !== void 0 && e.length === 0 && C?.();
|
|
1045
1045
|
}, [
|
|
1046
|
-
|
|
1046
|
+
b,
|
|
1047
1047
|
e.length,
|
|
1048
1048
|
C
|
|
1049
1049
|
]);
|
|
1050
|
-
function
|
|
1051
|
-
return
|
|
1050
|
+
function xe(e) {
|
|
1051
|
+
return oe.current?.querySelector(`[data-row-id="${CSS.escape(e)}"] [data-row-action]`) ?? null;
|
|
1052
1052
|
}
|
|
1053
|
-
let
|
|
1053
|
+
let Se = D(() => o === void 0 ? [] : N.filter((e) => e.canSort === !0).map(({ id: e, label: t }) => ({
|
|
1054
1054
|
id: e,
|
|
1055
1055
|
label: t
|
|
1056
|
-
})), [
|
|
1057
|
-
status:
|
|
1056
|
+
})), [N, o]), Ce = D(() => c === void 0 ? null : Array.from(c), [c]), we = {
|
|
1057
|
+
status: M,
|
|
1058
1058
|
sort: a ?? null,
|
|
1059
1059
|
onSortChange: o === void 0 ? void 0 : (e, t) => o(e ?? void 0, t),
|
|
1060
|
-
sortable:
|
|
1061
|
-
selected:
|
|
1060
|
+
sortable: Se,
|
|
1061
|
+
selected: Ce,
|
|
1062
1062
|
onSelectedChange: l === void 0 ? void 0 : (e, t) => l(new Set(e), t),
|
|
1063
|
-
pagination:
|
|
1064
|
-
rowIds:
|
|
1063
|
+
pagination: j,
|
|
1064
|
+
rowIds: U,
|
|
1065
1065
|
rowLabel: (t) => {
|
|
1066
1066
|
let n = e[t];
|
|
1067
1067
|
return n === void 0 ? void 0 : d?.label?.(n) ?? u?.(n);
|
|
1068
1068
|
},
|
|
1069
|
-
isActionable:
|
|
1069
|
+
isActionable: G,
|
|
1070
1070
|
reveal: (e) => {
|
|
1071
|
-
|
|
1071
|
+
b !== void 0 && K.scrollToIndex(e);
|
|
1072
1072
|
},
|
|
1073
1073
|
onOpen: (e) => {
|
|
1074
|
-
let t =
|
|
1075
|
-
n === null ? (
|
|
1074
|
+
let t = U[e], n = t === void 0 ? null : xe(t);
|
|
1075
|
+
n === null ? (H.current = t, K.scrollToIndex(e)) : n.click();
|
|
1076
1076
|
},
|
|
1077
|
-
isPlaceholder:
|
|
1077
|
+
isPlaceholder: re
|
|
1078
1078
|
};
|
|
1079
1079
|
E(() => {
|
|
1080
|
-
let e =
|
|
1081
|
-
e !== void 0 && (
|
|
1080
|
+
let e = H.current;
|
|
1081
|
+
e !== void 0 && (H.current = void 0, xe(e)?.click());
|
|
1082
1082
|
});
|
|
1083
|
-
let
|
|
1083
|
+
let Te = b === void 0 ? F.getRowModel().rows.map((e, t) => ({
|
|
1084
1084
|
row: e,
|
|
1085
1085
|
index: t,
|
|
1086
1086
|
spacerHeight: 0
|
|
1087
|
-
})) :
|
|
1088
|
-
let r =
|
|
1087
|
+
})) : K.items.flatMap((e, t, n) => {
|
|
1088
|
+
let r = F.getRowModel().rows[e.index], i = n[t - 1];
|
|
1089
1089
|
if (r === void 0) return [];
|
|
1090
1090
|
let a = i === void 0 ? 0 : i.start + i.size;
|
|
1091
1091
|
return [{
|
|
@@ -1093,122 +1093,122 @@ function X({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: a, on
|
|
|
1093
1093
|
index: e.index,
|
|
1094
1094
|
spacerHeight: e.start - a
|
|
1095
1095
|
}];
|
|
1096
|
-
}),
|
|
1097
|
-
|
|
1098
|
-
let
|
|
1099
|
-
function
|
|
1100
|
-
return /* @__PURE__ */
|
|
1101
|
-
/* @__PURE__ */
|
|
1102
|
-
ref:
|
|
1096
|
+
}), Ee = Te.some(({ row: e }) => e.id === pe) ? pe : void 0;
|
|
1097
|
+
pe !== void 0 && Ee === void 0 && B(void 0), ct(Ee ?? ge, _);
|
|
1098
|
+
let q = N.filter((e) => !ie || e.isSecondary !== !0).length + (c === void 0 ? 0 : 1), De = c === void 0 ? 0 : 76, ke = T != null && typeof T != "boolean" || j !== void 0, { minimumWidth: Ae, compactWidth: je } = Ve(N, De), Me = K.items.at(-1), Ne = K.size - (Me === void 0 ? 0 : Me.start + Me.size), Pe = c === void 0 ? 0 : U.filter((e) => c.has(e)).length, Fe = U.length > 0 && Pe === U.length, Y = Pe > 0 && !Fe;
|
|
1099
|
+
function Ke(t) {
|
|
1100
|
+
return /* @__PURE__ */ R(ae, { children: [
|
|
1101
|
+
/* @__PURE__ */ L("caption", {
|
|
1102
|
+
ref: ce,
|
|
1103
1103
|
"aria-label": r,
|
|
1104
|
-
...
|
|
1104
|
+
...g.props(J.caption, v && m.hidden),
|
|
1105
1105
|
children: r
|
|
1106
1106
|
}),
|
|
1107
|
-
/* @__PURE__ */
|
|
1108
|
-
columns:
|
|
1107
|
+
/* @__PURE__ */ L(We, {
|
|
1108
|
+
columns: N,
|
|
1109
1109
|
canSelect: c !== void 0
|
|
1110
1110
|
}),
|
|
1111
|
-
/* @__PURE__ */
|
|
1112
|
-
ref:
|
|
1113
|
-
...
|
|
1114
|
-
children: /* @__PURE__ */
|
|
1111
|
+
/* @__PURE__ */ L("thead", {
|
|
1112
|
+
ref: le,
|
|
1113
|
+
...g.props(ne && m.hidden),
|
|
1114
|
+
children: /* @__PURE__ */ R("tr", { children: [c !== void 0 && /* @__PURE__ */ L("th", {
|
|
1115
1115
|
scope: "col",
|
|
1116
1116
|
"aria-label": "Select",
|
|
1117
|
-
...
|
|
1118
|
-
children: /* @__PURE__ */
|
|
1117
|
+
...g.props(J.header, J.selection, J.rowControl),
|
|
1118
|
+
children: /* @__PURE__ */ L(s.Root, {
|
|
1119
1119
|
"aria-label": `Select every row of ${r}`,
|
|
1120
|
-
checked:
|
|
1121
|
-
indeterminate:
|
|
1122
|
-
disabled:
|
|
1120
|
+
checked: Fe,
|
|
1121
|
+
indeterminate: Y,
|
|
1122
|
+
disabled: U.length === 0,
|
|
1123
1123
|
onCheckedChange: (e, n) => t.toggleAll(n.event),
|
|
1124
|
-
children: /* @__PURE__ */
|
|
1124
|
+
children: /* @__PURE__ */ L(s.Indicator, {})
|
|
1125
1125
|
})
|
|
1126
|
-
}),
|
|
1127
|
-
let n = a?.columnId === e.id ? a.direction : void 0, i =
|
|
1128
|
-
return /* @__PURE__ */
|
|
1126
|
+
}), N.map((e) => {
|
|
1127
|
+
let n = a?.columnId === e.id ? a.direction : void 0, i = st[n ?? "none"];
|
|
1128
|
+
return /* @__PURE__ */ L("th", {
|
|
1129
1129
|
scope: "col",
|
|
1130
1130
|
title: e.label,
|
|
1131
1131
|
"aria-sort": n,
|
|
1132
|
-
...
|
|
1133
|
-
children: e.canSort === !0 && o !== void 0 ? /* @__PURE__ */
|
|
1132
|
+
...g.props(J.header, Le[e.role], e.width !== void 0 && J.width(e.width), e.isSecondary === !0 && J.secondary),
|
|
1133
|
+
children: e.canSort === !0 && o !== void 0 ? /* @__PURE__ */ R(te, {
|
|
1134
1134
|
type: "button",
|
|
1135
1135
|
"aria-label": `Sort ${r} by ${e.label}`,
|
|
1136
|
-
...
|
|
1136
|
+
...g.props(J.sort),
|
|
1137
1137
|
onClick: (n) => t.toggleSort(e.id, n.nativeEvent),
|
|
1138
|
-
children: [/* @__PURE__ */
|
|
1139
|
-
...
|
|
1138
|
+
children: [/* @__PURE__ */ L("span", {
|
|
1139
|
+
...g.props(J.headerLabel),
|
|
1140
1140
|
children: e.label
|
|
1141
|
-
}), /* @__PURE__ */
|
|
1141
|
+
}), /* @__PURE__ */ L(i, {
|
|
1142
1142
|
size: 14,
|
|
1143
1143
|
"aria-hidden": "true",
|
|
1144
|
-
...
|
|
1144
|
+
...g.props(J.sortIcon)
|
|
1145
1145
|
})]
|
|
1146
|
-
}) : /* @__PURE__ */
|
|
1147
|
-
...
|
|
1146
|
+
}) : /* @__PURE__ */ L("span", {
|
|
1147
|
+
...g.props(J.headerLabel),
|
|
1148
1148
|
children: e.label
|
|
1149
1149
|
})
|
|
1150
1150
|
}, e.id);
|
|
1151
1151
|
})] })
|
|
1152
1152
|
}),
|
|
1153
|
-
/* @__PURE__ */
|
|
1154
|
-
onPointerLeave: () =>
|
|
1155
|
-
onKeyDownCapture: () =>
|
|
1153
|
+
/* @__PURE__ */ R("tbody", {
|
|
1154
|
+
onPointerLeave: () => B(void 0),
|
|
1155
|
+
onKeyDownCapture: () => B(void 0),
|
|
1156
1156
|
onBlur: (e) => {
|
|
1157
|
-
e.currentTarget.contains(e.relatedTarget) ||
|
|
1157
|
+
e.currentTarget.contains(e.relatedTarget) || fe((e) => e === void 0 ? void 0 : {
|
|
1158
1158
|
id: e.id,
|
|
1159
1159
|
isWithin: !1
|
|
1160
1160
|
});
|
|
1161
1161
|
},
|
|
1162
1162
|
children: [
|
|
1163
|
-
|
|
1163
|
+
Te.map(({ row: e, index: n, spacerHeight: r }) => /* @__PURE__ */ R(x, { children: [r > 0 && /* @__PURE__ */ L("tr", {
|
|
1164
1164
|
"aria-hidden": "true",
|
|
1165
|
-
children: /* @__PURE__ */
|
|
1166
|
-
colSpan:
|
|
1167
|
-
...
|
|
1165
|
+
children: /* @__PURE__ */ L("td", {
|
|
1166
|
+
colSpan: q,
|
|
1167
|
+
...g.props(J.spacer(r))
|
|
1168
1168
|
})
|
|
1169
|
-
}), /* @__PURE__ */
|
|
1169
|
+
}), /* @__PURE__ */ R("tr", {
|
|
1170
1170
|
"data-index": n,
|
|
1171
1171
|
"data-row-id": e.id,
|
|
1172
|
-
"aria-rowindex":
|
|
1173
|
-
ref:
|
|
1172
|
+
"aria-rowindex": b === void 0 ? void 0 : n + 2,
|
|
1173
|
+
ref: b === void 0 || y === "fixed" ? void 0 : K.measure(n),
|
|
1174
1174
|
onPointerMove: (t) => {
|
|
1175
|
-
t.pointerType === "mouse" &&
|
|
1175
|
+
t.pointerType === "mouse" && B(e.id);
|
|
1176
1176
|
},
|
|
1177
1177
|
onPointerEnter: (t) => {
|
|
1178
|
-
t.pointerType === "mouse" &&
|
|
1178
|
+
t.pointerType === "mouse" && B(e.id);
|
|
1179
1179
|
},
|
|
1180
1180
|
onPointerLeave: () => {
|
|
1181
|
-
|
|
1181
|
+
B((t) => t === e.id ? void 0 : t);
|
|
1182
1182
|
},
|
|
1183
1183
|
onPointerDown: (e) => {
|
|
1184
|
-
e.pointerType !== "mouse" &&
|
|
1184
|
+
e.pointerType !== "mouse" && B(void 0);
|
|
1185
1185
|
},
|
|
1186
1186
|
onFocus: () => {
|
|
1187
|
-
|
|
1187
|
+
B(void 0), fe({
|
|
1188
1188
|
id: e.id,
|
|
1189
1189
|
isWithin: !0
|
|
1190
1190
|
});
|
|
1191
1191
|
},
|
|
1192
|
-
...
|
|
1193
|
-
children: [c !== void 0 && /* @__PURE__ */
|
|
1194
|
-
...
|
|
1195
|
-
children: /* @__PURE__ */
|
|
1192
|
+
...g.props(J.row, G && J.actionable, (c?.has(e.id) === !0 || p === e.id) && J.selected),
|
|
1193
|
+
children: [c !== void 0 && /* @__PURE__ */ L("td", {
|
|
1194
|
+
...g.props(J.cell, J.selection, J.rowControl),
|
|
1195
|
+
children: /* @__PURE__ */ L(s.Root, {
|
|
1196
1196
|
"aria-label": u(e.original),
|
|
1197
1197
|
checked: c.has(e.id),
|
|
1198
1198
|
onCheckedChange: (n, r) => t.toggleRow(e.id, r.event),
|
|
1199
|
-
children: /* @__PURE__ */
|
|
1199
|
+
children: /* @__PURE__ */ L(s.Indicator, {})
|
|
1200
1200
|
})
|
|
1201
|
-
}),
|
|
1202
|
-
let i = /* @__PURE__ */
|
|
1201
|
+
}), N.map((t, r) => {
|
|
1202
|
+
let i = /* @__PURE__ */ L(Ge, {
|
|
1203
1203
|
role: t.role,
|
|
1204
|
-
isFixed:
|
|
1204
|
+
isFixed: y === "fixed",
|
|
1205
1205
|
shouldTruncate: t.shouldTruncate,
|
|
1206
1206
|
children: t.cell(e.original)
|
|
1207
1207
|
});
|
|
1208
|
-
return /* @__PURE__ */
|
|
1209
|
-
"data-record-label": r ===
|
|
1210
|
-
...
|
|
1211
|
-
children: d !== void 0 && r ===
|
|
1208
|
+
return /* @__PURE__ */ L("td", {
|
|
1209
|
+
"data-record-label": r === ye || void 0,
|
|
1210
|
+
...g.props(J.cell, Ie[y], Le[t.role], t.width !== void 0 && J.width(t.width), t.isSecondary === !0 && J.secondary),
|
|
1211
|
+
children: d !== void 0 && r === ye ? /* @__PURE__ */ L(nt, {
|
|
1212
1212
|
index: n,
|
|
1213
1213
|
recordId: e.id,
|
|
1214
1214
|
row: e.original,
|
|
@@ -1219,18 +1219,18 @@ function X({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: a, on
|
|
|
1219
1219
|
}, t.id);
|
|
1220
1220
|
})]
|
|
1221
1221
|
})] }, e.id)),
|
|
1222
|
-
|
|
1222
|
+
b !== void 0 && Ne > 0 && /* @__PURE__ */ L("tr", {
|
|
1223
1223
|
"aria-hidden": "true",
|
|
1224
|
-
children: /* @__PURE__ */
|
|
1225
|
-
colSpan:
|
|
1226
|
-
...
|
|
1224
|
+
children: /* @__PURE__ */ L("td", {
|
|
1225
|
+
colSpan: q,
|
|
1226
|
+
...g.props(J.spacer(Ne))
|
|
1227
1227
|
})
|
|
1228
1228
|
}),
|
|
1229
|
-
e.length === 0 && /* @__PURE__ */
|
|
1230
|
-
colSpan:
|
|
1231
|
-
...
|
|
1232
|
-
children: /* @__PURE__ */
|
|
1233
|
-
...
|
|
1229
|
+
e.length === 0 && /* @__PURE__ */ L("tr", { children: /* @__PURE__ */ L("td", {
|
|
1230
|
+
colSpan: q,
|
|
1231
|
+
...g.props(J.emptyCell),
|
|
1232
|
+
children: /* @__PURE__ */ L("div", {
|
|
1233
|
+
...g.props(J.empty),
|
|
1234
1234
|
children: i
|
|
1235
1235
|
})
|
|
1236
1236
|
}) })
|
|
@@ -1238,54 +1238,54 @@ function X({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: a, on
|
|
|
1238
1238
|
})
|
|
1239
1239
|
] });
|
|
1240
1240
|
}
|
|
1241
|
-
let { api:
|
|
1241
|
+
let { api: X, element: qe } = Qe(we, (t) => ({
|
|
1242
1242
|
"aria-label": r,
|
|
1243
|
-
"aria-busy":
|
|
1244
|
-
"aria-rowcount":
|
|
1245
|
-
...
|
|
1246
|
-
children:
|
|
1243
|
+
"aria-busy": M === "pending" || void 0,
|
|
1244
|
+
"aria-rowcount": b === void 0 ? void 0 : Math.max(1, e.length) + 1,
|
|
1245
|
+
...g.props(J.table, J.fixed, J.minimumWidth(Ae, je)),
|
|
1246
|
+
children: Ke(t)
|
|
1247
1247
|
}));
|
|
1248
1248
|
return E(() => {
|
|
1249
|
-
if (
|
|
1250
|
-
|
|
1249
|
+
if (h === void 0) {
|
|
1250
|
+
V.current = void 0;
|
|
1251
1251
|
return;
|
|
1252
1252
|
}
|
|
1253
|
-
let e =
|
|
1254
|
-
if (
|
|
1253
|
+
let e = U.indexOf(h);
|
|
1254
|
+
if (V.current === h || e === -1) return;
|
|
1255
1255
|
let t = requestAnimationFrame(() => {
|
|
1256
|
-
|
|
1256
|
+
X.focusRow(e) && (V.current = h);
|
|
1257
1257
|
});
|
|
1258
1258
|
return () => cancelAnimationFrame(t);
|
|
1259
1259
|
}, [
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
]), /* @__PURE__ */
|
|
1265
|
-
...
|
|
1266
|
-
children: [/* @__PURE__ */
|
|
1267
|
-
ref:
|
|
1260
|
+
U,
|
|
1261
|
+
h,
|
|
1262
|
+
G,
|
|
1263
|
+
X
|
|
1264
|
+
]), /* @__PURE__ */ R("div", {
|
|
1265
|
+
...g.props(J.frame, Re[be]),
|
|
1266
|
+
children: [/* @__PURE__ */ R("div", {
|
|
1267
|
+
ref: I.ref,
|
|
1268
1268
|
"data-table-viewport": !0,
|
|
1269
1269
|
role: "region",
|
|
1270
1270
|
"aria-label": r,
|
|
1271
|
-
tabIndex:
|
|
1272
|
-
...
|
|
1271
|
+
tabIndex: I.tabIndex,
|
|
1272
|
+
...g.props(J.viewport, ze[be], typeof b?.height == "number" && J.virtual(b.height)),
|
|
1273
1273
|
children: [
|
|
1274
|
-
|
|
1275
|
-
|
|
1274
|
+
qe,
|
|
1275
|
+
b !== void 0 && /* @__PURE__ */ L("div", {
|
|
1276
1276
|
"aria-hidden": !0,
|
|
1277
|
-
...
|
|
1277
|
+
...g.props(J.sizer(ue + K.size))
|
|
1278
1278
|
}),
|
|
1279
|
-
/* @__PURE__ */
|
|
1280
|
-
ref:
|
|
1281
|
-
...
|
|
1279
|
+
/* @__PURE__ */ L("div", {
|
|
1280
|
+
ref: se,
|
|
1281
|
+
...g.props(S !== void 0 && J.endContent),
|
|
1282
1282
|
children: S
|
|
1283
1283
|
})
|
|
1284
1284
|
]
|
|
1285
|
-
}),
|
|
1286
|
-
...
|
|
1287
|
-
children: [T,
|
|
1288
|
-
...
|
|
1285
|
+
}), ke && /* @__PURE__ */ R("div", {
|
|
1286
|
+
...g.props(J.footer),
|
|
1287
|
+
children: [T, j !== void 0 && /* @__PURE__ */ L(Oe, {
|
|
1288
|
+
...j,
|
|
1289
1289
|
label: r
|
|
1290
1290
|
})]
|
|
1291
1291
|
})]
|
|
@@ -1297,10 +1297,10 @@ function Z(e) {
|
|
|
1297
1297
|
if (e.reason.trim().length === 0) throw Error("A table query exception requires a reason.");
|
|
1298
1298
|
}
|
|
1299
1299
|
function dt({ search: e, filters: t, children: n, isFiltered: r = !1 }) {
|
|
1300
|
-
return e === void 0 ? /* @__PURE__ */
|
|
1300
|
+
return e === void 0 ? /* @__PURE__ */ L(ut, {
|
|
1301
1301
|
value: void 0,
|
|
1302
1302
|
children: n
|
|
1303
|
-
}) : (e !== !0 && Z(e), t !== !0 && Z(t), /* @__PURE__ */
|
|
1303
|
+
}) : (e !== !0 && Z(e), t !== !0 && Z(t), /* @__PURE__ */ L(ut, {
|
|
1304
1304
|
value: r,
|
|
1305
1305
|
children: n
|
|
1306
1306
|
}));
|
|
@@ -1406,48 +1406,48 @@ var Q = {
|
|
|
1406
1406
|
"Delete"
|
|
1407
1407
|
]);
|
|
1408
1408
|
function yt({ option: e }) {
|
|
1409
|
-
return /* @__PURE__ */
|
|
1410
|
-
...
|
|
1411
|
-
children: e.icon ?? /* @__PURE__ */
|
|
1409
|
+
return /* @__PURE__ */ L("span", {
|
|
1410
|
+
...g.props(Q.icon, _t[e.tone ?? "neutral"]),
|
|
1411
|
+
children: e.icon ?? /* @__PURE__ */ L(de, {
|
|
1412
1412
|
size: 14,
|
|
1413
1413
|
"aria-hidden": !0
|
|
1414
1414
|
})
|
|
1415
1415
|
});
|
|
1416
1416
|
}
|
|
1417
1417
|
function bt({ groups: e }) {
|
|
1418
|
-
let [n, i] = k(""), a = e.filter((e) => e.label.toLowerCase().includes(n.toLowerCase())), o = e.length === 1 && e[0] !== void 0 ? `Filter by ${e[0].label.toLowerCase()}` : "Filters", s =
|
|
1418
|
+
let [n, i] = k(""), a = e.filter((e) => e.label.toLowerCase().includes(n.toLowerCase())), o = e.length === 1 && e[0] !== void 0 ? `Filter by ${e[0].label.toLowerCase()}` : "Filters", s = we(/* @__PURE__ */ L(t, {
|
|
1419
1419
|
"aria-label": o,
|
|
1420
1420
|
title: "Filters"
|
|
1421
1421
|
}));
|
|
1422
|
-
return /* @__PURE__ */
|
|
1422
|
+
return /* @__PURE__ */ R(c.Root, {
|
|
1423
1423
|
onOpenChange: (e) => {
|
|
1424
1424
|
e || i("");
|
|
1425
1425
|
},
|
|
1426
|
-
children: [/* @__PURE__ */
|
|
1426
|
+
children: [/* @__PURE__ */ L(c.Trigger, {
|
|
1427
1427
|
render: s,
|
|
1428
|
-
children: /* @__PURE__ */
|
|
1428
|
+
children: /* @__PURE__ */ L(z, {
|
|
1429
1429
|
size: 14,
|
|
1430
1430
|
"aria-hidden": !0
|
|
1431
1431
|
})
|
|
1432
|
-
}), /* @__PURE__ */
|
|
1432
|
+
}), /* @__PURE__ */ R(c.Popup, {
|
|
1433
1433
|
align: "end",
|
|
1434
1434
|
children: [
|
|
1435
|
-
/* @__PURE__ */
|
|
1435
|
+
/* @__PURE__ */ L(xt, {
|
|
1436
1436
|
label: "Find a filter",
|
|
1437
1437
|
value: n,
|
|
1438
1438
|
onChange: i
|
|
1439
1439
|
}),
|
|
1440
|
-
a.map((e) => /* @__PURE__ */
|
|
1441
|
-
a.length === 0 && /* @__PURE__ */
|
|
1440
|
+
a.map((e) => /* @__PURE__ */ L(St, { group: e }, e.id)),
|
|
1441
|
+
a.length === 0 && /* @__PURE__ */ L("div", {
|
|
1442
1442
|
className: "x1hmw7ec x5g2kb4",
|
|
1443
|
-
children: /* @__PURE__ */
|
|
1443
|
+
children: /* @__PURE__ */ L(r, { children: "No filters found" })
|
|
1444
1444
|
})
|
|
1445
1445
|
]
|
|
1446
1446
|
})]
|
|
1447
1447
|
});
|
|
1448
1448
|
}
|
|
1449
1449
|
function xt({ label: e, value: t, onChange: n }) {
|
|
1450
|
-
return /* @__PURE__ */
|
|
1450
|
+
return /* @__PURE__ */ L(h, {
|
|
1451
1451
|
type: "search",
|
|
1452
1452
|
"aria-label": e,
|
|
1453
1453
|
placeholder: "Filter…",
|
|
@@ -1462,51 +1462,51 @@ function xt({ label: e, value: t, onChange: n }) {
|
|
|
1462
1462
|
}
|
|
1463
1463
|
function St({ group: e }) {
|
|
1464
1464
|
let [t, n] = k(""), i = e.options.filter((e) => e.label.toLowerCase().includes(t.toLowerCase()));
|
|
1465
|
-
return /* @__PURE__ */
|
|
1465
|
+
return /* @__PURE__ */ R(c.SubmenuRoot, {
|
|
1466
1466
|
onOpenChange: (e) => {
|
|
1467
1467
|
e || n("");
|
|
1468
1468
|
},
|
|
1469
|
-
children: [/* @__PURE__ */
|
|
1470
|
-
e.icon ?? /* @__PURE__ */
|
|
1469
|
+
children: [/* @__PURE__ */ R(c.SubmenuTrigger, { children: [
|
|
1470
|
+
e.icon ?? /* @__PURE__ */ L(z, {
|
|
1471
1471
|
size: 14,
|
|
1472
1472
|
"aria-hidden": !0
|
|
1473
1473
|
}),
|
|
1474
|
-
/* @__PURE__ */
|
|
1474
|
+
/* @__PURE__ */ L("span", {
|
|
1475
1475
|
className: "x98rzlu xeuugli xj0a0fe",
|
|
1476
1476
|
children: e.label
|
|
1477
1477
|
}),
|
|
1478
|
-
/* @__PURE__ */
|
|
1478
|
+
/* @__PURE__ */ L("span", {
|
|
1479
1479
|
className: "xazcve0 xb3r6kr xuxw1ft xlyipyv x153jb6y xy8obcc xas2l8k",
|
|
1480
1480
|
children: e.options.find((t) => t.value === e.value)?.label
|
|
1481
1481
|
}),
|
|
1482
|
-
/* @__PURE__ */
|
|
1482
|
+
/* @__PURE__ */ L(ue, {
|
|
1483
1483
|
size: 14,
|
|
1484
1484
|
"aria-hidden": !0
|
|
1485
1485
|
})
|
|
1486
|
-
] }), /* @__PURE__ */
|
|
1486
|
+
] }), /* @__PURE__ */ R(c.Popup, {
|
|
1487
1487
|
align: "start",
|
|
1488
1488
|
"aria-label": e.label,
|
|
1489
1489
|
children: [
|
|
1490
|
-
/* @__PURE__ */
|
|
1490
|
+
/* @__PURE__ */ L(xt, {
|
|
1491
1491
|
label: `Find ${e.label.toLowerCase()}`,
|
|
1492
1492
|
value: t,
|
|
1493
1493
|
onChange: n
|
|
1494
1494
|
}),
|
|
1495
|
-
/* @__PURE__ */
|
|
1495
|
+
/* @__PURE__ */ L(c.RadioGroup, {
|
|
1496
1496
|
value: e.value,
|
|
1497
1497
|
onValueChange: e.onChange,
|
|
1498
|
-
children: i.map((e) => /* @__PURE__ */
|
|
1498
|
+
children: i.map((e) => /* @__PURE__ */ R(c.RadioItem, {
|
|
1499
1499
|
value: e.value,
|
|
1500
1500
|
closeOnSelect: !0,
|
|
1501
|
-
children: [/* @__PURE__ */
|
|
1501
|
+
children: [/* @__PURE__ */ L(yt, { option: e }), /* @__PURE__ */ L("span", {
|
|
1502
1502
|
className: "x98rzlu xeuugli xj0a0fe",
|
|
1503
1503
|
children: e.label
|
|
1504
1504
|
})]
|
|
1505
1505
|
}, e.value))
|
|
1506
1506
|
}),
|
|
1507
|
-
i.length === 0 && /* @__PURE__ */
|
|
1507
|
+
i.length === 0 && /* @__PURE__ */ L("div", {
|
|
1508
1508
|
className: "x1hmw7ec x5g2kb4",
|
|
1509
|
-
children: /* @__PURE__ */
|
|
1509
|
+
children: /* @__PURE__ */ L(r, { children: "No options found" })
|
|
1510
1510
|
})
|
|
1511
1511
|
]
|
|
1512
1512
|
})]
|
|
@@ -1529,7 +1529,7 @@ function wt(e) {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
throw Error("Select a listed filter option, or provide a filter ID and value.");
|
|
1531
1531
|
}
|
|
1532
|
-
var Tt =
|
|
1532
|
+
var Tt = P({
|
|
1533
1533
|
name: "collection-query",
|
|
1534
1534
|
options: {
|
|
1535
1535
|
search: "value",
|
|
@@ -1545,13 +1545,13 @@ var Tt = M({
|
|
|
1545
1545
|
let { search: t, isDisabled: n } = e();
|
|
1546
1546
|
return n || t === void 0 ? null : (e) => {
|
|
1547
1547
|
if (typeof e != "string") throw TypeError("The search term must be a string.");
|
|
1548
|
-
|
|
1548
|
+
F({ options: () => t }, "onChange", e, { reason: "imperative" });
|
|
1549
1549
|
};
|
|
1550
1550
|
},
|
|
1551
1551
|
get submitSearch() {
|
|
1552
1552
|
let { search: t, isDisabled: n } = e();
|
|
1553
1553
|
return n || t?.onSubmit === void 0 ? null : () => {
|
|
1554
|
-
|
|
1554
|
+
F({ options: () => t }, "onSubmit", t.value, { reason: "imperative" });
|
|
1555
1555
|
};
|
|
1556
1556
|
},
|
|
1557
1557
|
get setFilter() {
|
|
@@ -1559,7 +1559,7 @@ var Tt = M({
|
|
|
1559
1559
|
return n || t.length === 0 ? null : (e, n) => {
|
|
1560
1560
|
let [r, i] = n === void 0 ? wt(e) : [e, n], a = t.find((e) => e.id === r);
|
|
1561
1561
|
if (a === void 0 || !a.options.some((e) => e.value === i)) throw Error("Unknown filter or option. Choose one of the listed filter options.");
|
|
1562
|
-
|
|
1562
|
+
F({ options: () => a }, "onChange", i, { reason: "imperative" });
|
|
1563
1563
|
};
|
|
1564
1564
|
},
|
|
1565
1565
|
items() {
|
|
@@ -1585,136 +1585,151 @@ var Tt = M({
|
|
|
1585
1585
|
$$css: !0
|
|
1586
1586
|
} };
|
|
1587
1587
|
function Ot({ label: e = "Collection controls", search: n, filters: r = [], filterContent: i, chips: a = [], viewActions: o, display: s, isPlaceholder: c = !1, isReady: u }) {
|
|
1588
|
-
let [d, f] = k(!1), [
|
|
1588
|
+
let [d, f] = k(null), [p, m] = k(!1), [ee, g] = k(!1), te = O(null), _ = O(null), v = O(null), ne = D(() => Object.fromEntries(r.map((e) => [e.id, e.value])), [r]), y = c || !u, x = n !== void 0 && (p || n.value.length > 0);
|
|
1589
1589
|
E(() => {
|
|
1590
|
-
|
|
1590
|
+
p && !c && u && (v.current?.focus(), v.current?.select());
|
|
1591
1591
|
}, [
|
|
1592
|
-
|
|
1592
|
+
p,
|
|
1593
1593
|
c,
|
|
1594
1594
|
u
|
|
1595
1595
|
]);
|
|
1596
|
-
function
|
|
1597
|
-
(te.current ??
|
|
1596
|
+
function S() {
|
|
1597
|
+
(te.current ?? _.current?.querySelector("button"))?.focus();
|
|
1598
1598
|
}
|
|
1599
|
-
function
|
|
1600
|
-
n !== void 0 && !c && u && (
|
|
1599
|
+
function C() {
|
|
1600
|
+
n !== void 0 && !c && u && (v.current?.focus(), v.current?.select(), m(!0));
|
|
1601
1601
|
}
|
|
1602
|
-
function
|
|
1603
|
-
n !== void 0 &&
|
|
1602
|
+
function w(e, t) {
|
|
1603
|
+
n !== void 0 && F({ options: () => n }, "onChange", "", {
|
|
1604
1604
|
reason: e,
|
|
1605
1605
|
event: t
|
|
1606
|
-
}),
|
|
1606
|
+
}), m(!1), S();
|
|
1607
1607
|
}
|
|
1608
|
-
function
|
|
1609
|
-
|
|
1608
|
+
function T(e) {
|
|
1609
|
+
x && !e.defaultPrevented && e.key === "Escape" && e.target instanceof Element && e.target.closest("[role=\"dialog\"], [role=\"alertdialog\"], [role=\"menu\"], [role=\"listbox\"], [data-native-find], input:not([data-view-find]), textarea, select") === null && (e.preventDefault(), e.stopPropagation(), w("escape-key", e.nativeEvent));
|
|
1610
1610
|
}
|
|
1611
|
-
let
|
|
1611
|
+
let A = {
|
|
1612
|
+
description: `Find in ${e}`,
|
|
1613
|
+
...d !== null && { layer: d },
|
|
1614
|
+
when: () => {
|
|
1615
|
+
if (d === null) return !1;
|
|
1616
|
+
let e = d.ownerDocument.activeElement;
|
|
1617
|
+
return e === null || e.closest("[data-native-find], textarea, select, input:not([data-view-find]), [contenteditable=\"true\"], [role=\"dialog\"], [role=\"alertdialog\"], [role=\"menu\"], [role=\"listbox\"]") !== null ? !1 : e.closest("[data-table-query]") === d || e === d.ownerDocument.body && d.ownerDocument.querySelectorAll("[data-view-find-trigger]").length === 1;
|
|
1618
|
+
}
|
|
1619
|
+
}, j = d !== null && n !== void 0 && !y;
|
|
1620
|
+
V(j ? "/" : null, C, A), V(j ? "mod+f" : null, C, A);
|
|
1621
|
+
let M = r.filter((e) => e.value !== e.defaultValue).map((e) => ({
|
|
1612
1622
|
id: `filter:${e.id}`,
|
|
1613
1623
|
label: e.options.find((t) => t.value === e.value)?.label ?? e.value,
|
|
1614
1624
|
onRemove: (t) => e.onChange(e.defaultValue, t)
|
|
1615
1625
|
}));
|
|
1616
|
-
for (let e of a)
|
|
1626
|
+
for (let e of a) M.push({
|
|
1617
1627
|
...e,
|
|
1618
1628
|
id: `chip:${e.id}`
|
|
1619
1629
|
});
|
|
1620
|
-
let
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1630
|
+
let re = i !== void 0 || r.length > 0, N = b.toArray([o, s]).length > 0, ie = n !== void 0 || re || N, P = n?.label ?? "Search this view", I = n?.placeholder ?? "Find in view…", ae = ie ? /* @__PURE__ */ R(Ce, {
|
|
1631
|
+
"aria-label": e,
|
|
1632
|
+
render: /* @__PURE__ */ L(Et, {
|
|
1633
|
+
search: n,
|
|
1634
|
+
groups: r,
|
|
1635
|
+
selections: ne,
|
|
1636
|
+
isDisabled: y,
|
|
1637
|
+
ref: _,
|
|
1638
|
+
"aria-hidden": y,
|
|
1639
|
+
inert: y,
|
|
1640
|
+
className: "x78zum5 x6s0dn4 x1a02dak x13a6bvl x1hnptsi xeuugli x193iq5w"
|
|
1641
|
+
}),
|
|
1642
|
+
children: [
|
|
1643
|
+
n !== void 0 && /* @__PURE__ */ L(U, {
|
|
1644
|
+
disabled: c,
|
|
1645
|
+
render: /* @__PURE__ */ L(t, {
|
|
1646
|
+
ref: te,
|
|
1647
|
+
type: "button",
|
|
1648
|
+
"aria-label": "Find in view",
|
|
1649
|
+
title: "Find in view",
|
|
1650
|
+
"data-view-find-trigger": !0,
|
|
1651
|
+
"aria-expanded": x,
|
|
1652
|
+
onClick: C
|
|
1653
|
+
}),
|
|
1654
|
+
children: /* @__PURE__ */ L(fe, {
|
|
1655
|
+
size: 14,
|
|
1656
|
+
"aria-hidden": !0
|
|
1657
|
+
})
|
|
1635
1658
|
}),
|
|
1636
|
-
|
|
1637
|
-
|
|
1659
|
+
x && /* @__PURE__ */ R("div", {
|
|
1660
|
+
className: "x78zum5 x6s0dn4 xunmzkg xdl07me x193iq5w",
|
|
1661
|
+
children: [/* @__PURE__ */ L(W, {
|
|
1638
1662
|
disabled: c,
|
|
1639
|
-
render: /* @__PURE__ */
|
|
1640
|
-
ref:
|
|
1663
|
+
render: /* @__PURE__ */ L(h, {
|
|
1664
|
+
ref: v,
|
|
1665
|
+
type: "search",
|
|
1666
|
+
"data-view-find": !0,
|
|
1667
|
+
"aria-label": P,
|
|
1668
|
+
placeholder: I,
|
|
1669
|
+
value: n.value,
|
|
1670
|
+
onValueChange: n.onChange,
|
|
1671
|
+
onKeyDown: (e) => {
|
|
1672
|
+
e.key === "Enter" && n.onSubmit !== void 0 && (e.preventDefault(), F({ options: () => n }, "onSubmit", n.value, {
|
|
1673
|
+
reason: "enter-key",
|
|
1674
|
+
event: e.nativeEvent
|
|
1675
|
+
})), e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), w("escape-key", e.nativeEvent));
|
|
1676
|
+
},
|
|
1677
|
+
xstyle: Dt.input
|
|
1678
|
+
})
|
|
1679
|
+
}), /* @__PURE__ */ L(U, {
|
|
1680
|
+
render: /* @__PURE__ */ L(t, {
|
|
1641
1681
|
type: "button",
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
"
|
|
1645
|
-
"
|
|
1646
|
-
onClick:
|
|
1682
|
+
variant: "ghost",
|
|
1683
|
+
"data-view-find-close": !0,
|
|
1684
|
+
"aria-label": "Close search",
|
|
1685
|
+
title: "Close search (Esc)",
|
|
1686
|
+
onClick: (e) => w("clear-press", e.nativeEvent)
|
|
1647
1687
|
}),
|
|
1648
|
-
children: /* @__PURE__ */
|
|
1688
|
+
children: /* @__PURE__ */ L(B, {
|
|
1649
1689
|
size: 14,
|
|
1650
1690
|
"aria-hidden": !0
|
|
1651
1691
|
})
|
|
1652
|
-
})
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
i === void 0 ? r.length > 0 ? /* @__PURE__ */ P(bt, { groups: r }) : null : /* @__PURE__ */ F(l.Root, {
|
|
1689
|
-
open: p,
|
|
1690
|
-
onOpenChange: ee,
|
|
1691
|
-
children: [/* @__PURE__ */ P(l.Trigger, {
|
|
1692
|
-
render: /* @__PURE__ */ P(z, { render: /* @__PURE__ */ P(t, {
|
|
1693
|
-
"aria-label": "Filters",
|
|
1694
|
-
title: "Filters"
|
|
1695
|
-
}) }),
|
|
1696
|
-
children: /* @__PURE__ */ P(I, {
|
|
1697
|
-
size: 14,
|
|
1698
|
-
"aria-hidden": !0
|
|
1699
|
-
})
|
|
1700
|
-
}), /* @__PURE__ */ F(l.Popup, {
|
|
1701
|
-
align: "end",
|
|
1702
|
-
className: "x1m258z3 xw7nakj",
|
|
1703
|
-
children: [/* @__PURE__ */ P(l.Title, { children: "Filters" }), i(() => ee(!1))]
|
|
1704
|
-
})]
|
|
1705
|
-
}),
|
|
1706
|
-
o,
|
|
1707
|
-
s
|
|
1708
|
-
]
|
|
1709
|
-
}) : void 0,
|
|
1710
|
-
chips: w.length > 0 && /* @__PURE__ */ P("div", {
|
|
1711
|
-
"aria-hidden": v,
|
|
1712
|
-
inert: v,
|
|
1692
|
+
})]
|
|
1693
|
+
}),
|
|
1694
|
+
i === void 0 ? r.length > 0 ? /* @__PURE__ */ L(bt, { groups: r }) : null : /* @__PURE__ */ R(l.Root, {
|
|
1695
|
+
open: ee,
|
|
1696
|
+
onOpenChange: g,
|
|
1697
|
+
children: [/* @__PURE__ */ L(l.Trigger, {
|
|
1698
|
+
render: /* @__PURE__ */ L(U, { render: /* @__PURE__ */ L(t, {
|
|
1699
|
+
"aria-label": "Filters",
|
|
1700
|
+
title: "Filters"
|
|
1701
|
+
}) }),
|
|
1702
|
+
children: /* @__PURE__ */ L(z, {
|
|
1703
|
+
size: 14,
|
|
1704
|
+
"aria-hidden": !0
|
|
1705
|
+
})
|
|
1706
|
+
}), /* @__PURE__ */ R(l.Popup, {
|
|
1707
|
+
align: "end",
|
|
1708
|
+
className: "x1m258z3 xw7nakj",
|
|
1709
|
+
children: [/* @__PURE__ */ L(l.Title, { children: "Filters" }), i(() => g(!1))]
|
|
1710
|
+
})]
|
|
1711
|
+
}),
|
|
1712
|
+
o,
|
|
1713
|
+
s
|
|
1714
|
+
]
|
|
1715
|
+
}) : void 0;
|
|
1716
|
+
return {
|
|
1717
|
+
findRegion: {
|
|
1718
|
+
ref: f,
|
|
1719
|
+
"data-table-query": "",
|
|
1720
|
+
onKeyDown: T
|
|
1721
|
+
},
|
|
1722
|
+
openSearch: C,
|
|
1723
|
+
onKeyDown: T,
|
|
1724
|
+
actions: ae,
|
|
1725
|
+
chips: M.length > 0 && /* @__PURE__ */ L("div", {
|
|
1726
|
+
"aria-hidden": y,
|
|
1727
|
+
inert: y,
|
|
1713
1728
|
className: "xjp7ctv",
|
|
1714
|
-
children: /* @__PURE__ */
|
|
1715
|
-
filters:
|
|
1729
|
+
children: /* @__PURE__ */ L(q, {
|
|
1730
|
+
filters: M,
|
|
1716
1731
|
onRemove: (e, t) => {
|
|
1717
|
-
|
|
1732
|
+
S(), M.find((t) => t.id === e)?.onRemove(t);
|
|
1718
1733
|
}
|
|
1719
1734
|
})
|
|
1720
1735
|
})
|
|
@@ -1724,13 +1739,13 @@ function Ot({ label: e = "Collection controls", search: n, filters: r = [], filt
|
|
|
1724
1739
|
function kt({ columns: e, rows: t = 3, hideCaption: n = !0, ...r }) {
|
|
1725
1740
|
let i = typeof r.window?.height == "string" ? r.window.height : "content", a = Array.from({ length: t }, (e, t) => ({ id: String(t) })), o = e.map(({ placeholder: e, ...t }) => ({
|
|
1726
1741
|
...t,
|
|
1727
|
-
cell: () => e ?? /* @__PURE__ */
|
|
1742
|
+
cell: () => e ?? /* @__PURE__ */ L(d, { width: "60%" })
|
|
1728
1743
|
}));
|
|
1729
|
-
return /* @__PURE__ */
|
|
1744
|
+
return /* @__PURE__ */ L("div", {
|
|
1730
1745
|
"aria-hidden": !0,
|
|
1731
1746
|
inert: !0,
|
|
1732
|
-
...
|
|
1733
|
-
children: /* @__PURE__ */
|
|
1747
|
+
...g.props(Re[i], J.placeholder),
|
|
1748
|
+
children: /* @__PURE__ */ L(lt, {
|
|
1734
1749
|
...r,
|
|
1735
1750
|
hideCaption: n,
|
|
1736
1751
|
isPlaceholder: !0,
|
|
@@ -1745,31 +1760,31 @@ function At({ query: e, ...t }) {
|
|
|
1745
1760
|
switch (e.mode) {
|
|
1746
1761
|
case "local":
|
|
1747
1762
|
if (t.onEndReached !== void 0 || t.pagination !== void 0) throw Error("Local table queries require all rows. Use a controlled or frame query for a paged source.");
|
|
1748
|
-
return /* @__PURE__ */
|
|
1763
|
+
return /* @__PURE__ */ L(Mt, {
|
|
1749
1764
|
query: e,
|
|
1750
1765
|
table: t
|
|
1751
1766
|
});
|
|
1752
|
-
case "controlled": return /* @__PURE__ */
|
|
1767
|
+
case "controlled": return /* @__PURE__ */ L(Nt, {
|
|
1753
1768
|
table: {
|
|
1754
1769
|
...t,
|
|
1755
1770
|
filteredEmpty: t.filteredEmpty ?? t.empty
|
|
1756
1771
|
},
|
|
1757
1772
|
...gt(e)
|
|
1758
1773
|
});
|
|
1759
|
-
case "frame": return /* @__PURE__ */
|
|
1760
|
-
case "static": return Z(e), /* @__PURE__ */
|
|
1774
|
+
case "frame": return /* @__PURE__ */ L(jt, { table: t });
|
|
1775
|
+
case "static": return Z(e), /* @__PURE__ */ L(dt, { children: /* @__PURE__ */ L(lt, { ...t }) });
|
|
1761
1776
|
}
|
|
1762
1777
|
}
|
|
1763
1778
|
function jt({ table: e }) {
|
|
1764
1779
|
let t = ht();
|
|
1765
|
-
return /* @__PURE__ */
|
|
1780
|
+
return /* @__PURE__ */ L(dt, { children: /* @__PURE__ */ L(lt, {
|
|
1766
1781
|
...e,
|
|
1767
1782
|
empty: t ? e.filteredEmpty ?? "No matching records." : e.empty
|
|
1768
1783
|
}) });
|
|
1769
1784
|
}
|
|
1770
1785
|
function Mt({ query: e, table: t }) {
|
|
1771
1786
|
let { rows: n, search: r, filters: i, isFiltered: a } = mt(t.rows, e);
|
|
1772
|
-
return /* @__PURE__ */
|
|
1787
|
+
return /* @__PURE__ */ L(Nt, {
|
|
1773
1788
|
table: {
|
|
1774
1789
|
...t,
|
|
1775
1790
|
rows: n
|
|
@@ -1785,26 +1800,15 @@ function Nt({ table: e, search: t, filters: n, isFiltered: r }) {
|
|
|
1785
1800
|
filters: n,
|
|
1786
1801
|
isReady: !0,
|
|
1787
1802
|
label: e.caption
|
|
1788
|
-
})
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
if (e === null) return !1;
|
|
1794
|
-
let t = e.ownerDocument.activeElement;
|
|
1795
|
-
return t === null || t.closest("[data-native-find], textarea, select, input:not([data-view-find]), [contenteditable=\"true\"], [role=\"dialog\"], [role=\"alertdialog\"], [role=\"menu\"], [role=\"listbox\"]") !== null ? !1 : t.closest("[data-table-query]") === e || t === e.ownerDocument.body && e.ownerDocument.querySelectorAll("[data-view-find-trigger]").length === 1;
|
|
1796
|
-
}
|
|
1797
|
-
};
|
|
1798
|
-
return R(t === void 0 ? null : "/", i.openSearch, o), R(t === void 0 ? null : "mod+f", i.openSearch, o), /* @__PURE__ */ P(dt, { children: /* @__PURE__ */ F("div", {
|
|
1799
|
-
ref: a,
|
|
1800
|
-
"data-table-query": !0,
|
|
1801
|
-
onKeyDown: i.onKeyDown,
|
|
1802
|
-
...h.props(ze[typeof e.window?.height == "string" ? e.window.height : "content"]),
|
|
1803
|
-
children: [(t !== void 0 || n.length > 0) && /* @__PURE__ */ P(G, {
|
|
1803
|
+
});
|
|
1804
|
+
return /* @__PURE__ */ L(dt, { children: /* @__PURE__ */ R("div", {
|
|
1805
|
+
...i.findRegion,
|
|
1806
|
+
...g.props(Re[typeof e.window?.height == "string" ? e.window.height : "content"]),
|
|
1807
|
+
children: [(t !== void 0 || n.length > 0) && /* @__PURE__ */ L(Ee, {
|
|
1804
1808
|
label: `${e.caption} controls`,
|
|
1805
1809
|
actions: i.actions,
|
|
1806
1810
|
children: i.chips
|
|
1807
|
-
}), /* @__PURE__ */
|
|
1811
|
+
}), /* @__PURE__ */ L(lt, {
|
|
1808
1812
|
...e,
|
|
1809
1813
|
empty: r ? e.filteredEmpty ?? "No matching records." : e.empty
|
|
1810
1814
|
})]
|
|
@@ -1813,28 +1817,28 @@ function Nt({ table: e, search: t, filters: n, isFiltered: r }) {
|
|
|
1813
1817
|
// packages/collections/src/collection-scroll.tsx
|
|
1814
1818
|
function Pt(t) {
|
|
1815
1819
|
switch (t.status) {
|
|
1816
|
-
case "loading": return /* @__PURE__ */
|
|
1820
|
+
case "loading": return /* @__PURE__ */ L(n, {
|
|
1817
1821
|
role: "status",
|
|
1818
1822
|
variant: "caption",
|
|
1819
1823
|
tone: "muted",
|
|
1820
1824
|
children: t.message ?? "Loading…"
|
|
1821
1825
|
});
|
|
1822
|
-
case "complete": return t.message === void 0 ? null : /* @__PURE__ */
|
|
1826
|
+
case "complete": return t.message === void 0 ? null : /* @__PURE__ */ L(n, {
|
|
1823
1827
|
variant: "caption",
|
|
1824
1828
|
tone: "muted",
|
|
1825
1829
|
children: t.message
|
|
1826
1830
|
});
|
|
1827
|
-
case "ready": return /* @__PURE__ */
|
|
1831
|
+
case "ready": return /* @__PURE__ */ L(e, {
|
|
1828
1832
|
onClick: t.onLoadMore,
|
|
1829
1833
|
children: t.message ?? "Load more"
|
|
1830
1834
|
});
|
|
1831
|
-
case "error": return /* @__PURE__ */
|
|
1835
|
+
case "error": return /* @__PURE__ */ R(i, {
|
|
1832
1836
|
role: "status",
|
|
1833
|
-
children: [/* @__PURE__ */
|
|
1837
|
+
children: [/* @__PURE__ */ L(n, {
|
|
1834
1838
|
variant: "caption",
|
|
1835
1839
|
tone: "muted",
|
|
1836
1840
|
children: t.message ?? "More records could not be loaded."
|
|
1837
|
-
}), /* @__PURE__ */
|
|
1841
|
+
}), /* @__PURE__ */ L(e, {
|
|
1838
1842
|
onClick: t.onLoadMore,
|
|
1839
1843
|
children: "Retry"
|
|
1840
1844
|
})]
|
|
@@ -1842,14 +1846,14 @@ function Pt(t) {
|
|
|
1842
1846
|
}
|
|
1843
1847
|
}
|
|
1844
1848
|
function Ft({ children: e, endContent: t, onEndReached: n, shouldFill: r = !1, endPosition: i = "end", label: a = "Collection" }) {
|
|
1845
|
-
let o =
|
|
1846
|
-
|
|
1849
|
+
let o = ee(), s = o.viewport, c = O(null);
|
|
1850
|
+
rt({
|
|
1847
1851
|
end: c,
|
|
1848
1852
|
viewport: r ? s : void 0,
|
|
1849
1853
|
onEndReached: n,
|
|
1850
1854
|
content: e
|
|
1851
1855
|
});
|
|
1852
|
-
let l = /* @__PURE__ */
|
|
1856
|
+
let l = /* @__PURE__ */ L("div", {
|
|
1853
1857
|
ref: c,
|
|
1854
1858
|
...{
|
|
1855
1859
|
0: {},
|
|
@@ -1857,7 +1861,7 @@ function Ft({ children: e, endContent: t, onEndReached: n, shouldFill: r = !1, e
|
|
|
1857
1861
|
}[t !== void 0 | 0],
|
|
1858
1862
|
children: t
|
|
1859
1863
|
});
|
|
1860
|
-
return /* @__PURE__ */
|
|
1864
|
+
return /* @__PURE__ */ R("div", {
|
|
1861
1865
|
ref: o.ref,
|
|
1862
1866
|
role: r ? "region" : void 0,
|
|
1863
1867
|
"aria-label": r ? a : void 0,
|
|
@@ -1878,7 +1882,7 @@ var It = 860, Lt = S(void 0);
|
|
|
1878
1882
|
function Rt({ reading: e }) {
|
|
1879
1883
|
return { value: e };
|
|
1880
1884
|
}
|
|
1881
|
-
var zt =
|
|
1885
|
+
var zt = P({
|
|
1882
1886
|
name: "detail-field",
|
|
1883
1887
|
options: { reading: "string" },
|
|
1884
1888
|
state: Rt,
|
|
@@ -1902,12 +1906,12 @@ function Vt({ master: t, detail: n, label: r, masterLabel: i, revealKey: a, retu
|
|
|
1902
1906
|
behavior: "instant"
|
|
1903
1907
|
});
|
|
1904
1908
|
}
|
|
1905
|
-
return /* @__PURE__ */
|
|
1909
|
+
return /* @__PURE__ */ L("div", {
|
|
1906
1910
|
...v({ className: "x9vvk8s x12h1iku xeuugli xbixft x1hz01jw xtqrqnz x1778rvt" }, s),
|
|
1907
|
-
children: /* @__PURE__ */
|
|
1911
|
+
children: /* @__PURE__ */ R("div", {
|
|
1908
1912
|
ref: l,
|
|
1909
1913
|
className: "xrvj5dj x4ruv2j x1y7acmc x7a106z x1j825kq xeuugli",
|
|
1910
|
-
children: [/* @__PURE__ */
|
|
1914
|
+
children: [/* @__PURE__ */ L("div", {
|
|
1911
1915
|
ref: u,
|
|
1912
1916
|
role: "group",
|
|
1913
1917
|
"aria-label": i,
|
|
@@ -1915,20 +1919,20 @@ function Vt({ master: t, detail: n, label: r, masterLabel: i, revealKey: a, retu
|
|
|
1915
1919
|
tabIndex: -1,
|
|
1916
1920
|
className: "xeuugli",
|
|
1917
1921
|
children: t
|
|
1918
|
-
}), /* @__PURE__ */
|
|
1922
|
+
}), /* @__PURE__ */ R("aside", {
|
|
1919
1923
|
ref: d,
|
|
1920
1924
|
id: c,
|
|
1921
1925
|
"aria-label": r,
|
|
1922
1926
|
tabIndex: -1,
|
|
1923
1927
|
className: "x7wzq59 x7cfggw xqfmuo8 xeuugli x1sbza1b xhuqrux xexx8yu xdz7uhd xpilrb4 xdctr63 x1t7ytsu x97x49r x972fbf x1mg79u0 x13fuv20 xhjagg4 x14ijc3v x13qnu6 x9v5kkp x19rmrnh x12ijfkc",
|
|
1924
|
-
children: [/* @__PURE__ */
|
|
1928
|
+
children: [/* @__PURE__ */ L("div", {
|
|
1925
1929
|
className: "x1s85apg x1yamub6 x1xxlxpq",
|
|
1926
|
-
children: /* @__PURE__ */
|
|
1930
|
+
children: /* @__PURE__ */ R(e, {
|
|
1927
1931
|
variant: "ghost",
|
|
1928
1932
|
onClick: f,
|
|
1929
1933
|
children: ["Back to ", i.toLowerCase()]
|
|
1930
1934
|
})
|
|
1931
|
-
}), /* @__PURE__ */
|
|
1935
|
+
}), /* @__PURE__ */ L(Lt.Provider, {
|
|
1932
1936
|
value: r,
|
|
1933
1937
|
children: n
|
|
1934
1938
|
})]
|
|
@@ -1938,26 +1942,26 @@ function Vt({ master: t, detail: n, label: r, masterLabel: i, revealKey: a, retu
|
|
|
1938
1942
|
}
|
|
1939
1943
|
function Ht({ value: e, label: t }) {
|
|
1940
1944
|
let n = typeof e == "number" ? String(e) : e;
|
|
1941
|
-
return typeof n == "string" ? /* @__PURE__ */
|
|
1945
|
+
return typeof n == "string" ? /* @__PURE__ */ L(Bt, {
|
|
1942
1946
|
"aria-label": t,
|
|
1943
1947
|
reading: n,
|
|
1944
1948
|
className: "xeuugli x1ghz6dp xbixft xj0a0fe xss6m8b",
|
|
1945
1949
|
children: n
|
|
1946
|
-
}) : /* @__PURE__ */
|
|
1950
|
+
}) : /* @__PURE__ */ L("dd", {
|
|
1947
1951
|
className: "xeuugli x1ghz6dp xbixft xj0a0fe xss6m8b",
|
|
1948
1952
|
children: e
|
|
1949
1953
|
});
|
|
1950
1954
|
}
|
|
1951
1955
|
function Ut({ items: e, ...t }) {
|
|
1952
1956
|
let n = C(Lt), r = t["aria-label"] ?? n;
|
|
1953
|
-
return /* @__PURE__ */
|
|
1957
|
+
return /* @__PURE__ */ L("dl", {
|
|
1954
1958
|
...v({ className: "x1ghz6dp xrvj5dj xezdspq x1i3977y xuytk5h x1hz01jw xvmahel xtqrqnz x1778rvt" }, t),
|
|
1955
|
-
children: e.map(({ label: e, value: t }) => /* @__PURE__ */
|
|
1959
|
+
children: e.map(({ label: e, value: t }) => /* @__PURE__ */ R("div", {
|
|
1956
1960
|
className: "xjp7ctv",
|
|
1957
|
-
children: [/* @__PURE__ */
|
|
1961
|
+
children: [/* @__PURE__ */ L("dt", {
|
|
1958
1962
|
className: "xeuugli x153jb6y xj0a0fe",
|
|
1959
1963
|
children: e
|
|
1960
|
-
}), /* @__PURE__ */
|
|
1964
|
+
}), /* @__PURE__ */ L(Ht, {
|
|
1961
1965
|
value: t,
|
|
1962
1966
|
label: r === void 0 ? e : `${r} · ${e}`
|
|
1963
1967
|
})]
|
|
@@ -1966,12 +1970,12 @@ function Ut({ items: e, ...t }) {
|
|
|
1966
1970
|
}
|
|
1967
1971
|
// packages/collections/src/list-footer.tsx
|
|
1968
1972
|
function Wt({ children: e, actions: t, ...n }) {
|
|
1969
|
-
return /* @__PURE__ */
|
|
1973
|
+
return /* @__PURE__ */ R("div", {
|
|
1970
1974
|
...v({ className: "x78zum5 x6s0dn4 x1qughib x1a02dak xeuugli x1n8ia3y x1qokhjc x1m92p3w x178xt8z x13fuv20 xhjagg4 x153jb6y x1hz01jw xvmahel xtqrqnz x1778rvt" }, n),
|
|
1971
|
-
children: [/* @__PURE__ */
|
|
1975
|
+
children: [/* @__PURE__ */ L("div", {
|
|
1972
1976
|
className: "xeuugli xj0a0fe",
|
|
1973
1977
|
children: e
|
|
1974
|
-
}), t != null && /* @__PURE__ */
|
|
1978
|
+
}), t != null && /* @__PURE__ */ L("div", {
|
|
1975
1979
|
className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli",
|
|
1976
1980
|
children: t
|
|
1977
1981
|
})]
|
|
@@ -2123,36 +2127,36 @@ var $ = {
|
|
|
2123
2127
|
columns: $.columns
|
|
2124
2128
|
};
|
|
2125
2129
|
function qt({ layout: e = "inline", ...t }) {
|
|
2126
|
-
return /* @__PURE__ */
|
|
2130
|
+
return /* @__PURE__ */ L("dl", { ...v(g.props(Kt[e]), t) });
|
|
2127
2131
|
}
|
|
2128
2132
|
function Jt({ label: e, value: t, detail: n, change: r, target: i, isLoading: a = !1, hasDetail: o = !1, variant: s = "inline", trend: c, ...l }) {
|
|
2129
2133
|
let u = Gt[s], f = a && o || n !== void 0, p = r?.tone === "positive" ? $.changePositive : r?.tone === "negative" ? $.changeNegative : void 0;
|
|
2130
|
-
return /* @__PURE__ */
|
|
2131
|
-
...v(
|
|
2134
|
+
return /* @__PURE__ */ R("div", {
|
|
2135
|
+
...v(g.props($.metric, u.metric), l),
|
|
2132
2136
|
children: [
|
|
2133
|
-
/* @__PURE__ */
|
|
2134
|
-
...
|
|
2137
|
+
/* @__PURE__ */ L("dt", {
|
|
2138
|
+
...g.props($.label, u.label),
|
|
2135
2139
|
children: e
|
|
2136
2140
|
}),
|
|
2137
|
-
/* @__PURE__ */
|
|
2138
|
-
...
|
|
2139
|
-
children: /* @__PURE__ */
|
|
2141
|
+
/* @__PURE__ */ L("dd", {
|
|
2142
|
+
...g.props($.value, u.value),
|
|
2143
|
+
children: /* @__PURE__ */ R("span", {
|
|
2140
2144
|
className: "x78zum5 x1pha0wt x1a02dak x1hnptsi xeuugli",
|
|
2141
|
-
children: [/* @__PURE__ */
|
|
2142
|
-
...
|
|
2145
|
+
children: [/* @__PURE__ */ L("span", { children: a ? /* @__PURE__ */ L(d, { width: u.valueWidth }) : t ?? "—" }), !a && r !== void 0 && /* @__PURE__ */ L("span", {
|
|
2146
|
+
...g.props($.change, p),
|
|
2143
2147
|
children: r.value
|
|
2144
2148
|
})]
|
|
2145
2149
|
})
|
|
2146
2150
|
}),
|
|
2147
|
-
f && /* @__PURE__ */
|
|
2148
|
-
...
|
|
2149
|
-
children: a ? /* @__PURE__ */
|
|
2151
|
+
f && /* @__PURE__ */ L("dd", {
|
|
2152
|
+
...g.props($.detail, u.detail),
|
|
2153
|
+
children: a ? /* @__PURE__ */ L(d, { width: "24ch" }) : n
|
|
2150
2154
|
}),
|
|
2151
|
-
!a && i !== void 0 && /* @__PURE__ */
|
|
2155
|
+
!a && i !== void 0 && /* @__PURE__ */ L("dd", {
|
|
2152
2156
|
className: "x1ghz6dp xeuugli xy8obcc xas2l8k x153jb6y xss6m8b",
|
|
2153
2157
|
children: i
|
|
2154
2158
|
}),
|
|
2155
|
-
c !== void 0 && /* @__PURE__ */
|
|
2159
|
+
c !== void 0 && /* @__PURE__ */ L("dd", {
|
|
2156
2160
|
className: "x1ghz6dp xeuugli xh8yej3 xkh2ocl",
|
|
2157
2161
|
children: c
|
|
2158
2162
|
})
|
|
@@ -2161,66 +2165,66 @@ function Jt({ label: e, value: t, detail: n, change: r, target: i, isLoading: a
|
|
|
2161
2165
|
}
|
|
2162
2166
|
// packages/collections/src/timestamp.tsx
|
|
2163
2167
|
function Yt({ dateTime: e, label: t, title: n }) {
|
|
2164
|
-
return n === void 0 ? /* @__PURE__ */
|
|
2168
|
+
return n === void 0 ? /* @__PURE__ */ L("time", {
|
|
2165
2169
|
dateTime: e,
|
|
2166
2170
|
className: "x1hz01jw xy8obcc xas2l8k x153jb6y xss6m8b xj0a0fe x13qnu6 x9v5kkp x19rmrnh x7s97pk",
|
|
2167
2171
|
children: t
|
|
2168
|
-
}) : /* @__PURE__ */
|
|
2169
|
-
render: /* @__PURE__ */
|
|
2172
|
+
}) : /* @__PURE__ */ R(u.Root, { children: [/* @__PURE__ */ L(u.Trigger, {
|
|
2173
|
+
render: /* @__PURE__ */ L("time", {
|
|
2170
2174
|
dateTime: e,
|
|
2171
2175
|
tabIndex: 0,
|
|
2172
2176
|
"aria-label": n,
|
|
2173
2177
|
className: "x1hz01jw xy8obcc xas2l8k x153jb6y xss6m8b xj0a0fe x13qnu6 x9v5kkp x19rmrnh x7s97pk"
|
|
2174
2178
|
}),
|
|
2175
2179
|
children: t
|
|
2176
|
-
}), /* @__PURE__ */
|
|
2180
|
+
}), /* @__PURE__ */ L(u.Popup, { children: n })] });
|
|
2177
2181
|
}
|
|
2178
2182
|
// packages/collections/src/timeline.tsx
|
|
2179
2183
|
function Xt({ label: e, children: t }) {
|
|
2180
|
-
return /* @__PURE__ */
|
|
2184
|
+
return /* @__PURE__ */ L(ve, {
|
|
2181
2185
|
"aria-label": e,
|
|
2182
|
-
render: /* @__PURE__ */
|
|
2186
|
+
render: /* @__PURE__ */ L("ol", {}),
|
|
2183
2187
|
className: "xe8uvvx x1ghz6dp x1717udv xeuugli",
|
|
2184
2188
|
children: t
|
|
2185
2189
|
});
|
|
2186
2190
|
}
|
|
2187
2191
|
function Zt({ icon: e, title: t, time: n, metadata: r, children: i, details: a, defaultOpen: s = !1 }) {
|
|
2188
|
-
let [c, l] = k(s), u = /* @__PURE__ */
|
|
2192
|
+
let [c, l] = k(s), u = /* @__PURE__ */ R("div", {
|
|
2189
2193
|
className: "x78zum5 x1pha0wt x1hnptsi x1a02dak xeuugli",
|
|
2190
|
-
children: [/* @__PURE__ */
|
|
2194
|
+
children: [/* @__PURE__ */ L(xe, {
|
|
2191
2195
|
className: "xeuugli xk4h15q xj0a0fe",
|
|
2192
|
-
children: a === void 0 ? t : /* @__PURE__ */
|
|
2196
|
+
children: a === void 0 ? t : /* @__PURE__ */ L(o.Trigger, {
|
|
2193
2197
|
className: "x14atkfc x16exltd x17oiadl xt970qd xlqzeqv",
|
|
2194
2198
|
children: t
|
|
2195
2199
|
})
|
|
2196
|
-
}), n != null && /* @__PURE__ */
|
|
2197
|
-
render: /* @__PURE__ */
|
|
2200
|
+
}), n != null && /* @__PURE__ */ L(K, {
|
|
2201
|
+
render: /* @__PURE__ */ L("div", {}),
|
|
2198
2202
|
className: "xeuugli x153jb6y xy8obcc xas2l8k xss6m8b xj0a0fe",
|
|
2199
2203
|
children: n
|
|
2200
2204
|
})]
|
|
2201
|
-
}), d = /* @__PURE__ */
|
|
2205
|
+
}), d = /* @__PURE__ */ R(ae, { children: [
|
|
2202
2206
|
u,
|
|
2203
|
-
i != null && (!c || a === void 0) && /* @__PURE__ */
|
|
2207
|
+
i != null && (!c || a === void 0) && /* @__PURE__ */ L(ye, {
|
|
2204
2208
|
className: "xeuugli x1ewvobj xj0a0fe",
|
|
2205
2209
|
children: i
|
|
2206
2210
|
}),
|
|
2207
|
-
r != null && /* @__PURE__ */
|
|
2211
|
+
r != null && /* @__PURE__ */ L("div", {
|
|
2208
2212
|
className: "xeuugli x153jb6y xy8obcc xas2l8k xj0a0fe",
|
|
2209
2213
|
children: r
|
|
2210
2214
|
}),
|
|
2211
|
-
a !== void 0 && /* @__PURE__ */
|
|
2215
|
+
a !== void 0 && /* @__PURE__ */ L(o.Panel, { children: a })
|
|
2212
2216
|
] });
|
|
2213
|
-
return /* @__PURE__ */
|
|
2214
|
-
render: /* @__PURE__ */
|
|
2217
|
+
return /* @__PURE__ */ R(be, {
|
|
2218
|
+
render: /* @__PURE__ */ L("li", {}),
|
|
2215
2219
|
className: "x1n2onr6 xrvj5dj x1eqwfih x1y1mm1b xhlx3wy xeuugli x1hz01jw xvmahel xtqrqnz x1778rvt xbixft x1cpjm7i x1hmns74 x1lk18uv x1gi6gvw x1jw5pjq x1vgi0k x1mi36wk x1wse844 xup0pd7 x1t137rt x13qnu6 x9v5kkp x19rmrnh x7s97pk",
|
|
2216
|
-
children: [/* @__PURE__ */
|
|
2217
|
-
render: /* @__PURE__ */
|
|
2220
|
+
children: [/* @__PURE__ */ L(G, {
|
|
2221
|
+
render: /* @__PURE__ */ L("span", {}),
|
|
2218
2222
|
className: "x78zum5 x6s0dn4 xl56j7k x1b1e0sl x153jb6y",
|
|
2219
2223
|
children: e
|
|
2220
|
-
}), a === void 0 ? /* @__PURE__ */
|
|
2224
|
+
}), a === void 0 ? /* @__PURE__ */ L("div", {
|
|
2221
2225
|
className: "xrvj5dj x1hnptsi xeuugli",
|
|
2222
2226
|
children: d
|
|
2223
|
-
}) : /* @__PURE__ */
|
|
2227
|
+
}) : /* @__PURE__ */ L(o.Root, {
|
|
2224
2228
|
open: c,
|
|
2225
2229
|
onOpenChange: l,
|
|
2226
2230
|
className: "xrvj5dj x1hnptsi xeuugli xh8yej3",
|
|
@@ -2232,4 +2236,4 @@ var Qt = {
|
|
|
2232
2236
|
Root: Xt,
|
|
2233
2237
|
Item: Zt
|
|
2234
2238
|
};
|
|
2235
|
-
export {
|
|
2239
|
+
export { Ne as _, Wt as a, De as b, Pt as c, kt as d, Ot as f, Me as g, mt as h, qt as i, Ft as l, dt as m, Yt as n, Ut as o, bt as p, Jt as r, Vt as s, Qt as t, At as u, Oe as v, q as x, Ee as y };
|