@mintplayer/web-components 2.19.0 → 2.21.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 (1036) hide show
  1. package/a11y/index.mjs +1 -29
  2. package/accordion/index.mjs +190 -530
  3. package/calendar/index.mjs +1 -4
  4. package/card/index.mjs +59 -328
  5. package/card/src/mp-card.element.d.ts +5 -13
  6. package/carousel/index.mjs +392 -845
  7. package/charts/core/index.mjs +502 -32
  8. package/charts/hierarchy/index.mjs +812 -1197
  9. package/charts/sparkline/index.mjs +127 -161
  10. package/charts/trend/index.mjs +306 -411
  11. package/checkbox/index.mjs +1 -4
  12. package/chunks/a11y-C6aX-lsZ.mjs +532 -0
  13. package/chunks/ac-aJXc45zA.mjs +4 -0
  14. package/chunks/ad-BTMXfwNh.mjs +4 -0
  15. package/chunks/ae-BrzD6osX.mjs +4 -0
  16. package/chunks/af-3UZ2_zTj.mjs +4 -0
  17. package/chunks/ag-KRBsuK2a.mjs +4 -0
  18. package/chunks/ai-BswLJAYs.mjs +4 -0
  19. package/chunks/al-wkJnSVxF.mjs +4 -0
  20. package/chunks/all-flags.generated-DtfbMnSZ.mjs +249 -0
  21. package/chunks/am-CVqI42UW.mjs +4 -0
  22. package/chunks/ao-85WVAZW6.mjs +4 -0
  23. package/chunks/ar-DJGfKADQ.mjs +4 -0
  24. package/chunks/as-BA11KqFF.mjs +4 -0
  25. package/chunks/at-BWbwtZ8t.mjs +4 -0
  26. package/chunks/au-gcOCUxgy.mjs +4 -0
  27. package/chunks/aw-cquGJK0_.mjs +4 -0
  28. package/chunks/ax-CqFz-_7-.mjs +4 -0
  29. package/chunks/az-CtGxDo7C.mjs +4 -0
  30. package/chunks/ba-Du5giA_b.mjs +4 -0
  31. package/chunks/bb-Bv08A_ob.mjs +4 -0
  32. package/chunks/bd-DNB5oj3n.mjs +4 -0
  33. package/chunks/be-CRVNdrRc.mjs +4 -0
  34. package/chunks/bf-CkLDaLFq.mjs +4 -0
  35. package/chunks/bg-5J0EZyQA.mjs +4 -0
  36. package/chunks/bh-Dm3fVyBc.mjs +4 -0
  37. package/chunks/bi-BpldTGS9.mjs +4 -0
  38. package/chunks/bj-Bn2B1hkk.mjs +4 -0
  39. package/chunks/bl-Dozbp4JI.mjs +4 -0
  40. package/chunks/bm-DMwDEJDn.mjs +4 -0
  41. package/chunks/bn-38iFiYIW.mjs +4 -0
  42. package/chunks/bo-C7Z0bS7Y.mjs +4 -0
  43. package/chunks/bq-Bp_dK3bp.mjs +4 -0
  44. package/chunks/br-C1y3qYTo.mjs +4 -0
  45. package/chunks/bs-DvapNTm6.mjs +4 -0
  46. package/chunks/bt-4BBK2CzL.mjs +4 -0
  47. package/chunks/bw-gFoFnfsO.mjs +4 -0
  48. package/chunks/by-BcXeEIqn.mjs +4 -0
  49. package/chunks/bz-DiNvPmet.mjs +4 -0
  50. package/chunks/ca-B6_-P3Ki.mjs +4 -0
  51. package/chunks/calendar-BufRj_ob.mjs +270 -0
  52. package/chunks/cc-1.generated-Bz6a4Z5J.mjs +575 -0
  53. package/chunks/cc-20.generated-B2Zbp_CG.mjs +56 -0
  54. package/chunks/cc-211.generated-ChWU4ZnK.mjs +27 -0
  55. package/chunks/cc-212.generated-rW7bueR8.mjs +77 -0
  56. package/chunks/cc-213.generated-Dk100iVd.mjs +52 -0
  57. package/chunks/cc-216.generated-Da9XXIxn.mjs +37 -0
  58. package/chunks/cc-218.generated-B9dPA_jz.mjs +27 -0
  59. package/chunks/cc-220.generated-BD583LXg.mjs +26 -0
  60. package/chunks/cc-221.generated-FnrRCGhQ.mjs +41 -0
  61. package/chunks/cc-222.generated-RIcsN1By.mjs +30 -0
  62. package/chunks/cc-223.generated-BJYOhmxL.mjs +30 -0
  63. package/chunks/cc-224.generated-ZVRf4s4P.mjs +40 -0
  64. package/chunks/cc-225.generated-B37F4h_L.mjs +30 -0
  65. package/chunks/cc-226.generated-DX6w8SIQ.mjs +26 -0
  66. package/chunks/cc-227.generated-DWvIJCqw.mjs +35 -0
  67. package/chunks/cc-228.generated-CYnF-A2j.mjs +26 -0
  68. package/chunks/cc-229.generated-BHENEfHM.mjs +40 -0
  69. package/chunks/cc-230.generated-CCkgyUCO.mjs +53 -0
  70. package/chunks/cc-231.generated-Cy_W19Ec.mjs +50 -0
  71. package/chunks/cc-232.generated-bZc5ux9j.mjs +27 -0
  72. package/chunks/cc-233.generated-DtiURqLW.mjs +36 -0
  73. package/chunks/cc-234.generated-ISth71Yl.mjs +67 -0
  74. package/chunks/cc-235.generated-PAizMnHl.mjs +27 -0
  75. package/chunks/cc-236.generated-ZPS5oQTo.mjs +31 -0
  76. package/chunks/cc-237.generated-fOpKOXN1.mjs +34 -0
  77. package/chunks/cc-238.generated-DLsZAArj.mjs +36 -0
  78. package/chunks/cc-239.generated-Dq7UEEQw.mjs +26 -0
  79. package/chunks/cc-240.generated-B5rtjDFe.mjs +35 -0
  80. package/chunks/cc-241.generated-C2tPOfsp.mjs +40 -0
  81. package/chunks/cc-242.generated-12ELhWHE.mjs +35 -0
  82. package/chunks/cc-243.generated-Co_QscFq.mjs +64 -0
  83. package/chunks/cc-244.generated-CHVaQJzk.mjs +26 -0
  84. package/chunks/cc-245.generated-Dlfots5d.mjs +40 -0
  85. package/chunks/cc-246.generated-ml5FnCdW.mjs +26 -0
  86. package/chunks/cc-247.generated-D8iUb2b4.mjs +30 -0
  87. package/chunks/cc-248.generated-ByNbG_tW.mjs +37 -0
  88. package/chunks/cc-249.generated-B1uFXVYg.mjs +27 -0
  89. package/chunks/cc-250.generated-Db4-CYfI.mjs +44 -0
  90. package/chunks/cc-251.generated-Dk9Nsbz4.mjs +27 -0
  91. package/chunks/cc-252.generated-DzLVy7Wj.mjs +62 -0
  92. package/chunks/cc-253.generated-BAAxb4Dd.mjs +26 -0
  93. package/chunks/cc-254.generated-CQb3622R.mjs +55 -0
  94. package/chunks/cc-255.generated-CkU7A9vn.mjs +57 -0
  95. package/chunks/cc-256.generated-CPuR1ls2.mjs +46 -0
  96. package/chunks/cc-257.generated-Bop3IKkH.mjs +26 -0
  97. package/chunks/cc-258.generated-CrhWzLYO.mjs +34 -0
  98. package/chunks/cc-260.generated-CM31-F_r.mjs +42 -0
  99. package/chunks/cc-261.generated-Cc1Yk2ga.mjs +37 -0
  100. package/chunks/cc-262.generated-iNq4Bsyg.mjs +64 -0
  101. package/chunks/cc-263.generated-BNSZQW1U.mjs +100 -0
  102. package/chunks/cc-264.generated-BYq3HF_4.mjs +57 -0
  103. package/chunks/cc-265.generated-55Al2n2g.mjs +32 -0
  104. package/chunks/cc-266.generated-CC24vRZU.mjs +30 -0
  105. package/chunks/cc-267.generated-Cy1cO0r8.mjs +62 -0
  106. package/chunks/cc-268.generated-CuFPqOA0.mjs +40 -0
  107. package/chunks/cc-269.generated-CCOchMHW.mjs +31 -0
  108. package/chunks/cc-27.generated-CgwGi0oo.mjs +77 -0
  109. package/chunks/cc-290.generated-WRbX8Uzp.mjs +48 -0
  110. package/chunks/cc-291.generated-CHqtf344.mjs +27 -0
  111. package/chunks/cc-297.generated-BNaG__hC.mjs +36 -0
  112. package/chunks/cc-298.generated-BXnC-JHy.mjs +36 -0
  113. package/chunks/cc-299.generated-B9EtLFYo.mjs +36 -0
  114. package/chunks/cc-30.generated-JiXqSdPm.mjs +58 -0
  115. package/chunks/cc-31.generated-T-PhKf6W.mjs +91 -0
  116. package/chunks/cc-32.generated-3jhsIH05.mjs +58 -0
  117. package/chunks/cc-33.generated-CKpraBu-.mjs +43 -0
  118. package/chunks/cc-34.generated-4ZOoUv3E.mjs +41 -0
  119. package/chunks/cc-350.generated-BZeZIKv3.mjs +26 -0
  120. package/chunks/cc-351.generated-Ca4DVFZ8.mjs +41 -0
  121. package/chunks/cc-352.generated-C5JanZQk.mjs +96 -0
  122. package/chunks/cc-353.generated-BgLwqLra.mjs +98 -0
  123. package/chunks/cc-354.generated-BgTnQRlC.mjs +41 -0
  124. package/chunks/cc-355.generated-DGYepZoL.mjs +69 -0
  125. package/chunks/cc-356.generated-BsVo-WVa.mjs +36 -0
  126. package/chunks/cc-357.generated-b5F9kBHS.mjs +37 -0
  127. package/chunks/cc-358.generated-sIEQmG3a.mjs +136 -0
  128. package/chunks/cc-359.generated-Djbt0V64.mjs +92 -0
  129. package/chunks/cc-36.generated-GYQWm_pU.mjs +51 -0
  130. package/chunks/cc-370.generated-CRvXymMq.mjs +62 -0
  131. package/chunks/cc-371.generated-BR2fz2JU.mjs +37 -0
  132. package/chunks/cc-372.generated-DNvOnI-D.mjs +53 -0
  133. package/chunks/cc-373.generated-CIFhOyHu.mjs +52 -0
  134. package/chunks/cc-374.generated-C3JO10F2.mjs +58 -0
  135. package/chunks/cc-375.generated-CdSXpaA5.mjs +77 -0
  136. package/chunks/cc-376.generated-JuZXGLxH.mjs +47 -0
  137. package/chunks/cc-377.generated-D6OxfwEg.mjs +44 -0
  138. package/chunks/cc-378.generated-1P6hL48M.mjs +40 -0
  139. package/chunks/cc-380.generated-DgzzIFUj.mjs +58 -0
  140. package/chunks/cc-381.generated-D_ItFJFw.mjs +65 -0
  141. package/chunks/cc-382.generated-DuYOeAO_.mjs +37 -0
  142. package/chunks/cc-383.generated-R6R6iExY.mjs +58 -0
  143. package/chunks/cc-385.generated-CsDeMCh1.mjs +77 -0
  144. package/chunks/cc-386.generated-CprplXRX.mjs +67 -0
  145. package/chunks/cc-387.generated-7j6TIOUR.mjs +52 -0
  146. package/chunks/cc-389.generated-BoKyJU1O.mjs +52 -0
  147. package/chunks/cc-39.generated-CD2WXEy7.mjs +144 -0
  148. package/chunks/cc-40.generated-BXVz6ZEf.mjs +60 -0
  149. package/chunks/cc-41.generated-Blq73F9R.mjs +52 -0
  150. package/chunks/cc-420.generated-CGBM0u2Z.mjs +59 -0
  151. package/chunks/cc-421.generated-TZXTbujK.mjs +68 -0
  152. package/chunks/cc-423.generated-0jWk7aQw.mjs +51 -0
  153. package/chunks/cc-43.generated-CWC77-QL.mjs +124 -0
  154. package/chunks/cc-44.generated-BjNEEm72.mjs +185 -0
  155. package/chunks/cc-45.generated-D2fAEViK.mjs +31 -0
  156. package/chunks/cc-46.generated-Cc7ziKiQ.mjs +151 -0
  157. package/chunks/cc-47.generated-BfsXOmTn.mjs +68 -0
  158. package/chunks/cc-48.generated-qLLhGlDM.mjs +80 -0
  159. package/chunks/cc-49.generated-V5s3zaiK.mjs +207 -0
  160. package/chunks/cc-500.generated-BthGq2Lz.mjs +22 -0
  161. package/chunks/cc-501.generated-D3OEBYfs.mjs +34 -0
  162. package/chunks/cc-502.generated-DuGMlanj.mjs +35 -0
  163. package/chunks/cc-503.generated-D6WQdJRe.mjs +47 -0
  164. package/chunks/cc-504.generated-CnaVgqYu.mjs +30 -0
  165. package/chunks/cc-505.generated-BymEBjCD.mjs +30 -0
  166. package/chunks/cc-506.generated-DECPXw0C.mjs +40 -0
  167. package/chunks/cc-507.generated-B3GcK3L_.mjs +48 -0
  168. package/chunks/cc-508.generated-Dyuwoas9.mjs +45 -0
  169. package/chunks/cc-509.generated-CFrvVAgw.mjs +36 -0
  170. package/chunks/cc-51.generated-Chb_sPYg.mjs +59 -0
  171. package/chunks/cc-52.generated-ByiHdoYn.mjs +42 -0
  172. package/chunks/cc-53.generated-DJSsiaD5.mjs +63 -0
  173. package/chunks/cc-54.generated-CHWQhBUJ.mjs +99 -0
  174. package/chunks/cc-55.generated-B1A8n_Eu.mjs +62 -0
  175. package/chunks/cc-56.generated-BIagT3im.mjs +86 -0
  176. package/chunks/cc-57.generated-BI-iKXi5.mjs +56 -0
  177. package/chunks/cc-58.generated-ChHB0yFM.mjs +35 -0
  178. package/chunks/cc-590.generated-eh5bgg8N.mjs +96 -0
  179. package/chunks/cc-591.generated-DtljIXWS.mjs +48 -0
  180. package/chunks/cc-592.generated-BFJXRJtp.mjs +36 -0
  181. package/chunks/cc-593.generated-BnzrDC9X.mjs +57 -0
  182. package/chunks/cc-594.generated-GeVqoxTf.mjs +42 -0
  183. package/chunks/cc-595.generated-Cb147_Es.mjs +99 -0
  184. package/chunks/cc-596.generated-Awrujeyi.mjs +42 -0
  185. package/chunks/cc-597.generated-x82tPU7m.mjs +48 -0
  186. package/chunks/cc-598.generated-C0CFFA9e.mjs +90 -0
  187. package/chunks/cc-599.generated-CBNiFVLG.mjs +57 -0
  188. package/chunks/cc-60.generated-BsEWXQGR.mjs +72 -0
  189. package/chunks/cc-61.generated-D1GBs6cI.mjs +165 -0
  190. package/chunks/cc-62.generated-wMxDe6Yk.mjs +121 -0
  191. package/chunks/cc-63.generated-CdGxow0i.mjs +90 -0
  192. package/chunks/cc-64.generated-RnYaXyOf.mjs +88 -0
  193. package/chunks/cc-65.generated-DLu3ZfUr.mjs +57 -0
  194. package/chunks/cc-66.generated-Bak_QXSf.mjs +55 -0
  195. package/chunks/cc-670.generated-C99GtcUk.mjs +36 -0
  196. package/chunks/cc-672.generated-CSfxhA5g.mjs +30 -0
  197. package/chunks/cc-673.generated-CBepp8Kp.mjs +36 -0
  198. package/chunks/cc-674.generated-CUruGGLX.mjs +26 -0
  199. package/chunks/cc-675.generated-CJAYoKiM.mjs +41 -0
  200. package/chunks/cc-676.generated-D0aVoKBX.mjs +48 -0
  201. package/chunks/cc-677.generated-CboriHtH.mjs +36 -0
  202. package/chunks/cc-678.generated-tV4dzsm1.mjs +36 -0
  203. package/chunks/cc-679.generated-r1SqDRTw.mjs +35 -0
  204. package/chunks/cc-680.generated-CUJSNlon.mjs +26 -0
  205. package/chunks/cc-681.generated-CqZqTSzv.mjs +40 -0
  206. package/chunks/cc-682.generated-DsTDPJJe.mjs +26 -0
  207. package/chunks/cc-683.generated-C46F0xza.mjs +26 -0
  208. package/chunks/cc-685.generated-3mzM0WBI.mjs +47 -0
  209. package/chunks/cc-686.generated-B7jAfSaz.mjs +32 -0
  210. package/chunks/cc-687.generated-DUkxCl-t.mjs +31 -0
  211. package/chunks/cc-688.generated-Bwg6wtz6.mjs +42 -0
  212. package/chunks/cc-689.generated-DIjPyQbi.mjs +52 -0
  213. package/chunks/cc-690.generated-BkBOgCj0.mjs +27 -0
  214. package/chunks/cc-691.generated-CRgqR_eS.mjs +26 -0
  215. package/chunks/cc-692.generated-xoIqpcZG.mjs +36 -0
  216. package/chunks/cc-7.generated-CVaWdxzG.mjs +99 -0
  217. package/chunks/cc-81.generated-BsK5UKLx.mjs +100 -0
  218. package/chunks/cc-82.generated-BcgfVP49.mjs +96 -0
  219. package/chunks/cc-84.generated-C_NDe2op.mjs +81 -0
  220. package/chunks/cc-850.generated-5uPEB20Q.mjs +41 -0
  221. package/chunks/cc-852.generated-Cmcj41zv.mjs +66 -0
  222. package/chunks/cc-853.generated-5Q5aYzYP.mjs +34 -0
  223. package/chunks/cc-855.generated-CyoP_AvI.mjs +40 -0
  224. package/chunks/cc-856.generated-UaGUxAVX.mjs +45 -0
  225. package/chunks/cc-86.generated-C76vQ-PG.mjs +131 -0
  226. package/chunks/cc-880.generated-DTQZvOwQ.mjs +63 -0
  227. package/chunks/cc-886.generated-BlEIkmSb.mjs +89 -0
  228. package/chunks/cc-90.generated-B6QJof50.mjs +70 -0
  229. package/chunks/cc-91.generated-BFtdPEFf.mjs +120 -0
  230. package/chunks/cc-92.generated-Dmc8JLXg.mjs +84 -0
  231. package/chunks/cc-93.generated-zx8cBy1Z.mjs +27 -0
  232. package/chunks/cc-94.generated-Blu9IgSY.mjs +40 -0
  233. package/chunks/cc-95.generated-DCr59wbp.mjs +103 -0
  234. package/chunks/cc-960.generated-D1_nf00O.mjs +39 -0
  235. package/chunks/cc-961.generated-DxRflmbQ.mjs +42 -0
  236. package/chunks/cc-962.generated-DxZQb06J.mjs +58 -0
  237. package/chunks/cc-963.generated-uiT34jBy.mjs +34 -0
  238. package/chunks/cc-964.generated-BOKCnQHJ.mjs +45 -0
  239. package/chunks/cc-965.generated-CxNoEz0A.mjs +34 -0
  240. package/chunks/cc-966.generated-DhI8Ntyw.mjs +56 -0
  241. package/chunks/cc-967.generated-ContxwI-.mjs +36 -0
  242. package/chunks/cc-968.generated-v531jzFw.mjs +47 -0
  243. package/chunks/cc-970.generated-ChNVoJlm.mjs +55 -0
  244. package/chunks/cc-971.generated-xlS_839v.mjs +65 -0
  245. package/chunks/cc-972.generated-C5zT9loz.mjs +87 -0
  246. package/chunks/cc-973.generated-GoMZ3x5A.mjs +37 -0
  247. package/chunks/cc-974.generated-CHoLGfhR.mjs +48 -0
  248. package/chunks/cc-975.generated-BILSPn9k.mjs +30 -0
  249. package/chunks/cc-976.generated-4w3Zjm18.mjs +66 -0
  250. package/chunks/cc-977.generated-QcknaTKZ.mjs +48 -0
  251. package/chunks/cc-98.generated-C8ajgwoF.mjs +65 -0
  252. package/chunks/cc-992.generated-DUtoyFJd.mjs +44 -0
  253. package/chunks/cc-993.generated-DA_HUZYq.mjs +42 -0
  254. package/chunks/cc-994.generated-Bs9TDYzb.mjs +50 -0
  255. package/chunks/cc-995.generated-DeCplFKG.mjs +56 -0
  256. package/chunks/cc-996.generated-DIoF8HI4.mjs +45 -0
  257. package/chunks/cc-998.generated-mB6cuCsE.mjs +26 -0
  258. package/chunks/cc-C0VrlA3_.mjs +4 -0
  259. package/chunks/cd-TfcK0f07.mjs +4 -0
  260. package/chunks/cf-Cr0ikDYa.mjs +4 -0
  261. package/chunks/cg-BeLZ5g5O.mjs +4 -0
  262. package/chunks/ch-cyq7xzGy.mjs +4 -0
  263. package/chunks/checkbox-EnxkCGiC.mjs +271 -0
  264. package/chunks/ci-D2pSb2Ih.mjs +4 -0
  265. package/chunks/ck-htfFHGea.mjs +4 -0
  266. package/chunks/cl-CoYa3Pmk.mjs +4 -0
  267. package/chunks/cm-D6uug-DA.mjs +4 -0
  268. package/chunks/cn-D48FvmT7.mjs +4 -0
  269. package/chunks/co-Dww2Azv_.mjs +4 -0
  270. package/chunks/color-mode-warning-BWDrpfmR.mjs +11 -0
  271. package/chunks/cr-T0UM2nAQ.mjs +4 -0
  272. package/chunks/cu-CvSN3Q4W.mjs +4 -0
  273. package/chunks/cv-CselBvqy.mjs +4 -0
  274. package/chunks/cw-DBlAOQBG.mjs +4 -0
  275. package/chunks/cx-CT3aGae9.mjs +4 -0
  276. package/chunks/cy-BgOT9gkN.mjs +4 -0
  277. package/chunks/cz-pyOSY6aP.mjs +4 -0
  278. package/chunks/datatable-x_OgDL1V.mjs +1788 -0
  279. package/chunks/datetime-picker-BtroFVZZ.mjs +373 -0
  280. package/chunks/de-KGaNXoZN.mjs +4 -0
  281. package/chunks/decorate-_3lQte5d.mjs +9 -0
  282. package/chunks/dj-erTpydIV.mjs +4 -0
  283. package/chunks/dk-D1JuLNfO.mjs +4 -0
  284. package/chunks/dm-DCecBFF5.mjs +4 -0
  285. package/chunks/do-DSLfzWkU.mjs +4 -0
  286. package/chunks/dz-Ce9xahTz.mjs +4 -0
  287. package/chunks/ec-Bi76lWx3.mjs +4 -0
  288. package/chunks/ee-bSjXh051.mjs +4 -0
  289. package/chunks/eg-r6ELPNF6.mjs +4 -0
  290. package/chunks/eh-B9fkMRyx.mjs +4 -0
  291. package/chunks/er-udHBJByJ.mjs +4 -0
  292. package/chunks/es-Bu9WWdeR.mjs +4 -0
  293. package/chunks/et-CXZPC0sf.mjs +4 -0
  294. package/chunks/fi-dNG3mnm4.mjs +4 -0
  295. package/chunks/fj-DRC_-qUY.mjs +4 -0
  296. package/chunks/fk-J-PwBKbI.mjs +4 -0
  297. package/chunks/flags-BklZdqf-.mjs +268 -0
  298. package/chunks/fm-DdlXjhk_.mjs +4 -0
  299. package/chunks/fo-BF6Oan5b.mjs +4 -0
  300. package/chunks/form-check.styles-WIzQ8Lr8.mjs +5 -0
  301. package/chunks/form-control.styles-xkboF3PM.mjs +5 -0
  302. package/chunks/fr-m5fDKirC.mjs +4 -0
  303. package/chunks/ga-B4EBbkUA.mjs +4 -0
  304. package/chunks/gb-7vN41y_W.mjs +4 -0
  305. package/chunks/gd-oYxJTsCo.mjs +4 -0
  306. package/chunks/ge-DjFzwM58.mjs +4 -0
  307. package/chunks/gf-QpbaNTLf.mjs +4 -0
  308. package/chunks/gg-DD5U9436.mjs +4 -0
  309. package/chunks/gh-DwVF19eS.mjs +4 -0
  310. package/chunks/gi-UFWuuzET.mjs +4 -0
  311. package/chunks/gl-D6QboaPF.mjs +4 -0
  312. package/chunks/gm-DBMaPUVF.mjs +4 -0
  313. package/chunks/gn-CgBEf8H_.mjs +4 -0
  314. package/chunks/gp-CzgFkpC6.mjs +4 -0
  315. package/chunks/gq-Bnsg80y2.mjs +4 -0
  316. package/chunks/gr-BZRM9aE0.mjs +4 -0
  317. package/chunks/gt-BUUDyd82.mjs +4 -0
  318. package/chunks/gu-TRJAAUWQ.mjs +4 -0
  319. package/chunks/gw-D9LrzBrV.mjs +4 -0
  320. package/chunks/gy-DH746QP0.mjs +4 -0
  321. package/chunks/hk-JPHzGR1f.mjs +4 -0
  322. package/chunks/hn-tQE5mLlb.mjs +4 -0
  323. package/chunks/hr-BdLlK8MT.mjs +4 -0
  324. package/chunks/ht-efkMBTm5.mjs +4 -0
  325. package/chunks/hu-BQqGjm3B.mjs +4 -0
  326. package/chunks/id-DaJrUhdH.mjs +4 -0
  327. package/chunks/ie-BNbUpzRG.mjs +4 -0
  328. package/chunks/il-Cg79KHAv.mjs +4 -0
  329. package/chunks/im-Djx9n3WT.mjs +4 -0
  330. package/chunks/in-B43LtLH-.mjs +4 -0
  331. package/chunks/input-group-CjmHKUSw.mjs +48 -0
  332. package/chunks/invalid-feedback.styles-BAfKyqM0.mjs +5 -0
  333. package/chunks/io-BnYRzBj3.mjs +4 -0
  334. package/chunks/iq-DUn1QbRL.mjs +4 -0
  335. package/chunks/ir-DlyfLEkf.mjs +4 -0
  336. package/chunks/is-DQ_bn71q.mjs +4 -0
  337. package/chunks/it-BfPMagQk.mjs +4 -0
  338. package/chunks/je-BLm9fJmW.mjs +4 -0
  339. package/chunks/jm-CxLVl0Ry.mjs +4 -0
  340. package/chunks/jo-Cfupva0T.mjs +4 -0
  341. package/chunks/jp-iR_5eVnk.mjs +4 -0
  342. package/chunks/ke-QUXFhgYU.mjs +4 -0
  343. package/chunks/kg-C0ssUmgN.mjs +4 -0
  344. package/chunks/kh-9A3QNvDB.mjs +4 -0
  345. package/chunks/ki-bFdICXHj.mjs +4 -0
  346. package/chunks/km-CYuiTVlZ.mjs +4 -0
  347. package/chunks/kn-fqURi7WO.mjs +4 -0
  348. package/chunks/kp-B9J1sdkG.mjs +4 -0
  349. package/chunks/kr-hrrgo3DJ.mjs +4 -0
  350. package/chunks/kw-CsK5t1uI.mjs +4 -0
  351. package/chunks/ky-CIIoXV1x.mjs +4 -0
  352. package/chunks/kz-Q6lWH-Lp.mjs +4 -0
  353. package/chunks/la-BqrIQzV5.mjs +4 -0
  354. package/chunks/lb-f1wH5q4z.mjs +4 -0
  355. package/chunks/lc-DiPjKtKA.mjs +4 -0
  356. package/chunks/li-CC9A-Eoo.mjs +4 -0
  357. package/chunks/lk-DBBVyq9z.mjs +4 -0
  358. package/chunks/lr-CYmj0qzD.mjs +4 -0
  359. package/chunks/ls-5eFpOHA5.mjs +4 -0
  360. package/chunks/lt-DuXsTfKz.mjs +4 -0
  361. package/chunks/lu-l81BU1X-.mjs +4 -0
  362. package/chunks/lv-pBWGmb6y.mjs +4 -0
  363. package/chunks/ly-rQGukqgk.mjs +4 -0
  364. package/chunks/ma-D3s8fhJY.mjs +4 -0
  365. package/chunks/mc-C2UgSKD0.mjs +4 -0
  366. package/chunks/md-Bn-lDZyQ.mjs +4 -0
  367. package/chunks/me-CTM23YkQ.mjs +4 -0
  368. package/chunks/metadata-loaders.generated-BOHjz7Pm.mjs +250 -0
  369. package/chunks/mf-Dw6W2U1G.mjs +4 -0
  370. package/chunks/mg-BvSTuxdV.mjs +4 -0
  371. package/chunks/mh-DlNbre6t.mjs +4 -0
  372. package/chunks/mk-CMQgOxwU.mjs +4 -0
  373. package/chunks/ml-Dr5P0Yo_.mjs +4 -0
  374. package/chunks/mm-C6vWhwqu.mjs +4 -0
  375. package/chunks/mn-D3Xmr6k_.mjs +4 -0
  376. package/chunks/mo-BieTAs8C.mjs +4 -0
  377. package/chunks/mp-CkOXp1Ru.mjs +4 -0
  378. package/chunks/mq-Cjhq-UJo.mjs +4 -0
  379. package/chunks/mr-Dnfbj6zJ.mjs +4 -0
  380. package/chunks/ms-CTQctbcy.mjs +4 -0
  381. package/chunks/mt-CU4E0kx5.mjs +4 -0
  382. package/chunks/mu-D-VsOyS8.mjs +4 -0
  383. package/chunks/mv-BLAL7NFA.mjs +4 -0
  384. package/chunks/mw-v7uw9vtP.mjs +4 -0
  385. package/chunks/mx-eDyMiM1l.mjs +4 -0
  386. package/chunks/my-DZwL-5pY.mjs +4 -0
  387. package/chunks/mz-CUtVhMFS.mjs +4 -0
  388. package/chunks/na-BY29xZvs.mjs +4 -0
  389. package/chunks/nc-DeEXGMmA.mjs +4 -0
  390. package/chunks/ne-CLxU921A.mjs +4 -0
  391. package/chunks/nf-D_JOkQkl.mjs +4 -0
  392. package/chunks/ng-CR5xUr0F.mjs +4 -0
  393. package/chunks/ni-C15mTV4Y.mjs +4 -0
  394. package/chunks/nl-CLg7nWke.mjs +4 -0
  395. package/chunks/no-D56_k2KF.mjs +4 -0
  396. package/chunks/np-BAP7jy8o.mjs +4 -0
  397. package/chunks/nr-VKzWyaNU.mjs +4 -0
  398. package/chunks/nu-D3XZHNZP.mjs +4 -0
  399. package/chunks/nz-BdvILa2x.mjs +4 -0
  400. package/chunks/om-BuPCo8qp.mjs +4 -0
  401. package/chunks/overlay-kT0nfzL-.mjs +275 -0
  402. package/chunks/pa-CyYPeQbr.mjs +4 -0
  403. package/chunks/pagination-Bcz1TwlS.mjs +184 -0
  404. package/chunks/pe-B-P9yq9y.mjs +4 -0
  405. package/chunks/pf-BEygN2Xk.mjs +4 -0
  406. package/chunks/pg-BbFUBN-z.mjs +4 -0
  407. package/chunks/ph-BwijTsiw.mjs +4 -0
  408. package/chunks/pk-DyS4XqKp.mjs +4 -0
  409. package/chunks/pl-Bs4VwV81.mjs +4 -0
  410. package/chunks/pm-DLEa5i47.mjs +4 -0
  411. package/chunks/pr-BWsOEP9w.mjs +4 -0
  412. package/chunks/ps-B_qECKr4.mjs +4 -0
  413. package/chunks/pt-C2_djybD.mjs +4 -0
  414. package/chunks/pw-D_NY3JPr.mjs +4 -0
  415. package/chunks/py-CndItMw9.mjs +4 -0
  416. package/chunks/qa-CD1uNFb9.mjs +4 -0
  417. package/chunks/radio-BO6g4B91.mjs +260 -0
  418. package/chunks/re-BW_tVnq3.mjs +4 -0
  419. package/chunks/ro-1-zfxYpt.mjs +4 -0
  420. package/chunks/rs-BoYWG9vg.mjs +4 -0
  421. package/chunks/ru-CYVEtP_y.mjs +4 -0
  422. package/chunks/rw-Bg3jblyd.mjs +4 -0
  423. package/chunks/sa-B69Q0suF.mjs +4 -0
  424. package/chunks/sb-BsEiWQfb.mjs +4 -0
  425. package/chunks/sc-DbArtz_B.mjs +4 -0
  426. package/chunks/scheduler-core-CoFpfrl5.mjs +867 -0
  427. package/chunks/sd-BBHgjmhj.mjs +4 -0
  428. package/chunks/se-BIv2B636.mjs +4 -0
  429. package/chunks/select-R-96AksV.mjs +295 -0
  430. package/chunks/sg-C5hxvYqk.mjs +4 -0
  431. package/chunks/sh-HM3W4hDH.mjs +4 -0
  432. package/chunks/si-DP1aBcfC.mjs +4 -0
  433. package/chunks/sj-BW7y-uq5.mjs +4 -0
  434. package/chunks/sk-i105Khwu.mjs +4 -0
  435. package/chunks/sl-Di2GF_yv.mjs +4 -0
  436. package/chunks/sm-CBa0TK4H.mjs +4 -0
  437. package/chunks/sn-DUHpXra8.mjs +4 -0
  438. package/chunks/so-BNbpnsu-.mjs +4 -0
  439. package/chunks/splitter-ByLyrd5H.mjs +436 -0
  440. package/chunks/sr-ao-a5_9y.mjs +4 -0
  441. package/chunks/ss-DcnzauNo.mjs +4 -0
  442. package/chunks/st-UM_GVNxZ.mjs +4 -0
  443. package/chunks/sv-DGf1zbvG.mjs +4 -0
  444. package/chunks/swiper-core-kwEab-Zw.mjs +145 -0
  445. package/chunks/sx-BswzV8CI.mjs +4 -0
  446. package/chunks/sy-9m1S8Kc1.mjs +4 -0
  447. package/chunks/sz-D85TIkXG.mjs +4 -0
  448. package/chunks/tab-control-CW53taeE.mjs +202 -0
  449. package/chunks/tc-C7PcDjFx.mjs +4 -0
  450. package/chunks/td-BPQVoqMT.mjs +4 -0
  451. package/chunks/tg-BrHdehFU.mjs +4 -0
  452. package/chunks/th-Dy_pGi_n.mjs +4 -0
  453. package/chunks/timeline-core-B9Lu8Qq4.mjs +15 -0
  454. package/chunks/timepicker-LaSAPnxw.mjs +326 -0
  455. package/chunks/tj-DMpkq8L_.mjs +4 -0
  456. package/chunks/tk-BnQPtoCZ.mjs +4 -0
  457. package/chunks/tl-ogyf_25A.mjs +4 -0
  458. package/chunks/tm-ftTOaKfg.mjs +4 -0
  459. package/chunks/tn-DH-O9SRy.mjs +4 -0
  460. package/chunks/to-CDqWnE6l.mjs +4 -0
  461. package/chunks/toggle-button-H1Ty5nnF.mjs +196 -0
  462. package/chunks/tr-CRzwaC_7.mjs +4 -0
  463. package/chunks/treeview-BuznGbcj.mjs +302 -0
  464. package/chunks/tt-CddKczAn.mjs +4 -0
  465. package/chunks/tv-b-Y36_Oq.mjs +4 -0
  466. package/chunks/tw-BbdD_Tku.mjs +4 -0
  467. package/chunks/tz-Det_pKDO.mjs +4 -0
  468. package/chunks/ua-CdODx9f1.mjs +4 -0
  469. package/chunks/ug-CTIJi1Jn.mjs +4 -0
  470. package/chunks/us-Dsgn127D.mjs +4 -0
  471. package/chunks/uy-CtFb0Nfv.mjs +4 -0
  472. package/chunks/uz-CqlGrq2Q.mjs +4 -0
  473. package/chunks/va-C-PHbkgG.mjs +4 -0
  474. package/chunks/vc-CtVMqDKl.mjs +4 -0
  475. package/chunks/ve-CBHWNLnB.mjs +4 -0
  476. package/chunks/vg-BN0gTtPV.mjs +4 -0
  477. package/chunks/vi-D91NT7D5.mjs +4 -0
  478. package/chunks/vn-Dz72HCr4.mjs +4 -0
  479. package/chunks/vu-Cmk5qbSr.mjs +4 -0
  480. package/chunks/wf-DAPtyg32.mjs +4 -0
  481. package/chunks/ws-es9JGzNi.mjs +4 -0
  482. package/chunks/xk-st-Xu64D.mjs +4 -0
  483. package/chunks/ye-Dmo8XEYa.mjs +4 -0
  484. package/chunks/yt-CNEu1wkH.mjs +4 -0
  485. package/chunks/za-CiZ4NsPE.mjs +4 -0
  486. package/chunks/zm-DqQAAfzp.mjs +4 -0
  487. package/chunks/zw-BIGE1hob.mjs +4 -0
  488. package/code-snippet/index.mjs +472 -820
  489. package/custom-elements.json +6539 -5986
  490. package/datatable/index.mjs +1 -8
  491. package/datatable/src/components/mp-datatable.d.ts +4 -0
  492. package/datatable/src/types/tree.d.ts +7 -0
  493. package/datepicker/index.mjs +128 -215
  494. package/datetime-picker/index.mjs +1 -4
  495. package/dock/index.mjs +1871 -2471
  496. package/dropdown-menu/index.mjs +151 -602
  497. package/dropdown-menu/src/components/mp-dropdown-menu.d.ts +5 -8
  498. package/dropdown-menu/src/index.d.ts +1 -1
  499. package/dropdown-menu/src/types/dropdown.d.ts +0 -2
  500. package/dropdown-menu/src/types/index.d.ts +1 -1
  501. package/file-manager/index.mjs +771 -1180
  502. package/flags/index.mjs +1 -264
  503. package/index.mjs +0 -1
  504. package/input-group/index.mjs +1 -4
  505. package/light-dom/index.mjs +128 -11
  506. package/light-dom/src/install-light-styles.d.ts +10 -22
  507. package/light-dom/src/scoped-html.d.ts +0 -6
  508. package/machine/index.d.ts +1 -0
  509. package/machine/index.mjs +47 -0
  510. package/machine/src/index.d.ts +2 -0
  511. package/machine/src/machine-controller.d.ts +25 -0
  512. package/machine/src/props-directive.d.ts +21 -0
  513. package/multi-range/index.mjs +233 -402
  514. package/navbar/index.mjs +224 -1010
  515. package/otp-input/index.mjs +249 -374
  516. package/overlay/index.mjs +1 -7
  517. package/package.json +10 -1
  518. package/pagination/index.mjs +1 -5
  519. package/phone-core/index.mjs +120 -8
  520. package/phone-input/index.mjs +380 -493
  521. package/query-builder/index.mjs +1502 -2277
  522. package/radio/index.mjs +1 -4
  523. package/radio-group/index.mjs +126 -144
  524. package/ribbon/index.mjs +1158 -1497
  525. package/scheduler/index.mjs +3456 -6576
  526. package/scheduler-core/index.mjs +1 -197
  527. package/select/index.mjs +1 -4
  528. package/shell/index.mjs +98 -572
  529. package/signature-pad/index.mjs +180 -207
  530. package/splitter/index.mjs +1 -10
  531. package/swiper-core/index.mjs +1 -184
  532. package/tab-control/index.mjs +1 -6
  533. package/theming/index.mjs +229 -317
  534. package/tile-manager/index.mjs +746 -899
  535. package/timeline/index.mjs +476 -754
  536. package/timeline-core/index.mjs +1 -23
  537. package/timepicker/index.mjs +1 -9
  538. package/toggle-button/index.mjs +1 -5
  539. package/tree-select/index.mjs +475 -769
  540. package/tree-select/src/components/mp-tree-select.d.ts +16 -5
  541. package/treeview/index.mjs +1 -5
  542. package/typeahead/index.d.ts +1 -0
  543. package/typeahead/index.mjs +220 -0
  544. package/typeahead/src/components/mp-typeahead.d.ts +67 -0
  545. package/typeahead/src/index.d.ts +3 -0
  546. package/badge/src/styles/badge.styles.d.ts +0 -2
  547. package/chunks/ac-C5mj7mOe.mjs +0 -5
  548. package/chunks/ad-DuKUeTXh.mjs +0 -5
  549. package/chunks/ae-BFJrplpe.mjs +0 -5
  550. package/chunks/af-BIQlNFtj.mjs +0 -5
  551. package/chunks/ag-B9GDO0Ip.mjs +0 -5
  552. package/chunks/ai-pifHTP5K.mjs +0 -5
  553. package/chunks/al-CWQ3OuN9.mjs +0 -5
  554. package/chunks/all-flags-BtYcfgjy.mjs +0 -8
  555. package/chunks/all-flags.generated-B7Rctzuq.mjs +0 -493
  556. package/chunks/am-Do56ciQl.mjs +0 -5
  557. package/chunks/ao-Ci_fen-O.mjs +0 -5
  558. package/chunks/ar-BEZTIgF7.mjs +0 -5
  559. package/chunks/as-B29efaG_.mjs +0 -5
  560. package/chunks/at-c7xv31cV.mjs +0 -5
  561. package/chunks/attributes-L3eKsbdy.mjs +0 -16
  562. package/chunks/au-DK4ZROf6.mjs +0 -5
  563. package/chunks/aw-eEmOo-kc.mjs +0 -5
  564. package/chunks/ax-CF1cgQbd.mjs +0 -5
  565. package/chunks/az-BXPec7pf.mjs +0 -5
  566. package/chunks/ba-EoocSiX0.mjs +0 -5
  567. package/chunks/bb-BomyOgY0.mjs +0 -5
  568. package/chunks/bd-C2Y9A316.mjs +0 -5
  569. package/chunks/be-DcE56El1.mjs +0 -5
  570. package/chunks/bf-g7XzTHJG.mjs +0 -5
  571. package/chunks/bg-DAHpwJAh.mjs +0 -5
  572. package/chunks/bh-BiHF8vqO.mjs +0 -5
  573. package/chunks/bi-DVAoOy2o.mjs +0 -5
  574. package/chunks/bj-CB6I0T1J.mjs +0 -5
  575. package/chunks/bl-DhUObXcB.mjs +0 -5
  576. package/chunks/bm-d77E6A-Q.mjs +0 -5
  577. package/chunks/bn-CG1_6Vfv.mjs +0 -5
  578. package/chunks/bo-ulcQ_Lws.mjs +0 -5
  579. package/chunks/bq-wOjRpmJJ.mjs +0 -5
  580. package/chunks/br-BwQAEpKL.mjs +0 -5
  581. package/chunks/bs-Cmq3uDf9.mjs +0 -5
  582. package/chunks/bt-Cik-3ebf.mjs +0 -5
  583. package/chunks/bw-ZUkpxAL1.mjs +0 -5
  584. package/chunks/by-Dh-5h5x1.mjs +0 -5
  585. package/chunks/bz-DB0s7-5N.mjs +0 -5
  586. package/chunks/ca-Coq88_mc.mjs +0 -5
  587. package/chunks/cc-1.generated-CkRogBGA.mjs +0 -4
  588. package/chunks/cc-20.generated-DMpg7apl.mjs +0 -4
  589. package/chunks/cc-211.generated-DSnuuKPM.mjs +0 -4
  590. package/chunks/cc-212.generated-Dcg3rrip.mjs +0 -4
  591. package/chunks/cc-213.generated-DPwtGlxT.mjs +0 -4
  592. package/chunks/cc-216.generated-Cgber7dX.mjs +0 -4
  593. package/chunks/cc-218.generated-CZGwxl9D.mjs +0 -4
  594. package/chunks/cc-220.generated-CKmXmpGe.mjs +0 -4
  595. package/chunks/cc-221.generated-BYzgBejl.mjs +0 -4
  596. package/chunks/cc-222.generated-YwuXcbvd.mjs +0 -4
  597. package/chunks/cc-223.generated-9iiHnni6.mjs +0 -4
  598. package/chunks/cc-224.generated-Okty02TJ.mjs +0 -4
  599. package/chunks/cc-225.generated-CYkDnG14.mjs +0 -4
  600. package/chunks/cc-226.generated-GT_rqbCO.mjs +0 -4
  601. package/chunks/cc-227.generated-B1VkrgoB.mjs +0 -4
  602. package/chunks/cc-228.generated-Bhck-C6Z.mjs +0 -4
  603. package/chunks/cc-229.generated-aAR4PP7n.mjs +0 -4
  604. package/chunks/cc-230.generated-CG5TxZtb.mjs +0 -4
  605. package/chunks/cc-231.generated-BjYHl_BP.mjs +0 -4
  606. package/chunks/cc-232.generated-CFDyaA7o.mjs +0 -4
  607. package/chunks/cc-233.generated-ChwvrW0E.mjs +0 -4
  608. package/chunks/cc-234.generated-BIpIojaD.mjs +0 -4
  609. package/chunks/cc-235.generated-Dklizfb9.mjs +0 -4
  610. package/chunks/cc-236.generated-EJZlz23v.mjs +0 -4
  611. package/chunks/cc-237.generated-DwOapZWZ.mjs +0 -4
  612. package/chunks/cc-238.generated-BkCWtGDY.mjs +0 -4
  613. package/chunks/cc-239.generated-S_foXUit.mjs +0 -4
  614. package/chunks/cc-240.generated-CtKfcEWk.mjs +0 -4
  615. package/chunks/cc-241.generated-aAUw2QzS.mjs +0 -4
  616. package/chunks/cc-242.generated-D5jMR3KR.mjs +0 -4
  617. package/chunks/cc-243.generated-Bk5dwdUf.mjs +0 -4
  618. package/chunks/cc-244.generated-DywGvISM.mjs +0 -4
  619. package/chunks/cc-245.generated-Bm7wVXl5.mjs +0 -4
  620. package/chunks/cc-246.generated-CFSezynW.mjs +0 -4
  621. package/chunks/cc-247.generated-DKXGq8p1.mjs +0 -4
  622. package/chunks/cc-248.generated-CnI_kkbi.mjs +0 -4
  623. package/chunks/cc-249.generated-Zenj8WBl.mjs +0 -4
  624. package/chunks/cc-250.generated-140A9gFx.mjs +0 -4
  625. package/chunks/cc-251.generated-BYtVzI1w.mjs +0 -4
  626. package/chunks/cc-252.generated-C9By3_Ih.mjs +0 -4
  627. package/chunks/cc-253.generated-DZIADgzo.mjs +0 -4
  628. package/chunks/cc-254.generated-Bkb5VbuX.mjs +0 -4
  629. package/chunks/cc-255.generated-U_k4UlnG.mjs +0 -4
  630. package/chunks/cc-256.generated-BBGMRLJL.mjs +0 -4
  631. package/chunks/cc-257.generated-2Jiadm-X.mjs +0 -4
  632. package/chunks/cc-258.generated-CSHZFQtI.mjs +0 -4
  633. package/chunks/cc-260.generated-CWgOLjv4.mjs +0 -4
  634. package/chunks/cc-261.generated-DzpnYK1v.mjs +0 -4
  635. package/chunks/cc-262.generated-uZY0cJ08.mjs +0 -4
  636. package/chunks/cc-263.generated-D2QbPttm.mjs +0 -4
  637. package/chunks/cc-264.generated-DhUT_yRg.mjs +0 -4
  638. package/chunks/cc-265.generated-BKIU4vGv.mjs +0 -4
  639. package/chunks/cc-266.generated-O_zgqaDo.mjs +0 -4
  640. package/chunks/cc-267.generated-DpLBLCK1.mjs +0 -4
  641. package/chunks/cc-268.generated-B9Y4LS_4.mjs +0 -4
  642. package/chunks/cc-269.generated-DPQ0A8VW.mjs +0 -4
  643. package/chunks/cc-27.generated-BxeFhsuD.mjs +0 -4
  644. package/chunks/cc-290.generated-DGy2isg7.mjs +0 -4
  645. package/chunks/cc-291.generated-C4LSfffl.mjs +0 -4
  646. package/chunks/cc-297.generated-4k_1JOUj.mjs +0 -4
  647. package/chunks/cc-298.generated-A2xB0PKR.mjs +0 -4
  648. package/chunks/cc-299.generated-BwDC9B1N.mjs +0 -4
  649. package/chunks/cc-30.generated-JhyYglqU.mjs +0 -4
  650. package/chunks/cc-31.generated-5GOCJzfN.mjs +0 -4
  651. package/chunks/cc-32.generated-CpVvykA2.mjs +0 -4
  652. package/chunks/cc-33.generated-BDzHxbR_.mjs +0 -4
  653. package/chunks/cc-34.generated-P3nQfhBw.mjs +0 -4
  654. package/chunks/cc-350.generated-BGl8hYsP.mjs +0 -4
  655. package/chunks/cc-351.generated-pJBouwSG.mjs +0 -4
  656. package/chunks/cc-352.generated-8_NbdAx6.mjs +0 -4
  657. package/chunks/cc-353.generated-Cfz2tBdq.mjs +0 -4
  658. package/chunks/cc-354.generated-CEgaa6qB.mjs +0 -4
  659. package/chunks/cc-355.generated-DGZ-kJ0i.mjs +0 -4
  660. package/chunks/cc-356.generated-BZqLs86A.mjs +0 -4
  661. package/chunks/cc-357.generated-CfCB5cHL.mjs +0 -4
  662. package/chunks/cc-358.generated-wL2JzNDk.mjs +0 -4
  663. package/chunks/cc-359.generated-BxJe3xGt.mjs +0 -4
  664. package/chunks/cc-36.generated-CJdA4Rvi.mjs +0 -4
  665. package/chunks/cc-370.generated-B6SpL74q.mjs +0 -4
  666. package/chunks/cc-371.generated-Cx6lrGG9.mjs +0 -4
  667. package/chunks/cc-372.generated-Ckc30SHu.mjs +0 -4
  668. package/chunks/cc-373.generated-BK0ypz55.mjs +0 -4
  669. package/chunks/cc-374.generated-B51ogwAh.mjs +0 -4
  670. package/chunks/cc-375.generated-CMbmbMav.mjs +0 -4
  671. package/chunks/cc-376.generated-DZngLeqA.mjs +0 -4
  672. package/chunks/cc-377.generated-BYuCOf7K.mjs +0 -4
  673. package/chunks/cc-378.generated-CuNlUjOw.mjs +0 -4
  674. package/chunks/cc-380.generated-A2e4FwA4.mjs +0 -4
  675. package/chunks/cc-381.generated-Cvwf7aDo.mjs +0 -4
  676. package/chunks/cc-382.generated-B-x4jIQ_.mjs +0 -4
  677. package/chunks/cc-383.generated-B6E63WN4.mjs +0 -4
  678. package/chunks/cc-385.generated-CbYlsCsW.mjs +0 -4
  679. package/chunks/cc-386.generated-BUSyzthQ.mjs +0 -4
  680. package/chunks/cc-387.generated-IhkhnsGu.mjs +0 -4
  681. package/chunks/cc-389.generated-SNuHIdqu.mjs +0 -4
  682. package/chunks/cc-39.generated-BGZK1sVL.mjs +0 -4
  683. package/chunks/cc-40.generated-Bo8WnsNc.mjs +0 -4
  684. package/chunks/cc-41.generated-CG0098r3.mjs +0 -4
  685. package/chunks/cc-420.generated-C59jh2M8.mjs +0 -4
  686. package/chunks/cc-421.generated-BhxO-pTK.mjs +0 -4
  687. package/chunks/cc-423.generated-B4UJk2xr.mjs +0 -4
  688. package/chunks/cc-43.generated-BIdhhcvA.mjs +0 -4
  689. package/chunks/cc-44.generated-BfeK0wEP.mjs +0 -4
  690. package/chunks/cc-45.generated-BEJCwF4o.mjs +0 -4
  691. package/chunks/cc-46.generated-DeEMtTcI.mjs +0 -4
  692. package/chunks/cc-47.generated-DQy2Xk_0.mjs +0 -4
  693. package/chunks/cc-48.generated-C4yA7R1Q.mjs +0 -4
  694. package/chunks/cc-49.generated-a02djmT4.mjs +0 -4
  695. package/chunks/cc-500.generated-glAZ4AUe.mjs +0 -4
  696. package/chunks/cc-501.generated-D-GCAbI8.mjs +0 -4
  697. package/chunks/cc-502.generated-Co-n0usI.mjs +0 -4
  698. package/chunks/cc-503.generated-BM58qC_M.mjs +0 -4
  699. package/chunks/cc-504.generated-cTtfXvjR.mjs +0 -4
  700. package/chunks/cc-505.generated-DLSKmmzY.mjs +0 -4
  701. package/chunks/cc-506.generated-BMyMgwgZ.mjs +0 -4
  702. package/chunks/cc-507.generated-DWOdIJMd.mjs +0 -4
  703. package/chunks/cc-508.generated-DN3D0FwY.mjs +0 -4
  704. package/chunks/cc-509.generated-D-jyniz5.mjs +0 -4
  705. package/chunks/cc-51.generated-Bjy1G3kG.mjs +0 -4
  706. package/chunks/cc-52.generated-CDeO-q1n.mjs +0 -4
  707. package/chunks/cc-53.generated-Bg_ETBvx.mjs +0 -4
  708. package/chunks/cc-54.generated-BCfSFUZP.mjs +0 -4
  709. package/chunks/cc-55.generated-C1iLoSl1.mjs +0 -4
  710. package/chunks/cc-56.generated-ChgDDlud.mjs +0 -4
  711. package/chunks/cc-57.generated-qfDFimii.mjs +0 -4
  712. package/chunks/cc-58.generated-Cl6DzTam.mjs +0 -4
  713. package/chunks/cc-590.generated-DhG2cP7S.mjs +0 -4
  714. package/chunks/cc-591.generated-CjxsaggL.mjs +0 -4
  715. package/chunks/cc-592.generated-DnF2AtPs.mjs +0 -4
  716. package/chunks/cc-593.generated-J4b4KU_z.mjs +0 -4
  717. package/chunks/cc-594.generated-BDqHqvBX.mjs +0 -4
  718. package/chunks/cc-595.generated-Di23-NWq.mjs +0 -4
  719. package/chunks/cc-596.generated-B92oLPvz.mjs +0 -4
  720. package/chunks/cc-597.generated-pdvIpWWG.mjs +0 -4
  721. package/chunks/cc-598.generated-C9i6NuuS.mjs +0 -4
  722. package/chunks/cc-599.generated-Cot_Tjya.mjs +0 -4
  723. package/chunks/cc-60.generated-Dt21L5ED.mjs +0 -4
  724. package/chunks/cc-61.generated-CsF19uOz.mjs +0 -4
  725. package/chunks/cc-62.generated-CXe9l8jN.mjs +0 -4
  726. package/chunks/cc-63.generated-CyxqKEMz.mjs +0 -4
  727. package/chunks/cc-64.generated-B1U2VUWE.mjs +0 -4
  728. package/chunks/cc-65.generated-BqB9SL91.mjs +0 -4
  729. package/chunks/cc-66.generated-DSW4cKRJ.mjs +0 -4
  730. package/chunks/cc-670.generated-B5lMBLIA.mjs +0 -4
  731. package/chunks/cc-672.generated-rtLnRViR.mjs +0 -4
  732. package/chunks/cc-673.generated-CCfKxiHb.mjs +0 -4
  733. package/chunks/cc-674.generated-DqEenJAu.mjs +0 -4
  734. package/chunks/cc-675.generated-CDZsNVmA.mjs +0 -4
  735. package/chunks/cc-676.generated-CtuzuSpR.mjs +0 -4
  736. package/chunks/cc-677.generated-B6Vdcheb.mjs +0 -4
  737. package/chunks/cc-678.generated-Bu-wQLCv.mjs +0 -4
  738. package/chunks/cc-679.generated-C_vQNfa9.mjs +0 -4
  739. package/chunks/cc-680.generated-DgD0sTpR.mjs +0 -4
  740. package/chunks/cc-681.generated-CgCDLpTf.mjs +0 -4
  741. package/chunks/cc-682.generated-BBdb0LCA.mjs +0 -4
  742. package/chunks/cc-683.generated-BYq9qGSN.mjs +0 -4
  743. package/chunks/cc-685.generated-BeVt0xOD.mjs +0 -4
  744. package/chunks/cc-686.generated-DSuHUyGC.mjs +0 -4
  745. package/chunks/cc-687.generated-CAYCkQGn.mjs +0 -4
  746. package/chunks/cc-688.generated-BxoYuhyI.mjs +0 -4
  747. package/chunks/cc-689.generated-D1LJPuEc.mjs +0 -4
  748. package/chunks/cc-690.generated-wBJlIR_d.mjs +0 -4
  749. package/chunks/cc-691.generated-D3313DJE.mjs +0 -4
  750. package/chunks/cc-692.generated-BjRLK6LH.mjs +0 -4
  751. package/chunks/cc-7.generated-Be8Per3z.mjs +0 -4
  752. package/chunks/cc-81.generated-Bfr_1Ik4.mjs +0 -4
  753. package/chunks/cc-82.generated-CXvQgAj0.mjs +0 -4
  754. package/chunks/cc-84.generated-DsMrssxQ.mjs +0 -4
  755. package/chunks/cc-850.generated-B6dMNsJB.mjs +0 -4
  756. package/chunks/cc-852.generated-DoLs1jmz.mjs +0 -4
  757. package/chunks/cc-853.generated-C9J4qDF6.mjs +0 -4
  758. package/chunks/cc-855.generated-rriF89dH.mjs +0 -4
  759. package/chunks/cc-856.generated-DWMBTBFS.mjs +0 -4
  760. package/chunks/cc-86.generated-C8Ob3yVb.mjs +0 -4
  761. package/chunks/cc-880.generated-gteZx8SL.mjs +0 -4
  762. package/chunks/cc-886.generated-QyIDP1_q.mjs +0 -4
  763. package/chunks/cc-90.generated-DSXR50SV.mjs +0 -4
  764. package/chunks/cc-91.generated-C_cDq0Xp.mjs +0 -4
  765. package/chunks/cc-92.generated-Cxd7f_QX.mjs +0 -4
  766. package/chunks/cc-93.generated-Cyqo0e91.mjs +0 -4
  767. package/chunks/cc-94.generated-EsnmfbnH.mjs +0 -4
  768. package/chunks/cc-95.generated-D_8p55mp.mjs +0 -4
  769. package/chunks/cc-960.generated-DletKApH.mjs +0 -4
  770. package/chunks/cc-961.generated-CXVHoWFk.mjs +0 -4
  771. package/chunks/cc-962.generated-B7EPSakT.mjs +0 -4
  772. package/chunks/cc-963.generated-D71Y75mr.mjs +0 -4
  773. package/chunks/cc-964.generated-B8-RYrVD.mjs +0 -4
  774. package/chunks/cc-965.generated-tesjPkaP.mjs +0 -4
  775. package/chunks/cc-966.generated-CkCCmcR2.mjs +0 -4
  776. package/chunks/cc-967.generated-Bz1kG3rR.mjs +0 -4
  777. package/chunks/cc-968.generated-B8izDjLu.mjs +0 -4
  778. package/chunks/cc-970.generated-CKTkdIET.mjs +0 -4
  779. package/chunks/cc-971.generated-Wzj17K10.mjs +0 -4
  780. package/chunks/cc-972.generated-CJO02ZmJ.mjs +0 -4
  781. package/chunks/cc-973.generated-CL9ZE2Of.mjs +0 -4
  782. package/chunks/cc-974.generated-ZkYqGi9L.mjs +0 -4
  783. package/chunks/cc-975.generated-DP2Teiuc.mjs +0 -4
  784. package/chunks/cc-976.generated-GGNMRuFQ.mjs +0 -4
  785. package/chunks/cc-977.generated-KwvwlHUw.mjs +0 -4
  786. package/chunks/cc-98.generated-DW-Wj2k5.mjs +0 -4
  787. package/chunks/cc-992.generated-NRREmly7.mjs +0 -4
  788. package/chunks/cc-993.generated-BNlup4k-.mjs +0 -4
  789. package/chunks/cc-994.generated-BUD4e8ho.mjs +0 -4
  790. package/chunks/cc-995.generated-8P4TnVbi.mjs +0 -4
  791. package/chunks/cc-996.generated-CKCe7foO.mjs +0 -4
  792. package/chunks/cc-998.generated-CsAmnJYd.mjs +0 -4
  793. package/chunks/cc-BZdCRpNT.mjs +0 -5
  794. package/chunks/cd-9O28tBfy.mjs +0 -5
  795. package/chunks/cf-BdhmyWlv.mjs +0 -5
  796. package/chunks/cg-C-Qu4NMU.mjs +0 -5
  797. package/chunks/ch-A1RQVYLO.mjs +0 -5
  798. package/chunks/ci-DZY7fgO7.mjs +0 -5
  799. package/chunks/ck-D-2C9a72.mjs +0 -5
  800. package/chunks/cl-3HNgrmyT.mjs +0 -5
  801. package/chunks/cm-DJ4mixO9.mjs +0 -5
  802. package/chunks/cn-Cw6Qlqzd.mjs +0 -5
  803. package/chunks/co-B6rvgyRo.mjs +0 -5
  804. package/chunks/color-mode-warning-71FmlzWX.mjs +0 -13
  805. package/chunks/cr-jJzoBrc7.mjs +0 -5
  806. package/chunks/cu-BRzz3vV_.mjs +0 -5
  807. package/chunks/cv-BzZilEMp.mjs +0 -5
  808. package/chunks/cw-5PnLdxCt.mjs +0 -5
  809. package/chunks/cx-C0sAUlCS.mjs +0 -5
  810. package/chunks/cy-DeC9FFGV.mjs +0 -5
  811. package/chunks/cz-C3rh8aUO.mjs +0 -5
  812. package/chunks/de-Q2c2XZ_v.mjs +0 -5
  813. package/chunks/dj-DWAmmYDE.mjs +0 -5
  814. package/chunks/dk-FTaySAJe.mjs +0 -5
  815. package/chunks/dm-DgSJioJq.mjs +0 -5
  816. package/chunks/do-C549n3on.mjs +0 -5
  817. package/chunks/dz-CPgKocaY.mjs +0 -5
  818. package/chunks/ec-DkC-cDOb.mjs +0 -5
  819. package/chunks/ee-BQmFOHXA.mjs +0 -5
  820. package/chunks/eg-DMVarwMR.mjs +0 -5
  821. package/chunks/eh--oxmiCXh.mjs +0 -5
  822. package/chunks/er-DjB_DDiD.mjs +0 -5
  823. package/chunks/error-text-B45eDAt1.mjs +0 -17
  824. package/chunks/es-D__9e8wL.mjs +0 -5
  825. package/chunks/et-C3reU7Z2.mjs +0 -5
  826. package/chunks/fi-C1K0Kh4o.mjs +0 -5
  827. package/chunks/fj-Cs7ECsE1.mjs +0 -5
  828. package/chunks/fk-DYEJDgjs.mjs +0 -5
  829. package/chunks/fm-C7r_OFnj.mjs +0 -5
  830. package/chunks/fo-DsT-wW0Q.mjs +0 -5
  831. package/chunks/focus-restore-DxuP1Oe2.mjs +0 -94
  832. package/chunks/focus-trap-DTOLJ5bb.mjs +0 -121
  833. package/chunks/form-associated-BR-fUvZ1.mjs +0 -43
  834. package/chunks/form-check.styles-DqvBnspm.mjs +0 -172
  835. package/chunks/form-control.styles-C3j87Sn3.mjs +0 -171
  836. package/chunks/fr-oy8Uo1bo.mjs +0 -5
  837. package/chunks/ga-DESElBvk.mjs +0 -5
  838. package/chunks/gb-D5r9QI-K.mjs +0 -5
  839. package/chunks/gd-BuRviRXt.mjs +0 -5
  840. package/chunks/ge-BpGz5nUs.mjs +0 -5
  841. package/chunks/gf-BQgWe_yS.mjs +0 -5
  842. package/chunks/gg-BLNQrqls.mjs +0 -5
  843. package/chunks/gh-BzVF8tSr.mjs +0 -5
  844. package/chunks/gi-DfKOJdRQ.mjs +0 -5
  845. package/chunks/gl-C558Toee.mjs +0 -5
  846. package/chunks/gm-DNdinxnD.mjs +0 -5
  847. package/chunks/gn-DwEBOZ3-.mjs +0 -5
  848. package/chunks/gp-oy8Uo1bo.mjs +0 -5
  849. package/chunks/gq-BSkOSQWe.mjs +0 -5
  850. package/chunks/gr-CTJJbGEC.mjs +0 -5
  851. package/chunks/gt-D4BwgazI.mjs +0 -5
  852. package/chunks/gu-CQpMzEB_.mjs +0 -5
  853. package/chunks/gw-DxZDYMtv.mjs +0 -5
  854. package/chunks/gy-BWZVUGl8.mjs +0 -5
  855. package/chunks/hk-BHxjZMf4.mjs +0 -5
  856. package/chunks/hn-BEVgQ0QQ.mjs +0 -5
  857. package/chunks/host-aria-WSGs7SPQ.mjs +0 -152
  858. package/chunks/hr-BpVWlAoF.mjs +0 -5
  859. package/chunks/ht-CfzU-07O.mjs +0 -5
  860. package/chunks/hu-5Yy5WRy5.mjs +0 -5
  861. package/chunks/id-BfVg05v7.mjs +0 -5
  862. package/chunks/ie-DvpkJVl8.mjs +0 -5
  863. package/chunks/il-DDofIlI0.mjs +0 -5
  864. package/chunks/im-CW65ei4K.mjs +0 -5
  865. package/chunks/in-i60GVnCJ.mjs +0 -5
  866. package/chunks/inert-regions-DXCnn1LN.mjs +0 -48
  867. package/chunks/install-light-styles-DbCAGFOC.mjs +0 -209
  868. package/chunks/invalid-feedback.styles-he0JYrJm.mjs +0 -11
  869. package/chunks/io-Diyu5soM.mjs +0 -5
  870. package/chunks/iq-B74bFnMJ.mjs +0 -5
  871. package/chunks/ir-BWGwwJq9.mjs +0 -5
  872. package/chunks/is-CK4oIk76.mjs +0 -5
  873. package/chunks/it-Y7rj3hMY.mjs +0 -5
  874. package/chunks/je-DMoX3evy.mjs +0 -5
  875. package/chunks/jm-DZUStFkR.mjs +0 -5
  876. package/chunks/jo-DVQ6-ojE.mjs +0 -5
  877. package/chunks/jp-Y5R0MQfN.mjs +0 -5
  878. package/chunks/ke-CGq6XP7w.mjs +0 -5
  879. package/chunks/kg-DAoQwbeR.mjs +0 -5
  880. package/chunks/kh-kMI7MghQ.mjs +0 -5
  881. package/chunks/ki-Cu7fdPLn.mjs +0 -5
  882. package/chunks/km-CM7URKBO.mjs +0 -5
  883. package/chunks/kn-DBVGPz8w.mjs +0 -5
  884. package/chunks/kp-D3Ea15h2.mjs +0 -5
  885. package/chunks/kr-DKM0Jy7P.mjs +0 -5
  886. package/chunks/kw-B7J-nbX9.mjs +0 -5
  887. package/chunks/ky-p4ckNq_W.mjs +0 -5
  888. package/chunks/kz-D936idA9.mjs +0 -5
  889. package/chunks/la-CUKVKbGp.mjs +0 -5
  890. package/chunks/lb-CzUWz90e.mjs +0 -5
  891. package/chunks/lc-DuHqL5FW.mjs +0 -5
  892. package/chunks/li-DgJDzs_F.mjs +0 -5
  893. package/chunks/live-announcer-Bi0orG4n.mjs +0 -58
  894. package/chunks/lk-3zaagaQ9.mjs +0 -5
  895. package/chunks/lr-B6Vn6C_9.mjs +0 -5
  896. package/chunks/ls-DrI0Fh7Y.mjs +0 -5
  897. package/chunks/lt-PBck9Sgv.mjs +0 -5
  898. package/chunks/lu-B_xY22fB.mjs +0 -5
  899. package/chunks/lv-D16yLm3v.mjs +0 -5
  900. package/chunks/ly-C1adX4Zr.mjs +0 -5
  901. package/chunks/ma-B7rH3zoW.mjs +0 -5
  902. package/chunks/mc-Xqh4jc6i.mjs +0 -5
  903. package/chunks/md-wW4zZzbN.mjs +0 -5
  904. package/chunks/me-DCy_XMtC.mjs +0 -5
  905. package/chunks/metadata-loaders.generated-Bu_7pFwU.mjs +0 -250
  906. package/chunks/mf-DP_tIA6i.mjs +0 -5
  907. package/chunks/mg-InflpHX7.mjs +0 -5
  908. package/chunks/mh-VKf434Ww.mjs +0 -5
  909. package/chunks/mk-C64VS9I-.mjs +0 -5
  910. package/chunks/ml-BjOQYgou.mjs +0 -5
  911. package/chunks/mm-DgKeX7WQ.mjs +0 -5
  912. package/chunks/mn-BBubqCvd.mjs +0 -5
  913. package/chunks/mo-BtY-l2cE.mjs +0 -5
  914. package/chunks/mp-DlkcjH8B.mjs +0 -5
  915. package/chunks/mp-calendar.element-BIHS9SZZ.mjs +0 -433
  916. package/chunks/mp-checkbox-zV83gILn.mjs +0 -321
  917. package/chunks/mp-datatable-BeKunRfd.mjs +0 -2884
  918. package/chunks/mp-datetime-picker.element-Cxu5-qRE.mjs +0 -527
  919. package/chunks/mp-input-group-CQ55efCq.mjs +0 -206
  920. package/chunks/mp-pagination-hGy4dL7p.mjs +0 -334
  921. package/chunks/mp-radio-BhRVNdKp.mjs +0 -304
  922. package/chunks/mp-select-CgqYFvUj.mjs +0 -537
  923. package/chunks/mp-splitter-DLehrw3Y.mjs +0 -678
  924. package/chunks/mp-tab-page-CaCzX1ym.mjs +0 -415
  925. package/chunks/mp-timepicker.element-BiB9lkgc.mjs +0 -452
  926. package/chunks/mp-toggle-button-CaS9uYLE.mjs +0 -631
  927. package/chunks/mp-treeview-CaMTDrvY.mjs +0 -497
  928. package/chunks/mq-BK7HwZSV.mjs +0 -5
  929. package/chunks/mr-C0S-6dqR.mjs +0 -5
  930. package/chunks/ms-DpwSSTE-.mjs +0 -5
  931. package/chunks/mt-B1ie-04J.mjs +0 -5
  932. package/chunks/mu-DTA25SEP.mjs +0 -5
  933. package/chunks/mv-DW49amZl.mjs +0 -5
  934. package/chunks/mw-V-bbqGPN.mjs +0 -5
  935. package/chunks/mx-CtTJw0SX.mjs +0 -5
  936. package/chunks/my-DThIQKCq.mjs +0 -5
  937. package/chunks/mz-Btgk8Li_.mjs +0 -5
  938. package/chunks/na-D08-xA7q.mjs +0 -5
  939. package/chunks/nc-hb1s2KqL.mjs +0 -5
  940. package/chunks/ne-B5vEjeNk.mjs +0 -5
  941. package/chunks/nf-DDFUS5Ht.mjs +0 -5
  942. package/chunks/ng-DBhdmXcS.mjs +0 -5
  943. package/chunks/ni-_x4RKVT8.mjs +0 -5
  944. package/chunks/nl-DBxW_qVy.mjs +0 -5
  945. package/chunks/no-LyFCuMlU.mjs +0 -5
  946. package/chunks/np-DEvIQAys.mjs +0 -5
  947. package/chunks/nr-CuzElmFx.mjs +0 -5
  948. package/chunks/nu-C6vVHkwP.mjs +0 -5
  949. package/chunks/nz-BkhNYKha.mjs +0 -5
  950. package/chunks/om-BsI3oHrd.mjs +0 -5
  951. package/chunks/overlay-controller-BHDagokg.mjs +0 -389
  952. package/chunks/pa-CtNQVaHE.mjs +0 -5
  953. package/chunks/pe-vcSV6ioD.mjs +0 -5
  954. package/chunks/pf-BOetDvnB.mjs +0 -5
  955. package/chunks/pg-BDqa4YXR.mjs +0 -5
  956. package/chunks/ph-BlAaFzEE.mjs +0 -5
  957. package/chunks/pk-2auAZIDh.mjs +0 -5
  958. package/chunks/pl-W6WZfuq9.mjs +0 -5
  959. package/chunks/pm-oy8Uo1bo.mjs +0 -5
  960. package/chunks/pr-B3p98s5J.mjs +0 -5
  961. package/chunks/ps-RET8kTuo.mjs +0 -5
  962. package/chunks/pt-Z2yfZJAz.mjs +0 -5
  963. package/chunks/pw-Dm4Y4noS.mjs +0 -5
  964. package/chunks/py-1pKD7w9y.mjs +0 -5
  965. package/chunks/qa-DpK5_Q-a.mjs +0 -5
  966. package/chunks/re-oy8Uo1bo.mjs +0 -5
  967. package/chunks/resource.service--lqLwEqk.mjs +0 -1008
  968. package/chunks/ro-VYde6hop.mjs +0 -5
  969. package/chunks/roving-focus-CrL9982a.mjs +0 -129
  970. package/chunks/rs-Dj7Wicw9.mjs +0 -5
  971. package/chunks/ru-CkWEkuTy.mjs +0 -5
  972. package/chunks/rw-DjRHPIJ_.mjs +0 -5
  973. package/chunks/sa-BBdaW-_G.mjs +0 -5
  974. package/chunks/sb-nNr9S0gd.mjs +0 -5
  975. package/chunks/sc-DcbShXuj.mjs +0 -5
  976. package/chunks/scale-B0bRUdc7.mjs +0 -91
  977. package/chunks/sd-B1jbITc6.mjs +0 -5
  978. package/chunks/se-B-CIMrxu.mjs +0 -5
  979. package/chunks/sg-BIR0OErL.mjs +0 -5
  980. package/chunks/sh-BR9c9S8h.mjs +0 -5
  981. package/chunks/si-B5HzM3z8.mjs +0 -5
  982. package/chunks/sj-LyFCuMlU.mjs +0 -5
  983. package/chunks/sk-7ZEImIK5.mjs +0 -5
  984. package/chunks/sl-DuhHodH6.mjs +0 -5
  985. package/chunks/sm-BrM5UOOM.mjs +0 -5
  986. package/chunks/sn-jptojE_-.mjs +0 -5
  987. package/chunks/so-auBJUCeE.mjs +0 -5
  988. package/chunks/sr-DqWWIG11.mjs +0 -5
  989. package/chunks/ss-BcJF0rd5.mjs +0 -5
  990. package/chunks/st-D65H7-IP.mjs +0 -5
  991. package/chunks/sv-D8EgdK15.mjs +0 -5
  992. package/chunks/sx-Cmd53qC5.mjs +0 -5
  993. package/chunks/sy-LL8b7cLC.mjs +0 -5
  994. package/chunks/sz-D-qYq589.mjs +0 -5
  995. package/chunks/tc-AIE9LFuJ.mjs +0 -5
  996. package/chunks/td-C5AP4EiN.mjs +0 -5
  997. package/chunks/tg-Dt9WAF7L.mjs +0 -5
  998. package/chunks/th-DyfDlw-o.mjs +0 -5
  999. package/chunks/tj-U7xsGAAg.mjs +0 -5
  1000. package/chunks/tk-BWjKruB4.mjs +0 -5
  1001. package/chunks/tl-CcXsJf98.mjs +0 -5
  1002. package/chunks/tm-DTASSSkf.mjs +0 -5
  1003. package/chunks/tn-DttZvPz0.mjs +0 -5
  1004. package/chunks/to-ChsX5Z4Q.mjs +0 -5
  1005. package/chunks/tr-C2CRhai0.mjs +0 -5
  1006. package/chunks/tt-DPpP-HbL.mjs +0 -5
  1007. package/chunks/tv-CiTLokZi.mjs +0 -5
  1008. package/chunks/tw--J7h_fxf.mjs +0 -5
  1009. package/chunks/tz-qS3mKSkx.mjs +0 -5
  1010. package/chunks/ua-DiZstskV.mjs +0 -5
  1011. package/chunks/ug-BxVGZUby.mjs +0 -5
  1012. package/chunks/us-BvyIwpav.mjs +0 -5
  1013. package/chunks/uy-Dsr4HSrP.mjs +0 -5
  1014. package/chunks/uz-D25kmTp8.mjs +0 -5
  1015. package/chunks/va-hG27DTVe.mjs +0 -5
  1016. package/chunks/validation-ChktfuxI.mjs +0 -137
  1017. package/chunks/vc-7r46jyD5.mjs +0 -5
  1018. package/chunks/ve-R8UkJHAj.mjs +0 -5
  1019. package/chunks/vg-BLSugSwb.mjs +0 -5
  1020. package/chunks/vi-DSyJsPSD.mjs +0 -5
  1021. package/chunks/view-window-DGvFiDnW.mjs +0 -263
  1022. package/chunks/vn-BwGpRkWs.mjs +0 -5
  1023. package/chunks/vu-aFyzktTY.mjs +0 -5
  1024. package/chunks/wf-Ca9RrMIP.mjs +0 -5
  1025. package/chunks/ws-DphODgja.mjs +0 -5
  1026. package/chunks/xk-sugAykhS.mjs +0 -5
  1027. package/chunks/ye-D2MZq-93.mjs +0 -5
  1028. package/chunks/yt-tAecYEDU.mjs +0 -5
  1029. package/chunks/za-DadXcfMa.mjs +0 -5
  1030. package/chunks/zm--rp7ufAJ.mjs +0 -5
  1031. package/chunks/zw-BG5nNe2I.mjs +0 -5
  1032. package/query-builder/src/mp-query-builder.element.template.d.ts +0 -2
  1033. package/query-builder/src/mp-query-group.element.template.d.ts +0 -2
  1034. package/query-builder/src/mp-query-subquery.element.template.d.ts +0 -2
  1035. package/tree-select/src/styles/tree-select.styles.d.ts +0 -2
  1036. package/treeview/src/styles/treeview.styles.d.ts +0 -2
@@ -1,1052 +1,699 @@
1
- import { unsafeCSS as C, LitElement as U, html as c, nothing as d, svg as z } from "lit";
2
- import { repeat as g } from "lit/directives/repeat.js";
3
- import { styleMap as v } from "lit/directives/style-map.js";
4
- import { L as q } from "../../chunks/live-announcer-Bi0orG4n.mjs";
5
- import { e as k, F as $, c as L, q as R, o as S, f as A, g as I, z as O, p as D, n as E, m as P, k as m, j as T, a as B, b as N, h as H, l as Z, s as G, i as X } from "../../chunks/view-window-DGvFiDnW.mjs";
6
- import { b as F, n as b } from "../../chunks/attributes-L3eKsbdy.mjs";
7
- const Y = C(`@charset "UTF-8";
8
- :host {
9
- /* Flex column so the optional breadcrumb takes its own row; without it the
10
- chart is the only child and fills the host exactly as before. */
11
- display: flex;
12
- flex-direction: column;
13
- width: 100%;
14
- aspect-ratio: 1;
15
- /* Two-level fallbacks: Bootstrap 5.3 reassigns --bs-* per data-bs-theme and
16
- custom properties inherit through the shadow boundary, so dark mode needs
17
- no media query here. */
18
- /* Node labels contrast against the DATA-COLORED surface under them, not the
19
- page theme — the element picks one of this pair per node from the fill
20
- composited over the resolved backdrop. Deliberately NOT --bs-* driven. */
21
- --mp-hierarchy-chart-label-on-light: #1c1f23;
22
- --mp-hierarchy-chart-label-on-dark: #f8f9fa;
23
- --mp-hierarchy-chart-center-color: var(--bs-body-color, #212529);
24
- --mp-hierarchy-chart-center-bg: var(--bs-body-bg, #ffffff);
25
- --mp-hierarchy-chart-node-fill: var(--bs-secondary-bg, #e9ecef);
26
- --mp-hierarchy-chart-gap: var(--bs-body-bg, #ffffff);
27
- --mp-hierarchy-chart-branch-border: var(--bs-border-color, #dee2e6);
28
- --mp-hierarchy-chart-tooltip-bg: var(--bs-dark, #212529);
29
- --mp-hierarchy-chart-tooltip-color: var(--bs-light, #f8f9fa);
30
- --mp-hierarchy-chart-focus-ring-color: var(--bs-primary, #0d6efd);
31
- }
32
-
33
- * {
34
- box-sizing: border-box;
35
- }
36
-
37
- .chart {
38
- position: relative;
39
- width: 100%;
40
- flex: 1 1 auto;
41
- min-height: 0;
42
- /* The geometric zoom window: content outside it must clip, not spill. */
43
- overflow: hidden;
44
- }
45
-
46
- .breadcrumb {
47
- display: flex;
48
- flex-wrap: wrap;
49
- align-items: center;
50
- flex: 0 0 auto;
51
- gap: 0.125rem;
52
- margin: 0;
53
- padding: 0 0 0.25rem;
54
- font-size: 0.875rem;
55
- }
56
-
57
- .crumb {
58
- min-width: 24px;
59
- min-height: 24px;
60
- padding: 0.125rem 0.375rem;
61
- background: transparent;
62
- border: 0;
63
- border-radius: 0.25rem;
64
- color: var(--mp-hierarchy-chart-center-color);
65
- font: inherit;
66
- cursor: pointer;
67
- text-decoration: underline;
68
- }
69
-
70
- .crumb-current {
71
- padding: 0.125rem 0.375rem;
72
- color: var(--mp-hierarchy-chart-center-color);
73
- font-weight: 600;
74
- }
75
-
76
- .crumb-sep {
77
- opacity: 0.5;
78
- user-select: none;
79
- }
80
-
81
- /* Only when pinch is enabled: removing pinch-zoom from touch-action is what
82
- hands two-finger gestures to JS (S4-measured) while one-finger pan stays
83
- native. Never applied with zoom-gestures="none"/"wheel", so browser page
84
- pinch-zoom over the chart keeps working there. */
85
- .chart.pinch {
86
- touch-action: pan-x pan-y;
87
- }
88
-
89
- svg {
90
- display: block;
91
- width: 100%;
92
- height: 100%;
93
- }
94
-
95
- /* ---------- sunburst ---------- */
96
- .ring {
97
- stroke: none;
98
- cursor: pointer;
99
- }
100
-
101
- .ring[data-leaf] {
102
- fill-opacity: 0.6;
103
- cursor: default;
104
- }
105
-
106
- /* font-size comes per-element from the component (device px converted to
107
- viewBox units against the measured host scale — labels never scale with
108
- host size or zoom). */
109
- .arc-label {
110
- text-anchor: middle;
111
- dominant-baseline: middle;
112
- pointer-events: none;
113
- user-select: none;
114
- }
115
-
116
- .arc-label[data-surface=light] {
117
- fill: var(--mp-hierarchy-chart-label-on-light);
118
- }
119
-
120
- .arc-label[data-surface=dark] {
121
- fill: var(--mp-hierarchy-chart-label-on-dark);
122
- }
123
-
124
- /* HTML overlay button in the sunburst hole (a role=tree svg cannot own a button). */
125
- .center-control {
126
- position: absolute;
127
- top: 50%;
128
- left: 50%;
129
- transform: translate(-50%, -50%);
130
- border-radius: 50%;
131
- min-width: 24px;
132
- min-height: 24px;
133
- overflow: hidden;
134
- padding: 0.25rem;
135
- background: var(--mp-hierarchy-chart-center-bg);
136
- color: var(--mp-hierarchy-chart-center-color);
137
- border: 1px solid var(--mp-hierarchy-chart-branch-border);
138
- font: inherit;
139
- font-size: 0.875rem;
140
- cursor: pointer;
141
- }
142
-
143
- /* At the root there is nothing to zoom out to, and a disabled button still
144
- swallows clicks — which would make the hole a dead zone over the chart. */
145
- .center-control:disabled {
146
- cursor: default;
147
- pointer-events: none;
148
- }
149
-
150
- /* ---------- icicle / treemap (positioned divs) ---------- */
151
- .cell {
152
- position: absolute;
153
- overflow: hidden;
154
- background: var(--mp-hierarchy-chart-node-fill);
155
- border: 1px solid var(--mp-hierarchy-chart-gap);
156
- border-radius: 2px;
157
- /* font-size is set inline by the component (constant device px). */
158
- line-height: 1.25;
159
- padding: 1px 4px;
160
- cursor: pointer;
161
- transition: left var(--mp-hierarchy-chart-transition-duration, 300ms) ease-out, top var(--mp-hierarchy-chart-transition-duration, 300ms) ease-out, width var(--mp-hierarchy-chart-transition-duration, 300ms) ease-out, height var(--mp-hierarchy-chart-transition-duration, 300ms) ease-out;
162
- }
163
-
164
- .icicle,
165
- .treemap,
166
- .treemap-body {
167
- position: relative;
168
- width: 100%;
169
- height: 100%;
170
- }
171
-
172
- .treemap-header {
173
- height: 1.75rem;
174
- padding: 0.25rem 0.5rem;
175
- overflow: hidden;
176
- white-space: nowrap;
177
- text-overflow: ellipsis;
178
- color: var(--mp-hierarchy-chart-center-color);
179
- background: var(--mp-hierarchy-chart-center-bg);
180
- border: 1px solid var(--mp-hierarchy-chart-branch-border);
181
- border-radius: 2px;
182
- font-size: 0.8125rem;
183
- cursor: pointer;
184
- }
185
-
186
- .treemap .treemap-body {
187
- height: calc(100% - 1.75rem - 2px);
188
- margin-top: 2px;
189
- }
190
-
191
- .chart-tooltip {
192
- position: absolute;
193
- display: none;
194
- max-width: 60%;
195
- padding: 0.25rem 0.5rem;
196
- background: var(--mp-hierarchy-chart-tooltip-bg);
197
- color: var(--mp-hierarchy-chart-tooltip-color);
198
- border-radius: 0.25rem;
199
- font-size: 0.8125rem;
200
- pointer-events: none;
201
- z-index: 1;
202
- }
203
-
204
- .chart-tooltip[data-visible] {
205
- display: block;
206
- }
207
-
208
- /* Transient "how to zoom" overlay shown on an uncaptured plain wheel — the
209
- embedded-maps convention. Purely visual: aria-hidden, no pointer events. */
210
- .zoom-hint {
211
- position: absolute;
212
- top: 50%;
213
- left: 50%;
214
- transform: translate(-50%, -50%);
215
- max-width: 90%;
216
- padding: 0.375rem 0.75rem;
217
- background: var(--mp-hierarchy-chart-tooltip-bg);
218
- color: var(--mp-hierarchy-chart-tooltip-color);
219
- border-radius: 0.25rem;
220
- font-size: 0.875rem;
221
- text-align: center;
222
- pointer-events: none;
223
- user-select: none;
224
- z-index: 2;
225
- animation: mp-hierarchy-chart-hint 1.5s ease-out forwards;
226
- }
227
-
228
- @keyframes mp-hierarchy-chart-hint {
229
- 0% {
230
- opacity: 0;
231
- }
232
- 15% {
233
- opacity: 1;
234
- }
235
- 80% {
236
- opacity: 1;
237
- }
238
- 100% {
239
- opacity: 0;
240
- }
241
- }
242
- .cell[data-leaf] {
243
- cursor: default;
244
- }
245
-
246
- .cell .cell-label {
247
- display: block;
248
- overflow: hidden;
249
- text-overflow: ellipsis;
250
- white-space: nowrap;
251
- }
252
-
253
- .cell[data-surface=light] {
254
- color: var(--mp-hierarchy-chart-label-on-light);
255
- }
256
-
257
- .cell[data-surface=dark] {
258
- color: var(--mp-hierarchy-chart-label-on-dark);
259
- }
260
-
261
- /* A treemap branch tile is a frame: children render inside its header inset,
262
- its own strip shows the label. */
263
- .treemap .cell[data-branch] {
264
- background: transparent;
265
- border-color: var(--mp-hierarchy-chart-branch-border);
266
- }
267
-
268
- .focus-cell {
269
- background: var(--mp-hierarchy-chart-center-bg);
270
- border-color: var(--mp-hierarchy-chart-branch-border);
271
- }
272
-
273
- /* Focus indication: a drawn stroke on SVG arcs (outline on SVG is historically
274
- unreliable), a normal inset outline on HTML cells/buttons. */
275
- .ring:focus {
276
- outline: none;
277
- }
278
-
279
- .ring:focus-visible {
280
- stroke: var(--mp-hierarchy-chart-focus-ring-color);
281
- stroke-width: 6px;
282
- stroke-linejoin: round;
283
- }
284
-
285
- .cell:focus-visible {
286
- outline: 3px solid var(--mp-hierarchy-chart-focus-ring-color);
287
- outline-offset: -3px;
288
- }
289
-
290
- .center-control:focus-visible,
291
- .treemap-header:focus-visible,
292
- .crumb:focus-visible {
293
- outline: 3px solid var(--mp-hierarchy-chart-focus-ring-color);
294
- outline-offset: 2px;
295
- }
296
-
297
- .ring[data-loading],
298
- .cell[data-loading] {
299
- animation: mp-hierarchy-chart-pulse 1.2s ease-in-out infinite;
300
- }
301
-
302
- .ring[data-load-error],
303
- .cell[data-load-error] {
304
- opacity: 0.5;
305
- }
306
-
307
- @keyframes mp-hierarchy-chart-pulse {
308
- 50% {
309
- opacity: 0.4;
310
- }
311
- }
312
- @media (prefers-reduced-motion: reduce) {
313
- .ring,
314
- .cell,
315
- .zoom-hint {
316
- transition: none !important;
317
- animation: none !important;
318
- }
319
- }`), u = 1e3, y = 2 * Math.PI;
320
- function K() {
321
- return typeof matchMedia < "u" && matchMedia("(prefers-reduced-motion: reduce)").matches;
322
- }
323
- class x extends U {
324
- constructor() {
325
- super(...arguments), this._layout = "sunburst", this._maxDepth = void 0, this._minAngle = 0.2, this._minSize = 4, this._showLabels = !0, this._labelFontSize = 12, this._backdrop = "#ffffff", this._hostScale = 0.42, this._colorMin = 0, this._colorMax = 100, this._colorStart = "#fe0000", this._colorEnd = "#21b577", this._inputLabel = null, this._transitionDuration = 300, this._loadingIds = /* @__PURE__ */ new Set(), this._failedIds = /* @__PURE__ */ new Set(), this._loadedIds = /* @__PURE__ */ new Set(), this._loadingLabel = "Loading", this._fill = k(this._colorMin, this._colorMax, this._colorStart, this._colorEnd), this._prevSpans = /* @__PURE__ */ new Map(), this._tween = 1, this._tweenFrame = 0, this._hoveredId = null, this._focusedId = null, this._restoreFocus = !1, this._rendered = [], this._typeahead = "", this._typeaheadTimer = 0, this._zoomOutLabel = "Zoom out one level", this._metricUnitLabel = "%", this._valueUnitLabel = "", this.liveAnnouncer = new q(this, { omitRole: !0 }), this._showBreadcrumb = !1, this._breadcrumbLabel = "Chart path", this._gestures = /* @__PURE__ */ new Set(["wheel", "pinch"]), this._hintVisible = !1, this._hintTimer = 0, this._wheelListener = (e) => this.onWheel(e), this._view = $, this._pinchPointers = /* @__PURE__ */ new Map(), this._dragPointer = null, this._dragLast = { x: 0, y: 0 }, this._dragTotal = 0, this._dragMoved = !1, this._dismissedForId = null;
326
- }
327
- static {
328
- this.styles = [Y];
329
- }
330
- static get observedAttributes() {
331
- return [
332
- ...super.observedAttributes ?? [],
333
- "layout",
334
- "root-id",
335
- "max-depth",
336
- "min-angle",
337
- "min-size",
338
- "show-labels",
339
- "label-font-size",
340
- "backdrop",
341
- "color-min",
342
- "color-max",
343
- "color-start",
344
- "color-end",
345
- "transition-duration",
346
- "locale",
347
- "zoom-gestures",
348
- "zoom-hint-label",
349
- "show-breadcrumb",
350
- "breadcrumb-label",
351
- "zoom-out-label",
352
- "metric-unit-label",
353
- "value-unit-label",
354
- "loading-label",
355
- // Copied onto the in-shadow role=tree node — the host stays generic.
356
- "aria-label",
357
- "input-label"
358
- ];
359
- }
360
- /** The whole tree, rolled up once per write. */
361
- get data() {
362
- return this._data;
363
- }
364
- set data(e) {
365
- this._data = e, this._index = e ? L(e) : void 0, this.resetZoom();
366
- }
367
- get layout() {
368
- return this._layout;
369
- }
370
- set layout(e) {
371
- this._layout = e === "icicle" || e === "treemap" ? e : "sunburst", this.resetZoom();
372
- }
373
- get rootId() {
374
- return this._rootId;
375
- }
376
- set rootId(e) {
377
- const i = e || void 0;
378
- i !== this._rootId && (this.beginTween(), this._rootId = i, i === void 0 ? this.removeAttribute("root-id") : this.setAttribute("root-id", i), this.requestUpdate());
379
- }
380
- /**
381
- * Levels rendered outward from the focus node, or `'auto'` for every loaded
382
- * level. Any positive number is valid.
383
- *
384
- * Left unset it resolves to `'auto'` — a chart given a whole tree should draw
385
- * the tree it was given — EXCEPT when a `loadChildren` loader is present:
386
- * `'auto'` treats the deepest rendered ring as a load candidate, so an
387
- * unbounded lazy chart walks the entire remote tree one level per render (see
388
- * `loadLazyCandidates`). Lazy charts therefore keep the bounded 2-level
389
- * window (codecov's) unless the consumer asks for `'auto'` explicitly and
390
- * means it.
391
- */
392
- get maxDepth() {
393
- return this._maxDepth ?? (this._loadChildren ? 2 : "auto");
394
- }
395
- set maxDepth(e) {
396
- this._maxDepth = e === "auto" ? "auto" : Math.max(1, Math.floor(Number(e) || 2)), this.requestUpdate();
397
- }
398
- /**
399
- * `maxDepth` resolved against the current data. Never 0: a chart showing no
400
- * ring at all is not a rendering anyone asked for, so a leaf focus still
401
- * draws its (empty) first ring.
402
- */
403
- get renderedDepth() {
404
- const e = this.maxDepth;
405
- return e !== "auto" ? e : this._index ? Math.max(1, R(this._index, this._rootId)) : 1;
406
- }
407
- get minAngle() {
408
- return this._minAngle;
409
- }
410
- set minAngle(e) {
411
- this._minAngle = Math.max(0, Number(e) || 0), this.requestUpdate();
412
- }
413
- get minSize() {
414
- return this._minSize;
415
- }
416
- set minSize(e) {
417
- this._minSize = Math.max(0, Number(e) || 0), this.requestUpdate();
418
- }
419
- get showLabels() {
420
- return this._showLabels;
421
- }
422
- set showLabels(e) {
423
- this._showLabels = !!e, this.requestUpdate();
424
- }
425
- /** Label font size in DEVICE px — held constant across host size and zoom state. */
426
- get labelFontSize() {
427
- return this._labelFontSize;
428
- }
429
- set labelFontSize(e) {
430
- this._labelFontSize = Math.max(1, Number(e) || 12), this.requestUpdate();
431
- }
432
- /**
433
- * Opaque CSS color behind the chart, used to composite translucent fills
434
- * before picking a contrasting label color. Unset = auto-detected from the
435
- * nearest opaque ancestor background (set it when the walk cannot see the
436
- * real backdrop: images, gradients, cross-document embedding).
437
- */
438
- get backdrop() {
439
- return this._backdropOverride;
440
- }
441
- set backdrop(e) {
442
- this._backdropOverride = e || void 0, this.requestUpdate();
443
- }
444
- get colorMin() {
445
- return this._colorMin;
446
- }
447
- set colorMin(e) {
448
- this._colorMin = Number(e) || 0, this.rebuildScale();
449
- }
450
- get colorMax() {
451
- return this._colorMax;
452
- }
453
- set colorMax(e) {
454
- this._colorMax = Number(e) || 0, this.rebuildScale();
455
- }
456
- get colorStart() {
457
- return this._colorStart;
458
- }
459
- set colorStart(e) {
460
- this._colorStart = e || "#fe0000", this.rebuildScale();
461
- }
462
- get colorEnd() {
463
- return this._colorEnd;
464
- }
465
- set colorEnd(e) {
466
- this._colorEnd = e || "#21b577", this.rebuildScale();
467
- }
468
- get inputLabel() {
469
- return this._inputLabel;
470
- }
471
- set inputLabel(e) {
472
- this._inputLabel = e ?? null, this.requestUpdate();
473
- }
474
- get transitionDuration() {
475
- return this._transitionDuration;
476
- }
477
- set transitionDuration(e) {
478
- this._transitionDuration = Math.max(0, Number(e) || 0), this.style.setProperty("--mp-hierarchy-chart-transition-duration", `${this._transitionDuration}ms`);
479
- }
480
- get locale() {
481
- return this._locale;
482
- }
483
- set locale(e) {
484
- this._locale = e || void 0, this.requestUpdate();
485
- }
486
- get tooltipFormatter() {
487
- return this._tooltipFormatter;
488
- }
489
- set tooltipFormatter(e) {
490
- this._tooltipFormatter = e;
491
- }
492
- get labelFormatter() {
493
- return this._labelFormatter;
494
- }
495
- set labelFormatter(e) {
496
- this._labelFormatter = e, this.requestUpdate();
497
- }
498
- get loadChildren() {
499
- return this._loadChildren;
500
- }
501
- set loadChildren(e) {
502
- this._loadChildren = e, this.requestUpdate();
503
- }
504
- get loadingLabel() {
505
- return this._loadingLabel;
506
- }
507
- set loadingLabel(e) {
508
- this._loadingLabel = e ?? "Loading";
509
- }
510
- rebuildScale() {
511
- this._fill = k(this._colorMin, this._colorMax, this._colorStart, this._colorEnd), this.requestUpdate();
512
- }
513
- attributeChangedCallback(e, i, t) {
514
- switch (super.attributeChangedCallback(e, i, t), e) {
515
- case "layout":
516
- this.layout = t ?? "sunburst";
517
- break;
518
- case "root-id":
519
- this.rootId = t ?? void 0;
520
- break;
521
- case "max-depth":
522
- t === null ? (this._maxDepth = void 0, this.requestUpdate()) : this.maxDepth = t === "auto" ? "auto" : Number(t);
523
- break;
524
- case "min-angle":
525
- this.minAngle = b(t, 0.2);
526
- break;
527
- case "min-size":
528
- this.minSize = b(t, 4);
529
- break;
530
- case "show-labels":
531
- this.showLabels = F(t, !0);
532
- break;
533
- case "label-font-size":
534
- this.labelFontSize = b(t, 12);
535
- break;
536
- case "backdrop":
537
- this.backdrop = t ?? void 0;
538
- break;
539
- case "color-min":
540
- this.colorMin = b(t, 0);
541
- break;
542
- case "color-max":
543
- this.colorMax = b(t, 100);
544
- break;
545
- case "color-start":
546
- this.colorStart = t ?? "#fe0000";
547
- break;
548
- case "color-end":
549
- this.colorEnd = t ?? "#21b577";
550
- break;
551
- case "transition-duration":
552
- this.transitionDuration = b(t, 300);
553
- break;
554
- case "locale":
555
- this.locale = t ?? void 0;
556
- break;
557
- case "zoom-gestures":
558
- this.zoomGestures = t ?? "wheel pinch";
559
- break;
560
- case "zoom-hint-label":
561
- this._zoomHintLabel = t ?? void 0;
562
- break;
563
- case "show-breadcrumb":
564
- this.showBreadcrumb = F(t, !1);
565
- break;
566
- case "breadcrumb-label":
567
- this._breadcrumbLabel = t ?? "Chart path", this.requestUpdate();
568
- break;
569
- case "zoom-out-label":
570
- this._zoomOutLabel = t ?? "Zoom out one level", this.requestUpdate();
571
- break;
572
- case "loading-label":
573
- this._loadingLabel = t ?? "Loading";
574
- break;
575
- case "metric-unit-label":
576
- this._metricUnitLabel = t ?? "%", this.requestUpdate();
577
- break;
578
- case "value-unit-label":
579
- this._valueUnitLabel = t ?? "", this.requestUpdate();
580
- break;
581
- case "aria-label":
582
- this.requestUpdate();
583
- break;
584
- case "input-label":
585
- this.inputLabel = t;
586
- break;
587
- }
588
- }
589
- /**
590
- * Renders the focus path as real buttons above the chart: a single-pointer,
591
- * keyboard-operable way back up, and the visible statement of zoom state
592
- * (PRD hierarchy-chart-zoom-labels B1). Off by default.
593
- */
594
- get showBreadcrumb() {
595
- return this._showBreadcrumb;
596
- }
597
- set showBreadcrumb(e) {
598
- this._showBreadcrumb = !!e, this.requestUpdate();
599
- }
600
- get breadcrumbLabel() {
601
- return this._breadcrumbLabel;
602
- }
603
- set breadcrumbLabel(e) {
604
- this._breadcrumbLabel = e || "Chart path", this.requestUpdate();
605
- }
606
- get zoomOutLabel() {
607
- return this._zoomOutLabel;
608
- }
609
- set zoomOutLabel(e) {
610
- this._zoomOutLabel = e || "Zoom out one level", this.requestUpdate();
611
- }
612
- get metricUnitLabel() {
613
- return this._metricUnitLabel;
614
- }
615
- set metricUnitLabel(e) {
616
- this._metricUnitLabel = e ?? "%", this.requestUpdate();
617
- }
618
- get valueUnitLabel() {
619
- return this._valueUnitLabel;
620
- }
621
- set valueUnitLabel(e) {
622
- this._valueUnitLabel = e ?? "", this.requestUpdate();
623
- }
624
- /** The node the chart is rooted on right now (tree root when root-id is unset). */
625
- get focusedRoot() {
626
- return this._index ? S(this._index, this._rootId) : void 0;
627
- }
628
- /* ---------- rendered size + backdrop (label contrast inputs) ---------- */
629
- connectedCallback() {
630
- super.connectedCallback(), this.addEventListener("wheel", this._wheelListener, { passive: !1 }), typeof ResizeObserver < "u" && (this._resizeObserver = new ResizeObserver((e) => {
631
- const i = e[e.length - 1]?.contentRect.width;
632
- if (!i) return;
633
- const t = i / u;
634
- Math.abs(t - this._hostScale) > 1e-3 && (this._hostScale = t, this.requestUpdate());
635
- }), this._resizeObserver.observe(this));
636
- }
637
- disconnectedCallback() {
638
- this.removeEventListener("wheel", this._wheelListener), clearTimeout(this._hintTimer), this._resizeObserver?.disconnect(), this._resizeObserver = void 0, super.disconnectedCallback();
639
- }
640
- willUpdate(e) {
641
- super.willUpdate(e), this._tween >= 1 && this.resolveBackdrop();
642
- }
643
- /**
644
- * The first opaque computed background-color above the host (shadow roots
645
- * crossed via .host). A live theme flip is picked up on the next render —
646
- * one frame of suboptimal-but-legible contrast, self-correcting.
647
- */
648
- resolveBackdrop() {
649
- if (this._backdropOverride) {
650
- this._backdrop = this._backdropOverride;
651
- return;
652
- }
653
- if (typeof getComputedStyle != "function") return;
654
- let e = this;
655
- for (; e; ) {
656
- const i = getComputedStyle(e).backgroundColor;
657
- if (j(i)) {
658
- this._backdrop = i;
659
- return;
660
- }
661
- const t = e.getRootNode();
662
- e = e.parentElement ?? (t instanceof ShadowRoot ? t.host : null);
663
- }
664
- }
665
- /** Which token bucket a label over this node should use: the surface's tone. */
666
- surfaceToneOf(e, i) {
667
- const t = this.fillOf(e), r = t ? A(t, this._backdrop, i) : void 0;
668
- return this.toneOfSurface(r);
669
- }
670
- toneOfSurface(e) {
671
- return ((e !== void 0 ? I(e) : void 0) ?? I(this._backdrop) ?? "dark") === "dark" ? "light" : "dark";
672
- }
673
- /** Space-separated gesture allowlist: 'wheel pinch' (default) | 'wheel' | 'pinch' | 'none'. */
674
- get zoomGestures() {
675
- return this._gestures.size ? [...this._gestures].join(" ") : "none";
676
- }
677
- set zoomGestures(e) {
678
- const i = (e ?? "").toLowerCase().split(/\s+/);
679
- this._gestures = new Set(
680
- i.filter((t) => t === "wheel" || t === "pinch")
681
- );
682
- }
683
- get zoomHintLabel() {
684
- return this._zoomHintLabel !== void 0 ? this._zoomHintLabel : typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform ?? "") ? "Use ⌘ + scroll to zoom the chart" : "Use Ctrl + scroll to zoom the chart";
685
- }
686
- set zoomHintLabel(e) {
687
- this._zoomHintLabel = e || void 0;
688
- }
689
- static {
690
- this.MAX_ZOOM = 32;
691
- }
692
- /** Current geometric magnification (1 = fitted). Read-only state for consumers/tests. */
693
- get zoomLevel() {
694
- return this._view.zoom;
695
- }
696
- /** Programmatic geometric zoom, anchored at chart fractions (default: center). */
697
- setZoomLevel(e, i = 0.5, t = 0.5) {
698
- this._view = O(this._view, e, i, t, x.MAX_ZOOM), this.requestUpdate();
699
- }
700
- resetZoom() {
701
- this._view = $, this.requestUpdate();
702
- }
703
- /** Pan by chart-screen fractions (drag / two-finger move). */
704
- panBy(e, i) {
705
- const t = D(this._view, e, i);
706
- t !== this._view && (this._view = t, this.requestUpdate());
707
- }
708
- /** Map a normalized content rect through the view window to chart fractions. */
709
- viewRect(e, i, t, r) {
710
- return E(this._view, e, i, t, r);
711
- }
712
- /** Pointer position as chart fractions, for anchor-at-cursor zooming. */
713
- chartAnchor(e) {
714
- const i = this.shadowRoot?.querySelector(".chart")?.getBoundingClientRect();
715
- return P(i, e.clientX, e.clientY);
716
- }
717
- /** Device px per normalized content unit — the label fit tests' scale. */
718
- get effectiveScale() {
719
- return this._hostScale * this._view.zoom;
720
- }
721
- onWheel(e) {
722
- if (!this._gestures.has("wheel") || !this._index) return;
723
- if (!e.ctrlKey && !e.metaKey) {
724
- this.showZoomHint();
725
- return;
726
- }
727
- e.preventDefault();
728
- const i = e.deltaMode === 1 ? 16 : e.deltaMode === 2 ? this.clientHeight || 400 : 1, t = Math.max(-100, Math.min(100, e.deltaY * i)), r = this.chartAnchor(e);
729
- this.setZoomLevel(this._view.zoom * Math.exp(-t * 5e-3), r.x, r.y);
730
- }
731
- pinchDistance() {
732
- const [e, i] = [...this._pinchPointers.values()];
733
- return Math.hypot(i.x - e.x, i.y - e.y);
734
- }
735
- pinchMidpoint() {
736
- const [e, i] = [...this._pinchPointers.values()];
737
- return { x: (e.x + i.x) / 2, y: (e.y + i.y) / 2 };
738
- }
739
- onPointerDown(e) {
740
- if (e.pointerType === "touch") {
741
- if (!this._gestures.has("pinch")) return;
742
- this._pinchPointers.set(e.pointerId, { x: e.clientX, y: e.clientY });
743
- return;
744
- }
745
- this._view.zoom > 1 && e.button === 0 && (this._dragPointer = e.pointerId, this._dragLast = { x: e.clientX, y: e.clientY }, this._dragTotal = 0, this._dragMoved = !1);
746
- }
747
- /** @returns true when the move belonged to a pinch or drag (skip hover handling). */
748
- trackViewGesture(e) {
749
- if (e.pointerType === "touch" && this._pinchPointers.has(e.pointerId)) {
750
- if (this._pinchPointers.size !== 2)
751
- return this._pinchPointers.set(e.pointerId, { x: e.clientX, y: e.clientY }), !1;
752
- const i = this.pinchDistance(), t = this.pinchMidpoint();
753
- if (this._pinchPointers.set(e.pointerId, { x: e.clientX, y: e.clientY }), i > 0) {
754
- const r = this.pinchMidpoint(), o = this.chartAnchor({ clientX: r.x, clientY: r.y });
755
- this.setZoomLevel(this._view.zoom * (this.pinchDistance() / i), o.x, o.y);
756
- const a = this.shadowRoot?.querySelector(".chart")?.getBoundingClientRect();
757
- a?.width && a.height && this.panBy((r.x - t.x) / a.width, (r.y - t.y) / a.height);
758
- }
759
- return !0;
760
- }
761
- if (this._dragPointer === e.pointerId) {
762
- const i = e.clientX - this._dragLast.x, t = e.clientY - this._dragLast.y;
763
- this._dragLast = { x: e.clientX, y: e.clientY }, this._dragTotal += Math.abs(i) + Math.abs(t), this._dragTotal > 3 && (this._dragMoved = !0);
764
- const r = this.shadowRoot?.querySelector(".chart")?.getBoundingClientRect();
765
- return r?.width && r.height && this.panBy(i / r.width, t / r.height), !0;
766
- }
767
- return !1;
768
- }
769
- /** pointerup ends the gesture; pointercancel abandons it (divergent engines degrade to tap). */
770
- endViewGesture(e) {
771
- this._pinchPointers.delete(e.pointerId), this._dragPointer === e.pointerId && (this._dragPointer = null);
772
- }
773
- showZoomHint() {
774
- this._hintVisible = !0, clearTimeout(this._hintTimer), this._hintTimer = setTimeout(() => {
775
- this._hintVisible = !1, this.requestUpdate();
776
- }, 1500), this.requestUpdate();
777
- }
778
- /* ---------- zoom ---------- */
779
- /** Re-root on a node id (undefined = tree root) and emit `hierarchy-zoom`. */
780
- zoomTo(e) {
781
- const i = this._index;
782
- if (!i) return;
783
- const t = S(i, e);
784
- t !== this.focusedRoot && (this.resetZoom(), this.rootId = t === i.root ? void 0 : t.id, this.liveAnnouncer.announce(this.labelText(t)), this.emit("hierarchy-zoom", { node: t, path: m(i, t) }));
785
- }
786
- /** Move the roving tabindex (and DOM focus) to a rendered node. */
787
- focusNode(e) {
788
- this._rendered.some((i) => i.id === e) && (this._focusedId = e, this._restoreFocus = !0, this.requestUpdate());
789
- }
790
- zoomOut() {
791
- const e = this._index, i = this.focusedRoot;
792
- !e || !i || i === e.root || this.zoomTo(e.parents.get(i.id)?.id);
793
- }
794
- /* ---------- sunburst tween ---------- */
795
- beginTween() {
796
- if (this._transitionDuration <= 0 || K() || this._layout !== "sunburst" || !this._prevSpans.size) return;
797
- cancelAnimationFrame(this._tweenFrame);
798
- const e = performance.now(), i = (t) => {
799
- this._tween = Math.min(1, (t - e) / this._transitionDuration), this.requestUpdate(), this._tween < 1 && (this._tweenFrame = requestAnimationFrame(i));
800
- };
801
- this._tween = 0, this._tweenFrame = requestAnimationFrame(i);
802
- }
803
- tweenedSpan(e) {
804
- if (this._tween >= 1) return e;
805
- const i = 1 - (1 - this._tween) * (1 - this._tween), t = this._prevSpans.get(e.node.id) ?? { x0: e.x0, x1: e.x0 };
806
- return {
807
- x0: t.x0 + (e.x0 - t.x0) * i,
808
- x1: t.x1 + (e.x1 - t.x1) * i
809
- };
810
- }
811
- /* ---------- pointer interaction ---------- */
812
- nodeFromEvent(e) {
813
- const t = e.composedPath()[0]?.closest?.("[data-id]")?.getAttribute("data-id");
814
- return t ? this._index?.byId.get(t) : void 0;
815
- }
816
- onClick(e) {
817
- if (this._dragMoved) {
818
- this._dragMoved = !1;
819
- return;
820
- }
821
- const i = this._index, t = this.nodeFromEvent(e);
822
- if (!(!i || !t)) {
823
- if (t === this.focusedRoot) {
824
- this.zoomOut();
825
- return;
826
- }
827
- if (this._failedIds.delete(t.id), this._loadedIds.delete(t.id), t.children?.length || t.hasChildren && this._loadChildren) {
828
- this.zoomTo(t.id);
829
- return;
830
- }
831
- this.emit("hierarchy-node-select", { node: t, path: m(i, t) });
832
- }
833
- }
834
- get tooltipEl() {
835
- return this.shadowRoot?.querySelector(".chart-tooltip") ?? null;
836
- }
837
- isTooltipVisible() {
838
- return this.tooltipEl?.hasAttribute("data-visible") ?? !1;
839
- }
840
- /** Show the tooltip for a node at chart-relative coordinates, clamped inside the chart. */
841
- showTooltip(e, i, t) {
842
- const r = this.tooltipEl, o = this.shadowRoot?.querySelector(".chart");
843
- if (!r || !o) return;
844
- r.textContent = this.tooltipText(e), r.setAttribute("data-visible", "");
845
- const a = r.offsetWidth, s = r.offsetHeight;
846
- r.style.left = `${Math.max(0, Math.min(i + 12, o.clientWidth - a))}px`, r.style.top = `${Math.max(0, Math.min(t + 12, o.clientHeight - s))}px`;
847
- }
848
- hideTooltip() {
849
- this.tooltipEl?.removeAttribute("data-visible");
850
- }
851
- onPointerMove(e) {
852
- const i = this._index;
853
- if (!i || this.trackViewGesture(e)) return;
854
- const t = this.nodeFromEvent(e);
855
- if (!t || t === this.focusedRoot) {
856
- this.clearHover();
857
- return;
858
- }
859
- if (t.id !== this._dismissedForId) {
860
- this._dismissedForId = null;
861
- const r = this.shadowRoot?.querySelector(".chart")?.getBoundingClientRect();
862
- r && this.showTooltip(t, e.clientX - r.left, e.clientY - r.top);
863
- }
864
- this._hoveredId !== t.id && (this._hoveredId = t.id, this.emit("hierarchy-node-hover", { node: t, path: m(i, t) }));
865
- }
866
- clearHover() {
867
- this.hideTooltip(), this._dismissedForId = null, this._hoveredId !== null && (this._hoveredId = null, this.emit("hierarchy-node-hover", { node: null, path: [] }));
868
- }
869
- /** Keyboard parity for the hover tooltip (1.4.13): show on focus, hide on blur. */
870
- onFocusIn(e) {
871
- const i = e.composedPath()[0]?.closest?.('[role="treeitem"][data-id]'), t = i?.getAttribute("data-id"), r = t ? this._index?.byId.get(t) : void 0;
872
- if (!r || r === this.focusedRoot || r.id === this._dismissedForId) return;
873
- this._dismissedForId = null;
874
- const o = this.shadowRoot?.querySelector(".chart")?.getBoundingClientRect(), a = i?.getBoundingClientRect();
875
- !o || !a || this.showTooltip(
876
- r,
877
- a.left - o.left + a.width / 2,
878
- a.top - o.top + a.height / 2
879
- );
880
- }
881
- onFocusOut() {
882
- this.hideTooltip();
883
- }
884
- tooltipText(e) {
885
- const i = this._tooltipFormatter?.(e);
886
- if (i !== void 0) return i;
887
- const t = new Intl.NumberFormat(this._locale || this.closest("[lang]")?.getAttribute("lang") || void 0), r = this._index?.colorValues.get(e.id), o = this._index?.values.get(e.id);
888
- return [
889
- e.name,
890
- r !== void 0 ? `${t.format(Math.round(r * 10) / 10)}%` : void 0,
891
- o !== void 0 && o > 0 ? t.format(o) : void 0
892
- ].filter((a) => a !== void 0).join(" — ");
893
- }
894
- labelText(e) {
895
- return this._labelFormatter?.(e) ?? e.name;
896
- }
897
- /** Localized per-node accessible name: "components, 82%, 1,234 lines". */
898
- accessibleName(e) {
899
- const i = new Intl.NumberFormat(this._locale || this.closest("[lang]")?.getAttribute("lang") || void 0), t = this._index?.colorValues.get(e.id), r = this._index?.values.get(e.id);
900
- return [
901
- this.labelText(e),
902
- t !== void 0 ? `${i.format(Math.round(t * 10) / 10)}${this._metricUnitLabel}` : void 0,
903
- r !== void 0 && r > 0 ? `${i.format(r)}${this._valueUnitLabel ? ` ${this._valueUnitLabel}` : ""}` : void 0
904
- ].filter((o) => o !== void 0).join(", ");
905
- }
906
- emit(e, i) {
907
- this.dispatchEvent(new CustomEvent(e, { detail: i, bubbles: !0, composed: !0 }));
908
- }
909
- /* ---------- keyboard (APG tree, adapted: siblings wrap, Down = outward) ---------- */
910
- onKeyDown(e) {
911
- const i = this._index, r = e.composedPath()[0]?.closest?.('[role="treeitem"][data-id]')?.getAttribute("data-id");
912
- if (!i || !r) return;
913
- const o = (h) => {
914
- h !== void 0 && (this._focusedId = h, this._restoreFocus = !0, this.requestUpdate());
915
- }, a = this._rendered.find((h) => h.id === r), s = this._rendered.filter((h) => h.parentId === a?.parentId), n = s.findIndex((h) => h.id === r);
916
- switch (e.key) {
917
- case "ArrowRight":
918
- o(s[(n + 1) % s.length]?.id);
919
- break;
920
- case "ArrowLeft":
921
- o(s[(n - 1 + s.length) % s.length]?.id);
922
- break;
923
- case "ArrowDown":
924
- o(this._rendered.find((h) => h.parentId === r)?.id);
925
- break;
926
- case "ArrowUp":
927
- o(this._rendered.some((h) => h.id === a?.parentId) ? a?.parentId ?? void 0 : void 0);
928
- break;
929
- case "Home":
930
- o(s[0]?.id);
931
- break;
932
- case "End":
933
- o(s[s.length - 1]?.id);
934
- break;
935
- case "Enter": {
936
- const h = i.byId.get(r);
937
- if (!h) return;
938
- this._failedIds.delete(h.id), this._loadedIds.delete(h.id), h === this.focusedRoot ? this.zoomOut() : h.children?.length || h.hasChildren && this._loadChildren ? this.zoomTo(h.id) : this.emit("hierarchy-node-select", { node: h, path: m(i, h) });
939
- break;
940
- }
941
- case "Escape":
942
- if (this.isTooltipVisible()) {
943
- this.hideTooltip(), this._dismissedForId = r;
944
- break;
945
- }
946
- if (this._view.zoom > 1) {
947
- this.resetZoom();
948
- break;
949
- }
950
- if (this.focusedRoot === this._index?.root) return;
951
- this.zoomOut();
952
- break;
953
- case "Backspace":
954
- if (this.focusedRoot === this._index?.root) return;
955
- this.zoomOut();
956
- break;
957
- // Keyboard equivalent of the wheel/pinch magnification (2.1.1),
958
- // anchored on the focused node so it stays in view.
959
- case "+":
960
- case "=":
961
- this.zoomKeyboard(r, this._view.zoom * 1.5);
962
- break;
963
- case "-":
964
- case "_":
965
- this.zoomKeyboard(r, this._view.zoom / 1.5);
966
- break;
967
- case "0":
968
- this.resetZoom();
969
- break;
970
- default:
971
- this.handleTypeahead(e, r);
972
- return;
973
- }
974
- e.preventDefault(), e.stopPropagation();
975
- }
976
- /** Zoom anchored on a node's on-screen center (falls back to the chart center). */
977
- zoomKeyboard(e, i) {
978
- const t = this.shadowRoot?.querySelector(`[role="treeitem"][data-id="${M(e)}"]`), r = this.shadowRoot?.querySelector(".chart")?.getBoundingClientRect(), o = t?.getBoundingClientRect(), a = r?.width && o?.width ? this.chartAnchor({ clientX: o.left + o.width / 2, clientY: o.top + o.height / 2 }) : { x: 0.5, y: 0.5 };
979
- this.setZoomLevel(i, a.x, a.y);
980
- }
981
- handleTypeahead(e, i) {
982
- if (e.key.length !== 1 || e.ctrlKey || e.metaKey || e.altKey) return;
983
- clearTimeout(this._typeaheadTimer), this._typeahead += e.key.toLowerCase(), this._typeaheadTimer = setTimeout(() => this._typeahead = "", 500);
984
- const t = this._index;
985
- if (!t) return;
986
- const r = this._rendered, o = r.findIndex((n) => n.id === i), s = [...r.slice(o + 1), ...r.slice(0, o + 1)].find((n) => {
987
- const h = t.byId.get(n.id);
988
- return h ? this.labelText(h).toLowerCase().startsWith(this._typeahead) : !1;
989
- });
990
- s && (this._focusedId = s.id, this._restoreFocus = !0, this.requestUpdate(), e.preventDefault());
991
- }
992
- /**
993
- * Roving tabindex target for this render: the focused node while it is
994
- * still rendered, else the first rendered node (announcement rides the
995
- * zoom announce that caused the window to change).
996
- */
997
- resolveTabFocus() {
998
- if (!(this._focusedId && this._rendered.some((i) => i.id === this._focusedId))) {
999
- const i = this._rendered[0]?.id, t = !!this.shadowRoot?.activeElement;
1000
- this._focusedId = i ?? null, t && i && (this._restoreFocus = !0);
1001
- }
1002
- return this._focusedId ?? void 0;
1003
- }
1004
- updated(e) {
1005
- super.updated(e), this._restoreFocus && this._focusedId && (this._restoreFocus = !1, this.shadowRoot?.querySelector(`[role="treeitem"][data-id="${M(this._focusedId)}"]`)?.focus({ preventScroll: !0 })), this.loadLazyCandidates();
1006
- }
1007
- /* ---------- lazy children ---------- */
1008
- isLazy(e) {
1009
- return !!e && !!e.hasChildren && !e.children?.length && !this._loadedIds.has(e.id);
1010
- }
1011
- /** Kick a load for every lazy node whose CHILD ring is inside the rendered window. */
1012
- loadLazyCandidates() {
1013
- const e = this._loadChildren, i = this._index;
1014
- if (!e || !i) return;
1015
- const t = this.focusedRoot, r = this.maxDepth === "auto", o = this.renderedDepth, a = [
1016
- ...this.isLazy(t) ? [t] : [],
1017
- ...this._rendered.filter((s) => r || s.depth < o).map((s) => i.byId.get(s.id)).filter((s) => this.isLazy(s))
1018
- ].filter((s) => !this._loadingIds.has(s.id) && !this._failedIds.has(s.id));
1019
- a.map((s) => (this._loadingIds.add(s.id), s === t && this.liveAnnouncer.announce(`${this._loadingLabel} ${this.labelText(s)}`), e(s).then(
1020
- (n) => {
1021
- s.children = n, this._loadingIds.delete(s.id), this._loadedIds.add(s.id), this._data && (this._index = L(this._data)), this.requestUpdate();
1022
- },
1023
- (n) => {
1024
- this._loadingIds.delete(s.id), this._failedIds.add(s.id), this.emit("hierarchy-node-load-error", { node: s, error: n }), this.requestUpdate();
1025
- }
1026
- ), s)), a.length && this.requestUpdate();
1027
- }
1028
- fillOf(e) {
1029
- if (e.color) return e.color;
1030
- const i = this._index?.colorValues.get(e.id);
1031
- return i !== void 0 ? this._fill(i) : void 0;
1032
- }
1033
- treeLabel() {
1034
- return this.getAttribute("aria-label") ?? this._inputLabel;
1035
- }
1036
- /** The focus path as buttons, OUTSIDE any role=tree container (trees own only treeitems). */
1037
- renderBreadcrumb(e, i) {
1038
- const t = m(e, i);
1039
- return c`<nav class="breadcrumb" aria-label=${this._breadcrumbLabel}>
1040
- ${t.map((r, o) => o === t.length - 1 ? c`<span class="crumb-current" aria-current="location">${this.labelText(r)}</span>` : c`<button
1
+ import { y as e } from "../../chunks/a11y-C6aX-lsZ.mjs";
2
+ import { FITTED_VIEW as t, arcLabelTransform as n, arcPath as r, booleanAttribute as i, buildIndex as a, colorScale as o, composite as s, contrastText as c, fitArcLabel as l, fitCellLabel as u, levelOf as d, numberAttribute as f, panView as p, partitionLayout as m, pathTo as h, pointFraction as g, projectRect as _, resolveFocus as v, squarifyLayout as y, subtreeDepth as b, zoomViewAt as x } from "../core/index.mjs";
3
+ import { LitElement as S, html as C, nothing as w, svg as T, unsafeCSS as E } from "lit";
4
+ import { repeat as D } from "lit/directives/repeat.js";
5
+ import { styleMap as O } from "lit/directives/style-map.js";
6
+ //#region libs/mintplayer-web-components/charts/hierarchy/src/styles/hierarchy-chart.styles.ts
7
+ var k = E("@charset \"UTF-8\";\n:host {\n /* Flex column so the optional breadcrumb takes its own row; without it the\n chart is the only child and fills the host exactly as before. */\n display: flex;\n flex-direction: column;\n width: 100%;\n aspect-ratio: 1;\n /* Two-level fallbacks: Bootstrap 5.3 reassigns --bs-* per data-bs-theme and\n custom properties inherit through the shadow boundary, so dark mode needs\n no media query here. */\n /* Node labels contrast against the DATA-COLORED surface under them, not the\n page theme — the element picks one of this pair per node from the fill\n composited over the resolved backdrop. Deliberately NOT --bs-* driven. */\n --mp-hierarchy-chart-label-on-light: #1c1f23;\n --mp-hierarchy-chart-label-on-dark: #f8f9fa;\n --mp-hierarchy-chart-center-color: var(--bs-body-color, #212529);\n --mp-hierarchy-chart-center-bg: var(--bs-body-bg, #ffffff);\n --mp-hierarchy-chart-node-fill: var(--bs-secondary-bg, #e9ecef);\n --mp-hierarchy-chart-gap: var(--bs-body-bg, #ffffff);\n --mp-hierarchy-chart-branch-border: var(--bs-border-color, #dee2e6);\n --mp-hierarchy-chart-tooltip-bg: var(--bs-dark, #212529);\n --mp-hierarchy-chart-tooltip-color: var(--bs-light, #f8f9fa);\n --mp-hierarchy-chart-focus-ring-color: var(--bs-primary, #0d6efd);\n}\n\n* {\n box-sizing: border-box;\n}\n\n.chart {\n position: relative;\n width: 100%;\n flex: 1 1 auto;\n min-height: 0;\n /* The geometric zoom window: content outside it must clip, not spill. */\n overflow: hidden;\n}\n\n.breadcrumb {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n flex: 0 0 auto;\n gap: 0.125rem;\n margin: 0;\n padding: 0 0 0.25rem;\n font-size: 0.875rem;\n}\n\n.crumb {\n min-width: 24px;\n min-height: 24px;\n padding: 0.125rem 0.375rem;\n background: transparent;\n border: 0;\n border-radius: 0.25rem;\n color: var(--mp-hierarchy-chart-center-color);\n font: inherit;\n cursor: pointer;\n text-decoration: underline;\n}\n\n.crumb-current {\n padding: 0.125rem 0.375rem;\n color: var(--mp-hierarchy-chart-center-color);\n font-weight: 600;\n}\n\n.crumb-sep {\n opacity: 0.5;\n user-select: none;\n}\n\n/* Only when pinch is enabled: removing pinch-zoom from touch-action is what\n hands two-finger gestures to JS (S4-measured) while one-finger pan stays\n native. Never applied with zoom-gestures=\"none\"/\"wheel\", so browser page\n pinch-zoom over the chart keeps working there. */\n.chart.pinch {\n touch-action: pan-x pan-y;\n}\n\nsvg {\n display: block;\n width: 100%;\n height: 100%;\n}\n\n/* ---------- sunburst ---------- */\n.ring {\n stroke: none;\n cursor: pointer;\n}\n\n.ring[data-leaf] {\n fill-opacity: 0.6;\n cursor: default;\n}\n\n/* font-size comes per-element from the component (device px converted to\n viewBox units against the measured host scale — labels never scale with\n host size or zoom). */\n.arc-label {\n text-anchor: middle;\n dominant-baseline: middle;\n pointer-events: none;\n user-select: none;\n}\n\n.arc-label[data-surface=light] {\n fill: var(--mp-hierarchy-chart-label-on-light);\n}\n\n.arc-label[data-surface=dark] {\n fill: var(--mp-hierarchy-chart-label-on-dark);\n}\n\n/* HTML overlay button in the sunburst hole (a role=tree svg cannot own a button). */\n.center-control {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border-radius: 50%;\n min-width: 24px;\n min-height: 24px;\n overflow: hidden;\n padding: 0.25rem;\n background: var(--mp-hierarchy-chart-center-bg);\n color: var(--mp-hierarchy-chart-center-color);\n border: 1px solid var(--mp-hierarchy-chart-branch-border);\n font: inherit;\n font-size: 0.875rem;\n cursor: pointer;\n}\n\n/* At the root there is nothing to zoom out to, and a disabled button still\n swallows clicks — which would make the hole a dead zone over the chart. */\n.center-control:disabled {\n cursor: default;\n pointer-events: none;\n}\n\n/* ---------- icicle / treemap (positioned divs) ---------- */\n.cell {\n position: absolute;\n overflow: hidden;\n background: var(--mp-hierarchy-chart-node-fill);\n border: 1px solid var(--mp-hierarchy-chart-gap);\n border-radius: 2px;\n /* font-size is set inline by the component (constant device px). */\n line-height: 1.25;\n padding: 1px 4px;\n cursor: pointer;\n transition: left var(--mp-hierarchy-chart-transition-duration, 300ms) ease-out, top var(--mp-hierarchy-chart-transition-duration, 300ms) ease-out, width var(--mp-hierarchy-chart-transition-duration, 300ms) ease-out, height var(--mp-hierarchy-chart-transition-duration, 300ms) ease-out;\n}\n\n.icicle,\n.treemap,\n.treemap-body {\n position: relative;\n width: 100%;\n height: 100%;\n}\n\n.treemap-header {\n height: 1.75rem;\n padding: 0.25rem 0.5rem;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n color: var(--mp-hierarchy-chart-center-color);\n background: var(--mp-hierarchy-chart-center-bg);\n border: 1px solid var(--mp-hierarchy-chart-branch-border);\n border-radius: 2px;\n font-size: 0.8125rem;\n cursor: pointer;\n}\n\n.treemap .treemap-body {\n height: calc(100% - 1.75rem - 2px);\n margin-top: 2px;\n}\n\n.chart-tooltip {\n position: absolute;\n display: none;\n max-width: 60%;\n padding: 0.25rem 0.5rem;\n background: var(--mp-hierarchy-chart-tooltip-bg);\n color: var(--mp-hierarchy-chart-tooltip-color);\n border-radius: 0.25rem;\n font-size: 0.8125rem;\n pointer-events: none;\n z-index: 1;\n}\n\n.chart-tooltip[data-visible] {\n display: block;\n}\n\n/* Transient \"how to zoom\" overlay shown on an uncaptured plain wheel — the\n embedded-maps convention. Purely visual: aria-hidden, no pointer events. */\n.zoom-hint {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n max-width: 90%;\n padding: 0.375rem 0.75rem;\n background: var(--mp-hierarchy-chart-tooltip-bg);\n color: var(--mp-hierarchy-chart-tooltip-color);\n border-radius: 0.25rem;\n font-size: 0.875rem;\n text-align: center;\n pointer-events: none;\n user-select: none;\n z-index: 2;\n animation: mp-hierarchy-chart-hint 1.5s ease-out forwards;\n}\n\n@keyframes mp-hierarchy-chart-hint {\n 0% {\n opacity: 0;\n }\n 15% {\n opacity: 1;\n }\n 80% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n.cell[data-leaf] {\n cursor: default;\n}\n\n.cell .cell-label {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.cell[data-surface=light] {\n color: var(--mp-hierarchy-chart-label-on-light);\n}\n\n.cell[data-surface=dark] {\n color: var(--mp-hierarchy-chart-label-on-dark);\n}\n\n/* A treemap branch tile is a frame: children render inside its header inset,\n its own strip shows the label. */\n.treemap .cell[data-branch] {\n background: transparent;\n border-color: var(--mp-hierarchy-chart-branch-border);\n}\n\n.focus-cell {\n background: var(--mp-hierarchy-chart-center-bg);\n border-color: var(--mp-hierarchy-chart-branch-border);\n}\n\n/* Focus indication: a drawn stroke on SVG arcs (outline on SVG is historically\n unreliable), a normal inset outline on HTML cells/buttons. */\n.ring:focus {\n outline: none;\n}\n\n.ring:focus-visible {\n stroke: var(--mp-hierarchy-chart-focus-ring-color);\n stroke-width: 6px;\n stroke-linejoin: round;\n}\n\n.cell:focus-visible {\n outline: 3px solid var(--mp-hierarchy-chart-focus-ring-color);\n outline-offset: -3px;\n}\n\n.center-control:focus-visible,\n.treemap-header:focus-visible,\n.crumb:focus-visible {\n outline: 3px solid var(--mp-hierarchy-chart-focus-ring-color);\n outline-offset: 2px;\n}\n\n.ring[data-loading],\n.cell[data-loading] {\n animation: mp-hierarchy-chart-pulse 1.2s ease-in-out infinite;\n}\n\n.ring[data-load-error],\n.cell[data-load-error] {\n opacity: 0.5;\n}\n\n@keyframes mp-hierarchy-chart-pulse {\n 50% {\n opacity: 0.4;\n }\n}\n@media (prefers-reduced-motion: reduce) {\n .ring,\n .cell,\n .zoom-hint {\n transition: none !important;\n animation: none !important;\n }\n}"), A = 1e3, j = 2 * Math.PI;
8
+ function M() {
9
+ return typeof matchMedia < "u" && matchMedia("(prefers-reduced-motion: reduce)").matches;
10
+ }
11
+ var N = class E extends S {
12
+ constructor(...n) {
13
+ super(...n), this._layout = "sunburst", this._maxDepth = void 0, this._minAngle = .2, this._minSize = 4, this._showLabels = !0, this._labelFontSize = 12, this._backdrop = "#ffffff", this._hostScale = .42, this._colorMin = 0, this._colorMax = 100, this._colorStart = "#fe0000", this._colorEnd = "#21b577", this._inputLabel = null, this._transitionDuration = 300, this._loadingIds = /* @__PURE__ */ new Set(), this._failedIds = /* @__PURE__ */ new Set(), this._loadedIds = /* @__PURE__ */ new Set(), this._loadingLabel = "Loading", this._fill = o(this._colorMin, this._colorMax, this._colorStart, this._colorEnd), this._prevSpans = /* @__PURE__ */ new Map(), this._tween = 1, this._tweenFrame = 0, this._hoveredId = null, this._focusedId = null, this._restoreFocus = !1, this._rendered = [], this._typeahead = "", this._typeaheadTimer = 0, this._zoomOutLabel = "Zoom out one level", this._metricUnitLabel = "%", this._valueUnitLabel = "", this.liveAnnouncer = new e(this, { omitRole: !0 }), this._showBreadcrumb = !1, this._breadcrumbLabel = "Chart path", this._gestures = /* @__PURE__ */ new Set(["wheel", "pinch"]), this._hintVisible = !1, this._hintTimer = 0, this._wheelListener = (e) => this.onWheel(e), this._view = t, this._pinchPointers = /* @__PURE__ */ new Map(), this._dragPointer = null, this._dragLast = {
14
+ x: 0,
15
+ y: 0
16
+ }, this._dragTotal = 0, this._dragMoved = !1, this._dismissedForId = null;
17
+ }
18
+ static {
19
+ this.styles = [k];
20
+ }
21
+ static get observedAttributes() {
22
+ return [
23
+ ...super.observedAttributes ?? [],
24
+ "layout",
25
+ "root-id",
26
+ "max-depth",
27
+ "min-angle",
28
+ "min-size",
29
+ "show-labels",
30
+ "label-font-size",
31
+ "backdrop",
32
+ "color-min",
33
+ "color-max",
34
+ "color-start",
35
+ "color-end",
36
+ "transition-duration",
37
+ "locale",
38
+ "zoom-gestures",
39
+ "zoom-hint-label",
40
+ "show-breadcrumb",
41
+ "breadcrumb-label",
42
+ "zoom-out-label",
43
+ "metric-unit-label",
44
+ "value-unit-label",
45
+ "loading-label",
46
+ "aria-label",
47
+ "input-label"
48
+ ];
49
+ }
50
+ get data() {
51
+ return this._data;
52
+ }
53
+ set data(e) {
54
+ this._data = e, this._index = e ? a(e) : void 0, this.resetZoom();
55
+ }
56
+ get layout() {
57
+ return this._layout;
58
+ }
59
+ set layout(e) {
60
+ this._layout = e === "icicle" || e === "treemap" ? e : "sunburst", this.resetZoom();
61
+ }
62
+ get rootId() {
63
+ return this._rootId;
64
+ }
65
+ set rootId(e) {
66
+ let t = e || void 0;
67
+ t !== this._rootId && (this.beginTween(), this._rootId = t, t === void 0 ? this.removeAttribute("root-id") : this.setAttribute("root-id", t), this.requestUpdate());
68
+ }
69
+ get maxDepth() {
70
+ return this._maxDepth ?? (this._loadChildren ? 2 : "auto");
71
+ }
72
+ set maxDepth(e) {
73
+ this._maxDepth = e === "auto" ? "auto" : Math.max(1, Math.floor(Number(e) || 2)), this.requestUpdate();
74
+ }
75
+ get renderedDepth() {
76
+ let e = this.maxDepth;
77
+ return e === "auto" ? this._index ? Math.max(1, b(this._index, this._rootId)) : 1 : e;
78
+ }
79
+ get minAngle() {
80
+ return this._minAngle;
81
+ }
82
+ set minAngle(e) {
83
+ this._minAngle = Math.max(0, Number(e) || 0), this.requestUpdate();
84
+ }
85
+ get minSize() {
86
+ return this._minSize;
87
+ }
88
+ set minSize(e) {
89
+ this._minSize = Math.max(0, Number(e) || 0), this.requestUpdate();
90
+ }
91
+ get showLabels() {
92
+ return this._showLabels;
93
+ }
94
+ set showLabels(e) {
95
+ this._showLabels = !!e, this.requestUpdate();
96
+ }
97
+ get labelFontSize() {
98
+ return this._labelFontSize;
99
+ }
100
+ set labelFontSize(e) {
101
+ this._labelFontSize = Math.max(1, Number(e) || 12), this.requestUpdate();
102
+ }
103
+ get backdrop() {
104
+ return this._backdropOverride;
105
+ }
106
+ set backdrop(e) {
107
+ this._backdropOverride = e || void 0, this.requestUpdate();
108
+ }
109
+ get colorMin() {
110
+ return this._colorMin;
111
+ }
112
+ set colorMin(e) {
113
+ this._colorMin = Number(e) || 0, this.rebuildScale();
114
+ }
115
+ get colorMax() {
116
+ return this._colorMax;
117
+ }
118
+ set colorMax(e) {
119
+ this._colorMax = Number(e) || 0, this.rebuildScale();
120
+ }
121
+ get colorStart() {
122
+ return this._colorStart;
123
+ }
124
+ set colorStart(e) {
125
+ this._colorStart = e || "#fe0000", this.rebuildScale();
126
+ }
127
+ get colorEnd() {
128
+ return this._colorEnd;
129
+ }
130
+ set colorEnd(e) {
131
+ this._colorEnd = e || "#21b577", this.rebuildScale();
132
+ }
133
+ get inputLabel() {
134
+ return this._inputLabel;
135
+ }
136
+ set inputLabel(e) {
137
+ this._inputLabel = e ?? null, this.requestUpdate();
138
+ }
139
+ get transitionDuration() {
140
+ return this._transitionDuration;
141
+ }
142
+ set transitionDuration(e) {
143
+ this._transitionDuration = Math.max(0, Number(e) || 0), this.style.setProperty("--mp-hierarchy-chart-transition-duration", `${this._transitionDuration}ms`);
144
+ }
145
+ get locale() {
146
+ return this._locale;
147
+ }
148
+ set locale(e) {
149
+ this._locale = e || void 0, this.requestUpdate();
150
+ }
151
+ get tooltipFormatter() {
152
+ return this._tooltipFormatter;
153
+ }
154
+ set tooltipFormatter(e) {
155
+ this._tooltipFormatter = e;
156
+ }
157
+ get labelFormatter() {
158
+ return this._labelFormatter;
159
+ }
160
+ set labelFormatter(e) {
161
+ this._labelFormatter = e, this.requestUpdate();
162
+ }
163
+ get loadChildren() {
164
+ return this._loadChildren;
165
+ }
166
+ set loadChildren(e) {
167
+ this._loadChildren = e, this.requestUpdate();
168
+ }
169
+ get loadingLabel() {
170
+ return this._loadingLabel;
171
+ }
172
+ set loadingLabel(e) {
173
+ this._loadingLabel = e ?? "Loading";
174
+ }
175
+ rebuildScale() {
176
+ this._fill = o(this._colorMin, this._colorMax, this._colorStart, this._colorEnd), this.requestUpdate();
177
+ }
178
+ attributeChangedCallback(e, t, n) {
179
+ switch (super.attributeChangedCallback(e, t, n), e) {
180
+ case "layout":
181
+ this.layout = n ?? "sunburst";
182
+ break;
183
+ case "root-id":
184
+ this.rootId = n ?? void 0;
185
+ break;
186
+ case "max-depth":
187
+ n === null ? (this._maxDepth = void 0, this.requestUpdate()) : this.maxDepth = n === "auto" ? "auto" : Number(n);
188
+ break;
189
+ case "min-angle":
190
+ this.minAngle = f(n, .2);
191
+ break;
192
+ case "min-size":
193
+ this.minSize = f(n, 4);
194
+ break;
195
+ case "show-labels":
196
+ this.showLabels = i(n, !0);
197
+ break;
198
+ case "label-font-size":
199
+ this.labelFontSize = f(n, 12);
200
+ break;
201
+ case "backdrop":
202
+ this.backdrop = n ?? void 0;
203
+ break;
204
+ case "color-min":
205
+ this.colorMin = f(n, 0);
206
+ break;
207
+ case "color-max":
208
+ this.colorMax = f(n, 100);
209
+ break;
210
+ case "color-start":
211
+ this.colorStart = n ?? "#fe0000";
212
+ break;
213
+ case "color-end":
214
+ this.colorEnd = n ?? "#21b577";
215
+ break;
216
+ case "transition-duration":
217
+ this.transitionDuration = f(n, 300);
218
+ break;
219
+ case "locale":
220
+ this.locale = n ?? void 0;
221
+ break;
222
+ case "zoom-gestures":
223
+ this.zoomGestures = n ?? "wheel pinch";
224
+ break;
225
+ case "zoom-hint-label":
226
+ this._zoomHintLabel = n ?? void 0;
227
+ break;
228
+ case "show-breadcrumb":
229
+ this.showBreadcrumb = i(n, !1);
230
+ break;
231
+ case "breadcrumb-label":
232
+ this._breadcrumbLabel = n ?? "Chart path", this.requestUpdate();
233
+ break;
234
+ case "zoom-out-label":
235
+ this._zoomOutLabel = n ?? "Zoom out one level", this.requestUpdate();
236
+ break;
237
+ case "loading-label":
238
+ this._loadingLabel = n ?? "Loading";
239
+ break;
240
+ case "metric-unit-label":
241
+ this._metricUnitLabel = n ?? "%", this.requestUpdate();
242
+ break;
243
+ case "value-unit-label":
244
+ this._valueUnitLabel = n ?? "", this.requestUpdate();
245
+ break;
246
+ case "aria-label":
247
+ this.requestUpdate();
248
+ break;
249
+ case "input-label": this.inputLabel = n;
250
+ }
251
+ }
252
+ get showBreadcrumb() {
253
+ return this._showBreadcrumb;
254
+ }
255
+ set showBreadcrumb(e) {
256
+ this._showBreadcrumb = !!e, this.requestUpdate();
257
+ }
258
+ get breadcrumbLabel() {
259
+ return this._breadcrumbLabel;
260
+ }
261
+ set breadcrumbLabel(e) {
262
+ this._breadcrumbLabel = e || "Chart path", this.requestUpdate();
263
+ }
264
+ get zoomOutLabel() {
265
+ return this._zoomOutLabel;
266
+ }
267
+ set zoomOutLabel(e) {
268
+ this._zoomOutLabel = e || "Zoom out one level", this.requestUpdate();
269
+ }
270
+ get metricUnitLabel() {
271
+ return this._metricUnitLabel;
272
+ }
273
+ set metricUnitLabel(e) {
274
+ this._metricUnitLabel = e ?? "%", this.requestUpdate();
275
+ }
276
+ get valueUnitLabel() {
277
+ return this._valueUnitLabel;
278
+ }
279
+ set valueUnitLabel(e) {
280
+ this._valueUnitLabel = e ?? "", this.requestUpdate();
281
+ }
282
+ get focusedRoot() {
283
+ return this._index ? v(this._index, this._rootId) : void 0;
284
+ }
285
+ connectedCallback() {
286
+ super.connectedCallback(), this.addEventListener("wheel", this._wheelListener, { passive: !1 }), typeof ResizeObserver < "u" && (this._resizeObserver = new ResizeObserver((e) => {
287
+ let t = e[e.length - 1]?.contentRect.width;
288
+ if (!t) return;
289
+ let n = t / A;
290
+ Math.abs(n - this._hostScale) > .001 && (this._hostScale = n, this.requestUpdate());
291
+ }), this._resizeObserver.observe(this));
292
+ }
293
+ disconnectedCallback() {
294
+ this.removeEventListener("wheel", this._wheelListener), clearTimeout(this._hintTimer), this._resizeObserver?.disconnect(), this._resizeObserver = void 0, super.disconnectedCallback();
295
+ }
296
+ willUpdate(e) {
297
+ super.willUpdate(e), this._tween >= 1 && this.resolveBackdrop();
298
+ }
299
+ resolveBackdrop() {
300
+ if (this._backdropOverride) {
301
+ this._backdrop = this._backdropOverride;
302
+ return;
303
+ }
304
+ if (typeof getComputedStyle != "function") return;
305
+ let e = this;
306
+ for (; e;) {
307
+ let t = getComputedStyle(e).backgroundColor;
308
+ if (P(t)) {
309
+ this._backdrop = t;
310
+ return;
311
+ }
312
+ let n = e.getRootNode();
313
+ e = e.parentElement ?? (n instanceof ShadowRoot ? n.host : null);
314
+ }
315
+ }
316
+ surfaceToneOf(e, t) {
317
+ let n = this.fillOf(e), r = n ? s(n, this._backdrop, t) : void 0;
318
+ return this.toneOfSurface(r);
319
+ }
320
+ toneOfSurface(e) {
321
+ return ((e === void 0 ? void 0 : c(e)) ?? c(this._backdrop) ?? "dark") === "dark" ? "light" : "dark";
322
+ }
323
+ get zoomGestures() {
324
+ return this._gestures.size ? [...this._gestures].join(" ") : "none";
325
+ }
326
+ set zoomGestures(e) {
327
+ let t = (e ?? "").toLowerCase().split(/\s+/);
328
+ this._gestures = new Set(t.filter((e) => e === "wheel" || e === "pinch"));
329
+ }
330
+ get zoomHintLabel() {
331
+ return this._zoomHintLabel === void 0 ? typeof navigator < "u" && /Mac|iPhone|iPad/.test(navigator.platform ?? "") ? "Use ⌘ + scroll to zoom the chart" : "Use Ctrl + scroll to zoom the chart" : this._zoomHintLabel;
332
+ }
333
+ set zoomHintLabel(e) {
334
+ this._zoomHintLabel = e || void 0;
335
+ }
336
+ static {
337
+ this.MAX_ZOOM = 32;
338
+ }
339
+ get zoomLevel() {
340
+ return this._view.zoom;
341
+ }
342
+ setZoomLevel(e, t = .5, n = .5) {
343
+ this._view = x(this._view, e, t, n, E.MAX_ZOOM), this.requestUpdate();
344
+ }
345
+ resetZoom() {
346
+ this._view = t, this.requestUpdate();
347
+ }
348
+ panBy(e, t) {
349
+ let n = p(this._view, e, t);
350
+ n !== this._view && (this._view = n, this.requestUpdate());
351
+ }
352
+ viewRect(e, t, n, r) {
353
+ return _(this._view, e, t, n, r);
354
+ }
355
+ chartAnchor(e) {
356
+ let t = this.shadowRoot?.querySelector(".chart")?.getBoundingClientRect();
357
+ return g(t, e.clientX, e.clientY);
358
+ }
359
+ get effectiveScale() {
360
+ return this._hostScale * this._view.zoom;
361
+ }
362
+ onWheel(e) {
363
+ if (!this._gestures.has("wheel") || !this._index) return;
364
+ if (!e.ctrlKey && !e.metaKey) {
365
+ this.showZoomHint();
366
+ return;
367
+ }
368
+ e.preventDefault();
369
+ let t = e.deltaMode === 1 ? 16 : e.deltaMode === 2 ? this.clientHeight || 400 : 1, n = Math.max(-100, Math.min(100, e.deltaY * t)), r = this.chartAnchor(e);
370
+ this.setZoomLevel(this._view.zoom * Math.exp(-n * .005), r.x, r.y);
371
+ }
372
+ pinchDistance() {
373
+ let [e, t] = [...this._pinchPointers.values()];
374
+ return Math.hypot(t.x - e.x, t.y - e.y);
375
+ }
376
+ pinchMidpoint() {
377
+ let [e, t] = [...this._pinchPointers.values()];
378
+ return {
379
+ x: (e.x + t.x) / 2,
380
+ y: (e.y + t.y) / 2
381
+ };
382
+ }
383
+ onPointerDown(e) {
384
+ if (e.pointerType === "touch") {
385
+ if (!this._gestures.has("pinch")) return;
386
+ this._pinchPointers.set(e.pointerId, {
387
+ x: e.clientX,
388
+ y: e.clientY
389
+ });
390
+ } else this._view.zoom > 1 && e.button === 0 && (this._dragPointer = e.pointerId, this._dragLast = {
391
+ x: e.clientX,
392
+ y: e.clientY
393
+ }, this._dragTotal = 0, this._dragMoved = !1);
394
+ }
395
+ trackViewGesture(e) {
396
+ if (e.pointerType === "touch" && this._pinchPointers.has(e.pointerId)) {
397
+ if (this._pinchPointers.size !== 2) return this._pinchPointers.set(e.pointerId, {
398
+ x: e.clientX,
399
+ y: e.clientY
400
+ }), !1;
401
+ let t = this.pinchDistance(), n = this.pinchMidpoint();
402
+ if (this._pinchPointers.set(e.pointerId, {
403
+ x: e.clientX,
404
+ y: e.clientY
405
+ }), t > 0) {
406
+ let e = this.pinchMidpoint(), r = this.chartAnchor({
407
+ clientX: e.x,
408
+ clientY: e.y
409
+ });
410
+ this.setZoomLevel(this._view.zoom * (this.pinchDistance() / t), r.x, r.y);
411
+ let i = this.shadowRoot?.querySelector(".chart")?.getBoundingClientRect();
412
+ i?.width && i.height && this.panBy((e.x - n.x) / i.width, (e.y - n.y) / i.height);
413
+ }
414
+ return !0;
415
+ }
416
+ if (this._dragPointer === e.pointerId) {
417
+ let t = e.clientX - this._dragLast.x, n = e.clientY - this._dragLast.y;
418
+ this._dragLast = {
419
+ x: e.clientX,
420
+ y: e.clientY
421
+ }, this._dragTotal += Math.abs(t) + Math.abs(n), this._dragTotal > 3 && (this._dragMoved = !0);
422
+ let r = this.shadowRoot?.querySelector(".chart")?.getBoundingClientRect();
423
+ return r?.width && r.height && this.panBy(t / r.width, n / r.height), !0;
424
+ }
425
+ return !1;
426
+ }
427
+ endViewGesture(e) {
428
+ this._pinchPointers.delete(e.pointerId), this._dragPointer === e.pointerId && (this._dragPointer = null);
429
+ }
430
+ showZoomHint() {
431
+ this._hintVisible = !0, clearTimeout(this._hintTimer), this._hintTimer = setTimeout(() => {
432
+ this._hintVisible = !1, this.requestUpdate();
433
+ }, 1500), this.requestUpdate();
434
+ }
435
+ zoomTo(e) {
436
+ let t = this._index;
437
+ if (!t) return;
438
+ let n = v(t, e);
439
+ n !== this.focusedRoot && (this.resetZoom(), this.rootId = n === t.root ? void 0 : n.id, this.liveAnnouncer.announce(this.labelText(n)), this.emit("hierarchy-zoom", {
440
+ node: n,
441
+ path: h(t, n)
442
+ }));
443
+ }
444
+ focusNode(e) {
445
+ this._rendered.some((t) => t.id === e) && (this._focusedId = e, this._restoreFocus = !0, this.requestUpdate());
446
+ }
447
+ zoomOut() {
448
+ let e = this._index, t = this.focusedRoot;
449
+ e && t && t !== e.root && this.zoomTo(e.parents.get(t.id)?.id);
450
+ }
451
+ beginTween() {
452
+ if (this._transitionDuration <= 0 || M() || this._layout !== "sunburst" || !this._prevSpans.size) return;
453
+ cancelAnimationFrame(this._tweenFrame);
454
+ let e = performance.now(), t = (n) => {
455
+ this._tween = Math.min(1, (n - e) / this._transitionDuration), this.requestUpdate(), this._tween < 1 && (this._tweenFrame = requestAnimationFrame(t));
456
+ };
457
+ this._tween = 0, this._tweenFrame = requestAnimationFrame(t);
458
+ }
459
+ tweenedSpan(e) {
460
+ if (this._tween >= 1) return e;
461
+ let t = 1 - (1 - this._tween) * (1 - this._tween), n = this._prevSpans.get(e.node.id) ?? {
462
+ x0: e.x0,
463
+ x1: e.x0
464
+ };
465
+ return {
466
+ x0: n.x0 + (e.x0 - n.x0) * t,
467
+ x1: n.x1 + (e.x1 - n.x1) * t
468
+ };
469
+ }
470
+ nodeFromEvent(e) {
471
+ let t = (e.composedPath()[0]?.closest?.("[data-id]"))?.getAttribute("data-id");
472
+ return t ? this._index?.byId.get(t) : void 0;
473
+ }
474
+ onClick(e) {
475
+ if (this._dragMoved) {
476
+ this._dragMoved = !1;
477
+ return;
478
+ }
479
+ let t = this._index, n = this.nodeFromEvent(e);
480
+ t && n && (n === this.focusedRoot ? this.zoomOut() : (this._failedIds.delete(n.id), this._loadedIds.delete(n.id), n.children?.length || n.hasChildren && this._loadChildren ? this.zoomTo(n.id) : this.emit("hierarchy-node-select", {
481
+ node: n,
482
+ path: h(t, n)
483
+ })));
484
+ }
485
+ get tooltipEl() {
486
+ return this.shadowRoot?.querySelector(".chart-tooltip") ?? null;
487
+ }
488
+ isTooltipVisible() {
489
+ return this.tooltipEl?.hasAttribute("data-visible") ?? !1;
490
+ }
491
+ showTooltip(e, t, n) {
492
+ let r = this.tooltipEl, i = this.shadowRoot?.querySelector(".chart");
493
+ if (!r || !i) return;
494
+ r.textContent = this.tooltipText(e), r.setAttribute("data-visible", "");
495
+ let a = r.offsetWidth, o = r.offsetHeight;
496
+ r.style.left = `${Math.max(0, Math.min(t + 12, i.clientWidth - a))}px`, r.style.top = `${Math.max(0, Math.min(n + 12, i.clientHeight - o))}px`;
497
+ }
498
+ hideTooltip() {
499
+ this.tooltipEl?.removeAttribute("data-visible");
500
+ }
501
+ onPointerMove(e) {
502
+ let t = this._index;
503
+ if (!t || this.trackViewGesture(e)) return;
504
+ let n = this.nodeFromEvent(e);
505
+ if (!n || n === this.focusedRoot) this.clearHover();
506
+ else {
507
+ if (n.id !== this._dismissedForId) {
508
+ this._dismissedForId = null;
509
+ let t = this.shadowRoot?.querySelector(".chart")?.getBoundingClientRect();
510
+ t && this.showTooltip(n, e.clientX - t.left, e.clientY - t.top);
511
+ }
512
+ this._hoveredId !== n.id && (this._hoveredId = n.id, this.emit("hierarchy-node-hover", {
513
+ node: n,
514
+ path: h(t, n)
515
+ }));
516
+ }
517
+ }
518
+ clearHover() {
519
+ this.hideTooltip(), this._dismissedForId = null, this._hoveredId !== null && (this._hoveredId = null, this.emit("hierarchy-node-hover", {
520
+ node: null,
521
+ path: []
522
+ }));
523
+ }
524
+ onFocusIn(e) {
525
+ let t = e.composedPath()[0]?.closest?.("[role=\"treeitem\"][data-id]"), n = t?.getAttribute("data-id"), r = n ? this._index?.byId.get(n) : void 0;
526
+ if (!r || r === this.focusedRoot || r.id === this._dismissedForId) return;
527
+ this._dismissedForId = null;
528
+ let i = this.shadowRoot?.querySelector(".chart")?.getBoundingClientRect(), a = t?.getBoundingClientRect();
529
+ i && a && this.showTooltip(r, a.left - i.left + a.width / 2, a.top - i.top + a.height / 2);
530
+ }
531
+ onFocusOut() {
532
+ this.hideTooltip();
533
+ }
534
+ tooltipText(e) {
535
+ let t = this._tooltipFormatter?.(e);
536
+ if (t !== void 0) return t;
537
+ let n = new Intl.NumberFormat(this._locale || this.closest("[lang]")?.getAttribute("lang") || void 0), r = this._index?.colorValues.get(e.id), i = this._index?.values.get(e.id);
538
+ return [
539
+ e.name,
540
+ r === void 0 ? void 0 : `${n.format(Math.round(r * 10) / 10)}%`,
541
+ i !== void 0 && i > 0 ? n.format(i) : void 0
542
+ ].filter((e) => e !== void 0).join(" — ");
543
+ }
544
+ labelText(e) {
545
+ return this._labelFormatter?.(e) ?? e.name;
546
+ }
547
+ accessibleName(e) {
548
+ let t = new Intl.NumberFormat(this._locale || this.closest("[lang]")?.getAttribute("lang") || void 0), n = this._index?.colorValues.get(e.id), r = this._index?.values.get(e.id);
549
+ return [
550
+ this.labelText(e),
551
+ n === void 0 ? void 0 : `${t.format(Math.round(n * 10) / 10)}${this._metricUnitLabel}`,
552
+ r !== void 0 && r > 0 ? `${t.format(r)}${this._valueUnitLabel ? ` ${this._valueUnitLabel}` : ""}` : void 0
553
+ ].filter((e) => e !== void 0).join(", ");
554
+ }
555
+ emit(e, t) {
556
+ this.dispatchEvent(new CustomEvent(e, {
557
+ detail: t,
558
+ bubbles: !0,
559
+ composed: !0
560
+ }));
561
+ }
562
+ onKeyDown(e) {
563
+ let t = this._index, n = (e.composedPath()[0]?.closest?.("[role=\"treeitem\"][data-id]"))?.getAttribute("data-id");
564
+ if (!t || !n) return;
565
+ let r = (e) => {
566
+ e !== void 0 && (this._focusedId = e, this._restoreFocus = !0, this.requestUpdate());
567
+ }, i = this._rendered.find((e) => e.id === n), a = this._rendered.filter((e) => e.parentId === i?.parentId), o = a.findIndex((e) => e.id === n);
568
+ switch (e.key) {
569
+ case "ArrowRight":
570
+ r(a[(o + 1) % a.length]?.id);
571
+ break;
572
+ case "ArrowLeft":
573
+ r(a[(o - 1 + a.length) % a.length]?.id);
574
+ break;
575
+ case "ArrowDown":
576
+ r(this._rendered.find((e) => e.parentId === n)?.id);
577
+ break;
578
+ case "ArrowUp":
579
+ r(this._rendered.some((e) => e.id === i?.parentId) ? i?.parentId ?? void 0 : void 0);
580
+ break;
581
+ case "Home":
582
+ r(a[0]?.id);
583
+ break;
584
+ case "End":
585
+ r(a[a.length - 1]?.id);
586
+ break;
587
+ case "Enter": {
588
+ let e = t.byId.get(n);
589
+ if (!e) return;
590
+ this._failedIds.delete(e.id), this._loadedIds.delete(e.id), e === this.focusedRoot ? this.zoomOut() : e.children?.length || e.hasChildren && this._loadChildren ? this.zoomTo(e.id) : this.emit("hierarchy-node-select", {
591
+ node: e,
592
+ path: h(t, e)
593
+ });
594
+ break;
595
+ }
596
+ case "Escape":
597
+ if (this.isTooltipVisible()) {
598
+ this.hideTooltip(), this._dismissedForId = n;
599
+ break;
600
+ }
601
+ if (this._view.zoom > 1) {
602
+ this.resetZoom();
603
+ break;
604
+ }
605
+ if (this.focusedRoot === this._index?.root) return;
606
+ this.zoomOut();
607
+ break;
608
+ case "Backspace":
609
+ if (this.focusedRoot === this._index?.root) return;
610
+ this.zoomOut();
611
+ break;
612
+ case "+":
613
+ case "=":
614
+ this.zoomKeyboard(n, this._view.zoom * 1.5);
615
+ break;
616
+ case "-":
617
+ case "_":
618
+ this.zoomKeyboard(n, this._view.zoom / 1.5);
619
+ break;
620
+ case "0":
621
+ this.resetZoom();
622
+ break;
623
+ default:
624
+ this.handleTypeahead(e, n);
625
+ return;
626
+ }
627
+ e.preventDefault(), e.stopPropagation();
628
+ }
629
+ zoomKeyboard(e, t) {
630
+ let n = this.shadowRoot?.querySelector(`[role="treeitem"][data-id="${F(e)}"]`), r = this.shadowRoot?.querySelector(".chart")?.getBoundingClientRect(), i = n?.getBoundingClientRect(), a = r?.width && i?.width ? this.chartAnchor({
631
+ clientX: i.left + i.width / 2,
632
+ clientY: i.top + i.height / 2
633
+ }) : {
634
+ x: .5,
635
+ y: .5
636
+ };
637
+ this.setZoomLevel(t, a.x, a.y);
638
+ }
639
+ handleTypeahead(e, t) {
640
+ if (e.key.length !== 1 || e.ctrlKey || e.metaKey || e.altKey) return;
641
+ clearTimeout(this._typeaheadTimer), this._typeahead += e.key.toLowerCase(), this._typeaheadTimer = setTimeout(() => this._typeahead = "", 500);
642
+ let n = this._index;
643
+ if (!n) return;
644
+ let r = this._rendered, i = r.findIndex((e) => e.id === t), a = [...r.slice(i + 1), ...r.slice(0, i + 1)].find((e) => {
645
+ let t = n.byId.get(e.id);
646
+ return t ? this.labelText(t).toLowerCase().startsWith(this._typeahead) : !1;
647
+ });
648
+ a && (this._focusedId = a.id, this._restoreFocus = !0, this.requestUpdate(), e.preventDefault());
649
+ }
650
+ resolveTabFocus() {
651
+ if (!(this._focusedId && this._rendered.some((e) => e.id === this._focusedId))) {
652
+ let e = this._rendered[0]?.id, t = !!this.shadowRoot?.activeElement;
653
+ this._focusedId = e ?? null, t && e && (this._restoreFocus = !0);
654
+ }
655
+ return this._focusedId ?? void 0;
656
+ }
657
+ updated(e) {
658
+ super.updated(e), this._restoreFocus && this._focusedId && (this._restoreFocus = !1, this.shadowRoot?.querySelector(`[role="treeitem"][data-id="${F(this._focusedId)}"]`)?.focus({ preventScroll: !0 })), this.loadLazyCandidates();
659
+ }
660
+ isLazy(e) {
661
+ return !!e && !!e.hasChildren && !e.children?.length && !this._loadedIds.has(e.id);
662
+ }
663
+ loadLazyCandidates() {
664
+ let e = this._loadChildren, t = this._index;
665
+ if (!e || !t) return;
666
+ let n = this.focusedRoot, r = this.maxDepth === "auto", i = this.renderedDepth, o = [...this.isLazy(n) ? [n] : [], ...this._rendered.filter((e) => r || e.depth < i).map((e) => t.byId.get(e.id)).filter((e) => this.isLazy(e))].filter((e) => !this._loadingIds.has(e.id) && !this._failedIds.has(e.id));
667
+ o.map((t) => (this._loadingIds.add(t.id), t === n && this.liveAnnouncer.announce(`${this._loadingLabel} ${this.labelText(t)}`), e(t).then((e) => {
668
+ t.children = e, this._loadingIds.delete(t.id), this._loadedIds.add(t.id), this._data && (this._index = a(this._data)), this.requestUpdate();
669
+ }, (e) => {
670
+ this._loadingIds.delete(t.id), this._failedIds.add(t.id), this.emit("hierarchy-node-load-error", {
671
+ node: t,
672
+ error: e
673
+ }), this.requestUpdate();
674
+ }), t)), o.length && this.requestUpdate();
675
+ }
676
+ fillOf(e) {
677
+ if (e.color) return e.color;
678
+ let t = this._index?.colorValues.get(e.id);
679
+ return t === void 0 ? void 0 : this._fill(t);
680
+ }
681
+ treeLabel() {
682
+ return this.getAttribute("aria-label") ?? this._inputLabel;
683
+ }
684
+ renderBreadcrumb(e, t) {
685
+ let n = h(e, t);
686
+ return C`<nav class="breadcrumb" aria-label=${this._breadcrumbLabel}>
687
+ ${n.map((t, r) => r === n.length - 1 ? C`<span class="crumb-current" aria-current="location">${this.labelText(t)}</span>` : C`<button
1041
688
  type="button"
1042
689
  class="crumb"
1043
- @click=${() => this.zoomTo(r === e.root ? void 0 : r.id)}
1044
- >${this.labelText(r)}</button><span class="crumb-sep" aria-hidden="true">/</span>`)}
690
+ @click=${() => this.zoomTo(t === e.root ? void 0 : t.id)}
691
+ >${this.labelText(t)}</button><span class="crumb-sep" aria-hidden="true">/</span>`)}
1045
692
  </nav>`;
1046
- }
1047
- render() {
1048
- const e = this._index, i = this.focusedRoot;
1049
- return !e || !i ? c`<div class="chart"></div>` : c`${this._showBreadcrumb ? this.renderBreadcrumb(e, i) : d}<div
693
+ }
694
+ render() {
695
+ let e = this._index, t = this.focusedRoot;
696
+ return !e || !t ? C`<div class="chart"></div>` : C`${this._showBreadcrumb ? this.renderBreadcrumb(e, t) : w}<div
1050
697
  class="chart ${this._gestures.has("pinch") ? "pinch" : ""}"
1051
698
  @click=${this.onClick}
1052
699
  @keydown=${this.onKeyDown}
@@ -1058,213 +705,181 @@ class x extends U {
1058
705
  @focusin=${this.onFocusIn}
1059
706
  @focusout=${this.onFocusOut}
1060
707
  >
1061
- ${this._layout === "sunburst" ? this.renderSunburst(e) : this._layout === "icicle" ? this.renderIcicle(e, i) : this.renderTreemap(e, i)}
708
+ ${this._layout === "sunburst" ? this.renderSunburst(e) : this._layout === "icicle" ? this.renderIcicle(e, t) : this.renderTreemap(e, t)}
1062
709
  <div class="chart-tooltip" aria-hidden="true"></div>
1063
- ${this._hintVisible && this._gestures.has("wheel") ? c`<div class="zoom-hint" aria-hidden="true">${this.zoomHintLabel}</div>` : d}
710
+ ${this._hintVisible && this._gestures.has("wheel") ? C`<div class="zoom-hint" aria-hidden="true">${this.zoomHintLabel}</div>` : w}
1064
711
  ${this.liveAnnouncer.template()}
1065
712
  </div>`;
1066
- }
1067
- captureRendered(e, i) {
1068
- this._rendered = e.map((t) => ({
1069
- id: t.node.id,
1070
- parentId: this._index?.parents.get(t.node.id)?.id ?? i,
1071
- depth: t.depth
1072
- })), this._tabFocusId = this.resolveTabFocus();
1073
- }
1074
- /* ---------- sunburst ---------- */
1075
- renderSunburst(e) {
1076
- const i = this.focusedRoot, t = this.renderedDepth, r = T(e, this._rootId, {
1077
- maxDepth: t,
1078
- // The cull relaxes with magnification: a sliver you zoomed into is no
1079
- // longer a sliver on screen.
1080
- minFraction: this._minAngle / 360 / this._view.zoom
1081
- }), o = u / 2 / (t + 1), a = this.treeLabel(), s = new Map(r.map((l) => [l.node.id, this.tweenedSpan(l)]));
1082
- this._prevSpans = new Map(
1083
- [...s.entries()].map(([l, _]) => [l, { ..._, depth: 0 }])
1084
- ), this.captureRendered(r, i?.id ?? "");
1085
- const n = i === e.root, h = 100 / (t + 1) * 0.9, f = this._view.zoom, w = this.viewRect(0.5, 0.5, 0.5, 0.5);
1086
- return c`<svg
1087
- viewBox="${this._view.x * u} ${this._view.y * u} ${u / f} ${u / f}"
713
+ }
714
+ captureRendered(e, t) {
715
+ this._rendered = e.map((e) => ({
716
+ id: e.node.id,
717
+ parentId: this._index?.parents.get(e.node.id)?.id ?? t,
718
+ depth: e.depth
719
+ })), this._tabFocusId = this.resolveTabFocus();
720
+ }
721
+ renderSunburst(e) {
722
+ let t = this.focusedRoot, r = this.renderedDepth, i = m(e, this._rootId, {
723
+ maxDepth: r,
724
+ minFraction: this._minAngle / 360 / this._view.zoom
725
+ }), a = A / 2 / (r + 1), o = this.treeLabel(), s = new Map(i.map((e) => [e.node.id, this.tweenedSpan(e)]));
726
+ this._prevSpans = new Map([...s.entries()].map(([e, t]) => [e, {
727
+ ...t,
728
+ depth: 0
729
+ }])), this.captureRendered(i, t?.id ?? "");
730
+ let c = t === e.root, l = 100 / (r + 1) * .9, u = this._view.zoom, d = this.viewRect(.5, .5, .5, .5);
731
+ return C`<svg
732
+ viewBox="${this._view.x * A} ${this._view.y * A} ${A / u} ${A / u}"
1088
733
  role="tree"
1089
- aria-label=${a ?? d}
734
+ aria-label=${o ?? w}
1090
735
  >
1091
736
  <!-- role=none: this group only centres the geometry, and an unroled node
1092
737
  between role=tree and its treeitems is an aria-required-parent risk. -->
1093
- <g role="none" transform="translate(${u / 2},${u / 2})">
1094
- ${g(r, (l) => l.node.id, (l) => this.renderArc(l, s.get(l.node.id) ?? l, o))}
1095
- ${this._showLabels && this._tween >= 1 ? g(
1096
- r.map((l) => ({ n: l, fit: this.arcLabelFit(l, o) })).filter(({ fit: l }) => l.visible),
1097
- ({ n: l }) => `label-${l.node.id}`,
1098
- ({ n: l, fit: _ }) => z`<text
738
+ <g role="none" transform="translate(${A / 2},${A / 2})">
739
+ ${D(i, (e) => e.node.id, (e) => this.renderArc(e, s.get(e.node.id) ?? e, a))}
740
+ ${this._showLabels && this._tween >= 1 ? D(i.map((e) => ({
741
+ n: e,
742
+ fit: this.arcLabelFit(e, a)
743
+ })).filter(({ fit: e }) => e.visible), ({ n: e }) => `label-${e.node.id}`, ({ n: e, fit: t }) => T`<text
1099
744
  class="arc-label"
1100
745
  aria-hidden="true"
1101
746
  font-size=${Math.round(this._labelFontSize / this.effectiveScale * 100) / 100}
1102
- data-surface=${this.surfaceToneOf(l.node, l.hasChildren ? 1 : 0.6)}
1103
- transform=${B(l.x0, l.x1, (l.depth + 0.5) * o, _.orientation)}
1104
- >${_.text}</text>`
1105
- ) : d}
747
+ data-surface=${this.surfaceToneOf(e.node, e.hasChildren ? 1 : .6)}
748
+ transform=${n(e.x0, e.x1, (e.depth + .5) * a, t.orientation)}
749
+ >${t.text}</text>`) : w}
1106
750
  </g>
1107
751
  </svg>
1108
752
  <button
1109
753
  class="center-control"
1110
754
  aria-label=${this._zoomOutLabel}
1111
- title=${n ? d : this._zoomOutLabel}
1112
- ?disabled=${n}
1113
- style=${v({
1114
- left: `${w.x0 * 100}%`,
1115
- top: `${w.y0 * 100}%`,
1116
- width: `${h * f}%`,
1117
- height: `${h * f}%`
1118
- })}
755
+ title=${c ? w : this._zoomOutLabel}
756
+ ?disabled=${c}
757
+ style=${O({
758
+ left: `${d.x0 * 100}%`,
759
+ top: `${d.y0 * 100}%`,
760
+ width: `${l * u}%`,
761
+ height: `${l * u}%`
762
+ })}
1119
763
  @click=${this.zoomOut}
1120
- >${i ? this.labelText(i) : ""}</button>`;
1121
- }
1122
- renderArc(e, i, t) {
1123
- const r = N(0, 0, e.depth * t, (e.depth + 1) * t, i.x0 * y, i.x1 * y, {
1124
- padAngle: 5e-3
1125
- }), o = this.fillOf(e.node);
1126
- return z`<path
764
+ >${t ? this.labelText(t) : ""}</button>`;
765
+ }
766
+ renderArc(e, t, n) {
767
+ let i = r(0, 0, e.depth * n, (e.depth + 1) * n, t.x0 * j, t.x1 * j, { padAngle: .005 }), a = this.fillOf(e.node);
768
+ return T`<path
1127
769
  class="ring"
1128
770
  data-id=${e.node.id}
1129
771
  ?data-leaf=${!e.hasChildren}
1130
772
  ?data-loading=${this._loadingIds.has(e.node.id)}
1131
773
  ?data-load-error=${this._failedIds.has(e.node.id)}
1132
- d=${r}
1133
- fill=${o ?? "var(--mp-hierarchy-chart-node-fill)"}
774
+ d=${i}
775
+ fill=${a ?? "var(--mp-hierarchy-chart-node-fill)"}
1134
776
  role="treeitem"
1135
777
  tabindex=${e.node.id === this._tabFocusId ? "0" : "-1"}
1136
778
  aria-label=${this.accessibleName(e.node)}
1137
779
  aria-level=${e.level}
1138
780
  aria-setsize=${e.setsize}
1139
781
  aria-posinset=${e.posinset}
1140
- aria-expanded=${e.hasChildren ? String(e.depth < this.renderedDepth && !!e.node.children?.length) : d}
1141
- aria-busy=${this._loadingIds.has(e.node.id) ? "true" : d}
782
+ aria-expanded=${e.hasChildren ? String(e.depth < this.renderedDepth && !!e.node.children?.length) : w}
783
+ aria-busy=${this._loadingIds.has(e.node.id) ? "true" : w}
1142
784
  ></path>`;
1143
- }
1144
- /**
1145
- * Fit the (formatted) name into the arc IN DEVICE PX — the same 12px label
1146
- * needs a bigger arc on a small host, and re-rooting is what makes arcs big
1147
- * enough, so labels appear as you zoom in.
1148
- */
1149
- arcLabelFit(e, i) {
1150
- return H(
1151
- this.labelText(e.node),
1152
- (e.x1 - e.x0) * y,
1153
- e.depth * i * this.effectiveScale,
1154
- (e.depth + 1) * i * this.effectiveScale,
1155
- this._labelFontSize
1156
- );
1157
- }
1158
- /* ---------- icicle ---------- */
1159
- renderIcicle(e, i) {
1160
- const t = this.renderedDepth, r = T(e, this._rootId, {
1161
- maxDepth: t,
1162
- minFraction: this._minSize / u / this._view.zoom
1163
- }), o = t + 1, a = this.treeLabel();
1164
- this.captureRendered(r, i.id);
1165
- const s = this.viewRect(0, 0, 1 / o, 1);
1166
- return c`<div class="icicle" role="tree" aria-label=${a ?? d}>
785
+ }
786
+ arcLabelFit(e, t) {
787
+ return l(this.labelText(e.node), (e.x1 - e.x0) * j, e.depth * t * this.effectiveScale, (e.depth + 1) * t * this.effectiveScale, this._labelFontSize);
788
+ }
789
+ renderIcicle(e, t) {
790
+ let n = this.renderedDepth, r = m(e, this._rootId, {
791
+ maxDepth: n,
792
+ minFraction: this._minSize / A / this._view.zoom
793
+ }), i = n + 1, a = this.treeLabel();
794
+ this.captureRendered(r, t.id);
795
+ let o = this.viewRect(0, 0, 1 / i, 1);
796
+ return C`<div class="icicle" role="tree" aria-label=${a ?? w}>
1167
797
  <div
1168
798
  class="cell focus-cell"
1169
- data-id=${i.id}
799
+ data-id=${t.id}
1170
800
  data-surface=${this.toneOfSurface(void 0)}
1171
801
  role="treeitem"
1172
802
  tabindex="-1"
1173
- aria-label=${this.accessibleName(i)}
1174
- aria-level=${Z(e, i)}
803
+ aria-label=${this.accessibleName(t)}
804
+ aria-level=${d(e, t)}
1175
805
  aria-setsize="1"
1176
806
  aria-posinset="1"
1177
807
  aria-expanded="true"
1178
- title=${i === e.root ? d : this._zoomOutLabel}
1179
- style=${v({ ...this.cellGeometry(s), fontSize: `${this._labelFontSize}px` })}
1180
- >${this._showLabels && this.cellLabelFits(s) ? c`<span class="cell-label">${this.labelText(i)}</span>` : d}</div>
1181
- ${g(
1182
- r,
1183
- (n) => n.node.id,
1184
- (n) => this.renderCell(
1185
- n,
1186
- this.viewRect(n.depth / o, n.x0, (n.depth + 1) / o, n.x1),
1187
- n.hasChildren && n.depth < this.renderedDepth && !!n.node.children?.length
1188
- )
1189
- )}
808
+ title=${t === e.root ? w : this._zoomOutLabel}
809
+ style=${O({
810
+ ...this.cellGeometry(o),
811
+ fontSize: `${this._labelFontSize}px`
812
+ })}
813
+ >${this._showLabels && this.cellLabelFits(o) ? C`<span class="cell-label">${this.labelText(t)}</span>` : w}</div>
814
+ ${D(r, (e) => e.node.id, (e) => this.renderCell(e, this.viewRect(e.depth / i, e.x0, (e.depth + 1) / i, e.x1), e.hasChildren && e.depth < this.renderedDepth && !!e.node.children?.length))}
1190
815
  </div>`;
1191
- }
1192
- /* ---------- treemap ---------- */
1193
- renderTreemap(e, i) {
1194
- const t = this.renderedDepth, r = G(e, this._rootId, {
1195
- maxDepth: t,
1196
- minArea: (this._minSize / u) ** 2 / (this._view.zoom * this._view.zoom),
1197
- childPadding: 4e-3,
1198
- childHeaderSpace: 0.028
1199
- }), o = this.treeLabel(), a = m(e, i).map((s) => this.labelText(s)).join(" / ");
1200
- return this.captureRendered(r, i.id), c`<div class="treemap">
816
+ }
817
+ renderTreemap(e, t) {
818
+ let n = this.renderedDepth, r = y(e, this._rootId, {
819
+ maxDepth: n,
820
+ minArea: (this._minSize / A) ** 2 / (this._view.zoom * this._view.zoom),
821
+ childPadding: .004,
822
+ childHeaderSpace: .028
823
+ }), i = this.treeLabel(), a = h(e, t).map((e) => this.labelText(e)).join(" / ");
824
+ return this.captureRendered(r, t.id), C`<div class="treemap">
1201
825
  <button
1202
826
  class="treemap-header"
1203
827
  aria-label=${this._zoomOutLabel}
1204
828
  title=${a}
1205
- ?disabled=${i === e.root}
829
+ ?disabled=${t === e.root}
1206
830
  @click=${this.zoomOut}
1207
831
  >${a}</button>
1208
- <div class="treemap-body" role="tree" aria-label=${o ?? d}>
1209
- ${g(
1210
- r,
1211
- (s) => s.node.id,
1212
- (s) => this.renderCell(
1213
- s,
1214
- this.viewRect(s.x0, s.y0, s.x1, s.y1),
1215
- s.hasChildren && s.depth < this.renderedDepth && !!s.node.children?.length
1216
- )
1217
- )}
832
+ <div class="treemap-body" role="tree" aria-label=${i ?? w}>
833
+ ${D(r, (e) => e.node.id, (e) => this.renderCell(e, this.viewRect(e.x0, e.y0, e.x1, e.y1), e.hasChildren && e.depth < this.renderedDepth && !!e.node.children?.length))}
1218
834
  </div>
1219
835
  </div>`;
1220
- }
1221
- cellGeometry(e) {
1222
- return {
1223
- left: `${e.x0 * 100}%`,
1224
- top: `${e.y0 * 100}%`,
1225
- width: `${(e.x1 - e.x0) * 100}%`,
1226
- height: `${(e.y1 - e.y0) * 100}%`
1227
- };
1228
- }
1229
- cellLabelFits(e) {
1230
- const i = u * this._hostScale;
1231
- return X((e.x1 - e.x0) * i, (e.y1 - e.y0) * i, this._labelFontSize);
1232
- }
1233
- renderCell(e, i, t) {
1234
- const r = this._layout === "treemap" && t, o = r ? void 0 : this.fillOf(e.node), a = this._showLabels && this.cellLabelFits(i);
1235
- return c`<div
836
+ }
837
+ cellGeometry(e) {
838
+ return {
839
+ left: `${e.x0 * 100}%`,
840
+ top: `${e.y0 * 100}%`,
841
+ width: `${(e.x1 - e.x0) * 100}%`,
842
+ height: `${(e.y1 - e.y0) * 100}%`
843
+ };
844
+ }
845
+ cellLabelFits(e) {
846
+ let t = A * this._hostScale;
847
+ return u((e.x1 - e.x0) * t, (e.y1 - e.y0) * t, this._labelFontSize);
848
+ }
849
+ renderCell(e, t, n) {
850
+ let r = this._layout === "treemap" && n, i = r ? void 0 : this.fillOf(e.node), a = this._showLabels && this.cellLabelFits(t);
851
+ return C`<div
1236
852
  class="cell"
1237
853
  data-id=${e.node.id}
1238
854
  ?data-leaf=${!e.hasChildren}
1239
855
  ?data-branch=${r}
1240
856
  ?data-loading=${this._loadingIds.has(e.node.id)}
1241
857
  ?data-load-error=${this._failedIds.has(e.node.id)}
1242
- data-surface=${o ? this.surfaceToneOf(e.node, 1) : this.toneOfSurface(void 0)}
858
+ data-surface=${i ? this.surfaceToneOf(e.node, 1) : this.toneOfSurface(void 0)}
1243
859
  role="treeitem"
1244
860
  tabindex=${e.node.id === this._tabFocusId ? "0" : "-1"}
1245
861
  aria-label=${this.accessibleName(e.node)}
1246
862
  aria-level=${e.level}
1247
863
  aria-setsize=${e.setsize}
1248
864
  aria-posinset=${e.posinset}
1249
- aria-expanded=${e.hasChildren ? String(t) : d}
1250
- aria-busy=${this._loadingIds.has(e.node.id) ? "true" : d}
1251
- style=${v({
1252
- ...this.cellGeometry(i),
1253
- fontSize: `${this._labelFontSize}px`,
1254
- ...o ? { background: o } : {}
1255
- })}
1256
- >${a ? c`<span class="cell-label">${this.labelText(e.node)}</span>` : d}</div>`;
1257
- }
1258
- }
1259
- function j(p) {
1260
- if (!p || p === "transparent") return !1;
1261
- const e = p.match(/^rgba\([^)]+,\s*([\d.]+)\s*\)$/i)?.[1];
1262
- return e !== void 0 ? Number(e) >= 1 : /^(rgb\(|#|hsl\()/i.test(p);
865
+ aria-expanded=${e.hasChildren ? String(n) : w}
866
+ aria-busy=${this._loadingIds.has(e.node.id) ? "true" : w}
867
+ style=${O({
868
+ ...this.cellGeometry(t),
869
+ fontSize: `${this._labelFontSize}px`,
870
+ ...i ? { background: i } : {}
871
+ })}
872
+ >${a ? C`<span class="cell-label">${this.labelText(e.node)}</span>` : w}</div>`;
873
+ }
874
+ };
875
+ function P(e) {
876
+ if (!e || e === "transparent") return !1;
877
+ let t = e.match(/^rgba\([^)]+,\s*([\d.]+)\s*\)$/i)?.[1];
878
+ return t === void 0 ? /^(rgb\(|#|hsl\()/i.test(e) : Number(t) >= 1;
1263
879
  }
1264
- function M(p) {
1265
- return typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(p) : p.replace(/["\\]/g, "\\$&");
880
+ function F(e) {
881
+ return typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/["\\]/g, "\\$&");
1266
882
  }
1267
- typeof customElements < "u" && !customElements.get("mp-hierarchy-chart") && customElements.define("mp-hierarchy-chart", x);
1268
- export {
1269
- x as MpHierarchyChart
1270
- };
883
+ typeof customElements < "u" && !customElements.get("mp-hierarchy-chart") && customElements.define("mp-hierarchy-chart", N);
884
+ //#endregion
885
+ export { N as MpHierarchyChart };