@carto/ps-react-ui 4.20.0 → 4.20.1

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 (409) hide show
  1. package/dist/actions-DKX98LlI.js +1318 -0
  2. package/dist/actions-DKX98LlI.js.map +1 -0
  3. package/dist/actions-Dy9JVr7F.js +1004 -0
  4. package/dist/actions-Dy9JVr7F.js.map +1 -0
  5. package/dist/category-DHZscHaS.js +826 -0
  6. package/dist/category-DHZscHaS.js.map +1 -0
  7. package/dist/chart-config-BGt7wkK7.js +108 -0
  8. package/dist/chart-config-BGt7wkK7.js.map +1 -0
  9. package/dist/chat.js +1589 -1711
  10. package/dist/chat.js.map +1 -1
  11. package/dist/cjs-CBrZjPCj.js +75 -0
  12. package/dist/cjs-CBrZjPCj.js.map +1 -0
  13. package/dist/components-DDt4mOQn.js +2403 -0
  14. package/dist/components-DDt4mOQn.js.map +1 -0
  15. package/dist/components.js +5 -1841
  16. package/dist/copy-button-DaQqWVu0.js +25 -0
  17. package/dist/copy-button-DaQqWVu0.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-BT6qBamM.js +232 -0
  21. package/dist/download-BT6qBamM.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-DSz2Tu0z.js +250 -0
  25. package/dist/echart-DSz2Tu0z.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-Bk9CBzm2.js +190 -0
  29. package/dist/formula-Bk9CBzm2.js.map +1 -0
  30. package/dist/formula-Dsru_p-g.js +285 -0
  31. package/dist/formula-Dsru_p-g.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 -24
  35. package/dist/legend.js +2274 -2323
  36. package/dist/legend.js.map +1 -1
  37. package/dist/markdown-DnSJMPjQ.js +165 -0
  38. package/dist/markdown-DnSJMPjQ.js.map +1 -0
  39. package/dist/markdown-content-BzKoX3eu.js +8764 -0
  40. package/dist/markdown-content-BzKoX3eu.js.map +1 -0
  41. package/dist/range-BPWVrAsY.js +277 -0
  42. package/dist/range-BPWVrAsY.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-Dy8pshpN.js +149 -0
  51. package/dist/spread-Dy8pshpN.js.map +1 -0
  52. package/dist/stores-B81-IU1G.js +374 -0
  53. package/dist/stores-B81-IU1G.js.map +1 -0
  54. package/dist/stores-BVFMfgyo.js +248 -0
  55. package/dist/stores-BVFMfgyo.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-BfTG6rrs.js +439 -0
  59. package/dist/table-BfTG6rrs.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 +1 -1
  63. package/dist/types/chat/bubbles/chat-error-message.d.ts +1 -1
  64. package/dist/types/chat/bubbles/chat-suggestion-button.d.ts +1 -1
  65. package/dist/types/chat/bubbles/chat-user-message.d.ts +1 -1
  66. package/dist/types/chat/containers/chat-footer.d.ts +1 -1
  67. package/dist/types/chat/containers/chat-header.d.ts +1 -1
  68. package/dist/types/chat/containers/chat-starter.d.ts +1 -1
  69. package/dist/types/chat/feedback/chat-loader.d.ts +1 -1
  70. package/dist/types/chat/feedback/chat-rating-action.d.ts +1 -1
  71. package/dist/types/chat/feedback/chat-thinking.d.ts +1 -1
  72. package/dist/types/chat/feedback/chat-tool-code-area.d.ts +1 -1
  73. package/dist/types/chat/feedback/chat-tool-full-view-dialog.d.ts +1 -1
  74. package/dist/types/chat/feedback/chat-tool-group.d.ts +1 -1
  75. package/dist/types/chat/feedback/chat-tool-trace.d.ts +2 -2
  76. package/dist/types/components/basemaps/group-wrapper.d.ts +1 -1
  77. package/dist/types/components/basemaps/group.d.ts +1 -1
  78. package/dist/types/components/basemaps/header.d.ts +1 -1
  79. package/dist/types/components/copy-button/copy-button.d.ts +1 -1
  80. package/dist/types/components/lasso-tool/chip.d.ts +1 -1
  81. package/dist/types/components/lasso-tool/icons.d.ts +7 -7
  82. package/dist/types/components/lasso-tool/lasso-tool.d.ts +4 -4
  83. package/dist/types/components/lasso-tool/message.d.ts +1 -1
  84. package/dist/types/components/list-data/list-data-skeleton.d.ts +1 -1
  85. package/dist/types/components/measurement-tools/icons.d.ts +3 -3
  86. package/dist/types/components/no-data-alert/no-data-alert.d.ts +1 -1
  87. package/dist/types/components/responsive-drawer/responsive-drawer.d.ts +1 -1
  88. package/dist/types/components/smart-tooltip/smart-tooltip.d.ts +1 -1
  89. package/dist/types/components/tooltip/tooltip.d.ts +1 -1
  90. package/dist/types/hooks/use-widget-ref.d.ts +2 -1
  91. package/dist/types/legend/components/legend-actions/legend-actions.d.ts +1 -1
  92. package/dist/types/legend/components/legend-category/legend-category-ui.d.ts +1 -1
  93. package/dist/types/legend/components/legend-config-select/legend-config-select.d.ts +1 -1
  94. package/dist/types/legend/components/legend-group/legend-group.d.ts +1 -1
  95. package/dist/types/legend/components/legend-group-menu/legend-group-menu-items.d.ts +4 -4
  96. package/dist/types/legend/components/legend-group-menu/legend-group-menu.d.ts +1 -1
  97. package/dist/types/legend/components/legend-icon/legend-icon-ui.d.ts +1 -1
  98. package/dist/types/legend/components/legend-item/legend-item-ui.d.ts +1 -1
  99. package/dist/types/legend/components/legend-item/legend-item.d.ts +1 -1
  100. package/dist/types/legend/components/legend-opacity/legend-opacity.d.ts +2 -2
  101. package/dist/types/legend/components/legend-overflow-menu/legend-overflow-menu.d.ts +1 -1
  102. package/dist/types/legend/components/legend-panel-menu/legend-panel-menu.d.ts +1 -1
  103. package/dist/types/legend/components/legend-proportion/legend-proportion-ui.d.ts +1 -1
  104. package/dist/types/legend/components/legend-ramp/legend-ramp-ui.d.ts +1 -1
  105. package/dist/types/legend/components/legend-row/legend-row.d.ts +1 -1
  106. package/dist/types/legend/components/legend-row-menu/legend-row-menu-items.d.ts +2 -2
  107. package/dist/types/legend/components/legend-row-menu/legend-row-menu.d.ts +1 -1
  108. package/dist/types/legend/components/legend-row-menu/legend-zoom-to.d.ts +1 -1
  109. package/dist/types/legend/components/legend-sortable/legend-sortable.d.ts +1 -1
  110. package/dist/types/legend/components/legend-swatch/legend-swatch.d.ts +1 -1
  111. package/dist/types/legend/components/legend-visibility-toggle/legend-visibility-toggle.d.ts +1 -1
  112. package/dist/types/legend/components/legend-visible-layers/legend-visible-layers.d.ts +1 -1
  113. package/dist/types/legend/index.d.ts +2 -2
  114. package/dist/types/legend/provider/legend-provider.d.ts +1 -1
  115. package/dist/types/widgets/actions/brush-toggle/brush-toggle.d.ts +1 -1
  116. package/dist/types/widgets/actions/change-column/change-column-icon.d.ts +1 -1
  117. package/dist/types/widgets/actions/change-column/change-column.d.ts +1 -1
  118. package/dist/types/widgets/actions/change-column/sortable-column-item.d.ts +1 -1
  119. package/dist/types/widgets/actions/download/download.d.ts +1 -1
  120. package/dist/types/widgets/actions/fullscreen/fullscreen.d.ts +1 -1
  121. package/dist/types/widgets/actions/lock-selection/lock-selection.d.ts +1 -1
  122. package/dist/types/widgets/actions/relative-data/relative-data.d.ts +1 -1
  123. package/dist/types/widgets/actions/searcher/searcher-toggle.d.ts +1 -1
  124. package/dist/types/widgets/actions/searcher/searcher.d.ts +1 -1
  125. package/dist/types/widgets/actions/stack-toggle/grouped-bar-chart-icon.d.ts +1 -1
  126. package/dist/types/widgets/actions/stack-toggle/stack-toggle.d.ts +1 -1
  127. package/dist/types/widgets/actions/zoom-toggle/zoom-toggle.d.ts +1 -1
  128. package/dist/types/widgets/bar/skeleton.d.ts +1 -1
  129. package/dist/types/widgets/category/category-ui.d.ts +1 -1
  130. package/dist/types/widgets/category/components/category-bar.d.ts +1 -1
  131. package/dist/types/widgets/category/components/category-legend.d.ts +1 -1
  132. package/dist/types/widgets/category/components/category-row-multi.d.ts +1 -1
  133. package/dist/types/widgets/category/components/category-row-other.d.ts +1 -1
  134. package/dist/types/widgets/category/components/category-row-single.d.ts +1 -1
  135. package/dist/types/widgets/category/skeleton.d.ts +1 -1
  136. package/dist/types/widgets/echart/echart-ui.d.ts +1 -1
  137. package/dist/types/widgets/echart/echart.d.ts +1 -1
  138. package/dist/types/widgets/error/error.d.ts +1 -1
  139. package/dist/types/widgets/formula/components/item.d.ts +1 -1
  140. package/dist/types/widgets/formula/components/prefix.d.ts +1 -1
  141. package/dist/types/widgets/formula/components/row.d.ts +1 -1
  142. package/dist/types/widgets/formula/components/series.d.ts +1 -1
  143. package/dist/types/widgets/formula/components/suffix.d.ts +1 -1
  144. package/dist/types/widgets/formula/components/value.d.ts +1 -1
  145. package/dist/types/widgets/formula/formula-ui.d.ts +1 -1
  146. package/dist/types/widgets/formula/skeleton.d.ts +1 -1
  147. package/dist/types/widgets/histogram/skeleton.d.ts +1 -1
  148. package/dist/types/widgets/markdown/markdown-ui.d.ts +1 -1
  149. package/dist/types/widgets/markdown/markdown.d.ts +1 -1
  150. package/dist/types/widgets/markdown/skeleton.d.ts +1 -1
  151. package/dist/types/widgets/no-data/no-data.d.ts +1 -1
  152. package/dist/types/widgets/note/note.d.ts +1 -1
  153. package/dist/types/widgets/pie/skeleton.d.ts +1 -1
  154. package/dist/types/widgets/range/components/range-item.d.ts +1 -1
  155. package/dist/types/widgets/range/range-ui.d.ts +1 -1
  156. package/dist/types/widgets/range/skeleton.d.ts +1 -1
  157. package/dist/types/widgets/scatterplot/skeleton.d.ts +1 -1
  158. package/dist/types/widgets/selection-summary/selection-summary.d.ts +1 -1
  159. package/dist/types/widgets/skeleton-loader/skeleton-loader.d.ts +1 -1
  160. package/dist/types/widgets/spread/components/max-value.d.ts +1 -1
  161. package/dist/types/widgets/spread/components/min-value.d.ts +1 -1
  162. package/dist/types/widgets/spread/components/separator.d.ts +1 -1
  163. package/dist/types/widgets/spread/skeleton.d.ts +1 -1
  164. package/dist/types/widgets/spread/spread-ui.d.ts +1 -1
  165. package/dist/types/widgets/subheader/subheader.d.ts +1 -1
  166. package/dist/types/widgets/table/components/cell-header.d.ts +1 -1
  167. package/dist/types/widgets/table/components/cell.d.ts +1 -1
  168. package/dist/types/widgets/table/components/pagination-actions.d.ts +1 -1
  169. package/dist/types/widgets/table/components/pagination.d.ts +1 -1
  170. package/dist/types/widgets/table/components/row.d.ts +1 -1
  171. package/dist/types/widgets/table/skeleton.d.ts +1 -1
  172. package/dist/types/widgets/table/table-ui.d.ts +2 -2
  173. package/dist/types/widgets/timeseries/skeleton.d.ts +1 -1
  174. package/dist/types/widgets/wrapper/components/actions.d.ts +1 -1
  175. package/dist/types/widgets/wrapper/components/options.d.ts +1 -1
  176. package/dist/types/widgets/wrapper/components/title.d.ts +1 -1
  177. package/dist/types/widgets/wrapper/wrapper-ui.d.ts +1 -1
  178. package/dist/types/widgets/wrapper/wrapper.d.ts +1 -1
  179. package/dist/types/widgets-v2/actions/brush-toggle/brush-toggle.d.ts +1 -1
  180. package/dist/types/widgets-v2/actions/change-column/change-column-icon.d.ts +1 -1
  181. package/dist/types/widgets-v2/actions/change-column/change-column.d.ts +1 -1
  182. package/dist/types/widgets-v2/actions/change-column/sortable-column-item.d.ts +1 -1
  183. package/dist/types/widgets-v2/actions/download/download.d.ts +1 -1
  184. package/dist/types/widgets-v2/actions/download/icons.d.ts +3 -3
  185. package/dist/types/widgets-v2/actions/fullscreen/fullscreen.d.ts +2 -2
  186. package/dist/types/widgets-v2/actions/lock-selection/lock-selection.d.ts +1 -1
  187. package/dist/types/widgets-v2/actions/relative-data/relative-data.d.ts +1 -1
  188. package/dist/types/widgets-v2/actions/searcher/searcher-toggle.d.ts +1 -1
  189. package/dist/types/widgets-v2/actions/searcher/searcher.d.ts +1 -1
  190. package/dist/types/widgets-v2/actions/show-all/show-all.d.ts +1 -1
  191. package/dist/types/widgets-v2/actions/stack-toggle/stack-toggle.d.ts +1 -1
  192. package/dist/types/widgets-v2/actions/zoom-toggle/zoom-toggle.d.ts +1 -1
  193. package/dist/types/widgets-v2/bar/skeleton.d.ts +1 -1
  194. package/dist/types/widgets-v2/category/category-ui.d.ts +1 -1
  195. package/dist/types/widgets-v2/category/category.d.ts +1 -1
  196. package/dist/types/widgets-v2/category/components/category-bar-stacked.d.ts +1 -1
  197. package/dist/types/widgets-v2/category/components/category-bar.d.ts +1 -1
  198. package/dist/types/widgets-v2/category/components/category-legend.d.ts +1 -1
  199. package/dist/types/widgets-v2/category/components/category-row-multi.d.ts +1 -1
  200. package/dist/types/widgets-v2/category/components/category-row-other.d.ts +1 -1
  201. package/dist/types/widgets-v2/category/components/category-row-single.d.ts +1 -1
  202. package/dist/types/widgets-v2/category/components/category-row-stacked.d.ts +1 -1
  203. package/dist/types/widgets-v2/category/skeleton.d.ts +1 -1
  204. package/dist/types/widgets-v2/echart/echart-ui.d.ts +1 -1
  205. package/dist/types/widgets-v2/echart/echart.d.ts +1 -1
  206. package/dist/types/widgets-v2/formula/delta.d.ts +1 -1
  207. package/dist/types/widgets-v2/formula/formula-ui.d.ts +1 -1
  208. package/dist/types/widgets-v2/formula/formula.d.ts +1 -1
  209. package/dist/types/widgets-v2/formula/note.d.ts +1 -1
  210. package/dist/types/widgets-v2/formula/prefix.d.ts +1 -1
  211. package/dist/types/widgets-v2/formula/series.d.ts +1 -1
  212. package/dist/types/widgets-v2/formula/skeleton.d.ts +1 -1
  213. package/dist/types/widgets-v2/formula/suffix.d.ts +1 -1
  214. package/dist/types/widgets-v2/formula/value.d.ts +1 -1
  215. package/dist/types/widgets-v2/histogram/skeleton.d.ts +1 -1
  216. package/dist/types/widgets-v2/index.d.ts +4 -4
  217. package/dist/types/widgets-v2/markdown/markdown-content.d.ts +1 -1
  218. package/dist/types/widgets-v2/markdown/markdown-ui.d.ts +1 -1
  219. package/dist/types/widgets-v2/markdown/markdown.d.ts +1 -1
  220. package/dist/types/widgets-v2/markdown/skeleton.d.ts +1 -1
  221. package/dist/types/widgets-v2/note/widget-note.d.ts +2 -2
  222. package/dist/types/widgets-v2/pie/skeleton.d.ts +1 -1
  223. package/dist/types/widgets-v2/provider/widget-provider.d.ts +1 -1
  224. package/dist/types/widgets-v2/range/range-ui.d.ts +1 -1
  225. package/dist/types/widgets-v2/range/range.d.ts +1 -1
  226. package/dist/types/widgets-v2/range/skeleton.d.ts +1 -1
  227. package/dist/types/widgets-v2/scatterplot/skeleton.d.ts +1 -1
  228. package/dist/types/widgets-v2/selection-summary/selection-summary.d.ts +1 -1
  229. package/dist/types/widgets-v2/spread/separator.d.ts +1 -1
  230. package/dist/types/widgets-v2/spread/skeleton.d.ts +1 -1
  231. package/dist/types/widgets-v2/spread/spread-ui.d.ts +1 -1
  232. package/dist/types/widgets-v2/spread/spread.d.ts +1 -1
  233. package/dist/types/widgets-v2/state/widget-state.d.ts +1 -1
  234. package/dist/types/widgets-v2/subheader/subheader.d.ts +1 -1
  235. package/dist/types/widgets-v2/table/skeleton.d.ts +1 -1
  236. package/dist/types/widgets-v2/table/table-ui.d.ts +1 -1
  237. package/dist/types/widgets-v2/table/table.d.ts +1 -1
  238. package/dist/types/widgets-v2/timeseries/skeleton.d.ts +1 -1
  239. package/dist/types/widgets-v2/toolbox/toolbox.d.ts +1 -1
  240. package/dist/types/widgets-v2/wrapper/widget-actions.d.ts +2 -2
  241. package/dist/types/widgets-v2/wrapper/widget-content.d.ts +2 -2
  242. package/dist/types/widgets-v2/wrapper/widget-wrapper.d.ts +1 -1
  243. package/dist/use-widget-selector-VSPhfhNm.js +12 -0
  244. package/dist/{use-widget-selector-DFl2hW0R.js.map → use-widget-selector-VSPhfhNm.js.map} +1 -1
  245. package/dist/utils-DtvTjjMq.js +58 -0
  246. package/dist/utils-DtvTjjMq.js.map +1 -0
  247. package/dist/widget-store-BFPKYm4R.js +187 -0
  248. package/dist/widget-store-BFPKYm4R.js.map +1 -0
  249. package/dist/widgets/actions.js +2 -1317
  250. package/dist/widgets/bar.js +183 -175
  251. package/dist/widgets/bar.js.map +1 -1
  252. package/dist/widgets/category.js +429 -434
  253. package/dist/widgets/category.js.map +1 -1
  254. package/dist/widgets/echart.js +3 -120
  255. package/dist/widgets/error.js +28 -38
  256. package/dist/widgets/error.js.map +1 -1
  257. package/dist/widgets/formula.js +3 -123
  258. package/dist/widgets/histogram.js +183 -202
  259. package/dist/widgets/histogram.js.map +1 -1
  260. package/dist/widgets/loader.js +63 -61
  261. package/dist/widgets/loader.js.map +1 -1
  262. package/dist/widgets/markdown.js +141 -123
  263. package/dist/widgets/markdown.js.map +1 -1
  264. package/dist/widgets/no-data.js +52 -58
  265. package/dist/widgets/no-data.js.map +1 -1
  266. package/dist/widgets/note.js +125 -122
  267. package/dist/widgets/note.js.map +1 -1
  268. package/dist/widgets/pie.js +245 -259
  269. package/dist/widgets/pie.js.map +1 -1
  270. package/dist/widgets/range.js +225 -204
  271. package/dist/widgets/range.js.map +1 -1
  272. package/dist/widgets/scatterplot.js +220 -215
  273. package/dist/widgets/scatterplot.js.map +1 -1
  274. package/dist/widgets/selection-summary.js +39 -38
  275. package/dist/widgets/selection-summary.js.map +1 -1
  276. package/dist/widgets/skeleton-loader.js +22 -23
  277. package/dist/widgets/skeleton-loader.js.map +1 -1
  278. package/dist/widgets/spread.js +150 -156
  279. package/dist/widgets/spread.js.map +1 -1
  280. package/dist/widgets/stores.js +3 -8
  281. package/dist/widgets/subheader.js +49 -50
  282. package/dist/widgets/subheader.js.map +1 -1
  283. package/dist/widgets/table.js +576 -644
  284. package/dist/widgets/table.js.map +1 -1
  285. package/dist/widgets/timeseries.js +175 -170
  286. package/dist/widgets/timeseries.js.map +1 -1
  287. package/dist/widgets/toolbar-actions.js +140 -145
  288. package/dist/widgets/toolbar-actions.js.map +1 -1
  289. package/dist/widgets/utils.js +17 -33
  290. package/dist/widgets/utils.js.map +1 -1
  291. package/dist/widgets/wrapper.js +265 -276
  292. package/dist/widgets/wrapper.js.map +1 -1
  293. package/dist/widgets-v2/actions.js +4 -51
  294. package/dist/widgets-v2/bar.js +253 -307
  295. package/dist/widgets-v2/bar.js.map +1 -1
  296. package/dist/widgets-v2/category.js +2 -98
  297. package/dist/widgets-v2/echart.js +2 -57
  298. package/dist/widgets-v2/formula.js +2 -68
  299. package/dist/widgets-v2/histogram.js +285 -350
  300. package/dist/widgets-v2/histogram.js.map +1 -1
  301. package/dist/widgets-v2/markdown.js +3 -69
  302. package/dist/widgets-v2/pie.js +363 -461
  303. package/dist/widgets-v2/pie.js.map +1 -1
  304. package/dist/widgets-v2/range.js +2 -52
  305. package/dist/widgets-v2/scatterplot.js +316 -391
  306. package/dist/widgets-v2/scatterplot.js.map +1 -1
  307. package/dist/widgets-v2/spread.js +2 -78
  308. package/dist/widgets-v2/stores.js +2 -42
  309. package/dist/widgets-v2/table.js +2 -78
  310. package/dist/widgets-v2/timeseries.js +285 -340
  311. package/dist/widgets-v2/timeseries.js.map +1 -1
  312. package/dist/widgets-v2/utils.js +2 -8
  313. package/dist/widgets-v2.js +955 -951
  314. package/dist/widgets-v2.js.map +1 -1
  315. package/dist/zoom-toggle-CA0ifG23.js +164 -0
  316. package/dist/zoom-toggle-CA0ifG23.js.map +1 -0
  317. package/package.json +4 -4
  318. package/src/hooks/use-widget-ref.ts +1 -0
  319. package/dist/category-Ct2BzADB.js +0 -753
  320. package/dist/category-Ct2BzADB.js.map +0 -1
  321. package/dist/change-column-Fu1DCYQ3.js +0 -1186
  322. package/dist/change-column-Fu1DCYQ3.js.map +0 -1
  323. package/dist/cjs-D4KH3azB.js +0 -85
  324. package/dist/cjs-D4KH3azB.js.map +0 -1
  325. package/dist/components.js.map +0 -1
  326. package/dist/copy-button-DGL1tyli.js +0 -26
  327. package/dist/copy-button-DGL1tyli.js.map +0 -1
  328. package/dist/csv-item-hH_Gt7ur.js +0 -32
  329. package/dist/csv-item-hH_Gt7ur.js.map +0 -1
  330. package/dist/data-zoom-layout-D_FYdnap.js +0 -28
  331. package/dist/data-zoom-layout-D_FYdnap.js.map +0 -1
  332. package/dist/download-config-OKlLLSW_.js +0 -58
  333. package/dist/download-config-OKlLLSW_.js.map +0 -1
  334. package/dist/echart-B10dhEaM.js +0 -262
  335. package/dist/echart-B10dhEaM.js.map +0 -1
  336. package/dist/exports-Cr43OCul.js +0 -51
  337. package/dist/exports-Cr43OCul.js.map +0 -1
  338. package/dist/exports-Cx-f6m6U.js +0 -63
  339. package/dist/exports-Cx-f6m6U.js.map +0 -1
  340. package/dist/formatter-B9Bxn1k7.js +0 -6
  341. package/dist/formatter-B9Bxn1k7.js.map +0 -1
  342. package/dist/formula-DuC0NQLH.js +0 -79
  343. package/dist/formula-DuC0NQLH.js.map +0 -1
  344. package/dist/lasso-tool-YLFRgb-S.js +0 -582
  345. package/dist/lasso-tool-YLFRgb-S.js.map +0 -1
  346. package/dist/legend/stores.js.map +0 -1
  347. package/dist/legend-store-registry-p1tSwJXH.js +0 -472
  348. package/dist/legend-store-registry-p1tSwJXH.js.map +0 -1
  349. package/dist/markdown-DdqANCiN.js +0 -102
  350. package/dist/markdown-DdqANCiN.js.map +0 -1
  351. package/dist/markdown-content-Dk2DSgbf.js +0 -10287
  352. package/dist/markdown-content-Dk2DSgbf.js.map +0 -1
  353. package/dist/option-builders-DPeoyQaM.js +0 -130
  354. package/dist/option-builders-DPeoyQaM.js.map +0 -1
  355. package/dist/options-CthfUJDz.js +0 -46
  356. package/dist/options-CthfUJDz.js.map +0 -1
  357. package/dist/png-item-9dNbB37T.js +0 -57
  358. package/dist/png-item-9dNbB37T.js.map +0 -1
  359. package/dist/range-l4fNHLEg.js +0 -213
  360. package/dist/range-l4fNHLEg.js.map +0 -1
  361. package/dist/resolve-theme-color-BdojIw0K.js +0 -47
  362. package/dist/resolve-theme-color-BdojIw0K.js.map +0 -1
  363. package/dist/row-DZSP99LW.js +0 -34
  364. package/dist/row-DZSP99LW.js.map +0 -1
  365. package/dist/series-DLNHDWs0.js +0 -90
  366. package/dist/series-DLNHDWs0.js.map +0 -1
  367. package/dist/shared-resize-observer-98b1SK1e.js +0 -17
  368. package/dist/shared-resize-observer-98b1SK1e.js.map +0 -1
  369. package/dist/smart-tooltip-DFV6GD8R.js +0 -40
  370. package/dist/smart-tooltip-DFV6GD8R.js.map +0 -1
  371. package/dist/spread-4MYPOntd.js +0 -66
  372. package/dist/spread-4MYPOntd.js.map +0 -1
  373. package/dist/style-DVnT6HC1.js +0 -131
  374. package/dist/style-DVnT6HC1.js.map +0 -1
  375. package/dist/styles-cohnxh9F.js +0 -23
  376. package/dist/styles-cohnxh9F.js.map +0 -1
  377. package/dist/table-CTcLOycx.js +0 -383
  378. package/dist/table-CTcLOycx.js.map +0 -1
  379. package/dist/tooltip-BDnrRKrp.js +0 -25
  380. package/dist/tooltip-BDnrRKrp.js.map +0 -1
  381. package/dist/transforms-Cdx4fkU5.js +0 -106
  382. package/dist/transforms-Cdx4fkU5.js.map +0 -1
  383. package/dist/use-transform-DXPN3nY7.js +0 -110
  384. package/dist/use-transform-DXPN3nY7.js.map +0 -1
  385. package/dist/use-widget-ref-Ddr_SlJJ.js +0 -22
  386. package/dist/use-widget-ref-Ddr_SlJJ.js.map +0 -1
  387. package/dist/use-widget-selector-DFl2hW0R.js +0 -12
  388. package/dist/utils-BOhInag6.js +0 -170
  389. package/dist/utils-BOhInag6.js.map +0 -1
  390. package/dist/widget-context-DTGO0Yta.js +0 -13
  391. package/dist/widget-context-DTGO0Yta.js.map +0 -1
  392. package/dist/widget-store-Bw5zRUGg.js +0 -261
  393. package/dist/widget-store-Bw5zRUGg.js.map +0 -1
  394. package/dist/widget-store-registry-_W4Z4xp-.js +0 -178
  395. package/dist/widget-store-registry-_W4Z4xp-.js.map +0 -1
  396. package/dist/widgets/actions.js.map +0 -1
  397. package/dist/widgets/echart.js.map +0 -1
  398. package/dist/widgets/formula.js.map +0 -1
  399. package/dist/widgets/stores.js.map +0 -1
  400. package/dist/widgets-v2/actions.js.map +0 -1
  401. package/dist/widgets-v2/category.js.map +0 -1
  402. package/dist/widgets-v2/echart.js.map +0 -1
  403. package/dist/widgets-v2/formula.js.map +0 -1
  404. package/dist/widgets-v2/markdown.js.map +0 -1
  405. package/dist/widgets-v2/range.js.map +0 -1
  406. package/dist/widgets-v2/spread.js.map +0 -1
  407. package/dist/widgets-v2/stores.js.map +0 -1
  408. package/dist/widgets-v2/table.js.map +0 -1
  409. package/dist/widgets-v2/utils.js.map +0 -1
@@ -1,1317 +1,2 @@
1
- import { jsx as x, jsxs as oe, Fragment as ue } from "react/jsx-runtime";
2
- import { c as Q } from "react/compiler-runtime";
3
- import { IconButton as ee, DialogContent as Ae, Dialog as Be, Typography as We, DialogTitle as Fe, CircularProgress as $e, MenuItem as we, ListItemIcon as Ne, ListItemText as Pe, Menu as Re, useTheme as Ge, Box as De, TextField as Ze, InputAdornment as xe, SvgIcon as Ve } from "@mui/material";
4
- import { w as p, u as He } from "../widget-store-Bw5zRUGg.js";
5
- import { u as ne } from "../use-widget-selector-DFl2hW0R.js";
6
- import { FullscreenOutlined as je, Close as Ue, FileDownloadOutlined as Xe, PercentOutlined as Ye, SubdirectoryArrowLeftOutlined as Ke, ZoomInOutlined as qe, CheckBoxOutlined as Je, SearchOutlined as ze, ClearOutlined as Qe, HighlightAltOutlined as et } from "@mui/icons-material";
7
- import { useState as ie, useRef as le, useEffect as H, useSyncExternalStore as ve } from "react";
8
- import { a as Rn, d as Dn } from "../exports-Cr43OCul.js";
9
- import "../lasso-tool-YLFRgb-S.js";
10
- import "../cjs-D4KH3azB.js";
11
- import { T as re } from "../tooltip-BDnrRKrp.js";
12
- import "@carto/ps-utils";
13
- import { b as tt, a as nt, D as ot } from "../utils-BOhInag6.js";
14
- import { useSensors as lt, useSensor as ye, PointerSensor as rt, KeyboardSensor as it, DndContext as st, closestCenter as ct } from "@dnd-kit/core";
15
- import { useSortable as at, sortableKeyboardCoordinates as dt, arrayMove as ut, SortableContext as ft, verticalListSortingStrategy as mt } from "@dnd-kit/sortable";
16
- import { CSS as gt } from "@dnd-kit/utilities";
17
- import { createPortal as ht } from "react-dom";
18
- import { o as pt } from "../shared-resize-observer-98b1SK1e.js";
19
- const Ie = {
20
- title: {
21
- container: {
22
- display: "flex",
23
- alignItems: "center",
24
- justifyContent: "space-between",
25
- gap: 1
26
- }
27
- },
28
- content: {
29
- display: "flex",
30
- flexDirection: "column",
31
- gap: ({
32
- spacing: n
33
- }) => n(1)
34
- }
35
- }, bt = {};
36
- function Sn(n) {
37
- const e = Q(42), {
38
- id: t,
39
- labels: r,
40
- children: u,
41
- Icon: c,
42
- IconButtonProps: b,
43
- DialogContentProps: C,
44
- DialogProps: S
45
- } = n, o = C === void 0 ? bt : C;
46
- let i, l;
47
- e[0] !== o ? ({
48
- sx: l,
49
- ...i
50
- } = o, e[0] = o, e[1] = i, e[2] = l) : (i = e[1], l = e[2]);
51
- const {
52
- isFullScreen: a,
53
- title: d
54
- } = ne(t, St);
55
- let m;
56
- e[3] !== t ? (m = (M) => {
57
- p.setWidget(t, {
58
- isFullScreen: M.isFullScreen
59
- });
60
- }, e[3] = t, e[4] = m) : m = e[4];
61
- const f = m;
62
- let h;
63
- e[5] !== f ? (h = () => f({
64
- isFullScreen: !0
65
- }), e[5] = f, e[6] = h) : h = e[6];
66
- let g;
67
- e[7] !== c ? (g = c ?? /* @__PURE__ */ x(je, {}), e[7] = c, e[8] = g) : g = e[8];
68
- let I;
69
- e[9] !== b || e[10] !== h || e[11] !== g ? (I = /* @__PURE__ */ x(ee, { ...b, onClick: h, children: g }), e[9] = b, e[10] = h, e[11] = g, e[12] = I) : I = e[12];
70
- const s = !!a, w = r?.ariaLabel ?? `fullscreen-dialog-title-${t}`;
71
- let L;
72
- e[13] !== f ? (L = () => f({
73
- isFullScreen: !1
74
- }), e[13] = f, e[14] = L) : L = e[14];
75
- const P = `fullscreen-dialog-title-${t}`;
76
- let D;
77
- e[15] !== d ? (D = /* @__PURE__ */ x(We, { variant: "subtitle1", component: "span", children: d }), e[15] = d, e[16] = D) : D = e[16];
78
- let O;
79
- e[17] !== f ? (O = () => f({
80
- isFullScreen: !1
81
- }), e[17] = f, e[18] = O) : O = e[18];
82
- let E;
83
- e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ x(Ue, {}), e[19] = E) : E = e[19];
84
- let R;
85
- e[20] !== O ? (R = /* @__PURE__ */ x(ee, { onClick: O, children: E }), e[20] = O, e[21] = R) : R = e[21];
86
- let k;
87
- e[22] !== P || e[23] !== D || e[24] !== R ? (k = /* @__PURE__ */ oe(Fe, { id: P, sx: Ie.title.container, children: [
88
- D,
89
- R
90
- ] }), e[22] = P, e[23] = D, e[24] = R, e[25] = k) : k = e[25];
91
- let v;
92
- e[26] !== l ? (v = {
93
- ...Ie.content,
94
- ...l
95
- }, e[26] = l, e[27] = v) : v = e[27];
96
- let T;
97
- e[28] !== i || e[29] !== u || e[30] !== v ? (T = /* @__PURE__ */ x(Ae, { sx: v, ...i, children: u }), e[28] = i, e[29] = u, e[30] = v, e[31] = T) : T = e[31];
98
- let _;
99
- e[32] !== S || e[33] !== k || e[34] !== T || e[35] !== s || e[36] !== w || e[37] !== L ? (_ = /* @__PURE__ */ oe(Be, { maxWidth: !1, open: s, keepMounted: !0, "aria-labelledby": w, ...S, onClose: L, children: [
100
- k,
101
- T
102
- ] }), e[32] = S, e[33] = k, e[34] = T, e[35] = s, e[36] = w, e[37] = L, e[38] = _) : _ = e[38];
103
- let z;
104
- return e[39] !== _ || e[40] !== I ? (z = /* @__PURE__ */ oe(ue, { children: [
105
- I,
106
- _
107
- ] }), e[39] = _, e[40] = I, e[41] = z) : z = e[41], z;
108
- }
109
- function St(n) {
110
- return {
111
- isFullScreen: n?.isFullScreen,
112
- title: n?.title
113
- };
114
- }
115
- const xt = {};
116
- function xn(n) {
117
- const e = Q(31), {
118
- id: t,
119
- items: r,
120
- labels: u,
121
- Icon: c,
122
- IconButtonProps: b
123
- } = n, C = u === void 0 ? xt : u, {
124
- data: S
125
- } = ne(t, vt), [o, i] = ie(!1), [l, a] = ie(null);
126
- let d;
127
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = (M) => {
128
- M.stopPropagation(), a(M.currentTarget);
129
- }, e[0] = d) : d = e[0];
130
- const m = d;
131
- let f;
132
- e[1] !== t ? (f = (M, A) => {
133
- const W = document.createElement("a");
134
- W.href = M, W.download = A.filename ?? t, W.style.display = "none", document.body.appendChild(W), W.click(), document.body.removeChild(W), A.callback?.(W.href);
135
- }, e[1] = t, e[2] = f) : f = e[2];
136
- const h = f;
137
- let g;
138
- e[3] !== S || e[4] !== h ? (g = async (M, A) => {
139
- M.stopPropagation(), i(!0), a(null);
140
- const W = await A.modifier(S);
141
- if (!W) {
142
- i(!1);
143
- return;
144
- }
145
- h(W, A), i(!1);
146
- }, e[3] = S, e[4] = h, e[5] = g) : g = e[5];
147
- const I = g, s = C.ariaLabel ?? "download options", w = o || r.length === 0, L = o || l ? "active" : "";
148
- let P;
149
- e[6] !== c || e[7] !== o ? (P = o ? /* @__PURE__ */ x($e, { size: 18, color: "inherit" }) : c ?? /* @__PURE__ */ x(Xe, {}), e[6] = c, e[7] = o, e[8] = P) : P = e[8];
150
- let D;
151
- e[9] !== b || e[10] !== s || e[11] !== w || e[12] !== L || e[13] !== P ? (D = /* @__PURE__ */ x(ee, { size: "small", "aria-label": s, "aria-controls": "options-menu", "aria-haspopup": "true", onClick: m, ...b, disabled: w, className: L, children: P }), e[9] = b, e[10] = s, e[11] = w, e[12] = L, e[13] = P, e[14] = D) : D = e[14];
152
- let O, E;
153
- e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = {
154
- vertical: "bottom",
155
- horizontal: "right"
156
- }, E = {
157
- vertical: "top",
158
- horizontal: "right"
159
- }, e[15] = O, e[16] = E) : (O = e[15], E = e[16]);
160
- const R = !!l;
161
- let k, v;
162
- e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => a(null), v = {
163
- sx: {
164
- paddingBottom: 0
165
- }
166
- }, e[17] = k, e[18] = v) : (k = e[17], v = e[18]);
167
- let T;
168
- if (e[19] !== I || e[20] !== r) {
169
- let M;
170
- e[22] !== I ? (M = (A) => /* @__PURE__ */ oe(we, { disabled: A.disabled, onClick: (W) => {
171
- I(W, A);
172
- }, children: [
173
- A.icon && /* @__PURE__ */ x(Ne, { sx: {
174
- color: "text.primary"
175
- }, children: A.icon }),
176
- /* @__PURE__ */ x(Pe, { children: A.label })
177
- ] }, A.id), e[22] = I, e[23] = M) : M = e[23], T = r.map(M), e[19] = I, e[20] = r, e[21] = T;
178
- } else
179
- T = e[21];
180
- let _;
181
- e[24] !== l || e[25] !== R || e[26] !== T ? (_ = /* @__PURE__ */ x(Re, { variant: "menu", elevation: 8, anchorOrigin: O, transformOrigin: E, anchorEl: l, open: R, onClose: k, MenuListProps: v, children: T }), e[24] = l, e[25] = R, e[26] = T, e[27] = _) : _ = e[27];
182
- let z;
183
- return e[28] !== _ || e[29] !== D ? (z = /* @__PURE__ */ oe(ue, { children: [
184
- D,
185
- _
186
- ] }), e[28] = _, e[29] = D, e[30] = z) : z = e[30], z;
187
- }
188
- function vt(n) {
189
- return {
190
- data: n?.data
191
- };
192
- }
193
- const se = {
194
- trigger: {
195
- '&[data-active="true"]': {
196
- background: (n) => n.palette.primary.relatedLight
197
- }
198
- }
199
- };
200
- function yt(n) {
201
- return n.reduce((e, t) => t.reduce((r, u) => {
202
- if (Array.isArray(u)) {
203
- const c = u.at(-1);
204
- return typeof c == "number" ? r + c : r;
205
- }
206
- return Object.entries(u).reduce((c, [b, C]) => b === "name" ? c : typeof C == "number" ? c + C : c, r);
207
- }, e), 0);
208
- }
209
- function It(n, e) {
210
- return e === 0 ? n : n.map((t) => t.map((r) => {
211
- if (Array.isArray(r))
212
- return r.map((c, b) => b === r.length - 1 && typeof c == "number" ? c / e * 100 : c);
213
- const u = {};
214
- for (const [c, b] of Object.entries(r)) {
215
- if (c === "name") {
216
- u[c] = b;
217
- continue;
218
- }
219
- u[c] = typeof b == "number" ? b / e * 100 : b;
220
- }
221
- return u;
222
- }));
223
- }
224
- const ge = "relative-data", Te = "relative-data-config";
225
- function vn(n) {
226
- const e = Q(36), {
227
- id: t,
228
- order: r,
229
- defaultIsRelative: u,
230
- labels: c,
231
- Icon: b,
232
- IconButtonProps: C
233
- } = n, S = r === void 0 ? 10 : r, o = u === void 0 ? !1 : u, i = le(void 0);
234
- let l;
235
- e[0] !== o ? (l = (v) => ({
236
- isRelative: v?.isRelative ?? o
237
- }), e[0] = o, e[1] = l) : l = e[1];
238
- const {
239
- isRelative: a
240
- } = ne(t, l);
241
- let d, m;
242
- e[2] !== o || e[3] !== t ? (d = () => {
243
- const v = p.getWidget(t);
244
- v?.isRelative === void 0 && (o ? p.setWidget(t, {
245
- isRelative: !0,
246
- originalFormatter: v?.formatter,
247
- originalMax: v?.max
248
- }) : p.setWidget(t, {
249
- isRelative: o
250
- }));
251
- }, m = [t, o], e[2] = o, e[3] = t, e[4] = d, e[5] = m) : (d = e[4], m = e[5]), H(d, m);
252
- let f, h;
253
- e[6] !== o || e[7] !== t || e[8] !== S ? (f = () => (p.registerTool(t, {
254
- id: ge,
255
- order: S,
256
- enabled: o,
257
- fn: Tt
258
- }), () => p.unregisterTool(t, ge)), h = [t, S, o], e[6] = o, e[7] = t, e[8] = S, e[9] = f, e[10] = h) : (f = e[9], h = e[10]), H(f, h);
259
- let g, I;
260
- e[11] !== t || e[12] !== a ? (g = () => {
261
- p.setToolEnabled(t, ge, a);
262
- }, I = [t, a], e[11] = t, e[12] = a, e[13] = g, e[14] = I) : (g = e[13], I = e[14]), H(g, I);
263
- let s;
264
- e[15] !== t || e[16] !== S ? (s = () => (p.registerTool(t, {
265
- id: Te,
266
- type: "config",
267
- order: S,
268
- enabled: !0,
269
- fn: (v) => {
270
- const T = v, _ = p.getWidget(t), z = _?.sourceData != null && !(Array.isArray(_.sourceData) && _.sourceData.length === 0);
271
- if (_?.isRelative) {
272
- if (!z)
273
- return T;
274
- if (!i.current) {
275
- const M = _?.locale;
276
- i.current = (A) => new Intl.NumberFormat(M, {
277
- style: "percent",
278
- minimumFractionDigits: 1,
279
- maximumFractionDigits: 1
280
- }).format(A / 100);
281
- }
282
- return {
283
- ...T,
284
- formatter: i.current,
285
- max: 100
286
- };
287
- }
288
- return i.current = void 0, _ != null && "originalFormatter" in _ ? {
289
- ...T,
290
- formatter: _.originalFormatter,
291
- max: _.originalMax
292
- } : T;
293
- }
294
- }), () => {
295
- const v = p.getWidget(t);
296
- v?.isRelative && "originalFormatter" in v && p.setWidget(t, {
297
- formatter: v.originalFormatter,
298
- max: v.originalMax
299
- }), i.current = void 0, p.unregisterTool(t, Te);
300
- }), e[15] = t, e[16] = S, e[17] = s) : s = e[17];
301
- let w;
302
- e[18] !== o || e[19] !== t || e[20] !== S ? (w = [t, S, o], e[18] = o, e[19] = t, e[20] = S, e[21] = w) : w = e[21], H(s, w);
303
- let L;
304
- e[22] !== t || e[23] !== a ? (L = () => {
305
- const v = !a;
306
- if (i.current = void 0, v) {
307
- const T = p.getWidget(t);
308
- p.setWidget(t, {
309
- isRelative: !0,
310
- originalFormatter: T?.formatter,
311
- originalMax: T?.max
312
- });
313
- } else
314
- p.setWidget(t, {
315
- isRelative: !1
316
- });
317
- }, e[22] = t, e[23] = a, e[24] = L) : L = e[24];
318
- const P = L, D = a ? c?.absolute ?? "Show absolute values" : c?.relative ?? "Show relative values", O = c?.ariaLabel ?? D;
319
- let E;
320
- e[25] !== b ? (E = b ?? /* @__PURE__ */ x(Ye, {}), e[25] = b, e[26] = E) : E = e[26];
321
- let R;
322
- e[27] !== C || e[28] !== P || e[29] !== a || e[30] !== O || e[31] !== E ? (R = /* @__PURE__ */ x(ee, { size: "small", "aria-label": O, onClick: P, sx: se.trigger, "data-active": a, ...C, children: E }), e[27] = C, e[28] = P, e[29] = a, e[30] = O, e[31] = E, e[32] = R) : R = e[32];
323
- let k;
324
- return e[33] !== R || e[34] !== D ? (k = /* @__PURE__ */ x(re, { title: D, children: R }), e[33] = R, e[34] = D, e[35] = k) : k = e[35], k;
325
- }
326
- function Tt(n) {
327
- const e = n, t = yt(e);
328
- return It(e, t);
329
- }
330
- const _e = {
331
- container: {
332
- display: "flex",
333
- alignItems: "center",
334
- gap: ({
335
- spacing: n
336
- }) => n(0.25)
337
- },
338
- trigger: {
339
- '&[data-active="true"]': {
340
- background: (n) => n.palette.primary.relatedLight
341
- }
342
- }
343
- }, he = "zoom-toggle";
344
- function yn(n) {
345
- const e = Q(63), {
346
- id: t,
347
- defaultZoom: r,
348
- defaultZoomStart: u,
349
- defaultZoomEnd: c,
350
- labels: b,
351
- Icon: C,
352
- ResetIcon: S,
353
- IconButtonProps: o
354
- } = n, i = r === void 0 ? !1 : r, l = u === void 0 ? 0 : u, a = c === void 0 ? 100 : c, d = Ge();
355
- let m;
356
- e[0] !== i || e[1] !== a || e[2] !== l ? (m = (y) => ({
357
- zoom: y?.zoom ?? i,
358
- zoomStart: y?.zoomStart ?? l,
359
- zoomEnd: y?.zoomEnd ?? a
360
- }), e[0] = i, e[1] = a, e[2] = l, e[3] = m) : m = e[3];
361
- const {
362
- zoom: f,
363
- zoomStart: h,
364
- zoomEnd: g
365
- } = ne(t, m);
366
- let I, s;
367
- e[4] !== i || e[5] !== a || e[6] !== l || e[7] !== t ? (I = () => {
368
- p.getWidget(t)?.zoom === void 0 && p.setWidget(t, {
369
- zoom: i,
370
- zoomStart: l,
371
- zoomEnd: a
372
- });
373
- }, s = [t, i, l, a], e[4] = i, e[5] = a, e[6] = l, e[7] = t, e[8] = I, e[9] = s) : (I = e[8], s = e[9]), H(I, s);
374
- let w;
375
- e[10] !== t ? (w = (y) => {
376
- const B = y, F = B.start ?? B.batch?.[0]?.start, V = B.end ?? B.batch?.[0]?.end;
377
- F !== void 0 && V !== void 0 && p.setWidget(t, {
378
- zoom: !0,
379
- zoomStart: F,
380
- zoomEnd: V
381
- });
382
- }, e[10] = t, e[11] = w) : w = e[11];
383
- const L = w;
384
- let P;
385
- e[12] !== i || e[13] !== L || e[14] !== t || e[15] !== d ? (P = () => (p.registerTool(t, {
386
- id: he,
387
- type: "config",
388
- order: 20,
389
- enabled: i,
390
- fn: (y) => {
391
- const B = y, F = B.option, V = B.onEvents ?? {}, X = p.getWidget(t), q = X?.zoomStart ?? 0, te = X?.zoomEnd ?? 100, Y = F?.legend, J = Y?.show !== !1 && Y !== void 0, ce = parseInt(d?.spacing?.(4) ?? "32"), me = tt({
392
- start: q,
393
- end: te
394
- }, {
395
- inside: !0,
396
- xSlider: !0,
397
- ySlider: !1,
398
- bottomOffset: J ? 28 : 0
399
- }, d), ae = F?.grid, Oe = (typeof ae?.bottom == "number" ? ae.bottom : parseInt(ae?.bottom ?? "24")) + ce + 8, Me = {
400
- ...V,
401
- dataZoom: L
402
- };
403
- return {
404
- ...B,
405
- option: {
406
- ...F,
407
- ...me,
408
- grid: {
409
- ...ae,
410
- bottom: Oe
411
- }
412
- },
413
- onEvents: Me
414
- };
415
- }
416
- }), () => p.unregisterTool(t, he)), e[12] = i, e[13] = L, e[14] = t, e[15] = d, e[16] = P) : P = e[16];
417
- let D;
418
- e[17] !== i || e[18] !== a || e[19] !== l || e[20] !== L || e[21] !== t || e[22] !== d ? (D = [t, d, L, i, l, a], e[17] = i, e[18] = a, e[19] = l, e[20] = L, e[21] = t, e[22] = d, e[23] = D) : D = e[23], H(P, D);
419
- let O, E;
420
- e[24] !== t || e[25] !== f ? (O = () => {
421
- p.setToolEnabled(t, he, f);
422
- }, E = [t, f], e[24] = t, e[25] = f, e[26] = O, e[27] = E) : (O = e[26], E = e[27]), H(O, E);
423
- let R;
424
- e[28] !== t ? (R = () => {
425
- p.triggerToolPipeline(t);
426
- }, e[28] = t, e[29] = R) : R = e[29];
427
- let k;
428
- e[30] !== t || e[31] !== g || e[32] !== h ? (k = [t, h, g], e[30] = t, e[31] = g, e[32] = h, e[33] = k) : k = e[33], H(R, k);
429
- let v;
430
- e[34] !== t || e[35] !== f || e[36] !== g || e[37] !== h ? (v = () => {
431
- const y = !f;
432
- p.setWidget(t, {
433
- zoom: y,
434
- zoomStart: y ? h : 0,
435
- zoomEnd: y ? g : 100
436
- });
437
- }, e[34] = t, e[35] = f, e[36] = g, e[37] = h, e[38] = v) : v = e[38];
438
- const T = v;
439
- let _;
440
- e[39] !== a || e[40] !== l || e[41] !== t ? (_ = () => {
441
- p.setWidget(t, {
442
- zoom: !0,
443
- zoomStart: l,
444
- zoomEnd: a
445
- });
446
- }, e[39] = a, e[40] = l, e[41] = t, e[42] = _) : _ = e[42];
447
- const z = _, M = b?.enable ?? "Enable zoom", A = b?.disable ?? "Disable zoom", W = b?.reset ?? "Reset zoom", U = f ? A : M, j = b?.ariaLabel ?? U;
448
- let $;
449
- e[43] !== C ? ($ = C ?? /* @__PURE__ */ x(qe, {}), e[43] = C, e[44] = $) : $ = e[44];
450
- let G;
451
- e[45] !== o || e[46] !== T || e[47] !== j || e[48] !== $ || e[49] !== f ? (G = /* @__PURE__ */ x(ee, { size: "small", "aria-label": j, onClick: T, sx: _e.trigger, "data-active": f, ...o, children: $ }), e[45] = o, e[46] = T, e[47] = j, e[48] = $, e[49] = f, e[50] = G) : G = e[50];
452
- let Z;
453
- e[51] !== G || e[52] !== U ? (Z = /* @__PURE__ */ x(re, { title: U, children: G }), e[51] = G, e[52] = U, e[53] = Z) : Z = e[53];
454
- let N;
455
- e[54] !== o || e[55] !== S || e[56] !== z || e[57] !== W || e[58] !== f ? (N = f && /* @__PURE__ */ x(re, { title: W, children: /* @__PURE__ */ x(ee, { size: "small", "aria-label": W, onClick: z, ...o, children: S ?? /* @__PURE__ */ x(Ke, {}) }) }), e[54] = o, e[55] = S, e[56] = z, e[57] = W, e[58] = f, e[59] = N) : N = e[59];
456
- let K;
457
- return e[60] !== Z || e[61] !== N ? (K = /* @__PURE__ */ oe(De, { sx: _e.container, children: [
458
- Z,
459
- N
460
- ] }), e[60] = Z, e[61] = N, e[62] = K) : K = e[62], K;
461
- }
462
- const _t = () => {
463
- const n = Q(1);
464
- let e;
465
- return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ x("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ x("path", { d: "M4 20V8H8V20H4ZM9 20V13H13V20H9ZM16 20V4H20V20H16Z", fill: "currentColor" }) }), n[0] = e) : e = n[0], e;
466
- }, pe = "stack-toggle";
467
- function In(n) {
468
- const e = Q(35), {
469
- id: t,
470
- defaultIsStacked: r,
471
- labels: u,
472
- Icon: c,
473
- IconButtonProps: b
474
- } = n, C = r === void 0 ? !1 : r, {
475
- storeIsStacked: S,
476
- option: o
477
- } = ne(t, kt);
478
- let i;
479
- e: {
480
- if (!o) {
481
- let A;
482
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
483
- hasMultiSeries: !1,
484
- hasStackInSeries: !1
485
- }, e[0] = A) : A = e[0], i = A;
486
- break e;
487
- }
488
- let v;
489
- e[1] !== o.series ? (v = Array.isArray(o.series) ? o.series : [o.series], e[1] = o.series, e[2] = v) : v = e[2];
490
- const T = v, _ = T.length > 1;
491
- let z;
492
- e[3] !== T ? (z = T.some(Lt), e[3] = T, e[4] = z) : z = e[4];
493
- let M;
494
- e[5] !== _ || e[6] !== z ? (M = {
495
- hasMultiSeries: _,
496
- hasStackInSeries: z
497
- }, e[5] = _, e[6] = z, e[7] = M) : M = e[7], i = M;
498
- }
499
- const {
500
- hasMultiSeries: l,
501
- hasStackInSeries: a
502
- } = i, d = a || C, m = S ?? d;
503
- let f, h;
504
- e[8] !== t ? (f = () => (p.registerTool(t, {
505
- id: pe,
506
- type: "config",
507
- order: 10,
508
- enabled: !1,
509
- fn: Et
510
- }), () => p.unregisterTool(t, pe)), h = [t], e[8] = t, e[9] = f, e[10] = h) : (f = e[9], h = e[10]), H(f, h);
511
- let g, I;
512
- e[11] !== l || e[12] !== t || e[13] !== m ? (g = () => {
513
- p.setToolEnabled(t, pe, m && l);
514
- }, I = [t, m, l], e[11] = l, e[12] = t, e[13] = m, e[14] = g, e[15] = I) : (g = e[14], I = e[15]), H(g, I);
515
- let s, w;
516
- e[16] !== d || e[17] !== t || e[18] !== S ? (s = () => {
517
- S === void 0 && p.setWidget(t, {
518
- isStacked: d
519
- });
520
- }, w = [d, t, S], e[16] = d, e[17] = t, e[18] = S, e[19] = s, e[20] = w) : (s = e[19], w = e[20]), H(s, w);
521
- let L;
522
- e[21] !== t || e[22] !== m ? (L = () => {
523
- p.setWidget(t, {
524
- isStacked: !m
525
- });
526
- }, e[21] = t, e[22] = m, e[23] = L) : L = e[23];
527
- const P = L, D = m ? u?.unstacked ?? "Disable stacking" : u?.stacked ?? "Enable stacking";
528
- if (!l)
529
- return null;
530
- const O = u?.ariaLabel ?? D;
531
- let E;
532
- e[24] !== c ? (E = c ?? /* @__PURE__ */ x(_t, {}), e[24] = c, e[25] = E) : E = e[25];
533
- let R;
534
- e[26] !== b || e[27] !== P || e[28] !== m || e[29] !== O || e[30] !== E ? (R = /* @__PURE__ */ x(ee, { size: "small", "aria-label": O, onClick: P, sx: se.trigger, "data-active": m, ...b, children: E }), e[26] = b, e[27] = P, e[28] = m, e[29] = O, e[30] = E, e[31] = R) : R = e[31];
535
- let k;
536
- return e[32] !== R || e[33] !== D ? (k = /* @__PURE__ */ x(re, { title: D, children: R }), e[32] = R, e[33] = D, e[34] = k) : k = e[34], k;
537
- }
538
- function Et(n) {
539
- const e = n, t = e.option;
540
- if (!t)
541
- return n;
542
- const u = (Array.isArray(t.series) ? t.series : [t.series]).map(Ct);
543
- return {
544
- ...e,
545
- option: {
546
- ...t,
547
- series: u
548
- }
549
- };
550
- }
551
- function Ct(n) {
552
- const e = n?.stack;
553
- return {
554
- ...n,
555
- ...nt(typeof e == "string" ? e : ot)
556
- };
557
- }
558
- function Lt(n) {
559
- return n?.stack;
560
- }
561
- function kt(n) {
562
- return {
563
- storeIsStacked: n?.isStacked,
564
- option: n?.option
565
- };
566
- }
567
- const de = "lock-selection";
568
- function Tn(n) {
569
- const e = Q(24), {
570
- id: t,
571
- selectedItems: r,
572
- order: u,
573
- labels: c,
574
- Icon: b,
575
- IconButtonProps: C
576
- } = n, S = u === void 0 ? 30 : u, {
577
- storeIsLocked: o
578
- } = ne(t, wt), i = o ?? !1;
579
- let l, a;
580
- e[0] !== t || e[1] !== S ? (l = () => (p.registerTool(t, {
581
- id: de,
582
- order: S,
583
- enabled: !1,
584
- fn: (P) => {
585
- const O = p.getWidget(t)?.lockedItems ?? [];
586
- return O.length === 0 ? P : Pt(P, O);
587
- }
588
- }), () => p.unregisterTool(t, de)), a = [t, S], e[0] = t, e[1] = S, e[2] = l, e[3] = a) : (l = e[2], a = e[3]), H(l, a);
589
- let d, m;
590
- e[4] !== t || e[5] !== i || e[6] !== r.length ? (d = () => {
591
- if (i && r.length === 0) {
592
- p.setWidget(t, {
593
- isLocked: !1,
594
- lockedItems: []
595
- });
596
- return;
597
- }
598
- p.setToolEnabled(t, de, i);
599
- }, m = [t, i, r.length], e[4] = t, e[5] = i, e[6] = r.length, e[7] = d, e[8] = m) : (d = e[7], m = e[8]), H(d, m);
600
- let f;
601
- e[9] !== t || e[10] !== i || e[11] !== r ? (f = () => {
602
- i ? p.setWidget(t, {
603
- isLocked: !1,
604
- lockedItems: []
605
- }) : p.setWidget(t, {
606
- isLocked: !0,
607
- lockedItems: r
608
- });
609
- }, e[9] = t, e[10] = i, e[11] = r, e[12] = f) : f = e[12];
610
- const h = f;
611
- if (r.length === 0)
612
- return null;
613
- const g = i ? c?.unlock ?? "Unlock selection" : c?.lock ?? "Lock selection", I = c?.ariaLabel ?? g;
614
- let s;
615
- e[13] !== b ? (s = b ?? /* @__PURE__ */ x(Je, { fontSize: "small" }), e[13] = b, e[14] = s) : s = e[14];
616
- let w;
617
- e[15] !== C || e[16] !== I || e[17] !== h || e[18] !== i || e[19] !== s ? (w = /* @__PURE__ */ x(ee, { size: "small", "aria-label": I, onClick: h, sx: se.trigger, "data-active": i, ...C, children: s }), e[15] = C, e[16] = I, e[17] = h, e[18] = i, e[19] = s, e[20] = w) : w = e[20];
618
- let L;
619
- return e[21] !== w || e[22] !== g ? (L = /* @__PURE__ */ x(re, { title: g, children: w }), e[21] = w, e[22] = g, e[23] = L) : L = e[23], L;
620
- }
621
- function wt(n) {
622
- return {
623
- storeIsLocked: n?.isLocked
624
- };
625
- }
626
- function Pt(n, e) {
627
- return n.map((t) => t.filter((r) => {
628
- const u = r.name;
629
- return typeof u == "string" && e.includes(u);
630
- }));
631
- }
632
- const be = "searcher", Rt = 300;
633
- function _n(n) {
634
- const e = Q(39), {
635
- id: t,
636
- filterFn: r,
637
- order: u,
638
- labels: c,
639
- TextFieldProps: b,
640
- ClearIcon: C,
641
- debounceDelay: S
642
- } = n, o = u === void 0 ? 20 : u, i = S === void 0 ? Rt : S, l = le(null), a = le(null), {
643
- enabled: d,
644
- searchText: m
645
- } = ne(t, Dt), f = le(d), h = r ?? zt;
646
- let g;
647
- e[0] !== t ? (g = (Z) => {
648
- p.setWidget(t, {
649
- searchText: Z
650
- });
651
- }, e[0] = t, e[1] = g) : g = e[1];
652
- const I = g;
653
- let s, w;
654
- e[2] !== h || e[3] !== t || e[4] !== o ? (s = () => (p.registerTool(t, {
655
- id: be,
656
- order: o,
657
- enabled: !1,
658
- fn: async (Z) => {
659
- const K = p.getWidget(t)?.searchText ?? "";
660
- return h(Z, K);
661
- },
662
- disables: [de]
663
- }), () => p.unregisterTool(t, be)), w = [t, o, h], e[2] = h, e[3] = t, e[4] = o, e[5] = s, e[6] = w) : (s = e[5], w = e[6]), H(s, w);
664
- let L, P;
665
- e[7] !== d || e[8] !== t ? (L = () => {
666
- p.setToolEnabled(t, be, d);
667
- }, P = [t, d], e[7] = d, e[8] = t, e[9] = L, e[10] = P) : (L = e[9], P = e[10]), H(L, P);
668
- let D;
669
- e[11] !== i || e[12] !== t ? (D = () => {
670
- a.current && clearTimeout(a.current), a.current = setTimeout(() => {
671
- p.triggerToolPipeline(t);
672
- }, i);
673
- }, e[11] = i, e[12] = t, e[13] = D) : D = e[13];
674
- const O = D;
675
- let E, R;
676
- e[14] !== d ? (R = () => {
677
- d && !f.current && l.current && l.current.focus(), f.current = d;
678
- }, E = [d], e[14] = d, e[15] = E, e[16] = R) : (E = e[15], R = e[16]), H(R, E);
679
- let k, v;
680
- e[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = () => () => {
681
- a.current && clearTimeout(a.current);
682
- }, v = [], e[17] = k, e[18] = v) : (k = e[17], v = e[18]), H(k, v);
683
- let T;
684
- e[19] !== O || e[20] !== I ? (T = (Z) => {
685
- const N = Z.target.value;
686
- I(N), O();
687
- }, e[19] = O, e[20] = I, e[21] = T) : T = e[21];
688
- const _ = T;
689
- let z;
690
- e[22] !== t || e[23] !== I ? (z = () => {
691
- I(""), p.triggerToolPipeline(t), l.current && l.current.focus();
692
- }, e[22] = t, e[23] = I, e[24] = z) : z = e[24];
693
- const M = z;
694
- if (!d)
695
- return null;
696
- const A = c?.placeholder ?? "Search...", W = c?.clearAriaLabel ?? "Clear search";
697
- let U;
698
- e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ x(xe, { position: "start", children: /* @__PURE__ */ x(ze, {}) }), e[25] = U) : U = e[25];
699
- let j;
700
- e[26] !== C || e[27] !== W || e[28] !== M || e[29] !== m ? (j = m ? /* @__PURE__ */ x(xe, { position: "end", children: /* @__PURE__ */ x(ee, { size: "small", "aria-label": W, onClick: M, edge: "end", children: C ?? /* @__PURE__ */ x(Qe, { fontSize: "small" }) }) }) : null, e[26] = C, e[27] = W, e[28] = M, e[29] = m, e[30] = j) : j = e[30];
701
- let $;
702
- e[31] !== j ? ($ = {
703
- startAdornment: U,
704
- endAdornment: j
705
- }, e[31] = j, e[32] = $) : $ = e[32];
706
- let G;
707
- return e[33] !== b || e[34] !== _ || e[35] !== A || e[36] !== m || e[37] !== $ ? (G = /* @__PURE__ */ x(Ze, { inputRef: l, size: "small", fullWidth: !0, variant: "filled", placeholder: A, value: m, onChange: _, InputProps: $, ...b }), e[33] = b, e[34] = _, e[35] = A, e[36] = m, e[37] = $, e[38] = G) : G = e[38], G;
708
- }
709
- function Dt(n) {
710
- return {
711
- enabled: n?.isSearchEnabled ?? !1,
712
- searchText: n?.searchText ?? ""
713
- };
714
- }
715
- const zt = (n, e) => {
716
- if (!e.trim()) return Promise.resolve(n);
717
- const t = e.toLowerCase();
718
- return Promise.resolve(n.map((r) => r.filter((u) => Object.values(u).some((c) => String(c).toLowerCase().includes(t)))));
719
- };
720
- function En(n) {
721
- const e = Q(18), {
722
- id: t,
723
- defaultEnabled: r,
724
- labels: u,
725
- Icon: c,
726
- IconButtonProps: b
727
- } = n, C = r === void 0 ? !1 : r, {
728
- storeIsEnabled: S
729
- } = ne(t, Ot), o = S ?? C;
730
- let i, l;
731
- e[0] !== C || e[1] !== t ? (i = () => {
732
- p.getWidget(t)?.isSearchEnabled === void 0 && p.setWidget(t, {
733
- isSearchEnabled: C
734
- });
735
- }, l = [C, t], e[0] = C, e[1] = t, e[2] = i, e[3] = l) : (i = e[2], l = e[3]), H(i, l);
736
- let a;
737
- e[4] !== t || e[5] !== o ? (a = () => {
738
- p.setWidget(t, {
739
- isSearchEnabled: !o
740
- });
741
- }, e[4] = t, e[5] = o, e[6] = a) : a = e[6];
742
- const d = a, m = o ? u?.disable ?? "Disable search" : u?.enable ?? "Enable search", f = u?.ariaLabel ?? m;
743
- let h;
744
- e[7] !== c ? (h = c ?? /* @__PURE__ */ x(ze, { fontSize: "small" }), e[7] = c, e[8] = h) : h = e[8];
745
- let g;
746
- e[9] !== b || e[10] !== f || e[11] !== d || e[12] !== o || e[13] !== h ? (g = /* @__PURE__ */ x(ee, { size: "small", "aria-label": f, onClick: d, sx: se.trigger, "data-active": o, ...b, children: h }), e[9] = b, e[10] = f, e[11] = d, e[12] = o, e[13] = h, e[14] = g) : g = e[14];
747
- let I;
748
- return e[15] !== g || e[16] !== m ? (I = /* @__PURE__ */ x(re, { title: m, children: g }), e[15] = g, e[16] = m, e[17] = I) : I = e[17], I;
749
- }
750
- function Ot(n) {
751
- return {
752
- storeIsEnabled: n?.isSearchEnabled
753
- };
754
- }
755
- const Mt = () => {
756
- const n = Q(1);
757
- let e;
758
- return n[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ x("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 18 18", children: /* @__PURE__ */ x("path", { fill: "currentColor", fillRule: "evenodd", 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", clipRule: "evenodd" }) }), n[0] = e) : e = n[0], e;
759
- };
760
- function At(n) {
761
- const e = Q(18), {
762
- column: t
763
- } = n;
764
- let r;
765
- e[0] !== t.id ? (r = {
766
- id: t.id
767
- }, e[0] = t.id, e[1] = r) : r = e[1];
768
- const {
769
- attributes: u,
770
- listeners: c,
771
- setNodeRef: b,
772
- transform: C,
773
- transition: S,
774
- isDragging: o
775
- } = at(r);
776
- let i;
777
- e[2] !== C ? (i = gt.Transform.toString(C ? {
778
- ...C,
779
- x: 0
780
- } : null), e[2] = C, e[3] = i) : i = e[3];
781
- const l = o ? 0.5 : 1, a = o ? "grabbing" : "grab";
782
- let d;
783
- e[4] !== i || e[5] !== l || e[6] !== a || e[7] !== S ? (d = {
784
- transform: i,
785
- transition: S,
786
- opacity: l,
787
- cursor: a
788
- }, e[4] = i, e[5] = l, e[6] = a, e[7] = S, e[8] = d) : d = e[8];
789
- const m = d;
790
- let f;
791
- e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
792
- "&:focus-visible": {
793
- outline: Bt,
794
- outlineOffset: -2
795
- }
796
- }, e[9] = f) : f = e[9];
797
- let h;
798
- e[10] !== t.label ? (h = /* @__PURE__ */ x(Pe, { children: t.label }), e[10] = t.label, e[11] = h) : h = e[11];
799
- let g;
800
- return e[12] !== u || e[13] !== c || e[14] !== b || e[15] !== m || e[16] !== h ? (g = /* @__PURE__ */ x(we, { ref: b, style: m, ...u, ...c, role: "menuitem", tabIndex: 0, sx: f, children: h }), e[12] = u, e[13] = c, e[14] = b, e[15] = m, e[16] = h, e[17] = g) : g = e[17], g;
801
- }
802
- function Bt(n) {
803
- return `2px solid ${n.palette.primary.main}`;
804
- }
805
- const Ee = "change-column";
806
- function Cn(n) {
807
- const e = Q(46), {
808
- id: t,
809
- labels: r,
810
- Icon: u,
811
- IconButtonProps: c,
812
- MenuProps: b
813
- } = n, [C, S] = ie(null), {
814
- columns: o
815
- } = ne(t, Nt);
816
- let i;
817
- e[0] !== t ? (i = (N) => {
818
- const y = p.getWidget(t)?.columns;
819
- if (!y || y.length === 0)
820
- return N;
821
- const B = N, F = B.columns;
822
- if (!F || F.length === 0 || F.length === y.length && F.every((Y, J) => Y.id === y[J]?.id))
823
- return N;
824
- const X = new Map(F.map($t)), q = [];
825
- for (const Y of y) {
826
- const J = X.get(Y.id);
827
- J && (q.push(J), X.delete(Y.id));
828
- }
829
- for (const Y of X.values())
830
- q.push(Y);
831
- const te = q.length === y.length && q.every((Y, J) => Y.id === y[J]?.id);
832
- return {
833
- ...B,
834
- columns: te ? y : q
835
- };
836
- }, e[0] = t, e[1] = i) : i = e[1];
837
- const l = i;
838
- let a;
839
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
840
- coordinateGetter: dt
841
- }, e[2] = a) : a = e[2];
842
- const d = lt(ye(rt), ye(it, a));
843
- let m;
844
- e[3] !== o ? (m = o?.map(Ft) ?? [], e[3] = o, e[4] = m) : m = e[4];
845
- const f = m;
846
- let h, g;
847
- e[5] !== t || e[6] !== l ? (h = () => (p.registerTool(t, {
848
- id: Ee,
849
- type: "config",
850
- order: 100,
851
- enabled: !0,
852
- fn: l
853
- }), () => p.unregisterTool(t, Ee)), g = [t, l], e[5] = t, e[6] = l, e[7] = h, e[8] = g) : (h = e[7], g = e[8]), H(h, g);
854
- let I;
855
- e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = (N) => {
856
- N.stopPropagation(), S(N.currentTarget);
857
- }, e[9] = I) : I = e[9];
858
- const s = I;
859
- let w;
860
- e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = () => {
861
- S(null);
862
- }, e[10] = w) : w = e[10];
863
- const L = w;
864
- let P;
865
- e[11] !== o || e[12] !== t ? (P = (N) => {
866
- const {
867
- active: K,
868
- over: y
869
- } = N;
870
- if (!y || K.id === y.id || !o)
871
- return;
872
- const B = o.findIndex((V) => V.id === K.id), F = o.findIndex((V) => V.id === y.id);
873
- if (B !== -1 && F !== -1) {
874
- const V = ut(o, B, F);
875
- p.setWidget(t, {
876
- columns: V
877
- });
878
- }
879
- }, e[11] = o, e[12] = t, e[13] = P) : P = e[13];
880
- const D = P;
881
- if (!o || o.length < 2)
882
- return null;
883
- const O = r?.tooltip ?? "Change column", E = !!C, R = r?.ariaLabel ?? O, k = E ? "change-column-menu" : void 0, v = E ? "true" : void 0;
884
- let T;
885
- e[14] !== u ? (T = u ?? /* @__PURE__ */ x(Ve, { children: /* @__PURE__ */ x(Mt, {}) }), e[14] = u, e[15] = T) : T = e[15];
886
- let _;
887
- e[16] !== c || e[17] !== E || e[18] !== k || e[19] !== v || e[20] !== T || e[21] !== R ? (_ = /* @__PURE__ */ x(ee, { size: "small", "aria-label": R, "aria-controls": k, "aria-haspopup": "true", "aria-expanded": v, onClick: s, "data-active": E, sx: se.trigger, ...c, children: T }), e[16] = c, e[17] = E, e[18] = k, e[19] = v, e[20] = T, e[21] = R, e[22] = _) : _ = e[22];
888
- let z;
889
- e[23] !== _ || e[24] !== O ? (z = /* @__PURE__ */ x(re, { title: O, children: _ }), e[23] = _, e[24] = O, e[25] = z) : z = e[25];
890
- let M, A, W;
891
- e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = {
892
- vertical: "bottom",
893
- horizontal: "right"
894
- }, A = {
895
- vertical: "top",
896
- horizontal: "right"
897
- }, W = {
898
- paper: {
899
- sx: {
900
- overflow: "hidden"
901
- }
902
- }
903
- }, e[26] = M, e[27] = A, e[28] = W) : (M = e[26], A = e[27], W = e[28]);
904
- let U;
905
- e[29] !== o ? (U = o.map(Wt), e[29] = o, e[30] = U) : U = e[30];
906
- let j;
907
- e[31] !== f || e[32] !== U ? (j = /* @__PURE__ */ x(ft, { items: f, strategy: mt, children: U }), e[31] = f, e[32] = U, e[33] = j) : j = e[33];
908
- let $;
909
- e[34] !== b || e[35] !== C || e[36] !== E || e[37] !== j ? ($ = /* @__PURE__ */ x(Re, { id: "change-column-menu", anchorEl: C, open: E, onClose: L, anchorOrigin: M, transformOrigin: A, slotProps: W, ...b, children: j }), e[34] = b, e[35] = C, e[36] = E, e[37] = j, e[38] = $) : $ = e[38];
910
- let G;
911
- e[39] !== D || e[40] !== d || e[41] !== $ ? (G = /* @__PURE__ */ x(st, { sensors: d, collisionDetection: ct, onDragEnd: D, children: $ }), e[39] = D, e[40] = d, e[41] = $, e[42] = G) : G = e[42];
912
- let Z;
913
- return e[43] !== z || e[44] !== G ? (Z = /* @__PURE__ */ oe(ue, { children: [
914
- z,
915
- G
916
- ] }), e[43] = z, e[44] = G, e[45] = Z) : Z = e[45], Z;
917
- }
918
- function Wt(n) {
919
- return /* @__PURE__ */ x(At, { column: n }, n.id);
920
- }
921
- function Ft(n) {
922
- return n.id;
923
- }
924
- function $t(n) {
925
- return [n.id, n];
926
- }
927
- function Nt(n) {
928
- return {
929
- columns: n?.columns
930
- };
931
- }
932
- const Ce = {
933
- container: {
934
- display: "flex",
935
- alignItems: "center",
936
- gap: ({
937
- spacing: n
938
- }) => n(0.25)
939
- },
940
- trigger: {
941
- '&[data-active="true"]': {
942
- background: (n) => n.palette.primary.relatedLight
943
- }
944
- }
945
- }, Le = {
946
- // `top` and `height` are filled in at render time from the chart's plot
947
- // rect so rectangles don't bleed over the legend / axis labels.
948
- //
949
- // Colors track ECharts 6's `backgroundTint` token (used by the default
950
- // brush) — a barely-visible pale blue-gray translucent fill that washes
951
- // bars underneath rather than masking them. Border is a hairline dark
952
- // alpha so the selection edges are just findable, not prominent.
953
- rect: {
954
- position: "absolute",
955
- background: "rgba(234, 237, 245, 0.2)",
956
- border: "1px dashed rgba(0, 0, 0, 0.15)",
957
- pointerEvents: "none"
958
- },
959
- // Live drag preview — identical to committed rect (no "in-progress" vs
960
- // "committed" visual distinction; the preview just disappears on
961
- // `pointerup` as the rect takes its place).
962
- rectPreview: {
963
- position: "absolute",
964
- background: "rgba(234, 237, 245, 0.6)",
965
- border: "1px dashed rgba(0, 0, 0, 0.15)",
966
- pointerEvents: "none"
967
- }
968
- };
969
- function Gt(n, e, t) {
970
- if (t <= 0) return [];
971
- const [r, u] = n <= e ? [n, e] : [e, n], c = Math.max(0, Math.floor(r)), b = Math.min(t - 1, Math.ceil(u));
972
- if (c > b) return [];
973
- const C = [];
974
- for (let S = c; S <= b; S += 1) C.push(S);
975
- return C;
976
- }
977
- function Zt(n, e) {
978
- if (n.length === 0) return [];
979
- const t = /* @__PURE__ */ new Set();
980
- for (const r of n)
981
- for (const u of Gt(r.xStart, r.xEnd, e))
982
- t.add(u);
983
- return Array.from(t).sort((r, u) => r - u);
984
- }
985
- const Vt = 2, Ht = Object.freeze([]), ke = Object.freeze([]);
986
- function jt(n) {
987
- try {
988
- const r = n.getModel().getComponent("grid", 0)?.coordinateSystem?.getRect();
989
- return !r || !Number.isFinite(r.x) || !Number.isFinite(r.y) || !Number.isFinite(r.width) || !Number.isFinite(r.height) ? null : {
990
- x: r.x,
991
- y: r.y,
992
- width: r.width,
993
- height: r.height
994
- };
995
- } catch {
996
- return null;
997
- }
998
- }
999
- function Ut(n, e) {
1000
- return n === e ? !0 : !n || !e ? !1 : n.x === e.x && n.y === e.y && n.width === e.width && n.height === e.height;
1001
- }
1002
- function Xt(n) {
1003
- const e = Q(55), {
1004
- id: t,
1005
- multiBrush: r
1006
- } = n, {
1007
- enabled: u,
1008
- rects: c,
1009
- dataLength: b
1010
- } = ne(t, Jt), C = qt;
1011
- let S;
1012
- e[0] !== t ? (S = () => p.getWidget(t)?.refUI?.current ?? null, e[0] = t, e[1] = S) : S = e[1];
1013
- const o = ve(C, S, Kt);
1014
- let i;
1015
- e[2] !== t ? (i = () => p.getWidget(t)?.instance?.current ?? null, e[2] = t, e[3] = i) : i = e[3];
1016
- const l = ve(C, i, Yt), a = le(null), d = le(null), m = le(null), [f, h] = ie(ke), [g, I] = ie(null), [s, w] = ie(null);
1017
- let L, P;
1018
- e[4] !== o || e[5] !== t ? (L = () => {
1019
- if (!o)
1020
- return;
1021
- const y = document.getElementById(t);
1022
- if (!y)
1023
- return;
1024
- const B = y.style.position;
1025
- return B || (y.style.position = "relative"), () => {
1026
- B || (y.style.position = "");
1027
- };
1028
- }, P = [t, o], e[4] = o, e[5] = t, e[6] = L, e[7] = P) : (L = e[6], P = e[7]), H(L, P);
1029
- let D, O;
1030
- e[8] !== o || e[9] !== l || e[10] !== c ? (D = () => {
1031
- if (!l || !o)
1032
- return;
1033
- const y = () => {
1034
- const F = jt(l);
1035
- if (w((X) => Ut(X, F) ? X : F), !F)
1036
- return;
1037
- const V = [];
1038
- for (const X of c) {
1039
- const q = l.convertToPixel({
1040
- xAxisIndex: 0
1041
- }, X.xStart), te = l.convertToPixel({
1042
- xAxisIndex: 0
1043
- }, X.xEnd);
1044
- if (typeof q != "number" || typeof te != "number" || !Number.isFinite(q) || !Number.isFinite(te))
1045
- continue;
1046
- const Y = Math.max(F.x, Math.min(q, te)), J = Math.min(F.x + F.width, Math.max(q, te));
1047
- J <= Y || V.push({
1048
- left: Y,
1049
- right: J
1050
- });
1051
- }
1052
- h(V.length === 0 ? ke : V);
1053
- };
1054
- y(), l.on("finished", y);
1055
- const B = pt(o, y);
1056
- return () => {
1057
- l.off("finished", y), B();
1058
- };
1059
- }, O = [l, o, c], e[8] = o, e[9] = l, e[10] = c, e[11] = D, e[12] = O) : (D = e[11], O = e[12]), H(D, O);
1060
- let E;
1061
- e[13] !== o || e[14] !== u || e[15] !== l || e[16] !== s ? (E = (y) => {
1062
- if (!u || !o || !s)
1063
- return;
1064
- const B = a.current;
1065
- if (!B)
1066
- return;
1067
- y.preventDefault(), B.setPointerCapture(y.pointerId), m.current = y.pointerId, l?.dispatchAction({
1068
- type: "hideTip"
1069
- });
1070
- const F = o.getBoundingClientRect(), V = Se(y.clientX - F.left, s);
1071
- d.current = V, I({
1072
- left: V,
1073
- right: V
1074
- });
1075
- }, e[13] = o, e[14] = u, e[15] = l, e[16] = s, e[17] = E) : E = e[17];
1076
- const R = E;
1077
- let k;
1078
- e[18] !== o || e[19] !== l || e[20] !== s ? (k = (y) => {
1079
- if (m.current === null) {
1080
- if (l && o) {
1081
- const X = o.getBoundingClientRect();
1082
- l.dispatchAction({
1083
- type: "showTip",
1084
- x: y.clientX - X.left,
1085
- y: y.clientY - X.top
1086
- });
1087
- }
1088
- return;
1089
- }
1090
- if (m.current !== y.pointerId)
1091
- return;
1092
- const B = d.current;
1093
- if (B === null || !o || !s)
1094
- return;
1095
- const F = o.getBoundingClientRect(), V = Se(y.clientX - F.left, s);
1096
- I({
1097
- left: Math.min(B, V),
1098
- right: Math.max(B, V)
1099
- });
1100
- }, e[18] = o, e[19] = l, e[20] = s, e[21] = k) : k = e[21];
1101
- const v = k;
1102
- let T;
1103
- e[22] !== l ? (T = () => {
1104
- m.current === null && l?.dispatchAction({
1105
- type: "hideTip"
1106
- });
1107
- }, e[22] = l, e[23] = T) : T = e[23];
1108
- const _ = T;
1109
- let z;
1110
- e[24] !== o || e[25] !== b || e[26] !== t || e[27] !== l || e[28] !== r || e[29] !== s || e[30] !== c ? (z = (y) => {
1111
- if (m.current !== y.pointerId)
1112
- return;
1113
- const B = d.current, F = a.current;
1114
- if (m.current = null, d.current = null, I(null), B === null || !F || !l || !o || !s)
1115
- return;
1116
- try {
1117
- F.releasePointerCapture(y.pointerId);
1118
- } catch {
1119
- }
1120
- const V = o.getBoundingClientRect(), X = Se(y.clientX - V.left, s), q = Math.min(B, X), te = Math.max(B, X);
1121
- if (te - q < Vt)
1122
- return;
1123
- const Y = l.convertFromPixel({
1124
- xAxisIndex: 0
1125
- }, q), J = l.convertFromPixel({
1126
- xAxisIndex: 0
1127
- }, te);
1128
- if (typeof Y != "number" || typeof J != "number" || !Number.isFinite(Y) || !Number.isFinite(J))
1129
- return;
1130
- const ce = {
1131
- xStart: Y,
1132
- xEnd: J
1133
- }, fe = r ? [...c, ce] : [ce], me = {
1134
- dataIndex: Zt(fe, b),
1135
- seriesIndex: 0
1136
- };
1137
- p.setWidget(t, {
1138
- brushRects: fe,
1139
- brushSelection: me,
1140
- ...r ? {} : {
1141
- brush: !1
1142
- }
1143
- });
1144
- }, e[24] = o, e[25] = b, e[26] = t, e[27] = l, e[28] = r, e[29] = s, e[30] = c, e[31] = z) : z = e[31];
1145
- const M = z;
1146
- if (!o)
1147
- return null;
1148
- let A;
1149
- e[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
1150
- position: "absolute",
1151
- inset: 0,
1152
- pointerEvents: "none",
1153
- zIndex: 1
1154
- }, e[32] = A) : A = e[32];
1155
- const W = A;
1156
- let U;
1157
- e[33] !== u || e[34] !== s ? (U = s ? {
1158
- position: "absolute",
1159
- left: s.x,
1160
- top: s.y,
1161
- width: s.width,
1162
- height: s.height,
1163
- pointerEvents: u ? "auto" : "none",
1164
- cursor: u ? "crosshair" : "default",
1165
- userSelect: "none",
1166
- touchAction: "none"
1167
- } : void 0, e[33] = u, e[34] = s, e[35] = U) : U = e[35];
1168
- const j = U;
1169
- let $;
1170
- e[36] !== j || e[37] !== R || e[38] !== _ || e[39] !== v || e[40] !== M ? ($ = j && /* @__PURE__ */ x("div", { ref: a, style: j, onPointerDown: R, onPointerMove: v, onPointerUp: M, onPointerCancel: M, onPointerLeave: _ }), e[36] = j, e[37] = R, e[38] = _, e[39] = v, e[40] = M, e[41] = $) : $ = e[41];
1171
- let G;
1172
- e[42] !== s || e[43] !== f ? (G = s && f.map((y, B) => /* @__PURE__ */ x("div", { style: {
1173
- ...Le.rect,
1174
- left: y.left,
1175
- width: Math.max(0, y.right - y.left),
1176
- top: s.y,
1177
- height: s.height
1178
- } }, `${y.left}-${y.right}-${B}`)), e[42] = s, e[43] = f, e[44] = G) : G = e[44];
1179
- let Z;
1180
- e[45] !== g || e[46] !== s ? (Z = s && g && /* @__PURE__ */ x("div", { style: {
1181
- ...Le.rectPreview,
1182
- left: g.left,
1183
- width: Math.max(0, g.right - g.left),
1184
- top: s.y,
1185
- height: s.height
1186
- } }), e[45] = g, e[46] = s, e[47] = Z) : Z = e[47];
1187
- let N;
1188
- e[48] !== $ || e[49] !== G || e[50] !== Z ? (N = /* @__PURE__ */ oe("div", { style: W, children: [
1189
- $,
1190
- G,
1191
- Z
1192
- ] }), e[48] = $, e[49] = G, e[50] = Z, e[51] = N) : N = e[51];
1193
- let K;
1194
- return e[52] !== o || e[53] !== N ? (K = ht(N, o), e[52] = o, e[53] = N, e[54] = K) : K = e[54], K;
1195
- }
1196
- function Yt() {
1197
- return null;
1198
- }
1199
- function Kt() {
1200
- return null;
1201
- }
1202
- function qt(n) {
1203
- return He.subscribe(n);
1204
- }
1205
- function Jt(n) {
1206
- const e = n, r = n?.data?.[0], u = Array.isArray(r) ? r.length : 0;
1207
- return {
1208
- enabled: e?.brush ?? !1,
1209
- rects: e?.brushRects ?? Ht,
1210
- dataLength: u
1211
- };
1212
- }
1213
- function Se(n, e) {
1214
- return Math.max(e.x, Math.min(e.x + e.width, n));
1215
- }
1216
- const Ln = "brush-toggle";
1217
- function kn(n) {
1218
- const e = Q(35), {
1219
- id: t,
1220
- onBrushSelected: r,
1221
- multiBrush: u,
1222
- selections: c,
1223
- defaultEnabled: b,
1224
- labels: C,
1225
- Icon: S,
1226
- IconButtonProps: o
1227
- } = n, i = b === void 0 ? !1 : b;
1228
- let l;
1229
- e[0] !== i ? (l = (M) => {
1230
- const A = M;
1231
- return {
1232
- brush: A?.brush ?? i,
1233
- selection: A?.brushSelection
1234
- };
1235
- }, e[0] = i, e[1] = l) : l = e[1];
1236
- const {
1237
- brush: a,
1238
- selection: d
1239
- } = ne(t, l);
1240
- let m, f;
1241
- e[2] !== i || e[3] !== t ? (m = () => {
1242
- p.getWidget(t)?.brush === void 0 && p.setWidget(t, {
1243
- brush: i
1244
- });
1245
- }, f = [t, i], e[2] = i, e[3] = t, e[4] = m, e[5] = f) : (m = e[4], f = e[5]), H(m, f);
1246
- let h;
1247
- e[6] !== a || e[7] !== t || e[8] !== r ? (h = () => {
1248
- a ? p.setWidget(t, {
1249
- brush: !1
1250
- }) : (p.setWidget(t, {
1251
- brush: !0,
1252
- brushRects: [],
1253
- brushSelection: {
1254
- dataIndex: [],
1255
- seriesIndex: 0
1256
- }
1257
- }), r?.({
1258
- dataIndex: [],
1259
- seriesIndex: 0
1260
- }));
1261
- }, e[6] = a, e[7] = t, e[8] = r, e[9] = h) : h = e[9];
1262
- const g = h, I = le(void 0);
1263
- let s, w;
1264
- e[10] !== r || e[11] !== d ? (s = () => {
1265
- d && I.current !== d && (I.current = d, r?.(d));
1266
- }, w = [d, r], e[10] = r, e[11] = d, e[12] = s, e[13] = w) : (s = e[12], w = e[13]), H(s, w);
1267
- let L, P;
1268
- e[14] !== t || e[15] !== c ? (L = () => {
1269
- if (c !== 0)
1270
- return;
1271
- const M = p.getWidget(t), A = (M?.brushRects?.length ?? 0) > 0, W = (M?.brushSelection?.dataIndex?.length ?? 0) > 0;
1272
- !A && !W || p.setWidget(t, {
1273
- brushRects: [],
1274
- brushSelection: {
1275
- dataIndex: [],
1276
- seriesIndex: 0
1277
- }
1278
- });
1279
- }, P = [c, t], e[14] = t, e[15] = c, e[16] = L, e[17] = P) : (L = e[16], P = e[17]), H(L, P);
1280
- const D = C?.enable ?? "Enable brush selection", O = C?.disable ?? "Disable brush selection", E = a ? O : D, R = C?.ariaLabel ?? E;
1281
- let k;
1282
- e[18] !== S ? (k = S ?? /* @__PURE__ */ x(et, {}), e[18] = S, e[19] = k) : k = e[19];
1283
- let v;
1284
- e[20] !== o || e[21] !== a || e[22] !== g || e[23] !== R || e[24] !== k ? (v = /* @__PURE__ */ x(ee, { size: "small", "aria-label": R, onClick: g, sx: Ce.trigger, "data-active": a, ...o, children: k }), e[20] = o, e[21] = a, e[22] = g, e[23] = R, e[24] = k, e[25] = v) : v = e[25];
1285
- let T;
1286
- e[26] !== v || e[27] !== E ? (T = /* @__PURE__ */ x(De, { sx: Ce.container, children: /* @__PURE__ */ x(re, { title: E, children: v }) }), e[26] = v, e[27] = E, e[28] = T) : T = e[28];
1287
- let _;
1288
- e[29] !== t || e[30] !== u ? (_ = /* @__PURE__ */ x(Xt, { id: t, multiBrush: u }), e[29] = t, e[30] = u, e[31] = _) : _ = e[31];
1289
- let z;
1290
- return e[32] !== T || e[33] !== _ ? (z = /* @__PURE__ */ oe(ue, { children: [
1291
- T,
1292
- _
1293
- ] }), e[32] = T, e[33] = _, e[34] = z) : z = e[34], z;
1294
- }
1295
- export {
1296
- Ln as BRUSH_TOGGLE_TOOL_ID,
1297
- kn as BrushToggle,
1298
- Ee as CHANGE_COLUMN_TOOL_ID,
1299
- Cn as ChangeColumn,
1300
- xn as Download,
1301
- Sn as FullScreen,
1302
- de as LOCK_SELECTION_TOOL_ID,
1303
- Tn as LockSelection,
1304
- Te as RELATIVE_DATA_CONFIG_TOOL_ID,
1305
- ge as RELATIVE_DATA_TOOL_ID,
1306
- vn as RelativeData,
1307
- be as SEARCHER_TOOL_ID,
1308
- pe as STACK_TOGGLE_TOOL_ID,
1309
- _n as Searcher,
1310
- En as SearcherToggle,
1311
- In as StackToggle,
1312
- he as ZOOM_TOGGLE_TOOL_ID,
1313
- yn as ZoomToggle,
1314
- Rn as downloadToCSV,
1315
- Dn as downloadToPNG
1316
- };
1317
- //# sourceMappingURL=actions.js.map
1
+ import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, y } from "../actions-DKX98LlI.js";
2
+ export { g as BRUSH_TOGGLE_TOOL_ID, d as BrushToggle, m as CHANGE_COLUMN_TOOL_ID, c as ChangeColumn, y as Download, n as FullScreen, r as LOCK_SELECTION_TOOL_ID, l as LockSelection, u as RELATIVE_DATA_CONFIG_TOOL_ID, s as RELATIVE_DATA_TOOL_ID, o as RelativeData, f as SEARCHER_TOOL_ID, _ as STACK_TOGGLE_TOOL_ID, h as Searcher, t as SearcherToggle, i as StackToggle, a as ZOOM_TOGGLE_TOOL_ID, p as ZoomToggle, e as downloadToCSV, v as downloadToPNG };