derive-dashboards 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/charts/kinds/area-marks.mjs +2 -1
- package/dist/charts/kinds/funnel-words.mjs +1 -1
- package/dist/charts/kinds/grid-marks.mjs +9 -4
- package/dist/charts/theme.d.mts +13 -13
- package/dist/charts/theme.mjs +17 -14
- package/dist/charts-react/Overlay.mjs +1 -0
- package/dist/charts-react/chart-unlayered.css +1 -107
- package/dist/charts-react/chart.css +1 -121
- package/dist/charts-react/tip-place.mjs +30 -15
- package/dist/core/document/display-comparisons.mjs +49 -0
- package/dist/core/document/display-validation.d.mts +12 -0
- package/dist/core/document/display-validation.mjs +56 -0
- package/dist/core/document/display.d.mts +6 -12
- package/dist/core/document/display.mjs +23 -48
- package/dist/core/engine/dialect.d.mts +2 -0
- package/dist/core/engine/index.mjs +1 -1
- package/dist/core/engine/levels.mjs +33 -1
- package/dist/core/engine/postgres.mjs +1 -0
- package/dist/core/engine/rank.mjs +1 -1
- package/dist/core/engine/reader.d.mts +4 -0
- package/dist/core/engine/sql-partition.mjs +45 -0
- package/dist/core/engine/sql-reads.mjs +4 -1
- package/dist/core/engine/statement.mjs +4 -4
- package/dist/core/engine/version.d.mts +1 -1
- package/dist/core/engine/version.mjs +1 -1
- package/dist/core/error/codes.d.mts +1 -1
- package/dist/core/error/codes.mjs +1 -1
- package/dist/core/index.d.mts +6 -5
- package/dist/core/index.mjs +8 -7
- package/dist/core/model/validate/fields.mjs +1 -1
- package/dist/core/query/drill/compose.d.mts +2 -0
- package/dist/core/query/drill/compose.mjs +1 -1
- package/dist/core/query/drill/synthetic.mjs +1 -1
- package/dist/core/query/drill/types.d.mts +7 -0
- package/dist/core/query/drill/types.mjs +3 -1
- package/dist/core/schema/answers.d.mts +1176 -362
- package/dist/core/schema/drill-answers.mjs +19 -1
- package/dist/core/schema/drill.d.mts +21 -6
- package/dist/core/schema/drill.mjs +7 -1
- package/dist/core/schema/tools.mjs +13 -0
- package/dist/core/time/index.d.mts +2 -2
- package/dist/core/time/text-time.d.mts +9 -2
- package/dist/core/time/text-time.mjs +18 -3
- package/dist/core/types/api.d.mts +1 -1
- package/dist/core/types/api.mjs +1 -1
- package/dist/core/types/drill-api.d.mts +22 -2
- package/dist/dashboard-documents.d.mts +8 -0
- package/dist/dashboard-documents.mjs +52 -0
- package/dist/drill-access.mjs +40 -3
- package/dist/drill-comparison.mjs +71 -0
- package/dist/drill-crumbs.mjs +21 -2
- package/dist/drill-group-seal.mjs +13 -0
- package/dist/drill-open.mjs +7 -1
- package/dist/drill-seal.mjs +4 -6
- package/dist/drill-views.mjs +5 -13
- package/dist/drill.mjs +28 -58
- package/dist/editing.mjs +1 -1
- package/dist/endpoints/drill.mjs +2 -3
- package/dist/endpoints/index.d.mts +20 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +6 -27
- package/dist/llms.txt +1 -1
- package/dist/react/Cell.mjs +2 -2
- package/dist/react/DashboardList.mjs +3 -3
- package/dist/react/Editing.mjs +3 -3
- package/dist/react/Header.mjs +2 -2
- package/dist/react/History.mjs +3 -3
- package/dist/react/Parts.mjs +2 -2
- package/dist/react/RowBody.d.mts +2 -4
- package/dist/react/RowBody.mjs +14 -39
- package/dist/react/Tile.mjs +4 -5
- package/dist/react/builder/FilterEditor.mjs +2 -2
- package/dist/react/builder/Picker.mjs +3 -3
- package/dist/react/builder/RangeEditor.mjs +3 -3
- package/dist/react/builder/Time.mjs +3 -3
- package/dist/react/builder/Values.mjs +2 -2
- package/dist/react/builder/WidgetBuilder.mjs +2 -2
- package/dist/react/drill/Bars.mjs +34 -38
- package/dist/react/drill/Comparison.mjs +204 -0
- package/dist/react/drill/Controls.mjs +8 -12
- package/dist/react/drill/DrillDrawer.mjs +42 -0
- package/dist/react/drill/DrillPanel.mjs +61 -41
- package/dist/react/drill/Header.mjs +65 -35
- package/dist/react/drill/ItemLink.mjs +40 -0
- package/dist/react/drill/Items.d.mts +2 -1
- package/dist/react/drill/Items.mjs +126 -99
- package/dist/react/drill/ItemsBody.mjs +38 -0
- package/dist/react/drill/ItemsFoot.mjs +24 -19
- package/dist/react/drill/Notes.mjs +23 -13
- package/dist/react/drill/PanelBody.mjs +7 -25
- package/dist/react/drill/RecordRow.mjs +47 -0
- package/dist/react/drill/Trend.mjs +186 -0
- package/dist/react/drill/board.mjs +21 -11
- package/dist/react/drill/drawer-context.mjs +5 -0
- package/dist/react/drill/item-parts.mjs +53 -35
- package/dist/react/drill/item-type.d.mts +2 -2
- package/dist/react/drill/lazy.d.mts +1 -4
- package/dist/react/drill/lazy.mjs +29 -11
- package/dist/react/drill/panel-focus.mjs +18 -7
- package/dist/react/drill/props.d.mts +7 -1
- package/dist/react/drill/props.mjs +39 -8
- package/dist/react/drill/record-page.mjs +61 -0
- package/dist/react/drill/state.mjs +17 -2
- package/dist/react/drill/trend-touch.mjs +33 -0
- package/dist/react/drill/useDrill.d.mts +3 -3
- package/dist/react/drill/useDrill.mjs +35 -15
- package/dist/react/drill/words.d.mts +14 -0
- package/dist/react/drill/words.mjs +19 -7
- package/dist/react/english.d.mts +1 -0
- package/dist/react/english.mjs +1 -0
- package/dist/react/filters/chip.mjs +2 -2
- package/dist/react/filters/menu-search.mjs +5 -5
- package/dist/react/filters/menu.mjs +2 -2
- package/dist/react/filters/number.mjs +2 -2
- package/dist/react/filters/operator.mjs +2 -2
- package/dist/react/filters/phone.mjs +2 -2
- package/dist/react/filters/values.mjs +4 -4
- package/dist/react/format-time.d.mts +1 -0
- package/dist/react/format-time.mjs +39 -33
- package/dist/react/format.mjs +10 -1
- package/dist/react/renderers/list.mjs +8 -10
- package/dist/react/renderers/table-cells.mjs +38 -9
- package/dist/react/renderers/table-measure.mjs +2 -0
- package/dist/react/renderers/table-row.mjs +64 -7
- package/dist/react/renderers/table-sort.mjs +2 -8
- package/dist/react/renderers/table.mjs +16 -15
- package/dist/react/theme-unlayered.css +1 -3148
- package/dist/react/theme.css +1 -3150
- package/dist/recharts/parts.mjs +1 -1
- package/dist/skills/derive-dashboards/SKILL.md +4 -2
- package/dist/store/apply.mjs +2 -2
- package/dist/store/editor.mjs +2 -2
- package/dist/store/writer.mjs +2 -2
- package/package.json +1 -1
|
@@ -1,26 +1,48 @@
|
|
|
1
|
-
import { formatCell } from "../format.mjs";
|
|
1
|
+
import { formatCell, groupText } from "../format.mjs";
|
|
2
2
|
import { drillFrom } from "./state.mjs";
|
|
3
3
|
import { roleOf } from "derive-dashboards/core";
|
|
4
4
|
// src/drill/props.ts
|
|
5
5
|
const isLine = (c) => roleOf(c) === "measure" || roleOf(c) === "calc";
|
|
6
6
|
/** A mark's name for a screen reader: its groups, then its value. */
|
|
7
7
|
function markLabel(answer, row, format, entry) {
|
|
8
|
-
const named = answer.columns.
|
|
8
|
+
const named = answer.columns.length > 1 ? entry : void 0;
|
|
9
9
|
const text = answer.columns.map((c, i) => ({
|
|
10
10
|
c,
|
|
11
11
|
cell: row[i] ?? null
|
|
12
12
|
})).filter(({ c }) => named === void 0 || !isLine(c) || c.id === named).map(({ c, cell }) => {
|
|
13
|
-
if (
|
|
13
|
+
if (!isLine(c)) return groupText(cell, c, format);
|
|
14
14
|
const value = formatCell(cell, c, format);
|
|
15
15
|
return named !== void 0 && isLine(c) ? `${c.label} ${value}` : value;
|
|
16
16
|
}).join(", ");
|
|
17
17
|
return format.messages.drillMark(text);
|
|
18
18
|
}
|
|
19
|
-
/**
|
|
19
|
+
/** Find a renderer’s original row by identity, indexing each answer only when a renderer passes a row. */
|
|
20
|
+
const positions = /* @__PURE__ */ new WeakMap();
|
|
21
|
+
function position(rows, row) {
|
|
22
|
+
let index = positions.get(rows);
|
|
23
|
+
if (!index) {
|
|
24
|
+
index = /* @__PURE__ */ new Map();
|
|
25
|
+
for (const [place, cells] of rows.entries()) if (!index.has(cells)) index.set(cells, place);
|
|
26
|
+
positions.set(rows, index);
|
|
27
|
+
}
|
|
28
|
+
return index.get(row);
|
|
29
|
+
}
|
|
20
30
|
function at(answer, row) {
|
|
21
|
-
if (typeof row === "number") return row;
|
|
22
|
-
const own = answer.rows
|
|
23
|
-
|
|
31
|
+
if (typeof row === "number") return Number.isInteger(row) && row < answer.rows.length ? row : -1;
|
|
32
|
+
const own = position(answer.rows, row);
|
|
33
|
+
if (own !== void 0) return own;
|
|
34
|
+
const previous = answer.compare && position(answer.compare.rows, row);
|
|
35
|
+
return previous === void 0 ? -1 : { previous };
|
|
36
|
+
}
|
|
37
|
+
const warnedAboutCopy = /* @__PURE__ */ new WeakSet();
|
|
38
|
+
/** Copies can match more than one period or selection. Tell custom renderers how to identify the row. */
|
|
39
|
+
function comparisonRow(answer, row) {
|
|
40
|
+
const place = at(answer, row);
|
|
41
|
+
if (place === -1 && typeof row !== "number" && !warnedAboutCopy.has(answer)) {
|
|
42
|
+
warnedAboutCopy.add(answer);
|
|
43
|
+
console.warn("drill.compare needs an original answer row or its index in answer.rows. Keep the index when copying or sorting rows.");
|
|
44
|
+
}
|
|
45
|
+
return place;
|
|
24
46
|
}
|
|
25
47
|
/**
|
|
26
48
|
* A renderer's drill for one answer: each row's sealed selection, opened as a drill state the
|
|
@@ -30,7 +52,7 @@ function tileDrill(a) {
|
|
|
30
52
|
const { answer } = a;
|
|
31
53
|
if (answer.drill === void 0) return void 0;
|
|
32
54
|
const single = answer.columns.filter(isLine).length <= 1;
|
|
33
|
-
const stateOf = (row, entry, view) => entry === void 0 && !single ? void 0 : drillFrom(a.origin, answer.drill, {
|
|
55
|
+
const stateOf = (row, entry, view) => entry === void 0 && !single && view?.by !== "comparison" ? void 0 : drillFrom(a.origin, answer.drill, {
|
|
34
56
|
...row === void 0 ? {} : { row: at(answer, row) },
|
|
35
57
|
...entry === void 0 ? {} : { entry },
|
|
36
58
|
...view === void 0 ? {} : { view }
|
|
@@ -44,6 +66,15 @@ function tileDrill(a) {
|
|
|
44
66
|
open: (row, entry) => {
|
|
45
67
|
open(row, entry);
|
|
46
68
|
},
|
|
69
|
+
compare: (row, view) => {
|
|
70
|
+
const state = drillFrom(a.origin, answer.drill, {
|
|
71
|
+
row: comparisonRow(answer, row),
|
|
72
|
+
view
|
|
73
|
+
});
|
|
74
|
+
return state === void 0 ? void 0 : () => {
|
|
75
|
+
a.onDrill(state);
|
|
76
|
+
};
|
|
77
|
+
},
|
|
47
78
|
openAll: (entry, view) => {
|
|
48
79
|
open(void 0, entry ?? (single ? void 0 : firstLine), view ?? ITEMS);
|
|
49
80
|
},
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { useDashboards } from "../context.mjs";
|
|
2
|
+
import { RECORD_PAGES } from "./words.mjs";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
// src/drill/record-page.tsx
|
|
6
|
+
const SIZE = 100;
|
|
7
|
+
/** Keep both record layouts on the same page. Appending a batch reveals its first new row. */
|
|
8
|
+
function useRecordPage(items) {
|
|
9
|
+
const first = items[0];
|
|
10
|
+
const loaded = items.length;
|
|
11
|
+
const [page, setPage] = useState({
|
|
12
|
+
first,
|
|
13
|
+
loaded,
|
|
14
|
+
start: 0
|
|
15
|
+
});
|
|
16
|
+
if (first !== page.first || loaded !== page.loaded) setPage({
|
|
17
|
+
first,
|
|
18
|
+
loaded,
|
|
19
|
+
start: first === page.first && loaded > page.loaded ? Math.floor(page.loaded / SIZE) * SIZE : 0
|
|
20
|
+
});
|
|
21
|
+
const start = page.start;
|
|
22
|
+
return {
|
|
23
|
+
start,
|
|
24
|
+
end: Math.min(start + SIZE, loaded),
|
|
25
|
+
paged: loaded > SIZE,
|
|
26
|
+
items: items.slice(start, start + SIZE),
|
|
27
|
+
previous: () => {
|
|
28
|
+
setPage({
|
|
29
|
+
first,
|
|
30
|
+
loaded,
|
|
31
|
+
start: start - SIZE
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
next: () => {
|
|
35
|
+
setPage({
|
|
36
|
+
first,
|
|
37
|
+
loaded,
|
|
38
|
+
start: start + SIZE
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function RecordPager({ page, loaded }) {
|
|
44
|
+
const { messages } = useDashboards();
|
|
45
|
+
const words = messages.drillRecordPages ?? RECORD_PAGES;
|
|
46
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
47
|
+
className: "dd-record-pager",
|
|
48
|
+
children: [/* @__PURE__ */ jsx("button", {
|
|
49
|
+
type: "button",
|
|
50
|
+
"aria-disabled": page.start === 0,
|
|
51
|
+
onClick: page.start === 0 ? void 0 : page.previous,
|
|
52
|
+
children: words.previous
|
|
53
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
54
|
+
type: "button",
|
|
55
|
+
"aria-disabled": page.end === loaded,
|
|
56
|
+
onClick: page.end === loaded ? void 0 : page.next,
|
|
57
|
+
children: words.next
|
|
58
|
+
})]
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
export { RecordPager, useRecordPage };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MAX_DRILL_ROWS } from "derive-dashboards/core";
|
|
1
2
|
// src/drill/state.ts
|
|
2
3
|
/** The view a fresh step opens on: the server picks it by its rules (Breakdown with no field). */
|
|
3
4
|
const FIRST = { by: "breakdown" };
|
|
@@ -20,7 +21,7 @@ function drillFrom(origin, drill, at = {}) {
|
|
|
20
21
|
}
|
|
21
22
|
/** A row of a sealed answer as a path entry, or undefined when the row does not open. */
|
|
22
23
|
function rowEntry(sealed, row, previous = false) {
|
|
23
|
-
return sealed === void 0 || row < 0 || sealed.closed?.some((c) => c.row === row) === true ? void 0 : `${sealed.answer}#${previous ? "p" : ""}${String(row)}`;
|
|
24
|
+
return sealed === void 0 || !Number.isInteger(row) || row < 0 || row >= MAX_DRILL_ROWS || sealed.closed?.some((c) => c.row === row) === true ? void 0 : `${sealed.answer}#${previous ? "p" : ""}${String(row)}`;
|
|
24
25
|
}
|
|
25
26
|
/** A row's place in the sealed answer as a path of one, or undefined when the row does not open. */
|
|
26
27
|
function pick(drill, row) {
|
|
@@ -56,6 +57,20 @@ function onEntry(state, entry) {
|
|
|
56
57
|
view: FIRST
|
|
57
58
|
};
|
|
58
59
|
}
|
|
60
|
+
/** Full records and their summary share one read and one accumulated set of pages. */
|
|
61
|
+
function itemFields(state, wide) {
|
|
62
|
+
if (state.view.by !== "items") return state;
|
|
63
|
+
const { fields: _fields, ...view } = state.view;
|
|
64
|
+
return {
|
|
65
|
+
...state,
|
|
66
|
+
view: wide ? {
|
|
67
|
+
...view,
|
|
68
|
+
fields: true
|
|
69
|
+
} : view
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
const readState = (state) => state && itemFields(state, false);
|
|
73
|
+
const showsFields = (state) => state?.view.by === "items" && state.view.fields === true;
|
|
59
74
|
/** A key that names a drill's state exactly, for caching its answer. */
|
|
60
75
|
const drillKey = (state) => JSON.stringify(state);
|
|
61
76
|
/** A key that names a drill's path, whatever its view: one summary serves every view of it. */
|
|
@@ -65,4 +80,4 @@ const pathKey = (state) => JSON.stringify([
|
|
|
65
80
|
state.path,
|
|
66
81
|
state.entry ?? null
|
|
67
82
|
]);
|
|
68
|
-
export { deeper, drillFrom, drillKey, onEntry, pathKey, rowEntry, upTo };
|
|
83
|
+
export { deeper, drillFrom, drillKey, itemFields, onEntry, pathKey, readState, rowEntry, showsFields, upTo };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { useRef, useState } from "react";
|
|
2
|
+
// src/drill/trend-touch.ts
|
|
3
|
+
/** A finger previews the value before opening its sealed selection. Mouse and keyboard activate directly. */
|
|
4
|
+
function useTouchPreview() {
|
|
5
|
+
const touch = useRef(false);
|
|
6
|
+
const [selected, select] = useState(null);
|
|
7
|
+
return {
|
|
8
|
+
selected,
|
|
9
|
+
handlers: {
|
|
10
|
+
onPointerDownCapture: (e) => {
|
|
11
|
+
touch.current = e.pointerType === "touch";
|
|
12
|
+
if (!touch.current) select(null);
|
|
13
|
+
},
|
|
14
|
+
onKeyDownCapture: () => {
|
|
15
|
+
touch.current = false;
|
|
16
|
+
select(null);
|
|
17
|
+
},
|
|
18
|
+
onClickCapture: (e) => {
|
|
19
|
+
if (!touch.current || e.detail === 0 || !(e.target instanceof Element)) return;
|
|
20
|
+
touch.current = false;
|
|
21
|
+
const mark = e.target.closest("[tabindex]");
|
|
22
|
+
if (mark === null) return;
|
|
23
|
+
const index = mark.closest("li")?.dataset["index"];
|
|
24
|
+
if (index === void 0 || Number(index) === selected) return;
|
|
25
|
+
e.preventDefault();
|
|
26
|
+
e.stopPropagation();
|
|
27
|
+
select(Number(index));
|
|
28
|
+
mark.focus({ preventScroll: true });
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export { useTouchPreview };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DrillChange } from "./state.mjs";
|
|
1
|
+
import { DrillChange, DrillHistory } from "./state.mjs";
|
|
2
2
|
import { DrillAnswer, DrillState, DrillSummary, DrillView } from "derive-dashboards/core";
|
|
3
3
|
export type DrillOptions = {
|
|
4
4
|
state: DrillState | undefined;
|
|
@@ -13,7 +13,7 @@ export type DrillOptions = {
|
|
|
13
13
|
* and a read the person moved on from is aborted.
|
|
14
14
|
*/
|
|
15
15
|
export declare function useDrill({ state, onStateChange }: DrillOptions): {
|
|
16
|
-
setView: (view: DrillView) => void;
|
|
16
|
+
setView: (view: DrillView, history?: DrillHistory) => void;
|
|
17
17
|
open: (selection: string) => void;
|
|
18
18
|
goTo: (steps: number) => void;
|
|
19
19
|
/** Another line of the tile: a formula's part, drilled on its own. */
|
|
@@ -39,7 +39,7 @@ export declare function useDrill({ state, onStateChange }: DrillOptions): {
|
|
|
39
39
|
retry: () => void;
|
|
40
40
|
summary: DrillSummary | undefined;
|
|
41
41
|
path: import("derive-dashboards/core").DrillCrumb[];
|
|
42
|
-
shown: import("derive-dashboards/core").
|
|
42
|
+
shown: import("derive-dashboards/core").DrillGroupedView | import("derive-dashboards/core").DrillComparisonView | import("derive-dashboards/core").DrillItemsView | import("derive-dashboards/core").DrillExplanationView | undefined;
|
|
43
43
|
state: DrillState | undefined;
|
|
44
44
|
answer: DrillAnswer | undefined;
|
|
45
45
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useDashboards } from "../context.mjs";
|
|
2
2
|
import { useMorePages } from "./pages.mjs";
|
|
3
|
-
import { deeper, drillKey, onEntry, pathKey, upTo } from "./state.mjs";
|
|
3
|
+
import { deeper, drillKey, itemFields, onEntry, pathKey, readState, showsFields, upTo } from "./state.mjs";
|
|
4
4
|
import { useEffect, useRef } from "react";
|
|
5
5
|
import useSWR, { useSWRConfig } from "swr";
|
|
6
6
|
// src/drill/useDrill.ts
|
|
@@ -55,26 +55,46 @@ function useAsk(client, scope, known) {
|
|
|
55
55
|
* that fixed a field twice), the host is told, and the answer it already has serves the new
|
|
56
56
|
* state too.
|
|
57
57
|
*/
|
|
58
|
-
function
|
|
58
|
+
function useAnswer({ scope, state, ask, onChange }) {
|
|
59
59
|
const { mutate } = useSWRConfig();
|
|
60
|
+
const read = readState(state);
|
|
61
|
+
const key = read === void 0 ? null : [
|
|
62
|
+
"dd-drill",
|
|
63
|
+
scope,
|
|
64
|
+
drillKey(read)
|
|
65
|
+
];
|
|
66
|
+
const seeded = useRef(void 0);
|
|
67
|
+
const justAnswered = seeded.current?.scope === scope && seeded.current.key === key?.[2];
|
|
68
|
+
const asked = useSWR(key, () => read === void 0 ? Promise.reject(/* @__PURE__ */ new Error("No drill.")) : ask(read), justAnswered ? { revalidateIfStale: false } : {});
|
|
60
69
|
const latest = useRef(onChange);
|
|
61
70
|
latest.current = onChange;
|
|
71
|
+
const answer = asked.data;
|
|
62
72
|
useEffect(() => {
|
|
73
|
+
seeded.current = void 0;
|
|
63
74
|
if (state === void 0 || answer === void 0) return;
|
|
64
75
|
const normal = drillKey(answer.state);
|
|
65
|
-
if (normal === drillKey(state)) return;
|
|
76
|
+
if (normal === drillKey(itemFields(state, false))) return;
|
|
77
|
+
seeded.current = {
|
|
78
|
+
scope,
|
|
79
|
+
key: normal
|
|
80
|
+
};
|
|
66
81
|
mutate([
|
|
67
82
|
"dd-drill",
|
|
68
83
|
scope,
|
|
69
84
|
normal
|
|
70
85
|
], answer, { revalidate: false });
|
|
71
|
-
latest.current(answer.state, "replace");
|
|
86
|
+
latest.current(itemFields(answer.state, showsFields(state)), "replace");
|
|
72
87
|
}, [
|
|
73
88
|
scope,
|
|
74
89
|
state,
|
|
75
90
|
answer,
|
|
76
91
|
mutate
|
|
77
92
|
]);
|
|
93
|
+
return {
|
|
94
|
+
asked,
|
|
95
|
+
read,
|
|
96
|
+
key
|
|
97
|
+
};
|
|
78
98
|
}
|
|
79
99
|
/** The moves a person makes in a drill, each told to the host as the next state. */
|
|
80
100
|
function movesOf(state, move) {
|
|
@@ -82,11 +102,11 @@ function movesOf(state, move) {
|
|
|
82
102
|
if (state !== void 0) move(next(state), history);
|
|
83
103
|
};
|
|
84
104
|
return {
|
|
85
|
-
setView: (view) => {
|
|
105
|
+
setView: (view, history = "replace") => {
|
|
86
106
|
at((s) => ({
|
|
87
107
|
...s,
|
|
88
108
|
view
|
|
89
|
-
}),
|
|
109
|
+
}), history);
|
|
90
110
|
},
|
|
91
111
|
open: (selection) => {
|
|
92
112
|
at((s) => deeper(s, selection), "push");
|
|
@@ -105,7 +125,8 @@ function movesOf(state, move) {
|
|
|
105
125
|
/** One step up; at the first step, Back closes the drill. */
|
|
106
126
|
back: () => {
|
|
107
127
|
const steps = state?.path.length ?? 0;
|
|
108
|
-
if (
|
|
128
|
+
if (showsFields(state)) at((s) => itemFields(s, false), "push");
|
|
129
|
+
else if (steps > 1) at((s) => upTo(s, steps - 1), "push");
|
|
109
130
|
else move(void 0, "push");
|
|
110
131
|
},
|
|
111
132
|
close: () => {
|
|
@@ -130,17 +151,16 @@ function useDrill({ state, onStateChange }) {
|
|
|
130
151
|
const { client, cacheScope } = useDashboards();
|
|
131
152
|
const known = useRef(/* @__PURE__ */ new Map());
|
|
132
153
|
const ask = useAsk(client, cacheScope, known.current);
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
154
|
+
const { asked, read, key } = useAnswer({
|
|
155
|
+
scope: cacheScope,
|
|
156
|
+
state,
|
|
157
|
+
ask,
|
|
158
|
+
onChange: onStateChange
|
|
159
|
+
});
|
|
139
160
|
const { answer, updating } = useSteady(state, asked.data);
|
|
140
|
-
useNormalized(cacheScope, state, asked.data, onStateChange);
|
|
141
161
|
const shown = answer?.view;
|
|
142
162
|
const itemsView = shown?.by === "items" ? shown : void 0;
|
|
143
|
-
const pages = useMorePages(`${cacheScope}|${key?.[2] ?? ""}`,
|
|
163
|
+
const pages = useMorePages(`${cacheScope}|${key?.[2] ?? ""}`, read, itemsView, ask);
|
|
144
164
|
return {
|
|
145
165
|
state,
|
|
146
166
|
answer,
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { DrillReason } from "derive-dashboards/core";
|
|
2
|
+
export declare const RECORD_PAGES: {
|
|
3
|
+
previous: string;
|
|
4
|
+
next: string;
|
|
5
|
+
range: (first: string, last: string, loaded: string, total?: string) => string;
|
|
6
|
+
};
|
|
2
7
|
/** Every word the drill panel shows; `ENGLISH_DRILL` holds the defaults. */
|
|
3
8
|
export type DrillMessages = {
|
|
4
9
|
/** The panel's name, over the path. */
|
|
@@ -13,6 +18,8 @@ export type DrillMessages = {
|
|
|
13
18
|
drillRows: (count: string) => string;
|
|
14
19
|
/** "396 tasks with Hours (57 without)": a value that counts only rows with its field set. */
|
|
15
20
|
drillWith: (rows: string, operand: string, without: string | undefined) => string;
|
|
21
|
+
/** A metric denominator identified by its own name. */
|
|
22
|
+
drillMetricTotal?: (metric: string) => string;
|
|
16
23
|
/** "42% of the total" for a first step, "39% of Open" deeper. */
|
|
17
24
|
drillShare: (percent: string, of: string | undefined) => string;
|
|
18
25
|
/** The value now differs from the one the chart was drawn with (same viewer only). */
|
|
@@ -29,6 +36,11 @@ export type DrillMessages = {
|
|
|
29
36
|
drillHint: string;
|
|
30
37
|
/** A Breakdown's field picker. */
|
|
31
38
|
drillBy: string;
|
|
39
|
+
/** Accessible action name on a table group that opens a comparison. */
|
|
40
|
+
drillCompareGroup?: (group: string) => string;
|
|
41
|
+
/** Heading under the selected group, for example "Grouped by Coupon". */
|
|
42
|
+
drillGroupedBy?: (field: string) => string;
|
|
43
|
+
drillRecordPages?: typeof RECORD_PAGES;
|
|
32
44
|
/** "Showing 12 of 36", or "Showing 12" when the total is not known. */
|
|
33
45
|
drillShowing: (shown: number, total?: string) => string;
|
|
34
46
|
drillSort: Record<"records" | "value" | "count", string>;
|
|
@@ -90,6 +102,8 @@ export type DrillMessages = {
|
|
|
90
102
|
drillPercentile: (p: number, value: string) => string;
|
|
91
103
|
/** Over time: the range drawn and its grain picker. */
|
|
92
104
|
drillRange: (from: string, to: string) => string;
|
|
105
|
+
/** Distinguishes a bounded trend from an all-time headline. */
|
|
106
|
+
drillTrendWindow?: (period: string) => string;
|
|
93
107
|
drillGrains: Record<"hour" | "day" | "week" | "month" | "quarter" | "year", string>;
|
|
94
108
|
/** Why a view cannot show, by its code. */
|
|
95
109
|
drillReasons: Record<DrillReason, string>;
|
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
import { DRILL_REASONS } from "derive-dashboards/core";
|
|
2
2
|
// src/drill/words.ts
|
|
3
|
+
const RECORD_PAGES = {
|
|
4
|
+
previous: "Previous page",
|
|
5
|
+
next: "Next page",
|
|
6
|
+
range: (first, last, loaded, total) => `Rows ${first}–${last} · ${total === void 0 ? loaded : `${loaded} of ${total}`} loaded`
|
|
7
|
+
};
|
|
3
8
|
const capital = (text) => text.charAt(0).toUpperCase() + text.slice(1);
|
|
9
|
+
const compareGroupLabel = (group) => `${group} · Compare groups`;
|
|
10
|
+
const trendWindowLabel = (period) => `Chart covers ${period}. The total above covers all dates.`;
|
|
4
11
|
const ENGLISH_DRILL = {
|
|
5
12
|
drillTitle: "Analysis",
|
|
6
13
|
drillViews: {
|
|
7
14
|
breakdown: "Breakdown",
|
|
8
15
|
trend: "Over time",
|
|
9
|
-
items: "
|
|
16
|
+
items: "Records",
|
|
10
17
|
explanation: "Explanation"
|
|
11
18
|
},
|
|
12
19
|
drillBack: "Back",
|
|
13
20
|
drillRoot: (title) => title,
|
|
14
21
|
drillRows: (count) => `${count} rows`,
|
|
15
22
|
drillWith: (rows, operand, without) => `${rows} with ${operand}${without === void 0 ? "" : ` (${without} without)`}`,
|
|
16
|
-
|
|
23
|
+
drillMetricTotal: (metric) => `the total for “${metric}”`,
|
|
24
|
+
drillShare: (percent, of) => `${percent} of ${of ?? "the tile total"}`,
|
|
17
25
|
drillMoved: (now, then) => `${now} now, ${then} when the chart loaded`,
|
|
18
26
|
drillRefresh: "Refresh",
|
|
19
27
|
drillYours: (noun) => `Counts include only ${noun} you can see.`,
|
|
@@ -21,6 +29,9 @@ const ENGLISH_DRILL = {
|
|
|
21
29
|
drillEarlier: (range) => `The period before · ${range}`,
|
|
22
30
|
drillHint: "Open details",
|
|
23
31
|
drillBy: "Break down by",
|
|
32
|
+
drillCompareGroup: compareGroupLabel,
|
|
33
|
+
drillGroupedBy: (field) => `Grouped by ${field}`,
|
|
34
|
+
drillRecordPages: RECORD_PAGES,
|
|
24
35
|
drillShowing: (shown, total) => total === void 0 ? `Showing ${String(shown)}` : `Showing ${String(shown)} of ${total}`,
|
|
25
36
|
drillSort: {
|
|
26
37
|
records: "in record order",
|
|
@@ -28,9 +39,9 @@ const ENGLISH_DRILL = {
|
|
|
28
39
|
count: "most rows first"
|
|
29
40
|
},
|
|
30
41
|
drillSorted: (field, dir, time) => time ? dir === "desc" ? "newest first" : "oldest first" : `by ${field}`,
|
|
31
|
-
drillList: "
|
|
32
|
-
drillTable: "
|
|
33
|
-
drillNoItems: "No
|
|
42
|
+
drillList: "Summary",
|
|
43
|
+
drillTable: "All fields",
|
|
44
|
+
drillNoItems: "No matching records.",
|
|
34
45
|
drillNoGroups: "Nothing to show here.",
|
|
35
46
|
drillNoMatch: "No values match the search.",
|
|
36
47
|
drillFailed: "Couldn't load.",
|
|
@@ -63,6 +74,7 @@ const ENGLISH_DRILL = {
|
|
|
63
74
|
drillYes: "Yes",
|
|
64
75
|
drillNo: "No",
|
|
65
76
|
drillPercentile: (p, value) => `${String(p)}% are at or below ${value}`,
|
|
77
|
+
drillTrendWindow: trendWindowLabel,
|
|
66
78
|
drillRange: (from, to) => `${from} to ${to}`,
|
|
67
79
|
drillGrains: {
|
|
68
80
|
hour: "Hour",
|
|
@@ -74,6 +86,6 @@ const ENGLISH_DRILL = {
|
|
|
74
86
|
},
|
|
75
87
|
drillReasons: { ...DRILL_REASONS },
|
|
76
88
|
drillOpenInBuilder: "Open in builder",
|
|
77
|
-
drillSee: (
|
|
89
|
+
drillSee: () => "View details"
|
|
78
90
|
};
|
|
79
|
-
export { ENGLISH_DRILL };
|
|
91
|
+
export { ENGLISH_DRILL, RECORD_PAGES, compareGroupLabel, trendWindowLabel };
|
package/dist/react/english.d.mts
CHANGED
package/dist/react/english.mjs
CHANGED
|
@@ -28,6 +28,7 @@ const ENGLISH = {
|
|
|
28
28
|
noData: "No data for this range",
|
|
29
29
|
noRows: "No rows",
|
|
30
30
|
soFar: "so far",
|
|
31
|
+
chartPartial: "part of the period",
|
|
31
32
|
dashboardFailed: "This dashboard could not be loaded.",
|
|
32
33
|
dashboardUnreachable: "Can't reach the server. Showing what was last loaded; it updates when the connection is back.",
|
|
33
34
|
dashboardMissing: "This dashboard isn't here. It may not be published yet, or it was removed.",
|
|
@@ -6,7 +6,7 @@ import { OperatorMenu } from "./operator.mjs";
|
|
|
6
6
|
import { Popover } from "./popover.mjs";
|
|
7
7
|
import { ValueList, ValuesSummary } from "./values.mjs";
|
|
8
8
|
import { useRef } from "react";
|
|
9
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
// src/filters/chip.tsx
|
|
11
11
|
/** A control's icon from the host, if any. */
|
|
12
12
|
function Icon({ control }) {
|
|
@@ -57,7 +57,7 @@ function ChipValue({ control, said }) {
|
|
|
57
57
|
control,
|
|
58
58
|
values: chosenOf(pick)
|
|
59
59
|
});
|
|
60
|
-
return /* @__PURE__ */ jsx(Fragment, { children: said ?? words.widgetDates });
|
|
60
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: said ?? words.widgetDates });
|
|
61
61
|
}
|
|
62
62
|
function FieldSegment({ control, open, toggle }) {
|
|
63
63
|
const words = useWords();
|
|
@@ -6,7 +6,7 @@ import { isNumber } from "./logic.mjs";
|
|
|
6
6
|
import { matchingFields, suggest, suggestionPick } from "./suggest.mjs";
|
|
7
7
|
import { Mark } from "./values.mjs";
|
|
8
8
|
import { useCallback, useEffect, useState } from "react";
|
|
9
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
// src/filters/menu-search.tsx
|
|
11
11
|
/** Reads one control's values into the menu's suggestions. One per control, so hooks stay fixed. */
|
|
12
12
|
function Collect({ control, query, onValues }) {
|
|
@@ -85,7 +85,7 @@ function SuggestionRow({ s }) {
|
|
|
85
85
|
const words = useWords();
|
|
86
86
|
const format = useFormat();
|
|
87
87
|
const rangeText = useRangeText();
|
|
88
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
88
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
89
89
|
/* @__PURE__ */ jsx(Icon, { control: s.control }),
|
|
90
90
|
/* @__PURE__ */ jsx("span", {
|
|
91
91
|
className: "dd-fb-quiet",
|
|
@@ -94,7 +94,7 @@ function SuggestionRow({ s }) {
|
|
|
94
94
|
s.kind === "date" ? /* @__PURE__ */ jsx("span", {
|
|
95
95
|
className: "dd-fb-option-text",
|
|
96
96
|
children: rangeText(s.range)
|
|
97
|
-
}) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
97
|
+
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
98
98
|
/* @__PURE__ */ jsx("span", {
|
|
99
99
|
className: "dd-fb-quiet",
|
|
100
100
|
children: s.negative ? words.isNotWord : words.isWord
|
|
@@ -112,7 +112,7 @@ function SuggestionRow({ s }) {
|
|
|
112
112
|
}
|
|
113
113
|
function FieldRow({ control }) {
|
|
114
114
|
const said = useSummary()(control);
|
|
115
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
115
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
116
116
|
/* @__PURE__ */ jsx(Icon, { control }),
|
|
117
117
|
/* @__PURE__ */ jsx("span", {
|
|
118
118
|
className: "dd-fb-option-text",
|
|
@@ -190,7 +190,7 @@ function MenuSearch({ controls, steps }) {
|
|
|
190
190
|
const { known, failed, onValues } = useKnown();
|
|
191
191
|
const searched = useDebounced(query, 150);
|
|
192
192
|
const options = useMenuOptions(controls, query, known, steps);
|
|
193
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
193
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
194
194
|
/* @__PURE__ */ jsx(Collectors, {
|
|
195
195
|
controls,
|
|
196
196
|
query: searched,
|
|
@@ -3,7 +3,7 @@ import { FieldStep } from "./field-step.mjs";
|
|
|
3
3
|
import { MenuSearch } from "./menu-search.mjs";
|
|
4
4
|
import { Popover } from "./popover.mjs";
|
|
5
5
|
import { useRef, useState } from "react";
|
|
6
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
// src/filters/menu.tsx
|
|
8
8
|
const focusStep = (node) => {
|
|
9
9
|
node?.querySelector("input, button:not(.dd-fb-back)")?.focus({ preventScroll: true });
|
|
@@ -56,7 +56,7 @@ function FilterMenu({ controls, open, setOpen, openChip, hidden }) {
|
|
|
56
56
|
close,
|
|
57
57
|
openChip
|
|
58
58
|
};
|
|
59
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(MenuButton, {
|
|
59
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(MenuButton, {
|
|
60
60
|
anchor,
|
|
61
61
|
open,
|
|
62
62
|
hidden,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useBar, useWords } from "./context.mjs";
|
|
2
2
|
import { numberBounds, numberDraft, numberPresets, numberSides, unitText } from "./numbers.mjs";
|
|
3
3
|
import { useId, useState } from "react";
|
|
4
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
// src/filters/number.tsx
|
|
6
6
|
function QuickPicks({ edges, unit, ops, pick, onPick }) {
|
|
7
7
|
const words = useWords();
|
|
@@ -68,7 +68,7 @@ function Bounds({ name, unit, ops, current, bounds, setBounds, apply, problemId
|
|
|
68
68
|
/** What is wrong with the typed bounds, if anything, and Apply. */
|
|
69
69
|
function NumberFoot({ problem, errorId, apply }) {
|
|
70
70
|
const words = useWords();
|
|
71
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [problem === void 0 ? null : /* @__PURE__ */ jsx("p", {
|
|
71
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [problem === void 0 ? null : /* @__PURE__ */ jsx("p", {
|
|
72
72
|
id: errorId,
|
|
73
73
|
role: "alert",
|
|
74
74
|
className: "dd-fb-error",
|
|
@@ -2,7 +2,7 @@ import { useOpText, useWords } from "./context.mjs";
|
|
|
2
2
|
import { canFlip, isNegative } from "./logic.mjs";
|
|
3
3
|
import { Popover } from "./popover.mjs";
|
|
4
4
|
import { useRef, useState } from "react";
|
|
5
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
// src/filters/operator.tsx
|
|
7
7
|
const CHOICES = [false, true];
|
|
8
8
|
/** Arrow keys, Home and End move between a menu's items, as the ARIA menu pattern asks. */
|
|
@@ -54,7 +54,7 @@ function OperatorMenu({ control, pick, onChange }) {
|
|
|
54
54
|
className: "dd-fb-seg dd-fb-op",
|
|
55
55
|
children: opText(pick)
|
|
56
56
|
});
|
|
57
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("button", {
|
|
57
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("button", {
|
|
58
58
|
ref: button,
|
|
59
59
|
type: "button",
|
|
60
60
|
className: "dd-fb-seg dd-fb-op",
|
|
@@ -5,7 +5,7 @@ import { Sheet } from "./sheet.mjs";
|
|
|
5
5
|
import { useShortcuts } from "./state.mjs";
|
|
6
6
|
import { ValuesSummary } from "./values.mjs";
|
|
7
7
|
import { useState } from "react";
|
|
8
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
// src/filters/phone.tsx
|
|
10
10
|
/** A date range or a number filter's pick, said short. */
|
|
11
11
|
function PickText({ control }) {
|
|
@@ -86,7 +86,7 @@ function PhoneBar({ controls, removeLast, onReset }) {
|
|
|
86
86
|
useShortcuts(() => {
|
|
87
87
|
open(null);
|
|
88
88
|
}, removeLast);
|
|
89
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(PhoneRow, {
|
|
89
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(PhoneRow, {
|
|
90
90
|
inUse: controls.filter((c) => picks[c.id] !== void 0),
|
|
91
91
|
sheetOpen: sheet,
|
|
92
92
|
onOpen: open
|
|
@@ -3,13 +3,13 @@ import { useControlValues, useDebounced } from "./hooks.mjs";
|
|
|
3
3
|
import { Combobox } from "./listbox.mjs";
|
|
4
4
|
import { chosenOf, isNegative, offersNone, takesMany } from "./logic.mjs";
|
|
5
5
|
import { useMemo, useState } from "react";
|
|
6
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
// src/filters/values.tsx
|
|
8
8
|
/** What sits before a value: the host's mark, else a dot in the value's tone from the model. */
|
|
9
9
|
function Mark({ control, value }) {
|
|
10
10
|
const { fields, options } = useBar();
|
|
11
11
|
const own = options.renderMark?.(control, value);
|
|
12
|
-
if (own !== void 0) return /* @__PURE__ */ jsx(Fragment, { children: own });
|
|
12
|
+
if (own !== void 0) return /* @__PURE__ */ jsx(Fragment$1, { children: own });
|
|
13
13
|
const tones = fields[control.id]?.tones;
|
|
14
14
|
if (tones === void 0 || value === null) return null;
|
|
15
15
|
return /* @__PURE__ */ jsx("span", {
|
|
@@ -23,7 +23,7 @@ function ValuesSummary({ control, values }) {
|
|
|
23
23
|
const format = useFormat();
|
|
24
24
|
const [first] = values;
|
|
25
25
|
if (first === void 0) return null;
|
|
26
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
26
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
27
27
|
/* @__PURE__ */ jsx("span", {
|
|
28
28
|
className: "dd-fb-marks",
|
|
29
29
|
children: values.slice(0, 3).map((v) => /* @__PURE__ */ jsx(Mark, {
|
|
@@ -110,7 +110,7 @@ function ValuesFailed({ retry }) {
|
|
|
110
110
|
}
|
|
111
111
|
function ValueRow({ control, value }) {
|
|
112
112
|
const format = useFormat();
|
|
113
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Mark, {
|
|
113
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Mark, {
|
|
114
114
|
control,
|
|
115
115
|
value
|
|
116
116
|
}), /* @__PURE__ */ jsx("span", {
|