drizzle-cube 0.7.1 → 0.8.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 (287) hide show
  1. package/dist/adapters/ActivityGridChart.config-BQhBE_Mr.js +2 -0
  2. package/dist/adapters/ActivityGridChart.config-C3tSuOGV.cjs +1 -0
  3. package/dist/adapters/AreaChart.config-3cme8HyQ.js +2 -0
  4. package/dist/adapters/AreaChart.config-BSxrT52Z.cjs +1 -0
  5. package/dist/adapters/BarChart.config-BKS8IecE.cjs +1 -0
  6. package/dist/adapters/BarChart.config-lt_7PdIi.js +2 -0
  7. package/dist/adapters/BoxPlotChart.config-B7qvRnrF.cjs +1 -0
  8. package/dist/adapters/BoxPlotChart.config-Dv6ECj2j.js +2 -0
  9. package/dist/adapters/BubbleChart.config-BrIH7OAy.cjs +1 -0
  10. package/dist/adapters/BubbleChart.config-Fhotb7Pg.js +2 -0
  11. package/dist/adapters/CandlestickChart.config-CWH41FmF.cjs +1 -0
  12. package/dist/adapters/CandlestickChart.config-RPtXuxsX.js +2 -0
  13. package/dist/adapters/DataTable.config-71L0GzlT.js +2 -0
  14. package/dist/adapters/DataTable.config-BsOMQq3J.cjs +1 -0
  15. package/dist/adapters/FunnelChart.config-Cqte9C04.cjs +1 -0
  16. package/dist/adapters/FunnelChart.config-DJtwWeNz.js +2 -0
  17. package/dist/adapters/GaugeChart.config-WkwZ9VdS.cjs +1 -0
  18. package/dist/adapters/GaugeChart.config-vpVQlP5B.js +2 -0
  19. package/dist/adapters/HeatMapChart.config-DcmkDl07.cjs +1 -0
  20. package/dist/adapters/HeatMapChart.config-DsmMgGxJ.js +2 -0
  21. package/dist/adapters/KpiDelta.config-DVy561BH.js +2 -0
  22. package/dist/adapters/KpiDelta.config-dpqwLHNE.cjs +1 -0
  23. package/dist/adapters/KpiNumber.config-927l8nq8.js +2 -0
  24. package/dist/adapters/KpiNumber.config-BqFBMfPf.cjs +1 -0
  25. package/dist/adapters/KpiText.config-C-fZXuHq.cjs +1 -0
  26. package/dist/adapters/KpiText.config-CWoXuhMA.js +2 -0
  27. package/dist/adapters/LineChart.config-DTp7pqOY.js +2 -0
  28. package/dist/adapters/LineChart.config-DUGvSjcH.cjs +1 -0
  29. package/dist/adapters/MarkdownChart.config-23Dmv2Ty.cjs +1 -0
  30. package/dist/adapters/MarkdownChart.config-Cb2TnS0I.js +2 -0
  31. package/dist/adapters/MeasureProfileChart.config-B2qbWdhy.cjs +1 -0
  32. package/dist/adapters/MeasureProfileChart.config-CvBCeI5b.js +2 -0
  33. package/dist/adapters/PieChart.config-BzJb13QA.js +2 -0
  34. package/dist/adapters/PieChart.config-plCn5Ehr.cjs +1 -0
  35. package/dist/adapters/ProportionBarChart.config-1r-_moBH.cjs +1 -0
  36. package/dist/adapters/ProportionBarChart.config-CN6TtHTp.js +2 -0
  37. package/dist/adapters/RadarChart.config-BYhdj9M7.js +2 -0
  38. package/dist/adapters/RadarChart.config-CeUMP-1g.cjs +1 -0
  39. package/dist/adapters/RadialBarChart.config-B88yXNsq.cjs +1 -0
  40. package/dist/adapters/RadialBarChart.config-ZMK9HMoh.js +2 -0
  41. package/dist/adapters/RetentionCombinedChart.config-B5yvgUHM.cjs +1 -0
  42. package/dist/adapters/RetentionCombinedChart.config-Dd-YMdK8.js +2 -0
  43. package/dist/adapters/RetentionHeatmap.config-BYzDleoV.cjs +1 -0
  44. package/dist/adapters/RetentionHeatmap.config-Dvj7yTB0.js +2 -0
  45. package/dist/adapters/SankeyChart.config-CPFRmgFb.cjs +1 -0
  46. package/dist/adapters/SankeyChart.config-ClgqXM1N.js +2 -0
  47. package/dist/adapters/ScatterChart.config-CvJiqPa5.cjs +1 -0
  48. package/dist/adapters/ScatterChart.config-DLZ3rYMq.js +2 -0
  49. package/dist/adapters/SunburstChart.config-C_1V5hoQ.cjs +1 -0
  50. package/dist/adapters/SunburstChart.config-FNU75NCg.js +2 -0
  51. package/dist/adapters/TreeMapChart.config-CprZk_YF.js +2 -0
  52. package/dist/adapters/TreeMapChart.config-DNwd0ge9.cjs +1 -0
  53. package/dist/adapters/WaterfallChart.config-BBhcN_Fh.cjs +1 -0
  54. package/dist/adapters/WaterfallChart.config-H7s6SSV3.js +2 -0
  55. package/dist/adapters/{compiler-BNjqYdmc.cjs → compiler-BaLO10VN.cjs} +7 -7
  56. package/dist/adapters/{compiler-DiYxWAKg.js → compiler-CQJ5GOwF.js} +286 -119
  57. package/dist/adapters/core/http-port.d.ts +34 -7
  58. package/dist/adapters/core/index.cjs +1 -1
  59. package/dist/adapters/core/index.d.ts +1 -0
  60. package/dist/adapters/core/index.js +2 -2
  61. package/dist/adapters/core/rest-handlers.d.ts +1 -1
  62. package/dist/adapters/{core-BOPRmxPc.js → core-DXkuSUBg.js} +80 -64
  63. package/dist/adapters/core-DgTGXxDu.cjs +1 -0
  64. package/dist/adapters/express/index.cjs +2 -2
  65. package/dist/adapters/express/index.d.ts +11 -2
  66. package/dist/adapters/express/index.js +14 -14
  67. package/dist/adapters/fastify/index.cjs +2 -2
  68. package/dist/adapters/fastify/index.d.ts +11 -2
  69. package/dist/adapters/fastify/index.js +12 -12
  70. package/dist/adapters/{handler-DGud-C-w.js → handler-CphYSZRh.js} +74 -74
  71. package/dist/adapters/{handler-m6WgA9xu.cjs → handler-DrRT6c14.cjs} +8 -8
  72. package/dist/adapters/hono/index.cjs +1 -1
  73. package/dist/adapters/hono/index.js +9 -9
  74. package/dist/adapters/mcp-tools-handlers.d.ts +10 -3
  75. package/dist/adapters/mcp-tools.cjs +1 -1
  76. package/dist/adapters/mcp-tools.js +18 -20
  77. package/dist/adapters/mcp-transport-BGkSz-ZT.cjs +40 -0
  78. package/dist/adapters/mcp-transport-fJud19xz.js +606 -0
  79. package/dist/adapters/mcp-transport.d.ts +13 -2
  80. package/dist/adapters/nextjs/index.cjs +1 -1
  81. package/dist/adapters/nextjs/index.d.ts +5 -2
  82. package/dist/adapters/nextjs/index.js +32 -32
  83. package/dist/adapters/{openai-CGJM6Qun.js → openai-CBrN4nxl.js} +2 -2
  84. package/dist/adapters/{openai-Dwt9bxOE.cjs → openai-CI9vGKSf.cjs} +1 -1
  85. package/dist/adapters/{openai-CmdN7Sj1.cjs → openai-CSzWluuv.cjs} +1 -1
  86. package/dist/{server/openai-Czk1BdHa.js → adapters/openai-D-VMcPao.js} +1 -1
  87. package/dist/adapters/{utils-BoOeig94.cjs → utils-BY0-KFyI.cjs} +2 -2
  88. package/dist/adapters/{utils-DboNUT3A.js → utils-DkmShl5f.js} +23 -20
  89. package/dist/adapters/utils.cjs +1 -1
  90. package/dist/adapters/utils.d.ts +2 -2
  91. package/dist/adapters/utils.js +1 -1
  92. package/dist/cjs/adapters/core/http-port.d.ts +34 -7
  93. package/dist/cjs/adapters/core/index.d.ts +1 -0
  94. package/dist/cjs/adapters/core/rest-handlers.d.ts +1 -1
  95. package/dist/cjs/adapters/express/index.d.ts +11 -2
  96. package/dist/cjs/adapters/fastify/index.d.ts +11 -2
  97. package/dist/cjs/adapters/mcp-tools-handlers.d.ts +10 -3
  98. package/dist/cjs/adapters/mcp-transport.d.ts +13 -2
  99. package/dist/cjs/adapters/nextjs/index.d.ts +5 -2
  100. package/dist/cjs/adapters/utils.d.ts +2 -2
  101. package/dist/cjs/server/adapters/base-adapter.d.ts +46 -0
  102. package/dist/cjs/server/adapters/databend-adapter.d.ts +5 -0
  103. package/dist/cjs/server/adapters/duckdb-adapter.d.ts +5 -0
  104. package/dist/cjs/server/adapters/mysql-adapter.d.ts +14 -0
  105. package/dist/cjs/server/adapters/postgres-adapter.d.ts +15 -0
  106. package/dist/cjs/server/adapters/snowflake-adapter.d.ts +6 -0
  107. package/dist/cjs/server/adapters/sqlite-adapter.d.ts +21 -0
  108. package/dist/cjs/server/attribute-dimensions.d.ts +99 -0
  109. package/dist/cjs/server/cache-utils.d.ts +5 -1
  110. package/dist/cjs/server/compiler-metadata.d.ts +24 -3
  111. package/dist/cjs/server/compiler.d.ts +157 -10
  112. package/dist/cjs/server/execution/query-result-cache.d.ts +1 -1
  113. package/dist/cjs/server/index.d.ts +11 -3
  114. package/dist/cjs/server/query-handlers.d.ts +1 -1
  115. package/dist/cjs/server/types/core.d.ts +8 -0
  116. package/dist/cjs/server/types/cube.d.ts +27 -2
  117. package/dist/client/charts.js +12 -12
  118. package/dist/client/chunks/{DashboardEditModal-BOfLdTgV.js → DashboardEditModal-9An5EDAz.js} +12 -12
  119. package/dist/client/chunks/{DashboardEditModal-BOfLdTgV.js.map → DashboardEditModal-9An5EDAz.js.map} +1 -1
  120. package/dist/client/chunks/{ProportionBarChart-DwoXU5VP.js → ProportionBarChart-BVcbGY2C.js} +3 -3
  121. package/dist/client/chunks/{ProportionBarChart-DwoXU5VP.js.map → ProportionBarChart-BVcbGY2C.js.map} +1 -1
  122. package/dist/client/chunks/{RetentionCombinedChart-BqlSV7yF.js → RetentionCombinedChart-D68Rvdi-.js} +3 -3
  123. package/dist/client/chunks/{RetentionCombinedChart-BqlSV7yF.js.map → RetentionCombinedChart-D68Rvdi-.js.map} +1 -1
  124. package/dist/client/chunks/{RetentionHeatmap-VdVkBg8Q.js → RetentionHeatmap-CE7BAjrB.js} +2 -2
  125. package/dist/client/chunks/{RetentionHeatmap-VdVkBg8Q.js.map → RetentionHeatmap-CE7BAjrB.js.map} +1 -1
  126. package/dist/client/chunks/{analysis-builder-DXw60SEs.js → analysis-builder-D1pYvvwc.js} +9 -9
  127. package/dist/client/chunks/{analysis-builder-DXw60SEs.js.map → analysis-builder-D1pYvvwc.js.map} +1 -1
  128. package/dist/client/chunks/{analysis-builder-shared-CEvHIlmk.js → analysis-builder-shared-BQvwUc6z.js} +9 -9
  129. package/dist/client/chunks/{analysis-builder-shared-CEvHIlmk.js.map → analysis-builder-shared-BQvwUc6z.js.map} +1 -1
  130. package/dist/client/chunks/{chart-activity-grid-4jfS8khG.js → chart-activity-grid-DvD_4wJz.js} +5 -2
  131. package/dist/client/chunks/chart-activity-grid-DvD_4wJz.js.map +1 -0
  132. package/dist/client/chunks/{chart-area-Dol6s9no.js → chart-area-DPp3hSOK.js} +2 -2
  133. package/dist/client/chunks/{chart-area-Dol6s9no.js.map → chart-area-DPp3hSOK.js.map} +1 -1
  134. package/dist/client/chunks/{chart-bar-5_niozi2.js → chart-bar-Od3pOyZ0.js} +3 -3
  135. package/dist/client/chunks/{chart-bar-5_niozi2.js.map → chart-bar-Od3pOyZ0.js.map} +1 -1
  136. package/dist/client/chunks/{chart-box-plot-Dhp-VwhD.js → chart-box-plot-l0iFn2n2.js} +2 -2
  137. package/dist/client/chunks/{chart-box-plot-Dhp-VwhD.js.map → chart-box-plot-l0iFn2n2.js.map} +1 -1
  138. package/dist/client/chunks/{chart-bubble-BM2BAMSo.js → chart-bubble-Dl0RcP8N.js} +2 -2
  139. package/dist/client/chunks/{chart-bubble-BM2BAMSo.js.map → chart-bubble-Dl0RcP8N.js.map} +1 -1
  140. package/dist/client/chunks/{chart-candlestick-BNwLIBfm.js → chart-candlestick-DZMqbscF.js} +2 -2
  141. package/dist/client/chunks/{chart-candlestick-BNwLIBfm.js.map → chart-candlestick-DZMqbscF.js.map} +1 -1
  142. package/dist/client/chunks/{chart-data-table-DoDHQRe7.js → chart-data-table-DgiNBOWf.js} +3 -3
  143. package/dist/client/chunks/chart-data-table-DgiNBOWf.js.map +1 -0
  144. package/dist/client/chunks/{chart-funnel-Cd7da_sa.js → chart-funnel-YLZlyN1X.js} +2 -2
  145. package/dist/client/chunks/{chart-funnel-Cd7da_sa.js.map → chart-funnel-YLZlyN1X.js.map} +1 -1
  146. package/dist/client/chunks/{chart-gauge-DOpul-Oz.js → chart-gauge-BsqE2wwF.js} +3 -3
  147. package/dist/client/chunks/{chart-gauge-DOpul-Oz.js.map → chart-gauge-BsqE2wwF.js.map} +1 -1
  148. package/dist/client/chunks/{chart-heat-map-CeKbK655.js → chart-heat-map-BsND8RM_.js} +3 -3
  149. package/dist/client/chunks/{chart-heat-map-CeKbK655.js.map → chart-heat-map-BsND8RM_.js.map} +1 -1
  150. package/dist/client/chunks/{chart-kpi-delta-Dq8qUOOT.js → chart-kpi-delta-m0azuva-.js} +3 -3
  151. package/dist/client/chunks/{chart-kpi-delta-Dq8qUOOT.js.map → chart-kpi-delta-m0azuva-.js.map} +1 -1
  152. package/dist/client/chunks/{chart-kpi-number-DgiqTi9g.js → chart-kpi-number-6JS15SqF.js} +5 -5
  153. package/dist/client/chunks/{chart-kpi-number-DgiqTi9g.js.map → chart-kpi-number-6JS15SqF.js.map} +1 -1
  154. package/dist/client/chunks/{chart-kpi-text-CsZMVEnM.js → chart-kpi-text-BqX8p8Jn.js} +3 -3
  155. package/dist/client/chunks/{chart-kpi-text-CsZMVEnM.js.map → chart-kpi-text-BqX8p8Jn.js.map} +1 -1
  156. package/dist/client/chunks/{chart-line-DlwOB7C7.js → chart-line-NCmpxBfE.js} +3 -3
  157. package/dist/client/chunks/{chart-line-DlwOB7C7.js.map → chart-line-NCmpxBfE.js.map} +1 -1
  158. package/dist/client/chunks/{chart-markdown-DPE34SjC.js → chart-markdown-ZOobqiiX.js} +2 -2
  159. package/dist/client/chunks/{chart-markdown-DPE34SjC.js.map → chart-markdown-ZOobqiiX.js.map} +1 -1
  160. package/dist/client/chunks/{chart-measure-profile-BpTz1fce.js → chart-measure-profile-CBAZaicJ.js} +3 -3
  161. package/dist/client/chunks/{chart-measure-profile-BpTz1fce.js.map → chart-measure-profile-CBAZaicJ.js.map} +1 -1
  162. package/dist/client/chunks/{chart-pie-FGw66XAH.js → chart-pie-ChrasEI8.js} +3 -3
  163. package/dist/client/chunks/{chart-pie-FGw66XAH.js.map → chart-pie-ChrasEI8.js.map} +1 -1
  164. package/dist/client/chunks/{chart-radar-D-eRDoiA.js → chart-radar-CxSVF7yL.js} +3 -3
  165. package/dist/client/chunks/{chart-radar-D-eRDoiA.js.map → chart-radar-CxSVF7yL.js.map} +1 -1
  166. package/dist/client/chunks/{chart-radial-bar-DgtkNTs3.js → chart-radial-bar--SN0Wph0.js} +3 -3
  167. package/dist/client/chunks/{chart-radial-bar-DgtkNTs3.js.map → chart-radial-bar--SN0Wph0.js.map} +1 -1
  168. package/dist/client/chunks/{chart-sankey-D0hhb_EQ.js → chart-sankey-CDOSGg9r.js} +2 -2
  169. package/dist/client/chunks/{chart-sankey-D0hhb_EQ.js.map → chart-sankey-CDOSGg9r.js.map} +1 -1
  170. package/dist/client/chunks/{chart-scatter-D9EcAiMQ.js → chart-scatter-DgcEF-kI.js} +3 -3
  171. package/dist/client/chunks/{chart-scatter-D9EcAiMQ.js.map → chart-scatter-DgcEF-kI.js.map} +1 -1
  172. package/dist/client/chunks/{chart-sunburst-DCYmJ5DU.js → chart-sunburst-MB-jlGBm.js} +3 -3
  173. package/dist/client/chunks/{chart-sunburst-DCYmJ5DU.js.map → chart-sunburst-MB-jlGBm.js.map} +1 -1
  174. package/dist/client/chunks/{chart-tree-map-D_ACSSiB.js → chart-tree-map-DeDXveVd.js} +3 -3
  175. package/dist/client/chunks/{chart-tree-map-D_ACSSiB.js.map → chart-tree-map-DeDXveVd.js.map} +1 -1
  176. package/dist/client/chunks/{chart-waterfall-CVUVNa1R.js → chart-waterfall-ur4vkO1j.js} +3 -3
  177. package/dist/client/chunks/{chart-waterfall-CVUVNa1R.js.map → chart-waterfall-ur4vkO1j.js.map} +1 -1
  178. package/dist/client/chunks/{charts-core-BPD_hLaL.js → charts-core-BAH5pkSB.js} +2 -2
  179. package/dist/client/chunks/{charts-core-BPD_hLaL.js.map → charts-core-BAH5pkSB.js.map} +1 -1
  180. package/dist/client/chunks/charts-loader-eToV8je7.js +85 -0
  181. package/dist/client/chunks/{charts-loader-CwMcOfwT.js.map → charts-loader-eToV8je7.js.map} +1 -1
  182. package/dist/client/chunks/{exceljs.min-DWC_b8G9.js → exceljs.min-CiByP8VQ.js} +2 -3
  183. package/dist/client/chunks/{exceljs.min-DWC_b8G9.js.map → exceljs.min-CiByP8VQ.js.map} +1 -1
  184. package/dist/client/chunks/{nl-NL-DFLVORiD.js → nl-NL-CMXHDBr0.js} +4 -1
  185. package/dist/client/chunks/nl-NL-CMXHDBr0.js.map +1 -0
  186. package/dist/client/chunks/{schema-visualization-C6g_LCiA.js → schema-visualization-BEbFtUIL.js} +3 -3
  187. package/dist/client/chunks/{schema-visualization-C6g_LCiA.js.map → schema-visualization-BEbFtUIL.js.map} +1 -1
  188. package/dist/client/chunks/{useDirtyStateTracking-ZfChDEd3.js → useDirtyStateTracking-CSDg96Rw.js} +4 -4
  189. package/dist/client/chunks/{useDirtyStateTracking-ZfChDEd3.js.map → useDirtyStateTracking-CSDg96Rw.js.map} +1 -1
  190. package/dist/client/chunks/{useExplainAI-im9e1rVb.js → useExplainAI-BnkoZ-zS.js} +4 -4
  191. package/dist/client/chunks/{useExplainAI-im9e1rVb.js.map → useExplainAI-BnkoZ-zS.js.map} +1 -1
  192. package/dist/client/chunks/{vendor-Qa1s8oSX.js → vendor-BmJDaduD.js} +2 -2
  193. package/dist/client/chunks/vendor-BmJDaduD.js.map +1 -0
  194. package/dist/client/components.js +1 -1
  195. package/dist/client/hooks.js +3 -3
  196. package/dist/client/icons.js +1 -1
  197. package/dist/client/index.js +13 -13
  198. package/dist/client/providers.js +1 -1
  199. package/dist/client/schema.js +1 -1
  200. package/dist/client/utils.js +4 -4
  201. package/dist/client-bundle-stats.html +1 -1
  202. package/dist/mcp-app/mcp-app.html +43 -43
  203. package/dist/server/adapters/base-adapter.d.ts +46 -0
  204. package/dist/server/adapters/databend-adapter.d.ts +5 -0
  205. package/dist/server/adapters/duckdb-adapter.d.ts +5 -0
  206. package/dist/server/adapters/mysql-adapter.d.ts +14 -0
  207. package/dist/server/adapters/postgres-adapter.d.ts +15 -0
  208. package/dist/server/adapters/snowflake-adapter.d.ts +6 -0
  209. package/dist/server/adapters/sqlite-adapter.d.ts +21 -0
  210. package/dist/server/attribute-dimensions.d.ts +99 -0
  211. package/dist/server/cache-utils.d.ts +5 -1
  212. package/dist/server/compiler-metadata.d.ts +24 -3
  213. package/dist/server/compiler.d.ts +157 -10
  214. package/dist/server/execution/query-result-cache.d.ts +1 -1
  215. package/dist/server/index.cjs +39 -35
  216. package/dist/server/index.d.ts +11 -3
  217. package/dist/server/index.js +673 -477
  218. package/dist/{adapters/openai-Crp3X_zg.js → server/openai-6uUf7h-5.js} +1 -1
  219. package/dist/server/{openai-DBwI1OSu.cjs → openai-BBe1XbZd.cjs} +1 -1
  220. package/dist/server/{openai-Cu4TXXjl.cjs → openai-BmADmD1e.cjs} +1 -1
  221. package/dist/server/{openai-CUf4vc3Q.js → openai-C1gLuR-0.js} +1 -1
  222. package/dist/server/query-handlers.d.ts +1 -1
  223. package/dist/server/types/core.d.ts +8 -0
  224. package/dist/server/types/cube.d.ts +27 -2
  225. package/package.json +2 -2
  226. package/dist/adapters/ActivityGridChart.config-D6hhj345.cjs +0 -1
  227. package/dist/adapters/ActivityGridChart.config-QZKs_NYg.js +0 -2
  228. package/dist/adapters/AreaChart.config-B5XM6G22.js +0 -2
  229. package/dist/adapters/AreaChart.config-NP34BH5y.cjs +0 -1
  230. package/dist/adapters/BarChart.config-Bqlmr81N.js +0 -2
  231. package/dist/adapters/BarChart.config-C3bw-cAP.cjs +0 -1
  232. package/dist/adapters/BoxPlotChart.config-BOAvoj6x.cjs +0 -1
  233. package/dist/adapters/BoxPlotChart.config-CTXiycYY.js +0 -2
  234. package/dist/adapters/BubbleChart.config-CGFIkl4H.cjs +0 -1
  235. package/dist/adapters/BubbleChart.config-Njxx4Eq1.js +0 -2
  236. package/dist/adapters/CandlestickChart.config-BZ_yWaSo.cjs +0 -1
  237. package/dist/adapters/CandlestickChart.config-D4Svhmef.js +0 -2
  238. package/dist/adapters/DataTable.config-B-bT9puT.js +0 -2
  239. package/dist/adapters/DataTable.config-BHtt1cPM.cjs +0 -1
  240. package/dist/adapters/FunnelChart.config-C1e07O7B.cjs +0 -1
  241. package/dist/adapters/FunnelChart.config-CVEy0tV9.js +0 -2
  242. package/dist/adapters/GaugeChart.config-5PLNlQlu.js +0 -2
  243. package/dist/adapters/GaugeChart.config-Cdv6knjZ.cjs +0 -1
  244. package/dist/adapters/HeatMapChart.config-MGTfYpWJ.js +0 -2
  245. package/dist/adapters/HeatMapChart.config-jfBEi1ZI.cjs +0 -1
  246. package/dist/adapters/KpiDelta.config-D2IUsEYz.cjs +0 -1
  247. package/dist/adapters/KpiDelta.config-DT_MmAHw.js +0 -2
  248. package/dist/adapters/KpiNumber.config-ChgbKmx8.cjs +0 -1
  249. package/dist/adapters/KpiNumber.config-CvZ_FhyL.js +0 -2
  250. package/dist/adapters/KpiText.config-Bgkw8gr2.js +0 -2
  251. package/dist/adapters/KpiText.config-Bz9orqt6.cjs +0 -1
  252. package/dist/adapters/LineChart.config-BVew35dI.cjs +0 -1
  253. package/dist/adapters/LineChart.config-DSCCKXNg.js +0 -2
  254. package/dist/adapters/MarkdownChart.config-Bu6XUuhI.js +0 -2
  255. package/dist/adapters/MarkdownChart.config-E4aSVTf3.cjs +0 -1
  256. package/dist/adapters/MeasureProfileChart.config-BF249hc_.cjs +0 -1
  257. package/dist/adapters/MeasureProfileChart.config-lERVe38G.js +0 -2
  258. package/dist/adapters/PieChart.config-7Ujwp8R5.cjs +0 -1
  259. package/dist/adapters/PieChart.config-jQl2HIcA.js +0 -2
  260. package/dist/adapters/ProportionBarChart.config-o0w_Pnlt.js +0 -2
  261. package/dist/adapters/ProportionBarChart.config-phNohhhY.cjs +0 -1
  262. package/dist/adapters/RadarChart.config-BmrYBd9x.js +0 -2
  263. package/dist/adapters/RadarChart.config-Dlt3UflG.cjs +0 -1
  264. package/dist/adapters/RadialBarChart.config-CeEm8xRb.cjs +0 -1
  265. package/dist/adapters/RadialBarChart.config-Dishh6bC.js +0 -2
  266. package/dist/adapters/RetentionCombinedChart.config-BaD4ev85.cjs +0 -1
  267. package/dist/adapters/RetentionCombinedChart.config-m2FjBUi9.js +0 -2
  268. package/dist/adapters/RetentionHeatmap.config-DiMplGdk.js +0 -2
  269. package/dist/adapters/RetentionHeatmap.config-Dp6oYwQZ.cjs +0 -1
  270. package/dist/adapters/SankeyChart.config-C4Y6qzCS.cjs +0 -1
  271. package/dist/adapters/SankeyChart.config-CJHqgjQ1.js +0 -2
  272. package/dist/adapters/ScatterChart.config-C0QqvDrN.cjs +0 -1
  273. package/dist/adapters/ScatterChart.config-DywOsWPW.js +0 -2
  274. package/dist/adapters/SunburstChart.config-DE8RxpDR.cjs +0 -1
  275. package/dist/adapters/SunburstChart.config-DohowrO3.js +0 -2
  276. package/dist/adapters/TreeMapChart.config-D2gXz-zC.cjs +0 -1
  277. package/dist/adapters/TreeMapChart.config-HMlI29GG.js +0 -2
  278. package/dist/adapters/WaterfallChart.config-BO2WV2VB.js +0 -2
  279. package/dist/adapters/WaterfallChart.config-CzwGiheB.cjs +0 -1
  280. package/dist/adapters/core-CzFfrJzu.cjs +0 -1
  281. package/dist/adapters/mcp-transport-B0b27YUB.cjs +0 -40
  282. package/dist/adapters/mcp-transport-BXyA4dTk.js +0 -603
  283. package/dist/client/chunks/chart-activity-grid-4jfS8khG.js.map +0 -1
  284. package/dist/client/chunks/chart-data-table-DoDHQRe7.js.map +0 -1
  285. package/dist/client/chunks/charts-loader-CwMcOfwT.js +0 -85
  286. package/dist/client/chunks/nl-NL-DFLVORiD.js.map +0 -1
  287. package/dist/client/chunks/vendor-Qa1s8oSX.js.map +0 -1
@@ -24,9 +24,13 @@ export interface CacheKeyConfig {
24
24
  * @param query - The semantic query to cache
25
25
  * @param securityContext - Security context for tenant isolation
26
26
  * @param config - Cache key configuration
27
+ * @param cubeSetKey - Identifies the cube definitions behind the result. Always
28
+ * included when present: `includeSecurityContext: false` and a custom
29
+ * `securityContextSerializer` can each hash two tenants identically, so the
30
+ * security-context hash alone cannot keep differing cube sets apart.
27
31
  * @returns Deterministic cache key string
28
32
  */
29
- export declare function generateCacheKey(query: SemanticQuery, securityContext: SecurityContext, config?: CacheKeyConfig): string;
33
+ export declare function generateCacheKey(query: SemanticQuery, securityContext: SecurityContext, config?: CacheKeyConfig, cubeSetKey?: string): string;
30
34
  /**
31
35
  * Normalize query for consistent hashing
32
36
  * Sorts arrays and object keys to ensure same query = same hash
@@ -1,11 +1,32 @@
1
1
  import { Cube, MeasureMetadata, DimensionMetadata, CubeRelationshipMetadata, HierarchyMetadata, TimeGranularity } from './types/index.js';
2
2
  /** Default time granularities used when a time dimension omits `granularities`. */
3
3
  export declare const DEFAULT_TIME_GRANULARITIES: TimeGranularity[];
4
- /** Build measure metadata, normalizing drillMembers to fully-qualified names. */
4
+ /**
5
+ * Build measure metadata, normalizing drillMembers to fully-qualified names.
6
+ *
7
+ * Measures with `shown: false` are omitted from the result — matching Cube.js
8
+ * semantics, where a hidden measure remains fully usable in queries but is
9
+ * excluded from metadata/UI surfaces. `shown: undefined` means shown, so
10
+ * today's behaviour is preserved exactly.
11
+ */
5
12
  export declare function buildMeasureMetadata(cube: Cube): MeasureMetadata[];
6
- /** Build dimension metadata, including granularities for time dimensions. */
13
+ /**
14
+ * Build dimension metadata, including granularities for time dimensions.
15
+ *
16
+ * Dimensions with `shown: false` are omitted from the result — matching
17
+ * Cube.js semantics, where a hidden dimension remains fully usable in queries
18
+ * but is excluded from metadata/UI surfaces. `shown: undefined` means shown,
19
+ * so today's behaviour is preserved exactly.
20
+ */
7
21
  export declare function buildDimensionMetadata(cube: Cube): DimensionMetadata[];
8
22
  /** Build relationship metadata from a cube's joins, resolving target cubes. */
9
23
  export declare function buildRelationshipMetadata(cube: Cube, cubes: Map<string, Cube>, getColumnName: (column: any) => string): CubeRelationshipMetadata[];
10
- /** Build hierarchy metadata, qualifying level names to full member names. */
24
+ /**
25
+ * Build hierarchy metadata, qualifying level names to full member names.
26
+ *
27
+ * Levels referencing a dimension with `shown: false` are dropped, so a
28
+ * hierarchy never emits a dangling reference to a dimension that has been
29
+ * omitted from the cube's own dimension metadata. A hierarchy left with no
30
+ * visible levels is omitted entirely rather than published as empty.
31
+ */
11
32
  export declare function buildHierarchyMetadata(cube: Cube): HierarchyMetadata[];
@@ -1,9 +1,70 @@
1
1
  import { SemanticQuery, QueryResult, SecurityContext, DatabaseExecutor, CubeMetadata, Cube, QueryAnalysis, CacheConfig, ExplainOptions, ExplainResult, ExecutionOptions, RLSSetupFn } from './types/index.js';
2
2
  import { PlanOptimiser } from './logical-plan/index.js';
3
3
  export { validateQueryAgainstCubes } from './query-validator.js';
4
+ /**
5
+ * Identifier of the base cube set — the cubes registered with {@link
6
+ * SemanticLayerCompiler.registerCube}, shared by every tenant. The empty string
7
+ * is used so a set id can never collide with it (`registerCubeSet` rejects it).
8
+ */
9
+ export declare const BASE_CUBE_SET_ID = "";
10
+ /**
11
+ * Security context for deployments with no tenancy at all.
12
+ *
13
+ * Every cube-resolving method requires a `SecurityContext` so that omitting one
14
+ * is a compile error rather than a silent fall back to the wrong tenant's
15
+ * cubes. Single-tenant callers pass this constant to say "no tenancy here" out
16
+ * loud, instead of an anonymous `{}` that reads like an oversight.
17
+ */
18
+ export declare const SINGLE_TENANT_CONTEXT: SecurityContext;
19
+ /** Reported to `onCubeSetRegistered` after each {@link SemanticLayerCompiler.registerCubeSet}. */
20
+ export interface CubeSetRegistrationInfo {
21
+ /** The set that was registered. */
22
+ setId: string;
23
+ /** Cubes in the set after merging over the base set. */
24
+ cubeCount: number;
25
+ /** Total dimensions across those cubes — the number that explains a slow boot. */
26
+ dimensionCount: number;
27
+ /**
28
+ * Monotonic across the whole compiler — incremented on every registration of
29
+ * any set, never reset. Part of the cache key, so results computed from
30
+ * superseded definitions can never be served.
31
+ */
32
+ generation: number;
33
+ /** Wall-clock cost of this registration. */
34
+ durationMs: number;
35
+ }
36
+ /** Aggregate registration cost, for a single summary line after the boot loop. */
37
+ export interface CubeSetStats {
38
+ /** Number of registered sets, excluding the base set. */
39
+ setCount: number;
40
+ /** Total cubes across all sets (merged), excluding the base set. */
41
+ cubeCount: number;
42
+ /** Sum of every set's most recent registration time. */
43
+ totalRegistrationMs: number;
44
+ /** The most expensive set to register, if any sets are registered. */
45
+ slowestSet?: {
46
+ setId: string;
47
+ durationMs: number;
48
+ };
49
+ }
4
50
  export declare class SemanticLayerCompiler {
5
- private cubes;
6
- private metadataCache?;
51
+ /** Cubes shared by every tenant. */
52
+ private baseCubes;
53
+ /** Per-tenant overlays, keyed by cube-set id. */
54
+ private cubeSets;
55
+ /** Generated metadata per cube set (`BASE_CUBE_SET_ID` for the base set). */
56
+ private metadataCache;
57
+ /** Bumped on every base-set mutation; part of every set's cache key. */
58
+ private baseGeneration;
59
+ /**
60
+ * Monotonic registration counter, never reset. Used as each set's generation
61
+ * so that unregistering a set and registering a different one under the same
62
+ * id cannot reproduce an earlier cache key and serve its stale results.
63
+ */
64
+ private registrationCounter;
65
+ private contextToCubeSetId?;
66
+ private missingCubeSet;
67
+ private onCubeSetRegistered?;
7
68
  private cacheConfig?;
8
69
  private rlsSetup?;
9
70
  private planOptimiser?;
@@ -29,6 +90,25 @@ export declare class SemanticLayerCompiler {
29
90
  * Defaults to a no-op IdentityOptimiser when omitted.
30
91
  */
31
92
  planOptimiser?: PlanOptimiser;
93
+ /**
94
+ * Maps a security context to the cube set that serves it — drizzle-cube's
95
+ * equivalent of Cube's `contextToAppId`. Return `undefined` (or omit this
96
+ * option entirely) to serve the base set, which is the single-tenant
97
+ * behaviour and the default.
98
+ */
99
+ contextToCubeSetId?: (securityContext: SecurityContext) => string | number | undefined;
100
+ /**
101
+ * What to do when `contextToCubeSetId` names a set that is not registered.
102
+ * `'base'` (default) serves the base set; `'throw'` fails the request, for
103
+ * deployments where every tenant is required to have its own set.
104
+ */
105
+ missingCubeSet?: 'base' | 'throw';
106
+ /**
107
+ * Called after each `registerCubeSet` with its cost. Registering a set per
108
+ * tenant is real startup work, so it is reported rather than hidden; emit
109
+ * it to your own logger or metrics.
110
+ */
111
+ onCubeSetRegistered?: (info: CubeSetRegistrationInfo) => void;
32
112
  });
33
113
  /**
34
114
  * Set or update the database connection
@@ -65,12 +145,75 @@ export declare class SemanticLayerCompiler {
65
145
  * Validates calculated measures during registration
66
146
  */
67
147
  registerCube(cube: Cube): void;
148
+ /**
149
+ * Register the cubes that serve one tenant, overlaying the base set.
150
+ *
151
+ * Cubes are matched to the base set by name, so a set can either add cubes or
152
+ * replace a base cube with a tenant-specific version (the usual case for
153
+ * generated per-tenant dimensions). Call once per tenant at application boot;
154
+ * calling again for the same id replaces that set and invalidates its cached
155
+ * metadata and query results.
156
+ */
157
+ registerCubeSet(setId: string, cubes: Cube[]): void;
158
+ /**
159
+ * Remove a tenant's cube set. That tenant then resolves to the base set (or
160
+ * throws, under `missingCubeSet: 'throw'`).
161
+ * Returns true if the set existed.
162
+ */
163
+ unregisterCubeSet(setId: string): boolean;
164
+ /** Whether a cube set is registered for this id. */
165
+ hasCubeSet(setId: string): boolean;
166
+ /** Ids of every registered cube set, excluding the base set. */
167
+ getCubeSetIds(): string[];
168
+ /**
169
+ * Aggregate registration cost across all sets — for the single summary line
170
+ * worth logging after a boot loop.
171
+ */
172
+ getCubeSetStats(): CubeSetStats;
173
+ /**
174
+ * Validate and enrich a cube ahead of registration, against the cubes that
175
+ * will be visible alongside it.
176
+ */
177
+ private prepareCube;
178
+ /** Base cubes with an overlay applied over them, by cube name. */
179
+ private mergeWithBase;
180
+ /** Recompute every set's merged view — after any base-set mutation. */
181
+ private rebuildAllMergedSets;
182
+ /**
183
+ * Resolve the cube set serving this security context.
184
+ *
185
+ * Returns {@link BASE_CUBE_SET_ID} when no mapping is configured or the
186
+ * mapping yields nothing. A configured id that has no registered set falls
187
+ * back to the base set, or throws under `missingCubeSet: 'throw'`.
188
+ */
189
+ private resolveSetId;
190
+ /**
191
+ * The cubes this security context may see.
192
+ *
193
+ * This is the only path by which cube *contents* are read for a query,
194
+ * metadata, validation or MCP response — so no such path can reach a cube
195
+ * list without a security context. The returned map must be treated as
196
+ * read-only; it is the live merged view, not a copy.
197
+ */
198
+ private resolveCubes;
199
+ /**
200
+ * Cache-key component identifying which cube definitions produced a result.
201
+ *
202
+ * Appended unconditionally to every query cache key: the security-context
203
+ * hash is not enough, because `includeSecurityContext: false` and a custom
204
+ * `securityContextSerializer` can both hash two tenants identically. The
205
+ * generation makes re-registering a set invalidate its cached results, so a
206
+ * retyped or renamed dimension cannot be served stale for the TTL.
207
+ */
208
+ private cubeSetCacheKey;
68
209
  /**
69
210
  * Validate that all string-based cube references in joins resolve to registered cubes.
70
211
  * Call after all cubes are registered for strict startup validation.
71
212
  * Throws an error listing all unresolved references.
72
213
  */
73
214
  validateCubeReferences(): void;
215
+ /** Join targets naming a cube that is absent from the given cube scope. */
216
+ private unresolvedJoinRefs;
74
217
  /**
75
218
  * Validate calculated measures in a cube
76
219
  * Checks template syntax, dependency existence, and circular dependencies
@@ -79,15 +222,17 @@ export declare class SemanticLayerCompiler {
79
222
  /**
80
223
  * Get a cube by name
81
224
  */
82
- getCube(name: string): Cube | undefined;
225
+ getCube(name: string, securityContext: SecurityContext): Cube | undefined;
83
226
  /**
84
227
  * Get all registered cubes
85
228
  */
86
- getAllCubes(): Cube[];
229
+ getAllCubes(securityContext: SecurityContext): Cube[];
87
230
  /**
88
- * Get all cubes as a Map for multi-cube queries
231
+ * Get all cubes as a Map for multi-cube queries.
232
+ *
233
+ * Returns the live merged view for this context — treat it as read-only.
89
234
  */
90
- getAllCubesMap(): Map<string, Cube>;
235
+ getAllCubesMap(securityContext: SecurityContext): Map<string, Cube>;
91
236
  /**
92
237
  * Unified query execution method that handles both single and multi-cube queries
93
238
  * @param options.skipCache - Skip cache lookup (but still cache the fresh result)
@@ -107,7 +252,7 @@ export declare class SemanticLayerCompiler {
107
252
  * Uses caching to improve performance for repeated requests
108
253
  * Cache is invalidated when cubes are modified (registerCube, removeCube, clearCubes)
109
254
  */
110
- getMetadata(): CubeMetadata[];
255
+ getMetadata(securityContext: SecurityContext): CubeMetadata[];
111
256
  /**
112
257
  * Extract column name from Drizzle column reference
113
258
  * Handles different column types and extracts the actual column name
@@ -172,7 +317,7 @@ export declare class SemanticLayerCompiler {
172
317
  /**
173
318
  * Check if a cube exists
174
319
  */
175
- hasCube(name: string): boolean;
320
+ hasCube(name: string, securityContext: SecurityContext): boolean;
176
321
  /**
177
322
  * Unregister a cube by name.
178
323
  * Returns true if the cube existed and was removed, false if not found.
@@ -191,15 +336,17 @@ export declare class SemanticLayerCompiler {
191
336
  * Called whenever cubes are modified
192
337
  */
193
338
  private invalidateMetadataCache;
339
+ /** Cubes for an already-resolved set id. */
340
+ private cubeSetId2Cubes;
194
341
  /**
195
342
  * Get cube names
196
343
  */
197
- getCubeNames(): string[];
344
+ getCubeNames(securityContext: SecurityContext): string[];
198
345
  /**
199
346
  * Validate a query against registered cubes
200
347
  * Ensures all referenced cubes and fields exist
201
348
  */
202
- validateQuery(query: SemanticQuery): {
349
+ validateQuery(query: SemanticQuery, securityContext: SecurityContext): {
203
350
  isValid: boolean;
204
351
  errors: string[];
205
352
  };
@@ -6,7 +6,7 @@ export declare class QueryResultCache {
6
6
  * Returns the cache key when caching is enabled and a provider is configured,
7
7
  * otherwise undefined (which disables lookup and store).
8
8
  */
9
- generateKey(query: SemanticQuery, securityContext: SecurityContext): string | undefined;
9
+ generateKey(query: SemanticQuery, securityContext: SecurityContext, cubeSetKey?: string): string | undefined;
10
10
  /**
11
11
  * Look up a cached result. Returns the cached value (with cache metadata
12
12
  * attached) on a hit, or undefined on miss / bypass / no-cache. Emits
@@ -4,7 +4,10 @@ import { SemanticLayerCompiler } from './compiler.js';
4
4
  * Drizzle Cube - Semantic Layer for Drizzle ORM
5
5
  * Drizzle ORM-first semantic layer with Cube.js compatibility
6
6
  */
7
- export { SemanticLayerCompiler } from './compiler.js';
7
+ export { SemanticLayerCompiler, BASE_CUBE_SET_ID, SINGLE_TENANT_CONTEXT } from './compiler.js';
8
+ export type { CubeSetRegistrationInfo, CubeSetStats } from './compiler.js';
9
+ export { buildAttributeDimensions } from './attribute-dimensions.js';
10
+ export type { AttributeDefinition, AttributeValueType, BuildAttributeDimensionsOptions } from './attribute-dimensions.js';
8
11
  export { QueryExecutor } from './executor.js';
9
12
  export { detectQueryMode, detectQueryModes, getActiveQueryModes, hasComparisonMode, hasFunnelMode, hasFlowMode, hasRetentionMode } from './query-modes.js';
10
13
  export type { QueryMode, QueryModeFlags } from './query-modes.js';
@@ -29,8 +32,13 @@ export type { CubeDiscoveryResult, DiscoveryOptions, QuerySuggestion, Validation
29
32
  export type * from './types/index.js';
30
33
  export type { SQL } from 'drizzle-orm';
31
34
  /**
32
- * Create a new semantic layer instance with Drizzle integration
33
- * Use this when you need multiple isolated instances
35
+ * Create a new semantic layer instance with Drizzle integration.
36
+ *
37
+ * Use this when you need multiple isolated instances. To serve different cube
38
+ * definitions to different tenants from one instance, prefer cube sets —
39
+ * `new SemanticLayerCompiler({ contextToCubeSetId })` plus `registerCubeSet()`
40
+ * per tenant — which shares the base cubes and keeps metadata and result caches
41
+ * correctly partitioned.
34
42
  */
35
43
  export declare function createDrizzleSemanticLayer(options: {
36
44
  drizzle: DrizzleDatabase;
@@ -56,7 +56,7 @@ export interface DiscoverResponse {
56
56
  * Always returns `queryLanguageReference` and `dateFilteringGuide` alongside
57
57
  * the matched cubes. See `DiscoverResponse` for the rationale.
58
58
  */
59
- export declare function handleDiscover(semanticLayer: SemanticLayerCompiler, body: DiscoverRequest): Promise<DiscoverResponse>;
59
+ export declare function handleDiscover(semanticLayer: SemanticLayerCompiler, securityContext: SecurityContext, body: DiscoverRequest): Promise<DiscoverResponse>;
60
60
  /**
61
61
  * Normalize AI-generated query fields before validation/execution.
62
62
  * Fixes common LLM mistakes:
@@ -85,6 +85,14 @@ export interface SqlResult {
85
85
  export interface ExecutionOptions {
86
86
  /** Skip the cache lookup (but still cache the result for future requests) */
87
87
  skipCache?: boolean;
88
+ /**
89
+ * Identifies the cube definitions that produced the result, as
90
+ * `setId:baseGeneration.setGeneration`. Appended unconditionally to the query
91
+ * cache key so results can never be shared between tenants whose cube sets
92
+ * differ, nor survive a re-registration that changed a definition.
93
+ * Set by SemanticLayerCompiler; callers do not supply it.
94
+ */
95
+ cubeSetKey?: string;
88
96
  }
89
97
  /**
90
98
  * Core database interface that supports all Drizzle instances
@@ -64,6 +64,19 @@ export interface QueryContext {
64
64
  * without aggregation wrappers. Set from SemanticQuery.ungrouped.
65
65
  */
66
66
  ungrouped?: boolean;
67
+ /**
68
+ * Cast an expression to a type, in this engine's dialect (`::decimal` on
69
+ * Postgres, `CAST(... AS DECIMAL)` elsewhere). Strict: unparseable input
70
+ * fails the query on Postgres and silently yields `0` on MySQL/SQLite.
71
+ */
72
+ cast: (fieldExpr: AnyColumn | SQL, targetType: 'timestamp' | 'decimal' | 'integer') => SQL;
73
+ /**
74
+ * Cast an expression to a type, yielding NULL rather than failing when the
75
+ * input cannot be parsed. Use this over {@link QueryContext.cast} whenever
76
+ * the source column is free text — one dirty value should leave a row with a
77
+ * NULL cell, not fail the whole query.
78
+ */
79
+ tryCast: (fieldExpr: AnyColumn | SQL, targetType: 'timestamp' | 'decimal' | 'integer') => SQL;
67
80
  }
68
81
  /**
69
82
  * Multi-cube query context for cross-cube operations
@@ -147,7 +160,13 @@ export interface Dimension {
147
160
  sql: AnyColumn | SQL | ((ctx: QueryContext) => AnyColumn | SQL);
148
161
  /** Whether this is a primary key */
149
162
  primaryKey?: boolean;
150
- /** Whether to show in UI */
163
+ /**
164
+ * Whether to include this dimension in generated cube metadata (`/meta`,
165
+ * the client field picker, AI prompts). Defaults to `true` (shown) when
166
+ * omitted. Setting `shown: false` hides the dimension from metadata/UI
167
+ * only — it remains fully usable in queries and filters, matching Cube.js
168
+ * semantics for `shown: false`.
169
+ */
151
170
  shown?: boolean;
152
171
  /** Display format */
153
172
  format?: string;
@@ -182,7 +201,13 @@ export interface Measure {
182
201
  sql?: AnyColumn | SQL | ((ctx: QueryContext) => AnyColumn | SQL);
183
202
  /** Display format */
184
203
  format?: string;
185
- /** Whether to show in UI */
204
+ /**
205
+ * Whether to include this measure in generated cube metadata (`/meta`,
206
+ * the client field picker, AI prompts). Defaults to `true` (shown) when
207
+ * omitted. Setting `shown: false` hides the measure from metadata/UI
208
+ * only — it remains fully usable in queries and filters, matching Cube.js
209
+ * semantics for `shown: false`.
210
+ */
186
211
  shown?: boolean;
187
212
  /** Filters applied to this measure */
188
213
  filters?: Array<(ctx: QueryContext) => SQL>;
@@ -1,14 +1,14 @@
1
- import { ct as e, dt as t, ft as n, lt as r, mt as i, pt as a, st as o, t as s, ut as c } from "./chunks/chart-data-table-DoDHQRe7.js";
2
- import { d as l, l as u, s as d, u as f } from "./chunks/chart-activity-grid-4jfS8khG.js";
3
- import { t as p } from "./chunks/chart-funnel-Cd7da_sa.js";
4
- import { a as m, i as h, n as g, o as _, r as v, s as y, t as b } from "./chunks/charts-loader-CwMcOfwT.js";
5
- import { t as x } from "./chunks/chart-area-Dol6s9no.js";
1
+ import { ct as e, dt as t, ft as n, lt as r, mt as i, pt as a, st as o, t as s, ut as c } from "./chunks/chart-data-table-DgiNBOWf.js";
2
+ import { d as l, l as u, s as d, u as f } from "./chunks/chart-activity-grid-DvD_4wJz.js";
3
+ import { t as p } from "./chunks/chart-funnel-YLZlyN1X.js";
4
+ import { a as m, i as h, n as g, o as _, r as v, s as y, t as b } from "./chunks/charts-loader-eToV8je7.js";
5
+ import { t as x } from "./chunks/chart-area-DPp3hSOK.js";
6
6
  import { i as S } from "./chunks/utils-CToHkuhU.js";
7
- import { t as C } from "./chunks/chart-bar-5_niozi2.js";
8
- import { t as w } from "./chunks/chart-line-DlwOB7C7.js";
9
- import { t as T } from "./chunks/chart-pie-FGw66XAH.js";
10
- import { t as E } from "./chunks/chart-scatter-D9EcAiMQ.js";
11
- import { t as D } from "./chunks/chart-radar-D-eRDoiA.js";
12
- import { t as O } from "./chunks/chart-radial-bar-DgtkNTs3.js";
13
- import { t as k } from "./chunks/chart-tree-map-D_ACSSiB.js";
7
+ import { t as C } from "./chunks/chart-bar-Od3pOyZ0.js";
8
+ import { t as w } from "./chunks/chart-line-NCmpxBfE.js";
9
+ import { t as T } from "./chunks/chart-pie-ChrasEI8.js";
10
+ import { t as E } from "./chunks/chart-scatter-DgcEF-kI.js";
11
+ import { t as D } from "./chunks/chart-radar-CxSVF7yL.js";
12
+ import { t as O } from "./chunks/chart-radial-bar--SN0Wph0.js";
13
+ import { t as k } from "./chunks/chart-tree-map-DeDXveVd.js";
14
14
  export { d as CHART_COLORS, u as CHART_MARGINS, s as DataTable, p as FunnelChart, b as LazyChart, f as NEGATIVE_COLOR, l as POSITIVE_COLOR, x as RechartsAreaChart, C as RechartsBarChart, w as RechartsLineChart, T as RechartsPieChart, D as RechartsRadarChart, O as RechartsRadialBarChart, E as RechartsScatterChart, k as RechartsTreeMapChart, o as clearChartConfigCache, S as formatChartData, g as getAvailableChartTypes, e as getChartConfigAsync, r as getChartConfigSync, v as getUnavailableChartTypes, c as isChartConfigLoaded, h as isChartTypeAvailable, m as isValidChartType, t as loadAllChartConfigs, _ as preloadChart, n as preloadChartConfig, a as preloadChartConfigs, y as preloadCharts, i as useChartConfig };
@@ -1,16 +1,16 @@
1
- import { a as e, n as t, o as n, r, s as i, u as a } from "./vendor-Qa1s8oSX.js";
1
+ import { a as e, n as t, o as n, r, s as i, u as a } from "./vendor-BmJDaduD.js";
2
2
  import { n as o, t as s } from "./providers-DwQCKdGW.js";
3
- import { A as c, F as l, N as u, P as d, S as f, _ as p, j as m, k as h, mt as g, ot as _, v } from "./chart-data-table-DoDHQRe7.js";
4
- import { r as y } from "./chart-sankey-D0hhb_EQ.js";
3
+ import { A as c, F as l, N as u, P as d, S as f, _ as p, j as m, k as h, mt as g, ot as _, v } from "./chart-data-table-DgiNBOWf.js";
4
+ import { r as y } from "./chart-sankey-CDOSGg9r.js";
5
5
  import { a as b, l as x, s as S } from "./retention-ChW9jYdy.js";
6
- import { A as C, D as w, E as T, L as E, S as D, T as O, a as k, d as A, i as j, l as M, n as N, r as P, s as ee, t as F, u as I, w as L, x as te } from "./useDirtyStateTracking-ZfChDEd3.js";
7
- import { L as R, P as z, z as B } from "./chart-activity-grid-4jfS8khG.js";
8
- import { a as V, t as ne } from "./charts-loader-CwMcOfwT.js";
9
- import { H as re } from "./chart-area-Dol6s9no.js";
6
+ import { A as C, D as w, E as T, L as E, S as D, T as O, a as k, d as A, i as j, l as M, n as N, r as P, s as ee, t as F, u as I, w as L, x as te } from "./useDirtyStateTracking-CSDg96Rw.js";
7
+ import { L as R, P as z, z as B } from "./chart-activity-grid-DvD_4wJz.js";
8
+ import { a as V, t as ne } from "./charts-loader-eToV8je7.js";
9
+ import { H as re } from "./chart-area-DPp3hSOK.js";
10
10
  import { a as ie, t as ae } from "./syntaxHighlighting-Cm43as8i.js";
11
- import { n as oe, t as se } from "./charts-core-BPD_hLaL.js";
12
- import { n as ce } from "./chart-gauge-DOpul-Oz.js";
13
- import { t as le } from "./chart-markdown-DPE34SjC.js";
11
+ import { n as oe, t as se } from "./charts-core-BAH5pkSB.js";
12
+ import { n as ce } from "./chart-gauge-BsqE2wwF.js";
13
+ import { t as le } from "./chart-markdown-ZOobqiiX.js";
14
14
  import ue, { Component as de, Fragment as fe, Suspense as pe, createContext as H, forwardRef as me, lazy as he, memo as U, startTransition as ge, useCallback as W, useContext as _e, useEffect as G, useImperativeHandle as ve, useMemo as K, useRef as q, useState as J } from "react";
15
15
  import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
16
16
  import { createPortal as ye } from "react-dom";
@@ -10047,7 +10047,7 @@ var Zo = ({ isOpen: e, onClose: t, title: n, size: r = "md", closeOnBackdropClic
10047
10047
  ]
10048
10048
  })
10049
10049
  }) : null;
10050
- }, Qo = he(() => import("./analysis-builder-DXw60SEs.js")), $o = me((e, t) => /* @__PURE__ */ X(pe, {
10050
+ }, Qo = he(() => import("./analysis-builder-D1pYvvwc.js")), $o = me((e, t) => /* @__PURE__ */ X(pe, {
10051
10051
  fallback: /* @__PURE__ */ X("div", {
10052
10052
  className: "dc:flex dc:items-center dc:justify-center dc:w-full dc:py-6",
10053
10053
  children: /* @__PURE__ */ X(re, {})
@@ -11843,4 +11843,4 @@ function Ks({ isOpen: e, onClose: t, onSave: n, title: r, submitText: i, initial
11843
11843
  //#endregion
11844
11844
  export { Vt as $, Jn as A, Dn as B, Ni as C, ai as D, si as E, yn as F, jn as G, kn as H, Ln as I, Tn as J, In as K, An as L, zn as M, Rn as N, Qr as O, Cn as P, Xt as Q, Fn as R, Mi as S, Ce as St, yi as T, Nn as U, Pn as V, On as W, hn as X, En as Y, tn as Z, sa as _, De as _t, Hs as a, We as at, Fi as b, Fe as bt, hs as c, Ne as ct, rs as d, Pe as dt, jt as et, $o as f, Ie as ft, va as g, we as gt, Ho as h, Oe as ht, Us as i, Ke as it, qn as j, Kr as k, ds as l, Me as lt, Xo as m, Te as mt, Gs as n, qe as nt, Vs as o, He as ot, Zo as p, Ee as pt, wn as q, Ws as r, Xe as rt, Ns as s, Q as st, Ks as t, nt as tt, ss as u, je as ut, oa as v, ke as vt, ji as w, Wi as x, Se as xt, Pi as y, Ae as yt, Mn as z };
11845
11845
 
11846
- //# sourceMappingURL=DashboardEditModal-BOfLdTgV.js.map
11846
+ //# sourceMappingURL=DashboardEditModal-9An5EDAz.js.map