@carto/ps-react-ui 5.0.0-widgets.9 → 5.1.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-BjPfCLG9.js +1024 -0
  2. package/dist/actions-BjPfCLG9.js.map +1 -0
  3. package/dist/actions-CGJD6q0t.js +1318 -0
  4. package/dist/actions-CGJD6q0t.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-CRihbmRv.js +249 -0
  25. package/dist/echart-CRihbmRv.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 +78 -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 +57 -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 +83 -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 +7 -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 +373 -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 +212 -0
  1091. package/src/widgets-v2/actions/fullscreen/fullscreen.tsx +301 -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 +86 -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 +330 -0
  1170. package/src/widgets-v2/echart/echart-ui.tsx +236 -0
  1171. package/src/widgets-v2/echart/echart.test.tsx +229 -0
  1172. package/src/widgets-v2/echart/echart.tsx +209 -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 +17 -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 +938 -0
  1231. package/src/widgets-v2/pie/options.ts +606 -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
package/dist/legend.js ADDED
@@ -0,0 +1,2284 @@
1
+ import { t as e } from "./tooltip-DJUGNZxY.js";
2
+ import { t } from "./smart-tooltip-CwGHCqab.js";
3
+ import { a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, s as h, u as g, v as _, y as v } from "./stores-mad-9yFn.js";
4
+ import { c as y } from "react/compiler-runtime";
5
+ import { Children as b, createContext as x, isValidElement as S, useContext as C, useEffect as w, useId as T, useLayoutEffect as E, useRef as D, useState as O } from "react";
6
+ import { Box as k, ButtonBase as A, CircularProgress as j, Collapse as M, Divider as N, IconButton as P, InputAdornment as F, Menu as I, MenuItem as L, OutlinedInput as R, Slider as ee, Typography as z, createSvgIcon as te } from "@mui/material";
7
+ import { Fragment as B, jsx as V, jsxs as H } from "react/jsx-runtime";
8
+ import { ArrowDropDown as U, ChecklistOutlined as W, Close as ne, DragIndicator as G, ErrorOutline as re, ExpandMore as ie, MoreVert as ae, VisibilityOffOutlined as oe, VisibilityOutlined as se } from "@mui/icons-material";
9
+ import { SortableContext as ce, useSortable as le, verticalListSortingStrategy as ue } from "@dnd-kit/sortable";
10
+ import { CSS as de } from "@dnd-kit/utilities";
11
+ import { DndContext as fe, DragOverlay as pe, KeyboardSensor as me, PointerSensor as he, closestCenter as ge, useSensor as _e, useSensors as ve } from "@dnd-kit/core";
12
+ //#region src/legend/provider/labels.ts
13
+ var ye = {
14
+ expandLayer: "Expand layer",
15
+ collapseLayer: "Collapse layer",
16
+ hideLayer: "Hide layer",
17
+ showLayer: "Show layer",
18
+ layerOptions: "Layer options",
19
+ zoomTo: "Zoom to layer",
20
+ loading: "Loading…",
21
+ showOnlyLayer: "Show only this layer",
22
+ showAllLayers: "Show all layers",
23
+ hideGroup: "Hide group",
24
+ showGroup: "Show group",
25
+ expandGroup: "Expand group",
26
+ collapseGroup: "Collapse group",
27
+ groupOptions: "Group options",
28
+ showOnlyGroup: "Show only this group",
29
+ showAllGroups: "Show all groups",
30
+ collapseAllGroups: "Collapse all groups",
31
+ expandAllGroups: "Expand all groups",
32
+ zoomToGroup: "Zoom to group",
33
+ panelOptions: "Legend options",
34
+ enabledLayers: "Enabled layers",
35
+ toggleEnabledLayers: "Quickly toggle enabled layers",
36
+ moreOptions: "More options",
37
+ reorder: "Reorder",
38
+ opacity: "Opacity",
39
+ attribute: "Attribute",
40
+ close: "Close",
41
+ radiusRangeBy: "Radius range by",
42
+ colorBasedOn: "Color based on",
43
+ colorGradient: "Color gradient",
44
+ maxPrefix: "MAX: ",
45
+ minPrefix: "MIN: "
46
+ }, be = x({ labels: ye });
47
+ function K() {
48
+ return C(be);
49
+ }
50
+ //#endregion
51
+ //#region src/legend/provider/legend-provider.tsx
52
+ function xe(e) {
53
+ let t = y(24), { id: r, layers: a, groups: o, labels: s, keepAlive: c, children: u } = e, d = c === void 0 || c, m;
54
+ t[0] !== o || t[1] !== r || t[2] !== a ? (m = () => {
55
+ if (n(r)) return l(r);
56
+ let e = f(r, {
57
+ layers: a,
58
+ groups: o
59
+ });
60
+ return h(r, e), e;
61
+ }, t[0] = o, t[1] = r, t[2] = a, t[3] = m) : m = t[3];
62
+ let [g] = O(m), _, b;
63
+ t[4] !== r || t[5] !== d || t[6] !== g ? (_ = () => (p(r, g), () => {
64
+ i(r, { keepAlive: d });
65
+ }), b = [
66
+ r,
67
+ g,
68
+ d
69
+ ], t[4] = r, t[5] = d, t[6] = g, t[7] = _, t[8] = b) : (_ = t[7], b = t[8]), E(_, b);
70
+ let x, S;
71
+ t[9] !== o || t[10] !== a || t[11] !== g ? (x = () => {
72
+ g.getState()._sync(a, o ?? []);
73
+ }, S = [
74
+ g,
75
+ a,
76
+ o
77
+ ], t[9] = o, t[10] = a, t[11] = g, t[12] = x, t[13] = S) : (x = t[12], S = t[13]), E(x, S);
78
+ let C;
79
+ t[14] === s ? C = t[15] : (C = s ? {
80
+ ...ye,
81
+ ...s
82
+ } : ye, t[14] = s, t[15] = C);
83
+ let w;
84
+ t[16] === C ? w = t[17] : (w = { labels: C }, t[16] = C, t[17] = w);
85
+ let T = w, D;
86
+ t[18] !== u || t[19] !== T ? (D = /* @__PURE__ */ V(be.Provider, {
87
+ value: T,
88
+ children: u
89
+ }), t[18] = u, t[19] = T, t[20] = D) : D = t[20];
90
+ let k;
91
+ return t[21] !== r || t[22] !== D ? (k = /* @__PURE__ */ V(v.Provider, {
92
+ value: r,
93
+ children: D
94
+ }), t[21] = r, t[22] = D, t[23] = k) : k = t[23], k;
95
+ }
96
+ //#endregion
97
+ //#region src/legend/components/a11y.ts
98
+ function Se(e) {
99
+ return (t) => {
100
+ (t.key === "Enter" || t.key === " ") && (t.preventDefault(), e());
101
+ };
102
+ }
103
+ //#endregion
104
+ //#region src/legend/components/contexts.ts
105
+ var Ce = x(null);
106
+ function q() {
107
+ return C(Ce);
108
+ }
109
+ var we = x(null);
110
+ function Te() {
111
+ return C(we);
112
+ }
113
+ var Ee = x(null);
114
+ function De() {
115
+ return C(Ee);
116
+ }
117
+ //#endregion
118
+ //#region src/legend/components/legend-actions/styles.ts
119
+ var Oe = { fadeGroup: {
120
+ display: "flex",
121
+ alignItems: "center",
122
+ gap: .25
123
+ } };
124
+ //#endregion
125
+ //#region src/legend/components/legend-actions/legend-actions.tsx
126
+ function ke(e) {
127
+ let t = y(3), { children: n } = e, r = q() === null ? "PsLegend-groupFade" : "PsLegend-rowFade", i;
128
+ return t[0] !== n || t[1] !== r ? (i = /* @__PURE__ */ V(k, {
129
+ className: r,
130
+ sx: Oe.fadeGroup,
131
+ children: n
132
+ }), t[0] = n, t[1] = r, t[2] = i) : i = t[2], i;
133
+ }
134
+ function Ae(e) {
135
+ let t = [], n = [];
136
+ for (let r of b.toArray(e)) je(r, ke) ? t.push(r) : n.push(r);
137
+ return {
138
+ actions: t,
139
+ body: n
140
+ };
141
+ }
142
+ function je(e, t) {
143
+ return S(e) && e.type === t;
144
+ }
145
+ //#endregion
146
+ //#region src/legend/components/legend-sortable/contexts.ts
147
+ var Me = x(!1);
148
+ function Ne() {
149
+ return C(Me);
150
+ }
151
+ //#endregion
152
+ //#region src/legend/components/legend-sortable/sortable-ids.ts
153
+ var Pe = (e, t) => `${e}:${t}`;
154
+ function Fe(e) {
155
+ let t = e.indexOf(":");
156
+ if (t === -1) return null;
157
+ let n = e.slice(0, t);
158
+ return n !== "group" && n !== "layer" ? null : {
159
+ kind: n,
160
+ id: e.slice(t + 1)
161
+ };
162
+ }
163
+ var J = {
164
+ group: {
165
+ display: "flex",
166
+ flexDirection: "column",
167
+ "& + &": {
168
+ borderTop: "1px solid",
169
+ borderColor: "divider"
170
+ }
171
+ },
172
+ groupDragging: { opacity: .4 },
173
+ header: {
174
+ display: "flex",
175
+ alignItems: "center",
176
+ gap: 1,
177
+ padding: ({ spacing: e }) => e(1.5, 2, 1.5, 2),
178
+ minHeight: 48,
179
+ borderBottom: "1px solid",
180
+ borderColor: "divider",
181
+ position: "sticky",
182
+ top: 0,
183
+ zIndex: 3,
184
+ backgroundColor: "background.default",
185
+ "& .PsLegend-groupFade > *": {
186
+ opacity: 1,
187
+ transition: ({ transitions: e }) => e.create(["opacity", "width"], {
188
+ duration: e.duration.standard,
189
+ easing: e.easing.easeInOut
190
+ }),
191
+ "@media (hover: hover)": { opacity: 0 },
192
+ "&.active": { opacity: 1 }
193
+ },
194
+ "@media (hover: hover)": {
195
+ "& .PsLegend-groupFade > *:not(.active)": {
196
+ width: 0,
197
+ minWidth: 0,
198
+ padding: 0,
199
+ overflow: "hidden",
200
+ pointerEvents: "none"
201
+ },
202
+ "& .PsLegend-groupActions:not(:has(.active))": {
203
+ width: 0,
204
+ minWidth: 0,
205
+ overflow: "hidden",
206
+ marginInlineStart: ({ spacing: e }) => `calc(-1 * ${e(1)})`,
207
+ pointerEvents: "none"
208
+ }
209
+ },
210
+ "&:hover .PsLegend-groupFade > *, &:focus-within .PsLegend-groupFade > *": {
211
+ opacity: 1,
212
+ width: "auto",
213
+ minWidth: 0,
214
+ padding: "2px",
215
+ overflow: "visible",
216
+ pointerEvents: "auto"
217
+ },
218
+ "&:hover .PsLegend-groupActions, &:focus-within .PsLegend-groupActions": {
219
+ width: "auto",
220
+ minWidth: 0,
221
+ overflow: "visible",
222
+ marginInlineStart: 0,
223
+ pointerEvents: "auto"
224
+ },
225
+ "& .PsLegend-dragHandle-group > *": {
226
+ opacity: 0,
227
+ transition: ({ transitions: e }) => e.create("opacity", {
228
+ duration: e.duration.standard,
229
+ easing: e.easing.easeInOut
230
+ }),
231
+ "@media (hover: none)": { opacity: 1 }
232
+ },
233
+ "&:hover .PsLegend-dragHandle-group > *, &:focus-within .PsLegend-dragHandle-group > *": { opacity: 1 }
234
+ },
235
+ titleArea: {
236
+ flex: 1,
237
+ minWidth: 0,
238
+ display: "flex",
239
+ alignItems: "center",
240
+ gap: 1,
241
+ cursor: "pointer",
242
+ userSelect: "none",
243
+ "&:focus-visible": {
244
+ outline: "2px solid",
245
+ outlineColor: "primary.main",
246
+ outlineOffset: -2
247
+ }
248
+ },
249
+ groupIcon: {
250
+ display: "flex",
251
+ color: "text.secondary"
252
+ },
253
+ label: {
254
+ minWidth: 0,
255
+ overflow: "hidden",
256
+ textOverflow: "ellipsis",
257
+ whiteSpace: "nowrap"
258
+ },
259
+ chevron: {
260
+ fontSize: 16,
261
+ color: "text.secondary",
262
+ flexShrink: 0,
263
+ transition: ({ transitions: e }) => e.create("transform", { duration: e.duration.shorter }),
264
+ "@media (hover: none)": { display: "none" }
265
+ },
266
+ chevronCollapsed: { transform: "rotate(-90deg)" },
267
+ actions: {
268
+ display: "flex",
269
+ alignItems: "center",
270
+ gap: .25,
271
+ flexShrink: 0,
272
+ "& .MuiIconButton-root": { padding: "2px" }
273
+ }
274
+ }, Ie = {
275
+ handleSlot: {
276
+ position: "absolute",
277
+ zIndex: 1,
278
+ display: "flex",
279
+ alignItems: "center",
280
+ justifyContent: "center",
281
+ left: 0,
282
+ top: 0
283
+ },
284
+ handleSlotLayer: { height: 48 },
285
+ handleSlotGroup: { height: 48 },
286
+ handle: {
287
+ padding: "2px",
288
+ cursor: "grab",
289
+ touchAction: "none",
290
+ color: "text.secondary",
291
+ "& .MuiSvgIcon-root": { fontSize: 18 },
292
+ "&:active": { cursor: "grabbing" },
293
+ "&:hover": { backgroundColor: "transparent" }
294
+ },
295
+ overlay: {
296
+ display: "flex",
297
+ alignItems: "center",
298
+ gap: 1,
299
+ padding: ({ spacing: e }) => e(1, 1.5),
300
+ backgroundColor: "background.paper",
301
+ borderRadius: 1,
302
+ boxShadow: 4,
303
+ height: "auto",
304
+ maxWidth: "100%",
305
+ overflow: "hidden"
306
+ },
307
+ overlayIcon: {
308
+ display: "flex",
309
+ color: "text.secondary"
310
+ },
311
+ overlayLabel: {
312
+ minWidth: 0,
313
+ overflow: "hidden",
314
+ textOverflow: "ellipsis",
315
+ whiteSpace: "nowrap"
316
+ }
317
+ };
318
+ //#endregion
319
+ //#region src/legend/components/legend-sortable/sortable-entity.tsx
320
+ function Le(t) {
321
+ let n = y(31), { kind: r, id: i, render: a } = t, { labels: o } = K(), s;
322
+ n[0] !== i || n[1] !== r ? (s = Pe(r, i), n[0] = i, n[1] = r, n[2] = s) : s = n[2];
323
+ let c;
324
+ n[3] === s ? c = n[4] : (c = { id: s }, n[3] = s, n[4] = c);
325
+ let { attributes: l, listeners: u, setNodeRef: d, setActivatorNodeRef: f, transform: p, transition: m, isDragging: h } = le(c), g;
326
+ if (n[5] !== l || n[6] !== h || n[7] !== r || n[8] !== o.reorder || n[9] !== u || n[10] !== a || n[11] !== f || n[12] !== d || n[13] !== p || n[14] !== m) {
327
+ let t = {
328
+ transform: de.Transform.toString(p ? {
329
+ ...p,
330
+ x: 0
331
+ } : null),
332
+ transition: m
333
+ }, i = `PsLegend-dragHandle-${r}`, s = r === "group" ? Ie.handleSlotGroup : Ie.handleSlotLayer, c;
334
+ n[16] === s ? c = n[17] : (c = [Ie.handleSlot, s], n[16] = s, n[17] = c);
335
+ let _;
336
+ n[18] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ V(G, {}), n[18] = _) : _ = n[18];
337
+ let v;
338
+ n[19] !== l || n[20] !== o.reorder || n[21] !== u || n[22] !== f ? (v = /* @__PURE__ */ V(P, {
339
+ ref: f,
340
+ size: "xsmall",
341
+ "aria-label": o.reorder,
342
+ ...l,
343
+ ...u,
344
+ sx: Ie.handle,
345
+ children: _
346
+ }), n[19] = l, n[20] = o.reorder, n[21] = u, n[22] = f, n[23] = v) : v = n[23];
347
+ let y;
348
+ n[24] !== o.reorder || n[25] !== v ? (y = /* @__PURE__ */ V(e, {
349
+ title: o.reorder,
350
+ children: v
351
+ }), n[24] = o.reorder, n[25] = v, n[26] = y) : y = n[26];
352
+ let b;
353
+ n[27] !== i || n[28] !== c || n[29] !== y ? (b = /* @__PURE__ */ V(k, {
354
+ component: "span",
355
+ className: i,
356
+ sx: c,
357
+ children: y
358
+ }), n[27] = i, n[28] = c, n[29] = y, n[30] = b) : b = n[30], g = a({
359
+ rootRef: d,
360
+ rootStyle: t,
361
+ dragging: h,
362
+ handle: b
363
+ }), n[5] = l, n[6] = h, n[7] = r, n[8] = o.reorder, n[9] = u, n[10] = a, n[11] = f, n[12] = d, n[13] = p, n[14] = m, n[15] = g;
364
+ } else g = n[15];
365
+ return g;
366
+ }
367
+ //#endregion
368
+ //#region src/legend/components/legend-group/legend-group.tsx
369
+ function Re(e) {
370
+ let n = y(27), { groupId: i, children: a } = e, s = r(), l;
371
+ n[0] === i ? l = n[1] : (l = (e) => e.groups[i], n[0] = i, n[1] = l);
372
+ let d = u(s, l), f = u(s, Be), p;
373
+ n[2] === i ? p = n[3] : (p = (e) => o(e, i) === "hidden", n[2] = i, n[3] = p);
374
+ let m = g(s, p), h = Ne(), _;
375
+ n[4] === i ? _ = n[5] : (_ = (e) => c(e, i).map(ze), n[4] = i, n[5] = _);
376
+ let v = u(s, _);
377
+ if (!d) return null;
378
+ let b;
379
+ n[6] === a ? b = n[7] : (b = Ae(a), n[6] = a, n[7] = b);
380
+ let { actions: x, body: S } = b, C;
381
+ n[8] !== d.collapsed || n[9] !== i || n[10] !== f ? (C = () => f(i, !d.collapsed), n[8] = d.collapsed, n[9] = i, n[10] = f, n[11] = C) : C = n[11];
382
+ let w = C, T;
383
+ n[12] !== x || n[13] !== S || n[14] !== d.collapsed || n[15] !== d.icon || n[16] !== d.label || n[17] !== i || n[18] !== m || n[19] !== v || n[20] !== h || n[21] !== w ? (T = (e) => /* @__PURE__ */ V(we.Provider, {
384
+ value: i,
385
+ children: /* @__PURE__ */ H(k, {
386
+ ref: e?.rootRef,
387
+ style: e?.rootStyle,
388
+ sx: [J.group, e?.dragging === !0 && J.groupDragging],
389
+ children: [/* @__PURE__ */ H(k, {
390
+ sx: J.header,
391
+ children: [
392
+ e?.handle,
393
+ /* @__PURE__ */ H(k, {
394
+ sx: J.titleArea,
395
+ role: "button",
396
+ tabIndex: 0,
397
+ "aria-expanded": !d.collapsed,
398
+ onClick: w,
399
+ onKeyDown: Se(w),
400
+ children: [
401
+ d.icon != null && /* @__PURE__ */ V(k, {
402
+ sx: J.groupIcon,
403
+ children: d.icon
404
+ }),
405
+ /* @__PURE__ */ V(t, {
406
+ title: d.label,
407
+ dependencies: [d.label],
408
+ children: (e) => {
409
+ let { ref: t } = e;
410
+ return /* @__PURE__ */ V(z, {
411
+ ref: t,
412
+ variant: "button",
413
+ fontWeight: "bold",
414
+ color: m ? "text.disabled" : "text.primary",
415
+ sx: J.label,
416
+ children: d.label
417
+ });
418
+ }
419
+ }),
420
+ /* @__PURE__ */ V(ie, { sx: [J.chevron, d.collapsed && J.chevronCollapsed] })
421
+ ]
422
+ }),
423
+ /* @__PURE__ */ V(k, {
424
+ className: "PsLegend-groupActions",
425
+ sx: J.actions,
426
+ children: x
427
+ })
428
+ ]
429
+ }), /* @__PURE__ */ V(M, {
430
+ in: !d.collapsed,
431
+ children: h ? /* @__PURE__ */ V(ce, {
432
+ items: v,
433
+ strategy: ue,
434
+ children: S
435
+ }) : S
436
+ })]
437
+ })
438
+ }), n[12] = x, n[13] = S, n[14] = d.collapsed, n[15] = d.icon, n[16] = d.label, n[17] = i, n[18] = m, n[19] = v, n[20] = h, n[21] = w, n[22] = T) : T = n[22];
439
+ let E = T, D;
440
+ return n[23] !== i || n[24] !== E || n[25] !== h ? (D = h ? /* @__PURE__ */ V(Le, {
441
+ kind: "group",
442
+ id: i,
443
+ render: E
444
+ }) : E(), n[23] = i, n[24] = E, n[25] = h, n[26] = D) : D = n[26], D;
445
+ }
446
+ function ze(e) {
447
+ return Pe("layer", e.id);
448
+ }
449
+ function Be(e) {
450
+ return e.setGroupCollapsed;
451
+ }
452
+ //#endregion
453
+ //#region src/legend/components/legend-row/styles.ts
454
+ var Y = {
455
+ row: {
456
+ display: "flex",
457
+ flexDirection: "column",
458
+ position: "relative",
459
+ "& + &": {
460
+ borderTop: "1px solid",
461
+ borderColor: "divider"
462
+ },
463
+ "& .PsLegend-rowFade > *": {
464
+ opacity: 1,
465
+ transition: ({ transitions: e }) => e.create(["opacity", "width"], {
466
+ duration: e.duration.standard,
467
+ easing: e.easing.easeInOut
468
+ }),
469
+ "@media (hover: hover)": { opacity: 0 },
470
+ "&.active": { opacity: 1 }
471
+ },
472
+ "@media (hover: hover)": {
473
+ "& .PsLegend-rowFade > *:not(.active)": {
474
+ width: 0,
475
+ minWidth: 0,
476
+ padding: 0,
477
+ overflow: "hidden",
478
+ pointerEvents: "none"
479
+ },
480
+ "& .PsLegend-rowActions:not(:has(.active))": {
481
+ width: 0,
482
+ minWidth: 0,
483
+ overflow: "hidden",
484
+ marginInlineStart: ({ spacing: e }) => `calc(-1 * ${e(.5)})`,
485
+ pointerEvents: "none"
486
+ }
487
+ },
488
+ "&:hover .PsLegend-rowFade > *, &:focus-within .PsLegend-rowFade > *": {
489
+ opacity: 1,
490
+ width: "auto",
491
+ minWidth: 0,
492
+ padding: "2px",
493
+ overflow: "visible",
494
+ pointerEvents: "auto"
495
+ },
496
+ "&:hover .PsLegend-rowActions, &:focus-within .PsLegend-rowActions": {
497
+ width: "auto",
498
+ minWidth: 0,
499
+ overflow: "visible",
500
+ marginInlineStart: 0,
501
+ pointerEvents: "auto"
502
+ },
503
+ "&:hover .PsLegend-value, &:focus-within .PsLegend-value": { opacity: 1 },
504
+ "& .PsLegend-dragHandle-layer > *": {
505
+ opacity: 0,
506
+ transition: ({ transitions: e }) => e.create("opacity", {
507
+ duration: e.duration.standard,
508
+ easing: e.easing.easeInOut
509
+ }),
510
+ "@media (hover: none)": { opacity: 1 }
511
+ },
512
+ "&:hover .PsLegend-dragHandle-layer > *, &:focus-within .PsLegend-dragHandle-layer > *": { opacity: 1 }
513
+ },
514
+ rowDragging: { opacity: .4 },
515
+ header: {
516
+ display: "flex",
517
+ alignItems: "flex-start",
518
+ gap: .5,
519
+ minHeight: 32,
520
+ padding: ({ spacing: e }) => e(1.5, 2, 1.5, 2),
521
+ position: "sticky",
522
+ zIndex: 2,
523
+ backgroundColor: "background.paper"
524
+ },
525
+ headerGrouped: { paddingLeft: 4.5 },
526
+ titleBox: {
527
+ flex: 1,
528
+ minWidth: 0,
529
+ display: "flex",
530
+ flexDirection: "column"
531
+ },
532
+ titleBoxInteractive: {
533
+ cursor: "pointer",
534
+ userSelect: "none",
535
+ "&:focus-visible": {
536
+ outline: "2px solid",
537
+ outlineColor: "primary.main",
538
+ outlineOffset: -2
539
+ }
540
+ },
541
+ titleLine: {
542
+ minHeight: 24,
543
+ display: "flex",
544
+ alignItems: "center",
545
+ gap: .5
546
+ },
547
+ title: {
548
+ minWidth: 0,
549
+ overflow: "hidden",
550
+ textOverflow: "ellipsis",
551
+ whiteSpace: "nowrap"
552
+ },
553
+ chevron: {
554
+ fontSize: 16,
555
+ color: "text.secondary",
556
+ flexShrink: 0,
557
+ transition: ({ transitions: e }) => e.create("transform", { duration: e.duration.shorter }),
558
+ "@media (hover: none)": { display: "none" }
559
+ },
560
+ chevronCollapsed: { transform: "rotate(-90deg)" },
561
+ actions: {
562
+ minHeight: 24,
563
+ display: "flex",
564
+ alignItems: "center",
565
+ gap: .25,
566
+ flexShrink: 0,
567
+ "& .MuiIconButton-root": { padding: "2px" }
568
+ },
569
+ content: {
570
+ display: "flex",
571
+ flexDirection: "column",
572
+ gap: 1,
573
+ padding: ({ spacing: e }) => e(.5, 2, 1, 2)
574
+ },
575
+ contentGrouped: { paddingLeft: 4.5 },
576
+ footer: { padding: ({ spacing: e }) => e(1, 2, 1, 2) },
577
+ footerGrouped: { paddingLeft: 4.5 },
578
+ dimmed: { opacity: .5 }
579
+ };
580
+ //#endregion
581
+ //#region src/legend/components/legend-row/legend-row.tsx
582
+ function Ve(e) {
583
+ let n = y(31), { layerId: i, children: a } = e, o = r(), s;
584
+ n[0] === i ? s = n[1] : (s = (e) => e.layers[i], n[0] = i, n[1] = s);
585
+ let c = u(o, s), l = u(o, He), f;
586
+ n[2] === i ? f = n[3] : (f = (e) => d(e, i), n[2] = i, n[3] = f);
587
+ let p = g(o, f), m = Te() !== null, h = Ne(), [_, v] = O(!1), b = c?.visible ?? !0, x = _ && b, S;
588
+ n[4] !== i || n[5] !== x ? (S = {
589
+ layerId: i,
590
+ opacityOpen: x,
591
+ setOpacityOpen: v
592
+ }, n[4] = i, n[5] = x, n[6] = S) : S = n[6];
593
+ let C = S;
594
+ if (!c) return null;
595
+ let w;
596
+ n[7] === a ? w = n[8] : (w = Ae(a), n[7] = a, n[8] = w);
597
+ let { actions: T, body: E } = w, D = !c.visible || c.collapsed, A = m ? 48 : 0, j = c.visible && p, N;
598
+ n[9] !== c.collapsed || n[10] !== i || n[11] !== l ? (N = () => l(i, !c.collapsed), n[9] = c.collapsed, n[10] = i, n[11] = l, n[12] = N) : N = n[12];
599
+ let P = N, F;
600
+ n[13] !== T || n[14] !== E || n[15] !== j || n[16] !== D || n[17] !== m || n[18] !== c.collapsed || n[19] !== c.helperText || n[20] !== c.name || n[21] !== c.subtitle || n[22] !== c.visible || n[23] !== C || n[24] !== A || n[25] !== P ? (F = (e) => /* @__PURE__ */ V(Ce.Provider, {
601
+ value: C,
602
+ children: /* @__PURE__ */ H(k, {
603
+ ref: e?.rootRef,
604
+ style: e?.rootStyle,
605
+ sx: [Y.row, e?.dragging === !0 && Y.rowDragging],
606
+ children: [/* @__PURE__ */ H(k, {
607
+ sx: [Y.header, m && Y.headerGrouped],
608
+ style: { top: A },
609
+ children: [
610
+ e?.handle,
611
+ /* @__PURE__ */ H(k, {
612
+ sx: [Y.titleBox, j && Y.titleBoxInteractive],
613
+ ...j && {
614
+ role: "button",
615
+ tabIndex: 0,
616
+ "aria-expanded": !c.collapsed,
617
+ onClick: P,
618
+ onKeyDown: Se(P)
619
+ },
620
+ children: [/* @__PURE__ */ H(k, {
621
+ sx: Y.titleLine,
622
+ children: [/* @__PURE__ */ V(t, {
623
+ title: c.name,
624
+ dependencies: [c.name],
625
+ children: (e) => {
626
+ let { ref: t } = e;
627
+ return /* @__PURE__ */ V(z, {
628
+ ref: t,
629
+ variant: "button",
630
+ color: c.visible ? "text.primary" : "text.disabled",
631
+ sx: Y.title,
632
+ children: c.name
633
+ });
634
+ }
635
+ }), j && /* @__PURE__ */ V(ie, { sx: [Y.chevron, c.collapsed && Y.chevronCollapsed] })]
636
+ }), c.subtitle && !D && /* @__PURE__ */ V(z, {
637
+ variant: "caption",
638
+ color: "text.secondary",
639
+ component: "p",
640
+ children: c.subtitle
641
+ })]
642
+ }),
643
+ /* @__PURE__ */ V(k, {
644
+ className: "PsLegend-rowActions",
645
+ sx: Y.actions,
646
+ children: T
647
+ })
648
+ ]
649
+ }), /* @__PURE__ */ H(M, {
650
+ in: !D,
651
+ children: [/* @__PURE__ */ V(k, {
652
+ sx: [
653
+ Y.content,
654
+ m && Y.contentGrouped,
655
+ !c.visible && Y.dimmed
656
+ ],
657
+ children: E
658
+ }), c.helperText && /* @__PURE__ */ V(k, {
659
+ sx: [Y.footer, m && Y.footerGrouped],
660
+ children: typeof c.helperText == "string" ? /* @__PURE__ */ V(z, {
661
+ variant: "caption",
662
+ color: "text.secondary",
663
+ component: "p",
664
+ children: c.helperText
665
+ }) : c.helperText
666
+ })]
667
+ })]
668
+ })
669
+ }), n[13] = T, n[14] = E, n[15] = j, n[16] = D, n[17] = m, n[18] = c.collapsed, n[19] = c.helperText, n[20] = c.name, n[21] = c.subtitle, n[22] = c.visible, n[23] = C, n[24] = A, n[25] = P, n[26] = F) : F = n[26];
670
+ let I = F, L;
671
+ return n[27] !== i || n[28] !== I || n[29] !== h ? (L = h ? /* @__PURE__ */ V(Le, {
672
+ kind: "layer",
673
+ id: i,
674
+ render: I
675
+ }) : I(), n[27] = i, n[28] = I, n[29] = h, n[30] = L) : L = n[30], L;
676
+ }
677
+ function He(e) {
678
+ return e.setCollapsed;
679
+ }
680
+ //#endregion
681
+ //#region src/legend/components/icons.tsx
682
+ var Ue = te(/* @__PURE__ */ H("g", {
683
+ transform: "translate(12 12) scale(1.33333) translate(-184 -24)",
684
+ children: [/* @__PURE__ */ V("path", {
685
+ fillRule: "evenodd",
686
+ clipRule: "evenodd",
687
+ d: "M184.901 29.5794L185.217 29.5415C185.803 29.4604 186.372 29.3216 186.918 29.1319L187 29.1007L187 29.1033L187.208 29.0255L187.536 28.8904C187.722 28.8088 187.906 28.721 188.086 28.6272L188.366 28.4747C188.381 28.4663 188.395 28.4578 188.41 28.4493C188.418 28.4451 188.425 28.4408 188.432 28.4365C188.455 28.4234 188.478 28.4102 188.5 28.3969C188.551 28.3668 188.601 28.3362 188.652 28.3052L188.912 28.1374C189.598 27.6788 190.217 27.1271 190.75 26.5002L190.751 26.4954C190.989 26.2164 191.21 25.9226 191.413 25.6152C191.488 25.5007 191.561 25.3843 191.631 25.2662L191.757 25.0445L191.878 24.8189L192.021 24.5306L192.15 24.2443L192.25 24C190.98 20.7776 187.885 18.4747 184.239 18.3782L184 18.375L183.716 18.3795L183.637 18.3823L183.373 18.3967L183.103 18.4198L182.838 18.4506L182.666 18.4749L182.426 18.5146C182.19 18.557 181.957 18.6087 181.728 18.6684L181.55 18.7175L181.271 18.8039L182.508 20.04L182.801 19.9854C183.194 19.9182 183.592 19.875 184 19.875C186.842 19.875 189.378 21.4725 190.615 24C190.172 24.915 189.55 25.7025 188.807 26.34L188.811 26.3446C188.71 26.4323 188.606 26.5172 188.5 26.5991C188.455 26.6337 188.41 26.6679 188.364 26.7015C188.108 26.8897 187.84 27.0611 187.562 27.2145C187.088 27.4755 186.585 27.6844 186.058 27.836L186.062 27.84L185.778 27.9125C185.707 27.9293 185.635 27.9452 185.563 27.9602C185.297 28.0173 185.025 28.06 184.75 28.0876V28.0866C184.503 28.1118 184.253 28.125 184 28.125C181.158 28.125 178.622 26.5275 177.385 24C177.91 22.9275 178.675 22.0425 179.582 21.3525L180.895 22.665L180.826 22.844C180.697 23.2065 180.625 23.595 180.625 24C180.625 25.86 182.14 27.375 184 27.375C184.258 27.375 184.509 27.3459 184.75 27.2915C185.462 27.129 186.09 26.7397 186.553 26.2048L179.79 19.4389C179.339 19.6833 178.912 19.9656 178.512 20.2817L178.517 20.2875L178.271 20.4884C177.704 20.9671 177.197 21.516 176.766 22.1227C176.404 22.6333 176.095 23.1838 175.845 23.7662L175.75 24C177.048 27.2925 180.25 29.625 184 29.625L184.285 29.6205L184.492 29.6116L184.628 29.6025L184.901 29.5794ZM182.133 23.9025L184.09 25.86L184.045 25.8703L184 25.875C182.965 25.875 182.125 25.035 182.125 24L182.133 23.9025Z"
688
+ }), /* @__PURE__ */ V("path", { d: "M187.368 23.9925C187.375 22.1325 185.86 20.625 184 20.625C183.722 20.625 183.46 20.6625 183.198 20.73L184.75 22.2825L184.889 22.3507C185.252 22.5477 185.543 22.8625 185.71 23.2425L187.263 24.795L187.304 24.6011C187.342 24.4045 187.368 24.2006 187.368 23.9925Z" })]
689
+ }), "VisibilityIndeterminate"), We = {
690
+ visible: se,
691
+ hidden: oe,
692
+ mixed: Ue
693
+ };
694
+ function Ge(t) {
695
+ let n = y(36), { visibility: i, onToggle: a, labels: s } = t, c = r(), l = q(), d = Te(), { labels: f } = K(), p = i !== void 0 && a !== void 0, m;
696
+ n[0] !== p || n[1] !== l ? (m = (e) => !p && l ? e.layers[l.layerId]?.visible ?? !0 : !0, n[0] = p, n[1] = l, n[2] = m) : m = n[2];
697
+ let h = g(c, m), _;
698
+ n[3] !== p || n[4] !== d || n[5] !== l ? (_ = (e) => !p && !l && d ? o(e, d) : "visible", n[3] = p, n[4] = d, n[5] = l, n[6] = _) : _ = n[6];
699
+ let v = u(c, _), b = g(c, qe), x = g(c, Ke), S, C;
700
+ n[7] !== p || n[8] !== d || n[9] !== l ? (S = () => {
701
+ !p && !l && !d && console.warn("Legend.VisibilityToggle needs `visibility`/`onToggle` props or a Legend.Row / Legend.Group context.");
702
+ }, C = [
703
+ p,
704
+ l,
705
+ d
706
+ ], n[7] = p, n[8] = d, n[9] = l, n[10] = S, n[11] = C) : (S = n[10], C = n[11]), w(S, C);
707
+ let T, E, D = s;
708
+ if (p) {
709
+ T = i;
710
+ let e;
711
+ n[12] !== a || n[13] !== i ? (e = () => a(i === "hidden"), n[12] = a, n[13] = i, n[14] = e) : e = n[14], E = e;
712
+ } else if (l) {
713
+ T = h ? "visible" : "hidden";
714
+ let e;
715
+ n[15] !== h || n[16] !== l || n[17] !== b ? (e = () => b(l.layerId, !h), n[15] = h, n[16] = l, n[17] = b, n[18] = e) : e = n[18], E = e;
716
+ } else if (d) {
717
+ T = v;
718
+ let e;
719
+ n[19] !== d || n[20] !== v || n[21] !== x ? (e = () => x(d, v === "hidden"), n[19] = d, n[20] = v, n[21] = x, n[22] = e) : e = n[22], E = e;
720
+ let t;
721
+ n[23] !== f || n[24] !== s ? (t = s ?? {
722
+ hideLayer: f.hideGroup,
723
+ showLayer: f.showGroup
724
+ }, n[23] = f, n[24] = s, n[25] = t) : t = n[25], D = t;
725
+ } else return null;
726
+ let { hideLayer: O, showLayer: k } = D ?? f, A = We[T], j = T === "hidden" ? k : O, M = T === "visible" ? void 0 : "active", N;
727
+ n[26] === A ? N = n[27] : (N = /* @__PURE__ */ V(A, { fontSize: "small" }), n[26] = A, n[27] = N);
728
+ let F;
729
+ n[28] !== E || n[29] !== j || n[30] !== M || n[31] !== N ? (F = /* @__PURE__ */ V(P, {
730
+ size: "small",
731
+ className: M,
732
+ onClick: E,
733
+ "aria-label": j,
734
+ children: N
735
+ }), n[28] = E, n[29] = j, n[30] = M, n[31] = N, n[32] = F) : F = n[32];
736
+ let I;
737
+ return n[33] !== j || n[34] !== F ? (I = /* @__PURE__ */ V(e, {
738
+ title: j,
739
+ children: F
740
+ }), n[33] = j, n[34] = F, n[35] = I) : I = n[35], I;
741
+ }
742
+ function Ke(e) {
743
+ return e.setGroupVisibility;
744
+ }
745
+ function qe(e) {
746
+ return e.setVisibility;
747
+ }
748
+ //#endregion
749
+ //#region src/legend/components/legend-overflow-menu/legend-overflow-menu.tsx
750
+ function Je(t) {
751
+ let n = y(23), { children: r, gate: i, ariaLabel: a, active: o } = t, s = i === void 0 || i, c = o !== void 0 && o, [l, u] = O(null), [d, f] = O(!1), p = D(!1), m = !!l, { labels: h } = K(), g;
752
+ n[0] === Symbol.for("react.memo_cache_sentinel") ? (g = () => u(null), n[0] = g) : g = n[0];
753
+ let _ = g, v;
754
+ n[1] === Symbol.for("react.memo_cache_sentinel") ? (v = (e) => {
755
+ p.current = e, f(e);
756
+ }, n[1] = v) : v = n[1];
757
+ let b = v, x;
758
+ n[2] === Symbol.for("react.memo_cache_sentinel") ? (x = () => p.current, n[2] = x) : x = n[2];
759
+ let S = x, C;
760
+ n[3] === Symbol.for("react.memo_cache_sentinel") ? (C = () => {
761
+ p.current || _();
762
+ }, n[3] = C) : C = n[3];
763
+ let w = C, T;
764
+ n[4] === d ? T = n[5] : (T = {
765
+ busy: d,
766
+ isBusy: S,
767
+ setBusy: b,
768
+ close: _
769
+ }, n[4] = d, n[5] = T);
770
+ let E = T;
771
+ if (!s || !r) return null;
772
+ let k;
773
+ n[6] === Symbol.for("react.memo_cache_sentinel") ? (k = (e) => {
774
+ e.stopPropagation(), u(e.currentTarget);
775
+ }, n[6] = k) : k = n[6];
776
+ let A = k, j = m || d || c ? "active" : void 0, M;
777
+ n[7] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ V(ae, { fontSize: "small" }), n[7] = M) : M = n[7];
778
+ let N;
779
+ n[8] !== a || n[9] !== m || n[10] !== j ? (N = /* @__PURE__ */ V(P, {
780
+ size: "small",
781
+ className: j,
782
+ onClick: A,
783
+ "aria-label": a,
784
+ "aria-haspopup": "menu",
785
+ "aria-expanded": m,
786
+ children: M
787
+ }), n[8] = a, n[9] = m, n[10] = j, n[11] = N) : N = n[11];
788
+ let F;
789
+ n[12] !== h.moreOptions || n[13] !== N ? (F = /* @__PURE__ */ V(e, {
790
+ title: h.moreOptions,
791
+ children: N
792
+ }), n[12] = h.moreOptions, n[13] = N, n[14] = F) : F = n[14];
793
+ let L;
794
+ n[15] !== l || n[16] !== r || n[17] !== m ? (L = /* @__PURE__ */ V(I, {
795
+ anchorEl: l,
796
+ open: m,
797
+ onClose: w,
798
+ onClick: w,
799
+ children: r
800
+ }), n[15] = l, n[16] = r, n[17] = m, n[18] = L) : L = n[18];
801
+ let R;
802
+ return n[19] !== E || n[20] !== F || n[21] !== L ? (R = /* @__PURE__ */ H(Ee.Provider, {
803
+ value: E,
804
+ children: [F, L]
805
+ }), n[19] = E, n[20] = F, n[21] = L, n[22] = R) : R = n[22], R;
806
+ }
807
+ //#endregion
808
+ //#region src/legend/components/legend-row-menu/legend-row-menu.tsx
809
+ function Ye(e) {
810
+ let t = y(5), { children: n } = e, r = q(), { labels: i } = K(), a = !!r, o = r?.opacityOpen ?? !1, s;
811
+ return t[0] !== n || t[1] !== i.layerOptions || t[2] !== a || t[3] !== o ? (s = /* @__PURE__ */ V(Je, {
812
+ gate: a,
813
+ ariaLabel: i.layerOptions,
814
+ active: o,
815
+ children: n
816
+ }), t[0] = n, t[1] = i.layerOptions, t[2] = a, t[3] = o, t[4] = s) : s = t[4], s;
817
+ }
818
+ //#endregion
819
+ //#region src/legend/components/run-async-menu-action.ts
820
+ async function Xe(e, t) {
821
+ if (!e.isBusy()) {
822
+ e.setBusy(!0);
823
+ try {
824
+ await t();
825
+ } finally {
826
+ e.setBusy(!1), e.close();
827
+ }
828
+ }
829
+ }
830
+ //#endregion
831
+ //#region src/legend/components/legend-row-menu/legend-zoom-to.tsx
832
+ function Ze(e) {
833
+ let t = y(13), { onZoomTo: n } = e, i = r(), a = q(), o = De(), s;
834
+ t[0] === a ? s = t[1] : (s = (e) => a ? e.layers[a.layerId]?.visible ?? !1 : !1, t[0] = a, t[1] = s);
835
+ let c = g(i, s), { labels: l } = K();
836
+ if (!a || !c) return null;
837
+ let u = o?.busy ?? !1, d;
838
+ t[2] !== o || t[3] !== n || t[4] !== a ? (d = (e) => {
839
+ e.stopPropagation(), o && Xe(o, () => n(a.layerId));
840
+ }, t[2] = o, t[3] = n, t[4] = a, t[5] = d) : d = t[5];
841
+ let f = d, p;
842
+ t[6] === u ? p = t[7] : (p = u && /* @__PURE__ */ V(j, {
843
+ size: 16,
844
+ sx: { mr: 1 }
845
+ }), t[6] = u, t[7] = p);
846
+ let m = u ? l.loading : l.zoomTo, h;
847
+ return t[8] !== u || t[9] !== f || t[10] !== p || t[11] !== m ? (h = /* @__PURE__ */ H(L, {
848
+ disabled: u,
849
+ onClick: f,
850
+ children: [p, m]
851
+ }), t[8] = u, t[9] = f, t[10] = p, t[11] = m, t[12] = h) : h = t[12], h;
852
+ }
853
+ //#endregion
854
+ //#region src/legend/components/legend-row-menu/legend-row-menu-items.tsx
855
+ function Qe() {
856
+ let e = y(6), t = r(), n = q(), { labels: i } = K();
857
+ if (!n) return null;
858
+ let a;
859
+ e[0] !== t || e[1] !== n.layerId ? (a = () => {
860
+ let e = l(t).getState(), r = e.layers[n.layerId];
861
+ if (r) for (let t of c(e, r.groupId)) e.setVisibility(t.id, t.id === n.layerId);
862
+ }, e[0] = t, e[1] = n.layerId, e[2] = a) : a = e[2];
863
+ let o = a, s;
864
+ return e[3] !== i.showOnlyLayer || e[4] !== o ? (s = /* @__PURE__ */ V(L, {
865
+ onClick: o,
866
+ children: i.showOnlyLayer
867
+ }), e[3] = i.showOnlyLayer, e[4] = o, e[5] = s) : s = e[5], s;
868
+ }
869
+ function $e() {
870
+ let e = y(6), t = r(), n = Te(), i = q(), { labels: a } = K();
871
+ if (n === null && !i) return null;
872
+ let o;
873
+ e[0] !== n || e[1] !== t ? (o = () => {
874
+ let e = l(t).getState();
875
+ if (n !== null) e.setGroupVisibility(n, !0);
876
+ else for (let t of c(e, void 0)) e.setVisibility(t.id, !0);
877
+ }, e[0] = n, e[1] = t, e[2] = o) : o = e[2];
878
+ let s = o, u;
879
+ return e[3] !== a.showAllLayers || e[4] !== s ? (u = /* @__PURE__ */ V(L, {
880
+ onClick: s,
881
+ children: a.showAllLayers
882
+ }), e[3] = a.showAllLayers, e[4] = s, e[5] = u) : u = e[5], u;
883
+ }
884
+ //#endregion
885
+ //#region src/legend/components/legend-group-menu/legend-group-menu.tsx
886
+ function et(e) {
887
+ let t = y(4), { children: n } = e, r = Te(), { labels: i } = K(), a = r !== null, o;
888
+ return t[0] !== n || t[1] !== i.groupOptions || t[2] !== a ? (o = /* @__PURE__ */ V(Je, {
889
+ gate: a,
890
+ ariaLabel: i.groupOptions,
891
+ children: n
892
+ }), t[0] = n, t[1] = i.groupOptions, t[2] = a, t[3] = o) : o = t[3], o;
893
+ }
894
+ //#endregion
895
+ //#region src/legend/components/legend-group-menu/legend-group-menu-items.tsx
896
+ function tt() {
897
+ let e = y(6), t = r(), n = Te(), { labels: i } = K();
898
+ if (n === null) return null;
899
+ let a;
900
+ e[0] !== n || e[1] !== t ? (a = () => {
901
+ let e = l(t).getState();
902
+ for (let t of s(e)) e.setGroupVisibility(t.id, t.id === n);
903
+ for (let t of c(e, void 0)) e.setVisibility(t.id, !1);
904
+ }, e[0] = n, e[1] = t, e[2] = a) : a = e[2];
905
+ let o = a, u;
906
+ return e[3] !== i.showOnlyGroup || e[4] !== o ? (u = /* @__PURE__ */ V(L, {
907
+ onClick: o,
908
+ children: i.showOnlyGroup
909
+ }), e[3] = i.showOnlyGroup, e[4] = o, e[5] = u) : u = e[5], u;
910
+ }
911
+ function nt() {
912
+ let e = y(5), t = r(), n = g(t, m), { labels: i } = K();
913
+ if (!n) return null;
914
+ let a;
915
+ e[0] === t ? a = e[1] : (a = () => {
916
+ let e = l(t).getState();
917
+ for (let t of s(e)) e.setGroupVisibility(t.id, !0);
918
+ for (let t of c(e, void 0)) e.setVisibility(t.id, !0);
919
+ }, e[0] = t, e[1] = a);
920
+ let o = a, u;
921
+ return e[2] !== i.showAllGroups || e[3] !== o ? (u = /* @__PURE__ */ V(L, {
922
+ onClick: o,
923
+ children: i.showAllGroups
924
+ }), e[2] = i.showAllGroups, e[3] = o, e[4] = u) : u = e[4], u;
925
+ }
926
+ function rt() {
927
+ let e = y(5), t = r(), n = g(t, m), i = g(t, a), { labels: o } = K();
928
+ if (!n) return null;
929
+ let c;
930
+ e[0] === t ? c = e[1] : (c = () => {
931
+ let e = l(t).getState(), n = a(e);
932
+ for (let t of s(e)) e.setGroupCollapsed(t.id, !n);
933
+ }, e[0] = t, e[1] = c);
934
+ let u = c, d = i ? o.expandAllGroups : o.collapseAllGroups, f;
935
+ return e[2] !== d || e[3] !== u ? (f = /* @__PURE__ */ V(L, {
936
+ onClick: u,
937
+ children: d
938
+ }), e[2] = d, e[3] = u, e[4] = f) : f = e[4], f;
939
+ }
940
+ function it(e) {
941
+ let t = y(13), { onZoomTo: n } = e, i = r(), a = Te(), s = De(), c;
942
+ t[0] === a ? c = t[1] : (c = (e) => a !== null && o(e, a) === "hidden", t[0] = a, t[1] = c);
943
+ let l = g(i, c), { labels: u } = K();
944
+ if (a === null || l) return null;
945
+ let d = s?.busy ?? !1, f;
946
+ t[2] !== a || t[3] !== s || t[4] !== n ? (f = (e) => {
947
+ e.stopPropagation(), s && Xe(s, () => n(a));
948
+ }, t[2] = a, t[3] = s, t[4] = n, t[5] = f) : f = t[5];
949
+ let p = f, m;
950
+ t[6] === d ? m = t[7] : (m = d && /* @__PURE__ */ V(j, {
951
+ size: 16,
952
+ sx: { mr: 1 }
953
+ }), t[6] = d, t[7] = m);
954
+ let h = d ? u.loading : u.zoomToGroup, _;
955
+ return t[8] !== d || t[9] !== p || t[10] !== m || t[11] !== h ? (_ = /* @__PURE__ */ H(L, {
956
+ disabled: d,
957
+ onClick: p,
958
+ children: [m, h]
959
+ }), t[8] = d, t[9] = p, t[10] = m, t[11] = h, t[12] = _) : _ = t[12], _;
960
+ }
961
+ //#endregion
962
+ //#region src/legend/components/legend-panel-menu/legend-panel-menu.tsx
963
+ function at(e) {
964
+ let t = y(3), { children: n } = e, { labels: r } = K(), i;
965
+ return t[0] !== n || t[1] !== r.panelOptions ? (i = /* @__PURE__ */ V(Je, {
966
+ ariaLabel: r.panelOptions,
967
+ children: n
968
+ }), t[0] = n, t[1] = r.panelOptions, t[2] = i) : i = t[2], i;
969
+ }
970
+ //#endregion
971
+ //#region src/legend/components/legend-visible-layers/styles.ts
972
+ var X = {
973
+ triggerWrap: { display: "inline-flex" },
974
+ paper: {
975
+ width: 240,
976
+ maxHeight: 320,
977
+ paddingBottom: .5
978
+ },
979
+ stickyHeader: {
980
+ position: "sticky",
981
+ top: 0,
982
+ zIndex: 1,
983
+ backgroundColor: "background.paper",
984
+ padding: 1,
985
+ marginBlockEnd: 1,
986
+ lineHeight: "16px",
987
+ borderBottom: "1px solid",
988
+ borderColor: "divider"
989
+ },
990
+ groupCaption: {
991
+ display: "block",
992
+ padding: ({ spacing: e }) => e(.5, 1.5)
993
+ },
994
+ item: {
995
+ minHeight: 32,
996
+ display: "flex",
997
+ alignItems: "center",
998
+ justifyContent: "space-between",
999
+ gap: 1,
1000
+ padding: ({ spacing: e }) => e(0, 1, 0, 1.5)
1001
+ },
1002
+ itemName: {
1003
+ minWidth: 0,
1004
+ overflow: "hidden",
1005
+ textOverflow: "ellipsis",
1006
+ whiteSpace: "nowrap"
1007
+ },
1008
+ eye: {
1009
+ fontSize: 18,
1010
+ color: "action.active",
1011
+ flexShrink: 0
1012
+ },
1013
+ divider: { marginY: 1 }
1014
+ };
1015
+ //#endregion
1016
+ //#region src/legend/components/legend-visible-layers/legend-visible-layers.tsx
1017
+ function ot(e, t) {
1018
+ return _(l(e).getState());
1019
+ }
1020
+ function st() {
1021
+ let t = y(33), n = r(), [i, a] = O(null), o = ot(n, g(n, ut)), s = u(n, lt), { labels: c } = K(), l = o.reduce(ct, 0), d = !!i && l > 0, f;
1022
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (f = (e) => a(e.currentTarget), t[0] = f) : f = t[0];
1023
+ let p = f, m;
1024
+ t[1] === Symbol.for("react.memo_cache_sentinel") ? (m = () => a(null), t[1] = m) : m = t[1];
1025
+ let h = m, _ = d ? "active" : void 0, v = l === 0, b;
1026
+ t[2] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ V(W, { fontSize: "small" }), t[2] = b) : b = t[2];
1027
+ let x;
1028
+ t[3] !== c.enabledLayers || t[4] !== d || t[5] !== _ || t[6] !== v ? (x = /* @__PURE__ */ V(k, {
1029
+ component: "span",
1030
+ sx: X.triggerWrap,
1031
+ children: /* @__PURE__ */ V(P, {
1032
+ size: "small",
1033
+ className: _,
1034
+ disabled: v,
1035
+ onClick: p,
1036
+ "aria-label": c.enabledLayers,
1037
+ "aria-haspopup": "menu",
1038
+ "aria-expanded": d,
1039
+ children: b
1040
+ })
1041
+ }), t[3] = c.enabledLayers, t[4] = d, t[5] = _, t[6] = v, t[7] = x) : x = t[7];
1042
+ let S;
1043
+ t[8] !== c.toggleEnabledLayers || t[9] !== x ? (S = /* @__PURE__ */ V(e, {
1044
+ title: c.toggleEnabledLayers,
1045
+ children: x
1046
+ }), t[8] = c.toggleEnabledLayers, t[9] = x, t[10] = S) : S = t[10];
1047
+ let C = I, w;
1048
+ t[11] === h ? w = t[12] : (w = { onExited: h }, t[11] = h, t[12] = w);
1049
+ let T, E;
1050
+ t[13] === Symbol.for("react.memo_cache_sentinel") ? (T = { disablePadding: !0 }, E = { paper: { sx: X.paper } }, t[13] = T, t[14] = E) : (T = t[13], E = t[14]);
1051
+ let D = `${c.enabledLayers} (${l})`, A;
1052
+ t[15] === D ? A = t[16] : (A = /* @__PURE__ */ V(z, {
1053
+ component: "div",
1054
+ variant: "caption",
1055
+ color: "text.primary",
1056
+ sx: X.stickyHeader,
1057
+ children: D
1058
+ }), t[15] = D, t[16] = A);
1059
+ let j;
1060
+ t[17] !== c.hideLayer || t[18] !== s ? (j = (t, n) => [
1061
+ n > 0 ? /* @__PURE__ */ V(N, { sx: X.divider }, `divider-${t.group?.id ?? "ungrouped"}`) : null,
1062
+ t.group ? /* @__PURE__ */ V(z, {
1063
+ variant: "caption",
1064
+ fontWeight: "medium",
1065
+ color: "text.secondary",
1066
+ sx: X.groupCaption,
1067
+ children: t.group.label
1068
+ }, `caption-${t.group.id}`) : null,
1069
+ ...t.layers.map((t) => /* @__PURE__ */ H(L, {
1070
+ disableRipple: !0,
1071
+ sx: X.item,
1072
+ onClick: () => s(t.id, !1),
1073
+ children: [/* @__PURE__ */ V(z, {
1074
+ variant: "body2",
1075
+ sx: X.itemName,
1076
+ children: t.name
1077
+ }), /* @__PURE__ */ V(e, {
1078
+ title: c.hideLayer,
1079
+ children: /* @__PURE__ */ V(se, { sx: X.eye })
1080
+ })]
1081
+ }, t.id))
1082
+ ], t[17] = c.hideLayer, t[18] = s, t[19] = j) : j = t[19];
1083
+ let M = o.flatMap(j), F;
1084
+ t[20] !== C || t[21] !== i || t[22] !== h || t[23] !== d || t[24] !== A || t[25] !== M || t[26] !== w || t[27] !== T || t[28] !== E ? (F = /* @__PURE__ */ H(C, {
1085
+ anchorEl: i,
1086
+ open: d,
1087
+ onClose: h,
1088
+ TransitionProps: w,
1089
+ MenuListProps: T,
1090
+ slotProps: E,
1091
+ children: [A, M]
1092
+ }), t[20] = C, t[21] = i, t[22] = h, t[23] = d, t[24] = A, t[25] = M, t[26] = w, t[27] = T, t[28] = E, t[29] = F) : F = t[29];
1093
+ let R;
1094
+ return t[30] !== F || t[31] !== S ? (R = /* @__PURE__ */ H(B, { children: [S, F] }), t[30] = F, t[31] = S, t[32] = R) : R = t[32], R;
1095
+ }
1096
+ function ct(e, t) {
1097
+ return e + t.layers.length;
1098
+ }
1099
+ function lt(e) {
1100
+ return e.setVisibility;
1101
+ }
1102
+ function ut(e) {
1103
+ return _(e).map(dt).join("|");
1104
+ }
1105
+ function dt(e) {
1106
+ let { group: t, layers: n } = e;
1107
+ return `${t?.id ?? ""}\x1f${t?.label ?? ""}:${n.map(ft).join(",")}`;
1108
+ }
1109
+ function ft(e) {
1110
+ return `${e.id}\x1f${e.name}`;
1111
+ }
1112
+ //#endregion
1113
+ //#region src/legend/components/legend-sortable/legend-sortable.tsx
1114
+ function pt(e) {
1115
+ let t = y(27), { children: n } = e, i = r(), [a, o] = O(null), d = D(void 0), f = u(i, mt), p;
1116
+ t[0] === i ? p = t[1] : (p = (e, t) => {
1117
+ let n = Fe(e), r = Fe(t);
1118
+ return !n || r?.kind !== n.kind ? !1 : n.kind !== "layer" || l(i).getState().layers[r.id]?.groupId === d.current;
1119
+ }, t[0] = i, t[1] = p);
1120
+ let m = p, h;
1121
+ t[2] === m ? h = t[3] : (h = (e, t) => {
1122
+ let { context: n } = t, { active: r, collisionRect: i, droppableRects: a, droppableContainers: o } = n;
1123
+ if (!r || !i || e.code !== "ArrowDown" && e.code !== "ArrowUp") return;
1124
+ e.preventDefault();
1125
+ let s = e.code === "ArrowDown", c = o.getEnabled().filter((e) => e.id !== r.id && m(String(r.id), String(e.id))).flatMap((e) => {
1126
+ let t = a.get(e.id);
1127
+ return t ? [t] : [];
1128
+ }).filter((e) => s ? e.top > i.top : e.top < i.top).sort((e, t) => s ? e.top - t.top : t.top - e.top)[0];
1129
+ return c ? {
1130
+ x: c.left,
1131
+ y: c.top
1132
+ } : void 0;
1133
+ }, t[2] = m, t[3] = h);
1134
+ let g = h, _;
1135
+ t[4] === g ? _ = t[5] : (_ = { coordinateGetter: g }, t[4] = g, t[5] = _);
1136
+ let v = ve(_e(he), _e(me, _)), b;
1137
+ t[6] === m ? b = t[7] : (b = (e) => {
1138
+ let t = e.droppableContainers.filter((t) => m(String(e.active.id), String(t.id)));
1139
+ return ge({
1140
+ ...e,
1141
+ droppableContainers: t
1142
+ });
1143
+ }, t[6] = m, t[7] = b);
1144
+ let x = b, S;
1145
+ t[8] === i ? S = t[9] : (S = (e) => {
1146
+ let t = String(e.active.id);
1147
+ o(t);
1148
+ let n = Fe(t);
1149
+ d.current = n?.kind === "layer" ? l(i).getState().layers[n.id]?.groupId : void 0;
1150
+ }, t[8] = i, t[9] = S);
1151
+ let C = S, w;
1152
+ t[10] === i ? w = t[11] : (w = (e) => {
1153
+ o(null);
1154
+ let { active: t, over: n } = e;
1155
+ if (!n || t.id === n.id) return;
1156
+ let r = Fe(String(t.id)), a = Fe(String(n.id));
1157
+ if (!r || r.kind !== a?.kind) return;
1158
+ let u = l(i).getState();
1159
+ if (r.kind === "group") {
1160
+ let e = s(u).findIndex((e) => e.id === a.id);
1161
+ e !== -1 && u.moveGroup(r.id, e);
1162
+ return;
1163
+ }
1164
+ let d = u.layers[r.id], f = u.layers[a.id];
1165
+ if (!d || !f || d.groupId !== f.groupId) return;
1166
+ let p = c(u, d.groupId).findIndex((e) => e.id === a.id);
1167
+ p !== -1 && u.moveLayer(r.id, p);
1168
+ }, t[10] = i, t[11] = w);
1169
+ let T = w, E;
1170
+ t[12] === Symbol.for("react.memo_cache_sentinel") ? (E = () => o(null), t[12] = E) : E = t[12];
1171
+ let k;
1172
+ t[13] !== n || t[14] !== f ? (k = /* @__PURE__ */ V(ce, {
1173
+ items: f,
1174
+ strategy: ue,
1175
+ children: n
1176
+ }), t[13] = n, t[14] = f, t[15] = k) : k = t[15];
1177
+ let A;
1178
+ t[16] === a ? A = t[17] : (A = a && /* @__PURE__ */ V(_t, { activeId: a }), t[16] = a, t[17] = A);
1179
+ let j;
1180
+ t[18] === A ? j = t[19] : (j = /* @__PURE__ */ V(pe, { children: A }), t[18] = A, t[19] = j);
1181
+ let M;
1182
+ return t[20] !== x || t[21] !== T || t[22] !== C || t[23] !== v || t[24] !== j || t[25] !== k ? (M = /* @__PURE__ */ V(Me.Provider, {
1183
+ value: !0,
1184
+ children: /* @__PURE__ */ H(fe, {
1185
+ sensors: v,
1186
+ collisionDetection: x,
1187
+ onDragStart: C,
1188
+ onDragEnd: T,
1189
+ onDragCancel: E,
1190
+ children: [k, j]
1191
+ })
1192
+ }), t[20] = x, t[21] = T, t[22] = C, t[23] = v, t[24] = j, t[25] = k, t[26] = M) : M = t[26], M;
1193
+ }
1194
+ function mt(e) {
1195
+ return [...s(e).map(gt), ...c(e, void 0).map(ht)];
1196
+ }
1197
+ function ht(e) {
1198
+ return Pe("layer", e.id);
1199
+ }
1200
+ function gt(e) {
1201
+ return Pe("group", e.id);
1202
+ }
1203
+ function _t(e) {
1204
+ let t = y(15), { activeId: n } = e, i = r(), a;
1205
+ t[0] === n ? a = t[1] : (a = Fe(n), t[0] = n, t[1] = a);
1206
+ let o = a, s;
1207
+ t[2] === o ? s = t[3] : (s = (e) => o ? o.kind === "group" ? e.groups[o.id]?.label : e.layers[o.id]?.name : void 0, t[2] = o, t[3] = s);
1208
+ let c = g(i, s), l;
1209
+ t[4] === o ? l = t[5] : (l = (e) => o?.kind === "group" ? e.groups[o.id]?.icon : void 0, t[4] = o, t[5] = l);
1210
+ let u = g(i, l);
1211
+ if (!o || c === void 0) return null;
1212
+ let d;
1213
+ t[6] !== u || t[7] !== o.kind ? (d = o.kind === "group" && u != null && /* @__PURE__ */ V(k, {
1214
+ sx: Ie.overlayIcon,
1215
+ children: u
1216
+ }), t[6] = u, t[7] = o.kind, t[8] = d) : d = t[8];
1217
+ let f = o.kind === "group" ? "bold" : void 0, p;
1218
+ t[9] !== c || t[10] !== f ? (p = /* @__PURE__ */ V(z, {
1219
+ variant: "button",
1220
+ fontWeight: f,
1221
+ color: "text.primary",
1222
+ sx: Ie.overlayLabel,
1223
+ children: c
1224
+ }), t[9] = c, t[10] = f, t[11] = p) : p = t[11];
1225
+ let m;
1226
+ return t[12] !== d || t[13] !== p ? (m = /* @__PURE__ */ H(k, {
1227
+ sx: Ie.overlay,
1228
+ children: [d, p]
1229
+ }), t[12] = d, t[13] = p, t[14] = m) : m = t[14], m;
1230
+ }
1231
+ //#endregion
1232
+ //#region src/legend/components/legend-opacity/styles.ts
1233
+ var vt = {
1234
+ inline: {
1235
+ display: "flex",
1236
+ flexDirection: "column",
1237
+ gap: .5,
1238
+ borderRadius: 1
1239
+ },
1240
+ inlineHeader: {
1241
+ display: "flex",
1242
+ alignItems: "center",
1243
+ justifyContent: "space-between"
1244
+ },
1245
+ inlineControls: {
1246
+ display: "flex",
1247
+ alignItems: "center",
1248
+ gap: 1.5
1249
+ },
1250
+ slider: { flex: 1 },
1251
+ input: {
1252
+ width: 72,
1253
+ flexShrink: 0,
1254
+ "& input": { textAlign: "right" }
1255
+ }
1256
+ }, yt = (e) => Math.min(100, Math.max(0, Math.round(e)));
1257
+ function bt() {
1258
+ let e = y(10), t = r(), n = q(), i;
1259
+ e[0] === n ? i = e[1] : (i = (e) => n ? e.layers[n.layerId] : void 0, e[0] = n, e[1] = i);
1260
+ let a = u(t, i), o = u(t, xt), { labels: s } = K();
1261
+ if (!n || !a?.visible || !a.opacityControl) return null;
1262
+ let c;
1263
+ e[2] !== a || e[3] !== n || e[4] !== o ? (c = () => {
1264
+ let e = !n.opacityOpen;
1265
+ n.setOpacityOpen(e), e && a.collapsed && o(n.layerId, !1);
1266
+ }, e[2] = a, e[3] = n, e[4] = o, e[5] = c) : c = e[5];
1267
+ let l = c, d;
1268
+ return e[6] !== s.opacity || e[7] !== n.opacityOpen || e[8] !== l ? (d = /* @__PURE__ */ V(L, {
1269
+ selected: n.opacityOpen,
1270
+ onClick: l,
1271
+ children: s.opacity
1272
+ }), e[6] = s.opacity, e[7] = n.opacityOpen, e[8] = l, e[9] = d) : d = e[9], d;
1273
+ }
1274
+ function xt(e) {
1275
+ return e.setCollapsed;
1276
+ }
1277
+ function St() {
1278
+ let t = y(47), n = r(), i = q(), a = i?.layerId, o;
1279
+ t[0] === a ? o = t[1] : (o = (e) => a ? e.layers[a]?.opacity ?? 1 : 1, t[0] = a, t[1] = o);
1280
+ let s = g(n, o), c = g(n, wt), { labels: l } = K(), [u, d] = O(null), [f, p] = O(null);
1281
+ if (!i || !a || !i.opacityOpen) return null;
1282
+ let m;
1283
+ t[2] !== u || t[3] !== s ? (m = u ?? yt(s * 100), t[2] = u, t[3] = s, t[4] = m) : m = t[4];
1284
+ let h = m, _;
1285
+ t[5] !== a || t[6] !== c ? (_ = (e) => {
1286
+ let t = yt(e);
1287
+ return c(a, t / 100), t;
1288
+ }, t[5] = a, t[6] = c, t[7] = _) : _ = t[7];
1289
+ let v = _, b;
1290
+ t[8] === v ? b = t[9] : (b = (e) => {
1291
+ if (p(e), e.trim() === "") return;
1292
+ let t = Number(e);
1293
+ if (!Number.isFinite(t)) return;
1294
+ let n = v(t);
1295
+ n !== t && p(String(n));
1296
+ }, t[8] = v, t[9] = b);
1297
+ let x = b, S;
1298
+ t[10] === i ? S = t[11] : (S = () => {
1299
+ i.setOpacityOpen(!1), p(null), d(null);
1300
+ }, t[10] = i, t[11] = S);
1301
+ let C = S, w;
1302
+ t[12] === l.opacity ? w = t[13] : (w = /* @__PURE__ */ V(z, {
1303
+ variant: "caption",
1304
+ fontWeight: "medium",
1305
+ color: "text.primary",
1306
+ children: l.opacity
1307
+ }), t[12] = l.opacity, t[13] = w);
1308
+ let T;
1309
+ t[14] === Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ V(ne, { fontSize: "small" }), t[14] = T) : T = t[14];
1310
+ let E;
1311
+ t[15] !== C || t[16] !== l.close ? (E = /* @__PURE__ */ V(P, {
1312
+ size: "small",
1313
+ onClick: C,
1314
+ "aria-label": l.close,
1315
+ children: T
1316
+ }), t[15] = C, t[16] = l.close, t[17] = E) : E = t[17];
1317
+ let D;
1318
+ t[18] !== l.close || t[19] !== E ? (D = /* @__PURE__ */ V(e, {
1319
+ title: l.close,
1320
+ children: E
1321
+ }), t[18] = l.close, t[19] = E, t[20] = D) : D = t[20];
1322
+ let A;
1323
+ t[21] !== w || t[22] !== D ? (A = /* @__PURE__ */ H(k, {
1324
+ sx: vt.inlineHeader,
1325
+ children: [w, D]
1326
+ }), t[21] = w, t[22] = D, t[23] = A) : A = t[23];
1327
+ let j;
1328
+ t[24] === Symbol.for("react.memo_cache_sentinel") ? (j = (e, t) => {
1329
+ d(t), p(null);
1330
+ }, t[24] = j) : j = t[24];
1331
+ let M;
1332
+ t[25] === v ? M = t[26] : (M = (e, t) => {
1333
+ v(t), d(null);
1334
+ }, t[25] = v, t[26] = M);
1335
+ let N;
1336
+ t[27] !== l.opacity || t[28] !== h || t[29] !== M ? (N = /* @__PURE__ */ V(ee, {
1337
+ size: "small",
1338
+ min: 0,
1339
+ max: 100,
1340
+ step: 1,
1341
+ value: h,
1342
+ onChange: j,
1343
+ onChangeCommitted: M,
1344
+ "aria-label": l.opacity,
1345
+ sx: vt.slider
1346
+ }), t[27] = l.opacity, t[28] = h, t[29] = M, t[30] = N) : N = t[30];
1347
+ let I = f ?? String(h), L;
1348
+ t[31] === x ? L = t[32] : (L = (e) => x(e.target.value), t[31] = x, t[32] = L);
1349
+ let te;
1350
+ t[33] === Symbol.for("react.memo_cache_sentinel") ? (te = () => p(null), t[33] = te) : te = t[33];
1351
+ let B;
1352
+ t[34] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ V(F, {
1353
+ position: "end",
1354
+ children: "%"
1355
+ }), t[34] = B) : B = t[34];
1356
+ let U;
1357
+ t[35] === l.opacity ? U = t[36] : (U = {
1358
+ inputMode: "numeric",
1359
+ "aria-label": l.opacity
1360
+ }, t[35] = l.opacity, t[36] = U);
1361
+ let W;
1362
+ t[37] !== I || t[38] !== L || t[39] !== U ? (W = /* @__PURE__ */ V(R, {
1363
+ size: "small",
1364
+ value: I,
1365
+ onChange: L,
1366
+ onBlur: te,
1367
+ onKeyDown: Ct,
1368
+ endAdornment: B,
1369
+ inputProps: U,
1370
+ sx: vt.input
1371
+ }), t[37] = I, t[38] = L, t[39] = U, t[40] = W) : W = t[40];
1372
+ let G;
1373
+ t[41] !== N || t[42] !== W ? (G = /* @__PURE__ */ H(k, {
1374
+ sx: vt.inlineControls,
1375
+ children: [N, W]
1376
+ }), t[41] = N, t[42] = W, t[43] = G) : G = t[43];
1377
+ let re;
1378
+ return t[44] !== G || t[45] !== A ? (re = /* @__PURE__ */ H(k, {
1379
+ sx: vt.inline,
1380
+ children: [A, G]
1381
+ }), t[44] = G, t[45] = A, t[46] = re) : re = t[46], re;
1382
+ }
1383
+ function Ct(e) {
1384
+ e.key === "Enter" && e.target.blur();
1385
+ }
1386
+ function wt(e) {
1387
+ return e.setOpacity;
1388
+ }
1389
+ var Tt = {
1390
+ Item: bt,
1391
+ Inline: St
1392
+ }, Et = {
1393
+ trigger: {
1394
+ width: "100%",
1395
+ minHeight: 32,
1396
+ display: "flex",
1397
+ alignItems: "center",
1398
+ justifyContent: "space-between",
1399
+ gap: 1,
1400
+ padding: ({ spacing: e }) => e(0, 1.5),
1401
+ border: "1px solid",
1402
+ borderColor: "divider",
1403
+ borderRadius: 1,
1404
+ backgroundColor: "background.paper",
1405
+ color: "text.primary",
1406
+ "&:hover": { borderColor: "text.primary" }
1407
+ },
1408
+ value: {
1409
+ minWidth: 0,
1410
+ overflow: "hidden",
1411
+ textOverflow: "ellipsis",
1412
+ whiteSpace: "nowrap"
1413
+ },
1414
+ chevron: {
1415
+ flexShrink: 0,
1416
+ color: "action.active",
1417
+ transition: ({ transitions: e }) => e.create("transform")
1418
+ },
1419
+ chevronOpen: { transform: "rotate(180deg)" },
1420
+ sectionTitle: {
1421
+ padding: ({ spacing: e }) => e(1, 2, .5, 2),
1422
+ lineHeight: 1.5
1423
+ },
1424
+ option: { "&.Mui-selected, &.Mui-selected:hover": {
1425
+ backgroundColor: "transparent",
1426
+ color: "primary.main"
1427
+ } }
1428
+ };
1429
+ //#endregion
1430
+ //#region src/legend/components/legend-config-select/legend-config-select.tsx
1431
+ function Dt() {
1432
+ let e = y(34), t = r(), n = q()?.layerId, i;
1433
+ e[0] === n ? i = e[1] : (i = (e) => n ? e.layers[n]?.sections : void 0, e[0] = n, e[1] = i);
1434
+ let a = u(t, i), o = u(t, Ot), { labels: s } = K(), [c, l] = O(null), d = !!c;
1435
+ if (!n || !a || a.length === 0) return null;
1436
+ let f = a[0].active, p = a.length > 1, m;
1437
+ e[2] === Symbol.for("react.memo_cache_sentinel") ? (m = (e) => l(e.currentTarget), e[2] = m) : m = e[2];
1438
+ let h;
1439
+ e[3] === f ? h = e[4] : (h = /* @__PURE__ */ V(z, {
1440
+ variant: "body2",
1441
+ sx: Et.value,
1442
+ children: f
1443
+ }), e[3] = f, e[4] = h);
1444
+ let g;
1445
+ e[5] === d ? g = e[6] : (g = d ? {
1446
+ ...Et.chevron,
1447
+ ...Et.chevronOpen
1448
+ } : Et.chevron, e[5] = d, e[6] = g);
1449
+ let _;
1450
+ e[7] === g ? _ = e[8] : (_ = /* @__PURE__ */ V(U, {
1451
+ fontSize: "small",
1452
+ sx: g
1453
+ }), e[7] = g, e[8] = _);
1454
+ let v;
1455
+ e[9] !== s.attribute || e[10] !== d || e[11] !== h || e[12] !== _ ? (v = /* @__PURE__ */ H(A, {
1456
+ sx: Et.trigger,
1457
+ onClick: m,
1458
+ "aria-label": s.attribute,
1459
+ "aria-haspopup": "listbox",
1460
+ "aria-expanded": d,
1461
+ children: [h, _]
1462
+ }), e[9] = s.attribute, e[10] = d, e[11] = h, e[12] = _, e[13] = v) : v = e[13];
1463
+ let b;
1464
+ e[14] === Symbol.for("react.memo_cache_sentinel") ? (b = () => l(null), e[14] = b) : b = e[14];
1465
+ let x = c?.clientWidth, S;
1466
+ e[15] === x ? S = e[16] : (S = { paper: { sx: { width: x } } }, e[15] = x, e[16] = S);
1467
+ let C;
1468
+ if (e[17] !== n || e[18] !== a || e[19] !== o || e[20] !== p) {
1469
+ let t;
1470
+ e[22] !== n || e[23] !== o || e[24] !== p ? (t = (e) => [p && e.title ? /* @__PURE__ */ V(z, {
1471
+ variant: "overline",
1472
+ color: "text.secondary",
1473
+ component: "li",
1474
+ sx: Et.sectionTitle,
1475
+ children: e.title
1476
+ }, `${e.id}-title`) : null, ...e.options.map((t) => /* @__PURE__ */ V(L, {
1477
+ selected: t === e.active,
1478
+ sx: Et.option,
1479
+ onClick: () => {
1480
+ o(n, e.id, t), l(null);
1481
+ },
1482
+ children: t
1483
+ }, `${e.id}-${t}`))], e[22] = n, e[23] = o, e[24] = p, e[25] = t) : t = e[25], C = a.map(t), e[17] = n, e[18] = a, e[19] = o, e[20] = p, e[21] = C;
1484
+ } else C = e[21];
1485
+ let w;
1486
+ e[26] !== c || e[27] !== d || e[28] !== S || e[29] !== C ? (w = /* @__PURE__ */ V(I, {
1487
+ anchorEl: c,
1488
+ open: d,
1489
+ onClose: b,
1490
+ slotProps: S,
1491
+ children: C
1492
+ }), e[26] = c, e[27] = d, e[28] = S, e[29] = C, e[30] = w) : w = e[30];
1493
+ let T;
1494
+ return e[31] !== w || e[32] !== v ? (T = /* @__PURE__ */ H(B, { children: [v, w] }), e[31] = w, e[32] = v, e[33] = T) : T = e[33], T;
1495
+ }
1496
+ function Ot(e) {
1497
+ return e.setSectionValue;
1498
+ }
1499
+ //#endregion
1500
+ //#region src/legend/components/legend-category/styles.ts
1501
+ var Z = {
1502
+ list: {
1503
+ display: "flex",
1504
+ flexDirection: "column",
1505
+ gap: .5,
1506
+ "&:hover .PsLegend-value, &:focus-within .PsLegend-value": { opacity: 1 },
1507
+ "@media (hover: none)": { "& .PsLegend-value": { opacity: 1 } }
1508
+ },
1509
+ item: {
1510
+ display: "flex",
1511
+ alignItems: "center",
1512
+ gap: 1
1513
+ },
1514
+ gutter: {
1515
+ flexShrink: 0,
1516
+ display: "flex",
1517
+ alignItems: "center",
1518
+ justifyContent: "center"
1519
+ },
1520
+ label: {
1521
+ flex: 1,
1522
+ minWidth: 0,
1523
+ overflow: "hidden",
1524
+ textOverflow: "ellipsis",
1525
+ whiteSpace: "nowrap"
1526
+ },
1527
+ value: {
1528
+ flexShrink: 0,
1529
+ opacity: 0,
1530
+ transition: "opacity 120ms"
1531
+ },
1532
+ listHorizontal: {
1533
+ flexDirection: "row",
1534
+ flexWrap: "wrap",
1535
+ columnGap: 2,
1536
+ rowGap: .5
1537
+ },
1538
+ itemHorizontal: { gap: .5 },
1539
+ labelHorizontal: {
1540
+ flex: "0 0 auto",
1541
+ overflow: "visible",
1542
+ textOverflow: "clip"
1543
+ }
1544
+ }, kt = 1.5, At = 2, jt = 1;
1545
+ function Mt(e) {
1546
+ switch (e) {
1547
+ case "dashed": return { dash: "3 2" };
1548
+ case "dotted": return {
1549
+ dash: `0.1 ${kt * 2}`,
1550
+ round: !0
1551
+ };
1552
+ default: return {};
1553
+ }
1554
+ }
1555
+ function Nt(e) {
1556
+ switch (e) {
1557
+ case "dashed": return { dash: "4 3" };
1558
+ case "dotted": return {
1559
+ dash: "0.1 4",
1560
+ round: !0
1561
+ };
1562
+ case "dash-dot": return {
1563
+ dash: "5 2 0.1 2",
1564
+ round: !0
1565
+ };
1566
+ default: return {};
1567
+ }
1568
+ }
1569
+ function Pt(e, t) {
1570
+ let n = (e) => /* @__PURE__ */ V("path", {
1571
+ d: e,
1572
+ stroke: t,
1573
+ strokeWidth: 1.2,
1574
+ fill: "none"
1575
+ });
1576
+ switch (e) {
1577
+ case "horizontal": return {
1578
+ size: 4,
1579
+ content: n("M0 2 H4")
1580
+ };
1581
+ case "vertical": return {
1582
+ size: 4,
1583
+ content: n("M2 0 V4")
1584
+ };
1585
+ case "diagonal": return {
1586
+ size: 4,
1587
+ content: n("M0 4 L4 0 M-1 1 L1 -1 M3 5 L5 3")
1588
+ };
1589
+ case "diagonal-alt": return {
1590
+ size: 4,
1591
+ content: n("M0 0 L4 4 M-1 3 L1 5 M3 -1 L5 1")
1592
+ };
1593
+ case "cross": return {
1594
+ size: 4,
1595
+ content: n("M0 4 L4 0 M-1 1 L1 -1 M3 5 L5 3 M0 0 L4 4 M-1 3 L1 5 M3 -1 L5 1")
1596
+ };
1597
+ case "dots": return {
1598
+ size: 4,
1599
+ content: /* @__PURE__ */ V("circle", {
1600
+ cx: 2,
1601
+ cy: 2,
1602
+ r: .9,
1603
+ fill: t
1604
+ })
1605
+ };
1606
+ case "grid": return {
1607
+ size: 3,
1608
+ content: /* @__PURE__ */ V("circle", {
1609
+ cx: 1.5,
1610
+ cy: 1.5,
1611
+ r: .7,
1612
+ fill: t
1613
+ })
1614
+ };
1615
+ default: return null;
1616
+ }
1617
+ }
1618
+ function Ft(e) {
1619
+ let t = y(46), { shape: n, color: r, isStrokeColor: i, fillPattern: a, strokeStyle: o, size: s } = e, c = n === void 0 ? "circle" : n, l = i !== void 0 && i, u = a === void 0 ? "solid" : a, d = o === void 0 ? "solid" : o, f = s === void 0 ? 12 : s, p = T();
1620
+ if (c === "line") {
1621
+ let e;
1622
+ t[0] === d ? e = t[1] : (e = Nt(d), t[0] = d, t[1] = e);
1623
+ let { dash: n, round: i } = e, a = `0 0 ${f} ${f}`, o;
1624
+ t[2] === Symbol.for("react.memo_cache_sentinel") ? (o = {
1625
+ display: "block",
1626
+ overflow: "visible"
1627
+ }, t[2] = o) : o = t[2];
1628
+ let s = f / 2, c = f / 2, l = i ? "round" : "butt", u;
1629
+ t[3] !== r || t[4] !== n || t[5] !== f || t[6] !== c || t[7] !== l || t[8] !== s ? (u = /* @__PURE__ */ V("line", {
1630
+ x1: 0,
1631
+ y1: s,
1632
+ x2: f,
1633
+ y2: c,
1634
+ stroke: r,
1635
+ strokeWidth: At,
1636
+ strokeDasharray: n,
1637
+ strokeLinecap: l
1638
+ }), t[3] = r, t[4] = n, t[5] = f, t[6] = c, t[7] = l, t[8] = s, t[9] = u) : u = t[9];
1639
+ let p;
1640
+ return t[10] !== f || t[11] !== u || t[12] !== a ? (p = /* @__PURE__ */ V("svg", {
1641
+ width: f,
1642
+ height: f,
1643
+ viewBox: a,
1644
+ "aria-hidden": !0,
1645
+ "data-shape": "line",
1646
+ style: o,
1647
+ children: u
1648
+ }), t[10] = f, t[11] = u, t[12] = a, t[13] = p) : p = t[13], p;
1649
+ }
1650
+ let m = l ? kt / 2 : 0, h = !l && u !== "solid", g;
1651
+ t[14] !== r || t[15] !== u || t[16] !== h ? (g = h ? Pt(u, r) : null, t[14] = r, t[15] = u, t[16] = h, t[17] = g) : g = t[17];
1652
+ let _ = g, v = l && d === "corners" && c === "square", b;
1653
+ t[18] !== l || t[19] !== d ? (b = l ? Mt(d) : {
1654
+ dash: void 0,
1655
+ round: !1
1656
+ }, t[18] = l, t[19] = d, t[20] = b) : b = t[20];
1657
+ let { dash: x, round: S } = b, C = l ? kt : jt, w = l ? x : void 0, E = S ? "round" : "butt", D;
1658
+ t[21] !== r || t[22] !== E || t[23] !== C || t[24] !== w ? (D = {
1659
+ stroke: r,
1660
+ strokeWidth: C,
1661
+ strokeDasharray: w,
1662
+ strokeLinecap: E
1663
+ }, t[21] = r, t[22] = E, t[23] = C, t[24] = w, t[25] = D) : D = t[25];
1664
+ let O = D, k = l ? "none" : h ? `url(#${p})` : r, A = `0 0 ${f} ${f}`, j;
1665
+ t[26] === Symbol.for("react.memo_cache_sentinel") ? (j = { display: "block" }, t[26] = j) : j = t[26];
1666
+ let M;
1667
+ t[27] !== p || t[28] !== _ ? (M = _ && /* @__PURE__ */ V("defs", { children: /* @__PURE__ */ V("pattern", {
1668
+ id: p,
1669
+ patternUnits: "userSpaceOnUse",
1670
+ width: _.size,
1671
+ height: _.size,
1672
+ children: _.content
1673
+ }) }), t[27] = p, t[28] = _, t[29] = M) : M = t[29];
1674
+ let N;
1675
+ t[30] !== r || t[31] !== O || t[32] !== k || t[33] !== m || t[34] !== v || t[35] !== l || t[36] !== c || t[37] !== f || t[38] !== h ? (N = v ? /* @__PURE__ */ V(It, {
1676
+ size: f,
1677
+ color: r
1678
+ }) : c === "circle" ? /* @__PURE__ */ V("circle", {
1679
+ cx: f / 2,
1680
+ cy: f / 2,
1681
+ r: f / 2 - m,
1682
+ fill: k,
1683
+ ...O,
1684
+ stroke: l || h ? r : "none"
1685
+ }) : /* @__PURE__ */ V("rect", {
1686
+ x: m,
1687
+ y: m,
1688
+ width: f - m * 2,
1689
+ height: f - m * 2,
1690
+ fill: k,
1691
+ ...O,
1692
+ stroke: l || h ? r : "none"
1693
+ }), t[30] = r, t[31] = O, t[32] = k, t[33] = m, t[34] = v, t[35] = l, t[36] = c, t[37] = f, t[38] = h, t[39] = N) : N = t[39];
1694
+ let P;
1695
+ return t[40] !== c || t[41] !== f || t[42] !== A || t[43] !== M || t[44] !== N ? (P = /* @__PURE__ */ H("svg", {
1696
+ width: f,
1697
+ height: f,
1698
+ viewBox: A,
1699
+ "aria-hidden": !0,
1700
+ "data-shape": c,
1701
+ style: j,
1702
+ children: [M, N]
1703
+ }), t[40] = c, t[41] = f, t[42] = A, t[43] = M, t[44] = N, t[45] = P) : P = t[45], P;
1704
+ }
1705
+ function It(e) {
1706
+ let t = y(19), { size: n, color: r } = e, i = Math.max(2, n * .3), a = kt / 2, o = n - a, s;
1707
+ t[0] === r ? s = t[1] : (s = {
1708
+ stroke: r,
1709
+ strokeWidth: kt,
1710
+ fill: "none"
1711
+ }, t[0] = r, t[1] = s);
1712
+ let c = s, l = `M${a} ${a + i} V${a} H${a + i}`, u;
1713
+ t[2] !== c || t[3] !== l ? (u = /* @__PURE__ */ V("path", {
1714
+ d: l,
1715
+ ...c
1716
+ }), t[2] = c, t[3] = l, t[4] = u) : u = t[4];
1717
+ let d = `M${o - i} ${a} H${o} V${a + i}`, f;
1718
+ t[5] !== c || t[6] !== d ? (f = /* @__PURE__ */ V("path", {
1719
+ d,
1720
+ ...c
1721
+ }), t[5] = c, t[6] = d, t[7] = f) : f = t[7];
1722
+ let p = `M${o} ${o - i} V${o} H${o - i}`, m;
1723
+ t[8] !== c || t[9] !== p ? (m = /* @__PURE__ */ V("path", {
1724
+ d: p,
1725
+ ...c
1726
+ }), t[8] = c, t[9] = p, t[10] = m) : m = t[10];
1727
+ let h = `M${a + i} ${o} H${a} V${o - i}`, g;
1728
+ t[11] !== c || t[12] !== h ? (g = /* @__PURE__ */ V("path", {
1729
+ d: h,
1730
+ ...c
1731
+ }), t[11] = c, t[12] = h, t[13] = g) : g = t[13];
1732
+ let _;
1733
+ return t[14] !== u || t[15] !== f || t[16] !== m || t[17] !== g ? (_ = /* @__PURE__ */ H(B, { children: [
1734
+ u,
1735
+ f,
1736
+ m,
1737
+ g
1738
+ ] }), t[14] = u, t[15] = f, t[16] = m, t[17] = g, t[18] = _) : _ = t[18], _;
1739
+ }
1740
+ //#endregion
1741
+ //#region src/legend/components/legend-category/legend-category-ui.tsx
1742
+ var Lt = 16;
1743
+ function Rt(e) {
1744
+ let t = y(23), { data: n } = e, { items: r, shape: i, isStrokeColor: a, fillPattern: o, strokeStyle: s, orientation: c } = n, l = i === void 0 ? "circle" : i, u = a !== void 0 && a, d = o === void 0 ? "solid" : o, f = s === void 0 ? "solid" : s, p = c === void 0 ? "vertical" : c, m = p === "horizontal", h;
1745
+ t[0] === r ? h = t[1] : (h = r.reduce(zt, 0), t[0] = r, t[1] = h);
1746
+ let g = Math.max(Lt, h), _ = m ? Z.listHorizontal : null, v;
1747
+ t[2] === _ ? v = t[3] : (v = {
1748
+ ...Z.list,
1749
+ ..._
1750
+ }, t[2] = _, t[3] = v);
1751
+ let b;
1752
+ if (t[4] !== d || t[5] !== g || t[6] !== m || t[7] !== u || t[8] !== r || t[9] !== l || t[10] !== f) {
1753
+ let e;
1754
+ t[12] !== d || t[13] !== g || t[14] !== m || t[15] !== u || t[16] !== l || t[17] !== f ? (e = (e, t) => /* @__PURE__ */ H(k, {
1755
+ sx: {
1756
+ ...Z.item,
1757
+ ...m ? Z.itemHorizontal : null
1758
+ },
1759
+ children: [
1760
+ /* @__PURE__ */ V(k, {
1761
+ sx: {
1762
+ ...Z.gutter,
1763
+ width: m ? void 0 : g
1764
+ },
1765
+ children: /* @__PURE__ */ V(Ft, {
1766
+ shape: e.shape ?? l,
1767
+ color: e.color,
1768
+ isStrokeColor: e.isStrokeColor ?? u,
1769
+ fillPattern: e.fillPattern ?? d,
1770
+ strokeStyle: e.strokeStyle ?? f,
1771
+ size: e.size ?? 12
1772
+ })
1773
+ }),
1774
+ /* @__PURE__ */ V(z, {
1775
+ variant: "caption",
1776
+ color: "text.primary",
1777
+ sx: {
1778
+ ...Z.label,
1779
+ ...m ? Z.labelHorizontal : null
1780
+ },
1781
+ children: e.label
1782
+ }),
1783
+ e.value != null && /* @__PURE__ */ V(z, {
1784
+ className: "PsLegend-value",
1785
+ variant: "caption",
1786
+ color: "text.secondary",
1787
+ sx: Z.value,
1788
+ children: e.value
1789
+ })
1790
+ ]
1791
+ }, `${e.label}-${t}`), t[12] = d, t[13] = g, t[14] = m, t[15] = u, t[16] = l, t[17] = f, t[18] = e) : e = t[18], b = r.map(e), t[4] = d, t[5] = g, t[6] = m, t[7] = u, t[8] = r, t[9] = l, t[10] = f, t[11] = b;
1792
+ } else b = t[11];
1793
+ let x;
1794
+ return t[19] !== p || t[20] !== v || t[21] !== b ? (x = /* @__PURE__ */ V(k, {
1795
+ "data-orientation": p,
1796
+ sx: v,
1797
+ children: b
1798
+ }), t[19] = p, t[20] = v, t[21] = b, t[22] = x) : x = t[22], x;
1799
+ }
1800
+ function zt(e, t) {
1801
+ return Math.max(e, t.size ?? 12);
1802
+ }
1803
+ //#endregion
1804
+ //#region src/legend/components/legend-ramp/styles.ts
1805
+ var Q = {
1806
+ container: {
1807
+ display: "flex",
1808
+ flexDirection: "column",
1809
+ gap: .5
1810
+ },
1811
+ attribute: {
1812
+ display: "flex",
1813
+ flexDirection: "column"
1814
+ },
1815
+ error: {
1816
+ display: "flex",
1817
+ alignItems: "center",
1818
+ gap: .5,
1819
+ color: "error.main"
1820
+ },
1821
+ barWrap: { position: "relative" },
1822
+ bar: {
1823
+ height: 8,
1824
+ borderRadius: "2px",
1825
+ overflow: "hidden",
1826
+ display: "flex"
1827
+ },
1828
+ avgLine: {
1829
+ position: "absolute",
1830
+ top: -2,
1831
+ bottom: -2,
1832
+ width: 0,
1833
+ borderLeft: "1.5px dashed",
1834
+ borderColor: "text.primary",
1835
+ transform: "translateX(-50%)"
1836
+ },
1837
+ step: {
1838
+ flex: 1,
1839
+ height: "100%"
1840
+ },
1841
+ labels: {
1842
+ display: "flex",
1843
+ justifyContent: "space-between",
1844
+ gap: 1
1845
+ },
1846
+ boundaryLabels: {
1847
+ position: "relative",
1848
+ height: 16
1849
+ },
1850
+ boundaryLabel: {
1851
+ position: "absolute",
1852
+ top: 0,
1853
+ whiteSpace: "nowrap"
1854
+ }
1855
+ };
1856
+ //#endregion
1857
+ //#region src/legend/components/legend-ramp/legend-ramp-ui.tsx
1858
+ function Bt(e) {
1859
+ let { avg: t, stops: n } = e;
1860
+ if (t == null || n.length < 2) return null;
1861
+ let r = n[0].value, i = n[n.length - 1].value;
1862
+ if (r === i) return null;
1863
+ let a = (t - r) / (i - r) * 100;
1864
+ return Math.min(100, Math.max(0, a));
1865
+ }
1866
+ function Vt(t) {
1867
+ let n = y(40), { data: r, labels: i } = t, a = i === void 0 ? ye : i, { colors: o, stops: s, isContinuous: c, attribute: l, formatValue: u } = r, d = u === void 0 ? String : u, f;
1868
+ n[0] === r ? f = n[1] : (f = Bt(r), n[0] = r, n[1] = f);
1869
+ let p = f, m = s[0], h = s[s.length - 1], g;
1870
+ n[2] === o ? g = n[3] : (g = o.join(", "), n[2] = o, n[3] = g);
1871
+ let _ = `linear-gradient(90deg, ${g})`, v = !c && s.length === o.length + 1, b = !c && !v, x;
1872
+ n[4] === s ? x = n[5] : (x = (e) => `${s[e]?.label ?? ""} – ${s[e + 1]?.label ?? ""}`, n[4] = s, n[5] = x);
1873
+ let S = x, C;
1874
+ n[6] !== l || n[7] !== a ? (C = l && /* @__PURE__ */ H(k, {
1875
+ sx: Q.attribute,
1876
+ children: [/* @__PURE__ */ V(z, {
1877
+ variant: "overline",
1878
+ color: "text.secondary",
1879
+ children: a.colorBasedOn
1880
+ }), /* @__PURE__ */ V(z, {
1881
+ variant: "caption",
1882
+ color: "text.primary",
1883
+ children: l
1884
+ })]
1885
+ }), n[6] = l, n[7] = a, n[8] = C) : C = n[8];
1886
+ let w = C;
1887
+ if (b) {
1888
+ let e;
1889
+ n[9] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ V(re, { fontSize: "small" }), n[9] = e) : e = n[9];
1890
+ let t = `Discrete ramp needs ${o.length + 1} stops (one per color boundary) but got ${s.length}.`, r;
1891
+ n[10] === t ? r = n[11] : (r = /* @__PURE__ */ H(k, {
1892
+ sx: Q.error,
1893
+ children: [e, /* @__PURE__ */ V(z, {
1894
+ variant: "caption",
1895
+ color: "error",
1896
+ children: t
1897
+ })]
1898
+ }), n[10] = t, n[11] = r);
1899
+ let i;
1900
+ return n[12] !== w || n[13] !== r ? (i = /* @__PURE__ */ H(k, {
1901
+ sx: Q.container,
1902
+ children: [w, r]
1903
+ }), n[12] = w, n[13] = r, n[14] = i) : i = n[14], i;
1904
+ }
1905
+ let T;
1906
+ n[15] !== o || n[16] !== _ || n[17] !== c || n[18] !== a || n[19] !== S ? (T = c ? /* @__PURE__ */ V(k, {
1907
+ role: "img",
1908
+ "aria-label": a.colorGradient,
1909
+ sx: {
1910
+ width: "100%",
1911
+ height: "100%",
1912
+ background: _
1913
+ }
1914
+ }) : o.map((e, t) => /* @__PURE__ */ V(k, {
1915
+ role: "img",
1916
+ "aria-label": S(t),
1917
+ sx: {
1918
+ ...Q.step,
1919
+ backgroundColor: e
1920
+ }
1921
+ }, t)), n[15] = o, n[16] = _, n[17] = c, n[18] = a, n[19] = S, n[20] = T) : T = n[20];
1922
+ let E;
1923
+ n[21] === T ? E = n[22] : (E = /* @__PURE__ */ V(k, {
1924
+ sx: Q.bar,
1925
+ children: T
1926
+ }), n[21] = T, n[22] = E);
1927
+ let D;
1928
+ n[23] !== p || n[24] !== r.avg || n[25] !== d ? (D = p != null && r.avg != null && /* @__PURE__ */ V(e, {
1929
+ title: d(r.avg),
1930
+ placement: "top",
1931
+ arrow: !0,
1932
+ children: /* @__PURE__ */ V(k, {
1933
+ sx: Q.avgLine,
1934
+ style: { left: `${p}%` }
1935
+ })
1936
+ }), n[23] = p, n[24] = r.avg, n[25] = d, n[26] = D) : D = n[26];
1937
+ let O;
1938
+ n[27] !== E || n[28] !== D ? (O = /* @__PURE__ */ H(k, {
1939
+ sx: Q.barWrap,
1940
+ children: [E, D]
1941
+ }), n[27] = E, n[28] = D, n[29] = O) : O = n[29];
1942
+ let A;
1943
+ n[30] !== o.length || n[31] !== m?.label || n[32] !== v || n[33] !== h?.label || n[34] !== s ? (A = v ? /* @__PURE__ */ V(k, {
1944
+ sx: Q.boundaryLabels,
1945
+ children: s.map((e, t) => {
1946
+ let n = t === s.length - 1, r = t === 0 ? void 0 : n ? "translateX(-100%)" : "translateX(-50%)";
1947
+ return /* @__PURE__ */ V(z, {
1948
+ variant: "overline",
1949
+ color: "text.secondary",
1950
+ sx: Q.boundaryLabel,
1951
+ style: {
1952
+ left: `${t / o.length * 100}%`,
1953
+ transform: r
1954
+ },
1955
+ children: e.label
1956
+ }, `${e.label}-${t}`);
1957
+ })
1958
+ }) : /* @__PURE__ */ H(k, {
1959
+ sx: Q.labels,
1960
+ children: [/* @__PURE__ */ V(z, {
1961
+ variant: "overline",
1962
+ color: "text.secondary",
1963
+ children: m?.label
1964
+ }), /* @__PURE__ */ V(z, {
1965
+ variant: "overline",
1966
+ color: "text.secondary",
1967
+ children: h?.label
1968
+ })]
1969
+ }), n[30] = o.length, n[31] = m?.label, n[32] = v, n[33] = h?.label, n[34] = s, n[35] = A) : A = n[35];
1970
+ let j;
1971
+ return n[36] !== w || n[37] !== O || n[38] !== A ? (j = /* @__PURE__ */ H(k, {
1972
+ sx: Q.container,
1973
+ children: [
1974
+ w,
1975
+ O,
1976
+ A
1977
+ ]
1978
+ }), n[36] = w, n[37] = O, n[38] = A, n[39] = j) : j = n[39], j;
1979
+ }
1980
+ //#endregion
1981
+ //#region src/legend/components/legend-proportion/styles.ts
1982
+ var Ht = {
1983
+ root: {
1984
+ display: "flex",
1985
+ flexDirection: "column",
1986
+ gap: 1
1987
+ },
1988
+ attribute: {
1989
+ display: "flex",
1990
+ flexDirection: "column"
1991
+ },
1992
+ body: {
1993
+ display: "flex",
1994
+ alignItems: "flex-end",
1995
+ gap: 2,
1996
+ paddingTop: .5
1997
+ },
1998
+ circles: {
1999
+ position: "relative",
2000
+ flexShrink: 0
2001
+ },
2002
+ circle: {
2003
+ position: "absolute",
2004
+ right: 0,
2005
+ bottom: 0,
2006
+ borderRadius: "50%",
2007
+ backgroundColor: "grey.50",
2008
+ border: "1px solid",
2009
+ borderColor: "grey.100",
2010
+ boxSizing: "border-box"
2011
+ },
2012
+ labels: {
2013
+ flex: 1,
2014
+ display: "flex",
2015
+ flexDirection: "column",
2016
+ justifyContent: "space-between"
2017
+ }
2018
+ }, Ut = 72, Wt = 2, Gt = 4;
2019
+ function Kt(e) {
2020
+ let t = (e.stops ?? []).filter((e) => Number.isFinite(e));
2021
+ if (t.length >= Wt) return t.sort((e, t) => t - e).slice(0, Gt);
2022
+ let { min: n, max: r } = e;
2023
+ if (n === r) return [r];
2024
+ let i = Math.min(Gt, Math.max(Wt, e.steps ?? Gt));
2025
+ return Array.from({ length: i }, (e, t) => r - (r - n) * t / (i - 1));
2026
+ }
2027
+ function qt(e, t) {
2028
+ return t <= 1 ? Ut : Ut * (1 - .7 * (e / (t - 1)));
2029
+ }
2030
+ function Jt(e) {
2031
+ let t = y(40), { data: n, labels: r } = e, i = r === void 0 ? ye : r, { attribute: a, formatValue: o } = n, s = o === void 0 ? String : o, c, l, u, d, f, p, m, h, g;
2032
+ if (t[0] !== a || t[1] !== n || t[2] !== s || t[3] !== i) {
2033
+ let e = Kt(n), r = e.length, o;
2034
+ t[13] !== s || t[14] !== i || t[15] !== r ? (o = (e, t) => {
2035
+ let n = s(e);
2036
+ return r <= 1 ? n : t === 0 ? /* @__PURE__ */ H(B, { children: [i.maxPrefix, n] }) : t === r - 1 ? /* @__PURE__ */ H(B, { children: [i.minPrefix, n] }) : n;
2037
+ }, t[13] = s, t[14] = i, t[15] = r, t[16] = o) : o = t[16];
2038
+ let _ = o;
2039
+ u = k, h = Ht.root, t[17] !== a || t[18] !== i ? (g = a && /* @__PURE__ */ H(k, {
2040
+ sx: Ht.attribute,
2041
+ children: [/* @__PURE__ */ V(z, {
2042
+ variant: "overline",
2043
+ color: "text.secondary",
2044
+ children: i.radiusRangeBy
2045
+ }), /* @__PURE__ */ V(z, {
2046
+ variant: "caption",
2047
+ color: "text.primary",
2048
+ children: a
2049
+ })]
2050
+ }), t[17] = a, t[18] = i, t[19] = g) : g = t[19], l = k, p = Ht.body;
2051
+ let v;
2052
+ t[20] === Symbol.for("react.memo_cache_sentinel") ? (v = {
2053
+ ...Ht.circles,
2054
+ width: Ut,
2055
+ height: Ut
2056
+ }, t[20] = v) : v = t[20];
2057
+ let y;
2058
+ t[21] === r ? y = t[22] : (y = (e, t) => {
2059
+ let n = qt(t, r);
2060
+ return /* @__PURE__ */ V(k, {
2061
+ "aria-hidden": !0,
2062
+ sx: {
2063
+ ...Ht.circle,
2064
+ width: n,
2065
+ height: n
2066
+ }
2067
+ }, t);
2068
+ }, t[21] = r, t[22] = y), m = /* @__PURE__ */ V(k, {
2069
+ sx: v,
2070
+ children: e.map(y)
2071
+ }), c = k, t[23] === Symbol.for("react.memo_cache_sentinel") ? (d = {
2072
+ ...Ht.labels,
2073
+ height: Ut
2074
+ }, t[23] = d) : d = t[23];
2075
+ let b;
2076
+ t[24] === _ ? b = t[25] : (b = (e, t) => /* @__PURE__ */ V(z, {
2077
+ variant: "caption",
2078
+ color: "text.secondary",
2079
+ children: _(e, t)
2080
+ }, t), t[24] = _, t[25] = b), f = e.map(b), t[0] = a, t[1] = n, t[2] = s, t[3] = i, t[4] = c, t[5] = l, t[6] = u, t[7] = d, t[8] = f, t[9] = p, t[10] = m, t[11] = h, t[12] = g;
2081
+ } else c = t[4], l = t[5], u = t[6], d = t[7], f = t[8], p = t[9], m = t[10], h = t[11], g = t[12];
2082
+ let _;
2083
+ t[26] !== c || t[27] !== d || t[28] !== f ? (_ = /* @__PURE__ */ V(c, {
2084
+ sx: d,
2085
+ children: f
2086
+ }), t[26] = c, t[27] = d, t[28] = f, t[29] = _) : _ = t[29];
2087
+ let v;
2088
+ t[30] !== l || t[31] !== p || t[32] !== m || t[33] !== _ ? (v = /* @__PURE__ */ H(l, {
2089
+ sx: p,
2090
+ children: [m, _]
2091
+ }), t[30] = l, t[31] = p, t[32] = m, t[33] = _, t[34] = v) : v = t[34];
2092
+ let b;
2093
+ return t[35] !== u || t[36] !== v || t[37] !== h || t[38] !== g ? (b = /* @__PURE__ */ H(u, {
2094
+ sx: h,
2095
+ children: [g, v]
2096
+ }), t[35] = u, t[36] = v, t[37] = h, t[38] = g, t[39] = b) : b = t[39], b;
2097
+ }
2098
+ //#endregion
2099
+ //#region src/legend/components/legend-icon/styles.ts
2100
+ var $ = {
2101
+ list: {
2102
+ display: "flex",
2103
+ flexDirection: "column",
2104
+ gap: .5,
2105
+ "&:hover .PsLegend-value, &:focus-within .PsLegend-value": { opacity: 1 },
2106
+ "@media (hover: none)": { "& .PsLegend-value": { opacity: 1 } }
2107
+ },
2108
+ item: {
2109
+ display: "flex",
2110
+ alignItems: "center",
2111
+ gap: 1
2112
+ },
2113
+ icon: {
2114
+ flexShrink: 0,
2115
+ width: 16,
2116
+ height: 16,
2117
+ objectFit: "contain"
2118
+ },
2119
+ label: {
2120
+ flex: 1,
2121
+ minWidth: 0,
2122
+ overflow: "hidden",
2123
+ textOverflow: "ellipsis",
2124
+ whiteSpace: "nowrap"
2125
+ },
2126
+ value: {
2127
+ flexShrink: 0,
2128
+ opacity: 0,
2129
+ transition: "opacity 120ms"
2130
+ },
2131
+ listHorizontal: {
2132
+ flexDirection: "row",
2133
+ flexWrap: "wrap",
2134
+ columnGap: 2,
2135
+ rowGap: .5
2136
+ },
2137
+ itemHorizontal: { gap: .5 },
2138
+ labelHorizontal: {
2139
+ flex: "0 0 auto",
2140
+ overflow: "visible",
2141
+ textOverflow: "clip"
2142
+ }
2143
+ };
2144
+ //#endregion
2145
+ //#region src/legend/components/legend-icon/legend-icon-ui.tsx
2146
+ function Yt(e) {
2147
+ let t = y(11), { data: n } = e, r = n.orientation ?? "vertical", i = r === "horizontal", a = i ? $.listHorizontal : null, o;
2148
+ t[0] === a ? o = t[1] : (o = {
2149
+ ...$.list,
2150
+ ...a
2151
+ }, t[0] = a, t[1] = o);
2152
+ let s;
2153
+ if (t[2] !== n.items || t[3] !== i) {
2154
+ let e;
2155
+ t[5] === i ? e = t[6] : (e = (e, t) => /* @__PURE__ */ H(k, {
2156
+ sx: {
2157
+ ...$.item,
2158
+ ...i ? $.itemHorizontal : null
2159
+ },
2160
+ children: [
2161
+ /* @__PURE__ */ V(k, {
2162
+ component: "img",
2163
+ src: e.icon,
2164
+ alt: "",
2165
+ sx: $.icon
2166
+ }),
2167
+ /* @__PURE__ */ V(z, {
2168
+ variant: "caption",
2169
+ color: "text.primary",
2170
+ sx: {
2171
+ ...$.label,
2172
+ ...i ? $.labelHorizontal : null
2173
+ },
2174
+ children: e.label
2175
+ }),
2176
+ e.value != null && /* @__PURE__ */ V(z, {
2177
+ className: "PsLegend-value",
2178
+ variant: "caption",
2179
+ color: "text.secondary",
2180
+ sx: $.value,
2181
+ children: e.value
2182
+ })
2183
+ ]
2184
+ }, `${e.label}-${t}`), t[5] = i, t[6] = e), s = n.items.map(e), t[2] = n.items, t[3] = i, t[4] = s;
2185
+ } else s = t[4];
2186
+ let c;
2187
+ return t[7] !== r || t[8] !== o || t[9] !== s ? (c = /* @__PURE__ */ V(k, {
2188
+ "data-orientation": r,
2189
+ sx: o,
2190
+ children: s
2191
+ }), t[7] = r, t[8] = o, t[9] = s, t[10] = c) : c = t[10], c;
2192
+ }
2193
+ //#endregion
2194
+ //#region src/legend/components/legend-item/legend-item-ui.tsx
2195
+ function Xt(e) {
2196
+ let t = y(10), { data: n, labels: r } = e;
2197
+ switch (n.type) {
2198
+ case "category": {
2199
+ let e;
2200
+ return t[0] === n ? e = t[1] : (e = /* @__PURE__ */ V(Rt, { data: n }), t[0] = n, t[1] = e), e;
2201
+ }
2202
+ case "ramp": {
2203
+ let e;
2204
+ return t[2] !== n || t[3] !== r ? (e = /* @__PURE__ */ V(Vt, {
2205
+ data: n,
2206
+ labels: r
2207
+ }), t[2] = n, t[3] = r, t[4] = e) : e = t[4], e;
2208
+ }
2209
+ case "proportion": {
2210
+ let e;
2211
+ return t[5] !== n || t[6] !== r ? (e = /* @__PURE__ */ V(Jt, {
2212
+ data: n,
2213
+ labels: r
2214
+ }), t[5] = n, t[6] = r, t[7] = e) : e = t[7], e;
2215
+ }
2216
+ case "icon": {
2217
+ let e;
2218
+ return t[8] === n ? e = t[9] : (e = /* @__PURE__ */ V(Yt, { data: n }), t[8] = n, t[9] = e), e;
2219
+ }
2220
+ default: return n;
2221
+ }
2222
+ }
2223
+ //#endregion
2224
+ //#region src/legend/components/legend-item/styles.ts
2225
+ var Zt = { stack: {
2226
+ display: "flex",
2227
+ flexDirection: "column",
2228
+ gap: 2
2229
+ } };
2230
+ //#endregion
2231
+ //#region src/legend/components/legend-item/legend-item.tsx
2232
+ function Qt() {
2233
+ let e = y(9), t = r(), n = q(), i;
2234
+ e[0] === n ? i = e[1] : (i = (e) => n ? e.layers[n.layerId]?.variables : void 0, e[0] = n, e[1] = i);
2235
+ let a = u(t, i), { labels: o } = K();
2236
+ if (!a || a.length === 0) return null;
2237
+ let s;
2238
+ if (e[2] !== o || e[3] !== a) {
2239
+ let t;
2240
+ e[5] === o ? t = e[6] : (t = (e, t) => /* @__PURE__ */ V(Xt, {
2241
+ data: e,
2242
+ labels: o
2243
+ }, t), e[5] = o, e[6] = t), s = a.map(t), e[2] = o, e[3] = a, e[4] = s;
2244
+ } else s = e[4];
2245
+ let c;
2246
+ return e[7] === s ? c = e[8] : (c = /* @__PURE__ */ V(k, {
2247
+ sx: Zt.stack,
2248
+ children: s
2249
+ }), e[7] = s, e[8] = c), c;
2250
+ }
2251
+ //#endregion
2252
+ //#region src/legend/index.ts
2253
+ var $t = {
2254
+ Provider: xe,
2255
+ Group: Re,
2256
+ Row: Ve,
2257
+ Actions: ke,
2258
+ Sortable: pt,
2259
+ VisibilityToggle: Ge,
2260
+ RowMenu: Ye,
2261
+ ZoomTo: Ze,
2262
+ ShowOnlyLayer: Qe,
2263
+ ShowAllLayers: $e,
2264
+ GroupMenu: et,
2265
+ ShowOnlyGroup: tt,
2266
+ ShowAllGroups: nt,
2267
+ CollapseAllGroups: rt,
2268
+ ZoomToGroup: it,
2269
+ PanelMenu: at,
2270
+ VisibleLayers: st,
2271
+ Opacity: Tt,
2272
+ ConfigSelect: Dt,
2273
+ Item: Qt,
2274
+ ItemUI: Xt,
2275
+ Swatch: Ft,
2276
+ CategoryUI: Rt,
2277
+ RampUI: Vt,
2278
+ ProportionUI: Jt,
2279
+ IconUI: Yt
2280
+ };
2281
+ //#endregion
2282
+ export { ye as DEFAULT_LEGEND_LABELS, $t as Legend };
2283
+
2284
+ //# sourceMappingURL=legend.js.map