drizzle-cube 0.15.3 → 0.15.5
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-CRStoJN7.js +1 -0
- package/dist/adapters/ActivityGridChart.config-UVIbGrZs.cjs +1 -0
- package/dist/adapters/AreaChart.config-C-64XzvV.cjs +1 -0
- package/dist/adapters/AreaChart.config-OSenKEDa.js +1 -0
- package/dist/adapters/BarChart.config-B3l-2o-5.cjs +1 -0
- package/dist/adapters/BarChart.config-BL-JqfNl.js +1 -0
- package/dist/adapters/BoxPlotChart.config-En2W9sCn.js +1 -0
- package/dist/adapters/BoxPlotChart.config-HT7Vqh3S.cjs +1 -0
- package/dist/adapters/BubbleChart.config-CdrtTNRu.cjs +1 -0
- package/dist/adapters/BubbleChart.config-DCyaRccE.js +1 -0
- package/dist/adapters/CandlestickChart.config-BI2Wti1n.cjs +1 -0
- package/dist/adapters/CandlestickChart.config-DkJ3DZBF.js +1 -0
- package/dist/adapters/DataTable.config-BWGLaGBR.js +1 -0
- package/dist/adapters/DataTable.config-D98yguXz.cjs +1 -0
- package/dist/adapters/DotStripChart.config-BZ4QHLwz.cjs +1 -0
- package/dist/adapters/DotStripChart.config-JPHZAfHq.js +1 -0
- package/dist/adapters/FunnelChart.config-D3WQSq3V.cjs +1 -0
- package/dist/adapters/FunnelChart.config-F0r0WayB.js +1 -0
- package/dist/adapters/GaugeChart.config-CEHrHMfs.cjs +1 -0
- package/dist/adapters/GaugeChart.config-DXdvqUYH.js +1 -0
- package/dist/adapters/HeatMapChart.config-BxKS-o0A.cjs +1 -0
- package/dist/adapters/HeatMapChart.config-D4Q45Omu.js +1 -0
- package/dist/adapters/KpiDelta.config-BBGRf802.js +1 -0
- package/dist/adapters/KpiDelta.config-CpILJrIk.cjs +1 -0
- package/dist/adapters/KpiNumber.config-CbirqFHq.cjs +1 -0
- package/dist/adapters/KpiNumber.config-DctOJjE-.js +1 -0
- package/dist/adapters/KpiText.config-BE67uez4.js +1 -0
- package/dist/adapters/KpiText.config-ChDZbNLQ.cjs +1 -0
- package/dist/adapters/LineChart.config-77h_gmww.js +1 -0
- package/dist/adapters/LineChart.config-V03h_sF5.cjs +1 -0
- package/dist/adapters/MarkdownChart.config-uiOrmHo7.cjs +1 -0
- package/dist/adapters/MarkdownChart.config-zHL8n3e_.js +1 -0
- package/dist/adapters/MeasureProfileChart.config-D-uRVi5J.cjs +1 -0
- package/dist/adapters/MeasureProfileChart.config-YFdPWnN0.js +1 -0
- package/dist/adapters/PieChart.config-DKJVsbZm.cjs +1 -0
- package/dist/adapters/PieChart.config-tDcrCy6I.js +1 -0
- package/dist/adapters/ProportionBarChart.config-Bd780fV1.cjs +1 -0
- package/dist/adapters/ProportionBarChart.config-BpUzsBL5.js +1 -0
- package/dist/adapters/RadarChart.config-DgscyxZj.js +1 -0
- package/dist/adapters/RadarChart.config-Dhz9TUf1.cjs +1 -0
- package/dist/adapters/RadialBarChart.config-CstfMNyO.js +1 -0
- package/dist/adapters/RadialBarChart.config-DU0g9Sqd.cjs +1 -0
- package/dist/adapters/RecordsTable.config-xWF_FwIf.js +1 -0
- package/dist/adapters/RecordsTable.config-yk1-fb7H.cjs +1 -0
- package/dist/adapters/RetentionCombinedChart.config-BPFKAI0l.js +1 -0
- package/dist/adapters/RetentionCombinedChart.config-BQEu6B6q.cjs +1 -0
- package/dist/adapters/RetentionHeatmap.config-B7wz6qj4.cjs +1 -0
- package/dist/adapters/RetentionHeatmap.config-BTX_CrZJ.js +1 -0
- package/dist/adapters/SankeyChart.config-CicdaFta.js +1 -0
- package/dist/adapters/SankeyChart.config-n21KdYxz.cjs +1 -0
- package/dist/adapters/ScatterChart.config-CToAMrS3.cjs +1 -0
- package/dist/adapters/ScatterChart.config-DE9FdKgm.js +1 -0
- package/dist/adapters/SunburstChart.config-BH1UDwp2.js +1 -0
- package/dist/adapters/SunburstChart.config-BNgHwK_7.cjs +1 -0
- package/dist/adapters/TreeMapChart.config-C6aMNMTc.cjs +1 -0
- package/dist/adapters/TreeMapChart.config-CxTQF8zN.js +1 -0
- package/dist/adapters/WaterfallChart.config-B9AeS0MH.cjs +1 -0
- package/dist/adapters/WaterfallChart.config-CtiVue_6.js +1 -0
- package/dist/adapters/core/index.cjs +1 -1
- package/dist/adapters/core/index.js +1 -1
- package/dist/adapters/{core-D6Ghepzl.cjs → core-BcdrjdP_.cjs} +1 -1
- package/dist/adapters/{core-BAwQ6u3F.js → core-p2tpIc-e.js} +2 -2
- package/dist/adapters/{cors-headers-wxp9kYXx.js → cors-headers-BtxruIvb.js} +12 -3
- package/dist/adapters/{cors-headers-BpUSnY3k.cjs → cors-headers-C-cQjvVu.cjs} +2 -2
- package/dist/adapters/express/index.cjs +1 -1
- package/dist/adapters/express/index.js +6 -6
- package/dist/adapters/fastify/index.cjs +1 -1
- package/dist/adapters/fastify/index.js +6 -6
- package/dist/adapters/{handler-g08Gglrb.js → handler-Bt51aMjp.js} +224 -200
- package/dist/adapters/handler-CUvj92A3.cjs +32 -0
- package/dist/adapters/hono/index.cjs +1 -1
- package/dist/adapters/hono/index.js +5 -5
- 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-BRcw-fQh.cjs → mcp-transport-BQdvIzJZ.cjs} +1 -1
- package/dist/adapters/{mcp-transport-Dd8CiQTk.js → mcp-transport-D_PRLMFH.js} +1 -1
- package/dist/adapters/nextjs/index.cjs +1 -1
- package/dist/adapters/nextjs/index.js +6 -6
- package/dist/adapters/{openai-GmnIW6fg.cjs → openai-B8PNzl8m.cjs} +1 -1
- package/dist/adapters/{openai-1xYjNPzU.cjs → openai-BO26SYis.cjs} +1 -1
- package/dist/adapters/{openai-CvzXzyAV.js → openai-D8lG5oYl.js} +1 -1
- package/dist/adapters/{openai-DedOllZH.js → openai-f29v_-Jd.js} +1 -1
- package/dist/adapters/{utils-2FhyAM0C.js → utils-BVIM2U0f.js} +6 -0
- package/dist/adapters/{utils-BQz41FNg.cjs → utils-CPSvgG1y.cjs} +1 -1
- package/dist/adapters/utils.cjs +1 -1
- package/dist/adapters/utils.js +1 -1
- package/dist/cjs/client/charts/chartConfigHelpers.d.ts +5 -0
- package/dist/cjs/client/components/AnalyticsDashboard.d.ts +1 -1
- package/dist/cjs/client/components/DashboardFilters/CompactFilterBar.d.ts +2 -0
- package/dist/cjs/client/components/DashboardFilters/EditModeFilterList.d.ts +2 -0
- package/dist/cjs/client/components/DashboardGrid.d.ts +3 -1
- package/dist/cjs/client/components/DashboardPortletCard.d.ts +1 -1
- package/dist/cjs/client/components/analyticsPortlet/parsePortletQuery.d.ts +5 -1
- package/dist/cjs/client/components/charts/WaterfallChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/cartesianChartHelpers.d.ts +14 -1
- package/dist/cjs/client/components/charts/chartScaffolding.d.ts +61 -1
- package/dist/cjs/client/components/dashboard/DashboardContext.d.ts +7 -1
- package/dist/cjs/client/components/dashboard/DashboardCoordinator.d.ts +1 -1
- package/dist/cjs/client/components/dashboardPortletCard/PortletCardHeader.d.ts +2 -0
- package/dist/cjs/client/components/dashboardPortletCard/propsEqual.d.ts +3 -1
- package/dist/cjs/client/hooks/useResponsiveDashboard.d.ts +10 -1
- package/dist/cjs/client/hooks.d.ts +1 -1
- package/dist/cjs/client/index.d.ts +1 -1
- package/dist/cjs/client/types.d.ts +30 -0
- package/dist/cjs/client/utils/autoGranularity.d.ts +18 -0
- package/dist/cjs/client/utils/index.d.ts +1 -0
- package/dist/cjs/client/utils/timeAxisFormatting.d.ts +81 -0
- package/dist/cjs/server/agent/handler.d.ts +1 -0
- package/dist/cjs/server/agent/index.d.ts +1 -1
- package/dist/cjs/server/agent/providers/index.d.ts +1 -1
- package/dist/cjs/server/agent/providers/types.d.ts +20 -7
- package/dist/cjs/server/agent/types.d.ts +9 -0
- package/dist/cjs/server/compiler.d.ts +11 -0
- package/dist/cjs/server/index.d.ts +2 -1
- package/dist/client/charts/chartConfigHelpers.d.ts +5 -0
- package/dist/client/charts.js +12 -12
- package/dist/client/chunks/{ActivityGridChart-DYJkZzwx.js → ActivityGridChart-9jQtN8-K.js} +4 -4
- package/dist/client/chunks/{ActivityGridChart-DYJkZzwx.js.map → ActivityGridChart-9jQtN8-K.js.map} +1 -1
- package/dist/client/chunks/{BarSeries-RYOuAiaW.js → BarSeries-DK-vuiwN.js} +2 -2
- package/dist/client/chunks/{BarSeries-RYOuAiaW.js.map → BarSeries-DK-vuiwN.js.map} +1 -1
- package/dist/client/chunks/{BubbleChart-DYLLZ_cl.js → BubbleChart-C68fNRF0.js} +4 -4
- package/dist/client/chunks/{BubbleChart-DYLLZ_cl.js.map → BubbleChart-C68fNRF0.js.map} +1 -1
- package/dist/client/chunks/{BubbleChart.helpers-CjbCvUeT.js → BubbleChart.helpers-uNNiXCp3.js} +2 -2
- package/dist/client/chunks/{BubbleChart.helpers-CjbCvUeT.js.map → BubbleChart.helpers-uNNiXCp3.js.map} +1 -1
- package/dist/client/chunks/{ChartStates-CmQaadEo.js → ChartStates-q3isKswo.js} +2 -2
- package/dist/client/chunks/{ChartStates-CmQaadEo.js.map → ChartStates-q3isKswo.js.map} +1 -1
- package/dist/client/chunks/{ChartSummaryHeader-CD9xvGd8.js → ChartSummaryHeader-CArf-Zae.js} +3 -3
- package/dist/client/chunks/{ChartSummaryHeader-CD9xvGd8.js.map → ChartSummaryHeader-CArf-Zae.js.map} +1 -1
- package/dist/client/chunks/{DashboardEditModal-B7OSUOiv.js → DashboardEditModal-DE4tRYdM.js} +1954 -1932
- package/dist/client/chunks/DashboardEditModal-DE4tRYdM.js.map +1 -0
- package/dist/client/chunks/{DataHistogram-06lCYT_Q.js → DataHistogram-ByPAXQ7l.js} +2 -2
- package/dist/client/chunks/{DataHistogram-06lCYT_Q.js.map → DataHistogram-ByPAXQ7l.js.map} +1 -1
- package/dist/client/chunks/{DotStripChart-BmKYH2yE.js → DotStripChart-C6pnWcnJ.js} +5 -5
- package/dist/client/chunks/{DotStripChart-BmKYH2yE.js.map → DotStripChart-C6pnWcnJ.js.map} +1 -1
- package/dist/client/chunks/{FunnelViews-Ck885XTd.js → FunnelViews-CjbkdKgA.js} +2 -2
- package/dist/client/chunks/{FunnelViews-Ck885XTd.js.map → FunnelViews-CjbkdKgA.js.map} +1 -1
- package/dist/client/chunks/{HeatMapChart-CZeYGRLC.js → HeatMapChart-CNxD7vQ7.js} +4 -4
- package/dist/client/chunks/{HeatMapChart-CZeYGRLC.js.map → HeatMapChart-CNxD7vQ7.js.map} +1 -1
- package/dist/client/chunks/{KpiDelta-ls34EAAv.js → KpiDelta-_ZYYbF62.js} +2 -2
- package/dist/client/chunks/{KpiDelta-ls34EAAv.js.map → KpiDelta-_ZYYbF62.js.map} +1 -1
- package/dist/client/chunks/{KpiText-BByhn9KP.js → KpiText-DbqKXrt_.js} +2 -2
- package/dist/client/chunks/{KpiText-BByhn9KP.js.map → KpiText-DbqKXrt_.js.map} +1 -1
- package/dist/client/chunks/{MarkdownChart.helpers-BZuq25Uq.js → MarkdownChart.helpers-BXTbF88z.js} +2 -2
- package/dist/client/chunks/{MarkdownChart.helpers-BZuq25Uq.js.map → MarkdownChart.helpers-BXTbF88z.js.map} +1 -1
- package/dist/client/chunks/{PortletAnalysisModal-BUK4uJRQ.js → PortletAnalysisModal-DyAH0Fr6.js} +6 -6
- package/dist/client/chunks/{PortletAnalysisModal-BUK4uJRQ.js.map → PortletAnalysisModal-DyAH0Fr6.js.map} +1 -1
- package/dist/client/chunks/{ProportionBarChart-BCnhz3Xe.js → ProportionBarChart-C-leF5gI.js} +6 -6
- package/dist/client/chunks/{ProportionBarChart-BCnhz3Xe.js.map → ProportionBarChart-C-leF5gI.js.map} +1 -1
- package/dist/client/chunks/{RecordsTable-DpFttrbE.js → RecordsTable-DYZF1s9w.js} +6 -6
- package/dist/client/chunks/{RecordsTable-DpFttrbE.js.map → RecordsTable-DYZF1s9w.js.map} +1 -1
- package/dist/client/chunks/{RetentionCombinedChart-D6HL0Ewc.js → RetentionCombinedChart-CQXtz2yS.js} +3 -3
- package/dist/client/chunks/{RetentionCombinedChart-D6HL0Ewc.js.map → RetentionCombinedChart-CQXtz2yS.js.map} +1 -1
- package/dist/client/chunks/{RetentionHeatmap-4-FOghfG.js → RetentionHeatmap-1Thi6ecj.js} +2 -2
- package/dist/client/chunks/{RetentionHeatmap-4-FOghfG.js.map → RetentionHeatmap-1Thi6ecj.js.map} +1 -1
- package/dist/client/chunks/{ScatterSeries-C69e7fWt.js → ScatterSeries-B4nwj1RE.js} +2 -2
- package/dist/client/chunks/{ScatterSeries-C69e7fWt.js.map → ScatterSeries-B4nwj1RE.js.map} +1 -1
- package/dist/client/chunks/{SchemaVisualization-BLNTnD5S.js → SchemaVisualization--StKeQKD.js} +1 -1
- package/dist/client/chunks/{TextPortletModal-DH5HkRuy.js → TextPortletModal-BLokJrUd.js} +4 -4
- package/dist/client/chunks/{TextPortletModal-DH5HkRuy.js.map → TextPortletModal-BLokJrUd.js.map} +1 -1
- package/dist/client/chunks/{TreeMapLegend-CccnfTYy.js → TreeMapLegend-D_vqfx_X.js} +2 -2
- package/dist/client/chunks/{TreeMapLegend-CccnfTYy.js.map → TreeMapLegend-D_vqfx_X.js.map} +1 -1
- package/dist/client/chunks/{analysis-builder-Bau8adTK.js → analysis-builder-ChpumcKg.js} +10 -10
- package/dist/client/chunks/{analysis-builder-Bau8adTK.js.map → analysis-builder-ChpumcKg.js.map} +1 -1
- package/dist/client/chunks/{analysis-builder-shared-DFMkGsT_.js → analysis-builder-shared-0wLNwq5q.js} +64 -64
- package/dist/client/chunks/{analysis-builder-shared-DFMkGsT_.js.map → analysis-builder-shared-0wLNwq5q.js.map} +1 -1
- package/dist/client/chunks/cartesianChartHelpers-Do-TAOih.js +421 -0
- package/dist/client/chunks/cartesianChartHelpers-Do-TAOih.js.map +1 -0
- package/dist/client/chunks/{chart-activity-grid-DgXF88W6.js → chart-activity-grid-B9dC1A5R.js} +5 -5
- package/dist/client/chunks/{chart-activity-grid-DgXF88W6.js.map → chart-activity-grid-B9dC1A5R.js.map} +1 -1
- package/dist/client/chunks/chart-area-BEXKNAXv.js +138 -0
- package/dist/client/chunks/chart-area-BEXKNAXv.js.map +1 -0
- package/dist/client/chunks/chart-bar-SMb2q1G9.js +143 -0
- package/dist/client/chunks/chart-bar-SMb2q1G9.js.map +1 -0
- package/dist/client/chunks/{chart-box-plot-DzY4pP09.js → chart-box-plot-C5COpr1_.js} +3 -3
- package/dist/client/chunks/{chart-box-plot-DzY4pP09.js.map → chart-box-plot-C5COpr1_.js.map} +1 -1
- package/dist/client/chunks/{chart-bubble-Dmcv09zb.js → chart-bubble-Df2C1LQW.js} +5 -5
- package/dist/client/chunks/{chart-bubble-Dmcv09zb.js.map → chart-bubble-Df2C1LQW.js.map} +1 -1
- package/dist/client/chunks/{chart-candlestick-BQbqfz7P.js → chart-candlestick-DuDaGj4R.js} +3 -3
- package/dist/client/chunks/{chart-candlestick-BQbqfz7P.js.map → chart-candlestick-DuDaGj4R.js.map} +1 -1
- package/dist/client/chunks/{chart-config-area-Bvft9O_T.js → chart-config-area-DVA0oKNp.js} +11 -10
- package/dist/client/chunks/chart-config-area-DVA0oKNp.js.map +1 -0
- package/dist/client/chunks/{chart-config-bar-OyxCyA3e.js → chart-config-bar-DhqbYfpf.js} +9 -8
- package/dist/client/chunks/chart-config-bar-DhqbYfpf.js.map +1 -0
- package/dist/client/chunks/{chart-config-kpi-delta-ZMObFeZr.js → chart-config-kpi-delta-BPMq7hzP.js} +2 -2
- package/dist/client/chunks/{chart-config-kpi-delta-ZMObFeZr.js.map → chart-config-kpi-delta-BPMq7hzP.js.map} +1 -1
- package/dist/client/chunks/{chart-config-kpi-number-C6rnZbNk.js → chart-config-kpi-number-B83Z2jLe.js} +2 -2
- package/dist/client/chunks/{chart-config-kpi-number-C6rnZbNk.js.map → chart-config-kpi-number-B83Z2jLe.js.map} +1 -1
- package/dist/client/chunks/{chart-config-line-FKcg6zYi.js → chart-config-line-CYwh72pj.js} +11 -10
- package/dist/client/chunks/chart-config-line-CYwh72pj.js.map +1 -0
- package/dist/client/chunks/{chart-config-measure-profile-Bw7okF4K.js → chart-config-measure-profile-Chi9pZNK.js} +5 -3
- package/dist/client/chunks/chart-config-measure-profile-Chi9pZNK.js.map +1 -0
- package/dist/client/chunks/{chart-config-pie-tNg_02bP.js → chart-config-pie-CenIR70H.js} +2 -2
- package/dist/client/chunks/{chart-config-pie-tNg_02bP.js.map → chart-config-pie-CenIR70H.js.map} +1 -1
- package/dist/client/chunks/{chart-config-radar-BbK_cePI.js → chart-config-radar-iBtE5R3S.js} +2 -2
- package/dist/client/chunks/{chart-config-radar-BbK_cePI.js.map → chart-config-radar-iBtE5R3S.js.map} +1 -1
- package/dist/client/chunks/{chart-config-radial-bar-B-ysOwq_.js → chart-config-radial-bar-U0gm1O8q.js} +2 -2
- package/dist/client/chunks/{chart-config-radial-bar-B-ysOwq_.js.map → chart-config-radial-bar-U0gm1O8q.js.map} +1 -1
- package/dist/client/chunks/{chart-config-tree-map-CES9mAql.js → chart-config-tree-map-DxSNKyGd.js} +2 -2
- package/dist/client/chunks/{chart-config-tree-map-CES9mAql.js.map → chart-config-tree-map-DxSNKyGd.js.map} +1 -1
- package/dist/client/chunks/{chart-config-waterfall-D3xkuYph.js → chart-config-waterfall-DtDzu_14.js} +5 -3
- package/dist/client/chunks/chart-config-waterfall-DtDzu_14.js.map +1 -0
- package/dist/client/chunks/{chart-data-table-CPjBzcme.js → chart-data-table-CytJbYDW.js} +5 -5
- package/dist/client/chunks/{chart-data-table-CPjBzcme.js.map → chart-data-table-CytJbYDW.js.map} +1 -1
- package/dist/client/chunks/{chart-funnel-DO66-IUH.js → chart-funnel-CXV90Ndw.js} +3 -3
- package/dist/client/chunks/{chart-funnel-DO66-IUH.js.map → chart-funnel-CXV90Ndw.js.map} +1 -1
- package/dist/client/chunks/{chart-gauge-BqWifMPW.js → chart-gauge-C4nY8NQj.js} +5 -5
- package/dist/client/chunks/{chart-gauge-BqWifMPW.js.map → chart-gauge-C4nY8NQj.js.map} +1 -1
- package/dist/client/chunks/{chart-heat-map-Cqsz9upg.js → chart-heat-map-BebyQ9Vf.js} +5 -5
- package/dist/client/chunks/{chart-heat-map-Cqsz9upg.js.map → chart-heat-map-BebyQ9Vf.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-delta-Bn_Anifd.js → chart-kpi-delta-CeEhPFso.js} +4 -4
- package/dist/client/chunks/{chart-kpi-delta-Bn_Anifd.js.map → chart-kpi-delta-CeEhPFso.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-number-6Hp4nqp9.js → chart-kpi-number-BU6XRX3h.js} +4 -4
- package/dist/client/chunks/{chart-kpi-number-6Hp4nqp9.js.map → chart-kpi-number-BU6XRX3h.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-text-Dbe-anJN.js → chart-kpi-text-skyF2iq6.js} +5 -5
- package/dist/client/chunks/{chart-kpi-text-Dbe-anJN.js.map → chart-kpi-text-skyF2iq6.js.map} +1 -1
- package/dist/client/chunks/chart-line-JtvhnFif.js +135 -0
- package/dist/client/chunks/chart-line-JtvhnFif.js.map +1 -0
- package/dist/client/chunks/{chart-markdown-BN0nnp-T.js → chart-markdown-CdrimJrm.js} +3 -3
- package/dist/client/chunks/{chart-markdown-BN0nnp-T.js.map → chart-markdown-CdrimJrm.js.map} +1 -1
- package/dist/client/chunks/{chart-measure-profile-B3bL3mfE.js → chart-measure-profile-DOl_xbBI.js} +19 -11
- package/dist/client/chunks/chart-measure-profile-DOl_xbBI.js.map +1 -0
- package/dist/client/chunks/{chart-pie-BD2UKMmW.js → chart-pie-DY_3XcSj.js} +6 -6
- package/dist/client/chunks/{chart-pie-BD2UKMmW.js.map → chart-pie-DY_3XcSj.js.map} +1 -1
- package/dist/client/chunks/{chart-radar-NyciE337.js → chart-radar-qus6NAYq.js} +6 -6
- package/dist/client/chunks/{chart-radar-NyciE337.js.map → chart-radar-qus6NAYq.js.map} +1 -1
- package/dist/client/chunks/{chart-radial-bar-BrmjHNAL.js → chart-radial-bar-CmvRUW7j.js} +6 -6
- package/dist/client/chunks/{chart-radial-bar-BrmjHNAL.js.map → chart-radial-bar-CmvRUW7j.js.map} +1 -1
- package/dist/client/chunks/{chart-sankey-DWPKdkOS.js → chart-sankey-Blp-T8_v.js} +2 -2
- package/dist/client/chunks/{chart-sankey-DWPKdkOS.js.map → chart-sankey-Blp-T8_v.js.map} +1 -1
- package/dist/client/chunks/{chart-scatter-CTvzOt2P.js → chart-scatter-BvHmImdY.js} +7 -7
- package/dist/client/chunks/{chart-scatter-CTvzOt2P.js.map → chart-scatter-BvHmImdY.js.map} +1 -1
- package/dist/client/chunks/{chart-sunburst-B3DzSatC.js → chart-sunburst-CYCSZ6pL.js} +2 -2
- package/dist/client/chunks/{chart-sunburst-B3DzSatC.js.map → chart-sunburst-CYCSZ6pL.js.map} +1 -1
- package/dist/client/chunks/{chart-tree-map-DyTG0Alb.js → chart-tree-map-DXl7KCM8.js} +7 -7
- package/dist/client/chunks/{chart-tree-map-DyTG0Alb.js.map → chart-tree-map-DXl7KCM8.js.map} +1 -1
- package/dist/client/chunks/{chart-waterfall-bJ_W_eiJ.js → chart-waterfall-E8bbmkm7.js} +99 -81
- package/dist/client/chunks/chart-waterfall-E8bbmkm7.js.map +1 -0
- package/dist/client/chunks/{chartComponentRegistry-xa0hV8aQ.js → chartComponentRegistry-LNS2NwAv.js} +4 -4
- package/dist/client/chunks/{chartComponentRegistry-xa0hV8aQ.js.map → chartComponentRegistry-LNS2NwAv.js.map} +1 -1
- package/dist/client/chunks/{chartPlugin-uXUb0QRv.js → chartPlugin-yM7JPt-B.js} +14 -14
- package/dist/client/chunks/{chartPlugin-uXUb0QRv.js.map → chartPlugin-yM7JPt-B.js.map} +1 -1
- package/dist/client/chunks/{chartRegistry-CVOMsXOK.js → chartRegistry-CI9eqtt9.js} +57 -38
- package/dist/client/chunks/chartRegistry-CI9eqtt9.js.map +1 -0
- package/dist/client/chunks/chartScaffolding-DcJLGHlm.js +188 -0
- package/dist/client/chunks/chartScaffolding-DcJLGHlm.js.map +1 -0
- package/dist/client/chunks/{chartUtils-CcCLgSOB.js → chartUtils-C49Kr8Nt.js} +2 -2
- package/dist/client/chunks/{chartUtils-CcCLgSOB.js.map → chartUtils-C49Kr8Nt.js.map} +1 -1
- package/dist/client/chunks/{charts-core-BHhJICdb.js → charts-core-Cur4p6Mn.js} +3 -3
- package/dist/client/chunks/{charts-core-BHhJICdb.js.map → charts-core-Cur4p6Mn.js.map} +1 -1
- package/dist/client/chunks/{charts-loader-fPRsqaiJ.js → charts-loader-dfaiJVGE.js} +32 -32
- package/dist/client/chunks/{charts-loader-fPRsqaiJ.js.map → charts-loader-dfaiJVGE.js.map} +1 -1
- package/dist/client/chunks/{dashboardExport-Cz_5rWlF.js → dashboardExport-Cuas_Jm2.js} +203 -144
- package/dist/client/chunks/dashboardExport-Cuas_Jm2.js.map +1 -0
- package/dist/client/chunks/{gaugeChartHelpers-D1QsCg21.js → gaugeChartHelpers-B0uUgsQ4.js} +2 -2
- package/dist/client/chunks/{gaugeChartHelpers-D1QsCg21.js.map → gaugeChartHelpers-B0uUgsQ4.js.map} +1 -1
- package/dist/client/chunks/{nl-NL-DtiGzigu.js → nl-NL-Dl2q6V08.js} +7 -1
- package/dist/client/chunks/nl-NL-Dl2q6V08.js.map +1 -0
- package/dist/client/chunks/{pivotUtils-Cc-PAP1w.js → pivotUtils-CD_kVHWS.js} +2 -2
- package/dist/client/chunks/{pivotUtils-Cc-PAP1w.js.map → pivotUtils-CD_kVHWS.js.map} +1 -1
- package/dist/client/chunks/{providers-DJq_2QU4.js → providers-BanUxi9o.js} +4 -4
- package/dist/client/chunks/{providers-DJq_2QU4.js.map → providers-BanUxi9o.js.map} +1 -1
- package/dist/client/chunks/{radarChartHelpers-B6Tcvmjg.js → radarChartHelpers-MSCZGEBc.js} +2 -2
- package/dist/client/chunks/{radarChartHelpers-B6Tcvmjg.js.map → radarChartHelpers-MSCZGEBc.js.map} +1 -1
- package/dist/client/chunks/{radialBarChartHelpers-2KuJKH_9.js → radialBarChartHelpers-CJ0tVPGJ.js} +2 -2
- package/dist/client/chunks/{radialBarChartHelpers-2KuJKH_9.js.map → radialBarChartHelpers-CJ0tVPGJ.js.map} +1 -1
- package/dist/client/chunks/{schema-visualization-B04dKs1c.js → schema-visualization-BBuxndAv.js} +5 -5
- package/dist/client/chunks/{schema-visualization-B04dKs1c.js.map → schema-visualization-BBuxndAv.js.map} +1 -1
- package/dist/client/chunks/{useCubeFieldLabel-DwTL-1fd.js → useCubeFieldLabel-DORlYhRk.js} +2 -2
- package/dist/client/chunks/{useCubeFieldLabel-DwTL-1fd.js.map → useCubeFieldLabel-DORlYhRk.js.map} +1 -1
- package/dist/client/chunks/{useCubeMetaQuery-CKkxam6t.js → useCubeMetaQuery-ClNaCRP-.js} +2 -2
- package/dist/client/chunks/{useCubeMetaQuery-CKkxam6t.js.map → useCubeMetaQuery-ClNaCRP-.js.map} +1 -1
- package/dist/client/chunks/{useDirtyStateTracking-CesO_Xr8.js → useDirtyStateTracking-BA8JTfGP.js} +111 -108
- package/dist/client/chunks/useDirtyStateTracking-BA8JTfGP.js.map +1 -0
- package/dist/client/chunks/{useExplainAI-B9CqKiqE.js → useExplainAI-DhkrNycx.js} +3 -3
- package/dist/client/chunks/{useExplainAI-B9CqKiqE.js.map → useExplainAI-DhkrNycx.js.map} +1 -1
- package/dist/client/chunks/{useTranslation-DgVTqWyJ.js → useTranslation-DQ_tbKyn.js} +9 -3
- package/dist/client/chunks/{useTranslation-DgVTqWyJ.js.map → useTranslation-DQ_tbKyn.js.map} +1 -1
- package/dist/client/chunks/utils-4nU07wK8.js.map +1 -1
- package/dist/client/components/AnalyticsDashboard.d.ts +1 -1
- package/dist/client/components/DashboardFilters/CompactFilterBar.d.ts +2 -0
- package/dist/client/components/DashboardFilters/EditModeFilterList.d.ts +2 -0
- package/dist/client/components/DashboardGrid.d.ts +3 -1
- package/dist/client/components/DashboardPortletCard.d.ts +1 -1
- package/dist/client/components/analyticsPortlet/parsePortletQuery.d.ts +5 -1
- package/dist/client/components/charts/WaterfallChart.d.ts +1 -1
- package/dist/client/components/charts/cartesianChartHelpers.d.ts +14 -1
- package/dist/client/components/charts/chartScaffolding.d.ts +61 -1
- package/dist/client/components/dashboard/DashboardContext.d.ts +7 -1
- package/dist/client/components/dashboard/DashboardCoordinator.d.ts +1 -1
- package/dist/client/components/dashboardPortletCard/PortletCardHeader.d.ts +2 -0
- package/dist/client/components/dashboardPortletCard/propsEqual.d.ts +3 -1
- package/dist/client/components.js +17 -17
- package/dist/client/components.js.map +1 -1
- package/dist/client/hooks/useResponsiveDashboard.d.ts +10 -1
- package/dist/client/hooks.d.ts +1 -1
- package/dist/client/hooks.js +3 -3
- package/dist/client/icons.js +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +14 -14
- 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/types.d.ts +30 -0
- package/dist/client/utils/autoGranularity.d.ts +18 -0
- package/dist/client/utils/index.d.ts +1 -0
- package/dist/client/utils/timeAxisFormatting.d.ts +81 -0
- package/dist/client/utils.js +12 -12
- package/dist/client/utils.js.map +1 -1
- package/dist/client-bundle-stats.html +1 -1
- package/dist/mcp-app/mcp-app.html +111 -111
- package/dist/server/agent/handler.d.ts +1 -0
- package/dist/server/agent/index.d.ts +1 -1
- package/dist/server/agent/providers/index.d.ts +1 -1
- package/dist/server/agent/providers/types.d.ts +20 -7
- package/dist/server/agent/types.d.ts +9 -0
- package/dist/server/{chartConfigHelpers-CLCi4RHs.js → chartConfigHelpers-BZ93eyEi.js} +22 -1
- package/dist/server/{chartConfigHelpers-BhME7ow_.cjs → chartConfigHelpers-DqYCkMe-.cjs} +1 -1
- package/dist/server/compiler.d.ts +11 -0
- package/dist/server/index.cjs +23 -23
- package/dist/server/index.d.ts +2 -1
- package/dist/server/index.js +2882 -2862
- package/package.json +2 -2
- package/dist/adapters/ActivityGridChart.config-BqI_t68H.js +0 -1
- package/dist/adapters/ActivityGridChart.config-CmAr4V_A.cjs +0 -1
- package/dist/adapters/AreaChart.config-B5WMfLHi.js +0 -1
- package/dist/adapters/AreaChart.config-Dg9Z1gaQ.cjs +0 -1
- package/dist/adapters/BarChart.config-DAlsBrko.cjs +0 -1
- package/dist/adapters/BarChart.config-DIJL0ZEg.js +0 -1
- package/dist/adapters/BoxPlotChart.config-D1ZAll4z.cjs +0 -1
- package/dist/adapters/BoxPlotChart.config-H_2xeFBO.js +0 -1
- package/dist/adapters/BubbleChart.config-CpwTB_6Y.js +0 -1
- package/dist/adapters/BubbleChart.config-I8p43Mu4.cjs +0 -1
- package/dist/adapters/CandlestickChart.config-BgZPDvpc.js +0 -1
- package/dist/adapters/CandlestickChart.config-Dc1G12oj.cjs +0 -1
- package/dist/adapters/DataTable.config-CT_g2xN3.js +0 -1
- package/dist/adapters/DataTable.config-VpDNu0z9.cjs +0 -1
- package/dist/adapters/DotStripChart.config-DkAjLcBE.js +0 -1
- package/dist/adapters/DotStripChart.config-DqsXUqL3.cjs +0 -1
- package/dist/adapters/FunnelChart.config-BRAjrWt2.cjs +0 -1
- package/dist/adapters/FunnelChart.config-D3Rkazem.js +0 -1
- package/dist/adapters/GaugeChart.config-BHVr46iw.js +0 -1
- package/dist/adapters/GaugeChart.config-Bt5UcsLR.cjs +0 -1
- package/dist/adapters/HeatMapChart.config-B47rGCFj.js +0 -1
- package/dist/adapters/HeatMapChart.config-LbXKCXim.cjs +0 -1
- package/dist/adapters/KpiDelta.config-m9py5KFw.js +0 -1
- package/dist/adapters/KpiDelta.config-tr6ymPrZ.cjs +0 -1
- package/dist/adapters/KpiNumber.config-BQQB-8Na.js +0 -1
- package/dist/adapters/KpiNumber.config-D9E_mv3n.cjs +0 -1
- package/dist/adapters/KpiText.config-D30AoAWs.cjs +0 -1
- package/dist/adapters/KpiText.config-DZFu4dhW.js +0 -1
- package/dist/adapters/LineChart.config-BaOctQ_X.cjs +0 -1
- package/dist/adapters/LineChart.config-Bkk0RVFU.js +0 -1
- package/dist/adapters/MarkdownChart.config-CnCMKY0K.js +0 -1
- package/dist/adapters/MarkdownChart.config-DQ53iGlB.cjs +0 -1
- package/dist/adapters/MeasureProfileChart.config-Xuz1KNvH.cjs +0 -1
- package/dist/adapters/MeasureProfileChart.config-aDmJrxUY.js +0 -1
- package/dist/adapters/PieChart.config-Bj4BGx_z.cjs +0 -1
- package/dist/adapters/PieChart.config-JlDLHryS.js +0 -1
- package/dist/adapters/ProportionBarChart.config-D59yrS9x.js +0 -1
- package/dist/adapters/ProportionBarChart.config-op9gegw6.cjs +0 -1
- package/dist/adapters/RadarChart.config-Bk543-Z_.js +0 -1
- package/dist/adapters/RadarChart.config-DLMQ054c.cjs +0 -1
- package/dist/adapters/RadialBarChart.config-iDruLAmN.cjs +0 -1
- package/dist/adapters/RadialBarChart.config-s0tWy-qL.js +0 -1
- package/dist/adapters/RecordsTable.config-B6brtiDj.js +0 -1
- package/dist/adapters/RecordsTable.config-CpCct86q.cjs +0 -1
- package/dist/adapters/RetentionCombinedChart.config-7mk-qG29.js +0 -1
- package/dist/adapters/RetentionCombinedChart.config-CztsLuXe.cjs +0 -1
- package/dist/adapters/RetentionHeatmap.config-CqcCHzFk.cjs +0 -1
- package/dist/adapters/RetentionHeatmap.config-DbBEEBhN.js +0 -1
- package/dist/adapters/SankeyChart.config-BhXvLsqS.js +0 -1
- package/dist/adapters/SankeyChart.config-DiTLU8SO.cjs +0 -1
- package/dist/adapters/ScatterChart.config-BpWzbAsu.cjs +0 -1
- package/dist/adapters/ScatterChart.config-DnSJK4Su.js +0 -1
- package/dist/adapters/SunburstChart.config-CqoJRimn.js +0 -1
- package/dist/adapters/SunburstChart.config-yLl99W7m.cjs +0 -1
- package/dist/adapters/TreeMapChart.config-CqFjEDR4.cjs +0 -1
- package/dist/adapters/TreeMapChart.config-YLYtyaRA.js +0 -1
- package/dist/adapters/WaterfallChart.config-C2nJz83o.cjs +0 -1
- package/dist/adapters/WaterfallChart.config-CBUPgHuG.js +0 -1
- package/dist/adapters/handler-CRHY6iC-.cjs +0 -32
- package/dist/client/chunks/AngledXAxisTick-DTvPXpZV.js +0 -21
- package/dist/client/chunks/AngledXAxisTick-DTvPXpZV.js.map +0 -1
- package/dist/client/chunks/DashboardEditModal-B7OSUOiv.js.map +0 -1
- package/dist/client/chunks/cartesianChartHelpers-XuqUcTM1.js +0 -256
- package/dist/client/chunks/cartesianChartHelpers-XuqUcTM1.js.map +0 -1
- package/dist/client/chunks/chart-area-D6InVJ_Y.js +0 -125
- package/dist/client/chunks/chart-area-D6InVJ_Y.js.map +0 -1
- package/dist/client/chunks/chart-bar-BkiQa3FZ.js +0 -129
- package/dist/client/chunks/chart-bar-BkiQa3FZ.js.map +0 -1
- package/dist/client/chunks/chart-config-area-Bvft9O_T.js.map +0 -1
- package/dist/client/chunks/chart-config-bar-OyxCyA3e.js.map +0 -1
- package/dist/client/chunks/chart-config-line-FKcg6zYi.js.map +0 -1
- package/dist/client/chunks/chart-config-measure-profile-Bw7okF4K.js.map +0 -1
- package/dist/client/chunks/chart-config-waterfall-D3xkuYph.js.map +0 -1
- package/dist/client/chunks/chart-line-CIsG5AVG.js +0 -122
- package/dist/client/chunks/chart-line-CIsG5AVG.js.map +0 -1
- package/dist/client/chunks/chart-measure-profile-B3bL3mfE.js.map +0 -1
- package/dist/client/chunks/chart-waterfall-bJ_W_eiJ.js.map +0 -1
- package/dist/client/chunks/chartRegistry-CVOMsXOK.js.map +0 -1
- package/dist/client/chunks/chartScaffolding-CBw7fDuD.js +0 -131
- package/dist/client/chunks/chartScaffolding-CBw7fDuD.js.map +0 -1
- package/dist/client/chunks/dashboardExport-Cz_5rWlF.js.map +0 -1
- package/dist/client/chunks/nl-NL-DtiGzigu.js.map +0 -1
- package/dist/client/chunks/useDirtyStateTracking-CesO_Xr8.js.map +0 -1
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-CPSvgG1y.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-BVIM2U0f.js";
|
|
@@ -61,3 +61,8 @@ export declare const showSummaryDisplayOption: DisplayOptionConfig;
|
|
|
61
61
|
* of points) read far better without a marker on every one.
|
|
62
62
|
*/
|
|
63
63
|
export declare function showPointsDisplayOption(defaultValue?: boolean): DisplayOptionConfig;
|
|
64
|
+
/**
|
|
65
|
+
* X-axis label orientation for the Cartesian charts. `auto` keeps labels
|
|
66
|
+
* horizontal when they fit (always for time axes) and angles long ones.
|
|
67
|
+
*/
|
|
68
|
+
export declare const xAxisLabelsDisplayOption: DisplayOptionConfig;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnalyticsDashboardProps } from '../types.js';
|
|
2
|
-
export default function AnalyticsDashboard({ config, editable, dashboardFilters: propDashboardFilters, onDashboardFiltersChange: onPropFiltersChange, loadingComponent, onConfigChange, onSave, onSaveThumbnail, onDirtyStateChange, dashboardMeta, onDashboardMetaChange, onPortletExpand }: AnalyticsDashboardProps): import('react').JSX.Element;
|
|
2
|
+
export default function AnalyticsDashboard({ config, editable, dashboardFilters: propDashboardFilters, onDashboardFiltersChange: onPropFiltersChange, loadingComponent, onConfigChange, onSave, onSaveThumbnail, onDirtyStateChange, dashboardMeta, onDashboardMetaChange, onPortletExpand, dateRangeHint }: AnalyticsDashboardProps): import('react').JSX.Element;
|
|
@@ -6,6 +6,8 @@ interface CompactFilterBarProps {
|
|
|
6
6
|
schema: CubeMeta | null;
|
|
7
7
|
isEditMode: boolean;
|
|
8
8
|
allowDateFilterCreation?: boolean;
|
|
9
|
+
/** Shows the date controls (features.dateRangeFilter, default true) */
|
|
10
|
+
allowDateRange?: boolean;
|
|
9
11
|
onDashboardFiltersChange: (filters: DashboardFilter[], changedFilterId: string) => void;
|
|
10
12
|
onAddFilter?: () => void;
|
|
11
13
|
onEditFilter?: (filterId: string) => void;
|
|
@@ -4,6 +4,8 @@ interface EditModeFilterListProps {
|
|
|
4
4
|
dashboardFilters: DashboardFilter[];
|
|
5
5
|
onAddFilter: () => void;
|
|
6
6
|
onAddTimeFilter: () => void;
|
|
7
|
+
/** Offers "+ Date Range" (features.dateRangeFilter, default true) */
|
|
8
|
+
allowDateRange?: boolean;
|
|
7
9
|
onEditFilter: (filterId: string) => void;
|
|
8
10
|
onRemoveFilter: (filterId: string) => void;
|
|
9
11
|
selectedFilterId?: string | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ColorPalette } from '../utils/colorPalettes.js';
|
|
3
|
-
import { DashboardConfig, DashboardFilter, CubeMeta, DashboardLayoutMode, DashboardMeta, PortletExpandPayload } from '../types.js';
|
|
3
|
+
import { DashboardConfig, DashboardFilter, CubeMeta, DashboardLayoutMode, DashboardMeta, DateRangeHint, PortletExpandPayload } from '../types.js';
|
|
4
4
|
interface DashboardGridProps {
|
|
5
5
|
config: DashboardConfig;
|
|
6
6
|
editable?: boolean;
|
|
@@ -33,6 +33,8 @@ interface DashboardGridProps {
|
|
|
33
33
|
}) => Promise<void> | void;
|
|
34
34
|
/** Replaces the built-in Expand modal; features.portletExpand shows the button */
|
|
35
35
|
onPortletExpand?: (payload: PortletExpandPayload) => void;
|
|
36
|
+
/** Time window the host applies itself; features.autoGranularity reads it */
|
|
37
|
+
dateRangeHint?: DateRangeHint;
|
|
36
38
|
}
|
|
37
39
|
export default function DashboardGrid(props: DashboardGridProps): import('react').JSX.Element;
|
|
38
40
|
export {};
|
|
@@ -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, inFixedHeightRow, setPortletRef, setPortletComponentRef, callbacks, icons, onPortletExpand }: DashboardPortletCardProps) => React.JSX.Element>;
|
|
3
|
+
declare const DashboardPortletCard: React.MemoExoticComponent<({ portlet, editable, layoutMode, dashboardFilters, dateRangeHint, configEagerLoad, dashboardRefresh, loadingComponent, colorPalette, containerProps, headerProps, variant, inFixedHeightRow, setPortletRef, setPortletComponentRef, callbacks, icons, onPortletExpand }: DashboardPortletCardProps) => React.JSX.Element>;
|
|
4
4
|
export default DashboardPortletCard;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CubeQuery, DashboardFilter, DashboardFilterMapping, MultiQueryConfig, ServerFunnelQuery } from '../../types.js';
|
|
1
|
+
import { CubeQuery, DashboardFilter, DateRangeHint, DashboardFilterMapping, MultiQueryConfig, ServerFunnelQuery } from '../../types.js';
|
|
2
2
|
import { ServerFlowQuery } from '../../types/flow.js';
|
|
3
3
|
import { ServerRetentionQuery } from '../../types/retention.js';
|
|
4
4
|
export interface ParsedPortletQuery {
|
|
@@ -26,6 +26,10 @@ export interface ParsePortletQueryParams {
|
|
|
26
26
|
regularFilters?: DashboardFilter[];
|
|
27
27
|
dashboardFilters?: DashboardFilter[];
|
|
28
28
|
dashboardFilterMapping?: DashboardFilterMapping;
|
|
29
|
+
/** Rewrite time-dimension granularities from the effective date range (features.autoGranularity) */
|
|
30
|
+
autoGranularity?: boolean;
|
|
31
|
+
/** Range auto granularity uses when a query has none */
|
|
32
|
+
dateRangeHint?: DateRangeHint;
|
|
29
33
|
}
|
|
30
34
|
/**
|
|
31
35
|
* Parse the portlet query string and merge applicable dashboard filters.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ChartProps } from '../../types.js';
|
|
3
|
-
declare const WaterfallChart: React.MemoExoticComponent<({ data, chartConfig, displayConfig, height, onDataPointClick, drillEnabled, }: ChartProps) => React.JSX.Element>;
|
|
3
|
+
declare const WaterfallChart: React.MemoExoticComponent<({ data, chartConfig, displayConfig, queryObject, height, onDataPointClick, drillEnabled, }: ChartProps) => React.JSX.Element>;
|
|
4
4
|
export default WaterfallChart;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { TimeAxisFormatOptions } from '../../utils/timeAxisFormatting.js';
|
|
2
3
|
import { ColorPalette } from '../../types.js';
|
|
3
4
|
/**
|
|
4
5
|
* Co-located helpers shared by the Cartesian time-series charts (Line, Area).
|
|
@@ -43,8 +44,20 @@ export declare function renderDrillDot({ props, color, drillEnabled, originalFie
|
|
|
43
44
|
/**
|
|
44
45
|
* Build the comparison-mode X-axis tick formatter for time-series charts.
|
|
45
46
|
* Returns undefined when not in comparison mode (no custom formatting).
|
|
47
|
+
*
|
|
48
|
+
* The axis value is the period day index; the row it names carries the current
|
|
49
|
+
* period's date. Rows are looked up by that value, not by the tick's position,
|
|
50
|
+
* which differs once recharts thins the ticks. With `compact` the date is
|
|
51
|
+
* drawn as a compact time tick.
|
|
52
|
+
*/
|
|
53
|
+
export declare function makeComparisonTickFormatter(hasComparisonData: boolean, chartData: any[], queryObject: any, xAxisField: string, compact?: TimeAxisFormatOptions): ((value: string | number, index: number) => string) | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Compact tick formatter for a time-dimension X axis (`21:00`, `28 Nov`,
|
|
56
|
+
* `Nov 2026`...). Undefined when the axis is not a query time dimension or its
|
|
57
|
+
* values are not times, so category axes keep their labels. The full label
|
|
58
|
+
* stays on the row, so the tooltip still shows the whole timestamp.
|
|
46
59
|
*/
|
|
47
|
-
export declare function
|
|
60
|
+
export declare function makeTimeAxisTickFormatter(values: unknown[], queryObject: any, xAxisField: string | undefined, options?: Omit<TimeAxisFormatOptions, 'granularity'>): ((value: string | number, index: number) => string) | undefined;
|
|
48
61
|
/**
|
|
49
62
|
* Build the comparison-mode tooltip label formatter for time-series charts.
|
|
50
63
|
* Returns undefined when not in comparison mode (no custom formatting).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxisFormatConfig } from '../../types.js';
|
|
1
|
+
import { AxisFormatConfig, XAxisLabelMode } from '../../types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Shared scaffolding for the Cartesian recharts charts (bar, line, area).
|
|
4
4
|
*
|
|
@@ -42,6 +42,66 @@ export declare function getYAxisChartMargins(hasRightAxis: boolean): {
|
|
|
42
42
|
export declare const MIN_ANGLED_AXIS_HEIGHT = 60;
|
|
43
43
|
export declare const MAX_ANGLED_AXIS_HEIGHT = 96;
|
|
44
44
|
export declare function resolveAngledAxisHeight(values: Array<string | number | undefined>): number;
|
|
45
|
+
/** Height of an X axis with horizontal labels: tick line, margin, one 12px line. */
|
|
46
|
+
export declare const HORIZONTAL_AXIS_HEIGHT = 24;
|
|
47
|
+
/**
|
|
48
|
+
* In `auto` mode, category labels up to this many characters stay horizontal;
|
|
49
|
+
* longer ones are angled so more of them fit. Time axes are always horizontal
|
|
50
|
+
* in `auto`: their compact labels are short by construction.
|
|
51
|
+
*/
|
|
52
|
+
export declare const HORIZONTAL_LABEL_MAX_CHARS = 12;
|
|
53
|
+
/** Minimum gap between horizontal labels; recharts drops ticks to keep it. */
|
|
54
|
+
export declare const HORIZONTAL_MIN_TICK_GAP = 12;
|
|
55
|
+
export type XAxisOrientation = 'horizontal' | 'angled';
|
|
56
|
+
/**
|
|
57
|
+
* Pick the X-axis label orientation.
|
|
58
|
+
*
|
|
59
|
+
* `auto` keeps labels horizontal when they are short (or the axis is a time
|
|
60
|
+
* axis) and recharts may thin them. Showing every label (`showAllXLabels`) only
|
|
61
|
+
* fits angled, so `auto` angles then. An explicit mode always wins.
|
|
62
|
+
*/
|
|
63
|
+
export declare function resolveXAxisOrientation({ labels, mode, isTimeAxis, showAllLabels }: {
|
|
64
|
+
labels: Array<string | number | undefined>;
|
|
65
|
+
mode?: XAxisLabelMode;
|
|
66
|
+
isTimeAxis?: boolean;
|
|
67
|
+
showAllLabels?: boolean;
|
|
68
|
+
}): XAxisOrientation;
|
|
69
|
+
/** Axis height for the orientation actually drawn, so no empty band is left. */
|
|
70
|
+
export declare function resolveXAxisHeight(orientation: XAxisOrientation, labels: Array<string | number | undefined>): number;
|
|
71
|
+
/**
|
|
72
|
+
* Props for a category `<XAxis>` shared by the Cartesian charts: the tick
|
|
73
|
+
* (horizontal or angled), its height, thinning and the label formatter.
|
|
74
|
+
*
|
|
75
|
+
* The formatter goes on the axis, not the tick, so recharts measures the
|
|
76
|
+
* labels it will draw when it decides which ticks to drop. Labels are sized
|
|
77
|
+
* from the formatted text, not the raw values.
|
|
78
|
+
*/
|
|
79
|
+
export declare function getCartesianXAxisProps({ values, tickFormatter, mode, isTimeAxis, showAllLabels }: {
|
|
80
|
+
values: Array<string | number | undefined>;
|
|
81
|
+
tickFormatter?: (value: any, index: number) => string;
|
|
82
|
+
mode?: XAxisLabelMode;
|
|
83
|
+
isTimeAxis?: boolean;
|
|
84
|
+
showAllLabels?: boolean;
|
|
85
|
+
}): {
|
|
86
|
+
orientation: "horizontal";
|
|
87
|
+
height: number;
|
|
88
|
+
tickFormatter: ((value: any, index: number) => string) | undefined;
|
|
89
|
+
tick: {
|
|
90
|
+
fontSize: number;
|
|
91
|
+
fill: string;
|
|
92
|
+
};
|
|
93
|
+
interval: number | "preserveStartEnd";
|
|
94
|
+
minTickGap: number;
|
|
95
|
+
} | {
|
|
96
|
+
orientation: "angled";
|
|
97
|
+
height: number;
|
|
98
|
+
tickFormatter: ((value: any, index: number) => string) | undefined;
|
|
99
|
+
tick: import('react').JSX.Element;
|
|
100
|
+
interval: number | undefined;
|
|
101
|
+
minTickGap: undefined;
|
|
102
|
+
};
|
|
103
|
+
/** Legend gap under the X axis: small once the axis reserves its own labels. */
|
|
104
|
+
export declare function getLegendPaddingTop(orientation: XAxisOrientation, angledPadding: number): number;
|
|
45
105
|
/**
|
|
46
106
|
* Width reserved for the left `<YAxis>`. This is recharts' own default, stated
|
|
47
107
|
* explicitly so anything needing to line up with the plot area can rely on it
|
|
@@ -4,7 +4,7 @@ import { UseDashboardActions } from '../../hooks/useDashboardHook.js';
|
|
|
4
4
|
import { DashboardDisplayMode } from '../../hooks/useResponsiveDashboard.js';
|
|
5
5
|
import { DashboardImportExportState } from '../../hooks/dashboard/useDashboardImportExport.js';
|
|
6
6
|
import { ColorPalette } from '../../utils/colorPalettes.js';
|
|
7
|
-
import { DashboardConfig, PortletConfig, DashboardFilter, DashboardFilterMapping, CubeMeta, DashboardLayoutMode, DashboardGridSettings, RowLayout, PortletGroup, FeaturesConfig, DashboardMeta, PortletExpandPayload } from '../../types.js';
|
|
7
|
+
import { DashboardConfig, PortletConfig, DashboardFilter, DashboardFilterMapping, CubeMeta, DashboardLayoutMode, DashboardGridSettings, RowLayout, PortletGroup, FeaturesConfig, DashboardMeta, DateRangeHint, PortletExpandPayload } from '../../types.js';
|
|
8
8
|
import { MaxAgeOptions } from '../../client/maxAge.js';
|
|
9
9
|
/**
|
|
10
10
|
* Props accepted by DashboardProvider (the public composable entry point).
|
|
@@ -47,6 +47,12 @@ export interface DashboardProviderProps {
|
|
|
47
47
|
}) => Promise<void> | void;
|
|
48
48
|
/** Replaces the built-in Expand modal; features.portletExpand shows the button */
|
|
49
49
|
onPortletExpand?: (payload: PortletExpandPayload) => void;
|
|
50
|
+
/**
|
|
51
|
+
* The time window the host applies itself (e.g. on its server), as date-time
|
|
52
|
+
* strings. It does not filter: with features.autoGranularity on, portlets
|
|
53
|
+
* whose query has no date range pick their granularity from it.
|
|
54
|
+
*/
|
|
55
|
+
dateRangeHint?: DateRangeHint;
|
|
50
56
|
children: ReactNode;
|
|
51
57
|
}
|
|
52
58
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DashboardProviderProps } from './DashboardContext.js';
|
|
2
|
-
export default function DashboardCoordinator({ config, editable, dashboardFilters, readOnlyFilterIds, loadingComponent, onConfigChange, onPortletRefresh, onSave, onSaveThumbnail, colorPalette, schema, onDashboardFiltersChange, dashboardModes, hideToolbar, dashboardMeta, onDashboardMetaChange, onPortletExpand, children }: DashboardProviderProps): import('react').JSX.Element;
|
|
2
|
+
export default function DashboardCoordinator({ config, editable, dashboardFilters, readOnlyFilterIds, loadingComponent, onConfigChange, onPortletRefresh, onSave, onSaveThumbnail, colorPalette, schema, onDashboardFiltersChange, dashboardModes, hideToolbar, dashboardMeta, onDashboardMetaChange, onPortletExpand, dateRangeHint: dateRangeHintProp, children }: DashboardProviderProps): import('react').JSX.Element;
|
|
@@ -14,6 +14,8 @@ interface PortletCardHeaderProps {
|
|
|
14
14
|
isEditMode: boolean;
|
|
15
15
|
isInSelectionMode: boolean;
|
|
16
16
|
debugData?: PortletDebugDataEntry;
|
|
17
|
+
/** Shows the debug button in edit mode (features.showDebug, default true) */
|
|
18
|
+
showDebug?: boolean;
|
|
17
19
|
copyAvailable: boolean;
|
|
18
20
|
copySuccess: boolean;
|
|
19
21
|
/** Shows Download: a chart export is registered, or the XLSX export is available and the portlet has debug data */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode, ComponentType, CSSProperties } from 'react';
|
|
2
|
-
import { AnalyticsPortletRef, ChartType, DashboardFilter, DashboardLayoutMode, DashboardRefreshConfig, PortletConfig, PortletExpandPayload } from '../../types.js';
|
|
2
|
+
import { AnalyticsPortletRef, ChartType, DashboardFilter, DateRangeHint, DashboardLayoutMode, DashboardRefreshConfig, PortletConfig, PortletExpandPayload } from '../../types.js';
|
|
3
3
|
import { PortletCardVariant } from './cardStyles.js';
|
|
4
4
|
import { ColorPalette } from '../../utils/colorPalettes.js';
|
|
5
5
|
import { MaxAgeOptions } from '../../client/maxAge.js';
|
|
@@ -11,6 +11,8 @@ export interface DashboardPortletCardProps {
|
|
|
11
11
|
/** Set by the rows layout when the card's row keeps a fixed height. */
|
|
12
12
|
inFixedHeightRow?: boolean;
|
|
13
13
|
dashboardFilters?: DashboardFilter[];
|
|
14
|
+
/** Host time window for features.autoGranularity; keep the reference stable */
|
|
15
|
+
dateRangeHint?: DateRangeHint;
|
|
14
16
|
configEagerLoad?: boolean;
|
|
15
17
|
/** Dashboard default refresh, overridden by `portlet.refresh` */
|
|
16
18
|
dashboardRefresh?: DashboardRefreshConfig;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { RefCallback } from 'react';
|
|
2
2
|
export type DashboardDisplayMode = 'desktop' | 'scaled' | 'mobile';
|
|
3
|
+
export interface UseResponsiveDashboardOptions {
|
|
4
|
+
/**
|
|
5
|
+
* Container width (px) at and above which the dashboard renders unscaled
|
|
6
|
+
* and can be edited (default: 1200). Values below 768 are raised to 768.
|
|
7
|
+
*/
|
|
8
|
+
desktopMinWidth?: number;
|
|
9
|
+
}
|
|
10
|
+
/** The desktop threshold to use: the default when unset or invalid, never below the mobile threshold. */
|
|
11
|
+
export declare function resolveDesktopMinWidth(desktopMinWidth?: number): number;
|
|
3
12
|
export interface UseResponsiveDashboardResult {
|
|
4
13
|
containerRef: RefCallback<HTMLDivElement>;
|
|
5
14
|
containerWidth: number;
|
|
@@ -13,4 +22,4 @@ export interface UseResponsiveDashboardResult {
|
|
|
13
22
|
* Uses ResizeObserver for accurate width detection and calculates
|
|
14
23
|
* the appropriate display mode and scale factor
|
|
15
24
|
*/
|
|
16
|
-
export declare function useResponsiveDashboard(): UseResponsiveDashboardResult;
|
|
25
|
+
export declare function useResponsiveDashboard(options?: UseResponsiveDashboardOptions): UseResponsiveDashboardResult;
|
|
@@ -11,7 +11,7 @@ export { useDirtyStateTracking } from './hooks/useDirtyStateTracking.js';
|
|
|
11
11
|
export type { UseDirtyStateTrackingOptions, UseDirtyStateTrackingResult } from './hooks/useDirtyStateTracking.js';
|
|
12
12
|
export { useFilterValues } from './hooks/useFilterValues.js';
|
|
13
13
|
export { useResponsiveDashboard } from './hooks/useResponsiveDashboard.js';
|
|
14
|
-
export type { DashboardDisplayMode, UseResponsiveDashboardResult } from './hooks/useResponsiveDashboard.js';
|
|
14
|
+
export type { DashboardDisplayMode, UseResponsiveDashboardResult, UseResponsiveDashboardOptions } from './hooks/useResponsiveDashboard.js';
|
|
15
15
|
export { useNotebookLayout } from './hooks/useNotebookLayout.js';
|
|
16
16
|
export type { NotebookLayoutMode, UseNotebookLayoutResult } from './hooks/useNotebookLayout.js';
|
|
17
17
|
export type { CubeQuery, CubeQueryOptions, CubeResultSet, CubeApiOptions } from './types.js';
|
|
@@ -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, 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';
|
|
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, DateRangeHint, 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';
|
|
@@ -154,6 +154,12 @@ export interface ThresholdBand {
|
|
|
154
154
|
value: number;
|
|
155
155
|
color: string;
|
|
156
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* X-axis tick label orientation for Cartesian charts. `auto` draws horizontal
|
|
159
|
+
* labels when they are short (always for time axes, whose ticks are compact)
|
|
160
|
+
* and thins them so they never overlap; long category labels are angled.
|
|
161
|
+
*/
|
|
162
|
+
export type XAxisLabelMode = 'auto' | 'horizontal' | 'angled';
|
|
157
163
|
export interface ChartDisplayConfig {
|
|
158
164
|
showLegend?: boolean;
|
|
159
165
|
showGrid?: boolean;
|
|
@@ -167,6 +173,7 @@ export interface ChartDisplayConfig {
|
|
|
167
173
|
showSummary?: boolean;
|
|
168
174
|
showPoints?: boolean;
|
|
169
175
|
showAllXLabels?: boolean;
|
|
176
|
+
xAxisLabels?: XAxisLabelMode;
|
|
170
177
|
hideHeader?: boolean;
|
|
171
178
|
innerRadius?: string;
|
|
172
179
|
minBubbleSize?: number;
|
|
@@ -526,6 +533,15 @@ export interface CubeResultSet {
|
|
|
526
533
|
/** Rows the query would return without limit/offset — only when `total: true` was asked for. */
|
|
527
534
|
totalCount?(): number | undefined;
|
|
528
535
|
}
|
|
536
|
+
/**
|
|
537
|
+
* A time window the host applies outside the query (for example on its
|
|
538
|
+
* server), as date-time strings `Date.parse` reads. Only used to pick the
|
|
539
|
+
* granularity when `features.autoGranularity` is on; it does not filter.
|
|
540
|
+
*/
|
|
541
|
+
export interface DateRangeHint {
|
|
542
|
+
from: string;
|
|
543
|
+
to: string;
|
|
544
|
+
}
|
|
529
545
|
export interface AnalyticsPortletProps {
|
|
530
546
|
query: string;
|
|
531
547
|
chartType: ChartType;
|
|
@@ -534,6 +550,14 @@ export interface AnalyticsPortletProps {
|
|
|
534
550
|
dashboardFilters?: DashboardFilter[];
|
|
535
551
|
dashboardFilterMapping?: DashboardFilterMapping;
|
|
536
552
|
eagerLoad?: boolean;
|
|
553
|
+
/**
|
|
554
|
+
* Pick each time dimension's granularity from the span of its date range at
|
|
555
|
+
* query time (features.autoGranularity on dashboards). Only time dimensions
|
|
556
|
+
* with a granularity change; the saved query does not (default: false)
|
|
557
|
+
*/
|
|
558
|
+
autoGranularity?: boolean;
|
|
559
|
+
/** Range auto granularity uses when the query has none (the host applies the window itself) */
|
|
560
|
+
dateRangeHint?: DateRangeHint;
|
|
537
561
|
/**
|
|
538
562
|
* The portlet refreshes on an interval: while scrolled away its queries are
|
|
539
563
|
* disabled, so ticks only mark them stale and it fetches once back in view.
|
|
@@ -666,6 +690,8 @@ export interface AnalyticsDashboardProps {
|
|
|
666
690
|
* `features.portletExpand` shows it.
|
|
667
691
|
*/
|
|
668
692
|
onPortletExpand?: (payload: PortletExpandPayload) => void;
|
|
693
|
+
/** Time window the host applies itself; features.autoGranularity picks granularities from it when a query has no range */
|
|
694
|
+
dateRangeHint?: DateRangeHint;
|
|
669
695
|
}
|
|
670
696
|
/**
|
|
671
697
|
* An export that a chart runs for the Download button of the dashboard card.
|
|
@@ -793,6 +819,10 @@ export interface FeaturesConfig {
|
|
|
793
819
|
refresh?: RefreshFeatureConfig;
|
|
794
820
|
portletExpand?: boolean;
|
|
795
821
|
hiddenChartTypes?: ChartType[];
|
|
822
|
+
desktopMinWidth?: number;
|
|
823
|
+
autoGranularity?: boolean;
|
|
824
|
+
dateRangeFilter?: boolean;
|
|
825
|
+
showDebug?: boolean;
|
|
796
826
|
portletActionOrder?: PortletActionId[];
|
|
797
827
|
}
|
|
798
828
|
export interface GridLayout {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CubeQuery, DateRangeHint, TimeGranularity } from '../types.js';
|
|
2
|
+
export type { DateRangeHint };
|
|
3
|
+
/** The granularity for a span in milliseconds. */
|
|
4
|
+
export declare function granularityForSpan(spanMs: number): TimeGranularity;
|
|
5
|
+
/**
|
|
6
|
+
* Span of a Cube date range: a relative expression (`last 7 days`) or a
|
|
7
|
+
* `[start, end]` pair. A date-only end means the end of that day.
|
|
8
|
+
*/
|
|
9
|
+
export declare function dateRangeSpanMs(dateRange: string | readonly string[] | undefined): number | null;
|
|
10
|
+
/** Span of a host hint, or null when it does not parse. */
|
|
11
|
+
export declare function hintSpanMs(hint: DateRangeHint | undefined): number | null;
|
|
12
|
+
/**
|
|
13
|
+
* Rewrite the granularity of each time dimension that has one, from the span
|
|
14
|
+
* of its effective date range. Time dimensions without a granularity, or
|
|
15
|
+
* without any range to go on, are left alone. Returns the same query object
|
|
16
|
+
* when nothing changes.
|
|
17
|
+
*/
|
|
18
|
+
export declare function applyAutoGranularity(query: CubeQuery, hint?: DateRangeHint): CubeQuery;
|
|
@@ -7,6 +7,7 @@ export * from './pivotUtils.js';
|
|
|
7
7
|
export * from './syntaxHighlighting.js';
|
|
8
8
|
export * from './comparisonUtils.js';
|
|
9
9
|
export * from './gapFilling.js';
|
|
10
|
+
export { applyAutoGranularity, granularityForSpan } from './autoGranularity.js';
|
|
10
11
|
export { captureThumbnail, isThumbnailCaptureAvailable } from './thumbnail.js';
|
|
11
12
|
export { exportPortletToXlsx, isExportAvailable, portletXlsxFilename } from './exportXlsx.js';
|
|
12
13
|
export { createDashboardExport, serializeDashboardExport, parseDashboardExport, readDashboardExportFile, downloadDashboardExport, dashboardExportFilename, normalizeDashboardConfigForExport, } from './dashboardExport.js';
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact tick labels for time-series X axes.
|
|
3
|
+
*
|
|
4
|
+
* Chart rows carry the full time label (`formatTimeValue`, e.g.
|
|
5
|
+
* `2026-11-28 21:00`), which the tooltip keeps showing. Ticks only need the part
|
|
6
|
+
* that changes between neighbours, so this formats them from the query
|
|
7
|
+
* granularity and the span of the data instead:
|
|
8
|
+
*
|
|
9
|
+
* | granularity | single day | across days |
|
|
10
|
+
* |--------------------|------------|------------------------------------------|
|
|
11
|
+
* | minute/hour/second | `21:00` | `28 Nov` at midnight, `28 Nov, 21:00` on |
|
|
12
|
+
* | | | the first tick of any other day, else |
|
|
13
|
+
* | | | `03:00` |
|
|
14
|
+
* | day / week | `28 Nov` | (year added on year change when spanning)|
|
|
15
|
+
* | month | `Nov 2026` on the first tick and in January, else `Nov` |
|
|
16
|
+
* | quarter | `Q4 2026` |
|
|
17
|
+
* | year | `2026` |
|
|
18
|
+
*
|
|
19
|
+
* Dates are formatted in UTC, matching `parseTimestampParts`: the server
|
|
20
|
+
* returns buckets already in the query timezone, so shifting them to the
|
|
21
|
+
* viewer's clock would misplace them. Words come from `Intl.DateTimeFormat`
|
|
22
|
+
* with the viewer's locale.
|
|
23
|
+
*/
|
|
24
|
+
export type TimeAxisGranularity = 'year' | 'quarter' | 'month' | 'week' | 'day' | 'hour' | 'minute' | 'second';
|
|
25
|
+
export interface ParsedTimeLabel {
|
|
26
|
+
date: Date;
|
|
27
|
+
/** The granularity the label's shape implies (week reads as day). */
|
|
28
|
+
shape: TimeAxisGranularity;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Parse an X-axis value back to a UTC date. Accepts the labels
|
|
32
|
+
* `formatTimeValue` produces (`2026`, `2026-Q4`, `2026-11`, `2026-11-28`,
|
|
33
|
+
* `2026-11-28 21:00`) and raw ISO / PostgreSQL timestamps. Returns null for
|
|
34
|
+
* anything else, e.g. a category name.
|
|
35
|
+
*/
|
|
36
|
+
export declare function parseTimeAxisLabel(value: unknown): ParsedTimeLabel | null;
|
|
37
|
+
export interface TimeAxisFormatOptions {
|
|
38
|
+
/** Query granularity of the X-axis time dimension; inferred from the labels when absent. */
|
|
39
|
+
granularity?: string;
|
|
40
|
+
/** BCP 47 locale for month names and the clock (default `en-GB`). */
|
|
41
|
+
locale?: string;
|
|
42
|
+
/** Quarter label, e.g. `(4, '2026') => 'Q4 2026'`. Pass a translated template. */
|
|
43
|
+
formatQuarter?: (quarter: number, year: string) => string;
|
|
44
|
+
}
|
|
45
|
+
/** What the tick formatter needs to know about the whole axis. */
|
|
46
|
+
export interface TimeAxisContext {
|
|
47
|
+
granularity: TimeAxisGranularity;
|
|
48
|
+
/** First and last points fall on different UTC days. */
|
|
49
|
+
spansDays: boolean;
|
|
50
|
+
/** First and last points fall in different years. */
|
|
51
|
+
spansYears: boolean;
|
|
52
|
+
}
|
|
53
|
+
/** Build the axis context from every X value; null when they aren't all times. */
|
|
54
|
+
export declare function buildTimeAxisContext(values: unknown[], granularity?: string): TimeAxisContext | null;
|
|
55
|
+
type Formatters = ReturnType<typeof makeIntlFormatters>;
|
|
56
|
+
declare function makeIntlFormatters(locale: string, withSeconds: boolean): {
|
|
57
|
+
time: Intl.DateTimeFormat;
|
|
58
|
+
dayMonth: Intl.DateTimeFormat;
|
|
59
|
+
dayMonthYear: Intl.DateTimeFormat;
|
|
60
|
+
dayMonthTime: Intl.DateTimeFormat;
|
|
61
|
+
month: Intl.DateTimeFormat;
|
|
62
|
+
monthYear: Intl.DateTimeFormat;
|
|
63
|
+
year: Intl.DateTimeFormat;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Format one tick. `previous` is the tick drawn just before it (null for the
|
|
67
|
+
* first), so the date or year is only repeated where it changes.
|
|
68
|
+
*/
|
|
69
|
+
export declare function formatTimeAxisTick(date: Date, context: TimeAxisContext, previous: Date | null, options?: TimeAxisFormatOptions, formatters?: Formatters): string;
|
|
70
|
+
/**
|
|
71
|
+
* Build a recharts `tickFormatter` for a time X axis, or undefined when the
|
|
72
|
+
* values are not times (a category axis keeps its labels).
|
|
73
|
+
*
|
|
74
|
+
* Recharts calls the formatter once per drawn tick, in order, with the tick's
|
|
75
|
+
* position among the drawn ticks as `index` - so the previous call is the
|
|
76
|
+
* previous visible tick, which is what decides whether the date repeats. Calls
|
|
77
|
+
* out of that sequence (recharts measuring candidate ticks while thinning) fall
|
|
78
|
+
* back to the previous data point.
|
|
79
|
+
*/
|
|
80
|
+
export declare function createTimeAxisTickFormatter(values: unknown[], options?: TimeAxisFormatOptions): ((value: unknown, index: number) => string) | undefined;
|
|
81
|
+
export {};
|
|
@@ -15,6 +15,7 @@ export declare function handleAgentChat(options: {
|
|
|
15
15
|
semanticLayer: SemanticLayerCompiler;
|
|
16
16
|
securityContext: SecurityContext;
|
|
17
17
|
agentConfig: AgentConfig;
|
|
18
|
+
/** API key for a built-in provider; ignored (may be '') when agentConfig.llmProvider is set */
|
|
18
19
|
apiKey: string;
|
|
19
20
|
/** Per-request context appended to the system prompt (e.g. user info, tenant context) */
|
|
20
21
|
systemContext?: string;
|
|
@@ -7,5 +7,5 @@ export { getToolDefinitions, createToolExecutor } from './tools.js';
|
|
|
7
7
|
export type { AgentChartTypeOptions, ToolExecutionResult } from './tools.js';
|
|
8
8
|
export { buildAgentSystemPrompt } from './system-prompt.js';
|
|
9
9
|
export { createProvider } from './providers/index.js';
|
|
10
|
-
export type { LLMProvider, ProviderName } from './providers/index.js';
|
|
10
|
+
export type { LLMProvider, LLMStreamParams, ProviderName, ToolDefinition, InternalMessage, ContentBlock, ToolResult, NormalizedEvent } from './providers/index.js';
|
|
11
11
|
export type { AgentChatRequest, AgentChartType, AgentConfig, AgentObservabilityHooks, AgentSSEEvent, AgentHistoryMessage, AgentHistoryToolCall, PortletBlockData, MarkdownBlockData, DashboardSavedData } from './types.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* LLM Provider exports
|
|
3
3
|
*/
|
|
4
|
-
export type { LLMProvider, ToolDefinition, InternalMessage, ContentBlock, ToolResult, NormalizedEvent } from './types.js';
|
|
4
|
+
export type { LLMProvider, LLMStreamParams, ToolDefinition, InternalMessage, ContentBlock, ToolResult, NormalizedEvent } from './types.js';
|
|
5
5
|
export type { ProviderName } from './factory.js';
|
|
6
6
|
export { createProvider } from './factory.js';
|
|
@@ -71,19 +71,32 @@ export type NormalizedEvent = {
|
|
|
71
71
|
outputTokens?: number;
|
|
72
72
|
stopReason: string;
|
|
73
73
|
};
|
|
74
|
+
/** Parameters for one model call (one turn of the agentic loop). */
|
|
75
|
+
export interface LLMStreamParams {
|
|
76
|
+
model: string;
|
|
77
|
+
maxTokens: number;
|
|
78
|
+
system: string;
|
|
79
|
+
tools: ToolDefinition[];
|
|
80
|
+
/**
|
|
81
|
+
* The conversation so far: `user` messages (string content), `assistant`
|
|
82
|
+
* messages (string or ContentBlock[] with text and tool_use blocks), and
|
|
83
|
+
* whatever this provider's `formatToolResults()` returned, pushed verbatim.
|
|
84
|
+
*/
|
|
85
|
+
messages: InternalMessage[];
|
|
86
|
+
}
|
|
74
87
|
/**
|
|
75
88
|
* The core provider interface.
|
|
76
89
|
* Each LLM provider implements these 7 methods to integrate with the agentic loop.
|
|
90
|
+
*
|
|
91
|
+
* Pass an instance as `AgentConfig.llmProvider` to use a model the built-in
|
|
92
|
+
* providers don't cover. A provider that doesn't stream works too: `createStream`
|
|
93
|
+
* makes the whole call and returns an async iterable yielding the one response,
|
|
94
|
+
* and `parseStreamEvents` emits it as one burst (text_delta, then tool_use_start +
|
|
95
|
+
* tool_use_end with `id` and parsed `input` per tool call, then message_meta).
|
|
77
96
|
*/
|
|
78
97
|
export interface LLMProvider {
|
|
79
98
|
/** Create a streaming API call and return the raw iterable. */
|
|
80
|
-
createStream(params:
|
|
81
|
-
model: string;
|
|
82
|
-
maxTokens: number;
|
|
83
|
-
system: string;
|
|
84
|
-
tools: ToolDefinition[];
|
|
85
|
-
messages: InternalMessage[];
|
|
86
|
-
}): Promise<AsyncIterable<unknown>>;
|
|
99
|
+
createStream(params: LLMStreamParams): Promise<AsyncIterable<unknown>>;
|
|
87
100
|
/** Parse the raw stream into normalized events the handler understands. */
|
|
88
101
|
parseStreamEvents(stream: AsyncIterable<unknown>): AsyncGenerator<NormalizedEvent>;
|
|
89
102
|
/** Convert generic tool definitions to provider-specific format. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChartType, ChartAxisConfig, ChartDisplayConfig, DashboardConfig } from '../../client/types.js';
|
|
2
2
|
import { ChartTypeConfig } from '../../client/charts/chartConfigs.js';
|
|
3
|
+
import { LLMProvider } from './providers/types.js';
|
|
3
4
|
/**
|
|
4
5
|
* A tool call from a prior conversation turn (for history replay)
|
|
5
6
|
*/
|
|
@@ -87,6 +88,14 @@ export interface AgentConfig {
|
|
|
87
88
|
* - 'google': Gemini models via @google/generative-ai
|
|
88
89
|
*/
|
|
89
90
|
provider?: 'anthropic' | 'openai' | 'google';
|
|
91
|
+
/**
|
|
92
|
+
* A provider instance to use instead of the built-in ones. When set it wins over
|
|
93
|
+
* `provider`, `baseURL` and `apiKey`: no API key is required, and the client
|
|
94
|
+
* override headers (X-Agent-Provider, X-Agent-Model, X-Agent-Provider-Endpoint)
|
|
95
|
+
* are ignored. `model` (default '') is passed to its `createStream`.
|
|
96
|
+
* See docs/agent-custom-provider.md.
|
|
97
|
+
*/
|
|
98
|
+
llmProvider?: LLMProvider;
|
|
90
99
|
/**
|
|
91
100
|
* Base URL for OpenAI-compatible providers.
|
|
92
101
|
* Only used when provider is 'openai'. Examples:
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SemanticQuery, QueryResult, SecurityContext, DatabaseExecutor, CubeMetadata, Cube, QueryAnalysis, CacheConfig, ExplainOptions, ExplainResult, ExecutionOptions, RLSSetupFn } from './types/index.js';
|
|
2
2
|
import { QueryValidationResult } from './query-validator.js';
|
|
3
3
|
import { PlanOptimiser } from './logical-plan/index.js';
|
|
4
|
+
import { DatabaseCapabilities } from './adapters/base-adapter.js';
|
|
4
5
|
export { validateQueryAgainstCubes } from './query-validator.js';
|
|
5
6
|
export type { QueryValidationIssue, QueryValidationResult } from './query-validator.js';
|
|
6
7
|
/**
|
|
@@ -70,6 +71,7 @@ export declare class SemanticLayerCompiler {
|
|
|
70
71
|
private cacheConfig?;
|
|
71
72
|
private rlsSetup?;
|
|
72
73
|
private planOptimiser?;
|
|
74
|
+
private capabilityOverrides?;
|
|
73
75
|
private db?;
|
|
74
76
|
private schema?;
|
|
75
77
|
private engineType?;
|
|
@@ -92,6 +94,15 @@ export declare class SemanticLayerCompiler {
|
|
|
92
94
|
* Defaults to a no-op IdentityOptimiser when omitted.
|
|
93
95
|
*/
|
|
94
96
|
planOptimiser?: PlanOptimiser;
|
|
97
|
+
/**
|
|
98
|
+
* Override what the engine adapter reports it supports, for a database that
|
|
99
|
+
* speaks the engine's dialect but not all of it. For example a Postgres-dialect
|
|
100
|
+
* engine without LATERAL: `{ supportsLateralJoins: false,
|
|
101
|
+
* supportsLateralSubqueriesInCTE: false }` makes flow queries with
|
|
102
|
+
* `joinStrategy: 'auto'` (the default) use the window strategy, and rejects
|
|
103
|
+
* an explicit `'lateral'`.
|
|
104
|
+
*/
|
|
105
|
+
databaseCapabilities?: Partial<DatabaseCapabilities>;
|
|
95
106
|
/**
|
|
96
107
|
* Maps a security context to the cube set that serves it — drizzle-cube's
|
|
97
108
|
* equivalent of Cube's `contextToAppId`. Return `undefined` (or omit this
|
|
@@ -5,6 +5,7 @@ import { SemanticLayerCompiler } from './compiler.js';
|
|
|
5
5
|
* Drizzle ORM-first semantic layer with Cube.js compatibility
|
|
6
6
|
*/
|
|
7
7
|
export { SemanticLayerCompiler, BASE_CUBE_SET_ID, SINGLE_TENANT_CONTEXT } from './compiler.js';
|
|
8
|
+
export type { DatabaseCapabilities } from './adapters/base-adapter.js';
|
|
8
9
|
export type { CubeSetRegistrationInfo, CubeSetStats } from './compiler.js';
|
|
9
10
|
export { QueryValidationError } from './query-validator.js';
|
|
10
11
|
export type { QueryValidationIssue, QueryValidationResult } from './query-validator.js';
|
|
@@ -28,7 +29,7 @@ export { MemoryCacheProvider } from './cache-providers/index.js';
|
|
|
28
29
|
export { STEP0_VALIDATION_PROMPT, SYSTEM_PROMPT_TEMPLATE, STEP1_SYSTEM_PROMPT, STEP2_SYSTEM_PROMPT, buildStep0Prompt, buildSystemPrompt, buildStep1Prompt, buildStep2Prompt, EXPLAIN_ANALYSIS_PROMPT, buildExplainAnalysisPrompt, formatCubeSchemaForExplain, formatExistingIndexes } from './prompts/index.js';
|
|
29
30
|
export type { Step0Result, PromptContext, DimensionValues, Step1Result } from './prompts/index.js';
|
|
30
31
|
export { handleAgentChat, getToolDefinitions, createToolExecutor, buildAgentSystemPrompt } from './agent/index.js';
|
|
31
|
-
export type { AgentChatRequest, AgentChartType, AgentChartTypeOptions, AgentConfig, AgentObservabilityHooks, AgentSSEEvent, PortletBlockData, MarkdownBlockData, ToolExecutionResult } from './agent/index.js';
|
|
32
|
+
export type { AgentChatRequest, AgentChartType, AgentChartTypeOptions, AgentConfig, AgentObservabilityHooks, AgentSSEEvent, PortletBlockData, MarkdownBlockData, ToolExecutionResult, AgentHistoryMessage, AgentHistoryToolCall, LLMProvider, LLMStreamParams, ProviderName, ToolDefinition, InternalMessage, ContentBlock, ToolResult, NormalizedEvent } from './agent/index.js';
|
|
32
33
|
export { discoverCubes, findBestFieldMatch, suggestQuery, validateQuery as aiValidateQuery } from './ai/index.js';
|
|
33
34
|
export type { CubeDiscoveryResult, DiscoveryOptions, QuerySuggestion, ValidationResult as AIValidationResult, ValidationError as AIValidationError, ValidationWarning as AIValidationWarning } from './ai/index.js';
|
|
34
35
|
export type * from './types/index.js';
|