@mintplayer/web-components 2.19.0 → 2.20.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 (1018) 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-qkYf-N0c.mjs +1786 -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 +939 -1041
  490. package/datatable/index.mjs +1 -8
  491. package/datepicker/index.mjs +128 -215
  492. package/datetime-picker/index.mjs +1 -4
  493. package/dock/index.mjs +1871 -2471
  494. package/dropdown-menu/index.mjs +157 -601
  495. package/file-manager/index.mjs +771 -1180
  496. package/flags/index.mjs +1 -264
  497. package/index.mjs +0 -1
  498. package/input-group/index.mjs +1 -4
  499. package/light-dom/index.mjs +188 -11
  500. package/multi-range/index.mjs +233 -402
  501. package/navbar/index.mjs +224 -1010
  502. package/otp-input/index.mjs +249 -374
  503. package/overlay/index.mjs +1 -7
  504. package/package.json +1 -1
  505. package/pagination/index.mjs +1 -5
  506. package/phone-core/index.mjs +120 -8
  507. package/phone-input/index.mjs +380 -493
  508. package/query-builder/index.mjs +1502 -2277
  509. package/radio/index.mjs +1 -4
  510. package/radio-group/index.mjs +126 -144
  511. package/ribbon/index.mjs +1158 -1497
  512. package/scheduler/index.mjs +3456 -6576
  513. package/scheduler-core/index.mjs +1 -197
  514. package/select/index.mjs +1 -4
  515. package/shell/index.mjs +98 -572
  516. package/signature-pad/index.mjs +180 -207
  517. package/splitter/index.mjs +1 -10
  518. package/swiper-core/index.mjs +1 -184
  519. package/tab-control/index.mjs +1 -6
  520. package/theming/index.mjs +229 -317
  521. package/tile-manager/index.mjs +746 -899
  522. package/timeline/index.mjs +476 -754
  523. package/timeline-core/index.mjs +1 -23
  524. package/timepicker/index.mjs +1 -9
  525. package/toggle-button/index.mjs +1 -5
  526. package/tree-select/index.mjs +467 -769
  527. package/treeview/index.mjs +1 -5
  528. package/badge/src/styles/badge.styles.d.ts +0 -2
  529. package/chunks/ac-C5mj7mOe.mjs +0 -5
  530. package/chunks/ad-DuKUeTXh.mjs +0 -5
  531. package/chunks/ae-BFJrplpe.mjs +0 -5
  532. package/chunks/af-BIQlNFtj.mjs +0 -5
  533. package/chunks/ag-B9GDO0Ip.mjs +0 -5
  534. package/chunks/ai-pifHTP5K.mjs +0 -5
  535. package/chunks/al-CWQ3OuN9.mjs +0 -5
  536. package/chunks/all-flags-BtYcfgjy.mjs +0 -8
  537. package/chunks/all-flags.generated-B7Rctzuq.mjs +0 -493
  538. package/chunks/am-Do56ciQl.mjs +0 -5
  539. package/chunks/ao-Ci_fen-O.mjs +0 -5
  540. package/chunks/ar-BEZTIgF7.mjs +0 -5
  541. package/chunks/as-B29efaG_.mjs +0 -5
  542. package/chunks/at-c7xv31cV.mjs +0 -5
  543. package/chunks/attributes-L3eKsbdy.mjs +0 -16
  544. package/chunks/au-DK4ZROf6.mjs +0 -5
  545. package/chunks/aw-eEmOo-kc.mjs +0 -5
  546. package/chunks/ax-CF1cgQbd.mjs +0 -5
  547. package/chunks/az-BXPec7pf.mjs +0 -5
  548. package/chunks/ba-EoocSiX0.mjs +0 -5
  549. package/chunks/bb-BomyOgY0.mjs +0 -5
  550. package/chunks/bd-C2Y9A316.mjs +0 -5
  551. package/chunks/be-DcE56El1.mjs +0 -5
  552. package/chunks/bf-g7XzTHJG.mjs +0 -5
  553. package/chunks/bg-DAHpwJAh.mjs +0 -5
  554. package/chunks/bh-BiHF8vqO.mjs +0 -5
  555. package/chunks/bi-DVAoOy2o.mjs +0 -5
  556. package/chunks/bj-CB6I0T1J.mjs +0 -5
  557. package/chunks/bl-DhUObXcB.mjs +0 -5
  558. package/chunks/bm-d77E6A-Q.mjs +0 -5
  559. package/chunks/bn-CG1_6Vfv.mjs +0 -5
  560. package/chunks/bo-ulcQ_Lws.mjs +0 -5
  561. package/chunks/bq-wOjRpmJJ.mjs +0 -5
  562. package/chunks/br-BwQAEpKL.mjs +0 -5
  563. package/chunks/bs-Cmq3uDf9.mjs +0 -5
  564. package/chunks/bt-Cik-3ebf.mjs +0 -5
  565. package/chunks/bw-ZUkpxAL1.mjs +0 -5
  566. package/chunks/by-Dh-5h5x1.mjs +0 -5
  567. package/chunks/bz-DB0s7-5N.mjs +0 -5
  568. package/chunks/ca-Coq88_mc.mjs +0 -5
  569. package/chunks/cc-1.generated-CkRogBGA.mjs +0 -4
  570. package/chunks/cc-20.generated-DMpg7apl.mjs +0 -4
  571. package/chunks/cc-211.generated-DSnuuKPM.mjs +0 -4
  572. package/chunks/cc-212.generated-Dcg3rrip.mjs +0 -4
  573. package/chunks/cc-213.generated-DPwtGlxT.mjs +0 -4
  574. package/chunks/cc-216.generated-Cgber7dX.mjs +0 -4
  575. package/chunks/cc-218.generated-CZGwxl9D.mjs +0 -4
  576. package/chunks/cc-220.generated-CKmXmpGe.mjs +0 -4
  577. package/chunks/cc-221.generated-BYzgBejl.mjs +0 -4
  578. package/chunks/cc-222.generated-YwuXcbvd.mjs +0 -4
  579. package/chunks/cc-223.generated-9iiHnni6.mjs +0 -4
  580. package/chunks/cc-224.generated-Okty02TJ.mjs +0 -4
  581. package/chunks/cc-225.generated-CYkDnG14.mjs +0 -4
  582. package/chunks/cc-226.generated-GT_rqbCO.mjs +0 -4
  583. package/chunks/cc-227.generated-B1VkrgoB.mjs +0 -4
  584. package/chunks/cc-228.generated-Bhck-C6Z.mjs +0 -4
  585. package/chunks/cc-229.generated-aAR4PP7n.mjs +0 -4
  586. package/chunks/cc-230.generated-CG5TxZtb.mjs +0 -4
  587. package/chunks/cc-231.generated-BjYHl_BP.mjs +0 -4
  588. package/chunks/cc-232.generated-CFDyaA7o.mjs +0 -4
  589. package/chunks/cc-233.generated-ChwvrW0E.mjs +0 -4
  590. package/chunks/cc-234.generated-BIpIojaD.mjs +0 -4
  591. package/chunks/cc-235.generated-Dklizfb9.mjs +0 -4
  592. package/chunks/cc-236.generated-EJZlz23v.mjs +0 -4
  593. package/chunks/cc-237.generated-DwOapZWZ.mjs +0 -4
  594. package/chunks/cc-238.generated-BkCWtGDY.mjs +0 -4
  595. package/chunks/cc-239.generated-S_foXUit.mjs +0 -4
  596. package/chunks/cc-240.generated-CtKfcEWk.mjs +0 -4
  597. package/chunks/cc-241.generated-aAUw2QzS.mjs +0 -4
  598. package/chunks/cc-242.generated-D5jMR3KR.mjs +0 -4
  599. package/chunks/cc-243.generated-Bk5dwdUf.mjs +0 -4
  600. package/chunks/cc-244.generated-DywGvISM.mjs +0 -4
  601. package/chunks/cc-245.generated-Bm7wVXl5.mjs +0 -4
  602. package/chunks/cc-246.generated-CFSezynW.mjs +0 -4
  603. package/chunks/cc-247.generated-DKXGq8p1.mjs +0 -4
  604. package/chunks/cc-248.generated-CnI_kkbi.mjs +0 -4
  605. package/chunks/cc-249.generated-Zenj8WBl.mjs +0 -4
  606. package/chunks/cc-250.generated-140A9gFx.mjs +0 -4
  607. package/chunks/cc-251.generated-BYtVzI1w.mjs +0 -4
  608. package/chunks/cc-252.generated-C9By3_Ih.mjs +0 -4
  609. package/chunks/cc-253.generated-DZIADgzo.mjs +0 -4
  610. package/chunks/cc-254.generated-Bkb5VbuX.mjs +0 -4
  611. package/chunks/cc-255.generated-U_k4UlnG.mjs +0 -4
  612. package/chunks/cc-256.generated-BBGMRLJL.mjs +0 -4
  613. package/chunks/cc-257.generated-2Jiadm-X.mjs +0 -4
  614. package/chunks/cc-258.generated-CSHZFQtI.mjs +0 -4
  615. package/chunks/cc-260.generated-CWgOLjv4.mjs +0 -4
  616. package/chunks/cc-261.generated-DzpnYK1v.mjs +0 -4
  617. package/chunks/cc-262.generated-uZY0cJ08.mjs +0 -4
  618. package/chunks/cc-263.generated-D2QbPttm.mjs +0 -4
  619. package/chunks/cc-264.generated-DhUT_yRg.mjs +0 -4
  620. package/chunks/cc-265.generated-BKIU4vGv.mjs +0 -4
  621. package/chunks/cc-266.generated-O_zgqaDo.mjs +0 -4
  622. package/chunks/cc-267.generated-DpLBLCK1.mjs +0 -4
  623. package/chunks/cc-268.generated-B9Y4LS_4.mjs +0 -4
  624. package/chunks/cc-269.generated-DPQ0A8VW.mjs +0 -4
  625. package/chunks/cc-27.generated-BxeFhsuD.mjs +0 -4
  626. package/chunks/cc-290.generated-DGy2isg7.mjs +0 -4
  627. package/chunks/cc-291.generated-C4LSfffl.mjs +0 -4
  628. package/chunks/cc-297.generated-4k_1JOUj.mjs +0 -4
  629. package/chunks/cc-298.generated-A2xB0PKR.mjs +0 -4
  630. package/chunks/cc-299.generated-BwDC9B1N.mjs +0 -4
  631. package/chunks/cc-30.generated-JhyYglqU.mjs +0 -4
  632. package/chunks/cc-31.generated-5GOCJzfN.mjs +0 -4
  633. package/chunks/cc-32.generated-CpVvykA2.mjs +0 -4
  634. package/chunks/cc-33.generated-BDzHxbR_.mjs +0 -4
  635. package/chunks/cc-34.generated-P3nQfhBw.mjs +0 -4
  636. package/chunks/cc-350.generated-BGl8hYsP.mjs +0 -4
  637. package/chunks/cc-351.generated-pJBouwSG.mjs +0 -4
  638. package/chunks/cc-352.generated-8_NbdAx6.mjs +0 -4
  639. package/chunks/cc-353.generated-Cfz2tBdq.mjs +0 -4
  640. package/chunks/cc-354.generated-CEgaa6qB.mjs +0 -4
  641. package/chunks/cc-355.generated-DGZ-kJ0i.mjs +0 -4
  642. package/chunks/cc-356.generated-BZqLs86A.mjs +0 -4
  643. package/chunks/cc-357.generated-CfCB5cHL.mjs +0 -4
  644. package/chunks/cc-358.generated-wL2JzNDk.mjs +0 -4
  645. package/chunks/cc-359.generated-BxJe3xGt.mjs +0 -4
  646. package/chunks/cc-36.generated-CJdA4Rvi.mjs +0 -4
  647. package/chunks/cc-370.generated-B6SpL74q.mjs +0 -4
  648. package/chunks/cc-371.generated-Cx6lrGG9.mjs +0 -4
  649. package/chunks/cc-372.generated-Ckc30SHu.mjs +0 -4
  650. package/chunks/cc-373.generated-BK0ypz55.mjs +0 -4
  651. package/chunks/cc-374.generated-B51ogwAh.mjs +0 -4
  652. package/chunks/cc-375.generated-CMbmbMav.mjs +0 -4
  653. package/chunks/cc-376.generated-DZngLeqA.mjs +0 -4
  654. package/chunks/cc-377.generated-BYuCOf7K.mjs +0 -4
  655. package/chunks/cc-378.generated-CuNlUjOw.mjs +0 -4
  656. package/chunks/cc-380.generated-A2e4FwA4.mjs +0 -4
  657. package/chunks/cc-381.generated-Cvwf7aDo.mjs +0 -4
  658. package/chunks/cc-382.generated-B-x4jIQ_.mjs +0 -4
  659. package/chunks/cc-383.generated-B6E63WN4.mjs +0 -4
  660. package/chunks/cc-385.generated-CbYlsCsW.mjs +0 -4
  661. package/chunks/cc-386.generated-BUSyzthQ.mjs +0 -4
  662. package/chunks/cc-387.generated-IhkhnsGu.mjs +0 -4
  663. package/chunks/cc-389.generated-SNuHIdqu.mjs +0 -4
  664. package/chunks/cc-39.generated-BGZK1sVL.mjs +0 -4
  665. package/chunks/cc-40.generated-Bo8WnsNc.mjs +0 -4
  666. package/chunks/cc-41.generated-CG0098r3.mjs +0 -4
  667. package/chunks/cc-420.generated-C59jh2M8.mjs +0 -4
  668. package/chunks/cc-421.generated-BhxO-pTK.mjs +0 -4
  669. package/chunks/cc-423.generated-B4UJk2xr.mjs +0 -4
  670. package/chunks/cc-43.generated-BIdhhcvA.mjs +0 -4
  671. package/chunks/cc-44.generated-BfeK0wEP.mjs +0 -4
  672. package/chunks/cc-45.generated-BEJCwF4o.mjs +0 -4
  673. package/chunks/cc-46.generated-DeEMtTcI.mjs +0 -4
  674. package/chunks/cc-47.generated-DQy2Xk_0.mjs +0 -4
  675. package/chunks/cc-48.generated-C4yA7R1Q.mjs +0 -4
  676. package/chunks/cc-49.generated-a02djmT4.mjs +0 -4
  677. package/chunks/cc-500.generated-glAZ4AUe.mjs +0 -4
  678. package/chunks/cc-501.generated-D-GCAbI8.mjs +0 -4
  679. package/chunks/cc-502.generated-Co-n0usI.mjs +0 -4
  680. package/chunks/cc-503.generated-BM58qC_M.mjs +0 -4
  681. package/chunks/cc-504.generated-cTtfXvjR.mjs +0 -4
  682. package/chunks/cc-505.generated-DLSKmmzY.mjs +0 -4
  683. package/chunks/cc-506.generated-BMyMgwgZ.mjs +0 -4
  684. package/chunks/cc-507.generated-DWOdIJMd.mjs +0 -4
  685. package/chunks/cc-508.generated-DN3D0FwY.mjs +0 -4
  686. package/chunks/cc-509.generated-D-jyniz5.mjs +0 -4
  687. package/chunks/cc-51.generated-Bjy1G3kG.mjs +0 -4
  688. package/chunks/cc-52.generated-CDeO-q1n.mjs +0 -4
  689. package/chunks/cc-53.generated-Bg_ETBvx.mjs +0 -4
  690. package/chunks/cc-54.generated-BCfSFUZP.mjs +0 -4
  691. package/chunks/cc-55.generated-C1iLoSl1.mjs +0 -4
  692. package/chunks/cc-56.generated-ChgDDlud.mjs +0 -4
  693. package/chunks/cc-57.generated-qfDFimii.mjs +0 -4
  694. package/chunks/cc-58.generated-Cl6DzTam.mjs +0 -4
  695. package/chunks/cc-590.generated-DhG2cP7S.mjs +0 -4
  696. package/chunks/cc-591.generated-CjxsaggL.mjs +0 -4
  697. package/chunks/cc-592.generated-DnF2AtPs.mjs +0 -4
  698. package/chunks/cc-593.generated-J4b4KU_z.mjs +0 -4
  699. package/chunks/cc-594.generated-BDqHqvBX.mjs +0 -4
  700. package/chunks/cc-595.generated-Di23-NWq.mjs +0 -4
  701. package/chunks/cc-596.generated-B92oLPvz.mjs +0 -4
  702. package/chunks/cc-597.generated-pdvIpWWG.mjs +0 -4
  703. package/chunks/cc-598.generated-C9i6NuuS.mjs +0 -4
  704. package/chunks/cc-599.generated-Cot_Tjya.mjs +0 -4
  705. package/chunks/cc-60.generated-Dt21L5ED.mjs +0 -4
  706. package/chunks/cc-61.generated-CsF19uOz.mjs +0 -4
  707. package/chunks/cc-62.generated-CXe9l8jN.mjs +0 -4
  708. package/chunks/cc-63.generated-CyxqKEMz.mjs +0 -4
  709. package/chunks/cc-64.generated-B1U2VUWE.mjs +0 -4
  710. package/chunks/cc-65.generated-BqB9SL91.mjs +0 -4
  711. package/chunks/cc-66.generated-DSW4cKRJ.mjs +0 -4
  712. package/chunks/cc-670.generated-B5lMBLIA.mjs +0 -4
  713. package/chunks/cc-672.generated-rtLnRViR.mjs +0 -4
  714. package/chunks/cc-673.generated-CCfKxiHb.mjs +0 -4
  715. package/chunks/cc-674.generated-DqEenJAu.mjs +0 -4
  716. package/chunks/cc-675.generated-CDZsNVmA.mjs +0 -4
  717. package/chunks/cc-676.generated-CtuzuSpR.mjs +0 -4
  718. package/chunks/cc-677.generated-B6Vdcheb.mjs +0 -4
  719. package/chunks/cc-678.generated-Bu-wQLCv.mjs +0 -4
  720. package/chunks/cc-679.generated-C_vQNfa9.mjs +0 -4
  721. package/chunks/cc-680.generated-DgD0sTpR.mjs +0 -4
  722. package/chunks/cc-681.generated-CgCDLpTf.mjs +0 -4
  723. package/chunks/cc-682.generated-BBdb0LCA.mjs +0 -4
  724. package/chunks/cc-683.generated-BYq9qGSN.mjs +0 -4
  725. package/chunks/cc-685.generated-BeVt0xOD.mjs +0 -4
  726. package/chunks/cc-686.generated-DSuHUyGC.mjs +0 -4
  727. package/chunks/cc-687.generated-CAYCkQGn.mjs +0 -4
  728. package/chunks/cc-688.generated-BxoYuhyI.mjs +0 -4
  729. package/chunks/cc-689.generated-D1LJPuEc.mjs +0 -4
  730. package/chunks/cc-690.generated-wBJlIR_d.mjs +0 -4
  731. package/chunks/cc-691.generated-D3313DJE.mjs +0 -4
  732. package/chunks/cc-692.generated-BjRLK6LH.mjs +0 -4
  733. package/chunks/cc-7.generated-Be8Per3z.mjs +0 -4
  734. package/chunks/cc-81.generated-Bfr_1Ik4.mjs +0 -4
  735. package/chunks/cc-82.generated-CXvQgAj0.mjs +0 -4
  736. package/chunks/cc-84.generated-DsMrssxQ.mjs +0 -4
  737. package/chunks/cc-850.generated-B6dMNsJB.mjs +0 -4
  738. package/chunks/cc-852.generated-DoLs1jmz.mjs +0 -4
  739. package/chunks/cc-853.generated-C9J4qDF6.mjs +0 -4
  740. package/chunks/cc-855.generated-rriF89dH.mjs +0 -4
  741. package/chunks/cc-856.generated-DWMBTBFS.mjs +0 -4
  742. package/chunks/cc-86.generated-C8Ob3yVb.mjs +0 -4
  743. package/chunks/cc-880.generated-gteZx8SL.mjs +0 -4
  744. package/chunks/cc-886.generated-QyIDP1_q.mjs +0 -4
  745. package/chunks/cc-90.generated-DSXR50SV.mjs +0 -4
  746. package/chunks/cc-91.generated-C_cDq0Xp.mjs +0 -4
  747. package/chunks/cc-92.generated-Cxd7f_QX.mjs +0 -4
  748. package/chunks/cc-93.generated-Cyqo0e91.mjs +0 -4
  749. package/chunks/cc-94.generated-EsnmfbnH.mjs +0 -4
  750. package/chunks/cc-95.generated-D_8p55mp.mjs +0 -4
  751. package/chunks/cc-960.generated-DletKApH.mjs +0 -4
  752. package/chunks/cc-961.generated-CXVHoWFk.mjs +0 -4
  753. package/chunks/cc-962.generated-B7EPSakT.mjs +0 -4
  754. package/chunks/cc-963.generated-D71Y75mr.mjs +0 -4
  755. package/chunks/cc-964.generated-B8-RYrVD.mjs +0 -4
  756. package/chunks/cc-965.generated-tesjPkaP.mjs +0 -4
  757. package/chunks/cc-966.generated-CkCCmcR2.mjs +0 -4
  758. package/chunks/cc-967.generated-Bz1kG3rR.mjs +0 -4
  759. package/chunks/cc-968.generated-B8izDjLu.mjs +0 -4
  760. package/chunks/cc-970.generated-CKTkdIET.mjs +0 -4
  761. package/chunks/cc-971.generated-Wzj17K10.mjs +0 -4
  762. package/chunks/cc-972.generated-CJO02ZmJ.mjs +0 -4
  763. package/chunks/cc-973.generated-CL9ZE2Of.mjs +0 -4
  764. package/chunks/cc-974.generated-ZkYqGi9L.mjs +0 -4
  765. package/chunks/cc-975.generated-DP2Teiuc.mjs +0 -4
  766. package/chunks/cc-976.generated-GGNMRuFQ.mjs +0 -4
  767. package/chunks/cc-977.generated-KwvwlHUw.mjs +0 -4
  768. package/chunks/cc-98.generated-DW-Wj2k5.mjs +0 -4
  769. package/chunks/cc-992.generated-NRREmly7.mjs +0 -4
  770. package/chunks/cc-993.generated-BNlup4k-.mjs +0 -4
  771. package/chunks/cc-994.generated-BUD4e8ho.mjs +0 -4
  772. package/chunks/cc-995.generated-8P4TnVbi.mjs +0 -4
  773. package/chunks/cc-996.generated-CKCe7foO.mjs +0 -4
  774. package/chunks/cc-998.generated-CsAmnJYd.mjs +0 -4
  775. package/chunks/cc-BZdCRpNT.mjs +0 -5
  776. package/chunks/cd-9O28tBfy.mjs +0 -5
  777. package/chunks/cf-BdhmyWlv.mjs +0 -5
  778. package/chunks/cg-C-Qu4NMU.mjs +0 -5
  779. package/chunks/ch-A1RQVYLO.mjs +0 -5
  780. package/chunks/ci-DZY7fgO7.mjs +0 -5
  781. package/chunks/ck-D-2C9a72.mjs +0 -5
  782. package/chunks/cl-3HNgrmyT.mjs +0 -5
  783. package/chunks/cm-DJ4mixO9.mjs +0 -5
  784. package/chunks/cn-Cw6Qlqzd.mjs +0 -5
  785. package/chunks/co-B6rvgyRo.mjs +0 -5
  786. package/chunks/color-mode-warning-71FmlzWX.mjs +0 -13
  787. package/chunks/cr-jJzoBrc7.mjs +0 -5
  788. package/chunks/cu-BRzz3vV_.mjs +0 -5
  789. package/chunks/cv-BzZilEMp.mjs +0 -5
  790. package/chunks/cw-5PnLdxCt.mjs +0 -5
  791. package/chunks/cx-C0sAUlCS.mjs +0 -5
  792. package/chunks/cy-DeC9FFGV.mjs +0 -5
  793. package/chunks/cz-C3rh8aUO.mjs +0 -5
  794. package/chunks/de-Q2c2XZ_v.mjs +0 -5
  795. package/chunks/dj-DWAmmYDE.mjs +0 -5
  796. package/chunks/dk-FTaySAJe.mjs +0 -5
  797. package/chunks/dm-DgSJioJq.mjs +0 -5
  798. package/chunks/do-C549n3on.mjs +0 -5
  799. package/chunks/dz-CPgKocaY.mjs +0 -5
  800. package/chunks/ec-DkC-cDOb.mjs +0 -5
  801. package/chunks/ee-BQmFOHXA.mjs +0 -5
  802. package/chunks/eg-DMVarwMR.mjs +0 -5
  803. package/chunks/eh--oxmiCXh.mjs +0 -5
  804. package/chunks/er-DjB_DDiD.mjs +0 -5
  805. package/chunks/error-text-B45eDAt1.mjs +0 -17
  806. package/chunks/es-D__9e8wL.mjs +0 -5
  807. package/chunks/et-C3reU7Z2.mjs +0 -5
  808. package/chunks/fi-C1K0Kh4o.mjs +0 -5
  809. package/chunks/fj-Cs7ECsE1.mjs +0 -5
  810. package/chunks/fk-DYEJDgjs.mjs +0 -5
  811. package/chunks/fm-C7r_OFnj.mjs +0 -5
  812. package/chunks/fo-DsT-wW0Q.mjs +0 -5
  813. package/chunks/focus-restore-DxuP1Oe2.mjs +0 -94
  814. package/chunks/focus-trap-DTOLJ5bb.mjs +0 -121
  815. package/chunks/form-associated-BR-fUvZ1.mjs +0 -43
  816. package/chunks/form-check.styles-DqvBnspm.mjs +0 -172
  817. package/chunks/form-control.styles-C3j87Sn3.mjs +0 -171
  818. package/chunks/fr-oy8Uo1bo.mjs +0 -5
  819. package/chunks/ga-DESElBvk.mjs +0 -5
  820. package/chunks/gb-D5r9QI-K.mjs +0 -5
  821. package/chunks/gd-BuRviRXt.mjs +0 -5
  822. package/chunks/ge-BpGz5nUs.mjs +0 -5
  823. package/chunks/gf-BQgWe_yS.mjs +0 -5
  824. package/chunks/gg-BLNQrqls.mjs +0 -5
  825. package/chunks/gh-BzVF8tSr.mjs +0 -5
  826. package/chunks/gi-DfKOJdRQ.mjs +0 -5
  827. package/chunks/gl-C558Toee.mjs +0 -5
  828. package/chunks/gm-DNdinxnD.mjs +0 -5
  829. package/chunks/gn-DwEBOZ3-.mjs +0 -5
  830. package/chunks/gp-oy8Uo1bo.mjs +0 -5
  831. package/chunks/gq-BSkOSQWe.mjs +0 -5
  832. package/chunks/gr-CTJJbGEC.mjs +0 -5
  833. package/chunks/gt-D4BwgazI.mjs +0 -5
  834. package/chunks/gu-CQpMzEB_.mjs +0 -5
  835. package/chunks/gw-DxZDYMtv.mjs +0 -5
  836. package/chunks/gy-BWZVUGl8.mjs +0 -5
  837. package/chunks/hk-BHxjZMf4.mjs +0 -5
  838. package/chunks/hn-BEVgQ0QQ.mjs +0 -5
  839. package/chunks/host-aria-WSGs7SPQ.mjs +0 -152
  840. package/chunks/hr-BpVWlAoF.mjs +0 -5
  841. package/chunks/ht-CfzU-07O.mjs +0 -5
  842. package/chunks/hu-5Yy5WRy5.mjs +0 -5
  843. package/chunks/id-BfVg05v7.mjs +0 -5
  844. package/chunks/ie-DvpkJVl8.mjs +0 -5
  845. package/chunks/il-DDofIlI0.mjs +0 -5
  846. package/chunks/im-CW65ei4K.mjs +0 -5
  847. package/chunks/in-i60GVnCJ.mjs +0 -5
  848. package/chunks/inert-regions-DXCnn1LN.mjs +0 -48
  849. package/chunks/install-light-styles-DbCAGFOC.mjs +0 -209
  850. package/chunks/invalid-feedback.styles-he0JYrJm.mjs +0 -11
  851. package/chunks/io-Diyu5soM.mjs +0 -5
  852. package/chunks/iq-B74bFnMJ.mjs +0 -5
  853. package/chunks/ir-BWGwwJq9.mjs +0 -5
  854. package/chunks/is-CK4oIk76.mjs +0 -5
  855. package/chunks/it-Y7rj3hMY.mjs +0 -5
  856. package/chunks/je-DMoX3evy.mjs +0 -5
  857. package/chunks/jm-DZUStFkR.mjs +0 -5
  858. package/chunks/jo-DVQ6-ojE.mjs +0 -5
  859. package/chunks/jp-Y5R0MQfN.mjs +0 -5
  860. package/chunks/ke-CGq6XP7w.mjs +0 -5
  861. package/chunks/kg-DAoQwbeR.mjs +0 -5
  862. package/chunks/kh-kMI7MghQ.mjs +0 -5
  863. package/chunks/ki-Cu7fdPLn.mjs +0 -5
  864. package/chunks/km-CM7URKBO.mjs +0 -5
  865. package/chunks/kn-DBVGPz8w.mjs +0 -5
  866. package/chunks/kp-D3Ea15h2.mjs +0 -5
  867. package/chunks/kr-DKM0Jy7P.mjs +0 -5
  868. package/chunks/kw-B7J-nbX9.mjs +0 -5
  869. package/chunks/ky-p4ckNq_W.mjs +0 -5
  870. package/chunks/kz-D936idA9.mjs +0 -5
  871. package/chunks/la-CUKVKbGp.mjs +0 -5
  872. package/chunks/lb-CzUWz90e.mjs +0 -5
  873. package/chunks/lc-DuHqL5FW.mjs +0 -5
  874. package/chunks/li-DgJDzs_F.mjs +0 -5
  875. package/chunks/live-announcer-Bi0orG4n.mjs +0 -58
  876. package/chunks/lk-3zaagaQ9.mjs +0 -5
  877. package/chunks/lr-B6Vn6C_9.mjs +0 -5
  878. package/chunks/ls-DrI0Fh7Y.mjs +0 -5
  879. package/chunks/lt-PBck9Sgv.mjs +0 -5
  880. package/chunks/lu-B_xY22fB.mjs +0 -5
  881. package/chunks/lv-D16yLm3v.mjs +0 -5
  882. package/chunks/ly-C1adX4Zr.mjs +0 -5
  883. package/chunks/ma-B7rH3zoW.mjs +0 -5
  884. package/chunks/mc-Xqh4jc6i.mjs +0 -5
  885. package/chunks/md-wW4zZzbN.mjs +0 -5
  886. package/chunks/me-DCy_XMtC.mjs +0 -5
  887. package/chunks/metadata-loaders.generated-Bu_7pFwU.mjs +0 -250
  888. package/chunks/mf-DP_tIA6i.mjs +0 -5
  889. package/chunks/mg-InflpHX7.mjs +0 -5
  890. package/chunks/mh-VKf434Ww.mjs +0 -5
  891. package/chunks/mk-C64VS9I-.mjs +0 -5
  892. package/chunks/ml-BjOQYgou.mjs +0 -5
  893. package/chunks/mm-DgKeX7WQ.mjs +0 -5
  894. package/chunks/mn-BBubqCvd.mjs +0 -5
  895. package/chunks/mo-BtY-l2cE.mjs +0 -5
  896. package/chunks/mp-DlkcjH8B.mjs +0 -5
  897. package/chunks/mp-calendar.element-BIHS9SZZ.mjs +0 -433
  898. package/chunks/mp-checkbox-zV83gILn.mjs +0 -321
  899. package/chunks/mp-datatable-BeKunRfd.mjs +0 -2884
  900. package/chunks/mp-datetime-picker.element-Cxu5-qRE.mjs +0 -527
  901. package/chunks/mp-input-group-CQ55efCq.mjs +0 -206
  902. package/chunks/mp-pagination-hGy4dL7p.mjs +0 -334
  903. package/chunks/mp-radio-BhRVNdKp.mjs +0 -304
  904. package/chunks/mp-select-CgqYFvUj.mjs +0 -537
  905. package/chunks/mp-splitter-DLehrw3Y.mjs +0 -678
  906. package/chunks/mp-tab-page-CaCzX1ym.mjs +0 -415
  907. package/chunks/mp-timepicker.element-BiB9lkgc.mjs +0 -452
  908. package/chunks/mp-toggle-button-CaS9uYLE.mjs +0 -631
  909. package/chunks/mp-treeview-CaMTDrvY.mjs +0 -497
  910. package/chunks/mq-BK7HwZSV.mjs +0 -5
  911. package/chunks/mr-C0S-6dqR.mjs +0 -5
  912. package/chunks/ms-DpwSSTE-.mjs +0 -5
  913. package/chunks/mt-B1ie-04J.mjs +0 -5
  914. package/chunks/mu-DTA25SEP.mjs +0 -5
  915. package/chunks/mv-DW49amZl.mjs +0 -5
  916. package/chunks/mw-V-bbqGPN.mjs +0 -5
  917. package/chunks/mx-CtTJw0SX.mjs +0 -5
  918. package/chunks/my-DThIQKCq.mjs +0 -5
  919. package/chunks/mz-Btgk8Li_.mjs +0 -5
  920. package/chunks/na-D08-xA7q.mjs +0 -5
  921. package/chunks/nc-hb1s2KqL.mjs +0 -5
  922. package/chunks/ne-B5vEjeNk.mjs +0 -5
  923. package/chunks/nf-DDFUS5Ht.mjs +0 -5
  924. package/chunks/ng-DBhdmXcS.mjs +0 -5
  925. package/chunks/ni-_x4RKVT8.mjs +0 -5
  926. package/chunks/nl-DBxW_qVy.mjs +0 -5
  927. package/chunks/no-LyFCuMlU.mjs +0 -5
  928. package/chunks/np-DEvIQAys.mjs +0 -5
  929. package/chunks/nr-CuzElmFx.mjs +0 -5
  930. package/chunks/nu-C6vVHkwP.mjs +0 -5
  931. package/chunks/nz-BkhNYKha.mjs +0 -5
  932. package/chunks/om-BsI3oHrd.mjs +0 -5
  933. package/chunks/overlay-controller-BHDagokg.mjs +0 -389
  934. package/chunks/pa-CtNQVaHE.mjs +0 -5
  935. package/chunks/pe-vcSV6ioD.mjs +0 -5
  936. package/chunks/pf-BOetDvnB.mjs +0 -5
  937. package/chunks/pg-BDqa4YXR.mjs +0 -5
  938. package/chunks/ph-BlAaFzEE.mjs +0 -5
  939. package/chunks/pk-2auAZIDh.mjs +0 -5
  940. package/chunks/pl-W6WZfuq9.mjs +0 -5
  941. package/chunks/pm-oy8Uo1bo.mjs +0 -5
  942. package/chunks/pr-B3p98s5J.mjs +0 -5
  943. package/chunks/ps-RET8kTuo.mjs +0 -5
  944. package/chunks/pt-Z2yfZJAz.mjs +0 -5
  945. package/chunks/pw-Dm4Y4noS.mjs +0 -5
  946. package/chunks/py-1pKD7w9y.mjs +0 -5
  947. package/chunks/qa-DpK5_Q-a.mjs +0 -5
  948. package/chunks/re-oy8Uo1bo.mjs +0 -5
  949. package/chunks/resource.service--lqLwEqk.mjs +0 -1008
  950. package/chunks/ro-VYde6hop.mjs +0 -5
  951. package/chunks/roving-focus-CrL9982a.mjs +0 -129
  952. package/chunks/rs-Dj7Wicw9.mjs +0 -5
  953. package/chunks/ru-CkWEkuTy.mjs +0 -5
  954. package/chunks/rw-DjRHPIJ_.mjs +0 -5
  955. package/chunks/sa-BBdaW-_G.mjs +0 -5
  956. package/chunks/sb-nNr9S0gd.mjs +0 -5
  957. package/chunks/sc-DcbShXuj.mjs +0 -5
  958. package/chunks/scale-B0bRUdc7.mjs +0 -91
  959. package/chunks/sd-B1jbITc6.mjs +0 -5
  960. package/chunks/se-B-CIMrxu.mjs +0 -5
  961. package/chunks/sg-BIR0OErL.mjs +0 -5
  962. package/chunks/sh-BR9c9S8h.mjs +0 -5
  963. package/chunks/si-B5HzM3z8.mjs +0 -5
  964. package/chunks/sj-LyFCuMlU.mjs +0 -5
  965. package/chunks/sk-7ZEImIK5.mjs +0 -5
  966. package/chunks/sl-DuhHodH6.mjs +0 -5
  967. package/chunks/sm-BrM5UOOM.mjs +0 -5
  968. package/chunks/sn-jptojE_-.mjs +0 -5
  969. package/chunks/so-auBJUCeE.mjs +0 -5
  970. package/chunks/sr-DqWWIG11.mjs +0 -5
  971. package/chunks/ss-BcJF0rd5.mjs +0 -5
  972. package/chunks/st-D65H7-IP.mjs +0 -5
  973. package/chunks/sv-D8EgdK15.mjs +0 -5
  974. package/chunks/sx-Cmd53qC5.mjs +0 -5
  975. package/chunks/sy-LL8b7cLC.mjs +0 -5
  976. package/chunks/sz-D-qYq589.mjs +0 -5
  977. package/chunks/tc-AIE9LFuJ.mjs +0 -5
  978. package/chunks/td-C5AP4EiN.mjs +0 -5
  979. package/chunks/tg-Dt9WAF7L.mjs +0 -5
  980. package/chunks/th-DyfDlw-o.mjs +0 -5
  981. package/chunks/tj-U7xsGAAg.mjs +0 -5
  982. package/chunks/tk-BWjKruB4.mjs +0 -5
  983. package/chunks/tl-CcXsJf98.mjs +0 -5
  984. package/chunks/tm-DTASSSkf.mjs +0 -5
  985. package/chunks/tn-DttZvPz0.mjs +0 -5
  986. package/chunks/to-ChsX5Z4Q.mjs +0 -5
  987. package/chunks/tr-C2CRhai0.mjs +0 -5
  988. package/chunks/tt-DPpP-HbL.mjs +0 -5
  989. package/chunks/tv-CiTLokZi.mjs +0 -5
  990. package/chunks/tw--J7h_fxf.mjs +0 -5
  991. package/chunks/tz-qS3mKSkx.mjs +0 -5
  992. package/chunks/ua-DiZstskV.mjs +0 -5
  993. package/chunks/ug-BxVGZUby.mjs +0 -5
  994. package/chunks/us-BvyIwpav.mjs +0 -5
  995. package/chunks/uy-Dsr4HSrP.mjs +0 -5
  996. package/chunks/uz-D25kmTp8.mjs +0 -5
  997. package/chunks/va-hG27DTVe.mjs +0 -5
  998. package/chunks/validation-ChktfuxI.mjs +0 -137
  999. package/chunks/vc-7r46jyD5.mjs +0 -5
  1000. package/chunks/ve-R8UkJHAj.mjs +0 -5
  1001. package/chunks/vg-BLSugSwb.mjs +0 -5
  1002. package/chunks/vi-DSyJsPSD.mjs +0 -5
  1003. package/chunks/view-window-DGvFiDnW.mjs +0 -263
  1004. package/chunks/vn-BwGpRkWs.mjs +0 -5
  1005. package/chunks/vu-aFyzktTY.mjs +0 -5
  1006. package/chunks/wf-Ca9RrMIP.mjs +0 -5
  1007. package/chunks/ws-DphODgja.mjs +0 -5
  1008. package/chunks/xk-sugAykhS.mjs +0 -5
  1009. package/chunks/ye-D2MZq-93.mjs +0 -5
  1010. package/chunks/yt-tAecYEDU.mjs +0 -5
  1011. package/chunks/za-DadXcfMa.mjs +0 -5
  1012. package/chunks/zm--rp7ufAJ.mjs +0 -5
  1013. package/chunks/zw-BG5nNe2I.mjs +0 -5
  1014. package/query-builder/src/mp-query-builder.element.template.d.ts +0 -2
  1015. package/query-builder/src/mp-query-group.element.template.d.ts +0 -2
  1016. package/query-builder/src/mp-query-subquery.element.template.d.ts +0 -2
  1017. package/tree-select/src/styles/tree-select.styles.d.ts +0 -2
  1018. package/treeview/src/styles/treeview.styles.d.ts +0 -2
@@ -1,834 +1,453 @@
1
- import { unsafeCSS as _, LitElement as v, html as d, nothing as c } from "lit";
2
- import { a as w } from "../chunks/install-light-styles-DbCAGFOC.mjs";
3
- import { L as m } from "../chunks/live-announcer-Bi0orG4n.mjs";
4
- import { d as y } from "../chunks/focus-restore-DxuP1Oe2.mjs";
5
- import { R as $ } from "../chunks/roving-focus-CrL9982a.mjs";
6
- import { repeat as x } from "lit/directives/repeat.js";
1
+ import { s as e, v as t, y as n } from "../chunks/a11y-C6aX-lsZ.mjs";
2
+ import { adoptLightStyles as r } from "../light-dom/index.mjs";
3
+ import "../chunks/datatable-qkYf-N0c.mjs";
4
+ import "../chunks/splitter-ByLyrd5H.mjs";
5
+ import "../chunks/treeview-BuznGbcj.mjs";
6
+ import { LitElement as i, html as a, nothing as o, unsafeCSS as s } from "lit";
7
+ import { createRef as c, ref as l } from "lit/directives/ref.js";
7
8
  import { unsafeHTML as u } from "lit/directives/unsafe-html.js";
8
- import { createRef as C, ref as k } from "lit/directives/ref.js";
9
- import { styleMap as E } from "lit/directives/style-map.js";
10
- import "../chunks/mp-splitter-DLehrw3Y.mjs";
11
- import "../chunks/mp-treeview-CaMTDrvY.mjs";
12
- import "../chunks/mp-datatable-BeKunRfd.mjs";
13
- const M = _(`:host {
14
- display: flex;
15
- flex-direction: column;
16
- width: 100%;
17
- height: 100%;
18
- min-height: 24rem;
19
- --mp-file-manager-border-color: var(--bs-border-color, rgba(0, 0, 0, 0.125));
20
- --mp-file-manager-pane-bg: var(--bs-body-bg, transparent);
21
- --mp-file-manager-drop-overlay-bg: rgba(13, 110, 253, 0.08);
22
- --mp-file-manager-drop-overlay-border: var(--bs-primary, #0d6efd);
23
- }
24
-
25
- * {
26
- box-sizing: border-box;
27
- }
28
-
29
- .toolbar {
30
- display: flex;
31
- align-items: center;
32
- gap: 0.5rem;
33
- padding: 0.5rem;
34
- border-bottom: 1px solid var(--mp-file-manager-border-color);
35
- flex: 0 0 auto;
36
- flex-wrap: wrap;
37
- }
38
-
39
- .toolbar button {
40
- display: inline-flex;
41
- align-items: center;
42
- justify-content: center;
43
- gap: 0.25rem;
44
- min-width: 24px;
45
- min-height: 24px;
46
- padding: 0.3rem 0.6rem;
47
- background-color: transparent;
48
- border: 1px solid var(--mp-file-manager-border-color);
49
- border-radius: 0.25rem;
50
- cursor: pointer;
51
- font: inherit;
52
- color: inherit;
53
- }
54
-
55
- .toolbar button:hover:not([disabled]) {
56
- background-color: var(--bs-secondary-bg, rgba(0, 0, 0, 0.04));
57
- }
58
-
59
- .toolbar button[disabled] {
60
- opacity: 0.5;
61
- cursor: not-allowed;
62
- }
63
-
64
- .toolbar .view-toggle {
65
- display: inline-flex;
66
- border: 1px solid var(--mp-file-manager-border-color);
67
- border-radius: 0.25rem;
68
- overflow: hidden;
69
- }
70
-
71
- .toolbar .view-toggle button {
72
- border: 0;
73
- border-radius: 0;
74
- }
75
-
76
- .toolbar .view-toggle button[data-active=true] {
77
- background-color: var(--bs-primary, #0d6efd);
78
- color: #fff;
79
- }
80
-
81
- .toolbar .search-input {
82
- padding: 0.3rem 0.5rem;
83
- border: 1px solid var(--mp-file-manager-border-color);
84
- border-radius: 0.25rem;
85
- background-color: transparent;
86
- color: inherit;
87
- font: inherit;
88
- flex: 1 1 12rem;
89
- min-width: 8rem;
90
- }
91
-
92
- .toolbar .spacer {
93
- flex: 1 1 auto;
94
- }
95
-
96
- .breadcrumb-bar {
97
- display: flex;
98
- align-items: center;
99
- gap: 0.25rem;
100
- padding: 0.4rem 0.75rem;
101
- border-bottom: 1px solid var(--mp-file-manager-border-color);
102
- font-size: 0.9rem;
103
- flex: 0 0 auto;
104
- flex-wrap: wrap;
105
- background-color: var(--mp-file-manager-pane-bg);
106
- }
107
-
108
- .breadcrumb-segment {
109
- background: transparent;
110
- border: 0;
111
- cursor: pointer;
112
- color: var(--bs-link-color, var(--bs-primary, #0d6efd));
113
- padding: 0.15rem 0.4rem;
114
- font: inherit;
115
- border-radius: 0.2rem;
116
- }
117
-
118
- .breadcrumb-segment:hover {
119
- background-color: var(--bs-secondary-bg, rgba(0, 0, 0, 0.04));
120
- }
121
-
122
- .breadcrumb-segment[data-current=true] {
123
- color: inherit;
124
- cursor: default;
125
- font-weight: 500;
126
- }
127
-
128
- .breadcrumb-separator {
129
- color: var(--bs-secondary-color, #6c757d);
130
- font-size: 0.85em;
131
- }
132
-
133
- .split-area {
134
- flex: 1 1 auto;
135
- min-height: 0;
136
- display: flex;
137
- }
138
-
139
- mp-splitter {
140
- flex: 1 1 auto;
141
- min-height: 0;
142
- }
143
-
144
- .tree-pane {
145
- width: 100%;
146
- height: 100%;
147
- overflow: auto;
148
- background-color: var(--mp-file-manager-pane-bg);
149
- }
150
-
151
- .content-pane {
152
- position: relative;
153
- width: 100%;
154
- height: 100%;
155
- display: flex;
156
- flex-direction: column;
157
- background-color: var(--mp-file-manager-pane-bg);
158
- overflow: hidden;
159
- }
160
-
161
- .content-body {
162
- flex: 1 1 auto;
163
- min-height: 0;
164
- overflow: auto;
165
- position: relative;
166
- }
167
-
168
- mp-datatable {
169
- width: 100%;
170
- --mp-datatable-cell-media-max-width: 3rem;
171
- }
172
-
173
- .icon-grid {
174
- display: grid;
175
- grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
176
- gap: 0.5rem;
177
- padding: 0.75rem;
178
- }
179
-
180
- .icon-card {
181
- display: flex;
182
- flex-direction: column;
183
- align-items: center;
184
- justify-content: flex-start;
185
- padding: 0.6rem 0.4rem;
186
- border: 1px solid transparent;
187
- border-radius: 0.4rem;
188
- cursor: pointer;
189
- text-align: center;
190
- background: transparent;
191
- color: inherit;
192
- font: inherit;
193
- }
194
-
195
- .icon-card:hover {
196
- background-color: var(--bs-secondary-bg, rgba(0, 0, 0, 0.04));
197
- }
198
-
199
- .icon-card[data-selected=true] {
200
- background-color: var(--bs-list-group-active-bg, var(--bs-primary, #0d6efd));
201
- color: var(--bs-list-group-active-color, #fff);
202
- border-color: transparent;
203
- }
204
-
205
- .icon-card[data-cut=true] {
206
- opacity: 0.55;
207
- }
208
-
209
- .icon-card .file-icon {
210
- width: 3rem;
211
- height: 3rem;
212
- display: flex;
213
- align-items: center;
214
- justify-content: center;
215
- margin-bottom: 0.35rem;
216
- }
217
-
218
- .icon-card .file-icon svg {
219
- width: 100%;
220
- height: 100%;
221
- }
222
-
223
- .icon-card .file-name {
224
- font-size: 0.85rem;
225
- word-break: break-word;
226
- display: -webkit-box;
227
- -webkit-line-clamp: 2;
228
- -webkit-box-orient: vertical;
229
- overflow: hidden;
230
- }
231
-
232
- .row-cell {
233
- display: inline-flex;
234
- align-items: center;
235
- gap: 0.4rem;
236
- }
237
-
238
- .row-cell .row-icon {
239
- flex: 0 0 1rem;
240
- width: 1rem;
241
- height: 1rem;
242
- display: inline-flex;
243
- align-items: center;
244
- justify-content: center;
245
- }
246
-
247
- .row-cell .row-icon svg {
248
- width: 1rem;
249
- height: 1rem;
250
- }
251
-
252
- .rename-input {
253
- width: 100%;
254
- font: inherit;
255
- color: inherit;
256
- background-color: var(--bs-body-bg, #fff);
257
- border: 1px solid var(--bs-primary, #0d6efd);
258
- padding: 0.1rem 0.3rem;
259
- border-radius: 0.2rem;
260
- }
261
-
262
- .drop-overlay {
263
- position: absolute;
264
- inset: 0;
265
- display: none;
266
- align-items: center;
267
- justify-content: center;
268
- background-color: var(--mp-file-manager-drop-overlay-bg);
269
- border: 2px dashed var(--mp-file-manager-drop-overlay-border);
270
- border-radius: 0.4rem;
271
- pointer-events: none;
272
- z-index: 5;
273
- font-weight: 500;
274
- font-size: 1.1rem;
275
- color: var(--mp-file-manager-drop-overlay-border);
276
- }
277
-
278
- :host([drop-active]) .drop-overlay {
279
- display: flex;
280
- }
281
-
282
- .context-menu {
283
- position: fixed;
284
- z-index: 1080;
285
- min-width: 9rem;
286
- background-color: var(--bs-body-bg, #fff);
287
- border: 1px solid var(--mp-file-manager-border-color);
288
- border-radius: 0.3rem;
289
- box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
290
- padding: 0.25rem 0;
291
- margin: 0;
292
- list-style: none;
293
- font-size: 0.9rem;
294
- }
295
-
296
- .context-menu .menu-item {
297
- display: flex;
298
- width: 100%;
299
- align-items: center;
300
- gap: 0.4rem;
301
- padding: 0.35rem 0.9rem;
302
- background: transparent;
303
- border: 0;
304
- color: inherit;
305
- font: inherit;
306
- text-align: left;
307
- cursor: pointer;
308
- }
309
-
310
- .context-menu .menu-item:hover:not([disabled]),
311
- .context-menu .menu-item:focus-visible:not([disabled]) {
312
- background-color: var(--bs-secondary-bg, rgba(0, 0, 0, 0.06));
313
- outline: none;
314
- }
315
-
316
- .context-menu .menu-item[disabled] {
317
- opacity: 0.5;
318
- cursor: not-allowed;
319
- }
320
-
321
- .context-menu .menu-separator {
322
- height: 1px;
323
- background-color: var(--mp-file-manager-border-color);
324
- margin: 0.25rem 0;
325
- }
326
-
327
- @media (prefers-reduced-motion: reduce) {
328
- .icon-card,
329
- .toolbar button {
330
- transition: none !important;
331
- }
332
- }`), p = {
333
- home: "Home",
334
- newFolder: "New folder",
335
- rename: "Rename",
336
- delete: "Delete",
337
- cut: "Cut",
338
- copy: "Copy",
339
- paste: "Paste",
340
- upload: "Upload",
341
- searchPlaceholder: "Search…",
342
- listView: "List view",
343
- iconsView: "Icons view",
344
- name: "Name",
345
- size: "Size",
346
- modified: "Modified",
347
- type: "Type",
348
- folder: "Folder",
349
- file: "File",
350
- loading: "Loading…",
351
- noFilesOrFolders: "No files or folders",
352
- dropFilesToUpload: "↓ Drop files to upload ↓",
353
- fileDropZone: "File drop zone",
354
- deleteConfirm: (a) => `Delete ${a} item${a === 1 ? "" : "s"}?`,
355
- folderNamePrompt: "Folder name",
356
- defaultNewFolderName: "New folder",
357
- conflictMessage: (a) => `"${a}" already exists. Replace?`,
358
- conflictReplace: "Replace",
359
- conflictSkip: "Skip",
360
- conflictRename: "Keep both",
361
- announceDeleted: (a) => a === 1 ? "1 item deleted." : `${a} items deleted.`,
362
- announcePasted: (a) => a === 1 ? "1 item pasted." : `${a} items pasted.`,
363
- announceNewFolder: (a) => `Folder ${a} created.`,
364
- announceRenamed: (a, e) => `${a} renamed to ${e}.`,
365
- announceUploadDone: (a) => `Upload of ${a} complete.`,
366
- announceUploadFailed: (a) => `Upload of ${a} failed.`,
367
- announceSearchResults: (a) => a === 1 ? "1 result." : `${a} results.`,
368
- ariaToolbar: "File manager toolbar",
369
- ariaFileOperations: "File operations",
370
- ariaViewMode: "View mode",
371
- ariaBreadcrumb: "Breadcrumb",
372
- ariaFileList: "Files and folders",
373
- ariaFileManager: "File manager"
9
+ import { repeat as d } from "lit/directives/repeat.js";
10
+ import { styleMap as f } from "lit/directives/style-map.js";
11
+ //#region libs/mintplayer-web-components/file-manager/src/styles/file-manager.styles.ts
12
+ var p = s(":host {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 24rem;\n --mp-file-manager-border-color: var(--bs-border-color, rgba(0, 0, 0, 0.125));\n --mp-file-manager-pane-bg: var(--bs-body-bg, transparent);\n --mp-file-manager-drop-overlay-bg: rgba(13, 110, 253, 0.08);\n --mp-file-manager-drop-overlay-border: var(--bs-primary, #0d6efd);\n}\n\n* {\n box-sizing: border-box;\n}\n\n.toolbar {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n padding: 0.5rem;\n border-bottom: 1px solid var(--mp-file-manager-border-color);\n flex: 0 0 auto;\n flex-wrap: wrap;\n}\n\n.toolbar button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 0.25rem;\n min-width: 24px;\n min-height: 24px;\n padding: 0.3rem 0.6rem;\n background-color: transparent;\n border: 1px solid var(--mp-file-manager-border-color);\n border-radius: 0.25rem;\n cursor: pointer;\n font: inherit;\n color: inherit;\n}\n\n.toolbar button:hover:not([disabled]) {\n background-color: var(--bs-secondary-bg, rgba(0, 0, 0, 0.04));\n}\n\n.toolbar button[disabled] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.toolbar .view-toggle {\n display: inline-flex;\n border: 1px solid var(--mp-file-manager-border-color);\n border-radius: 0.25rem;\n overflow: hidden;\n}\n\n.toolbar .view-toggle button {\n border: 0;\n border-radius: 0;\n}\n\n.toolbar .view-toggle button[data-active=true] {\n background-color: var(--bs-primary, #0d6efd);\n color: #fff;\n}\n\n.toolbar .search-input {\n padding: 0.3rem 0.5rem;\n border: 1px solid var(--mp-file-manager-border-color);\n border-radius: 0.25rem;\n background-color: transparent;\n color: inherit;\n font: inherit;\n flex: 1 1 12rem;\n min-width: 8rem;\n}\n\n.toolbar .spacer {\n flex: 1 1 auto;\n}\n\n.breadcrumb-bar {\n display: flex;\n align-items: center;\n gap: 0.25rem;\n padding: 0.4rem 0.75rem;\n border-bottom: 1px solid var(--mp-file-manager-border-color);\n font-size: 0.9rem;\n flex: 0 0 auto;\n flex-wrap: wrap;\n background-color: var(--mp-file-manager-pane-bg);\n}\n\n.breadcrumb-segment {\n background: transparent;\n border: 0;\n cursor: pointer;\n color: var(--bs-link-color, var(--bs-primary, #0d6efd));\n padding: 0.15rem 0.4rem;\n font: inherit;\n border-radius: 0.2rem;\n}\n\n.breadcrumb-segment:hover {\n background-color: var(--bs-secondary-bg, rgba(0, 0, 0, 0.04));\n}\n\n.breadcrumb-segment[data-current=true] {\n color: inherit;\n cursor: default;\n font-weight: 500;\n}\n\n.breadcrumb-separator {\n color: var(--bs-secondary-color, #6c757d);\n font-size: 0.85em;\n}\n\n.split-area {\n flex: 1 1 auto;\n min-height: 0;\n display: flex;\n}\n\nmp-splitter {\n flex: 1 1 auto;\n min-height: 0;\n}\n\n.tree-pane {\n width: 100%;\n height: 100%;\n overflow: auto;\n background-color: var(--mp-file-manager-pane-bg);\n}\n\n.content-pane {\n position: relative;\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n background-color: var(--mp-file-manager-pane-bg);\n overflow: hidden;\n}\n\n.content-body {\n flex: 1 1 auto;\n min-height: 0;\n overflow: auto;\n position: relative;\n}\n\nmp-datatable {\n width: 100%;\n --mp-datatable-cell-media-max-width: 3rem;\n}\n\n.icon-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));\n gap: 0.5rem;\n padding: 0.75rem;\n}\n\n.icon-card {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n padding: 0.6rem 0.4rem;\n border: 1px solid transparent;\n border-radius: 0.4rem;\n cursor: pointer;\n text-align: center;\n background: transparent;\n color: inherit;\n font: inherit;\n}\n\n.icon-card:hover {\n background-color: var(--bs-secondary-bg, rgba(0, 0, 0, 0.04));\n}\n\n.icon-card[data-selected=true] {\n background-color: var(--bs-list-group-active-bg, var(--bs-primary, #0d6efd));\n color: var(--bs-list-group-active-color, #fff);\n border-color: transparent;\n}\n\n.icon-card[data-cut=true] {\n opacity: 0.55;\n}\n\n.icon-card .file-icon {\n width: 3rem;\n height: 3rem;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 0.35rem;\n}\n\n.icon-card .file-icon svg {\n width: 100%;\n height: 100%;\n}\n\n.icon-card .file-name {\n font-size: 0.85rem;\n word-break: break-word;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n}\n\n.row-cell {\n display: inline-flex;\n align-items: center;\n gap: 0.4rem;\n}\n\n.row-cell .row-icon {\n flex: 0 0 1rem;\n width: 1rem;\n height: 1rem;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n\n.row-cell .row-icon svg {\n width: 1rem;\n height: 1rem;\n}\n\n.rename-input {\n width: 100%;\n font: inherit;\n color: inherit;\n background-color: var(--bs-body-bg, #fff);\n border: 1px solid var(--bs-primary, #0d6efd);\n padding: 0.1rem 0.3rem;\n border-radius: 0.2rem;\n}\n\n.drop-overlay {\n position: absolute;\n inset: 0;\n display: none;\n align-items: center;\n justify-content: center;\n background-color: var(--mp-file-manager-drop-overlay-bg);\n border: 2px dashed var(--mp-file-manager-drop-overlay-border);\n border-radius: 0.4rem;\n pointer-events: none;\n z-index: 5;\n font-weight: 500;\n font-size: 1.1rem;\n color: var(--mp-file-manager-drop-overlay-border);\n}\n\n:host([drop-active]) .drop-overlay {\n display: flex;\n}\n\n.context-menu {\n position: fixed;\n z-index: 1080;\n min-width: 9rem;\n background-color: var(--bs-body-bg, #fff);\n border: 1px solid var(--mp-file-manager-border-color);\n border-radius: 0.3rem;\n box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);\n padding: 0.25rem 0;\n margin: 0;\n list-style: none;\n font-size: 0.9rem;\n}\n\n.context-menu .menu-item {\n display: flex;\n width: 100%;\n align-items: center;\n gap: 0.4rem;\n padding: 0.35rem 0.9rem;\n background: transparent;\n border: 0;\n color: inherit;\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.context-menu .menu-item:hover:not([disabled]),\n.context-menu .menu-item:focus-visible:not([disabled]) {\n background-color: var(--bs-secondary-bg, rgba(0, 0, 0, 0.06));\n outline: none;\n}\n\n.context-menu .menu-item[disabled] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.context-menu .menu-separator {\n height: 1px;\n background-color: var(--mp-file-manager-border-color);\n margin: 0.25rem 0;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .icon-card,\n .toolbar button {\n transition: none !important;\n }\n}"), m = {
13
+ home: "Home",
14
+ newFolder: "New folder",
15
+ rename: "Rename",
16
+ delete: "Delete",
17
+ cut: "Cut",
18
+ copy: "Copy",
19
+ paste: "Paste",
20
+ upload: "Upload",
21
+ searchPlaceholder: "Search…",
22
+ listView: "List view",
23
+ iconsView: "Icons view",
24
+ name: "Name",
25
+ size: "Size",
26
+ modified: "Modified",
27
+ type: "Type",
28
+ folder: "Folder",
29
+ file: "File",
30
+ loading: "Loading…",
31
+ noFilesOrFolders: "No files or folders",
32
+ dropFilesToUpload: "↓ Drop files to upload ↓",
33
+ fileDropZone: "File drop zone",
34
+ deleteConfirm: (e) => `Delete ${e} item${e === 1 ? "" : "s"}?`,
35
+ folderNamePrompt: "Folder name",
36
+ defaultNewFolderName: "New folder",
37
+ conflictMessage: (e) => `"${e}" already exists. Replace?`,
38
+ conflictReplace: "Replace",
39
+ conflictSkip: "Skip",
40
+ conflictRename: "Keep both",
41
+ announceDeleted: (e) => e === 1 ? "1 item deleted." : `${e} items deleted.`,
42
+ announcePasted: (e) => e === 1 ? "1 item pasted." : `${e} items pasted.`,
43
+ announceNewFolder: (e) => `Folder ${e} created.`,
44
+ announceRenamed: (e, t) => `${e} renamed to ${t}.`,
45
+ announceUploadDone: (e) => `Upload of ${e} complete.`,
46
+ announceUploadFailed: (e) => `Upload of ${e} failed.`,
47
+ announceSearchResults: (e) => e === 1 ? "1 result." : `${e} results.`,
48
+ ariaToolbar: "File manager toolbar",
49
+ ariaFileOperations: "File operations",
50
+ ariaViewMode: "View mode",
51
+ ariaBreadcrumb: "Breadcrumb",
52
+ ariaFileList: "Files and folders",
53
+ ariaFileManager: "File manager"
374
54
  };
375
- function F(a) {
376
- return a ? { ...p, ...a } : p;
377
- }
378
- let I = 0;
379
- const f = "[data-node-id], tr[data-row-key]", b = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M.54 3.87.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3h3.982a2 2 0 0 1 1.992 2.181L15.546 8H2.454l-.913-3.13a.5.5 0 0 1 .013-.087.5.5 0 0 1-.014-.913zM13.81 4H2.19l-.572 6 1.193 4 11.078-2.5L15.81 5.66A1 1 0 0 0 14.81 4z"/></svg>', T = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M14 4.5V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5L14 4.5zm-3 0A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4.5h-2z"/></svg>', S = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"/></svg>', R = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5v-3zm8 0A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5v-3zm-8 8A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5v-3zm8 0A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5v-3z"/></svg>';
380
- class A extends v {
381
- constructor() {
382
- super(...arguments), this.instanceId = `mp-file-manager-${++I}`, this._nodes = [], this._rootFolderId = null, this._currentFolderId = null, this._allowUpload = !1, this._allowOperations = !0, this._viewMode = "list", this._selectionMode = "multiple", this._searchPlaceholder = "", this._messages = p, this._selection = /* @__PURE__ */ new Set(), this._expandedTreeIds = /* @__PURE__ */ new Set(), this._clipboard = null, this._searchQuery = "", this._searchAnnounceTimer = null, this._iconFocusId = null, this.liveAnnouncer = new m(this), this.alertAnnouncer = new m(this, { politeness: "assertive" }), this._renameTarget = null, this._renameInputRef = C(), this._dragDepth = 0, this._contextMenu = null, this._isTouchMode = !1, this._touchHoldTimer = null, this._pendingOps = /* @__PURE__ */ new Map(), this._uploads = [], this._loadedFolders = /* @__PURE__ */ new Set(), this.onTouchStart = (e) => {
383
- if (this.cancelTouchHold(), e.touches.length !== 1) return;
384
- const t = e.touches[0], i = e.composedPath().find(
385
- (s) => s instanceof HTMLElement && s.matches(f)
386
- ) ?? this.elementAt(t.clientX, t.clientY)?.closest(f), n = i?.getAttribute("data-node-id") ?? i?.getAttribute("data-row-key");
387
- if (!n) return;
388
- const o = t.clientX, r = t.clientY;
389
- this._touchHoldTimer = setTimeout(() => {
390
- this._touchHoldTimer = null, this._selectionMode !== "none" && !this._selection.has(n) && (this._selection = /* @__PURE__ */ new Set([n]), this.emitSelectionChange()), this.openContextMenu(n, o, r);
391
- }, 600);
392
- }, this.cancelTouchHold = () => {
393
- this._touchHoldTimer && (clearTimeout(this._touchHoldTimer), this._touchHoldTimer = null);
394
- }, this.openUploadPicker = () => {
395
- if (!this._allowUpload) return;
396
- const e = document.createElement("input");
397
- e.type = "file", e.multiple = !0, e.hidden = !0, e.addEventListener("change", () => {
398
- const t = Array.from(e.files ?? []);
399
- t.length > 0 && this.handleFiles(t), e.remove();
400
- }), e.addEventListener("cancel", () => e.remove()), document.body.appendChild(e), e.click();
401
- }, this._contextMenuReturnTarget = null, this.contextMenuRoving = new $({
402
- items: () => Array.from(this.renderRoot?.querySelectorAll(".context-menu .menu-item:not([disabled])") ?? []),
403
- orientation: "vertical",
404
- wrap: !0
405
- }), this.onContextMenuKeydown = (e) => {
406
- this.contextMenuRoving.onKeydown(e) && e.preventDefault();
407
- }, this.onTreeNodeSelect = (e) => {
408
- const t = e.detail;
409
- this.navigateTo(t.node.id);
410
- }, this.onTreeNodeExpand = (e) => {
411
- const t = e.detail;
412
- this._expandedTreeIds = new Set(t.expandedIds);
413
- }, this.onTreeNodeCollapse = (e) => {
414
- const t = e.detail;
415
- this._expandedTreeIds = new Set(t.expandedIds);
416
- }, this.onDatatableSelection = (e) => {
417
- const t = e.detail;
418
- this._selection = new Set(t.selectedIds), this.emitSelectionChange(), this.requestUpdate();
419
- }, this.onRowClick = () => {
420
- this.emitSelectionChange();
421
- }, this.onRowDblClick = (e) => {
422
- const t = e.detail;
423
- this.activateNode(t.row);
424
- }, this.onRowContextMenu = (e) => {
425
- const t = e.detail, i = t.originalEvent;
426
- i.preventDefault(), this.openContextMenu(t.rowKey, i.clientX, i.clientY);
427
- }, this.onContentKeydown = (e) => {
428
- const t = e.composedPath()[0];
429
- if (!(t instanceof HTMLElement && t.closest("input, textarea, [contenteditable]"))) {
430
- if (e.key === "Enter") {
431
- const i = t instanceof HTMLElement && t.classList.contains("icon-card") ? t : null, n = i ? i.dataset.nodeId : this._selection.size === 1 ? [...this._selection][0] : void 0, o = n != null ? this._nodes.find((r) => r.id === n) : void 0;
432
- if (!o) return;
433
- e.preventDefault(), i && this._selectionMode !== "none" && (this._selection = /* @__PURE__ */ new Set([o.id]), this.emitSelectionChange(), this.requestUpdate()), this.activateNode(o);
434
- return;
435
- }
436
- if ((e.key === "ContextMenu" || e.key === "F10" && e.shiftKey) && this._selection.size > 0) {
437
- e.preventDefault();
438
- const n = e.target?.getBoundingClientRect(), o = n ? n.left + n.width / 2 : 100, r = n ? n.bottom : 100, [s] = this._selection;
439
- this.openContextMenu(s, o, r);
440
- return;
441
- }
442
- if (e.key === "Delete" && this._selection.size > 0 && this.opEnabled("delete")) {
443
- e.preventDefault(), this.deleteSelection();
444
- return;
445
- }
446
- if (e.key === "F2" && this._selection.size === 1 && this.opEnabled("rename")) {
447
- e.preventDefault(), this.beginRenameFromToolbar();
448
- return;
449
- }
450
- if ((e.ctrlKey || e.metaKey) && e.key === "x" && this._selection.size > 0 && this.opEnabled("cut")) {
451
- e.preventDefault(), this.setClipboard("cut");
452
- return;
453
- }
454
- if ((e.ctrlKey || e.metaKey) && e.key === "c" && this._selection.size > 0 && this.opEnabled("copy")) {
455
- e.preventDefault(), this.setClipboard("copy");
456
- return;
457
- }
458
- if ((e.ctrlKey || e.metaKey) && e.key === "v" && this._clipboard && this.opEnabled("paste")) {
459
- e.preventDefault(), this.paste();
460
- return;
461
- }
462
- if ((e.ctrlKey || e.metaKey) && e.shiftKey && (e.key === "N" || e.key === "n") && this.opEnabled("newFolder")) {
463
- e.preventDefault(), this.promptNewFolder();
464
- return;
465
- }
466
- if (["ArrowRight", "ArrowDown", "ArrowLeft", "ArrowUp", "Home", "End"].includes(e.key)) {
467
- const i = e.composedPath()[0];
468
- if (!(i instanceof HTMLElement) || !i.classList.contains("icon-card")) return;
469
- const n = i.closest(".icon-grid");
470
- if (!n) return;
471
- const o = [...n.querySelectorAll(".icon-card")], r = o.indexOf(i);
472
- if (r < 0) return;
473
- e.preventDefault();
474
- let s;
475
- e.key === "Home" ? s = 0 : e.key === "End" ? s = o.length - 1 : e.key === "ArrowRight" || e.key === "ArrowDown" ? s = Math.min(o.length - 1, r + 1) : s = Math.max(0, r - 1), this._iconFocusId = o[s].dataset.nodeId ?? null, o[s].focus(), this.requestUpdate();
476
- return;
477
- }
478
- }
479
- }, this.promptNewFolder = async () => {
480
- if (!this.opEnabled("newFolder")) return;
481
- const e = this._messages, t = await this.invokeDialog({
482
- kind: "prompt",
483
- label: e.folderNamePrompt,
484
- defaultValue: e.defaultNewFolderName
485
- });
486
- typeof t != "string" || !t.trim() || (this.liveAnnouncer.announce(this._messages.announceNewFolder(t.trim())), this.dispatchEvent(
487
- new CustomEvent("mp-operation", {
488
- detail: { kind: "new-folder", parentId: this._currentFolderId, name: t.trim() },
489
- bubbles: !0,
490
- composed: !0
491
- })
492
- ));
493
- }, this.beginRenameFromToolbar = () => {
494
- if (this._selection.size !== 1) return;
495
- const [e] = this._selection;
496
- this._renameTarget = e, this.requestUpdate(), this.updateComplete.then(() => {
497
- const t = this._renameInputRef.value;
498
- t && (t.focus(), t.select());
499
- });
500
- }, this.deleteSelection = async () => {
501
- if (this._selection.size === 0 || !this.opEnabledOnSelection("delete") || !await this.invokeDialog({
502
- kind: "confirm",
503
- message: this._messages.deleteConfirm(this._selection.size)
504
- })) return;
505
- const t = [...this._selection];
506
- this._selection.clear(), this.liveAnnouncer.announce(this._messages.announceDeleted(t.length)), this.requestUpdate(), this.dispatchEvent(
507
- new CustomEvent("mp-operation", {
508
- detail: { kind: "delete", nodeIds: t },
509
- bubbles: !0,
510
- composed: !0
511
- })
512
- );
513
- }, this.paste = async () => {
514
- if (!this._clipboard || !this.opEnabled("paste")) return;
515
- const { mode: e, ids: t } = this._clipboard, i = await this.resolveConflictsForPaste(t, this._currentFolderId);
516
- i !== null && (this.liveAnnouncer.announce(this._messages.announcePasted(t.length)), this.dispatchEvent(
517
- new CustomEvent("mp-operation", {
518
- detail: {
519
- kind: "paste",
520
- mode: e,
521
- sourceIds: t,
522
- targetFolderId: this._currentFolderId,
523
- conflicts: i
524
- },
525
- bubbles: !0,
526
- composed: !0
527
- })
528
- ), e === "cut" && (this._clipboard = null), this.requestUpdate());
529
- }, this.onDragEnter = (e) => {
530
- this._allowUpload && (!e.dataTransfer || !e.dataTransfer.types.includes("Files") || (e.preventDefault(), this._dragDepth++, this._dragDepth === 1 && this.setAttribute("drop-active", "")));
531
- }, this.onDragOver = (e) => {
532
- this._allowUpload && (!e.dataTransfer || !e.dataTransfer.types.includes("Files") || (e.preventDefault(), e.dataTransfer.dropEffect = "copy"));
533
- }, this.onDragLeave = (e) => {
534
- this._allowUpload && (this._dragDepth = Math.max(0, this._dragDepth - 1), this._dragDepth === 0 && this.removeAttribute("drop-active"));
535
- }, this.onDrop = (e) => {
536
- if (!this._allowUpload || !e.dataTransfer || (e.preventDefault(), this._dragDepth = 0, this.removeAttribute("drop-active"), this._isTouchMode)) return;
537
- const t = Array.from(e.dataTransfer.files ?? []);
538
- t.length !== 0 && this.handleFiles(t);
539
- };
540
- }
541
- static {
542
- this.styles = [M];
543
- }
544
- static get observedAttributes() {
545
- return [
546
- ...super.observedAttributes ?? [],
547
- "root-folder-id",
548
- "current-folder-id",
549
- "allow-upload",
550
- "view-mode",
551
- "selection-mode",
552
- "search-placeholder"
553
- ];
554
- }
555
- // ─── Property accessors ──────────────────────────────────────────────────
556
- get nodes() {
557
- return this._nodes;
558
- }
559
- set nodes(e) {
560
- this._nodes = Array.isArray(e) ? e : [], this.pruneSelection(), this.requestUpdate();
561
- }
562
- get rootFolderId() {
563
- return this._rootFolderId;
564
- }
565
- set rootFolderId(e) {
566
- this._rootFolderId = e ?? null, this.requestUpdate();
567
- }
568
- get currentFolderId() {
569
- return this._currentFolderId;
570
- }
571
- set currentFolderId(e) {
572
- this._currentFolderId !== e && (this._currentFolderId = e ?? null, this._selection.clear(), this.requestUpdate());
573
- }
574
- get allowUpload() {
575
- return this._allowUpload;
576
- }
577
- set allowUpload(e) {
578
- this._allowUpload = !!e, this.requestUpdate();
579
- }
580
- get allowOperations() {
581
- return this._allowOperations;
582
- }
583
- set allowOperations(e) {
584
- this._allowOperations = e, this.requestUpdate();
585
- }
586
- get viewMode() {
587
- return this._viewMode;
588
- }
589
- set viewMode(e) {
590
- (e === "list" || e === "icons") && (this._viewMode = e, this.requestUpdate());
591
- }
592
- get selectionMode() {
593
- return this._selectionMode;
594
- }
595
- set selectionMode(e) {
596
- this._selectionMode = e, e === "none" && this._selection.clear(), this.requestUpdate();
597
- }
598
- get searchPlaceholder() {
599
- return this._searchPlaceholder;
600
- }
601
- set searchPlaceholder(e) {
602
- this._searchPlaceholder = e || "", this.requestUpdate();
603
- }
604
- get iconResolver() {
605
- return this._iconResolver;
606
- }
607
- set iconResolver(e) {
608
- this._iconResolver = e, this.requestUpdate();
609
- }
610
- /**
611
- * Partial override of the visible-string set. Unset keys fall back to the
612
- * English defaults in `DEFAULT_FILE_MANAGER_MESSAGES`.
613
- */
614
- get messages() {
615
- return this._messages;
616
- }
617
- set messages(e) {
618
- this._messages = F(e), this.hasAttribute("aria-label") && this.setAttribute("aria-label", this._messages.ariaFileManager), this.requestUpdate();
619
- }
620
- /**
621
- * Replacement for `window.confirm` / `window.prompt`. When unset, falls
622
- * back to the browser dialogs.
623
- */
624
- get dialogResolver() {
625
- return this._dialogResolver;
626
- }
627
- set dialogResolver(e) {
628
- this._dialogResolver = e;
629
- }
630
- /**
631
- * Invoked when paste / upload would overwrite an existing entry. When
632
- * unset, the WC silently replaces (v1 behaviour).
633
- */
634
- get conflictResolver() {
635
- return this._conflictResolver;
636
- }
637
- set conflictResolver(e) {
638
- this._conflictResolver = e;
639
- }
640
- /**
641
- * Async loader invoked when a folder is expanded in the tree for the
642
- * first time. Resolve with the folder's children; the consumer should
643
- * merge them into the global `nodes` array. The WC also surfaces a
644
- * loading indicator via `node.meta.loading = true` while the promise
645
- * is in flight.
646
- */
647
- get loadChildren() {
648
- return this._loadChildren;
649
- }
650
- set loadChildren(e) {
651
- this._loadChildren = e;
652
- }
653
- /** In-flight uploads, exposed for read-only consumption by progress UIs. */
654
- get uploads() {
655
- return this._uploads;
656
- }
657
- /** IDs of nodes currently being mutated server-side (set via `markPending`). */
658
- get pendingOpIds() {
659
- return new Set(this._pendingOps.keys());
660
- }
661
- /**
662
- * Mark a node as having an operation in flight. The row renders with a
663
- * busy state and the consumer should call `clearPending()` when done.
664
- */
665
- markPending(e, t) {
666
- this._pendingOps.set(e, t), this.requestUpdate();
667
- }
668
- /** Clear the pending state on a node. */
669
- clearPending(e) {
670
- this._pendingOps.delete(e) && this.requestUpdate();
671
- }
672
- /**
673
- * Surface an error message to the consumer. The component also re-fires
674
- * an `(error)` event with the same payload so toast systems can listen.
675
- */
676
- reportError(e, t) {
677
- this.dispatchEvent(
678
- new CustomEvent("mp-error", {
679
- detail: { kind: "operation", message: e, nodeId: t },
680
- bubbles: !0,
681
- composed: !0
682
- })
683
- );
684
- }
685
- /**
686
- * Push a progress update for an upload. The consumer calls this from
687
- * their upload-pipeline progress callback so the WC can render a
688
- * progress bar / completed state.
689
- */
690
- reportUploadProgress(e, t, i, n) {
691
- const o = this._uploads.findIndex((l) => l.id === e);
692
- if (o < 0) return;
693
- const r = this._uploads[o], s = { ...r, progress: t, ...i ? { status: i } : {}, ...n ? { error: n } : {} };
694
- this._uploads = [...this._uploads.slice(0, o), s, ...this._uploads.slice(o + 1)], r.status !== s.status && (s.status === "done" ? this.liveAnnouncer.announce(this._messages.announceUploadDone(s.file.name)) : s.status === "error" && this.alertAnnouncer.announce(this._messages.announceUploadFailed(s.file.name))), this.requestUpdate();
695
- }
696
- /** Remove a finished/aborted upload from the tracking list. */
697
- clearUpload(e) {
698
- const t = this._uploads.length;
699
- this._uploads = this._uploads.filter((i) => i.id !== e), this._uploads.length !== t && this.requestUpdate();
700
- }
701
- attributeChangedCallback(e, t, i) {
702
- switch (super.attributeChangedCallback(e, t, i), e) {
703
- case "root-folder-id":
704
- this._rootFolderId = i, this.requestUpdate();
705
- break;
706
- case "current-folder-id":
707
- this._currentFolderId = i, this.requestUpdate();
708
- break;
709
- case "allow-upload":
710
- this._allowUpload = i !== null, this.requestUpdate();
711
- break;
712
- case "view-mode": {
713
- const n = i ?? "list";
714
- (n === "list" || n === "icons") && (this._viewMode = n, this.requestUpdate());
715
- break;
716
- }
717
- case "selection-mode": {
718
- const n = i ?? "multiple";
719
- (n === "none" || n === "single" || n === "multiple") && (this._selectionMode = n, n === "none" && this._selection.clear(), this.requestUpdate());
720
- break;
721
- }
722
- case "search-placeholder":
723
- this._searchPlaceholder = i ?? "", this.requestUpdate();
724
- break;
725
- }
726
- }
727
- connectedCallback() {
728
- if (super.connectedCallback(), this.renderRoot instanceof ShadowRoot && (this._releaseLightStyles?.(), this._releaseLightStyles = w(this.renderRoot)), this.hasAttribute("role") || this.setAttribute("role", "region"), this.hasAttribute("aria-label") || this.setAttribute("aria-label", this._messages.ariaFileManager), typeof window < "u" && typeof window.matchMedia == "function")
729
- try {
730
- this._isTouchMode = window.matchMedia("(pointer: coarse)").matches;
731
- } catch {
732
- this._isTouchMode = !1;
733
- }
734
- this.addEventListener("touchstart", this.onTouchStart, { passive: !1 }), this.addEventListener("touchend", this.cancelTouchHold), this.addEventListener("touchcancel", this.cancelTouchHold), this.addEventListener("touchmove", this.cancelTouchHold);
735
- }
736
- disconnectedCallback() {
737
- super.disconnectedCallback(), this._releaseLightStyles?.(), this._releaseLightStyles = void 0, this.removeEventListener("touchstart", this.onTouchStart), this.removeEventListener("touchend", this.cancelTouchHold), this.removeEventListener("touchcancel", this.cancelTouchHold), this.removeEventListener("touchmove", this.cancelTouchHold), this.cancelTouchHold();
738
- }
739
- /** The one hit-test seam: which element of this component is under a viewport point. */
740
- elementAt(e, t) {
741
- return this.shadowRoot?.elementFromPoint?.(e, t) ?? null;
742
- }
743
- // ─── Operation flags helper ─────────────────────────────────────────────
744
- /**
745
- * Resolve whether `op` is allowed. When `nodeId` is provided, per-node
746
- * overrides on `FileSystemNode.allowOperations` take precedence over the
747
- * global flag. When `nodeId` is omitted (toolbar-level decisions like
748
- * "new folder"), only the global flag applies.
749
- */
750
- opEnabled(e, t) {
751
- if (this._allowOperations === !1) return !1;
752
- const i = this._allowOperations === !0 ? !0 : this._allowOperations[e] !== !1;
753
- if (!t) return i;
754
- const o = this._nodes.find((r) => r.id === t)?.allowOperations?.[e];
755
- return o === void 0 ? i : o !== !1;
756
- }
757
- /** True iff EVERY selected node permits the given operation. */
758
- opEnabledOnSelection(e) {
759
- if (!this.opEnabled(e)) return !1;
760
- for (const t of this._selection)
761
- if (!this.opEnabled(e, t)) return !1;
762
- return !0;
763
- }
764
- // ─── Derived collections ─────────────────────────────────────────────────
765
- getTreeItems() {
766
- const e = this._nodes.filter((r) => r.type === "folder"), t = /* @__PURE__ */ new Map();
767
- for (const r of e) {
768
- const s = t.get(r.parentId) ?? [];
769
- s.push(r), t.set(r.parentId, s);
770
- }
771
- const i = !!this._loadChildren, n = (r) => {
772
- const s = t.get(r);
773
- return s ? s.map((l) => {
774
- const h = n(l.id), g = i && h.length === 0 && !this._loadedFolders.has(l.id);
775
- return {
776
- id: l.id,
777
- label: l.name,
778
- iconKey: l.iconKey ?? "folder",
779
- children: h,
780
- lazy: g || void 0
781
- };
782
- }) : [];
783
- }, o = this._rootFolderId;
784
- return n(o === null ? null : o);
785
- }
786
- /**
787
- * Bridge `mp-treeview`'s `loadChildren` to the consumer's `loadChildren`
788
- * callback. Appends new nodes into the WC's local `_nodes` so the tree
789
- * (and current-folder file list) re-render, then returns the loaded
790
- * folder children to the treeview's lazy machinery for its own bookkeeping.
791
- */
792
- async loadTreeChildren(e) {
793
- if (!this._loadChildren) return [];
794
- const t = await this._loadChildren(e), i = new Set(this._nodes.map((o) => o.id)), n = t.filter((o) => !i.has(o.id));
795
- return this._nodes = [...this._nodes, ...n], this._loadedFolders.add(e), this.requestUpdate(), this.dispatchEvent(
796
- new CustomEvent("mp-children-loaded", {
797
- detail: { parentId: e, children: t },
798
- bubbles: !0,
799
- composed: !0
800
- })
801
- ), n.filter((o) => o.type === "folder").map((o) => ({
802
- id: o.id,
803
- label: o.name,
804
- iconKey: o.iconKey ?? "folder",
805
- children: [],
806
- lazy: !0
807
- }));
808
- }
809
- getCurrentChildren() {
810
- const e = this._currentFolderId, t = this._nodes.filter((o) => o.parentId === e), i = this._searchQuery.trim().toLowerCase();
811
- return (i ? t.filter((o) => o.name.toLowerCase().includes(i)) : t).slice().sort((o, r) => o.type !== r.type ? o.type === "folder" ? -1 : 1 : o.name.localeCompare(r.name));
812
- }
813
- getBreadcrumb() {
814
- if (this._currentFolderId === null) return [];
815
- const e = [];
816
- let t = this._currentFolderId;
817
- for (; t !== null; ) {
818
- const i = this._nodes.find((n) => n.id === t);
819
- if (!i) break;
820
- e.unshift(i), t = i.parentId;
821
- }
822
- return e;
823
- }
824
- // ─── Render ──────────────────────────────────────────────────────────────
825
- render() {
826
- const e = this.getTreeItems(), t = this.getCurrentChildren(), i = this.getBreadcrumb();
827
- return d`
55
+ function h(e) {
56
+ return e ? {
57
+ ...m,
58
+ ...e
59
+ } : m;
60
+ }
61
+ //#endregion
62
+ //#region libs/mintplayer-web-components/file-manager/src/components/mp-file-manager.ts
63
+ var g = 0, _ = "[data-node-id], tr[data-row-key]", v = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M.54 3.87.5 3a2 2 0 0 1 2-2h3.672a2 2 0 0 1 1.414.586l.828.828A2 2 0 0 0 9.828 3h3.982a2 2 0 0 1 1.992 2.181L15.546 8H2.454l-.913-3.13a.5.5 0 0 1 .013-.087.5.5 0 0 1-.014-.913zM13.81 4H2.19l-.572 6 1.193 4 11.078-2.5L15.81 5.66A1 1 0 0 0 14.81 4z\"/></svg>", y = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M14 4.5V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5L14 4.5zm-3 0A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4.5h-2z\"/></svg>", b = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z\"/></svg>", x = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 16 16\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5v-3zm8 0A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5v-3zm-8 8A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5v-3zm8 0A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5v-3z\"/></svg>", S = class extends i {
64
+ constructor(...t) {
65
+ super(...t), this.instanceId = `mp-file-manager-${++g}`, this._nodes = [], this._rootFolderId = null, this._currentFolderId = null, this._allowUpload = !1, this._allowOperations = !0, this._viewMode = "list", this._selectionMode = "multiple", this._searchPlaceholder = "", this._messages = m, this._selection = /* @__PURE__ */ new Set(), this._expandedTreeIds = /* @__PURE__ */ new Set(), this._clipboard = null, this._searchQuery = "", this._searchAnnounceTimer = null, this._iconFocusId = null, this.liveAnnouncer = new n(this), this.alertAnnouncer = new n(this, { politeness: "assertive" }), this._renameTarget = null, this._renameInputRef = c(), this._dragDepth = 0, this._contextMenu = null, this._isTouchMode = !1, this._touchHoldTimer = null, this._pendingOps = /* @__PURE__ */ new Map(), this._uploads = [], this._loadedFolders = /* @__PURE__ */ new Set(), this.onTouchStart = (e) => {
66
+ if (this.cancelTouchHold(), e.touches.length !== 1) return;
67
+ let t = e.touches[0], n = e.composedPath().find((e) => e instanceof HTMLElement && e.matches(_)) ?? this.elementAt(t.clientX, t.clientY)?.closest(_), r = n?.getAttribute("data-node-id") ?? n?.getAttribute("data-row-key");
68
+ if (!r) return;
69
+ let i = t.clientX, a = t.clientY;
70
+ this._touchHoldTimer = setTimeout(() => {
71
+ this._touchHoldTimer = null, this._selectionMode !== "none" && !this._selection.has(r) && (this._selection = /* @__PURE__ */ new Set([r]), this.emitSelectionChange()), this.openContextMenu(r, i, a);
72
+ }, 600);
73
+ }, this.cancelTouchHold = () => {
74
+ this._touchHoldTimer &&= (clearTimeout(this._touchHoldTimer), null);
75
+ }, this.openUploadPicker = () => {
76
+ if (!this._allowUpload) return;
77
+ let e = document.createElement("input");
78
+ e.type = "file", e.multiple = !0, e.hidden = !0, e.addEventListener("change", () => {
79
+ let t = Array.from(e.files ?? []);
80
+ t.length > 0 && this.handleFiles(t), e.remove();
81
+ }), e.addEventListener("cancel", () => e.remove()), document.body.appendChild(e), e.click();
82
+ }, this._contextMenuReturnTarget = null, this.contextMenuRoving = new e({
83
+ items: () => Array.from(this.renderRoot?.querySelectorAll(".context-menu .menu-item:not([disabled])") ?? []),
84
+ orientation: "vertical",
85
+ wrap: !0
86
+ }), this.onContextMenuKeydown = (e) => {
87
+ this.contextMenuRoving.onKeydown(e) && e.preventDefault();
88
+ }, this.onTreeNodeSelect = (e) => {
89
+ let t = e.detail;
90
+ this.navigateTo(t.node.id);
91
+ }, this.onTreeNodeExpand = (e) => {
92
+ let t = e.detail;
93
+ this._expandedTreeIds = new Set(t.expandedIds);
94
+ }, this.onTreeNodeCollapse = (e) => {
95
+ let t = e.detail;
96
+ this._expandedTreeIds = new Set(t.expandedIds);
97
+ }, this.onDatatableSelection = (e) => {
98
+ let t = e.detail;
99
+ this._selection = new Set(t.selectedIds), this.emitSelectionChange(), this.requestUpdate();
100
+ }, this.onRowClick = () => {
101
+ this.emitSelectionChange();
102
+ }, this.onRowDblClick = (e) => {
103
+ let t = e.detail;
104
+ this.activateNode(t.row);
105
+ }, this.onRowContextMenu = (e) => {
106
+ let t = e.detail, n = t.originalEvent;
107
+ n.preventDefault(), this.openContextMenu(t.rowKey, n.clientX, n.clientY);
108
+ }, this.onContentKeydown = (e) => {
109
+ let t = e.composedPath()[0];
110
+ if (!(t instanceof HTMLElement && t.closest("input, textarea, [contenteditable]"))) {
111
+ if (e.key === "Enter") {
112
+ let n = t instanceof HTMLElement && t.classList.contains("icon-card") ? t : null, r = n ? n.dataset.nodeId : this._selection.size === 1 ? [...this._selection][0] : void 0, i = r == null ? void 0 : this._nodes.find((e) => e.id === r);
113
+ if (!i) return;
114
+ e.preventDefault(), n && this._selectionMode !== "none" && (this._selection = /* @__PURE__ */ new Set([i.id]), this.emitSelectionChange(), this.requestUpdate()), this.activateNode(i);
115
+ } else if ((e.key === "ContextMenu" || e.key === "F10" && e.shiftKey) && this._selection.size > 0) {
116
+ e.preventDefault();
117
+ let t = e.target?.getBoundingClientRect(), n = t ? t.left + t.width / 2 : 100, r = t ? t.bottom : 100, [i] = this._selection;
118
+ this.openContextMenu(i, n, r);
119
+ } else if (e.key === "Delete" && this._selection.size > 0 && this.opEnabled("delete")) e.preventDefault(), this.deleteSelection();
120
+ else if (e.key === "F2" && this._selection.size === 1 && this.opEnabled("rename")) e.preventDefault(), this.beginRenameFromToolbar();
121
+ else if ((e.ctrlKey || e.metaKey) && e.key === "x" && this._selection.size > 0 && this.opEnabled("cut")) e.preventDefault(), this.setClipboard("cut");
122
+ else if ((e.ctrlKey || e.metaKey) && e.key === "c" && this._selection.size > 0 && this.opEnabled("copy")) e.preventDefault(), this.setClipboard("copy");
123
+ else if ((e.ctrlKey || e.metaKey) && e.key === "v" && this._clipboard && this.opEnabled("paste")) e.preventDefault(), this.paste();
124
+ else if ((e.ctrlKey || e.metaKey) && e.shiftKey && (e.key === "N" || e.key === "n") && this.opEnabled("newFolder")) e.preventDefault(), this.promptNewFolder();
125
+ else if ([
126
+ "ArrowRight",
127
+ "ArrowDown",
128
+ "ArrowLeft",
129
+ "ArrowUp",
130
+ "Home",
131
+ "End"
132
+ ].includes(e.key)) {
133
+ let t = e.composedPath()[0];
134
+ if (!(t instanceof HTMLElement) || !t.classList.contains("icon-card")) return;
135
+ let n = t.closest(".icon-grid");
136
+ if (!n) return;
137
+ let r = [...n.querySelectorAll(".icon-card")], i = r.indexOf(t);
138
+ if (i < 0) return;
139
+ e.preventDefault();
140
+ let a;
141
+ a = e.key === "Home" ? 0 : e.key === "End" ? r.length - 1 : e.key === "ArrowRight" || e.key === "ArrowDown" ? Math.min(r.length - 1, i + 1) : Math.max(0, i - 1), this._iconFocusId = r[a].dataset.nodeId ?? null, r[a].focus(), this.requestUpdate();
142
+ }
143
+ }
144
+ }, this.promptNewFolder = async () => {
145
+ if (!this.opEnabled("newFolder")) return;
146
+ let e = this._messages, t = await this.invokeDialog({
147
+ kind: "prompt",
148
+ label: e.folderNamePrompt,
149
+ defaultValue: e.defaultNewFolderName
150
+ });
151
+ typeof t == "string" && t.trim() && (this.liveAnnouncer.announce(this._messages.announceNewFolder(t.trim())), this.dispatchEvent(new CustomEvent("mp-operation", {
152
+ detail: {
153
+ kind: "new-folder",
154
+ parentId: this._currentFolderId,
155
+ name: t.trim()
156
+ },
157
+ bubbles: !0,
158
+ composed: !0
159
+ })));
160
+ }, this.beginRenameFromToolbar = () => {
161
+ if (this._selection.size !== 1) return;
162
+ let [e] = this._selection;
163
+ this._renameTarget = e, this.requestUpdate(), this.updateComplete.then(() => {
164
+ let e = this._renameInputRef.value;
165
+ e && (e.focus(), e.select());
166
+ });
167
+ }, this.deleteSelection = async () => {
168
+ if (this._selection.size === 0 || !this.opEnabledOnSelection("delete") || !await this.invokeDialog({
169
+ kind: "confirm",
170
+ message: this._messages.deleteConfirm(this._selection.size)
171
+ })) return;
172
+ let e = [...this._selection];
173
+ this._selection.clear(), this.liveAnnouncer.announce(this._messages.announceDeleted(e.length)), this.requestUpdate(), this.dispatchEvent(new CustomEvent("mp-operation", {
174
+ detail: {
175
+ kind: "delete",
176
+ nodeIds: e
177
+ },
178
+ bubbles: !0,
179
+ composed: !0
180
+ }));
181
+ }, this.paste = async () => {
182
+ if (!this._clipboard || !this.opEnabled("paste")) return;
183
+ let { mode: e, ids: t } = this._clipboard, n = await this.resolveConflictsForPaste(t, this._currentFolderId);
184
+ n !== null && (this.liveAnnouncer.announce(this._messages.announcePasted(t.length)), this.dispatchEvent(new CustomEvent("mp-operation", {
185
+ detail: {
186
+ kind: "paste",
187
+ mode: e,
188
+ sourceIds: t,
189
+ targetFolderId: this._currentFolderId,
190
+ conflicts: n
191
+ },
192
+ bubbles: !0,
193
+ composed: !0
194
+ })), e === "cut" && (this._clipboard = null), this.requestUpdate());
195
+ }, this.onDragEnter = (e) => {
196
+ this._allowUpload && e.dataTransfer && e.dataTransfer.types.includes("Files") && (e.preventDefault(), this._dragDepth++, this._dragDepth === 1 && this.setAttribute("drop-active", ""));
197
+ }, this.onDragOver = (e) => {
198
+ this._allowUpload && e.dataTransfer && e.dataTransfer.types.includes("Files") && (e.preventDefault(), e.dataTransfer.dropEffect = "copy");
199
+ }, this.onDragLeave = (e) => {
200
+ this._allowUpload && (this._dragDepth = Math.max(0, this._dragDepth - 1), this._dragDepth === 0 && this.removeAttribute("drop-active"));
201
+ }, this.onDrop = (e) => {
202
+ if (!this._allowUpload || !e.dataTransfer || (e.preventDefault(), this._dragDepth = 0, this.removeAttribute("drop-active"), this._isTouchMode)) return;
203
+ let t = Array.from(e.dataTransfer.files ?? []);
204
+ t.length !== 0 && this.handleFiles(t);
205
+ };
206
+ }
207
+ static {
208
+ this.styles = [p];
209
+ }
210
+ static get observedAttributes() {
211
+ return [
212
+ ...super.observedAttributes ?? [],
213
+ "root-folder-id",
214
+ "current-folder-id",
215
+ "allow-upload",
216
+ "view-mode",
217
+ "selection-mode",
218
+ "search-placeholder"
219
+ ];
220
+ }
221
+ get nodes() {
222
+ return this._nodes;
223
+ }
224
+ set nodes(e) {
225
+ this._nodes = Array.isArray(e) ? e : [], this.pruneSelection(), this.requestUpdate();
226
+ }
227
+ get rootFolderId() {
228
+ return this._rootFolderId;
229
+ }
230
+ set rootFolderId(e) {
231
+ this._rootFolderId = e ?? null, this.requestUpdate();
232
+ }
233
+ get currentFolderId() {
234
+ return this._currentFolderId;
235
+ }
236
+ set currentFolderId(e) {
237
+ this._currentFolderId !== e && (this._currentFolderId = e ?? null, this._selection.clear(), this.requestUpdate());
238
+ }
239
+ get allowUpload() {
240
+ return this._allowUpload;
241
+ }
242
+ set allowUpload(e) {
243
+ this._allowUpload = !!e, this.requestUpdate();
244
+ }
245
+ get allowOperations() {
246
+ return this._allowOperations;
247
+ }
248
+ set allowOperations(e) {
249
+ this._allowOperations = e, this.requestUpdate();
250
+ }
251
+ get viewMode() {
252
+ return this._viewMode;
253
+ }
254
+ set viewMode(e) {
255
+ (e === "list" || e === "icons") && (this._viewMode = e, this.requestUpdate());
256
+ }
257
+ get selectionMode() {
258
+ return this._selectionMode;
259
+ }
260
+ set selectionMode(e) {
261
+ this._selectionMode = e, e === "none" && this._selection.clear(), this.requestUpdate();
262
+ }
263
+ get searchPlaceholder() {
264
+ return this._searchPlaceholder;
265
+ }
266
+ set searchPlaceholder(e) {
267
+ this._searchPlaceholder = e || "", this.requestUpdate();
268
+ }
269
+ get iconResolver() {
270
+ return this._iconResolver;
271
+ }
272
+ set iconResolver(e) {
273
+ this._iconResolver = e, this.requestUpdate();
274
+ }
275
+ get messages() {
276
+ return this._messages;
277
+ }
278
+ set messages(e) {
279
+ this._messages = h(e), this.hasAttribute("aria-label") && this.setAttribute("aria-label", this._messages.ariaFileManager), this.requestUpdate();
280
+ }
281
+ get dialogResolver() {
282
+ return this._dialogResolver;
283
+ }
284
+ set dialogResolver(e) {
285
+ this._dialogResolver = e;
286
+ }
287
+ get conflictResolver() {
288
+ return this._conflictResolver;
289
+ }
290
+ set conflictResolver(e) {
291
+ this._conflictResolver = e;
292
+ }
293
+ get loadChildren() {
294
+ return this._loadChildren;
295
+ }
296
+ set loadChildren(e) {
297
+ this._loadChildren = e;
298
+ }
299
+ get uploads() {
300
+ return this._uploads;
301
+ }
302
+ get pendingOpIds() {
303
+ return new Set(this._pendingOps.keys());
304
+ }
305
+ markPending(e, t) {
306
+ this._pendingOps.set(e, t), this.requestUpdate();
307
+ }
308
+ clearPending(e) {
309
+ this._pendingOps.delete(e) && this.requestUpdate();
310
+ }
311
+ reportError(e, t) {
312
+ this.dispatchEvent(new CustomEvent("mp-error", {
313
+ detail: {
314
+ kind: "operation",
315
+ message: e,
316
+ nodeId: t
317
+ },
318
+ bubbles: !0,
319
+ composed: !0
320
+ }));
321
+ }
322
+ reportUploadProgress(e, t, n, r) {
323
+ let i = this._uploads.findIndex((t) => t.id === e);
324
+ if (i < 0) return;
325
+ let a = this._uploads[i], o = {
326
+ ...a,
327
+ progress: t,
328
+ ...n ? { status: n } : {},
329
+ ...r ? { error: r } : {}
330
+ };
331
+ this._uploads = [
332
+ ...this._uploads.slice(0, i),
333
+ o,
334
+ ...this._uploads.slice(i + 1)
335
+ ], a.status !== o.status && (o.status === "done" ? this.liveAnnouncer.announce(this._messages.announceUploadDone(o.file.name)) : o.status === "error" && this.alertAnnouncer.announce(this._messages.announceUploadFailed(o.file.name))), this.requestUpdate();
336
+ }
337
+ clearUpload(e) {
338
+ let t = this._uploads.length;
339
+ this._uploads = this._uploads.filter((t) => t.id !== e), this._uploads.length !== t && this.requestUpdate();
340
+ }
341
+ attributeChangedCallback(e, t, n) {
342
+ switch (super.attributeChangedCallback(e, t, n), e) {
343
+ case "root-folder-id":
344
+ this._rootFolderId = n, this.requestUpdate();
345
+ break;
346
+ case "current-folder-id":
347
+ this._currentFolderId = n, this.requestUpdate();
348
+ break;
349
+ case "allow-upload":
350
+ this._allowUpload = n !== null, this.requestUpdate();
351
+ break;
352
+ case "view-mode": {
353
+ let e = n ?? "list";
354
+ (e === "list" || e === "icons") && (this._viewMode = e, this.requestUpdate());
355
+ break;
356
+ }
357
+ case "selection-mode": {
358
+ let e = n ?? "multiple";
359
+ (e === "none" || e === "single" || e === "multiple") && (this._selectionMode = e, e === "none" && this._selection.clear(), this.requestUpdate());
360
+ break;
361
+ }
362
+ case "search-placeholder": this._searchPlaceholder = n ?? "", this.requestUpdate();
363
+ }
364
+ }
365
+ connectedCallback() {
366
+ if (super.connectedCallback(), this.renderRoot instanceof ShadowRoot && (this._releaseLightStyles?.(), this._releaseLightStyles = r(this.renderRoot)), this.hasAttribute("role") || this.setAttribute("role", "region"), this.hasAttribute("aria-label") || this.setAttribute("aria-label", this._messages.ariaFileManager), typeof window < "u" && typeof window.matchMedia == "function") try {
367
+ this._isTouchMode = window.matchMedia("(pointer: coarse)").matches;
368
+ } catch {
369
+ this._isTouchMode = !1;
370
+ }
371
+ this.addEventListener("touchstart", this.onTouchStart, { passive: !1 }), this.addEventListener("touchend", this.cancelTouchHold), this.addEventListener("touchcancel", this.cancelTouchHold), this.addEventListener("touchmove", this.cancelTouchHold);
372
+ }
373
+ disconnectedCallback() {
374
+ super.disconnectedCallback(), this._releaseLightStyles?.(), this._releaseLightStyles = void 0, this.removeEventListener("touchstart", this.onTouchStart), this.removeEventListener("touchend", this.cancelTouchHold), this.removeEventListener("touchcancel", this.cancelTouchHold), this.removeEventListener("touchmove", this.cancelTouchHold), this.cancelTouchHold();
375
+ }
376
+ elementAt(e, t) {
377
+ return this.shadowRoot?.elementFromPoint?.(e, t) ?? null;
378
+ }
379
+ opEnabled(e, t) {
380
+ if (this._allowOperations === !1) return !1;
381
+ let n = this._allowOperations === !0 || this._allowOperations[e] !== !1;
382
+ if (!t) return n;
383
+ let r = this._nodes.find((e) => e.id === t)?.allowOperations?.[e];
384
+ return r === void 0 ? n : r !== !1;
385
+ }
386
+ opEnabledOnSelection(e) {
387
+ if (!this.opEnabled(e)) return !1;
388
+ for (let t of this._selection) if (!this.opEnabled(e, t)) return !1;
389
+ return !0;
390
+ }
391
+ getTreeItems() {
392
+ let e = this._nodes.filter((e) => e.type === "folder"), t = /* @__PURE__ */ new Map();
393
+ for (let n of e) {
394
+ let e = t.get(n.parentId) ?? [];
395
+ e.push(n), t.set(n.parentId, e);
396
+ }
397
+ let n = !!this._loadChildren, r = (e) => {
398
+ let i = t.get(e);
399
+ return i ? i.map((e) => {
400
+ let t = r(e.id), i = n && t.length === 0 && !this._loadedFolders.has(e.id);
401
+ return {
402
+ id: e.id,
403
+ label: e.name,
404
+ iconKey: e.iconKey ?? "folder",
405
+ children: t,
406
+ lazy: i || void 0
407
+ };
408
+ }) : [];
409
+ }, i = this._rootFolderId;
410
+ return r(i === null ? null : i);
411
+ }
412
+ async loadTreeChildren(e) {
413
+ if (!this._loadChildren) return [];
414
+ let t = await this._loadChildren(e), n = new Set(this._nodes.map((e) => e.id)), r = t.filter((e) => !n.has(e.id));
415
+ return this._nodes = [...this._nodes, ...r], this._loadedFolders.add(e), this.requestUpdate(), this.dispatchEvent(new CustomEvent("mp-children-loaded", {
416
+ detail: {
417
+ parentId: e,
418
+ children: t
419
+ },
420
+ bubbles: !0,
421
+ composed: !0
422
+ })), r.filter((e) => e.type === "folder").map((e) => ({
423
+ id: e.id,
424
+ label: e.name,
425
+ iconKey: e.iconKey ?? "folder",
426
+ children: [],
427
+ lazy: !0
428
+ }));
429
+ }
430
+ getCurrentChildren() {
431
+ let e = this._currentFolderId, t = this._nodes.filter((t) => t.parentId === e), n = this._searchQuery.trim().toLowerCase();
432
+ return (n ? t.filter((e) => e.name.toLowerCase().includes(n)) : t).slice().sort((e, t) => e.type === t.type ? e.name.localeCompare(t.name) : e.type === "folder" ? -1 : 1);
433
+ }
434
+ getBreadcrumb() {
435
+ if (this._currentFolderId === null) return [];
436
+ let e = [], t = this._currentFolderId;
437
+ for (; t !== null;) {
438
+ let n = this._nodes.find((e) => e.id === t);
439
+ if (!n) break;
440
+ e.unshift(n), t = n.parentId;
441
+ }
442
+ return e;
443
+ }
444
+ render() {
445
+ let e = this.getTreeItems(), t = this.getCurrentChildren(), n = this.getBreadcrumb();
446
+ return a`
828
447
  ${this.liveAnnouncer.template()}
829
448
  ${this.alertAnnouncer.template()}
830
449
  ${this.renderToolbar()}
831
- ${this.renderBreadcrumb(i)}
450
+ ${this.renderBreadcrumb(n)}
832
451
  <div class="split-area">
833
452
  <mp-splitter orientation="horizontal" min-panel-size="120">
834
453
  <div class="tree-pane">
@@ -836,8 +455,8 @@ class A extends v {
836
455
  .items=${e}
837
456
  .expandedIds=${[...this._expandedTreeIds]}
838
457
  .selectedIds=${this._currentFolderId ? [this._currentFolderId] : []}
839
- .iconResolver=${(n, o) => this.resolveIconForTree(n, o)}
840
- .loadChildren=${this._loadChildren ? (n) => this.loadTreeChildren(n) : void 0}
458
+ .iconResolver=${(e, t) => this.resolveIconForTree(e, t)}
459
+ .loadChildren=${this._loadChildren ? (e) => this.loadTreeChildren(e) : void 0}
841
460
  hide-borders
842
461
  selection-mode="single"
843
462
  @tree-node-select=${this.onTreeNodeSelect}
@@ -864,104 +483,111 @@ class A extends v {
864
483
  </div>
865
484
  ${this.renderContextMenu()}
866
485
  `;
867
- }
868
- renderContextMenu() {
869
- const e = this._contextMenu;
870
- if (!e) return d``;
871
- const t = this._messages, i = this._selection.size > 0, n = this._clipboard !== null;
872
- return d`
486
+ }
487
+ renderContextMenu() {
488
+ let e = this._contextMenu;
489
+ if (!e) return a``;
490
+ let t = this._messages, n = this._selection.size > 0, r = this._clipboard !== null;
491
+ return a`
873
492
  <ul
874
493
  class="context-menu"
875
494
  role="menu"
876
495
  aria-label=${this._messages.ariaFileOperations}
877
- style=${E({ left: `${e.x}px`, top: `${e.y}px` })}
878
- @click=${(o) => o.stopPropagation()}
496
+ style=${f({
497
+ left: `${e.x}px`,
498
+ top: `${e.y}px`
499
+ })}
500
+ @click=${(e) => e.stopPropagation()}
879
501
  @keydown=${this.onContextMenuKeydown}
880
502
  >
881
- ${this.opEnabled("rename") ? d`<li role="none"><button class="menu-item" role="menuitem" ?disabled=${this._selection.size !== 1 || !this.opEnabledOnSelection("rename")} @click=${() => {
882
- this.closeContextMenu(), this.beginRenameFromToolbar();
883
- }}>${t.rename}</button></li>` : c}
884
- ${this.opEnabled("delete") ? d`<li role="none"><button class="menu-item" role="menuitem" ?disabled=${!i || !this.opEnabledOnSelection("delete")} @click=${() => {
885
- this.closeContextMenu(), this.deleteSelection();
886
- }}>${t.delete}</button></li>` : c}
503
+ ${this.opEnabled("rename") ? a`<li role="none"><button class="menu-item" role="menuitem" ?disabled=${this._selection.size !== 1 || !this.opEnabledOnSelection("rename")} @click=${() => {
504
+ this.closeContextMenu(), this.beginRenameFromToolbar();
505
+ }}>${t.rename}</button></li>` : o}
506
+ ${this.opEnabled("delete") ? a`<li role="none"><button class="menu-item" role="menuitem" ?disabled=${!n || !this.opEnabledOnSelection("delete")} @click=${() => {
507
+ this.closeContextMenu(), this.deleteSelection();
508
+ }}>${t.delete}</button></li>` : o}
887
509
  <li role="separator" class="menu-separator"></li>
888
- ${this.opEnabled("cut") ? d`<li role="none"><button class="menu-item" role="menuitem" ?disabled=${!i || !this.opEnabledOnSelection("cut")} @click=${() => {
889
- this.closeContextMenu(), this.setClipboard("cut");
890
- }}>${t.cut}</button></li>` : c}
891
- ${this.opEnabled("copy") ? d`<li role="none"><button class="menu-item" role="menuitem" ?disabled=${!i || !this.opEnabledOnSelection("copy")} @click=${() => {
892
- this.closeContextMenu(), this.setClipboard("copy");
893
- }}>${t.copy}</button></li>` : c}
894
- ${this.opEnabled("paste") ? d`<li role="none"><button class="menu-item" role="menuitem" ?disabled=${!n} @click=${() => {
895
- this.closeContextMenu(), this.paste();
896
- }}>${t.paste}</button></li>` : c}
510
+ ${this.opEnabled("cut") ? a`<li role="none"><button class="menu-item" role="menuitem" ?disabled=${!n || !this.opEnabledOnSelection("cut")} @click=${() => {
511
+ this.closeContextMenu(), this.setClipboard("cut");
512
+ }}>${t.cut}</button></li>` : o}
513
+ ${this.opEnabled("copy") ? a`<li role="none"><button class="menu-item" role="menuitem" ?disabled=${!n || !this.opEnabledOnSelection("copy")} @click=${() => {
514
+ this.closeContextMenu(), this.setClipboard("copy");
515
+ }}>${t.copy}</button></li>` : o}
516
+ ${this.opEnabled("paste") ? a`<li role="none"><button class="menu-item" role="menuitem" ?disabled=${!r} @click=${() => {
517
+ this.closeContextMenu(), this.paste();
518
+ }}>${t.paste}</button></li>` : o}
897
519
  <li role="separator" class="menu-separator"></li>
898
- ${this.opEnabled("newFolder") ? d`<li role="none"><button class="menu-item" role="menuitem" @click=${() => {
899
- this.closeContextMenu(), this.promptNewFolder();
900
- }}>${t.newFolder}</button></li>` : c}
520
+ ${this.opEnabled("newFolder") ? a`<li role="none"><button class="menu-item" role="menuitem" @click=${() => {
521
+ this.closeContextMenu(), this.promptNewFolder();
522
+ }}>${t.newFolder}</button></li>` : o}
901
523
  </ul>
902
524
  `;
903
- }
904
- openContextMenu(e, t, i) {
905
- if (this._allowOperations === !1) return;
906
- const n = y();
907
- this._contextMenuReturnTarget = n instanceof HTMLElement && n !== n.ownerDocument.body ? n : null, this._contextMenu = { x: t, y: i, targetId: e }, this.requestUpdate(), this.updateComplete.then(() => {
908
- this.contextMenuRoving.sync(), this.contextMenuRoving.moveTo(0);
909
- const o = (r) => {
910
- r instanceof KeyboardEvent && r.key !== "Escape" || (this.closeContextMenu(), document.removeEventListener("click", o, !0), document.removeEventListener("contextmenu", o, !0), document.removeEventListener("keydown", o, !0));
911
- };
912
- document.addEventListener("click", o, !0), document.addEventListener("contextmenu", o, !0), document.addEventListener("keydown", o, !0);
913
- });
914
- }
915
- closeContextMenu() {
916
- this._contextMenu && (this._contextMenu = null, this.requestUpdate(), this._contextMenuReturnTarget?.focus(), this._contextMenuReturnTarget = null);
917
- }
918
- renderToolbar() {
919
- const e = this._messages, t = this._selection.size > 0, i = this._clipboard !== null, n = this._searchPlaceholder || e.searchPlaceholder;
920
- return d`
525
+ }
526
+ openContextMenu(e, n, r) {
527
+ if (this._allowOperations === !1) return;
528
+ let i = t();
529
+ this._contextMenuReturnTarget = i instanceof HTMLElement && i !== i.ownerDocument.body ? i : null, this._contextMenu = {
530
+ x: n,
531
+ y: r,
532
+ targetId: e
533
+ }, this.requestUpdate(), this.updateComplete.then(() => {
534
+ this.contextMenuRoving.sync(), this.contextMenuRoving.moveTo(0);
535
+ let e = (t) => {
536
+ t instanceof KeyboardEvent && t.key !== "Escape" || (this.closeContextMenu(), document.removeEventListener("click", e, !0), document.removeEventListener("contextmenu", e, !0), document.removeEventListener("keydown", e, !0));
537
+ };
538
+ document.addEventListener("click", e, !0), document.addEventListener("contextmenu", e, !0), document.addEventListener("keydown", e, !0);
539
+ });
540
+ }
541
+ closeContextMenu() {
542
+ this._contextMenu && (this._contextMenu = null, this.requestUpdate(), this._contextMenuReturnTarget?.focus(), this._contextMenuReturnTarget = null);
543
+ }
544
+ renderToolbar() {
545
+ let e = this._messages, t = this._selection.size > 0, n = this._clipboard !== null, r = this._searchPlaceholder || e.searchPlaceholder;
546
+ return a`
921
547
  <div class="toolbar" role="toolbar" aria-label=${e.ariaToolbar}>
922
- ${this.opEnabled("newFolder") ? d`<button type="button" @click=${this.promptNewFolder} aria-label=${e.newFolder}>📁 ${e.newFolder}</button>` : c}
923
- ${this.opEnabled("rename") ? d`<button
548
+ ${this.opEnabled("newFolder") ? a`<button type="button" @click=${this.promptNewFolder} aria-label=${e.newFolder}>📁 ${e.newFolder}</button>` : o}
549
+ ${this.opEnabled("rename") ? a`<button
924
550
  type="button"
925
551
  ?disabled=${!t || this._selection.size !== 1 || !this.opEnabledOnSelection("rename")}
926
552
  @click=${this.beginRenameFromToolbar}
927
553
  aria-label=${e.rename}
928
- >✏️ ${e.rename}</button>` : c}
929
- ${this.opEnabled("delete") ? d`<button
554
+ >✏️ ${e.rename}</button>` : o}
555
+ ${this.opEnabled("delete") ? a`<button
930
556
  type="button"
931
557
  ?disabled=${!t || !this.opEnabledOnSelection("delete")}
932
558
  @click=${this.deleteSelection}
933
559
  aria-label=${e.delete}
934
- >🗑 ${e.delete}</button>` : c}
935
- ${this.opEnabled("cut") ? d`<button
560
+ >🗑 ${e.delete}</button>` : o}
561
+ ${this.opEnabled("cut") ? a`<button
936
562
  type="button"
937
563
  ?disabled=${!t || !this.opEnabledOnSelection("cut")}
938
564
  @click=${() => this.setClipboard("cut")}
939
565
  aria-label=${e.cut}
940
- >✂ ${e.cut}</button>` : c}
941
- ${this.opEnabled("copy") ? d`<button
566
+ >✂ ${e.cut}</button>` : o}
567
+ ${this.opEnabled("copy") ? a`<button
942
568
  type="button"
943
569
  ?disabled=${!t || !this.opEnabledOnSelection("copy")}
944
570
  @click=${() => this.setClipboard("copy")}
945
571
  aria-label=${e.copy}
946
- >📋 ${e.copy}</button>` : c}
947
- ${this.opEnabled("paste") ? d`<button
572
+ >📋 ${e.copy}</button>` : o}
573
+ ${this.opEnabled("paste") ? a`<button
948
574
  type="button"
949
- ?disabled=${!i}
575
+ ?disabled=${!n}
950
576
  @click=${this.paste}
951
577
  aria-label=${e.paste}
952
- >📥 ${e.paste}</button>` : c}
953
- ${this._allowUpload ? d`<button
578
+ >📥 ${e.paste}</button>` : o}
579
+ ${this._allowUpload ? a`<button
954
580
  type="button"
955
581
  @click=${this.openUploadPicker}
956
582
  aria-label=${e.upload}
957
- >📤 ${e.upload}</button>` : c}
583
+ >📤 ${e.upload}</button>` : o}
958
584
  <span class="spacer"></span>
959
585
  <input
960
586
  type="search"
961
587
  class="search-input"
962
588
  .value=${this._searchQuery}
963
- placeholder=${n}
964
- @input=${(o) => this.onSearchInput(o)}
589
+ placeholder=${r}
590
+ @input=${(e) => this.onSearchInput(e)}
965
591
  aria-label=${e.searchPlaceholder}
966
592
  />
967
593
  <div class="view-toggle" role="group" aria-label=${this._messages.ariaViewMode}>
@@ -971,20 +597,20 @@ class A extends v {
971
597
  @click=${() => this.setViewMode("list")}
972
598
  aria-label=${e.listView}
973
599
  aria-pressed=${this._viewMode === "list"}
974
- >${u(S)}</button>
600
+ >${u(b)}</button>
975
601
  <button
976
602
  type="button"
977
603
  data-active=${this._viewMode === "icons" ? "true" : "false"}
978
604
  @click=${() => this.setViewMode("icons")}
979
605
  aria-label=${e.iconsView}
980
606
  aria-pressed=${this._viewMode === "icons"}
981
- >${u(R)}</button>
607
+ >${u(x)}</button>
982
608
  </div>
983
609
  </div>
984
610
  `;
985
- }
986
- renderBreadcrumb(e) {
987
- return d`
611
+ }
612
+ renderBreadcrumb(e) {
613
+ return a`
988
614
  <nav class="breadcrumb-bar" aria-label=${this._messages.ariaBreadcrumb}>
989
615
  <button
990
616
  class="breadcrumb-segment"
@@ -993,59 +619,59 @@ class A extends v {
993
619
  @click=${() => this.navigateTo(null)}
994
620
  type="button"
995
621
  >${this._messages.home}</button>
996
- ${e.map((t, i) => {
997
- const n = i === e.length - 1;
998
- return d`
622
+ ${e.map((t, n) => {
623
+ let r = n === e.length - 1;
624
+ return a`
999
625
  <span class="breadcrumb-separator" aria-hidden="true">›</span>
1000
626
  <button
1001
627
  class="breadcrumb-segment"
1002
- data-current=${n ? "true" : "false"}
1003
- aria-current=${n ? "page" : "false"}
628
+ data-current=${r ? "true" : "false"}
629
+ aria-current=${r ? "page" : "false"}
1004
630
  @click=${() => this.navigateTo(t.id)}
1005
631
  type="button"
1006
632
  >${t.name}</button>
1007
633
  `;
1008
- })}
634
+ })}
1009
635
  </nav>
1010
636
  `;
1011
- }
1012
- renderListView(e) {
1013
- const t = this._messages, i = [
1014
- {
1015
- name: "name",
1016
- label: t.name,
1017
- sortable: !0,
1018
- cellClass: "text-nowrap",
1019
- cellRenderer: (n) => this.renderNameCell(n)
1020
- },
1021
- {
1022
- name: "size",
1023
- label: t.size,
1024
- sortable: !0,
1025
- cellClass: "text-nowrap",
1026
- cellRenderer: (n) => this.formatSize(n)
1027
- },
1028
- {
1029
- name: "modifiedAt",
1030
- label: t.modified,
1031
- sortable: !0,
1032
- cellClass: "text-nowrap",
1033
- cellRenderer: (n) => this.formatDate(n)
1034
- },
1035
- {
1036
- name: "type",
1037
- label: t.type,
1038
- sortable: !0,
1039
- cellClass: "text-nowrap",
1040
- cellRenderer: (n) => n.type === "folder" ? t.folder : n.mimeType ?? t.file
1041
- }
1042
- ];
1043
- return d`
637
+ }
638
+ renderListView(e) {
639
+ let t = this._messages, n = [
640
+ {
641
+ name: "name",
642
+ label: t.name,
643
+ sortable: !0,
644
+ cellClass: "text-nowrap",
645
+ cellRenderer: (e) => this.renderNameCell(e)
646
+ },
647
+ {
648
+ name: "size",
649
+ label: t.size,
650
+ sortable: !0,
651
+ cellClass: "text-nowrap",
652
+ cellRenderer: (e) => this.formatSize(e)
653
+ },
654
+ {
655
+ name: "modifiedAt",
656
+ label: t.modified,
657
+ sortable: !0,
658
+ cellClass: "text-nowrap",
659
+ cellRenderer: (e) => this.formatDate(e)
660
+ },
661
+ {
662
+ name: "type",
663
+ label: t.type,
664
+ sortable: !0,
665
+ cellClass: "text-nowrap",
666
+ cellRenderer: (e) => e.type === "folder" ? t.folder : e.mimeType ?? t.file
667
+ }
668
+ ];
669
+ return a`
1044
670
  <mp-datatable
1045
- .columns=${i}
671
+ .columns=${n}
1046
672
  .data=${e}
1047
673
  .selectedIds=${[...this._selection]}
1048
- .rowKey=${(n) => n.id}
674
+ .rowKey=${(e) => e.id}
1049
675
  selection-mode=${this._selectionMode}
1050
676
  resizable-columns
1051
677
  virtual-scroll
@@ -1058,275 +684,240 @@ class A extends v {
1058
684
  @keydown=${this.onContentKeydown}
1059
685
  ></mp-datatable>
1060
686
  `;
1061
- }
1062
- renderNameCell(e) {
1063
- const t = this.resolveIcon(e);
1064
- return this._renameTarget === e.id ? d`
687
+ }
688
+ renderNameCell(e) {
689
+ let t = this.resolveIcon(e);
690
+ return this._renameTarget === e.id ? a`
1065
691
  <span class="row-cell">
1066
- <span class="row-icon" aria-hidden="true">${t ? u(t) : c}</span>
692
+ <span class="row-icon" aria-hidden="true">${t ? u(t) : o}</span>
1067
693
  <input
1068
- ${k(this._renameInputRef)}
694
+ ${l(this._renameInputRef)}
1069
695
  type="text"
1070
696
  class="rename-input"
1071
697
  .value=${e.name}
1072
- @click=${(i) => i.stopPropagation()}
1073
- @keydown=${(i) => this.onRenameKeydown(i, e)}
1074
- @blur=${(i) => this.commitRename(e, i.target.value)}
698
+ @click=${(e) => e.stopPropagation()}
699
+ @keydown=${(t) => this.onRenameKeydown(t, e)}
700
+ @blur=${(t) => this.commitRename(e, t.target.value)}
1075
701
  />
1076
702
  </span>
1077
- ` : d`
703
+ ` : a`
1078
704
  <span class="row-cell">
1079
- <span class="row-icon" aria-hidden="true">${t ? u(t) : c}</span>
705
+ <span class="row-icon" aria-hidden="true">${t ? u(t) : o}</span>
1080
706
  <span>${e.name}</span>
1081
707
  </span>
1082
708
  `;
1083
- }
1084
- /**
1085
- * listbox/option, not grid/gridcell (Phase E): the cards were gridcells
1086
- * with no row chain — an invalid grid — and the wrap-reflow layout has no
1087
- * stable row/column geometry to expose anyway. Options rove: one tab stop
1088
- * for the whole surface, arrows move between cards.
1089
- */
1090
- renderIconGridView(e) {
1091
- return d`
709
+ }
710
+ renderIconGridView(e) {
711
+ return a`
1092
712
  <div class="icon-grid" role="listbox" aria-multiselectable="true" aria-label=${this._messages.ariaFileList} @keydown=${this.onContentKeydown}>
1093
- ${x(
1094
- e,
1095
- (t) => t.id,
1096
- (t, i) => this.renderIconCard(t, i, e)
1097
- )}
713
+ ${d(e, (e) => e.id, (t, n) => this.renderIconCard(t, n, e))}
1098
714
  </div>
1099
715
  `;
1100
- }
1101
- renderIconCard(e, t, i) {
1102
- const n = this._selection.has(e.id), o = this._clipboard?.mode === "cut" && this._clipboard.ids.includes(e.id), r = this.resolveIcon(e), s = this._iconFocusId && i.some((l) => l.id === this._iconFocusId) ? this._iconFocusId : i.find((l) => this._selection.has(l.id))?.id ?? i[0]?.id;
1103
- return d`
716
+ }
717
+ renderIconCard(e, t, n) {
718
+ let r = this._selection.has(e.id), i = this._clipboard?.mode === "cut" && this._clipboard.ids.includes(e.id), s = this.resolveIcon(e), c = this._iconFocusId && n.some((e) => e.id === this._iconFocusId) ? this._iconFocusId : n.find((e) => this._selection.has(e.id))?.id ?? n[0]?.id;
719
+ return a`
1104
720
  <button
1105
721
  class="icon-card"
1106
722
  type="button"
1107
723
  role="option"
1108
- tabindex=${e.id === s ? "0" : "-1"}
724
+ tabindex=${e.id === c ? "0" : "-1"}
1109
725
  data-node-id=${e.id}
1110
- data-selected=${n ? "true" : "false"}
1111
- data-cut=${o ? "true" : "false"}
1112
- aria-selected=${n ? "true" : "false"}
726
+ data-selected=${r ? "true" : "false"}
727
+ data-cut=${i ? "true" : "false"}
728
+ aria-selected=${r ? "true" : "false"}
1113
729
  @focus=${() => {
1114
- this._iconFocusId = e.id;
1115
- }}
1116
- @click=${(l) => this.onIconCardClick(e, l)}
730
+ this._iconFocusId = e.id;
731
+ }}
732
+ @click=${(t) => this.onIconCardClick(e, t)}
1117
733
  @dblclick=${() => this.activateNode(e)}
1118
- @contextmenu=${(l) => this.onIconCardContextMenu(e, l)}
734
+ @contextmenu=${(t) => this.onIconCardContextMenu(e, t)}
1119
735
  >
1120
- <span class="file-icon" aria-hidden="true">${r ? u(r) : c}</span>
736
+ <span class="file-icon" aria-hidden="true">${s ? u(s) : o}</span>
1121
737
  <span class="file-name">${e.name}</span>
1122
738
  </button>
1123
739
  `;
1124
- }
1125
- // ─── Icon resolution ─────────────────────────────────────────────────────
1126
- resolveIcon(e) {
1127
- const t = e.iconKey ?? (e.type === "folder" ? "folder" : "file");
1128
- if (this._iconResolver) {
1129
- const i = this._iconResolver(t, e);
1130
- if (i) return i;
1131
- }
1132
- return e.type === "folder" ? b : T;
1133
- }
1134
- resolveIconForTree(e, t) {
1135
- const i = this._nodes.find((n) => n.id === t.id);
1136
- if (this._iconResolver) {
1137
- const n = this._iconResolver(e, i);
1138
- if (n) return n;
1139
- }
1140
- return b;
1141
- }
1142
- onIconCardContextMenu(e, t) {
1143
- t.preventDefault(), this._selectionMode !== "none" && !this._selection.has(e.id) && (this._selection = /* @__PURE__ */ new Set([e.id]), this.emitSelectionChange()), this.openContextMenu(e.id, t.clientX, t.clientY);
1144
- }
1145
- onIconCardClick(e, t) {
1146
- if (this._selectionMode !== "none") {
1147
- if (this._selectionMode === "multiple" && (t.ctrlKey || t.metaKey))
1148
- this._selection.has(e.id) ? this._selection.delete(e.id) : this._selection.add(e.id);
1149
- else if (this._selectionMode === "multiple" && t.shiftKey && this._selection.size > 0) {
1150
- const i = this.getCurrentChildren(), n = [...this._selection][this._selection.size - 1], o = i.findIndex((s) => s.id === n), r = i.findIndex((s) => s.id === e.id);
1151
- if (o >= 0 && r >= 0) {
1152
- const [s, l] = o < r ? [o, r] : [r, o];
1153
- for (let h = s; h <= l; h++) this._selection.add(i[h].id);
1154
- }
1155
- } else
1156
- this._selection = /* @__PURE__ */ new Set([e.id]);
1157
- this.emitSelectionChange(), this.requestUpdate();
1158
- }
1159
- }
1160
- activateNode(e) {
1161
- e.type === "folder" ? this.navigateTo(e.id) : this.dispatchEvent(
1162
- new CustomEvent("mp-node-open", {
1163
- detail: { node: e },
1164
- bubbles: !0,
1165
- composed: !0
1166
- })
1167
- );
1168
- }
1169
- onSearchInput(e) {
1170
- this._searchQuery = e.target.value, this.requestUpdate(), this._searchAnnounceTimer && clearTimeout(this._searchAnnounceTimer), this._searchAnnounceTimer = setTimeout(() => {
1171
- this._searchAnnounceTimer = null, this._searchQuery.trim() && this.liveAnnouncer.announce(
1172
- this._messages.announceSearchResults(this.getCurrentChildren().length)
1173
- );
1174
- }, 500);
1175
- }
1176
- setViewMode(e) {
1177
- this.viewMode = e;
1178
- }
1179
- // ─── Navigation ─────────────────────────────────────────────────────────
1180
- navigateTo(e) {
1181
- if (e !== null) {
1182
- const i = this._nodes.find((o) => o.id === e);
1183
- if (!i || i.type !== "folder") return;
1184
- let n = i.parentId;
1185
- for (; n !== null; )
1186
- this._expandedTreeIds.add(n), n = this._nodes.find((r) => r.id === n)?.parentId ?? null;
1187
- this._expandedTreeIds.add(e);
1188
- }
1189
- if (this._currentFolderId === e) return;
1190
- this._currentFolderId = e;
1191
- const t = this._selection.size > 0;
1192
- this._selection.clear(), this.requestUpdate(), this.dispatchEvent(
1193
- new CustomEvent("mp-navigate", {
1194
- detail: { folderId: e },
1195
- bubbles: !0,
1196
- composed: !0
1197
- })
1198
- ), t && this.emitSelectionChange();
1199
- }
1200
- async invokeDialog(e) {
1201
- return this._dialogResolver ? this._dialogResolver(e) : e.kind === "confirm" ? window.confirm(e.message) : window.prompt(e.label, e.defaultValue ?? "");
1202
- }
1203
- commitRename(e, t) {
1204
- if (this._renameTarget !== e.id) return;
1205
- const i = t.trim();
1206
- this._renameTarget = null, this.requestUpdate(), !(!i || i === e.name) && (this.liveAnnouncer.announce(this._messages.announceRenamed(e.name, i)), this.dispatchEvent(
1207
- new CustomEvent("mp-operation", {
1208
- detail: { kind: "rename", nodeId: e.id, previousName: e.name, newName: i },
1209
- bubbles: !0,
1210
- composed: !0
1211
- })
1212
- ));
1213
- }
1214
- onRenameKeydown(e, t) {
1215
- if (e.key === "Enter") {
1216
- e.preventDefault();
1217
- const i = e.target.value;
1218
- this.commitRename(t, i);
1219
- } else e.key === "Escape" ? (e.preventDefault(), this._renameTarget = null, this.requestUpdate()) : (e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
1220
- }
1221
- setClipboard(e) {
1222
- this._selection.size !== 0 && (this._clipboard = { mode: e, ids: [...this._selection] }, this.requestUpdate());
1223
- }
1224
- /**
1225
- * For every source node whose name already exists in the target folder,
1226
- * consult the conflictResolver. Returns a map of sourceId → resolution
1227
- * (action + optional newName). Returns `null` if any resolver returned
1228
- * abort. When no resolver is wired, returns an empty record (the
1229
- * consumer's paste handler is expected to overwrite-by-default).
1230
- */
1231
- async resolveConflictsForPaste(e, t) {
1232
- if (!this._conflictResolver) return {};
1233
- const i = {}, n = this._nodes.filter((o) => o.parentId === t);
1234
- for (const o of e) {
1235
- const r = this._nodes.find((h) => h.id === o);
1236
- if (!r) continue;
1237
- const s = n.find((h) => h.name === r.name && h.id !== o);
1238
- if (!s) continue;
1239
- const l = await this._conflictResolver({
1240
- existingNode: s,
1241
- incomingName: r.name,
1242
- mode: "paste"
1243
- });
1244
- i[o] = l;
1245
- }
1246
- return i;
1247
- }
1248
- /**
1249
- * Common entry point for file-upload requests from either the drag-drop
1250
- * overlay or the touch upload picker. Resolves conflicts against the
1251
- * target folder, registers `UploadEntry` records in `uploads`, and
1252
- * emits `mp-upload-request` with one resolved file per kept entry.
1253
- */
1254
- async handleFiles(e) {
1255
- const t = this._currentFolderId, i = this._nodes.filter((r) => r.parentId === t), n = [];
1256
- for (const r of e) {
1257
- const s = i.find((l) => l.name === r.name);
1258
- if (s && this._conflictResolver) {
1259
- const l = await this._conflictResolver({
1260
- existingNode: s,
1261
- incomingName: r.name,
1262
- mode: "upload"
1263
- });
1264
- if (l.action === "skip") continue;
1265
- n.push({
1266
- file: r,
1267
- entryId: this.makeUploadId(),
1268
- conflict: l.action,
1269
- renamedTo: l.newName
1270
- });
1271
- } else
1272
- n.push({ file: r, entryId: this.makeUploadId() });
1273
- }
1274
- if (n.length === 0) return;
1275
- const o = n.map((r) => ({
1276
- id: r.entryId,
1277
- file: r.file,
1278
- targetFolderId: t,
1279
- progress: 0,
1280
- status: "pending"
1281
- }));
1282
- this._uploads = [...this._uploads, ...o], this.requestUpdate(), this.dispatchEvent(
1283
- new CustomEvent("mp-upload-request", {
1284
- detail: {
1285
- files: n.map((r) => r.file),
1286
- targetFolderId: t,
1287
- uploads: o,
1288
- conflictResolutions: n.filter((r) => r.conflict).map((r) => ({ fileName: r.file.name, action: r.conflict, newName: r.renamedTo }))
1289
- },
1290
- bubbles: !0,
1291
- composed: !0
1292
- })
1293
- );
1294
- }
1295
- makeUploadId() {
1296
- return `upload-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 7)}`;
1297
- }
1298
- // ─── Helpers ────────────────────────────────────────────────────────────
1299
- pruneSelection() {
1300
- const e = new Set(this._nodes.map((i) => i.id));
1301
- let t = !1;
1302
- for (const i of this._selection)
1303
- e.has(i) || (this._selection.delete(i), t = !0);
1304
- t && this.emitSelectionChange();
1305
- }
1306
- emitSelectionChange() {
1307
- this.dispatchEvent(
1308
- new CustomEvent("mp-selection-change", {
1309
- detail: { selectedIds: [...this._selection] },
1310
- bubbles: !0,
1311
- composed: !0
1312
- })
1313
- );
1314
- }
1315
- formatSize(e) {
1316
- if (e.type === "folder" || e.size == null) return "—";
1317
- const t = e.size;
1318
- return t < 1024 ? `${t} B` : t < 1024 * 1024 ? `${(t / 1024).toFixed(1)} kB` : t < 1024 * 1024 * 1024 ? `${(t / (1024 * 1024)).toFixed(1)} MB` : `${(t / (1024 * 1024 * 1024)).toFixed(2)} GB`;
1319
- }
1320
- formatDate(e) {
1321
- if (!e.modifiedAt) return "—";
1322
- const t = new Date(e.modifiedAt);
1323
- return Number.isNaN(t.getTime()) ? e.modifiedAt : t.toLocaleDateString();
1324
- }
1325
- }
1326
- typeof customElements < "u" && !customElements.get("mp-file-manager") && customElements.define("mp-file-manager", A);
1327
- export {
1328
- p as DEFAULT_FILE_MANAGER_MESSAGES,
1329
- A as MpFileManager,
1330
- M as fileManagerStyles,
1331
- F as mergeMessages
740
+ }
741
+ resolveIcon(e) {
742
+ let t = e.iconKey ?? (e.type === "folder" ? "folder" : "file");
743
+ if (this._iconResolver) {
744
+ let n = this._iconResolver(t, e);
745
+ if (n) return n;
746
+ }
747
+ return e.type === "folder" ? v : y;
748
+ }
749
+ resolveIconForTree(e, t) {
750
+ let n = this._nodes.find((e) => e.id === t.id);
751
+ if (this._iconResolver) {
752
+ let t = this._iconResolver(e, n);
753
+ if (t) return t;
754
+ }
755
+ return v;
756
+ }
757
+ onIconCardContextMenu(e, t) {
758
+ t.preventDefault(), this._selectionMode !== "none" && !this._selection.has(e.id) && (this._selection = /* @__PURE__ */ new Set([e.id]), this.emitSelectionChange()), this.openContextMenu(e.id, t.clientX, t.clientY);
759
+ }
760
+ onIconCardClick(e, t) {
761
+ if (this._selectionMode !== "none") {
762
+ if (this._selectionMode === "multiple" && (t.ctrlKey || t.metaKey)) this._selection.has(e.id) ? this._selection.delete(e.id) : this._selection.add(e.id);
763
+ else if (this._selectionMode === "multiple" && t.shiftKey && this._selection.size > 0) {
764
+ let t = this.getCurrentChildren(), n = [...this._selection][this._selection.size - 1], r = t.findIndex((e) => e.id === n), i = t.findIndex((t) => t.id === e.id);
765
+ if (r >= 0 && i >= 0) {
766
+ let [e, n] = r < i ? [r, i] : [i, r];
767
+ for (let r = e; r <= n; r++) this._selection.add(t[r].id);
768
+ }
769
+ } else this._selection = /* @__PURE__ */ new Set([e.id]);
770
+ this.emitSelectionChange(), this.requestUpdate();
771
+ }
772
+ }
773
+ activateNode(e) {
774
+ e.type === "folder" ? this.navigateTo(e.id) : this.dispatchEvent(new CustomEvent("mp-node-open", {
775
+ detail: { node: e },
776
+ bubbles: !0,
777
+ composed: !0
778
+ }));
779
+ }
780
+ onSearchInput(e) {
781
+ this._searchQuery = e.target.value, this.requestUpdate(), this._searchAnnounceTimer && clearTimeout(this._searchAnnounceTimer), this._searchAnnounceTimer = setTimeout(() => {
782
+ this._searchAnnounceTimer = null, this._searchQuery.trim() && this.liveAnnouncer.announce(this._messages.announceSearchResults(this.getCurrentChildren().length));
783
+ }, 500);
784
+ }
785
+ setViewMode(e) {
786
+ this.viewMode = e;
787
+ }
788
+ navigateTo(e) {
789
+ if (e !== null) {
790
+ let t = this._nodes.find((t) => t.id === e);
791
+ if (!t || t.type !== "folder") return;
792
+ let n = t.parentId;
793
+ for (; n !== null;) this._expandedTreeIds.add(n), n = this._nodes.find((e) => e.id === n)?.parentId ?? null;
794
+ this._expandedTreeIds.add(e);
795
+ }
796
+ if (this._currentFolderId === e) return;
797
+ this._currentFolderId = e;
798
+ let t = this._selection.size > 0;
799
+ this._selection.clear(), this.requestUpdate(), this.dispatchEvent(new CustomEvent("mp-navigate", {
800
+ detail: { folderId: e },
801
+ bubbles: !0,
802
+ composed: !0
803
+ })), t && this.emitSelectionChange();
804
+ }
805
+ async invokeDialog(e) {
806
+ return this._dialogResolver ? this._dialogResolver(e) : e.kind === "confirm" ? window.confirm(e.message) : window.prompt(e.label, e.defaultValue ?? "");
807
+ }
808
+ commitRename(e, t) {
809
+ if (this._renameTarget !== e.id) return;
810
+ let n = t.trim();
811
+ this._renameTarget = null, this.requestUpdate(), n && n !== e.name && (this.liveAnnouncer.announce(this._messages.announceRenamed(e.name, n)), this.dispatchEvent(new CustomEvent("mp-operation", {
812
+ detail: {
813
+ kind: "rename",
814
+ nodeId: e.id,
815
+ previousName: e.name,
816
+ newName: n
817
+ },
818
+ bubbles: !0,
819
+ composed: !0
820
+ })));
821
+ }
822
+ onRenameKeydown(e, t) {
823
+ if (e.key === "Enter") {
824
+ e.preventDefault();
825
+ let n = e.target.value;
826
+ this.commitRename(t, n);
827
+ } else e.key === "Escape" ? (e.preventDefault(), this._renameTarget = null, this.requestUpdate()) : (e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
828
+ }
829
+ setClipboard(e) {
830
+ this._selection.size !== 0 && (this._clipboard = {
831
+ mode: e,
832
+ ids: [...this._selection]
833
+ }, this.requestUpdate());
834
+ }
835
+ async resolveConflictsForPaste(e, t) {
836
+ if (!this._conflictResolver) return {};
837
+ let n = {}, r = this._nodes.filter((e) => e.parentId === t);
838
+ for (let t of e) {
839
+ let e = this._nodes.find((e) => e.id === t);
840
+ if (!e) continue;
841
+ let i = r.find((n) => n.name === e.name && n.id !== t);
842
+ i && (n[t] = await this._conflictResolver({
843
+ existingNode: i,
844
+ incomingName: e.name,
845
+ mode: "paste"
846
+ }));
847
+ }
848
+ return n;
849
+ }
850
+ async handleFiles(e) {
851
+ let t = this._currentFolderId, n = this._nodes.filter((e) => e.parentId === t), r = [];
852
+ for (let t of e) {
853
+ let e = n.find((e) => e.name === t.name);
854
+ if (e && this._conflictResolver) {
855
+ let n = await this._conflictResolver({
856
+ existingNode: e,
857
+ incomingName: t.name,
858
+ mode: "upload"
859
+ });
860
+ if (n.action === "skip") continue;
861
+ r.push({
862
+ file: t,
863
+ entryId: this.makeUploadId(),
864
+ conflict: n.action,
865
+ renamedTo: n.newName
866
+ });
867
+ } else r.push({
868
+ file: t,
869
+ entryId: this.makeUploadId()
870
+ });
871
+ }
872
+ if (r.length === 0) return;
873
+ let i = r.map((e) => ({
874
+ id: e.entryId,
875
+ file: e.file,
876
+ targetFolderId: t,
877
+ progress: 0,
878
+ status: "pending"
879
+ }));
880
+ this._uploads = [...this._uploads, ...i], this.requestUpdate(), this.dispatchEvent(new CustomEvent("mp-upload-request", {
881
+ detail: {
882
+ files: r.map((e) => e.file),
883
+ targetFolderId: t,
884
+ uploads: i,
885
+ conflictResolutions: r.filter((e) => e.conflict).map((e) => ({
886
+ fileName: e.file.name,
887
+ action: e.conflict,
888
+ newName: e.renamedTo
889
+ }))
890
+ },
891
+ bubbles: !0,
892
+ composed: !0
893
+ }));
894
+ }
895
+ makeUploadId() {
896
+ return `upload-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 7)}`;
897
+ }
898
+ pruneSelection() {
899
+ let e = new Set(this._nodes.map((e) => e.id)), t = !1;
900
+ for (let n of this._selection) e.has(n) || (this._selection.delete(n), t = !0);
901
+ t && this.emitSelectionChange();
902
+ }
903
+ emitSelectionChange() {
904
+ this.dispatchEvent(new CustomEvent("mp-selection-change", {
905
+ detail: { selectedIds: [...this._selection] },
906
+ bubbles: !0,
907
+ composed: !0
908
+ }));
909
+ }
910
+ formatSize(e) {
911
+ if (e.type === "folder" || e.size == null) return "—";
912
+ let t = e.size;
913
+ return t < 1024 ? `${t} B` : t < 1048576 ? `${(t / 1024).toFixed(1)} kB` : t < 1073741824 ? `${(t / 1048576).toFixed(1)} MB` : `${(t / 1073741824).toFixed(2)} GB`;
914
+ }
915
+ formatDate(e) {
916
+ if (!e.modifiedAt) return "—";
917
+ let t = new Date(e.modifiedAt);
918
+ return Number.isNaN(t.getTime()) ? e.modifiedAt : t.toLocaleDateString();
919
+ }
1332
920
  };
921
+ typeof customElements < "u" && !customElements.get("mp-file-manager") && customElements.define("mp-file-manager", S);
922
+ //#endregion
923
+ export { m as DEFAULT_FILE_MANAGER_MESSAGES, S as MpFileManager, p as fileManagerStyles, h as mergeMessages };