drizzle-cube 0.4.52 → 0.5.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 (276) hide show
  1. package/dist/adapters/express/index.cjs +2 -2
  2. package/dist/adapters/express/index.js +92 -83
  3. package/dist/adapters/fastify/index.cjs +2 -2
  4. package/dist/adapters/fastify/index.js +126 -116
  5. package/dist/adapters/{handler-RItnSaEl.js → handler-3LGcjLtr.js} +617 -612
  6. package/dist/adapters/handler-BzzbVpcl.cjs +25 -0
  7. package/dist/adapters/hono/index.cjs +1 -1
  8. package/dist/adapters/hono/index.js +94 -86
  9. package/dist/adapters/{compiler-D_o2IzHn.js → locale-DTnJrxm1.js} +1363 -1079
  10. package/dist/adapters/locale-DueXjqMh.cjs +198 -0
  11. package/dist/adapters/locale.d.ts +8 -0
  12. package/dist/adapters/mcp-tools.cjs +1 -1
  13. package/dist/adapters/mcp-tools.js +14 -14
  14. package/dist/adapters/mcp-transport-45SiFcCH.cjs +39 -0
  15. package/dist/adapters/mcp-transport-Bxpc4mRy.js +553 -0
  16. package/dist/adapters/mcp-transport.d.ts +11 -0
  17. package/dist/adapters/nextjs/index.cjs +1 -1
  18. package/dist/adapters/nextjs/index.js +138 -122
  19. package/dist/adapters/utils-DNrj-ryp.cjs +17 -0
  20. package/dist/adapters/{utils-IH1ePsBd.js → utils-DOg9oGdt.js} +2341 -819
  21. package/dist/adapters/utils.cjs +1 -1
  22. package/dist/adapters/utils.d.ts +7 -0
  23. package/dist/adapters/utils.js +1 -1
  24. package/dist/client/charts.js +12 -12
  25. package/dist/client/chunks/{DashboardEditModal-BTdV528l.js → DashboardEditModal-cSSIAZGy.js} +1968 -1973
  26. package/dist/client/chunks/DashboardEditModal-cSSIAZGy.js.map +1 -0
  27. package/dist/client/chunks/{FieldSearchModal-D75vy4Wb.js → FieldSearchModal-CZNo4pNK.js} +550 -536
  28. package/dist/client/chunks/FieldSearchModal-CZNo4pNK.js.map +1 -0
  29. package/dist/client/chunks/KpiDelta-Dll_eCV1.js +2 -0
  30. package/dist/client/chunks/KpiNumber-BPlR92hI.js +2 -0
  31. package/dist/client/chunks/KpiText-BIxq7Jso.js +2 -0
  32. package/dist/client/chunks/{RetentionCombinedChart-DIhK5pD8.js → RetentionCombinedChart-BD8tGeM_.js} +96 -96
  33. package/dist/client/chunks/RetentionCombinedChart-BD8tGeM_.js.map +1 -0
  34. package/dist/client/chunks/{RetentionHeatmap-CyREolyP.js → RetentionHeatmap-B_5sewwi.js} +77 -77
  35. package/dist/client/chunks/RetentionHeatmap-B_5sewwi.js.map +1 -0
  36. package/dist/client/chunks/SchemaVisualization-CCICjhvv.js +2 -0
  37. package/dist/client/chunks/SchemaVisualizationLazy-DraGsMx6.js +2 -0
  38. package/dist/client/chunks/af-ZA-xDmO5F0s.js +1431 -0
  39. package/dist/client/chunks/af-ZA-xDmO5F0s.js.map +1 -0
  40. package/dist/client/chunks/{analysis-builder-C1CJ0c7L.js → analysis-builder-BeVZhiQ5.js} +1519 -1507
  41. package/dist/client/chunks/analysis-builder-BeVZhiQ5.js.map +1 -0
  42. package/dist/client/chunks/{analysis-builder-shared-rkjJfWLT.js → analysis-builder-shared-BWc7ZZnG.js} +925 -954
  43. package/dist/client/chunks/analysis-builder-shared-BWc7ZZnG.js.map +1 -0
  44. package/dist/client/chunks/chart-activity-grid-CWT0gLv4.js +2376 -0
  45. package/dist/client/chunks/chart-activity-grid-CWT0gLv4.js.map +1 -0
  46. package/dist/client/chunks/{chart-area-BwYaflNk.js → chart-area-D63kG8OT.js} +157 -157
  47. package/dist/client/chunks/chart-area-D63kG8OT.js.map +1 -0
  48. package/dist/client/chunks/{chart-bar-BiENfFgE.js → chart-bar-BEfsCLjl.js} +78 -78
  49. package/dist/client/chunks/chart-bar-BEfsCLjl.js.map +1 -0
  50. package/dist/client/chunks/{chart-box-plot-BJF1tBXC.js → chart-box-plot-o-h9MRX5.js} +111 -114
  51. package/dist/client/chunks/chart-box-plot-o-h9MRX5.js.map +1 -0
  52. package/dist/client/chunks/{chart-bubble-DQQhGVDJ.js → chart-bubble-CMDp4Pfm.js} +121 -121
  53. package/dist/client/chunks/chart-bubble-CMDp4Pfm.js.map +1 -0
  54. package/dist/client/chunks/chart-candlestick-WyANJ0Ky.js +303 -0
  55. package/dist/client/chunks/chart-candlestick-WyANJ0Ky.js.map +1 -0
  56. package/dist/client/chunks/chart-config-activity-grid-C-EkgYoa.js +51 -0
  57. package/dist/client/chunks/chart-config-activity-grid-C-EkgYoa.js.map +1 -0
  58. package/dist/client/chunks/chart-config-area-CMZpbIah.js +93 -0
  59. package/dist/client/chunks/chart-config-area-CMZpbIah.js.map +1 -0
  60. package/dist/client/chunks/chart-config-bar-B8_V4YLg.js +87 -0
  61. package/dist/client/chunks/chart-config-bar-B8_V4YLg.js.map +1 -0
  62. package/dist/client/chunks/chart-config-box-plot-Dwj7sEbU.js +35 -0
  63. package/dist/client/chunks/chart-config-box-plot-Dwj7sEbU.js.map +1 -0
  64. package/dist/client/chunks/chart-config-bubble-B0w0ZVp4.js +82 -0
  65. package/dist/client/chunks/chart-config-bubble-B0w0ZVp4.js.map +1 -0
  66. package/dist/client/chunks/chart-config-candlestick-Bvo3zeIn.js +72 -0
  67. package/dist/client/chunks/chart-config-candlestick-Bvo3zeIn.js.map +1 -0
  68. package/dist/client/chunks/{chart-config-data-table-Bhdx5Hem.js → chart-config-data-table-BQXSn4b_.js} +9 -9
  69. package/dist/client/chunks/chart-config-data-table-BQXSn4b_.js.map +1 -0
  70. package/dist/client/chunks/chart-config-funnel-BzEsHmjR.js +93 -0
  71. package/dist/client/chunks/chart-config-funnel-BzEsHmjR.js.map +1 -0
  72. package/dist/client/chunks/chart-config-gauge-C5ZiyZy7.js +64 -0
  73. package/dist/client/chunks/chart-config-gauge-C5ZiyZy7.js.map +1 -0
  74. package/dist/client/chunks/chart-config-heat-map-Cv8qNnVP.js +91 -0
  75. package/dist/client/chunks/chart-config-heat-map-Cv8qNnVP.js.map +1 -0
  76. package/dist/client/chunks/chart-config-kpi-delta-BraHQc2E.js +94 -0
  77. package/dist/client/chunks/chart-config-kpi-delta-BraHQc2E.js.map +1 -0
  78. package/dist/client/chunks/chart-config-kpi-number-CeCkx7mC.js +75 -0
  79. package/dist/client/chunks/chart-config-kpi-number-CeCkx7mC.js.map +1 -0
  80. package/dist/client/chunks/chart-config-kpi-text-CImM3SvH.js +47 -0
  81. package/dist/client/chunks/chart-config-kpi-text-CImM3SvH.js.map +1 -0
  82. package/dist/client/chunks/chart-config-line-BVKapAQK.js +104 -0
  83. package/dist/client/chunks/chart-config-line-BVKapAQK.js.map +1 -0
  84. package/dist/client/chunks/chart-config-markdown-C-_g_8te.js +117 -0
  85. package/dist/client/chunks/chart-config-markdown-C-_g_8te.js.map +1 -0
  86. package/dist/client/chunks/chart-config-measure-profile-KTVV1gO3.js +82 -0
  87. package/dist/client/chunks/chart-config-measure-profile-KTVV1gO3.js.map +1 -0
  88. package/dist/client/chunks/chart-config-pie-BZxVl25X.js +68 -0
  89. package/dist/client/chunks/chart-config-pie-BZxVl25X.js.map +1 -0
  90. package/dist/client/chunks/chart-config-radar-B7FByX3t.js +49 -0
  91. package/dist/client/chunks/chart-config-radar-B7FByX3t.js.map +1 -0
  92. package/dist/client/chunks/chart-config-radial-bar-UfW_3yyX.js +38 -0
  93. package/dist/client/chunks/chart-config-radial-bar-UfW_3yyX.js.map +1 -0
  94. package/dist/client/chunks/chart-config-sankey-DGAThN9i.js +66 -0
  95. package/dist/client/chunks/chart-config-sankey-DGAThN9i.js.map +1 -0
  96. package/dist/client/chunks/chart-config-scatter-BVVJuOnt.js +61 -0
  97. package/dist/client/chunks/chart-config-scatter-BVVJuOnt.js.map +1 -0
  98. package/dist/client/chunks/chart-config-sunburst-utejM2YS.js +45 -0
  99. package/dist/client/chunks/chart-config-sunburst-utejM2YS.js.map +1 -0
  100. package/dist/client/chunks/chart-config-tree-map-IHp97OyV.js +51 -0
  101. package/dist/client/chunks/chart-config-tree-map-IHp97OyV.js.map +1 -0
  102. package/dist/client/chunks/chart-config-waterfall-BdqG1V-x.js +59 -0
  103. package/dist/client/chunks/chart-config-waterfall-BdqG1V-x.js.map +1 -0
  104. package/dist/client/chunks/{chart-data-table-2iCsn0CF.js → chart-data-table-C3Xh9jwL.js} +1083 -1086
  105. package/dist/client/chunks/chart-data-table-C3Xh9jwL.js.map +1 -0
  106. package/dist/client/chunks/{chart-funnel-poyOf7-e.js → chart-funnel-C7pgktN5.js} +132 -132
  107. package/dist/client/chunks/chart-funnel-C7pgktN5.js.map +1 -0
  108. package/dist/client/chunks/{chart-gauge-D5J4gRky.js → chart-gauge-D2r2B_AR.js} +150 -150
  109. package/dist/client/chunks/chart-gauge-D2r2B_AR.js.map +1 -0
  110. package/dist/client/chunks/{chart-heat-map-BAMVhLGG.js → chart-heat-map-Dw2yjwfO.js} +75 -80
  111. package/dist/client/chunks/chart-heat-map-Dw2yjwfO.js.map +1 -0
  112. package/dist/client/chunks/{chart-kpi-delta-KQjUIeal.js → chart-kpi-delta-CYE0S1x_.js} +117 -117
  113. package/dist/client/chunks/chart-kpi-delta-CYE0S1x_.js.map +1 -0
  114. package/dist/client/chunks/chart-kpi-number-BlZ79xHW.js +321 -0
  115. package/dist/client/chunks/chart-kpi-number-BlZ79xHW.js.map +1 -0
  116. package/dist/client/chunks/chart-kpi-text-DY1BnxPe.js +148 -0
  117. package/dist/client/chunks/chart-kpi-text-DY1BnxPe.js.map +1 -0
  118. package/dist/client/chunks/{chart-line-B5_WntY5.js → chart-line-CBsTThTv.js} +123 -123
  119. package/dist/client/chunks/chart-line-CBsTThTv.js.map +1 -0
  120. package/dist/client/chunks/chart-markdown-BWaWVkuz.js +3474 -0
  121. package/dist/client/chunks/chart-markdown-BWaWVkuz.js.map +1 -0
  122. package/dist/client/chunks/chart-measure-profile-B41qCTBG.js +179 -0
  123. package/dist/client/chunks/chart-measure-profile-B41qCTBG.js.map +1 -0
  124. package/dist/client/chunks/chart-pie-Djbu8x2v.js +172 -0
  125. package/dist/client/chunks/chart-pie-Djbu8x2v.js.map +1 -0
  126. package/dist/client/chunks/chart-radar-BsTcKV0K.js +154 -0
  127. package/dist/client/chunks/chart-radar-BsTcKV0K.js.map +1 -0
  128. package/dist/client/chunks/chart-radial-bar-Du7XNnwE.js +148 -0
  129. package/dist/client/chunks/chart-radial-bar-Du7XNnwE.js.map +1 -0
  130. package/dist/client/chunks/{chart-sankey-BOyxfG1Q.js → chart-sankey-WwkZAhLy.js} +73 -73
  131. package/dist/client/chunks/chart-sankey-WwkZAhLy.js.map +1 -0
  132. package/dist/client/chunks/chart-scatter-D8krEYsA.js +255 -0
  133. package/dist/client/chunks/chart-scatter-D8krEYsA.js.map +1 -0
  134. package/dist/client/chunks/{chart-sunburst-D9lGEOCc.js → chart-sunburst-CIDB_pTl.js} +66 -66
  135. package/dist/client/chunks/chart-sunburst-CIDB_pTl.js.map +1 -0
  136. package/dist/client/chunks/chart-tree-map-C5C2iaWM.js +298 -0
  137. package/dist/client/chunks/chart-tree-map-C5C2iaWM.js.map +1 -0
  138. package/dist/client/chunks/{chart-waterfall-BCdUx4DC.js → chart-waterfall-BGdPrJ5Y.js} +80 -80
  139. package/dist/client/chunks/chart-waterfall-BGdPrJ5Y.js.map +1 -0
  140. package/dist/client/chunks/{charts-core-C5Yokk-x.js → charts-core-BXOqaYFn.js} +92 -92
  141. package/dist/client/chunks/charts-core-BXOqaYFn.js.map +1 -0
  142. package/dist/client/chunks/en-US-5xPTdCXg.js +35 -0
  143. package/dist/client/chunks/en-US-5xPTdCXg.js.map +1 -0
  144. package/dist/client/chunks/nl-NL-vCifBijs.js +1491 -0
  145. package/dist/client/chunks/nl-NL-vCifBijs.js.map +1 -0
  146. package/dist/client/chunks/{schema-visualization-t1KiOORo.js → schema-visualization-Xp60Ff2W.js} +352 -364
  147. package/dist/client/chunks/schema-visualization-Xp60Ff2W.js.map +1 -0
  148. package/dist/client/chunks/{useDebounce-CKqkM42n.js → useDebounce-CfmUMFau.js} +85 -85
  149. package/dist/client/chunks/useDebounce-CfmUMFau.js.map +1 -0
  150. package/dist/client/chunks/{useExplainAI-DBIfYwz-.js → useExplainAI-BKGmejIj.js} +4 -4
  151. package/dist/client/chunks/{useExplainAI-DBIfYwz-.js.map → useExplainAI-BKGmejIj.js.map} +1 -1
  152. package/dist/client/chunks/{utils--qCr8Yn5.js → utils-BldkcRHv.js} +2 -2
  153. package/dist/client/chunks/{utils--qCr8Yn5.js.map → utils-BldkcRHv.js.map} +1 -1
  154. package/dist/client/chunks/{vendor-BRlsCGnK.js → vendor-ClXpIiea.js} +2 -2
  155. package/dist/client/chunks/{vendor-BRlsCGnK.js.map → vendor-ClXpIiea.js.map} +1 -1
  156. package/dist/client/components/AnalysisBuilder/types.d.ts +6 -6
  157. package/dist/client/components.js +3 -3
  158. package/dist/client/hooks/useTranslation.d.ts +21 -0
  159. package/dist/client/hooks.js +3 -3
  160. package/dist/client/icons.js +1 -1
  161. package/dist/client/index.js +493 -488
  162. package/dist/client/index.js.map +1 -1
  163. package/dist/client/providers/CubeApiProvider.d.ts +2 -1
  164. package/dist/client/providers/CubeProvider.d.ts +7 -1
  165. package/dist/client/providers/I18nProvider.d.ts +18 -0
  166. package/dist/client/providers.js +1 -1
  167. package/dist/client/schema.js +1 -1
  168. package/dist/client/shared/types.d.ts +5 -20
  169. package/dist/client/styles.css +1 -1
  170. package/dist/client/utils.js +5 -5
  171. package/dist/client-bundle-stats.html +1 -1
  172. package/dist/mcp-app/mcp-app.html +26 -24
  173. package/dist/server/index.cjs +42 -40
  174. package/dist/server/index.js +3353 -1567
  175. package/package.json +5 -2
  176. package/dist/adapters/compiler-Bbsijr3W.cjs +0 -198
  177. package/dist/adapters/handler-DumFgnNM.cjs +0 -25
  178. package/dist/adapters/mcp-transport-C6bsIOSV.js +0 -545
  179. package/dist/adapters/mcp-transport-DMhuYmFp.cjs +0 -39
  180. package/dist/adapters/utils-CyBt-as9.cjs +0 -15
  181. package/dist/client/chunks/DashboardEditModal-BTdV528l.js.map +0 -1
  182. package/dist/client/chunks/FieldSearchModal-D75vy4Wb.js.map +0 -1
  183. package/dist/client/chunks/KpiDelta-Bk8bzKYM.js +0 -2
  184. package/dist/client/chunks/KpiNumber-CKF-8e_T.js +0 -2
  185. package/dist/client/chunks/KpiText-Iz1vIvu_.js +0 -2
  186. package/dist/client/chunks/RetentionCombinedChart-DIhK5pD8.js.map +0 -1
  187. package/dist/client/chunks/RetentionHeatmap-CyREolyP.js.map +0 -1
  188. package/dist/client/chunks/SchemaVisualization-B1GUT-FM.js +0 -2
  189. package/dist/client/chunks/SchemaVisualizationLazy-DymwT34e.js +0 -2
  190. package/dist/client/chunks/analysis-builder-C1CJ0c7L.js.map +0 -1
  191. package/dist/client/chunks/analysis-builder-shared-rkjJfWLT.js.map +0 -1
  192. package/dist/client/chunks/chart-activity-grid-DLktOINm.js +0 -806
  193. package/dist/client/chunks/chart-activity-grid-DLktOINm.js.map +0 -1
  194. package/dist/client/chunks/chart-area-BwYaflNk.js.map +0 -1
  195. package/dist/client/chunks/chart-bar-BiENfFgE.js.map +0 -1
  196. package/dist/client/chunks/chart-box-plot-BJF1tBXC.js.map +0 -1
  197. package/dist/client/chunks/chart-bubble-DQQhGVDJ.js.map +0 -1
  198. package/dist/client/chunks/chart-candlestick-C2UuXbLe.js +0 -306
  199. package/dist/client/chunks/chart-candlestick-C2UuXbLe.js.map +0 -1
  200. package/dist/client/chunks/chart-config-activity-grid-DJOU3TEz.js +0 -51
  201. package/dist/client/chunks/chart-config-activity-grid-DJOU3TEz.js.map +0 -1
  202. package/dist/client/chunks/chart-config-area-CWnWVT6a.js +0 -93
  203. package/dist/client/chunks/chart-config-area-CWnWVT6a.js.map +0 -1
  204. package/dist/client/chunks/chart-config-bar-C-7Dr1Ho.js +0 -87
  205. package/dist/client/chunks/chart-config-bar-C-7Dr1Ho.js.map +0 -1
  206. package/dist/client/chunks/chart-config-box-plot-mVOwmLdu.js +0 -35
  207. package/dist/client/chunks/chart-config-box-plot-mVOwmLdu.js.map +0 -1
  208. package/dist/client/chunks/chart-config-bubble-BPE2CeiD.js +0 -82
  209. package/dist/client/chunks/chart-config-bubble-BPE2CeiD.js.map +0 -1
  210. package/dist/client/chunks/chart-config-candlestick-BSB9DRy2.js +0 -72
  211. package/dist/client/chunks/chart-config-candlestick-BSB9DRy2.js.map +0 -1
  212. package/dist/client/chunks/chart-config-data-table-Bhdx5Hem.js.map +0 -1
  213. package/dist/client/chunks/chart-config-funnel-Cl-v-bm1.js +0 -93
  214. package/dist/client/chunks/chart-config-funnel-Cl-v-bm1.js.map +0 -1
  215. package/dist/client/chunks/chart-config-gauge-CdrUTJMJ.js +0 -64
  216. package/dist/client/chunks/chart-config-gauge-CdrUTJMJ.js.map +0 -1
  217. package/dist/client/chunks/chart-config-heat-map-DGE3NzoF.js +0 -91
  218. package/dist/client/chunks/chart-config-heat-map-DGE3NzoF.js.map +0 -1
  219. package/dist/client/chunks/chart-config-kpi-delta-DMrQerUW.js +0 -94
  220. package/dist/client/chunks/chart-config-kpi-delta-DMrQerUW.js.map +0 -1
  221. package/dist/client/chunks/chart-config-kpi-number-DCytCytn.js +0 -75
  222. package/dist/client/chunks/chart-config-kpi-number-DCytCytn.js.map +0 -1
  223. package/dist/client/chunks/chart-config-kpi-text-KdKQUvHo.js +0 -47
  224. package/dist/client/chunks/chart-config-kpi-text-KdKQUvHo.js.map +0 -1
  225. package/dist/client/chunks/chart-config-line-Bl9VDAdz.js +0 -104
  226. package/dist/client/chunks/chart-config-line-Bl9VDAdz.js.map +0 -1
  227. package/dist/client/chunks/chart-config-markdown-BX26b94i.js +0 -117
  228. package/dist/client/chunks/chart-config-markdown-BX26b94i.js.map +0 -1
  229. package/dist/client/chunks/chart-config-measure-profile-DwtRhEFh.js +0 -82
  230. package/dist/client/chunks/chart-config-measure-profile-DwtRhEFh.js.map +0 -1
  231. package/dist/client/chunks/chart-config-pie-BzBcqPMJ.js +0 -68
  232. package/dist/client/chunks/chart-config-pie-BzBcqPMJ.js.map +0 -1
  233. package/dist/client/chunks/chart-config-radar-6ZOgt__z.js +0 -49
  234. package/dist/client/chunks/chart-config-radar-6ZOgt__z.js.map +0 -1
  235. package/dist/client/chunks/chart-config-radial-bar-Df6Eta7N.js +0 -38
  236. package/dist/client/chunks/chart-config-radial-bar-Df6Eta7N.js.map +0 -1
  237. package/dist/client/chunks/chart-config-sankey-DgqKBFvN.js +0 -66
  238. package/dist/client/chunks/chart-config-sankey-DgqKBFvN.js.map +0 -1
  239. package/dist/client/chunks/chart-config-scatter-D5nVLDvi.js +0 -61
  240. package/dist/client/chunks/chart-config-scatter-D5nVLDvi.js.map +0 -1
  241. package/dist/client/chunks/chart-config-sunburst-Ca3FX9nW.js +0 -45
  242. package/dist/client/chunks/chart-config-sunburst-Ca3FX9nW.js.map +0 -1
  243. package/dist/client/chunks/chart-config-tree-map-Bjy4QNa3.js +0 -51
  244. package/dist/client/chunks/chart-config-tree-map-Bjy4QNa3.js.map +0 -1
  245. package/dist/client/chunks/chart-config-waterfall-C5K2eqR7.js +0 -59
  246. package/dist/client/chunks/chart-config-waterfall-C5K2eqR7.js.map +0 -1
  247. package/dist/client/chunks/chart-data-table-2iCsn0CF.js.map +0 -1
  248. package/dist/client/chunks/chart-funnel-poyOf7-e.js.map +0 -1
  249. package/dist/client/chunks/chart-gauge-D5J4gRky.js.map +0 -1
  250. package/dist/client/chunks/chart-heat-map-BAMVhLGG.js.map +0 -1
  251. package/dist/client/chunks/chart-kpi-delta-KQjUIeal.js.map +0 -1
  252. package/dist/client/chunks/chart-kpi-number-CsQgV_x3.js +0 -325
  253. package/dist/client/chunks/chart-kpi-number-CsQgV_x3.js.map +0 -1
  254. package/dist/client/chunks/chart-kpi-text-BR0IyeUU.js +0 -148
  255. package/dist/client/chunks/chart-kpi-text-BR0IyeUU.js.map +0 -1
  256. package/dist/client/chunks/chart-line-B5_WntY5.js.map +0 -1
  257. package/dist/client/chunks/chart-markdown-B6bENbel.js +0 -3473
  258. package/dist/client/chunks/chart-markdown-B6bENbel.js.map +0 -1
  259. package/dist/client/chunks/chart-measure-profile-yWk-obNb.js +0 -179
  260. package/dist/client/chunks/chart-measure-profile-yWk-obNb.js.map +0 -1
  261. package/dist/client/chunks/chart-pie-BodrUoHv.js +0 -172
  262. package/dist/client/chunks/chart-pie-BodrUoHv.js.map +0 -1
  263. package/dist/client/chunks/chart-radar-gG3zfLud.js +0 -154
  264. package/dist/client/chunks/chart-radar-gG3zfLud.js.map +0 -1
  265. package/dist/client/chunks/chart-radial-bar-C2IPCV8c.js +0 -148
  266. package/dist/client/chunks/chart-radial-bar-C2IPCV8c.js.map +0 -1
  267. package/dist/client/chunks/chart-sankey-BOyxfG1Q.js.map +0 -1
  268. package/dist/client/chunks/chart-scatter-B8OwlsAX.js +0 -255
  269. package/dist/client/chunks/chart-scatter-B8OwlsAX.js.map +0 -1
  270. package/dist/client/chunks/chart-sunburst-D9lGEOCc.js.map +0 -1
  271. package/dist/client/chunks/chart-tree-map-DZaKy9he.js +0 -298
  272. package/dist/client/chunks/chart-tree-map-DZaKy9he.js.map +0 -1
  273. package/dist/client/chunks/chart-waterfall-BCdUx4DC.js.map +0 -1
  274. package/dist/client/chunks/charts-core-C5Yokk-x.js.map +0 -1
  275. package/dist/client/chunks/schema-visualization-t1KiOORo.js.map +0 -1
  276. package/dist/client/chunks/useDebounce-CKqkM42n.js.map +0 -1
@@ -1,42 +1,42 @@
1
1
  import { n as e } from "./rolldown-runtime-CCl2IeXn.js";
2
- import { _ as t, y as n } from "./chart-activity-grid-DLktOINm.js";
3
- import r, { useLayoutEffect as i, useMemo as a, useRef as o, useState as s } from "react";
4
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
2
+ import { _ as t, k as n, y as r } from "./chart-activity-grid-CWT0gLv4.js";
3
+ import i, { useLayoutEffect as a, useMemo as o, useRef as s, useState as c } from "react";
4
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
5
5
  //#region node_modules/d3-shape/src/constant.js
6
- function u(e) {
6
+ function d(e) {
7
7
  return function() {
8
8
  return e;
9
9
  };
10
10
  }
11
11
  //#endregion
12
12
  //#region node_modules/d3-shape/src/math.js
13
- var d = Math.abs, f = Math.atan2, p = Math.cos, m = Math.max, h = Math.min, g = Math.sin, _ = Math.sqrt, v = Math.PI, y = v / 2, b = 2 * v;
14
- function x(e) {
15
- return e > 1 ? 0 : e < -1 ? v : Math.acos(e);
16
- }
13
+ var f = Math.abs, p = Math.atan2, m = Math.cos, h = Math.max, g = Math.min, _ = Math.sin, v = Math.sqrt, y = Math.PI, b = y / 2, x = 2 * y;
17
14
  function S(e) {
18
- return e >= 1 ? y : e <= -1 ? -y : Math.asin(e);
15
+ return e > 1 ? 0 : e < -1 ? y : Math.acos(e);
16
+ }
17
+ function C(e) {
18
+ return e >= 1 ? b : e <= -1 ? -b : Math.asin(e);
19
19
  }
20
20
  //#endregion
21
21
  //#region node_modules/d3-path/src/path.js
22
- var C = Math.PI, w = 2 * C, T = 1e-6, E = w - T;
23
- function D(e) {
22
+ var w = Math.PI, T = 2 * w, E = 1e-6, D = T - E;
23
+ function O(e) {
24
24
  this._ += e[0];
25
25
  for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
26
26
  }
27
- function O(e) {
27
+ function k(e) {
28
28
  let t = Math.floor(e);
29
29
  if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
30
- if (t > 15) return D;
30
+ if (t > 15) return O;
31
31
  let n = 10 ** t;
32
32
  return function(e) {
33
33
  this._ += e[0];
34
34
  for (let t = 1, r = e.length; t < r; ++t) this._ += Math.round(arguments[t] * n) / n + e[t];
35
35
  };
36
36
  }
37
- var k = class {
37
+ var A = class {
38
38
  constructor(e) {
39
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? D : O(e);
39
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? O : k(e);
40
40
  }
41
41
  moveTo(e, t) {
42
42
  this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
@@ -57,16 +57,16 @@ var k = class {
57
57
  if (e = +e, t = +t, n = +n, r = +r, i = +i, i < 0) throw Error(`negative radius: ${i}`);
58
58
  let a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
59
59
  if (this._x1 === null) this._append`M${this._x1 = e},${this._y1 = t}`;
60
- else if (d > T) if (!(Math.abs(u * s - c * l) > T) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
60
+ else if (d > E) if (!(Math.abs(u * s - c * l) > E) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
61
61
  else {
62
- let f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((C - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
63
- Math.abs(y - 1) > T && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
62
+ let f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((w - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
63
+ Math.abs(y - 1) > E && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
64
64
  }
65
65
  }
66
66
  arc(e, t, n, r, i, a) {
67
67
  if (e = +e, t = +t, n = +n, a = !!a, n < 0) throw Error(`negative radius: ${n}`);
68
68
  let o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
69
- this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > T || Math.abs(this._y1 - l) > T) && this._append`L${c},${l}`, n && (d < 0 && (d = d % w + w), d > E ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > T && this._append`A${n},${n},0,${+(d >= C)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
69
+ this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > E || Math.abs(this._y1 - l) > E) && this._append`L${c},${l}`, n && (d < 0 && (d = d % T + T), d > D ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > E && this._append`A${n},${n},0,${+(d >= w)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
70
70
  }
71
71
  rect(e, t, n, r) {
72
72
  this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${n = +n}v${+r}h${-n}Z`;
@@ -75,13 +75,13 @@ var k = class {
75
75
  return this._;
76
76
  }
77
77
  };
78
- function A() {
79
- return new k();
78
+ function j() {
79
+ return new A();
80
80
  }
81
- A.prototype = k.prototype;
81
+ j.prototype = A.prototype;
82
82
  //#endregion
83
83
  //#region node_modules/d3-shape/src/path.js
84
- function j(e) {
84
+ function M(e) {
85
85
  let t = 3;
86
86
  return e.digits = function(n) {
87
87
  if (!arguments.length) return t;
@@ -92,31 +92,31 @@ function j(e) {
92
92
  t = e;
93
93
  }
94
94
  return e;
95
- }, () => new k(t);
95
+ }, () => new A(t);
96
96
  }
97
97
  //#endregion
98
98
  //#region node_modules/d3-shape/src/arc.js
99
- function M(e) {
99
+ function N(e) {
100
100
  return e.innerRadius;
101
101
  }
102
- function N(e) {
102
+ function P(e) {
103
103
  return e.outerRadius;
104
104
  }
105
- function P(e) {
105
+ function F(e) {
106
106
  return e.startAngle;
107
107
  }
108
- function F(e) {
108
+ function I(e) {
109
109
  return e.endAngle;
110
110
  }
111
- function I(e) {
111
+ function L(e) {
112
112
  return e && e.padAngle;
113
113
  }
114
114
  function ee(e, t, n, r, i, a, o, s) {
115
115
  var c = n - e, l = r - t, u = o - i, d = s - a, f = d * c - u * l;
116
116
  if (!(f * f < 1e-12)) return f = (u * (t - a) - d * (e - i)) / f, [e + f * c, t + f * l];
117
117
  }
118
- function L(e, t, n, r, i, a, o) {
119
- var s = e - n, c = t - r, l = (o ? a : -a) / _(s * s + c * c), u = l * c, d = -l * s, f = e + u, p = t + d, h = n + u, g = r + d, v = (f + h) / 2, y = (p + g) / 2, b = h - f, x = g - p, S = b * b + x * x, C = i - a, w = f * g - h * p, T = (x < 0 ? -1 : 1) * _(m(0, C * C * S - w * w)), E = (w * x - b * T) / S, D = (-w * b - x * T) / S, O = (w * x + b * T) / S, k = (-w * b + x * T) / S, A = E - v, j = D - y, M = O - v, N = k - y;
118
+ function R(e, t, n, r, i, a, o) {
119
+ var s = e - n, c = t - r, l = (o ? a : -a) / v(s * s + c * c), u = l * c, d = -l * s, f = e + u, p = t + d, m = n + u, g = r + d, _ = (f + m) / 2, y = (p + g) / 2, b = m - f, x = g - p, S = b * b + x * x, C = i - a, w = f * g - m * p, T = (x < 0 ? -1 : 1) * v(h(0, C * C * S - w * w)), E = (w * x - b * T) / S, D = (-w * b - x * T) / S, O = (w * x + b * T) / S, k = (-w * b + x * T) / S, A = E - _, j = D - y, M = O - _, N = k - y;
120
120
  return A * A + j * j > M * M + N * N && (E = O, D = k), {
121
121
  cx: E,
122
122
  cy: D,
@@ -126,88 +126,88 @@ function L(e, t, n, r, i, a, o) {
126
126
  y11: D * (i / C - 1)
127
127
  };
128
128
  }
129
- function R() {
130
- var e = M, t = N, n = u(0), r = null, i = P, a = F, o = I, s = null, c = j(l);
129
+ function z() {
130
+ var e = N, t = P, n = d(0), r = null, i = F, a = I, o = L, s = null, c = M(l);
131
131
  function l() {
132
- var l, u, m = +e.apply(this, arguments), C = +t.apply(this, arguments), w = i.apply(this, arguments) - y, T = a.apply(this, arguments) - y, E = d(T - w), D = T > w;
133
- if (s ||= l = c(), C < m && (u = C, C = m, m = u), !(C > 1e-12)) s.moveTo(0, 0);
134
- else if (E > b - 1e-12) s.moveTo(C * p(w), C * g(w)), s.arc(0, 0, C, w, T, !D), m > 1e-12 && (s.moveTo(m * p(T), m * g(T)), s.arc(0, 0, m, T, w, D));
132
+ var l, u, d = +e.apply(this, arguments), h = +t.apply(this, arguments), w = i.apply(this, arguments) - b, T = a.apply(this, arguments) - b, E = f(T - w), D = T > w;
133
+ if (s ||= l = c(), h < d && (u = h, h = d, d = u), !(h > 1e-12)) s.moveTo(0, 0);
134
+ else if (E > x - 1e-12) s.moveTo(h * m(w), h * _(w)), s.arc(0, 0, h, w, T, !D), d > 1e-12 && (s.moveTo(d * m(T), d * _(T)), s.arc(0, 0, d, T, w, D));
135
135
  else {
136
- var O = w, k = T, A = w, j = T, M = E, N = E, P = o.apply(this, arguments) / 2, F = P > 1e-12 && (r ? +r.apply(this, arguments) : _(m * m + C * C)), I = h(d(C - m) / 2, +n.apply(this, arguments)), R = I, z = I, B, V;
136
+ var O = w, k = T, A = w, j = T, M = E, N = E, P = o.apply(this, arguments) / 2, F = P > 1e-12 && (r ? +r.apply(this, arguments) : v(d * d + h * h)), I = g(f(h - d) / 2, +n.apply(this, arguments)), L = I, z = I, B, V;
137
137
  if (F > 1e-12) {
138
- var H = S(F / m * g(P)), U = S(F / C * g(P));
138
+ var H = C(F / d * _(P)), U = C(F / h * _(P));
139
139
  (M -= H * 2) > 1e-12 ? (H *= D ? 1 : -1, A += H, j -= H) : (M = 0, A = j = (w + T) / 2), (N -= U * 2) > 1e-12 ? (U *= D ? 1 : -1, O += U, k -= U) : (N = 0, O = k = (w + T) / 2);
140
140
  }
141
- var W = C * p(O), G = C * g(O), K = m * p(j), q = m * g(j);
141
+ var W = h * m(O), G = h * _(O), K = d * m(j), q = d * _(j);
142
142
  if (I > 1e-12) {
143
- var J = C * p(k), Y = C * g(k), X = m * p(A), Z = m * g(A), Q;
144
- if (E < v) if (Q = ee(W, G, X, Z, J, Y, K, q)) {
145
- var $ = W - Q[0], te = G - Q[1], ne = J - Q[0], re = Y - Q[1], ie = 1 / g(x(($ * ne + te * re) / (_($ * $ + te * te) * _(ne * ne + re * re))) / 2), ae = _(Q[0] * Q[0] + Q[1] * Q[1]);
146
- R = h(I, (m - ae) / (ie - 1)), z = h(I, (C - ae) / (ie + 1));
147
- } else R = z = 0;
143
+ var J = h * m(k), Y = h * _(k), X = d * m(A), Z = d * _(A), Q;
144
+ if (E < y) if (Q = ee(W, G, X, Z, J, Y, K, q)) {
145
+ var $ = W - Q[0], te = G - Q[1], ne = J - Q[0], re = Y - Q[1], ie = 1 / _(S(($ * ne + te * re) / (v($ * $ + te * te) * v(ne * ne + re * re))) / 2), ae = v(Q[0] * Q[0] + Q[1] * Q[1]);
146
+ L = g(I, (d - ae) / (ie - 1)), z = g(I, (h - ae) / (ie + 1));
147
+ } else L = z = 0;
148
148
  }
149
- N > 1e-12 ? z > 1e-12 ? (B = L(X, Z, W, G, C, z, D), V = L(J, Y, K, q, C, z, D), s.moveTo(B.cx + B.x01, B.cy + B.y01), z < I ? s.arc(B.cx, B.cy, z, f(B.y01, B.x01), f(V.y01, V.x01), !D) : (s.arc(B.cx, B.cy, z, f(B.y01, B.x01), f(B.y11, B.x11), !D), s.arc(0, 0, C, f(B.cy + B.y11, B.cx + B.x11), f(V.cy + V.y11, V.cx + V.x11), !D), s.arc(V.cx, V.cy, z, f(V.y11, V.x11), f(V.y01, V.x01), !D))) : (s.moveTo(W, G), s.arc(0, 0, C, O, k, !D)) : s.moveTo(W, G), !(m > 1e-12) || !(M > 1e-12) ? s.lineTo(K, q) : R > 1e-12 ? (B = L(K, q, J, Y, m, -R, D), V = L(W, G, X, Z, m, -R, D), s.lineTo(B.cx + B.x01, B.cy + B.y01), R < I ? s.arc(B.cx, B.cy, R, f(B.y01, B.x01), f(V.y01, V.x01), !D) : (s.arc(B.cx, B.cy, R, f(B.y01, B.x01), f(B.y11, B.x11), !D), s.arc(0, 0, m, f(B.cy + B.y11, B.cx + B.x11), f(V.cy + V.y11, V.cx + V.x11), D), s.arc(V.cx, V.cy, R, f(V.y11, V.x11), f(V.y01, V.x01), !D))) : s.arc(0, 0, m, j, A, D);
149
+ N > 1e-12 ? z > 1e-12 ? (B = R(X, Z, W, G, h, z, D), V = R(J, Y, K, q, h, z, D), s.moveTo(B.cx + B.x01, B.cy + B.y01), z < I ? s.arc(B.cx, B.cy, z, p(B.y01, B.x01), p(V.y01, V.x01), !D) : (s.arc(B.cx, B.cy, z, p(B.y01, B.x01), p(B.y11, B.x11), !D), s.arc(0, 0, h, p(B.cy + B.y11, B.cx + B.x11), p(V.cy + V.y11, V.cx + V.x11), !D), s.arc(V.cx, V.cy, z, p(V.y11, V.x11), p(V.y01, V.x01), !D))) : (s.moveTo(W, G), s.arc(0, 0, h, O, k, !D)) : s.moveTo(W, G), !(d > 1e-12) || !(M > 1e-12) ? s.lineTo(K, q) : L > 1e-12 ? (B = R(K, q, J, Y, d, -L, D), V = R(W, G, X, Z, d, -L, D), s.lineTo(B.cx + B.x01, B.cy + B.y01), L < I ? s.arc(B.cx, B.cy, L, p(B.y01, B.x01), p(V.y01, V.x01), !D) : (s.arc(B.cx, B.cy, L, p(B.y01, B.x01), p(B.y11, B.x11), !D), s.arc(0, 0, d, p(B.cy + B.y11, B.cx + B.x11), p(V.cy + V.y11, V.cx + V.x11), D), s.arc(V.cx, V.cy, L, p(V.y11, V.x11), p(V.y01, V.x01), !D))) : s.arc(0, 0, d, j, A, D);
150
150
  }
151
151
  if (s.closePath(), l) return s = null, l + "" || null;
152
152
  }
153
153
  return l.centroid = function() {
154
- var n = (+e.apply(this, arguments) + +t.apply(this, arguments)) / 2, r = (+i.apply(this, arguments) + +a.apply(this, arguments)) / 2 - v / 2;
155
- return [p(r) * n, g(r) * n];
154
+ var n = (+e.apply(this, arguments) + +t.apply(this, arguments)) / 2, r = (+i.apply(this, arguments) + +a.apply(this, arguments)) / 2 - y / 2;
155
+ return [m(r) * n, _(r) * n];
156
156
  }, l.innerRadius = function(t) {
157
- return arguments.length ? (e = typeof t == "function" ? t : u(+t), l) : e;
157
+ return arguments.length ? (e = typeof t == "function" ? t : d(+t), l) : e;
158
158
  }, l.outerRadius = function(e) {
159
- return arguments.length ? (t = typeof e == "function" ? e : u(+e), l) : t;
159
+ return arguments.length ? (t = typeof e == "function" ? e : d(+e), l) : t;
160
160
  }, l.cornerRadius = function(e) {
161
- return arguments.length ? (n = typeof e == "function" ? e : u(+e), l) : n;
161
+ return arguments.length ? (n = typeof e == "function" ? e : d(+e), l) : n;
162
162
  }, l.padRadius = function(e) {
163
- return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : u(+e), l) : r;
163
+ return arguments.length ? (r = e == null ? null : typeof e == "function" ? e : d(+e), l) : r;
164
164
  }, l.startAngle = function(e) {
165
- return arguments.length ? (i = typeof e == "function" ? e : u(+e), l) : i;
165
+ return arguments.length ? (i = typeof e == "function" ? e : d(+e), l) : i;
166
166
  }, l.endAngle = function(e) {
167
- return arguments.length ? (a = typeof e == "function" ? e : u(+e), l) : a;
167
+ return arguments.length ? (a = typeof e == "function" ? e : d(+e), l) : a;
168
168
  }, l.padAngle = function(e) {
169
- return arguments.length ? (o = typeof e == "function" ? e : u(+e), l) : o;
169
+ return arguments.length ? (o = typeof e == "function" ? e : d(+e), l) : o;
170
170
  }, l.context = function(e) {
171
171
  return arguments.length ? (s = e ?? null, l) : s;
172
172
  }, l;
173
173
  }
174
174
  //#endregion
175
175
  //#region src/client/components/charts/GaugeChart.tsx
176
- var z = /* @__PURE__ */ e({ default: () => X }), B = -Math.PI * .75, V = Math.PI * .75, H = "#e2e8f0", U = "#6366f1";
177
- function W(e) {
176
+ var B = /* @__PURE__ */ e({ default: () => Z }), V = -Math.PI * .75, H = Math.PI * .75, U = "#e2e8f0", W = "#6366f1";
177
+ function G(e) {
178
178
  if (e == null) return null;
179
179
  let t = typeof e == "number" ? e : parseFloat(String(e));
180
180
  return isNaN(t) ? null : t;
181
181
  }
182
- function G(e, t, n) {
182
+ function K(e, t, n) {
183
183
  return Math.max(t, Math.min(n, e));
184
184
  }
185
- function K(e, t, n) {
185
+ function q(e, t, n) {
186
186
  let r = n === t ? 1 : n - t;
187
- return B + G((e - t) / r, 0, 1) * (V - B);
187
+ return V + K((e - t) / r, 0, 1) * (H - V);
188
188
  }
189
- function q(e, t) {
190
- let n = [...t].sort((e, t) => e.value - t.value), r = U;
189
+ function J(e, t) {
190
+ let n = [...t].sort((e, t) => e.value - t.value), r = W;
191
191
  for (let t of n) e >= t.value && (r = t.color);
192
192
  return r;
193
193
  }
194
- function J(e, t, n, r) {
195
- return R()({
194
+ function Y(e, t, n, r) {
195
+ return z()({
196
196
  innerRadius: e,
197
197
  outerRadius: t,
198
198
  startAngle: n,
199
199
  endAngle: r
200
200
  }) ?? "";
201
201
  }
202
- function Y({ angle: e, radius: t }) {
202
+ function X({ angle: e, radius: t }) {
203
203
  let n = t * .72, r = t * .06, i = Math.cos(e - Math.PI / 2) * n, a = Math.sin(e - Math.PI / 2) * n;
204
- return /* @__PURE__ */ l("g", {
204
+ return /* @__PURE__ */ u("g", {
205
205
  "data-testid": "gauge-needle",
206
- children: [/* @__PURE__ */ c("circle", {
206
+ children: [/* @__PURE__ */ l("circle", {
207
207
  r,
208
208
  fill: "currentColor",
209
209
  className: "text-dc-text-secondary"
210
- }), /* @__PURE__ */ c("line", {
210
+ }), /* @__PURE__ */ l("line", {
211
211
  x1: 0,
212
212
  y1: 0,
213
213
  x2: i,
@@ -219,18 +219,18 @@ function Y({ angle: e, radius: t }) {
219
219
  })]
220
220
  });
221
221
  }
222
- var X = r.memo(function({ data: e, chartConfig: r, displayConfig: u = {}, height: d = "100%" }) {
223
- let f = t(), p = o(null), [m, h] = s({
222
+ var Z = i.memo(function({ data: e, chartConfig: i, displayConfig: d = {}, height: f = "100%" }) {
223
+ let { t: p } = n(), m = t(), h = s(null), [g, _] = c({
224
224
  width: 0,
225
225
  height: 0
226
226
  });
227
- i(() => {
228
- let e = p.current;
227
+ a(() => {
228
+ let e = h.current;
229
229
  if (!e) return;
230
230
  let t = new ResizeObserver((e) => {
231
231
  for (let t of e) {
232
232
  let { width: e, height: n } = t.contentRect;
233
- e > 0 && n > 0 && h({
233
+ e > 0 && n > 0 && _({
234
234
  width: e,
235
235
  height: n
236
236
  });
@@ -238,13 +238,13 @@ var X = r.memo(function({ data: e, chartConfig: r, displayConfig: u = {}, height
238
238
  });
239
239
  t.observe(e);
240
240
  let n = e.getBoundingClientRect();
241
- return n.width > 0 && n.height > 0 && h({
241
+ return n.width > 0 && n.height > 0 && _({
242
242
  width: n.width,
243
243
  height: n.height
244
244
  }), () => t.disconnect();
245
245
  }, []);
246
- let { valueField: g, maxField: _, configError: v } = a(() => {
247
- let e = Array.isArray(r?.yAxis) ? r.yAxis : [], t = e[0] ?? "", n = e[1] ?? "";
246
+ let { valueField: v, maxField: y, configError: b } = o(() => {
247
+ let e = Array.isArray(i?.yAxis) ? i.yAxis : [], t = e[0] ?? "", n = e[1] ?? "";
248
248
  return t ? {
249
249
  valueField: t,
250
250
  maxField: n,
@@ -254,8 +254,8 @@ var X = r.memo(function({ data: e, chartConfig: r, displayConfig: u = {}, height
254
254
  maxField: n,
255
255
  configError: "Gauge requires at least 1 measure in Y-Axis (current value)"
256
256
  };
257
- }, [r]), y = a(() => {
258
- let e = u?.thresholds, t = null;
257
+ }, [i]), x = o(() => {
258
+ let e = d?.thresholds, t = null;
259
259
  if (Array.isArray(e)) t = e;
260
260
  else if (typeof e == "string" && e.trim()) try {
261
261
  let n = JSON.parse(e);
@@ -264,8 +264,8 @@ var X = r.memo(function({ data: e, chartConfig: r, displayConfig: u = {}, height
264
264
  return console.warn("GaugeChart: invalid threshold JSON", e), [];
265
265
  }
266
266
  return t ? t.filter((e) => typeof e == "object" && !!e && typeof e.value == "number" && typeof e.color == "string") : [];
267
- }, [u?.thresholds]), b = y.length === 0 ? [] : [...y].sort((e, t) => e.value - t.value).map((e, t, n) => {
268
- let r = t === 0 ? B : K(n[t - 1].value, 0, 1), i = K(e.value, 0, 1);
267
+ }, [d?.thresholds]), S = x.length === 0 ? [] : [...x].sort((e, t) => e.value - t.value).map((e, t, n) => {
268
+ let r = t === 0 ? V : q(n[t - 1].value, 0, 1), i = q(e.value, 0, 1);
269
269
  return {
270
270
  color: e.color,
271
271
  start: r,
@@ -273,145 +273,145 @@ var X = r.memo(function({ data: e, chartConfig: r, displayConfig: u = {}, height
273
273
  };
274
274
  });
275
275
  try {
276
- if (!e || e.length === 0) return /* @__PURE__ */ c("div", {
276
+ if (!e || e.length === 0) return /* @__PURE__ */ l("div", {
277
277
  className: "dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted",
278
- style: { height: d },
279
- children: /* @__PURE__ */ l("div", {
278
+ style: { height: f },
279
+ children: /* @__PURE__ */ u("div", {
280
280
  className: "dc:text-center",
281
- children: [/* @__PURE__ */ c("div", {
281
+ children: [/* @__PURE__ */ l("div", {
282
282
  className: "dc:text-sm dc:font-semibold dc:mb-1",
283
- children: "No data available"
284
- }), /* @__PURE__ */ c("div", {
283
+ children: p("chart.runtime.noData")
284
+ }), /* @__PURE__ */ l("div", {
285
285
  className: "dc:text-xs text-dc-text-secondary",
286
- children: "No data points to display in gauge chart"
286
+ children: p("chart.runtime.noDataHint.gauge")
287
287
  })]
288
288
  })
289
289
  });
290
- if (v) return /* @__PURE__ */ c("div", {
290
+ if (b) return /* @__PURE__ */ l("div", {
291
291
  className: "dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning",
292
- style: { height: d },
293
- children: /* @__PURE__ */ l("div", {
292
+ style: { height: f },
293
+ children: /* @__PURE__ */ u("div", {
294
294
  className: "dc:text-center",
295
- children: [/* @__PURE__ */ c("div", {
295
+ children: [/* @__PURE__ */ l("div", {
296
296
  className: "dc:text-sm dc:font-semibold dc:mb-1",
297
- children: "Configuration Error"
298
- }), /* @__PURE__ */ c("div", {
297
+ children: p("chart.runtime.configError")
298
+ }), /* @__PURE__ */ l("div", {
299
299
  className: "dc:text-xs",
300
- children: v
300
+ children: b
301
301
  })]
302
302
  })
303
303
  });
304
- let t = e[0], r = W(t[g]);
305
- if (r === null) return /* @__PURE__ */ c("div", {
304
+ let t = e[0], n = G(t[v]);
305
+ if (n === null) return /* @__PURE__ */ l("div", {
306
306
  className: "dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted",
307
- style: { height: d },
308
- children: /* @__PURE__ */ l("div", {
307
+ style: { height: f },
308
+ children: /* @__PURE__ */ u("div", {
309
309
  className: "dc:text-center",
310
- children: [/* @__PURE__ */ c("div", {
310
+ children: [/* @__PURE__ */ l("div", {
311
311
  className: "dc:text-sm dc:font-semibold dc:mb-1",
312
- children: "No valid data"
313
- }), /* @__PURE__ */ c("div", {
312
+ children: p("chart.runtime.noValidData")
313
+ }), /* @__PURE__ */ l("div", {
314
314
  className: "dc:text-xs text-dc-text-secondary",
315
- children: "Gauge value is not a valid number"
315
+ children: p("chart.runtime.noValidDataHint.gauge")
316
316
  })]
317
317
  })
318
318
  });
319
- let i = u?.minValue ?? 0, a = _ ? W(t[_]) : null, o = u?.maxValue ?? a ?? 100, s = o === i ? i + 1 : o, h = G(r, i, s), x = (h - i) / (s - i), S = y.length > 0 ? q(x, y) : U, C = u?.showCenterLabel ?? !0, w = u?.showPercentage ?? !1, T = u?.leftYAxisFormat, E = m.width || 300, D = typeof d == "number" ? d : m.height || 200, O = Math.min(E / 2, D * .9) * .85, k = O, A = O * .6, j = E / 2, M = D * .7, N = J(A, k, B, V), P = J(A, k, B, K(h, i, s)), F = K(h, i, s), I = T ? n(r, T) : r.toLocaleString(), ee = w ? `${(x * 100).toFixed(1)}%` : I, L = f(g);
320
- return /* @__PURE__ */ c("div", {
321
- ref: p,
319
+ let i = d?.minValue ?? 0, a = y ? G(t[y]) : null, o = d?.maxValue ?? a ?? 100, s = o === i ? i + 1 : o, c = K(n, i, s), _ = (c - i) / (s - i), C = x.length > 0 ? J(_, x) : W, w = d?.showCenterLabel ?? !0, T = d?.showPercentage ?? !1, E = d?.leftYAxisFormat, D = g.width || 300, O = typeof f == "number" ? f : g.height || 200, k = Math.min(D / 2, O * .9) * .85, A = k, j = k * .6, M = D / 2, N = O * .7, P = Y(j, A, V, H), F = Y(j, A, V, q(c, i, s)), I = q(c, i, s), L = E ? r(n, E) : n.toLocaleString(), ee = T ? `${(_ * 100).toFixed(1)}%` : L, R = m(v);
320
+ return /* @__PURE__ */ l("div", {
321
+ ref: h,
322
322
  className: "dc:relative dc:w-full",
323
- style: { height: d },
324
- children: /* @__PURE__ */ c("svg", {
323
+ style: { height: f },
324
+ children: /* @__PURE__ */ l("svg", {
325
325
  width: "100%",
326
326
  height: "100%",
327
- viewBox: `0 0 ${E} ${D}`,
327
+ viewBox: `0 0 ${D} ${O}`,
328
328
  preserveAspectRatio: "xMidYMid meet",
329
329
  "data-testid": "gauge-svg",
330
- children: /* @__PURE__ */ l("g", {
331
- transform: `translate(${j}, ${M})`,
330
+ children: /* @__PURE__ */ u("g", {
331
+ transform: `translate(${M}, ${N})`,
332
332
  children: [
333
- /* @__PURE__ */ c("path", {
334
- d: N,
335
- fill: H,
333
+ /* @__PURE__ */ l("path", {
334
+ d: P,
335
+ fill: U,
336
336
  "data-testid": "gauge-track"
337
337
  }),
338
- b.map((e, t) => /* @__PURE__ */ c("path", {
339
- d: J(k + 4, k + 8, e.start, e.end),
338
+ S.map((e, t) => /* @__PURE__ */ l("path", {
339
+ d: Y(A + 4, A + 8, e.start, e.end),
340
340
  fill: e.color,
341
341
  "data-testid": `gauge-band-${t}`
342
342
  }, t)),
343
- /* @__PURE__ */ c("path", {
344
- d: P,
345
- fill: S,
343
+ /* @__PURE__ */ l("path", {
344
+ d: F,
345
+ fill: C,
346
346
  "data-testid": "gauge-fill",
347
- "data-fraction": x.toFixed(4)
347
+ "data-fraction": _.toFixed(4)
348
348
  }),
349
- /* @__PURE__ */ c(Y, {
350
- angle: F,
351
- radius: O
349
+ /* @__PURE__ */ l(X, {
350
+ angle: I,
351
+ radius: k
352
352
  }),
353
- C && /* @__PURE__ */ l("g", {
353
+ w && /* @__PURE__ */ u("g", {
354
354
  "data-testid": "gauge-label",
355
- children: [/* @__PURE__ */ c("text", {
355
+ children: [/* @__PURE__ */ l("text", {
356
356
  textAnchor: "middle",
357
357
  dominantBaseline: "middle",
358
- fontSize: O * .22,
358
+ fontSize: k * .22,
359
359
  fontWeight: "bold",
360
360
  fill: "currentColor",
361
- dy: O * .12,
361
+ dy: k * .12,
362
362
  "data-testid": "gauge-value-text",
363
363
  children: ee
364
- }), /* @__PURE__ */ c("text", {
364
+ }), /* @__PURE__ */ l("text", {
365
365
  textAnchor: "middle",
366
- fontSize: O * .13,
366
+ fontSize: k * .13,
367
367
  fill: "currentColor",
368
368
  className: "text-dc-text-secondary",
369
- dy: O * .34,
370
- children: L
369
+ dy: k * .34,
370
+ children: R
371
371
  })]
372
372
  }),
373
- /* @__PURE__ */ c("text", {
374
- x: Math.cos(B - Math.PI / 2) * (k + 14),
375
- y: Math.sin(B - Math.PI / 2) * (k + 14),
373
+ /* @__PURE__ */ l("text", {
374
+ x: Math.cos(V - Math.PI / 2) * (A + 14),
375
+ y: Math.sin(V - Math.PI / 2) * (A + 14),
376
376
  textAnchor: "middle",
377
- fontSize: O * .12,
377
+ fontSize: k * .12,
378
378
  fill: "currentColor",
379
379
  className: "text-dc-text-secondary",
380
380
  "data-testid": "gauge-min-label",
381
- children: T ? n(i, T) : i.toLocaleString()
381
+ children: E ? r(i, E) : i.toLocaleString()
382
382
  }),
383
- /* @__PURE__ */ c("text", {
384
- x: Math.cos(V - Math.PI / 2) * (k + 14),
385
- y: Math.sin(V - Math.PI / 2) * (k + 14),
383
+ /* @__PURE__ */ l("text", {
384
+ x: Math.cos(H - Math.PI / 2) * (A + 14),
385
+ y: Math.sin(H - Math.PI / 2) * (A + 14),
386
386
  textAnchor: "middle",
387
- fontSize: O * .12,
387
+ fontSize: k * .12,
388
388
  fill: "currentColor",
389
389
  className: "text-dc-text-secondary",
390
390
  "data-testid": "gauge-max-label",
391
- children: T ? n(s, T) : s.toLocaleString()
391
+ children: E ? r(s, E) : s.toLocaleString()
392
392
  })
393
393
  ]
394
394
  })
395
395
  })
396
396
  });
397
397
  } catch (e) {
398
- return /* @__PURE__ */ c("div", {
398
+ return /* @__PURE__ */ l("div", {
399
399
  className: "dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full text-dc-error dc:p-4",
400
- style: { height: d },
401
- children: /* @__PURE__ */ l("div", {
400
+ style: { height: f },
401
+ children: /* @__PURE__ */ u("div", {
402
402
  className: "dc:text-center",
403
403
  children: [
404
- /* @__PURE__ */ c("div", {
404
+ /* @__PURE__ */ l("div", {
405
405
  className: "dc:text-sm dc:font-semibold dc:mb-1",
406
- children: "Gauge Chart Error"
406
+ children: p("chart.runtime.chartError", { chartType: "Gauge Chart" })
407
407
  }),
408
- /* @__PURE__ */ c("div", {
408
+ /* @__PURE__ */ l("div", {
409
409
  className: "dc:text-xs dc:mb-2",
410
- children: e instanceof Error ? e.message : "Unknown rendering error"
410
+ children: e instanceof Error ? e.message : p("chart.runtime.unknownError")
411
411
  }),
412
- /* @__PURE__ */ c("div", {
412
+ /* @__PURE__ */ l("div", {
413
413
  className: "dc:text-xs text-dc-text-muted",
414
- children: "Check the data and configuration"
414
+ children: p("chart.runtime.checkConfig")
415
415
  })
416
416
  ]
417
417
  })
@@ -419,6 +419,6 @@ var X = r.memo(function({ data: e, chartConfig: r, displayConfig: u = {}, height
419
419
  }
420
420
  });
421
421
  //#endregion
422
- export { z as t };
422
+ export { B as t };
423
423
 
424
- //# sourceMappingURL=chart-gauge-D5J4gRky.js.map
424
+ //# sourceMappingURL=chart-gauge-D2r2B_AR.js.map