@slotted/react 0.1.0-beta.2 → 0.1.0-beta.4

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 (319) hide show
  1. package/dist/{accordion-D-YuMJzk.js → accordion-lCqrmQ3w.js} +43 -43
  2. package/dist/accordion.js +1 -1
  3. package/dist/{action-bar-C7cGnEyJ.js → action-bar-OACchRZw.js} +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/{action-sheet-DgwzC3iY.js → action-sheet-C60BWUW8.js} +1 -1
  6. package/dist/action-sheet.js +1 -1
  7. package/dist/{app-shell-CXwma4XA.js → app-shell-CmYvnu_7.js} +310 -310
  8. package/dist/app-shell.js +1 -1
  9. package/dist/button-Db9f3Bxn.js +99 -0
  10. package/dist/button.js +2 -2
  11. package/dist/calendar-BZ6PP7Ke.js +436 -0
  12. package/dist/calendar.js +1 -1
  13. package/dist/cascader-D1AhTyBL.js +1097 -0
  14. package/dist/cascader.js +1 -1
  15. package/dist/{chart-Gb_P3Kdq.js → chart-O0ZhkzJe.js} +381 -374
  16. package/dist/chart.js +1 -1
  17. package/dist/{checkbox-CwUOc-3u.js → checkbox-DfxFHZaU.js} +3 -3
  18. package/dist/{checkbox-group-BYTjgAcX.js → checkbox-group-9sDgrV5Z.js} +2 -2
  19. package/dist/checkbox-group.js +1 -1
  20. package/dist/checkbox.js +1 -1
  21. package/dist/{collapsible-CGo49NNW.js → collapsible-F-K36XbF.js} +17 -17
  22. package/dist/collapsible.js +1 -1
  23. package/dist/{color-picker-BlPR4g4H.js → color-picker-CwbWzCKg.js} +4 -4
  24. package/dist/color-picker.js +1 -1
  25. package/dist/{column-manager-B7_a_jDK.js → column-manager-CTtizVhm.js} +6 -6
  26. package/dist/column-manager.js +1 -1
  27. package/dist/{combobox-C66dNlMR.js → combobox-BVMI9lg8.js} +266 -266
  28. package/dist/combobox.js +1 -1
  29. package/dist/{command-palette-BqRyNR9Y.js → command-palette-DFLbSOiv.js} +1 -1
  30. package/dist/command-palette.js +1 -1
  31. package/dist/{context-menu-DMiHdggw.js → context-menu-BuST6W94.js} +1 -1
  32. package/dist/context-menu.js +1 -1
  33. package/dist/currency-field-DD9A5U3D.js +455 -0
  34. package/dist/currency-field.js +1 -1
  35. package/dist/{dashboard-grid-CKdyO4j6.js → dashboard-grid-CBMP_-JV.js} +2 -2
  36. package/dist/dashboard-grid.js +1 -1
  37. package/dist/{data-grid-rWMDNl-6.js → data-grid-Eb-a4jg3.js} +19 -19
  38. package/dist/data-grid.js +1 -1
  39. package/dist/{data-list-2xfDpHVC.js → data-list-oICmxGkA.js} +5 -5
  40. package/dist/data-list.js +1 -1
  41. package/dist/date-field-Hr-OCU-H.js +290 -0
  42. package/dist/date-field.js +1 -1
  43. package/dist/date-picker-D3-y2Jxw.js +295 -0
  44. package/dist/date-picker.js +1 -1
  45. package/dist/date-range-picker-y3b82Wmf.js +471 -0
  46. package/dist/date-range-picker.js +1 -1
  47. package/dist/{datetime-field-T1gNdJ7t.js → datetime-field-B8TrmsDK.js} +1 -1
  48. package/dist/datetime-field.js +1 -1
  49. package/dist/datetime-picker-CIRHVLQp.js +629 -0
  50. package/dist/datetime-picker.js +1 -1
  51. package/dist/datetime-range-picker-DM-1m98z.js +994 -0
  52. package/dist/datetime-range-picker.js +1 -1
  53. package/dist/{detail-panel-qOJiNuzr.js → detail-panel-CW53lUjp.js} +3 -3
  54. package/dist/detail-panel.js +1 -1
  55. package/dist/{dialog-Dmy-m_pe.js → dialog-BHYDDj1S.js} +112 -113
  56. package/dist/dialog.js +1 -1
  57. package/dist/docs/app-shell.json +1 -1
  58. package/dist/docs/button-group.json +1 -0
  59. package/dist/docs/button-group.md +1 -1
  60. package/dist/docs/button.json +45 -11
  61. package/dist/docs/button.md +10 -6
  62. package/dist/docs/calendar.json +7 -0
  63. package/dist/docs/calendar.md +1 -0
  64. package/dist/docs/chart.json +7 -0
  65. package/dist/docs/chart.md +1 -0
  66. package/dist/docs/collapsible.json +1 -1
  67. package/dist/docs/collapsible.md +1 -1
  68. package/dist/docs/currency-field.json +32 -1
  69. package/dist/docs/currency-field.md +4 -1
  70. package/dist/docs/date-field.json +8 -1
  71. package/dist/docs/date-field.md +2 -1
  72. package/dist/docs/date-picker.examples.md +29 -0
  73. package/dist/docs/date-picker.json +16 -1
  74. package/dist/docs/date-picker.md +2 -1
  75. package/dist/docs/dialog.examples.md +26 -0
  76. package/dist/docs/dialog.json +14 -2
  77. package/dist/docs/dialog.md +1 -1
  78. package/dist/docs/guidelines/composition.md +10 -0
  79. package/dist/docs/guidelines/index.md +2 -0
  80. package/dist/docs/guidelines/list-pages.md +12 -1
  81. package/dist/docs/list.json +26 -1
  82. package/dist/docs/list.md +4 -1
  83. package/dist/docs/page.json +1 -0
  84. package/dist/docs/page.md +1 -0
  85. package/dist/docs/popover.json +1 -1
  86. package/dist/docs/segmented-control.json +29 -1
  87. package/dist/docs/segmented-control.md +17 -1
  88. package/dist/docs/select.json +1 -1
  89. package/dist/docs/select.md +1 -1
  90. package/dist/docs/side-navigation.json +2 -2
  91. package/dist/docs/side-navigation.md +19 -4
  92. package/dist/docs/skills/compose-screen/SKILL.md +7 -0
  93. package/dist/docs/skills/theme-app/SKILL.md +5 -0
  94. package/dist/docs/split-button.json +1 -0
  95. package/dist/docs/split-button.md +1 -1
  96. package/dist/docs/stat-card.json +1 -0
  97. package/dist/docs/stat-card.md +1 -1
  98. package/dist/docs/table.examples.md +1 -1
  99. package/dist/docs/table.json +91 -2
  100. package/dist/docs/table.md +14 -1
  101. package/dist/docs/tabs.examples.md +1 -1
  102. package/dist/docs/tabs.json +10 -2
  103. package/dist/docs/tabs.md +3 -1
  104. package/dist/docs/text-field.json +1 -1
  105. package/dist/docs/text-field.md +1 -1
  106. package/dist/docs/toggle-group.json +14 -3
  107. package/dist/docs/toggle-group.md +3 -3
  108. package/dist/docs/toggle.json +12 -3
  109. package/dist/docs/toggle.md +3 -3
  110. package/dist/docs/tokens.md +25 -1
  111. package/dist/docs/top-navigation.examples.md +23 -5
  112. package/dist/docs/top-navigation.json +2 -2
  113. package/dist/docs/tour.json +1 -1
  114. package/dist/drawer-LXM44eso.js +757 -0
  115. package/dist/drawer.js +1 -1
  116. package/dist/entity-picker-Dn1T7JCq.js +1110 -0
  117. package/dist/entity-picker.js +1 -1
  118. package/dist/{event-calendar-DYjVwTI6.js → event-calendar-CnF3iIZD.js} +5 -5
  119. package/dist/event-calendar.js +1 -1
  120. package/dist/{field-BJh5HI7w.js → field-NJaCxl2h.js} +1 -1
  121. package/dist/{field-group-BDaspQPh.js → field-group-hAzVa2O9.js} +1 -1
  122. package/dist/field-group.js +1 -1
  123. package/dist/field.js +1 -1
  124. package/dist/{filter-bar-Bh7cbqDE.js → filter-bar-CHyy1o--.js} +20 -20
  125. package/dist/filter-bar.js +1 -1
  126. package/dist/{hover-card-CSDbA6zd.js → hover-card-BJE5dtaQ.js} +1 -1
  127. package/dist/hover-card.js +1 -1
  128. package/dist/{icon-button-TnvMhK4o.js → icon-button-CCWkCDMs.js} +26 -24
  129. package/dist/import-export-center-jF37b909.js +813 -0
  130. package/dist/import-export-center.js +1 -1
  131. package/dist/index.js +92 -91
  132. package/dist/{list-C1Y8MWp2.js → list-WsQ6ZzCa.js} +16 -12
  133. package/dist/{list-item-DN_mcouU.js → list-item-DpCwZIrd.js} +1 -1
  134. package/dist/list-item.js +1 -1
  135. package/dist/list.js +1 -1
  136. package/dist/{listbox-4WvqR0JF.js → listbox-Dv856z9I.js} +1 -1
  137. package/dist/listbox.js +1 -1
  138. package/dist/{loading-overlay-B83XFctM.js → loading-overlay-COfnckse.js} +73 -73
  139. package/dist/loading-overlay.js +1 -1
  140. package/dist/{markdown-CpfDn1LF.js → markdown-CeG8mUbI.js} +2 -2
  141. package/dist/markdown.js +1 -1
  142. package/dist/menu-parts-W58pVNUt.js +786 -0
  143. package/dist/menu.js +1 -1
  144. package/dist/{menubar-CtGavUTO.js → menubar-b2CruimJ.js} +1 -1
  145. package/dist/menubar.js +1 -1
  146. package/dist/{multi-select-B-tuIwAu.js → multi-select-DQ5ds0fX.js} +390 -390
  147. package/dist/multi-select.js +1 -1
  148. package/dist/{notification-center-C4pEHJ3h.js → notification-center-C1iWWl5Y.js} +3 -3
  149. package/dist/notification-center.js +1 -1
  150. package/dist/{number-field-J_koud1r.js → number-field-BFIAmv-z.js} +1 -1
  151. package/dist/number-field.js +1 -1
  152. package/dist/{otp-input-Bf8JUiVR.js → otp-input-BNQhuKaT.js} +1 -1
  153. package/dist/otp-input.js +1 -1
  154. package/dist/{page-kQgLctsA.js → page-IiYXk1sz.js} +32 -32
  155. package/dist/{page-header-CWEBfMGq.js → page-header-Bn4nIGfF.js} +1 -1
  156. package/dist/page-header.js +1 -1
  157. package/dist/page.js +1 -1
  158. package/dist/popover-Be7JWbGJ.js +475 -0
  159. package/dist/popover.js +1 -1
  160. package/dist/press-selection-DjOllE2B.js +29 -0
  161. package/dist/press-selection.js +2 -0
  162. package/dist/{prompt-composer-B7MMcER0.js → prompt-composer-BxpdkTpZ.js} +1 -1
  163. package/dist/prompt-composer.js +1 -1
  164. package/dist/{radio-group-BFpjhDkV.js → radio-group-BaVIP9UH.js} +2 -2
  165. package/dist/radio-group.js +1 -1
  166. package/dist/{rating-D1EsADFM.js → rating-DYBQBzwB.js} +1 -1
  167. package/dist/rating.js +1 -1
  168. package/dist/{saved-views-BueW-Lyb.js → saved-views-DlE_--Z9.js} +5 -5
  169. package/dist/saved-views.js +1 -1
  170. package/dist/{segmented-control-Cy_5D3Nj.js → segmented-control-DmuOGiu6.js} +28 -24
  171. package/dist/segmented-control.js +1 -1
  172. package/dist/{select-hRFp8nCj.js → select-M7Io4UL9.js} +278 -265
  173. package/dist/select.js +1 -1
  174. package/dist/{side-navigation-YUiJRpng.js → side-navigation-CBLtCzuJ.js} +186 -187
  175. package/dist/side-navigation.js +1 -1
  176. package/dist/{slider-B432T6nD.js → slider-DTes4HLF.js} +1 -1
  177. package/dist/slider.js +1 -1
  178. package/dist/{split-button-DHF3v3PJ.js → split-button-CPgHiy9G.js} +2 -2
  179. package/dist/split-button.js +1 -1
  180. package/dist/styles.css +1 -1
  181. package/dist/{switch-4MHwKmkz.js → switch-DQzuIhPX.js} +1 -1
  182. package/dist/switch.js +1 -1
  183. package/dist/{table-Bd79IwDC.js → table-U9eJYCuB.js} +327 -292
  184. package/dist/table.js +2 -2
  185. package/dist/tabs-BtHmjlnM.js +348 -0
  186. package/dist/tabs.js +1 -1
  187. package/dist/{tags-input-DLdHLWrH.js → tags-input-CcOkm0AW.js} +1 -1
  188. package/dist/tags-input.js +1 -1
  189. package/dist/{text-field-BktZbmzD.js → text-field-DLfIZ0fk.js} +1 -1
  190. package/dist/text-field.js +1 -1
  191. package/dist/{textarea-JAK2RJl0.js → textarea-CBJBJBi6.js} +1 -1
  192. package/dist/textarea.js +1 -1
  193. package/dist/{time-field-DCG_VtGO.js → time-field-DrhiCtUl.js} +1 -1
  194. package/dist/time-field.js +1 -1
  195. package/dist/{time-picker-DuT1tf5-.js → time-picker-CRQsMJbQ.js} +102 -102
  196. package/dist/time-picker.js +1 -1
  197. package/dist/{time-range-picker-HwBvrrXN.js → time-range-picker-DlZJsj1e.js} +202 -202
  198. package/dist/time-range-picker.js +1 -1
  199. package/dist/{toast-wI8BtPY5.js → toast-Bf3e0AgC.js} +157 -157
  200. package/dist/toast.js +1 -1
  201. package/dist/toggle-group-7iBR9Rn1.js +142 -0
  202. package/dist/toggle-group.js +1 -1
  203. package/dist/{toolbar-CDQTydDx.js → toolbar-DDZpEftQ.js} +1 -1
  204. package/dist/toolbar.js +1 -1
  205. package/dist/{tooltip-BggqPDcW.js → tooltip-DbKTPe_i.js} +108 -109
  206. package/dist/tooltip.js +1 -1
  207. package/dist/{top-navigation-COQZsNqW.js → top-navigation-e-tWMGNr.js} +255 -256
  208. package/dist/top-navigation.js +1 -1
  209. package/dist/{tour-C11DmYTC.js → tour-BTdt716T.js} +180 -180
  210. package/dist/tour.js +1 -1
  211. package/dist/{transfer-JA9TWjAw.js → transfer-CqZOTLMP.js} +6 -6
  212. package/dist/transfer.js +1 -1
  213. package/dist/types/accordion/accordion.d.ts.map +1 -1
  214. package/dist/types/app-shell/app-shell.d.ts.map +1 -1
  215. package/dist/types/button/button-link.d.ts +1 -1
  216. package/dist/types/button/button-link.d.ts.map +1 -1
  217. package/dist/types/button/button-root.d.ts +5 -3
  218. package/dist/types/button/button-root.d.ts.map +1 -1
  219. package/dist/types/button/button.constants.d.ts +2 -1
  220. package/dist/types/button/button.constants.d.ts.map +1 -1
  221. package/dist/types/button/button.d.ts +1 -1
  222. package/dist/types/button/button.d.ts.map +1 -1
  223. package/dist/types/button/button.types.d.ts +9 -2
  224. package/dist/types/button/button.types.d.ts.map +1 -1
  225. package/dist/types/button/index.d.ts +1 -1
  226. package/dist/types/button/index.d.ts.map +1 -1
  227. package/dist/types/button/toggle-button.d.ts +1 -1
  228. package/dist/types/button/toggle-button.d.ts.map +1 -1
  229. package/dist/types/calendar/calendar.d.ts +1 -1
  230. package/dist/types/calendar/calendar.d.ts.map +1 -1
  231. package/dist/types/calendar/calendar.types.d.ts +9 -0
  232. package/dist/types/calendar/calendar.types.d.ts.map +1 -1
  233. package/dist/types/calendar/index.d.ts +1 -1
  234. package/dist/types/calendar/index.d.ts.map +1 -1
  235. package/dist/types/chart/chart.d.ts.map +1 -1
  236. package/dist/types/collapsible/collapsible-parts.d.ts.map +1 -1
  237. package/dist/types/currency-field/currency-field.d.ts +1 -1
  238. package/dist/types/currency-field/currency-field.d.ts.map +1 -1
  239. package/dist/types/currency-field/currency-field.types.d.ts +14 -0
  240. package/dist/types/currency-field/currency-field.types.d.ts.map +1 -1
  241. package/dist/types/currency-field/index.d.ts +1 -1
  242. package/dist/types/currency-field/index.d.ts.map +1 -1
  243. package/dist/types/date-field/date-field.d.ts +1 -1
  244. package/dist/types/date-field/date-field.d.ts.map +1 -1
  245. package/dist/types/date-field/date-field.types.d.ts +7 -0
  246. package/dist/types/date-field/date-field.types.d.ts.map +1 -1
  247. package/dist/types/date-picker/date-picker.d.ts +5 -1
  248. package/dist/types/date-picker/date-picker.d.ts.map +1 -1
  249. package/dist/types/date-picker/date-picker.types.d.ts +20 -2
  250. package/dist/types/date-picker/date-picker.types.d.ts.map +1 -1
  251. package/dist/types/date-picker/index.d.ts +1 -1
  252. package/dist/types/date-picker/index.d.ts.map +1 -1
  253. package/dist/types/dialog/dialog-demo.d.ts +8 -0
  254. package/dist/types/dialog/dialog-demo.d.ts.map +1 -1
  255. package/dist/types/filter-bar/filter-bar.d.ts.map +1 -1
  256. package/dist/types/index.d.ts +1 -0
  257. package/dist/types/index.d.ts.map +1 -1
  258. package/dist/types/list/index.d.ts +1 -1
  259. package/dist/types/list/index.d.ts.map +1 -1
  260. package/dist/types/list/list-parts.d.ts +1 -1
  261. package/dist/types/list/list-parts.d.ts.map +1 -1
  262. package/dist/types/list/list.types.d.ts +12 -0
  263. package/dist/types/list/list.types.d.ts.map +1 -1
  264. package/dist/types/page/page.d.ts.map +1 -1
  265. package/dist/types/press-selection/index.d.ts +3 -0
  266. package/dist/types/press-selection/index.d.ts.map +1 -0
  267. package/dist/types/press-selection/press-selection.d.ts +23 -0
  268. package/dist/types/press-selection/press-selection.d.ts.map +1 -0
  269. package/dist/types/segmented-control/index.d.ts +1 -1
  270. package/dist/types/segmented-control/index.d.ts.map +1 -1
  271. package/dist/types/segmented-control/segmented-control-defaults.d.ts.map +1 -1
  272. package/dist/types/segmented-control/segmented-control.d.ts +1 -1
  273. package/dist/types/segmented-control/segmented-control.d.ts.map +1 -1
  274. package/dist/types/segmented-control/segmented-control.types.d.ts +10 -0
  275. package/dist/types/segmented-control/segmented-control.types.d.ts.map +1 -1
  276. package/dist/types/select/select-items.d.ts.map +1 -1
  277. package/dist/types/select/select-parts.d.ts.map +1 -1
  278. package/dist/types/select/select.d.ts.map +1 -1
  279. package/dist/types/table/index.d.ts +2 -2
  280. package/dist/types/table/index.d.ts.map +1 -1
  281. package/dist/types/table/table-defaults.d.ts.map +1 -1
  282. package/dist/types/table/table-parts.d.ts +8 -2
  283. package/dist/types/table/table-parts.d.ts.map +1 -1
  284. package/dist/types/table/table.d.ts +1 -1
  285. package/dist/types/table/table.d.ts.map +1 -1
  286. package/dist/types/table/table.types.d.ts +43 -1
  287. package/dist/types/table/table.types.d.ts.map +1 -1
  288. package/dist/types/tabs/tabs-parts.d.ts.map +1 -1
  289. package/dist/types/tabs/tabs.d.ts +1 -1
  290. package/dist/types/tabs/tabs.d.ts.map +1 -1
  291. package/dist/types/tabs/tabs.types.d.ts +18 -0
  292. package/dist/types/tabs/tabs.types.d.ts.map +1 -1
  293. package/dist/types/toggle/toggle.types.d.ts +1 -1
  294. package/dist/types/toggle/toggle.types.d.ts.map +1 -1
  295. package/dist/types/toggle-group/toggle-group.d.ts.map +1 -1
  296. package/dist/types/toggle-group/toggle-group.types.d.ts +6 -1
  297. package/dist/types/toggle-group/toggle-group.types.d.ts.map +1 -1
  298. package/dist/{upload-Bq_UiyMr.js → upload-DjnlVR8y.js} +2 -2
  299. package/dist/upload.js +1 -1
  300. package/dist/{wizard-B4GrlEqh.js → wizard-BxA08vXt.js} +1 -1
  301. package/dist/wizard.js +1 -1
  302. package/package.json +12 -7
  303. package/dist/button-DakQ-7Tm.js +0 -97
  304. package/dist/calendar-B3mio8iQ.js +0 -387
  305. package/dist/cascader-CARCYdHh.js +0 -1097
  306. package/dist/currency-field-B7OZ0hk7.js +0 -436
  307. package/dist/date-field-D_kLLTfL.js +0 -279
  308. package/dist/date-picker-DQ5SIhdA.js +0 -264
  309. package/dist/date-range-picker-lpB08hK_.js +0 -471
  310. package/dist/datetime-picker-0F0kDW-8.js +0 -629
  311. package/dist/datetime-range-picker-ClnEleth.js +0 -994
  312. package/dist/drawer-Dtospdqk.js +0 -758
  313. package/dist/entity-picker-Dm-y0RNE.js +0 -1111
  314. package/dist/import-export-center-CkZ_Ar9w.js +0 -813
  315. package/dist/menu-parts-BQej6eU9.js +0 -787
  316. package/dist/popover-DE22lSpV.js +0 -476
  317. package/dist/react-dom-DzrKNxo6.js +0 -273
  318. package/dist/tabs-DQ36APY-.js +0 -343
  319. package/dist/toggle-group-DQBlI1TV.js +0 -140
@@ -9,39 +9,39 @@ import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
9
9
  import { collapseState as ie } from "@slotted/core/overflow";
10
10
  import { chartMessages as ae } from "@slotted/core/i18n";
11
11
  import { getLiveAnnouncer as oe } from "@slotted/core/live-announcer";
12
- import { FULL_ZOOM as g, TOOLTIP_DOCK_WIDTH as se, categoryIndex as ce, chartKeyAction as le, chartTable as ue, chartToCsv as de, createChartModel as fe, createLatestAnnouncer as pe, defaultTrigger as me, describeChart as he, describePoint as ge, describeZoom as _e, firstPoint as ve, isDrawn as _, isFullZoom as ye, observeChartTheme as be, placeLayer as xe, placeTooltip as Se, readChartTheme as Ce, sameTheme as we, seriesOf as v, toggleHidden as Te, tooltipContext as Ee, trackModality as De } from "@slotted/core/chart";
13
- import { mountChartEngine as Oe, preloadChartEngine as ke } from "@slotted/core/chart-echarts";
12
+ import { FULL_ZOOM as se, TOOLTIP_DOCK_WIDTH as ce, cachedChartTheme as le, categoryIndex as ue, chartKeyAction as de, chartTable as fe, chartToCsv as pe, createChartModel as me, createLatestAnnouncer as he, defaultTrigger as ge, describeChart as _e, describePoint as ve, describeZoom as ye, firstPoint as be, isDrawn as g, isFullZoom as xe, observeChartTheme as Se, placeLayer as Ce, placeTooltip as we, readChartTheme as Te, sameTheme as Ee, seriesOf as _, toggleHidden as De, tooltipContext as Oe, trackModality as ke } from "@slotted/core/chart";
13
+ import { mountChartEngine as Ae, preloadChartEngine as je } from "@slotted/core/chart-echarts";
14
14
  //#region src/chart/chart-defaults.tsx
15
- var Ae = o({});
16
- function je() {
17
- return l(Ae);
15
+ var Me = o({});
16
+ function Ne() {
17
+ return l(Me);
18
18
  }
19
- function Me({ children: e, ...t }) {
20
- let n = je(), r = { ...n };
19
+ function Pe({ children: e, ...t }) {
20
+ let n = Ne(), r = { ...n };
21
21
  for (let [e, n] of Object.entries(t)) n !== void 0 && (r[e] = n);
22
22
  return r.tooltip = {
23
23
  ...n.tooltip,
24
24
  ...t.tooltip
25
- }, /* @__PURE__ */ m(Ae.Provider, {
25
+ }, /* @__PURE__ */ m(Me.Provider, {
26
26
  value: r,
27
27
  children: e
28
28
  });
29
29
  }
30
30
  //#endregion
31
31
  //#region src/chart/chart.tsx
32
- var Ne = Object.freeze([]), Pe = (e, t) => e === t || e !== null && t !== null && e.series === t.series && e.key === t.key, Fe = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]), Ie = (e, t) => e.start === t.start && e.end === t.end, y = (e) => typeof e == "object" && !!e && Object.getPrototypeOf(e) === Object.prototype;
33
- function b(e, t) {
32
+ var Fe = Object.freeze([]), Ie = (e, t) => e === t || e !== null && t !== null && e.series === t.series && e.key === t.key, Le = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]), Re = (e, t) => e.start === t.start && e.end === t.end, v = (e) => typeof e == "object" && !!e && Object.getPrototypeOf(e) === Object.prototype;
33
+ function y(e, t) {
34
34
  if (Object.is(e, t)) return !0;
35
- if (Array.isArray(e)) return Array.isArray(t) && e.length === t.length && e.every((e, n) => b(e, t[n]));
36
- if (!y(e) || !y(t)) return !1;
35
+ if (Array.isArray(e)) return Array.isArray(t) && e.length === t.length && e.every((e, n) => y(e, t[n]));
36
+ if (!v(e) || !v(t)) return !1;
37
37
  let n = Object.keys(e);
38
- return n.length === Object.keys(t).length && n.every((n) => Object.hasOwn(t, n) && b(e[n], t[n]));
38
+ return n.length === Object.keys(t).length && n.every((n) => Object.hasOwn(t, n) && y(e[n], t[n]));
39
39
  }
40
- function x(e) {
40
+ function ze(e) {
41
41
  let t = d(e);
42
- return b(t.current, e) || (t.current = e), t.current;
42
+ return y(t.current, e) || (t.current = e), t.current;
43
43
  }
44
- function S(e, t, n, r) {
44
+ function b(e, t, n, r) {
45
45
  let [a, o] = f(t), s = e === void 0 ? a : e, l = d({
46
46
  controlled: e,
47
47
  value: s,
@@ -61,37 +61,37 @@ function S(e, t, n, r) {
61
61
  }).request(e, t, n) && o(e);
62
62
  }, [r])];
63
63
  }
64
- var Le = {
64
+ var Be = {
65
65
  crosshair: null,
66
66
  markers: [],
67
67
  tooltip: null,
68
68
  docked: !1
69
69
  };
70
- function Re(e) {
70
+ function Ve(e) {
71
71
  try {
72
72
  return e.matches(":focus-visible");
73
73
  } catch {
74
74
  return !1;
75
75
  }
76
76
  }
77
- function ze(e) {
77
+ function He(e) {
78
78
  for (let t = e.length - 1; t >= 0; --t) if (e[t] !== null) return t;
79
79
  return -1;
80
80
  }
81
- function Be(e) {
81
+ function Ue(e) {
82
82
  return e.type === "slot" ? { "data-slot": String(e.slot) } : e.type === "tone" ? { "data-tone": e.tone } : { "data-overflow": "" };
83
83
  }
84
- function Ve(e) {
84
+ function We(e) {
85
85
  return Object.fromEntries(Object.entries(e).map(([e, t]) => [e, `${t}px`]));
86
86
  }
87
- function He(e, t = !0) {
87
+ function Ge(e, t = !0) {
88
88
  let n = d(null), r = d(null), [i, a] = f(!1), o = (i) => {
89
89
  let o = i.newState === "open";
90
90
  a(o);
91
91
  let s = r.current, c = n.current;
92
92
  if (s && c) {
93
93
  if (o) {
94
- let n = s.getBoundingClientRect(), r = xe({
94
+ let n = s.getBoundingClientRect(), r = Ce({
95
95
  anchor: c.getBoundingClientRect(),
96
96
  size: {
97
97
  width: n.width,
@@ -128,29 +128,33 @@ function He(e, t = !0) {
128
128
  }
129
129
  };
130
130
  }
131
- function C() {
131
+ function x() {
132
132
  let e = d(null), t = d(null);
133
133
  return u(() => {
134
134
  if (!e.current) return;
135
- let n = De(e.current);
135
+ let n = ke(e.current);
136
136
  return t.current = n, () => n.destroy();
137
137
  }, []), [e, () => t.current?.read() ?? "programmatic"];
138
138
  }
139
- function Ue(e, t) {
139
+ function Ke(e, t) {
140
140
  typeof e == "function" ? e(t) : e && typeof e == "object" && (e.current = t);
141
141
  }
142
- function We({ context: e, model: t, totalLabel: n, indicator: r }) {
142
+ function qe({ context: e, model: t, totalLabel: n, indicator: r }) {
143
143
  return /* @__PURE__ */ h(p, { children: [
144
144
  /* @__PURE__ */ m("div", {
145
145
  "data-part": "tooltip-title",
146
146
  children: e.title
147
147
  }),
148
+ e.notes.map((e) => /* @__PURE__ */ m("div", {
149
+ "data-part": "tooltip-note",
150
+ children: e
151
+ }, e)),
148
152
  e.items.map((n) => {
149
- let i = v(t, n.series), a = r === "line" || n.kind === "line" ? "line" : n.kind === "scatter" ? "scatter" : "bar";
153
+ let i = _(t, n.series), a = r === "line" || n.kind === "line" ? "line" : n.kind === "scatter" ? "scatter" : "bar";
150
154
  return /* @__PURE__ */ s("div", {
151
155
  "data-part": "tooltip-item",
152
156
  ...e.items.length > 1 && n.current ? { "data-current": "" } : {},
153
- ...Be(n.color),
157
+ ...Ue(n.color),
154
158
  key: `${n.series}-${n.label}`
155
159
  }, r === "none" ? null : /* @__PURE__ */ m("span", {
156
160
  "data-kind": a,
@@ -173,45 +177,45 @@ function We({ context: e, model: t, totalLabel: n, indicator: r }) {
173
177
  }) : null
174
178
  ] });
175
179
  }
176
- function Ge(i) {
177
- let { data: o, series: c, x: l, y: xe, orientation: De, stackMode: ke, annotations: Ae, recordKey: Me, locale: y, title: b, description: C, help: Ge, actions: T, messages: Ze, size: Qe, variant: $e, palette: et, toolbar: tt, grid: nt, texture: rt, renderer: it, sampling: at, animate: ot, legend: st, legendInteractive: ct, legendValues: lt, legendOverflow: ut, trigger: dt, tooltip: ft, zoomable: pt, selectable: mt, loading: ht, error: gt, onRetry: _t, hidden: vt, defaultHidden: yt, onHiddenChange: bt, activePoint: xt, defaultActivePoint: St, onActivePointChange: Ct, selection: wt, defaultSelection: Tt, onSelectionChange: Et, zoom: Dt, defaultZoom: Ot, onZoomChange: kt, tableOpen: At, defaultTableOpen: jt, onTableOpenChange: Mt, fullscreen: Nt, defaultFullscreen: Pt, onFullscreenChange: Ft, renderTooltip: It, renderLegendItem: Lt, renderCenter: Rt, renderEmpty: zt, renderError: Bt, render: Vt, extendOption: Ht, handleRef: Ut, ref: Wt, ...Gt } = i, E = je(), D = ee(), O = r(ae, Ze), Kt = n(), k = {
178
- size: Qe ?? E.size ?? "md",
179
- variant: $e ?? E.variant ?? "plain",
180
- palette: et ?? E.palette ?? "categorical",
181
- toolbar: tt ?? E.toolbar ?? "visible",
182
- renderer: it ?? E.renderer ?? "auto",
183
- grid: nt ?? E.grid,
184
- legendOverflow: ut ?? E.legendOverflow ?? "collapse",
185
- animate: ot ?? E.animate ?? !0,
180
+ function Je(i) {
181
+ let { data: o, series: c, x: l, y: Ce, orientation: ke, stackMode: je, annotations: Me, recordKey: Pe, locale: v, title: y, description: x, help: Je, actions: C, messages: et, size: tt, variant: nt, palette: rt, toolbar: it, grid: at, texture: ot, renderer: st, sampling: ct, animate: lt, legend: ut, legendInteractive: dt, legendValues: ft, legendOverflow: pt, trigger: mt, tooltip: ht, zoomable: w, selectable: gt, loading: _t, error: vt, onRetry: yt, hidden: bt, defaultHidden: xt, onHiddenChange: St, activePoint: Ct, defaultActivePoint: wt, onActivePointChange: Tt, selection: Et, defaultSelection: Dt, onSelectionChange: Ot, zoom: kt, defaultZoom: At, onZoomChange: jt, tableOpen: Mt, defaultTableOpen: Nt, onTableOpenChange: Pt, fullscreen: Ft, defaultFullscreen: It, onFullscreenChange: Lt, renderTooltip: Rt, renderLegendItem: zt, renderCenter: Bt, renderEmpty: Vt, renderError: Ht, render: Ut, extendOption: Wt, handleRef: Gt, ref: Kt, ...qt } = i, T = Ne(), E = ee(), D = r(ae, et), Jt = n(), O = {
182
+ size: tt ?? T.size ?? "md",
183
+ variant: nt ?? T.variant ?? "plain",
184
+ palette: rt ?? T.palette ?? "categorical",
185
+ toolbar: it ?? T.toolbar ?? "visible",
186
+ renderer: st ?? T.renderer ?? "auto",
187
+ grid: at ?? T.grid,
188
+ legendOverflow: pt ?? T.legendOverflow ?? "collapse",
189
+ animate: lt ?? T.animate ?? !0,
186
190
  tooltip: {
187
- ...E.tooltip,
188
- ...ft
191
+ ...T.tooltip,
192
+ ...ht
189
193
  }
190
- }, [qt, Jt] = S(vt, yt ?? Ne, bt, Fe), [A, j] = S(xt, St ?? null, Ct, Pe), [M, Yt] = S(wt, Tt ?? null, Et, Pe), [N, P] = S(Dt, Ot ?? g, kt, Ie), [F, Xt] = S(At, jt ?? !1, Mt, Object.is), [I, Zt] = S(Nt, Pt ?? !1, Ft, Object.is), Qt = x(c), $t = x(l), en = x(xe), tn = x(Ae), nn = re(() => ({
194
+ }, [Yt, Xt] = b(bt, xt ?? Fe, St, Le), [k, A] = b(Ct, wt ?? null, Tt, Ie), [j, Zt] = b(Et, Dt ?? null, Ot, Ie), [M, N] = b(kt, At ?? se, jt, Re), [P, Qt] = b(Mt, Nt ?? !1, Pt, Object.is), [F, $t] = b(Ft, It ?? !1, Lt, Object.is), en = ze(c), tn = ze(l), nn = ze(Ce), rn = ze(Me), an = re(() => ({
191
195
  data: o,
192
- series: Qt,
193
- x: $t,
194
- y: en,
195
- orientation: De,
196
- stackMode: ke,
197
- annotations: tn,
198
- recordKey: Me,
199
- locale: y ?? Kt
196
+ series: en,
197
+ x: tn,
198
+ y: nn,
199
+ orientation: ke,
200
+ stackMode: je,
201
+ annotations: rn,
202
+ recordKey: Pe,
203
+ locale: v ?? Jt
200
204
  }), [
201
205
  o,
202
- Qt,
203
- $t,
204
206
  en,
205
- De,
206
- ke,
207
207
  tn,
208
- Me,
209
- y,
210
- Kt
211
- ]), rn = re(() => {
208
+ nn,
209
+ ke,
210
+ je,
211
+ rn,
212
+ Pe,
213
+ v,
214
+ Jt
215
+ ]), on = re(() => {
212
216
  try {
213
217
  return {
214
- model: fe(nn, { hidden: qt }),
218
+ model: me(an, { hidden: Yt }),
215
219
  failure: null
216
220
  };
217
221
  } catch (e) {
@@ -220,78 +224,81 @@ function Ge(i) {
220
224
  failure: e
221
225
  };
222
226
  }
223
- }, [nn, qt]), L = rn.model, [an, on] = f(null), R = !!gt || rn.failure !== null || an !== null, z = !!ht, B = !(!L || z || R || L.empty), V = !(!L || z || R || L.empty === "no-data"), H = L ? dt ?? me(L) : "none", U = d(null), W = d(null), sn = d(null), cn = d(null), ln = d(null), G = d(null), [un, dn] = f(null), [K, fn] = f(Le), q = re(() => pe((e) => oe().announce(e)), []), pn = (e) => oe().announce(e);
224
- ne(() => {
225
- let e = W.current;
227
+ }, [an, Yt]), I = on.model, [sn, cn] = f(null), L = !!vt || on.failure !== null || sn !== null, R = !!_t, z = !(!I || R || L || I.empty), B = !(!I || R || L || I.empty === "no-data"), V = I ? mt ?? ge(I) : "none", H = d(null), U = d(null), ln = d(null), un = d(null), dn = d(null), W = d(null), [fn, pn] = f(null), [G, mn] = f(Be), K = re(() => he((e) => oe().announce(e)), []), hn = (e) => oe().announce(e);
228
+ u(() => {
229
+ let e = U.current;
226
230
  if (!e) return;
227
- let t = () => dn((t) => {
228
- let n = Ce(e);
229
- return we(t, n) ? t : n;
230
- });
231
- return t(), be(e, t);
231
+ let t = e.ownerDocument.defaultView, n = (e) => pn((t) => Ee(t, e) ? t : e), r = () => n(Te(e)), i = le(e), a = 0;
232
+ i ? n(i) : t && (a = t.requestAnimationFrame(() => {
233
+ a = 0, r();
234
+ }));
235
+ let o = Se(e, r);
236
+ return () => {
237
+ o(), a && t?.cancelAnimationFrame(a);
238
+ };
232
239
  }, [
233
- k.palette,
234
- k.variant,
235
- I
240
+ O.palette,
241
+ O.variant,
242
+ F
236
243
  ]);
237
- let J = d({
244
+ let q = d({
238
245
  onPointer: () => {},
239
246
  onPress: () => {},
240
247
  onZoom: () => {},
241
248
  onRender: () => {}
242
249
  });
243
250
  u(() => {
244
- let e = sn.current;
251
+ let e = ln.current;
245
252
  if (!e) return;
246
- let t = Oe(e, {
247
- onPointer: (e, t) => J.current.onPointer(e, t),
248
- onPress: (e, t) => J.current.onPress(e, t),
249
- onZoom: (e, t) => J.current.onZoom(e, t),
250
- onRender: () => J.current.onRender(),
251
- onError: (e) => on(e)
253
+ let t = Ae(e, {
254
+ onPointer: (e, t) => q.current.onPointer(e, t),
255
+ onPress: (e, t) => q.current.onPress(e, t),
256
+ onZoom: (e, t) => q.current.onZoom(e, t),
257
+ onRender: () => q.current.onRender(),
258
+ onError: (e) => cn(e)
252
259
  });
253
- return G.current = t, () => {
254
- t.dispose(), G.current = null;
260
+ return W.current = t, () => {
261
+ t.dispose(), W.current = null;
255
262
  };
256
263
  }, []), u(() => {
257
- G.current && un && L && B && G.current.update({
258
- model: L,
259
- theme: un,
260
- selection: M,
261
- zoom: N,
262
- zoomable: !!pt,
263
- grid: k.grid,
264
- texture: !!rt,
265
- renderer: k.renderer,
266
- sampling: at,
267
- trigger: H,
268
- animate: k.animate,
269
- extendOption: Ht
264
+ W.current && fn && I && z && W.current.update({
265
+ model: I,
266
+ theme: fn,
267
+ selection: j,
268
+ zoom: M,
269
+ zoomable: !!w,
270
+ grid: O.grid,
271
+ texture: !!ot,
272
+ renderer: O.renderer,
273
+ sampling: ct,
274
+ trigger: V,
275
+ animate: O.animate,
276
+ extendOption: Wt
270
277
  });
271
278
  }, [
272
- L,
273
- un,
274
- B,
279
+ I,
280
+ fn,
281
+ z,
282
+ j,
275
283
  M,
276
- N,
277
- pt,
278
- k.grid,
279
- rt,
280
- k.renderer,
281
- at,
282
- H,
283
- k.animate,
284
- Ht
284
+ w,
285
+ O.grid,
286
+ ot,
287
+ O.renderer,
288
+ ct,
289
+ V,
290
+ O.animate,
291
+ Wt
285
292
  ]);
286
- let mn = () => {
287
- let e = G.current, t = W.current;
288
- if (!e || !t || !L || !B || F) {
289
- fn(Le);
293
+ let gn = () => {
294
+ let e = W.current, t = U.current;
295
+ if (!e || !t || !I || !z || P) {
296
+ mn(Be);
290
297
  return;
291
298
  }
292
299
  let n = [];
293
- if (M && _(L, M) && L.shape === "cartesian") {
294
- let t = v(L, M.series), r = e.locate(M);
300
+ if (j && g(I, j) && I.shape === "cartesian") {
301
+ let t = _(I, j.series), r = e.locate(j);
295
302
  t && t.kind !== "bar" && r && n.push({
296
303
  key: `selected-${t.id}`,
297
304
  color: t.color,
@@ -300,10 +307,10 @@ function Ge(i) {
300
307
  current: !1
301
308
  });
302
309
  }
303
- L.shape === "pie" && e.emphasize(A && _(L, A) ? A.key : null);
304
- let r = A && _(L, A) ? e.locate(A) : null;
305
- if (!A || !r) {
306
- fn({
310
+ I.shape === "pie" && e.emphasize(k && g(I, k) ? k.key : null);
311
+ let r = k && g(I, k) ? e.locate(k) : null;
312
+ if (!k || !r) {
313
+ mn({
307
314
  crosshair: null,
308
315
  markers: n,
309
316
  tooltip: null,
@@ -311,60 +318,60 @@ function Ge(i) {
311
318
  });
312
319
  return;
313
320
  }
314
- let i = L.series.some((e) => e.visible && e.kind === "bar"), a = L.shape === "cartesian" && H === "axis" ? {
321
+ let i = I.series.some((e) => e.visible && e.kind === "bar"), a = I.shape === "cartesian" && V === "axis" ? {
315
322
  ...r,
316
- isBand: i && L.xType === "category"
323
+ isBand: i && I.xType === "category"
317
324
  } : null;
318
- if (L.shape === "cartesian") {
319
- let t = ce(L, A.key), r = H === "axis" ? L.series.filter((e) => e.visible && e.kind !== "bar" && e.values[t] !== null) : [v(L, A.series)].filter((e) => !!(e && e.kind !== "bar"));
325
+ if (I.shape === "cartesian") {
326
+ let t = ue(I, k.key), r = V === "axis" ? I.series.filter((e) => e.visible && e.kind !== "bar" && e.values[t] !== null) : [_(I, k.series)].filter((e) => !!(e && e.kind !== "bar"));
320
327
  for (let t of r) {
321
328
  let r = e.locate({
322
329
  series: t.id,
323
- key: A.key
330
+ key: k.key
324
331
  });
325
332
  r && n.push({
326
333
  key: t.id,
327
334
  color: t.color,
328
335
  at: r,
329
336
  selected: !1,
330
- current: t.id === A.series
337
+ current: t.id === k.series
331
338
  });
332
339
  }
333
340
  }
334
- let o = H === "none" ? null : Ee(L, A, {
335
- trigger: H,
336
- sort: k.tooltip.sort,
337
- total: k.tooltip.total
341
+ let o = V === "none" ? null : Oe(I, k, {
342
+ trigger: V,
343
+ sort: O.tooltip.sort,
344
+ total: O.tooltip.total
338
345
  });
339
- fn({
346
+ mn({
340
347
  crosshair: a,
341
348
  markers: n,
342
349
  tooltip: o,
343
- docked: t.clientWidth < se
350
+ docked: t.clientWidth < ce
344
351
  });
345
352
  };
346
353
  ne(() => {
347
- mn();
354
+ gn();
348
355
  }, [
349
- A,
350
- M,
351
- L,
352
- B,
353
- F,
354
- H
356
+ k,
357
+ j,
358
+ I,
359
+ z,
360
+ P,
361
+ V
355
362
  ]);
356
- let hn = d(!1);
363
+ let J = d(!1);
357
364
  ne(() => {
358
- let e = cn.current, t = W.current;
365
+ let e = un.current, t = U.current;
359
366
  if (!e || !t) return;
360
- if (!K.tooltip || !A) {
361
- hn.current = !1;
367
+ if (!G.tooltip || !k) {
368
+ J.current = !1;
362
369
  return;
363
370
  }
364
- let n = G.current?.locate(A);
371
+ let n = W.current?.locate(k);
365
372
  if (!n) return;
366
- hn.current || (e.style.transition = "none");
367
- let r = Se({
373
+ J.current || (e.style.transition = "none");
374
+ let r = we({
368
375
  anchor: {
369
376
  x: n.x,
370
377
  y: n.y
@@ -377,103 +384,103 @@ function Ge(i) {
377
384
  width: t.clientWidth,
378
385
  height: t.clientHeight
379
386
  },
380
- dir: U.current && getComputedStyle(U.current).direction === "rtl" ? "rtl" : "ltr"
387
+ dir: H.current && getComputedStyle(H.current).direction === "rtl" ? "rtl" : "ltr"
381
388
  });
382
- e.style.setProperty("--slotted-chart-x", `${r.x}px`), e.style.setProperty("--slotted-chart-y", `${r.y}px`), hn.current || requestAnimationFrame(() => e.style.transition = ""), hn.current = !0;
383
- }, [K, A]), J.current = {
389
+ e.style.setProperty("--slotted-chart-x", `${r.x}px`), e.style.setProperty("--slotted-chart-y", `${r.y}px`), J.current || requestAnimationFrame(() => e.style.transition = ""), J.current = !0;
390
+ }, [G, k]), q.current = {
384
391
  onPointer: (e, t) => {
385
- e ? j(e, "pointer", t) : document.activeElement !== W.current && j(null, "pointer", t);
392
+ e ? A(e, "pointer", t) : document.activeElement !== U.current && A(null, "pointer", t);
386
393
  },
387
394
  onPress: (e, t) => {
388
- mt && e && Yt(Pe(M, e) ? null : e, "pointer", t);
395
+ gt && e && Zt(Ie(j, e) ? null : e, "pointer", t);
389
396
  },
390
- onZoom: (e, t) => P(e, "pointer", t),
391
- onRender: () => mn()
397
+ onZoom: (e, t) => N(e, "pointer", t),
398
+ onRender: () => gn()
392
399
  };
393
- let gn = (e) => {
394
- if (!L || !B || F) return;
395
- let t = le(L, {
396
- active: A,
397
- selection: M,
398
- zoom: N,
399
- zoomable: !!pt,
400
- selectable: !!mt
400
+ let _n = (e) => {
401
+ if (!I || !z || P) return;
402
+ let t = de(I, {
403
+ active: k,
404
+ selection: j,
405
+ zoom: M,
406
+ zoomable: !!w,
407
+ selectable: !!gt
401
408
  }, e.key);
402
409
  if (t !== null) {
403
410
  e.preventDefault();
404
- for (let n of t) n.type === "active" ? (j(n.point, n.reason, e.nativeEvent), n.point ? q.say(ge(L, n.point, M, O)) : q.cancel()) : n.type === "select" ? (Yt(n.point, "keyboard", e.nativeEvent), n.point && q.say(ge(L, n.point, n.point, O))) : (P(n.zoom, n.reason, e.nativeEvent), pn(_e(L, n.zoom, O)));
411
+ for (let n of t) n.type === "active" ? (A(n.point, n.reason, e.nativeEvent), n.point ? K.say(ve(I, n.point, j, D)) : K.cancel()) : n.type === "select" ? (Zt(n.point, "keyboard", e.nativeEvent), n.point && K.say(ve(I, n.point, n.point, D))) : (N(n.zoom, n.reason, e.nativeEvent), hn(ye(I, n.zoom, D)));
405
412
  }
406
- }, _n = (e) => {
407
- if (!L || !B || F || A || !Re(e.currentTarget)) return;
408
- let t = ve(L);
409
- t && (j(t, "keyboard", e.nativeEvent), q.say(ge(L, t, M, O)));
410
- }, vn = (e, t) => {
411
- let n = !I;
412
- Zt(n, e, t);
413
- let r = U.current;
414
- r && (n && Nt === void 0 && document.fullscreenEnabled && e !== "programmatic" && r.requestFullscreen?.().catch(() => {}), !n && document.fullscreenElement === r && document.exitFullscreen().catch(() => {}));
413
+ }, vn = (e) => {
414
+ if (!I || !z || P || k || !Ve(e.currentTarget)) return;
415
+ let t = be(I);
416
+ t && (A(t, "keyboard", e.nativeEvent), K.say(ve(I, t, j, D)));
417
+ }, yn = (e, t) => {
418
+ let n = !F;
419
+ $t(n, e, t);
420
+ let r = H.current;
421
+ r && (n && Ft === void 0 && document.fullscreenEnabled && e !== "programmatic" && r.requestFullscreen?.().catch(() => {}), !n && document.fullscreenElement === r && document.exitFullscreen().catch(() => {}));
415
422
  };
416
423
  u(() => {
417
- let e = U.current;
424
+ let e = H.current;
418
425
  if (!e) return;
419
426
  let t = !1, n = () => {
420
- document.fullscreenElement === e ? t = !0 : t && (t = !1, yn.current(!1, "escape"));
427
+ document.fullscreenElement === e ? t = !0 : t && (t = !1, bn.current(!1, "escape"));
421
428
  };
422
429
  return document.addEventListener("fullscreenchange", n), () => document.removeEventListener("fullscreenchange", n);
423
430
  }, []);
424
- let yn = d(Zt);
425
- yn.current = Zt, u(() => {
426
- let e = U.current;
427
- !I && e && document.fullscreenElement === e && document.exitFullscreen().catch(() => {});
428
- }, [I]);
429
- let bn = (e) => {
430
- Gt.onKeyDown?.(e), !e.defaultPrevented && e.key === "Escape" && I && (e.preventDefault(), vn("escape", e.nativeEvent));
431
- }, [Y, xn] = f([]), Sn = d(/* @__PURE__ */ new Map()), [Cn, wn] = f(null), Tn = ct ?? !0, X = L?.legend ?? [], En = () => {
432
- let e = ln.current;
433
- if (!e || !L) return;
434
- if (k.legendOverflow === "wrap") {
435
- xn((e) => e.length ? [] : e);
431
+ let bn = d($t);
432
+ bn.current = $t, u(() => {
433
+ let e = H.current;
434
+ !F && e && document.fullscreenElement === e && document.exitFullscreen().catch(() => {});
435
+ }, [F]);
436
+ let xn = (e) => {
437
+ qt.onKeyDown?.(e), !e.defaultPrevented && e.key === "Escape" && F && (e.preventDefault(), yn("escape", e.nativeEvent));
438
+ }, [Y, Sn] = f([]), Cn = d(/* @__PURE__ */ new Map()), [wn, Tn] = f(null), En = dt ?? !0, X = I?.legend ?? [], Dn = () => {
439
+ let e = dn.current;
440
+ if (!e || !I) return;
441
+ if (O.legendOverflow === "wrap") {
442
+ Sn((e) => e.length ? [] : e);
436
443
  return;
437
444
  }
438
445
  let t = [...e.querySelectorAll(":scope > [data-part=\"legend-item\"]")];
439
- for (let e of t) e.hidden || Sn.current.set(e.dataset.key ?? "", e.getBoundingClientRect().width);
446
+ for (let e of t) e.hidden || Cn.current.set(e.dataset.key ?? "", e.getBoundingClientRect().width);
440
447
  let n = Number.parseFloat(getComputedStyle(e).columnGap) || 0, r = e.querySelector(":scope > [data-part=\"legend-more\"]"), i = r && !r.hidden ? r.getBoundingClientRect().width : 40, a = ie({
441
448
  units: X.map((e) => ({
442
- size: Sn.current.get(e.key) ?? 0,
449
+ size: Cn.current.get(e.key) ?? 0,
443
450
  collapsible: !0
444
451
  })),
445
452
  available: e.clientWidth,
446
453
  gap: n,
447
454
  triggerSize: i
448
455
  });
449
- xn((e) => e.length === a.collapsed.length && e.every((e, t) => e === a.collapsed[t]) ? e : a.collapsed);
456
+ Sn((e) => e.length === a.collapsed.length && e.every((e, t) => e === a.collapsed[t]) ? e : a.collapsed);
450
457
  };
451
458
  ne(() => {
452
- En();
459
+ Dn();
453
460
  }, [
454
461
  X,
455
- k.legendOverflow,
456
- lt,
457
- A
462
+ O.legendOverflow,
463
+ ft,
464
+ k
458
465
  ]), u(() => {
459
- let e = ln.current;
466
+ let e = dn.current;
460
467
  if (!e || typeof ResizeObserver > "u") return;
461
- let t = new ResizeObserver(() => Dn.current());
468
+ let t = new ResizeObserver(() => On.current());
462
469
  return t.observe(e), () => t.disconnect();
463
470
  }, []);
464
- let Dn = d(En);
465
- Dn.current = En;
466
- let On = (e, t, n, r) => {
467
- let i = X.map((e) => e.key), a = Te(i, qt, e.key, t);
468
- wn(e.key), Jt(a, n, r), pn(O(a.includes(e.key) ? "hidden" : "shown", { series: e.label }));
469
- }, Z = A && L && _(L, A) ? A.key : null, kn = (e) => {
470
- if (!L) return "";
471
- let t = L.shape === "pie" ? L.series[0] : v(L, e.key);
471
+ let On = d(Dn);
472
+ On.current = Dn;
473
+ let kn = (e, t, n, r) => {
474
+ let i = X.map((e) => e.key), a = De(i, Yt, e.key, t);
475
+ Tn(e.key), Xt(a, n, r), hn(D(a.includes(e.key) ? "hidden" : "shown", { series: e.label }));
476
+ }, Z = k && I && g(I, k) ? k.key : null, An = (e) => {
477
+ if (!I) return "";
478
+ let t = I.shape === "pie" ? I.series[0] : _(I, e.key);
472
479
  if (!t) return "";
473
- let n = L.shape === "pie" ? ce(L, e.key) : Z ? ce(L, Z) : ze(t.values), r = n >= 0 ? t.values[n] : null;
480
+ let n = I.shape === "pie" ? ue(I, e.key) : Z ? ue(I, Z) : He(t.values), r = n >= 0 ? t.values[n] : null;
474
481
  return r == null ? "" : t.format(r);
475
- }, An = He("start"), jn = X.filter((e, t) => !Y.includes(t)).map((e) => e.key), Mn = Cn && jn.includes(Cn) ? Cn : jn[0] ?? null, Nn = (e, t, n) => {
476
- let r = L?.shape === "pie" ? L.series[0] : L ? v(L, e.key) : void 0, i = L?.shape === "pie" ? e.key === Z : A?.series === e.key && Z !== null, o = !n && Y.includes(t), c = /* @__PURE__ */ h(p, { children: [
482
+ }, jn = Ge("start"), Mn = X.filter((e, t) => !Y.includes(t)).map((e) => e.key), Nn = wn && Mn.includes(wn) ? wn : Mn[0] ?? null, Pn = (e, t, n) => {
483
+ let r = I?.shape === "pie" ? I.series[0] : I ? _(I, e.key) : void 0, i = I?.shape === "pie" ? e.key === Z : k?.series === e.key && Z !== null, o = !n && Y.includes(t), c = /* @__PURE__ */ h(p, { children: [
477
484
  /* @__PURE__ */ m("span", {
478
485
  "data-kind": e.kind === "area" || e.kind === "bar" || e.kind === "pie" ? "bar" : e.kind,
479
486
  "data-part": "legend-marker",
@@ -484,158 +491,158 @@ function Ge(i) {
484
491
  title: e.label,
485
492
  children: e.label
486
493
  }),
487
- lt ? /* @__PURE__ */ m("span", {
494
+ ft ? /* @__PURE__ */ m("span", {
488
495
  "data-part": "legend-value",
489
- children: kn(e)
496
+ children: An(e)
490
497
  }) : null
491
498
  ] }), l = {
492
499
  "data-part": "legend-item",
493
500
  "data-key": e.key,
494
- ...Be(e.color),
501
+ ...Ue(e.color),
495
502
  ...i ? { "data-current": "" } : {},
496
503
  hidden: o,
497
- onPointerEnter: () => e.visible && G.current?.emphasize(e.key),
498
- onPointerLeave: () => G.current?.emphasize(null)
499
- }, u = Tn ? /* @__PURE__ */ s(Ke, {
504
+ onPointerEnter: () => e.visible && W.current?.emphasize(e.key),
505
+ onPointerLeave: () => W.current?.emphasize(null)
506
+ }, u = En ? /* @__PURE__ */ s(Ye, {
500
507
  ...l,
501
508
  entry: e,
502
- focused: n || Mn === e.key,
509
+ focused: n || Nn === e.key,
503
510
  key: `${n ? "layer" : "row"}-${e.key}`,
504
- onActivate: (t, n, r) => On(e, t, n, r),
511
+ onActivate: (t, n, r) => kn(e, t, n, r),
505
512
  onFocusEntry: () => {
506
- n || wn(e.key), e.visible && G.current?.emphasize(e.key);
513
+ n || Tn(e.key), e.visible && W.current?.emphasize(e.key);
507
514
  },
508
- onBlurEntry: () => G.current?.emphasize(null)
515
+ onBlurEntry: () => W.current?.emphasize(null)
509
516
  }, c) : /* @__PURE__ */ s("span", {
510
517
  ...l,
511
518
  key: `${n ? "layer" : "row"}-${e.key}`,
512
519
  role: "listitem"
513
520
  }, c);
514
- return Lt ? /* @__PURE__ */ m(a, { children: Lt(e, l, u) }, `${n ? "layer" : "row"}-${e.key}`) : u;
515
- }, Pn = (e) => {
521
+ return zt ? /* @__PURE__ */ m(a, { children: zt(e, l, u) }, `${n ? "layer" : "row"}-${e.key}`) : u;
522
+ }, Fn = (e) => {
516
523
  let t = e.target;
517
524
  if (t.closest("[data-part=\"menu\"]")) return;
518
525
  let n = [...e.currentTarget.querySelectorAll(":scope > button:not([hidden])")], r = n.indexOf(t);
519
526
  if (r === -1) return;
520
- let i = U.current ? getComputedStyle(U.current).direction === "rtl" : !1, a = e.key === "ArrowRight" ? i ? -1 : 1 : e.key === "ArrowLeft" ? i ? 1 : -1 : 0, o;
521
- a && (o = n[(r + a + n.length) % n.length]), e.key === "Home" && (o = n[0]), e.key === "End" && (o = n[n.length - 1]), o && (e.preventDefault(), wn(o.dataset.key ?? "__more"), o.focus());
522
- }, Q = He("end"), Fn = He("start", !1), In = (e, t) => {
527
+ let i = H.current ? getComputedStyle(H.current).direction === "rtl" : !1, a = e.key === "ArrowRight" ? i ? -1 : 1 : e.key === "ArrowLeft" ? i ? 1 : -1 : 0, o;
528
+ a && (o = n[(r + a + n.length) % n.length]), e.key === "Home" && (o = n[0]), e.key === "End" && (o = n[n.length - 1]), o && (e.preventDefault(), Tn(o.dataset.key ?? "__more"), o.focus());
529
+ }, Q = Ge("end"), In = Ge("start", !1), Ln = (e, t) => {
523
530
  let n = document.createElement("a");
524
531
  n.href = t, n.download = e, document.body.append(n), n.click(), n.remove();
525
- }, Ln = typeof b == "string" ? b : "chart";
526
- te(Ut, () => ({
527
- focus: () => W.current?.focus(),
528
- resetZoom: () => P(g, "programmatic"),
529
- toDataURL: () => G.current?.toDataURL() ?? null,
530
- toCsv: () => L ? de(L, O) : ""
532
+ }, Rn = typeof y == "string" ? y : "chart";
533
+ te(Gt, () => ({
534
+ focus: () => U.current?.focus(),
535
+ resetZoom: () => N(se, "programmatic"),
536
+ toDataURL: () => W.current?.toDataURL() ?? null,
537
+ toCsv: () => I ? pe(I, D) : ""
531
538
  }), [
532
- L,
533
- O,
534
- P
539
+ I,
540
+ D,
541
+ N
535
542
  ]);
536
- let Rn = z ? O("loading") : R ? O("error") : L ? he(L, O) : "", zn = `${D}-title`, Bn = `${D}-description`, Vn = `${D}-summary`, Hn = nn.series.some((e) => e.kind === "pie") ? "pie" : nn.series.every((e) => e.kind === "line" || e.kind === "area") ? "line" : "bar", $ = F && V && L ? ue(L, O) : null, Un = () => {
537
- on(null), _t?.();
538
- }, Wn = b !== void 0 || C !== void 0 || T !== void 0 || k.toolbar !== "none" ? /* @__PURE__ */ h("figcaption", {
543
+ let zn = R ? D("loading") : L ? D("error") : I ? _e(I, D) : "", Bn = `${E}-title`, Vn = `${E}-description`, Hn = `${E}-summary`, Un = an.series.some((e) => e.kind === "pie") ? "pie" : an.series.every((e) => e.kind === "line" || e.kind === "area") ? "line" : "bar", $ = P && B && I ? fe(I, D) : null, Wn = () => {
544
+ cn(null), yt?.();
545
+ }, Gn = y !== void 0 || x !== void 0 || C !== void 0 || O.toolbar !== "none" ? /* @__PURE__ */ h("figcaption", {
539
546
  "data-part": "header",
540
547
  children: [
541
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("div", { children: [b === void 0 ? null : /* @__PURE__ */ m("span", {
548
+ /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("div", { children: [y === void 0 ? null : /* @__PURE__ */ m("span", {
542
549
  "data-part": "title",
543
- id: zn,
544
- children: b
545
- }), Ge === void 0 ? null : /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("button", {
546
- ...Fn.controlProps,
547
- "aria-controls": `${D}-help`,
548
- "aria-label": O("help"),
550
+ id: Bn,
551
+ children: y
552
+ }), Je === void 0 ? null : /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("button", {
553
+ ...In.controlProps,
554
+ "aria-controls": `${E}-help`,
555
+ "aria-label": D("help"),
549
556
  "data-part": "help",
550
557
  type: "button",
551
558
  children: /* @__PURE__ */ m(t, { children: /* @__PURE__ */ m(e, { name: "circle-info" }) })
552
559
  }), /* @__PURE__ */ m("div", {
553
- ...Fn.layerProps,
560
+ ...In.layerProps,
554
561
  "data-part": "help-content",
555
- id: `${D}-help`,
562
+ id: `${E}-help`,
556
563
  role: "note",
557
- children: Ge
558
- })] })] }), C === void 0 ? null : /* @__PURE__ */ m("span", {
564
+ children: Je
565
+ })] })] }), x === void 0 ? null : /* @__PURE__ */ m("span", {
559
566
  "data-part": "description",
560
- id: Bn,
561
- children: C
567
+ id: Vn,
568
+ children: x
562
569
  })] }),
563
- T === void 0 ? null : /* @__PURE__ */ m("div", {
570
+ C === void 0 ? null : /* @__PURE__ */ m("div", {
564
571
  "data-part": "actions",
565
- children: T
572
+ children: C
566
573
  }),
567
- k.toolbar === "none" ? null : /* @__PURE__ */ h("div", {
568
- "aria-hidden": !V || void 0,
569
- "aria-label": V ? O("toolbar") : void 0,
574
+ O.toolbar === "none" ? null : /* @__PURE__ */ h("div", {
575
+ "aria-hidden": !B || void 0,
576
+ "aria-label": B ? D("toolbar") : void 0,
570
577
  "data-part": "toolbar",
571
- "data-waiting": V ? void 0 : "",
572
- inert: !V,
573
- role: V ? "toolbar" : void 0,
578
+ "data-waiting": B ? void 0 : "",
579
+ inert: !B,
580
+ role: B ? "toolbar" : void 0,
574
581
  children: [
575
- L && pt && !ye(N) && L.shape === "cartesian" ? /* @__PURE__ */ m(qe, {
576
- label: O("resetZoom"),
582
+ I && w && !xe(M) && I.shape === "cartesian" ? /* @__PURE__ */ m(Xe, {
583
+ label: D("resetZoom"),
577
584
  onPress: (e, t) => {
578
- P(g, "clear", t), pn(_e(L, g, O)), W.current?.focus();
585
+ N(se, "clear", t), hn(ye(I, se, D)), U.current?.focus();
579
586
  },
580
587
  glyph: "rotate-ccw",
581
588
  part: "zoom-reset"
582
589
  }) : null,
583
- /* @__PURE__ */ m(qe, {
584
- label: O("tableView"),
585
- onPress: (e, t) => Xt(!F, e, t),
590
+ /* @__PURE__ */ m(Xe, {
591
+ label: D("tableView"),
592
+ onPress: (e, t) => Qt(!P, e, t),
586
593
  glyph: "file-spreadsheet",
587
594
  part: "view-toggle",
588
- pressed: F
595
+ pressed: P
589
596
  }),
590
- /* @__PURE__ */ m(qe, {
591
- label: O(I ? "exitFullscreen" : "fullscreen"),
592
- glyph: I ? "minimize" : "maximize",
593
- onPress: (e, t) => vn(e, t),
597
+ /* @__PURE__ */ m(Xe, {
598
+ label: D(F ? "exitFullscreen" : "fullscreen"),
599
+ glyph: F ? "minimize" : "maximize",
600
+ onPress: (e, t) => yn(e, t),
594
601
  part: "fullscreen-toggle"
595
602
  }),
596
603
  /* @__PURE__ */ m("button", {
597
604
  ...Q.controlProps,
598
605
  "aria-haspopup": "menu",
599
- "aria-label": O("more"),
606
+ "aria-label": D("more"),
600
607
  "data-part": "menu-trigger",
601
- title: O("more"),
608
+ title: D("more"),
602
609
  type: "button",
603
610
  children: /* @__PURE__ */ m(t, { children: /* @__PURE__ */ m(e, { name: "ellipsis" }) })
604
611
  }),
605
612
  /* @__PURE__ */ h("div", {
606
613
  ...Q.layerProps,
607
- "aria-label": O("more"),
614
+ "aria-label": D("more"),
608
615
  "data-part": "menu",
609
616
  role: "menu",
610
617
  children: [
611
- /* @__PURE__ */ m(w, {
618
+ /* @__PURE__ */ m(S, {
612
619
  action: "view",
613
- label: O("tableView"),
620
+ label: D("tableView"),
614
621
  onPress: (e, t) => {
615
- Q.close(), Xt(!F, e, t);
622
+ Q.close(), Qt(!P, e, t);
616
623
  }
617
624
  }),
618
- /* @__PURE__ */ m(w, {
625
+ /* @__PURE__ */ m(S, {
619
626
  action: "fullscreen",
620
- label: O(I ? "exitFullscreen" : "fullscreen"),
627
+ label: D(F ? "exitFullscreen" : "fullscreen"),
621
628
  onPress: (e, t) => {
622
- Q.close(), vn(e, t);
629
+ Q.close(), yn(e, t);
623
630
  }
624
631
  }),
625
- /* @__PURE__ */ m(w, {
632
+ /* @__PURE__ */ m(S, {
626
633
  action: "csv",
627
- label: O("downloadCsv"),
634
+ label: D("downloadCsv"),
628
635
  onPress: () => {
629
- Q.close(), L && In(`${Ln}.csv`, `data:text/csv;charset=utf-8,${encodeURIComponent(de(L, O))}`);
636
+ Q.close(), I && Ln(`${Rn}.csv`, `data:text/csv;charset=utf-8,${encodeURIComponent(pe(I, D))}`);
630
637
  }
631
638
  }),
632
- /* @__PURE__ */ m(w, {
639
+ /* @__PURE__ */ m(S, {
633
640
  action: "image",
634
- label: O("downloadImage"),
641
+ label: D("downloadImage"),
635
642
  onPress: () => {
636
643
  Q.close();
637
- let e = G.current?.toDataURL();
638
- e && In(`${Ln}.${e.startsWith("data:image/svg") ? "svg" : "png"}`, e);
644
+ let e = W.current?.toDataURL();
645
+ e && Ln(`${Rn}.${e.startsWith("data:image/svg") ? "svg" : "png"}`, e);
639
646
  }
640
647
  })
641
648
  ]
@@ -643,98 +650,98 @@ function Ge(i) {
643
650
  ]
644
651
  })
645
652
  ]
646
- }) : null, Gn = st === !1 ? null : /* @__PURE__ */ m("div", {
647
- "aria-label": z && (!L || L.shape === "pie") ? void 0 : O("legend"),
653
+ }) : null, Kn = ut === !1 ? null : /* @__PURE__ */ m("div", {
654
+ "aria-label": R && (!I || I.shape === "pie") ? void 0 : D("legend"),
648
655
  "data-part": "legend",
649
- onKeyDown: Pn,
650
- ref: ln,
651
- role: z && (!L || L.shape === "pie") ? void 0 : Tn ? "toolbar" : "list",
652
- children: z && (!L || L.shape === "pie") ? /* @__PURE__ */ h(p, { children: [
653
- /* @__PURE__ */ m(Je, {}),
654
- /* @__PURE__ */ m(Je, {}),
655
- /* @__PURE__ */ m(Je, {})
656
+ onKeyDown: Fn,
657
+ ref: dn,
658
+ role: R && (!I || I.shape === "pie") ? void 0 : En ? "toolbar" : "list",
659
+ children: R && (!I || I.shape === "pie") ? /* @__PURE__ */ h(p, { children: [
660
+ /* @__PURE__ */ m(Ze, {}),
661
+ /* @__PURE__ */ m(Ze, {}),
662
+ /* @__PURE__ */ m(Ze, {})
656
663
  ] }) : /* @__PURE__ */ h(p, { children: [
657
- X.map((e, t) => Nn(e, t, !1)),
664
+ X.map((e, t) => Pn(e, t, !1)),
658
665
  /* @__PURE__ */ m("button", {
659
- ...An.controlProps,
666
+ ...jn.controlProps,
660
667
  "aria-haspopup": "true",
661
- "aria-label": O("legendMore", { series: new Intl.ListFormat(y ?? Kt, { type: "unit" }).format(Y.map((e) => X[e]?.label ?? "")) }),
668
+ "aria-label": D("legendMore", { series: new Intl.ListFormat(v ?? Jt, { type: "unit" }).format(Y.map((e) => X[e]?.label ?? "")) }),
662
669
  "data-part": "legend-more",
663
670
  hidden: Y.length === 0,
664
- tabIndex: Mn === null ? 0 : -1,
671
+ tabIndex: Nn === null ? 0 : -1,
665
672
  type: "button",
666
- children: O("moreSeries", { count: Y.length })
673
+ children: D("moreSeries", { count: Y.length })
667
674
  }),
668
675
  /* @__PURE__ */ m("div", {
669
- ...An.layerProps,
670
- "aria-label": O("legend"),
676
+ ...jn.layerProps,
677
+ "aria-label": D("legend"),
671
678
  "data-part": "menu",
672
679
  role: "group",
673
680
  children: Y.map((e) => {
674
681
  let t = X[e];
675
- return t ? Nn(t, e, !0) : null;
682
+ return t ? Pn(t, e, !0) : null;
676
683
  })
677
684
  })
678
685
  ] })
679
- }), Kn = {
680
- ...Gt,
686
+ }), qn = {
687
+ ...qt,
681
688
  "data-ui": "chart",
682
689
  "data-part": "root",
683
- "data-size": k.size,
684
- "data-variant": k.variant,
685
- "data-palette": k.palette,
686
- "data-toolbar": k.toolbar,
687
- "data-legend-overflow": k.legendOverflow,
688
- ...z ? { "data-loading": "" } : {},
689
- ...I ? { "data-fullscreen": "" } : {},
690
- onKeyDown: bn,
690
+ "data-size": O.size,
691
+ "data-variant": O.variant,
692
+ "data-palette": O.palette,
693
+ "data-toolbar": O.toolbar,
694
+ "data-legend-overflow": O.legendOverflow,
695
+ ...R ? { "data-loading": "" } : {},
696
+ ...F ? { "data-fullscreen": "" } : {},
697
+ onKeyDown: xn,
691
698
  ref: (e) => {
692
- U.current = e, Ue(Wt, e);
699
+ H.current = e, Ke(Kt, e);
693
700
  },
694
701
  children: /* @__PURE__ */ h(p, { children: [
695
- Wn,
696
702
  Gn,
703
+ Kn,
697
704
  /* @__PURE__ */ h("div", {
698
- "aria-busy": z || void 0,
699
- "aria-describedby": C === void 0 ? Vn : `${Bn} ${Vn}`,
700
- "aria-label": b === void 0 ? Gt["aria-label"] ?? O("roledescription") : void 0,
701
- "aria-labelledby": b === void 0 ? void 0 : zn,
702
- "aria-roledescription": O("roledescription"),
705
+ "aria-busy": R || void 0,
706
+ "aria-describedby": x === void 0 ? Hn : `${Vn} ${Hn}`,
707
+ "aria-label": y === void 0 ? qt["aria-label"] ?? D("roledescription") : void 0,
708
+ "aria-labelledby": y === void 0 ? void 0 : Bn,
709
+ "aria-roledescription": D("roledescription"),
703
710
  "data-part": "plot",
704
- onBlur: (e) => j(null, "blur", e.nativeEvent),
705
- onFocus: _n,
706
- onKeyDown: gn,
707
- ref: W,
711
+ onBlur: (e) => A(null, "blur", e.nativeEvent),
712
+ onFocus: vn,
713
+ onKeyDown: _n,
714
+ ref: U,
708
715
  role: "group",
709
716
  tabIndex: 0,
710
717
  children: [
711
718
  /* @__PURE__ */ m("div", {
712
719
  "data-part": "crosshair",
713
- hidden: !K.crosshair,
714
- ...K.crosshair?.isBand ? { "data-band": "" } : {},
715
- "data-orientation": L?.orientation ?? "vertical",
716
- style: K.crosshair ? Ve({
717
- "--slotted-chart-x": K.crosshair.x,
718
- "--slotted-chart-y": K.crosshair.y,
719
- "--slotted-chart-band-start": K.crosshair.band.start,
720
- "--slotted-chart-band-size": K.crosshair.band.size,
721
- "--slotted-chart-frame-start": K.crosshair.frame.start,
722
- "--slotted-chart-frame-size": K.crosshair.frame.size
720
+ hidden: !G.crosshair,
721
+ ...G.crosshair?.isBand ? { "data-band": "" } : {},
722
+ "data-orientation": I?.orientation ?? "vertical",
723
+ style: G.crosshair ? We({
724
+ "--slotted-chart-x": G.crosshair.x,
725
+ "--slotted-chart-y": G.crosshair.y,
726
+ "--slotted-chart-band-start": G.crosshair.band.start,
727
+ "--slotted-chart-band-size": G.crosshair.band.size,
728
+ "--slotted-chart-frame-start": G.crosshair.frame.start,
729
+ "--slotted-chart-frame-size": G.crosshair.frame.size
723
730
  }) : void 0
724
731
  }),
725
732
  /* @__PURE__ */ m("div", {
726
733
  "aria-hidden": "true",
727
734
  "data-part": "canvas",
728
- hidden: !B,
729
- ref: sn
735
+ hidden: !z,
736
+ ref: ln
730
737
  }),
731
- K.markers.map((e) => /* @__PURE__ */ m("div", {
738
+ G.markers.map((e) => /* @__PURE__ */ m("div", {
732
739
  "aria-hidden": "true",
733
740
  "data-part": "marker",
734
- ...Be(e.color),
741
+ ...Ue(e.color),
735
742
  ...e.selected ? { "data-selected": "" } : {},
736
743
  ...e.current ? { "data-current": "" } : {},
737
- style: Ve({
744
+ style: We({
738
745
  "--slotted-chart-x": e.at.x,
739
746
  "--slotted-chart-y": e.at.y
740
747
  })
@@ -742,43 +749,43 @@ function Ge(i) {
742
749
  /* @__PURE__ */ m("div", {
743
750
  "aria-hidden": "true",
744
751
  "data-part": "tooltip",
745
- ref: cn,
746
- ...K.tooltip ? { "data-open": "" } : {},
747
- ...K.docked ? { "data-docked": "" } : {},
748
- children: K.tooltip && L ? It?.(K.tooltip, L) ?? /* @__PURE__ */ m(We, {
749
- context: K.tooltip,
750
- indicator: k.tooltip.indicator,
751
- model: L,
752
- totalLabel: O("total")
752
+ ref: un,
753
+ ...G.tooltip ? { "data-open": "" } : {},
754
+ ...G.docked ? { "data-docked": "" } : {},
755
+ children: G.tooltip && I ? Rt?.(G.tooltip, I) ?? /* @__PURE__ */ m(qe, {
756
+ context: G.tooltip,
757
+ indicator: O.tooltip.indicator,
758
+ model: I,
759
+ totalLabel: D("total")
753
760
  }) : null
754
761
  }),
755
- B && L?.shape === "pie" && (L.series[0]?.innerRadius ?? 0) > 0 ? /* @__PURE__ */ m("div", {
762
+ z && I?.shape === "pie" && (I.series[0]?.innerRadius ?? 0) > 0 ? /* @__PURE__ */ m("div", {
756
763
  "aria-hidden": "true",
757
764
  "data-part": "center",
758
- children: Rt?.(L) ?? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
765
+ children: Bt?.(I) ?? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("span", {
759
766
  "data-part": "center-value",
760
- children: L.series[0].format(L.total)
767
+ children: I.series[0].format(I.total)
761
768
  }), /* @__PURE__ */ m("span", {
762
769
  "data-part": "center-label",
763
- children: O("total")
770
+ children: D("total")
764
771
  })] })
765
772
  }) : null,
766
773
  $ ? /* @__PURE__ */ m("div", {
767
- "aria-labelledby": b === void 0 ? void 0 : zn,
774
+ "aria-labelledby": y === void 0 ? void 0 : Bn,
768
775
  "data-part": "table-region",
769
776
  role: "region",
770
777
  tabIndex: 0,
771
778
  children: /* @__PURE__ */ h("table", {
772
779
  "data-part": "table",
773
780
  children: [
774
- /* @__PURE__ */ m("caption", { children: $.omitted ? typeof b == "string" ? O("truncatedCaption", {
775
- title: b,
781
+ /* @__PURE__ */ m("caption", { children: $.omitted ? typeof y == "string" ? D("truncatedCaption", {
782
+ title: y,
776
783
  shown: $.rows.length,
777
784
  count: $.rows.length + $.omitted
778
- }) : O("truncated", {
785
+ }) : D("truncated", {
779
786
  shown: $.rows.length,
780
787
  count: $.rows.length + $.omitted
781
- }) : typeof b == "string" ? b : null }),
788
+ }) : typeof y == "string" ? y : null }),
782
789
  /* @__PURE__ */ m("thead", { children: /* @__PURE__ */ m("tr", { children: $.columns.map((e, t) => /* @__PURE__ */ s("th", {
783
790
  ...t > 0 ? { "data-numeric": "" } : {},
784
791
  key: e.key,
@@ -797,38 +804,38 @@ function Ge(i) {
797
804
  ]
798
805
  })
799
806
  }) : null,
800
- z ? /* @__PURE__ */ m(Ye, { kind: Hn }) : null,
801
- !z && R ? /* @__PURE__ */ m("div", {
807
+ R ? /* @__PURE__ */ m(Qe, { kind: Un }) : null,
808
+ !R && L ? /* @__PURE__ */ m("div", {
802
809
  "data-part": "error",
803
- children: Bt?.() ?? /* @__PURE__ */ m(Xe, {
804
- action: _t || an ? O("retry") : void 0,
805
- onAction: Un,
810
+ children: Ht?.() ?? /* @__PURE__ */ m($e, {
811
+ action: yt || sn ? D("retry") : void 0,
812
+ onAction: Wn,
806
813
  status: "error",
807
- text: O("error")
814
+ text: D("error")
808
815
  })
809
816
  }) : null,
810
- !z && !R && L?.empty ? /* @__PURE__ */ m("div", {
817
+ !R && !L && I?.empty ? /* @__PURE__ */ m("div", {
811
818
  "data-part": "empty",
812
- children: zt?.(L.empty) ?? /* @__PURE__ */ m(Xe, {
813
- action: L.empty === "all-hidden" ? O("showAll") : void 0,
814
- onAction: (e) => Jt(Ne, "pointer", e),
815
- status: L.empty === "all-hidden" ? "no-results" : "empty",
816
- text: L.empty === "all-hidden" ? O("allHidden") : O("noData")
819
+ children: Vt?.(I.empty) ?? /* @__PURE__ */ m($e, {
820
+ action: I.empty === "all-hidden" ? D("showAll") : void 0,
821
+ onAction: (e) => Xt(Fe, "pointer", e),
822
+ status: I.empty === "all-hidden" ? "no-results" : "empty",
823
+ text: I.empty === "all-hidden" ? D("allHidden") : D("noData")
817
824
  })
818
825
  }) : null,
819
826
  /* @__PURE__ */ m("p", {
820
827
  "data-part": "summary",
821
- id: Vn,
822
- children: Rn
828
+ id: Hn,
829
+ children: zn
823
830
  })
824
831
  ]
825
832
  })
826
833
  ] })
827
834
  };
828
- return Vt ? Vt(Kn) : /* @__PURE__ */ m("figure", { ...Kn });
835
+ return Ut ? Ut(qn) : /* @__PURE__ */ m("figure", { ...qn });
829
836
  }
830
- function Ke({ children: e, entry: t, focused: n, onActivate: r, onFocusEntry: i, onBlurEntry: a, ...o }) {
831
- let [s, c] = C();
837
+ function Ye({ children: e, entry: t, focused: n, onActivate: r, onFocusEntry: i, onBlurEntry: a, ...o }) {
838
+ let [s, c] = x();
832
839
  return /* @__PURE__ */ m("button", {
833
840
  ...o,
834
841
  "aria-pressed": t.visible,
@@ -845,8 +852,8 @@ function Ke({ children: e, entry: t, focused: n, onActivate: r, onFocusEntry: i,
845
852
  children: e
846
853
  });
847
854
  }
848
- function qe({ glyph: n, label: r, onPress: i, part: a, pressed: o }) {
849
- let [s, c] = C();
855
+ function Xe({ glyph: n, label: r, onPress: i, part: a, pressed: o }) {
856
+ let [s, c] = x();
850
857
  return /* @__PURE__ */ m("button", {
851
858
  "aria-label": r,
852
859
  ...o === void 0 ? {} : {
@@ -861,8 +868,8 @@ function qe({ glyph: n, label: r, onPress: i, part: a, pressed: o }) {
861
868
  children: /* @__PURE__ */ m(t, { children: /* @__PURE__ */ m(e, { name: n }) })
862
869
  });
863
870
  }
864
- function w({ action: e, label: t, onPress: n }) {
865
- let [r, i] = C();
871
+ function S({ action: e, label: t, onPress: n }) {
872
+ let [r, i] = x();
866
873
  return /* @__PURE__ */ m("button", {
867
874
  "data-action": e,
868
875
  "data-part": "menu-item",
@@ -873,7 +880,7 @@ function w({ action: e, label: t, onPress: n }) {
873
880
  children: t
874
881
  });
875
882
  }
876
- function T({ shape: e = "block" }) {
883
+ function C({ shape: e = "block" }) {
877
884
  return /* @__PURE__ */ m("span", {
878
885
  "aria-hidden": "true",
879
886
  "data-animation": "shimmer",
@@ -884,11 +891,11 @@ function T({ shape: e = "block" }) {
884
891
  "data-ui": "skeleton"
885
892
  });
886
893
  }
887
- function Je() {
888
- return /* @__PURE__ */ m(T, {});
894
+ function Ze() {
895
+ return /* @__PURE__ */ m(C, {});
889
896
  }
890
- function Ye({ kind: e }) {
891
- let t = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */ m(T, {}, t));
897
+ function Qe({ kind: e }) {
898
+ let t = (e) => Array.from({ length: e }, (e, t) => /* @__PURE__ */ m(C, {}, t));
892
899
  return /* @__PURE__ */ m("div", {
893
900
  "aria-hidden": "true",
894
901
  "data-kind": e,
@@ -898,7 +905,7 @@ function Ye({ kind: e }) {
898
905
  "data-loading": "",
899
906
  "data-part": "region",
900
907
  "data-ui": "skeleton",
901
- children: e === "pie" ? /* @__PURE__ */ m(T, { shape: "circle" }) : /* @__PURE__ */ h(p, { children: [
908
+ children: e === "pie" ? /* @__PURE__ */ m(C, { shape: "circle" }) : /* @__PURE__ */ h(p, { children: [
902
909
  /* @__PURE__ */ m("div", {
903
910
  "data-skeleton": "y",
904
911
  children: t(5)
@@ -915,7 +922,7 @@ function Ye({ kind: e }) {
915
922
  })
916
923
  });
917
924
  }
918
- function Xe({ action: e, onAction: t, status: n, text: r }) {
925
+ function $e({ action: e, onAction: t, status: n, text: r }) {
919
926
  return /* @__PURE__ */ h("section", {
920
927
  "data-align": "center",
921
928
  "data-live": "polite",
@@ -956,4 +963,4 @@ function Xe({ action: e, onAction: t, status: n, text: r }) {
956
963
  });
957
964
  }
958
965
  //#endregion
959
- export { je as a, Me as i, Ge as n, We as r, ke as t };
966
+ export { Ne as a, Pe as i, Je as n, qe as r, je as t };