@carto/ps-react-ui 4.4.0-chat-ui.6 → 4.4.0-chat-ui.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 (910) hide show
  1. package/dist/category-DwaeYjpX.js +656 -0
  2. package/dist/category-DwaeYjpX.js.map +1 -0
  3. package/dist/change-column-Cidl_M-4.js +1110 -0
  4. package/dist/change-column-Cidl_M-4.js.map +1 -0
  5. package/dist/chat.js +621 -672
  6. package/dist/chat.js.map +1 -1
  7. package/dist/components.js.map +1 -1
  8. package/dist/data-zoom-layout-DVYB8mIx.js +29 -0
  9. package/dist/data-zoom-layout-DVYB8mIx.js.map +1 -0
  10. package/dist/download-config-C7hf33ip.js +58 -0
  11. package/dist/download-config-C7hf33ip.js.map +1 -0
  12. package/dist/echart-CU0KmClP.js +176 -0
  13. package/dist/echart-CU0KmClP.js.map +1 -0
  14. package/dist/exports-Cr43OCul.js.map +1 -1
  15. package/dist/exports-Cx-f6m6U.js +63 -0
  16. package/dist/exports-Cx-f6m6U.js.map +1 -0
  17. package/dist/formatter-B9Bxn1k7.js +6 -0
  18. package/dist/formatter-B9Bxn1k7.js.map +1 -0
  19. package/dist/formula-DuC0NQLH.js +79 -0
  20. package/dist/formula-DuC0NQLH.js.map +1 -0
  21. package/dist/lasso-tool-BYbxrJ-7.js.map +1 -1
  22. package/dist/markdown-BD1jcknS.js +8326 -0
  23. package/dist/markdown-BD1jcknS.js.map +1 -0
  24. package/dist/option-builders-F-c9ELi1.js +122 -0
  25. package/dist/option-builders-F-c9ELi1.js.map +1 -0
  26. package/dist/options-CthfUJDz.js +46 -0
  27. package/dist/options-CthfUJDz.js.map +1 -0
  28. package/dist/png-item-CS4z1iSH.js +45 -0
  29. package/dist/png-item-CS4z1iSH.js.map +1 -0
  30. package/dist/range-l4fNHLEg.js +213 -0
  31. package/dist/range-l4fNHLEg.js.map +1 -0
  32. package/dist/resolve-theme-color-BdojIw0K.js +47 -0
  33. package/dist/resolve-theme-color-BdojIw0K.js.map +1 -0
  34. package/dist/row-DZSP99LW.js +34 -0
  35. package/dist/row-DZSP99LW.js.map +1 -0
  36. package/dist/series-DLNHDWs0.js +90 -0
  37. package/dist/series-DLNHDWs0.js.map +1 -0
  38. package/dist/shared-resize-observer-98b1SK1e.js +17 -0
  39. package/dist/shared-resize-observer-98b1SK1e.js.map +1 -0
  40. package/dist/smart-tooltip-D4vwQpFf.js.map +1 -1
  41. package/dist/spread-CngWB5KF.js +68 -0
  42. package/dist/spread-CngWB5KF.js.map +1 -0
  43. package/dist/style-DVnT6HC1.js +131 -0
  44. package/dist/style-DVnT6HC1.js.map +1 -0
  45. package/dist/styles-cohnxh9F.js +23 -0
  46. package/dist/styles-cohnxh9F.js.map +1 -0
  47. package/dist/table-CQCAnDLb.js +388 -0
  48. package/dist/table-CQCAnDLb.js.map +1 -0
  49. package/dist/tooltip-BDnrRKrp.js.map +1 -1
  50. package/dist/transforms-Cdx4fkU5.js +106 -0
  51. package/dist/transforms-Cdx4fkU5.js.map +1 -0
  52. package/dist/types/chat/containers/chat-content.d.ts +2 -2
  53. package/dist/types/chat/containers/styles.d.ts +9 -26
  54. package/dist/types/chat/feedback/chat-tool-code-area.d.ts +1 -3
  55. package/dist/types/chat/index.d.ts +1 -1
  56. package/dist/types/chat/types.d.ts +35 -3
  57. package/dist/types/components/basemaps/basemaps.d.ts +20 -0
  58. package/dist/types/components/geolocation-controls/geolocation-controls.d.ts +11 -0
  59. package/dist/types/components/lasso-tool/lasso-tool-inline.d.ts +17 -0
  60. package/dist/types/components/lasso-tool/lasso-tool.d.ts +21 -0
  61. package/dist/types/components/list-data/list-data.d.ts +16 -0
  62. package/dist/types/components/measurement-tools/measurement-tools.d.ts +20 -0
  63. package/dist/types/components/smart-tooltip/smart-tooltip.d.ts +17 -0
  64. package/dist/types/components/tooltip/tooltip.d.ts +13 -0
  65. package/dist/types/components/zoom-controls/zoom-controls.d.ts +16 -0
  66. package/dist/types/hooks/index.d.ts +0 -1
  67. package/dist/types/hooks/use-widget-ref.d.ts +9 -6
  68. package/dist/types/widgets/actions/brush-toggle/brush-overlay.d.ts +24 -0
  69. package/dist/types/widgets/actions/brush-toggle/brush-toggle.d.ts +29 -0
  70. package/dist/types/widgets/actions/brush-toggle/hit-test.d.ts +19 -0
  71. package/dist/types/widgets/actions/brush-toggle/hit-test.test.d.ts +1 -0
  72. package/dist/types/widgets/actions/brush-toggle/style.d.ts +21 -0
  73. package/dist/types/widgets/actions/brush-toggle/types.d.ts +73 -0
  74. package/dist/types/widgets/actions/download/download.d.ts +11 -0
  75. package/dist/types/widgets/actions/download/exports.d.ts +15 -0
  76. package/dist/types/widgets/actions/fullscreen/fullscreen.d.ts +13 -0
  77. package/dist/types/widgets/actions/index.d.ts +7 -5
  78. package/dist/types/widgets/actions/lock-selection/types.d.ts +2 -0
  79. package/dist/types/widgets/actions/relative-data/relative-data.d.ts +8 -2
  80. package/dist/types/widgets/actions/relative-data/types.d.ts +2 -0
  81. package/dist/types/widgets/actions/zoom-toggle/zoom-toggle.d.ts +4 -0
  82. package/dist/types/widgets/bar/config.d.ts +8 -4
  83. package/dist/types/widgets/category/category-ui.d.ts +3 -0
  84. package/dist/types/widgets/category/components/category-bar.d.ts +3 -0
  85. package/dist/types/widgets/category/components/category-legend.d.ts +3 -0
  86. package/dist/types/widgets/category/components/category-row-multi.d.ts +5 -1
  87. package/dist/types/widgets/category/components/category-row-other.d.ts +3 -0
  88. package/dist/types/widgets/category/components/category-row-single.d.ts +5 -1
  89. package/dist/types/widgets/category/config.d.ts +11 -0
  90. package/dist/types/widgets/category/index.d.ts +10 -2
  91. package/dist/types/widgets/category/style.d.ts +1 -0
  92. package/dist/types/widgets/category/types.d.ts +1 -0
  93. package/dist/types/widgets/echart/echart-ui.d.ts +7 -0
  94. package/dist/types/widgets/echart/echart.d.ts +6 -0
  95. package/dist/types/widgets/echart/options.d.ts +7 -0
  96. package/dist/types/widgets/echart/shared-resize-observer.d.ts +12 -0
  97. package/dist/types/widgets/echart/types.d.ts +5 -1
  98. package/dist/types/widgets/echart/utils.d.ts +54 -7
  99. package/dist/types/widgets/echart/utils.test.d.ts +1 -0
  100. package/dist/types/widgets/error/error.d.ts +10 -0
  101. package/dist/types/widgets/formula/components/item.d.ts +3 -0
  102. package/dist/types/widgets/formula/components/prefix.d.ts +3 -0
  103. package/dist/types/widgets/formula/components/row.d.ts +3 -0
  104. package/dist/types/widgets/formula/components/series.d.ts +3 -0
  105. package/dist/types/widgets/formula/components/suffix.d.ts +3 -0
  106. package/dist/types/widgets/formula/components/value.d.ts +3 -0
  107. package/dist/types/widgets/formula/config.d.ts +11 -0
  108. package/dist/types/widgets/formula/config.test.d.ts +1 -0
  109. package/dist/types/widgets/formula/formula-ui.d.ts +3 -0
  110. package/dist/types/widgets/histogram/config.d.ts +18 -2
  111. package/dist/types/widgets/histogram/index.d.ts +2 -1
  112. package/dist/types/widgets/histogram/types.d.ts +6 -3
  113. package/dist/types/widgets/loader/loader.d.ts +22 -0
  114. package/dist/types/widgets/loader/utils.d.ts +26 -3
  115. package/dist/types/widgets/markdown/config.d.ts +10 -0
  116. package/dist/types/widgets/markdown/markdown-ui.d.ts +7 -0
  117. package/dist/types/widgets/markdown/markdown.d.ts +3 -0
  118. package/dist/types/widgets/no-data/no-data.d.ts +3 -2
  119. package/dist/types/widgets/no-data/types.d.ts +5 -1
  120. package/dist/types/widgets/note/note.d.ts +10 -0
  121. package/dist/types/widgets/pie/config.d.ts +8 -4
  122. package/dist/types/widgets/range/components/range-item.d.ts +3 -0
  123. package/dist/types/widgets/range/config.d.ts +5 -0
  124. package/dist/types/widgets/range/range-ui.d.ts +3 -0
  125. package/dist/types/widgets/scatterplot/config.d.ts +7 -3
  126. package/dist/types/widgets/selection-summary/selection-summary.d.ts +11 -0
  127. package/dist/types/widgets/skeleton-loader/skeleton-loader.d.ts +10 -0
  128. package/dist/types/widgets/spread/components/max-value.d.ts +3 -0
  129. package/dist/types/widgets/spread/components/min-value.d.ts +3 -0
  130. package/dist/types/widgets/spread/components/separator.d.ts +3 -0
  131. package/dist/types/widgets/spread/config.d.ts +11 -0
  132. package/dist/types/widgets/spread/spread-ui.d.ts +3 -0
  133. package/dist/types/widgets/stores/index.d.ts +3 -2
  134. package/dist/types/widgets/stores/types.d.ts +12 -10
  135. package/dist/types/widgets/stores/use-widget-selector.d.ts +35 -0
  136. package/dist/types/widgets/stores/widget-store-branches.test.d.ts +1 -0
  137. package/dist/types/widgets/stores/widget-store-performance.test.d.ts +1 -0
  138. package/dist/types/widgets/stores/widget-store.d.ts +48 -27
  139. package/dist/types/widgets/subheader/subheader.d.ts +11 -0
  140. package/dist/types/widgets/table/config.d.ts +8 -3
  141. package/dist/types/widgets/table/config.test.d.ts +1 -0
  142. package/dist/types/widgets/table/hooks/use-pagination.d.ts +11 -3
  143. package/dist/types/widgets/table/hooks/use-selection.d.ts +11 -2
  144. package/dist/types/widgets/table/hooks/use-sort.d.ts +11 -3
  145. package/dist/types/widgets/table/index.d.ts +6 -2
  146. package/dist/types/widgets/table/types.d.ts +1 -1
  147. package/dist/types/widgets/timeseries/config.d.ts +8 -4
  148. package/dist/types/widgets/utils/chart-config/download-config.d.ts +3 -0
  149. package/dist/types/widgets/{_shared → utils}/chart-config/index.d.ts +3 -1
  150. package/dist/types/widgets/{_shared → utils}/chart-config/option-builders.d.ts +41 -9
  151. package/dist/types/widgets/utils/chart-config/option-builders.test.d.ts +1 -0
  152. package/dist/types/widgets/utils/formatter.d.ts +2 -0
  153. package/dist/types/widgets/utils/index.d.ts +7 -0
  154. package/dist/types/widgets/wrapper/components/actions.d.ts +3 -0
  155. package/dist/types/widgets/wrapper/components/options.d.ts +3 -0
  156. package/dist/types/widgets/wrapper/components/title.d.ts +3 -0
  157. package/dist/types/widgets/wrapper/wrapper-ui.d.ts +14 -0
  158. package/dist/types/widgets/wrapper/wrapper.d.ts +14 -0
  159. package/dist/types/widgets-v2/actions/brush-toggle/brush-toggle.d.ts +56 -0
  160. package/dist/types/widgets-v2/actions/brush-toggle/index.d.ts +3 -0
  161. package/dist/types/widgets-v2/actions/brush-toggle/labels.d.ts +5 -0
  162. package/dist/types/widgets-v2/actions/brush-toggle/style.d.ts +12 -0
  163. package/dist/types/widgets-v2/actions/brush-toggle/transforms.d.ts +11 -0
  164. package/dist/types/widgets-v2/actions/change-column/change-column-icon.d.ts +2 -0
  165. package/dist/types/widgets-v2/actions/change-column/change-column.d.ts +29 -0
  166. package/dist/types/widgets-v2/actions/change-column/index.d.ts +3 -0
  167. package/dist/types/widgets-v2/actions/change-column/labels.d.ts +5 -0
  168. package/dist/types/widgets-v2/actions/change-column/sortable-column-item.d.ts +14 -0
  169. package/dist/types/widgets-v2/actions/change-column/style.d.ts +33 -0
  170. package/dist/types/widgets-v2/actions/change-column/types.d.ts +10 -0
  171. package/dist/types/widgets-v2/actions/download/download.d.ts +18 -0
  172. package/dist/types/widgets-v2/actions/download/exports.d.ts +37 -0
  173. package/dist/types/widgets-v2/actions/download/icons.d.ts +12 -0
  174. package/dist/types/widgets-v2/actions/download/index.d.ts +6 -0
  175. package/dist/types/widgets-v2/actions/download/labels.d.ts +11 -0
  176. package/dist/types/widgets-v2/actions/download/png-item.d.ts +24 -0
  177. package/dist/types/widgets-v2/actions/download/style.d.ts +1 -0
  178. package/dist/types/widgets-v2/actions/download/types.d.ts +35 -0
  179. package/dist/types/widgets-v2/actions/fullscreen/fullscreen.d.ts +59 -0
  180. package/dist/types/widgets-v2/actions/fullscreen/index.d.ts +3 -0
  181. package/dist/types/widgets-v2/actions/fullscreen/labels.d.ts +5 -0
  182. package/dist/types/widgets-v2/actions/fullscreen/style.d.ts +48 -0
  183. package/dist/types/widgets-v2/actions/fullscreen/types.d.ts +14 -0
  184. package/dist/types/widgets-v2/actions/index.d.ts +9 -0
  185. package/dist/types/widgets-v2/actions/lock-selection/index.d.ts +3 -0
  186. package/dist/types/widgets-v2/actions/lock-selection/labels.d.ts +6 -0
  187. package/dist/types/widgets-v2/actions/lock-selection/lock-selection.d.ts +36 -0
  188. package/dist/types/widgets-v2/actions/lock-selection/style.d.ts +12 -0
  189. package/dist/types/widgets-v2/actions/lock-selection/transforms.d.ts +6 -0
  190. package/dist/types/widgets-v2/actions/relative-data/index.d.ts +3 -0
  191. package/dist/types/widgets-v2/actions/relative-data/labels.d.ts +5 -0
  192. package/dist/types/widgets-v2/actions/relative-data/relative-data.d.ts +39 -0
  193. package/dist/types/widgets-v2/actions/relative-data/style.d.ts +12 -0
  194. package/dist/types/widgets-v2/actions/relative-data/transforms.d.ts +30 -0
  195. package/dist/types/widgets-v2/actions/relative-data/transforms.test.d.ts +1 -0
  196. package/dist/types/widgets-v2/actions/searcher/filter.d.ts +6 -0
  197. package/dist/types/widgets-v2/actions/searcher/index.d.ts +4 -0
  198. package/dist/types/widgets-v2/actions/searcher/labels.d.ts +7 -0
  199. package/dist/types/widgets-v2/actions/searcher/searcher-toggle.d.ts +23 -0
  200. package/dist/types/widgets-v2/actions/searcher/searcher.d.ts +11 -0
  201. package/dist/types/widgets-v2/actions/searcher/style.d.ts +16 -0
  202. package/dist/types/widgets-v2/actions/stack-toggle/index.d.ts +3 -0
  203. package/dist/types/widgets-v2/actions/stack-toggle/labels.d.ts +5 -0
  204. package/dist/types/widgets-v2/actions/stack-toggle/stack-toggle.d.ts +10 -0
  205. package/dist/types/widgets-v2/actions/stack-toggle/style.d.ts +12 -0
  206. package/dist/types/widgets-v2/actions/stack-toggle/transforms.d.ts +13 -0
  207. package/dist/types/widgets-v2/actions/stack-toggle/transforms.test.d.ts +1 -0
  208. package/dist/types/widgets-v2/actions/zoom-toggle/index.d.ts +3 -0
  209. package/dist/types/widgets-v2/actions/zoom-toggle/labels.d.ts +5 -0
  210. package/dist/types/widgets-v2/actions/zoom-toggle/style.d.ts +12 -0
  211. package/dist/types/widgets-v2/actions/zoom-toggle/transforms.d.ts +51 -0
  212. package/dist/types/widgets-v2/actions/zoom-toggle/transforms.test.d.ts +1 -0
  213. package/dist/types/widgets-v2/actions/zoom-toggle/zoom-toggle.d.ts +35 -0
  214. package/dist/types/widgets-v2/bar/download.d.ts +24 -0
  215. package/dist/types/widgets-v2/bar/index.d.ts +4 -0
  216. package/dist/types/widgets-v2/bar/options.d.ts +43 -0
  217. package/dist/types/widgets-v2/bar/options.test.d.ts +1 -0
  218. package/dist/types/widgets-v2/bar/skeleton.d.ts +6 -0
  219. package/dist/types/widgets-v2/bar/types.d.ts +46 -0
  220. package/dist/types/widgets-v2/category/category-ui.d.ts +81 -0
  221. package/dist/types/widgets-v2/category/category.d.ts +48 -0
  222. package/dist/types/widgets-v2/category/components/category-bar-stacked.d.ts +28 -0
  223. package/dist/types/widgets-v2/category/components/category-bar.d.ts +23 -0
  224. package/dist/types/widgets-v2/category/components/category-legend.d.ts +18 -0
  225. package/dist/types/widgets-v2/category/components/category-row-multi.d.ts +31 -0
  226. package/dist/types/widgets-v2/category/components/category-row-other.d.ts +13 -0
  227. package/dist/types/widgets-v2/category/components/category-row-single.d.ts +28 -0
  228. package/dist/types/widgets-v2/category/components/category-row-stacked.d.ts +38 -0
  229. package/dist/types/widgets-v2/category/download.d.ts +16 -0
  230. package/dist/types/widgets-v2/category/download.test.d.ts +1 -0
  231. package/dist/types/widgets-v2/category/index.d.ts +10 -0
  232. package/dist/types/widgets-v2/category/skeleton.d.ts +11 -0
  233. package/dist/types/widgets-v2/category/style.d.ts +166 -0
  234. package/dist/types/widgets-v2/category/types.d.ts +53 -0
  235. package/dist/types/widgets-v2/echart/echart-ui.d.ts +44 -0
  236. package/dist/types/widgets-v2/echart/echart.d.ts +75 -0
  237. package/dist/types/widgets-v2/echart/index.d.ts +4 -0
  238. package/dist/types/widgets-v2/echart/shared-resize-observer.d.ts +5 -0
  239. package/dist/types/widgets-v2/echart/shared-resize-observer.test.d.ts +1 -0
  240. package/dist/types/widgets-v2/echart/style.d.ts +6 -0
  241. package/dist/types/widgets-v2/echart/use-chart-selection.d.ts +51 -0
  242. package/dist/types/widgets-v2/formula/delta.d.ts +22 -0
  243. package/dist/types/widgets-v2/formula/download.d.ts +20 -0
  244. package/dist/types/widgets-v2/formula/formula-ui.d.ts +20 -0
  245. package/dist/types/widgets-v2/formula/formula.d.ts +8 -0
  246. package/dist/types/widgets-v2/formula/index.d.ts +11 -0
  247. package/dist/types/widgets-v2/formula/note.d.ts +11 -0
  248. package/dist/types/widgets-v2/formula/prefix.d.ts +12 -0
  249. package/dist/types/widgets-v2/formula/series.d.ts +16 -0
  250. package/dist/types/widgets-v2/formula/skeleton.d.ts +4 -0
  251. package/dist/types/widgets-v2/formula/style.d.ts +29 -0
  252. package/dist/types/widgets-v2/formula/suffix.d.ts +12 -0
  253. package/dist/types/widgets-v2/formula/types.d.ts +43 -0
  254. package/dist/types/widgets-v2/formula/value.d.ts +14 -0
  255. package/dist/types/widgets-v2/histogram/download.d.ts +17 -0
  256. package/dist/types/widgets-v2/histogram/download.test.d.ts +1 -0
  257. package/dist/types/widgets-v2/histogram/index.d.ts +5 -0
  258. package/dist/types/widgets-v2/histogram/options.d.ts +42 -0
  259. package/dist/types/widgets-v2/histogram/options.test.d.ts +1 -0
  260. package/dist/types/widgets-v2/histogram/skeleton.d.ts +9 -0
  261. package/dist/types/widgets-v2/histogram/transforms.d.ts +17 -0
  262. package/dist/types/widgets-v2/histogram/transforms.test.d.ts +1 -0
  263. package/dist/types/widgets-v2/histogram/types.d.ts +51 -0
  264. package/dist/types/widgets-v2/index.d.ts +108 -0
  265. package/dist/types/widgets-v2/markdown/download.d.ts +16 -0
  266. package/dist/types/widgets-v2/markdown/download.test.d.ts +1 -0
  267. package/dist/types/widgets-v2/markdown/index.d.ts +6 -0
  268. package/dist/types/widgets-v2/markdown/markdown-content.d.ts +34 -0
  269. package/dist/types/widgets-v2/markdown/markdown-ui.d.ts +12 -0
  270. package/dist/types/widgets-v2/markdown/markdown.d.ts +6 -0
  271. package/dist/types/widgets-v2/markdown/skeleton.d.ts +4 -0
  272. package/dist/types/widgets-v2/markdown/style.d.ts +61 -0
  273. package/dist/types/widgets-v2/markdown/types.d.ts +4 -0
  274. package/dist/types/widgets-v2/note/labels.d.ts +5 -0
  275. package/dist/types/widgets-v2/note/style.d.ts +26 -0
  276. package/dist/types/widgets-v2/note/widget-note.d.ts +46 -0
  277. package/dist/types/widgets-v2/pie/download.d.ts +17 -0
  278. package/dist/types/widgets-v2/pie/download.test.d.ts +1 -0
  279. package/dist/types/widgets-v2/pie/index.d.ts +4 -0
  280. package/dist/types/widgets-v2/pie/options.d.ts +35 -0
  281. package/dist/types/widgets-v2/pie/options.test.d.ts +1 -0
  282. package/dist/types/widgets-v2/pie/skeleton.d.ts +4 -0
  283. package/dist/types/widgets-v2/pie/types.d.ts +57 -0
  284. package/dist/types/widgets-v2/provider/widget-provider.d.ts +32 -0
  285. package/dist/types/widgets-v2/range/index.d.ts +4 -0
  286. package/dist/types/widgets-v2/range/range-ui.d.ts +27 -0
  287. package/dist/types/widgets-v2/range/range.d.ts +24 -0
  288. package/dist/types/widgets-v2/range/skeleton.d.ts +9 -0
  289. package/dist/types/widgets-v2/range/style.d.ts +40 -0
  290. package/dist/types/widgets-v2/range/types.d.ts +37 -0
  291. package/dist/types/widgets-v2/scatterplot/download.d.ts +16 -0
  292. package/dist/types/widgets-v2/scatterplot/download.test.d.ts +1 -0
  293. package/dist/types/widgets-v2/scatterplot/index.d.ts +5 -0
  294. package/dist/types/widgets-v2/scatterplot/options.d.ts +42 -0
  295. package/dist/types/widgets-v2/scatterplot/options.test.d.ts +1 -0
  296. package/dist/types/widgets-v2/scatterplot/skeleton.d.ts +12 -0
  297. package/dist/types/widgets-v2/scatterplot/transforms.d.ts +17 -0
  298. package/dist/types/widgets-v2/scatterplot/transforms.test.d.ts +1 -0
  299. package/dist/types/widgets-v2/scatterplot/types.d.ts +54 -0
  300. package/dist/types/widgets-v2/selection-summary/labels.d.ts +6 -0
  301. package/dist/types/widgets-v2/selection-summary/selection-summary.d.ts +22 -0
  302. package/dist/types/widgets-v2/selection-summary/style.d.ts +23 -0
  303. package/dist/types/widgets-v2/spread/download.d.ts +15 -0
  304. package/dist/types/widgets-v2/spread/download.test.d.ts +1 -0
  305. package/dist/types/widgets-v2/spread/index.d.ts +6 -0
  306. package/dist/types/widgets-v2/spread/separator.d.ts +7 -0
  307. package/dist/types/widgets-v2/spread/skeleton.d.ts +9 -0
  308. package/dist/types/widgets-v2/spread/spread-ui.d.ts +18 -0
  309. package/dist/types/widgets-v2/spread/spread.d.ts +5 -0
  310. package/dist/types/widgets-v2/spread/types.d.ts +25 -0
  311. package/dist/types/widgets-v2/state/labels.d.ts +7 -0
  312. package/dist/types/widgets-v2/state/labels.test.d.ts +1 -0
  313. package/dist/types/widgets-v2/state/style.d.ts +19 -0
  314. package/dist/types/widgets-v2/state/widget-state.d.ts +19 -0
  315. package/dist/types/widgets-v2/stores/index.d.ts +8 -0
  316. package/dist/types/widgets-v2/stores/pipeline-middleware.d.ts +5 -0
  317. package/dist/types/widgets-v2/stores/pipeline-middleware.test.d.ts +1 -0
  318. package/dist/types/widgets-v2/stores/transforms.d.ts +4 -0
  319. package/dist/types/widgets-v2/stores/transforms.test.d.ts +1 -0
  320. package/dist/types/widgets-v2/stores/types.d.ts +55 -0
  321. package/dist/types/widgets-v2/stores/use-echart-instance.d.ts +15 -0
  322. package/dist/types/widgets-v2/stores/use-transform-enabled.d.ts +17 -0
  323. package/dist/types/widgets-v2/stores/use-transform.d.ts +12 -0
  324. package/dist/types/widgets-v2/stores/widget-context.d.ts +2 -0
  325. package/dist/types/widgets-v2/stores/widget-store-registry.d.ts +74 -0
  326. package/dist/types/widgets-v2/stores/widget-store-registry.test.d.ts +1 -0
  327. package/dist/types/widgets-v2/subheader/style.d.ts +10 -0
  328. package/dist/types/widgets-v2/subheader/subheader.d.ts +11 -0
  329. package/dist/types/widgets-v2/table/download.d.ts +18 -0
  330. package/dist/types/widgets-v2/table/download.test.d.ts +1 -0
  331. package/dist/types/widgets-v2/table/helpers.d.ts +32 -0
  332. package/dist/types/widgets-v2/table/helpers.test.d.ts +1 -0
  333. package/dist/types/widgets-v2/table/index.d.ts +7 -0
  334. package/dist/types/widgets-v2/table/labels.d.ts +22 -0
  335. package/dist/types/widgets-v2/table/skeleton.d.ts +22 -0
  336. package/dist/types/widgets-v2/table/style.d.ts +40 -0
  337. package/dist/types/widgets-v2/table/table-ui.d.ts +44 -0
  338. package/dist/types/widgets-v2/table/table.d.ts +50 -0
  339. package/dist/types/widgets-v2/table/types.d.ts +48 -0
  340. package/dist/types/widgets-v2/test-utils.d.ts +52 -0
  341. package/dist/types/widgets-v2/timeseries/download.d.ts +17 -0
  342. package/dist/types/widgets-v2/timeseries/download.test.d.ts +1 -0
  343. package/dist/types/widgets-v2/timeseries/index.d.ts +4 -0
  344. package/dist/types/widgets-v2/timeseries/options.d.ts +39 -0
  345. package/dist/types/widgets-v2/timeseries/options.test.d.ts +1 -0
  346. package/dist/types/widgets-v2/timeseries/skeleton.d.ts +8 -0
  347. package/dist/types/widgets-v2/timeseries/types.d.ts +60 -0
  348. package/dist/types/widgets-v2/toolbox/labels.d.ts +5 -0
  349. package/dist/types/widgets-v2/toolbox/style.d.ts +30 -0
  350. package/dist/types/widgets-v2/toolbox/toolbox.d.ts +49 -0
  351. package/dist/types/widgets-v2/types.d.ts +25 -0
  352. package/dist/types/widgets-v2/utils/data-zoom-layout.d.ts +11 -0
  353. package/dist/types/widgets-v2/utils/index.d.ts +3 -0
  354. package/dist/types/widgets-v2/utils/merge-options.d.ts +12 -0
  355. package/dist/types/widgets-v2/utils/merge-options.test.d.ts +1 -0
  356. package/dist/types/widgets-v2/utils/resolve-theme-color.d.ts +18 -0
  357. package/dist/types/widgets-v2/utils/resolve-theme-color.test.d.ts +1 -0
  358. package/dist/types/widgets-v2/wrapper/index.d.ts +4 -0
  359. package/dist/types/widgets-v2/wrapper/labels.d.ts +6 -0
  360. package/dist/types/widgets-v2/wrapper/style.d.ts +111 -0
  361. package/dist/types/widgets-v2/wrapper/widget-actions.d.ts +22 -0
  362. package/dist/types/widgets-v2/wrapper/widget-content.d.ts +12 -0
  363. package/dist/types/widgets-v2/wrapper/widget-wrapper.d.ts +51 -0
  364. package/dist/use-transform-DXPN3nY7.js +110 -0
  365. package/dist/use-transform-DXPN3nY7.js.map +1 -0
  366. package/dist/use-widget-ref-Ddr_SlJJ.js +22 -0
  367. package/dist/use-widget-ref-Ddr_SlJJ.js.map +1 -0
  368. package/dist/use-widget-selector-DFl2hW0R.js +12 -0
  369. package/dist/use-widget-selector-DFl2hW0R.js.map +1 -0
  370. package/dist/{utils-idmvq0Oa.js → utils-BOhInag6.js} +95 -70
  371. package/dist/utils-BOhInag6.js.map +1 -0
  372. package/dist/widget-context-DTGO0Yta.js +13 -0
  373. package/dist/widget-context-DTGO0Yta.js.map +1 -0
  374. package/dist/widget-store-Bw5zRUGg.js +261 -0
  375. package/dist/widget-store-Bw5zRUGg.js.map +1 -0
  376. package/dist/widget-store-registry-_W4Z4xp-.js +178 -0
  377. package/dist/widget-store-registry-_W4Z4xp-.js.map +1 -0
  378. package/dist/widgets/actions.js +1120 -760
  379. package/dist/widgets/actions.js.map +1 -1
  380. package/dist/widgets/bar.js +87 -97
  381. package/dist/widgets/bar.js.map +1 -1
  382. package/dist/widgets/category.js +247 -236
  383. package/dist/widgets/category.js.map +1 -1
  384. package/dist/widgets/echart.js +100 -99
  385. package/dist/widgets/echart.js.map +1 -1
  386. package/dist/widgets/error.js +37 -2
  387. package/dist/widgets/error.js.map +1 -1
  388. package/dist/widgets/formula.js +78 -67
  389. package/dist/widgets/formula.js.map +1 -1
  390. package/dist/widgets/histogram.js +116 -92
  391. package/dist/widgets/histogram.js.map +1 -1
  392. package/dist/widgets/loader.js +53 -60
  393. package/dist/widgets/loader.js.map +1 -1
  394. package/dist/widgets/markdown.js +55 -53
  395. package/dist/widgets/markdown.js.map +1 -1
  396. package/dist/widgets/no-data.js +58 -2
  397. package/dist/widgets/no-data.js.map +1 -1
  398. package/dist/widgets/note.js +121 -2
  399. package/dist/widgets/note.js.map +1 -1
  400. package/dist/widgets/pie.js +148 -112
  401. package/dist/widgets/pie.js.map +1 -1
  402. package/dist/widgets/range.js +147 -144
  403. package/dist/widgets/range.js.map +1 -1
  404. package/dist/widgets/scatterplot.js +52 -65
  405. package/dist/widgets/scatterplot.js.map +1 -1
  406. package/dist/widgets/selection-summary.js.map +1 -1
  407. package/dist/widgets/skeleton-loader.js +18 -17
  408. package/dist/widgets/skeleton-loader.js.map +1 -1
  409. package/dist/widgets/spread.js +108 -90
  410. package/dist/widgets/spread.js.map +1 -1
  411. package/dist/widgets/stores.js +5 -2
  412. package/dist/widgets/stores.js.map +1 -1
  413. package/dist/widgets/subheader.js +29 -29
  414. package/dist/widgets/subheader.js.map +1 -1
  415. package/dist/widgets/table.js +429 -440
  416. package/dist/widgets/table.js.map +1 -1
  417. package/dist/widgets/timeseries.js +56 -69
  418. package/dist/widgets/timeseries.js.map +1 -1
  419. package/dist/widgets/toolbar-actions.js +50 -50
  420. package/dist/widgets/utils.js +34 -0
  421. package/dist/widgets/utils.js.map +1 -0
  422. package/dist/widgets/wrapper.js +156 -158
  423. package/dist/widgets/wrapper.js.map +1 -1
  424. package/dist/widgets-v2/actions.js +43 -0
  425. package/dist/widgets-v2/actions.js.map +1 -0
  426. package/dist/widgets-v2/bar.js +331 -0
  427. package/dist/widgets-v2/bar.js.map +1 -0
  428. package/dist/widgets-v2/category.js +105 -0
  429. package/dist/widgets-v2/category.js.map +1 -0
  430. package/dist/widgets-v2/echart.js +57 -0
  431. package/dist/widgets-v2/echart.js.map +1 -0
  432. package/dist/widgets-v2/formula.js +75 -0
  433. package/dist/widgets-v2/formula.js.map +1 -0
  434. package/dist/widgets-v2/histogram.js +354 -0
  435. package/dist/widgets-v2/histogram.js.map +1 -0
  436. package/dist/widgets-v2/markdown.js +69 -0
  437. package/dist/widgets-v2/markdown.js.map +1 -0
  438. package/dist/widgets-v2/pie.js +388 -0
  439. package/dist/widgets-v2/pie.js.map +1 -0
  440. package/dist/widgets-v2/range.js +52 -0
  441. package/dist/widgets-v2/range.js.map +1 -0
  442. package/dist/widgets-v2/scatterplot.js +412 -0
  443. package/dist/widgets-v2/scatterplot.js.map +1 -0
  444. package/dist/widgets-v2/spread.js +73 -0
  445. package/dist/widgets-v2/spread.js.map +1 -0
  446. package/dist/widgets-v2/stores.js +42 -0
  447. package/dist/widgets-v2/stores.js.map +1 -0
  448. package/dist/widgets-v2/table.js +79 -0
  449. package/dist/widgets-v2/table.js.map +1 -0
  450. package/dist/widgets-v2/timeseries.js +359 -0
  451. package/dist/widgets-v2/timeseries.js.map +1 -0
  452. package/dist/widgets-v2/utils.js +8 -0
  453. package/dist/widgets-v2/utils.js.map +1 -0
  454. package/dist/widgets-v2.js +954 -0
  455. package/dist/widgets-v2.js.map +1 -0
  456. package/package.json +82 -11
  457. package/src/chat/containers/chat-content.test.tsx +260 -6
  458. package/src/chat/containers/chat-content.tsx +137 -27
  459. package/src/chat/containers/chat-starter.tsx +2 -2
  460. package/src/chat/containers/styles.ts +9 -30
  461. package/src/chat/feedback/chat-tool-code-area.tsx +1 -1
  462. package/src/chat/feedback/chat-tool-group.tsx +1 -1
  463. package/src/chat/feedback/chat-tool-trace.tsx +6 -1
  464. package/src/chat/index.ts +1 -1
  465. package/src/chat/types.ts +36 -4
  466. package/src/components/basemaps/basemaps.tsx +20 -0
  467. package/src/components/geolocation-controls/geolocation-controls.tsx +11 -0
  468. package/src/components/lasso-tool/chip.test.tsx +176 -0
  469. package/src/components/lasso-tool/lasso-tool-inline.test.tsx +171 -0
  470. package/src/components/lasso-tool/lasso-tool-inline.tsx +17 -0
  471. package/src/components/lasso-tool/lasso-tool.test.tsx +198 -0
  472. package/src/components/lasso-tool/lasso-tool.tsx +21 -0
  473. package/src/components/list-data/list-data.test.tsx +73 -0
  474. package/src/components/list-data/list-data.tsx +16 -0
  475. package/src/components/measurement-tools/measurement-tools.tsx +20 -0
  476. package/src/components/no-data-alert/no-data-alert.test.tsx +38 -0
  477. package/src/components/responsive-drawer/responsive-drawer.test.tsx +68 -0
  478. package/src/components/smart-tooltip/smart-tooltip.tsx +17 -0
  479. package/src/components/tooltip/tooltip.tsx +13 -0
  480. package/src/components/zoom-controls/zoom-controls.tsx +16 -0
  481. package/src/hooks/index.ts +0 -1
  482. package/src/hooks/use-widget-ref.ts +10 -10
  483. package/src/widgets/README.md +13 -13
  484. package/src/widgets/actions/brush-toggle/brush-overlay.test.tsx +465 -0
  485. package/src/widgets/actions/brush-toggle/brush-overlay.tsx +408 -0
  486. package/src/widgets/actions/brush-toggle/brush-toggle.test.tsx +208 -0
  487. package/src/widgets/actions/brush-toggle/brush-toggle.tsx +133 -0
  488. package/src/widgets/actions/brush-toggle/hit-test.test.ts +65 -0
  489. package/src/widgets/actions/brush-toggle/hit-test.ts +45 -0
  490. package/src/widgets/actions/brush-toggle/style.ts +46 -0
  491. package/src/widgets/actions/brush-toggle/types.ts +78 -0
  492. package/src/widgets/actions/change-column/change-column-dnd.test.tsx +193 -0
  493. package/src/widgets/actions/change-column/change-column.test.tsx +1 -1
  494. package/src/widgets/actions/change-column/change-column.tsx +15 -15
  495. package/src/widgets/actions/change-column/sortable-column-item.test.tsx +124 -0
  496. package/src/widgets/actions/change-column/sortable-column-item.tsx +3 -1
  497. package/src/widgets/actions/download/download.test.tsx +1 -1
  498. package/src/widgets/actions/download/download.tsx +15 -3
  499. package/src/widgets/actions/download/exports.tsx +15 -0
  500. package/src/widgets/actions/fullscreen/fullscreen.tsx +20 -11
  501. package/src/widgets/actions/index.ts +21 -2
  502. package/src/widgets/actions/lock-selection/lock-selection.test.tsx +14 -0
  503. package/src/widgets/actions/lock-selection/lock-selection.tsx +26 -31
  504. package/src/widgets/actions/lock-selection/types.ts +2 -0
  505. package/src/widgets/actions/relative-data/relative-data.test.tsx +276 -1
  506. package/src/widgets/actions/relative-data/relative-data.tsx +113 -54
  507. package/src/widgets/actions/relative-data/types.ts +2 -0
  508. package/src/widgets/actions/searcher/searcher-toggle.tsx +11 -12
  509. package/src/widgets/actions/searcher/searcher.tsx +39 -42
  510. package/src/widgets/actions/stack-toggle/stack-toggle.test.tsx +4 -4
  511. package/src/widgets/actions/stack-toggle/stack-toggle.tsx +24 -32
  512. package/src/widgets/actions/zoom-toggle/zoom-toggle.test.tsx +322 -0
  513. package/src/widgets/actions/zoom-toggle/zoom-toggle.tsx +62 -80
  514. package/src/widgets/bar/config.ts +39 -34
  515. package/src/widgets/bar/style.ts +1 -1
  516. package/src/widgets/category/category-ui.tsx +41 -34
  517. package/src/widgets/category/components/category-bar.tsx +3 -0
  518. package/src/widgets/category/components/category-legend.tsx +3 -0
  519. package/src/widgets/category/components/category-row-multi.tsx +9 -2
  520. package/src/widgets/category/components/category-row-other.tsx +3 -0
  521. package/src/widgets/category/components/category-row-single.tsx +8 -1
  522. package/src/widgets/category/components/category-rows.test.tsx +213 -0
  523. package/src/widgets/category/config.ts +11 -0
  524. package/src/widgets/category/index.ts +13 -14
  525. package/src/widgets/category/style.ts +1 -0
  526. package/src/widgets/category/types.ts +1 -0
  527. package/src/widgets/echart/echart-ui.test.tsx +20 -16
  528. package/src/widgets/echart/echart-ui.tsx +18 -14
  529. package/src/widgets/echart/echart.tsx +19 -27
  530. package/src/widgets/echart/options.ts +8 -4
  531. package/src/widgets/echart/shared-resize-observer.ts +45 -0
  532. package/src/widgets/echart/types.ts +5 -1
  533. package/src/widgets/echart/utils.test.ts +277 -0
  534. package/src/widgets/echart/utils.ts +94 -21
  535. package/src/widgets/error/error.tsx +17 -9
  536. package/src/widgets/formula/components/item.tsx +3 -0
  537. package/src/widgets/formula/components/prefix.tsx +7 -6
  538. package/src/widgets/formula/components/row.tsx +7 -4
  539. package/src/widgets/formula/components/series.tsx +7 -6
  540. package/src/widgets/formula/components/suffix.tsx +7 -6
  541. package/src/widgets/formula/components/value.tsx +13 -18
  542. package/src/widgets/formula/config.test.ts +37 -0
  543. package/src/widgets/formula/config.ts +11 -0
  544. package/src/widgets/formula/formula-ui.tsx +4 -1
  545. package/src/widgets/histogram/config.ts +99 -24
  546. package/src/widgets/histogram/index.ts +6 -1
  547. package/src/widgets/histogram/style.ts +1 -1
  548. package/src/widgets/histogram/types.ts +9 -3
  549. package/src/widgets/loader/loader.tsx +53 -44
  550. package/src/widgets/loader/utils.ts +26 -3
  551. package/src/widgets/markdown/config.ts +10 -0
  552. package/src/widgets/markdown/markdown-ui.tsx +7 -0
  553. package/src/widgets/markdown/markdown.tsx +7 -7
  554. package/src/widgets/no-data/no-data.test.tsx +90 -40
  555. package/src/widgets/no-data/no-data.tsx +12 -13
  556. package/src/widgets/no-data/types.ts +5 -1
  557. package/src/widgets/note/note.tsx +10 -0
  558. package/src/widgets/pie/config.ts +102 -33
  559. package/src/widgets/pie/style.ts +1 -1
  560. package/src/widgets/range/components/range-item.test.tsx +243 -0
  561. package/src/widgets/range/components/range-item.tsx +25 -20
  562. package/src/widgets/range/config.ts +5 -0
  563. package/src/widgets/range/range-ui.tsx +3 -0
  564. package/src/widgets/scatterplot/config.ts +21 -23
  565. package/src/widgets/scatterplot/style.ts +1 -1
  566. package/src/widgets/selection-summary/selection-summary.tsx +11 -0
  567. package/src/widgets/skeleton-loader/skeleton-loader.tsx +12 -5
  568. package/src/widgets/spread/components/max-value.tsx +18 -18
  569. package/src/widgets/spread/components/min-value.tsx +18 -18
  570. package/src/widgets/spread/components/separator.tsx +3 -0
  571. package/src/widgets/spread/config.ts +11 -0
  572. package/src/widgets/spread/spread-ui.tsx +4 -1
  573. package/src/widgets/stores/index.ts +4 -1
  574. package/src/widgets/stores/types.ts +12 -18
  575. package/src/widgets/stores/use-widget-selector.ts +47 -0
  576. package/src/widgets/stores/widget-store-branches.test.ts +275 -0
  577. package/src/widgets/stores/widget-store-performance.test.ts +750 -0
  578. package/src/widgets/stores/widget-store.test.ts +213 -13
  579. package/src/widgets/stores/widget-store.ts +240 -65
  580. package/src/widgets/subheader/subheader.tsx +22 -3
  581. package/src/widgets/table/config.test.ts +65 -0
  582. package/src/widgets/table/config.ts +8 -4
  583. package/src/widgets/table/hooks/use-pagination.ts +39 -55
  584. package/src/widgets/table/hooks/use-selection.ts +31 -26
  585. package/src/widgets/table/hooks/use-sort.ts +33 -42
  586. package/src/widgets/table/index.ts +6 -4
  587. package/src/widgets/table/table-ui.tsx +1 -1
  588. package/src/widgets/table/types.ts +1 -1
  589. package/src/widgets/timeseries/config.ts +34 -33
  590. package/src/widgets/timeseries/style.ts +1 -1
  591. package/src/widgets/utils/chart-config/download-config.ts +22 -0
  592. package/src/widgets/{_shared → utils}/chart-config/index.ts +6 -0
  593. package/src/widgets/utils/chart-config/option-builders.test.ts +332 -0
  594. package/src/widgets/{_shared → utils}/chart-config/option-builders.ts +79 -13
  595. package/src/widgets/utils/formatter.ts +2 -0
  596. package/src/widgets/utils/index.ts +26 -0
  597. package/src/widgets/wrapper/components/actions.tsx +3 -0
  598. package/src/widgets/wrapper/components/options.tsx +3 -0
  599. package/src/widgets/wrapper/components/title.tsx +3 -0
  600. package/src/widgets/wrapper/wrapper-ui.tsx +26 -13
  601. package/src/widgets/wrapper/wrapper.tsx +18 -6
  602. package/src/widgets-v2/PERFORMANCE.md +189 -0
  603. package/src/widgets-v2/actions/brush-toggle/brush-toggle.test.tsx +180 -0
  604. package/src/widgets-v2/actions/brush-toggle/brush-toggle.tsx +154 -0
  605. package/src/widgets-v2/actions/brush-toggle/index.ts +3 -0
  606. package/src/widgets-v2/actions/brush-toggle/labels.ts +9 -0
  607. package/src/widgets-v2/actions/brush-toggle/style.ts +11 -0
  608. package/src/widgets-v2/actions/brush-toggle/transforms.test.ts +47 -0
  609. package/src/widgets-v2/actions/brush-toggle/transforms.ts +31 -0
  610. package/src/widgets-v2/actions/change-column/change-column-icon.tsx +14 -0
  611. package/src/widgets-v2/actions/change-column/change-column.test.tsx +59 -0
  612. package/src/widgets-v2/actions/change-column/change-column.tsx +180 -0
  613. package/src/widgets-v2/actions/change-column/index.ts +7 -0
  614. package/src/widgets-v2/actions/change-column/labels.ts +9 -0
  615. package/src/widgets-v2/actions/change-column/sortable-column-item.tsx +56 -0
  616. package/src/widgets-v2/actions/change-column/style.ts +32 -0
  617. package/src/widgets-v2/actions/change-column/types.ts +11 -0
  618. package/src/widgets-v2/actions/download/download.test.tsx +327 -0
  619. package/src/widgets-v2/actions/download/download.tsx +144 -0
  620. package/src/widgets-v2/actions/download/exports.test.tsx +198 -0
  621. package/src/widgets-v2/actions/download/exports.ts +115 -0
  622. package/src/widgets-v2/actions/download/icons.tsx +26 -0
  623. package/src/widgets-v2/actions/download/index.ts +13 -0
  624. package/src/widgets-v2/actions/download/labels.ts +16 -0
  625. package/src/widgets-v2/actions/download/png-item.test.tsx +72 -0
  626. package/src/widgets-v2/actions/download/png-item.tsx +52 -0
  627. package/src/widgets-v2/actions/download/style.ts +3 -0
  628. package/src/widgets-v2/actions/download/types.ts +32 -0
  629. package/src/widgets-v2/actions/fullscreen/fullscreen.test.tsx +150 -0
  630. package/src/widgets-v2/actions/fullscreen/fullscreen.tsx +230 -0
  631. package/src/widgets-v2/actions/fullscreen/index.ts +7 -0
  632. package/src/widgets-v2/actions/fullscreen/labels.ts +9 -0
  633. package/src/widgets-v2/actions/fullscreen/style.ts +59 -0
  634. package/src/widgets-v2/actions/fullscreen/types.ts +15 -0
  635. package/src/widgets-v2/actions/index.ts +82 -0
  636. package/src/widgets-v2/actions/lock-selection/index.ts +10 -0
  637. package/src/widgets-v2/actions/lock-selection/labels.ts +11 -0
  638. package/src/widgets-v2/actions/lock-selection/lock-selection.test.tsx +187 -0
  639. package/src/widgets-v2/actions/lock-selection/lock-selection.tsx +130 -0
  640. package/src/widgets-v2/actions/lock-selection/style.ts +11 -0
  641. package/src/widgets-v2/actions/lock-selection/transforms.ts +27 -0
  642. package/src/widgets-v2/actions/relative-data/index.ts +3 -0
  643. package/src/widgets-v2/actions/relative-data/labels.ts +9 -0
  644. package/src/widgets-v2/actions/relative-data/relative-data.test.tsx +71 -0
  645. package/src/widgets-v2/actions/relative-data/relative-data.tsx +107 -0
  646. package/src/widgets-v2/actions/relative-data/style.ts +11 -0
  647. package/src/widgets-v2/actions/relative-data/transforms.test.ts +151 -0
  648. package/src/widgets-v2/actions/relative-data/transforms.ts +70 -0
  649. package/src/widgets-v2/actions/searcher/filter.ts +28 -0
  650. package/src/widgets-v2/actions/searcher/index.ts +8 -0
  651. package/src/widgets-v2/actions/searcher/labels.ts +13 -0
  652. package/src/widgets-v2/actions/searcher/searcher-toggle.tsx +91 -0
  653. package/src/widgets-v2/actions/searcher/searcher.test.tsx +92 -0
  654. package/src/widgets-v2/actions/searcher/searcher.tsx +112 -0
  655. package/src/widgets-v2/actions/searcher/style.ts +15 -0
  656. package/src/widgets-v2/actions/stack-toggle/index.ts +3 -0
  657. package/src/widgets-v2/actions/stack-toggle/labels.ts +9 -0
  658. package/src/widgets-v2/actions/stack-toggle/stack-toggle.test.tsx +61 -0
  659. package/src/widgets-v2/actions/stack-toggle/stack-toggle.tsx +54 -0
  660. package/src/widgets-v2/actions/stack-toggle/style.ts +11 -0
  661. package/src/widgets-v2/actions/stack-toggle/transforms.test.ts +43 -0
  662. package/src/widgets-v2/actions/stack-toggle/transforms.ts +25 -0
  663. package/src/widgets-v2/actions/zoom-toggle/index.ts +9 -0
  664. package/src/widgets-v2/actions/zoom-toggle/labels.ts +9 -0
  665. package/src/widgets-v2/actions/zoom-toggle/style.ts +11 -0
  666. package/src/widgets-v2/actions/zoom-toggle/transforms.test.ts +148 -0
  667. package/src/widgets-v2/actions/zoom-toggle/transforms.ts +171 -0
  668. package/src/widgets-v2/actions/zoom-toggle/zoom-toggle.test.tsx +107 -0
  669. package/src/widgets-v2/actions/zoom-toggle/zoom-toggle.tsx +106 -0
  670. package/src/widgets-v2/bar/download.test.tsx +91 -0
  671. package/src/widgets-v2/bar/download.tsx +66 -0
  672. package/src/widgets-v2/bar/index.ts +10 -0
  673. package/src/widgets-v2/bar/options.test.ts +334 -0
  674. package/src/widgets-v2/bar/options.ts +332 -0
  675. package/src/widgets-v2/bar/skeleton.test.tsx +19 -0
  676. package/src/widgets-v2/bar/skeleton.tsx +69 -0
  677. package/src/widgets-v2/bar/types.ts +51 -0
  678. package/src/widgets-v2/category/category-ui.test.tsx +746 -0
  679. package/src/widgets-v2/category/category-ui.tsx +389 -0
  680. package/src/widgets-v2/category/category.relative-data.test.tsx +107 -0
  681. package/src/widgets-v2/category/category.stack-toggle.test.tsx +85 -0
  682. package/src/widgets-v2/category/category.test.tsx +305 -0
  683. package/src/widgets-v2/category/category.tsx +121 -0
  684. package/src/widgets-v2/category/components/category-bar-stacked.test.tsx +121 -0
  685. package/src/widgets-v2/category/components/category-bar-stacked.tsx +73 -0
  686. package/src/widgets-v2/category/components/category-bar.test.tsx +64 -0
  687. package/src/widgets-v2/category/components/category-bar.tsx +49 -0
  688. package/src/widgets-v2/category/components/category-legend.test.tsx +51 -0
  689. package/src/widgets-v2/category/components/category-legend.tsx +39 -0
  690. package/src/widgets-v2/category/components/category-row-multi.tsx +86 -0
  691. package/src/widgets-v2/category/components/category-row-other.test.tsx +28 -0
  692. package/src/widgets-v2/category/components/category-row-other.tsx +33 -0
  693. package/src/widgets-v2/category/components/category-row-single.tsx +76 -0
  694. package/src/widgets-v2/category/components/category-row-stacked.test.tsx +244 -0
  695. package/src/widgets-v2/category/components/category-row-stacked.tsx +99 -0
  696. package/src/widgets-v2/category/download.test.ts +71 -0
  697. package/src/widgets-v2/category/download.ts +54 -0
  698. package/src/widgets-v2/category/index.ts +32 -0
  699. package/src/widgets-v2/category/skeleton.test.tsx +26 -0
  700. package/src/widgets-v2/category/skeleton.tsx +74 -0
  701. package/src/widgets-v2/category/style.ts +290 -0
  702. package/src/widgets-v2/category/types.ts +59 -0
  703. package/src/widgets-v2/echart/echart-ui.test.tsx +232 -0
  704. package/src/widgets-v2/echart/echart-ui.tsx +184 -0
  705. package/src/widgets-v2/echart/echart.test.tsx +229 -0
  706. package/src/widgets-v2/echart/echart.tsx +199 -0
  707. package/src/widgets-v2/echart/index.ts +22 -0
  708. package/src/widgets-v2/echart/shared-resize-observer.test.ts +91 -0
  709. package/src/widgets-v2/echart/shared-resize-observer.ts +56 -0
  710. package/src/widgets-v2/echart/style.ts +8 -0
  711. package/src/widgets-v2/echart/use-chart-selection.test.tsx +118 -0
  712. package/src/widgets-v2/echart/use-chart-selection.ts +115 -0
  713. package/src/widgets-v2/formula/delta.tsx +61 -0
  714. package/src/widgets-v2/formula/download.test.tsx +65 -0
  715. package/src/widgets-v2/formula/download.tsx +69 -0
  716. package/src/widgets-v2/formula/formula-ui.test.tsx +91 -0
  717. package/src/widgets-v2/formula/formula-ui.tsx +66 -0
  718. package/src/widgets-v2/formula/formula.test.tsx +50 -0
  719. package/src/widgets-v2/formula/formula.tsx +34 -0
  720. package/src/widgets-v2/formula/index.ts +17 -0
  721. package/src/widgets-v2/formula/note.tsx +25 -0
  722. package/src/widgets-v2/formula/prefix.tsx +25 -0
  723. package/src/widgets-v2/formula/series.tsx +67 -0
  724. package/src/widgets-v2/formula/skeleton.test.tsx +21 -0
  725. package/src/widgets-v2/formula/skeleton.tsx +27 -0
  726. package/src/widgets-v2/formula/style.ts +31 -0
  727. package/src/widgets-v2/formula/subcomponents.test.tsx +107 -0
  728. package/src/widgets-v2/formula/suffix.tsx +25 -0
  729. package/src/widgets-v2/formula/types.ts +48 -0
  730. package/src/widgets-v2/formula/value.tsx +31 -0
  731. package/src/widgets-v2/histogram/download.test.ts +94 -0
  732. package/src/widgets-v2/histogram/download.ts +60 -0
  733. package/src/widgets-v2/histogram/index.ts +10 -0
  734. package/src/widgets-v2/histogram/options.test.ts +318 -0
  735. package/src/widgets-v2/histogram/options.ts +338 -0
  736. package/src/widgets-v2/histogram/skeleton.test.tsx +16 -0
  737. package/src/widgets-v2/histogram/skeleton.tsx +70 -0
  738. package/src/widgets-v2/histogram/transforms.test.ts +46 -0
  739. package/src/widgets-v2/histogram/transforms.ts +30 -0
  740. package/src/widgets-v2/histogram/types.ts +55 -0
  741. package/src/widgets-v2/index.ts +204 -0
  742. package/src/widgets-v2/markdown/download.test.ts +66 -0
  743. package/src/widgets-v2/markdown/download.ts +53 -0
  744. package/src/widgets-v2/markdown/index.ts +6 -0
  745. package/src/widgets-v2/markdown/markdown-content.test.tsx +155 -0
  746. package/src/widgets-v2/markdown/markdown-content.tsx +72 -0
  747. package/src/widgets-v2/markdown/markdown-ui.test.tsx +75 -0
  748. package/src/widgets-v2/markdown/markdown-ui.tsx +55 -0
  749. package/src/widgets-v2/markdown/markdown.test.tsx +39 -0
  750. package/src/widgets-v2/markdown/markdown.tsx +17 -0
  751. package/src/widgets-v2/markdown/skeleton.test.tsx +15 -0
  752. package/src/widgets-v2/markdown/skeleton.tsx +32 -0
  753. package/src/widgets-v2/markdown/style.ts +53 -0
  754. package/src/widgets-v2/markdown/types.ts +4 -0
  755. package/src/widgets-v2/note/labels.ts +9 -0
  756. package/src/widgets-v2/note/style.ts +26 -0
  757. package/src/widgets-v2/note/widget-note.test.tsx +158 -0
  758. package/src/widgets-v2/note/widget-note.tsx +172 -0
  759. package/src/widgets-v2/pie/download.test.ts +78 -0
  760. package/src/widgets-v2/pie/download.ts +55 -0
  761. package/src/widgets-v2/pie/index.ts +10 -0
  762. package/src/widgets-v2/pie/options.test.ts +601 -0
  763. package/src/widgets-v2/pie/options.ts +513 -0
  764. package/src/widgets-v2/pie/skeleton.test.tsx +17 -0
  765. package/src/widgets-v2/pie/skeleton.tsx +32 -0
  766. package/src/widgets-v2/pie/types.ts +62 -0
  767. package/src/widgets-v2/provider/widget-provider.test.tsx +119 -0
  768. package/src/widgets-v2/provider/widget-provider.tsx +111 -0
  769. package/src/widgets-v2/range/index.ts +4 -0
  770. package/src/widgets-v2/range/range-ui.test.tsx +136 -0
  771. package/src/widgets-v2/range/range-ui.tsx +278 -0
  772. package/src/widgets-v2/range/range.test.tsx +68 -0
  773. package/src/widgets-v2/range/range.tsx +52 -0
  774. package/src/widgets-v2/range/skeleton.test.tsx +17 -0
  775. package/src/widgets-v2/range/skeleton.tsx +47 -0
  776. package/src/widgets-v2/range/style.ts +41 -0
  777. package/src/widgets-v2/range/types.ts +37 -0
  778. package/src/widgets-v2/scatterplot/download.test.ts +71 -0
  779. package/src/widgets-v2/scatterplot/download.ts +54 -0
  780. package/src/widgets-v2/scatterplot/index.ts +11 -0
  781. package/src/widgets-v2/scatterplot/options.test.ts +411 -0
  782. package/src/widgets-v2/scatterplot/options.ts +425 -0
  783. package/src/widgets-v2/scatterplot/skeleton.test.tsx +17 -0
  784. package/src/widgets-v2/scatterplot/skeleton.tsx +84 -0
  785. package/src/widgets-v2/scatterplot/transforms.test.ts +97 -0
  786. package/src/widgets-v2/scatterplot/transforms.ts +38 -0
  787. package/src/widgets-v2/scatterplot/types.ts +59 -0
  788. package/src/widgets-v2/selection-summary/labels.ts +11 -0
  789. package/src/widgets-v2/selection-summary/selection-summary.test.tsx +53 -0
  790. package/src/widgets-v2/selection-summary/selection-summary.tsx +62 -0
  791. package/src/widgets-v2/selection-summary/style.ts +23 -0
  792. package/src/widgets-v2/spread/download.test.ts +64 -0
  793. package/src/widgets-v2/spread/download.ts +59 -0
  794. package/src/widgets-v2/spread/index.ts +6 -0
  795. package/src/widgets-v2/spread/separator.tsx +11 -0
  796. package/src/widgets-v2/spread/skeleton.test.tsx +17 -0
  797. package/src/widgets-v2/spread/skeleton.tsx +38 -0
  798. package/src/widgets-v2/spread/spread-ui.test.tsx +108 -0
  799. package/src/widgets-v2/spread/spread-ui.tsx +52 -0
  800. package/src/widgets-v2/spread/spread.test.tsx +50 -0
  801. package/src/widgets-v2/spread/spread.tsx +31 -0
  802. package/src/widgets-v2/spread/types.ts +27 -0
  803. package/src/widgets-v2/state/labels.test.ts +33 -0
  804. package/src/widgets-v2/state/labels.ts +20 -0
  805. package/src/widgets-v2/state/style.ts +25 -0
  806. package/src/widgets-v2/state/widget-state.test.tsx +294 -0
  807. package/src/widgets-v2/state/widget-state.tsx +184 -0
  808. package/src/widgets-v2/stores/index.ts +49 -0
  809. package/src/widgets-v2/stores/pipeline-middleware.test.ts +187 -0
  810. package/src/widgets-v2/stores/pipeline-middleware.ts +91 -0
  811. package/src/widgets-v2/stores/transforms.test.ts +162 -0
  812. package/src/widgets-v2/stores/transforms.ts +70 -0
  813. package/src/widgets-v2/stores/types.ts +64 -0
  814. package/src/widgets-v2/stores/use-echart-instance.test.tsx +91 -0
  815. package/src/widgets-v2/stores/use-echart-instance.ts +29 -0
  816. package/src/widgets-v2/stores/use-transform-enabled.test.tsx +127 -0
  817. package/src/widgets-v2/stores/use-transform-enabled.ts +25 -0
  818. package/src/widgets-v2/stores/use-transform.test.tsx +262 -0
  819. package/src/widgets-v2/stores/use-transform.ts +158 -0
  820. package/src/widgets-v2/stores/widget-context.test.tsx +58 -0
  821. package/src/widgets-v2/stores/widget-context.ts +15 -0
  822. package/src/widgets-v2/stores/widget-store-registry.test.ts +292 -0
  823. package/src/widgets-v2/stores/widget-store-registry.ts +248 -0
  824. package/src/widgets-v2/subheader/style.ts +12 -0
  825. package/src/widgets-v2/subheader/subheader.test.tsx +30 -0
  826. package/src/widgets-v2/subheader/subheader.tsx +16 -0
  827. package/src/widgets-v2/table/download.test.ts +75 -0
  828. package/src/widgets-v2/table/download.ts +47 -0
  829. package/src/widgets-v2/table/helpers.test.ts +214 -0
  830. package/src/widgets-v2/table/helpers.ts +136 -0
  831. package/src/widgets-v2/table/index.ts +23 -0
  832. package/src/widgets-v2/table/labels.tsx +41 -0
  833. package/src/widgets-v2/table/skeleton.test.tsx +26 -0
  834. package/src/widgets-v2/table/skeleton.tsx +65 -0
  835. package/src/widgets-v2/table/style.ts +43 -0
  836. package/src/widgets-v2/table/table-ui.test.tsx +200 -0
  837. package/src/widgets-v2/table/table-ui.tsx +364 -0
  838. package/src/widgets-v2/table/table.test.tsx +119 -0
  839. package/src/widgets-v2/table/table.tsx +179 -0
  840. package/src/widgets-v2/table/types.ts +55 -0
  841. package/src/widgets-v2/test-utils.ts +107 -0
  842. package/src/widgets-v2/timeseries/download.test.ts +95 -0
  843. package/src/widgets-v2/timeseries/download.ts +86 -0
  844. package/src/widgets-v2/timeseries/index.ts +10 -0
  845. package/src/widgets-v2/timeseries/options.test.ts +394 -0
  846. package/src/widgets-v2/timeseries/options.ts +348 -0
  847. package/src/widgets-v2/timeseries/skeleton.test.tsx +13 -0
  848. package/src/widgets-v2/timeseries/skeleton.tsx +76 -0
  849. package/src/widgets-v2/timeseries/types.ts +65 -0
  850. package/src/widgets-v2/toolbox/labels.ts +9 -0
  851. package/src/widgets-v2/toolbox/style.ts +33 -0
  852. package/src/widgets-v2/toolbox/toolbox.test.tsx +200 -0
  853. package/src/widgets-v2/toolbox/toolbox.tsx +309 -0
  854. package/src/widgets-v2/types.ts +25 -0
  855. package/src/widgets-v2/utils/data-zoom-layout.ts +26 -0
  856. package/src/widgets-v2/utils/index.ts +3 -0
  857. package/src/widgets-v2/utils/merge-options.test.ts +52 -0
  858. package/src/widgets-v2/utils/merge-options.ts +50 -0
  859. package/src/widgets-v2/utils/resolve-theme-color.test.ts +43 -0
  860. package/src/widgets-v2/utils/resolve-theme-color.ts +34 -0
  861. package/src/widgets-v2/wrapper/index.ts +14 -0
  862. package/src/widgets-v2/wrapper/labels.ts +11 -0
  863. package/src/widgets-v2/wrapper/style.ts +134 -0
  864. package/src/widgets-v2/wrapper/widget-actions.test.tsx +52 -0
  865. package/src/widgets-v2/wrapper/widget-actions.tsx +43 -0
  866. package/src/widgets-v2/wrapper/widget-content.test.tsx +27 -0
  867. package/src/widgets-v2/wrapper/widget-content.tsx +29 -0
  868. package/src/widgets-v2/wrapper/widget-wrapper.test.tsx +159 -0
  869. package/src/widgets-v2/wrapper/widget-wrapper.tsx +178 -0
  870. package/dist/error-CEkRPccv.js +0 -39
  871. package/dist/error-CEkRPccv.js.map +0 -1
  872. package/dist/index-BnyeR7Qx.js +0 -6601
  873. package/dist/index-BnyeR7Qx.js.map +0 -1
  874. package/dist/no-data-hR3KcJ-_.js +0 -60
  875. package/dist/no-data-hR3KcJ-_.js.map +0 -1
  876. package/dist/note-t51drNe0.js +0 -124
  877. package/dist/note-t51drNe0.js.map +0 -1
  878. package/dist/options-D9wflre6.js +0 -49
  879. package/dist/options-D9wflre6.js.map +0 -1
  880. package/dist/row-DTCV0Ocm.js +0 -35
  881. package/dist/row-DTCV0Ocm.js.map +0 -1
  882. package/dist/series-CYNOu2Ju.js +0 -91
  883. package/dist/series-CYNOu2Ju.js.map +0 -1
  884. package/dist/styles-CAroD5Rc.js +0 -123
  885. package/dist/styles-CAroD5Rc.js.map +0 -1
  886. package/dist/types/hooks/use-debounce.d.ts +0 -19
  887. package/dist/types/widgets/category/components/index.d.ts +0 -10
  888. package/dist/types/widgets/index.d.ts +0 -9
  889. package/dist/types/widgets/table/hooks/index.d.ts +0 -6
  890. package/dist/use-widget-ref-P-2i0MJG.js +0 -19
  891. package/dist/use-widget-ref-P-2i0MJG.js.map +0 -1
  892. package/dist/utils-idmvq0Oa.js.map +0 -1
  893. package/dist/widget-store-CzDt8oSK.js +0 -163
  894. package/dist/widget-store-CzDt8oSK.js.map +0 -1
  895. package/dist/widgets.js +0 -13
  896. package/dist/widgets.js.map +0 -1
  897. package/src/hooks/use-debounce.ts +0 -55
  898. package/src/widgets/_shared/chart-config/option-builders.test.ts +0 -40
  899. package/src/widgets/category/components/index.ts +0 -14
  900. package/src/widgets/index.ts +0 -25
  901. package/src/widgets/table/hooks/index.ts +0 -7
  902. /package/dist/types/widgets/{_shared → utils}/chart-config/config-factory.d.ts +0 -0
  903. /package/dist/types/widgets/{_shared → utils}/chart-config/csv-modifiers.d.ts +0 -0
  904. /package/dist/types/widgets/{_shared → utils}/skeleton/index.d.ts +0 -0
  905. /package/dist/types/widgets/{_shared → utils}/skeleton/styles.d.ts +0 -0
  906. /package/dist/types/{widgets/_shared/chart-config/option-builders.test.d.ts → widgets-v2/actions/brush-toggle/transforms.test.d.ts} +0 -0
  907. /package/src/widgets/{_shared → utils}/chart-config/config-factory.ts +0 -0
  908. /package/src/widgets/{_shared → utils}/chart-config/csv-modifiers.ts +0 -0
  909. /package/src/widgets/{_shared → utils}/skeleton/index.ts +0 -0
  910. /package/src/widgets/{_shared → utils}/skeleton/styles.ts +0 -0
@@ -0,0 +1,56 @@
1
+ import { ComponentType } from 'react';
2
+ import { SvgIconProps } from '@mui/material';
3
+ import { BrushToggleLabels } from './labels';
4
+ export interface BrushToggleProps {
5
+ initialEnabled?: boolean;
6
+ /**
7
+ * ECharts brush type. `'lineX'` (default) selects a range on the
8
+ * x-axis — appropriate for bar / histogram / timeseries. `'rect'`
9
+ * selects a 2-D rectangle — use for scatterplot. Other ECharts
10
+ * brush types (`'lineY'`, `'polygon'`) are also accepted.
11
+ */
12
+ brushType?: 'lineX' | 'lineY' | 'rect' | 'polygon';
13
+ /**
14
+ * `'multiple'` (default) lets the user draw additional brushes on
15
+ * top of existing ones. `'single'` replaces the previous brush on
16
+ * each new draw.
17
+ */
18
+ brushMode?: 'multiple' | 'single';
19
+ /**
20
+ * Optional view of the consumer-owned selection. When provided and
21
+ * the array is empty (`[]`), any brush rectangles currently drawn on
22
+ * the chart are wiped — keeps the UI in sync when the parent clears
23
+ * the selection externally (e.g. via `Widget.SelectionSummary`'s
24
+ * `onClear`). Pass the same array that drives `useChartSelection` /
25
+ * the option factory's `selection` input.
26
+ *
27
+ * Leave `undefined` to opt out — the sync effect becomes a no-op.
28
+ */
29
+ selection?: readonly unknown[] | null;
30
+ labels?: Partial<BrushToggleLabels>;
31
+ icon?: ComponentType<SvgIconProps>;
32
+ iconProps?: SvgIconProps;
33
+ }
34
+ /**
35
+ * Toggle ECharts' brush selection mode. Two-part wiring:
36
+ *
37
+ * 1. The config transform (`addBrush`) installs the `brush`
38
+ * component on the option so brushed items get the
39
+ * `outOfBrush` dim treatment.
40
+ * 2. ECharts only enters "brush cursor" mode when something
41
+ * dispatches `takeGlobalCursor({ key: 'brush', ... })`. This
42
+ * component drives that dispatch via {@link useEchartInstance},
43
+ * reacting when the chart instance becomes available (the
44
+ * `BrushToggle` mounts before `Widget.Echart` in tree order, so
45
+ * on first mount the chart isn't ready yet).
46
+ *
47
+ * 3. ECharts clears the global cursor on every `setOption`, so we
48
+ * re-dispatch on each `'finished'` event — required for
49
+ * `brushMode: 'multiple'` to keep working across selection-driven
50
+ * re-renders, RelativeData toggles, etc.
51
+ *
52
+ * Selection events (`brushSelected` / `brushEnd`) flow through the
53
+ * existing `useChartSelection` wiring at the consumer level — no extra
54
+ * plumbing here.
55
+ */
56
+ export declare function BrushToggle({ initialEnabled, brushType, brushMode, selection, labels, icon: Icon, iconProps, }: BrushToggleProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export { BrushToggle, type BrushToggleProps } from './brush-toggle';
2
+ export { addBrush } from './transforms';
3
+ export { DEFAULT_BRUSH_TOGGLE_LABELS, type BrushToggleLabels } from './labels';
@@ -0,0 +1,5 @@
1
+ export interface BrushToggleLabels {
2
+ on: string;
3
+ off: string;
4
+ }
5
+ export declare const DEFAULT_BRUSH_TOGGLE_LABELS: BrushToggleLabels;
@@ -0,0 +1,12 @@
1
+ import { Theme } from '@mui/material';
2
+ export declare const styles: {
3
+ toggle: {
4
+ p: number;
5
+ '& .MuiSvgIcon-root': {
6
+ fontSize: number;
7
+ };
8
+ };
9
+ toggleActive: {
10
+ background: (theme: Theme) => string;
11
+ };
12
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Brush config transform: enables ECharts' brush component on the option
3
+ * object. Module-level constant — identity stable across renders.
4
+ *
5
+ * Pairs with `replaceMergeKeys: ['brush']` so the pipeline replaces (not
6
+ * merges) the brush config on every config-pipeline run. v1 needed a
7
+ * mousemove re-dispatch hack to keep the brush state across data updates;
8
+ * v2 keeps brush state continuous via `notMerge: false` + dynamic
9
+ * replaceMerge in the EchartUI layer (D6) — no hack required.
10
+ */
11
+ export declare const addBrush: (option: unknown) => unknown;
@@ -0,0 +1,2 @@
1
+ import { SvgIconProps } from '@mui/material';
2
+ export declare function ChangeColumnIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,29 @@
1
+ import { ComponentType, ReactNode } from 'react';
2
+ import { SvgIconProps } from '@mui/material';
3
+ import { ChangeColumnLabels } from './labels';
4
+ export interface ChangeColumnItem {
5
+ id: string;
6
+ label: ReactNode;
7
+ }
8
+ export interface ChangeColumnProps {
9
+ /**
10
+ * Master list of columns (id + label) in their default order. The current
11
+ * effective order is derived by combining this list with the widget's
12
+ * `columnOrder` extension state.
13
+ */
14
+ columns: readonly ChangeColumnItem[];
15
+ labels?: Partial<ChangeColumnLabels>;
16
+ icon?: ComponentType<SvgIconProps>;
17
+ iconProps?: SvgIconProps;
18
+ dragHandleIcon?: ComponentType<SvgIconProps>;
19
+ }
20
+ /**
21
+ * Action that lets users reorder columns via drag-and-drop. The new order is
22
+ * persisted on the widget store as `columnOrder` (an array of ids) on the
23
+ * {@link ChangeColumnWidgetState} extension. `<Table>` (and other column-aware
24
+ * bridges) merge that order with their own `columns` prop via
25
+ * `resolveColumns()` from the table primitives.
26
+ *
27
+ * Returns `null` when there are fewer than two columns to reorder.
28
+ */
29
+ export declare function ChangeColumn({ columns, labels, icon: Icon, iconProps, dragHandleIcon, }: ChangeColumnProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ export { ChangeColumn, type ChangeColumnProps, type ChangeColumnItem, } from './change-column';
2
+ export { DEFAULT_CHANGE_COLUMN_LABELS, type ChangeColumnLabels } from './labels';
3
+ export type { ChangeColumnWidgetState } from './types';
@@ -0,0 +1,5 @@
1
+ export interface ChangeColumnLabels {
2
+ trigger: string;
3
+ reset: string;
4
+ }
5
+ export declare const DEFAULT_CHANGE_COLUMN_LABELS: ChangeColumnLabels;
@@ -0,0 +1,14 @@
1
+ import { ComponentType, ReactNode } from 'react';
2
+ import { SvgIconProps } from '@mui/material';
3
+ export interface SortableColumnItemProps {
4
+ id: string;
5
+ label: ReactNode;
6
+ dragHandleIcon?: ComponentType<SvgIconProps>;
7
+ }
8
+ /**
9
+ * Draggable menu item used inside ChangeColumn's `<DndContext>`. Wraps a
10
+ * MUI `<MenuItem>` so it inherits keyboard / theming behavior, and exposes
11
+ * the dnd-kit listeners on the whole row so the user can grab anywhere on
12
+ * the row to reorder.
13
+ */
14
+ export declare function SortableColumnItem({ id, label, dragHandleIcon: HandleIcon, }: SortableColumnItemProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,33 @@
1
+ import { Theme } from '@mui/material';
2
+ export declare const styles: {
3
+ toggle: {
4
+ p: number;
5
+ '& .MuiSvgIcon-root': {
6
+ fontSize: number;
7
+ };
8
+ };
9
+ toggleActive: {
10
+ background: (theme: Theme) => string;
11
+ };
12
+ menuPaper: {
13
+ overflow: "hidden";
14
+ minWidth: number;
15
+ };
16
+ item: {
17
+ cursor: "grab";
18
+ '&:focus-visible': {
19
+ outline: string;
20
+ outlineColor: "primary.main";
21
+ outlineOffset: number;
22
+ };
23
+ };
24
+ itemDragging: {
25
+ opacity: number;
26
+ cursor: "grabbing";
27
+ };
28
+ dragHandle: {
29
+ color: "text.secondary";
30
+ mr: number;
31
+ fontSize: number;
32
+ };
33
+ };
@@ -0,0 +1,10 @@
1
+ import { WidgetState } from '../../stores';
2
+ /**
3
+ * State extension owned by the ChangeColumn action. Stored on the per-widget
4
+ * Zustand store; read by `<Table>` (and any other column-aware bridge) to
5
+ * resolve the effective column order.
6
+ */
7
+ export interface ChangeColumnWidgetState extends WidgetState {
8
+ /** Ordered list of column ids. Empty / unset means "use props order". */
9
+ columnOrder?: readonly string[];
10
+ }
@@ -0,0 +1,18 @@
1
+ import { ComponentType } from 'react';
2
+ import { SvgIconProps } from '@mui/material';
3
+ import { DownloadItem } from './types';
4
+ import { DownloadLabels } from './labels';
5
+ export interface DownloadProps {
6
+ items: readonly DownloadItem[];
7
+ labels?: Partial<DownloadLabels>;
8
+ icon?: ComponentType<SvgIconProps>;
9
+ iconProps?: SvgIconProps;
10
+ /**
11
+ * Fires when an item's `resolve()` rejects (or any step in the click-through
12
+ * path throws). The error is normalised to a real `Error` first. Surface
13
+ * to your telemetry / toast layer here; the trigger already shows a visual
14
+ * error indicator independently.
15
+ */
16
+ onError?: (err: Error) => void;
17
+ }
18
+ export declare function Download({ items, labels, icon: Icon, iconProps, onError, }: DownloadProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Pure download helpers — no React, no DOM lifecycle outside the link click.
3
+ * Component layer in {@link ./download.tsx} orchestrates these.
4
+ */
5
+ export interface DownloadHandle {
6
+ url: string;
7
+ revoke: () => void;
8
+ }
9
+ export declare function toCsvString(rows: readonly (readonly unknown[])[]): string;
10
+ export declare function downloadToCSV(rows: readonly (readonly unknown[])[]): DownloadHandle;
11
+ export declare function sanitizeFilename(name: string): string;
12
+ /**
13
+ * Triggers a browser download for the given URL by synthesizing an anchor,
14
+ * clicking it, and removing it. Pure DOM — no React. The filename is run
15
+ * through {@link sanitizeFilename} before being assigned to `a.download`.
16
+ */
17
+ export declare function triggerLinkDownload(args: {
18
+ url: string;
19
+ filename: string;
20
+ }): void;
21
+ export interface DownloadDOMToPNGOptions {
22
+ element: HTMLElement;
23
+ /** html2canvas `scale`. Default 2 — crisp on hi-DPI displays. */
24
+ pixelRatio?: number;
25
+ /**
26
+ * html2canvas `backgroundColor`. Default `null` (transparent) so the PNG
27
+ * inherits whatever surface it lands on when the user pastes it.
28
+ */
29
+ backgroundColor?: string | null;
30
+ }
31
+ /**
32
+ * Rasterise an HTMLElement to PNG via `html2canvas` and wrap the result in
33
+ * a `DownloadHandle`. The caller is responsible for calling `handle.revoke`
34
+ * after the link click is dispatched. Used by per-widget download configs
35
+ * to power the PNG menu item.
36
+ */
37
+ export declare function downloadDOMToPNG(opts: DownloadDOMToPNGOptions): Promise<DownloadHandle>;
@@ -0,0 +1,12 @@
1
+ import { SvgIconProps } from '@mui/material';
2
+ /**
3
+ * Generic "image" glyph used for the PNG download item. Wraps MUI's
4
+ * `ImageOutlined` so callers can swap it via the per-widget download
5
+ * config's `icon` override without pulling MUI directly.
6
+ */
7
+ export declare function PNGIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
8
+ /**
9
+ * "CSV" rectangle with the letters spelled inside — matches v1 visual and is
10
+ * easier to recognise in a download menu than a generic table glyph.
11
+ */
12
+ export declare function CSVIcon(props: SvgIconProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ export { Download, type DownloadProps } from './download';
2
+ export { downloadToCSV, downloadDOMToPNG, toCsvString, triggerLinkDownload, type DownloadHandle, type DownloadDOMToPNGOptions, } from './exports';
3
+ export { CSVIcon, PNGIcon } from './icons';
4
+ export { buildPngDownloadItem, type BuildPngDownloadItemArgs } from './png-item';
5
+ export type { DownloadItem } from './types';
6
+ export { DEFAULT_DOWNLOAD_LABELS, type DownloadLabels } from './labels';
@@ -0,0 +1,11 @@
1
+ export interface DownloadLabels {
2
+ trigger: string;
3
+ /** Tooltip / aria-label shown on the trigger while a download is in flight. */
4
+ loading: string;
5
+ /**
6
+ * Tooltip / aria-label shown on the trigger after a download failed. Cleared
7
+ * the next time the menu opens.
8
+ */
9
+ error: string;
10
+ }
11
+ export declare const DEFAULT_DOWNLOAD_LABELS: DownloadLabels;
@@ -0,0 +1,24 @@
1
+ import { DownloadItem } from './types';
2
+ export interface BuildPngDownloadItemArgs {
3
+ /** Base filename (without extension). The item appends `.png`. */
4
+ filename: string;
5
+ /**
6
+ * Reads the capture element to rasterise. Called at click time so the
7
+ * download config doesn't capture a stale reference. Wire it to
8
+ * `() => getCaptureEl(id)` from `widgets-v2/stores`.
9
+ */
10
+ getCaptureEl: () => HTMLElement | null;
11
+ /** html2canvas `scale`. Default 2. */
12
+ pixelRatio?: number;
13
+ /** html2canvas `backgroundColor`. Default transparent (`null`). */
14
+ backgroundColor?: string | null;
15
+ /** Override the menu label. Default `'PNG'`. */
16
+ label?: string;
17
+ }
18
+ /**
19
+ * Builds the standard PNG `DownloadItem` used by every per-widget download
20
+ * config. Centralised so the menu label, icon, error message, and filename
21
+ * suffix stay consistent across widgets without each `create*DownloadConfig`
22
+ * re-deriving the same shape.
23
+ */
24
+ export declare function buildPngDownloadItem(args: BuildPngDownloadItemArgs): DownloadItem;
@@ -0,0 +1 @@
1
+ export declare const styles: {};
@@ -0,0 +1,35 @@
1
+ import { ReactElement } from 'react';
2
+ export interface DownloadItem {
3
+ /** Unique key (also used as menu label key). */
4
+ id: string;
5
+ /** Display label in the menu. */
6
+ label: string;
7
+ /**
8
+ * Optional leading icon shown next to the label. Pass a rendered element
9
+ * (e.g. `<DownloadIcon fontSize='small' />`) so consumers can fully
10
+ * control sizing / colour. Rendered inside an MUI `<ListItemIcon>`.
11
+ */
12
+ icon?: ReactElement;
13
+ /**
14
+ * When `true`, the menu item is rendered but non-clickable (greyed out).
15
+ * Useful for items whose underlying export is unavailable in the current
16
+ * widget state (no rows, missing permission, etc.).
17
+ */
18
+ disabled?: boolean;
19
+ /**
20
+ * Override for the resolved filename. When set, `resolve()`'s `filename`
21
+ * is ignored and this value is used instead — handy when the consumer
22
+ * wants to template the filename with widget metadata without having to
23
+ * close over it inside `resolve()`.
24
+ */
25
+ filename?: string;
26
+ /**
27
+ * Resolves to a Blob URL the trigger will click. Optional `revoke` is
28
+ * called after the click is dispatched.
29
+ */
30
+ resolve: () => Promise<{
31
+ url: string;
32
+ filename: string;
33
+ revoke?: () => void;
34
+ }>;
35
+ }
@@ -0,0 +1,59 @@
1
+ import { ComponentType, ReactNode } from 'react';
2
+ import { SvgIconProps } from '@mui/material';
3
+ import { FullScreenLabels } from './labels';
4
+ export interface FullScreenTriggerProps {
5
+ labels?: Partial<FullScreenLabels>;
6
+ enterIcon?: ComponentType<SvgIconProps>;
7
+ exitIcon?: ComponentType<SvgIconProps>;
8
+ iconProps?: SvgIconProps;
9
+ }
10
+ export interface FullScreenSlotProps {
11
+ /**
12
+ * Render-prop body. Receives the live `isFullScreen` flag so the consumer
13
+ * can branch per-mode props (e.g., `Widget.Toolbox visibleCount`) without
14
+ * duplicating the JSX.
15
+ */
16
+ children: (isFullScreen: boolean) => ReactNode;
17
+ /** Header text rendered above the body when the modal is open. */
18
+ title?: ReactNode;
19
+ labels?: Partial<FullScreenLabels>;
20
+ closeIcon?: ComponentType<SvgIconProps>;
21
+ iconProps?: SvgIconProps;
22
+ }
23
+ /**
24
+ * Toggle button placed inside `<Widget.Actions>`. Reads / writes
25
+ * {@link FullScreenWidgetState.isFullScreen} on the per-widget store. The
26
+ * matching modal is rendered by {@link FullScreenSlot} (typically inside
27
+ * `<Widget.Content>`).
28
+ */
29
+ declare function FullScreenTrigger({ labels, enterIcon: EnterIcon, exitIcon: ExitIcon, iconProps, }: FullScreenTriggerProps): import("react/jsx-runtime").JSX.Element;
30
+ /**
31
+ * Body wrapper. Renders its render-prop children once, via a single
32
+ * `createPortal` call whose container is a stable `<div>` we hold as a ref.
33
+ * That div is moved imperatively between an inline placeholder and the
34
+ * `<DialogContent>` of an MUI `<Dialog keepMounted>`. Because both the
35
+ * React parent (the portal call site) AND the portal container are
36
+ * identical across the toggle, the subtree keeps its fiber identity and
37
+ * ECharts (or any other heavy child) stays mounted while only its DOM
38
+ * parent changes.
39
+ */
40
+ declare function FullScreenSlot({ children, title, labels, closeIcon: CloseSvg, iconProps, }: FullScreenSlotProps): import("react/jsx-runtime").JSX.Element;
41
+ /**
42
+ * Namespace export. Consumers compose with:
43
+ *
44
+ * ```tsx
45
+ * <Widget.Actions>
46
+ * <Widget.FullScreen.Trigger />
47
+ * </Widget.Actions>
48
+ * <Widget.Content>
49
+ * <Widget.FullScreen.Slot title={title}>
50
+ * {(isFullScreen) => <Body visibleCount={isFullScreen ? undefined : 2} />}
51
+ * </Widget.FullScreen.Slot>
52
+ * </Widget.Content>
53
+ * ```
54
+ */
55
+ export declare const FullScreen: {
56
+ Trigger: typeof FullScreenTrigger;
57
+ Slot: typeof FullScreenSlot;
58
+ };
59
+ export {};
@@ -0,0 +1,3 @@
1
+ export { FullScreen, type FullScreenTriggerProps, type FullScreenSlotProps, } from './fullscreen';
2
+ export { DEFAULT_FULLSCREEN_LABELS, type FullScreenLabels } from './labels';
3
+ export type { FullScreenWidgetState } from './types';
@@ -0,0 +1,5 @@
1
+ export interface FullScreenLabels {
2
+ open: string;
3
+ close: string;
4
+ }
5
+ export declare const DEFAULT_FULLSCREEN_LABELS: FullScreenLabels;
@@ -0,0 +1,48 @@
1
+ import { Theme } from '@mui/material';
2
+ export declare const styles: {
3
+ inlineSlot: {
4
+ display: "flex";
5
+ flexDirection: "column";
6
+ flex: number;
7
+ minHeight: number;
8
+ gap: number;
9
+ };
10
+ trigger: {
11
+ p: number;
12
+ '& .MuiSvgIcon-root': {
13
+ fontSize: number;
14
+ };
15
+ };
16
+ triggerActive: {
17
+ background: (theme: Theme) => string;
18
+ };
19
+ dialogPaper: {
20
+ width: string;
21
+ height: string;
22
+ maxWidth: string;
23
+ maxHeight: string;
24
+ };
25
+ dialogTitle: {
26
+ display: "flex";
27
+ alignItems: "center";
28
+ justifyContent: "space-between";
29
+ gap: number;
30
+ py: number;
31
+ pr: number;
32
+ pb: number;
33
+ };
34
+ titleText: {
35
+ minWidth: number;
36
+ overflow: "hidden";
37
+ textOverflow: "ellipsis";
38
+ whiteSpace: "nowrap";
39
+ };
40
+ dialogContent: {
41
+ display: "flex";
42
+ flexDirection: "column";
43
+ gap: number;
44
+ py: number;
45
+ px: number;
46
+ overflow: "auto";
47
+ };
48
+ };
@@ -0,0 +1,14 @@
1
+ import { WidgetState } from '../../stores';
2
+ /**
3
+ * State extension owned by FullScreen. The base `WidgetState` deliberately
4
+ * stays free of widget-specific UI flags (R12 from the round-5 amendment);
5
+ * actions that need persistent UI state declare it here and read it via the
6
+ * generic `useWidget<T, S>(id, sel)` form.
7
+ *
8
+ * `isFullScreen` survives `keepAlive` remounts because it lives on the same
9
+ * store the rest of `WidgetState` does — a kept-alive widget that was
10
+ * fullscreen reopens fullscreen automatically.
11
+ */
12
+ export interface FullScreenWidgetState extends WidgetState {
13
+ isFullScreen: boolean;
14
+ }
@@ -0,0 +1,9 @@
1
+ export { Searcher, SearcherToggle, setSearcherText, filterBySearchText, DEFAULT_SEARCHER_LABELS, type SearcherProps, type SearcherToggleProps, type SearcherLabels, } from './searcher';
2
+ export { StackToggle, addStack, DEFAULT_STACK_TOGGLE_LABELS, type StackToggleProps, type StackToggleLabels, } from './stack-toggle';
3
+ export { ZoomToggle, addZoom, createAddZoom, ZOOM_LAYOUT, DEFAULT_ZOOM_TOGGLE_LABELS, type ZoomToggleProps, type ZoomToggleLabels, } from './zoom-toggle';
4
+ export { BrushToggle, addBrush, DEFAULT_BRUSH_TOGGLE_LABELS, type BrushToggleProps, type BrushToggleLabels, } from './brush-toggle';
5
+ export { RelativeData, toRelativeData, createPercentFormatter, DEFAULT_RELATIVE_DATA_LABELS, type RelativeDataProps, type RelativeDataLabels, } from './relative-data';
6
+ export { Download, downloadToCSV, downloadDOMToPNG, toCsvString, triggerLinkDownload, buildPngDownloadItem, CSVIcon, PNGIcon, DEFAULT_DOWNLOAD_LABELS, type DownloadProps, type DownloadItem, type DownloadHandle, type DownloadDOMToPNGOptions, type BuildPngDownloadItemArgs, type DownloadLabels, } from './download';
7
+ export { FullScreen, DEFAULT_FULLSCREEN_LABELS, type FullScreenTriggerProps, type FullScreenSlotProps, type FullScreenLabels, type FullScreenWidgetState, } from './fullscreen';
8
+ export { LockSelection, filterByLockedItems, DEFAULT_LOCK_SELECTION_LABELS, type LockSelectionProps, type LockSelectionKey, type LockSelectionLabels, } from './lock-selection';
9
+ export { ChangeColumn, DEFAULT_CHANGE_COLUMN_LABELS, type ChangeColumnProps, type ChangeColumnItem, type ChangeColumnLabels, type ChangeColumnWidgetState, } from './change-column';
@@ -0,0 +1,3 @@
1
+ export { LockSelection, type LockSelectionProps, type LockSelectionKey, } from './lock-selection';
2
+ export { filterByLockedItems } from './transforms';
3
+ export { DEFAULT_LOCK_SELECTION_LABELS, type LockSelectionLabels, } from './labels';
@@ -0,0 +1,6 @@
1
+ export interface LockSelectionLabels {
2
+ lock: string;
3
+ unlock: string;
4
+ disabled: string;
5
+ }
6
+ export declare const DEFAULT_LOCK_SELECTION_LABELS: LockSelectionLabels;
@@ -0,0 +1,36 @@
1
+ import { ComponentType } from 'react';
2
+ import { SvgIconProps } from '@mui/material';
3
+ import { LockSelectionLabels } from './labels';
4
+ export type LockSelectionKey = string | number;
5
+ export interface LockSelectionProps {
6
+ /**
7
+ * Currently-selected items (destination-owned). On lock, this set is
8
+ * snapshotted into `lockedItems` via `onLockChange`.
9
+ */
10
+ selection: readonly LockSelectionKey[];
11
+ /**
12
+ * Currently-locked items (destination-owned). When non-empty, the widget's
13
+ * data is filtered to these items via the registered transform.
14
+ */
15
+ lockedItems: readonly LockSelectionKey[];
16
+ /**
17
+ * Fires when the user toggles the lock. The destination is responsible for
18
+ * persisting the new locked set (and re-feeding it via `lockedItems`).
19
+ */
20
+ onLockChange: (next: readonly LockSelectionKey[]) => void;
21
+ labels?: Partial<LockSelectionLabels>;
22
+ /** Lock icon (default: `LockIcon`). */
23
+ lockIcon?: ComponentType<SvgIconProps>;
24
+ /** Unlock icon (default: `LockOpenIcon`). */
25
+ unlockIcon?: ComponentType<SvgIconProps>;
26
+ iconProps?: SvgIconProps;
27
+ }
28
+ /**
29
+ * Action that pins the current selection so the widget's data filters down
30
+ * to those items even as the user changes selections. Selection and lock
31
+ * state are destination-owned; this component is a controlled UI + a data
32
+ * transform registered against the widget's pipeline.
33
+ *
34
+ * The trigger is disabled when there is nothing to lock and nothing locked.
35
+ */
36
+ export declare function LockSelection({ selection, lockedItems, onLockChange, labels, lockIcon: LockSvg, unlockIcon: UnlockSvg, iconProps, }: LockSelectionProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { Theme } from '@mui/material';
2
+ export declare const styles: {
3
+ toggle: {
4
+ p: number;
5
+ '& .MuiSvgIcon-root': {
6
+ fontSize: number;
7
+ };
8
+ };
9
+ toggleActive: {
10
+ background: (theme: Theme) => string;
11
+ };
12
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Filters a 2D series of `{name, ...}` records, keeping only items whose
3
+ * `name` is in the locked set. Multi-series shape is preserved (one inner
4
+ * array per series). Used by the LockSelection action's data transform.
5
+ */
6
+ export declare function filterByLockedItems(input: unknown, lockedItems: readonly (string | number)[]): unknown;
@@ -0,0 +1,3 @@
1
+ export { RelativeData, type RelativeDataProps } from './relative-data';
2
+ export { toRelativeData, createPercentFormatter } from './transforms';
3
+ export { DEFAULT_RELATIVE_DATA_LABELS, type RelativeDataLabels } from './labels';
@@ -0,0 +1,5 @@
1
+ export interface RelativeDataLabels {
2
+ on: string;
3
+ off: string;
4
+ }
5
+ export declare const DEFAULT_RELATIVE_DATA_LABELS: RelativeDataLabels;
@@ -0,0 +1,39 @@
1
+ import { ComponentType } from 'react';
2
+ import { SvgIconProps } from '@mui/material';
3
+ import { RelativeDataLabels } from './labels';
4
+ export interface RelativeDataProps {
5
+ initialEnabled?: boolean;
6
+ /**
7
+ * BCP-47 locale tag forwarded to `Intl.NumberFormat`. Defaults to the
8
+ * runtime locale.
9
+ */
10
+ locale?: string;
11
+ labels?: Partial<RelativeDataLabels>;
12
+ icon?: ComponentType<SvgIconProps>;
13
+ iconProps?: SvgIconProps;
14
+ /**
15
+ * Data-side transform that rewrites the widget's series into their
16
+ * relative (0–100) form. Defaults to {@link toRelativeData}, which
17
+ * handles the canonical `{ name, value }[]` shape (bar / pie /
18
+ * timeseries / category). Widgets with a different data shape pass
19
+ * their own — `toRelativeHistogramData` for histogram's `number[]`,
20
+ * `toRelativeScatterplotData` for scatter's `[x, y][]`.
21
+ *
22
+ * Should be a stable top-level reference; inline `(data) => ...`
23
+ * literals re-register the transform every render.
24
+ */
25
+ transform?: (data: unknown) => unknown;
26
+ }
27
+ /**
28
+ * Toggle between absolute and relative (percentage) values.
29
+ *
30
+ * - **Data side**: a single data transform ({@link toRelativeData}) registered
31
+ * through `useSingleTransform`. When disabled, the pipeline skips it and the
32
+ * derived `data` reverts to `rawData` automatically.
33
+ * - **Formatter side**: an effect writes directly to `state.formatter`. When
34
+ * enabled it installs the Intl-based percent formatter; when disabled it
35
+ * reads `state.rawFormatter` (the consumer-supplied original, always live)
36
+ * and writes it back to `formatter`. No "original" snapshot is captured —
37
+ * `rawFormatter` is the original.
38
+ */
39
+ export declare function RelativeData({ initialEnabled, locale, labels, icon: Icon, iconProps, transform, }: RelativeDataProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { Theme } from '@mui/material';
2
+ export declare const styles: {
3
+ toggle: {
4
+ p: number;
5
+ '& .MuiSvgIcon-root': {
6
+ fontSize: number;
7
+ };
8
+ };
9
+ toggleActive: {
10
+ background: (theme: Theme) => string;
11
+ };
12
+ };