@malloy-publisher/sdk 0.9.1 → 0.9.2
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/{Dashboard-H1kJlDFo.es.js → DashboardTile-BFcxdv7R.es.js} +15918 -17760
- package/dist/DashboardTile-sg8LjUk8.cjs.js +137 -0
- package/dist/RenderedResult-B48wAjM8.cjs.js +141 -0
- package/dist/{RenderedResult-BRgIgxWh.es.js → RenderedResult-CBLHr32C.es.js} +193 -183
- package/dist/{ServerProvider-Boxrv6Ym.es.js → ServerProvider-DCV8BUWD.es.js} +529 -521
- package/dist/ServerProvider-HRqT3w1C.cjs.js +1 -0
- package/dist/builder/index.cjs.js +146 -58
- package/dist/builder/index.es.js +9076 -6479
- package/dist/builder-entry.d.ts +4 -0
- package/dist/client/api.d.ts +77 -47
- package/dist/client/configuration.d.ts +1 -1
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.es.js +84 -82
- package/dist/components/Dashboard/Dashboard.d.ts +8 -15
- package/dist/components/Dashboard/DashboardGrid.d.ts +23 -6
- package/dist/components/Dashboard/DashboardTile.d.ts +10 -1
- package/dist/components/Dashboard/DashboardView.d.ts +36 -0
- package/dist/components/Dashboard/TileCard.d.ts +15 -4
- package/dist/components/Dashboard/TileFilterTag.d.ts +12 -0
- package/dist/components/Dashboard/index.d.ts +3 -0
- package/dist/components/Dashboard/telemetry.d.ts +15 -3
- package/dist/components/DashboardBuilder/AddTileDialog.d.ts +8 -1
- package/dist/components/DashboardBuilder/BuilderToolbar.d.ts +16 -5
- package/dist/components/DashboardBuilder/ChartPicker.d.ts +29 -0
- package/dist/components/DashboardBuilder/DashboardBuilder.d.ts +48 -21
- package/dist/components/DashboardBuilder/DashboardEditor.d.ts +17 -4
- package/dist/components/DashboardBuilder/DiffDialog.d.ts +2 -10
- package/dist/components/DashboardBuilder/FilterDialog.d.ts +2 -2
- package/dist/components/DashboardBuilder/FilterStrip.d.ts +3 -1
- package/dist/components/DashboardBuilder/InlineMarkdown.d.ts +18 -0
- package/dist/components/DashboardBuilder/InlineText.d.ts +19 -0
- package/dist/components/DashboardBuilder/NotebookEditor.d.ts +15 -0
- package/dist/components/DashboardBuilder/SaveNotice.d.ts +27 -0
- package/dist/components/DashboardBuilder/SettingsPopover.d.ts +19 -7
- package/dist/components/DashboardBuilder/SourceViewPicker.d.ts +9 -0
- package/dist/components/DashboardBuilder/TextTileBody.d.ts +7 -0
- package/dist/components/DashboardBuilder/TileFrame.d.ts +14 -12
- package/dist/components/DashboardBuilder/TileMenu.d.ts +11 -3
- package/dist/components/DashboardBuilder/annotationText.d.ts +4 -0
- package/dist/components/DashboardBuilder/catalog.d.ts +4 -0
- package/dist/components/DashboardBuilder/changedTile.d.ts +7 -0
- package/dist/components/DashboardBuilder/chartLine.d.ts +33 -0
- package/dist/components/DashboardBuilder/controls.d.ts +2 -2
- package/dist/components/DashboardBuilder/document.d.ts +42 -26
- package/dist/components/DashboardBuilder/documentSession.d.ts +100 -0
- package/dist/components/DashboardBuilder/legacyNotebook.d.ts +73 -0
- package/dist/components/DashboardBuilder/loadMalloy.d.ts +15 -0
- package/dist/components/DashboardBuilder/malloyText.d.ts +45 -5
- package/dist/components/DashboardBuilder/malloyTree.d.ts +119 -0
- package/dist/components/DashboardBuilder/newDashboard.d.ts +3 -1
- package/dist/components/DashboardBuilder/openDraft.d.ts +10 -0
- package/dist/components/DashboardBuilder/preview.d.ts +24 -4
- package/dist/components/DashboardBuilder/readDocument.d.ts +4 -1
- package/dist/components/DashboardBuilder/readForEditor.d.ts +16 -0
- package/dist/components/DashboardBuilder/sortable.d.ts +14 -0
- package/dist/components/DashboardBuilder/spliceDocument.d.ts +13 -13
- package/dist/components/DashboardBuilder/spliceResult.d.ts +11 -0
- package/dist/components/DashboardBuilder/tagParse.d.ts +24 -0
- package/dist/components/DashboardBuilder/telemetry.d.ts +43 -0
- package/dist/components/DashboardBuilder/testing/fixtures.d.ts +3 -1
- package/dist/components/DashboardBuilder/testing/inline.d.ts +4 -0
- package/dist/components/DashboardBuilder/useBuilderSession.d.ts +89 -0
- package/dist/components/DashboardBuilder/useBuilderShortcuts.d.ts +9 -6
- package/dist/components/DashboardBuilder/useDashboardEditor.d.ts +17 -55
- package/dist/components/DashboardBuilder/useDocumentEditor.d.ts +105 -0
- package/dist/components/DashboardBuilder/useExitGuard.d.ts +19 -0
- package/dist/components/DashboardBuilder/useFilterForm.d.ts +3 -3
- package/dist/components/DocumentCreate/canRetry.d.ts +6 -0
- package/dist/components/DocumentCreate/createDocument.d.ts +58 -0
- package/dist/components/DocumentCreate/documentPath.d.ts +10 -0
- package/dist/components/DocumentCreate/events.d.ts +10 -0
- package/dist/components/DocumentCreate/exportedSources.d.ts +7 -0
- package/dist/components/DocumentCreate/guards.d.ts +12 -0
- package/dist/components/DocumentCreate/index.d.ts +6 -0
- package/dist/components/DocumentCreate/newNotebook.d.ts +9 -0
- package/dist/components/DocumentCreate/useDocumentChoices.d.ts +32 -0
- package/dist/components/DocumentStorage/DocumentStorage.d.ts +2 -1
- package/dist/components/NarrowEditGate.d.ts +8 -0
- package/dist/components/Notebook/Notebook.d.ts +1 -1
- package/dist/components/Package/NewDocumentDialog.d.ts +33 -0
- package/dist/components/Package/Package.d.ts +1 -0
- package/dist/components/Package/documentLocation.d.ts +28 -0
- package/dist/components/Package/index.d.ts +4 -0
- package/dist/components/Package/useDocumentLocation.d.ts +12 -0
- package/dist/components/PackageSection.d.ts +2 -2
- package/dist/components/RenderedResult/RenderedResult.d.ts +2 -0
- package/dist/components/RenderedResult/ResultContainer.d.ts +8 -1
- package/dist/components/RenderedResult/ResultPanel.d.ts +3 -1
- package/dist/components/RenderedResult/resultSizing.d.ts +9 -1
- package/dist/components/ServerProvider.d.ts +2 -1
- package/dist/components/UnsavedChangesDialog.d.ts +9 -0
- package/dist/components/given/GivensPanel.d.ts +2 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useNarrowScreen.d.ts +4 -0
- package/dist/hooks/useQueryResult.d.ts +2 -0
- package/dist/hooks/useSettled.d.ts +14 -0
- package/dist/index.cjs.js +23 -24
- package/dist/index.es.js +9714 -7072
- package/dist/text/index.cjs.js +1 -0
- package/dist/text/index.d.ts +2 -0
- package/dist/text/index.es.js +6 -0
- package/dist/text-entry-BJwltZiy.cjs.js +7 -0
- package/dist/text-entry-CbbBcZl8.es.js +196 -0
- package/dist/text-entry.d.ts +2 -0
- package/dist/utils/clock.d.ts +2 -0
- package/package.json +10 -1
- package/src/builder-entry.ts +35 -0
- package/src/components/Dashboard/Dashboard.tsx +27 -278
- package/src/components/Dashboard/DashboardGrid.tsx +68 -7
- package/src/components/Dashboard/DashboardTile.spec.tsx +24 -0
- package/src/components/Dashboard/DashboardTile.tsx +31 -4
- package/src/components/Dashboard/DashboardView.spec.tsx +212 -0
- package/src/components/Dashboard/DashboardView.tsx +352 -0
- package/src/components/Dashboard/RowsDialog.tsx +1 -1
- package/src/components/Dashboard/TileCard.tsx +44 -10
- package/src/components/Dashboard/TileFilterTag.spec.tsx +73 -0
- package/src/components/Dashboard/TileFilterTag.tsx +78 -0
- package/src/components/Dashboard/defaultTileSpan.spec.ts +32 -0
- package/src/components/Dashboard/index.ts +3 -0
- package/src/components/Dashboard/telemetry.ts +16 -5
- package/src/components/DashboardBuilder/AddTileDialog.spec.tsx +88 -0
- package/src/components/DashboardBuilder/AddTileDialog.tsx +137 -111
- package/src/components/DashboardBuilder/BuilderToolbar.tsx +85 -27
- package/src/components/DashboardBuilder/ChartPicker.render.spec.tsx +25 -0
- package/src/components/DashboardBuilder/ChartPicker.spec.ts +77 -0
- package/src/components/DashboardBuilder/ChartPicker.tsx +153 -0
- package/src/components/DashboardBuilder/DashboardBuilder.charts.spec.tsx +205 -0
- package/src/components/DashboardBuilder/DashboardBuilder.exit.spec.tsx +192 -0
- package/src/components/DashboardBuilder/DashboardBuilder.inline.spec.tsx +329 -0
- package/src/components/DashboardBuilder/DashboardBuilder.notebook.spec.tsx +363 -0
- package/src/components/DashboardBuilder/DashboardBuilder.notice.spec.tsx +194 -0
- package/src/components/DashboardBuilder/DashboardBuilder.openDraft.spec.tsx +157 -0
- package/src/components/DashboardBuilder/DashboardBuilder.sources.spec.tsx +124 -0
- package/src/components/DashboardBuilder/DashboardBuilder.spec.tsx +103 -78
- package/src/components/DashboardBuilder/DashboardBuilder.textTiles.spec.tsx +177 -0
- package/src/components/DashboardBuilder/DashboardBuilder.tsx +610 -315
- package/src/components/DashboardBuilder/DashboardEditor.authoritative.spec.tsx +58 -8
- package/src/components/DashboardBuilder/DashboardEditor.emptyStart.spec.tsx +191 -0
- package/src/components/DashboardBuilder/DashboardEditor.filterTag.spec.tsx +162 -0
- package/src/components/DashboardBuilder/DashboardEditor.notebook.spec.tsx +316 -0
- package/src/components/DashboardBuilder/DashboardEditor.package.spec.tsx +56 -10
- package/src/components/DashboardBuilder/DashboardEditor.resourceUri.spec.tsx +5 -22
- package/src/components/DashboardBuilder/DashboardEditor.spec.tsx +96 -14
- package/src/components/DashboardBuilder/DashboardEditor.tsx +482 -332
- package/src/components/DashboardBuilder/DiffDialog.spec.tsx +25 -0
- package/src/components/DashboardBuilder/DiffDialog.tsx +5 -24
- package/src/components/DashboardBuilder/DrillDialog.tsx +1 -1
- package/src/components/DashboardBuilder/FilterDialog.tsx +10 -3
- package/src/components/DashboardBuilder/FilterStrip.tsx +26 -4
- package/src/components/DashboardBuilder/InlineMarkdown.tsx +184 -0
- package/src/components/DashboardBuilder/InlineText.tsx +106 -0
- package/src/components/DashboardBuilder/NotebookEditor.tsx +44 -0
- package/src/components/DashboardBuilder/SaveNotice.tsx +113 -0
- package/src/components/DashboardBuilder/SettingsPopover.spec.tsx +87 -0
- package/src/components/DashboardBuilder/SettingsPopover.tsx +225 -67
- package/src/components/DashboardBuilder/SourceViewPicker.tsx +122 -0
- package/src/components/DashboardBuilder/TextTileBody.tsx +28 -0
- package/src/components/DashboardBuilder/TileFrame.tsx +89 -115
- package/src/components/DashboardBuilder/TileMenu.tsx +168 -90
- package/src/components/DashboardBuilder/annotationText.spec.ts +33 -0
- package/src/components/DashboardBuilder/annotationText.ts +17 -0
- package/src/components/DashboardBuilder/artifactBlock.spec.ts +248 -0
- package/src/components/DashboardBuilder/artifactTagParity.spec.ts +41 -0
- package/src/components/DashboardBuilder/catalog.aggregate.spec.ts +49 -0
- package/src/components/DashboardBuilder/catalog.spec.ts +2 -0
- package/src/components/DashboardBuilder/catalog.ts +61 -21
- package/src/components/DashboardBuilder/changedTile.spec.ts +46 -0
- package/src/components/DashboardBuilder/changedTile.ts +28 -0
- package/src/components/DashboardBuilder/chartLine.spec.ts +180 -0
- package/src/components/DashboardBuilder/chartLine.ts +121 -0
- package/src/components/DashboardBuilder/controls.spec.ts +21 -10
- package/src/components/DashboardBuilder/controls.ts +22 -8
- package/src/components/DashboardBuilder/document.ts +53 -5
- package/src/components/DashboardBuilder/documentSession.spec.ts +209 -0
- package/src/components/DashboardBuilder/documentSession.ts +257 -0
- package/src/components/DashboardBuilder/emptyStart.spec.ts +131 -0
- package/src/components/DashboardBuilder/invariants.spec.ts +6 -2
- package/src/components/DashboardBuilder/legacyNotebook.chart.spec.ts +77 -0
- package/src/components/DashboardBuilder/legacyNotebook.convert.spec.ts +630 -0
- package/src/components/DashboardBuilder/legacyNotebook.read.spec.ts +338 -0
- package/src/components/DashboardBuilder/legacyNotebook.ts +1117 -0
- package/src/components/DashboardBuilder/loadMalloy.spec.ts +80 -0
- package/src/components/DashboardBuilder/loadMalloy.ts +39 -0
- package/src/components/DashboardBuilder/malloyText.spec.ts +48 -0
- package/src/components/DashboardBuilder/malloyText.ts +181 -27
- package/src/components/DashboardBuilder/malloyTree.ts +155 -7
- package/src/components/DashboardBuilder/newDashboard.spec.ts +46 -2
- package/src/components/DashboardBuilder/newDashboard.ts +30 -3
- package/src/components/DashboardBuilder/openDraft.ts +52 -0
- package/src/components/DashboardBuilder/preview.shapes.spec.ts +75 -0
- package/src/components/DashboardBuilder/preview.spec.ts +159 -12
- package/src/components/DashboardBuilder/preview.ts +83 -9
- package/src/components/DashboardBuilder/readDocument.spec.ts +139 -27
- package/src/components/DashboardBuilder/readDocument.ts +130 -44
- package/src/components/DashboardBuilder/readForEditor.spec.ts +80 -0
- package/src/components/DashboardBuilder/readForEditor.ts +47 -0
- package/src/components/DashboardBuilder/scannerShapes.spec.ts +14 -13
- package/src/components/DashboardBuilder/sortable.spec.ts +65 -0
- package/src/components/DashboardBuilder/sortable.tsx +2 -12
- package/src/components/DashboardBuilder/spliceDocument.chart.spec.ts +340 -0
- package/src/components/DashboardBuilder/spliceDocument.imports.spec.ts +167 -0
- package/src/components/DashboardBuilder/spliceDocument.spec.ts +229 -94
- package/src/components/DashboardBuilder/spliceDocument.ts +762 -130
- package/src/components/DashboardBuilder/spliceResult.ts +15 -0
- package/src/components/DashboardBuilder/statementExtent.spec.ts +33 -30
- package/src/components/DashboardBuilder/tagParse.spec.ts +149 -0
- package/src/components/DashboardBuilder/tagParse.ts +103 -0
- package/src/components/DashboardBuilder/telemetry.ts +47 -0
- package/src/components/DashboardBuilder/testing/artifactTagParity.json +197 -0
- package/src/components/DashboardBuilder/testing/fixtures.ts +16 -1
- package/src/components/DashboardBuilder/testing/inline.ts +25 -0
- package/src/components/DashboardBuilder/textTiles.spec.ts +718 -0
- package/src/components/DashboardBuilder/useBuilderSession.spec.ts +335 -0
- package/src/components/DashboardBuilder/useBuilderSession.ts +292 -0
- package/src/components/DashboardBuilder/useBuilderShortcuts.overlay.spec.tsx +65 -0
- package/src/components/DashboardBuilder/useBuilderShortcuts.spec.tsx +60 -0
- package/src/components/DashboardBuilder/useBuilderShortcuts.ts +36 -10
- package/src/components/DashboardBuilder/useDashboardEditor.spec.ts +16 -13
- package/src/components/DashboardBuilder/useDashboardEditor.ts +54 -181
- package/src/components/DashboardBuilder/useDocumentEditor.spec.ts +565 -0
- package/src/components/DashboardBuilder/useDocumentEditor.ts +399 -0
- package/src/components/DashboardBuilder/useExitGuard.spec.ts +159 -0
- package/src/components/DashboardBuilder/useExitGuard.ts +89 -0
- package/src/components/DashboardBuilder/useFilterForm.existing.spec.tsx +41 -0
- package/src/components/DashboardBuilder/useFilterForm.spec.tsx +24 -2
- package/src/components/DashboardBuilder/useFilterForm.ts +41 -13
- package/src/components/DashboardBuilder/useTileReorder.spec.tsx +28 -5
- package/src/components/DashboardBuilder/useTileReorder.ts +5 -7
- package/src/components/DocumentCreate/canRetry.spec.ts +32 -0
- package/src/components/DocumentCreate/canRetry.ts +19 -0
- package/src/components/DocumentCreate/createDocument.spec.ts +310 -0
- package/src/components/DocumentCreate/createDocument.ts +159 -0
- package/src/components/DocumentCreate/documentPath.ts +40 -0
- package/src/components/DocumentCreate/events.ts +15 -0
- package/src/components/DocumentCreate/exportedSources.ts +25 -0
- package/src/components/DocumentCreate/guards.ts +45 -0
- package/src/components/DocumentCreate/index.ts +27 -0
- package/src/components/DocumentCreate/newNotebook.spec.ts +156 -0
- package/src/components/DocumentCreate/newNotebook.ts +44 -0
- package/src/components/DocumentCreate/useDocumentChoices.spec.tsx +138 -0
- package/src/components/DocumentCreate/useDocumentChoices.ts +113 -0
- package/src/components/DocumentStorage/DocumentStorage.ts +2 -1
- package/src/components/Model/ModelExplorer.spec.tsx +2 -2
- package/src/components/Model/SourcesExplorer.tsx +2 -4
- package/src/components/NarrowEditGate.spec.tsx +73 -0
- package/src/components/NarrowEditGate.tsx +29 -0
- package/src/components/Notebook/Notebook.layout.spec.tsx +94 -0
- package/src/components/Notebook/Notebook.tsx +66 -27
- package/src/components/Package/NewDocumentDialog.spec.tsx +749 -0
- package/src/components/Package/NewDocumentDialog.tsx +401 -0
- package/src/components/Package/Package.artifacts.spec.tsx +190 -0
- package/src/components/Package/Package.create.spec.tsx +380 -0
- package/src/components/Package/Package.notebooks.spec.tsx +18 -0
- package/src/components/Package/Package.tsx +366 -171
- package/src/components/Package/documentLocation.spec.ts +81 -0
- package/src/components/Package/documentLocation.ts +55 -0
- package/src/components/Package/index.ts +13 -0
- package/src/components/Package/useDocumentLocation.ts +59 -0
- package/src/components/PackageSection.tsx +2 -2
- package/src/components/RenderedResult/RenderedResult.tsx +18 -1
- package/src/components/RenderedResult/ResultContainer.tsx +44 -11
- package/src/components/RenderedResult/ResultPanel.tsx +4 -0
- package/src/components/RenderedResult/resultSizing.spec.ts +68 -0
- package/src/components/RenderedResult/resultSizing.ts +14 -3
- package/src/components/ServerProvider.tsx +2 -1
- package/src/components/UnsavedChangesDialog.spec.tsx +70 -0
- package/src/components/UnsavedChangesDialog.tsx +49 -0
- package/src/components/given/GivensPanel.spec.tsx +6 -6
- package/src/components/given/GivensPanel.tsx +3 -3
- package/src/components/index.ts +2 -0
- package/src/hooks/index.ts +3 -0
- package/src/hooks/useNarrowScreen.ts +21 -0
- package/src/hooks/useQueryResult.ts +16 -0
- package/src/hooks/useSettled.spec.ts +41 -0
- package/src/hooks/useSettled.ts +27 -0
- package/src/mainEntry.spec.ts +145 -0
- package/src/text-entry.ts +12 -0
- package/src/textEntry.spec.ts +118 -0
- package/src/utils/clock.spec.ts +12 -0
- package/src/utils/clock.ts +6 -0
- package/vite.config.ts +4 -0
- package/dist/Dashboard-ChyylkTD.cjs.js +0 -136
- package/dist/RenderedResult-AJPMUkAD.cjs.js +0 -135
- package/dist/ServerProvider-CXrOKD6g.cjs.js +0 -1
- package/dist/components/DashboardBuilder/useTileResize.d.ts +0 -29
- package/dist/components/Package/NewDashboardDialog.d.ts +0 -18
- package/src/components/DashboardBuilder/useTileResize.spec.tsx +0 -121
- package/src/components/DashboardBuilder/useTileResize.ts +0 -110
- package/src/components/Package/NewDashboardDialog.spec.tsx +0 -129
- package/src/components/Package/NewDashboardDialog.tsx +0 -265
|
@@ -1,88 +1,88 @@
|
|
|
1
1
|
import { jsx as I } from "react/jsx-runtime";
|
|
2
|
-
import { Box as
|
|
3
|
-
import { Suspense as
|
|
4
|
-
import { D as
|
|
5
|
-
import {
|
|
2
|
+
import { Box as ne, useTheme as he } from "@mui/material";
|
|
3
|
+
import { Suspense as me, useRef as z, useCallback as be, useMemo as fe, useEffect as ye, useLayoutEffect as pe } from "react";
|
|
4
|
+
import { D as ge, r as U, l as ve, b as we, a as ke, m as xe, c as Ce, d as le } from "./DashboardTile-BFcxdv7R.es.js";
|
|
5
|
+
import { aI as Re, aJ as Ee, aK as Se } from "./ServerProvider-DCV8BUWD.es.js";
|
|
6
6
|
const g = "publisher-drill";
|
|
7
|
-
function
|
|
7
|
+
function Ae(e, r) {
|
|
8
8
|
const t = /* @__PURE__ */ new Set();
|
|
9
|
-
let
|
|
9
|
+
let o;
|
|
10
10
|
try {
|
|
11
|
-
|
|
11
|
+
o = e.getMetadata()?.getAllFields() ?? [];
|
|
12
12
|
} catch {
|
|
13
13
|
return t;
|
|
14
14
|
}
|
|
15
15
|
const n = /* @__PURE__ */ new Set();
|
|
16
|
-
for (const
|
|
17
|
-
!
|
|
18
|
-
for (const
|
|
19
|
-
if (!
|
|
20
|
-
const l =
|
|
16
|
+
for (const a of o)
|
|
17
|
+
!a || r(a) || a.tag?.tag("hidden") === void 0 && n.add(a.tag?.text("label") ?? a.name);
|
|
18
|
+
for (const a of o) {
|
|
19
|
+
if (!a || !r(a)) continue;
|
|
20
|
+
const l = a.tag?.text("label") ?? a.name;
|
|
21
21
|
n.has(l) || t.add(l);
|
|
22
22
|
}
|
|
23
23
|
return t;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function M(e) {
|
|
26
26
|
const r = /^\s*(\d+)/.exec(e.style?.gridColumn ?? "");
|
|
27
27
|
return r ? r[1] : void 0;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Te(e, r) {
|
|
30
30
|
if (r.size !== 0)
|
|
31
31
|
for (const t of e.querySelectorAll(
|
|
32
32
|
".malloy-table"
|
|
33
33
|
)) {
|
|
34
|
-
const
|
|
34
|
+
const o = (l) => l.closest(".malloy-table") === t, n = /* @__PURE__ */ new Set();
|
|
35
35
|
for (const l of t.querySelectorAll(
|
|
36
36
|
".column-cell.th"
|
|
37
37
|
)) {
|
|
38
|
-
if (!
|
|
39
|
-
const s = (l.textContent ?? "").replace(/\u200b/g, "").trim(),
|
|
40
|
-
|
|
38
|
+
if (!o(l)) continue;
|
|
39
|
+
const s = (l.textContent ?? "").replace(/\u200b/g, "").trim(), b = M(l);
|
|
40
|
+
b && r.has(s) && n.add(b);
|
|
41
41
|
}
|
|
42
42
|
if (n.size === 0) continue;
|
|
43
|
-
const
|
|
43
|
+
const a = /* @__PURE__ */ new Set();
|
|
44
44
|
for (const l of t.querySelectorAll(
|
|
45
45
|
`.${g}[tabindex="0"]`
|
|
46
46
|
)) {
|
|
47
|
-
if (!
|
|
48
|
-
const s =
|
|
49
|
-
s && (
|
|
47
|
+
if (!o(l)) continue;
|
|
48
|
+
const s = M(l);
|
|
49
|
+
s && (a.has(s) ? l.tabIndex = -1 : a.add(s));
|
|
50
50
|
}
|
|
51
51
|
for (const l of t.querySelectorAll(
|
|
52
52
|
".column-cell.td"
|
|
53
53
|
)) {
|
|
54
|
-
if (!
|
|
55
|
-
const s =
|
|
56
|
-
if (s &&
|
|
54
|
+
if (!o(l)) continue;
|
|
55
|
+
const s = M(l), b = !l.querySelector(".value-null") && (l.textContent ?? "").trim() !== "";
|
|
56
|
+
if (s && b && n.has(s) && !l.querySelector(".malloy-table")) {
|
|
57
57
|
if (l.classList.add(g), l.tabIndex === 0)
|
|
58
|
-
|
|
58
|
+
a.add(s);
|
|
59
59
|
else {
|
|
60
|
-
const
|
|
61
|
-
|
|
60
|
+
const y = a.has(s);
|
|
61
|
+
y || a.add(s), l.tabIndex = y ? -1 : 0;
|
|
62
62
|
}
|
|
63
63
|
l.setAttribute("role", "button");
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
const r = e.closest(".malloy-table"), t =
|
|
68
|
+
function De(e) {
|
|
69
|
+
const r = e.closest(".malloy-table"), t = M(e);
|
|
70
70
|
return !r || !t ? [] : Array.from(
|
|
71
71
|
r.querySelectorAll(`.${g}`)
|
|
72
72
|
).filter(
|
|
73
|
-
(
|
|
73
|
+
(o) => o.closest(".malloy-table") === r && M(o) === t
|
|
74
74
|
);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
const t =
|
|
78
|
-
if (
|
|
79
|
-
const n = r === "first" ? t[0] : r === "last" ? t[t.length - 1] : t[Math.min(Math.max(
|
|
76
|
+
function ie(e, r) {
|
|
77
|
+
const t = De(e), o = t.indexOf(e);
|
|
78
|
+
if (o === -1) return;
|
|
79
|
+
const n = r === "first" ? t[0] : r === "last" ? t[t.length - 1] : t[Math.min(Math.max(o + r, 0), t.length - 1)];
|
|
80
80
|
if (n) {
|
|
81
|
-
for (const
|
|
81
|
+
for (const a of t) a.tabIndex = a === n ? 0 : -1;
|
|
82
82
|
return n;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Oe(e) {
|
|
86
86
|
return {
|
|
87
87
|
background: e.dashboardRoot,
|
|
88
88
|
tableBackground: e.tableBackground,
|
|
@@ -104,76 +104,76 @@ function Ae(e) {
|
|
|
104
104
|
mapColor: e.mapColor
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
const { foreground: r, axisFaint: t, font:
|
|
107
|
+
function _e(e) {
|
|
108
|
+
const { foreground: r, axisFaint: t, font: o } = e, n = {
|
|
109
109
|
background: e.background,
|
|
110
|
-
font:
|
|
111
|
-
title: { color: r, font:
|
|
110
|
+
font: o.family,
|
|
111
|
+
title: { color: r, font: o.family },
|
|
112
112
|
axis: {
|
|
113
113
|
labelColor: r,
|
|
114
114
|
titleColor: r,
|
|
115
115
|
domainColor: t,
|
|
116
116
|
tickColor: t,
|
|
117
117
|
gridColor: t,
|
|
118
|
-
labelFont:
|
|
119
|
-
titleFont:
|
|
118
|
+
labelFont: o.family,
|
|
119
|
+
titleFont: o.family
|
|
120
120
|
},
|
|
121
121
|
legend: {
|
|
122
122
|
labelColor: r,
|
|
123
123
|
titleColor: r,
|
|
124
|
-
labelFont:
|
|
125
|
-
titleFont:
|
|
124
|
+
labelFont: o.family,
|
|
125
|
+
titleFont: o.family
|
|
126
126
|
},
|
|
127
127
|
header: { labelColor: r, titleColor: r },
|
|
128
128
|
range: { category: e.series }
|
|
129
129
|
};
|
|
130
|
-
return (
|
|
130
|
+
return (a) => n;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Fe(e) {
|
|
133
133
|
if (!e) return;
|
|
134
134
|
const r = e.tag("theme");
|
|
135
135
|
if (!r) return;
|
|
136
|
-
const t = {},
|
|
137
|
-
if (
|
|
138
|
-
const
|
|
139
|
-
l && l.length > 0 && (
|
|
140
|
-
for (const s of
|
|
141
|
-
const
|
|
142
|
-
if (!
|
|
143
|
-
const
|
|
144
|
-
|
|
136
|
+
const t = {}, o = r.tag("palette");
|
|
137
|
+
if (o) {
|
|
138
|
+
const a = {}, l = o.textArray("series");
|
|
139
|
+
l && l.length > 0 && (a.series = l);
|
|
140
|
+
for (const s of Re) {
|
|
141
|
+
const b = o.tag(s);
|
|
142
|
+
if (!b) continue;
|
|
143
|
+
const y = {}, k = b.text("light"), v = b.text("dark");
|
|
144
|
+
k && (y.light = k), v && (y.dark = v), Object.keys(y).length > 0 && (a[s] = y);
|
|
145
145
|
}
|
|
146
|
-
Object.keys(
|
|
146
|
+
Object.keys(a).length > 0 && (t.palette = a);
|
|
147
147
|
}
|
|
148
148
|
const n = r.tag("font");
|
|
149
149
|
if (n) {
|
|
150
|
-
const
|
|
151
|
-
l && (
|
|
150
|
+
const a = {}, l = n.text("family");
|
|
151
|
+
l && (a.family = l);
|
|
152
152
|
const s = n.numeric("size");
|
|
153
|
-
typeof s == "number" && Number.isFinite(s) && (
|
|
153
|
+
typeof s == "number" && Number.isFinite(s) && (a.size = s), Object.keys(a).length > 0 && (t.font = a);
|
|
154
154
|
}
|
|
155
155
|
return Object.keys(t).length > 0 ? t : void 0;
|
|
156
156
|
}
|
|
157
|
-
const
|
|
157
|
+
const L = "data-publisher-fill", ze = async (e, r) => {
|
|
158
158
|
if (typeof window > "u")
|
|
159
159
|
throw new Error("MalloyRenderer can only be used in browser environment");
|
|
160
160
|
const { MalloyRenderer: t } = await import("@malloydata/render");
|
|
161
161
|
return new t({
|
|
162
162
|
onClick: r,
|
|
163
|
-
vegaConfigOverride:
|
|
163
|
+
vegaConfigOverride: _e(e),
|
|
164
164
|
// Pass the explicit theme so table chrome and dashboard tiles
|
|
165
165
|
// pick up the operator's colours directly. Without this the
|
|
166
166
|
// renderer's own inline style writes `--malloy-render--*` values
|
|
167
167
|
// sourced from its built-in defaults and shadows whatever we set
|
|
168
168
|
// on the outer wrapper.
|
|
169
|
-
theme:
|
|
169
|
+
theme: Oe(e),
|
|
170
170
|
onError: (n) => {
|
|
171
171
|
console.error("Error rendering visualization:", typeof n, n);
|
|
172
172
|
}
|
|
173
173
|
}).createViz();
|
|
174
174
|
};
|
|
175
175
|
typeof window < "u" && import("@malloydata/render");
|
|
176
|
-
async function
|
|
176
|
+
async function Ie(e) {
|
|
177
177
|
if (!e || typeof e != "object") return;
|
|
178
178
|
const r = e, t = [
|
|
179
179
|
...Array.isArray(r.model_annotations) ? r.model_annotations : [],
|
|
@@ -181,15 +181,15 @@ async function _e(e) {
|
|
|
181
181
|
...Array.isArray(r.annotations) ? r.annotations : []
|
|
182
182
|
].map((n) => typeof n?.value == "string" ? n.value : void 0).filter((n) => !!n);
|
|
183
183
|
if (t.length === 0) return;
|
|
184
|
-
let
|
|
184
|
+
let o;
|
|
185
185
|
try {
|
|
186
|
-
({ parseAnnotation:
|
|
186
|
+
({ parseAnnotation: o } = await ve());
|
|
187
187
|
} catch {
|
|
188
188
|
return;
|
|
189
189
|
}
|
|
190
190
|
try {
|
|
191
|
-
const { tag: n } =
|
|
192
|
-
return
|
|
191
|
+
const { tag: n } = o(t);
|
|
192
|
+
return Fe(n);
|
|
193
193
|
} catch (n) {
|
|
194
194
|
console.warn(
|
|
195
195
|
"Failed to parse # theme.* annotations; chart will render with the shell theme.",
|
|
@@ -198,12 +198,12 @@ async function _e(e) {
|
|
|
198
198
|
return;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
const
|
|
203
|
-
for (const [n,
|
|
204
|
-
e.style.setProperty(n,
|
|
201
|
+
function Le(e, r, t) {
|
|
202
|
+
const o = we(r, t);
|
|
203
|
+
for (const [n, a] of Object.entries(o))
|
|
204
|
+
e.style.setProperty(n, a);
|
|
205
205
|
}
|
|
206
|
-
const
|
|
206
|
+
const Me = `
|
|
207
207
|
/* Card geometry, through the renderer's OWN theme vars rather than over the top
|
|
208
208
|
of them. It declares --malloy-theme--dashboard-* on .malloy-render itself and
|
|
209
209
|
passes each through to the --malloy-render--* the card CSS reads, so a value
|
|
@@ -288,6 +288,12 @@ div.malloy-render .malloy-dashboard .dashboard-row-header {
|
|
|
288
288
|
.malloy-render .malloy-dashboard .dashboard-row-header-separator {
|
|
289
289
|
background: var(--malloy-render--table-border) !important;
|
|
290
290
|
}
|
|
291
|
+
/* !important because the malloy-explorer stylesheet pins these same properties with it. */
|
|
292
|
+
[${L}] .malloy-table.root {
|
|
293
|
+
height: 100% !important;
|
|
294
|
+
align-content: start !important;
|
|
295
|
+
grid-template-columns: repeat(var(--total-header-size), minmax(max-content, 1fr)) !important;
|
|
296
|
+
}
|
|
291
297
|
.malloy-render .malloy-table .th.column-cell {
|
|
292
298
|
/* Non-pinned tables have no header background in the renderer's
|
|
293
299
|
own CSS (only pinned scrolled tables paint the pinned-header
|
|
@@ -337,56 +343,59 @@ div.malloy-render .malloy-dashboard .dashboard-row-header {
|
|
|
337
343
|
color: var(--publisher-drill-link) !important;
|
|
338
344
|
text-decoration: underline;
|
|
339
345
|
}
|
|
340
|
-
`,
|
|
341
|
-
function
|
|
342
|
-
if (typeof document > "u" || document.getElementById(
|
|
346
|
+
`, se = "publisher-malloy-renderer-overrides";
|
|
347
|
+
function Be() {
|
|
348
|
+
if (typeof document > "u" || document.getElementById(se)) return;
|
|
343
349
|
const e = document.createElement("style");
|
|
344
|
-
e.id =
|
|
350
|
+
e.id = se, e.textContent = Me, document.head.appendChild(e);
|
|
345
351
|
}
|
|
346
|
-
function
|
|
352
|
+
function Ne({
|
|
347
353
|
result: e,
|
|
348
354
|
height: r,
|
|
349
355
|
drill: t,
|
|
350
|
-
onSizeChange:
|
|
351
|
-
onSizing: n
|
|
356
|
+
onSizeChange: o,
|
|
357
|
+
onSizing: n,
|
|
358
|
+
fill: a
|
|
352
359
|
}) {
|
|
353
|
-
const
|
|
354
|
-
|
|
355
|
-
const
|
|
356
|
-
|
|
357
|
-
}, []), y = t !== void 0,
|
|
360
|
+
const l = z(null), s = z(t);
|
|
361
|
+
s.current = t;
|
|
362
|
+
const b = be((c) => {
|
|
363
|
+
s.current?.onClick(c);
|
|
364
|
+
}, []), y = t !== void 0, k = z(!1), v = z(
|
|
358
365
|
null
|
|
359
|
-
),
|
|
366
|
+
), P = z(0), { theme: J, layers: X, mode: Y } = Ee(), W = he().shape.borderRadius, Q = fe(
|
|
360
367
|
() => ({
|
|
361
|
-
radius: `${
|
|
362
|
-
padding: `${
|
|
368
|
+
radius: `${W}px`,
|
|
369
|
+
padding: `${ge}px`
|
|
363
370
|
}),
|
|
364
|
-
[
|
|
371
|
+
[W]
|
|
365
372
|
);
|
|
366
|
-
return
|
|
367
|
-
|
|
373
|
+
return ye(() => () => {
|
|
374
|
+
P.current += 1;
|
|
368
375
|
const c = v.current;
|
|
369
376
|
c?.viz.remove(), c?.node.remove(), v.current = null;
|
|
370
|
-
}, []),
|
|
371
|
-
if (!
|
|
372
|
-
|
|
373
|
-
const c =
|
|
374
|
-
let
|
|
375
|
-
const
|
|
376
|
-
let d,
|
|
377
|
-
|
|
378
|
-
let p,
|
|
379
|
-
const
|
|
380
|
-
if (
|
|
381
|
-
const
|
|
382
|
-
if (
|
|
383
|
-
const
|
|
377
|
+
}, []), pe(() => {
|
|
378
|
+
if (!l.current || !e) return;
|
|
379
|
+
Be();
|
|
380
|
+
const c = l.current, de = P.current += 1;
|
|
381
|
+
let V = !1;
|
|
382
|
+
const q = () => !V && de === P.current;
|
|
383
|
+
let d, h, B = null, H = 0, N = null, $ = null, j = null, T = null, D = null, O = null, Z = null, ee = 0, C = null;
|
|
384
|
+
k.current = !1;
|
|
385
|
+
let p, R;
|
|
386
|
+
const K = (w) => {
|
|
387
|
+
if (V || !w.firstElementChild || U(p, R) === "container") return;
|
|
388
|
+
const _ = ke(p, R);
|
|
389
|
+
if (k.current && !_) return;
|
|
390
|
+
const F = c.hasAttribute(L);
|
|
391
|
+
F && c.removeAttribute(L);
|
|
392
|
+
const E = xe(
|
|
384
393
|
w,
|
|
385
|
-
|
|
394
|
+
le(p)
|
|
386
395
|
);
|
|
387
|
-
|
|
388
|
-
const
|
|
389
|
-
|
|
396
|
+
F && c.setAttribute(L, ""), E > 0 && (k.current = !0, o && E !== ee && (ee = E, o(E)));
|
|
397
|
+
const u = Ce(w, le(p));
|
|
398
|
+
_ && u && Z !== u && (Z = u, O?.disconnect(), O = new ResizeObserver(() => K(w)), O.observe(u));
|
|
390
399
|
};
|
|
391
400
|
return (async () => {
|
|
392
401
|
let w;
|
|
@@ -396,121 +405,122 @@ function Le({
|
|
|
396
405
|
console.error("Error parsing visualization result:", f);
|
|
397
406
|
return;
|
|
398
407
|
}
|
|
399
|
-
const
|
|
400
|
-
if (!
|
|
408
|
+
const _ = await Ie(w), F = _ ? Se([...X, _], Y) : J;
|
|
409
|
+
if (!q()) return;
|
|
401
410
|
try {
|
|
402
|
-
|
|
411
|
+
h = await ze(F, b);
|
|
403
412
|
} catch (f) {
|
|
404
413
|
console.error("Failed to create renderer:", f);
|
|
405
414
|
return;
|
|
406
415
|
}
|
|
407
|
-
if (!
|
|
408
|
-
|
|
416
|
+
if (!q()) {
|
|
417
|
+
h.remove(), h = void 0;
|
|
409
418
|
return;
|
|
410
419
|
}
|
|
411
|
-
const
|
|
412
|
-
d = document.createElement("div"), d.style.width = "100%", d.style.height = "100%",
|
|
420
|
+
const E = v.current;
|
|
421
|
+
d = document.createElement("div"), d.style.width = "100%", d.style.height = "100%", Le(d, F, Q), c.childElementCount > 0 && (c.style.position = "relative", d.style.position = "absolute", d.style.inset = "0", d.style.visibility = "hidden"), c.appendChild(d);
|
|
413
422
|
const u = d;
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
423
|
+
T = new MutationObserver(() => {
|
|
424
|
+
D && clearTimeout(D), D = setTimeout(() => {
|
|
425
|
+
K(u), k.current && T?.disconnect();
|
|
417
426
|
}, 100);
|
|
418
|
-
}),
|
|
427
|
+
}), T.observe(d, {
|
|
419
428
|
childList: !0,
|
|
420
429
|
subtree: !0,
|
|
421
430
|
attributes: !0
|
|
422
431
|
});
|
|
423
|
-
const
|
|
424
|
-
let
|
|
425
|
-
const
|
|
426
|
-
if (!(
|
|
427
|
-
|
|
432
|
+
const ce = h;
|
|
433
|
+
let re = !1;
|
|
434
|
+
const te = () => {
|
|
435
|
+
if (!(re || !q())) {
|
|
436
|
+
re = !0, C && (clearTimeout(C), C = null), E?.viz.remove();
|
|
428
437
|
for (const f of Array.from(c.children))
|
|
429
438
|
f !== u && c.removeChild(f);
|
|
430
|
-
u.style.position = "", u.style.inset = "", u.style.visibility = "", c.style.position = "", v.current = { viz:
|
|
439
|
+
u.style.position = "", u.style.inset = "", u.style.visibility = "", c.style.position = "", v.current = { viz: ce, node: u }, K(u);
|
|
431
440
|
}
|
|
432
441
|
};
|
|
433
442
|
try {
|
|
434
|
-
|
|
443
|
+
h.setResult(w);
|
|
435
444
|
try {
|
|
436
|
-
const
|
|
437
|
-
p =
|
|
445
|
+
const x = h.getMetadata(), S = x?.getRootField();
|
|
446
|
+
p = S?.renderAs(), R = S ? x?.getPluginsForField(S.key)?.[0]?.sizingStrategy : void 0;
|
|
438
447
|
} catch {
|
|
439
|
-
p = void 0,
|
|
448
|
+
p = void 0, R = void 0;
|
|
440
449
|
}
|
|
441
|
-
n?.(
|
|
442
|
-
const f =
|
|
450
|
+
n?.(U(p, R)), d.dataset.malloyRenderAs = p ?? "unknown", d.dataset.malloySizing = U(p, R), h.render(d);
|
|
451
|
+
const f = s.current;
|
|
443
452
|
try {
|
|
444
453
|
if (f) {
|
|
445
|
-
const
|
|
454
|
+
const x = Ae(h, f.canDrill), S = () => {
|
|
446
455
|
try {
|
|
447
|
-
|
|
456
|
+
Te(u, x);
|
|
448
457
|
} catch (i) {
|
|
449
458
|
console.warn("Drill affordance skipped:", i);
|
|
450
459
|
}
|
|
451
460
|
};
|
|
452
|
-
|
|
453
|
-
const
|
|
454
|
-
const
|
|
455
|
-
|
|
461
|
+
S();
|
|
462
|
+
const oe = (i) => {
|
|
463
|
+
const A = i.querySelector(".cell-content") ?? i, G = A.getBoundingClientRect();
|
|
464
|
+
A.dispatchEvent(
|
|
456
465
|
new MouseEvent("click", {
|
|
457
466
|
bubbles: !0,
|
|
458
467
|
cancelable: !0,
|
|
459
|
-
view:
|
|
460
|
-
clientX: Math.round(
|
|
461
|
-
clientY: Math.round(
|
|
468
|
+
view: A.ownerDocument.defaultView,
|
|
469
|
+
clientX: Math.round(G.left + G.width / 2),
|
|
470
|
+
clientY: Math.round(G.bottom)
|
|
462
471
|
})
|
|
463
472
|
);
|
|
464
|
-
},
|
|
465
|
-
|
|
473
|
+
}, ae = (i) => i.target?.closest?.(`.${g}`) ?? null, ue = (i, m) => {
|
|
474
|
+
ie(i, m)?.focus();
|
|
466
475
|
};
|
|
467
|
-
|
|
468
|
-
const
|
|
469
|
-
if (!
|
|
470
|
-
const
|
|
471
|
-
if (
|
|
472
|
-
i.preventDefault(),
|
|
476
|
+
N = (i) => {
|
|
477
|
+
const m = ae(i);
|
|
478
|
+
if (!m) return;
|
|
479
|
+
const A = i.key === "ArrowDown" ? 1 : i.key === "ArrowUp" ? -1 : i.key === "Home" ? "first" : i.key === "End" ? "last" : void 0;
|
|
480
|
+
if (A !== void 0) {
|
|
481
|
+
i.preventDefault(), ue(m, A);
|
|
473
482
|
return;
|
|
474
483
|
}
|
|
475
|
-
i.key === "Enter" ? (i.preventDefault(),
|
|
476
|
-
}, N = (i) => {
|
|
477
|
-
if (i.key !== " ") return;
|
|
478
|
-
const b = te(i);
|
|
479
|
-
b && (i.preventDefault(), re(b));
|
|
484
|
+
i.key === "Enter" ? (i.preventDefault(), oe(m)) : i.key === " " && i.preventDefault();
|
|
480
485
|
}, $ = (i) => {
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
486
|
+
if (i.key !== " ") return;
|
|
487
|
+
const m = ae(i);
|
|
488
|
+
m && (i.preventDefault(), oe(m));
|
|
489
|
+
}, j = (i) => {
|
|
490
|
+
const m = i.target?.closest?.(`.${g}`);
|
|
491
|
+
m && ie(m, 0);
|
|
492
|
+
}, u.addEventListener("keydown", N), u.addEventListener("keyup", $), u.addEventListener("focusin", j), x.size > 0 && typeof MutationObserver < "u" && (B = new MutationObserver(() => {
|
|
493
|
+
cancelAnimationFrame(H), H = requestAnimationFrame(S);
|
|
485
494
|
}), B.observe(u, {
|
|
486
495
|
childList: !0,
|
|
487
496
|
subtree: !0
|
|
488
497
|
}));
|
|
489
498
|
}
|
|
490
|
-
} catch (
|
|
491
|
-
console.warn("Drill affordance skipped:",
|
|
499
|
+
} catch (x) {
|
|
500
|
+
console.warn("Drill affordance skipped:", x);
|
|
492
501
|
}
|
|
493
|
-
|
|
502
|
+
h.onReady(te), C = setTimeout(te, 1e4);
|
|
494
503
|
} catch (f) {
|
|
495
|
-
console.error("Error rendering visualization:", f),
|
|
504
|
+
console.error("Error rendering visualization:", f), T?.disconnect(), O?.disconnect(), B?.disconnect(), h.remove(), h = void 0, u.parentNode === c && c.removeChild(u);
|
|
496
505
|
}
|
|
497
506
|
})(), () => {
|
|
498
|
-
|
|
507
|
+
V = !0, T?.disconnect(), O?.disconnect(), D && clearTimeout(D), C && clearTimeout(C), d && v.current?.node !== d && (N && d.removeEventListener("keydown", N), $ && d.removeEventListener("keyup", $), j && d.removeEventListener("focusin", j), B?.disconnect(), cancelAnimationFrame(H), h?.remove(), d.parentNode === c && c.removeChild(d), c.style.position = "");
|
|
499
508
|
};
|
|
500
509
|
}, [
|
|
501
510
|
e,
|
|
502
|
-
|
|
511
|
+
b,
|
|
503
512
|
y,
|
|
504
|
-
|
|
513
|
+
o,
|
|
505
514
|
n,
|
|
506
|
-
|
|
507
|
-
U,
|
|
515
|
+
J,
|
|
508
516
|
X,
|
|
509
|
-
|
|
517
|
+
Y,
|
|
518
|
+
Q
|
|
510
519
|
]), /* @__PURE__ */ I(
|
|
511
520
|
"div",
|
|
512
521
|
{
|
|
513
|
-
ref:
|
|
522
|
+
ref: l,
|
|
523
|
+
...a ? { [L]: "" } : {},
|
|
514
524
|
style: {
|
|
515
525
|
width: "100%",
|
|
516
526
|
height: r ? `${r}px` : "400px"
|
|
@@ -518,9 +528,9 @@ function Le({
|
|
|
518
528
|
}
|
|
519
529
|
);
|
|
520
530
|
}
|
|
521
|
-
function
|
|
531
|
+
function $e(e) {
|
|
522
532
|
return typeof window > "u" ? /* @__PURE__ */ I(
|
|
523
|
-
|
|
533
|
+
ne,
|
|
524
534
|
{
|
|
525
535
|
sx: {
|
|
526
536
|
width: "100%",
|
|
@@ -533,10 +543,10 @@ function Be(e) {
|
|
|
533
543
|
children: "Loading..."
|
|
534
544
|
}
|
|
535
545
|
) : /* @__PURE__ */ I(
|
|
536
|
-
|
|
546
|
+
me,
|
|
537
547
|
{
|
|
538
548
|
fallback: /* @__PURE__ */ I(
|
|
539
|
-
|
|
549
|
+
ne,
|
|
540
550
|
{
|
|
541
551
|
sx: {
|
|
542
552
|
width: "100%",
|
|
@@ -549,21 +559,21 @@ function Be(e) {
|
|
|
549
559
|
children: "Loading visualization..."
|
|
550
560
|
}
|
|
551
561
|
),
|
|
552
|
-
children: /* @__PURE__ */ I(
|
|
562
|
+
children: /* @__PURE__ */ I(Ne, { ...e })
|
|
553
563
|
}
|
|
554
564
|
);
|
|
555
565
|
}
|
|
556
|
-
const
|
|
566
|
+
const Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
557
567
|
__proto__: null,
|
|
558
|
-
default:
|
|
568
|
+
default: $e
|
|
559
569
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
560
570
|
export {
|
|
561
571
|
g as D,
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
572
|
+
$e as R,
|
|
573
|
+
_e as a,
|
|
574
|
+
Oe as b,
|
|
575
|
+
Ke as c,
|
|
576
|
+
Ae as d,
|
|
577
|
+
Te as m,
|
|
578
|
+
Fe as r
|
|
569
579
|
};
|