drizzle-cube 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (338) hide show
  1. package/dist/adapters/ActivityGridChart.config-BlZclX_9.js +1 -0
  2. package/dist/adapters/ActivityGridChart.config-D2v_XyY0.cjs +1 -0
  3. package/dist/adapters/AreaChart.config-2uBmxi1-.js +1 -0
  4. package/dist/adapters/AreaChart.config-CSusw7MI.cjs +1 -0
  5. package/dist/adapters/BarChart.config-CEs8zlOd.js +1 -0
  6. package/dist/adapters/BarChart.config-DDokCRL0.cjs +1 -0
  7. package/dist/adapters/BoxPlotChart.config-DGkPSj3b.js +1 -0
  8. package/dist/adapters/BoxPlotChart.config-DNAAV5ds.cjs +1 -0
  9. package/dist/adapters/BubbleChart.config-Cj2A1IL9.cjs +1 -0
  10. package/dist/adapters/BubbleChart.config-Hp4hDwos.js +1 -0
  11. package/dist/adapters/CandlestickChart.config-BfL2kxsO.js +1 -0
  12. package/dist/adapters/CandlestickChart.config-CyzAcJb2.cjs +1 -0
  13. package/dist/adapters/DataTable.config-D9Ug46tb.cjs +1 -0
  14. package/dist/adapters/DataTable.config-r5Fa9uae.js +1 -0
  15. package/dist/adapters/DotStripChart.config-BTqmxVm2.js +1 -0
  16. package/dist/adapters/DotStripChart.config-Bu0J9BYY.cjs +1 -0
  17. package/dist/adapters/FunnelChart.config-BedIayLz.cjs +1 -0
  18. package/dist/adapters/FunnelChart.config-dT9ymf6H.js +1 -0
  19. package/dist/adapters/GaugeChart.config-DJy3xApn.cjs +1 -0
  20. package/dist/adapters/GaugeChart.config-DZRniX9X.js +1 -0
  21. package/dist/adapters/HeatMapChart.config-AUCbOuee.cjs +1 -0
  22. package/dist/adapters/HeatMapChart.config-CCX0y6Nu.js +1 -0
  23. package/dist/adapters/KpiDelta.config-1fGFn_si.cjs +1 -0
  24. package/dist/adapters/KpiDelta.config-CMiZaD_K.js +1 -0
  25. package/dist/adapters/KpiNumber.config-CUXAwnLQ.js +1 -0
  26. package/dist/adapters/KpiNumber.config-jCFoR8UV.cjs +1 -0
  27. package/dist/adapters/KpiText.config-B6JsJGlt.js +1 -0
  28. package/dist/adapters/KpiText.config-T5Tk8B93.cjs +1 -0
  29. package/dist/adapters/LineChart.config-BDAVOwzV.js +1 -0
  30. package/dist/adapters/LineChart.config-rVRUAwRc.cjs +1 -0
  31. package/dist/adapters/MarkdownChart.config-C1N51S30.cjs +1 -0
  32. package/dist/adapters/MarkdownChart.config-DcILjPyK.js +1 -0
  33. package/dist/adapters/MeasureProfileChart.config-D6TDwz3r.js +1 -0
  34. package/dist/adapters/MeasureProfileChart.config-fMvKKyHq.cjs +1 -0
  35. package/dist/adapters/PieChart.config-Dlv0S8-5.cjs +1 -0
  36. package/dist/adapters/PieChart.config-L1EEHJAB.js +1 -0
  37. package/dist/adapters/ProportionBarChart.config-CaXGpruG.js +1 -0
  38. package/dist/adapters/ProportionBarChart.config-DGhKCGYw.cjs +1 -0
  39. package/dist/adapters/RadarChart.config-BIJ84MZl.cjs +1 -0
  40. package/dist/adapters/RadarChart.config-NJDXWxTM.js +1 -0
  41. package/dist/adapters/RadialBarChart.config-C2AX5IRD.js +1 -0
  42. package/dist/adapters/RadialBarChart.config-D_Dk3f-2.cjs +1 -0
  43. package/dist/adapters/RecordsTable.config-C0YqdTyB.cjs +1 -0
  44. package/dist/adapters/RecordsTable.config-CyYJtLoq.js +1 -0
  45. package/dist/adapters/RetentionCombinedChart.config-6_vW_fo0.cjs +1 -0
  46. package/dist/adapters/RetentionCombinedChart.config-Cth5Fvoh.js +1 -0
  47. package/dist/adapters/RetentionHeatmap.config-DDL2t7qk.cjs +1 -0
  48. package/dist/adapters/RetentionHeatmap.config-O4e7Heos.js +1 -0
  49. package/dist/adapters/SankeyChart.config-D36FHKUf.js +1 -0
  50. package/dist/adapters/SankeyChart.config-DWn_Gidq.cjs +1 -0
  51. package/dist/adapters/ScatterChart.config-CkUpXGjq.cjs +1 -0
  52. package/dist/adapters/ScatterChart.config-DHHhm4K7.js +1 -0
  53. package/dist/adapters/SunburstChart.config-CDqzb5xW.cjs +1 -0
  54. package/dist/adapters/SunburstChart.config-Dxh57sv_.js +1 -0
  55. package/dist/adapters/TreeMapChart.config--RHay3WA.js +1 -0
  56. package/dist/adapters/TreeMapChart.config-BcJ0H_xg.cjs +1 -0
  57. package/dist/adapters/WaterfallChart.config-DKscCBNm.cjs +1 -0
  58. package/dist/adapters/WaterfallChart.config-gDygj8Ko.js +1 -0
  59. package/dist/adapters/core/index.cjs +1 -1
  60. package/dist/adapters/core/index.js +1 -1
  61. package/dist/adapters/{core-Bb61BBaY.cjs → core-YfzziyUf.cjs} +1 -1
  62. package/dist/adapters/{core-DEn53hp7.js → core-wxT6B2Cm.js} +2 -2
  63. package/dist/adapters/{cors-headers--zwd9Fnx.js → cors-headers-BeWxPGlM.js} +1 -1
  64. package/dist/adapters/{cors-headers-BOUMJEnB.cjs → cors-headers-CEdKM8L_.cjs} +1 -1
  65. package/dist/adapters/express/index.cjs +1 -1
  66. package/dist/adapters/express/index.js +5 -5
  67. package/dist/adapters/fastify/index.cjs +1 -1
  68. package/dist/adapters/fastify/index.js +5 -5
  69. package/dist/adapters/{handler-CQhqvHnT.cjs → handler-Ch9YaC4G.cjs} +3 -3
  70. package/dist/adapters/{handler-CREhpjLZ.js → handler-rUTCH36J.js} +32 -32
  71. package/dist/adapters/hono/index.cjs +1 -1
  72. package/dist/adapters/hono/index.js +4 -4
  73. package/dist/adapters/mcp-app-html.cjs +1 -1
  74. package/dist/adapters/mcp-app-html.js +1 -1
  75. package/dist/adapters/mcp-tools.cjs +1 -1
  76. package/dist/adapters/mcp-tools.js +2 -2
  77. package/dist/adapters/{mcp-transport-PEmdNS4r.cjs → mcp-transport-CDSbAnfH.cjs} +1 -1
  78. package/dist/adapters/{mcp-transport-_oHCd2rj.js → mcp-transport-DCyksRMv.js} +1 -1
  79. package/dist/adapters/nextjs/index.cjs +1 -1
  80. package/dist/adapters/nextjs/index.js +5 -5
  81. package/dist/adapters/{openai-CaxTRQ32.js → openai-B9CJ0Gw3.js} +1 -1
  82. package/dist/adapters/{openai-DQNzLnj1.cjs → openai-CPTovs2d.cjs} +1 -1
  83. package/dist/adapters/{openai-BgICnFmA.cjs → openai-CrNRNE9c.cjs} +1 -1
  84. package/dist/adapters/{openai-lRcjN8pG.js → openai-mmY4YK81.js} +1 -1
  85. package/dist/adapters/utils-D0jq702C.cjs +141 -0
  86. package/dist/adapters/{utils-ClqFyZ-5.js → utils-wjO1gfkH.js} +2 -0
  87. package/dist/adapters/utils.cjs +1 -1
  88. package/dist/adapters/utils.js +1 -1
  89. package/dist/cjs/client/charts/chartConfigs.d.ts +12 -0
  90. package/dist/cjs/client/charts.d.ts +1 -1
  91. package/dist/cjs/client/components/AnalysisBuilder/AnalysisResultsHeader.d.ts +2 -0
  92. package/dist/cjs/client/components/DashboardPortletCard.d.ts +1 -1
  93. package/dist/cjs/client/components/RowManagedLayout.d.ts +3 -1
  94. package/dist/cjs/client/components/analyticsPortlet/PortletChart.d.ts +5 -1
  95. package/dist/cjs/client/components/analyticsPortlet/PortletChartView.d.ts +5 -1
  96. package/dist/cjs/client/components/analyticsPortlet/PortletStates.d.ts +9 -1
  97. package/dist/cjs/client/components/analyticsPortlet/portletRenderState.d.ts +7 -1
  98. package/dist/cjs/client/components/charts/MarkdownChart.d.ts +1 -1
  99. package/dist/cjs/client/components/charts/markdownDisclosure.d.ts +14 -0
  100. package/dist/cjs/client/components/dashboardPortletCard/PortletCardHeader.d.ts +1 -0
  101. package/dist/cjs/client/components/dashboardPortletCard/PortletFloatingActions.d.ts +1 -0
  102. package/dist/cjs/client/components/dashboardPortletCard/cardStyles.d.ts +2 -0
  103. package/dist/cjs/client/components/dashboardPortletCard/propsEqual.d.ts +2 -0
  104. package/dist/cjs/client/components/dashboardPortletCard/usePortletCardActions.d.ts +4 -1
  105. package/dist/cjs/client/hooks/dashboard/layoutUtils.d.ts +11 -0
  106. package/dist/cjs/client/hooks/useAnalysisQuery.d.ts +6 -0
  107. package/dist/cjs/client/icons/registry.d.ts +3 -1
  108. package/dist/cjs/client/index.d.ts +2 -2
  109. package/dist/cjs/client/types.d.ts +28 -0
  110. package/dist/cjs/client/utils/exportXlsx.d.ts +7 -0
  111. package/dist/cjs/client/utils/index.d.ts +1 -1
  112. package/dist/client/charts/chartConfigs.d.ts +12 -0
  113. package/dist/client/charts.d.ts +1 -1
  114. package/dist/client/charts.js +12 -12
  115. package/dist/client/chunks/{ActivityGridChart-t6JS9q1q.js → ActivityGridChart-sfYPWaLI.js} +2 -2
  116. package/dist/client/chunks/{ActivityGridChart-t6JS9q1q.js.map → ActivityGridChart-sfYPWaLI.js.map} +1 -1
  117. package/dist/client/chunks/{BubbleChart-E0IoByRb.js → BubbleChart-BgsVoVgO.js} +3 -5
  118. package/dist/client/chunks/BubbleChart-BgsVoVgO.js.map +1 -0
  119. package/dist/client/chunks/{ChartStates-BMRzDVW2.js → ChartStates-CrNiZI5S.js} +2 -2
  120. package/dist/client/chunks/{ChartStates-BMRzDVW2.js.map → ChartStates-CrNiZI5S.js.map} +1 -1
  121. package/dist/client/chunks/{ChartSummaryHeader-CIVTb1NC.js → ChartSummaryHeader-DO6M92dC.js} +2 -2
  122. package/dist/client/chunks/{ChartSummaryHeader-CIVTb1NC.js.map → ChartSummaryHeader-DO6M92dC.js.map} +1 -1
  123. package/dist/client/chunks/{DashboardEditModal-Fx3EXgIk.js → DashboardEditModal-CnQ2NR2Q.js} +1810 -1733
  124. package/dist/client/chunks/DashboardEditModal-CnQ2NR2Q.js.map +1 -0
  125. package/dist/client/chunks/{DataHistogram-omihvcZL.js → DataHistogram-CHFy7ztz.js} +2 -2
  126. package/dist/client/chunks/{DataHistogram-omihvcZL.js.map → DataHistogram-CHFy7ztz.js.map} +1 -1
  127. package/dist/client/chunks/{DotStripChart-iVRVliSr.js → DotStripChart-Bz5IC3Q1.js} +4 -4
  128. package/dist/client/chunks/{DotStripChart-iVRVliSr.js.map → DotStripChart-Bz5IC3Q1.js.map} +1 -1
  129. package/dist/client/chunks/{FunnelViews-C7joNDMs.js → FunnelViews-BLHRyHAU.js} +2 -2
  130. package/dist/client/chunks/{FunnelViews-C7joNDMs.js.map → FunnelViews-BLHRyHAU.js.map} +1 -1
  131. package/dist/client/chunks/{HeatMapChart-nPiSSTET.js → HeatMapChart-JjUF0zDX.js} +3 -3
  132. package/dist/client/chunks/{HeatMapChart-nPiSSTET.js.map → HeatMapChart-JjUF0zDX.js.map} +1 -1
  133. package/dist/client/chunks/{KpiDelta-5bl1vkTe.js → KpiDelta-B6SN3viX.js} +2 -2
  134. package/dist/client/chunks/{KpiDelta-5bl1vkTe.js.map → KpiDelta-B6SN3viX.js.map} +1 -1
  135. package/dist/client/chunks/{KpiText-l1GtL83c.js → KpiText-z_vo4xcE.js} +2 -2
  136. package/dist/client/chunks/{KpiText-l1GtL83c.js.map → KpiText-z_vo4xcE.js.map} +1 -1
  137. package/dist/client/chunks/{MarkdownChart-CO0eGGo3.js → MarkdownChart-BKQl0PAy.js} +1125 -1059
  138. package/dist/client/chunks/MarkdownChart-BKQl0PAy.js.map +1 -0
  139. package/dist/client/chunks/{PortletAnalysisModal-BNygY4TN.js → PortletAnalysisModal-XfCy-bY3.js} +5 -5
  140. package/dist/client/chunks/{PortletAnalysisModal-BNygY4TN.js.map → PortletAnalysisModal-XfCy-bY3.js.map} +1 -1
  141. package/dist/client/chunks/{ProportionBarChart-BxSBzz9F.js → ProportionBarChart-tVmEO5Xi.js} +4 -4
  142. package/dist/client/chunks/{ProportionBarChart-BxSBzz9F.js.map → ProportionBarChart-tVmEO5Xi.js.map} +1 -1
  143. package/dist/client/chunks/{RecordsTable-Ce86xEEb.js → RecordsTable-X4-iL03N.js} +4 -4
  144. package/dist/client/chunks/{RecordsTable-Ce86xEEb.js.map → RecordsTable-X4-iL03N.js.map} +1 -1
  145. package/dist/client/chunks/{RetentionCombinedChart-BX1VbJ_m.js → RetentionCombinedChart-DCgCAEa4.js} +3 -3
  146. package/dist/client/chunks/{RetentionCombinedChart-BX1VbJ_m.js.map → RetentionCombinedChart-DCgCAEa4.js.map} +1 -1
  147. package/dist/client/chunks/{RetentionHeatmap-C6FJ-hNN.js → RetentionHeatmap-BnQng2Nc.js} +2 -2
  148. package/dist/client/chunks/{RetentionHeatmap-C6FJ-hNN.js.map → RetentionHeatmap-BnQng2Nc.js.map} +1 -1
  149. package/dist/client/chunks/{SchemaVisualization-DheR_F8J.js → SchemaVisualization-DAs91j_B.js} +1 -1
  150. package/dist/client/chunks/{TextPortletModal-BKJx63L7.js → TextPortletModal-MeQiEmR8.js} +3 -3
  151. package/dist/client/chunks/{TextPortletModal-BKJx63L7.js.map → TextPortletModal-MeQiEmR8.js.map} +1 -1
  152. package/dist/client/chunks/{analysis-builder-QaBFxEqT.js → analysis-builder-_JOj-PkX.js} +1508 -1492
  153. package/dist/client/chunks/analysis-builder-_JOj-PkX.js.map +1 -0
  154. package/dist/client/chunks/{analysis-builder-shared-CBYZC9iE.js → analysis-builder-shared-CYK5sH46.js} +829 -827
  155. package/dist/client/chunks/analysis-builder-shared-CYK5sH46.js.map +1 -0
  156. package/dist/client/chunks/{chart-activity-grid-Tma6prYa.js → chart-activity-grid-CIzCAMX9.js} +4 -4
  157. package/dist/client/chunks/{chart-activity-grid-Tma6prYa.js.map → chart-activity-grid-CIzCAMX9.js.map} +1 -1
  158. package/dist/client/chunks/{chart-area-uKNDmXki.js → chart-area-BRLlLtIX.js} +6 -6
  159. package/dist/client/chunks/{chart-area-uKNDmXki.js.map → chart-area-BRLlLtIX.js.map} +1 -1
  160. package/dist/client/chunks/{chart-bar-J-O7Fdzo.js → chart-bar-D2qp_vsO.js} +5 -5
  161. package/dist/client/chunks/{chart-bar-J-O7Fdzo.js.map → chart-bar-D2qp_vsO.js.map} +1 -1
  162. package/dist/client/chunks/{chart-box-plot-DOOxwI0S.js → chart-box-plot-Bt2dfls7.js} +2 -2
  163. package/dist/client/chunks/{chart-box-plot-DOOxwI0S.js.map → chart-box-plot-Bt2dfls7.js.map} +1 -1
  164. package/dist/client/chunks/{chart-bubble-CpFXYmcw.js → chart-bubble-BJZlm4xv.js} +4 -4
  165. package/dist/client/chunks/{chart-bubble-CpFXYmcw.js.map → chart-bubble-BJZlm4xv.js.map} +1 -1
  166. package/dist/client/chunks/{chart-candlestick-D8VjfXOL.js → chart-candlestick-DsNtTruF.js} +2 -2
  167. package/dist/client/chunks/{chart-candlestick-D8VjfXOL.js.map → chart-candlestick-DsNtTruF.js.map} +1 -1
  168. package/dist/client/chunks/{chart-data-table-CDMTU9F4.js → chart-data-table-DIghSvZN.js} +3 -3
  169. package/dist/client/chunks/{chart-data-table-CDMTU9F4.js.map → chart-data-table-DIghSvZN.js.map} +1 -1
  170. package/dist/client/chunks/{chart-funnel-C18WiJ9P.js → chart-funnel-CvVQTMej.js} +3 -3
  171. package/dist/client/chunks/{chart-funnel-C18WiJ9P.js.map → chart-funnel-CvVQTMej.js.map} +1 -1
  172. package/dist/client/chunks/{chart-gauge-seUJ08__.js → chart-gauge-DSu7U1YZ.js} +4 -4
  173. package/dist/client/chunks/{chart-gauge-seUJ08__.js.map → chart-gauge-DSu7U1YZ.js.map} +1 -1
  174. package/dist/client/chunks/{chart-heat-map-_HOw96aJ.js → chart-heat-map-Be7XsINq.js} +4 -4
  175. package/dist/client/chunks/{chart-heat-map-_HOw96aJ.js.map → chart-heat-map-Be7XsINq.js.map} +1 -1
  176. package/dist/client/chunks/{chart-kpi-delta-dSO6l_oc.js → chart-kpi-delta-7rLLK4Bg.js} +4 -4
  177. package/dist/client/chunks/{chart-kpi-delta-dSO6l_oc.js.map → chart-kpi-delta-7rLLK4Bg.js.map} +1 -1
  178. package/dist/client/chunks/{chart-kpi-number-CTVVElrK.js → chart-kpi-number-CUeK8MQP.js} +4 -4
  179. package/dist/client/chunks/{chart-kpi-number-CTVVElrK.js.map → chart-kpi-number-CUeK8MQP.js.map} +1 -1
  180. package/dist/client/chunks/{chart-kpi-text-B8g11asF.js → chart-kpi-text-CvRv2tGg.js} +5 -5
  181. package/dist/client/chunks/{chart-kpi-text-B8g11asF.js.map → chart-kpi-text-CvRv2tGg.js.map} +1 -1
  182. package/dist/client/chunks/{chart-line-DHPFzMBk.js → chart-line-Bl-bSP0Y.js} +6 -6
  183. package/dist/client/chunks/{chart-line-DHPFzMBk.js.map → chart-line-Bl-bSP0Y.js.map} +1 -1
  184. package/dist/client/chunks/chart-markdown-5dXZ-EtR.js +96 -0
  185. package/dist/client/chunks/chart-markdown-5dXZ-EtR.js.map +1 -0
  186. package/dist/client/chunks/{chart-measure-profile-CZkMh7EU.js → chart-measure-profile-DjAV-TtG.js} +4 -4
  187. package/dist/client/chunks/{chart-measure-profile-CZkMh7EU.js.map → chart-measure-profile-DjAV-TtG.js.map} +1 -1
  188. package/dist/client/chunks/{chart-pie-CFDUrh26.js → chart-pie-3IGIOniI.js} +5 -5
  189. package/dist/client/chunks/{chart-pie-CFDUrh26.js.map → chart-pie-3IGIOniI.js.map} +1 -1
  190. package/dist/client/chunks/{chart-radar-C9gpwnf2.js → chart-radar-Md5BwLhY.js} +4 -4
  191. package/dist/client/chunks/{chart-radar-C9gpwnf2.js.map → chart-radar-Md5BwLhY.js.map} +1 -1
  192. package/dist/client/chunks/{chart-radial-bar-B-CXDHTD.js → chart-radial-bar-Bfb-gGm6.js} +4 -4
  193. package/dist/client/chunks/{chart-radial-bar-B-CXDHTD.js.map → chart-radial-bar-Bfb-gGm6.js.map} +1 -1
  194. package/dist/client/chunks/{chart-sankey-B4BMcu_W.js → chart-sankey-BmQKKIZa.js} +2 -2
  195. package/dist/client/chunks/{chart-sankey-B4BMcu_W.js.map → chart-sankey-BmQKKIZa.js.map} +1 -1
  196. package/dist/client/chunks/{chart-scatter-Dy3zhJ0s.js → chart-scatter-BES9g5kG.js} +5 -5
  197. package/dist/client/chunks/{chart-scatter-Dy3zhJ0s.js.map → chart-scatter-BES9g5kG.js.map} +1 -1
  198. package/dist/client/chunks/{chart-sunburst-CNkfOURe.js → chart-sunburst-BBOCkD00.js} +2 -2
  199. package/dist/client/chunks/{chart-sunburst-CNkfOURe.js.map → chart-sunburst-BBOCkD00.js.map} +1 -1
  200. package/dist/client/chunks/{chart-tree-map-B_iEqAl4.js → chart-tree-map-CkvUBqNw.js} +5 -5
  201. package/dist/client/chunks/{chart-tree-map-B_iEqAl4.js.map → chart-tree-map-CkvUBqNw.js.map} +1 -1
  202. package/dist/client/chunks/{chart-waterfall-DKoas5p0.js → chart-waterfall-KeSpmPhi.js} +4 -4
  203. package/dist/client/chunks/{chart-waterfall-DKoas5p0.js.map → chart-waterfall-KeSpmPhi.js.map} +1 -1
  204. package/dist/client/chunks/{chartComponentRegistry-BVeOQaSR.js → chartComponentRegistry-B6jUklcw.js} +3 -3
  205. package/dist/client/chunks/chartComponentRegistry-B6jUklcw.js.map +1 -0
  206. package/dist/client/chunks/{chartPlugin-sgjKBVER.js → chartPlugin-DnQOiDRV.js} +2 -2
  207. package/dist/client/chunks/{chartPlugin-sgjKBVER.js.map → chartPlugin-DnQOiDRV.js.map} +1 -1
  208. package/dist/client/chunks/{charts-core-DwjBd3KN.js → charts-core-BsheHP0O.js} +2 -2
  209. package/dist/client/chunks/{charts-core-DwjBd3KN.js.map → charts-core-BsheHP0O.js.map} +1 -1
  210. package/dist/client/chunks/{charts-loader-C5E1UrqB.js → charts-loader-Bt00isFs.js} +32 -32
  211. package/dist/client/chunks/{charts-loader-C5E1UrqB.js.map → charts-loader-Bt00isFs.js.map} +1 -1
  212. package/dist/client/chunks/{dist-CiyOP0NN.js → dist-BJHNNhZr.js} +3 -3
  213. package/dist/client/chunks/dist-BJHNNhZr.js.map +1 -0
  214. package/dist/client/chunks/{exportXlsx-Dnc0ZOJW.js → exportXlsx-CAC5_NOP.js} +29 -21
  215. package/dist/client/chunks/exportXlsx-CAC5_NOP.js.map +1 -0
  216. package/dist/client/chunks/{nl-NL-puUFqQYo.js → nl-NL-Cqzg1eUq.js} +3 -1
  217. package/dist/client/chunks/{nl-NL-puUFqQYo.js.map → nl-NL-Cqzg1eUq.js.map} +1 -1
  218. package/dist/client/chunks/{providers-CPmqs1OT.js → providers-CGtqLkL5.js} +7 -7
  219. package/dist/client/chunks/{providers-CPmqs1OT.js.map → providers-CGtqLkL5.js.map} +1 -1
  220. package/dist/client/chunks/{schema-visualization-sZ-ok8Mv.js → schema-visualization-CgYgfh4e.js} +5 -5
  221. package/dist/client/chunks/{schema-visualization-sZ-ok8Mv.js.map → schema-visualization-CgYgfh4e.js.map} +1 -1
  222. package/dist/client/chunks/{useCubeFieldLabel-OShtoDli.js → useCubeFieldLabel-BaQ47OCT.js} +2 -2
  223. package/dist/client/chunks/{useCubeFieldLabel-OShtoDli.js.map → useCubeFieldLabel-BaQ47OCT.js.map} +1 -1
  224. package/dist/client/chunks/{useCubeMetaQuery-D5YmxsXc.js → useCubeMetaQuery-D736B6Jp.js} +2 -2
  225. package/dist/client/chunks/{useCubeMetaQuery-D5YmxsXc.js.map → useCubeMetaQuery-D736B6Jp.js.map} +1 -1
  226. package/dist/client/chunks/{useDirtyStateTracking-u59tjusb.js → useDirtyStateTracking-D3b4tD_b.js} +2 -2
  227. package/dist/client/chunks/{useDirtyStateTracking-u59tjusb.js.map → useDirtyStateTracking-D3b4tD_b.js.map} +1 -1
  228. package/dist/client/chunks/{useExplainAI-9AtPBHak.js → useExplainAI-BaETifYG.js} +3 -3
  229. package/dist/client/chunks/{useExplainAI-9AtPBHak.js.map → useExplainAI-BaETifYG.js.map} +1 -1
  230. package/dist/client/chunks/{useTranslation-BwieiaHa.js → useTranslation-DO5KRcwD.js} +5 -3
  231. package/dist/client/chunks/{useTranslation-BwieiaHa.js.map → useTranslation-DO5KRcwD.js.map} +1 -1
  232. package/dist/client/chunks/utils-CToHkuhU.js.map +1 -1
  233. package/dist/client/components/AnalysisBuilder/AnalysisResultsHeader.d.ts +2 -0
  234. package/dist/client/components/DashboardPortletCard.d.ts +1 -1
  235. package/dist/client/components/RowManagedLayout.d.ts +3 -1
  236. package/dist/client/components/analyticsPortlet/PortletChart.d.ts +5 -1
  237. package/dist/client/components/analyticsPortlet/PortletChartView.d.ts +5 -1
  238. package/dist/client/components/analyticsPortlet/PortletStates.d.ts +9 -1
  239. package/dist/client/components/analyticsPortlet/portletRenderState.d.ts +7 -1
  240. package/dist/client/components/charts/MarkdownChart.d.ts +1 -1
  241. package/dist/client/components/charts/markdownDisclosure.d.ts +14 -0
  242. package/dist/client/components/dashboardPortletCard/PortletCardHeader.d.ts +1 -0
  243. package/dist/client/components/dashboardPortletCard/PortletFloatingActions.d.ts +1 -0
  244. package/dist/client/components/dashboardPortletCard/cardStyles.d.ts +2 -0
  245. package/dist/client/components/dashboardPortletCard/propsEqual.d.ts +2 -0
  246. package/dist/client/components/dashboardPortletCard/usePortletCardActions.d.ts +4 -1
  247. package/dist/client/components.js +4 -4
  248. package/dist/client/hooks/dashboard/layoutUtils.d.ts +11 -0
  249. package/dist/client/hooks/useAnalysisQuery.d.ts +6 -0
  250. package/dist/client/hooks.js +3 -3
  251. package/dist/client/icons/registry.d.ts +3 -1
  252. package/dist/client/icons.js +4 -4
  253. package/dist/client/icons.js.map +1 -1
  254. package/dist/client/index.d.ts +2 -2
  255. package/dist/client/index.js +322 -322
  256. package/dist/client/index.js.map +1 -1
  257. package/dist/client/providers.js +1 -1
  258. package/dist/client/schema.js +1 -1
  259. package/dist/client/styles.css +1 -1
  260. package/dist/client/types.d.ts +28 -0
  261. package/dist/client/utils/exportXlsx.d.ts +7 -0
  262. package/dist/client/utils/index.d.ts +1 -1
  263. package/dist/client/utils.js +14 -14
  264. package/dist/client/utils.js.map +1 -1
  265. package/dist/client-bundle-stats.html +1 -1
  266. package/dist/mcp-app/mcp-app.html +132 -131
  267. package/dist/server/index.cjs +1 -1
  268. package/dist/server/index.js +2 -0
  269. package/package.json +7 -7
  270. package/dist/adapters/ActivityGridChart.config-3SeBVdiJ.js +0 -1
  271. package/dist/adapters/ActivityGridChart.config-C8d7NfCS.cjs +0 -1
  272. package/dist/adapters/AreaChart.config-DMLdRLt3.cjs +0 -1
  273. package/dist/adapters/AreaChart.config-DX_WqQQ_.js +0 -1
  274. package/dist/adapters/BarChart.config-2Wmv5r8P.cjs +0 -1
  275. package/dist/adapters/BarChart.config-BWYAI7Vg.js +0 -1
  276. package/dist/adapters/BoxPlotChart.config-Ceu0w8Zd.cjs +0 -1
  277. package/dist/adapters/BoxPlotChart.config-T-8Peh8F.js +0 -1
  278. package/dist/adapters/BubbleChart.config-BIcf2l3R.js +0 -1
  279. package/dist/adapters/BubbleChart.config-CtM5BSz6.cjs +0 -1
  280. package/dist/adapters/CandlestickChart.config-4S2Or5mN.cjs +0 -1
  281. package/dist/adapters/CandlestickChart.config-4d3lZuok.js +0 -1
  282. package/dist/adapters/DataTable.config-D7EycI7z.cjs +0 -1
  283. package/dist/adapters/DataTable.config-Gq2C0ILP.js +0 -1
  284. package/dist/adapters/DotStripChart.config-NHJSJBlh.js +0 -1
  285. package/dist/adapters/DotStripChart.config-VomEbzxR.cjs +0 -1
  286. package/dist/adapters/FunnelChart.config-C5pBDYFK.js +0 -1
  287. package/dist/adapters/FunnelChart.config-D3Mtyf28.cjs +0 -1
  288. package/dist/adapters/GaugeChart.config-BnFLZCC6.js +0 -1
  289. package/dist/adapters/GaugeChart.config-DtkFafZC.cjs +0 -1
  290. package/dist/adapters/HeatMapChart.config-BIqhjAFQ.js +0 -1
  291. package/dist/adapters/HeatMapChart.config-DseB1NfL.cjs +0 -1
  292. package/dist/adapters/KpiDelta.config-69-uMEyb.js +0 -1
  293. package/dist/adapters/KpiDelta.config-DWPjfacH.cjs +0 -1
  294. package/dist/adapters/KpiNumber.config-BbnUmSb-.js +0 -1
  295. package/dist/adapters/KpiNumber.config-C3btQia1.cjs +0 -1
  296. package/dist/adapters/KpiText.config-Bnmvk3lB.cjs +0 -1
  297. package/dist/adapters/KpiText.config-DAWQ0mAe.js +0 -1
  298. package/dist/adapters/LineChart.config-CKGqehVr.cjs +0 -1
  299. package/dist/adapters/LineChart.config-FHEbx5Qa.js +0 -1
  300. package/dist/adapters/MarkdownChart.config-Cj8GMNnf.cjs +0 -1
  301. package/dist/adapters/MarkdownChart.config-DD5nNpfK.js +0 -1
  302. package/dist/adapters/MeasureProfileChart.config-CM9DseTR.js +0 -1
  303. package/dist/adapters/MeasureProfileChart.config-sy-8lmcV.cjs +0 -1
  304. package/dist/adapters/PieChart.config-8THRRwga.cjs +0 -1
  305. package/dist/adapters/PieChart.config-m6eZbEWA.js +0 -1
  306. package/dist/adapters/ProportionBarChart.config-DJrjar2k.cjs +0 -1
  307. package/dist/adapters/ProportionBarChart.config-Sm34Lsvo.js +0 -1
  308. package/dist/adapters/RadarChart.config-CXLUncFQ.js +0 -1
  309. package/dist/adapters/RadarChart.config-Dec1u-cO.cjs +0 -1
  310. package/dist/adapters/RadialBarChart.config-93JNKh5g.js +0 -1
  311. package/dist/adapters/RadialBarChart.config-DNw07Ie4.cjs +0 -1
  312. package/dist/adapters/RecordsTable.config-79tOcNvK.js +0 -1
  313. package/dist/adapters/RecordsTable.config-DaTk-q0X.cjs +0 -1
  314. package/dist/adapters/RetentionCombinedChart.config-BJlyJD9K.js +0 -1
  315. package/dist/adapters/RetentionCombinedChart.config-BMY7kekL.cjs +0 -1
  316. package/dist/adapters/RetentionHeatmap.config-C6UDjFsM.cjs +0 -1
  317. package/dist/adapters/RetentionHeatmap.config-C7GsAXqy.js +0 -1
  318. package/dist/adapters/SankeyChart.config-7K9FRF5f.js +0 -1
  319. package/dist/adapters/SankeyChart.config-Bn8CuX7j.cjs +0 -1
  320. package/dist/adapters/ScatterChart.config-BwObH6wd.cjs +0 -1
  321. package/dist/adapters/ScatterChart.config-DdXyolWJ.js +0 -1
  322. package/dist/adapters/SunburstChart.config-BaWb-t_B.cjs +0 -1
  323. package/dist/adapters/SunburstChart.config-D-A2Wbeg.js +0 -1
  324. package/dist/adapters/TreeMapChart.config-2G6D7LD3.cjs +0 -1
  325. package/dist/adapters/TreeMapChart.config-CsQ8lmZY.js +0 -1
  326. package/dist/adapters/WaterfallChart.config-CG6GW5x3.js +0 -1
  327. package/dist/adapters/WaterfallChart.config-Dt3MgB-U.cjs +0 -1
  328. package/dist/adapters/utils-COscxYKM.cjs +0 -141
  329. package/dist/client/chunks/BubbleChart-E0IoByRb.js.map +0 -1
  330. package/dist/client/chunks/DashboardEditModal-Fx3EXgIk.js.map +0 -1
  331. package/dist/client/chunks/MarkdownChart-CO0eGGo3.js.map +0 -1
  332. package/dist/client/chunks/analysis-builder-QaBFxEqT.js.map +0 -1
  333. package/dist/client/chunks/analysis-builder-shared-CBYZC9iE.js.map +0 -1
  334. package/dist/client/chunks/chart-markdown-Bcf21ciA.js +0 -68
  335. package/dist/client/chunks/chart-markdown-Bcf21ciA.js.map +0 -1
  336. package/dist/client/chunks/chartComponentRegistry-BVeOQaSR.js.map +0 -1
  337. package/dist/client/chunks/dist-CiyOP0NN.js.map +0 -1
  338. package/dist/client/chunks/exportXlsx-Dnc0ZOJW.js.map +0 -1
@@ -2396,6 +2396,8 @@ var We = class {
2396
2396
  "portlet.invalidQuery": "Invalid query or no results",
2397
2397
  "portlet.unsupportedChartType": "Unsupported chart type",
2398
2398
  "portlet.unableToRender": "Unable to render chart",
2399
+ "portlet.oneQueryOnly.title": "This chart type shows one query only",
2400
+ "portlet.oneQueryOnly.hint": "Remove the other queries, or select a different chart type.",
2399
2401
  "portlet.droppedMembers": "Hidden — no longer in the model: {members}",
2400
2402
  "portlet.enterTitle": "Enter portlet title...",
2401
2403
  "portlet.enterPortletTitle": "Please enter a title for the portlet.",
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./utils-COscxYKM.cjs");exports.buildTransformedQuery=e.t,exports.calculateQueryComplexity=e.n,exports.formatCubeResponse=e.r,exports.formatErrorResponse=e.i,exports.formatMetaResponse=e.a,exports.formatSqlResponse=e.o,exports.formatSqlString=e.x,exports.generateRequestId=e.s,exports.getDatabaseType=e.c,exports.handleBatchRequest=e.l,exports.handleDiscover=e.p,exports.handleDryRun=e.u,exports.handleLoad=e.m,exports.handleSuggest=e.d,exports.handleValidate=e.f,exports.normalizeQueryFields=e.h;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./utils-D0jq702C.cjs");exports.buildTransformedQuery=e.t,exports.calculateQueryComplexity=e.n,exports.formatCubeResponse=e.r,exports.formatErrorResponse=e.i,exports.formatMetaResponse=e.a,exports.formatSqlResponse=e.o,exports.formatSqlString=e.x,exports.generateRequestId=e.s,exports.getDatabaseType=e.c,exports.handleBatchRequest=e.l,exports.handleDiscover=e.p,exports.handleDryRun=e.u,exports.handleLoad=e.m,exports.handleSuggest=e.d,exports.handleValidate=e.f,exports.normalizeQueryFields=e.h;
@@ -1 +1 @@
1
- export { t as buildTransformedQuery, n as calculateQueryComplexity, r as formatCubeResponse, i as formatErrorResponse, a as formatMetaResponse, o as formatSqlResponse, x as formatSqlString, s as generateRequestId, c as getDatabaseType, l as handleBatchRequest, p as handleDiscover, u as handleDryRun, m as handleLoad, d as handleSuggest, f as handleValidate, h as normalizeQueryFields } from "./utils-ClqFyZ-5.js";
1
+ export { t as buildTransformedQuery, n as calculateQueryComplexity, r as formatCubeResponse, i as formatErrorResponse, a as formatMetaResponse, o as formatSqlResponse, x as formatSqlString, s as generateRequestId, c as getDatabaseType, l as handleBatchRequest, p as handleDiscover, u as handleDryRun, m as handleLoad, d as handleSuggest, f as handleValidate, h as normalizeQueryFields } from "./utils-wjO1gfkH.js";
@@ -177,6 +177,18 @@ export interface ChartTypeConfig {
177
177
  useCase?: string;
178
178
  /** Whether this chart type skips query requirements (for content-based charts like markdown) */
179
179
  skipQuery?: boolean;
180
+ /**
181
+ * The chart loads its own data. The dashboard portlet and the
182
+ * AnalysisBuilder preview do not fetch. They still build the effective
183
+ * query (dashboard filters, universal time filter, drill) and pass it to
184
+ * the chart as `queryObject`. The chart owns its loading, error and empty
185
+ * states, and the portlet shows no XLSX download and no debug data for it.
186
+ * A Refresh sends a new `refreshId` to the chart and does not reload the
187
+ * Cube query. A portlet or a preview with more than one query (a
188
+ * multi-query, funnel, flow or retention analysis) shows a message in place
189
+ * of the chart, because the chart reads one query only.
190
+ */
191
+ fetchesOwnData?: boolean;
180
192
  /** Configuration for which elements support clicking (for drill-down) */
181
193
  clickableElements?: ClickableElementsConfig;
182
194
  /**
@@ -13,5 +13,5 @@ export type { LazyChartProps } from './charts/ChartLoader.js';
13
13
  export { getChartConfigAsync, getChartConfigSync, useChartConfig, isChartConfigLoaded, preloadChartConfig, preloadChartConfigs, loadAllChartConfigs, clearChartConfigCache } from './charts/lazyChartConfigRegistry.js';
14
14
  export { formatChartData } from './utils/index.js';
15
15
  export { CHART_COLORS, POSITIVE_COLOR, NEGATIVE_COLOR, CHART_MARGINS } from './utils/chartConstants.js';
16
- export type { ChartType, ChartAxisConfig, ChartDisplayConfig, ChartProps, ColorPalette } from './types.js';
16
+ export type { ChartType, ChartAxisConfig, ChartDisplayConfig, ChartProps, ChartExportHandler, ColorPalette } from './types.js';
17
17
  export type { ChartTypeConfig, ChartConfigBuildContext, DisplayOptionConfig, AxisDropZoneConfig } from './charts/chartConfigs.js';
@@ -24,6 +24,8 @@ export interface ResultsSummary {
24
24
  debugDataPerQuery: Array<{
25
25
  error?: unknown;
26
26
  }>;
27
+ /** The chart loads its own data, so the builder has no row count or status to show */
28
+ fetchesOwnData?: boolean;
27
29
  }
28
30
  /** Action handlers and their transient state for the toolbar buttons. */
29
31
  export interface ResultsToolbarActions {
@@ -1,4 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  import { DashboardPortletCardProps } from './dashboardPortletCard/propsEqual.js';
3
- declare const DashboardPortletCard: React.MemoExoticComponent<({ portlet, editable, layoutMode, dashboardFilters, configEagerLoad, dashboardRefresh, loadingComponent, colorPalette, containerProps, headerProps, variant, setPortletRef, setPortletComponentRef, callbacks, icons, onPortletExpand }: DashboardPortletCardProps) => React.JSX.Element>;
3
+ declare const DashboardPortletCard: React.MemoExoticComponent<({ portlet, editable, layoutMode, dashboardFilters, configEagerLoad, dashboardRefresh, loadingComponent, colorPalette, containerProps, headerProps, variant, inFixedHeightRow, setPortletRef, setPortletComponentRef, callbacks, icons, onPortletExpand }: DashboardPortletCardProps) => React.JSX.Element>;
4
4
  export default DashboardPortletCard;
@@ -23,7 +23,9 @@ interface RowManagedLayoutProps {
23
23
  draggingPortletId?: string | null;
24
24
  /** Id of the group currently being dragged, so its members ignore their bands. */
25
25
  draggingGroupId?: string | null;
26
- renderPortlet: (portlet: PortletConfig, containerProps?: HTMLAttributes<HTMLDivElement>, headerProps?: HTMLAttributes<HTMLDivElement>, variant?: PortletCardVariant) => ReactNode;
26
+ renderPortlet: (portlet: PortletConfig, containerProps?: HTMLAttributes<HTMLDivElement>, headerProps?: HTMLAttributes<HTMLDivElement>, variant?: PortletCardVariant,
27
+ /** True when the row keeps a fixed height, so a markdown card must fill it instead of growing. */
28
+ inFixedHeightRow?: boolean) => ReactNode;
27
29
  /** Renders a group column. Omitted in contexts that have no groups. */
28
30
  renderGroup?: (group: PortletGroup, renderSnapBands: (portletId: string) => ReactNode,
29
31
  /** Set inside a section, where the section card draws the only frame. */
@@ -1,4 +1,4 @@
1
- import { ChartAxisConfig, ChartDisplayConfig, ChartPagination, ChartType, CubeQuery } from '../../types.js';
1
+ import { ChartAxisConfig, ChartDisplayConfig, ChartExportHandler, ChartPagination, ChartType, CubeQuery } from '../../types.js';
2
2
  import { FlowChartData } from '../../types/flow.js';
3
3
  import { RetentionChartData } from '../../types/retention.js';
4
4
  import { ColorPalette } from '../../utils/colorPalettes.js';
@@ -29,6 +29,10 @@ export interface PortletChartProps {
29
29
  onDataPointClick?: (...args: any[]) => void;
30
30
  initialViewState?: unknown;
31
31
  onViewStateChange?: (state: unknown) => void;
32
+ /** Registers the export of the chart (`ChartProps.onExportReady`) */
33
+ onExportReady?: (handler: ChartExportHandler | null) => void;
34
+ /** The id of the latest portlet Refresh (`ChartProps.refreshId`) */
35
+ refreshId?: string | null;
32
36
  }
33
37
  export declare function PortletChart(props: PortletChartProps): import('react').JSX.Element;
34
38
  export {};
@@ -1,4 +1,4 @@
1
- import { ChartAxisConfig, ChartDisplayConfig, ChartPagination, ChartType, CubeQuery } from '../../types.js';
1
+ import { ChartAxisConfig, ChartDisplayConfig, ChartExportHandler, ChartPagination, ChartType, CubeQuery } from '../../types.js';
2
2
  import { FlowChartData } from '../../types/flow.js';
3
3
  import { RetentionChartData } from '../../types/retention.js';
4
4
  import { ColorPalette } from '../../utils/colorPalettes.js';
@@ -36,6 +36,10 @@ export interface PortletChartViewProps {
36
36
  /** Start state of the chart component (`PortletViewState.chart`) */
37
37
  initialViewState?: unknown;
38
38
  onViewStateChange?: (state: unknown) => void;
39
+ /** Registers the export of the chart (`ChartProps.onExportReady`) */
40
+ onExportReady?: (handler: ChartExportHandler | null) => void;
41
+ /** The id of the latest portlet Refresh (`ChartProps.refreshId`) */
42
+ refreshId?: string | null;
39
43
  }
40
44
  export declare function PortletChartView(props: PortletChartViewProps): import('react').JSX.Element;
41
45
  export {};
@@ -38,7 +38,15 @@ interface PortletNoDataProps {
38
38
  onNavigateToLevel: (index: number) => void;
39
39
  }
40
40
  export declare function PortletNoData({ inViewRef, height, drillPath, onNavigateBack, onNavigateToLevel }: PortletNoDataProps): import('react').JSX.Element;
41
- export type PortletStateKind = 'config-required' | 'lazy-placeholder' | 'loading' | 'error';
41
+ /**
42
+ * A chart that loads its own data (`fetchesOwnData`) reads one query only, so a
43
+ * multi-query, funnel, flow or retention portlet shows this in place of it.
44
+ */
45
+ export declare function PortletOneQueryOnly({ inViewRef, height }: {
46
+ inViewRef: Ref<HTMLDivElement>;
47
+ height: Height;
48
+ }): import('react').JSX.Element;
49
+ export type PortletStateKind = 'config-required' | 'lazy-placeholder' | 'loading' | 'error' | 'one-query-only';
42
50
  interface PortletStateViewProps {
43
51
  kind: PortletStateKind | 'no-data';
44
52
  inViewRef: Ref<HTMLDivElement>;
@@ -1,7 +1,7 @@
1
1
  import { FlowChartData, ServerFlowQuery } from '../../types/flow.js';
2
2
  import { RetentionChartData, ServerRetentionQuery } from '../../types/retention.js';
3
3
  import { CubeQuery, MultiQueryConfig, ServerFunnelQuery } from '../../types.js';
4
- export type PortletRenderKind = 'config-required' | 'lazy-placeholder' | 'loading' | 'error' | 'no-data' | 'chart';
4
+ export type PortletRenderKind = 'config-required' | 'lazy-placeholder' | 'loading' | 'error' | 'no-data' | 'one-query-only' | 'chart';
5
5
  export interface PortletRenderStateParams {
6
6
  hasChartConfig: boolean;
7
7
  hasMandatoryFields: boolean;
@@ -13,6 +13,12 @@ export interface PortletRenderStateParams {
13
13
  * survive an empty result rather than being replaced by the no-data view.
14
14
  */
15
15
  rendersWithoutData: boolean;
16
+ /**
17
+ * The chart config sets `fetchesOwnData`: the chart loads its own data, so
18
+ * the portlet's loading, error and no-data views do not apply. The chart
19
+ * reads one query only.
20
+ */
21
+ fetchesOwnData: boolean;
16
22
  eagerLoad: boolean;
17
23
  isVisible: boolean;
18
24
  isLoading: boolean;
@@ -1,4 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  import { ChartProps } from '../../types.js';
3
- declare const MarkdownChart: React.MemoExoticComponent<({ data, displayConfig, queryObject, height, colorPalette }: ChartProps) => React.JSX.Element | null>;
3
+ declare const MarkdownChart: React.MemoExoticComponent<({ data, displayConfig, queryObject, height, colorPalette, initialViewState, onViewStateChange }: ChartProps) => React.JSX.Element | null>;
4
4
  export default MarkdownChart;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Finds `<details>`/`<summary>` sections before markdown-to-jsx runs, because
3
+ * the chart parses Markdown with raw HTML disabled. Everything else stays text.
4
+ */
5
+ export type MarkdownSegment = {
6
+ kind: 'markdown';
7
+ text: string;
8
+ } | {
9
+ kind: 'disclosure';
10
+ key: string;
11
+ summary: string;
12
+ body: MarkdownSegment[];
13
+ };
14
+ export declare function parseMarkdownDisclosures(source: string): MarkdownSegment[];
@@ -16,6 +16,7 @@ interface PortletCardHeaderProps {
16
16
  debugData?: PortletDebugDataEntry;
17
17
  copyAvailable: boolean;
18
18
  copySuccess: boolean;
19
+ /** Shows Download: a chart export is registered, or the XLSX export is available and the portlet has debug data */
19
20
  xlsExportAvailable: boolean;
20
21
  exportInProgress: boolean;
21
22
  showCacheBustIndicator: boolean;
@@ -9,6 +9,7 @@ interface PortletFloatingActionsProps {
9
9
  showEditActions: boolean;
10
10
  copyAvailable: boolean;
11
11
  copySuccess: boolean;
12
+ /** Shows Download: a chart export is registered, or the XLSX export is available and the portlet has debug data */
12
13
  xlsExportAvailable: boolean;
13
14
  exportInProgress: boolean;
14
15
  onRefresh: (options?: MaxAgeOptions) => void;
@@ -24,6 +24,8 @@ export declare function resolveDisplayModes(params: {
24
24
  isEditMode: boolean;
25
25
  portletTitle?: string;
26
26
  variant?: PortletCardVariant;
27
+ /** The card sits in a rows-layout row that keeps a fixed height, so it cannot grow. */
28
+ inFixedHeightRow?: boolean;
27
29
  }): PortletDisplayModes;
28
30
  export declare function buildContainerClassName(params: {
29
31
  isTransparent: boolean;
@@ -8,6 +8,8 @@ export interface DashboardPortletCardProps {
8
8
  editable: boolean;
9
9
  layoutMode?: DashboardLayoutMode;
10
10
  variant?: PortletCardVariant;
11
+ /** Set by the rows layout when the card's row keeps a fixed height. */
12
+ inFixedHeightRow?: boolean;
11
13
  dashboardFilters?: DashboardFilter[];
12
14
  configEagerLoad?: boolean;
13
15
  /** Dashboard default refresh, overridden by `portlet.refresh` */
@@ -1,13 +1,16 @@
1
1
  import { default as React } from 'react';
2
2
  import { PortletDebugDataEntry } from '../../stores/dashboardStore.js';
3
+ import { ChartExportHandler } from '../../types.js';
3
4
  export declare function usePortletCardActions(params: {
4
5
  portletTitle: string;
5
6
  debugData?: PortletDebugDataEntry;
7
+ /** The export that the chart registered. It runs in place of the built-in export. */
8
+ chartExport?: ChartExportHandler | null;
6
9
  }): {
7
10
  chartContainerRef: React.RefObject<HTMLDivElement | null>;
8
11
  copySuccess: boolean;
9
12
  copyAvailable: boolean;
10
- xlsExportAvailable: boolean;
13
+ downloadAvailable: boolean;
11
14
  exportInProgress: boolean;
12
15
  showCacheBustIndicator: boolean;
13
16
  setIsHoveringRefresh: React.Dispatch<React.SetStateAction<boolean>>;
@@ -20,6 +20,17 @@ export declare const equalizeColumns: (columns: RowLayoutColumn[], gridSettings:
20
20
  * @deprecated Loses `groupId`. Use {@link equalizeColumns} with the real columns.
21
21
  */
22
22
  export declare const equalizeRowColumns: (portletIds: string[], gridSettings: DashboardGridSettings) => RowLayoutColumn[];
23
+ /**
24
+ * Stretch or trim a row so that its column widths add up to `cols`.
25
+ *
26
+ * A saved width of one unit or more stays, also below `minW`. Grid mode renders
27
+ * such widths, and `minW` is the minimum for a resize in rows mode. Raising
28
+ * them made a row of narrow columns wider than `cols`. A width below one unit
29
+ * gets `minW`.
30
+ *
31
+ * The row gets or loses the exact difference, also a fraction of a unit, so a
32
+ * second pass returns the same widths.
33
+ */
23
34
  export declare const adjustRowWidths: (columns: RowLayoutColumn[], gridSettings: DashboardGridSettings) => RowLayoutColumn[];
24
35
  /**
25
36
  * Derive rows from the portlets' grid positions: one row for each distinct `y`,
@@ -62,6 +62,12 @@ export interface UseAnalysisQueryOptions {
62
62
  * are gap-filled client-side per this setting, the query and the cube.
63
63
  */
64
64
  fillMissingDates?: ChartDisplayConfig['fillMissingDates'];
65
+ /**
66
+ * The selected chart loads its own data (`ChartTypeConfig.fetchesOwnData`).
67
+ * The single and multi-query fetches are skipped, so a refetch does not
68
+ * reload them either. The other analysis modes are not affected.
69
+ */
70
+ fetchesOwnData?: boolean;
65
71
  }
66
72
  export interface UseAnalysisQueryResult {
67
73
  /** Query execution status */
@@ -8,7 +8,9 @@ export declare function getIconRegistry(): IconRegistry;
8
8
  /**
9
9
  * Get a specific icon as a React component
10
10
  * @param name The icon name from the registry
11
- * @returns A React component that renders the icon (cached for stable references)
11
+ * @returns A React component that renders the icon (cached for stable references).
12
+ * It reads the registry when it renders, so it follows later registerIcons()
13
+ * and setIcon() calls.
12
14
  */
13
15
  export declare function getIcon(name: IconName): ComponentType<IconProps>;
14
16
  /**
@@ -57,7 +57,7 @@ export { useTheme } from './hooks/useTheme.js';
57
57
  export { useScrollDetection } from './hooks/useScrollDetection.js';
58
58
  export { useElementVisibility } from './hooks/useElementVisibility.js';
59
59
  export { useDrillInteraction } from './hooks/useDrillInteraction.js';
60
- export type { PortletConfig, ChartType, BuiltInChartType, ChartAxisConfig, ChartDisplayConfig, ChartProps, ColorPalette, CubeQuery, CubeQueryOptions, CubeApiOptions, CubeValidationIssue, ChartPagination, ColumnFormatConfig, ColumnFormatKind, RowLinkConfig, DashboardConfig, PortletGroup, PortletGroupCell, FeaturesConfig, PortletActionId, XlsExportFeatureConfig, ThumbnailFeatureConfig, DashboardImportExportFeatureConfig, DashboardMeta, RefreshFeatureConfig, PortletRefreshConfig, DashboardRefreshConfig, PortletFreshness, PortletViewState, PortletExpandPayload, AnalyticsPortletRef, MultiQueryConfig, QueryMergeStrategy, FunnelBindingKey, FunnelBindingKeyMapping, FunnelStep, FunnelConfig, FunnelStepResult, FunnelExecutionResult, FunnelChartData, FunnelValidationError, FunnelValidationResult, UseFunnelQueryOptions, UseFunnelQueryResult, ServerFlowQuery, FlowQueryConfig, FlowChartData, FlowSliceState, SankeyNode, SankeyLink, FlowStartingStep, FlowResultRow, } from './types.js';
60
+ export type { PortletConfig, ChartType, BuiltInChartType, ChartAxisConfig, ChartDisplayConfig, ChartProps, ChartExportHandler, ColorPalette, CubeQuery, CubeQueryOptions, CubeApiOptions, CubeValidationIssue, ChartPagination, ColumnFormatConfig, ColumnFormatKind, RowLinkConfig, DashboardConfig, PortletGroup, PortletGroupCell, FeaturesConfig, PortletActionId, XlsExportFeatureConfig, ThumbnailFeatureConfig, DashboardImportExportFeatureConfig, DashboardMeta, RefreshFeatureConfig, PortletRefreshConfig, DashboardRefreshConfig, PortletFreshness, PortletViewState, PortletExpandPayload, AnalyticsPortletRef, MultiQueryConfig, QueryMergeStrategy, FunnelBindingKey, FunnelBindingKeyMapping, FunnelStep, FunnelConfig, FunnelStepResult, FunnelExecutionResult, FunnelChartData, FunnelValidationError, FunnelValidationResult, UseFunnelQueryOptions, UseFunnelQueryResult, ServerFlowQuery, FlowQueryConfig, FlowChartData, FlowSliceState, SankeyNode, SankeyLink, FlowStartingStep, FlowResultRow, } from './types.js';
61
61
  export { isQueryConfig, isFunnelConfig, isFlowConfig, isRetentionConfig, isMultiQuery, isSingleQuery, isValidAnalysisConfig, createDefaultQueryConfig, createDefaultFunnelConfig, createDefaultFlowConfig, createDefaultRetentionConfig, createDefaultConfig, isValidAnalysisWorkspace, createDefaultWorkspace } from './types/analysisConfig.js';
62
62
  export type { AnalysisConfig, QueryAnalysisConfig, FunnelAnalysisConfig, FlowAnalysisConfig, RetentionAnalysisConfig, AnalysisWorkspace } from './types/analysisConfig.js';
63
63
  export { isMultiQueryConfig, isServerFunnelQuery, isServerFlowQuery, isSankeyData } from './types.js';
@@ -68,7 +68,7 @@ export { registerColorPalettes } from './utils/colorPalettes.js';
68
68
  export { createDashboardLayout, formatChartData, highlightCodeBlocks } from './utils/index.js';
69
69
  export { migrateConfig, migrateLegacyPortlet } from './utils/configMigration.js';
70
70
  export { captureThumbnail, isThumbnailCaptureAvailable, warnIfScreenshotLibMissing } from './utils/thumbnail.js';
71
- export { exportPortletToXlsx, isExportAvailable, warnIfExcelJsMissing } from './utils/exportXlsx.js';
71
+ export { exportPortletToXlsx, isExportAvailable, portletXlsxFilename, warnIfExcelJsMissing } from './utils/exportXlsx.js';
72
72
  export { createDashboardExport, serializeDashboardExport, parseDashboardExport, readDashboardExportFile, downloadDashboardExport, dashboardExportFilename, normalizeDashboardConfigForExport, } from './utils/dashboardExport.js';
73
73
  export type { DashboardExportFile, DashboardImportResult, DashboardImportError, DashboardImportWarning, } from './utils/dashboardExport.js';
74
74
  export type { DashboardImportExportState, PendingDashboardImport, FailedDashboardImport, } from './hooks/dashboard/useDashboardImportExport.js';
@@ -580,6 +580,8 @@ export interface AnalyticsPortletProps {
580
580
  }) => void;
581
581
  /** Reports when the portlet's rows were computed and whether it is fetching, on every change. */
582
582
  onFreshnessChange?: (freshness: PortletFreshness) => void;
583
+ /** Passed to the chart as `ChartProps.onExportReady`. */
584
+ onExportReady?: (handler: ChartExportHandler | null) => void;
583
585
  }
584
586
  /** Freshness of a portlet's data, as reported by `AnalyticsPortlet`. */
585
587
  export interface PortletFreshness {
@@ -665,6 +667,15 @@ export interface AnalyticsDashboardProps {
665
667
  */
666
668
  onPortletExpand?: (payload: PortletExpandPayload) => void;
667
669
  }
670
+ /**
671
+ * An export that a chart runs for the Download button of the dashboard card.
672
+ * `fileName` is the name that the built-in XLSX export gives to the file of
673
+ * the card, with its extension. The card shows the export in progress until
674
+ * the promise settles.
675
+ */
676
+ export type ChartExportHandler = (context: {
677
+ fileName: string;
678
+ }) => Promise<void>;
668
679
  export interface ChartProps {
669
680
  data: any[];
670
681
  chartConfig?: ChartAxisConfig;
@@ -690,6 +701,23 @@ export interface ChartProps {
690
701
  initialViewState?: unknown;
691
702
  /** Report the state that the chart keeps in its own instance, for example its page */
692
703
  onViewStateChange?: (state: unknown) => void;
704
+ /**
705
+ * Set only by a host that shows a Download action for the chart: the
706
+ * dashboard card, when `features.xlsExport` is enabled. The chart registers
707
+ * its export handler. The card then shows Download also without debug data,
708
+ * and the button calls the handler in place of the built-in export. Send
709
+ * `null` to remove the handler, also when the chart unmounts. Without this
710
+ * callback, the chart shows its own export control if it has one.
711
+ */
712
+ onExportReady?: (handler: ChartExportHandler | null) => void;
713
+ /**
714
+ * The id of the latest Refresh: `null` until the first Refresh, then a new
715
+ * id on each Refresh. A chart that loads its own data (`fetchesOwnData`)
716
+ * reads it to tell a Refresh from a remount. The dashboard portlet sends it
717
+ * to every chart. The AnalysisBuilder preview sends a new id only to a chart
718
+ * whose config sets `fetchesOwnData`.
719
+ */
720
+ refreshId?: string | null;
693
721
  }
694
722
  /**
695
723
  * Paging and sorting state a host drives on the chart's behalf.
@@ -1,5 +1,12 @@
1
1
  import { XlsExportFeatureConfig } from '../types.js';
2
2
  import { PortletDebugDataEntry } from '../stores/dashboardStore.js';
3
+ /**
4
+ * The file name that `exportPortletToXlsx` gives to the file of a portlet:
5
+ * the title as a slug (default: `export`), the date and a random suffix.
6
+ * The dashboard card sends it to a `ChartExportHandler`, so a chart that
7
+ * writes its own file names it in the same way.
8
+ */
9
+ export declare function portletXlsxFilename(portletTitle?: string): string;
3
10
  /**
4
11
  * Check if XLSX export is available (ExcelJS installed)
5
12
  */
@@ -8,7 +8,7 @@ export * from './syntaxHighlighting.js';
8
8
  export * from './comparisonUtils.js';
9
9
  export * from './gapFilling.js';
10
10
  export { captureThumbnail, isThumbnailCaptureAvailable } from './thumbnail.js';
11
- export { exportPortletToXlsx, isExportAvailable } from './exportXlsx.js';
11
+ export { exportPortletToXlsx, isExportAvailable, portletXlsxFilename } from './exportXlsx.js';
12
12
  export { createDashboardExport, serializeDashboardExport, parseDashboardExport, readDashboardExportFile, downloadDashboardExport, dashboardExportFilename, normalizeDashboardConfigForExport, } from './dashboardExport.js';
13
13
  export type { DashboardExportFile, DashboardImportResult, DashboardImportError, DashboardImportWarning, } from './dashboardExport.js';
14
14
  /**
@@ -177,6 +177,18 @@ export interface ChartTypeConfig {
177
177
  useCase?: string;
178
178
  /** Whether this chart type skips query requirements (for content-based charts like markdown) */
179
179
  skipQuery?: boolean;
180
+ /**
181
+ * The chart loads its own data. The dashboard portlet and the
182
+ * AnalysisBuilder preview do not fetch. They still build the effective
183
+ * query (dashboard filters, universal time filter, drill) and pass it to
184
+ * the chart as `queryObject`. The chart owns its loading, error and empty
185
+ * states, and the portlet shows no XLSX download and no debug data for it.
186
+ * A Refresh sends a new `refreshId` to the chart and does not reload the
187
+ * Cube query. A portlet or a preview with more than one query (a
188
+ * multi-query, funnel, flow or retention analysis) shows a message in place
189
+ * of the chart, because the chart reads one query only.
190
+ */
191
+ fetchesOwnData?: boolean;
180
192
  /** Configuration for which elements support clicking (for drill-down) */
181
193
  clickableElements?: ClickableElementsConfig;
182
194
  /**
@@ -13,5 +13,5 @@ export type { LazyChartProps } from './charts/ChartLoader.js';
13
13
  export { getChartConfigAsync, getChartConfigSync, useChartConfig, isChartConfigLoaded, preloadChartConfig, preloadChartConfigs, loadAllChartConfigs, clearChartConfigCache } from './charts/lazyChartConfigRegistry.js';
14
14
  export { formatChartData } from './utils/index.js';
15
15
  export { CHART_COLORS, POSITIVE_COLOR, NEGATIVE_COLOR, CHART_MARGINS } from './utils/chartConstants.js';
16
- export type { ChartType, ChartAxisConfig, ChartDisplayConfig, ChartProps, ColorPalette } from './types.js';
16
+ export type { ChartType, ChartAxisConfig, ChartDisplayConfig, ChartProps, ChartExportHandler, ColorPalette } from './types.js';
17
17
  export type { ChartTypeConfig, ChartConfigBuildContext, DisplayOptionConfig, AxisDropZoneConfig } from './charts/chartConfigs.js';
@@ -1,15 +1,15 @@
1
- import { _ as e, c as t, d as n, f as r, l as i, m as a, p as o, u as s } from "./chunks/chartComponentRegistry-BVeOQaSR.js";
2
- import { a as c, i as l, n as u, o as d, r as f, s as p, t as m } from "./chunks/charts-loader-C5E1UrqB.js";
1
+ import { _ as e, c as t, d as n, f as r, l as i, m as a, p as o, u as s } from "./chunks/chartComponentRegistry-B6jUklcw.js";
2
+ import { a as c, i as l, n as u, o as d, r as f, s as p, t as m } from "./chunks/charts-loader-Bt00isFs.js";
3
3
  import { a as h, i as g, r as _, t as v } from "./chunks/chartConstants-CeG7zZmB.js";
4
4
  import { i as y } from "./chunks/utils-CToHkuhU.js";
5
- import { t as b } from "./chunks/chart-bar-J-O7Fdzo.js";
6
- import { t as x } from "./chunks/chart-line-DHPFzMBk.js";
7
- import { t as S } from "./chunks/chart-area-uKNDmXki.js";
8
- import { t as C } from "./chunks/chart-pie-CFDUrh26.js";
9
- import { t as w } from "./chunks/chart-scatter-Dy3zhJ0s.js";
10
- import { t as T } from "./chunks/chart-radar-C9gpwnf2.js";
11
- import { t as E } from "./chunks/chart-radial-bar-B-CXDHTD.js";
12
- import { t as D } from "./chunks/chart-tree-map-B_iEqAl4.js";
13
- import { t as O } from "./chunks/chart-data-table-CDMTU9F4.js";
14
- import { t as k } from "./chunks/chart-funnel-C18WiJ9P.js";
5
+ import { t as b } from "./chunks/chart-bar-D2qp_vsO.js";
6
+ import { t as x } from "./chunks/chart-line-Bl-bSP0Y.js";
7
+ import { t as S } from "./chunks/chart-area-BRLlLtIX.js";
8
+ import { t as C } from "./chunks/chart-pie-3IGIOniI.js";
9
+ import { t as w } from "./chunks/chart-scatter-BES9g5kG.js";
10
+ import { t as T } from "./chunks/chart-radar-Md5BwLhY.js";
11
+ import { t as E } from "./chunks/chart-radial-bar-Bfb-gGm6.js";
12
+ import { t as D } from "./chunks/chart-tree-map-CkvUBqNw.js";
13
+ import { t as O } from "./chunks/chart-data-table-DIghSvZN.js";
14
+ import { t as k } from "./chunks/chart-funnel-CvVQTMej.js";
15
15
  export { v as CHART_COLORS, _ as CHART_MARGINS, O as DataTable, k as FunnelChart, m as LazyChart, g as NEGATIVE_COLOR, h as POSITIVE_COLOR, S as RechartsAreaChart, b as RechartsBarChart, x as RechartsLineChart, C as RechartsPieChart, T as RechartsRadarChart, E as RechartsRadialBarChart, w as RechartsScatterChart, D as RechartsTreeMapChart, t as clearChartConfigCache, y as formatChartData, u as getAvailableChartTypes, i as getChartConfigAsync, s as getChartConfigSync, f as getUnavailableChartTypes, n as isChartConfigLoaded, l as isChartTypeAvailable, c as isValidChartType, r as loadAllChartConfigs, d as preloadChart, o as preloadChartConfig, a as preloadChartConfigs, p as preloadCharts, e as useChartConfig };
@@ -2,7 +2,7 @@ import { i as e } from "./chartUtils-BDj8NT4c.js";
2
2
  import { n as t, r as n } from "./chartConstants-CeG7zZmB.js";
3
3
  import { t as r } from "./quantize-CaQkhIo6.js";
4
4
  import { o as i, s as a, t as o } from "./BubbleChart.helpers-CaDSYRlF.js";
5
- import { t as s } from "./chart-activity-grid-Tma6prYa.js";
5
+ import { t as s } from "./chart-activity-grid-CIzCAMX9.js";
6
6
  //#region node_modules/d3-array/src/min.js
7
7
  function c(e, t) {
8
8
  let n;
@@ -294,4 +294,4 @@ function F(e) {
294
294
  //#endregion
295
295
  export { S as a, s as default, b as i, w as n, x as r, F as t };
296
296
 
297
- //# sourceMappingURL=ActivityGridChart-t6JS9q1q.js.map
297
+ //# sourceMappingURL=ActivityGridChart-sfYPWaLI.js.map