drizzle-cube 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/express/index.cjs +1 -1
- package/dist/adapters/express/index.js +1 -1
- package/dist/adapters/fastify/index.cjs +1 -1
- package/dist/adapters/fastify/index.js +1 -1
- package/dist/adapters/{handler-CfgE0JSL.js → handler-CtaSua-i.js} +1 -1
- package/dist/adapters/{handler-Cn0dOctE.cjs → handler-OwxSBJH8.cjs} +1 -1
- package/dist/adapters/hono/index.cjs +1 -1
- package/dist/adapters/hono/index.js +1 -1
- package/dist/adapters/nextjs/index.cjs +1 -1
- package/dist/adapters/nextjs/index.js +1 -1
- package/dist/{server/openai-B5jEiqiB.js → adapters/openai-CmVRIbUg.js} +18 -2
- package/dist/adapters/{openai-cDlFSTk6.js → openai-CtXqeznO.js} +1 -1
- package/dist/{server/openai-D0musiYP.cjs → adapters/openai-D-6l1Y8h.cjs} +3 -3
- package/dist/adapters/{openai-vXvLni8v.cjs → openai-DTSTMiXL.cjs} +1 -1
- package/dist/cjs/adapters/express/index.d.ts +114 -0
- package/dist/cjs/adapters/fastify/index.d.ts +113 -0
- package/dist/cjs/adapters/hono/agent-handler.d.ts +9 -0
- package/dist/cjs/adapters/hono/index.d.ts +120 -0
- package/dist/cjs/adapters/hono/mcp-handler.d.ts +37 -0
- package/dist/cjs/adapters/locale.d.ts +8 -0
- package/dist/cjs/adapters/mcp-tools-handlers.d.ts +18 -0
- package/dist/cjs/adapters/mcp-tools.d.ts +134 -0
- package/dist/cjs/adapters/mcp-transport.d.ts +158 -0
- package/dist/cjs/adapters/nextjs/index.d.ts +196 -0
- package/dist/cjs/adapters/nextjs/mcp-handler.d.ts +36 -0
- package/dist/cjs/adapters/types.d.ts +41 -0
- package/dist/cjs/adapters/utils.d.ts +354 -0
- package/dist/cjs/client/adapters/adapterRegistry.d.ts +44 -0
- package/dist/cjs/client/adapters/flowModeAdapter.d.ts +3 -0
- package/dist/cjs/client/adapters/funnelModeAdapter.d.ts +19 -0
- package/dist/cjs/client/adapters/index.d.ts +29 -0
- package/dist/cjs/client/adapters/modeAdapter.d.ts +117 -0
- package/dist/cjs/client/adapters/queryModeAdapter.d.ts +16 -0
- package/dist/cjs/client/adapters/retentionModeAdapter.d.ts +3 -0
- package/dist/cjs/client/charts/ChartLoader.d.ts +69 -0
- package/dist/cjs/client/charts/chartComponentRegistry.d.ts +46 -0
- package/dist/cjs/client/charts/chartConfigHelpers.d.ts +38 -0
- package/dist/cjs/client/charts/chartConfigRegistry.d.ts +15 -0
- package/dist/cjs/client/charts/chartConfigs.d.ts +142 -0
- package/dist/cjs/client/charts/chartPlugin.d.ts +74 -0
- package/dist/cjs/client/charts/lazyChartConfigRegistry.d.ts +100 -0
- package/dist/cjs/client/charts.d.ts +17 -0
- package/dist/cjs/client/client/BatchCoordinator.d.ts +38 -0
- package/dist/cjs/client/client/CubeClient.d.ts +32 -0
- package/dist/cjs/client/components/AIAssistant/constants.d.ts +11 -0
- package/dist/cjs/client/components/AIAssistant/index.d.ts +10 -0
- package/dist/cjs/client/components/AIAssistant/types.d.ts +49 -0
- package/dist/cjs/client/components/AIAssistant/utils.d.ts +17 -0
- package/dist/cjs/client/components/AgenticNotebook/AgentChatPanel.d.ts +27 -0
- package/dist/cjs/client/components/AgenticNotebook/ChatInput.d.ts +14 -0
- package/dist/cjs/client/components/AgenticNotebook/ChatMessage.d.ts +9 -0
- package/dist/cjs/client/components/AgenticNotebook/NotebookCanvas.d.ts +6 -0
- package/dist/cjs/client/components/AgenticNotebook/NotebookMarkdownBlock.d.ts +12 -0
- package/dist/cjs/client/components/AgenticNotebook/NotebookPortletBlock.d.ts +15 -0
- package/dist/cjs/client/components/AgenticNotebook/agentChatParts.d.ts +34 -0
- package/dist/cjs/client/components/AgenticNotebook/chatMessageParts.d.ts +39 -0
- package/dist/cjs/client/components/AgenticNotebook/index.d.ts +56 -0
- package/dist/cjs/client/components/AgenticNotebook/useAgentChatController.d.ts +25 -0
- package/dist/cjs/client/components/AgenticNotebook/useNotebookAutosave.d.ts +12 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisAIPanel.d.ts +25 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisAxisDropZone.d.ts +29 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisChartConfigPanel.d.ts +18 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisDisplayConfigPanel.d.ts +11 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisFilterGroup.d.ts +20 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisFilterItem.d.ts +14 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisFilterSection.d.ts +16 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisModeErrorBoundary.d.ts +27 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisQueryPanel.d.ts +12 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisQueryPanelParts.d.ts +64 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisResultsHeader.d.ts +67 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisResultsPanel.d.ts +14 -0
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisTypeSelector.d.ts +17 -0
- package/dist/cjs/client/components/AnalysisBuilder/BreakdownComparisonToggle.d.ts +13 -0
- package/dist/cjs/client/components/AnalysisBuilder/BreakdownItemCard.d.ts +12 -0
- package/dist/cjs/client/components/AnalysisBuilder/BreakdownRow.d.ts +26 -0
- package/dist/cjs/client/components/AnalysisBuilder/BreakdownSection.d.ts +9 -0
- package/dist/cjs/client/components/AnalysisBuilder/DisplayOptionControl.d.ts +10 -0
- package/dist/cjs/client/components/AnalysisBuilder/ExecutionPlanPanel.d.ts +49 -0
- package/dist/cjs/client/components/AnalysisBuilder/ExecutionPlanPanelParts.d.ts +22 -0
- package/dist/cjs/client/components/AnalysisBuilder/ExplainAIPanel.d.ts +16 -0
- package/dist/cjs/client/components/AnalysisBuilder/FieldDetailPanel.d.ts +4 -0
- package/dist/cjs/client/components/AnalysisBuilder/FieldSearchItem.d.ts +6 -0
- package/dist/cjs/client/components/AnalysisBuilder/FieldSearchModal.d.ts +2 -0
- package/dist/cjs/client/components/AnalysisBuilder/FieldSearchResults.d.ts +16 -0
- package/dist/cjs/client/components/AnalysisBuilder/FilterConfigModal.d.ts +17 -0
- package/dist/cjs/client/components/AnalysisBuilder/FilterValueInput.d.ts +63 -0
- package/dist/cjs/client/components/AnalysisBuilder/FlowConfigPanel.d.ts +28 -0
- package/dist/cjs/client/components/AnalysisBuilder/FlowDepthControls.d.ts +10 -0
- package/dist/cjs/client/components/AnalysisBuilder/FlowModeContent.d.ts +57 -0
- package/dist/cjs/client/components/AnalysisBuilder/FlowVisualizationPicker.d.ts +7 -0
- package/dist/cjs/client/components/AnalysisBuilder/FunnelBindingKeySelector.d.ts +21 -0
- package/dist/cjs/client/components/AnalysisBuilder/FunnelConfigPanel.d.ts +24 -0
- package/dist/cjs/client/components/AnalysisBuilder/FunnelModeContent.d.ts +48 -0
- package/dist/cjs/client/components/AnalysisBuilder/FunnelStepCard.d.ts +25 -0
- package/dist/cjs/client/components/AnalysisBuilder/FunnelStepList.d.ts +26 -0
- package/dist/cjs/client/components/AnalysisBuilder/LegacyBooleanOptions.d.ts +8 -0
- package/dist/cjs/client/components/AnalysisBuilder/LimitSection.d.ts +14 -0
- package/dist/cjs/client/components/AnalysisBuilder/MetricItemCard.d.ts +11 -0
- package/dist/cjs/client/components/AnalysisBuilder/MetricRow.d.ts +23 -0
- package/dist/cjs/client/components/AnalysisBuilder/MetricsSection.d.ts +9 -0
- package/dist/cjs/client/components/AnalysisBuilder/RetentionConfigPanel.d.ts +36 -0
- package/dist/cjs/client/components/AnalysisBuilder/RetentionModeContent.d.ts +71 -0
- package/dist/cjs/client/components/AnalysisBuilder/SectionHeading.d.ts +12 -0
- package/dist/cjs/client/components/AnalysisBuilder/SortToggleButton.d.ts +13 -0
- package/dist/cjs/client/components/AnalysisBuilder/StringArrayInput.d.ts +17 -0
- package/dist/cjs/client/components/AnalysisBuilder/filterConfigModalUtils.d.ts +30 -0
- package/dist/cjs/client/components/AnalysisBuilder/hooks/useAnalysisBuilderImperativeHandle.d.ts +13 -0
- package/dist/cjs/client/components/AnalysisBuilder/hooks/useDragReorder.d.ts +25 -0
- package/dist/cjs/client/components/AnalysisBuilder/hooks/useFieldSearchKeyboard.d.ts +11 -0
- package/dist/cjs/client/components/AnalysisBuilder/index.d.ts +9 -0
- package/dist/cjs/client/components/AnalysisBuilder/types.d.ts +851 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/axisConfigUtils.d.ts +23 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/executionPlanMarkdown.d.ts +8 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/fieldUtils.d.ts +69 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/filterUtils.d.ts +19 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/idUtils.d.ts +11 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/index.d.ts +11 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/queryUtils.d.ts +11 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/recentFieldsUtils.d.ts +14 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/resultsPanelDerive.d.ts +68 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/shareStateUtils.d.ts +68 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/sortUtils.d.ts +7 -0
- package/dist/cjs/client/components/AnalysisBuilder/utils/storageUtils.d.ts +44 -0
- package/dist/cjs/client/components/AnalysisBuilderLazy.d.ts +4 -0
- package/dist/cjs/client/components/AnalyticsDashboard.d.ts +2 -0
- package/dist/cjs/client/components/AnalyticsPage.d.ts +1 -0
- package/dist/cjs/client/components/AnalyticsPortlet.d.ts +10 -0
- package/dist/cjs/client/components/ChartErrorBoundary.d.ts +21 -0
- package/dist/cjs/client/components/ChartTypeSelector.d.ts +15 -0
- package/dist/cjs/client/components/ColorPaletteSelector.d.ts +11 -0
- package/dist/cjs/client/components/ConfirmModal.d.ts +30 -0
- package/dist/cjs/client/components/DashboardEditModal.d.ts +15 -0
- package/dist/cjs/client/components/DashboardFilterPanel.d.ts +15 -0
- package/dist/cjs/client/components/DashboardFilters/CompactFilterBar.d.ts +13 -0
- package/dist/cjs/client/components/DashboardFilters/CompactFilterBarParts.d.ts +26 -0
- package/dist/cjs/client/components/DashboardFilters/CustomDateDropdown.d.ts +10 -0
- package/dist/cjs/client/components/DashboardFilters/DashboardFilterConfigModal.d.ts +20 -0
- package/dist/cjs/client/components/DashboardFilters/DashboardFilterConfigModalParts.d.ts +27 -0
- package/dist/cjs/client/components/DashboardFilters/DashboardFilterItem.d.ts +14 -0
- package/dist/cjs/client/components/DashboardFilters/DashboardFilterValueInput.d.ts +39 -0
- package/dist/cjs/client/components/DashboardFilters/DatePresetChips.d.ts +8 -0
- package/dist/cjs/client/components/DashboardFilters/EditModeFilterList.d.ts +13 -0
- package/dist/cjs/client/components/DashboardFilters/FilterChip.d.ts +12 -0
- package/dist/cjs/client/components/DashboardFilters/FilterEditModal.d.ts +15 -0
- package/dist/cjs/client/components/DashboardFilters/FilterValuePopover.d.ts +11 -0
- package/dist/cjs/client/components/DashboardFilters/ReadOnlyFilterList.d.ts +13 -0
- package/dist/cjs/client/components/DashboardFilters/XTDDropdown.d.ts +10 -0
- package/dist/cjs/client/components/DashboardFilters/dashboardFilterConfigModalUtils.d.ts +21 -0
- package/dist/cjs/client/components/DashboardFilters/useCompactFilterBar.d.ts +19 -0
- package/dist/cjs/client/components/DashboardFilters/useDashboardFilterConfigModal.d.ts +69 -0
- package/dist/cjs/client/components/DashboardFilters/useDateRangeState.d.ts +19 -0
- package/dist/cjs/client/components/DashboardFilters/useFilterDropdowns.d.ts +21 -0
- package/dist/cjs/client/components/DashboardFilters/useFilterValueFetch.d.ts +23 -0
- package/dist/cjs/client/components/DashboardGrid.d.ts +22 -0
- package/dist/cjs/client/components/DashboardPortletCard.d.ts +4 -0
- package/dist/cjs/client/components/DashboardThumbnailPlaceholder.d.ts +13 -0
- package/dist/cjs/client/components/DataBrowser/DataBrowserSidebar.d.ts +16 -0
- package/dist/cjs/client/components/DataBrowser/DataBrowserTable.d.ts +16 -0
- package/dist/cjs/client/components/DataBrowser/DataBrowserToolbar.d.ts +22 -0
- package/dist/cjs/client/components/DataBrowser/index.d.ts +28 -0
- package/dist/cjs/client/components/DataHistogram.d.ts +27 -0
- package/dist/cjs/client/components/DebugModal.d.ts +17 -0
- package/dist/cjs/client/components/DrillBreadcrumb.d.ts +7 -0
- package/dist/cjs/client/components/DrillMenu.d.ts +8 -0
- package/dist/cjs/client/components/FloatingEditToolbar.d.ts +30 -0
- package/dist/cjs/client/components/LoadingIndicator.d.ts +16 -0
- package/dist/cjs/client/components/MobileStackedLayout.d.ts +14 -0
- package/dist/cjs/client/components/Modal.d.ts +16 -0
- package/dist/cjs/client/components/PortletAnalysisModal.d.ts +27 -0
- package/dist/cjs/client/components/PortletContainer.d.ts +10 -0
- package/dist/cjs/client/components/PortletFilterConfigModal.d.ts +13 -0
- package/dist/cjs/client/components/RowManagedLayout.d.ts +19 -0
- package/dist/cjs/client/components/ScaledGridWrapper.d.ts +12 -0
- package/dist/cjs/client/components/SchemaVisualization/CubeNode.d.ts +25 -0
- package/dist/cjs/client/components/SchemaVisualization/FieldDetailPanel.d.ts +15 -0
- package/dist/cjs/client/components/SchemaVisualization/RelationshipEdge.d.ts +13 -0
- package/dist/cjs/client/components/SchemaVisualization/SchemaVisualizationLazy.d.ts +3 -0
- package/dist/cjs/client/components/SchemaVisualization/index.d.ts +10 -0
- package/dist/cjs/client/components/SchemaVisualization/useERDLayout.d.ts +39 -0
- package/dist/cjs/client/components/SchemaVisualization/xyflowContext.d.ts +11 -0
- package/dist/cjs/client/components/TextPortletModal.d.ts +12 -0
- package/dist/cjs/client/components/analyticsPortlet/PortletChart.d.ts +31 -0
- package/dist/cjs/client/components/analyticsPortlet/PortletChartView.d.ts +35 -0
- package/dist/cjs/client/components/analyticsPortlet/PortletStates.d.ts +65 -0
- package/dist/cjs/client/components/analyticsPortlet/parsePortletQuery.d.ts +22 -0
- package/dist/cjs/client/components/analyticsPortlet/portletRenderState.d.ts +31 -0
- package/dist/cjs/client/components/analyticsPortlet/usePortletDebugData.d.ts +37 -0
- package/dist/cjs/client/components/analyticsPortlet/usePortletDrillState.d.ts +17 -0
- package/dist/cjs/client/components/analyticsPortlet/usePortletQueryResults.d.ts +37 -0
- package/dist/cjs/client/components/charts/ActivityGridChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/ActivityGridChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/ActivityGridChart.helpers.d.ts +33 -0
- package/dist/cjs/client/components/charts/ActivityGridChart.render.d.ts +31 -0
- package/dist/cjs/client/components/charts/AngledXAxisTick.d.ts +19 -0
- package/dist/cjs/client/components/charts/AreaChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/AreaChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/AxisFormatControls.d.ts +37 -0
- package/dist/cjs/client/components/charts/BarChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/BarChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/BarChart.helpers.d.ts +23 -0
- package/dist/cjs/client/components/charts/BarSeries.d.ts +29 -0
- package/dist/cjs/client/components/charts/BoxPlotChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/BoxPlotChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/BubbleChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/BubbleChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/BubbleChart.helpers.d.ts +43 -0
- package/dist/cjs/client/components/charts/BubbleChart.render.d.ts +21 -0
- package/dist/cjs/client/components/charts/CandlestickChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/CandlestickChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/ChartContainer.d.ts +7 -0
- package/dist/cjs/client/components/charts/ChartLegend.d.ts +7 -0
- package/dist/cjs/client/components/charts/ChartStates.d.ts +38 -0
- package/dist/cjs/client/components/charts/ChartTooltip.d.ts +7 -0
- package/dist/cjs/client/components/charts/DataTable.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/DataTable.d.ts +4 -0
- package/dist/cjs/client/components/charts/FunnelChart.config.d.ts +9 -0
- package/dist/cjs/client/components/charts/FunnelChart.d.ts +11 -0
- package/dist/cjs/client/components/charts/FunnelChart.helpers.d.ts +25 -0
- package/dist/cjs/client/components/charts/FunnelViews.d.ts +16 -0
- package/dist/cjs/client/components/charts/GaugeChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/GaugeChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/HeatMapCanvas.d.ts +25 -0
- package/dist/cjs/client/components/charts/HeatMapChart.config.d.ts +8 -0
- package/dist/cjs/client/components/charts/HeatMapChart.d.ts +10 -0
- package/dist/cjs/client/components/charts/HeatMapChart.helpers.d.ts +64 -0
- package/dist/cjs/client/components/charts/KpiDelta.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/KpiDelta.d.ts +4 -0
- package/dist/cjs/client/components/charts/KpiDelta.helpers.d.ts +20 -0
- package/dist/cjs/client/components/charts/KpiNumber.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/KpiNumber.d.ts +4 -0
- package/dist/cjs/client/components/charts/KpiNumber.helpers.d.ts +30 -0
- package/dist/cjs/client/components/charts/KpiStates.d.ts +19 -0
- package/dist/cjs/client/components/charts/KpiText.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/KpiText.d.ts +4 -0
- package/dist/cjs/client/components/charts/LineChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/LineChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/MarkdownChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/MarkdownChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/MeasureProfileChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/MeasureProfileChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/MissingDependencyFallback.d.ts +12 -0
- package/dist/cjs/client/components/charts/PieChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/PieChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/RadarChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/RadarChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/RadialBarChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/RadialBarChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/RetentionCombinedChart.config.d.ts +2 -0
- package/dist/cjs/client/components/charts/RetentionCombinedChart.d.ts +14 -0
- package/dist/cjs/client/components/charts/RetentionHeatmap.config.d.ts +2 -0
- package/dist/cjs/client/components/charts/RetentionHeatmap.d.ts +7 -0
- package/dist/cjs/client/components/charts/SankeyChart.config.d.ts +9 -0
- package/dist/cjs/client/components/charts/SankeyChart.d.ts +10 -0
- package/dist/cjs/client/components/charts/ScatterChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/ScatterChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/ScatterChart.helpers.d.ts +43 -0
- package/dist/cjs/client/components/charts/ScatterSeries.d.ts +17 -0
- package/dist/cjs/client/components/charts/ScatterTooltip.d.ts +21 -0
- package/dist/cjs/client/components/charts/SunburstChart.config.d.ts +9 -0
- package/dist/cjs/client/components/charts/SunburstChart.d.ts +10 -0
- package/dist/cjs/client/components/charts/TreeMapChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/TreeMapChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/TreeMapChart.helpers.d.ts +37 -0
- package/dist/cjs/client/components/charts/TreeMapContent.d.ts +24 -0
- package/dist/cjs/client/components/charts/TreeMapLegend.d.ts +13 -0
- package/dist/cjs/client/components/charts/WaterfallChart.config.d.ts +5 -0
- package/dist/cjs/client/components/charts/WaterfallChart.d.ts +4 -0
- package/dist/cjs/client/components/charts/cartesianChartHelpers.d.ts +126 -0
- package/dist/cjs/client/components/charts/chartAxisResolution.d.ts +32 -0
- package/dist/cjs/client/components/charts/chartScaffolding.d.ts +77 -0
- package/dist/cjs/client/components/charts/gaugeChartHelpers.d.ts +36 -0
- package/dist/cjs/client/components/charts/index.d.ts +25 -0
- package/dist/cjs/client/components/charts/kpiTextHelpers.d.ts +46 -0
- package/dist/cjs/client/components/charts/radarChartHelpers.d.ts +14 -0
- package/dist/cjs/client/components/charts/radialBarChartHelpers.d.ts +22 -0
- package/dist/cjs/client/components/charts/useChartDimensions.d.ts +20 -0
- package/dist/cjs/client/components/charts/useKpiDimensions.d.ts +30 -0
- package/dist/cjs/client/components/dashboard/DashboardContext.d.ts +113 -0
- package/dist/cjs/client/components/dashboard/DashboardCoordinator.d.ts +2 -0
- package/dist/cjs/client/components/dashboard/DashboardEditBar.d.ts +5 -0
- package/dist/cjs/client/components/dashboard/DashboardFilterBar.d.ts +8 -0
- package/dist/cjs/client/components/dashboard/DashboardGridSurface.d.ts +8 -0
- package/dist/cjs/client/components/dashboard/DashboardModals.d.ts +8 -0
- package/dist/cjs/client/components/dashboard/DashboardProvider.d.ts +2 -0
- package/dist/cjs/client/components/dashboard/DashboardToolbar.d.ts +11 -0
- package/dist/cjs/client/components/dashboard/LayoutModeToggle.d.ts +10 -0
- package/dist/cjs/client/components/dashboard/dashboardGridUtils.d.ts +17 -0
- package/dist/cjs/client/components/dashboard/index.d.ts +13 -0
- package/dist/cjs/client/components/dashboardPortletCard/FilterFieldChip.d.ts +12 -0
- package/dist/cjs/client/components/dashboardPortletCard/PortletCardHeader.d.ts +43 -0
- package/dist/cjs/client/components/dashboardPortletCard/cardStyles.d.ts +33 -0
- package/dist/cjs/client/components/dashboardPortletCard/filterField.d.ts +12 -0
- package/dist/cjs/client/components/dashboardPortletCard/propsEqual.d.ts +55 -0
- package/dist/cjs/client/components/dashboardPortletCard/usePortletCardActions.d.ts +16 -0
- package/dist/cjs/client/components/portletAnalysisModal/saveValidation.d.ts +8 -0
- package/dist/cjs/client/components/shared/DateRangeFilter.d.ts +4 -0
- package/dist/cjs/client/components/shared/DateRangeSelector.d.ts +13 -0
- package/dist/cjs/client/components/shared/FilterBuilder.d.ts +4 -0
- package/dist/cjs/client/components/shared/FilterGroup.d.ts +4 -0
- package/dist/cjs/client/components/shared/FilterItem.d.ts +4 -0
- package/dist/cjs/client/components/shared/FilterValueSelector.d.ts +4 -0
- package/dist/cjs/client/components/shared/dateRangeUtils.d.ts +40 -0
- package/dist/cjs/client/components/shared/filterDisplayUtils.d.ts +10 -0
- package/dist/cjs/client/components/shared/filterItem/FilterDateRangeSelector.d.ts +17 -0
- package/dist/cjs/client/components/shared/filterItem/FilterFieldDropdown.d.ts +16 -0
- package/dist/cjs/client/components/shared/filterItem/dateRangeSync.d.ts +14 -0
- package/dist/cjs/client/components/shared/filterItem/fieldVisuals.d.ts +5 -0
- package/dist/cjs/client/components/shared/filterValueSelector/FilterValueInputs.d.ts +55 -0
- package/dist/cjs/client/components/shared/filterValueSelector/useFilterValueSelectorState.d.ts +25 -0
- package/dist/cjs/client/components/shared/queryFieldUtils.d.ts +21 -0
- package/dist/cjs/client/components/shared/types.d.ts +60 -0
- package/dist/cjs/client/components/shared/utils.d.ts +71 -0
- package/dist/cjs/client/components.d.ts +17 -0
- package/dist/cjs/client/hooks/agentChatStream.d.ts +39 -0
- package/dist/cjs/client/hooks/analysisQueryExecutionModes.d.ts +133 -0
- package/dist/cjs/client/hooks/dashboard/layoutUtils.d.ts +7 -0
- package/dist/cjs/client/hooks/dashboard/useDashboardController.d.ts +53 -0
- package/dist/cjs/client/hooks/dashboard/useGridLayoutEngine.d.ts +10 -0
- package/dist/cjs/client/hooks/dashboard/useRowLayoutEngine.d.ts +18 -0
- package/dist/cjs/client/hooks/drillNavigation.d.ts +25 -0
- package/dist/cjs/client/hooks/queries/index.d.ts +20 -0
- package/dist/cjs/client/hooks/queries/useCubeLoadQuery.d.ts +85 -0
- package/dist/cjs/client/hooks/queries/useCubeMetaQuery.d.ts +51 -0
- package/dist/cjs/client/hooks/queries/useDryRunQuery.d.ts +153 -0
- package/dist/cjs/client/hooks/queries/useExplainAI.d.ts +62 -0
- package/dist/cjs/client/hooks/queries/useExplainQuery.d.ts +62 -0
- package/dist/cjs/client/hooks/queries/useFlowQuery.d.ts +72 -0
- package/dist/cjs/client/hooks/queries/useFunnelQuery.d.ts +20 -0
- package/dist/cjs/client/hooks/queries/useMultiCubeLoadQuery.d.ts +70 -0
- package/dist/cjs/client/hooks/queries/useRetentionQuery.d.ts +67 -0
- package/dist/cjs/client/hooks/useAgentChat.d.ts +60 -0
- package/dist/cjs/client/hooks/useAnalysisAI.d.ts +56 -0
- package/dist/cjs/client/hooks/useAnalysisBuilderHook.d.ts +245 -0
- package/dist/cjs/client/hooks/useAnalysisChartDefaults.d.ts +35 -0
- package/dist/cjs/client/hooks/useAnalysisCombinedFields.d.ts +18 -0
- package/dist/cjs/client/hooks/useAnalysisInitialization.d.ts +25 -0
- package/dist/cjs/client/hooks/useAnalysisQueryBuilder.d.ts +32 -0
- package/dist/cjs/client/hooks/useAnalysisQueryExecution.d.ts +144 -0
- package/dist/cjs/client/hooks/useAnalysisShare.d.ts +18 -0
- package/dist/cjs/client/hooks/useAnalysisUIState.d.ts +24 -0
- package/dist/cjs/client/hooks/useCubeFieldLabel.d.ts +16 -0
- package/dist/cjs/client/hooks/useDashboardHook.d.ts +123 -0
- package/dist/cjs/client/hooks/useDataBrowser.d.ts +67 -0
- package/dist/cjs/client/hooks/useDebounce.d.ts +12 -0
- package/dist/cjs/client/hooks/useDebounceQuery.d.ts +48 -0
- package/dist/cjs/client/hooks/useDirtyStateTracking.d.ts +37 -0
- package/dist/cjs/client/hooks/useDragAutoScroll.d.ts +18 -0
- package/dist/cjs/client/hooks/useDrillInteraction.d.ts +9 -0
- package/dist/cjs/client/hooks/useElementVisibility.d.ts +30 -0
- package/dist/cjs/client/hooks/useFilterValues.d.ts +19 -0
- package/dist/cjs/client/hooks/useNotebookLayout.d.ts +8 -0
- package/dist/cjs/client/hooks/useResponsiveDashboard.d.ts +16 -0
- package/dist/cjs/client/hooks/useScrollDetection.d.ts +29 -0
- package/dist/cjs/client/hooks/useTheme.d.ts +11 -0
- package/dist/cjs/client/hooks/useTranslation.d.ts +21 -0
- package/dist/cjs/client/hooks.d.ts +17 -0
- package/dist/cjs/client/icons/customIcons.d.ts +22 -0
- package/dist/cjs/client/icons/defaultIcons.d.ts +5 -0
- package/dist/cjs/client/icons/index.d.ts +22 -0
- package/dist/cjs/client/icons/registry.d.ts +64 -0
- package/dist/cjs/client/icons/types.d.ts +129 -0
- package/dist/cjs/client/icons.d.ts +2 -0
- package/dist/cjs/client/index.d.ts +76 -0
- package/dist/cjs/client/providers/CubeApiProvider.d.ts +24 -0
- package/dist/cjs/client/providers/CubeFeaturesProvider.d.ts +19 -0
- package/dist/cjs/client/providers/CubeMetaContext.d.ts +11 -0
- package/dist/cjs/client/providers/CubeMetaProvider.d.ts +6 -0
- package/dist/cjs/client/providers/CubeProvider.d.ts +70 -0
- package/dist/cjs/client/providers/I18nProvider.d.ts +18 -0
- package/dist/cjs/client/providers/ScrollContainerContext.d.ts +19 -0
- package/dist/cjs/client/providers.d.ts +10 -0
- package/dist/cjs/client/schema.d.ts +13 -0
- package/dist/cjs/client/shared/chartConfigBuilders.d.ts +18 -0
- package/dist/cjs/client/shared/chartDefaults.d.ts +59 -0
- package/dist/cjs/client/shared/components/CodeBlock.d.ts +13 -0
- package/dist/cjs/client/shared/components/QueryAnalysisPanel.d.ts +7 -0
- package/dist/cjs/client/shared/components/QueryAnalysisPanel.sections.d.ts +41 -0
- package/dist/cjs/client/shared/index.d.ts +11 -0
- package/dist/cjs/client/shared/queryKey.d.ts +1 -0
- package/dist/cjs/client/shared/queryTransforms.d.ts +20 -0
- package/dist/cjs/client/shared/types.d.ts +184 -0
- package/dist/cjs/client/shared/utils.d.ts +104 -0
- package/dist/cjs/client/stores/analysisBuilderStore.d.ts +578 -0
- package/dist/cjs/client/stores/dashboardStore.d.ts +292 -0
- package/dist/cjs/client/stores/dataBrowserStore.d.ts +34 -0
- package/dist/cjs/client/stores/index.d.ts +13 -0
- package/dist/cjs/client/stores/notebookStore.d.ts +157 -0
- package/dist/cjs/client/stores/optionsToAnalysisConfig.d.ts +17 -0
- package/dist/cjs/client/stores/slices/coreSlice.d.ts +96 -0
- package/dist/cjs/client/stores/slices/flowSlice.d.ts +69 -0
- package/dist/cjs/client/stores/slices/funnelSlice.d.ts +61 -0
- package/dist/cjs/client/stores/slices/index.d.ts +13 -0
- package/dist/cjs/client/stores/slices/querySlice.d.ts +55 -0
- package/dist/cjs/client/stores/slices/retentionSlice.d.ts +66 -0
- package/dist/cjs/client/stores/slices/uiSlice.d.ts +52 -0
- package/dist/cjs/client/theme/index.d.ts +135 -0
- package/dist/cjs/client/types/analysisConfig.d.ts +185 -0
- package/dist/cjs/client/types/drill.d.ts +240 -0
- package/dist/cjs/client/types/flow.d.ts +191 -0
- package/dist/cjs/client/types/funnel.d.ts +288 -0
- package/dist/cjs/client/types/retention.d.ts +301 -0
- package/dist/cjs/client/types.d.ts +600 -0
- package/dist/cjs/client/utils/axisValueFormatting.d.ts +32 -0
- package/dist/cjs/client/utils/chartConstants.d.ts +16 -0
- package/dist/cjs/client/utils/chartUtils.d.ts +35 -0
- package/dist/cjs/client/utils/colorPalettes.d.ts +35 -0
- package/dist/cjs/client/utils/comparisonUtils.d.ts +96 -0
- package/dist/cjs/client/utils/configMigration.d.ts +85 -0
- package/dist/cjs/client/utils/drillQueryBuilder.d.ts +41 -0
- package/dist/cjs/client/utils/exportXlsx.d.ts +20 -0
- package/dist/cjs/client/utils/filterUtils.d.ts +113 -0
- package/dist/cjs/client/utils/funnelExecution.d.ts +211 -0
- package/dist/cjs/client/utils/funnelValidation.d.ts +46 -0
- package/dist/cjs/client/utils/index.d.ts +94 -0
- package/dist/cjs/client/utils/joinReachability.d.ts +27 -0
- package/dist/cjs/client/utils/measureIcons.d.ts +11 -0
- package/dist/cjs/client/utils/multiQueryUtils.d.ts +86 -0
- package/dist/cjs/client/utils/multiQueryValidation.d.ts +69 -0
- package/dist/cjs/client/utils/periodUtils.d.ts +40 -0
- package/dist/cjs/client/utils/pivotUtils.d.ts +87 -0
- package/dist/cjs/client/utils/shareUtils.d.ts +61 -0
- package/dist/cjs/client/utils/syntaxHighlighting.d.ts +36 -0
- package/dist/cjs/client/utils/targetUtils.d.ts +36 -0
- package/dist/cjs/client/utils/thumbnail.d.ts +36 -0
- package/dist/cjs/client/utils/timeValueFormatting.d.ts +32 -0
- package/dist/cjs/client/utils.d.ts +8 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/server/adapters/base-adapter.d.ts +332 -0
- package/dist/cjs/server/adapters/databend-adapter.d.ts +63 -0
- package/dist/cjs/server/adapters/duckdb-adapter.d.ts +68 -0
- package/dist/cjs/server/adapters/mysql-adapter.d.ts +65 -0
- package/dist/cjs/server/adapters/postgres-adapter.d.ts +55 -0
- package/dist/cjs/server/adapters/singlestore-adapter.d.ts +4 -0
- package/dist/cjs/server/adapters/snowflake-adapter.d.ts +53 -0
- package/dist/cjs/server/adapters/sqlite-adapter.d.ts +120 -0
- package/dist/cjs/server/adapters/window-function-builder.d.ts +11 -0
- package/dist/cjs/server/agent/chart-validation.d.ts +22 -0
- package/dist/cjs/server/agent/handler-steps.d.ts +37 -0
- package/dist/cjs/server/agent/handler.d.ts +25 -0
- package/dist/cjs/server/agent/index.d.ts +11 -0
- package/dist/cjs/server/agent/providers/anthropic.d.ts +24 -0
- package/dist/cjs/server/agent/providers/factory.d.ts +12 -0
- package/dist/cjs/server/agent/providers/google.d.ts +23 -0
- package/dist/cjs/server/agent/providers/index.d.ts +6 -0
- package/dist/cjs/server/agent/providers/openai.d.ts +26 -0
- package/dist/cjs/server/agent/providers/types.d.ts +95 -0
- package/dist/cjs/server/agent/system-prompt.d.ts +5 -0
- package/dist/cjs/server/agent/tools.d.ts +28 -0
- package/dist/cjs/server/agent/types.d.ts +192 -0
- package/dist/cjs/server/ai/discovery-helpers.d.ts +29 -0
- package/dist/cjs/server/ai/discovery.d.ts +66 -0
- package/dist/cjs/server/ai/index.d.ts +10 -0
- package/dist/cjs/server/ai/mcp-prompts.d.ts +83 -0
- package/dist/cjs/server/ai/query-schema.d.ts +258 -0
- package/dist/cjs/server/ai/schemas.d.ts +63 -0
- package/dist/cjs/server/ai/suggestion-helpers.d.ts +33 -0
- package/dist/cjs/server/ai/suggestion.d.ts +16 -0
- package/dist/cjs/server/ai/validation-helpers.d.ts +21 -0
- package/dist/cjs/server/ai/validation.d.ts +31 -0
- package/dist/cjs/server/builders/analysis-utils.d.ts +106 -0
- package/dist/cjs/server/builders/comparison-query-builder.d.ts +70 -0
- package/dist/cjs/server/builders/cte-builder.d.ts +108 -0
- package/dist/cjs/server/builders/date-time-builder.d.ts +34 -0
- package/dist/cjs/server/builders/date-time-helpers.d.ts +34 -0
- package/dist/cjs/server/builders/filter-builder.d.ts +25 -0
- package/dist/cjs/server/builders/filter-operators.d.ts +23 -0
- package/dist/cjs/server/builders/flow-query-builder.d.ts +136 -0
- package/dist/cjs/server/builders/funnel-query-builder.d.ts +145 -0
- package/dist/cjs/server/builders/group-by-builder.d.ts +38 -0
- package/dist/cjs/server/builders/index.d.ts +13 -0
- package/dist/cjs/server/builders/measure-builder.d.ts +185 -0
- package/dist/cjs/server/builders/retention-query-builder.d.ts +98 -0
- package/dist/cjs/server/cache-providers/index.d.ts +5 -0
- package/dist/cjs/server/cache-providers/memory.d.ts +105 -0
- package/dist/cjs/server/cache-utils.d.ts +85 -0
- package/dist/cjs/server/compiler-metadata.d.ts +11 -0
- package/dist/cjs/server/compiler.d.ts +212 -0
- package/dist/cjs/server/cube-utils.d.ts +158 -0
- package/dist/cjs/server/database-utils.d.ts +18 -0
- package/dist/cjs/server/execution/annotation-builder.d.ts +12 -0
- package/dist/cjs/server/execution/filter-cache-preloader.d.ts +19 -0
- package/dist/cjs/server/execution/mode-router.d.ts +25 -0
- package/dist/cjs/server/execution/query-result-cache.d.ts +21 -0
- package/dist/cjs/server/execution/result-post-processor.d.ts +10 -0
- package/dist/cjs/server/executor.d.ts +186 -0
- package/dist/cjs/server/executors/base-executor.d.ts +16 -0
- package/dist/cjs/server/executors/databend-executor.d.ts +33 -0
- package/dist/cjs/server/executors/duckdb-executor.d.ts +33 -0
- package/dist/cjs/server/executors/explain-utils.d.ts +28 -0
- package/dist/cjs/server/executors/index.d.ts +21 -0
- package/dist/cjs/server/executors/mysql-executor.d.ts +27 -0
- package/dist/cjs/server/executors/postgres-executor.d.ts +27 -0
- package/dist/cjs/server/executors/singlestore-executor.d.ts +9 -0
- package/dist/cjs/server/executors/snowflake-executor.d.ts +33 -0
- package/dist/cjs/server/executors/sqlite-executor.d.ts +28 -0
- package/dist/cjs/server/explain/databend-parser.d.ts +16 -0
- package/dist/cjs/server/explain/duckdb-parser.d.ts +28 -0
- package/dist/cjs/server/explain/explain-tree.d.ts +20 -0
- package/dist/cjs/server/explain/index.d.ts +9 -0
- package/dist/cjs/server/explain/mysql-parser.d.ts +38 -0
- package/dist/cjs/server/explain/postgres-parser.d.ts +18 -0
- package/dist/cjs/server/explain/snowflake-parser.d.ts +17 -0
- package/dist/cjs/server/explain/sqlite-parser.d.ts +23 -0
- package/dist/cjs/server/filter-cache.d.ts +73 -0
- package/dist/cjs/server/gap-filler.d.ts +48 -0
- package/dist/cjs/server/index.d.ts +38 -0
- package/dist/cjs/server/logical-plan/cte-planner-helpers.d.ts +37 -0
- package/dist/cjs/server/logical-plan/cte-planner.d.ts +104 -0
- package/dist/cjs/server/logical-plan/filter-propagation.d.ts +44 -0
- package/dist/cjs/server/logical-plan/index.d.ts +19 -0
- package/dist/cjs/server/logical-plan/join-planner.d.ts +27 -0
- package/dist/cjs/server/logical-plan/logical-plan-builder.d.ts +58 -0
- package/dist/cjs/server/logical-plan/logical-planner.d.ts +39 -0
- package/dist/cjs/server/logical-plan/optimiser.d.ts +34 -0
- package/dist/cjs/server/logical-plan/plan-analysis-reporter.d.ts +59 -0
- package/dist/cjs/server/logical-plan/planner-utils.d.ts +20 -0
- package/dist/cjs/server/logical-plan/types.d.ts +199 -0
- package/dist/cjs/server/measure-classification.d.ts +40 -0
- package/dist/cjs/server/physical-plan/drizzle-plan-builder.d.ts +50 -0
- package/dist/cjs/server/physical-plan/drizzle-sql-builder.d.ts +118 -0
- package/dist/cjs/server/physical-plan/index.d.ts +2 -0
- package/dist/cjs/server/physical-plan/processors/cte-processor.d.ts +6 -0
- package/dist/cjs/server/physical-plan/processors/index.d.ts +8 -0
- package/dist/cjs/server/physical-plan/processors/joins-processor.d.ts +6 -0
- package/dist/cjs/server/physical-plan/processors/keys-dedup-processor.d.ts +13 -0
- package/dist/cjs/server/physical-plan/processors/multi-fact-processor.d.ts +13 -0
- package/dist/cjs/server/physical-plan/processors/predicates-processor.d.ts +6 -0
- package/dist/cjs/server/physical-plan/processors/selection-processor.d.ts +6 -0
- package/dist/cjs/server/physical-plan/processors/shared.d.ts +38 -0
- package/dist/cjs/server/physical-plan/processors/window-processor.d.ts +6 -0
- package/dist/cjs/server/prompts/explain-analysis-prompt.d.ts +47 -0
- package/dist/cjs/server/prompts/index.d.ts +27 -0
- package/dist/cjs/server/prompts/single-step-prompt.d.ts +31 -0
- package/dist/cjs/server/prompts/step0-validation-prompt.d.ts +39 -0
- package/dist/cjs/server/prompts/step1-shape-prompt.d.ts +29 -0
- package/dist/cjs/server/prompts/step2-complete-prompt.d.ts +19 -0
- package/dist/cjs/server/prompts/types.d.ts +37 -0
- package/dist/cjs/server/query-handlers.d.ts +79 -0
- package/dist/cjs/server/query-modes.d.ts +28 -0
- package/dist/cjs/server/query-validator.d.ts +9 -0
- package/dist/cjs/server/resolvers/calculated-measure-resolver.d.ts +98 -0
- package/dist/cjs/server/resolvers/index.d.ts +6 -0
- package/dist/cjs/server/resolvers/join-path-resolver.d.ts +158 -0
- package/dist/cjs/server/sql-format.d.ts +11 -0
- package/dist/cjs/server/template-substitution.d.ts +57 -0
- package/dist/cjs/server/types/analysis.d.ts +189 -0
- package/dist/cjs/server/types/cache.d.ts +132 -0
- package/dist/cjs/server/types/core.d.ts +164 -0
- package/dist/cjs/server/types/cube.d.ts +544 -0
- package/dist/cjs/server/types/executor.d.ts +156 -0
- package/dist/cjs/server/types/flow.d.ts +144 -0
- package/dist/cjs/server/types/funnel.d.ts +118 -0
- package/dist/cjs/server/types/index.d.ts +11 -0
- package/dist/cjs/server/types/metadata.d.ts +113 -0
- package/dist/cjs/server/types/query.d.ts +153 -0
- package/dist/cjs/server/types/retention.d.ts +141 -0
- package/dist/cjs/server/types/utils.d.ts +11 -0
- package/dist/cjs/server/types/validation.d.ts +14 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +1 -1
- package/dist/{adapters/openai-B5jEiqiB.js → server/openai-CmVRIbUg.js} +18 -2
- package/dist/server/{openai-cDlFSTk6.js → openai-CtXqeznO.js} +1 -1
- package/dist/{adapters/openai-D0musiYP.cjs → server/openai-D-6l1Y8h.cjs} +3 -3
- package/dist/server/{openai-vXvLni8v.cjs → openai-DTSTMiXL.cjs} +1 -1
- package/package.json +75 -29
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { IconifyIcon } from '@iconify/types';
|
|
2
|
+
import { ComponentType, CSSProperties } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Icon categories for organization and filtering
|
|
5
|
+
*/
|
|
6
|
+
export type IconCategory = 'action' | 'field' | 'chart' | 'measure' | 'state' | 'navigation';
|
|
7
|
+
/**
|
|
8
|
+
* Standard icon component props
|
|
9
|
+
*/
|
|
10
|
+
export interface IconProps {
|
|
11
|
+
className?: string;
|
|
12
|
+
'aria-hidden'?: boolean;
|
|
13
|
+
style?: CSSProperties;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Icon component type that can be used in JSX
|
|
17
|
+
*/
|
|
18
|
+
export type IconComponent = ComponentType<IconProps>;
|
|
19
|
+
/**
|
|
20
|
+
* Icon definition with Iconify data and metadata
|
|
21
|
+
*/
|
|
22
|
+
export interface IconDefinition {
|
|
23
|
+
/** The Iconify icon data */
|
|
24
|
+
icon: IconifyIcon;
|
|
25
|
+
/** Category for filtering/organization */
|
|
26
|
+
category: IconCategory;
|
|
27
|
+
/** Optional description */
|
|
28
|
+
description?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Complete icon registry with all available icons
|
|
32
|
+
*/
|
|
33
|
+
export interface IconRegistry {
|
|
34
|
+
close: IconDefinition;
|
|
35
|
+
add: IconDefinition;
|
|
36
|
+
edit: IconDefinition;
|
|
37
|
+
delete: IconDefinition;
|
|
38
|
+
refresh: IconDefinition;
|
|
39
|
+
copy: IconDefinition;
|
|
40
|
+
duplicate: IconDefinition;
|
|
41
|
+
settings: IconDefinition;
|
|
42
|
+
filter: IconDefinition;
|
|
43
|
+
share: IconDefinition;
|
|
44
|
+
expand: IconDefinition;
|
|
45
|
+
collapse: IconDefinition;
|
|
46
|
+
search: IconDefinition;
|
|
47
|
+
menu: IconDefinition;
|
|
48
|
+
run: IconDefinition;
|
|
49
|
+
check: IconDefinition;
|
|
50
|
+
link: IconDefinition;
|
|
51
|
+
eye: IconDefinition;
|
|
52
|
+
eyeOff: IconDefinition;
|
|
53
|
+
adjustments: IconDefinition;
|
|
54
|
+
desktop: IconDefinition;
|
|
55
|
+
table: IconDefinition;
|
|
56
|
+
sun: IconDefinition;
|
|
57
|
+
moon: IconDefinition;
|
|
58
|
+
ellipsisHorizontal: IconDefinition;
|
|
59
|
+
documentText: IconDefinition;
|
|
60
|
+
bookOpen: IconDefinition;
|
|
61
|
+
codeBracket: IconDefinition;
|
|
62
|
+
swatch: IconDefinition;
|
|
63
|
+
camera: IconDefinition;
|
|
64
|
+
thumbUp: IconDefinition;
|
|
65
|
+
thumbDown: IconDefinition;
|
|
66
|
+
schemaGraph: IconDefinition;
|
|
67
|
+
cube: IconDefinition;
|
|
68
|
+
download: IconDefinition;
|
|
69
|
+
measure: IconDefinition;
|
|
70
|
+
dimension: IconDefinition;
|
|
71
|
+
timeDimension: IconDefinition;
|
|
72
|
+
segment: IconDefinition;
|
|
73
|
+
chartBar: IconDefinition;
|
|
74
|
+
chartLine: IconDefinition;
|
|
75
|
+
chartArea: IconDefinition;
|
|
76
|
+
chartPie: IconDefinition;
|
|
77
|
+
chartScatter: IconDefinition;
|
|
78
|
+
chartBubble: IconDefinition;
|
|
79
|
+
chartRadar: IconDefinition;
|
|
80
|
+
chartRadialBar: IconDefinition;
|
|
81
|
+
chartTreemap: IconDefinition;
|
|
82
|
+
chartTable: IconDefinition;
|
|
83
|
+
chartActivityGrid: IconDefinition;
|
|
84
|
+
chartKpiNumber: IconDefinition;
|
|
85
|
+
chartKpiDelta: IconDefinition;
|
|
86
|
+
chartKpiText: IconDefinition;
|
|
87
|
+
chartMarkdown: IconDefinition;
|
|
88
|
+
chartFunnel: IconDefinition;
|
|
89
|
+
chartSankey: IconDefinition;
|
|
90
|
+
chartSunburst: IconDefinition;
|
|
91
|
+
chartHeatmap: IconDefinition;
|
|
92
|
+
chartRetention: IconDefinition;
|
|
93
|
+
measureCount: IconDefinition;
|
|
94
|
+
measureCountDistinct: IconDefinition;
|
|
95
|
+
measureCountDistinctApprox: IconDefinition;
|
|
96
|
+
measureSum: IconDefinition;
|
|
97
|
+
measureAvg: IconDefinition;
|
|
98
|
+
measureMin: IconDefinition;
|
|
99
|
+
measureMax: IconDefinition;
|
|
100
|
+
measureRunningTotal: IconDefinition;
|
|
101
|
+
measureCalculated: IconDefinition;
|
|
102
|
+
measureNumber: IconDefinition;
|
|
103
|
+
success: IconDefinition;
|
|
104
|
+
warning: IconDefinition;
|
|
105
|
+
error: IconDefinition;
|
|
106
|
+
info: IconDefinition;
|
|
107
|
+
loading: IconDefinition;
|
|
108
|
+
sparkles: IconDefinition;
|
|
109
|
+
chevronUp: IconDefinition;
|
|
110
|
+
chevronDown: IconDefinition;
|
|
111
|
+
chevronLeft: IconDefinition;
|
|
112
|
+
chevronRight: IconDefinition;
|
|
113
|
+
chevronUpDown: IconDefinition;
|
|
114
|
+
arrowUp: IconDefinition;
|
|
115
|
+
arrowDown: IconDefinition;
|
|
116
|
+
arrowRight: IconDefinition;
|
|
117
|
+
arrowPath: IconDefinition;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Type for icon registry keys
|
|
121
|
+
*/
|
|
122
|
+
export type IconName = keyof IconRegistry;
|
|
123
|
+
/**
|
|
124
|
+
* Partial icon registry for user overrides
|
|
125
|
+
* Users can provide just the IconifyIcon or a full IconDefinition
|
|
126
|
+
*/
|
|
127
|
+
export type PartialIconRegistry = Partial<{
|
|
128
|
+
[K in keyof IconRegistry]: IconifyIcon | Partial<IconDefinition>;
|
|
129
|
+
}>;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export { default as AnalyticsPortlet } from './components/AnalyticsPortlet.js';
|
|
2
|
+
export { default as AnalyticsDashboard } from './components/AnalyticsDashboard.js';
|
|
3
|
+
export { default as AgenticNotebook } from './components/AgenticNotebook/index.js';
|
|
4
|
+
export type { AgenticNotebookProps } from './components/AgenticNotebook/index.js';
|
|
5
|
+
export { AnalyticsPage } from './components/AnalyticsPage.js';
|
|
6
|
+
export { default as ChartErrorBoundary } from './components/ChartErrorBoundary.js';
|
|
7
|
+
export { default as LoadingIndicator } from './components/LoadingIndicator.js';
|
|
8
|
+
export type { LoadingIndicatorProps } from './components/LoadingIndicator.js';
|
|
9
|
+
export { default as DataBrowser } from './components/DataBrowser/index.js';
|
|
10
|
+
export type { DataBrowserProps } from './components/DataBrowser/index.js';
|
|
11
|
+
export { LazyChart, preloadChart, preloadCharts, isValidChartType, getAvailableChartTypes, isChartTypeAvailable, getUnavailableChartTypes } from './charts/ChartLoader.js';
|
|
12
|
+
export type { LazyChartProps } from './charts/ChartLoader.js';
|
|
13
|
+
export { default as DashboardGrid } from './components/DashboardGrid.js';
|
|
14
|
+
export { DashboardProvider, DashboardToolbar, DashboardFilterBar, DashboardGridSurface, DashboardModals, useDashboardContext, } from './components/dashboard/index.js';
|
|
15
|
+
export type { DashboardContextValue, DashboardProviderProps } from './components/dashboard/index.js';
|
|
16
|
+
export { default as PortletContainer } from './components/PortletContainer.js';
|
|
17
|
+
export { default as DrillMenu } from './components/DrillMenu.js';
|
|
18
|
+
export { default as DrillBreadcrumb } from './components/DrillBreadcrumb.js';
|
|
19
|
+
export { DashboardThumbnailPlaceholder } from './components/DashboardThumbnailPlaceholder.js';
|
|
20
|
+
export type { DashboardThumbnailPlaceholderProps } from './components/DashboardThumbnailPlaceholder.js';
|
|
21
|
+
export { default as PortletAnalysisModal } from './components/PortletAnalysisModal.js';
|
|
22
|
+
export { default as DashboardEditModal } from './components/DashboardEditModal.js';
|
|
23
|
+
export { default as Modal } from './components/Modal.js';
|
|
24
|
+
export { default as ConfirmModal } from './components/ConfirmModal.js';
|
|
25
|
+
export { default as AnalysisBuilder } from './components/AnalysisBuilderLazy.js';
|
|
26
|
+
export type { AnalysisBuilderRef } from './components/AnalysisBuilder/types.js';
|
|
27
|
+
export { ExecutionPlanPanel } from './components/AnalysisBuilder/ExecutionPlanPanel.js';
|
|
28
|
+
export { ExplainAIPanel } from './components/AnalysisBuilder/ExplainAIPanel.js';
|
|
29
|
+
export type { SchemaVisualizationProps } from './components/SchemaVisualization/index.js';
|
|
30
|
+
export { CubeProvider, useCubeContext, useCubeApi, // Only re-renders on API/auth changes
|
|
31
|
+
useCubeMeta, // Only re-renders on metadata changes
|
|
32
|
+
useCubeFeatures } from './providers/CubeProvider.js';
|
|
33
|
+
export { ScrollContainerProvider, useScrollContainer } from './providers/ScrollContainerContext.js';
|
|
34
|
+
export { useCubeFieldLabel } from './hooks/useCubeFieldLabel.js';
|
|
35
|
+
export { createCubeClient } from './client/CubeClient.js';
|
|
36
|
+
export { CubeClient } from './client/CubeClient.js';
|
|
37
|
+
export { useCubeMetaQuery, useCubeLoadQuery, useCubeQuery, useMultiCubeLoadQuery, useDryRunQuery, useMultiDryRunQueries, useDryRunQueries, useExplainQuery, createExplainQueryKey, useExplainAI, useFunnelQuery, createFunnelQueryKey, useFlowQuery, createFlowQueryKey, } from './hooks/queries/index.js';
|
|
38
|
+
export type { UseCubeMetaQueryOptions, UseCubeMetaQueryResult, UseCubeLoadQueryOptions, UseCubeLoadQueryResult, UseMultiCubeLoadQueryOptions, UseMultiCubeLoadQueryResult, DebugDataEntry, UseExplainQueryOptions, UseExplainQueryResult, UseExplainAIOptions, UseExplainAIResult, UseFlowQueryOptions, UseFlowQueryResult, } from './hooks/queries/index.js';
|
|
39
|
+
export { useAnalysisBuilder } from './hooks/useAnalysisBuilderHook.js';
|
|
40
|
+
export type { UseAnalysisBuilderOptions, UseAnalysisBuilderResult, } from './hooks/useAnalysisBuilderHook.js';
|
|
41
|
+
export { useDataBrowser } from './hooks/useDataBrowser.js';
|
|
42
|
+
export { useDashboard } from './hooks/useDashboardHook.js';
|
|
43
|
+
export type { UseDashboardOptions, UseDashboardResult, UseDashboardActions, } from './hooks/useDashboardHook.js';
|
|
44
|
+
export { useAnalysisBuilderStore, selectCurrentState, selectMetrics, selectBreakdowns, selectFilters, selectChartConfig, selectUIState, selectMultiQueryState, selectFunnelState, } from './stores/analysisBuilderStore.js';
|
|
45
|
+
export type { AnalysisBuilderStore, AnalysisBuilderStoreState, AnalysisBuilderStoreActions, FieldModalMode, } from './stores/analysisBuilderStore.js';
|
|
46
|
+
export { DashboardStoreProvider, useDashboardStore, useDashboardStoreApi, useDashboardStoreOptional, createDashboardStore, selectEditModeState, selectModalState, selectLayoutState, selectDebugData, selectPortletDebugData, selectEditModeActions, selectModalActions, selectLayoutActions, selectDebugDataActions, selectThumbnailDirty, selectAllActions, } from './stores/dashboardStore.js';
|
|
47
|
+
export type { DashboardStore, DashboardStoreState, DashboardStoreActions, PortletDebugDataEntry, DragState, CreateDashboardStoreOptions, DashboardStoreProviderProps, } from './stores/dashboardStore.js';
|
|
48
|
+
export { NotebookStoreProvider, useNotebookStore, createNotebookStore, selectBlocks, selectMessages, selectIsStreaming, selectSessionId, selectInputValue, selectChatState, selectChatActions, selectBlockActions, } from './stores/notebookStore.js';
|
|
49
|
+
export type { NotebookStore, NotebookStoreState, NotebookStoreActions, NotebookStoreProviderProps, NotebookConfig, NotebookBlock, PortletBlock, MarkdownBlock, ChatMessage, ToolCallRecord, } from './stores/notebookStore.js';
|
|
50
|
+
export { useAgentChat } from './hooks/useAgentChat.js';
|
|
51
|
+
export type { UseAgentChatOptions, UseAgentChatResult } from './hooks/useAgentChat.js';
|
|
52
|
+
export { validateMultiQueryConfig, validateTimeDimensionAlignment, validateMergeKeys, detectMeasureCollisions, detectAsymmetricDateRanges, isMultiQueryValid, getValidationSummary } from './utils/multiQueryValidation.js';
|
|
53
|
+
export type { MultiQueryValidationError, MultiQueryValidationWarning, MultiQueryValidationResult } from './utils/multiQueryValidation.js';
|
|
54
|
+
export { useTheme } from './hooks/useTheme.js';
|
|
55
|
+
export { useScrollDetection } from './hooks/useScrollDetection.js';
|
|
56
|
+
export { useElementVisibility } from './hooks/useElementVisibility.js';
|
|
57
|
+
export { useDrillInteraction } from './hooks/useDrillInteraction.js';
|
|
58
|
+
export type { PortletConfig, ChartType, BuiltInChartType, ChartAxisConfig, ChartDisplayConfig, CubeQuery, CubeQueryOptions, CubeApiOptions, DashboardConfig, FeaturesConfig, XlsExportFeatureConfig, ThumbnailFeatureConfig, MultiQueryConfig, QueryMergeStrategy, FunnelBindingKey, FunnelBindingKeyMapping, FunnelStep, FunnelConfig, FunnelStepResult, FunnelExecutionResult, FunnelChartData, FunnelValidationError, FunnelValidationResult, UseFunnelQueryOptions, UseFunnelQueryResult, ServerFlowQuery, FlowQueryConfig, FlowChartData, FlowSliceState, SankeyNode, SankeyLink, FlowStartingStep, FlowResultRow, } from './types.js';
|
|
59
|
+
export { isQueryConfig, isFunnelConfig, isFlowConfig, isRetentionConfig, isMultiQuery, isSingleQuery, isValidAnalysisConfig, createDefaultQueryConfig, createDefaultFunnelConfig, createDefaultFlowConfig, createDefaultRetentionConfig, createDefaultConfig, isValidAnalysisWorkspace, createDefaultWorkspace } from './types/analysisConfig.js';
|
|
60
|
+
export type { AnalysisConfig, QueryAnalysisConfig, FunnelAnalysisConfig, FlowAnalysisConfig, RetentionAnalysisConfig, AnalysisWorkspace } from './types/analysisConfig.js';
|
|
61
|
+
export { isMultiQueryConfig, isServerFunnelQuery, isServerFlowQuery, isSankeyData } from './types.js';
|
|
62
|
+
export type { ChartTypeConfig, DisplayOptionConfig, AxisDropZoneConfig } from './charts/chartConfigs.js';
|
|
63
|
+
export type { ChartDefinition } from './charts/chartPlugin.js';
|
|
64
|
+
export { chartPluginRegistry } from './charts/chartPlugin.js';
|
|
65
|
+
export { createDashboardLayout, formatChartData, highlightCodeBlocks } from './utils/index.js';
|
|
66
|
+
export { migrateConfig, migrateLegacyPortlet } from './utils/configMigration.js';
|
|
67
|
+
export { captureThumbnail, isThumbnailCaptureAvailable, warnIfScreenshotLibMissing } from './utils/thumbnail.js';
|
|
68
|
+
export { exportPortletToXlsx, isExportAvailable, warnIfExcelJsMissing } from './utils/exportXlsx.js';
|
|
69
|
+
export { compressAndEncode, decodeAndDecompress, generateShareUrl, parseShareUrl, isShareableSize } from './utils/shareUtils.js';
|
|
70
|
+
export { isMultiQueryData, mergeQueryResults, mergeResultsConcat, mergeResultsByKey, getCombinedFields, getQueryLabels, getQueryIndices, generateQueryLabel, validateMergeKey } from './utils/multiQueryUtils.js';
|
|
71
|
+
export { validateFunnelConfig, validateBindingKeyExists, validateStepQueries, validateBindingKeyForSteps, isMinimumFunnelConfigValid, getAvailableBindingKeyDimensions, getBindingKeyLabel, } from './utils/funnelValidation.js';
|
|
72
|
+
export { getBindingKeyField, getCubeNameFromQuery, formatDuration, transformServerFunnelResult, buildServerFunnelQuery, isFunnelData, buildFunnelConfigFromQueries, } from './utils/funnelExecution.js';
|
|
73
|
+
export { getThemeVariable, setThemeVariable, applyTheme, resetTheme, getTheme, setTheme, isDarkMode, watchThemeChanges, THEME_PRESETS } from './theme/index.js';
|
|
74
|
+
export type { ThemeColorTokens, ThemeConfig, Theme } from './theme/index.js';
|
|
75
|
+
export { getIcon, getIconData, setIcon, registerIcons, resetIcons, getIconRegistry, getIconsByCategory, getMeasureTypeIcon, getChartTypeIcon, getFieldTypeIcon, DEFAULT_ICONS } from './icons/index.js';
|
|
76
|
+
export type { IconCategory, IconProps, IconComponent, IconDefinition, IconRegistry, IconName, PartialIconRegistry } from './icons/index.js';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CubeClient } from '../client/CubeClient.js';
|
|
3
|
+
import { CubeQueryOptions, CubeApiOptions } from '../types.js';
|
|
4
|
+
import { BatchCoordinator } from '../client/BatchCoordinator.js';
|
|
5
|
+
interface CubeApiContextValue {
|
|
6
|
+
cubeApi: CubeClient;
|
|
7
|
+
options?: CubeQueryOptions;
|
|
8
|
+
apiOptions: CubeApiOptions;
|
|
9
|
+
updateApiConfig: (apiOptions: CubeApiOptions, token?: string) => void;
|
|
10
|
+
batchCoordinator: BatchCoordinator | null;
|
|
11
|
+
enableBatching: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface CubeApiProviderProps {
|
|
14
|
+
apiOptions: CubeApiOptions;
|
|
15
|
+
token?: string;
|
|
16
|
+
options?: CubeQueryOptions;
|
|
17
|
+
locale?: string;
|
|
18
|
+
enableBatching?: boolean;
|
|
19
|
+
batchDelayMs?: number;
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export declare function CubeApiProvider({ apiOptions: initialApiOptions, token: initialToken, options, locale, enableBatching, batchDelayMs, children }: CubeApiProviderProps): import("react").JSX.Element;
|
|
23
|
+
export declare function useCubeApi(): CubeApiContextValue;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { FeaturesConfig, DashboardLayoutMode } from '../types.js';
|
|
3
|
+
interface CubeFeaturesContextValue {
|
|
4
|
+
features: FeaturesConfig;
|
|
5
|
+
dashboardModes: DashboardLayoutMode[];
|
|
6
|
+
updateFeatures: (newFeatures: Partial<FeaturesConfig>) => void;
|
|
7
|
+
}
|
|
8
|
+
interface CubeFeaturesProviderProps {
|
|
9
|
+
features?: FeaturesConfig;
|
|
10
|
+
dashboardModes?: DashboardLayoutMode[];
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare function CubeFeaturesProvider({ features: initialFeatures, dashboardModes, children }: CubeFeaturesProviderProps): import("react").JSX.Element;
|
|
14
|
+
/**
|
|
15
|
+
* Hook to access cube features context.
|
|
16
|
+
* Returns default values if used outside CubeFeaturesProvider (graceful fallback).
|
|
17
|
+
*/
|
|
18
|
+
export declare function useCubeFeatures(): CubeFeaturesContextValue;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CubeMeta, FieldLabelMap } from '../types.js';
|
|
2
|
+
export interface CubeMetaContextValue {
|
|
3
|
+
meta: CubeMeta | null;
|
|
4
|
+
labelMap: FieldLabelMap;
|
|
5
|
+
metaLoading: boolean;
|
|
6
|
+
metaError: string | null;
|
|
7
|
+
getFieldLabel: (fieldName: string) => string;
|
|
8
|
+
refetchMeta: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const CubeMetaContext: import('react').Context<CubeMetaContextValue | null>;
|
|
11
|
+
export declare function useCubeMeta(): CubeMetaContextValue;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
3
|
+
import { useCubeApi } from './CubeApiProvider.js';
|
|
4
|
+
import { useCubeMeta } from './CubeMetaContext.js';
|
|
5
|
+
import { useCubeFeatures } from './CubeFeaturesProvider.js';
|
|
6
|
+
import { CubeQueryOptions, CubeApiOptions, FeaturesConfig, DashboardLayoutMode, CubeMeta, FieldLabelMap } from '../types.js';
|
|
7
|
+
import { CubeClient } from '../client/CubeClient.js';
|
|
8
|
+
import { BatchCoordinator } from '../client/BatchCoordinator.js';
|
|
9
|
+
import { ChartDefinition } from '../charts/chartPlugin.js';
|
|
10
|
+
export declare const createCubeQueryClient: () => QueryClient;
|
|
11
|
+
export declare const queryClient: QueryClient;
|
|
12
|
+
interface CubeContextValue {
|
|
13
|
+
cubeApi: CubeClient;
|
|
14
|
+
options?: CubeQueryOptions;
|
|
15
|
+
meta: CubeMeta | null;
|
|
16
|
+
labelMap: FieldLabelMap;
|
|
17
|
+
metaLoading: boolean;
|
|
18
|
+
metaError: string | null;
|
|
19
|
+
getFieldLabel: (fieldName: string) => string;
|
|
20
|
+
refetchMeta: () => void;
|
|
21
|
+
updateApiConfig: (apiOptions: CubeApiOptions, token?: string) => void;
|
|
22
|
+
features: FeaturesConfig;
|
|
23
|
+
batchCoordinator: BatchCoordinator | null;
|
|
24
|
+
enableBatching: boolean;
|
|
25
|
+
dashboardModes: DashboardLayoutMode[];
|
|
26
|
+
}
|
|
27
|
+
interface CubeProviderProps {
|
|
28
|
+
cubeApi?: CubeClient;
|
|
29
|
+
apiOptions?: CubeApiOptions;
|
|
30
|
+
token?: string;
|
|
31
|
+
options?: CubeQueryOptions;
|
|
32
|
+
features?: FeaturesConfig;
|
|
33
|
+
dashboardModes?: DashboardLayoutMode[];
|
|
34
|
+
enableBatching?: boolean;
|
|
35
|
+
batchDelayMs?: number;
|
|
36
|
+
queryClient?: QueryClient;
|
|
37
|
+
/** Custom chart definitions to register. Overrides built-in charts when `type` matches. */
|
|
38
|
+
customCharts?: ChartDefinition[];
|
|
39
|
+
/** Locale code for i18n (default: 'en-GB'). Bundled locales are loaded via dynamic import. */
|
|
40
|
+
locale?: string;
|
|
41
|
+
/** Optional translation overrides merged on top of the loaded locale. */
|
|
42
|
+
translations?: Record<string, string>;
|
|
43
|
+
/** Enable i18n debug mode — logs console warnings for missing translation keys. */
|
|
44
|
+
debugI18n?: boolean;
|
|
45
|
+
children: ReactNode;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* CubeProvider - Three-layer context wrapper
|
|
49
|
+
*
|
|
50
|
+
* Wraps children in three isolated context providers for optimal performance:
|
|
51
|
+
* 1. CubeApiProvider - Stable API layer (changes only on auth)
|
|
52
|
+
* 2. CubeMetaProvider - Metadata layer (changes on metadata load)
|
|
53
|
+
* 3. CubeFeaturesProvider - Feature flags layer (changes on feature updates)
|
|
54
|
+
*/
|
|
55
|
+
export declare function CubeProvider({ cubeApi: _initialCubeApi, // Intentionally unused - for backward compatibility
|
|
56
|
+
apiOptions, token, options, features, dashboardModes, enableBatching, batchDelayMs, queryClient: providedQueryClient, customCharts, locale, translations, debugI18n, children }: CubeProviderProps): import("react").JSX.Element;
|
|
57
|
+
/**
|
|
58
|
+
* useCubeContext - Backward compatible hook
|
|
59
|
+
*
|
|
60
|
+
* Merges all three contexts into a single object for backward compatibility.
|
|
61
|
+
* Components using this hook will re-render when ANY context changes.
|
|
62
|
+
*
|
|
63
|
+
* For better performance, use specialized hooks:
|
|
64
|
+
* - useCubeApi() - Only re-renders on API changes
|
|
65
|
+
* - useCubeMeta() - Only re-renders on metadata changes
|
|
66
|
+
* - useCubeFeatures() - Only re-renders on feature changes
|
|
67
|
+
*/
|
|
68
|
+
export declare function useCubeContext(): CubeContextValue;
|
|
69
|
+
export { useCubeApi, useCubeMeta, useCubeFeatures };
|
|
70
|
+
export { createCubeQueryClient as createQueryClient };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TranslationKey, TranslationParams } from '../../i18n/types.js';
|
|
3
|
+
export interface I18nContextValue {
|
|
4
|
+
t: (key: TranslationKey, params?: TranslationParams) => string;
|
|
5
|
+
locale: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const I18nContext: import('react').Context<I18nContextValue>;
|
|
8
|
+
interface I18nProviderProps {
|
|
9
|
+
locale?: string;
|
|
10
|
+
translations?: Record<string, string>;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* I18nProvider — loads the requested locale and optionally merges consumer overrides.
|
|
15
|
+
* Wraps children with a React context providing `t()` and `locale`.
|
|
16
|
+
*/
|
|
17
|
+
export declare function I18nProvider({ locale, translations, children }: I18nProviderProps): import("react").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ScrollContainerContext
|
|
3
|
+
*
|
|
4
|
+
* Provides the scroll container element for lazy loading with IntersectionObserver.
|
|
5
|
+
* This allows portlets to detect visibility relative to a custom scroll container
|
|
6
|
+
* (not just the viewport) when the dashboard is embedded in a scrolling div.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Provider component to wrap dashboard content with a scroll container reference.
|
|
10
|
+
* Used by DashboardGrid and MobileStackedLayout to pass the detected scroll container
|
|
11
|
+
* to child portlets.
|
|
12
|
+
*/
|
|
13
|
+
export declare const ScrollContainerProvider: import('react').Provider<HTMLElement | null>;
|
|
14
|
+
/**
|
|
15
|
+
* Hook to access the scroll container element for lazy loading.
|
|
16
|
+
* Returns null if using viewport (window) scroll, or the container element
|
|
17
|
+
* if the dashboard is inside a scrolling container.
|
|
18
|
+
*/
|
|
19
|
+
export declare const useScrollContainer: () => HTMLElement | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Drizzle Cube React Providers
|
|
3
|
+
*
|
|
4
|
+
* React providers and context only - for applications that need data providers
|
|
5
|
+
* without UI components.
|
|
6
|
+
*/
|
|
7
|
+
export { CubeProvider, useCubeContext } from './providers/CubeProvider.js';
|
|
8
|
+
export { ScrollContainerProvider, useScrollContainer } from './providers/ScrollContainerContext.js';
|
|
9
|
+
export { createCubeClient } from './client/CubeClient.js';
|
|
10
|
+
export type { CubeApiOptions, CubeQueryOptions } from './types.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Separate entry point for SchemaVisualization.
|
|
3
|
+
*
|
|
4
|
+
* This component requires @xyflow/react and elkjs as peer dependencies.
|
|
5
|
+
* It is exported separately to avoid pulling these optional dependencies
|
|
6
|
+
* into the main 'drizzle-cube/client' bundle, which would break
|
|
7
|
+
* webpack/Next.js builds that don't have them installed.
|
|
8
|
+
*
|
|
9
|
+
* Usage:
|
|
10
|
+
* import { SchemaVisualization } from 'drizzle-cube/client/schema'
|
|
11
|
+
*/
|
|
12
|
+
export { SchemaVisualizationLazy as SchemaVisualization } from './components/SchemaVisualization/SchemaVisualizationLazy.js';
|
|
13
|
+
export type { SchemaVisualizationProps } from './components/SchemaVisualization/index.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChartType, ChartAxisConfig } from '../types.js';
|
|
2
|
+
import { MetricItem, BreakdownItem } from '../components/AnalysisBuilder/types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Resolved breakdown selections passed to every axis builder.
|
|
5
|
+
*/
|
|
6
|
+
export interface AxisBuilderContext {
|
|
7
|
+
metrics: MetricItem[];
|
|
8
|
+
breakdowns: BreakdownItem[];
|
|
9
|
+
timeDimension: BreakdownItem | undefined;
|
|
10
|
+
dimension: BreakdownItem | undefined;
|
|
11
|
+
dimensions: BreakdownItem[];
|
|
12
|
+
}
|
|
13
|
+
type AxisBuilder = (ctx: AxisBuilderContext) => ChartAxisConfig;
|
|
14
|
+
/**
|
|
15
|
+
* Resolve the axis builder for a chart type, falling back to the default.
|
|
16
|
+
*/
|
|
17
|
+
export declare function getAxisBuilder(chartType: ChartType): AxisBuilder;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ChartType, ChartAxisConfig } from '../types.js';
|
|
2
|
+
import { MetricItem, BreakdownItem } from '../components/AnalysisBuilder/types.js';
|
|
3
|
+
import { ChartAvailability } from '../charts/chartConfigs.js';
|
|
4
|
+
/**
|
|
5
|
+
* Result of smart chart defaults calculation
|
|
6
|
+
*/
|
|
7
|
+
export interface SmartChartDefaults {
|
|
8
|
+
/** The recommended chart type */
|
|
9
|
+
chartType: ChartType;
|
|
10
|
+
/** The auto-configured chart axis settings */
|
|
11
|
+
chartConfig: ChartAxisConfig;
|
|
12
|
+
}
|
|
13
|
+
export type { ChartAvailability } from '../charts/chartConfigs.js';
|
|
14
|
+
/**
|
|
15
|
+
* Map of chart type availability statuses
|
|
16
|
+
*/
|
|
17
|
+
export type ChartAvailabilityMap = Record<ChartType, ChartAvailability>;
|
|
18
|
+
/**
|
|
19
|
+
* Check if a specific chart type is available given current selections.
|
|
20
|
+
* Delegates to each chart's own `isAvailable` declared in its .config.ts —
|
|
21
|
+
* availability requirements live next to the chart they describe, not here.
|
|
22
|
+
*/
|
|
23
|
+
export declare function getChartAvailability(chartType: ChartType, metrics: MetricItem[], breakdowns: BreakdownItem[]): ChartAvailability;
|
|
24
|
+
/**
|
|
25
|
+
* Get availability for all chart types
|
|
26
|
+
*/
|
|
27
|
+
export declare function getAllChartAvailability(metrics: MetricItem[], breakdowns: BreakdownItem[]): ChartAvailabilityMap;
|
|
28
|
+
/**
|
|
29
|
+
* Select the best chart type based on current metrics and breakdowns
|
|
30
|
+
*
|
|
31
|
+
* Priority order:
|
|
32
|
+
* 1. If current chart type is still valid, keep it (preserve user intent)
|
|
33
|
+
* 2. If current chart becomes invalid, switch to best alternative:
|
|
34
|
+
* - Has time dimension → line
|
|
35
|
+
* - Has dimension + measure → bar
|
|
36
|
+
* - Has measures only → bar (or kpiNumber if single measure + no breakdowns)
|
|
37
|
+
* - No fields → keep current
|
|
38
|
+
*/
|
|
39
|
+
export declare function selectBestChartType(metrics: MetricItem[], breakdowns: BreakdownItem[], currentChartType: ChartType): ChartType;
|
|
40
|
+
/**
|
|
41
|
+
* Get smart default chart configuration based on chart type and selections
|
|
42
|
+
*/
|
|
43
|
+
export declare function getSmartChartDefaults(metrics: MetricItem[], breakdowns: BreakdownItem[], currentChartType: ChartType): SmartChartDefaults;
|
|
44
|
+
/**
|
|
45
|
+
* Determine if chart type should be auto-switched based on selections change
|
|
46
|
+
*
|
|
47
|
+
* Returns the new chart type if a switch is recommended, or null if no change needed.
|
|
48
|
+
*
|
|
49
|
+
* @param metrics - Current metrics selection
|
|
50
|
+
* @param breakdowns - Current breakdowns selection
|
|
51
|
+
* @param currentChartType - Current chart type
|
|
52
|
+
* @param userManuallySelected - Whether user manually selected the current chart type
|
|
53
|
+
*/
|
|
54
|
+
export declare function shouldAutoSwitchChartType(metrics: MetricItem[], breakdowns: BreakdownItem[], currentChartType: ChartType, userManuallySelected: boolean): ChartType | null;
|
|
55
|
+
/**
|
|
56
|
+
* Merge existing chart config with smart defaults
|
|
57
|
+
* Only fills in missing or invalid fields, preserves valid existing config
|
|
58
|
+
*/
|
|
59
|
+
export declare function mergeChartConfigWithDefaults(existingConfig: ChartAxisConfig, smartDefaults: ChartAxisConfig, metrics: MetricItem[], breakdowns: BreakdownItem[]): ChartAxisConfig;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface CodeBlockProps {
|
|
3
|
+
code: string;
|
|
4
|
+
language: 'json' | 'sql';
|
|
5
|
+
title?: string;
|
|
6
|
+
maxHeight?: string;
|
|
7
|
+
height?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Additional content to render on the right side of the header (before Copy button) */
|
|
10
|
+
headerRight?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const CodeBlock: React.FC<CodeBlockProps>;
|
|
13
|
+
export default CodeBlock;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { QueryAnalysis, JoinPathAnalysis } from '../types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Format reason string for display
|
|
5
|
+
*/
|
|
6
|
+
export declare function formatReason(reason: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Get badge color based on reason
|
|
9
|
+
*/
|
|
10
|
+
export declare function getReasonBadgeClasses(reason: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* Render a single join path entry (header, steps, selection, candidates).
|
|
13
|
+
*/
|
|
14
|
+
export declare const JoinPathItem: React.FC<{
|
|
15
|
+
jp: JoinPathAnalysis;
|
|
16
|
+
primaryCube: string;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* Render the "Join Paths" section (only when paths are present).
|
|
20
|
+
*/
|
|
21
|
+
export declare const JoinPathsSection: React.FC<{
|
|
22
|
+
analysis: QueryAnalysis;
|
|
23
|
+
}>;
|
|
24
|
+
/**
|
|
25
|
+
* Render the "Primary Cube" section.
|
|
26
|
+
*/
|
|
27
|
+
export declare const PrimaryCubeSection: React.FC<{
|
|
28
|
+
analysis: QueryAnalysis;
|
|
29
|
+
}>;
|
|
30
|
+
/**
|
|
31
|
+
* Render the "Pre-Aggregations" section (only when present).
|
|
32
|
+
*/
|
|
33
|
+
export declare const PreAggregationsSection: React.FC<{
|
|
34
|
+
analysis: QueryAnalysis;
|
|
35
|
+
}>;
|
|
36
|
+
/**
|
|
37
|
+
* Render the "Warnings" section (only when present).
|
|
38
|
+
*/
|
|
39
|
+
export declare const WarningsSection: React.FC<{
|
|
40
|
+
analysis: QueryAnalysis;
|
|
41
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared module exports
|
|
3
|
+
* Common types, utilities, and components used across QueryBuilder and AnalysisBuilder
|
|
4
|
+
*/
|
|
5
|
+
export type { MetaField, MetaCube, MetaResponse, QueryAnalysis, PrimaryCubeSelectionReason, PrimaryCubeCandidate, PrimaryCubeAnalysis, JoinPathStep, JoinPathAnalysis, PreAggregationAnalysis, QuerySummary, ValidationResult, FilterOperatorMeta, DateRangeType, DateRangeOption, TimeGranularity } from './types.js';
|
|
6
|
+
export { FILTER_OPERATORS, DATE_RANGE_OPTIONS, TIME_GRANULARITIES } from './types.js';
|
|
7
|
+
export { isSimpleFilter, isGroupFilter, isAndFilter, isOrFilter, flattenFilters, countFilters, createSimpleFilter, createAndFilter, createOrFilter, transformFiltersForServer, transformFiltersFromServer, hasQueryContent, cleanQuery, cleanQueryForServer, transformQueryForUI, getCubeNameFromField, getFieldType, getFieldTitle, getAvailableOperators, getAllFilterableFields, convertDateRangeTypeToValue, requiresNumberInput, formatDateForCube } from './utils.js';
|
|
8
|
+
export { default as QueryAnalysisPanel } from './components/QueryAnalysisPanel.js';
|
|
9
|
+
export { default as CodeBlock } from './components/CodeBlock.js';
|
|
10
|
+
export { getChartAvailability, getAllChartAvailability, selectBestChartType, getSmartChartDefaults, shouldAutoSwitchChartType, mergeChartConfigWithDefaults } from './chartDefaults.js';
|
|
11
|
+
export type { SmartChartDefaults, ChartAvailability, ChartAvailabilityMap } from './chartDefaults.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function stableStringify(value: unknown): string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CubeQuery, Filter } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Clean query object by removing empty arrays.
|
|
4
|
+
*
|
|
5
|
+
* Leaf helper kept here (rather than in shared/utils.ts) so that
|
|
6
|
+
* `transformQueryForUIImpl` can use it without creating an import cycle back
|
|
7
|
+
* into utils.ts. Re-exported from utils.ts to keep existing import paths stable.
|
|
8
|
+
*/
|
|
9
|
+
export declare function cleanQuery(query: CubeQuery): CubeQuery;
|
|
10
|
+
/**
|
|
11
|
+
* Transform a single filter from server/API format to UI format.
|
|
12
|
+
* Converts {and: [...]} / {or: [...]} to {type, filters} GroupFilter shape and
|
|
13
|
+
* recurses; passes simple filters through unchanged.
|
|
14
|
+
*/
|
|
15
|
+
export declare function transformFilterFromServer(filter: any): Filter | null | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Transform a Cube.js query from external format to UI internal format.
|
|
18
|
+
* Handles format differences between server/API queries and QueryBuilder state.
|
|
19
|
+
*/
|
|
20
|
+
export declare function transformQueryForUIImpl(query: any, transformFiltersFromServer: (filters: any[]) => Filter[]): CubeQuery;
|