drizzle-cube 0.5.4 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/express/index.cjs +1 -1
- package/dist/adapters/express/index.js +4 -4
- package/dist/adapters/fastify/index.cjs +1 -1
- package/dist/adapters/fastify/index.js +4 -4
- package/dist/adapters/{handler-CNn3q29F.cjs → handler-C0nUppAK.cjs} +3 -3
- package/dist/adapters/{handler-_TKfigrZ.js → handler-Odsi9_Rd.js} +125 -1
- package/dist/adapters/hono/index.cjs +1 -1
- package/dist/adapters/hono/index.js +4 -4
- package/dist/adapters/{locale-Dl_3R6hP.cjs → locale-Dv6bl_eU.cjs} +2 -2
- package/dist/adapters/{locale-BQQrZYhz.js → locale-Dy3LcTwN.js} +4 -2
- package/dist/adapters/mcp-tools.cjs +1 -1
- package/dist/adapters/mcp-tools.js +8 -3
- package/dist/adapters/mcp-transport-BCtjU0lC.cjs +40 -0
- package/dist/adapters/mcp-transport-DW_Uks-O.js +579 -0
- package/dist/adapters/nextjs/index.cjs +1 -1
- package/dist/adapters/nextjs/index.js +4 -4
- package/dist/adapters/{utils-DG8ti3FT.js → utils-Bd5mzZfk.js} +44 -18
- package/dist/adapters/utils-DklqMBHn.cjs +128 -0
- package/dist/adapters/utils.cjs +1 -1
- package/dist/adapters/utils.d.ts +6 -1
- package/dist/adapters/utils.js +1 -1
- package/dist/client/charts/chartConfigs.d.ts +34 -0
- package/dist/client/charts.js +12 -12
- package/dist/client/chunks/{DashboardEditModal-BBcB0E2g.js → DashboardEditModal-BiJwVv0b.js} +11 -11
- package/dist/client/chunks/DashboardEditModal-BiJwVv0b.js.map +1 -0
- package/dist/client/chunks/{FieldSearchModal-CisOov-_.js → FieldSearchModal-DdcbCwAi.js} +21 -5
- package/dist/client/chunks/{FieldSearchModal-CisOov-_.js.map → FieldSearchModal-DdcbCwAi.js.map} +1 -1
- package/dist/client/chunks/{RetentionCombinedChart-DiyZwiPv.js → RetentionCombinedChart-CivIny9P.js} +3 -3
- package/dist/client/chunks/{RetentionCombinedChart-DiyZwiPv.js.map → RetentionCombinedChart-CivIny9P.js.map} +1 -1
- package/dist/client/chunks/{RetentionHeatmap-usGF7BCo.js → RetentionHeatmap-BHCgwZmB.js} +2 -2
- package/dist/client/chunks/{RetentionHeatmap-usGF7BCo.js.map → RetentionHeatmap-BHCgwZmB.js.map} +1 -1
- package/dist/client/chunks/{af-ZA-xDmO5F0s.js → af-ZA-BdL6DOWy.js} +10 -3
- package/dist/client/chunks/af-ZA-BdL6DOWy.js.map +1 -0
- package/dist/client/chunks/{analysis-builder-0o1W-k3K.js → analysis-builder-MoGvbMRe.js} +245 -255
- package/dist/client/chunks/analysis-builder-MoGvbMRe.js.map +1 -0
- package/dist/client/chunks/{analysis-builder-shared-Cz4KAlIC.js → analysis-builder-shared-DmyRh2O3.js} +391 -459
- package/dist/client/chunks/analysis-builder-shared-DmyRh2O3.js.map +1 -0
- package/dist/client/chunks/{chart-activity-grid-VFFm85hC.js → chart-activity-grid-Bdb8U_NC.js} +14 -7
- package/dist/client/chunks/chart-activity-grid-Bdb8U_NC.js.map +1 -0
- package/dist/client/chunks/{chart-area-CwwIHTmK.js → chart-area-BZEnT-tf.js} +39 -38
- package/dist/client/chunks/chart-area-BZEnT-tf.js.map +1 -0
- package/dist/client/chunks/{chart-bar-Bmny922L.js → chart-bar-CTmdv_v0.js} +53 -52
- package/dist/client/chunks/chart-bar-CTmdv_v0.js.map +1 -0
- package/dist/client/chunks/{chart-box-plot-DM7GwtCV.js → chart-box-plot-CYObdFtp.js} +3 -3
- package/dist/client/chunks/{chart-box-plot-DM7GwtCV.js.map → chart-box-plot-CYObdFtp.js.map} +1 -1
- package/dist/client/chunks/{chart-bubble-DJOq4IpT.js → chart-bubble-CjFprySz.js} +3 -3
- package/dist/client/chunks/{chart-bubble-DJOq4IpT.js.map → chart-bubble-CjFprySz.js.map} +1 -1
- package/dist/client/chunks/{chart-candlestick-C2nzVCv1.js → chart-candlestick-D2HoM3B5.js} +3 -3
- package/dist/client/chunks/{chart-candlestick-C2nzVCv1.js.map → chart-candlestick-D2HoM3B5.js.map} +1 -1
- package/dist/client/chunks/{chart-config-activity-grid-C-EkgYoa.js → chart-config-activity-grid-Bom99j9m.js} +9 -2
- package/dist/client/chunks/chart-config-activity-grid-Bom99j9m.js.map +1 -0
- package/dist/client/chunks/{chart-config-area-CMZpbIah.js → chart-config-area-DtYTKZxS.js} +10 -2
- package/dist/client/chunks/chart-config-area-DtYTKZxS.js.map +1 -0
- package/dist/client/chunks/{chart-config-bar-B8_V4YLg.js → chart-config-bar-7v5JVY2y.js} +10 -2
- package/dist/client/chunks/chart-config-bar-7v5JVY2y.js.map +1 -0
- package/dist/client/chunks/{chart-config-box-plot-Dwj7sEbU.js → chart-config-box-plot-BHGv-wqu.js} +9 -2
- package/dist/client/chunks/chart-config-box-plot-BHGv-wqu.js.map +1 -0
- package/dist/client/chunks/{chart-config-bubble-B0w0ZVp4.js → chart-config-bubble-BkHm-mfu.js} +9 -2
- package/dist/client/chunks/chart-config-bubble-BkHm-mfu.js.map +1 -0
- package/dist/client/chunks/{chart-config-candlestick-Bvo3zeIn.js → chart-config-candlestick-D1aaHvTe.js} +9 -2
- package/dist/client/chunks/chart-config-candlestick-D1aaHvTe.js.map +1 -0
- package/dist/client/chunks/{chart-config-data-table-BQXSn4b_.js → chart-config-data-table-B_Hw8w2J.js} +2 -2
- package/dist/client/chunks/{chart-config-data-table-BQXSn4b_.js.map → chart-config-data-table-B_Hw8w2J.js.map} +1 -1
- package/dist/client/chunks/{chart-config-funnel-BzEsHmjR.js → chart-config-funnel-DL8PSGuL.js} +2 -2
- package/dist/client/chunks/{chart-config-funnel-BzEsHmjR.js.map → chart-config-funnel-DL8PSGuL.js.map} +1 -1
- package/dist/client/chunks/{chart-config-gauge-C5ZiyZy7.js → chart-config-gauge-BVLxuA3f.js} +6 -2
- package/dist/client/chunks/chart-config-gauge-BVLxuA3f.js.map +1 -0
- package/dist/client/chunks/{chart-config-heat-map-Cv8qNnVP.js → chart-config-heat-map-CjudGdui.js} +9 -2
- package/dist/client/chunks/chart-config-heat-map-CjudGdui.js.map +1 -0
- package/dist/client/chunks/{chart-config-kpi-delta-BraHQc2E.js → chart-config-kpi-delta-Bf47hGqD.js} +9 -2
- package/dist/client/chunks/chart-config-kpi-delta-Bf47hGqD.js.map +1 -0
- package/dist/client/chunks/{chart-config-kpi-number-CeCkx7mC.js → chart-config-kpi-number-QTQRNgOi.js} +6 -2
- package/dist/client/chunks/chart-config-kpi-number-QTQRNgOi.js.map +1 -0
- package/dist/client/chunks/{chart-config-kpi-text-CImM3SvH.js → chart-config-kpi-text-BRze2eyh.js} +6 -2
- package/dist/client/chunks/chart-config-kpi-text-BRze2eyh.js.map +1 -0
- package/dist/client/chunks/{chart-config-line-BVKapAQK.js → chart-config-line-BFeCqmKH.js} +10 -2
- package/dist/client/chunks/chart-config-line-BFeCqmKH.js.map +1 -0
- package/dist/client/chunks/{chart-config-markdown-C-_g_8te.js → chart-config-markdown-EWYckwXv.js} +2 -2
- package/dist/client/chunks/{chart-config-markdown-C-_g_8te.js.map → chart-config-markdown-EWYckwXv.js.map} +1 -1
- package/dist/client/chunks/{chart-config-measure-profile-KTVV1gO3.js → chart-config-measure-profile-B9nIhqKR.js} +6 -2
- package/dist/client/chunks/chart-config-measure-profile-B9nIhqKR.js.map +1 -0
- package/dist/client/chunks/{chart-config-pie-BZxVl25X.js → chart-config-pie-6LHtEyMM.js} +9 -2
- package/dist/client/chunks/chart-config-pie-6LHtEyMM.js.map +1 -0
- package/dist/client/chunks/{chart-config-radar-B7FByX3t.js → chart-config-radar-BuLS6Inn.js} +9 -2
- package/dist/client/chunks/chart-config-radar-BuLS6Inn.js.map +1 -0
- package/dist/client/chunks/{chart-config-radial-bar-UfW_3yyX.js → chart-config-radial-bar-BP0eMohx.js} +9 -2
- package/dist/client/chunks/chart-config-radial-bar-BP0eMohx.js.map +1 -0
- package/dist/client/chunks/{chart-config-sankey-DGAThN9i.js → chart-config-sankey-CT8oGIGP.js} +2 -2
- package/dist/client/chunks/{chart-config-sankey-DGAThN9i.js.map → chart-config-sankey-CT8oGIGP.js.map} +1 -1
- package/dist/client/chunks/{chart-config-scatter-BVVJuOnt.js → chart-config-scatter-DOSpN07Z.js} +9 -2
- package/dist/client/chunks/chart-config-scatter-DOSpN07Z.js.map +1 -0
- package/dist/client/chunks/{chart-config-sunburst-utejM2YS.js → chart-config-sunburst-BSUX_YoB.js} +2 -2
- package/dist/client/chunks/{chart-config-sunburst-utejM2YS.js.map → chart-config-sunburst-BSUX_YoB.js.map} +1 -1
- package/dist/client/chunks/{chart-config-tree-map-IHp97OyV.js → chart-config-tree-map-D8GuAgVB.js} +9 -2
- package/dist/client/chunks/chart-config-tree-map-D8GuAgVB.js.map +1 -0
- package/dist/client/chunks/{chart-config-waterfall-BdqG1V-x.js → chart-config-waterfall-BDi7BoJP.js} +9 -2
- package/dist/client/chunks/chart-config-waterfall-BDi7BoJP.js.map +1 -0
- package/dist/client/chunks/{chart-data-table-zZtwLf55.js → chart-data-table-DT4uBZaq.js} +92 -90
- package/dist/client/chunks/{chart-data-table-zZtwLf55.js.map → chart-data-table-DT4uBZaq.js.map} +1 -1
- package/dist/client/chunks/{chart-funnel-COTJy8BP.js → chart-funnel-B9crR3b3.js} +3 -3
- package/dist/client/chunks/{chart-funnel-COTJy8BP.js.map → chart-funnel-B9crR3b3.js.map} +1 -1
- package/dist/client/chunks/{chart-gauge-C8lIneI0.js → chart-gauge-DAMFsicz.js} +3 -3
- package/dist/client/chunks/{chart-gauge-C8lIneI0.js.map → chart-gauge-DAMFsicz.js.map} +1 -1
- package/dist/client/chunks/{chart-heat-map-BJXt3RMt.js → chart-heat-map-BxgM_X1G.js} +3 -3
- package/dist/client/chunks/{chart-heat-map-BJXt3RMt.js.map → chart-heat-map-BxgM_X1G.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-delta-DHkNqufb.js → chart-kpi-delta-DJKL02Ut.js} +75 -73
- package/dist/client/chunks/{chart-kpi-delta-DHkNqufb.js.map → chart-kpi-delta-DJKL02Ut.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-number-BrXw7m-S.js → chart-kpi-number-CuNEYbRx.js} +66 -65
- package/dist/client/chunks/{chart-kpi-number-BrXw7m-S.js.map → chart-kpi-number-CuNEYbRx.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-text-D0plngLV.js → chart-kpi-text-u8FJaZDQ.js} +27 -26
- package/dist/client/chunks/{chart-kpi-text-D0plngLV.js.map → chart-kpi-text-u8FJaZDQ.js.map} +1 -1
- package/dist/client/chunks/{chart-line-DKvW32U-.js → chart-line-BZhzOjRl.js} +119 -118
- package/dist/client/chunks/chart-line-BZhzOjRl.js.map +1 -0
- package/dist/client/chunks/{chart-markdown-CJU2hUq3.js → chart-markdown-DEtjn8gx.js} +70 -69
- package/dist/client/chunks/chart-markdown-DEtjn8gx.js.map +1 -0
- package/dist/client/chunks/{chart-measure-profile-DNT_tbh4.js → chart-measure-profile-BnpIOS4Q.js} +4 -4
- package/dist/client/chunks/{chart-measure-profile-DNT_tbh4.js.map → chart-measure-profile-BnpIOS4Q.js.map} +1 -1
- package/dist/client/chunks/{chart-pie-CzYnncO-.js → chart-pie-CsdzxmSK.js} +4 -4
- package/dist/client/chunks/{chart-pie-CzYnncO-.js.map → chart-pie-CsdzxmSK.js.map} +1 -1
- package/dist/client/chunks/{chart-radar-8iAt3QZl.js → chart-radar-C_9RwMKw.js} +4 -4
- package/dist/client/chunks/{chart-radar-8iAt3QZl.js.map → chart-radar-C_9RwMKw.js.map} +1 -1
- package/dist/client/chunks/{chart-radial-bar-CJbG7RIe.js → chart-radial-bar-CewRelyQ.js} +4 -4
- package/dist/client/chunks/{chart-radial-bar-CJbG7RIe.js.map → chart-radial-bar-CewRelyQ.js.map} +1 -1
- package/dist/client/chunks/{chart-sankey-C-wLBUmb.js → chart-sankey-ItraHWH1.js} +3 -3
- package/dist/client/chunks/{chart-sankey-C-wLBUmb.js.map → chart-sankey-ItraHWH1.js.map} +1 -1
- package/dist/client/chunks/{chart-scatter-NMjD1lbW.js → chart-scatter-k2IJbO2Y.js} +4 -4
- package/dist/client/chunks/{chart-scatter-NMjD1lbW.js.map → chart-scatter-k2IJbO2Y.js.map} +1 -1
- package/dist/client/chunks/{chart-sunburst-HtJ-LJ7n.js → chart-sunburst-NsFRuqi9.js} +4 -4
- package/dist/client/chunks/{chart-sunburst-HtJ-LJ7n.js.map → chart-sunburst-NsFRuqi9.js.map} +1 -1
- package/dist/client/chunks/{chart-tree-map-CetaLMt8.js → chart-tree-map-Cj_ewpwJ.js} +4 -4
- package/dist/client/chunks/{chart-tree-map-CetaLMt8.js.map → chart-tree-map-Cj_ewpwJ.js.map} +1 -1
- package/dist/client/chunks/{chart-waterfall-ontNp1Sd.js → chart-waterfall-C-MTFcOz.js} +4 -4
- package/dist/client/chunks/{chart-waterfall-ontNp1Sd.js.map → chart-waterfall-C-MTFcOz.js.map} +1 -1
- package/dist/client/chunks/{charts-core-B5UXUg6_.js → charts-core-vZA3zPKb.js} +2 -2
- package/dist/client/chunks/{charts-core-B5UXUg6_.js.map → charts-core-vZA3zPKb.js.map} +1 -1
- package/dist/client/chunks/{core-Dk6z6kC0.js → core-Su6tIYhp.js} +5 -3
- package/dist/client/chunks/{core-Dk6z6kC0.js.map → core-Su6tIYhp.js.map} +1 -1
- package/dist/client/chunks/{dist-eZurnOde.js → dist-BTq3NoG3.js} +38 -32
- package/dist/client/chunks/dist-BTq3NoG3.js.map +1 -0
- package/dist/client/chunks/{en-US-5xPTdCXg.js → en-US-D-1JPTPv.js} +1 -1
- package/dist/client/chunks/{en-US-5xPTdCXg.js.map → en-US-D-1JPTPv.js.map} +1 -1
- package/dist/client/chunks/{exceljs.min-DaJsLlWM.js → exceljs.min-Dc1cBQ5l.js} +71 -45
- package/dist/client/chunks/{exceljs.min-DaJsLlWM.js.map → exceljs.min-Dc1cBQ5l.js.map} +1 -1
- package/dist/client/chunks/{javascript-DFvvCuoP.js → javascript-YXkoOgWa.js} +1 -1
- package/dist/client/chunks/{javascript-DFvvCuoP.js.map → javascript-YXkoOgWa.js.map} +1 -1
- package/dist/client/chunks/{json-BBm9TlrA.js → json-O7MKB_4V.js} +1 -1
- package/dist/client/chunks/{json-BBm9TlrA.js.map → json-O7MKB_4V.js.map} +1 -1
- package/dist/client/chunks/{nl-NL-DDf0OdfW.js → nl-NL-BErZMygi.js} +10 -3
- package/dist/client/chunks/nl-NL-BErZMygi.js.map +1 -0
- package/dist/client/chunks/{rolldown-runtime-CCl2IeXn.js → rolldown-runtime-CKnJJeip.js} +1 -1
- package/dist/client/chunks/{schema-visualization-cnB2xZxn.js → schema-visualization-BY9L2nBQ.js} +294 -290
- package/dist/client/chunks/{schema-visualization-cnB2xZxn.js.map → schema-visualization-BY9L2nBQ.js.map} +1 -1
- package/dist/client/chunks/{sql-k0GA6oZ_.js → sql-r2a-9CCK.js} +1 -1
- package/dist/client/chunks/{sql-k0GA6oZ_.js.map → sql-r2a-9CCK.js.map} +1 -1
- package/dist/client/chunks/{syntaxHighlighting-D8J6Yt9j.js → syntaxHighlighting-5zHcjn27.js} +2 -2
- package/dist/client/chunks/{syntaxHighlighting-D8J6Yt9j.js.map → syntaxHighlighting-5zHcjn27.js.map} +1 -1
- package/dist/client/chunks/{useDebounce-BOBSvhHy.js → useDebounce-DGfYXtkm.js} +4 -4
- package/dist/client/chunks/{useDebounce-BOBSvhHy.js.map → useDebounce-DGfYXtkm.js.map} +1 -1
- package/dist/client/chunks/{useExplainAI-B_Pi4eXW.js → useExplainAI-CD0KuKwY.js} +4 -4
- package/dist/client/chunks/{useExplainAI-B_Pi4eXW.js.map → useExplainAI-CD0KuKwY.js.map} +1 -1
- package/dist/client/chunks/{utils-BIuqPQuJ.js → utils-D2SCtAkZ.js} +2 -2
- package/dist/client/chunks/{utils-BIuqPQuJ.js.map → utils-D2SCtAkZ.js.map} +1 -1
- package/dist/client/chunks/{vendor-BxLCTfvm.js → vendor-CfR5hJGc.js} +3 -3
- package/dist/client/chunks/{vendor-BxLCTfvm.js.map → vendor-CfR5hJGc.js.map} +1 -1
- package/dist/client/components/AnalysisBuilder/types.d.ts +2 -2
- package/dist/client/components.js +3 -3
- package/dist/client/hooks.js +3 -3
- package/dist/client/icons.js +1 -1
- package/dist/client/index.js +15 -15
- package/dist/client/providers.js +1 -1
- package/dist/client/schema.js +1 -1
- package/dist/client/shared/chartDefaults.d.ts +5 -10
- package/dist/client/types.d.ts +1 -0
- package/dist/client/utils.js +6 -6
- package/dist/client-bundle-stats.html +1 -1
- package/dist/mcp-app/mcp-app.html +48 -48
- package/dist/server/index.cjs +7 -7
- package/dist/server/index.js +159 -16
- package/package.json +2 -2
- package/dist/adapters/mcp-transport-CkyawtUT.cjs +0 -40
- package/dist/adapters/mcp-transport-DSbd6M_u.js +0 -586
- package/dist/adapters/utils-DrWvXf0G.cjs +0 -128
- package/dist/client/chunks/DashboardEditModal-BBcB0E2g.js.map +0 -1
- package/dist/client/chunks/KpiDelta-D09hA_UJ.js +0 -2
- package/dist/client/chunks/KpiNumber-B7F9F9fC.js +0 -2
- package/dist/client/chunks/KpiText-C3ZXOF8b.js +0 -2
- package/dist/client/chunks/SchemaVisualization-DP4k1fPp.js +0 -2
- package/dist/client/chunks/SchemaVisualizationLazy-Brqv_PY9.js +0 -2
- package/dist/client/chunks/af-ZA-xDmO5F0s.js.map +0 -1
- package/dist/client/chunks/analysis-builder-0o1W-k3K.js.map +0 -1
- package/dist/client/chunks/analysis-builder-shared-Cz4KAlIC.js.map +0 -1
- package/dist/client/chunks/chart-activity-grid-VFFm85hC.js.map +0 -1
- package/dist/client/chunks/chart-area-CwwIHTmK.js.map +0 -1
- package/dist/client/chunks/chart-bar-Bmny922L.js.map +0 -1
- package/dist/client/chunks/chart-config-activity-grid-C-EkgYoa.js.map +0 -1
- package/dist/client/chunks/chart-config-area-CMZpbIah.js.map +0 -1
- package/dist/client/chunks/chart-config-bar-B8_V4YLg.js.map +0 -1
- package/dist/client/chunks/chart-config-box-plot-Dwj7sEbU.js.map +0 -1
- package/dist/client/chunks/chart-config-bubble-B0w0ZVp4.js.map +0 -1
- package/dist/client/chunks/chart-config-candlestick-Bvo3zeIn.js.map +0 -1
- package/dist/client/chunks/chart-config-gauge-C5ZiyZy7.js.map +0 -1
- package/dist/client/chunks/chart-config-heat-map-Cv8qNnVP.js.map +0 -1
- package/dist/client/chunks/chart-config-kpi-delta-BraHQc2E.js.map +0 -1
- package/dist/client/chunks/chart-config-kpi-number-CeCkx7mC.js.map +0 -1
- package/dist/client/chunks/chart-config-kpi-text-CImM3SvH.js.map +0 -1
- package/dist/client/chunks/chart-config-line-BVKapAQK.js.map +0 -1
- package/dist/client/chunks/chart-config-measure-profile-KTVV1gO3.js.map +0 -1
- package/dist/client/chunks/chart-config-pie-BZxVl25X.js.map +0 -1
- package/dist/client/chunks/chart-config-radar-B7FByX3t.js.map +0 -1
- package/dist/client/chunks/chart-config-radial-bar-UfW_3yyX.js.map +0 -1
- package/dist/client/chunks/chart-config-scatter-BVVJuOnt.js.map +0 -1
- package/dist/client/chunks/chart-config-tree-map-IHp97OyV.js.map +0 -1
- package/dist/client/chunks/chart-config-waterfall-BdqG1V-x.js.map +0 -1
- package/dist/client/chunks/chart-line-DKvW32U-.js.map +0 -1
- package/dist/client/chunks/chart-markdown-CJU2hUq3.js.map +0 -1
- package/dist/client/chunks/dist-eZurnOde.js.map +0 -1
- package/dist/client/chunks/nl-NL-DDf0OdfW.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { A as e, O as t, P as n, T as r, V as i, Z as a, b as o, l as s, u as c, x as l } from "./chart-data-table-
|
|
2
|
-
import { r as u, t as d } from "./useExplainAI-
|
|
3
|
-
import { F as f, k as p } from "./chart-activity-grid-
|
|
1
|
+
import { A as e, O as t, P as n, T as r, V as i, Z as a, b as o, l as s, u as c, x as l } from "./chart-data-table-DT4uBZaq.js";
|
|
2
|
+
import { r as u, t as d } from "./useExplainAI-CD0KuKwY.js";
|
|
3
|
+
import { F as f, k as p } from "./chart-activity-grid-Bdb8U_NC.js";
|
|
4
4
|
import { i as m, n as h, o as g, r as _, s as v } from "./retention-YhT1Oohi.js";
|
|
5
|
-
import { d as y, f as b, g as x, i as S, n as C, r as w, t as T, u as E } from "./FieldSearchModal-
|
|
6
|
-
import { C as D, I as O, N as k, P as A, c as ee, d as te, m as j, n as M, t as N, u as ne } from "./analysis-builder-shared-
|
|
7
|
-
import { n as P } from "./charts-core-
|
|
5
|
+
import { d as y, f as b, g as x, i as S, n as C, r as w, t as T, u as E } from "./FieldSearchModal-DdcbCwAi.js";
|
|
6
|
+
import { C as D, I as O, N as k, P as A, c as ee, d as te, m as j, n as M, t as N, u as ne } from "./analysis-builder-shared-DmyRh2O3.js";
|
|
7
|
+
import { n as P } from "./charts-core-vZA3zPKb.js";
|
|
8
8
|
import re, { Component as ie, forwardRef as ae, memo as F, useCallback as I, useEffect as L, useImperativeHandle as oe, useMemo as R, useRef as z, useState as B, useSyncExternalStore as se } from "react";
|
|
9
9
|
import { Fragment as V, jsx as H, jsxs as U } from "react/jsx-runtime";
|
|
10
10
|
//#region src/client/shared/components/QueryAnalysisPanel.tsx
|
|
@@ -547,7 +547,7 @@ function me({ isValidQuery: e, getAnalysisConfig: t }) {
|
|
|
547
547
|
}
|
|
548
548
|
//#endregion
|
|
549
549
|
//#region src/client/components/AnalysisBuilder/AnalysisResultsPanel.tsx
|
|
550
|
-
var he = re.lazy(() => import("./
|
|
550
|
+
var he = re.lazy(() => import("./schema-visualization-BY9L2nBQ.js").then((e) => e.r).then((e) => ({ default: e.SchemaVisualizationLazy })));
|
|
551
551
|
function ge(e, t, n) {
|
|
552
552
|
let r = [];
|
|
553
553
|
if (r.push("# Query Execution Plan"), r.push(""), t && (r.push("## Cube Query"), r.push(""), r.push("```json"), r.push(JSON.stringify(t, null, 2)), r.push("```"), r.push("")), r.push("## Query Summary"), r.push(""), r.push(`- **Cubes:** ${e.cubesInvolved.join(", ")}`), r.push(`- **Query Type:** ${e.querySummary.queryType.replace(/_/g, " ")}`), r.push(`- **Joins:** ${e.querySummary.joinCount}`), r.push(`- **CTEs:** ${e.querySummary.cteCount}`), r.push(""), r.push("## Primary Cube Selection"), r.push(""), r.push(`**Selected:** ${e.primaryCube.selectedCube}`), r.push(`**Reason:** ${e.primaryCube.reason.replace(/_/g, " ")}`), r.push(`**Explanation:** ${e.primaryCube.explanation}`), r.push(""), e.primaryCube.candidates && e.primaryCube.candidates.length > 1) {
|
|
@@ -592,7 +592,7 @@ function ge(e, t, n) {
|
|
|
592
592
|
}
|
|
593
593
|
return n?.sql && (r.push("## Generated SQL"), r.push(""), r.push("```sql"), r.push(n.sql), r.push("```")), r.join("\n");
|
|
594
594
|
}
|
|
595
|
-
var _e = F(function({ executionStatus: t, executionResults: n, executionError: a, totalRowCount: o, resultsStale: s = !1, chartType: c = "line", chartConfig: f = {}, displayConfig: m = {}, colorPalette: h, currentPaletteName: g, onColorPaletteChange: _, allQueries: v, funnelExecutedQueries: y, activeView: b = "chart", onActiveViewChange: S, displayLimit: T = 100, onDisplayLimitChange: E,
|
|
595
|
+
var _e = F(function({ executionStatus: t, executionResults: n, executionError: a, totalRowCount: o, resultsStale: s = !1, chartType: c = "line", chartConfig: f = {}, displayConfig: m = {}, colorPalette: h, currentPaletteName: g, onColorPaletteChange: _, allQueries: v, funnelExecutedQueries: y, activeView: b = "chart", onActiveViewChange: S, displayLimit: T = 100, onDisplayLimitChange: E, chartAvailability: D, debugDataPerQuery: O = [], onShareClick: k, canShare: ee = !1, shareButtonState: te = "idle", onRefreshClick: j, canRefresh: M = !1, isRefreshing: N = !1, needsRefresh: ne = !1, onClearClick: P, canClear: ie = !1, enableAI: ae = !1, isAIOpen: F = !1, onAIToggle: oe, queryCount: se = 1, perQueryResults: W, activeTableIndex: ce = 0, onActiveTableChange: ue, analysisType: de, isFunnelMode: fe = !1, funnelServerQuery: pe, funnelDebugData: me, flowServerQuery: _e, flowDebugData: ve, retentionServerQuery: ye, retentionDebugData: be, retentionChartData: G, retentionValidation: xe, warnings: Se, highlightedFields: Ce, onSchemaFieldClick: we }) {
|
|
596
596
|
let { t: K } = p(), q = de === "funnel" || fe, J = de === "flow", Y = de === "retention", { features: Te } = i(), [X, Ee] = B(!1), [De, Oe] = B(!1), [Z, ke] = B(0), [Ae, je] = B(!1), [Me, Ne] = B(!1), [Pe, Fe] = B(!1), [Ie, Le] = B("idle");
|
|
597
597
|
L(() => {
|
|
598
598
|
let e = (e) => {
|
|
@@ -628,29 +628,29 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
628
628
|
Ve,
|
|
629
629
|
We,
|
|
630
630
|
Be
|
|
631
|
-
]), { explainResult: qe, isLoading: Je, hasRun: Ye, error: Xe, runExplain: Ze, clearExplain: Qe } = u(We, { skip: q || J || Y || !We }), { explainResult: $e, isLoading: et, hasRun: tt, error: nt, runExplain: rt, clearExplain: it } = u(pe, { skip: !q || !pe }), { explainResult: at, isLoading: ot, hasRun: st, error: ct, runExplain: lt, clearExplain:
|
|
631
|
+
]), { explainResult: qe, isLoading: Je, hasRun: Ye, error: Xe, runExplain: Ze, clearExplain: Qe } = u(We, { skip: q || J || Y || !We }), { explainResult: $e, isLoading: et, hasRun: tt, error: nt, runExplain: rt, clearExplain: it } = u(pe, { skip: !q || !pe }), { explainResult: at, isLoading: ot, hasRun: st, error: ct, runExplain: lt, clearExplain: Q } = u(_e, { skip: !J || !_e }), { explainResult: ut, isLoading: $, hasRun: dt, error: ft, runExplain: pt } = u(ye, { skip: !Y || !ye }), { analysis: mt, isAnalyzing: ht, error: gt, analyze: _t, clearAnalysis: vt } = d();
|
|
632
632
|
L(() => {
|
|
633
633
|
Qe();
|
|
634
634
|
}, [Z, Qe]), L(() => {
|
|
635
635
|
it();
|
|
636
636
|
}, [pe, it]), L(() => {
|
|
637
|
-
|
|
638
|
-
}, [_e,
|
|
639
|
-
let
|
|
637
|
+
Q();
|
|
638
|
+
}, [_e, Q]);
|
|
639
|
+
let yt = z(!0), bt = D?.[c]?.available ?? !0, xt = bt || J || q || Y, St = D?.[c]?.reason, Ct = K(xt ? "results.toolbar.chartView" : St || "results.toolbar.chartDisabled");
|
|
640
640
|
L(() => {
|
|
641
|
-
if (
|
|
642
|
-
|
|
641
|
+
if (yt.current) {
|
|
642
|
+
yt.current = !1;
|
|
643
643
|
return;
|
|
644
644
|
}
|
|
645
|
-
de === "funnel" || de === "flow" || de === "retention" || q || !
|
|
645
|
+
de === "funnel" || de === "flow" || de === "retention" || q || !bt && b === "chart" && S("table");
|
|
646
646
|
}, [
|
|
647
|
-
|
|
647
|
+
bt,
|
|
648
648
|
b,
|
|
649
649
|
S,
|
|
650
650
|
q,
|
|
651
651
|
de
|
|
652
652
|
]);
|
|
653
|
-
let
|
|
653
|
+
let wt = R(() => {
|
|
654
654
|
if (!v || v.length === 0) return;
|
|
655
655
|
if (v.length === 1) return v[0];
|
|
656
656
|
let e = v.flatMap((e) => e?.measures || []);
|
|
@@ -658,7 +658,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
658
658
|
...v[0],
|
|
659
659
|
measures: e
|
|
660
660
|
};
|
|
661
|
-
}, [v]),
|
|
661
|
+
}, [v]), Tt = e("success"), Et = e("error"), Dt = e("warning"), Ot = e("table"), kt = e("measure"), At = e("codeBracket"), jt = e("share"), Mt = e("check"), Nt = e("delete"), Pt = e("sparkles"), Ft = e("arrowPath"), It = e("schemaGraph"), Lt = () => /* @__PURE__ */ H("div", {
|
|
662
662
|
className: "dc:h-full dc:flex dc:items-center dc:justify-center",
|
|
663
663
|
children: /* @__PURE__ */ U("div", {
|
|
664
664
|
className: "dc:text-center",
|
|
@@ -677,9 +677,9 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
677
677
|
})
|
|
678
678
|
]
|
|
679
679
|
})
|
|
680
|
-
}),
|
|
680
|
+
}), Rt = () => /* @__PURE__ */ U("div", {
|
|
681
681
|
className: "dc:h-full dc:flex dc:flex-col",
|
|
682
|
-
children: [
|
|
682
|
+
children: [rn(), /* @__PURE__ */ H("div", {
|
|
683
683
|
className: "dc:flex-1 dc:flex dc:items-center dc:justify-center dc:p-4",
|
|
684
684
|
children: De ? /* @__PURE__ */ H("div", {
|
|
685
685
|
className: "dc:w-full dc:h-full",
|
|
@@ -693,11 +693,11 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
693
693
|
})
|
|
694
694
|
}) : X ? /* @__PURE__ */ H("div", {
|
|
695
695
|
className: "dc:w-full dc:h-full dc:overflow-auto",
|
|
696
|
-
children:
|
|
696
|
+
children: Qt()
|
|
697
697
|
}) : /* @__PURE__ */ U("div", {
|
|
698
698
|
className: "dc:text-center dc:max-w-md",
|
|
699
699
|
children: [
|
|
700
|
-
/* @__PURE__ */ H(
|
|
700
|
+
/* @__PURE__ */ H(Et, { className: "dc:w-12 dc:h-12 dc:mx-auto text-dc-error dc:mb-4" }),
|
|
701
701
|
/* @__PURE__ */ H("div", {
|
|
702
702
|
className: "dc:text-sm dc:font-semibold text-dc-text dc:mb-2",
|
|
703
703
|
children: K("results.error.title")
|
|
@@ -716,15 +716,15 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
716
716
|
]
|
|
717
717
|
})
|
|
718
718
|
})]
|
|
719
|
-
}),
|
|
719
|
+
}), zt = !!v?.some((e) => e?.measures && e.measures.length > 0 || e?.dimensions && e.dimensions.length > 0 || e?.timeDimensions && e.timeDimensions.length > 0), Bt = R(() => Y ? ye !== null : q ? pe !== null : J ? _e !== null : zt, [
|
|
720
720
|
Y,
|
|
721
721
|
q,
|
|
722
722
|
J,
|
|
723
723
|
ye,
|
|
724
724
|
pe,
|
|
725
725
|
_e,
|
|
726
|
-
|
|
727
|
-
]),
|
|
726
|
+
zt
|
|
727
|
+
]), Vt = () => /* @__PURE__ */ H("div", {
|
|
728
728
|
className: "dc:h-full dc:flex dc:items-center dc:justify-center",
|
|
729
729
|
children: /* @__PURE__ */ U("div", {
|
|
730
730
|
className: "dc:text-center",
|
|
@@ -743,7 +743,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
743
743
|
})
|
|
744
744
|
]
|
|
745
745
|
})
|
|
746
|
-
}),
|
|
746
|
+
}), Ht = () => /* @__PURE__ */ H("div", {
|
|
747
747
|
className: "dc:h-full dc:flex dc:items-center dc:justify-center",
|
|
748
748
|
children: /* @__PURE__ */ U("div", {
|
|
749
749
|
className: "dc:text-center",
|
|
@@ -786,14 +786,14 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
786
786
|
})
|
|
787
787
|
]
|
|
788
788
|
})
|
|
789
|
-
}),
|
|
789
|
+
}), Ut = () => {
|
|
790
790
|
let e = K("results.empty.query");
|
|
791
791
|
return Y ? e = K("results.empty.retention") : q ? e = K("results.empty.funnel") : J && (e = K("results.empty.flow")), /* @__PURE__ */ H("div", {
|
|
792
792
|
className: "dc:h-full dc:flex dc:items-center dc:justify-center dc:pt-6",
|
|
793
793
|
children: /* @__PURE__ */ U("div", {
|
|
794
794
|
className: "dc:text-center dc:mb-16",
|
|
795
795
|
children: [
|
|
796
|
-
/* @__PURE__ */ H(
|
|
796
|
+
/* @__PURE__ */ H(kt, { className: "dc:w-12 dc:h-12 dc:mx-auto text-dc-text-muted dc:mb-3" }),
|
|
797
797
|
/* @__PURE__ */ H("div", {
|
|
798
798
|
className: "dc:text-sm dc:font-semibold text-dc-text-secondary dc:mb-1",
|
|
799
799
|
children: K("results.empty.title")
|
|
@@ -805,17 +805,17 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
805
805
|
ae && oe && !Y && !q && !J && /* @__PURE__ */ U("button", {
|
|
806
806
|
onClick: oe,
|
|
807
807
|
className: "dc:inline-flex dc:items-center dc:gap-2 dc:px-4 dc:py-2 dc:text-sm dc:font-medium text-white bg-dc-accent hover:bg-dc-accent dc:rounded-lg dc:transition-colors dc:shadow-sm",
|
|
808
|
-
children: [/* @__PURE__ */ H(
|
|
808
|
+
children: [/* @__PURE__ */ H(Pt, { className: "dc:w-4 dc:h-4" }), K("results.ai.button")]
|
|
809
809
|
})
|
|
810
810
|
]
|
|
811
811
|
})
|
|
812
812
|
});
|
|
813
|
-
},
|
|
813
|
+
}, Wt = () => /* @__PURE__ */ H("div", {
|
|
814
814
|
className: "dc:h-full dc:flex dc:items-center dc:justify-center",
|
|
815
815
|
children: /* @__PURE__ */ U("div", {
|
|
816
816
|
className: "dc:text-center",
|
|
817
817
|
children: [
|
|
818
|
-
/* @__PURE__ */ H(
|
|
818
|
+
/* @__PURE__ */ H(Tt, { className: "dc:w-12 dc:h-12 dc:mx-auto text-dc-success dc:mb-3" }),
|
|
819
819
|
/* @__PURE__ */ H("div", {
|
|
820
820
|
className: "dc:text-sm dc:font-semibold text-dc-text dc:mb-1",
|
|
821
821
|
children: K("results.noData.title")
|
|
@@ -826,13 +826,13 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
826
826
|
})
|
|
827
827
|
]
|
|
828
828
|
})
|
|
829
|
-
}),
|
|
829
|
+
}), Gt = () => {
|
|
830
830
|
if (!n || n.length === 0) return /* @__PURE__ */ H("div", {
|
|
831
831
|
className: "dc:flex dc:items-center dc:justify-center dc:h-full text-dc-text-muted",
|
|
832
832
|
children: /* @__PURE__ */ U("div", {
|
|
833
833
|
className: "dc:text-center",
|
|
834
834
|
children: [
|
|
835
|
-
/* @__PURE__ */ H(
|
|
835
|
+
/* @__PURE__ */ H(kt, { className: "dc:w-12 dc:h-12 dc:mx-auto dc:mb-3 dc:opacity-50" }),
|
|
836
836
|
/* @__PURE__ */ H("div", {
|
|
837
837
|
className: "dc:text-sm dc:font-semibold dc:mb-1",
|
|
838
838
|
children: K("results.chart.noData")
|
|
@@ -851,7 +851,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
851
851
|
chartConfig: f,
|
|
852
852
|
displayConfig: m,
|
|
853
853
|
colorPalette: h,
|
|
854
|
-
queryObject:
|
|
854
|
+
queryObject: wt,
|
|
855
855
|
height: "100%",
|
|
856
856
|
fallback: /* @__PURE__ */ H("div", {
|
|
857
857
|
className: "dc:flex dc:items-center dc:justify-center dc:h-full",
|
|
@@ -862,7 +862,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
862
862
|
children: /* @__PURE__ */ U("div", {
|
|
863
863
|
className: "dc:text-center",
|
|
864
864
|
children: [
|
|
865
|
-
/* @__PURE__ */ H(
|
|
865
|
+
/* @__PURE__ */ H(Dt, { className: "dc:w-12 dc:h-12 dc:mx-auto dc:mb-3 dc:opacity-50" }),
|
|
866
866
|
/* @__PURE__ */ H("div", {
|
|
867
867
|
className: "dc:text-sm dc:font-semibold dc:mb-1",
|
|
868
868
|
children: K("results.chart.unsupported")
|
|
@@ -874,7 +874,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
874
874
|
]
|
|
875
875
|
})
|
|
876
876
|
});
|
|
877
|
-
},
|
|
877
|
+
}, Kt = () => a ? /* @__PURE__ */ U("div", {
|
|
878
878
|
className: "bg-dc-danger-bg dark:bg-dc-danger-bg dc:border border-dc-error dark:border-dc-error dc:rounded dc:p-3",
|
|
879
879
|
children: [/* @__PURE__ */ H("h4", {
|
|
880
880
|
className: "dc:text-sm dc:font-semibold text-dc-error dark:text-dc-error dc:mb-1",
|
|
@@ -883,7 +883,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
883
883
|
className: "dc:text-sm text-dc-error dark:text-dc-error",
|
|
884
884
|
children: a
|
|
885
885
|
})]
|
|
886
|
-
}) : null,
|
|
886
|
+
}) : null, qt = () => /* @__PURE__ */ U("div", {
|
|
887
887
|
className: "dc:grid dc:grid-cols-1 dc:md:grid-cols-2 dc:gap-4",
|
|
888
888
|
children: [/* @__PURE__ */ H("div", { children: /* @__PURE__ */ H(x, {
|
|
889
889
|
code: JSON.stringify(f, null, 2),
|
|
@@ -896,7 +896,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
896
896
|
title: K("results.debug.displayConfig"),
|
|
897
897
|
height: "16rem"
|
|
898
898
|
}) })]
|
|
899
|
-
}),
|
|
899
|
+
}), Jt = (e) => /* @__PURE__ */ H("div", { children: n ? /* @__PURE__ */ H(x, {
|
|
900
900
|
code: JSON.stringify(n, null, 2),
|
|
901
901
|
language: "json",
|
|
902
902
|
title: e || `${K("results.debug.serverResponse")} (${n.length} ${K("results.header.rows")})`,
|
|
@@ -907,12 +907,12 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
907
907
|
}), /* @__PURE__ */ H("div", {
|
|
908
908
|
className: "bg-dc-surface-secondary dc:border border-dc-border dc:rounded dc:p-3 text-dc-text-muted dc:text-sm",
|
|
909
909
|
children: K("results.debug.noResults")
|
|
910
|
-
})] }) }),
|
|
910
|
+
})] }) }), Yt = () => /* @__PURE__ */ H("div", { children: G ? /* @__PURE__ */ H(x, {
|
|
911
911
|
code: JSON.stringify(G, null, 2),
|
|
912
912
|
language: "json",
|
|
913
913
|
title: `Server Response (${G.rows.length} rows, ${G.periods.length} periods)`,
|
|
914
914
|
maxHeight: "24rem"
|
|
915
|
-
}) :
|
|
915
|
+
}) : Jt() }), Xt = (e) => {
|
|
916
916
|
let t = e.debugData?.sql, n = e.debugData?.loading || !1, r = e.debugData?.error || null;
|
|
917
917
|
return /* @__PURE__ */ U("div", {
|
|
918
918
|
className: "dc:p-4 dc:space-y-4 dc:overflow-auto dc:h-full",
|
|
@@ -934,7 +934,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
934
934
|
})
|
|
935
935
|
]
|
|
936
936
|
}),
|
|
937
|
-
|
|
937
|
+
Kt(),
|
|
938
938
|
/* @__PURE__ */ H("div", { children: e.serverQuery ? /* @__PURE__ */ H(x, {
|
|
939
939
|
code: JSON.stringify(e.serverQuery, null, 2),
|
|
940
940
|
language: "json",
|
|
@@ -951,11 +951,11 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
951
951
|
explainHasRun: e.explainHasRun,
|
|
952
952
|
explainError: e.explainError,
|
|
953
953
|
runExplain: e.runExplain,
|
|
954
|
-
aiAnalysis:
|
|
955
|
-
aiAnalysisLoading:
|
|
956
|
-
aiAnalysisError:
|
|
957
|
-
runAIAnalysis:
|
|
958
|
-
clearAIAnalysis:
|
|
954
|
+
aiAnalysis: mt,
|
|
955
|
+
aiAnalysisLoading: ht,
|
|
956
|
+
aiAnalysisError: gt,
|
|
957
|
+
runAIAnalysis: _t,
|
|
958
|
+
clearAIAnalysis: vt,
|
|
959
959
|
enableAI: ae,
|
|
960
960
|
query: e.serverQuery,
|
|
961
961
|
title: "Generated SQL",
|
|
@@ -969,11 +969,11 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
969
969
|
children: e.metadataSection
|
|
970
970
|
})] }),
|
|
971
971
|
e.extraSection,
|
|
972
|
-
|
|
972
|
+
qt(),
|
|
973
973
|
e.responseSection
|
|
974
974
|
]
|
|
975
975
|
});
|
|
976
|
-
},
|
|
976
|
+
}, Zt = () => /* @__PURE__ */ U("div", {
|
|
977
977
|
className: "dc:p-4 dc:space-y-4 dc:overflow-auto dc:h-full",
|
|
978
978
|
children: [
|
|
979
979
|
O.length > 1 && /* @__PURE__ */ U("div", {
|
|
@@ -1067,11 +1067,11 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1067
1067
|
explainHasRun: Ye,
|
|
1068
1068
|
explainError: Xe,
|
|
1069
1069
|
runExplain: Ze,
|
|
1070
|
-
aiAnalysis:
|
|
1071
|
-
aiAnalysisLoading:
|
|
1072
|
-
aiAnalysisError:
|
|
1073
|
-
runAIAnalysis:
|
|
1074
|
-
clearAIAnalysis:
|
|
1070
|
+
aiAnalysis: mt,
|
|
1071
|
+
aiAnalysisLoading: ht,
|
|
1072
|
+
aiAnalysisError: gt,
|
|
1073
|
+
runAIAnalysis: _t,
|
|
1074
|
+
clearAIAnalysis: vt,
|
|
1075
1075
|
enableAI: ae,
|
|
1076
1076
|
query: We,
|
|
1077
1077
|
title: "Generated SQL",
|
|
@@ -1104,7 +1104,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1104
1104
|
children: K("results.debug.noResults")
|
|
1105
1105
|
})] }) })
|
|
1106
1106
|
]
|
|
1107
|
-
}),
|
|
1107
|
+
}), Qt = () => {
|
|
1108
1108
|
if (q) {
|
|
1109
1109
|
let e = me?.modeMetadata, t = e ? /* @__PURE__ */ H("div", {
|
|
1110
1110
|
className: "dc:flex dc:flex-wrap dc:gap-2",
|
|
@@ -1130,7 +1130,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1130
1130
|
]
|
|
1131
1131
|
}, t))
|
|
1132
1132
|
}) : null;
|
|
1133
|
-
return
|
|
1133
|
+
return Xt({
|
|
1134
1134
|
label: K("results.debug.funnel.label"),
|
|
1135
1135
|
badgeText: e?.stepCount ? K("results.debug.funnel.steps", { count: e.stepCount }) : void 0,
|
|
1136
1136
|
serverQuery: pe,
|
|
@@ -1151,7 +1151,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1151
1151
|
runExplain: rt,
|
|
1152
1152
|
metadataTitle: t ? K("results.debug.funnel.stepsTitle") : void 0,
|
|
1153
1153
|
metadataSection: t,
|
|
1154
|
-
responseSection:
|
|
1154
|
+
responseSection: Jt()
|
|
1155
1155
|
});
|
|
1156
1156
|
}
|
|
1157
1157
|
if (Y) {
|
|
@@ -1247,7 +1247,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1247
1247
|
]
|
|
1248
1248
|
})
|
|
1249
1249
|
})] }) : null;
|
|
1250
|
-
return
|
|
1250
|
+
return Xt({
|
|
1251
1251
|
label: K("results.debug.retention.label"),
|
|
1252
1252
|
badgeText: e ? K("results.debug.retention.badge", {
|
|
1253
1253
|
segments: e.segmentCount || 1,
|
|
@@ -1273,15 +1273,15 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1273
1273
|
})] }),
|
|
1274
1274
|
debugData: be,
|
|
1275
1275
|
sqlPlaceholder: K("results.debug.retention.sqlPlaceholder"),
|
|
1276
|
-
explainResult:
|
|
1277
|
-
explainLoading:
|
|
1278
|
-
explainHasRun:
|
|
1279
|
-
explainError:
|
|
1280
|
-
runExplain:
|
|
1276
|
+
explainResult: ut,
|
|
1277
|
+
explainLoading: $,
|
|
1278
|
+
explainHasRun: dt,
|
|
1279
|
+
explainError: ft,
|
|
1280
|
+
runExplain: pt,
|
|
1281
1281
|
metadataTitle: t ? K("results.debug.retention.configTitle") : void 0,
|
|
1282
1282
|
metadataSection: t,
|
|
1283
1283
|
extraSection: n,
|
|
1284
|
-
responseSection:
|
|
1284
|
+
responseSection: Yt()
|
|
1285
1285
|
});
|
|
1286
1286
|
}
|
|
1287
1287
|
if (J) {
|
|
@@ -1334,7 +1334,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1334
1334
|
] })
|
|
1335
1335
|
]
|
|
1336
1336
|
}) : null;
|
|
1337
|
-
return
|
|
1337
|
+
return Xt({
|
|
1338
1338
|
label: K("results.debug.flow.label"),
|
|
1339
1339
|
badgeText: e ? `${e.stepsBefore} before, ${e.stepsAfter} after` : void 0,
|
|
1340
1340
|
serverQuery: _e,
|
|
@@ -1355,18 +1355,18 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1355
1355
|
runExplain: lt,
|
|
1356
1356
|
metadataTitle: t ? K("results.debug.flow.configTitle") : void 0,
|
|
1357
1357
|
metadataSection: t,
|
|
1358
|
-
responseSection:
|
|
1358
|
+
responseSection: Jt(K("results.debug.flow.responseTitle"))
|
|
1359
1359
|
});
|
|
1360
1360
|
}
|
|
1361
|
-
return
|
|
1362
|
-
},
|
|
1361
|
+
return Zt();
|
|
1362
|
+
}, $t = !q && se > 1 && W && W.length > 1, en = () => {
|
|
1363
1363
|
let e = [], t = [];
|
|
1364
1364
|
if (!n || Array.isArray(n) && n.length === 0) return /* @__PURE__ */ H("div", {
|
|
1365
1365
|
className: "dc:flex dc:items-center dc:justify-center dc:h-full text-dc-text-muted",
|
|
1366
1366
|
children: /* @__PURE__ */ U("div", {
|
|
1367
1367
|
className: "dc:text-center",
|
|
1368
1368
|
children: [
|
|
1369
|
-
/* @__PURE__ */ H(
|
|
1369
|
+
/* @__PURE__ */ H(Ot, { className: "dc:w-12 dc:h-12 dc:mx-auto dc:mb-3 dc:opacity-50" }),
|
|
1370
1370
|
/* @__PURE__ */ H("div", {
|
|
1371
1371
|
className: "dc:text-sm dc:font-semibold dc:mb-1",
|
|
1372
1372
|
children: K("results.flow.noData")
|
|
@@ -1387,7 +1387,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1387
1387
|
children: /* @__PURE__ */ U("div", {
|
|
1388
1388
|
className: "dc:text-center",
|
|
1389
1389
|
children: [
|
|
1390
|
-
/* @__PURE__ */ H(
|
|
1390
|
+
/* @__PURE__ */ H(Ot, { className: "dc:w-12 dc:h-12 dc:mx-auto dc:mb-3 dc:opacity-50" }),
|
|
1391
1391
|
/* @__PURE__ */ H("div", {
|
|
1392
1392
|
className: "dc:text-sm dc:font-semibold dc:mb-1",
|
|
1393
1393
|
children: K("results.flow.noData")
|
|
@@ -1504,14 +1504,14 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1504
1504
|
})
|
|
1505
1505
|
})] })]
|
|
1506
1506
|
});
|
|
1507
|
-
},
|
|
1507
|
+
}, tn = (e) => {
|
|
1508
1508
|
let t, r = v?.[0];
|
|
1509
|
-
return
|
|
1509
|
+
return $t && e !== void 0 && e >= 0 && W ? (t = W[e] || null, r = v?.[e]) : (t = n, $t && (r = wt)), !t || t.length === 0 ? /* @__PURE__ */ H("div", {
|
|
1510
1510
|
className: "dc:flex dc:items-center dc:justify-center dc:h-full text-dc-text-muted",
|
|
1511
1511
|
children: /* @__PURE__ */ U("div", {
|
|
1512
1512
|
className: "dc:text-center",
|
|
1513
1513
|
children: [
|
|
1514
|
-
/* @__PURE__ */ H(
|
|
1514
|
+
/* @__PURE__ */ H(Ot, { className: "dc:w-12 dc:h-12 dc:mx-auto dc:mb-3 dc:opacity-50" }),
|
|
1515
1515
|
/* @__PURE__ */ H("div", {
|
|
1516
1516
|
className: "dc:text-sm dc:font-semibold dc:mb-1",
|
|
1517
1517
|
children: "No data to display"
|
|
@@ -1533,7 +1533,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1533
1533
|
children: /* @__PURE__ */ H("div", { className: "dc:animate-pulse bg-dc-surface-secondary dc:rounded dc:w-full dc:h-full" })
|
|
1534
1534
|
})
|
|
1535
1535
|
});
|
|
1536
|
-
},
|
|
1536
|
+
}, nn = () => /* @__PURE__ */ H("div", {
|
|
1537
1537
|
className: "dc:absolute dc:inset-0 dc:flex dc:items-center dc:justify-center bg-dc-surface bg-opacity-75 dc:z-10",
|
|
1538
1538
|
children: /* @__PURE__ */ U("div", {
|
|
1539
1539
|
className: "dc:text-center",
|
|
@@ -1545,7 +1545,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1545
1545
|
children: K("results.refreshing")
|
|
1546
1546
|
})]
|
|
1547
1547
|
})
|
|
1548
|
-
}),
|
|
1548
|
+
}), rn = () => {
|
|
1549
1549
|
let e = n && n.length > 0;
|
|
1550
1550
|
return /* @__PURE__ */ U("div", {
|
|
1551
1551
|
className: "dc:px-4 dc:py-2 dc:border-b border-dc-border bg-dc-surface-secondary dc:flex-shrink-0",
|
|
@@ -1556,7 +1556,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1556
1556
|
children: [t === "refreshing" ? /* @__PURE__ */ H("div", {
|
|
1557
1557
|
className: "dc:w-4 dc:h-4 dc:mr-2 dc:rounded-full dc:border-b-2 dc:animate-spin",
|
|
1558
1558
|
style: { borderBottomColor: "var(--dc-primary)" }
|
|
1559
|
-
}) : e ? /* @__PURE__ */ H(
|
|
1559
|
+
}) : e ? /* @__PURE__ */ H(Tt, { className: "dc:w-4 dc:h-4 text-dc-success dc:mr-2" }) : t === "error" ? /* @__PURE__ */ H(Et, { className: "dc:w-4 dc:h-4 text-dc-error dc:mr-2" }) : /* @__PURE__ */ H(Dt, { className: "dc:w-4 dc:h-4 text-dc-text-muted dc:mr-2" }), /* @__PURE__ */ H("span", {
|
|
1560
1560
|
className: "dc:text-sm text-dc-text-secondary",
|
|
1561
1561
|
children: e ? /* @__PURE__ */ U(V, { children: [
|
|
1562
1562
|
n.length,
|
|
@@ -1602,7 +1602,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1602
1602
|
onClick: oe,
|
|
1603
1603
|
className: `dc:flex dc:items-center dc:gap-1 dc:px-2 dc:py-1.5 dc:text-xs dc:font-medium dc:rounded dc:transition-colors ${F ? "text-white bg-dc-accent dc:border border-dc-accent" : "text-dc-accent dark:text-dc-accent bg-dc-accent-bg dark:bg-dc-accent-bg dc:border border-dc-accent dark:border-dc-accent hover:bg-dc-accent-bg dark:hover:bg-dc-accent-bg"}`,
|
|
1604
1604
|
title: F ? "Close AI assistant" : "Analyse with AI",
|
|
1605
|
-
children: [/* @__PURE__ */ H(
|
|
1605
|
+
children: [/* @__PURE__ */ H(Pt, { className: "dc:w-3 dc:h-3" }), /* @__PURE__ */ H("span", {
|
|
1606
1606
|
className: "dc:hidden dc:sm:inline",
|
|
1607
1607
|
children: K("results.ai.button")
|
|
1608
1608
|
})]
|
|
@@ -1616,14 +1616,14 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1616
1616
|
className: `dc:flex dc:items-center dc:gap-1 dc:px-2 dc:py-1.5 dc:text-xs dc:font-medium dc:rounded dc:transition-colors ${te === "idle" && ee ? "text-dc-accent dark:text-dc-accent bg-dc-accent-bg dark:bg-dc-accent-bg dc:border border-dc-accent dark:border-dc-accent hover:bg-dc-accent-bg dark:hover:bg-dc-accent-bg" : te === "idle" ? "text-dc-text-muted bg-dc-surface-secondary dc:border border-dc-border dc:cursor-not-allowed" : "text-dc-success dark:text-dc-success bg-dc-success-bg dark:bg-dc-success-bg dc:border border-dc-success dark:border-dc-success"}`,
|
|
1617
1617
|
title: te === "idle" ? "Share this analysis" : "Link copied!",
|
|
1618
1618
|
disabled: !ee || te !== "idle",
|
|
1619
|
-
children: te === "idle" ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(
|
|
1619
|
+
children: te === "idle" ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(jt, { className: "dc:w-3 dc:h-3" }), /* @__PURE__ */ H("span", {
|
|
1620
1620
|
className: "dc:hidden dc:sm:inline",
|
|
1621
1621
|
children: K("common.actions.share")
|
|
1622
|
-
})] }) : te === "copied" ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(
|
|
1622
|
+
})] }) : te === "copied" ? /* @__PURE__ */ U(V, { children: [/* @__PURE__ */ H(Mt, { className: "dc:w-3 dc:h-3" }), /* @__PURE__ */ H("span", {
|
|
1623
1623
|
className: "dc:hidden dc:sm:inline",
|
|
1624
1624
|
children: K("results.share.copied")
|
|
1625
1625
|
})] }) : /* @__PURE__ */ U(V, { children: [
|
|
1626
|
-
/* @__PURE__ */ H(
|
|
1626
|
+
/* @__PURE__ */ H(Mt, { className: "dc:w-3 dc:h-3" }),
|
|
1627
1627
|
/* @__PURE__ */ H("span", {
|
|
1628
1628
|
className: "dc:hidden dc:sm:inline",
|
|
1629
1629
|
children: K("results.share.copied")
|
|
@@ -1641,7 +1641,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1641
1641
|
disabled: N,
|
|
1642
1642
|
className: `dc:flex dc:items-center dc:gap-1 dc:px-2 dc:py-1.5 dc:text-xs dc:font-medium dc:rounded dc:transition-colors ${N ? "text-dc-text-muted bg-dc-surface-secondary dc:border border-dc-border dc:cursor-wait" : Re ? "text-dc-warning bg-dc-warning-bg dc:border border-dc-warning dc:font-semibold" : "text-dc-accent bg-dc-accent-bg dc:border border-dc-accent hover:bg-dc-accent-bg"}`,
|
|
1643
1643
|
title: N ? "Refreshing..." : Re ? "Click to refresh and bypass cache" : "Refresh data (Shift+click to bypass cache)",
|
|
1644
|
-
children: [/* @__PURE__ */ H(
|
|
1644
|
+
children: [/* @__PURE__ */ H(Ft, { className: `dc:w-3 dc:h-3 ${N ? "dc:animate-spin" : ""}` }), /* @__PURE__ */ H("span", {
|
|
1645
1645
|
className: "dc:hidden dc:sm:inline",
|
|
1646
1646
|
children: N ? "Refreshing" : "Refresh"
|
|
1647
1647
|
})]
|
|
@@ -1650,7 +1650,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1650
1650
|
onClick: () => je(!0),
|
|
1651
1651
|
className: "dc:flex dc:items-center dc:gap-1 dc:px-2 dc:py-1.5 dc:text-xs dc:font-medium text-dc-text-secondary hover:text-dc-text bg-dc-surface hover:bg-dc-surface-hover dc:border border-dc-border dc:rounded dc:transition-colors",
|
|
1652
1652
|
title: q ? "Clear funnel" : "Clear all query data",
|
|
1653
|
-
children: [/* @__PURE__ */ H(
|
|
1653
|
+
children: [/* @__PURE__ */ H(Nt, { className: "dc:w-3 dc:h-3" }), /* @__PURE__ */ H("span", {
|
|
1654
1654
|
className: "dc:hidden dc:sm:inline",
|
|
1655
1655
|
children: K("common.actions.clear")
|
|
1656
1656
|
})]
|
|
@@ -1661,7 +1661,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1661
1661
|
},
|
|
1662
1662
|
className: `dc:p-1.5 dc:rounded dc:transition-colors dc:relative ${De ? "bg-dc-primary text-white" : "text-dc-text-secondary hover:text-dc-text hover:bg-dc-surface-hover"}`,
|
|
1663
1663
|
title: De ? "Hide schema diagram" : "Show schema diagram",
|
|
1664
|
-
children: /* @__PURE__ */ H(
|
|
1664
|
+
children: /* @__PURE__ */ H(It, { className: "dc:w-4 dc:h-4" })
|
|
1665
1665
|
}),
|
|
1666
1666
|
/* @__PURE__ */ U("button", {
|
|
1667
1667
|
onClick: () => {
|
|
@@ -1669,13 +1669,13 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1669
1669
|
},
|
|
1670
1670
|
className: `dc:p-1.5 dc:rounded dc:transition-colors dc:relative ${X ? "bg-dc-primary text-white" : "text-dc-text-secondary hover:text-dc-text hover:bg-dc-surface-hover"}`,
|
|
1671
1671
|
title: X ? "Hide debug info" : "Show debug info",
|
|
1672
|
-
children: [/* @__PURE__ */ H(
|
|
1672
|
+
children: [/* @__PURE__ */ H(At, { className: "dc:w-4 dc:h-4" }), (a || O.some((e) => e.error)) && !X && /* @__PURE__ */ H("span", { className: "dc:absolute dc:-top-0.5 dc:-right-0.5 dc:w-2 dc:h-2 bg-dc-danger-bg0 dc:rounded-full" })]
|
|
1673
1673
|
})
|
|
1674
1674
|
]
|
|
1675
1675
|
})]
|
|
1676
1676
|
}), e && o !== null && o > 1e3 && /* @__PURE__ */ U("div", {
|
|
1677
1677
|
className: "dc:mt-2 bg-dc-warning-bg dc:border border-dc-warning dc:rounded-lg dc:p-2 dc:flex dc:items-start",
|
|
1678
|
-
children: [/* @__PURE__ */ H(
|
|
1678
|
+
children: [/* @__PURE__ */ H(Dt, { className: "dc:w-4 dc:h-4 text-dc-warning dc:mr-2 dc:shrink-0 dc:mt-0.5" }), /* @__PURE__ */ U("div", {
|
|
1679
1679
|
className: "dc:text-xs text-dc-warning",
|
|
1680
1680
|
children: [
|
|
1681
1681
|
/* @__PURE__ */ H("span", {
|
|
@@ -1692,7 +1692,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1692
1692
|
})]
|
|
1693
1693
|
})]
|
|
1694
1694
|
});
|
|
1695
|
-
},
|
|
1695
|
+
}, an = () => !ne || !j ? null : /* @__PURE__ */ U("div", {
|
|
1696
1696
|
className: "dc:px-4 dc:py-2 bg-dc-warning-bg dc:border-b border-dc-warning dc:flex dc:items-center dc:justify-between dc:gap-3 dc:flex-shrink-0",
|
|
1697
1697
|
children: [/* @__PURE__ */ U("div", {
|
|
1698
1698
|
className: "dc:flex dc:items-center dc:gap-2 text-dc-warning",
|
|
@@ -1716,7 +1716,7 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1716
1716
|
className: "dc:px-3 dc:py-1 dc:text-xs dc:font-medium bg-dc-warning text-white dc:rounded hover:bg-dc-warning/90 dc:transition-colors",
|
|
1717
1717
|
children: K("results.warning.refreshNow")
|
|
1718
1718
|
})]
|
|
1719
|
-
}),
|
|
1719
|
+
}), on = () => !Se || Se.length === 0 ? null : /* @__PURE__ */ H(V, { children: Se.map((t, n) => {
|
|
1720
1720
|
let r = e("warning"), i = t.severity === "error", a = i ? "bg-dc-danger-bg" : "bg-dc-warning-bg", o = i ? "border-dc-error" : "border-dc-warning", s = i ? "text-dc-error" : "text-dc-warning";
|
|
1721
1721
|
return /* @__PURE__ */ U("div", {
|
|
1722
1722
|
className: `dc:px-4 dc:py-2 ${a} dc:border-b ${o} dc:flex dc:items-start dc:gap-3 dc:flex-shrink-0`,
|
|
@@ -1731,12 +1731,12 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1731
1731
|
})]
|
|
1732
1732
|
})]
|
|
1733
1733
|
}, `${t.code}-${n}`);
|
|
1734
|
-
}) }),
|
|
1734
|
+
}) }), sn = () => n && n.length > 0 ? /* @__PURE__ */ U("div", {
|
|
1735
1735
|
className: "dc:h-full dc:flex dc:flex-col",
|
|
1736
1736
|
children: [
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1737
|
+
rn(),
|
|
1738
|
+
an(),
|
|
1739
|
+
on(),
|
|
1740
1740
|
/* @__PURE__ */ H("div", {
|
|
1741
1741
|
className: "dc:flex-1 dc:min-h-0 dc:relative dc:overflow-auto",
|
|
1742
1742
|
children: De ? /* @__PURE__ */ H(re.Suspense, {
|
|
@@ -1746,18 +1746,18 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1746
1746
|
highlightedFields: Ce,
|
|
1747
1747
|
onFieldClick: we
|
|
1748
1748
|
})
|
|
1749
|
-
}) : X ?
|
|
1749
|
+
}) : X ? Qt() : b === "chart" ? /* @__PURE__ */ H("div", {
|
|
1750
1750
|
className: "dc:p-4 dc:h-full",
|
|
1751
|
-
children:
|
|
1751
|
+
children: Gt()
|
|
1752
1752
|
}) : J ? /* @__PURE__ */ H("div", {
|
|
1753
1753
|
className: "dc:h-full",
|
|
1754
|
-
children:
|
|
1755
|
-
}, "table-flow") :
|
|
1754
|
+
children: en()
|
|
1755
|
+
}, "table-flow") : $t ? /* @__PURE__ */ H("div", {
|
|
1756
1756
|
className: "dc:h-full",
|
|
1757
|
-
children:
|
|
1757
|
+
children: tn(ce)
|
|
1758
1758
|
}, `table-${ce}`) : /* @__PURE__ */ H("div", {
|
|
1759
1759
|
className: "dc:h-full",
|
|
1760
|
-
children:
|
|
1760
|
+
children: tn()
|
|
1761
1761
|
}, "table-single")
|
|
1762
1762
|
}),
|
|
1763
1763
|
!X && !De && /* @__PURE__ */ H("div", {
|
|
@@ -1765,19 +1765,19 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1765
1765
|
children: /* @__PURE__ */ U("div", {
|
|
1766
1766
|
className: "dc:flex dc:items-center bg-dc-surface-secondary dc:border border-dc-border dc:rounded-md dc:overflow-hidden",
|
|
1767
1767
|
children: [/* @__PURE__ */ U("button", {
|
|
1768
|
-
onClick: () =>
|
|
1769
|
-
disabled: !
|
|
1770
|
-
className: `dc:flex dc:items-center dc:gap-1.5 dc:px-4 dc:py-1.5 dc:text-sm dc:font-medium dc:transition-colors ${b === "chart" ? "bg-dc-primary text-white" :
|
|
1771
|
-
title:
|
|
1772
|
-
children: [/* @__PURE__ */ H(
|
|
1773
|
-
}),
|
|
1768
|
+
onClick: () => xt && S("chart"),
|
|
1769
|
+
disabled: !xt,
|
|
1770
|
+
className: `dc:flex dc:items-center dc:gap-1.5 dc:px-4 dc:py-1.5 dc:text-sm dc:font-medium dc:transition-colors ${b === "chart" ? "bg-dc-primary text-white" : xt ? "text-dc-text-secondary hover:bg-dc-surface-hover" : "text-dc-text-disabled bg-dc-surface-tertiary dc:cursor-not-allowed"}`,
|
|
1771
|
+
title: Ct,
|
|
1772
|
+
children: [/* @__PURE__ */ H(kt, { className: "dc:w-4 dc:h-4" }), K("results.view.chart")]
|
|
1773
|
+
}), $t ? /* @__PURE__ */ U(V, { children: [Array.from({ length: se }).map((e, t) => /* @__PURE__ */ U("button", {
|
|
1774
1774
|
onClick: () => {
|
|
1775
1775
|
S("table"), ue?.(t);
|
|
1776
1776
|
},
|
|
1777
1777
|
className: `dc:flex dc:items-center dc:gap-1.5 dc:px-3 dc:py-1.5 dc:text-sm dc:font-medium dc:transition-colors ${b === "table" && ce === t ? "bg-dc-primary text-white" : "text-dc-text-secondary hover:bg-dc-surface-hover"}`,
|
|
1778
1778
|
title: `Table Q${t + 1}`,
|
|
1779
1779
|
children: [
|
|
1780
|
-
/* @__PURE__ */ H(
|
|
1780
|
+
/* @__PURE__ */ H(Ot, { className: "dc:w-4 dc:h-4" }),
|
|
1781
1781
|
"Q",
|
|
1782
1782
|
t + 1
|
|
1783
1783
|
]
|
|
@@ -1787,19 +1787,19 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1787
1787
|
},
|
|
1788
1788
|
className: `dc:flex dc:items-center dc:gap-1.5 dc:px-3 dc:py-1.5 dc:text-sm dc:font-medium dc:transition-colors ${b === "table" && ce === -1 ? "bg-dc-primary text-white" : "text-dc-text-secondary hover:bg-dc-surface-hover"}`,
|
|
1789
1789
|
title: "Merged table view",
|
|
1790
|
-
children: [/* @__PURE__ */ H(
|
|
1790
|
+
children: [/* @__PURE__ */ H(Ot, { className: "dc:w-4 dc:h-4" }), K("results.view.merged")]
|
|
1791
1791
|
})] }) : /* @__PURE__ */ U("button", {
|
|
1792
1792
|
onClick: () => S("table"),
|
|
1793
1793
|
className: `dc:flex dc:items-center dc:gap-1.5 dc:px-4 dc:py-1.5 dc:text-sm dc:font-medium dc:transition-colors ${b === "table" ? "bg-dc-primary text-white" : "text-dc-text-secondary hover:bg-dc-surface-hover"}`,
|
|
1794
1794
|
title: "Table view",
|
|
1795
|
-
children: [/* @__PURE__ */ H(
|
|
1795
|
+
children: [/* @__PURE__ */ H(Ot, { className: "dc:w-4 dc:h-4" }), K("results.view.table")]
|
|
1796
1796
|
})]
|
|
1797
1797
|
})
|
|
1798
1798
|
})
|
|
1799
1799
|
]
|
|
1800
1800
|
}) : /* @__PURE__ */ U("div", {
|
|
1801
1801
|
className: "dc:h-full dc:flex dc:flex-col",
|
|
1802
|
-
children: [
|
|
1802
|
+
children: [rn(), /* @__PURE__ */ H("div", {
|
|
1803
1803
|
className: "dc:flex-1 dc:min-h-0 dc:relative dc:overflow-auto",
|
|
1804
1804
|
children: De ? /* @__PURE__ */ H(re.Suspense, {
|
|
1805
1805
|
fallback: null,
|
|
@@ -1808,9 +1808,9 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1808
1808
|
highlightedFields: Ce,
|
|
1809
1809
|
onFieldClick: we
|
|
1810
1810
|
})
|
|
1811
|
-
}) : X ?
|
|
1811
|
+
}) : X ? Qt() : Wt()
|
|
1812
1812
|
})]
|
|
1813
|
-
}),
|
|
1813
|
+
}), cn = R(() => {
|
|
1814
1814
|
if (n === null) return !1;
|
|
1815
1815
|
if (!Array.isArray(n)) return !0;
|
|
1816
1816
|
if (n.length === 0) return !1;
|
|
@@ -1824,19 +1824,19 @@ var _e = F(function({ executionStatus: t, executionResults: n, executionError: a
|
|
|
1824
1824
|
J,
|
|
1825
1825
|
Y,
|
|
1826
1826
|
G
|
|
1827
|
-
]),
|
|
1828
|
-
return ne && !
|
|
1827
|
+
]), ln = cn && (t !== "idle" || Bt);
|
|
1828
|
+
return ne && !cn ? /* @__PURE__ */ H("div", {
|
|
1829
1829
|
className: "dc:h-full dc:min-h-[400px] dc:flex dc:flex-col bg-dc-surface dc:relative",
|
|
1830
|
-
children:
|
|
1830
|
+
children: Ht()
|
|
1831
1831
|
}) : /* @__PURE__ */ U("div", {
|
|
1832
1832
|
className: "dc:h-full dc:min-h-[400px] dc:flex dc:flex-col bg-dc-surface dc:relative",
|
|
1833
1833
|
children: [
|
|
1834
|
-
t === "idle" && !
|
|
1835
|
-
t === "idle" &&
|
|
1836
|
-
t === "loading" && !
|
|
1837
|
-
t === "error" && !
|
|
1838
|
-
(t === "success" ||
|
|
1839
|
-
(t === "loading" || t === "refreshing") &&
|
|
1834
|
+
t === "idle" && !Bt && Ut(),
|
|
1835
|
+
t === "idle" && Bt && !cn && Vt(),
|
|
1836
|
+
t === "loading" && !cn && Lt(),
|
|
1837
|
+
t === "error" && !cn && Rt(),
|
|
1838
|
+
(t === "success" || ln) && sn(),
|
|
1839
|
+
(t === "loading" || t === "refreshing") && cn && nn(),
|
|
1840
1840
|
P && /* @__PURE__ */ H(w, {
|
|
1841
1841
|
isOpen: Ae,
|
|
1842
1842
|
onClose: () => je(!1),
|
|
@@ -2598,7 +2598,7 @@ function Ae({ selectedType: e, onTypeChange: n, className: r = "", compact: i =
|
|
|
2598
2598
|
})
|
|
2599
2599
|
})]
|
|
2600
2600
|
}), u && /* @__PURE__ */ H("div", {
|
|
2601
|
-
className: `dc:absolute dc:z-10 dc:mt-1 dc:w-full bg-dc-surface dc:border border-dc-border dc:rounded-md dc:shadow-lg
|
|
2601
|
+
className: `dc:absolute dc:z-10 dc:mt-1 dc:w-full bg-dc-surface dc:border border-dc-border dc:rounded-md dc:shadow-lg ${i ? "" : "dc:min-w-max"}`,
|
|
2602
2602
|
children: /* @__PURE__ */ H("div", {
|
|
2603
2603
|
className: "dc:p-2",
|
|
2604
2604
|
children: /* @__PURE__ */ H("div", {
|
|
@@ -3486,7 +3486,7 @@ var et = F(function({ value: e, label: t, placeholder: n, icon: r, options: i, o
|
|
|
3486
3486
|
})
|
|
3487
3487
|
]
|
|
3488
3488
|
});
|
|
3489
|
-
}), lt = e("add"),
|
|
3489
|
+
}), lt = e("add"), Q = F(function({ steps: e, activeStepIndex: t, schema: n, onAddStep: r, onRemoveStep: i, onUpdateStep: a, onSelectStep: o, onReorderSteps: s }) {
|
|
3490
3490
|
let { t: c } = p(), [l, u] = B(null), [d, f] = B(null), m = I((e) => {
|
|
3491
3491
|
u(e);
|
|
3492
3492
|
}, []), h = I((e, t) => {
|
|
@@ -3555,7 +3555,7 @@ var et = F(function({ value: e, label: t, placeholder: n, icon: r, options: i, o
|
|
|
3555
3555
|
})
|
|
3556
3556
|
]
|
|
3557
3557
|
});
|
|
3558
|
-
}),
|
|
3558
|
+
}), ut = F(function({ funnelCube: e, funnelSteps: t, activeFunnelStepIndex: n, funnelTimeDimension: r, funnelBindingKey: i, schema: a, onCubeChange: o, onAddStep: s, onRemoveStep: c, onUpdateStep: l, onSelectStep: u, onReorderSteps: d, onTimeDimensionChange: f, onBindingKeyChange: m, chartType: h = "funnel", displayConfig: g, colorPalette: _, onDisplayConfigChange: v }) {
|
|
3559
3559
|
let { t: y } = p(), [b, x] = B("steps"), C = g && v;
|
|
3560
3560
|
return /* @__PURE__ */ U("div", {
|
|
3561
3561
|
className: "dc:flex dc:flex-col dc:h-full",
|
|
@@ -3587,7 +3587,7 @@ var et = F(function({ value: e, label: t, placeholder: n, icon: r, options: i, o
|
|
|
3587
3587
|
onTimeDimensionChange: f
|
|
3588
3588
|
}), /* @__PURE__ */ H("div", {
|
|
3589
3589
|
className: "dc:flex-1 dc:min-h-0 dc:overflow-auto dc:p-4 dc:pb-24",
|
|
3590
|
-
children: /* @__PURE__ */ H(
|
|
3590
|
+
children: /* @__PURE__ */ H(Q, {
|
|
3591
3591
|
steps: t,
|
|
3592
3592
|
activeStepIndex: n,
|
|
3593
3593
|
schema: a,
|
|
@@ -3608,8 +3608,8 @@ var et = F(function({ value: e, label: t, placeholder: n, icon: r, options: i, o
|
|
|
3608
3608
|
})
|
|
3609
3609
|
}) : null]
|
|
3610
3610
|
});
|
|
3611
|
-
}),
|
|
3612
|
-
function
|
|
3611
|
+
}), $ = e("chevronDown"), dt = e("chevronRight"), ft = e("check"), pt = e("search"), mt = e("dimension"), ht = e("link"), gt = e("timeDimension"), _t = e("dimension");
|
|
3612
|
+
function vt(e) {
|
|
3613
3613
|
return e?.cubes ? e.cubes.filter((e) => e.meta?.eventStream).map((e) => ({
|
|
3614
3614
|
cube: e.name,
|
|
3615
3615
|
dimension: e.name,
|
|
@@ -3617,7 +3617,7 @@ function yt(e) {
|
|
|
3617
3617
|
eventStream: e.meta?.eventStream
|
|
3618
3618
|
})) : [];
|
|
3619
3619
|
}
|
|
3620
|
-
function
|
|
3620
|
+
function yt(e) {
|
|
3621
3621
|
if (!e?.cubes) return [];
|
|
3622
3622
|
let t = [];
|
|
3623
3623
|
for (let n of e.cubes) for (let e of n.dimensions || []) e.type === "time" && t.push({
|
|
@@ -3627,7 +3627,7 @@ function bt(e) {
|
|
|
3627
3627
|
});
|
|
3628
3628
|
return t;
|
|
3629
3629
|
}
|
|
3630
|
-
function
|
|
3630
|
+
function bt(e) {
|
|
3631
3631
|
if (!e?.cubes) return [];
|
|
3632
3632
|
let t = [];
|
|
3633
3633
|
for (let n of e.cubes) for (let e of n.dimensions || []) e.type === "string" && t.push({
|
|
@@ -3637,7 +3637,7 @@ function xt(e) {
|
|
|
3637
3637
|
});
|
|
3638
3638
|
return t;
|
|
3639
3639
|
}
|
|
3640
|
-
var
|
|
3640
|
+
var xt = F(function({ value: e, label: t, placeholder: n, icon: r, options: i, onChange: a, helpText: o }) {
|
|
3641
3641
|
let [s, c] = B(!1), [l, u] = B(""), d = z(null), f = z(null), p = R(() => {
|
|
3642
3642
|
let e = {};
|
|
3643
3643
|
for (let t of i) e[t.cube] || (e[t.cube] = []), e[t.cube].push(t);
|
|
@@ -3694,7 +3694,7 @@ var St = F(function({ value: e, label: t, placeholder: n, icon: r, options: i, o
|
|
|
3694
3694
|
className: "dc:p-0.5 dc:rounded hover:bg-dc-surface-hover text-dc-text-muted hover:text-dc-text",
|
|
3695
3695
|
title: "Clear",
|
|
3696
3696
|
children: "x"
|
|
3697
|
-
}),
|
|
3697
|
+
}), $ && /* @__PURE__ */ H($, { className: `dc:w-4 dc:h-4 text-dc-text-muted dc:transition-transform ${s ? "dc:rotate-180" : ""}` })]
|
|
3698
3698
|
})]
|
|
3699
3699
|
}), s && /* @__PURE__ */ U("div", {
|
|
3700
3700
|
className: "dc:absolute dc:z-50 dc:mt-1 dc:left-0 dc:right-0 dc:min-w-[200px] bg-dc-surface dc:border border-dc-border dc:rounded-md dc:shadow-lg",
|
|
@@ -3703,7 +3703,7 @@ var St = F(function({ value: e, label: t, placeholder: n, icon: r, options: i, o
|
|
|
3703
3703
|
className: "dc:p-2 dc:border-b border-dc-border",
|
|
3704
3704
|
children: /* @__PURE__ */ U("div", {
|
|
3705
3705
|
className: "dc:relative",
|
|
3706
|
-
children: [
|
|
3706
|
+
children: [pt && /* @__PURE__ */ H(pt, { className: "dc:absolute dc:left-2 dc:top-1/2 dc:-translate-y-1/2 dc:w-4 dc:h-4 text-dc-text-muted" }), /* @__PURE__ */ H("input", {
|
|
3707
3707
|
ref: f,
|
|
3708
3708
|
type: "text",
|
|
3709
3709
|
value: l,
|
|
@@ -3730,7 +3730,7 @@ var St = F(function({ value: e, label: t, placeholder: n, icon: r, options: i, o
|
|
|
3730
3730
|
dc:rounded dc:transition-colors
|
|
3731
3731
|
${e === t.dimension ? "bg-dc-primary-bg text-dc-primary" : "text-dc-text hover:bg-dc-surface-hover"}
|
|
3732
3732
|
`,
|
|
3733
|
-
children: [/* @__PURE__ */ H("span", { children: t.label }), e === t.dimension &&
|
|
3733
|
+
children: [/* @__PURE__ */ H("span", { children: t.label }), e === t.dimension && ft && /* @__PURE__ */ H(ft, { className: "dc:w-4 dc:h-4" })]
|
|
3734
3734
|
}, t.dimension))]
|
|
3735
3735
|
}, t))
|
|
3736
3736
|
}),
|
|
@@ -3742,15 +3742,15 @@ var St = F(function({ value: e, label: t, placeholder: n, icon: r, options: i, o
|
|
|
3742
3742
|
})]
|
|
3743
3743
|
})]
|
|
3744
3744
|
});
|
|
3745
|
-
}),
|
|
3746
|
-
let { t: l } = p(), u = R(() =>
|
|
3745
|
+
}), St = F(function({ selectedCube: e, bindingKey: t, timeDimension: n, eventDimension: r, schema: i, onCubeChange: a, onBindingKeyChange: o, onTimeDimensionChange: s, onEventDimensionChange: c }) {
|
|
3746
|
+
let { t: l } = p(), u = R(() => vt(i), [i]), d = R(() => {
|
|
3747
3747
|
let t = N(i);
|
|
3748
3748
|
return e ? t.filter((t) => t.cube === e) : [];
|
|
3749
3749
|
}, [i, e]), f = R(() => {
|
|
3750
|
-
let t =
|
|
3750
|
+
let t = yt(i);
|
|
3751
3751
|
return e ? t.filter((t) => t.cube === e) : [];
|
|
3752
3752
|
}, [i, e]), m = R(() => {
|
|
3753
|
-
let t =
|
|
3753
|
+
let t = bt(i);
|
|
3754
3754
|
return e ? t.filter((t) => t.cube === e) : [];
|
|
3755
3755
|
}, [i, e]), h = !!(e && t && n && r), [g, _] = B(!1), v = z(!1);
|
|
3756
3756
|
L(() => {
|
|
@@ -3782,14 +3782,14 @@ var St = F(function({ value: e, label: t, placeholder: n, icon: r, options: i, o
|
|
|
3782
3782
|
children: [/* @__PURE__ */ U("div", {
|
|
3783
3783
|
className: "dc:flex dc:items-center dc:gap-2",
|
|
3784
3784
|
children: [
|
|
3785
|
-
g ?
|
|
3785
|
+
g ? dt && /* @__PURE__ */ H(dt, { className: "dc:w-4 dc:h-4 text-dc-text-muted" }) : $ && /* @__PURE__ */ H($, { className: "dc:w-4 dc:h-4 text-dc-text-muted" }),
|
|
3786
3786
|
/* @__PURE__ */ H(P, {
|
|
3787
3787
|
className: "dc:mb-0",
|
|
3788
3788
|
children: l("flow.config.configuration")
|
|
3789
3789
|
}),
|
|
3790
3790
|
h && /* @__PURE__ */ H("span", {
|
|
3791
3791
|
className: "dc:flex dc:items-center dc:gap-1 dc:text-xs text-dc-success",
|
|
3792
|
-
children:
|
|
3792
|
+
children: ft && /* @__PURE__ */ H(ft, { className: "dc:w-3.5 dc:h-3.5" })
|
|
3793
3793
|
})
|
|
3794
3794
|
]
|
|
3795
3795
|
}), g && h && /* @__PURE__ */ H("span", {
|
|
@@ -3799,38 +3799,38 @@ var St = F(function({ value: e, label: t, placeholder: n, icon: r, options: i, o
|
|
|
3799
3799
|
}), !g && /* @__PURE__ */ U("div", {
|
|
3800
3800
|
className: "dc:flex dc:flex-col dc:gap-3 dc:px-4 dc:pb-3",
|
|
3801
3801
|
children: [
|
|
3802
|
-
/* @__PURE__ */ H(
|
|
3802
|
+
/* @__PURE__ */ H(xt, {
|
|
3803
3803
|
value: e,
|
|
3804
3804
|
label: "Cube",
|
|
3805
3805
|
placeholder: "Select event stream cube",
|
|
3806
|
-
icon:
|
|
3806
|
+
icon: mt,
|
|
3807
3807
|
options: u,
|
|
3808
3808
|
onChange: a,
|
|
3809
3809
|
helpText: "Select a cube configured for flow analysis"
|
|
3810
3810
|
}),
|
|
3811
|
-
/* @__PURE__ */ H(
|
|
3811
|
+
/* @__PURE__ */ H(xt, {
|
|
3812
3812
|
value: y,
|
|
3813
3813
|
label: "Binding Key",
|
|
3814
3814
|
placeholder: e ? "Select binding key" : "Select cube first",
|
|
3815
|
-
icon:
|
|
3815
|
+
icon: ht,
|
|
3816
3816
|
options: d,
|
|
3817
3817
|
onChange: b,
|
|
3818
3818
|
helpText: "Entity that links events together (e.g., user ID)"
|
|
3819
3819
|
}),
|
|
3820
|
-
/* @__PURE__ */ H(
|
|
3820
|
+
/* @__PURE__ */ H(xt, {
|
|
3821
3821
|
value: n,
|
|
3822
3822
|
label: "Time Dimension",
|
|
3823
3823
|
placeholder: e ? "Select time dimension" : "Select cube first",
|
|
3824
|
-
icon:
|
|
3824
|
+
icon: gt,
|
|
3825
3825
|
options: f,
|
|
3826
3826
|
onChange: s,
|
|
3827
3827
|
helpText: "Timestamp field for event ordering"
|
|
3828
3828
|
}),
|
|
3829
|
-
/* @__PURE__ */ H(
|
|
3829
|
+
/* @__PURE__ */ H(xt, {
|
|
3830
3830
|
value: r,
|
|
3831
3831
|
label: "Event Dimension",
|
|
3832
3832
|
placeholder: e ? "Select event dimension" : "Select cube first",
|
|
3833
|
-
icon:
|
|
3833
|
+
icon: _t,
|
|
3834
3834
|
options: m,
|
|
3835
3835
|
onChange: c,
|
|
3836
3836
|
helpText: "Dimension that categorizes events (node labels in Sankey)"
|
|
@@ -3838,7 +3838,7 @@ var St = F(function({ value: e, label: t, placeholder: n, icon: r, options: i, o
|
|
|
3838
3838
|
]
|
|
3839
3839
|
})]
|
|
3840
3840
|
});
|
|
3841
|
-
}),
|
|
3841
|
+
}), Ct = F(function({ flowCube: e, flowBindingKey: t, flowTimeDimension: n, eventDimension: r, startingStep: i, stepsBefore: a, stepsAfter: o, joinStrategy: s = "auto", schema: c, onCubeChange: l, onBindingKeyChange: u, onTimeDimensionChange: d, onEventDimensionChange: f, onStartingStepFiltersChange: m, onStepsBeforeChange: h, onStepsAfterChange: g, onJoinStrategyChange: _, chartType: v = "sankey", onChartTypeChange: y, displayConfig: b, colorPalette: x, onDisplayConfigChange: C }) {
|
|
3842
3842
|
let { t: w } = p(), [T, E] = B("config"), D = b && C, k = I((e) => {
|
|
3843
3843
|
m(e);
|
|
3844
3844
|
}, [m]);
|
|
@@ -3862,7 +3862,7 @@ var St = F(function({ value: e, label: t, placeholder: n, icon: r, options: i, o
|
|
|
3862
3862
|
})
|
|
3863
3863
|
}), T === "config" ? /* @__PURE__ */ U("div", {
|
|
3864
3864
|
className: "dc:flex dc:flex-col dc:flex-1 dc:min-h-0",
|
|
3865
|
-
children: [/* @__PURE__ */ H(
|
|
3865
|
+
children: [/* @__PURE__ */ H(St, {
|
|
3866
3866
|
selectedCube: e,
|
|
3867
3867
|
bindingKey: t,
|
|
3868
3868
|
timeDimension: n,
|
|
@@ -4015,7 +4015,7 @@ var St = F(function({ value: e, label: t, placeholder: n, icon: r, options: i, o
|
|
|
4015
4015
|
})
|
|
4016
4016
|
}) : null]
|
|
4017
4017
|
});
|
|
4018
|
-
}),
|
|
4018
|
+
}), wt = e("chevronDown"), Tt = e("chevronRight"), Et = e("check"), Dt = e("search"), Ot = e("dimension"), kt = e("link"), At = e("timeDimension"), jt = e("timeDimension");
|
|
4019
4019
|
function Mt(e) {
|
|
4020
4020
|
return e?.cubes ? e.cubes.filter((e) => e.meta?.eventStream).map((e) => ({
|
|
4021
4021
|
cube: e.name,
|
|
@@ -4097,7 +4097,7 @@ var Ft = F(function({ value: e, label: t, placeholder: n, icon: r, options: i, o
|
|
|
4097
4097
|
className: "dc:p-0.5 dc:rounded hover:bg-dc-surface-hover text-dc-text-muted hover:text-dc-text",
|
|
4098
4098
|
title: "Clear",
|
|
4099
4099
|
children: "×"
|
|
4100
|
-
}),
|
|
4100
|
+
}), wt && /* @__PURE__ */ H(wt, { className: `dc:w-4 dc:h-4 text-dc-text-muted dc:transition-transform ${s ? "dc:rotate-180" : ""}` })]
|
|
4101
4101
|
})]
|
|
4102
4102
|
}), s && /* @__PURE__ */ U("div", {
|
|
4103
4103
|
className: "dc:absolute dc:z-50 dc:mt-1 dc:left-0 dc:right-0 dc:min-w-[200px] bg-dc-surface dc:border border-dc-border dc:rounded-md dc:shadow-lg",
|
|
@@ -4204,7 +4204,7 @@ var Ft = F(function({ value: e, label: t, placeholder: n, icon: r, options: i, o
|
|
|
4204
4204
|
children: [/* @__PURE__ */ H("span", {
|
|
4205
4205
|
className: "text-dc-text dc:truncate",
|
|
4206
4206
|
children: x
|
|
4207
|
-
}),
|
|
4207
|
+
}), wt && /* @__PURE__ */ H(wt, { className: `dc:w-4 dc:h-4 text-dc-text-muted dc:transition-transform dc:ml-2 ${o ? "dc:rotate-180" : ""}` })]
|
|
4208
4208
|
}), o && /* @__PURE__ */ U("div", {
|
|
4209
4209
|
className: "dc:absolute dc:z-50 dc:mt-1 dc:left-0 dc:right-0 dc:min-w-[280px] bg-dc-surface dc:border border-dc-border dc:rounded-lg dc:shadow-lg dc:p-3",
|
|
4210
4210
|
children: [/* @__PURE__ */ H("div", {
|
|
@@ -4285,7 +4285,7 @@ var Ft = F(function({ value: e, label: t, placeholder: n, icon: r, options: i, o
|
|
|
4285
4285
|
children: [/* @__PURE__ */ U("div", {
|
|
4286
4286
|
className: "dc:flex dc:items-center dc:gap-2",
|
|
4287
4287
|
children: [
|
|
4288
|
-
m ? Tt && /* @__PURE__ */ H(Tt, { className: "dc:w-4 dc:h-4 text-dc-text-muted" }) :
|
|
4288
|
+
m ? Tt && /* @__PURE__ */ H(Tt, { className: "dc:w-4 dc:h-4 text-dc-text-muted" }) : wt && /* @__PURE__ */ H(wt, { className: "dc:w-4 dc:h-4 text-dc-text-muted" }),
|
|
4289
4289
|
/* @__PURE__ */ H(P, {
|
|
4290
4290
|
className: "dc:mb-0",
|
|
4291
4291
|
children: c("retention.config.configuration")
|
|
@@ -4527,127 +4527,119 @@ var zt = F(function({ retentionCube: e = null, retentionBindingKey: t = null, re
|
|
|
4527
4527
|
})
|
|
4528
4528
|
}) : null]
|
|
4529
4529
|
});
|
|
4530
|
-
}), Bt = e("add"), Vt = e("close"), Ht = e("info"), Ut = e("warning"), Wt = e("link"), Gt = F(function({ metrics: e, breakdowns: t, filters: n, schema: r, activeTab: i, onActiveTabChange: a, onAddMetric: o, onRemoveMetric: s, onReorderMetrics: c, onAddBreakdown: l, onRemoveBreakdown: u, onBreakdownGranularityChange: d, onBreakdownComparisonToggle: f, onReorderBreakdowns: m, onFiltersChange: h, onDropFieldToFilter: g, order: _, onOrderChange: v, limit: y, onLimitChange: b, chartType: x, chartConfig: C, displayConfig: w, colorPalette: T, chartAvailability: E, onChartTypeChange: D, onChartConfigChange: k, onDisplayConfigChange: A, validationStatus: ee, validationError: te, queryCount: j = 1, activeQueryIndex: M = 0, mergeStrategy: N = "concat", onActiveQueryChange: ne, onAddQuery: P, onRemoveQuery: re, onMergeStrategyChange: ie, breakdownsLocked: ae = !1, combinedMetrics: F, combinedBreakdowns:
|
|
4531
|
-
let { t: Q } = p(),
|
|
4530
|
+
}), Bt = e("add"), Vt = e("close"), Ht = e("info"), Ut = e("warning"), Wt = e("link"), Gt = F(function({ metrics: e, breakdowns: t, filters: n, schema: r, activeTab: i, onActiveTabChange: a, onAddMetric: o, onRemoveMetric: s, onReorderMetrics: c, onAddBreakdown: l, onRemoveBreakdown: u, onBreakdownGranularityChange: d, onBreakdownComparisonToggle: f, onReorderBreakdowns: m, onFiltersChange: h, onDropFieldToFilter: g, order: _, onOrderChange: v, limit: y, onLimitChange: b, chartType: x, chartConfig: C, displayConfig: w, colorPalette: T, chartAvailability: E, onChartTypeChange: D, onChartConfigChange: k, onDisplayConfigChange: A, validationStatus: ee, validationError: te, queryCount: j = 1, activeQueryIndex: M = 0, mergeStrategy: N = "concat", onActiveQueryChange: ne, onAddQuery: P, onRemoveQuery: re, onMergeStrategyChange: ie, breakdownsLocked: ae = !1, combinedMetrics: F, combinedBreakdowns: L, multiQueryValidation: oe, adapterValidation: z, funnelBindingKey: B, onFunnelBindingKeyChange: se, analysisType: W = "query", onAnalysisTypeChange: ce, funnelCube: le = null, funnelSteps: ue = [], activeFunnelStepIndex: de = 0, funnelTimeDimension: fe, onFunnelCubeChange: pe, onAddFunnelStep: me, onRemoveFunnelStep: he, onUpdateFunnelStep: ge, onSelectFunnelStep: _e, onReorderFunnelSteps: ve, onFunnelTimeDimensionChange: ye, funnelDisplayConfig: be, onFunnelDisplayConfigChange: G, flowCube: Se, flowBindingKey: we, flowTimeDimension: K, eventDimension: q, startingStep: Y, stepsBefore: X = 3, stepsAfter: Ee = 3, flowJoinStrategy: De = "auto", onFlowCubeChange: Oe, onFlowBindingKeyChange: Z, onFlowTimeDimensionChange: ke, onEventDimensionChange: Ae, onStartingStepFiltersChange: je, onStepsBeforeChange: Me, onStepsAfterChange: Ne, onFlowJoinStrategyChange: Fe, flowDisplayConfig: Ie, onFlowDisplayConfigChange: Le, retentionCube: ze, retentionBindingKey: Be, retentionTimeDimension: Ve, retentionDateRange: He, retentionCohortFilters: Ue = [], retentionActivityFilters: Ge = [], retentionBreakdowns: Ke = [], retentionViewGranularity: qe = "week", retentionPeriods: Je = 12, retentionType: Ye = "classic", onRetentionCubeChange: Xe, onRetentionBindingKeyChange: Ze, onRetentionTimeDimensionChange: Qe, onRetentionDateRangeChange: $e, onRetentionCohortFiltersChange: et, onRetentionActivityFiltersChange: tt, onRetentionBreakdownsChange: nt, onAddRetentionBreakdown: rt, onRemoveRetentionBreakdown: it, onRetentionViewGranularityChange: at, onRetentionPeriodsChange: ot, onRetentionTypeChange: st, retentionDisplayConfig: ct, onRetentionDisplayConfigChange: lt }) {
|
|
4531
|
+
let { t: Q } = p(), $ = j > 1, dt = W === "funnel", ft = W === "flow", pt = W === "retention", mt = W === "funnel", ht = I((e) => {
|
|
4532
4532
|
if (!r?.cubes) return null;
|
|
4533
4533
|
let [t] = e.field.split("."), n = r.cubes.find((e) => e.name === t);
|
|
4534
4534
|
return n && n.dimensions?.find((t) => t.name === e.field) || null;
|
|
4535
|
-
}, [r]),
|
|
4536
|
-
L(() => {
|
|
4537
|
-
e.length === 0 && (i === "chart" || i === "display") && a("query");
|
|
4538
|
-
}, [
|
|
4539
|
-
e.length,
|
|
4540
|
-
i,
|
|
4541
|
-
a
|
|
4542
|
-
]);
|
|
4543
|
-
let yt = I((e) => {
|
|
4535
|
+
}, [r]), gt = R(() => t.find((e) => e.isTimeDimension && e.enableComparison), [t]), _t = I((e) => {
|
|
4544
4536
|
ne?.(e), i !== "query" && a("query");
|
|
4545
4537
|
}, [
|
|
4546
4538
|
ne,
|
|
4547
4539
|
i,
|
|
4548
4540
|
a
|
|
4549
|
-
]),
|
|
4541
|
+
]), vt = I((e, t) => {
|
|
4550
4542
|
e.stopPropagation(), re?.(t);
|
|
4551
|
-
}, [re]),
|
|
4543
|
+
}, [re]), yt = (e) => $ ? dt ? `S${e + 1}` : `Q${e + 1}` : Q("analysis.tabs.query");
|
|
4552
4544
|
return /* @__PURE__ */ U("div", {
|
|
4553
4545
|
className: "dc:h-full dc:flex dc:flex-col bg-dc-surface",
|
|
4554
|
-
children: [
|
|
4555
|
-
value:
|
|
4556
|
-
onChange:
|
|
4546
|
+
children: [ce && /* @__PURE__ */ H(We, {
|
|
4547
|
+
value: W,
|
|
4548
|
+
onChange: ce,
|
|
4557
4549
|
schema: r
|
|
4558
|
-
}),
|
|
4559
|
-
funnelCube:
|
|
4560
|
-
funnelSteps:
|
|
4561
|
-
activeFunnelStepIndex:
|
|
4562
|
-
funnelTimeDimension:
|
|
4563
|
-
funnelBindingKey:
|
|
4550
|
+
}), mt && pe && me && he && ge && _e && ve && ye && se ? /* @__PURE__ */ H(ut, {
|
|
4551
|
+
funnelCube: le,
|
|
4552
|
+
funnelSteps: ue,
|
|
4553
|
+
activeFunnelStepIndex: de,
|
|
4554
|
+
funnelTimeDimension: fe ?? null,
|
|
4555
|
+
funnelBindingKey: B ?? null,
|
|
4564
4556
|
schema: r,
|
|
4565
|
-
onCubeChange:
|
|
4566
|
-
onAddStep:
|
|
4567
|
-
onRemoveStep:
|
|
4568
|
-
onUpdateStep:
|
|
4569
|
-
onSelectStep:
|
|
4570
|
-
onReorderSteps:
|
|
4571
|
-
onTimeDimensionChange:
|
|
4572
|
-
onBindingKeyChange:
|
|
4557
|
+
onCubeChange: pe,
|
|
4558
|
+
onAddStep: me,
|
|
4559
|
+
onRemoveStep: he,
|
|
4560
|
+
onUpdateStep: ge,
|
|
4561
|
+
onSelectStep: _e,
|
|
4562
|
+
onReorderSteps: ve,
|
|
4563
|
+
onTimeDimensionChange: ye,
|
|
4564
|
+
onBindingKeyChange: se,
|
|
4573
4565
|
chartType: "funnel",
|
|
4574
|
-
displayConfig:
|
|
4566
|
+
displayConfig: be,
|
|
4575
4567
|
colorPalette: T,
|
|
4576
|
-
onDisplayConfigChange:
|
|
4577
|
-
}) :
|
|
4578
|
-
flowCube:
|
|
4579
|
-
flowBindingKey:
|
|
4580
|
-
flowTimeDimension:
|
|
4581
|
-
eventDimension:
|
|
4582
|
-
startingStep:
|
|
4583
|
-
stepsBefore:
|
|
4584
|
-
stepsAfter:
|
|
4585
|
-
joinStrategy:
|
|
4568
|
+
onDisplayConfigChange: G
|
|
4569
|
+
}) : ft && Oe && Z && ke && Ae && je && Me && Ne && Y ? /* @__PURE__ */ H(Ct, {
|
|
4570
|
+
flowCube: Se ?? null,
|
|
4571
|
+
flowBindingKey: we ?? null,
|
|
4572
|
+
flowTimeDimension: K ?? null,
|
|
4573
|
+
eventDimension: q ?? null,
|
|
4574
|
+
startingStep: Y,
|
|
4575
|
+
stepsBefore: X,
|
|
4576
|
+
stepsAfter: Ee,
|
|
4577
|
+
joinStrategy: De,
|
|
4586
4578
|
schema: r,
|
|
4587
|
-
onCubeChange:
|
|
4588
|
-
onBindingKeyChange:
|
|
4589
|
-
onTimeDimensionChange:
|
|
4590
|
-
onEventDimensionChange:
|
|
4591
|
-
onStartingStepFiltersChange:
|
|
4592
|
-
onStepsBeforeChange:
|
|
4593
|
-
onStepsAfterChange:
|
|
4594
|
-
onJoinStrategyChange:
|
|
4579
|
+
onCubeChange: Oe,
|
|
4580
|
+
onBindingKeyChange: Z,
|
|
4581
|
+
onTimeDimensionChange: ke,
|
|
4582
|
+
onEventDimensionChange: Ae,
|
|
4583
|
+
onStartingStepFiltersChange: je,
|
|
4584
|
+
onStepsBeforeChange: Me,
|
|
4585
|
+
onStepsAfterChange: Ne,
|
|
4586
|
+
onJoinStrategyChange: Fe,
|
|
4595
4587
|
chartType: x,
|
|
4596
4588
|
onChartTypeChange: D,
|
|
4597
|
-
displayConfig:
|
|
4589
|
+
displayConfig: Ie,
|
|
4598
4590
|
colorPalette: T,
|
|
4599
|
-
onDisplayConfigChange:
|
|
4600
|
-
}) :
|
|
4601
|
-
retentionCube:
|
|
4602
|
-
retentionBindingKey:
|
|
4603
|
-
retentionTimeDimension:
|
|
4604
|
-
retentionDateRange:
|
|
4591
|
+
onDisplayConfigChange: Le
|
|
4592
|
+
}) : pt ? /* @__PURE__ */ H(zt, {
|
|
4593
|
+
retentionCube: ze ?? null,
|
|
4594
|
+
retentionBindingKey: Be ?? null,
|
|
4595
|
+
retentionTimeDimension: Ve ?? null,
|
|
4596
|
+
retentionDateRange: He ?? {
|
|
4605
4597
|
start: "",
|
|
4606
4598
|
end: ""
|
|
4607
4599
|
},
|
|
4608
|
-
retentionCohortFilters:
|
|
4609
|
-
retentionActivityFilters:
|
|
4610
|
-
retentionBreakdowns:
|
|
4611
|
-
retentionViewGranularity:
|
|
4612
|
-
retentionPeriods:
|
|
4613
|
-
retentionType:
|
|
4600
|
+
retentionCohortFilters: Ue,
|
|
4601
|
+
retentionActivityFilters: Ge,
|
|
4602
|
+
retentionBreakdowns: Ke,
|
|
4603
|
+
retentionViewGranularity: qe,
|
|
4604
|
+
retentionPeriods: Je,
|
|
4605
|
+
retentionType: Ye,
|
|
4614
4606
|
schema: r,
|
|
4615
|
-
onCubeChange:
|
|
4616
|
-
onBindingKeyChange:
|
|
4617
|
-
onTimeDimensionChange:
|
|
4618
|
-
onDateRangeChange:
|
|
4619
|
-
onCohortFiltersChange:
|
|
4620
|
-
onActivityFiltersChange:
|
|
4621
|
-
onBreakdownsChange:
|
|
4622
|
-
onAddBreakdown:
|
|
4623
|
-
onRemoveBreakdown:
|
|
4624
|
-
onGranularityChange:
|
|
4625
|
-
onPeriodsChange:
|
|
4626
|
-
onRetentionTypeChange:
|
|
4607
|
+
onCubeChange: Xe ?? (() => {}),
|
|
4608
|
+
onBindingKeyChange: Ze ?? (() => {}),
|
|
4609
|
+
onTimeDimensionChange: Qe ?? (() => {}),
|
|
4610
|
+
onDateRangeChange: $e ?? (() => {}),
|
|
4611
|
+
onCohortFiltersChange: et ?? (() => {}),
|
|
4612
|
+
onActivityFiltersChange: tt ?? (() => {}),
|
|
4613
|
+
onBreakdownsChange: nt ?? (() => {}),
|
|
4614
|
+
onAddBreakdown: rt ?? (() => {}),
|
|
4615
|
+
onRemoveBreakdown: it ?? (() => {}),
|
|
4616
|
+
onGranularityChange: at ?? (() => {}),
|
|
4617
|
+
onPeriodsChange: ot ?? (() => {}),
|
|
4618
|
+
onRetentionTypeChange: st ?? (() => {}),
|
|
4627
4619
|
onOpenFieldModal: l,
|
|
4628
4620
|
chartType: x,
|
|
4629
|
-
displayConfig:
|
|
4621
|
+
displayConfig: ct,
|
|
4630
4622
|
colorPalette: T,
|
|
4631
|
-
onDisplayConfigChange:
|
|
4623
|
+
onDisplayConfigChange: lt
|
|
4632
4624
|
}) : /* @__PURE__ */ U(V, { children: [
|
|
4633
4625
|
/* @__PURE__ */ H("div", {
|
|
4634
4626
|
className: "dc:border-b border-dc-border dc:flex-shrink-0 dc:overflow-x-auto dc:overflow-y-hidden scrollbar-thin",
|
|
4635
4627
|
children: /* @__PURE__ */ U("div", {
|
|
4636
4628
|
className: "dc:flex dc:min-w-max",
|
|
4637
4629
|
children: [
|
|
4638
|
-
|
|
4630
|
+
$ ? /* @__PURE__ */ U("div", {
|
|
4639
4631
|
className: "dc:flex dc:min-w-max",
|
|
4640
4632
|
children: [Array.from({ length: j }).map((e, t) => /* @__PURE__ */ U("button", {
|
|
4641
|
-
onClick: () =>
|
|
4633
|
+
onClick: () => _t(t),
|
|
4642
4634
|
className: `dc:flex dc:items-center dc:gap-1 dc:px-3 dc:py-3 dc:text-sm dc:font-medium dc:transition-colors dc:flex-shrink-0 dc:whitespace-nowrap ${t === M && i === "query" ? "text-dc-primary dc:border-b-2 border-dc-primary" : "text-dc-text-secondary hover:text-dc-text"}`,
|
|
4643
|
-
children: [
|
|
4635
|
+
children: [yt(t), /* @__PURE__ */ H("span", {
|
|
4644
4636
|
role: "button",
|
|
4645
4637
|
tabIndex: 0,
|
|
4646
|
-
onClick: (e) =>
|
|
4647
|
-
onKeyDown: (e) => e.key === "Enter" &&
|
|
4638
|
+
onClick: (e) => vt(e, t),
|
|
4639
|
+
onKeyDown: (e) => e.key === "Enter" && vt(e, t),
|
|
4648
4640
|
className: "dc:p-0.5 dc:rounded hover:bg-dc-danger-bg hover:text-dc-error dc:transition-colors dc:ml-0.5",
|
|
4649
4641
|
title: Q("analysis.multiQuery.removeQuery"),
|
|
4650
|
-
"aria-label": `Remove ${
|
|
4642
|
+
"aria-label": `Remove ${yt(t)}`,
|
|
4651
4643
|
children: /* @__PURE__ */ H(Vt, { className: "dc:w-3 dc:h-3" })
|
|
4652
4644
|
})]
|
|
4653
4645
|
}, `q${t}`)), /* @__PURE__ */ H("button", {
|
|
@@ -4676,23 +4668,21 @@ var zt = F(function({ retentionCube: e = null, retentionBindingKey: t = null, re
|
|
|
4676
4668
|
})]
|
|
4677
4669
|
}),
|
|
4678
4670
|
/* @__PURE__ */ H("button", {
|
|
4679
|
-
onClick: () =>
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
title: Q(e.length === 0 ? "analysis.tabs.chartDisabled" : "analysis.tabs.chartTitle"),
|
|
4671
|
+
onClick: () => a("chart"),
|
|
4672
|
+
className: `dc:px-4 dc:py-3 dc:text-sm dc:font-medium dc:transition-colors dc:flex-shrink-0 dc:whitespace-nowrap ${$ ? "" : "dc:flex-1"} ${i === "chart" ? "text-dc-primary dc:border-b-2 border-dc-primary" : "text-dc-text-secondary hover:text-dc-text"}`,
|
|
4673
|
+
title: Q("analysis.tabs.chartTitle"),
|
|
4683
4674
|
children: Q("analysis.tabs.chart")
|
|
4684
4675
|
}),
|
|
4685
4676
|
/* @__PURE__ */ H("button", {
|
|
4686
|
-
onClick: () =>
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
title: Q(e.length === 0 ? "analysis.tabs.displayDisabled" : "analysis.tabs.displayTitle"),
|
|
4677
|
+
onClick: () => a("display"),
|
|
4678
|
+
className: `dc:px-4 dc:py-3 dc:text-sm dc:font-medium dc:transition-colors dc:flex-shrink-0 dc:whitespace-nowrap ${$ ? "" : "dc:flex-1"} ${i === "display" ? "text-dc-primary dc:border-b-2 border-dc-primary" : "text-dc-text-secondary hover:text-dc-text"}`,
|
|
4679
|
+
title: Q("analysis.tabs.displayTitle"),
|
|
4690
4680
|
children: Q("analysis.tabs.display")
|
|
4691
4681
|
})
|
|
4692
4682
|
]
|
|
4693
4683
|
})
|
|
4694
4684
|
}),
|
|
4695
|
-
|
|
4685
|
+
$ && i === "query" && /* @__PURE__ */ U("div", {
|
|
4696
4686
|
className: "dc:flex dc:items-center dc:gap-2 dc:px-4 dc:py-1.5 dc:text-sm bg-dc-surface-secondary dc:border-b border-dc-border",
|
|
4697
4687
|
children: [
|
|
4698
4688
|
Wt && /* @__PURE__ */ H(Wt, { className: "dc:w-3.5 dc:h-3.5 text-dc-text-muted dc:flex-shrink-0" }),
|
|
@@ -4715,30 +4705,30 @@ var zt = F(function({ retentionCube: e = null, retentionBindingKey: t = null, re
|
|
|
4715
4705
|
})
|
|
4716
4706
|
]
|
|
4717
4707
|
}),
|
|
4718
|
-
|
|
4719
|
-
bindingKey:
|
|
4720
|
-
onChange:
|
|
4708
|
+
dt && se && /* @__PURE__ */ H(Re, {
|
|
4709
|
+
bindingKey: B ?? null,
|
|
4710
|
+
onChange: se,
|
|
4721
4711
|
schema: r,
|
|
4722
4712
|
className: "dc:w-[180px] dc:flex-shrink-0"
|
|
4723
4713
|
})
|
|
4724
4714
|
]
|
|
4725
4715
|
}),
|
|
4726
|
-
|
|
4716
|
+
z && (z.errors.length > 0 || z.warnings.length > 0) && i === "query" && /* @__PURE__ */ U("div", {
|
|
4727
4717
|
className: "dc:px-4 dc:py-2 dc:border-b border-dc-border bg-dc-warning-bg dc:space-y-1",
|
|
4728
|
-
children: [
|
|
4718
|
+
children: [z.errors.map((e, t) => /* @__PURE__ */ U("div", {
|
|
4729
4719
|
className: "dc:flex dc:items-start dc:gap-2 dc:text-xs text-dc-error",
|
|
4730
4720
|
children: [/* @__PURE__ */ H(Ut, { className: "dc:w-3.5 dc:h-3.5 dc:mt-0.5 dc:flex-shrink-0" }), /* @__PURE__ */ H("span", { children: Q(e) })]
|
|
4731
|
-
}, `adapter-error-${t}`)),
|
|
4721
|
+
}, `adapter-error-${t}`)), z.warnings.map((e, t) => /* @__PURE__ */ U("div", {
|
|
4732
4722
|
className: "dc:flex dc:items-start dc:gap-2 dc:text-xs text-dc-warning",
|
|
4733
4723
|
children: [/* @__PURE__ */ H(Ht, { className: "dc:w-3.5 dc:h-3.5 dc:mt-0.5 dc:flex-shrink-0" }), /* @__PURE__ */ H("span", { children: Q(e) })]
|
|
4734
4724
|
}, `adapter-warning-${t}`))]
|
|
4735
4725
|
}),
|
|
4736
|
-
|
|
4726
|
+
oe && !dt && (oe.warnings.length > 0 || oe.errors.length > 0) && i === "query" && /* @__PURE__ */ U("div", {
|
|
4737
4727
|
className: "dc:px-4 dc:py-2 dc:border-b border-dc-border bg-dc-warning-bg",
|
|
4738
|
-
children: [
|
|
4728
|
+
children: [oe.errors.map((e, t) => /* @__PURE__ */ U("div", {
|
|
4739
4729
|
className: "dc:flex dc:items-start dc:gap-2 dc:text-xs text-dc-error",
|
|
4740
4730
|
children: [/* @__PURE__ */ H(Ut, { className: "dc:w-3.5 dc:h-3.5 dc:mt-0.5 dc:flex-shrink-0" }), /* @__PURE__ */ H("span", { children: Q(e.message) })]
|
|
4741
|
-
}, `error-${t}`)),
|
|
4731
|
+
}, `error-${t}`)), oe.warnings.map((e, t) => /* @__PURE__ */ U("div", {
|
|
4742
4732
|
className: "dc:flex dc:items-start dc:gap-2 dc:text-xs text-dc-warning",
|
|
4743
4733
|
children: [/* @__PURE__ */ H(Ut, { className: "dc:w-3.5 dc:h-3.5 dc:mt-0.5 dc:flex-shrink-0" }), /* @__PURE__ */ H("span", { children: Q(e.message) })]
|
|
4744
4734
|
}, `warning-${t}`))]
|
|
@@ -4782,11 +4772,11 @@ var zt = F(function({ retentionCube: e = null, retentionBindingKey: t = null, re
|
|
|
4782
4772
|
className: "dc:space-y-1",
|
|
4783
4773
|
children: t.map((e) => /* @__PURE__ */ H(Ce, {
|
|
4784
4774
|
breakdown: e,
|
|
4785
|
-
fieldMeta:
|
|
4775
|
+
fieldMeta: ht(e),
|
|
4786
4776
|
onRemove: () => {},
|
|
4787
4777
|
onGranularityChange: e.isTimeDimension ? (t) => d(e.id, t) : void 0,
|
|
4788
4778
|
onComparisonToggle: e.isTimeDimension && f ? () => f(e.id) : void 0,
|
|
4789
|
-
comparisonDisabled: !!
|
|
4779
|
+
comparisonDisabled: !!gt && gt.id !== e.id
|
|
4790
4780
|
}, e.id))
|
|
4791
4781
|
})
|
|
4792
4782
|
]
|
|
@@ -4815,8 +4805,8 @@ var zt = F(function({ retentionCube: e = null, retentionBindingKey: t = null, re
|
|
|
4815
4805
|
}) : i === "chart" ? /* @__PURE__ */ H(Pe, {
|
|
4816
4806
|
chartType: x,
|
|
4817
4807
|
chartConfig: C,
|
|
4818
|
-
metrics:
|
|
4819
|
-
breakdowns:
|
|
4808
|
+
metrics: $ && F ? F : e,
|
|
4809
|
+
breakdowns: $ && L ? L : t,
|
|
4820
4810
|
schema: r,
|
|
4821
4811
|
chartAvailability: E,
|
|
4822
4812
|
onChartTypeChange: D,
|
|
@@ -5121,7 +5111,7 @@ var Qt = class extends ie {
|
|
|
5121
5111
|
onActiveViewChange: p.actions.setActiveView,
|
|
5122
5112
|
displayLimit: p.displayLimit,
|
|
5123
5113
|
onDisplayLimitChange: p.actions.setDisplayLimit,
|
|
5124
|
-
|
|
5114
|
+
chartAvailability: p.chartAvailability,
|
|
5125
5115
|
debugDataPerQuery: p.debugDataPerQuery,
|
|
5126
5116
|
onShareClick: o ? void 0 : C,
|
|
5127
5117
|
canShare: o ? !1 : p.isValidQuery,
|
|
@@ -5374,4 +5364,4 @@ en.displayName = "AnalysisBuilder";
|
|
|
5374
5364
|
//#endregion
|
|
5375
5365
|
export { en as default };
|
|
5376
5366
|
|
|
5377
|
-
//# sourceMappingURL=analysis-builder-
|
|
5367
|
+
//# sourceMappingURL=analysis-builder-MoGvbMRe.js.map
|