drizzle-cube 0.12.2 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/ActivityGridChart.config-D14_z5sv.js +1 -0
- package/dist/adapters/ActivityGridChart.config-ufhph9uT.cjs +1 -0
- package/dist/adapters/AreaChart.config-0WZQMQva.js +1 -0
- package/dist/adapters/AreaChart.config-D13ltksm.cjs +1 -0
- package/dist/adapters/BarChart.config-CKW_EixK.cjs +1 -0
- package/dist/adapters/BarChart.config-Dap2k5h9.js +1 -0
- package/dist/adapters/BoxPlotChart.config-BL9GycIS.js +1 -0
- package/dist/adapters/BoxPlotChart.config-D8ijk7P0.cjs +1 -0
- package/dist/adapters/BubbleChart.config-B5mdZpOU.js +1 -0
- package/dist/adapters/BubbleChart.config-D_F6Q5z3.cjs +1 -0
- package/dist/adapters/CandlestickChart.config-DWebnARH.cjs +1 -0
- package/dist/adapters/CandlestickChart.config-U_bjkKnh.js +1 -0
- package/dist/adapters/DataTable.config-CgONV9qM.cjs +1 -0
- package/dist/adapters/DataTable.config-Cuagfjxg.js +1 -0
- package/dist/adapters/DotStripChart.config-B5lxjWSO.js +1 -0
- package/dist/adapters/DotStripChart.config-fD9Mc6W1.cjs +1 -0
- package/dist/adapters/FunnelChart.config-BaE_hLT-.js +1 -0
- package/dist/adapters/FunnelChart.config-Cx7W7-R0.cjs +1 -0
- package/dist/adapters/GaugeChart.config-CgKuBQVo.cjs +1 -0
- package/dist/adapters/GaugeChart.config-ilNlLLj6.js +1 -0
- package/dist/adapters/HeatMapChart.config-Bbk6aa8K.js +1 -0
- package/dist/adapters/HeatMapChart.config-CURg_iiu.cjs +1 -0
- package/dist/adapters/KpiDelta.config-CuZ2C_6t.js +1 -0
- package/dist/adapters/KpiDelta.config-DRy870xF.cjs +1 -0
- package/dist/adapters/KpiNumber.config-BWowvaBG.cjs +1 -0
- package/dist/adapters/KpiNumber.config-h9VspPBo.js +1 -0
- package/dist/adapters/KpiText.config-CXouHoxx.js +1 -0
- package/dist/adapters/KpiText.config-dSbcOdVW.cjs +1 -0
- package/dist/adapters/LineChart.config-BrcTc3dO.cjs +1 -0
- package/dist/adapters/LineChart.config-DOZctkmK.js +1 -0
- package/dist/adapters/MarkdownChart.config-BduAIK5N.js +1 -0
- package/dist/adapters/MarkdownChart.config-CFnH92Fg.cjs +1 -0
- package/dist/adapters/MeasureProfileChart.config-BgdtMIbZ.js +1 -0
- package/dist/adapters/MeasureProfileChart.config-CUahwnse.cjs +1 -0
- package/dist/adapters/PieChart.config-Bwf8meCN.js +1 -0
- package/dist/adapters/PieChart.config-ClfJ6LyA.cjs +1 -0
- package/dist/adapters/ProportionBarChart.config-CKyen5fP.cjs +1 -0
- package/dist/adapters/ProportionBarChart.config-D7RADfKH.js +1 -0
- package/dist/adapters/RadarChart.config-CBR7pNrt.js +1 -0
- package/dist/adapters/RadarChart.config-DSLRklgx.cjs +1 -0
- package/dist/adapters/RadialBarChart.config-BTGjY6JD.js +1 -0
- package/dist/adapters/RadialBarChart.config-CPbimqdg.cjs +1 -0
- package/dist/adapters/RecordsTable.config-B1Z_3JTJ.js +1 -0
- package/dist/adapters/RecordsTable.config-C6QhLcZk.cjs +1 -0
- package/dist/adapters/RetentionCombinedChart.config-BkSezvSb.js +1 -0
- package/dist/adapters/RetentionCombinedChart.config-R1Eq-xRI.cjs +1 -0
- package/dist/adapters/RetentionHeatmap.config-BlUhtL5W.js +1 -0
- package/dist/adapters/RetentionHeatmap.config-DCIsToqo.cjs +1 -0
- package/dist/adapters/SankeyChart.config-Bt0F2A6e.js +1 -0
- package/dist/adapters/SankeyChart.config-_Z5ZrziF.cjs +1 -0
- package/dist/adapters/ScatterChart.config-BW0_kSo8.cjs +1 -0
- package/dist/adapters/ScatterChart.config-DCaM-v68.js +1 -0
- package/dist/adapters/SunburstChart.config-B8Q9pbbo.js +1 -0
- package/dist/adapters/SunburstChart.config-mhQZB6uc.cjs +1 -0
- package/dist/adapters/TreeMapChart.config-Ch--bdyv.js +1 -0
- package/dist/adapters/TreeMapChart.config-DaNlt1aC.cjs +1 -0
- package/dist/adapters/WaterfallChart.config-CR49XWjE.cjs +1 -0
- package/dist/adapters/WaterfallChart.config-qHaD0m4H.js +1 -0
- package/dist/adapters/core/cache-options.d.ts +4 -0
- package/dist/adapters/core/index.cjs +1 -1
- package/dist/adapters/core/index.js +1 -1
- package/dist/adapters/core-3nDM2f7O.cjs +1 -0
- package/dist/adapters/{core-pxHAXRX7.js → core-CD6SqK5q.js} +66 -58
- package/dist/adapters/{compiler-DEL18KHw.js → cors-headers-DYYDrG7S.js} +129 -110
- package/dist/adapters/{compiler-Cs1gQ8Tc.cjs → cors-headers-DxkPVNnZ.cjs} +4 -4
- package/dist/adapters/cors-headers.d.ts +19 -0
- package/dist/adapters/express/index.cjs +1 -1
- package/dist/adapters/express/index.js +13 -13
- package/dist/adapters/fastify/index.cjs +1 -1
- package/dist/adapters/fastify/index.js +13 -13
- package/dist/adapters/{handler-zbRXe0T7.js → handler-B_vsFWWm.js} +32 -32
- package/dist/adapters/{handler-BIntJx7r.cjs → handler-DSOaXFuV.cjs} +3 -3
- package/dist/adapters/hono/index.cjs +1 -1
- package/dist/adapters/hono/index.js +12 -12
- package/dist/adapters/locale.d.ts +0 -1
- package/dist/adapters/mcp-app-html-DkiIh0rL.cjs +1 -0
- package/dist/adapters/mcp-app-html-DwnysAEL.js +5 -0
- package/dist/adapters/mcp-app-html.cjs +1 -1
- package/dist/adapters/mcp-app-html.js +1 -1
- package/dist/adapters/mcp-tools.cjs +1 -1
- package/dist/adapters/mcp-tools.js +3 -3
- package/dist/adapters/{mcp-transport-D0sMYZAv.cjs → mcp-transport-7zszPPXk.cjs} +1 -1
- package/dist/adapters/{mcp-transport-Dt0OJUTC.js → mcp-transport-DVI1lCNM.js} +1 -1
- package/dist/adapters/nextjs/index.cjs +1 -1
- package/dist/adapters/nextjs/index.js +20 -20
- package/dist/adapters/{openai-D-GSoFRS.js → openai-Bdnnw3Ok.js} +1 -1
- package/dist/adapters/{openai-fP9uuybp.cjs → openai-CE52anhW.cjs} +1 -1
- package/dist/adapters/{openai-yZ3KkIqz.js → openai-DA9yrRkA.js} +1 -1
- package/dist/adapters/{openai-BVi0RiSA.cjs → openai-JLaT_FPt.cjs} +1 -1
- package/dist/adapters/{utils-BTZoHYi5.js → utils-BtiRfbcX.js} +28 -2
- package/dist/adapters/utils-OLv25-nn.cjs +141 -0
- package/dist/adapters/utils.cjs +1 -1
- package/dist/adapters/utils.d.ts +5 -10
- package/dist/adapters/utils.js +1 -1
- package/dist/cjs/adapters/core/cache-options.d.ts +4 -0
- package/dist/cjs/adapters/cors-headers.d.ts +19 -0
- package/dist/cjs/adapters/locale.d.ts +0 -1
- package/dist/cjs/adapters/utils.d.ts +5 -10
- package/dist/cjs/client/charts/lazyChartConfigRegistry.d.ts +2 -2
- package/dist/cjs/client/client/BatchCoordinator.d.ts +21 -6
- package/dist/cjs/client/client/CubeClient.d.ts +34 -8
- package/dist/cjs/client/client/maxAge.d.ts +84 -0
- package/dist/cjs/client/client/subscription.d.ts +30 -0
- package/dist/cjs/client/components/DashboardPortletCard.d.ts +1 -1
- package/dist/cjs/client/components/FloatingEditToolbar.d.ts +5 -1
- package/dist/cjs/client/components/MobileStackedLayout.d.ts +8 -2
- package/dist/cjs/client/components/PortletAnalysisModal.d.ts +4 -2
- package/dist/cjs/client/components/analyticsPortlet/usePortletDeadMembers.d.ts +4 -2
- package/dist/cjs/client/components/analyticsPortlet/usePortletQueryResults.d.ts +15 -5
- package/dist/cjs/client/components/analyticsPortlet/usePortletVisibility.d.ts +23 -0
- package/dist/cjs/client/components/dashboard/DashboardContext.d.ts +16 -3
- package/dist/cjs/client/components/dashboard/DashboardEditBar.d.ts +1 -1
- package/dist/cjs/client/components/dashboard/DashboardRefreshSelector.d.ts +12 -0
- package/dist/cjs/client/components/dashboard/DashboardToolbar.d.ts +2 -1
- package/dist/cjs/client/components/dashboard/RefreshPauseToggle.d.ts +8 -0
- package/dist/cjs/client/components/dashboardPortletCard/DataFreshnessIndicator.d.ts +19 -0
- package/dist/cjs/client/components/dashboardPortletCard/PortletCardHeader.d.ts +13 -3
- package/dist/cjs/client/components/dashboardPortletCard/PortletFloatingActions.d.ts +2 -3
- package/dist/cjs/client/components/dashboardPortletCard/propsEqual.d.ts +7 -4
- package/dist/cjs/client/components/portletAnalysisModal/RefreshSettings.d.ts +24 -0
- package/dist/cjs/client/hooks/dashboard/useDashboardController.d.ts +6 -10
- package/dist/cjs/client/hooks/dashboard/useDashboardRefreshTimer.d.ts +28 -0
- package/dist/cjs/client/hooks/queries/useCubeLoadQuery.d.ts +26 -6
- package/dist/cjs/client/hooks/queries/useFlowQuery.d.ts +6 -3
- package/dist/cjs/client/hooks/queries/useMultiCubeLoadQuery.d.ts +13 -4
- package/dist/cjs/client/hooks/queries/useRetentionQuery.d.ts +7 -4
- package/dist/cjs/client/hooks/queries/useShownRowsAge.d.ts +10 -0
- package/dist/cjs/client/hooks/useAnalysisBuilderHook.d.ts +2 -3
- package/dist/cjs/client/hooks/useAnalysisEffects.d.ts +2 -0
- package/dist/cjs/client/hooks/useAnalysisQuery.d.ts +2 -3
- package/dist/cjs/client/hooks/useDashboardHook.d.ts +7 -10
- package/dist/cjs/client/icons/types.d.ts +2 -0
- package/dist/cjs/client/index.d.ts +3 -1
- package/dist/cjs/client/shared/chartDefaults.d.ts +5 -3
- package/dist/cjs/client/stores/dashboardStore.d.ts +13 -0
- package/dist/cjs/client/types/funnel.d.ts +10 -4
- package/dist/cjs/client/types.d.ts +68 -3
- package/dist/cjs/client/utils/freshness.d.ts +37 -0
- package/dist/cjs/client/utils/multiQueryUtils.d.ts +23 -0
- package/dist/cjs/server/compiler.d.ts +2 -0
- package/dist/cjs/server/execution/query-result-cache.d.ts +8 -2
- package/dist/cjs/server/executor.d.ts +1 -0
- package/dist/cjs/server/physical-plan/processors/shared.d.ts +2 -0
- package/dist/cjs/server/types/core.d.ts +12 -1
- package/dist/cjs/server/types/cube.d.ts +7 -0
- package/dist/client/charts/lazyChartConfigRegistry.d.ts +2 -2
- package/dist/client/charts.js +13 -13
- package/dist/client/chunks/{DashboardEditModal-C7Nj2XvQ.js → DashboardEditModal-F2fGr29d.js} +2572 -2196
- package/dist/client/chunks/DashboardEditModal-F2fGr29d.js.map +1 -0
- package/dist/client/chunks/{DotStripChart-QEz91ja9.js → DotStripChart-CQaJwo8K.js} +3 -3
- package/dist/client/chunks/{DotStripChart-QEz91ja9.js.map → DotStripChart-CQaJwo8K.js.map} +1 -1
- package/dist/client/chunks/{ProportionBarChart-pb8nuT0D.js → ProportionBarChart-DiA5ZGeg.js} +3 -3
- package/dist/client/chunks/{ProportionBarChart-pb8nuT0D.js.map → ProportionBarChart-DiA5ZGeg.js.map} +1 -1
- package/dist/client/chunks/{RecordsTable-D8Lirq-E.js → RecordsTable-Bgqo-LjT.js} +166 -166
- package/dist/client/chunks/RecordsTable-Bgqo-LjT.js.map +1 -0
- package/dist/client/chunks/{RetentionCombinedChart-B9onTBMq.js → RetentionCombinedChart-BtMRtwlb.js} +3 -3
- package/dist/client/chunks/{RetentionCombinedChart-B9onTBMq.js.map → RetentionCombinedChart-BtMRtwlb.js.map} +1 -1
- package/dist/client/chunks/{RetentionHeatmap-WN_NOsvA.js → RetentionHeatmap-ChTa35gp.js} +2 -2
- package/dist/client/chunks/{RetentionHeatmap-WN_NOsvA.js.map → RetentionHeatmap-ChTa35gp.js.map} +1 -1
- package/dist/client/chunks/{analysis-builder-CmnW9_92.js → analysis-builder-CnmkTZm2.js} +831 -845
- package/dist/client/chunks/analysis-builder-CnmkTZm2.js.map +1 -0
- package/dist/client/chunks/{analysis-builder-shared-W_lbhFRa.js → analysis-builder-shared-BsjxOL7r.js} +809 -803
- package/dist/client/chunks/analysis-builder-shared-BsjxOL7r.js.map +1 -0
- package/dist/client/chunks/{chart-activity-grid-CJXF0zeZ.js → chart-activity-grid-DeDPSs12.js} +27 -2
- package/dist/client/chunks/{chart-activity-grid-CJXF0zeZ.js.map → chart-activity-grid-DeDPSs12.js.map} +1 -1
- package/dist/client/chunks/{chart-area-DbcIg5Ql.js → chart-area-WyrVYze7.js} +2 -2
- package/dist/client/chunks/{chart-area-DbcIg5Ql.js.map → chart-area-WyrVYze7.js.map} +1 -1
- package/dist/client/chunks/{chart-bar-E_qVO7I9.js → chart-bar-wGHC1Hfo.js} +3 -3
- package/dist/client/chunks/{chart-bar-E_qVO7I9.js.map → chart-bar-wGHC1Hfo.js.map} +1 -1
- package/dist/client/chunks/{chart-box-plot-CIwQZh9I.js → chart-box-plot-CW5GZHM9.js} +2 -2
- package/dist/client/chunks/{chart-box-plot-CIwQZh9I.js.map → chart-box-plot-CW5GZHM9.js.map} +1 -1
- package/dist/client/chunks/{chart-bubble-BrMToSQW.js → chart-bubble-CKkVi7L2.js} +2 -2
- package/dist/client/chunks/{chart-bubble-BrMToSQW.js.map → chart-bubble-CKkVi7L2.js.map} +1 -1
- package/dist/client/chunks/{chart-candlestick-C9FBo9mf.js → chart-candlestick-BPFeay7t.js} +2 -2
- package/dist/client/chunks/{chart-candlestick-C9FBo9mf.js.map → chart-candlestick-BPFeay7t.js.map} +1 -1
- package/dist/client/chunks/{chart-data-table-vxJ9eDbC.js → chart-data-table-uJG1V-be.js} +1133 -854
- package/dist/client/chunks/chart-data-table-uJG1V-be.js.map +1 -0
- package/dist/client/chunks/{chart-funnel-D11lxZ5_.js → chart-funnel-BtUexI1t.js} +2 -2
- package/dist/client/chunks/{chart-funnel-D11lxZ5_.js.map → chart-funnel-BtUexI1t.js.map} +1 -1
- package/dist/client/chunks/{chart-gauge-BQcgvynO.js → chart-gauge-BSrfZFsW.js} +3 -3
- package/dist/client/chunks/{chart-gauge-BQcgvynO.js.map → chart-gauge-BSrfZFsW.js.map} +1 -1
- package/dist/client/chunks/{chart-heat-map-J2j5MNLJ.js → chart-heat-map-DtMtuFnw.js} +3 -3
- package/dist/client/chunks/{chart-heat-map-J2j5MNLJ.js.map → chart-heat-map-DtMtuFnw.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-delta-BKEJT7mj.js → chart-kpi-delta-B0BkN_Q6.js} +3 -3
- package/dist/client/chunks/{chart-kpi-delta-BKEJT7mj.js.map → chart-kpi-delta-B0BkN_Q6.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-number-DCBXjFI-.js → chart-kpi-number-zlBkLesi.js} +5 -5
- package/dist/client/chunks/{chart-kpi-number-DCBXjFI-.js.map → chart-kpi-number-zlBkLesi.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-text-D_qFY84K.js → chart-kpi-text-BXXfkhz_.js} +3 -3
- package/dist/client/chunks/{chart-kpi-text-D_qFY84K.js.map → chart-kpi-text-BXXfkhz_.js.map} +1 -1
- package/dist/client/chunks/{chart-line-CS2ixl5U.js → chart-line-D_yFQDze.js} +3 -3
- package/dist/client/chunks/{chart-line-CS2ixl5U.js.map → chart-line-D_yFQDze.js.map} +1 -1
- package/dist/client/chunks/{chart-markdown-DKMZqwwH.js → chart-markdown-DaBTpRgf.js} +2 -2
- package/dist/client/chunks/{chart-markdown-DKMZqwwH.js.map → chart-markdown-DaBTpRgf.js.map} +1 -1
- package/dist/client/chunks/{chart-measure-profile-Cu-JZfYt.js → chart-measure-profile-DOHIm-QY.js} +3 -3
- package/dist/client/chunks/{chart-measure-profile-Cu-JZfYt.js.map → chart-measure-profile-DOHIm-QY.js.map} +1 -1
- package/dist/client/chunks/{chart-pie-CNRjmYs5.js → chart-pie-DLrT81CL.js} +3 -3
- package/dist/client/chunks/{chart-pie-CNRjmYs5.js.map → chart-pie-DLrT81CL.js.map} +1 -1
- package/dist/client/chunks/{chart-radar-BZbwDAIY.js → chart-radar-CcXG6k6o.js} +3 -3
- package/dist/client/chunks/{chart-radar-BZbwDAIY.js.map → chart-radar-CcXG6k6o.js.map} +1 -1
- package/dist/client/chunks/{chart-radial-bar-Dvd2DAnu.js → chart-radial-bar-DYn5FLrG.js} +3 -3
- package/dist/client/chunks/{chart-radial-bar-Dvd2DAnu.js.map → chart-radial-bar-DYn5FLrG.js.map} +1 -1
- package/dist/client/chunks/{chart-sankey-CxR3tqnR.js → chart-sankey-CWkctg-k.js} +2 -2
- package/dist/client/chunks/{chart-sankey-CxR3tqnR.js.map → chart-sankey-CWkctg-k.js.map} +1 -1
- package/dist/client/chunks/{chart-scatter-BqFOCOhW.js → chart-scatter-CCGL2IEP.js} +3 -3
- package/dist/client/chunks/{chart-scatter-BqFOCOhW.js.map → chart-scatter-CCGL2IEP.js.map} +1 -1
- package/dist/client/chunks/{chart-sunburst-C6wdt55m.js → chart-sunburst-9sgiHFSO.js} +3 -3
- package/dist/client/chunks/{chart-sunburst-C6wdt55m.js.map → chart-sunburst-9sgiHFSO.js.map} +1 -1
- package/dist/client/chunks/{chart-tree-map-DE8-SZzY.js → chart-tree-map-DOWeXCn_.js} +3 -3
- package/dist/client/chunks/{chart-tree-map-DE8-SZzY.js.map → chart-tree-map-DOWeXCn_.js.map} +1 -1
- package/dist/client/chunks/{chart-waterfall-DdIFbm8I.js → chart-waterfall-BS7x0dW-.js} +3 -3
- package/dist/client/chunks/{chart-waterfall-DdIFbm8I.js.map → chart-waterfall-BS7x0dW-.js.map} +1 -1
- package/dist/client/chunks/{charts-core-0qGDP3Zh.js → charts-core-DM-Eav_9.js} +2 -2
- package/dist/client/chunks/{charts-core-0qGDP3Zh.js.map → charts-core-DM-Eav_9.js.map} +1 -1
- package/dist/client/chunks/charts-loader-3N-LqjLk.js +87 -0
- package/dist/client/chunks/{charts-loader-CwTTQh7e.js.map → charts-loader-3N-LqjLk.js.map} +1 -1
- package/dist/client/chunks/{dashboardExport-Cy5OOMpb.js → dashboardExport-ZiT4DcDZ.js} +143 -121
- package/dist/client/chunks/dashboardExport-ZiT4DcDZ.js.map +1 -0
- package/dist/client/chunks/{gapFilling-DKBRHcQL.js → gapFilling-C-A4o8Cl.js} +2 -1
- package/dist/client/chunks/{gapFilling-DKBRHcQL.js.map → gapFilling-C-A4o8Cl.js.map} +1 -1
- package/dist/client/chunks/{nl-NL-Fi9_nOz7.js → nl-NL-CKfZudeP.js} +26 -1
- package/dist/client/chunks/{nl-NL-Fi9_nOz7.js.map → nl-NL-CKfZudeP.js.map} +1 -1
- package/dist/client/chunks/{schema-visualization-CcYQAUCS.js → schema-visualization-BO70spCF.js} +3 -3
- package/dist/client/chunks/{schema-visualization-CcYQAUCS.js.map → schema-visualization-BO70spCF.js.map} +1 -1
- package/dist/client/chunks/useDirtyStateTracking-OVW-JnrF.js +1086 -0
- package/dist/client/chunks/useDirtyStateTracking-OVW-JnrF.js.map +1 -0
- package/dist/client/chunks/{useExplainAI-2W12PFz_.js → useExplainAI-BrjlR24K.js} +25 -25
- package/dist/client/chunks/{useExplainAI-2W12PFz_.js.map → useExplainAI-BrjlR24K.js.map} +1 -1
- package/dist/client/chunks/{vendor-Bz0lKciG.js → vendor-Das3qwov.js} +188 -188
- package/dist/client/chunks/vendor-Das3qwov.js.map +1 -0
- package/dist/client/client/BatchCoordinator.d.ts +21 -6
- package/dist/client/client/CubeClient.d.ts +34 -8
- package/dist/client/client/maxAge.d.ts +84 -0
- package/dist/client/client/subscription.d.ts +30 -0
- package/dist/client/components/DashboardPortletCard.d.ts +1 -1
- package/dist/client/components/FloatingEditToolbar.d.ts +5 -1
- package/dist/client/components/MobileStackedLayout.d.ts +8 -2
- package/dist/client/components/PortletAnalysisModal.d.ts +4 -2
- package/dist/client/components/analyticsPortlet/usePortletDeadMembers.d.ts +4 -2
- package/dist/client/components/analyticsPortlet/usePortletQueryResults.d.ts +15 -5
- package/dist/client/components/analyticsPortlet/usePortletVisibility.d.ts +23 -0
- package/dist/client/components/dashboard/DashboardContext.d.ts +16 -3
- package/dist/client/components/dashboard/DashboardEditBar.d.ts +1 -1
- package/dist/client/components/dashboard/DashboardRefreshSelector.d.ts +12 -0
- package/dist/client/components/dashboard/DashboardToolbar.d.ts +2 -1
- package/dist/client/components/dashboard/RefreshPauseToggle.d.ts +8 -0
- package/dist/client/components/dashboardPortletCard/DataFreshnessIndicator.d.ts +19 -0
- package/dist/client/components/dashboardPortletCard/PortletCardHeader.d.ts +13 -3
- package/dist/client/components/dashboardPortletCard/PortletFloatingActions.d.ts +2 -3
- package/dist/client/components/dashboardPortletCard/propsEqual.d.ts +7 -4
- package/dist/client/components/portletAnalysisModal/RefreshSettings.d.ts +24 -0
- package/dist/client/components.js +1 -1
- package/dist/client/hooks/dashboard/useDashboardController.d.ts +6 -10
- package/dist/client/hooks/dashboard/useDashboardRefreshTimer.d.ts +28 -0
- package/dist/client/hooks/queries/useCubeLoadQuery.d.ts +26 -6
- package/dist/client/hooks/queries/useFlowQuery.d.ts +6 -3
- package/dist/client/hooks/queries/useMultiCubeLoadQuery.d.ts +13 -4
- package/dist/client/hooks/queries/useRetentionQuery.d.ts +7 -4
- package/dist/client/hooks/queries/useShownRowsAge.d.ts +10 -0
- package/dist/client/hooks/useAnalysisBuilderHook.d.ts +2 -3
- package/dist/client/hooks/useAnalysisEffects.d.ts +2 -0
- package/dist/client/hooks/useAnalysisQuery.d.ts +2 -3
- package/dist/client/hooks/useDashboardHook.d.ts +7 -10
- package/dist/client/hooks.js +4 -4
- package/dist/client/icons/types.d.ts +2 -0
- package/dist/client/icons.js +1 -1
- package/dist/client/index.d.ts +3 -1
- package/dist/client/index.js +265 -265
- 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/chartDefaults.d.ts +5 -3
- package/dist/client/stores/dashboardStore.d.ts +13 -0
- package/dist/client/types/funnel.d.ts +10 -4
- package/dist/client/types.d.ts +68 -3
- package/dist/client/utils/freshness.d.ts +37 -0
- package/dist/client/utils/multiQueryUtils.d.ts +23 -0
- package/dist/client/utils.js +6 -6
- package/dist/client-bundle-stats.html +1 -1
- package/dist/mcp-app/mcp-app.html +100 -100
- package/dist/server/compiler.d.ts +2 -0
- package/dist/server/execution/query-result-cache.d.ts +8 -2
- package/dist/server/executor.d.ts +1 -0
- package/dist/server/index.cjs +42 -42
- package/dist/server/index.js +1262 -1229
- package/dist/server/physical-plan/processors/shared.d.ts +2 -0
- package/dist/server/types/core.d.ts +12 -1
- package/dist/server/types/cube.d.ts +7 -0
- package/package.json +1 -1
- package/dist/adapters/ActivityGridChart.config-D39xezZk.cjs +0 -1
- package/dist/adapters/ActivityGridChart.config-Dda_6s0U.js +0 -1
- package/dist/adapters/AreaChart.config-C2jCU8Un.js +0 -1
- package/dist/adapters/AreaChart.config-OUEFGX8L.cjs +0 -1
- package/dist/adapters/BarChart.config-D98PTSf1.cjs +0 -1
- package/dist/adapters/BarChart.config-EU-BNwwQ.js +0 -1
- package/dist/adapters/BoxPlotChart.config-C31U6Xwc.cjs +0 -1
- package/dist/adapters/BoxPlotChart.config-CZ9PdgAR.js +0 -1
- package/dist/adapters/BubbleChart.config-bdvOX_OM.js +0 -1
- package/dist/adapters/BubbleChart.config-o1gkn-oi.cjs +0 -1
- package/dist/adapters/CandlestickChart.config-BJ2zddnS.cjs +0 -1
- package/dist/adapters/CandlestickChart.config-DVoQffTz.js +0 -1
- package/dist/adapters/DataTable.config-4jfKTU-P.cjs +0 -1
- package/dist/adapters/DataTable.config-CYymkiCj.js +0 -1
- package/dist/adapters/DotStripChart.config-CdEToyMR.js +0 -1
- package/dist/adapters/DotStripChart.config-CeGKfd2Y.cjs +0 -1
- package/dist/adapters/FunnelChart.config-C9xr0lB7.cjs +0 -1
- package/dist/adapters/FunnelChart.config-DgLsAd6X.js +0 -1
- package/dist/adapters/GaugeChart.config-Crpx_mOJ.cjs +0 -1
- package/dist/adapters/GaugeChart.config-DMGLtrtP.js +0 -1
- package/dist/adapters/HeatMapChart.config-Bag4iUrV.js +0 -1
- package/dist/adapters/HeatMapChart.config-DYlOsCXv.cjs +0 -1
- package/dist/adapters/KpiDelta.config-CpBbqTSe.js +0 -1
- package/dist/adapters/KpiDelta.config-Dz04ftLJ.cjs +0 -1
- package/dist/adapters/KpiNumber.config-B7hJ_9KD.js +0 -1
- package/dist/adapters/KpiNumber.config-B90sa19m.cjs +0 -1
- package/dist/adapters/KpiText.config-BkFneytA.cjs +0 -1
- package/dist/adapters/KpiText.config-De251rp3.js +0 -1
- package/dist/adapters/LineChart.config-BqhSrY3Y.cjs +0 -1
- package/dist/adapters/LineChart.config-So9LmBca.js +0 -1
- package/dist/adapters/MarkdownChart.config-Bb68uUv7.cjs +0 -1
- package/dist/adapters/MarkdownChart.config-CPrdMTKk.js +0 -1
- package/dist/adapters/MeasureProfileChart.config-D8ys_JcL.cjs +0 -1
- package/dist/adapters/MeasureProfileChart.config-DmtZaq33.js +0 -1
- package/dist/adapters/PieChart.config-DSCsXFyT.cjs +0 -1
- package/dist/adapters/PieChart.config-GnJP21n4.js +0 -1
- package/dist/adapters/ProportionBarChart.config-BpMvnSL2.js +0 -1
- package/dist/adapters/ProportionBarChart.config-L2KzFFNd.cjs +0 -1
- package/dist/adapters/RadarChart.config-BuoeQHzU.js +0 -1
- package/dist/adapters/RadarChart.config-s00FMtiV.cjs +0 -1
- package/dist/adapters/RadialBarChart.config-Csaj03QZ.cjs +0 -1
- package/dist/adapters/RadialBarChart.config-Cx5SaB02.js +0 -1
- package/dist/adapters/RecordsTable.config-Daba7GEf.cjs +0 -1
- package/dist/adapters/RecordsTable.config-DaeLGs-c.js +0 -1
- package/dist/adapters/RetentionCombinedChart.config-BC1bizXY.cjs +0 -1
- package/dist/adapters/RetentionCombinedChart.config-eOTeHUd-.js +0 -1
- package/dist/adapters/RetentionHeatmap.config-BW0tarnm.cjs +0 -1
- package/dist/adapters/RetentionHeatmap.config-C_ObG7BL.js +0 -1
- package/dist/adapters/SankeyChart.config-BvtX99Ub.js +0 -1
- package/dist/adapters/SankeyChart.config-D1vkom4z.cjs +0 -1
- package/dist/adapters/ScatterChart.config-OF3pLDki.cjs +0 -1
- package/dist/adapters/ScatterChart.config-gmIhEs9x.js +0 -1
- package/dist/adapters/SunburstChart.config-DVF_YC7z.cjs +0 -1
- package/dist/adapters/SunburstChart.config-IeVU95wF.js +0 -1
- package/dist/adapters/TreeMapChart.config-CZbNvSfx.js +0 -1
- package/dist/adapters/TreeMapChart.config-CzjOynvQ.cjs +0 -1
- package/dist/adapters/WaterfallChart.config-BCKwwg8W.cjs +0 -1
- package/dist/adapters/WaterfallChart.config-BQ-qNCQD.js +0 -1
- package/dist/adapters/core-Bpzlbfe4.cjs +0 -1
- package/dist/adapters/mcp-app-html-DjXsoT66.js +0 -5
- package/dist/adapters/mcp-app-html-s0EguZzT.cjs +0 -1
- package/dist/adapters/utils-DY4WUdbt.cjs +0 -141
- package/dist/client/chunks/DashboardEditModal-C7Nj2XvQ.js.map +0 -1
- package/dist/client/chunks/RecordsTable-D8Lirq-E.js.map +0 -1
- package/dist/client/chunks/analysis-builder-CmnW9_92.js.map +0 -1
- package/dist/client/chunks/analysis-builder-shared-W_lbhFRa.js.map +0 -1
- package/dist/client/chunks/chart-data-table-vxJ9eDbC.js.map +0 -1
- package/dist/client/chunks/charts-loader-CwTTQh7e.js +0 -87
- package/dist/client/chunks/dashboardExport-Cy5OOMpb.js.map +0 -1
- package/dist/client/chunks/useDirtyStateTracking-C_pCRhRu.js +0 -1150
- package/dist/client/chunks/useDirtyStateTracking-C_pCRhRu.js.map +0 -1
- package/dist/client/chunks/vendor-Bz0lKciG.js.map +0 -1
|
@@ -83,7 +83,7 @@ var t = (e) => e.analysisType === "query", n = (e) => e.analysisType === "funnel
|
|
|
83
83
|
if (!e || typeof e != "object") return !1;
|
|
84
84
|
let t = e;
|
|
85
85
|
return !(t.version !== 1 || t.activeType !== "query" && t.activeType !== "funnel" && t.activeType !== "flow" && t.activeType !== "retention" || !t.modes || typeof t.modes != "object");
|
|
86
|
-
},
|
|
86
|
+
}, ee = () => ({
|
|
87
87
|
version: 1,
|
|
88
88
|
activeType: "query",
|
|
89
89
|
modes: {
|
|
@@ -95,19 +95,19 @@ var t = (e) => e.analysisType === "query", n = (e) => e.analysisType === "funnel
|
|
|
95
95
|
});
|
|
96
96
|
//#endregion
|
|
97
97
|
//#region src/client/utils/configMigration.ts
|
|
98
|
-
function
|
|
98
|
+
function m(e) {
|
|
99
99
|
return typeof e == "object" && !!e && "queries" in e && Array.isArray(e.queries);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function h(e) {
|
|
102
102
|
return typeof e == "object" && !!e && "queries" in e && Array.isArray(e.queries) && "mergeStrategy" in e && e.mergeStrategy === "funnel";
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function g(e) {
|
|
105
105
|
return typeof e == "object" && !!e && "funnel" in e && typeof e.funnel == "object";
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function _(e) {
|
|
108
108
|
return typeof e == "object" && !!e && "flow" in e && typeof e.flow == "object";
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function v(e, t) {
|
|
111
111
|
return t === "funnel" ? {
|
|
112
112
|
chartType: e.funnelChartType || e.chartType || "funnel",
|
|
113
113
|
chartConfig: e.funnelChartConfig || e.chartConfig || {},
|
|
@@ -126,44 +126,44 @@ function y(e, t) {
|
|
|
126
126
|
displayConfig: e.displayConfig || {}
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function y(t) {
|
|
130
130
|
try {
|
|
131
131
|
let n = JSON.parse(t.query);
|
|
132
132
|
if (e(n)) return {
|
|
133
133
|
version: 1,
|
|
134
134
|
analysisType: "retention",
|
|
135
135
|
activeView: "chart",
|
|
136
|
-
charts: { retention:
|
|
136
|
+
charts: { retention: v(t, "retention") },
|
|
137
137
|
query: n
|
|
138
138
|
};
|
|
139
|
-
if (
|
|
139
|
+
if (_(n)) return {
|
|
140
140
|
version: 1,
|
|
141
141
|
analysisType: "flow",
|
|
142
142
|
activeView: "chart",
|
|
143
|
-
charts: { flow:
|
|
143
|
+
charts: { flow: v(t, "flow") },
|
|
144
144
|
query: n
|
|
145
145
|
};
|
|
146
|
-
if (
|
|
146
|
+
if (g(n)) return {
|
|
147
147
|
version: 1,
|
|
148
148
|
analysisType: "funnel",
|
|
149
149
|
activeView: "chart",
|
|
150
|
-
charts: { funnel:
|
|
150
|
+
charts: { funnel: v(t, "funnel") },
|
|
151
151
|
query: n
|
|
152
152
|
};
|
|
153
|
-
if (
|
|
153
|
+
if (h(n)) return te(n, t);
|
|
154
154
|
if (t.analysisType === "funnel") return {
|
|
155
155
|
version: 1,
|
|
156
156
|
analysisType: "funnel",
|
|
157
157
|
activeView: "chart",
|
|
158
|
-
charts: { funnel:
|
|
159
|
-
query:
|
|
158
|
+
charts: { funnel: v(t, "funnel") },
|
|
159
|
+
query: g(n) ? n : { funnel: {
|
|
160
160
|
bindingKey: "",
|
|
161
161
|
timeDimension: "",
|
|
162
162
|
steps: []
|
|
163
163
|
} }
|
|
164
164
|
};
|
|
165
|
-
let r =
|
|
166
|
-
return
|
|
165
|
+
let r = v(t, "query");
|
|
166
|
+
return m(n) ? {
|
|
167
167
|
version: 1,
|
|
168
168
|
analysisType: "query",
|
|
169
169
|
activeView: "chart",
|
|
@@ -185,7 +185,7 @@ function b(t) {
|
|
|
185
185
|
return console.warn("[configMigration] Failed to parse legacy portlet:", e), c();
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function te(e, t) {
|
|
189
189
|
let n = "";
|
|
190
190
|
e.funnelBindingKey?.dimension && (typeof e.funnelBindingKey.dimension == "string" ? n = e.funnelBindingKey.dimension : Array.isArray(e.funnelBindingKey.dimension) && (n = e.funnelBindingKey.dimension.map((e) => ({
|
|
191
191
|
cube: e.cube,
|
|
@@ -201,7 +201,7 @@ function x(e, t) {
|
|
|
201
201
|
version: 1,
|
|
202
202
|
analysisType: "funnel",
|
|
203
203
|
activeView: "chart",
|
|
204
|
-
charts: { funnel: t ?
|
|
204
|
+
charts: { funnel: t ? v(t, "funnel") : {
|
|
205
205
|
chartType: "funnel",
|
|
206
206
|
chartConfig: {},
|
|
207
207
|
displayConfig: {}
|
|
@@ -214,20 +214,20 @@ function x(e, t) {
|
|
|
214
214
|
} }
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function b(e) {
|
|
218
218
|
if (s(e)) return e;
|
|
219
|
-
if (e && typeof e == "object" && "query" in e && typeof e.query == "string") return
|
|
219
|
+
if (e && typeof e == "object" && "query" in e && typeof e.query == "string") return y(e);
|
|
220
220
|
if (e && typeof e == "object") try {
|
|
221
|
-
return
|
|
221
|
+
return y({ query: JSON.stringify(e) });
|
|
222
222
|
} catch {}
|
|
223
223
|
return console.warn("[configMigration] Unknown config format, using defaults"), c();
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function x(e) {
|
|
226
226
|
return typeof e == "object" && !!e && "analysisConfig" in e && s(e.analysisConfig);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
if (
|
|
230
|
-
let t =
|
|
228
|
+
function S(e) {
|
|
229
|
+
if (x(e)) return e;
|
|
230
|
+
let t = y({
|
|
231
231
|
query: e.query ?? "{}",
|
|
232
232
|
chartType: e.chartType,
|
|
233
233
|
chartConfig: e.chartConfig,
|
|
@@ -244,34 +244,34 @@ function w(e) {
|
|
|
244
244
|
}
|
|
245
245
|
//#endregion
|
|
246
246
|
//#region src/client/utils/syntaxHighlighting.ts
|
|
247
|
-
var
|
|
248
|
-
async function
|
|
249
|
-
if (!
|
|
247
|
+
var C = null, w = null;
|
|
248
|
+
async function T() {
|
|
249
|
+
if (!C) return w || (w = (async () => {
|
|
250
250
|
try {
|
|
251
251
|
let e = await import("./core-C6Oh9jUG.js"), t = await import("./javascript-D-ispHLP.js"), n = await import("./sql-CmVzGP4w.js"), r = await import("./json-BrJhaXJI.js");
|
|
252
|
-
e.default.registerLanguage("javascript", t.default), e.default.registerLanguage("sql", n.default), e.default.registerLanguage("json", r.default),
|
|
252
|
+
e.default.registerLanguage("javascript", t.default), e.default.registerLanguage("sql", n.default), e.default.registerLanguage("json", r.default), C = e.default;
|
|
253
253
|
} catch (e) {
|
|
254
|
-
console.error("Failed to load syntax highlighter:", e),
|
|
254
|
+
console.error("Failed to load syntax highlighter:", e), w = null;
|
|
255
255
|
}
|
|
256
|
-
})(),
|
|
256
|
+
})(), w);
|
|
257
257
|
}
|
|
258
|
-
async function
|
|
259
|
-
await
|
|
260
|
-
e.classList.contains("hljs") ||
|
|
258
|
+
async function E() {
|
|
259
|
+
await T(), C && document.querySelectorAll("pre code").forEach((e) => {
|
|
260
|
+
e.classList.contains("hljs") || C.highlightElement(e);
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
|
-
async function
|
|
264
|
-
await
|
|
263
|
+
async function D(e) {
|
|
264
|
+
await T(), C && (e.classList.contains("hljs") || C.highlightElement(e));
|
|
265
265
|
}
|
|
266
266
|
function O() {
|
|
267
|
-
return
|
|
267
|
+
return C !== null;
|
|
268
268
|
}
|
|
269
269
|
function k() {
|
|
270
|
-
return
|
|
270
|
+
return C;
|
|
271
271
|
}
|
|
272
272
|
//#endregion
|
|
273
273
|
//#region src/client/utils/dashboardExport.ts
|
|
274
|
-
var
|
|
274
|
+
var ne = [
|
|
275
275
|
"query",
|
|
276
276
|
"chartType",
|
|
277
277
|
"chartConfig",
|
|
@@ -285,8 +285,8 @@ var A = [
|
|
|
285
285
|
"funnelChartConfig",
|
|
286
286
|
"funnelDisplayConfig"
|
|
287
287
|
];
|
|
288
|
-
function
|
|
289
|
-
if (!
|
|
288
|
+
function re(e) {
|
|
289
|
+
if (!x(e)) {
|
|
290
290
|
if (typeof e.query != "string") throw Error(`Cannot export portlet "${e.id}": no valid analysis configuration`);
|
|
291
291
|
try {
|
|
292
292
|
JSON.parse(e.query);
|
|
@@ -294,83 +294,96 @@ function ne(e) {
|
|
|
294
294
|
throw Error(`Cannot export portlet "${e.id}": legacy query is not valid JSON`);
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
|
-
let t = { ...
|
|
298
|
-
if (!
|
|
299
|
-
for (let e of
|
|
297
|
+
let t = { ...S(e) };
|
|
298
|
+
if (!x(t)) throw Error(`Cannot export portlet "${e.id}": could not migrate analysis configuration`);
|
|
299
|
+
for (let e of ne) delete t[e];
|
|
300
300
|
return t;
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function A(e) {
|
|
303
303
|
let t = {
|
|
304
304
|
...e,
|
|
305
|
-
portlets: e.portlets.map(
|
|
305
|
+
portlets: e.portlets.map(re)
|
|
306
306
|
};
|
|
307
307
|
return delete t.thumbnailData, delete t.thumbnailUrl, t;
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function ie(e, t, n = /* @__PURE__ */ new Date()) {
|
|
310
310
|
let r = {
|
|
311
311
|
exportedAt: n.toISOString(),
|
|
312
|
-
config:
|
|
312
|
+
config: A(e)
|
|
313
313
|
}, i = t?.name?.trim(), a = t?.description?.trim();
|
|
314
314
|
return i && (r.name = i), a && (r.description = a), r;
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function j(e) {
|
|
317
317
|
return JSON.stringify(e, null, 2);
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function M(e) {
|
|
320
320
|
return e.trim().toLowerCase().replace(/\s+/g, "-").replace(/[/\\]/g, "-");
|
|
321
321
|
}
|
|
322
|
-
function
|
|
323
|
-
let r =
|
|
322
|
+
function N(e, t = /* @__PURE__ */ new Date(), n) {
|
|
323
|
+
let r = M(e ?? "") || "dashboard", i = n ? M(n) : "", a = t.toISOString().slice(0, 10);
|
|
324
324
|
return `${i ? `${i}-` : ""}${r}-${a}.json`;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function P(e, t) {
|
|
327
327
|
if (typeof document > "u" || typeof URL > "u") return;
|
|
328
|
-
let n = new Blob([
|
|
329
|
-
i.href = r, i.download = t ??
|
|
328
|
+
let n = new Blob([j(e)], { type: "application/json" }), r = URL.createObjectURL(n), i = document.createElement("a");
|
|
329
|
+
i.href = r, i.download = t ?? N(e.name), document.body.appendChild(i), i.click(), document.body.removeChild(i), URL.revokeObjectURL(r);
|
|
330
330
|
}
|
|
331
|
-
var
|
|
332
|
-
function
|
|
331
|
+
var F = ["grid", "rows"];
|
|
332
|
+
function I(e) {
|
|
333
333
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function L(e) {
|
|
336
336
|
return typeof e == "number" && Number.isFinite(e);
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function R(e) {
|
|
339
339
|
return typeof e == "string" && e.length > 0;
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function z(e) {
|
|
342
342
|
return e === void 0 || typeof e == "string";
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function B(e) {
|
|
345
345
|
return e === void 0 || typeof e == "boolean";
|
|
346
346
|
}
|
|
347
|
+
function V(e) {
|
|
348
|
+
return e === void 0 || I(e);
|
|
349
|
+
}
|
|
347
350
|
function H(e) {
|
|
348
|
-
return e
|
|
351
|
+
return typeof e == "string" && F.includes(e);
|
|
349
352
|
}
|
|
350
353
|
function U(e) {
|
|
351
|
-
return
|
|
352
|
-
}
|
|
353
|
-
function W(e) {
|
|
354
|
-
return L(e) && [
|
|
354
|
+
return I(e) && [
|
|
355
355
|
"cols",
|
|
356
356
|
"rowHeight",
|
|
357
357
|
"minW",
|
|
358
358
|
"minH"
|
|
359
|
-
].every((t) =>
|
|
359
|
+
].every((t) => L(e[t]));
|
|
360
|
+
}
|
|
361
|
+
function W(e) {
|
|
362
|
+
return L(e) && e > 0;
|
|
360
363
|
}
|
|
361
364
|
function G(e) {
|
|
362
|
-
|
|
365
|
+
if (!I(e) || !B(e.pauseWhenHidden) || e.intervalSeconds !== void 0 && !W(e.intervalSeconds)) return;
|
|
366
|
+
let t = {};
|
|
367
|
+
return e.intervalSeconds !== void 0 && (t.intervalSeconds = e.intervalSeconds), e.pauseWhenHidden !== void 0 && (t.pauseWhenHidden = e.pauseWhenHidden), t;
|
|
363
368
|
}
|
|
364
369
|
function K(e) {
|
|
365
|
-
|
|
370
|
+
if (!I(e) || !B(e.pauseWhenHidden) || e.intervalSeconds !== void 0 && !W(e.intervalSeconds)) return;
|
|
371
|
+
let t = {};
|
|
372
|
+
return e.intervalSeconds !== void 0 && (t.intervalSeconds = e.intervalSeconds), e.pauseWhenHidden !== void 0 && (t.pauseWhenHidden = e.pauseWhenHidden), t;
|
|
366
373
|
}
|
|
367
374
|
function q(e) {
|
|
368
|
-
return
|
|
375
|
+
return typeof e == "string" || I(e) && R(e.filterId) && z(e.member);
|
|
369
376
|
}
|
|
370
377
|
function J(e) {
|
|
371
|
-
return
|
|
378
|
+
return I(e) && R(e.id) && typeof e.label == "string" && I(e.filter) && B(e.isUniversalTime);
|
|
372
379
|
}
|
|
373
|
-
function
|
|
380
|
+
function ae(e) {
|
|
381
|
+
return I(e) && Array.isArray(e.portletIds) && e.portletIds.every((e) => typeof e == "string");
|
|
382
|
+
}
|
|
383
|
+
function oe(e) {
|
|
384
|
+
return !I(e) || !L(e.w) || e.portletId !== void 0 == (e.groupId !== void 0) ? !1 : z(e.portletId) && z(e.groupId);
|
|
385
|
+
}
|
|
386
|
+
function se(e, t) {
|
|
374
387
|
let n = (e) => ({
|
|
375
388
|
ok: !1,
|
|
376
389
|
error: {
|
|
@@ -379,14 +392,14 @@ function Y(e, t) {
|
|
|
379
392
|
path: e
|
|
380
393
|
}
|
|
381
394
|
});
|
|
382
|
-
if (!
|
|
383
|
-
if (!
|
|
395
|
+
if (!I(e)) return n("");
|
|
396
|
+
if (!R(e.id)) return n("id");
|
|
384
397
|
if (typeof e.title != "string") return n("title");
|
|
385
398
|
let { x: r, y: i, w: a, h: o } = e;
|
|
386
|
-
if (!
|
|
387
|
-
if (!
|
|
388
|
-
if (!
|
|
389
|
-
if (!
|
|
399
|
+
if (!L(r)) return n("x");
|
|
400
|
+
if (!L(i)) return n("y");
|
|
401
|
+
if (!L(a)) return n("w");
|
|
402
|
+
if (!L(o)) return n("h");
|
|
390
403
|
let c = {
|
|
391
404
|
id: e.id,
|
|
392
405
|
title: e.title,
|
|
@@ -396,20 +409,25 @@ function Y(e, t) {
|
|
|
396
409
|
h: o
|
|
397
410
|
}, l = e.dashboardFilterMapping;
|
|
398
411
|
if (l !== void 0) {
|
|
399
|
-
if (!Array.isArray(l) || !l.every(
|
|
400
|
-
c.dashboardFilterMapping = l.filter(
|
|
412
|
+
if (!Array.isArray(l) || !l.every(q)) return n("dashboardFilterMapping");
|
|
413
|
+
c.dashboardFilterMapping = l.filter(q);
|
|
401
414
|
}
|
|
402
|
-
if (!
|
|
403
|
-
if (e.eagerLoad !== void 0 && (c.eagerLoad = e.eagerLoad), e.
|
|
415
|
+
if (!B(e.eagerLoad)) return n("eagerLoad");
|
|
416
|
+
if (e.eagerLoad !== void 0 && (c.eagerLoad = e.eagerLoad), e.refresh !== void 0) {
|
|
417
|
+
let t = G(e.refresh);
|
|
418
|
+
if (!t) return n("refresh");
|
|
419
|
+
c.refresh = t;
|
|
420
|
+
}
|
|
421
|
+
if (e.analysisConfig !== void 0) return s(e.analysisConfig) ? I(e.analysisConfig.charts) ? (c.analysisConfig = e.analysisConfig, {
|
|
404
422
|
ok: !0,
|
|
405
423
|
portlet: c
|
|
406
424
|
}) : n("analysisConfig.charts") : n("analysisConfig");
|
|
407
425
|
if (typeof e.query != "string") return n("analysisConfig");
|
|
408
|
-
if (!
|
|
409
|
-
if (!
|
|
410
|
-
if (!
|
|
426
|
+
if (!z(e.chartType) || !z(e.funnelChartType)) return n("chartType");
|
|
427
|
+
if (!V(e.chartConfig) || !V(e.funnelChartConfig)) return n("chartConfig");
|
|
428
|
+
if (!V(e.displayConfig) || !V(e.funnelDisplayConfig)) return n("displayConfig");
|
|
411
429
|
let u = e.analysisType;
|
|
412
|
-
return u !== void 0 && u !== "query" && u !== "funnel" ? n("analysisType") : (c.analysisConfig =
|
|
430
|
+
return u !== void 0 && u !== "query" && u !== "funnel" ? n("analysisType") : (c.analysisConfig = y({
|
|
413
431
|
query: e.query,
|
|
414
432
|
chartType: e.chartType,
|
|
415
433
|
chartConfig: e.chartConfig,
|
|
@@ -423,7 +441,7 @@ function Y(e, t) {
|
|
|
423
441
|
portlet: c
|
|
424
442
|
});
|
|
425
443
|
}
|
|
426
|
-
function
|
|
444
|
+
function Y(e) {
|
|
427
445
|
return {
|
|
428
446
|
ok: !1,
|
|
429
447
|
error: {
|
|
@@ -432,12 +450,12 @@ function X(e) {
|
|
|
432
450
|
}
|
|
433
451
|
};
|
|
434
452
|
}
|
|
435
|
-
function
|
|
436
|
-
if (!Array.isArray(e)) return
|
|
453
|
+
function ce(e) {
|
|
454
|
+
if (!Array.isArray(e)) return Y("filters");
|
|
437
455
|
let t = [];
|
|
438
456
|
for (let n = 0; n < e.length; n++) {
|
|
439
457
|
let r = e[n];
|
|
440
|
-
if (!
|
|
458
|
+
if (!J(r)) return Y(`filters[${n}]`);
|
|
441
459
|
t.push(r);
|
|
442
460
|
}
|
|
443
461
|
return {
|
|
@@ -445,21 +463,21 @@ function ie(e) {
|
|
|
445
463
|
value: t
|
|
446
464
|
};
|
|
447
465
|
}
|
|
448
|
-
function
|
|
449
|
-
if (!Array.isArray(e)) return
|
|
466
|
+
function le(e, t) {
|
|
467
|
+
if (!Array.isArray(e)) return Y("groups");
|
|
450
468
|
let n = [];
|
|
451
469
|
for (let r = 0; r < e.length; r++) {
|
|
452
470
|
let i = e[r];
|
|
453
|
-
if (!
|
|
454
|
-
if (!
|
|
455
|
-
if (!
|
|
456
|
-
if (i.direction !== "row" && i.direction !== "column") return
|
|
457
|
-
if (!Array.isArray(i.cells)) return
|
|
471
|
+
if (!I(i)) return Y(`groups[${r}]`);
|
|
472
|
+
if (!R(i.id)) return Y(`groups[${r}].id`);
|
|
473
|
+
if (!z(i.title)) return Y(`groups[${r}].title`);
|
|
474
|
+
if (i.direction !== "row" && i.direction !== "column") return Y(`groups[${r}].direction`);
|
|
475
|
+
if (!Array.isArray(i.cells)) return Y(`groups[${r}].cells`);
|
|
458
476
|
let a = [];
|
|
459
477
|
for (let e = 0; e < i.cells.length; e++) {
|
|
460
478
|
let n = i.cells[e];
|
|
461
|
-
if (!
|
|
462
|
-
if (n.portletIds.some((e) => !t.has(e))) return
|
|
479
|
+
if (!ae(n)) return Y(`groups[${r}].cells[${e}]`);
|
|
480
|
+
if (n.portletIds.some((e) => !t.has(e))) return Y(`groups[${r}].cells[${e}].portletIds`);
|
|
463
481
|
a.push(n);
|
|
464
482
|
}
|
|
465
483
|
let o = {
|
|
@@ -474,21 +492,21 @@ function ae(e, t) {
|
|
|
474
492
|
value: n
|
|
475
493
|
};
|
|
476
494
|
}
|
|
477
|
-
function
|
|
478
|
-
if (!Array.isArray(e)) return
|
|
495
|
+
function X(e, t, n) {
|
|
496
|
+
if (!Array.isArray(e)) return Y("rows");
|
|
479
497
|
let r = [];
|
|
480
498
|
for (let i = 0; i < e.length; i++) {
|
|
481
499
|
let a = e[i];
|
|
482
|
-
if (!
|
|
483
|
-
if (!
|
|
484
|
-
if (!
|
|
485
|
-
if (!Array.isArray(a.columns)) return
|
|
500
|
+
if (!I(a)) return Y(`rows[${i}]`);
|
|
501
|
+
if (!R(a.id)) return Y(`rows[${i}].id`);
|
|
502
|
+
if (!L(a.h)) return Y(`rows[${i}].h`);
|
|
503
|
+
if (!Array.isArray(a.columns)) return Y(`rows[${i}].columns`);
|
|
486
504
|
let o = [];
|
|
487
505
|
for (let e = 0; e < a.columns.length; e++) {
|
|
488
506
|
let r = a.columns[e];
|
|
489
|
-
if (!
|
|
490
|
-
if (r.portletId !== void 0 && !t.has(r.portletId)) return
|
|
491
|
-
if (r.groupId !== void 0 && !n.has(r.groupId)) return
|
|
507
|
+
if (!oe(r)) return Y(`rows[${i}].columns[${e}]`);
|
|
508
|
+
if (r.portletId !== void 0 && !t.has(r.portletId)) return Y(`rows[${i}].columns[${e}].portletId`);
|
|
509
|
+
if (r.groupId !== void 0 && !n.has(r.groupId)) return Y(`rows[${i}].columns[${e}].groupId`);
|
|
492
510
|
o.push(r);
|
|
493
511
|
}
|
|
494
512
|
r.push({
|
|
@@ -503,7 +521,7 @@ function oe(e, t, n) {
|
|
|
503
521
|
};
|
|
504
522
|
}
|
|
505
523
|
function Z(e) {
|
|
506
|
-
if (!
|
|
524
|
+
if (!I(e)) return {
|
|
507
525
|
ok: !1,
|
|
508
526
|
errors: [{
|
|
509
527
|
code: "invalidConfig",
|
|
@@ -519,24 +537,28 @@ function Z(e) {
|
|
|
519
537
|
};
|
|
520
538
|
let t = [], n = [], r = /* @__PURE__ */ new Set();
|
|
521
539
|
e.portlets.forEach((e, i) => {
|
|
522
|
-
let a =
|
|
540
|
+
let a = se(e, i);
|
|
523
541
|
a.ok ? (r.add(a.portlet.id), n.push(a.portlet)) : t.push(a.error);
|
|
524
542
|
});
|
|
525
543
|
let i = { portlets: n }, a = (e) => t.push({
|
|
526
544
|
code: "invalidConfig",
|
|
527
545
|
path: e
|
|
528
546
|
});
|
|
529
|
-
if (e.layoutMode !== void 0 && (
|
|
530
|
-
let
|
|
547
|
+
if (e.layoutMode !== void 0 && (H(e.layoutMode) ? i.layoutMode = e.layoutMode : a("layoutMode")), e.grid !== void 0 && (U(e.grid) ? i.grid = e.grid : a("grid")), e.colorPalette !== void 0 && (typeof e.colorPalette == "string" ? i.colorPalette = e.colorPalette : a("colorPalette")), e.eagerLoad !== void 0 && (typeof e.eagerLoad == "boolean" ? i.eagerLoad = e.eagerLoad : a("eagerLoad")), e.refresh !== void 0) {
|
|
548
|
+
let t = K(e.refresh);
|
|
549
|
+
t ? i.refresh = t : a("refresh");
|
|
550
|
+
}
|
|
551
|
+
if (e.layouts !== void 0 && (I(e.layouts) ? i.layouts = e.layouts : a("layouts")), e.filters !== void 0) {
|
|
552
|
+
let n = ce(e.filters);
|
|
531
553
|
n.ok ? i.filters = n.value : t.push(n.error);
|
|
532
554
|
}
|
|
533
555
|
let o = /* @__PURE__ */ new Set();
|
|
534
556
|
if (e.groups !== void 0) {
|
|
535
|
-
let n =
|
|
557
|
+
let n = le(e.groups, r);
|
|
536
558
|
n.ok ? (i.groups = n.value, n.value.forEach((e) => o.add(e.id))) : t.push(n.error);
|
|
537
559
|
}
|
|
538
560
|
if (e.rows !== void 0) {
|
|
539
|
-
let n =
|
|
561
|
+
let n = X(e.rows, r, o);
|
|
540
562
|
n.ok ? i.rows = n.value : t.push(n.error);
|
|
541
563
|
}
|
|
542
564
|
if (t.length > 0) return {
|
|
@@ -575,7 +597,7 @@ function $(e) {
|
|
|
575
597
|
errors: [{ code: "invalidJson" }]
|
|
576
598
|
};
|
|
577
599
|
}
|
|
578
|
-
if (!
|
|
600
|
+
if (!I(t)) return {
|
|
579
601
|
ok: !1,
|
|
580
602
|
errors: [{ code: "unknownFormat" }]
|
|
581
603
|
};
|
|
@@ -594,16 +616,16 @@ function $(e) {
|
|
|
594
616
|
errors: [{ code: "unknownFormat" }]
|
|
595
617
|
};
|
|
596
618
|
}
|
|
597
|
-
function
|
|
619
|
+
function ue(e) {
|
|
598
620
|
return typeof e.text == "function" ? e.text() : new Promise((t, n) => {
|
|
599
621
|
let r = new FileReader();
|
|
600
622
|
r.onload = () => t(typeof r.result == "string" ? r.result : ""), r.onerror = () => n(r.error), r.readAsText(e);
|
|
601
623
|
});
|
|
602
624
|
}
|
|
603
|
-
async function
|
|
625
|
+
async function de(e) {
|
|
604
626
|
let t;
|
|
605
627
|
try {
|
|
606
|
-
t = await
|
|
628
|
+
t = await ue(e);
|
|
607
629
|
} catch {
|
|
608
630
|
return {
|
|
609
631
|
ok: !1,
|
|
@@ -613,6 +635,6 @@ async function ce(e) {
|
|
|
613
635
|
return $(t);
|
|
614
636
|
}
|
|
615
637
|
//#endregion
|
|
616
|
-
export { n as C, o as D, i as E, s as O, r as S, t as T, u as _, $ as a, d as b, k as c, O as d,
|
|
638
|
+
export { n as C, o as D, i as E, s as O, r as S, t as T, u as _, $ as a, d as b, k as c, O as d, T as f, f as g, y as h, A as i, p as k, D as l, b as m, N as n, de as o, S as p, P as r, j as s, ie as t, E as u, l as v, a as w, ee as x, c as y };
|
|
617
639
|
|
|
618
|
-
//# sourceMappingURL=dashboardExport-
|
|
640
|
+
//# sourceMappingURL=dashboardExport-ZiT4DcDZ.js.map
|