@malloy-publisher/sdk 0.9.0 → 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 +82 -48
- 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
package/dist/client/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-HRqT3w1C.cjs.js");exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileRequestScopeEnum=e.CompileRequestScopeEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.Configuration=e.Configuration;exports.ConnectionProxyTypeEnum=e.ConnectionProxyTypeEnum;exports.ConnectionStatusStatusEnum=e.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=e.ConnectionTypeEnum;exports.ConnectionsApi=e.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=e.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=e.ConnectionsApiFactory;exports.ConnectionsApiFp=e.ConnectionsApiFp;exports.ConnectionsTestApi=e.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=e.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=e.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=e.ConnectionsTestApiFp;exports.DashboardManifestKindEnum=e.DashboardManifestKindEnum;exports.DashboardTileKindEnum=e.DashboardTileKindEnum;exports.DashboardsApi=e.DashboardsApi;exports.DashboardsApiAxiosParamCreator=e.DashboardsApiAxiosParamCreator;exports.DashboardsApiFactory=e.DashboardsApiFactory;exports.DashboardsApiFp=e.DashboardsApiFp;exports.DataAppFitEnum=e.DataAppFitEnum;exports.DataAppsApi=e.DataAppsApi;exports.DataAppsApiAxiosParamCreator=e.DataAppsApiAxiosParamCreator;exports.DataAppsApiFactory=e.DataAppsApiFactory;exports.DataAppsApiFp=e.DataAppsApiFp;exports.DatabaseTypeEnum=e.DatabaseTypeEnum;exports.DatabasesApi=e.DatabasesApi;exports.DatabasesApiAxiosParamCreator=e.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=e.DatabasesApiFactory;exports.DatabasesApiFp=e.DatabasesApiFp;exports.EnvironmentsApi=e.EnvironmentsApi;exports.EnvironmentsApiAxiosParamCreator=e.EnvironmentsApiAxiosParamCreator;exports.EnvironmentsApiFactory=e.EnvironmentsApiFactory;exports.EnvironmentsApiFp=e.EnvironmentsApiFp;exports.ExecuteNotebookCellBypassFiltersEnum=e.ExecuteNotebookCellBypassFiltersEnum;exports.FilterTypeEnum=e.FilterTypeEnum;exports.FreshnessFallbackEnum=e.FreshnessFallbackEnum;exports.GivenControlEnum=e.GivenControlEnum;exports.LedgerEntryStrategyEnum=e.LedgerEntryStrategyEnum;exports.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;exports.ManifestEntryOriginEnum=e.ManifestEntryOriginEnum;exports.ManifestEntryRefreshEnum=e.ManifestEntryRefreshEnum;exports.MaterializationActionActionEnum=e.MaterializationActionActionEnum;exports.MaterializationStatus=e.MaterializationStatus;exports.MaterializationsApi=e.MaterializationsApi;exports.MaterializationsApiAxiosParamCreator=e.MaterializationsApiAxiosParamCreator;exports.MaterializationsApiFactory=e.MaterializationsApiFactory;exports.MaterializationsApiFp=e.MaterializationsApiFp;exports.ModelsApi=e.ModelsApi;exports.ModelsApiAxiosParamCreator=e.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=e.ModelsApiFactory;exports.ModelsApiFp=e.ModelsApiFp;exports.NotebookCellKindEnum=e.NotebookCellKindEnum;exports.NotebookCellResultKindEnum=e.NotebookCellResultKindEnum;exports.NotebookCellResultTypeEnum=e.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=e.NotebookCellTypeEnum;exports.NotebooksApi=e.NotebooksApi;exports.NotebooksApiAxiosParamCreator=e.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=e.NotebooksApiFactory;exports.NotebooksApiFp=e.NotebooksApiFp;exports.PackageEmbeddingIndexStatusEnum=e.PackageEmbeddingIndexStatusEnum;exports.PackageManifestBindingStatusEnum=e.PackageManifestBindingStatusEnum;exports.PackageQueryableSourcesEnum=e.PackageQueryableSourcesEnum;exports.PackageScopeEnum=e.PackageScopeEnum;exports.PackageStorageServeBindingsInnerOriginEnum=e.PackageStorageServeBindingsInnerOriginEnum;exports.PackageWarningsInnerSeverityEnum=e.PackageWarningsInnerSeverityEnum;exports.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PersistSourcePlanOriginEnum=e.PersistSourcePlanOriginEnum;exports.PostgresConnectionSslmodeEnum=e.PostgresConnectionSslmodeEnum;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.QueryClass=e.QueryClass;exports.QueryResultQueryRowLimitSourceEnum=e.QueryResultQueryRowLimitSourceEnum;exports.QueryResultServedFromEnum=e.QueryResultServedFromEnum;exports.RawNotebookFormatEnum=e.RawNotebookFormatEnum;exports.Realization=e.Realization;exports.RefusedSourceReasonEnum=e.RefusedSourceReasonEnum;exports.RefusedSourceTierEnum=e.RefusedSourceTierEnum;exports.RunContextTriggerEnum=e.RunContextTriggerEnum;exports.S3ConnectionProviderEnum=e.S3ConnectionProviderEnum;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.ThemeDefaultModeEnum=e.ThemeDefaultModeEnum;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.useServer=e.useServer;
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Malloy Publisher - Semantic Model Serving API
|
|
3
|
-
* The Malloy Publisher - Semantic Model Serving API provides access to Malloy packages and everything they contain. A Malloy package is a directory with a `publisher.json` manifest at its root, holding Malloy models (`.malloy` files), notebooks (`.malloynb` files and `.malloy` files
|
|
3
|
+
* The Malloy Publisher - Semantic Model Serving API provides access to Malloy packages and everything they contain. A Malloy package is a directory with a `publisher.json` manifest at its root, holding Malloy models (`.malloy` files), notebooks (`.malloynb` files and tagged `.malloy` files that are notebooks), embedded data (`.parquet`, `.csv`, and `.xlsx` files), and optionally an HTML data app under `public/`. ## Key Features - **Discovery**: List environments, packages, and the models, notebooks, data apps, and data a package contains - **Query Execution**: Run queries against models, execute notebooks a cell at a time, and compile-check Malloy without running it - **Data Apps**: In-package HTML data apps served from a package\'s `public/` directory - **Materializations**: Persist Malloy sources as tables, on a schedule or on demand - **Connection Management**: Configure and test warehouse connections, and browse their schemas and tables - **Watch Mode**: File watching, and a change-event stream for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Server ├── /status, /theme server state, and the UI theme ├── /connections/test validate a connection config ├── /watch-mode/… development file watching └── Environments ├── Connections schemas, tables, and ad-hoc SQL └── Packages ├── Models query and compile ├── Notebooks execute a cell at a time ├── Data Apps static HTML data apps from public/ ├── Databases embedded data files ├── Materializations persisted sources ├── Connections package-scoped connection access └── Events SSE stream of file changes ``` For worked examples, see the packages this server bundles (https://github.com/malloydata/publisher/tree/main/examples); the package format is documented in docs/packages.md (https://github.com/malloydata/publisher/blob/main/docs/packages.md).
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: v0
|
|
6
6
|
*
|
package/dist/client/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as o, C as i, b as n, c as t, d as r, e as p, f as u, g as
|
|
1
|
+
import { A as e, a as o, C as i, b as n, c as t, d as r, e as p, f as u, g as m, h as A, i as c, j as E, k as l, l as C, m as y, n as F, o as b, D as d, p as P, q as g, r as S, s as k, t as h, u as M, v as D, w as x, x as v, y as T, z as R, B as f, E as N, F as z, G as Q, H as W, I as B, J as K, K as O, L as w, M as I, N as L, O as q, P as G, Q as j, R as H, S as J, T as U, U as V, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as oa, a2 as ia, a3 as na, a4 as ta, a5 as ra, a6 as pa, a7 as ua, a8 as ma, a9 as Aa, aa as ca, ab as Ea, ac as la, ad as Ca, ae as ya, af as Fa, ag as ba, ah as da, ai as Pa, aj as ga, ak as Sa, al as ka, am as ha, an as Ma, ao as Da, ap as xa, aq as va, ar as Ta, as as Ra, at as fa, au as Na, av as za, aw as Qa, ax as Wa, ay as Ba, az as Ka, aA as Oa, aB as wa, aC as Ia, aD as La, aE as qa, aF as Ga, aG as ja, aH as Ha } from "../ServerProvider-DCV8BUWD.es.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AttachedDatabaseTypeEnum,
|
|
4
4
|
o as AzureConnectionAuthTypeEnum,
|
|
@@ -8,92 +8,94 @@ export {
|
|
|
8
8
|
r as Configuration,
|
|
9
9
|
p as ConnectionProxyTypeEnum,
|
|
10
10
|
u as ConnectionStatusStatusEnum,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
m as ConnectionTypeEnum,
|
|
12
|
+
A as ConnectionsApi,
|
|
13
13
|
c as ConnectionsApiAxiosParamCreator,
|
|
14
14
|
E as ConnectionsApiFactory,
|
|
15
15
|
l as ConnectionsApiFp,
|
|
16
16
|
C as ConnectionsTestApi,
|
|
17
17
|
y as ConnectionsTestApiAxiosParamCreator,
|
|
18
18
|
F as ConnectionsTestApiFactory,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
g as
|
|
23
|
-
S as
|
|
24
|
-
k as
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
v as
|
|
30
|
-
T as
|
|
31
|
-
R as
|
|
32
|
-
f as
|
|
33
|
-
N as
|
|
34
|
-
z as
|
|
35
|
-
Q as
|
|
36
|
-
W as
|
|
37
|
-
B as
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
H as
|
|
47
|
-
J as
|
|
48
|
-
U as
|
|
49
|
-
V as
|
|
50
|
-
X as
|
|
51
|
-
Y as
|
|
52
|
-
Z as
|
|
53
|
-
_ as
|
|
54
|
-
$ as
|
|
55
|
-
aa as
|
|
56
|
-
sa as
|
|
57
|
-
ea as
|
|
58
|
-
oa as
|
|
59
|
-
ia as
|
|
60
|
-
na as
|
|
61
|
-
ta as
|
|
62
|
-
ra as
|
|
63
|
-
pa as
|
|
64
|
-
ua as
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
ca as
|
|
68
|
-
Ea as
|
|
69
|
-
la as
|
|
70
|
-
Ca as
|
|
71
|
-
ya as
|
|
72
|
-
Fa as
|
|
19
|
+
b as ConnectionsTestApiFp,
|
|
20
|
+
d as DashboardManifestKindEnum,
|
|
21
|
+
P as DashboardTileKindEnum,
|
|
22
|
+
g as DashboardsApi,
|
|
23
|
+
S as DashboardsApiAxiosParamCreator,
|
|
24
|
+
k as DashboardsApiFactory,
|
|
25
|
+
h as DashboardsApiFp,
|
|
26
|
+
M as DataAppFitEnum,
|
|
27
|
+
D as DataAppsApi,
|
|
28
|
+
x as DataAppsApiAxiosParamCreator,
|
|
29
|
+
v as DataAppsApiFactory,
|
|
30
|
+
T as DataAppsApiFp,
|
|
31
|
+
R as DatabaseTypeEnum,
|
|
32
|
+
f as DatabasesApi,
|
|
33
|
+
N as DatabasesApiAxiosParamCreator,
|
|
34
|
+
z as DatabasesApiFactory,
|
|
35
|
+
Q as DatabasesApiFp,
|
|
36
|
+
W as EnvironmentsApi,
|
|
37
|
+
B as EnvironmentsApiAxiosParamCreator,
|
|
38
|
+
K as EnvironmentsApiFactory,
|
|
39
|
+
O as EnvironmentsApiFp,
|
|
40
|
+
w as ExecuteNotebookCellBypassFiltersEnum,
|
|
41
|
+
I as FilterTypeEnum,
|
|
42
|
+
L as FreshnessFallbackEnum,
|
|
43
|
+
q as GivenControlEnum,
|
|
44
|
+
G as LedgerEntryStrategyEnum,
|
|
45
|
+
j as LogMessageSeverityEnum,
|
|
46
|
+
H as ManifestEntryFreshnessFallbackEnum,
|
|
47
|
+
J as ManifestEntryOriginEnum,
|
|
48
|
+
U as ManifestEntryRefreshEnum,
|
|
49
|
+
V as MaterializationActionActionEnum,
|
|
50
|
+
X as MaterializationStatus,
|
|
51
|
+
Y as MaterializationsApi,
|
|
52
|
+
Z as MaterializationsApiAxiosParamCreator,
|
|
53
|
+
_ as MaterializationsApiFactory,
|
|
54
|
+
$ as MaterializationsApiFp,
|
|
55
|
+
aa as ModelsApi,
|
|
56
|
+
sa as ModelsApiAxiosParamCreator,
|
|
57
|
+
ea as ModelsApiFactory,
|
|
58
|
+
oa as ModelsApiFp,
|
|
59
|
+
ia as NotebookCellKindEnum,
|
|
60
|
+
na as NotebookCellResultKindEnum,
|
|
61
|
+
ta as NotebookCellResultTypeEnum,
|
|
62
|
+
ra as NotebookCellTypeEnum,
|
|
63
|
+
pa as NotebooksApi,
|
|
64
|
+
ua as NotebooksApiAxiosParamCreator,
|
|
65
|
+
ma as NotebooksApiFactory,
|
|
66
|
+
Aa as NotebooksApiFp,
|
|
67
|
+
ca as PackageEmbeddingIndexStatusEnum,
|
|
68
|
+
Ea as PackageManifestBindingStatusEnum,
|
|
69
|
+
la as PackageQueryableSourcesEnum,
|
|
70
|
+
Ca as PackageScopeEnum,
|
|
71
|
+
ya as PackageStorageServeBindingsInnerOriginEnum,
|
|
72
|
+
Fa as PackageWarningsInnerSeverityEnum,
|
|
73
|
+
ba as PackagesApi,
|
|
74
|
+
da as PackagesApiAxiosParamCreator,
|
|
73
75
|
Pa as PackagesApiFactory,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
76
|
+
ga as PackagesApiFp,
|
|
77
|
+
Sa as PersistSourcePlanOriginEnum,
|
|
78
|
+
ka as PostgresConnectionSslmodeEnum,
|
|
79
|
+
ha as PublisherApi,
|
|
80
|
+
Ma as PublisherApiAxiosParamCreator,
|
|
81
|
+
Da as PublisherApiFactory,
|
|
82
|
+
xa as PublisherApiFp,
|
|
83
|
+
va as QueryClass,
|
|
84
|
+
Ta as QueryResultQueryRowLimitSourceEnum,
|
|
85
|
+
Ra as QueryResultServedFromEnum,
|
|
86
|
+
fa as RawNotebookFormatEnum,
|
|
87
|
+
Na as Realization,
|
|
88
|
+
za as RefusedSourceReasonEnum,
|
|
89
|
+
Qa as RefusedSourceTierEnum,
|
|
90
|
+
Wa as RunContextTriggerEnum,
|
|
91
|
+
Ba as S3ConnectionProviderEnum,
|
|
92
|
+
Ka as ServerProvider,
|
|
93
|
+
Oa as ServerStatusOperationalStateEnum,
|
|
94
|
+
wa as ThemeDefaultModeEnum,
|
|
95
|
+
Ia as WatchModeApi,
|
|
96
|
+
La as WatchModeApiAxiosParamCreator,
|
|
97
|
+
qa as WatchModeApiFactory,
|
|
98
|
+
Ga as WatchModeApiFp,
|
|
99
|
+
ja as globalQueryClient,
|
|
100
|
+
Ha as useServer
|
|
99
101
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { DrillNavigation } from '../drill';
|
|
2
2
|
import { DashboardEventHandler } from './telemetry';
|
|
3
|
+
import { TileChrome } from './TileCard';
|
|
3
4
|
export { DEFAULT_COLUMNS, tileGridColumn } from './DashboardGrid';
|
|
5
|
+
export { DashboardProse } from './DashboardView';
|
|
4
6
|
export interface DashboardProps {
|
|
5
7
|
/** `publisher://environments/{env}/packages/{pkg}`, optionally `?versionId=`. */
|
|
6
8
|
resourceUri: string;
|
|
@@ -41,6 +43,11 @@ export interface DashboardProps {
|
|
|
41
43
|
maxResultSize?: number;
|
|
42
44
|
/** The rows shown and tiles explored, for the host to log or count. */
|
|
43
45
|
onEvent?: DashboardEventHandler;
|
|
46
|
+
/**
|
|
47
|
+
* `card` (default) draws each tile as a panel; `none` draws them bare, a
|
|
48
|
+
* document that reads top to bottom.
|
|
49
|
+
*/
|
|
50
|
+
chrome?: TileChrome;
|
|
44
51
|
}
|
|
45
52
|
/**
|
|
46
53
|
* A Malloyyo-style dashboard: a control row over one or more query results,
|
|
@@ -51,19 +58,5 @@ export interface DashboardProps {
|
|
|
51
58
|
* Console and an external React app render the same component and differ only
|
|
52
59
|
* in what they do with `onNavigate` and `onGivensChange`.
|
|
53
60
|
*/
|
|
54
|
-
export declare function Dashboard({ resourceUri, dashboard, givens, onGivensChange, onNavigate, height, maxResultSize, onEvent, }: DashboardProps): import("react/jsx-runtime").JSX.Element;
|
|
55
|
-
/**
|
|
56
|
-
* The prose header itself, over the two fields it actually needs.
|
|
57
|
-
*
|
|
58
|
-
* Separate from {@link DashboardHeader} so the BUILDER can render the same
|
|
59
|
-
* header over a `DashboardDocument` — which carries `title` and `description`
|
|
60
|
-
* but is not a manifest. Same argument as {@link tileGridColumn}: what the
|
|
61
|
-
* builder shows a author is the thing a reader will see, and one component is
|
|
62
|
-
* what stops the two drifting. A builder that restated this markdown block
|
|
63
|
-
* would be one edit away from showing a different header than it writes.
|
|
64
|
-
*/
|
|
65
|
-
export declare function DashboardProse({ title, description, }: {
|
|
66
|
-
title: string;
|
|
67
|
-
description?: string;
|
|
68
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
61
|
+
export declare function Dashboard({ resourceUri, dashboard, givens, onGivensChange, onNavigate, height, maxResultSize, onEvent, chrome, }: DashboardProps): import("react/jsx-runtime").JSX.Element;
|
|
69
62
|
export default Dashboard;
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
/** Grid width when the dashboard declares no `# dashboard { columns=N }`. */
|
|
3
3
|
export declare const DEFAULT_COLUMNS = 2;
|
|
4
|
+
/** The widest grid the builder offers; the server lints wider ones and the reader still renders them. */
|
|
5
|
+
export declare const MAX_COLUMNS = 24;
|
|
6
|
+
/** A tile's width after an arrow nudge, held to the grid and to what the builder offers. */
|
|
7
|
+
export declare const nudgedSpan: (current: number, delta: 1 | -1, columns: number) => number;
|
|
8
|
+
/** A tile's width for a width preset: a share of the grid, held to what the builder offers. */
|
|
9
|
+
export declare const presetSpan: (columns: number, share: number) => number;
|
|
4
10
|
/**
|
|
5
11
|
* The gutter between tiles, in px.
|
|
6
12
|
*
|
|
7
|
-
* A number rather than a `gap: 2` spacing unit because
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* `getBoundingClientRect`. Exported so the value the grid paints and the value
|
|
11
|
-
* the drag solves with cannot drift apart.
|
|
13
|
+
* A number rather than a `gap: 2` spacing unit because a tile's default span is
|
|
14
|
+
* solved for the track width in px. Exported so the builder's column guides sit
|
|
15
|
+
* on the same gutters the grid paints.
|
|
12
16
|
*/
|
|
13
17
|
export declare const GRID_GAP_PX = 16;
|
|
14
18
|
/**
|
|
@@ -24,6 +28,14 @@ export declare function tileGridColumn(tile: {
|
|
|
24
28
|
colspan?: number;
|
|
25
29
|
break?: boolean;
|
|
26
30
|
}, columns: number): string;
|
|
31
|
+
/**
|
|
32
|
+
* Columns a tile with no `# colspan` spans so it is at least `minTilePx` wide.
|
|
33
|
+
*
|
|
34
|
+
* In a 12 or 16 column grid a one-column tile is a sliver a few dozen px wide.
|
|
35
|
+
* Only tiles that never asked for a width are widened, so an explicit
|
|
36
|
+
* `colspan=1` stays the author's call. An unmeasured width changes nothing.
|
|
37
|
+
*/
|
|
38
|
+
export declare function defaultTileSpan(columns: number, containerPx: number, minTilePx: number): number;
|
|
27
39
|
/** The layout a tile carries, whatever else its own shape holds. */
|
|
28
40
|
export interface GridTile {
|
|
29
41
|
colspan?: number;
|
|
@@ -52,7 +64,7 @@ export interface GridTile {
|
|
|
52
64
|
* builder wraps one in its selection outline. Anything this component rendered
|
|
53
65
|
* on their behalf would be a third opinion about what a tile looks like.
|
|
54
66
|
*/
|
|
55
|
-
export declare function DashboardGrid<T extends GridTile>({ tiles, columns, keyOf, renderTile, }: {
|
|
67
|
+
export declare function DashboardGrid<T extends GridTile>({ tiles, columns, keyOf, renderTile, minTilePx, }: {
|
|
56
68
|
tiles: readonly T[];
|
|
57
69
|
/** Track count — `# dashboard { columns=N }`, or {@link DEFAULT_COLUMNS}. */
|
|
58
70
|
columns: number;
|
|
@@ -64,4 +76,9 @@ export declare function DashboardGrid<T extends GridTile>({ tiles, columns, keyO
|
|
|
64
76
|
*/
|
|
65
77
|
keyOf: (tile: T, index: number) => string;
|
|
66
78
|
renderTile: (tile: T, index: number) => ReactNode;
|
|
79
|
+
/**
|
|
80
|
+
* Floor on the width of a tile that sets no `colspan`. Off by default: the
|
|
81
|
+
* builder assumes an unset colspan is one column.
|
|
82
|
+
*/
|
|
83
|
+
minTilePx?: number;
|
|
67
84
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GivenValue } from '../../hooks/givenValue';
|
|
2
2
|
import { DrillBinding } from '../drill';
|
|
3
|
+
import { TileChrome, TileHeadingSlots } from './TileCard';
|
|
3
4
|
export interface DashboardTileProps {
|
|
4
5
|
environmentName: string;
|
|
5
6
|
packageName: string;
|
|
@@ -10,10 +11,14 @@ export interface DashboardTileProps {
|
|
|
10
11
|
queryName?: string;
|
|
11
12
|
/** A run expression (a composite tile). */
|
|
12
13
|
tile?: string;
|
|
14
|
+
/** Annotation lines placed above the tile's `run:`, which stack on the view's own. */
|
|
15
|
+
annotation?: string;
|
|
13
16
|
/** `# label` on the view the tile names, when it has one. */
|
|
14
17
|
label?: string;
|
|
15
18
|
/** `# subtitle` on it: a second line under the heading. */
|
|
16
19
|
subtitle?: string;
|
|
20
|
+
/** The heading's text as nodes, which replace `label` and `subtitle` where a surface edits them in place. */
|
|
21
|
+
heading?: TileHeadingSlots;
|
|
17
22
|
/** `# borderless` on it: no card around the result. */
|
|
18
23
|
borderless?: boolean;
|
|
19
24
|
/**
|
|
@@ -40,6 +45,10 @@ export interface DashboardTileProps {
|
|
|
40
45
|
* the heading, on hover; absent, the heading has no button.
|
|
41
46
|
*/
|
|
42
47
|
onExplore?: () => void;
|
|
48
|
+
/** `none` draws the result bare, its label a quiet caption above it. */
|
|
49
|
+
chrome?: TileChrome;
|
|
50
|
+
/** Labels of the page's filters this tile ignores, shown as a warning chip. */
|
|
51
|
+
ignoredFilters?: readonly string[];
|
|
43
52
|
}
|
|
44
53
|
/**
|
|
45
54
|
* A composite tile's heading when the view it names carries no `# label`: the
|
|
@@ -59,4 +68,4 @@ export declare function tileTitle(tile: string): string;
|
|
|
59
68
|
* tile: the broken one shows its error in place and the rest of the grid still
|
|
60
69
|
* renders, rather than one failure blanking the page.
|
|
61
70
|
*/
|
|
62
|
-
export declare function DashboardTile({ environmentName, packageName, versionId, modelPath, queryName, tile, label, subtitle, borderless, givens, declaredTypes, givenNames, height, maxResultSize, drill, onExplore, }: DashboardTileProps): import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
export declare function DashboardTile({ environmentName, packageName, versionId, modelPath, queryName, tile, annotation, label, subtitle, heading, borderless, givens, declaredTypes, givenNames, height, maxResultSize, drill, onExplore, chrome, ignoredFilters, }: DashboardTileProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DashboardManifest } from '../../client';
|
|
2
|
+
import { DrillNavigation } from '../drill';
|
|
3
|
+
import { DashboardEventHandler } from './telemetry';
|
|
4
|
+
import { TileChrome } from './TileCard';
|
|
5
|
+
export interface DashboardViewProps {
|
|
6
|
+
/** The dashboard, or the tile layout a layout notebook carries. */
|
|
7
|
+
manifest: DashboardManifest;
|
|
8
|
+
environmentName: string;
|
|
9
|
+
packageName: string;
|
|
10
|
+
versionId?: string;
|
|
11
|
+
/** The slug or path the manifest was fetched under, which keys its control edits. */
|
|
12
|
+
documentName: string;
|
|
13
|
+
givens?: Record<string, string>;
|
|
14
|
+
onGivensChange?: (givens: Record<string, string>, managed: readonly string[]) => void;
|
|
15
|
+
onNavigate?: (target: DrillNavigation, event?: MouseEvent) => void;
|
|
16
|
+
height?: number;
|
|
17
|
+
maxResultSize?: number;
|
|
18
|
+
onEvent?: DashboardEventHandler;
|
|
19
|
+
/** `none` renders tiles as a document, with no cards or title block. */
|
|
20
|
+
chrome?: TileChrome;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A loaded dashboard manifest, drawn: the control row and the tile grid.
|
|
24
|
+
*
|
|
25
|
+
* Split from the manifest fetch so a notebook written as a tile layout, whose
|
|
26
|
+
* manifest arrives inside the notebook response, renders through the same code.
|
|
27
|
+
*/
|
|
28
|
+
export declare function DashboardView({ manifest, environmentName, packageName, versionId, documentName, givens, onGivensChange, onNavigate, height, maxResultSize, onEvent, chrome, }: DashboardViewProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
/**
|
|
30
|
+
* The prose header over just the two fields it needs, so the BUILDER can draw
|
|
31
|
+
* the same header over a `DashboardDocument`, which is not a manifest.
|
|
32
|
+
*/
|
|
33
|
+
export declare function DashboardProse({ title, description, }: {
|
|
34
|
+
title: string;
|
|
35
|
+
description?: string;
|
|
36
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { SxProps, Theme } from '@mui/material';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
/** `card` is a dashboard tile's panel; `none` is a notebook's bare flow. */
|
|
4
|
+
export type TileChrome = "card" | "none";
|
|
3
5
|
/**
|
|
4
6
|
* The card a dashboard tile sits in, and nothing else — so the builder, which
|
|
5
7
|
* draws a stand-in tile when it has no server to run one, draws the same card
|
|
@@ -28,19 +30,28 @@ import { ReactNode } from 'react';
|
|
|
28
30
|
* narrow below the chart it holds so the renderer redraws the chart to fit.
|
|
29
31
|
* See the `minWidth: 0` note in `DashboardGrid` for the rest of that chain.
|
|
30
32
|
*/
|
|
31
|
-
export declare function TileCard({ borderless, sx, children, }: {
|
|
33
|
+
export declare function TileCard({ borderless, chrome, sx, children, }: {
|
|
32
34
|
borderless?: boolean;
|
|
35
|
+
/** `none` drops the card entirely, for a document that reads top to bottom. */
|
|
36
|
+
chrome?: TileChrome;
|
|
33
37
|
sx?: SxProps<Theme>;
|
|
34
38
|
children: ReactNode;
|
|
35
39
|
}): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
/** The heading's text as nodes, for a surface that makes it editable in place. */
|
|
41
|
+
export interface TileHeadingSlots {
|
|
42
|
+
title: ReactNode;
|
|
43
|
+
subtitle: ReactNode;
|
|
44
|
+
}
|
|
36
45
|
/**
|
|
37
46
|
* A tile's heading: its `# label`, and its `# subtitle` under it. In the
|
|
38
47
|
* instance theme's title colour and face, so a tile is titled the same
|
|
39
48
|
* whichever surface draws it.
|
|
40
49
|
*/
|
|
41
|
-
export declare function TileHeading({ title, subtitle, tooltip, action, }: {
|
|
42
|
-
|
|
43
|
-
|
|
50
|
+
export declare function TileHeading({ title, subtitle, tooltip, action, quiet, }: {
|
|
51
|
+
/** A small caption instead of a heading, for a tile with no card around it. */
|
|
52
|
+
quiet?: boolean;
|
|
53
|
+
title: ReactNode;
|
|
54
|
+
subtitle?: ReactNode;
|
|
44
55
|
/** What actually ran, kept reachable without being the heading. */
|
|
45
56
|
tooltip?: string;
|
|
46
57
|
/** A control on the heading's row, hard right — the tile's Explore button. */
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Given } from '../../client';
|
|
2
|
+
/**
|
|
3
|
+
* Display labels of the controls on the page that a tile does NOT read.
|
|
4
|
+
*
|
|
5
|
+
* `givenNames` undefined means discovery could not resolve the tile, so the
|
|
6
|
+
* whole control row applies, as it does when the tile runs: nothing to warn of.
|
|
7
|
+
*/
|
|
8
|
+
export declare function tileIgnoredFilterLabels(givenNames: readonly string[] | undefined, declared: readonly Given[]): string[];
|
|
9
|
+
/** A small amber chip naming the page's filters a tile ignores; nothing when it reads them all. */
|
|
10
|
+
export declare function TileFilterTag({ ignored }: {
|
|
11
|
+
ignored: readonly string[];
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export { Dashboard, type DashboardProps } from './Dashboard';
|
|
2
|
+
export { DashboardView, type DashboardViewProps } from './DashboardView';
|
|
3
|
+
export { TileFilterTag, tileIgnoredFilterLabels } from './TileFilterTag';
|
|
2
4
|
export { DashboardTile, type DashboardTileProps } from './DashboardTile';
|
|
3
5
|
export type { DashboardEvent, DashboardEventHandler } from './telemetry';
|
|
4
6
|
export { TileCard, TileHeading } from './TileCard';
|
|
7
|
+
export type { TileHeadingSlots } from './TileCard';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { SavesTo } from '../DashboardBuilder/documentSession';
|
|
2
|
+
import { DashboardCreatedEvent } from '../DocumentCreate/events';
|
|
1
3
|
/**
|
|
2
4
|
* What a dashboard surface reports about itself, for the host to log or
|
|
3
5
|
* count: the operations that matter (open, save, the rows behind a value,
|
|
@@ -37,7 +39,7 @@ export type DashboardEvent = {
|
|
|
37
39
|
* "dashboards are being edited" unreadable, because a read-only server
|
|
38
40
|
* reports exactly as much saving as a writable one.
|
|
39
41
|
*/
|
|
40
|
-
where:
|
|
42
|
+
where: SavesTo;
|
|
41
43
|
/** The workspace that took the write, so the event says so itself. */
|
|
42
44
|
workspace?: string;
|
|
43
45
|
durationMs: number;
|
|
@@ -45,6 +47,18 @@ export type DashboardEvent = {
|
|
|
45
47
|
type: "dashboard.save_refused";
|
|
46
48
|
reason: string;
|
|
47
49
|
} | {
|
|
50
|
+
/** Undo save wrote the file back as it was before the last save. */
|
|
51
|
+
type: "dashboard.save_undone";
|
|
52
|
+
tiles: number;
|
|
53
|
+
/** Whether the save it took back added or removed a tile. */
|
|
54
|
+
structural: boolean;
|
|
55
|
+
where: SavesTo;
|
|
56
|
+
workspace?: string;
|
|
57
|
+
durationMs: number;
|
|
58
|
+
} | {
|
|
59
|
+
type: "dashboard.save_undo_refused";
|
|
60
|
+
reason: string;
|
|
61
|
+
} | DashboardCreatedEvent | {
|
|
48
62
|
type: "dashboard.rows_shown";
|
|
49
63
|
source: string;
|
|
50
64
|
view: string;
|
|
@@ -56,5 +70,3 @@ export type DashboardEvent = {
|
|
|
56
70
|
tile: string;
|
|
57
71
|
};
|
|
58
72
|
export type DashboardEventHandler = (event: DashboardEvent) => void;
|
|
59
|
-
/** A monotonic clock in milliseconds, for durations. */
|
|
60
|
-
export declare const now: () => number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PackageCatalog } from './catalog';
|
|
2
|
+
import { ChartPick } from './chartLine';
|
|
2
3
|
import { DashboardDocument } from './document';
|
|
3
4
|
/**
|
|
4
5
|
* What a new tile is: a view, picked from the package, on a source this file
|
|
@@ -22,6 +23,10 @@ export interface NewTile {
|
|
|
22
23
|
/** The view, as the catalog names it. */
|
|
23
24
|
view: string;
|
|
24
25
|
label?: string;
|
|
26
|
+
/** A chart for the tile; absent keeps the view's own. */
|
|
27
|
+
chart?: ChartPick | "none";
|
|
28
|
+
/** The chart tags the view carries, so the chart line negates only those. */
|
|
29
|
+
chartCarried?: string[];
|
|
25
30
|
colspan: number;
|
|
26
31
|
}
|
|
27
32
|
export interface AddTileDialogProps {
|
|
@@ -31,5 +36,7 @@ export interface AddTileDialogProps {
|
|
|
31
36
|
columns: number;
|
|
32
37
|
onClose: () => void;
|
|
33
38
|
onAdd: (tile: NewTile) => void;
|
|
39
|
+
/** Add an empty text tile, whose markdown is written on the tile itself. */
|
|
40
|
+
onAddText: () => void;
|
|
34
41
|
}
|
|
35
|
-
export declare function AddTileDialog({ open, document, catalog, columns, onClose, onAdd, }: AddTileDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare function AddTileDialog({ open, document, catalog, columns, onClose, onAdd, onAddText, }: AddTileDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, Ref } from 'react';
|
|
2
|
+
import { SavesTo } from './documentSession';
|
|
3
|
+
/** Where Save puts the document, in the words under the button. */
|
|
4
|
+
export declare const SAVE_TARGET: Record<SavesTo, string>;
|
|
2
5
|
/**
|
|
3
6
|
* The edit bar across the top of the builder: that you are editing on the
|
|
4
7
|
* left, what you can do about it on the right, in the same {@link DashboardBar}
|
|
@@ -21,11 +24,19 @@ export interface BuilderToolbarProps {
|
|
|
21
24
|
saving: boolean;
|
|
22
25
|
/** Absent when the builder has nowhere to save: no Save, no unsaved marker. */
|
|
23
26
|
onSave?: () => void;
|
|
24
|
-
/**
|
|
27
|
+
/** Where Save writes, shown under the button. */
|
|
28
|
+
savesTo?: SavesTo;
|
|
29
|
+
/** The backend's own words for where Save writes; replaces the generic line for `savesTo`. */
|
|
30
|
+
saveLabel?: string;
|
|
31
|
+
/** The Save button, so focus can return to it after an Undo save. */
|
|
32
|
+
saveButton?: Ref<HTMLButtonElement>;
|
|
33
|
+
/** The host's own extra actions, beside Done. */
|
|
25
34
|
actions?: ReactNode;
|
|
35
|
+
/** Leave editing: draws "Close" at the right edge. Absent, no such button. */
|
|
36
|
+
onExit?: () => void;
|
|
26
37
|
/** Open the add-tile picker. Absent when the host passed no catalog to pick from. */
|
|
27
38
|
onAddTile?: () => void;
|
|
28
|
-
/** Open the page's settings, anchored to the button that asked. */
|
|
29
|
-
onSettings
|
|
39
|
+
/** Open the page's settings, anchored to the button that asked. Absent, no Settings button. */
|
|
40
|
+
onSettings?: (anchor: HTMLElement) => void;
|
|
30
41
|
}
|
|
31
|
-
export declare function BuilderToolbar({ canUndo, canRedo, onUndo, onRedo, dirty, saving, onSave, actions, onAddTile, onSettings, }: BuilderToolbarProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare function BuilderToolbar({ canUndo, canRedo, onUndo, onRedo, dirty, saving, onSave, savesTo, saveLabel, saveButton, actions, onExit, onAddTile, onSettings, }: BuilderToolbarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CatalogView } from './catalog';
|
|
2
|
+
import { ChartState } from './chartLine';
|
|
3
|
+
export interface ChartChoice {
|
|
4
|
+
value: ChartState;
|
|
5
|
+
label: string;
|
|
6
|
+
/** Listed but not pickable; `reason` says what the view would need. */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
reason?: string;
|
|
9
|
+
}
|
|
10
|
+
/** Why a view is absent, so the reason on a disabled choice says whether to wait or to pick another. */
|
|
11
|
+
export type ViewStatus = "loading" | "unlisted";
|
|
12
|
+
/**
|
|
13
|
+
* Every chart a cell can be set to; one the view cannot render is listed disabled with its reason, so it is discoverable rather than missing.
|
|
14
|
+
* Whatever the cell has now stays selectable, so the select never shows a value it does not offer.
|
|
15
|
+
*/
|
|
16
|
+
export declare function chartChoices(view: Pick<CatalogView, "chart" | "aggregateOnly"> | undefined, current: ChartState, viewStatus?: ViewStatus): ChartChoice[];
|
|
17
|
+
export declare function ChartPicker({ state, view, viewStatus, cellLabel, disabledReason, onOpen, onChange, }: {
|
|
18
|
+
state: ChartState;
|
|
19
|
+
/** The catalog's view this cell runs, when it is one the catalog knows. */
|
|
20
|
+
view: Pick<CatalogView, "chart" | "aggregateOnly"> | undefined;
|
|
21
|
+
/** Why `view` is absent, worded into the reasons on the charts that need its shape. */
|
|
22
|
+
viewStatus?: ViewStatus;
|
|
23
|
+
/** Which cell this is, so the control is named apart from its neighbours. */
|
|
24
|
+
cellLabel: string;
|
|
25
|
+
disabledReason?: string;
|
|
26
|
+
/** The choices are being looked at, which is when a host may fetch what it needs to offer more. */
|
|
27
|
+
onOpen?: () => void;
|
|
28
|
+
onChange: (next: ChartState) => void;
|
|
29
|
+
}): import("react/jsx-runtime").JSX.Element;
|