@iota-uz/sdk 0.4.44 → 0.5.1
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 -20896
- 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 -4522
- package/dist/bichat/index.d.ts +0 -4522
- package/dist/bichat/index.mjs +0 -20724
- 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,51 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { WaterfallItem, WaterfallModel } from './CascadePanel';
|
|
3
|
+
/** Chrome a host wraps around a single column, today: activation for a drill. */
|
|
4
|
+
export type WaterfallInteraction = (item: WaterfallItem, index: number) => Record<string, unknown> | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* When the split band names itself. The band's own colour already says a part of
|
|
7
|
+
* the movement differs in kind; its chip answers a follow-up question — how much,
|
|
8
|
+
* and called what — and standing permanently beside the bar it spends the plot's
|
|
9
|
+
* scarcest space (the gutter the neighbouring columns print their totals in) on
|
|
10
|
+
* an answer nobody asked for yet. `hover` floats it over the column as a
|
|
11
|
+
* tooltip, the way every other panel on the board answers a pointer. A sheet of
|
|
12
|
+
* paper has no pointer, so the printed report keeps the chip standing in-plot.
|
|
13
|
+
*/
|
|
14
|
+
export type WaterfallSplitCallout = 'hover' | 'always';
|
|
15
|
+
export interface WaterfallPlotProps {
|
|
16
|
+
model: WaterfallModel;
|
|
17
|
+
label: string;
|
|
18
|
+
interaction?: WaterfallInteraction;
|
|
19
|
+
/** A grouping role when the columns are activatable; an image otherwise. */
|
|
20
|
+
role?: 'group' | 'img';
|
|
21
|
+
/** Defaults to `hover`; a static rendering must pass `always`. */
|
|
22
|
+
splitCallout?: WaterfallSplitCallout;
|
|
23
|
+
/** The unit the ticks no longer repeat, stated once at the head of the axis. */
|
|
24
|
+
axisUnit?: string;
|
|
25
|
+
/** What activating a column does, printed at the foot of its tooltip. */
|
|
26
|
+
actionHint?: string;
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
}
|
|
29
|
+
export interface WaterfallTipPosition {
|
|
30
|
+
left: number;
|
|
31
|
+
top: number;
|
|
32
|
+
/** Which side of the band the tip took, so the tail can point back. */
|
|
33
|
+
side: 'above' | 'below';
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Centres the tip over the band it explains and keeps it on screen. It prefers
|
|
37
|
+
* to sit above: the band is at the top of its bar, and below it would cover the
|
|
38
|
+
* rest of the movement it is a part of.
|
|
39
|
+
*/
|
|
40
|
+
export declare function positionWaterfallTip(anchor: Pick<DOMRect, 'left' | 'width' | 'top' | 'bottom'>, tip: Pick<DOMRect, 'width' | 'height'>, viewport: {
|
|
41
|
+
width: number;
|
|
42
|
+
height: number;
|
|
43
|
+
}): WaterfallTipPosition;
|
|
44
|
+
/**
|
|
45
|
+
* The waterfall's markup, shared by the interactive panel and the printed
|
|
46
|
+
* report. Everything positional lives in the model, so the same DOM serves a
|
|
47
|
+
* clickable dashboard column and an inert printed one — the printed report gets
|
|
48
|
+
* the real bridge instead of a table of the same numbers.
|
|
49
|
+
*/
|
|
50
|
+
export declare function WaterfallPlot({ model, label, interaction, role, splitCallout, axisUnit, actionHint, children, }: WaterfallPlotProps): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
//# sourceMappingURL=WaterfallPlot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WaterfallPlot.d.ts","sourceRoot":"","sources":["../../src/panels/WaterfallPlot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,SAAS,EAEf,MAAM,OAAO,CAAA;AAKd,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEnE,iFAAiF;AACjF,MAAM,MAAM,oBAAoB,GAAG,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;AAE9G;;;;;;;;GAQG;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,QAAQ,CAAA;AAEtD,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,cAAc,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,oBAAoB,CAAA;IAClC,4EAA4E;IAC5E,IAAI,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;IACtB,kEAAkE;IAClE,YAAY,CAAC,EAAE,qBAAqB,CAAA;IACpC,gFAAgF;IAChF,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,yEAAyE;IACzE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAKD,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,uEAAuE;IACvE,IAAI,EAAE,OAAO,GAAG,OAAO,CAAA;CACxB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC,EAC1D,GAAG,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,QAAQ,CAAC,EACtC,QAAQ,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAC1C,oBAAoB,CAUtB;AAkPD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,KAAK,EACL,WAAW,EACX,IAAY,EACZ,YAAsB,EACtB,QAAQ,EACR,UAAU,EACV,QAAQ,GACT,EAAE,kBAAkB,2CAwDpB"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { type FocusEventHandler, type MouseEventHandler, type PointerEventHandler } from 'react';
|
|
2
|
+
import type { Action, Frame, Panel } from '../contract';
|
|
3
|
+
export interface PrefetchHandlers {
|
|
4
|
+
onPointerEnter: PointerEventHandler;
|
|
5
|
+
onPointerLeave: PointerEventHandler;
|
|
6
|
+
onFocus: FocusEventHandler;
|
|
7
|
+
onBlur: FocusEventHandler;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Bounded idle plus hover/focus prefetch for a stat drawer target. The idle
|
|
11
|
+
* registration supplies the automatic first-level warm-up; concrete intent
|
|
12
|
+
* promotes the same target after a short cancellable dwell.
|
|
13
|
+
*/
|
|
14
|
+
export declare function usePrefetch(url: string | undefined, action: Action | undefined, prefetchIdle?: (urls: ReadonlyArray<string>) => () => void): PrefetchHandlers | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Panel-level navigation.
|
|
17
|
+
*
|
|
18
|
+
* A panel-level navigate action makes a whole stat / segment-bar card a link
|
|
19
|
+
* and makes chart data points navigate. The wire keeps that action in
|
|
20
|
+
* `panel.actions` as kind `navigate`.
|
|
21
|
+
*/
|
|
22
|
+
export declare function panelNavigateAction(panel: Panel): Action | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* True when the action's URL depends on the row it is resolved against — the
|
|
25
|
+
* rule used to decide between one card-wide link and one link per segment.
|
|
26
|
+
*/
|
|
27
|
+
export declare function isRowScoped(action: Action): boolean;
|
|
28
|
+
export interface PanelNavigation {
|
|
29
|
+
action?: Action;
|
|
30
|
+
rowScoped: boolean;
|
|
31
|
+
/** URL for one row of the panel's frame, or undefined when it cannot resolve. */
|
|
32
|
+
urlForRow: (frame: Frame | undefined, row: Array<unknown> | undefined) => string | undefined;
|
|
33
|
+
/** URL for the panel as a whole: the first row's, when the action is not row-scoped. */
|
|
34
|
+
cardURL: (frame: Frame | undefined) => string | undefined;
|
|
35
|
+
onClick: (url: string | undefined) => MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
36
|
+
activate: (url: string | undefined, opener?: HTMLElement, options?: {
|
|
37
|
+
newTab?: boolean;
|
|
38
|
+
}) => void;
|
|
39
|
+
/** Promote a concrete drawer target on pointer/focus intent. */
|
|
40
|
+
prefetch: (url: string | undefined) => () => void;
|
|
41
|
+
/** Register low-cardinality targets in the runtime's one-slot idle queue. */
|
|
42
|
+
prefetchIdle: (urls: ReadonlyArray<string>) => () => void;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* An element-level action resolved to an interactive descriptor.
|
|
46
|
+
*
|
|
47
|
+
* Unlike {@link usePanelNavigation}, which owns the single panel-wide navigate
|
|
48
|
+
* action, metric panels attach an action to each stage / row / end. The resolver
|
|
49
|
+
* is a stable function (one drawer subscription) so it can be applied across a
|
|
50
|
+
* list of elements without a hook per element.
|
|
51
|
+
*/
|
|
52
|
+
export interface ElementActionTarget {
|
|
53
|
+
href: string;
|
|
54
|
+
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
55
|
+
opensDrawer: boolean;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Returns a resolver that turns an element's `Action` into an anchor descriptor,
|
|
59
|
+
* or `undefined` when the action carries no navigable URL (e.g. an emit-only
|
|
60
|
+
* action) or a drawer action is unavailable at the current depth. Element
|
|
61
|
+
* actions resolve literal/variable params only in v1; `fields` is accepted for
|
|
62
|
+
* forward compatibility with per-element field resolution.
|
|
63
|
+
*/
|
|
64
|
+
export declare function useElementActionResolver(): (action: Action | undefined, fields?: Readonly<Record<string, unknown>>) => ElementActionTarget | undefined;
|
|
65
|
+
export declare function useActionActivation(action: Action | undefined): {
|
|
66
|
+
activate: (url: string | undefined, opener?: HTMLElement, options?: {
|
|
67
|
+
newTab?: boolean;
|
|
68
|
+
}) => void;
|
|
69
|
+
available: boolean;
|
|
70
|
+
onClick: (url: string | undefined) => MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
71
|
+
prefetch: (url: string | undefined) => () => void;
|
|
72
|
+
prefetchIdle: (urls: ReadonlyArray<string>) => () => void;
|
|
73
|
+
};
|
|
74
|
+
export declare function usePanelNavigation(panel: Panel): PanelNavigation;
|
|
75
|
+
//# sourceMappingURL=actions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NodeKey } from '../contract';
|
|
3
|
+
import type { ChartAnchor } from '../charts/adapter';
|
|
4
|
+
/**
|
|
5
|
+
* Chrome a host (today: the explore panel) injects into the panel header, so
|
|
6
|
+
* a drill trail and an explore affordance live in the card's own header
|
|
7
|
+
* instead of adding rows around the card.
|
|
8
|
+
*/
|
|
9
|
+
export interface PanelChrome {
|
|
10
|
+
trail?: ReactNode;
|
|
11
|
+
explore?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* The panel's name is already on screen, so its own header must not repeat
|
|
14
|
+
* it. Set by a tab group whose active tab label names the single panel
|
|
15
|
+
* inside it: two borders, two radii, two header bars and «ЕЖЕДНЕВНЫЙ ДОХОД»
|
|
16
|
+
* over «ДОХОД» forty pixels apart, all saying one thing. The card keeps its
|
|
17
|
+
* header — export, expand and the ⓘ live there — and loses the duplicate
|
|
18
|
+
* line; the accessible name comes from the section's own aria-label.
|
|
19
|
+
*/
|
|
20
|
+
titleIsRedundant?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare const PanelChromeContext: import("react").Context<PanelChrome | undefined>;
|
|
23
|
+
export declare function usePanelChrome(): PanelChrome | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* When a host handles mark activation itself, a chart reports the mark and
|
|
26
|
+
* where it was clicked instead of drilling. Without a host the chart keeps
|
|
27
|
+
* its direct drill behavior.
|
|
28
|
+
*/
|
|
29
|
+
export type MarkSelectionHandler = (key: NodeKey, anchor?: ChartAnchor) => void;
|
|
30
|
+
export declare const MarkSelectionContext: import("react").Context<MarkSelectionHandler | undefined>;
|
|
31
|
+
export declare function useMarkSelection(): MarkSelectionHandler | undefined;
|
|
32
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/panels/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED,eAAO,MAAM,kBAAkB,kDAAoD,CAAA;AAEnF,wBAAgB,cAAc,IAAI,WAAW,GAAG,SAAS,CAExD;AAED;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,WAAW,KAAK,IAAI,CAAA;AAE/E,eAAO,MAAM,oBAAoB,2DAA6D,CAAA;AAE9F,wBAAgB,gBAAgB,IAAI,oBAAoB,GAAG,SAAS,CAEnE"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { Availability, Confidence, Encoding, Frame, Panel, Theme } from '../contract';
|
|
2
|
+
/**
|
|
3
|
+
* Resolves a datum's color the way the chart adapter does, so a React-rendered
|
|
4
|
+
* legend cannot disagree with the plot: the panel's own `panelId:index` series
|
|
5
|
+
* entry first, then a series entry keyed by label, then the palette order, then
|
|
6
|
+
* the panel accent.
|
|
7
|
+
*
|
|
8
|
+
* `positional: false` drops the `panelId:index` entry. That entry pins a color
|
|
9
|
+
* to the n-th row of the panel's *own* frame, so once the panel is showing a
|
|
10
|
+
* drill level it describes rows that are no longer on screen — the legend was
|
|
11
|
+
* printing the root's second color next to the level's second slice, which the
|
|
12
|
+
* plot (which only ever resolves by label) had drawn in a different color.
|
|
13
|
+
*/
|
|
14
|
+
export declare function seriesColorResolver(theme: Theme, panel: Panel, { positional, labels }?: {
|
|
15
|
+
positional?: boolean;
|
|
16
|
+
labels?: readonly string[];
|
|
17
|
+
}): (label: string, index: number) => string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Resolves the colour of one frame *row*: the served frame's own positional
|
|
20
|
+
* palette first, then a series entry keyed by the row's id, then everything
|
|
21
|
+
* `seriesColorResolver` knows.
|
|
22
|
+
*
|
|
23
|
+
* A drill level ships its palette on the frame rather than on the panel — the
|
|
24
|
+
* aggregation that just ran is the only thing that knows which of its rows is
|
|
25
|
+
* the collapsed remainder and owes the neutral. The plot read that palette and
|
|
26
|
+
* the legend did not, so a level drew an arc in one colour and printed another
|
|
27
|
+
* in the swatch beside it. Both sides come through here now, each handed the
|
|
28
|
+
* frame it is actually drawing: the plot the visible rows, the legend all of
|
|
29
|
+
* them, so a hidden entry cannot slide the palette off its rows either.
|
|
30
|
+
*/
|
|
31
|
+
export declare function rowColorResolver(theme: Theme, panel: Panel, { colors, positional, labels }?: {
|
|
32
|
+
colors?: readonly string[];
|
|
33
|
+
positional?: boolean;
|
|
34
|
+
labels?: readonly string[];
|
|
35
|
+
}): (label: string, index: number, nodeKey?: string) => string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* The labels this panel will colour, in the frame's own order.
|
|
38
|
+
*
|
|
39
|
+
* The palette de-collides across this list, so it has to be the *whole* frame
|
|
40
|
+
* rather than the visible part: built from the visible rows, hiding one entry
|
|
41
|
+
* would free its slot and recolour a neighbour, and the plot and the legend —
|
|
42
|
+
* which are handed different row sets on purpose — would disagree.
|
|
43
|
+
*/
|
|
44
|
+
export declare function colorLabels(frame: Frame | undefined, panel: Panel): string[];
|
|
45
|
+
export declare function columnIndex(frame: Frame | undefined, field: string | undefined): number;
|
|
46
|
+
export declare function cell(frame: Frame | undefined, field: string | undefined, row?: number): unknown;
|
|
47
|
+
export declare function displayText(value: unknown, fallback: string): string;
|
|
48
|
+
export declare const encodingRoles: ReadonlyArray<keyof Encoding>;
|
|
49
|
+
export declare function panelField(panel: Panel, role: keyof Encoding): string | undefined;
|
|
50
|
+
/** A single element's resolved numeric value, or an explicit unavailable slot. */
|
|
51
|
+
export type ResolvedNumber = {
|
|
52
|
+
kind: 'value';
|
|
53
|
+
value: number;
|
|
54
|
+
} | {
|
|
55
|
+
kind: 'unavailable';
|
|
56
|
+
};
|
|
57
|
+
/** Everything the frame contributes for one structural element. */
|
|
58
|
+
export interface ResolvedElement {
|
|
59
|
+
value: ResolvedNumber;
|
|
60
|
+
/** Optional producer-supplied share, already a display magnitude. */
|
|
61
|
+
share?: number;
|
|
62
|
+
/** Frame override of the element's structural confidence. */
|
|
63
|
+
confidence?: Confidence;
|
|
64
|
+
/** Frame override of the element's structural availability. */
|
|
65
|
+
availability?: Availability;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* The frame either yields a deterministic resolver keyed by element key, or the
|
|
69
|
+
* panel is mis-contracted (a configured column is absent, or a key is
|
|
70
|
+
* duplicated) and must be surfaced as a panel-level error — never as a
|
|
71
|
+
* per-element unavailable, which would hide a wiring mistake behind a plausible
|
|
72
|
+
* business state.
|
|
73
|
+
*/
|
|
74
|
+
export type KeyedJoin = {
|
|
75
|
+
kind: 'ok';
|
|
76
|
+
resolve: (key: string) => ResolvedElement;
|
|
77
|
+
} | {
|
|
78
|
+
kind: 'contract-error';
|
|
79
|
+
message: string;
|
|
80
|
+
};
|
|
81
|
+
export interface KeyedJoinMessages {
|
|
82
|
+
/** A configured column is not present in the frame. */
|
|
83
|
+
missingColumn: (column: string) => string;
|
|
84
|
+
/** Two frame rows resolve to the same key. */
|
|
85
|
+
duplicateKey: (key: string) => string;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Builds the keyed join for a metric panel.
|
|
89
|
+
*
|
|
90
|
+
* An empty frame (no rows) is not a contract error: the declared structure
|
|
91
|
+
* renders with every element `unavailable`, which the panels present as their
|
|
92
|
+
* "empty structure" state — deliberately distinct from the loading skeleton.
|
|
93
|
+
*/
|
|
94
|
+
export declare function buildKeyedJoin(panel: Panel, frame: Frame, messages: KeyedJoinMessages): KeyedJoin;
|
|
95
|
+
//# sourceMappingURL=data.d.ts.map
|
|
@@ -0,0 +1 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oDjG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kinds.d.ts","sourceRoot":"","sources":["../../src/panels/kinds.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAA;AAIlF,+EAA+E;AAC/E,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,GAAG,KAAK,CAOlE"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { Availability, Confidence, MetricFlowStage, MetricFlowStageRole, MetricHierarchyRow, MetricRelationshipConfig, MetricRelationshipEnd, Panel } from '../contract';
|
|
2
|
+
import type { KeyedJoin, ResolvedElement } from './data';
|
|
3
|
+
/** A stage's signed contribution to the reconciliation sum (grammar, not display). */
|
|
4
|
+
export declare function contribution(role: MetricFlowStageRole, value: number): number;
|
|
5
|
+
export interface ElementQuality {
|
|
6
|
+
confidence?: Confidence;
|
|
7
|
+
availability?: Availability;
|
|
8
|
+
/** The value slot shows an em dash rather than a number. */
|
|
9
|
+
showDash: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Quality of one resolved element, with the locked precedence: the frame
|
|
13
|
+
* overrides the structural declaration, and a value that cannot exist is at
|
|
14
|
+
* least "unavailable" — a more specific producer status survives.
|
|
15
|
+
*/
|
|
16
|
+
export declare function elementQuality(element: ResolvedElement, structural: {
|
|
17
|
+
confidence?: Confidence;
|
|
18
|
+
availability?: Availability;
|
|
19
|
+
}, panel: Panel): ElementQuality;
|
|
20
|
+
export interface FlowStageView extends ElementQuality {
|
|
21
|
+
stage: MetricFlowStage;
|
|
22
|
+
role: MetricFlowStageRole;
|
|
23
|
+
/** Rendered operator glyph, or '' for an input stage. */
|
|
24
|
+
operator: string;
|
|
25
|
+
/** Formatted magnitude: unsigned under an operator, signed otherwise. */
|
|
26
|
+
text: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* The formula, stage by stage. An absent amount must not rewrite the declared
|
|
30
|
+
* grammar: an `add` stage keeps its `+` and a `subtract` stage its `−`, because
|
|
31
|
+
* sign normalization only applies to a value that is actually shown.
|
|
32
|
+
*/
|
|
33
|
+
export declare function flowStageViews(panel: Panel, join: KeyedJoin, formatValue: (value: number) => string): Array<FlowStageView>;
|
|
34
|
+
/**
|
|
35
|
+
* How far the declared result stands from the sum of its operands, or nothing
|
|
36
|
+
* when the flow declares no reconciliation, balances inside its tolerance, or
|
|
37
|
+
* carries an unresolved operand — an incomplete sum would report a discrepancy
|
|
38
|
+
* that does not exist.
|
|
39
|
+
*/
|
|
40
|
+
export declare function flowReconcileDelta(panel: Panel, join: KeyedJoin): number | undefined;
|
|
41
|
+
export interface HierarchyRowView extends ElementQuality {
|
|
42
|
+
row: MetricHierarchyRow;
|
|
43
|
+
depth: number;
|
|
44
|
+
isParent: boolean;
|
|
45
|
+
valueText: string;
|
|
46
|
+
shareText?: string;
|
|
47
|
+
/** Whole-to-parts check for a parent row: balanced, or off by this much. */
|
|
48
|
+
reconcile?: {
|
|
49
|
+
balanced: boolean;
|
|
50
|
+
delta: number;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The hierarchy, row by row. `parent` is authoritative for depth; the wire may
|
|
55
|
+
* carry a derived `depth`, and a detached parent reference must not send the
|
|
56
|
+
* walk running.
|
|
57
|
+
*/
|
|
58
|
+
export declare function hierarchyRowViews(panel: Panel, join: KeyedJoin, formatValue: (value: number) => string, formatShare: (value: number) => string): Array<HierarchyRowView>;
|
|
59
|
+
export interface RelationshipEndView extends ElementQuality {
|
|
60
|
+
end: MetricRelationshipEnd;
|
|
61
|
+
valueText: string;
|
|
62
|
+
}
|
|
63
|
+
export declare function relationshipEndView(panel: Panel, join: KeyedJoin | undefined, end: MetricRelationshipEnd | undefined, formatValue: (value: number) => string): RelationshipEndView | undefined;
|
|
64
|
+
export declare const relationshipTypeFallback: Record<MetricRelationshipConfig['type'], string>;
|
|
65
|
+
export interface RelationshipGlyphs {
|
|
66
|
+
horizontal: string;
|
|
67
|
+
vertical: string;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Association and reconciliation are symmetric by nature — a neutral
|
|
71
|
+
* double-headed connector that never implies containment or derivation.
|
|
72
|
+
*/
|
|
73
|
+
export declare function connectorGlyphs(config: MetricRelationshipConfig): RelationshipGlyphs;
|
|
74
|
+
/** The two ends in the order the relationship's own sentence names them. */
|
|
75
|
+
export declare function relationshipOperands(config: MetricRelationshipConfig | undefined, source: string, target: string): {
|
|
76
|
+
source: string;
|
|
77
|
+
target: string;
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=metricViews.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metricViews.d.ts","sourceRoot":"","sources":["../../src/panels/metricViews.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,UAAU,EACV,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,wBAAwB,EAExB,qBAAqB,EACrB,KAAK,EACN,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAiBxD,sFAAsF;AACtF,wBAAgB,YAAY,CAAC,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAE7E;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,4DAA4D;IAC5D,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,eAAe,EACxB,UAAU,EAAE;IAAE,UAAU,CAAC,EAAE,UAAU,CAAC;IAAC,YAAY,CAAC,EAAE,YAAY,CAAA;CAAE,EACpE,KAAK,EAAE,KAAK,GACX,cAAc,CAYhB;AAED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AG,EAAE,qBAAqB,GAAG,SAAS,EACtC,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACrC,mBAAmB,GAAG,SAAS,CAQjC;AAED,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,wBAAwB,CAAC,MAAM,CAAC,EAAE,MAAM,CAIrF,CAAA;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,wBAAwB,GAAG,kBAAkB,CAOpF;AAED,4EAA4E;AAC5E,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,wBAAwB,GAAG,SAAS,EAC5C,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAOpC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type ComponentType } from 'react';
|
|
2
|
+
import type { Panel, PanelKind } from '../contract';
|
|
3
|
+
import type { CascadePanelProps } from './CascadePanel';
|
|
4
|
+
import type { CoveragePanelProps } from './CoveragePanel';
|
|
5
|
+
import type { GaugePanelProps } from './GaugePanel';
|
|
6
|
+
import type { ChartPanelProps } from './ChartPanel';
|
|
7
|
+
import type { MetricFlowPanelProps } from './MetricFlowPanel';
|
|
8
|
+
import type { MetricHierarchyPanelProps } from './MetricHierarchyPanel';
|
|
9
|
+
import type { MetricRelationshipPanelProps } from './MetricRelationshipPanel';
|
|
10
|
+
import type { MapPanelProps } from './MapPanel';
|
|
11
|
+
import { StatPanel, type StatPanelProps } from './StatPanel';
|
|
12
|
+
import type { TablePanelProps } from './TablePanel';
|
|
13
|
+
export type PanelComponent = ComponentType<StatPanelProps | ChartPanelProps | CascadePanelProps | TablePanelProps | CoveragePanelProps | GaugePanelProps | MetricFlowPanelProps | MetricHierarchyPanelProps | MetricRelationshipPanelProps | MapPanelProps>;
|
|
14
|
+
export type PanelRegistry = Partial<Record<PanelKind, PanelComponent>>;
|
|
15
|
+
export declare const SUPPORTED: {
|
|
16
|
+
stat: typeof StatPanel;
|
|
17
|
+
pie: import("react").FunctionComponent<ChartPanelProps>;
|
|
18
|
+
donut: import("react").FunctionComponent<ChartPanelProps>;
|
|
19
|
+
radial: import("react").FunctionComponent<ChartPanelProps>;
|
|
20
|
+
bar: import("react").FunctionComponent<ChartPanelProps>;
|
|
21
|
+
hbar: import("react").FunctionComponent<ChartPanelProps>;
|
|
22
|
+
line: import("react").FunctionComponent<ChartPanelProps>;
|
|
23
|
+
area: import("react").FunctionComponent<ChartPanelProps>;
|
|
24
|
+
cascade: import("react").FunctionComponent<CascadePanelProps>;
|
|
25
|
+
table: import("react").FunctionComponent<TablePanelProps>;
|
|
26
|
+
coverage: import("react").FunctionComponent<CoveragePanelProps>;
|
|
27
|
+
gauge: import("react").FunctionComponent<GaugePanelProps>;
|
|
28
|
+
histogram: import("react").FunctionComponent<ChartPanelProps>;
|
|
29
|
+
boxplot: import("react").FunctionComponent<ChartPanelProps>;
|
|
30
|
+
heatmap: import("react").FunctionComponent<ChartPanelProps>;
|
|
31
|
+
map: import("react").FunctionComponent<MapPanelProps>;
|
|
32
|
+
metric_flow: import("react").FunctionComponent<MetricFlowPanelProps>;
|
|
33
|
+
metric_hierarchy: import("react").FunctionComponent<MetricHierarchyPanelProps>;
|
|
34
|
+
metric_relationship: import("react").FunctionComponent<MetricRelationshipPanelProps>;
|
|
35
|
+
};
|
|
36
|
+
export declare const panelRegistry: PanelRegistry;
|
|
37
|
+
export interface RegisteredPanelProps {
|
|
38
|
+
panel: Panel;
|
|
39
|
+
registry?: PanelRegistry;
|
|
40
|
+
}
|
|
41
|
+
export declare function UnsupportedPanel({ panel }: {
|
|
42
|
+
panel: Panel;
|
|
43
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare function RegisteredPanel({ panel, registry }: RegisteredPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/panels/registry.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,aAAa,EAAkC,MAAM,OAAO,CAAA;AACrG,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AACvE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAA;AAC7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE/C,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAcnD,MAAM,MAAM,cAAc,GAAG,aAAa,CACtC,cAAc,GACd,eAAe,GACf,iBAAiB,GACjB,eAAe,GACf,kBAAkB,GAClB,eAAe,GACf,oBAAoB,GACpB,yBAAyB,GACzB,4BAA4B,GAC5B,aAAa,CAChB,CAAA;AACD,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC,CAAA;AAEtE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;CAoBuB,CAAA;AAE7C,eAAO,MAAM,aAAa,EAAE,aAAyB,CAAA;AAErD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,KAAK,CAAA;IACZ,QAAQ,CAAC,EAAE,aAAa,CAAA;CACzB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,2CAU3D;AAED,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,QAAwB,EAAE,EAAE,oBAAoB,2CAcxF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Whether an element's own box is hiding some of its text.
|
|
4
|
+
*
|
|
5
|
+
* Two callers, one question, and it is a question about the rendered box rather
|
|
6
|
+
* than about the string — a name that fits at 1400px is cut at 900px, and the
|
|
7
|
+
* clamp that cuts it is a CSS rule nothing in the tree can read.
|
|
8
|
+
*
|
|
9
|
+
* The note behind a metric strip's ⓘ exists to carry what the reader cannot
|
|
10
|
+
* otherwise read, so a caption printed in full two lines below joins it only
|
|
11
|
+
* when the two-line slot actually cut it. A waterfall's column name asks the
|
|
12
|
+
* same thing of its native tooltip: the tooltip is the full name behind a clamp,
|
|
13
|
+
* so where there is no clamp there is nothing for it to say.
|
|
14
|
+
*/
|
|
15
|
+
export declare function useIsClamped(target: RefObject<HTMLElement | null>): boolean;
|
|
16
|
+
//# sourceMappingURL=useIsClamped.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsClamped.d.ts","sourceRoot":"","sources":["../../src/panels/useIsClamped.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAE3D;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,OAAO,CAa3E"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { type CSSProperties, type KeyboardEvent as ReactKeyboardEvent } from 'react';
|
|
2
|
+
export interface MenuPlacement {
|
|
3
|
+
/** Which side of the trigger the menu opens on. */
|
|
4
|
+
side: 'up' | 'down';
|
|
5
|
+
/** Which of the menu's edges is flush with the trigger's. */
|
|
6
|
+
align: 'start' | 'end';
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Where a menu of this size fits, given its trigger.
|
|
10
|
+
*
|
|
11
|
+
* A menu is bound to its trigger and to the viewport, and the two can disagree:
|
|
12
|
+
* a panel menu opened low on the page ran «Vector (SVG)» below the fold, and a
|
|
13
|
+
* page-level menu wider than its trigger read as detached because neither edge
|
|
14
|
+
* lined up with anything. The preferred alignment is the trigger's leading
|
|
15
|
+
* edge, which is where the eye already is; it flips only when the menu would
|
|
16
|
+
* leave the viewport, and the menu drops upward only when it does not fit
|
|
17
|
+
* below and does fit above.
|
|
18
|
+
*/
|
|
19
|
+
export declare function menuPlacement(trigger: Pick<DOMRect, 'left' | 'right' | 'top' | 'bottom'>, menu: Pick<DOMRect, 'width' | 'height'>, viewport: {
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
}, preferred: MenuPlacement['align']): MenuPlacement;
|
|
23
|
+
/**
|
|
24
|
+
* How far the aligned menu has to slide to stay on screen.
|
|
25
|
+
*
|
|
26
|
+
* Alignment alone cannot always answer the question: a menu wider than the
|
|
27
|
+
* distance from its trigger to either edge fits neither way, and the flush edge
|
|
28
|
+
* then hangs off the viewport — a 551px filter menu whose trigger's right edge
|
|
29
|
+
* sits at 500px opened at x = −51. The shift is the last step of the same rule,
|
|
30
|
+
* so a menu is bound to its trigger *and* to the viewport instead of one or the
|
|
31
|
+
* other.
|
|
32
|
+
*/
|
|
33
|
+
export declare function menuShift(trigger: Pick<DOMRect, 'left' | 'right'>, menu: Pick<DOMRect, 'width'>, viewport: {
|
|
34
|
+
width: number;
|
|
35
|
+
}, align: MenuPlacement['align']): number;
|
|
36
|
+
/** Where the menu is drawn, in viewport coordinates. */
|
|
37
|
+
export interface MenuOffset {
|
|
38
|
+
left: number;
|
|
39
|
+
top: number;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Where the placed menu's own box starts.
|
|
43
|
+
*
|
|
44
|
+
* The menu is drawn in a body portal, so the answer has to be absolute rather
|
|
45
|
+
* than «flush with whichever edge of my offset parent». It is the same rule the
|
|
46
|
+
* flow-anchored version expressed in CSS — flush with the aligned edge, nudged
|
|
47
|
+
* by the viewport shift, gapped from the trigger — just resolved to numbers.
|
|
48
|
+
*/
|
|
49
|
+
export declare function menuOffset(trigger: Pick<DOMRect, 'left' | 'right' | 'top' | 'bottom'>, menu: Pick<DOMRect, 'width' | 'height'>, placement: MenuPlacement, shift: number): MenuOffset;
|
|
50
|
+
/** Shared focus, dismissal, placement, and arrow navigation for Lens menu buttons. */
|
|
51
|
+
export declare function useMenuButton(preferredAlign?: MenuPlacement['align']): {
|
|
52
|
+
close: () => void;
|
|
53
|
+
closeAndFocusTrigger: () => void;
|
|
54
|
+
container: import("react").RefObject<HTMLDivElement>;
|
|
55
|
+
itemRef: (key: string) => (element: HTMLButtonElement | null) => void;
|
|
56
|
+
menu: import("react").RefObject<HTMLDivElement>;
|
|
57
|
+
menuPlacementProps: {
|
|
58
|
+
'data-align': "start" | "end";
|
|
59
|
+
'data-side': "up" | "down";
|
|
60
|
+
style: CSSProperties;
|
|
61
|
+
};
|
|
62
|
+
onMenuKeyDown: (event: ReactKeyboardEvent) => void;
|
|
63
|
+
open: boolean;
|
|
64
|
+
overlay: HTMLElement | undefined;
|
|
65
|
+
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
66
|
+
trigger: import("react").RefObject<HTMLButtonElement>;
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=useMenuButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMenuButton.d.ts","sourceRoot":"","sources":["../../src/panels/useMenuButton.ts"],"names":[],"mappings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AED,sFAAsF;AACtF,wBAAgB,aAAa,CAAC,cAAc,GAAE,aAAa,CAAC,OAAO,CAAS;;;;mBA4FxC,MAAM,eAAe,iBAAiB,GAAG,IAAI;;;;;eAsCtE,aAAa;;2BAlCoB,kBAAkB;;;;;EA0C7D"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
var n = Object.defineProperty;
|
|
2
|
+
var o = (h, e, t) => e in h ? n(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t;
|
|
3
|
+
var c = (h, e, t) => o(h, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { i as f } from "./index-C45DAO6w.js";
|
|
5
|
+
class g {
|
|
6
|
+
constructor(e = {}) {
|
|
7
|
+
c(this, "capacity");
|
|
8
|
+
// Insertion order is age order, so the first key is always the oldest.
|
|
9
|
+
c(this, "entries", /* @__PURE__ */ new Map());
|
|
10
|
+
c(this, "inflight", /* @__PURE__ */ new Map());
|
|
11
|
+
c(this, "fetcher");
|
|
12
|
+
c(this, "csrf");
|
|
13
|
+
this.capacity = Math.max(1, Math.floor(e.capacity ?? 8)), this.fetcher = e.fetcher, this.csrf = e.csrf;
|
|
14
|
+
}
|
|
15
|
+
/** Update the credentials used by later prefetches without dropping entries. */
|
|
16
|
+
configure(e) {
|
|
17
|
+
this.fetcher = e.fetcher, this.csrf = e.csrf;
|
|
18
|
+
}
|
|
19
|
+
/** The cached document for a URL, or undefined on a miss. */
|
|
20
|
+
get(e) {
|
|
21
|
+
return this.entries.get(e);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Load a document through the shared cache/singleflight path.
|
|
25
|
+
*
|
|
26
|
+
* Unlike prefetch(), failures stay visible to the interactive caller. If a
|
|
27
|
+
* speculative request is already running, opening the drawer promotes the
|
|
28
|
+
* same server calculation through a separate activation request.
|
|
29
|
+
*/
|
|
30
|
+
load(e) {
|
|
31
|
+
const t = this.entries.get(e);
|
|
32
|
+
if (t) return Promise.resolve(t);
|
|
33
|
+
const s = this.inflight.get(e);
|
|
34
|
+
if (s && !s.speculative) return s.promise;
|
|
35
|
+
const i = f(e, { fetcher: this.fetcher, csrf: this.csrf }).then((r) => (this.store(e, r), r)).finally(() => {
|
|
36
|
+
var r;
|
|
37
|
+
((r = this.inflight.get(e)) == null ? void 0 : r.promise) === i && this.inflight.delete(e);
|
|
38
|
+
});
|
|
39
|
+
return this.inflight.set(e, { promise: i, speculative: !1 }), i;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Warm a URL. Resolves once the fetch settles; a failure resolves (never
|
|
43
|
+
* rejects) so a prefetch can never surface an error to the caller. A URL that
|
|
44
|
+
* is already cached or already in flight is not fetched again.
|
|
45
|
+
*/
|
|
46
|
+
prefetch(e, t) {
|
|
47
|
+
if (this.entries.has(e) || this.inflight.has(e)) return Promise.resolve();
|
|
48
|
+
const s = f(e, { fetcher: this.fetcher, csrf: this.csrf, prefetch: !0, signal: t }).then(async (i) => {
|
|
49
|
+
if (!i.endpoints.panel || t != null && t.aborted) return i;
|
|
50
|
+
const { prefetchDocumentFirstRow: r } = await import("./prefetchPanels-B7bIY0bM.js");
|
|
51
|
+
return r(i, {
|
|
52
|
+
csrf: this.csrf,
|
|
53
|
+
fetcher: this.fetcher,
|
|
54
|
+
signal: t
|
|
55
|
+
});
|
|
56
|
+
}).then((i) => (this.store(e, i), i)).finally(() => {
|
|
57
|
+
var i;
|
|
58
|
+
((i = this.inflight.get(e)) == null ? void 0 : i.promise) === s && this.inflight.delete(e);
|
|
59
|
+
});
|
|
60
|
+
return this.inflight.set(e, { promise: s, speculative: !0 }), s.then(() => {
|
|
61
|
+
}, () => {
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
store(e, t) {
|
|
65
|
+
for (this.entries.delete(e), this.entries.set(e, t); this.entries.size > this.capacity; ) {
|
|
66
|
+
const s = this.entries.keys().next().value;
|
|
67
|
+
if (s === void 0) break;
|
|
68
|
+
this.entries.delete(s);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
g as DocumentCache
|
|
74
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { am as w } from "./index-C45DAO6w.js";
|
|
2
|
+
async function m(e, n) {
|
|
3
|
+
var d;
|
|
4
|
+
const l = e.endpoints.panel, o = e.layout.rows.find(({ panels: a }) => a.length > 0);
|
|
5
|
+
if (!l || !o || (d = n.signal) != null && d.aborted) return e;
|
|
6
|
+
const h = new Set(o.panels.map(({ panelId: a }) => a)), f = e.panels.filter(({ id: a, deferred: t }) => t === !0 && h.has(a));
|
|
7
|
+
if (f.length === 0) return e;
|
|
8
|
+
const c = new w(l, { csrf: n.csrf, fetcher: n.fetcher, prefetch: !0 });
|
|
9
|
+
try {
|
|
10
|
+
const a = await c.loadBatch(f.map(({ id: s }) => ({
|
|
11
|
+
snapshotId: e.snapshotId,
|
|
12
|
+
panelId: s
|
|
13
|
+
})), { signal: n.signal }), t = { ...e.frames }, i = /* @__PURE__ */ new Set();
|
|
14
|
+
for (const s of f) {
|
|
15
|
+
const r = a[s.id];
|
|
16
|
+
if (!(r != null && r.frames) || r.error) continue;
|
|
17
|
+
const p = r.frames[s.frame] ?? Object.values(r.frames)[0];
|
|
18
|
+
p && (t[s.frame] = p, i.add(s.id));
|
|
19
|
+
}
|
|
20
|
+
return i.size === 0 ? e : {
|
|
21
|
+
...e,
|
|
22
|
+
frames: t,
|
|
23
|
+
panels: e.panels.map((s) => i.has(s.id) ? { ...s, deferred: !1 } : s)
|
|
24
|
+
};
|
|
25
|
+
} finally {
|
|
26
|
+
c.dispose();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
m as prefetchDocumentFirstRow
|
|
31
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PrintReport as PrintReportModel } from '../runtime/print';
|
|
2
|
+
/**
|
|
3
|
+
* The printed document itself, driven by a report rather than by runtime state,
|
|
4
|
+
* so a story and a visual-regression run can render exactly what a printer
|
|
5
|
+
* would receive. `PrintReport` is the same document wired to the live print
|
|
6
|
+
* state.
|
|
7
|
+
*/
|
|
8
|
+
export declare function PrintReportView({ report }: {
|
|
9
|
+
report: PrintReportModel;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function PrintReport(): import("react").ReactPortal | null;
|
|
12
|
+
//# sourceMappingURL=PrintReport.d.ts.map
|