drizzle-cube 0.5.8 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/adapters/express/index.cjs +1 -1
- package/dist/adapters/{adapters/express → express}/index.d.ts +3 -3
- package/dist/adapters/express/index.js +50 -50
- package/dist/adapters/fastify/index.cjs +1 -1
- package/dist/adapters/{adapters/fastify → fastify}/index.d.ts +3 -3
- package/dist/adapters/fastify/index.js +78 -78
- package/dist/adapters/google-BOnRIN1w.cjs +2 -0
- package/dist/{server/google-CFYljAOF.js → adapters/google-CvKM9yVM.js} +83 -71
- package/dist/adapters/{handler-Cx8QYLk6.js → handler-CfgE0JSL.js} +499 -576
- package/dist/adapters/handler-Cn0dOctE.cjs +25 -0
- package/dist/adapters/hono/agent-handler.d.ts +9 -0
- package/dist/adapters/hono/index.cjs +2 -2
- package/dist/adapters/{adapters/hono → hono}/index.d.ts +4 -4
- package/dist/adapters/hono/index.js +205 -175
- package/dist/adapters/hono/mcp-handler.d.ts +37 -0
- package/dist/adapters/locale-DDvZDFVn.js +8114 -0
- package/dist/adapters/locale-ZLUUNUxr.cjs +166 -0
- package/dist/adapters/{adapters/locale.d.ts → locale.d.ts} +1 -1
- package/dist/adapters/mcp-tools-handlers.d.ts +18 -0
- package/dist/adapters/mcp-tools.cjs +1 -1
- package/dist/adapters/{adapters/mcp-tools.d.ts → mcp-tools.d.ts} +5 -5
- package/dist/adapters/mcp-tools.js +49 -38
- package/dist/adapters/mcp-transport-B7ddET3M.cjs +40 -0
- package/dist/adapters/mcp-transport-Dfuj4j4q.js +591 -0
- package/dist/adapters/{adapters/mcp-transport.d.ts → mcp-transport.d.ts} +3 -3
- package/dist/adapters/nextjs/index.cjs +1 -1
- package/dist/adapters/{adapters/nextjs → nextjs}/index.d.ts +3 -3
- package/dist/adapters/nextjs/index.js +190 -197
- package/dist/adapters/nextjs/mcp-handler.d.ts +36 -0
- package/dist/adapters/{openai-BZdAA7Ji.js → openai-cDlFSTk6.js} +60 -58
- package/dist/adapters/openai-vXvLni8v.cjs +1 -0
- package/dist/adapters/{adapters/types.d.ts → types.d.ts} +1 -1
- package/dist/adapters/{utils-D9JPLmfl.js → utils-BPWZsX7k.js} +1271 -1218
- package/dist/adapters/utils-_whV4fXL.cjs +128 -0
- package/dist/adapters/utils.cjs +1 -1
- package/dist/adapters/{adapters/utils.d.ts → utils.d.ts} +17 -92
- package/dist/adapters/utils.js +2 -2
- package/dist/cli/index.cjs +2 -2
- package/dist/client/adapters/adapterRegistry.d.ts +2 -2
- package/dist/client/adapters/flowModeAdapter.d.ts +2 -2
- package/dist/client/adapters/funnelModeAdapter.d.ts +2 -2
- package/dist/client/adapters/index.d.ts +9 -9
- package/dist/client/adapters/modeAdapter.d.ts +1 -1
- package/dist/client/adapters/queryModeAdapter.d.ts +3 -3
- package/dist/client/adapters/retentionModeAdapter.d.ts +2 -2
- package/dist/client/charts/ChartLoader.d.ts +3 -17
- package/dist/client/charts/chartComponentRegistry.d.ts +46 -0
- package/dist/client/charts/chartConfigHelpers.d.ts +38 -0
- package/dist/client/charts/chartConfigRegistry.d.ts +1 -1
- package/dist/client/charts/chartPlugin.d.ts +3 -3
- package/dist/client/charts/lazyChartConfigRegistry.d.ts +2 -2
- package/dist/client/charts.d.ts +8 -8
- package/dist/client/charts.js +14 -13
- package/dist/client/chunks/{DashboardEditModal-CjCIAT-J.js → DashboardEditModal-okVfH8ZK.js} +5296 -4544
- package/dist/client/chunks/DashboardEditModal-okVfH8ZK.js.map +1 -0
- package/dist/client/chunks/{RetentionCombinedChart-BPkfcTa8.js → RetentionCombinedChart-BgbDhsPz.js} +10 -10
- package/dist/client/chunks/RetentionCombinedChart-BgbDhsPz.js.map +1 -0
- package/dist/client/chunks/{RetentionHeatmap-DGzLzr7h.js → RetentionHeatmap-DjXZaTPq.js} +5 -5
- package/dist/client/chunks/RetentionHeatmap-DjXZaTPq.js.map +1 -0
- package/dist/client/chunks/analysis-builder-DB88FojM.js +5674 -0
- package/dist/client/chunks/analysis-builder-DB88FojM.js.map +1 -0
- package/dist/client/chunks/{analysis-builder-shared-CYVwSPqt.js → analysis-builder-shared-BVK4TYfR.js} +1578 -1292
- package/dist/client/chunks/analysis-builder-shared-BVK4TYfR.js.map +1 -0
- package/dist/client/chunks/{chart-activity-grid-DmruKPab.js → chart-activity-grid-DX0SJbxs.js} +635 -492
- package/dist/client/chunks/chart-activity-grid-DX0SJbxs.js.map +1 -0
- package/dist/client/chunks/chart-area-of01_62R.js +775 -0
- package/dist/client/chunks/chart-area-of01_62R.js.map +1 -0
- package/dist/client/chunks/chart-bar-BqelQE_I.js +194 -0
- package/dist/client/chunks/chart-bar-BqelQE_I.js.map +1 -0
- package/dist/client/chunks/{chart-box-plot-DYKfyOI8.js → chart-box-plot-kkBixZ27.js} +2 -2
- package/dist/client/chunks/chart-box-plot-kkBixZ27.js.map +1 -0
- package/dist/client/chunks/chart-bubble-B2he1--4.js +221 -0
- package/dist/client/chunks/chart-bubble-B2he1--4.js.map +1 -0
- package/dist/client/chunks/{chart-candlestick-Dwc92Mrj.js → chart-candlestick-DZp19Tzh.js} +2 -2
- package/dist/client/chunks/chart-candlestick-DZp19Tzh.js.map +1 -0
- package/dist/client/chunks/chart-config-activity-grid-D_UX4NHC.js.map +1 -1
- package/dist/client/chunks/chart-config-area-BNigHUy8.js +124 -0
- package/dist/client/chunks/chart-config-area-BNigHUy8.js.map +1 -0
- package/dist/client/chunks/chart-config-bar-DSO_LRTx.js +54 -0
- package/dist/client/chunks/chart-config-bar-DSO_LRTx.js.map +1 -0
- package/dist/client/chunks/{chart-config-box-plot-DJ-dWWXA.js → chart-config-box-plot-oW8axV2q.js} +5 -10
- package/dist/client/chunks/chart-config-box-plot-oW8axV2q.js.map +1 -0
- package/dist/client/chunks/chart-config-bubble-gIoqVyjZ.js.map +1 -1
- package/dist/client/chunks/chart-config-candlestick-N6DchAA3.js.map +1 -1
- package/dist/client/chunks/chart-config-data-table-d7VBY-y_.js.map +1 -1
- package/dist/client/chunks/chart-config-funnel-DEYMcxsD.js.map +1 -1
- package/dist/client/chunks/{chart-config-gauge-DSwC04l0.js → chart-config-gauge-Dq-_H9UN.js} +5 -7
- package/dist/client/chunks/chart-config-gauge-Dq-_H9UN.js.map +1 -0
- package/dist/client/chunks/chart-config-heat-map-CfRnRNcw.js.map +1 -1
- package/dist/client/chunks/{chart-config-kpi-delta-D6BIkHL3.js → chart-config-kpi-delta-DSQbvqu_.js} +5 -10
- package/dist/client/chunks/chart-config-kpi-delta-DSQbvqu_.js.map +1 -0
- package/dist/client/chunks/{chart-config-kpi-number-Bx-V9a62.js → chart-config-kpi-number-EFSWY1We.js} +5 -7
- package/dist/client/chunks/chart-config-kpi-number-EFSWY1We.js.map +1 -0
- package/dist/client/chunks/{chart-config-kpi-text-CcqC1u-8.js → chart-config-kpi-text-KM3V5X2u.js} +5 -7
- package/dist/client/chunks/chart-config-kpi-text-KM3V5X2u.js.map +1 -0
- package/dist/client/chunks/{chart-config-line-Db3jDsWc.js → chart-config-line-D6jG8PCH.js} +9 -36
- package/dist/client/chunks/chart-config-line-D6jG8PCH.js.map +1 -0
- package/dist/client/chunks/chart-config-markdown-BtRIe8JN.js.map +1 -1
- package/dist/client/chunks/chart-config-measure-profile-DxRGa-zf.js.map +1 -1
- package/dist/client/chunks/{chart-config-pie-DD4SmRTF.js → chart-config-pie-BhzW-fdn.js} +6 -16
- package/dist/client/chunks/chart-config-pie-BhzW-fdn.js.map +1 -0
- package/dist/client/chunks/{chart-config-radar-CC2XAaGr.js → chart-config-radar-D7REP1q_.js} +6 -16
- package/dist/client/chunks/chart-config-radar-D7REP1q_.js.map +1 -0
- package/dist/client/chunks/{chart-config-radial-bar-DmxKx1R0.js → chart-config-radial-bar-Byx6qOPU.js} +6 -16
- package/dist/client/chunks/chart-config-radial-bar-Byx6qOPU.js.map +1 -0
- package/dist/client/chunks/chart-config-sankey-BTnWA7EW.js.map +1 -1
- package/dist/client/chunks/chart-config-scatter-DSYTjwRb.js.map +1 -1
- package/dist/client/chunks/chart-config-sunburst-Bwjtdf7X.js.map +1 -1
- package/dist/client/chunks/{chart-config-tree-map-BI-oQStO.js → chart-config-tree-map-DVrvf3yQ.js} +6 -16
- package/dist/client/chunks/chart-config-tree-map-DVrvf3yQ.js.map +1 -0
- package/dist/client/chunks/{chart-config-waterfall-DSnyixbI.js → chart-config-waterfall-DmFeQdIk.js} +5 -10
- package/dist/client/chunks/chart-config-waterfall-DmFeQdIk.js.map +1 -0
- package/dist/client/chunks/{chart-data-table-BO4sXsim.js → chart-data-table-CKauQXme.js} +1046 -1121
- package/dist/client/chunks/chart-data-table-CKauQXme.js.map +1 -0
- package/dist/client/chunks/{chart-funnel-DnWRsmnS.js → chart-funnel-CToKSBaL.js} +184 -222
- package/dist/client/chunks/chart-funnel-CToKSBaL.js.map +1 -0
- package/dist/client/chunks/chart-gauge-DTVezSk7.js +403 -0
- package/dist/client/chunks/chart-gauge-DTVezSk7.js.map +1 -0
- package/dist/client/chunks/chart-heat-map-DTuUl0BR.js +236 -0
- package/dist/client/chunks/chart-heat-map-DTuUl0BR.js.map +1 -0
- package/dist/client/chunks/chart-kpi-delta-Dn-jjO-2.js +408 -0
- package/dist/client/chunks/chart-kpi-delta-Dn-jjO-2.js.map +1 -0
- package/dist/client/chunks/chart-kpi-number-P_WBiO5S.js +244 -0
- package/dist/client/chunks/chart-kpi-number-P_WBiO5S.js.map +1 -0
- package/dist/client/chunks/chart-kpi-text-C-Y4eb5H.js +185 -0
- package/dist/client/chunks/chart-kpi-text-C-Y4eb5H.js.map +1 -0
- package/dist/client/chunks/chart-line-DKgrQA6c.js +101 -0
- package/dist/client/chunks/chart-line-DKgrQA6c.js.map +1 -0
- package/dist/client/chunks/{chart-markdown-dgUetjyM.js → chart-markdown-CV75S_zL.js} +2 -2
- package/dist/client/chunks/chart-markdown-CV75S_zL.js.map +1 -0
- package/dist/client/chunks/{chart-measure-profile-ClfpLs4q.js → chart-measure-profile-Ket8fJyf.js} +7 -7
- package/dist/client/chunks/chart-measure-profile-Ket8fJyf.js.map +1 -0
- package/dist/client/chunks/chart-pie-ByieAX5H.js +119 -0
- package/dist/client/chunks/chart-pie-ByieAX5H.js.map +1 -0
- package/dist/client/chunks/chart-radar-CiSwHWp4.js +138 -0
- package/dist/client/chunks/chart-radar-CiSwHWp4.js.map +1 -0
- package/dist/client/chunks/chart-radial-bar-BF6Mhl6f.js +122 -0
- package/dist/client/chunks/chart-radial-bar-BF6Mhl6f.js.map +1 -0
- package/dist/client/chunks/{chart-sankey-M3XpO_ah.js → chart-sankey-DjrvKw6K.js} +36 -39
- package/dist/client/chunks/chart-sankey-DjrvKw6K.js.map +1 -0
- package/dist/client/chunks/chart-scatter-Dd9WFqnS.js +258 -0
- package/dist/client/chunks/chart-scatter-Dd9WFqnS.js.map +1 -0
- package/dist/client/chunks/{chart-sunburst-A_u6lqlS.js → chart-sunburst-leGpuDj7.js} +3 -3
- package/dist/client/chunks/chart-sunburst-leGpuDj7.js.map +1 -0
- package/dist/client/chunks/chart-tree-map-Ceq5sLZA.js +323 -0
- package/dist/client/chunks/chart-tree-map-Ceq5sLZA.js.map +1 -0
- package/dist/client/chunks/{chart-waterfall-BuhMoagf.js → chart-waterfall-DyvQReN5.js} +7 -7
- package/dist/client/chunks/chart-waterfall-DyvQReN5.js.map +1 -0
- package/dist/client/chunks/{charts-core-jRtb0S2M.js → charts-core-DaXSt1Dd.js} +2 -2
- package/dist/client/chunks/charts-core-DaXSt1Dd.js.map +1 -0
- package/dist/client/chunks/charts-loader-DdTeCeNo.js +84 -0
- package/dist/client/chunks/charts-loader-DdTeCeNo.js.map +1 -0
- package/dist/client/chunks/{nl-NL-CpVs7ox3.js → nl-NL-2zTAWTej.js} +2 -1
- package/dist/client/chunks/{nl-NL-CpVs7ox3.js.map → nl-NL-2zTAWTej.js.map} +1 -1
- package/dist/client/chunks/retention-ChW9jYdy.js.map +1 -1
- package/dist/client/chunks/{schema-visualization-DE09kQE3.js → schema-visualization-Cb_E9_Gd.js} +12 -12
- package/dist/client/chunks/schema-visualization-Cb_E9_Gd.js.map +1 -0
- package/dist/client/chunks/{useDirtyStateTracking-CoeQbprt.js → useDirtyStateTracking-MbpxH_v6.js} +95 -84
- package/dist/client/chunks/useDirtyStateTracking-MbpxH_v6.js.map +1 -0
- package/dist/client/chunks/{useExplainAI-DlnXWdmz.js → useExplainAI-evnZkjCY.js} +14 -14
- package/dist/client/chunks/useExplainAI-evnZkjCY.js.map +1 -0
- package/dist/client/chunks/{utils-CTKNaXS8.js → utils-3P6z1vz5.js} +2 -2
- package/dist/client/chunks/utils-3P6z1vz5.js.map +1 -0
- package/dist/client/chunks/{vendor-CPIYyeuD.js → vendor-DSpR0IW6.js} +43 -43
- package/dist/client/chunks/{vendor-CPIYyeuD.js.map → vendor-DSpR0IW6.js.map} +1 -1
- package/dist/client/client/BatchCoordinator.d.ts +1 -1
- package/dist/client/client/CubeClient.d.ts +1 -1
- package/dist/client/components/AIAssistant/index.d.ts +3 -3
- package/dist/client/components/AIAssistant/utils.d.ts +1 -1
- package/dist/client/components/AgenticNotebook/ChatMessage.d.ts +1 -1
- package/dist/client/components/AgenticNotebook/NotebookCanvas.d.ts +1 -1
- package/dist/client/components/AgenticNotebook/NotebookMarkdownBlock.d.ts +1 -1
- package/dist/client/components/AgenticNotebook/NotebookPortletBlock.d.ts +2 -2
- package/dist/client/components/AgenticNotebook/agentChatParts.d.ts +34 -0
- package/dist/client/components/AgenticNotebook/chatMessageParts.d.ts +39 -0
- package/dist/client/components/AgenticNotebook/index.d.ts +2 -2
- package/dist/client/components/AgenticNotebook/useAgentChatController.d.ts +25 -0
- package/dist/client/components/AgenticNotebook/useNotebookAutosave.d.ts +12 -0
- package/dist/client/components/AnalysisBuilder/AnalysisAxisDropZone.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/AnalysisChartConfigPanel.d.ts +4 -4
- package/dist/client/components/AnalysisBuilder/AnalysisDisplayConfigPanel.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/AnalysisFilterGroup.d.ts +2 -2
- package/dist/client/components/AnalysisBuilder/AnalysisFilterItem.d.ts +2 -2
- package/dist/client/components/AnalysisBuilder/AnalysisFilterSection.d.ts +2 -2
- package/dist/client/components/AnalysisBuilder/AnalysisModeErrorBoundary.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/AnalysisQueryPanel.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/AnalysisQueryPanelParts.d.ts +64 -0
- package/dist/client/components/AnalysisBuilder/AnalysisResultsHeader.d.ts +67 -0
- package/dist/client/components/AnalysisBuilder/AnalysisResultsPanel.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/AnalysisTypeSelector.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/BreakdownComparisonToggle.d.ts +13 -0
- package/dist/client/components/AnalysisBuilder/BreakdownItemCard.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/BreakdownRow.d.ts +26 -0
- package/dist/client/components/AnalysisBuilder/BreakdownSection.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/DisplayOptionControl.d.ts +10 -0
- package/dist/client/components/AnalysisBuilder/ExecutionPlanPanel.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/ExecutionPlanPanelParts.d.ts +22 -0
- package/dist/client/components/AnalysisBuilder/ExplainAIPanel.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/FieldDetailPanel.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/FieldSearchItem.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/FieldSearchModal.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/FieldSearchResults.d.ts +16 -0
- package/dist/client/components/AnalysisBuilder/FilterConfigModal.d.ts +2 -2
- package/dist/client/components/AnalysisBuilder/FilterValueInput.d.ts +63 -0
- package/dist/client/components/AnalysisBuilder/FlowConfigPanel.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/FlowDepthControls.d.ts +10 -0
- package/dist/client/components/AnalysisBuilder/FlowModeContent.d.ts +3 -3
- package/dist/client/components/AnalysisBuilder/FlowVisualizationPicker.d.ts +7 -0
- package/dist/client/components/AnalysisBuilder/FunnelBindingKeySelector.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/FunnelConfigPanel.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/FunnelModeContent.d.ts +2 -2
- package/dist/client/components/AnalysisBuilder/FunnelStepCard.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/FunnelStepList.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/LegacyBooleanOptions.d.ts +8 -0
- package/dist/client/components/AnalysisBuilder/MetricItemCard.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/MetricRow.d.ts +23 -0
- package/dist/client/components/AnalysisBuilder/MetricsSection.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/RetentionConfigPanel.d.ts +2 -2
- package/dist/client/components/AnalysisBuilder/RetentionModeContent.d.ts +3 -3
- package/dist/client/components/AnalysisBuilder/SortToggleButton.d.ts +13 -0
- package/dist/client/components/AnalysisBuilder/StringArrayInput.d.ts +17 -0
- package/dist/client/components/AnalysisBuilder/filterConfigModalUtils.d.ts +30 -0
- package/dist/client/components/AnalysisBuilder/hooks/useAnalysisBuilderImperativeHandle.d.ts +13 -0
- package/dist/client/components/AnalysisBuilder/hooks/useDragReorder.d.ts +25 -0
- package/dist/client/components/AnalysisBuilder/hooks/useFieldSearchKeyboard.d.ts +11 -0
- package/dist/client/components/AnalysisBuilder/index.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/types.d.ts +28 -28
- package/dist/client/components/AnalysisBuilder/utils/axisConfigUtils.d.ts +23 -0
- package/dist/client/components/AnalysisBuilder/utils/executionPlanMarkdown.d.ts +8 -0
- package/dist/client/components/AnalysisBuilder/utils/fieldUtils.d.ts +7 -2
- package/dist/client/components/AnalysisBuilder/utils/filterUtils.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/utils/index.d.ts +6 -6
- package/dist/client/components/AnalysisBuilder/utils/queryUtils.d.ts +2 -2
- package/dist/client/components/AnalysisBuilder/utils/recentFieldsUtils.d.ts +2 -2
- package/dist/client/components/AnalysisBuilder/utils/resultsPanelDerive.d.ts +68 -0
- package/dist/client/components/AnalysisBuilder/utils/shareStateUtils.d.ts +68 -0
- package/dist/client/components/AnalysisBuilder/utils/sortUtils.d.ts +7 -0
- package/dist/client/components/AnalysisBuilder/utils/storageUtils.d.ts +2 -2
- package/dist/client/components/AnalysisBuilderLazy.d.ts +1 -1
- package/dist/client/components/AnalyticsDashboard.d.ts +1 -1
- package/dist/client/components/AnalyticsPortlet.d.ts +1 -1
- package/dist/client/components/ChartTypeSelector.d.ts +2 -2
- package/dist/client/components/DashboardFilterPanel.d.ts +1 -1
- package/dist/client/components/DashboardFilters/CompactFilterBar.d.ts +1 -1
- package/dist/client/components/DashboardFilters/CompactFilterBarParts.d.ts +26 -0
- package/dist/client/components/DashboardFilters/DashboardFilterConfigModal.d.ts +2 -2
- package/dist/client/components/DashboardFilters/DashboardFilterConfigModalParts.d.ts +27 -0
- package/dist/client/components/DashboardFilters/DashboardFilterItem.d.ts +2 -2
- package/dist/client/components/DashboardFilters/DashboardFilterValueInput.d.ts +39 -0
- package/dist/client/components/DashboardFilters/EditModeFilterList.d.ts +1 -1
- package/dist/client/components/DashboardFilters/FilterChip.d.ts +1 -1
- package/dist/client/components/DashboardFilters/FilterEditModal.d.ts +2 -2
- package/dist/client/components/DashboardFilters/FilterValuePopover.d.ts +1 -1
- package/dist/client/components/DashboardFilters/ReadOnlyFilterList.d.ts +2 -2
- package/dist/client/components/DashboardFilters/dashboardFilterConfigModalUtils.d.ts +21 -0
- package/dist/client/components/DashboardFilters/useCompactFilterBar.d.ts +19 -0
- package/dist/client/components/DashboardFilters/useDashboardFilterConfigModal.d.ts +69 -0
- package/dist/client/components/DashboardFilters/useDateRangeState.d.ts +19 -0
- package/dist/client/components/DashboardFilters/useFilterDropdowns.d.ts +21 -0
- package/dist/client/components/DashboardFilters/useFilterValueFetch.d.ts +23 -0
- package/dist/client/components/DashboardGrid.d.ts +2 -2
- package/dist/client/components/DashboardPortletCard.d.ts +2 -57
- package/dist/client/components/DebugModal.d.ts +2 -2
- package/dist/client/components/DrillBreadcrumb.d.ts +1 -1
- package/dist/client/components/DrillMenu.d.ts +1 -1
- package/dist/client/components/FloatingEditToolbar.d.ts +1 -1
- package/dist/client/components/MobileStackedLayout.d.ts +2 -2
- package/dist/client/components/PortletAnalysisModal.d.ts +1 -1
- package/dist/client/components/PortletContainer.d.ts +1 -1
- package/dist/client/components/PortletFilterConfigModal.d.ts +1 -1
- package/dist/client/components/RowManagedLayout.d.ts +1 -1
- package/dist/client/components/SchemaVisualization/CubeNode.d.ts +1 -1
- package/dist/client/components/SchemaVisualization/FieldDetailPanel.d.ts +1 -1
- package/dist/client/components/SchemaVisualization/RelationshipEdge.d.ts +1 -1
- package/dist/client/components/SchemaVisualization/SchemaVisualizationLazy.d.ts +1 -1
- package/dist/client/components/TextPortletModal.d.ts +2 -2
- package/dist/client/components/analyticsPortlet/PortletChart.d.ts +31 -0
- package/dist/client/components/analyticsPortlet/PortletChartView.d.ts +35 -0
- package/dist/client/components/analyticsPortlet/PortletStates.d.ts +65 -0
- package/dist/client/components/analyticsPortlet/parsePortletQuery.d.ts +22 -0
- package/dist/client/components/analyticsPortlet/portletRenderState.d.ts +31 -0
- package/dist/client/components/analyticsPortlet/usePortletDebugData.d.ts +37 -0
- package/dist/client/components/analyticsPortlet/usePortletDrillState.d.ts +17 -0
- package/dist/client/components/analyticsPortlet/usePortletQueryResults.d.ts +37 -0
- package/dist/client/components/charts/ActivityGridChart.config.d.ts +1 -1
- package/dist/client/components/charts/ActivityGridChart.d.ts +1 -1
- package/dist/client/components/charts/ActivityGridChart.helpers.d.ts +33 -0
- package/dist/client/components/charts/ActivityGridChart.render.d.ts +31 -0
- package/dist/client/components/charts/AreaChart.config.d.ts +1 -1
- package/dist/client/components/charts/AreaChart.d.ts +1 -1
- package/dist/client/components/charts/AxisFormatControls.d.ts +4 -2
- package/dist/client/components/charts/BarChart.config.d.ts +1 -1
- package/dist/client/components/charts/BarChart.d.ts +1 -1
- package/dist/client/components/charts/BarChart.helpers.d.ts +23 -0
- package/dist/client/components/charts/BarSeries.d.ts +29 -0
- package/dist/client/components/charts/BoxPlotChart.config.d.ts +1 -1
- package/dist/client/components/charts/BoxPlotChart.d.ts +1 -1
- package/dist/client/components/charts/BubbleChart.config.d.ts +1 -1
- package/dist/client/components/charts/BubbleChart.d.ts +1 -1
- package/dist/client/components/charts/BubbleChart.helpers.d.ts +43 -0
- package/dist/client/components/charts/BubbleChart.render.d.ts +21 -0
- package/dist/client/components/charts/CandlestickChart.config.d.ts +1 -1
- package/dist/client/components/charts/CandlestickChart.d.ts +1 -1
- package/dist/client/components/charts/ChartStates.d.ts +38 -0
- package/dist/client/components/charts/DataTable.config.d.ts +1 -1
- package/dist/client/components/charts/DataTable.d.ts +1 -1
- package/dist/client/components/charts/FunnelChart.config.d.ts +1 -1
- package/dist/client/components/charts/FunnelChart.d.ts +1 -1
- package/dist/client/components/charts/FunnelChart.helpers.d.ts +25 -0
- package/dist/client/components/charts/FunnelViews.d.ts +16 -0
- package/dist/client/components/charts/GaugeChart.config.d.ts +1 -1
- package/dist/client/components/charts/GaugeChart.d.ts +1 -1
- package/dist/client/components/charts/HeatMapCanvas.d.ts +25 -0
- package/dist/client/components/charts/HeatMapChart.config.d.ts +1 -1
- package/dist/client/components/charts/HeatMapChart.d.ts +1 -1
- package/dist/client/components/charts/HeatMapChart.helpers.d.ts +64 -0
- package/dist/client/components/charts/KpiDelta.config.d.ts +1 -1
- package/dist/client/components/charts/KpiDelta.d.ts +1 -1
- package/dist/client/components/charts/KpiDelta.helpers.d.ts +20 -0
- package/dist/client/components/charts/KpiNumber.config.d.ts +1 -1
- package/dist/client/components/charts/KpiNumber.d.ts +1 -1
- package/dist/client/components/charts/KpiNumber.helpers.d.ts +30 -0
- package/dist/client/components/charts/KpiStates.d.ts +19 -0
- package/dist/client/components/charts/KpiText.config.d.ts +1 -1
- package/dist/client/components/charts/KpiText.d.ts +1 -1
- package/dist/client/components/charts/LineChart.config.d.ts +1 -1
- package/dist/client/components/charts/LineChart.d.ts +1 -1
- package/dist/client/components/charts/MarkdownChart.config.d.ts +1 -1
- package/dist/client/components/charts/MarkdownChart.d.ts +1 -1
- package/dist/client/components/charts/MeasureProfileChart.config.d.ts +1 -1
- package/dist/client/components/charts/MeasureProfileChart.d.ts +1 -1
- package/dist/client/components/charts/PieChart.config.d.ts +1 -1
- package/dist/client/components/charts/PieChart.d.ts +1 -1
- package/dist/client/components/charts/RadarChart.config.d.ts +1 -1
- package/dist/client/components/charts/RadarChart.d.ts +1 -1
- package/dist/client/components/charts/RadialBarChart.config.d.ts +1 -1
- package/dist/client/components/charts/RadialBarChart.d.ts +1 -1
- package/dist/client/components/charts/RetentionCombinedChart.config.d.ts +1 -1
- package/dist/client/components/charts/RetentionCombinedChart.d.ts +1 -1
- package/dist/client/components/charts/RetentionHeatmap.config.d.ts +1 -1
- package/dist/client/components/charts/RetentionHeatmap.d.ts +1 -1
- package/dist/client/components/charts/SankeyChart.config.d.ts +1 -1
- package/dist/client/components/charts/SankeyChart.d.ts +1 -1
- package/dist/client/components/charts/ScatterChart.config.d.ts +1 -1
- package/dist/client/components/charts/ScatterChart.d.ts +1 -1
- package/dist/client/components/charts/ScatterChart.helpers.d.ts +43 -0
- package/dist/client/components/charts/ScatterSeries.d.ts +17 -0
- package/dist/client/components/charts/ScatterTooltip.d.ts +21 -0
- package/dist/client/components/charts/SunburstChart.config.d.ts +1 -1
- package/dist/client/components/charts/SunburstChart.d.ts +1 -1
- package/dist/client/components/charts/TreeMapChart.config.d.ts +1 -1
- package/dist/client/components/charts/TreeMapChart.d.ts +1 -1
- package/dist/client/components/charts/TreeMapChart.helpers.d.ts +37 -0
- package/dist/client/components/charts/TreeMapContent.d.ts +24 -0
- package/dist/client/components/charts/TreeMapLegend.d.ts +13 -0
- package/dist/client/components/charts/WaterfallChart.config.d.ts +1 -1
- package/dist/client/components/charts/WaterfallChart.d.ts +1 -1
- package/dist/client/components/charts/cartesianChartHelpers.d.ts +126 -0
- package/dist/client/components/charts/chartAxisResolution.d.ts +32 -0
- package/dist/client/components/charts/chartScaffolding.d.ts +77 -0
- package/dist/client/components/charts/gaugeChartHelpers.d.ts +36 -0
- package/dist/client/components/charts/index.d.ts +21 -21
- package/dist/client/components/charts/kpiTextHelpers.d.ts +46 -0
- package/dist/client/components/charts/radarChartHelpers.d.ts +14 -0
- package/dist/client/components/charts/radialBarChartHelpers.d.ts +22 -0
- package/dist/client/components/charts/useChartDimensions.d.ts +20 -0
- package/dist/client/components/charts/useKpiDimensions.d.ts +30 -0
- package/dist/client/components/dashboard/DashboardContext.d.ts +6 -6
- package/dist/client/components/dashboard/DashboardCoordinator.d.ts +1 -1
- package/dist/client/components/dashboard/DashboardEditBar.d.ts +5 -0
- package/dist/client/components/dashboard/DashboardProvider.d.ts +1 -1
- package/dist/client/components/dashboard/LayoutModeToggle.d.ts +10 -0
- package/dist/client/components/dashboard/dashboardGridUtils.d.ts +1 -1
- package/dist/client/components/dashboard/index.d.ts +7 -7
- package/dist/client/components/dashboardPortletCard/FilterFieldChip.d.ts +12 -0
- package/dist/client/components/dashboardPortletCard/PortletCardHeader.d.ts +43 -0
- package/dist/client/components/dashboardPortletCard/cardStyles.d.ts +33 -0
- package/dist/client/components/dashboardPortletCard/filterField.d.ts +12 -0
- package/dist/client/components/dashboardPortletCard/propsEqual.d.ts +55 -0
- package/dist/client/components/dashboardPortletCard/usePortletCardActions.d.ts +16 -0
- package/dist/client/components/portletAnalysisModal/saveValidation.d.ts +8 -0
- package/dist/client/components/shared/DateRangeFilter.d.ts +1 -1
- package/dist/client/components/shared/FilterBuilder.d.ts +1 -1
- package/dist/client/components/shared/FilterGroup.d.ts +1 -1
- package/dist/client/components/shared/FilterItem.d.ts +1 -1
- package/dist/client/components/shared/FilterValueSelector.d.ts +1 -1
- package/dist/client/components/shared/dateRangeUtils.d.ts +40 -0
- package/dist/client/components/shared/filterDisplayUtils.d.ts +10 -0
- package/dist/client/components/shared/filterItem/FilterDateRangeSelector.d.ts +17 -0
- package/dist/client/components/shared/filterItem/FilterFieldDropdown.d.ts +16 -0
- package/dist/client/components/shared/filterItem/dateRangeSync.d.ts +14 -0
- package/dist/client/components/shared/filterItem/fieldVisuals.d.ts +5 -0
- package/dist/client/components/shared/filterValueSelector/FilterValueInputs.d.ts +55 -0
- package/dist/client/components/shared/filterValueSelector/useFilterValueSelectorState.d.ts +25 -0
- package/dist/client/components/shared/queryFieldUtils.d.ts +21 -0
- package/dist/client/components/shared/types.d.ts +8 -8
- package/dist/client/components/shared/utils.d.ts +7 -46
- package/dist/client/components.d.ts +11 -11
- package/dist/client/components.js +3 -3
- package/dist/client/hooks/agentChatStream.d.ts +39 -0
- package/dist/client/hooks/analysisQueryExecutionModes.d.ts +133 -0
- package/dist/client/hooks/dashboard/layoutUtils.d.ts +1 -1
- package/dist/client/hooks/dashboard/useDashboardController.d.ts +2 -2
- package/dist/client/hooks/dashboard/useGridLayoutEngine.d.ts +1 -1
- package/dist/client/hooks/dashboard/useRowLayoutEngine.d.ts +1 -1
- package/dist/client/hooks/drillNavigation.d.ts +25 -0
- package/dist/client/hooks/queries/index.d.ts +9 -9
- package/dist/client/hooks/queries/useCubeLoadQuery.d.ts +2 -2
- package/dist/client/hooks/queries/useCubeMetaQuery.d.ts +2 -2
- package/dist/client/hooks/queries/useDryRunQuery.d.ts +2 -2
- package/dist/client/hooks/queries/useExplainAI.d.ts +1 -1
- package/dist/client/hooks/queries/useExplainQuery.d.ts +1 -1
- package/dist/client/hooks/queries/useFlowQuery.d.ts +1 -1
- package/dist/client/hooks/queries/useFunnelQuery.d.ts +1 -1
- package/dist/client/hooks/queries/useMultiCubeLoadQuery.d.ts +1 -1
- package/dist/client/hooks/queries/useRetentionQuery.d.ts +1 -1
- package/dist/client/hooks/useAgentChat.d.ts +1 -1
- package/dist/client/hooks/useAnalysisAI.d.ts +4 -4
- package/dist/client/hooks/useAnalysisBuilderHook.d.ts +27 -27
- package/dist/client/hooks/useAnalysisChartDefaults.d.ts +4 -4
- package/dist/client/hooks/useAnalysisCombinedFields.d.ts +2 -2
- package/dist/client/hooks/useAnalysisInitialization.d.ts +1 -1
- package/dist/client/hooks/useAnalysisQueryBuilder.d.ts +3 -3
- package/dist/client/hooks/useAnalysisQueryExecution.d.ts +7 -7
- package/dist/client/hooks/useAnalysisShare.d.ts +1 -1
- package/dist/client/hooks/useAnalysisUIState.d.ts +2 -2
- package/dist/client/hooks/useDashboardHook.d.ts +2 -2
- package/dist/client/hooks/useDataBrowser.d.ts +5 -5
- package/dist/client/hooks/useDrillInteraction.d.ts +1 -1
- package/dist/client/hooks/useTheme.d.ts +1 -1
- package/dist/client/hooks/useTranslation.d.ts +1 -1
- package/dist/client/hooks.d.ts +11 -11
- package/dist/client/hooks.js +3 -3
- package/dist/client/icons/defaultIcons.d.ts +1 -1
- package/dist/client/icons/index.d.ts +3 -3
- package/dist/client/icons/registry.d.ts +1 -1
- package/dist/client/icons.js +2 -2
- package/dist/client/index.d.ts +74 -74
- package/dist/client/index.js +816 -669
- package/dist/client/index.js.map +1 -1
- package/dist/client/providers/CubeApiProvider.d.ts +3 -3
- package/dist/client/providers/CubeFeaturesProvider.d.ts +1 -1
- package/dist/client/providers/CubeMetaContext.d.ts +1 -1
- package/dist/client/providers/CubeProvider.d.ts +7 -7
- package/dist/client/providers/I18nProvider.d.ts +1 -1
- package/dist/client/providers.d.ts +4 -4
- package/dist/client/providers.js +3 -3
- package/dist/client/schema.d.ts +2 -2
- package/dist/client/schema.js +1 -1
- package/dist/client/shared/chartConfigBuilders.d.ts +18 -0
- package/dist/client/shared/chartDefaults.d.ts +4 -4
- package/dist/client/shared/components/QueryAnalysisPanel.d.ts +1 -1
- package/dist/client/shared/components/QueryAnalysisPanel.sections.d.ts +41 -0
- package/dist/client/shared/index.d.ts +7 -7
- package/dist/client/shared/queryTransforms.d.ts +20 -0
- package/dist/client/shared/types.d.ts +1 -1
- package/dist/client/shared/utils.d.ts +4 -6
- package/dist/client/stores/analysisBuilderStore.d.ts +9 -9
- package/dist/client/stores/dashboardStore.d.ts +3 -3
- package/dist/client/stores/dataBrowserStore.d.ts +1 -1
- package/dist/client/stores/notebookStore.d.ts +1 -1
- package/dist/client/stores/optionsToAnalysisConfig.d.ts +17 -0
- package/dist/client/stores/slices/coreSlice.d.ts +3 -3
- package/dist/client/stores/slices/flowSlice.d.ts +3 -3
- package/dist/client/stores/slices/funnelSlice.d.ts +3 -3
- package/dist/client/stores/slices/index.d.ts +7 -7
- package/dist/client/stores/slices/querySlice.d.ts +3 -3
- package/dist/client/stores/slices/retentionSlice.d.ts +3 -3
- package/dist/client/stores/slices/uiSlice.d.ts +2 -2
- package/dist/client/styles.css +1 -1
- package/dist/client/types/analysisConfig.d.ts +4 -4
- package/dist/client/types/drill.d.ts +5 -5
- package/dist/client/types/flow.d.ts +2 -2
- package/dist/client/types/funnel.d.ts +1 -1
- package/dist/client/types/retention.d.ts +2 -2
- package/dist/client/types.d.ts +12 -12
- package/dist/client/utils/axisValueFormatting.d.ts +32 -0
- package/dist/client/utils/chartUtils.d.ts +1 -1
- package/dist/client/utils/configMigration.d.ts +2 -2
- package/dist/client/utils/drillQueryBuilder.d.ts +2 -2
- package/dist/client/utils/exportXlsx.d.ts +2 -2
- package/dist/client/utils/filterUtils.d.ts +1 -1
- package/dist/client/utils/funnelExecution.d.ts +2 -2
- package/dist/client/utils/funnelValidation.d.ts +2 -2
- package/dist/client/utils/index.d.ts +10 -10
- package/dist/client/utils/joinReachability.d.ts +1 -1
- package/dist/client/utils/multiQueryUtils.d.ts +1 -1
- package/dist/client/utils/multiQueryValidation.d.ts +1 -1
- package/dist/client/utils/pivotUtils.d.ts +1 -1
- package/dist/client/utils/shareUtils.d.ts +1 -1
- package/dist/client/utils/thumbnail.d.ts +1 -1
- package/dist/client/utils/timeValueFormatting.d.ts +32 -0
- package/dist/client/utils.d.ts +2 -2
- package/dist/client/utils.js +6 -6
- package/dist/client-bundle-stats.html +1 -1
- package/dist/mcp-app/mcp-app.html +55 -55
- package/dist/server/{server/adapters → adapters}/base-adapter.d.ts +81 -36
- package/dist/server/adapters/databend-adapter.d.ts +63 -0
- package/dist/server/{server/adapters → adapters}/duckdb-adapter.d.ts +6 -60
- package/dist/server/adapters/mysql-adapter.d.ts +65 -0
- package/dist/server/adapters/postgres-adapter.d.ts +55 -0
- package/dist/server/{server/adapters → adapters}/singlestore-adapter.d.ts +1 -1
- package/dist/server/adapters/snowflake-adapter.d.ts +53 -0
- package/dist/server/{server/adapters → adapters}/sqlite-adapter.d.ts +13 -33
- package/dist/server/adapters/window-function-builder.d.ts +11 -0
- package/dist/server/{server/agent → agent}/chart-validation.d.ts +0 -5
- package/dist/server/agent/handler-steps.d.ts +37 -0
- package/dist/server/{server/agent → agent}/handler.d.ts +3 -3
- package/dist/server/agent/index.d.ts +11 -0
- package/dist/server/{server/agent → agent}/providers/anthropic.d.ts +1 -1
- package/dist/server/{server/agent → agent}/providers/factory.d.ts +1 -1
- package/dist/server/{server/agent → agent}/providers/google.d.ts +1 -1
- package/dist/server/agent/providers/index.d.ts +6 -0
- package/dist/server/{server/agent → agent}/providers/openai.d.ts +1 -1
- package/dist/server/{server/agent → agent}/system-prompt.d.ts +1 -1
- package/dist/server/{server/agent → agent}/tools.d.ts +4 -4
- package/dist/server/{server/agent → agent}/types.d.ts +1 -1
- package/dist/server/ai/discovery-helpers.d.ts +29 -0
- package/dist/server/{server/ai → ai}/discovery.d.ts +6 -2
- package/dist/server/{server/ai → ai}/index.d.ts +6 -6
- package/dist/server/ai/suggestion-helpers.d.ts +33 -0
- package/dist/server/{server/ai → ai}/suggestion.d.ts +2 -5
- package/dist/server/ai/validation-helpers.d.ts +21 -0
- package/dist/server/{server/ai → ai}/validation.d.ts +2 -5
- package/dist/server/builders/analysis-utils.d.ts +106 -0
- package/dist/server/{server/builders → builders}/comparison-query-builder.d.ts +2 -2
- package/dist/server/{server/builders → builders}/cte-builder.d.ts +48 -2
- package/dist/server/{server/builders → builders}/date-time-builder.d.ts +7 -2
- package/dist/server/builders/date-time-helpers.d.ts +34 -0
- package/dist/server/{server/builders → builders}/filter-builder.d.ts +5 -3
- package/dist/server/builders/filter-operators.d.ts +23 -0
- package/dist/server/builders/flow-query-builder.d.ts +136 -0
- package/dist/server/{server/builders → builders}/funnel-query-builder.d.ts +18 -7
- package/dist/server/{server/builders → builders}/group-by-builder.d.ts +13 -2
- package/dist/server/builders/index.d.ts +13 -0
- package/dist/server/{server/builders → builders}/measure-builder.d.ts +46 -3
- package/dist/server/{server/builders → builders}/retention-query-builder.d.ts +14 -16
- package/dist/server/cache-providers/index.d.ts +5 -0
- package/dist/server/{server/cache-providers → cache-providers}/memory.d.ts +1 -1
- package/dist/server/{server/cache-utils.d.ts → cache-utils.d.ts} +26 -6
- package/dist/server/compiler-metadata.d.ts +11 -0
- package/dist/server/{server/compiler.d.ts → compiler.d.ts} +9 -15
- package/dist/server/{server/cube-utils.d.ts → cube-utils.d.ts} +29 -4
- package/dist/server/{server/database-utils.d.ts → database-utils.d.ts} +1 -1
- package/dist/server/execution/annotation-builder.d.ts +12 -0
- package/dist/server/execution/filter-cache-preloader.d.ts +19 -0
- package/dist/server/execution/mode-router.d.ts +25 -0
- package/dist/server/execution/query-result-cache.d.ts +21 -0
- package/dist/server/execution/result-post-processor.d.ts +10 -0
- package/dist/server/{server/executor.d.ts → executor.d.ts} +35 -32
- package/dist/server/{server/executors → executors}/base-executor.d.ts +2 -2
- package/dist/server/{server/executors → executors}/databend-executor.d.ts +2 -2
- package/dist/server/{server/executors → executors}/duckdb-executor.d.ts +2 -2
- package/dist/server/executors/explain-utils.d.ts +28 -0
- package/dist/server/{server/executors → executors}/index.d.ts +9 -9
- package/dist/server/{server/executors → executors}/mysql-executor.d.ts +2 -2
- package/dist/server/{server/executors → executors}/postgres-executor.d.ts +2 -2
- package/dist/server/{server/executors → executors}/singlestore-executor.d.ts +2 -2
- package/dist/server/{server/executors → executors}/snowflake-executor.d.ts +2 -2
- package/dist/server/{server/executors → executors}/sqlite-executor.d.ts +2 -2
- package/dist/server/{server/explain → explain}/databend-parser.d.ts +1 -1
- package/dist/server/{server/explain → explain}/duckdb-parser.d.ts +1 -1
- package/dist/server/explain/explain-tree.d.ts +20 -0
- package/dist/server/explain/index.d.ts +9 -0
- package/dist/server/{server/explain → explain}/mysql-parser.d.ts +1 -1
- package/dist/server/{server/explain → explain}/postgres-parser.d.ts +1 -1
- package/dist/server/{server/explain → explain}/snowflake-parser.d.ts +1 -1
- package/dist/server/{server/explain → explain}/sqlite-parser.d.ts +1 -1
- package/dist/server/{server/filter-cache.d.ts → filter-cache.d.ts} +2 -2
- package/dist/server/{server/gap-filler.d.ts → gap-filler.d.ts} +8 -2
- package/dist/server/google-BOnRIN1w.cjs +2 -0
- package/dist/{adapters/google-CFYljAOF.js → server/google-CvKM9yVM.js} +83 -71
- package/dist/server/index.cjs +179 -211
- package/dist/server/index.d.ts +38 -2
- package/dist/server/index.js +6330 -6458
- package/dist/server/logical-plan/cte-planner-helpers.d.ts +37 -0
- package/dist/server/logical-plan/cte-planner.d.ts +104 -0
- package/dist/server/logical-plan/filter-propagation.d.ts +44 -0
- package/dist/server/{server/logical-plan → logical-plan}/index.d.ts +11 -6
- package/dist/server/logical-plan/join-planner.d.ts +27 -0
- package/dist/server/{server/logical-plan → logical-plan}/logical-plan-builder.d.ts +5 -5
- package/dist/server/logical-plan/logical-planner.d.ts +39 -0
- package/dist/server/{server/logical-plan → logical-plan}/optimiser.d.ts +4 -2
- package/dist/server/logical-plan/plan-analysis-reporter.d.ts +59 -0
- package/dist/server/logical-plan/planner-utils.d.ts +20 -0
- package/dist/server/{server/logical-plan → logical-plan}/types.d.ts +18 -10
- package/dist/server/measure-classification.d.ts +40 -0
- package/dist/server/{openai-BZdAA7Ji.js → openai-cDlFSTk6.js} +60 -58
- package/dist/server/openai-vXvLni8v.cjs +1 -0
- package/dist/server/physical-plan/drizzle-plan-builder.d.ts +50 -0
- package/dist/server/{server/physical-plan → physical-plan}/drizzle-sql-builder.d.ts +14 -3
- package/dist/server/physical-plan/index.d.ts +2 -0
- package/dist/server/{server/physical-plan → physical-plan}/processors/cte-processor.d.ts +2 -2
- package/dist/server/physical-plan/processors/index.d.ts +8 -0
- package/dist/server/{server/physical-plan → physical-plan}/processors/joins-processor.d.ts +2 -2
- package/dist/server/physical-plan/processors/keys-dedup-processor.d.ts +13 -0
- package/dist/server/physical-plan/processors/multi-fact-processor.d.ts +13 -0
- package/dist/server/{server/physical-plan → physical-plan}/processors/predicates-processor.d.ts +2 -2
- package/dist/server/{server/physical-plan → physical-plan}/processors/selection-processor.d.ts +2 -2
- package/dist/server/{server/physical-plan → physical-plan}/processors/shared.d.ts +9 -4
- package/dist/server/{server/physical-plan → physical-plan}/processors/window-processor.d.ts +2 -2
- package/dist/server/query-handlers.d.ts +79 -0
- package/dist/server/query-modes.d.ts +28 -0
- package/dist/server/query-validator.d.ts +9 -0
- package/dist/server/{server/resolvers → resolvers}/calculated-measure-resolver.d.ts +6 -1
- package/dist/server/{server/resolvers → resolvers}/index.d.ts +2 -2
- package/dist/server/{server/resolvers → resolvers}/join-path-resolver.d.ts +7 -1
- package/dist/server/sql-format.d.ts +11 -0
- package/dist/server/{server/template-substitution.d.ts → template-substitution.d.ts} +1 -1
- package/dist/server/{server/types → types}/cache.d.ts +1 -1
- package/dist/server/{server/types → types}/cube.d.ts +22 -8
- package/dist/server/{server/types → types}/executor.d.ts +2 -2
- package/dist/server/{server/types → types}/flow.d.ts +7 -6
- package/dist/server/{server/types → types}/funnel.d.ts +1 -1
- package/dist/server/types/index.d.ts +11 -0
- package/dist/server/{server/types → types}/metadata.d.ts +1 -1
- package/dist/server/{server/types → types}/query.d.ts +4 -4
- package/dist/server/{server/types → types}/retention.d.ts +1 -1
- package/dist/server/{server/types → types}/utils.d.ts +1 -1
- package/dist/server/types/validation.d.ts +14 -0
- package/package.json +22 -7
- package/dist/adapters/google-DUlXeeDA.cjs +0 -2
- package/dist/adapters/handler-CzbCuS6_.cjs +0 -25
- package/dist/adapters/locale-BPB7flIG.js +0 -8249
- package/dist/adapters/locale-tIMrNcCr.cjs +0 -198
- package/dist/adapters/mcp-transport-C2QzXm6h.cjs +0 -40
- package/dist/adapters/mcp-transport-D0B3S1tB.js +0 -579
- package/dist/adapters/openai-D_U4V0kT.cjs +0 -1
- package/dist/adapters/utils-KV37IBIv.cjs +0 -128
- package/dist/client/chunks/DashboardEditModal-CjCIAT-J.js.map +0 -1
- package/dist/client/chunks/RetentionCombinedChart-BPkfcTa8.js.map +0 -1
- package/dist/client/chunks/RetentionHeatmap-DGzLzr7h.js.map +0 -1
- package/dist/client/chunks/analysis-builder-MuMIzoRq.js +0 -5367
- package/dist/client/chunks/analysis-builder-MuMIzoRq.js.map +0 -1
- package/dist/client/chunks/analysis-builder-shared-CYVwSPqt.js.map +0 -1
- package/dist/client/chunks/chart-activity-grid-DmruKPab.js.map +0 -1
- package/dist/client/chunks/chart-area-DHCPM4Em.js +0 -450
- package/dist/client/chunks/chart-area-DHCPM4Em.js.map +0 -1
- package/dist/client/chunks/chart-bar-KddciGDv.js +0 -271
- package/dist/client/chunks/chart-bar-KddciGDv.js.map +0 -1
- package/dist/client/chunks/chart-box-plot-DYKfyOI8.js.map +0 -1
- package/dist/client/chunks/chart-bubble-CfqiB538.js +0 -273
- package/dist/client/chunks/chart-bubble-CfqiB538.js.map +0 -1
- package/dist/client/chunks/chart-candlestick-Dwc92Mrj.js.map +0 -1
- package/dist/client/chunks/chart-config-area-Bq_UsW3x.js +0 -101
- package/dist/client/chunks/chart-config-area-Bq_UsW3x.js.map +0 -1
- package/dist/client/chunks/chart-config-bar-_JEGZnAu.js +0 -95
- package/dist/client/chunks/chart-config-bar-_JEGZnAu.js.map +0 -1
- package/dist/client/chunks/chart-config-box-plot-DJ-dWWXA.js.map +0 -1
- package/dist/client/chunks/chart-config-gauge-DSwC04l0.js.map +0 -1
- package/dist/client/chunks/chart-config-kpi-delta-D6BIkHL3.js.map +0 -1
- package/dist/client/chunks/chart-config-kpi-number-Bx-V9a62.js.map +0 -1
- package/dist/client/chunks/chart-config-kpi-text-CcqC1u-8.js.map +0 -1
- package/dist/client/chunks/chart-config-line-Db3jDsWc.js.map +0 -1
- package/dist/client/chunks/chart-config-pie-DD4SmRTF.js.map +0 -1
- package/dist/client/chunks/chart-config-radar-CC2XAaGr.js.map +0 -1
- package/dist/client/chunks/chart-config-radial-bar-DmxKx1R0.js.map +0 -1
- package/dist/client/chunks/chart-config-tree-map-BI-oQStO.js.map +0 -1
- package/dist/client/chunks/chart-config-waterfall-DSnyixbI.js.map +0 -1
- package/dist/client/chunks/chart-data-table-BO4sXsim.js.map +0 -1
- package/dist/client/chunks/chart-funnel-DnWRsmnS.js.map +0 -1
- package/dist/client/chunks/chart-gauge-CgMeqeGb.js +0 -424
- package/dist/client/chunks/chart-gauge-CgMeqeGb.js.map +0 -1
- package/dist/client/chunks/chart-heat-map-DcGm9SWK.js +0 -231
- package/dist/client/chunks/chart-heat-map-DcGm9SWK.js.map +0 -1
- package/dist/client/chunks/chart-kpi-delta-C2wKPqCb.js +0 -343
- package/dist/client/chunks/chart-kpi-delta-C2wKPqCb.js.map +0 -1
- package/dist/client/chunks/chart-kpi-number-gWYF44ol.js +0 -322
- package/dist/client/chunks/chart-kpi-number-gWYF44ol.js.map +0 -1
- package/dist/client/chunks/chart-kpi-text-DIYtJtk4.js +0 -149
- package/dist/client/chunks/chart-kpi-text-DIYtJtk4.js.map +0 -1
- package/dist/client/chunks/chart-line-9BEGN5Ti.js +0 -433
- package/dist/client/chunks/chart-line-9BEGN5Ti.js.map +0 -1
- package/dist/client/chunks/chart-markdown-dgUetjyM.js.map +0 -1
- package/dist/client/chunks/chart-measure-profile-ClfpLs4q.js.map +0 -1
- package/dist/client/chunks/chart-pie-BjAIhyOi.js +0 -172
- package/dist/client/chunks/chart-pie-BjAIhyOi.js.map +0 -1
- package/dist/client/chunks/chart-radar-Dgkcl2bN.js +0 -154
- package/dist/client/chunks/chart-radar-Dgkcl2bN.js.map +0 -1
- package/dist/client/chunks/chart-radial-bar-DdWJjAhK.js +0 -148
- package/dist/client/chunks/chart-radial-bar-DdWJjAhK.js.map +0 -1
- package/dist/client/chunks/chart-sankey-M3XpO_ah.js.map +0 -1
- package/dist/client/chunks/chart-scatter-DaHYP_OL.js +0 -255
- package/dist/client/chunks/chart-scatter-DaHYP_OL.js.map +0 -1
- package/dist/client/chunks/chart-sunburst-A_u6lqlS.js.map +0 -1
- package/dist/client/chunks/chart-tree-map-uiwUU4nb.js +0 -298
- package/dist/client/chunks/chart-tree-map-uiwUU4nb.js.map +0 -1
- package/dist/client/chunks/chart-waterfall-BuhMoagf.js.map +0 -1
- package/dist/client/chunks/charts-core-jRtb0S2M.js.map +0 -1
- package/dist/client/chunks/schema-visualization-DE09kQE3.js.map +0 -1
- package/dist/client/chunks/useDirtyStateTracking-CoeQbprt.js.map +0 -1
- package/dist/client/chunks/useExplainAI-DlnXWdmz.js.map +0 -1
- package/dist/client/chunks/utils-CTKNaXS8.js.map +0 -1
- package/dist/server/google-DUlXeeDA.cjs +0 -2
- package/dist/server/openai-D_U4V0kT.cjs +0 -1
- package/dist/server/server/adapters/databend-adapter.d.ts +0 -114
- package/dist/server/server/adapters/mysql-adapter.d.ts +0 -122
- package/dist/server/server/adapters/postgres-adapter.d.ts +0 -119
- package/dist/server/server/adapters/snowflake-adapter.d.ts +0 -116
- package/dist/server/server/agent/index.d.ts +0 -11
- package/dist/server/server/agent/providers/index.d.ts +0 -6
- package/dist/server/server/builders/flow-query-builder.d.ts +0 -109
- package/dist/server/server/builders/index.d.ts +0 -13
- package/dist/server/server/cache-providers/index.d.ts +0 -5
- package/dist/server/server/explain/index.d.ts +0 -9
- package/dist/server/server/index.d.ts +0 -36
- package/dist/server/server/logical-plan/logical-planner.d.ts +0 -232
- package/dist/server/server/physical-plan/drizzle-plan-builder.d.ts +0 -50
- package/dist/server/server/physical-plan/index.d.ts +0 -2
- package/dist/server/server/physical-plan/processors/index.d.ts +0 -6
- package/dist/server/server/types/index.d.ts +0 -11
- /package/dist/server/{server/agent → agent}/providers/types.d.ts +0 -0
- /package/dist/server/{server/ai → ai}/mcp-prompts.d.ts +0 -0
- /package/dist/server/{server/ai → ai}/query-schema.d.ts +0 -0
- /package/dist/server/{server/ai → ai}/schemas.d.ts +0 -0
- /package/dist/server/{server/prompts → prompts}/explain-analysis-prompt.d.ts +0 -0
- /package/dist/server/{server/prompts → prompts}/index.d.ts +0 -0
- /package/dist/server/{server/prompts → prompts}/single-step-prompt.d.ts +0 -0
- /package/dist/server/{server/prompts → prompts}/step0-validation-prompt.d.ts +0 -0
- /package/dist/server/{server/prompts → prompts}/step1-shape-prompt.d.ts +0 -0
- /package/dist/server/{server/prompts → prompts}/step2-complete-prompt.d.ts +0 -0
- /package/dist/server/{server/prompts → prompts}/types.d.ts +0 -0
- /package/dist/server/{server/types → types}/analysis.d.ts +0 -0
- /package/dist/server/{server/types → types}/core.d.ts +0 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ColorPalette } from '../../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Co-located helpers shared by the Cartesian time-series charts (Line, Area).
|
|
5
|
+
*
|
|
6
|
+
* These extract the heavier inline logic that previously lived inside the chart
|
|
7
|
+
* components — the clickable/drill dot renderer, the comparison-mode tick and
|
|
8
|
+
* label formatters, and the series-key → measure-field resolution — so the
|
|
9
|
+
* component bodies stay focused on chart composition. Pure extraction: no
|
|
10
|
+
* behaviour change.
|
|
11
|
+
*/
|
|
12
|
+
export interface DataPointClickPayload {
|
|
13
|
+
dataPoint: any;
|
|
14
|
+
clickedField: string;
|
|
15
|
+
xValue: any;
|
|
16
|
+
position: {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
};
|
|
20
|
+
nativeEvent: React.MouseEvent;
|
|
21
|
+
}
|
|
22
|
+
interface DrillDotOptions {
|
|
23
|
+
/** Recharts dot props (cx, cy, payload, key). */
|
|
24
|
+
props: any;
|
|
25
|
+
color: string;
|
|
26
|
+
drillEnabled?: boolean;
|
|
27
|
+
originalField?: string;
|
|
28
|
+
seriesKey: string;
|
|
29
|
+
onDataPointClick?: (payload: DataPointClickPayload) => void;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Render a single data-point dot. When drill is enabled and a click handler is
|
|
33
|
+
* present, renders a larger clickable dot with a surface-coloured backing
|
|
34
|
+
* circle to mask grid lines; otherwise a small plain dot. Returns null when the
|
|
35
|
+
* point has no coordinates.
|
|
36
|
+
*
|
|
37
|
+
* `renderPlain` controls whether a small non-interactive dot is drawn when
|
|
38
|
+
* drill is disabled (Line draws one; Area returns nothing).
|
|
39
|
+
*/
|
|
40
|
+
export declare function renderDrillDot({ props, color, drillEnabled, originalField, seriesKey, onDataPointClick, renderPlain }: DrillDotOptions & {
|
|
41
|
+
renderPlain: boolean;
|
|
42
|
+
}): React.ReactElement | null;
|
|
43
|
+
/**
|
|
44
|
+
* Build the comparison-mode X-axis tick formatter for time-series charts.
|
|
45
|
+
* Returns undefined when not in comparison mode (no custom formatting).
|
|
46
|
+
*/
|
|
47
|
+
export declare function makeComparisonTickFormatter(hasComparisonData: boolean, chartData: any[], queryObject: any, xAxisField: string): ((value: string | number, index: number) => string) | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Build the comparison-mode tooltip label formatter for time-series charts.
|
|
50
|
+
* Returns undefined when not in comparison mode (no custom formatting).
|
|
51
|
+
*/
|
|
52
|
+
export declare function makeComparisonLabelFormatter(hasComparisonData: boolean, queryObject: any, xAxisField: string): ((label: any, payload: any) => string) | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Resolve effective stacking for the Area chart from `stackType` (new) /
|
|
55
|
+
* `stacked` (legacy), disabling stacking when a right axis is present (areas on
|
|
56
|
+
* different axes can't be stacked).
|
|
57
|
+
*/
|
|
58
|
+
export declare function resolveAreaStacking(displayConfig: {
|
|
59
|
+
stackType?: string;
|
|
60
|
+
stacked?: boolean;
|
|
61
|
+
} | undefined, hasRightAxis: boolean): {
|
|
62
|
+
effectiveShouldStack: boolean;
|
|
63
|
+
effectiveIsPercentStack: boolean;
|
|
64
|
+
stackOffset: 'expand' | undefined;
|
|
65
|
+
};
|
|
66
|
+
/** Build a map from series display label to original measure field name. */
|
|
67
|
+
export declare function buildSeriesKeyToFieldMap(yAxisFields: string[], getFieldLabel: (field: string) => string): Record<string, string>;
|
|
68
|
+
/**
|
|
69
|
+
* Resolve a series key back to its original measure field, handling comparison
|
|
70
|
+
* suffixes like "(Current)" / "(Prior)" and dimension prefixes ("Dim - Label").
|
|
71
|
+
*/
|
|
72
|
+
export declare function makeSeriesKeyResolver(seriesKeyToField: Record<string, string>): (seriesKey: string) => string | undefined;
|
|
73
|
+
/** Pick a series colour by index, preferring the palette then the defaults. */
|
|
74
|
+
export declare function getSeriesColor(colorPalette: ColorPalette | undefined, index: number): string;
|
|
75
|
+
interface LineSeriesOptions {
|
|
76
|
+
seriesKeys: string[];
|
|
77
|
+
colorPalette?: ColorPalette;
|
|
78
|
+
resolveField: (seriesKey: string) => string | undefined;
|
|
79
|
+
yAxisAssignment: Record<string, 'left' | 'right'>;
|
|
80
|
+
hoveredLegend: string | null;
|
|
81
|
+
connectNulls: boolean;
|
|
82
|
+
drillEnabled?: boolean;
|
|
83
|
+
onDataPointClick?: (payload: DataPointClickPayload) => void;
|
|
84
|
+
/** Comparison styling (omit/false → standard series). */
|
|
85
|
+
hasComparisonData?: boolean;
|
|
86
|
+
periodLabels?: string[];
|
|
87
|
+
priorPeriodStyle?: 'solid' | 'dashed' | 'dotted';
|
|
88
|
+
priorPeriodOpacity?: number;
|
|
89
|
+
}
|
|
90
|
+
/** Render all line series for the Line chart. */
|
|
91
|
+
export declare function renderLineSeries(opts: LineSeriesOptions): React.ReactElement[];
|
|
92
|
+
interface AreaSeriesOptions {
|
|
93
|
+
seriesKeys: string[];
|
|
94
|
+
colorPalette?: ColorPalette;
|
|
95
|
+
seriesKeyToField: Record<string, string>;
|
|
96
|
+
yAxisAssignment: Record<string, 'left' | 'right'>;
|
|
97
|
+
hoveredLegend: string | null;
|
|
98
|
+
connectNulls: boolean;
|
|
99
|
+
shouldStack: boolean;
|
|
100
|
+
drillEnabled?: boolean;
|
|
101
|
+
onDataPointClick?: (payload: DataPointClickPayload) => void;
|
|
102
|
+
}
|
|
103
|
+
/** Render all area series for the Area chart. */
|
|
104
|
+
export declare function renderAreaSeries(opts: AreaSeriesOptions): React.ReactElement[];
|
|
105
|
+
export interface TimeSeriesShape {
|
|
106
|
+
chartData: any[];
|
|
107
|
+
seriesKeys: string[];
|
|
108
|
+
effectiveXAxisKey: string;
|
|
109
|
+
hasComparisonData: boolean;
|
|
110
|
+
periodLabels: string[];
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Shape raw rows for a Cartesian time-series chart. In comparison mode this
|
|
114
|
+
* uses the overlay transform (aligned by period day index); otherwise the
|
|
115
|
+
* standard series transform. Centralises the branch so the chart body stays
|
|
116
|
+
* flat.
|
|
117
|
+
*/
|
|
118
|
+
export declare function buildTimeSeriesData(args: {
|
|
119
|
+
data: any[];
|
|
120
|
+
xAxisField: string;
|
|
121
|
+
yAxisFields: string[];
|
|
122
|
+
seriesFields: string[];
|
|
123
|
+
queryObject: any;
|
|
124
|
+
getFieldLabel: (field: string) => string;
|
|
125
|
+
}): TimeSeriesShape;
|
|
126
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ChartAxisConfig } from '../../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Discriminated error code returned by {@link resolveChartAxisFields} when the
|
|
4
|
+
* chart configuration is invalid. Each chart maps these codes to its own i18n
|
|
5
|
+
* hint key (e.g. pie charts surface a pie-specific message for `axisInvalid`).
|
|
6
|
+
*/
|
|
7
|
+
export type ChartAxisErrorCode = 'axisInvalid' | 'axisFields';
|
|
8
|
+
/**
|
|
9
|
+
* Result of resolving X/Y/series fields from a {@link ChartAxisConfig}.
|
|
10
|
+
* When `errorCode` is non-null the field values are not usable and the chart
|
|
11
|
+
* should render a configuration-error state instead.
|
|
12
|
+
*/
|
|
13
|
+
export interface ResolvedChartAxisFields {
|
|
14
|
+
/** Resolved X-axis field (category), or undefined when the config is invalid */
|
|
15
|
+
xAxisField?: string;
|
|
16
|
+
/** Resolved Y-axis (value/measure) fields */
|
|
17
|
+
yAxisFields: string[];
|
|
18
|
+
/** Optional series/grouping fields (only present in the new config format) */
|
|
19
|
+
seriesFields: string[];
|
|
20
|
+
/** Non-null when the configuration cannot produce a renderable axis setup */
|
|
21
|
+
errorCode: ChartAxisErrorCode | null;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Pure resolver for the X/Y/series field extraction that Cartesian charts
|
|
25
|
+
* (bar, line, area, pie) all duplicated inline.
|
|
26
|
+
*
|
|
27
|
+
* Supports both the new format (`xAxis` / `yAxis` / `series` arrays) and the
|
|
28
|
+
* legacy format (`x` / `y`). Returns a discriminated `errorCode` rather than
|
|
29
|
+
* JSX so each chart can map it to its own i18n hint key and render its own
|
|
30
|
+
* guard component.
|
|
31
|
+
*/
|
|
32
|
+
export declare function resolveChartAxisFields(chartConfig?: ChartAxisConfig): ResolvedChartAxisFields;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { AxisFormatConfig } from '../../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Shared scaffolding for the Cartesian recharts charts (bar, line, area).
|
|
4
|
+
*
|
|
5
|
+
* These charts duplicated the same dual-Y-axis derivation, chart margins,
|
|
6
|
+
* target-line overlay, and the left/right `<YAxis>` JSX. The pure helpers and
|
|
7
|
+
* recharts render-helpers here own that shared setup. Render-helpers return
|
|
8
|
+
* recharts elements (inside a fragment) and are embedded directly in the chart
|
|
9
|
+
* children — recharts flattens fragments when discovering axes/series, exactly
|
|
10
|
+
* as it already does for the inline target-line fragment.
|
|
11
|
+
*/
|
|
12
|
+
export interface DualAxisInfo {
|
|
13
|
+
/** True when at least one measure is assigned to the right axis */
|
|
14
|
+
hasRightAxis: boolean;
|
|
15
|
+
/** Measure fields rendered against the left axis */
|
|
16
|
+
leftAxisFields: string[];
|
|
17
|
+
/** Measure fields rendered against the right axis */
|
|
18
|
+
rightAxisFields: string[];
|
|
19
|
+
}
|
|
20
|
+
/** Derive left/right axis membership from per-measure axis assignments. */
|
|
21
|
+
export declare function getDualAxisInfo(yAxisFields: string[], yAxisAssignment: Record<string, 'left' | 'right'>): DualAxisInfo;
|
|
22
|
+
/** Chart margins with extra room for the Y-axis label(s). */
|
|
23
|
+
export declare function getYAxisChartMargins(hasRightAxis: boolean): {
|
|
24
|
+
left: number;
|
|
25
|
+
right: number;
|
|
26
|
+
top: number;
|
|
27
|
+
bottom: number;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Apply target values (single or comma-separated spread) onto chart data,
|
|
31
|
+
* returning the spread targets plus data enhanced with a `__target` key.
|
|
32
|
+
*/
|
|
33
|
+
export declare function withTargetData<T extends Record<string, any>>(chartData: T[], target: string | undefined): {
|
|
34
|
+
spreadTargets: number[];
|
|
35
|
+
enhancedChartData: T[];
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Render the left + optional right `<YAxis>`. Returns recharts elements in a
|
|
39
|
+
* fragment for embedding directly in the chart children. Positional args keep
|
|
40
|
+
* the (otherwise identical) call sites in each chart down to a single line.
|
|
41
|
+
*
|
|
42
|
+
* @param isPercentStack when true (area/bar percent stacking) the left axis shows 0–100%
|
|
43
|
+
*/
|
|
44
|
+
export declare function renderDualYAxes({ hasRightAxis, leftAxisFields, rightAxisFields }: DualAxisInfo, getFieldLabel: (field: string) => string, leftYAxisFormat?: AxisFormatConfig, rightYAxisFormat?: AxisFormatConfig, isPercentStack?: boolean): import("react").JSX.Element;
|
|
45
|
+
/**
|
|
46
|
+
* Render the target overlay: a white backing line plus a purple dashed line
|
|
47
|
+
* on top (shared by bar, line, area). Returns null when there are no targets.
|
|
48
|
+
*/
|
|
49
|
+
export declare function renderChartTargetLines(spreadTargets: number[]): import("react").JSX.Element | null;
|
|
50
|
+
interface CartesianTooltipOptions {
|
|
51
|
+
leftYAxisFormat?: AxisFormatConfig;
|
|
52
|
+
rightYAxisFormat?: AxisFormatConfig;
|
|
53
|
+
yAxisAssignment: Record<string, 'left' | 'right'>;
|
|
54
|
+
/** Maps a series key (display label) back to its original measure field. */
|
|
55
|
+
resolveField: (name: string) => string | undefined;
|
|
56
|
+
/** When true, values render as percentages (area/bar percent stacking). */
|
|
57
|
+
isPercentStack?: boolean;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Build the value/name tooltip formatter shared by the Cartesian charts.
|
|
61
|
+
* Handles null values, the target series, percent stacking, and per-series
|
|
62
|
+
* left/right axis format selection.
|
|
63
|
+
*/
|
|
64
|
+
export declare function makeCartesianTooltipFormatter({ leftYAxisFormat, rightYAxisFormat, yAxisAssignment, resolveField, isPercentStack }: CartesianTooltipOptions): (value: any, name: any) => [any, any];
|
|
65
|
+
/**
|
|
66
|
+
* Render the hover-aware bottom legend shared by the Cartesian charts.
|
|
67
|
+
* Returns null when the legend is hidden. `iconType` / `paddingTop` differ
|
|
68
|
+
* per chart (rect+10 for area, rect+25 for bar, line+25 for line).
|
|
69
|
+
*/
|
|
70
|
+
export declare function renderHoverLegend({ show, iconType, paddingTop, onHover, onLeave }: {
|
|
71
|
+
show: boolean;
|
|
72
|
+
iconType: 'rect' | 'line' | 'circle';
|
|
73
|
+
paddingTop: number;
|
|
74
|
+
onHover: (dataKey: string) => void;
|
|
75
|
+
onLeave: () => void;
|
|
76
|
+
}): import("react").JSX.Element | null;
|
|
77
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { AxisFormatConfig, ThresholdBand } from '../../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Co-located helpers for GaugeChart: pure geometry/value math and threshold
|
|
4
|
+
* parsing extracted from the component so the render body stays flat. Pure
|
|
5
|
+
* extraction — no behaviour change.
|
|
6
|
+
*/
|
|
7
|
+
export declare const START_ANGLE: number;
|
|
8
|
+
export declare const END_ANGLE: number;
|
|
9
|
+
export declare const TRACK_COLOR = "#e2e8f0";
|
|
10
|
+
export declare const DEFAULT_FILL = "#6366f1";
|
|
11
|
+
export declare function parseNum(v: unknown): number | null;
|
|
12
|
+
export declare function clamp(v: number, lo: number, hi: number): number;
|
|
13
|
+
export declare function valueToAngle(value: number, min: number, max: number): number;
|
|
14
|
+
export declare function resolveColor(fraction: number, thresholds: ThresholdBand[]): string;
|
|
15
|
+
export declare function buildArcPath(innerRadius: number, outerRadius: number, startAngle: number, endAngle: number): string;
|
|
16
|
+
/** Parse the displayConfig.thresholds value (array or JSON string) into bands. */
|
|
17
|
+
export declare function parseThresholds(raw: unknown): ThresholdBand[];
|
|
18
|
+
export interface ThresholdArcBand {
|
|
19
|
+
color: string;
|
|
20
|
+
start: number;
|
|
21
|
+
end: number;
|
|
22
|
+
}
|
|
23
|
+
/** Build the outer-ring threshold arc bands (in fraction space 0..1). */
|
|
24
|
+
export declare function buildThresholdBands(thresholds: ThresholdBand[]): ThresholdArcBand[];
|
|
25
|
+
export interface GaugeGeometry {
|
|
26
|
+
effectiveMax: number;
|
|
27
|
+
clampedValue: number;
|
|
28
|
+
fraction: number;
|
|
29
|
+
fillColor: string;
|
|
30
|
+
fillAngle: number;
|
|
31
|
+
needleAngle: number;
|
|
32
|
+
}
|
|
33
|
+
/** Compute the gauge's clamped value, fraction, fill colour, and angles. */
|
|
34
|
+
export declare function computeGaugeGeometry(rawValue: number, minValue: number, maxValue: number, thresholds: ThresholdBand[]): GaugeGeometry;
|
|
35
|
+
/** Format a gauge value with the optional axis format, else locale string. */
|
|
36
|
+
export declare function formatGaugeValue(value: number, yAxisFormat?: AxisFormatConfig): string;
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
* Chart components for drizzle-cube client
|
|
3
3
|
* Minimal Recharts-based components with Tailwind styling
|
|
4
4
|
*/
|
|
5
|
-
export { default as RechartsBarChart } from './BarChart';
|
|
6
|
-
export { default as RechartsLineChart } from './LineChart';
|
|
7
|
-
export { default as RechartsAreaChart } from './AreaChart';
|
|
8
|
-
export { default as RechartsPieChart } from './PieChart';
|
|
9
|
-
export { default as RechartsScatterChart } from './ScatterChart';
|
|
10
|
-
export { default as RechartsRadarChart } from './RadarChart';
|
|
11
|
-
export { default as RechartsRadialBarChart } from './RadialBarChart';
|
|
12
|
-
export { default as RechartsTreeMapChart } from './TreeMapChart';
|
|
13
|
-
export { default as BubbleChart } from './BubbleChart';
|
|
14
|
-
export { default as DataTable } from './DataTable';
|
|
15
|
-
export { default as FunnelChart } from './FunnelChart';
|
|
16
|
-
export { default as ActivityGridChart } from './ActivityGridChart';
|
|
17
|
-
export { default as KpiNumber } from './KpiNumber';
|
|
18
|
-
export { default as KpiDelta } from './KpiDelta';
|
|
19
|
-
export { default as KpiText } from './KpiText';
|
|
20
|
-
export { default as MarkdownChart } from './MarkdownChart';
|
|
21
|
-
export { default as BoxPlotChart } from './BoxPlotChart';
|
|
22
|
-
export { default as WaterfallChart } from './WaterfallChart';
|
|
23
|
-
export { default as CandlestickChart } from './CandlestickChart';
|
|
24
|
-
export { default as MeasureProfileChart } from './MeasureProfileChart';
|
|
25
|
-
export { default as GaugeChart } from './GaugeChart';
|
|
5
|
+
export { default as RechartsBarChart } from './BarChart.js';
|
|
6
|
+
export { default as RechartsLineChart } from './LineChart.js';
|
|
7
|
+
export { default as RechartsAreaChart } from './AreaChart.js';
|
|
8
|
+
export { default as RechartsPieChart } from './PieChart.js';
|
|
9
|
+
export { default as RechartsScatterChart } from './ScatterChart.js';
|
|
10
|
+
export { default as RechartsRadarChart } from './RadarChart.js';
|
|
11
|
+
export { default as RechartsRadialBarChart } from './RadialBarChart.js';
|
|
12
|
+
export { default as RechartsTreeMapChart } from './TreeMapChart.js';
|
|
13
|
+
export { default as BubbleChart } from './BubbleChart.js';
|
|
14
|
+
export { default as DataTable } from './DataTable.js';
|
|
15
|
+
export { default as FunnelChart } from './FunnelChart.js';
|
|
16
|
+
export { default as ActivityGridChart } from './ActivityGridChart.js';
|
|
17
|
+
export { default as KpiNumber } from './KpiNumber.js';
|
|
18
|
+
export { default as KpiDelta } from './KpiDelta.js';
|
|
19
|
+
export { default as KpiText } from './KpiText.js';
|
|
20
|
+
export { default as MarkdownChart } from './MarkdownChart.js';
|
|
21
|
+
export { default as BoxPlotChart } from './BoxPlotChart.js';
|
|
22
|
+
export { default as WaterfallChart } from './WaterfallChart.js';
|
|
23
|
+
export { default as CandlestickChart } from './CandlestickChart.js';
|
|
24
|
+
export { default as MeasureProfileChart } from './MeasureProfileChart.js';
|
|
25
|
+
export { default as GaugeChart } from './GaugeChart.js';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ColorPalette } from '../../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Co-located pure helpers for KpiText: value extraction, statistics, number
|
|
4
|
+
* formatting, template processing, and colour resolution. Extracted so the
|
|
5
|
+
* component body stays focused on dimensioning + render. Pure extraction — no
|
|
6
|
+
* behaviour change.
|
|
7
|
+
*/
|
|
8
|
+
/** Extract the configured measure fields from a chart config (string or array). */
|
|
9
|
+
export declare function extractValueFields(yAxis: string | string[] | undefined): string[];
|
|
10
|
+
/**
|
|
11
|
+
* Extract the values for a field from each row, falling back to the first
|
|
12
|
+
* available field when the configured field is absent. Null/undefined dropped.
|
|
13
|
+
*/
|
|
14
|
+
export declare function extractValues(data: Record<string, any>[], valueField: string): any[];
|
|
15
|
+
export interface KpiStats {
|
|
16
|
+
mainValue: any;
|
|
17
|
+
min: number | null;
|
|
18
|
+
max: number | null;
|
|
19
|
+
showStats: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Reduce extracted values to the displayed main value plus optional min/max
|
|
23
|
+
* statistics. Numeric multi-value sets average and expose min/max; non-numeric
|
|
24
|
+
* sets concatenate.
|
|
25
|
+
*/
|
|
26
|
+
export declare function computeKpiStats(values: any[]): KpiStats;
|
|
27
|
+
interface NumberFormatOptions {
|
|
28
|
+
formatValue?: (value: any) => string;
|
|
29
|
+
decimals?: number;
|
|
30
|
+
}
|
|
31
|
+
/** Format a number with K/M/B abbreviation, honouring a custom formatter. */
|
|
32
|
+
export declare function formatKpiNumber(value: number | null | undefined, options: NumberFormatOptions): string;
|
|
33
|
+
interface TemplateContext {
|
|
34
|
+
value: any;
|
|
35
|
+
valueField: string;
|
|
36
|
+
fieldLabel: string;
|
|
37
|
+
min: number | null;
|
|
38
|
+
max: number | null;
|
|
39
|
+
count: number;
|
|
40
|
+
formatNumber: (value: number | null | undefined) => string;
|
|
41
|
+
}
|
|
42
|
+
/** Replace `${var}` tokens in a KPI template, falling back to the raw value. */
|
|
43
|
+
export declare function processKpiTemplate(template: string, ctx: TemplateContext): string;
|
|
44
|
+
/** Resolve the KPI text colour from the palette by index, with a fallback. */
|
|
45
|
+
export declare function resolveValueColor(valueColorIndex: number | undefined, colorPalette: ColorPalette | undefined): string;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Co-located data-shaping helpers for RadarChart. The component supports a
|
|
3
|
+
* config-driven format and a legacy auto-detection format; both branches are
|
|
4
|
+
* isolated here so the component body stays focused on rendering. Pure
|
|
5
|
+
* extraction — no behaviour change.
|
|
6
|
+
*/
|
|
7
|
+
export interface RadarShape {
|
|
8
|
+
radarData: any[];
|
|
9
|
+
seriesKeys: string[];
|
|
10
|
+
/** True when no numeric value fields could be found (legacy auto-detect). */
|
|
11
|
+
noNumericFields?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/** Shape rows for the radar chart via config-driven or legacy auto-detection. */
|
|
14
|
+
export declare function buildRadarData(data: any[], chartConfig: any, queryObject: any): RadarShape;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ColorPalette } from '../../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Co-located data-shaping helpers for RadialBarChart. The component supports a
|
|
4
|
+
* config-driven format and a legacy auto-detection format; both branches are
|
|
5
|
+
* isolated here so the component body stays focused on rendering. Pure
|
|
6
|
+
* extraction — no behaviour change.
|
|
7
|
+
*/
|
|
8
|
+
export interface RadialDatum {
|
|
9
|
+
name: string;
|
|
10
|
+
value: number;
|
|
11
|
+
fill?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface RadialShape {
|
|
14
|
+
radialData: RadialDatum[];
|
|
15
|
+
/** True when the legacy auto-detect found no usable value field. */
|
|
16
|
+
noValueField?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Shape rows for the radial bar chart (config-driven or legacy auto-detect),
|
|
20
|
+
* filtering out null/zero values.
|
|
21
|
+
*/
|
|
22
|
+
export declare function buildRadialData(data: any[], chartConfig: any, queryObject: any, colorPalette: ColorPalette | undefined): RadialShape;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
interface ChartDimensions {
|
|
3
|
+
containerRef: RefObject<HTMLDivElement>;
|
|
4
|
+
dimensions: {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
};
|
|
8
|
+
dimensionsReady: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Shared container-measurement hook for the D3/SVG charts (BubbleChart,
|
|
12
|
+
* ActivityGridChart).
|
|
13
|
+
*
|
|
14
|
+
* Performs an initial measurement with a requestAnimationFrame + setTimeout
|
|
15
|
+
* retry ladder (handles containers that aren't laid out yet), then keeps the
|
|
16
|
+
* dimensions in sync via a ResizeObserver and window resize. Mirrors the
|
|
17
|
+
* original per-component effects exactly.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useChartDimensions(): ChartDimensions;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
interface KpiDimensionOptions {
|
|
3
|
+
/** Container divisor for the width-based font size candidate. */
|
|
4
|
+
widthDivisor: number;
|
|
5
|
+
/** Container divisor for the height-based font size candidate. */
|
|
6
|
+
heightDivisor: number;
|
|
7
|
+
/** Minimum clamped font size. */
|
|
8
|
+
minFontSize: number;
|
|
9
|
+
/** Maximum clamped font size. */
|
|
10
|
+
maxFontSize: number;
|
|
11
|
+
/** Computes the measured-text width from the value element's box + container width. */
|
|
12
|
+
measureWidth: (measuredWidth: number, containerWidth: number) => number;
|
|
13
|
+
/** Re-run measurement whenever any of these change. */
|
|
14
|
+
deps: unknown[];
|
|
15
|
+
}
|
|
16
|
+
interface KpiDimensions {
|
|
17
|
+
containerRef: RefObject<HTMLDivElement>;
|
|
18
|
+
valueRef: RefObject<HTMLDivElement>;
|
|
19
|
+
fontSize: number;
|
|
20
|
+
textWidth: number;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Shared container-measurement hook for KPI cards (KpiNumber / KpiDelta).
|
|
24
|
+
*
|
|
25
|
+
* Measures the container to derive a responsive font size, then (after the font
|
|
26
|
+
* is applied) measures the rendered value element to size the histogram. Mirrors
|
|
27
|
+
* the original per-component effects exactly — only the tunable constants differ.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useKpiDimensions({ widthDivisor, heightDivisor, minFontSize, maxFontSize, measureWidth, deps }: KpiDimensionOptions): KpiDimensions;
|
|
30
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ReactNode, HTMLAttributes, DragEvent, MouseEvent, MutableRefObject } from 'react';
|
|
2
2
|
import { LayoutItem, Layout } from 'react-grid-layout';
|
|
3
|
-
import { UseDashboardActions } from '../../hooks/useDashboardHook';
|
|
4
|
-
import { DashboardDisplayMode } from '../../hooks/useResponsiveDashboard';
|
|
5
|
-
import { ColorPalette } from '../../utils/colorPalettes';
|
|
6
|
-
import { DashboardConfig, PortletConfig, DashboardFilter, DashboardFilterMapping, CubeMeta, DashboardLayoutMode, DashboardGridSettings, RowLayout, FeaturesConfig } from '../../types';
|
|
3
|
+
import { UseDashboardActions } from '../../hooks/useDashboardHook.js';
|
|
4
|
+
import { DashboardDisplayMode } from '../../hooks/useResponsiveDashboard.js';
|
|
5
|
+
import { ColorPalette } from '../../utils/colorPalettes.js';
|
|
6
|
+
import { DashboardConfig, PortletConfig, DashboardFilter, DashboardFilterMapping, CubeMeta, DashboardLayoutMode, DashboardGridSettings, RowLayout, FeaturesConfig } from '../../types.js';
|
|
7
7
|
/**
|
|
8
8
|
* Props accepted by DashboardProvider (the public composable entry point).
|
|
9
9
|
* Mirrors the former DashboardGridProps plus `hideToolbar` and `children`.
|
|
@@ -92,8 +92,8 @@ export interface DashboardContextValue {
|
|
|
92
92
|
bustCache?: boolean;
|
|
93
93
|
}) => void;
|
|
94
94
|
handleLayoutChange: (layout: Layout) => void;
|
|
95
|
-
handleDragStop: (layout: Layout, oldItem: LayoutItem | null, newItem: LayoutItem | null, placeholder: LayoutItem | null, e: Event, element: HTMLElement |
|
|
96
|
-
handleResizeStop: (layout: Layout, oldItem: LayoutItem | null, newItem: LayoutItem | null, placeholder: LayoutItem | null, e: Event, element: HTMLElement |
|
|
95
|
+
handleDragStop: (layout: Layout, oldItem: LayoutItem | null, newItem: LayoutItem | null, placeholder: LayoutItem | null, e: Event, element: HTMLElement | null) => void;
|
|
96
|
+
handleResizeStop: (layout: Layout, oldItem: LayoutItem | null, newItem: LayoutItem | null, placeholder: LayoutItem | null, e: Event, element: HTMLElement | null) => void;
|
|
97
97
|
startRowResize: (rowIndex: number, event: MouseEvent<HTMLDivElement>) => void;
|
|
98
98
|
startColumnResize: (rowIndex: number, columnIndex: number, event: MouseEvent<HTMLDivElement>) => void;
|
|
99
99
|
handlePortletDragStart: (rowIndex: number, colIndex: number, portletId: string, event: DragEvent<HTMLDivElement>) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DashboardProviderProps } from './DashboardContext';
|
|
1
|
+
import { DashboardProviderProps } from './DashboardContext.js';
|
|
2
2
|
export default function DashboardCoordinator({ config, editable, dashboardFilters, loadingComponent, onConfigChange, onPortletRefresh, onSave, onSaveThumbnail, colorPalette, schema, onDashboardFiltersChange, dashboardModes, hideToolbar, children }: DashboardProviderProps): import("react").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DashboardProviderProps } from './DashboardContext';
|
|
1
|
+
import { DashboardProviderProps } from './DashboardContext.js';
|
|
2
2
|
export default function DashboardProvider({ children, ...props }: DashboardProviderProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Grid / Rows layout-mode toggle used inside the dashboard edit bar.
|
|
3
|
+
*/
|
|
4
|
+
interface LayoutModeToggleProps {
|
|
5
|
+
layoutMode: string;
|
|
6
|
+
canChangeLayoutMode: boolean;
|
|
7
|
+
onLayoutModeChange: (mode: 'grid' | 'rows') => void;
|
|
8
|
+
}
|
|
9
|
+
export default function LayoutModeToggle({ layoutMode, canChangeLayoutMode, onLayoutModeChange }: LayoutModeToggleProps): import("react").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { DashboardConfig, DashboardGridSettings, RowLayoutColumn } from '../../types';
|
|
2
|
+
import { DashboardConfig, DashboardGridSettings, RowLayoutColumn } from '../../types.js';
|
|
3
3
|
export declare const DEFAULT_GRID_SETTINGS: DashboardGridSettings;
|
|
4
4
|
export declare const createRowId: () => string;
|
|
5
5
|
export declare const getGridSettings: (config: DashboardConfig) => DashboardGridSettings;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* Compose these under a DashboardProvider, or use the back-compat DashboardGrid
|
|
5
5
|
* which wires them together for you.
|
|
6
6
|
*/
|
|
7
|
-
export { default as DashboardProvider } from './DashboardProvider';
|
|
8
|
-
export { default as DashboardToolbar } from './DashboardToolbar';
|
|
9
|
-
export { default as DashboardFilterBar } from './DashboardFilterBar';
|
|
10
|
-
export { default as DashboardGridSurface } from './DashboardGridSurface';
|
|
11
|
-
export { default as DashboardModals } from './DashboardModals';
|
|
12
|
-
export { useDashboardContext } from './DashboardContext';
|
|
13
|
-
export type { DashboardContextValue, DashboardProviderProps } from './DashboardContext';
|
|
7
|
+
export { default as DashboardProvider } from './DashboardProvider.js';
|
|
8
|
+
export { default as DashboardToolbar } from './DashboardToolbar.js';
|
|
9
|
+
export { default as DashboardFilterBar } from './DashboardFilterBar.js';
|
|
10
|
+
export { default as DashboardGridSurface } from './DashboardGridSurface.js';
|
|
11
|
+
export { default as DashboardModals } from './DashboardModals.js';
|
|
12
|
+
export { useDashboardContext } from './DashboardContext.js';
|
|
13
|
+
export type { DashboardContextValue, DashboardProviderProps } from './DashboardContext.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CSSProperties, ComponentType } from 'react';
|
|
2
|
+
import { EffectiveFilterField } from './filterField.js';
|
|
3
|
+
interface FilterFieldChipProps {
|
|
4
|
+
field: EffectiveFilterField;
|
|
5
|
+
FilterIcon: ComponentType<{
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
}>;
|
|
9
|
+
onOpenFilterConfig: () => void;
|
|
10
|
+
}
|
|
11
|
+
export default function FilterFieldChip({ field, FilterIcon, onOpenFilterConfig }: FilterFieldChipProps): import("react").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { default as React, CSSProperties, ComponentType } from 'react';
|
|
2
|
+
import { PortletConfig } from '../../types.js';
|
|
3
|
+
import { PortletDebugDataEntry } from '../../stores/dashboardStore.js';
|
|
4
|
+
type IconComponent = ComponentType<{
|
|
5
|
+
className?: string;
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
}>;
|
|
8
|
+
interface CardIcons {
|
|
9
|
+
RefreshIcon: IconComponent;
|
|
10
|
+
EditIcon: IconComponent;
|
|
11
|
+
DeleteIcon: IconComponent;
|
|
12
|
+
CopyIcon: IconComponent;
|
|
13
|
+
FilterIcon: IconComponent;
|
|
14
|
+
}
|
|
15
|
+
interface PortletCardHeaderProps {
|
|
16
|
+
portlet: PortletConfig;
|
|
17
|
+
className: string;
|
|
18
|
+
headerStyle?: CSSProperties;
|
|
19
|
+
restHeaderProps: Record<string, unknown>;
|
|
20
|
+
headerOnClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
21
|
+
editable: boolean;
|
|
22
|
+
isEditMode: boolean;
|
|
23
|
+
isInSelectionMode: boolean;
|
|
24
|
+
debugData?: PortletDebugDataEntry;
|
|
25
|
+
copyAvailable: boolean;
|
|
26
|
+
copySuccess: boolean;
|
|
27
|
+
xlsExportAvailable: boolean;
|
|
28
|
+
exportInProgress: boolean;
|
|
29
|
+
showCacheBustIndicator: boolean;
|
|
30
|
+
icons: CardIcons;
|
|
31
|
+
onRefresh: (options?: {
|
|
32
|
+
bustCache?: boolean;
|
|
33
|
+
}) => void;
|
|
34
|
+
onHoverRefreshChange: (hovering: boolean) => void;
|
|
35
|
+
onCopyToClipboard: (event: React.MouseEvent | React.TouchEvent) => void;
|
|
36
|
+
onExportXlsx: (event: React.MouseEvent | React.TouchEvent) => void;
|
|
37
|
+
onOpenFilterConfig: () => void;
|
|
38
|
+
onDuplicate: () => void;
|
|
39
|
+
onEdit: () => void;
|
|
40
|
+
onDelete: () => void;
|
|
41
|
+
}
|
|
42
|
+
export default function PortletCardHeader(props: PortletCardHeaderProps): React.JSX.Element;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { ChartType, ChartDisplayConfig } from '../../types.js';
|
|
3
|
+
export interface PortletDisplayModes {
|
|
4
|
+
isMarkdownAutoHeight: boolean;
|
|
5
|
+
isTransparentContent: boolean;
|
|
6
|
+
isTransparent: boolean;
|
|
7
|
+
shouldHideHeader: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Resolve the markdown / transparency / header-visibility display modes for a
|
|
11
|
+
* portlet from its chart type and display config. Extracted to keep the card
|
|
12
|
+
* component flat.
|
|
13
|
+
*/
|
|
14
|
+
export declare function resolveDisplayModes(params: {
|
|
15
|
+
renderChartType: ChartType;
|
|
16
|
+
renderDisplayConfig?: ChartDisplayConfig;
|
|
17
|
+
layoutMode: string;
|
|
18
|
+
isEditMode: boolean;
|
|
19
|
+
portletTitle?: string;
|
|
20
|
+
}): PortletDisplayModes;
|
|
21
|
+
export declare function buildContainerClassName(params: {
|
|
22
|
+
isTransparent: boolean;
|
|
23
|
+
isMarkdownAutoHeight: boolean;
|
|
24
|
+
isInSelectionMode: boolean;
|
|
25
|
+
extraClassName?: string;
|
|
26
|
+
}): string;
|
|
27
|
+
export declare function buildHeaderClassName(isEditMode: boolean, extraClassName?: string): string;
|
|
28
|
+
export declare function buildContainerStyle(params: {
|
|
29
|
+
isTransparent: boolean;
|
|
30
|
+
isInSelectionMode: boolean;
|
|
31
|
+
hasSelectedFilter: boolean;
|
|
32
|
+
containerStyle?: CSSProperties;
|
|
33
|
+
}): CSSProperties;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DashboardFilter, PortletConfig } from '../../types.js';
|
|
2
|
+
export interface EffectiveFilterField {
|
|
3
|
+
field: string;
|
|
4
|
+
isOverride: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function resolveEffectiveFilterField(params: {
|
|
7
|
+
isInSelectionMode: boolean;
|
|
8
|
+
hasSelectedFilter: boolean;
|
|
9
|
+
selectedFilterId: string | null | undefined;
|
|
10
|
+
dashboardFilters?: DashboardFilter[];
|
|
11
|
+
dashboardFilterMapping: PortletConfig['dashboardFilterMapping'];
|
|
12
|
+
}): EffectiveFilterField | null;
|