@sqlrooms/mosaic 0.29.0-rc.5 → 0.29.0-rc.7

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 (975) hide show
  1. package/README.md +90 -57
  2. package/dist/DataPointLimitError.d.ts +9 -0
  3. package/dist/DataPointLimitError.d.ts.map +1 -0
  4. package/dist/DataPointLimitError.js +14 -0
  5. package/dist/DataPointLimitError.js.map +1 -0
  6. package/dist/MosaicChart.d.ts +6 -6
  7. package/dist/MosaicChart.d.ts.map +1 -1
  8. package/dist/MosaicChart.js +6 -6
  9. package/dist/MosaicChart.js.map +1 -1
  10. package/dist/MosaicChartBuilder.d.ts +1 -1
  11. package/dist/MosaicChartBuilder.d.ts.map +1 -1
  12. package/dist/MosaicChartBuilder.js +1 -1
  13. package/dist/MosaicChartBuilder.js.map +1 -1
  14. package/dist/MosaicColorLegend.d.ts.map +1 -1
  15. package/dist/MosaicColorLegend.js +0 -1
  16. package/dist/MosaicColorLegend.js.map +1 -1
  17. package/dist/MosaicSlice.d.ts.map +1 -1
  18. package/dist/MosaicSlice.js +3 -3
  19. package/dist/MosaicSlice.js.map +1 -1
  20. package/dist/VgPlotChart.d.ts +8 -11
  21. package/dist/VgPlotChart.d.ts.map +1 -1
  22. package/dist/VgPlotChart.js +77 -90
  23. package/dist/VgPlotChart.js.map +1 -1
  24. package/dist/VgPlotChartError.d.ts +7 -0
  25. package/dist/VgPlotChartError.d.ts.map +1 -0
  26. package/dist/VgPlotChartError.js +9 -0
  27. package/dist/VgPlotChartError.js.map +1 -0
  28. package/dist/ai/ai.d.ts +103 -0
  29. package/dist/ai/ai.d.ts.map +1 -0
  30. package/dist/ai/ai.js +419 -0
  31. package/dist/ai/ai.js.map +1 -0
  32. package/dist/ai/data-table-explorer-tool.d.ts +40 -0
  33. package/dist/ai/data-table-explorer-tool.d.ts.map +1 -0
  34. package/dist/ai/data-table-explorer-tool.js +75 -0
  35. package/dist/ai/data-table-explorer-tool.js.map +1 -0
  36. package/dist/ai/list-panels-tool.d.ts +35 -0
  37. package/dist/ai/list-panels-tool.d.ts.map +1 -0
  38. package/dist/ai/list-panels-tool.js +66 -0
  39. package/dist/ai/list-panels-tool.js.map +1 -0
  40. package/dist/ai/remove-panel-tool.d.ts +31 -0
  41. package/dist/ai/remove-panel-tool.d.ts.map +1 -0
  42. package/dist/ai/remove-panel-tool.js +55 -0
  43. package/dist/ai/remove-panel-tool.js.map +1 -0
  44. package/dist/ai/tool-helpers.d.ts +34 -0
  45. package/dist/ai/tool-helpers.d.ts.map +1 -0
  46. package/dist/ai/tool-helpers.js +93 -0
  47. package/dist/ai/tool-helpers.js.map +1 -0
  48. package/dist/ai/tool-schemas.d.ts +9 -0
  49. package/dist/ai/tool-schemas.d.ts.map +1 -0
  50. package/dist/ai/tool-schemas.js +22 -0
  51. package/dist/ai/tool-schemas.js.map +1 -0
  52. package/dist/ai/tool-types.d.ts +26 -0
  53. package/dist/ai/tool-types.d.ts.map +1 -0
  54. package/dist/ai/tool-types.js.map +1 -0
  55. package/dist/ai/tool-validation.d.ts +3 -0
  56. package/dist/ai/tool-validation.d.ts.map +1 -0
  57. package/dist/ai/tool-validation.js.map +1 -0
  58. package/dist/ai.d.ts +6 -0
  59. package/dist/ai.d.ts.map +1 -0
  60. package/dist/ai.js +6 -0
  61. package/dist/ai.js.map +1 -0
  62. package/dist/chart-builders/ChartBuilderActions.js.map +1 -1
  63. package/dist/chart-builders/ChartBuilderContent.d.ts +2 -2
  64. package/dist/chart-builders/ChartBuilderContent.d.ts.map +1 -1
  65. package/dist/chart-builders/ChartBuilderContent.js.map +1 -1
  66. package/dist/chart-builders/ChartBuilderContext.d.ts +2 -2
  67. package/dist/chart-builders/ChartBuilderContext.d.ts.map +1 -1
  68. package/dist/chart-builders/ChartBuilderContext.js.map +1 -1
  69. package/dist/chart-builders/ChartBuilderDialog.d.ts +2 -2
  70. package/dist/chart-builders/ChartBuilderDialog.d.ts.map +1 -1
  71. package/dist/chart-builders/ChartBuilderDialog.js.map +1 -1
  72. package/dist/chart-builders/ChartBuilderFields.js +2 -2
  73. package/dist/chart-builders/ChartBuilderFields.js.map +1 -1
  74. package/dist/chart-builders/ChartBuilderRoot.d.ts +2 -2
  75. package/dist/chart-builders/ChartBuilderRoot.d.ts.map +1 -1
  76. package/dist/chart-builders/ChartBuilderRoot.js.map +1 -1
  77. package/dist/chart-builders/chartSpecTitle.d.ts +1 -1
  78. package/dist/chart-builders/chartSpecTitle.d.ts.map +1 -1
  79. package/dist/chart-builders/chartSpecTitle.js.map +1 -1
  80. package/dist/chart-builders/chartTypeUtils.d.ts +1 -2
  81. package/dist/chart-builders/chartTypeUtils.d.ts.map +1 -1
  82. package/dist/chart-builders/chartTypeUtils.js +0 -1
  83. package/dist/chart-builders/chartTypeUtils.js.map +1 -1
  84. package/dist/chart-builders/createChartBuilderStore.d.ts +1 -1
  85. package/dist/chart-builders/createChartBuilderStore.d.ts.map +1 -1
  86. package/dist/chart-builders/createChartBuilderStore.js.map +1 -1
  87. package/dist/chart-runtime.d.ts +50 -0
  88. package/dist/chart-runtime.d.ts.map +1 -0
  89. package/dist/chart-runtime.js +76 -0
  90. package/dist/chart-runtime.js.map +1 -0
  91. package/dist/charts/MosaicChart.d.ts +12 -0
  92. package/dist/charts/MosaicChart.d.ts.map +1 -0
  93. package/dist/charts/MosaicChart.js +13 -0
  94. package/dist/charts/MosaicChart.js.map +1 -0
  95. package/dist/charts/MosaicChartError.d.ts +8 -0
  96. package/dist/charts/MosaicChartError.d.ts.map +1 -0
  97. package/dist/charts/MosaicChartError.js +5 -0
  98. package/dist/charts/MosaicChartError.js.map +1 -0
  99. package/dist/charts/MosaicChartRuntimeIssuePanel.d.ts +7 -0
  100. package/dist/charts/MosaicChartRuntimeIssuePanel.d.ts.map +1 -0
  101. package/dist/charts/MosaicChartRuntimeIssuePanel.js +10 -0
  102. package/dist/charts/MosaicChartRuntimeIssuePanel.js.map +1 -0
  103. package/dist/charts/MosaicChartSettingsPanel.d.ts +11 -0
  104. package/dist/charts/MosaicChartSettingsPanel.d.ts.map +1 -0
  105. package/dist/charts/MosaicChartSettingsPanel.js +21 -0
  106. package/dist/charts/MosaicChartSettingsPanel.js.map +1 -0
  107. package/dist/charts/MosaicChartView.d.ts +13 -0
  108. package/dist/charts/MosaicChartView.d.ts.map +1 -0
  109. package/dist/charts/MosaicChartView.js +56 -0
  110. package/dist/charts/MosaicChartView.js.map +1 -0
  111. package/dist/charts/addChartPanelAction.d.ts +3 -0
  112. package/dist/charts/addChartPanelAction.d.ts.map +1 -0
  113. package/dist/charts/addChartPanelAction.js +14 -0
  114. package/dist/charts/addChartPanelAction.js.map +1 -0
  115. package/dist/charts/chart-settings/MosaicChartSettings.d.ts +43 -0
  116. package/dist/charts/chart-settings/MosaicChartSettings.d.ts.map +1 -0
  117. package/dist/charts/chart-settings/MosaicChartSettings.js +74 -0
  118. package/dist/charts/chart-settings/MosaicChartSettings.js.map +1 -0
  119. package/dist/charts/chart-settings/MosaicChartSettingsContent.d.ts +13 -0
  120. package/dist/charts/chart-settings/MosaicChartSettingsContent.d.ts.map +1 -0
  121. package/dist/charts/chart-settings/MosaicChartSettingsContent.js +18 -0
  122. package/dist/charts/chart-settings/MosaicChartSettingsContent.js.map +1 -0
  123. package/dist/charts/chart-settings/MosaicChartSettingsContext.d.ts +24 -0
  124. package/dist/charts/chart-settings/MosaicChartSettingsContext.d.ts.map +1 -0
  125. package/dist/charts/chart-settings/MosaicChartSettingsContext.js +34 -0
  126. package/dist/charts/chart-settings/MosaicChartSettingsContext.js.map +1 -0
  127. package/dist/charts/chart-settings/MosaicChartSettingsPanel.d.ts +14 -0
  128. package/dist/charts/chart-settings/MosaicChartSettingsPanel.d.ts.map +1 -0
  129. package/dist/charts/chart-settings/MosaicChartSettingsPanel.js +17 -0
  130. package/dist/charts/chart-settings/MosaicChartSettingsPanel.js.map +1 -0
  131. package/dist/charts/chart-settings/MosaicChartSpecViewerPanel.d.ts +9 -0
  132. package/dist/charts/chart-settings/MosaicChartSpecViewerPanel.d.ts.map +1 -0
  133. package/dist/charts/chart-settings/MosaicChartSpecViewerPanel.js +11 -0
  134. package/dist/charts/chart-settings/MosaicChartSpecViewerPanel.js.map +1 -0
  135. package/dist/charts/chart-settings/MosaicChartTypeSelector.d.ts +9 -0
  136. package/dist/charts/chart-settings/MosaicChartTypeSelector.d.ts.map +1 -0
  137. package/dist/charts/chart-settings/MosaicChartTypeSelector.js +16 -0
  138. package/dist/charts/chart-settings/MosaicChartTypeSelector.js.map +1 -0
  139. package/dist/charts/chart-types/base-types.d.ts +168 -0
  140. package/dist/charts/chart-types/base-types.d.ts.map +1 -0
  141. package/dist/charts/chart-types/base-types.js.map +1 -0
  142. package/dist/charts/chart-types/box-plot/BoxPlotSettings.d.ts.map +1 -0
  143. package/dist/charts/chart-types/box-plot/BoxPlotSettings.js +9 -0
  144. package/dist/charts/chart-types/box-plot/BoxPlotSettings.js.map +1 -0
  145. package/dist/charts/chart-types/box-plot/definition.d.ts.map +1 -0
  146. package/dist/charts/chart-types/box-plot/definition.js +24 -0
  147. package/dist/charts/chart-types/box-plot/definition.js.map +1 -0
  148. package/dist/charts/chart-types/box-plot/renderer/BoxPlotClient.d.ts +67 -0
  149. package/dist/charts/chart-types/box-plot/renderer/BoxPlotClient.d.ts.map +1 -0
  150. package/dist/charts/chart-types/box-plot/renderer/BoxPlotClient.js +286 -0
  151. package/dist/charts/chart-types/box-plot/renderer/BoxPlotClient.js.map +1 -0
  152. package/dist/charts/chart-types/box-plot/renderer/BoxPlotErrorBoundary.d.ts.map +1 -0
  153. package/dist/charts/chart-types/box-plot/renderer/BoxPlotErrorBoundary.js.map +1 -0
  154. package/dist/charts/chart-types/box-plot/renderer/BoxPlotPanelRenderer.d.ts.map +1 -0
  155. package/dist/charts/chart-types/box-plot/renderer/BoxPlotPanelRenderer.js +118 -0
  156. package/dist/charts/chart-types/box-plot/renderer/BoxPlotPanelRenderer.js.map +1 -0
  157. package/dist/charts/chart-types/box-plot/renderer/constants.d.ts +24 -0
  158. package/dist/charts/chart-types/box-plot/renderer/constants.d.ts.map +1 -0
  159. package/dist/charts/chart-types/box-plot/renderer/constants.js.map +1 -0
  160. package/dist/charts/chart-types/box-plot/renderer/plot.d.ts +14 -0
  161. package/dist/charts/chart-types/box-plot/renderer/plot.d.ts.map +1 -0
  162. package/dist/charts/chart-types/box-plot/renderer/plot.js.map +1 -0
  163. package/dist/charts/chart-types/box-plot/renderer/useBoxPlotClient.d.ts +18 -0
  164. package/dist/charts/chart-types/box-plot/renderer/useBoxPlotClient.d.ts.map +1 -0
  165. package/dist/charts/chart-types/box-plot/renderer/useBoxPlotClient.js +63 -0
  166. package/dist/charts/chart-types/box-plot/renderer/useBoxPlotClient.js.map +1 -0
  167. package/dist/charts/chart-types/box-plot/renderer/utils.d.ts +6 -0
  168. package/dist/charts/chart-types/box-plot/renderer/utils.d.ts.map +1 -0
  169. package/dist/charts/chart-types/box-plot/renderer/utils.js.map +1 -0
  170. package/dist/charts/chart-types/box-plot/schema.d.ts +21 -0
  171. package/dist/charts/chart-types/box-plot/schema.d.ts.map +1 -0
  172. package/dist/charts/chart-types/box-plot/schema.js +16 -0
  173. package/dist/charts/chart-types/box-plot/schema.js.map +1 -0
  174. package/dist/charts/chart-types/box-plot/tool.d.ts +40 -0
  175. package/dist/charts/chart-types/box-plot/tool.d.ts.map +1 -0
  176. package/dist/charts/chart-types/box-plot/tool.js +67 -0
  177. package/dist/charts/chart-types/box-plot/tool.js.map +1 -0
  178. package/dist/charts/chart-types/bubble-chart/BubbleChartSettings.d.ts.map +1 -0
  179. package/dist/charts/chart-types/bubble-chart/BubbleChartSettings.js +9 -0
  180. package/dist/charts/chart-types/bubble-chart/BubbleChartSettings.js.map +1 -0
  181. package/dist/charts/chart-types/bubble-chart/definition.d.ts.map +1 -0
  182. package/dist/charts/chart-types/bubble-chart/definition.js +24 -0
  183. package/dist/charts/chart-types/bubble-chart/definition.js.map +1 -0
  184. package/dist/charts/chart-types/bubble-chart/schema.d.ts +23 -0
  185. package/dist/charts/chart-types/bubble-chart/schema.d.ts.map +1 -0
  186. package/dist/charts/chart-types/bubble-chart/schema.js +17 -0
  187. package/dist/charts/chart-types/bubble-chart/schema.js.map +1 -0
  188. package/dist/charts/chart-types/bubble-chart/spec.d.ts.map +1 -0
  189. package/dist/charts/chart-types/bubble-chart/spec.js +31 -0
  190. package/dist/charts/chart-types/bubble-chart/spec.js.map +1 -0
  191. package/dist/charts/chart-types/bubble-chart/tool.d.ts +42 -0
  192. package/dist/charts/chart-types/bubble-chart/tool.d.ts.map +1 -0
  193. package/dist/charts/chart-types/bubble-chart/tool.js +66 -0
  194. package/dist/charts/chart-types/bubble-chart/tool.js.map +1 -0
  195. package/dist/charts/chart-types/chart-config.d.ts +138 -0
  196. package/dist/charts/chart-types/chart-config.d.ts.map +1 -0
  197. package/dist/charts/chart-types/chart-config.js +41 -0
  198. package/dist/charts/chart-types/chart-config.js.map +1 -0
  199. package/dist/charts/chart-types/count-plot/CountPlotSettings.d.ts.map +1 -0
  200. package/dist/charts/chart-types/count-plot/CountPlotSettings.js +9 -0
  201. package/dist/charts/chart-types/count-plot/CountPlotSettings.js.map +1 -0
  202. package/dist/charts/chart-types/count-plot/definition.d.ts.map +1 -0
  203. package/dist/charts/chart-types/count-plot/definition.js +19 -0
  204. package/dist/charts/chart-types/count-plot/definition.js.map +1 -0
  205. package/dist/charts/chart-types/count-plot/schema.d.ts +19 -0
  206. package/dist/charts/chart-types/count-plot/schema.d.ts.map +1 -0
  207. package/dist/charts/chart-types/count-plot/schema.js +15 -0
  208. package/dist/charts/chart-types/count-plot/schema.js.map +1 -0
  209. package/dist/charts/chart-types/count-plot/spec.d.ts.map +1 -0
  210. package/dist/charts/chart-types/count-plot/spec.js +49 -0
  211. package/dist/charts/chart-types/count-plot/spec.js.map +1 -0
  212. package/dist/charts/chart-types/count-plot/tool.d.ts +38 -0
  213. package/dist/charts/chart-types/count-plot/tool.d.ts.map +1 -0
  214. package/dist/charts/chart-types/count-plot/tool.js +63 -0
  215. package/dist/charts/chart-types/count-plot/tool.js.map +1 -0
  216. package/dist/charts/chart-types/createChartTools.d.ts +17 -0
  217. package/dist/charts/chart-types/createChartTools.d.ts.map +1 -0
  218. package/dist/charts/chart-types/createChartTools.js +24 -0
  219. package/dist/charts/chart-types/createChartTools.js.map +1 -0
  220. package/dist/charts/chart-types/createDefaultChartTypes.d.ts +12 -0
  221. package/dist/charts/chart-types/createDefaultChartTypes.d.ts.map +1 -0
  222. package/dist/charts/chart-types/createDefaultChartTypes.js +30 -0
  223. package/dist/charts/chart-types/createDefaultChartTypes.js.map +1 -0
  224. package/dist/charts/chart-types/custom-spec/CustomSpecSettings.d.ts.map +1 -0
  225. package/dist/charts/chart-types/custom-spec/CustomSpecSettings.js +30 -0
  226. package/dist/charts/chart-types/custom-spec/CustomSpecSettings.js.map +1 -0
  227. package/dist/charts/chart-types/custom-spec/definition.d.ts.map +1 -0
  228. package/dist/charts/chart-types/custom-spec/definition.js +22 -0
  229. package/dist/charts/chart-types/custom-spec/definition.js.map +1 -0
  230. package/dist/charts/chart-types/custom-spec/schema.d.ts +19 -0
  231. package/dist/charts/chart-types/custom-spec/schema.d.ts.map +1 -0
  232. package/dist/charts/chart-types/custom-spec/schema.js +12 -0
  233. package/dist/charts/chart-types/custom-spec/schema.js.map +1 -0
  234. package/dist/charts/chart-types/custom-spec/spec.d.ts.map +1 -0
  235. package/dist/charts/chart-types/custom-spec/spec.js.map +1 -0
  236. package/dist/charts/chart-types/data-policy-schema.d.ts +8 -0
  237. package/dist/charts/chart-types/data-policy-schema.d.ts.map +1 -0
  238. package/dist/charts/chart-types/data-policy-schema.js +7 -0
  239. package/dist/charts/chart-types/data-policy-schema.js.map +1 -0
  240. package/dist/charts/chart-types/errors.d.ts +7 -0
  241. package/dist/charts/chart-types/errors.d.ts.map +1 -0
  242. package/dist/charts/chart-types/errors.js +10 -0
  243. package/dist/charts/chart-types/errors.js.map +1 -0
  244. package/dist/charts/chart-types/heatmap/HeatmapSettings.d.ts.map +1 -0
  245. package/dist/charts/chart-types/heatmap/HeatmapSettings.js +9 -0
  246. package/dist/charts/chart-types/heatmap/HeatmapSettings.js.map +1 -0
  247. package/dist/charts/chart-types/heatmap/definition.d.ts.map +1 -0
  248. package/dist/charts/chart-types/heatmap/definition.js +19 -0
  249. package/dist/charts/chart-types/heatmap/definition.js.map +1 -0
  250. package/dist/charts/chart-types/heatmap/schema.d.ts +21 -0
  251. package/dist/charts/chart-types/heatmap/schema.d.ts.map +1 -0
  252. package/dist/charts/chart-types/heatmap/schema.js +13 -0
  253. package/dist/charts/chart-types/heatmap/schema.js.map +1 -0
  254. package/dist/charts/chart-types/heatmap/spec.d.ts.map +1 -0
  255. package/dist/charts/chart-types/heatmap/spec.js +32 -0
  256. package/dist/charts/chart-types/heatmap/spec.js.map +1 -0
  257. package/dist/charts/chart-types/heatmap/tool.d.ts +40 -0
  258. package/dist/charts/chart-types/heatmap/tool.d.ts.map +1 -0
  259. package/dist/charts/chart-types/heatmap/tool.js +67 -0
  260. package/dist/charts/chart-types/heatmap/tool.js.map +1 -0
  261. package/dist/charts/chart-types/histogram/HistogramSettings.d.ts.map +1 -0
  262. package/dist/charts/chart-types/histogram/HistogramSettings.js +11 -0
  263. package/dist/charts/chart-types/histogram/HistogramSettings.js.map +1 -0
  264. package/dist/charts/chart-types/histogram/definition.d.ts.map +1 -0
  265. package/dist/charts/chart-types/histogram/definition.js +19 -0
  266. package/dist/charts/chart-types/histogram/definition.js.map +1 -0
  267. package/dist/charts/chart-types/histogram/schema.d.ts +24 -0
  268. package/dist/charts/chart-types/histogram/schema.d.ts.map +1 -0
  269. package/dist/charts/chart-types/histogram/schema.js +26 -0
  270. package/dist/charts/chart-types/histogram/schema.js.map +1 -0
  271. package/dist/charts/chart-types/histogram/spec.d.ts +4 -0
  272. package/dist/charts/chart-types/histogram/spec.d.ts.map +1 -0
  273. package/dist/charts/chart-types/histogram/spec.js +37 -0
  274. package/dist/charts/chart-types/histogram/spec.js.map +1 -0
  275. package/dist/charts/chart-types/histogram/tool.d.ts +40 -0
  276. package/dist/charts/chart-types/histogram/tool.d.ts.map +1 -0
  277. package/dist/charts/chart-types/histogram/tool.js +65 -0
  278. package/dist/charts/chart-types/histogram/tool.js.map +1 -0
  279. package/dist/charts/chart-types/index.d.ts +42 -0
  280. package/dist/charts/chart-types/index.d.ts.map +1 -0
  281. package/dist/charts/chart-types/index.js +53 -0
  282. package/dist/charts/chart-types/index.js.map +1 -0
  283. package/dist/charts/chart-types/line-chart/LineChartSettings.d.ts.map +1 -0
  284. package/dist/charts/chart-types/line-chart/LineChartSettings.js +24 -0
  285. package/dist/charts/chart-types/line-chart/LineChartSettings.js.map +1 -0
  286. package/dist/charts/chart-types/line-chart/definition.d.ts.map +1 -0
  287. package/dist/charts/chart-types/line-chart/definition.js +26 -0
  288. package/dist/charts/chart-types/line-chart/definition.js.map +1 -0
  289. package/dist/charts/chart-types/line-chart/schema.d.ts +70 -0
  290. package/dist/charts/chart-types/line-chart/schema.d.ts.map +1 -0
  291. package/dist/charts/chart-types/line-chart/schema.js +29 -0
  292. package/dist/charts/chart-types/line-chart/schema.js.map +1 -0
  293. package/dist/charts/chart-types/line-chart/spec.d.ts.map +1 -0
  294. package/dist/charts/chart-types/line-chart/spec.js +91 -0
  295. package/dist/charts/chart-types/line-chart/spec.js.map +1 -0
  296. package/dist/charts/chart-types/line-chart/tool.d.ts +64 -0
  297. package/dist/charts/chart-types/line-chart/tool.d.ts.map +1 -0
  298. package/dist/charts/chart-types/line-chart/tool.js +75 -0
  299. package/dist/charts/chart-types/line-chart/tool.js.map +1 -0
  300. package/dist/charts/chart-types/mosaicChartTypes.d.ts +101 -0
  301. package/dist/charts/chart-types/mosaicChartTypes.d.ts.map +1 -0
  302. package/dist/charts/chart-types/mosaicChartTypes.js +20 -0
  303. package/dist/charts/chart-types/mosaicChartTypes.js.map +1 -0
  304. package/dist/charts/dashboard/MosaicDashboardChartHeaderActions.d.ts +4 -0
  305. package/dist/charts/dashboard/MosaicDashboardChartHeaderActions.d.ts.map +1 -0
  306. package/dist/charts/dashboard/MosaicDashboardChartHeaderActions.js +16 -0
  307. package/dist/charts/dashboard/MosaicDashboardChartHeaderActions.js.map +1 -0
  308. package/dist/charts/dashboard/MosaicDashboardChartRenderer.d.ts +4 -0
  309. package/dist/charts/dashboard/MosaicDashboardChartRenderer.d.ts.map +1 -0
  310. package/dist/charts/dashboard/MosaicDashboardChartRenderer.js +23 -0
  311. package/dist/charts/dashboard/MosaicDashboardChartRenderer.js.map +1 -0
  312. package/dist/charts/useBrushSelectionParams.d.ts +3 -0
  313. package/dist/charts/useBrushSelectionParams.d.ts.map +1 -0
  314. package/dist/charts/useBrushSelectionParams.js +16 -0
  315. package/dist/charts/useBrushSelectionParams.js.map +1 -0
  316. package/dist/charts/useChartDataPolicy.d.ts +5 -0
  317. package/dist/charts/useChartDataPolicy.d.ts.map +1 -0
  318. package/dist/charts/useChartDataPolicy.js +17 -0
  319. package/dist/charts/useChartDataPolicy.js.map +1 -0
  320. package/dist/charts/useChartRetainer.d.ts +4 -0
  321. package/dist/charts/useChartRetainer.d.ts.map +1 -0
  322. package/dist/charts/useChartRetainer.js +18 -0
  323. package/dist/charts/useChartRetainer.js.map +1 -0
  324. package/dist/charts/useChartTypeDefinition.d.ts +3 -0
  325. package/dist/charts/useChartTypeDefinition.d.ts.map +1 -0
  326. package/dist/charts/useChartTypeDefinition.js.map +1 -0
  327. package/dist/charts/useMosaicChartRenderContext.d.ts +21 -0
  328. package/dist/charts/useMosaicChartRenderContext.d.ts.map +1 -0
  329. package/dist/charts/useMosaicChartRenderContext.js +63 -0
  330. package/dist/charts/useMosaicChartRenderContext.js.map +1 -0
  331. package/dist/charts/useParseChartConfig.d.ts +12 -0
  332. package/dist/charts/useParseChartConfig.d.ts.map +1 -0
  333. package/dist/charts/useParseChartConfig.js +28 -0
  334. package/dist/charts/useParseChartConfig.js.map +1 -0
  335. package/dist/charts/useRuntimeIssueReporter.d.ts +7 -0
  336. package/dist/charts/useRuntimeIssueReporter.d.ts.map +1 -0
  337. package/dist/charts/useRuntimeIssueReporter.js +19 -0
  338. package/dist/charts/useRuntimeIssueReporter.js.map +1 -0
  339. package/dist/charts/worksheet/ChartBlockHeader.d.ts +15 -0
  340. package/dist/charts/worksheet/ChartBlockHeader.d.ts.map +1 -0
  341. package/dist/charts/worksheet/ChartBlockHeader.js +9 -0
  342. package/dist/charts/worksheet/ChartBlockHeader.js.map +1 -0
  343. package/dist/charts/worksheet/ChartBlockRenderer.d.ts +4 -0
  344. package/dist/charts/worksheet/ChartBlockRenderer.d.ts.map +1 -0
  345. package/dist/charts/worksheet/ChartBlockRenderer.js +47 -0
  346. package/dist/charts/worksheet/ChartBlockRenderer.js.map +1 -0
  347. package/dist/charts/worksheet/ChartSelectorEmptyState.d.ts +15 -0
  348. package/dist/charts/worksheet/ChartSelectorEmptyState.d.ts.map +1 -0
  349. package/dist/charts/worksheet/ChartSelectorEmptyState.js +10 -0
  350. package/dist/charts/worksheet/ChartSelectorEmptyState.js.map +1 -0
  351. package/dist/column-types-utils.d.ts +12 -0
  352. package/dist/column-types-utils.d.ts.map +1 -0
  353. package/dist/column-types-utils.js +47 -0
  354. package/dist/column-types-utils.js.map +1 -0
  355. package/dist/components/AggregationSelector.d.ts +11 -0
  356. package/dist/components/AggregationSelector.d.ts.map +1 -0
  357. package/dist/components/AggregationSelector.js.map +1 -0
  358. package/dist/components/ColumnSelector.d.ts +13 -0
  359. package/dist/components/ColumnSelector.d.ts.map +1 -0
  360. package/dist/components/ColumnSelector.js +30 -0
  361. package/dist/components/ColumnSelector.js.map +1 -0
  362. package/dist/components/ColumnsContext.d.ts +11 -0
  363. package/dist/components/ColumnsContext.d.ts.map +1 -0
  364. package/dist/components/ColumnsContext.js +15 -0
  365. package/dist/components/ColumnsContext.js.map +1 -0
  366. package/dist/components/DataTableSelector.d.ts +22 -0
  367. package/dist/components/DataTableSelector.d.ts.map +1 -0
  368. package/dist/components/DataTableSelector.js +66 -0
  369. package/dist/components/DataTableSelector.js.map +1 -0
  370. package/dist/components/Field.d.ts.map +1 -0
  371. package/dist/components/Field.js.map +1 -0
  372. package/dist/components/FieldSelectorInput.d.ts +14 -0
  373. package/dist/components/FieldSelectorInput.d.ts.map +1 -0
  374. package/dist/components/FieldSelectorInput.js.map +1 -0
  375. package/dist/components/MultiFieldSelector.d.ts +14 -0
  376. package/dist/components/MultiFieldSelector.d.ts.map +1 -0
  377. package/dist/components/MultiFieldSelector.js +53 -0
  378. package/dist/components/MultiFieldSelector.js.map +1 -0
  379. package/dist/components/TableSelector.d.ts +14 -0
  380. package/dist/components/TableSelector.d.ts.map +1 -0
  381. package/dist/components/TableSelector.js +23 -0
  382. package/dist/components/TableSelector.js.map +1 -0
  383. package/dist/components/TemporalGranularitySelector.d.ts +10 -0
  384. package/dist/components/TemporalGranularitySelector.d.ts.map +1 -0
  385. package/dist/components/TemporalGranularitySelector.js +37 -0
  386. package/dist/components/TemporalGranularitySelector.js.map +1 -0
  387. package/dist/dashboard/DefaultMosaicDashboardBlock.d.ts +4 -0
  388. package/dist/dashboard/DefaultMosaicDashboardBlock.d.ts.map +1 -0
  389. package/dist/dashboard/DefaultMosaicDashboardBlock.js +6 -0
  390. package/dist/dashboard/DefaultMosaicDashboardBlock.js.map +1 -0
  391. package/dist/dashboard/MosaicDashboard.d.ts +2 -2
  392. package/dist/dashboard/MosaicDashboard.d.ts.map +1 -1
  393. package/dist/dashboard/MosaicDashboard.js +16 -37
  394. package/dist/dashboard/MosaicDashboard.js.map +1 -1
  395. package/dist/dashboard/MosaicDashboardSlice.d.ts +210 -177
  396. package/dist/dashboard/MosaicDashboardSlice.d.ts.map +1 -1
  397. package/dist/dashboard/MosaicDashboardSlice.js +109 -91
  398. package/dist/dashboard/MosaicDashboardSlice.js.map +1 -1
  399. package/dist/dashboard/action-types.d.ts +25 -0
  400. package/dist/dashboard/action-types.d.ts.map +1 -0
  401. package/dist/dashboard/action-types.js +5 -0
  402. package/dist/dashboard/action-types.js.map +1 -0
  403. package/dist/dashboard/core-types.d.ts +20 -0
  404. package/dist/dashboard/core-types.d.ts.map +1 -0
  405. package/dist/dashboard/core-types.js +15 -0
  406. package/dist/dashboard/core-types.js.map +1 -0
  407. package/dist/dashboard/createDefaultMosaicDashboardPanelRenderers.d.ts +3 -0
  408. package/dist/dashboard/createDefaultMosaicDashboardPanelRenderers.d.ts.map +1 -0
  409. package/dist/dashboard/createDefaultMosaicDashboardPanelRenderers.js +11 -0
  410. package/dist/dashboard/createDefaultMosaicDashboardPanelRenderers.js.map +1 -0
  411. package/dist/dashboard/createMosaicDashboardBlockDefinition.d.ts +12 -0
  412. package/dist/dashboard/createMosaicDashboardBlockDefinition.d.ts.map +1 -0
  413. package/dist/dashboard/createMosaicDashboardBlockDefinition.js +32 -0
  414. package/dist/dashboard/createMosaicDashboardBlockDefinition.js.map +1 -0
  415. package/dist/dashboard/dashboard-types.d.ts +449 -0
  416. package/dist/dashboard/dashboard-types.d.ts.map +1 -0
  417. package/dist/dashboard/dashboard-types.js +46 -0
  418. package/dist/dashboard/dashboard-types.js.map +1 -0
  419. package/dist/dashboard/defaultPanelActions.d.ts +3 -0
  420. package/dist/dashboard/defaultPanelActions.d.ts.map +1 -0
  421. package/dist/dashboard/defaultPanelActions.js +7 -0
  422. package/dist/dashboard/defaultPanelActions.js.map +1 -0
  423. package/dist/dashboard/panel/MosaicDashboardPanel.d.ts.map +1 -0
  424. package/dist/dashboard/panel/MosaicDashboardPanel.js +23 -0
  425. package/dist/dashboard/panel/MosaicDashboardPanel.js.map +1 -0
  426. package/dist/dashboard/panel/MosaicDashboardPanelDragOverlay.d.ts.map +1 -0
  427. package/dist/dashboard/panel/MosaicDashboardPanelDragOverlay.js +17 -0
  428. package/dist/dashboard/panel/MosaicDashboardPanelDragOverlay.js.map +1 -0
  429. package/dist/dashboard/panel/MosaicDashboardPanelErrorBoundary.d.ts +17 -0
  430. package/dist/dashboard/panel/MosaicDashboardPanelErrorBoundary.d.ts.map +1 -0
  431. package/dist/dashboard/panel/MosaicDashboardPanelErrorBoundary.js +21 -0
  432. package/dist/dashboard/panel/MosaicDashboardPanelErrorBoundary.js.map +1 -0
  433. package/dist/dashboard/panel/MosaicDashboardPanelHeader.d.ts +13 -0
  434. package/dist/dashboard/panel/MosaicDashboardPanelHeader.d.ts.map +1 -0
  435. package/dist/dashboard/panel/MosaicDashboardPanelHeader.js +30 -0
  436. package/dist/dashboard/panel/MosaicDashboardPanelHeader.js.map +1 -0
  437. package/dist/dashboard/panel/MosaicDashboardPanelLayout.d.ts.map +1 -0
  438. package/dist/dashboard/panel/MosaicDashboardPanelLayout.js.map +1 -0
  439. package/dist/dashboard/panel/MosaicDashboardPanels.d.ts.map +1 -0
  440. package/dist/dashboard/panel/MosaicDashboardPanels.js +63 -0
  441. package/dist/dashboard/panel/MosaicDashboardPanels.js.map +1 -0
  442. package/dist/dashboard/toolbar/MosaicDashboardAddPanelDropdown.d.ts +7 -0
  443. package/dist/dashboard/toolbar/MosaicDashboardAddPanelDropdown.d.ts.map +1 -0
  444. package/dist/dashboard/toolbar/MosaicDashboardAddPanelDropdown.js +12 -0
  445. package/dist/dashboard/toolbar/MosaicDashboardAddPanelDropdown.js.map +1 -0
  446. package/dist/dashboard/toolbar/MosaicDashboardResetFiltersButton.d.ts +7 -0
  447. package/dist/dashboard/toolbar/MosaicDashboardResetFiltersButton.d.ts.map +1 -0
  448. package/dist/dashboard/toolbar/MosaicDashboardResetFiltersButton.js +36 -0
  449. package/dist/dashboard/toolbar/MosaicDashboardResetFiltersButton.js.map +1 -0
  450. package/dist/dashboard/toolbar/MosaicDashboardToolbar.d.ts.map +1 -0
  451. package/dist/dashboard/toolbar/MosaicDashboardToolbar.js +24 -0
  452. package/dist/dashboard/toolbar/MosaicDashboardToolbar.js.map +1 -0
  453. package/dist/dashboard/useAddPanelActions.d.ts +10 -0
  454. package/dist/dashboard/useAddPanelActions.d.ts.map +1 -0
  455. package/dist/dashboard/useAddPanelActions.js +26 -0
  456. package/dist/dashboard/useAddPanelActions.js.map +1 -0
  457. package/dist/dashboard/useMosaicDashboardAddPanelActionContext.d.ts +3 -0
  458. package/dist/dashboard/useMosaicDashboardAddPanelActionContext.d.ts.map +1 -0
  459. package/dist/dashboard/useMosaicDashboardAddPanelActionContext.js +18 -0
  460. package/dist/dashboard/useMosaicDashboardAddPanelActionContext.js.map +1 -0
  461. package/dist/dashboard/useSelectedOrFirstTable.d.ts +10 -0
  462. package/dist/dashboard/useSelectedOrFirstTable.d.ts.map +1 -0
  463. package/dist/dashboard/useSelectedOrFirstTable.js +25 -0
  464. package/dist/dashboard/useSelectedOrFirstTable.js.map +1 -0
  465. package/dist/data-table-explorer/DataTableExplorer.d.ts +37 -0
  466. package/dist/data-table-explorer/DataTableExplorer.d.ts.map +1 -0
  467. package/dist/data-table-explorer/DataTableExplorer.js +67 -0
  468. package/dist/data-table-explorer/DataTableExplorer.js.map +1 -0
  469. package/dist/data-table-explorer/DataTableExplorerCategoryClient.d.ts +50 -0
  470. package/dist/data-table-explorer/DataTableExplorerCategoryClient.d.ts.map +1 -0
  471. package/dist/data-table-explorer/DataTableExplorerCategoryClient.js +121 -0
  472. package/dist/data-table-explorer/DataTableExplorerCategoryClient.js.map +1 -0
  473. package/dist/data-table-explorer/DataTableExplorerCountClient.d.ts +28 -0
  474. package/dist/data-table-explorer/DataTableExplorerCountClient.d.ts.map +1 -0
  475. package/dist/data-table-explorer/DataTableExplorerCountClient.js +51 -0
  476. package/dist/data-table-explorer/DataTableExplorerCountClient.js.map +1 -0
  477. package/dist/data-table-explorer/DataTableExplorerHeader.d.ts +7 -0
  478. package/dist/data-table-explorer/DataTableExplorerHeader.d.ts.map +1 -0
  479. package/dist/data-table-explorer/DataTableExplorerHeader.js +195 -0
  480. package/dist/data-table-explorer/DataTableExplorerHeader.js.map +1 -0
  481. package/dist/data-table-explorer/DataTableExplorerHistogramClient.d.ts +69 -0
  482. package/dist/data-table-explorer/DataTableExplorerHistogramClient.d.ts.map +1 -0
  483. package/dist/data-table-explorer/DataTableExplorerHistogramClient.js +179 -0
  484. package/dist/data-table-explorer/DataTableExplorerHistogramClient.js.map +1 -0
  485. package/dist/data-table-explorer/DataTableExplorerPageClient.d.ts +37 -0
  486. package/dist/data-table-explorer/DataTableExplorerPageClient.d.ts.map +1 -0
  487. package/dist/data-table-explorer/DataTableExplorerPageClient.js +65 -0
  488. package/dist/data-table-explorer/DataTableExplorerPageClient.js.map +1 -0
  489. package/dist/data-table-explorer/DataTableExplorerRows.d.ts +9 -0
  490. package/dist/data-table-explorer/DataTableExplorerRows.d.ts.map +1 -0
  491. package/dist/data-table-explorer/DataTableExplorerRows.js +65 -0
  492. package/dist/data-table-explorer/DataTableExplorerRows.js.map +1 -0
  493. package/dist/data-table-explorer/DataTableExplorerStatusBar.d.ts +9 -0
  494. package/dist/data-table-explorer/DataTableExplorerStatusBar.d.ts.map +1 -0
  495. package/dist/data-table-explorer/DataTableExplorerStatusBar.js +28 -0
  496. package/dist/data-table-explorer/DataTableExplorerStatusBar.js.map +1 -0
  497. package/dist/data-table-explorer/DataTableExplorerUnsupportedSummaryClient.d.ts +24 -0
  498. package/dist/data-table-explorer/DataTableExplorerUnsupportedSummaryClient.d.ts.map +1 -0
  499. package/dist/data-table-explorer/DataTableExplorerUnsupportedSummaryClient.js +51 -0
  500. package/dist/data-table-explorer/DataTableExplorerUnsupportedSummaryClient.js.map +1 -0
  501. package/dist/data-table-explorer/addDataTableExplorerPanelAction.d.ts +3 -0
  502. package/dist/data-table-explorer/addDataTableExplorerPanelAction.d.ts.map +1 -0
  503. package/dist/data-table-explorer/addDataTableExplorerPanelAction.js +9 -0
  504. package/dist/data-table-explorer/addDataTableExplorerPanelAction.js.map +1 -0
  505. package/dist/data-table-explorer/createDataTableExplorerStore.d.ts +46 -0
  506. package/dist/data-table-explorer/createDataTableExplorerStore.d.ts.map +1 -0
  507. package/dist/data-table-explorer/createDataTableExplorerStore.js +126 -0
  508. package/dist/data-table-explorer/createDataTableExplorerStore.js.map +1 -0
  509. package/dist/data-table-explorer/dashboard/MosaicDashboardDataTableExplorerPanelRenderer.d.ts +4 -0
  510. package/dist/data-table-explorer/dashboard/MosaicDashboardDataTableExplorerPanelRenderer.d.ts.map +1 -0
  511. package/dist/data-table-explorer/dashboard/MosaicDashboardDataTableExplorerPanelRenderer.js +28 -0
  512. package/dist/data-table-explorer/dashboard/MosaicDashboardDataTableExplorerPanelRenderer.js.map +1 -0
  513. package/dist/data-table-explorer/dataTableExplorerController.d.ts +64 -0
  514. package/dist/data-table-explorer/dataTableExplorerController.d.ts.map +1 -0
  515. package/dist/data-table-explorer/dataTableExplorerController.js +127 -0
  516. package/dist/data-table-explorer/dataTableExplorerController.js.map +1 -0
  517. package/dist/data-table-explorer/layout.d.ts +11 -0
  518. package/dist/data-table-explorer/layout.d.ts.map +1 -0
  519. package/dist/data-table-explorer/layout.js +23 -0
  520. package/dist/data-table-explorer/layout.js.map +1 -0
  521. package/dist/data-table-explorer/types.d.ts +87 -0
  522. package/dist/data-table-explorer/types.d.ts.map +1 -0
  523. package/dist/data-table-explorer/types.js.map +1 -0
  524. package/dist/data-table-explorer/useDataTableExplorer.d.ts +7 -0
  525. package/dist/data-table-explorer/useDataTableExplorer.d.ts.map +1 -0
  526. package/dist/data-table-explorer/useDataTableExplorer.js +358 -0
  527. package/dist/data-table-explorer/useDataTableExplorer.js.map +1 -0
  528. package/dist/data-table-explorer/utils.d.ts +61 -0
  529. package/dist/data-table-explorer/utils.d.ts.map +1 -0
  530. package/dist/data-table-explorer/utils.js +349 -0
  531. package/dist/data-table-explorer/utils.js.map +1 -0
  532. package/dist/data-table-explorer/worksheet/DataTableBlockHeader.d.ts +11 -0
  533. package/dist/data-table-explorer/worksheet/DataTableBlockHeader.d.ts.map +1 -0
  534. package/dist/data-table-explorer/worksheet/DataTableBlockHeader.js +7 -0
  535. package/dist/data-table-explorer/worksheet/DataTableBlockHeader.js.map +1 -0
  536. package/dist/data-table-explorer/worksheet/DataTableBlockRenderer.d.ts +4 -0
  537. package/dist/data-table-explorer/worksheet/DataTableBlockRenderer.d.ts.map +1 -0
  538. package/dist/data-table-explorer/worksheet/DataTableBlockRenderer.js +35 -0
  539. package/dist/data-table-explorer/worksheet/DataTableBlockRenderer.js.map +1 -0
  540. package/dist/editor/MosaicChartContainer.d.ts +4 -4
  541. package/dist/editor/MosaicChartContainer.js +4 -4
  542. package/dist/editor/MosaicChartContainer.js.map +1 -1
  543. package/dist/hooks/useDataTable.d.ts +3 -0
  544. package/dist/hooks/useDataTable.d.ts.map +1 -0
  545. package/dist/hooks/useDataTable.js +28 -0
  546. package/dist/hooks/useDataTable.js.map +1 -0
  547. package/dist/hooks/useTablesWithColumns.d.ts +9 -0
  548. package/dist/hooks/useTablesWithColumns.d.ts.map +1 -0
  549. package/dist/hooks/useTablesWithColumns.js +13 -0
  550. package/dist/hooks/useTablesWithColumns.js.map +1 -0
  551. package/dist/index.d.ts +48 -17
  552. package/dist/index.d.ts.map +1 -1
  553. package/dist/index.js +42 -12
  554. package/dist/index.js.map +1 -1
  555. package/dist/schemas/common.d.ts +20 -0
  556. package/dist/schemas/common.d.ts.map +1 -0
  557. package/dist/schemas/common.js +15 -0
  558. package/dist/schemas/common.js.map +1 -0
  559. package/dist/schemas/index.d.ts +2 -0
  560. package/dist/schemas/index.d.ts.map +1 -0
  561. package/dist/schemas/index.js +2 -0
  562. package/dist/schemas/index.js.map +1 -0
  563. package/dist/useMosaicClient.d.ts +4 -0
  564. package/dist/useMosaicClient.d.ts.map +1 -1
  565. package/dist/useMosaicClient.js +33 -3
  566. package/dist/useMosaicClient.js.map +1 -1
  567. package/dist/useVgPlotChartError.d.ts +13 -0
  568. package/dist/useVgPlotChartError.d.ts.map +1 -0
  569. package/dist/useVgPlotChartError.js +18 -0
  570. package/dist/useVgPlotChartError.js.map +1 -0
  571. package/dist/useVgPlotChartRender.d.ts +24 -0
  572. package/dist/useVgPlotChartRender.d.ts.map +1 -0
  573. package/dist/useVgPlotChartRender.js +162 -0
  574. package/dist/useVgPlotChartRender.js.map +1 -0
  575. package/dist/useVgPlotChartRetention.d.ts +21 -0
  576. package/dist/useVgPlotChartRetention.d.ts.map +1 -0
  577. package/dist/useVgPlotChartRetention.js +63 -0
  578. package/dist/useVgPlotChartRetention.js.map +1 -0
  579. package/dist/wrapCoordinatorWithValidation.d.ts +11 -0
  580. package/dist/wrapCoordinatorWithValidation.d.ts.map +1 -0
  581. package/dist/wrapCoordinatorWithValidation.js +23 -0
  582. package/dist/wrapCoordinatorWithValidation.js.map +1 -0
  583. package/package.json +32 -13
  584. package/dist/boxplot/BoxPlotClient.d.ts +0 -58
  585. package/dist/boxplot/BoxPlotClient.d.ts.map +0 -1
  586. package/dist/boxplot/BoxPlotClient.js +0 -264
  587. package/dist/boxplot/BoxPlotClient.js.map +0 -1
  588. package/dist/chart/MosaicDashboardChart.d.ts +0 -14
  589. package/dist/chart/MosaicDashboardChart.d.ts.map +0 -1
  590. package/dist/chart/MosaicDashboardChart.js +0 -21
  591. package/dist/chart/MosaicDashboardChart.js.map +0 -1
  592. package/dist/chart/MosaicDashboardChartContent.d.ts +0 -16
  593. package/dist/chart/MosaicDashboardChartContent.d.ts.map +0 -1
  594. package/dist/chart/MosaicDashboardChartContent.js +0 -18
  595. package/dist/chart/MosaicDashboardChartContent.js.map +0 -1
  596. package/dist/chart/MosaicDashboardChartHeaderActions.d.ts +0 -4
  597. package/dist/chart/MosaicDashboardChartHeaderActions.d.ts.map +0 -1
  598. package/dist/chart/MosaicDashboardChartHeaderActions.js +0 -16
  599. package/dist/chart/MosaicDashboardChartHeaderActions.js.map +0 -1
  600. package/dist/chart/MosaicDashboardChartRenderer.d.ts +0 -3
  601. package/dist/chart/MosaicDashboardChartRenderer.d.ts.map +0 -1
  602. package/dist/chart/MosaicDashboardChartRenderer.js +0 -31
  603. package/dist/chart/MosaicDashboardChartRenderer.js.map +0 -1
  604. package/dist/chart/MosaicDashboardComponentChart.d.ts +0 -14
  605. package/dist/chart/MosaicDashboardComponentChart.d.ts.map +0 -1
  606. package/dist/chart/MosaicDashboardComponentChart.js +0 -11
  607. package/dist/chart/MosaicDashboardComponentChart.js.map +0 -1
  608. package/dist/chart/MosaicDashboardVgPlotChart.d.ts +0 -10
  609. package/dist/chart/MosaicDashboardVgPlotChart.d.ts.map +0 -1
  610. package/dist/chart/MosaicDashboardVgPlotChart.js +0 -10
  611. package/dist/chart/MosaicDashboardVgPlotChart.js.map +0 -1
  612. package/dist/chart/MosaicDashboardVgPlotError.d.ts +0 -8
  613. package/dist/chart/MosaicDashboardVgPlotError.d.ts.map +0 -1
  614. package/dist/chart/MosaicDashboardVgPlotError.js +0 -11
  615. package/dist/chart/MosaicDashboardVgPlotError.js.map +0 -1
  616. package/dist/chart/chart-settings/ChartSettings.d.ts +0 -44
  617. package/dist/chart/chart-settings/ChartSettings.d.ts.map +0 -1
  618. package/dist/chart/chart-settings/ChartSettings.js +0 -71
  619. package/dist/chart/chart-settings/ChartSettings.js.map +0 -1
  620. package/dist/chart/chart-settings/ChartSettingsContent.d.ts +0 -13
  621. package/dist/chart/chart-settings/ChartSettingsContent.d.ts.map +0 -1
  622. package/dist/chart/chart-settings/ChartSettingsContent.js +0 -18
  623. package/dist/chart/chart-settings/ChartSettingsContent.js.map +0 -1
  624. package/dist/chart/chart-settings/ChartSettingsContext.d.ts +0 -27
  625. package/dist/chart/chart-settings/ChartSettingsContext.d.ts.map +0 -1
  626. package/dist/chart/chart-settings/ChartSettingsContext.js +0 -35
  627. package/dist/chart/chart-settings/ChartSettingsContext.js.map +0 -1
  628. package/dist/chart/chart-settings/ChartSettingsPanel.d.ts +0 -14
  629. package/dist/chart/chart-settings/ChartSettingsPanel.d.ts.map +0 -1
  630. package/dist/chart/chart-settings/ChartSettingsPanel.js +0 -17
  631. package/dist/chart/chart-settings/ChartSettingsPanel.js.map +0 -1
  632. package/dist/chart/chart-settings/ChartSpecViewerPanel.d.ts +0 -9
  633. package/dist/chart/chart-settings/ChartSpecViewerPanel.d.ts.map +0 -1
  634. package/dist/chart/chart-settings/ChartSpecViewerPanel.js +0 -11
  635. package/dist/chart/chart-settings/ChartSpecViewerPanel.js.map +0 -1
  636. package/dist/chart/chart-settings/ChartTypeSelector.d.ts +0 -9
  637. package/dist/chart/chart-settings/ChartTypeSelector.d.ts.map +0 -1
  638. package/dist/chart/chart-settings/ChartTypeSelector.js +0 -16
  639. package/dist/chart/chart-settings/ChartTypeSelector.js.map +0 -1
  640. package/dist/chart/chart-settings/useTableColumns.d.ts +0 -3
  641. package/dist/chart/chart-settings/useTableColumns.d.ts.map +0 -1
  642. package/dist/chart/chart-settings/useTableColumns.js +0 -12
  643. package/dist/chart/chart-settings/useTableColumns.js.map +0 -1
  644. package/dist/chart/useBrushSelectionParams.d.ts +0 -3
  645. package/dist/chart/useBrushSelectionParams.d.ts.map +0 -1
  646. package/dist/chart/useBrushSelectionParams.js +0 -16
  647. package/dist/chart/useBrushSelectionParams.js.map +0 -1
  648. package/dist/chart/useChartRetainer.d.ts +0 -3
  649. package/dist/chart/useChartRetainer.d.ts.map +0 -1
  650. package/dist/chart/useChartRetainer.js +0 -11
  651. package/dist/chart/useChartRetainer.js.map +0 -1
  652. package/dist/chart/useGenerateSpec.d.ts +0 -13
  653. package/dist/chart/useGenerateSpec.d.ts.map +0 -1
  654. package/dist/chart/useGenerateSpec.js +0 -32
  655. package/dist/chart/useGenerateSpec.js.map +0 -1
  656. package/dist/chart-builders/AggregationSelector.d.ts +0 -11
  657. package/dist/chart-builders/AggregationSelector.d.ts.map +0 -1
  658. package/dist/chart-builders/AggregationSelector.js.map +0 -1
  659. package/dist/chart-builders/ColumnSelector.d.ts +0 -15
  660. package/dist/chart-builders/ColumnSelector.d.ts.map +0 -1
  661. package/dist/chart-builders/ColumnSelector.js +0 -31
  662. package/dist/chart-builders/ColumnSelector.js.map +0 -1
  663. package/dist/chart-builders/Field.d.ts.map +0 -1
  664. package/dist/chart-builders/Field.js.map +0 -1
  665. package/dist/chart-builders/FieldSelectorInput.d.ts +0 -14
  666. package/dist/chart-builders/FieldSelectorInput.d.ts.map +0 -1
  667. package/dist/chart-builders/FieldSelectorInput.js.map +0 -1
  668. package/dist/chart-builders/MultiFieldSelector.d.ts +0 -14
  669. package/dist/chart-builders/MultiFieldSelector.d.ts.map +0 -1
  670. package/dist/chart-builders/MultiFieldSelector.js +0 -53
  671. package/dist/chart-builders/MultiFieldSelector.js.map +0 -1
  672. package/dist/chart-builders/TemporalGranularitySelector.d.ts +0 -10
  673. package/dist/chart-builders/TemporalGranularitySelector.d.ts.map +0 -1
  674. package/dist/chart-builders/TemporalGranularitySelector.js +0 -37
  675. package/dist/chart-builders/TemporalGranularitySelector.js.map +0 -1
  676. package/dist/chart-builders/constants.d.ts +0 -12
  677. package/dist/chart-builders/constants.d.ts.map +0 -1
  678. package/dist/chart-builders/constants.js +0 -47
  679. package/dist/chart-builders/constants.js.map +0 -1
  680. package/dist/chart-types/base-types.d.ts +0 -148
  681. package/dist/chart-types/base-types.d.ts.map +0 -1
  682. package/dist/chart-types/base-types.js.map +0 -1
  683. package/dist/chart-types/box-plot/BoxPlotSettings.d.ts.map +0 -1
  684. package/dist/chart-types/box-plot/BoxPlotSettings.js +0 -9
  685. package/dist/chart-types/box-plot/BoxPlotSettings.js.map +0 -1
  686. package/dist/chart-types/box-plot/definition.d.ts.map +0 -1
  687. package/dist/chart-types/box-plot/definition.js +0 -19
  688. package/dist/chart-types/box-plot/definition.js.map +0 -1
  689. package/dist/chart-types/box-plot/renderer/BoxPlotErrorBoundary.d.ts.map +0 -1
  690. package/dist/chart-types/box-plot/renderer/BoxPlotErrorBoundary.js.map +0 -1
  691. package/dist/chart-types/box-plot/renderer/BoxPlotPanelRenderer.d.ts.map +0 -1
  692. package/dist/chart-types/box-plot/renderer/BoxPlotPanelRenderer.js +0 -115
  693. package/dist/chart-types/box-plot/renderer/BoxPlotPanelRenderer.js.map +0 -1
  694. package/dist/chart-types/box-plot/renderer/constants.d.ts +0 -24
  695. package/dist/chart-types/box-plot/renderer/constants.d.ts.map +0 -1
  696. package/dist/chart-types/box-plot/renderer/constants.js.map +0 -1
  697. package/dist/chart-types/box-plot/renderer/plot.d.ts +0 -14
  698. package/dist/chart-types/box-plot/renderer/plot.d.ts.map +0 -1
  699. package/dist/chart-types/box-plot/renderer/plot.js.map +0 -1
  700. package/dist/chart-types/box-plot/renderer/useBoxPlotClient.d.ts +0 -14
  701. package/dist/chart-types/box-plot/renderer/useBoxPlotClient.d.ts.map +0 -1
  702. package/dist/chart-types/box-plot/renderer/useBoxPlotClient.js +0 -45
  703. package/dist/chart-types/box-plot/renderer/useBoxPlotClient.js.map +0 -1
  704. package/dist/chart-types/box-plot/renderer/utils.d.ts +0 -6
  705. package/dist/chart-types/box-plot/renderer/utils.d.ts.map +0 -1
  706. package/dist/chart-types/box-plot/renderer/utils.js.map +0 -1
  707. package/dist/chart-types/box-plot/schema.d.ts +0 -16
  708. package/dist/chart-types/box-plot/schema.d.ts.map +0 -1
  709. package/dist/chart-types/box-plot/schema.js +0 -11
  710. package/dist/chart-types/box-plot/schema.js.map +0 -1
  711. package/dist/chart-types/box-plot/tool.d.ts +0 -44
  712. package/dist/chart-types/box-plot/tool.d.ts.map +0 -1
  713. package/dist/chart-types/box-plot/tool.js +0 -59
  714. package/dist/chart-types/box-plot/tool.js.map +0 -1
  715. package/dist/chart-types/bubble-chart/BubbleChartSettings.d.ts.map +0 -1
  716. package/dist/chart-types/bubble-chart/BubbleChartSettings.js +0 -9
  717. package/dist/chart-types/bubble-chart/BubbleChartSettings.js.map +0 -1
  718. package/dist/chart-types/bubble-chart/definition.d.ts.map +0 -1
  719. package/dist/chart-types/bubble-chart/definition.js +0 -19
  720. package/dist/chart-types/bubble-chart/definition.js.map +0 -1
  721. package/dist/chart-types/bubble-chart/schema.d.ts +0 -18
  722. package/dist/chart-types/bubble-chart/schema.d.ts.map +0 -1
  723. package/dist/chart-types/bubble-chart/schema.js +0 -15
  724. package/dist/chart-types/bubble-chart/schema.js.map +0 -1
  725. package/dist/chart-types/bubble-chart/spec.d.ts.map +0 -1
  726. package/dist/chart-types/bubble-chart/spec.js +0 -31
  727. package/dist/chart-types/bubble-chart/spec.js.map +0 -1
  728. package/dist/chart-types/bubble-chart/tool.d.ts +0 -46
  729. package/dist/chart-types/bubble-chart/tool.d.ts.map +0 -1
  730. package/dist/chart-types/bubble-chart/tool.js +0 -58
  731. package/dist/chart-types/bubble-chart/tool.js.map +0 -1
  732. package/dist/chart-types/chart-config.d.ts +0 -92
  733. package/dist/chart-types/chart-config.d.ts.map +0 -1
  734. package/dist/chart-types/chart-config.js +0 -47
  735. package/dist/chart-types/chart-config.js.map +0 -1
  736. package/dist/chart-types/count-plot/CountPlotSettings.d.ts.map +0 -1
  737. package/dist/chart-types/count-plot/CountPlotSettings.js +0 -9
  738. package/dist/chart-types/count-plot/CountPlotSettings.js.map +0 -1
  739. package/dist/chart-types/count-plot/definition.d.ts.map +0 -1
  740. package/dist/chart-types/count-plot/definition.js +0 -19
  741. package/dist/chart-types/count-plot/definition.js.map +0 -1
  742. package/dist/chart-types/count-plot/schema.d.ts +0 -14
  743. package/dist/chart-types/count-plot/schema.d.ts.map +0 -1
  744. package/dist/chart-types/count-plot/schema.js +0 -13
  745. package/dist/chart-types/count-plot/schema.js.map +0 -1
  746. package/dist/chart-types/count-plot/spec.d.ts.map +0 -1
  747. package/dist/chart-types/count-plot/spec.js +0 -49
  748. package/dist/chart-types/count-plot/spec.js.map +0 -1
  749. package/dist/chart-types/count-plot/tool.d.ts +0 -42
  750. package/dist/chart-types/count-plot/tool.d.ts.map +0 -1
  751. package/dist/chart-types/count-plot/tool.js +0 -55
  752. package/dist/chart-types/count-plot/tool.js.map +0 -1
  753. package/dist/chart-types/custom-spec/CustomSpecSettings.d.ts.map +0 -1
  754. package/dist/chart-types/custom-spec/CustomSpecSettings.js +0 -30
  755. package/dist/chart-types/custom-spec/CustomSpecSettings.js.map +0 -1
  756. package/dist/chart-types/custom-spec/definition.d.ts.map +0 -1
  757. package/dist/chart-types/custom-spec/definition.js +0 -17
  758. package/dist/chart-types/custom-spec/definition.js.map +0 -1
  759. package/dist/chart-types/custom-spec/schema.d.ts +0 -14
  760. package/dist/chart-types/custom-spec/schema.d.ts.map +0 -1
  761. package/dist/chart-types/custom-spec/schema.js +0 -10
  762. package/dist/chart-types/custom-spec/schema.js.map +0 -1
  763. package/dist/chart-types/custom-spec/spec.d.ts.map +0 -1
  764. package/dist/chart-types/custom-spec/spec.js.map +0 -1
  765. package/dist/chart-types/errors.d.ts +0 -23
  766. package/dist/chart-types/errors.d.ts.map +0 -1
  767. package/dist/chart-types/errors.js +0 -26
  768. package/dist/chart-types/errors.js.map +0 -1
  769. package/dist/chart-types/heatmap/HeatmapSettings.d.ts.map +0 -1
  770. package/dist/chart-types/heatmap/HeatmapSettings.js +0 -9
  771. package/dist/chart-types/heatmap/HeatmapSettings.js.map +0 -1
  772. package/dist/chart-types/heatmap/definition.d.ts.map +0 -1
  773. package/dist/chart-types/heatmap/definition.js +0 -19
  774. package/dist/chart-types/heatmap/definition.js.map +0 -1
  775. package/dist/chart-types/heatmap/schema.d.ts +0 -16
  776. package/dist/chart-types/heatmap/schema.d.ts.map +0 -1
  777. package/dist/chart-types/heatmap/schema.js +0 -11
  778. package/dist/chart-types/heatmap/schema.js.map +0 -1
  779. package/dist/chart-types/heatmap/spec.d.ts.map +0 -1
  780. package/dist/chart-types/heatmap/spec.js +0 -32
  781. package/dist/chart-types/heatmap/spec.js.map +0 -1
  782. package/dist/chart-types/heatmap/tool.d.ts +0 -44
  783. package/dist/chart-types/heatmap/tool.d.ts.map +0 -1
  784. package/dist/chart-types/heatmap/tool.js +0 -59
  785. package/dist/chart-types/heatmap/tool.js.map +0 -1
  786. package/dist/chart-types/histogram/HistogramSettings.d.ts.map +0 -1
  787. package/dist/chart-types/histogram/HistogramSettings.js +0 -9
  788. package/dist/chart-types/histogram/HistogramSettings.js.map +0 -1
  789. package/dist/chart-types/histogram/definition.d.ts.map +0 -1
  790. package/dist/chart-types/histogram/definition.js +0 -19
  791. package/dist/chart-types/histogram/definition.js.map +0 -1
  792. package/dist/chart-types/histogram/schema.d.ts +0 -14
  793. package/dist/chart-types/histogram/schema.d.ts.map +0 -1
  794. package/dist/chart-types/histogram/schema.js +0 -13
  795. package/dist/chart-types/histogram/schema.js.map +0 -1
  796. package/dist/chart-types/histogram/spec.d.ts +0 -4
  797. package/dist/chart-types/histogram/spec.d.ts.map +0 -1
  798. package/dist/chart-types/histogram/spec.js +0 -36
  799. package/dist/chart-types/histogram/spec.js.map +0 -1
  800. package/dist/chart-types/histogram/tool.d.ts +0 -42
  801. package/dist/chart-types/histogram/tool.d.ts.map +0 -1
  802. package/dist/chart-types/histogram/tool.js +0 -55
  803. package/dist/chart-types/histogram/tool.js.map +0 -1
  804. package/dist/chart-types/index.d.ts +0 -115
  805. package/dist/chart-types/index.d.ts.map +0 -1
  806. package/dist/chart-types/index.js +0 -100
  807. package/dist/chart-types/index.js.map +0 -1
  808. package/dist/chart-types/line-chart/LineChartSettings.d.ts.map +0 -1
  809. package/dist/chart-types/line-chart/LineChartSettings.js +0 -22
  810. package/dist/chart-types/line-chart/LineChartSettings.js.map +0 -1
  811. package/dist/chart-types/line-chart/definition.d.ts.map +0 -1
  812. package/dist/chart-types/line-chart/definition.js +0 -19
  813. package/dist/chart-types/line-chart/definition.js.map +0 -1
  814. package/dist/chart-types/line-chart/schema.d.ts +0 -83
  815. package/dist/chart-types/line-chart/schema.d.ts.map +0 -1
  816. package/dist/chart-types/line-chart/schema.js +0 -39
  817. package/dist/chart-types/line-chart/schema.js.map +0 -1
  818. package/dist/chart-types/line-chart/spec.d.ts.map +0 -1
  819. package/dist/chart-types/line-chart/spec.js +0 -91
  820. package/dist/chart-types/line-chart/spec.js.map +0 -1
  821. package/dist/chart-types/line-chart/tool.d.ts +0 -68
  822. package/dist/chart-types/line-chart/tool.d.ts.map +0 -1
  823. package/dist/chart-types/line-chart/tool.js +0 -66
  824. package/dist/chart-types/line-chart/tool.js.map +0 -1
  825. package/dist/chart-types/tool-schemas.d.ts +0 -8
  826. package/dist/chart-types/tool-schemas.d.ts.map +0 -1
  827. package/dist/chart-types/tool-schemas.js +0 -18
  828. package/dist/chart-types/tool-schemas.js.map +0 -1
  829. package/dist/chart-types/tool-types.d.ts +0 -26
  830. package/dist/chart-types/tool-types.d.ts.map +0 -1
  831. package/dist/chart-types/tool-types.js.map +0 -1
  832. package/dist/chart-types/tool-validation.d.ts +0 -3
  833. package/dist/chart-types/tool-validation.d.ts.map +0 -1
  834. package/dist/chart-types/tool-validation.js.map +0 -1
  835. package/dist/chart-types/useChartTypeDefinition.d.ts +0 -3
  836. package/dist/chart-types/useChartTypeDefinition.d.ts.map +0 -1
  837. package/dist/chart-types/useChartTypeDefinition.js.map +0 -1
  838. package/dist/dashboard/DashboardPanelErrorBoundary.d.ts +0 -17
  839. package/dist/dashboard/DashboardPanelErrorBoundary.d.ts.map +0 -1
  840. package/dist/dashboard/DashboardPanelErrorBoundary.js +0 -21
  841. package/dist/dashboard/DashboardPanelErrorBoundary.js.map +0 -1
  842. package/dist/dashboard/MosaicDashboardEmptyState.d.ts +0 -2
  843. package/dist/dashboard/MosaicDashboardEmptyState.d.ts.map +0 -1
  844. package/dist/dashboard/MosaicDashboardEmptyState.js +0 -50
  845. package/dist/dashboard/MosaicDashboardEmptyState.js.map +0 -1
  846. package/dist/dashboard/MosaicDashboardPanel.d.ts.map +0 -1
  847. package/dist/dashboard/MosaicDashboardPanel.js +0 -26
  848. package/dist/dashboard/MosaicDashboardPanel.js.map +0 -1
  849. package/dist/dashboard/MosaicDashboardPanelDragOverlay.d.ts.map +0 -1
  850. package/dist/dashboard/MosaicDashboardPanelDragOverlay.js +0 -17
  851. package/dist/dashboard/MosaicDashboardPanelDragOverlay.js.map +0 -1
  852. package/dist/dashboard/MosaicDashboardPanelHeader.d.ts +0 -13
  853. package/dist/dashboard/MosaicDashboardPanelHeader.d.ts.map +0 -1
  854. package/dist/dashboard/MosaicDashboardPanelHeader.js +0 -30
  855. package/dist/dashboard/MosaicDashboardPanelHeader.js.map +0 -1
  856. package/dist/dashboard/MosaicDashboardPanelLayout.d.ts.map +0 -1
  857. package/dist/dashboard/MosaicDashboardPanelLayout.js.map +0 -1
  858. package/dist/dashboard/MosaicDashboardPanels.d.ts.map +0 -1
  859. package/dist/dashboard/MosaicDashboardPanels.js +0 -53
  860. package/dist/dashboard/MosaicDashboardPanels.js.map +0 -1
  861. package/dist/dashboard/MosaicDashboardToolbar.d.ts.map +0 -1
  862. package/dist/dashboard/MosaicDashboardToolbar.js +0 -86
  863. package/dist/dashboard/MosaicDashboardToolbar.js.map +0 -1
  864. package/dist/dashboard/defaultPanelRenderers.d.ts +0 -3
  865. package/dist/dashboard/defaultPanelRenderers.d.ts.map +0 -1
  866. package/dist/dashboard/defaultPanelRenderers.js +0 -13
  867. package/dist/dashboard/defaultPanelRenderers.js.map +0 -1
  868. package/dist/profiler/MosaicDashboardProfilerPanelRenderer.d.ts +0 -3
  869. package/dist/profiler/MosaicDashboardProfilerPanelRenderer.d.ts.map +0 -1
  870. package/dist/profiler/MosaicDashboardProfilerPanelRenderer.js +0 -32
  871. package/dist/profiler/MosaicDashboardProfilerPanelRenderer.js.map +0 -1
  872. package/dist/profiler/MosaicProfiler.d.ts +0 -32
  873. package/dist/profiler/MosaicProfiler.d.ts.map +0 -1
  874. package/dist/profiler/MosaicProfiler.js +0 -57
  875. package/dist/profiler/MosaicProfiler.js.map +0 -1
  876. package/dist/profiler/MosaicProfilerHeader.d.ts +0 -7
  877. package/dist/profiler/MosaicProfilerHeader.d.ts.map +0 -1
  878. package/dist/profiler/MosaicProfilerHeader.js +0 -196
  879. package/dist/profiler/MosaicProfilerHeader.js.map +0 -1
  880. package/dist/profiler/MosaicProfilerRows.d.ts +0 -9
  881. package/dist/profiler/MosaicProfilerRows.d.ts.map +0 -1
  882. package/dist/profiler/MosaicProfilerRows.js +0 -65
  883. package/dist/profiler/MosaicProfilerRows.js.map +0 -1
  884. package/dist/profiler/MosaicProfilerStatusBar.d.ts +0 -9
  885. package/dist/profiler/MosaicProfilerStatusBar.d.ts.map +0 -1
  886. package/dist/profiler/MosaicProfilerStatusBar.js +0 -28
  887. package/dist/profiler/MosaicProfilerStatusBar.js.map +0 -1
  888. package/dist/profiler/ProfilerCategoryClient.d.ts +0 -50
  889. package/dist/profiler/ProfilerCategoryClient.d.ts.map +0 -1
  890. package/dist/profiler/ProfilerCategoryClient.js +0 -121
  891. package/dist/profiler/ProfilerCategoryClient.js.map +0 -1
  892. package/dist/profiler/ProfilerCountClient.d.ts +0 -28
  893. package/dist/profiler/ProfilerCountClient.d.ts.map +0 -1
  894. package/dist/profiler/ProfilerCountClient.js +0 -51
  895. package/dist/profiler/ProfilerCountClient.js.map +0 -1
  896. package/dist/profiler/ProfilerHistogramClient.d.ts +0 -69
  897. package/dist/profiler/ProfilerHistogramClient.d.ts.map +0 -1
  898. package/dist/profiler/ProfilerHistogramClient.js +0 -179
  899. package/dist/profiler/ProfilerHistogramClient.js.map +0 -1
  900. package/dist/profiler/ProfilerPageClient.d.ts +0 -37
  901. package/dist/profiler/ProfilerPageClient.d.ts.map +0 -1
  902. package/dist/profiler/ProfilerPageClient.js +0 -65
  903. package/dist/profiler/ProfilerPageClient.js.map +0 -1
  904. package/dist/profiler/ProfilerUnsupportedSummaryClient.d.ts +0 -24
  905. package/dist/profiler/ProfilerUnsupportedSummaryClient.d.ts.map +0 -1
  906. package/dist/profiler/ProfilerUnsupportedSummaryClient.js +0 -51
  907. package/dist/profiler/ProfilerUnsupportedSummaryClient.js.map +0 -1
  908. package/dist/profiler/createProfilerStore.d.ts +0 -45
  909. package/dist/profiler/createProfilerStore.d.ts.map +0 -1
  910. package/dist/profiler/createProfilerStore.js +0 -120
  911. package/dist/profiler/createProfilerStore.js.map +0 -1
  912. package/dist/profiler/layout.d.ts +0 -7
  913. package/dist/profiler/layout.d.ts.map +0 -1
  914. package/dist/profiler/layout.js +0 -13
  915. package/dist/profiler/layout.js.map +0 -1
  916. package/dist/profiler/profilerController.d.ts +0 -64
  917. package/dist/profiler/profilerController.d.ts.map +0 -1
  918. package/dist/profiler/profilerController.js +0 -123
  919. package/dist/profiler/profilerController.js.map +0 -1
  920. package/dist/profiler/types.d.ts +0 -86
  921. package/dist/profiler/types.d.ts.map +0 -1
  922. package/dist/profiler/types.js.map +0 -1
  923. package/dist/profiler/useMosaicProfiler.d.ts +0 -7
  924. package/dist/profiler/useMosaicProfiler.d.ts.map +0 -1
  925. package/dist/profiler/useMosaicProfiler.js +0 -339
  926. package/dist/profiler/useMosaicProfiler.js.map +0 -1
  927. package/dist/profiler/utils.d.ts +0 -61
  928. package/dist/profiler/utils.d.ts.map +0 -1
  929. package/dist/profiler/utils.js +0 -347
  930. package/dist/profiler/utils.js.map +0 -1
  931. package/dist/text/MosaicDashboardTextRenderer.d.ts +0 -3
  932. package/dist/text/MosaicDashboardTextRenderer.d.ts.map +0 -1
  933. package/dist/text/MosaicDashboardTextRenderer.js +0 -46
  934. package/dist/text/MosaicDashboardTextRenderer.js.map +0 -1
  935. /package/dist/{chart-types → ai}/tool-types.js +0 -0
  936. /package/dist/{chart-types → ai}/tool-validation.js +0 -0
  937. /package/dist/{chart-types → charts/chart-types}/base-types.js +0 -0
  938. /package/dist/{chart-types → charts/chart-types}/box-plot/BoxPlotSettings.d.ts +0 -0
  939. /package/dist/{chart-types → charts/chart-types}/box-plot/definition.d.ts +0 -0
  940. /package/dist/{chart-types → charts/chart-types}/box-plot/renderer/BoxPlotErrorBoundary.d.ts +0 -0
  941. /package/dist/{chart-types → charts/chart-types}/box-plot/renderer/BoxPlotErrorBoundary.js +0 -0
  942. /package/dist/{chart-types → charts/chart-types}/box-plot/renderer/BoxPlotPanelRenderer.d.ts +0 -0
  943. /package/dist/{chart-types → charts/chart-types}/box-plot/renderer/constants.js +0 -0
  944. /package/dist/{chart-types → charts/chart-types}/box-plot/renderer/plot.js +0 -0
  945. /package/dist/{chart-types → charts/chart-types}/box-plot/renderer/utils.js +0 -0
  946. /package/dist/{chart-types → charts/chart-types}/bubble-chart/BubbleChartSettings.d.ts +0 -0
  947. /package/dist/{chart-types → charts/chart-types}/bubble-chart/definition.d.ts +0 -0
  948. /package/dist/{chart-types → charts/chart-types}/bubble-chart/spec.d.ts +0 -0
  949. /package/dist/{chart-types → charts/chart-types}/count-plot/CountPlotSettings.d.ts +0 -0
  950. /package/dist/{chart-types → charts/chart-types}/count-plot/definition.d.ts +0 -0
  951. /package/dist/{chart-types → charts/chart-types}/count-plot/spec.d.ts +0 -0
  952. /package/dist/{chart-types → charts/chart-types}/custom-spec/CustomSpecSettings.d.ts +0 -0
  953. /package/dist/{chart-types → charts/chart-types}/custom-spec/definition.d.ts +0 -0
  954. /package/dist/{chart-types → charts/chart-types}/custom-spec/spec.d.ts +0 -0
  955. /package/dist/{chart-types → charts/chart-types}/custom-spec/spec.js +0 -0
  956. /package/dist/{chart-types → charts/chart-types}/heatmap/HeatmapSettings.d.ts +0 -0
  957. /package/dist/{chart-types → charts/chart-types}/heatmap/definition.d.ts +0 -0
  958. /package/dist/{chart-types → charts/chart-types}/heatmap/spec.d.ts +0 -0
  959. /package/dist/{chart-types → charts/chart-types}/histogram/HistogramSettings.d.ts +0 -0
  960. /package/dist/{chart-types → charts/chart-types}/histogram/definition.d.ts +0 -0
  961. /package/dist/{chart-types → charts/chart-types}/line-chart/LineChartSettings.d.ts +0 -0
  962. /package/dist/{chart-types → charts/chart-types}/line-chart/definition.d.ts +0 -0
  963. /package/dist/{chart-types → charts/chart-types}/line-chart/spec.d.ts +0 -0
  964. /package/dist/{chart-types → charts}/useChartTypeDefinition.js +0 -0
  965. /package/dist/{chart-builders → components}/AggregationSelector.js +0 -0
  966. /package/dist/{chart-builders → components}/Field.d.ts +0 -0
  967. /package/dist/{chart-builders → components}/Field.js +0 -0
  968. /package/dist/{chart-builders → components}/FieldSelectorInput.js +0 -0
  969. /package/dist/dashboard/{MosaicDashboardPanel.d.ts → panel/MosaicDashboardPanel.d.ts} +0 -0
  970. /package/dist/dashboard/{MosaicDashboardPanelDragOverlay.d.ts → panel/MosaicDashboardPanelDragOverlay.d.ts} +0 -0
  971. /package/dist/dashboard/{MosaicDashboardPanelLayout.d.ts → panel/MosaicDashboardPanelLayout.d.ts} +0 -0
  972. /package/dist/dashboard/{MosaicDashboardPanelLayout.js → panel/MosaicDashboardPanelLayout.js} +0 -0
  973. /package/dist/dashboard/{MosaicDashboardPanels.d.ts → panel/MosaicDashboardPanels.d.ts} +0 -0
  974. /package/dist/dashboard/{MosaicDashboardToolbar.d.ts → toolbar/MosaicDashboardToolbar.d.ts} +0 -0
  975. /package/dist/{profiler → data-table-explorer}/types.js +0 -0
@@ -0,0 +1,35 @@
1
+ import { z } from 'zod';
2
+ import type { DashboardToolDeps } from '../charts/chart-types/base-types';
3
+ export declare const ListPanelsToolParameters: z.ZodObject<{
4
+ artifactId: z.ZodOptional<z.ZodString>;
5
+ reasoning: z.ZodString;
6
+ }, z.core.$strip>;
7
+ export type ListPanelsToolParams = z.infer<typeof ListPanelsToolParameters>;
8
+ export declare function createListPanelsTool(deps: DashboardToolDeps): import("ai").Tool<{
9
+ reasoning: string;
10
+ artifactId?: string | undefined;
11
+ }, {
12
+ llmResult: {
13
+ success: boolean;
14
+ errorMessage: string;
15
+ details?: undefined;
16
+ data?: undefined;
17
+ };
18
+ } | {
19
+ llmResult: {
20
+ success: boolean;
21
+ details: string;
22
+ data: {
23
+ artifactId: string;
24
+ panels: {
25
+ issue?: import("..").ChartRuntimeIssue | undefined;
26
+ id: any;
27
+ type: any;
28
+ title: any;
29
+ config: any;
30
+ }[];
31
+ };
32
+ errorMessage?: undefined;
33
+ };
34
+ }>;
35
+ //# sourceMappingURL=list-panels-tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-panels-tool.d.ts","sourceRoot":"","sources":["../../src/ai/list-panels-tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,kCAAkC,CAAC;AAExE,eAAO,MAAM,wBAAwB;;;iBAQnC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE5E,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;GAwD3D"}
@@ -0,0 +1,66 @@
1
+ import { tool } from 'ai';
2
+ import { z } from 'zod';
3
+ export const ListPanelsToolParameters = z.object({
4
+ artifactId: z
5
+ .string()
6
+ .optional()
7
+ .describe('Optional dashboard artifact ID. Defaults to current dashboard.'),
8
+ reasoning: z
9
+ .string()
10
+ .describe('Brief rationale for listing dashboard panels.'),
11
+ });
12
+ export function createListPanelsTool(deps) {
13
+ return tool({
14
+ description: `List dashboard panels: returns all panels in the current dashboard with their IDs, types, titles, configurations, and any current runtime issue.
15
+
16
+ Use when: you need to discover panel IDs before updating or removing panels, or when user asks "what's on this dashboard".
17
+
18
+ Runtime issues are transient chart diagnostics such as too-much-data or sql-error. If a panel has an issue, use the panel ID to update it in place with a safer chart configuration.
19
+
20
+ Returns array of: {id, type, title, config, issue?} for each panel.`,
21
+ inputSchema: ListPanelsToolParameters,
22
+ execute: async (params) => {
23
+ try {
24
+ const artifactId = deps.resolveArtifact(params.artifactId);
25
+ const dashboard = deps.getDashboard(artifactId);
26
+ if (!dashboard) {
27
+ return {
28
+ llmResult: {
29
+ success: false,
30
+ errorMessage: `Dashboard "${artifactId}" not found.`,
31
+ },
32
+ };
33
+ }
34
+ const panels = dashboard.panels.map((panel) => {
35
+ const issue = deps.getPanelIssue?.(artifactId, panel.id);
36
+ return {
37
+ id: panel.id,
38
+ type: panel.type,
39
+ title: panel.title,
40
+ config: panel.config,
41
+ ...(issue ? { issue } : {}),
42
+ };
43
+ });
44
+ return {
45
+ llmResult: {
46
+ success: true,
47
+ details: `Found ${panels.length} panel(s) in dashboard.`,
48
+ data: {
49
+ artifactId,
50
+ panels,
51
+ },
52
+ },
53
+ };
54
+ }
55
+ catch (error) {
56
+ return {
57
+ llmResult: {
58
+ success: false,
59
+ errorMessage: error instanceof Error ? error.message : String(error),
60
+ },
61
+ };
62
+ }
63
+ },
64
+ });
65
+ }
66
+ //# sourceMappingURL=list-panels-tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-panels-tool.js","sourceRoot":"","sources":["../../src/ai/list-panels-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,IAAI,CAAC;AACxB,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gEAAgE,CAAC;IAC7E,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,CAAC,+CAA+C,CAAC;CAC7D,CAAC,CAAC;AAIH,MAAM,UAAU,oBAAoB,CAAC,IAAuB;IAC1D,OAAO,IAAI,CAAC;QACV,WAAW,EAAE;;;;;;oEAMmD;QAChE,WAAW,EAAE,wBAAwB;QACrC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;YACxB,IAAI,CAAC;gBACH,MAAM,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;gBAE3D,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;gBAChD,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,OAAO;wBACL,SAAS,EAAE;4BACT,OAAO,EAAE,KAAK;4BACd,YAAY,EAAE,cAAc,UAAU,cAAc;yBACrD;qBACF,CAAC;gBACJ,CAAC;gBAED,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAU,EAAE,EAAE;oBACjD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;oBACzD,OAAO;wBACL,EAAE,EAAE,KAAK,CAAC,EAAE;wBACZ,IAAI,EAAE,KAAK,CAAC,IAAI;wBAChB,KAAK,EAAE,KAAK,CAAC,KAAK;wBAClB,MAAM,EAAE,KAAK,CAAC,MAAM;wBACpB,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAC,KAAK,EAAC,CAAC,CAAC,CAAC,EAAE,CAAC;qBAC1B,CAAC;gBACJ,CAAC,CAAC,CAAC;gBAEH,OAAO;oBACL,SAAS,EAAE;wBACT,OAAO,EAAE,IAAI;wBACb,OAAO,EAAE,SAAS,MAAM,CAAC,MAAM,yBAAyB;wBACxD,IAAI,EAAE;4BACJ,UAAU;4BACV,MAAM;yBACP;qBACF;iBACF,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO;oBACL,SAAS,EAAE;wBACT,OAAO,EAAE,KAAK;wBACd,YAAY,EACV,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;qBACzD;iBACF,CAAC;YACJ,CAAC;QACH,CAAC;KACF,CAAC,CAAC;AACL,CAAC","sourcesContent":["import {tool} from 'ai';\nimport {z} from 'zod';\nimport type {DashboardToolDeps} from '../charts/chart-types/base-types';\n\nexport const ListPanelsToolParameters = z.object({\n artifactId: z\n .string()\n .optional()\n .describe('Optional dashboard artifact ID. Defaults to current dashboard.'),\n reasoning: z\n .string()\n .describe('Brief rationale for listing dashboard panels.'),\n});\n\nexport type ListPanelsToolParams = z.infer<typeof ListPanelsToolParameters>;\n\nexport function createListPanelsTool(deps: DashboardToolDeps) {\n return tool({\n description: `List dashboard panels: returns all panels in the current dashboard with their IDs, types, titles, configurations, and any current runtime issue.\n\nUse when: you need to discover panel IDs before updating or removing panels, or when user asks \"what's on this dashboard\".\n\nRuntime issues are transient chart diagnostics such as too-much-data or sql-error. If a panel has an issue, use the panel ID to update it in place with a safer chart configuration.\n\nReturns array of: {id, type, title, config, issue?} for each panel.`,\n inputSchema: ListPanelsToolParameters,\n execute: async (params) => {\n try {\n const artifactId = deps.resolveArtifact(params.artifactId);\n\n const dashboard = deps.getDashboard(artifactId);\n if (!dashboard) {\n return {\n llmResult: {\n success: false,\n errorMessage: `Dashboard \"${artifactId}\" not found.`,\n },\n };\n }\n\n const panels = dashboard.panels.map((panel: any) => {\n const issue = deps.getPanelIssue?.(artifactId, panel.id);\n return {\n id: panel.id,\n type: panel.type,\n title: panel.title,\n config: panel.config,\n ...(issue ? {issue} : {}),\n };\n });\n\n return {\n llmResult: {\n success: true,\n details: `Found ${panels.length} panel(s) in dashboard.`,\n data: {\n artifactId,\n panels,\n },\n },\n };\n } catch (error) {\n return {\n llmResult: {\n success: false,\n errorMessage:\n error instanceof Error ? error.message : String(error),\n },\n };\n }\n },\n });\n}\n"]}
@@ -0,0 +1,31 @@
1
+ import { z } from 'zod';
2
+ import type { DashboardToolDeps } from '../charts/chart-types/base-types';
3
+ export declare const RemovePanelToolParameters: z.ZodObject<{
4
+ artifactId: z.ZodOptional<z.ZodString>;
5
+ panelId: z.ZodString;
6
+ reasoning: z.ZodString;
7
+ }, z.core.$strip>;
8
+ export type RemovePanelToolParams = z.infer<typeof RemovePanelToolParameters>;
9
+ export declare function createRemovePanelTool(deps: DashboardToolDeps): import("ai").Tool<{
10
+ panelId: string;
11
+ reasoning: string;
12
+ artifactId?: string | undefined;
13
+ }, {
14
+ llmResult: {
15
+ success: boolean;
16
+ details: string;
17
+ data: {
18
+ artifactId: string;
19
+ panelId: string;
20
+ };
21
+ errorMessage?: undefined;
22
+ };
23
+ } | {
24
+ llmResult: {
25
+ success: boolean;
26
+ errorMessage: string;
27
+ details?: undefined;
28
+ data?: undefined;
29
+ };
30
+ }>;
31
+ //# sourceMappingURL=remove-panel-tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-panel-tool.d.ts","sourceRoot":"","sources":["../../src/ai/remove-panel-tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,kCAAkC,CAAC;AAExE,eAAO,MAAM,yBAAyB;;;;iBAWpC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE9E,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;GA+C5D"}
@@ -0,0 +1,55 @@
1
+ import { tool } from 'ai';
2
+ import { z } from 'zod';
3
+ export const RemovePanelToolParameters = z.object({
4
+ artifactId: z
5
+ .string()
6
+ .optional()
7
+ .describe('Optional dashboard artifact ID. Defaults to current dashboard.'),
8
+ panelId: z
9
+ .string()
10
+ .describe('ID of the panel to remove. Use list_dashboard_panels to discover panel IDs.'),
11
+ reasoning: z.string().describe('Brief rationale for removing this panel.'),
12
+ });
13
+ export function createRemovePanelTool(deps) {
14
+ return tool({
15
+ description: `Remove dashboard panel: deletes a panel from the dashboard by its ID.
16
+
17
+ Use when: user asks to "remove", "delete", "get rid of" a specific panel.
18
+
19
+ Use list_dashboard_panels first to discover panel IDs.`,
20
+ inputSchema: RemovePanelToolParameters,
21
+ execute: async (params) => {
22
+ try {
23
+ const artifactId = deps.resolveArtifact(params.artifactId);
24
+ const dashboard = deps.getDashboard(artifactId);
25
+ if (!dashboard) {
26
+ throw new Error(`Dashboard "${artifactId}" not found.`);
27
+ }
28
+ const panelExists = dashboard.panels.some((panel) => panel.id === params.panelId);
29
+ if (!panelExists) {
30
+ throw new Error(`Panel "${params.panelId}" not found in dashboard "${artifactId}". Cannot remove.`);
31
+ }
32
+ deps.removePanel(artifactId, params.panelId);
33
+ return {
34
+ llmResult: {
35
+ success: true,
36
+ details: `Removed panel "${params.panelId}" from dashboard.`,
37
+ data: {
38
+ artifactId,
39
+ panelId: params.panelId,
40
+ },
41
+ },
42
+ };
43
+ }
44
+ catch (error) {
45
+ return {
46
+ llmResult: {
47
+ success: false,
48
+ errorMessage: error instanceof Error ? error.message : String(error),
49
+ },
50
+ };
51
+ }
52
+ },
53
+ });
54
+ }
55
+ //# sourceMappingURL=remove-panel-tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-panel-tool.js","sourceRoot":"","sources":["../../src/ai/remove-panel-tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,IAAI,CAAC;AACxB,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gEAAgE,CAAC;IAC7E,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,6EAA6E,CAC9E;IACH,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;CAC3E,CAAC,CAAC;AAIH,MAAM,UAAU,qBAAqB,CAAC,IAAuB;IAC3D,OAAO,IAAI,CAAC;QACV,WAAW,EAAE;;;;uDAIsC;QACnD,WAAW,EAAE,yBAAyB;QACtC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;YACxB,IAAI,CAAC;gBACH,MAAM,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;gBAC3D,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;gBAChD,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,MAAM,IAAI,KAAK,CAAC,cAAc,UAAU,cAAc,CAAC,CAAC;gBAC1D,CAAC;gBACD,MAAM,WAAW,GAAG,SAAS,CAAC,MAAM,CAAC,IAAI,CACvC,CAAC,KAAmB,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,MAAM,CAAC,OAAO,CACrD,CAAC;gBACF,IAAI,CAAC,WAAW,EAAE,CAAC;oBACjB,MAAM,IAAI,KAAK,CACb,UAAU,MAAM,CAAC,OAAO,6BAA6B,UAAU,mBAAmB,CACnF,CAAC;gBACJ,CAAC;gBAED,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;gBAE7C,OAAO;oBACL,SAAS,EAAE;wBACT,OAAO,EAAE,IAAI;wBACb,OAAO,EAAE,kBAAkB,MAAM,CAAC,OAAO,mBAAmB;wBAC5D,IAAI,EAAE;4BACJ,UAAU;4BACV,OAAO,EAAE,MAAM,CAAC,OAAO;yBACxB;qBACF;iBACF,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO;oBACL,SAAS,EAAE;wBACT,OAAO,EAAE,KAAK;wBACd,YAAY,EACV,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;qBACzD;iBACF,CAAC;YACJ,CAAC;QACH,CAAC;KACF,CAAC,CAAC;AACL,CAAC","sourcesContent":["import {tool} from 'ai';\nimport {z} from 'zod';\nimport type {DashboardToolDeps} from '../charts/chart-types/base-types';\n\nexport const RemovePanelToolParameters = z.object({\n artifactId: z\n .string()\n .optional()\n .describe('Optional dashboard artifact ID. Defaults to current dashboard.'),\n panelId: z\n .string()\n .describe(\n 'ID of the panel to remove. Use list_dashboard_panels to discover panel IDs.',\n ),\n reasoning: z.string().describe('Brief rationale for removing this panel.'),\n});\n\nexport type RemovePanelToolParams = z.infer<typeof RemovePanelToolParameters>;\n\nexport function createRemovePanelTool(deps: DashboardToolDeps) {\n return tool({\n description: `Remove dashboard panel: deletes a panel from the dashboard by its ID.\n\nUse when: user asks to \"remove\", \"delete\", \"get rid of\" a specific panel.\n\nUse list_dashboard_panels first to discover panel IDs.`,\n inputSchema: RemovePanelToolParameters,\n execute: async (params) => {\n try {\n const artifactId = deps.resolveArtifact(params.artifactId);\n const dashboard = deps.getDashboard(artifactId);\n if (!dashboard) {\n throw new Error(`Dashboard \"${artifactId}\" not found.`);\n }\n const panelExists = dashboard.panels.some(\n (panel: {id: string}) => panel.id === params.panelId,\n );\n if (!panelExists) {\n throw new Error(\n `Panel \"${params.panelId}\" not found in dashboard \"${artifactId}\". Cannot remove.`,\n );\n }\n\n deps.removePanel(artifactId, params.panelId);\n\n return {\n llmResult: {\n success: true,\n details: `Removed panel \"${params.panelId}\" from dashboard.`,\n data: {\n artifactId,\n panelId: params.panelId,\n },\n },\n };\n } catch (error) {\n return {\n llmResult: {\n success: false,\n errorMessage:\n error instanceof Error ? error.message : String(error),\n },\n };\n }\n },\n });\n}\n"]}
@@ -0,0 +1,34 @@
1
+ import type { DashboardToolDeps } from '../charts/chart-types/base-types';
2
+ import type { DataTableExplorerPanelConfig } from '../dashboard/core-types';
3
+ import type { ChartConfig } from '../charts/chart-types/chart-config';
4
+ export interface PanelResult {
5
+ panelId: string;
6
+ artifactId: string;
7
+ title: string;
8
+ config: ChartConfig | DataTableExplorerPanelConfig;
9
+ }
10
+ export interface CreateOrUpdateChartPanelParams {
11
+ panelId?: string;
12
+ dashboardId: string;
13
+ tableName: string;
14
+ title: string;
15
+ config: ChartConfig;
16
+ }
17
+ export interface CreateOrUpdateDataTableExplorerPanelParams {
18
+ panelId?: string;
19
+ dashboardId: string;
20
+ tableName: string;
21
+ title: string;
22
+ config: DataTableExplorerPanelConfig;
23
+ }
24
+ /**
25
+ * Universal helper to create or update a chart panel.
26
+ * Handles everything: panel config creation, add/update logic, artifact switching.
27
+ * When updating, both source and config are updated to allow changing the data source.
28
+ */
29
+ export declare function createOrUpdateChartPanel(deps: DashboardToolDeps, params: CreateOrUpdateChartPanelParams): PanelResult;
30
+ /**
31
+ * Universal helper to create or update a dataTableExplorer panel.
32
+ */
33
+ export declare function createOrUpdateDataTableExplorerPanel(deps: DashboardToolDeps, params: CreateOrUpdateDataTableExplorerPanelParams): PanelResult;
34
+ //# sourceMappingURL=tool-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-helpers.d.ts","sourceRoot":"","sources":["../../src/ai/tool-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,kCAAkC,CAAC;AAMxE,OAAO,KAAK,EAAC,4BAA4B,EAAC,MAAM,yBAAyB,CAAC;AAC1E,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,oCAAoC,CAAC;AAEpE,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,GAAG,4BAA4B,CAAC;CACpD;AAED,MAAM,WAAW,8BAA8B;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,CAAC;CACrB;AAED,MAAM,WAAW,0CAA0C;IACzD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,4BAA4B,CAAC;CACtC;AAkCD;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,iBAAiB,EACvB,MAAM,EAAE,8BAA8B,GACrC,WAAW,CAoCb;AAED;;GAEG;AACH,wBAAgB,oCAAoC,CAClD,IAAI,EAAE,iBAAiB,EACvB,MAAM,EAAE,0CAA0C,GACjD,WAAW,CAmCb"}
@@ -0,0 +1,93 @@
1
+ import { createMosaicDashboardChartPanelConfig, createMosaicDashboardDataTableExplorerPanelConfig, } from '../dashboard/MosaicDashboardSlice';
2
+ /**
3
+ * Validates that a dashboard exists. Throws if not found.
4
+ */
5
+ function ensureDashboard(deps, dashboardId) {
6
+ const dashboard = deps.getDashboard(dashboardId);
7
+ if (!dashboard) {
8
+ throw new Error(`Dashboard "${dashboardId}" not found. Cannot update panel.`);
9
+ }
10
+ return dashboard;
11
+ }
12
+ /**
13
+ * Validates that a panel exists in a dashboard. Throws if not found.
14
+ */
15
+ function ensurePanel(dashboard, dashboardId, panelId) {
16
+ const panelExists = dashboard.panels.some((p) => p.id === panelId);
17
+ if (!panelExists) {
18
+ throw new Error(`Panel "${panelId}" not found in dashboard "${dashboardId}". Cannot update.`);
19
+ }
20
+ }
21
+ /**
22
+ * Universal helper to create or update a chart panel.
23
+ * Handles everything: panel config creation, add/update logic, artifact switching.
24
+ * When updating, both source and config are updated to allow changing the data source.
25
+ */
26
+ export function createOrUpdateChartPanel(deps, params) {
27
+ if (params.panelId) {
28
+ // Validate panel exists before attempting update
29
+ const dashboard = ensureDashboard(deps, params.dashboardId);
30
+ ensurePanel(dashboard, params.dashboardId, params.panelId);
31
+ // Update existing panel - update both source and config
32
+ deps.updatePanel(params.dashboardId, params.panelId, {
33
+ title: params.title,
34
+ source: { tableName: params.tableName },
35
+ config: params.config,
36
+ });
37
+ return {
38
+ panelId: params.panelId,
39
+ artifactId: params.dashboardId,
40
+ title: params.title,
41
+ config: params.config,
42
+ };
43
+ }
44
+ else {
45
+ // Create new panel - create config and add to dashboard
46
+ const panel = createMosaicDashboardChartPanelConfig(params.title, params.config);
47
+ const panelId = deps.addPanel(params.dashboardId, panel);
48
+ deps.setCurrentArtifact(params.dashboardId);
49
+ return {
50
+ panelId,
51
+ artifactId: params.dashboardId,
52
+ title: params.title,
53
+ config: params.config,
54
+ };
55
+ }
56
+ }
57
+ /**
58
+ * Universal helper to create or update a dataTableExplorer panel.
59
+ */
60
+ export function createOrUpdateDataTableExplorerPanel(deps, params) {
61
+ if (params.panelId) {
62
+ // Validate panel exists before attempting update
63
+ const dashboard = ensureDashboard(deps, params.dashboardId);
64
+ ensurePanel(dashboard, params.dashboardId, params.panelId);
65
+ deps.updatePanel(params.dashboardId, params.panelId, {
66
+ config: params.config,
67
+ source: { tableName: params.tableName },
68
+ title: params.title,
69
+ });
70
+ return {
71
+ panelId: params.panelId,
72
+ artifactId: params.dashboardId,
73
+ title: params.title,
74
+ config: params.config,
75
+ };
76
+ }
77
+ else {
78
+ // Create new panel - create full panel config
79
+ const panel = createMosaicDashboardDataTableExplorerPanelConfig({
80
+ title: params.title,
81
+ config: params.config,
82
+ });
83
+ const panelId = deps.addPanel(params.dashboardId, panel);
84
+ deps.setCurrentArtifact(params.dashboardId);
85
+ return {
86
+ panelId,
87
+ artifactId: params.dashboardId,
88
+ title: panel.title,
89
+ config: panel.config,
90
+ };
91
+ }
92
+ }
93
+ //# sourceMappingURL=tool-helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-helpers.js","sourceRoot":"","sources":["../../src/ai/tool-helpers.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qCAAqC,EACrC,iDAAiD,GAClD,MAAM,mCAAmC,CAAC;AA4B3C;;GAEG;AACH,SAAS,eAAe,CACtB,IAAuB,EACvB,WAAmB;IAEnB,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IACjD,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,cAAc,WAAW,mCAAmC,CAC7D,CAAC;IACJ,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;GAEG;AACH,SAAS,WAAW,CAClB,SAA+B,EAC/B,WAAmB,EACnB,OAAe;IAEf,MAAM,WAAW,GAAG,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,OAAO,CAAC,CAAC;IACnE,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CACb,UAAU,OAAO,6BAA6B,WAAW,mBAAmB,CAC7E,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CACtC,IAAuB,EACvB,MAAsC;IAEtC,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACnB,iDAAiD;QACjD,MAAM,SAAS,GAAG,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;QAC5D,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QAE3D,wDAAwD;QACxD,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,OAAO,EAAE;YACnD,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,MAAM,EAAE,EAAC,SAAS,EAAE,MAAM,CAAC,SAAS,EAAC;YACrC,MAAM,EAAE,MAAM,CAAC,MAAM;SACtB,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,UAAU,EAAE,MAAM,CAAC,WAAW;YAC9B,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,MAAM,EAAE,MAAM,CAAC,MAAM;SACtB,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,wDAAwD;QACxD,MAAM,KAAK,GAAG,qCAAqC,CACjD,MAAM,CAAC,KAAK,EACZ,MAAM,CAAC,MAAM,CACd,CAAC;QAEF,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QACzD,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAE5C,OAAO;YACL,OAAO;YACP,UAAU,EAAE,MAAM,CAAC,WAAW;YAC9B,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,MAAM,EAAE,MAAM,CAAC,MAAM;SACtB,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oCAAoC,CAClD,IAAuB,EACvB,MAAkD;IAElD,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACnB,iDAAiD;QACjD,MAAM,SAAS,GAAG,eAAe,CAAC,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;QAC5D,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QAE3D,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,OAAO,EAAE;YACnD,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,MAAM,EAAE,EAAC,SAAS,EAAE,MAAM,CAAC,SAAS,EAAC;YACrC,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB,CAAC,CAAC;QAEH,OAAO;YACL,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,UAAU,EAAE,MAAM,CAAC,WAAW;YAC9B,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,MAAM,EAAE,MAAM,CAAC,MAAM;SACtB,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,8CAA8C;QAC9C,MAAM,KAAK,GAAG,iDAAiD,CAAC;YAC9D,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,MAAM,EAAE,MAAM,CAAC,MAAM;SACtB,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QACzD,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAE5C,OAAO;YACL,OAAO;YACP,UAAU,EAAE,MAAM,CAAC,WAAW;YAC9B,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,MAAM,EAAE,KAAK,CAAC,MAAM;SACrB,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["import type {DashboardToolDeps} from '../charts/chart-types/base-types';\nimport {\n createMosaicDashboardChartPanelConfig,\n createMosaicDashboardDataTableExplorerPanelConfig,\n} from '../dashboard/MosaicDashboardSlice';\nimport {MosaicDashboardEntry} from '../dashboard/dashboard-types';\nimport type {DataTableExplorerPanelConfig} from '../dashboard/core-types';\nimport type {ChartConfig} from '../charts/chart-types/chart-config';\n\nexport interface PanelResult {\n panelId: string;\n artifactId: string;\n title: string;\n config: ChartConfig | DataTableExplorerPanelConfig;\n}\n\nexport interface CreateOrUpdateChartPanelParams {\n panelId?: string;\n dashboardId: string;\n tableName: string;\n title: string;\n config: ChartConfig;\n}\n\nexport interface CreateOrUpdateDataTableExplorerPanelParams {\n panelId?: string;\n dashboardId: string;\n tableName: string;\n title: string;\n config: DataTableExplorerPanelConfig;\n}\n\n/**\n * Validates that a dashboard exists. Throws if not found.\n */\nfunction ensureDashboard(\n deps: DashboardToolDeps,\n dashboardId: string,\n): NonNullable<ReturnType<DashboardToolDeps['getDashboard']>> {\n const dashboard = deps.getDashboard(dashboardId);\n if (!dashboard) {\n throw new Error(\n `Dashboard \"${dashboardId}\" not found. Cannot update panel.`,\n );\n }\n return dashboard;\n}\n\n/**\n * Validates that a panel exists in a dashboard. Throws if not found.\n */\nfunction ensurePanel(\n dashboard: MosaicDashboardEntry,\n dashboardId: string,\n panelId: string,\n): void {\n const panelExists = dashboard.panels.some((p) => p.id === panelId);\n if (!panelExists) {\n throw new Error(\n `Panel \"${panelId}\" not found in dashboard \"${dashboardId}\". Cannot update.`,\n );\n }\n}\n\n/**\n * Universal helper to create or update a chart panel.\n * Handles everything: panel config creation, add/update logic, artifact switching.\n * When updating, both source and config are updated to allow changing the data source.\n */\nexport function createOrUpdateChartPanel(\n deps: DashboardToolDeps,\n params: CreateOrUpdateChartPanelParams,\n): PanelResult {\n if (params.panelId) {\n // Validate panel exists before attempting update\n const dashboard = ensureDashboard(deps, params.dashboardId);\n ensurePanel(dashboard, params.dashboardId, params.panelId);\n\n // Update existing panel - update both source and config\n deps.updatePanel(params.dashboardId, params.panelId, {\n title: params.title,\n source: {tableName: params.tableName},\n config: params.config,\n });\n\n return {\n panelId: params.panelId,\n artifactId: params.dashboardId,\n title: params.title,\n config: params.config,\n };\n } else {\n // Create new panel - create config and add to dashboard\n const panel = createMosaicDashboardChartPanelConfig(\n params.title,\n params.config,\n );\n\n const panelId = deps.addPanel(params.dashboardId, panel);\n deps.setCurrentArtifact(params.dashboardId);\n\n return {\n panelId,\n artifactId: params.dashboardId,\n title: params.title,\n config: params.config,\n };\n }\n}\n\n/**\n * Universal helper to create or update a dataTableExplorer panel.\n */\nexport function createOrUpdateDataTableExplorerPanel(\n deps: DashboardToolDeps,\n params: CreateOrUpdateDataTableExplorerPanelParams,\n): PanelResult {\n if (params.panelId) {\n // Validate panel exists before attempting update\n const dashboard = ensureDashboard(deps, params.dashboardId);\n ensurePanel(dashboard, params.dashboardId, params.panelId);\n\n deps.updatePanel(params.dashboardId, params.panelId, {\n config: params.config,\n source: {tableName: params.tableName},\n title: params.title,\n });\n\n return {\n panelId: params.panelId,\n artifactId: params.dashboardId,\n title: params.title,\n config: params.config,\n };\n } else {\n // Create new panel - create full panel config\n const panel = createMosaicDashboardDataTableExplorerPanelConfig({\n title: params.title,\n config: params.config,\n });\n\n const panelId = deps.addPanel(params.dashboardId, panel);\n deps.setCurrentArtifact(params.dashboardId);\n\n return {\n panelId,\n artifactId: params.dashboardId,\n title: panel.title,\n config: panel.config,\n };\n }\n}\n"]}
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ export declare const BaseChartToolParameters: z.ZodObject<{
3
+ artifactId: z.ZodOptional<z.ZodString>;
4
+ tableName: z.ZodOptional<z.ZodString>;
5
+ createArtifactIfMissing: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
6
+ panelId: z.ZodOptional<z.ZodString>;
7
+ reasoning: z.ZodString;
8
+ }, z.core.$strip>;
9
+ //# sourceMappingURL=tool-schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-schemas.d.ts","sourceRoot":"","sources":["../../src/ai/tool-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,uBAAuB;;;;;;iBAuBlC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ export const BaseChartToolParameters = z.object({
3
+ artifactId: z
4
+ .string()
5
+ .optional()
6
+ .describe('Optional dashboard artifact ID. Prefer passing this explicitly; if omitted, the host may use an unambiguous primary dashboard context.'),
7
+ tableName: z
8
+ .string()
9
+ .optional()
10
+ .describe('Optional table name. Use when no table is selected yet.'),
11
+ createArtifactIfMissing: z
12
+ .boolean()
13
+ .optional()
14
+ .default(true)
15
+ .describe('If true, create dashboard artifact if missing.'),
16
+ panelId: z
17
+ .string()
18
+ .optional()
19
+ .describe('Optional panel ID. If provided, updates the existing panel instead of creating new one.'),
20
+ reasoning: z.string().describe('Brief rationale for the chart choice.'),
21
+ });
22
+ //# sourceMappingURL=tool-schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-schemas.js","sourceRoot":"","sources":["../../src/ai/tool-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,wIAAwI,CACzI;IACH,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,uBAAuB,EAAE,CAAC;SACvB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,yFAAyF,CAC1F;IACH,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;CACxE,CAAC,CAAC","sourcesContent":["import {z} from 'zod';\n\nexport const BaseChartToolParameters = z.object({\n artifactId: z\n .string()\n .optional()\n .describe(\n 'Optional dashboard artifact ID. Prefer passing this explicitly; if omitted, the host may use an unambiguous primary dashboard context.',\n ),\n tableName: z\n .string()\n .optional()\n .describe('Optional table name. Use when no table is selected yet.'),\n createArtifactIfMissing: z\n .boolean()\n .optional()\n .default(true)\n .describe('If true, create dashboard artifact if missing.'),\n panelId: z\n .string()\n .optional()\n .describe(\n 'Optional panel ID. If provided, updates the existing panel instead of creating new one.',\n ),\n reasoning: z.string().describe('Brief rationale for the chart choice.'),\n});\n"]}
@@ -0,0 +1,26 @@
1
+ import { ChartConfig } from '../charts/chart-types/chart-config';
2
+ import type { ChartBuilderColumn } from '../charts/chart-types/base-types';
3
+ export interface ResolvedChartResourcesParams {
4
+ artifactId?: string;
5
+ tableName?: string;
6
+ createArtifactIfMissing?: boolean;
7
+ }
8
+ export interface ResolvedChartResources {
9
+ artifactId: string;
10
+ tableName: string;
11
+ columns: ChartBuilderColumn[];
12
+ }
13
+ export interface CreateChartParams {
14
+ artifactId: string;
15
+ tableName: string;
16
+ title: string;
17
+ config: ChartConfig;
18
+ }
19
+ export interface CreateChartResult {
20
+ panelId: string;
21
+ artifactId: string;
22
+ tableName: string;
23
+ title: string;
24
+ config: ChartConfig;
25
+ }
26
+ //# sourceMappingURL=tool-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-types.d.ts","sourceRoot":"","sources":["../../src/ai/tool-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,oCAAoC,CAAC;AAC/D,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,kCAAkC,CAAC;AAEzE,MAAM,WAAW,4BAA4B;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;AAED,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,CAAC;CACrB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-types.js","sourceRoot":"","sources":["../../src/ai/tool-types.ts"],"names":[],"mappings":"","sourcesContent":["import {ChartConfig} from '../charts/chart-types/chart-config';\nimport type {ChartBuilderColumn} from '../charts/chart-types/base-types';\n\nexport interface ResolvedChartResourcesParams {\n artifactId?: string;\n tableName?: string;\n createArtifactIfMissing?: boolean;\n}\n\nexport interface ResolvedChartResources {\n artifactId: string;\n tableName: string;\n columns: ChartBuilderColumn[];\n}\n\nexport interface CreateChartParams {\n artifactId: string;\n tableName: string;\n title: string;\n config: ChartConfig;\n}\n\nexport interface CreateChartResult {\n panelId: string;\n artifactId: string;\n tableName: string;\n title: string;\n config: ChartConfig;\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import type { ChartBuilderColumn } from '../charts/chart-types/base-types';
2
+ export declare function validateColumnExists(columnName: string, expectedTypes: string[] | undefined, columns: ChartBuilderColumn[], fieldKey: string): void;
3
+ //# sourceMappingURL=tool-validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-validation.d.ts","sourceRoot":"","sources":["../../src/ai/tool-validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,kCAAkC,CAAC;AAEzE,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,EAAE,GAAG,SAAS,EACnC,OAAO,EAAE,kBAAkB,EAAE,EAC7B,QAAQ,EAAE,MAAM,GACf,IAAI,CAkBN"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-validation.js","sourceRoot":"","sources":["../../src/ai/tool-validation.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,oBAAoB,CAClC,UAAkB,EAClB,aAAmC,EACnC,OAA6B,EAC7B,QAAgB;IAEhB,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC;IAC1E,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CACb,mBAAmB,UAAU,gBAAgB,QAAQ,yBAAyB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,QAAQ,GAAG,CACnI,CAAC;IACJ,CAAC;IAED,IACE,aAAa,EAAE,MAAM;QACrB,CAAC,aAAa,CAAC,IAAI,CACjB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,CAC3D,EACD,CAAC;QACD,MAAM,IAAI,KAAK,CACb,WAAW,UAAU,cAAc,MAAM,CAAC,IAAI,eAAe,QAAQ,aAAa,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAC9G,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["import type {ChartBuilderColumn} from '../charts/chart-types/base-types';\n\nexport function validateColumnExists(\n columnName: string,\n expectedTypes: string[] | undefined,\n columns: ChartBuilderColumn[],\n fieldKey: string,\n): void {\n const column = columns.find((candidate) => candidate.name === columnName);\n if (!column) {\n throw new Error(\n `Unknown column \"${columnName}\" for field \"${fieldKey}\". Available columns: ${columns.map((c) => c.name).join(', ') || '(none)'}.`,\n );\n }\n\n if (\n expectedTypes?.length &&\n !expectedTypes.some(\n (type) => type.toUpperCase() === column.type.toUpperCase(),\n )\n ) {\n throw new Error(\n `Column \"${columnName}\" has type ${column.type} but field \"${fieldKey}\" expects ${expectedTypes.join(', ')}.`,\n );\n }\n}\n"]}
package/dist/ai.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * AI tools and utilities for Mosaic dashboards
3
+ * @packageDocumentation
4
+ */
5
+ export * from './ai/ai';
6
+ //# sourceMappingURL=ai.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai.d.ts","sourceRoot":"","sources":["../src/ai.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,SAAS,CAAC"}
package/dist/ai.js ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * AI tools and utilities for Mosaic dashboards
3
+ * @packageDocumentation
4
+ */
5
+ export * from './ai/ai';
6
+ //# sourceMappingURL=ai.js.map
package/dist/ai.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai.js","sourceRoot":"","sources":["../src/ai.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * AI tools and utilities for Mosaic dashboards\n * @packageDocumentation\n */\nexport * from './ai/ai';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"ChartBuilderActions.js","sourceRoot":"","sources":["../../src/chart-builders/ChartBuilderActions.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,MAAM,EAAE,EAAE,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAK,WAAW,EAAE,OAAO,EAAC,MAAM,OAAO,CAAC;AAC/C,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,mBAAmB,EAAE,sBAAsB,EAAC,MAAM,kBAAkB,CAAC;AAO7E,MAAM,CAAC,MAAM,mBAAmB,GAAiC,CAAC,EAChE,SAAS,GACV,EAAE,EAAE;IACH,MAAM,EAAC,aAAa,EAAE,SAAS,EAAC,GAAG,sBAAsB,EAAE,CAAC;IAC5D,MAAM,kBAAkB,GAAG,oBAAoB,CAC7C,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,kBAAkB,CACpC,CAAC;IACF,MAAM,WAAW,GAAG,oBAAoB,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IACvE,MAAM,KAAK,GAAG,oBAAoB,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAE3D,MAAM,gBAAgB,GAAG,OAAO,CAC9B,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,KAAK,kBAAkB,CAAC,EACtE,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAChC,CAAC;IAEF,MAAM,SAAS,GAAG,sBAAsB,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC;IAExE,MAAM,iBAAiB,GAAG,WAAW,CAAC,GAAG,EAAE;QACzC,IAAI,CAAC,gBAAgB,IAAI,CAAC,SAAS,IAAI,CAAC,kBAAkB,EAAE,CAAC;YAC3D,OAAO;QACT,CAAC;QAED,MAAM,KAAK,GAAG,mBAAmB,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC;QACjE,aAAa,CAAC,KAAK,EAAE;YACnB,SAAS,EAAE,kBAAkB;YAC7B,QAAQ,EAAE,WAAW;SACP,CAAC,CAAC;QAClB,KAAK,EAAE,CAAC;IACV,CAAC,EAAE;QACD,gBAAgB;QAChB,SAAS;QACT,kBAAkB;QAClB,WAAW;QACX,aAAa;QACb,KAAK;KACN,CAAC,CAAC;IAEH,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,eAAK,SAAS,EAAE,EAAE,CAAC,qCAAqC,EAAE,SAAS,CAAC,aAClE,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAE,KAAK,qBAEzC,EACT,KAAC,MAAM,IAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,CAAC,SAAS,uBAEzD,IACL,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import {Button, cn} from '@sqlrooms/ui';\nimport {FC, useCallback, useMemo} from 'react';\nimport {\n useChartBuilderContext,\n useChartBuilderStore,\n} from './ChartBuilderContext';\nimport {buildChartTypeTitle, canCreateChartFromType} from './chartTypeUtils';\nimport type {ChartConfig} from '../chart-types';\n\nexport interface ChartBuilderActionsProps {\n className?: string;\n}\n\nexport const ChartBuilderActions: FC<ChartBuilderActionsProps> = ({\n className,\n}) => {\n const {onCreateChart, templates} = useChartBuilderContext();\n const selectedTemplateId = useChartBuilderStore(\n (state) => state.selectedTemplateId,\n );\n const fieldValues = useChartBuilderStore((state) => state.fieldValues);\n const reset = useChartBuilderStore((state) => state.reset);\n\n const selectedTemplate = useMemo(\n () => templates.find((template) => template.id === selectedTemplateId),\n [templates, selectedTemplateId],\n );\n\n const canCreate = canCreateChartFromType(selectedTemplate, fieldValues);\n\n const handleCreateChart = useCallback(() => {\n if (!selectedTemplate || !canCreate || !selectedTemplateId) {\n return;\n }\n\n const title = buildChartTypeTitle(selectedTemplate, fieldValues);\n onCreateChart(title, {\n chartType: selectedTemplateId,\n settings: fieldValues,\n } as ChartConfig);\n reset();\n }, [\n selectedTemplate,\n canCreate,\n selectedTemplateId,\n fieldValues,\n onCreateChart,\n reset,\n ]);\n\n if (!selectedTemplate) {\n return null;\n }\n\n return (\n <div className={cn('flex items-center justify-end gap-2', className)}>\n <Button variant=\"outline\" size=\"sm\" onClick={reset}>\n Back\n </Button>\n <Button size=\"sm\" onClick={handleCreateChart} disabled={!canCreate}>\n Create\n </Button>\n </div>\n );\n};\n"]}
1
+ {"version":3,"file":"ChartBuilderActions.js","sourceRoot":"","sources":["../../src/chart-builders/ChartBuilderActions.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,MAAM,EAAE,EAAE,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAK,WAAW,EAAE,OAAO,EAAC,MAAM,OAAO,CAAC;AAC/C,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,mBAAmB,EAAE,sBAAsB,EAAC,MAAM,kBAAkB,CAAC;AAO7E,MAAM,CAAC,MAAM,mBAAmB,GAAiC,CAAC,EAChE,SAAS,GACV,EAAE,EAAE;IACH,MAAM,EAAC,aAAa,EAAE,SAAS,EAAC,GAAG,sBAAsB,EAAE,CAAC;IAC5D,MAAM,kBAAkB,GAAG,oBAAoB,CAC7C,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,kBAAkB,CACpC,CAAC;IACF,MAAM,WAAW,GAAG,oBAAoB,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IACvE,MAAM,KAAK,GAAG,oBAAoB,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAE3D,MAAM,gBAAgB,GAAG,OAAO,CAC9B,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,KAAK,kBAAkB,CAAC,EACtE,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAChC,CAAC;IAEF,MAAM,SAAS,GAAG,sBAAsB,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC;IAExE,MAAM,iBAAiB,GAAG,WAAW,CAAC,GAAG,EAAE;QACzC,IAAI,CAAC,gBAAgB,IAAI,CAAC,SAAS,IAAI,CAAC,kBAAkB,EAAE,CAAC;YAC3D,OAAO;QACT,CAAC;QAED,MAAM,KAAK,GAAG,mBAAmB,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC;QACjE,aAAa,CAAC,KAAK,EAAE;YACnB,SAAS,EAAE,kBAAkB;YAC7B,QAAQ,EAAE,WAAW;SACP,CAAC,CAAC;QAClB,KAAK,EAAE,CAAC;IACV,CAAC,EAAE;QACD,gBAAgB;QAChB,SAAS;QACT,kBAAkB;QAClB,WAAW;QACX,aAAa;QACb,KAAK;KACN,CAAC,CAAC;IAEH,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,eAAK,SAAS,EAAE,EAAE,CAAC,qCAAqC,EAAE,SAAS,CAAC,aAClE,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAE,KAAK,qBAEzC,EACT,KAAC,MAAM,IAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,CAAC,SAAS,uBAEzD,IACL,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import {Button, cn} from '@sqlrooms/ui';\nimport {FC, useCallback, useMemo} from 'react';\nimport {\n useChartBuilderContext,\n useChartBuilderStore,\n} from './ChartBuilderContext';\nimport {buildChartTypeTitle, canCreateChartFromType} from './chartTypeUtils';\nimport type {ChartConfig} from '../charts/chart-types';\n\nexport interface ChartBuilderActionsProps {\n className?: string;\n}\n\nexport const ChartBuilderActions: FC<ChartBuilderActionsProps> = ({\n className,\n}) => {\n const {onCreateChart, templates} = useChartBuilderContext();\n const selectedTemplateId = useChartBuilderStore(\n (state) => state.selectedTemplateId,\n );\n const fieldValues = useChartBuilderStore((state) => state.fieldValues);\n const reset = useChartBuilderStore((state) => state.reset);\n\n const selectedTemplate = useMemo(\n () => templates.find((template) => template.id === selectedTemplateId),\n [templates, selectedTemplateId],\n );\n\n const canCreate = canCreateChartFromType(selectedTemplate, fieldValues);\n\n const handleCreateChart = useCallback(() => {\n if (!selectedTemplate || !canCreate || !selectedTemplateId) {\n return;\n }\n\n const title = buildChartTypeTitle(selectedTemplate, fieldValues);\n onCreateChart(title, {\n chartType: selectedTemplateId,\n settings: fieldValues,\n } as ChartConfig);\n reset();\n }, [\n selectedTemplate,\n canCreate,\n selectedTemplateId,\n fieldValues,\n onCreateChart,\n reset,\n ]);\n\n if (!selectedTemplate) {\n return null;\n }\n\n return (\n <div className={cn('flex items-center justify-end gap-2', className)}>\n <Button variant=\"outline\" size=\"sm\" onClick={reset}>\n Back\n </Button>\n <Button size=\"sm\" onClick={handleCreateChart} disabled={!canCreate}>\n Create\n </Button>\n </div>\n );\n};\n"]}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import type { ChartConfig } from '../chart-types';
2
+ import type { ChartConfig } from '../charts/chart-types';
3
3
  import { type ChartBuilderRootProps } from './ChartBuilderRoot';
4
- import type { ChartBuilderColumn, ChartTypeDefinition } from '../chart-types/base-types';
4
+ import type { ChartBuilderColumn, ChartTypeDefinition } from '../charts/chart-types/base-types';
5
5
  type StandaloneChartBuilderContentProps = {
6
6
  /** Table name to use in generated specs */
7
7
  tableName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ChartBuilderContent.d.ts","sourceRoot":"","sources":["../../src/chart-builders/ChartBuilderContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAIhD,OAAO,EAAmB,KAAK,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AAEhF,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AAEnC,KAAK,kCAAkC,GAAG;IACxC,2CAA2C;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,4CAA4C;IAC5C,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5D,sEAAsE;IACtE,UAAU,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACnC,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC5C,IAAI,CAAC,qBAAqB,EAAE,UAAU,CAAC,CACxC,GACC,IAAI,CAAC,kCAAkC,EAAE,WAAW,CAAC,CAAC;AAoBxD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAalE,CAAC"}
1
+ {"version":3,"file":"ChartBuilderContent.d.ts","sourceRoot":"","sources":["../../src/chart-builders/ChartBuilderContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAIvD,OAAO,EAAmB,KAAK,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AAEhF,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,kCAAkC,CAAC;AAE1C,KAAK,kCAAkC,GAAG;IACxC,2CAA2C;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,4CAA4C;IAC5C,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5D,sEAAsE;IACtE,UAAU,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACnC,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC5C,IAAI,CAAC,qBAAqB,EAAE,UAAU,CAAC,CACxC,GACC,IAAI,CAAC,kCAAkC,EAAE,WAAW,CAAC,CAAC;AAoBxD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAalE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChartBuilderContent.js","sourceRoot":"","sources":["../../src/chart-builders/ChartBuilderContent.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,EAAE,EAAC,MAAM,cAAc,CAAC;AAGhC,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,sBAAsB,EAAC,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAC,gBAAgB,EAA6B,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAwB5D,SAAS,iBAAiB,CACxB,KAA+B;IAE/B,OAAO,OAAO,CAAC,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;AAC1E,CAAC;AAED,SAAS,uBAAuB,CAAC,EAAC,SAAS,EAAuB;IAChE,sBAAsB,EAAE,CAAC;IAEzB,OAAO,CACL,eAAK,SAAS,EAAE,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,aAClD,KAAC,oBAAoB,KAAG,EACxB,KAAC,kBAAkB,KAAG,EACtB,KAAC,mBAAmB,KAAG,IACnB,CACP,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAuC,CACrE,KAAK,EACL,EAAE;IACF,IAAI,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC;QAC7B,MAAM,EAAC,SAAS,EAAE,GAAG,SAAS,EAAC,GAAG,KAAK,CAAC;QACxC,OAAO,CACL,KAAC,gBAAgB,OAAK,SAAS,YAC7B,KAAC,uBAAuB,IAAC,SAAS,EAAE,SAAS,GAAI,GAChC,CACpB,CAAC;IACJ,CAAC;IAED,OAAO,KAAC,uBAAuB,IAAC,SAAS,EAAE,KAAK,CAAC,SAAS,GAAI,CAAC;AACjE,CAAC,CAAC","sourcesContent":["import {cn} from '@sqlrooms/ui';\nimport React from 'react';\nimport type {ChartConfig} from '../chart-types';\nimport {ChartBuilderActions} from './ChartBuilderActions';\nimport {useChartBuilderContext} from './ChartBuilderContext';\nimport {ChartBuilderFields} from './ChartBuilderFields';\nimport {ChartBuilderRoot, type ChartBuilderRootProps} from './ChartBuilderRoot';\nimport {ChartBuilderTypeGrid} from './ChartBuilderTypeGrid';\nimport type {\n ChartBuilderColumn,\n ChartTypeDefinition,\n} from '../chart-types/base-types';\n\ntype StandaloneChartBuilderContentProps = {\n /** Table name to use in generated specs */\n tableName: string;\n /** Available columns for field selectors */\n columns: ChartBuilderColumn[];\n /** Callback when a chart spec is created */\n onCreateChart: (title: string, config: ChartConfig) => void;\n /** Optional chart types to show (defaults to all registered types) */\n chartTypes?: ChartTypeDefinition[];\n /** Custom class name */\n className?: string;\n};\n\nexport type ChartBuilderContentProps = Partial<\n Omit<ChartBuilderRootProps, 'children'>\n> &\n Pick<StandaloneChartBuilderContentProps, 'className'>;\n\nfunction isStandaloneProps(\n props: ChartBuilderContentProps,\n): props is StandaloneChartBuilderContentProps {\n return Boolean(props.tableName && props.columns && props.onCreateChart);\n}\n\nfunction ChartBuilderContentBody({className}: {className?: string}) {\n useChartBuilderContext();\n\n return (\n <div className={cn('flex flex-col gap-2', className)}>\n <ChartBuilderTypeGrid />\n <ChartBuilderFields />\n <ChartBuilderActions />\n </div>\n );\n}\n\n/**\n * Standalone chart builder UI for creating Mosaic charts from templates.\n *\n * Can be used directly with props, or inside `<MosaicChartBuilder>` where it\n * consumes the surrounding builder context.\n */\nexport const ChartBuilderContent: React.FC<ChartBuilderContentProps> = (\n props,\n) => {\n if (isStandaloneProps(props)) {\n const {className, ...rootProps} = props;\n return (\n <ChartBuilderRoot {...rootProps}>\n <ChartBuilderContentBody className={className} />\n </ChartBuilderRoot>\n );\n }\n\n return <ChartBuilderContentBody className={props.className} />;\n};\n"]}
1
+ {"version":3,"file":"ChartBuilderContent.js","sourceRoot":"","sources":["../../src/chart-builders/ChartBuilderContent.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,EAAE,EAAC,MAAM,cAAc,CAAC;AAGhC,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,sBAAsB,EAAC,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAC,kBAAkB,EAAC,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAC,gBAAgB,EAA6B,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAwB5D,SAAS,iBAAiB,CACxB,KAA+B;IAE/B,OAAO,OAAO,CAAC,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;AAC1E,CAAC;AAED,SAAS,uBAAuB,CAAC,EAAC,SAAS,EAAuB;IAChE,sBAAsB,EAAE,CAAC;IAEzB,OAAO,CACL,eAAK,SAAS,EAAE,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,aAClD,KAAC,oBAAoB,KAAG,EACxB,KAAC,kBAAkB,KAAG,EACtB,KAAC,mBAAmB,KAAG,IACnB,CACP,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAuC,CACrE,KAAK,EACL,EAAE;IACF,IAAI,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC;QAC7B,MAAM,EAAC,SAAS,EAAE,GAAG,SAAS,EAAC,GAAG,KAAK,CAAC;QACxC,OAAO,CACL,KAAC,gBAAgB,OAAK,SAAS,YAC7B,KAAC,uBAAuB,IAAC,SAAS,EAAE,SAAS,GAAI,GAChC,CACpB,CAAC;IACJ,CAAC;IAED,OAAO,KAAC,uBAAuB,IAAC,SAAS,EAAE,KAAK,CAAC,SAAS,GAAI,CAAC;AACjE,CAAC,CAAC","sourcesContent":["import {cn} from '@sqlrooms/ui';\nimport React from 'react';\nimport type {ChartConfig} from '../charts/chart-types';\nimport {ChartBuilderActions} from './ChartBuilderActions';\nimport {useChartBuilderContext} from './ChartBuilderContext';\nimport {ChartBuilderFields} from './ChartBuilderFields';\nimport {ChartBuilderRoot, type ChartBuilderRootProps} from './ChartBuilderRoot';\nimport {ChartBuilderTypeGrid} from './ChartBuilderTypeGrid';\nimport type {\n ChartBuilderColumn,\n ChartTypeDefinition,\n} from '../charts/chart-types/base-types';\n\ntype StandaloneChartBuilderContentProps = {\n /** Table name to use in generated specs */\n tableName: string;\n /** Available columns for field selectors */\n columns: ChartBuilderColumn[];\n /** Callback when a chart spec is created */\n onCreateChart: (title: string, config: ChartConfig) => void;\n /** Optional chart types to show (defaults to all registered types) */\n chartTypes?: ChartTypeDefinition[];\n /** Custom class name */\n className?: string;\n};\n\nexport type ChartBuilderContentProps = Partial<\n Omit<ChartBuilderRootProps, 'children'>\n> &\n Pick<StandaloneChartBuilderContentProps, 'className'>;\n\nfunction isStandaloneProps(\n props: ChartBuilderContentProps,\n): props is StandaloneChartBuilderContentProps {\n return Boolean(props.tableName && props.columns && props.onCreateChart);\n}\n\nfunction ChartBuilderContentBody({className}: {className?: string}) {\n useChartBuilderContext();\n\n return (\n <div className={cn('flex flex-col gap-2', className)}>\n <ChartBuilderTypeGrid />\n <ChartBuilderFields />\n <ChartBuilderActions />\n </div>\n );\n}\n\n/**\n * Standalone chart builder UI for creating Mosaic charts from templates.\n *\n * Can be used directly with props, or inside `<MosaicChartBuilder>` where it\n * consumes the surrounding builder context.\n */\nexport const ChartBuilderContent: React.FC<ChartBuilderContentProps> = (\n props,\n) => {\n if (isStandaloneProps(props)) {\n const {className, ...rootProps} = props;\n return (\n <ChartBuilderRoot {...rootProps}>\n <ChartBuilderContentBody className={className} />\n </ChartBuilderRoot>\n );\n }\n\n return <ChartBuilderContentBody className={props.className} />;\n};\n"]}
@@ -1,6 +1,6 @@
1
- import type { ChartConfig } from '../chart-types';
1
+ import type { ChartConfig } from '../charts/chart-types';
2
2
  import type { ChartBuilderStore, ChartBuilderStoreState } from './createChartBuilderStore';
3
- import type { ChartBuilderColumn, ChartTypeDefinition } from '../chart-types/base-types';
3
+ import type { ChartBuilderColumn, ChartTypeDefinition } from '../charts/chart-types/base-types';
4
4
  export type ChartBuilderContextValue = {
5
5
  tableName: string;
6
6
  columns: ChartBuilderColumn[];
@@ -1 +1 @@
1
- {"version":3,"file":"ChartBuilderContext.d.ts","sourceRoot":"","sources":["../../src/chart-builders/ChartBuilderContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5D,SAAS,EAAE,mBAAmB,EAAE,CAAC;IACjC,kBAAkB,EAAE,mBAAmB,EAAE,CAAC;IAC1C,KAAK,EAAE,iBAAiB,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,mBAAmB,0DACsB,CAAC;AAEvD,wBAAgB,sBAAsB,IAAI,wBAAwB,CAQjE;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,QAAQ,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,CAAC,GAC7C,CAAC,CAGH"}
1
+ {"version":3,"file":"ChartBuilderContext.d.ts","sourceRoot":"","sources":["../../src/chart-builders/ChartBuilderContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,kCAAkC,CAAC;AAE1C,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5D,SAAS,EAAE,mBAAmB,EAAE,CAAC;IACjC,kBAAkB,EAAE,mBAAmB,EAAE,CAAC;IAC1C,KAAK,EAAE,iBAAiB,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,mBAAmB,0DACsB,CAAC;AAEvD,wBAAgB,sBAAsB,IAAI,wBAAwB,CAQjE;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,QAAQ,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,CAAC,GAC7C,CAAC,CAGH"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChartBuilderContext.js","sourceRoot":"","sources":["../../src/chart-builders/ChartBuilderContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,UAAU,EAAC,MAAM,OAAO,CAAC;AAChD,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAoBjC,MAAM,CAAC,MAAM,mBAAmB,GAC9B,aAAa,CAAkC,IAAI,CAAC,CAAC;AAEvD,MAAM,UAAU,sBAAsB;IACpC,MAAM,GAAG,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAC5C,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,gFAAgF,CACjF,CAAC;IACJ,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,QAA8C;IAE9C,MAAM,EAAC,KAAK,EAAC,GAAG,sBAAsB,EAAE,CAAC;IACzC,OAAO,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AACnC,CAAC","sourcesContent":["import {createContext, useContext} from 'react';\nimport {useStore} from 'zustand';\nimport type {ChartConfig} from '../chart-types';\nimport type {\n ChartBuilderStore,\n ChartBuilderStoreState,\n} from './createChartBuilderStore';\nimport type {\n ChartBuilderColumn,\n ChartTypeDefinition,\n} from '../chart-types/base-types';\n\nexport type ChartBuilderContextValue = {\n tableName: string;\n columns: ChartBuilderColumn[];\n onCreateChart: (title: string, config: ChartConfig) => void;\n templates: ChartTypeDefinition[];\n availableTemplates: ChartTypeDefinition[];\n store: ChartBuilderStore;\n};\n\nexport const ChartBuilderContext =\n createContext<ChartBuilderContextValue | null>(null);\n\nexport function useChartBuilderContext(): ChartBuilderContextValue {\n const ctx = useContext(ChartBuilderContext);\n if (!ctx) {\n throw new Error(\n 'ChartBuilder compound components must be rendered inside <MosaicChartBuilder>.',\n );\n }\n return ctx;\n}\n\nexport function useChartBuilderStore<T>(\n selector: (state: ChartBuilderStoreState) => T,\n): T {\n const {store} = useChartBuilderContext();\n return useStore(store, selector);\n}\n"]}
1
+ {"version":3,"file":"ChartBuilderContext.js","sourceRoot":"","sources":["../../src/chart-builders/ChartBuilderContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,UAAU,EAAC,MAAM,OAAO,CAAC;AAChD,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAoBjC,MAAM,CAAC,MAAM,mBAAmB,GAC9B,aAAa,CAAkC,IAAI,CAAC,CAAC;AAEvD,MAAM,UAAU,sBAAsB;IACpC,MAAM,GAAG,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;IAC5C,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,gFAAgF,CACjF,CAAC;IACJ,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,QAA8C;IAE9C,MAAM,EAAC,KAAK,EAAC,GAAG,sBAAsB,EAAE,CAAC;IACzC,OAAO,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AACnC,CAAC","sourcesContent":["import {createContext, useContext} from 'react';\nimport {useStore} from 'zustand';\nimport type {ChartConfig} from '../charts/chart-types';\nimport type {\n ChartBuilderStore,\n ChartBuilderStoreState,\n} from './createChartBuilderStore';\nimport type {\n ChartBuilderColumn,\n ChartTypeDefinition,\n} from '../charts/chart-types/base-types';\n\nexport type ChartBuilderContextValue = {\n tableName: string;\n columns: ChartBuilderColumn[];\n onCreateChart: (title: string, config: ChartConfig) => void;\n templates: ChartTypeDefinition[];\n availableTemplates: ChartTypeDefinition[];\n store: ChartBuilderStore;\n};\n\nexport const ChartBuilderContext =\n createContext<ChartBuilderContextValue | null>(null);\n\nexport function useChartBuilderContext(): ChartBuilderContextValue {\n const ctx = useContext(ChartBuilderContext);\n if (!ctx) {\n throw new Error(\n 'ChartBuilder compound components must be rendered inside <MosaicChartBuilder>.',\n );\n }\n return ctx;\n}\n\nexport function useChartBuilderStore<T>(\n selector: (state: ChartBuilderStoreState) => T,\n): T {\n const {store} = useChartBuilderContext();\n return useStore(store, selector);\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  import { type ButtonProps } from '@sqlrooms/ui';
2
2
  import React, { PropsWithChildren } from 'react';
3
- import type { ChartConfig } from '../chart-types';
4
- import type { ChartBuilderColumn, ChartTypeDefinition } from '../chart-types/base-types';
3
+ import type { ChartConfig } from '../charts/chart-types';
4
+ import type { ChartBuilderColumn, ChartTypeDefinition } from '../charts/chart-types/base-types';
5
5
  export type ChartBuilderTriggerProps = ButtonProps;
6
6
  export declare const ChartBuilderTrigger: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
7
7
  export type ChartBuilderDialogContentProps = PropsWithChildren<{
@@ -1 +1 @@
1
- {"version":3,"file":"ChartBuilderDialog.d.ts","sourceRoot":"","sources":["../../src/chart-builders/ChartBuilderDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,EAMjB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC;AAEnD,eAAO,MAAM,mBAAmB,uFAgB9B,CAAC;AAGH,MAAM,MAAM,8BAA8B,GAAG,iBAAiB,CAAC;IAC7D,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAC9C,8BAA8B,CAgB/B,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACtC,iCAAiC;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,8CAA8C;IAC9C,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,2CAA2C;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,4CAA4C;IAC5C,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5D,sEAAsE;IACtE,UAAU,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACpC;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAkBhE,CAAC"}
1
+ {"version":3,"file":"ChartBuilderDialog.d.ts","sourceRoot":"","sources":["../../src/chart-builders/ChartBuilderDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,WAAW,EAMjB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAC,iBAAiB,EAAC,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAGvD,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,kCAAkC,CAAC;AAE1C,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC;AAEnD,eAAO,MAAM,mBAAmB,uFAgB9B,CAAC;AAGH,MAAM,MAAM,8BAA8B,GAAG,iBAAiB,CAAC;IAC7D,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAC9C,8BAA8B,CAgB/B,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACtC,iCAAiC;IACjC,IAAI,EAAE,OAAO,CAAC;IACd,8CAA8C;IAC9C,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,2CAA2C;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,4CAA4C;IAC5C,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5D,sEAAsE;IACtE,UAAU,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACpC;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAkBhE,CAAC"}