@mechane-ai/elements 0.40.0 → 0.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -10
- package/bin/catalog.d.mts +17 -0
- package/bin/mechane-elements-catalog.mjs +60 -0
- package/dist/agent.js +1 -1
- package/dist/ai.js +23 -23
- package/dist/catalog.json +1896 -0
- package/dist/{categorical-values-DnGR_pQx.js → categorical-values-B6lGI7BH.js} +3 -3
- package/dist/{chart-frame-BsyI1Zc8.js → chart-frame-D0enjyj9.js} +1 -1
- package/dist/{chart-input-r4S3-QCT.js → chart-input-D4_Awave.js} +2 -2
- package/dist/{chart-navigation-D7OkLdSx.js → chart-navigation-D4-pdgpj.js} +12 -1
- package/dist/charts/cartesian.js +263 -243
- package/dist/charts/distribution.js +4 -4
- package/dist/charts/graph.js +4 -4
- package/dist/charts/hierarchy.js +4 -4
- package/dist/charts/matrix.js +4 -4
- package/dist/charts/timeline.js +3 -3
- package/dist/charts.js +2 -2
- package/dist/{code-block-C4K1sM9O.js → code-block-Cpfr7B6a.js} +1 -1
- package/dist/collections.js +475 -354
- 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 +2 -2
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-CBDqSvgP.js → content-link-CGeFFb9F.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/feedback.js +1 -1
- package/dist/forms/dates.js +89 -12
- package/dist/{forms-I-WMHTkr.js → forms-DeU0Tiv3.js} +6 -2
- package/dist/forms.js +3 -3
- package/dist/index.js +1 -1
- package/dist/layout.js +275 -249
- package/dist/mechane-elements-catalog.mjs +4 -0
- package/dist/navigation.js +2 -2
- package/dist/packages/charts/src/chart-inspection.d.ts +1 -0
- package/dist/packages/charts/src/chart-navigation.d.ts +2 -0
- package/dist/packages/charts/src/chart-surface.d.ts +2 -0
- package/dist/packages/collections/src/collection-controls.d.ts +2 -1
- package/dist/packages/collections/src/data-table.d.ts +12 -8
- package/dist/packages/collections/src/index.d.ts +1 -0
- package/dist/packages/collections/src/table-results.d.ts +26 -0
- package/dist/packages/core/src/actions.d.ts +6 -0
- package/dist/packages/core/src/index.d.ts +1 -1
- package/dist/packages/forms/src/dates/event-month.d.ts +17 -0
- package/dist/packages/forms/src/dates/index.d.ts +2 -0
- package/dist/packages/forms/src/form-status.d.ts +7 -0
- package/dist/packages/forms/src/forms.d.ts +3 -1
- package/dist/packages/forms/src/index.d.ts +2 -0
- package/dist/packages/foundations/src/agent/index.d.ts +2 -2
- package/dist/packages/layout/src/page-context.d.ts +4 -0
- package/dist/packages/navigation/src/index.d.ts +1 -0
- package/dist/packages/navigation/src/route-link.d.ts +2 -0
- package/dist/{pierre-diff-DJ3oOfPX.js → pierre-diff-B3tD3-6z.js} +1 -1
- package/dist/{src-D2OHco8V.js → src-Bk7M67zy.js} +3 -3
- package/dist/{src-DfOAlAd2.js → src-BpvnBWrF.js} +1 -1
- package/dist/{src-CQQvXi7a.js → src-DBNncL7_.js} +70 -50
- package/dist/{src-s3tWwnN4.js → src-DcW_gMX8.js} +178 -168
- package/dist/{src-CNV1ewzb.js → src-gqEebHEa.js} +319 -285
- package/dist/styles2.css +18 -0
- package/package.json +9 -2
- package/recipes/consequential-form.tsx +132 -0
- package/recipes/searchable-collection.tsx +106 -0
- package/recipes/sectioned-report.tsx +58 -0
- package/recipes/tabbed-workspace.tsx +84 -0
- package/skills/extend-elements/SKILL.md +28 -0
- package/skills/use-elements/SKILL.md +36 -0
- package/skills/{elements-presentation/SKILL.md → use-elements/references/reports.md} +0 -6
- package/skills/{elements-workspace/SKILL.md → use-elements/references/workspace.md} +3 -6
package/dist/collections.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as o } from "./src-
|
|
1
|
+
import { E as e, _ as t, c as n, i as r, p as i, w as a } from "./src-DcW_gMX8.js";
|
|
2
|
+
import { r as o } from "./src-gqEebHEa.js";
|
|
3
3
|
import { t as s } from "./header-styles-COxCYFZx.js";
|
|
4
4
|
import { i as c, r as l, t as u } from "./src-na2DdkKI.js";
|
|
5
|
-
import { f as d } from "./src-
|
|
5
|
+
import { f as d } from "./src-BpvnBWrF.js";
|
|
6
6
|
import { t as f } from "./accessibility-P89UG9-r.js";
|
|
7
7
|
import { l as ee, t as p } from "./constants.stylex-BILvnwUk.js";
|
|
8
|
-
import { t as
|
|
9
|
-
import { n as
|
|
10
|
-
import * as
|
|
11
|
-
import { Button as
|
|
12
|
-
import { createParts as
|
|
13
|
-
import { Children as
|
|
8
|
+
import { t as te } from "./use-scroll-tab-index-Dxpdh4W7.js";
|
|
9
|
+
import { n as m } from "./forms-DeU0Tiv3.js";
|
|
10
|
+
import * as h from "@stylexjs/stylex";
|
|
11
|
+
import { Button as g } from "@ui-sdk/react/button";
|
|
12
|
+
import { createParts as _, mergeProps as v } from "@ui-sdk/react/primitive";
|
|
13
|
+
import { Children as y, Fragment as ne, createContext as b, useContext as x, useEffect as S, useId as re, useLayoutEffect as C, useMemo as ie, useRef as w, useState as T, useSyncExternalStore as E } from "react";
|
|
14
14
|
import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
15
|
-
import { ArrowDown as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
15
|
+
import { ArrowDown as ae, ArrowUp as oe, ArrowUpDown as se, ChevronLeft as A, ChevronRight as j, CircleDashed as ce, ListFilter as le, Search as M, Settings2 as ue, X as de } from "lucide-react";
|
|
16
|
+
import { definePrimitive as N } from "@ui-sdk/core";
|
|
17
|
+
import { useShortcut as P } from "@ui-sdk/react/shortcuts";
|
|
18
|
+
import { createColumnHelper as fe, tableFeatures as F, useTable as pe } from "@tanstack/react-table";
|
|
19
|
+
import { defaultRangeExtractor as me, useVirtualizer as he } from "@tanstack/react-virtual";
|
|
20
20
|
// packages/collections/src/collection-controls.tsx
|
|
21
|
-
var
|
|
21
|
+
var ge = {
|
|
22
22
|
toolbar: {
|
|
23
23
|
kOIVth: "x1hnptsi",
|
|
24
24
|
kMwMTN: "xbixft",
|
|
@@ -33,19 +33,19 @@ var I = {
|
|
|
33
33
|
$$css: !0
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
|
-
function
|
|
37
|
-
let r =
|
|
36
|
+
function I({ label: e, children: t, actions: n }) {
|
|
37
|
+
let r = y.toArray(t).length > 0, i = y.toArray(n).length > 0;
|
|
38
38
|
return !r && !i ? null : /* @__PURE__ */ k("div", {
|
|
39
39
|
role: "group",
|
|
40
40
|
"aria-label": e,
|
|
41
|
-
...
|
|
41
|
+
...h.props(s.row, s.blockEnd, ge.toolbar),
|
|
42
42
|
children: [t, i && /* @__PURE__ */ O("div", {
|
|
43
43
|
className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli xvc5jky",
|
|
44
44
|
children: n
|
|
45
45
|
})]
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function L({ filters: t, onRemove: n, label: r = "Applied filters" }) {
|
|
49
49
|
return t.length === 0 ? null : /* @__PURE__ */ O("div", {
|
|
50
50
|
role: "group",
|
|
51
51
|
"aria-label": r,
|
|
@@ -60,8 +60,8 @@ function he({ filters: t, onRemove: n, label: r = "Applied filters" }) {
|
|
|
60
60
|
"aria-label": `Remove ${t.label}`,
|
|
61
61
|
variant: "ghost",
|
|
62
62
|
onClick: () => n(t.id),
|
|
63
|
-
xstyle:
|
|
64
|
-
children: /* @__PURE__ */ O(
|
|
63
|
+
xstyle: ge.remove,
|
|
64
|
+
children: /* @__PURE__ */ O(de, {
|
|
65
65
|
size: 14,
|
|
66
66
|
"aria-hidden": "true"
|
|
67
67
|
})
|
|
@@ -75,7 +75,7 @@ function R({ options: t, onChange: n, onReset: r, label: i = "Display options" }
|
|
|
75
75
|
"aria-label": i,
|
|
76
76
|
title: i
|
|
77
77
|
}),
|
|
78
|
-
children: /* @__PURE__ */ O(
|
|
78
|
+
children: /* @__PURE__ */ O(ue, {
|
|
79
79
|
size: 14,
|
|
80
80
|
"aria-hidden": "true"
|
|
81
81
|
})
|
|
@@ -100,24 +100,26 @@ function R({ options: t, onChange: n, onReset: r, label: i = "Display options" }
|
|
|
100
100
|
})]
|
|
101
101
|
})] });
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function _e({ label: e, description: t, previous: r, next: i }) {
|
|
104
104
|
return /* @__PURE__ */ k("nav", {
|
|
105
|
-
"aria-label": "Pagination"
|
|
105
|
+
"aria-label": e === void 0 ? "Pagination" : `${e} pagination`,
|
|
106
106
|
className: "x78zum5 x6s0dn4 x1qughib x1a02dak xaml1ju xeuugli",
|
|
107
|
-
children: [/* @__PURE__ */ O(n, { children:
|
|
107
|
+
children: [/* @__PURE__ */ O(n, { children: t }), /* @__PURE__ */ k("div", {
|
|
108
108
|
className: "x78zum5 x6s0dn4 x1a02dak x1hnptsi xeuugli xvc5jky",
|
|
109
109
|
children: [/* @__PURE__ */ k(a, {
|
|
110
110
|
variant: "outline",
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
"aria-label": e === void 0 ? void 0 : `Previous page of ${e}`,
|
|
112
|
+
disabled: r.disabled,
|
|
113
|
+
onClick: r.onClick,
|
|
113
114
|
children: [/* @__PURE__ */ O(A, {
|
|
114
115
|
size: 16,
|
|
115
116
|
"aria-hidden": "true"
|
|
116
117
|
}), "Previous"]
|
|
117
118
|
}), /* @__PURE__ */ k(a, {
|
|
118
119
|
variant: "outline",
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
"aria-label": e === void 0 ? void 0 : `Next page of ${e}`,
|
|
121
|
+
disabled: i.disabled,
|
|
122
|
+
onClick: i.onClick,
|
|
121
123
|
children: ["Next", /* @__PURE__ */ O(j, {
|
|
122
124
|
size: 16,
|
|
123
125
|
"aria-hidden": "true"
|
|
@@ -127,34 +129,34 @@ function z({ description: e, previous: t, next: r }) {
|
|
|
127
129
|
});
|
|
128
130
|
}
|
|
129
131
|
// packages/collections/src/table-query.tsx
|
|
130
|
-
var
|
|
131
|
-
function
|
|
132
|
+
var z = b(void 0);
|
|
133
|
+
function B(e) {
|
|
132
134
|
if (e.reason.trim().length === 0) throw Error("A table query exception requires a reason.");
|
|
133
135
|
}
|
|
134
|
-
function
|
|
135
|
-
return e === void 0 ? /* @__PURE__ */ O(
|
|
136
|
+
function V({ search: e, filters: t, children: n, isFiltered: r = !1 }) {
|
|
137
|
+
return e === void 0 ? /* @__PURE__ */ O(z, {
|
|
136
138
|
value: void 0,
|
|
137
139
|
children: n
|
|
138
|
-
}) : (e !== !0 &&
|
|
140
|
+
}) : (e !== !0 && B(e), t !== !0 && B(t), /* @__PURE__ */ O(z, {
|
|
139
141
|
value: r,
|
|
140
142
|
children: n
|
|
141
143
|
}));
|
|
142
144
|
}
|
|
143
|
-
function
|
|
144
|
-
if ("reason" in e)
|
|
145
|
+
function H(e) {
|
|
146
|
+
if ("reason" in e) B(e);
|
|
145
147
|
else {
|
|
146
148
|
if (e.length === 0) throw Error("Supply filter dimensions or explain why the table has none.");
|
|
147
149
|
if (new Set(e.map((e) => e.id)).size !== e.length) throw Error("Each table filter must have a unique ID.");
|
|
148
150
|
}
|
|
149
151
|
}
|
|
150
|
-
var
|
|
151
|
-
function
|
|
152
|
-
let [n, r] =
|
|
153
|
-
typeof t.search != "function" &&
|
|
154
|
-
let s = "reason" in t.filters ?
|
|
152
|
+
var U = [];
|
|
153
|
+
function W(e, t) {
|
|
154
|
+
let [n, r] = T(""), [i, a] = T(/* @__PURE__ */ new Map()), o = typeof t.search == "function" ? t.search : void 0;
|
|
155
|
+
typeof t.search != "function" && B(t.search), H(t.filters);
|
|
156
|
+
let s = "reason" in t.filters ? U : t.filters, c = o === void 0 ? void 0 : {
|
|
155
157
|
value: n,
|
|
156
158
|
onChange: r
|
|
157
|
-
}, l = n.trim().toLowerCase(), u =
|
|
159
|
+
}, l = n.trim().toLowerCase(), u = ie(() => s.map((t) => {
|
|
158
160
|
let n = new Set(e.map(t.value)), r = i.get(t.id);
|
|
159
161
|
r !== void 0 && n.add(r);
|
|
160
162
|
let o = Array.from(n, (e) => ({
|
|
@@ -189,13 +191,13 @@ function G(e, t) {
|
|
|
189
191
|
isFiltered: d || f
|
|
190
192
|
};
|
|
191
193
|
}
|
|
192
|
-
function
|
|
193
|
-
let e =
|
|
194
|
+
function G() {
|
|
195
|
+
let e = x(z);
|
|
194
196
|
if (e === void 0) throw Error("A frame-owned table requires its enclosing collection to supply TableQueryFrame.");
|
|
195
197
|
return e;
|
|
196
198
|
}
|
|
197
|
-
function
|
|
198
|
-
"reason" in e.search &&
|
|
199
|
+
function ve(e) {
|
|
200
|
+
"reason" in e.search && B(e.search), H(e.filters);
|
|
199
201
|
let t = "reason" in e.search ? void 0 : e.search, n = "reason" in e.filters ? [] : e.filters;
|
|
200
202
|
return {
|
|
201
203
|
search: t,
|
|
@@ -203,8 +205,77 @@ function _e(e) {
|
|
|
203
205
|
isFiltered: !!t?.value.trim() || n.some((e) => e.value !== e.defaultValue)
|
|
204
206
|
};
|
|
205
207
|
}
|
|
206
|
-
// packages/collections/src/
|
|
207
|
-
|
|
208
|
+
// packages/collections/src/table-results.tsx
|
|
209
|
+
function K({ status: e, sort: t, pagination: n, isPlaceholder: r }) {
|
|
210
|
+
return {
|
|
211
|
+
status: e,
|
|
212
|
+
pending: e === "pending",
|
|
213
|
+
sort: t ?? null,
|
|
214
|
+
page: n?.description ?? null,
|
|
215
|
+
hasPreviousPage: n !== void 0 && !n.previous.disabled,
|
|
216
|
+
hasNextPage: n !== void 0 && !n.next.disabled,
|
|
217
|
+
isPlaceholder: r
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
var q = "[hidden], [inert], [aria-hidden=\"true\"], [data-agent-hidden], [data-agent-secret]";
|
|
221
|
+
function ye(e) {
|
|
222
|
+
let t = e?.closest("table")?.tBodies[0];
|
|
223
|
+
return t === void 0 || t.closest(q) !== null ? [] : Array.from(t.rows).flatMap((e) => {
|
|
224
|
+
let t = e.dataset.rowId, n = Array.from(e.cells).find((e) => e.dataset.recordLabel !== void 0);
|
|
225
|
+
if (t === void 0 || n === void 0 || n.closest(q) !== null || !n.checkVisibility({ visibilityProperty: !0 }) || n.querySelector("[data-agent-secret], [data-agent-hidden]") !== null) return [];
|
|
226
|
+
let r = n.querySelector("[data-row-action][aria-label]") ?? n.querySelector("[data-record-text]");
|
|
227
|
+
if (r !== null && (r.closest(q) !== null || !r.checkVisibility({ visibilityProperty: !0 }))) return [];
|
|
228
|
+
let i = r?.getAttribute("aria-label") ?? r?.textContent.trim();
|
|
229
|
+
return [{
|
|
230
|
+
value: t,
|
|
231
|
+
label: i === void 0 || i.length === 0 ? t : i
|
|
232
|
+
}];
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
var be = N({
|
|
236
|
+
name: "collection-results",
|
|
237
|
+
options: {
|
|
238
|
+
status: "string",
|
|
239
|
+
sort: "value",
|
|
240
|
+
pagination: "value",
|
|
241
|
+
captionElement: "value",
|
|
242
|
+
isPlaceholder: "boolean"
|
|
243
|
+
},
|
|
244
|
+
state: K,
|
|
245
|
+
sync: K,
|
|
246
|
+
controlled: [
|
|
247
|
+
"status",
|
|
248
|
+
"sort",
|
|
249
|
+
"page",
|
|
250
|
+
"hasPreviousPage",
|
|
251
|
+
"hasNextPage"
|
|
252
|
+
],
|
|
253
|
+
api: ({ options: e }) => ({ records: () => ye(e().captionElement.current) }),
|
|
254
|
+
agent: {
|
|
255
|
+
actions: [],
|
|
256
|
+
items: (e) => e.records(),
|
|
257
|
+
shown: (e) => !e.isPlaceholder
|
|
258
|
+
},
|
|
259
|
+
slots: (e) => ({ root: e({}) })
|
|
260
|
+
}), xe = _(be, { root: "caption" }).Root;
|
|
261
|
+
function Se({ recordId: e, collection: t }) {
|
|
262
|
+
return {
|
|
263
|
+
recordId: e,
|
|
264
|
+
collection: t
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
var Ce = N({
|
|
268
|
+
name: "collection-record",
|
|
269
|
+
options: {
|
|
270
|
+
recordId: "string",
|
|
271
|
+
collection: "string"
|
|
272
|
+
},
|
|
273
|
+
state: Se,
|
|
274
|
+
sync: Se,
|
|
275
|
+
controlled: ["recordId", "collection"],
|
|
276
|
+
api: () => ({}),
|
|
277
|
+
slots: (e) => ({ root: e({}) })
|
|
278
|
+
}), J = _(Ce, { root: "a" }).Root, we = _(Ce, { root: "button" }).Root, Y = {
|
|
208
279
|
search: {
|
|
209
280
|
kzqmXN: "xh8yej3",
|
|
210
281
|
k1K539: "x1kk91vl",
|
|
@@ -227,12 +298,12 @@ var K = {
|
|
|
227
298
|
kMwMTN: "xr5kp14",
|
|
228
299
|
$$css: !0
|
|
229
300
|
}
|
|
230
|
-
},
|
|
231
|
-
positive:
|
|
232
|
-
negative:
|
|
233
|
-
warning:
|
|
301
|
+
}, X = {
|
|
302
|
+
positive: Y.positive,
|
|
303
|
+
negative: Y.negative,
|
|
304
|
+
warning: Y.warning,
|
|
234
305
|
neutral: void 0
|
|
235
|
-
},
|
|
306
|
+
}, Te = /* @__PURE__ */ new Set([
|
|
236
307
|
"Home",
|
|
237
308
|
"End",
|
|
238
309
|
"ArrowLeft",
|
|
@@ -240,17 +311,17 @@ var K = {
|
|
|
240
311
|
"Backspace",
|
|
241
312
|
"Delete"
|
|
242
313
|
]);
|
|
243
|
-
function
|
|
314
|
+
function Ee({ option: e }) {
|
|
244
315
|
return /* @__PURE__ */ O("span", {
|
|
245
|
-
...
|
|
246
|
-
children: e.icon ?? /* @__PURE__ */ O(
|
|
316
|
+
...h.props(Y.icon, X[e.tone ?? "neutral"]),
|
|
317
|
+
children: e.icon ?? /* @__PURE__ */ O(ce, {
|
|
247
318
|
size: 14,
|
|
248
319
|
"aria-hidden": !0
|
|
249
320
|
})
|
|
250
321
|
});
|
|
251
322
|
}
|
|
252
|
-
function
|
|
253
|
-
let [n, i] =
|
|
323
|
+
function De({ groups: t }) {
|
|
324
|
+
let [n, i] = T(""), a = t.filter((e) => e.label.toLowerCase().includes(n.toLowerCase())), o = t.length === 1 && t[0] !== void 0 ? `Filter by ${t[0].label.toLowerCase()}` : "Filters";
|
|
254
325
|
return /* @__PURE__ */ k(c.Root, {
|
|
255
326
|
onOpenChange: (e) => {
|
|
256
327
|
e || i("");
|
|
@@ -260,19 +331,19 @@ function J({ groups: t }) {
|
|
|
260
331
|
"aria-label": o,
|
|
261
332
|
title: "Filters"
|
|
262
333
|
}),
|
|
263
|
-
children: /* @__PURE__ */ O(
|
|
334
|
+
children: /* @__PURE__ */ O(le, {
|
|
264
335
|
size: 14,
|
|
265
336
|
"aria-hidden": !0
|
|
266
337
|
})
|
|
267
338
|
}), /* @__PURE__ */ k(c.Popup, {
|
|
268
339
|
align: "end",
|
|
269
340
|
children: [
|
|
270
|
-
/* @__PURE__ */ O(
|
|
341
|
+
/* @__PURE__ */ O(Z, {
|
|
271
342
|
label: "Find a filter",
|
|
272
343
|
value: n,
|
|
273
344
|
onChange: i
|
|
274
345
|
}),
|
|
275
|
-
a.map((e) => /* @__PURE__ */ O(
|
|
346
|
+
a.map((e) => /* @__PURE__ */ O(Oe, { group: e }, e.id)),
|
|
276
347
|
a.length === 0 && /* @__PURE__ */ O("div", {
|
|
277
348
|
className: "x1hmw7ec x5g2kb4",
|
|
278
349
|
children: /* @__PURE__ */ O(r, { children: "No filters found" })
|
|
@@ -281,8 +352,8 @@ function J({ groups: t }) {
|
|
|
281
352
|
})]
|
|
282
353
|
});
|
|
283
354
|
}
|
|
284
|
-
function
|
|
285
|
-
return /* @__PURE__ */ O(
|
|
355
|
+
function Z({ label: e, value: t, onChange: n }) {
|
|
356
|
+
return /* @__PURE__ */ O(m, {
|
|
286
357
|
type: "search",
|
|
287
358
|
"aria-label": e,
|
|
288
359
|
placeholder: "Filter…",
|
|
@@ -290,19 +361,19 @@ function Y({ label: e, value: t, onChange: n }) {
|
|
|
290
361
|
value: t,
|
|
291
362
|
onValueChange: n,
|
|
292
363
|
onKeyDown: (e) => {
|
|
293
|
-
(e.key.length === 1 ||
|
|
364
|
+
(e.key.length === 1 || Te.has(e.key)) && e.stopPropagation();
|
|
294
365
|
},
|
|
295
|
-
xstyle:
|
|
366
|
+
xstyle: Y.search
|
|
296
367
|
});
|
|
297
368
|
}
|
|
298
|
-
function
|
|
299
|
-
let [t, n] =
|
|
369
|
+
function Oe({ group: e }) {
|
|
370
|
+
let [t, n] = T(""), i = e.options.filter((e) => e.label.toLowerCase().includes(t.toLowerCase()));
|
|
300
371
|
return /* @__PURE__ */ k(c.SubmenuRoot, {
|
|
301
372
|
onOpenChange: (e) => {
|
|
302
373
|
e || n("");
|
|
303
374
|
},
|
|
304
375
|
children: [/* @__PURE__ */ k(c.SubmenuTrigger, { children: [
|
|
305
|
-
e.icon ?? /* @__PURE__ */ O(
|
|
376
|
+
e.icon ?? /* @__PURE__ */ O(le, {
|
|
306
377
|
size: 14,
|
|
307
378
|
"aria-hidden": !0
|
|
308
379
|
}),
|
|
@@ -322,7 +393,7 @@ function X({ group: e }) {
|
|
|
322
393
|
align: "start",
|
|
323
394
|
"aria-label": e.label,
|
|
324
395
|
children: [
|
|
325
|
-
/* @__PURE__ */ O(
|
|
396
|
+
/* @__PURE__ */ O(Z, {
|
|
326
397
|
label: `Find ${e.label.toLowerCase()}`,
|
|
327
398
|
value: t,
|
|
328
399
|
onChange: n
|
|
@@ -333,7 +404,7 @@ function X({ group: e }) {
|
|
|
333
404
|
children: i.map((e) => /* @__PURE__ */ k(c.RadioItem, {
|
|
334
405
|
value: e.value,
|
|
335
406
|
closeOnSelect: !0,
|
|
336
|
-
children: [/* @__PURE__ */ O(
|
|
407
|
+
children: [/* @__PURE__ */ O(Ee, { option: e }), /* @__PURE__ */ O("span", {
|
|
337
408
|
className: "x98rzlu xeuugli xj0a0fe",
|
|
338
409
|
children: e.label
|
|
339
410
|
})]
|
|
@@ -348,7 +419,7 @@ function X({ group: e }) {
|
|
|
348
419
|
});
|
|
349
420
|
}
|
|
350
421
|
// packages/collections/src/query-controls.tsx
|
|
351
|
-
function
|
|
422
|
+
function ke(e) {
|
|
352
423
|
return {
|
|
353
424
|
value: e.search?.value ?? "",
|
|
354
425
|
filters: e.selections,
|
|
@@ -356,7 +427,7 @@ function be(e) {
|
|
|
356
427
|
available: e.search !== void 0 || e.groups.length > 0
|
|
357
428
|
};
|
|
358
429
|
}
|
|
359
|
-
function
|
|
430
|
+
function Ae(e) {
|
|
360
431
|
let t = JSON.parse(e);
|
|
361
432
|
if (Array.isArray(t) && t.length === 2) {
|
|
362
433
|
let e = t[0], n = t[1];
|
|
@@ -364,7 +435,7 @@ function xe(e) {
|
|
|
364
435
|
}
|
|
365
436
|
throw Error("Select a listed filter option, or provide a filter ID and value.");
|
|
366
437
|
}
|
|
367
|
-
var
|
|
438
|
+
var je = N({
|
|
368
439
|
name: "collection-query",
|
|
369
440
|
options: {
|
|
370
441
|
search: "value",
|
|
@@ -372,8 +443,8 @@ var Se = me({
|
|
|
372
443
|
selections: "value",
|
|
373
444
|
isDisabled: "boolean"
|
|
374
445
|
},
|
|
375
|
-
state:
|
|
376
|
-
sync:
|
|
446
|
+
state: ke,
|
|
447
|
+
sync: ke,
|
|
377
448
|
controlled: ["value", "filters"],
|
|
378
449
|
api: ({ options: e }) => ({
|
|
379
450
|
get setQuery() {
|
|
@@ -390,7 +461,7 @@ var Se = me({
|
|
|
390
461
|
get setFilter() {
|
|
391
462
|
let { groups: t, isDisabled: n } = e();
|
|
392
463
|
return n || t.length === 0 ? null : (e, n) => {
|
|
393
|
-
let [r, i] = n === void 0 ?
|
|
464
|
+
let [r, i] = n === void 0 ? Ae(e) : [e, n], a = t.find((e) => e.id === r);
|
|
394
465
|
if (a === void 0 || !a.options.some((e) => e.value === i)) throw Error("Unknown filter or option. Choose one of the listed filter options.");
|
|
395
466
|
a.onChange(i);
|
|
396
467
|
};
|
|
@@ -412,99 +483,99 @@ var Se = me({
|
|
|
412
483
|
shown: (e) => e.available && !e.disabled
|
|
413
484
|
},
|
|
414
485
|
slots: (e) => ({ root: e({ attrs: () => ({ role: "group" }) }) })
|
|
415
|
-
}),
|
|
486
|
+
}), Me = _(je, { root: "div" }).Root, Ne = { input: {
|
|
416
487
|
k7Eaqz: "xeuugli",
|
|
417
488
|
kUk6DE: "x98rzlu",
|
|
418
489
|
$$css: !0
|
|
419
490
|
} };
|
|
420
|
-
function
|
|
421
|
-
let [d, f] =
|
|
422
|
-
|
|
423
|
-
d && !c && u && (
|
|
491
|
+
function Pe({ label: t = "Collection controls", search: n, filters: r = [], filterContent: i, chips: a = [], viewActions: o, display: s, isPlaceholder: c = !1, isReady: u }) {
|
|
492
|
+
let [d, f] = T(!1), [ee, p] = T(!1), te = w(null), h = w(null), g = w(null), _ = ie(() => Object.fromEntries(r.map((e) => [e.id, e.value])), [r]), v = c || !u, ne = n !== void 0 && (d || n.value.length > 0);
|
|
493
|
+
C(() => {
|
|
494
|
+
d && !c && u && (g.current?.focus(), g.current?.select());
|
|
424
495
|
}, [
|
|
425
496
|
d,
|
|
426
497
|
c,
|
|
427
498
|
u
|
|
428
499
|
]);
|
|
429
|
-
function
|
|
430
|
-
(
|
|
500
|
+
function b() {
|
|
501
|
+
(te.current ?? h.current?.querySelector("button"))?.focus();
|
|
431
502
|
}
|
|
432
|
-
function
|
|
433
|
-
n !== void 0 && !c && u && (
|
|
503
|
+
function x() {
|
|
504
|
+
n !== void 0 && !c && u && (g.current?.focus(), g.current?.select(), f(!0));
|
|
434
505
|
}
|
|
435
|
-
function
|
|
436
|
-
n?.onChange(""), f(!1),
|
|
506
|
+
function S() {
|
|
507
|
+
n?.onChange(""), f(!1), b();
|
|
437
508
|
}
|
|
438
509
|
function re(e) {
|
|
439
|
-
|
|
510
|
+
ne && !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(), S());
|
|
440
511
|
}
|
|
441
|
-
let
|
|
512
|
+
let E = r.filter((e) => e.value !== e.defaultValue).map((e) => ({
|
|
442
513
|
id: `filter:${e.id}`,
|
|
443
514
|
label: e.options.find((t) => t.value === e.value)?.label ?? e.value,
|
|
444
515
|
onRemove: () => e.onChange(e.defaultValue)
|
|
445
516
|
}));
|
|
446
|
-
for (let e of a)
|
|
517
|
+
for (let e of a) E.push({
|
|
447
518
|
...e,
|
|
448
519
|
id: `chip:${e.id}`
|
|
449
520
|
});
|
|
450
|
-
let
|
|
521
|
+
let D = i !== void 0 || r.length > 0, ae = y.toArray([o, s]).length > 0, oe = n !== void 0 || D || ae, se = n?.label ?? "Search this view", A = n?.placeholder ?? "Find in view…";
|
|
451
522
|
return {
|
|
452
|
-
openSearch:
|
|
523
|
+
openSearch: x,
|
|
453
524
|
onKeyDown: re,
|
|
454
|
-
actions: oe ? /* @__PURE__ */ k(
|
|
525
|
+
actions: oe ? /* @__PURE__ */ k(Me, {
|
|
455
526
|
search: n,
|
|
456
527
|
groups: r,
|
|
457
|
-
selections:
|
|
458
|
-
isDisabled:
|
|
459
|
-
ref:
|
|
528
|
+
selections: _,
|
|
529
|
+
isDisabled: v,
|
|
530
|
+
ref: h,
|
|
460
531
|
"aria-label": t,
|
|
461
|
-
"aria-hidden":
|
|
462
|
-
inert:
|
|
532
|
+
"aria-hidden": v,
|
|
533
|
+
inert: v,
|
|
463
534
|
className: "x78zum5 x6s0dn4 x1a02dak x13a6bvl x1hnptsi xeuugli x193iq5w",
|
|
464
535
|
children: [
|
|
465
536
|
n !== void 0 && /* @__PURE__ */ O(e, {
|
|
466
|
-
ref:
|
|
537
|
+
ref: te,
|
|
467
538
|
type: "button",
|
|
468
539
|
disabled: c,
|
|
469
540
|
"aria-label": "Find in view",
|
|
470
541
|
title: "Find in view",
|
|
471
542
|
"data-view-find-trigger": !0,
|
|
472
|
-
"aria-expanded":
|
|
473
|
-
onClick:
|
|
474
|
-
children: /* @__PURE__ */ O(
|
|
543
|
+
"aria-expanded": ne,
|
|
544
|
+
onClick: x,
|
|
545
|
+
children: /* @__PURE__ */ O(M, {
|
|
475
546
|
size: 14,
|
|
476
547
|
"aria-hidden": !0
|
|
477
548
|
})
|
|
478
549
|
}),
|
|
479
|
-
|
|
550
|
+
ne && /* @__PURE__ */ k("div", {
|
|
480
551
|
className: "x78zum5 x6s0dn4 xunmzkg xdl07me x193iq5w",
|
|
481
|
-
children: [/* @__PURE__ */ O(
|
|
482
|
-
ref:
|
|
552
|
+
children: [/* @__PURE__ */ O(m, {
|
|
553
|
+
ref: g,
|
|
483
554
|
type: "search",
|
|
484
555
|
disabled: c,
|
|
485
556
|
"data-view-find": !0,
|
|
486
|
-
"aria-label":
|
|
487
|
-
placeholder:
|
|
557
|
+
"aria-label": se,
|
|
558
|
+
placeholder: A,
|
|
488
559
|
value: n.value,
|
|
489
560
|
onValueChange: n.onChange,
|
|
490
561
|
onKeyDown: (e) => {
|
|
491
|
-
e.key === "Enter" && n.onSubmit !== void 0 && (e.preventDefault(), n.onSubmit()), e.key === "Escape" && (e.preventDefault(), e.stopPropagation(),
|
|
562
|
+
e.key === "Enter" && n.onSubmit !== void 0 && (e.preventDefault(), n.onSubmit()), e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), S());
|
|
492
563
|
},
|
|
493
|
-
xstyle:
|
|
564
|
+
xstyle: Ne.input
|
|
494
565
|
}), /* @__PURE__ */ O(e, {
|
|
495
566
|
type: "button",
|
|
496
567
|
variant: "ghost",
|
|
497
568
|
"data-view-find-close": !0,
|
|
498
569
|
"aria-label": "Close search",
|
|
499
570
|
title: "Close search (Esc)",
|
|
500
|
-
onClick:
|
|
501
|
-
children: /* @__PURE__ */ O(
|
|
571
|
+
onClick: S,
|
|
572
|
+
children: /* @__PURE__ */ O(de, {
|
|
502
573
|
size: 14,
|
|
503
574
|
"aria-hidden": !0
|
|
504
575
|
})
|
|
505
576
|
})]
|
|
506
577
|
}),
|
|
507
|
-
i === void 0 ? r.length > 0 ? /* @__PURE__ */ O(
|
|
578
|
+
i === void 0 ? r.length > 0 ? /* @__PURE__ */ O(De, { groups: r }) : null : /* @__PURE__ */ k(l.Root, {
|
|
508
579
|
open: ee,
|
|
509
580
|
onOpenChange: p,
|
|
510
581
|
children: [/* @__PURE__ */ O(l.Trigger, {
|
|
@@ -512,7 +583,7 @@ function Te({ label: t = "Collection controls", search: n, filters: r = [], filt
|
|
|
512
583
|
"aria-label": "Filters",
|
|
513
584
|
title: "Filters"
|
|
514
585
|
}),
|
|
515
|
-
children: /* @__PURE__ */ O(
|
|
586
|
+
children: /* @__PURE__ */ O(le, {
|
|
516
587
|
size: 14,
|
|
517
588
|
"aria-hidden": !0
|
|
518
589
|
})
|
|
@@ -526,22 +597,22 @@ function Te({ label: t = "Collection controls", search: n, filters: r = [], filt
|
|
|
526
597
|
s
|
|
527
598
|
]
|
|
528
599
|
}) : void 0,
|
|
529
|
-
chips:
|
|
530
|
-
"aria-hidden":
|
|
531
|
-
inert:
|
|
600
|
+
chips: E.length > 0 && /* @__PURE__ */ O("div", {
|
|
601
|
+
"aria-hidden": v,
|
|
602
|
+
inert: v,
|
|
532
603
|
className: "xjp7ctv",
|
|
533
|
-
children: /* @__PURE__ */ O(
|
|
534
|
-
filters:
|
|
604
|
+
children: /* @__PURE__ */ O(L, {
|
|
605
|
+
filters: E,
|
|
535
606
|
onRemove: (e) => {
|
|
536
|
-
|
|
607
|
+
b(), E.find((t) => t.id === e)?.onRemove();
|
|
537
608
|
}
|
|
538
609
|
})
|
|
539
610
|
})
|
|
540
611
|
};
|
|
541
612
|
}
|
|
542
613
|
// packages/collections/src/use-end-reached.ts
|
|
543
|
-
function
|
|
544
|
-
|
|
614
|
+
function Fe({ end: e, viewport: t, onEndReached: n, content: r }) {
|
|
615
|
+
S(() => {
|
|
545
616
|
if (n === void 0 || e.current === null) return;
|
|
546
617
|
let r = new IntersectionObserver((e) => {
|
|
547
618
|
e.some((e) => e.isIntersecting) && n();
|
|
@@ -555,11 +626,11 @@ function Ee({ end: e, viewport: t, onEndReached: n, content: r }) {
|
|
|
555
626
|
]);
|
|
556
627
|
}
|
|
557
628
|
// packages/collections/src/data-table.tsx
|
|
558
|
-
var
|
|
629
|
+
var Ie = F({}), Le = /* @__PURE__ */ new Set(["string", "number"]), Re = 76, ze = p.compactTable.slice(7), Be = /* @__PURE__ */ new Map([["ArrowUp", -1], ["ArrowDown", 1]]), Ve = {
|
|
559
630
|
kmVPX3: "x1717udv",
|
|
560
631
|
kMzoRj: "xc342km",
|
|
561
632
|
$$css: !0
|
|
562
|
-
},
|
|
633
|
+
}, Q = {
|
|
563
634
|
frame: {
|
|
564
635
|
k7Eaqz: "xeuugli",
|
|
565
636
|
kMv6JI: "x1hz01jw",
|
|
@@ -683,14 +754,14 @@ var De = ue({}), Oe = 76, ke = p.compactTable.slice(7), Ae = /* @__PURE__ */ new
|
|
|
683
754
|
$$css: !0
|
|
684
755
|
},
|
|
685
756
|
spacer: (e) => [
|
|
686
|
-
|
|
757
|
+
Ve,
|
|
687
758
|
{
|
|
688
759
|
kZKoxP: e == null ? e : "x16ye13r",
|
|
689
760
|
$$css: !0
|
|
690
761
|
},
|
|
691
762
|
{ "--x-height": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e) }
|
|
692
763
|
]
|
|
693
|
-
},
|
|
764
|
+
}, He = {
|
|
694
765
|
primary: {
|
|
695
766
|
minimumWidth: 240,
|
|
696
767
|
isFlexible: !0,
|
|
@@ -721,49 +792,49 @@ var De = ue({}), Oe = 76, ke = p.compactTable.slice(7), Ae = /* @__PURE__ */ new
|
|
|
721
792
|
isFlexible: !1,
|
|
722
793
|
shouldTruncate: !1
|
|
723
794
|
}
|
|
724
|
-
},
|
|
725
|
-
fixed:
|
|
726
|
-
content:
|
|
727
|
-
},
|
|
728
|
-
primary:
|
|
729
|
-
text:
|
|
730
|
-
status:
|
|
731
|
-
number:
|
|
732
|
-
timestamp:
|
|
733
|
-
actions:
|
|
734
|
-
},
|
|
735
|
-
content:
|
|
736
|
-
fill:
|
|
737
|
-
},
|
|
738
|
-
content:
|
|
739
|
-
fill:
|
|
795
|
+
}, Ue = {
|
|
796
|
+
fixed: Q.content,
|
|
797
|
+
content: Q.contentCell
|
|
798
|
+
}, We = {
|
|
799
|
+
primary: Q.start,
|
|
800
|
+
text: Q.start,
|
|
801
|
+
status: Q.start,
|
|
802
|
+
number: Q.end,
|
|
803
|
+
timestamp: Q.end,
|
|
804
|
+
actions: Q.end
|
|
805
|
+
}, Ge = {
|
|
806
|
+
content: Q.content,
|
|
807
|
+
fill: Q.fillFrame
|
|
808
|
+
}, Ke = {
|
|
809
|
+
content: Q.content,
|
|
810
|
+
fill: Q.fillViewport
|
|
740
811
|
};
|
|
741
|
-
function
|
|
812
|
+
function qe(e) {
|
|
742
813
|
return e.map((e) => {
|
|
743
|
-
let t =
|
|
814
|
+
let t = He[e.role], n = e.width ?? (t.isFlexible ? void 0 : t.minimumWidth);
|
|
744
815
|
return {
|
|
745
816
|
...e,
|
|
746
817
|
...n === void 0 ? {} : { width: n }
|
|
747
818
|
};
|
|
748
819
|
});
|
|
749
820
|
}
|
|
750
|
-
function
|
|
821
|
+
function Je(e, t = 0) {
|
|
751
822
|
return {
|
|
752
|
-
minimumWidth: e.reduce((e, t) => e + (t.width ??
|
|
753
|
-
compactWidth: e.filter((e) => e.isSecondary !== !0).reduce((e, t) => e + (t.width ??
|
|
823
|
+
minimumWidth: e.reduce((e, t) => e + (t.width ?? He[t.role].minimumWidth), t),
|
|
824
|
+
compactWidth: e.filter((e) => e.isSecondary !== !0).reduce((e, t) => e + (t.width ?? He[t.role].minimumWidth), t)
|
|
754
825
|
};
|
|
755
826
|
}
|
|
756
|
-
function
|
|
757
|
-
let t = globalThis.matchMedia(
|
|
827
|
+
function Ye(e) {
|
|
828
|
+
let t = globalThis.matchMedia(ze);
|
|
758
829
|
return t.addEventListener("change", e), () => t.removeEventListener("change", e);
|
|
759
830
|
}
|
|
760
|
-
function
|
|
761
|
-
return globalThis.matchMedia(
|
|
831
|
+
function Xe() {
|
|
832
|
+
return globalThis.matchMedia(ze).matches;
|
|
762
833
|
}
|
|
763
|
-
function
|
|
764
|
-
return /* @__PURE__ */ k("colgroup", { children: [t && /* @__PURE__ */ O("col", { className: "x1d7z9mz xeuugli x1dc62k6" }), e.map((e) => /* @__PURE__ */ O("col", { ...
|
|
834
|
+
function Ze({ columns: e, canSelect: t = !1 }) {
|
|
835
|
+
return /* @__PURE__ */ k("colgroup", { children: [t && /* @__PURE__ */ O("col", { className: "x1d7z9mz xeuugli x1dc62k6" }), e.map((e) => /* @__PURE__ */ O("col", { ...h.props(e.width !== void 0 && Q.width(e.width), e.isSecondary === !0 && Q.secondary) }, e.id))] });
|
|
765
836
|
}
|
|
766
|
-
function
|
|
837
|
+
function Qe({ columns: e, rows: t = 3, hideCaption: n = !0, ...r }) {
|
|
767
838
|
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 }) => ({
|
|
768
839
|
...t,
|
|
769
840
|
cell: () => e ?? /* @__PURE__ */ O(d, { width: "60%" })
|
|
@@ -771,10 +842,11 @@ function Ve({ columns: e, rows: t = 3, hideCaption: n = !0, ...r }) {
|
|
|
771
842
|
return /* @__PURE__ */ O("div", {
|
|
772
843
|
"aria-hidden": !0,
|
|
773
844
|
inert: !0,
|
|
774
|
-
...
|
|
775
|
-
children: /* @__PURE__ */ O(
|
|
845
|
+
...h.props(Ge[i], Q.placeholder),
|
|
846
|
+
children: /* @__PURE__ */ O(ot, {
|
|
776
847
|
...r,
|
|
777
848
|
hideCaption: n,
|
|
849
|
+
isPlaceholder: !0,
|
|
778
850
|
rows: a,
|
|
779
851
|
getRowId: (e) => e.id,
|
|
780
852
|
columns: o,
|
|
@@ -782,8 +854,8 @@ function Ve({ columns: e, rows: t = 3, hideCaption: n = !0, ...r }) {
|
|
|
782
854
|
})
|
|
783
855
|
});
|
|
784
856
|
}
|
|
785
|
-
function
|
|
786
|
-
let r =
|
|
857
|
+
function $e({ children: e, leading: t, isDecorative: n = !1 }) {
|
|
858
|
+
let r = y.toArray(t).length > 0;
|
|
787
859
|
return /* @__PURE__ */ k("span", {
|
|
788
860
|
"aria-hidden": n || void 0,
|
|
789
861
|
inert: n || void 0,
|
|
@@ -798,13 +870,14 @@ function He({ children: e, leading: t, isDecorative: n = !1 }) {
|
|
|
798
870
|
})]
|
|
799
871
|
});
|
|
800
872
|
}
|
|
801
|
-
function
|
|
802
|
-
let i =
|
|
803
|
-
return /* @__PURE__ */ k(
|
|
873
|
+
function et({ children: e, secondary: t, leading: n, trailing: r }) {
|
|
874
|
+
let i = y.toArray(r).length > 0;
|
|
875
|
+
return /* @__PURE__ */ k($e, {
|
|
804
876
|
leading: n,
|
|
805
877
|
children: [/* @__PURE__ */ k("span", {
|
|
806
878
|
className: "x78zum5 x6s0dn4 x1hnptsi xeuugli",
|
|
807
879
|
children: [/* @__PURE__ */ O("span", {
|
|
880
|
+
"data-record-text": !0,
|
|
808
881
|
title: e,
|
|
809
882
|
className: "x1lliihq xeuugli x14atkfc xs83m0k xb3r6kr xuxw1ft xlyipyv",
|
|
810
883
|
children: e
|
|
@@ -819,8 +892,8 @@ function Ue({ children: e, secondary: t, leading: n, trailing: r }) {
|
|
|
819
892
|
})]
|
|
820
893
|
});
|
|
821
894
|
}
|
|
822
|
-
function
|
|
823
|
-
return /* @__PURE__ */ k(
|
|
895
|
+
function tt({ leading: e, isSecondary: t = !1 }) {
|
|
896
|
+
return /* @__PURE__ */ k($e, {
|
|
824
897
|
leading: e,
|
|
825
898
|
isDecorative: !0,
|
|
826
899
|
children: [/* @__PURE__ */ O("span", {
|
|
@@ -832,35 +905,35 @@ function We({ leading: e, isSecondary: t = !1 }) {
|
|
|
832
905
|
})]
|
|
833
906
|
});
|
|
834
907
|
}
|
|
835
|
-
function
|
|
908
|
+
function nt({ query: e, ...t }) {
|
|
836
909
|
switch (e.mode) {
|
|
837
910
|
case "local":
|
|
838
|
-
if (t.onEndReached !== void 0) throw Error("Local table queries require all rows. Use a controlled or frame query for a paged source.");
|
|
839
|
-
return /* @__PURE__ */ O(
|
|
911
|
+
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.");
|
|
912
|
+
return /* @__PURE__ */ O(it, {
|
|
840
913
|
query: e,
|
|
841
914
|
table: t
|
|
842
915
|
});
|
|
843
|
-
case "controlled": return /* @__PURE__ */ O(
|
|
916
|
+
case "controlled": return /* @__PURE__ */ O(at, {
|
|
844
917
|
table: {
|
|
845
918
|
...t,
|
|
846
919
|
filteredEmpty: t.filteredEmpty ?? t.empty
|
|
847
920
|
},
|
|
848
|
-
...
|
|
921
|
+
...ve(e)
|
|
849
922
|
});
|
|
850
|
-
case "frame": return /* @__PURE__ */ O(
|
|
851
|
-
case "static": return
|
|
923
|
+
case "frame": return /* @__PURE__ */ O(rt, { table: t });
|
|
924
|
+
case "static": return B(e), /* @__PURE__ */ O(V, { children: /* @__PURE__ */ O(ot, { ...t }) });
|
|
852
925
|
}
|
|
853
926
|
}
|
|
854
|
-
function
|
|
855
|
-
let t =
|
|
856
|
-
return /* @__PURE__ */ O(
|
|
927
|
+
function rt({ table: e }) {
|
|
928
|
+
let t = G();
|
|
929
|
+
return /* @__PURE__ */ O(V, { children: /* @__PURE__ */ O(ot, {
|
|
857
930
|
...e,
|
|
858
931
|
empty: t ? e.filteredEmpty ?? "No matching records." : e.empty
|
|
859
932
|
}) });
|
|
860
933
|
}
|
|
861
|
-
function
|
|
862
|
-
let { rows: n, search: r, filters: i, isFiltered: a } =
|
|
863
|
-
return /* @__PURE__ */ O(
|
|
934
|
+
function it({ query: e, table: t }) {
|
|
935
|
+
let { rows: n, search: r, filters: i, isFiltered: a } = W(t.rows, e);
|
|
936
|
+
return /* @__PURE__ */ O(at, {
|
|
864
937
|
table: {
|
|
865
938
|
...t,
|
|
866
939
|
rows: n
|
|
@@ -870,13 +943,13 @@ function qe({ query: e, table: t }) {
|
|
|
870
943
|
isFiltered: a
|
|
871
944
|
});
|
|
872
945
|
}
|
|
873
|
-
function
|
|
874
|
-
let i =
|
|
946
|
+
function at({ table: e, search: t, filters: n, isFiltered: r }) {
|
|
947
|
+
let i = Pe({
|
|
875
948
|
...t !== void 0 && { search: t },
|
|
876
949
|
filters: n,
|
|
877
950
|
isReady: !0,
|
|
878
951
|
label: e.caption
|
|
879
|
-
}), a =
|
|
952
|
+
}), a = w(null), o = {
|
|
880
953
|
description: `Find in ${e.caption}`,
|
|
881
954
|
layer: a,
|
|
882
955
|
when: () => {
|
|
@@ -886,68 +959,68 @@ function Je({ table: e, search: t, filters: n, isFiltered: r }) {
|
|
|
886
959
|
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;
|
|
887
960
|
}
|
|
888
961
|
};
|
|
889
|
-
return
|
|
962
|
+
return P(t === void 0 ? null : "/", i.openSearch, o), P(t === void 0 ? null : "mod+f", i.openSearch, o), /* @__PURE__ */ O(V, { children: /* @__PURE__ */ k("div", {
|
|
890
963
|
ref: a,
|
|
891
964
|
"data-table-query": !0,
|
|
892
965
|
onKeyDown: i.onKeyDown,
|
|
893
|
-
...
|
|
894
|
-
children: [(t !== void 0 || n.length > 0) && /* @__PURE__ */ O(
|
|
966
|
+
...h.props(Ge[typeof e.window?.height == "string" ? e.window.height : "content"]),
|
|
967
|
+
children: [(t !== void 0 || n.length > 0) && /* @__PURE__ */ O(I, {
|
|
895
968
|
label: `${e.caption} controls`,
|
|
896
969
|
actions: i.actions,
|
|
897
970
|
children: i.chips
|
|
898
|
-
}), /* @__PURE__ */ O(
|
|
971
|
+
}), /* @__PURE__ */ O(ot, {
|
|
899
972
|
...e,
|
|
900
973
|
empty: r ? e.filteredEmpty ?? "No matching records." : e.empty
|
|
901
974
|
})]
|
|
902
975
|
}) });
|
|
903
976
|
}
|
|
904
|
-
function
|
|
905
|
-
let M =
|
|
906
|
-
let e =
|
|
977
|
+
function ot({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: a, onSortChange: s, selectedIds: c, onSelectionChange: l, selectionLabel: u, rowAction: d, activeRowId: p, focusRowId: m, onRowHighlightChange: _, hideCaption: v = !1, hideHeaders: y = !1, rowSizing: b = "fixed", window: x, endContent: re, onEndReached: D, footer: A, pagination: j, resultStatus: ce = "ready", isPlaceholder: le = !1 }) {
|
|
978
|
+
let M = ie(() => qe(t), [t]), ue = E(Ye, Xe, () => !1), de = ie(() => {
|
|
979
|
+
let e = fe();
|
|
907
980
|
return e.columns(M.map((t) => e.display({
|
|
908
981
|
id: t.id,
|
|
909
982
|
header: t.label
|
|
910
983
|
})));
|
|
911
|
-
}, [M]),
|
|
912
|
-
features:
|
|
913
|
-
columns:
|
|
984
|
+
}, [M]), N = pe({
|
|
985
|
+
features: Ie,
|
|
986
|
+
columns: de,
|
|
914
987
|
data: e,
|
|
915
988
|
getRowId: n
|
|
916
|
-
}), P =
|
|
917
|
-
|
|
918
|
-
end:
|
|
919
|
-
onEndReached:
|
|
989
|
+
}), P = te(), F = P.viewport, ge = w(null), I = w(null), L = w(null), [R, z] = T(0), [B, V] = T(), [H, U] = T(), W = w(void 0), G = w(void 0), ve = w(void 0), K = e.findIndex((e) => n(e) === B), q = M.findIndex((e) => e.role === "primary" && e.isSecondary !== !0), ye = q === -1 ? M.findIndex((e) => e.isSecondary !== !0) : q, be = typeof x?.height == "string" ? x.height : "content", Se = new Set(e.map(n)), Ce = B !== void 0 && Se.has(B) ? B : void 0;
|
|
990
|
+
B !== void 0 && Ce === void 0 && V(void 0), Fe({
|
|
991
|
+
end: ge,
|
|
992
|
+
onEndReached: x === void 0 ? D : void 0,
|
|
920
993
|
content: e.length
|
|
921
|
-
}),
|
|
922
|
-
let e =
|
|
923
|
-
if (
|
|
924
|
-
let n = new ResizeObserver(() =>
|
|
994
|
+
}), S(() => {
|
|
995
|
+
let e = I.current, t = L.current;
|
|
996
|
+
if (x === void 0 || e === null || t === null) return;
|
|
997
|
+
let n = new ResizeObserver(() => z(e.offsetHeight + t.offsetHeight));
|
|
925
998
|
return n.observe(e), n.observe(t), () => n.disconnect();
|
|
926
999
|
}, [
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
1000
|
+
x,
|
|
1001
|
+
v,
|
|
1002
|
+
y
|
|
930
1003
|
]);
|
|
931
|
-
let
|
|
1004
|
+
let J = he({
|
|
932
1005
|
count: e.length,
|
|
933
|
-
enabled:
|
|
1006
|
+
enabled: x !== void 0,
|
|
934
1007
|
getScrollElement: () => F.current,
|
|
935
1008
|
getItemKey: (t) => {
|
|
936
1009
|
let r = e[t];
|
|
937
1010
|
if (r === void 0) throw RangeError("The virtual row is outside the supplied table page.");
|
|
938
1011
|
return n(r);
|
|
939
1012
|
},
|
|
940
|
-
estimateSize: () =>
|
|
941
|
-
scrollMargin:
|
|
942
|
-
scrollPaddingStart:
|
|
1013
|
+
estimateSize: () => b === "fixed" ? ee.rowHeight : x?.estimatedRowHeight ?? ee.rowHeight,
|
|
1014
|
+
scrollMargin: R,
|
|
1015
|
+
scrollPaddingStart: R,
|
|
943
1016
|
overscan: 6,
|
|
944
1017
|
rangeExtractor: (t) => {
|
|
945
|
-
let n =
|
|
946
|
-
if (
|
|
1018
|
+
let n = me(t);
|
|
1019
|
+
if (K === -1) return n;
|
|
947
1020
|
let r = [
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
1021
|
+
K - 1,
|
|
1022
|
+
K,
|
|
1023
|
+
K + 1
|
|
951
1024
|
].filter((t) => t >= 0 && t < e.length), i = n[0] ?? 0, a = n.at(-1) ?? -1;
|
|
952
1025
|
return [
|
|
953
1026
|
...r.filter((e) => e < i),
|
|
@@ -955,111 +1028,118 @@ function Ye({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: a, o
|
|
|
955
1028
|
...r.filter((e) => e > a)
|
|
956
1029
|
];
|
|
957
1030
|
}
|
|
958
|
-
}),
|
|
1031
|
+
}), we = x === void 0 ? N.getRowModel().rows.map((e, t) => ({
|
|
959
1032
|
row: e,
|
|
960
1033
|
index: t,
|
|
961
1034
|
spacerHeight: 0
|
|
962
|
-
})) :
|
|
963
|
-
let r =
|
|
1035
|
+
})) : J.getVirtualItems().flatMap((e, t, n) => {
|
|
1036
|
+
let r = N.getRowModel().rows[e.index];
|
|
964
1037
|
return r === void 0 ? [] : [{
|
|
965
1038
|
row: r,
|
|
966
1039
|
index: e.index,
|
|
967
|
-
spacerHeight: e.start - (n[t - 1]?.end ??
|
|
1040
|
+
spacerHeight: e.start - (n[t - 1]?.end ?? R)
|
|
968
1041
|
}];
|
|
969
|
-
}), Y =
|
|
970
|
-
|
|
971
|
-
if (
|
|
972
|
-
|
|
1042
|
+
}), Y = we.some(({ row: e }) => e.id === H) ? H : void 0, X = Y ?? Ce;
|
|
1043
|
+
H !== void 0 && Y === void 0 && U(void 0), S(() => {
|
|
1044
|
+
if (_ === void 0) {
|
|
1045
|
+
W.current = void 0;
|
|
973
1046
|
return;
|
|
974
1047
|
}
|
|
975
|
-
if (
|
|
1048
|
+
if (W.current !== void 0 && W.current.id === X) return;
|
|
976
1049
|
let e = { isCurrent: !0 };
|
|
977
1050
|
return queueMicrotask(() => {
|
|
978
|
-
e.isCurrent && (
|
|
1051
|
+
e.isCurrent && (W.current = { id: X }, _(X));
|
|
979
1052
|
}), () => {
|
|
980
1053
|
e.isCurrent = !1;
|
|
981
1054
|
};
|
|
982
|
-
}, [X,
|
|
983
|
-
let
|
|
984
|
-
|
|
985
|
-
if (
|
|
986
|
-
|
|
1055
|
+
}, [X, _]);
|
|
1056
|
+
let Te = we.some(({ row: e }) => e.id === m);
|
|
1057
|
+
C(() => {
|
|
1058
|
+
if (m === void 0) {
|
|
1059
|
+
ve.current = void 0;
|
|
987
1060
|
return;
|
|
988
1061
|
}
|
|
989
|
-
if (
|
|
990
|
-
if (!
|
|
991
|
-
let t = e.findIndex((e) => n(e) ===
|
|
992
|
-
t !== -1 &&
|
|
1062
|
+
if (ve.current === m) return;
|
|
1063
|
+
if (!Te && x !== void 0) {
|
|
1064
|
+
let t = e.findIndex((e) => n(e) === m);
|
|
1065
|
+
t !== -1 && J.scrollToIndex(t, { align: "auto" });
|
|
993
1066
|
return;
|
|
994
1067
|
}
|
|
995
|
-
let t = F.current?.querySelector(`[data-row-id="${CSS.escape(
|
|
1068
|
+
let t = F.current?.querySelector(`[data-row-id="${CSS.escape(m)}"] [data-row-action]`);
|
|
996
1069
|
if (t == null || t.matches(":disabled")) return;
|
|
997
1070
|
let r = requestAnimationFrame(() => {
|
|
998
|
-
t.focus({ preventScroll: !0 }), document.activeElement === t && (
|
|
1071
|
+
t.focus({ preventScroll: !0 }), document.activeElement === t && (ve.current = m);
|
|
999
1072
|
});
|
|
1000
1073
|
return () => cancelAnimationFrame(r);
|
|
1001
1074
|
}, [
|
|
1002
1075
|
e,
|
|
1003
|
-
|
|
1076
|
+
m,
|
|
1004
1077
|
d?.disabled,
|
|
1005
|
-
|
|
1006
|
-
|
|
1078
|
+
Te,
|
|
1079
|
+
x,
|
|
1007
1080
|
n,
|
|
1008
1081
|
F,
|
|
1009
|
-
|
|
1082
|
+
J
|
|
1010
1083
|
]);
|
|
1011
|
-
let
|
|
1012
|
-
|
|
1013
|
-
|
|
1084
|
+
let Ee = x !== void 0 && (e.length === 0 || J.range?.endIndex === e.length - 1);
|
|
1085
|
+
S(() => {
|
|
1086
|
+
Ee && D?.();
|
|
1014
1087
|
}, [
|
|
1015
|
-
|
|
1016
|
-
|
|
1088
|
+
Ee,
|
|
1089
|
+
D,
|
|
1017
1090
|
e.length
|
|
1018
|
-
]),
|
|
1019
|
-
if (
|
|
1020
|
-
let e = Array.from(F.current?.querySelectorAll("[data-row-id]") ?? []).find((e) => e.dataset.rowId ===
|
|
1021
|
-
e != null && (e.focus({ preventScroll:
|
|
1091
|
+
]), C(() => {
|
|
1092
|
+
if (G.current === void 0) return;
|
|
1093
|
+
let e = Array.from(F.current?.querySelectorAll("[data-row-id]") ?? []).find((e) => e.dataset.rowId === G.current)?.querySelector("[data-row-action]");
|
|
1094
|
+
e != null && (e.focus({ preventScroll: x !== void 0 }), G.current = void 0);
|
|
1022
1095
|
});
|
|
1023
|
-
function
|
|
1096
|
+
function De(t, r) {
|
|
1024
1097
|
let i = t.metaKey || t.ctrlKey, a = t.altKey || t.shiftKey;
|
|
1025
1098
|
if (i || a) return;
|
|
1026
|
-
let o =
|
|
1099
|
+
let o = Be.get(t.key);
|
|
1027
1100
|
if (o === void 0) return;
|
|
1028
1101
|
t.preventDefault();
|
|
1029
1102
|
let s = r + o, c = e[s];
|
|
1030
|
-
c !== void 0 && (
|
|
1103
|
+
c !== void 0 && (G.current = n(c), V(G.current), x !== void 0 && J.scrollToIndex(s, { align: "auto" }));
|
|
1031
1104
|
}
|
|
1032
|
-
let
|
|
1105
|
+
let Z = M.filter((e) => !ue || e.isSecondary !== !0).length + (c === void 0 ? 0 : 1), Oe = c === void 0 ? 0 : Re, ke = A != null && typeof A != "boolean" || j !== void 0, { minimumWidth: Ae, compactWidth: je } = Je(M, Oe), Me = J.getTotalSize() - (J.getVirtualItems().at(-1)?.end ?? R) + R;
|
|
1033
1106
|
return /* @__PURE__ */ k("div", {
|
|
1034
|
-
...
|
|
1107
|
+
...h.props(Q.frame, Ge[be]),
|
|
1035
1108
|
children: [/* @__PURE__ */ k("div", {
|
|
1036
1109
|
ref: P.ref,
|
|
1037
1110
|
"data-table-viewport": !0,
|
|
1038
1111
|
role: "region",
|
|
1039
1112
|
"aria-label": r,
|
|
1040
1113
|
tabIndex: P.tabIndex,
|
|
1041
|
-
...
|
|
1114
|
+
...h.props(Q.viewport, Ke[be], typeof x?.height == "number" && Q.virtual(x.height)),
|
|
1042
1115
|
children: [/* @__PURE__ */ k("table", {
|
|
1043
|
-
"aria-
|
|
1044
|
-
|
|
1116
|
+
"aria-busy": ce === "pending" || void 0,
|
|
1117
|
+
"aria-rowcount": x === void 0 ? void 0 : Math.max(1, e.length) + 1,
|
|
1118
|
+
...h.props(Q.table, Q.fixed, Q.minimumWidth(Ae, je)),
|
|
1045
1119
|
children: [
|
|
1046
|
-
/* @__PURE__ */ O(
|
|
1047
|
-
ref:
|
|
1048
|
-
|
|
1120
|
+
/* @__PURE__ */ O(xe, {
|
|
1121
|
+
ref: I,
|
|
1122
|
+
captionElement: I,
|
|
1123
|
+
"aria-label": r,
|
|
1124
|
+
status: ce,
|
|
1125
|
+
sort: a,
|
|
1126
|
+
pagination: j,
|
|
1127
|
+
isPlaceholder: le,
|
|
1128
|
+
...h.props(Q.caption, v && f.hidden),
|
|
1049
1129
|
children: r
|
|
1050
1130
|
}),
|
|
1051
|
-
/* @__PURE__ */ O(
|
|
1131
|
+
/* @__PURE__ */ O(Ze, {
|
|
1052
1132
|
columns: M,
|
|
1053
1133
|
canSelect: c !== void 0
|
|
1054
1134
|
}),
|
|
1055
1135
|
/* @__PURE__ */ O("thead", {
|
|
1056
|
-
ref:
|
|
1057
|
-
...
|
|
1136
|
+
ref: L,
|
|
1137
|
+
...h.props(y && f.hidden),
|
|
1058
1138
|
children: /* @__PURE__ */ k("tr", { children: [c !== void 0 && /* @__PURE__ */ O("th", {
|
|
1059
1139
|
scope: "col",
|
|
1060
1140
|
className: "x9f619 x7wzq59 x13vifvy x11ru5tl x1krvmzm xt970qd xso031l x1q0q8m5 x1qndepd x153jb6y xpvm0e4 xj57cvi xy8obcc xas2l8k xuxw1ft x1d7z9mz xeuugli x1dc62k6",
|
|
1061
1141
|
children: /* @__PURE__ */ O("span", {
|
|
1062
|
-
...
|
|
1142
|
+
...h.props(f.hidden),
|
|
1063
1143
|
children: "Select"
|
|
1064
1144
|
})
|
|
1065
1145
|
}), M.map((e) => {
|
|
@@ -1068,9 +1148,10 @@ function Ye({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: a, o
|
|
|
1068
1148
|
scope: "col",
|
|
1069
1149
|
title: e.label,
|
|
1070
1150
|
"aria-sort": t,
|
|
1071
|
-
...
|
|
1072
|
-
children: e.canSort === !0 && s !== void 0 ? /* @__PURE__ */ k(
|
|
1151
|
+
...h.props(Q.header, We[e.role], e.width !== void 0 && Q.width(e.width), e.isSecondary === !0 && Q.secondary),
|
|
1152
|
+
children: e.canSort === !0 && s !== void 0 ? /* @__PURE__ */ k(g, {
|
|
1073
1153
|
type: "button",
|
|
1154
|
+
"aria-label": `Sort ${r} by ${e.label}`,
|
|
1074
1155
|
className: "x3nfvp2 x6s0dn4 x1hnptsi x193iq5w xeuugli x2zujid x17oiadl x1717udv xc342km x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x1ypdohk xp9636p x1s9zmfe x13qnu6 x9v5kkp x19rmrnh x7s97pk",
|
|
1075
1156
|
onClick: () => {
|
|
1076
1157
|
s(t === "ascending" ? {
|
|
@@ -1084,7 +1165,7 @@ function Ye({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: a, o
|
|
|
1084
1165
|
children: [/* @__PURE__ */ O("span", {
|
|
1085
1166
|
className: "x1lliihq xeuugli xb3r6kr xlyipyv xuxw1ft",
|
|
1086
1167
|
children: e.label
|
|
1087
|
-
}), O(t === "ascending" ?
|
|
1168
|
+
}), O(t === "ascending" ? oe : t === "descending" ? ae : se, {
|
|
1088
1169
|
size: 14,
|
|
1089
1170
|
"aria-hidden": "true",
|
|
1090
1171
|
className: "x2lah0s"
|
|
@@ -1097,37 +1178,37 @@ function Ye({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: a, o
|
|
|
1097
1178
|
})] })
|
|
1098
1179
|
}),
|
|
1099
1180
|
/* @__PURE__ */ k("tbody", {
|
|
1100
|
-
onPointerLeave: () =>
|
|
1101
|
-
onKeyDownCapture: () =>
|
|
1181
|
+
onPointerLeave: () => U(void 0),
|
|
1182
|
+
onKeyDownCapture: () => U(void 0),
|
|
1102
1183
|
onBlur: (e) => {
|
|
1103
|
-
e.currentTarget.contains(e.relatedTarget) ||
|
|
1184
|
+
e.currentTarget.contains(e.relatedTarget) || V(void 0);
|
|
1104
1185
|
},
|
|
1105
1186
|
children: [
|
|
1106
|
-
|
|
1187
|
+
we.map(({ row: e, index: t, spacerHeight: n }) => /* @__PURE__ */ k(ne, { children: [n > 0 && /* @__PURE__ */ O("tr", {
|
|
1107
1188
|
"aria-hidden": "true",
|
|
1108
1189
|
children: /* @__PURE__ */ O("td", {
|
|
1109
|
-
colSpan:
|
|
1110
|
-
...
|
|
1190
|
+
colSpan: Z,
|
|
1191
|
+
...h.props(Q.spacer(n))
|
|
1111
1192
|
})
|
|
1112
1193
|
}), /* @__PURE__ */ k("tr", {
|
|
1113
1194
|
"data-index": t,
|
|
1114
1195
|
"data-row-id": e.id,
|
|
1115
|
-
"aria-rowindex":
|
|
1116
|
-
ref:
|
|
1196
|
+
"aria-rowindex": x === void 0 ? void 0 : t + 2,
|
|
1197
|
+
ref: x === void 0 || b === "fixed" ? void 0 : J.measureElement,
|
|
1117
1198
|
onPointerMove: (t) => {
|
|
1118
|
-
t.pointerType === "mouse" &&
|
|
1199
|
+
t.pointerType === "mouse" && U(e.id);
|
|
1119
1200
|
},
|
|
1120
1201
|
onPointerEnter: (t) => {
|
|
1121
|
-
t.pointerType === "mouse" &&
|
|
1202
|
+
t.pointerType === "mouse" && U(e.id);
|
|
1122
1203
|
},
|
|
1123
1204
|
onPointerLeave: () => {
|
|
1124
|
-
|
|
1205
|
+
U((t) => t === e.id ? void 0 : t);
|
|
1125
1206
|
},
|
|
1126
1207
|
onPointerDown: (e) => {
|
|
1127
|
-
e.pointerType !== "mouse" &&
|
|
1208
|
+
e.pointerType !== "mouse" && U(void 0);
|
|
1128
1209
|
},
|
|
1129
1210
|
onFocus: () => {
|
|
1130
|
-
|
|
1211
|
+
U(void 0), V(e.id);
|
|
1131
1212
|
},
|
|
1132
1213
|
...{
|
|
1133
1214
|
0: { className: "x1n2onr6 xc8icb0 x1wtzb06 xso031l x1q0q8m5 x1qndepd x19k386i x1t1lzn6" },
|
|
@@ -1146,36 +1227,39 @@ function Ye({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: a, o
|
|
|
1146
1227
|
},
|
|
1147
1228
|
children: /* @__PURE__ */ O(o.Indicator, {})
|
|
1148
1229
|
})
|
|
1149
|
-
}), M.map((n,
|
|
1150
|
-
|
|
1151
|
-
|
|
1230
|
+
}), M.map((n, i) => /* @__PURE__ */ O("td", {
|
|
1231
|
+
"data-record-label": i === ye || void 0,
|
|
1232
|
+
...h.props(Q.cell, Ue[b], We[n.role], n.width !== void 0 && Q.width(n.width), n.isSecondary === !0 && Q.secondary),
|
|
1233
|
+
children: d !== void 0 && i === ye ? /* @__PURE__ */ O(lt, {
|
|
1234
|
+
recordId: e.id,
|
|
1235
|
+
collection: r,
|
|
1152
1236
|
row: e.original,
|
|
1153
1237
|
action: d,
|
|
1154
1238
|
isActive: p === e.id,
|
|
1155
|
-
onKeyDown: (e) =>
|
|
1156
|
-
children: /* @__PURE__ */ O(
|
|
1239
|
+
onKeyDown: (e) => De(e, t),
|
|
1240
|
+
children: /* @__PURE__ */ O(st, {
|
|
1157
1241
|
role: n.role,
|
|
1158
|
-
isFixed:
|
|
1242
|
+
isFixed: b === "fixed",
|
|
1159
1243
|
shouldTruncate: n.shouldTruncate,
|
|
1160
1244
|
children: n.cell(e.original)
|
|
1161
1245
|
})
|
|
1162
|
-
}) : /* @__PURE__ */ O(
|
|
1246
|
+
}) : /* @__PURE__ */ O(st, {
|
|
1163
1247
|
role: n.role,
|
|
1164
|
-
isFixed:
|
|
1248
|
+
isFixed: b === "fixed",
|
|
1165
1249
|
shouldTruncate: n.shouldTruncate,
|
|
1166
1250
|
children: n.cell(e.original)
|
|
1167
1251
|
})
|
|
1168
1252
|
}, n.id))]
|
|
1169
1253
|
})] }, e.id)),
|
|
1170
|
-
|
|
1254
|
+
x !== void 0 && Me > 0 && /* @__PURE__ */ O("tr", {
|
|
1171
1255
|
"aria-hidden": "true",
|
|
1172
1256
|
children: /* @__PURE__ */ O("td", {
|
|
1173
|
-
colSpan:
|
|
1174
|
-
...
|
|
1257
|
+
colSpan: Z,
|
|
1258
|
+
...h.props(Q.spacer(Me))
|
|
1175
1259
|
})
|
|
1176
1260
|
}),
|
|
1177
1261
|
e.length === 0 && /* @__PURE__ */ O("tr", { children: /* @__PURE__ */ O("td", {
|
|
1178
|
-
colSpan:
|
|
1262
|
+
colSpan: Z,
|
|
1179
1263
|
className: "x1717udv",
|
|
1180
1264
|
children: /* @__PURE__ */ O("div", {
|
|
1181
1265
|
className: "x9f619 x7wzq59 x1o0tod xzfn7dr x193iq5w x1ttojsm x2b8uid xeaf4i8 xj0a0fe x153jb6y",
|
|
@@ -1186,27 +1270,31 @@ function Ye({ rows: e, columns: t, getRowId: n, caption: r, empty: i, sort: a, o
|
|
|
1186
1270
|
})
|
|
1187
1271
|
]
|
|
1188
1272
|
}), /* @__PURE__ */ O("div", {
|
|
1189
|
-
ref:
|
|
1273
|
+
ref: ge,
|
|
1190
1274
|
...{
|
|
1191
1275
|
0: {},
|
|
1192
1276
|
1: { className: "xid9utz xg7ukam x153jb6y xy8obcc xas2l8k x15x95ik x1az1eml" }
|
|
1193
|
-
}[
|
|
1194
|
-
children:
|
|
1277
|
+
}[re !== void 0 | 0],
|
|
1278
|
+
children: re
|
|
1195
1279
|
})]
|
|
1196
|
-
}),
|
|
1280
|
+
}), ke && /* @__PURE__ */ k("div", {
|
|
1197
1281
|
className: "xg7ukam x178xt8z x13fuv20 xhjagg4",
|
|
1198
|
-
children: j
|
|
1282
|
+
children: [A, j !== void 0 && /* @__PURE__ */ O(_e, {
|
|
1283
|
+
...j,
|
|
1284
|
+
label: r
|
|
1285
|
+
})]
|
|
1199
1286
|
})]
|
|
1200
1287
|
});
|
|
1201
1288
|
}
|
|
1202
|
-
function
|
|
1203
|
-
let i =
|
|
1289
|
+
function st({ role: e, isFixed: t, shouldTruncate: n, children: r }) {
|
|
1290
|
+
let i = He[e], a = t && i.shouldTruncate, o = typeof r == "string" && (n ?? a);
|
|
1204
1291
|
return /* @__PURE__ */ O("span", {
|
|
1205
1292
|
...{
|
|
1206
1293
|
0: { className: "x78zum5 x6s0dn4 xeuugli xh8yej3 xw3im37" },
|
|
1207
1294
|
1: { className: "x78zum5 x6s0dn4 xeuugli xh8yej3 xt7dq6l" }
|
|
1208
1295
|
}[!t | 0],
|
|
1209
1296
|
children: /* @__PURE__ */ O("span", {
|
|
1297
|
+
"data-record-text": Le.has(typeof r) || void 0,
|
|
1210
1298
|
title: typeof r == "string" ? r : void 0,
|
|
1211
1299
|
...{
|
|
1212
1300
|
0: { className: "x1lliihq xeuugli xh8yej3 x193iq5w xkfz77 x1ljc890" },
|
|
@@ -1222,43 +1310,47 @@ function Xe({ role: e, isFixed: t, shouldTruncate: n, children: r }) {
|
|
|
1222
1310
|
})
|
|
1223
1311
|
});
|
|
1224
1312
|
}
|
|
1225
|
-
function
|
|
1313
|
+
function ct(e) {
|
|
1226
1314
|
if (e.defaultPrevented || e.button !== 0) return !1;
|
|
1227
1315
|
let t = e.metaKey || e.ctrlKey, n = e.altKey || e.shiftKey;
|
|
1228
1316
|
return t || n ? !1 : e.detail === 0 || e.currentTarget.ownerDocument.getSelection()?.isCollapsed !== !1;
|
|
1229
1317
|
}
|
|
1230
|
-
function
|
|
1231
|
-
let
|
|
1318
|
+
function lt({ collection: e, recordId: t, row: n, action: r, isActive: i, children: a, onKeyDown: o }) {
|
|
1319
|
+
let s = r.label?.(n), c = r.href === void 0 ? /* @__PURE__ */ O(we, {
|
|
1320
|
+
collection: e,
|
|
1321
|
+
recordId: t,
|
|
1232
1322
|
type: "button",
|
|
1233
|
-
disabled:
|
|
1234
|
-
"aria-label":
|
|
1235
|
-
"aria-pressed":
|
|
1323
|
+
disabled: r.disabled === !0,
|
|
1324
|
+
"aria-label": s,
|
|
1325
|
+
"aria-pressed": i,
|
|
1236
1326
|
"data-row-action": !0,
|
|
1237
|
-
onKeyDown:
|
|
1238
|
-
onClick: (
|
|
1239
|
-
|
|
1327
|
+
onKeyDown: o,
|
|
1328
|
+
onClick: (e) => {
|
|
1329
|
+
ct(e) && r.onActivate(n);
|
|
1240
1330
|
},
|
|
1241
1331
|
className: "x1rh3ycu x1hx0egp x78zum5 x6s0dn4 xh8yej3 xeuugli x17tes2r x17oiadl x1717udv xc342km x1ok0vyi x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x16tdsg8 x1hl2dhg x1ypdohk x1t137rt x1s928wv x1j6awrg xarstr8 x11q50lq xa2q2qx x1x5eltu x1jdy9wv xtgyt42 x19mxcj1",
|
|
1242
|
-
children:
|
|
1243
|
-
}) : /* @__PURE__ */ O(
|
|
1244
|
-
|
|
1245
|
-
|
|
1332
|
+
children: a
|
|
1333
|
+
}) : /* @__PURE__ */ O(J, {
|
|
1334
|
+
collection: e,
|
|
1335
|
+
recordId: t,
|
|
1336
|
+
href: r.href(n),
|
|
1337
|
+
"aria-label": s,
|
|
1246
1338
|
"data-row-action": !0,
|
|
1247
|
-
onKeyDown:
|
|
1248
|
-
onClick: (
|
|
1249
|
-
|
|
1339
|
+
onKeyDown: o,
|
|
1340
|
+
onClick: (e) => {
|
|
1341
|
+
r.onActivate !== void 0 && ct(e) && (e.preventDefault(), r.onActivate(n));
|
|
1250
1342
|
},
|
|
1251
1343
|
className: "x1rh3ycu x1hx0egp x78zum5 x6s0dn4 xh8yej3 xeuugli x17tes2r x17oiadl x1717udv xc342km x1ok0vyi x1heor9g xjbqb8w xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t x16tdsg8 x1hl2dhg x1ypdohk x1t137rt x1s928wv x1j6awrg xarstr8 x11q50lq xa2q2qx x1x5eltu x1jdy9wv xtgyt42 x19mxcj1",
|
|
1252
|
-
children:
|
|
1344
|
+
children: a
|
|
1253
1345
|
});
|
|
1254
|
-
return
|
|
1346
|
+
return s === void 0 ? c : /* @__PURE__ */ k(u.Root, { children: [/* @__PURE__ */ O(u.Trigger, { render: c }), /* @__PURE__ */ O(u.Popup, {
|
|
1255
1347
|
side: "top",
|
|
1256
1348
|
align: "start",
|
|
1257
|
-
children:
|
|
1349
|
+
children: s
|
|
1258
1350
|
})] });
|
|
1259
1351
|
}
|
|
1260
1352
|
// packages/collections/src/collection-scroll.tsx
|
|
1261
|
-
function
|
|
1353
|
+
function ut(e) {
|
|
1262
1354
|
switch (e.status) {
|
|
1263
1355
|
case "loading": return /* @__PURE__ */ O(n, {
|
|
1264
1356
|
role: "status",
|
|
@@ -1288,9 +1380,9 @@ function $e(e) {
|
|
|
1288
1380
|
});
|
|
1289
1381
|
}
|
|
1290
1382
|
}
|
|
1291
|
-
function
|
|
1292
|
-
let o =
|
|
1293
|
-
|
|
1383
|
+
function dt({ children: e, endContent: t, onEndReached: n, shouldFill: r = !1, endPosition: i = "end", label: a = "Collection" }) {
|
|
1384
|
+
let o = te(), s = o.viewport, c = w(null);
|
|
1385
|
+
Fe({
|
|
1294
1386
|
end: c,
|
|
1295
1387
|
viewport: r ? s : void 0,
|
|
1296
1388
|
onEndReached: n,
|
|
@@ -1321,36 +1413,49 @@ function et({ children: e, endContent: t, onEndReached: n, shouldFill: r = !1, e
|
|
|
1321
1413
|
});
|
|
1322
1414
|
}
|
|
1323
1415
|
// packages/collections/src/inspector.tsx
|
|
1324
|
-
var
|
|
1325
|
-
function
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1416
|
+
var ft = 860, pt = b(void 0);
|
|
1417
|
+
function mt({ reading: e }) {
|
|
1418
|
+
return { value: e };
|
|
1419
|
+
}
|
|
1420
|
+
var ht = N({
|
|
1421
|
+
name: "detail-field",
|
|
1422
|
+
options: { reading: "string" },
|
|
1423
|
+
state: mt,
|
|
1424
|
+
sync: mt,
|
|
1425
|
+
api: () => ({}),
|
|
1426
|
+
slots: (e) => ({ root: e({}) })
|
|
1427
|
+
}), gt = _(ht, { root: "dd" }).Root;
|
|
1428
|
+
function _t({ master: e, detail: t, label: n, masterLabel: r, revealKey: i, returnFocusRef: o, ...s }) {
|
|
1429
|
+
let c = re(), l = w(null), u = w(null), d = w(null);
|
|
1430
|
+
C(() => {
|
|
1431
|
+
i !== void 0 && l.current !== null && d.current !== null && l.current.clientWidth <= ft && (d.current.focus({ preventScroll: !0 }), d.current.scrollIntoView({
|
|
1329
1432
|
block: "start",
|
|
1330
1433
|
behavior: "instant"
|
|
1331
1434
|
}));
|
|
1332
1435
|
}, [i]);
|
|
1333
|
-
function
|
|
1334
|
-
let e = o?.current ??
|
|
1436
|
+
function f() {
|
|
1437
|
+
let e = o?.current ?? u.current;
|
|
1335
1438
|
e?.focus({ preventScroll: !0 }), e?.scrollIntoView({
|
|
1336
1439
|
block: "nearest",
|
|
1337
1440
|
behavior: "instant"
|
|
1338
1441
|
});
|
|
1339
1442
|
}
|
|
1340
1443
|
return /* @__PURE__ */ O("div", {
|
|
1341
|
-
...
|
|
1444
|
+
...v({ className: "x9vvk8s x12h1iku xeuugli xbixft x1hz01jw xtqrqnz x1778rvt" }, s),
|
|
1342
1445
|
children: /* @__PURE__ */ k("div", {
|
|
1343
|
-
ref:
|
|
1446
|
+
ref: l,
|
|
1344
1447
|
className: "xrvj5dj x4ruv2j x1y7acmc x7a106z x1j825kq xeuugli",
|
|
1345
1448
|
children: [/* @__PURE__ */ O("div", {
|
|
1346
|
-
ref:
|
|
1449
|
+
ref: u,
|
|
1347
1450
|
role: "group",
|
|
1348
1451
|
"aria-label": r,
|
|
1452
|
+
"aria-details": c,
|
|
1349
1453
|
tabIndex: -1,
|
|
1350
1454
|
className: "xeuugli",
|
|
1351
1455
|
children: e
|
|
1352
1456
|
}), /* @__PURE__ */ k("aside", {
|
|
1353
|
-
ref:
|
|
1457
|
+
ref: d,
|
|
1458
|
+
id: c,
|
|
1354
1459
|
"aria-label": n,
|
|
1355
1460
|
tabIndex: -1,
|
|
1356
1461
|
className: "x7wzq59 x7cfggw xqfmuo8 xeuugli x1sbza1b xhuqrux xexx8yu xdz7uhd xpilrb4 xdctr63 x1t7ytsu x97x49r x972fbf x1mg79u0 x13fuv20 xhjagg4 x14ijc3v x13qnu6 x9v5kkp x19rmrnh x12ijfkc",
|
|
@@ -1358,33 +1463,49 @@ function nt({ master: e, detail: t, label: n, masterLabel: r, revealKey: i, retu
|
|
|
1358
1463
|
className: "x1s85apg x1yamub6 x1xxlxpq",
|
|
1359
1464
|
children: /* @__PURE__ */ k(a, {
|
|
1360
1465
|
variant: "ghost",
|
|
1361
|
-
onClick:
|
|
1466
|
+
onClick: f,
|
|
1362
1467
|
children: ["Back to ", r.toLowerCase()]
|
|
1363
1468
|
})
|
|
1364
|
-
}),
|
|
1469
|
+
}), /* @__PURE__ */ O(pt.Provider, {
|
|
1470
|
+
value: n,
|
|
1471
|
+
children: t
|
|
1472
|
+
})]
|
|
1365
1473
|
})]
|
|
1366
1474
|
})
|
|
1367
1475
|
});
|
|
1368
1476
|
}
|
|
1369
|
-
function
|
|
1477
|
+
function vt({ value: e, label: t }) {
|
|
1478
|
+
let n = typeof e == "number" ? String(e) : e;
|
|
1479
|
+
return typeof n == "string" ? /* @__PURE__ */ O(gt, {
|
|
1480
|
+
"aria-label": t,
|
|
1481
|
+
reading: n,
|
|
1482
|
+
className: "xeuugli x1ghz6dp xbixft xj0a0fe xss6m8b",
|
|
1483
|
+
children: n
|
|
1484
|
+
}) : /* @__PURE__ */ O("dd", {
|
|
1485
|
+
className: "xeuugli x1ghz6dp xbixft xj0a0fe xss6m8b",
|
|
1486
|
+
children: e
|
|
1487
|
+
});
|
|
1488
|
+
}
|
|
1489
|
+
function yt({ items: e, ...t }) {
|
|
1490
|
+
let n = x(pt), r = t["aria-label"] ?? n;
|
|
1370
1491
|
return /* @__PURE__ */ O("dl", {
|
|
1371
|
-
...
|
|
1492
|
+
...v({ className: "x1ghz6dp xrvj5dj xezdspq x1i3977y xuytk5h x1hz01jw xvmahel xtqrqnz x1778rvt" }, t),
|
|
1372
1493
|
children: e.map(({ label: e, value: t }) => /* @__PURE__ */ k("div", {
|
|
1373
1494
|
className: "xjp7ctv",
|
|
1374
1495
|
children: [/* @__PURE__ */ O("dt", {
|
|
1375
1496
|
className: "xeuugli x153jb6y xj0a0fe",
|
|
1376
1497
|
children: e
|
|
1377
|
-
}), /* @__PURE__ */ O(
|
|
1378
|
-
|
|
1379
|
-
|
|
1498
|
+
}), /* @__PURE__ */ O(vt, {
|
|
1499
|
+
value: t,
|
|
1500
|
+
label: r === void 0 ? e : `${r} · ${e}`
|
|
1380
1501
|
})]
|
|
1381
1502
|
}, e))
|
|
1382
1503
|
});
|
|
1383
1504
|
}
|
|
1384
1505
|
// packages/collections/src/list-footer.tsx
|
|
1385
|
-
function
|
|
1506
|
+
function bt({ children: e, actions: t, ...n }) {
|
|
1386
1507
|
return /* @__PURE__ */ k("div", {
|
|
1387
|
-
...
|
|
1508
|
+
...v({ className: "x78zum5 x6s0dn4 x1qughib x1a02dak xeuugli x1n8ia3y x1qokhjc x1m92p3w x178xt8z x13fuv20 xhjagg4 x153jb6y x1hz01jw xvmahel xtqrqnz x1778rvt" }, n),
|
|
1388
1509
|
children: [/* @__PURE__ */ O("div", {
|
|
1389
1510
|
className: "xeuugli xj0a0fe",
|
|
1390
1511
|
children: e
|
|
@@ -1488,7 +1609,7 @@ var $ = {
|
|
|
1488
1609
|
kCS8Yb: "x1l7klhg",
|
|
1489
1610
|
$$css: !0
|
|
1490
1611
|
}
|
|
1491
|
-
},
|
|
1612
|
+
}, xt = {
|
|
1492
1613
|
inline: {
|
|
1493
1614
|
metric: void 0,
|
|
1494
1615
|
label: void 0,
|
|
@@ -1510,28 +1631,28 @@ var $ = {
|
|
|
1510
1631
|
detail: void 0,
|
|
1511
1632
|
valueWidth: "9ch"
|
|
1512
1633
|
}
|
|
1513
|
-
},
|
|
1634
|
+
}, St = {
|
|
1514
1635
|
inline: $.grid,
|
|
1515
1636
|
columns: $.columns
|
|
1516
1637
|
};
|
|
1517
|
-
function
|
|
1518
|
-
return /* @__PURE__ */ O("dl", { ...
|
|
1638
|
+
function Ct({ layout: e = "inline", ...t }) {
|
|
1639
|
+
return /* @__PURE__ */ O("dl", { ...v(h.props(St[e]), t) });
|
|
1519
1640
|
}
|
|
1520
|
-
function
|
|
1521
|
-
let c =
|
|
1641
|
+
function wt({ label: e, value: t, detail: n, isLoading: r = !1, hasDetail: i = !1, variant: a = "inline", trend: o, ...s }) {
|
|
1642
|
+
let c = xt[a];
|
|
1522
1643
|
return /* @__PURE__ */ k("div", {
|
|
1523
|
-
...
|
|
1644
|
+
...v(h.props($.metric, c.metric), s),
|
|
1524
1645
|
children: [
|
|
1525
1646
|
/* @__PURE__ */ O("dt", {
|
|
1526
|
-
...
|
|
1647
|
+
...h.props($.label, c.label),
|
|
1527
1648
|
children: e
|
|
1528
1649
|
}),
|
|
1529
1650
|
/* @__PURE__ */ O("dd", {
|
|
1530
|
-
...
|
|
1651
|
+
...h.props($.value, c.value),
|
|
1531
1652
|
children: r ? /* @__PURE__ */ O(d, { width: c.valueWidth }) : t
|
|
1532
1653
|
}),
|
|
1533
1654
|
(r ? i : n !== void 0) && /* @__PURE__ */ O("dd", {
|
|
1534
|
-
...
|
|
1655
|
+
...h.props($.detail, c.detail),
|
|
1535
1656
|
children: r ? /* @__PURE__ */ O(d, { width: "24ch" }) : n
|
|
1536
1657
|
}),
|
|
1537
1658
|
o !== void 0 && /* @__PURE__ */ O("dd", {
|
|
@@ -1542,7 +1663,7 @@ function ct({ label: e, value: t, detail: n, isLoading: r = !1, hasDetail: i = !
|
|
|
1542
1663
|
});
|
|
1543
1664
|
}
|
|
1544
1665
|
// packages/collections/src/timestamp.tsx
|
|
1545
|
-
function
|
|
1666
|
+
function Tt({ dateTime: e, label: t, title: n }) {
|
|
1546
1667
|
return n === void 0 ? /* @__PURE__ */ O("time", {
|
|
1547
1668
|
dateTime: e,
|
|
1548
1669
|
className: "x1hz01jw xy8obcc xas2l8k x153jb6y xss6m8b xj0a0fe x13qnu6 x9v5kkp x19rmrnh x7s97pk",
|
|
@@ -1558,15 +1679,15 @@ function lt({ dateTime: e, label: t, title: n }) {
|
|
|
1558
1679
|
}), /* @__PURE__ */ O(u.Popup, { children: n })] });
|
|
1559
1680
|
}
|
|
1560
1681
|
// packages/collections/src/timeline.tsx
|
|
1561
|
-
function
|
|
1682
|
+
function Et({ label: e, children: t }) {
|
|
1562
1683
|
return /* @__PURE__ */ O("ol", {
|
|
1563
1684
|
"aria-label": e,
|
|
1564
1685
|
className: "xe8uvvx x1ghz6dp x1717udv xeuugli",
|
|
1565
1686
|
children: t
|
|
1566
1687
|
});
|
|
1567
1688
|
}
|
|
1568
|
-
function
|
|
1569
|
-
let [c, l] =
|
|
1689
|
+
function Dt({ icon: e, title: n, time: r, metadata: i, children: a, details: o, defaultOpen: s = !1 }) {
|
|
1690
|
+
let [c, l] = T(s), u = /* @__PURE__ */ k("div", {
|
|
1570
1691
|
className: "x78zum5 x1pha0wt x1hnptsi x1a02dak xeuugli",
|
|
1571
1692
|
children: [/* @__PURE__ */ O("div", {
|
|
1572
1693
|
className: "xeuugli xk4h15q xj0a0fe",
|
|
@@ -1607,8 +1728,8 @@ function dt({ icon: e, title: n, time: r, metadata: i, children: a, details: o,
|
|
|
1607
1728
|
})]
|
|
1608
1729
|
});
|
|
1609
1730
|
}
|
|
1610
|
-
var
|
|
1611
|
-
Root:
|
|
1612
|
-
Item:
|
|
1731
|
+
var Ot = {
|
|
1732
|
+
Root: Et,
|
|
1733
|
+
Item: Dt
|
|
1613
1734
|
};
|
|
1614
|
-
export {
|
|
1735
|
+
export { ut as CollectionEnd, De as CollectionFilters, _e as CollectionPagination, dt as CollectionScroll, I as CollectionToolbar, nt as DataTable, Qe as DataTablePlaceholder, et as DataTableText, tt as DataTableTextPlaceholder, yt as Details, R as DisplayOptions, L as FilterChips, _t as Inspector, bt as ListFooter, wt as Metric, Ct as MetricGrid, V as TableQueryFrame, Ot as Timeline, Tt as Timestamp, Pe as useCollectionControls, W as useLocalTableQuery };
|