@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 @@
1
+ {"version":3,"file":"BoxPlotPanelRenderer.js","sourceRoot":"","sources":["../../../../../src/charts/chart-types/box-plot/renderer/BoxPlotPanelRenderer.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACxE,OAAO,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AACzC,OAAO,EAAgB,cAAc,EAAC,MAAM,4BAA4B,CAAC;AAEzE,OAAO,EACL,oBAAoB,EACpB,OAAO,GAGR,MAAM,aAAa,CAAC;AACrB,OAAO,EAAC,oBAAoB,EAAC,MAAM,QAAQ,CAAC;AAE5C,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAC,cAAc,EAAE,UAAU,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAClE,OAAO,EAAC,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AAE5D;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAE7B,CAAC,EACH,SAAS,EACT,MAAM,EACN,WAAW,EACX,MAAM,EACN,UAAU,EACV,mBAAmB,EACnB,oBAAoB,GACrB,EAAE,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sCAAsC,aAEhD,cAAK,GAAG,EAAE,OAAO,EAAE,SAAS,EAAC,kBAAkB,GAAG,EACjD,UAAU,CAAC,CAAC,CAAC,CACZ,cACE,SAAS,EAAC,qEAAqE,EAC/E,KAAK,EAAE,UAAU,GACjB,CACH,CAAC,CAAC,CAAC,IAAI,EACR,cACE,SAAS,EAAC,8CAA8C,EACxD,eAAe,EAAE,UAAU,EAC3B,aAAa,EAAE,iBAAiB,EAChC,aAAa,EAAE,iBAAiB,EAChC,WAAW,EAAE,UAAU,GACvB,IACa,CAClB,GACG,GACF,GACe,CACxB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import type {FC, PointerEvent as ReactPointerEvent} from 'react';\nimport {useCallback, useEffect, useMemo, useRef, useState} from 'react';\nimport {SpinnerPane} from '@sqlrooms/ui';\nimport {type PlotSize, ResponsivePlot} from '../../../../ResponsivePlot';\nimport type {ChartRendererProps} from '../../base-types';\nimport {\n DRAG_CLICK_THRESHOLD,\n MARGINS,\n type PlotOutlierDatum,\n type PlotSummaryDatum,\n} from './constants';\nimport {createBoxPlotElement} from './plot';\nimport type {BoxPlotChartConfig} from '../schema';\nimport {useBoxPlotClient} from './useBoxPlotClient';\nimport {formatCategory, getYDomain, yPixelToValue} from './utils';\nimport {BoxPlotErrorBoundary} from './BoxPlotErrorBoundary';\n\n/**\n * Custom renderer for box-plot chart type.\n * Uses BoxPlotClient for SQL-based quartile calculations and custom Observable Plot rendering.\n */\nexport const BoxPlotPanelRenderer: FC<\n ChartRendererProps<BoxPlotChartConfig>\n> = ({\n tableName,\n config,\n coordinator,\n params,\n dataPolicy,\n runtimeIssueContext,\n runtimeIssueReporter,\n}) => {\n const configX = config.settings.x;\n const configY = config.settings.y;\n const boxPlotConfig = useMemo(\n () =>\n typeof configX === 'string' && typeof configY === 'string'\n ? {x: configX, y: configY}\n : null,\n [configX, configY],\n );\n\n const [size, setSize] = useState<PlotSize | null>(null);\n const [drag, setDrag] = useState<{startY: number; currentY: number} | null>(\n null,\n );\n const plotRef = useRef<HTMLDivElement>(null);\n\n const {clientRef, state} = useBoxPlotClient({\n config: boxPlotConfig,\n coordinator,\n dataPolicy,\n params,\n runtimeIssueContext,\n runtimeIssueReporter,\n tableName,\n });\n\n const summaries = useMemo<PlotSummaryDatum[]>(\n () =>\n state.summaries.map((row) => ({\n ...row,\n categoryLabel: formatCategory(row.category),\n })),\n [state.summaries],\n );\n const outliers = useMemo<PlotOutlierDatum[]>(\n () =>\n state.outliers.map((row) => ({\n ...row,\n categoryLabel: formatCategory(row.category),\n })),\n [state.outliers],\n );\n const yDomain = useMemo(\n () => getYDomain(state.summaries, state.outliers),\n [state.outliers, state.summaries],\n );\n\n useEffect(() => {\n const container = plotRef.current;\n if (!container || !size || !boxPlotConfig) {\n return;\n }\n if (!summaries.length) {\n container.replaceChildren();\n return;\n }\n\n const plot = createBoxPlotElement({\n config: boxPlotConfig,\n domain: yDomain,\n outliers,\n size,\n summaries,\n });\n container.replaceChildren(plot);\n }, [boxPlotConfig, outliers, size, summaries, yDomain]);\n\n const getLocalY = useCallback((event: ReactPointerEvent<HTMLDivElement>) => {\n const rect = event.currentTarget.getBoundingClientRect();\n return event.clientY - rect.top;\n }, []);\n\n const handlePointerDown = useCallback(\n (event: ReactPointerEvent<HTMLDivElement>) => {\n if (!size || !summaries.length) return;\n event.currentTarget.setPointerCapture(event.pointerId);\n const y = getLocalY(event);\n setDrag({currentY: y, startY: y});\n },\n [getLocalY, size, summaries.length],\n );\n\n const handlePointerMove = useCallback(\n (event: ReactPointerEvent<HTMLDivElement>) => {\n if (!drag) return;\n setDrag({...drag, currentY: getLocalY(event)});\n },\n [drag, getLocalY],\n );\n\n const finishDrag = useCallback(\n (event: ReactPointerEvent<HTMLDivElement>) => {\n if (!drag || !size) return;\n event.currentTarget.releasePointerCapture(event.pointerId);\n const currentY = getLocalY(event);\n const pixelDistance = Math.abs(currentY - drag.startY);\n setDrag(null);\n if (pixelDistance < DRAG_CLICK_THRESHOLD) {\n clientRef.current?.updateYBrush();\n return;\n }\n clientRef.current?.updateYBrush([\n yPixelToValue(drag.startY, size, yDomain),\n yPixelToValue(currentY, size, yDomain),\n ]);\n },\n [clientRef, drag, getLocalY, size, yDomain],\n );\n\n const brushStyle = useMemo(() => {\n const extent = drag\n ? [drag.startY, drag.currentY]\n : state.yBrush && size\n ? state.yBrush.map((value) => {\n const plotHeight = Math.max(\n 1,\n size.height - MARGINS.top - MARGINS.bottom,\n );\n const span = yDomain[1] - yDomain[0] || 1;\n const pixelPos =\n MARGINS.top + ((yDomain[1] - value) / span) * plotHeight;\n return Math.max(\n MARGINS.top,\n Math.min(MARGINS.top + plotHeight, pixelPos),\n );\n })\n : null;\n if (!extent) return undefined;\n const top = Math.max(MARGINS.top, Math.min(...extent));\n const bottom = Math.min(\n size?.height ? size.height - MARGINS.bottom : Number.POSITIVE_INFINITY,\n Math.max(...extent),\n );\n return {\n height: `${Math.max(0, bottom - top)}px`,\n left: `${MARGINS.left}px`,\n right: `${MARGINS.right}px`,\n top: `${top}px`,\n };\n }, [drag, size, state.yBrush, yDomain]);\n\n if (!config.settings.x || !config.settings.y) {\n return (\n <div className=\"flex h-full flex-col items-center justify-center\">\n <div className=\"text-center font-medium\">\n Configure chart to display visualization\n </div>\n <div className=\"text-center text-xs\">\n X and Y fields are required for box plot\n </div>\n </div>\n );\n }\n\n return (\n <BoxPlotErrorBoundary>\n <div className=\"h-full min-h-0 overflow-auto p-2\">\n <div className=\"bg-background text-foreground relative flex h-full min-h-[220px] w-full items-center justify-center rounded-md p-2\">\n {state.error ? (\n <div className=\"text-destructive flex h-full items-center justify-center p-4 text-sm\">\n {state.error.message}\n </div>\n ) : state.isLoading && !state.summaries.length ? (\n <SpinnerPane className=\"h-full w-full\" />\n ) : !state.summaries.length ? (\n <div className=\"text-muted-foreground flex h-full items-center justify-center text-sm\">\n No numeric values for this box plot\n </div>\n ) : (\n <ResponsivePlot\n onResize={setSize}\n className=\"relative h-full min-h-[220px] w-full\"\n >\n <div ref={plotRef} className=\"absolute inset-0\" />\n {brushStyle ? (\n <div\n className=\"bg-primary/15 border-primary/60 pointer-events-none absolute border\"\n style={brushStyle}\n />\n ) : null}\n <div\n className=\"absolute inset-0 cursor-crosshair touch-none\"\n onPointerCancel={finishDrag}\n onPointerDown={handlePointerDown}\n onPointerMove={handlePointerMove}\n onPointerUp={finishDrag}\n />\n </ResponsivePlot>\n )}\n </div>\n </div>\n </BoxPlotErrorBoundary>\n );\n};\n"]}
@@ -0,0 +1,24 @@
1
+ import type { BoxPlotOutlierRow, BoxPlotSummaryRow } from './BoxPlotClient';
2
+ export declare const BOX_FILL = "var(--color-chart-1)";
3
+ export declare const BOX_STROKE = "var(--color-chart-1)";
4
+ export declare const GRID_COLOR = "var(--border)";
5
+ export declare const OUTLIER_FILL = "var(--color-chart-2)";
6
+ export declare const MAX_BOX_ITEM_WIDTH = 20;
7
+ export declare const MARGINS: {
8
+ readonly bottom: 64;
9
+ readonly left: 56;
10
+ readonly right: 24;
11
+ readonly top: 20;
12
+ };
13
+ /**
14
+ * Minimum pixel distance to distinguish a drag from a click.
15
+ * Drags shorter than this threshold are treated as clicks that clear the brush.
16
+ */
17
+ export declare const DRAG_CLICK_THRESHOLD = 4;
18
+ export type PlotSummaryDatum = BoxPlotSummaryRow & {
19
+ categoryLabel: string;
20
+ };
21
+ export type PlotOutlierDatum = BoxPlotOutlierRow & {
22
+ categoryLabel: string;
23
+ };
24
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/charts/chart-types/box-plot/renderer/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAE,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAE1E,eAAO,MAAM,QAAQ,yBAAyB,CAAC;AAC/C,eAAO,MAAM,UAAU,yBAAyB,CAAC;AACjD,eAAO,MAAM,UAAU,kBAAkB,CAAC;AAC1C,eAAO,MAAM,YAAY,yBAAyB,CAAC;AACnD,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,eAAO,MAAM,OAAO;;;;;CAKV,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAEtC,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAAG;IACjD,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAAG;IACjD,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/charts/chart-types/box-plot/renderer/constants.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAG,sBAAsB,CAAC;AAC/C,MAAM,CAAC,MAAM,UAAU,GAAG,sBAAsB,CAAC;AACjD,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAC;AAC1C,MAAM,CAAC,MAAM,YAAY,GAAG,sBAAsB,CAAC;AACnD,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAErC,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,MAAM,EAAE,EAAE;IACV,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,GAAG,EAAE,EAAE;CACC,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC","sourcesContent":["import type {BoxPlotOutlierRow, BoxPlotSummaryRow} from './BoxPlotClient';\n\nexport const BOX_FILL = 'var(--color-chart-1)';\nexport const BOX_STROKE = 'var(--color-chart-1)';\nexport const GRID_COLOR = 'var(--border)';\nexport const OUTLIER_FILL = 'var(--color-chart-2)';\nexport const MAX_BOX_ITEM_WIDTH = 20;\n\nexport const MARGINS = {\n bottom: 64,\n left: 56,\n right: 24,\n top: 20,\n} as const;\n\n/**\n * Minimum pixel distance to distinguish a drag from a click.\n * Drags shorter than this threshold are treated as clicks that clear the brush.\n */\nexport const DRAG_CLICK_THRESHOLD = 4;\n\nexport type PlotSummaryDatum = BoxPlotSummaryRow & {\n categoryLabel: string;\n};\n\nexport type PlotOutlierDatum = BoxPlotOutlierRow & {\n categoryLabel: string;\n};\n"]}
@@ -0,0 +1,14 @@
1
+ import * as Plot from '@observablehq/plot';
2
+ import type { PlotSize } from '../../../../ResponsivePlot';
3
+ import { type PlotOutlierDatum, type PlotSummaryDatum } from './constants';
4
+ export declare function createBoxPlotElement(args: {
5
+ config: {
6
+ x: string;
7
+ y: string;
8
+ };
9
+ domain: [number, number];
10
+ outliers: PlotOutlierDatum[];
11
+ size: PlotSize;
12
+ summaries: PlotSummaryDatum[];
13
+ }): (HTMLElement | SVGSVGElement) & Plot.Plot;
14
+ //# sourceMappingURL=plot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plot.d.ts","sourceRoot":"","sources":["../../../../../src/charts/chart-types/box-plot/renderer/plot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,oBAAoB,CAAC;AAC3C,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAOL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,wBAAgB,oBAAoB,CAAC,IAAI,EAAE;IACzC,MAAM,EAAE;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAC,CAAC;IAC/B,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzB,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,IAAI,EAAE,QAAQ,CAAC;IACf,SAAS,EAAE,gBAAgB,EAAE,CAAC;CAC/B,6CAwFA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plot.js","sourceRoot":"","sources":["../../../../../src/charts/chart-types/box-plot/renderer/plot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,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CAAC,SAAS,EAAE;gBACpB,SAAS,EAAE,QAAQ;gBACnB,UAAU,EAAE,QAAQ;gBACpB,CAAC,EAAE,eAAe;gBAClB,CAAC,EAAE,QAAQ;gBACX,MAAM,EAAE,UAAU;gBAClB,WAAW,EAAE,GAAG;aACjB,CAAC;YACF,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE;gBACjB,IAAI,EAAE,YAAY;gBAClB,WAAW,EAAE,GAAG;gBAChB,CAAC,EAAE,GAAG;gBACN,MAAM,EAAE,aAAa;gBACrB,CAAC,EAAE,eAAe;gBAClB,CAAC,EAAE,OAAO;aACX,CAAC;SACH;KACF,CAAC,CAAC;AACL,CAAC","sourcesContent":["import * as Plot from '@observablehq/plot';\nimport type {PlotSize} from '../../../../ResponsivePlot';\nimport {\n BOX_FILL,\n BOX_STROKE,\n GRID_COLOR,\n MARGINS,\n MAX_BOX_ITEM_WIDTH,\n OUTLIER_FILL,\n type PlotOutlierDatum,\n type PlotSummaryDatum,\n} from './constants';\n\nexport function createBoxPlotElement(args: {\n config: {x: string; y: string};\n domain: [number, number];\n outliers: PlotOutlierDatum[];\n size: PlotSize;\n summaries: PlotSummaryDatum[];\n}) {\n const {config, domain, outliers, size, summaries} = args;\n const categories = summaries.map((row) => row.categoryLabel);\n const innerWidth = Math.max(0, size.width - MARGINS.left - MARGINS.right);\n const categoryBandWidth = categories.length\n ? innerWidth / categories.length\n : MAX_BOX_ITEM_WIDTH;\n const boxInset = Math.max(0, (categoryBandWidth - MAX_BOX_ITEM_WIDTH) / 2);\n\n return Plot.plot({\n height: size.height,\n marginBottom: MARGINS.bottom,\n marginLeft: MARGINS.left,\n marginRight: MARGINS.right,\n marginTop: MARGINS.top,\n style: {\n background: 'transparent',\n color: 'currentColor',\n font: '12px var(--font-sans, system-ui, sans-serif)',\n overflow: 'visible',\n },\n width: size.width,\n x: {\n domain: categories,\n label: config.x,\n padding: 0,\n tickRotate: categories.length > 8 ? -35 : 0,\n },\n y: {\n domain,\n grid: true,\n label: config.y,\n nice: true,\n },\n marks: [\n Plot.gridY({stroke: GRID_COLOR, strokeOpacity: 0.65}),\n Plot.ruleX(summaries, {\n x: 'categoryLabel',\n y1: 'whiskerLow',\n y2: 'whiskerHigh',\n stroke: BOX_STROKE,\n strokeWidth: 1.2,\n }),\n Plot.tickY(summaries, {\n insetLeft: boxInset,\n insetRight: boxInset,\n x: 'categoryLabel',\n y: 'whiskerLow',\n stroke: BOX_STROKE,\n strokeWidth: 1.4,\n }),\n Plot.tickY(summaries, {\n insetLeft: boxInset,\n insetRight: boxInset,\n x: 'categoryLabel',\n y: 'whiskerHigh',\n stroke: BOX_STROKE,\n strokeWidth: 1.4,\n }),\n Plot.rectY(summaries, {\n fill: BOX_FILL,\n fillOpacity: 0.22,\n insetLeft: boxInset,\n insetRight: boxInset,\n stroke: BOX_STROKE,\n strokeWidth: 1.2,\n x: 'categoryLabel',\n y1: 'q1',\n y2: 'q3',\n }),\n Plot.tickY(summaries, {\n insetLeft: boxInset,\n insetRight: boxInset,\n x: 'categoryLabel',\n y: 'median',\n stroke: BOX_STROKE,\n strokeWidth: 2.4,\n }),\n Plot.dot(outliers, {\n fill: OUTLIER_FILL,\n fillOpacity: 0.7,\n r: 2.5,\n stroke: 'transparent',\n x: 'categoryLabel',\n y: 'value',\n }),\n ],\n });\n}\n"]}
@@ -0,0 +1,18 @@
1
+ import { Coordinator } from '@uwdata/mosaic-core';
2
+ import { BoxPlotClient, type BoxPlotState } from './BoxPlotClient';
3
+ import type { BrushSelectionParams } from '../../base-types';
4
+ import type { ChartDataPolicy, ChartRuntimeIssueContext, ChartRuntimeIssueReporter } from '../../../../chart-runtime';
5
+ import { BoxPlotChartSettings } from '../schema';
6
+ export declare function useBoxPlotClient(args: {
7
+ config: BoxPlotChartSettings | null;
8
+ coordinator: Coordinator;
9
+ dataPolicy?: ChartDataPolicy | null;
10
+ params?: BrushSelectionParams;
11
+ runtimeIssueContext?: ChartRuntimeIssueContext;
12
+ runtimeIssueReporter?: ChartRuntimeIssueReporter;
13
+ tableName: string;
14
+ }): {
15
+ clientRef: import("react").RefObject<BoxPlotClient | null>;
16
+ state: BoxPlotState;
17
+ };
18
+ //# sourceMappingURL=useBoxPlotClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBoxPlotClient.d.ts","sourceRoot":"","sources":["../../../../../src/charts/chart-types/box-plot/renderer/useBoxPlotClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAY,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAC,aAAa,EAAE,KAAK,YAAY,EAAC,MAAM,iBAAiB,CAAC;AACjE,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EACV,eAAe,EACf,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAC,oBAAoB,EAAC,MAAM,WAAW,CAAC;AAE/C,wBAAgB,gBAAgB,CAAC,IAAI,EAAE;IACrC,MAAM,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACpC,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACpC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,mBAAmB,CAAC,EAAE,wBAAwB,CAAC;IAC/C,oBAAoB,CAAC,EAAE,yBAAyB,CAAC;IACjD,SAAS,EAAE,MAAM,CAAC;CACnB;;;EAyEA"}
@@ -0,0 +1,63 @@
1
+ import { Selection } from '@uwdata/mosaic-core';
2
+ import { useEffect, useMemo, useRef, useState } from 'react';
3
+ import { BoxPlotClient } from './BoxPlotClient';
4
+ export function useBoxPlotClient(args) {
5
+ const { config, coordinator, dataPolicy, params, runtimeIssueContext, runtimeIssueReporter, tableName, } = args;
6
+ const [state, setState] = useState({
7
+ isLoading: true,
8
+ outliers: [],
9
+ summaries: [],
10
+ });
11
+ const clientRef = useRef(null);
12
+ // Get or create the crossfilter selection
13
+ const selection = useMemo(() => {
14
+ // First try to get the brush selection from params (which should be connected to crossfilter)
15
+ const brushSelection = params?.get('brush');
16
+ if (brushSelection) {
17
+ return brushSelection;
18
+ }
19
+ // Fallback: create a new crossfilter selection (shouldn't happen in dashboard context)
20
+ return Selection.crossfilter();
21
+ }, [params]);
22
+ useEffect(() => {
23
+ if (!config || !config.x || !config.y) {
24
+ clientRef.current = null;
25
+ return;
26
+ }
27
+ const client = new BoxPlotClient({
28
+ dataPolicy,
29
+ onStateChange: setState,
30
+ runtimeIssueContext,
31
+ runtimeIssueReporter,
32
+ selection,
33
+ tableName,
34
+ x: config.x,
35
+ y: config.y,
36
+ });
37
+ clientRef.current = client;
38
+ coordinator.connect(client);
39
+ return () => {
40
+ client.destroy();
41
+ if (clientRef.current === client) {
42
+ clientRef.current = null;
43
+ }
44
+ };
45
+ }, [
46
+ config,
47
+ coordinator,
48
+ dataPolicy,
49
+ runtimeIssueContext,
50
+ runtimeIssueReporter,
51
+ selection,
52
+ tableName,
53
+ ]);
54
+ const effectiveState = !config || !config.x || !config.y
55
+ ? {
56
+ isLoading: false,
57
+ outliers: [],
58
+ summaries: [],
59
+ }
60
+ : state;
61
+ return { clientRef, state: effectiveState };
62
+ }
63
+ //# sourceMappingURL=useBoxPlotClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBoxPlotClient.js","sourceRoot":"","sources":["../../../../../src/charts/chart-types/box-plot/renderer/useBoxPlotClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAC,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAC,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAC,aAAa,EAAoB,MAAM,iBAAiB,CAAC;AASjE,MAAM,UAAU,gBAAgB,CAAC,IAQhC;IACC,MAAM,EACJ,MAAM,EACN,WAAW,EACX,UAAU,EACV,MAAM,EACN,mBAAmB,EACnB,oBAA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ACH,CAAC,CAAC;IACJ,CAAC,EAAE;QACD,MAAM;QACN,WAAW;QACX,UAAU;QACV,mBAAmB;QACnB,oBAAoB;QACpB,SAAS;QACT,SAAS;KACV,CAAC,CAAC;IAEH,MAAM,cAAc,GAClB,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC/B,CAAC,CAAC;YACE,SAAS,EAAE,KAAK;YAChB,QAAQ,EAAE,EAAE;YACZ,SAAS,EAAE,EAAE;SACd;QACH,CAAC,CAAC,KAAK,CAAC;IAEZ,OAAO,EAAC,SAAS,EAAE,KAAK,EAAE,cAAc,EAAC,CAAC;AAC5C,CAAC","sourcesContent":["import {Coordinator, Selection} from '@uwdata/mosaic-core';\nimport {useEffect, useMemo, useRef, useState} from 'react';\nimport {BoxPlotClient, type BoxPlotState} from './BoxPlotClient';\nimport type {BrushSelectionParams} from '../../base-types';\nimport type {\n ChartDataPolicy,\n ChartRuntimeIssueContext,\n ChartRuntimeIssueReporter,\n} from '../../../../chart-runtime';\nimport {BoxPlotChartSettings} from '../schema';\n\nexport function useBoxPlotClient(args: {\n config: BoxPlotChartSettings | null;\n coordinator: Coordinator;\n dataPolicy?: ChartDataPolicy | null;\n params?: BrushSelectionParams;\n runtimeIssueContext?: ChartRuntimeIssueContext;\n runtimeIssueReporter?: ChartRuntimeIssueReporter;\n tableName: string;\n}) {\n const {\n config,\n coordinator,\n dataPolicy,\n params,\n runtimeIssueContext,\n runtimeIssueReporter,\n tableName,\n } = args;\n const [state, setState] = useState<BoxPlotState>({\n isLoading: true,\n outliers: [],\n summaries: [],\n });\n const clientRef = useRef<BoxPlotClient | null>(null);\n\n // Get or create the crossfilter selection\n const selection = useMemo(() => {\n // First try to get the brush selection from params (which should be connected to crossfilter)\n const brushSelection = params?.get('brush');\n if (brushSelection) {\n return brushSelection;\n }\n // Fallback: create a new crossfilter selection (shouldn't happen in dashboard context)\n return Selection.crossfilter();\n }, [params]);\n\n useEffect(() => {\n if (!config || !config.x || !config.y) {\n clientRef.current = null;\n return;\n }\n\n const client = new BoxPlotClient({\n dataPolicy,\n onStateChange: setState,\n runtimeIssueContext,\n runtimeIssueReporter,\n selection,\n tableName,\n x: config.x,\n y: config.y,\n });\n clientRef.current = client;\n coordinator.connect(client);\n\n return () => {\n client.destroy();\n if (clientRef.current === client) {\n clientRef.current = null;\n }\n };\n }, [\n config,\n coordinator,\n dataPolicy,\n runtimeIssueContext,\n runtimeIssueReporter,\n selection,\n tableName,\n ]);\n\n const effectiveState =\n !config || !config.x || !config.y\n ? {\n isLoading: false,\n outliers: [],\n summaries: [],\n }\n : state;\n\n return {clientRef, state: effectiveState};\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import type { BoxPlotOutlierRow, BoxPlotSummaryRow } from './BoxPlotClient';
2
+ import type { PlotSize } from '../../../../ResponsivePlot';
3
+ export declare function formatCategory(value: unknown): string;
4
+ export declare function getYDomain(summaries: BoxPlotSummaryRow[], outliers: BoxPlotOutlierRow[]): [number, number];
5
+ export declare function yPixelToValue(pixelY: number, size: PlotSize, domain: [number, number]): number;
6
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/charts/chart-types/box-plot/renderer/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAE,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAC1E,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,4BAA4B,CAAC;AAGzD,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAErD;AAED,wBAAgB,UAAU,CACxB,SAAS,EAAE,iBAAiB,EAAE,EAC9B,QAAQ,EAAE,iBAAiB,EAAE,GAC5B,CAAC,MAAM,EAAE,MAAM,CAAC,CAyBlB;AAED,wBAAgB,aAAa,CAC3B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,QAAQ,EACd,M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AAC,GAAG,GAAG,GAAG,GAAG,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;IAC5C,CAAC;IAED,MAAM,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC;IAC/B,OAAO,CAAC,GAAG,GAAG,GAAG,EAAE,GAAG,GAAG,GAAG,CAAC,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,aAAa,CAC3B,MAAc,EACd,IAAc,EACd,MAAwB;IAExB,MAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3E,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CACvB,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,EAC5B,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,CAC9B,CAAC;IACF,MAAM,KAAK,GAAG,CAAC,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC;IACpD,OAAO,MAAM,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACrD,CAAC","sourcesContent":["import type {BoxPlotOutlierRow, BoxPlotSummaryRow} from './BoxPlotClient';\nimport type {PlotSize} from '../../../../ResponsivePlot';\nimport {MARGINS} from './constants';\n\nexport function formatCategory(value: unknown): string {\n return value === null || value === undefined ? '(null)' : String(value);\n}\n\nexport function getYDomain(\n summaries: BoxPlotSummaryRow[],\n outliers: BoxPlotOutlierRow[],\n): [number, number] {\n const values = [\n ...summaries.flatMap((row) => [\n row.whiskerLow,\n row.whiskerHigh,\n row.q1,\n row.q3,\n row.median,\n ]),\n ...outliers.map((row) => row.value),\n ].filter((value) => Number.isFinite(value));\n\n if (!values.length) {\n return [0, 1];\n }\n\n const min = Math.min(...values);\n const max = Math.max(...values);\n if (min === max) {\n const pad = Math.abs(min) || 1;\n return [min - pad * 0.5, max + pad * 0.5];\n }\n\n const pad = (max - min) * 0.08;\n return [min - pad, max + pad];\n}\n\nexport function yPixelToValue(\n pixelY: number,\n size: PlotSize,\n domain: [number, number],\n) {\n const plotHeight = Math.max(1, size.height - MARGINS.top - MARGINS.bottom);\n const clampedY = Math.min(\n size.height - MARGINS.bottom,\n Math.max(MARGINS.top, pixelY),\n );\n const ratio = (clampedY - MARGINS.top) / plotHeight;\n return domain[1] - ratio * (domain[1] - domain[0]);\n}\n"]}
@@ -0,0 +1,21 @@
1
+ import { z } from 'zod';
2
+ export declare const BoxPlotChartSettings: z.ZodObject<{
3
+ x: z.ZodOptional<z.ZodString>;
4
+ y: z.ZodOptional<z.ZodString>;
5
+ }, z.core.$strip>;
6
+ export type BoxPlotChartSettings = z.infer<typeof BoxPlotChartSettings>;
7
+ export declare const BoxPlotChartConfig: z.ZodObject<{
8
+ chartType: z.ZodLiteral<"box-plot">;
9
+ settings: z.ZodObject<{
10
+ x: z.ZodOptional<z.ZodString>;
11
+ y: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
13
+ settingsOpen: z.ZodOptional<z.ZodBoolean>;
14
+ dataPolicy: z.ZodOptional<z.ZodObject<{
15
+ disabled: z.ZodOptional<z.ZodBoolean>;
16
+ maxRows: z.ZodOptional<z.ZodNumber>;
17
+ reason: z.ZodOptional<z.ZodString>;
18
+ }, z.core.$strip>>;
19
+ }, z.core.$strip>;
20
+ export type BoxPlotChartConfig = z.infer<typeof BoxPlotChartConfig>;
21
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/charts/chart-types/box-plot/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,oBAAoB;;;iBAM/B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;iBAK7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ import { ChartDataPolicyOverrideConfig } from '../data-policy-schema';
3
+ export const BoxPlotChartSettings = z.object({
4
+ x: z.string().optional().describe('Categorical column for grouping'),
5
+ y: z
6
+ .string()
7
+ .optional()
8
+ .describe('Numeric column for distribution statistics'),
9
+ });
10
+ export const BoxPlotChartConfig = z.object({
11
+ chartType: z.literal('box-plot'),
12
+ settings: BoxPlotChartSettings,
13
+ settingsOpen: z.boolean().optional(),
14
+ dataPolicy: ChartDataPolicyOverrideConfig.optional(),
15
+ });
16
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/charts/chart-types/box-plot/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,6BAA6B,EAAC,MAAM,uBAAuB,CAAC;AAEpE,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IACpE,CAAC,EAAE,CAAC;SACD,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,4CAA4C,CAAC;CAC1D,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAChC,QAAQ,EAAE,oBAAoB;IAC9B,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACpC,UAAU,EAAE,6BAA6B,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC","sourcesContent":["import {z} from 'zod';\nimport {ChartDataPolicyOverrideConfig} from '../data-policy-schema';\n\nexport const BoxPlotChartSettings = z.object({\n x: z.string().optional().describe('Categorical column for grouping'),\n y: z\n .string()\n .optional()\n .describe('Numeric column for distribution statistics'),\n});\n\nexport type BoxPlotChartSettings = z.infer<typeof BoxPlotChartSettings>;\n\nexport const BoxPlotChartConfig = z.object({\n chartType: z.literal('box-plot'),\n settings: BoxPlotChartSettings,\n settingsOpen: z.boolean().optional(),\n dataPolicy: ChartDataPolicyOverrideConfig.optional(),\n});\n\nexport type BoxPlotChartConfig = z.infer<typeof BoxPlotChartConfig>;\n"]}
@@ -0,0 +1,40 @@
1
+ import { z } from 'zod';
2
+ import { type DashboardToolDeps } from '../base-types';
3
+ export declare const BoxPlotToolParameters: z.ZodObject<{
4
+ artifactId: z.ZodOptional<z.ZodString>;
5
+ tableName: z.ZodOptional<z.ZodString>;
6
+ createArtifactIfMissing: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7
+ panelId: z.ZodOptional<z.ZodString>;
8
+ reasoning: z.ZodString;
9
+ settings: z.ZodObject<{
10
+ x: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
11
+ y: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
12
+ }, z.core.$strip>;
13
+ }, z.core.$strip>;
14
+ export type BoxPlotToolParams = z.infer<typeof BoxPlotToolParameters>;
15
+ export declare function createBoxPlotAiTool(deps: DashboardToolDeps): import("ai").Tool<{
16
+ createArtifactIfMissing: boolean;
17
+ reasoning: string;
18
+ settings: {
19
+ x: string;
20
+ y: string;
21
+ };
22
+ artifactId?: string | undefined;
23
+ tableName?: string | undefined;
24
+ panelId?: string | undefined;
25
+ }, {
26
+ llmResult: {
27
+ success: boolean;
28
+ details: string;
29
+ data: import("..").PanelResult;
30
+ errorMessage?: undefined;
31
+ };
32
+ } | {
33
+ llmResult: {
34
+ success: boolean;
35
+ errorMessage: string;
36
+ details?: undefined;
37
+ data?: undefined;
38
+ };
39
+ }>;
40
+ //# sourceMappingURL=tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../../../src/charts/chart-types/box-plot/tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAQrD,eAAO,MAAM,qBAAqB;;;;;;;;;;iBAEhC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEtE,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;GA4E1D"}
@@ -0,0 +1,67 @@
1
+ import { tool } from 'ai';
2
+ import { BoxPlotChartSettings } from './schema';
3
+ import { BaseChartToolParameters } from '../../../ai/tool-schemas';
4
+ import { validateColumnExists } from '../../../ai/tool-validation';
5
+ import { NUMERIC_COLUMN_TYPES, CATEGORICAL_COLUMN_TYPES, } from '../../../column-types-utils';
6
+ import { createOrUpdateChartPanel } from '../../../ai/tool-helpers';
7
+ export const BoxPlotToolParameters = BaseChartToolParameters.extend({
8
+ settings: BoxPlotChartSettings.required(),
9
+ });
10
+ export function createBoxPlotAiTool(deps) {
11
+ return tool({
12
+ description: `Box plot: compares distributions of numeric values across categories. Shows median, quartiles (25th, 75th percentiles), and outliers per group.
13
+
14
+ Use when: user asks to "compare [numeric] across/by [category]", "distribution by group", "show outliers by", "compare ranges".
15
+ Example queries: "compare population by administrative region", "show elevation distribution by terrain type", "parcel area range by zone", "compare building heights across districts", "temperature by climate zone".
16
+
17
+ Required:
18
+ - x: categorical/grouping column (${CATEGORICAL_COLUMN_TYPES.join(', ')}) - e.g., region, terrain type, zone classification
19
+ - y: numeric (${NUMERIC_COLUMN_TYPES.join(', ')})
20
+
21
+ NOTE: Box plots aggregate data by computing quartiles and outliers per group, so they handle large datasets efficiently (no data point limit).
22
+
23
+ To UPDATE an existing box plot: provide the panelId parameter. Otherwise creates new panel.
24
+
25
+ Best for: comparing distributions between groups, finding outliers per category, seeing spread and variance differences.
26
+
27
+ Do NOT use for: single distribution (use histogram), time trends (use line-chart), simple counts (use count-plot).`,
28
+ inputSchema: BoxPlotToolParameters,
29
+ execute: async (params, context) => {
30
+ try {
31
+ const artifactId = deps.resolveArtifact(params.artifactId, params.createArtifactIfMissing, context);
32
+ const { tableName, columns } = deps.resolveTable(artifactId, params.tableName);
33
+ // Validate settings
34
+ validateColumnExists(params.settings.x, CATEGORICAL_COLUMN_TYPES, columns, 'x');
35
+ validateColumnExists(params.settings.y, NUMERIC_COLUMN_TYPES, columns, 'y');
36
+ const result = createOrUpdateChartPanel(deps, {
37
+ panelId: params.panelId,
38
+ dashboardId: artifactId,
39
+ tableName,
40
+ title: `Box plot - ${params.settings.y} by ${params.settings.x}`,
41
+ config: {
42
+ chartType: 'box-plot',
43
+ settings: params.settings,
44
+ },
45
+ });
46
+ return {
47
+ llmResult: {
48
+ success: true,
49
+ details: params.panelId
50
+ ? `Updated box plot "${result.title}".`
51
+ : `Created box plot "${result.title}".`,
52
+ data: result,
53
+ },
54
+ };
55
+ }
56
+ catch (error) {
57
+ return {
58
+ llmResult: {
59
+ success: false,
60
+ errorMessage: error instanceof Error ? error.message : String(error),
61
+ },
62
+ };
63
+ }
64
+ },
65
+ });
66
+ }
67
+ //# sourceMappingURL=tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool.js","sourceRoot":"","sources":["../../../../src/charts/chart-types/box-plot/tool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,IAAI,CAAC;AAExB,OAAO,EAAC,oBAAoB,EAAC,MA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AE,UAAU;oBACvB,SAAS;oBACT,KAAK,EAAE,cAAc,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE;oBAChE,MAAM,EAAE;wBACN,SAAS,EAAE,UAAU;wBACrB,QAAQ,EAAE,MAAM,CAAC,QAAQ;qBAC1B;iBACF,CAAC,CAAC;gBAEH,OAAO;oBACL,SAAS,EAAE;wBACT,OAAO,EAAE,IAAI;wBACb,OAAO,EAAE,MAAM,CAAC,OAAO;4BACrB,CAAC,CAAC,qBAAqB,MAAM,CAAC,KAAK,IAAI;4BACvC,CAAC,CAAC,qBAAqB,MAAM,CAAC,KAAK,IAAI;wBACzC,IAAI,EAAE,MAAM;qBACb;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 {BoxPlotChartSettings} from './schema';\nimport {BaseChartToolParameters} from '../../../ai/tool-schemas';\nimport {type DashboardToolDeps} from '../base-types';\nimport {validateColumnExists} from '../../../ai/tool-validation';\nimport {\n NUMERIC_COLUMN_TYPES,\n CATEGORICAL_COLUMN_TYPES,\n} from '../../../column-types-utils';\nimport {createOrUpdateChartPanel} from '../../../ai/tool-helpers';\n\nexport const BoxPlotToolParameters = BaseChartToolParameters.extend({\n settings: BoxPlotChartSettings.required(),\n});\n\nexport type BoxPlotToolParams = z.infer<typeof BoxPlotToolParameters>;\n\nexport function createBoxPlotAiTool(deps: DashboardToolDeps) {\n return tool({\n description: `Box plot: compares distributions of numeric values across categories. Shows median, quartiles (25th, 75th percentiles), and outliers per group.\n\nUse when: user asks to \"compare [numeric] across/by [category]\", \"distribution by group\", \"show outliers by\", \"compare ranges\".\nExample queries: \"compare population by administrative region\", \"show elevation distribution by terrain type\", \"parcel area range by zone\", \"compare building heights across districts\", \"temperature by climate zone\".\n\nRequired:\n- x: categorical/grouping column (${CATEGORICAL_COLUMN_TYPES.join(', ')}) - e.g., region, terrain type, zone classification\n- y: numeric (${NUMERIC_COLUMN_TYPES.join(', ')})\n\nNOTE: Box plots aggregate data by computing quartiles and outliers per group, so they handle large datasets efficiently (no data point limit).\n\nTo UPDATE an existing box plot: provide the panelId parameter. Otherwise creates new panel.\n\nBest for: comparing distributions between groups, finding outliers per category, seeing spread and variance differences.\n\nDo NOT use for: single distribution (use histogram), time trends (use line-chart), simple counts (use count-plot).`,\n inputSchema: BoxPlotToolParameters,\n execute: async (params, context) => {\n try {\n const artifactId = deps.resolveArtifact(\n params.artifactId,\n params.createArtifactIfMissing,\n context,\n );\n const {tableName, columns} = deps.resolveTable(\n artifactId,\n params.tableName,\n );\n\n // Validate settings\n validateColumnExists(\n params.settings.x,\n CATEGORICAL_COLUMN_TYPES,\n columns,\n 'x',\n );\n validateColumnExists(\n params.settings.y,\n NUMERIC_COLUMN_TYPES,\n columns,\n 'y',\n );\n\n const result = createOrUpdateChartPanel(deps, {\n panelId: params.panelId,\n dashboardId: artifactId,\n tableName,\n title: `Box plot - ${params.settings.y} by ${params.settings.x}`,\n config: {\n chartType: 'box-plot',\n settings: params.settings,\n },\n });\n\n return {\n llmResult: {\n success: true,\n details: params.panelId\n ? `Updated box plot \"${result.title}\".`\n : `Created box plot \"${result.title}\".`,\n data: result,\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 @@
1
+ {"version":3,"file":"BubbleChartSettings.d.ts","sourceRoot":"","sources":["../../../../src/charts/chart-types/bubble-chart/BubbleChartSettings.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAE,EAAC,MAAM,OAAO,CAAC;AAK9B,eAAO,MAAM,4BAA4B,EAAE,EAqB1C,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Field } from '../../../components/Field';
3
+ import { ColumnSelector } from '../../../components/ColumnSelector';
4
+ import { useMosaicChartSettingsContext } from '../../chart-settings/MosaicChartSettingsContext';
5
+ export const BubbleChartSettingsComponent = () => {
6
+ const { onChangeConfig, config } = useMosaicChartSettingsContext('bubble-chart');
7
+ return (_jsxs("div", { className: "space-y-4", children: [_jsx(Field, { label: "X Field", required: true, children: _jsx(ColumnSelector.Numeric, { value: config.settings.x, onChange: (x) => onChangeConfig('x', x) }) }), _jsx(Field, { label: "Y Field", required: true, children: _jsx(ColumnSelector.Numeric, { value: config.settings.y, onChange: (y) => onChangeConfig('y', y) }) })] }));
8
+ };
9
+ //# sourceMappingURL=BubbleChartSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BubbleChartSettings.js","sourceRoot":"","sources":["../../../../src/charts/chart-types/bubble-chart/BubbleChartSettings.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,KAAK,EAAC,MAAM,2BAA2B,CAAC;AAChD,OAAO,EAAC,cAAc,EAAC,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAC,6BAA6B,EAAC,MAAM,iDAAiD,CAAC;AAE9F,MAAM,CAAC,MAAM,4BAA4B,GAAO,GAAG,EAAE;IACnD,MAAM,EAAC,cAAc,EAAE,MAAM,EAAC,GAC5B,6BAA6B,CAAC,cAAc,CAAC,CAAC;IAEhD,OAAO,CACL,eAAK,SAAS,EAAC,WAAW,aACxB,KAAC,KAAK,IAAC,KAAK,EAAC,SAAS,EAAC,QAAQ,kBAC7B,KAAC,cAAc,CAAC,OAAO,IACrB,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,EACxB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC,GAAG,EAAE,CAAC,CAAC,GACvC,GACI,EAER,KAAC,KAAK,IAAC,KAAK,EAAC,SAAS,EAAC,QAAQ,kBAC7B,KAAC,cAAc,CAAC,OAAO,IACrB,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,EACxB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC,GAAG,EAAE,CAAC,CAAC,GACvC,GACI,IACJ,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import {type FC} from 'react';\nimport {Field} from '../../../components/Field';\nimport {ColumnSelector} from '../../../components/ColumnSelector';\nimport {useMosaicChartSettingsContext} from '../../chart-settings/MosaicChartSettingsContext';\n\nexport const BubbleChartSettingsComponent: FC = () => {\n const {onChangeConfig, config} =\n useMosaicChartSettingsContext('bubble-chart');\n\n return (\n <div className=\"space-y-4\">\n <Field label=\"X Field\" required>\n <ColumnSelector.Numeric\n value={config.settings.x}\n onChange={(x) => onChangeConfig('x', x)}\n />\n </Field>\n\n <Field label=\"Y Field\" required>\n <ColumnSelector.Numeric\n value={config.settings.y}\n onChange={(y) => onChangeConfig('y', y)}\n />\n </Field>\n </div>\n );\n};\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definition.d.ts","sourceRoot":"","sources":["../../../../src/charts/chart-types/bubble-chart/definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,uBAAuB,EAAC,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAC,iBAAiB,EAAsB,MAAM,UAAU,CAAC;AAUhE,eAAO,MAAM,oBAAoB,EAAE,uBAAuB,CAAC,iBAAiB,CAgBzE,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { BubbleChartSettings } from './schema';
2
+ import { titleFromDescription } from '../../../chart-builders/chartTypeUtils';
3
+ import { BubbleChartSettingsComponent } from './BubbleChartSettings';
4
+ import { createBubbleChartAiTool } from './tool';
5
+ import { Workflow } from 'lucide-react';
6
+ import { createBubbleChartSpec } from './spec';
7
+ import { DEFAULT_CHART_MAX_DATA_POINTS } from '../../../chart-runtime';
8
+ const DESCRIPTION = 'Create a bubble chart';
9
+ export const bubbleChartChartType = {
10
+ id: 'bubble-chart',
11
+ label: 'Bubble Chart',
12
+ description: DESCRIPTION,
13
+ icon: Workflow,
14
+ schema: BubbleChartSettings,
15
+ settingsComponent: BubbleChartSettingsComponent,
16
+ buildTitle: titleFromDescription(DESCRIPTION),
17
+ createTool: createBubbleChartAiTool,
18
+ getDataPolicy: () => ({
19
+ maxRows: DEFAULT_CHART_MAX_DATA_POINTS,
20
+ reason: 'Bubble charts render one point per row. Use a heatmap or another aggregated chart for larger datasets.',
21
+ }),
22
+ createSpec: createBubbleChartSpec,
23
+ };
24
+ //# sourceMappingURL=definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/charts/chart-types/bubble-chart/definition.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,mBAAmB,EAAC,MAAM,UAAU,CAAC;AAChE,OAAO,EAAC,oBAAoB,EAAC,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAC,4BAA4B,EAAC,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAC,uBAAuB,EAAC,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAC,QAAQ,EAAC,MAAM,cAAc,CAAC;AACtC,OAAO,EAAC,qBAAqB,EAAC,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAC,6BAA6B,EAAC,MAAM,wBAAwB,CAAC;AAErE,MAAM,WAAW,GAAG,uBAAuB,CAAC;AAE5C,MAAM,CAAC,MAAM,oBAAoB,GAC/B;IACE,EAAE,EAAE,cAAc;IAClB,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,mBAAmB;IAC3B,iBAAiB,EAAE,4BAA4B;IAC/C,UAAU,EAAE,oBAAoB,CAAC,WAAW,CAAC;IAC7C,UAAU,EAAE,uBAAuB;IACnC,aAAa,EAAE,GAAG,EAAE,CAAC,CAAC;QACpB,OAAO,EAAE,6BAA6B;QACtC,MAAM,EACJ,wGAAwG;KAC3G,CAAC;IACF,UAAU,EAAE,qBAAqB;CAClC,CAAC","sourcesContent":["import type {SpecChartTypeDefinition} from '../base-types';\nimport {BubbleChartConfig, BubbleChartSettings} from './schema';\nimport {titleFromDescription} from '../../../chart-builders/chartTypeUtils';\nimport {BubbleChartSettingsComponent} from './BubbleChartSettings';\nimport {createBubbleChartAiTool} from './tool';\nimport {Workflow} from 'lucide-react';\nimport {createBubbleChartSpec} from './spec';\nimport {DEFAULT_CHART_MAX_DATA_POINTS} from '../../../chart-runtime';\n\nconst DESCRIPTION = 'Create a bubble chart';\n\nexport const bubbleChartChartType: SpecChartTypeDefinition<BubbleChartConfig> =\n {\n id: 'bubble-chart',\n label: 'Bubble Chart',\n description: DESCRIPTION,\n icon: Workflow,\n schema: BubbleChartSettings,\n settingsComponent: BubbleChartSettingsComponent,\n buildTitle: titleFromDescription(DESCRIPTION),\n createTool: createBubbleChartAiTool,\n getDataPolicy: () => ({\n maxRows: DEFAULT_CHART_MAX_DATA_POINTS,\n reason:\n 'Bubble charts render one point per row. Use a heatmap or another aggregated chart for larger datasets.',\n }),\n createSpec: createBubbleChartSpec,\n };\n"]}
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+ export declare const BubbleChartSettings: z.ZodObject<{
3
+ x: z.ZodOptional<z.ZodString>;
4
+ y: z.ZodOptional<z.ZodString>;
5
+ size: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ export type BubbleChartSettings = z.infer<typeof BubbleChartSettings>;
8
+ export declare const BubbleChartConfig: z.ZodObject<{
9
+ chartType: z.ZodLiteral<"bubble-chart">;
10
+ settings: z.ZodObject<{
11
+ x: z.ZodOptional<z.ZodString>;
12
+ y: z.ZodOptional<z.ZodString>;
13
+ size: z.ZodOptional<z.ZodString>;
14
+ }, z.core.$strip>;
15
+ settingsOpen: z.ZodOptional<z.ZodBoolean>;
16
+ dataPolicy: z.ZodOptional<z.ZodObject<{
17
+ disabled: z.ZodOptional<z.ZodBoolean>;
18
+ maxRows: z.ZodOptional<z.ZodNumber>;
19
+ reason: z.ZodOptional<z.ZodString>;
20
+ }, z.core.$strip>>;
21
+ }, z.core.$strip>;
22
+ export type BubbleChartConfig = z.infer<typeof BubbleChartConfig>;
23
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/charts/chart-types/bubble-chart/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,mBAAmB;;;;iBAO9B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;iBAK5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ import { ChartDataPolicyOverrideConfig } from '../data-policy-schema';
3
+ export const BubbleChartSettings = z.object({
4
+ x: z.string().optional().describe('Numeric column for X axis position'),
5
+ y: z.string().optional().describe('Numeric column for Y axis position'),
6
+ size: z
7
+ .string()
8
+ .optional()
9
+ .describe('Numeric column for bubble size (optional)'),
10
+ });
11
+ export const BubbleChartConfig = z.object({
12
+ chartType: z.literal('bubble-chart'),
13
+ settings: BubbleChartSettings,
14
+ settingsOpen: z.boolean().optional(),
15
+ dataPolicy: ChartDataPolicyOverrideConfig.optional(),
16
+ });
17
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/charts/chart-types/bubble-chart/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,6BAA6B,EAAC,MAAM,uBAAuB,CAAC;AAEpE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IACvE,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IACvE,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,2CAA2C,CAAC;CACzD,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;IACpC,QAAQ,EAAE,mBAAmB;IAC7B,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACpC,UAAU,EAAE,6BAA6B,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC","sourcesContent":["import {z} from 'zod';\nimport {ChartDataPolicyOverrideConfig} from '../data-policy-schema';\n\nexport const BubbleChartSettings = z.object({\n x: z.string().optional().describe('Numeric column for X axis position'),\n y: z.string().optional().describe('Numeric column for Y axis position'),\n size: z\n .string()\n .optional()\n .describe('Numeric column for bubble size (optional)'),\n});\n\nexport type BubbleChartSettings = z.infer<typeof BubbleChartSettings>;\n\nexport const BubbleChartConfig = z.object({\n chartType: z.literal('bubble-chart'),\n settings: BubbleChartSettings,\n settingsOpen: z.boolean().optional(),\n dataPolicy: ChartDataPolicyOverrideConfig.optional(),\n});\n\nexport type BubbleChartConfig = z.infer<typeof BubbleChartConfig>;\n"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spec.d.ts","sourceRoot":"","sources":["../../../../src/charts/chart-types/bubble-chart/spec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAC,mBAAmB,EAAC,MAAM,UAAU,CAAC;AAK7C,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,EACjB,EAAC,CAAC,EAAE,CAAC,EAAC,EAAE,mBAAmB,GAC1B,IAAI,CA2BN"}
@@ -0,0 +1,31 @@
1
+ import { ChartSpecError } from '../errors';
2
+ const FG_COLOR = 'var(--color-chart-1)';
3
+ export function createBubbleChartSpec(tableName, { x, y }) {
4
+ if (!x) {
5
+ throw new ChartSpecError('X field is required for bubble chart');
6
+ }
7
+ if (!y) {
8
+ throw new ChartSpecError('Y field is required for bubble chart');
9
+ }
10
+ return {
11
+ plot: [
12
+ {
13
+ mark: 'dot',
14
+ data: { from: tableName, filterBy: '$brush' },
15
+ x,
16
+ y,
17
+ fill: FG_COLOR,
18
+ fillOpacity: 0.5,
19
+ r: 3,
20
+ },
21
+ { select: 'intervalXY', as: '$brush' },
22
+ ],
23
+ xLabel: x,
24
+ yLabel: y,
25
+ height: 250,
26
+ width: 380,
27
+ margins: { left: 50, right: 20, top: 20, bottom: 50 },
28
+ params: { brush: { select: 'crossfilter' } },
29
+ };
30
+ }
31
+ //# sourceMappingURL=spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spec.js","sourceRoot":"","sources":["../../../../src/charts/chart-types/bubble-chart/spec.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,cAAc,EAAC,MAAM,WAAW,CAAC;AAEzC,MAAM,QAAQ,GAAG,sBAAsB,CAAC;AAExC,MAAM,UAAU,qBAAqB,CACnC,SAAiB,EACjB,EAAC,CAAC,EAAE,CAAC,EAAsB;IAE3B,IAAI,CAAC,CAAC,EAAE,CAAC;QACP,MAAM,IAAI,cAAc,CAAC,sCAAsC,CAAC,CAAC;IACnE,CAAC;IACD,IAAI,CAAC,CAAC,EAAE,CAAC;QACP,MAAM,IAAI,cAAc,CAAC,sCAAsC,CAAC,CAAC;IACnE,CAAC;IACD,OAAO;QACL,IAAI,EAAE;YACJ;gBACE,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,EAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAC;gBAC3C,CAAC;gBACD,CAAC;gBACD,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,GAAG;gBAChB,CAAC,EAAE,CAAC;aACL;YACD,EAAC,MAAM,EAAE,YAAY,EAAE,EAAE,EAAE,QAAQ,EAAC;SACrC;QACD,MAAM,EAAE,CAAC;QACT,MAAM,EAAE,CAAC;QACT,MAAM,EAAE,GAAG;QACX,KAAK,EAAE,GAAG;QACV,OAAO,EAAE,EAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAC;QACnD,MAAM,EAAE,EAAC,KAAK,EAAE,EAAC,MAAM,EAAE,aAAa,EAAC,EAAC;KACjC,CAAC;AACZ,CAAC","sourcesContent":["import type {Spec} from '@uwdata/mosaic-spec';\nimport {BubbleChartSettings} from './schema';\nimport {ChartSpecError} from '../errors';\n\nconst FG_COLOR = 'var(--color-chart-1)';\n\nexport function createBubbleChartSpec(\n tableName: string,\n {x, y}: BubbleChartSettings,\n): Spec {\n if (!x) {\n throw new ChartSpecError('X field is required for bubble chart');\n }\n if (!y) {\n throw new ChartSpecError('Y field is required for bubble chart');\n }\n return {\n plot: [\n {\n mark: 'dot',\n data: {from: tableName, filterBy: '$brush'},\n x,\n y,\n fill: FG_COLOR,\n fillOpacity: 0.5,\n r: 3,\n },\n {select: 'intervalXY', as: '$brush'},\n ],\n xLabel: x,\n yLabel: y,\n height: 250,\n width: 380,\n margins: {left: 50, right: 20, top: 20, bottom: 50},\n params: {brush: {select: 'crossfilter'}},\n } as Spec;\n}\n"]}
@@ -0,0 +1,42 @@
1
+ import { z } from 'zod';
2
+ import { type DashboardToolDeps } from '../base-types';
3
+ export declare const BubbleChartToolParameters: z.ZodObject<{
4
+ artifactId: z.ZodOptional<z.ZodString>;
5
+ tableName: z.ZodOptional<z.ZodString>;
6
+ createArtifactIfMissing: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7
+ panelId: z.ZodOptional<z.ZodString>;
8
+ reasoning: z.ZodString;
9
+ settings: z.ZodObject<{
10
+ x: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
11
+ y: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
12
+ size: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
13
+ }, z.core.$strip>;
14
+ }, z.core.$strip>;
15
+ export type BubbleChartToolParams = z.infer<typeof BubbleChartToolParameters>;
16
+ export declare function createBubbleChartAiTool(deps: DashboardToolDeps): import("ai").Tool<{
17
+ createArtifactIfMissing: boolean;
18
+ reasoning: string;
19
+ settings: {
20
+ x: string;
21
+ y: string;
22
+ size: string;
23
+ };
24
+ artifactId?: string | undefined;
25
+ tableName?: string | undefined;
26
+ panelId?: string | undefined;
27
+ }, {
28
+ llmResult: {
29
+ success: boolean;
30
+ details: string;
31
+ data: import("..").PanelResult;
32
+ errorMessage?: undefined;
33
+ };
34
+ } | {
35
+ llmResult: {
36
+ success: boolean;
37
+ errorMessage: string;
38
+ details?: undefined;
39
+ data?: undefined;
40
+ };
41
+ }>;
42
+ //# sourceMappingURL=tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../../../src/charts/chart-types/bubble-chart/tool.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,OAAO,EAAC,KAAK,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAKrD,eAAO,MAAM,yBAAyB;;;;;;;;;;;iBAEpC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE9E,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;GA6E9D"}