drizzle-cube 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/ActivityGridChart.config-3SeBVdiJ.js +1 -0
- package/dist/adapters/ActivityGridChart.config-C8d7NfCS.cjs +1 -0
- package/dist/adapters/AreaChart.config-DMLdRLt3.cjs +1 -0
- package/dist/adapters/AreaChart.config-DX_WqQQ_.js +1 -0
- package/dist/adapters/BarChart.config-2Wmv5r8P.cjs +1 -0
- package/dist/adapters/BarChart.config-BWYAI7Vg.js +1 -0
- package/dist/adapters/BoxPlotChart.config-Ceu0w8Zd.cjs +1 -0
- package/dist/adapters/BoxPlotChart.config-T-8Peh8F.js +1 -0
- package/dist/adapters/BubbleChart.config-BIcf2l3R.js +1 -0
- package/dist/adapters/BubbleChart.config-CtM5BSz6.cjs +1 -0
- package/dist/adapters/CandlestickChart.config-4S2Or5mN.cjs +1 -0
- package/dist/adapters/CandlestickChart.config-4d3lZuok.js +1 -0
- package/dist/adapters/DataTable.config-D7EycI7z.cjs +1 -0
- package/dist/adapters/DataTable.config-Gq2C0ILP.js +1 -0
- package/dist/adapters/DotStripChart.config-NHJSJBlh.js +1 -0
- package/dist/adapters/DotStripChart.config-VomEbzxR.cjs +1 -0
- package/dist/adapters/FunnelChart.config-C5pBDYFK.js +1 -0
- package/dist/adapters/FunnelChart.config-D3Mtyf28.cjs +1 -0
- package/dist/adapters/GaugeChart.config-BnFLZCC6.js +1 -0
- package/dist/adapters/GaugeChart.config-DtkFafZC.cjs +1 -0
- package/dist/adapters/HeatMapChart.config-BIqhjAFQ.js +1 -0
- package/dist/adapters/HeatMapChart.config-DseB1NfL.cjs +1 -0
- package/dist/adapters/KpiDelta.config-69-uMEyb.js +1 -0
- package/dist/adapters/KpiDelta.config-DWPjfacH.cjs +1 -0
- package/dist/adapters/KpiNumber.config-BbnUmSb-.js +1 -0
- package/dist/adapters/KpiNumber.config-C3btQia1.cjs +1 -0
- package/dist/adapters/KpiText.config-Bnmvk3lB.cjs +1 -0
- package/dist/adapters/KpiText.config-DAWQ0mAe.js +1 -0
- package/dist/adapters/LineChart.config-CKGqehVr.cjs +1 -0
- package/dist/adapters/LineChart.config-FHEbx5Qa.js +1 -0
- package/dist/adapters/MarkdownChart.config-Cj8GMNnf.cjs +1 -0
- package/dist/adapters/MarkdownChart.config-DD5nNpfK.js +1 -0
- package/dist/adapters/MeasureProfileChart.config-CM9DseTR.js +1 -0
- package/dist/adapters/MeasureProfileChart.config-sy-8lmcV.cjs +1 -0
- package/dist/adapters/PieChart.config-8THRRwga.cjs +1 -0
- package/dist/adapters/PieChart.config-m6eZbEWA.js +1 -0
- package/dist/adapters/ProportionBarChart.config-DJrjar2k.cjs +1 -0
- package/dist/adapters/ProportionBarChart.config-Sm34Lsvo.js +1 -0
- package/dist/adapters/RadarChart.config-CXLUncFQ.js +1 -0
- package/dist/adapters/RadarChart.config-Dec1u-cO.cjs +1 -0
- package/dist/adapters/RadialBarChart.config-93JNKh5g.js +1 -0
- package/dist/adapters/RadialBarChart.config-DNw07Ie4.cjs +1 -0
- package/dist/adapters/RecordsTable.config-79tOcNvK.js +1 -0
- package/dist/adapters/RecordsTable.config-DaTk-q0X.cjs +1 -0
- package/dist/adapters/RetentionCombinedChart.config-BJlyJD9K.js +1 -0
- package/dist/adapters/RetentionCombinedChart.config-BMY7kekL.cjs +1 -0
- package/dist/adapters/RetentionHeatmap.config-C6UDjFsM.cjs +1 -0
- package/dist/adapters/RetentionHeatmap.config-C7GsAXqy.js +1 -0
- package/dist/adapters/SankeyChart.config-7K9FRF5f.js +1 -0
- package/dist/adapters/SankeyChart.config-Bn8CuX7j.cjs +1 -0
- package/dist/adapters/ScatterChart.config-BwObH6wd.cjs +1 -0
- package/dist/adapters/ScatterChart.config-DdXyolWJ.js +1 -0
- package/dist/adapters/SunburstChart.config-BaWb-t_B.cjs +1 -0
- package/dist/adapters/SunburstChart.config-D-A2Wbeg.js +1 -0
- package/dist/adapters/TreeMapChart.config-2G6D7LD3.cjs +1 -0
- package/dist/adapters/TreeMapChart.config-CsQ8lmZY.js +1 -0
- package/dist/adapters/WaterfallChart.config-CG6GW5x3.js +1 -0
- package/dist/adapters/WaterfallChart.config-Dt3MgB-U.cjs +1 -0
- package/dist/adapters/core/index.cjs +1 -1
- package/dist/adapters/core/index.js +1 -1
- package/dist/adapters/{core-Ib5DN_B6.cjs → core-Bb61BBaY.cjs} +1 -1
- package/dist/adapters/{core-D1FtXGPM.js → core-DEn53hp7.js} +2 -2
- package/dist/adapters/{cors-headers-1y1YYuKm.js → cors-headers--zwd9Fnx.js} +5 -2
- package/dist/adapters/{cors-headers-g45-9YKF.cjs → cors-headers-BOUMJEnB.cjs} +2 -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-C3oYSaVM.cjs → handler-CQhqvHnT.cjs} +3 -3
- package/dist/adapters/{handler-C9ZFhsv6.js → handler-CREhpjLZ.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.js +1 -1
- package/dist/adapters/mcp-tools.cjs +1 -1
- package/dist/adapters/mcp-tools.js +2 -2
- package/dist/adapters/{mcp-transport-DnnABB3F.cjs → mcp-transport-PEmdNS4r.cjs} +1 -1
- package/dist/adapters/{mcp-transport-DpJDF0M_.js → mcp-transport-_oHCd2rj.js} +1 -1
- package/dist/adapters/nextjs/index.cjs +1 -1
- package/dist/adapters/nextjs/index.js +11 -6
- package/dist/adapters/{openai-Dxu_8i7e.cjs → openai-BgICnFmA.cjs} +1 -1
- package/dist/adapters/{openai-DOMIchMU.js → openai-CaxTRQ32.js} +1 -1
- package/dist/adapters/{openai-Dxk9OT5p.cjs → openai-DQNzLnj1.cjs} +1 -1
- package/dist/adapters/{openai-DDdpBh3c.js → openai-lRcjN8pG.js} +1 -1
- package/dist/adapters/{utils-0Afl53Xc.cjs → utils-COscxYKM.cjs} +1 -1
- package/dist/adapters/{utils-DrbnoHoa.js → utils-ClqFyZ-5.js} +25 -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/client/charts/chartConfigs.d.ts +24 -1
- package/dist/cjs/client/charts.d.ts +1 -1
- package/dist/cjs/client/components/dashboard/dashboardGridUtils.d.ts +1 -1
- package/dist/cjs/client/components/dashboardPortletCard/PortletCardHeader.d.ts +4 -2
- package/dist/cjs/client/components/dashboardPortletCard/PortletFloatingActions.d.ts +5 -3
- package/dist/cjs/client/components/dashboardPortletCard/portletActionOrder.d.ts +17 -0
- package/dist/cjs/client/hooks/dashboard/layoutUtils.d.ts +21 -1
- package/dist/cjs/client/index.d.ts +3 -2
- package/dist/cjs/client/shared/chartConfigBuilders.d.ts +5 -2
- package/dist/cjs/client/shared/chartDefaults.d.ts +11 -1
- package/dist/cjs/client/types.d.ts +6 -0
- package/dist/cjs/client/utils/colorPalettes.d.ts +25 -0
- package/dist/client/charts/chartConfigs.d.ts +24 -1
- package/dist/client/charts.d.ts +1 -1
- package/dist/client/charts.js +12 -12
- package/dist/client/chunks/{ActivityGridChart-BpA0H20k.js → ActivityGridChart-t6JS9q1q.js} +2 -2
- package/dist/client/chunks/{ActivityGridChart-BpA0H20k.js.map → ActivityGridChart-t6JS9q1q.js.map} +1 -1
- package/dist/client/chunks/{BubbleChart-Va-bRr3Y.js → BubbleChart-E0IoByRb.js} +2 -2
- package/dist/client/chunks/{BubbleChart-Va-bRr3Y.js.map → BubbleChart-E0IoByRb.js.map} +1 -1
- package/dist/client/chunks/{ChartStates-DV1Jtonz.js → ChartStates-BMRzDVW2.js} +2 -2
- package/dist/client/chunks/{ChartStates-DV1Jtonz.js.map → ChartStates-BMRzDVW2.js.map} +1 -1
- package/dist/client/chunks/{ChartSummaryHeader-DSmXm_lT.js → ChartSummaryHeader-CIVTb1NC.js} +2 -2
- package/dist/client/chunks/{ChartSummaryHeader-DSmXm_lT.js.map → ChartSummaryHeader-CIVTb1NC.js.map} +1 -1
- package/dist/client/chunks/{DashboardEditModal-CnbCHKtu.js → DashboardEditModal-Fx3EXgIk.js} +826 -742
- package/dist/client/chunks/DashboardEditModal-Fx3EXgIk.js.map +1 -0
- package/dist/client/chunks/{DataHistogram-zBz4Opmm.js → DataHistogram-omihvcZL.js} +2 -2
- package/dist/client/chunks/{DataHistogram-zBz4Opmm.js.map → DataHistogram-omihvcZL.js.map} +1 -1
- package/dist/client/chunks/{DotStripChart-D6o5DpPf.js → DotStripChart-iVRVliSr.js} +4 -4
- package/dist/client/chunks/{DotStripChart-D6o5DpPf.js.map → DotStripChart-iVRVliSr.js.map} +1 -1
- package/dist/client/chunks/{FunnelViews-DwvKEzU7.js → FunnelViews-C7joNDMs.js} +2 -2
- package/dist/client/chunks/{FunnelViews-DwvKEzU7.js.map → FunnelViews-C7joNDMs.js.map} +1 -1
- package/dist/client/chunks/{HeatMapChart-DqOZawm3.js → HeatMapChart-nPiSSTET.js} +3 -3
- package/dist/client/chunks/{HeatMapChart-DqOZawm3.js.map → HeatMapChart-nPiSSTET.js.map} +1 -1
- package/dist/client/chunks/{KpiDelta-CUqF9vVH.js → KpiDelta-5bl1vkTe.js} +2 -2
- package/dist/client/chunks/{KpiDelta-CUqF9vVH.js.map → KpiDelta-5bl1vkTe.js.map} +1 -1
- package/dist/client/chunks/{KpiText-Dply9kb4.js → KpiText-l1GtL83c.js} +2 -2
- package/dist/client/chunks/{KpiText-Dply9kb4.js.map → KpiText-l1GtL83c.js.map} +1 -1
- package/dist/client/chunks/{MarkdownChart-BlL5h7nK.js → MarkdownChart-CO0eGGo3.js} +3 -3
- package/dist/client/chunks/{MarkdownChart-BlL5h7nK.js.map → MarkdownChart-CO0eGGo3.js.map} +1 -1
- package/dist/client/chunks/{PortletAnalysisModal-CDw3uit7.js → PortletAnalysisModal-BNygY4TN.js} +5 -5
- package/dist/client/chunks/{PortletAnalysisModal-CDw3uit7.js.map → PortletAnalysisModal-BNygY4TN.js.map} +1 -1
- package/dist/client/chunks/{ProportionBarChart-CK0FlfTr.js → ProportionBarChart-BxSBzz9F.js} +4 -4
- package/dist/client/chunks/{ProportionBarChart-CK0FlfTr.js.map → ProportionBarChart-BxSBzz9F.js.map} +1 -1
- package/dist/client/chunks/{RecordsTable-DURm8ypj.js → RecordsTable-Ce86xEEb.js} +4 -4
- package/dist/client/chunks/{RecordsTable-DURm8ypj.js.map → RecordsTable-Ce86xEEb.js.map} +1 -1
- package/dist/client/chunks/{RetentionCombinedChart-90MBVuS7.js → RetentionCombinedChart-BX1VbJ_m.js} +3 -3
- package/dist/client/chunks/{RetentionCombinedChart-90MBVuS7.js.map → RetentionCombinedChart-BX1VbJ_m.js.map} +1 -1
- package/dist/client/chunks/{RetentionHeatmap-ChwWtk6j.js → RetentionHeatmap-C6FJ-hNN.js} +2 -2
- package/dist/client/chunks/{RetentionHeatmap-ChwWtk6j.js.map → RetentionHeatmap-C6FJ-hNN.js.map} +1 -1
- package/dist/client/chunks/{SchemaVisualization-RWq1-GVI.js → SchemaVisualization-DheR_F8J.js} +1 -1
- package/dist/client/chunks/{TextPortletModal-Fvuzf3mT.js → TextPortletModal-BKJx63L7.js} +3 -3
- package/dist/client/chunks/{TextPortletModal-Fvuzf3mT.js.map → TextPortletModal-BKJx63L7.js.map} +1 -1
- package/dist/client/chunks/{analysis-builder-4WfT396_.js → analysis-builder-QaBFxEqT.js} +131 -130
- package/dist/client/chunks/analysis-builder-QaBFxEqT.js.map +1 -0
- package/dist/client/chunks/{analysis-builder-shared-DQCAOl8f.js → analysis-builder-shared-CBYZC9iE.js} +211 -204
- package/dist/client/chunks/analysis-builder-shared-CBYZC9iE.js.map +1 -0
- package/dist/client/chunks/{chart-activity-grid-C0V6erx3.js → chart-activity-grid-Tma6prYa.js} +4 -4
- package/dist/client/chunks/{chart-activity-grid-C0V6erx3.js.map → chart-activity-grid-Tma6prYa.js.map} +1 -1
- package/dist/client/chunks/{chart-area-D93yaXt_.js → chart-area-uKNDmXki.js} +6 -6
- package/dist/client/chunks/{chart-area-D93yaXt_.js.map → chart-area-uKNDmXki.js.map} +1 -1
- package/dist/client/chunks/{chart-bar-Cm5gacSp.js → chart-bar-J-O7Fdzo.js} +5 -5
- package/dist/client/chunks/{chart-bar-Cm5gacSp.js.map → chart-bar-J-O7Fdzo.js.map} +1 -1
- package/dist/client/chunks/{chart-box-plot-XWfiRDvb.js → chart-box-plot-DOOxwI0S.js} +2 -2
- package/dist/client/chunks/{chart-box-plot-XWfiRDvb.js.map → chart-box-plot-DOOxwI0S.js.map} +1 -1
- package/dist/client/chunks/{chart-bubble-B5eN2Ass.js → chart-bubble-CpFXYmcw.js} +4 -4
- package/dist/client/chunks/{chart-bubble-B5eN2Ass.js.map → chart-bubble-CpFXYmcw.js.map} +1 -1
- package/dist/client/chunks/{chart-candlestick-DkjqHZaS.js → chart-candlestick-D8VjfXOL.js} +2 -2
- package/dist/client/chunks/{chart-candlestick-DkjqHZaS.js.map → chart-candlestick-D8VjfXOL.js.map} +1 -1
- package/dist/client/chunks/{chart-config-area-BAQ3OOX8.js → chart-config-area-CiUGyEFe.js} +2 -2
- package/dist/client/chunks/{chart-config-area-BAQ3OOX8.js.map → chart-config-area-CiUGyEFe.js.map} +1 -1
- package/dist/client/chunks/{chart-config-bar-BI_fdiHp.js → chart-config-bar-CgnxLwWK.js} +2 -2
- package/dist/client/chunks/{chart-config-bar-BI_fdiHp.js.map → chart-config-bar-CgnxLwWK.js.map} +1 -1
- package/dist/client/chunks/{chart-config-kpi-delta-B_RTgzlg.js → chart-config-kpi-delta-Bb-SdLfu.js} +2 -2
- package/dist/client/chunks/{chart-config-kpi-delta-B_RTgzlg.js.map → chart-config-kpi-delta-Bb-SdLfu.js.map} +1 -1
- package/dist/client/chunks/{chart-config-kpi-number-DJAk5ijx.js → chart-config-kpi-number-DrgZOOSX.js} +2 -2
- package/dist/client/chunks/{chart-config-kpi-number-DJAk5ijx.js.map → chart-config-kpi-number-DrgZOOSX.js.map} +1 -1
- package/dist/client/chunks/{chart-config-line-IvPzwe7J.js → chart-config-line-SZnp_5gb.js} +2 -2
- package/dist/client/chunks/{chart-config-line-IvPzwe7J.js.map → chart-config-line-SZnp_5gb.js.map} +1 -1
- package/dist/client/chunks/{chart-config-pie-XmiWQBnz.js → chart-config-pie-DgM8pgZ3.js} +2 -2
- package/dist/client/chunks/{chart-config-pie-XmiWQBnz.js.map → chart-config-pie-DgM8pgZ3.js.map} +1 -1
- package/dist/client/chunks/{chart-config-radar-DgJ6MjX5.js → chart-config-radar-Bz7e2iJu.js} +2 -2
- package/dist/client/chunks/{chart-config-radar-DgJ6MjX5.js.map → chart-config-radar-Bz7e2iJu.js.map} +1 -1
- package/dist/client/chunks/{chart-config-radial-bar-XtEyL4I7.js → chart-config-radial-bar-Cq-77n9m.js} +2 -2
- package/dist/client/chunks/{chart-config-radial-bar-XtEyL4I7.js.map → chart-config-radial-bar-Cq-77n9m.js.map} +1 -1
- package/dist/client/chunks/{chart-config-tree-map-BPkeTgk_.js → chart-config-tree-map-CoeS1GRn.js} +2 -2
- package/dist/client/chunks/{chart-config-tree-map-BPkeTgk_.js.map → chart-config-tree-map-CoeS1GRn.js.map} +1 -1
- package/dist/client/chunks/{chart-data-table-LvjMZByO.js → chart-data-table-CDMTU9F4.js} +3 -3
- package/dist/client/chunks/{chart-data-table-LvjMZByO.js.map → chart-data-table-CDMTU9F4.js.map} +1 -1
- package/dist/client/chunks/{chart-funnel-B_YO8r5g.js → chart-funnel-C18WiJ9P.js} +3 -3
- package/dist/client/chunks/{chart-funnel-B_YO8r5g.js.map → chart-funnel-C18WiJ9P.js.map} +1 -1
- package/dist/client/chunks/{chart-gauge-BbcdeJ5v.js → chart-gauge-seUJ08__.js} +4 -4
- package/dist/client/chunks/{chart-gauge-BbcdeJ5v.js.map → chart-gauge-seUJ08__.js.map} +1 -1
- package/dist/client/chunks/{chart-heat-map-C35lzmXC.js → chart-heat-map-_HOw96aJ.js} +4 -4
- package/dist/client/chunks/{chart-heat-map-C35lzmXC.js.map → chart-heat-map-_HOw96aJ.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-delta-DB4S3nWz.js → chart-kpi-delta-dSO6l_oc.js} +4 -4
- package/dist/client/chunks/{chart-kpi-delta-DB4S3nWz.js.map → chart-kpi-delta-dSO6l_oc.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-number-D_NrcF-S.js → chart-kpi-number-CTVVElrK.js} +4 -4
- package/dist/client/chunks/{chart-kpi-number-D_NrcF-S.js.map → chart-kpi-number-CTVVElrK.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-text-CnaJn4Dj.js → chart-kpi-text-B8g11asF.js} +5 -5
- package/dist/client/chunks/{chart-kpi-text-CnaJn4Dj.js.map → chart-kpi-text-B8g11asF.js.map} +1 -1
- package/dist/client/chunks/{chart-line-B2R3wnGP.js → chart-line-DHPFzMBk.js} +6 -6
- package/dist/client/chunks/{chart-line-B2R3wnGP.js.map → chart-line-DHPFzMBk.js.map} +1 -1
- package/dist/client/chunks/{chart-markdown-DGPf7O38.js → chart-markdown-Bcf21ciA.js} +3 -3
- package/dist/client/chunks/{chart-markdown-DGPf7O38.js.map → chart-markdown-Bcf21ciA.js.map} +1 -1
- package/dist/client/chunks/{chart-measure-profile-CYli1HVY.js → chart-measure-profile-CZkMh7EU.js} +4 -4
- package/dist/client/chunks/{chart-measure-profile-CYli1HVY.js.map → chart-measure-profile-CZkMh7EU.js.map} +1 -1
- package/dist/client/chunks/{chart-pie-CsO68YHG.js → chart-pie-CFDUrh26.js} +5 -5
- package/dist/client/chunks/{chart-pie-CsO68YHG.js.map → chart-pie-CFDUrh26.js.map} +1 -1
- package/dist/client/chunks/{chart-radar-C17iNC8c.js → chart-radar-C9gpwnf2.js} +4 -4
- package/dist/client/chunks/{chart-radar-C17iNC8c.js.map → chart-radar-C9gpwnf2.js.map} +1 -1
- package/dist/client/chunks/{chart-radial-bar-ftFfZ-ob.js → chart-radial-bar-B-CXDHTD.js} +4 -4
- package/dist/client/chunks/{chart-radial-bar-ftFfZ-ob.js.map → chart-radial-bar-B-CXDHTD.js.map} +1 -1
- package/dist/client/chunks/{chart-sankey-BUSpiTBN.js → chart-sankey-B4BMcu_W.js} +2 -2
- package/dist/client/chunks/{chart-sankey-BUSpiTBN.js.map → chart-sankey-B4BMcu_W.js.map} +1 -1
- package/dist/client/chunks/{chart-scatter-Btk1kofc.js → chart-scatter-Dy3zhJ0s.js} +5 -5
- package/dist/client/chunks/{chart-scatter-Btk1kofc.js.map → chart-scatter-Dy3zhJ0s.js.map} +1 -1
- package/dist/client/chunks/{chart-sunburst-BoaobkAb.js → chart-sunburst-CNkfOURe.js} +2 -2
- package/dist/client/chunks/{chart-sunburst-BoaobkAb.js.map → chart-sunburst-CNkfOURe.js.map} +1 -1
- package/dist/client/chunks/{chart-tree-map-DL_NEnww.js → chart-tree-map-B_iEqAl4.js} +5 -5
- package/dist/client/chunks/{chart-tree-map-DL_NEnww.js.map → chart-tree-map-B_iEqAl4.js.map} +1 -1
- package/dist/client/chunks/{chart-waterfall-FXv1uwLV.js → chart-waterfall-DKoas5p0.js} +4 -4
- package/dist/client/chunks/{chart-waterfall-FXv1uwLV.js.map → chart-waterfall-DKoas5p0.js.map} +1 -1
- package/dist/client/chunks/{chartComponentRegistry-D5I9EH9T.js → chartComponentRegistry-BVeOQaSR.js} +4 -4
- package/dist/client/chunks/chartComponentRegistry-BVeOQaSR.js.map +1 -0
- package/dist/client/chunks/{chartPlugin-BHp3WRCj.js → chartPlugin-sgjKBVER.js} +12 -12
- package/dist/client/chunks/{chartPlugin-BHp3WRCj.js.map → chartPlugin-sgjKBVER.js.map} +1 -1
- package/dist/client/chunks/{chartRegistry-Bmubf4iX.js → chartRegistry-C6U441qz.js} +10 -15
- package/dist/client/chunks/chartRegistry-C6U441qz.js.map +1 -0
- package/dist/client/chunks/{charts-core-CII8LhSd.js → charts-core-DwjBd3KN.js} +2 -2
- package/dist/client/chunks/{charts-core-CII8LhSd.js.map → charts-core-DwjBd3KN.js.map} +1 -1
- package/dist/client/chunks/{charts-loader-B6kvPaGV.js → charts-loader-C5E1UrqB.js} +32 -32
- package/dist/client/chunks/{charts-loader-B6kvPaGV.js.map → charts-loader-C5E1UrqB.js.map} +1 -1
- package/dist/client/chunks/{nl-NL-D0By-h6j.js → nl-NL-puUFqQYo.js} +26 -2
- package/dist/client/chunks/{nl-NL-D0By-h6j.js.map → nl-NL-puUFqQYo.js.map} +1 -1
- package/dist/client/chunks/{providers-jeBitA9w.js → providers-CPmqs1OT.js} +4 -4
- package/dist/client/chunks/{providers-jeBitA9w.js.map → providers-CPmqs1OT.js.map} +1 -1
- package/dist/client/chunks/{schema-visualization-D8DYZY2B.js → schema-visualization-sZ-ok8Mv.js} +5 -5
- package/dist/client/chunks/{schema-visualization-D8DYZY2B.js.map → schema-visualization-sZ-ok8Mv.js.map} +1 -1
- package/dist/client/chunks/{useCubeFieldLabel-CFIn-5yX.js → useCubeFieldLabel-OShtoDli.js} +2 -2
- package/dist/client/chunks/{useCubeFieldLabel-CFIn-5yX.js.map → useCubeFieldLabel-OShtoDli.js.map} +1 -1
- package/dist/client/chunks/{useCubeMetaQuery-CoYktIQn.js → useCubeMetaQuery-D5YmxsXc.js} +2 -2
- package/dist/client/chunks/{useCubeMetaQuery-CoYktIQn.js.map → useCubeMetaQuery-D5YmxsXc.js.map} +1 -1
- package/dist/client/chunks/{useDirtyStateTracking-BRiIxFzz.js → useDirtyStateTracking-u59tjusb.js} +2 -2
- package/dist/client/chunks/{useDirtyStateTracking-BRiIxFzz.js.map → useDirtyStateTracking-u59tjusb.js.map} +1 -1
- package/dist/client/chunks/{useExplainAI-Cxzacka-.js → useExplainAI-9AtPBHak.js} +3 -3
- package/dist/client/chunks/{useExplainAI-Cxzacka-.js.map → useExplainAI-9AtPBHak.js.map} +1 -1
- package/dist/client/chunks/{useTranslation-DiobqdOI.js → useTranslation-BwieiaHa.js} +28 -4
- package/dist/client/chunks/{useTranslation-DiobqdOI.js.map → useTranslation-BwieiaHa.js.map} +1 -1
- package/dist/client/components/dashboard/dashboardGridUtils.d.ts +1 -1
- package/dist/client/components/dashboardPortletCard/PortletCardHeader.d.ts +4 -2
- package/dist/client/components/dashboardPortletCard/PortletFloatingActions.d.ts +5 -3
- package/dist/client/components/dashboardPortletCard/portletActionOrder.d.ts +17 -0
- package/dist/client/components.js +5 -5
- package/dist/client/components.js.map +1 -1
- package/dist/client/hooks/dashboard/layoutUtils.d.ts +21 -1
- package/dist/client/hooks.js +3 -3
- package/dist/client/icons.js +1 -1
- package/dist/client/index.d.ts +3 -2
- package/dist/client/index.js +222 -222
- package/dist/client/index.js.map +1 -1
- package/dist/client/providers.js +1 -1
- package/dist/client/schema.js +1 -1
- package/dist/client/shared/chartConfigBuilders.d.ts +5 -2
- package/dist/client/shared/chartDefaults.d.ts +11 -1
- package/dist/client/types.d.ts +6 -0
- package/dist/client/utils/colorPalettes.d.ts +25 -0
- package/dist/client-bundle-stats.html +1 -1
- package/dist/mcp-app/mcp-app.html +3 -3
- package/dist/server/index.cjs +2 -2
- package/dist/server/index.js +25 -6
- package/package.json +1 -1
- package/dist/adapters/ActivityGridChart.config-BSTVDQG3.js +0 -1
- package/dist/adapters/ActivityGridChart.config-D2oLDJki.cjs +0 -1
- package/dist/adapters/AreaChart.config-CaZVNqn-.cjs +0 -1
- package/dist/adapters/AreaChart.config-HUr9G5_c.js +0 -1
- package/dist/adapters/BarChart.config-BhYrmQ9W.js +0 -1
- package/dist/adapters/BarChart.config-BolWSYuN.cjs +0 -1
- package/dist/adapters/BoxPlotChart.config-DUxYeOWV.js +0 -1
- package/dist/adapters/BoxPlotChart.config-DxfUywRi.cjs +0 -1
- package/dist/adapters/BubbleChart.config-CNkdZMOF.cjs +0 -1
- package/dist/adapters/BubbleChart.config-DYtZIaKF.js +0 -1
- package/dist/adapters/CandlestickChart.config-C9ilaGM6.js +0 -1
- package/dist/adapters/CandlestickChart.config-CwOt677r.cjs +0 -1
- package/dist/adapters/DataTable.config-Br-X1vrT.js +0 -1
- package/dist/adapters/DataTable.config-BvuVZ9Jj.cjs +0 -1
- package/dist/adapters/DotStripChart.config-Beuh7di8.js +0 -1
- package/dist/adapters/DotStripChart.config-DViEbi8S.cjs +0 -1
- package/dist/adapters/FunnelChart.config-BnjD49Wp.js +0 -1
- package/dist/adapters/FunnelChart.config-DQob2fw6.cjs +0 -1
- package/dist/adapters/GaugeChart.config-4f1JNOsS.cjs +0 -1
- package/dist/adapters/GaugeChart.config-sHuMiR0R.js +0 -1
- package/dist/adapters/HeatMapChart.config-DGkFw6IU.js +0 -1
- package/dist/adapters/HeatMapChart.config-DUM2mA2Z.cjs +0 -1
- package/dist/adapters/KpiDelta.config-C3lTkG4L.js +0 -1
- package/dist/adapters/KpiDelta.config-KCvw480l.cjs +0 -1
- package/dist/adapters/KpiNumber.config-Bbt4Jk-l.cjs +0 -1
- package/dist/adapters/KpiNumber.config-DpVzsbkJ.js +0 -1
- package/dist/adapters/KpiText.config-B_wDkvrC.cjs +0 -1
- package/dist/adapters/KpiText.config-BpbC9fM8.js +0 -1
- package/dist/adapters/LineChart.config-C0JcDxH6.js +0 -1
- package/dist/adapters/LineChart.config-C2Xvxvxn.cjs +0 -1
- package/dist/adapters/MarkdownChart.config-5EolVJ3p.js +0 -1
- package/dist/adapters/MarkdownChart.config-YvMw-Ve_.cjs +0 -1
- package/dist/adapters/MeasureProfileChart.config-DYH3OLCF.cjs +0 -1
- package/dist/adapters/MeasureProfileChart.config-DxwRbnb1.js +0 -1
- package/dist/adapters/PieChart.config-DOkkTRV7.cjs +0 -1
- package/dist/adapters/PieChart.config-me-OCnBU.js +0 -1
- package/dist/adapters/ProportionBarChart.config--rJi1BjU.cjs +0 -1
- package/dist/adapters/ProportionBarChart.config-DAyp-gwk.js +0 -1
- package/dist/adapters/RadarChart.config-BA0Qep8F.cjs +0 -1
- package/dist/adapters/RadarChart.config-BMusTmHu.js +0 -1
- package/dist/adapters/RadialBarChart.config-CpN-rQQV.js +0 -1
- package/dist/adapters/RadialBarChart.config-CqKrOZ31.cjs +0 -1
- package/dist/adapters/RecordsTable.config-D1oll1Av.cjs +0 -1
- package/dist/adapters/RecordsTable.config-tQAxFn8Y.js +0 -1
- package/dist/adapters/RetentionCombinedChart.config-CfPPOzHw.js +0 -1
- package/dist/adapters/RetentionCombinedChart.config-DDX-9tjM.cjs +0 -1
- package/dist/adapters/RetentionHeatmap.config-DzmrQBgA.cjs +0 -1
- package/dist/adapters/RetentionHeatmap.config-sdYuBcId.js +0 -1
- package/dist/adapters/SankeyChart.config-BFkz9AUb.js +0 -1
- package/dist/adapters/SankeyChart.config-BKbMaV-d.cjs +0 -1
- package/dist/adapters/ScatterChart.config-D5tbnMBt.js +0 -1
- package/dist/adapters/ScatterChart.config-DlDcvEw6.cjs +0 -1
- package/dist/adapters/SunburstChart.config-Bb8nbyu6.cjs +0 -1
- package/dist/adapters/SunburstChart.config-CTRj2x0y.js +0 -1
- package/dist/adapters/TreeMapChart.config-DB99vBJS.cjs +0 -1
- package/dist/adapters/TreeMapChart.config-DviTwv0e.js +0 -1
- package/dist/adapters/WaterfallChart.config-CEOy3p3L.js +0 -1
- package/dist/adapters/WaterfallChart.config-DNBLGLpY.cjs +0 -1
- package/dist/client/chunks/DashboardEditModal-CnbCHKtu.js.map +0 -1
- package/dist/client/chunks/analysis-builder-4WfT396_.js.map +0 -1
- package/dist/client/chunks/analysis-builder-shared-DQCAOl8f.js.map +0 -1
- package/dist/client/chunks/chartComponentRegistry-D5I9EH9T.js.map +0 -1
- package/dist/client/chunks/chartRegistry-Bmubf4iX.js.map +0 -1
|
@@ -2535,7 +2535,31 @@ var We = class {
|
|
|
2535
2535
|
"dashboard.import.error.invalidConfig": "The dashboard configuration is invalid ({path}).",
|
|
2536
2536
|
"dashboard.import.error.invalidPortlet": "Portlet {index} is invalid ({path}).",
|
|
2537
2537
|
"dashboard.missingGridLayout.title": "Grid layout needs react-grid-layout",
|
|
2538
|
-
"dashboard.missingGridLayout.description": "Install it to show this dashboard as a grid, or switch the dashboard to row layout:"
|
|
2538
|
+
"dashboard.missingGridLayout.description": "Install it to show this dashboard as a grid, or switch the dashboard to row layout:",
|
|
2539
|
+
"dashboardFilter.presets.today": "Today",
|
|
2540
|
+
"dashboardFilter.presets.yesterday": "Yesterday",
|
|
2541
|
+
"dashboardFilter.presets.7d": "7D",
|
|
2542
|
+
"dashboardFilter.presets.30d": "30D",
|
|
2543
|
+
"dashboardFilter.presets.3m": "3M",
|
|
2544
|
+
"dashboardFilter.presets.6m": "6M",
|
|
2545
|
+
"dashboardFilter.presets.12m": "12M",
|
|
2546
|
+
"dashboardFilter.xtd.trigger": "XTD",
|
|
2547
|
+
"dashboardFilter.xtd.wtd": "Week to Date",
|
|
2548
|
+
"dashboardFilter.xtd.mtd": "Month to Date",
|
|
2549
|
+
"dashboardFilter.xtd.qtd": "Quarter to Date",
|
|
2550
|
+
"dashboardFilter.xtd.ytd": "Year to Date",
|
|
2551
|
+
"dashboardFilter.customTabs.fixed": "Fixed",
|
|
2552
|
+
"dashboardFilter.customTabs.since": "Since",
|
|
2553
|
+
"dashboardFilter.customTabs.last": "Last",
|
|
2554
|
+
"dashboardFilter.units.days": "Days",
|
|
2555
|
+
"dashboardFilter.units.weeks": "Weeks",
|
|
2556
|
+
"dashboardFilter.units.months": "Months",
|
|
2557
|
+
"dashboardFilter.units.quarters": "Quarters",
|
|
2558
|
+
"dashboardFilter.units.years": "Years",
|
|
2559
|
+
"analysis.breakdownComparison.vsPrior": "vs prior",
|
|
2560
|
+
"analysis.breakdownComparison.alreadyEnabled": "Another time dimension already has comparison enabled",
|
|
2561
|
+
"analysis.breakdownComparison.clickToDisable": "Click to disable comparison",
|
|
2562
|
+
"analysis.breakdownComparison.compareWithPrevious": "Compare with previous period"
|
|
2539
2563
|
}, Ke = Ge;
|
|
2540
2564
|
function qe(e) {
|
|
2541
2565
|
return Object.prototype.hasOwnProperty.call(Ge, e);
|
package/dist/adapters/utils.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./utils-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./utils-COscxYKM.cjs");exports.buildTransformedQuery=e.t,exports.calculateQueryComplexity=e.n,exports.formatCubeResponse=e.r,exports.formatErrorResponse=e.i,exports.formatMetaResponse=e.a,exports.formatSqlResponse=e.o,exports.formatSqlString=e.x,exports.generateRequestId=e.s,exports.getDatabaseType=e.c,exports.handleBatchRequest=e.l,exports.handleDiscover=e.p,exports.handleDryRun=e.u,exports.handleLoad=e.m,exports.handleSuggest=e.d,exports.handleValidate=e.f,exports.normalizeQueryFields=e.h;
|
package/dist/adapters/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as buildTransformedQuery, n as calculateQueryComplexity, r as formatCubeResponse, i as formatErrorResponse, a as formatMetaResponse, o as formatSqlResponse, x as formatSqlString, s as generateRequestId, c as getDatabaseType, l as handleBatchRequest, p as handleDiscover, u as handleDryRun, m as handleLoad, d as handleSuggest, f as handleValidate, h as normalizeQueryFields } from "./utils-
|
|
1
|
+
export { t as buildTransformedQuery, n as calculateQueryComplexity, r as formatCubeResponse, i as formatErrorResponse, a as formatMetaResponse, o as formatSqlResponse, x as formatSqlString, s as generateRequestId, c as getDatabaseType, l as handleBatchRequest, p as handleDiscover, u as handleDryRun, m as handleLoad, d as handleSuggest, f as handleValidate, h as normalizeQueryFields } from "./utils-ClqFyZ-5.js";
|
|
@@ -15,5 +15,13 @@ export declare const CLIENT_REQUEST_HEADERS: readonly ["X-DC-Locale", "X-Cache-M
|
|
|
15
15
|
* unless it is already there, compared case-insensitively.
|
|
16
16
|
*/
|
|
17
17
|
export declare function ensureAllowedHeaders(allowHeaders: string[] | string | undefined, required: readonly string[]): string[];
|
|
18
|
-
/**
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Add every client request header to a configured CORS allow list.
|
|
20
|
+
*
|
|
21
|
+
* Returns `undefined` when no list is configured (unset or empty), so the CORS
|
|
22
|
+
* library keeps its default of allowing the headers the preflight asks for.
|
|
23
|
+
* Turning a missing list into just the client headers would block
|
|
24
|
+
* `Content-Type` and `Authorization`, and with them every cross-origin JSON
|
|
25
|
+
* POST.
|
|
26
|
+
*/
|
|
27
|
+
export declare function ensureClientRequestHeaders(allowHeaders?: string[] | string): string[] | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Router, Request, Response, Express } from 'express';
|
|
2
|
-
import { CorsOptions } from 'cors';
|
|
3
2
|
import { SemanticQuery, SecurityContext, DatabaseExecutor, DrizzleDatabase, Cube, CacheConfig, RLSSetupFn } from '../../server/index.js';
|
|
4
3
|
import { AgentConfig } from '../../server/agent/types.js';
|
|
5
4
|
import { SemanticLayerCompiler } from '../../server/compiler.js';
|
|
@@ -96,6 +95,23 @@ export interface ExpressAdapterOptions {
|
|
|
96
95
|
*/
|
|
97
96
|
rlsSetup?: RLSSetupFn;
|
|
98
97
|
}
|
|
98
|
+
type CorsStaticOrigin = boolean | string | RegExp | Array<boolean | string | RegExp>;
|
|
99
|
+
type CorsCustomOrigin = (requestOrigin: string | undefined, callback: (err: Error | null, origin?: CorsStaticOrigin) => void) => void;
|
|
100
|
+
/**
|
|
101
|
+
* Options for the `cors` package, declared here so the adapter's public types
|
|
102
|
+
* don't import `cors` (an optional peer): without it (or @types/cors) they
|
|
103
|
+
* failed to resolve. Same shape as `cors`'s `CorsOptions`.
|
|
104
|
+
*/
|
|
105
|
+
export interface CorsOptions {
|
|
106
|
+
origin?: CorsStaticOrigin | CorsCustomOrigin;
|
|
107
|
+
methods?: string | string[];
|
|
108
|
+
allowedHeaders?: string | string[];
|
|
109
|
+
exposedHeaders?: string | string[];
|
|
110
|
+
credentials?: boolean;
|
|
111
|
+
maxAge?: number;
|
|
112
|
+
preflightContinue?: boolean;
|
|
113
|
+
optionsSuccessStatus?: number;
|
|
114
|
+
}
|
|
99
115
|
/**
|
|
100
116
|
* Create Express router for Cube.js-compatible API
|
|
101
117
|
*/
|
|
@@ -120,4 +136,4 @@ export declare function mountCubeRoutes(app: Express, options: ExpressAdapterOpt
|
|
|
120
136
|
* })
|
|
121
137
|
*/
|
|
122
138
|
export declare function createCubeApp(options: ExpressAdapterOptions): Express;
|
|
123
|
-
export type { SecurityContext, DatabaseExecutor, SemanticQuery, DrizzleDatabase
|
|
139
|
+
export type { SecurityContext, DatabaseExecutor, SemanticQuery, DrizzleDatabase };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ChartAxisConfig, ChartDisplayConfig } from '../types.js';
|
|
1
|
+
import { ChartAxisConfig, ChartDisplayConfig, ChartType } from '../types.js';
|
|
2
|
+
import { AxisBuilderContext } from '../shared/chartConfigBuilders.js';
|
|
2
3
|
/**
|
|
3
4
|
* Configuration for a single axis drop zone in the chart configuration UI
|
|
4
5
|
*/
|
|
@@ -192,6 +193,28 @@ export interface ChartTypeConfig {
|
|
|
192
193
|
* so a custom chart can opt in through the same flag.
|
|
193
194
|
*/
|
|
194
195
|
recordGrain?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* Builds this chart's config from the selected fields whenever the analysis
|
|
198
|
+
* builder needs a default config for it: when the user picks this chart
|
|
199
|
+
* type, when the builder switches to it, and when it fills an empty config.
|
|
200
|
+
* Omit it to use the built-in rule for the chart type, or the default rule
|
|
201
|
+
* (first breakdown on `xAxis`, every measure on `yAxis`) for a custom chart.
|
|
202
|
+
*
|
|
203
|
+
* When the user picks this chart type, the context also carries the chart
|
|
204
|
+
* they leave, so a chart that shares its drop zones with another chart can
|
|
205
|
+
* keep that chart's config.
|
|
206
|
+
*/
|
|
207
|
+
buildChartConfig?: (context: ChartConfigBuildContext) => ChartAxisConfig;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* What a chart's `buildChartConfig` receives: the selected fields and, when
|
|
211
|
+
* the user picks the chart type, the chart type and config they leave.
|
|
212
|
+
*/
|
|
213
|
+
export interface ChartConfigBuildContext extends AxisBuilderContext {
|
|
214
|
+
/** The chart type the user leaves. Set only when the user picks the chart type. */
|
|
215
|
+
previousChartType?: ChartType;
|
|
216
|
+
/** The chart config the user leaves. Set only when the user picks the chart type. */
|
|
217
|
+
previousChartConfig?: ChartAxisConfig;
|
|
195
218
|
}
|
|
196
219
|
/**
|
|
197
220
|
* Registry of all chart type configurations
|
|
@@ -14,4 +14,4 @@ export { getChartConfigAsync, getChartConfigSync, useChartConfig, isChartConfigL
|
|
|
14
14
|
export { formatChartData } from './utils/index.js';
|
|
15
15
|
export { CHART_COLORS, POSITIVE_COLOR, NEGATIVE_COLOR, CHART_MARGINS } from './utils/chartConstants.js';
|
|
16
16
|
export type { ChartType, ChartAxisConfig, ChartDisplayConfig, ChartProps, ColorPalette } from './types.js';
|
|
17
|
-
export type { ChartTypeConfig, DisplayOptionConfig, AxisDropZoneConfig } from './charts/chartConfigs.js';
|
|
17
|
+
export type { ChartTypeConfig, ChartConfigBuildContext, DisplayOptionConfig, AxisDropZoneConfig } from './charts/chartConfigs.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { DashboardConfig, DashboardGridSettings } from '../../types.js';
|
|
3
3
|
export declare const DEFAULT_GRID_SETTINGS: DashboardGridSettings;
|
|
4
|
-
export { createRowId, equalizeRowColumns, equalizeColumns, adjustRowWidths, adjustInsertIndexForRemovedRow } from '../../hooks/dashboard/layoutUtils.js';
|
|
4
|
+
export { createRowId, equalizeRowColumns, equalizeColumns, adjustRowWidths, adjustInsertIndexForRemovedRow, withoutRowLayout } from '../../hooks/dashboard/layoutUtils.js';
|
|
5
5
|
export declare const getGridSettings: (config: DashboardConfig) => DashboardGridSettings;
|
|
6
6
|
/**
|
|
7
7
|
* Finds the nearest scrollable ancestor of an element.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React, CSSProperties } from 'react';
|
|
2
|
-
import { PortletConfig } from '../../types.js';
|
|
2
|
+
import { PortletActionId, PortletConfig } from '../../types.js';
|
|
3
3
|
import { PortletDebugDataEntry } from '../../stores/dashboardStore.js';
|
|
4
4
|
import { CardIcons } from './EditActionButtons.js';
|
|
5
5
|
import { DataFreshnessIndicatorProps } from './DataFreshnessIndicator.js';
|
|
@@ -40,8 +40,10 @@ interface PortletCardHeaderProps {
|
|
|
40
40
|
onDuplicate: () => void;
|
|
41
41
|
onEdit: () => void;
|
|
42
42
|
onDelete: () => void;
|
|
43
|
-
/** Shows the Expand button
|
|
43
|
+
/** Shows the Expand button when set */
|
|
44
44
|
onExpand?: () => void;
|
|
45
|
+
/** Host order of the view-mode actions (features.portletActionOrder) */
|
|
46
|
+
actionOrder?: readonly PortletActionId[];
|
|
45
47
|
}
|
|
46
48
|
export default function PortletCardHeader(props: PortletCardHeaderProps): React.JSX.Element;
|
|
47
49
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { PortletConfig } from '../../types.js';
|
|
2
|
+
import { PortletActionId, PortletConfig } from '../../types.js';
|
|
3
3
|
import { CardIcons } from './EditActionButtons.js';
|
|
4
4
|
import { MaxAgeOptions } from '../../client/maxAge.js';
|
|
5
5
|
interface PortletFloatingActionsProps {
|
|
@@ -18,8 +18,10 @@ interface PortletFloatingActionsProps {
|
|
|
18
18
|
onDuplicate: () => void;
|
|
19
19
|
onEdit: () => void;
|
|
20
20
|
onDelete: () => void;
|
|
21
|
-
/** Shows the Expand button
|
|
21
|
+
/** Shows the Expand button when set */
|
|
22
22
|
onExpand?: () => void;
|
|
23
|
+
/** Host order of the view-mode actions (features.portletActionOrder) */
|
|
24
|
+
actionOrder?: readonly PortletActionId[];
|
|
23
25
|
}
|
|
24
|
-
export default function PortletFloatingActions({ portlet, icons, showEditActions, copyAvailable, copySuccess, xlsExportAvailable, exportInProgress, onRefresh, onCopyToClipboard, onExportXlsx, onOpenFilterConfig, onDuplicate, onEdit, onDelete, onExpand }: PortletFloatingActionsProps): React.JSX.Element;
|
|
26
|
+
export default function PortletFloatingActions({ portlet, icons, showEditActions, copyAvailable, copySuccess, xlsExportAvailable, exportInProgress, onRefresh, onCopyToClipboard, onExportXlsx, onOpenFilterConfig, onDuplicate, onEdit, onDelete, onExpand, actionOrder }: PortletFloatingActionsProps): React.JSX.Element;
|
|
25
27
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { PortletActionId } from '../../types.js';
|
|
3
|
+
/** A card action and what it renders. A hidden action renders nothing. */
|
|
4
|
+
export interface PortletActionElement {
|
|
5
|
+
id: PortletActionId;
|
|
6
|
+
element: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
/** The order of the card actions when the host sets none */
|
|
9
|
+
export declare const DEFAULT_PORTLET_ACTION_ORDER: readonly PortletActionId[];
|
|
10
|
+
/**
|
|
11
|
+
* Sorts card actions by the host order. Listed actions come first, in the
|
|
12
|
+
* listed order. The other actions follow in the default order. An action that
|
|
13
|
+
* the host lists twice keeps its first position.
|
|
14
|
+
*/
|
|
15
|
+
export declare function orderPortletActions<T extends {
|
|
16
|
+
id: PortletActionId;
|
|
17
|
+
}>(actions: readonly T[], order?: readonly PortletActionId[]): T[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DashboardGridSettings, PortletConfig, PortletGroup, RowLayout, RowLayoutColumn } from '../../types.js';
|
|
1
|
+
import { DashboardConfig, DashboardGridSettings, PortletConfig, PortletGroup, RowLayout, RowLayoutColumn } from '../../types.js';
|
|
2
2
|
export declare const createRowId: () => string;
|
|
3
3
|
/**
|
|
4
4
|
* Correct a row insertion index for a source row that the move emptied.
|
|
@@ -21,14 +21,34 @@ export declare const equalizeColumns: (columns: RowLayoutColumn[], gridSettings:
|
|
|
21
21
|
*/
|
|
22
22
|
export declare const equalizeRowColumns: (portletIds: string[], gridSettings: DashboardGridSettings) => RowLayoutColumn[];
|
|
23
23
|
export declare const adjustRowWidths: (columns: RowLayoutColumn[], gridSettings: DashboardGridSettings) => RowLayoutColumn[];
|
|
24
|
+
/**
|
|
25
|
+
* Derive rows from the portlets' grid positions: one row for each distinct `y`,
|
|
26
|
+
* ordered by `x`. Each column keeps its portlet's grid width, and
|
|
27
|
+
* `adjustRowWidths` only stretches or trims the row to fill `cols`, so a 3/9
|
|
28
|
+
* split in grid mode stays 3/9 in rows mode.
|
|
29
|
+
*/
|
|
24
30
|
export declare const convertPortletsToRows: (portlets: PortletConfig[], gridSettings: DashboardGridSettings) => RowLayout[];
|
|
25
31
|
/**
|
|
26
32
|
* Drop columns whose target no longer exists, clamp row height, re-balance
|
|
27
33
|
* widths. `groups` must be the already-normalized group list - a column
|
|
28
34
|
* referencing a group is kept only when that group survives, so run
|
|
29
35
|
* `normalizeGroups` first.
|
|
36
|
+
*
|
|
37
|
+
* A portlet that no column and no kept group places would be invisible in rows
|
|
38
|
+
* mode, for example a card added in grid mode while the config kept older
|
|
39
|
+
* `rows`. Such portlets get new last rows, derived from their grid positions.
|
|
30
40
|
*/
|
|
31
41
|
export declare const normalizeRows: (rows: RowLayout[], portlets: PortletConfig[], gridSettings: DashboardGridSettings, groups?: PortletGroup[]) => RowLayout[];
|
|
42
|
+
/**
|
|
43
|
+
* Remove the row layout (`rows` and `groups`) from a config that a grid edit
|
|
44
|
+
* changed.
|
|
45
|
+
*
|
|
46
|
+
* A grid edit writes only portlet x/y/w/h. Rows mode prefers stored `rows` to
|
|
47
|
+
* the grid positions, so stored rows would hide each card that the edit added
|
|
48
|
+
* and undo each move. Without them, rows mode derives the rows from the grid
|
|
49
|
+
* again. Grid mode cannot host groups, so the groups go too.
|
|
50
|
+
*/
|
|
51
|
+
export declare const withoutRowLayout: (config: DashboardConfig) => DashboardConfig;
|
|
32
52
|
/**
|
|
33
53
|
* Re-derive every portlet's x/y/w/h from the row layout. Group columns are
|
|
34
54
|
* subdivided via `deriveGroupGeometry`, so grouped children get real grid
|
|
@@ -57,13 +57,14 @@ export { useTheme } from './hooks/useTheme.js';
|
|
|
57
57
|
export { useScrollDetection } from './hooks/useScrollDetection.js';
|
|
58
58
|
export { useElementVisibility } from './hooks/useElementVisibility.js';
|
|
59
59
|
export { useDrillInteraction } from './hooks/useDrillInteraction.js';
|
|
60
|
-
export type { PortletConfig, ChartType, BuiltInChartType, ChartAxisConfig, ChartDisplayConfig, ChartProps, ColorPalette, CubeQuery, CubeQueryOptions, CubeApiOptions, CubeValidationIssue, ChartPagination, ColumnFormatConfig, ColumnFormatKind, RowLinkConfig, DashboardConfig, PortletGroup, PortletGroupCell, FeaturesConfig, XlsExportFeatureConfig, ThumbnailFeatureConfig, DashboardImportExportFeatureConfig, DashboardMeta, RefreshFeatureConfig, PortletRefreshConfig, DashboardRefreshConfig, PortletFreshness, PortletViewState, PortletExpandPayload, AnalyticsPortletRef, MultiQueryConfig, QueryMergeStrategy, FunnelBindingKey, FunnelBindingKeyMapping, FunnelStep, FunnelConfig, FunnelStepResult, FunnelExecutionResult, FunnelChartData, FunnelValidationError, FunnelValidationResult, UseFunnelQueryOptions, UseFunnelQueryResult, ServerFlowQuery, FlowQueryConfig, FlowChartData, FlowSliceState, SankeyNode, SankeyLink, FlowStartingStep, FlowResultRow, } from './types.js';
|
|
60
|
+
export type { PortletConfig, ChartType, BuiltInChartType, ChartAxisConfig, ChartDisplayConfig, ChartProps, ColorPalette, CubeQuery, CubeQueryOptions, CubeApiOptions, CubeValidationIssue, ChartPagination, ColumnFormatConfig, ColumnFormatKind, RowLinkConfig, DashboardConfig, PortletGroup, PortletGroupCell, FeaturesConfig, PortletActionId, XlsExportFeatureConfig, ThumbnailFeatureConfig, DashboardImportExportFeatureConfig, DashboardMeta, RefreshFeatureConfig, PortletRefreshConfig, DashboardRefreshConfig, PortletFreshness, PortletViewState, PortletExpandPayload, AnalyticsPortletRef, MultiQueryConfig, QueryMergeStrategy, FunnelBindingKey, FunnelBindingKeyMapping, FunnelStep, FunnelConfig, FunnelStepResult, FunnelExecutionResult, FunnelChartData, FunnelValidationError, FunnelValidationResult, UseFunnelQueryOptions, UseFunnelQueryResult, ServerFlowQuery, FlowQueryConfig, FlowChartData, FlowSliceState, SankeyNode, SankeyLink, FlowStartingStep, FlowResultRow, } from './types.js';
|
|
61
61
|
export { isQueryConfig, isFunnelConfig, isFlowConfig, isRetentionConfig, isMultiQuery, isSingleQuery, isValidAnalysisConfig, createDefaultQueryConfig, createDefaultFunnelConfig, createDefaultFlowConfig, createDefaultRetentionConfig, createDefaultConfig, isValidAnalysisWorkspace, createDefaultWorkspace } from './types/analysisConfig.js';
|
|
62
62
|
export type { AnalysisConfig, QueryAnalysisConfig, FunnelAnalysisConfig, FlowAnalysisConfig, RetentionAnalysisConfig, AnalysisWorkspace } from './types/analysisConfig.js';
|
|
63
63
|
export { isMultiQueryConfig, isServerFunnelQuery, isServerFlowQuery, isSankeyData } from './types.js';
|
|
64
|
-
export type { ChartTypeConfig, DisplayOptionConfig, AxisDropZoneConfig } from './charts/chartConfigs.js';
|
|
64
|
+
export type { ChartTypeConfig, ChartConfigBuildContext, DisplayOptionConfig, AxisDropZoneConfig } from './charts/chartConfigs.js';
|
|
65
65
|
export type { ChartDefinition } from './charts/chartPlugin.js';
|
|
66
66
|
export { chartPluginRegistry } from './charts/chartPlugin.js';
|
|
67
|
+
export { registerColorPalettes } from './utils/colorPalettes.js';
|
|
67
68
|
export { createDashboardLayout, formatChartData, highlightCodeBlocks } from './utils/index.js';
|
|
68
69
|
export { migrateConfig, migrateLegacyPortlet } from './utils/configMigration.js';
|
|
69
70
|
export { captureThumbnail, isThumbnailCaptureAvailable, warnIfScreenshotLibMissing } from './utils/thumbnail.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChartType, ChartAxisConfig } from '../types.js';
|
|
2
2
|
import { MetricItem, BreakdownItem } from '../components/AnalysisBuilder/types.js';
|
|
3
|
+
import { ChartConfigBuildContext } from '../charts/chartConfigs.js';
|
|
3
4
|
/**
|
|
4
5
|
* Resolved breakdown selections passed to every axis builder.
|
|
5
6
|
*/
|
|
@@ -10,9 +11,11 @@ export interface AxisBuilderContext {
|
|
|
10
11
|
dimension: BreakdownItem | undefined;
|
|
11
12
|
dimensions: BreakdownItem[];
|
|
12
13
|
}
|
|
13
|
-
type AxisBuilder = (ctx:
|
|
14
|
+
type AxisBuilder = (ctx: ChartConfigBuildContext) => ChartAxisConfig;
|
|
14
15
|
/**
|
|
15
|
-
* Resolve the axis builder for a chart type
|
|
16
|
+
* Resolve the axis builder for a chart type: the chart's own
|
|
17
|
+
* `buildChartConfig` from the registry (so a custom chart can define its
|
|
18
|
+
* defaults), then the built-in rule, then the default.
|
|
16
19
|
*/
|
|
17
20
|
export declare function getAxisBuilder(chartType: ChartType): AxisBuilder;
|
|
18
21
|
export {};
|
|
@@ -38,10 +38,20 @@ export declare function getAllChartAvailability(metrics: MetricItem[], breakdown
|
|
|
38
38
|
* 3. Never switch to a type in `hiddenChartTypes` — keep current instead
|
|
39
39
|
*/
|
|
40
40
|
export declare function selectBestChartType(metrics: MetricItem[], breakdowns: BreakdownItem[], currentChartType: ChartType, hiddenChartTypes?: readonly ChartType[]): ChartType;
|
|
41
|
+
/**
|
|
42
|
+
* The chart the user leaves when they pick another chart type.
|
|
43
|
+
*/
|
|
44
|
+
export interface PreviousChart {
|
|
45
|
+
chartType: ChartType;
|
|
46
|
+
chartConfig: ChartAxisConfig;
|
|
47
|
+
}
|
|
41
48
|
/**
|
|
42
49
|
* Get smart default chart configuration based on chart type and selections
|
|
50
|
+
*
|
|
51
|
+
* @param previousChart - The chart the user leaves, when they pick another
|
|
52
|
+
* chart type. A chart's `buildChartConfig` receives it.
|
|
43
53
|
*/
|
|
44
|
-
export declare function getSmartChartDefaults(metrics: MetricItem[], breakdowns: BreakdownItem[], currentChartType: ChartType, hiddenChartTypes?: readonly ChartType[]): SmartChartDefaults;
|
|
54
|
+
export declare function getSmartChartDefaults(metrics: MetricItem[], breakdowns: BreakdownItem[], currentChartType: ChartType, hiddenChartTypes?: readonly ChartType[], previousChart?: PreviousChart): SmartChartDefaults;
|
|
45
55
|
/**
|
|
46
56
|
* Determine if chart type should be auto-switched based on selections change
|
|
47
57
|
*
|
|
@@ -739,6 +739,11 @@ export interface RefreshFeatureConfig {
|
|
|
739
739
|
/** Floor for every refresh interval, in seconds (default: 5) */
|
|
740
740
|
minIntervalSeconds?: number;
|
|
741
741
|
}
|
|
742
|
+
/**
|
|
743
|
+
* A view-mode action of a dashboard card, in the card header or in the hover
|
|
744
|
+
* strip of a grouped card. `features.portletActionOrder` sets their order.
|
|
745
|
+
*/
|
|
746
|
+
export type PortletActionId = 'pauseRefresh' | 'refresh' | 'expand' | 'copy' | 'download';
|
|
742
747
|
export interface FeaturesConfig {
|
|
743
748
|
enableAI?: boolean;
|
|
744
749
|
aiEndpoint?: string;
|
|
@@ -760,6 +765,7 @@ export interface FeaturesConfig {
|
|
|
760
765
|
refresh?: RefreshFeatureConfig;
|
|
761
766
|
portletExpand?: boolean;
|
|
762
767
|
hiddenChartTypes?: ChartType[];
|
|
768
|
+
portletActionOrder?: PortletActionId[];
|
|
763
769
|
}
|
|
764
770
|
export interface GridLayout {
|
|
765
771
|
i: string;
|
|
@@ -9,6 +9,31 @@ export interface ColorPalette {
|
|
|
9
9
|
gradient: string[];
|
|
10
10
|
}
|
|
11
11
|
export declare const COLOR_PALETTES: ColorPalette[];
|
|
12
|
+
/**
|
|
13
|
+
* Add host color palettes to the built-in palettes.
|
|
14
|
+
*
|
|
15
|
+
* Call it one time at startup, before the first render, as `registerIcons()`.
|
|
16
|
+
* The charts and the palette pickers read the list on each render. A later
|
|
17
|
+
* call does not update a palette that a component already resolved.
|
|
18
|
+
*
|
|
19
|
+
* - A host palette with the `name` of a built-in palette replaces it. So a host
|
|
20
|
+
* palette named `default` is the palette for a missing or unknown name.
|
|
21
|
+
* - When two host palettes have the same name, the last one wins.
|
|
22
|
+
* - A new call replaces the host palettes of the earlier call.
|
|
23
|
+
* `registerColorPalettes([])` restores the built-in list.
|
|
24
|
+
*
|
|
25
|
+
* Use six-digit hex colors (`#rrggbb`) in `colors` and `gradient`. The records
|
|
26
|
+
* table adds a hex alpha suffix to a series color, and the heat map
|
|
27
|
+
* interpolates the gradient colors. A CSS variable or an `oklch()` color
|
|
28
|
+
* breaks these charts.
|
|
29
|
+
*
|
|
30
|
+
* @param palettes - The host palettes.
|
|
31
|
+
*/
|
|
32
|
+
export declare function registerColorPalettes(palettes: ColorPalette[]): void;
|
|
33
|
+
/**
|
|
34
|
+
* Get the built-in palettes and the host palettes from `registerColorPalettes()`.
|
|
35
|
+
*/
|
|
36
|
+
export declare function getColorPalettes(): ColorPalette[];
|
|
12
37
|
/**
|
|
13
38
|
* Get a color palette by name, with fallback to default
|
|
14
39
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ChartAxisConfig, ChartDisplayConfig } from '../types.js';
|
|
1
|
+
import { ChartAxisConfig, ChartDisplayConfig, ChartType } from '../types.js';
|
|
2
|
+
import { AxisBuilderContext } from '../shared/chartConfigBuilders.js';
|
|
2
3
|
/**
|
|
3
4
|
* Configuration for a single axis drop zone in the chart configuration UI
|
|
4
5
|
*/
|
|
@@ -192,6 +193,28 @@ export interface ChartTypeConfig {
|
|
|
192
193
|
* so a custom chart can opt in through the same flag.
|
|
193
194
|
*/
|
|
194
195
|
recordGrain?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* Builds this chart's config from the selected fields whenever the analysis
|
|
198
|
+
* builder needs a default config for it: when the user picks this chart
|
|
199
|
+
* type, when the builder switches to it, and when it fills an empty config.
|
|
200
|
+
* Omit it to use the built-in rule for the chart type, or the default rule
|
|
201
|
+
* (first breakdown on `xAxis`, every measure on `yAxis`) for a custom chart.
|
|
202
|
+
*
|
|
203
|
+
* When the user picks this chart type, the context also carries the chart
|
|
204
|
+
* they leave, so a chart that shares its drop zones with another chart can
|
|
205
|
+
* keep that chart's config.
|
|
206
|
+
*/
|
|
207
|
+
buildChartConfig?: (context: ChartConfigBuildContext) => ChartAxisConfig;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* What a chart's `buildChartConfig` receives: the selected fields and, when
|
|
211
|
+
* the user picks the chart type, the chart type and config they leave.
|
|
212
|
+
*/
|
|
213
|
+
export interface ChartConfigBuildContext extends AxisBuilderContext {
|
|
214
|
+
/** The chart type the user leaves. Set only when the user picks the chart type. */
|
|
215
|
+
previousChartType?: ChartType;
|
|
216
|
+
/** The chart config the user leaves. Set only when the user picks the chart type. */
|
|
217
|
+
previousChartConfig?: ChartAxisConfig;
|
|
195
218
|
}
|
|
196
219
|
/**
|
|
197
220
|
* Registry of all chart type configurations
|
package/dist/client/charts.d.ts
CHANGED
|
@@ -14,4 +14,4 @@ export { getChartConfigAsync, getChartConfigSync, useChartConfig, isChartConfigL
|
|
|
14
14
|
export { formatChartData } from './utils/index.js';
|
|
15
15
|
export { CHART_COLORS, POSITIVE_COLOR, NEGATIVE_COLOR, CHART_MARGINS } from './utils/chartConstants.js';
|
|
16
16
|
export type { ChartType, ChartAxisConfig, ChartDisplayConfig, ChartProps, ColorPalette } from './types.js';
|
|
17
|
-
export type { ChartTypeConfig, DisplayOptionConfig, AxisDropZoneConfig } from './charts/chartConfigs.js';
|
|
17
|
+
export type { ChartTypeConfig, ChartConfigBuildContext, DisplayOptionConfig, AxisDropZoneConfig } from './charts/chartConfigs.js';
|
package/dist/client/charts.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { _ as e, c as t, d as n, f as r, l as i, m as a, p as o, u as s } from "./chunks/chartComponentRegistry-
|
|
2
|
-
import { a as c, i as l, n as u, o as d, r as f, s as p, t as m } from "./chunks/charts-loader-
|
|
1
|
+
import { _ as e, c as t, d as n, f as r, l as i, m as a, p as o, u as s } from "./chunks/chartComponentRegistry-BVeOQaSR.js";
|
|
2
|
+
import { a as c, i as l, n as u, o as d, r as f, s as p, t as m } from "./chunks/charts-loader-C5E1UrqB.js";
|
|
3
3
|
import { a as h, i as g, r as _, t as v } from "./chunks/chartConstants-CeG7zZmB.js";
|
|
4
4
|
import { i as y } from "./chunks/utils-CToHkuhU.js";
|
|
5
|
-
import { t as b } from "./chunks/chart-bar-
|
|
6
|
-
import { t as x } from "./chunks/chart-line-
|
|
7
|
-
import { t as S } from "./chunks/chart-area-
|
|
8
|
-
import { t as C } from "./chunks/chart-pie-
|
|
9
|
-
import { t as w } from "./chunks/chart-scatter-
|
|
10
|
-
import { t as T } from "./chunks/chart-radar-
|
|
11
|
-
import { t as E } from "./chunks/chart-radial-bar-
|
|
12
|
-
import { t as D } from "./chunks/chart-tree-map-
|
|
13
|
-
import { t as O } from "./chunks/chart-data-table-
|
|
14
|
-
import { t as k } from "./chunks/chart-funnel-
|
|
5
|
+
import { t as b } from "./chunks/chart-bar-J-O7Fdzo.js";
|
|
6
|
+
import { t as x } from "./chunks/chart-line-DHPFzMBk.js";
|
|
7
|
+
import { t as S } from "./chunks/chart-area-uKNDmXki.js";
|
|
8
|
+
import { t as C } from "./chunks/chart-pie-CFDUrh26.js";
|
|
9
|
+
import { t as w } from "./chunks/chart-scatter-Dy3zhJ0s.js";
|
|
10
|
+
import { t as T } from "./chunks/chart-radar-C9gpwnf2.js";
|
|
11
|
+
import { t as E } from "./chunks/chart-radial-bar-B-CXDHTD.js";
|
|
12
|
+
import { t as D } from "./chunks/chart-tree-map-B_iEqAl4.js";
|
|
13
|
+
import { t as O } from "./chunks/chart-data-table-CDMTU9F4.js";
|
|
14
|
+
import { t as k } from "./chunks/chart-funnel-C18WiJ9P.js";
|
|
15
15
|
export { v as CHART_COLORS, _ as CHART_MARGINS, O as DataTable, k as FunnelChart, m as LazyChart, g as NEGATIVE_COLOR, h as POSITIVE_COLOR, S as RechartsAreaChart, b as RechartsBarChart, x as RechartsLineChart, C as RechartsPieChart, T as RechartsRadarChart, E as RechartsRadialBarChart, w as RechartsScatterChart, D as RechartsTreeMapChart, t as clearChartConfigCache, y as formatChartData, u as getAvailableChartTypes, i as getChartConfigAsync, s as getChartConfigSync, f as getUnavailableChartTypes, n as isChartConfigLoaded, l as isChartTypeAvailable, c as isValidChartType, r as loadAllChartConfigs, d as preloadChart, o as preloadChartConfig, a as preloadChartConfigs, p as preloadCharts, e as useChartConfig };
|
|
@@ -2,7 +2,7 @@ import { i as e } from "./chartUtils-BDj8NT4c.js";
|
|
|
2
2
|
import { n as t, r as n } from "./chartConstants-CeG7zZmB.js";
|
|
3
3
|
import { t as r } from "./quantize-CaQkhIo6.js";
|
|
4
4
|
import { o as i, s as a, t as o } from "./BubbleChart.helpers-CaDSYRlF.js";
|
|
5
|
-
import { t as s } from "./chart-activity-grid-
|
|
5
|
+
import { t as s } from "./chart-activity-grid-Tma6prYa.js";
|
|
6
6
|
//#region node_modules/d3-array/src/min.js
|
|
7
7
|
function c(e, t) {
|
|
8
8
|
let n;
|
|
@@ -294,4 +294,4 @@ function F(e) {
|
|
|
294
294
|
//#endregion
|
|
295
295
|
export { S as a, s as default, b as i, w as n, x as r, F as t };
|
|
296
296
|
|
|
297
|
-
//# sourceMappingURL=ActivityGridChart-
|
|
297
|
+
//# sourceMappingURL=ActivityGridChart-t6JS9q1q.js.map
|