@carto/ps-react-ui 5.0.0-widgets.9 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1418) hide show
  1. package/dist/actions-CGJD6q0t.js +1318 -0
  2. package/dist/actions-CGJD6q0t.js.map +1 -0
  3. package/dist/actions-yPZwFxSZ.js +1004 -0
  4. package/dist/actions-yPZwFxSZ.js.map +1 -0
  5. package/dist/category-DGUDabsi.js +829 -0
  6. package/dist/category-DGUDabsi.js.map +1 -0
  7. package/dist/chart-config-B_fdIcD3.js +108 -0
  8. package/dist/chart-config-B_fdIcD3.js.map +1 -0
  9. package/dist/chat.js +1642 -0
  10. package/dist/chat.js.map +1 -0
  11. package/dist/cjs-CBrZjPCj.js +75 -0
  12. package/dist/cjs-CBrZjPCj.js.map +1 -0
  13. package/dist/components-FED-ArwH.js +4053 -0
  14. package/dist/components-FED-ArwH.js.map +1 -0
  15. package/dist/components.js +5 -1351
  16. package/dist/copy-button-TTlZONkX.js +34 -0
  17. package/dist/copy-button-TTlZONkX.js.map +1 -0
  18. package/dist/csv-modifiers-D6HGC24b.js +26 -0
  19. package/dist/csv-modifiers-D6HGC24b.js.map +1 -0
  20. package/dist/download-DdaK3qgC.js +232 -0
  21. package/dist/download-DdaK3qgC.js.map +1 -0
  22. package/dist/echart-BkaV3V5G.js +133 -0
  23. package/dist/echart-BkaV3V5G.js.map +1 -0
  24. package/dist/echart-DeBgdOtX.js +250 -0
  25. package/dist/echart-DeBgdOtX.js.map +1 -0
  26. package/dist/formatter-wVO81tYk.js +6 -0
  27. package/dist/formatter-wVO81tYk.js.map +1 -0
  28. package/dist/formula-YfZmmuYX.js +190 -0
  29. package/dist/formula-YfZmmuYX.js.map +1 -0
  30. package/dist/formula-noJzQwKo.js +285 -0
  31. package/dist/formula-noJzQwKo.js.map +1 -0
  32. package/dist/hooks-zf5gKZYq.js +22 -0
  33. package/dist/hooks-zf5gKZYq.js.map +1 -0
  34. package/dist/legend/stores.js +2 -0
  35. package/dist/legend.js +2284 -0
  36. package/dist/legend.js.map +1 -0
  37. package/dist/markdown-2dfL6Cmb.js +165 -0
  38. package/dist/markdown-2dfL6Cmb.js.map +1 -0
  39. package/dist/markdown-content-BWUqwx9F.js +8776 -0
  40. package/dist/markdown-content-BWUqwx9F.js.map +1 -0
  41. package/dist/range-BCMAl5xf.js +277 -0
  42. package/dist/range-BCMAl5xf.js.map +1 -0
  43. package/dist/rolldown-runtime-B0aSnxlc.js +20 -0
  44. package/dist/row-CvVGBuy_.js +35 -0
  45. package/dist/row-CvVGBuy_.js.map +1 -0
  46. package/dist/shared-resize-observer-BEiP2rQt.js +157 -0
  47. package/dist/shared-resize-observer-BEiP2rQt.js.map +1 -0
  48. package/dist/smart-tooltip-CwGHCqab.js +34 -0
  49. package/dist/smart-tooltip-CwGHCqab.js.map +1 -0
  50. package/dist/spread-Ccpg9fi0.js +149 -0
  51. package/dist/spread-Ccpg9fi0.js.map +1 -0
  52. package/dist/stores-mad-9yFn.js +369 -0
  53. package/dist/stores-mad-9yFn.js.map +1 -0
  54. package/dist/stores-tiFePP0A.js +243 -0
  55. package/dist/stores-tiFePP0A.js.map +1 -0
  56. package/dist/styles-Y-qGBELO.js +13 -0
  57. package/dist/styles-Y-qGBELO.js.map +1 -0
  58. package/dist/table-Bx9Uj3U0.js +440 -0
  59. package/dist/table-Bx9Uj3U0.js.map +1 -0
  60. package/dist/tooltip-DJUGNZxY.js +23 -0
  61. package/dist/tooltip-DJUGNZxY.js.map +1 -0
  62. package/dist/types/chat/bubbles/chat-agent-message-markdown.d.ts +12 -0
  63. package/dist/types/chat/bubbles/chat-agent-message.d.ts +9 -0
  64. package/dist/types/chat/bubbles/chat-error-message.d.ts +2 -0
  65. package/dist/types/chat/bubbles/chat-suggestion-button.d.ts +2 -0
  66. package/dist/types/chat/bubbles/chat-user-message.d.ts +2 -0
  67. package/dist/types/chat/bubbles/index.d.ts +5 -0
  68. package/dist/types/chat/bubbles/styles.d.ts +88 -0
  69. package/dist/types/chat/const.d.ts +4 -0
  70. package/dist/types/chat/containers/chat-content.d.ts +2 -0
  71. package/dist/types/chat/containers/chat-footer.d.ts +2 -0
  72. package/dist/types/chat/containers/chat-header.d.ts +2 -0
  73. package/dist/types/chat/containers/chat-starter.d.ts +2 -0
  74. package/dist/types/chat/containers/index.d.ts +4 -0
  75. package/dist/types/chat/containers/styles.d.ts +160 -0
  76. package/dist/types/chat/feedback/chat-actions-container.d.ts +3 -0
  77. package/dist/types/chat/feedback/chat-loader.d.ts +2 -0
  78. package/dist/types/chat/feedback/chat-rating-action.d.ts +2 -0
  79. package/dist/types/chat/feedback/chat-thinking.d.ts +2 -0
  80. package/dist/types/chat/feedback/chat-tool-code-area.d.ts +2 -0
  81. package/dist/types/chat/feedback/chat-tool-full-view-dialog.d.ts +2 -0
  82. package/dist/types/chat/feedback/chat-tool-group.d.ts +2 -0
  83. package/dist/types/chat/feedback/chat-tool-trace.d.ts +3 -0
  84. package/dist/types/chat/feedback/get-tool-label.d.ts +2 -0
  85. package/dist/types/chat/feedback/index.d.ts +8 -0
  86. package/dist/types/chat/feedback/styles.d.ts +212 -0
  87. package/dist/types/chat/index.d.ts +21 -0
  88. package/dist/types/chat/types.d.ts +214 -0
  89. package/dist/types/chat/use-typewriter.d.ts +32 -0
  90. package/dist/types/components/basemaps/basemaps.d.ts +21 -1
  91. package/dist/types/components/basemaps/const.d.ts +1 -1
  92. package/dist/types/components/basemaps/group-wrapper.d.ts +1 -1
  93. package/dist/types/components/basemaps/group.d.ts +2 -2
  94. package/dist/types/components/basemaps/header.d.ts +2 -2
  95. package/dist/types/components/common-types.d.ts +49 -0
  96. package/dist/types/components/copy-button/copy-button.d.ts +2 -0
  97. package/dist/types/components/copy-button/types.d.ts +6 -0
  98. package/dist/types/components/geolocation-controls/geolocation-controls.d.ts +12 -1
  99. package/dist/types/components/index.d.ts +37 -20
  100. package/dist/types/components/lasso-tool/chip.d.ts +2 -2
  101. package/dist/types/components/lasso-tool/const.d.ts +2 -2
  102. package/dist/types/components/lasso-tool/edit-confirm-toolbar.d.ts +26 -0
  103. package/dist/types/components/lasso-tool/geometry-toolbar.d.ts +49 -0
  104. package/dist/types/components/lasso-tool/icons.d.ts +22 -5
  105. package/dist/types/components/lasso-tool/lasso-tool-inline.d.ts +36 -3
  106. package/dist/types/components/lasso-tool/lasso-tool.d.ts +34 -9
  107. package/dist/types/components/lasso-tool/layer-filters.d.ts +10 -0
  108. package/dist/types/components/lasso-tool/message.d.ts +7 -0
  109. package/dist/types/components/lasso-tool/options-sections.d.ts +28 -0
  110. package/dist/types/components/lasso-tool/styles.d.ts +24 -2
  111. package/dist/types/components/lasso-tool/toolbar/actions/accept-action.d.ts +13 -0
  112. package/dist/types/components/lasso-tool/toolbar/actions/action-menu.d.ts +28 -0
  113. package/dist/types/components/lasso-tool/toolbar/actions/cancel-action.d.ts +13 -0
  114. package/dist/types/components/lasso-tool/toolbar/actions/color-action.d.ts +44 -0
  115. package/dist/types/components/lasso-tool/toolbar/actions/delete-action.d.ts +11 -0
  116. package/dist/types/components/lasso-tool/toolbar/actions/duplicate-action.d.ts +11 -0
  117. package/dist/types/components/lasso-tool/toolbar/actions/edit-geometry-action.d.ts +13 -0
  118. package/dist/types/components/lasso-tool/toolbar/actions/edit-properties-action.d.ts +60 -0
  119. package/dist/types/components/lasso-tool/toolbar/actions/fill-action.d.ts +26 -0
  120. package/dist/types/components/lasso-tool/toolbar/actions/intersect-action.d.ts +14 -0
  121. package/dist/types/components/lasso-tool/toolbar/actions/label-action.d.ts +69 -0
  122. package/dist/types/components/lasso-tool/toolbar/actions/lock-action.d.ts +17 -0
  123. package/dist/types/components/lasso-tool/toolbar/actions/redo-action.d.ts +14 -0
  124. package/dist/types/components/lasso-tool/toolbar/actions/split-action.d.ts +14 -0
  125. package/dist/types/components/lasso-tool/toolbar/actions/stroke-action.d.ts +27 -0
  126. package/dist/types/components/lasso-tool/toolbar/actions/subtract-action.d.ts +14 -0
  127. package/dist/types/components/lasso-tool/toolbar/actions/toggle-type-action.d.ts +19 -0
  128. package/dist/types/components/lasso-tool/toolbar/actions/undo-action.d.ts +14 -0
  129. package/dist/types/components/lasso-tool/toolbar/actions/union-action.d.ts +14 -0
  130. package/dist/types/components/lasso-tool/toolbar/button.d.ts +24 -0
  131. package/dist/types/components/lasso-tool/toolbar/connected.d.ts +55 -0
  132. package/dist/types/components/lasso-tool/toolbar/context.d.ts +31 -0
  133. package/dist/types/components/lasso-tool/toolbar/index.d.ts +41 -0
  134. package/dist/types/components/lasso-tool/toolbar/styles.d.ts +26 -0
  135. package/dist/types/components/lasso-tool/toolbar/toolbar.d.ts +30 -0
  136. package/dist/types/components/lasso-tool/tools-context.d.ts +12 -0
  137. package/dist/types/components/lasso-tool/types.d.ts +284 -10
  138. package/dist/types/components/lasso-tool/undo-redo.d.ts +25 -0
  139. package/dist/types/components/list-data/list-data-skeleton.d.ts +1 -1
  140. package/dist/types/components/list-data/list-data.d.ts +17 -1
  141. package/dist/types/components/measurement-tools/const.d.ts +2 -2
  142. package/dist/types/components/measurement-tools/icons.d.ts +3 -3
  143. package/dist/types/components/measurement-tools/measurement-tools.d.ts +21 -1
  144. package/dist/types/components/measurement-tools/styles.d.ts +14 -4
  145. package/dist/types/components/measurement-tools/types.d.ts +1 -1
  146. package/dist/types/components/no-data-alert/no-data-alert.d.ts +1 -1
  147. package/dist/types/components/responsive-drawer/responsive-drawer.d.ts +38 -6
  148. package/dist/types/components/smart-tooltip/smart-tooltip.d.ts +18 -1
  149. package/dist/types/components/tooltip/tooltip.d.ts +14 -1
  150. package/dist/types/components/types.d.ts +1 -1
  151. package/dist/types/components/zoom-controls/zoom-controls.d.ts +17 -1
  152. package/dist/types/hooks/index.d.ts +1 -2
  153. package/dist/types/hooks/use-widget-ref.d.ts +10 -6
  154. package/dist/types/legend/components/a11y.d.ts +6 -0
  155. package/dist/types/legend/components/contexts.d.ts +38 -0
  156. package/dist/types/legend/components/icons.d.ts +12 -0
  157. package/dist/types/legend/components/index.d.ts +26 -0
  158. package/dist/types/legend/components/legend-actions/legend-actions.d.ts +25 -0
  159. package/dist/types/legend/components/legend-actions/styles.d.ts +7 -0
  160. package/dist/types/legend/components/legend-category/legend-category-ui.d.ts +13 -0
  161. package/dist/types/legend/components/legend-category/styles.d.ts +52 -0
  162. package/dist/types/legend/components/legend-config-select/legend-config-select.d.ts +14 -0
  163. package/dist/types/legend/components/legend-config-select/styles.d.ts +44 -0
  164. package/dist/types/legend/components/legend-group/legend-group.d.ts +12 -0
  165. package/dist/types/legend/components/legend-group/styles.d.ts +129 -0
  166. package/dist/types/legend/components/legend-group-menu/legend-group-menu-items.d.ts +28 -0
  167. package/dist/types/legend/components/legend-group-menu/legend-group-menu.d.ts +11 -0
  168. package/dist/types/legend/components/legend-icon/legend-icon-ui.d.ts +10 -0
  169. package/dist/types/legend/components/legend-icon/styles.d.ts +52 -0
  170. package/dist/types/legend/components/legend-item/legend-item-ui.d.ts +14 -0
  171. package/dist/types/legend/components/legend-item/legend-item.d.ts +10 -0
  172. package/dist/types/{widgets/root/style.d.ts → legend/components/legend-item/styles.d.ts} +2 -3
  173. package/dist/types/legend/components/legend-opacity/legend-opacity.d.ts +22 -0
  174. package/dist/types/legend/components/legend-opacity/styles.d.ts +28 -0
  175. package/dist/types/legend/components/legend-overflow-menu/legend-overflow-menu.d.ts +12 -0
  176. package/dist/types/legend/components/legend-panel-menu/legend-panel-menu.d.ts +11 -0
  177. package/dist/types/legend/components/legend-proportion/legend-proportion-ui.d.ts +16 -0
  178. package/dist/types/legend/components/legend-proportion/styles.d.ts +37 -0
  179. package/dist/types/legend/components/legend-ramp/legend-ramp-ui.d.ts +20 -0
  180. package/dist/types/legend/components/legend-ramp/styles.d.ts +53 -0
  181. package/dist/types/legend/components/legend-row/legend-row.d.ts +16 -0
  182. package/dist/types/legend/components/legend-row/styles.d.ts +149 -0
  183. package/dist/types/legend/components/legend-row-menu/legend-row-menu-items.d.ts +12 -0
  184. package/dist/types/legend/components/legend-row-menu/legend-row-menu.d.ts +12 -0
  185. package/dist/types/legend/components/legend-row-menu/legend-zoom-to.d.ts +10 -0
  186. package/dist/types/legend/components/legend-sortable/contexts.d.ts +7 -0
  187. package/dist/types/legend/components/legend-sortable/legend-sortable.d.ts +11 -0
  188. package/dist/types/legend/components/legend-sortable/sortable-entity.d.ts +27 -0
  189. package/dist/types/legend/components/legend-sortable/sortable-ids.d.ts +6 -0
  190. package/dist/types/legend/components/legend-sortable/styles.d.ts +55 -0
  191. package/dist/types/legend/components/legend-swatch/legend-swatch.d.ts +26 -0
  192. package/dist/types/legend/components/legend-visibility-toggle/legend-visibility-toggle.d.ts +35 -0
  193. package/dist/types/legend/components/legend-visible-layers/legend-visible-layers.d.ts +7 -0
  194. package/dist/types/legend/components/legend-visible-layers/styles.d.ts +48 -0
  195. package/dist/types/legend/components/run-async-menu-action.d.ts +7 -0
  196. package/dist/types/legend/index.d.ts +135 -0
  197. package/dist/types/legend/provider/index.d.ts +6 -0
  198. package/dist/types/legend/provider/labels.d.ts +48 -0
  199. package/dist/types/legend/provider/legend-config-context.d.ts +7 -0
  200. package/dist/types/legend/provider/legend-provider.d.ts +38 -0
  201. package/dist/types/legend/stores/index.d.ts +5 -0
  202. package/dist/types/legend/stores/legend-context.d.ts +4 -0
  203. package/dist/types/legend/stores/legend-store-registry.d.ts +39 -0
  204. package/dist/types/legend/stores/selectors.d.ts +64 -0
  205. package/dist/types/legend/stores/types.d.ts +294 -0
  206. package/dist/types/widgets/actions/brush-toggle/brush-overlay.d.ts +24 -0
  207. package/dist/types/widgets/actions/brush-toggle/brush-toggle.d.ts +29 -0
  208. package/dist/types/widgets/actions/brush-toggle/hit-test.d.ts +19 -0
  209. package/dist/types/widgets/actions/brush-toggle/style.d.ts +21 -0
  210. package/dist/types/widgets/actions/brush-toggle/types.d.ts +73 -0
  211. package/dist/types/widgets/actions/change-column/change-column-icon.d.ts +1 -1
  212. package/dist/types/widgets/actions/change-column/change-column.d.ts +6 -2
  213. package/dist/types/widgets/actions/change-column/sortable-column-item.d.ts +2 -2
  214. package/dist/types/widgets/actions/download/download.d.ts +13 -2
  215. package/dist/types/widgets/actions/download/exports.d.ts +16 -1
  216. package/dist/types/widgets/actions/download/types.d.ts +1 -1
  217. package/dist/types/widgets/actions/fullscreen/fullscreen.d.ts +15 -2
  218. package/dist/types/widgets/actions/fullscreen/types.d.ts +3 -2
  219. package/dist/types/widgets/actions/index.d.ts +20 -18
  220. package/dist/types/widgets/actions/lock-selection/lock-selection.d.ts +2 -2
  221. package/dist/types/widgets/actions/lock-selection/types.d.ts +10 -10
  222. package/dist/types/widgets/actions/relative-data/relative-data.d.ts +10 -4
  223. package/dist/types/widgets/actions/relative-data/types.d.ts +3 -1
  224. package/dist/types/widgets/actions/relative-data/utils.d.ts +1 -1
  225. package/dist/types/widgets/actions/searcher/searcher-toggle.d.ts +2 -2
  226. package/dist/types/widgets/actions/searcher/searcher.d.ts +2 -2
  227. package/dist/types/widgets/actions/searcher/types.d.ts +2 -2
  228. package/dist/types/widgets/actions/stack-toggle/grouped-bar-chart-icon.d.ts +1 -1
  229. package/dist/types/widgets/actions/stack-toggle/stack-toggle.d.ts +5 -4
  230. package/dist/types/widgets/actions/stack-toggle/types.d.ts +1 -1
  231. package/dist/types/widgets/actions/zoom-toggle/types.d.ts +1 -1
  232. package/dist/types/widgets/actions/zoom-toggle/zoom-toggle.d.ts +10 -2
  233. package/dist/types/widgets/bar/config.d.ts +8 -4
  234. package/dist/types/widgets/bar/index.d.ts +3 -3
  235. package/dist/types/widgets/bar/skeleton.d.ts +1 -1
  236. package/dist/types/widgets/bar/types.d.ts +3 -3
  237. package/dist/types/widgets/category/category-ui.d.ts +5 -2
  238. package/dist/types/widgets/category/components/category-bar.d.ts +4 -1
  239. package/dist/types/widgets/category/components/category-legend.d.ts +5 -2
  240. package/dist/types/widgets/category/components/category-row-multi.d.ts +6 -2
  241. package/dist/types/widgets/category/components/category-row-other.d.ts +4 -1
  242. package/dist/types/widgets/category/components/category-row-single.d.ts +6 -2
  243. package/dist/types/widgets/category/config.d.ts +16 -12
  244. package/dist/types/widgets/category/index.d.ts +14 -6
  245. package/dist/types/widgets/category/skeleton.d.ts +1 -1
  246. package/dist/types/widgets/category/style.d.ts +1 -1
  247. package/dist/types/widgets/category/types.d.ts +4 -3
  248. package/dist/types/widgets/echart/echart-ui.d.ts +9 -2
  249. package/dist/types/widgets/echart/echart.d.ts +8 -2
  250. package/dist/types/widgets/echart/index.d.ts +5 -5
  251. package/dist/types/widgets/echart/options.d.ts +8 -1
  252. package/dist/types/widgets/echart/shared-resize-observer.d.ts +12 -0
  253. package/dist/types/widgets/echart/types.d.ts +7 -2
  254. package/dist/types/widgets/echart/utils.d.ts +57 -9
  255. package/dist/types/widgets/error/error.d.ts +12 -2
  256. package/dist/types/widgets/error/index.d.ts +2 -2
  257. package/dist/types/widgets/error/types.d.ts +9 -1
  258. package/dist/types/widgets/formula/components/item.d.ts +5 -2
  259. package/dist/types/widgets/formula/components/prefix.d.ts +5 -2
  260. package/dist/types/widgets/formula/components/row.d.ts +5 -2
  261. package/dist/types/widgets/formula/components/series.d.ts +5 -2
  262. package/dist/types/widgets/formula/components/suffix.d.ts +5 -2
  263. package/dist/types/widgets/formula/components/value.d.ts +5 -2
  264. package/dist/types/widgets/formula/config.d.ts +13 -2
  265. package/dist/types/widgets/formula/formula-ui.d.ts +5 -2
  266. package/dist/types/widgets/formula/index.d.ts +11 -11
  267. package/dist/types/widgets/formula/serializer.d.ts +1 -1
  268. package/dist/types/widgets/formula/skeleton.d.ts +1 -1
  269. package/dist/types/widgets/formula/types.d.ts +3 -3
  270. package/dist/types/widgets/histogram/config.d.ts +20 -4
  271. package/dist/types/widgets/histogram/index.d.ts +4 -3
  272. package/dist/types/widgets/histogram/skeleton.d.ts +1 -1
  273. package/dist/types/widgets/histogram/types.d.ts +8 -5
  274. package/dist/types/widgets/loader/index.d.ts +3 -0
  275. package/dist/types/widgets/loader/loader.d.ts +24 -0
  276. package/dist/types/widgets/loader/types.d.ts +9 -0
  277. package/dist/types/widgets/loader/utils.d.ts +35 -0
  278. package/dist/types/widgets/markdown/config.d.ts +12 -2
  279. package/dist/types/widgets/markdown/index.d.ts +5 -5
  280. package/dist/types/widgets/markdown/markdown-ui.d.ts +9 -2
  281. package/dist/types/widgets/markdown/markdown.d.ts +5 -2
  282. package/dist/types/widgets/markdown/skeleton.d.ts +1 -1
  283. package/dist/types/widgets/markdown/types.d.ts +3 -3
  284. package/dist/types/widgets/no-data/index.d.ts +2 -2
  285. package/dist/types/widgets/no-data/no-data.d.ts +5 -4
  286. package/dist/types/widgets/no-data/types.d.ts +6 -2
  287. package/dist/types/widgets/note/index.d.ts +2 -2
  288. package/dist/types/widgets/note/note.d.ts +12 -2
  289. package/dist/types/widgets/note/types.d.ts +1 -1
  290. package/dist/types/widgets/pie/config.d.ts +8 -4
  291. package/dist/types/widgets/pie/index.d.ts +3 -3
  292. package/dist/types/widgets/pie/skeleton.d.ts +1 -1
  293. package/dist/types/widgets/pie/types.d.ts +3 -3
  294. package/dist/types/widgets/range/components/range-item.d.ts +5 -2
  295. package/dist/types/widgets/range/config.d.ts +6 -5
  296. package/dist/types/widgets/range/index.d.ts +6 -6
  297. package/dist/types/widgets/range/range-ui.d.ts +5 -2
  298. package/dist/types/widgets/range/serializer.d.ts +1 -1
  299. package/dist/types/widgets/range/skeleton.d.ts +1 -1
  300. package/dist/types/widgets/range/types.d.ts +3 -3
  301. package/dist/types/widgets/scatterplot/config.d.ts +8 -4
  302. package/dist/types/widgets/scatterplot/index.d.ts +3 -3
  303. package/dist/types/widgets/scatterplot/skeleton.d.ts +1 -1
  304. package/dist/types/widgets/scatterplot/types.d.ts +3 -3
  305. package/dist/types/widgets/selection-summary/index.d.ts +2 -2
  306. package/dist/types/widgets/selection-summary/selection-summary.d.ts +13 -2
  307. package/dist/types/widgets/skeleton-loader/index.d.ts +2 -2
  308. package/dist/types/widgets/skeleton-loader/skeleton-loader.d.ts +12 -2
  309. package/dist/types/widgets/skeleton-loader/types.d.ts +1 -1
  310. package/dist/types/widgets/spread/components/max-value.d.ts +5 -2
  311. package/dist/types/widgets/spread/components/min-value.d.ts +5 -2
  312. package/dist/types/widgets/spread/components/separator.d.ts +5 -2
  313. package/dist/types/widgets/spread/config.d.ts +14 -8
  314. package/dist/types/widgets/spread/index.d.ts +9 -9
  315. package/dist/types/widgets/spread/skeleton.d.ts +1 -1
  316. package/dist/types/widgets/spread/spread-ui.d.ts +5 -2
  317. package/dist/types/widgets/spread/types.d.ts +4 -4
  318. package/dist/types/widgets/stores/index.d.ts +3 -2
  319. package/dist/types/widgets/stores/types.d.ts +31 -10
  320. package/dist/types/widgets/stores/use-widget-selector.d.ts +35 -0
  321. package/dist/types/widgets/stores/widget-store.d.ts +48 -27
  322. package/dist/types/widgets/subheader/index.d.ts +2 -2
  323. package/dist/types/widgets/subheader/subheader.d.ts +13 -2
  324. package/dist/types/widgets/table/components/cell-header.d.ts +2 -2
  325. package/dist/types/widgets/table/components/cell.d.ts +4 -2
  326. package/dist/types/widgets/table/components/pagination-actions.d.ts +2 -2
  327. package/dist/types/widgets/table/components/pagination.d.ts +2 -2
  328. package/dist/types/widgets/table/components/row.d.ts +2 -2
  329. package/dist/types/widgets/table/config.d.ts +10 -6
  330. package/dist/types/widgets/table/hooks/use-pagination.d.ts +12 -4
  331. package/dist/types/widgets/table/hooks/use-selection.d.ts +12 -3
  332. package/dist/types/widgets/table/hooks/use-sort.d.ts +12 -4
  333. package/dist/types/widgets/table/index.d.ts +17 -13
  334. package/dist/types/widgets/table/serializer.d.ts +1 -1
  335. package/dist/types/widgets/table/skeleton.d.ts +1 -1
  336. package/dist/types/widgets/table/table-ui.d.ts +8 -8
  337. package/dist/types/widgets/table/types.d.ts +5 -5
  338. package/dist/types/widgets/timeseries/config.d.ts +8 -4
  339. package/dist/types/widgets/timeseries/index.d.ts +3 -3
  340. package/dist/types/widgets/timeseries/skeleton.d.ts +1 -1
  341. package/dist/types/widgets/timeseries/types.d.ts +3 -3
  342. package/dist/types/widgets/toolbar-actions/index.d.ts +2 -2
  343. package/dist/types/widgets/toolbar-actions/toolbar-actions.d.ts +13 -4
  344. package/dist/types/widgets/toolbar-actions/types.d.ts +10 -3
  345. package/dist/types/widgets/{_shared → utils}/chart-config/config-factory.d.ts +1 -1
  346. package/dist/types/widgets/utils/chart-config/download-config.d.ts +3 -0
  347. package/dist/types/widgets/utils/chart-config/index.d.ts +9 -0
  348. package/dist/types/widgets/utils/chart-config/option-builders.d.ts +142 -0
  349. package/dist/types/widgets/utils/formatter.d.ts +2 -0
  350. package/dist/types/widgets/utils/index.d.ts +7 -0
  351. package/dist/types/widgets/utils/skeleton/index.d.ts +4 -0
  352. package/dist/types/widgets/wrapper/components/actions.d.ts +5 -2
  353. package/dist/types/widgets/wrapper/components/options.d.ts +5 -2
  354. package/dist/types/widgets/wrapper/components/title.d.ts +5 -2
  355. package/dist/types/widgets/wrapper/index.d.ts +6 -6
  356. package/dist/types/widgets/wrapper/types.d.ts +1 -1
  357. package/dist/types/widgets/wrapper/wrapper-ui.d.ts +16 -2
  358. package/dist/types/widgets/wrapper/wrapper.d.ts +16 -2
  359. package/dist/types/widgets-v2/actions/brush-toggle/brush-toggle.d.ts +56 -0
  360. package/dist/types/widgets-v2/actions/brush-toggle/index.d.ts +3 -0
  361. package/dist/types/widgets-v2/actions/brush-toggle/labels.d.ts +5 -0
  362. package/dist/types/widgets-v2/actions/brush-toggle/style.d.ts +12 -0
  363. package/dist/types/widgets-v2/actions/brush-toggle/transforms.d.ts +11 -0
  364. package/dist/types/widgets-v2/actions/change-column/change-column-icon.d.ts +2 -0
  365. package/dist/types/widgets-v2/actions/change-column/change-column.d.ts +29 -0
  366. package/dist/types/widgets-v2/actions/change-column/index.d.ts +3 -0
  367. package/dist/types/widgets-v2/actions/change-column/labels.d.ts +6 -0
  368. package/dist/types/widgets-v2/actions/change-column/sortable-column-item.d.ts +14 -0
  369. package/dist/types/widgets-v2/actions/change-column/style.d.ts +59 -0
  370. package/dist/types/widgets-v2/actions/change-column/types.d.ts +10 -0
  371. package/dist/types/widgets-v2/actions/download/constants.d.ts +12 -0
  372. package/dist/types/widgets-v2/actions/download/csv-item.d.ts +38 -0
  373. package/dist/types/widgets-v2/actions/download/download.d.ts +18 -0
  374. package/dist/types/widgets-v2/actions/download/exports.d.ts +37 -0
  375. package/dist/types/widgets-v2/actions/download/icons.d.ts +18 -0
  376. package/dist/types/widgets-v2/actions/download/index.d.ts +8 -0
  377. package/dist/types/widgets-v2/actions/download/labels.d.ts +11 -0
  378. package/dist/types/widgets-v2/actions/download/png-item.d.ts +24 -0
  379. package/dist/types/widgets-v2/actions/download/style.d.ts +1 -0
  380. package/dist/types/widgets-v2/actions/download/types.d.ts +35 -0
  381. package/dist/types/widgets-v2/actions/fullscreen/fullscreen.d.ts +59 -0
  382. package/dist/types/widgets-v2/actions/fullscreen/index.d.ts +3 -0
  383. package/dist/types/widgets-v2/actions/fullscreen/labels.d.ts +5 -0
  384. package/dist/types/widgets-v2/actions/fullscreen/style.d.ts +48 -0
  385. package/dist/types/widgets-v2/actions/fullscreen/types.d.ts +14 -0
  386. package/dist/types/widgets-v2/actions/index.d.ts +10 -0
  387. package/dist/types/widgets-v2/actions/lock-selection/index.d.ts +3 -0
  388. package/dist/types/widgets-v2/actions/lock-selection/labels.d.ts +6 -0
  389. package/dist/types/widgets-v2/actions/lock-selection/lock-selection.d.ts +57 -0
  390. package/dist/types/widgets-v2/actions/lock-selection/style.d.ts +12 -0
  391. package/dist/types/widgets-v2/actions/lock-selection/transforms.d.ts +6 -0
  392. package/dist/types/widgets-v2/actions/relative-data/index.d.ts +3 -0
  393. package/dist/types/widgets-v2/actions/relative-data/labels.d.ts +5 -0
  394. package/dist/types/widgets-v2/actions/relative-data/relative-data.d.ts +39 -0
  395. package/dist/types/widgets-v2/actions/relative-data/style.d.ts +12 -0
  396. package/dist/types/widgets-v2/actions/relative-data/transforms.d.ts +30 -0
  397. package/dist/types/widgets-v2/actions/searcher/filter.d.ts +6 -0
  398. package/dist/types/widgets-v2/actions/searcher/index.d.ts +4 -0
  399. package/dist/types/widgets-v2/actions/searcher/labels.d.ts +7 -0
  400. package/dist/types/widgets-v2/actions/searcher/searcher-toggle.d.ts +23 -0
  401. package/dist/types/widgets-v2/actions/searcher/searcher.d.ts +11 -0
  402. package/dist/types/widgets-v2/actions/searcher/style.d.ts +16 -0
  403. package/dist/types/widgets-v2/actions/show-all/index.d.ts +2 -0
  404. package/dist/types/widgets-v2/actions/show-all/labels.d.ts +5 -0
  405. package/dist/types/widgets-v2/actions/show-all/show-all.d.ts +33 -0
  406. package/dist/types/widgets-v2/actions/show-all/style.d.ts +8 -0
  407. package/dist/types/widgets-v2/actions/stack-toggle/index.d.ts +3 -0
  408. package/dist/types/widgets-v2/actions/stack-toggle/labels.d.ts +5 -0
  409. package/dist/types/widgets-v2/actions/stack-toggle/stack-toggle.d.ts +10 -0
  410. package/dist/types/widgets-v2/actions/stack-toggle/style.d.ts +12 -0
  411. package/dist/types/widgets-v2/actions/stack-toggle/transforms.d.ts +13 -0
  412. package/dist/types/widgets-v2/actions/zoom-toggle/index.d.ts +3 -0
  413. package/dist/types/widgets-v2/actions/zoom-toggle/labels.d.ts +5 -0
  414. package/dist/types/widgets-v2/actions/zoom-toggle/style.d.ts +12 -0
  415. package/dist/types/widgets-v2/actions/zoom-toggle/transforms.d.ts +51 -0
  416. package/dist/types/widgets-v2/actions/zoom-toggle/zoom-toggle.d.ts +35 -0
  417. package/dist/types/widgets-v2/bar/download.d.ts +24 -0
  418. package/dist/types/widgets-v2/bar/index.d.ts +4 -0
  419. package/dist/types/widgets-v2/bar/options.d.ts +43 -0
  420. package/dist/types/widgets-v2/bar/skeleton.d.ts +6 -0
  421. package/dist/types/widgets-v2/bar/types.d.ts +46 -0
  422. package/dist/types/widgets-v2/category/category-ui.d.ts +88 -0
  423. package/dist/types/widgets-v2/category/category.d.ts +55 -0
  424. package/dist/types/widgets-v2/category/components/category-bar-stacked.d.ts +28 -0
  425. package/dist/types/widgets-v2/category/components/category-bar.d.ts +23 -0
  426. package/dist/types/widgets-v2/category/components/category-legend.d.ts +34 -0
  427. package/dist/types/widgets-v2/category/components/category-row-multi.d.ts +31 -0
  428. package/dist/types/widgets-v2/category/components/category-row-other.d.ts +26 -0
  429. package/dist/types/widgets-v2/category/components/category-row-single.d.ts +28 -0
  430. package/dist/types/widgets-v2/category/components/category-row-stacked.d.ts +43 -0
  431. package/dist/types/widgets-v2/category/download.d.ts +16 -0
  432. package/dist/types/widgets-v2/category/index.d.ts +10 -0
  433. package/dist/types/widgets-v2/category/skeleton.d.ts +11 -0
  434. package/dist/types/widgets-v2/category/style.d.ts +193 -0
  435. package/dist/types/widgets-v2/category/types.d.ts +55 -0
  436. package/dist/types/widgets-v2/echart/echart-ui.d.ts +44 -0
  437. package/dist/types/widgets-v2/echart/echart.d.ts +75 -0
  438. package/dist/types/widgets-v2/echart/edge-label-clamp.d.ts +57 -0
  439. package/dist/types/widgets-v2/echart/index.d.ts +4 -0
  440. package/dist/types/widgets-v2/echart/shared-resize-observer.d.ts +5 -0
  441. package/dist/types/widgets-v2/echart/style.d.ts +6 -0
  442. package/dist/types/widgets-v2/echart/use-chart-selection.d.ts +57 -0
  443. package/dist/types/widgets-v2/formula/delta.d.ts +22 -0
  444. package/dist/types/widgets-v2/formula/download.d.ts +20 -0
  445. package/dist/types/widgets-v2/formula/formula-ui.d.ts +20 -0
  446. package/dist/types/widgets-v2/formula/formula.d.ts +8 -0
  447. package/dist/types/widgets-v2/formula/index.d.ts +11 -0
  448. package/dist/types/widgets-v2/formula/note.d.ts +11 -0
  449. package/dist/types/widgets-v2/formula/prefix.d.ts +12 -0
  450. package/dist/types/widgets-v2/formula/series.d.ts +16 -0
  451. package/dist/types/widgets-v2/formula/skeleton.d.ts +4 -0
  452. package/dist/types/widgets-v2/formula/style.d.ts +29 -0
  453. package/dist/types/widgets-v2/formula/suffix.d.ts +12 -0
  454. package/dist/types/widgets-v2/formula/types.d.ts +43 -0
  455. package/dist/types/widgets-v2/formula/value.d.ts +14 -0
  456. package/dist/types/widgets-v2/histogram/download.d.ts +17 -0
  457. package/dist/types/widgets-v2/histogram/index.d.ts +5 -0
  458. package/dist/types/widgets-v2/histogram/options.d.ts +42 -0
  459. package/dist/types/widgets-v2/histogram/skeleton.d.ts +9 -0
  460. package/dist/types/widgets-v2/histogram/transforms.d.ts +28 -0
  461. package/dist/types/widgets-v2/histogram/types.d.ts +60 -0
  462. package/dist/types/widgets-v2/index.d.ts +109 -0
  463. package/dist/types/widgets-v2/markdown/download.d.ts +16 -0
  464. package/dist/types/widgets-v2/markdown/index.d.ts +6 -0
  465. package/dist/types/widgets-v2/markdown/markdown-content.d.ts +40 -0
  466. package/dist/types/widgets-v2/markdown/markdown-ui.d.ts +12 -0
  467. package/dist/types/widgets-v2/markdown/markdown.d.ts +6 -0
  468. package/dist/types/widgets-v2/markdown/skeleton.d.ts +4 -0
  469. package/dist/types/widgets-v2/markdown/style.d.ts +61 -0
  470. package/dist/types/widgets-v2/markdown/types.d.ts +4 -0
  471. package/dist/types/widgets-v2/note/labels.d.ts +5 -0
  472. package/dist/types/widgets-v2/note/style.d.ts +26 -0
  473. package/dist/types/widgets-v2/note/widget-note.d.ts +46 -0
  474. package/dist/types/widgets-v2/pie/download.d.ts +17 -0
  475. package/dist/types/widgets-v2/pie/index.d.ts +4 -0
  476. package/dist/types/widgets-v2/pie/options.d.ts +35 -0
  477. package/dist/types/widgets-v2/pie/skeleton.d.ts +13 -0
  478. package/dist/types/widgets-v2/pie/types.d.ts +57 -0
  479. package/dist/types/widgets-v2/provider/widget-provider.d.ts +32 -0
  480. package/dist/types/widgets-v2/range/index.d.ts +4 -0
  481. package/dist/types/widgets-v2/range/range-ui.d.ts +27 -0
  482. package/dist/types/widgets-v2/range/range.d.ts +24 -0
  483. package/dist/types/widgets-v2/range/skeleton.d.ts +9 -0
  484. package/dist/types/widgets-v2/range/style.d.ts +40 -0
  485. package/dist/types/widgets-v2/range/types.d.ts +37 -0
  486. package/dist/types/widgets-v2/scatterplot/download.d.ts +16 -0
  487. package/dist/types/widgets-v2/scatterplot/index.d.ts +5 -0
  488. package/dist/types/widgets-v2/scatterplot/options.d.ts +42 -0
  489. package/dist/types/widgets-v2/scatterplot/skeleton.d.ts +12 -0
  490. package/dist/types/widgets-v2/scatterplot/transforms.d.ts +26 -0
  491. package/dist/types/widgets-v2/scatterplot/types.d.ts +54 -0
  492. package/dist/types/widgets-v2/selection-summary/labels.d.ts +11 -0
  493. package/dist/types/widgets-v2/selection-summary/selection-summary.d.ts +29 -0
  494. package/dist/types/widgets-v2/selection-summary/style.d.ts +38 -0
  495. package/dist/types/widgets-v2/spread/band.d.ts +37 -0
  496. package/dist/types/widgets-v2/spread/download.d.ts +15 -0
  497. package/dist/types/widgets-v2/spread/index.d.ts +7 -0
  498. package/dist/types/widgets-v2/spread/separator.d.ts +7 -0
  499. package/dist/types/widgets-v2/spread/skeleton.d.ts +9 -0
  500. package/dist/types/widgets-v2/spread/spread-ui.d.ts +18 -0
  501. package/dist/types/widgets-v2/spread/spread.d.ts +5 -0
  502. package/dist/types/widgets-v2/spread/types.d.ts +25 -0
  503. package/dist/types/widgets-v2/state/labels.d.ts +7 -0
  504. package/dist/types/widgets-v2/state/style.d.ts +19 -0
  505. package/dist/types/widgets-v2/state/widget-state.d.ts +19 -0
  506. package/dist/types/widgets-v2/stores/index.d.ts +8 -0
  507. package/dist/types/widgets-v2/stores/pipeline-middleware.d.ts +5 -0
  508. package/dist/types/widgets-v2/stores/transforms.d.ts +4 -0
  509. package/dist/types/widgets-v2/stores/types.d.ts +55 -0
  510. package/dist/types/widgets-v2/stores/use-echart-instance.d.ts +15 -0
  511. package/dist/types/widgets-v2/stores/use-transform-enabled.d.ts +17 -0
  512. package/dist/types/widgets-v2/stores/use-transform.d.ts +12 -0
  513. package/dist/types/widgets-v2/stores/widget-context.d.ts +2 -0
  514. package/dist/types/widgets-v2/stores/widget-store-registry.d.ts +74 -0
  515. package/dist/types/widgets-v2/subheader/style.d.ts +10 -0
  516. package/dist/types/widgets-v2/subheader/subheader.d.ts +11 -0
  517. package/dist/types/widgets-v2/table/download.d.ts +18 -0
  518. package/dist/types/widgets-v2/table/helpers.d.ts +32 -0
  519. package/dist/types/widgets-v2/table/index.d.ts +8 -0
  520. package/dist/types/widgets-v2/table/labels.d.ts +22 -0
  521. package/dist/types/widgets-v2/table/skeleton.d.ts +22 -0
  522. package/dist/types/widgets-v2/table/style.d.ts +40 -0
  523. package/dist/types/widgets-v2/table/table-ui.d.ts +44 -0
  524. package/dist/types/widgets-v2/table/table.d.ts +50 -0
  525. package/dist/types/widgets-v2/table/transforms.d.ts +15 -0
  526. package/dist/types/widgets-v2/table/types.d.ts +48 -0
  527. package/dist/types/widgets-v2/timeseries/download.d.ts +17 -0
  528. package/dist/types/widgets-v2/timeseries/index.d.ts +5 -0
  529. package/dist/types/widgets-v2/timeseries/options.d.ts +39 -0
  530. package/dist/types/widgets-v2/timeseries/skeleton.d.ts +8 -0
  531. package/dist/types/widgets-v2/timeseries/transforms.d.ts +10 -0
  532. package/dist/types/widgets-v2/timeseries/types.d.ts +60 -0
  533. package/dist/types/widgets-v2/toolbox/labels.d.ts +5 -0
  534. package/dist/types/widgets-v2/toolbox/style.d.ts +30 -0
  535. package/dist/types/widgets-v2/toolbox/toolbox.d.ts +49 -0
  536. package/dist/types/widgets-v2/types.d.ts +25 -0
  537. package/dist/types/widgets-v2/utils/data-zoom-layout.d.ts +11 -0
  538. package/dist/types/widgets-v2/utils/index.d.ts +3 -0
  539. package/dist/types/widgets-v2/utils/merge-options.d.ts +12 -0
  540. package/dist/types/widgets-v2/utils/resolve-theme-color.d.ts +18 -0
  541. package/dist/types/widgets-v2/wrapper/index.d.ts +4 -0
  542. package/dist/types/widgets-v2/wrapper/labels.d.ts +6 -0
  543. package/dist/types/widgets-v2/wrapper/style.d.ts +103 -0
  544. package/dist/types/widgets-v2/wrapper/widget-actions.d.ts +22 -0
  545. package/dist/types/widgets-v2/wrapper/widget-content.d.ts +12 -0
  546. package/dist/types/widgets-v2/wrapper/widget-wrapper.d.ts +56 -0
  547. package/dist/use-widget-selector-VSPhfhNm.js +12 -0
  548. package/dist/use-widget-selector-VSPhfhNm.js.map +1 -0
  549. package/dist/utils-Dr6gf3vD.js +58 -0
  550. package/dist/utils-Dr6gf3vD.js.map +1 -0
  551. package/dist/widget-store-BFPKYm4R.js +187 -0
  552. package/dist/widget-store-BFPKYm4R.js.map +1 -0
  553. package/dist/widgets/actions.js +2 -837
  554. package/dist/widgets/bar.js +183 -186
  555. package/dist/widgets/bar.js.map +1 -1
  556. package/dist/widgets/category.js +438 -455
  557. package/dist/widgets/category.js.map +1 -1
  558. package/dist/widgets/echart.js +3 -123
  559. package/dist/widgets/error.js +30 -5
  560. package/dist/widgets/error.js.map +1 -1
  561. package/dist/widgets/formula.js +3 -125
  562. package/dist/widgets/histogram.js +185 -167
  563. package/dist/widgets/histogram.js.map +1 -1
  564. package/dist/widgets/loader.js +66 -0
  565. package/dist/widgets/loader.js.map +1 -0
  566. package/dist/widgets/markdown.js +142 -121
  567. package/dist/widgets/markdown.js.map +1 -1
  568. package/dist/widgets/no-data.js +55 -5
  569. package/dist/widgets/no-data.js.map +1 -1
  570. package/dist/widgets/note.js +126 -4
  571. package/dist/widgets/note.js.map +1 -1
  572. package/dist/widgets/pie.js +244 -208
  573. package/dist/widgets/pie.js.map +1 -1
  574. package/dist/widgets/range.js +226 -210
  575. package/dist/widgets/range.js.map +1 -1
  576. package/dist/widgets/scatterplot.js +219 -216
  577. package/dist/widgets/scatterplot.js.map +1 -1
  578. package/dist/widgets/selection-summary.js +39 -38
  579. package/dist/widgets/selection-summary.js.map +1 -1
  580. package/dist/widgets/skeleton-loader.js +23 -23
  581. package/dist/widgets/skeleton-loader.js.map +1 -1
  582. package/dist/widgets/spread.js +150 -159
  583. package/dist/widgets/spread.js.map +1 -1
  584. package/dist/widgets/stores.js +3 -5
  585. package/dist/widgets/subheader.js +49 -50
  586. package/dist/widgets/subheader.js.map +1 -1
  587. package/dist/widgets/table.js +573 -653
  588. package/dist/widgets/table.js.map +1 -1
  589. package/dist/widgets/timeseries.js +175 -170
  590. package/dist/widgets/timeseries.js.map +1 -1
  591. package/dist/widgets/toolbar-actions.js +144 -6105
  592. package/dist/widgets/toolbar-actions.js.map +1 -1
  593. package/dist/widgets/utils.js +18 -0
  594. package/dist/widgets/utils.js.map +1 -0
  595. package/dist/widgets/wrapper.js +265 -287
  596. package/dist/widgets/wrapper.js.map +1 -1
  597. package/dist/widgets-v2/actions.js +4 -0
  598. package/dist/widgets-v2/bar.js +260 -0
  599. package/dist/widgets-v2/bar.js.map +1 -0
  600. package/dist/widgets-v2/category.js +2 -0
  601. package/dist/widgets-v2/echart.js +2 -0
  602. package/dist/widgets-v2/formula.js +2 -0
  603. package/dist/widgets-v2/histogram.js +297 -0
  604. package/dist/widgets-v2/histogram.js.map +1 -0
  605. package/dist/widgets-v2/markdown.js +3 -0
  606. package/dist/widgets-v2/pie.js +374 -0
  607. package/dist/widgets-v2/pie.js.map +1 -0
  608. package/dist/widgets-v2/range.js +2 -0
  609. package/dist/widgets-v2/scatterplot.js +330 -0
  610. package/dist/widgets-v2/scatterplot.js.map +1 -0
  611. package/dist/widgets-v2/spread.js +2 -0
  612. package/dist/widgets-v2/stores.js +2 -0
  613. package/dist/widgets-v2/table.js +2 -0
  614. package/dist/widgets-v2/timeseries.js +294 -0
  615. package/dist/widgets-v2/timeseries.js.map +1 -0
  616. package/dist/widgets-v2/utils.js +2 -0
  617. package/dist/widgets-v2.js +964 -0
  618. package/dist/widgets-v2.js.map +1 -0
  619. package/dist/zoom-toggle-IsF8BnAp.js +163 -0
  620. package/dist/zoom-toggle-IsF8BnAp.js.map +1 -0
  621. package/package.json +109 -17
  622. package/src/chat/bubbles/chat-agent-message-markdown.test.tsx +38 -0
  623. package/src/chat/bubbles/chat-agent-message-markdown.tsx +34 -0
  624. package/src/chat/bubbles/chat-agent-message.test.tsx +42 -0
  625. package/src/chat/bubbles/chat-agent-message.tsx +31 -0
  626. package/src/chat/bubbles/chat-error-message.test.tsx +40 -0
  627. package/src/chat/bubbles/chat-error-message.tsx +47 -0
  628. package/src/chat/bubbles/chat-suggestion-button.test.tsx +24 -0
  629. package/src/chat/bubbles/chat-suggestion-button.tsx +27 -0
  630. package/src/chat/bubbles/chat-user-message.test.tsx +27 -0
  631. package/src/chat/bubbles/chat-user-message.tsx +27 -0
  632. package/src/chat/bubbles/index.ts +5 -0
  633. package/src/chat/bubbles/styles.ts +171 -0
  634. package/src/chat/const.ts +4 -0
  635. package/src/chat/containers/chat-content.test.tsx +269 -0
  636. package/src/chat/containers/chat-content.tsx +145 -0
  637. package/src/chat/containers/chat-footer.test.tsx +93 -0
  638. package/src/chat/containers/chat-footer.tsx +166 -0
  639. package/src/chat/containers/chat-header.test.tsx +28 -0
  640. package/src/chat/containers/chat-header.tsx +29 -0
  641. package/src/chat/containers/chat-starter.test.tsx +32 -0
  642. package/src/chat/containers/chat-starter.tsx +75 -0
  643. package/src/chat/containers/index.ts +4 -0
  644. package/src/chat/containers/styles.ts +187 -0
  645. package/src/chat/feedback/chat-actions-container.test.tsx +64 -0
  646. package/src/chat/feedback/chat-actions-container.tsx +10 -0
  647. package/src/chat/feedback/chat-loader.test.tsx +10 -0
  648. package/src/chat/feedback/chat-loader.tsx +31 -0
  649. package/src/chat/feedback/chat-rating-action.tsx +43 -0
  650. package/src/chat/feedback/chat-thinking.test.tsx +15 -0
  651. package/src/chat/feedback/chat-thinking.tsx +23 -0
  652. package/src/chat/feedback/chat-tool-code-area.test.tsx +23 -0
  653. package/src/chat/feedback/chat-tool-code-area.tsx +71 -0
  654. package/src/chat/feedback/chat-tool-full-view-dialog.test.tsx +39 -0
  655. package/src/chat/feedback/chat-tool-full-view-dialog.tsx +121 -0
  656. package/src/chat/feedback/chat-tool-group.test.tsx +84 -0
  657. package/src/chat/feedback/chat-tool-group.tsx +156 -0
  658. package/src/chat/feedback/chat-tool-trace.test.tsx +81 -0
  659. package/src/chat/feedback/chat-tool-trace.tsx +192 -0
  660. package/src/chat/feedback/get-tool-label.test.tsx +91 -0
  661. package/src/chat/feedback/get-tool-label.ts +13 -0
  662. package/src/chat/feedback/index.ts +8 -0
  663. package/src/chat/feedback/styles.ts +239 -0
  664. package/src/chat/index.ts +62 -0
  665. package/src/chat/types.ts +247 -0
  666. package/src/chat/use-typewriter.test.tsx +38 -0
  667. package/src/chat/use-typewriter.ts +90 -0
  668. package/src/components/basemaps/basemaps.test.tsx +196 -0
  669. package/src/components/basemaps/basemaps.tsx +150 -0
  670. package/src/components/basemaps/const.ts +13 -0
  671. package/src/components/basemaps/group-wrapper.test.tsx +38 -0
  672. package/src/components/basemaps/group-wrapper.tsx +28 -0
  673. package/src/components/basemaps/group.test.tsx +52 -0
  674. package/src/components/basemaps/group.tsx +42 -0
  675. package/src/components/basemaps/header.test.tsx +54 -0
  676. package/src/components/basemaps/header.tsx +36 -0
  677. package/src/components/basemaps/styles.ts +76 -0
  678. package/src/components/basemaps/types.ts +30 -0
  679. package/src/components/common-types.ts +1 -0
  680. package/src/components/copy-button/copy-button.test.tsx +41 -0
  681. package/src/components/copy-button/copy-button.tsx +31 -0
  682. package/src/components/copy-button/types.ts +10 -0
  683. package/src/components/geolocation-controls/const.ts +6 -0
  684. package/src/components/geolocation-controls/geolocation-controls.test.tsx +148 -0
  685. package/src/components/geolocation-controls/geolocation-controls.tsx +126 -0
  686. package/src/components/geolocation-controls/types.ts +17 -0
  687. package/src/components/index.ts +163 -0
  688. package/src/components/lasso-tool/chip.test.tsx +257 -0
  689. package/src/components/lasso-tool/chip.tsx +66 -0
  690. package/src/components/lasso-tool/const.tsx +94 -0
  691. package/src/components/lasso-tool/edit-confirm-toolbar.test.tsx +67 -0
  692. package/src/components/lasso-tool/edit-confirm-toolbar.tsx +48 -0
  693. package/src/components/lasso-tool/geometry-toolbar.test.tsx +804 -0
  694. package/src/components/lasso-tool/geometry-toolbar.tsx +158 -0
  695. package/src/components/lasso-tool/icons.tsx +193 -0
  696. package/src/components/lasso-tool/lasso-tool-inline.test.tsx +759 -0
  697. package/src/components/lasso-tool/lasso-tool-inline.tsx +508 -0
  698. package/src/components/lasso-tool/lasso-tool.test.tsx +700 -0
  699. package/src/components/lasso-tool/lasso-tool.tsx +673 -0
  700. package/src/components/lasso-tool/layer-filters.test.tsx +103 -0
  701. package/src/components/lasso-tool/layer-filters.tsx +242 -0
  702. package/src/components/lasso-tool/message.tsx +36 -0
  703. package/src/components/lasso-tool/options-sections.test.tsx +101 -0
  704. package/src/components/lasso-tool/options-sections.tsx +104 -0
  705. package/src/components/lasso-tool/styles.test.ts +26 -0
  706. package/src/components/lasso-tool/styles.ts +190 -0
  707. package/src/components/lasso-tool/toolbar/actions/accept-action.tsx +34 -0
  708. package/src/components/lasso-tool/toolbar/actions/action-menu.tsx +103 -0
  709. package/src/components/lasso-tool/toolbar/actions/cancel-action.tsx +34 -0
  710. package/src/components/lasso-tool/toolbar/actions/color-action.tsx +201 -0
  711. package/src/components/lasso-tool/toolbar/actions/delete-action.tsx +31 -0
  712. package/src/components/lasso-tool/toolbar/actions/duplicate-action.tsx +30 -0
  713. package/src/components/lasso-tool/toolbar/actions/edit-geometry-action.tsx +44 -0
  714. package/src/components/lasso-tool/toolbar/actions/edit-properties-action.tsx +487 -0
  715. package/src/components/lasso-tool/toolbar/actions/fill-action.tsx +55 -0
  716. package/src/components/lasso-tool/toolbar/actions/intersect-action.tsx +33 -0
  717. package/src/components/lasso-tool/toolbar/actions/label-action.tsx +292 -0
  718. package/src/components/lasso-tool/toolbar/actions/lock-action.tsx +40 -0
  719. package/src/components/lasso-tool/toolbar/actions/redo-action.tsx +35 -0
  720. package/src/components/lasso-tool/toolbar/actions/split-action.tsx +33 -0
  721. package/src/components/lasso-tool/toolbar/actions/stroke-action.tsx +57 -0
  722. package/src/components/lasso-tool/toolbar/actions/style-actions.test.tsx +212 -0
  723. package/src/components/lasso-tool/toolbar/actions/subtract-action.tsx +33 -0
  724. package/src/components/lasso-tool/toolbar/actions/toggle-type-action.tsx +50 -0
  725. package/src/components/lasso-tool/toolbar/actions/undo-action.tsx +35 -0
  726. package/src/components/lasso-tool/toolbar/actions/union-action.tsx +40 -0
  727. package/src/components/lasso-tool/toolbar/button.tsx +62 -0
  728. package/src/components/lasso-tool/toolbar/connected.tsx +383 -0
  729. package/src/components/lasso-tool/toolbar/context.tsx +65 -0
  730. package/src/components/lasso-tool/toolbar/index.ts +70 -0
  731. package/src/components/lasso-tool/toolbar/styles.ts +42 -0
  732. package/src/components/lasso-tool/toolbar/toolbar.test.tsx +77 -0
  733. package/src/components/lasso-tool/toolbar/toolbar.tsx +50 -0
  734. package/src/components/lasso-tool/tools-context.tsx +47 -0
  735. package/src/components/lasso-tool/types.ts +384 -0
  736. package/src/components/lasso-tool/undo-redo.test.tsx +162 -0
  737. package/src/components/lasso-tool/undo-redo.tsx +55 -0
  738. package/src/components/list-data/list-data-skeleton.test.tsx +10 -0
  739. package/src/components/list-data/list-data-skeleton.tsx +40 -0
  740. package/src/components/list-data/list-data.test.tsx +167 -0
  741. package/src/components/list-data/list-data.tsx +124 -0
  742. package/src/components/list-data/styles.ts +37 -0
  743. package/src/components/list-data/types.ts +25 -0
  744. package/src/components/measurement-tools/const.tsx +108 -0
  745. package/src/components/measurement-tools/icons.tsx +54 -0
  746. package/src/components/measurement-tools/measurement-tools.test.tsx +165 -0
  747. package/src/components/measurement-tools/measurement-tools.tsx +467 -0
  748. package/src/components/measurement-tools/styles.ts +92 -0
  749. package/src/components/measurement-tools/types.ts +77 -0
  750. package/src/components/no-data-alert/no-data-alert.test.tsx +69 -0
  751. package/src/components/no-data-alert/no-data-alert.tsx +59 -0
  752. package/src/components/responsive-drawer/responsive-drawer.test.tsx +415 -0
  753. package/src/components/responsive-drawer/responsive-drawer.tsx +219 -0
  754. package/src/components/smart-tooltip/smart-tooltip.test.tsx +168 -0
  755. package/src/components/smart-tooltip/smart-tooltip.tsx +74 -0
  756. package/src/components/tooltip/tooltip.test.tsx +86 -0
  757. package/src/components/tooltip/tooltip.tsx +43 -0
  758. package/src/components/types.ts +1 -0
  759. package/src/components/zoom-controls/styles.ts +27 -0
  760. package/src/components/zoom-controls/types.ts +19 -0
  761. package/src/components/zoom-controls/zoom-controls.test.tsx +101 -0
  762. package/src/components/zoom-controls/zoom-controls.tsx +130 -0
  763. package/src/hooks/index.ts +1 -0
  764. package/src/hooks/use-skeleton.test.tsx +32 -0
  765. package/src/hooks/use-skeleton.ts +19 -0
  766. package/src/hooks/use-widget-ref.ts +34 -0
  767. package/src/legend/components/a11y.ts +14 -0
  768. package/src/legend/components/contexts.ts +57 -0
  769. package/src/legend/components/icons.tsx +22 -0
  770. package/src/legend/components/index.ts +38 -0
  771. package/src/legend/components/legend-actions/legend-actions.tsx +58 -0
  772. package/src/legend/components/legend-actions/styles.ts +9 -0
  773. package/src/legend/components/legend-category/legend-category-ui.tsx +91 -0
  774. package/src/legend/components/legend-category/styles.ts +61 -0
  775. package/src/legend/components/legend-config-select/legend-config-select.tsx +96 -0
  776. package/src/legend/components/legend-config-select/styles.ts +48 -0
  777. package/src/legend/components/legend-group/legend-group.test.tsx +297 -0
  778. package/src/legend/components/legend-group/legend-group.tsx +126 -0
  779. package/src/legend/components/legend-group/styles.ts +184 -0
  780. package/src/legend/components/legend-group-menu/legend-group-menu-items.tsx +132 -0
  781. package/src/legend/components/legend-group-menu/legend-group-menu.tsx +25 -0
  782. package/src/legend/components/legend-icon/legend-icon-ui.tsx +56 -0
  783. package/src/legend/components/legend-icon/styles.ts +56 -0
  784. package/src/legend/components/legend-item/legend-item-ui.test.tsx +362 -0
  785. package/src/legend/components/legend-item/legend-item-ui.tsx +43 -0
  786. package/src/legend/components/legend-item/legend-item.tsx +34 -0
  787. package/src/legend/components/legend-item/styles.ts +11 -0
  788. package/src/legend/components/legend-opacity/legend-opacity.tsx +152 -0
  789. package/src/legend/components/legend-opacity/styles.ts +33 -0
  790. package/src/legend/components/legend-overflow-menu/legend-overflow-menu.tsx +84 -0
  791. package/src/legend/components/legend-panel-menu/legend-panel-menu.tsx +23 -0
  792. package/src/legend/components/legend-proportion/legend-proportion-ui.tsx +122 -0
  793. package/src/legend/components/legend-proportion/styles.ts +43 -0
  794. package/src/legend/components/legend-ramp/legend-ramp-ui.tsx +160 -0
  795. package/src/legend/components/legend-ramp/styles.ts +62 -0
  796. package/src/legend/components/legend-row/legend-row.test.tsx +736 -0
  797. package/src/legend/components/legend-row/legend-row.tsx +170 -0
  798. package/src/legend/components/legend-row/styles.ts +219 -0
  799. package/src/legend/components/legend-row-menu/legend-row-menu-items.tsx +57 -0
  800. package/src/legend/components/legend-row-menu/legend-row-menu.tsx +30 -0
  801. package/src/legend/components/legend-row-menu/legend-zoom-to.tsx +43 -0
  802. package/src/legend/components/legend-sortable/contexts.ts +12 -0
  803. package/src/legend/components/legend-sortable/legend-sortable.test.tsx +144 -0
  804. package/src/legend/components/legend-sortable/legend-sortable.tsx +195 -0
  805. package/src/legend/components/legend-sortable/sortable-entity.tsx +91 -0
  806. package/src/legend/components/legend-sortable/sortable-ids.ts +17 -0
  807. package/src/legend/components/legend-sortable/styles.ts +65 -0
  808. package/src/legend/components/legend-swatch/legend-swatch.test.tsx +109 -0
  809. package/src/legend/components/legend-swatch/legend-swatch.tsx +237 -0
  810. package/src/legend/components/legend-visibility-toggle/legend-visibility-toggle.tsx +133 -0
  811. package/src/legend/components/legend-visible-layers/legend-visible-layers.test.tsx +86 -0
  812. package/src/legend/components/legend-visible-layers/legend-visible-layers.tsx +135 -0
  813. package/src/legend/components/legend-visible-layers/styles.ts +60 -0
  814. package/src/legend/components/run-async-menu-action.ts +20 -0
  815. package/src/legend/index.ts +176 -0
  816. package/src/legend/provider/index.ts +6 -0
  817. package/src/legend/provider/labels.ts +101 -0
  818. package/src/legend/provider/legend-config-context.ts +15 -0
  819. package/src/legend/provider/legend-provider.tsx +102 -0
  820. package/src/legend/stores/index.ts +50 -0
  821. package/src/legend/stores/legend-context.ts +17 -0
  822. package/src/legend/stores/legend-store-registry.ts +745 -0
  823. package/src/legend/stores/legend-store.test.ts +701 -0
  824. package/src/legend/stores/selectors.ts +127 -0
  825. package/src/legend/stores/types.ts +359 -0
  826. package/src/widgets/README.md +277 -0
  827. package/src/widgets/actions/brush-toggle/brush-overlay.test.tsx +465 -0
  828. package/src/widgets/actions/brush-toggle/brush-overlay.tsx +408 -0
  829. package/src/widgets/actions/brush-toggle/brush-toggle.test.tsx +208 -0
  830. package/src/widgets/actions/brush-toggle/brush-toggle.tsx +133 -0
  831. package/src/widgets/actions/brush-toggle/hit-test.test.ts +65 -0
  832. package/src/widgets/actions/brush-toggle/hit-test.ts +45 -0
  833. package/src/widgets/actions/brush-toggle/style.ts +46 -0
  834. package/src/widgets/actions/brush-toggle/types.ts +78 -0
  835. package/src/widgets/actions/change-column/change-column-dnd.test.tsx +193 -0
  836. package/src/widgets/actions/change-column/change-column-icon.tsx +10 -0
  837. package/src/widgets/actions/change-column/change-column.test.tsx +290 -0
  838. package/src/widgets/actions/change-column/change-column.tsx +218 -0
  839. package/src/widgets/actions/change-column/sortable-column-item.test.tsx +124 -0
  840. package/src/widgets/actions/change-column/sortable-column-item.tsx +51 -0
  841. package/src/widgets/actions/change-column/types.ts +20 -0
  842. package/src/widgets/actions/download/download.test.tsx +326 -0
  843. package/src/widgets/actions/download/download.tsx +132 -0
  844. package/src/widgets/actions/download/exports.test.tsx +288 -0
  845. package/src/widgets/actions/download/exports.tsx +118 -0
  846. package/src/widgets/actions/download/types.ts +21 -0
  847. package/src/widgets/actions/fullscreen/fullscreen.test.tsx +269 -0
  848. package/src/widgets/actions/fullscreen/fullscreen.tsx +98 -0
  849. package/src/widgets/actions/fullscreen/styles.ts +17 -0
  850. package/src/widgets/actions/fullscreen/types.ts +32 -0
  851. package/src/widgets/actions/index.ts +73 -0
  852. package/src/widgets/actions/lock-selection/lock-selection.test.tsx +198 -0
  853. package/src/widgets/actions/lock-selection/lock-selection.tsx +128 -0
  854. package/src/widgets/actions/lock-selection/types.ts +43 -0
  855. package/src/widgets/actions/relative-data/relative-data.test.tsx +542 -0
  856. package/src/widgets/actions/relative-data/relative-data.tsx +188 -0
  857. package/src/widgets/actions/relative-data/types.ts +33 -0
  858. package/src/widgets/actions/relative-data/utils.test.ts +223 -0
  859. package/src/widgets/actions/relative-data/utils.ts +58 -0
  860. package/src/widgets/actions/searcher/searcher-toggle.test.tsx +354 -0
  861. package/src/widgets/actions/searcher/searcher-toggle.tsx +72 -0
  862. package/src/widgets/actions/searcher/searcher.tsx +196 -0
  863. package/src/widgets/actions/searcher/types.ts +72 -0
  864. package/src/widgets/actions/shared/styles.ts +12 -0
  865. package/src/widgets/actions/stack-toggle/grouped-bar-chart-icon.tsx +14 -0
  866. package/src/widgets/actions/stack-toggle/stack-toggle.test.tsx +414 -0
  867. package/src/widgets/actions/stack-toggle/stack-toggle.tsx +129 -0
  868. package/src/widgets/actions/stack-toggle/types.ts +29 -0
  869. package/src/widgets/actions/zoom-toggle/style.ts +14 -0
  870. package/src/widgets/actions/zoom-toggle/types.ts +44 -0
  871. package/src/widgets/actions/zoom-toggle/zoom-toggle.test.tsx +322 -0
  872. package/src/widgets/actions/zoom-toggle/zoom-toggle.tsx +218 -0
  873. package/src/widgets/bar/config.ts +140 -0
  874. package/src/widgets/bar/index.ts +9 -0
  875. package/src/widgets/bar/skeleton.tsx +60 -0
  876. package/src/widgets/bar/style.ts +33 -0
  877. package/src/widgets/bar/types.ts +16 -0
  878. package/src/widgets/category/category-ui.test.tsx +399 -0
  879. package/src/widgets/category/category-ui.tsx +166 -0
  880. package/src/widgets/category/components/category-bar.tsx +31 -0
  881. package/src/widgets/category/components/category-legend.tsx +33 -0
  882. package/src/widgets/category/components/category-row-multi.tsx +57 -0
  883. package/src/widgets/category/components/category-row-other.tsx +26 -0
  884. package/src/widgets/category/components/category-row-single.tsx +54 -0
  885. package/src/widgets/category/components/category-rows.test.tsx +213 -0
  886. package/src/widgets/category/config.ts +86 -0
  887. package/src/widgets/category/index.ts +29 -0
  888. package/src/widgets/category/skeleton.tsx +24 -0
  889. package/src/widgets/category/style.ts +134 -0
  890. package/src/widgets/category/types.ts +41 -0
  891. package/src/widgets/echart/const.ts +1 -0
  892. package/src/widgets/echart/echart-ui.test.tsx +526 -0
  893. package/src/widgets/echart/echart-ui.tsx +78 -0
  894. package/src/widgets/echart/echart.test.tsx +546 -0
  895. package/src/widgets/echart/echart.tsx +66 -0
  896. package/src/widgets/echart/index.ts +16 -0
  897. package/src/widgets/echart/options.ts +57 -0
  898. package/src/widgets/echart/shared-resize-observer.ts +45 -0
  899. package/src/widgets/echart/types.ts +45 -0
  900. package/src/widgets/echart/utils.test.ts +277 -0
  901. package/src/widgets/echart/utils.ts +244 -0
  902. package/src/widgets/error/error.test.tsx +331 -0
  903. package/src/widgets/error/error.tsx +51 -0
  904. package/src/widgets/error/index.ts +2 -0
  905. package/src/widgets/error/types.ts +24 -0
  906. package/src/widgets/formula/components/item.test.tsx +249 -0
  907. package/src/widgets/formula/components/item.tsx +21 -0
  908. package/src/widgets/formula/components/prefix.test.tsx +341 -0
  909. package/src/widgets/formula/components/prefix.tsx +19 -0
  910. package/src/widgets/formula/components/row.test.tsx +364 -0
  911. package/src/widgets/formula/components/row.tsx +24 -0
  912. package/src/widgets/formula/components/series.tsx +35 -0
  913. package/src/widgets/formula/components/suffix.test.tsx +383 -0
  914. package/src/widgets/formula/components/suffix.tsx +29 -0
  915. package/src/widgets/formula/components/value.test.tsx +329 -0
  916. package/src/widgets/formula/components/value.tsx +24 -0
  917. package/src/widgets/formula/config.test.ts +37 -0
  918. package/src/widgets/formula/config.ts +38 -0
  919. package/src/widgets/formula/formula-ui.test.tsx +399 -0
  920. package/src/widgets/formula/formula-ui.tsx +30 -0
  921. package/src/widgets/formula/index.ts +24 -0
  922. package/src/widgets/formula/serializer.test.tsx +144 -0
  923. package/src/widgets/formula/serializer.ts +28 -0
  924. package/src/widgets/formula/skeleton.tsx +10 -0
  925. package/src/widgets/formula/style.ts +23 -0
  926. package/src/widgets/formula/types.ts +50 -0
  927. package/src/widgets/histogram/config.ts +230 -0
  928. package/src/widgets/histogram/index.ts +13 -0
  929. package/src/widgets/histogram/skeleton.tsx +52 -0
  930. package/src/widgets/histogram/style.ts +8 -0
  931. package/src/widgets/histogram/types.ts +23 -0
  932. package/src/widgets/loader/index.ts +4 -0
  933. package/src/widgets/loader/loader.tsx +92 -0
  934. package/src/widgets/loader/types.ts +13 -0
  935. package/src/widgets/loader/utils.test.ts +112 -0
  936. package/src/widgets/loader/utils.ts +57 -0
  937. package/src/widgets/markdown/config.ts +28 -0
  938. package/src/widgets/markdown/index.ts +14 -0
  939. package/src/widgets/markdown/markdown-ui.test.tsx +341 -0
  940. package/src/widgets/markdown/markdown-ui.tsx +59 -0
  941. package/src/widgets/markdown/markdown.tsx +20 -0
  942. package/src/widgets/markdown/skeleton.tsx +12 -0
  943. package/src/widgets/markdown/style.ts +28 -0
  944. package/src/widgets/markdown/types.ts +28 -0
  945. package/src/widgets/no-data/index.ts +2 -0
  946. package/src/widgets/no-data/no-data.test.tsx +497 -0
  947. package/src/widgets/no-data/no-data.tsx +112 -0
  948. package/src/widgets/no-data/style.ts +18 -0
  949. package/src/widgets/no-data/types.ts +76 -0
  950. package/src/widgets/note/index.ts +2 -0
  951. package/src/widgets/note/note.test.tsx +391 -0
  952. package/src/widgets/note/note.tsx +124 -0
  953. package/src/widgets/note/style.ts +29 -0
  954. package/src/widgets/note/types.ts +9 -0
  955. package/src/widgets/pie/config.ts +245 -0
  956. package/src/widgets/pie/index.ts +8 -0
  957. package/src/widgets/pie/skeleton.tsx +70 -0
  958. package/src/widgets/pie/style.ts +8 -0
  959. package/src/widgets/pie/types.ts +16 -0
  960. package/src/widgets/range/components/range-item.test.tsx +243 -0
  961. package/src/widgets/range/components/range-item.tsx +214 -0
  962. package/src/widgets/range/config.ts +10 -0
  963. package/src/widgets/range/index.ts +16 -0
  964. package/src/widgets/range/range-ui.test.tsx +203 -0
  965. package/src/widgets/range/range-ui.tsx +14 -0
  966. package/src/widgets/range/serializer.test.ts +70 -0
  967. package/src/widgets/range/serializer.ts +27 -0
  968. package/src/widgets/range/skeleton.tsx +14 -0
  969. package/src/widgets/range/style.ts +37 -0
  970. package/src/widgets/range/types.ts +39 -0
  971. package/src/widgets/scatterplot/config.ts +136 -0
  972. package/src/widgets/scatterplot/index.ts +8 -0
  973. package/src/widgets/scatterplot/skeleton.tsx +59 -0
  974. package/src/widgets/scatterplot/style.ts +21 -0
  975. package/src/widgets/scatterplot/types.ts +17 -0
  976. package/src/widgets/selection-summary/index.ts +6 -0
  977. package/src/widgets/selection-summary/selection-summary.tsx +57 -0
  978. package/src/widgets/selection-summary/style.ts +10 -0
  979. package/src/widgets/selection-summary/types.ts +14 -0
  980. package/src/widgets/skeleton-loader/index.ts +2 -0
  981. package/src/widgets/skeleton-loader/skeleton-loader.test.tsx +139 -0
  982. package/src/widgets/skeleton-loader/skeleton-loader.tsx +35 -0
  983. package/src/widgets/skeleton-loader/types.ts +8 -0
  984. package/src/widgets/spread/components/max-value.tsx +29 -0
  985. package/src/widgets/spread/components/min-value.tsx +29 -0
  986. package/src/widgets/spread/components/separator.tsx +9 -0
  987. package/src/widgets/spread/config.ts +39 -0
  988. package/src/widgets/spread/index.ts +23 -0
  989. package/src/widgets/spread/skeleton.tsx +10 -0
  990. package/src/widgets/spread/spread-ui.test.tsx +368 -0
  991. package/src/widgets/spread/spread-ui.tsx +32 -0
  992. package/src/widgets/spread/style.ts +22 -0
  993. package/src/widgets/spread/types.ts +47 -0
  994. package/src/widgets/stores/index.ts +13 -0
  995. package/src/widgets/stores/types.ts +203 -0
  996. package/src/widgets/stores/use-widget-selector.ts +47 -0
  997. package/src/widgets/stores/widget-store-branches.test.ts +275 -0
  998. package/src/widgets/stores/widget-store-performance.test.ts +750 -0
  999. package/src/widgets/stores/widget-store.test.ts +942 -0
  1000. package/src/widgets/stores/widget-store.ts +484 -0
  1001. package/src/widgets/subheader/index.ts +3 -0
  1002. package/src/widgets/subheader/style.ts +20 -0
  1003. package/src/widgets/subheader/subheader.test.tsx +45 -0
  1004. package/src/widgets/subheader/subheader.tsx +35 -0
  1005. package/src/widgets/subheader/types.ts +11 -0
  1006. package/src/widgets/table/components/cell-header.tsx +58 -0
  1007. package/src/widgets/table/components/cell.tsx +82 -0
  1008. package/src/widgets/table/components/pagination-actions.tsx +67 -0
  1009. package/src/widgets/table/components/pagination.tsx +41 -0
  1010. package/src/widgets/table/components/row.tsx +65 -0
  1011. package/src/widgets/table/config.test.ts +65 -0
  1012. package/src/widgets/table/config.ts +75 -0
  1013. package/src/widgets/table/helpers.test.ts +244 -0
  1014. package/src/widgets/table/helpers.ts +107 -0
  1015. package/src/widgets/table/hooks/use-pagination.test.ts +294 -0
  1016. package/src/widgets/table/hooks/use-pagination.ts +148 -0
  1017. package/src/widgets/table/hooks/use-selection.test.ts +504 -0
  1018. package/src/widgets/table/hooks/use-selection.ts +194 -0
  1019. package/src/widgets/table/hooks/use-sort.test.ts +296 -0
  1020. package/src/widgets/table/hooks/use-sort.ts +131 -0
  1021. package/src/widgets/table/index.ts +55 -0
  1022. package/src/widgets/table/serializer.ts +54 -0
  1023. package/src/widgets/table/skeleton.tsx +48 -0
  1024. package/src/widgets/table/style.ts +34 -0
  1025. package/src/widgets/table/table-ui.tsx +64 -0
  1026. package/src/widgets/table/types.ts +223 -0
  1027. package/src/widgets/timeseries/config.ts +136 -0
  1028. package/src/widgets/timeseries/index.ts +8 -0
  1029. package/src/widgets/timeseries/skeleton.tsx +55 -0
  1030. package/src/widgets/timeseries/style.ts +36 -0
  1031. package/src/widgets/timeseries/types.ts +17 -0
  1032. package/src/widgets/toolbar-actions/index.ts +6 -0
  1033. package/src/widgets/toolbar-actions/styles.ts +38 -0
  1034. package/src/widgets/toolbar-actions/toolbar-actions.test.tsx +691 -0
  1035. package/src/widgets/toolbar-actions/toolbar-actions.tsx +145 -0
  1036. package/src/widgets/toolbar-actions/types.ts +60 -0
  1037. package/src/widgets/utils/chart-config/config-factory.ts +67 -0
  1038. package/src/widgets/utils/chart-config/csv-modifiers.ts +56 -0
  1039. package/src/widgets/utils/chart-config/download-config.ts +22 -0
  1040. package/src/widgets/utils/chart-config/index.ts +29 -0
  1041. package/src/widgets/utils/chart-config/option-builders.test.ts +366 -0
  1042. package/src/widgets/utils/chart-config/option-builders.ts +308 -0
  1043. package/src/widgets/utils/formatter.ts +2 -0
  1044. package/src/widgets/utils/index.ts +26 -0
  1045. package/{dist/types/widgets/_shared/skeleton/index.d.ts → src/widgets/utils/skeleton/index.ts} +2 -1
  1046. package/src/widgets/utils/skeleton/styles.ts +20 -0
  1047. package/src/widgets/wrapper/components/actions.test.tsx +105 -0
  1048. package/src/widgets/wrapper/components/actions.tsx +35 -0
  1049. package/src/widgets/wrapper/components/options.test.tsx +331 -0
  1050. package/src/widgets/wrapper/components/options.tsx +81 -0
  1051. package/src/widgets/wrapper/components/title.test.tsx +126 -0
  1052. package/src/widgets/wrapper/components/title.tsx +35 -0
  1053. package/src/widgets/wrapper/index.ts +16 -0
  1054. package/src/widgets/wrapper/styles.ts +98 -0
  1055. package/src/widgets/wrapper/types.ts +55 -0
  1056. package/src/widgets/wrapper/wrapper-ui.test.tsx +232 -0
  1057. package/src/widgets/wrapper/wrapper-ui.tsx +72 -0
  1058. package/src/widgets/wrapper/wrapper.test.tsx +365 -0
  1059. package/src/widgets/wrapper/wrapper.tsx +60 -0
  1060. package/src/widgets-v2/PERFORMANCE.md +189 -0
  1061. package/src/widgets-v2/actions/brush-toggle/brush-toggle.test.tsx +180 -0
  1062. package/src/widgets-v2/actions/brush-toggle/brush-toggle.tsx +154 -0
  1063. package/src/widgets-v2/actions/brush-toggle/index.ts +3 -0
  1064. package/src/widgets-v2/actions/brush-toggle/labels.ts +9 -0
  1065. package/src/widgets-v2/actions/brush-toggle/style.ts +11 -0
  1066. package/src/widgets-v2/actions/brush-toggle/transforms.test.ts +47 -0
  1067. package/src/widgets-v2/actions/brush-toggle/transforms.ts +31 -0
  1068. package/src/widgets-v2/actions/change-column/change-column-icon.tsx +14 -0
  1069. package/src/widgets-v2/actions/change-column/change-column.test.tsx +59 -0
  1070. package/src/widgets-v2/actions/change-column/change-column.tsx +189 -0
  1071. package/src/widgets-v2/actions/change-column/index.ts +7 -0
  1072. package/src/widgets-v2/actions/change-column/labels.ts +11 -0
  1073. package/src/widgets-v2/actions/change-column/sortable-column-item.tsx +63 -0
  1074. package/src/widgets-v2/actions/change-column/style.ts +58 -0
  1075. package/src/widgets-v2/actions/change-column/types.ts +11 -0
  1076. package/src/widgets-v2/actions/download/constants.ts +14 -0
  1077. package/src/widgets-v2/actions/download/csv-item.test.tsx +77 -0
  1078. package/src/widgets-v2/actions/download/csv-item.tsx +71 -0
  1079. package/src/widgets-v2/actions/download/download.test.tsx +327 -0
  1080. package/src/widgets-v2/actions/download/download.tsx +144 -0
  1081. package/src/widgets-v2/actions/download/exports.test.tsx +198 -0
  1082. package/src/widgets-v2/actions/download/exports.ts +115 -0
  1083. package/src/widgets-v2/actions/download/icons.tsx +35 -0
  1084. package/src/widgets-v2/actions/download/index.ts +15 -0
  1085. package/src/widgets-v2/actions/download/labels.ts +16 -0
  1086. package/src/widgets-v2/actions/download/png-item.test.tsx +72 -0
  1087. package/src/widgets-v2/actions/download/png-item.tsx +53 -0
  1088. package/src/widgets-v2/actions/download/style.ts +3 -0
  1089. package/src/widgets-v2/actions/download/types.ts +32 -0
  1090. package/src/widgets-v2/actions/fullscreen/fullscreen.test.tsx +150 -0
  1091. package/src/widgets-v2/actions/fullscreen/fullscreen.tsx +230 -0
  1092. package/src/widgets-v2/actions/fullscreen/index.ts +7 -0
  1093. package/src/widgets-v2/actions/fullscreen/labels.ts +9 -0
  1094. package/src/widgets-v2/actions/fullscreen/style.ts +59 -0
  1095. package/src/widgets-v2/actions/fullscreen/types.ts +15 -0
  1096. package/src/widgets-v2/actions/index.ts +95 -0
  1097. package/src/widgets-v2/actions/lock-selection/index.ts +10 -0
  1098. package/src/widgets-v2/actions/lock-selection/labels.ts +11 -0
  1099. package/src/widgets-v2/actions/lock-selection/lock-selection.test.tsx +301 -0
  1100. package/src/widgets-v2/actions/lock-selection/lock-selection.tsx +188 -0
  1101. package/src/widgets-v2/actions/lock-selection/style.ts +11 -0
  1102. package/src/widgets-v2/actions/lock-selection/transforms.ts +27 -0
  1103. package/src/widgets-v2/actions/relative-data/index.ts +3 -0
  1104. package/src/widgets-v2/actions/relative-data/labels.ts +9 -0
  1105. package/src/widgets-v2/actions/relative-data/relative-data.test.tsx +71 -0
  1106. package/src/widgets-v2/actions/relative-data/relative-data.tsx +107 -0
  1107. package/src/widgets-v2/actions/relative-data/style.ts +11 -0
  1108. package/src/widgets-v2/actions/relative-data/transforms.test.ts +151 -0
  1109. package/src/widgets-v2/actions/relative-data/transforms.ts +70 -0
  1110. package/src/widgets-v2/actions/searcher/filter.ts +28 -0
  1111. package/src/widgets-v2/actions/searcher/index.ts +8 -0
  1112. package/src/widgets-v2/actions/searcher/labels.ts +13 -0
  1113. package/src/widgets-v2/actions/searcher/searcher-toggle.tsx +91 -0
  1114. package/src/widgets-v2/actions/searcher/searcher.test.tsx +92 -0
  1115. package/src/widgets-v2/actions/searcher/searcher.tsx +111 -0
  1116. package/src/widgets-v2/actions/searcher/style.ts +15 -0
  1117. package/src/widgets-v2/actions/show-all/index.ts +7 -0
  1118. package/src/widgets-v2/actions/show-all/labels.ts +8 -0
  1119. package/src/widgets-v2/actions/show-all/show-all.test.tsx +50 -0
  1120. package/src/widgets-v2/actions/show-all/show-all.tsx +72 -0
  1121. package/src/widgets-v2/actions/show-all/style.ts +8 -0
  1122. package/src/widgets-v2/actions/stack-toggle/index.ts +3 -0
  1123. package/src/widgets-v2/actions/stack-toggle/labels.ts +9 -0
  1124. package/src/widgets-v2/actions/stack-toggle/stack-toggle.test.tsx +61 -0
  1125. package/src/widgets-v2/actions/stack-toggle/stack-toggle.tsx +54 -0
  1126. package/src/widgets-v2/actions/stack-toggle/style.ts +11 -0
  1127. package/src/widgets-v2/actions/stack-toggle/transforms.test.ts +43 -0
  1128. package/src/widgets-v2/actions/stack-toggle/transforms.ts +25 -0
  1129. package/src/widgets-v2/actions/zoom-toggle/index.ts +9 -0
  1130. package/src/widgets-v2/actions/zoom-toggle/labels.ts +9 -0
  1131. package/src/widgets-v2/actions/zoom-toggle/style.ts +11 -0
  1132. package/src/widgets-v2/actions/zoom-toggle/transforms.test.ts +148 -0
  1133. package/src/widgets-v2/actions/zoom-toggle/transforms.ts +171 -0
  1134. package/src/widgets-v2/actions/zoom-toggle/zoom-toggle.test.tsx +107 -0
  1135. package/src/widgets-v2/actions/zoom-toggle/zoom-toggle.tsx +106 -0
  1136. package/src/widgets-v2/bar/download.test.tsx +91 -0
  1137. package/src/widgets-v2/bar/download.tsx +60 -0
  1138. package/src/widgets-v2/bar/index.ts +10 -0
  1139. package/src/widgets-v2/bar/options.test.ts +361 -0
  1140. package/src/widgets-v2/bar/options.ts +333 -0
  1141. package/src/widgets-v2/bar/skeleton.test.tsx +19 -0
  1142. package/src/widgets-v2/bar/skeleton.tsx +69 -0
  1143. package/src/widgets-v2/bar/types.ts +51 -0
  1144. package/src/widgets-v2/category/category-ui.test.tsx +909 -0
  1145. package/src/widgets-v2/category/category-ui.tsx +479 -0
  1146. package/src/widgets-v2/category/category.relative-data.test.tsx +107 -0
  1147. package/src/widgets-v2/category/category.stack-toggle.test.tsx +85 -0
  1148. package/src/widgets-v2/category/category.test.tsx +305 -0
  1149. package/src/widgets-v2/category/category.tsx +130 -0
  1150. package/src/widgets-v2/category/components/category-bar-stacked.test.tsx +121 -0
  1151. package/src/widgets-v2/category/components/category-bar-stacked.tsx +73 -0
  1152. package/src/widgets-v2/category/components/category-bar.test.tsx +64 -0
  1153. package/src/widgets-v2/category/components/category-bar.tsx +49 -0
  1154. package/src/widgets-v2/category/components/category-legend.test.tsx +102 -0
  1155. package/src/widgets-v2/category/components/category-legend.tsx +82 -0
  1156. package/src/widgets-v2/category/components/category-row-multi.tsx +86 -0
  1157. package/src/widgets-v2/category/components/category-row-other.test.tsx +57 -0
  1158. package/src/widgets-v2/category/components/category-row-other.tsx +84 -0
  1159. package/src/widgets-v2/category/components/category-row-single.tsx +76 -0
  1160. package/src/widgets-v2/category/components/category-row-stacked.test.tsx +248 -0
  1161. package/src/widgets-v2/category/components/category-row-stacked.tsx +104 -0
  1162. package/src/widgets-v2/category/download.test.ts +80 -0
  1163. package/src/widgets-v2/category/download.ts +50 -0
  1164. package/src/widgets-v2/category/index.ts +32 -0
  1165. package/src/widgets-v2/category/skeleton.test.tsx +26 -0
  1166. package/src/widgets-v2/category/skeleton.tsx +74 -0
  1167. package/src/widgets-v2/category/style.ts +329 -0
  1168. package/src/widgets-v2/category/types.ts +61 -0
  1169. package/src/widgets-v2/echart/echart-ui.test.tsx +327 -0
  1170. package/src/widgets-v2/echart/echart-ui.tsx +232 -0
  1171. package/src/widgets-v2/echart/echart.test.tsx +229 -0
  1172. package/src/widgets-v2/echart/echart.tsx +199 -0
  1173. package/src/widgets-v2/echart/edge-label-clamp.test.ts +198 -0
  1174. package/src/widgets-v2/echart/edge-label-clamp.ts +217 -0
  1175. package/src/widgets-v2/echart/index.ts +22 -0
  1176. package/src/widgets-v2/echart/shared-resize-observer.test.ts +91 -0
  1177. package/src/widgets-v2/echart/shared-resize-observer.ts +56 -0
  1178. package/src/widgets-v2/echart/style.ts +8 -0
  1179. package/src/widgets-v2/echart/use-chart-selection.test.tsx +120 -0
  1180. package/src/widgets-v2/echart/use-chart-selection.ts +121 -0
  1181. package/src/widgets-v2/formula/delta.tsx +61 -0
  1182. package/src/widgets-v2/formula/download.test.tsx +65 -0
  1183. package/src/widgets-v2/formula/download.tsx +63 -0
  1184. package/src/widgets-v2/formula/formula-ui.test.tsx +91 -0
  1185. package/src/widgets-v2/formula/formula-ui.tsx +66 -0
  1186. package/src/widgets-v2/formula/formula.test.tsx +50 -0
  1187. package/src/widgets-v2/formula/formula.tsx +34 -0
  1188. package/src/widgets-v2/formula/index.ts +17 -0
  1189. package/src/widgets-v2/formula/note.tsx +25 -0
  1190. package/src/widgets-v2/formula/prefix.tsx +25 -0
  1191. package/src/widgets-v2/formula/series.tsx +67 -0
  1192. package/src/widgets-v2/formula/skeleton.test.tsx +21 -0
  1193. package/src/widgets-v2/formula/skeleton.tsx +27 -0
  1194. package/src/widgets-v2/formula/style.ts +31 -0
  1195. package/src/widgets-v2/formula/subcomponents.test.tsx +107 -0
  1196. package/src/widgets-v2/formula/suffix.tsx +25 -0
  1197. package/src/widgets-v2/formula/types.ts +48 -0
  1198. package/src/widgets-v2/formula/value.tsx +31 -0
  1199. package/src/widgets-v2/histogram/download.test.ts +94 -0
  1200. package/src/widgets-v2/histogram/download.ts +56 -0
  1201. package/src/widgets-v2/histogram/index.ts +13 -0
  1202. package/src/widgets-v2/histogram/options.test.ts +411 -0
  1203. package/src/widgets-v2/histogram/options.ts +390 -0
  1204. package/src/widgets-v2/histogram/skeleton.test.tsx +16 -0
  1205. package/src/widgets-v2/histogram/skeleton.tsx +70 -0
  1206. package/src/widgets-v2/histogram/transforms.test.ts +81 -0
  1207. package/src/widgets-v2/histogram/transforms.ts +53 -0
  1208. package/src/widgets-v2/histogram/types.ts +64 -0
  1209. package/src/widgets-v2/index.ts +212 -0
  1210. package/src/widgets-v2/markdown/download.test.ts +66 -0
  1211. package/src/widgets-v2/markdown/download.tsx +56 -0
  1212. package/src/widgets-v2/markdown/index.ts +6 -0
  1213. package/src/widgets-v2/markdown/markdown-content.test.tsx +165 -0
  1214. package/src/widgets-v2/markdown/markdown-content.tsx +81 -0
  1215. package/src/widgets-v2/markdown/markdown-ui.test.tsx +75 -0
  1216. package/src/widgets-v2/markdown/markdown-ui.tsx +55 -0
  1217. package/src/widgets-v2/markdown/markdown.test.tsx +39 -0
  1218. package/src/widgets-v2/markdown/markdown.tsx +17 -0
  1219. package/src/widgets-v2/markdown/skeleton.test.tsx +15 -0
  1220. package/src/widgets-v2/markdown/skeleton.tsx +32 -0
  1221. package/src/widgets-v2/markdown/style.ts +53 -0
  1222. package/src/widgets-v2/markdown/types.ts +4 -0
  1223. package/src/widgets-v2/note/labels.ts +9 -0
  1224. package/src/widgets-v2/note/style.ts +26 -0
  1225. package/src/widgets-v2/note/widget-note.test.tsx +158 -0
  1226. package/src/widgets-v2/note/widget-note.tsx +172 -0
  1227. package/src/widgets-v2/pie/download.test.ts +78 -0
  1228. package/src/widgets-v2/pie/download.ts +51 -0
  1229. package/src/widgets-v2/pie/index.ts +10 -0
  1230. package/src/widgets-v2/pie/options.test.ts +930 -0
  1231. package/src/widgets-v2/pie/options.ts +611 -0
  1232. package/src/widgets-v2/pie/skeleton.test.tsx +20 -0
  1233. package/src/widgets-v2/pie/skeleton.tsx +94 -0
  1234. package/src/widgets-v2/pie/types.ts +62 -0
  1235. package/src/widgets-v2/provider/widget-provider.test.tsx +119 -0
  1236. package/src/widgets-v2/provider/widget-provider.tsx +111 -0
  1237. package/src/widgets-v2/range/index.ts +4 -0
  1238. package/src/widgets-v2/range/range-ui.test.tsx +136 -0
  1239. package/src/widgets-v2/range/range-ui.tsx +278 -0
  1240. package/src/widgets-v2/range/range.test.tsx +68 -0
  1241. package/src/widgets-v2/range/range.tsx +52 -0
  1242. package/src/widgets-v2/range/skeleton.test.tsx +17 -0
  1243. package/src/widgets-v2/range/skeleton.tsx +47 -0
  1244. package/src/widgets-v2/range/style.ts +41 -0
  1245. package/src/widgets-v2/range/types.ts +37 -0
  1246. package/src/widgets-v2/scatterplot/download.test.ts +71 -0
  1247. package/src/widgets-v2/scatterplot/download.ts +50 -0
  1248. package/src/widgets-v2/scatterplot/index.ts +14 -0
  1249. package/src/widgets-v2/scatterplot/options.test.ts +411 -0
  1250. package/src/widgets-v2/scatterplot/options.ts +422 -0
  1251. package/src/widgets-v2/scatterplot/skeleton.test.tsx +17 -0
  1252. package/src/widgets-v2/scatterplot/skeleton.tsx +84 -0
  1253. package/src/widgets-v2/scatterplot/transforms.test.ts +134 -0
  1254. package/src/widgets-v2/scatterplot/transforms.ts +61 -0
  1255. package/src/widgets-v2/scatterplot/types.ts +59 -0
  1256. package/src/widgets-v2/selection-summary/labels.ts +15 -0
  1257. package/src/widgets-v2/selection-summary/selection-summary.test.tsx +59 -0
  1258. package/src/widgets-v2/selection-summary/selection-summary.tsx +82 -0
  1259. package/src/widgets-v2/selection-summary/style.ts +38 -0
  1260. package/src/widgets-v2/spread/band.test.ts +46 -0
  1261. package/src/widgets-v2/spread/band.ts +47 -0
  1262. package/src/widgets-v2/spread/download.test.ts +64 -0
  1263. package/src/widgets-v2/spread/download.ts +55 -0
  1264. package/src/widgets-v2/spread/index.ts +11 -0
  1265. package/src/widgets-v2/spread/separator.tsx +11 -0
  1266. package/src/widgets-v2/spread/skeleton.test.tsx +17 -0
  1267. package/src/widgets-v2/spread/skeleton.tsx +38 -0
  1268. package/src/widgets-v2/spread/spread-ui.test.tsx +108 -0
  1269. package/src/widgets-v2/spread/spread-ui.tsx +52 -0
  1270. package/src/widgets-v2/spread/spread.test.tsx +50 -0
  1271. package/src/widgets-v2/spread/spread.tsx +31 -0
  1272. package/src/widgets-v2/spread/types.ts +27 -0
  1273. package/src/widgets-v2/state/labels.test.ts +33 -0
  1274. package/src/widgets-v2/state/labels.ts +20 -0
  1275. package/src/widgets-v2/state/style.ts +25 -0
  1276. package/src/widgets-v2/state/widget-state.test.tsx +294 -0
  1277. package/src/widgets-v2/state/widget-state.tsx +184 -0
  1278. package/src/widgets-v2/stores/index.ts +49 -0
  1279. package/src/widgets-v2/stores/pipeline-middleware.test.ts +187 -0
  1280. package/src/widgets-v2/stores/pipeline-middleware.ts +91 -0
  1281. package/src/widgets-v2/stores/transforms.test.ts +162 -0
  1282. package/src/widgets-v2/stores/transforms.ts +70 -0
  1283. package/src/widgets-v2/stores/types.ts +64 -0
  1284. package/src/widgets-v2/stores/use-echart-instance.test.tsx +91 -0
  1285. package/src/widgets-v2/stores/use-echart-instance.ts +29 -0
  1286. package/src/widgets-v2/stores/use-transform-enabled.test.tsx +127 -0
  1287. package/src/widgets-v2/stores/use-transform-enabled.ts +25 -0
  1288. package/src/widgets-v2/stores/use-transform.test.tsx +262 -0
  1289. package/src/widgets-v2/stores/use-transform.ts +158 -0
  1290. package/src/widgets-v2/stores/widget-context.test.tsx +58 -0
  1291. package/src/widgets-v2/stores/widget-context.ts +15 -0
  1292. package/src/widgets-v2/stores/widget-store-registry.test.ts +292 -0
  1293. package/src/widgets-v2/stores/widget-store-registry.ts +239 -0
  1294. package/src/widgets-v2/subheader/style.ts +12 -0
  1295. package/src/widgets-v2/subheader/subheader.test.tsx +30 -0
  1296. package/src/widgets-v2/subheader/subheader.tsx +16 -0
  1297. package/src/widgets-v2/table/download.test.ts +85 -0
  1298. package/src/widgets-v2/table/download.ts +43 -0
  1299. package/src/widgets-v2/table/helpers.test.ts +233 -0
  1300. package/src/widgets-v2/table/helpers.ts +131 -0
  1301. package/src/widgets-v2/table/index.ts +24 -0
  1302. package/src/widgets-v2/table/labels.tsx +41 -0
  1303. package/src/widgets-v2/table/skeleton.test.tsx +26 -0
  1304. package/src/widgets-v2/table/skeleton.tsx +65 -0
  1305. package/src/widgets-v2/table/style.ts +43 -0
  1306. package/src/widgets-v2/table/table-ui.test.tsx +200 -0
  1307. package/src/widgets-v2/table/table-ui.tsx +364 -0
  1308. package/src/widgets-v2/table/table.test.tsx +119 -0
  1309. package/src/widgets-v2/table/table.tsx +179 -0
  1310. package/src/widgets-v2/table/transforms.test.ts +40 -0
  1311. package/src/widgets-v2/table/transforms.ts +28 -0
  1312. package/src/widgets-v2/table/types.ts +55 -0
  1313. package/src/widgets-v2/test-utils.ts +107 -0
  1314. package/src/widgets-v2/timeseries/download.test.ts +95 -0
  1315. package/src/widgets-v2/timeseries/download.ts +82 -0
  1316. package/src/widgets-v2/timeseries/index.ts +11 -0
  1317. package/src/widgets-v2/timeseries/options.test.ts +399 -0
  1318. package/src/widgets-v2/timeseries/options.ts +342 -0
  1319. package/src/widgets-v2/timeseries/skeleton.test.tsx +13 -0
  1320. package/src/widgets-v2/timeseries/skeleton.tsx +76 -0
  1321. package/src/widgets-v2/timeseries/transforms.test.ts +49 -0
  1322. package/src/widgets-v2/timeseries/transforms.ts +31 -0
  1323. package/src/widgets-v2/timeseries/types.ts +65 -0
  1324. package/src/widgets-v2/toolbox/labels.ts +9 -0
  1325. package/src/widgets-v2/toolbox/style.ts +33 -0
  1326. package/src/widgets-v2/toolbox/toolbox.test.tsx +200 -0
  1327. package/src/widgets-v2/toolbox/toolbox.tsx +309 -0
  1328. package/src/widgets-v2/types.ts +25 -0
  1329. package/src/widgets-v2/utils/data-zoom-layout.ts +26 -0
  1330. package/src/widgets-v2/utils/index.ts +3 -0
  1331. package/src/widgets-v2/utils/merge-options.test.ts +52 -0
  1332. package/src/widgets-v2/utils/merge-options.ts +50 -0
  1333. package/src/widgets-v2/utils/resolve-theme-color.test.ts +43 -0
  1334. package/src/widgets-v2/utils/resolve-theme-color.ts +34 -0
  1335. package/src/widgets-v2/wrapper/index.ts +14 -0
  1336. package/src/widgets-v2/wrapper/labels.ts +11 -0
  1337. package/src/widgets-v2/wrapper/style.ts +128 -0
  1338. package/src/widgets-v2/wrapper/widget-actions.test.tsx +52 -0
  1339. package/src/widgets-v2/wrapper/widget-actions.tsx +43 -0
  1340. package/src/widgets-v2/wrapper/widget-content.test.tsx +27 -0
  1341. package/src/widgets-v2/wrapper/widget-content.tsx +29 -0
  1342. package/src/widgets-v2/wrapper/widget-wrapper.test.tsx +255 -0
  1343. package/src/widgets-v2/wrapper/widget-wrapper.tsx +194 -0
  1344. package/dist/cjs-D9ro6BXv.js +0 -85
  1345. package/dist/cjs-D9ro6BXv.js.map +0 -1
  1346. package/dist/components.js.map +0 -1
  1347. package/dist/error-B2IJ9d2h.js +0 -38
  1348. package/dist/error-B2IJ9d2h.js.map +0 -1
  1349. package/dist/exports-Cr43OCul.js +0 -51
  1350. package/dist/exports-Cr43OCul.js.map +0 -1
  1351. package/dist/lasso-tool-CYn3ivf-.js +0 -534
  1352. package/dist/lasso-tool-CYn3ivf-.js.map +0 -1
  1353. package/dist/markdown-ui-CpNYUPqC.js +0 -68
  1354. package/dist/markdown-ui-CpNYUPqC.js.map +0 -1
  1355. package/dist/no-data-C54XJt13.js +0 -61
  1356. package/dist/no-data-C54XJt13.js.map +0 -1
  1357. package/dist/note-Clng2ej6.js +0 -124
  1358. package/dist/note-Clng2ej6.js.map +0 -1
  1359. package/dist/options-D9wflre6.js +0 -49
  1360. package/dist/options-D9wflre6.js.map +0 -1
  1361. package/dist/row-DLKZN5aF.js +0 -33
  1362. package/dist/row-DLKZN5aF.js.map +0 -1
  1363. package/dist/row-DrHwXNvF.js +0 -35
  1364. package/dist/row-DrHwXNvF.js.map +0 -1
  1365. package/dist/series-Cf1QPZHV.js +0 -83
  1366. package/dist/series-Cf1QPZHV.js.map +0 -1
  1367. package/dist/series-Do02NQUF.js +0 -91
  1368. package/dist/series-Do02NQUF.js.map +0 -1
  1369. package/dist/smart-tooltip-BEtBaIdz.js +0 -39
  1370. package/dist/smart-tooltip-BEtBaIdz.js.map +0 -1
  1371. package/dist/styles-CcC5L2cr.js +0 -77
  1372. package/dist/styles-CcC5L2cr.js.map +0 -1
  1373. package/dist/styles-dOu_pRNb.js +0 -77
  1374. package/dist/styles-dOu_pRNb.js.map +0 -1
  1375. package/dist/tooltip-BDnrRKrp.js +0 -25
  1376. package/dist/tooltip-BDnrRKrp.js.map +0 -1
  1377. package/dist/types/common/common.d.ts +0 -3
  1378. package/dist/types/common/index.d.ts +0 -26
  1379. package/dist/types/common/lasso-tools.d.ts +0 -36
  1380. package/dist/types/common/measurement-tools.d.ts +0 -65
  1381. package/dist/types/hooks/use-debounce.d.ts +0 -19
  1382. package/dist/types/widgets/_shared/chart-config/index.d.ts +0 -7
  1383. package/dist/types/widgets/_shared/chart-config/option-builders.d.ts +0 -34
  1384. package/dist/types/widgets/actions/relative-data/style.d.ts +0 -8
  1385. package/dist/types/widgets/actions/relative-data/utils.test.d.ts +0 -1
  1386. package/dist/types/widgets/actions/zoom-toggle/index.d.ts +0 -2
  1387. package/dist/types/widgets/category/components/index.d.ts +0 -10
  1388. package/dist/types/widgets/index.d.ts +0 -8
  1389. package/dist/types/widgets/range/serializer.test.d.ts +0 -1
  1390. package/dist/types/widgets/root/index.d.ts +0 -3
  1391. package/dist/types/widgets/root/root.d.ts +0 -2
  1392. package/dist/types/widgets/root/types.d.ts +0 -9
  1393. package/dist/types/widgets/root/utils.d.ts +0 -1
  1394. package/dist/types/widgets/stores/widget-store.test.d.ts +0 -1
  1395. package/dist/types/widgets/table/components/index.d.ts +0 -4
  1396. package/dist/types/widgets/table/helpers.test.d.ts +0 -1
  1397. package/dist/types/widgets/table/hooks/index.d.ts +0 -6
  1398. package/dist/types/widgets/table/hooks/use-pagination.test.d.ts +0 -1
  1399. package/dist/types/widgets/table/hooks/use-selection.test.d.ts +0 -1
  1400. package/dist/types/widgets/table/hooks/use-sort.test.d.ts +0 -1
  1401. package/dist/utils-DNtU8q7E.js +0 -144
  1402. package/dist/utils-DNtU8q7E.js.map +0 -1
  1403. package/dist/utils-Dv5Z47UQ.js +0 -144
  1404. package/dist/utils-Dv5Z47UQ.js.map +0 -1
  1405. package/dist/widget-store-CB6Trp_0.js +0 -131
  1406. package/dist/widget-store-CB6Trp_0.js.map +0 -1
  1407. package/dist/widget-store-yDO2ul8g.js +0 -44
  1408. package/dist/widget-store-yDO2ul8g.js.map +0 -1
  1409. package/dist/widgets/actions.js.map +0 -1
  1410. package/dist/widgets/echart.js.map +0 -1
  1411. package/dist/widgets/formula.js.map +0 -1
  1412. package/dist/widgets/root.js +0 -68
  1413. package/dist/widgets/root.js.map +0 -1
  1414. package/dist/widgets/stores.js.map +0 -1
  1415. package/dist/widgets.js +0 -11
  1416. package/dist/widgets.js.map +0 -1
  1417. /package/dist/types/widgets/{_shared → utils}/chart-config/csv-modifiers.d.ts +0 -0
  1418. /package/dist/types/widgets/{_shared → utils}/skeleton/styles.d.ts +0 -0
@@ -0,0 +1,1318 @@
1
+ import "./components-FED-ArwH.js";
2
+ import { t as e } from "./tooltip-DJUGNZxY.js";
3
+ import { n as t, t as n } from "./widget-store-BFPKYm4R.js";
4
+ import { t as r } from "./use-widget-selector-VSPhfhNm.js";
5
+ import { i, o as a, r as o, t as s } from "./shared-resize-observer-BEiP2rQt.js";
6
+ import { c } from "react/compiler-runtime";
7
+ import { useEffect as l, useRef as u, useState as d, useSyncExternalStore as f } from "react";
8
+ import { Box as p, CircularProgress as m, Dialog as h, DialogContent as g, DialogTitle as _, IconButton as v, InputAdornment as y, ListItemIcon as b, ListItemText as x, Menu as S, MenuItem as C, SvgIcon as w, TextField as T, Typography as E, useTheme as D } from "@mui/material";
9
+ import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
10
+ import { CheckBoxOutlined as j, ClearOutlined as M, Close as N, FileDownloadOutlined as P, FullscreenOutlined as F, HighlightAltOutlined as I, ImageOutlined as L, PercentOutlined as R, SearchOutlined as z, SubdirectoryArrowLeftOutlined as B, ZoomInOutlined as V } from "@mui/icons-material";
11
+ import { SortableContext as H, arrayMove as U, sortableKeyboardCoordinates as W, useSortable as G, verticalListSortingStrategy as K } from "@dnd-kit/sortable";
12
+ import { CSS as q } from "@dnd-kit/utilities";
13
+ import { DndContext as J, KeyboardSensor as Y, PointerSensor as X, closestCenter as Z, useSensor as Q, useSensors as ee } from "@dnd-kit/core";
14
+ import $ from "html2canvas";
15
+ import { createPortal as te } from "react-dom";
16
+ //#region src/widgets/actions/fullscreen/styles.ts
17
+ var ne = {
18
+ title: { container: {
19
+ display: "flex",
20
+ alignItems: "center",
21
+ justifyContent: "space-between",
22
+ gap: 1
23
+ } },
24
+ content: {
25
+ display: "flex",
26
+ flexDirection: "column",
27
+ gap: ({ spacing: e }) => e(1)
28
+ }
29
+ }, re = {};
30
+ function ie(e) {
31
+ let n = c(42), { id: i, labels: a, children: o, Icon: s, IconButtonProps: l, DialogContentProps: u, DialogProps: d } = e, f = u === void 0 ? re : u, p, m;
32
+ n[0] === f ? (p = n[1], m = n[2]) : ({sx: m, ...p} = f, n[0] = f, n[1] = p, n[2] = m);
33
+ let { isFullScreen: y, title: b } = r(i, ae), x;
34
+ n[3] === i ? x = n[4] : (x = (e) => {
35
+ t.setWidget(i, { isFullScreen: e.isFullScreen });
36
+ }, n[3] = i, n[4] = x);
37
+ let S = x, C;
38
+ n[5] === S ? C = n[6] : (C = () => S({ isFullScreen: !0 }), n[5] = S, n[6] = C);
39
+ let w;
40
+ n[7] === s ? w = n[8] : (w = s ?? /* @__PURE__ */ k(F, {}), n[7] = s, n[8] = w);
41
+ let T;
42
+ n[9] !== l || n[10] !== C || n[11] !== w ? (T = /* @__PURE__ */ k(v, {
43
+ ...l,
44
+ onClick: C,
45
+ children: w
46
+ }), n[9] = l, n[10] = C, n[11] = w, n[12] = T) : T = n[12];
47
+ let D = !!y, j = a?.ariaLabel ?? `fullscreen-dialog-title-${i}`, M;
48
+ n[13] === S ? M = n[14] : (M = () => S({ isFullScreen: !1 }), n[13] = S, n[14] = M);
49
+ let P = `fullscreen-dialog-title-${i}`, I;
50
+ n[15] === b ? I = n[16] : (I = /* @__PURE__ */ k(E, {
51
+ variant: "subtitle1",
52
+ component: "span",
53
+ children: b
54
+ }), n[15] = b, n[16] = I);
55
+ let L;
56
+ n[17] === S ? L = n[18] : (L = () => S({ isFullScreen: !1 }), n[17] = S, n[18] = L);
57
+ let R;
58
+ n[19] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ k(N, {}), n[19] = R) : R = n[19];
59
+ let z;
60
+ n[20] === L ? z = n[21] : (z = /* @__PURE__ */ k(v, {
61
+ onClick: L,
62
+ children: R
63
+ }), n[20] = L, n[21] = z);
64
+ let B;
65
+ n[22] !== P || n[23] !== I || n[24] !== z ? (B = /* @__PURE__ */ A(_, {
66
+ id: P,
67
+ sx: ne.title.container,
68
+ children: [I, z]
69
+ }), n[22] = P, n[23] = I, n[24] = z, n[25] = B) : B = n[25];
70
+ let V;
71
+ n[26] === m ? V = n[27] : (V = {
72
+ ...ne.content,
73
+ ...m
74
+ }, n[26] = m, n[27] = V);
75
+ let H;
76
+ n[28] !== p || n[29] !== o || n[30] !== V ? (H = /* @__PURE__ */ k(g, {
77
+ sx: V,
78
+ ...p,
79
+ children: o
80
+ }), n[28] = p, n[29] = o, n[30] = V, n[31] = H) : H = n[31];
81
+ let U;
82
+ n[32] !== d || n[33] !== B || n[34] !== H || n[35] !== D || n[36] !== j || n[37] !== M ? (U = /* @__PURE__ */ A(h, {
83
+ maxWidth: !1,
84
+ open: D,
85
+ keepMounted: !0,
86
+ "aria-labelledby": j,
87
+ ...d,
88
+ onClose: M,
89
+ children: [B, H]
90
+ }), n[32] = d, n[33] = B, n[34] = H, n[35] = D, n[36] = j, n[37] = M, n[38] = U) : U = n[38];
91
+ let W;
92
+ return n[39] !== U || n[40] !== T ? (W = /* @__PURE__ */ A(O, { children: [T, U] }), n[39] = U, n[40] = T, n[41] = W) : W = n[41], W;
93
+ }
94
+ function ae(e) {
95
+ return {
96
+ isFullScreen: e?.isFullScreen,
97
+ title: e?.title
98
+ };
99
+ }
100
+ //#endregion
101
+ //#region src/widgets/actions/download/download.tsx
102
+ var oe = {};
103
+ function se(e) {
104
+ let t = c(31), { id: n, items: i, labels: a, Icon: o, IconButtonProps: s } = e, l = a === void 0 ? oe : a, { data: u } = r(n, ce), [f, p] = d(!1), [h, g] = d(null), _;
105
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (_ = (e) => {
106
+ e.stopPropagation(), g(e.currentTarget);
107
+ }, t[0] = _) : _ = t[0];
108
+ let y = _, w;
109
+ t[1] === n ? w = t[2] : (w = (e, t) => {
110
+ let r = document.createElement("a");
111
+ r.href = e, r.download = t.filename ?? n, r.style.display = "none", document.body.appendChild(r), r.click(), document.body.removeChild(r), t.callback?.(r.href);
112
+ }, t[1] = n, t[2] = w);
113
+ let T = w, E;
114
+ t[3] !== u || t[4] !== T ? (E = async (e, t) => {
115
+ e.stopPropagation(), p(!0), g(null);
116
+ let n = await t.modifier(u);
117
+ if (!n) {
118
+ p(!1);
119
+ return;
120
+ }
121
+ T(n, t), p(!1);
122
+ }, t[3] = u, t[4] = T, t[5] = E) : E = t[5];
123
+ let D = E, j = l.ariaLabel ?? "download options", M = f || i.length === 0, N = f || h ? "active" : "", F;
124
+ t[6] !== o || t[7] !== f ? (F = f ? /* @__PURE__ */ k(m, {
125
+ size: 18,
126
+ color: "inherit"
127
+ }) : o ?? /* @__PURE__ */ k(P, {}), t[6] = o, t[7] = f, t[8] = F) : F = t[8];
128
+ let I;
129
+ t[9] !== s || t[10] !== j || t[11] !== M || t[12] !== N || t[13] !== F ? (I = /* @__PURE__ */ k(v, {
130
+ size: "small",
131
+ "aria-label": j,
132
+ "aria-controls": "options-menu",
133
+ "aria-haspopup": "true",
134
+ onClick: y,
135
+ ...s,
136
+ disabled: M,
137
+ className: N,
138
+ children: F
139
+ }), t[9] = s, t[10] = j, t[11] = M, t[12] = N, t[13] = F, t[14] = I) : I = t[14];
140
+ let L, R;
141
+ t[15] === Symbol.for("react.memo_cache_sentinel") ? (L = {
142
+ vertical: "bottom",
143
+ horizontal: "right"
144
+ }, R = {
145
+ vertical: "top",
146
+ horizontal: "right"
147
+ }, t[15] = L, t[16] = R) : (L = t[15], R = t[16]);
148
+ let z = !!h, B, V;
149
+ t[17] === Symbol.for("react.memo_cache_sentinel") ? (B = () => g(null), V = { sx: { paddingBottom: 0 } }, t[17] = B, t[18] = V) : (B = t[17], V = t[18]);
150
+ let H;
151
+ if (t[19] !== D || t[20] !== i) {
152
+ let e;
153
+ t[22] === D ? e = t[23] : (e = (e) => /* @__PURE__ */ A(C, {
154
+ disabled: e.disabled,
155
+ onClick: (t) => void D(t, e),
156
+ children: [e.icon && /* @__PURE__ */ k(b, {
157
+ sx: { color: "text.primary" },
158
+ children: e.icon
159
+ }), /* @__PURE__ */ k(x, { children: e.label })]
160
+ }, e.id), t[22] = D, t[23] = e), H = i.map(e), t[19] = D, t[20] = i, t[21] = H;
161
+ } else H = t[21];
162
+ let U;
163
+ t[24] !== h || t[25] !== z || t[26] !== H ? (U = /* @__PURE__ */ k(S, {
164
+ variant: "menu",
165
+ elevation: 8,
166
+ anchorOrigin: L,
167
+ transformOrigin: R,
168
+ anchorEl: h,
169
+ open: z,
170
+ onClose: B,
171
+ MenuListProps: V,
172
+ children: H
173
+ }), t[24] = h, t[25] = z, t[26] = H, t[27] = U) : U = t[27];
174
+ let W;
175
+ return t[28] !== U || t[29] !== I ? (W = /* @__PURE__ */ A(O, { children: [I, U] }), t[28] = U, t[29] = I, t[30] = W) : W = t[30], W;
176
+ }
177
+ function ce(e) {
178
+ return { data: e?.data };
179
+ }
180
+ //#endregion
181
+ //#region src/widgets/actions/download/exports.tsx
182
+ function le(e) {
183
+ let t = e == null ? "" : typeof e == "object" ? JSON.stringify(e) : String(e);
184
+ return /[",\n]/.test(t) ? `"${t.replace(/"/g, "\"\"")}"` : t;
185
+ }
186
+ async function ue(e) {
187
+ let t = e.map((e) => e.map(le).join(",")).join("\n"), n = new Blob([t], { type: "text/csv;charset=utf-8;" });
188
+ return Promise.resolve(URL.createObjectURL(n));
189
+ }
190
+ var de = {
191
+ id: "csv",
192
+ label: "CSV",
193
+ icon: /* @__PURE__ */ k(w, { children: /* @__PURE__ */ k("svg", {
194
+ xmlns: "http://www.w3.org/2000/svg",
195
+ width: "18",
196
+ height: "18",
197
+ fill: "none",
198
+ viewBox: "0 0 18 18",
199
+ children: /* @__PURE__ */ k("path", {
200
+ fill: "currentColor",
201
+ d: "M4.313 11.25h2.25v-1.125H4.688v-2.25h1.875V6.75h-2.25a.726.726 0 0 0-.535.216.726.726 0 0 0-.216.534v3c0 .213.072.39.216.534a.726.726 0 0 0 .534.216Zm2.925 0h2.25c.212 0 .39-.072.534-.216a.726.726 0 0 0 .216-.534V9.375a.931.931 0 0 0-.216-.59.658.658 0 0 0-.534-.273H8.363v-.637h1.875V6.75h-2.25a.726.726 0 0 0-.535.216.726.726 0 0 0-.216.534v1.125c0 .213.072.403.216.572a.675.675 0 0 0 .534.253h1.126v.675H7.238v1.125Zm4.95 0h1.124l1.313-4.5H13.5l-.75 2.588L12 6.75h-1.125l1.313 4.5ZM3 15c-.413 0-.766-.147-1.06-.44a1.445 1.445 0 0 1-.44-1.06v-9c0-.412.147-.766.44-1.06C2.235 3.148 2.588 3 3 3h12c.412 0 .766.147 1.06.44.293.294.44.648.44 1.06v9c0 .412-.147.766-.44 1.06-.294.293-.647.44-1.06.44H3Zm0-1.5h12v-9H3v9Z"
202
+ })
203
+ }) }),
204
+ modifier: ue,
205
+ callback: (e) => {
206
+ URL.revokeObjectURL(e);
207
+ }
208
+ };
209
+ async function fe(e) {
210
+ if (!e || typeof e == "function" || !e.current) {
211
+ console.warn("[CARTO downloadFileToPNG] Invalid ref passed to downloadFileToPNG. Expected a React ref object with a .current property pointing to an HTMLElement. Download aborted.");
212
+ return;
213
+ }
214
+ let t = e.current.cloneNode(!0);
215
+ t.querySelector(".widget-toolbar-container")?.remove(), t.querySelector(".widget-wrapper-actions")?.remove(), document.body.appendChild(t);
216
+ let n = t.getBoundingClientRect(), r = {
217
+ useCORS: !0,
218
+ scale: 2,
219
+ backgroundColor: "#fff",
220
+ width: n.width,
221
+ height: n.height
222
+ }, i = (await $(t, r)).toDataURL("image/png");
223
+ return document.body.removeChild(t), Promise.resolve(i);
224
+ }
225
+ var pe = {
226
+ id: "png",
227
+ label: "PNG",
228
+ icon: /* @__PURE__ */ k(L, {}),
229
+ modifier: fe
230
+ }, me = { trigger: { "&[data-active=\"true\"]": { background: (e) => e.palette.primary.relatedLight } } };
231
+ //#endregion
232
+ //#region src/widgets/actions/relative-data/utils.ts
233
+ function he(e) {
234
+ return e.reduce((e, t) => t.reduce((e, t) => {
235
+ if (Array.isArray(t)) {
236
+ let n = t.at(-1);
237
+ return typeof n == "number" ? e + n : e;
238
+ }
239
+ return Object.entries(t).reduce((e, [t, n]) => t === "name" ? e : typeof n == "number" ? e + n : e, e);
240
+ }, e), 0);
241
+ }
242
+ function ge(e, t) {
243
+ return t === 0 ? e : e.map((e) => e.map((e) => {
244
+ if (Array.isArray(e)) return e.map((n, r) => r === e.length - 1 && typeof n == "number" ? n / t * 100 : n);
245
+ let n = {};
246
+ for (let [r, i] of Object.entries(e)) {
247
+ if (r === "name") {
248
+ n[r] = i;
249
+ continue;
250
+ }
251
+ n[r] = typeof i == "number" ? i / t * 100 : i;
252
+ }
253
+ return n;
254
+ }));
255
+ }
256
+ //#endregion
257
+ //#region src/widgets/actions/relative-data/relative-data.tsx
258
+ var _e = "relative-data", ve = "relative-data-config";
259
+ function ye(n) {
260
+ let i = c(36), { id: a, order: o, defaultIsRelative: s, labels: d, Icon: f, IconButtonProps: p } = n, m = o === void 0 ? 10 : o, h = s !== void 0 && s, g = u(void 0), _;
261
+ i[0] === h ? _ = i[1] : (_ = (e) => ({ isRelative: e?.isRelative ?? h }), i[0] = h, i[1] = _);
262
+ let { isRelative: y } = r(a, _), b, x;
263
+ i[2] !== h || i[3] !== a ? (b = () => {
264
+ let e = t.getWidget(a);
265
+ e?.isRelative === void 0 && (h ? t.setWidget(a, {
266
+ isRelative: !0,
267
+ originalFormatter: e?.formatter,
268
+ originalMax: e?.max
269
+ }) : t.setWidget(a, { isRelative: h }));
270
+ }, x = [a, h], i[2] = h, i[3] = a, i[4] = b, i[5] = x) : (b = i[4], x = i[5]), l(b, x);
271
+ let S, C;
272
+ i[6] !== h || i[7] !== a || i[8] !== m ? (S = () => (t.registerTool(a, {
273
+ id: _e,
274
+ order: m,
275
+ enabled: h,
276
+ fn: be
277
+ }), () => t.unregisterTool(a, _e)), C = [
278
+ a,
279
+ m,
280
+ h
281
+ ], i[6] = h, i[7] = a, i[8] = m, i[9] = S, i[10] = C) : (S = i[9], C = i[10]), l(S, C);
282
+ let w, T;
283
+ i[11] !== a || i[12] !== y ? (w = () => {
284
+ t.setToolEnabled(a, _e, y);
285
+ }, T = [a, y], i[11] = a, i[12] = y, i[13] = w, i[14] = T) : (w = i[13], T = i[14]), l(w, T);
286
+ let E;
287
+ i[15] !== a || i[16] !== m ? (E = () => (t.registerTool(a, {
288
+ id: ve,
289
+ type: "config",
290
+ order: m,
291
+ enabled: !0,
292
+ fn: (e) => {
293
+ let n = e, r = t.getWidget(a), i = r?.sourceData != null && !(Array.isArray(r.sourceData) && r.sourceData.length === 0);
294
+ if (r?.isRelative) {
295
+ if (!i) return n;
296
+ if (!g.current) {
297
+ let e = r?.locale;
298
+ g.current = (t) => new Intl.NumberFormat(e, {
299
+ style: "percent",
300
+ minimumFractionDigits: 1,
301
+ maximumFractionDigits: 1
302
+ }).format(t / 100);
303
+ }
304
+ return {
305
+ ...n,
306
+ formatter: g.current,
307
+ max: 100
308
+ };
309
+ }
310
+ return g.current = void 0, r != null && "originalFormatter" in r ? {
311
+ ...n,
312
+ formatter: r.originalFormatter,
313
+ max: r.originalMax
314
+ } : n;
315
+ }
316
+ }), () => {
317
+ let e = t.getWidget(a);
318
+ e?.isRelative && "originalFormatter" in e && t.setWidget(a, {
319
+ formatter: e.originalFormatter,
320
+ max: e.originalMax
321
+ }), g.current = void 0, t.unregisterTool(a, ve);
322
+ }), i[15] = a, i[16] = m, i[17] = E) : E = i[17];
323
+ let D;
324
+ i[18] !== h || i[19] !== a || i[20] !== m ? (D = [
325
+ a,
326
+ m,
327
+ h
328
+ ], i[18] = h, i[19] = a, i[20] = m, i[21] = D) : D = i[21], l(E, D);
329
+ let O;
330
+ i[22] !== a || i[23] !== y ? (O = () => {
331
+ let e = !y;
332
+ if (g.current = void 0, e) {
333
+ let e = t.getWidget(a);
334
+ t.setWidget(a, {
335
+ isRelative: !0,
336
+ originalFormatter: e?.formatter,
337
+ originalMax: e?.max
338
+ });
339
+ } else t.setWidget(a, { isRelative: !1 });
340
+ }, i[22] = a, i[23] = y, i[24] = O) : O = i[24];
341
+ let A = O, j = y ? d?.absolute ?? "Show absolute values" : d?.relative ?? "Show relative values", M = d?.ariaLabel ?? j, N;
342
+ i[25] === f ? N = i[26] : (N = f ?? /* @__PURE__ */ k(R, {}), i[25] = f, i[26] = N);
343
+ let P;
344
+ i[27] !== p || i[28] !== A || i[29] !== y || i[30] !== M || i[31] !== N ? (P = /* @__PURE__ */ k(v, {
345
+ size: "small",
346
+ "aria-label": M,
347
+ onClick: A,
348
+ sx: me.trigger,
349
+ "data-active": y,
350
+ ...p,
351
+ children: N
352
+ }), i[27] = p, i[28] = A, i[29] = y, i[30] = M, i[31] = N, i[32] = P) : P = i[32];
353
+ let F;
354
+ return i[33] !== P || i[34] !== j ? (F = /* @__PURE__ */ k(e, {
355
+ title: j,
356
+ children: P
357
+ }), i[33] = P, i[34] = j, i[35] = F) : F = i[35], F;
358
+ }
359
+ function be(e) {
360
+ let t = e;
361
+ return ge(t, he(t));
362
+ }
363
+ //#endregion
364
+ //#region src/widgets/actions/zoom-toggle/style.ts
365
+ var xe = {
366
+ container: {
367
+ display: "flex",
368
+ alignItems: "center",
369
+ gap: ({ spacing: e }) => e(.25)
370
+ },
371
+ trigger: { "&[data-active=\"true\"]": { background: (e) => e.palette.primary.relatedLight } }
372
+ }, Se = "zoom-toggle";
373
+ function Ce(n) {
374
+ let a = c(63), { id: o, defaultZoom: s, defaultZoomStart: u, defaultZoomEnd: d, labels: f, Icon: m, ResetIcon: h, IconButtonProps: g } = n, _ = s !== void 0 && s, y = u === void 0 ? 0 : u, b = d === void 0 ? 100 : d, x = D(), S;
375
+ a[0] !== _ || a[1] !== b || a[2] !== y ? (S = (e) => ({
376
+ zoom: e?.zoom ?? _,
377
+ zoomStart: e?.zoomStart ?? y,
378
+ zoomEnd: e?.zoomEnd ?? b
379
+ }), a[0] = _, a[1] = b, a[2] = y, a[3] = S) : S = a[3];
380
+ let { zoom: C, zoomStart: w, zoomEnd: T } = r(o, S), E, O;
381
+ a[4] !== _ || a[5] !== b || a[6] !== y || a[7] !== o ? (E = () => {
382
+ t.getWidget(o)?.zoom === void 0 && t.setWidget(o, {
383
+ zoom: _,
384
+ zoomStart: y,
385
+ zoomEnd: b
386
+ });
387
+ }, O = [
388
+ o,
389
+ _,
390
+ y,
391
+ b
392
+ ], a[4] = _, a[5] = b, a[6] = y, a[7] = o, a[8] = E, a[9] = O) : (E = a[8], O = a[9]), l(E, O);
393
+ let j;
394
+ a[10] === o ? j = a[11] : (j = (e) => {
395
+ let n = e, r = n.start ?? n.batch?.[0]?.start, i = n.end ?? n.batch?.[0]?.end;
396
+ r !== void 0 && i !== void 0 && t.setWidget(o, {
397
+ zoom: !0,
398
+ zoomStart: r,
399
+ zoomEnd: i
400
+ });
401
+ }, a[10] = o, a[11] = j);
402
+ let M = j, N;
403
+ a[12] !== _ || a[13] !== M || a[14] !== o || a[15] !== x ? (N = () => (t.registerTool(o, {
404
+ id: Se,
405
+ type: "config",
406
+ order: 20,
407
+ enabled: _,
408
+ fn: (e) => {
409
+ let n = e, r = n.option, a = n.onEvents ?? {}, s = t.getWidget(o), c = s?.zoomStart ?? 0, l = s?.zoomEnd ?? 100, u = r?.legend, d = u?.show !== !1 && u !== void 0, f = parseInt(x?.spacing?.(4) ?? "32"), p = i({
410
+ start: c,
411
+ end: l
412
+ }, {
413
+ inside: !0,
414
+ xSlider: !0,
415
+ ySlider: !1,
416
+ bottomOffset: d ? 28 : 0
417
+ }, x), m = r?.grid, h = (typeof m?.bottom == "number" ? m.bottom : parseInt(m?.bottom ?? "24")) + f + 8, g = {
418
+ ...a,
419
+ dataZoom: M
420
+ };
421
+ return {
422
+ ...n,
423
+ option: {
424
+ ...r,
425
+ ...p,
426
+ grid: {
427
+ ...m,
428
+ bottom: h
429
+ }
430
+ },
431
+ onEvents: g
432
+ };
433
+ }
434
+ }), () => t.unregisterTool(o, Se)), a[12] = _, a[13] = M, a[14] = o, a[15] = x, a[16] = N) : N = a[16];
435
+ let P;
436
+ a[17] !== _ || a[18] !== b || a[19] !== y || a[20] !== M || a[21] !== o || a[22] !== x ? (P = [
437
+ o,
438
+ x,
439
+ M,
440
+ _,
441
+ y,
442
+ b
443
+ ], a[17] = _, a[18] = b, a[19] = y, a[20] = M, a[21] = o, a[22] = x, a[23] = P) : P = a[23], l(N, P);
444
+ let F, I;
445
+ a[24] !== o || a[25] !== C ? (F = () => {
446
+ t.setToolEnabled(o, Se, C);
447
+ }, I = [o, C], a[24] = o, a[25] = C, a[26] = F, a[27] = I) : (F = a[26], I = a[27]), l(F, I);
448
+ let L;
449
+ a[28] === o ? L = a[29] : (L = () => {
450
+ t.triggerToolPipeline(o);
451
+ }, a[28] = o, a[29] = L);
452
+ let R;
453
+ a[30] !== o || a[31] !== T || a[32] !== w ? (R = [
454
+ o,
455
+ w,
456
+ T
457
+ ], a[30] = o, a[31] = T, a[32] = w, a[33] = R) : R = a[33], l(L, R);
458
+ let z;
459
+ a[34] !== o || a[35] !== C || a[36] !== T || a[37] !== w ? (z = () => {
460
+ let e = !C;
461
+ t.setWidget(o, {
462
+ zoom: e,
463
+ zoomStart: e ? w : 0,
464
+ zoomEnd: e ? T : 100
465
+ });
466
+ }, a[34] = o, a[35] = C, a[36] = T, a[37] = w, a[38] = z) : z = a[38];
467
+ let H = z, U;
468
+ a[39] !== b || a[40] !== y || a[41] !== o ? (U = () => {
469
+ t.setWidget(o, {
470
+ zoom: !0,
471
+ zoomStart: y,
472
+ zoomEnd: b
473
+ });
474
+ }, a[39] = b, a[40] = y, a[41] = o, a[42] = U) : U = a[42];
475
+ let W = U, G = f?.enable ?? "Enable zoom", K = f?.disable ?? "Disable zoom", q = f?.reset ?? "Reset zoom", J = C ? K : G, Y = f?.ariaLabel ?? J, X;
476
+ a[43] === m ? X = a[44] : (X = m ?? /* @__PURE__ */ k(V, {}), a[43] = m, a[44] = X);
477
+ let Z;
478
+ a[45] !== g || a[46] !== H || a[47] !== Y || a[48] !== X || a[49] !== C ? (Z = /* @__PURE__ */ k(v, {
479
+ size: "small",
480
+ "aria-label": Y,
481
+ onClick: H,
482
+ sx: xe.trigger,
483
+ "data-active": C,
484
+ ...g,
485
+ children: X
486
+ }), a[45] = g, a[46] = H, a[47] = Y, a[48] = X, a[49] = C, a[50] = Z) : Z = a[50];
487
+ let Q;
488
+ a[51] !== Z || a[52] !== J ? (Q = /* @__PURE__ */ k(e, {
489
+ title: J,
490
+ children: Z
491
+ }), a[51] = Z, a[52] = J, a[53] = Q) : Q = a[53];
492
+ let ee;
493
+ a[54] !== g || a[55] !== h || a[56] !== W || a[57] !== q || a[58] !== C ? (ee = C && /* @__PURE__ */ k(e, {
494
+ title: q,
495
+ children: /* @__PURE__ */ k(v, {
496
+ size: "small",
497
+ "aria-label": q,
498
+ onClick: W,
499
+ ...g,
500
+ children: h ?? /* @__PURE__ */ k(B, {})
501
+ })
502
+ }), a[54] = g, a[55] = h, a[56] = W, a[57] = q, a[58] = C, a[59] = ee) : ee = a[59];
503
+ let $;
504
+ return a[60] !== Q || a[61] !== ee ? ($ = /* @__PURE__ */ A(p, {
505
+ sx: xe.container,
506
+ children: [Q, ee]
507
+ }), a[60] = Q, a[61] = ee, a[62] = $) : $ = a[62], $;
508
+ }
509
+ //#endregion
510
+ //#region src/widgets/actions/stack-toggle/grouped-bar-chart-icon.tsx
511
+ var we = () => {
512
+ let e = c(1), t;
513
+ return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ k("svg", {
514
+ width: "24",
515
+ height: "24",
516
+ viewBox: "0 0 24 24",
517
+ fill: "none",
518
+ xmlns: "http://www.w3.org/2000/svg",
519
+ children: /* @__PURE__ */ k("path", {
520
+ d: "M4 20V8H8V20H4ZM9 20V13H13V20H9ZM16 20V4H20V20H16Z",
521
+ fill: "currentColor"
522
+ })
523
+ }), e[0] = t) : t = e[0], t;
524
+ }, Te = "stack-toggle";
525
+ function Ee(n) {
526
+ let i = c(35), { id: a, defaultIsStacked: o, labels: s, Icon: u, IconButtonProps: d } = n, f = o !== void 0 && o, { storeIsStacked: p, option: m } = r(a, Ae), h;
527
+ bb0: {
528
+ if (!m) {
529
+ let e;
530
+ i[0] === Symbol.for("react.memo_cache_sentinel") ? (e = {
531
+ hasMultiSeries: !1,
532
+ hasStackInSeries: !1
533
+ }, i[0] = e) : e = i[0], h = e;
534
+ break bb0;
535
+ }
536
+ let e;
537
+ i[1] === m.series ? e = i[2] : (e = Array.isArray(m.series) ? m.series : [m.series], i[1] = m.series, i[2] = e);
538
+ let t = e, n = t.length > 1, r;
539
+ i[3] === t ? r = i[4] : (r = t.some(ke), i[3] = t, i[4] = r);
540
+ let a;
541
+ i[5] !== n || i[6] !== r ? (a = {
542
+ hasMultiSeries: n,
543
+ hasStackInSeries: r
544
+ }, i[5] = n, i[6] = r, i[7] = a) : a = i[7], h = a;
545
+ }
546
+ let { hasMultiSeries: g, hasStackInSeries: _ } = h, y = _ || f, b = p ?? y, x, S;
547
+ i[8] === a ? (x = i[9], S = i[10]) : (x = () => (t.registerTool(a, {
548
+ id: Te,
549
+ type: "config",
550
+ order: 10,
551
+ enabled: !1,
552
+ fn: De
553
+ }), () => t.unregisterTool(a, Te)), S = [a], i[8] = a, i[9] = x, i[10] = S), l(x, S);
554
+ let C, w;
555
+ i[11] !== g || i[12] !== a || i[13] !== b ? (C = () => {
556
+ t.setToolEnabled(a, Te, b && g);
557
+ }, w = [
558
+ a,
559
+ b,
560
+ g
561
+ ], i[11] = g, i[12] = a, i[13] = b, i[14] = C, i[15] = w) : (C = i[14], w = i[15]), l(C, w);
562
+ let T, E;
563
+ i[16] !== y || i[17] !== a || i[18] !== p ? (T = () => {
564
+ p === void 0 && t.setWidget(a, { isStacked: y });
565
+ }, E = [
566
+ y,
567
+ a,
568
+ p
569
+ ], i[16] = y, i[17] = a, i[18] = p, i[19] = T, i[20] = E) : (T = i[19], E = i[20]), l(T, E);
570
+ let D;
571
+ i[21] !== a || i[22] !== b ? (D = () => {
572
+ t.setWidget(a, { isStacked: !b });
573
+ }, i[21] = a, i[22] = b, i[23] = D) : D = i[23];
574
+ let O = D, A = b ? s?.unstacked ?? "Disable stacking" : s?.stacked ?? "Enable stacking";
575
+ if (!g) return null;
576
+ let j = s?.ariaLabel ?? A, M;
577
+ i[24] === u ? M = i[25] : (M = u ?? /* @__PURE__ */ k(we, {}), i[24] = u, i[25] = M);
578
+ let N;
579
+ i[26] !== d || i[27] !== O || i[28] !== b || i[29] !== j || i[30] !== M ? (N = /* @__PURE__ */ k(v, {
580
+ size: "small",
581
+ "aria-label": j,
582
+ onClick: O,
583
+ sx: me.trigger,
584
+ "data-active": b,
585
+ ...d,
586
+ children: M
587
+ }), i[26] = d, i[27] = O, i[28] = b, i[29] = j, i[30] = M, i[31] = N) : N = i[31];
588
+ let P;
589
+ return i[32] !== N || i[33] !== A ? (P = /* @__PURE__ */ k(e, {
590
+ title: A,
591
+ children: N
592
+ }), i[32] = N, i[33] = A, i[34] = P) : P = i[34], P;
593
+ }
594
+ function De(e) {
595
+ let t = e, n = t.option;
596
+ if (!n) return e;
597
+ let r = (Array.isArray(n.series) ? n.series : [n.series]).map(Oe);
598
+ return {
599
+ ...t,
600
+ option: {
601
+ ...n,
602
+ series: r
603
+ }
604
+ };
605
+ }
606
+ function Oe(e) {
607
+ let t = e?.stack, n = typeof t == "string" ? t : a;
608
+ return {
609
+ ...e,
610
+ ...o(n)
611
+ };
612
+ }
613
+ function ke(e) {
614
+ return e?.stack;
615
+ }
616
+ function Ae(e) {
617
+ return {
618
+ storeIsStacked: e?.isStacked,
619
+ option: e?.option
620
+ };
621
+ }
622
+ //#endregion
623
+ //#region src/widgets/actions/lock-selection/lock-selection.tsx
624
+ var je = "lock-selection";
625
+ function Me(n) {
626
+ let i = c(24), { id: a, selectedItems: o, order: s, labels: u, Icon: d, IconButtonProps: f } = n, p = s === void 0 ? 30 : s, { storeIsLocked: m } = r(a, Ne), h = m ?? !1, g, _;
627
+ i[0] !== a || i[1] !== p ? (g = () => (t.registerTool(a, {
628
+ id: je,
629
+ order: p,
630
+ enabled: !1,
631
+ fn: (e) => {
632
+ let n = t.getWidget(a)?.lockedItems ?? [];
633
+ return n.length === 0 ? e : Pe(e, n);
634
+ }
635
+ }), () => t.unregisterTool(a, je)), _ = [a, p], i[0] = a, i[1] = p, i[2] = g, i[3] = _) : (g = i[2], _ = i[3]), l(g, _);
636
+ let y, b;
637
+ i[4] !== a || i[5] !== h || i[6] !== o.length ? (y = () => {
638
+ if (h && o.length === 0) {
639
+ t.setWidget(a, {
640
+ isLocked: !1,
641
+ lockedItems: []
642
+ });
643
+ return;
644
+ }
645
+ t.setToolEnabled(a, je, h);
646
+ }, b = [
647
+ a,
648
+ h,
649
+ o.length
650
+ ], i[4] = a, i[5] = h, i[6] = o.length, i[7] = y, i[8] = b) : (y = i[7], b = i[8]), l(y, b);
651
+ let x;
652
+ i[9] !== a || i[10] !== h || i[11] !== o ? (x = () => {
653
+ h ? t.setWidget(a, {
654
+ isLocked: !1,
655
+ lockedItems: []
656
+ }) : t.setWidget(a, {
657
+ isLocked: !0,
658
+ lockedItems: o
659
+ });
660
+ }, i[9] = a, i[10] = h, i[11] = o, i[12] = x) : x = i[12];
661
+ let S = x;
662
+ if (o.length === 0) return null;
663
+ let C = h ? u?.unlock ?? "Unlock selection" : u?.lock ?? "Lock selection", w = u?.ariaLabel ?? C, T;
664
+ i[13] === d ? T = i[14] : (T = d ?? /* @__PURE__ */ k(j, { fontSize: "small" }), i[13] = d, i[14] = T);
665
+ let E;
666
+ i[15] !== f || i[16] !== w || i[17] !== S || i[18] !== h || i[19] !== T ? (E = /* @__PURE__ */ k(v, {
667
+ size: "small",
668
+ "aria-label": w,
669
+ onClick: S,
670
+ sx: me.trigger,
671
+ "data-active": h,
672
+ ...f,
673
+ children: T
674
+ }), i[15] = f, i[16] = w, i[17] = S, i[18] = h, i[19] = T, i[20] = E) : E = i[20];
675
+ let D;
676
+ return i[21] !== E || i[22] !== C ? (D = /* @__PURE__ */ k(e, {
677
+ title: C,
678
+ children: E
679
+ }), i[21] = E, i[22] = C, i[23] = D) : D = i[23], D;
680
+ }
681
+ function Ne(e) {
682
+ return { storeIsLocked: e?.isLocked };
683
+ }
684
+ function Pe(e, t) {
685
+ return e.map((e) => e.filter((e) => {
686
+ let n = e.name;
687
+ return typeof n == "string" && t.includes(n);
688
+ }));
689
+ }
690
+ //#endregion
691
+ //#region src/widgets/actions/searcher/searcher.tsx
692
+ var Fe = "searcher", Ie = 300;
693
+ function Le(e) {
694
+ let n = c(39), { id: i, filterFn: a, order: o, labels: s, TextFieldProps: d, ClearIcon: f, debounceDelay: p } = e, m = o === void 0 ? 20 : o, h = p === void 0 ? Ie : p, g = u(null), _ = u(null), { enabled: b, searchText: x } = r(i, Re), S = u(b), C = a ?? ze, w;
695
+ n[0] === i ? w = n[1] : (w = (e) => {
696
+ t.setWidget(i, { searchText: e });
697
+ }, n[0] = i, n[1] = w);
698
+ let E = w, D, O;
699
+ n[2] !== C || n[3] !== i || n[4] !== m ? (D = () => (t.registerTool(i, {
700
+ id: Fe,
701
+ order: m,
702
+ enabled: !1,
703
+ fn: async (e) => {
704
+ let n = t.getWidget(i)?.searchText ?? "";
705
+ return C(e, n);
706
+ },
707
+ disables: [je]
708
+ }), () => t.unregisterTool(i, Fe)), O = [
709
+ i,
710
+ m,
711
+ C
712
+ ], n[2] = C, n[3] = i, n[4] = m, n[5] = D, n[6] = O) : (D = n[5], O = n[6]), l(D, O);
713
+ let A, j;
714
+ n[7] !== b || n[8] !== i ? (A = () => {
715
+ t.setToolEnabled(i, Fe, b);
716
+ }, j = [i, b], n[7] = b, n[8] = i, n[9] = A, n[10] = j) : (A = n[9], j = n[10]), l(A, j);
717
+ let N;
718
+ n[11] !== h || n[12] !== i ? (N = () => {
719
+ _.current && clearTimeout(_.current), _.current = setTimeout(() => {
720
+ t.triggerToolPipeline(i);
721
+ }, h);
722
+ }, n[11] = h, n[12] = i, n[13] = N) : N = n[13];
723
+ let P = N, F, I;
724
+ n[14] === b ? (F = n[15], I = n[16]) : (I = () => {
725
+ b && !S.current && g.current && g.current.focus(), S.current = b;
726
+ }, F = [b], n[14] = b, n[15] = F, n[16] = I), l(I, F);
727
+ let L, R;
728
+ n[17] === Symbol.for("react.memo_cache_sentinel") ? (L = () => () => {
729
+ _.current && clearTimeout(_.current);
730
+ }, R = [], n[17] = L, n[18] = R) : (L = n[17], R = n[18]), l(L, R);
731
+ let B;
732
+ n[19] !== P || n[20] !== E ? (B = (e) => {
733
+ let t = e.target.value;
734
+ E(t), P();
735
+ }, n[19] = P, n[20] = E, n[21] = B) : B = n[21];
736
+ let V = B, H;
737
+ n[22] !== i || n[23] !== E ? (H = () => {
738
+ E(""), t.triggerToolPipeline(i), g.current && g.current.focus();
739
+ }, n[22] = i, n[23] = E, n[24] = H) : H = n[24];
740
+ let U = H;
741
+ if (!b) return null;
742
+ let W = s?.placeholder ?? "Search...", G = s?.clearAriaLabel ?? "Clear search", K;
743
+ n[25] === Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ k(y, {
744
+ position: "start",
745
+ children: /* @__PURE__ */ k(z, {})
746
+ }), n[25] = K) : K = n[25];
747
+ let q;
748
+ n[26] !== f || n[27] !== G || n[28] !== U || n[29] !== x ? (q = x ? /* @__PURE__ */ k(y, {
749
+ position: "end",
750
+ children: /* @__PURE__ */ k(v, {
751
+ size: "small",
752
+ "aria-label": G,
753
+ onClick: U,
754
+ edge: "end",
755
+ children: f ?? /* @__PURE__ */ k(M, { fontSize: "small" })
756
+ })
757
+ }) : null, n[26] = f, n[27] = G, n[28] = U, n[29] = x, n[30] = q) : q = n[30];
758
+ let J;
759
+ n[31] === q ? J = n[32] : (J = {
760
+ startAdornment: K,
761
+ endAdornment: q
762
+ }, n[31] = q, n[32] = J);
763
+ let Y;
764
+ return n[33] !== d || n[34] !== V || n[35] !== W || n[36] !== x || n[37] !== J ? (Y = /* @__PURE__ */ k(T, {
765
+ inputRef: g,
766
+ size: "small",
767
+ fullWidth: !0,
768
+ variant: "filled",
769
+ placeholder: W,
770
+ value: x,
771
+ onChange: V,
772
+ InputProps: J,
773
+ ...d
774
+ }), n[33] = d, n[34] = V, n[35] = W, n[36] = x, n[37] = J, n[38] = Y) : Y = n[38], Y;
775
+ }
776
+ function Re(e) {
777
+ return {
778
+ enabled: e?.isSearchEnabled ?? !1,
779
+ searchText: e?.searchText ?? ""
780
+ };
781
+ }
782
+ var ze = (e, t) => {
783
+ if (!t.trim()) return Promise.resolve(e);
784
+ let n = t.toLowerCase();
785
+ return Promise.resolve(e.map((e) => e.filter((e) => Object.values(e).some((e) => String(e).toLowerCase().includes(n)))));
786
+ };
787
+ //#endregion
788
+ //#region src/widgets/actions/searcher/searcher-toggle.tsx
789
+ function Be(n) {
790
+ let i = c(18), { id: a, defaultEnabled: o, labels: s, Icon: u, IconButtonProps: d } = n, f = o !== void 0 && o, { storeIsEnabled: p } = r(a, Ve), m = p ?? f, h, g;
791
+ i[0] !== f || i[1] !== a ? (h = () => {
792
+ t.getWidget(a)?.isSearchEnabled === void 0 && t.setWidget(a, { isSearchEnabled: f });
793
+ }, g = [f, a], i[0] = f, i[1] = a, i[2] = h, i[3] = g) : (h = i[2], g = i[3]), l(h, g);
794
+ let _;
795
+ i[4] !== a || i[5] !== m ? (_ = () => {
796
+ t.setWidget(a, { isSearchEnabled: !m });
797
+ }, i[4] = a, i[5] = m, i[6] = _) : _ = i[6];
798
+ let y = _, b = m ? s?.disable ?? "Disable search" : s?.enable ?? "Enable search", x = s?.ariaLabel ?? b, S;
799
+ i[7] === u ? S = i[8] : (S = u ?? /* @__PURE__ */ k(z, { fontSize: "small" }), i[7] = u, i[8] = S);
800
+ let C;
801
+ i[9] !== d || i[10] !== x || i[11] !== y || i[12] !== m || i[13] !== S ? (C = /* @__PURE__ */ k(v, {
802
+ size: "small",
803
+ "aria-label": x,
804
+ onClick: y,
805
+ sx: me.trigger,
806
+ "data-active": m,
807
+ ...d,
808
+ children: S
809
+ }), i[9] = d, i[10] = x, i[11] = y, i[12] = m, i[13] = S, i[14] = C) : C = i[14];
810
+ let w;
811
+ return i[15] !== C || i[16] !== b ? (w = /* @__PURE__ */ k(e, {
812
+ title: b,
813
+ children: C
814
+ }), i[15] = C, i[16] = b, i[17] = w) : w = i[17], w;
815
+ }
816
+ function Ve(e) {
817
+ return { storeIsEnabled: e?.isSearchEnabled };
818
+ }
819
+ //#endregion
820
+ //#region src/widgets/actions/change-column/change-column-icon.tsx
821
+ var He = () => {
822
+ let e = c(1), t;
823
+ return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ k("svg", {
824
+ xmlns: "http://www.w3.org/2000/svg",
825
+ fill: "none",
826
+ viewBox: "0 0 18 18",
827
+ children: /* @__PURE__ */ k("path", {
828
+ fill: "currentColor",
829
+ fillRule: "evenodd",
830
+ d: "M14.25 2.25H3.75c-.825 0-1.5.675-1.5 1.5v10.5c0 .825.675 1.5 1.5 1.5h10.5c.825 0 1.5-.675 1.5-1.5V3.75c0-.825-.675-1.5-1.5-1.5m-3.75 12h-3V3.75h3zM3.75 3.75H6v10.5H3.75zM12 14.25V3.75h2.25v10.5z",
831
+ clipRule: "evenodd"
832
+ })
833
+ }), e[0] = t) : t = e[0], t;
834
+ };
835
+ //#endregion
836
+ //#region src/widgets/actions/change-column/sortable-column-item.tsx
837
+ function Ue(e) {
838
+ let t = c(18), { column: n } = e, r;
839
+ t[0] === n.id ? r = t[1] : (r = { id: n.id }, t[0] = n.id, t[1] = r);
840
+ let { attributes: i, listeners: a, setNodeRef: o, transform: s, transition: l, isDragging: u } = G(r), d;
841
+ t[2] === s ? d = t[3] : (d = q.Transform.toString(s ? {
842
+ ...s,
843
+ x: 0
844
+ } : null), t[2] = s, t[3] = d);
845
+ let f = u ? .5 : 1, p = u ? "grabbing" : "grab", m;
846
+ t[4] !== d || t[5] !== f || t[6] !== p || t[7] !== l ? (m = {
847
+ transform: d,
848
+ transition: l,
849
+ opacity: f,
850
+ cursor: p
851
+ }, t[4] = d, t[5] = f, t[6] = p, t[7] = l, t[8] = m) : m = t[8];
852
+ let h = m, g;
853
+ t[9] === Symbol.for("react.memo_cache_sentinel") ? (g = { "&:focus-visible": {
854
+ outline: We,
855
+ outlineOffset: -2
856
+ } }, t[9] = g) : g = t[9];
857
+ let _;
858
+ t[10] === n.label ? _ = t[11] : (_ = /* @__PURE__ */ k(x, { children: n.label }), t[10] = n.label, t[11] = _);
859
+ let v;
860
+ return t[12] !== i || t[13] !== a || t[14] !== o || t[15] !== h || t[16] !== _ ? (v = /* @__PURE__ */ k(C, {
861
+ ref: o,
862
+ style: h,
863
+ ...i,
864
+ ...a,
865
+ role: "menuitem",
866
+ tabIndex: 0,
867
+ sx: g,
868
+ children: _
869
+ }), t[12] = i, t[13] = a, t[14] = o, t[15] = h, t[16] = _, t[17] = v) : v = t[17], v;
870
+ }
871
+ function We(e) {
872
+ return `2px solid ${e.palette.primary.main}`;
873
+ }
874
+ //#endregion
875
+ //#region src/widgets/actions/change-column/change-column.tsx
876
+ var Ge = "change-column";
877
+ function Ke(n) {
878
+ let i = c(46), { id: a, labels: o, Icon: s, IconButtonProps: u, MenuProps: f } = n, [p, m] = d(null), { columns: h } = r(a, Xe), g;
879
+ i[0] === a ? g = i[1] : (g = (e) => {
880
+ let n = t.getWidget(a)?.columns;
881
+ if (!n || n.length === 0) return e;
882
+ let r = e, i = r.columns;
883
+ if (!i || i.length === 0 || i.length === n.length && i.every((e, t) => e.id === n[t]?.id)) return e;
884
+ let o = new Map(i.map(Ye)), s = [];
885
+ for (let e of n) {
886
+ let t = o.get(e.id);
887
+ t && (s.push(t), o.delete(e.id));
888
+ }
889
+ for (let e of o.values()) s.push(e);
890
+ let c = s.length === n.length && s.every((e, t) => e.id === n[t]?.id);
891
+ return {
892
+ ...r,
893
+ columns: c ? n : s
894
+ };
895
+ }, i[0] = a, i[1] = g);
896
+ let _ = g, y;
897
+ i[2] === Symbol.for("react.memo_cache_sentinel") ? (y = { coordinateGetter: W }, i[2] = y) : y = i[2];
898
+ let b = ee(Q(X), Q(Y, y)), x;
899
+ i[3] === h ? x = i[4] : (x = h?.map(Je) ?? [], i[3] = h, i[4] = x);
900
+ let C = x, T, E;
901
+ i[5] !== a || i[6] !== _ ? (T = () => (t.registerTool(a, {
902
+ id: Ge,
903
+ type: "config",
904
+ order: 100,
905
+ enabled: !0,
906
+ fn: _
907
+ }), () => t.unregisterTool(a, Ge)), E = [a, _], i[5] = a, i[6] = _, i[7] = T, i[8] = E) : (T = i[7], E = i[8]), l(T, E);
908
+ let D;
909
+ i[9] === Symbol.for("react.memo_cache_sentinel") ? (D = (e) => {
910
+ e.stopPropagation(), m(e.currentTarget);
911
+ }, i[9] = D) : D = i[9];
912
+ let j = D, M;
913
+ i[10] === Symbol.for("react.memo_cache_sentinel") ? (M = () => {
914
+ m(null);
915
+ }, i[10] = M) : M = i[10];
916
+ let N = M, P;
917
+ i[11] !== h || i[12] !== a ? (P = (e) => {
918
+ let { active: n, over: r } = e;
919
+ if (!r || n.id === r.id || !h) return;
920
+ let i = h.findIndex((e) => e.id === n.id), o = h.findIndex((e) => e.id === r.id);
921
+ if (i !== -1 && o !== -1) {
922
+ let e = U(h, i, o);
923
+ t.setWidget(a, { columns: e });
924
+ }
925
+ }, i[11] = h, i[12] = a, i[13] = P) : P = i[13];
926
+ let F = P;
927
+ if (!h || h.length < 2) return null;
928
+ let I = o?.tooltip ?? "Change column", L = !!p, R = o?.ariaLabel ?? I, z = L ? "change-column-menu" : void 0, B = L ? "true" : void 0, V;
929
+ i[14] === s ? V = i[15] : (V = s ?? /* @__PURE__ */ k(w, { children: /* @__PURE__ */ k(He, {}) }), i[14] = s, i[15] = V);
930
+ let G;
931
+ i[16] !== u || i[17] !== L || i[18] !== z || i[19] !== B || i[20] !== V || i[21] !== R ? (G = /* @__PURE__ */ k(v, {
932
+ size: "small",
933
+ "aria-label": R,
934
+ "aria-controls": z,
935
+ "aria-haspopup": "true",
936
+ "aria-expanded": B,
937
+ onClick: j,
938
+ "data-active": L,
939
+ sx: me.trigger,
940
+ ...u,
941
+ children: V
942
+ }), i[16] = u, i[17] = L, i[18] = z, i[19] = B, i[20] = V, i[21] = R, i[22] = G) : G = i[22];
943
+ let q;
944
+ i[23] !== G || i[24] !== I ? (q = /* @__PURE__ */ k(e, {
945
+ title: I,
946
+ children: G
947
+ }), i[23] = G, i[24] = I, i[25] = q) : q = i[25];
948
+ let $, te, ne;
949
+ i[26] === Symbol.for("react.memo_cache_sentinel") ? ($ = {
950
+ vertical: "bottom",
951
+ horizontal: "right"
952
+ }, te = {
953
+ vertical: "top",
954
+ horizontal: "right"
955
+ }, ne = { paper: { sx: { overflow: "hidden" } } }, i[26] = $, i[27] = te, i[28] = ne) : ($ = i[26], te = i[27], ne = i[28]);
956
+ let re;
957
+ i[29] === h ? re = i[30] : (re = h.map(qe), i[29] = h, i[30] = re);
958
+ let ie;
959
+ i[31] !== C || i[32] !== re ? (ie = /* @__PURE__ */ k(H, {
960
+ items: C,
961
+ strategy: K,
962
+ children: re
963
+ }), i[31] = C, i[32] = re, i[33] = ie) : ie = i[33];
964
+ let ae;
965
+ i[34] !== f || i[35] !== p || i[36] !== L || i[37] !== ie ? (ae = /* @__PURE__ */ k(S, {
966
+ id: "change-column-menu",
967
+ anchorEl: p,
968
+ open: L,
969
+ onClose: N,
970
+ anchorOrigin: $,
971
+ transformOrigin: te,
972
+ slotProps: ne,
973
+ ...f,
974
+ children: ie
975
+ }), i[34] = f, i[35] = p, i[36] = L, i[37] = ie, i[38] = ae) : ae = i[38];
976
+ let oe;
977
+ i[39] !== F || i[40] !== b || i[41] !== ae ? (oe = /* @__PURE__ */ k(J, {
978
+ sensors: b,
979
+ collisionDetection: Z,
980
+ onDragEnd: F,
981
+ children: ae
982
+ }), i[39] = F, i[40] = b, i[41] = ae, i[42] = oe) : oe = i[42];
983
+ let se;
984
+ return i[43] !== q || i[44] !== oe ? (se = /* @__PURE__ */ A(O, { children: [q, oe] }), i[43] = q, i[44] = oe, i[45] = se) : se = i[45], se;
985
+ }
986
+ function qe(e) {
987
+ return /* @__PURE__ */ k(Ue, { column: e }, e.id);
988
+ }
989
+ function Je(e) {
990
+ return e.id;
991
+ }
992
+ function Ye(e) {
993
+ return [e.id, e];
994
+ }
995
+ function Xe(e) {
996
+ return { columns: e?.columns };
997
+ }
998
+ //#endregion
999
+ //#region src/widgets/actions/brush-toggle/style.ts
1000
+ var Ze = {
1001
+ container: {
1002
+ display: "flex",
1003
+ alignItems: "center",
1004
+ gap: ({ spacing: e }) => e(.25)
1005
+ },
1006
+ trigger: { "&[data-active=\"true\"]": { background: (e) => e.palette.primary.relatedLight } }
1007
+ }, Qe = {
1008
+ rect: {
1009
+ position: "absolute",
1010
+ background: "rgba(234, 237, 245, 0.2)",
1011
+ border: "1px dashed rgba(0, 0, 0, 0.15)",
1012
+ pointerEvents: "none"
1013
+ },
1014
+ rectPreview: {
1015
+ position: "absolute",
1016
+ background: "rgba(234, 237, 245, 0.6)",
1017
+ border: "1px dashed rgba(0, 0, 0, 0.15)",
1018
+ pointerEvents: "none"
1019
+ }
1020
+ };
1021
+ //#endregion
1022
+ //#region src/widgets/actions/brush-toggle/hit-test.ts
1023
+ function $e(e, t, n) {
1024
+ if (n <= 0) return [];
1025
+ let [r, i] = e <= t ? [e, t] : [t, e], a = Math.max(0, Math.floor(r)), o = Math.min(n - 1, Math.ceil(i));
1026
+ if (a > o) return [];
1027
+ let s = [];
1028
+ for (let e = a; e <= o; e += 1) s.push(e);
1029
+ return s;
1030
+ }
1031
+ function et(e, t) {
1032
+ if (e.length === 0) return [];
1033
+ let n = /* @__PURE__ */ new Set();
1034
+ for (let r of e) for (let e of $e(r.xStart, r.xEnd, t)) n.add(e);
1035
+ return Array.from(n).sort((e, t) => e - t);
1036
+ }
1037
+ //#endregion
1038
+ //#region src/widgets/actions/brush-toggle/brush-overlay.tsx
1039
+ var tt = 2, nt = Object.freeze([]), rt = Object.freeze([]);
1040
+ function it(e) {
1041
+ try {
1042
+ let t = e.getModel().getComponent("grid", 0)?.coordinateSystem?.getRect();
1043
+ return !t || !Number.isFinite(t.x) || !Number.isFinite(t.y) || !Number.isFinite(t.width) || !Number.isFinite(t.height) ? null : {
1044
+ x: t.x,
1045
+ y: t.y,
1046
+ width: t.width,
1047
+ height: t.height
1048
+ };
1049
+ } catch {
1050
+ return null;
1051
+ }
1052
+ }
1053
+ function at(e, t) {
1054
+ return e === t ? !0 : !e || !t ? !1 : e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1055
+ }
1056
+ function ot(e) {
1057
+ let n = c(55), { id: i, multiBrush: a } = e, { enabled: o, rects: p, dataLength: m } = r(i, ut), h = lt, g;
1058
+ n[0] === i ? g = n[1] : (g = () => t.getWidget(i)?.refUI?.current ?? null, n[0] = i, n[1] = g);
1059
+ let _ = f(h, g, ct), v;
1060
+ n[2] === i ? v = n[3] : (v = () => t.getWidget(i)?.instance?.current ?? null, n[2] = i, n[3] = v);
1061
+ let y = f(h, v, st), b = u(null), x = u(null), S = u(null), [C, w] = d(rt), [T, E] = d(null), [D, O] = d(null), j, M;
1062
+ n[4] !== _ || n[5] !== i ? (j = () => {
1063
+ if (!_) return;
1064
+ let e = document.getElementById(i);
1065
+ if (!e) return;
1066
+ let t = e.style.position;
1067
+ return t || (e.style.position = "relative"), () => {
1068
+ t || (e.style.position = "");
1069
+ };
1070
+ }, M = [i, _], n[4] = _, n[5] = i, n[6] = j, n[7] = M) : (j = n[6], M = n[7]), l(j, M);
1071
+ let N, P;
1072
+ n[8] !== _ || n[9] !== y || n[10] !== p ? (N = () => {
1073
+ if (!y || !_) return;
1074
+ let e = () => {
1075
+ let e = it(y);
1076
+ if (O((t) => at(t, e) ? t : e), !e) return;
1077
+ let t = [];
1078
+ for (let n of p) {
1079
+ let r = y.convertToPixel({ xAxisIndex: 0 }, n.xStart), i = y.convertToPixel({ xAxisIndex: 0 }, n.xEnd);
1080
+ if (typeof r != "number" || typeof i != "number" || !Number.isFinite(r) || !Number.isFinite(i)) continue;
1081
+ let a = Math.max(e.x, Math.min(r, i)), o = Math.min(e.x + e.width, Math.max(r, i));
1082
+ o <= a || t.push({
1083
+ left: a,
1084
+ right: o
1085
+ });
1086
+ }
1087
+ w(t.length === 0 ? rt : t);
1088
+ };
1089
+ e(), y.on("finished", e);
1090
+ let t = s(_, e);
1091
+ return () => {
1092
+ y.off("finished", e), t();
1093
+ };
1094
+ }, P = [
1095
+ y,
1096
+ _,
1097
+ p
1098
+ ], n[8] = _, n[9] = y, n[10] = p, n[11] = N, n[12] = P) : (N = n[11], P = n[12]), l(N, P);
1099
+ let F;
1100
+ n[13] !== _ || n[14] !== o || n[15] !== y || n[16] !== D ? (F = (e) => {
1101
+ if (!o || !_ || !D) return;
1102
+ let t = b.current;
1103
+ if (!t) return;
1104
+ e.preventDefault(), t.setPointerCapture(e.pointerId), S.current = e.pointerId, y?.dispatchAction({ type: "hideTip" });
1105
+ let n = _.getBoundingClientRect(), r = dt(e.clientX - n.left, D);
1106
+ x.current = r, E({
1107
+ left: r,
1108
+ right: r
1109
+ });
1110
+ }, n[13] = _, n[14] = o, n[15] = y, n[16] = D, n[17] = F) : F = n[17];
1111
+ let I = F, L;
1112
+ n[18] !== _ || n[19] !== y || n[20] !== D ? (L = (e) => {
1113
+ if (S.current === null) {
1114
+ if (y && _) {
1115
+ let t = _.getBoundingClientRect();
1116
+ y.dispatchAction({
1117
+ type: "showTip",
1118
+ x: e.clientX - t.left,
1119
+ y: e.clientY - t.top
1120
+ });
1121
+ }
1122
+ return;
1123
+ }
1124
+ if (S.current !== e.pointerId) return;
1125
+ let t = x.current;
1126
+ if (t === null || !_ || !D) return;
1127
+ let n = _.getBoundingClientRect(), r = dt(e.clientX - n.left, D);
1128
+ E({
1129
+ left: Math.min(t, r),
1130
+ right: Math.max(t, r)
1131
+ });
1132
+ }, n[18] = _, n[19] = y, n[20] = D, n[21] = L) : L = n[21];
1133
+ let R = L, z;
1134
+ n[22] === y ? z = n[23] : (z = () => {
1135
+ S.current === null && y?.dispatchAction({ type: "hideTip" });
1136
+ }, n[22] = y, n[23] = z);
1137
+ let B = z, V;
1138
+ n[24] !== _ || n[25] !== m || n[26] !== i || n[27] !== y || n[28] !== a || n[29] !== D || n[30] !== p ? (V = (e) => {
1139
+ if (S.current !== e.pointerId) return;
1140
+ let n = x.current, r = b.current;
1141
+ if (S.current = null, x.current = null, E(null), n === null || !r || !y || !_ || !D) return;
1142
+ try {
1143
+ r.releasePointerCapture(e.pointerId);
1144
+ } catch {}
1145
+ let o = _.getBoundingClientRect(), s = dt(e.clientX - o.left, D), c = Math.min(n, s), l = Math.max(n, s);
1146
+ if (l - c < tt) return;
1147
+ let u = y.convertFromPixel({ xAxisIndex: 0 }, c), d = y.convertFromPixel({ xAxisIndex: 0 }, l);
1148
+ if (typeof u != "number" || typeof d != "number" || !Number.isFinite(u) || !Number.isFinite(d)) return;
1149
+ let f = {
1150
+ xStart: u,
1151
+ xEnd: d
1152
+ }, h = a ? [...p, f] : [f], g = {
1153
+ dataIndex: et(h, m),
1154
+ seriesIndex: 0
1155
+ };
1156
+ t.setWidget(i, {
1157
+ brushRects: h,
1158
+ brushSelection: g,
1159
+ ...a ? {} : { brush: !1 }
1160
+ });
1161
+ }, n[24] = _, n[25] = m, n[26] = i, n[27] = y, n[28] = a, n[29] = D, n[30] = p, n[31] = V) : V = n[31];
1162
+ let H = V;
1163
+ if (!_) return null;
1164
+ let U;
1165
+ n[32] === Symbol.for("react.memo_cache_sentinel") ? (U = {
1166
+ position: "absolute",
1167
+ inset: 0,
1168
+ pointerEvents: "none",
1169
+ zIndex: 1
1170
+ }, n[32] = U) : U = n[32];
1171
+ let W = U, G;
1172
+ n[33] !== o || n[34] !== D ? (G = D ? {
1173
+ position: "absolute",
1174
+ left: D.x,
1175
+ top: D.y,
1176
+ width: D.width,
1177
+ height: D.height,
1178
+ pointerEvents: o ? "auto" : "none",
1179
+ cursor: o ? "crosshair" : "default",
1180
+ userSelect: "none",
1181
+ touchAction: "none"
1182
+ } : void 0, n[33] = o, n[34] = D, n[35] = G) : G = n[35];
1183
+ let K = G, q;
1184
+ n[36] !== K || n[37] !== I || n[38] !== B || n[39] !== R || n[40] !== H ? (q = K && /* @__PURE__ */ k("div", {
1185
+ ref: b,
1186
+ style: K,
1187
+ onPointerDown: I,
1188
+ onPointerMove: R,
1189
+ onPointerUp: H,
1190
+ onPointerCancel: H,
1191
+ onPointerLeave: B
1192
+ }), n[36] = K, n[37] = I, n[38] = B, n[39] = R, n[40] = H, n[41] = q) : q = n[41];
1193
+ let J;
1194
+ n[42] !== D || n[43] !== C ? (J = D && C.map((e, t) => /* @__PURE__ */ k("div", { style: {
1195
+ ...Qe.rect,
1196
+ left: e.left,
1197
+ width: Math.max(0, e.right - e.left),
1198
+ top: D.y,
1199
+ height: D.height
1200
+ } }, `${e.left}-${e.right}-${t}`)), n[42] = D, n[43] = C, n[44] = J) : J = n[44];
1201
+ let Y;
1202
+ n[45] !== T || n[46] !== D ? (Y = D && T && /* @__PURE__ */ k("div", { style: {
1203
+ ...Qe.rectPreview,
1204
+ left: T.left,
1205
+ width: Math.max(0, T.right - T.left),
1206
+ top: D.y,
1207
+ height: D.height
1208
+ } }), n[45] = T, n[46] = D, n[47] = Y) : Y = n[47];
1209
+ let X;
1210
+ n[48] !== q || n[49] !== J || n[50] !== Y ? (X = /* @__PURE__ */ A("div", {
1211
+ style: W,
1212
+ children: [
1213
+ q,
1214
+ J,
1215
+ Y
1216
+ ]
1217
+ }), n[48] = q, n[49] = J, n[50] = Y, n[51] = X) : X = n[51];
1218
+ let Z;
1219
+ return n[52] !== _ || n[53] !== X ? (Z = te(X, _), n[52] = _, n[53] = X, n[54] = Z) : Z = n[54], Z;
1220
+ }
1221
+ function st() {
1222
+ return null;
1223
+ }
1224
+ function ct() {
1225
+ return null;
1226
+ }
1227
+ function lt(e) {
1228
+ return n.subscribe(e);
1229
+ }
1230
+ function ut(e) {
1231
+ let t = e, n = e?.data?.[0], r = Array.isArray(n) ? n.length : 0;
1232
+ return {
1233
+ enabled: t?.brush ?? !1,
1234
+ rects: t?.brushRects ?? nt,
1235
+ dataLength: r
1236
+ };
1237
+ }
1238
+ function dt(e, t) {
1239
+ return Math.max(t.x, Math.min(t.x + t.width, e));
1240
+ }
1241
+ //#endregion
1242
+ //#region src/widgets/actions/brush-toggle/brush-toggle.tsx
1243
+ var ft = "brush-toggle";
1244
+ function pt(n) {
1245
+ let i = c(35), { id: a, onBrushSelected: o, multiBrush: s, selections: d, defaultEnabled: f, labels: m, Icon: h, IconButtonProps: g } = n, _ = f !== void 0 && f, y;
1246
+ i[0] === _ ? y = i[1] : (y = (e) => {
1247
+ let t = e;
1248
+ return {
1249
+ brush: t?.brush ?? _,
1250
+ selection: t?.brushSelection
1251
+ };
1252
+ }, i[0] = _, i[1] = y);
1253
+ let { brush: b, selection: x } = r(a, y), S, C;
1254
+ i[2] !== _ || i[3] !== a ? (S = () => {
1255
+ t.getWidget(a)?.brush === void 0 && t.setWidget(a, { brush: _ });
1256
+ }, C = [a, _], i[2] = _, i[3] = a, i[4] = S, i[5] = C) : (S = i[4], C = i[5]), l(S, C);
1257
+ let w;
1258
+ i[6] !== b || i[7] !== a || i[8] !== o ? (w = () => {
1259
+ b ? t.setWidget(a, { brush: !1 }) : (t.setWidget(a, {
1260
+ brush: !0,
1261
+ brushRects: [],
1262
+ brushSelection: {
1263
+ dataIndex: [],
1264
+ seriesIndex: 0
1265
+ }
1266
+ }), o?.({
1267
+ dataIndex: [],
1268
+ seriesIndex: 0
1269
+ }));
1270
+ }, i[6] = b, i[7] = a, i[8] = o, i[9] = w) : w = i[9];
1271
+ let T = w, E = u(void 0), D, j;
1272
+ i[10] !== o || i[11] !== x ? (D = () => {
1273
+ x && E.current !== x && (E.current = x, o?.(x));
1274
+ }, j = [x, o], i[10] = o, i[11] = x, i[12] = D, i[13] = j) : (D = i[12], j = i[13]), l(D, j);
1275
+ let M, N;
1276
+ i[14] !== a || i[15] !== d ? (M = () => {
1277
+ if (d !== 0) return;
1278
+ let e = t.getWidget(a), n = (e?.brushRects?.length ?? 0) > 0, r = (e?.brushSelection?.dataIndex?.length ?? 0) > 0;
1279
+ !n && !r || t.setWidget(a, {
1280
+ brushRects: [],
1281
+ brushSelection: {
1282
+ dataIndex: [],
1283
+ seriesIndex: 0
1284
+ }
1285
+ });
1286
+ }, N = [d, a], i[14] = a, i[15] = d, i[16] = M, i[17] = N) : (M = i[16], N = i[17]), l(M, N);
1287
+ let P = m?.enable ?? "Enable brush selection", F = m?.disable ?? "Disable brush selection", L = b ? F : P, R = m?.ariaLabel ?? L, z;
1288
+ i[18] === h ? z = i[19] : (z = h ?? /* @__PURE__ */ k(I, {}), i[18] = h, i[19] = z);
1289
+ let B;
1290
+ i[20] !== g || i[21] !== b || i[22] !== T || i[23] !== R || i[24] !== z ? (B = /* @__PURE__ */ k(v, {
1291
+ size: "small",
1292
+ "aria-label": R,
1293
+ onClick: T,
1294
+ sx: Ze.trigger,
1295
+ "data-active": b,
1296
+ ...g,
1297
+ children: z
1298
+ }), i[20] = g, i[21] = b, i[22] = T, i[23] = R, i[24] = z, i[25] = B) : B = i[25];
1299
+ let V;
1300
+ i[26] !== B || i[27] !== L ? (V = /* @__PURE__ */ k(p, {
1301
+ sx: Ze.container,
1302
+ children: /* @__PURE__ */ k(e, {
1303
+ title: L,
1304
+ children: B
1305
+ })
1306
+ }), i[26] = B, i[27] = L, i[28] = V) : V = i[28];
1307
+ let H;
1308
+ i[29] !== a || i[30] !== s ? (H = /* @__PURE__ */ k(ot, {
1309
+ id: a,
1310
+ multiBrush: s
1311
+ }), i[29] = a, i[30] = s, i[31] = H) : H = i[31];
1312
+ let U;
1313
+ return i[32] !== V || i[33] !== H ? (U = /* @__PURE__ */ A(O, { children: [V, H] }), i[32] = V, i[33] = H, i[34] = U) : U = i[34], U;
1314
+ }
1315
+ //#endregion
1316
+ export { de as _, Be as a, ie as b, je as c, Ee as d, Se as f, ye as g, _e as h, Ke as i, Me as l, ve as m, pt as n, Fe as o, Ce as p, Ge as r, Le as s, ft as t, Te as u, pe as v, se as y };
1317
+
1318
+ //# sourceMappingURL=actions-CGJD6q0t.js.map