drizzle-cube 0.13.0 → 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/{cors-headers-g45-9YKF.cjs → cors-headers-D0ofhz3k.cjs} +1 -1
- package/dist/adapters/{cors-headers-1y1YYuKm.js → cors-headers-DPNvO_6o.js} +4 -1
- 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 +42 -29
- package/dist/adapters/fastify/index.cjs +1 -1
- package/dist/adapters/fastify/index.js +6 -6
- package/dist/adapters/{handler-C3oYSaVM.cjs → handler-CRAPq8xB.cjs} +1 -1
- package/dist/adapters/{handler-C9ZFhsv6.js → handler-Dqe0_Uvx.js} +29 -34
- package/dist/adapters/hono/index.cjs +1 -1
- package/dist/adapters/hono/index.js +6 -6
- package/dist/adapters/mcp-app-html.cjs +1 -1
- package/dist/adapters/mcp-app-html.js +1 -1
- package/dist/adapters/nextjs/index.cjs +1 -1
- package/dist/adapters/nextjs/index.js +8 -3
- package/dist/cjs/adapters/cors-headers.d.ts +10 -2
- package/dist/cjs/adapters/express/index.d.ts +18 -2
- package/dist/client/charts.js +12 -12
- package/dist/client/chunks/{ActivityGridChart-BpA0H20k.js → ActivityGridChart-CmboSrmc.js} +2 -2
- package/dist/client/chunks/{ActivityGridChart-BpA0H20k.js.map → ActivityGridChart-CmboSrmc.js.map} +1 -1
- package/dist/client/chunks/{BubbleChart-Va-bRr3Y.js → BubbleChart-DiloeKCW.js} +2 -2
- package/dist/client/chunks/{BubbleChart-Va-bRr3Y.js.map → BubbleChart-DiloeKCW.js.map} +1 -1
- package/dist/client/chunks/{ChartStates-DV1Jtonz.js → ChartStates-oCfgZumF.js} +2 -2
- package/dist/client/chunks/{ChartStates-DV1Jtonz.js.map → ChartStates-oCfgZumF.js.map} +1 -1
- package/dist/client/chunks/{ChartSummaryHeader-DSmXm_lT.js → ChartSummaryHeader-nx-4H-in.js} +2 -2
- package/dist/client/chunks/{ChartSummaryHeader-DSmXm_lT.js.map → ChartSummaryHeader-nx-4H-in.js.map} +1 -1
- package/dist/client/chunks/{DashboardEditModal-CnbCHKtu.js → DashboardEditModal-6N8H3lXW.js} +7 -7
- package/dist/client/chunks/{DashboardEditModal-CnbCHKtu.js.map → DashboardEditModal-6N8H3lXW.js.map} +1 -1
- package/dist/client/chunks/{DataHistogram-zBz4Opmm.js → DataHistogram-DbQbA-Pi.js} +2 -2
- package/dist/client/chunks/{DataHistogram-zBz4Opmm.js.map → DataHistogram-DbQbA-Pi.js.map} +1 -1
- package/dist/client/chunks/{DotStripChart-D6o5DpPf.js → DotStripChart-HcSCkYDs.js} +4 -4
- package/dist/client/chunks/{DotStripChart-D6o5DpPf.js.map → DotStripChart-HcSCkYDs.js.map} +1 -1
- package/dist/client/chunks/{FunnelViews-DwvKEzU7.js → FunnelViews-SjgYxngb.js} +2 -2
- package/dist/client/chunks/{FunnelViews-DwvKEzU7.js.map → FunnelViews-SjgYxngb.js.map} +1 -1
- package/dist/client/chunks/{HeatMapChart-DqOZawm3.js → HeatMapChart-B9pj-KQi.js} +3 -3
- package/dist/client/chunks/{HeatMapChart-DqOZawm3.js.map → HeatMapChart-B9pj-KQi.js.map} +1 -1
- package/dist/client/chunks/{KpiDelta-CUqF9vVH.js → KpiDelta-1BfMFygT.js} +2 -2
- package/dist/client/chunks/{KpiDelta-CUqF9vVH.js.map → KpiDelta-1BfMFygT.js.map} +1 -1
- package/dist/client/chunks/{KpiText-Dply9kb4.js → KpiText-DzPeryRS.js} +2 -2
- package/dist/client/chunks/{KpiText-Dply9kb4.js.map → KpiText-DzPeryRS.js.map} +1 -1
- package/dist/client/chunks/{MarkdownChart-BlL5h7nK.js → MarkdownChart-_aif5Ye3.js} +3 -3
- package/dist/client/chunks/{MarkdownChart-BlL5h7nK.js.map → MarkdownChart-_aif5Ye3.js.map} +1 -1
- package/dist/client/chunks/{PortletAnalysisModal-CDw3uit7.js → PortletAnalysisModal-C0MLoJTP.js} +5 -5
- package/dist/client/chunks/{PortletAnalysisModal-CDw3uit7.js.map → PortletAnalysisModal-C0MLoJTP.js.map} +1 -1
- package/dist/client/chunks/{ProportionBarChart-CK0FlfTr.js → ProportionBarChart-B9Rgyhbc.js} +4 -4
- package/dist/client/chunks/{ProportionBarChart-CK0FlfTr.js.map → ProportionBarChart-B9Rgyhbc.js.map} +1 -1
- package/dist/client/chunks/{RecordsTable-DURm8ypj.js → RecordsTable-DRovI83Z.js} +4 -4
- package/dist/client/chunks/{RecordsTable-DURm8ypj.js.map → RecordsTable-DRovI83Z.js.map} +1 -1
- package/dist/client/chunks/{RetentionCombinedChart-90MBVuS7.js → RetentionCombinedChart-D_vAvtIb.js} +3 -3
- package/dist/client/chunks/{RetentionCombinedChart-90MBVuS7.js.map → RetentionCombinedChart-D_vAvtIb.js.map} +1 -1
- package/dist/client/chunks/{RetentionHeatmap-ChwWtk6j.js → RetentionHeatmap-CVEmxbg9.js} +2 -2
- package/dist/client/chunks/{RetentionHeatmap-ChwWtk6j.js.map → RetentionHeatmap-CVEmxbg9.js.map} +1 -1
- package/dist/client/chunks/{SchemaVisualization-RWq1-GVI.js → SchemaVisualization-DE8WBbNZ.js} +1 -1
- package/dist/client/chunks/{TextPortletModal-Fvuzf3mT.js → TextPortletModal-Bg5hFfZg.js} +3 -3
- package/dist/client/chunks/{TextPortletModal-Fvuzf3mT.js.map → TextPortletModal-Bg5hFfZg.js.map} +1 -1
- package/dist/client/chunks/{analysis-builder-4WfT396_.js → analysis-builder-BMoycXCE.js} +10 -10
- package/dist/client/chunks/{analysis-builder-4WfT396_.js.map → analysis-builder-BMoycXCE.js.map} +1 -1
- package/dist/client/chunks/{analysis-builder-shared-DQCAOl8f.js → analysis-builder-shared-D1KnOXT2.js} +8 -8
- package/dist/client/chunks/{analysis-builder-shared-DQCAOl8f.js.map → analysis-builder-shared-D1KnOXT2.js.map} +1 -1
- package/dist/client/chunks/{chart-activity-grid-C0V6erx3.js → chart-activity-grid-CiqEnzs_.js} +4 -4
- package/dist/client/chunks/{chart-activity-grid-C0V6erx3.js.map → chart-activity-grid-CiqEnzs_.js.map} +1 -1
- package/dist/client/chunks/{chart-area-D93yaXt_.js → chart-area-BgKyGty4.js} +6 -6
- package/dist/client/chunks/{chart-area-D93yaXt_.js.map → chart-area-BgKyGty4.js.map} +1 -1
- package/dist/client/chunks/{chart-bar-Cm5gacSp.js → chart-bar-BKTQ6zyq.js} +5 -5
- package/dist/client/chunks/{chart-bar-Cm5gacSp.js.map → chart-bar-BKTQ6zyq.js.map} +1 -1
- package/dist/client/chunks/{chart-box-plot-XWfiRDvb.js → chart-box-plot-FD8d8S_Y.js} +2 -2
- package/dist/client/chunks/{chart-box-plot-XWfiRDvb.js.map → chart-box-plot-FD8d8S_Y.js.map} +1 -1
- package/dist/client/chunks/{chart-bubble-B5eN2Ass.js → chart-bubble-BbmLUynL.js} +4 -4
- package/dist/client/chunks/{chart-bubble-B5eN2Ass.js.map → chart-bubble-BbmLUynL.js.map} +1 -1
- package/dist/client/chunks/{chart-candlestick-DkjqHZaS.js → chart-candlestick-DeDZSkhF.js} +2 -2
- package/dist/client/chunks/{chart-candlestick-DkjqHZaS.js.map → chart-candlestick-DeDZSkhF.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-DLwFKymv.js} +3 -3
- package/dist/client/chunks/{chart-data-table-LvjMZByO.js.map → chart-data-table-DLwFKymv.js.map} +1 -1
- package/dist/client/chunks/{chart-funnel-B_YO8r5g.js → chart-funnel-BirEW77o.js} +3 -3
- package/dist/client/chunks/{chart-funnel-B_YO8r5g.js.map → chart-funnel-BirEW77o.js.map} +1 -1
- package/dist/client/chunks/{chart-gauge-BbcdeJ5v.js → chart-gauge-C4yS5138.js} +4 -4
- package/dist/client/chunks/{chart-gauge-BbcdeJ5v.js.map → chart-gauge-C4yS5138.js.map} +1 -1
- package/dist/client/chunks/{chart-heat-map-C35lzmXC.js → chart-heat-map-DvGcfud9.js} +4 -4
- package/dist/client/chunks/{chart-heat-map-C35lzmXC.js.map → chart-heat-map-DvGcfud9.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-delta-DB4S3nWz.js → chart-kpi-delta-BeReVMyn.js} +4 -4
- package/dist/client/chunks/{chart-kpi-delta-DB4S3nWz.js.map → chart-kpi-delta-BeReVMyn.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-number-D_NrcF-S.js → chart-kpi-number-CuYpI5LO.js} +4 -4
- package/dist/client/chunks/{chart-kpi-number-D_NrcF-S.js.map → chart-kpi-number-CuYpI5LO.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-text-CnaJn4Dj.js → chart-kpi-text-D3dha9Dn.js} +5 -5
- package/dist/client/chunks/{chart-kpi-text-CnaJn4Dj.js.map → chart-kpi-text-D3dha9Dn.js.map} +1 -1
- package/dist/client/chunks/{chart-line-B2R3wnGP.js → chart-line-EzYdBDdL.js} +6 -6
- package/dist/client/chunks/{chart-line-B2R3wnGP.js.map → chart-line-EzYdBDdL.js.map} +1 -1
- package/dist/client/chunks/{chart-markdown-DGPf7O38.js → chart-markdown-B1AZcI8Y.js} +3 -3
- package/dist/client/chunks/{chart-markdown-DGPf7O38.js.map → chart-markdown-B1AZcI8Y.js.map} +1 -1
- package/dist/client/chunks/{chart-measure-profile-CYli1HVY.js → chart-measure-profile-DaL9c2jy.js} +4 -4
- package/dist/client/chunks/{chart-measure-profile-CYli1HVY.js.map → chart-measure-profile-DaL9c2jy.js.map} +1 -1
- package/dist/client/chunks/{chart-pie-CsO68YHG.js → chart-pie-Dw3W8Qjg.js} +5 -5
- package/dist/client/chunks/{chart-pie-CsO68YHG.js.map → chart-pie-Dw3W8Qjg.js.map} +1 -1
- package/dist/client/chunks/{chart-radar-C17iNC8c.js → chart-radar-BhySlY7t.js} +4 -4
- package/dist/client/chunks/{chart-radar-C17iNC8c.js.map → chart-radar-BhySlY7t.js.map} +1 -1
- package/dist/client/chunks/{chart-radial-bar-ftFfZ-ob.js → chart-radial-bar-DXc37T3I.js} +4 -4
- package/dist/client/chunks/{chart-radial-bar-ftFfZ-ob.js.map → chart-radial-bar-DXc37T3I.js.map} +1 -1
- package/dist/client/chunks/{chart-sankey-BUSpiTBN.js → chart-sankey-Xi0rQvx-.js} +2 -2
- package/dist/client/chunks/{chart-sankey-BUSpiTBN.js.map → chart-sankey-Xi0rQvx-.js.map} +1 -1
- package/dist/client/chunks/{chart-scatter-Btk1kofc.js → chart-scatter-D7mMgM6E.js} +5 -5
- package/dist/client/chunks/{chart-scatter-Btk1kofc.js.map → chart-scatter-D7mMgM6E.js.map} +1 -1
- package/dist/client/chunks/{chart-sunburst-BoaobkAb.js → chart-sunburst-t3Qb3HI7.js} +2 -2
- package/dist/client/chunks/{chart-sunburst-BoaobkAb.js.map → chart-sunburst-t3Qb3HI7.js.map} +1 -1
- package/dist/client/chunks/{chart-tree-map-DL_NEnww.js → chart-tree-map-C0EZEE0y.js} +5 -5
- package/dist/client/chunks/{chart-tree-map-DL_NEnww.js.map → chart-tree-map-C0EZEE0y.js.map} +1 -1
- package/dist/client/chunks/{chart-waterfall-FXv1uwLV.js → chart-waterfall-C4rt-_iE.js} +4 -4
- package/dist/client/chunks/{chart-waterfall-FXv1uwLV.js.map → chart-waterfall-C4rt-_iE.js.map} +1 -1
- package/dist/client/chunks/{chartComponentRegistry-D5I9EH9T.js → chartComponentRegistry-lrQVhpz2.js} +4 -4
- package/dist/client/chunks/{chartComponentRegistry-D5I9EH9T.js.map → chartComponentRegistry-lrQVhpz2.js.map} +1 -1
- package/dist/client/chunks/{chartPlugin-BHp3WRCj.js → chartPlugin-QJVPr2DC.js} +12 -12
- package/dist/client/chunks/{chartPlugin-BHp3WRCj.js.map → chartPlugin-QJVPr2DC.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-USDYqnlX.js} +2 -2
- package/dist/client/chunks/{charts-core-CII8LhSd.js.map → charts-core-USDYqnlX.js.map} +1 -1
- package/dist/client/chunks/{charts-loader-B6kvPaGV.js → charts-loader-i4Fe3mAw.js} +32 -32
- package/dist/client/chunks/{charts-loader-B6kvPaGV.js.map → charts-loader-i4Fe3mAw.js.map} +1 -1
- package/dist/client/chunks/{providers-jeBitA9w.js → providers-Bn1iccjx.js} +4 -4
- package/dist/client/chunks/{providers-jeBitA9w.js.map → providers-Bn1iccjx.js.map} +1 -1
- package/dist/client/chunks/{schema-visualization-D8DYZY2B.js → schema-visualization-D5HMwXPe.js} +5 -5
- package/dist/client/chunks/{schema-visualization-D8DYZY2B.js.map → schema-visualization-D5HMwXPe.js.map} +1 -1
- package/dist/client/chunks/{useCubeFieldLabel-CFIn-5yX.js → useCubeFieldLabel-CYdABa_m.js} +2 -2
- package/dist/client/chunks/{useCubeFieldLabel-CFIn-5yX.js.map → useCubeFieldLabel-CYdABa_m.js.map} +1 -1
- package/dist/client/chunks/{useCubeMetaQuery-CoYktIQn.js → useCubeMetaQuery-BQRQjE8r.js} +2 -2
- package/dist/client/chunks/{useCubeMetaQuery-CoYktIQn.js.map → useCubeMetaQuery-BQRQjE8r.js.map} +1 -1
- package/dist/client/chunks/{useDirtyStateTracking-BRiIxFzz.js → useDirtyStateTracking-DvlGcFpU.js} +2 -2
- package/dist/client/chunks/{useDirtyStateTracking-BRiIxFzz.js.map → useDirtyStateTracking-DvlGcFpU.js.map} +1 -1
- package/dist/client/chunks/{useExplainAI-Cxzacka-.js → useExplainAI-DGXJ0Rcg.js} +3 -3
- package/dist/client/chunks/{useExplainAI-Cxzacka-.js.map → useExplainAI-DGXJ0Rcg.js.map} +1 -1
- package/dist/client/chunks/{useTranslation-DiobqdOI.js → useTranslation-F7BGje95.js} +2 -2
- package/dist/client/chunks/{useTranslation-DiobqdOI.js.map → useTranslation-F7BGje95.js.map} +1 -1
- package/dist/client/components.js +4 -4
- package/dist/client/hooks.js +3 -3
- package/dist/client/icons.js +1 -1
- package/dist/client/index.js +11 -11
- package/dist/client/providers.js +1 -1
- package/dist/client/schema.js +1 -1
- package/dist/client-bundle-stats.html +1 -1
- package/dist/mcp-app/mcp-app.html +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +0 -5
- 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/chartRegistry-Bmubf4iX.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as e, yt as t } from "../utils-DrbnoHoa.js";
|
|
2
|
-
import { n, t as r } from "../cors-headers-
|
|
2
|
+
import { n, t as r } from "../cors-headers-DPNvO_6o.js";
|
|
3
3
|
import { C as i, _ as a, h as o, l as s, s as c, x as l } from "../mcp-transport-DpJDF0M_.js";
|
|
4
4
|
import { r as u, t as d } from "../core-D1FtXGPM.js";
|
|
5
5
|
//#region src/adapters/fastify/index.ts
|
|
@@ -24,11 +24,11 @@ var m = function(t, m, h) {
|
|
|
24
24
|
let { cubes: g, drizzle: _, schema: v, extractSecurityContext: y, engineType: b, cors: x, basePath: S = "/cubejs-api/v1", bodyLimit: C = 10485760, cache: w, mcp: T = { enabled: !0 }, agent: E } = m;
|
|
25
25
|
if (!m.semanticLayer && (!g || g.length === 0)) return h(/* @__PURE__ */ Error("At least one cube must be provided in the cubes array, or pass a pre-configured semanticLayer"));
|
|
26
26
|
if (x) {
|
|
27
|
-
let e = {
|
|
27
|
+
let e = r(x.allowedHeaders), n = e ? {
|
|
28
28
|
...x,
|
|
29
|
-
allowedHeaders:
|
|
30
|
-
};
|
|
31
|
-
t.register(import("@fastify/cors"),
|
|
29
|
+
allowedHeaders: e
|
|
30
|
+
} : x;
|
|
31
|
+
t.register(import("@fastify/cors"), n);
|
|
32
32
|
}
|
|
33
33
|
t.addHook("onRequest", async (e, t) => {
|
|
34
34
|
e.method === "POST" && (e.body = void 0);
|
|
@@ -76,7 +76,7 @@ var m = function(t, m, h) {
|
|
|
76
76
|
} }
|
|
77
77
|
}, async (e, t) => {
|
|
78
78
|
try {
|
|
79
|
-
let { handleAgentChat: n } = await import("../handler-
|
|
79
|
+
let { handleAgentChat: n } = await import("../handler-Dqe0_Uvx.js"), { message: r, sessionId: i, history: a } = e.body;
|
|
80
80
|
if (!r || typeof r != "string") return t.status(400).send({ error: "message is required and must be a string" });
|
|
81
81
|
let o = (E.apiKey || "").trim();
|
|
82
82
|
if (E.allowClientApiKey) {
|
|
@@ -3,7 +3,7 @@ const e=require("./utils-0Afl53Xc.cjs"),t=require("./mcp-transport-DnnABB3F.cjs"
|
|
|
3
3
|
`)}function l(e){return e.messages.map(e=>e.content.text).join(`
|
|
4
4
|
|
|
5
5
|
`)}function u(t){return[`# Drizzle Cube Analytics Agent`,``,`You are an analytics agent that helps users explore and visualize data.`,`You have access to a semantic layer with cubes (data models) that you can query.`,``,`## Your Workflow`,``,`For EACH insight, follow this cycle — do NOT batch all queries first:`,``,"1. **Discover** available cubes using `discover_cubes` (once at the start)",`2. **For each analysis point**, repeat this cycle:`," a. `execute_query` — get the data"," b. `add_markdown` — explain the results and insight"," c. `add_portlet` — visualize the results",``,`Call all three (query → markdown → portlet) in a single turn before moving on to the next analysis.`,`Do NOT run multiple queries first and add charts later — the user sees results in real-time.`,``,`## Important Guidelines`,``,`- ALWAYS discover cubes first before attempting queries`,"- Field names MUST be EXACTLY `CubeName.fieldName` — two parts separated by a single dot. Examples: `PullRequests.count`, `Teams.name`, `Employees.department`."," WRONG patterns that WILL FAIL: `Teams.Teams.name` (double-prefixed), `PullRequests.PullRequests.count` (double-prefixed), `PullRequests` (bare cube), `Teams_count` (underscore). Use the EXACT field names from discover results — copy them verbatim, do not prefix them again.",`- Order keys MUST be one of the measures or dimensions already listed in that query. You CANNOT order by a field that is not in measures or dimensions — add it to measures first, or remove it from order.`,"- After EVERY `execute_query`, IMMEDIATELY call `add_markdown` and `add_portlet` in the SAME turn — never defer visualizations to a later turn",`- Choose the chart type from the Chart Selection Guide below — match the chart to the question being asked, and vary chart types across the notebook`,`- If a query fails, explain the error and try an alternative approach`,``,`## Output Format Rules`,``,`### CRITICAL: Always think before acting`,`- EVERY single turn MUST begin with a text message (1-2 sentences) BEFORE any tool calls. This is your #1 rule — never violate it.`,`- This applies to EVERY turn, including turns where you are adding visualizations or explanations to the notebook.`,`- Even when adding multiple charts in sequence, each turn must start with a brief status like "Now I'll chart the productivity breakdown." or "Next, let me show the department comparison."`,`- Example good turn: "Let me see what data is available." → discover_cubes`,`- Example good turn: "I'll add a chart showing the top employees." → add_markdown → add_portlet`,`- Example bad turn: (no text) → add_portlet ← NEVER do this`,``,`### Text vs Notebook`,"- ALL analysis, findings, methodology, and insights MUST go through `add_markdown` tool calls — never in your text responses",`- Your text responses must be 1-2 short sentences (under 50 words) summarizing what you are about to do next — status updates only`,`- Never use markdown formatting (headers, bullets, bold, code blocks) in text responses — plain sentences only`,`- Write text responses as a friendly analyst would — use plain business language the user understands`,`- NEVER mention internal terms like "cube", "query syntax", "field names", "measures", "dimensions", "portlet", "prefix format", or tool names in text responses`,`- Instead of "Let me correct the query syntax and retry" → "Let me fix that and try again"`,`- Instead of "I'll query the PullRequests cube" → "I'll look at the pull request data"`,`- Instead of "Adding a portlet with the results" → "Here's a chart of the results"`,``,`### Notebook content rules`,"- Before each `add_portlet`, ALWAYS call `add_markdown` first to explain WHY you are adding this visualization and what it shows","- Before calling `add_portlet`, verify the query is valid: all fields in `order` must also appear in `measures` or `dimensions`",'- Never put data tables in markdown blocks — use `add_portlet` with chartType "table" instead',"- If a chart you already added is wrong, or the user asks to change one, call `update_portlet` with its id — do NOT add a second chart of the same data","- Think out loud in the notebook: use `add_markdown` to share your reasoning at each step so users can follow along",`- NEVER use emojis in text responses or markdown content — no 📊, 📈, ✅, 🔍, etc. Write in plain, professional language.`,``,`### Analysis Depth and Layout`,``,`- A good notebook answers the question and then earns its keep: aim for 4-6 distinct insights unless the user asked something narrow.`,`- Vary the angle, not just the chart: overall level → breakdown by a dimension → trend over time → outliers or concentration → a caveat about the data.`,`- Actively look for the surprising thing: the biggest mover, the outlier, the category carrying most of the total, the segment moving against the trend. Say so in the markdown, plainly.`,`- Never add a chart that restates the previous chart with a different chart type.`,`- Structure the notebook like a short report: a scene-setting markdown block, then alternating markdown/chart pairs, then a closing block with the takeaways and what you could NOT determine from the available data.`,`- If a result is boring — flat, evenly distributed, or too few rows to mean anything — say that in the markdown and move to a different angle rather than charting it.`,``,`## Chart Selection Guide`,``,`Pick the chart that answers the question, not the one that is easiest. Consider how many rows came back, whether the values are categorical or temporal, and whether the user is comparing, trending, or summarising. Do NOT default to the first option in this table.`,``,"`execute_query` returns a `dataShape` summary alongside the rows — use it. `distinctCount` on the dimension you are charting is the single most useful signal: 2-7 favours a part-of-whole treatment, 8-25 a ranking, and above that take a top-N with `order` + `limit` or show a table instead. Widely different `min`/`max` across measures means you need `yAxisAssignment`.",``,"Only the first rows are returned to you. When `truncated` is true the chart is still correct — the portlet re-runs the query itself — but do NOT state totals, counts or extremes you cannot see; use `rowCount` and `dataShape`, or run a narrower query.",``,`| Question the user is asking | Chart |`,`|---|---|`,"| Compare discrete categories or rankings | `bar` |","| Trend over time (one or few series) | `line` |","| Trend over time showing volume/magnitude | `area` |","| Part-of-whole breakdown | `pie` (2-7 slices) or `proportionBar` (one stacked bar, easier to read) |","| Contributions summing to a total, with signed ups and downs | `waterfall` (deltas only, never raw totals) |","| Long tail or nested breakdown, many categories | `treemap` |","| Categories as compact circular progress | `radialBar` |","| Correlation between two measures | `scatter` |","| Correlation with size/colour third dimension | `bubble` |","| Intensity across two categorical dimensions | `heatmap` (set `valueField`) |","| Activity per day across weeks or months | `activityGrid` (needs a `day`-granularity time dimension; set `dateField` and `valueField`) |","| Multi-variable comparison across categories | `radar` |","| Distribution/spread, summarised | `boxPlot` |","| Distribution/spread, every individual value | `dotStrip` |","| A shape across ordered measures (e.g. -2m, at event, +2h) | `measureProfile` (2+ measures on a comparable scale) |","| Detailed row-level data or many columns | `table` (aggregates) or `recordsTable` (one row per record) |","| Progress toward a known target or limit | `gauge` (ALWAYS set `maxValue`, or it scales to the data and reads as 100%) |","| Open/high/low/close price or range data | `candlestick` (put the measures in `yAxis` in OHLC order) |","| Narrative, caveats, methodology | `markdown` |","| Single headline number — ONLY when user explicitly asks for a KPI card or single number | `kpiNumber` |","| Headline metric with period-over-period change — ONLY when user asks about change in a single metric | `kpiDelta` |","| Headline number inside a sentence — same restraint as kpiNumber | `kpiText` |",``,`Analysis-mode-specific chart types (require the corresponding analysis mode):`,``,`| Analysis Mode | Chart Type | Description |`,`|---|---|---|`,"| Funnel | `funnel` | Sequential step conversion bars with conversion rates |","| Flow | `sankey` | Flow diagram showing paths between states/steps |","| Flow | `sunburst` | Radial rings showing forward paths from a starting event |","| Retention | `retentionHeatmap` | Cohort × period retention matrix |","| Retention | `retentionCombined` | Retention with line chart, heatmap, or combined modes |",``,"**Vary the chart types across a notebook.** A notebook of nothing but bars and tables is a failure even when every chart is individually valid. `kpiNumber`/`kpiDelta`/`kpiText` are a last resort — use them only when the user explicitly asks for a single headline number, never for a multi-row result.",``,'`recordsTable` lists one row per record, so its query MUST set `"ungrouped": true` — which also means one cube plus its to-one joins, since an ungrouped query cannot span a hasMany relationship.',``,`## Chart Axis Configuration Rules`,``,"**Bar charts need an xAxis dimension.** A bar chart over a measures-only query has no category axis to label its bars; if you send one it is converted to a `table` (or `kpiNumber` for a single measure) and you are told so. To get a real bar chart, put the category in the query's `dimensions` and use a single measure. To compare several measures as an ordered shape, use `measureProfile`.",``,"**Never duplicate xAxis in series.** Putting the same dimension in both `xAxis` and `series` creates a sparse, broken-looking chart. The `series` field is ONLY for splitting bars into grouped/stacked sub-series by a SECOND dimension.",``,`Correct bar chart examples:`,'- Categories only: `xAxis: ["Cube.category"], yAxis: ["Cube.count"]` — no series needed','- Grouped bars: `xAxis: ["Cube.category"], yAxis: ["Cube.count"], series: ["Cube.status"]` — series is a DIFFERENT dimension','- Multiple measures: `xAxis: ["Cube.category"], yAxis: ["Cube.count", "Cube.total"]` — each measure becomes a bar group',``,`Wrong:`,'- `xAxis: [], yAxis: ["Cube.avg1", "Cube.avg2"]` — missing xAxis, bars have no labels','- `xAxis: ["Cube.size"], series: ["Cube.size"]` — same field in both, creates sparse chart',``,"**Dual Y-axis for multi-measure charts.** When a `bar`, `line`, or `area` chart has 2+ measures with different scales (e.g. revenue in thousands vs conversion rate as a percentage), use `chartConfig.yAxisAssignment` to put them on separate axes:","```json",`{`,` "xAxis": ["Sales.month"],`,` "yAxis": ["Sales.revenue", "Sales.conversionRate"],`,` "yAxisAssignment": { "Sales.revenue": "left", "Sales.conversionRate": "right" }`,`}`,"```",`Only use dual axis when measures have genuinely different scales. If both measures share the same unit/scale, keep them on the same (left) axis — omit yAxisAssignment entirely.`,``,`## Analysis Mode Decision Tree`,``,`The default mode is **query** (standard measures/dimensions). Switch to a special mode only when the user's question matches:`,``,`- **Funnel mode** — "What is the conversion rate from step A → B → C?"`," - Requires: an event-stream cube with `capabilities.funnel = true` from `discover_cubes`"," - Execute: `execute_query` with `funnel` param:",' `{ bindingKey: "Events.userId", timeDimension: "Events.timestamp", steps: [{ name: "Signup", filter: { member: "Events.eventName", operator: "equals", values: ["signup"] }}, { name: "Purchase", filter: { member: "Events.eventName", operator: "equals", values: ["purchase"] }}] }`',' - Visualize: `add_portlet` with `chartType: "funnel"` and `query` as JSON string containing `{ "funnel": { ... } }`',``,`- **Flow mode** — "What paths do users take after signup?"`," - Requires: `capabilities.flow = true` from `discover_cubes`"," - Execute: `execute_query` with `flow` param:",' `{ bindingKey: "Events.userId", timeDimension: "Events.timestamp", eventDimension: "Events.eventName", startingStep: { name: "Signup", filter: { member: "Events.eventName", operator: "equals", values: ["signup"] }}, stepsBefore: 0, stepsAfter: 3 }`',' - Visualize: `add_portlet` with `chartType: "sankey"` (or `"sunburst"`) and `query` as JSON string containing `{ "flow": { ... } }`',``,`- **Retention mode** — "What % of users come back after 7 days?"`," - Requires: `capabilities.retention = true` from `discover_cubes`"," - Execute: `execute_query` with `retention` param:",' `{ timeDimension: "Events.timestamp", bindingKey: "Events.userId", dateRange: { start: "2024-01-01", end: "2024-03-31" }, granularity: "week", periods: 8, retentionType: "classic" }`',' - Visualize: `add_portlet` with `chartType: "retentionCombined"` (or `"retentionHeatmap"`) and `query` as JSON string containing `{ "retention": { ... } }`',``,"Before using funnel/flow/retention, check the `capabilities` object returned by `discover_cubes`. If the required capability is `false`, explain to the user that the data model does not support that analysis mode.",``,`Event-stream cubes are marked in the Available Cubes section below with **Event Stream: Yes** and list their binding key and time dimension.`,``,`---`,``,r,``,`---`,``,l(e._),``,`---`,``,l(e.g),``,`---`,``,`## Save as Dashboard`,``,"ONLY call `save_as_dashboard` when the user EXPLICITLY asks to save, export, or convert the notebook into a dashboard. NEVER save a dashboard on your own initiative — wait for the user to request it.",``,`### Layout Rules`,`- Dashboard grid is 12 columns wide`,`- KPI cards: w=3, h=3 — place at the top in a row of 4`,`- Overview charts (bar, line, area): w=6, h=4`,`- Wide charts (heatmap, table, recordsTable): w=12, h=5`,`- Section headers (markdown): w=12, h=1`,``,`### Section Headers`,'Use `chartType: "markdown"` portlets as section headers to organize the dashboard:',"```json",`{`,` "id": "header-overview",`,` "title": "Overview",`,` "chartType": "markdown",`,` "displayConfig": {`,` "content": "## Overview",`,` "hideHeader": true,`,` "transparentBackground": true,`,` "autoHeight": true`,` },`,` "w": 12, "h": 1, "x": 0, "y": 0`,`}`,"```",``,`### Dashboard Filters`,"- ALWAYS include a universal date filter with `isUniversalTime: true`",'- A universal date filter only reaches portlets through their `timeDimensions`. For KPI or breakdown portlets without a time dimension, map it as `{ filterId, member: "<Cube.timeField>" }` so it filters that field instead of leaving the portlet unfiltered',`- Add dimension filters for key fields used across portlets (e.g., department, status, region)`,`- Use human-readable labels (e.g., "Department" not "Employees.departmentName")`,"- Map filters to portlets using `dashboardFilterMapping` — list the filter IDs that apply","- To apply a filter to a different field for one portlet, use `{ filterId, member }` instead of a plain ID (e.g. remap a Customer filter to `Invoices.customerId`); the target field must be join-reachable from the portlet query",`- When promoting a hardcoded filter to a dashboard filter, REMOVE that filter from the portlet query`,``,`### Analysis Types`,'- Standard query portlets: `analysisType: "query"` (default)','- Funnel portlets: `analysisType: "funnel"`, query contains `{ "funnel": {...} }`, chartType `"funnel"`','- Flow portlets: `analysisType: "flow"`, query contains `{ "flow": {...} }`, chartType `"sankey"` or `"sunburst"`','- Retention portlets: `analysisType: "retention"`, query contains `{ "retention": {...} }`, chartType `"retentionHeatmap"` or `"retentionCombined"`',``,`### CRITICAL: Only use portlets from the notebook`,"- ONLY include portlets that you already added to the notebook via `add_portlet` during this conversation",`- Do NOT invent new queries or charts that were not part of the analysis — the dashboard is a direct conversion of the notebook`,`- Reuse the exact same queries, chart types, and chart configs from the notebook portlets`,`- Arrange the existing portlets in a sensible layout (KPIs at top, charts in middle, tables at bottom)`,`- You may add section header markdown portlets to organize the layout, but do not add new data portlets`,``,`---`,``,c(t)].join(`
|
|
6
|
-
`)}var d={clickableElements:{bar:!0},dropZones:[{key:`xAxis`,label:`chart.dropZone.xAxis.label`,description:`chart.dropZone.xAxis.description`,mandatory:!1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.bar.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.dropZone.yAxis.label`,description:`chart.configText.measures_for_bar_heights`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.bar.dropZone.yAxis.empty`,enableDualAxis:!0},{key:`series`,label:`chart.dropZone.series.label`,description:`chart.dropZone.series.description`,mandatory:!1,acceptTypes:[`dimension`],emptyText:`chart.bar.dropZone.series.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`showAllXLabels`,`hideHeader`],displayOptionsConfig:[n.u(`chart.configText.how_to_stack_multiple_bar_series`),n.d,n.n,n.i,n.s]},f={clickableElements:{point:!0},dropZones:[{key:`xAxis`,label:`chart.configText.x_axis_time_categories`,description:`chart.configText.time_dimensions_or_dimensions_for_x_axis`,mandatory:!0,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.line.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.dropZone.yAxis.label`,description:`chart.configText.measures_for_line_values`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.line.dropZone.yAxis.empty`,enableDualAxis:!0},{key:`series`,label:`chart.configText.series_multiple_lines`,description:`chart.configText.dimensions_to_create_separate_lines`,mandatory:!1,acceptTypes:[`dimension`],emptyText:`chart.line.dropZone.series.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`showAllXLabels`,`hideHeader`],displayOptionsConfig:[n.l,n.c(),n.t,n.n,n.d,{key:`priorPeriodStyle`,label:`chart.option.priorPeriodStyle.label`,type:`select`,defaultValue:`dashed`,options:[{value:`dashed`,label:`chart.option.priorPeriodStyle.dashed`},{value:`dotted`,label:`chart.option.priorPeriodStyle.dotted`},{value:`solid`,label:`chart.option.priorPeriodStyle.solid`}],description:`chart.option.priorPeriodStyle.description`},{key:`priorPeriodOpacity`,label:`chart.option.priorPeriodOpacity.label`,type:`number`,defaultValue:.5,min:.1,max:1,step:.1,description:`chart.option.priorPeriodOpacity.description`},n.i,n.s]},p={dropZones:[{key:`xAxis`,label:`chart.configText.x_axis_time_categories`,description:`chart.configText.time_dimensions_or_dimensions_for_x_axis`,mandatory:!0,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.area.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.dropZone.yAxis.label`,description:`chart.configText.measures_for_area_values`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.area.dropZone.yAxis.empty`,enableDualAxis:!0},{key:`series`,label:`chart.configText.series_stack_areas`,description:`chart.configText.dimensions_to_create_stacked_areas`,mandatory:!1,acceptTypes:[`dimension`],emptyText:`chart.area.dropZone.series.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`showAllXLabels`,`hideHeader`],displayOptionsConfig:[n.l,n.c(!1),n.u(`chart.configText.how_to_stack_multiple_area_series`),n.t,n.n,n.d,n.i,n.s]},m={clickableElements:{slice:!0},dropZones:[{key:`xAxis`,label:`chart.configText.categories`,description:`chart.configText.dimension_for_pie_slices`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.pie.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.values`,description:`chart.configText.measure_for_slice_sizes`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.pie.dropZone.yAxis.empty`}],displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`innerRadius`,label:`chart.option.innerRadius.label`,type:`select`,description:`chart.configText.hollow_center_size_0_percent_solid_pie_higher_donut_style`,defaultValue:`0%`,options:[{value:`0%`,label:`chart.configText.none_pie`},{value:`20%`,label:`chart.configText.20_percent`},{value:`40%`,label:`chart.configText.40_percent`},{value:`60%`,label:`chart.configText.60_percent`},{value:`80%`,label:`chart.configText.80_percent`}]},n.f()]},h={dropZones:[{key:`xAxis`,label:`chart.runtime.axisFormat.xAxis`,description:`chart.configText.measure_or_dimension_for_x_position`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`chart.scatter.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.y_axis`,description:`chart.configText.measure_for_y_position`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.scatter.dropZone.yAxis.empty`},{key:`series`,label:`chart.configText.series_color_groups`,description:`chart.configText.dimension_to_color_points_by_category`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.scatter.dropZone.series.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`xAxisFormat`,label:`chart.option.xAxisFormat.label`,type:`axisFormat`,description:`chart.option.xAxisFormat.description`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.option.yAxisFormat.description`}]},g={dropZones:[{key:`xAxis`,label:`chart.runtime.axisFormat.xAxis`,description:`chart.configText.horizontal_axis_position`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`chart.bubble.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.y_axis`,description:`chart.configText.vertical_axis_position`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.bubble.dropZone.yAxis.empty`},{key:`sizeField`,label:`chart.configText.bubble_radius`,description:`chart.configText.size_of_bubbles_based_on_this_measure`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.bubble.dropZone.sizeField.empty`},{key:`series`,label:`chart.configText.bubble_labels`,description:`chart.configText.field_to_use_for_bubble_labels_and_identification`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.bubble.dropZone.series.empty`},{key:`colorField`,label:`chart.configText.bubble_colour`,description:`chart.configText.color_bubbles_by_this_field_optional`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`,`measure`],emptyText:`chart.bubble.dropZone.colorField.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`minBubbleSize`,`maxBubbleSize`,`bubbleOpacity`,`hideHeader`],displayOptionsConfig:[{key:`xAxisFormat`,label:`chart.option.xAxisFormat.label`,type:`axisFormat`,description:`chart.option.xAxisFormat.description`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_y_axis_and_values`}]},_={dropZones:[{key:`xAxis`,label:`chart.configText.axes_categories`,description:`chart.configText.dimensions_for_radar_axes`,mandatory:!0,acceptTypes:[`dimension`],emptyText:`chart.radar.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.values`,description:`chart.configText.measures_for_radar_values`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.radar.dropZone.yAxis.empty`},{key:`series`,label:`chart.configText.series_multiple_shapes`,description:`chart.configText.dimensions_to_create_multiple_radar_shapes`,mandatory:!1,acceptTypes:[`dimension`],emptyText:`chart.radar.dropZone.series.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`hideHeader`],displayOptionsConfig:[n.f()]},v={dropZones:[{key:`xAxis`,label:`chart.configText.categories`,description:`chart.configText.dimensions_for_radial_segments`,mandatory:!0,acceptTypes:[`dimension`],emptyText:`chart.radialBar.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.values`,description:`chart.configText.measures_for_radial_bar_lengths`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.radialBar.dropZone.yAxis.empty`}],displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],displayOptionsConfig:[n.f()]},y={dropZones:[{key:`xAxis`,label:`chart.configText.categories`,description:`chart.configText.dimensions_for_treemap_rectangles`,mandatory:!0,acceptTypes:[`dimension`],emptyText:`chart.treemap.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.size`,description:`chart.configText.measure_for_rectangle_sizes`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.treemap.dropZone.yAxis.empty`},{key:`series`,label:`chart.configText.color_groups`,description:`chart.configText.dimension_to_color_rectangles_by_category`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.treemap.dropZone.series.empty`}],displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],displayOptionsConfig:[n.f(`chart.configText.number_formatting_for_size_values`)],clickableElements:{cell:!0}},b={dropZones:[{key:`xAxis`,label:`chart.configText.columns`,description:`chart.configText.all_fields_to_display_as_columns`,mandatory:!1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`chart.table.dropZone.xAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`leftYAxisFormat`,label:`chart.option.valueFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_numeric_values`}]},x={dropZones:[{key:`columns`,label:`chart.recordsTable.dropZone.columns.label`,description:`chart.recordsTable.dropZone.columns.description`,mandatory:!1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`chart.recordsTable.dropZone.columns.empty`},{key:`hiddenColumns`,label:`chart.recordsTable.dropZone.hiddenColumns.label`,description:`chart.recordsTable.dropZone.hiddenColumns.description`,mandatory:!1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`chart.recordsTable.dropZone.hiddenColumns.empty`,excludeFromInference:!0}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`columnFormats`,label:`chart.recordsTable.option.columnFormats.label`,type:`columnFormats`,description:`chart.recordsTable.option.columnFormats.description`,progressBands:!0},{key:`rowLink`,label:`chart.recordsTable.option.rowLink.label`,type:`rowLink`,description:`chart.recordsTable.option.rowLink.description`},{key:`pageSize`,label:`chart.recordsTable.option.pageSize.label`,type:`select`,defaultValue:25,description:`chart.recordsTable.option.pageSize.description`,options:[{value:25,label:`chart.recordsTable.option.pageSize.option.25`},{value:50,label:`chart.recordsTable.option.pageSize.option.50`},{value:100,label:`chart.recordsTable.option.pageSize.option.100`}]}],clickableElements:{row:!0},recordGrain:!0},S={dropZones:[{key:`dateField`,label:`chart.configText.time_dimension`,description:`chart.configText.time_field_that_determines_grid_structure_granularity_affects_layout`,mandatory:!0,maxItems:1,acceptTypes:[`timeDimension`],emptyText:`chart.activityGrid.dropZone.dateField.empty`},{key:`valueField`,label:`chart.configText.activity_measure`,description:`chart.configText.measure_used_for_activity_intensity_color_coding`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.activityGrid.dropZone.valueField.empty`}],displayOptions:[`showLabels`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`fitToWidth`,label:`chart.option.fitToWidth.label`,type:`boolean`,defaultValue:!1,description:`chart.option.fitToWidth.description`}],validate:e=>{let{dateField:t,valueField:n}=e;return!t||Array.isArray(t)&&t.length===0?{isValid:!1,message:`chart.activityGrid.validation.timeDimensionRequired`}:!n||Array.isArray(n)&&n.length===0?{isValid:!1,message:`chart.activityGrid.validation.measureRequired`}:{isValid:!0}},clickableElements:{cell:!0}},C={dropZones:[{key:`yAxis`,label:`chart.configText.value`,description:`chart.configText.measure_to_display_as_kpi_number`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.kpiNumber.dropZone.yAxis.empty`}],displayOptionsConfig:[n.r,{key:`target`,label:`chart.runtime.tooltip.targetValue`,type:`string`,placeholder:`e.g., 100`,description:`chart.configText.target_value_to_compare_against_first_value_used_if_multiple_provided`},{key:`prefix`,label:`chart.option.prefix.label`,type:`string`,placeholder:`e.g., $, €, #`,description:`chart.option.prefix.description`},{key:`suffix`,label:`chart.option.suffix.label`,type:`string`,placeholder:`e.g., %, units, items`,description:`chart.option.suffix.description`},{key:`decimals`,label:`chart.option.decimals.label`,type:`number`,defaultValue:0,min:0,max:10,step:1,description:`chart.option.decimals.description`},{key:`valueColorIndex`,label:`chart.configText.value_color`,type:`paletteColor`,defaultValue:0,description:`chart.configText.color_from_the_dashboard_palette_for_the_kpi_value_text`},{key:`useLastCompletePeriod`,label:`chart.option.useLastCompletePeriod.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.exclude_current_incomplete_period_from_aggregation_e_g_partial_week_mont`},{key:`skipLastPeriod`,label:`chart.option.skipLastPeriod.label`,type:`boolean`,defaultValue:!1,description:`chart.option.skipLastPeriod.description`}],displayOptions:[`hideHeader`]},w={dropZones:[{key:`yAxis`,label:`chart.configText.value`,description:`chart.configText.measure_to_track_changes_for`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.kpiDelta.dropZone.yAxis.empty`},{key:`xAxis`,label:`chart.configText.dimension_optional`,description:`chart.configText.dimension_for_ordering_data_typically_time`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.kpiDelta.dropZone.xAxis.empty`}],displayOptionsConfig:[n.r,{key:`showBaseline`,label:`chart.option.showBaseline.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showBaseline.description`},{key:`prefix`,label:`chart.option.prefix.label`,type:`string`,placeholder:`e.g., $, €, #`,description:`chart.option.prefix.description`},{key:`suffix`,label:`chart.option.suffix.label`,type:`string`,placeholder:`e.g., %, units, items`,description:`chart.option.suffix.description`},{key:`decimals`,label:`chart.option.decimals.label`,type:`number`,defaultValue:1,min:0,max:10,step:1,description:`chart.option.decimals.description`},{key:`positiveColorIndex`,label:`chart.configText.positive_change_color`,type:`paletteColor`,defaultValue:2,description:`chart.configText.color_for_positive_changes_increases`},{key:`negativeColorIndex`,label:`chart.configText.negative_change_color`,type:`paletteColor`,defaultValue:3,description:`chart.configText.color_for_negative_changes_decreases`},{key:`showHistogram`,label:`chart.option.showHistogram.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showHistogram.description`},{key:`useLastCompletePeriod`,label:`chart.option.useLastCompletePeriod.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.exclude_current_incomplete_period_from_delta_calculation_e_g_partial_wee`},{key:`skipLastPeriod`,label:`chart.option.skipLastPeriod.label`,type:`boolean`,defaultValue:!1,description:`chart.option.skipLastPeriod.description`}],displayOptions:[`hideHeader`],validate:e=>!e.yAxis||Array.isArray(e.yAxis)&&e.yAxis.length===0?{isValid:!1,message:`chart.kpiDelta.validation.measureRequired`}:{isValid:!0}},T={dropZones:[{key:`yAxis`,label:`chart.configText.value`,description:`chart.configText.measure_to_display_in_the_kpi_text_template`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.kpiText.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`template`,label:`chart.configText.text_template`,type:`string`,placeholder:"e.g., Total Revenue: ${value}",description:`chart.configText.template_for_displaying_the_text_use_value_to_insert_the_measure_value`},{key:`decimals`,label:`chart.option.decimals.label`,type:`number`,defaultValue:0,min:0,max:10,step:1,description:`chart.configText.number_of_decimal_places_to_display_for_numeric_values`},{key:`valueColorIndex`,label:`chart.configText.value_color`,type:`paletteColor`,defaultValue:0,description:`chart.configText.color_from_the_dashboard_palette_for_the_kpi_value_text`}],displayOptions:[`hideHeader`]},E={skipQuery:!0,dropZones:[],displayOptionsConfig:[{key:`content`,label:`chart.configText.markdown_content`,type:`string`,placement:`chart`,rows:18,syntax:`markdownTemplate`,placeholder:`chart.markdown.contentPlaceholder`,description:`chart.markdown.contentDescription`,docsUrl:`https://knap.md/variables`,docsLabel:`chart.markdown.contentDocsLabel`},{key:`accentColorIndex`,label:`chart.configText.accent_color`,type:`paletteColor`,defaultValue:0,description:`chart.configText.color_from_the_dashboard_palette_for_headers_bullets_and_links`},{key:`fontSize`,label:`chart.option.fontSize.label`,type:`select`,defaultValue:`medium`,options:[{value:`small`,label:`chart.option.fontSize.small`},{value:`medium`,label:`chart.option.fontSize.medium`},{value:`large`,label:`chart.option.fontSize.large`}],description:`chart.configText.overall_text_size_for_the_markdown_content`},{key:`alignment`,label:`chart.option.alignment.label`,type:`select`,defaultValue:`left`,options:[{value:`left`,label:`chart.option.accentBorder.left`},{value:`center`,label:`chart.option.alignment.center`},{value:`right`,label:`chart.option.alignment.right`}],description:`chart.configText.horizontal_alignment_of_the_markdown_content`},{key:`hideHeader`,label:`chart.option.hideHeader.label`,type:`boolean`,defaultValue:!0,description:`chart.option.hideHeader.description`},{key:`transparentBackground`,label:`chart.option.transparentBackground.label`,type:`boolean`,defaultValue:!1,description:`chart.option.transparentBackground.description`},{key:`autoHeight`,label:`chart.option.autoHeight.label`,type:`boolean`,defaultValue:!0,description:`chart.option.autoHeight.description`},{key:`accentBorder`,label:`chart.option.accentBorder.label`,type:`select`,defaultValue:`none`,options:[{value:`none`,label:`chart.option.accentBorder.none`},{value:`left`,label:`chart.option.accentBorder.left`},{value:`top`,label:`chart.option.accentBorder.top`},{value:`bottom`,label:`chart.option.accentBorder.bottom`}],description:`chart.configText.add_an_accent_colored_border_on_one_side_of_the_content`}]},D={dropZones:[{key:`xAxis`,label:`chart.configText.step_name`,description:`chart.configText.step_names_auto_populated_from_funnel_steps`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.funnel.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.step_count`,description:`chart.configText.count_at_each_step_auto_calculated`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.funnel.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`funnelStyle`,label:`chart.option.funnelStyle.label`,type:`buttonGroup`,defaultValue:`bars`,options:[{value:`bars`,label:`chart.option.funnelStyle.bars`},{value:`funnel`,label:`chart.option.funnelStyle.funnel`}],description:`chart.configText.visualization_style`},{key:`funnelOrientation`,label:`chart.option.funnelOrientation.label`,type:`buttonGroup`,defaultValue:`horizontal`,options:[{value:`horizontal`,label:`chart.option.funnelOrientation.horizontal`},{value:`vertical`,label:`chart.option.funnelOrientation.vertical`}]},{key:`hideSummaryFooter`,label:`chart.option.hideSummaryFooter.label`,type:`boolean`,defaultValue:!1,description:`chart.option.hideSummaryFooter.description`},{key:`showFunnelConversion`,label:`chart.option.showConversion.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showConversion.description`},{key:`showFunnelAvgTime`,label:`chart.option.showAvgTime.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showAvgTime.description`},{key:`showFunnelMedianTime`,label:`chart.option.showMedianTime.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showMedianTime.description`},{key:`showFunnelP90Time`,label:`chart.option.showP90Time.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showP90Time.description`}]},O={dropZones:[{key:`xAxis`,label:`chart.configText.event_type`,description:`chart.configText.event_dimension_that_categorizes_flow_nodes`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.sankey.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.flow_count`,description:`chart.configText.count_of_entities_following_each_path`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.sankey.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`linkOpacity`,label:`chart.option.linkOpacity.label`,type:`buttonGroup`,defaultValue:`0.5`,options:[{value:`0.3`,label:`chart.option.linkOpacity.light`},{value:`0.5`,label:`chart.option.fontSize.medium`},{value:`0.7`,label:`chart.option.linkOpacity.dark`}],description:`chart.configText.opacity_of_flow_links`},{key:`showNodeLabels`,label:`chart.option.showNodeLabels.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showNodeLabels.description`},{key:`hideSummaryFooter`,label:`chart.option.hideSummaryFooter.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.hide_the_statistics_footer_below_the_chart`}]},ee={dropZones:[{key:`xAxis`,label:`chart.configText.event_type`,description:`chart.configText.event_dimension_that_categorizes_flow_nodes`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.sunburst.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.flow_count`,description:`chart.configText.count_of_entities_following_each_path`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.sunburst.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`innerRadius`,label:`chart.option.innerRadius.label`,type:`number`,defaultValue:40,min:0,max:100,step:10,description:`chart.configText.size_of_the_center_hole_0_for_full_circle`},{key:`hideSummaryFooter`,label:`chart.option.hideSummaryFooter.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.hide_the_statistics_footer_below_the_chart`}]},te={dropZones:[{key:`xAxis`,label:`chart.configText.columns_x_axis`,description:`chart.configText.dimension_for_column_categories`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.heatmap.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.rows_y_axis`,description:`chart.configText.dimension_for_row_categories`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.heatmap.dropZone.yAxis.empty`},{key:`valueField`,label:`chart.configText.value_color_intensity`,description:`chart.configText.measure_that_determines_cell_color`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.heatmap.dropZone.valueField.empty`}],displayOptions:[`showLegend`,`showTooltip`],displayOptionsConfig:[{key:`showLabels`,label:`chart.option.showLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showLabels.description`},{key:`cellShape`,label:`chart.option.cellShape.label`,type:`select`,defaultValue:`rect`,options:[{value:`rect`,label:`chart.option.cellShape.rectangle`},{value:`circle`,label:`chart.option.cellShape.circle`}]},{key:`xAxisFormat`,label:`chart.option.xAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_x_axis_labels`},{key:`yAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_y_axis_labels`},{key:`valueFormat`,label:`chart.option.valueFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_cell_values_and_legend`}],validate:e=>e.xAxis?.length?e.yAxis?.length?e.valueField?.length?{isValid:!0}:{isValid:!1,message:`chart.heatmap.validation.valueRequired`}:{isValid:!1,message:`chart.heatmap.validation.yAxisRequired`}:{isValid:!1,message:`chart.heatmap.validation.xAxisRequired`}},ne={dropZones:[],displayOptionsConfig:[{key:`showLegend`,label:`chart.option.showLegend.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.show_the_color_intensity_legend`},{key:`showTooltip`,label:`chart.option.showTooltip.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showTooltip.description`}]},k={dropZones:[],displayOptionsConfig:[{key:`retentionDisplayMode`,label:`chart.option.retentionDisplayMode.label`,type:`select`,defaultValue:`line`,options:[{value:`line`,label:`chart.option.retentionDisplayMode.lineChart`},{value:`heatmap`,label:`chart.option.retentionDisplayMode.heatmapTable`},{value:`combined`,label:`chart.option.retentionDisplayMode.combined`}],description:`chart.configText.choose_how_to_visualize_retention_data`},{key:`showLegend`,label:`chart.option.showLegend.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.show_the_legend_for_breakdown_segments`},{key:`showGrid`,label:`chart.option.showGrid.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showGrid.description`},{key:`showTooltip`,label:`chart.option.showTooltip.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showTooltip.description`}]},A={displayOptions:[`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.configText.x_axis_groups`,description:`chart.configText.dimension_to_group_boxes_by_e_g_symbol_platform`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.boxPlot.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.y_axis_measures`,description:`chart.configText.drop_1_measure_for_auto_mode_3_for_avg_stddev_median_mode_or_5_for_min_q`,mandatory:!0,maxItems:5,acceptTypes:[`measure`],emptyText:`chart.boxPlot.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_value_axis`}]},j={displayOptions:[`showGrid`,`showTooltip`,`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.dotStrip.dropZone.xAxis.label`,description:`chart.dotStrip.dropZone.xAxis.description`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.dotStrip.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.dotStrip.dropZone.yAxis.label`,description:`chart.dotStrip.dropZone.yAxis.description`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.dotStrip.dropZone.yAxis.empty`},{key:`series`,label:`chart.dotStrip.dropZone.series.label`,description:`chart.dotStrip.dropZone.series.description`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.dotStrip.dropZone.series.empty`}],clickableElements:{point:!0},displayOptionsConfig:[{key:`showMedianMarker`,label:`chart.option.showMedianMarker.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showMedianMarker.description`},{key:`showBandStats`,label:`chart.option.showBandStats.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showBandStats.description`},{key:`showExtremeLabels`,label:`chart.option.showExtremeLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showExtremeLabels.description`},{key:`dotSize`,label:`chart.option.dotSize.label`,type:`select`,defaultValue:`medium`,options:[{value:`small`,label:`chart.option.dotSize.small`},{value:`medium`,label:`chart.option.dotSize.medium`},{value:`large`,label:`chart.option.dotSize.large`}],description:`chart.option.dotSize.description`},{key:`bandSort`,label:`chart.option.bandSort.label`,type:`select`,defaultValue:`none`,options:[{value:`none`,label:`chart.option.bandSort.none`},{value:`valueDesc`,label:`chart.option.bandSort.valueDesc`},{value:`valueAsc`,label:`chart.option.bandSort.valueAsc`},{value:`count`,label:`chart.option.bandSort.count`}],description:`chart.option.bandSort.description`},{key:`xAxisFormat`,label:`chart.option.xAxisFormat.label`,type:`axisFormat`,description:`chart.option.xAxisFormat.description`}]},M={clickableElements:{bar:!0},displayOptions:[`showTooltip`,`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.dropZone.xAxis.label`,description:`chart.configText.dimension_labels_for_each_bar_segment_e_g_symbol_transaction_type`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.waterfall.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.y_axis_value`,description:`chart.configText.single_measure_whose_values_are_summed_cumulatively`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.waterfall.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`showTotal`,label:`chart.option.showTotal.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showTotal.description`},{key:`showConnectorLine`,label:`chart.option.showConnectorLine.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showConnectorLine.description`},{key:`showDataLabels`,label:`chart.option.showDataLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.configText.display_the_value_above_each_bar_segment`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_y_axis`}]},N={clickableElements:{bar:!0},displayOptions:[`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.configText.x_axis_time_category`,description:`chart.configText.time_dimension_or_category_for_each_candle_e_g_date_symbol`,mandatory:!0,maxItems:1,acceptTypes:[`timeDimension`,`dimension`],emptyText:`chart.candlestick.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.ohlc_measures_open_close_high_low`,description:`chart.configText.drop_2_4_measures_in_order_open_close_high_low_ohlc_mode_for_range_mode_`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.candlestick.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`rangeMode`,label:`chart.option.rangeMode.label`,type:`select`,defaultValue:`ohlc`,options:[{value:`ohlc`,label:`chart.option.rangeMode.ohlc`},{value:`range`,label:`chart.option.rangeMode.range`}],description:`chart.option.rangeMode.description`},{key:`bullColor`,label:`chart.option.bullColor.label`,type:`color`,defaultValue:`#22c55e`,description:`chart.option.bullColor.description`},{key:`bearColor`,label:`chart.option.bearColor.label`,type:`color`,defaultValue:`#ef4444`,description:`chart.option.bearColor.description`},{key:`showWicks`,label:`chart.option.showWicks.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showWicks.description`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_price_axis`}]},P={displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],dropZones:[{key:`yAxis`,label:`chart.configText.measures_x_axis_order`,description:`chart.configText.add_2_or_more_measures_they_become_the_x_axis_categories_in_the_order_li`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.measureProfile.dropZone.yAxis.empty`},{key:`series`,label:`chart.configText.series_split_into_multiple_lines`,description:`chart.configText.dimension_to_split_data_into_separate_profile_lines_e_g_symbol_platform`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.measureProfile.dropZone.series.empty`}],displayOptionsConfig:[{key:`showReferenceLineAtZero`,label:`chart.option.showReferenceLineAtZero.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showReferenceLineAtZero.description`},{key:`showDataLabels`,label:`chart.option.showDataLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.configText.display_value_at_each_data_point`},{key:`showLegend`,label:`chart.option.showLegend.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.show_series_legend_only_visible_with_a_series_dimension`},{key:`lineType`,label:`chart.option.lineType.label`,type:`select`,defaultValue:`monotone`,options:[{value:`monotone`,label:`chart.option.lineType.smooth`},{value:`linear`,label:`chart.option.lineType.linear`},{value:`step`,label:`chart.option.lineType.step`}],description:`chart.option.lineType.description`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_y_axis`}]},F={dropZones:[{key:`xAxis`,label:`chart.configText.category`,description:`chart.configText.dimension_to_split_the_bar_into_segments`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.proportionBar.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.value`,description:`chart.configText.measure_that_determines_each_segments_share`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.proportionBar.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`showLabels`,label:`chart.option.proportionBarLabels.label`,type:`boolean`,defaultValue:!0,description:`chart.option.proportionBarLabels.description`},{key:`showPercentages`,label:`chart.option.showPercentages.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showPercentages.description`},{key:`sortSegments`,label:`chart.option.sortSegments.label`,type:`boolean`,defaultValue:!1,description:`chart.option.sortSegments.description`},{key:`decimals`,label:`chart.option.decimals.label`,type:`number`,defaultValue:0,min:0,max:2,description:`chart.option.proportionBarDecimals.description`}],validate:e=>!e?.xAxis||Array.isArray(e.xAxis)&&e.xAxis.length===0?{isValid:!1,message:`chart.proportionBar.validation.dimensionRequired`}:!e?.yAxis||Array.isArray(e.yAxis)&&e.yAxis.length===0?{isValid:!1,message:`chart.proportionBar.validation.measureRequired`}:{isValid:!0}},I={clickableElements:{},displayOptions:[`hideHeader`],dropZones:[{key:`yAxis`,label:`chart.configText.value_measure`,description:`chart.configText.current_value_to_display_on_the_gauge_e_g_current_equity_margin_used`,mandatory:!0,maxItems:2,acceptTypes:[`measure`],emptyText:`chart.gauge.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`minValue`,label:`chart.option.minValue.label`,type:`number`,defaultValue:0,description:`chart.option.minValue.description`},{key:`maxValue`,label:`chart.option.maxValue.label`,type:`number`,description:`chart.option.maxValue.description`},{key:`thresholds`,label:`chart.configText.threshold_bands`,type:`thresholdBands`,description:`chart.gauge.thresholds.description`},{key:`showCenterLabel`,label:`chart.option.showCentreLabel.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showCentreLabel.description`},{key:`showPercentage`,label:`chart.option.showPercentage.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showPercentage.description`},{key:`leftYAxisFormat`,label:`chart.option.valueFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_displayed_value_and_axis_labels`}]},L={packageName:`recharts`,installCommand:`npm install recharts`},R={bar:{label:`chart.bar.label`,icon:`chartBar`,description:`chart.bar.description`,useCase:`chart.bar.useCase`,isAvailable:n.o,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./BarChart.config-BolWSYuN.cjs"))).barChartConfig},line:{label:`chart.line.label`,icon:`chartLine`,description:`chart.line.description`,useCase:`chart.line.useCase`,isAvailable:n.o,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./LineChart.config-C2Xvxvxn.cjs"))).lineChartConfig},area:{label:`chart.area.label`,icon:`chartArea`,description:`chart.area.description`,useCase:`chart.area.useCase`,isAvailable:n.o,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./AreaChart.config-CaZVNqn-.cjs"))).areaChartConfig},pie:{label:`chart.pie.label`,icon:`chartPie`,description:`chart.pie.description`,useCase:`chart.pie.useCase`,isAvailable:n.o,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./PieChart.config-DOkkTRV7.cjs"))).pieChartConfig},scatter:{label:`chart.scatter.label`,icon:`chartScatter`,description:`chart.scatter.description`,useCase:`chart.scatter.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:e<2&&t<1?{available:!1,reason:`chart.availability.scatter`}:{available:!0},dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./ScatterChart.config-DlDcvEw6.cjs"))).scatterChartConfig},bubble:{label:`chart.bubble.label`,icon:`chartBubble`,description:`chart.bubble.description`,useCase:`chart.bubble.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<2?{available:!1,reason:`chart.availability.requiresTwoMeasures`}:t<1?{available:!1,reason:`chart.availability.bubble`}:{available:!0},dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./BubbleChart.config-CNkdZMOF.cjs"))).bubbleChartConfig},radar:{label:`chart.radar.label`,icon:`chartRadar`,description:`chart.radar.description`,useCase:`chart.radar.useCase`,isAvailable:n.o,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./RadarChart.config-BA0Qep8F.cjs"))).radarChartConfig},radialBar:{label:`chart.radialBar.label`,icon:`chartRadialBar`,description:`chart.radialBar.description`,useCase:`chart.radialBar.useCase`,isAvailable:n.o,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./RadialBarChart.config-CqKrOZ31.cjs"))).radialBarChartConfig},treemap:{label:`chart.treemap.label`,icon:`chartTreemap`,description:`chart.treemap.description`,useCase:`chart.treemap.useCase`,isAvailable:n.o,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./TreeMapChart.config-DB99vBJS.cjs"))).treemapChartConfig},table:{label:`chart.table.label`,icon:`chartTable`,description:`chart.table.description`,useCase:`chart.table.useCase`,config:async()=>(await Promise.resolve().then(()=>require("./DataTable.config-BvuVZ9Jj.cjs"))).dataTableConfig},recordsTable:{label:`chart.recordsTable.label`,icon:`chartRecordsTable`,description:`chart.recordsTable.description`,useCase:`chart.recordsTable.useCase`,config:async()=>(await Promise.resolve().then(()=>require("./RecordsTable.config-D1oll1Av.cjs"))).recordsTableConfig},activityGrid:{label:`chart.activityGrid.label`,icon:`chartActivityGrid`,description:`chart.activityGrid.description`,useCase:`chart.activityGrid.useCase`,isAvailable:({measureCount:e,timeDimensionCount:t})=>e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:t<1?{available:!1,reason:`chart.availability.requiresTimeDimension`}:{available:!0},config:async()=>(await Promise.resolve().then(()=>require("./ActivityGridChart.config-D2oLDJki.cjs"))).activityGridChartConfig},kpiNumber:{label:`chart.kpiNumber.label`,icon:`chartKpiNumber`,description:`chart.kpiNumber.description`,useCase:`chart.kpiNumber.useCase`,isAvailable:n.a,config:async()=>(await Promise.resolve().then(()=>require("./KpiNumber.config-Bbt4Jk-l.cjs"))).kpiNumberConfig},kpiDelta:{label:`chart.kpiDelta.label`,icon:`chartKpiDelta`,description:`chart.kpiDelta.description`,useCase:`chart.kpiDelta.useCase`,isAvailable:n.o,config:async()=>(await Promise.resolve().then(()=>require("./KpiDelta.config-KCvw480l.cjs"))).kpiDeltaConfig},kpiText:{label:`chart.kpiText.label`,icon:`chartKpiText`,description:`chart.kpiText.description`,useCase:`chart.kpiText.useCase`,isAvailable:n.a,config:async()=>(await Promise.resolve().then(()=>require("./KpiText.config-B_wDkvrC.cjs"))).kpiTextConfig},markdown:{label:`chart.markdown.label`,icon:`chartMarkdown`,description:`chart.markdown.description`,useCase:`chart.markdown.useCase`,config:async()=>(await Promise.resolve().then(()=>require("./MarkdownChart.config-YvMw-Ve_.cjs"))).markdownConfig},funnel:{label:`chart.funnel.label`,icon:`chartFunnel`,description:`chart.funnel.description`,useCase:`chart.funnel.useCase`,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./FunnelChart.config-DQob2fw6.cjs"))).funnelChartConfig},sankey:{label:`chart.sankey.label`,icon:`chartSankey`,description:`chart.sankey.description`,useCase:`chart.sankey.useCase`,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./SankeyChart.config-BKbMaV-d.cjs"))).sankeyChartConfig},sunburst:{label:`chart.sunburst.label`,icon:`chartSunburst`,description:`chart.sunburst.description`,useCase:`chart.sunburst.useCase`,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./SunburstChart.config-Bb8nbyu6.cjs"))).sunburstChartConfig},heatmap:{label:`chart.heatmap.label`,icon:`chartHeatmap`,description:`chart.heatmap.description`,useCase:`chart.heatmap.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:t<2?{available:!1,reason:`chart.availability.requiresTwoDimensions`}:{available:!0},dependencies:{packageName:`@nivo/heatmap`,installCommand:`npm install @nivo/heatmap`},config:async()=>(await Promise.resolve().then(()=>require("./HeatMapChart.config-DUM2mA2Z.cjs"))).heatmapChartConfig},retentionHeatmap:{label:`chart.retentionHeatmap.label`,icon:`chartRetention`,description:`chart.retentionHeatmap.description`,useCase:`chart.retentionHeatmap.useCase`,config:async()=>(await Promise.resolve().then(()=>require("./RetentionHeatmap.config-DzmrQBgA.cjs"))).retentionHeatmapConfig},retentionCombined:{label:`chart.retentionCombined.label`,icon:`chartRetention`,description:`chart.retentionCombined.description`,useCase:`chart.retentionCombined.useCase`,config:async()=>(await Promise.resolve().then(()=>require("./RetentionCombinedChart.config-DDX-9tjM.cjs"))).retentionCombinedConfig},boxPlot:{label:`chart.boxPlot.label`,icon:`chartBoxPlot`,description:`chart.boxPlot.description`,useCase:`chart.boxPlot.useCase`,isAvailable:n.o,config:async()=>(await Promise.resolve().then(()=>require("./BoxPlotChart.config-DxfUywRi.cjs"))).boxPlotChartConfig},dotStrip:{label:`chart.dotStrip.label`,icon:`chartDotStrip`,description:`chart.dotStrip.description`,useCase:`chart.dotStrip.useCase`,isAvailable:n.o,config:async()=>(await Promise.resolve().then(()=>require("./DotStripChart.config-DViEbi8S.cjs"))).dotStripChartConfig},waterfall:{label:`chart.waterfall.label`,icon:`chartWaterfall`,description:`chart.waterfall.description`,useCase:`chart.waterfall.useCase`,isAvailable:n.o,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./WaterfallChart.config-DNBLGLpY.cjs"))).waterfallChartConfig},candlestick:{label:`chart.candlestick.label`,icon:`chartCandlestick`,description:`chart.candlestick.description`,useCase:`chart.candlestick.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<2?{available:!1,reason:`chart.availability.requiresTwoMeasures`}:t<1?{available:!1,reason:`chart.availability.requiresDimension`}:{available:!0},config:async()=>(await Promise.resolve().then(()=>require("./CandlestickChart.config-CwOt677r.cjs"))).candlestickChartConfig},measureProfile:{label:`chart.measureProfile.label`,icon:`chartMeasureProfile`,description:`chart.measureProfile.description`,useCase:`chart.measureProfile.useCase`,isAvailable:({measureCount:e})=>e<2?{available:!1,reason:`chart.availability.requiresTwoMeasures`}:{available:!0},dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./MeasureProfileChart.config-DYH3OLCF.cjs"))).measureProfileChartConfig},proportionBar:{label:`chart.proportionBar.label`,icon:`chartProportionBar`,description:`chart.proportionBar.description`,useCase:`chart.proportionBar.useCase`,isAvailable:n.o,config:async()=>(await Promise.resolve().then(()=>require("./ProportionBarChart.config--rJi1BjU.cjs"))).proportionBarChartConfig},gauge:{label:`chart.gauge.label`,icon:`chartGauge`,description:`chart.gauge.description`,useCase:`chart.gauge.useCase`,isAvailable:n.a,dependencies:{packageName:`d3-shape`,installCommand:`npm install d3-shape`},config:async()=>(await Promise.resolve().then(()=>require("./GaugeChart.config-4f1JNOsS.cjs"))).gaugeChartConfig}};function re(e,t){return{...t,label:e.label,description:e.description,useCase:e.useCase,isAvailable:e.isAvailable}}var ie={bar:d,line:f,area:p,pie:m,scatter:h,bubble:g,radar:_,radialBar:v,treemap:y,table:b,recordsTable:x,activityGrid:S,kpiNumber:C,kpiDelta:w,kpiText:T,markdown:E,funnel:D,sankey:O,sunburst:ee,heatmap:te,retentionHeatmap:ne,retentionCombined:k,boxPlot:A,dotStrip:j,waterfall:M,candlestick:N,measureProfile:P,proportionBar:F,gauge:I},z=Object.fromEntries(Object.keys(R).map(e=>[e,re(R[e],ie[e])]));function B(e){return z[e]?.recordGrain===!0}function V(e){return Array.isArray(e)?e.length>0:!!e}function H(e){let t=e.timeDimensions??[];return e.ungrouped?t:t.filter(e=>!!e.granularity)}function ae(t,n,r,i){for(let a of t.dropZones){if(!a.mandatory||V(r?.[a.key]))continue;let t=a.acceptTypes?.join(`/`)??`fields`;i.push(e.Y(`server.validation.chart.dropZoneRequired`,{key:a.key,chartType:n,label:a.label,acceptDesc:t}))}}function oe(t,n,r){if(V(t?.xAxis))return;let i=n.dimensions??[],a=H(n),o=i.length>0||a.length>0;r.push(e.Y(o?`server.validation.chart.barXAxisRequired`:`server.validation.chart.barNeedsDimension`))}function U(e){return Array.isArray(e)?e:[e]}function se(t,n){if(!t?.xAxis||!t?.series)return;let r=new Set(U(t.xAxis)),i=U(t.series).filter(e=>r.has(e));i.length>0&&n.push(e.Y(`server.validation.chart.seriesDuplicatesXAxis`,{duplicates:i.join(`, `)}))}function ce(t,n,r){B(t)&&n.ungrouped!==!0&&r.push(e.Y(`server.validation.chart.recordGrainNeedsUngrouped`,{chartType:t}))}function W(e,t,n){let r=z[e];if(!r||r.skipQuery)return{isValid:!0,errors:[]};let i=[];return ae(r,e,t,i),ce(e,n,i),e===`bar`&&oe(t,n,i),se(t,i),{isValid:i.length===0,errors:i}}function G(e,t,n){if(e!==`bar`||V(t?.xAxis))return{chartType:e};let r=n.dimensions??[],i=H(n);if(r.length>0||i.length>0)return{chartType:e};let a=(n.measures??[]).length===1?`kpiNumber`:`table`;return{chartType:a,note:`Note: chartType was changed from "bar" to "${a}" because the query has no dimension, so a bar chart would have no category axis to label its bars. For a real bar chart, put the category in the query's dimensions and use a single measure. To plot several measures as an ordered profile instead, use "measureProfile".`}}function le(e,t,n,r){if(!(e.acceptTypes??[]).includes(`measure`))return;let i=new Set;for(let r of t.dropZones){if(r.key===e.key)continue;let t=n[r.key];Array.isArray(t)?t.forEach(e=>i.add(e)):typeof t==`string`&&i.add(t)}let a=r.filter(e=>!i.has(e));a.length>0&&(n[e.key]=a[0])}function ue(e,t){let n=new Set;for(let[r,i]of Object.entries(e))if(r!==t){if(Array.isArray(i))for(let e of i)typeof e==`string`&&n.add(e);else typeof i==`string`&&n.add(i)}return n}function de(e,t,n){let r=e.acceptTypes??[],i=[];if(r.includes(`dimension`)&&i.push(...n.dimensions),r.includes(`timeDimension`)&&i.push(...n.timeDimFields),r.includes(`measure`)&&i.push(...n.measures),i.length===0)return;let a=ue(t,e.key),o=i.filter(e=>!a.has(e));if(o.length===0)return;let s=e.maxItems??1/0,c=o.slice(0,s);c.length>0&&(t[e.key]=c)}function K(e,t,n){let r=z[e];if(!r)return t??{};let i={...t},a=H(n),o={measures:n.measures??[],dimensions:n.dimensions??[],timeDimFields:a.map(e=>e.dimension)};for(let e of r.dropZones)e.excludeFromInference||V(i[e.key])||(e.key===`sizeField`||e.key===`colorField`?le(e,r,i,o.measures):de(e,i,o));return i}function q(t){return t?e.J(t)?e.Y(t):t:``}function fe(e){let t=[`
|
|
6
|
+
`)}var d={clickableElements:{bar:!0},dropZones:[{key:`xAxis`,label:`chart.dropZone.xAxis.label`,description:`chart.dropZone.xAxis.description`,mandatory:!1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.bar.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.dropZone.yAxis.label`,description:`chart.configText.measures_for_bar_heights`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.bar.dropZone.yAxis.empty`,enableDualAxis:!0},{key:`series`,label:`chart.dropZone.series.label`,description:`chart.dropZone.series.description`,mandatory:!1,acceptTypes:[`dimension`],emptyText:`chart.bar.dropZone.series.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`showAllXLabels`,`hideHeader`],displayOptionsConfig:[n.u(`chart.configText.how_to_stack_multiple_bar_series`),n.d,n.n,n.i,n.s]},f={clickableElements:{point:!0},dropZones:[{key:`xAxis`,label:`chart.configText.x_axis_time_categories`,description:`chart.configText.time_dimensions_or_dimensions_for_x_axis`,mandatory:!0,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.line.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.dropZone.yAxis.label`,description:`chart.configText.measures_for_line_values`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.line.dropZone.yAxis.empty`,enableDualAxis:!0},{key:`series`,label:`chart.configText.series_multiple_lines`,description:`chart.configText.dimensions_to_create_separate_lines`,mandatory:!1,acceptTypes:[`dimension`],emptyText:`chart.line.dropZone.series.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`showAllXLabels`,`hideHeader`],displayOptionsConfig:[n.l,n.c(),n.t,n.n,n.d,{key:`priorPeriodStyle`,label:`chart.option.priorPeriodStyle.label`,type:`select`,defaultValue:`dashed`,options:[{value:`dashed`,label:`chart.option.priorPeriodStyle.dashed`},{value:`dotted`,label:`chart.option.priorPeriodStyle.dotted`},{value:`solid`,label:`chart.option.priorPeriodStyle.solid`}],description:`chart.option.priorPeriodStyle.description`},{key:`priorPeriodOpacity`,label:`chart.option.priorPeriodOpacity.label`,type:`number`,defaultValue:.5,min:.1,max:1,step:.1,description:`chart.option.priorPeriodOpacity.description`},n.i,n.s]},p={dropZones:[{key:`xAxis`,label:`chart.configText.x_axis_time_categories`,description:`chart.configText.time_dimensions_or_dimensions_for_x_axis`,mandatory:!0,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.area.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.dropZone.yAxis.label`,description:`chart.configText.measures_for_area_values`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.area.dropZone.yAxis.empty`,enableDualAxis:!0},{key:`series`,label:`chart.configText.series_stack_areas`,description:`chart.configText.dimensions_to_create_stacked_areas`,mandatory:!1,acceptTypes:[`dimension`],emptyText:`chart.area.dropZone.series.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`showAllXLabels`,`hideHeader`],displayOptionsConfig:[n.l,n.c(!1),n.u(`chart.configText.how_to_stack_multiple_area_series`),n.t,n.n,n.d,n.i,n.s]},m={clickableElements:{slice:!0},dropZones:[{key:`xAxis`,label:`chart.configText.categories`,description:`chart.configText.dimension_for_pie_slices`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.pie.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.values`,description:`chart.configText.measure_for_slice_sizes`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.pie.dropZone.yAxis.empty`}],displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`innerRadius`,label:`chart.option.innerRadius.label`,type:`select`,description:`chart.configText.hollow_center_size_0_percent_solid_pie_higher_donut_style`,defaultValue:`0%`,options:[{value:`0%`,label:`chart.configText.none_pie`},{value:`20%`,label:`chart.configText.20_percent`},{value:`40%`,label:`chart.configText.40_percent`},{value:`60%`,label:`chart.configText.60_percent`},{value:`80%`,label:`chart.configText.80_percent`}]},n.f()]},h={dropZones:[{key:`xAxis`,label:`chart.runtime.axisFormat.xAxis`,description:`chart.configText.measure_or_dimension_for_x_position`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`chart.scatter.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.y_axis`,description:`chart.configText.measure_for_y_position`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.scatter.dropZone.yAxis.empty`},{key:`series`,label:`chart.configText.series_color_groups`,description:`chart.configText.dimension_to_color_points_by_category`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.scatter.dropZone.series.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`xAxisFormat`,label:`chart.option.xAxisFormat.label`,type:`axisFormat`,description:`chart.option.xAxisFormat.description`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.option.yAxisFormat.description`}]},g={dropZones:[{key:`xAxis`,label:`chart.runtime.axisFormat.xAxis`,description:`chart.configText.horizontal_axis_position`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`chart.bubble.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.y_axis`,description:`chart.configText.vertical_axis_position`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.bubble.dropZone.yAxis.empty`},{key:`sizeField`,label:`chart.configText.bubble_radius`,description:`chart.configText.size_of_bubbles_based_on_this_measure`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.bubble.dropZone.sizeField.empty`},{key:`series`,label:`chart.configText.bubble_labels`,description:`chart.configText.field_to_use_for_bubble_labels_and_identification`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.bubble.dropZone.series.empty`},{key:`colorField`,label:`chart.configText.bubble_colour`,description:`chart.configText.color_bubbles_by_this_field_optional`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`,`measure`],emptyText:`chart.bubble.dropZone.colorField.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`minBubbleSize`,`maxBubbleSize`,`bubbleOpacity`,`hideHeader`],displayOptionsConfig:[{key:`xAxisFormat`,label:`chart.option.xAxisFormat.label`,type:`axisFormat`,description:`chart.option.xAxisFormat.description`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_y_axis_and_values`}]},_={dropZones:[{key:`xAxis`,label:`chart.configText.axes_categories`,description:`chart.configText.dimensions_for_radar_axes`,mandatory:!0,acceptTypes:[`dimension`],emptyText:`chart.radar.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.values`,description:`chart.configText.measures_for_radar_values`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.radar.dropZone.yAxis.empty`},{key:`series`,label:`chart.configText.series_multiple_shapes`,description:`chart.configText.dimensions_to_create_multiple_radar_shapes`,mandatory:!1,acceptTypes:[`dimension`],emptyText:`chart.radar.dropZone.series.empty`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`hideHeader`],displayOptionsConfig:[n.f()]},v={dropZones:[{key:`xAxis`,label:`chart.configText.categories`,description:`chart.configText.dimensions_for_radial_segments`,mandatory:!0,acceptTypes:[`dimension`],emptyText:`chart.radialBar.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.values`,description:`chart.configText.measures_for_radial_bar_lengths`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.radialBar.dropZone.yAxis.empty`}],displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],displayOptionsConfig:[n.f()]},y={dropZones:[{key:`xAxis`,label:`chart.configText.categories`,description:`chart.configText.dimensions_for_treemap_rectangles`,mandatory:!0,acceptTypes:[`dimension`],emptyText:`chart.treemap.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.size`,description:`chart.configText.measure_for_rectangle_sizes`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.treemap.dropZone.yAxis.empty`},{key:`series`,label:`chart.configText.color_groups`,description:`chart.configText.dimension_to_color_rectangles_by_category`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.treemap.dropZone.series.empty`}],displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],displayOptionsConfig:[n.f(`chart.configText.number_formatting_for_size_values`)],clickableElements:{cell:!0}},b={dropZones:[{key:`xAxis`,label:`chart.configText.columns`,description:`chart.configText.all_fields_to_display_as_columns`,mandatory:!1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`chart.table.dropZone.xAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`leftYAxisFormat`,label:`chart.option.valueFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_numeric_values`}]},x={dropZones:[{key:`columns`,label:`chart.recordsTable.dropZone.columns.label`,description:`chart.recordsTable.dropZone.columns.description`,mandatory:!1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`chart.recordsTable.dropZone.columns.empty`},{key:`hiddenColumns`,label:`chart.recordsTable.dropZone.hiddenColumns.label`,description:`chart.recordsTable.dropZone.hiddenColumns.description`,mandatory:!1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`chart.recordsTable.dropZone.hiddenColumns.empty`,excludeFromInference:!0}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`columnFormats`,label:`chart.recordsTable.option.columnFormats.label`,type:`columnFormats`,description:`chart.recordsTable.option.columnFormats.description`,progressBands:!0},{key:`rowLink`,label:`chart.recordsTable.option.rowLink.label`,type:`rowLink`,description:`chart.recordsTable.option.rowLink.description`},{key:`pageSize`,label:`chart.recordsTable.option.pageSize.label`,type:`select`,defaultValue:25,description:`chart.recordsTable.option.pageSize.description`,options:[{value:25,label:`chart.recordsTable.option.pageSize.option.25`},{value:50,label:`chart.recordsTable.option.pageSize.option.50`},{value:100,label:`chart.recordsTable.option.pageSize.option.100`}]}],clickableElements:{row:!0},recordGrain:!0},S={dropZones:[{key:`dateField`,label:`chart.configText.time_dimension`,description:`chart.configText.time_field_that_determines_grid_structure_granularity_affects_layout`,mandatory:!0,maxItems:1,acceptTypes:[`timeDimension`],emptyText:`chart.activityGrid.dropZone.dateField.empty`},{key:`valueField`,label:`chart.configText.activity_measure`,description:`chart.configText.measure_used_for_activity_intensity_color_coding`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.activityGrid.dropZone.valueField.empty`}],displayOptions:[`showLabels`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`fitToWidth`,label:`chart.option.fitToWidth.label`,type:`boolean`,defaultValue:!1,description:`chart.option.fitToWidth.description`}],validate:e=>{let{dateField:t,valueField:n}=e;return!t||Array.isArray(t)&&t.length===0?{isValid:!1,message:`chart.activityGrid.validation.timeDimensionRequired`}:!n||Array.isArray(n)&&n.length===0?{isValid:!1,message:`chart.activityGrid.validation.measureRequired`}:{isValid:!0}},clickableElements:{cell:!0}},C={dropZones:[{key:`yAxis`,label:`chart.configText.value`,description:`chart.configText.measure_to_display_as_kpi_number`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.kpiNumber.dropZone.yAxis.empty`}],displayOptionsConfig:[n.r,{key:`target`,label:`chart.runtime.tooltip.targetValue`,type:`string`,placeholder:`e.g., 100`,description:`chart.configText.target_value_to_compare_against_first_value_used_if_multiple_provided`},{key:`prefix`,label:`chart.option.prefix.label`,type:`string`,placeholder:`e.g., $, €, #`,description:`chart.option.prefix.description`},{key:`suffix`,label:`chart.option.suffix.label`,type:`string`,placeholder:`e.g., %, units, items`,description:`chart.option.suffix.description`},{key:`decimals`,label:`chart.option.decimals.label`,type:`number`,defaultValue:0,min:0,max:10,step:1,description:`chart.option.decimals.description`},{key:`valueColorIndex`,label:`chart.configText.value_color`,type:`paletteColor`,defaultValue:0,description:`chart.configText.color_from_the_dashboard_palette_for_the_kpi_value_text`},{key:`useLastCompletePeriod`,label:`chart.option.useLastCompletePeriod.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.exclude_current_incomplete_period_from_aggregation_e_g_partial_week_mont`},{key:`skipLastPeriod`,label:`chart.option.skipLastPeriod.label`,type:`boolean`,defaultValue:!1,description:`chart.option.skipLastPeriod.description`}],displayOptions:[`hideHeader`]},w={dropZones:[{key:`yAxis`,label:`chart.configText.value`,description:`chart.configText.measure_to_track_changes_for`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.kpiDelta.dropZone.yAxis.empty`},{key:`xAxis`,label:`chart.configText.dimension_optional`,description:`chart.configText.dimension_for_ordering_data_typically_time`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.kpiDelta.dropZone.xAxis.empty`}],displayOptionsConfig:[n.r,{key:`showBaseline`,label:`chart.option.showBaseline.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showBaseline.description`},{key:`prefix`,label:`chart.option.prefix.label`,type:`string`,placeholder:`e.g., $, €, #`,description:`chart.option.prefix.description`},{key:`suffix`,label:`chart.option.suffix.label`,type:`string`,placeholder:`e.g., %, units, items`,description:`chart.option.suffix.description`},{key:`decimals`,label:`chart.option.decimals.label`,type:`number`,defaultValue:1,min:0,max:10,step:1,description:`chart.option.decimals.description`},{key:`positiveColorIndex`,label:`chart.configText.positive_change_color`,type:`paletteColor`,defaultValue:2,description:`chart.configText.color_for_positive_changes_increases`},{key:`negativeColorIndex`,label:`chart.configText.negative_change_color`,type:`paletteColor`,defaultValue:3,description:`chart.configText.color_for_negative_changes_decreases`},{key:`showHistogram`,label:`chart.option.showHistogram.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showHistogram.description`},{key:`useLastCompletePeriod`,label:`chart.option.useLastCompletePeriod.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.exclude_current_incomplete_period_from_delta_calculation_e_g_partial_wee`},{key:`skipLastPeriod`,label:`chart.option.skipLastPeriod.label`,type:`boolean`,defaultValue:!1,description:`chart.option.skipLastPeriod.description`}],displayOptions:[`hideHeader`],validate:e=>!e.yAxis||Array.isArray(e.yAxis)&&e.yAxis.length===0?{isValid:!1,message:`chart.kpiDelta.validation.measureRequired`}:{isValid:!0}},T={dropZones:[{key:`yAxis`,label:`chart.configText.value`,description:`chart.configText.measure_to_display_in_the_kpi_text_template`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.kpiText.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`template`,label:`chart.configText.text_template`,type:`string`,placeholder:"e.g., Total Revenue: ${value}",description:`chart.configText.template_for_displaying_the_text_use_value_to_insert_the_measure_value`},{key:`decimals`,label:`chart.option.decimals.label`,type:`number`,defaultValue:0,min:0,max:10,step:1,description:`chart.configText.number_of_decimal_places_to_display_for_numeric_values`},{key:`valueColorIndex`,label:`chart.configText.value_color`,type:`paletteColor`,defaultValue:0,description:`chart.configText.color_from_the_dashboard_palette_for_the_kpi_value_text`}],displayOptions:[`hideHeader`]},E={skipQuery:!0,dropZones:[],displayOptionsConfig:[{key:`content`,label:`chart.configText.markdown_content`,type:`string`,placement:`chart`,rows:18,syntax:`markdownTemplate`,placeholder:`chart.markdown.contentPlaceholder`,description:`chart.markdown.contentDescription`,docsUrl:`https://knap.md/variables`,docsLabel:`chart.markdown.contentDocsLabel`},{key:`accentColorIndex`,label:`chart.configText.accent_color`,type:`paletteColor`,defaultValue:0,description:`chart.configText.color_from_the_dashboard_palette_for_headers_bullets_and_links`},{key:`fontSize`,label:`chart.option.fontSize.label`,type:`select`,defaultValue:`medium`,options:[{value:`small`,label:`chart.option.fontSize.small`},{value:`medium`,label:`chart.option.fontSize.medium`},{value:`large`,label:`chart.option.fontSize.large`}],description:`chart.configText.overall_text_size_for_the_markdown_content`},{key:`alignment`,label:`chart.option.alignment.label`,type:`select`,defaultValue:`left`,options:[{value:`left`,label:`chart.option.accentBorder.left`},{value:`center`,label:`chart.option.alignment.center`},{value:`right`,label:`chart.option.alignment.right`}],description:`chart.configText.horizontal_alignment_of_the_markdown_content`},{key:`hideHeader`,label:`chart.option.hideHeader.label`,type:`boolean`,defaultValue:!0,description:`chart.option.hideHeader.description`},{key:`transparentBackground`,label:`chart.option.transparentBackground.label`,type:`boolean`,defaultValue:!1,description:`chart.option.transparentBackground.description`},{key:`autoHeight`,label:`chart.option.autoHeight.label`,type:`boolean`,defaultValue:!0,description:`chart.option.autoHeight.description`},{key:`accentBorder`,label:`chart.option.accentBorder.label`,type:`select`,defaultValue:`none`,options:[{value:`none`,label:`chart.option.accentBorder.none`},{value:`left`,label:`chart.option.accentBorder.left`},{value:`top`,label:`chart.option.accentBorder.top`},{value:`bottom`,label:`chart.option.accentBorder.bottom`}],description:`chart.configText.add_an_accent_colored_border_on_one_side_of_the_content`}]},D={dropZones:[{key:`xAxis`,label:`chart.configText.step_name`,description:`chart.configText.step_names_auto_populated_from_funnel_steps`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.funnel.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.step_count`,description:`chart.configText.count_at_each_step_auto_calculated`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.funnel.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`funnelStyle`,label:`chart.option.funnelStyle.label`,type:`buttonGroup`,defaultValue:`bars`,options:[{value:`bars`,label:`chart.option.funnelStyle.bars`},{value:`funnel`,label:`chart.option.funnelStyle.funnel`}],description:`chart.configText.visualization_style`},{key:`funnelOrientation`,label:`chart.option.funnelOrientation.label`,type:`buttonGroup`,defaultValue:`horizontal`,options:[{value:`horizontal`,label:`chart.option.funnelOrientation.horizontal`},{value:`vertical`,label:`chart.option.funnelOrientation.vertical`}]},{key:`hideSummaryFooter`,label:`chart.option.hideSummaryFooter.label`,type:`boolean`,defaultValue:!1,description:`chart.option.hideSummaryFooter.description`},{key:`showFunnelConversion`,label:`chart.option.showConversion.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showConversion.description`},{key:`showFunnelAvgTime`,label:`chart.option.showAvgTime.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showAvgTime.description`},{key:`showFunnelMedianTime`,label:`chart.option.showMedianTime.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showMedianTime.description`},{key:`showFunnelP90Time`,label:`chart.option.showP90Time.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showP90Time.description`}]},O={dropZones:[{key:`xAxis`,label:`chart.configText.event_type`,description:`chart.configText.event_dimension_that_categorizes_flow_nodes`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.sankey.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.flow_count`,description:`chart.configText.count_of_entities_following_each_path`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.sankey.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`linkOpacity`,label:`chart.option.linkOpacity.label`,type:`buttonGroup`,defaultValue:`0.5`,options:[{value:`0.3`,label:`chart.option.linkOpacity.light`},{value:`0.5`,label:`chart.option.fontSize.medium`},{value:`0.7`,label:`chart.option.linkOpacity.dark`}],description:`chart.configText.opacity_of_flow_links`},{key:`showNodeLabels`,label:`chart.option.showNodeLabels.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showNodeLabels.description`},{key:`hideSummaryFooter`,label:`chart.option.hideSummaryFooter.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.hide_the_statistics_footer_below_the_chart`}]},ee={dropZones:[{key:`xAxis`,label:`chart.configText.event_type`,description:`chart.configText.event_dimension_that_categorizes_flow_nodes`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.sunburst.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.flow_count`,description:`chart.configText.count_of_entities_following_each_path`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.sunburst.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`innerRadius`,label:`chart.option.innerRadius.label`,type:`number`,defaultValue:40,min:0,max:100,step:10,description:`chart.configText.size_of_the_center_hole_0_for_full_circle`},{key:`hideSummaryFooter`,label:`chart.option.hideSummaryFooter.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.hide_the_statistics_footer_below_the_chart`}]},te={dropZones:[{key:`xAxis`,label:`chart.configText.columns_x_axis`,description:`chart.configText.dimension_for_column_categories`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.heatmap.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.rows_y_axis`,description:`chart.configText.dimension_for_row_categories`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.heatmap.dropZone.yAxis.empty`},{key:`valueField`,label:`chart.configText.value_color_intensity`,description:`chart.configText.measure_that_determines_cell_color`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.heatmap.dropZone.valueField.empty`}],displayOptions:[`showLegend`,`showTooltip`],displayOptionsConfig:[{key:`showLabels`,label:`chart.option.showLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showLabels.description`},{key:`cellShape`,label:`chart.option.cellShape.label`,type:`select`,defaultValue:`rect`,options:[{value:`rect`,label:`chart.option.cellShape.rectangle`},{value:`circle`,label:`chart.option.cellShape.circle`}]},{key:`xAxisFormat`,label:`chart.option.xAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_x_axis_labels`},{key:`yAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_y_axis_labels`},{key:`valueFormat`,label:`chart.option.valueFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_cell_values_and_legend`}],validate:e=>e.xAxis?.length?e.yAxis?.length?e.valueField?.length?{isValid:!0}:{isValid:!1,message:`chart.heatmap.validation.valueRequired`}:{isValid:!1,message:`chart.heatmap.validation.yAxisRequired`}:{isValid:!1,message:`chart.heatmap.validation.xAxisRequired`}},ne={dropZones:[],displayOptionsConfig:[{key:`showLegend`,label:`chart.option.showLegend.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.show_the_color_intensity_legend`},{key:`showTooltip`,label:`chart.option.showTooltip.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showTooltip.description`}]},k={dropZones:[],displayOptionsConfig:[{key:`retentionDisplayMode`,label:`chart.option.retentionDisplayMode.label`,type:`select`,defaultValue:`line`,options:[{value:`line`,label:`chart.option.retentionDisplayMode.lineChart`},{value:`heatmap`,label:`chart.option.retentionDisplayMode.heatmapTable`},{value:`combined`,label:`chart.option.retentionDisplayMode.combined`}],description:`chart.configText.choose_how_to_visualize_retention_data`},{key:`showLegend`,label:`chart.option.showLegend.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.show_the_legend_for_breakdown_segments`},{key:`showGrid`,label:`chart.option.showGrid.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showGrid.description`},{key:`showTooltip`,label:`chart.option.showTooltip.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showTooltip.description`}]},A={displayOptions:[`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.configText.x_axis_groups`,description:`chart.configText.dimension_to_group_boxes_by_e_g_symbol_platform`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.boxPlot.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.y_axis_measures`,description:`chart.configText.drop_1_measure_for_auto_mode_3_for_avg_stddev_median_mode_or_5_for_min_q`,mandatory:!0,maxItems:5,acceptTypes:[`measure`],emptyText:`chart.boxPlot.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_value_axis`}]},j={displayOptions:[`showGrid`,`showTooltip`,`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.dotStrip.dropZone.xAxis.label`,description:`chart.dotStrip.dropZone.xAxis.description`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.dotStrip.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.dotStrip.dropZone.yAxis.label`,description:`chart.dotStrip.dropZone.yAxis.description`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.dotStrip.dropZone.yAxis.empty`},{key:`series`,label:`chart.dotStrip.dropZone.series.label`,description:`chart.dotStrip.dropZone.series.description`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.dotStrip.dropZone.series.empty`}],clickableElements:{point:!0},displayOptionsConfig:[{key:`showMedianMarker`,label:`chart.option.showMedianMarker.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showMedianMarker.description`},{key:`showBandStats`,label:`chart.option.showBandStats.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showBandStats.description`},{key:`showExtremeLabels`,label:`chart.option.showExtremeLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showExtremeLabels.description`},{key:`dotSize`,label:`chart.option.dotSize.label`,type:`select`,defaultValue:`medium`,options:[{value:`small`,label:`chart.option.dotSize.small`},{value:`medium`,label:`chart.option.dotSize.medium`},{value:`large`,label:`chart.option.dotSize.large`}],description:`chart.option.dotSize.description`},{key:`bandSort`,label:`chart.option.bandSort.label`,type:`select`,defaultValue:`none`,options:[{value:`none`,label:`chart.option.bandSort.none`},{value:`valueDesc`,label:`chart.option.bandSort.valueDesc`},{value:`valueAsc`,label:`chart.option.bandSort.valueAsc`},{value:`count`,label:`chart.option.bandSort.count`}],description:`chart.option.bandSort.description`},{key:`xAxisFormat`,label:`chart.option.xAxisFormat.label`,type:`axisFormat`,description:`chart.option.xAxisFormat.description`}]},M={clickableElements:{bar:!0},displayOptions:[`showTooltip`,`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.dropZone.xAxis.label`,description:`chart.configText.dimension_labels_for_each_bar_segment_e_g_symbol_transaction_type`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.waterfall.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.y_axis_value`,description:`chart.configText.single_measure_whose_values_are_summed_cumulatively`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.waterfall.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`showTotal`,label:`chart.option.showTotal.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showTotal.description`},{key:`showConnectorLine`,label:`chart.option.showConnectorLine.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showConnectorLine.description`},{key:`showDataLabels`,label:`chart.option.showDataLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.configText.display_the_value_above_each_bar_segment`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_y_axis`}]},N={clickableElements:{bar:!0},displayOptions:[`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.configText.x_axis_time_category`,description:`chart.configText.time_dimension_or_category_for_each_candle_e_g_date_symbol`,mandatory:!0,maxItems:1,acceptTypes:[`timeDimension`,`dimension`],emptyText:`chart.candlestick.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.ohlc_measures_open_close_high_low`,description:`chart.configText.drop_2_4_measures_in_order_open_close_high_low_ohlc_mode_for_range_mode_`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.candlestick.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`rangeMode`,label:`chart.option.rangeMode.label`,type:`select`,defaultValue:`ohlc`,options:[{value:`ohlc`,label:`chart.option.rangeMode.ohlc`},{value:`range`,label:`chart.option.rangeMode.range`}],description:`chart.option.rangeMode.description`},{key:`bullColor`,label:`chart.option.bullColor.label`,type:`color`,defaultValue:`#22c55e`,description:`chart.option.bullColor.description`},{key:`bearColor`,label:`chart.option.bearColor.label`,type:`color`,defaultValue:`#ef4444`,description:`chart.option.bearColor.description`},{key:`showWicks`,label:`chart.option.showWicks.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showWicks.description`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_price_axis`}]},P={displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],dropZones:[{key:`yAxis`,label:`chart.configText.measures_x_axis_order`,description:`chart.configText.add_2_or_more_measures_they_become_the_x_axis_categories_in_the_order_li`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.measureProfile.dropZone.yAxis.empty`},{key:`series`,label:`chart.configText.series_split_into_multiple_lines`,description:`chart.configText.dimension_to_split_data_into_separate_profile_lines_e_g_symbol_platform`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.measureProfile.dropZone.series.empty`}],displayOptionsConfig:[{key:`showReferenceLineAtZero`,label:`chart.option.showReferenceLineAtZero.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showReferenceLineAtZero.description`},{key:`showDataLabels`,label:`chart.option.showDataLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.configText.display_value_at_each_data_point`},{key:`showLegend`,label:`chart.option.showLegend.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.show_series_legend_only_visible_with_a_series_dimension`},{key:`lineType`,label:`chart.option.lineType.label`,type:`select`,defaultValue:`monotone`,options:[{value:`monotone`,label:`chart.option.lineType.smooth`},{value:`linear`,label:`chart.option.lineType.linear`},{value:`step`,label:`chart.option.lineType.step`}],description:`chart.option.lineType.description`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_y_axis`}]},F={dropZones:[{key:`xAxis`,label:`chart.configText.category`,description:`chart.configText.dimension_to_split_the_bar_into_segments`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.proportionBar.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.value`,description:`chart.configText.measure_that_determines_each_segments_share`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.proportionBar.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`showLabels`,label:`chart.option.proportionBarLabels.label`,type:`boolean`,defaultValue:!0,description:`chart.option.proportionBarLabels.description`},{key:`showPercentages`,label:`chart.option.showPercentages.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showPercentages.description`},{key:`sortSegments`,label:`chart.option.sortSegments.label`,type:`boolean`,defaultValue:!1,description:`chart.option.sortSegments.description`},{key:`decimals`,label:`chart.option.decimals.label`,type:`number`,defaultValue:0,min:0,max:2,description:`chart.option.proportionBarDecimals.description`}],validate:e=>!e?.xAxis||Array.isArray(e.xAxis)&&e.xAxis.length===0?{isValid:!1,message:`chart.proportionBar.validation.dimensionRequired`}:!e?.yAxis||Array.isArray(e.yAxis)&&e.yAxis.length===0?{isValid:!1,message:`chart.proportionBar.validation.measureRequired`}:{isValid:!0}},I={clickableElements:{},displayOptions:[`hideHeader`],dropZones:[{key:`yAxis`,label:`chart.configText.value_measure`,description:`chart.configText.current_value_to_display_on_the_gauge_e_g_current_equity_margin_used`,mandatory:!0,maxItems:2,acceptTypes:[`measure`],emptyText:`chart.gauge.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`minValue`,label:`chart.option.minValue.label`,type:`number`,defaultValue:0,description:`chart.option.minValue.description`},{key:`maxValue`,label:`chart.option.maxValue.label`,type:`number`,description:`chart.option.maxValue.description`},{key:`thresholds`,label:`chart.configText.threshold_bands`,type:`thresholdBands`,description:`chart.gauge.thresholds.description`},{key:`showCenterLabel`,label:`chart.option.showCentreLabel.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showCentreLabel.description`},{key:`showPercentage`,label:`chart.option.showPercentage.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showPercentage.description`},{key:`leftYAxisFormat`,label:`chart.option.valueFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_displayed_value_and_axis_labels`}]},L={packageName:`recharts`,installCommand:`npm install recharts`},R={bar:{label:`chart.bar.label`,icon:`chartBar`,description:`chart.bar.description`,useCase:`chart.bar.useCase`,isAvailable:n.o,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./BarChart.config-CSbClrlz.cjs"))).barChartConfig},line:{label:`chart.line.label`,icon:`chartLine`,description:`chart.line.description`,useCase:`chart.line.useCase`,isAvailable:n.o,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./LineChart.config-nwC-IWRL.cjs"))).lineChartConfig},area:{label:`chart.area.label`,icon:`chartArea`,description:`chart.area.description`,useCase:`chart.area.useCase`,isAvailable:n.o,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./AreaChart.config-CaLEu4WZ.cjs"))).areaChartConfig},pie:{label:`chart.pie.label`,icon:`chartPie`,description:`chart.pie.description`,useCase:`chart.pie.useCase`,isAvailable:n.o,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./PieChart.config-D1tFIodJ.cjs"))).pieChartConfig},scatter:{label:`chart.scatter.label`,icon:`chartScatter`,description:`chart.scatter.description`,useCase:`chart.scatter.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:e<2&&t<1?{available:!1,reason:`chart.availability.scatter`}:{available:!0},dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./ScatterChart.config-BfDDAH83.cjs"))).scatterChartConfig},bubble:{label:`chart.bubble.label`,icon:`chartBubble`,description:`chart.bubble.description`,useCase:`chart.bubble.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<2?{available:!1,reason:`chart.availability.requiresTwoMeasures`}:t<1?{available:!1,reason:`chart.availability.bubble`}:{available:!0},config:async()=>(await Promise.resolve().then(()=>require("./BubbleChart.config-CREi46jt.cjs"))).bubbleChartConfig},radar:{label:`chart.radar.label`,icon:`chartRadar`,description:`chart.radar.description`,useCase:`chart.radar.useCase`,isAvailable:n.o,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./RadarChart.config-mPXx8Moz.cjs"))).radarChartConfig},radialBar:{label:`chart.radialBar.label`,icon:`chartRadialBar`,description:`chart.radialBar.description`,useCase:`chart.radialBar.useCase`,isAvailable:n.o,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./RadialBarChart.config-EzhjUjvA.cjs"))).radialBarChartConfig},treemap:{label:`chart.treemap.label`,icon:`chartTreemap`,description:`chart.treemap.description`,useCase:`chart.treemap.useCase`,isAvailable:n.o,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./TreeMapChart.config-CWSspab0.cjs"))).treemapChartConfig},table:{label:`chart.table.label`,icon:`chartTable`,description:`chart.table.description`,useCase:`chart.table.useCase`,config:async()=>(await Promise.resolve().then(()=>require("./DataTable.config-BpzbJKOY.cjs"))).dataTableConfig},recordsTable:{label:`chart.recordsTable.label`,icon:`chartRecordsTable`,description:`chart.recordsTable.description`,useCase:`chart.recordsTable.useCase`,config:async()=>(await Promise.resolve().then(()=>require("./RecordsTable.config-BNKcGGjX.cjs"))).recordsTableConfig},activityGrid:{label:`chart.activityGrid.label`,icon:`chartActivityGrid`,description:`chart.activityGrid.description`,useCase:`chart.activityGrid.useCase`,isAvailable:({measureCount:e,timeDimensionCount:t})=>e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:t<1?{available:!1,reason:`chart.availability.requiresTimeDimension`}:{available:!0},config:async()=>(await Promise.resolve().then(()=>require("./ActivityGridChart.config-BY3cUifC.cjs"))).activityGridChartConfig},kpiNumber:{label:`chart.kpiNumber.label`,icon:`chartKpiNumber`,description:`chart.kpiNumber.description`,useCase:`chart.kpiNumber.useCase`,isAvailable:n.a,config:async()=>(await Promise.resolve().then(()=>require("./KpiNumber.config-jxzFzY71.cjs"))).kpiNumberConfig},kpiDelta:{label:`chart.kpiDelta.label`,icon:`chartKpiDelta`,description:`chart.kpiDelta.description`,useCase:`chart.kpiDelta.useCase`,isAvailable:n.o,config:async()=>(await Promise.resolve().then(()=>require("./KpiDelta.config-CMGQIfsy.cjs"))).kpiDeltaConfig},kpiText:{label:`chart.kpiText.label`,icon:`chartKpiText`,description:`chart.kpiText.description`,useCase:`chart.kpiText.useCase`,isAvailable:n.a,config:async()=>(await Promise.resolve().then(()=>require("./KpiText.config-DOYHINgD.cjs"))).kpiTextConfig},markdown:{label:`chart.markdown.label`,icon:`chartMarkdown`,description:`chart.markdown.description`,useCase:`chart.markdown.useCase`,config:async()=>(await Promise.resolve().then(()=>require("./MarkdownChart.config-CeqYtwrd.cjs"))).markdownConfig},funnel:{label:`chart.funnel.label`,icon:`chartFunnel`,description:`chart.funnel.description`,useCase:`chart.funnel.useCase`,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./FunnelChart.config-DfaMSLui.cjs"))).funnelChartConfig},sankey:{label:`chart.sankey.label`,icon:`chartSankey`,description:`chart.sankey.description`,useCase:`chart.sankey.useCase`,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./SankeyChart.config-Dipd6fNz.cjs"))).sankeyChartConfig},sunburst:{label:`chart.sunburst.label`,icon:`chartSunburst`,description:`chart.sunburst.description`,useCase:`chart.sunburst.useCase`,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./SunburstChart.config-CacceE1E.cjs"))).sunburstChartConfig},heatmap:{label:`chart.heatmap.label`,icon:`chartHeatmap`,description:`chart.heatmap.description`,useCase:`chart.heatmap.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:t<2?{available:!1,reason:`chart.availability.requiresTwoDimensions`}:{available:!0},dependencies:{packageName:`@nivo/heatmap`,installCommand:`npm install @nivo/heatmap`},config:async()=>(await Promise.resolve().then(()=>require("./HeatMapChart.config-C94iqzfw.cjs"))).heatmapChartConfig},retentionHeatmap:{label:`chart.retentionHeatmap.label`,icon:`chartRetention`,description:`chart.retentionHeatmap.description`,useCase:`chart.retentionHeatmap.useCase`,config:async()=>(await Promise.resolve().then(()=>require("./RetentionHeatmap.config-BqLV6f6o.cjs"))).retentionHeatmapConfig},retentionCombined:{label:`chart.retentionCombined.label`,icon:`chartRetention`,description:`chart.retentionCombined.description`,useCase:`chart.retentionCombined.useCase`,config:async()=>(await Promise.resolve().then(()=>require("./RetentionCombinedChart.config-Y47OjDeH.cjs"))).retentionCombinedConfig},boxPlot:{label:`chart.boxPlot.label`,icon:`chartBoxPlot`,description:`chart.boxPlot.description`,useCase:`chart.boxPlot.useCase`,isAvailable:n.o,config:async()=>(await Promise.resolve().then(()=>require("./BoxPlotChart.config-BIxjwA1O.cjs"))).boxPlotChartConfig},dotStrip:{label:`chart.dotStrip.label`,icon:`chartDotStrip`,description:`chart.dotStrip.description`,useCase:`chart.dotStrip.useCase`,isAvailable:n.o,config:async()=>(await Promise.resolve().then(()=>require("./DotStripChart.config-Bkj53d85.cjs"))).dotStripChartConfig},waterfall:{label:`chart.waterfall.label`,icon:`chartWaterfall`,description:`chart.waterfall.description`,useCase:`chart.waterfall.useCase`,isAvailable:n.o,dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./WaterfallChart.config-CiOnjcsk.cjs"))).waterfallChartConfig},candlestick:{label:`chart.candlestick.label`,icon:`chartCandlestick`,description:`chart.candlestick.description`,useCase:`chart.candlestick.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<2?{available:!1,reason:`chart.availability.requiresTwoMeasures`}:t<1?{available:!1,reason:`chart.availability.requiresDimension`}:{available:!0},config:async()=>(await Promise.resolve().then(()=>require("./CandlestickChart.config-BrbgDZcn.cjs"))).candlestickChartConfig},measureProfile:{label:`chart.measureProfile.label`,icon:`chartMeasureProfile`,description:`chart.measureProfile.description`,useCase:`chart.measureProfile.useCase`,isAvailable:({measureCount:e})=>e<2?{available:!1,reason:`chart.availability.requiresTwoMeasures`}:{available:!0},dependencies:L,config:async()=>(await Promise.resolve().then(()=>require("./MeasureProfileChart.config-_ZC5pb_I.cjs"))).measureProfileChartConfig},proportionBar:{label:`chart.proportionBar.label`,icon:`chartProportionBar`,description:`chart.proportionBar.description`,useCase:`chart.proportionBar.useCase`,isAvailable:n.o,config:async()=>(await Promise.resolve().then(()=>require("./ProportionBarChart.config-9zHgirKR.cjs"))).proportionBarChartConfig},gauge:{label:`chart.gauge.label`,icon:`chartGauge`,description:`chart.gauge.description`,useCase:`chart.gauge.useCase`,isAvailable:n.a,config:async()=>(await Promise.resolve().then(()=>require("./GaugeChart.config-CN7S1OEB.cjs"))).gaugeChartConfig}};function re(e,t){return{...t,label:e.label,description:e.description,useCase:e.useCase,isAvailable:e.isAvailable}}var ie={bar:d,line:f,area:p,pie:m,scatter:h,bubble:g,radar:_,radialBar:v,treemap:y,table:b,recordsTable:x,activityGrid:S,kpiNumber:C,kpiDelta:w,kpiText:T,markdown:E,funnel:D,sankey:O,sunburst:ee,heatmap:te,retentionHeatmap:ne,retentionCombined:k,boxPlot:A,dotStrip:j,waterfall:M,candlestick:N,measureProfile:P,proportionBar:F,gauge:I},z=Object.fromEntries(Object.keys(R).map(e=>[e,re(R[e],ie[e])]));function B(e){return z[e]?.recordGrain===!0}function V(e){return Array.isArray(e)?e.length>0:!!e}function H(e){let t=e.timeDimensions??[];return e.ungrouped?t:t.filter(e=>!!e.granularity)}function ae(t,n,r,i){for(let a of t.dropZones){if(!a.mandatory||V(r?.[a.key]))continue;let t=a.acceptTypes?.join(`/`)??`fields`;i.push(e.Y(`server.validation.chart.dropZoneRequired`,{key:a.key,chartType:n,label:a.label,acceptDesc:t}))}}function oe(t,n,r){if(V(t?.xAxis))return;let i=n.dimensions??[],a=H(n),o=i.length>0||a.length>0;r.push(e.Y(o?`server.validation.chart.barXAxisRequired`:`server.validation.chart.barNeedsDimension`))}function U(e){return Array.isArray(e)?e:[e]}function se(t,n){if(!t?.xAxis||!t?.series)return;let r=new Set(U(t.xAxis)),i=U(t.series).filter(e=>r.has(e));i.length>0&&n.push(e.Y(`server.validation.chart.seriesDuplicatesXAxis`,{duplicates:i.join(`, `)}))}function ce(t,n,r){B(t)&&n.ungrouped!==!0&&r.push(e.Y(`server.validation.chart.recordGrainNeedsUngrouped`,{chartType:t}))}function W(e,t,n){let r=z[e];if(!r||r.skipQuery)return{isValid:!0,errors:[]};let i=[];return ae(r,e,t,i),ce(e,n,i),e===`bar`&&oe(t,n,i),se(t,i),{isValid:i.length===0,errors:i}}function G(e,t,n){if(e!==`bar`||V(t?.xAxis))return{chartType:e};let r=n.dimensions??[],i=H(n);if(r.length>0||i.length>0)return{chartType:e};let a=(n.measures??[]).length===1?`kpiNumber`:`table`;return{chartType:a,note:`Note: chartType was changed from "bar" to "${a}" because the query has no dimension, so a bar chart would have no category axis to label its bars. For a real bar chart, put the category in the query's dimensions and use a single measure. To plot several measures as an ordered profile instead, use "measureProfile".`}}function le(e,t,n,r){if(!(e.acceptTypes??[]).includes(`measure`))return;let i=new Set;for(let r of t.dropZones){if(r.key===e.key)continue;let t=n[r.key];Array.isArray(t)?t.forEach(e=>i.add(e)):typeof t==`string`&&i.add(t)}let a=r.filter(e=>!i.has(e));a.length>0&&(n[e.key]=a[0])}function ue(e,t){let n=new Set;for(let[r,i]of Object.entries(e))if(r!==t){if(Array.isArray(i))for(let e of i)typeof e==`string`&&n.add(e);else typeof i==`string`&&n.add(i)}return n}function de(e,t,n){let r=e.acceptTypes??[],i=[];if(r.includes(`dimension`)&&i.push(...n.dimensions),r.includes(`timeDimension`)&&i.push(...n.timeDimFields),r.includes(`measure`)&&i.push(...n.measures),i.length===0)return;let a=ue(t,e.key),o=i.filter(e=>!a.has(e));if(o.length===0)return;let s=e.maxItems??1/0,c=o.slice(0,s);c.length>0&&(t[e.key]=c)}function K(e,t,n){let r=z[e];if(!r)return t??{};let i={...t},a=H(n),o={measures:n.measures??[],dimensions:n.dimensions??[],timeDimFields:a.map(e=>e.dimension)};for(let e of r.dropZones)e.excludeFromInference||V(i[e.key])||(e.key===`sizeField`||e.key===`colorField`?le(e,r,i,o.measures):de(e,i,o));return i}function q(t){return t?e.J(t)?e.Y(t):t:``}function fe(e){let t=[`
|
|
7
7
|
Chart config requirements by type:`];for(let n of e){let e=z[n];if(!e)continue;let r=[q(e.description),q(e.useCase)].filter(Boolean).join(`. `),i=r?` — ${r}.`:``,a=B(n)?` Query MUST set "ungrouped": true, which also means one cube plus its to-one joins — an ungrouped query cannot span a hasMany relationship.`:``,o=e.dropZones.filter(e=>e.mandatory);if(o.length===0&&!e.skipQuery){t.push(` ${n}${i}${a} chartConfig auto-inferred from query.`);continue}if(e.skipQuery){t.push(` ${n}${i} Query optional: omit it for static text, or supply one to render displayConfig.content as a data template.`);continue}let s=o.map(e=>{let t=e.acceptTypes?.join(`/`)??`any`,n=e.maxItems?` (max ${e.maxItems})`:``;return`${e.key}=[${t}]${n}`});t.push(` ${n}${i}${a} Requires ${s.join(`, `)}.`)}return t.join(`
|
|
8
8
|
`)}function J(e,t,n,r){let i=new Set,a=0,o,s,c=!0;for(let n of e){let e=n[t];if(e==null){a++;continue}i.add(e);let r=typeof e==`number`?e:Number(e);typeof e==`boolean`||Number.isNaN(r)?c=!1:(o=o===void 0||r<o?r:o,s=s===void 0||r>s?r:s)}return{field:t,kind:n,...r?{type:r}:{},distinctCount:i.size,nullCount:a,...c&&o!==void 0?{min:o,max:s}:{}}}function pe(e,t){if(e.length===0)return[];let n=[],r=new Set,i=[[`dimension`,t?.dimensions],[`timeDimension`,t?.timeDimensions],[`measure`,t?.measures]];for(let[t,a]of i)for(let[i,o]of Object.entries(a??{}))r.add(i),n.push(J(e,i,t,o?.type));for(let t of Object.keys(e[0]))r.has(t)||n.push(J(e,t,`dimension`,void 0));return n}function Y(e){if(!e||typeof e!=`object`)return!1;let t=e=>Array.isArray(e)?e.length:0;return t(e.measures)>0||t(e.dimensions)>0||t(e.timeDimensions)>0}var X='With a query attached, `content` is rendered as a Knap template over the result rows. Variables: `rows` (rows keyed by snake_case alias, so Employees.avgSalary becomes employees_avg_salary), `labelled` (same rows keyed by field label — use this for `{{ labelled | table }}` so column headers read well), `data` (raw rows, addressed as `{{ data[0]["Employees.count"] }}`), `rowCount`, `first` and `last`. Filters include sum, map, join, length, sort, reverse, slice, round, number_format, date and table. Example: `We employ {{ rows | map:"employees_count" | sum }} people across {{ rowCount }} teams.` A template cannot sort and then index, so rely on the query\'s own order via `first` and `last`.',Z=`bar.line.area.pie.scatter.radar.bubble.table.kpiNumber.kpiDelta.kpiText.funnel.heatmap.sankey.sunburst.retentionHeatmap.retentionCombined.boxPlot.markdown.recordsTable.treemap.radialBar.proportionBar.dotStrip.waterfall.measureProfile.activityGrid.gauge.candlestick`.split(`.`);function me(){return[{name:`discover_cubes`,description:`Search for available data cubes by topic or intent. Call this FIRST to understand what data is available. Returns cube names, measures, dimensions, and relationships.`,parameters:{type:`object`,properties:{topic:{type:`string`,description:`Keyword to search (e.g., "sales", "employees")`},intent:{type:`string`,description:`Natural language goal (e.g., "analyze productivity trends")`},limit:{type:`number`,description:`Max results (default: 10)`},minScore:{type:`number`,description:`Min relevance 0-1 (default: 0.1)`}}}},{name:`get_cube_metadata`,description:`Get full metadata for all registered cubes including all measures, dimensions, types, and relationships. Use this for detailed schema information.`,parameters:{type:`object`,properties:{}}},{name:`execute_query`,description:`Execute a semantic query and return data results. Supports standard queries (measures/dimensions) and analysis modes (funnel/flow/retention). Only provide ONE mode per call.`,parameters:{type:`object`,properties:e.b}},{name:`add_portlet`,description:`Add a chart visualization to the notebook.
|
|
9
9
|
`+fe(Z)+`
|
|
@@ -1918,7 +1918,7 @@ var w = {
|
|
|
1918
1918
|
useCase: "chart.bar.useCase",
|
|
1919
1919
|
isAvailable: y,
|
|
1920
1920
|
dependencies: q,
|
|
1921
|
-
config: async () => (await import("./BarChart.config-
|
|
1921
|
+
config: async () => (await import("./BarChart.config-GlYPKS8R.js")).barChartConfig
|
|
1922
1922
|
},
|
|
1923
1923
|
line: {
|
|
1924
1924
|
label: "chart.line.label",
|
|
@@ -1927,7 +1927,7 @@ var w = {
|
|
|
1927
1927
|
useCase: "chart.line.useCase",
|
|
1928
1928
|
isAvailable: y,
|
|
1929
1929
|
dependencies: q,
|
|
1930
|
-
config: async () => (await import("./LineChart.config-
|
|
1930
|
+
config: async () => (await import("./LineChart.config-Bt6XKzQj.js")).lineChartConfig
|
|
1931
1931
|
},
|
|
1932
1932
|
area: {
|
|
1933
1933
|
label: "chart.area.label",
|
|
@@ -1936,7 +1936,7 @@ var w = {
|
|
|
1936
1936
|
useCase: "chart.area.useCase",
|
|
1937
1937
|
isAvailable: y,
|
|
1938
1938
|
dependencies: q,
|
|
1939
|
-
config: async () => (await import("./AreaChart.config-
|
|
1939
|
+
config: async () => (await import("./AreaChart.config-upS1qK9z.js")).areaChartConfig
|
|
1940
1940
|
},
|
|
1941
1941
|
pie: {
|
|
1942
1942
|
label: "chart.pie.label",
|
|
@@ -1945,7 +1945,7 @@ var w = {
|
|
|
1945
1945
|
useCase: "chart.pie.useCase",
|
|
1946
1946
|
isAvailable: y,
|
|
1947
1947
|
dependencies: q,
|
|
1948
|
-
config: async () => (await import("./PieChart.config-
|
|
1948
|
+
config: async () => (await import("./PieChart.config-CZc5LcmR.js")).pieChartConfig
|
|
1949
1949
|
},
|
|
1950
1950
|
scatter: {
|
|
1951
1951
|
label: "chart.scatter.label",
|
|
@@ -1960,7 +1960,7 @@ var w = {
|
|
|
1960
1960
|
reason: "chart.availability.scatter"
|
|
1961
1961
|
} : { available: !0 },
|
|
1962
1962
|
dependencies: q,
|
|
1963
|
-
config: async () => (await import("./ScatterChart.config-
|
|
1963
|
+
config: async () => (await import("./ScatterChart.config-C90xKdE-.js")).scatterChartConfig
|
|
1964
1964
|
},
|
|
1965
1965
|
bubble: {
|
|
1966
1966
|
label: "chart.bubble.label",
|
|
@@ -1974,8 +1974,7 @@ var w = {
|
|
|
1974
1974
|
available: !1,
|
|
1975
1975
|
reason: "chart.availability.bubble"
|
|
1976
1976
|
} : { available: !0 },
|
|
1977
|
-
|
|
1978
|
-
config: async () => (await import("./BubbleChart.config-DYtZIaKF.js")).bubbleChartConfig
|
|
1977
|
+
config: async () => (await import("./BubbleChart.config-Di8lOOga.js")).bubbleChartConfig
|
|
1979
1978
|
},
|
|
1980
1979
|
radar: {
|
|
1981
1980
|
label: "chart.radar.label",
|
|
@@ -1984,7 +1983,7 @@ var w = {
|
|
|
1984
1983
|
useCase: "chart.radar.useCase",
|
|
1985
1984
|
isAvailable: y,
|
|
1986
1985
|
dependencies: q,
|
|
1987
|
-
config: async () => (await import("./RadarChart.config-
|
|
1986
|
+
config: async () => (await import("./RadarChart.config-CYPyOMbT.js")).radarChartConfig
|
|
1988
1987
|
},
|
|
1989
1988
|
radialBar: {
|
|
1990
1989
|
label: "chart.radialBar.label",
|
|
@@ -1993,7 +1992,7 @@ var w = {
|
|
|
1993
1992
|
useCase: "chart.radialBar.useCase",
|
|
1994
1993
|
isAvailable: y,
|
|
1995
1994
|
dependencies: q,
|
|
1996
|
-
config: async () => (await import("./RadialBarChart.config-
|
|
1995
|
+
config: async () => (await import("./RadialBarChart.config-l9yaKru1.js")).radialBarChartConfig
|
|
1997
1996
|
},
|
|
1998
1997
|
treemap: {
|
|
1999
1998
|
label: "chart.treemap.label",
|
|
@@ -2002,21 +2001,21 @@ var w = {
|
|
|
2002
2001
|
useCase: "chart.treemap.useCase",
|
|
2003
2002
|
isAvailable: y,
|
|
2004
2003
|
dependencies: q,
|
|
2005
|
-
config: async () => (await import("./TreeMapChart.config-
|
|
2004
|
+
config: async () => (await import("./TreeMapChart.config-BYHi-dzk.js")).treemapChartConfig
|
|
2006
2005
|
},
|
|
2007
2006
|
table: {
|
|
2008
2007
|
label: "chart.table.label",
|
|
2009
2008
|
icon: "chartTable",
|
|
2010
2009
|
description: "chart.table.description",
|
|
2011
2010
|
useCase: "chart.table.useCase",
|
|
2012
|
-
config: async () => (await import("./DataTable.config-
|
|
2011
|
+
config: async () => (await import("./DataTable.config-DbPDoKSt.js")).dataTableConfig
|
|
2013
2012
|
},
|
|
2014
2013
|
recordsTable: {
|
|
2015
2014
|
label: "chart.recordsTable.label",
|
|
2016
2015
|
icon: "chartRecordsTable",
|
|
2017
2016
|
description: "chart.recordsTable.description",
|
|
2018
2017
|
useCase: "chart.recordsTable.useCase",
|
|
2019
|
-
config: async () => (await import("./RecordsTable.config-
|
|
2018
|
+
config: async () => (await import("./RecordsTable.config-CbtJMaVG.js")).recordsTableConfig
|
|
2020
2019
|
},
|
|
2021
2020
|
activityGrid: {
|
|
2022
2021
|
label: "chart.activityGrid.label",
|
|
@@ -2030,7 +2029,7 @@ var w = {
|
|
|
2030
2029
|
available: !1,
|
|
2031
2030
|
reason: "chart.availability.requiresTimeDimension"
|
|
2032
2031
|
} : { available: !0 },
|
|
2033
|
-
config: async () => (await import("./ActivityGridChart.config-
|
|
2032
|
+
config: async () => (await import("./ActivityGridChart.config-BDe2_qYC.js")).activityGridChartConfig
|
|
2034
2033
|
},
|
|
2035
2034
|
kpiNumber: {
|
|
2036
2035
|
label: "chart.kpiNumber.label",
|
|
@@ -2038,7 +2037,7 @@ var w = {
|
|
|
2038
2037
|
description: "chart.kpiNumber.description",
|
|
2039
2038
|
useCase: "chart.kpiNumber.useCase",
|
|
2040
2039
|
isAvailable: f,
|
|
2041
|
-
config: async () => (await import("./KpiNumber.config-
|
|
2040
|
+
config: async () => (await import("./KpiNumber.config-CnYoD9WM.js")).kpiNumberConfig
|
|
2042
2041
|
},
|
|
2043
2042
|
kpiDelta: {
|
|
2044
2043
|
label: "chart.kpiDelta.label",
|
|
@@ -2046,7 +2045,7 @@ var w = {
|
|
|
2046
2045
|
description: "chart.kpiDelta.description",
|
|
2047
2046
|
useCase: "chart.kpiDelta.useCase",
|
|
2048
2047
|
isAvailable: y,
|
|
2049
|
-
config: async () => (await import("./KpiDelta.config-
|
|
2048
|
+
config: async () => (await import("./KpiDelta.config-qC8_1W29.js")).kpiDeltaConfig
|
|
2050
2049
|
},
|
|
2051
2050
|
kpiText: {
|
|
2052
2051
|
label: "chart.kpiText.label",
|
|
@@ -2054,14 +2053,14 @@ var w = {
|
|
|
2054
2053
|
description: "chart.kpiText.description",
|
|
2055
2054
|
useCase: "chart.kpiText.useCase",
|
|
2056
2055
|
isAvailable: f,
|
|
2057
|
-
config: async () => (await import("./KpiText.config
|
|
2056
|
+
config: async () => (await import("./KpiText.config--11XBVEz.js")).kpiTextConfig
|
|
2058
2057
|
},
|
|
2059
2058
|
markdown: {
|
|
2060
2059
|
label: "chart.markdown.label",
|
|
2061
2060
|
icon: "chartMarkdown",
|
|
2062
2061
|
description: "chart.markdown.description",
|
|
2063
2062
|
useCase: "chart.markdown.useCase",
|
|
2064
|
-
config: async () => (await import("./MarkdownChart.config-
|
|
2063
|
+
config: async () => (await import("./MarkdownChart.config-Br1jAwCf.js")).markdownConfig
|
|
2065
2064
|
},
|
|
2066
2065
|
funnel: {
|
|
2067
2066
|
label: "chart.funnel.label",
|
|
@@ -2069,7 +2068,7 @@ var w = {
|
|
|
2069
2068
|
description: "chart.funnel.description",
|
|
2070
2069
|
useCase: "chart.funnel.useCase",
|
|
2071
2070
|
dependencies: q,
|
|
2072
|
-
config: async () => (await import("./FunnelChart.config-
|
|
2071
|
+
config: async () => (await import("./FunnelChart.config-CRbPp-7K.js")).funnelChartConfig
|
|
2073
2072
|
},
|
|
2074
2073
|
sankey: {
|
|
2075
2074
|
label: "chart.sankey.label",
|
|
@@ -2077,7 +2076,7 @@ var w = {
|
|
|
2077
2076
|
description: "chart.sankey.description",
|
|
2078
2077
|
useCase: "chart.sankey.useCase",
|
|
2079
2078
|
dependencies: q,
|
|
2080
|
-
config: async () => (await import("./SankeyChart.config-
|
|
2079
|
+
config: async () => (await import("./SankeyChart.config-DpK5pFy5.js")).sankeyChartConfig
|
|
2081
2080
|
},
|
|
2082
2081
|
sunburst: {
|
|
2083
2082
|
label: "chart.sunburst.label",
|
|
@@ -2085,7 +2084,7 @@ var w = {
|
|
|
2085
2084
|
description: "chart.sunburst.description",
|
|
2086
2085
|
useCase: "chart.sunburst.useCase",
|
|
2087
2086
|
dependencies: q,
|
|
2088
|
-
config: async () => (await import("./SunburstChart.config-
|
|
2087
|
+
config: async () => (await import("./SunburstChart.config-MoFnOy0s.js")).sunburstChartConfig
|
|
2089
2088
|
},
|
|
2090
2089
|
heatmap: {
|
|
2091
2090
|
label: "chart.heatmap.label",
|
|
@@ -2103,21 +2102,21 @@ var w = {
|
|
|
2103
2102
|
packageName: "@nivo/heatmap",
|
|
2104
2103
|
installCommand: "npm install @nivo/heatmap"
|
|
2105
2104
|
},
|
|
2106
|
-
config: async () => (await import("./HeatMapChart.config-
|
|
2105
|
+
config: async () => (await import("./HeatMapChart.config-BloGhLrU.js")).heatmapChartConfig
|
|
2107
2106
|
},
|
|
2108
2107
|
retentionHeatmap: {
|
|
2109
2108
|
label: "chart.retentionHeatmap.label",
|
|
2110
2109
|
icon: "chartRetention",
|
|
2111
2110
|
description: "chart.retentionHeatmap.description",
|
|
2112
2111
|
useCase: "chart.retentionHeatmap.useCase",
|
|
2113
|
-
config: async () => (await import("./RetentionHeatmap.config-
|
|
2112
|
+
config: async () => (await import("./RetentionHeatmap.config-DPNhEK1p.js")).retentionHeatmapConfig
|
|
2114
2113
|
},
|
|
2115
2114
|
retentionCombined: {
|
|
2116
2115
|
label: "chart.retentionCombined.label",
|
|
2117
2116
|
icon: "chartRetention",
|
|
2118
2117
|
description: "chart.retentionCombined.description",
|
|
2119
2118
|
useCase: "chart.retentionCombined.useCase",
|
|
2120
|
-
config: async () => (await import("./RetentionCombinedChart.config-
|
|
2119
|
+
config: async () => (await import("./RetentionCombinedChart.config-CtJ-q7Gr.js")).retentionCombinedConfig
|
|
2121
2120
|
},
|
|
2122
2121
|
boxPlot: {
|
|
2123
2122
|
label: "chart.boxPlot.label",
|
|
@@ -2125,7 +2124,7 @@ var w = {
|
|
|
2125
2124
|
description: "chart.boxPlot.description",
|
|
2126
2125
|
useCase: "chart.boxPlot.useCase",
|
|
2127
2126
|
isAvailable: y,
|
|
2128
|
-
config: async () => (await import("./BoxPlotChart.config-
|
|
2127
|
+
config: async () => (await import("./BoxPlotChart.config-DybpbTEl.js")).boxPlotChartConfig
|
|
2129
2128
|
},
|
|
2130
2129
|
dotStrip: {
|
|
2131
2130
|
label: "chart.dotStrip.label",
|
|
@@ -2133,7 +2132,7 @@ var w = {
|
|
|
2133
2132
|
description: "chart.dotStrip.description",
|
|
2134
2133
|
useCase: "chart.dotStrip.useCase",
|
|
2135
2134
|
isAvailable: y,
|
|
2136
|
-
config: async () => (await import("./DotStripChart.config-
|
|
2135
|
+
config: async () => (await import("./DotStripChart.config-Xxte1OgG.js")).dotStripChartConfig
|
|
2137
2136
|
},
|
|
2138
2137
|
waterfall: {
|
|
2139
2138
|
label: "chart.waterfall.label",
|
|
@@ -2142,7 +2141,7 @@ var w = {
|
|
|
2142
2141
|
useCase: "chart.waterfall.useCase",
|
|
2143
2142
|
isAvailable: y,
|
|
2144
2143
|
dependencies: q,
|
|
2145
|
-
config: async () => (await import("./WaterfallChart.config-
|
|
2144
|
+
config: async () => (await import("./WaterfallChart.config-TNtq-2mo.js")).waterfallChartConfig
|
|
2146
2145
|
},
|
|
2147
2146
|
candlestick: {
|
|
2148
2147
|
label: "chart.candlestick.label",
|
|
@@ -2156,7 +2155,7 @@ var w = {
|
|
|
2156
2155
|
available: !1,
|
|
2157
2156
|
reason: "chart.availability.requiresDimension"
|
|
2158
2157
|
} : { available: !0 },
|
|
2159
|
-
config: async () => (await import("./CandlestickChart.config-
|
|
2158
|
+
config: async () => (await import("./CandlestickChart.config-CTHDWBM7.js")).candlestickChartConfig
|
|
2160
2159
|
},
|
|
2161
2160
|
measureProfile: {
|
|
2162
2161
|
label: "chart.measureProfile.label",
|
|
@@ -2168,7 +2167,7 @@ var w = {
|
|
|
2168
2167
|
reason: "chart.availability.requiresTwoMeasures"
|
|
2169
2168
|
} : { available: !0 },
|
|
2170
2169
|
dependencies: q,
|
|
2171
|
-
config: async () => (await import("./MeasureProfileChart.config-
|
|
2170
|
+
config: async () => (await import("./MeasureProfileChart.config-B0G_11c9.js")).measureProfileChartConfig
|
|
2172
2171
|
},
|
|
2173
2172
|
proportionBar: {
|
|
2174
2173
|
label: "chart.proportionBar.label",
|
|
@@ -2176,7 +2175,7 @@ var w = {
|
|
|
2176
2175
|
description: "chart.proportionBar.description",
|
|
2177
2176
|
useCase: "chart.proportionBar.useCase",
|
|
2178
2177
|
isAvailable: y,
|
|
2179
|
-
config: async () => (await import("./ProportionBarChart.config-
|
|
2178
|
+
config: async () => (await import("./ProportionBarChart.config-BMIYtg7Q.js")).proportionBarChartConfig
|
|
2180
2179
|
},
|
|
2181
2180
|
gauge: {
|
|
2182
2181
|
label: "chart.gauge.label",
|
|
@@ -2184,11 +2183,7 @@ var w = {
|
|
|
2184
2183
|
description: "chart.gauge.description",
|
|
2185
2184
|
useCase: "chart.gauge.useCase",
|
|
2186
2185
|
isAvailable: f,
|
|
2187
|
-
|
|
2188
|
-
packageName: "d3-shape",
|
|
2189
|
-
installCommand: "npm install d3-shape"
|
|
2190
|
-
},
|
|
2191
|
-
config: async () => (await import("./GaugeChart.config-sHuMiR0R.js")).gaugeChartConfig
|
|
2186
|
+
config: async () => (await import("./GaugeChart.config-CKKMCRn4.js")).gaugeChartConfig
|
|
2192
2187
|
}
|
|
2193
2188
|
};
|
|
2194
2189
|
function he(e, t) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cors-headers-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../cors-headers-D0ofhz3k.cjs"),t=require("../mcp-transport-DnnABB3F.cjs"),n=require("../core-Ib5DN_B6.cjs");let r=require("hono");var i=e=>{let t={origin:`*`,allowMethods:[`GET`,`HEAD`,`PUT`,`POST`,`DELETE`,`PATCH`,`QUERY`],allowHeaders:[],exposeHeaders:[],...e},n=t.exposeHeaders?.length?t.exposeHeaders.join(`,`):void 0,r=t.allowHeaders?.length?t.allowHeaders.join(`,`):void 0,i=(e=>typeof e==`string`?e===`*`?()=>e:t=>e===t?t:null:typeof e==`function`?e:t=>e.includes(t)?t:null)(t.origin),a=(e=>{if(typeof e==`function`)return async(t,n)=>(await e(t,n)).join(`,`);if(Array.isArray(e)){let t=e.join(`,`);return()=>t}return()=>``})(t.allowMethods);return async function(e,o){function s(t,n){e.res.headers.set(t,n)}let c=await i(e.req.header(`origin`)||``,e);if(c&&s(`Access-Control-Allow-Origin`,c),t.credentials&&s(`Access-Control-Allow-Credentials`,`true`),n&&s(`Access-Control-Expose-Headers`,n),e.req.method===`OPTIONS`){t.origin!==`*`&&e.res.headers.append(`Vary`,`Origin`),t.maxAge!=null&&s(`Access-Control-Max-Age`,t.maxAge.toString());let n=await a(e.req.header(`origin`)||``,e);n&&s(`Access-Control-Allow-Methods`,n);let i=r;if(!i){let t=e.req.header(`Access-Control-Request-Headers`);t&&(i=t.split(`,`).map(e=>e.trim()).join(`,`))}return i&&(s(`Access-Control-Allow-Headers`,i),e.res.headers.append(`Vary`,`Access-Control-Request-Headers`)),e.res.headers.delete(`Content-Length`),e.res.headers.delete(`Content-Type`),new Response(null,{headers:e.res.headers,status:204,statusText:`No Content`})}await o(),t.origin!==`*`&&e.header(`Vary`,`Origin`,{append:!0})}};function a(e,t){let n=(t.apiKey||``).trim();if(t.allowClientApiKey){let t=e.req.header(`x-agent-api-key`);t&&(n=t.trim())}return n}function o(e,t){return t.allowClientApiKey?{providerOverride:e.req.header(`x-agent-provider`),modelOverride:e.req.header(`x-agent-model`),baseURLOverride:e.req.header(`x-agent-provider-endpoint`)}:{}}function s(e){let t=new TextEncoder,n=new ReadableStream({async start(n){try{for await(let r of e)n.enqueue(t.encode(`data: ${JSON.stringify(r)}\n\n`))}catch(e){let r={type:`error`,data:{message:e instanceof Error?e.message:`Stream failed`}};n.enqueue(t.encode(`data: ${JSON.stringify(r)}\n\n`))}finally{n.close()}}});return new Response(n,{status:200,headers:{"Content-Type":`text/event-stream`,"Cache-Control":`no-cache`,Connection:`keep-alive`}})}async function c(e,t,n,r){try{let{handleAgentChat:i}=await Promise.resolve().then(()=>require("../handler-CRAPq8xB.cjs")),{message:c,sessionId:l,history:u}=await e.req.json();if(!c||typeof c!=`string`)return e.json({error:`message is required and must be a string`},400);let d=a(e,t);if(!d)return e.json({error:`No API key configured. Set agent.apiKey in server config or send X-Agent-Api-Key header.`},401);let{providerOverride:f,modelOverride:p,baseURLOverride:m}=o(e,t),h=await r(e),g=t.buildSystemContext?.(h);return s(i({message:c,sessionId:l,history:u,semanticLayer:n,securityContext:h,agentConfig:t,apiKey:d,systemContext:g,providerOverride:f,modelOverride:p,baseURLOverride:m}))}catch(t){return console.error(`Agent chat error:`,t),e.json({error:t instanceof Error?t.message:`Agent chat failed`},500)}}function l(e){return{getHeader:t=>e.req.header(t),getBody:async()=>{try{return await e.req.json()}catch{return null}},getQueryParam:t=>e.req.query(t),send:(t,n)=>e.json(n,t),setHeader:(t,n)=>{e.header(t,n)},sendEmpty:t=>e.body(null,t),sendSse:(t,n)=>(e.header(`Content-Type`,`text/event-stream`),e.header(`Cache-Control`,`no-cache`),e.header(`Connection`,`keep-alive`),e.body(n,t))}}function u(a){let{cubes:o,drizzle:s,schema:u,extractSecurityContext:d,engineType:f,cors:p,basePath:m=`/cubejs-api/v1`,cache:h,mcp:g={enabled:!0},agent:_}=a;if(!a.semanticLayer&&(!o||o.length===0))throw Error(`Either semanticLayer or a non-empty cubes array must be provided`);let v=new r.Hono;if(p){let t=e.t(p.allowHeaders),n=t?{...p,allowHeaders:t}:p;v.use(`/*`,i(n))}let y=a.semanticLayer??new e.n({drizzle:s,schema:u,engineType:f,cache:h,rlsSetup:a.rlsSetup});!a.semanticLayer&&o&&o.forEach(e=>{y.registerCube(e)});let b=n.t({semanticLayer:y,onError:e=>console.error(`Query execution error:`,e),mcp:g}),x=e=>()=>d(e);if(v.post(`${m}/load`,e=>b.handleLoadPost(l(e),x(e))),v.get(`${m}/load`,e=>b.handleLoadGet(l(e),x(e))),v.post(`${m}/batch`,e=>b.handleBatchPost(l(e),x(e))),v.get(`${m}/meta`,e=>b.handleMetaGet(l(e),x(e))),v.post(`${m}/sql`,e=>b.handleSqlPost(l(e),x(e))),v.get(`${m}/sql`,e=>b.handleSqlGet(l(e),x(e))),v.post(`${m}/dry-run`,e=>b.handleDryRunPost(l(e),x(e))),v.get(`${m}/dry-run`,e=>b.handleDryRunGet(l(e),x(e))),v.post(`${m}/explain`,e=>b.handleExplainPost(l(e),x(e))),_&&v.post(`${m}/agent/chat`,e=>c(e,_,y,e=>Promise.resolve(d(e)).then(t=>n.r(t,t=>e.req.header(t))))),g.enabled!==!1){let e=g.basePath??`/mcp`;v.post(`${e}`,e=>b.handleMcpPost(l(e),x(e))),v.delete(`${e}`,e=>{let n=t.C(e.req.header(`origin`),t.h(g));return n.valid?g.resourceMetadataUrl&&!t.l(e.req.header(`authorization`))?(e.header(`WWW-Authenticate`,t.s(g.resourceMetadataUrl)),e.json({error:`Bearer token required`},401)):e.json({error:`Session termination not supported`},405):e.json({error:n.reason},403)}),v.get(`${e}`,e=>{let n=t.C(e.req.header(`origin`),t.h(g));if(!n.valid)return e.json({error:n.reason},403);if(g.resourceMetadataUrl&&!t.l(e.req.header(`authorization`)))return e.header(`WWW-Authenticate`,t.s(g.resourceMetadataUrl)),e.json({error:`Bearer token required`},401);let r=new TextEncoder,i=t._(),a,o=new ReadableStream({start(e){e.enqueue(r.encode(t.x({jsonrpc:`2.0`,method:`mcp/ready`,params:{protocol:`streamable-http`}},i,15e3))),a=setInterval(()=>{e.enqueue(r.encode(`: keep-alive
|
|
2
2
|
|
|
3
3
|
`))},15e3)},cancel(){clearInterval(a)}});return new Response(o,{status:200,headers:{"Content-Type":`text/event-stream`,"Cache-Control":`no-cache`,Connection:`keep-alive`}})})}return v}function d(e,t){let n=u(t);return e.route(`/`,n),e}function f(e){return d(new r.Hono,e)}exports.createCubeApp=f,exports.createCubeRoutes=u,exports.mountCubeRoutes=d;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "../cors-headers-
|
|
1
|
+
import { n as e, t } from "../cors-headers-DPNvO_6o.js";
|
|
2
2
|
import { C as n, _ as r, h as i, l as a, s as o, x as s } from "../mcp-transport-DpJDF0M_.js";
|
|
3
3
|
import { r as c, t as l } from "../core-D1FtXGPM.js";
|
|
4
4
|
import { Hono as u } from "hono";
|
|
@@ -91,7 +91,7 @@ function m(e) {
|
|
|
91
91
|
}
|
|
92
92
|
async function h(e, t, n, r) {
|
|
93
93
|
try {
|
|
94
|
-
let { handleAgentChat: i } = await import("../handler-
|
|
94
|
+
let { handleAgentChat: i } = await import("../handler-Dqe0_Uvx.js"), { message: a, sessionId: o, history: s } = await e.req.json();
|
|
95
95
|
if (!a || typeof a != "string") return e.json({ error: "message is required and must be a string" }, 400);
|
|
96
96
|
let c = f(e, t);
|
|
97
97
|
if (!c) return e.json({ error: "No API key configured. Set agent.apiKey in server config or send X-Agent-Api-Key header." }, 401);
|
|
@@ -139,11 +139,11 @@ function _(f) {
|
|
|
139
139
|
if (!f.semanticLayer && (!p || p.length === 0)) throw Error("Either semanticLayer or a non-empty cubes array must be provided");
|
|
140
140
|
let T = new u();
|
|
141
141
|
if (b) {
|
|
142
|
-
let e = {
|
|
142
|
+
let e = t(b.allowHeaders), n = e ? {
|
|
143
143
|
...b,
|
|
144
|
-
allowHeaders:
|
|
145
|
-
};
|
|
146
|
-
T.use("/*", d(
|
|
144
|
+
allowHeaders: e
|
|
145
|
+
} : b;
|
|
146
|
+
T.use("/*", d(n));
|
|
147
147
|
}
|
|
148
148
|
let E = f.semanticLayer ?? new e({
|
|
149
149
|
drizzle: m,
|