drizzle-cube 0.5.8 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/adapters/adapters/hono/agent-handler.d.ts +9 -0
- package/dist/adapters/adapters/hono/mcp-handler.d.ts +37 -0
- package/dist/adapters/adapters/mcp-tools-handlers.d.ts +18 -0
- package/dist/adapters/adapters/nextjs/mcp-handler.d.ts +36 -0
- package/dist/adapters/adapters/utils.d.ts +6 -81
- package/dist/adapters/express/index.cjs +1 -1
- package/dist/adapters/express/index.js +50 -50
- package/dist/adapters/fastify/index.cjs +1 -1
- package/dist/adapters/fastify/index.js +78 -78
- package/dist/adapters/google-BOnRIN1w.cjs +2 -0
- package/dist/adapters/{google-CFYljAOF.js → 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/index.cjs +2 -2
- package/dist/adapters/hono/index.js +205 -175
- package/dist/adapters/locale-DDvZDFVn.js +8114 -0
- package/dist/adapters/locale-ZLUUNUxr.cjs +166 -0
- package/dist/adapters/mcp-tools.cjs +1 -1
- package/dist/adapters/mcp-tools.js +49 -38
- package/dist/adapters/mcp-transport-Chiaj4ll.cjs +40 -0
- package/dist/adapters/mcp-transport-H96VG3WY.js +591 -0
- package/dist/adapters/nextjs/index.cjs +1 -1
- package/dist/adapters/nextjs/index.js +190 -197
- package/dist/adapters/{openai-BZdAA7Ji.js → openai-cDlFSTk6.js} +60 -58
- package/dist/adapters/openai-vXvLni8v.cjs +1 -0
- 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/utils.js +2 -2
- package/dist/client/charts/ChartLoader.d.ts +2 -16
- package/dist/client/charts/chartComponentRegistry.d.ts +46 -0
- package/dist/client/charts/chartConfigHelpers.d.ts +38 -0
- 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-BPkfcTa8.js.map → RetentionCombinedChart-BgbDhsPz.js.map} +1 -1
- package/dist/client/chunks/{RetentionHeatmap-DGzLzr7h.js → RetentionHeatmap-DjXZaTPq.js} +5 -5
- package/dist/client/chunks/{RetentionHeatmap-DGzLzr7h.js.map → RetentionHeatmap-DjXZaTPq.js.map} +1 -1
- 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-DYKfyOI8.js.map → chart-box-plot-kkBixZ27.js.map} +1 -1
- 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-Dwc92Mrj.js.map → chart-candlestick-DZp19Tzh.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-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-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-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-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-dgUetjyM.js.map → chart-markdown-CV75S_zL.js.map} +1 -1
- package/dist/client/chunks/{chart-measure-profile-ClfpLs4q.js → chart-measure-profile-Ket8fJyf.js} +7 -7
- package/dist/client/chunks/{chart-measure-profile-ClfpLs4q.js.map → chart-measure-profile-Ket8fJyf.js.map} +1 -1
- 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-M3XpO_ah.js.map → chart-sankey-DjrvKw6K.js.map} +1 -1
- 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-A_u6lqlS.js.map → chart-sunburst-leGpuDj7.js.map} +1 -1
- 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-BuhMoagf.js.map → chart-waterfall-DyvQReN5.js.map} +1 -1
- package/dist/client/chunks/{charts-core-jRtb0S2M.js → charts-core-DaXSt1Dd.js} +2 -2
- package/dist/client/chunks/{charts-core-jRtb0S2M.js.map → charts-core-DaXSt1Dd.js.map} +1 -1
- 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-DE09kQE3.js.map → schema-visualization-Cb_E9_Gd.js.map} +1 -1
- 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-DlnXWdmz.js.map → useExplainAI-evnZkjCY.js.map} +1 -1
- package/dist/client/chunks/{utils-CTKNaXS8.js → utils-3P6z1vz5.js} +2 -2
- package/dist/client/chunks/{utils-CTKNaXS8.js.map → utils-3P6z1vz5.js.map} +1 -1
- 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/components/AgenticNotebook/agentChatParts.d.ts +34 -0
- package/dist/client/components/AgenticNotebook/chatMessageParts.d.ts +39 -0
- 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/AnalysisQueryPanelParts.d.ts +64 -0
- package/dist/client/components/AnalysisBuilder/AnalysisResultsHeader.d.ts +67 -0
- package/dist/client/components/AnalysisBuilder/BreakdownComparisonToggle.d.ts +13 -0
- package/dist/client/components/AnalysisBuilder/BreakdownRow.d.ts +26 -0
- package/dist/client/components/AnalysisBuilder/DisplayOptionControl.d.ts +10 -0
- package/dist/client/components/AnalysisBuilder/ExecutionPlanPanelParts.d.ts +22 -0
- package/dist/client/components/AnalysisBuilder/FieldSearchResults.d.ts +16 -0
- package/dist/client/components/AnalysisBuilder/FilterValueInput.d.ts +63 -0
- package/dist/client/components/AnalysisBuilder/FlowDepthControls.d.ts +10 -0
- package/dist/client/components/AnalysisBuilder/FlowVisualizationPicker.d.ts +7 -0
- package/dist/client/components/AnalysisBuilder/LegacyBooleanOptions.d.ts +8 -0
- package/dist/client/components/AnalysisBuilder/MetricRow.d.ts +23 -0
- 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/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 +5 -0
- 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/DashboardFilters/CompactFilterBarParts.d.ts +26 -0
- package/dist/client/components/DashboardFilters/DashboardFilterConfigModalParts.d.ts +27 -0
- package/dist/client/components/DashboardFilters/DashboardFilterValueInput.d.ts +39 -0
- 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/DashboardPortletCard.d.ts +2 -57
- 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.helpers.d.ts +33 -0
- package/dist/client/components/charts/ActivityGridChart.render.d.ts +31 -0
- package/dist/client/components/charts/AxisFormatControls.d.ts +3 -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/BubbleChart.helpers.d.ts +43 -0
- package/dist/client/components/charts/BubbleChart.render.d.ts +21 -0
- package/dist/client/components/charts/ChartStates.d.ts +38 -0
- 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/HeatMapCanvas.d.ts +25 -0
- package/dist/client/components/charts/HeatMapChart.helpers.d.ts +64 -0
- package/dist/client/components/charts/KpiDelta.helpers.d.ts +20 -0
- 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/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/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/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/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/DashboardEditBar.d.ts +5 -0
- package/dist/client/components/dashboard/LayoutModeToggle.d.ts +10 -0
- 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/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/utils.d.ts +4 -43
- 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/drillNavigation.d.ts +25 -0
- package/dist/client/hooks.js +3 -3
- package/dist/client/icons.js +2 -2
- package/dist/client/index.js +816 -669
- package/dist/client/index.js.map +1 -1
- package/dist/client/providers.js +3 -3
- package/dist/client/schema.js +1 -1
- package/dist/client/shared/chartConfigBuilders.d.ts +18 -0
- package/dist/client/shared/components/QueryAnalysisPanel.sections.d.ts +41 -0
- package/dist/client/shared/queryTransforms.d.ts +20 -0
- package/dist/client/shared/utils.d.ts +2 -4
- package/dist/client/stores/optionsToAnalysisConfig.d.ts +17 -0
- package/dist/client/styles.css +1 -1
- package/dist/client/utils/axisValueFormatting.d.ts +32 -0
- package/dist/client/utils/timeValueFormatting.d.ts +32 -0
- 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/google-BOnRIN1w.cjs +2 -0
- package/dist/server/{google-CFYljAOF.js → google-CvKM9yVM.js} +83 -71
- package/dist/server/index.cjs +179 -211
- package/dist/server/index.js +6330 -6458
- package/dist/server/{openai-BZdAA7Ji.js → openai-cDlFSTk6.js} +60 -58
- package/dist/server/openai-vXvLni8v.cjs +1 -0
- package/dist/server/server/adapters/base-adapter.d.ts +80 -35
- package/dist/server/server/adapters/databend-adapter.d.ts +8 -59
- package/dist/server/server/adapters/duckdb-adapter.d.ts +5 -59
- package/dist/server/server/adapters/mysql-adapter.d.ts +13 -70
- package/dist/server/server/adapters/postgres-adapter.d.ts +1 -65
- package/dist/server/server/adapters/snowflake-adapter.d.ts +5 -68
- package/dist/server/server/adapters/sqlite-adapter.d.ts +12 -32
- package/dist/server/server/adapters/window-function-builder.d.ts +11 -0
- package/dist/server/server/agent/chart-validation.d.ts +0 -5
- package/dist/server/server/agent/handler-steps.d.ts +37 -0
- package/dist/server/server/ai/discovery-helpers.d.ts +29 -0
- package/dist/server/server/ai/discovery.d.ts +4 -0
- package/dist/server/server/ai/suggestion-helpers.d.ts +33 -0
- package/dist/server/server/ai/suggestion.d.ts +0 -3
- package/dist/server/server/ai/validation-helpers.d.ts +21 -0
- package/dist/server/server/ai/validation.d.ts +0 -3
- package/dist/server/server/builders/analysis-utils.d.ts +106 -0
- package/dist/server/server/builders/cte-builder.d.ts +46 -0
- package/dist/server/server/builders/date-time-builder.d.ts +5 -0
- package/dist/server/server/builders/date-time-helpers.d.ts +34 -0
- package/dist/server/server/builders/filter-builder.d.ts +2 -0
- package/dist/server/server/builders/filter-operators.d.ts +23 -0
- package/dist/server/server/builders/flow-query-builder.d.ts +46 -19
- package/dist/server/server/builders/funnel-query-builder.d.ts +16 -5
- package/dist/server/server/builders/group-by-builder.d.ts +11 -0
- package/dist/server/server/builders/measure-builder.d.ts +43 -0
- package/dist/server/server/builders/retention-query-builder.d.ts +12 -14
- package/dist/server/server/cache-utils.d.ts +25 -5
- package/dist/server/server/compiler-metadata.d.ts +11 -0
- package/dist/server/server/compiler.d.ts +8 -14
- package/dist/server/server/cube-utils.d.ts +29 -4
- package/dist/server/server/execution/annotation-builder.d.ts +12 -0
- package/dist/server/server/execution/filter-cache-preloader.d.ts +19 -0
- package/dist/server/server/execution/mode-router.d.ts +25 -0
- package/dist/server/server/execution/query-result-cache.d.ts +21 -0
- package/dist/server/server/execution/result-post-processor.d.ts +10 -0
- package/dist/server/server/executor.d.ts +33 -30
- package/dist/server/server/executors/explain-utils.d.ts +28 -0
- package/dist/server/server/explain/explain-tree.d.ts +20 -0
- package/dist/server/server/filter-cache.d.ts +2 -2
- package/dist/server/server/gap-filler.d.ts +6 -0
- package/dist/server/server/index.d.ts +3 -1
- package/dist/server/server/logical-plan/cte-planner-helpers.d.ts +37 -0
- package/dist/server/server/logical-plan/cte-planner.d.ts +104 -0
- package/dist/server/server/logical-plan/filter-propagation.d.ts +44 -0
- package/dist/server/server/logical-plan/index.d.ts +6 -1
- package/dist/server/server/logical-plan/join-planner.d.ts +27 -0
- package/dist/server/server/logical-plan/logical-planner.d.ts +7 -200
- package/dist/server/server/logical-plan/optimiser.d.ts +3 -1
- package/dist/server/server/logical-plan/plan-analysis-reporter.d.ts +59 -0
- package/dist/server/server/logical-plan/planner-utils.d.ts +20 -0
- package/dist/server/server/logical-plan/types.d.ts +17 -9
- package/dist/server/server/measure-classification.d.ts +40 -0
- package/dist/server/server/physical-plan/drizzle-plan-builder.d.ts +21 -21
- package/dist/server/server/physical-plan/drizzle-sql-builder.d.ts +11 -0
- package/dist/server/server/physical-plan/processors/index.d.ts +2 -0
- package/dist/server/server/physical-plan/processors/keys-dedup-processor.d.ts +13 -0
- package/dist/server/server/physical-plan/processors/multi-fact-processor.d.ts +13 -0
- package/dist/server/server/physical-plan/processors/shared.d.ts +5 -0
- package/dist/server/server/query-handlers.d.ts +79 -0
- package/dist/server/server/query-modes.d.ts +28 -0
- package/dist/server/server/query-validator.d.ts +9 -0
- package/dist/server/server/resolvers/calculated-measure-resolver.d.ts +5 -0
- package/dist/server/server/resolvers/join-path-resolver.d.ts +6 -0
- package/dist/server/server/sql-format.d.ts +11 -0
- package/dist/server/server/types/cube.d.ts +18 -4
- package/dist/server/server/types/flow.d.ts +6 -5
- package/dist/server/server/types/index.d.ts +1 -1
- package/dist/server/server/types/validation.d.ts +14 -0
- package/package.json +11 -4
- 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/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-bubble-CfqiB538.js +0 -273
- package/dist/client/chunks/chart-bubble-CfqiB538.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-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-scatter-DaHYP_OL.js +0 -255
- package/dist/client/chunks/chart-scatter-DaHYP_OL.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/useDirtyStateTracking-CoeQbprt.js.map +0 -1
- package/dist/server/google-DUlXeeDA.cjs +0 -2
- package/dist/server/openai-D_U4V0kT.cjs +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Filter value formatting utilities for compact chips.
|
|
3
|
+
*
|
|
4
|
+
* Split out of `shared/utils.ts` by concern. Re-exported from there to keep
|
|
5
|
+
* existing import paths stable.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Format filter value for display in a compact chip
|
|
9
|
+
*/
|
|
10
|
+
export declare function formatFilterValueDisplay(values: any[], operator: string): string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DateRangeType } from '../types';
|
|
2
|
+
interface FilterDateRangeSelectorProps {
|
|
3
|
+
rangeType: DateRangeType;
|
|
4
|
+
selectedRangeLabel: string;
|
|
5
|
+
numberValue: number;
|
|
6
|
+
customDates: {
|
|
7
|
+
startDate: string;
|
|
8
|
+
endDate: string;
|
|
9
|
+
};
|
|
10
|
+
isDropdownOpen: boolean;
|
|
11
|
+
onDropdownToggle: () => void;
|
|
12
|
+
onRangeTypeChange: (rangeType: DateRangeType) => void;
|
|
13
|
+
onCustomDateChange: (field: 'startDate' | 'endDate', value: string) => void;
|
|
14
|
+
onNumberChange: (value: number) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare function FilterDateRangeSelector({ rangeType, selectedRangeLabel, numberValue, customDates, isDropdownOpen, onDropdownToggle, onRangeTypeChange, onCustomDateChange, onNumberChange }: FilterDateRangeSelectorProps): import("react").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MetaField } from '../types';
|
|
3
|
+
interface FilterFieldDropdownProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
selectedField: MetaField | undefined;
|
|
6
|
+
selectedMember: string | undefined;
|
|
7
|
+
fieldSearchTerm: string;
|
|
8
|
+
filteredQueryFields: MetaField[];
|
|
9
|
+
filteredAllFields: MetaField[];
|
|
10
|
+
searchInputRef: React.RefObject<HTMLInputElement>;
|
|
11
|
+
onToggle: () => void;
|
|
12
|
+
onSearchTermChange: (term: string) => void;
|
|
13
|
+
onFieldChange: (fieldName: string) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function FilterFieldDropdown({ isOpen, selectedField, selectedMember, fieldSearchTerm, filteredQueryFields, filteredAllFields, searchInputRef, onToggle, onSearchTermChange, onFieldChange }: FilterFieldDropdownProps): React.JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DateRangeType } from '../types';
|
|
2
|
+
export interface ResolvedDateRangeState {
|
|
3
|
+
rangeType: DateRangeType;
|
|
4
|
+
customDates?: {
|
|
5
|
+
startDate: string;
|
|
6
|
+
endDate: string;
|
|
7
|
+
};
|
|
8
|
+
numberValue?: number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Resolve the UI date-range state for a stored filter dateRange.
|
|
12
|
+
* Returns null when there is nothing to sync.
|
|
13
|
+
*/
|
|
14
|
+
export declare function resolveDateRangeState(dateRange: string | string[] | undefined): ResolvedDateRangeState | null;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MetaField } from '../types';
|
|
2
|
+
/** Icon for a field based on its type. */
|
|
3
|
+
export declare function getFieldTypeIcon(field: MetaField): import("react").JSX.Element;
|
|
4
|
+
/** Single-letter badge for a field based on its type. */
|
|
5
|
+
export declare function getFieldTypeBadge(field: MetaField): import("react").JSX.Element;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type ChangeHandler = (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
3
|
+
export declare function NoValueInput(): React.JSX.Element;
|
|
4
|
+
interface DateRangeInputProps {
|
|
5
|
+
values: any[];
|
|
6
|
+
onStartChange: ChangeHandler;
|
|
7
|
+
onEndChange: ChangeHandler;
|
|
8
|
+
}
|
|
9
|
+
export declare function DateRangeInput({ values, onStartChange, onEndChange }: DateRangeInputProps): React.JSX.Element;
|
|
10
|
+
interface BetweenInputProps {
|
|
11
|
+
values: any[];
|
|
12
|
+
onStartChange: ChangeHandler;
|
|
13
|
+
onEndChange: ChangeHandler;
|
|
14
|
+
}
|
|
15
|
+
export declare function BetweenInput({ values, onStartChange, onEndChange }: BetweenInputProps): React.JSX.Element;
|
|
16
|
+
interface SingleDateInputProps {
|
|
17
|
+
values: any[];
|
|
18
|
+
onChange: ChangeHandler;
|
|
19
|
+
}
|
|
20
|
+
export declare function SingleDateInput({ values, onChange }: SingleDateInputProps): React.JSX.Element;
|
|
21
|
+
interface NumberInputProps {
|
|
22
|
+
values: any[];
|
|
23
|
+
onChange: ChangeHandler;
|
|
24
|
+
}
|
|
25
|
+
export declare function NumberInput({ values, onChange }: NumberInputProps): React.JSX.Element;
|
|
26
|
+
interface TextInputProps {
|
|
27
|
+
values: any[];
|
|
28
|
+
onChange: ChangeHandler;
|
|
29
|
+
valueType: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function TextInput({ values, onChange, valueType }: TextInputProps): React.JSX.Element;
|
|
32
|
+
interface MultiDateInputProps {
|
|
33
|
+
values: any[];
|
|
34
|
+
onValuesChange: (values: any[]) => void;
|
|
35
|
+
onValueRemove: (value: any) => void;
|
|
36
|
+
}
|
|
37
|
+
export declare function MultiDateInput({ values, onValuesChange, onValueRemove }: MultiDateInputProps): React.JSX.Element;
|
|
38
|
+
interface ComboBoxInputProps {
|
|
39
|
+
dropdownRef: React.RefObject<HTMLDivElement>;
|
|
40
|
+
supportsMultipleValues: boolean;
|
|
41
|
+
values: any[];
|
|
42
|
+
isOpen: boolean;
|
|
43
|
+
searchText: string;
|
|
44
|
+
hasLoadedInitial: boolean;
|
|
45
|
+
valuesLoading: boolean;
|
|
46
|
+
valuesError: any;
|
|
47
|
+
distinctValues: any[];
|
|
48
|
+
onValuesChange: (values: any[]) => void;
|
|
49
|
+
onValueRemove: (value: any) => void;
|
|
50
|
+
onValueSelect: (value: any) => void;
|
|
51
|
+
onToggle: () => void;
|
|
52
|
+
onSearchChange: ChangeHandler;
|
|
53
|
+
}
|
|
54
|
+
export declare function ComboBoxInput({ dropdownRef, supportsMultipleValues, values, isOpen, searchText, hasLoadedInitial, valuesLoading, valuesError, distinctValues, onValuesChange, onValueRemove, onValueSelect, onToggle, onSearchChange }: ComboBoxInputProps): React.JSX.Element;
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ChangeEvent } from 'react';
|
|
2
|
+
import { FilterValueSelectorProps } from '../types';
|
|
3
|
+
declare const COMBO_OPERATORS: string[];
|
|
4
|
+
export declare function useFilterValueSelectorState({ fieldName, operator, values, onValuesChange, schema }: FilterValueSelectorProps): {
|
|
5
|
+
operatorMeta: import('../../../shared').FilterOperatorMeta;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
searchText: string;
|
|
8
|
+
hasLoadedInitial: boolean;
|
|
9
|
+
dropdownRef: import('react').RefObject<HTMLDivElement>;
|
|
10
|
+
isTimeDimension: boolean;
|
|
11
|
+
shouldShowComboBox: boolean;
|
|
12
|
+
distinctValues: any[];
|
|
13
|
+
valuesLoading: boolean;
|
|
14
|
+
valuesError: string | null;
|
|
15
|
+
handleDropdownToggle: () => void;
|
|
16
|
+
handleSearchChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
17
|
+
handleValueSelect: (value: any) => void;
|
|
18
|
+
handleValueRemove: (valueToRemove: any) => void;
|
|
19
|
+
handleDirectInput: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
20
|
+
handleDateInput: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
21
|
+
handleDateRangeEndInput: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
22
|
+
handleBetweenStartInput: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
23
|
+
handleBetweenEndInput: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
24
|
+
};
|
|
25
|
+
export { COMBO_OPERATORS };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CubeQuery, SimpleFilter } from '../../types';
|
|
2
|
+
import { MetaResponse } from './types';
|
|
3
|
+
/** Collect the set of field names currently selected by a query. */
|
|
4
|
+
export declare function getSelectedFieldNames(query: CubeQuery): Set<string>;
|
|
5
|
+
/**
|
|
6
|
+
* Validate operator compatibility / value requirements for a filter.
|
|
7
|
+
* Assumes the filter member is already known to exist.
|
|
8
|
+
*/
|
|
9
|
+
export declare function validateFilterOperator(filter: SimpleFilter, schema: MetaResponse): string[];
|
|
10
|
+
/**
|
|
11
|
+
* Get sort direction for a field from the order object
|
|
12
|
+
*/
|
|
13
|
+
export declare function getSortDirection(fieldName: string, order: Record<string, 'asc' | 'desc'> | undefined): 'asc' | 'desc' | null;
|
|
14
|
+
/**
|
|
15
|
+
* Get tooltip text for sort button based on current direction
|
|
16
|
+
*/
|
|
17
|
+
export declare function getSortTooltip(direction: 'asc' | 'desc' | null): string;
|
|
18
|
+
/**
|
|
19
|
+
* Get next sort direction in the cycle: null -> asc -> desc -> null
|
|
20
|
+
*/
|
|
21
|
+
export declare function getNextSortDirection(current: 'asc' | 'desc' | null): 'asc' | 'desc' | null;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { CubeQuery, Filter, SimpleFilter } from '../../types';
|
|
2
2
|
import { MetaField, MetaResponse } from './types';
|
|
3
|
+
export { getSortDirection, getSortTooltip, getNextSortDirection, } from './queryFieldUtils';
|
|
4
|
+
export type { DatePreset } from './dateRangeUtils';
|
|
5
|
+
export { DATE_PRESETS, XTD_OPTIONS, calculateDateRange, formatDateRangeDisplay, detectPresetFromDateRange, } from './dateRangeUtils';
|
|
6
|
+
export { formatFilterValueDisplay } from './filterDisplayUtils';
|
|
3
7
|
export { isSimpleFilter, isGroupFilter, isAndFilter, isOrFilter, flattenFilters, countFilters, createSimpleFilter, createAndFilter, createOrFilter, cleanupFilters, transformFiltersForServer, transformFiltersFromServer, hasQueryContent, cleanQuery, cleanQueryForServer, transformQueryForUI, getCubeNameFromField, getFieldType, getFieldTitle, getAvailableOperators, getAllFilterableFields, convertDateRangeTypeToValue, requiresNumberInput, formatDateForCube, } from '../../shared/utils';
|
|
4
8
|
/**
|
|
5
9
|
* Check if a field is selected in the current query
|
|
@@ -65,46 +69,3 @@ export declare function hasTimeDimensions(query: CubeQuery): boolean;
|
|
|
65
69
|
* Clean up order object by removing fields that are no longer in the query
|
|
66
70
|
*/
|
|
67
71
|
export declare function cleanupOrder(order: Record<string, 'asc' | 'desc'> | undefined, query: CubeQuery): Record<string, 'asc' | 'desc'> | undefined;
|
|
68
|
-
/**
|
|
69
|
-
* Get sort direction for a field from the order object
|
|
70
|
-
*/
|
|
71
|
-
export declare function getSortDirection(fieldName: string, order: Record<string, 'asc' | 'desc'> | undefined): 'asc' | 'desc' | null;
|
|
72
|
-
/**
|
|
73
|
-
* Get tooltip text for sort button based on current direction
|
|
74
|
-
*/
|
|
75
|
-
export declare function getSortTooltip(direction: 'asc' | 'desc' | null): string;
|
|
76
|
-
/**
|
|
77
|
-
* Get next sort direction in the cycle: null -> asc -> desc -> null
|
|
78
|
-
*/
|
|
79
|
-
export declare function getNextSortDirection(current: 'asc' | 'desc' | null): 'asc' | 'desc' | null;
|
|
80
|
-
/**
|
|
81
|
-
* Date preset configuration for compact filter bar
|
|
82
|
-
*/
|
|
83
|
-
export interface DatePreset {
|
|
84
|
-
id: string;
|
|
85
|
-
label: string;
|
|
86
|
-
value: string;
|
|
87
|
-
}
|
|
88
|
-
export declare const DATE_PRESETS: DatePreset[];
|
|
89
|
-
export declare const XTD_OPTIONS: DatePreset[];
|
|
90
|
-
/**
|
|
91
|
-
* Calculate actual date range from a preset string
|
|
92
|
-
* Returns start and end dates for display purposes
|
|
93
|
-
*/
|
|
94
|
-
export declare function calculateDateRange(preset: string): {
|
|
95
|
-
start: Date;
|
|
96
|
-
end: Date;
|
|
97
|
-
} | null;
|
|
98
|
-
/**
|
|
99
|
-
* Format a date range for display (e.g., "Jan 1, 2024 - Jan 31, 2024")
|
|
100
|
-
*/
|
|
101
|
-
export declare function formatDateRangeDisplay(start: Date, end: Date): string;
|
|
102
|
-
/**
|
|
103
|
-
* Detect preset ID from a date range value
|
|
104
|
-
* Returns the preset ID (e.g., '7d', 'mtd') or 'custom' if not a preset
|
|
105
|
-
*/
|
|
106
|
-
export declare function detectPresetFromDateRange(dateRange: string | string[] | undefined): string | null;
|
|
107
|
-
/**
|
|
108
|
-
* Format filter value for display in a compact chip
|
|
109
|
-
*/
|
|
110
|
-
export declare function formatFilterValueDisplay(values: any[], operator: string): string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as p, n as m, o as h, r as g, s as _, t as v } from "./chunks/utils-
|
|
3
|
-
export { d as AnalysisDisplayConfigPanel, u as AnalyticsDashboard,
|
|
1
|
+
import { C as e, D as t, E as n, Y as r, a as i, h as a, i as o, m as s, n as c, p as l, r as u, s as d, t as f } from "./chunks/DashboardEditModal-okVfH8ZK.js";
|
|
2
|
+
import { a as p, n as m, o as h, r as g, s as _, t as v } from "./chunks/utils-3P6z1vz5.js";
|
|
3
|
+
export { d as AnalysisDisplayConfigPanel, u as AnalyticsDashboard, r as AnalyticsPortlet, f as DashboardEditModal, a as DashboardFilterBar, o as DashboardGrid, s as DashboardGridSurface, i as DashboardModals, n as DashboardProvider, e as DashboardToolbar, l as Modal, c as PortletContainer, v as createDashboardLayout, m as createSamplePortlet, g as findNextPosition, p as generatePortletId, h as generateResponsiveLayouts, t as useDashboardContext, _ as validateCubeQuery };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { PortletBlock, MarkdownBlock } from '../stores/notebookStore';
|
|
2
|
+
/** Clean up raw API errors into user-friendly messages */
|
|
3
|
+
export declare function formatUserFacingError(message: string): string;
|
|
4
|
+
export interface AgentSSEEvent {
|
|
5
|
+
type: 'text_delta' | 'tool_use_start' | 'tool_use_result' | 'add_portlet' | 'add_markdown' | 'dashboard_saved' | 'turn_complete' | 'done' | 'error';
|
|
6
|
+
data: any;
|
|
7
|
+
}
|
|
8
|
+
/** Subset of the hook options that handleAgentEvent dispatches to. */
|
|
9
|
+
export interface AgentEventCallbacks {
|
|
10
|
+
onAddPortlet: (data: PortletBlock) => void;
|
|
11
|
+
onAddMarkdown: (data: MarkdownBlock) => void;
|
|
12
|
+
onDashboardSaved?: (data: {
|
|
13
|
+
title: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
dashboardConfig: any;
|
|
16
|
+
}) => void;
|
|
17
|
+
onTextDelta: (text: string) => void;
|
|
18
|
+
onToolStart: (id: string, name: string, input?: unknown) => void;
|
|
19
|
+
onToolResult: (id: string, name: string, result?: unknown, isError?: boolean) => void;
|
|
20
|
+
onDone: (sessionId: string, traceId?: string) => void;
|
|
21
|
+
onTurnComplete?: () => void;
|
|
22
|
+
onError: (message: string) => void;
|
|
23
|
+
}
|
|
24
|
+
/** Dispatch a single decoded SSE event to the relevant callback. */
|
|
25
|
+
export declare function handleAgentEvent(event: AgentSSEEvent, cb: AgentEventCallbacks): void;
|
|
26
|
+
/**
|
|
27
|
+
* Parse one block of SSE text (possibly multi-line) and dispatch each
|
|
28
|
+
* `data: ` line. Malformed JSON lines are skipped silently.
|
|
29
|
+
*/
|
|
30
|
+
export declare function dispatchSSEBlock(block: string, dispatch: (event: AgentSSEEvent) => void): void;
|
|
31
|
+
export interface AgentRequestHeaderOptions {
|
|
32
|
+
baseHeaders?: Record<string, string>;
|
|
33
|
+
agentApiKey?: string;
|
|
34
|
+
agentProvider?: string;
|
|
35
|
+
agentModel?: string;
|
|
36
|
+
agentProviderEndpoint?: string;
|
|
37
|
+
}
|
|
38
|
+
/** Build request headers matching CubeClient's auth pattern plus agent overrides. */
|
|
39
|
+
export declare function buildAgentHeaders(opts: AgentRequestHeaderOptions): Record<string, string>;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure mode-selection helpers for useAnalysisQueryExecution.
|
|
3
|
+
*
|
|
4
|
+
* The hook coordinates five execution modes (retention, flow, funnel, multi,
|
|
5
|
+
* single). Almost every derived value is "pick the field from whichever mode is
|
|
6
|
+
* active". These helpers collapse the repeated 5-way ternary chains into a
|
|
7
|
+
* single normalized per-mode descriptor plus a selector, without changing any
|
|
8
|
+
* behaviour: the selected values are byte-for-byte equivalent to the original
|
|
9
|
+
* nested ternaries.
|
|
10
|
+
*/
|
|
11
|
+
/** The active execution mode, in priority order (retention > flow > funnel > multi > single). */
|
|
12
|
+
export type ActiveMode = 'retention' | 'flow' | 'funnel' | 'multi' | 'single';
|
|
13
|
+
export interface ModeFlags {
|
|
14
|
+
isRetentionMode: boolean | undefined;
|
|
15
|
+
isFlowMode: boolean | undefined;
|
|
16
|
+
isFunnelMode: boolean | undefined;
|
|
17
|
+
isMultiMode: boolean | undefined;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Resolve the single active mode from the boolean flags, using the same
|
|
21
|
+
* precedence as the original nested ternaries (retention first, single last).
|
|
22
|
+
*/
|
|
23
|
+
export declare function resolveActiveMode(flags: ModeFlags): ActiveMode;
|
|
24
|
+
/**
|
|
25
|
+
* A value resolved per-mode. Pass the value each mode contributes; `pickByMode`
|
|
26
|
+
* returns the one for the active mode. This mirrors the original
|
|
27
|
+
* `isRetentionMode ? a : isFlowMode ? b : ...` chains exactly. Each field may
|
|
28
|
+
* have its own type — the return type is the union across all modes.
|
|
29
|
+
*/
|
|
30
|
+
export type PerMode<R extends Record<ActiveMode, unknown>> = R;
|
|
31
|
+
export declare function pickByMode<R extends Record<ActiveMode, unknown>>(mode: ActiveMode, values: R): R[ActiveMode];
|
|
32
|
+
/**
|
|
33
|
+
* Inputs for deriving the per-mode "debug / server query / chart data" outputs.
|
|
34
|
+
* Each field is the raw value the corresponding mode hook exposes; the helper
|
|
35
|
+
* gates it on the matching mode flag (returning null otherwise), exactly as the
|
|
36
|
+
* original inline `isXMode ? value : null` expressions did.
|
|
37
|
+
*/
|
|
38
|
+
export interface ModeOutputsInput<FunnelExecuted, FunnelServer, FlowServer, FlowChart, RetentionServer, RetentionChart, Debug> {
|
|
39
|
+
isFunnelMode: boolean | undefined;
|
|
40
|
+
isFlowMode: boolean;
|
|
41
|
+
isRetentionMode: boolean;
|
|
42
|
+
funnelExecutedQueries: FunnelExecuted[] | undefined;
|
|
43
|
+
funnelServerQuery: FunnelServer;
|
|
44
|
+
funnelDebugData: Debug;
|
|
45
|
+
flowServerQuery: FlowServer;
|
|
46
|
+
flowData: FlowChart;
|
|
47
|
+
flowDebugData: Debug;
|
|
48
|
+
retentionServerQuery: RetentionServer;
|
|
49
|
+
retentionChartData: RetentionChart;
|
|
50
|
+
retentionDebugData: Debug;
|
|
51
|
+
}
|
|
52
|
+
export interface ModeOutputs<FunnelExecuted, FunnelServer, FlowServer, FlowChart, RetentionServer, RetentionChart, Debug> {
|
|
53
|
+
funnelExecutedQueries: FunnelExecuted[] | null;
|
|
54
|
+
funnelServerQuery: FunnelServer | null;
|
|
55
|
+
funnelDebugData: Debug | null;
|
|
56
|
+
flowServerQuery: FlowServer | null;
|
|
57
|
+
flowChartData: FlowChart | null;
|
|
58
|
+
flowDebugData: Debug | null;
|
|
59
|
+
retentionServerQuery: RetentionServer | null;
|
|
60
|
+
retentionChartData: RetentionChart | null;
|
|
61
|
+
retentionDebugData: Debug | null;
|
|
62
|
+
}
|
|
63
|
+
export declare function deriveModeOutputs<FunnelExecuted, FunnelServer, FlowServer, FlowChart, RetentionServer, RetentionChart, Debug>(input: ModeOutputsInput<FunnelExecuted, FunnelServer, FlowServer, FlowChart, RetentionServer, RetentionChart, Debug>): ModeOutputs<FunnelExecuted, FunnelServer, FlowServer, FlowChart, RetentionServer, RetentionChart, Debug>;
|
|
64
|
+
/** Inputs for computing the per-query-hook `skip` flags. */
|
|
65
|
+
export interface SkipFlagsInput {
|
|
66
|
+
isValidQuery: boolean;
|
|
67
|
+
isSingleMode: boolean;
|
|
68
|
+
isMultiMode: boolean;
|
|
69
|
+
isFunnelMode: boolean | undefined;
|
|
70
|
+
isFlowMode: boolean;
|
|
71
|
+
isRetentionMode: boolean;
|
|
72
|
+
hasMultiQueryConfig: boolean;
|
|
73
|
+
hasFunnelConfig: boolean;
|
|
74
|
+
hasServerFunnelQuery: boolean;
|
|
75
|
+
hasServerFlowQuery: boolean;
|
|
76
|
+
hasServerRetentionQuery: boolean;
|
|
77
|
+
}
|
|
78
|
+
export interface SkipFlags {
|
|
79
|
+
single: boolean;
|
|
80
|
+
multi: boolean;
|
|
81
|
+
funnel: boolean;
|
|
82
|
+
flow: boolean;
|
|
83
|
+
retention: boolean;
|
|
84
|
+
dryRun: boolean;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Compute the `skip` flag for each query hook. Extracted from the inline
|
|
88
|
+
* boolean expressions so the hook body stays flat. Logic is unchanged.
|
|
89
|
+
*/
|
|
90
|
+
export declare function computeSkipFlags(input: SkipFlagsInput): SkipFlags;
|
|
91
|
+
/** Inputs for the unified execution-status computation. */
|
|
92
|
+
export interface ExecutionStatusInput {
|
|
93
|
+
hasResults: unknown;
|
|
94
|
+
initialData: unknown[] | undefined;
|
|
95
|
+
isValidQuery: boolean;
|
|
96
|
+
isLoading: boolean;
|
|
97
|
+
isFetching: boolean;
|
|
98
|
+
error: unknown;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Compute the unified execution status. Extracted verbatim from the original
|
|
102
|
+
* useMemo body to keep the hook flat; the `hasResults` per-mode pick is done by
|
|
103
|
+
* the caller and passed in.
|
|
104
|
+
*/
|
|
105
|
+
export declare function computeExecutionStatus(input: ExecutionStatusInput): 'idle' | 'loading' | 'refreshing' | 'error' | 'success';
|
|
106
|
+
/** Inputs for computing the unified execution results array. */
|
|
107
|
+
export interface ExecutionResultsInput {
|
|
108
|
+
isRetentionMode: boolean;
|
|
109
|
+
isFlowMode: boolean;
|
|
110
|
+
isFunnelMode: boolean | undefined;
|
|
111
|
+
isMultiMode: boolean;
|
|
112
|
+
retentionChartData: {
|
|
113
|
+
rows: Array<{
|
|
114
|
+
period: number;
|
|
115
|
+
retentionRate: number;
|
|
116
|
+
retainedUsers: number;
|
|
117
|
+
cohortSize: number;
|
|
118
|
+
breakdownValue?: string | null;
|
|
119
|
+
}>;
|
|
120
|
+
} | null | undefined;
|
|
121
|
+
flowData: unknown;
|
|
122
|
+
funnelChartData: unknown[] | null | undefined;
|
|
123
|
+
multiData: unknown[] | null | undefined;
|
|
124
|
+
singleRawData: unknown[] | null | undefined;
|
|
125
|
+
initialData: unknown[] | undefined;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Compute the unified execution results array. This is a priority cascade
|
|
129
|
+
* (not a strict per-mode pick): when the active mode has no data yet, it falls
|
|
130
|
+
* through to lower-priority sources, ending at initialData. Extracted verbatim
|
|
131
|
+
* from the original useMemo body to preserve behaviour.
|
|
132
|
+
*/
|
|
133
|
+
export declare function computeExecutionResults(input: ExecutionResultsInput): unknown[] | null;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DrillOption, DrillPathEntry } from '../types/drill';
|
|
2
|
+
import { ChartAxisConfig, CubeQuery } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Find an existing drill-path level for the given option and compute the
|
|
5
|
+
* "navigate back" descriptor (the truncated path + the query/chartConfig to
|
|
6
|
+
* restore). Returns null when there is no matching existing level.
|
|
7
|
+
*
|
|
8
|
+
* Used for both time-granularity drilling (matched by `granularity`) and
|
|
9
|
+
* hierarchy-dimension drilling (matched by `dimension`).
|
|
10
|
+
*/
|
|
11
|
+
export declare function findNavigateBackToExistingLevel(drillPath: DrillPathEntry[], matches: (entry: DrillPathEntry) => boolean): {
|
|
12
|
+
newPath: DrillPathEntry[];
|
|
13
|
+
query: CubeQuery;
|
|
14
|
+
chartConfig: ChartAxisConfig | null;
|
|
15
|
+
} | null;
|
|
16
|
+
/**
|
|
17
|
+
* Whether selecting this option means returning all the way to the root via the
|
|
18
|
+
* original time granularity.
|
|
19
|
+
*/
|
|
20
|
+
export declare function isDrillBackToRootGranularity(option: DrillOption, originalGranularity: string | null): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Compute the granularity to remember as the "original" when first drilling via
|
|
23
|
+
* a time-granularity option. Returns null when nothing should be stored.
|
|
24
|
+
*/
|
|
25
|
+
export declare function computeOriginalGranularity(option: DrillOption, query: CubeQuery): string | null;
|
package/dist/client/hooks.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { S as t, a as n, c as r, d as i, i as a, l as o, n as s, o as c, r as l, s as u, t as d } from "./chunks/useDirtyStateTracking-
|
|
3
|
-
import { a as f, i as p, n as m, o as h, r as g, t as _ } from "./chunks/useExplainAI-
|
|
1
|
+
import { R as e } from "./chunks/chart-data-table-CKauQXme.js";
|
|
2
|
+
import { S as t, a as n, c as r, d as i, i as a, l as o, n as s, o as c, r as l, s as u, t as d } from "./chunks/useDirtyStateTracking-MbpxH_v6.js";
|
|
3
|
+
import { a as f, i as p, n as m, o as h, r as g, t as _ } from "./chunks/useExplainAI-evnZkjCY.js";
|
|
4
4
|
import { t as v } from "./chunks/useNotebookLayout-Ck3Z3uzg.js";
|
|
5
5
|
export { m as createExplainQueryKey, c as createFlowQueryKey, r as createFunnelQueryKey, t as useCubeLoadQuery, t as useCubeQuery, e as useCubeMetaQuery, s as useDebounce, d as useDirtyStateTracking, p as useDryRunQueries, f as useDryRunQuery, _ as useExplainAI, g as useExplainQuery, l as useFilterValues, u as useFlowQuery, o as useFunnelQuery, i as useMultiCubeLoadQuery, h as useMultiDryRunQueries, v as useNotebookLayout, a as useResponsiveDashboard, n as useRetentionQuery };
|
package/dist/client/icons.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { C as e, E as t, S as n, T as r, _ as i, b as a, g as o, v as s, w as c, x as l, y as u } from "./chunks/chart-data-table-CKauQXme.js";
|
|
2
|
+
export { t as DEFAULT_ICONS, o as getChartTypeIcon, i as getFieldTypeIcon, s as getIcon, u as getIconData, a as getIconRegistry, l as getIconsByCategory, n as getMeasureTypeIcon, e as registerIcons, c as resetIcons, r as setIcon };
|