drizzle-cube 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (302) hide show
  1. package/dist/adapters/ActivityGridChart.config-BtECymia.cjs +1 -0
  2. package/dist/adapters/ActivityGridChart.config-CTd5HYjI.js +2 -0
  3. package/dist/adapters/AreaChart.config-1B8iQnfn.js +2 -0
  4. package/dist/adapters/AreaChart.config-hnncyQL4.cjs +1 -0
  5. package/dist/adapters/BarChart.config-C-QCf1rL.cjs +1 -0
  6. package/dist/adapters/BarChart.config-CFelK1qP.js +2 -0
  7. package/dist/adapters/BoxPlotChart.config-CD9WEPyF.js +2 -0
  8. package/dist/adapters/BoxPlotChart.config-DEbLA0BX.cjs +1 -0
  9. package/dist/adapters/BubbleChart.config-B_M4hzzV.js +2 -0
  10. package/dist/adapters/BubbleChart.config-dRZZlAke.cjs +1 -0
  11. package/dist/adapters/CandlestickChart.config-Dsil2Fop.cjs +1 -0
  12. package/dist/adapters/CandlestickChart.config-fuhyFvob.js +2 -0
  13. package/dist/adapters/DataTable.config-q2gqBi6t.cjs +1 -0
  14. package/dist/adapters/DataTable.config-wIQnHX5R.js +2 -0
  15. package/dist/adapters/FunnelChart.config-Dz710ssx.js +2 -0
  16. package/dist/adapters/FunnelChart.config-YNP9CeS-.cjs +1 -0
  17. package/dist/adapters/GaugeChart.config-BG9FcMCn.cjs +1 -0
  18. package/dist/adapters/GaugeChart.config-CgwniXkd.js +2 -0
  19. package/dist/adapters/HeatMapChart.config-1zSMXXoN.cjs +1 -0
  20. package/dist/adapters/HeatMapChart.config-YVEWx6s5.js +2 -0
  21. package/dist/adapters/KpiDelta.config-BWvYXuFp.cjs +1 -0
  22. package/dist/adapters/KpiDelta.config-C_dYM64q.js +2 -0
  23. package/dist/adapters/KpiNumber.config-CXg6toZG.js +2 -0
  24. package/dist/adapters/KpiNumber.config-CZmV-yU1.cjs +1 -0
  25. package/dist/adapters/KpiText.config-BY-SJvAF.js +2 -0
  26. package/dist/adapters/KpiText.config-GSIxy0CE.cjs +1 -0
  27. package/dist/adapters/LineChart.config-CJtF8SOu.js +2 -0
  28. package/dist/adapters/LineChart.config-d0y60gw9.cjs +1 -0
  29. package/dist/adapters/MarkdownChart.config-B6w0spya.cjs +1 -0
  30. package/dist/adapters/MarkdownChart.config-BuIQcWOn.js +2 -0
  31. package/dist/adapters/MeasureProfileChart.config-Bo2n5Ae5.cjs +1 -0
  32. package/dist/adapters/MeasureProfileChart.config-C5d34lsc.js +2 -0
  33. package/dist/adapters/PieChart.config-CDxfXCIt.cjs +1 -0
  34. package/dist/adapters/PieChart.config-CuZxQc5m.js +2 -0
  35. package/dist/adapters/RadarChart.config-DpdVWyh5.cjs +1 -0
  36. package/dist/adapters/RadarChart.config-KrxwaaGu.js +2 -0
  37. package/dist/adapters/RadialBarChart.config-DpRZd0FW.js +2 -0
  38. package/dist/adapters/RadialBarChart.config-faIY4jpE.cjs +1 -0
  39. package/dist/adapters/RetentionCombinedChart.config-CUnScqnS.cjs +1 -0
  40. package/dist/adapters/RetentionCombinedChart.config-Dd8FuawP.js +2 -0
  41. package/dist/adapters/RetentionHeatmap.config-CPd6GeoQ.js +2 -0
  42. package/dist/adapters/RetentionHeatmap.config-CPlHbLom.cjs +1 -0
  43. package/dist/adapters/SankeyChart.config-DbIUqi-H.cjs +1 -0
  44. package/dist/adapters/SankeyChart.config-kzAnW0C7.js +2 -0
  45. package/dist/adapters/ScatterChart.config-4Okvn27v.js +2 -0
  46. package/dist/adapters/ScatterChart.config-4f9nNw3e.cjs +1 -0
  47. package/dist/adapters/SunburstChart.config-BsUQkIM_.js +2 -0
  48. package/dist/adapters/SunburstChart.config-lvnYkWs7.cjs +1 -0
  49. package/dist/adapters/TreeMapChart.config-S0qsgAFW.js +2 -0
  50. package/dist/adapters/TreeMapChart.config-jbwKsTYt.cjs +1 -0
  51. package/dist/adapters/WaterfallChart.config-CDQ74-pS.cjs +1 -0
  52. package/dist/adapters/WaterfallChart.config-XdtH-O5g.js +2 -0
  53. package/dist/adapters/chartConfigHelpers-CcvqrIWF.js +72 -0
  54. package/dist/adapters/chartConfigHelpers-DHQB-_v5.cjs +1 -0
  55. package/dist/adapters/{locale-ZLUUNUxr.cjs → compiler-ChGO4ZLU.cjs} +1 -1
  56. package/dist/adapters/{locale-DDvZDFVn.js → compiler-LKTN9PTt.js} +2 -21
  57. package/dist/adapters/core/cube-http-handler.d.ts +27 -0
  58. package/dist/adapters/core/http-port.d.ts +39 -0
  59. package/dist/adapters/core/index.cjs +1 -0
  60. package/dist/adapters/core/index.d.ts +11 -0
  61. package/dist/adapters/core/index.js +2 -0
  62. package/dist/adapters/core/mcp-handler.d.ts +13 -0
  63. package/dist/adapters/core/rest-handlers.d.ts +14 -0
  64. package/dist/adapters/core/security-context.d.ts +17 -0
  65. package/dist/adapters/core-Bbchr0ui.js +244 -0
  66. package/dist/adapters/core-F1pCQPde.cjs +1 -0
  67. package/dist/adapters/express/index.cjs +2 -2
  68. package/dist/adapters/express/index.js +93 -201
  69. package/dist/adapters/fastify/index.cjs +2 -2
  70. package/dist/adapters/fastify/index.js +79 -217
  71. package/dist/adapters/handler-DRZb2ip6.cjs +25 -0
  72. package/dist/adapters/{handler-CtaSua-i.js → handler-u8FyzPBT.js} +1572 -1500
  73. package/dist/adapters/hono/index.cjs +2 -2
  74. package/dist/adapters/hono/index.js +69 -225
  75. package/dist/adapters/mcp-tools.cjs +1 -1
  76. package/dist/adapters/mcp-tools.js +1 -1
  77. package/dist/adapters/mcp-transport-Bw_zqky2.js +591 -0
  78. package/dist/adapters/mcp-transport-CNIPoe1i.cjs +40 -0
  79. package/dist/adapters/nextjs/index.cjs +1 -1
  80. package/dist/adapters/nextjs/index.d.ts +8 -9
  81. package/dist/adapters/nextjs/index.js +181 -288
  82. package/dist/adapters/nextjs/mcp-handler.d.ts +0 -28
  83. package/dist/adapters/{openai-D-6l1Y8h.cjs → openai-B4kAJTSD.cjs} +1 -1
  84. package/dist/adapters/{openai-DTSTMiXL.cjs → openai-Cdf2wWZA.cjs} +1 -1
  85. package/dist/adapters/{openai-CmVRIbUg.js → openai-CmMzrs1Y.js} +1 -1
  86. package/dist/adapters/{openai-CtXqeznO.js → openai-DhzGY9R4.js} +1 -1
  87. package/dist/cjs/adapters/core/cube-http-handler.d.ts +27 -0
  88. package/dist/cjs/adapters/core/http-port.d.ts +39 -0
  89. package/dist/cjs/adapters/core/index.d.ts +11 -0
  90. package/dist/cjs/adapters/core/mcp-handler.d.ts +13 -0
  91. package/dist/cjs/adapters/core/rest-handlers.d.ts +14 -0
  92. package/dist/cjs/adapters/core/security-context.d.ts +17 -0
  93. package/dist/cjs/adapters/nextjs/index.d.ts +8 -9
  94. package/dist/cjs/adapters/nextjs/mcp-handler.d.ts +0 -28
  95. package/dist/cjs/client/charts/chartComponentRegistry.d.ts +1 -9
  96. package/dist/cjs/client/charts/chartConfigRegistry.d.ts +5 -1
  97. package/dist/cjs/client/charts/chartPlugin.d.ts +1 -2
  98. package/dist/cjs/client/charts/chartRegistry.d.ts +73 -0
  99. package/dist/cjs/client/components/AIAssistant/index.d.ts +2 -2
  100. package/dist/cjs/client/components/charts/ActivityGridChart.config.d.ts +6 -1
  101. package/dist/cjs/client/components/charts/AreaChart.config.d.ts +6 -1
  102. package/dist/cjs/client/components/charts/BarChart.config.d.ts +6 -1
  103. package/dist/cjs/client/components/charts/BoxPlotChart.config.d.ts +6 -1
  104. package/dist/cjs/client/components/charts/BubbleChart.config.d.ts +6 -1
  105. package/dist/cjs/client/components/charts/CandlestickChart.config.d.ts +6 -1
  106. package/dist/cjs/client/components/charts/DataTable.config.d.ts +6 -1
  107. package/dist/cjs/client/components/charts/FunnelChart.config.d.ts +5 -0
  108. package/dist/cjs/client/components/charts/GaugeChart.config.d.ts +6 -1
  109. package/dist/cjs/client/components/charts/HeatMapChart.config.d.ts +6 -1
  110. package/dist/cjs/client/components/charts/KpiDelta.config.d.ts +6 -1
  111. package/dist/cjs/client/components/charts/KpiNumber.config.d.ts +6 -1
  112. package/dist/cjs/client/components/charts/KpiText.config.d.ts +6 -1
  113. package/dist/cjs/client/components/charts/LineChart.config.d.ts +6 -1
  114. package/dist/cjs/client/components/charts/MarkdownChart.config.d.ts +6 -1
  115. package/dist/cjs/client/components/charts/MeasureProfileChart.config.d.ts +6 -1
  116. package/dist/cjs/client/components/charts/PieChart.config.d.ts +6 -1
  117. package/dist/cjs/client/components/charts/RadarChart.config.d.ts +6 -1
  118. package/dist/cjs/client/components/charts/RadialBarChart.config.d.ts +6 -1
  119. package/dist/cjs/client/components/charts/SankeyChart.config.d.ts +5 -0
  120. package/dist/cjs/client/components/charts/ScatterChart.config.d.ts +6 -1
  121. package/dist/cjs/client/components/charts/SunburstChart.config.d.ts +5 -0
  122. package/dist/cjs/client/components/charts/TreeMapChart.config.d.ts +6 -1
  123. package/dist/cjs/client/components/charts/WaterfallChart.config.d.ts +6 -1
  124. package/dist/cjs/client/hooks/analysisQueryExecutionModes.d.ts +1 -1
  125. package/dist/cjs/client/hooks/useAnalysisEffects.d.ts +33 -0
  126. package/dist/{client/hooks/useAnalysisQueryExecution.d.ts → cjs/client/hooks/useAnalysisQuery.d.ts} +3 -3
  127. package/dist/cjs/client/hooks/useAnalysisState.d.ts +165 -0
  128. package/dist/cjs/client/icons/registry.d.ts +0 -6
  129. package/dist/cjs/client/icons/types.d.ts +5 -0
  130. package/dist/client/charts/chartComponentRegistry.d.ts +1 -9
  131. package/dist/client/charts/chartConfigRegistry.d.ts +5 -1
  132. package/dist/client/charts/chartPlugin.d.ts +1 -2
  133. package/dist/client/charts/chartRegistry.d.ts +73 -0
  134. package/dist/client/charts.js +3 -3
  135. package/dist/client/chunks/{DashboardEditModal-okVfH8ZK.js → DashboardEditModal-CWurUU2B.js} +7 -7
  136. package/dist/client/chunks/{DashboardEditModal-okVfH8ZK.js.map → DashboardEditModal-CWurUU2B.js.map} +1 -1
  137. package/dist/client/chunks/{analysis-builder-DB88FojM.js → analysis-builder-Uj_Fxv0-.js} +1588 -1857
  138. package/dist/client/chunks/analysis-builder-Uj_Fxv0-.js.map +1 -0
  139. package/dist/client/chunks/{analysis-builder-shared-BVK4TYfR.js → analysis-builder-shared-AdAYIfj_.js} +1531 -1266
  140. package/dist/client/chunks/analysis-builder-shared-AdAYIfj_.js.map +1 -0
  141. package/dist/client/chunks/{chart-config-activity-grid-D_UX4NHC.js → chart-config-activity-grid-BU_bkvER.js} +1 -11
  142. package/dist/client/chunks/chart-config-activity-grid-BU_bkvER.js.map +1 -0
  143. package/dist/client/chunks/{chart-config-area-BNigHUy8.js → chart-config-area-DxwIZ4Uf.js} +1 -5
  144. package/dist/client/chunks/{chart-config-area-BNigHUy8.js.map → chart-config-area-DxwIZ4Uf.js.map} +1 -1
  145. package/dist/client/chunks/{chart-config-bar-DSO_LRTx.js → chart-config-bar-Cc8GY9aQ.js} +5 -9
  146. package/dist/client/chunks/chart-config-bar-Cc8GY9aQ.js.map +1 -0
  147. package/dist/client/chunks/{chart-config-box-plot-oW8axV2q.js → chart-config-box-plot-Bs8ovYvV.js} +3 -8
  148. package/dist/client/chunks/chart-config-box-plot-Bs8ovYvV.js.map +1 -0
  149. package/dist/client/chunks/{chart-config-bubble-gIoqVyjZ.js → chart-config-bubble-BfgY7pt8.js} +1 -11
  150. package/dist/client/chunks/chart-config-bubble-BfgY7pt8.js.map +1 -0
  151. package/dist/client/chunks/{chart-config-candlestick-N6DchAA3.js → chart-config-candlestick-jaeNNEtC.js} +1 -11
  152. package/dist/client/chunks/chart-config-candlestick-jaeNNEtC.js.map +1 -0
  153. package/dist/client/chunks/{chart-config-data-table-d7VBY-y_.js → chart-config-data-table-CRk0C0rW.js} +1 -4
  154. package/dist/client/chunks/chart-config-data-table-CRk0C0rW.js.map +1 -0
  155. package/dist/client/chunks/{chart-config-funnel-DEYMcxsD.js → chart-config-funnel-boT_LNfl.js} +1 -4
  156. package/dist/client/chunks/chart-config-funnel-boT_LNfl.js.map +1 -0
  157. package/dist/client/chunks/{chart-config-gauge-Dq-_H9UN.js → chart-config-gauge-C5uJEr97.js} +3 -8
  158. package/dist/client/chunks/chart-config-gauge-C5uJEr97.js.map +1 -0
  159. package/dist/client/chunks/{chart-config-heat-map-CfRnRNcw.js → chart-config-heat-map-CCarP44-.js} +1 -11
  160. package/dist/client/chunks/chart-config-heat-map-CCarP44-.js.map +1 -0
  161. package/dist/client/chunks/{chart-config-kpi-delta-DSQbvqu_.js → chart-config-kpi-delta-DYopvwyG.js} +3 -8
  162. package/dist/client/chunks/chart-config-kpi-delta-DYopvwyG.js.map +1 -0
  163. package/dist/client/chunks/{chart-config-kpi-number-EFSWY1We.js → chart-config-kpi-number-BhMdoArB.js} +3 -8
  164. package/dist/client/chunks/chart-config-kpi-number-BhMdoArB.js.map +1 -0
  165. package/dist/client/chunks/{chart-config-kpi-text-KM3V5X2u.js → chart-config-kpi-text-DE6Zdi53.js} +3 -8
  166. package/dist/client/chunks/chart-config-kpi-text-DE6Zdi53.js.map +1 -0
  167. package/dist/client/chunks/{chart-config-line-D6jG8PCH.js → chart-config-line-CBfM0Rds.js} +6 -10
  168. package/dist/client/chunks/chart-config-line-CBfM0Rds.js.map +1 -0
  169. package/dist/client/chunks/{chart-config-markdown-BtRIe8JN.js → chart-config-markdown-BCDyBI8K.js} +1 -4
  170. package/dist/client/chunks/chart-config-markdown-BCDyBI8K.js.map +1 -0
  171. package/dist/client/chunks/{chart-config-measure-profile-DxRGa-zf.js → chart-config-measure-profile-BgQIH1u2.js} +1 -8
  172. package/dist/client/chunks/chart-config-measure-profile-BgQIH1u2.js.map +1 -0
  173. package/dist/client/chunks/{chart-config-pie-BhzW-fdn.js → chart-config-pie-ChfFz6DV.js} +5 -9
  174. package/dist/client/chunks/chart-config-pie-ChfFz6DV.js.map +1 -0
  175. package/dist/client/chunks/{chart-config-radar-D7REP1q_.js → chart-config-radar-BlAIGnww.js} +5 -9
  176. package/dist/client/chunks/chart-config-radar-BlAIGnww.js.map +1 -0
  177. package/dist/client/chunks/{chart-config-radial-bar-Byx6qOPU.js → chart-config-radial-bar-VFerwbCO.js} +5 -9
  178. package/dist/client/chunks/chart-config-radial-bar-VFerwbCO.js.map +1 -0
  179. package/dist/client/chunks/{chart-config-sankey-BTnWA7EW.js → chart-config-sankey-BhrDxIgj.js} +1 -4
  180. package/dist/client/chunks/chart-config-sankey-BhrDxIgj.js.map +1 -0
  181. package/dist/client/chunks/{chart-config-scatter-DSYTjwRb.js → chart-config-scatter-q_olh54e.js} +1 -11
  182. package/dist/client/chunks/chart-config-scatter-q_olh54e.js.map +1 -0
  183. package/dist/client/chunks/{chart-config-sunburst-Bwjtdf7X.js → chart-config-sunburst-BOmkOnKn.js} +1 -4
  184. package/dist/client/chunks/chart-config-sunburst-BOmkOnKn.js.map +1 -0
  185. package/dist/client/chunks/{chart-config-tree-map-DVrvf3yQ.js → chart-config-tree-map-BjX88YBY.js} +5 -9
  186. package/dist/client/chunks/chart-config-tree-map-BjX88YBY.js.map +1 -0
  187. package/dist/client/chunks/{chart-config-waterfall-DmFeQdIk.js → chart-config-waterfall-QsWXVSoF.js} +3 -8
  188. package/dist/client/chunks/chart-config-waterfall-QsWXVSoF.js.map +1 -0
  189. package/dist/client/chunks/{chart-data-table-CKauQXme.js → chart-data-table-D4g5_jfF.js} +1277 -1094
  190. package/dist/client/chunks/chart-data-table-D4g5_jfF.js.map +1 -0
  191. package/dist/client/chunks/{chart-kpi-delta-Dn-jjO-2.js → chart-kpi-delta-BvWOt8-D.js} +2 -2
  192. package/dist/client/chunks/{chart-kpi-delta-Dn-jjO-2.js.map → chart-kpi-delta-BvWOt8-D.js.map} +1 -1
  193. package/dist/client/chunks/{chart-kpi-number-P_WBiO5S.js → chart-kpi-number-xgZmMiQY.js} +3 -3
  194. package/dist/client/chunks/{chart-kpi-number-P_WBiO5S.js.map → chart-kpi-number-xgZmMiQY.js.map} +1 -1
  195. package/dist/client/chunks/{chart-kpi-text-C-Y4eb5H.js → chart-kpi-text-ZO3eFi7t.js} +2 -2
  196. package/dist/client/chunks/{chart-kpi-text-C-Y4eb5H.js.map → chart-kpi-text-ZO3eFi7t.js.map} +1 -1
  197. package/dist/client/chunks/{charts-loader-DdTeCeNo.js → charts-loader-B0DOQMFH.js} +6 -6
  198. package/dist/client/chunks/{charts-loader-DdTeCeNo.js.map → charts-loader-B0DOQMFH.js.map} +1 -1
  199. package/dist/client/chunks/{schema-visualization-Cb_E9_Gd.js → schema-visualization-DJPTktM6.js} +2 -2
  200. package/dist/client/chunks/{schema-visualization-Cb_E9_Gd.js.map → schema-visualization-DJPTktM6.js.map} +1 -1
  201. package/dist/client/chunks/{useDirtyStateTracking-MbpxH_v6.js → useDirtyStateTracking-BY_IIG1n.js} +2 -2
  202. package/dist/client/chunks/{useDirtyStateTracking-MbpxH_v6.js.map → useDirtyStateTracking-BY_IIG1n.js.map} +1 -1
  203. package/dist/client/chunks/{useExplainAI-evnZkjCY.js → useExplainAI-PjMBmj2p.js} +4 -4
  204. package/dist/client/chunks/{useExplainAI-evnZkjCY.js.map → useExplainAI-PjMBmj2p.js.map} +1 -1
  205. package/dist/client/chunks/{utils-3P6z1vz5.js → utils-Cq-j5E5I.js} +2 -2
  206. package/dist/client/chunks/{utils-3P6z1vz5.js.map → utils-Cq-j5E5I.js.map} +1 -1
  207. package/dist/client/chunks/{vendor-DSpR0IW6.js → vendor-D4jADu8t.js} +2 -2
  208. package/dist/client/chunks/{vendor-DSpR0IW6.js.map → vendor-D4jADu8t.js.map} +1 -1
  209. package/dist/client/components/AIAssistant/index.d.ts +2 -2
  210. package/dist/client/components/charts/ActivityGridChart.config.d.ts +6 -1
  211. package/dist/client/components/charts/AreaChart.config.d.ts +6 -1
  212. package/dist/client/components/charts/BarChart.config.d.ts +6 -1
  213. package/dist/client/components/charts/BoxPlotChart.config.d.ts +6 -1
  214. package/dist/client/components/charts/BubbleChart.config.d.ts +6 -1
  215. package/dist/client/components/charts/CandlestickChart.config.d.ts +6 -1
  216. package/dist/client/components/charts/DataTable.config.d.ts +6 -1
  217. package/dist/client/components/charts/FunnelChart.config.d.ts +5 -0
  218. package/dist/client/components/charts/GaugeChart.config.d.ts +6 -1
  219. package/dist/client/components/charts/HeatMapChart.config.d.ts +6 -1
  220. package/dist/client/components/charts/KpiDelta.config.d.ts +6 -1
  221. package/dist/client/components/charts/KpiNumber.config.d.ts +6 -1
  222. package/dist/client/components/charts/KpiText.config.d.ts +6 -1
  223. package/dist/client/components/charts/LineChart.config.d.ts +6 -1
  224. package/dist/client/components/charts/MarkdownChart.config.d.ts +6 -1
  225. package/dist/client/components/charts/MeasureProfileChart.config.d.ts +6 -1
  226. package/dist/client/components/charts/PieChart.config.d.ts +6 -1
  227. package/dist/client/components/charts/RadarChart.config.d.ts +6 -1
  228. package/dist/client/components/charts/RadialBarChart.config.d.ts +6 -1
  229. package/dist/client/components/charts/SankeyChart.config.d.ts +5 -0
  230. package/dist/client/components/charts/ScatterChart.config.d.ts +6 -1
  231. package/dist/client/components/charts/SunburstChart.config.d.ts +5 -0
  232. package/dist/client/components/charts/TreeMapChart.config.d.ts +6 -1
  233. package/dist/client/components/charts/WaterfallChart.config.d.ts +6 -1
  234. package/dist/client/components.js +2 -2
  235. package/dist/client/hooks/analysisQueryExecutionModes.d.ts +1 -1
  236. package/dist/client/hooks/useAnalysisEffects.d.ts +33 -0
  237. package/dist/{cjs/client/hooks/useAnalysisQueryExecution.d.ts → client/hooks/useAnalysisQuery.d.ts} +3 -3
  238. package/dist/client/hooks/useAnalysisState.d.ts +165 -0
  239. package/dist/client/hooks.js +3 -3
  240. package/dist/client/icons/registry.d.ts +0 -6
  241. package/dist/client/icons/types.d.ts +5 -0
  242. package/dist/client/icons.js +1 -1
  243. package/dist/client/index.js +9 -9
  244. package/dist/client/providers.js +1 -1
  245. package/dist/client/schema.js +1 -1
  246. package/dist/client/utils.js +3 -3
  247. package/dist/client-bundle-stats.html +1 -1
  248. package/dist/mcp-app/mcp-app.html +34 -34
  249. package/dist/server/chartConfigHelpers-CcvqrIWF.js +72 -0
  250. package/dist/server/chartConfigHelpers-DHQB-_v5.cjs +1 -0
  251. package/dist/server/index.cjs +68 -68
  252. package/dist/server/index.js +3800 -3728
  253. package/dist/server/{openai-D-6l1Y8h.cjs → openai-B4kAJTSD.cjs} +1 -1
  254. package/dist/server/{openai-DTSTMiXL.cjs → openai-Cdf2wWZA.cjs} +1 -1
  255. package/dist/server/{openai-CmVRIbUg.js → openai-CmMzrs1Y.js} +1 -1
  256. package/dist/server/{openai-CtXqeznO.js → openai-DhzGY9R4.js} +1 -1
  257. package/package.json +12 -2
  258. package/dist/adapters/handler-OwxSBJH8.cjs +0 -25
  259. package/dist/adapters/hono/mcp-handler.d.ts +0 -37
  260. package/dist/adapters/mcp-transport-B7ddET3M.cjs +0 -40
  261. package/dist/adapters/mcp-transport-Dfuj4j4q.js +0 -591
  262. package/dist/cjs/adapters/hono/mcp-handler.d.ts +0 -37
  263. package/dist/cjs/client/hooks/useAnalysisAI.d.ts +0 -56
  264. package/dist/cjs/client/hooks/useAnalysisChartDefaults.d.ts +0 -35
  265. package/dist/cjs/client/hooks/useAnalysisCombinedFields.d.ts +0 -18
  266. package/dist/cjs/client/hooks/useAnalysisInitialization.d.ts +0 -25
  267. package/dist/cjs/client/hooks/useAnalysisQueryBuilder.d.ts +0 -32
  268. package/dist/cjs/client/hooks/useAnalysisShare.d.ts +0 -18
  269. package/dist/cjs/client/hooks/useAnalysisUIState.d.ts +0 -24
  270. package/dist/client/chunks/analysis-builder-DB88FojM.js.map +0 -1
  271. package/dist/client/chunks/analysis-builder-shared-BVK4TYfR.js.map +0 -1
  272. package/dist/client/chunks/chart-config-activity-grid-D_UX4NHC.js.map +0 -1
  273. package/dist/client/chunks/chart-config-bar-DSO_LRTx.js.map +0 -1
  274. package/dist/client/chunks/chart-config-box-plot-oW8axV2q.js.map +0 -1
  275. package/dist/client/chunks/chart-config-bubble-gIoqVyjZ.js.map +0 -1
  276. package/dist/client/chunks/chart-config-candlestick-N6DchAA3.js.map +0 -1
  277. package/dist/client/chunks/chart-config-data-table-d7VBY-y_.js.map +0 -1
  278. package/dist/client/chunks/chart-config-funnel-DEYMcxsD.js.map +0 -1
  279. package/dist/client/chunks/chart-config-gauge-Dq-_H9UN.js.map +0 -1
  280. package/dist/client/chunks/chart-config-heat-map-CfRnRNcw.js.map +0 -1
  281. package/dist/client/chunks/chart-config-kpi-delta-DSQbvqu_.js.map +0 -1
  282. package/dist/client/chunks/chart-config-kpi-number-EFSWY1We.js.map +0 -1
  283. package/dist/client/chunks/chart-config-kpi-text-KM3V5X2u.js.map +0 -1
  284. package/dist/client/chunks/chart-config-line-D6jG8PCH.js.map +0 -1
  285. package/dist/client/chunks/chart-config-markdown-BtRIe8JN.js.map +0 -1
  286. package/dist/client/chunks/chart-config-measure-profile-DxRGa-zf.js.map +0 -1
  287. package/dist/client/chunks/chart-config-pie-BhzW-fdn.js.map +0 -1
  288. package/dist/client/chunks/chart-config-radar-D7REP1q_.js.map +0 -1
  289. package/dist/client/chunks/chart-config-radial-bar-Byx6qOPU.js.map +0 -1
  290. package/dist/client/chunks/chart-config-sankey-BTnWA7EW.js.map +0 -1
  291. package/dist/client/chunks/chart-config-scatter-DSYTjwRb.js.map +0 -1
  292. package/dist/client/chunks/chart-config-sunburst-Bwjtdf7X.js.map +0 -1
  293. package/dist/client/chunks/chart-config-tree-map-DVrvf3yQ.js.map +0 -1
  294. package/dist/client/chunks/chart-config-waterfall-DmFeQdIk.js.map +0 -1
  295. package/dist/client/chunks/chart-data-table-CKauQXme.js.map +0 -1
  296. package/dist/client/hooks/useAnalysisAI.d.ts +0 -56
  297. package/dist/client/hooks/useAnalysisChartDefaults.d.ts +0 -35
  298. package/dist/client/hooks/useAnalysisCombinedFields.d.ts +0 -18
  299. package/dist/client/hooks/useAnalysisInitialization.d.ts +0 -25
  300. package/dist/client/hooks/useAnalysisQueryBuilder.d.ts +0 -32
  301. package/dist/client/hooks/useAnalysisShare.d.ts +0 -18
  302. package/dist/client/hooks/useAnalysisUIState.d.ts +0 -24
@@ -1,6 +1,7 @@
1
1
  import { O as e, _ as t, g as n, h as r, m as i, p as a, v as o, x as s } from "./utils-BPWZsX7k.js";
2
+ import { a as c, c as l, i as u, n as d, o as f, r as p, s as m, t as h } from "./chartConfigHelpers-CcvqrIWF.js";
2
3
  //#region src/server/agent/system-prompt.ts
3
- function c(e, t) {
4
+ function g(e, t) {
4
5
  if (!(!t.measures || t.measures.length === 0)) {
5
6
  e.push(""), e.push("**Measures:**");
6
7
  for (let n of t.measures) {
@@ -9,7 +10,7 @@ function c(e, t) {
9
10
  }
10
11
  }
11
12
  }
12
- function l(e, t) {
13
+ function _(e, t) {
13
14
  if (!(!t.dimensions || t.dimensions.length === 0)) {
14
15
  e.push(""), e.push("**Dimensions:**");
15
16
  for (let n of t.dimensions) {
@@ -18,25 +19,25 @@ function l(e, t) {
18
19
  }
19
20
  }
20
21
  }
21
- function u(e, t) {
22
+ function v(e, t) {
22
23
  if (!(!t.relationships || t.relationships.length === 0)) {
23
24
  e.push(""), e.push("**Joins:**");
24
25
  for (let n of t.relationships) e.push(`- → \`${n.targetCube}\` (${n.relationship})`);
25
26
  }
26
27
  }
27
- function d(e, t) {
28
+ function y(e, t) {
28
29
  t.meta?.eventStream && (e.push(""), e.push("**Event Stream:** Yes (supports funnel, flow, retention queries)"), t.meta.eventStream.bindingKey && e.push(`- Binding key: \`${t.name}.${t.meta.eventStream.bindingKey}\``), t.meta.eventStream.timeDimension && e.push(`- Time dimension: \`${t.name}.${t.meta.eventStream.timeDimension}\``));
29
30
  }
30
- function f(e) {
31
+ function b(e) {
31
32
  if (e.length === 0) return "No cubes are currently available.";
32
33
  let t = ["## Available Cubes", ""];
33
- for (let n of e) t.push(`### ${n.name}`), n.description && t.push(n.description), c(t, n), l(t, n), u(t, n), d(t, n), t.push("");
34
+ for (let n of e) t.push(`### ${n.name}`), n.description && t.push(n.description), g(t, n), _(t, n), v(t, n), y(t, n), t.push("");
34
35
  return t.join("\n");
35
36
  }
36
- function p(e) {
37
+ function x(e) {
37
38
  return e.messages.map((e) => e.content.text).join("\n\n");
38
39
  }
39
- function m(e) {
40
+ function ee(e) {
40
41
  return [
41
42
  "# Drizzle Cube Analytics Agent",
42
43
  "",
@@ -177,15 +178,15 @@ function m(e) {
177
178
  "",
178
179
  "---",
179
180
  "",
180
- p(t),
181
+ x(t),
181
182
  "",
182
183
  "---",
183
184
  "",
184
- p(o),
185
+ x(o),
185
186
  "",
186
187
  "---",
187
188
  "",
188
- p(n),
189
+ x(n),
189
190
  "",
190
191
  "---",
191
192
  "",
@@ -240,315 +241,1412 @@ function m(e) {
240
241
  "",
241
242
  "---",
242
243
  "",
243
- f(e)
244
+ b(e)
244
245
  ].join("\n");
245
246
  }
246
247
  //#endregion
247
- //#region src/client/charts/chartConfigHelpers.ts
248
- function h({ measureCount: e, dimensionCount: t }) {
249
- return e < 1 ? {
250
- available: !1,
251
- reason: "chart.availability.requiresMeasure"
252
- } : t < 1 ? {
253
- available: !1,
254
- reason: "chart.availability.requiresDimension"
255
- } : { available: !0 };
256
- }
257
- function g({ measureCount: e }) {
258
- return e < 1 ? {
259
- available: !1,
260
- reason: "chart.availability.requiresMeasure"
261
- } : { available: !0 };
262
- }
263
- var _ = {
264
- key: "target",
265
- label: "chart.option.target.label",
266
- type: "string",
267
- placeholder: "e.g., 100 or 50,75 for spread",
268
- description: "chart.option.target.description"
269
- }, v = {
270
- key: "connectNulls",
271
- label: "chart.option.connectNulls.label",
272
- type: "boolean",
273
- defaultValue: !1,
274
- description: "chart.option.connectNulls.description"
275
- }, y = {
276
- key: "leftYAxisFormat",
277
- label: "chart.option.leftYAxisFormat.label",
278
- type: "axisFormat",
279
- description: "chart.option.leftYAxisFormat.description"
280
- }, b = {
281
- key: "rightYAxisFormat",
282
- label: "chart.option.rightYAxisFormat.label",
283
- type: "axisFormat",
284
- description: "chart.option.rightYAxisFormat.description"
285
- };
286
- function x(e = "chart.option.valueFormat.description") {
287
- return {
288
- key: "leftYAxisFormat",
289
- label: "chart.option.valueFormat.label",
290
- type: "axisFormat",
291
- description: e
292
- };
293
- }
294
- function S(e) {
295
- return {
296
- key: "stackType",
297
- label: "chart.option.stacking.label",
248
+ //#region src/client/components/charts/BarChart.config.ts
249
+ var S = {
250
+ clickableElements: { bar: !0 },
251
+ dropZones: [
252
+ {
253
+ key: "xAxis",
254
+ label: "chart.dropZone.xAxis.label",
255
+ description: "chart.dropZone.xAxis.description",
256
+ mandatory: !1,
257
+ acceptTypes: ["dimension", "timeDimension"],
258
+ emptyText: "chart.bar.dropZone.xAxis.empty"
259
+ },
260
+ {
261
+ key: "yAxis",
262
+ label: "chart.dropZone.yAxis.label",
263
+ description: "chart.configText.measures_for_bar_heights",
264
+ mandatory: !0,
265
+ acceptTypes: ["measure"],
266
+ emptyText: "chart.bar.dropZone.yAxis.empty",
267
+ enableDualAxis: !0
268
+ },
269
+ {
270
+ key: "series",
271
+ label: "chart.dropZone.series.label",
272
+ description: "chart.dropZone.series.description",
273
+ mandatory: !1,
274
+ acceptTypes: ["dimension"],
275
+ emptyText: "chart.bar.dropZone.series.empty"
276
+ }
277
+ ],
278
+ displayOptions: [
279
+ "showLegend",
280
+ "showGrid",
281
+ "showTooltip",
282
+ "showAllXLabels",
283
+ "hideHeader"
284
+ ],
285
+ displayOptionsConfig: [
286
+ f("chart.configText.how_to_stack_multiple_bar_series"),
287
+ m,
288
+ d,
289
+ c
290
+ ]
291
+ }, C = {
292
+ clickableElements: { point: !0 },
293
+ dropZones: [
294
+ {
295
+ key: "xAxis",
296
+ label: "chart.configText.x_axis_time_categories",
297
+ description: "chart.configText.time_dimensions_or_dimensions_for_x_axis",
298
+ mandatory: !0,
299
+ acceptTypes: ["dimension", "timeDimension"],
300
+ emptyText: "chart.line.dropZone.xAxis.empty"
301
+ },
302
+ {
303
+ key: "yAxis",
304
+ label: "chart.dropZone.yAxis.label",
305
+ description: "chart.configText.measures_for_line_values",
306
+ mandatory: !0,
307
+ acceptTypes: ["measure"],
308
+ emptyText: "chart.line.dropZone.yAxis.empty",
309
+ enableDualAxis: !0
310
+ },
311
+ {
312
+ key: "series",
313
+ label: "chart.configText.series_multiple_lines",
314
+ description: "chart.configText.dimensions_to_create_separate_lines",
315
+ mandatory: !1,
316
+ acceptTypes: ["dimension"],
317
+ emptyText: "chart.line.dropZone.series.empty"
318
+ }
319
+ ],
320
+ displayOptions: [
321
+ "showLegend",
322
+ "showGrid",
323
+ "showTooltip",
324
+ "showAllXLabels",
325
+ "hideHeader"
326
+ ],
327
+ displayOptionsConfig: [
328
+ h,
329
+ m,
330
+ {
331
+ key: "priorPeriodStyle",
332
+ label: "chart.option.priorPeriodStyle.label",
333
+ type: "select",
334
+ defaultValue: "dashed",
335
+ options: [
336
+ {
337
+ value: "dashed",
338
+ label: "chart.option.priorPeriodStyle.dashed"
339
+ },
340
+ {
341
+ value: "dotted",
342
+ label: "chart.option.priorPeriodStyle.dotted"
343
+ },
344
+ {
345
+ value: "solid",
346
+ label: "chart.option.priorPeriodStyle.solid"
347
+ }
348
+ ],
349
+ description: "chart.option.priorPeriodStyle.description"
350
+ },
351
+ {
352
+ key: "priorPeriodOpacity",
353
+ label: "chart.option.priorPeriodOpacity.label",
354
+ type: "number",
355
+ defaultValue: .5,
356
+ min: .1,
357
+ max: 1,
358
+ step: .1,
359
+ description: "chart.option.priorPeriodOpacity.description"
360
+ },
361
+ d,
362
+ c
363
+ ]
364
+ }, te = {
365
+ dropZones: [
366
+ {
367
+ key: "xAxis",
368
+ label: "chart.configText.x_axis_time_categories",
369
+ description: "chart.configText.time_dimensions_or_dimensions_for_x_axis",
370
+ mandatory: !0,
371
+ acceptTypes: ["dimension", "timeDimension"],
372
+ emptyText: "chart.area.dropZone.xAxis.empty"
373
+ },
374
+ {
375
+ key: "yAxis",
376
+ label: "chart.dropZone.yAxis.label",
377
+ description: "chart.configText.measures_for_area_values",
378
+ mandatory: !0,
379
+ acceptTypes: ["measure"],
380
+ emptyText: "chart.area.dropZone.yAxis.empty",
381
+ enableDualAxis: !0
382
+ },
383
+ {
384
+ key: "series",
385
+ label: "chart.configText.series_stack_areas",
386
+ description: "chart.configText.dimensions_to_create_stacked_areas",
387
+ mandatory: !1,
388
+ acceptTypes: ["dimension"],
389
+ emptyText: "chart.area.dropZone.series.empty"
390
+ }
391
+ ],
392
+ displayOptions: [
393
+ "showLegend",
394
+ "showGrid",
395
+ "showTooltip",
396
+ "showAllXLabels",
397
+ "hideHeader"
398
+ ],
399
+ displayOptionsConfig: [
400
+ f("chart.configText.how_to_stack_multiple_area_series"),
401
+ h,
402
+ m,
403
+ d,
404
+ c
405
+ ]
406
+ }, w = {
407
+ clickableElements: { slice: !0 },
408
+ dropZones: [{
409
+ key: "xAxis",
410
+ label: "chart.configText.categories",
411
+ description: "chart.configText.dimension_for_pie_slices",
412
+ mandatory: !0,
413
+ maxItems: 1,
414
+ acceptTypes: ["dimension"],
415
+ emptyText: "chart.pie.dropZone.xAxis.empty"
416
+ }, {
417
+ key: "yAxis",
418
+ label: "chart.configText.values",
419
+ description: "chart.configText.measure_for_slice_sizes",
420
+ mandatory: !0,
421
+ maxItems: 1,
422
+ acceptTypes: ["measure"],
423
+ emptyText: "chart.pie.dropZone.yAxis.empty"
424
+ }],
425
+ displayOptions: [
426
+ "showLegend",
427
+ "showTooltip",
428
+ "hideHeader"
429
+ ],
430
+ displayOptionsConfig: [{
431
+ key: "innerRadius",
432
+ label: "chart.option.innerRadius.label",
298
433
  type: "select",
299
- defaultValue: "none",
434
+ description: "chart.configText.hollow_center_size_0_percent_solid_pie_higher_donut_style",
435
+ defaultValue: "0%",
300
436
  options: [
301
437
  {
302
- value: "none",
303
- label: "chart.option.accentBorder.none"
438
+ value: "0%",
439
+ label: "chart.configText.none_pie"
440
+ },
441
+ {
442
+ value: "20%",
443
+ label: "chart.configText.20_percent"
444
+ },
445
+ {
446
+ value: "40%",
447
+ label: "chart.configText.40_percent"
304
448
  },
305
449
  {
306
- value: "normal",
307
- label: "chart.option.stacking.stacked"
450
+ value: "60%",
451
+ label: "chart.configText.60_percent"
308
452
  },
309
453
  {
310
- value: "percent",
311
- label: "chart.option.stacking.percent"
454
+ value: "80%",
455
+ label: "chart.configText.80_percent"
312
456
  }
457
+ ]
458
+ }, l()]
459
+ }, T = {
460
+ dropZones: [
461
+ {
462
+ key: "xAxis",
463
+ label: "chart.runtime.axisFormat.xAxis",
464
+ description: "chart.configText.measure_or_dimension_for_x_position",
465
+ mandatory: !0,
466
+ maxItems: 1,
467
+ acceptTypes: [
468
+ "dimension",
469
+ "timeDimension",
470
+ "measure"
471
+ ],
472
+ emptyText: "chart.scatter.dropZone.xAxis.empty"
473
+ },
474
+ {
475
+ key: "yAxis",
476
+ label: "chart.configText.y_axis",
477
+ description: "chart.configText.measure_for_y_position",
478
+ mandatory: !0,
479
+ maxItems: 1,
480
+ acceptTypes: ["measure"],
481
+ emptyText: "chart.scatter.dropZone.yAxis.empty"
482
+ },
483
+ {
484
+ key: "series",
485
+ label: "chart.configText.series_color_groups",
486
+ description: "chart.configText.dimension_to_color_points_by_category",
487
+ mandatory: !1,
488
+ maxItems: 1,
489
+ acceptTypes: ["dimension"],
490
+ emptyText: "chart.scatter.dropZone.series.empty"
491
+ }
492
+ ],
493
+ displayOptions: [
494
+ "showLegend",
495
+ "showGrid",
496
+ "showTooltip",
497
+ "hideHeader"
498
+ ],
499
+ displayOptionsConfig: [{
500
+ key: "xAxisFormat",
501
+ label: "chart.option.xAxisFormat.label",
502
+ type: "axisFormat",
503
+ description: "chart.option.xAxisFormat.description"
504
+ }, {
505
+ key: "leftYAxisFormat",
506
+ label: "chart.option.yAxisFormat.label",
507
+ type: "axisFormat",
508
+ description: "chart.option.yAxisFormat.description"
509
+ }]
510
+ }, E = {
511
+ dropZones: [
512
+ {
513
+ key: "xAxis",
514
+ label: "chart.runtime.axisFormat.xAxis",
515
+ description: "chart.configText.horizontal_axis_position",
516
+ mandatory: !0,
517
+ maxItems: 1,
518
+ acceptTypes: [
519
+ "dimension",
520
+ "timeDimension",
521
+ "measure"
522
+ ],
523
+ emptyText: "chart.bubble.dropZone.xAxis.empty"
524
+ },
525
+ {
526
+ key: "yAxis",
527
+ label: "chart.configText.y_axis",
528
+ description: "chart.configText.vertical_axis_position",
529
+ mandatory: !0,
530
+ maxItems: 1,
531
+ acceptTypes: ["measure"],
532
+ emptyText: "chart.bubble.dropZone.yAxis.empty"
533
+ },
534
+ {
535
+ key: "sizeField",
536
+ label: "chart.configText.bubble_radius",
537
+ description: "chart.configText.size_of_bubbles_based_on_this_measure",
538
+ mandatory: !0,
539
+ maxItems: 1,
540
+ acceptTypes: ["measure"],
541
+ emptyText: "chart.bubble.dropZone.sizeField.empty"
542
+ },
543
+ {
544
+ key: "series",
545
+ label: "chart.configText.bubble_labels",
546
+ description: "chart.configText.field_to_use_for_bubble_labels_and_identification",
547
+ mandatory: !0,
548
+ maxItems: 1,
549
+ acceptTypes: ["dimension"],
550
+ emptyText: "chart.bubble.dropZone.series.empty"
551
+ },
552
+ {
553
+ key: "colorField",
554
+ label: "chart.configText.bubble_colour",
555
+ description: "chart.configText.color_bubbles_by_this_field_optional",
556
+ mandatory: !1,
557
+ maxItems: 1,
558
+ acceptTypes: ["dimension", "measure"],
559
+ emptyText: "chart.bubble.dropZone.colorField.empty"
560
+ }
561
+ ],
562
+ displayOptions: [
563
+ "showLegend",
564
+ "showGrid",
565
+ "showTooltip",
566
+ "minBubbleSize",
567
+ "maxBubbleSize",
568
+ "bubbleOpacity",
569
+ "hideHeader"
570
+ ],
571
+ displayOptionsConfig: [{
572
+ key: "xAxisFormat",
573
+ label: "chart.option.xAxisFormat.label",
574
+ type: "axisFormat",
575
+ description: "chart.option.xAxisFormat.description"
576
+ }, {
577
+ key: "leftYAxisFormat",
578
+ label: "chart.option.yAxisFormat.label",
579
+ type: "axisFormat",
580
+ description: "chart.configText.number_formatting_for_y_axis_and_values"
581
+ }]
582
+ }, D = {
583
+ dropZones: [
584
+ {
585
+ key: "xAxis",
586
+ label: "chart.configText.axes_categories",
587
+ description: "chart.configText.dimensions_for_radar_axes",
588
+ mandatory: !0,
589
+ acceptTypes: ["dimension"],
590
+ emptyText: "chart.radar.dropZone.xAxis.empty"
591
+ },
592
+ {
593
+ key: "yAxis",
594
+ label: "chart.configText.values",
595
+ description: "chart.configText.measures_for_radar_values",
596
+ mandatory: !0,
597
+ acceptTypes: ["measure"],
598
+ emptyText: "chart.radar.dropZone.yAxis.empty"
599
+ },
600
+ {
601
+ key: "series",
602
+ label: "chart.configText.series_multiple_shapes",
603
+ description: "chart.configText.dimensions_to_create_multiple_radar_shapes",
604
+ mandatory: !1,
605
+ acceptTypes: ["dimension"],
606
+ emptyText: "chart.radar.dropZone.series.empty"
607
+ }
608
+ ],
609
+ displayOptions: [
610
+ "showLegend",
611
+ "showGrid",
612
+ "showTooltip",
613
+ "hideHeader"
614
+ ],
615
+ displayOptionsConfig: [l()]
616
+ }, O = {
617
+ dropZones: [{
618
+ key: "xAxis",
619
+ label: "chart.configText.categories",
620
+ description: "chart.configText.dimensions_for_radial_segments",
621
+ mandatory: !0,
622
+ acceptTypes: ["dimension"],
623
+ emptyText: "chart.radialBar.dropZone.xAxis.empty"
624
+ }, {
625
+ key: "yAxis",
626
+ label: "chart.configText.values",
627
+ description: "chart.configText.measures_for_radial_bar_lengths",
628
+ mandatory: !0,
629
+ maxItems: 1,
630
+ acceptTypes: ["measure"],
631
+ emptyText: "chart.radialBar.dropZone.yAxis.empty"
632
+ }],
633
+ displayOptions: [
634
+ "showLegend",
635
+ "showTooltip",
636
+ "hideHeader"
637
+ ],
638
+ displayOptionsConfig: [l()]
639
+ }, k = {
640
+ dropZones: [
641
+ {
642
+ key: "xAxis",
643
+ label: "chart.configText.categories",
644
+ description: "chart.configText.dimensions_for_treemap_rectangles",
645
+ mandatory: !0,
646
+ acceptTypes: ["dimension"],
647
+ emptyText: "chart.treemap.dropZone.xAxis.empty"
648
+ },
649
+ {
650
+ key: "yAxis",
651
+ label: "chart.configText.size",
652
+ description: "chart.configText.measure_for_rectangle_sizes",
653
+ mandatory: !0,
654
+ maxItems: 1,
655
+ acceptTypes: ["measure"],
656
+ emptyText: "chart.treemap.dropZone.yAxis.empty"
657
+ },
658
+ {
659
+ key: "series",
660
+ label: "chart.configText.color_groups",
661
+ description: "chart.configText.dimension_to_color_rectangles_by_category",
662
+ mandatory: !1,
663
+ maxItems: 1,
664
+ acceptTypes: ["dimension"],
665
+ emptyText: "chart.treemap.dropZone.series.empty"
666
+ }
667
+ ],
668
+ displayOptions: [
669
+ "showLegend",
670
+ "showTooltip",
671
+ "hideHeader"
672
+ ],
673
+ displayOptionsConfig: [l("chart.configText.number_formatting_for_size_values")],
674
+ clickableElements: { cell: !0 }
675
+ }, A = {
676
+ dropZones: [{
677
+ key: "xAxis",
678
+ label: "chart.configText.columns",
679
+ description: "chart.configText.all_fields_to_display_as_columns",
680
+ mandatory: !1,
681
+ acceptTypes: [
682
+ "dimension",
683
+ "timeDimension",
684
+ "measure"
313
685
  ],
314
- description: e
315
- };
316
- }
317
- //#endregion
318
- //#region src/client/charts/chartConfigRegistry.ts
319
- var C = {
686
+ emptyText: "chart.table.dropZone.xAxis.empty"
687
+ }],
688
+ displayOptions: ["hideHeader"],
689
+ displayOptionsConfig: [{
690
+ key: "leftYAxisFormat",
691
+ label: "chart.option.valueFormat.label",
692
+ type: "axisFormat",
693
+ description: "chart.configText.number_formatting_for_numeric_values"
694
+ }]
695
+ }, j = {
696
+ dropZones: [{
697
+ key: "dateField",
698
+ label: "chart.configText.time_dimension",
699
+ description: "chart.configText.time_field_that_determines_grid_structure_granularity_affects_layout",
700
+ mandatory: !0,
701
+ maxItems: 1,
702
+ acceptTypes: ["timeDimension"],
703
+ emptyText: "chart.activityGrid.dropZone.dateField.empty"
704
+ }, {
705
+ key: "valueField",
706
+ label: "chart.configText.activity_measure",
707
+ description: "chart.configText.measure_used_for_activity_intensity_color_coding",
708
+ mandatory: !0,
709
+ maxItems: 1,
710
+ acceptTypes: ["measure"],
711
+ emptyText: "chart.activityGrid.dropZone.valueField.empty"
712
+ }],
713
+ displayOptions: [
714
+ "showLabels",
715
+ "showTooltip",
716
+ "hideHeader"
717
+ ],
718
+ displayOptionsConfig: [{
719
+ key: "fitToWidth",
720
+ label: "chart.option.fitToWidth.label",
721
+ type: "boolean",
722
+ defaultValue: !1,
723
+ description: "chart.option.fitToWidth.description"
724
+ }],
725
+ validate: (e) => {
726
+ let { dateField: t, valueField: n } = e;
727
+ return !t || Array.isArray(t) && t.length === 0 ? {
728
+ isValid: !1,
729
+ message: "chart.activityGrid.validation.timeDimensionRequired"
730
+ } : !n || Array.isArray(n) && n.length === 0 ? {
731
+ isValid: !1,
732
+ message: "chart.activityGrid.validation.measureRequired"
733
+ } : { isValid: !0 };
734
+ },
735
+ clickableElements: { cell: !0 }
736
+ }, M = {
737
+ dropZones: [{
738
+ key: "yAxis",
739
+ label: "chart.configText.value",
740
+ description: "chart.configText.measure_to_display_as_kpi_number",
741
+ mandatory: !0,
742
+ maxItems: 1,
743
+ acceptTypes: ["measure"],
744
+ emptyText: "chart.kpiNumber.dropZone.yAxis.empty"
745
+ }],
746
+ displayOptionsConfig: [
747
+ {
748
+ key: "target",
749
+ label: "chart.runtime.tooltip.targetValue",
750
+ type: "string",
751
+ placeholder: "e.g., 100",
752
+ description: "chart.configText.target_value_to_compare_against_first_value_used_if_multiple_provided"
753
+ },
754
+ {
755
+ key: "prefix",
756
+ label: "chart.option.prefix.label",
757
+ type: "string",
758
+ placeholder: "e.g., $, €, #",
759
+ description: "chart.option.prefix.description"
760
+ },
761
+ {
762
+ key: "suffix",
763
+ label: "chart.option.suffix.label",
764
+ type: "string",
765
+ placeholder: "e.g., %, units, items",
766
+ description: "chart.option.suffix.description"
767
+ },
768
+ {
769
+ key: "decimals",
770
+ label: "chart.option.decimals.label",
771
+ type: "number",
772
+ defaultValue: 0,
773
+ min: 0,
774
+ max: 10,
775
+ step: 1,
776
+ description: "chart.option.decimals.description"
777
+ },
778
+ {
779
+ key: "valueColorIndex",
780
+ label: "chart.configText.value_color",
781
+ type: "paletteColor",
782
+ defaultValue: 0,
783
+ description: "chart.configText.color_from_the_dashboard_palette_for_the_kpi_value_text"
784
+ },
785
+ {
786
+ key: "useLastCompletePeriod",
787
+ label: "chart.option.useLastCompletePeriod.label",
788
+ type: "boolean",
789
+ defaultValue: !0,
790
+ description: "chart.configText.exclude_current_incomplete_period_from_aggregation_e_g_partial_week_mont"
791
+ },
792
+ {
793
+ key: "skipLastPeriod",
794
+ label: "chart.option.skipLastPeriod.label",
795
+ type: "boolean",
796
+ defaultValue: !1,
797
+ description: "chart.option.skipLastPeriod.description"
798
+ }
799
+ ],
800
+ displayOptions: ["hideHeader"]
801
+ }, N = {
802
+ dropZones: [{
803
+ key: "yAxis",
804
+ label: "chart.configText.value",
805
+ description: "chart.configText.measure_to_track_changes_for",
806
+ mandatory: !0,
807
+ maxItems: 1,
808
+ acceptTypes: ["measure"],
809
+ emptyText: "chart.kpiDelta.dropZone.yAxis.empty"
810
+ }, {
811
+ key: "xAxis",
812
+ label: "chart.configText.dimension_optional",
813
+ description: "chart.configText.dimension_for_ordering_data_typically_time",
814
+ mandatory: !1,
815
+ maxItems: 1,
816
+ acceptTypes: ["dimension", "timeDimension"],
817
+ emptyText: "chart.kpiDelta.dropZone.xAxis.empty"
818
+ }],
819
+ displayOptionsConfig: [
820
+ {
821
+ key: "prefix",
822
+ label: "chart.option.prefix.label",
823
+ type: "string",
824
+ placeholder: "e.g., $, €, #",
825
+ description: "chart.option.prefix.description"
826
+ },
827
+ {
828
+ key: "suffix",
829
+ label: "chart.option.suffix.label",
830
+ type: "string",
831
+ placeholder: "e.g., %, units, items",
832
+ description: "chart.option.suffix.description"
833
+ },
834
+ {
835
+ key: "decimals",
836
+ label: "chart.option.decimals.label",
837
+ type: "number",
838
+ defaultValue: 1,
839
+ min: 0,
840
+ max: 10,
841
+ step: 1,
842
+ description: "chart.option.decimals.description"
843
+ },
844
+ {
845
+ key: "positiveColorIndex",
846
+ label: "chart.configText.positive_change_color",
847
+ type: "paletteColor",
848
+ defaultValue: 2,
849
+ description: "chart.configText.color_for_positive_changes_increases"
850
+ },
851
+ {
852
+ key: "negativeColorIndex",
853
+ label: "chart.configText.negative_change_color",
854
+ type: "paletteColor",
855
+ defaultValue: 3,
856
+ description: "chart.configText.color_for_negative_changes_decreases"
857
+ },
858
+ {
859
+ key: "showHistogram",
860
+ label: "chart.option.showHistogram.label",
861
+ type: "boolean",
862
+ defaultValue: !0,
863
+ description: "chart.option.showHistogram.description"
864
+ },
865
+ {
866
+ key: "useLastCompletePeriod",
867
+ label: "chart.option.useLastCompletePeriod.label",
868
+ type: "boolean",
869
+ defaultValue: !0,
870
+ description: "chart.configText.exclude_current_incomplete_period_from_delta_calculation_e_g_partial_wee"
871
+ },
872
+ {
873
+ key: "skipLastPeriod",
874
+ label: "chart.option.skipLastPeriod.label",
875
+ type: "boolean",
876
+ defaultValue: !1,
877
+ description: "chart.option.skipLastPeriod.description"
878
+ }
879
+ ],
880
+ displayOptions: ["hideHeader"],
881
+ validate: (e) => !e.yAxis || Array.isArray(e.yAxis) && e.yAxis.length === 0 ? {
882
+ isValid: !1,
883
+ message: "chart.kpiDelta.validation.measureRequired"
884
+ } : { isValid: !0 }
885
+ }, P = {
886
+ dropZones: [{
887
+ key: "yAxis",
888
+ label: "chart.configText.value",
889
+ description: "chart.configText.measure_to_display_in_the_kpi_text_template",
890
+ mandatory: !0,
891
+ maxItems: 1,
892
+ acceptTypes: ["measure"],
893
+ emptyText: "chart.kpiText.dropZone.yAxis.empty"
894
+ }],
895
+ displayOptionsConfig: [
896
+ {
897
+ key: "template",
898
+ label: "chart.configText.text_template",
899
+ type: "string",
900
+ placeholder: "e.g., Total Revenue: ${value}",
901
+ description: "chart.configText.template_for_displaying_the_text_use_value_to_insert_the_measure_value"
902
+ },
903
+ {
904
+ key: "decimals",
905
+ label: "chart.option.decimals.label",
906
+ type: "number",
907
+ defaultValue: 0,
908
+ min: 0,
909
+ max: 10,
910
+ step: 1,
911
+ description: "chart.configText.number_of_decimal_places_to_display_for_numeric_values"
912
+ },
913
+ {
914
+ key: "valueColorIndex",
915
+ label: "chart.configText.value_color",
916
+ type: "paletteColor",
917
+ defaultValue: 0,
918
+ description: "chart.configText.color_from_the_dashboard_palette_for_the_kpi_value_text"
919
+ }
920
+ ],
921
+ displayOptions: ["hideHeader"]
922
+ }, F = {
923
+ skipQuery: !0,
924
+ dropZones: [],
925
+ displayOptionsConfig: [
926
+ {
927
+ key: "content",
928
+ label: "chart.configText.markdown_content",
929
+ type: "string",
930
+ placeholder: "# Welcome\n\nAdd your **markdown** content here:\n\n- Lists with bullets\n- [Links](https://example.com)\n- *Italic* and **bold** text\n\n---\n\nUse --- for horizontal rules.",
931
+ description: "chart.configText.enter_markdown_text_supports_headers_bold_text_italic_text_links_text_ur"
932
+ },
933
+ {
934
+ key: "accentColorIndex",
935
+ label: "chart.configText.accent_color",
936
+ type: "paletteColor",
937
+ defaultValue: 0,
938
+ description: "chart.configText.color_from_the_dashboard_palette_for_headers_bullets_and_links"
939
+ },
940
+ {
941
+ key: "fontSize",
942
+ label: "chart.option.fontSize.label",
943
+ type: "select",
944
+ defaultValue: "medium",
945
+ options: [
946
+ {
947
+ value: "small",
948
+ label: "chart.option.fontSize.small"
949
+ },
950
+ {
951
+ value: "medium",
952
+ label: "chart.option.fontSize.medium"
953
+ },
954
+ {
955
+ value: "large",
956
+ label: "chart.option.fontSize.large"
957
+ }
958
+ ],
959
+ description: "chart.configText.overall_text_size_for_the_markdown_content"
960
+ },
961
+ {
962
+ key: "alignment",
963
+ label: "chart.option.alignment.label",
964
+ type: "select",
965
+ defaultValue: "left",
966
+ options: [
967
+ {
968
+ value: "left",
969
+ label: "chart.option.accentBorder.left"
970
+ },
971
+ {
972
+ value: "center",
973
+ label: "chart.option.alignment.center"
974
+ },
975
+ {
976
+ value: "right",
977
+ label: "chart.option.alignment.right"
978
+ }
979
+ ],
980
+ description: "chart.configText.horizontal_alignment_of_the_markdown_content"
981
+ },
982
+ {
983
+ key: "hideHeader",
984
+ label: "chart.option.hideHeader.label",
985
+ type: "boolean",
986
+ defaultValue: !0,
987
+ description: "chart.option.hideHeader.description"
988
+ },
989
+ {
990
+ key: "transparentBackground",
991
+ label: "chart.option.transparentBackground.label",
992
+ type: "boolean",
993
+ defaultValue: !1,
994
+ description: "chart.option.transparentBackground.description"
995
+ },
996
+ {
997
+ key: "autoHeight",
998
+ label: "chart.option.autoHeight.label",
999
+ type: "boolean",
1000
+ defaultValue: !0,
1001
+ description: "chart.option.autoHeight.description"
1002
+ },
1003
+ {
1004
+ key: "accentBorder",
1005
+ label: "chart.option.accentBorder.label",
1006
+ type: "select",
1007
+ defaultValue: "none",
1008
+ options: [
1009
+ {
1010
+ value: "none",
1011
+ label: "chart.option.accentBorder.none"
1012
+ },
1013
+ {
1014
+ value: "left",
1015
+ label: "chart.option.accentBorder.left"
1016
+ },
1017
+ {
1018
+ value: "top",
1019
+ label: "chart.option.accentBorder.top"
1020
+ },
1021
+ {
1022
+ value: "bottom",
1023
+ label: "chart.option.accentBorder.bottom"
1024
+ }
1025
+ ],
1026
+ description: "chart.configText.add_an_accent_colored_border_on_one_side_of_the_content"
1027
+ }
1028
+ ]
1029
+ }, I = {
1030
+ dropZones: [{
1031
+ key: "xAxis",
1032
+ label: "chart.configText.step_name",
1033
+ description: "chart.configText.step_names_auto_populated_from_funnel_steps",
1034
+ mandatory: !1,
1035
+ maxItems: 1,
1036
+ acceptTypes: ["dimension"],
1037
+ emptyText: "chart.funnel.dropZone.xAxis.empty"
1038
+ }, {
1039
+ key: "yAxis",
1040
+ label: "chart.configText.step_count",
1041
+ description: "chart.configText.count_at_each_step_auto_calculated",
1042
+ mandatory: !1,
1043
+ maxItems: 1,
1044
+ acceptTypes: ["measure"],
1045
+ emptyText: "chart.funnel.dropZone.yAxis.empty"
1046
+ }],
1047
+ displayOptions: ["hideHeader"],
1048
+ displayOptionsConfig: [
1049
+ {
1050
+ key: "funnelStyle",
1051
+ label: "chart.option.funnelStyle.label",
1052
+ type: "buttonGroup",
1053
+ defaultValue: "bars",
1054
+ options: [{
1055
+ value: "bars",
1056
+ label: "chart.option.funnelStyle.bars"
1057
+ }, {
1058
+ value: "funnel",
1059
+ label: "chart.option.funnelStyle.funnel"
1060
+ }],
1061
+ description: "chart.configText.visualization_style"
1062
+ },
1063
+ {
1064
+ key: "funnelOrientation",
1065
+ label: "chart.option.funnelOrientation.label",
1066
+ type: "buttonGroup",
1067
+ defaultValue: "horizontal",
1068
+ options: [{
1069
+ value: "horizontal",
1070
+ label: "chart.option.funnelOrientation.horizontal"
1071
+ }, {
1072
+ value: "vertical",
1073
+ label: "chart.option.funnelOrientation.vertical"
1074
+ }]
1075
+ },
1076
+ {
1077
+ key: "hideSummaryFooter",
1078
+ label: "chart.option.hideSummaryFooter.label",
1079
+ type: "boolean",
1080
+ defaultValue: !1,
1081
+ description: "chart.option.hideSummaryFooter.description"
1082
+ },
1083
+ {
1084
+ key: "showFunnelConversion",
1085
+ label: "chart.option.showConversion.label",
1086
+ type: "boolean",
1087
+ defaultValue: !0,
1088
+ description: "chart.option.showConversion.description"
1089
+ },
1090
+ {
1091
+ key: "showFunnelAvgTime",
1092
+ label: "chart.option.showAvgTime.label",
1093
+ type: "boolean",
1094
+ defaultValue: !1,
1095
+ description: "chart.option.showAvgTime.description"
1096
+ },
1097
+ {
1098
+ key: "showFunnelMedianTime",
1099
+ label: "chart.option.showMedianTime.label",
1100
+ type: "boolean",
1101
+ defaultValue: !1,
1102
+ description: "chart.option.showMedianTime.description"
1103
+ },
1104
+ {
1105
+ key: "showFunnelP90Time",
1106
+ label: "chart.option.showP90Time.label",
1107
+ type: "boolean",
1108
+ defaultValue: !1,
1109
+ description: "chart.option.showP90Time.description"
1110
+ }
1111
+ ]
1112
+ }, L = {
1113
+ dropZones: [{
1114
+ key: "xAxis",
1115
+ label: "chart.configText.event_type",
1116
+ description: "chart.configText.event_dimension_that_categorizes_flow_nodes",
1117
+ mandatory: !1,
1118
+ maxItems: 1,
1119
+ acceptTypes: ["dimension"],
1120
+ emptyText: "chart.sankey.dropZone.xAxis.empty"
1121
+ }, {
1122
+ key: "yAxis",
1123
+ label: "chart.configText.flow_count",
1124
+ description: "chart.configText.count_of_entities_following_each_path",
1125
+ mandatory: !1,
1126
+ maxItems: 1,
1127
+ acceptTypes: ["measure"],
1128
+ emptyText: "chart.sankey.dropZone.yAxis.empty"
1129
+ }],
1130
+ displayOptions: ["hideHeader"],
1131
+ displayOptionsConfig: [
1132
+ {
1133
+ key: "linkOpacity",
1134
+ label: "chart.option.linkOpacity.label",
1135
+ type: "buttonGroup",
1136
+ defaultValue: "0.5",
1137
+ options: [
1138
+ {
1139
+ value: "0.3",
1140
+ label: "chart.option.linkOpacity.light"
1141
+ },
1142
+ {
1143
+ value: "0.5",
1144
+ label: "chart.option.fontSize.medium"
1145
+ },
1146
+ {
1147
+ value: "0.7",
1148
+ label: "chart.option.linkOpacity.dark"
1149
+ }
1150
+ ],
1151
+ description: "chart.configText.opacity_of_flow_links"
1152
+ },
1153
+ {
1154
+ key: "showNodeLabels",
1155
+ label: "chart.option.showNodeLabels.label",
1156
+ type: "boolean",
1157
+ defaultValue: !0,
1158
+ description: "chart.option.showNodeLabels.description"
1159
+ },
1160
+ {
1161
+ key: "hideSummaryFooter",
1162
+ label: "chart.option.hideSummaryFooter.label",
1163
+ type: "boolean",
1164
+ defaultValue: !0,
1165
+ description: "chart.configText.hide_the_statistics_footer_below_the_chart"
1166
+ }
1167
+ ]
1168
+ }, R = {
1169
+ dropZones: [{
1170
+ key: "xAxis",
1171
+ label: "chart.configText.event_type",
1172
+ description: "chart.configText.event_dimension_that_categorizes_flow_nodes",
1173
+ mandatory: !1,
1174
+ maxItems: 1,
1175
+ acceptTypes: ["dimension"],
1176
+ emptyText: "chart.sunburst.dropZone.xAxis.empty"
1177
+ }, {
1178
+ key: "yAxis",
1179
+ label: "chart.configText.flow_count",
1180
+ description: "chart.configText.count_of_entities_following_each_path",
1181
+ mandatory: !1,
1182
+ maxItems: 1,
1183
+ acceptTypes: ["measure"],
1184
+ emptyText: "chart.sunburst.dropZone.yAxis.empty"
1185
+ }],
1186
+ displayOptions: ["hideHeader"],
1187
+ displayOptionsConfig: [{
1188
+ key: "innerRadius",
1189
+ label: "chart.option.innerRadius.label",
1190
+ type: "number",
1191
+ defaultValue: 40,
1192
+ min: 0,
1193
+ max: 100,
1194
+ step: 10,
1195
+ description: "chart.configText.size_of_the_center_hole_0_for_full_circle"
1196
+ }, {
1197
+ key: "hideSummaryFooter",
1198
+ label: "chart.option.hideSummaryFooter.label",
1199
+ type: "boolean",
1200
+ defaultValue: !0,
1201
+ description: "chart.configText.hide_the_statistics_footer_below_the_chart"
1202
+ }]
1203
+ }, z = {
1204
+ dropZones: [
1205
+ {
1206
+ key: "xAxis",
1207
+ label: "chart.configText.columns_x_axis",
1208
+ description: "chart.configText.dimension_for_column_categories",
1209
+ mandatory: !0,
1210
+ maxItems: 1,
1211
+ acceptTypes: ["dimension"],
1212
+ emptyText: "chart.heatmap.dropZone.xAxis.empty"
1213
+ },
1214
+ {
1215
+ key: "yAxis",
1216
+ label: "chart.configText.rows_y_axis",
1217
+ description: "chart.configText.dimension_for_row_categories",
1218
+ mandatory: !0,
1219
+ maxItems: 1,
1220
+ acceptTypes: ["dimension"],
1221
+ emptyText: "chart.heatmap.dropZone.yAxis.empty"
1222
+ },
1223
+ {
1224
+ key: "valueField",
1225
+ label: "chart.configText.value_color_intensity",
1226
+ description: "chart.configText.measure_that_determines_cell_color",
1227
+ mandatory: !0,
1228
+ maxItems: 1,
1229
+ acceptTypes: ["measure"],
1230
+ emptyText: "chart.heatmap.dropZone.valueField.empty"
1231
+ }
1232
+ ],
1233
+ displayOptions: ["showLegend", "showTooltip"],
1234
+ displayOptionsConfig: [
1235
+ {
1236
+ key: "showLabels",
1237
+ label: "chart.option.showLabels.label",
1238
+ type: "boolean",
1239
+ defaultValue: !1,
1240
+ description: "chart.option.showLabels.description"
1241
+ },
1242
+ {
1243
+ key: "cellShape",
1244
+ label: "chart.option.cellShape.label",
1245
+ type: "select",
1246
+ defaultValue: "rect",
1247
+ options: [{
1248
+ value: "rect",
1249
+ label: "chart.option.cellShape.rectangle"
1250
+ }, {
1251
+ value: "circle",
1252
+ label: "chart.option.cellShape.circle"
1253
+ }]
1254
+ },
1255
+ {
1256
+ key: "xAxisFormat",
1257
+ label: "chart.option.xAxisFormat.label",
1258
+ type: "axisFormat",
1259
+ description: "chart.configText.number_formatting_for_x_axis_labels"
1260
+ },
1261
+ {
1262
+ key: "yAxisFormat",
1263
+ label: "chart.option.yAxisFormat.label",
1264
+ type: "axisFormat",
1265
+ description: "chart.configText.number_formatting_for_y_axis_labels"
1266
+ },
1267
+ {
1268
+ key: "valueFormat",
1269
+ label: "chart.option.valueFormat.label",
1270
+ type: "axisFormat",
1271
+ description: "chart.configText.number_formatting_for_cell_values_and_legend"
1272
+ }
1273
+ ],
1274
+ validate: (e) => e.xAxis?.length ? e.yAxis?.length ? e.valueField?.length ? { isValid: !0 } : {
1275
+ isValid: !1,
1276
+ message: "chart.heatmap.validation.valueRequired"
1277
+ } : {
1278
+ isValid: !1,
1279
+ message: "chart.heatmap.validation.yAxisRequired"
1280
+ } : {
1281
+ isValid: !1,
1282
+ message: "chart.heatmap.validation.xAxisRequired"
1283
+ }
1284
+ }, B = {
1285
+ dropZones: [],
1286
+ displayOptionsConfig: [{
1287
+ key: "showLegend",
1288
+ label: "chart.option.showLegend.label",
1289
+ type: "boolean",
1290
+ defaultValue: !0,
1291
+ description: "chart.configText.show_the_color_intensity_legend"
1292
+ }, {
1293
+ key: "showTooltip",
1294
+ label: "chart.option.showTooltip.label",
1295
+ type: "boolean",
1296
+ defaultValue: !0,
1297
+ description: "chart.option.showTooltip.description"
1298
+ }]
1299
+ }, V = {
1300
+ dropZones: [],
1301
+ displayOptionsConfig: [
1302
+ {
1303
+ key: "retentionDisplayMode",
1304
+ label: "chart.option.retentionDisplayMode.label",
1305
+ type: "select",
1306
+ defaultValue: "line",
1307
+ options: [
1308
+ {
1309
+ value: "line",
1310
+ label: "chart.option.retentionDisplayMode.lineChart"
1311
+ },
1312
+ {
1313
+ value: "heatmap",
1314
+ label: "chart.option.retentionDisplayMode.heatmapTable"
1315
+ },
1316
+ {
1317
+ value: "combined",
1318
+ label: "chart.option.retentionDisplayMode.combined"
1319
+ }
1320
+ ],
1321
+ description: "chart.configText.choose_how_to_visualize_retention_data"
1322
+ },
1323
+ {
1324
+ key: "showLegend",
1325
+ label: "chart.option.showLegend.label",
1326
+ type: "boolean",
1327
+ defaultValue: !0,
1328
+ description: "chart.configText.show_the_legend_for_breakdown_segments"
1329
+ },
1330
+ {
1331
+ key: "showGrid",
1332
+ label: "chart.option.showGrid.label",
1333
+ type: "boolean",
1334
+ defaultValue: !0,
1335
+ description: "chart.option.showGrid.description"
1336
+ },
1337
+ {
1338
+ key: "showTooltip",
1339
+ label: "chart.option.showTooltip.label",
1340
+ type: "boolean",
1341
+ defaultValue: !0,
1342
+ description: "chart.option.showTooltip.description"
1343
+ }
1344
+ ]
1345
+ }, H = {
1346
+ displayOptions: ["hideHeader"],
1347
+ dropZones: [{
1348
+ key: "xAxis",
1349
+ label: "chart.configText.x_axis_groups",
1350
+ description: "chart.configText.dimension_to_group_boxes_by_e_g_symbol_platform",
1351
+ mandatory: !0,
1352
+ maxItems: 1,
1353
+ acceptTypes: ["dimension", "timeDimension"],
1354
+ emptyText: "chart.boxPlot.dropZone.xAxis.empty"
1355
+ }, {
1356
+ key: "yAxis",
1357
+ label: "chart.configText.y_axis_measures",
1358
+ description: "chart.configText.drop_1_measure_for_auto_mode_3_for_avg_stddev_median_mode_or_5_for_min_q",
1359
+ mandatory: !0,
1360
+ maxItems: 5,
1361
+ acceptTypes: ["measure"],
1362
+ emptyText: "chart.boxPlot.dropZone.yAxis.empty"
1363
+ }],
1364
+ displayOptionsConfig: [{
1365
+ key: "leftYAxisFormat",
1366
+ label: "chart.option.yAxisFormat.label",
1367
+ type: "axisFormat",
1368
+ description: "chart.configText.number_formatting_for_the_value_axis"
1369
+ }]
1370
+ }, U = {
1371
+ clickableElements: { bar: !0 },
1372
+ displayOptions: ["showTooltip", "hideHeader"],
1373
+ dropZones: [{
1374
+ key: "xAxis",
1375
+ label: "chart.dropZone.xAxis.label",
1376
+ description: "chart.configText.dimension_labels_for_each_bar_segment_e_g_symbol_transaction_type",
1377
+ mandatory: !0,
1378
+ maxItems: 1,
1379
+ acceptTypes: ["dimension", "timeDimension"],
1380
+ emptyText: "chart.waterfall.dropZone.xAxis.empty"
1381
+ }, {
1382
+ key: "yAxis",
1383
+ label: "chart.configText.y_axis_value",
1384
+ description: "chart.configText.single_measure_whose_values_are_summed_cumulatively",
1385
+ mandatory: !0,
1386
+ maxItems: 1,
1387
+ acceptTypes: ["measure"],
1388
+ emptyText: "chart.waterfall.dropZone.yAxis.empty"
1389
+ }],
1390
+ displayOptionsConfig: [
1391
+ {
1392
+ key: "showTotal",
1393
+ label: "chart.option.showTotal.label",
1394
+ type: "boolean",
1395
+ defaultValue: !0,
1396
+ description: "chart.option.showTotal.description"
1397
+ },
1398
+ {
1399
+ key: "showConnectorLine",
1400
+ label: "chart.option.showConnectorLine.label",
1401
+ type: "boolean",
1402
+ defaultValue: !0,
1403
+ description: "chart.option.showConnectorLine.description"
1404
+ },
1405
+ {
1406
+ key: "showDataLabels",
1407
+ label: "chart.option.showDataLabels.label",
1408
+ type: "boolean",
1409
+ defaultValue: !1,
1410
+ description: "chart.configText.display_the_value_above_each_bar_segment"
1411
+ },
1412
+ {
1413
+ key: "leftYAxisFormat",
1414
+ label: "chart.option.yAxisFormat.label",
1415
+ type: "axisFormat",
1416
+ description: "chart.configText.number_formatting_for_the_y_axis"
1417
+ }
1418
+ ]
1419
+ }, W = {
1420
+ clickableElements: { bar: !0 },
1421
+ displayOptions: ["hideHeader"],
1422
+ dropZones: [{
1423
+ key: "xAxis",
1424
+ label: "chart.configText.x_axis_time_category",
1425
+ description: "chart.configText.time_dimension_or_category_for_each_candle_e_g_date_symbol",
1426
+ mandatory: !0,
1427
+ maxItems: 1,
1428
+ acceptTypes: ["timeDimension", "dimension"],
1429
+ emptyText: "chart.candlestick.dropZone.xAxis.empty"
1430
+ }, {
1431
+ key: "yAxis",
1432
+ label: "chart.configText.ohlc_measures_open_close_high_low",
1433
+ description: "chart.configText.drop_2_4_measures_in_order_open_close_high_low_ohlc_mode_for_range_mode_",
1434
+ mandatory: !0,
1435
+ acceptTypes: ["measure"],
1436
+ emptyText: "chart.candlestick.dropZone.yAxis.empty"
1437
+ }],
1438
+ displayOptionsConfig: [
1439
+ {
1440
+ key: "rangeMode",
1441
+ label: "chart.option.rangeMode.label",
1442
+ type: "select",
1443
+ defaultValue: "ohlc",
1444
+ options: [{
1445
+ value: "ohlc",
1446
+ label: "chart.option.rangeMode.ohlc"
1447
+ }, {
1448
+ value: "range",
1449
+ label: "chart.option.rangeMode.range"
1450
+ }],
1451
+ description: "chart.option.rangeMode.description"
1452
+ },
1453
+ {
1454
+ key: "bullColor",
1455
+ label: "chart.option.bullColor.label",
1456
+ type: "color",
1457
+ defaultValue: "#22c55e",
1458
+ description: "chart.option.bullColor.description"
1459
+ },
1460
+ {
1461
+ key: "bearColor",
1462
+ label: "chart.option.bearColor.label",
1463
+ type: "color",
1464
+ defaultValue: "#ef4444",
1465
+ description: "chart.option.bearColor.description"
1466
+ },
1467
+ {
1468
+ key: "showWicks",
1469
+ label: "chart.option.showWicks.label",
1470
+ type: "boolean",
1471
+ defaultValue: !0,
1472
+ description: "chart.option.showWicks.description"
1473
+ },
1474
+ {
1475
+ key: "leftYAxisFormat",
1476
+ label: "chart.option.yAxisFormat.label",
1477
+ type: "axisFormat",
1478
+ description: "chart.configText.number_formatting_for_the_price_axis"
1479
+ }
1480
+ ]
1481
+ }, G = {
1482
+ displayOptions: [
1483
+ "showLegend",
1484
+ "showTooltip",
1485
+ "hideHeader"
1486
+ ],
1487
+ dropZones: [{
1488
+ key: "yAxis",
1489
+ label: "chart.configText.measures_x_axis_order",
1490
+ description: "chart.configText.add_2_or_more_measures_they_become_the_x_axis_categories_in_the_order_li",
1491
+ mandatory: !0,
1492
+ acceptTypes: ["measure"],
1493
+ emptyText: "chart.measureProfile.dropZone.yAxis.empty"
1494
+ }, {
1495
+ key: "series",
1496
+ label: "chart.configText.series_split_into_multiple_lines",
1497
+ description: "chart.configText.dimension_to_split_data_into_separate_profile_lines_e_g_symbol_platform",
1498
+ mandatory: !1,
1499
+ maxItems: 1,
1500
+ acceptTypes: ["dimension"],
1501
+ emptyText: "chart.measureProfile.dropZone.series.empty"
1502
+ }],
1503
+ displayOptionsConfig: [
1504
+ {
1505
+ key: "showReferenceLineAtZero",
1506
+ label: "chart.option.showReferenceLineAtZero.label",
1507
+ type: "boolean",
1508
+ defaultValue: !0,
1509
+ description: "chart.option.showReferenceLineAtZero.description"
1510
+ },
1511
+ {
1512
+ key: "showDataLabels",
1513
+ label: "chart.option.showDataLabels.label",
1514
+ type: "boolean",
1515
+ defaultValue: !1,
1516
+ description: "chart.configText.display_value_at_each_data_point"
1517
+ },
1518
+ {
1519
+ key: "showLegend",
1520
+ label: "chart.option.showLegend.label",
1521
+ type: "boolean",
1522
+ defaultValue: !0,
1523
+ description: "chart.configText.show_series_legend_only_visible_with_a_series_dimension"
1524
+ },
1525
+ {
1526
+ key: "lineType",
1527
+ label: "chart.option.lineType.label",
1528
+ type: "select",
1529
+ defaultValue: "monotone",
1530
+ options: [
1531
+ {
1532
+ value: "monotone",
1533
+ label: "chart.option.lineType.smooth"
1534
+ },
1535
+ {
1536
+ value: "linear",
1537
+ label: "chart.option.lineType.linear"
1538
+ },
1539
+ {
1540
+ value: "step",
1541
+ label: "chart.option.lineType.step"
1542
+ }
1543
+ ],
1544
+ description: "chart.option.lineType.description"
1545
+ },
1546
+ {
1547
+ key: "leftYAxisFormat",
1548
+ label: "chart.option.yAxisFormat.label",
1549
+ type: "axisFormat",
1550
+ description: "chart.configText.number_formatting_for_the_y_axis"
1551
+ }
1552
+ ]
1553
+ }, K = {
1554
+ clickableElements: {},
1555
+ displayOptions: ["hideHeader"],
1556
+ dropZones: [{
1557
+ key: "yAxis",
1558
+ label: "chart.configText.value_measure",
1559
+ description: "chart.configText.current_value_to_display_on_the_gauge_e_g_current_equity_margin_used",
1560
+ mandatory: !0,
1561
+ maxItems: 2,
1562
+ acceptTypes: ["measure"],
1563
+ emptyText: "chart.gauge.dropZone.yAxis.empty"
1564
+ }],
1565
+ displayOptionsConfig: [
1566
+ {
1567
+ key: "minValue",
1568
+ label: "chart.option.minValue.label",
1569
+ type: "number",
1570
+ defaultValue: 0,
1571
+ description: "chart.option.minValue.description"
1572
+ },
1573
+ {
1574
+ key: "maxValue",
1575
+ label: "chart.option.maxValue.label",
1576
+ type: "number",
1577
+ description: "chart.option.maxValue.description"
1578
+ },
1579
+ {
1580
+ key: "thresholds",
1581
+ label: "chart.configText.threshold_bands",
1582
+ type: "string",
1583
+ placeholder: "[{\"value\":0.33,\"color\":\"#22c55e\"},{\"value\":0.66,\"color\":\"#f59e0b\"},{\"value\":1,\"color\":\"#ef4444\"}]",
1584
+ description: "chart.configText.array_of_value_0_1_fraction_color_bands_shown_as_outer_arc_markers"
1585
+ },
1586
+ {
1587
+ key: "showCenterLabel",
1588
+ label: "chart.option.showCentreLabel.label",
1589
+ type: "boolean",
1590
+ defaultValue: !0,
1591
+ description: "chart.option.showCentreLabel.description"
1592
+ },
1593
+ {
1594
+ key: "showPercentage",
1595
+ label: "chart.option.showPercentage.label",
1596
+ type: "boolean",
1597
+ defaultValue: !1,
1598
+ description: "chart.option.showPercentage.description"
1599
+ },
1600
+ {
1601
+ key: "leftYAxisFormat",
1602
+ label: "chart.option.valueFormat.label",
1603
+ type: "axisFormat",
1604
+ description: "chart.configText.number_formatting_for_the_displayed_value_and_axis_labels"
1605
+ }
1606
+ ]
1607
+ }, q = {
1608
+ packageName: "recharts",
1609
+ installCommand: "npm install recharts"
1610
+ }, ne = {
320
1611
  bar: {
321
1612
  label: "chart.bar.label",
1613
+ icon: "chartBar",
322
1614
  description: "chart.bar.description",
323
1615
  useCase: "chart.bar.useCase",
324
- clickableElements: { bar: !0 },
325
- isAvailable: h,
326
- dropZones: [
327
- {
328
- key: "xAxis",
329
- label: "chart.dropZone.xAxis.label",
330
- description: "chart.dropZone.xAxis.description",
331
- mandatory: !1,
332
- acceptTypes: ["dimension", "timeDimension"],
333
- emptyText: "chart.bar.dropZone.xAxis.empty"
334
- },
335
- {
336
- key: "yAxis",
337
- label: "chart.dropZone.yAxis.label",
338
- description: "chart.configText.measures_for_bar_heights",
339
- mandatory: !0,
340
- acceptTypes: ["measure"],
341
- emptyText: "chart.bar.dropZone.yAxis.empty",
342
- enableDualAxis: !0
343
- },
344
- {
345
- key: "series",
346
- label: "chart.dropZone.series.label",
347
- description: "chart.dropZone.series.description",
348
- mandatory: !1,
349
- acceptTypes: ["dimension"],
350
- emptyText: "chart.bar.dropZone.series.empty"
351
- }
352
- ],
353
- displayOptions: [
354
- "showLegend",
355
- "showGrid",
356
- "showTooltip",
357
- "showAllXLabels",
358
- "hideHeader"
359
- ],
360
- displayOptionsConfig: [
361
- S("chart.configText.how_to_stack_multiple_bar_series"),
362
- _,
363
- y,
364
- b
365
- ]
1616
+ isAvailable: u,
1617
+ dependencies: q,
1618
+ config: async () => (await import("./BarChart.config-CFelK1qP.js")).barChartConfig
366
1619
  },
367
1620
  line: {
368
1621
  label: "chart.line.label",
1622
+ icon: "chartLine",
369
1623
  description: "chart.line.description",
370
1624
  useCase: "chart.line.useCase",
371
- clickableElements: { point: !0 },
372
- isAvailable: h,
373
- dropZones: [
374
- {
375
- key: "xAxis",
376
- label: "chart.configText.x_axis_time_categories",
377
- description: "chart.configText.time_dimensions_or_dimensions_for_x_axis",
378
- mandatory: !0,
379
- acceptTypes: ["dimension", "timeDimension"],
380
- emptyText: "chart.line.dropZone.xAxis.empty"
381
- },
382
- {
383
- key: "yAxis",
384
- label: "chart.dropZone.yAxis.label",
385
- description: "chart.configText.measures_for_line_values",
386
- mandatory: !0,
387
- acceptTypes: ["measure"],
388
- emptyText: "chart.line.dropZone.yAxis.empty",
389
- enableDualAxis: !0
390
- },
391
- {
392
- key: "series",
393
- label: "chart.configText.series_multiple_lines",
394
- description: "chart.configText.dimensions_to_create_separate_lines",
395
- mandatory: !1,
396
- acceptTypes: ["dimension"],
397
- emptyText: "chart.line.dropZone.series.empty"
398
- }
399
- ],
400
- displayOptions: [
401
- "showLegend",
402
- "showGrid",
403
- "showTooltip",
404
- "showAllXLabels",
405
- "hideHeader"
406
- ],
407
- displayOptionsConfig: [
408
- v,
409
- _,
410
- {
411
- key: "priorPeriodStyle",
412
- label: "chart.option.priorPeriodStyle.label",
413
- type: "select",
414
- defaultValue: "dashed",
415
- options: [
416
- {
417
- value: "dashed",
418
- label: "chart.option.priorPeriodStyle.dashed"
419
- },
420
- {
421
- value: "dotted",
422
- label: "chart.option.priorPeriodStyle.dotted"
423
- },
424
- {
425
- value: "solid",
426
- label: "chart.option.priorPeriodStyle.solid"
427
- }
428
- ],
429
- description: "chart.option.priorPeriodStyle.description"
430
- },
431
- {
432
- key: "priorPeriodOpacity",
433
- label: "chart.option.priorPeriodOpacity.label",
434
- type: "number",
435
- defaultValue: .5,
436
- min: .1,
437
- max: 1,
438
- step: .1,
439
- description: "chart.option.priorPeriodOpacity.description"
440
- },
441
- y,
442
- b
443
- ]
1625
+ isAvailable: u,
1626
+ dependencies: q,
1627
+ config: async () => (await import("./LineChart.config-CJtF8SOu.js")).lineChartConfig
444
1628
  },
445
1629
  area: {
446
1630
  label: "chart.area.label",
1631
+ icon: "chartArea",
447
1632
  description: "chart.area.description",
448
1633
  useCase: "chart.area.useCase",
449
- isAvailable: h,
450
- dropZones: [
451
- {
452
- key: "xAxis",
453
- label: "chart.configText.x_axis_time_categories",
454
- description: "chart.configText.time_dimensions_or_dimensions_for_x_axis",
455
- mandatory: !0,
456
- acceptTypes: ["dimension", "timeDimension"],
457
- emptyText: "chart.area.dropZone.xAxis.empty"
458
- },
459
- {
460
- key: "yAxis",
461
- label: "chart.dropZone.yAxis.label",
462
- description: "chart.configText.measures_for_area_values",
463
- mandatory: !0,
464
- acceptTypes: ["measure"],
465
- emptyText: "chart.area.dropZone.yAxis.empty",
466
- enableDualAxis: !0
467
- },
468
- {
469
- key: "series",
470
- label: "chart.configText.series_stack_areas",
471
- description: "chart.configText.dimensions_to_create_stacked_areas",
472
- mandatory: !1,
473
- acceptTypes: ["dimension"],
474
- emptyText: "chart.area.dropZone.series.empty"
475
- }
476
- ],
477
- displayOptions: [
478
- "showLegend",
479
- "showGrid",
480
- "showTooltip",
481
- "showAllXLabels",
482
- "hideHeader"
483
- ],
484
- displayOptionsConfig: [
485
- S("chart.configText.how_to_stack_multiple_area_series"),
486
- v,
487
- _,
488
- y,
489
- b
490
- ]
1634
+ isAvailable: u,
1635
+ dependencies: q,
1636
+ config: async () => (await import("./AreaChart.config-1B8iQnfn.js")).areaChartConfig
491
1637
  },
492
1638
  pie: {
493
1639
  label: "chart.pie.label",
1640
+ icon: "chartPie",
494
1641
  description: "chart.pie.description",
495
1642
  useCase: "chart.pie.useCase",
496
- clickableElements: { slice: !0 },
497
- isAvailable: h,
498
- dropZones: [{
499
- key: "xAxis",
500
- label: "chart.configText.categories",
501
- description: "chart.configText.dimension_for_pie_slices",
502
- mandatory: !0,
503
- maxItems: 1,
504
- acceptTypes: ["dimension"],
505
- emptyText: "chart.pie.dropZone.xAxis.empty"
506
- }, {
507
- key: "yAxis",
508
- label: "chart.configText.values",
509
- description: "chart.configText.measure_for_slice_sizes",
510
- mandatory: !0,
511
- maxItems: 1,
512
- acceptTypes: ["measure"],
513
- emptyText: "chart.pie.dropZone.yAxis.empty"
514
- }],
515
- displayOptions: [
516
- "showLegend",
517
- "showTooltip",
518
- "hideHeader"
519
- ],
520
- displayOptionsConfig: [{
521
- key: "innerRadius",
522
- label: "chart.option.innerRadius.label",
523
- type: "select",
524
- description: "chart.configText.hollow_center_size_0_percent_solid_pie_higher_donut_style",
525
- defaultValue: "0%",
526
- options: [
527
- {
528
- value: "0%",
529
- label: "chart.configText.none_pie"
530
- },
531
- {
532
- value: "20%",
533
- label: "chart.configText.20_percent"
534
- },
535
- {
536
- value: "40%",
537
- label: "chart.configText.40_percent"
538
- },
539
- {
540
- value: "60%",
541
- label: "chart.configText.60_percent"
542
- },
543
- {
544
- value: "80%",
545
- label: "chart.configText.80_percent"
546
- }
547
- ]
548
- }, x()]
1643
+ isAvailable: u,
1644
+ dependencies: q,
1645
+ config: async () => (await import("./PieChart.config-CuZxQc5m.js")).pieChartConfig
549
1646
  },
550
1647
  scatter: {
551
1648
  label: "chart.scatter.label",
1649
+ icon: "chartScatter",
552
1650
  description: "chart.scatter.description",
553
1651
  useCase: "chart.scatter.useCase",
554
1652
  isAvailable: ({ measureCount: e, dimensionCount: t }) => e < 1 ? {
@@ -558,59 +1656,12 @@ var C = {
558
1656
  available: !1,
559
1657
  reason: "chart.availability.scatter"
560
1658
  } : { available: !0 },
561
- dropZones: [
562
- {
563
- key: "xAxis",
564
- label: "chart.runtime.axisFormat.xAxis",
565
- description: "chart.configText.measure_or_dimension_for_x_position",
566
- mandatory: !0,
567
- maxItems: 1,
568
- acceptTypes: [
569
- "dimension",
570
- "timeDimension",
571
- "measure"
572
- ],
573
- emptyText: "chart.scatter.dropZone.xAxis.empty"
574
- },
575
- {
576
- key: "yAxis",
577
- label: "chart.configText.y_axis",
578
- description: "chart.configText.measure_for_y_position",
579
- mandatory: !0,
580
- maxItems: 1,
581
- acceptTypes: ["measure"],
582
- emptyText: "chart.scatter.dropZone.yAxis.empty"
583
- },
584
- {
585
- key: "series",
586
- label: "chart.configText.series_color_groups",
587
- description: "chart.configText.dimension_to_color_points_by_category",
588
- mandatory: !1,
589
- maxItems: 1,
590
- acceptTypes: ["dimension"],
591
- emptyText: "chart.scatter.dropZone.series.empty"
592
- }
593
- ],
594
- displayOptions: [
595
- "showLegend",
596
- "showGrid",
597
- "showTooltip",
598
- "hideHeader"
599
- ],
600
- displayOptionsConfig: [{
601
- key: "xAxisFormat",
602
- label: "chart.option.xAxisFormat.label",
603
- type: "axisFormat",
604
- description: "chart.option.xAxisFormat.description"
605
- }, {
606
- key: "leftYAxisFormat",
607
- label: "chart.option.yAxisFormat.label",
608
- type: "axisFormat",
609
- description: "chart.option.yAxisFormat.description"
610
- }]
1659
+ dependencies: q,
1660
+ config: async () => (await import("./ScatterChart.config-4Okvn27v.js")).scatterChartConfig
611
1661
  },
612
1662
  bubble: {
613
1663
  label: "chart.bubble.label",
1664
+ icon: "chartBubble",
614
1665
  description: "chart.bubble.description",
615
1666
  useCase: "chart.bubble.useCase",
616
1667
  isAvailable: ({ measureCount: e, dimensionCount: t }) => e < 2 ? {
@@ -620,212 +1671,46 @@ var C = {
620
1671
  available: !1,
621
1672
  reason: "chart.availability.bubble"
622
1673
  } : { available: !0 },
623
- dropZones: [
624
- {
625
- key: "xAxis",
626
- label: "chart.runtime.axisFormat.xAxis",
627
- description: "chart.configText.horizontal_axis_position",
628
- mandatory: !0,
629
- maxItems: 1,
630
- acceptTypes: [
631
- "dimension",
632
- "timeDimension",
633
- "measure"
634
- ],
635
- emptyText: "chart.bubble.dropZone.xAxis.empty"
636
- },
637
- {
638
- key: "yAxis",
639
- label: "chart.configText.y_axis",
640
- description: "chart.configText.vertical_axis_position",
641
- mandatory: !0,
642
- maxItems: 1,
643
- acceptTypes: ["measure"],
644
- emptyText: "chart.bubble.dropZone.yAxis.empty"
645
- },
646
- {
647
- key: "sizeField",
648
- label: "chart.configText.bubble_radius",
649
- description: "chart.configText.size_of_bubbles_based_on_this_measure",
650
- mandatory: !0,
651
- maxItems: 1,
652
- acceptTypes: ["measure"],
653
- emptyText: "chart.bubble.dropZone.sizeField.empty"
654
- },
655
- {
656
- key: "series",
657
- label: "chart.configText.bubble_labels",
658
- description: "chart.configText.field_to_use_for_bubble_labels_and_identification",
659
- mandatory: !0,
660
- maxItems: 1,
661
- acceptTypes: ["dimension"],
662
- emptyText: "chart.bubble.dropZone.series.empty"
663
- },
664
- {
665
- key: "colorField",
666
- label: "chart.configText.bubble_colour",
667
- description: "chart.configText.color_bubbles_by_this_field_optional",
668
- mandatory: !1,
669
- maxItems: 1,
670
- acceptTypes: ["dimension", "measure"],
671
- emptyText: "chart.bubble.dropZone.colorField.empty"
672
- }
673
- ],
674
- displayOptions: [
675
- "showLegend",
676
- "showGrid",
677
- "showTooltip",
678
- "minBubbleSize",
679
- "maxBubbleSize",
680
- "bubbleOpacity",
681
- "hideHeader"
682
- ],
683
- displayOptionsConfig: [{
684
- key: "xAxisFormat",
685
- label: "chart.option.xAxisFormat.label",
686
- type: "axisFormat",
687
- description: "chart.option.xAxisFormat.description"
688
- }, {
689
- key: "leftYAxisFormat",
690
- label: "chart.option.yAxisFormat.label",
691
- type: "axisFormat",
692
- description: "chart.configText.number_formatting_for_y_axis_and_values"
693
- }]
1674
+ dependencies: q,
1675
+ config: async () => (await import("./BubbleChart.config-B_M4hzzV.js")).bubbleChartConfig
694
1676
  },
695
1677
  radar: {
696
1678
  label: "chart.radar.label",
1679
+ icon: "chartRadar",
697
1680
  description: "chart.radar.description",
698
1681
  useCase: "chart.radar.useCase",
699
- isAvailable: h,
700
- dropZones: [
701
- {
702
- key: "xAxis",
703
- label: "chart.configText.axes_categories",
704
- description: "chart.configText.dimensions_for_radar_axes",
705
- mandatory: !0,
706
- acceptTypes: ["dimension"],
707
- emptyText: "chart.radar.dropZone.xAxis.empty"
708
- },
709
- {
710
- key: "yAxis",
711
- label: "chart.configText.values",
712
- description: "chart.configText.measures_for_radar_values",
713
- mandatory: !0,
714
- acceptTypes: ["measure"],
715
- emptyText: "chart.radar.dropZone.yAxis.empty"
716
- },
717
- {
718
- key: "series",
719
- label: "chart.configText.series_multiple_shapes",
720
- description: "chart.configText.dimensions_to_create_multiple_radar_shapes",
721
- mandatory: !1,
722
- acceptTypes: ["dimension"],
723
- emptyText: "chart.radar.dropZone.series.empty"
724
- }
725
- ],
726
- displayOptions: [
727
- "showLegend",
728
- "showGrid",
729
- "showTooltip",
730
- "hideHeader"
731
- ],
732
- displayOptionsConfig: [x()]
1682
+ isAvailable: u,
1683
+ dependencies: q,
1684
+ config: async () => (await import("./RadarChart.config-KrxwaaGu.js")).radarChartConfig
733
1685
  },
734
1686
  radialBar: {
735
1687
  label: "chart.radialBar.label",
1688
+ icon: "chartRadialBar",
736
1689
  description: "chart.radialBar.description",
737
1690
  useCase: "chart.radialBar.useCase",
738
- isAvailable: h,
739
- dropZones: [{
740
- key: "xAxis",
741
- label: "chart.configText.categories",
742
- description: "chart.configText.dimensions_for_radial_segments",
743
- mandatory: !0,
744
- acceptTypes: ["dimension"],
745
- emptyText: "chart.radialBar.dropZone.xAxis.empty"
746
- }, {
747
- key: "yAxis",
748
- label: "chart.configText.values",
749
- description: "chart.configText.measures_for_radial_bar_lengths",
750
- mandatory: !0,
751
- maxItems: 1,
752
- acceptTypes: ["measure"],
753
- emptyText: "chart.radialBar.dropZone.yAxis.empty"
754
- }],
755
- displayOptions: [
756
- "showLegend",
757
- "showTooltip",
758
- "hideHeader"
759
- ],
760
- displayOptionsConfig: [x()]
1691
+ isAvailable: u,
1692
+ dependencies: q,
1693
+ config: async () => (await import("./RadialBarChart.config-DpRZd0FW.js")).radialBarChartConfig
761
1694
  },
762
1695
  treemap: {
763
1696
  label: "chart.treemap.label",
1697
+ icon: "chartTreemap",
764
1698
  description: "chart.treemap.description",
765
1699
  useCase: "chart.treemap.useCase",
766
- isAvailable: h,
767
- dropZones: [
768
- {
769
- key: "xAxis",
770
- label: "chart.configText.categories",
771
- description: "chart.configText.dimensions_for_treemap_rectangles",
772
- mandatory: !0,
773
- acceptTypes: ["dimension"],
774
- emptyText: "chart.treemap.dropZone.xAxis.empty"
775
- },
776
- {
777
- key: "yAxis",
778
- label: "chart.configText.size",
779
- description: "chart.configText.measure_for_rectangle_sizes",
780
- mandatory: !0,
781
- maxItems: 1,
782
- acceptTypes: ["measure"],
783
- emptyText: "chart.treemap.dropZone.yAxis.empty"
784
- },
785
- {
786
- key: "series",
787
- label: "chart.configText.color_groups",
788
- description: "chart.configText.dimension_to_color_rectangles_by_category",
789
- mandatory: !1,
790
- maxItems: 1,
791
- acceptTypes: ["dimension"],
792
- emptyText: "chart.treemap.dropZone.series.empty"
793
- }
794
- ],
795
- displayOptions: [
796
- "showLegend",
797
- "showTooltip",
798
- "hideHeader"
799
- ],
800
- displayOptionsConfig: [x("chart.configText.number_formatting_for_size_values")],
801
- clickableElements: { cell: !0 }
1700
+ isAvailable: u,
1701
+ dependencies: q,
1702
+ config: async () => (await import("./TreeMapChart.config-S0qsgAFW.js")).treemapChartConfig
802
1703
  },
803
1704
  table: {
804
1705
  label: "chart.table.label",
1706
+ icon: "chartTable",
805
1707
  description: "chart.table.description",
806
1708
  useCase: "chart.table.useCase",
807
- dropZones: [{
808
- key: "xAxis",
809
- label: "chart.configText.columns",
810
- description: "chart.configText.all_fields_to_display_as_columns",
811
- mandatory: !1,
812
- acceptTypes: [
813
- "dimension",
814
- "timeDimension",
815
- "measure"
816
- ],
817
- emptyText: "chart.table.dropZone.xAxis.empty"
818
- }],
819
- displayOptions: ["hideHeader"],
820
- displayOptionsConfig: [{
821
- key: "leftYAxisFormat",
822
- label: "chart.option.valueFormat.label",
823
- type: "axisFormat",
824
- description: "chart.configText.number_formatting_for_numeric_values"
825
- }]
1709
+ config: async () => (await import("./DataTable.config-wIQnHX5R.js")).dataTableConfig
826
1710
  },
827
1711
  activityGrid: {
828
1712
  label: "chart.activityGrid.label",
1713
+ icon: "chartActivityGrid",
829
1714
  description: "chart.activityGrid.description",
830
1715
  useCase: "chart.activityGrid.useCase",
831
1716
  isAvailable: ({ measureCount: e, timeDimensionCount: t }) => e < 1 ? {
@@ -835,547 +1720,66 @@ var C = {
835
1720
  available: !1,
836
1721
  reason: "chart.availability.requiresTimeDimension"
837
1722
  } : { available: !0 },
838
- dropZones: [{
839
- key: "dateField",
840
- label: "chart.configText.time_dimension",
841
- description: "chart.configText.time_field_that_determines_grid_structure_granularity_affects_layout",
842
- mandatory: !0,
843
- maxItems: 1,
844
- acceptTypes: ["timeDimension"],
845
- emptyText: "chart.activityGrid.dropZone.dateField.empty"
846
- }, {
847
- key: "valueField",
848
- label: "chart.configText.activity_measure",
849
- description: "chart.configText.measure_used_for_activity_intensity_color_coding",
850
- mandatory: !0,
851
- maxItems: 1,
852
- acceptTypes: ["measure"],
853
- emptyText: "chart.activityGrid.dropZone.valueField.empty"
854
- }],
855
- displayOptions: [
856
- "showLabels",
857
- "showTooltip",
858
- "hideHeader"
859
- ],
860
- displayOptionsConfig: [{
861
- key: "fitToWidth",
862
- label: "chart.option.fitToWidth.label",
863
- type: "boolean",
864
- defaultValue: !1,
865
- description: "chart.option.fitToWidth.description"
866
- }],
867
- validate: (e) => {
868
- let { dateField: t, valueField: n } = e;
869
- return !t || Array.isArray(t) && t.length === 0 ? {
870
- isValid: !1,
871
- message: "chart.activityGrid.validation.timeDimensionRequired"
872
- } : !n || Array.isArray(n) && n.length === 0 ? {
873
- isValid: !1,
874
- message: "chart.activityGrid.validation.measureRequired"
875
- } : { isValid: !0 };
876
- },
877
- clickableElements: { cell: !0 }
1723
+ config: async () => (await import("./ActivityGridChart.config-CTd5HYjI.js")).activityGridChartConfig
878
1724
  },
879
1725
  kpiNumber: {
880
- label: "chart.kpiNumber.label",
881
- description: "chart.kpiNumber.description",
882
- useCase: "chart.kpiNumber.useCase",
883
- isAvailable: g,
884
- dropZones: [{
885
- key: "yAxis",
886
- label: "chart.configText.value",
887
- description: "chart.configText.measure_to_display_as_kpi_number",
888
- mandatory: !0,
889
- maxItems: 1,
890
- acceptTypes: ["measure"],
891
- emptyText: "chart.kpiNumber.dropZone.yAxis.empty"
892
- }],
893
- displayOptionsConfig: [
894
- {
895
- key: "target",
896
- label: "chart.runtime.tooltip.targetValue",
897
- type: "string",
898
- placeholder: "e.g., 100",
899
- description: "chart.configText.target_value_to_compare_against_first_value_used_if_multiple_provided"
900
- },
901
- {
902
- key: "prefix",
903
- label: "chart.option.prefix.label",
904
- type: "string",
905
- placeholder: "e.g., $, €, #",
906
- description: "chart.option.prefix.description"
907
- },
908
- {
909
- key: "suffix",
910
- label: "chart.option.suffix.label",
911
- type: "string",
912
- placeholder: "e.g., %, units, items",
913
- description: "chart.option.suffix.description"
914
- },
915
- {
916
- key: "decimals",
917
- label: "chart.option.decimals.label",
918
- type: "number",
919
- defaultValue: 0,
920
- min: 0,
921
- max: 10,
922
- step: 1,
923
- description: "chart.option.decimals.description"
924
- },
925
- {
926
- key: "valueColorIndex",
927
- label: "chart.configText.value_color",
928
- type: "paletteColor",
929
- defaultValue: 0,
930
- description: "chart.configText.color_from_the_dashboard_palette_for_the_kpi_value_text"
931
- },
932
- {
933
- key: "useLastCompletePeriod",
934
- label: "chart.option.useLastCompletePeriod.label",
935
- type: "boolean",
936
- defaultValue: !0,
937
- description: "chart.configText.exclude_current_incomplete_period_from_aggregation_e_g_partial_week_mont"
938
- },
939
- {
940
- key: "skipLastPeriod",
941
- label: "chart.option.skipLastPeriod.label",
942
- type: "boolean",
943
- defaultValue: !1,
944
- description: "chart.option.skipLastPeriod.description"
945
- }
946
- ],
947
- displayOptions: ["hideHeader"]
1726
+ label: "chart.kpiNumber.label",
1727
+ icon: "chartKpiNumber",
1728
+ description: "chart.kpiNumber.description",
1729
+ useCase: "chart.kpiNumber.useCase",
1730
+ isAvailable: p,
1731
+ config: async () => (await import("./KpiNumber.config-CXg6toZG.js")).kpiNumberConfig
948
1732
  },
949
1733
  kpiDelta: {
950
1734
  label: "chart.kpiDelta.label",
1735
+ icon: "chartKpiDelta",
951
1736
  description: "chart.kpiDelta.description",
952
1737
  useCase: "chart.kpiDelta.useCase",
953
- isAvailable: h,
954
- dropZones: [{
955
- key: "yAxis",
956
- label: "chart.configText.value",
957
- description: "chart.configText.measure_to_track_changes_for",
958
- mandatory: !0,
959
- maxItems: 1,
960
- acceptTypes: ["measure"],
961
- emptyText: "chart.kpiDelta.dropZone.yAxis.empty"
962
- }, {
963
- key: "xAxis",
964
- label: "chart.configText.dimension_optional",
965
- description: "chart.configText.dimension_for_ordering_data_typically_time",
966
- mandatory: !1,
967
- maxItems: 1,
968
- acceptTypes: ["dimension", "timeDimension"],
969
- emptyText: "chart.kpiDelta.dropZone.xAxis.empty"
970
- }],
971
- displayOptionsConfig: [
972
- {
973
- key: "prefix",
974
- label: "chart.option.prefix.label",
975
- type: "string",
976
- placeholder: "e.g., $, €, #",
977
- description: "chart.option.prefix.description"
978
- },
979
- {
980
- key: "suffix",
981
- label: "chart.option.suffix.label",
982
- type: "string",
983
- placeholder: "e.g., %, units, items",
984
- description: "chart.option.suffix.description"
985
- },
986
- {
987
- key: "decimals",
988
- label: "chart.option.decimals.label",
989
- type: "number",
990
- defaultValue: 1,
991
- min: 0,
992
- max: 10,
993
- step: 1,
994
- description: "chart.option.decimals.description"
995
- },
996
- {
997
- key: "positiveColorIndex",
998
- label: "chart.configText.positive_change_color",
999
- type: "paletteColor",
1000
- defaultValue: 2,
1001
- description: "chart.configText.color_for_positive_changes_increases"
1002
- },
1003
- {
1004
- key: "negativeColorIndex",
1005
- label: "chart.configText.negative_change_color",
1006
- type: "paletteColor",
1007
- defaultValue: 3,
1008
- description: "chart.configText.color_for_negative_changes_decreases"
1009
- },
1010
- {
1011
- key: "showHistogram",
1012
- label: "chart.option.showHistogram.label",
1013
- type: "boolean",
1014
- defaultValue: !0,
1015
- description: "chart.option.showHistogram.description"
1016
- },
1017
- {
1018
- key: "useLastCompletePeriod",
1019
- label: "chart.option.useLastCompletePeriod.label",
1020
- type: "boolean",
1021
- defaultValue: !0,
1022
- description: "chart.configText.exclude_current_incomplete_period_from_delta_calculation_e_g_partial_wee"
1023
- },
1024
- {
1025
- key: "skipLastPeriod",
1026
- label: "chart.option.skipLastPeriod.label",
1027
- type: "boolean",
1028
- defaultValue: !1,
1029
- description: "chart.option.skipLastPeriod.description"
1030
- }
1031
- ],
1032
- displayOptions: ["hideHeader"],
1033
- validate: (e) => !e.yAxis || Array.isArray(e.yAxis) && e.yAxis.length === 0 ? {
1034
- isValid: !1,
1035
- message: "chart.kpiDelta.validation.measureRequired"
1036
- } : { isValid: !0 }
1738
+ isAvailable: u,
1739
+ config: async () => (await import("./KpiDelta.config-C_dYM64q.js")).kpiDeltaConfig
1037
1740
  },
1038
1741
  kpiText: {
1039
1742
  label: "chart.kpiText.label",
1743
+ icon: "chartKpiText",
1040
1744
  description: "chart.kpiText.description",
1041
1745
  useCase: "chart.kpiText.useCase",
1042
- isAvailable: g,
1043
- dropZones: [{
1044
- key: "yAxis",
1045
- label: "chart.configText.value",
1046
- description: "chart.configText.measure_to_display_in_the_kpi_text_template",
1047
- mandatory: !0,
1048
- maxItems: 1,
1049
- acceptTypes: ["measure"],
1050
- emptyText: "chart.kpiText.dropZone.yAxis.empty"
1051
- }],
1052
- displayOptionsConfig: [
1053
- {
1054
- key: "template",
1055
- label: "chart.configText.text_template",
1056
- type: "string",
1057
- placeholder: "e.g., Total Revenue: ${value}",
1058
- description: "chart.configText.template_for_displaying_the_text_use_value_to_insert_the_measure_value"
1059
- },
1060
- {
1061
- key: "decimals",
1062
- label: "chart.option.decimals.label",
1063
- type: "number",
1064
- defaultValue: 0,
1065
- min: 0,
1066
- max: 10,
1067
- step: 1,
1068
- description: "chart.configText.number_of_decimal_places_to_display_for_numeric_values"
1069
- },
1070
- {
1071
- key: "valueColorIndex",
1072
- label: "chart.configText.value_color",
1073
- type: "paletteColor",
1074
- defaultValue: 0,
1075
- description: "chart.configText.color_from_the_dashboard_palette_for_the_kpi_value_text"
1076
- }
1077
- ],
1078
- displayOptions: ["hideHeader"]
1746
+ isAvailable: p,
1747
+ config: async () => (await import("./KpiText.config-BY-SJvAF.js")).kpiTextConfig
1079
1748
  },
1080
1749
  markdown: {
1081
1750
  label: "chart.markdown.label",
1751
+ icon: "chartMarkdown",
1082
1752
  description: "chart.markdown.description",
1083
1753
  useCase: "chart.markdown.useCase",
1084
- skipQuery: !0,
1085
- dropZones: [],
1086
- displayOptionsConfig: [
1087
- {
1088
- key: "content",
1089
- label: "chart.configText.markdown_content",
1090
- type: "string",
1091
- placeholder: "# Welcome\n\nAdd your **markdown** content here:\n\n- Lists with bullets\n- [Links](https://example.com)\n- *Italic* and **bold** text\n\n---\n\nUse --- for horizontal rules.",
1092
- description: "chart.configText.enter_markdown_text_supports_headers_bold_text_italic_text_links_text_ur"
1093
- },
1094
- {
1095
- key: "accentColorIndex",
1096
- label: "chart.configText.accent_color",
1097
- type: "paletteColor",
1098
- defaultValue: 0,
1099
- description: "chart.configText.color_from_the_dashboard_palette_for_headers_bullets_and_links"
1100
- },
1101
- {
1102
- key: "fontSize",
1103
- label: "chart.option.fontSize.label",
1104
- type: "select",
1105
- defaultValue: "medium",
1106
- options: [
1107
- {
1108
- value: "small",
1109
- label: "chart.option.fontSize.small"
1110
- },
1111
- {
1112
- value: "medium",
1113
- label: "chart.option.fontSize.medium"
1114
- },
1115
- {
1116
- value: "large",
1117
- label: "chart.option.fontSize.large"
1118
- }
1119
- ],
1120
- description: "chart.configText.overall_text_size_for_the_markdown_content"
1121
- },
1122
- {
1123
- key: "alignment",
1124
- label: "chart.option.alignment.label",
1125
- type: "select",
1126
- defaultValue: "left",
1127
- options: [
1128
- {
1129
- value: "left",
1130
- label: "chart.option.accentBorder.left"
1131
- },
1132
- {
1133
- value: "center",
1134
- label: "chart.option.alignment.center"
1135
- },
1136
- {
1137
- value: "right",
1138
- label: "chart.option.alignment.right"
1139
- }
1140
- ],
1141
- description: "chart.configText.horizontal_alignment_of_the_markdown_content"
1142
- },
1143
- {
1144
- key: "hideHeader",
1145
- label: "chart.option.hideHeader.label",
1146
- type: "boolean",
1147
- defaultValue: !0,
1148
- description: "chart.option.hideHeader.description"
1149
- },
1150
- {
1151
- key: "transparentBackground",
1152
- label: "chart.option.transparentBackground.label",
1153
- type: "boolean",
1154
- defaultValue: !1,
1155
- description: "chart.option.transparentBackground.description"
1156
- },
1157
- {
1158
- key: "autoHeight",
1159
- label: "chart.option.autoHeight.label",
1160
- type: "boolean",
1161
- defaultValue: !0,
1162
- description: "chart.option.autoHeight.description"
1163
- },
1164
- {
1165
- key: "accentBorder",
1166
- label: "chart.option.accentBorder.label",
1167
- type: "select",
1168
- defaultValue: "none",
1169
- options: [
1170
- {
1171
- value: "none",
1172
- label: "chart.option.accentBorder.none"
1173
- },
1174
- {
1175
- value: "left",
1176
- label: "chart.option.accentBorder.left"
1177
- },
1178
- {
1179
- value: "top",
1180
- label: "chart.option.accentBorder.top"
1181
- },
1182
- {
1183
- value: "bottom",
1184
- label: "chart.option.accentBorder.bottom"
1185
- }
1186
- ],
1187
- description: "chart.configText.add_an_accent_colored_border_on_one_side_of_the_content"
1188
- }
1189
- ]
1754
+ config: async () => (await import("./MarkdownChart.config-BuIQcWOn.js")).markdownConfig
1190
1755
  },
1191
1756
  funnel: {
1192
1757
  label: "chart.funnel.label",
1758
+ icon: "chartFunnel",
1193
1759
  description: "chart.funnel.description",
1194
1760
  useCase: "chart.funnel.useCase",
1195
- dropZones: [{
1196
- key: "xAxis",
1197
- label: "chart.configText.step_name",
1198
- description: "chart.configText.step_names_auto_populated_from_funnel_steps",
1199
- mandatory: !1,
1200
- maxItems: 1,
1201
- acceptTypes: ["dimension"],
1202
- emptyText: "chart.funnel.dropZone.xAxis.empty"
1203
- }, {
1204
- key: "yAxis",
1205
- label: "chart.configText.step_count",
1206
- description: "chart.configText.count_at_each_step_auto_calculated",
1207
- mandatory: !1,
1208
- maxItems: 1,
1209
- acceptTypes: ["measure"],
1210
- emptyText: "chart.funnel.dropZone.yAxis.empty"
1211
- }],
1212
- displayOptions: ["hideHeader"],
1213
- displayOptionsConfig: [
1214
- {
1215
- key: "funnelStyle",
1216
- label: "chart.option.funnelStyle.label",
1217
- type: "buttonGroup",
1218
- defaultValue: "bars",
1219
- options: [{
1220
- value: "bars",
1221
- label: "chart.option.funnelStyle.bars"
1222
- }, {
1223
- value: "funnel",
1224
- label: "chart.option.funnelStyle.funnel"
1225
- }],
1226
- description: "chart.configText.visualization_style"
1227
- },
1228
- {
1229
- key: "funnelOrientation",
1230
- label: "chart.option.funnelOrientation.label",
1231
- type: "buttonGroup",
1232
- defaultValue: "horizontal",
1233
- options: [{
1234
- value: "horizontal",
1235
- label: "chart.option.funnelOrientation.horizontal"
1236
- }, {
1237
- value: "vertical",
1238
- label: "chart.option.funnelOrientation.vertical"
1239
- }]
1240
- },
1241
- {
1242
- key: "hideSummaryFooter",
1243
- label: "chart.option.hideSummaryFooter.label",
1244
- type: "boolean",
1245
- defaultValue: !1,
1246
- description: "chart.option.hideSummaryFooter.description"
1247
- },
1248
- {
1249
- key: "showFunnelConversion",
1250
- label: "chart.option.showConversion.label",
1251
- type: "boolean",
1252
- defaultValue: !0,
1253
- description: "chart.option.showConversion.description"
1254
- },
1255
- {
1256
- key: "showFunnelAvgTime",
1257
- label: "chart.option.showAvgTime.label",
1258
- type: "boolean",
1259
- defaultValue: !1,
1260
- description: "chart.option.showAvgTime.description"
1261
- },
1262
- {
1263
- key: "showFunnelMedianTime",
1264
- label: "chart.option.showMedianTime.label",
1265
- type: "boolean",
1266
- defaultValue: !1,
1267
- description: "chart.option.showMedianTime.description"
1268
- },
1269
- {
1270
- key: "showFunnelP90Time",
1271
- label: "chart.option.showP90Time.label",
1272
- type: "boolean",
1273
- defaultValue: !1,
1274
- description: "chart.option.showP90Time.description"
1275
- }
1276
- ]
1761
+ dependencies: q,
1762
+ config: async () => (await import("./FunnelChart.config-Dz710ssx.js")).funnelChartConfig
1277
1763
  },
1278
1764
  sankey: {
1279
1765
  label: "chart.sankey.label",
1766
+ icon: "chartSankey",
1280
1767
  description: "chart.sankey.description",
1281
1768
  useCase: "chart.sankey.useCase",
1282
- dropZones: [{
1283
- key: "xAxis",
1284
- label: "chart.configText.event_type",
1285
- description: "chart.configText.event_dimension_that_categorizes_flow_nodes",
1286
- mandatory: !1,
1287
- maxItems: 1,
1288
- acceptTypes: ["dimension"],
1289
- emptyText: "chart.sankey.dropZone.xAxis.empty"
1290
- }, {
1291
- key: "yAxis",
1292
- label: "chart.configText.flow_count",
1293
- description: "chart.configText.count_of_entities_following_each_path",
1294
- mandatory: !1,
1295
- maxItems: 1,
1296
- acceptTypes: ["measure"],
1297
- emptyText: "chart.sankey.dropZone.yAxis.empty"
1298
- }],
1299
- displayOptions: ["hideHeader"],
1300
- displayOptionsConfig: [
1301
- {
1302
- key: "linkOpacity",
1303
- label: "chart.option.linkOpacity.label",
1304
- type: "buttonGroup",
1305
- defaultValue: "0.5",
1306
- options: [
1307
- {
1308
- value: "0.3",
1309
- label: "chart.option.linkOpacity.light"
1310
- },
1311
- {
1312
- value: "0.5",
1313
- label: "chart.option.fontSize.medium"
1314
- },
1315
- {
1316
- value: "0.7",
1317
- label: "chart.option.linkOpacity.dark"
1318
- }
1319
- ],
1320
- description: "chart.configText.opacity_of_flow_links"
1321
- },
1322
- {
1323
- key: "showNodeLabels",
1324
- label: "chart.option.showNodeLabels.label",
1325
- type: "boolean",
1326
- defaultValue: !0,
1327
- description: "chart.option.showNodeLabels.description"
1328
- },
1329
- {
1330
- key: "hideSummaryFooter",
1331
- label: "chart.option.hideSummaryFooter.label",
1332
- type: "boolean",
1333
- defaultValue: !0,
1334
- description: "chart.configText.hide_the_statistics_footer_below_the_chart"
1335
- }
1336
- ]
1769
+ dependencies: q,
1770
+ config: async () => (await import("./SankeyChart.config-kzAnW0C7.js")).sankeyChartConfig
1337
1771
  },
1338
1772
  sunburst: {
1339
1773
  label: "chart.sunburst.label",
1774
+ icon: "chartSunburst",
1340
1775
  description: "chart.sunburst.description",
1341
1776
  useCase: "chart.sunburst.useCase",
1342
- dropZones: [{
1343
- key: "xAxis",
1344
- label: "chart.configText.event_type",
1345
- description: "chart.configText.event_dimension_that_categorizes_flow_nodes",
1346
- mandatory: !1,
1347
- maxItems: 1,
1348
- acceptTypes: ["dimension"],
1349
- emptyText: "chart.sunburst.dropZone.xAxis.empty"
1350
- }, {
1351
- key: "yAxis",
1352
- label: "chart.configText.flow_count",
1353
- description: "chart.configText.count_of_entities_following_each_path",
1354
- mandatory: !1,
1355
- maxItems: 1,
1356
- acceptTypes: ["measure"],
1357
- emptyText: "chart.sunburst.dropZone.yAxis.empty"
1358
- }],
1359
- displayOptions: ["hideHeader"],
1360
- displayOptionsConfig: [{
1361
- key: "innerRadius",
1362
- label: "chart.option.innerRadius.label",
1363
- type: "number",
1364
- defaultValue: 40,
1365
- min: 0,
1366
- max: 100,
1367
- step: 10,
1368
- description: "chart.configText.size_of_the_center_hole_0_for_full_circle"
1369
- }, {
1370
- key: "hideSummaryFooter",
1371
- label: "chart.option.hideSummaryFooter.label",
1372
- type: "boolean",
1373
- defaultValue: !0,
1374
- description: "chart.configText.hide_the_statistics_footer_below_the_chart"
1375
- }]
1777
+ dependencies: q,
1778
+ config: async () => (await import("./SunburstChart.config-BsUQkIM_.js")).sunburstChartConfig
1376
1779
  },
1377
1780
  heatmap: {
1378
1781
  label: "chart.heatmap.label",
1782
+ icon: "chartHeatmap",
1379
1783
  description: "chart.heatmap.description",
1380
1784
  useCase: "chart.heatmap.useCase",
1381
1785
  isAvailable: ({ measureCount: e, dimensionCount: t }) => e < 1 ? {
@@ -1385,246 +1789,48 @@ var C = {
1385
1789
  available: !1,
1386
1790
  reason: "chart.availability.requiresTwoDimensions"
1387
1791
  } : { available: !0 },
1388
- dropZones: [
1389
- {
1390
- key: "xAxis",
1391
- label: "chart.configText.columns_x_axis",
1392
- description: "chart.configText.dimension_for_column_categories",
1393
- mandatory: !0,
1394
- maxItems: 1,
1395
- acceptTypes: ["dimension"],
1396
- emptyText: "chart.heatmap.dropZone.xAxis.empty"
1397
- },
1398
- {
1399
- key: "yAxis",
1400
- label: "chart.configText.rows_y_axis",
1401
- description: "chart.configText.dimension_for_row_categories",
1402
- mandatory: !0,
1403
- maxItems: 1,
1404
- acceptTypes: ["dimension"],
1405
- emptyText: "chart.heatmap.dropZone.yAxis.empty"
1406
- },
1407
- {
1408
- key: "valueField",
1409
- label: "chart.configText.value_color_intensity",
1410
- description: "chart.configText.measure_that_determines_cell_color",
1411
- mandatory: !0,
1412
- maxItems: 1,
1413
- acceptTypes: ["measure"],
1414
- emptyText: "chart.heatmap.dropZone.valueField.empty"
1415
- }
1416
- ],
1417
- displayOptions: ["showLegend", "showTooltip"],
1418
- displayOptionsConfig: [
1419
- {
1420
- key: "showLabels",
1421
- label: "chart.option.showLabels.label",
1422
- type: "boolean",
1423
- defaultValue: !1,
1424
- description: "chart.option.showLabels.description"
1425
- },
1426
- {
1427
- key: "cellShape",
1428
- label: "chart.option.cellShape.label",
1429
- type: "select",
1430
- defaultValue: "rect",
1431
- options: [{
1432
- value: "rect",
1433
- label: "chart.option.cellShape.rectangle"
1434
- }, {
1435
- value: "circle",
1436
- label: "chart.option.cellShape.circle"
1437
- }]
1438
- },
1439
- {
1440
- key: "xAxisFormat",
1441
- label: "chart.option.xAxisFormat.label",
1442
- type: "axisFormat",
1443
- description: "chart.configText.number_formatting_for_x_axis_labels"
1444
- },
1445
- {
1446
- key: "yAxisFormat",
1447
- label: "chart.option.yAxisFormat.label",
1448
- type: "axisFormat",
1449
- description: "chart.configText.number_formatting_for_y_axis_labels"
1450
- },
1451
- {
1452
- key: "valueFormat",
1453
- label: "chart.option.valueFormat.label",
1454
- type: "axisFormat",
1455
- description: "chart.configText.number_formatting_for_cell_values_and_legend"
1456
- }
1457
- ],
1458
- validate: (e) => e.xAxis?.length ? e.yAxis?.length ? e.valueField?.length ? { isValid: !0 } : {
1459
- isValid: !1,
1460
- message: "chart.heatmap.validation.valueRequired"
1461
- } : {
1462
- isValid: !1,
1463
- message: "chart.heatmap.validation.yAxisRequired"
1464
- } : {
1465
- isValid: !1,
1466
- message: "chart.heatmap.validation.xAxisRequired"
1467
- }
1792
+ dependencies: {
1793
+ packageName: "@nivo/heatmap",
1794
+ installCommand: "npm install @nivo/heatmap"
1795
+ },
1796
+ config: async () => (await import("./HeatMapChart.config-YVEWx6s5.js")).heatmapChartConfig
1468
1797
  },
1469
1798
  retentionHeatmap: {
1470
1799
  label: "chart.retentionHeatmap.label",
1471
- dropZones: [],
1472
- displayOptionsConfig: [{
1473
- key: "showLegend",
1474
- label: "chart.option.showLegend.label",
1475
- type: "boolean",
1476
- defaultValue: !0,
1477
- description: "chart.configText.show_the_color_intensity_legend"
1478
- }, {
1479
- key: "showTooltip",
1480
- label: "chart.option.showTooltip.label",
1481
- type: "boolean",
1482
- defaultValue: !0,
1483
- description: "chart.option.showTooltip.description"
1484
- }],
1800
+ icon: "chartRetention",
1485
1801
  description: "chart.retentionHeatmap.description",
1486
- useCase: "chart.retentionHeatmap.useCase"
1802
+ useCase: "chart.retentionHeatmap.useCase",
1803
+ config: async () => (await import("./RetentionHeatmap.config-CPd6GeoQ.js")).retentionHeatmapConfig
1487
1804
  },
1488
1805
  retentionCombined: {
1489
1806
  label: "chart.retentionCombined.label",
1490
- dropZones: [],
1491
- displayOptionsConfig: [
1492
- {
1493
- key: "retentionDisplayMode",
1494
- label: "chart.option.retentionDisplayMode.label",
1495
- type: "select",
1496
- defaultValue: "line",
1497
- options: [
1498
- {
1499
- value: "line",
1500
- label: "chart.option.retentionDisplayMode.lineChart"
1501
- },
1502
- {
1503
- value: "heatmap",
1504
- label: "chart.option.retentionDisplayMode.heatmapTable"
1505
- },
1506
- {
1507
- value: "combined",
1508
- label: "chart.option.retentionDisplayMode.combined"
1509
- }
1510
- ],
1511
- description: "chart.configText.choose_how_to_visualize_retention_data"
1512
- },
1513
- {
1514
- key: "showLegend",
1515
- label: "chart.option.showLegend.label",
1516
- type: "boolean",
1517
- defaultValue: !0,
1518
- description: "chart.configText.show_the_legend_for_breakdown_segments"
1519
- },
1520
- {
1521
- key: "showGrid",
1522
- label: "chart.option.showGrid.label",
1523
- type: "boolean",
1524
- defaultValue: !0,
1525
- description: "chart.option.showGrid.description"
1526
- },
1527
- {
1528
- key: "showTooltip",
1529
- label: "chart.option.showTooltip.label",
1530
- type: "boolean",
1531
- defaultValue: !0,
1532
- description: "chart.option.showTooltip.description"
1533
- }
1534
- ],
1807
+ icon: "chartRetention",
1535
1808
  description: "chart.retentionCombined.description",
1536
- useCase: "chart.retentionCombined.useCase"
1809
+ useCase: "chart.retentionCombined.useCase",
1810
+ config: async () => (await import("./RetentionCombinedChart.config-Dd8FuawP.js")).retentionCombinedConfig
1537
1811
  },
1538
1812
  boxPlot: {
1539
1813
  label: "chart.boxPlot.label",
1814
+ icon: "chartBoxPlot",
1540
1815
  description: "chart.boxPlot.description",
1541
1816
  useCase: "chart.boxPlot.useCase",
1542
- isAvailable: h,
1543
- displayOptions: ["hideHeader"],
1544
- dropZones: [{
1545
- key: "xAxis",
1546
- label: "chart.configText.x_axis_groups",
1547
- description: "chart.configText.dimension_to_group_boxes_by_e_g_symbol_platform",
1548
- mandatory: !0,
1549
- maxItems: 1,
1550
- acceptTypes: ["dimension", "timeDimension"],
1551
- emptyText: "chart.boxPlot.dropZone.xAxis.empty"
1552
- }, {
1553
- key: "yAxis",
1554
- label: "chart.configText.y_axis_measures",
1555
- description: "chart.configText.drop_1_measure_for_auto_mode_3_for_avg_stddev_median_mode_or_5_for_min_q",
1556
- mandatory: !0,
1557
- maxItems: 5,
1558
- acceptTypes: ["measure"],
1559
- emptyText: "chart.boxPlot.dropZone.yAxis.empty"
1560
- }],
1561
- displayOptionsConfig: [{
1562
- key: "leftYAxisFormat",
1563
- label: "chart.option.yAxisFormat.label",
1564
- type: "axisFormat",
1565
- description: "chart.configText.number_formatting_for_the_value_axis"
1566
- }]
1817
+ isAvailable: u,
1818
+ config: async () => (await import("./BoxPlotChart.config-CD9WEPyF.js")).boxPlotChartConfig
1567
1819
  },
1568
1820
  waterfall: {
1569
1821
  label: "chart.waterfall.label",
1822
+ icon: "chartWaterfall",
1570
1823
  description: "chart.waterfall.description",
1571
1824
  useCase: "chart.waterfall.useCase",
1572
- clickableElements: { bar: !0 },
1573
- isAvailable: h,
1574
- displayOptions: ["showTooltip", "hideHeader"],
1575
- dropZones: [{
1576
- key: "xAxis",
1577
- label: "chart.dropZone.xAxis.label",
1578
- description: "chart.configText.dimension_labels_for_each_bar_segment_e_g_symbol_transaction_type",
1579
- mandatory: !0,
1580
- maxItems: 1,
1581
- acceptTypes: ["dimension", "timeDimension"],
1582
- emptyText: "chart.waterfall.dropZone.xAxis.empty"
1583
- }, {
1584
- key: "yAxis",
1585
- label: "chart.configText.y_axis_value",
1586
- description: "chart.configText.single_measure_whose_values_are_summed_cumulatively",
1587
- mandatory: !0,
1588
- maxItems: 1,
1589
- acceptTypes: ["measure"],
1590
- emptyText: "chart.waterfall.dropZone.yAxis.empty"
1591
- }],
1592
- displayOptionsConfig: [
1593
- {
1594
- key: "showTotal",
1595
- label: "chart.option.showTotal.label",
1596
- type: "boolean",
1597
- defaultValue: !0,
1598
- description: "chart.option.showTotal.description"
1599
- },
1600
- {
1601
- key: "showConnectorLine",
1602
- label: "chart.option.showConnectorLine.label",
1603
- type: "boolean",
1604
- defaultValue: !0,
1605
- description: "chart.option.showConnectorLine.description"
1606
- },
1607
- {
1608
- key: "showDataLabels",
1609
- label: "chart.option.showDataLabels.label",
1610
- type: "boolean",
1611
- defaultValue: !1,
1612
- description: "chart.configText.display_the_value_above_each_bar_segment"
1613
- },
1614
- {
1615
- key: "leftYAxisFormat",
1616
- label: "chart.option.yAxisFormat.label",
1617
- type: "axisFormat",
1618
- description: "chart.configText.number_formatting_for_the_y_axis"
1619
- }
1620
- ]
1825
+ isAvailable: u,
1826
+ dependencies: q,
1827
+ config: async () => (await import("./WaterfallChart.config-XdtH-O5g.js")).waterfallChartConfig
1621
1828
  },
1622
1829
  candlestick: {
1623
1830
  label: "chart.candlestick.label",
1831
+ icon: "chartCandlestick",
1624
1832
  description: "chart.candlestick.description",
1625
1833
  useCase: "chart.candlestick.useCase",
1626
- clickableElements: { bar: !0 },
1627
- displayOptions: ["hideHeader"],
1628
1834
  isAvailable: ({ measureCount: e, dimensionCount: t }) => e < 2 ? {
1629
1835
  available: !1,
1630
1836
  reason: "chart.availability.requiresTwoMeasures"
@@ -1632,214 +1838,80 @@ var C = {
1632
1838
  available: !1,
1633
1839
  reason: "chart.availability.requiresDimension"
1634
1840
  } : { available: !0 },
1635
- dropZones: [{
1636
- key: "xAxis",
1637
- label: "chart.configText.x_axis_time_category",
1638
- description: "chart.configText.time_dimension_or_category_for_each_candle_e_g_date_symbol",
1639
- mandatory: !0,
1640
- maxItems: 1,
1641
- acceptTypes: ["timeDimension", "dimension"],
1642
- emptyText: "chart.candlestick.dropZone.xAxis.empty"
1643
- }, {
1644
- key: "yAxis",
1645
- label: "chart.configText.ohlc_measures_open_close_high_low",
1646
- description: "chart.configText.drop_2_4_measures_in_order_open_close_high_low_ohlc_mode_for_range_mode_",
1647
- mandatory: !0,
1648
- acceptTypes: ["measure"],
1649
- emptyText: "chart.candlestick.dropZone.yAxis.empty"
1650
- }],
1651
- displayOptionsConfig: [
1652
- {
1653
- key: "rangeMode",
1654
- label: "chart.option.rangeMode.label",
1655
- type: "select",
1656
- defaultValue: "ohlc",
1657
- options: [{
1658
- value: "ohlc",
1659
- label: "chart.option.rangeMode.ohlc"
1660
- }, {
1661
- value: "range",
1662
- label: "chart.option.rangeMode.range"
1663
- }],
1664
- description: "chart.option.rangeMode.description"
1665
- },
1666
- {
1667
- key: "bullColor",
1668
- label: "chart.option.bullColor.label",
1669
- type: "color",
1670
- defaultValue: "#22c55e",
1671
- description: "chart.option.bullColor.description"
1672
- },
1673
- {
1674
- key: "bearColor",
1675
- label: "chart.option.bearColor.label",
1676
- type: "color",
1677
- defaultValue: "#ef4444",
1678
- description: "chart.option.bearColor.description"
1679
- },
1680
- {
1681
- key: "showWicks",
1682
- label: "chart.option.showWicks.label",
1683
- type: "boolean",
1684
- defaultValue: !0,
1685
- description: "chart.option.showWicks.description"
1686
- },
1687
- {
1688
- key: "leftYAxisFormat",
1689
- label: "chart.option.yAxisFormat.label",
1690
- type: "axisFormat",
1691
- description: "chart.configText.number_formatting_for_the_price_axis"
1692
- }
1693
- ]
1841
+ config: async () => (await import("./CandlestickChart.config-fuhyFvob.js")).candlestickChartConfig
1694
1842
  },
1695
1843
  measureProfile: {
1696
1844
  label: "chart.measureProfile.label",
1845
+ icon: "chartMeasureProfile",
1697
1846
  description: "chart.measureProfile.description",
1698
1847
  useCase: "chart.measureProfile.useCase",
1699
- displayOptions: [
1700
- "showLegend",
1701
- "showTooltip",
1702
- "hideHeader"
1703
- ],
1704
1848
  isAvailable: ({ measureCount: e }) => e < 2 ? {
1705
1849
  available: !1,
1706
1850
  reason: "chart.availability.requiresTwoMeasures"
1707
1851
  } : { available: !0 },
1708
- dropZones: [{
1709
- key: "yAxis",
1710
- label: "chart.configText.measures_x_axis_order",
1711
- description: "chart.configText.add_2_or_more_measures_they_become_the_x_axis_categories_in_the_order_li",
1712
- mandatory: !0,
1713
- acceptTypes: ["measure"],
1714
- emptyText: "chart.measureProfile.dropZone.yAxis.empty"
1715
- }, {
1716
- key: "series",
1717
- label: "chart.configText.series_split_into_multiple_lines",
1718
- description: "chart.configText.dimension_to_split_data_into_separate_profile_lines_e_g_symbol_platform",
1719
- mandatory: !1,
1720
- maxItems: 1,
1721
- acceptTypes: ["dimension"],
1722
- emptyText: "chart.measureProfile.dropZone.series.empty"
1723
- }],
1724
- displayOptionsConfig: [
1725
- {
1726
- key: "showReferenceLineAtZero",
1727
- label: "chart.option.showReferenceLineAtZero.label",
1728
- type: "boolean",
1729
- defaultValue: !0,
1730
- description: "chart.option.showReferenceLineAtZero.description"
1731
- },
1732
- {
1733
- key: "showDataLabels",
1734
- label: "chart.option.showDataLabels.label",
1735
- type: "boolean",
1736
- defaultValue: !1,
1737
- description: "chart.configText.display_value_at_each_data_point"
1738
- },
1739
- {
1740
- key: "showLegend",
1741
- label: "chart.option.showLegend.label",
1742
- type: "boolean",
1743
- defaultValue: !0,
1744
- description: "chart.configText.show_series_legend_only_visible_with_a_series_dimension"
1745
- },
1746
- {
1747
- key: "lineType",
1748
- label: "chart.option.lineType.label",
1749
- type: "select",
1750
- defaultValue: "monotone",
1751
- options: [
1752
- {
1753
- value: "monotone",
1754
- label: "chart.option.lineType.smooth"
1755
- },
1756
- {
1757
- value: "linear",
1758
- label: "chart.option.lineType.linear"
1759
- },
1760
- {
1761
- value: "step",
1762
- label: "chart.option.lineType.step"
1763
- }
1764
- ],
1765
- description: "chart.option.lineType.description"
1766
- },
1767
- {
1768
- key: "leftYAxisFormat",
1769
- label: "chart.option.yAxisFormat.label",
1770
- type: "axisFormat",
1771
- description: "chart.configText.number_formatting_for_the_y_axis"
1772
- }
1773
- ]
1852
+ dependencies: q,
1853
+ config: async () => (await import("./MeasureProfileChart.config-C5d34lsc.js")).measureProfileChartConfig
1774
1854
  },
1775
1855
  gauge: {
1776
1856
  label: "chart.gauge.label",
1857
+ icon: "chartGauge",
1777
1858
  description: "chart.gauge.description",
1778
1859
  useCase: "chart.gauge.useCase",
1779
- clickableElements: {},
1780
- displayOptions: ["hideHeader"],
1781
- isAvailable: g,
1782
- dropZones: [{
1783
- key: "yAxis",
1784
- label: "chart.configText.value_measure",
1785
- description: "chart.configText.current_value_to_display_on_the_gauge_e_g_current_equity_margin_used",
1786
- mandatory: !0,
1787
- maxItems: 2,
1788
- acceptTypes: ["measure"],
1789
- emptyText: "chart.gauge.dropZone.yAxis.empty"
1790
- }],
1791
- displayOptionsConfig: [
1792
- {
1793
- key: "minValue",
1794
- label: "chart.option.minValue.label",
1795
- type: "number",
1796
- defaultValue: 0,
1797
- description: "chart.option.minValue.description"
1798
- },
1799
- {
1800
- key: "maxValue",
1801
- label: "chart.option.maxValue.label",
1802
- type: "number",
1803
- description: "chart.option.maxValue.description"
1804
- },
1805
- {
1806
- key: "thresholds",
1807
- label: "chart.configText.threshold_bands",
1808
- type: "string",
1809
- placeholder: "[{\"value\":0.33,\"color\":\"#22c55e\"},{\"value\":0.66,\"color\":\"#f59e0b\"},{\"value\":1,\"color\":\"#ef4444\"}]",
1810
- description: "chart.configText.array_of_value_0_1_fraction_color_bands_shown_as_outer_arc_markers"
1811
- },
1812
- {
1813
- key: "showCenterLabel",
1814
- label: "chart.option.showCentreLabel.label",
1815
- type: "boolean",
1816
- defaultValue: !0,
1817
- description: "chart.option.showCentreLabel.description"
1818
- },
1819
- {
1820
- key: "showPercentage",
1821
- label: "chart.option.showPercentage.label",
1822
- type: "boolean",
1823
- defaultValue: !1,
1824
- description: "chart.option.showPercentage.description"
1825
- },
1826
- {
1827
- key: "leftYAxisFormat",
1828
- label: "chart.option.valueFormat.label",
1829
- type: "axisFormat",
1830
- description: "chart.configText.number_formatting_for_the_displayed_value_and_axis_labels"
1831
- }
1832
- ]
1860
+ isAvailable: p,
1861
+ dependencies: {
1862
+ packageName: "d3-shape",
1863
+ installCommand: "npm install d3-shape"
1864
+ },
1865
+ config: async () => (await import("./GaugeChart.config-CgwniXkd.js")).gaugeChartConfig
1833
1866
  }
1834
1867
  };
1868
+ function re(e, t) {
1869
+ return {
1870
+ ...t,
1871
+ label: e.label,
1872
+ description: e.description,
1873
+ useCase: e.useCase,
1874
+ isAvailable: e.isAvailable
1875
+ };
1876
+ }
1877
+ //#endregion
1878
+ //#region src/client/charts/chartConfigRegistry.ts
1879
+ var ie = {
1880
+ bar: S,
1881
+ line: C,
1882
+ area: te,
1883
+ pie: w,
1884
+ scatter: T,
1885
+ bubble: E,
1886
+ radar: D,
1887
+ radialBar: O,
1888
+ treemap: k,
1889
+ table: A,
1890
+ activityGrid: j,
1891
+ kpiNumber: M,
1892
+ kpiDelta: N,
1893
+ kpiText: P,
1894
+ markdown: F,
1895
+ funnel: I,
1896
+ sankey: L,
1897
+ sunburst: R,
1898
+ heatmap: z,
1899
+ retentionHeatmap: B,
1900
+ retentionCombined: V,
1901
+ boxPlot: H,
1902
+ waterfall: U,
1903
+ candlestick: W,
1904
+ measureProfile: G,
1905
+ gauge: K
1906
+ }, J = Object.fromEntries(Object.keys(ne).map((e) => [e, re(ne[e], ie[e])]));
1835
1907
  //#endregion
1836
1908
  //#region src/server/agent/chart-validation.ts
1837
- function w(e) {
1909
+ function Y(e) {
1838
1910
  return Array.isArray(e) ? e.length > 0 : !!e;
1839
1911
  }
1840
- function T(t, n, r, i) {
1912
+ function ae(t, n, r, i) {
1841
1913
  for (let a of t.dropZones) {
1842
- if (!a.mandatory || w(r?.[a.key])) continue;
1914
+ if (!a.mandatory || Y(r?.[a.key])) continue;
1843
1915
  let t = a.acceptTypes?.join("/") ?? "fields";
1844
1916
  i.push(e("server.validation.chart.dropZoneRequired", {
1845
1917
  key: a.key,
@@ -1849,32 +1921,32 @@ function T(t, n, r, i) {
1849
1921
  }));
1850
1922
  }
1851
1923
  }
1852
- function E(t, n, r) {
1853
- if (w(t?.xAxis)) return;
1924
+ function oe(t, n, r) {
1925
+ if (Y(t?.xAxis)) return;
1854
1926
  let i = n.dimensions ?? [], a = n.timeDimensions ?? [], o = i.length > 0 || a.length > 0;
1855
1927
  r.push(e(o ? "server.validation.chart.barXAxisRequired" : "server.validation.chart.barNeedsDimension"));
1856
1928
  }
1857
- function D(e) {
1929
+ function X(e) {
1858
1930
  return Array.isArray(e) ? e : [e];
1859
1931
  }
1860
- function O(t, n) {
1932
+ function se(t, n) {
1861
1933
  if (!t?.xAxis || !t?.series) return;
1862
- let r = new Set(D(t.xAxis)), i = D(t.series).filter((e) => r.has(e));
1934
+ let r = new Set(X(t.xAxis)), i = X(t.series).filter((e) => r.has(e));
1863
1935
  i.length > 0 && n.push(e("server.validation.chart.seriesDuplicatesXAxis", { duplicates: i.join(", ") }));
1864
1936
  }
1865
- function k(e, t, n) {
1866
- let r = C[e];
1937
+ function ce(e, t, n) {
1938
+ let r = J[e];
1867
1939
  if (!r || r.skipQuery) return {
1868
1940
  isValid: !0,
1869
1941
  errors: []
1870
1942
  };
1871
1943
  let i = [];
1872
- return T(r, e, t, i), e === "bar" && E(t, n, i), O(t, i), {
1944
+ return ae(r, e, t, i), e === "bar" && oe(t, n, i), se(t, i), {
1873
1945
  isValid: i.length === 0,
1874
1946
  errors: i
1875
1947
  };
1876
1948
  }
1877
- function A(e, t, n, r) {
1949
+ function le(e, t, n, r) {
1878
1950
  if (!(e.acceptTypes ?? []).includes("measure")) return;
1879
1951
  let i = /* @__PURE__ */ new Set();
1880
1952
  for (let r of t.dropZones) {
@@ -1885,7 +1957,7 @@ function A(e, t, n, r) {
1885
1957
  let a = r.filter((e) => !i.has(e));
1886
1958
  a.length > 0 && (n[e.key] = a[0]);
1887
1959
  }
1888
- function j(e, t, n) {
1960
+ function ue(e, t, n) {
1889
1961
  let r = e.acceptTypes ?? [], i = [];
1890
1962
  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;
1891
1963
  let a = i;
@@ -1896,21 +1968,21 @@ function j(e, t, n) {
1896
1968
  let o = e.maxItems ?? Infinity, s = a.slice(0, o);
1897
1969
  s.length > 0 && (t[e.key] = s);
1898
1970
  }
1899
- function M(e, t, n) {
1900
- let r = C[e];
1971
+ function de(e, t, n) {
1972
+ let r = J[e];
1901
1973
  if (!r) return t ?? {};
1902
1974
  let i = { ...t }, a = n.timeDimensions ?? [], o = {
1903
1975
  measures: n.measures ?? [],
1904
1976
  dimensions: n.dimensions ?? [],
1905
1977
  timeDimFields: a.map((e) => e.dimension)
1906
1978
  };
1907
- for (let e of r.dropZones) w(i[e.key]) || (e.key === "sizeField" || e.key === "colorField" ? A(e, r, i, o.measures) : j(e, i, o));
1979
+ for (let e of r.dropZones) Y(i[e.key]) || (e.key === "sizeField" || e.key === "colorField" ? le(e, r, i, o.measures) : ue(e, i, o));
1908
1980
  return i;
1909
1981
  }
1910
- function N(e) {
1982
+ function fe(e) {
1911
1983
  let t = ["\nChart config requirements by type:"];
1912
1984
  for (let n of e) {
1913
- let e = C[n];
1985
+ let e = J[n];
1914
1986
  if (!e) continue;
1915
1987
  let r = [e.description ?? "", e.useCase ?? ""].filter(Boolean).join(". "), i = r ? ` — ${r}.` : "", a = e.dropZones.filter((e) => e.mandatory);
1916
1988
  if (a.length === 0 && !e.skipQuery) {
@@ -1931,7 +2003,7 @@ function N(e) {
1931
2003
  }
1932
2004
  //#endregion
1933
2005
  //#region src/server/agent/tools.ts
1934
- var P = [
2006
+ var Z = [
1935
2007
  "bar",
1936
2008
  "line",
1937
2009
  "area",
@@ -1951,7 +2023,7 @@ var P = [
1951
2023
  "boxPlot",
1952
2024
  "markdown"
1953
2025
  ];
1954
- function F() {
2026
+ function pe() {
1955
2027
  return [
1956
2028
  {
1957
2029
  name: "discover_cubes",
@@ -1996,7 +2068,7 @@ function F() {
1996
2068
  },
1997
2069
  {
1998
2070
  name: "add_portlet",
1999
- description: "Add a chart visualization to the notebook.\n" + N(P) + "\nThe query is validated before adding. The portlet fetches its own data.",
2071
+ description: "Add a chart visualization to the notebook.\n" + fe(Z) + "\nThe query is validated before adding. The portlet fetches its own data.",
2000
2072
  parameters: {
2001
2073
  type: "object",
2002
2074
  properties: {
@@ -2010,7 +2082,7 @@ function F() {
2010
2082
  },
2011
2083
  chartType: {
2012
2084
  type: "string",
2013
- enum: P,
2085
+ enum: Z,
2014
2086
  description: "Chart type to render"
2015
2087
  },
2016
2088
  chartConfig: {
@@ -2106,7 +2178,7 @@ function F() {
2106
2178
  },
2107
2179
  chartType: {
2108
2180
  type: "string",
2109
- enum: P,
2181
+ enum: Z,
2110
2182
  description: "Chart type. Use \"markdown\" for section headers."
2111
2183
  },
2112
2184
  query: {
@@ -2243,7 +2315,7 @@ function F() {
2243
2315
  }
2244
2316
  ];
2245
2317
  }
2246
- function I(e) {
2318
+ function me(e) {
2247
2319
  let { semanticLayer: t, securityContext: n } = e, o = /* @__PURE__ */ new Map();
2248
2320
  o.set("discover_cubes", async (e) => {
2249
2321
  let n = { cubes: (await a(t, {
@@ -2348,7 +2420,7 @@ function I(e) {
2348
2420
  let o = !!(i.funnel || i.flow || i.retention), s;
2349
2421
  if (o) s = e.chartConfig ?? {};
2350
2422
  else {
2351
- let t = M(n, e.chartConfig, i), r = k(n, t, i);
2423
+ let t = de(n, e.chartConfig, i), r = ce(n, t, i);
2352
2424
  if (!r.isValid) return {
2353
2425
  result: `Chart config invalid — fix these errors and retry:\n${r.errors.join("\n")}`,
2354
2426
  isError: !0
@@ -2467,14 +2539,14 @@ function I(e) {
2467
2539
  }
2468
2540
  //#endregion
2469
2541
  //#region src/server/agent/providers/factory.ts
2470
- async function L(e, t, n) {
2542
+ async function he(e, t, n) {
2471
2543
  switch (e) {
2472
2544
  case "anthropic": {
2473
2545
  let { AnthropicProvider: e } = await import("./anthropic-CZh4hB-m.js");
2474
2546
  return new e(t);
2475
2547
  }
2476
2548
  case "openai": {
2477
- let { OpenAIProvider: e } = await import("./openai-CtXqeznO.js");
2549
+ let { OpenAIProvider: e } = await import("./openai-DhzGY9R4.js");
2478
2550
  return new e(t, n);
2479
2551
  }
2480
2552
  case "google": {
@@ -2486,16 +2558,16 @@ async function L(e, t, n) {
2486
2558
  }
2487
2559
  //#endregion
2488
2560
  //#region src/server/agent/handler-steps.ts
2489
- function R(e, t) {
2561
+ function Q(e, t) {
2490
2562
  if (Array.isArray(t)) for (let n of t) e.push(n);
2491
2563
  else e.push(t);
2492
2564
  }
2493
- function z(e) {
2565
+ function $(e) {
2494
2566
  if (e) try {
2495
2567
  e();
2496
2568
  } catch {}
2497
2569
  }
2498
- function B(e, t) {
2570
+ function ge(e, t) {
2499
2571
  let n = [];
2500
2572
  if (!e || e.length === 0) return n;
2501
2573
  for (let r of e) {
@@ -2528,7 +2600,7 @@ function B(e, t) {
2528
2600
  content: typeof e.result == "string" ? e.result : JSON.stringify(e.result ?? ""),
2529
2601
  isError: e.status === "error"
2530
2602
  }));
2531
- R(n, t.formatToolResults(i));
2603
+ Q(n, t.formatToolResults(i));
2532
2604
  } else e.length > 0 && n.push({
2533
2605
  role: "assistant",
2534
2606
  content: r.content
@@ -2536,21 +2608,21 @@ function B(e, t) {
2536
2608
  }
2537
2609
  return n;
2538
2610
  }
2539
- function V(e, t) {
2611
+ function _e(e, t) {
2540
2612
  if (!(e?.type !== "tool_use" || !t)) try {
2541
2613
  e.input = JSON.parse(t);
2542
2614
  } catch {
2543
2615
  e.input = {};
2544
2616
  }
2545
2617
  }
2546
- function H(e, t) {
2618
+ function ve(e, t) {
2547
2619
  let n = e.contentBlocks[e.contentBlocks.length - 1];
2548
2620
  n && n.type === "text" ? n.text = (n.text || "") + t : e.contentBlocks.push({
2549
2621
  type: "text",
2550
2622
  text: t
2551
2623
  });
2552
2624
  }
2553
- function U(e, t) {
2625
+ function ye(e, t) {
2554
2626
  if (e.currentBlockIsToolUse && e.currentToolInputJson) {
2555
2627
  let t = e.contentBlocks[e.contentBlocks.length - 1];
2556
2628
  if (t?.type === "tool_use") try {
@@ -2565,16 +2637,16 @@ function U(e, t) {
2565
2637
  ...t.metadata ? { metadata: t.metadata } : {}
2566
2638
  }), e.currentToolInputJson = "", e.currentBlockIsToolUse = !0;
2567
2639
  }
2568
- function W(e, t) {
2640
+ function be(e, t) {
2569
2641
  if (t.id && t.input) {
2570
2642
  let n = e.contentBlocks.find((e) => e.type === "tool_use" && e.id === t.id);
2571
2643
  n && (n.input = t.input);
2572
2644
  } else if (e.currentBlockIsToolUse) {
2573
2645
  let t = e.contentBlocks[e.contentBlocks.length - 1];
2574
- t?.type === "tool_use" && e.currentToolInputJson && (V(t, e.currentToolInputJson), e.currentToolInputJson = ""), e.currentBlockIsToolUse = !1;
2646
+ t?.type === "tool_use" && e.currentToolInputJson && (_e(t, e.currentToolInputJson), e.currentToolInputJson = ""), e.currentBlockIsToolUse = !1;
2575
2647
  }
2576
2648
  }
2577
- async function* G(e, t) {
2649
+ async function* xe(e, t) {
2578
2650
  let n = {
2579
2651
  contentBlocks: [],
2580
2652
  currentToolInputJson: "",
@@ -2585,13 +2657,13 @@ async function* G(e, t) {
2585
2657
  let e = r;
2586
2658
  switch (e.type) {
2587
2659
  case "text_delta":
2588
- H(n, e.text), yield {
2660
+ ve(n, e.text), yield {
2589
2661
  type: "text_delta",
2590
2662
  data: e.text
2591
2663
  };
2592
2664
  break;
2593
2665
  case "tool_use_start":
2594
- U(n, e), yield {
2666
+ ye(n, e), yield {
2595
2667
  type: "tool_use_start",
2596
2668
  data: {
2597
2669
  id: e.id,
@@ -2604,7 +2676,7 @@ async function* G(e, t) {
2604
2676
  n.currentToolInputJson += e.json;
2605
2677
  break;
2606
2678
  case "tool_use_end":
2607
- W(n, e);
2679
+ be(n, e);
2608
2680
  break;
2609
2681
  case "message_meta":
2610
2682
  e.inputTokens != null && (n.inputTokens = e.inputTokens), e.outputTokens != null && (n.outputTokens = e.outputTokens), e.stopReason && (n.stopReason = e.stopReason);
@@ -2618,7 +2690,7 @@ async function* G(e, t) {
2618
2690
  outputTokens: n.outputTokens
2619
2691
  };
2620
2692
  }
2621
- async function* K(e, t) {
2693
+ async function* Se(e, t) {
2622
2694
  let { executor: n, observability: r, traceId: i, turn: a } = t, o = e.name, s = e.input || {}, c = e.id, l = n.get(o);
2623
2695
  if (!l) return yield {
2624
2696
  type: "tool_use_result",
@@ -2645,7 +2717,7 @@ async function* K(e, t) {
2645
2717
  result: e.result,
2646
2718
  ...e.isError ? { isError: !0 } : {}
2647
2719
  }
2648
- }, z(() => r?.onToolEnd?.({
2720
+ }, $(() => r?.onToolEnd?.({
2649
2721
  traceId: i,
2650
2722
  turn: a,
2651
2723
  toolName: o,
@@ -2668,7 +2740,7 @@ async function* K(e, t) {
2668
2740
  result: t,
2669
2741
  isError: !0
2670
2742
  }
2671
- }, z(() => r?.onToolEnd?.({
2743
+ }, $(() => r?.onToolEnd?.({
2672
2744
  traceId: i,
2673
2745
  turn: a,
2674
2746
  toolName: o,
@@ -2683,26 +2755,26 @@ async function* K(e, t) {
2683
2755
  };
2684
2756
  }
2685
2757
  }
2686
- async function* q(e, t) {
2758
+ async function* Ce(e, t) {
2687
2759
  let n = [];
2688
2760
  for (let r of e) {
2689
2761
  if (r.type !== "tool_use") continue;
2690
- let e = yield* K(r, t);
2762
+ let e = yield* Se(r, t);
2691
2763
  n.push(e);
2692
2764
  }
2693
2765
  return n;
2694
2766
  }
2695
2767
  //#endregion
2696
2768
  //#region src/server/agent/handler.ts
2697
- var J = {
2769
+ var we = {
2698
2770
  anthropic: "claude-sonnet-4-6",
2699
2771
  openai: "gpt-4.1-mini",
2700
2772
  google: "gemini-3-flash-preview"
2701
2773
  };
2702
- async function* Y(t) {
2703
- let { message: n, history: r, semanticLayer: i, securityContext: a, agentConfig: o, apiKey: s } = t, c = t.sessionId || crypto.randomUUID(), l = o.observability, u = crypto.randomUUID(), d = Date.now(), f = t.providerOverride || o.provider || "anthropic", p = t.modelOverride || o.model || J[f] || "claude-sonnet-4-6", h = t.baseURLOverride || o.baseURL, g = o.maxTurns || 25, _ = o.maxTokens || 4096, v;
2774
+ async function* Te(t) {
2775
+ let { message: n, history: r, semanticLayer: i, securityContext: a, agentConfig: o, apiKey: s } = t, c = t.sessionId || crypto.randomUUID(), l = o.observability, u = crypto.randomUUID(), d = Date.now(), f = t.providerOverride || o.provider || "anthropic", p = t.modelOverride || o.model || we[f] || "claude-sonnet-4-6", m = t.baseURLOverride || o.baseURL, h = o.maxTurns || 25, g = o.maxTokens || 4096, _;
2704
2776
  try {
2705
- v = await L(f, s, { baseURL: h });
2777
+ _ = await he(f, s, { baseURL: m });
2706
2778
  } catch (t) {
2707
2779
  console.error("[agent] Failed to create %s provider: %s", String(f).replace(/\n|\r/g, ""), String(t instanceof Error ? t.message : t).replace(/\n|\r/g, "")), yield {
2708
2780
  type: "error",
@@ -2710,34 +2782,34 @@ async function* Y(t) {
2710
2782
  };
2711
2783
  return;
2712
2784
  }
2713
- let y = F(), b = I({
2785
+ let v = pe(), y = me({
2714
2786
  semanticLayer: i,
2715
2787
  securityContext: a
2716
- }), x = m(i.getMetadata());
2717
- t.systemContext && (x += `\n\n## User Context\n\n${t.systemContext}`), z(() => l?.onChatStart?.({
2788
+ }), b = ee(i.getMetadata());
2789
+ t.systemContext && (b += `\n\n## User Context\n\n${t.systemContext}`), $(() => l?.onChatStart?.({
2718
2790
  traceId: u,
2719
2791
  sessionId: c,
2720
2792
  message: n,
2721
2793
  model: p,
2722
2794
  historyLength: r?.length ?? 0
2723
2795
  }));
2724
- let S = B(r, v);
2725
- S.push({
2796
+ let x = ge(r, _);
2797
+ x.push({
2726
2798
  role: "user",
2727
2799
  content: n
2728
2800
  });
2729
- let C = 0;
2801
+ let S = 0;
2730
2802
  try {
2731
- for (let e = 0; e < g; e++) {
2732
- C = e + 1;
2733
- let t = await v.createStream({
2803
+ for (let e = 0; e < h; e++) {
2804
+ S = e + 1;
2805
+ let t = await _.createStream({
2734
2806
  model: p,
2735
- maxTokens: _,
2736
- system: x,
2737
- tools: y,
2738
- messages: S
2739
- }), n = Date.now(), { contentBlocks: r, stopReason: i, inputTokens: a, outputTokens: o } = yield* G(v, t);
2740
- if (z(() => l?.onGenerationEnd?.({
2807
+ maxTokens: g,
2808
+ system: b,
2809
+ tools: v,
2810
+ messages: x
2811
+ }), n = Date.now(), { contentBlocks: r, stopReason: i, inputTokens: a, outputTokens: o } = yield* xe(_, t);
2812
+ if ($(() => l?.onGenerationEnd?.({
2741
2813
  traceId: u,
2742
2814
  turn: e,
2743
2815
  model: p,
@@ -2745,14 +2817,14 @@ async function* Y(t) {
2745
2817
  inputTokens: a,
2746
2818
  outputTokens: o,
2747
2819
  durationMs: Date.now() - n,
2748
- input: S,
2820
+ input: x,
2749
2821
  output: r
2750
- })), S.push({
2822
+ })), x.push({
2751
2823
  role: "assistant",
2752
2824
  content: r
2753
- }), !v.shouldContinue(i)) break;
2754
- let s = yield* q(r, {
2755
- executor: b,
2825
+ }), !_.shouldContinue(i)) break;
2826
+ let s = yield* Ce(r, {
2827
+ executor: y,
2756
2828
  observability: l,
2757
2829
  traceId: u,
2758
2830
  turn: e
@@ -2760,12 +2832,12 @@ async function* Y(t) {
2760
2832
  yield {
2761
2833
  type: "turn_complete",
2762
2834
  data: {}
2763
- }, R(S, v.formatToolResults(s));
2835
+ }, Q(x, _.formatToolResults(s));
2764
2836
  }
2765
- z(() => l?.onChatEnd?.({
2837
+ $(() => l?.onChatEnd?.({
2766
2838
  traceId: u,
2767
2839
  sessionId: c,
2768
- totalTurns: C,
2840
+ totalTurns: S,
2769
2841
  durationMs: Date.now() - d
2770
2842
  })), yield {
2771
2843
  type: "done",
@@ -2786,9 +2858,9 @@ async function* Y(t) {
2786
2858
  } catch {}
2787
2859
  console.error("[agent] Chat error (provider=%s, model=%s): %s", String(f).replace(/\n|\r/g, ""), String(p).replace(/\n|\r/g, ""), String(e instanceof Error ? e.message : e).replace(/\n|\r/g, "")), yield {
2788
2860
  type: "error",
2789
- data: { message: v.formatError(e) }
2861
+ data: { message: _.formatError(e) }
2790
2862
  };
2791
2863
  }
2792
2864
  }
2793
2865
  //#endregion
2794
- export { Y as handleAgentChat };
2866
+ export { w as C, S as E, T as S, C as T, A as _, H as a, D as b, z as c, I as d, F as f, j as g, M as h, Te as handleAgentChat, U as i, R as l, N as m, G as n, V as o, P as p, W as r, B as s, K as t, L as u, k as v, te as w, E as x, O as y };