@iota-uz/sdk 0.4.43 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +11 -142
- package/dist/client-host/applet.d.ts +52 -0
- package/dist/client-host/applet.d.ts.map +1 -0
- package/dist/client-host/applet.js +24 -0
- package/dist/client-host/cache.d.ts +15 -0
- package/dist/client-host/cache.d.ts.map +1 -0
- package/dist/client-host/cache.js +27 -0
- package/dist/client-host/errors.d.ts +16 -0
- package/dist/client-host/errors.d.ts.map +1 -0
- package/dist/client-host/errors.js +45 -0
- package/dist/client-host/identity.d.ts +21 -0
- package/dist/client-host/identity.d.ts.map +1 -0
- package/dist/client-host/identity.js +28 -0
- package/dist/client-host/index.d.ts +11 -0
- package/dist/client-host/index.d.ts.map +1 -0
- package/dist/client-host/index.js +10 -0
- package/dist/client-host/portals.d.ts +30 -0
- package/dist/client-host/portals.d.ts.map +1 -0
- package/dist/client-host/portals.js +149 -0
- package/dist/client-host/protocol.d.ts +2 -0
- package/dist/client-host/protocol.d.ts.map +1 -0
- package/dist/client-host/protocol.js +2 -0
- package/dist/client-host/route.d.ts +29 -0
- package/dist/client-host/route.d.ts.map +1 -0
- package/dist/client-host/route.js +32 -0
- package/dist/client-host/rpc.d.ts +46 -0
- package/dist/client-host/rpc.d.ts.map +1 -0
- package/dist/client-host/rpc.js +90 -0
- package/dist/client-host/streaming.d.ts +43 -0
- package/dist/client-host/streaming.d.ts.map +1 -0
- package/dist/client-host/streaming.js +141 -0
- package/dist/client-host/transport.d.ts +26 -0
- package/dist/client-host/transport.d.ts.map +1 -0
- package/dist/client-host/transport.js +53 -0
- package/dist/lens/CascadePanel-DqOZFdR-.js +512 -0
- package/dist/lens/ChartDataEquivalent-BFDdHoQn.js +52 -0
- package/dist/lens/ChartHost-Bl2lxIqU.js +68 -0
- package/dist/lens/ChartPanel-CTIp_4YE.js +720 -0
- package/dist/lens/CoveragePanel-DZZWkjSv.js +131 -0
- package/dist/lens/DashboardPanels.d.ts +36 -0
- package/dist/lens/DashboardPanels.d.ts.map +1 -0
- package/dist/lens/GaugePanel-BcNdd_Wj.js +43 -0
- package/dist/lens/LensDashboard.d.ts +21 -0
- package/dist/lens/LensDashboard.d.ts.map +1 -0
- package/dist/lens/MapPanel-6sI_Ei9L.js +178 -0
- package/dist/lens/MetricFlowPanel-LzqevSPs.js +70 -0
- package/dist/lens/MetricHierarchyPanel-h6tJqRPg.js +72 -0
- package/dist/lens/MetricRelationshipPanel-CgckUvvJ.js +54 -0
- package/dist/lens/PrintReport-DJv4Rm_U.js +1351 -0
- package/dist/lens/TablePanel-Dh6bXlwM.js +619 -0
- package/dist/lens/adapter-zBDC8hbZ.js +29093 -0
- package/dist/lens/breakpoints.d.ts +37 -0
- package/dist/lens/breakpoints.d.ts.map +1 -0
- package/dist/lens/charts/adapter.d.ts +157 -0
- package/dist/lens/charts/adapter.d.ts.map +1 -0
- package/dist/lens/charts/echarts/adapter.d.ts +9 -0
- package/dist/lens/charts/echarts/adapter.d.ts.map +1 -0
- package/dist/lens/charts/echarts/distributions.d.ts +9 -0
- package/dist/lens/charts/echarts/distributions.d.ts.map +1 -0
- package/dist/lens/charts/echarts/events.d.ts +7 -0
- package/dist/lens/charts/echarts/events.d.ts.map +1 -0
- package/dist/lens/charts/echarts/options.d.ts +163 -0
- package/dist/lens/charts/echarts/options.d.ts.map +1 -0
- package/dist/lens/charts/echarts/theme.d.ts +49 -0
- package/dist/lens/charts/echarts/theme.d.ts.map +1 -0
- package/dist/lens/charts/echarts/tooltip.d.ts +79 -0
- package/dist/lens/charts/echarts/tooltip.d.ts.map +1 -0
- package/dist/lens/charts/index.d.ts +9 -0
- package/dist/lens/charts/index.d.ts.map +1 -0
- package/dist/lens/charts/keys.d.ts +8 -0
- package/dist/lens/charts/keys.d.ts.map +1 -0
- package/dist/lens/charts/overlays.d.ts +134 -0
- package/dist/lens/charts/overlays.d.ts.map +1 -0
- package/dist/lens/charts/palette.d.ts +54 -0
- package/dist/lens/charts/palette.d.ts.map +1 -0
- package/dist/lens/charts/scales.d.ts +26 -0
- package/dist/lens/charts/scales.d.ts.map +1 -0
- package/dist/lens/charts/shares.d.ts +44 -0
- package/dist/lens/charts/shares.d.ts.map +1 -0
- package/dist/lens/charts/text.d.ts +23 -0
- package/dist/lens/charts/text.d.ts.map +1 -0
- package/dist/lens/contract/index.d.ts +4 -0
- package/dist/lens/contract/index.d.ts.map +1 -0
- package/dist/lens/contract/palette.d.ts +13 -0
- package/dist/lens/contract/palette.d.ts.map +1 -0
- package/dist/lens/contract/schemas.d.ts +132 -0
- package/dist/lens/contract/schemas.d.ts.map +1 -0
- package/dist/lens/contract/types.d.ts +788 -0
- package/dist/lens/contract/types.d.ts.map +1 -0
- package/dist/lens/controls/Calendar.d.ts +24 -0
- package/dist/lens/controls/Calendar.d.ts.map +1 -0
- package/dist/lens/controls/CompareFilterControl.d.ts +23 -0
- package/dist/lens/controls/CompareFilterControl.d.ts.map +1 -0
- package/dist/lens/controls/FacetFilterMenu.d.ts +29 -0
- package/dist/lens/controls/FacetFilterMenu.d.ts.map +1 -0
- package/dist/lens/controls/FilterBar.d.ts +30 -0
- package/dist/lens/controls/FilterBar.d.ts.map +1 -0
- package/dist/lens/controls/PeriodFilterControl.d.ts +50 -0
- package/dist/lens/controls/PeriodFilterControl.d.ts.map +1 -0
- package/dist/lens/controls/SegmentedFilterControl.d.ts +22 -0
- package/dist/lens/controls/SegmentedFilterControl.d.ts.map +1 -0
- package/dist/lens/controls/facetOptions.d.ts +33 -0
- package/dist/lens/controls/facetOptions.d.ts.map +1 -0
- package/dist/lens/controls/index.d.ts +6 -0
- package/dist/lens/controls/index.d.ts.map +1 -0
- package/dist/lens/controls/model.d.ts +181 -0
- package/dist/lens/controls/model.d.ts.map +1 -0
- package/dist/lens/drillPrefetch-Bs-6Oyxa.js +68 -0
- package/dist/lens/element.d.ts +12 -0
- package/dist/lens/element.d.ts.map +1 -0
- package/dist/lens/explore/ContextMiniChart.d.ts +18 -0
- package/dist/lens/explore/ContextMiniChart.d.ts.map +1 -0
- package/dist/lens/explore/DrillOverlay.d.ts +66 -0
- package/dist/lens/explore/DrillOverlay.d.ts.map +1 -0
- package/dist/lens/explore/ExplorePanel.d.ts +8 -0
- package/dist/lens/explore/ExplorePanel.d.ts.map +1 -0
- package/dist/lens/explore/FocusContextHeader.d.ts +20 -0
- package/dist/lens/explore/FocusContextHeader.d.ts.map +1 -0
- package/dist/lens/explore/LensSelector.d.ts +17 -0
- package/dist/lens/explore/LensSelector.d.ts.map +1 -0
- package/dist/lens/explore/SourceDataDisclosure.d.ts +15 -0
- package/dist/lens/explore/SourceDataDisclosure.d.ts.map +1 -0
- package/dist/lens/explore/actions.d.ts +22 -0
- package/dist/lens/explore/actions.d.ts.map +1 -0
- package/dist/lens/explore/focusModel.d.ts +55 -0
- package/dist/lens/explore/focusModel.d.ts.map +1 -0
- package/dist/lens/explore/index.d.ts +9 -0
- package/dist/lens/explore/index.d.ts.map +1 -0
- package/dist/lens/explore/model.d.ts +59 -0
- package/dist/lens/explore/model.d.ts.map +1 -0
- package/dist/lens/export-B0U20F4u.js +57 -0
- package/dist/lens/icons.d.ts +103 -0
- package/dist/lens/icons.d.ts.map +1 -0
- package/dist/lens/idlePrefetch-Bi4Wk1uR.js +80 -0
- package/dist/lens/index-C45DAO6w.js +10883 -0
- package/dist/lens/index-CspKnSQn.js +11 -0
- package/dist/lens/index.d.ts +7 -0
- package/dist/lens/index.d.ts.map +1 -0
- package/dist/lens/index.js +17 -0
- package/dist/lens/install-3GLgv_LN.js +2028 -0
- package/dist/lens/install-B5oSx3pv.js +233 -0
- package/dist/lens/install-DT0AQkUj.js +1490 -0
- package/dist/lens/install-DyXK20dR.js +307 -0
- package/dist/lens/keys-DenV5HsJ.js +12 -0
- package/dist/lens/listSearch.d.ts +12 -0
- package/dist/lens/listSearch.d.ts.map +1 -0
- package/dist/lens/metricViews-QvoFHVdh.js +170 -0
- package/dist/lens/panels/CascadePanel.d.ts +138 -0
- package/dist/lens/panels/CascadePanel.d.ts.map +1 -0
- package/dist/lens/panels/ChartDataEquivalent.d.ts +23 -0
- package/dist/lens/panels/ChartDataEquivalent.d.ts.map +1 -0
- package/dist/lens/panels/ChartHost.d.ts +14 -0
- package/dist/lens/panels/ChartHost.d.ts.map +1 -0
- package/dist/lens/panels/ChartPanel.d.ts +29 -0
- package/dist/lens/panels/ChartPanel.d.ts.map +1 -0
- package/dist/lens/panels/CopyValueButton.d.ts +15 -0
- package/dist/lens/panels/CopyValueButton.d.ts.map +1 -0
- package/dist/lens/panels/CoveragePanel.d.ts +17 -0
- package/dist/lens/panels/CoveragePanel.d.ts.map +1 -0
- package/dist/lens/panels/ExportMenu.d.ts +12 -0
- package/dist/lens/panels/ExportMenu.d.ts.map +1 -0
- package/dist/lens/panels/GaugePanel.d.ts +6 -0
- package/dist/lens/panels/GaugePanel.d.ts.map +1 -0
- package/dist/lens/panels/InfoTip.d.ts +50 -0
- package/dist/lens/panels/InfoTip.d.ts.map +1 -0
- package/dist/lens/panels/MapPanel.d.ts +17 -0
- package/dist/lens/panels/MapPanel.d.ts.map +1 -0
- package/dist/lens/panels/MetricFlowPanel.d.ts +6 -0
- package/dist/lens/panels/MetricFlowPanel.d.ts.map +1 -0
- package/dist/lens/panels/MetricHierarchyPanel.d.ts +6 -0
- package/dist/lens/panels/MetricHierarchyPanel.d.ts.map +1 -0
- package/dist/lens/panels/MetricRelationshipPanel.d.ts +14 -0
- package/dist/lens/panels/MetricRelationshipPanel.d.ts.map +1 -0
- package/dist/lens/panels/PanelExportMenu.d.ts +5 -0
- package/dist/lens/panels/PanelExportMenu.d.ts.map +1 -0
- package/dist/lens/panels/PanelFrame.d.ts +42 -0
- package/dist/lens/panels/PanelFrame.d.ts.map +1 -0
- package/dist/lens/panels/PanelOverlay.d.ts +19 -0
- package/dist/lens/panels/PanelOverlay.d.ts.map +1 -0
- package/dist/lens/panels/QualityChip.d.ts +51 -0
- package/dist/lens/panels/QualityChip.d.ts.map +1 -0
- package/dist/lens/panels/ShareSliceButton.d.ts +3 -0
- package/dist/lens/panels/ShareSliceButton.d.ts.map +1 -0
- package/dist/lens/panels/Skeleton.d.ts +67 -0
- package/dist/lens/panels/Skeleton.d.ts.map +1 -0
- package/dist/lens/panels/StatPanel.d.ts +52 -0
- package/dist/lens/panels/StatPanel.d.ts.map +1 -0
- package/dist/lens/panels/StatValueTicker.d.ts +27 -0
- package/dist/lens/panels/StatValueTicker.d.ts.map +1 -0
- package/dist/lens/panels/TablePanel.d.ts +19 -0
- package/dist/lens/panels/TablePanel.d.ts.map +1 -0
- package/dist/lens/panels/WaterfallPlot.d.ts +51 -0
- package/dist/lens/panels/WaterfallPlot.d.ts.map +1 -0
- package/dist/lens/panels/actions.d.ts +75 -0
- package/dist/lens/panels/actions.d.ts.map +1 -0
- package/dist/lens/panels/context.d.ts +32 -0
- package/dist/lens/panels/context.d.ts.map +1 -0
- package/dist/lens/panels/data.d.ts +95 -0
- package/dist/lens/panels/data.d.ts.map +1 -0
- package/dist/lens/panels/kinds.d.ts +4 -0
- package/dist/lens/panels/kinds.d.ts.map +1 -0
- package/dist/lens/panels/metricViews.d.ts +79 -0
- package/dist/lens/panels/metricViews.d.ts.map +1 -0
- package/dist/lens/panels/registry.d.ts +45 -0
- package/dist/lens/panels/registry.d.ts.map +1 -0
- package/dist/lens/panels/useIsClamped.d.ts +16 -0
- package/dist/lens/panels/useIsClamped.d.ts.map +1 -0
- package/dist/lens/panels/useMenuButton.d.ts +68 -0
- package/dist/lens/panels/useMenuButton.d.ts.map +1 -0
- package/dist/lens/prefetch-Dov5CBoH.js +74 -0
- package/dist/lens/prefetchPanels-B7bIY0bM.js +31 -0
- package/dist/lens/print/PrintReport.d.ts +12 -0
- package/dist/lens/print/PrintReport.d.ts.map +1 -0
- package/dist/lens/print/footnotes.d.ts +29 -0
- package/dist/lens/print/footnotes.d.ts.map +1 -0
- package/dist/lens/print/formula.d.ts +9 -0
- package/dist/lens/print/formula.d.ts.map +1 -0
- package/dist/lens/print/narrative.d.ts +41 -0
- package/dist/lens/print/narrative.d.ts.map +1 -0
- package/dist/lens/print/outline.d.ts +94 -0
- package/dist/lens/print/outline.d.ts.map +1 -0
- package/dist/lens/print/palette.d.ts +23 -0
- package/dist/lens/print/palette.d.ts.map +1 -0
- package/dist/lens/print/quality.d.ts +32 -0
- package/dist/lens/print/quality.d.ts.map +1 -0
- package/dist/lens/print/units.d.ts +23 -0
- package/dist/lens/print/units.d.ts.map +1 -0
- package/dist/lens/print/values.d.ts +28 -0
- package/dist/lens/print/values.d.ts.map +1 -0
- package/dist/lens/print-CwcB0fug.js +216 -0
- package/dist/lens/runtime/clipboard.d.ts +11 -0
- package/dist/lens/runtime/clipboard.d.ts.map +1 -0
- package/dist/lens/runtime/document.d.ts +9 -0
- package/dist/lens/runtime/document.d.ts.map +1 -0
- package/dist/lens/runtime/drawer.d.ts +21 -0
- package/dist/lens/runtime/drawer.d.ts.map +1 -0
- package/dist/lens/runtime/drill.d.ts +54 -0
- package/dist/lens/runtime/drill.d.ts.map +1 -0
- package/dist/lens/runtime/drillPrefetch.d.ts +22 -0
- package/dist/lens/runtime/drillPrefetch.d.ts.map +1 -0
- package/dist/lens/runtime/export.d.ts +21 -0
- package/dist/lens/runtime/export.d.ts.map +1 -0
- package/dist/lens/runtime/filters.d.ts +51 -0
- package/dist/lens/runtime/filters.d.ts.map +1 -0
- package/dist/lens/runtime/focusTrap.d.ts +4 -0
- package/dist/lens/runtime/focusTrap.d.ts.map +1 -0
- package/dist/lens/runtime/format.d.ts +81 -0
- package/dist/lens/runtime/format.d.ts.map +1 -0
- package/dist/lens/runtime/idlePrefetch.d.ts +35 -0
- package/dist/lens/runtime/idlePrefetch.d.ts.map +1 -0
- package/dist/lens/runtime/index.d.ts +15 -0
- package/dist/lens/runtime/index.d.ts.map +1 -0
- package/dist/lens/runtime/navigate.d.ts +12 -0
- package/dist/lens/runtime/navigate.d.ts.map +1 -0
- package/dist/lens/runtime/navigation.d.ts +77 -0
- package/dist/lens/runtime/navigation.d.ts.map +1 -0
- package/dist/lens/runtime/overlayContainer.d.ts +24 -0
- package/dist/lens/runtime/overlayContainer.d.ts.map +1 -0
- package/dist/lens/runtime/panel.d.ts +47 -0
- package/dist/lens/runtime/panel.d.ts.map +1 -0
- package/dist/lens/runtime/panelImage.d.ts +28 -0
- package/dist/lens/runtime/panelImage.d.ts.map +1 -0
- package/dist/lens/runtime/prefetch.d.ts +48 -0
- package/dist/lens/runtime/prefetch.d.ts.map +1 -0
- package/dist/lens/runtime/prefetchPanels.d.ts +17 -0
- package/dist/lens/runtime/prefetchPanels.d.ts.map +1 -0
- package/dist/lens/runtime/print.d.ts +50 -0
- package/dist/lens/runtime/print.d.ts.map +1 -0
- package/dist/lens/runtime/provider.d.ts +195 -0
- package/dist/lens/runtime/provider.d.ts.map +1 -0
- package/dist/lens/runtime/query.d.ts +32 -0
- package/dist/lens/runtime/query.d.ts.map +1 -0
- package/dist/lens/runtime/recovery.d.ts +26 -0
- package/dist/lens/runtime/recovery.d.ts.map +1 -0
- package/dist/lens/runtime/snapshotLease.d.ts +2 -0
- package/dist/lens/runtime/snapshotLease.d.ts.map +1 -0
- package/dist/lens/runtime/theme.d.ts +4 -0
- package/dist/lens/runtime/theme.d.ts.map +1 -0
- package/dist/lens/runtime/url.d.ts +23 -0
- package/dist/lens/runtime/url.d.ts.map +1 -0
- package/dist/lens/scales-DKkoQGtJ.js +195 -0
- package/dist/lens/snapshotLease-LjBaqKs-.js +14 -0
- package/dist/lens/style.css +1 -0
- package/dist/lens/visualRegression.d.ts +2 -0
- package/dist/lens/visualRegression.d.ts.map +1 -0
- package/dist/sdk-identity.cjs +6 -0
- package/dist/sdk-identity.d.ts +4 -0
- package/dist/sdk-identity.js +4 -0
- package/dist/sdk-identity.json +5 -0
- package/package.json +22 -123
- package/assets/fonts/Actay/Actay-Regular.otf +0 -0
- package/assets/fonts/Actay/Actay-RegularItalic.otf +0 -0
- package/assets/fonts/Actay/ActayCondensed-Thin.otf +0 -0
- package/assets/fonts/Actay/ActayCondensed-ThinItalic.otf +0 -0
- package/assets/fonts/Actay/ActayWide-Bold.otf +0 -0
- package/assets/fonts/Actay/ActayWide-BoldItalic.otf +0 -0
- package/assets/fonts/Gilroy/Gilroy-Black.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-BlackItalic.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-Bold.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-BoldItalic.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-Extrabold.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-ExtraboldItalic.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-Heavy.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-HeavyItalic.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-Light.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-LightItalic.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-Medium.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-MediumItalic.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-Regular.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-RegularItalic.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-Semibold.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-SemiboldItalic.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-Thin.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-ThinItalic.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-UltraLight.woff2 +0 -0
- package/assets/fonts/Gilroy/Gilroy-UltraLightItalic.woff2 +0 -0
- package/assets/fonts/Inter.var.woff2 +0 -0
- package/dist/applet/core.cjs +0 -412
- package/dist/applet/core.cjs.map +0 -1
- package/dist/applet/core.d.cts +0 -187
- package/dist/applet/core.d.ts +0 -187
- package/dist/applet/core.mjs +0 -396
- package/dist/applet/core.mjs.map +0 -1
- package/dist/applet/devtools.cjs +0 -147
- package/dist/applet/devtools.cjs.map +0 -1
- package/dist/applet/devtools.d.cts +0 -7
- package/dist/applet/devtools.d.ts +0 -7
- package/dist/applet/devtools.mjs +0 -144
- package/dist/applet/devtools.mjs.map +0 -1
- package/dist/applet/host.cjs +0 -397
- package/dist/applet/host.cjs.map +0 -1
- package/dist/applet/host.d.cts +0 -42
- package/dist/applet/host.d.ts +0 -42
- package/dist/applet/host.mjs +0 -392
- package/dist/applet/host.mjs.map +0 -1
- package/dist/applet/vite.cjs +0 -219
- package/dist/applet/vite.cjs.map +0 -1
- package/dist/applet/vite.d.cts +0 -99
- package/dist/applet/vite.d.ts +0 -99
- package/dist/applet/vite.mjs +0 -203
- package/dist/applet/vite.mjs.map +0 -1
- package/dist/applet-runtime/index.cjs +0 -890
- package/dist/applet-runtime/index.cjs.map +0 -1
- package/dist/applet-runtime/index.d.cts +0 -191
- package/dist/applet-runtime/index.d.ts +0 -191
- package/dist/applet-runtime/index.mjs +0 -876
- package/dist/applet-runtime/index.mjs.map +0 -1
- package/dist/bichat/index.cjs +0 -20774
- package/dist/bichat/index.cjs.map +0 -1
- package/dist/bichat/index.css +0 -618
- package/dist/bichat/index.css.map +0 -1
- package/dist/bichat/index.d.cts +0 -4515
- package/dist/bichat/index.d.ts +0 -4515
- package/dist/bichat/index.mjs +0 -20602
- package/dist/bichat/index.mjs.map +0 -1
- package/dist/bichat/styles.css +0 -774
- package/dist/bichat/tailwind.cjs +0 -103
- package/dist/bichat/tailwind.cjs.map +0 -1
- package/dist/bichat/tailwind.d.cts +0 -21
- package/dist/bichat/tailwind.d.ts +0 -21
- package/dist/bichat/tailwind.mjs +0 -95
- package/dist/bichat/tailwind.mjs.map +0 -1
- package/dist/fonts/Actay/Actay-Regular.otf +0 -0
- package/dist/fonts/Actay/Actay-RegularItalic.otf +0 -0
- package/dist/fonts/Actay/ActayCondensed-Thin.otf +0 -0
- package/dist/fonts/Actay/ActayCondensed-ThinItalic.otf +0 -0
- package/dist/fonts/Actay/ActayWide-Bold.otf +0 -0
- package/dist/fonts/Actay/ActayWide-BoldItalic.otf +0 -0
- package/dist/fonts/Gilroy/Gilroy-Black.woff2 +0 -0
- package/dist/fonts/Gilroy/Gilroy-BlackItalic.woff2 +0 -0
- package/dist/fonts/Gilroy/Gilroy-Bold.woff2 +0 -0
- package/dist/fonts/Gilroy/Gilroy-BoldItalic.woff2 +0 -0
- package/dist/fonts/Gilroy/Gilroy-Extrabold.woff2 +0 -0
- package/dist/fonts/Gilroy/Gilroy-ExtraboldItalic.woff2 +0 -0
- package/dist/fonts/Gilroy/Gilroy-Heavy.woff2 +0 -0
- package/dist/fonts/Gilroy/Gilroy-HeavyItalic.woff2 +0 -0
- package/dist/fonts/Gilroy/Gilroy-Light.woff2 +0 -0
- package/dist/fonts/Gilroy/Gilroy-LightItalic.woff2 +0 -0
- package/dist/fonts/Gilroy/Gilroy-Medium.woff2 +0 -0
- package/dist/fonts/Gilroy/Gilroy-MediumItalic.woff2 +0 -0
- package/dist/fonts/Gilroy/Gilroy-Regular.woff2 +0 -0
- package/dist/fonts/Gilroy/Gilroy-RegularItalic.woff2 +0 -0
- package/dist/fonts/Gilroy/Gilroy-Semibold.woff2 +0 -0
- package/dist/fonts/Gilroy/Gilroy-SemiboldItalic.woff2 +0 -0
- package/dist/fonts/Gilroy/Gilroy-Thin.woff2 +0 -0
- package/dist/fonts/Gilroy/Gilroy-ThinItalic.woff2 +0 -0
- package/dist/fonts/Gilroy/Gilroy-UltraLight.woff2 +0 -0
- package/dist/fonts/Gilroy/Gilroy-UltraLightItalic.woff2 +0 -0
- package/dist/fonts/Inter.var.woff2 +0 -0
- package/dist/index-Cs_xWkhC.d.cts +0 -84
- package/dist/index-Cs_xWkhC.d.ts +0 -84
- package/dist/index.cjs +0 -777
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -7
- package/dist/index.d.ts +0 -7
- package/dist/index.mjs +0 -755
- package/dist/index.mjs.map +0 -1
- package/dist/rpc-fh942_dj.d.cts +0 -31
- package/dist/rpc-fh942_dj.d.ts +0 -31
- package/tailwind/compiled.css +0 -2
- package/tailwind/create-config.cjs +0 -90
- package/tailwind/iota.css +0 -1195
- package/tailwind/main.css +0 -2
- package/tailwind/sdk-content.cjs +0 -177
- package/tailwind/sdk-theme.cjs +0 -120
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrintReport.d.ts","sourceRoot":"","sources":["../../src/print/PrintReport.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,WAAW,IAAI,gBAAgB,EAAgB,MAAM,kBAAkB,CAAA;AAgmCrF;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,gBAAgB,CAAA;CAAE,2CAsBvE;AAED,wBAAgB,WAAW,uCAmB1B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { PrintFigure } from './outline';
|
|
2
|
+
import { type Translate } from './quality';
|
|
3
|
+
/**
|
|
4
|
+
* Footnotes for a printed chapter.
|
|
5
|
+
*
|
|
6
|
+
* A dashboard keeps its qualifications behind hover: the ⓘ explaining how a
|
|
7
|
+
* figure is obtained, the chip saying it is an estimate, the small badge on a
|
|
8
|
+
* table row saying that row is unmatched. Paper has no hover, and a reader
|
|
9
|
+
* cannot ask. So each qualification is numbered where it applies and printed in
|
|
10
|
+
* full under the first figure that carries it — the same page, not the back of
|
|
11
|
+
* the report, and once per chapter rather than under every figure that repeats
|
|
12
|
+
* the same caveat.
|
|
13
|
+
*/
|
|
14
|
+
export interface PrintFootnote {
|
|
15
|
+
number: number;
|
|
16
|
+
text: string;
|
|
17
|
+
}
|
|
18
|
+
export interface FigureFootnotes {
|
|
19
|
+
/** Numbers printed as markers beside this figure's heading. */
|
|
20
|
+
markers: Array<number>;
|
|
21
|
+
/** Notes printed in full under this figure — those it introduced. */
|
|
22
|
+
notes: Array<PrintFootnote>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Assigns footnote numbers over a chapter's figures in printing order. The same
|
|
26
|
+
* caveat carried by three figures is one number, printed once.
|
|
27
|
+
*/
|
|
28
|
+
export declare function buildChapterFootnotes(figures: Array<PrintFigure>, translate: Translate): Map<string, FigureFootnotes>;
|
|
29
|
+
//# sourceMappingURL=footnotes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footnotes.d.ts","sourceRoot":"","sources":["../../src/print/footnotes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,WAAW,CAAA;AAG3D;;;;;;;;;;GAUG;AAEH,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,eAAe;IAC9B,+DAA+D;IAC/D,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACtB,qEAAqE;IACrE,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,CAAA;CAC5B;AA+BD;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,EAC3B,SAAS,EAAE,SAAS,GACnB,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CA6B9B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PrintSection } from '../runtime/print';
|
|
2
|
+
/**
|
|
3
|
+
* The printed form of a metric panel, or nothing when the panel is not one of
|
|
4
|
+
* the three — the caller then falls back to a chart and its evidence table.
|
|
5
|
+
*/
|
|
6
|
+
export declare function PrintFormula({ section }: {
|
|
7
|
+
section: PrintSection;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
//# sourceMappingURL=formula.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formula.d.ts","sourceRoot":"","sources":["../../src/print/formula.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AA+JpD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,YAAY,CAAA;CAAE,kDAWlE"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Frame, Panel } from '../contract';
|
|
2
|
+
/**
|
|
3
|
+
* A sentence the report can print under a figure, expressed as a translation
|
|
4
|
+
* key with its variables so a catalogue keeps word order.
|
|
5
|
+
*
|
|
6
|
+
* Every fact is a restatement of numbers printed on the same page: the largest
|
|
7
|
+
* share, the biggest deduction, the change between the first and last point.
|
|
8
|
+
* Nothing here explains, attributes or projects — a printed report must not say
|
|
9
|
+
* more than its own table does.
|
|
10
|
+
*/
|
|
11
|
+
export interface NarrativeFact {
|
|
12
|
+
labelKey: string;
|
|
13
|
+
fallback: string;
|
|
14
|
+
vars: Record<string, string | number>;
|
|
15
|
+
}
|
|
16
|
+
/** A chapter's own headline: one reading per figure, in printing order. */
|
|
17
|
+
export interface HeadlineReading {
|
|
18
|
+
id: string;
|
|
19
|
+
label: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* What a chapter says in one line, before its figures.
|
|
24
|
+
*
|
|
25
|
+
* A reader arriving at «Формирование результата» should not have to assemble
|
|
26
|
+
* the chapter's outcome from six figures. Each figure contributes exactly one
|
|
27
|
+
* number — the value it states when it states only one, or the total it is
|
|
28
|
+
* taken against — so the opener is a restatement of the pages below it and
|
|
29
|
+
* never an interpretation of them.
|
|
30
|
+
*/
|
|
31
|
+
export declare function headlineReadings(figures: Array<{
|
|
32
|
+
id: string;
|
|
33
|
+
panel: Panel;
|
|
34
|
+
frame?: Frame;
|
|
35
|
+
}>, locale: string, limit?: number): Array<HeadlineReading>;
|
|
36
|
+
/**
|
|
37
|
+
* The one sentence worth printing under this figure, or nothing when the frame
|
|
38
|
+
* carries no reading that a sentence would add to.
|
|
39
|
+
*/
|
|
40
|
+
export declare function narrativeFact(panel: Panel, frame: Frame | undefined, locale: string): NarrativeFact | undefined;
|
|
41
|
+
//# sourceMappingURL=narrative.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"narrative.d.ts","sourceRoot":"","sources":["../../src/print/narrative.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAI/C;;;;;;;;GAQG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;CACtC;AAuMD,2EAA2E;AAC3E,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,EAC3D,MAAM,EAAE,MAAM,EACd,KAAK,SAAI,GACR,KAAK,CAAC,eAAe,CAAC,CAsBxB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAa/G"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { type QualityInput } from '../panels/QualityChip';
|
|
2
|
+
import type { PrintReport, PrintSection } from '../runtime/print';
|
|
3
|
+
/**
|
|
4
|
+
* A figure printed in a chapter body: the dashboard's own reading of a panel,
|
|
5
|
+
* numbered so the text can point at it.
|
|
6
|
+
*/
|
|
7
|
+
export interface PrintFigure {
|
|
8
|
+
section: PrintSection;
|
|
9
|
+
/** "2.1" — chapter number, then position inside the chapter. */
|
|
10
|
+
number: string;
|
|
11
|
+
/** Rendered as a chart, rather than as evidence rows only. */
|
|
12
|
+
chart: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* A single value: printed as a metric tile. A chart of one point and a table
|
|
15
|
+
* of one row are both worse than the number itself.
|
|
16
|
+
*/
|
|
17
|
+
metric: boolean;
|
|
18
|
+
width: 'half' | 'full';
|
|
19
|
+
/** The metric strip this reading was authored inside, when it was. */
|
|
20
|
+
group?: {
|
|
21
|
+
id: string;
|
|
22
|
+
label?: string;
|
|
23
|
+
caption?: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* A headline reading the cover lifts into its "at a glance" strip. It is not
|
|
27
|
+
* printed a second time in the chapter body.
|
|
28
|
+
*/
|
|
29
|
+
kpi: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* What the dashboard shows when this reading is clicked: the numerator and
|
|
32
|
+
* denominator of a ratio, the components of a total. It prints with the
|
|
33
|
+
* figure it explains, not as loose fragments at the back of the report.
|
|
34
|
+
*/
|
|
35
|
+
breakdown: Array<PrintSection>;
|
|
36
|
+
}
|
|
37
|
+
/** A drill reading, printed as a dense table in the detail appendix. */
|
|
38
|
+
export interface PrintDetail {
|
|
39
|
+
section: PrintSection;
|
|
40
|
+
/** "A2.3" — appendix, owning chapter, position. */
|
|
41
|
+
number: string;
|
|
42
|
+
/** Where the reading sits in the dashboard's drill graph. */
|
|
43
|
+
trail: string;
|
|
44
|
+
}
|
|
45
|
+
export interface PrintChapter {
|
|
46
|
+
id: string;
|
|
47
|
+
number: number;
|
|
48
|
+
title: string;
|
|
49
|
+
caption?: string;
|
|
50
|
+
figures: Array<PrintFigure>;
|
|
51
|
+
details: Array<PrintDetail>;
|
|
52
|
+
}
|
|
53
|
+
/** An entry of the closing methodology appendix. */
|
|
54
|
+
export interface PrintNote {
|
|
55
|
+
id: string;
|
|
56
|
+
label: string;
|
|
57
|
+
detail?: string;
|
|
58
|
+
}
|
|
59
|
+
export interface PrintOutline {
|
|
60
|
+
chapters: Array<PrintChapter>;
|
|
61
|
+
/** Chapters that carry detail readings, in chapter order. */
|
|
62
|
+
appendix: Array<PrintChapter>;
|
|
63
|
+
/** Headline readings printed on the cover instead of inside a chapter. */
|
|
64
|
+
kpis: Array<PrintFigure>;
|
|
65
|
+
notes: Array<PrintNote>;
|
|
66
|
+
/** Readings that resolved to nothing, disclosed instead of printed empty. */
|
|
67
|
+
missing: Array<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Printed readings that are an estimate, a proxy or an unreconciled figure.
|
|
70
|
+
* The cover states the count, because "how much of this is settled" is the
|
|
71
|
+
* first thing a reader of a management report is entitled to know.
|
|
72
|
+
*/
|
|
73
|
+
estimated: number;
|
|
74
|
+
/**
|
|
75
|
+
* Every quality the document declares anywhere — panel, formula stage,
|
|
76
|
+
* hierarchy row, relationship end. The closing appendix defines the words
|
|
77
|
+
* this report actually used, and only those.
|
|
78
|
+
*/
|
|
79
|
+
qualities: Array<QualityInput>;
|
|
80
|
+
figureCount: number;
|
|
81
|
+
detailCount: number;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Groups the flat walk of the drill graph into the document's own chapters.
|
|
85
|
+
*
|
|
86
|
+
* `buildPrintReport` answers "what readings exist"; the printed document also
|
|
87
|
+
* needs "in what order does a person read them". That order is already
|
|
88
|
+
* authored: `layout.rows` carries the headings, spans and group captions the
|
|
89
|
+
* dashboard itself is read by. Following it turns a numbered dump into a
|
|
90
|
+
* document — and keeps the two in step, because a re-authored dashboard
|
|
91
|
+
* re-authors its report.
|
|
92
|
+
*/
|
|
93
|
+
export declare function buildOutline(report: PrintReport, fallbackTitle: string, otherTitle: string): PrintOutline;
|
|
94
|
+
//# sourceMappingURL=outline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outline.d.ts","sourceRoot":"","sources":["../../src/print/outline.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAGjE;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,YAAY,CAAA;IACrB,gEAAgE;IAChE,MAAM,EAAE,MAAM,CAAA;IACd,8DAA8D;IAC9D,KAAK,EAAE,OAAO,CAAA;IACd;;;OAGG;IACH,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,sEAAsE;IACtE,KAAK,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACxD;;;OAGG;IACH,GAAG,EAAE,OAAO,CAAA;IACZ;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC,CAAA;CAC/B;AAED,wEAAwE;AACxE,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,YAAY,CAAA;IACrB,mDAAmD;IACnD,MAAM,EAAE,MAAM,CAAA;IACd,6DAA6D;IAC7D,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,CAAA;IAC3B,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,CAAA;CAC5B;AAED,oDAAoD;AACpD,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,CAAA;IAC7B,6DAA6D;IAC7D,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,CAAA;IAC7B,0EAA0E;IAC1E,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC,CAAA;IACxB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAA;IACvB,6EAA6E;IAC7E,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACtB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,YAAY,CAAC,CAAA;IAC9B,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;CACpB;AAwCD;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,WAAW,EACnB,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,GACjB,YAAY,CAoLd"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Theme } from '../contract';
|
|
2
|
+
import type { PrintReport } from '../runtime/print';
|
|
3
|
+
/**
|
|
4
|
+
* One colour per name, for the whole report.
|
|
5
|
+
*
|
|
6
|
+
* On screen a panel is looked at alone, so colouring its rows by position is
|
|
7
|
+
* enough. Bound into one document that stops being true: «Операционные
|
|
8
|
+
* расходы» was green in the result bridge and blue in the expense ring three
|
|
9
|
+
* pages later, and a reader who has learned the first legend is misled by the
|
|
10
|
+
* second. So the report assigns a colour to a *name* once, in reading order,
|
|
11
|
+
* and every figure that mentions that name again uses it.
|
|
12
|
+
*
|
|
13
|
+
* A producer that pinned a colour to a label keeps it: an authored
|
|
14
|
+
* `theme.series[label]` always wins.
|
|
15
|
+
*/
|
|
16
|
+
export declare function buildLabelPalette(report: PrintReport): Map<string, string>;
|
|
17
|
+
/**
|
|
18
|
+
* The document theme as the printed report reads it: the shared label palette
|
|
19
|
+
* folded into `theme.series`, with the panel-positional entries dropped so a
|
|
20
|
+
* chart and the table under it cannot disagree about which colour a row is.
|
|
21
|
+
*/
|
|
22
|
+
export declare function printTheme(theme: Theme, labels: Map<string, string>): Theme;
|
|
23
|
+
//# sourceMappingURL=palette.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/print/palette.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAgB,MAAM,kBAAkB,CAAA;AAGjE;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAmB1E;AAWD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,KAAK,CAU3E"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Availability, Confidence } from '../contract';
|
|
2
|
+
import { type QualityInput } from '../panels/QualityChip';
|
|
3
|
+
/**
|
|
4
|
+
* Data quality on paper.
|
|
5
|
+
*
|
|
6
|
+
* On screen every number carries a chip saying how it was obtained — verified,
|
|
7
|
+
* calculated, a proxy, or not available at all — and the chip's tooltip repeats
|
|
8
|
+
* the word. The printed report dropped both, so a management estimate and a
|
|
9
|
+
* ledger figure sat side by side looking equally settled. The chip prints; what
|
|
10
|
+
* the chip means prints once per chapter, as a footnote.
|
|
11
|
+
*/
|
|
12
|
+
export type Translate = (key: string, fallback: string, vars?: Record<string, string | number>) => string;
|
|
13
|
+
/** The chip's own word: the same catalogue the dashboard uses, no icon. */
|
|
14
|
+
export declare function qualityLabel(input: QualityInput, translate: Translate): string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* What the chip means, for a reader who cannot hover it. Only qualities that
|
|
17
|
+
* change how a figure may be used are explained: "verified" and "calculated"
|
|
18
|
+
* are the ordinary case and would turn every page into boilerplate.
|
|
19
|
+
*/
|
|
20
|
+
export declare function qualityFootnote(input: QualityInput, translate: Translate): string | undefined;
|
|
21
|
+
export interface QualityDefinition {
|
|
22
|
+
value: string;
|
|
23
|
+
label: string;
|
|
24
|
+
definition: string;
|
|
25
|
+
}
|
|
26
|
+
/** The quality vocabulary this document actually used, in a fixed reading order. */
|
|
27
|
+
export declare function qualityDefinitions(inputs: Array<QualityInput>, translate: Translate): Array<QualityDefinition>;
|
|
28
|
+
export declare function PrintQualityChip({ confidence, availability }: {
|
|
29
|
+
confidence?: Confidence;
|
|
30
|
+
availability?: Availability;
|
|
31
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
32
|
+
//# sourceMappingURL=quality.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quality.d.ts","sourceRoot":"","sources":["../../src/print/quality.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAKzE;;;;;;;;GAQG;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAA;AAEzG,2EAA2E;AAC3E,wBAAgB,YAAY,CAAC,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAG1F;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,CAsB7F;AA0CD,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,oFAAoF;AACpF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,EAAE,SAAS,EAAE,SAAS,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAoB9G;AAED,wBAAgB,gBAAgB,CAAC,EAAE,UAAU,EAAE,YAAY,EAAE,EAAE;IAC7D,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B,kDASA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { FieldFormat } from '../contract';
|
|
2
|
+
/**
|
|
3
|
+
* How one column of numbers is printed once its unit has been said in the
|
|
4
|
+
* header rather than on every cell.
|
|
5
|
+
*/
|
|
6
|
+
export interface ColumnUnit {
|
|
7
|
+
/** The unit, for the column head: «млрд UZS», «UZS», «%». */
|
|
8
|
+
note?: string;
|
|
9
|
+
format(value: unknown): string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Decides how a whole column of one field prints.
|
|
13
|
+
*
|
|
14
|
+
* Two things a table repeats without needing to: the currency, which is the
|
|
15
|
+
* same three letters on every row, and — when the rows are of comparable size —
|
|
16
|
+
* the magnitude, which forces a reader to compare «4.00 млрд» against «312.20
|
|
17
|
+
* млн» digit by digit. Both belong in the column head, said once.
|
|
18
|
+
*
|
|
19
|
+
* Returns a formatter that always produces a cell; when nothing can be hoisted
|
|
20
|
+
* it is `formatFieldValue` unchanged.
|
|
21
|
+
*/
|
|
22
|
+
export declare function columnUnit(values: Array<unknown>, field: FieldFormat | undefined, locale: string): ColumnUnit;
|
|
23
|
+
//# sourceMappingURL=units.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"units.d.ts","sourceRoot":"","sources":["../../src/print/units.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAG9C;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,6DAA6D;IAC7D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAA;CAC/B;AA2CD;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,EACtB,KAAK,EAAE,WAAW,GAAG,SAAS,EAC9B,MAAM,EAAE,MAAM,GACb,UAAU,CA2CZ"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Encoding, FieldFormat, Frame, Panel, PanelKind, Semantics } from '../contract';
|
|
2
|
+
import type { PrintSection } from '../runtime/print';
|
|
3
|
+
/** Panel kinds ChartHost can draw on its own, without a dashboard provider. */
|
|
4
|
+
export declare const chartKinds: Set<PanelKind>;
|
|
5
|
+
/**
|
|
6
|
+
* Panel kinds whose printed form is a formula rather than a chart with an
|
|
7
|
+
* evidence table: the structure — operators, indent, direction — is the
|
|
8
|
+
* reading, and a two-column table of the same numbers is not a substitute.
|
|
9
|
+
*/
|
|
10
|
+
export declare const formulaKinds: Set<PanelKind>;
|
|
11
|
+
export type ChartKind = 'pie' | 'donut' | 'radial' | 'bar' | 'hbar' | 'line' | 'area';
|
|
12
|
+
export declare function numeric(value: unknown): number | undefined;
|
|
13
|
+
export declare function text(value: unknown): string;
|
|
14
|
+
export declare function indexOf(frame: Frame, field: string | undefined): number;
|
|
15
|
+
export declare function formatsForEncoding(panel: Panel, encoding: Encoding): Record<string, FieldFormat>;
|
|
16
|
+
export declare function viewFor(semantics: Semantics, preferred: PanelKind): PanelKind;
|
|
17
|
+
/**
|
|
18
|
+
* The panel a section prints as: the authored panel for a root section, and the
|
|
19
|
+
* drill level's own view, encoding and formats below it.
|
|
20
|
+
*/
|
|
21
|
+
export declare function sectionPanel(section: PrintSection): Panel;
|
|
22
|
+
/**
|
|
23
|
+
* Row-identical frames print once. Drill levels frequently restate their
|
|
24
|
+
* parent's rows, and two perspectives over the same cut resolve to the same
|
|
25
|
+
* numbers; a printed audit gains nothing from the repetition.
|
|
26
|
+
*/
|
|
27
|
+
export declare function frameSignature(frame: Frame | undefined): string | undefined;
|
|
28
|
+
//# sourceMappingURL=values.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"values.d.ts","sourceRoot":"","sources":["../../src/print/values.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEpD,+EAA+E;AAC/E,eAAO,MAAM,UAAU,gBAAgF,CAAA;AAEvG;;;;GAIG;AACH,eAAO,MAAM,YAAY,gBAAiF,CAAA;AAE1G,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;AAErF,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAO1D;AAED,wBAAgB,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAK3C;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAEvE;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAOhG;AAED,wBAAgB,OAAO,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,GAAG,SAAS,CAO7E;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,KAAK,CAiBzD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAG3E"}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { w as B, j as G, v as Q, k as V, l as z, m as W, p as X, n as Y, q as Z } from "./index-C45DAO6w.js";
|
|
2
|
+
function p(i) {
|
|
3
|
+
return Object.values(i.frames)[0];
|
|
4
|
+
}
|
|
5
|
+
function D(i, m, a, k) {
|
|
6
|
+
return JSON.stringify([i.snapshotId, m.id, a, (k == null ? void 0 : k.id) ?? ""]);
|
|
7
|
+
}
|
|
8
|
+
function tt(i) {
|
|
9
|
+
return i.urlSource ? i.urlSource.kind === "field" : i.params.some((m) => m.source.kind === "field") || Object.values(i.payload).some((m) => m.kind === "field");
|
|
10
|
+
}
|
|
11
|
+
function et(i, m, a) {
|
|
12
|
+
var u, P;
|
|
13
|
+
const k = [], L = (o, I, v) => {
|
|
14
|
+
(o == null ? void 0 : o.kind) === "open_drawer" && k.push({ action: o, label: I, ...v ? { row: v } : {} });
|
|
15
|
+
}, y = (o, I) => {
|
|
16
|
+
!o || o.kind !== "open_drawer" || a && tt(o) || L(o, I, a == null ? void 0 : a.rows[0]);
|
|
17
|
+
};
|
|
18
|
+
for (const o of i.actions) y(o, i.title);
|
|
19
|
+
for (const o of i.columns ?? []) y(o.action, o.label);
|
|
20
|
+
for (const o of ((u = i.metricFlow) == null ? void 0 : u.stages) ?? []) y(o.action, o.label);
|
|
21
|
+
for (const o of ((P = i.metricHierarchy) == null ? void 0 : P.rows) ?? []) y(o.action, o.label);
|
|
22
|
+
i.metricRelationship && (y(i.metricRelationship.source.action, i.metricRelationship.source.label), y(i.metricRelationship.target.action, i.metricRelationship.target.label));
|
|
23
|
+
for (const o of m.children) {
|
|
24
|
+
if (!o.action || o.action.kind !== "open_drawer") continue;
|
|
25
|
+
const I = a == null ? void 0 : a.rows.find((v) => {
|
|
26
|
+
var j;
|
|
27
|
+
const T = ((j = m.encoding) == null ? void 0 : j.id) ?? i.encoding.id, N = T ? a.columns.findIndex(({ name: x }) => x === T) : -1;
|
|
28
|
+
return N >= 0 && String(v[N]) === o.key;
|
|
29
|
+
});
|
|
30
|
+
L(o.action, o.label, I);
|
|
31
|
+
}
|
|
32
|
+
return k;
|
|
33
|
+
}
|
|
34
|
+
async function nt(i, m, a = 2e3, k, L = new URL(
|
|
35
|
+
typeof globalThis.location > "u" ? "http://localhost/" : globalThis.location.href
|
|
36
|
+
), y) {
|
|
37
|
+
var U, H;
|
|
38
|
+
const u = [], P = [];
|
|
39
|
+
let o = !1;
|
|
40
|
+
const I = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Map(), x = [], _ = (s) => {
|
|
41
|
+
var l, e;
|
|
42
|
+
return JSON.stringify([
|
|
43
|
+
s.meta.dashboardId,
|
|
44
|
+
((l = s.drawer) == null ? void 0 : l.title) ?? "",
|
|
45
|
+
((e = s.header) == null ? void 0 : e.title) ?? ""
|
|
46
|
+
]);
|
|
47
|
+
};
|
|
48
|
+
N.add(_(i));
|
|
49
|
+
const F = () => y != null && y.aborted ? (o = !0, !0) : !1, A = (s, l, e, r) => {
|
|
50
|
+
if (!m || F()) return Promise.resolve(void 0);
|
|
51
|
+
const d = JSON.stringify([s.snapshotId, e, (r == null ? void 0 : r.id) ?? ""]), t = j.get(d);
|
|
52
|
+
if (t) return t;
|
|
53
|
+
const h = m({
|
|
54
|
+
snapshotId: s.snapshotId,
|
|
55
|
+
path: Z(s, e),
|
|
56
|
+
...r ? { perspective: r.id } : {}
|
|
57
|
+
}, s).then((R) => {
|
|
58
|
+
var n;
|
|
59
|
+
return (n = R.page) != null && n.hasNext && T.add(d), p(R);
|
|
60
|
+
}).catch((R) => {
|
|
61
|
+
const n = R instanceof Error ? R.message : "query request failed";
|
|
62
|
+
P.push(`${s.meta.title} › ${l.label}: ${n}`);
|
|
63
|
+
});
|
|
64
|
+
return j.set(d, h), h;
|
|
65
|
+
}, K = async (s, l, e, r, d) => {
|
|
66
|
+
if (F()) return;
|
|
67
|
+
if (e > 12) {
|
|
68
|
+
P.push(`${s.meta.title}: nested detail depth exceeds 12 levels`);
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
let t = B(s);
|
|
72
|
+
const h = (n, f, c, $, g) => {
|
|
73
|
+
if (k)
|
|
74
|
+
for (const q of et(n, f, c)) {
|
|
75
|
+
if (F()) break;
|
|
76
|
+
const w = G(q.action, {
|
|
77
|
+
fields: q.row && c ? V(c, q.row) : {},
|
|
78
|
+
variables: Q(L),
|
|
79
|
+
location: L
|
|
80
|
+
});
|
|
81
|
+
if (!w) continue;
|
|
82
|
+
const O = r ?? n.id, b = v.get(w);
|
|
83
|
+
if (b) {
|
|
84
|
+
b.includes(O) || b.push(O);
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
v.set(w, [O]), x.push({ href: w, candidate: q, breadcrumb: $, depth: g, owner: O });
|
|
88
|
+
}
|
|
89
|
+
}, R = async (n, f, c, $, g, q) => {
|
|
90
|
+
if (F()) return;
|
|
91
|
+
if (u.length >= a)
|
|
92
|
+
throw new Error(`print report exceeds ${a} sections`);
|
|
93
|
+
const w = z(t, f);
|
|
94
|
+
if (!w) return;
|
|
95
|
+
const O = D(t, n, f, c);
|
|
96
|
+
if (I.has(O)) return;
|
|
97
|
+
if (I.add(O), W(t, w)) {
|
|
98
|
+
const E = X(t, w);
|
|
99
|
+
await Promise.all(E.map((J) => {
|
|
100
|
+
const S = t.drill.edges[J.root];
|
|
101
|
+
if (!(!S || S.frame && t.frames[S.frame]))
|
|
102
|
+
return A(t, S, S.path, J);
|
|
103
|
+
}));
|
|
104
|
+
for (const J of E) {
|
|
105
|
+
if (F()) break;
|
|
106
|
+
const S = t.drill.edges[J.root];
|
|
107
|
+
S && await R(n, S.path, J, [...$, J.label], g, !1);
|
|
108
|
+
}
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
let b = w.frame ? t.frames[w.frame] : void 0;
|
|
112
|
+
b || (b = await A(t, w, f, c)), b != null && b.children && (t = Y(t, f, b));
|
|
113
|
+
const C = z(t, f) ?? w, M = C.label.trim() || n.title;
|
|
114
|
+
u.push({
|
|
115
|
+
id: `${n.id}:${u.length}`,
|
|
116
|
+
document: t,
|
|
117
|
+
panel: n,
|
|
118
|
+
level: C,
|
|
119
|
+
frame: b,
|
|
120
|
+
path: [...f],
|
|
121
|
+
breadcrumb: [...l, ...$, M],
|
|
122
|
+
perspective: c,
|
|
123
|
+
depth: e + g,
|
|
124
|
+
root: q && e === 0,
|
|
125
|
+
// Only the drawer's own top level is the reading's explanation. Its
|
|
126
|
+
// drill levels are detail like any other and belong in the appendix —
|
|
127
|
+
// a KPI tile cannot hold sixty quarters of history.
|
|
128
|
+
...r && g === 0 ? { owner: r } : {},
|
|
129
|
+
...d && g === 0 ? { origin: d } : {},
|
|
130
|
+
...T.has(JSON.stringify([t.snapshotId, f, (c == null ? void 0 : c.id) ?? ""])) ? { hasMore: !0 } : {}
|
|
131
|
+
}), h(
|
|
132
|
+
n,
|
|
133
|
+
C,
|
|
134
|
+
b,
|
|
135
|
+
[...l, ...$, M],
|
|
136
|
+
e + g + 1
|
|
137
|
+
);
|
|
138
|
+
for (const E of C.children) {
|
|
139
|
+
if (F()) break;
|
|
140
|
+
E.target && await R(
|
|
141
|
+
n,
|
|
142
|
+
[...f, E.key],
|
|
143
|
+
c,
|
|
144
|
+
[...$, M, E.label],
|
|
145
|
+
g + 1,
|
|
146
|
+
!1
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
for (const n of t.panels) {
|
|
151
|
+
if (F()) break;
|
|
152
|
+
if (u.length >= a)
|
|
153
|
+
throw new Error(`print report exceeds ${a} sections`);
|
|
154
|
+
if (!n.drillRoot) {
|
|
155
|
+
const c = t.frames[n.frame], $ = {
|
|
156
|
+
path: [],
|
|
157
|
+
label: n.title,
|
|
158
|
+
children: [],
|
|
159
|
+
perspectives: [],
|
|
160
|
+
...c ? { frame: n.frame } : {}
|
|
161
|
+
}, g = [...l, n.title];
|
|
162
|
+
u.push({
|
|
163
|
+
id: `${n.id}:${u.length}`,
|
|
164
|
+
document: t,
|
|
165
|
+
panel: n,
|
|
166
|
+
level: $,
|
|
167
|
+
frame: c,
|
|
168
|
+
path: [],
|
|
169
|
+
breadcrumb: g,
|
|
170
|
+
depth: e,
|
|
171
|
+
root: e === 0,
|
|
172
|
+
...r ? { owner: r } : {},
|
|
173
|
+
...d ? { origin: d } : {}
|
|
174
|
+
}), h(n, $, c, g, e + 1);
|
|
175
|
+
continue;
|
|
176
|
+
}
|
|
177
|
+
const f = t.drill.edges[n.drillRoot];
|
|
178
|
+
f && await R(n, f.path, void 0, [], 0, !0);
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
for (await K(i, [], 0); x.length > 0 && !F(); ) {
|
|
182
|
+
const s = x.splice(0, 4), l = await Promise.all(s.map(async (e) => {
|
|
183
|
+
try {
|
|
184
|
+
return { entry: e, document: await k(e.href) };
|
|
185
|
+
} catch (r) {
|
|
186
|
+
const d = r instanceof Error ? r.message : "document request failed";
|
|
187
|
+
return P.push(`${e.candidate.label}: ${d}`), { entry: e, document: void 0 };
|
|
188
|
+
}
|
|
189
|
+
}));
|
|
190
|
+
for (const { entry: e, document: r } of l) {
|
|
191
|
+
if (!r || F()) continue;
|
|
192
|
+
const d = _(r);
|
|
193
|
+
if (N.has(d)) continue;
|
|
194
|
+
N.add(d);
|
|
195
|
+
const t = ((U = r.drawer) == null ? void 0 : U.title) || ((H = r.header) == null ? void 0 : H.title) || r.meta.title, h = e.candidate.label && e.candidate.label !== e.breadcrumb.at(-1) ? [...e.breadcrumb, e.candidate.label] : e.breadcrumb;
|
|
196
|
+
await K(
|
|
197
|
+
r,
|
|
198
|
+
t && t !== h.at(-1) ? [...h, t] : h,
|
|
199
|
+
e.depth,
|
|
200
|
+
e.owner,
|
|
201
|
+
e.href
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
for (const [s, l] of v) {
|
|
206
|
+
if (l.length < 2) continue;
|
|
207
|
+
const [e, ...r] = l, d = u.filter((t) => t.origin === s && t.owner === e);
|
|
208
|
+
for (const t of r)
|
|
209
|
+
for (const h of d)
|
|
210
|
+
u.push({ ...h, id: `${h.id}:${t}`, owner: t });
|
|
211
|
+
}
|
|
212
|
+
return { document: i, sections: u, warnings: P, truncated: o };
|
|
213
|
+
}
|
|
214
|
+
export {
|
|
215
|
+
nt as buildPrintReport
|
|
216
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Put text on the clipboard, from wherever the runtime is embedded.
|
|
3
|
+
*
|
|
4
|
+
* Three paths, in order: the async clipboard API; the legacy selection copy for
|
|
5
|
+
* an insecure context or a rejected permission; and silence. Silence is a real
|
|
6
|
+
* outcome and not a failure to report — every value this copies is also on
|
|
7
|
+
* screen to read, and a thrown error out of a click handler would take the
|
|
8
|
+
* dashboard down for a convenience.
|
|
9
|
+
*/
|
|
10
|
+
export declare function copyText(text: string): Promise<void>;
|
|
11
|
+
//# sourceMappingURL=clipboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../src/runtime/clipboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAuB1D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type DashboardDocument } from '../contract';
|
|
2
|
+
export interface DocumentRequestOptions {
|
|
3
|
+
csrf?: string;
|
|
4
|
+
signal?: AbortSignal;
|
|
5
|
+
fetcher?: typeof fetch;
|
|
6
|
+
prefetch?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function fetchDocument(src: string, options?: DocumentRequestOptions): Promise<DashboardDocument>;
|
|
9
|
+
//# sourceMappingURL=document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../src/runtime/document.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAEnE,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,KAAK,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,sBAA2B,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAWjH"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
interface LensDrawerProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
closeLabel: string;
|
|
5
|
+
/**
|
|
6
|
+
* The drawer can stack on top of an expanded panel, which is itself a
|
|
7
|
+
* body-level portal. So the drawer carries the theme of the dashboard root it
|
|
8
|
+
* came from, mirroring PanelOverlay, or every `--lens-*` custom property on
|
|
9
|
+
* the portaled subtree resolves to its fallback.
|
|
10
|
+
*/
|
|
11
|
+
dark?: boolean;
|
|
12
|
+
/** Fallback eyebrow used until the document supplies its own drawer header. */
|
|
13
|
+
eyebrow: string;
|
|
14
|
+
label: string;
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
restoreFocus?: HTMLElement;
|
|
17
|
+
theme?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function LensDrawer({ children, closeLabel, dark, eyebrow, label, onClose, restoreFocus, theme }: LensDrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=drawer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/runtime/drawer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAI9C,UAAU,eAAe;IACvB,QAAQ,EAAE,SAAS,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,+EAA+E;IAC/E,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAY,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,EAAE,eAAe,2CAuD/H"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { DashboardDocument, Frame, Level, NodePath, Panel, Perspective } from '../contract';
|
|
2
|
+
import type { NavigationView } from './navigation';
|
|
3
|
+
export declare function sameNodePath(left: NodePath, right: NodePath): boolean;
|
|
4
|
+
interface ResolvedDrillPath {
|
|
5
|
+
level: Level;
|
|
6
|
+
queryPath: NodePath;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Resolves a navigation path to the level it addresses. A path is an owning
|
|
10
|
+
* level's canonical path followed by zero or more child keys, each a concrete
|
|
11
|
+
* selection (a point, or the "other" bucket) whose edge leads to the next
|
|
12
|
+
* level. Levels reached through a point are parameterised by it — the same
|
|
13
|
+
* node aggregates 2025 or 2024 depending on which slice was entered — so the
|
|
14
|
+
* selection has to survive in the path instead of collapsing onto the target
|
|
15
|
+
* node's canonical ancestry.
|
|
16
|
+
*
|
|
17
|
+
* `queryPath` is the same walk in the wire shape the snapshot query endpoint
|
|
18
|
+
* parses: each selection interleaved with the node it selects into
|
|
19
|
+
* (`[…, root, "2026", detail, "direct", detail-2]`).
|
|
20
|
+
*/
|
|
21
|
+
export declare function resolveDrillPath(document: DashboardDocument, path: NodePath): ResolvedDrillPath | undefined;
|
|
22
|
+
export declare function levelForPath(document: DashboardDocument, path: NodePath): Level | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* The wire path for a navigation path: selections interleaved with the nodes
|
|
25
|
+
* they select into. An unresolvable path passes through unchanged so the
|
|
26
|
+
* server, not the client, owns the rejection.
|
|
27
|
+
*/
|
|
28
|
+
export declare function queryPathForNavigation(document: DashboardDocument, path: NodePath): NodePath;
|
|
29
|
+
/**
|
|
30
|
+
* A fork in the drill path: a node that carries no data of its own because its
|
|
31
|
+
* perspectives (which branch off it) own it. Panels must not draw anything at
|
|
32
|
+
* such a node until a perspective is chosen — the parent's numbers under the
|
|
33
|
+
* child's title read as fact and are wrong.
|
|
34
|
+
*/
|
|
35
|
+
export declare function isPerspectiveFork(document: DashboardDocument, level: Level): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The perspectives a user can stand on at a drill position. A level that IS a
|
|
38
|
+
* perspective's root offers its branch's whole sibling set — the same choice
|
|
39
|
+
* the overlay offered on the segment that led here — even when the document
|
|
40
|
+
* recorded only the level's own perspective on it (the builder attaches one
|
|
41
|
+
* ref per perspective node). Any other level offers exactly what it declares,
|
|
42
|
+
* so deeper nodes inside a perspective never advertise a switch that would
|
|
43
|
+
* silently jump them back to a sibling's root.
|
|
44
|
+
*/
|
|
45
|
+
export declare function perspectivesForPosition(document: DashboardDocument, level: Level | undefined): Array<Perspective>;
|
|
46
|
+
export declare function pathResolves(document: DashboardDocument, path: NodePath, perspectiveId?: string): boolean;
|
|
47
|
+
export declare function panelForNavigation(document: DashboardDocument, view: NavigationView): Panel | undefined;
|
|
48
|
+
export declare function rootNavigation(document: DashboardDocument, panelId?: string): NavigationView;
|
|
49
|
+
export declare function replayNavigation(document: DashboardDocument, view: NavigationView): NavigationView | undefined;
|
|
50
|
+
export declare function dynamicParentPath(document: DashboardDocument, path: NodePath): NodePath | undefined;
|
|
51
|
+
export declare function withFrameChildren(document: DashboardDocument, path: NodePath, frame: Frame): DashboardDocument;
|
|
52
|
+
export declare function withInlineFrameChildren(document: DashboardDocument): DashboardDocument;
|
|
53
|
+
export {};
|
|
54
|
+
//# sourceMappingURL=drill.d.ts.map
|