drizzle-cube 0.12.3 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/ActivityGridChart.config-BDe2_qYC.js +1 -0
- package/dist/adapters/ActivityGridChart.config-BY3cUifC.cjs +1 -0
- package/dist/adapters/AreaChart.config-CaLEu4WZ.cjs +1 -0
- package/dist/adapters/AreaChart.config-upS1qK9z.js +1 -0
- package/dist/adapters/BarChart.config-CSbClrlz.cjs +1 -0
- package/dist/adapters/BarChart.config-GlYPKS8R.js +1 -0
- package/dist/adapters/BoxPlotChart.config-BIxjwA1O.cjs +1 -0
- package/dist/adapters/BoxPlotChart.config-DybpbTEl.js +1 -0
- package/dist/adapters/BubbleChart.config-CREi46jt.cjs +1 -0
- package/dist/adapters/BubbleChart.config-Di8lOOga.js +1 -0
- package/dist/adapters/CandlestickChart.config-BrbgDZcn.cjs +1 -0
- package/dist/adapters/CandlestickChart.config-CTHDWBM7.js +1 -0
- package/dist/adapters/DataTable.config-BpzbJKOY.cjs +1 -0
- package/dist/adapters/DataTable.config-DbPDoKSt.js +1 -0
- package/dist/adapters/DotStripChart.config-Bkj53d85.cjs +1 -0
- package/dist/adapters/DotStripChart.config-Xxte1OgG.js +1 -0
- package/dist/adapters/FunnelChart.config-CRbPp-7K.js +1 -0
- package/dist/adapters/FunnelChart.config-DfaMSLui.cjs +1 -0
- package/dist/adapters/GaugeChart.config-CKKMCRn4.js +1 -0
- package/dist/adapters/GaugeChart.config-CN7S1OEB.cjs +1 -0
- package/dist/adapters/HeatMapChart.config-BloGhLrU.js +1 -0
- package/dist/adapters/HeatMapChart.config-C94iqzfw.cjs +1 -0
- package/dist/adapters/KpiDelta.config-CMGQIfsy.cjs +1 -0
- package/dist/adapters/KpiDelta.config-qC8_1W29.js +1 -0
- package/dist/adapters/KpiNumber.config-CnYoD9WM.js +1 -0
- package/dist/adapters/KpiNumber.config-jxzFzY71.cjs +1 -0
- package/dist/adapters/KpiText.config--11XBVEz.js +1 -0
- package/dist/adapters/KpiText.config-DOYHINgD.cjs +1 -0
- package/dist/adapters/LineChart.config-Bt6XKzQj.js +1 -0
- package/dist/adapters/LineChart.config-nwC-IWRL.cjs +1 -0
- package/dist/adapters/MarkdownChart.config-Br1jAwCf.js +1 -0
- package/dist/adapters/MarkdownChart.config-CeqYtwrd.cjs +1 -0
- package/dist/adapters/MeasureProfileChart.config-B0G_11c9.js +1 -0
- package/dist/adapters/MeasureProfileChart.config-_ZC5pb_I.cjs +1 -0
- package/dist/adapters/PieChart.config-CZc5LcmR.js +1 -0
- package/dist/adapters/PieChart.config-D1tFIodJ.cjs +1 -0
- package/dist/adapters/ProportionBarChart.config-9zHgirKR.cjs +1 -0
- package/dist/adapters/ProportionBarChart.config-BMIYtg7Q.js +1 -0
- package/dist/adapters/RadarChart.config-CYPyOMbT.js +1 -0
- package/dist/adapters/RadarChart.config-mPXx8Moz.cjs +1 -0
- package/dist/adapters/RadialBarChart.config-EzhjUjvA.cjs +1 -0
- package/dist/adapters/RadialBarChart.config-l9yaKru1.js +1 -0
- package/dist/adapters/RecordsTable.config-BNKcGGjX.cjs +1 -0
- package/dist/adapters/RecordsTable.config-CbtJMaVG.js +1 -0
- package/dist/adapters/RetentionCombinedChart.config-CtJ-q7Gr.js +1 -0
- package/dist/adapters/RetentionCombinedChart.config-Y47OjDeH.cjs +1 -0
- package/dist/adapters/RetentionHeatmap.config-BqLV6f6o.cjs +1 -0
- package/dist/adapters/RetentionHeatmap.config-DPNhEK1p.js +1 -0
- package/dist/adapters/SankeyChart.config-Dipd6fNz.cjs +1 -0
- package/dist/adapters/SankeyChart.config-DpK5pFy5.js +1 -0
- package/dist/adapters/ScatterChart.config-BfDDAH83.cjs +1 -0
- package/dist/adapters/ScatterChart.config-C90xKdE-.js +1 -0
- package/dist/adapters/SunburstChart.config-CacceE1E.cjs +1 -0
- package/dist/adapters/SunburstChart.config-MoFnOy0s.js +1 -0
- package/dist/adapters/TreeMapChart.config-BYHi-dzk.js +1 -0
- package/dist/adapters/TreeMapChart.config-CWSspab0.cjs +1 -0
- package/dist/adapters/WaterfallChart.config-CiOnjcsk.cjs +1 -0
- package/dist/adapters/WaterfallChart.config-TNtq-2mo.js +1 -0
- package/dist/adapters/core/index.cjs +1 -1
- package/dist/adapters/core/index.js +1 -1
- package/dist/adapters/{core-CD6SqK5q.js → core-D1FtXGPM.js} +2 -2
- package/dist/adapters/{core-3nDM2f7O.cjs → core-Ib5DN_B6.cjs} +1 -1
- package/dist/adapters/{cors-headers-DxkPVNnZ.cjs → cors-headers-D0ofhz3k.cjs} +2 -2
- package/dist/adapters/{cors-headers-DYYDrG7S.js → cors-headers-DPNvO_6o.js} +5 -2
- package/dist/adapters/cors-headers.d.ts +10 -2
- package/dist/adapters/express/index.cjs +2 -2
- package/dist/adapters/express/index.d.ts +18 -2
- package/dist/adapters/express/index.js +45 -32
- package/dist/adapters/fastify/index.cjs +1 -1
- package/dist/adapters/fastify/index.js +9 -9
- package/dist/adapters/{handler-DSOaXFuV.cjs → handler-CRAPq8xB.cjs} +3 -3
- package/dist/adapters/{handler-B_vsFWWm.js → handler-Dqe0_Uvx.js} +32 -37
- package/dist/adapters/hono/index.cjs +1 -1
- package/dist/adapters/hono/index.js +8 -8
- package/dist/adapters/mcp-app-html.cjs +1 -1
- package/dist/adapters/mcp-app-html.d.ts +3 -3
- package/dist/adapters/mcp-app-html.js +5 -1
- package/dist/adapters/mcp-tools.cjs +1 -1
- package/dist/adapters/mcp-tools.d.ts +21 -4
- package/dist/adapters/mcp-tools.js +42 -36
- package/dist/adapters/{mcp-transport-7zszPPXk.cjs → mcp-transport-DnnABB3F.cjs} +1 -1
- package/dist/adapters/{mcp-transport-DVI1lCNM.js → mcp-transport-DpJDF0M_.js} +1 -1
- package/dist/adapters/nextjs/index.cjs +1 -1
- package/dist/adapters/nextjs/index.js +11 -6
- package/dist/adapters/{openai-DA9yrRkA.js → openai-DDdpBh3c.js} +1 -1
- package/dist/adapters/{openai-Bdnnw3Ok.js → openai-DOMIchMU.js} +1 -1
- package/dist/adapters/{openai-JLaT_FPt.cjs → openai-Dxk9OT5p.cjs} +1 -1
- package/dist/adapters/{openai-CE52anhW.cjs → openai-Dxu_8i7e.cjs} +1 -1
- package/dist/adapters/{utils-OLv25-nn.cjs → utils-0Afl53Xc.cjs} +1 -1
- package/dist/adapters/{utils-BtiRfbcX.js → utils-DrbnoHoa.js} +3 -1
- package/dist/adapters/utils.cjs +1 -1
- package/dist/adapters/utils.js +1 -1
- package/dist/cjs/adapters/cors-headers.d.ts +10 -2
- package/dist/cjs/adapters/express/index.d.ts +18 -2
- package/dist/cjs/adapters/mcp-app-html.d.ts +3 -3
- package/dist/cjs/adapters/mcp-tools.d.ts +21 -4
- package/dist/cjs/client/components/charts/HeatMapCanvas.d.ts +1 -1
- package/dist/cjs/client/components/dashboard/DashboardContext.d.ts +1 -1
- package/dist/cjs/client/components/dashboard/gridLayoutModule.d.ts +9 -0
- package/dist/cjs/client/hooks/dashboard/useGridLayoutEngine.d.ts +1 -1
- package/dist/cjs/client/hooks/useDashboardHook.d.ts +1 -1
- package/dist/cjs/client/stores/dashboardStore.d.ts +1 -1
- package/dist/cjs/client/types/gridLayout.d.ts +29 -0
- package/dist/client/charts.js +15 -14
- package/dist/client/chunks/ActivityGridChart-CmboSrmc.js +297 -0
- package/dist/client/chunks/ActivityGridChart-CmboSrmc.js.map +1 -0
- package/dist/client/chunks/AngledXAxisTick-CY2hSVQ6.js +23 -0
- package/dist/client/chunks/AngledXAxisTick-CY2hSVQ6.js.map +1 -0
- package/dist/client/chunks/BarSeries-CA5hID9E.js +85 -0
- package/dist/client/chunks/BarSeries-CA5hID9E.js.map +1 -0
- package/dist/client/chunks/BatchCoordinator-DGE3i5Sj.js +315 -0
- package/dist/client/chunks/BatchCoordinator-DGE3i5Sj.js.map +1 -0
- package/dist/client/chunks/BubbleChart-DiloeKCW.js +222 -0
- package/dist/client/chunks/BubbleChart-DiloeKCW.js.map +1 -0
- package/dist/client/chunks/BubbleChart.helpers-CaDSYRlF.js +1477 -0
- package/dist/client/chunks/BubbleChart.helpers-CaDSYRlF.js.map +1 -0
- package/dist/client/chunks/ChartStates-oCfgZumF.js +66 -0
- package/dist/client/chunks/ChartStates-oCfgZumF.js.map +1 -0
- package/dist/client/chunks/ChartSummaryHeader-nx-4H-in.js +67 -0
- package/dist/client/chunks/ChartSummaryHeader-nx-4H-in.js.map +1 -0
- package/dist/client/chunks/{DashboardEditModal-F2fGr29d.js → DashboardEditModal-6N8H3lXW.js} +2611 -4403
- package/dist/client/chunks/DashboardEditModal-6N8H3lXW.js.map +1 -0
- package/dist/client/chunks/DataHistogram-DbQbA-Pi.js +105 -0
- package/dist/client/chunks/DataHistogram-DbQbA-Pi.js.map +1 -0
- package/dist/client/chunks/{DotStripChart-CQaJwo8K.js → DotStripChart-HcSCkYDs.js} +13 -9
- package/dist/client/chunks/{DotStripChart-CQaJwo8K.js.map → DotStripChart-HcSCkYDs.js.map} +1 -1
- package/dist/client/chunks/DotStripChart.config-BbyRO65s.js +118 -0
- package/dist/client/chunks/DotStripChart.config-BbyRO65s.js.map +1 -0
- package/dist/client/chunks/FunnelViews-SjgYxngb.js +279 -0
- package/dist/client/chunks/FunnelViews-SjgYxngb.js.map +1 -0
- package/dist/client/chunks/HeatMapChart-B9pj-KQi.js +207 -0
- package/dist/client/chunks/HeatMapChart-B9pj-KQi.js.map +1 -0
- package/dist/client/chunks/KpiCompactLayout-rsMv3YHG.js +176 -0
- package/dist/client/chunks/KpiCompactLayout-rsMv3YHG.js.map +1 -0
- package/dist/client/chunks/KpiDelta-1BfMFygT.js +32 -0
- package/dist/client/chunks/KpiDelta-1BfMFygT.js.map +1 -0
- package/dist/client/chunks/KpiText-DzPeryRS.js +61 -0
- package/dist/client/chunks/KpiText-DzPeryRS.js.map +1 -0
- package/dist/client/chunks/LoadingIndicator-DQ0k6L2K.js +20 -0
- package/dist/client/chunks/LoadingIndicator-DQ0k6L2K.js.map +1 -0
- package/dist/client/chunks/MarkdownChart-_aif5Ye3.js +4672 -0
- package/dist/client/chunks/MarkdownChart-_aif5Ye3.js.map +1 -0
- package/dist/client/chunks/PortletAnalysisModal-C0MLoJTP.js +664 -0
- package/dist/client/chunks/PortletAnalysisModal-C0MLoJTP.js.map +1 -0
- package/dist/client/chunks/{ProportionBarChart-DiA5ZGeg.js → ProportionBarChart-B9Rgyhbc.js} +12 -9
- package/dist/client/chunks/{ProportionBarChart-DiA5ZGeg.js.map → ProportionBarChart-B9Rgyhbc.js.map} +1 -1
- package/dist/client/chunks/ProportionBarChart.config-CMtPMCH4.js +65 -0
- package/dist/client/chunks/ProportionBarChart.config-CMtPMCH4.js.map +1 -0
- package/dist/client/chunks/{RecordsTable-Bgqo-LjT.js → RecordsTable-DRovI83Z.js} +22 -18
- package/dist/client/chunks/{RecordsTable-Bgqo-LjT.js.map → RecordsTable-DRovI83Z.js.map} +1 -1
- package/dist/client/chunks/RecordsTable.config-ke4o6xDT.js +71 -0
- package/dist/client/chunks/RecordsTable.config-ke4o6xDT.js.map +1 -0
- package/dist/client/chunks/{RetentionCombinedChart-BtMRtwlb.js → RetentionCombinedChart-D_vAvtIb.js} +4 -3
- package/dist/client/chunks/{RetentionCombinedChart-BtMRtwlb.js.map → RetentionCombinedChart-D_vAvtIb.js.map} +1 -1
- package/dist/client/chunks/RetentionCombinedChart.config-BHrENGdA.js +53 -0
- package/dist/client/chunks/RetentionCombinedChart.config-BHrENGdA.js.map +1 -0
- package/dist/client/chunks/{RetentionHeatmap-ChTa35gp.js → RetentionHeatmap-CVEmxbg9.js} +2 -2
- package/dist/client/chunks/{RetentionHeatmap-ChTa35gp.js.map → RetentionHeatmap-CVEmxbg9.js.map} +1 -1
- package/dist/client/chunks/RetentionHeatmap.config-Dk4X_BQS.js +22 -0
- package/dist/client/chunks/RetentionHeatmap.config-Dk4X_BQS.js.map +1 -0
- package/dist/client/chunks/ScatterSeries-CJCF4e7H.js +161 -0
- package/dist/client/chunks/ScatterSeries-CJCF4e7H.js.map +1 -0
- package/dist/client/chunks/SchemaVisualization-DE8WBbNZ.js +1 -0
- package/dist/client/chunks/TextPortletModal-Bg5hFfZg.js +193 -0
- package/dist/client/chunks/TextPortletModal-Bg5hFfZg.js.map +1 -0
- package/dist/client/chunks/TreeMapLegend-D39xLZ7R.js +258 -0
- package/dist/client/chunks/TreeMapLegend-D39xLZ7R.js.map +1 -0
- package/dist/client/chunks/{analysis-builder-CnmkTZm2.js → analysis-builder-BMoycXCE.js} +716 -712
- package/dist/client/chunks/{analysis-builder-CnmkTZm2.js.map → analysis-builder-BMoycXCE.js.map} +1 -1
- package/dist/client/chunks/{analysis-builder-shared-BsjxOL7r.js → analysis-builder-shared-D1KnOXT2.js} +985 -983
- package/dist/client/chunks/{analysis-builder-shared-BsjxOL7r.js.map → analysis-builder-shared-D1KnOXT2.js.map} +1 -1
- package/dist/client/chunks/cartesianChartHelpers-D6a1iOJI.js +261 -0
- package/dist/client/chunks/cartesianChartHelpers-D6a1iOJI.js.map +1 -0
- package/dist/client/chunks/chart-activity-grid-CiqEnzs_.js +133 -0
- package/dist/client/chunks/chart-activity-grid-CiqEnzs_.js.map +1 -0
- package/dist/client/chunks/chart-area-BgKyGty4.js +127 -0
- package/dist/client/chunks/chart-area-BgKyGty4.js.map +1 -0
- package/dist/client/chunks/chart-bar-BKTQ6zyq.js +131 -0
- package/dist/client/chunks/chart-bar-BKTQ6zyq.js.map +1 -0
- package/dist/client/chunks/{chart-box-plot-CW5GZHM9.js → chart-box-plot-FD8d8S_Y.js} +13 -11
- package/dist/client/chunks/{chart-box-plot-CW5GZHM9.js.map → chart-box-plot-FD8d8S_Y.js.map} +1 -1
- package/dist/client/chunks/chart-bubble-BbmLUynL.js +97 -0
- package/dist/client/chunks/chart-bubble-BbmLUynL.js.map +1 -0
- package/dist/client/chunks/{chart-candlestick-BPFeay7t.js → chart-candlestick-DeDZSkhF.js} +4 -3
- package/dist/client/chunks/{chart-candlestick-BPFeay7t.js.map → chart-candlestick-DeDZSkhF.js.map} +1 -1
- package/dist/client/chunks/{chart-config-activity-grid-C4vXGQNu.js → chart-config-activity-grid-BxBwSQOi.js} +2 -2
- package/dist/client/chunks/{chart-config-activity-grid-C4vXGQNu.js.map → chart-config-activity-grid-BxBwSQOi.js.map} +1 -1
- package/dist/client/chunks/chart-config-area-CiUGyEFe.js +53 -0
- package/dist/client/chunks/chart-config-area-CiUGyEFe.js.map +1 -0
- package/dist/client/chunks/{chart-config-bar-G2HJJBVV.js → chart-config-bar-CgnxLwWK.js} +7 -7
- package/dist/client/chunks/{chart-config-bar-G2HJJBVV.js.map → chart-config-bar-CgnxLwWK.js.map} +1 -1
- package/dist/client/chunks/{chart-config-box-plot-DMuJZqkr.js → chart-config-box-plot-MlPKB7lL.js} +2 -2
- package/dist/client/chunks/{chart-config-box-plot-DMuJZqkr.js.map → chart-config-box-plot-MlPKB7lL.js.map} +1 -1
- package/dist/client/chunks/{chart-config-bubble-1IyZinH0.js → chart-config-bubble-kkgqYpmA.js} +2 -2
- package/dist/client/chunks/{chart-config-bubble-1IyZinH0.js.map → chart-config-bubble-kkgqYpmA.js.map} +1 -1
- package/dist/client/chunks/{chart-config-candlestick-QwQwJB_-.js → chart-config-candlestick-BROunjEW.js} +2 -2
- package/dist/client/chunks/{chart-config-candlestick-QwQwJB_-.js.map → chart-config-candlestick-BROunjEW.js.map} +1 -1
- package/dist/client/chunks/{chart-config-data-table-CrGyS7aJ.js → chart-config-data-table-B6Qi3Xm7.js} +2 -2
- package/dist/client/chunks/{chart-config-data-table-CrGyS7aJ.js.map → chart-config-data-table-B6Qi3Xm7.js.map} +1 -1
- package/dist/client/chunks/{chart-config-funnel-DMLLKtPF.js → chart-config-funnel-Dd5O8OuZ.js} +2 -2
- package/dist/client/chunks/{chart-config-funnel-DMLLKtPF.js.map → chart-config-funnel-Dd5O8OuZ.js.map} +1 -1
- package/dist/client/chunks/{chart-config-gauge-CJktdjox.js → chart-config-gauge-BHzJ-ajH.js} +2 -2
- package/dist/client/chunks/{chart-config-gauge-CJktdjox.js.map → chart-config-gauge-BHzJ-ajH.js.map} +1 -1
- package/dist/client/chunks/{chart-config-heat-map-CJF65SyL.js → chart-config-heat-map-BQ3lWgrt.js} +2 -2
- package/dist/client/chunks/{chart-config-heat-map-CJF65SyL.js.map → chart-config-heat-map-BQ3lWgrt.js.map} +1 -1
- package/dist/client/chunks/{chart-config-kpi-delta-BIAq1Ftg.js → chart-config-kpi-delta-Bb-SdLfu.js} +3 -3
- package/dist/client/chunks/{chart-config-kpi-delta-BIAq1Ftg.js.map → chart-config-kpi-delta-Bb-SdLfu.js.map} +1 -1
- package/dist/client/chunks/{chart-config-kpi-number-Dgc4gIYu.js → chart-config-kpi-number-DrgZOOSX.js} +3 -3
- package/dist/client/chunks/{chart-config-kpi-number-Dgc4gIYu.js.map → chart-config-kpi-number-DrgZOOSX.js.map} +1 -1
- package/dist/client/chunks/{chart-config-kpi-text-DnnxvOSA.js → chart-config-kpi-text-xy5s6xuC.js} +2 -2
- package/dist/client/chunks/{chart-config-kpi-text-DnnxvOSA.js.map → chart-config-kpi-text-xy5s6xuC.js.map} +1 -1
- package/dist/client/chunks/{chart-config-line-DLkRs1Zr.js → chart-config-line-SZnp_5gb.js} +9 -9
- package/dist/client/chunks/{chart-config-line-DLkRs1Zr.js.map → chart-config-line-SZnp_5gb.js.map} +1 -1
- package/dist/client/chunks/{chart-config-markdown-CK8PAWUg.js → chart-config-markdown-BWAma-cF.js} +2 -2
- package/dist/client/chunks/{chart-config-markdown-CK8PAWUg.js.map → chart-config-markdown-BWAma-cF.js.map} +1 -1
- package/dist/client/chunks/{chart-config-measure-profile-CRSRIpKh.js → chart-config-measure-profile-CLvcY5Qs.js} +2 -2
- package/dist/client/chunks/{chart-config-measure-profile-CRSRIpKh.js.map → chart-config-measure-profile-CLvcY5Qs.js.map} +1 -1
- package/dist/client/chunks/{chart-config-pie-XrHim0C8.js → chart-config-pie-DgM8pgZ3.js} +3 -3
- package/dist/client/chunks/{chart-config-pie-XrHim0C8.js.map → chart-config-pie-DgM8pgZ3.js.map} +1 -1
- package/dist/client/chunks/{chart-config-radar-xNS6Juqc.js → chart-config-radar-Bz7e2iJu.js} +3 -3
- package/dist/client/chunks/{chart-config-radar-xNS6Juqc.js.map → chart-config-radar-Bz7e2iJu.js.map} +1 -1
- package/dist/client/chunks/{chart-config-radial-bar-ChUChsEe.js → chart-config-radial-bar-Cq-77n9m.js} +3 -3
- package/dist/client/chunks/{chart-config-radial-bar-ChUChsEe.js.map → chart-config-radial-bar-Cq-77n9m.js.map} +1 -1
- package/dist/client/chunks/{chart-config-sankey-De8E0C1A.js → chart-config-sankey-CbqiUqXk.js} +2 -2
- package/dist/client/chunks/{chart-config-sankey-De8E0C1A.js.map → chart-config-sankey-CbqiUqXk.js.map} +1 -1
- package/dist/client/chunks/{chart-config-scatter-CWA89oX4.js → chart-config-scatter-CpsCAH0E.js} +2 -2
- package/dist/client/chunks/{chart-config-scatter-CWA89oX4.js.map → chart-config-scatter-CpsCAH0E.js.map} +1 -1
- package/dist/client/chunks/{chart-config-sunburst-B4NUYHMH.js → chart-config-sunburst-D_uXQPeS.js} +2 -2
- package/dist/client/chunks/{chart-config-sunburst-B4NUYHMH.js.map → chart-config-sunburst-D_uXQPeS.js.map} +1 -1
- package/dist/client/chunks/{chart-config-tree-map-CnrJ7OC1.js → chart-config-tree-map-CoeS1GRn.js} +3 -3
- package/dist/client/chunks/{chart-config-tree-map-CnrJ7OC1.js.map → chart-config-tree-map-CoeS1GRn.js.map} +1 -1
- package/dist/client/chunks/{chart-config-waterfall-DlQb_PLh.js → chart-config-waterfall-CNLbg6tA.js} +2 -2
- package/dist/client/chunks/{chart-config-waterfall-DlQb_PLh.js.map → chart-config-waterfall-CNLbg6tA.js.map} +1 -1
- package/dist/client/chunks/chart-data-table-DLwFKymv.js +167 -0
- package/dist/client/chunks/chart-data-table-DLwFKymv.js.map +1 -0
- package/dist/client/chunks/chart-funnel-BirEW77o.js +34 -0
- package/dist/client/chunks/chart-funnel-BirEW77o.js.map +1 -0
- package/dist/client/chunks/chart-gauge-C4yS5138.js +145 -0
- package/dist/client/chunks/chart-gauge-C4yS5138.js.map +1 -0
- package/dist/client/chunks/chart-heat-map-DvGcfud9.js +66 -0
- package/dist/client/chunks/chart-heat-map-DvGcfud9.js.map +1 -0
- package/dist/client/chunks/chart-kpi-delta-BeReVMyn.js +211 -0
- package/dist/client/chunks/chart-kpi-delta-BeReVMyn.js.map +1 -0
- package/dist/client/chunks/chart-kpi-number-CuYpI5LO.js +166 -0
- package/dist/client/chunks/chart-kpi-number-CuYpI5LO.js.map +1 -0
- package/dist/client/chunks/chart-kpi-text-D3dha9Dn.js +132 -0
- package/dist/client/chunks/chart-kpi-text-D3dha9Dn.js.map +1 -0
- package/dist/client/chunks/{chart-line-D_yFQDze.js → chart-line-EzYdBDdL.js} +35 -28
- package/dist/client/chunks/{chart-line-D_yFQDze.js.map → chart-line-EzYdBDdL.js.map} +1 -1
- package/dist/client/chunks/chart-markdown-B1AZcI8Y.js +68 -0
- package/dist/client/chunks/chart-markdown-B1AZcI8Y.js.map +1 -0
- package/dist/client/chunks/{chart-measure-profile-DOHIm-QY.js → chart-measure-profile-DaL9c2jy.js} +14 -10
- package/dist/client/chunks/{chart-measure-profile-DOHIm-QY.js.map → chart-measure-profile-DaL9c2jy.js.map} +1 -1
- package/dist/client/chunks/{chart-pie-DLrT81CL.js → chart-pie-Dw3W8Qjg.js} +37 -32
- package/dist/client/chunks/{chart-pie-DLrT81CL.js.map → chart-pie-Dw3W8Qjg.js.map} +1 -1
- package/dist/client/chunks/chart-radar-BhySlY7t.js +99 -0
- package/dist/client/chunks/chart-radar-BhySlY7t.js.map +1 -0
- package/dist/client/chunks/chart-radial-bar-DXc37T3I.js +90 -0
- package/dist/client/chunks/chart-radial-bar-DXc37T3I.js.map +1 -0
- package/dist/client/chunks/{chart-sankey-CWkctg-k.js → chart-sankey-Xi0rQvx-.js} +64 -72
- package/dist/client/chunks/chart-sankey-Xi0rQvx-.js.map +1 -0
- package/dist/client/chunks/chart-scatter-D7mMgM6E.js +108 -0
- package/dist/client/chunks/chart-scatter-D7mMgM6E.js.map +1 -0
- package/dist/client/chunks/{chart-sunburst-9sgiHFSO.js → chart-sunburst-t3Qb3HI7.js} +5 -4
- package/dist/client/chunks/{chart-sunburst-9sgiHFSO.js.map → chart-sunburst-t3Qb3HI7.js.map} +1 -1
- package/dist/client/chunks/chart-tree-map-C0EZEE0y.js +79 -0
- package/dist/client/chunks/chart-tree-map-C0EZEE0y.js.map +1 -0
- package/dist/client/chunks/{chart-waterfall-BS7x0dW-.js → chart-waterfall-C4rt-_iE.js} +17 -13
- package/dist/client/chunks/{chart-waterfall-BS7x0dW-.js.map → chart-waterfall-C4rt-_iE.js.map} +1 -1
- package/dist/client/chunks/chartAxisResolution-s-yFUG-H.js +14 -0
- package/dist/client/chunks/chartAxisResolution-s-yFUG-H.js.map +1 -0
- package/dist/client/chunks/chartComponentRegistry-lrQVhpz2.js +183 -0
- package/dist/client/chunks/chartComponentRegistry-lrQVhpz2.js.map +1 -0
- package/dist/client/chunks/chartConstants-CeG7zZmB.js +32 -0
- package/dist/client/chunks/chartConstants-CeG7zZmB.js.map +1 -0
- package/dist/client/chunks/chartPlugin-QJVPr2DC.js +126 -0
- package/dist/client/chunks/chartPlugin-QJVPr2DC.js.map +1 -0
- package/dist/client/chunks/chartRegistry-C6U441qz.js +425 -0
- package/dist/client/chunks/chartRegistry-C6U441qz.js.map +1 -0
- package/dist/client/chunks/chartScaffolding-BFh8cJ0z.js +132 -0
- package/dist/client/chunks/chartScaffolding-BFh8cJ0z.js.map +1 -0
- package/dist/client/chunks/chartUtils-BDj8NT4c.js +293 -0
- package/dist/client/chunks/chartUtils-BDj8NT4c.js.map +1 -0
- package/dist/client/chunks/charts-core-USDYqnlX.js +137 -0
- package/dist/client/chunks/charts-core-USDYqnlX.js.map +1 -0
- package/dist/client/chunks/charts-loader-i4Fe3mAw.js +164 -0
- package/dist/client/chunks/charts-loader-i4Fe3mAw.js.map +1 -0
- package/dist/client/chunks/comparisonUtils-BrJqygLf.js +150 -0
- package/dist/client/chunks/comparisonUtils-BrJqygLf.js.map +1 -0
- package/dist/client/chunks/{core-C6Oh9jUG.js → core-nhQQ5GTQ.js} +2 -2
- package/dist/client/chunks/{core-C6Oh9jUG.js.map → core-nhQQ5GTQ.js.map} +1 -1
- package/dist/client/chunks/{dashboardExport-ZiT4DcDZ.js → dashboardExport-BNWvcHvg.js} +2 -2
- package/dist/client/chunks/{dashboardExport-ZiT4DcDZ.js.map → dashboardExport-BNWvcHvg.js.map} +1 -1
- package/dist/client/chunks/dist-CiyOP0NN.js +3830 -0
- package/dist/client/chunks/dist-CiyOP0NN.js.map +1 -0
- package/dist/client/chunks/exportXlsx-Dnc0ZOJW.js +238 -0
- package/dist/client/chunks/exportXlsx-Dnc0ZOJW.js.map +1 -0
- package/dist/client/chunks/flow-utils-D1Ql5SVc.js +13 -0
- package/dist/client/chunks/flow-utils-D1Ql5SVc.js.map +1 -0
- package/dist/client/chunks/funnel-utils-DM7HviOg.js +107 -0
- package/dist/client/chunks/funnel-utils-DM7HviOg.js.map +1 -0
- package/dist/client/chunks/gaugeChartHelpers-DIizWJgM.js +317 -0
- package/dist/client/chunks/gaugeChartHelpers-DIizWJgM.js.map +1 -0
- package/dist/client/chunks/multiQueryUtils-My_HGw4K.js +104 -0
- package/dist/client/chunks/multiQueryUtils-My_HGw4K.js.map +1 -0
- package/dist/client/chunks/{nl-NL-CKfZudeP.js → nl-NL-D0By-h6j.js} +4 -2
- package/dist/client/chunks/{nl-NL-CKfZudeP.js.map → nl-NL-D0By-h6j.js.map} +1 -1
- package/dist/client/chunks/ordinal-CTFeIYeM.js +67 -0
- package/dist/client/chunks/ordinal-CTFeIYeM.js.map +1 -0
- package/dist/client/chunks/periodUtils-Ce0-vU2S.js +77 -0
- package/dist/client/chunks/periodUtils-Ce0-vU2S.js.map +1 -0
- package/dist/client/chunks/pivotUtils-wtiioqnU.js +117 -0
- package/dist/client/chunks/pivotUtils-wtiioqnU.js.map +1 -0
- package/dist/client/chunks/providers-Bn1iccjx.js +238 -0
- package/dist/client/chunks/providers-Bn1iccjx.js.map +1 -0
- package/dist/client/chunks/quantize-CaQkhIo6.js +906 -0
- package/dist/client/chunks/quantize-CaQkhIo6.js.map +1 -0
- package/dist/client/chunks/query-shape-Dv_qf-Nn.js +10 -0
- package/dist/client/chunks/query-shape-Dv_qf-Nn.js.map +1 -0
- package/dist/client/chunks/radarChartHelpers-qBWsG55A.js +47 -0
- package/dist/client/chunks/radarChartHelpers-qBWsG55A.js.map +1 -0
- package/dist/client/chunks/radialBarChartHelpers-BSdeHzM7.js +40 -0
- package/dist/client/chunks/radialBarChartHelpers-BSdeHzM7.js.map +1 -0
- package/dist/client/chunks/{rolldown-runtime-DArdT4gl.js → rolldown-runtime-B0aSnxlc.js} +2 -5
- package/dist/client/chunks/{schema-visualization-BO70spCF.js → schema-visualization-D5HMwXPe.js} +115 -106
- package/dist/client/chunks/schema-visualization-D5HMwXPe.js.map +1 -0
- package/dist/client/chunks/targetUtils-SRy303Hh.js +36 -0
- package/dist/client/chunks/targetUtils-SRy303Hh.js.map +1 -0
- package/dist/client/chunks/theme-wFun5b1M.js +100 -0
- package/dist/client/chunks/theme-wFun5b1M.js.map +1 -0
- package/dist/client/chunks/useChartDimensions-Dj85ySRd.js +52 -0
- package/dist/client/chunks/useChartDimensions-Dj85ySRd.js.map +1 -0
- package/dist/client/chunks/useCubeFieldLabel-CYdABa_m.js +12 -0
- package/dist/client/chunks/useCubeFieldLabel-CYdABa_m.js.map +1 -0
- package/dist/client/chunks/useCubeMetaQuery-BQRQjE8r.js +46 -0
- package/dist/client/chunks/useCubeMetaQuery-BQRQjE8r.js.map +1 -0
- package/dist/client/chunks/{useDirtyStateTracking-OVW-JnrF.js → useDirtyStateTracking-DvlGcFpU.js} +84 -81
- package/dist/client/chunks/{useDirtyStateTracking-OVW-JnrF.js.map → useDirtyStateTracking-DvlGcFpU.js.map} +1 -1
- package/dist/client/chunks/{useExplainAI-BrjlR24K.js → useExplainAI-DGXJ0Rcg.js} +29 -29
- package/dist/client/chunks/{useExplainAI-BrjlR24K.js.map → useExplainAI-DGXJ0Rcg.js.map} +1 -1
- package/dist/client/chunks/useTheme-Bq_gYwsK.js +27 -0
- package/dist/client/chunks/useTheme-Bq_gYwsK.js.map +1 -0
- package/dist/client/chunks/{chart-activity-grid-DeDPSs12.js → useTranslation-F7BGje95.js} +38 -1007
- package/dist/client/chunks/useTranslation-F7BGje95.js.map +1 -0
- package/dist/client/chunks/vendor-BPwAo1-t.js +2466 -0
- package/dist/client/chunks/vendor-BPwAo1-t.js.map +1 -0
- package/dist/client/components/charts/HeatMapCanvas.d.ts +1 -1
- package/dist/client/components/dashboard/DashboardContext.d.ts +1 -1
- package/dist/client/components/dashboard/gridLayoutModule.d.ts +9 -0
- package/dist/client/components.js +1214 -3
- package/dist/client/components.js.map +1 -0
- package/dist/client/hooks/dashboard/useGridLayoutEngine.d.ts +1 -1
- package/dist/client/hooks/useDashboardHook.d.ts +1 -1
- package/dist/client/hooks.js +4 -4
- package/dist/client/icons.js +1846 -1
- package/dist/client/icons.js.map +1 -0
- package/dist/client/index.js +454 -446
- 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/stores/dashboardStore.d.ts +1 -1
- package/dist/client/types/gridLayout.d.ts +29 -0
- package/dist/client/utils.js +19 -16
- package/dist/client/utils.js.map +1 -1
- package/dist/client-bundle-stats.html +1 -1
- package/dist/mcp-app/mcp-app.html +139 -139
- package/dist/server/index.cjs +2 -2
- package/dist/server/index.js +3 -6
- package/package.json +47 -39
- package/dist/adapters/ActivityGridChart.config-D14_z5sv.js +0 -1
- package/dist/adapters/ActivityGridChart.config-ufhph9uT.cjs +0 -1
- package/dist/adapters/AreaChart.config-0WZQMQva.js +0 -1
- package/dist/adapters/AreaChart.config-D13ltksm.cjs +0 -1
- package/dist/adapters/BarChart.config-CKW_EixK.cjs +0 -1
- package/dist/adapters/BarChart.config-Dap2k5h9.js +0 -1
- package/dist/adapters/BoxPlotChart.config-BL9GycIS.js +0 -1
- package/dist/adapters/BoxPlotChart.config-D8ijk7P0.cjs +0 -1
- package/dist/adapters/BubbleChart.config-B5mdZpOU.js +0 -1
- package/dist/adapters/BubbleChart.config-D_F6Q5z3.cjs +0 -1
- package/dist/adapters/CandlestickChart.config-DWebnARH.cjs +0 -1
- package/dist/adapters/CandlestickChart.config-U_bjkKnh.js +0 -1
- package/dist/adapters/DataTable.config-CgONV9qM.cjs +0 -1
- package/dist/adapters/DataTable.config-Cuagfjxg.js +0 -1
- package/dist/adapters/DotStripChart.config-B5lxjWSO.js +0 -1
- package/dist/adapters/DotStripChart.config-fD9Mc6W1.cjs +0 -1
- package/dist/adapters/FunnelChart.config-BaE_hLT-.js +0 -1
- package/dist/adapters/FunnelChart.config-Cx7W7-R0.cjs +0 -1
- package/dist/adapters/GaugeChart.config-CgKuBQVo.cjs +0 -1
- package/dist/adapters/GaugeChart.config-ilNlLLj6.js +0 -1
- package/dist/adapters/HeatMapChart.config-Bbk6aa8K.js +0 -1
- package/dist/adapters/HeatMapChart.config-CURg_iiu.cjs +0 -1
- package/dist/adapters/KpiDelta.config-CuZ2C_6t.js +0 -1
- package/dist/adapters/KpiDelta.config-DRy870xF.cjs +0 -1
- package/dist/adapters/KpiNumber.config-BWowvaBG.cjs +0 -1
- package/dist/adapters/KpiNumber.config-h9VspPBo.js +0 -1
- package/dist/adapters/KpiText.config-CXouHoxx.js +0 -1
- package/dist/adapters/KpiText.config-dSbcOdVW.cjs +0 -1
- package/dist/adapters/LineChart.config-BrcTc3dO.cjs +0 -1
- package/dist/adapters/LineChart.config-DOZctkmK.js +0 -1
- package/dist/adapters/MarkdownChart.config-BduAIK5N.js +0 -1
- package/dist/adapters/MarkdownChart.config-CFnH92Fg.cjs +0 -1
- package/dist/adapters/MeasureProfileChart.config-BgdtMIbZ.js +0 -1
- package/dist/adapters/MeasureProfileChart.config-CUahwnse.cjs +0 -1
- package/dist/adapters/PieChart.config-Bwf8meCN.js +0 -1
- package/dist/adapters/PieChart.config-ClfJ6LyA.cjs +0 -1
- package/dist/adapters/ProportionBarChart.config-CKyen5fP.cjs +0 -1
- package/dist/adapters/ProportionBarChart.config-D7RADfKH.js +0 -1
- package/dist/adapters/RadarChart.config-CBR7pNrt.js +0 -1
- package/dist/adapters/RadarChart.config-DSLRklgx.cjs +0 -1
- package/dist/adapters/RadialBarChart.config-BTGjY6JD.js +0 -1
- package/dist/adapters/RadialBarChart.config-CPbimqdg.cjs +0 -1
- package/dist/adapters/RecordsTable.config-B1Z_3JTJ.js +0 -1
- package/dist/adapters/RecordsTable.config-C6QhLcZk.cjs +0 -1
- package/dist/adapters/RetentionCombinedChart.config-BkSezvSb.js +0 -1
- package/dist/adapters/RetentionCombinedChart.config-R1Eq-xRI.cjs +0 -1
- package/dist/adapters/RetentionHeatmap.config-BlUhtL5W.js +0 -1
- package/dist/adapters/RetentionHeatmap.config-DCIsToqo.cjs +0 -1
- package/dist/adapters/SankeyChart.config-Bt0F2A6e.js +0 -1
- package/dist/adapters/SankeyChart.config-_Z5ZrziF.cjs +0 -1
- package/dist/adapters/ScatterChart.config-BW0_kSo8.cjs +0 -1
- package/dist/adapters/ScatterChart.config-DCaM-v68.js +0 -1
- package/dist/adapters/SunburstChart.config-B8Q9pbbo.js +0 -1
- package/dist/adapters/SunburstChart.config-mhQZB6uc.cjs +0 -1
- package/dist/adapters/TreeMapChart.config-Ch--bdyv.js +0 -1
- package/dist/adapters/TreeMapChart.config-DaNlt1aC.cjs +0 -1
- package/dist/adapters/WaterfallChart.config-CR49XWjE.cjs +0 -1
- package/dist/adapters/WaterfallChart.config-qHaD0m4H.js +0 -1
- package/dist/adapters/mcp-app-html-DkiIh0rL.cjs +0 -1
- package/dist/adapters/mcp-app-html-DwnysAEL.js +0 -5
- package/dist/client/chunks/DashboardEditModal-F2fGr29d.js.map +0 -1
- package/dist/client/chunks/chart-activity-grid-DeDPSs12.js.map +0 -1
- package/dist/client/chunks/chart-area-WyrVYze7.js +0 -961
- package/dist/client/chunks/chart-area-WyrVYze7.js.map +0 -1
- package/dist/client/chunks/chart-bar-wGHC1Hfo.js +0 -201
- package/dist/client/chunks/chart-bar-wGHC1Hfo.js.map +0 -1
- package/dist/client/chunks/chart-bubble-CKkVi7L2.js +0 -221
- package/dist/client/chunks/chart-bubble-CKkVi7L2.js.map +0 -1
- package/dist/client/chunks/chart-config-area-BnsRQ-MY.js +0 -172
- package/dist/client/chunks/chart-config-area-BnsRQ-MY.js.map +0 -1
- package/dist/client/chunks/chart-data-table-uJG1V-be.js +0 -5548
- package/dist/client/chunks/chart-data-table-uJG1V-be.js.map +0 -1
- package/dist/client/chunks/chart-funnel-BtUexI1t.js +0 -409
- package/dist/client/chunks/chart-funnel-BtUexI1t.js.map +0 -1
- package/dist/client/chunks/chart-gauge-BSrfZFsW.js +0 -456
- package/dist/client/chunks/chart-gauge-BSrfZFsW.js.map +0 -1
- package/dist/client/chunks/chart-heat-map-DtMtuFnw.js +0 -236
- package/dist/client/chunks/chart-heat-map-DtMtuFnw.js.map +0 -1
- package/dist/client/chunks/chart-kpi-delta-B0BkN_Q6.js +0 -482
- package/dist/client/chunks/chart-kpi-delta-B0BkN_Q6.js.map +0 -1
- package/dist/client/chunks/chart-kpi-number-zlBkLesi.js +0 -263
- package/dist/client/chunks/chart-kpi-number-zlBkLesi.js.map +0 -1
- package/dist/client/chunks/chart-kpi-text-BXXfkhz_.js +0 -188
- package/dist/client/chunks/chart-kpi-text-BXXfkhz_.js.map +0 -1
- package/dist/client/chunks/chart-markdown-DaBTpRgf.js +0 -8565
- package/dist/client/chunks/chart-markdown-DaBTpRgf.js.map +0 -1
- package/dist/client/chunks/chart-radar-CcXG6k6o.js +0 -138
- package/dist/client/chunks/chart-radar-CcXG6k6o.js.map +0 -1
- package/dist/client/chunks/chart-radial-bar-DYn5FLrG.js +0 -122
- package/dist/client/chunks/chart-radial-bar-DYn5FLrG.js.map +0 -1
- package/dist/client/chunks/chart-sankey-CWkctg-k.js.map +0 -1
- package/dist/client/chunks/chart-scatter-CCGL2IEP.js +0 -258
- package/dist/client/chunks/chart-scatter-CCGL2IEP.js.map +0 -1
- package/dist/client/chunks/chart-tree-map-DOWeXCn_.js +0 -325
- package/dist/client/chunks/chart-tree-map-DOWeXCn_.js.map +0 -1
- package/dist/client/chunks/charts-core-DM-Eav_9.js +0 -190
- package/dist/client/chunks/charts-core-DM-Eav_9.js.map +0 -1
- package/dist/client/chunks/charts-loader-3N-LqjLk.js +0 -87
- package/dist/client/chunks/charts-loader-3N-LqjLk.js.map +0 -1
- package/dist/client/chunks/exceljs.min-BqhtpmKc.js +0 -32036
- package/dist/client/chunks/exceljs.min-BqhtpmKc.js.map +0 -1
- package/dist/client/chunks/providers-DwQCKdGW.js +0 -7
- package/dist/client/chunks/providers-DwQCKdGW.js.map +0 -1
- package/dist/client/chunks/schema-visualization-BO70spCF.js.map +0 -1
- package/dist/client/chunks/vendor-Das3qwov.js +0 -881
- package/dist/client/chunks/vendor-Das3qwov.js.map +0 -1
|
@@ -1,22 +1,13 @@
|
|
|
1
|
-
import { n as e } from "./rolldown-runtime-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { max as f, min as p, scaleQuantize as m, select as h } from "d3";
|
|
5
|
-
//#region src/client/providers/CubeMetaContext.tsx
|
|
6
|
-
var g = n(null);
|
|
7
|
-
function _() {
|
|
8
|
-
let e = i(g);
|
|
9
|
-
if (!e) throw Error("useCubeMeta must be used within CubeMetaProvider");
|
|
10
|
-
return e;
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
1
|
+
import { n as e } from "./rolldown-runtime-B0aSnxlc.js";
|
|
2
|
+
import { r as t } from "./providers-Bn1iccjx.js";
|
|
3
|
+
import { useCallback as n, useContext as r } from "react";
|
|
13
4
|
//#region \0rolldown_dynamic_import_helper.js
|
|
14
|
-
var
|
|
5
|
+
var i = (e, t, n) => {
|
|
15
6
|
let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
|
|
16
7
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
|
|
17
8
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ Error("Unknown variable dynamic import: " + t + (t.split("/").length === n ? "" : ". Note that variables only represent file names one level deep."))));
|
|
18
9
|
});
|
|
19
|
-
},
|
|
10
|
+
}, a = /* @__PURE__ */ e({ default: () => o }), o = {
|
|
20
11
|
"analysis.modes.query.label": "Query",
|
|
21
12
|
"analysis.modes.query.description": "Standard analysis (single or multi-query)",
|
|
22
13
|
"analysis.modes.funnel.label": "Funnel",
|
|
@@ -1764,1022 +1755,62 @@ var v = (e, t, n) => {
|
|
|
1764
1755
|
"dashboard.import.error.invalidJson": "The file is not valid JSON.",
|
|
1765
1756
|
"dashboard.import.error.unknownFormat": "The file is not a drizzle-cube dashboard export.",
|
|
1766
1757
|
"dashboard.import.error.invalidConfig": "The dashboard configuration is invalid ({path}).",
|
|
1767
|
-
"dashboard.import.error.invalidPortlet": "Portlet {index} is invalid ({path})."
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1758
|
+
"dashboard.import.error.invalidPortlet": "Portlet {index} is invalid ({path}).",
|
|
1759
|
+
"dashboard.missingGridLayout.title": "Grid layout needs react-grid-layout",
|
|
1760
|
+
"dashboard.missingGridLayout.description": "Install it to show this dashboard as a grid, or switch the dashboard to row layout:"
|
|
1761
|
+
}, s = "en-GB", c = o, l = !1;
|
|
1762
|
+
function u(e) {
|
|
1763
|
+
l = e;
|
|
1771
1764
|
}
|
|
1772
|
-
function
|
|
1773
|
-
let n =
|
|
1765
|
+
function d(e, t) {
|
|
1766
|
+
let n = c[e];
|
|
1774
1767
|
return n ? t ? n.replace(/\{(\w+)\}/g, (e, n) => {
|
|
1775
1768
|
let r = t[n];
|
|
1776
1769
|
return r === void 0 ? `{${n}}` : String(r);
|
|
1777
|
-
}) : n : (
|
|
1770
|
+
}) : n : (l && typeof console < "u" && console.warn(`[drizzle-cube i18n] Missing translation key: "${e}"`), e);
|
|
1778
1771
|
}
|
|
1779
|
-
async function
|
|
1780
|
-
if (e === "nl" && (e = "nl-NL"), e === "en-GB" || e === "en")
|
|
1772
|
+
async function f(e) {
|
|
1773
|
+
if (e === "nl" && (e = "nl-NL"), e === "en-GB" || e === "en") s = "en-GB", c = o;
|
|
1781
1774
|
else try {
|
|
1782
|
-
let t = await
|
|
1775
|
+
let t = await i(/* #__PURE__ */ Object.assign({
|
|
1783
1776
|
"./locales/af-ZA.json": () => import("./af-ZA-BglLInx4.js"),
|
|
1784
1777
|
"./locales/en-US.json": () => import("./en-US-CXODg-om.js"),
|
|
1785
|
-
"./locales/en.json": () => Promise.resolve().then(() =>
|
|
1786
|
-
"./locales/nl-NL.json": () => import("./nl-NL-
|
|
1778
|
+
"./locales/en.json": () => Promise.resolve().then(() => a),
|
|
1779
|
+
"./locales/nl-NL.json": () => import("./nl-NL-D0By-h6j.js")
|
|
1787
1780
|
}), `./locales/${e}.json`, 3);
|
|
1788
|
-
|
|
1789
|
-
...
|
|
1781
|
+
s = e, c = {
|
|
1782
|
+
...o,
|
|
1790
1783
|
...t.default
|
|
1791
1784
|
};
|
|
1792
1785
|
} catch {
|
|
1793
|
-
typeof console < "u" && console.warn(`[drizzle-cube] Failed to load locale "${e}", falling back to en-GB`),
|
|
1786
|
+
typeof console < "u" && console.warn(`[drizzle-cube] Failed to load locale "${e}", falling back to en-GB`), s = "en-GB", c = o;
|
|
1794
1787
|
}
|
|
1795
1788
|
}
|
|
1796
|
-
function
|
|
1797
|
-
|
|
1798
|
-
...
|
|
1789
|
+
function p(e, t) {
|
|
1790
|
+
s = e, c = {
|
|
1791
|
+
...o,
|
|
1799
1792
|
...t
|
|
1800
1793
|
};
|
|
1801
1794
|
}
|
|
1802
|
-
function
|
|
1803
|
-
return
|
|
1795
|
+
function m() {
|
|
1796
|
+
return s;
|
|
1804
1797
|
}
|
|
1805
|
-
function
|
|
1806
|
-
return
|
|
1807
|
-
}
|
|
1808
|
-
//#endregion
|
|
1809
|
-
//#region src/client/providers/I18nProvider.tsx
|
|
1810
|
-
var E = n({
|
|
1811
|
-
t: w,
|
|
1812
|
-
locale: "en-GB"
|
|
1813
|
-
});
|
|
1814
|
-
function ie({ locale: e = "en-GB", translations: t, children: n }) {
|
|
1815
|
-
let [r, i] = l(!1), [o, s] = l(T());
|
|
1816
|
-
return a(() => {
|
|
1817
|
-
let n = !1;
|
|
1818
|
-
return (async () => {
|
|
1819
|
-
await te(e), t && !n && ne(e, {
|
|
1820
|
-
...re(),
|
|
1821
|
-
...t
|
|
1822
|
-
}), n || (s(T()), i(!0));
|
|
1823
|
-
})(), () => {
|
|
1824
|
-
n = !0;
|
|
1825
|
-
};
|
|
1826
|
-
}, [e, t]), /* @__PURE__ */ u(E.Provider, {
|
|
1827
|
-
value: {
|
|
1828
|
-
t: w,
|
|
1829
|
-
locale: r ? o : e
|
|
1830
|
-
},
|
|
1831
|
-
children: n
|
|
1832
|
-
});
|
|
1798
|
+
function h() {
|
|
1799
|
+
return c;
|
|
1833
1800
|
}
|
|
1834
1801
|
//#endregion
|
|
1835
1802
|
//#region src/client/hooks/useTranslation.ts
|
|
1836
|
-
function
|
|
1837
|
-
let { t, locale:
|
|
1838
|
-
return {
|
|
1839
|
-
t: r((n, r) => {
|
|
1840
|
-
let i = e ? `${e}.${n}` : n;
|
|
1841
|
-
return t(i, r);
|
|
1842
|
-
}, [t, e]),
|
|
1843
|
-
locale: n
|
|
1844
|
-
};
|
|
1845
|
-
}
|
|
1846
|
-
//#endregion
|
|
1847
|
-
//#region src/client/utils/axisValueFormatting.ts
|
|
1848
|
-
function O(e) {
|
|
1849
|
-
return {
|
|
1850
|
-
US: "USD",
|
|
1851
|
-
CA: "CAD",
|
|
1852
|
-
GB: "GBP",
|
|
1853
|
-
UK: "GBP",
|
|
1854
|
-
AU: "AUD",
|
|
1855
|
-
NZ: "NZD",
|
|
1856
|
-
EU: "EUR",
|
|
1857
|
-
DE: "EUR",
|
|
1858
|
-
FR: "EUR",
|
|
1859
|
-
IT: "EUR",
|
|
1860
|
-
ES: "EUR",
|
|
1861
|
-
NL: "EUR",
|
|
1862
|
-
BE: "EUR",
|
|
1863
|
-
AT: "EUR",
|
|
1864
|
-
IE: "EUR",
|
|
1865
|
-
PT: "EUR",
|
|
1866
|
-
FI: "EUR",
|
|
1867
|
-
JP: "JPY",
|
|
1868
|
-
CN: "CNY",
|
|
1869
|
-
KR: "KRW",
|
|
1870
|
-
IN: "INR",
|
|
1871
|
-
BR: "BRL",
|
|
1872
|
-
MX: "MXN",
|
|
1873
|
-
CH: "CHF",
|
|
1874
|
-
SE: "SEK",
|
|
1875
|
-
NO: "NOK",
|
|
1876
|
-
DK: "DKK",
|
|
1877
|
-
PL: "PLN",
|
|
1878
|
-
RU: "RUB",
|
|
1879
|
-
ZA: "ZAR",
|
|
1880
|
-
SG: "SGD",
|
|
1881
|
-
HK: "HKD",
|
|
1882
|
-
TW: "TWD",
|
|
1883
|
-
TH: "THB",
|
|
1884
|
-
MY: "MYR",
|
|
1885
|
-
PH: "PHP",
|
|
1886
|
-
ID: "IDR",
|
|
1887
|
-
VN: "VND",
|
|
1888
|
-
AE: "AED",
|
|
1889
|
-
SA: "SAR",
|
|
1890
|
-
IL: "ILS",
|
|
1891
|
-
TR: "TRY"
|
|
1892
|
-
}[e.split("-")[1]?.toUpperCase()] || "USD";
|
|
1893
|
-
}
|
|
1894
|
-
function ae(e, t) {
|
|
1895
|
-
if (!t) return {
|
|
1896
|
-
displayValue: e,
|
|
1897
|
-
abbreviationSuffix: ""
|
|
1898
|
-
};
|
|
1899
|
-
let n = Math.abs(e);
|
|
1900
|
-
return n >= 1e9 ? {
|
|
1901
|
-
displayValue: e / 1e9,
|
|
1902
|
-
abbreviationSuffix: "B"
|
|
1903
|
-
} : n >= 1e6 ? {
|
|
1904
|
-
displayValue: e / 1e6,
|
|
1905
|
-
abbreviationSuffix: "M"
|
|
1906
|
-
} : n >= 1e3 ? {
|
|
1907
|
-
displayValue: e / 1e3,
|
|
1908
|
-
abbreviationSuffix: "K"
|
|
1909
|
-
} : {
|
|
1910
|
-
displayValue: e,
|
|
1911
|
-
abbreviationSuffix: ""
|
|
1912
|
-
};
|
|
1913
|
-
}
|
|
1914
|
-
function oe(e, t) {
|
|
1915
|
-
return e && /^[A-Za-z]{3}$/.test(e) ? e.toUpperCase() : O(t);
|
|
1916
|
-
}
|
|
1917
|
-
function se(e) {
|
|
1918
|
-
let { displayValue: t, abbreviate: n, abbreviationSuffix: r, decimals: i, locale: a } = e, o = oe(e.config.currencyCode, a);
|
|
1919
|
-
if (n && r) {
|
|
1920
|
-
let e = new Intl.NumberFormat(a, {
|
|
1921
|
-
style: "currency",
|
|
1922
|
-
currency: o,
|
|
1923
|
-
minimumFractionDigits: i,
|
|
1924
|
-
maximumFractionDigits: i
|
|
1925
|
-
}).format(t), n = new Intl.NumberFormat(a, {
|
|
1926
|
-
style: "currency",
|
|
1927
|
-
currency: o
|
|
1928
|
-
}).formatToParts(t);
|
|
1929
|
-
return n[n.length - 1]?.type === "currency" ? e.replace(/(\s*[^\d\s]+)$/, r + "$1") : e + r;
|
|
1930
|
-
}
|
|
1931
|
-
return new Intl.NumberFormat(a, {
|
|
1932
|
-
style: "currency",
|
|
1933
|
-
currency: o,
|
|
1934
|
-
minimumFractionDigits: i,
|
|
1935
|
-
maximumFractionDigits: i
|
|
1936
|
-
}).format(t);
|
|
1937
|
-
}
|
|
1938
|
-
function ce(e) {
|
|
1939
|
-
let { displayValue: t, abbreviationSuffix: n, decimals: r, locale: i } = e, a = Math.abs(t) <= 1 && !n ? t * 100 : t;
|
|
1940
|
-
return new Intl.NumberFormat(i, {
|
|
1941
|
-
minimumFractionDigits: r,
|
|
1942
|
-
maximumFractionDigits: r
|
|
1943
|
-
}).format(a) + n + "%";
|
|
1944
|
-
}
|
|
1945
|
-
function le(e) {
|
|
1946
|
-
let { displayValue: t, abbreviationSuffix: n, decimals: r, locale: i, config: a } = e, o = a.customPrefix || "", s = a.customSuffix || "";
|
|
1947
|
-
return o + new Intl.NumberFormat(i, {
|
|
1948
|
-
minimumFractionDigits: r,
|
|
1949
|
-
maximumFractionDigits: r
|
|
1950
|
-
}).format(t) + n + s;
|
|
1951
|
-
}
|
|
1952
|
-
function k(e) {
|
|
1953
|
-
let { displayValue: t, abbreviationSuffix: n, decimals: r, locale: i } = e;
|
|
1954
|
-
return new Intl.NumberFormat(i, {
|
|
1955
|
-
minimumFractionDigits: r,
|
|
1956
|
-
maximumFractionDigits: r
|
|
1957
|
-
}).format(t) + n;
|
|
1958
|
-
}
|
|
1959
|
-
var ue = {
|
|
1960
|
-
currency: se,
|
|
1961
|
-
percent: ce,
|
|
1962
|
-
custom: le,
|
|
1963
|
-
number: k
|
|
1964
|
-
};
|
|
1965
|
-
function de(e) {
|
|
1966
|
-
return ((e.config.unit ? ue[e.config.unit] : void 0) || k)(e);
|
|
1967
|
-
}
|
|
1968
|
-
//#endregion
|
|
1969
|
-
//#region src/client/utils/timeValueFormatting.ts
|
|
1970
|
-
function fe(e) {
|
|
1971
|
-
if (!e.match(/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}:\d{2}/)) return null;
|
|
1972
|
-
let t = e;
|
|
1973
|
-
e.includes(" ") && (t = e.replace(" ", "T").replace("+00", "Z").replace(/\+\d{2}:\d{2}$/, "Z")), !t.endsWith("Z") && !t.includes("+") && (t += "Z");
|
|
1974
|
-
let n = new Date(t);
|
|
1975
|
-
return isNaN(n.getTime()) ? null : {
|
|
1976
|
-
date: n,
|
|
1977
|
-
year: n.getUTCFullYear(),
|
|
1978
|
-
month: String(n.getUTCMonth() + 1).padStart(2, "0"),
|
|
1979
|
-
day: String(n.getUTCDate()).padStart(2, "0"),
|
|
1980
|
-
hours: n.getUTCHours(),
|
|
1981
|
-
minutes: n.getUTCMinutes()
|
|
1982
|
-
};
|
|
1983
|
-
}
|
|
1984
|
-
function pe(e, t) {
|
|
1985
|
-
let { date: n, year: r, month: i, day: a, hours: o, minutes: s } = e;
|
|
1986
|
-
switch (t.toLowerCase()) {
|
|
1987
|
-
case "year": return `${r}`;
|
|
1988
|
-
case "quarter": return `${r}-Q${Math.floor(n.getUTCMonth() / 3) + 1}`;
|
|
1989
|
-
case "month": return `${r}-${i}`;
|
|
1990
|
-
case "week": return `${r}-${i}-${a}`;
|
|
1991
|
-
case "day": return `${r}-${i}-${a}`;
|
|
1992
|
-
case "hour": return `${r}-${i}-${a} ${String(o).padStart(2, "0")}:00`;
|
|
1993
|
-
case "minute": return `${r}-${i}-${a} ${String(o).padStart(2, "0")}:${String(s).padStart(2, "0")}`;
|
|
1994
|
-
default: return null;
|
|
1995
|
-
}
|
|
1996
|
-
}
|
|
1997
|
-
function me(e) {
|
|
1998
|
-
let { date: t, year: n, month: r, day: i, hours: a, minutes: o } = e, s = t.getUTCSeconds(), c = t.getUTCMilliseconds(), l = a === 0 && o === 0 && s === 0 && c === 0;
|
|
1999
|
-
return i === "01" && l ? r === "01" || r === "04" || r === "07" || r === "10" ? `${n}-Q${Math.floor(t.getUTCMonth() / 3) + 1}` : `${n}-${r}` : l ? `${n}-${r}-${i}` : o === 0 && s === 0 && c === 0 ? `${n}-${r}-${i} ${String(a).padStart(2, "0")}:00` : `${n}-${r}-${i} ${String(a).padStart(2, "0")}:${String(o).padStart(2, "0")}`;
|
|
2000
|
-
}
|
|
2001
|
-
//#endregion
|
|
2002
|
-
//#region src/client/utils/chartUtils.ts
|
|
2003
|
-
function A(e) {
|
|
2004
|
-
return e != null && !isNaN(Number(e));
|
|
2005
|
-
}
|
|
2006
|
-
function j(e) {
|
|
2007
|
-
if (e == null) return null;
|
|
2008
|
-
let t = typeof e == "string" ? parseFloat(e) : Number(e);
|
|
2009
|
-
return isNaN(t) ? null : t;
|
|
2010
|
-
}
|
|
2011
|
-
function M(e) {
|
|
2012
|
-
if (e == null) return "No data";
|
|
2013
|
-
let t = typeof e == "number" ? e : parseFloat(e);
|
|
2014
|
-
return isNaN(t) ? String(e) : Number.isInteger(t) ? t.toLocaleString() : parseFloat(t.toFixed(2)).toLocaleString();
|
|
2015
|
-
}
|
|
2016
|
-
function N(e, t, n) {
|
|
2017
|
-
if (e == null) return "No data";
|
|
2018
|
-
let r = typeof e == "number" ? e : parseFloat(String(e));
|
|
2019
|
-
if (isNaN(r)) return String(e);
|
|
2020
|
-
if (!isFinite(r)) return r > 0 ? "∞" : "-∞";
|
|
2021
|
-
let i = n || (typeof navigator < "u" ? navigator.language : "en-US");
|
|
2022
|
-
if (!t) return M(e);
|
|
2023
|
-
let { abbreviate: a = !0, decimals: o } = t, { displayValue: s, abbreviationSuffix: c } = ae(r, a);
|
|
2024
|
-
return de({
|
|
2025
|
-
displayValue: s,
|
|
2026
|
-
abbreviate: a,
|
|
2027
|
-
abbreviationSuffix: c,
|
|
2028
|
-
decimals: o === void 0 ? Number.isInteger(s) ? 0 : 2 : o,
|
|
2029
|
-
locale: i,
|
|
2030
|
-
config: t
|
|
2031
|
-
});
|
|
2032
|
-
}
|
|
2033
|
-
function he(e) {
|
|
2034
|
-
return (t) => N(t, e);
|
|
2035
|
-
}
|
|
2036
|
-
function P(e, t) {
|
|
2037
|
-
return t[e] || e;
|
|
2038
|
-
}
|
|
2039
|
-
function ge(e, t) {
|
|
2040
|
-
return e.map((e) => P(e, t));
|
|
2041
|
-
}
|
|
2042
|
-
function F(e, t) {
|
|
2043
|
-
if (!e) return "Unknown";
|
|
2044
|
-
let n = String(e), r = fe(n);
|
|
2045
|
-
if (!r) return n;
|
|
2046
|
-
if (t) {
|
|
2047
|
-
let e = pe(r, t);
|
|
2048
|
-
if (e !== null) return e;
|
|
2049
|
-
}
|
|
2050
|
-
return me(r);
|
|
2051
|
-
}
|
|
2052
|
-
function I(e, t) {
|
|
2053
|
-
try {
|
|
2054
|
-
if (e?.timeDimensions) {
|
|
2055
|
-
let n = e.timeDimensions.find((e) => t === e.dimension || t.startsWith(e.dimension.replace(".", "_")) || t === `${e.dimension}_${e.granularity}`);
|
|
2056
|
-
if (n?.granularity) return n.granularity;
|
|
2057
|
-
}
|
|
2058
|
-
let n = t.match(/_([a-z]+)$/);
|
|
2059
|
-
if (n) {
|
|
2060
|
-
let e = n[1];
|
|
2061
|
-
if ([
|
|
2062
|
-
"year",
|
|
2063
|
-
"quarter",
|
|
2064
|
-
"month",
|
|
2065
|
-
"week",
|
|
2066
|
-
"day",
|
|
2067
|
-
"hour",
|
|
2068
|
-
"minute",
|
|
2069
|
-
"second"
|
|
2070
|
-
].includes(e)) return e;
|
|
2071
|
-
}
|
|
2072
|
-
return;
|
|
2073
|
-
} catch {
|
|
2074
|
-
return;
|
|
2075
|
-
}
|
|
2076
|
-
}
|
|
2077
|
-
function L(e, t, n, r, i = (e) => e) {
|
|
2078
|
-
if (!e || e.length === 0) return [];
|
|
2079
|
-
let a = I(r, t);
|
|
2080
|
-
return e.map((e) => {
|
|
2081
|
-
let r = { name: F(e[t], a) || e[t] || "Unknown" };
|
|
2082
|
-
return n.forEach((t) => {
|
|
2083
|
-
let n = i(t);
|
|
2084
|
-
n !== "__proto__" && n !== "constructor" && n !== "prototype" && (r[n] = j(e[t]));
|
|
2085
|
-
}), r;
|
|
2086
|
-
});
|
|
2087
|
-
}
|
|
2088
|
-
function _e(e, t, n, r, i, a = (e) => e) {
|
|
2089
|
-
if (!e || e.length === 0) return {
|
|
2090
|
-
data: [],
|
|
2091
|
-
seriesKeys: [],
|
|
2092
|
-
hasDimensions: !1
|
|
2093
|
-
};
|
|
2094
|
-
let o = r || {}, s = [...o.dimensions || [], ...o.timeDimensions?.map((e) => e.dimension) || []], c = o.measures || [], l = n.filter((e) => c.includes(e)), u = (i || []).filter((e) => s.includes(e));
|
|
2095
|
-
if (u.length > 0) {
|
|
2096
|
-
let n = {};
|
|
2097
|
-
return e.forEach((e) => {
|
|
2098
|
-
let i = I(r, t), o = F(e[t], i) || e[t] || "Unknown";
|
|
2099
|
-
o !== "__proto__" && o !== "constructor" && o !== "prototype" && (n[o] || (n[o] = { name: String(o) }), l.forEach((t) => {
|
|
2100
|
-
let r = a(t);
|
|
2101
|
-
if (r === "__proto__" || r === "constructor" || r === "prototype") return;
|
|
2102
|
-
let i = j(e[t]);
|
|
2103
|
-
if (i !== null) {
|
|
2104
|
-
let e = n[o][r];
|
|
2105
|
-
n[o][r] = e == null ? i : e + i;
|
|
2106
|
-
} else r in n[o] || (n[o][r] = null);
|
|
2107
|
-
}), u.forEach((t) => {
|
|
2108
|
-
let r = e[t];
|
|
2109
|
-
if (r != null) {
|
|
2110
|
-
let t = String(r), i = l[0] || c.find((e) => e.includes("totalCost") || e.includes("count") || e.includes("sum")) || c[0];
|
|
2111
|
-
if (i) {
|
|
2112
|
-
if (t === "__proto__" || t === "constructor" || t === "prototype") return;
|
|
2113
|
-
let r = j(e[i]);
|
|
2114
|
-
if (r !== null) {
|
|
2115
|
-
let e = n[o][t];
|
|
2116
|
-
n[o][t] = e == null ? r : e + r;
|
|
2117
|
-
} else t in n[o] || (n[o][t] = null);
|
|
2118
|
-
}
|
|
2119
|
-
}
|
|
2120
|
-
}));
|
|
2121
|
-
}), {
|
|
2122
|
-
data: Object.values(n),
|
|
2123
|
-
seriesKeys: Array.from(new Set(e.flatMap((e) => u.map((t) => {
|
|
2124
|
-
let n = e[t];
|
|
2125
|
-
return n == null ? null : String(n);
|
|
2126
|
-
}).filter((e) => e !== null)))),
|
|
2127
|
-
hasDimensions: !0
|
|
2128
|
-
};
|
|
2129
|
-
}
|
|
2130
|
-
return {
|
|
2131
|
-
data: L(e, t, n, r, a),
|
|
2132
|
-
seriesKeys: n.map((e) => a(e)),
|
|
2133
|
-
hasDimensions: !1
|
|
2134
|
-
};
|
|
2135
|
-
}
|
|
2136
|
-
//#endregion
|
|
2137
|
-
//#region src/client/hooks/useCubeFieldLabel.ts
|
|
2138
|
-
function R() {
|
|
2139
|
-
let e = i(g);
|
|
2140
|
-
if (!e) throw Error("useCubeFieldLabel must be used within CubeProvider");
|
|
2141
|
-
return s(() => e.getFieldLabel, [e.getFieldLabel]);
|
|
2142
|
-
}
|
|
2143
|
-
//#endregion
|
|
2144
|
-
//#region src/client/theme/index.ts
|
|
2145
|
-
function ve(e) {
|
|
2146
|
-
return typeof window > "u" ? "" : getComputedStyle(document.documentElement).getPropertyValue(`--dc-${e}`).trim();
|
|
2147
|
-
}
|
|
2148
|
-
function z(e, t) {
|
|
2149
|
-
typeof window < "u" && document.documentElement.style.setProperty(`--dc-${e}`, t);
|
|
2150
|
-
}
|
|
2151
|
-
function ye(e) {
|
|
2152
|
-
typeof window < "u" && Object.entries(e.colors).forEach(([e, t]) => {
|
|
2153
|
-
t && z(e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), t);
|
|
2154
|
-
});
|
|
2155
|
-
}
|
|
2156
|
-
function be() {
|
|
2157
|
-
if (typeof window > "u") return;
|
|
2158
|
-
let e = document.documentElement.style;
|
|
2159
|
-
Array.from(e).forEach((t) => {
|
|
2160
|
-
t.startsWith("--dc-") && e.removeProperty(t);
|
|
2161
|
-
});
|
|
2162
|
-
}
|
|
2163
|
-
function B() {
|
|
2164
|
-
if (typeof window > "u") return "light";
|
|
2165
|
-
let e = localStorage.getItem("theme");
|
|
2166
|
-
if (e === "dark" || e === "neon" || e === "light") return e;
|
|
2167
|
-
let t = document.documentElement.getAttribute("data-theme");
|
|
2168
|
-
return t === "dark" || t === "neon" ? t : document.documentElement.classList.contains("dark") || document.body.classList.contains("dark") ? "dark" : document.documentElement.classList.contains("neon") || document.body.classList.contains("neon") ? "neon" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
2169
|
-
}
|
|
2170
|
-
function xe(e) {
|
|
2171
|
-
typeof window < "u" && (document.documentElement.classList.remove("dark", "neon"), document.documentElement.setAttribute("data-theme", e), (e === "dark" || e === "neon") && document.documentElement.classList.add(e), localStorage.setItem("theme", e));
|
|
2172
|
-
}
|
|
2173
|
-
function Se() {
|
|
2174
|
-
let e = B();
|
|
2175
|
-
return e === "dark" || e === "neon";
|
|
2176
|
-
}
|
|
2177
|
-
function V(e) {
|
|
2178
|
-
if (typeof window > "u") return () => {};
|
|
2179
|
-
let t = new MutationObserver(() => {
|
|
2180
|
-
e(B());
|
|
2181
|
-
});
|
|
2182
|
-
t.observe(document.documentElement, {
|
|
2183
|
-
attributes: !0,
|
|
2184
|
-
attributeFilter: ["class", "data-theme"]
|
|
2185
|
-
});
|
|
2186
|
-
let n = window.matchMedia("(prefers-color-scheme: dark)"), r = () => e(B());
|
|
2187
|
-
return n.addEventListener("change", r), () => {
|
|
2188
|
-
t.disconnect(), n.removeEventListener("change", r);
|
|
2189
|
-
};
|
|
2190
|
-
}
|
|
2191
|
-
var Ce = {
|
|
2192
|
-
light: {
|
|
2193
|
-
name: "light",
|
|
2194
|
-
colors: {
|
|
2195
|
-
surface: "#ffffff",
|
|
2196
|
-
surfaceSecondary: "#f9fafb",
|
|
2197
|
-
text: "#111827",
|
|
2198
|
-
textSecondary: "#374151",
|
|
2199
|
-
textMuted: "#6b7280",
|
|
2200
|
-
border: "#e5e7eb",
|
|
2201
|
-
primary: "#3b82f6",
|
|
2202
|
-
primaryHover: "#2563eb"
|
|
2203
|
-
}
|
|
2204
|
-
},
|
|
2205
|
-
dark: {
|
|
2206
|
-
name: "dark",
|
|
2207
|
-
colors: {
|
|
2208
|
-
surface: "#1e293b",
|
|
2209
|
-
surfaceSecondary: "#334155",
|
|
2210
|
-
text: "#f1f5f9",
|
|
2211
|
-
textSecondary: "#e2e8f0",
|
|
2212
|
-
textMuted: "#cbd5e1",
|
|
2213
|
-
border: "#475569",
|
|
2214
|
-
primary: "#60a5fa",
|
|
2215
|
-
primaryHover: "#3b82f6"
|
|
2216
|
-
}
|
|
2217
|
-
},
|
|
2218
|
-
neon: {
|
|
2219
|
-
name: "neon",
|
|
2220
|
-
colors: {
|
|
2221
|
-
surface: "#0a0118",
|
|
2222
|
-
surfaceSecondary: "#1a0f2e",
|
|
2223
|
-
surfaceTertiary: "#2a1f3e",
|
|
2224
|
-
text: "#ffffff",
|
|
2225
|
-
textSecondary: "#e0e0ff",
|
|
2226
|
-
textMuted: "#b0b0d0",
|
|
2227
|
-
border: "#ff00ff",
|
|
2228
|
-
borderSecondary: "#00ffff",
|
|
2229
|
-
primary: "#00ffff",
|
|
2230
|
-
primaryHover: "#00cccc",
|
|
2231
|
-
primaryContent: "#000000",
|
|
2232
|
-
success: "#00ff00",
|
|
2233
|
-
warning: "#ffff00",
|
|
2234
|
-
error: "#ff0066",
|
|
2235
|
-
info: "#00ffff",
|
|
2236
|
-
danger: "#ff1493"
|
|
2237
|
-
}
|
|
2238
|
-
}
|
|
2239
|
-
}, we = [
|
|
2240
|
-
"#3b82f6",
|
|
2241
|
-
"#10b981",
|
|
2242
|
-
"#f59e0b",
|
|
2243
|
-
"#ef4444",
|
|
2244
|
-
"#8b5cf6",
|
|
2245
|
-
"#f97316",
|
|
2246
|
-
"#06b6d4",
|
|
2247
|
-
"#84cc16"
|
|
2248
|
-
], H = [
|
|
2249
|
-
"#440154",
|
|
2250
|
-
"#414487",
|
|
2251
|
-
"#2a788e",
|
|
2252
|
-
"#22a884",
|
|
2253
|
-
"#7ad151",
|
|
2254
|
-
"#fde725"
|
|
2255
|
-
], Te = "#10b981", Ee = "#ef4444", U = {
|
|
2256
|
-
top: 5,
|
|
2257
|
-
right: 30,
|
|
2258
|
-
left: 20,
|
|
2259
|
-
bottom: 5
|
|
2260
|
-
}, De = {
|
|
2261
|
-
top: 5,
|
|
2262
|
-
right: 30,
|
|
2263
|
-
left: 20,
|
|
2264
|
-
bottom: 60
|
|
2265
|
-
};
|
|
2266
|
-
//#endregion
|
|
2267
|
-
//#region src/client/components/charts/useChartDimensions.ts
|
|
2268
|
-
function W() {
|
|
2269
|
-
let e = c(null), [t, n] = l({
|
|
2270
|
-
width: 0,
|
|
2271
|
-
height: 0
|
|
2272
|
-
}), [r, i] = l(!1);
|
|
2273
|
-
return o(() => {
|
|
2274
|
-
let t = 0, r, a, o = () => {
|
|
2275
|
-
if (e.current) {
|
|
2276
|
-
let { width: t, height: r } = e.current.getBoundingClientRect();
|
|
2277
|
-
if (t > 0 && r > 0) return n({
|
|
2278
|
-
width: t,
|
|
2279
|
-
height: r
|
|
2280
|
-
}), i(!0), !0;
|
|
2281
|
-
}
|
|
2282
|
-
return !1;
|
|
2283
|
-
};
|
|
2284
|
-
if (!o() && t < 10) {
|
|
2285
|
-
let e = () => {
|
|
2286
|
-
!o() && t < 10 && (t++, a = setTimeout(() => {
|
|
2287
|
-
r = requestAnimationFrame(e);
|
|
2288
|
-
}, 50 * t));
|
|
2289
|
-
};
|
|
2290
|
-
r = requestAnimationFrame(e);
|
|
2291
|
-
}
|
|
2292
|
-
return () => {
|
|
2293
|
-
r && cancelAnimationFrame(r), a && clearTimeout(a);
|
|
2294
|
-
};
|
|
2295
|
-
}, []), a(() => {
|
|
2296
|
-
let t = null, r = () => {
|
|
2297
|
-
if (e.current) {
|
|
2298
|
-
let { width: t, height: r } = e.current.getBoundingClientRect();
|
|
2299
|
-
t > 0 && r > 0 && (n({
|
|
2300
|
-
width: t,
|
|
2301
|
-
height: r
|
|
2302
|
-
}), i((e) => e || !0));
|
|
2303
|
-
}
|
|
2304
|
-
};
|
|
2305
|
-
return e.current && (t = new ResizeObserver(() => r()), t.observe(e.current), r()), window.addEventListener("resize", r), () => {
|
|
2306
|
-
t && t.disconnect(), window.removeEventListener("resize", r);
|
|
2307
|
-
};
|
|
2308
|
-
}, []), {
|
|
2309
|
-
containerRef: e,
|
|
2310
|
-
dimensions: t,
|
|
2311
|
-
dimensionsReady: r
|
|
2312
|
-
};
|
|
2313
|
-
}
|
|
2314
|
-
//#endregion
|
|
2315
|
-
//#region src/client/components/charts/BubbleChart.helpers.ts
|
|
2316
|
-
function Oe(e) {
|
|
2317
|
-
return {
|
|
2318
|
-
showLegend: e?.showLegend ?? !0,
|
|
2319
|
-
showGrid: e?.showGrid ?? !0,
|
|
2320
|
-
showTooltip: e?.showTooltip ?? !0,
|
|
2321
|
-
minBubbleSize: e?.minBubbleSize ?? 5,
|
|
2322
|
-
maxBubbleSize: e?.maxBubbleSize ?? 50,
|
|
2323
|
-
bubbleOpacity: e?.bubbleOpacity ?? .7,
|
|
2324
|
-
xAxisFormat: e?.xAxisFormat,
|
|
2325
|
-
leftYAxisFormat: e?.leftYAxisFormat
|
|
2326
|
-
};
|
|
2327
|
-
}
|
|
2328
|
-
function ke(e) {
|
|
2329
|
-
if (!e?.xAxis || !e?.yAxis || !e?.series) return null;
|
|
2330
|
-
let t = Array.isArray(e.xAxis) ? e.xAxis[0] : e.xAxis, n = Array.isArray(e.yAxis) ? e.yAxis[0] : e.yAxis, r = Array.isArray(e.series) ? e.series[0] : e.series, i = (Array.isArray(e.sizeField) ? e.sizeField[0] : e.sizeField) || n;
|
|
2331
|
-
return !t || !n || !r || !i ? null : {
|
|
2332
|
-
xAxisField: t,
|
|
2333
|
-
yAxisField: n,
|
|
2334
|
-
seriesField: r,
|
|
2335
|
-
sizeFieldName: i,
|
|
2336
|
-
colorFieldName: Array.isArray(e.colorField) ? e.colorField[0] : e.colorField
|
|
2337
|
-
};
|
|
2338
|
-
}
|
|
2339
|
-
function Ae(e, t, n) {
|
|
2340
|
-
if (t && e) {
|
|
2341
|
-
let t = String(e), r;
|
|
2342
|
-
if (t.match(/^\d{4}-\d{2}-\d{2}[T ]/)) {
|
|
2343
|
-
let e = t;
|
|
2344
|
-
t.includes(" ") && (e = t.replace(" ", "T").replace("+00", "Z").replace(/\+\d{2}:\d{2}$/, "Z")), !e.endsWith("Z") && !e.includes("+") && (e += "Z"), r = new Date(e);
|
|
2345
|
-
} else r = new Date(t);
|
|
2346
|
-
return {
|
|
2347
|
-
xNum: isNaN(r.getTime()) ? parseFloat(t) : r.getTime(),
|
|
2348
|
-
xLabel: F(e, n)
|
|
2349
|
-
};
|
|
2350
|
-
}
|
|
2351
|
-
let r = F(e, n) || e;
|
|
2352
|
-
return {
|
|
2353
|
-
xNum: typeof r == "string" ? parseFloat(r) : r,
|
|
2354
|
-
xLabel: String(r)
|
|
2355
|
-
};
|
|
2356
|
-
}
|
|
2357
|
-
function je(e, t, n) {
|
|
2358
|
-
let { xAxisField: r, yAxisField: i, sizeFieldName: a, seriesField: o, colorFieldName: s } = t, c = I(n, r), l = n?.timeDimensions?.some((e) => e.dimension === r) || !1;
|
|
2359
|
-
return e.map((e) => {
|
|
2360
|
-
let { xNum: t, xLabel: n } = Ae(e[r], l, c), u = j(e[i]), d = j(e[a]), f = e[o];
|
|
2361
|
-
return {
|
|
2362
|
-
x: t,
|
|
2363
|
-
xLabel: n,
|
|
2364
|
-
y: u,
|
|
2365
|
-
size: d === null ? 0 : Math.abs(d),
|
|
2366
|
-
color: s ? e[s] : f,
|
|
2367
|
-
series: f,
|
|
2368
|
-
label: `${f || "Unknown"}`,
|
|
2369
|
-
isValid: A(t) && u !== null && d !== null && d > 0
|
|
2370
|
-
};
|
|
2371
|
-
}).filter((e) => e.isValid && e.size > 0).map(({ isValid: e, ...t }) => t);
|
|
2372
|
-
}
|
|
2373
|
-
function G(e, t) {
|
|
2374
|
-
return getComputedStyle(document.documentElement).getPropertyValue(e).trim() || t;
|
|
2375
|
-
}
|
|
2376
|
-
function Me(e) {
|
|
2377
|
-
return {
|
|
2378
|
-
textColor: e ? G("--dc-text-muted", "#cbd5e1") : G("--dc-text-secondary", "#374151"),
|
|
2379
|
-
gridColor: e ? G("--dc-border", "#475569") : "#9ca3af"
|
|
2380
|
-
};
|
|
2381
|
-
}
|
|
2382
|
-
//#endregion
|
|
2383
|
-
//#region src/client/components/charts/ActivityGridChart.helpers.ts
|
|
2384
|
-
var K = (e) => Math.floor(e.getMonth() / 3) + 1, Ne = (e) => e.getMonth() % 3 + 1, Pe = (e) => Math.floor((e.getDate() - 1) / 7) + 1, Fe = [
|
|
2385
|
-
"J",
|
|
2386
|
-
"F",
|
|
2387
|
-
"M",
|
|
2388
|
-
"A",
|
|
2389
|
-
"M",
|
|
2390
|
-
"J",
|
|
2391
|
-
"J",
|
|
2392
|
-
"A",
|
|
2393
|
-
"S",
|
|
2394
|
-
"O",
|
|
2395
|
-
"N",
|
|
2396
|
-
"D"
|
|
2397
|
-
], q = [
|
|
2398
|
-
"Q1",
|
|
2399
|
-
"Q2",
|
|
2400
|
-
"Q3",
|
|
2401
|
-
"Q4"
|
|
2402
|
-
], J = [
|
|
2403
|
-
"Month 1",
|
|
2404
|
-
"Month 2",
|
|
2405
|
-
"Month 3"
|
|
2406
|
-
], Y = [
|
|
2407
|
-
"Week 1",
|
|
2408
|
-
"Week 2",
|
|
2409
|
-
"Week 3",
|
|
2410
|
-
"Week 4",
|
|
2411
|
-
"Week 5"
|
|
2412
|
-
], X = [
|
|
2413
|
-
"Sun",
|
|
2414
|
-
"Mon",
|
|
2415
|
-
"Tue",
|
|
2416
|
-
"Wed",
|
|
2417
|
-
"Thu",
|
|
2418
|
-
"Fri",
|
|
2419
|
-
"Sat"
|
|
2420
|
-
], Z = [
|
|
2421
|
-
"00-03",
|
|
2422
|
-
"03-06",
|
|
2423
|
-
"06-09",
|
|
2424
|
-
"09-12",
|
|
2425
|
-
"12-15",
|
|
2426
|
-
"15-18",
|
|
2427
|
-
"18-21",
|
|
2428
|
-
"21-00"
|
|
2429
|
-
];
|
|
2430
|
-
function Ie(e) {
|
|
2431
|
-
let t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate())), n = t.getUTCDay() || 7;
|
|
2432
|
-
t.setUTCDate(t.getUTCDate() + 4 - n);
|
|
2433
|
-
let r = t.getUTCFullYear(), i = new Date(Date.UTC(r, 0, 1));
|
|
1803
|
+
function g(e) {
|
|
1804
|
+
let { t: i, locale: a } = r(t);
|
|
2434
1805
|
return {
|
|
2435
|
-
|
|
2436
|
-
|
|
1806
|
+
t: n((t, n) => {
|
|
1807
|
+
let r = e ? `${e}.${t}` : t;
|
|
1808
|
+
return i(r, n);
|
|
1809
|
+
}, [i, e]),
|
|
1810
|
+
locale: a
|
|
2437
1811
|
};
|
|
2438
1812
|
}
|
|
2439
|
-
var Le = {
|
|
2440
|
-
quarter: {
|
|
2441
|
-
extractX: (e) => e.getFullYear(),
|
|
2442
|
-
extractY: (e) => K(e) - 1,
|
|
2443
|
-
xLabels: [],
|
|
2444
|
-
yLabels: q,
|
|
2445
|
-
xFormat: (e) => `'${e.toString().slice(-2)}`,
|
|
2446
|
-
yFormat: (e) => q[e] || "",
|
|
2447
|
-
cellWidth: 16,
|
|
2448
|
-
cellHeight: 16
|
|
2449
|
-
},
|
|
2450
|
-
month: {
|
|
2451
|
-
extractX: (e) => e.getFullYear() * 10 + K(e),
|
|
2452
|
-
extractY: (e) => Ne(e) - 1,
|
|
2453
|
-
xLabels: [],
|
|
2454
|
-
yLabels: J,
|
|
2455
|
-
xFormat: (e) => `Q${e % 10}`,
|
|
2456
|
-
yFormat: (e) => J[e] || "",
|
|
2457
|
-
cellWidth: 16,
|
|
2458
|
-
cellHeight: 16,
|
|
2459
|
-
hasHierarchicalLabels: !0,
|
|
2460
|
-
getYearFromX: (e) => Math.floor(e / 10)
|
|
2461
|
-
},
|
|
2462
|
-
week: {
|
|
2463
|
-
extractX: (e) => e.getFullYear() * 100 + (e.getMonth() + 1),
|
|
2464
|
-
extractY: (e) => Pe(e) - 1,
|
|
2465
|
-
xLabels: [],
|
|
2466
|
-
yLabels: Y,
|
|
2467
|
-
xFormat: (e) => Fe[e % 100 - 1] || "",
|
|
2468
|
-
yFormat: (e) => Y[e] || "",
|
|
2469
|
-
cellWidth: 16,
|
|
2470
|
-
cellHeight: 16,
|
|
2471
|
-
hasHierarchicalLabels: !0,
|
|
2472
|
-
getYearFromX: (e) => Math.floor(e / 100)
|
|
2473
|
-
},
|
|
2474
|
-
day: {
|
|
2475
|
-
extractX: (e) => {
|
|
2476
|
-
let { year: t, week: n } = Ie(e);
|
|
2477
|
-
return t * 100 + n;
|
|
2478
|
-
},
|
|
2479
|
-
extractY: (e) => e.getDay(),
|
|
2480
|
-
xLabels: [],
|
|
2481
|
-
yLabels: X,
|
|
2482
|
-
xFormat: (e) => `${e % 100}`,
|
|
2483
|
-
yFormat: (e) => X[e] || "",
|
|
2484
|
-
cellWidth: 16,
|
|
2485
|
-
cellHeight: 16,
|
|
2486
|
-
hasHierarchicalLabels: !0,
|
|
2487
|
-
getYearFromX: (e) => Math.floor(e / 100)
|
|
2488
|
-
},
|
|
2489
|
-
hour: {
|
|
2490
|
-
extractX: (e) => e.getFullYear() * 1e4 + (e.getMonth() + 1) * 100 + e.getDate(),
|
|
2491
|
-
extractY: (e) => Math.floor(e.getHours() / 3),
|
|
2492
|
-
xLabels: [],
|
|
2493
|
-
yLabels: Z,
|
|
2494
|
-
xFormat: (e) => `${e % 100}`,
|
|
2495
|
-
yFormat: (e) => Z[e] || "",
|
|
2496
|
-
cellWidth: 16,
|
|
2497
|
-
cellHeight: 16,
|
|
2498
|
-
hasHierarchicalLabels: !0,
|
|
2499
|
-
getYearFromX: (e) => Math.floor(e / 100)
|
|
2500
|
-
}
|
|
2501
|
-
};
|
|
2502
|
-
function Re(e) {
|
|
2503
|
-
return Le[e?.toLowerCase()] ?? null;
|
|
2504
|
-
}
|
|
2505
|
-
function Q(e) {
|
|
2506
|
-
if (e) return Array.isArray(e) ? e[0] : e;
|
|
2507
|
-
}
|
|
2508
|
-
function ze(e, t) {
|
|
2509
|
-
let n = e?.timeDimensions;
|
|
2510
|
-
if (!n || n.length === 0) return "day";
|
|
2511
|
-
let r = n.find((e) => e.dimension === t || e.dimension.includes(t));
|
|
2512
|
-
if (r && r.granularity) return r.granularity;
|
|
2513
|
-
let i = n[0];
|
|
2514
|
-
return i && i.granularity ? i.granularity : "day";
|
|
2515
|
-
}
|
|
2516
|
-
function Be(e) {
|
|
2517
|
-
if (typeof e == "string") {
|
|
2518
|
-
let t = e;
|
|
2519
|
-
return e.includes(" ") && (t = e.replace(" ", "T").replace("+00", "Z").replace(/\+\d{2}:\d{2}$/, "Z")), !t.endsWith("Z") && !t.includes("+") && (t += "Z"), new Date(t);
|
|
2520
|
-
}
|
|
2521
|
-
return new Date(e);
|
|
2522
|
-
}
|
|
2523
|
-
function Ve(e, t, n, r, i) {
|
|
2524
|
-
return e.map((e) => {
|
|
2525
|
-
let a = e[t], o = typeof e[n] == "string" ? parseFloat(e[n]) : e[n] || 0, s = Be(a);
|
|
2526
|
-
return isNaN(s.getTime()) ? null : {
|
|
2527
|
-
x: r.extractX(s),
|
|
2528
|
-
y: r.extractY(s),
|
|
2529
|
-
value: o,
|
|
2530
|
-
date: s,
|
|
2531
|
-
label: F(a, i)
|
|
2532
|
-
};
|
|
2533
|
-
}).filter((e) => e !== null);
|
|
2534
|
-
}
|
|
2535
|
-
//#endregion
|
|
2536
|
-
//#region src/client/components/charts/ActivityGridChart.render.ts
|
|
2537
|
-
var He = [
|
|
2538
|
-
"Jan",
|
|
2539
|
-
"Feb",
|
|
2540
|
-
"Mar",
|
|
2541
|
-
"Apr",
|
|
2542
|
-
"May",
|
|
2543
|
-
"Jun",
|
|
2544
|
-
"Jul",
|
|
2545
|
-
"Aug",
|
|
2546
|
-
"Sep",
|
|
2547
|
-
"Oct",
|
|
2548
|
-
"Nov",
|
|
2549
|
-
"Dec"
|
|
2550
|
-
];
|
|
2551
|
-
function Ue(e) {
|
|
2552
|
-
return {
|
|
2553
|
-
textColor: e ? G("--dc-text-muted", "#cbd5e1") : G("--dc-text-secondary", "#374151"),
|
|
2554
|
-
lineColor: G("--dc-border", "#e5e7eb"),
|
|
2555
|
-
emptyCellColor: e ? G("--dc-bg-secondary", "#1e293b") : G("--dc-bg-secondary", "#f3f4f6"),
|
|
2556
|
-
cellStrokeColor: e ? G("--dc-border", "#334155") : G("--dc-bg", "#ffffff")
|
|
2557
|
-
};
|
|
2558
|
-
}
|
|
2559
|
-
function We(e) {
|
|
2560
|
-
let { gridData: t, gridMapping: n, dimensions: r, safeDisplayConfig: i } = e, a = f(t, (e) => e.y) || 0, o = p(t, (e) => e.y) || 0, s = [...new Set(t.map((e) => e.x))].sort((e, t) => e - t), c = s.length * n.cellWidth + (s.length - 1) * 4, l = (a - o + 1) * n.cellHeight + (a - o) * 4, u = {
|
|
2561
|
-
...U,
|
|
2562
|
-
left: 60,
|
|
2563
|
-
bottom: 10,
|
|
2564
|
-
top: n.hasHierarchicalLabels ? 40 : 25,
|
|
2565
|
-
right: 10
|
|
2566
|
-
}, d = r.width - u.left - u.right, m = r.height - u.top - u.bottom, h = Math.min(d / c, m / l), g, _;
|
|
2567
|
-
i.fitToWidth ? (g = n.cellWidth * h, _ = n.cellHeight * h) : (g = Math.max(16, Math.min(24, n.cellWidth * h)), _ = Math.max(16, Math.min(24, n.cellHeight * h)), e.granularity === "week" && g < 16 && (g = 16));
|
|
2568
|
-
let v = s.length * g + (s.length - 1) * 4, y = v > d ? v + u.left + u.right : r.width;
|
|
2569
|
-
return {
|
|
2570
|
-
margin: u,
|
|
2571
|
-
finalCellWidth: g,
|
|
2572
|
-
finalCellHeight: _,
|
|
2573
|
-
completeXRange: s,
|
|
2574
|
-
minY: o,
|
|
2575
|
-
maxY: a,
|
|
2576
|
-
svgWidth: y
|
|
2577
|
-
};
|
|
2578
|
-
}
|
|
2579
|
-
function Ge() {
|
|
2580
|
-
return h("body").append("div").attr("class", "activity-grid-tooltip").style("position", "absolute").style("padding", "8px").style("background", "rgba(0, 0, 0, 0.8)").style("color", "white").style("border-radius", "4px").style("font-size", "12px").style("pointer-events", "none").style("opacity", 0).style("z-index", 1e3);
|
|
2581
|
-
}
|
|
2582
|
-
function $(e, t, n, r, i) {
|
|
2583
|
-
e.style("cursor", t.drillEnabled ? "pointer" : "default").on("mouseover", function(e) {
|
|
2584
|
-
if (h(this).style("stroke", "#000").style("stroke-width", 2), n) {
|
|
2585
|
-
let i = [`<strong>${n.label}</strong>`, `${t.getFieldLabel(t.valueField)}: ${n.value}`].join("<br>");
|
|
2586
|
-
r.html(i).style("left", e.pageX + 10 + "px").style("top", e.pageY - 10 + "px").transition().duration(200).style("opacity", 1);
|
|
2587
|
-
}
|
|
2588
|
-
}).on("mousemove", function(e) {
|
|
2589
|
-
r.style("left", e.pageX + 10 + "px").style("top", e.pageY - 10 + "px");
|
|
2590
|
-
}).on("mouseout", function() {
|
|
2591
|
-
h(this).style("stroke", i).style("stroke-width", 1), r.transition().duration(200).style("opacity", 0);
|
|
2592
|
-
});
|
|
2593
|
-
}
|
|
2594
|
-
function Ke(e, t, n, r, i, a) {
|
|
2595
|
-
let { gridData: o, valueField: s, dateField: c, drillEnabled: l, onDataPointClick: u, safeDisplayConfig: d } = e, { completeXRange: f, minY: p, maxY: m, finalCellWidth: h, finalCellHeight: g } = n, _ = /* @__PURE__ */ new Map();
|
|
2596
|
-
o.forEach((e) => _.set(`${e.x}-${e.y}`, e));
|
|
2597
|
-
let v = /* @__PURE__ */ new Map();
|
|
2598
|
-
f.forEach((e, t) => v.set(e, t));
|
|
2599
|
-
for (let n of f) for (let o = p; o <= m; o++) {
|
|
2600
|
-
let f = _.get(`${n}-${o}`), m = v.get(n) || 0, y = t.append("rect").attr("x", m * (h + 4)).attr("y", (o - p) * (g + 4)).attr("width", h).attr("height", g).attr("rx", 2).attr("ry", 2).style("fill", f ? r(f.value) : a.emptyCellColor).style("stroke", a.cellStrokeColor).style("stroke-width", 1);
|
|
2601
|
-
d.showTooltip ? $(y, e, f, i, a.cellStrokeColor) : l && y.style("cursor", "pointer"), l && u && f && y.on("click", function(e) {
|
|
2602
|
-
u({
|
|
2603
|
-
dataPoint: {
|
|
2604
|
-
[s]: f.value,
|
|
2605
|
-
[c]: f.date
|
|
2606
|
-
},
|
|
2607
|
-
clickedField: s,
|
|
2608
|
-
xValue: f.label,
|
|
2609
|
-
position: {
|
|
2610
|
-
x: e.pageX,
|
|
2611
|
-
y: e.pageY
|
|
2612
|
-
},
|
|
2613
|
-
nativeEvent: e
|
|
2614
|
-
});
|
|
2615
|
-
});
|
|
2616
|
-
}
|
|
2617
|
-
}
|
|
2618
|
-
function qe(e) {
|
|
2619
|
-
if (e > 9999) {
|
|
2620
|
-
let t = Math.floor(e / 100);
|
|
2621
|
-
return `${He[e % 100 - 1]} '${t.toString().slice(-2)}`;
|
|
2622
|
-
}
|
|
2623
|
-
return `'${e.toString().slice(-2)}`;
|
|
2624
|
-
}
|
|
2625
|
-
function Je(e, t, n, r) {
|
|
2626
|
-
let { gridMapping: i } = e, { completeXRange: a, finalCellWidth: o } = n, s = /* @__PURE__ */ new Map();
|
|
2627
|
-
a.forEach((e, t) => s.set(e, t));
|
|
2628
|
-
let c = /* @__PURE__ */ new Map();
|
|
2629
|
-
for (let e of a) {
|
|
2630
|
-
let t = i.getYearFromX(e);
|
|
2631
|
-
c.has(t) || c.set(t, []), c.get(t).push(e);
|
|
2632
|
-
}
|
|
2633
|
-
for (let e of a) {
|
|
2634
|
-
let n = s.get(e) || 0;
|
|
2635
|
-
t.append("text").attr("x", n * (o + 4) + o / 2).attr("y", -8).attr("text-anchor", "middle").style("font-size", "10px").style("fill", r.textColor).text(i.xFormat(e));
|
|
2636
|
-
}
|
|
2637
|
-
for (let [e, n] of c) {
|
|
2638
|
-
if (n.length === 0) continue;
|
|
2639
|
-
let i = Math.min(...n.map((e) => s.get(e) || 0)), a = Math.max(...n.map((e) => s.get(e) || 0)), c = (i + a) / 2;
|
|
2640
|
-
t.append("text").attr("x", c * (o + 4) + o / 2).attr("y", -25).attr("text-anchor", "middle").style("font-size", "12px").style("font-weight", "bold").style("fill", r.textColor).text(qe(e)), n.length > 1 && t.append("line").attr("x1", i * (o + 4)).attr("x2", a * (o + 4) + o).attr("y1", -20).attr("y2", -20).style("stroke", r.lineColor).style("stroke-width", 1).style("opacity", .3);
|
|
2641
|
-
}
|
|
2642
|
-
}
|
|
2643
|
-
function Ye(e, t, n, r) {
|
|
2644
|
-
let { gridMapping: i } = e, { completeXRange: a, finalCellWidth: o } = n, s = Math.max(1, Math.floor(a.length / 10));
|
|
2645
|
-
for (let e = 0; e < a.length; e += s) t.append("text").attr("x", e * (o + 4) + o / 2).attr("y", -8).attr("text-anchor", "middle").style("font-size", "10px").style("fill", r.textColor).text(i.xFormat(a[e]));
|
|
2646
|
-
}
|
|
2647
|
-
function Xe(e, t, n, r) {
|
|
2648
|
-
let { gridMapping: i } = e, { minY: a, maxY: o, finalCellHeight: s } = n;
|
|
2649
|
-
i.hasHierarchicalLabels && i.getYearFromX ? Je(e, t, n, r) : Ye(e, t, n, r);
|
|
2650
|
-
for (let e = a; e <= o; e++) t.append("text").attr("x", -8).attr("y", (e - a) * (s + 4) + s / 2).attr("text-anchor", "end").attr("dy", ".35em").style("font-size", "10px").style("fill", r.textColor).text(i.yFormat(e));
|
|
2651
|
-
}
|
|
2652
|
-
function Ze(e) {
|
|
2653
|
-
let { svgEl: t, gridData: n, dimensions: r, colorPalette: i, isDark: a, safeDisplayConfig: o } = e;
|
|
2654
|
-
if (h(t).selectAll("*").remove(), n.length === 0) return;
|
|
2655
|
-
let s = We(e), c = h(t).attr("width", s.svgWidth).attr("height", r.height).append("g").attr("transform", `translate(${s.margin.left},${s.margin.top})`), l = n.map((e) => e.value), u = m().domain([p(l) || 0, f(l) || 1]).range(i?.gradient || H), d = Ue(a), g = Ge();
|
|
2656
|
-
return Ke(e, c, s, u, g, d), o.showLabels && Xe(e, c, s, d), () => {
|
|
2657
|
-
g.remove();
|
|
2658
|
-
};
|
|
2659
|
-
}
|
|
2660
|
-
//#endregion
|
|
2661
|
-
//#region src/client/components/charts/ActivityGridChart.tsx
|
|
2662
|
-
var Qe = /* @__PURE__ */ e({ default: () => $e }), $e = t.memo(function({ data: e, chartConfig: t, displayConfig: n = {}, queryObject: r, height: i = "100%", colorPalette: o, onDataPointClick: f, drillEnabled: p }) {
|
|
2663
|
-
let { t: m } = D(), h = c(null), { containerRef: g, dimensions: _, dimensionsReady: v } = W(), [y, b] = l("light"), x = R();
|
|
2664
|
-
a(() => (b(B()), V((e) => b(e))), []);
|
|
2665
|
-
let S = s(() => ({
|
|
2666
|
-
showTooltip: n?.showTooltip ?? !0,
|
|
2667
|
-
showLabels: n?.showLabels ?? !0,
|
|
2668
|
-
fitToWidth: n?.fitToWidth ?? !1
|
|
2669
|
-
}), [
|
|
2670
|
-
n?.showTooltip,
|
|
2671
|
-
n?.showLabels,
|
|
2672
|
-
n?.fitToWidth
|
|
2673
|
-
]);
|
|
2674
|
-
if (a(() => {
|
|
2675
|
-
if (!e || e.length === 0 || !h.current || !v || _.width === 0 || !t?.dateField || !t?.valueField) return;
|
|
2676
|
-
let n = Q(t.dateField), i = Q(t.valueField);
|
|
2677
|
-
if (!n || !i) return;
|
|
2678
|
-
let a = ze(r, n), s = Re(a);
|
|
2679
|
-
if (!s) return;
|
|
2680
|
-
let c = Ve(e, n, i, s, a);
|
|
2681
|
-
return Ze({
|
|
2682
|
-
svgEl: h.current,
|
|
2683
|
-
gridData: c,
|
|
2684
|
-
gridMapping: s,
|
|
2685
|
-
granularity: a,
|
|
2686
|
-
dimensions: _,
|
|
2687
|
-
safeDisplayConfig: S,
|
|
2688
|
-
colorPalette: o,
|
|
2689
|
-
isDark: y !== "light",
|
|
2690
|
-
valueField: i,
|
|
2691
|
-
dateField: n,
|
|
2692
|
-
getFieldLabel: x,
|
|
2693
|
-
drillEnabled: p,
|
|
2694
|
-
onDataPointClick: f
|
|
2695
|
-
});
|
|
2696
|
-
}, [
|
|
2697
|
-
e,
|
|
2698
|
-
t,
|
|
2699
|
-
r,
|
|
2700
|
-
_,
|
|
2701
|
-
v,
|
|
2702
|
-
S,
|
|
2703
|
-
o,
|
|
2704
|
-
y,
|
|
2705
|
-
x,
|
|
2706
|
-
p,
|
|
2707
|
-
f
|
|
2708
|
-
]), !e || e.length === 0) return /* @__PURE__ */ u("div", {
|
|
2709
|
-
className: "dc:flex dc:items-center dc:justify-center dc:w-full",
|
|
2710
|
-
style: { height: i },
|
|
2711
|
-
children: /* @__PURE__ */ d("div", {
|
|
2712
|
-
className: "dc:text-center text-dc-text-muted",
|
|
2713
|
-
children: [/* @__PURE__ */ u("div", {
|
|
2714
|
-
className: "dc:text-sm dc:font-semibold dc:mb-1",
|
|
2715
|
-
children: m("chart.runtime.noData")
|
|
2716
|
-
}), /* @__PURE__ */ u("div", {
|
|
2717
|
-
className: "dc:text-xs text-dc-text-secondary",
|
|
2718
|
-
children: m("chart.runtime.noDataHint.activityGrid")
|
|
2719
|
-
})]
|
|
2720
|
-
})
|
|
2721
|
-
});
|
|
2722
|
-
if (!(t?.dateField && t?.valueField)) return /* @__PURE__ */ u("div", {
|
|
2723
|
-
className: "dc:flex dc:items-center dc:justify-center dc:w-full",
|
|
2724
|
-
style: { height: i },
|
|
2725
|
-
children: /* @__PURE__ */ d("div", {
|
|
2726
|
-
className: "dc:text-center text-dc-text-muted",
|
|
2727
|
-
children: [/* @__PURE__ */ u("div", {
|
|
2728
|
-
className: "dc:text-sm dc:font-semibold dc:mb-1",
|
|
2729
|
-
children: m("chart.runtime.activityGridConfigRequired")
|
|
2730
|
-
}), /* @__PURE__ */ u("div", {
|
|
2731
|
-
className: "dc:text-xs text-dc-text-secondary",
|
|
2732
|
-
children: m("chart.runtime.configErrorHint.activityGridRequired")
|
|
2733
|
-
})]
|
|
2734
|
-
})
|
|
2735
|
-
});
|
|
2736
|
-
let C = Q(t.dateField);
|
|
2737
|
-
return (r?.timeDimensions?.find((e) => e.dimension === C || e.dimension.includes(C))?.granularity || "day")?.toLowerCase() === "year" ? /* @__PURE__ */ u("div", {
|
|
2738
|
-
className: "dc:flex dc:items-center dc:justify-center dc:w-full",
|
|
2739
|
-
style: { height: i },
|
|
2740
|
-
children: /* @__PURE__ */ d("div", {
|
|
2741
|
-
className: "dc:text-center text-dc-text-muted",
|
|
2742
|
-
children: [
|
|
2743
|
-
/* @__PURE__ */ u("div", {
|
|
2744
|
-
className: "dc:text-sm dc:font-semibold dc:mb-1",
|
|
2745
|
-
children: m("chart.runtime.activityGridGranularityTooHigh")
|
|
2746
|
-
}),
|
|
2747
|
-
/* @__PURE__ */ u("div", {
|
|
2748
|
-
className: "dc:text-xs text-dc-text-secondary",
|
|
2749
|
-
children: m("chart.runtime.activityGridGranularityHint")
|
|
2750
|
-
}),
|
|
2751
|
-
/* @__PURE__ */ u("div", {
|
|
2752
|
-
className: "dc:text-xs text-dc-text-secondary dc:mt-1",
|
|
2753
|
-
children: m("chart.runtime.activityGridGranularityAction")
|
|
2754
|
-
})
|
|
2755
|
-
]
|
|
2756
|
-
})
|
|
2757
|
-
}) : /* @__PURE__ */ u("div", {
|
|
2758
|
-
className: "dc:w-full dc:flex dc:flex-col dc:relative",
|
|
2759
|
-
style: {
|
|
2760
|
-
height: i,
|
|
2761
|
-
minHeight: "250px",
|
|
2762
|
-
overflow: "hidden",
|
|
2763
|
-
width: "100%"
|
|
2764
|
-
},
|
|
2765
|
-
children: /* @__PURE__ */ d("div", {
|
|
2766
|
-
ref: g,
|
|
2767
|
-
className: "dc:w-full dc:h-full dc:relative dc:overflow-x-auto",
|
|
2768
|
-
style: { width: "100%" },
|
|
2769
|
-
children: [/* @__PURE__ */ u("svg", {
|
|
2770
|
-
ref: h,
|
|
2771
|
-
className: "dc:h-full"
|
|
2772
|
-
}), !v && /* @__PURE__ */ u("div", {
|
|
2773
|
-
className: "dc:absolute dc:inset-0 dc:flex dc:items-center dc:justify-center",
|
|
2774
|
-
children: /* @__PURE__ */ u("div", {
|
|
2775
|
-
className: "text-dc-text-muted dc:text-sm",
|
|
2776
|
-
children: m("chart.runtime.measuringDimensions")
|
|
2777
|
-
})
|
|
2778
|
-
})]
|
|
2779
|
-
})
|
|
2780
|
-
});
|
|
2781
|
-
});
|
|
2782
1813
|
//#endregion
|
|
2783
|
-
export {
|
|
1814
|
+
export { u as a, f as i, m as n, p as o, h as r, d as s, g as t };
|
|
2784
1815
|
|
|
2785
|
-
//# sourceMappingURL=
|
|
1816
|
+
//# sourceMappingURL=useTranslation-F7BGje95.js.map
|