drizzle-cube 0.13.1 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/ActivityGridChart.config-BlZclX_9.js +1 -0
- package/dist/adapters/ActivityGridChart.config-D2v_XyY0.cjs +1 -0
- package/dist/adapters/AreaChart.config-2uBmxi1-.js +1 -0
- package/dist/adapters/AreaChart.config-CSusw7MI.cjs +1 -0
- package/dist/adapters/BarChart.config-CEs8zlOd.js +1 -0
- package/dist/adapters/BarChart.config-DDokCRL0.cjs +1 -0
- package/dist/adapters/BoxPlotChart.config-DGkPSj3b.js +1 -0
- package/dist/adapters/BoxPlotChart.config-DNAAV5ds.cjs +1 -0
- package/dist/adapters/BubbleChart.config-Cj2A1IL9.cjs +1 -0
- package/dist/adapters/BubbleChart.config-Hp4hDwos.js +1 -0
- package/dist/adapters/CandlestickChart.config-BfL2kxsO.js +1 -0
- package/dist/adapters/CandlestickChart.config-CyzAcJb2.cjs +1 -0
- package/dist/adapters/DataTable.config-D9Ug46tb.cjs +1 -0
- package/dist/adapters/DataTable.config-r5Fa9uae.js +1 -0
- package/dist/adapters/DotStripChart.config-BTqmxVm2.js +1 -0
- package/dist/adapters/DotStripChart.config-Bu0J9BYY.cjs +1 -0
- package/dist/adapters/FunnelChart.config-BedIayLz.cjs +1 -0
- package/dist/adapters/FunnelChart.config-dT9ymf6H.js +1 -0
- package/dist/adapters/GaugeChart.config-DJy3xApn.cjs +1 -0
- package/dist/adapters/GaugeChart.config-DZRniX9X.js +1 -0
- package/dist/adapters/HeatMapChart.config-AUCbOuee.cjs +1 -0
- package/dist/adapters/HeatMapChart.config-CCX0y6Nu.js +1 -0
- package/dist/adapters/KpiDelta.config-1fGFn_si.cjs +1 -0
- package/dist/adapters/KpiDelta.config-CMiZaD_K.js +1 -0
- package/dist/adapters/KpiNumber.config-CUXAwnLQ.js +1 -0
- package/dist/adapters/KpiNumber.config-jCFoR8UV.cjs +1 -0
- package/dist/adapters/KpiText.config-B6JsJGlt.js +1 -0
- package/dist/adapters/KpiText.config-T5Tk8B93.cjs +1 -0
- package/dist/adapters/LineChart.config-BDAVOwzV.js +1 -0
- package/dist/adapters/LineChart.config-rVRUAwRc.cjs +1 -0
- package/dist/adapters/MarkdownChart.config-C1N51S30.cjs +1 -0
- package/dist/adapters/MarkdownChart.config-DcILjPyK.js +1 -0
- package/dist/adapters/MeasureProfileChart.config-D6TDwz3r.js +1 -0
- package/dist/adapters/MeasureProfileChart.config-fMvKKyHq.cjs +1 -0
- package/dist/adapters/PieChart.config-Dlv0S8-5.cjs +1 -0
- package/dist/adapters/PieChart.config-L1EEHJAB.js +1 -0
- package/dist/adapters/ProportionBarChart.config-CaXGpruG.js +1 -0
- package/dist/adapters/ProportionBarChart.config-DGhKCGYw.cjs +1 -0
- package/dist/adapters/RadarChart.config-BIJ84MZl.cjs +1 -0
- package/dist/adapters/RadarChart.config-NJDXWxTM.js +1 -0
- package/dist/adapters/RadialBarChart.config-C2AX5IRD.js +1 -0
- package/dist/adapters/RadialBarChart.config-D_Dk3f-2.cjs +1 -0
- package/dist/adapters/RecordsTable.config-C0YqdTyB.cjs +1 -0
- package/dist/adapters/RecordsTable.config-CyYJtLoq.js +1 -0
- package/dist/adapters/RetentionCombinedChart.config-6_vW_fo0.cjs +1 -0
- package/dist/adapters/RetentionCombinedChart.config-Cth5Fvoh.js +1 -0
- package/dist/adapters/RetentionHeatmap.config-DDL2t7qk.cjs +1 -0
- package/dist/adapters/RetentionHeatmap.config-O4e7Heos.js +1 -0
- package/dist/adapters/SankeyChart.config-D36FHKUf.js +1 -0
- package/dist/adapters/SankeyChart.config-DWn_Gidq.cjs +1 -0
- package/dist/adapters/ScatterChart.config-CkUpXGjq.cjs +1 -0
- package/dist/adapters/ScatterChart.config-DHHhm4K7.js +1 -0
- package/dist/adapters/SunburstChart.config-CDqzb5xW.cjs +1 -0
- package/dist/adapters/SunburstChart.config-Dxh57sv_.js +1 -0
- package/dist/adapters/TreeMapChart.config--RHay3WA.js +1 -0
- package/dist/adapters/TreeMapChart.config-BcJ0H_xg.cjs +1 -0
- package/dist/adapters/WaterfallChart.config-DKscCBNm.cjs +1 -0
- package/dist/adapters/WaterfallChart.config-gDygj8Ko.js +1 -0
- package/dist/adapters/core/index.cjs +1 -1
- package/dist/adapters/core/index.js +1 -1
- package/dist/adapters/{core-Ib5DN_B6.cjs → core-YfzziyUf.cjs} +1 -1
- package/dist/adapters/{core-D1FtXGPM.js → core-wxT6B2Cm.js} +2 -2
- package/dist/adapters/{cors-headers-DPNvO_6o.js → cors-headers-BeWxPGlM.js} +1 -1
- package/dist/adapters/{cors-headers-D0ofhz3k.cjs → cors-headers-CEdKM8L_.cjs} +1 -1
- package/dist/adapters/express/index.cjs +1 -1
- package/dist/adapters/express/index.js +5 -5
- package/dist/adapters/fastify/index.cjs +1 -1
- package/dist/adapters/fastify/index.js +5 -5
- package/dist/adapters/{handler-CRAPq8xB.cjs → handler-Ch9YaC4G.cjs} +3 -3
- package/dist/adapters/{handler-Dqe0_Uvx.js → handler-rUTCH36J.js} +32 -32
- package/dist/adapters/hono/index.cjs +1 -1
- package/dist/adapters/hono/index.js +4 -4
- package/dist/adapters/mcp-app-html.cjs +1 -1
- package/dist/adapters/mcp-app-html.js +1 -1
- package/dist/adapters/mcp-tools.cjs +1 -1
- package/dist/adapters/mcp-tools.js +2 -2
- package/dist/adapters/{mcp-transport-DnnABB3F.cjs → mcp-transport-CDSbAnfH.cjs} +1 -1
- package/dist/adapters/{mcp-transport-DpJDF0M_.js → mcp-transport-DCyksRMv.js} +1 -1
- package/dist/adapters/nextjs/index.cjs +1 -1
- package/dist/adapters/nextjs/index.js +5 -5
- package/dist/adapters/{openai-DOMIchMU.js → openai-B9CJ0Gw3.js} +1 -1
- package/dist/adapters/{openai-Dxk9OT5p.cjs → openai-CPTovs2d.cjs} +1 -1
- package/dist/adapters/{openai-Dxu_8i7e.cjs → openai-CrNRNE9c.cjs} +1 -1
- package/dist/adapters/{openai-DDdpBh3c.js → openai-mmY4YK81.js} +1 -1
- package/dist/adapters/utils-D0jq702C.cjs +141 -0
- package/dist/adapters/{utils-DrbnoHoa.js → utils-wjO1gfkH.js} +27 -1
- package/dist/adapters/utils.cjs +1 -1
- package/dist/adapters/utils.js +1 -1
- package/dist/cjs/client/charts/chartConfigs.d.ts +36 -1
- package/dist/cjs/client/charts.d.ts +2 -2
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisResultsHeader.d.ts +2 -0
- package/dist/cjs/client/components/DashboardPortletCard.d.ts +1 -1
- package/dist/cjs/client/components/RowManagedLayout.d.ts +3 -1
- package/dist/cjs/client/components/analyticsPortlet/PortletChart.d.ts +5 -1
- package/dist/cjs/client/components/analyticsPortlet/PortletChartView.d.ts +5 -1
- package/dist/cjs/client/components/analyticsPortlet/PortletStates.d.ts +9 -1
- package/dist/cjs/client/components/analyticsPortlet/portletRenderState.d.ts +7 -1
- package/dist/cjs/client/components/charts/MarkdownChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/markdownDisclosure.d.ts +14 -0
- package/dist/cjs/client/components/dashboard/dashboardGridUtils.d.ts +1 -1
- package/dist/cjs/client/components/dashboardPortletCard/PortletCardHeader.d.ts +5 -2
- package/dist/cjs/client/components/dashboardPortletCard/PortletFloatingActions.d.ts +6 -3
- package/dist/cjs/client/components/dashboardPortletCard/cardStyles.d.ts +2 -0
- package/dist/cjs/client/components/dashboardPortletCard/portletActionOrder.d.ts +17 -0
- package/dist/cjs/client/components/dashboardPortletCard/propsEqual.d.ts +2 -0
- package/dist/cjs/client/components/dashboardPortletCard/usePortletCardActions.d.ts +4 -1
- package/dist/cjs/client/hooks/dashboard/layoutUtils.d.ts +32 -1
- package/dist/cjs/client/hooks/useAnalysisQuery.d.ts +6 -0
- package/dist/cjs/client/icons/registry.d.ts +3 -1
- package/dist/cjs/client/index.d.ts +4 -3
- package/dist/cjs/client/shared/chartConfigBuilders.d.ts +5 -2
- package/dist/cjs/client/shared/chartDefaults.d.ts +11 -1
- package/dist/cjs/client/types.d.ts +34 -0
- package/dist/cjs/client/utils/colorPalettes.d.ts +25 -0
- package/dist/cjs/client/utils/exportXlsx.d.ts +7 -0
- package/dist/cjs/client/utils/index.d.ts +1 -1
- package/dist/client/charts/chartConfigs.d.ts +36 -1
- package/dist/client/charts.d.ts +2 -2
- package/dist/client/charts.js +12 -12
- package/dist/client/chunks/{ActivityGridChart-CmboSrmc.js → ActivityGridChart-sfYPWaLI.js} +2 -2
- package/dist/client/chunks/{ActivityGridChart-CmboSrmc.js.map → ActivityGridChart-sfYPWaLI.js.map} +1 -1
- package/dist/client/chunks/{BubbleChart-DiloeKCW.js → BubbleChart-BgsVoVgO.js} +3 -5
- package/dist/client/chunks/BubbleChart-BgsVoVgO.js.map +1 -0
- package/dist/client/chunks/{ChartStates-oCfgZumF.js → ChartStates-CrNiZI5S.js} +2 -2
- package/dist/client/chunks/{ChartStates-oCfgZumF.js.map → ChartStates-CrNiZI5S.js.map} +1 -1
- package/dist/client/chunks/{ChartSummaryHeader-nx-4H-in.js → ChartSummaryHeader-DO6M92dC.js} +2 -2
- package/dist/client/chunks/{ChartSummaryHeader-nx-4H-in.js.map → ChartSummaryHeader-DO6M92dC.js.map} +1 -1
- package/dist/client/chunks/{DashboardEditModal-6N8H3lXW.js → DashboardEditModal-CnQ2NR2Q.js} +2029 -1868
- package/dist/client/chunks/DashboardEditModal-CnQ2NR2Q.js.map +1 -0
- package/dist/client/chunks/{DataHistogram-DbQbA-Pi.js → DataHistogram-CHFy7ztz.js} +2 -2
- package/dist/client/chunks/{DataHistogram-DbQbA-Pi.js.map → DataHistogram-CHFy7ztz.js.map} +1 -1
- package/dist/client/chunks/{DotStripChart-HcSCkYDs.js → DotStripChart-Bz5IC3Q1.js} +4 -4
- package/dist/client/chunks/{DotStripChart-HcSCkYDs.js.map → DotStripChart-Bz5IC3Q1.js.map} +1 -1
- package/dist/client/chunks/{FunnelViews-SjgYxngb.js → FunnelViews-BLHRyHAU.js} +2 -2
- package/dist/client/chunks/{FunnelViews-SjgYxngb.js.map → FunnelViews-BLHRyHAU.js.map} +1 -1
- package/dist/client/chunks/{HeatMapChart-B9pj-KQi.js → HeatMapChart-JjUF0zDX.js} +3 -3
- package/dist/client/chunks/{HeatMapChart-B9pj-KQi.js.map → HeatMapChart-JjUF0zDX.js.map} +1 -1
- package/dist/client/chunks/{KpiDelta-1BfMFygT.js → KpiDelta-B6SN3viX.js} +2 -2
- package/dist/client/chunks/{KpiDelta-1BfMFygT.js.map → KpiDelta-B6SN3viX.js.map} +1 -1
- package/dist/client/chunks/{KpiText-DzPeryRS.js → KpiText-z_vo4xcE.js} +2 -2
- package/dist/client/chunks/{KpiText-DzPeryRS.js.map → KpiText-z_vo4xcE.js.map} +1 -1
- package/dist/client/chunks/{MarkdownChart-_aif5Ye3.js → MarkdownChart-BKQl0PAy.js} +1125 -1059
- package/dist/client/chunks/MarkdownChart-BKQl0PAy.js.map +1 -0
- package/dist/client/chunks/{PortletAnalysisModal-C0MLoJTP.js → PortletAnalysisModal-XfCy-bY3.js} +5 -5
- package/dist/client/chunks/{PortletAnalysisModal-C0MLoJTP.js.map → PortletAnalysisModal-XfCy-bY3.js.map} +1 -1
- package/dist/client/chunks/{ProportionBarChart-B9Rgyhbc.js → ProportionBarChart-tVmEO5Xi.js} +4 -4
- package/dist/client/chunks/{ProportionBarChart-B9Rgyhbc.js.map → ProportionBarChart-tVmEO5Xi.js.map} +1 -1
- package/dist/client/chunks/{RecordsTable-DRovI83Z.js → RecordsTable-X4-iL03N.js} +4 -4
- package/dist/client/chunks/{RecordsTable-DRovI83Z.js.map → RecordsTable-X4-iL03N.js.map} +1 -1
- package/dist/client/chunks/{RetentionCombinedChart-D_vAvtIb.js → RetentionCombinedChart-DCgCAEa4.js} +3 -3
- package/dist/client/chunks/{RetentionCombinedChart-D_vAvtIb.js.map → RetentionCombinedChart-DCgCAEa4.js.map} +1 -1
- package/dist/client/chunks/{RetentionHeatmap-CVEmxbg9.js → RetentionHeatmap-BnQng2Nc.js} +2 -2
- package/dist/client/chunks/{RetentionHeatmap-CVEmxbg9.js.map → RetentionHeatmap-BnQng2Nc.js.map} +1 -1
- package/dist/client/chunks/{SchemaVisualization-DE8WBbNZ.js → SchemaVisualization-DAs91j_B.js} +1 -1
- package/dist/client/chunks/{TextPortletModal-Bg5hFfZg.js → TextPortletModal-MeQiEmR8.js} +3 -3
- package/dist/client/chunks/{TextPortletModal-Bg5hFfZg.js.map → TextPortletModal-MeQiEmR8.js.map} +1 -1
- package/dist/client/chunks/{analysis-builder-BMoycXCE.js → analysis-builder-_JOj-PkX.js} +1554 -1537
- package/dist/client/chunks/analysis-builder-_JOj-PkX.js.map +1 -0
- package/dist/client/chunks/{analysis-builder-shared-D1KnOXT2.js → analysis-builder-shared-CYK5sH46.js} +911 -902
- package/dist/client/chunks/analysis-builder-shared-CYK5sH46.js.map +1 -0
- package/dist/client/chunks/{chart-activity-grid-CiqEnzs_.js → chart-activity-grid-CIzCAMX9.js} +4 -4
- package/dist/client/chunks/{chart-activity-grid-CiqEnzs_.js.map → chart-activity-grid-CIzCAMX9.js.map} +1 -1
- package/dist/client/chunks/{chart-area-BgKyGty4.js → chart-area-BRLlLtIX.js} +6 -6
- package/dist/client/chunks/{chart-area-BgKyGty4.js.map → chart-area-BRLlLtIX.js.map} +1 -1
- package/dist/client/chunks/{chart-bar-BKTQ6zyq.js → chart-bar-D2qp_vsO.js} +5 -5
- package/dist/client/chunks/{chart-bar-BKTQ6zyq.js.map → chart-bar-D2qp_vsO.js.map} +1 -1
- package/dist/client/chunks/{chart-box-plot-FD8d8S_Y.js → chart-box-plot-Bt2dfls7.js} +2 -2
- package/dist/client/chunks/{chart-box-plot-FD8d8S_Y.js.map → chart-box-plot-Bt2dfls7.js.map} +1 -1
- package/dist/client/chunks/{chart-bubble-BbmLUynL.js → chart-bubble-BJZlm4xv.js} +4 -4
- package/dist/client/chunks/{chart-bubble-BbmLUynL.js.map → chart-bubble-BJZlm4xv.js.map} +1 -1
- package/dist/client/chunks/{chart-candlestick-DeDZSkhF.js → chart-candlestick-DsNtTruF.js} +2 -2
- package/dist/client/chunks/{chart-candlestick-DeDZSkhF.js.map → chart-candlestick-DsNtTruF.js.map} +1 -1
- package/dist/client/chunks/{chart-data-table-DLwFKymv.js → chart-data-table-DIghSvZN.js} +3 -3
- package/dist/client/chunks/{chart-data-table-DLwFKymv.js.map → chart-data-table-DIghSvZN.js.map} +1 -1
- package/dist/client/chunks/{chart-funnel-BirEW77o.js → chart-funnel-CvVQTMej.js} +3 -3
- package/dist/client/chunks/{chart-funnel-BirEW77o.js.map → chart-funnel-CvVQTMej.js.map} +1 -1
- package/dist/client/chunks/{chart-gauge-C4yS5138.js → chart-gauge-DSu7U1YZ.js} +4 -4
- package/dist/client/chunks/{chart-gauge-C4yS5138.js.map → chart-gauge-DSu7U1YZ.js.map} +1 -1
- package/dist/client/chunks/{chart-heat-map-DvGcfud9.js → chart-heat-map-Be7XsINq.js} +4 -4
- package/dist/client/chunks/{chart-heat-map-DvGcfud9.js.map → chart-heat-map-Be7XsINq.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-delta-BeReVMyn.js → chart-kpi-delta-7rLLK4Bg.js} +4 -4
- package/dist/client/chunks/{chart-kpi-delta-BeReVMyn.js.map → chart-kpi-delta-7rLLK4Bg.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-number-CuYpI5LO.js → chart-kpi-number-CUeK8MQP.js} +4 -4
- package/dist/client/chunks/{chart-kpi-number-CuYpI5LO.js.map → chart-kpi-number-CUeK8MQP.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-text-D3dha9Dn.js → chart-kpi-text-CvRv2tGg.js} +5 -5
- package/dist/client/chunks/{chart-kpi-text-D3dha9Dn.js.map → chart-kpi-text-CvRv2tGg.js.map} +1 -1
- package/dist/client/chunks/{chart-line-EzYdBDdL.js → chart-line-Bl-bSP0Y.js} +6 -6
- package/dist/client/chunks/{chart-line-EzYdBDdL.js.map → chart-line-Bl-bSP0Y.js.map} +1 -1
- package/dist/client/chunks/chart-markdown-5dXZ-EtR.js +96 -0
- package/dist/client/chunks/chart-markdown-5dXZ-EtR.js.map +1 -0
- package/dist/client/chunks/{chart-measure-profile-DaL9c2jy.js → chart-measure-profile-DjAV-TtG.js} +4 -4
- package/dist/client/chunks/{chart-measure-profile-DaL9c2jy.js.map → chart-measure-profile-DjAV-TtG.js.map} +1 -1
- package/dist/client/chunks/{chart-pie-Dw3W8Qjg.js → chart-pie-3IGIOniI.js} +5 -5
- package/dist/client/chunks/{chart-pie-Dw3W8Qjg.js.map → chart-pie-3IGIOniI.js.map} +1 -1
- package/dist/client/chunks/{chart-radar-BhySlY7t.js → chart-radar-Md5BwLhY.js} +4 -4
- package/dist/client/chunks/{chart-radar-BhySlY7t.js.map → chart-radar-Md5BwLhY.js.map} +1 -1
- package/dist/client/chunks/{chart-radial-bar-DXc37T3I.js → chart-radial-bar-Bfb-gGm6.js} +4 -4
- package/dist/client/chunks/{chart-radial-bar-DXc37T3I.js.map → chart-radial-bar-Bfb-gGm6.js.map} +1 -1
- package/dist/client/chunks/{chart-sankey-Xi0rQvx-.js → chart-sankey-BmQKKIZa.js} +2 -2
- package/dist/client/chunks/{chart-sankey-Xi0rQvx-.js.map → chart-sankey-BmQKKIZa.js.map} +1 -1
- package/dist/client/chunks/{chart-scatter-D7mMgM6E.js → chart-scatter-BES9g5kG.js} +5 -5
- package/dist/client/chunks/{chart-scatter-D7mMgM6E.js.map → chart-scatter-BES9g5kG.js.map} +1 -1
- package/dist/client/chunks/{chart-sunburst-t3Qb3HI7.js → chart-sunburst-BBOCkD00.js} +2 -2
- package/dist/client/chunks/{chart-sunburst-t3Qb3HI7.js.map → chart-sunburst-BBOCkD00.js.map} +1 -1
- package/dist/client/chunks/{chart-tree-map-C0EZEE0y.js → chart-tree-map-CkvUBqNw.js} +5 -5
- package/dist/client/chunks/{chart-tree-map-C0EZEE0y.js.map → chart-tree-map-CkvUBqNw.js.map} +1 -1
- package/dist/client/chunks/{chart-waterfall-C4rt-_iE.js → chart-waterfall-KeSpmPhi.js} +4 -4
- package/dist/client/chunks/{chart-waterfall-C4rt-_iE.js.map → chart-waterfall-KeSpmPhi.js.map} +1 -1
- package/dist/client/chunks/{chartComponentRegistry-lrQVhpz2.js → chartComponentRegistry-B6jUklcw.js} +3 -3
- package/dist/client/chunks/chartComponentRegistry-B6jUklcw.js.map +1 -0
- package/dist/client/chunks/{chartPlugin-QJVPr2DC.js → chartPlugin-DnQOiDRV.js} +2 -2
- package/dist/client/chunks/{chartPlugin-QJVPr2DC.js.map → chartPlugin-DnQOiDRV.js.map} +1 -1
- package/dist/client/chunks/{charts-core-USDYqnlX.js → charts-core-BsheHP0O.js} +2 -2
- package/dist/client/chunks/{charts-core-USDYqnlX.js.map → charts-core-BsheHP0O.js.map} +1 -1
- package/dist/client/chunks/{charts-loader-i4Fe3mAw.js → charts-loader-Bt00isFs.js} +32 -32
- package/dist/client/chunks/{charts-loader-i4Fe3mAw.js.map → charts-loader-Bt00isFs.js.map} +1 -1
- package/dist/client/chunks/{dist-CiyOP0NN.js → dist-BJHNNhZr.js} +3 -3
- package/dist/client/chunks/dist-BJHNNhZr.js.map +1 -0
- package/dist/client/chunks/{exportXlsx-Dnc0ZOJW.js → exportXlsx-CAC5_NOP.js} +29 -21
- package/dist/client/chunks/exportXlsx-CAC5_NOP.js.map +1 -0
- package/dist/client/chunks/{nl-NL-D0By-h6j.js → nl-NL-Cqzg1eUq.js} +28 -2
- package/dist/client/chunks/{nl-NL-D0By-h6j.js.map → nl-NL-Cqzg1eUq.js.map} +1 -1
- package/dist/client/chunks/{providers-Bn1iccjx.js → providers-CGtqLkL5.js} +7 -7
- package/dist/client/chunks/{providers-Bn1iccjx.js.map → providers-CGtqLkL5.js.map} +1 -1
- package/dist/client/chunks/{schema-visualization-D5HMwXPe.js → schema-visualization-CgYgfh4e.js} +5 -5
- package/dist/client/chunks/{schema-visualization-D5HMwXPe.js.map → schema-visualization-CgYgfh4e.js.map} +1 -1
- package/dist/client/chunks/{useCubeFieldLabel-CYdABa_m.js → useCubeFieldLabel-BaQ47OCT.js} +2 -2
- package/dist/client/chunks/{useCubeFieldLabel-CYdABa_m.js.map → useCubeFieldLabel-BaQ47OCT.js.map} +1 -1
- package/dist/client/chunks/{useCubeMetaQuery-BQRQjE8r.js → useCubeMetaQuery-D736B6Jp.js} +2 -2
- package/dist/client/chunks/{useCubeMetaQuery-BQRQjE8r.js.map → useCubeMetaQuery-D736B6Jp.js.map} +1 -1
- package/dist/client/chunks/{useDirtyStateTracking-DvlGcFpU.js → useDirtyStateTracking-D3b4tD_b.js} +2 -2
- package/dist/client/chunks/{useDirtyStateTracking-DvlGcFpU.js.map → useDirtyStateTracking-D3b4tD_b.js.map} +1 -1
- package/dist/client/chunks/{useExplainAI-DGXJ0Rcg.js → useExplainAI-BaETifYG.js} +3 -3
- package/dist/client/chunks/{useExplainAI-DGXJ0Rcg.js.map → useExplainAI-BaETifYG.js.map} +1 -1
- package/dist/client/chunks/{useTranslation-F7BGje95.js → useTranslation-DO5KRcwD.js} +30 -4
- package/dist/client/chunks/{useTranslation-F7BGje95.js.map → useTranslation-DO5KRcwD.js.map} +1 -1
- package/dist/client/chunks/utils-CToHkuhU.js.map +1 -1
- package/dist/client/components/AnalysisBuilder/AnalysisResultsHeader.d.ts +2 -0
- package/dist/client/components/DashboardPortletCard.d.ts +1 -1
- package/dist/client/components/RowManagedLayout.d.ts +3 -1
- package/dist/client/components/analyticsPortlet/PortletChart.d.ts +5 -1
- package/dist/client/components/analyticsPortlet/PortletChartView.d.ts +5 -1
- package/dist/client/components/analyticsPortlet/PortletStates.d.ts +9 -1
- package/dist/client/components/analyticsPortlet/portletRenderState.d.ts +7 -1
- package/dist/client/components/charts/MarkdownChart.d.ts +1 -1
- package/dist/client/components/charts/markdownDisclosure.d.ts +14 -0
- package/dist/client/components/dashboard/dashboardGridUtils.d.ts +1 -1
- package/dist/client/components/dashboardPortletCard/PortletCardHeader.d.ts +5 -2
- package/dist/client/components/dashboardPortletCard/PortletFloatingActions.d.ts +6 -3
- package/dist/client/components/dashboardPortletCard/cardStyles.d.ts +2 -0
- package/dist/client/components/dashboardPortletCard/portletActionOrder.d.ts +17 -0
- package/dist/client/components/dashboardPortletCard/propsEqual.d.ts +2 -0
- package/dist/client/components/dashboardPortletCard/usePortletCardActions.d.ts +4 -1
- package/dist/client/components.js +5 -5
- package/dist/client/components.js.map +1 -1
- package/dist/client/hooks/dashboard/layoutUtils.d.ts +32 -1
- package/dist/client/hooks/useAnalysisQuery.d.ts +6 -0
- package/dist/client/hooks.js +3 -3
- package/dist/client/icons/registry.d.ts +3 -1
- package/dist/client/icons.js +4 -4
- package/dist/client/icons.js.map +1 -1
- package/dist/client/index.d.ts +4 -3
- package/dist/client/index.js +427 -427
- package/dist/client/index.js.map +1 -1
- package/dist/client/providers.js +1 -1
- package/dist/client/schema.js +1 -1
- package/dist/client/shared/chartConfigBuilders.d.ts +5 -2
- package/dist/client/shared/chartDefaults.d.ts +11 -1
- package/dist/client/styles.css +1 -1
- package/dist/client/types.d.ts +34 -0
- package/dist/client/utils/colorPalettes.d.ts +25 -0
- package/dist/client/utils/exportXlsx.d.ts +7 -0
- package/dist/client/utils/index.d.ts +1 -1
- package/dist/client/utils.js +14 -14
- package/dist/client/utils.js.map +1 -1
- package/dist/client-bundle-stats.html +1 -1
- package/dist/mcp-app/mcp-app.html +132 -131
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +27 -1
- package/package.json +7 -7
- package/dist/adapters/ActivityGridChart.config-BDe2_qYC.js +0 -1
- package/dist/adapters/ActivityGridChart.config-BY3cUifC.cjs +0 -1
- package/dist/adapters/AreaChart.config-CaLEu4WZ.cjs +0 -1
- package/dist/adapters/AreaChart.config-upS1qK9z.js +0 -1
- package/dist/adapters/BarChart.config-CSbClrlz.cjs +0 -1
- package/dist/adapters/BarChart.config-GlYPKS8R.js +0 -1
- package/dist/adapters/BoxPlotChart.config-BIxjwA1O.cjs +0 -1
- package/dist/adapters/BoxPlotChart.config-DybpbTEl.js +0 -1
- package/dist/adapters/BubbleChart.config-CREi46jt.cjs +0 -1
- package/dist/adapters/BubbleChart.config-Di8lOOga.js +0 -1
- package/dist/adapters/CandlestickChart.config-BrbgDZcn.cjs +0 -1
- package/dist/adapters/CandlestickChart.config-CTHDWBM7.js +0 -1
- package/dist/adapters/DataTable.config-BpzbJKOY.cjs +0 -1
- package/dist/adapters/DataTable.config-DbPDoKSt.js +0 -1
- package/dist/adapters/DotStripChart.config-Bkj53d85.cjs +0 -1
- package/dist/adapters/DotStripChart.config-Xxte1OgG.js +0 -1
- package/dist/adapters/FunnelChart.config-CRbPp-7K.js +0 -1
- package/dist/adapters/FunnelChart.config-DfaMSLui.cjs +0 -1
- package/dist/adapters/GaugeChart.config-CKKMCRn4.js +0 -1
- package/dist/adapters/GaugeChart.config-CN7S1OEB.cjs +0 -1
- package/dist/adapters/HeatMapChart.config-BloGhLrU.js +0 -1
- package/dist/adapters/HeatMapChart.config-C94iqzfw.cjs +0 -1
- package/dist/adapters/KpiDelta.config-CMGQIfsy.cjs +0 -1
- package/dist/adapters/KpiDelta.config-qC8_1W29.js +0 -1
- package/dist/adapters/KpiNumber.config-CnYoD9WM.js +0 -1
- package/dist/adapters/KpiNumber.config-jxzFzY71.cjs +0 -1
- package/dist/adapters/KpiText.config--11XBVEz.js +0 -1
- package/dist/adapters/KpiText.config-DOYHINgD.cjs +0 -1
- package/dist/adapters/LineChart.config-Bt6XKzQj.js +0 -1
- package/dist/adapters/LineChart.config-nwC-IWRL.cjs +0 -1
- package/dist/adapters/MarkdownChart.config-Br1jAwCf.js +0 -1
- package/dist/adapters/MarkdownChart.config-CeqYtwrd.cjs +0 -1
- package/dist/adapters/MeasureProfileChart.config-B0G_11c9.js +0 -1
- package/dist/adapters/MeasureProfileChart.config-_ZC5pb_I.cjs +0 -1
- package/dist/adapters/PieChart.config-CZc5LcmR.js +0 -1
- package/dist/adapters/PieChart.config-D1tFIodJ.cjs +0 -1
- package/dist/adapters/ProportionBarChart.config-9zHgirKR.cjs +0 -1
- package/dist/adapters/ProportionBarChart.config-BMIYtg7Q.js +0 -1
- package/dist/adapters/RadarChart.config-CYPyOMbT.js +0 -1
- package/dist/adapters/RadarChart.config-mPXx8Moz.cjs +0 -1
- package/dist/adapters/RadialBarChart.config-EzhjUjvA.cjs +0 -1
- package/dist/adapters/RadialBarChart.config-l9yaKru1.js +0 -1
- package/dist/adapters/RecordsTable.config-BNKcGGjX.cjs +0 -1
- package/dist/adapters/RecordsTable.config-CbtJMaVG.js +0 -1
- package/dist/adapters/RetentionCombinedChart.config-CtJ-q7Gr.js +0 -1
- package/dist/adapters/RetentionCombinedChart.config-Y47OjDeH.cjs +0 -1
- package/dist/adapters/RetentionHeatmap.config-BqLV6f6o.cjs +0 -1
- package/dist/adapters/RetentionHeatmap.config-DPNhEK1p.js +0 -1
- package/dist/adapters/SankeyChart.config-Dipd6fNz.cjs +0 -1
- package/dist/adapters/SankeyChart.config-DpK5pFy5.js +0 -1
- package/dist/adapters/ScatterChart.config-BfDDAH83.cjs +0 -1
- package/dist/adapters/ScatterChart.config-C90xKdE-.js +0 -1
- package/dist/adapters/SunburstChart.config-CacceE1E.cjs +0 -1
- package/dist/adapters/SunburstChart.config-MoFnOy0s.js +0 -1
- package/dist/adapters/TreeMapChart.config-BYHi-dzk.js +0 -1
- package/dist/adapters/TreeMapChart.config-CWSspab0.cjs +0 -1
- package/dist/adapters/WaterfallChart.config-CiOnjcsk.cjs +0 -1
- package/dist/adapters/WaterfallChart.config-TNtq-2mo.js +0 -1
- package/dist/adapters/utils-0Afl53Xc.cjs +0 -141
- package/dist/client/chunks/BubbleChart-DiloeKCW.js.map +0 -1
- package/dist/client/chunks/DashboardEditModal-6N8H3lXW.js.map +0 -1
- package/dist/client/chunks/MarkdownChart-_aif5Ye3.js.map +0 -1
- package/dist/client/chunks/analysis-builder-BMoycXCE.js.map +0 -1
- package/dist/client/chunks/analysis-builder-shared-D1KnOXT2.js.map +0 -1
- package/dist/client/chunks/chart-markdown-B1AZcI8Y.js +0 -68
- package/dist/client/chunks/chart-markdown-B1AZcI8Y.js.map +0 -1
- package/dist/client/chunks/chartComponentRegistry-lrQVhpz2.js.map +0 -1
- package/dist/client/chunks/dist-CiyOP0NN.js.map +0 -1
- package/dist/client/chunks/exportXlsx-Dnc0ZOJW.js.map +0 -1
|
@@ -2396,6 +2396,8 @@ var We = class {
|
|
|
2396
2396
|
"portlet.invalidQuery": "Invalid query or no results",
|
|
2397
2397
|
"portlet.unsupportedChartType": "Unsupported chart type",
|
|
2398
2398
|
"portlet.unableToRender": "Unable to render chart",
|
|
2399
|
+
"portlet.oneQueryOnly.title": "This chart type shows one query only",
|
|
2400
|
+
"portlet.oneQueryOnly.hint": "Remove the other queries, or select a different chart type.",
|
|
2399
2401
|
"portlet.droppedMembers": "Hidden — no longer in the model: {members}",
|
|
2400
2402
|
"portlet.enterTitle": "Enter portlet title...",
|
|
2401
2403
|
"portlet.enterPortletTitle": "Please enter a title for the portlet.",
|
|
@@ -2535,7 +2537,31 @@ var We = class {
|
|
|
2535
2537
|
"dashboard.import.error.invalidConfig": "The dashboard configuration is invalid ({path}).",
|
|
2536
2538
|
"dashboard.import.error.invalidPortlet": "Portlet {index} is invalid ({path}).",
|
|
2537
2539
|
"dashboard.missingGridLayout.title": "Grid layout needs react-grid-layout",
|
|
2538
|
-
"dashboard.missingGridLayout.description": "Install it to show this dashboard as a grid, or switch the dashboard to row layout:"
|
|
2540
|
+
"dashboard.missingGridLayout.description": "Install it to show this dashboard as a grid, or switch the dashboard to row layout:",
|
|
2541
|
+
"dashboardFilter.presets.today": "Today",
|
|
2542
|
+
"dashboardFilter.presets.yesterday": "Yesterday",
|
|
2543
|
+
"dashboardFilter.presets.7d": "7D",
|
|
2544
|
+
"dashboardFilter.presets.30d": "30D",
|
|
2545
|
+
"dashboardFilter.presets.3m": "3M",
|
|
2546
|
+
"dashboardFilter.presets.6m": "6M",
|
|
2547
|
+
"dashboardFilter.presets.12m": "12M",
|
|
2548
|
+
"dashboardFilter.xtd.trigger": "XTD",
|
|
2549
|
+
"dashboardFilter.xtd.wtd": "Week to Date",
|
|
2550
|
+
"dashboardFilter.xtd.mtd": "Month to Date",
|
|
2551
|
+
"dashboardFilter.xtd.qtd": "Quarter to Date",
|
|
2552
|
+
"dashboardFilter.xtd.ytd": "Year to Date",
|
|
2553
|
+
"dashboardFilter.customTabs.fixed": "Fixed",
|
|
2554
|
+
"dashboardFilter.customTabs.since": "Since",
|
|
2555
|
+
"dashboardFilter.customTabs.last": "Last",
|
|
2556
|
+
"dashboardFilter.units.days": "Days",
|
|
2557
|
+
"dashboardFilter.units.weeks": "Weeks",
|
|
2558
|
+
"dashboardFilter.units.months": "Months",
|
|
2559
|
+
"dashboardFilter.units.quarters": "Quarters",
|
|
2560
|
+
"dashboardFilter.units.years": "Years",
|
|
2561
|
+
"analysis.breakdownComparison.vsPrior": "vs prior",
|
|
2562
|
+
"analysis.breakdownComparison.alreadyEnabled": "Another time dimension already has comparison enabled",
|
|
2563
|
+
"analysis.breakdownComparison.clickToDisable": "Click to disable comparison",
|
|
2564
|
+
"analysis.breakdownComparison.compareWithPrevious": "Compare with previous period"
|
|
2539
2565
|
}, Ke = Ge;
|
|
2540
2566
|
function qe(e) {
|
|
2541
2567
|
return Object.prototype.hasOwnProperty.call(Ge, e);
|
package/dist/adapters/utils.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./utils-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./utils-D0jq702C.cjs");exports.buildTransformedQuery=e.t,exports.calculateQueryComplexity=e.n,exports.formatCubeResponse=e.r,exports.formatErrorResponse=e.i,exports.formatMetaResponse=e.a,exports.formatSqlResponse=e.o,exports.formatSqlString=e.x,exports.generateRequestId=e.s,exports.getDatabaseType=e.c,exports.handleBatchRequest=e.l,exports.handleDiscover=e.p,exports.handleDryRun=e.u,exports.handleLoad=e.m,exports.handleSuggest=e.d,exports.handleValidate=e.f,exports.normalizeQueryFields=e.h;
|
package/dist/adapters/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as buildTransformedQuery, n as calculateQueryComplexity, r as formatCubeResponse, i as formatErrorResponse, a as formatMetaResponse, o as formatSqlResponse, x as formatSqlString, s as generateRequestId, c as getDatabaseType, l as handleBatchRequest, p as handleDiscover, u as handleDryRun, m as handleLoad, d as handleSuggest, f as handleValidate, h as normalizeQueryFields } from "./utils-
|
|
1
|
+
export { t as buildTransformedQuery, n as calculateQueryComplexity, r as formatCubeResponse, i as formatErrorResponse, a as formatMetaResponse, o as formatSqlResponse, x as formatSqlString, s as generateRequestId, c as getDatabaseType, l as handleBatchRequest, p as handleDiscover, u as handleDryRun, m as handleLoad, d as handleSuggest, f as handleValidate, h as normalizeQueryFields } from "./utils-wjO1gfkH.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ChartAxisConfig, ChartDisplayConfig } from '../types.js';
|
|
1
|
+
import { ChartAxisConfig, ChartDisplayConfig, ChartType } from '../types.js';
|
|
2
|
+
import { AxisBuilderContext } from '../shared/chartConfigBuilders.js';
|
|
2
3
|
/**
|
|
3
4
|
* Configuration for a single axis drop zone in the chart configuration UI
|
|
4
5
|
*/
|
|
@@ -176,6 +177,18 @@ export interface ChartTypeConfig {
|
|
|
176
177
|
useCase?: string;
|
|
177
178
|
/** Whether this chart type skips query requirements (for content-based charts like markdown) */
|
|
178
179
|
skipQuery?: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* The chart loads its own data. The dashboard portlet and the
|
|
182
|
+
* AnalysisBuilder preview do not fetch. They still build the effective
|
|
183
|
+
* query (dashboard filters, universal time filter, drill) and pass it to
|
|
184
|
+
* the chart as `queryObject`. The chart owns its loading, error and empty
|
|
185
|
+
* states, and the portlet shows no XLSX download and no debug data for it.
|
|
186
|
+
* A Refresh sends a new `refreshId` to the chart and does not reload the
|
|
187
|
+
* Cube query. A portlet or a preview with more than one query (a
|
|
188
|
+
* multi-query, funnel, flow or retention analysis) shows a message in place
|
|
189
|
+
* of the chart, because the chart reads one query only.
|
|
190
|
+
*/
|
|
191
|
+
fetchesOwnData?: boolean;
|
|
179
192
|
/** Configuration for which elements support clicking (for drill-down) */
|
|
180
193
|
clickableElements?: ClickableElementsConfig;
|
|
181
194
|
/**
|
|
@@ -192,6 +205,28 @@ export interface ChartTypeConfig {
|
|
|
192
205
|
* so a custom chart can opt in through the same flag.
|
|
193
206
|
*/
|
|
194
207
|
recordGrain?: boolean;
|
|
208
|
+
/**
|
|
209
|
+
* Builds this chart's config from the selected fields whenever the analysis
|
|
210
|
+
* builder needs a default config for it: when the user picks this chart
|
|
211
|
+
* type, when the builder switches to it, and when it fills an empty config.
|
|
212
|
+
* Omit it to use the built-in rule for the chart type, or the default rule
|
|
213
|
+
* (first breakdown on `xAxis`, every measure on `yAxis`) for a custom chart.
|
|
214
|
+
*
|
|
215
|
+
* When the user picks this chart type, the context also carries the chart
|
|
216
|
+
* they leave, so a chart that shares its drop zones with another chart can
|
|
217
|
+
* keep that chart's config.
|
|
218
|
+
*/
|
|
219
|
+
buildChartConfig?: (context: ChartConfigBuildContext) => ChartAxisConfig;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* What a chart's `buildChartConfig` receives: the selected fields and, when
|
|
223
|
+
* the user picks the chart type, the chart type and config they leave.
|
|
224
|
+
*/
|
|
225
|
+
export interface ChartConfigBuildContext extends AxisBuilderContext {
|
|
226
|
+
/** The chart type the user leaves. Set only when the user picks the chart type. */
|
|
227
|
+
previousChartType?: ChartType;
|
|
228
|
+
/** The chart config the user leaves. Set only when the user picks the chart type. */
|
|
229
|
+
previousChartConfig?: ChartAxisConfig;
|
|
195
230
|
}
|
|
196
231
|
/**
|
|
197
232
|
* Registry of all chart type configurations
|
|
@@ -13,5 +13,5 @@ export type { LazyChartProps } from './charts/ChartLoader.js';
|
|
|
13
13
|
export { getChartConfigAsync, getChartConfigSync, useChartConfig, isChartConfigLoaded, preloadChartConfig, preloadChartConfigs, loadAllChartConfigs, clearChartConfigCache } from './charts/lazyChartConfigRegistry.js';
|
|
14
14
|
export { formatChartData } from './utils/index.js';
|
|
15
15
|
export { CHART_COLORS, POSITIVE_COLOR, NEGATIVE_COLOR, CHART_MARGINS } from './utils/chartConstants.js';
|
|
16
|
-
export type { ChartType, ChartAxisConfig, ChartDisplayConfig, ChartProps, ColorPalette } from './types.js';
|
|
17
|
-
export type { ChartTypeConfig, DisplayOptionConfig, AxisDropZoneConfig } from './charts/chartConfigs.js';
|
|
16
|
+
export type { ChartType, ChartAxisConfig, ChartDisplayConfig, ChartProps, ChartExportHandler, ColorPalette } from './types.js';
|
|
17
|
+
export type { ChartTypeConfig, ChartConfigBuildContext, DisplayOptionConfig, AxisDropZoneConfig } from './charts/chartConfigs.js';
|
|
@@ -24,6 +24,8 @@ export interface ResultsSummary {
|
|
|
24
24
|
debugDataPerQuery: Array<{
|
|
25
25
|
error?: unknown;
|
|
26
26
|
}>;
|
|
27
|
+
/** The chart loads its own data, so the builder has no row count or status to show */
|
|
28
|
+
fetchesOwnData?: boolean;
|
|
27
29
|
}
|
|
28
30
|
/** Action handlers and their transient state for the toolbar buttons. */
|
|
29
31
|
export interface ResultsToolbarActions {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { DashboardPortletCardProps } from './dashboardPortletCard/propsEqual.js';
|
|
3
|
-
declare const DashboardPortletCard: React.MemoExoticComponent<({ portlet, editable, layoutMode, dashboardFilters, configEagerLoad, dashboardRefresh, loadingComponent, colorPalette, containerProps, headerProps, variant, setPortletRef, setPortletComponentRef, callbacks, icons, onPortletExpand }: DashboardPortletCardProps) => React.JSX.Element>;
|
|
3
|
+
declare const DashboardPortletCard: React.MemoExoticComponent<({ portlet, editable, layoutMode, dashboardFilters, configEagerLoad, dashboardRefresh, loadingComponent, colorPalette, containerProps, headerProps, variant, inFixedHeightRow, setPortletRef, setPortletComponentRef, callbacks, icons, onPortletExpand }: DashboardPortletCardProps) => React.JSX.Element>;
|
|
4
4
|
export default DashboardPortletCard;
|
|
@@ -23,7 +23,9 @@ interface RowManagedLayoutProps {
|
|
|
23
23
|
draggingPortletId?: string | null;
|
|
24
24
|
/** Id of the group currently being dragged, so its members ignore their bands. */
|
|
25
25
|
draggingGroupId?: string | null;
|
|
26
|
-
renderPortlet: (portlet: PortletConfig, containerProps?: HTMLAttributes<HTMLDivElement>, headerProps?: HTMLAttributes<HTMLDivElement>, variant?: PortletCardVariant
|
|
26
|
+
renderPortlet: (portlet: PortletConfig, containerProps?: HTMLAttributes<HTMLDivElement>, headerProps?: HTMLAttributes<HTMLDivElement>, variant?: PortletCardVariant,
|
|
27
|
+
/** True when the row keeps a fixed height, so a markdown card must fill it instead of growing. */
|
|
28
|
+
inFixedHeightRow?: boolean) => ReactNode;
|
|
27
29
|
/** Renders a group column. Omitted in contexts that have no groups. */
|
|
28
30
|
renderGroup?: (group: PortletGroup, renderSnapBands: (portletId: string) => ReactNode,
|
|
29
31
|
/** Set inside a section, where the section card draws the only frame. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartAxisConfig, ChartDisplayConfig, ChartPagination, ChartType, CubeQuery } from '../../types.js';
|
|
1
|
+
import { ChartAxisConfig, ChartDisplayConfig, ChartExportHandler, ChartPagination, ChartType, CubeQuery } from '../../types.js';
|
|
2
2
|
import { FlowChartData } from '../../types/flow.js';
|
|
3
3
|
import { RetentionChartData } from '../../types/retention.js';
|
|
4
4
|
import { ColorPalette } from '../../utils/colorPalettes.js';
|
|
@@ -29,6 +29,10 @@ export interface PortletChartProps {
|
|
|
29
29
|
onDataPointClick?: (...args: any[]) => void;
|
|
30
30
|
initialViewState?: unknown;
|
|
31
31
|
onViewStateChange?: (state: unknown) => void;
|
|
32
|
+
/** Registers the export of the chart (`ChartProps.onExportReady`) */
|
|
33
|
+
onExportReady?: (handler: ChartExportHandler | null) => void;
|
|
34
|
+
/** The id of the latest portlet Refresh (`ChartProps.refreshId`) */
|
|
35
|
+
refreshId?: string | null;
|
|
32
36
|
}
|
|
33
37
|
export declare function PortletChart(props: PortletChartProps): import('react').JSX.Element;
|
|
34
38
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartAxisConfig, ChartDisplayConfig, ChartPagination, ChartType, CubeQuery } from '../../types.js';
|
|
1
|
+
import { ChartAxisConfig, ChartDisplayConfig, ChartExportHandler, ChartPagination, ChartType, CubeQuery } from '../../types.js';
|
|
2
2
|
import { FlowChartData } from '../../types/flow.js';
|
|
3
3
|
import { RetentionChartData } from '../../types/retention.js';
|
|
4
4
|
import { ColorPalette } from '../../utils/colorPalettes.js';
|
|
@@ -36,6 +36,10 @@ export interface PortletChartViewProps {
|
|
|
36
36
|
/** Start state of the chart component (`PortletViewState.chart`) */
|
|
37
37
|
initialViewState?: unknown;
|
|
38
38
|
onViewStateChange?: (state: unknown) => void;
|
|
39
|
+
/** Registers the export of the chart (`ChartProps.onExportReady`) */
|
|
40
|
+
onExportReady?: (handler: ChartExportHandler | null) => void;
|
|
41
|
+
/** The id of the latest portlet Refresh (`ChartProps.refreshId`) */
|
|
42
|
+
refreshId?: string | null;
|
|
39
43
|
}
|
|
40
44
|
export declare function PortletChartView(props: PortletChartViewProps): import('react').JSX.Element;
|
|
41
45
|
export {};
|
|
@@ -38,7 +38,15 @@ interface PortletNoDataProps {
|
|
|
38
38
|
onNavigateToLevel: (index: number) => void;
|
|
39
39
|
}
|
|
40
40
|
export declare function PortletNoData({ inViewRef, height, drillPath, onNavigateBack, onNavigateToLevel }: PortletNoDataProps): import('react').JSX.Element;
|
|
41
|
-
|
|
41
|
+
/**
|
|
42
|
+
* A chart that loads its own data (`fetchesOwnData`) reads one query only, so a
|
|
43
|
+
* multi-query, funnel, flow or retention portlet shows this in place of it.
|
|
44
|
+
*/
|
|
45
|
+
export declare function PortletOneQueryOnly({ inViewRef, height }: {
|
|
46
|
+
inViewRef: Ref<HTMLDivElement>;
|
|
47
|
+
height: Height;
|
|
48
|
+
}): import('react').JSX.Element;
|
|
49
|
+
export type PortletStateKind = 'config-required' | 'lazy-placeholder' | 'loading' | 'error' | 'one-query-only';
|
|
42
50
|
interface PortletStateViewProps {
|
|
43
51
|
kind: PortletStateKind | 'no-data';
|
|
44
52
|
inViewRef: Ref<HTMLDivElement>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FlowChartData, ServerFlowQuery } from '../../types/flow.js';
|
|
2
2
|
import { RetentionChartData, ServerRetentionQuery } from '../../types/retention.js';
|
|
3
3
|
import { CubeQuery, MultiQueryConfig, ServerFunnelQuery } from '../../types.js';
|
|
4
|
-
export type PortletRenderKind = 'config-required' | 'lazy-placeholder' | 'loading' | 'error' | 'no-data' | 'chart';
|
|
4
|
+
export type PortletRenderKind = 'config-required' | 'lazy-placeholder' | 'loading' | 'error' | 'no-data' | 'one-query-only' | 'chart';
|
|
5
5
|
export interface PortletRenderStateParams {
|
|
6
6
|
hasChartConfig: boolean;
|
|
7
7
|
hasMandatoryFields: boolean;
|
|
@@ -13,6 +13,12 @@ export interface PortletRenderStateParams {
|
|
|
13
13
|
* survive an empty result rather than being replaced by the no-data view.
|
|
14
14
|
*/
|
|
15
15
|
rendersWithoutData: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The chart config sets `fetchesOwnData`: the chart loads its own data, so
|
|
18
|
+
* the portlet's loading, error and no-data views do not apply. The chart
|
|
19
|
+
* reads one query only.
|
|
20
|
+
*/
|
|
21
|
+
fetchesOwnData: boolean;
|
|
16
22
|
eagerLoad: boolean;
|
|
17
23
|
isVisible: boolean;
|
|
18
24
|
isLoading: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ChartProps } from '../../types.js';
|
|
3
|
-
declare const MarkdownChart: React.MemoExoticComponent<({ data, displayConfig, queryObject, height, colorPalette }: ChartProps) => React.JSX.Element | null>;
|
|
3
|
+
declare const MarkdownChart: React.MemoExoticComponent<({ data, displayConfig, queryObject, height, colorPalette, initialViewState, onViewStateChange }: ChartProps) => React.JSX.Element | null>;
|
|
4
4
|
export default MarkdownChart;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Finds `<details>`/`<summary>` sections before markdown-to-jsx runs, because
|
|
3
|
+
* the chart parses Markdown with raw HTML disabled. Everything else stays text.
|
|
4
|
+
*/
|
|
5
|
+
export type MarkdownSegment = {
|
|
6
|
+
kind: 'markdown';
|
|
7
|
+
text: string;
|
|
8
|
+
} | {
|
|
9
|
+
kind: 'disclosure';
|
|
10
|
+
key: string;
|
|
11
|
+
summary: string;
|
|
12
|
+
body: MarkdownSegment[];
|
|
13
|
+
};
|
|
14
|
+
export declare function parseMarkdownDisclosures(source: string): MarkdownSegment[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { DashboardConfig, DashboardGridSettings } from '../../types.js';
|
|
3
3
|
export declare const DEFAULT_GRID_SETTINGS: DashboardGridSettings;
|
|
4
|
-
export { createRowId, equalizeRowColumns, equalizeColumns, adjustRowWidths, adjustInsertIndexForRemovedRow } from '../../hooks/dashboard/layoutUtils.js';
|
|
4
|
+
export { createRowId, equalizeRowColumns, equalizeColumns, adjustRowWidths, adjustInsertIndexForRemovedRow, withoutRowLayout } from '../../hooks/dashboard/layoutUtils.js';
|
|
5
5
|
export declare const getGridSettings: (config: DashboardConfig) => DashboardGridSettings;
|
|
6
6
|
/**
|
|
7
7
|
* Finds the nearest scrollable ancestor of an element.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React, CSSProperties } from 'react';
|
|
2
|
-
import { PortletConfig } from '../../types.js';
|
|
2
|
+
import { PortletActionId, PortletConfig } from '../../types.js';
|
|
3
3
|
import { PortletDebugDataEntry } from '../../stores/dashboardStore.js';
|
|
4
4
|
import { CardIcons } from './EditActionButtons.js';
|
|
5
5
|
import { DataFreshnessIndicatorProps } from './DataFreshnessIndicator.js';
|
|
@@ -16,6 +16,7 @@ interface PortletCardHeaderProps {
|
|
|
16
16
|
debugData?: PortletDebugDataEntry;
|
|
17
17
|
copyAvailable: boolean;
|
|
18
18
|
copySuccess: boolean;
|
|
19
|
+
/** Shows Download: a chart export is registered, or the XLSX export is available and the portlet has debug data */
|
|
19
20
|
xlsExportAvailable: boolean;
|
|
20
21
|
exportInProgress: boolean;
|
|
21
22
|
showCacheBustIndicator: boolean;
|
|
@@ -40,8 +41,10 @@ interface PortletCardHeaderProps {
|
|
|
40
41
|
onDuplicate: () => void;
|
|
41
42
|
onEdit: () => void;
|
|
42
43
|
onDelete: () => void;
|
|
43
|
-
/** Shows the Expand button
|
|
44
|
+
/** Shows the Expand button when set */
|
|
44
45
|
onExpand?: () => void;
|
|
46
|
+
/** Host order of the view-mode actions (features.portletActionOrder) */
|
|
47
|
+
actionOrder?: readonly PortletActionId[];
|
|
45
48
|
}
|
|
46
49
|
export default function PortletCardHeader(props: PortletCardHeaderProps): React.JSX.Element;
|
|
47
50
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { PortletConfig } from '../../types.js';
|
|
2
|
+
import { PortletActionId, PortletConfig } from '../../types.js';
|
|
3
3
|
import { CardIcons } from './EditActionButtons.js';
|
|
4
4
|
import { MaxAgeOptions } from '../../client/maxAge.js';
|
|
5
5
|
interface PortletFloatingActionsProps {
|
|
@@ -9,6 +9,7 @@ interface PortletFloatingActionsProps {
|
|
|
9
9
|
showEditActions: boolean;
|
|
10
10
|
copyAvailable: boolean;
|
|
11
11
|
copySuccess: boolean;
|
|
12
|
+
/** Shows Download: a chart export is registered, or the XLSX export is available and the portlet has debug data */
|
|
12
13
|
xlsExportAvailable: boolean;
|
|
13
14
|
exportInProgress: boolean;
|
|
14
15
|
onRefresh: (options?: MaxAgeOptions) => void;
|
|
@@ -18,8 +19,10 @@ interface PortletFloatingActionsProps {
|
|
|
18
19
|
onDuplicate: () => void;
|
|
19
20
|
onEdit: () => void;
|
|
20
21
|
onDelete: () => void;
|
|
21
|
-
/** Shows the Expand button
|
|
22
|
+
/** Shows the Expand button when set */
|
|
22
23
|
onExpand?: () => void;
|
|
24
|
+
/** Host order of the view-mode actions (features.portletActionOrder) */
|
|
25
|
+
actionOrder?: readonly PortletActionId[];
|
|
23
26
|
}
|
|
24
|
-
export default function PortletFloatingActions({ portlet, icons, showEditActions, copyAvailable, copySuccess, xlsExportAvailable, exportInProgress, onRefresh, onCopyToClipboard, onExportXlsx, onOpenFilterConfig, onDuplicate, onEdit, onDelete, onExpand }: PortletFloatingActionsProps): React.JSX.Element;
|
|
27
|
+
export default function PortletFloatingActions({ portlet, icons, showEditActions, copyAvailable, copySuccess, xlsExportAvailable, exportInProgress, onRefresh, onCopyToClipboard, onExportXlsx, onOpenFilterConfig, onDuplicate, onEdit, onDelete, onExpand, actionOrder }: PortletFloatingActionsProps): React.JSX.Element;
|
|
25
28
|
export {};
|
|
@@ -24,6 +24,8 @@ export declare function resolveDisplayModes(params: {
|
|
|
24
24
|
isEditMode: boolean;
|
|
25
25
|
portletTitle?: string;
|
|
26
26
|
variant?: PortletCardVariant;
|
|
27
|
+
/** The card sits in a rows-layout row that keeps a fixed height, so it cannot grow. */
|
|
28
|
+
inFixedHeightRow?: boolean;
|
|
27
29
|
}): PortletDisplayModes;
|
|
28
30
|
export declare function buildContainerClassName(params: {
|
|
29
31
|
isTransparent: boolean;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { PortletActionId } from '../../types.js';
|
|
3
|
+
/** A card action and what it renders. A hidden action renders nothing. */
|
|
4
|
+
export interface PortletActionElement {
|
|
5
|
+
id: PortletActionId;
|
|
6
|
+
element: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/** The order of the card actions when the host sets none */
|
|
9
|
+
export declare const DEFAULT_PORTLET_ACTION_ORDER: readonly PortletActionId[];
|
|
10
|
+
/**
|
|
11
|
+
* Sorts card actions by the host order. Listed actions come first, in the
|
|
12
|
+
* listed order. The other actions follow in the default order. An action that
|
|
13
|
+
* the host lists twice keeps its first position.
|
|
14
|
+
*/
|
|
15
|
+
export declare function orderPortletActions<T extends {
|
|
16
|
+
id: PortletActionId;
|
|
17
|
+
}>(actions: readonly T[], order?: readonly PortletActionId[]): T[];
|
|
@@ -8,6 +8,8 @@ export interface DashboardPortletCardProps {
|
|
|
8
8
|
editable: boolean;
|
|
9
9
|
layoutMode?: DashboardLayoutMode;
|
|
10
10
|
variant?: PortletCardVariant;
|
|
11
|
+
/** Set by the rows layout when the card's row keeps a fixed height. */
|
|
12
|
+
inFixedHeightRow?: boolean;
|
|
11
13
|
dashboardFilters?: DashboardFilter[];
|
|
12
14
|
configEagerLoad?: boolean;
|
|
13
15
|
/** Dashboard default refresh, overridden by `portlet.refresh` */
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { PortletDebugDataEntry } from '../../stores/dashboardStore.js';
|
|
3
|
+
import { ChartExportHandler } from '../../types.js';
|
|
3
4
|
export declare function usePortletCardActions(params: {
|
|
4
5
|
portletTitle: string;
|
|
5
6
|
debugData?: PortletDebugDataEntry;
|
|
7
|
+
/** The export that the chart registered. It runs in place of the built-in export. */
|
|
8
|
+
chartExport?: ChartExportHandler | null;
|
|
6
9
|
}): {
|
|
7
10
|
chartContainerRef: React.RefObject<HTMLDivElement | null>;
|
|
8
11
|
copySuccess: boolean;
|
|
9
12
|
copyAvailable: boolean;
|
|
10
|
-
|
|
13
|
+
downloadAvailable: boolean;
|
|
11
14
|
exportInProgress: boolean;
|
|
12
15
|
showCacheBustIndicator: boolean;
|
|
13
16
|
setIsHoveringRefresh: React.Dispatch<React.SetStateAction<boolean>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DashboardGridSettings, PortletConfig, PortletGroup, RowLayout, RowLayoutColumn } from '../../types.js';
|
|
1
|
+
import { DashboardConfig, DashboardGridSettings, PortletConfig, PortletGroup, RowLayout, RowLayoutColumn } from '../../types.js';
|
|
2
2
|
export declare const createRowId: () => string;
|
|
3
3
|
/**
|
|
4
4
|
* Correct a row insertion index for a source row that the move emptied.
|
|
@@ -20,15 +20,46 @@ export declare const equalizeColumns: (columns: RowLayoutColumn[], gridSettings:
|
|
|
20
20
|
* @deprecated Loses `groupId`. Use {@link equalizeColumns} with the real columns.
|
|
21
21
|
*/
|
|
22
22
|
export declare const equalizeRowColumns: (portletIds: string[], gridSettings: DashboardGridSettings) => RowLayoutColumn[];
|
|
23
|
+
/**
|
|
24
|
+
* Stretch or trim a row so that its column widths add up to `cols`.
|
|
25
|
+
*
|
|
26
|
+
* A saved width of one unit or more stays, also below `minW`. Grid mode renders
|
|
27
|
+
* such widths, and `minW` is the minimum for a resize in rows mode. Raising
|
|
28
|
+
* them made a row of narrow columns wider than `cols`. A width below one unit
|
|
29
|
+
* gets `minW`.
|
|
30
|
+
*
|
|
31
|
+
* The row gets or loses the exact difference, also a fraction of a unit, so a
|
|
32
|
+
* second pass returns the same widths.
|
|
33
|
+
*/
|
|
23
34
|
export declare const adjustRowWidths: (columns: RowLayoutColumn[], gridSettings: DashboardGridSettings) => RowLayoutColumn[];
|
|
35
|
+
/**
|
|
36
|
+
* Derive rows from the portlets' grid positions: one row for each distinct `y`,
|
|
37
|
+
* ordered by `x`. Each column keeps its portlet's grid width, and
|
|
38
|
+
* `adjustRowWidths` only stretches or trims the row to fill `cols`, so a 3/9
|
|
39
|
+
* split in grid mode stays 3/9 in rows mode.
|
|
40
|
+
*/
|
|
24
41
|
export declare const convertPortletsToRows: (portlets: PortletConfig[], gridSettings: DashboardGridSettings) => RowLayout[];
|
|
25
42
|
/**
|
|
26
43
|
* Drop columns whose target no longer exists, clamp row height, re-balance
|
|
27
44
|
* widths. `groups` must be the already-normalized group list - a column
|
|
28
45
|
* referencing a group is kept only when that group survives, so run
|
|
29
46
|
* `normalizeGroups` first.
|
|
47
|
+
*
|
|
48
|
+
* A portlet that no column and no kept group places would be invisible in rows
|
|
49
|
+
* mode, for example a card added in grid mode while the config kept older
|
|
50
|
+
* `rows`. Such portlets get new last rows, derived from their grid positions.
|
|
30
51
|
*/
|
|
31
52
|
export declare const normalizeRows: (rows: RowLayout[], portlets: PortletConfig[], gridSettings: DashboardGridSettings, groups?: PortletGroup[]) => RowLayout[];
|
|
53
|
+
/**
|
|
54
|
+
* Remove the row layout (`rows` and `groups`) from a config that a grid edit
|
|
55
|
+
* changed.
|
|
56
|
+
*
|
|
57
|
+
* A grid edit writes only portlet x/y/w/h. Rows mode prefers stored `rows` to
|
|
58
|
+
* the grid positions, so stored rows would hide each card that the edit added
|
|
59
|
+
* and undo each move. Without them, rows mode derives the rows from the grid
|
|
60
|
+
* again. Grid mode cannot host groups, so the groups go too.
|
|
61
|
+
*/
|
|
62
|
+
export declare const withoutRowLayout: (config: DashboardConfig) => DashboardConfig;
|
|
32
63
|
/**
|
|
33
64
|
* Re-derive every portlet's x/y/w/h from the row layout. Group columns are
|
|
34
65
|
* subdivided via `deriveGroupGeometry`, so grouped children get real grid
|
|
@@ -62,6 +62,12 @@ export interface UseAnalysisQueryOptions {
|
|
|
62
62
|
* are gap-filled client-side per this setting, the query and the cube.
|
|
63
63
|
*/
|
|
64
64
|
fillMissingDates?: ChartDisplayConfig['fillMissingDates'];
|
|
65
|
+
/**
|
|
66
|
+
* The selected chart loads its own data (`ChartTypeConfig.fetchesOwnData`).
|
|
67
|
+
* The single and multi-query fetches are skipped, so a refetch does not
|
|
68
|
+
* reload them either. The other analysis modes are not affected.
|
|
69
|
+
*/
|
|
70
|
+
fetchesOwnData?: boolean;
|
|
65
71
|
}
|
|
66
72
|
export interface UseAnalysisQueryResult {
|
|
67
73
|
/** Query execution status */
|
|
@@ -8,7 +8,9 @@ export declare function getIconRegistry(): IconRegistry;
|
|
|
8
8
|
/**
|
|
9
9
|
* Get a specific icon as a React component
|
|
10
10
|
* @param name The icon name from the registry
|
|
11
|
-
* @returns A React component that renders the icon (cached for stable references)
|
|
11
|
+
* @returns A React component that renders the icon (cached for stable references).
|
|
12
|
+
* It reads the registry when it renders, so it follows later registerIcons()
|
|
13
|
+
* and setIcon() calls.
|
|
12
14
|
*/
|
|
13
15
|
export declare function getIcon(name: IconName): ComponentType<IconProps>;
|
|
14
16
|
/**
|
|
@@ -57,17 +57,18 @@ export { useTheme } from './hooks/useTheme.js';
|
|
|
57
57
|
export { useScrollDetection } from './hooks/useScrollDetection.js';
|
|
58
58
|
export { useElementVisibility } from './hooks/useElementVisibility.js';
|
|
59
59
|
export { useDrillInteraction } from './hooks/useDrillInteraction.js';
|
|
60
|
-
export type { PortletConfig, ChartType, BuiltInChartType, ChartAxisConfig, ChartDisplayConfig, ChartProps, ColorPalette, CubeQuery, CubeQueryOptions, CubeApiOptions, CubeValidationIssue, ChartPagination, ColumnFormatConfig, ColumnFormatKind, RowLinkConfig, DashboardConfig, PortletGroup, PortletGroupCell, FeaturesConfig, XlsExportFeatureConfig, ThumbnailFeatureConfig, DashboardImportExportFeatureConfig, DashboardMeta, RefreshFeatureConfig, PortletRefreshConfig, DashboardRefreshConfig, PortletFreshness, PortletViewState, PortletExpandPayload, AnalyticsPortletRef, MultiQueryConfig, QueryMergeStrategy, FunnelBindingKey, FunnelBindingKeyMapping, FunnelStep, FunnelConfig, FunnelStepResult, FunnelExecutionResult, FunnelChartData, FunnelValidationError, FunnelValidationResult, UseFunnelQueryOptions, UseFunnelQueryResult, ServerFlowQuery, FlowQueryConfig, FlowChartData, FlowSliceState, SankeyNode, SankeyLink, FlowStartingStep, FlowResultRow, } from './types.js';
|
|
60
|
+
export type { PortletConfig, ChartType, BuiltInChartType, ChartAxisConfig, ChartDisplayConfig, ChartProps, ChartExportHandler, ColorPalette, CubeQuery, CubeQueryOptions, CubeApiOptions, CubeValidationIssue, ChartPagination, ColumnFormatConfig, ColumnFormatKind, RowLinkConfig, DashboardConfig, PortletGroup, PortletGroupCell, FeaturesConfig, PortletActionId, XlsExportFeatureConfig, ThumbnailFeatureConfig, DashboardImportExportFeatureConfig, DashboardMeta, RefreshFeatureConfig, PortletRefreshConfig, DashboardRefreshConfig, PortletFreshness, PortletViewState, PortletExpandPayload, AnalyticsPortletRef, MultiQueryConfig, QueryMergeStrategy, FunnelBindingKey, FunnelBindingKeyMapping, FunnelStep, FunnelConfig, FunnelStepResult, FunnelExecutionResult, FunnelChartData, FunnelValidationError, FunnelValidationResult, UseFunnelQueryOptions, UseFunnelQueryResult, ServerFlowQuery, FlowQueryConfig, FlowChartData, FlowSliceState, SankeyNode, SankeyLink, FlowStartingStep, FlowResultRow, } from './types.js';
|
|
61
61
|
export { isQueryConfig, isFunnelConfig, isFlowConfig, isRetentionConfig, isMultiQuery, isSingleQuery, isValidAnalysisConfig, createDefaultQueryConfig, createDefaultFunnelConfig, createDefaultFlowConfig, createDefaultRetentionConfig, createDefaultConfig, isValidAnalysisWorkspace, createDefaultWorkspace } from './types/analysisConfig.js';
|
|
62
62
|
export type { AnalysisConfig, QueryAnalysisConfig, FunnelAnalysisConfig, FlowAnalysisConfig, RetentionAnalysisConfig, AnalysisWorkspace } from './types/analysisConfig.js';
|
|
63
63
|
export { isMultiQueryConfig, isServerFunnelQuery, isServerFlowQuery, isSankeyData } from './types.js';
|
|
64
|
-
export type { ChartTypeConfig, DisplayOptionConfig, AxisDropZoneConfig } from './charts/chartConfigs.js';
|
|
64
|
+
export type { ChartTypeConfig, ChartConfigBuildContext, DisplayOptionConfig, AxisDropZoneConfig } from './charts/chartConfigs.js';
|
|
65
65
|
export type { ChartDefinition } from './charts/chartPlugin.js';
|
|
66
66
|
export { chartPluginRegistry } from './charts/chartPlugin.js';
|
|
67
|
+
export { registerColorPalettes } from './utils/colorPalettes.js';
|
|
67
68
|
export { createDashboardLayout, formatChartData, highlightCodeBlocks } from './utils/index.js';
|
|
68
69
|
export { migrateConfig, migrateLegacyPortlet } from './utils/configMigration.js';
|
|
69
70
|
export { captureThumbnail, isThumbnailCaptureAvailable, warnIfScreenshotLibMissing } from './utils/thumbnail.js';
|
|
70
|
-
export { exportPortletToXlsx, isExportAvailable, warnIfExcelJsMissing } from './utils/exportXlsx.js';
|
|
71
|
+
export { exportPortletToXlsx, isExportAvailable, portletXlsxFilename, warnIfExcelJsMissing } from './utils/exportXlsx.js';
|
|
71
72
|
export { createDashboardExport, serializeDashboardExport, parseDashboardExport, readDashboardExportFile, downloadDashboardExport, dashboardExportFilename, normalizeDashboardConfigForExport, } from './utils/dashboardExport.js';
|
|
72
73
|
export type { DashboardExportFile, DashboardImportResult, DashboardImportError, DashboardImportWarning, } from './utils/dashboardExport.js';
|
|
73
74
|
export type { DashboardImportExportState, PendingDashboardImport, FailedDashboardImport, } from './hooks/dashboard/useDashboardImportExport.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChartType, ChartAxisConfig } from '../types.js';
|
|
2
2
|
import { MetricItem, BreakdownItem } from '../components/AnalysisBuilder/types.js';
|
|
3
|
+
import { ChartConfigBuildContext } from '../charts/chartConfigs.js';
|
|
3
4
|
/**
|
|
4
5
|
* Resolved breakdown selections passed to every axis builder.
|
|
5
6
|
*/
|
|
@@ -10,9 +11,11 @@ export interface AxisBuilderContext {
|
|
|
10
11
|
dimension: BreakdownItem | undefined;
|
|
11
12
|
dimensions: BreakdownItem[];
|
|
12
13
|
}
|
|
13
|
-
type AxisBuilder = (ctx:
|
|
14
|
+
type AxisBuilder = (ctx: ChartConfigBuildContext) => ChartAxisConfig;
|
|
14
15
|
/**
|
|
15
|
-
* Resolve the axis builder for a chart type
|
|
16
|
+
* Resolve the axis builder for a chart type: the chart's own
|
|
17
|
+
* `buildChartConfig` from the registry (so a custom chart can define its
|
|
18
|
+
* defaults), then the built-in rule, then the default.
|
|
16
19
|
*/
|
|
17
20
|
export declare function getAxisBuilder(chartType: ChartType): AxisBuilder;
|
|
18
21
|
export {};
|
|
@@ -38,10 +38,20 @@ export declare function getAllChartAvailability(metrics: MetricItem[], breakdown
|
|
|
38
38
|
* 3. Never switch to a type in `hiddenChartTypes` — keep current instead
|
|
39
39
|
*/
|
|
40
40
|
export declare function selectBestChartType(metrics: MetricItem[], breakdowns: BreakdownItem[], currentChartType: ChartType, hiddenChartTypes?: readonly ChartType[]): ChartType;
|
|
41
|
+
/**
|
|
42
|
+
* The chart the user leaves when they pick another chart type.
|
|
43
|
+
*/
|
|
44
|
+
export interface PreviousChart {
|
|
45
|
+
chartType: ChartType;
|
|
46
|
+
chartConfig: ChartAxisConfig;
|
|
47
|
+
}
|
|
41
48
|
/**
|
|
42
49
|
* Get smart default chart configuration based on chart type and selections
|
|
50
|
+
*
|
|
51
|
+
* @param previousChart - The chart the user leaves, when they pick another
|
|
52
|
+
* chart type. A chart's `buildChartConfig` receives it.
|
|
43
53
|
*/
|
|
44
|
-
export declare function getSmartChartDefaults(metrics: MetricItem[], breakdowns: BreakdownItem[], currentChartType: ChartType, hiddenChartTypes?: readonly ChartType[]): SmartChartDefaults;
|
|
54
|
+
export declare function getSmartChartDefaults(metrics: MetricItem[], breakdowns: BreakdownItem[], currentChartType: ChartType, hiddenChartTypes?: readonly ChartType[], previousChart?: PreviousChart): SmartChartDefaults;
|
|
45
55
|
/**
|
|
46
56
|
* Determine if chart type should be auto-switched based on selections change
|
|
47
57
|
*
|
|
@@ -580,6 +580,8 @@ export interface AnalyticsPortletProps {
|
|
|
580
580
|
}) => void;
|
|
581
581
|
/** Reports when the portlet's rows were computed and whether it is fetching, on every change. */
|
|
582
582
|
onFreshnessChange?: (freshness: PortletFreshness) => void;
|
|
583
|
+
/** Passed to the chart as `ChartProps.onExportReady`. */
|
|
584
|
+
onExportReady?: (handler: ChartExportHandler | null) => void;
|
|
583
585
|
}
|
|
584
586
|
/** Freshness of a portlet's data, as reported by `AnalyticsPortlet`. */
|
|
585
587
|
export interface PortletFreshness {
|
|
@@ -665,6 +667,15 @@ export interface AnalyticsDashboardProps {
|
|
|
665
667
|
*/
|
|
666
668
|
onPortletExpand?: (payload: PortletExpandPayload) => void;
|
|
667
669
|
}
|
|
670
|
+
/**
|
|
671
|
+
* An export that a chart runs for the Download button of the dashboard card.
|
|
672
|
+
* `fileName` is the name that the built-in XLSX export gives to the file of
|
|
673
|
+
* the card, with its extension. The card shows the export in progress until
|
|
674
|
+
* the promise settles.
|
|
675
|
+
*/
|
|
676
|
+
export type ChartExportHandler = (context: {
|
|
677
|
+
fileName: string;
|
|
678
|
+
}) => Promise<void>;
|
|
668
679
|
export interface ChartProps {
|
|
669
680
|
data: any[];
|
|
670
681
|
chartConfig?: ChartAxisConfig;
|
|
@@ -690,6 +701,23 @@ export interface ChartProps {
|
|
|
690
701
|
initialViewState?: unknown;
|
|
691
702
|
/** Report the state that the chart keeps in its own instance, for example its page */
|
|
692
703
|
onViewStateChange?: (state: unknown) => void;
|
|
704
|
+
/**
|
|
705
|
+
* Set only by a host that shows a Download action for the chart: the
|
|
706
|
+
* dashboard card, when `features.xlsExport` is enabled. The chart registers
|
|
707
|
+
* its export handler. The card then shows Download also without debug data,
|
|
708
|
+
* and the button calls the handler in place of the built-in export. Send
|
|
709
|
+
* `null` to remove the handler, also when the chart unmounts. Without this
|
|
710
|
+
* callback, the chart shows its own export control if it has one.
|
|
711
|
+
*/
|
|
712
|
+
onExportReady?: (handler: ChartExportHandler | null) => void;
|
|
713
|
+
/**
|
|
714
|
+
* The id of the latest Refresh: `null` until the first Refresh, then a new
|
|
715
|
+
* id on each Refresh. A chart that loads its own data (`fetchesOwnData`)
|
|
716
|
+
* reads it to tell a Refresh from a remount. The dashboard portlet sends it
|
|
717
|
+
* to every chart. The AnalysisBuilder preview sends a new id only to a chart
|
|
718
|
+
* whose config sets `fetchesOwnData`.
|
|
719
|
+
*/
|
|
720
|
+
refreshId?: string | null;
|
|
693
721
|
}
|
|
694
722
|
/**
|
|
695
723
|
* Paging and sorting state a host drives on the chart's behalf.
|
|
@@ -739,6 +767,11 @@ export interface RefreshFeatureConfig {
|
|
|
739
767
|
/** Floor for every refresh interval, in seconds (default: 5) */
|
|
740
768
|
minIntervalSeconds?: number;
|
|
741
769
|
}
|
|
770
|
+
/**
|
|
771
|
+
* A view-mode action of a dashboard card, in the card header or in the hover
|
|
772
|
+
* strip of a grouped card. `features.portletActionOrder` sets their order.
|
|
773
|
+
*/
|
|
774
|
+
export type PortletActionId = 'pauseRefresh' | 'refresh' | 'expand' | 'copy' | 'download';
|
|
742
775
|
export interface FeaturesConfig {
|
|
743
776
|
enableAI?: boolean;
|
|
744
777
|
aiEndpoint?: string;
|
|
@@ -760,6 +793,7 @@ export interface FeaturesConfig {
|
|
|
760
793
|
refresh?: RefreshFeatureConfig;
|
|
761
794
|
portletExpand?: boolean;
|
|
762
795
|
hiddenChartTypes?: ChartType[];
|
|
796
|
+
portletActionOrder?: PortletActionId[];
|
|
763
797
|
}
|
|
764
798
|
export interface GridLayout {
|
|
765
799
|
i: string;
|
|
@@ -9,6 +9,31 @@ export interface ColorPalette {
|
|
|
9
9
|
gradient: string[];
|
|
10
10
|
}
|
|
11
11
|
export declare const COLOR_PALETTES: ColorPalette[];
|
|
12
|
+
/**
|
|
13
|
+
* Add host color palettes to the built-in palettes.
|
|
14
|
+
*
|
|
15
|
+
* Call it one time at startup, before the first render, as `registerIcons()`.
|
|
16
|
+
* The charts and the palette pickers read the list on each render. A later
|
|
17
|
+
* call does not update a palette that a component already resolved.
|
|
18
|
+
*
|
|
19
|
+
* - A host palette with the `name` of a built-in palette replaces it. So a host
|
|
20
|
+
* palette named `default` is the palette for a missing or unknown name.
|
|
21
|
+
* - When two host palettes have the same name, the last one wins.
|
|
22
|
+
* - A new call replaces the host palettes of the earlier call.
|
|
23
|
+
* `registerColorPalettes([])` restores the built-in list.
|
|
24
|
+
*
|
|
25
|
+
* Use six-digit hex colors (`#rrggbb`) in `colors` and `gradient`. The records
|
|
26
|
+
* table adds a hex alpha suffix to a series color, and the heat map
|
|
27
|
+
* interpolates the gradient colors. A CSS variable or an `oklch()` color
|
|
28
|
+
* breaks these charts.
|
|
29
|
+
*
|
|
30
|
+
* @param palettes - The host palettes.
|
|
31
|
+
*/
|
|
32
|
+
export declare function registerColorPalettes(palettes: ColorPalette[]): void;
|
|
33
|
+
/**
|
|
34
|
+
* Get the built-in palettes and the host palettes from `registerColorPalettes()`.
|
|
35
|
+
*/
|
|
36
|
+
export declare function getColorPalettes(): ColorPalette[];
|
|
12
37
|
/**
|
|
13
38
|
* Get a color palette by name, with fallback to default
|
|
14
39
|
*/
|