drizzle-cube 0.14.0 → 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-Bb61BBaY.cjs → core-YfzziyUf.cjs} +1 -1
- package/dist/adapters/{core-DEn53hp7.js → core-wxT6B2Cm.js} +2 -2
- package/dist/adapters/{cors-headers--zwd9Fnx.js → cors-headers-BeWxPGlM.js} +1 -1
- package/dist/adapters/{cors-headers-BOUMJEnB.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-CQhqvHnT.cjs → handler-Ch9YaC4G.cjs} +3 -3
- package/dist/adapters/{handler-CREhpjLZ.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-PEmdNS4r.cjs → mcp-transport-CDSbAnfH.cjs} +1 -1
- package/dist/adapters/{mcp-transport-_oHCd2rj.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-CaxTRQ32.js → openai-B9CJ0Gw3.js} +1 -1
- package/dist/adapters/{openai-DQNzLnj1.cjs → openai-CPTovs2d.cjs} +1 -1
- package/dist/adapters/{openai-BgICnFmA.cjs → openai-CrNRNE9c.cjs} +1 -1
- package/dist/adapters/{openai-lRcjN8pG.js → openai-mmY4YK81.js} +1 -1
- package/dist/adapters/utils-D0jq702C.cjs +141 -0
- package/dist/adapters/{utils-ClqFyZ-5.js → utils-wjO1gfkH.js} +2 -0
- package/dist/adapters/utils.cjs +1 -1
- package/dist/adapters/utils.js +1 -1
- package/dist/cjs/client/charts/chartConfigs.d.ts +12 -0
- package/dist/cjs/client/charts.d.ts +1 -1
- 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/dashboardPortletCard/PortletCardHeader.d.ts +1 -0
- package/dist/cjs/client/components/dashboardPortletCard/PortletFloatingActions.d.ts +1 -0
- package/dist/cjs/client/components/dashboardPortletCard/cardStyles.d.ts +2 -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 +11 -0
- 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 +2 -2
- package/dist/cjs/client/types.d.ts +28 -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 +12 -0
- package/dist/client/charts.d.ts +1 -1
- package/dist/client/charts.js +12 -12
- package/dist/client/chunks/{ActivityGridChart-t6JS9q1q.js → ActivityGridChart-sfYPWaLI.js} +2 -2
- package/dist/client/chunks/{ActivityGridChart-t6JS9q1q.js.map → ActivityGridChart-sfYPWaLI.js.map} +1 -1
- package/dist/client/chunks/{BubbleChart-E0IoByRb.js → BubbleChart-BgsVoVgO.js} +3 -5
- package/dist/client/chunks/BubbleChart-BgsVoVgO.js.map +1 -0
- package/dist/client/chunks/{ChartStates-BMRzDVW2.js → ChartStates-CrNiZI5S.js} +2 -2
- package/dist/client/chunks/{ChartStates-BMRzDVW2.js.map → ChartStates-CrNiZI5S.js.map} +1 -1
- package/dist/client/chunks/{ChartSummaryHeader-CIVTb1NC.js → ChartSummaryHeader-DO6M92dC.js} +2 -2
- package/dist/client/chunks/{ChartSummaryHeader-CIVTb1NC.js.map → ChartSummaryHeader-DO6M92dC.js.map} +1 -1
- package/dist/client/chunks/{DashboardEditModal-Fx3EXgIk.js → DashboardEditModal-CnQ2NR2Q.js} +1810 -1733
- package/dist/client/chunks/DashboardEditModal-CnQ2NR2Q.js.map +1 -0
- package/dist/client/chunks/{DataHistogram-omihvcZL.js → DataHistogram-CHFy7ztz.js} +2 -2
- package/dist/client/chunks/{DataHistogram-omihvcZL.js.map → DataHistogram-CHFy7ztz.js.map} +1 -1
- package/dist/client/chunks/{DotStripChart-iVRVliSr.js → DotStripChart-Bz5IC3Q1.js} +4 -4
- package/dist/client/chunks/{DotStripChart-iVRVliSr.js.map → DotStripChart-Bz5IC3Q1.js.map} +1 -1
- package/dist/client/chunks/{FunnelViews-C7joNDMs.js → FunnelViews-BLHRyHAU.js} +2 -2
- package/dist/client/chunks/{FunnelViews-C7joNDMs.js.map → FunnelViews-BLHRyHAU.js.map} +1 -1
- package/dist/client/chunks/{HeatMapChart-nPiSSTET.js → HeatMapChart-JjUF0zDX.js} +3 -3
- package/dist/client/chunks/{HeatMapChart-nPiSSTET.js.map → HeatMapChart-JjUF0zDX.js.map} +1 -1
- package/dist/client/chunks/{KpiDelta-5bl1vkTe.js → KpiDelta-B6SN3viX.js} +2 -2
- package/dist/client/chunks/{KpiDelta-5bl1vkTe.js.map → KpiDelta-B6SN3viX.js.map} +1 -1
- package/dist/client/chunks/{KpiText-l1GtL83c.js → KpiText-z_vo4xcE.js} +2 -2
- package/dist/client/chunks/{KpiText-l1GtL83c.js.map → KpiText-z_vo4xcE.js.map} +1 -1
- package/dist/client/chunks/{MarkdownChart-CO0eGGo3.js → MarkdownChart-BKQl0PAy.js} +1125 -1059
- package/dist/client/chunks/MarkdownChart-BKQl0PAy.js.map +1 -0
- package/dist/client/chunks/{PortletAnalysisModal-BNygY4TN.js → PortletAnalysisModal-XfCy-bY3.js} +5 -5
- package/dist/client/chunks/{PortletAnalysisModal-BNygY4TN.js.map → PortletAnalysisModal-XfCy-bY3.js.map} +1 -1
- package/dist/client/chunks/{ProportionBarChart-BxSBzz9F.js → ProportionBarChart-tVmEO5Xi.js} +4 -4
- package/dist/client/chunks/{ProportionBarChart-BxSBzz9F.js.map → ProportionBarChart-tVmEO5Xi.js.map} +1 -1
- package/dist/client/chunks/{RecordsTable-Ce86xEEb.js → RecordsTable-X4-iL03N.js} +4 -4
- package/dist/client/chunks/{RecordsTable-Ce86xEEb.js.map → RecordsTable-X4-iL03N.js.map} +1 -1
- package/dist/client/chunks/{RetentionCombinedChart-BX1VbJ_m.js → RetentionCombinedChart-DCgCAEa4.js} +3 -3
- package/dist/client/chunks/{RetentionCombinedChart-BX1VbJ_m.js.map → RetentionCombinedChart-DCgCAEa4.js.map} +1 -1
- package/dist/client/chunks/{RetentionHeatmap-C6FJ-hNN.js → RetentionHeatmap-BnQng2Nc.js} +2 -2
- package/dist/client/chunks/{RetentionHeatmap-C6FJ-hNN.js.map → RetentionHeatmap-BnQng2Nc.js.map} +1 -1
- package/dist/client/chunks/{SchemaVisualization-DheR_F8J.js → SchemaVisualization-DAs91j_B.js} +1 -1
- package/dist/client/chunks/{TextPortletModal-BKJx63L7.js → TextPortletModal-MeQiEmR8.js} +3 -3
- package/dist/client/chunks/{TextPortletModal-BKJx63L7.js.map → TextPortletModal-MeQiEmR8.js.map} +1 -1
- package/dist/client/chunks/{analysis-builder-QaBFxEqT.js → analysis-builder-_JOj-PkX.js} +1508 -1492
- package/dist/client/chunks/analysis-builder-_JOj-PkX.js.map +1 -0
- package/dist/client/chunks/{analysis-builder-shared-CBYZC9iE.js → analysis-builder-shared-CYK5sH46.js} +829 -827
- package/dist/client/chunks/analysis-builder-shared-CYK5sH46.js.map +1 -0
- package/dist/client/chunks/{chart-activity-grid-Tma6prYa.js → chart-activity-grid-CIzCAMX9.js} +4 -4
- package/dist/client/chunks/{chart-activity-grid-Tma6prYa.js.map → chart-activity-grid-CIzCAMX9.js.map} +1 -1
- package/dist/client/chunks/{chart-area-uKNDmXki.js → chart-area-BRLlLtIX.js} +6 -6
- package/dist/client/chunks/{chart-area-uKNDmXki.js.map → chart-area-BRLlLtIX.js.map} +1 -1
- package/dist/client/chunks/{chart-bar-J-O7Fdzo.js → chart-bar-D2qp_vsO.js} +5 -5
- package/dist/client/chunks/{chart-bar-J-O7Fdzo.js.map → chart-bar-D2qp_vsO.js.map} +1 -1
- package/dist/client/chunks/{chart-box-plot-DOOxwI0S.js → chart-box-plot-Bt2dfls7.js} +2 -2
- package/dist/client/chunks/{chart-box-plot-DOOxwI0S.js.map → chart-box-plot-Bt2dfls7.js.map} +1 -1
- package/dist/client/chunks/{chart-bubble-CpFXYmcw.js → chart-bubble-BJZlm4xv.js} +4 -4
- package/dist/client/chunks/{chart-bubble-CpFXYmcw.js.map → chart-bubble-BJZlm4xv.js.map} +1 -1
- package/dist/client/chunks/{chart-candlestick-D8VjfXOL.js → chart-candlestick-DsNtTruF.js} +2 -2
- package/dist/client/chunks/{chart-candlestick-D8VjfXOL.js.map → chart-candlestick-DsNtTruF.js.map} +1 -1
- package/dist/client/chunks/{chart-data-table-CDMTU9F4.js → chart-data-table-DIghSvZN.js} +3 -3
- package/dist/client/chunks/{chart-data-table-CDMTU9F4.js.map → chart-data-table-DIghSvZN.js.map} +1 -1
- package/dist/client/chunks/{chart-funnel-C18WiJ9P.js → chart-funnel-CvVQTMej.js} +3 -3
- package/dist/client/chunks/{chart-funnel-C18WiJ9P.js.map → chart-funnel-CvVQTMej.js.map} +1 -1
- package/dist/client/chunks/{chart-gauge-seUJ08__.js → chart-gauge-DSu7U1YZ.js} +4 -4
- package/dist/client/chunks/{chart-gauge-seUJ08__.js.map → chart-gauge-DSu7U1YZ.js.map} +1 -1
- package/dist/client/chunks/{chart-heat-map-_HOw96aJ.js → chart-heat-map-Be7XsINq.js} +4 -4
- package/dist/client/chunks/{chart-heat-map-_HOw96aJ.js.map → chart-heat-map-Be7XsINq.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-delta-dSO6l_oc.js → chart-kpi-delta-7rLLK4Bg.js} +4 -4
- package/dist/client/chunks/{chart-kpi-delta-dSO6l_oc.js.map → chart-kpi-delta-7rLLK4Bg.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-number-CTVVElrK.js → chart-kpi-number-CUeK8MQP.js} +4 -4
- package/dist/client/chunks/{chart-kpi-number-CTVVElrK.js.map → chart-kpi-number-CUeK8MQP.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-text-B8g11asF.js → chart-kpi-text-CvRv2tGg.js} +5 -5
- package/dist/client/chunks/{chart-kpi-text-B8g11asF.js.map → chart-kpi-text-CvRv2tGg.js.map} +1 -1
- package/dist/client/chunks/{chart-line-DHPFzMBk.js → chart-line-Bl-bSP0Y.js} +6 -6
- package/dist/client/chunks/{chart-line-DHPFzMBk.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-CZkMh7EU.js → chart-measure-profile-DjAV-TtG.js} +4 -4
- package/dist/client/chunks/{chart-measure-profile-CZkMh7EU.js.map → chart-measure-profile-DjAV-TtG.js.map} +1 -1
- package/dist/client/chunks/{chart-pie-CFDUrh26.js → chart-pie-3IGIOniI.js} +5 -5
- package/dist/client/chunks/{chart-pie-CFDUrh26.js.map → chart-pie-3IGIOniI.js.map} +1 -1
- package/dist/client/chunks/{chart-radar-C9gpwnf2.js → chart-radar-Md5BwLhY.js} +4 -4
- package/dist/client/chunks/{chart-radar-C9gpwnf2.js.map → chart-radar-Md5BwLhY.js.map} +1 -1
- package/dist/client/chunks/{chart-radial-bar-B-CXDHTD.js → chart-radial-bar-Bfb-gGm6.js} +4 -4
- package/dist/client/chunks/{chart-radial-bar-B-CXDHTD.js.map → chart-radial-bar-Bfb-gGm6.js.map} +1 -1
- package/dist/client/chunks/{chart-sankey-B4BMcu_W.js → chart-sankey-BmQKKIZa.js} +2 -2
- package/dist/client/chunks/{chart-sankey-B4BMcu_W.js.map → chart-sankey-BmQKKIZa.js.map} +1 -1
- package/dist/client/chunks/{chart-scatter-Dy3zhJ0s.js → chart-scatter-BES9g5kG.js} +5 -5
- package/dist/client/chunks/{chart-scatter-Dy3zhJ0s.js.map → chart-scatter-BES9g5kG.js.map} +1 -1
- package/dist/client/chunks/{chart-sunburst-CNkfOURe.js → chart-sunburst-BBOCkD00.js} +2 -2
- package/dist/client/chunks/{chart-sunburst-CNkfOURe.js.map → chart-sunburst-BBOCkD00.js.map} +1 -1
- package/dist/client/chunks/{chart-tree-map-B_iEqAl4.js → chart-tree-map-CkvUBqNw.js} +5 -5
- package/dist/client/chunks/{chart-tree-map-B_iEqAl4.js.map → chart-tree-map-CkvUBqNw.js.map} +1 -1
- package/dist/client/chunks/{chart-waterfall-DKoas5p0.js → chart-waterfall-KeSpmPhi.js} +4 -4
- package/dist/client/chunks/{chart-waterfall-DKoas5p0.js.map → chart-waterfall-KeSpmPhi.js.map} +1 -1
- package/dist/client/chunks/{chartComponentRegistry-BVeOQaSR.js → chartComponentRegistry-B6jUklcw.js} +3 -3
- package/dist/client/chunks/chartComponentRegistry-B6jUklcw.js.map +1 -0
- package/dist/client/chunks/{chartPlugin-sgjKBVER.js → chartPlugin-DnQOiDRV.js} +2 -2
- package/dist/client/chunks/{chartPlugin-sgjKBVER.js.map → chartPlugin-DnQOiDRV.js.map} +1 -1
- package/dist/client/chunks/{charts-core-DwjBd3KN.js → charts-core-BsheHP0O.js} +2 -2
- package/dist/client/chunks/{charts-core-DwjBd3KN.js.map → charts-core-BsheHP0O.js.map} +1 -1
- package/dist/client/chunks/{charts-loader-C5E1UrqB.js → charts-loader-Bt00isFs.js} +32 -32
- package/dist/client/chunks/{charts-loader-C5E1UrqB.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-puUFqQYo.js → nl-NL-Cqzg1eUq.js} +3 -1
- package/dist/client/chunks/{nl-NL-puUFqQYo.js.map → nl-NL-Cqzg1eUq.js.map} +1 -1
- package/dist/client/chunks/{providers-CPmqs1OT.js → providers-CGtqLkL5.js} +7 -7
- package/dist/client/chunks/{providers-CPmqs1OT.js.map → providers-CGtqLkL5.js.map} +1 -1
- package/dist/client/chunks/{schema-visualization-sZ-ok8Mv.js → schema-visualization-CgYgfh4e.js} +5 -5
- package/dist/client/chunks/{schema-visualization-sZ-ok8Mv.js.map → schema-visualization-CgYgfh4e.js.map} +1 -1
- package/dist/client/chunks/{useCubeFieldLabel-OShtoDli.js → useCubeFieldLabel-BaQ47OCT.js} +2 -2
- package/dist/client/chunks/{useCubeFieldLabel-OShtoDli.js.map → useCubeFieldLabel-BaQ47OCT.js.map} +1 -1
- package/dist/client/chunks/{useCubeMetaQuery-D5YmxsXc.js → useCubeMetaQuery-D736B6Jp.js} +2 -2
- package/dist/client/chunks/{useCubeMetaQuery-D5YmxsXc.js.map → useCubeMetaQuery-D736B6Jp.js.map} +1 -1
- package/dist/client/chunks/{useDirtyStateTracking-u59tjusb.js → useDirtyStateTracking-D3b4tD_b.js} +2 -2
- package/dist/client/chunks/{useDirtyStateTracking-u59tjusb.js.map → useDirtyStateTracking-D3b4tD_b.js.map} +1 -1
- package/dist/client/chunks/{useExplainAI-9AtPBHak.js → useExplainAI-BaETifYG.js} +3 -3
- package/dist/client/chunks/{useExplainAI-9AtPBHak.js.map → useExplainAI-BaETifYG.js.map} +1 -1
- package/dist/client/chunks/{useTranslation-BwieiaHa.js → useTranslation-DO5KRcwD.js} +5 -3
- package/dist/client/chunks/{useTranslation-BwieiaHa.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/dashboardPortletCard/PortletCardHeader.d.ts +1 -0
- package/dist/client/components/dashboardPortletCard/PortletFloatingActions.d.ts +1 -0
- package/dist/client/components/dashboardPortletCard/cardStyles.d.ts +2 -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 +4 -4
- package/dist/client/hooks/dashboard/layoutUtils.d.ts +11 -0
- 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 +2 -2
- package/dist/client/index.js +322 -322
- 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/styles.css +1 -1
- package/dist/client/types.d.ts +28 -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 +2 -0
- package/package.json +7 -7
- package/dist/adapters/ActivityGridChart.config-3SeBVdiJ.js +0 -1
- package/dist/adapters/ActivityGridChart.config-C8d7NfCS.cjs +0 -1
- package/dist/adapters/AreaChart.config-DMLdRLt3.cjs +0 -1
- package/dist/adapters/AreaChart.config-DX_WqQQ_.js +0 -1
- package/dist/adapters/BarChart.config-2Wmv5r8P.cjs +0 -1
- package/dist/adapters/BarChart.config-BWYAI7Vg.js +0 -1
- package/dist/adapters/BoxPlotChart.config-Ceu0w8Zd.cjs +0 -1
- package/dist/adapters/BoxPlotChart.config-T-8Peh8F.js +0 -1
- package/dist/adapters/BubbleChart.config-BIcf2l3R.js +0 -1
- package/dist/adapters/BubbleChart.config-CtM5BSz6.cjs +0 -1
- package/dist/adapters/CandlestickChart.config-4S2Or5mN.cjs +0 -1
- package/dist/adapters/CandlestickChart.config-4d3lZuok.js +0 -1
- package/dist/adapters/DataTable.config-D7EycI7z.cjs +0 -1
- package/dist/adapters/DataTable.config-Gq2C0ILP.js +0 -1
- package/dist/adapters/DotStripChart.config-NHJSJBlh.js +0 -1
- package/dist/adapters/DotStripChart.config-VomEbzxR.cjs +0 -1
- package/dist/adapters/FunnelChart.config-C5pBDYFK.js +0 -1
- package/dist/adapters/FunnelChart.config-D3Mtyf28.cjs +0 -1
- package/dist/adapters/GaugeChart.config-BnFLZCC6.js +0 -1
- package/dist/adapters/GaugeChart.config-DtkFafZC.cjs +0 -1
- package/dist/adapters/HeatMapChart.config-BIqhjAFQ.js +0 -1
- package/dist/adapters/HeatMapChart.config-DseB1NfL.cjs +0 -1
- package/dist/adapters/KpiDelta.config-69-uMEyb.js +0 -1
- package/dist/adapters/KpiDelta.config-DWPjfacH.cjs +0 -1
- package/dist/adapters/KpiNumber.config-BbnUmSb-.js +0 -1
- package/dist/adapters/KpiNumber.config-C3btQia1.cjs +0 -1
- package/dist/adapters/KpiText.config-Bnmvk3lB.cjs +0 -1
- package/dist/adapters/KpiText.config-DAWQ0mAe.js +0 -1
- package/dist/adapters/LineChart.config-CKGqehVr.cjs +0 -1
- package/dist/adapters/LineChart.config-FHEbx5Qa.js +0 -1
- package/dist/adapters/MarkdownChart.config-Cj8GMNnf.cjs +0 -1
- package/dist/adapters/MarkdownChart.config-DD5nNpfK.js +0 -1
- package/dist/adapters/MeasureProfileChart.config-CM9DseTR.js +0 -1
- package/dist/adapters/MeasureProfileChart.config-sy-8lmcV.cjs +0 -1
- package/dist/adapters/PieChart.config-8THRRwga.cjs +0 -1
- package/dist/adapters/PieChart.config-m6eZbEWA.js +0 -1
- package/dist/adapters/ProportionBarChart.config-DJrjar2k.cjs +0 -1
- package/dist/adapters/ProportionBarChart.config-Sm34Lsvo.js +0 -1
- package/dist/adapters/RadarChart.config-CXLUncFQ.js +0 -1
- package/dist/adapters/RadarChart.config-Dec1u-cO.cjs +0 -1
- package/dist/adapters/RadialBarChart.config-93JNKh5g.js +0 -1
- package/dist/adapters/RadialBarChart.config-DNw07Ie4.cjs +0 -1
- package/dist/adapters/RecordsTable.config-79tOcNvK.js +0 -1
- package/dist/adapters/RecordsTable.config-DaTk-q0X.cjs +0 -1
- package/dist/adapters/RetentionCombinedChart.config-BJlyJD9K.js +0 -1
- package/dist/adapters/RetentionCombinedChart.config-BMY7kekL.cjs +0 -1
- package/dist/adapters/RetentionHeatmap.config-C6UDjFsM.cjs +0 -1
- package/dist/adapters/RetentionHeatmap.config-C7GsAXqy.js +0 -1
- package/dist/adapters/SankeyChart.config-7K9FRF5f.js +0 -1
- package/dist/adapters/SankeyChart.config-Bn8CuX7j.cjs +0 -1
- package/dist/adapters/ScatterChart.config-BwObH6wd.cjs +0 -1
- package/dist/adapters/ScatterChart.config-DdXyolWJ.js +0 -1
- package/dist/adapters/SunburstChart.config-BaWb-t_B.cjs +0 -1
- package/dist/adapters/SunburstChart.config-D-A2Wbeg.js +0 -1
- package/dist/adapters/TreeMapChart.config-2G6D7LD3.cjs +0 -1
- package/dist/adapters/TreeMapChart.config-CsQ8lmZY.js +0 -1
- package/dist/adapters/WaterfallChart.config-CG6GW5x3.js +0 -1
- package/dist/adapters/WaterfallChart.config-Dt3MgB-U.cjs +0 -1
- package/dist/adapters/utils-COscxYKM.cjs +0 -141
- package/dist/client/chunks/BubbleChart-E0IoByRb.js.map +0 -1
- package/dist/client/chunks/DashboardEditModal-Fx3EXgIk.js.map +0 -1
- package/dist/client/chunks/MarkdownChart-CO0eGGo3.js.map +0 -1
- package/dist/client/chunks/analysis-builder-QaBFxEqT.js.map +0 -1
- package/dist/client/chunks/analysis-builder-shared-CBYZC9iE.js.map +0 -1
- package/dist/client/chunks/chart-markdown-Bcf21ciA.js +0 -68
- package/dist/client/chunks/chart-markdown-Bcf21ciA.js.map +0 -1
- package/dist/client/chunks/chartComponentRegistry-BVeOQaSR.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.",
|
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";
|
|
@@ -177,6 +177,18 @@ export interface ChartTypeConfig {
|
|
|
177
177
|
useCase?: string;
|
|
178
178
|
/** Whether this chart type skips query requirements (for content-based charts like markdown) */
|
|
179
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;
|
|
180
192
|
/** Configuration for which elements support clicking (for drill-down) */
|
|
181
193
|
clickableElements?: ClickableElementsConfig;
|
|
182
194
|
/**
|
|
@@ -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';
|
|
16
|
+
export type { ChartType, ChartAxisConfig, ChartDisplayConfig, ChartProps, ChartExportHandler, ColorPalette } from './types.js';
|
|
17
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[];
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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>>;
|
|
@@ -20,6 +20,17 @@ 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[];
|
|
24
35
|
/**
|
|
25
36
|
* Derive rows from the portlets' grid positions: one row for each distinct `y`,
|
|
@@ -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,7 +57,7 @@ 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, 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';
|
|
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';
|
|
@@ -68,7 +68,7 @@ export { registerColorPalettes } from './utils/colorPalettes.js';
|
|
|
68
68
|
export { createDashboardLayout, formatChartData, highlightCodeBlocks } from './utils/index.js';
|
|
69
69
|
export { migrateConfig, migrateLegacyPortlet } from './utils/configMigration.js';
|
|
70
70
|
export { captureThumbnail, isThumbnailCaptureAvailable, warnIfScreenshotLibMissing } from './utils/thumbnail.js';
|
|
71
|
-
export { exportPortletToXlsx, isExportAvailable, warnIfExcelJsMissing } from './utils/exportXlsx.js';
|
|
71
|
+
export { exportPortletToXlsx, isExportAvailable, portletXlsxFilename, warnIfExcelJsMissing } from './utils/exportXlsx.js';
|
|
72
72
|
export { createDashboardExport, serializeDashboardExport, parseDashboardExport, readDashboardExportFile, downloadDashboardExport, dashboardExportFilename, normalizeDashboardConfigForExport, } from './utils/dashboardExport.js';
|
|
73
73
|
export type { DashboardExportFile, DashboardImportResult, DashboardImportError, DashboardImportWarning, } from './utils/dashboardExport.js';
|
|
74
74
|
export type { DashboardImportExportState, PendingDashboardImport, FailedDashboardImport, } from './hooks/dashboard/useDashboardImportExport.js';
|
|
@@ -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.
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { XlsExportFeatureConfig } from '../types.js';
|
|
2
2
|
import { PortletDebugDataEntry } from '../stores/dashboardStore.js';
|
|
3
|
+
/**
|
|
4
|
+
* The file name that `exportPortletToXlsx` gives to the file of a portlet:
|
|
5
|
+
* the title as a slug (default: `export`), the date and a random suffix.
|
|
6
|
+
* The dashboard card sends it to a `ChartExportHandler`, so a chart that
|
|
7
|
+
* writes its own file names it in the same way.
|
|
8
|
+
*/
|
|
9
|
+
export declare function portletXlsxFilename(portletTitle?: string): string;
|
|
3
10
|
/**
|
|
4
11
|
* Check if XLSX export is available (ExcelJS installed)
|
|
5
12
|
*/
|
|
@@ -8,7 +8,7 @@ export * from './syntaxHighlighting.js';
|
|
|
8
8
|
export * from './comparisonUtils.js';
|
|
9
9
|
export * from './gapFilling.js';
|
|
10
10
|
export { captureThumbnail, isThumbnailCaptureAvailable } from './thumbnail.js';
|
|
11
|
-
export { exportPortletToXlsx, isExportAvailable } from './exportXlsx.js';
|
|
11
|
+
export { exportPortletToXlsx, isExportAvailable, portletXlsxFilename } from './exportXlsx.js';
|
|
12
12
|
export { createDashboardExport, serializeDashboardExport, parseDashboardExport, readDashboardExportFile, downloadDashboardExport, dashboardExportFilename, normalizeDashboardConfigForExport, } from './dashboardExport.js';
|
|
13
13
|
export type { DashboardExportFile, DashboardImportResult, DashboardImportError, DashboardImportWarning, } from './dashboardExport.js';
|
|
14
14
|
/**
|
|
@@ -177,6 +177,18 @@ export interface ChartTypeConfig {
|
|
|
177
177
|
useCase?: string;
|
|
178
178
|
/** Whether this chart type skips query requirements (for content-based charts like markdown) */
|
|
179
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;
|
|
180
192
|
/** Configuration for which elements support clicking (for drill-down) */
|
|
181
193
|
clickableElements?: ClickableElementsConfig;
|
|
182
194
|
/**
|
package/dist/client/charts.d.ts
CHANGED
|
@@ -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';
|
|
16
|
+
export type { ChartType, ChartAxisConfig, ChartDisplayConfig, ChartProps, ChartExportHandler, ColorPalette } from './types.js';
|
|
17
17
|
export type { ChartTypeConfig, ChartConfigBuildContext, DisplayOptionConfig, AxisDropZoneConfig } from './charts/chartConfigs.js';
|
package/dist/client/charts.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { _ as e, c as t, d as n, f as r, l as i, m as a, p as o, u as s } from "./chunks/chartComponentRegistry-
|
|
2
|
-
import { a as c, i as l, n as u, o as d, r as f, s as p, t as m } from "./chunks/charts-loader-
|
|
1
|
+
import { _ as e, c as t, d as n, f as r, l as i, m as a, p as o, u as s } from "./chunks/chartComponentRegistry-B6jUklcw.js";
|
|
2
|
+
import { a as c, i as l, n as u, o as d, r as f, s as p, t as m } from "./chunks/charts-loader-Bt00isFs.js";
|
|
3
3
|
import { a as h, i as g, r as _, t as v } from "./chunks/chartConstants-CeG7zZmB.js";
|
|
4
4
|
import { i as y } from "./chunks/utils-CToHkuhU.js";
|
|
5
|
-
import { t as b } from "./chunks/chart-bar-
|
|
6
|
-
import { t as x } from "./chunks/chart-line-
|
|
7
|
-
import { t as S } from "./chunks/chart-area-
|
|
8
|
-
import { t as C } from "./chunks/chart-pie-
|
|
9
|
-
import { t as w } from "./chunks/chart-scatter-
|
|
10
|
-
import { t as T } from "./chunks/chart-radar-
|
|
11
|
-
import { t as E } from "./chunks/chart-radial-bar-
|
|
12
|
-
import { t as D } from "./chunks/chart-tree-map-
|
|
13
|
-
import { t as O } from "./chunks/chart-data-table-
|
|
14
|
-
import { t as k } from "./chunks/chart-funnel-
|
|
5
|
+
import { t as b } from "./chunks/chart-bar-D2qp_vsO.js";
|
|
6
|
+
import { t as x } from "./chunks/chart-line-Bl-bSP0Y.js";
|
|
7
|
+
import { t as S } from "./chunks/chart-area-BRLlLtIX.js";
|
|
8
|
+
import { t as C } from "./chunks/chart-pie-3IGIOniI.js";
|
|
9
|
+
import { t as w } from "./chunks/chart-scatter-BES9g5kG.js";
|
|
10
|
+
import { t as T } from "./chunks/chart-radar-Md5BwLhY.js";
|
|
11
|
+
import { t as E } from "./chunks/chart-radial-bar-Bfb-gGm6.js";
|
|
12
|
+
import { t as D } from "./chunks/chart-tree-map-CkvUBqNw.js";
|
|
13
|
+
import { t as O } from "./chunks/chart-data-table-DIghSvZN.js";
|
|
14
|
+
import { t as k } from "./chunks/chart-funnel-CvVQTMej.js";
|
|
15
15
|
export { v as CHART_COLORS, _ as CHART_MARGINS, O as DataTable, k as FunnelChart, m as LazyChart, g as NEGATIVE_COLOR, h as POSITIVE_COLOR, S as RechartsAreaChart, b as RechartsBarChart, x as RechartsLineChart, C as RechartsPieChart, T as RechartsRadarChart, E as RechartsRadialBarChart, w as RechartsScatterChart, D as RechartsTreeMapChart, t as clearChartConfigCache, y as formatChartData, u as getAvailableChartTypes, i as getChartConfigAsync, s as getChartConfigSync, f as getUnavailableChartTypes, n as isChartConfigLoaded, l as isChartTypeAvailable, c as isValidChartType, r as loadAllChartConfigs, d as preloadChart, o as preloadChartConfig, a as preloadChartConfigs, p as preloadCharts, e as useChartConfig };
|
|
@@ -2,7 +2,7 @@ import { i as e } from "./chartUtils-BDj8NT4c.js";
|
|
|
2
2
|
import { n as t, r as n } from "./chartConstants-CeG7zZmB.js";
|
|
3
3
|
import { t as r } from "./quantize-CaQkhIo6.js";
|
|
4
4
|
import { o as i, s as a, t as o } from "./BubbleChart.helpers-CaDSYRlF.js";
|
|
5
|
-
import { t as s } from "./chart-activity-grid-
|
|
5
|
+
import { t as s } from "./chart-activity-grid-CIzCAMX9.js";
|
|
6
6
|
//#region node_modules/d3-array/src/min.js
|
|
7
7
|
function c(e, t) {
|
|
8
8
|
let n;
|
|
@@ -294,4 +294,4 @@ function F(e) {
|
|
|
294
294
|
//#endregion
|
|
295
295
|
export { S as a, s as default, b as i, w as n, x as r, F as t };
|
|
296
296
|
|
|
297
|
-
//# sourceMappingURL=ActivityGridChart-
|
|
297
|
+
//# sourceMappingURL=ActivityGridChart-sfYPWaLI.js.map
|