@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,2884 +0,0 @@
1
- import { unsafeCSS as P, LitElement as I, nothing as p, render as y } from "lit";
2
- import { O as $ } from "./overlay-controller-BHDagokg.mjs";
3
- import { s as q, i as K } from "./install-light-styles-DbCAGFOC.mjs";
4
- import { L as A } from "./live-announcer-Bi0orG4n.mjs";
5
- import { a as O, F as W } from "./focus-restore-DxuP1Oe2.mjs";
6
- import { H as U } from "./host-aria-WSGs7SPQ.mjs";
7
- import { repeat as F } from "lit/directives/repeat.js";
8
- import { live as T } from "lit/directives/live.js";
9
- import { classMap as x } from "lit/directives/class-map.js";
10
- import { styleMap as _ } from "lit/directives/style-map.js";
11
- import "./mp-pagination-hGy4dL7p.mjs";
12
- import "./mp-checkbox-zV83gILn.mjs";
13
- const D = {
14
- eq: "equals",
15
- neq: "does not equal",
16
- lt: "is less than",
17
- lte: "is at most",
18
- gt: "is greater than",
19
- gte: "is at least"
20
- }, N = {
21
- eq: "=",
22
- neq: "≠",
23
- lt: "<",
24
- lte: "≤",
25
- gt: ">",
26
- gte: "≥"
27
- }, H = ["eq", "neq", "lt", "lte", "gt", "gte"], B = {
28
- treeChevronColumn: "Expand or collapse",
29
- deselectAll: "Deselect all",
30
- selectAll: "Select all",
31
- expandRow: "Expand row",
32
- collapseRow: "Collapse row",
33
- loading: "Loading",
34
- rowsPerPage: "Rows per page",
35
- resizeColumn: (n) => `Resize column ${n}`,
36
- resizeColumnHint: "Left and Right arrows resize the column. Enter opens the resize options.",
37
- resizeColumnOptions: (n) => `Resize options for ${n}`,
38
- narrowerColumn: (n) => `Make ${n} narrower`,
39
- widerColumn: (n) => `Make ${n} wider`,
40
- columnWidth: (n) => `${n} px`,
41
- fitColumn: "Fit to content",
42
- resetColumn: "Reset width",
43
- selectRow: (n) => `Select row ${n}`,
44
- selectRowNamed: (n) => `Select ${n}`,
45
- filterColumn: (n) => `Filter ${n}`,
46
- filterColumnActive: (n, e) => e ? `Filter ${n}, filtered by ${e}` : `Filter ${n}, filtered`,
47
- filterClear: (n) => `Clear the filter on ${n}`,
48
- filterSearch: "Search values",
49
- filterInvert: "Exclude the selected values",
50
- filterGroup: (n) => `Values of ${n}`,
51
- filterHasMore: "More values exist — refine the search to see them",
52
- filterNoValues: "No values available",
53
- filterValue(n) {
54
- return n == null ? this.filterNone : n === "" ? this.filterEmpty : n === !0 ? this.filterTrue : n === !1 ? this.filterFalse : n instanceof Date ? n.toLocaleDateString() : String(n);
55
- },
56
- filterNone: "(none)",
57
- filterEmpty: "(empty)",
58
- filterTrue: "Yes",
59
- filterFalse: "No",
60
- announceFilter: (n, e) => e === 0 ? `Filter cleared on ${n}` : e === 1 ? `1 value selected in ${n}` : `${e} values selected in ${n}`,
61
- filterOperator: "Comparison",
62
- filterOperand: "Value to compare with",
63
- filterOperatorLabel: (n) => D[n],
64
- announceComparisonFilter: (n, e, t) => t === "" ? `Filter cleared on ${n}` : `${n} ${e} ${t}`,
65
- announceSorted: (n, e) => e === "none" ? `Sorting removed from ${n}` : `Sorted by ${n}, ${e}`,
66
- announcePage: (n, e) => `Page ${n} of ${e}`,
67
- announceSelection: (n) => n === 1 ? "1 row selected" : `${n} rows selected`,
68
- announceLoaded: (n) => n === 1 ? "Loaded 1 row" : `Loaded ${n} rows`,
69
- rangeIncomplete: "Range not selected: some rows in it have not loaded yet"
70
- }, V = P(`@charset "UTF-8";
71
- mp-datatable {
72
- display: block;
73
- width: 100%;
74
- position: relative;
75
- --mp-datatable-border-color: var(--bs-border-color, rgba(0, 0, 0, 0.125));
76
- --mp-datatable-row-hover-bg: var(--bs-table-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));
77
- --mp-datatable-row-selected-bg: var(--bs-list-group-active-bg, var(--bs-primary, #0d6efd));
78
- --mp-datatable-row-selected-color: var(--bs-list-group-active-color, #fff);
79
- --mp-datatable-cut-opacity: 0.55;
80
- --mp-datatable-resize-handle-color: var(--bs-primary, #0d6efd);
81
- }
82
-
83
- [data-mps=datatable] {
84
- box-sizing: border-box;
85
- }
86
-
87
- .datatable-shell[data-mps=datatable] {
88
- display: flex;
89
- flex-direction: column;
90
- width: 100%;
91
- height: 100%;
92
- }
93
-
94
- .datatable-scroll[data-mps=datatable] {
95
- overflow: auto;
96
- flex: 1 1 auto;
97
- }
98
-
99
- .datatable-scroll.datatable-virtual[data-mps=datatable] {
100
- max-height: var(--mp-datatable-virtual-max-height, 480px);
101
- }
102
- .datatable-scroll.datatable-virtual[data-mps=datatable] thead[data-mps=datatable] th[data-mps=datatable] {
103
- position: sticky;
104
- top: 0;
105
- z-index: 1;
106
- background-color: var(--bs-body-bg, #fff);
107
- }
108
- .datatable-scroll.datatable-virtual[data-mps=datatable] thead[data-mps=datatable] th[data-sortable=true]:hover[data-mps=datatable] {
109
- background-color: var(--bs-body-bg, #fff);
110
- background-image: linear-gradient(var(--mp-datatable-row-hover-bg), var(--mp-datatable-row-hover-bg));
111
- }
112
- .datatable-scroll.datatable-virtual[data-mps=datatable] thead[data-mps=datatable] tr.filter-row[data-mps=datatable] th[data-mps=datatable] {
113
- position: sticky;
114
- top: var(--mp-datatable-header-height, 0px);
115
- z-index: 1;
116
- background-color: var(--bs-body-bg, #fff);
117
- }
118
-
119
- tr.virtual-spacer[data-mps=datatable] {
120
- pointer-events: none;
121
- }
122
- tr.virtual-spacer[data-mps=datatable] > td {
123
- border-bottom: 0;
124
- }
125
-
126
- table[data-mps=datatable] {
127
- width: 100%;
128
- border-collapse: collapse;
129
- margin: 0;
130
- table-layout: auto;
131
- }
132
-
133
- table.measured[data-mps=datatable] {
134
- table-layout: fixed;
135
- }
136
- tbody[data-mps=datatable] > tr[data-mps=datatable] > td {
137
- white-space: nowrap;
138
- overflow: hidden;
139
- text-overflow: ellipsis;
140
- }
141
-
142
- thead[data-mps=datatable] th[data-mps=datatable] {
143
- background-color: var(--bs-table-bg, transparent);
144
- border-bottom: 1px solid var(--mp-datatable-border-color);
145
- text-align: left;
146
- font-weight: 600;
147
- padding: 0.5rem 0.75rem;
148
- white-space: nowrap;
149
- position: relative;
150
- user-select: none;
151
- }
152
-
153
- thead[data-mps=datatable] th[data-sortable=true][data-mps=datatable] {
154
- cursor: pointer;
155
- padding: 0;
156
- }
157
- thead[data-mps=datatable] th[data-sortable=true][data-mps=datatable]::before, thead[data-mps=datatable] th[data-sortable=true][data-mps=datatable]::after {
158
- position: absolute;
159
- display: block;
160
- opacity: 0.3;
161
- bottom: 0.5em;
162
- pointer-events: none;
163
- }
164
- thead[data-mps=datatable] th[data-sortable=true][data-mps=datatable]::before {
165
- content: "↑";
166
- right: 1em;
167
- }
168
- thead[data-mps=datatable] th[data-sortable=true][data-mps=datatable]::after {
169
- content: "↓";
170
- right: 0.5em;
171
- }
172
- thead[data-mps=datatable] th[data-sortable=true][aria-sort=ascending][data-mps=datatable]::after {
173
- opacity: 1;
174
- }
175
- thead[data-mps=datatable] th[data-sortable=true][aria-sort=descending][data-mps=datatable]::before {
176
- opacity: 1;
177
- }
178
-
179
- thead[data-mps=datatable] th[data-sortable=true]:hover[data-mps=datatable] {
180
- background-color: var(--mp-datatable-row-hover-bg);
181
- }
182
-
183
- .header-cell[data-mps=datatable] {
184
- display: inline-flex;
185
- align-items: center;
186
- gap: 0.4rem;
187
- }
188
-
189
- button.header-sort[data-mps=datatable] {
190
- border: 0;
191
- margin: 0;
192
- background: none;
193
- font: inherit;
194
- color: inherit;
195
- text-align: inherit;
196
- cursor: pointer;
197
- display: flex;
198
- width: 100%;
199
- box-sizing: border-box;
200
- padding: 0.5rem 2rem 0.5rem 0.75rem;
201
- }
202
-
203
- .resize-handle:focus-visible[data-mps=datatable],
204
- button.header-sort:focus-visible[data-mps=datatable] {
205
- outline: 2px solid var(--mp-datatable-resize-handle-color);
206
- outline-offset: 1px;
207
- }
208
-
209
- tbody[data-mps=datatable] tr:focus-visible[data-mps=datatable] {
210
- outline: 2px solid var(--mp-datatable-resize-handle-color);
211
- outline-offset: -2px;
212
- }
213
-
214
- .sort-index[data-mps=datatable] {
215
- position: absolute;
216
- right: 0.1em;
217
- bottom: 0.3em;
218
- font-size: 0.65em;
219
- font-weight: bold;
220
- opacity: 0.7;
221
- }
222
-
223
- .resize-handle[data-mps=datatable] {
224
- position: absolute;
225
- right: 0;
226
- top: 0;
227
- width: 24px;
228
- max-width: 50%;
229
- height: 100%;
230
- cursor: col-resize;
231
- user-select: none;
232
- z-index: 2;
233
- touch-action: none;
234
- -webkit-touch-callout: none;
235
- }
236
-
237
- .resize-handle[data-mps=datatable]::before {
238
- content: "";
239
- position: absolute;
240
- top: 0;
241
- bottom: 0;
242
- right: 0;
243
- width: 3px;
244
- }
245
-
246
- .resize-handle:hover[data-mps=datatable]::before,
247
- .resize-handle.active[data-mps=datatable]::before {
248
- background-color: var(--mp-datatable-resize-handle-color);
249
- }
250
-
251
- @media (pointer: coarse) {
252
- .resize-handle[data-mps=datatable] {
253
- width: 40px;
254
- }
255
- .resize-handle[data-mps=datatable]::before {
256
- background-color: var(--mp-datatable-border-color);
257
- }
258
- }
259
- tbody[data-mps=datatable] > tr[data-mps=datatable] > td {
260
- padding: 0.5rem 0.75rem;
261
- border-bottom: 1px solid var(--mp-datatable-border-color);
262
- vertical-align: middle;
263
- }
264
- tbody[data-mps=datatable] > tr[data-mps=datatable] > td svg,
265
- tbody[data-mps=datatable] > tr[data-mps=datatable] > td img {
266
- max-width: var(--mp-datatable-cell-media-max-width, none);
267
- height: auto;
268
- vertical-align: middle;
269
- }
270
-
271
- tbody[data-mps=datatable] tr[data-mps=datatable] {
272
- cursor: default;
273
- }
274
-
275
- tbody[data-mps=datatable] tr[data-clickable=true][data-mps=datatable] {
276
- cursor: pointer;
277
- }
278
-
279
- tbody[data-mps=datatable] tr:hover[data-mps=datatable] {
280
- background-color: var(--mp-datatable-row-hover-bg);
281
- }
282
-
283
- tbody[data-mps=datatable] tr[data-selected=true][data-mps=datatable] {
284
- background-color: var(--mp-datatable-row-selected-bg);
285
- color: var(--mp-datatable-row-selected-color);
286
- }
287
-
288
- tbody[data-mps=datatable] tr[data-cut=true][data-mps=datatable] {
289
- opacity: var(--mp-datatable-cut-opacity);
290
- }
291
-
292
- tbody[data-mps=datatable] tr[data-focused=true][data-mps=datatable] {
293
- outline: 2px solid var(--bs-primary, #0d6efd);
294
- outline-offset: -2px;
295
- }
296
- tr[data-mps=datatable] > .checkbox-cell[data-mps=datatable] {
297
- width: 2.5rem;
298
- padding-inline: 0.5rem;
299
- text-align: center;
300
- text-overflow: clip;
301
- }
302
-
303
- .checkbox-cell.checkbox-cell-toggles[data-mps=datatable] {
304
- cursor: pointer;
305
- }
306
-
307
- .tree-chevron-cell[data-mps=datatable] {
308
- width: 2rem;
309
- padding-right: 0;
310
- white-space: nowrap;
311
- user-select: none;
312
- }
313
-
314
- .tree-chevron[data-mps=datatable] {
315
- appearance: none;
316
- background: transparent;
317
- border: 0;
318
- padding: 0;
319
- width: 1.5rem;
320
- height: 1.5rem;
321
- line-height: 1;
322
- cursor: pointer;
323
- color: var(--bs-body-color, inherit);
324
- font-size: 0.85em;
325
- border-radius: 0.25rem;
326
- display: inline-flex;
327
- align-items: center;
328
- justify-content: center;
329
- }
330
- .tree-chevron:hover[data-mps=datatable] {
331
- background-color: var(--mp-datatable-row-hover-bg);
332
- }
333
- .tree-chevron:focus-visible[data-mps=datatable] {
334
- outline: 2px solid var(--bs-primary, #0d6efd);
335
- outline-offset: 1px;
336
- }
337
-
338
- tbody[data-mps=datatable] tr[data-placeholder=true][data-mps=datatable] {
339
- cursor: default;
340
- opacity: 0.6;
341
- pointer-events: none;
342
- }
343
-
344
- .tree-placeholder-cell[data-mps=datatable] {
345
- color: var(--bs-secondary-color, #6c757d);
346
- font-style: italic;
347
- padding-left: 1.25rem;
348
- }
349
-
350
- .empty-state[data-mps=datatable],
351
- .loading-state[data-mps=datatable] {
352
- padding: 2rem 1rem;
353
- text-align: center;
354
- color: var(--bs-secondary-color, #6c757d);
355
- }
356
-
357
- .datatable-footer[data-mps=datatable] {
358
- display: flex;
359
- align-items: center;
360
- justify-content: space-between;
361
- padding: 0.5rem 0;
362
- gap: 1rem;
363
- flex-wrap: wrap;
364
- flex: 0 0 auto;
365
- }
366
-
367
- .datatable-per-page[data-mps=datatable],
368
- .datatable-pagination[data-mps=datatable] {
369
- flex: 0 1 auto;
370
- }
371
-
372
- tr.filter-row[data-mps=datatable] th[data-mps=datatable] {
373
- padding: 0;
374
- border-bottom: 1px solid var(--mp-datatable-border-color);
375
- font-weight: 400;
376
- user-select: none;
377
- }
378
-
379
- .filter-trigger[data-mps=datatable] {
380
- display: flex;
381
- align-items: center;
382
- justify-content: center;
383
- width: 100%;
384
- min-width: 0;
385
- box-sizing: border-box;
386
- padding: 0.5rem;
387
- border-radius: 0;
388
- background: transparent;
389
- border: 1px solid transparent;
390
- color: inherit;
391
- cursor: pointer;
392
- line-height: 1;
393
- }
394
-
395
- .filter-trigger:hover[data-mps=datatable] {
396
- background-color: var(--mp-datatable-row-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));
397
- }
398
-
399
- .filter-trigger:focus-visible[data-mps=datatable] {
400
- outline: 2px solid var(--bs-focus-ring-color, #0d6efd);
401
- outline-offset: 1px;
402
- }
403
-
404
- .filter-trigger[aria-expanded=true][data-mps=datatable] {
405
- background-color: var(--mp-datatable-row-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));
406
- border-color: var(--mp-datatable-border-color);
407
- }
408
-
409
- .filter-icon[data-mps=datatable] {
410
- width: 0.875rem;
411
- height: 0.875rem;
412
- fill: currentColor;
413
- flex: 0 0 auto;
414
- }
415
-
416
- .filter-trigger.active[data-mps=datatable] .filter-icon[data-mps=datatable] {
417
- fill: var(--bs-primary, #0d6efd);
418
- }
419
-
420
- .filter-trigger.active[data-mps=datatable]::after {
421
- content: "";
422
- width: 0.375rem;
423
- height: 0.375rem;
424
- margin-inline-start: 0.25rem;
425
- border-radius: 50%;
426
- background-color: var(--bs-primary, #0d6efd);
427
- flex: 0 0 auto;
428
- }
429
-
430
- .filter-panel[data-mps=datatable] {
431
- position: fixed;
432
- min-width: 12rem;
433
- max-width: min(22rem, 100vw - 2rem);
434
- padding: 0.5rem;
435
- background-color: var(--bs-body-bg, #fff);
436
- color: var(--bs-body-color, inherit);
437
- border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));
438
- border-radius: 0.375rem;
439
- box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
440
- }
441
-
442
- .filter-panel-body[data-mps=datatable] {
443
- display: block;
444
- max-height: min(20rem, 60vh);
445
- overflow: auto;
446
- }
447
-
448
- .resize-panel[data-mps=datatable] {
449
- position: fixed;
450
- display: flex;
451
- flex-direction: column;
452
- gap: 0.375rem;
453
- min-width: 12rem;
454
- padding: 0.5rem;
455
- background-color: var(--bs-body-bg, #fff);
456
- color: var(--bs-body-color, inherit);
457
- border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));
458
- border-radius: 0.375rem;
459
- box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
460
- }
461
-
462
- .resize-panel-steps[data-mps=datatable] {
463
- display: flex;
464
- align-items: center;
465
- gap: 0.375rem;
466
- }
467
-
468
- .resize-panel-width[data-mps=datatable] {
469
- flex: 1 1 auto;
470
- text-align: center;
471
- font-variant-numeric: tabular-nums;
472
- }
473
-
474
- .resize-panel-step[data-mps=datatable],
475
- .resize-panel-action[data-mps=datatable] {
476
- min-height: 2.75rem;
477
- padding: 0.25rem 0.75rem;
478
- font: inherit;
479
- color: inherit;
480
- background: transparent;
481
- border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));
482
- border-radius: 0.25rem;
483
- cursor: pointer;
484
- }
485
-
486
- .resize-panel-step[data-mps=datatable] {
487
- flex: 0 0 2.75rem;
488
- font-size: 1.25rem;
489
- line-height: 1;
490
- }
491
-
492
- .resize-panel-step:hover[data-mps=datatable],
493
- .resize-panel-action:hover[data-mps=datatable] {
494
- background-color: var(--mp-datatable-row-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));
495
- }
496
-
497
- .resize-panel-step:focus-visible[data-mps=datatable],
498
- .resize-panel-action:focus-visible[data-mps=datatable] {
499
- outline: 2px solid var(--mp-datatable-resize-handle-color, var(--bs-primary, #0d6efd));
500
- outline-offset: 1px;
501
- }
502
-
503
- .filter-clear[data-mps=datatable],
504
- .filter-invert[data-mps=datatable] {
505
- display: block;
506
- width: 100%;
507
- box-sizing: border-box;
508
- padding: 0.25rem 0.5rem;
509
- margin-bottom: 0.375rem;
510
- background: transparent;
511
- border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));
512
- border-radius: 0.25rem;
513
- color: inherit;
514
- cursor: pointer;
515
- text-align: start;
516
- line-height: 1.4;
517
- }
518
-
519
- .filter-clear:disabled[data-mps=datatable] {
520
- opacity: 0.5;
521
- cursor: default;
522
- }
523
-
524
- .filter-invert[aria-pressed=true][data-mps=datatable] {
525
- background-color: var(--bs-primary, #0d6efd);
526
- border-color: var(--bs-primary, #0d6efd);
527
- color: var(--bs-primary-bg-subtle, #fff);
528
- }
529
-
530
- .filter-search[data-mps=datatable],
531
- .filter-operand[data-mps=datatable],
532
- .filter-operator[data-mps=datatable] {
533
- box-sizing: border-box;
534
- padding: 0.25rem 0.5rem;
535
- background-color: var(--bs-body-bg, #fff);
536
- color: inherit;
537
- border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));
538
- border-radius: 0.25rem;
539
- font: inherit;
540
- line-height: 1.5;
541
- }
542
-
543
- .filter-operand[type=number][data-mps=datatable] {
544
- appearance: textfield;
545
- }
546
-
547
- .filter-operand[data-mps=datatable]::-webkit-outer-spin-button,
548
- .filter-operand[data-mps=datatable]::-webkit-inner-spin-button {
549
- appearance: none;
550
- margin: 0;
551
- }
552
-
553
- .filter-search[data-mps=datatable] {
554
- display: block;
555
- width: 100%;
556
- margin-bottom: 0.375rem;
557
- }
558
-
559
- .filter-clear:focus-visible[data-mps=datatable],
560
- .filter-invert:focus-visible[data-mps=datatable],
561
- .filter-search:focus-visible[data-mps=datatable],
562
- .filter-option[data-mps=datatable] input:focus-visible[data-mps=datatable] {
563
- outline: 2px solid var(--bs-focus-ring-color, #0d6efd);
564
- outline-offset: 1px;
565
- }
566
-
567
- .filter-comparison[data-mps=datatable] {
568
- display: flex;
569
- gap: 0.375rem;
570
- align-items: stretch;
571
- }
572
-
573
- .filter-operator[data-mps=datatable] {
574
- flex: 0 0 auto;
575
- max-width: 9rem;
576
- padding-inline: 0.375rem;
577
- }
578
-
579
- .filter-operand[data-mps=datatable] {
580
- flex: 1 1 auto;
581
- min-width: 0;
582
- }
583
-
584
- .filter-operator:focus-visible[data-mps=datatable],
585
- .filter-operand:focus-visible[data-mps=datatable] {
586
- outline: 2px solid var(--bs-focus-ring-color, #0d6efd);
587
- outline-offset: 1px;
588
- }
589
-
590
- .filter-options[data-mps=datatable] {
591
- display: flex;
592
- flex-direction: column;
593
- gap: 0.125rem;
594
- }
595
-
596
- .filter-option[data-mps=datatable] {
597
- display: flex;
598
- align-items: center;
599
- gap: 0.375rem;
600
- padding: 0.125rem 0.25rem;
601
- border-radius: 0.25rem;
602
- cursor: pointer;
603
- overflow-wrap: anywhere;
604
- }
605
-
606
- .filter-option:hover[data-mps=datatable] {
607
- background-color: var(--mp-datatable-row-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));
608
- }
609
-
610
- .filter-remaining[data-mps=datatable] {
611
- color: var(--bs-secondary-color, #6c757d);
612
- }
613
-
614
- .filter-loading[data-mps=datatable],
615
- .filter-no-values[data-mps=datatable],
616
- .filter-has-more[data-mps=datatable] {
617
- display: block;
618
- padding: 0.25rem;
619
- color: var(--bs-secondary-color, #6c757d);
620
- font-size: 0.875em;
621
- }
622
-
623
- .filter-summary[data-mps=datatable] {
624
- margin-inline-start: 0.25rem;
625
- min-width: 0;
626
- overflow: hidden;
627
- text-overflow: ellipsis;
628
- white-space: nowrap;
629
- font-size: 0.875em;
630
- }
631
-
632
- @media (prefers-reduced-motion: reduce) {
633
- .resize-handle[data-mps=datatable] {
634
- transition: none !important;
635
- }
636
- }`);
637
- function G(n, e, t) {
638
- if (t) {
639
- const s = n.findIndex((a) => a.property === e);
640
- return s === -1 ? [...n, { property: e, direction: "ascending" }] : n[s].direction === "ascending" ? n.map(
641
- (a, r) => r === s ? { ...a, direction: "descending" } : a
642
- ) : n.filter((a, r) => r !== s);
643
- }
644
- const i = n.length === 1 && n[0].property === e;
645
- return [
646
- {
647
- property: e,
648
- direction: i && n[0].direction === "ascending" ? "descending" : "ascending"
649
- }
650
- ];
651
- }
652
- function v(n, e) {
653
- return e.length === 0 ? n.slice() : n.map((t, i) => ({ row: t, index: i })).sort((t, i) => {
654
- for (const s of e) {
655
- const a = z(t.row, s.property), r = z(i.row, s.property), o = j(a, r);
656
- if (o !== 0)
657
- return s.direction === "ascending" ? o : -o;
658
- }
659
- return t.index - i.index;
660
- }).map(({ row: t }) => t);
661
- }
662
- function z(n, e) {
663
- if (!(n == null || typeof n != "object"))
664
- return n[e];
665
- }
666
- function j(n, e) {
667
- return n === e ? 0 : n == null ? 1 : e == null ? -1 : typeof n == "number" && typeof e == "number" ? n - e : n instanceof Date && e instanceof Date ? n.getTime() - e.getTime() : String(n).localeCompare(String(e));
668
- }
669
- const C = 40, w = 10;
670
- function M(n, e) {
671
- return Math.max(C, n + e);
672
- }
673
- const X = 0.75, Y = 4;
674
- function Z(n) {
675
- const e = Math.max(0, ...n.filter((t) => Number.isFinite(t)));
676
- return e > 0 ? Math.max(C, Math.ceil(e)) : null;
677
- }
678
- const c = q("datatable");
679
- function k(n, e) {
680
- return n === e || n !== n && e !== e;
681
- }
682
- function g(n, e) {
683
- return n.some((t) => k(t.value, e));
684
- }
685
- const J = 250;
686
- let Q = 0;
687
- class ee extends I {
688
- constructor() {
689
- super(...arguments), this.instanceId = `mp-datatable-${++Q}`, this._caption = null, this._inputLabel = null, this.hostAria = new U(this, {
690
- referenceTarget: () => this.renderRoot?.querySelector("table") ?? null
691
- }), this._labels = void 0, this._columns = [], this._data = [], this._sortColumns = [], this._selectionMode = "none", this._selectedIds = /* @__PURE__ */ new Set(), this._selectedRowCache = /* @__PURE__ */ new Map(), this._cutIds = /* @__PURE__ */ new Set(), this._focusedRowKey = null, this.liveAnnouncer = new A(this), this.rowFocusRestore = new O(this, new W(
692
- () => this.renderRoot ?? null,
693
- {
694
- selector: 'tbody tr[data-row-key]:not([data-placeholder="true"])',
695
- keyOf: (e) => e.dataset.rowKey ?? null,
696
- container: () => this.renderRoot?.querySelector("table") ?? null
697
- }
698
- )), this._rowKey = (e, t) => {
699
- const i = e;
700
- return i && i.id != null ? String(i.id) : (this.warnPositionalKeyOnce(), `row-${t}`);
701
- }, this._warnedPositionalKey = !1, this._columnWidths = /* @__PURE__ */ new Map(), this._measuredWidths = /* @__PURE__ */ new Map(), this._userWidths = /* @__PURE__ */ new Set(), this._derivedLabels = /* @__PURE__ */ new Map(), this._hasMeasuredInitial = !1, this._measuredFit = !1, this._refitFrame = null, this._loading = !1, this._emptyMessage = "No data", this._pagination = !1, this._page = 1, this._perPage = 20, this._perPageOptions = [10, 20, 50], this._autoSort = !0, this._totalRecords = null, this._virtualScroll = !1, this._itemSize = 40, this._virtualBuffer = 10, this._virtualRange = { startIndex: 0, endIndex: 0 }, this._scrollElement = null, this._resizeObserver = null, this._headerObserver = null, this._observedThead = null, this._scrollListener = null, this._viewportHeight = 0, this._openFilterColumn = null, this._mountedFilterColumn = null, this._consumerMountedFilter = !1, this._filterUid = `mp-dt-${Math.random().toString(36).slice(2, 9)}`, this._distincts = null, this._filterStates = /* @__PURE__ */ new Map(), this._tree = !1, this._idKey = null, this._childCountKey = null, this._treeIndent = 1.25, this._expandedIds = /* @__PURE__ */ new Set(), this._selectionStrategy = "flat", this._childCache = /* @__PURE__ */ new Map(), this._childTotals = /* @__PURE__ */ new Map(), this._pendingFetches = /* @__PURE__ */ new Set(), this._pageCache = /* @__PURE__ */ new Map(), this._pendingPageFetches = /* @__PURE__ */ new Set(), this._fetch = null, this._fetchGeneration = 0, this._initialFetchDone = !1, this._reloadScheduled = !1, this._lastReloadKey = null, this._cachedFlatList = null, this._cachedIndeterminateKeys = null, this._rowLabel = null, this._resizableColumns = !0, this.filterOverlay = new $(this, {
702
- portal: !0,
703
- modal: !0,
704
- scrollStrategy: "reposition",
705
- // Resolved lazily by column name on every call: each render rebuilds the
706
- // header, so a captured element would detach under the open panel. The
707
- // trigger IS the anchor, so both read the same element — resolving the
708
- // trigger by id instead would buy nothing and cost a CSS.escape call, which
709
- // is not universally available and threw out of close() before it could
710
- // fire onClose.
711
- anchor: () => this.openFilterTrigger(),
712
- trigger: () => this.openFilterTrigger(),
713
- panel: () => this.filterOverlay.portalContainer?.querySelector(".filter-panel") ?? null,
714
- // The search box, not merely the first tabbable: Clear precedes it in the
715
- // DOM because it belongs at the top of the panel visually, and opening onto
716
- // a disabled-or-destructive button is the wrong place to land.
717
- // Returning null falls back to 'first', which is what a consumer's own
718
- // panel gets — it has no `.filter-search` to aim at.
719
- initialFocus: () => this.filterOverlay.portalContainer?.querySelector(".filter-search, .filter-operand") ?? null,
720
- onClose: () => {
721
- const e = this._openFilterColumn;
722
- if (e == null) return;
723
- const t = this._filterStates.get(e);
724
- t && (this.abortFilterRequest(t), t.term = "", this.rebucket(t)), this._openFilterColumn = null, this._mountedFilterColumn = null, this.requestUpdate(), this.dispatchEvent(
725
- new CustomEvent("mp-datatable-filter-close", {
726
- detail: { column: e },
727
- bubbles: !0,
728
- composed: !0
729
- })
730
- );
731
- }
732
- }), this._keyByRowMemo = null, this._selectionAnchorKey = null, this.resizeState = null, this._openResizeColumn = null, this._resizeHintAnnounced = !1, this._frozenExtraWidth = null, this._frozenWidths = /* @__PURE__ */ new Map(), this.onColumnResizeMove = (e) => {
733
- const t = this.resizeState;
734
- if (!t || e.pointerId !== t.pointerId) return;
735
- const i = e.clientX - t.startX;
736
- !t.dragging && Math.abs(i) <= Y || (t.dragging = !0, this.setUserColumnWidth(t.column.name, M(t.startWidth, i)));
737
- }, this.onColumnResizeEnd = (e) => {
738
- const t = this.resizeState;
739
- if (!(!t || e.pointerId !== t.pointerId)) {
740
- t.handle.classList.remove("active"), t.handle.removeEventListener("pointermove", this.onColumnResizeMove), t.handle.removeEventListener("pointerup", this.onColumnResizeEnd), t.handle.removeEventListener("pointercancel", this.onColumnResizeEnd);
741
- try {
742
- t.handle.releasePointerCapture(e.pointerId);
743
- } catch {
744
- }
745
- this.resizeState = null, e.type === "pointerup" && !t.dragging && this.openResizePanel(t.column);
746
- }
747
- }, this.resizeOverlay = new $(this, {
748
- portal: !0,
749
- modal: !0,
750
- scrollStrategy: "reposition",
751
- // Re-queried by name: every render rebuilds the header row.
752
- anchor: () => this._openResizeColumn ? this.resizeHandle(this._openResizeColumn) : null,
753
- trigger: () => this._openResizeColumn ? this.resizeHandle(this._openResizeColumn) : null,
754
- panel: () => this.resizeOverlay.portalContainer?.querySelector(".resize-panel") ?? null,
755
- onClose: () => {
756
- this._openResizeColumn = null, this.requestUpdate();
757
- }
758
- });
759
- }
760
- /**
761
- * Light DOM. Consumer-authored row/cell/header content is mounted here by the
762
- * render callbacks, and inside a shadow root the page's stylesheets — the
763
- * consumer's own component CSS and Bootstrap's utilities alike — cannot reach
764
- * it (issue #408). Rendering in the document tree is what makes that content
765
- * style correctly; encapsulation is preserved by the build-time rescoping
766
- * instead of by the boundary.
767
- */
768
- createRenderRoot() {
769
- return this;
770
- }
771
- static get observedAttributes() {
772
- return [
773
- ...super.observedAttributes ?? [],
774
- "selection-mode",
775
- "pagination",
776
- "resizable-columns",
777
- "auto-sort",
778
- "empty-message",
779
- "virtual-scroll",
780
- "item-size",
781
- "tree",
782
- "tree-indent",
783
- "selection-strategy",
784
- // Naming for the inner <table> (the role-bearing node): caption renders a
785
- // real <caption>, the native, visible table name; aria-label / input-label
786
- // are the invisible alternative and win in the accessible-name computation
787
- // when both are present.
788
- "caption",
789
- "aria-label",
790
- "input-label",
791
- "aria-labelledby",
792
- "aria-describedby"
793
- ];
794
- }
795
- /**
796
- * Visible table caption, rendered as a real <caption> — the native way to name
797
- * a table, and the only one sighted users benefit from too. For an invisible
798
- * name use aria-label / input-label instead (they win over the caption in the
799
- * accessible-name computation when both are set).
800
- */
801
- get caption() {
802
- return this._caption;
803
- }
804
- set caption(e) {
805
- const t = e ?? null;
806
- this._caption !== t && (this._caption = t, this.requestUpdate());
807
- }
808
- /**
809
- * User-visible strings, overridable per key for localisation
810
- * (see DatatableLabels). Property-only: it holds functions. Re-renders on
811
- * assignment, so switching language on a mounted table renames every
812
- * control (row-checkbox names included) without waiting for an unrelated
813
- * update.
814
- */
815
- get labels() {
816
- return this._labels;
817
- }
818
- set labels(e) {
819
- e !== this._labels && (this._labels = e, this.requestUpdate());
820
- }
821
- /** Merged view of labels — consumer keys over the English defaults. */
822
- get mergedLabels() {
823
- return { ...B, ...this.labels ?? {} };
824
- }
825
- /** Optional invisible accessible name for the <table>. Host aria-label wins. */
826
- get inputLabel() {
827
- return this._inputLabel;
828
- }
829
- set inputLabel(e) {
830
- const t = e ?? null;
831
- this._inputLabel !== t && (this._inputLabel = t, this.requestUpdate());
832
- }
833
- /**
834
- * Warn rather than throw: a static table without ids keeps working, and only
835
- * a fetched or selectable one is actually harmed by a positional key.
836
- */
837
- warnPositionalKeyOnce() {
838
- this._warnedPositionalKey || !this._fetch && this._selectionMode === "none" || (this._warnedPositionalKey = !0, console.warn(
839
- "[mp-datatable] A row has no `id` and no `rowKey` is set, so it is keyed by its position. A positional key names a different row after a re-fetch, sort or expansion, so a selection cannot survive them. Set `rowKey` to return a stable identity."
840
- ));
841
- }
842
- /** When true, the WC sorts `data` itself using `sortRows`. Set `false` if the consumer sorts externally. */
843
- get autoSort() {
844
- return this._autoSort;
845
- }
846
- set autoSort(e) {
847
- this._autoSort = !!e, this.requestUpdate();
848
- }
849
- /**
850
- * Per-row renderer. When set, the WC delegates row content production to
851
- * this callback (used by the Angular wrapper to host `*bsRowTemplate`
852
- * templates). Returning `undefined` falls back to per-column `cellRenderer`s.
853
- */
854
- get rowRenderer() {
855
- return this._rowRenderer;
856
- }
857
- set rowRenderer(e) {
858
- this._rowRenderer = e, this.requestUpdate();
859
- }
860
- /** Enable scroll-position-driven virtualization. Rows outside the viewport are not rendered. */
861
- get virtualScroll() {
862
- return this._virtualScroll;
863
- }
864
- set virtualScroll(e) {
865
- const t = !!e;
866
- this._virtualScroll !== t && (this._virtualScroll = t, this.requestUpdate());
867
- }
868
- /** Approximate row height in px (used by virtual scroll). Default `40`. */
869
- get itemSize() {
870
- return this._itemSize;
871
- }
872
- set itemSize(e) {
873
- const t = Number.isFinite(e) && e > 0 ? Math.max(1, Math.floor(e)) : 40;
874
- this._itemSize !== t && (this._itemSize = t, this.requestUpdate());
875
- }
876
- /** Off-screen row buffer (each side) for virtual scrolling. */
877
- get virtualBuffer() {
878
- return this._virtualBuffer;
879
- }
880
- set virtualBuffer(e) {
881
- const t = Math.max(0, Math.floor(e || 0));
882
- this._virtualBuffer !== t && (this._virtualBuffer = t, this.requestUpdate());
883
- }
884
- get columns() {
885
- return this._columns;
886
- }
887
- set columns(e) {
888
- this._columns = Array.isArray(e) ? e : [], this.syncFilterStates(), this.requestUpdate();
889
- }
890
- /**
891
- * Drops state for columns that are gone and seeds state for new ones from
892
- * `filterSelection`.
893
- *
894
- * An existing column keeps its state: the Angular wrapper rebuilds the whole
895
- * column array on every change detection, so treating a re-assignment as
896
- * "new columns" would wipe the user's selection on any unrelated input change.
897
- * A column whose `filterSelection` reference actually changed is re-seeded —
898
- * that is the consumer restoring a filter, and it is why the input is a
899
- * reference and not a value.
900
- */
901
- syncFilterStates() {
902
- const e = new Set(this._columns.map((t) => t.name));
903
- this._filterStates.forEach((t, i) => {
904
- e.has(i) || (this.abortFilterRequest(t), this._filterStates.delete(i));
905
- }), this._columns.forEach((t) => {
906
- const i = this._filterStates.get(t.name);
907
- if (!i) {
908
- t.filterable && this._filterStates.set(t.name, this.createFilterState(t));
909
- return;
910
- }
911
- t.filterSelection && t.filterSelection !== i.seededFrom && (i.seededFrom = t.filterSelection, i.selection = {
912
- values: [...t.filterSelection.values],
913
- inverse: !!t.filterSelection.inverse,
914
- operator: t.filterSelection.operator,
915
- operand: t.filterSelection.operand ?? null
916
- }, i.operandText = t.filterSelection.operand == null ? "" : String(t.filterSelection.operand), i.snapshot = null);
917
- });
918
- }
919
- get data() {
920
- return this._data;
921
- }
922
- set data(e) {
923
- this._data = Array.isArray(e) ? e : [], this.refreshLocalDistincts(), this.requestUpdate();
924
- }
925
- /**
926
- * High-level fetch callback. When set, the WC owns the entire server-paged
927
- * loop and the consumer provides nothing else — no page-1 seeding via `data`,
928
- * no separate `totalRecords`, no event bridge. Works with any framework or
929
- * none (`el.fetch = fn`). Setting it kicks off the initial page-1 load.
930
- *
931
- * Pass a STABLE function. Assigning the same function again is a no-op, but
932
- * a new closure on every render is a new callback, and each one reloads. To
933
- * re-query with an unchanged callback, call `reload()`.
934
- */
935
- get fetch() {
936
- return this._fetch;
937
- }
938
- set fetch(e) {
939
- this.assignFetch(e) && this.scheduleFetchReload();
940
- }
941
- /**
942
- * Assigns the callback without scheduling a load; true when a load is due.
943
- * Shared by the setter and `applyFetchState`, which schedules once for all
944
- * of its fields.
945
- */
946
- assignFetch(e) {
947
- const t = typeof e == "function" ? e : null;
948
- return t === this._fetch ? !1 : (this._fetch = t, this._fetch ? (this._autoSort = !1, this._initialFetchDone = !1, this._lastReloadKey = null, !0) : (this._totalRecords = null, this._pageCache.clear(), this._pendingPageFetches.clear(), this._childCache.clear(), this._childTotals.clear(), this._pendingFetches.clear(), this._fetchGeneration++, this._initialFetchDone = !1, this._lastReloadKey = null, this.requestUpdate(), !1));
949
- }
950
- /**
951
- * Consumer-supplied source of distinct values for the filter panels.
952
- * Property-only (it holds a function), mirroring `fetch` and `labels`.
953
- *
954
- * A source that resolves `null` for a column means "compute that column
955
- * locally", so one table can mix server-backed and local filter columns.
956
- */
957
- get distincts() {
958
- return this._distincts;
959
- }
960
- set distincts(e) {
961
- this._distincts = typeof e == "function" ? e : null, this._filterStates.forEach((t) => {
962
- t.loaded = null, t.view = null, t.loadedTerm = null;
963
- }), this._openFilterColumn && this.requestUpdate();
964
- }
965
- get sortColumns() {
966
- return [...this._sortColumns];
967
- }
968
- set sortColumns(e) {
969
- this.assignSortColumns(e) && (this.requestUpdate(), this.scheduleFetchReload());
970
- }
971
- /**
972
- * Assigns without scheduling; false when the value is structurally equal. A
973
- * wrapper echoing back the array it was just given is not a sort change, and
974
- * must not cost a re-render or a request (#407).
975
- */
976
- assignSortColumns(e) {
977
- const t = Array.isArray(e) ? [...e] : [];
978
- return t.length === this._sortColumns.length && t.every((s, a) => s.property === this._sortColumns[a].property && s.direction === this._sortColumns[a].direction) ? !1 : (this._sortColumns = t, !0);
979
- }
980
- /**
981
- * Re-queries the `fetch` callback for the current sort, page and page size,
982
- * even though none of them changed (the server data did). One request,
983
- * coalesced with any change already pending in the same task.
984
- *
985
- * The loaded windows and tree children are dropped, because they may be
986
- * stale. The selection is NOT: every selected key and its remembered row
987
- * survive, so a re-fetched row simply replaces the remembered one.
988
- *
989
- * `resetPage: true` also returns to page 1 (and emits
990
- * `mp-datatable-page-change` when that moves the page). A no-op without a
991
- * `fetch` callback, apart from the page reset.
992
- */
993
- reload({ resetPage: e = !1 } = {}) {
994
- e && this.assignPage(1) && (this.requestUpdate(), this.dispatchEvent(
995
- new CustomEvent("mp-datatable-page-change", {
996
- detail: { page: 1 },
997
- bubbles: !0,
998
- composed: !0
999
- })
1000
- )), this._lastReloadKey = null, this.scheduleFetchReload();
1001
- }
1002
- /**
1003
- * Applies any of `fetch`, `sortColumns`, `page` and `perPage` as ONE change:
1004
- * every provided field is assigned first, then exactly one reload is
1005
- * scheduled. Assigning them one by one through the setters can split across
1006
- * ticks and cost two requests; this cannot (#407). Framework wrappers that
1007
- * forward several of these inputs should call this rather than the setters.
1008
- *
1009
- * A field that is absent (or `undefined`) is left alone, except `fetch`: a
1010
- * present `fetch` key is always assigned, so `{ fetch: null }` removes the
1011
- * callback. `perPage` returns to page 1 unless `page` is also given.
1012
- * Unchanged values cost nothing, as with the setters.
1013
- *
1014
- * When `perPage` changes and the given `page` would lie past the last page
1015
- * of the known row count (20 → 50 per page while on page 5 of 100 rows), the
1016
- * page is clamped to the last page and `mp-datatable-page-change` reports
1017
- * it, so a wrapper's page state follows. With no known count (a fetch table
1018
- * before its first response, or a new `fetch` in the same call) the page is
1019
- * kept as given.
1020
- */
1021
- applyFetchState(e) {
1022
- const t = "fetch" in e && this.assignFetch(e.fetch);
1023
- e.sortColumns !== void 0 && this.assignSortColumns(e.sortColumns);
1024
- const i = e.perPage !== void 0 && this.assignPerPage(e.perPage);
1025
- e.page !== void 0 && (this.assignPage(e.page), i && !t && this.clampPageToKnownTotal()), this.requestUpdate(), this.scheduleFetchReload();
1026
- }
1027
- get selectionMode() {
1028
- return this._selectionMode;
1029
- }
1030
- set selectionMode(e) {
1031
- if (this._selectionMode = e, e === "none") {
1032
- this._selectionAnchorKey = null;
1033
- const t = this._selectedIds.size > 0;
1034
- this.commitSelection([]), t && this.emitSelectionChange();
1035
- }
1036
- this.requestUpdate();
1037
- }
1038
- /** Modes that select many rows and render the checkbox column. */
1039
- get isMulti() {
1040
- return this._selectionMode === "multiple" || this._selectionMode === "checkbox";
1041
- }
1042
- get selectedIds() {
1043
- return [...this._selectedIds];
1044
- }
1045
- set selectedIds(e) {
1046
- const t = new Set(e ?? []);
1047
- t.size === this._selectedIds.size && [...t].every((i) => this._selectedIds.has(i)) || (this._selectedIds = t, this.pruneSelectedRowCache(), t.size > 0 && this.rememberLiveSelectedRows(), this.requestUpdate());
1048
- }
1049
- /**
1050
- * The selected rows, index-aligned with `selectedIds` (`undefined` for a key
1051
- * whose row the element has never seen). See `SelectionChangeEventDetail`.
1052
- *
1053
- * Setting it REPLACES the selection: the keys are derived through `rowKey`,
1054
- * and the rows are remembered, so a host that owns row objects (the Angular
1055
- * wrapper's `selection` model) can seed rows that are not loaded here — they
1056
- * are reported back in `selectedRows` even while off-page.
1057
- */
1058
- get selectedRows() {
1059
- return this.resolveRows([...this._selectedIds]);
1060
- }
1061
- set selectedRows(e) {
1062
- const t = e ?? [], i = this.rowKeyLookup(), s = t.map((a) => [i(a), a]);
1063
- this.isSameSelectedRows(s) || (this._selectedIds = new Set(s.map(([a]) => a)), this._selectedRowCache = new Map(s), this.requestUpdate());
1064
- }
1065
- get cutIds() {
1066
- return [...this._cutIds];
1067
- }
1068
- set cutIds(e) {
1069
- this._cutIds = new Set(e ?? []), this.requestUpdate();
1070
- }
1071
- get focusedRowKey() {
1072
- return this._focusedRowKey;
1073
- }
1074
- set focusedRowKey(e) {
1075
- this._focusedRowKey = e, this.requestUpdate();
1076
- }
1077
- /**
1078
- * Names a row for its selection checkbox ("Select {label}"). Property-only (it
1079
- * holds a function). When unset, or when it returns an empty string, the
1080
- * trimmed text of the row's first data cell is used, and when that is empty
1081
- * too, the row number ("Select row N").
1082
- *
1083
- * The name is a string handed to the checkbox: an `aria-labelledby` pointing
1084
- * at the cell could not cross the checkbox's shadow boundary.
1085
- */
1086
- get rowLabel() {
1087
- return this._rowLabel;
1088
- }
1089
- set rowLabel(e) {
1090
- this._rowLabel = typeof e == "function" ? e : null, this.requestUpdate();
1091
- }
1092
- /**
1093
- * Row identity: selection, focus and row-view reuse are keyed by it. It must
1094
- * be stable, and derived from the row rather than its index: a row that is
1095
- * not loaded is keyed `rowKey(row, -1)`, so an index-based key maps every
1096
- * off-page row onto `row--1`. Required with `fetch`.
1097
- */
1098
- get rowKey() {
1099
- return this._rowKey;
1100
- }
1101
- set rowKey(e) {
1102
- this._rowKey = typeof e == "function" ? e : this._rowKey, this.requestUpdate();
1103
- }
1104
- // ─── Tree-mode public API ────────────────────────────────────────────────
1105
- /** Enable tree mode (chevron column, nested expansion, lazy children). */
1106
- get tree() {
1107
- return this._tree;
1108
- }
1109
- set tree(e) {
1110
- const t = !!e;
1111
- this._tree !== t && (this._tree = t, this.requestUpdate());
1112
- }
1113
- /**
1114
- * Property name or function that extracts the stable row identity used as
1115
- * the expansion key and as `parentId` in `mp-datatable-fetch-request`.
1116
- * Required when `tree=true`.
1117
- */
1118
- get idKey() {
1119
- return this._idKey;
1120
- }
1121
- set idKey(e) {
1122
- this._idKey = e, this.requestUpdate();
1123
- }
1124
- /**
1125
- * Property name on the row that holds the direct-child count. Drives both
1126
- * chevron visibility AND placeholder reservation. Required when `tree=true`.
1127
- */
1128
- get childCountKey() {
1129
- return this._childCountKey;
1130
- }
1131
- set childCountKey(e) {
1132
- this._childCountKey = e || null, this.requestUpdate();
1133
- }
1134
- /** Indent in rem per depth level on the chevron cell. Default `1.25`. */
1135
- get treeIndent() {
1136
- return this._treeIndent;
1137
- }
1138
- set treeIndent(e) {
1139
- const t = Number(e);
1140
- this._treeIndent = Number.isFinite(t) && t >= 0 ? t : 1.25, this.requestUpdate();
1141
- }
1142
- /** Two-way binding target: set of expanded-row id values (per `idKey`). */
1143
- get expandedIds() {
1144
- return new Set(this._expandedIds);
1145
- }
1146
- set expandedIds(e) {
1147
- e ? e instanceof Set ? this._expandedIds = new Set(e) : this._expandedIds = new Set(e) : this._expandedIds = /* @__PURE__ */ new Set(), this.requestUpdate();
1148
- }
1149
- /** `'flat'` (default) or `'cascading'`. When `tree=true`, cascading is recommended. */
1150
- get selectionStrategy() {
1151
- return this._selectionStrategy;
1152
- }
1153
- set selectionStrategy(e) {
1154
- this._selectionStrategy = e === "cascading" ? "cascading" : "flat", this.requestUpdate();
1155
- }
1156
- get loading() {
1157
- return this._loading;
1158
- }
1159
- set loading(e) {
1160
- const t = this._loading;
1161
- this._loading = !!e, t && !this._loading && this.liveAnnouncer.announce(this.mergedLabels.announceLoaded(this._data.length)), this.requestUpdate();
1162
- }
1163
- get emptyMessage() {
1164
- return this._emptyMessage;
1165
- }
1166
- set emptyMessage(e) {
1167
- this._emptyMessage = e || "No data", this.requestUpdate();
1168
- }
1169
- get pagination() {
1170
- return this._pagination;
1171
- }
1172
- set pagination(e) {
1173
- this._pagination = !!e, this.requestUpdate();
1174
- }
1175
- get page() {
1176
- return this._page;
1177
- }
1178
- set page(e) {
1179
- this.assignPage(e) && (this.requestUpdate(), this.scheduleFetchReload());
1180
- }
1181
- /** Assigns without scheduling; true when the page changed. */
1182
- assignPage(e) {
1183
- const t = Math.max(1, Math.floor(e || 1));
1184
- return this._page === t ? !1 : (this._page = t, !0);
1185
- }
1186
- get perPage() {
1187
- return this._perPage;
1188
- }
1189
- set perPage(e) {
1190
- this.assignPerPage(e) && (this.requestUpdate(), this.scheduleFetchReload());
1191
- }
1192
- /**
1193
- * Moves a page past the end back to the last page, when the row count is
1194
- * known: the server's `totalRecords` with `fetch`, the data length without.
1195
- * Reported through `mp-datatable-page-change` when it moves the page.
1196
- */
1197
- clampPageToKnownTotal() {
1198
- const e = this._fetch ? this._totalRecords : this._data.length;
1199
- if (e == null) return;
1200
- const t = Math.max(1, Math.ceil(e / this._perPage));
1201
- this._page <= t || (this._page = t, this.dispatchEvent(
1202
- new CustomEvent("mp-datatable-page-change", {
1203
- detail: { page: t },
1204
- bubbles: !0,
1205
- composed: !0
1206
- })
1207
- ));
1208
- }
1209
- /** Assigns without scheduling (and returns to page 1); true when it changed. */
1210
- assignPerPage(e) {
1211
- const t = Math.max(1, Math.floor(e || 1));
1212
- return this._perPage === t ? !1 : (this._perPage = t, this._page = 1, !0);
1213
- }
1214
- get perPageOptions() {
1215
- return [...this._perPageOptions];
1216
- }
1217
- set perPageOptions(e) {
1218
- this._perPageOptions = Array.isArray(e) && e.length > 0 ? [...e] : [10, 20, 50], this.requestUpdate();
1219
- }
1220
- /**
1221
- * Read-only grand total. Derived by the WC from the `fetch` response (server
1222
- * paging) or `_data.length` (static data) — consumers never set it. Exposed
1223
- * so a consumer can render "row X of N" if it wants.
1224
- */
1225
- get totalRecords() {
1226
- return this._totalRecords;
1227
- }
1228
- /** True when the consumer is paging externally (totalRecords exceeds the in-memory rows). */
1229
- isExternallyPaged() {
1230
- return this._totalRecords != null && this._totalRecords > this._data.length;
1231
- }
1232
- /**
1233
- * True when virtual scrolling is driving lazy windowed fetches at the **root**
1234
- * level: the consumer pages externally and the WC pulls root pages ≥ 2 on
1235
- * demand. Applies to BOTH flat mode (the rows are the roots) and tree mode
1236
- * (the top-level rows; their children are windowed separately, keyed by
1237
- * parentId). When false (single page or no virtual scroll) the WC falls back
1238
- * to the trivial mapping of `_data`.
1239
- */
1240
- isRootWindowed() {
1241
- return this._virtualScroll && this.isExternallyPaged();
1242
- }
1243
- attributeChangedCallback(e, t, i) {
1244
- if (super.attributeChangedCallback(e, t, i), e === "caption")
1245
- this._caption = i, this.requestUpdate();
1246
- else if (e === "input-label")
1247
- this._inputLabel = i, this.requestUpdate();
1248
- else if (e === "aria-label")
1249
- this.requestUpdate();
1250
- else if (e === "aria-labelledby" || e === "aria-describedby")
1251
- this.hostAria.syncReferences();
1252
- else if (e === "selection-mode") {
1253
- const s = i ?? "none";
1254
- (s === "none" || s === "single" || s === "multiple" || s === "checkbox") && (this.selectionMode = s);
1255
- } else if (e === "pagination")
1256
- this.pagination = i !== null;
1257
- else if (e === "resizable-columns")
1258
- this.resizableColumns = i !== "false";
1259
- else if (e === "auto-sort")
1260
- this.autoSort = i !== "false";
1261
- else if (e === "empty-message")
1262
- this.emptyMessage = i ?? "No data";
1263
- else if (e === "virtual-scroll")
1264
- this.virtualScroll = i !== null;
1265
- else if (e === "item-size") {
1266
- const s = Number(i);
1267
- Number.isFinite(s) && (this.itemSize = s);
1268
- } else if (e === "tree")
1269
- this.tree = i !== null;
1270
- else if (e === "tree-indent") {
1271
- const s = i === null ? 1.25 : Number(i);
1272
- Number.isFinite(s) && (this.treeIndent = s);
1273
- } else e === "selection-strategy" && (this.selectionStrategy = i === "cascading" ? "cascading" : "flat");
1274
- }
1275
- get resizableColumns() {
1276
- return this._resizableColumns;
1277
- }
1278
- set resizableColumns(e) {
1279
- this._resizableColumns = !!e, this.requestUpdate();
1280
- }
1281
- connectedCallback() {
1282
- super.connectedCallback();
1283
- }
1284
- firstUpdated() {
1285
- this._scrollElement = this.renderRoot?.querySelector(".datatable-scroll"), this._scrollElement && (this._scrollListener = () => this.refreshVirtualRange(), this._scrollElement.addEventListener("scroll", this._scrollListener, { passive: !0 }), typeof ResizeObserver < "u" && (this._resizeObserver = new ResizeObserver(() => {
1286
- this.refreshVirtualRange(), this.scheduleRefit();
1287
- }), this._resizeObserver.observe(this._scrollElement))), this.refreshVirtualRange(), this.hostAria.syncReferences();
1288
- }
1289
- willUpdate(e) {
1290
- super.willUpdate(e), this._cachedFlatList = null, this._cachedIndeterminateKeys = null;
1291
- }
1292
- updated(e) {
1293
- super.updated(e), this.refreshVirtualRange(), this.nameRowCheckboxes(), this.maybeMeasureInitialColumnWidths();
1294
- const t = this.renderRoot?.querySelectorAll(".resize-handle:not([aria-valuenow])") ?? [];
1295
- for (const i of t) {
1296
- const s = i.closest("th");
1297
- s && i.setAttribute("aria-valuenow", String(Math.round(s.getBoundingClientRect().width)));
1298
- }
1299
- this._openFilterColumn && this.renderFilterPanel(), this._openResizeColumn && this.renderResizePanel(), this.observeHeaderText(), this.publishHeaderHeight();
1300
- }
1301
- /**
1302
- * Publish header row 1's height as `--mp-datatable-header-height` for the
1303
- * filter row's sticky offset. Cheap and idempotent: it writes only on change,
1304
- * so it cannot feed back into the render loop.
1305
- */
1306
- publishHeaderHeight() {
1307
- if (!this.hasFilterRow) return;
1308
- const e = this.renderRoot?.querySelector("thead tr:first-child th"), t = this.renderRoot?.querySelector(".datatable-shell");
1309
- if (!e || !t) return;
1310
- const i = Math.round(e.getBoundingClientRect().height);
1311
- i <= 0 || t.style.getPropertyValue("--mp-datatable-header-height") !== `${i}px` && t.style.setProperty("--mp-datatable-header-height", `${i}px`);
1312
- }
1313
- /**
1314
- * Run the auto-size-once pass after the first batch of rows lands in the
1315
- * DOM. Columns with an explicit `col.width` are pinned to that value
1316
- * without measurement; the rest are measured from their natural
1317
- * (`table-layout: auto`) width via `getBoundingClientRect()` on the
1318
- * `<th>`. Once any column gets a width, `_hasMeasuredInitial` flips and
1319
- * the table renders with `table-layout: fixed` so the widths are
1320
- * authoritative and overflowing content clips with ellipsis.
1321
- */
1322
- maybeMeasureInitialColumnWidths() {
1323
- if (this._hasMeasuredInitial || this._columns.length === 0 || this._data.length === 0 || !this.renderRoot || this.renderRoot.querySelectorAll('tbody tr[data-row-key]:not([data-placeholder="true"])').length === 0) return;
1324
- const t = new Map(this._columnWidths);
1325
- let i = !1;
1326
- for (const s of this._columns) {
1327
- if (t.has(s.name)) continue;
1328
- if (typeof s.width == "number") {
1329
- t.set(s.name, s.width), i = !0;
1330
- continue;
1331
- }
1332
- const a = this.measureColumnWidth(s.name);
1333
- a != null && (t.set(s.name, a), this._measuredWidths.set(s.name, a), i = !0);
1334
- }
1335
- if (i) {
1336
- const s = [...this.renderRoot.querySelectorAll("thead tr:first-child th")].reduce((a, r) => a + r.getBoundingClientRect().width, 0);
1337
- this._measuredFit = !!this._scrollElement && s <= this._scrollElement.clientWidth + 0.5, this._columnWidths = t, this._hasMeasuredInitial = !0, this.requestUpdate();
1338
- }
1339
- }
1340
- scheduleRefit() {
1341
- this._refitFrame != null || typeof requestAnimationFrame > "u" || (this._refitFrame = requestAnimationFrame(() => {
1342
- this._refitFrame = null, this.refitMeasuredWidths();
1343
- }));
1344
- }
1345
- /**
1346
- * Keeps columns that fitted fitting when the scroller narrows: when it is
1347
- * resized, or when a classic vertical scrollbar appears after the
1348
- * measurement (13-15px, measured on Windows Chromium and Firefox), which
1349
- * otherwise brings back the very horizontal scrollbar #426 removed.
1350
- *
1351
- * Only MEASURED widths move. A user-set width, an explicit `col.width` and
1352
- * the fixed checkbox/chevron cells keep theirs, and their total is taken off
1353
- * the room first. Scaling is always from the measured base, never from the
1354
- * previous result, which would ratchet down a pixel per pass through the
1355
- * floor; that also restores the exact widths when the scroller widens again.
1356
- *
1357
- * It only ever shrinks (fixed layout spreads any surplus by itself), and
1358
- * never below MIN_REFIT_SCALE: past that the columns would crush into
1359
- * ellipses, and content that no longer fits is meant to scroll instead.
1360
- */
1361
- refitMeasuredWidths() {
1362
- if (this._frozenExtraWidth != null || !this._measuredFit || !this._scrollElement || !this.renderRoot) return;
1363
- const e = [...this._measuredWidths].filter(([d]) => !this._userWidths.has(d));
1364
- if (e.length === 0) return;
1365
- const t = new Set(e.map(([d]) => d)), i = [...this.renderRoot.querySelectorAll("thead tr:first-child th")].filter((d) => !t.has(d.dataset.column ?? "")).reduce((d, h) => d + h.getBoundingClientRect().width, 0), s = e.reduce((d, [, h]) => d + h, 0), a = this._scrollElement.clientWidth - i, r = Math.min(1, Math.max(X, a / s)), o = new Map(this._columnWidths);
1366
- e.map(([d, h]) => {
1367
- const u = Math.max(C, Math.floor(h * r)), m = o.get(d) !== u;
1368
- return o.set(d, u), m;
1369
- }).some(Boolean) && (this._columnWidths = o, this.requestUpdate());
1370
- }
1371
- measureColumnWidth(e) {
1372
- if (!this.renderRoot) return null;
1373
- const t = this.renderRoot.querySelector(
1374
- `thead tr:first-child th[data-column="${e}"]`
1375
- );
1376
- if (!t) return null;
1377
- const i = Math.floor(t.getBoundingClientRect().width);
1378
- return i > 0 ? i : null;
1379
- }
1380
- disconnectedCallback() {
1381
- super.disconnectedCallback(), this._scrollElement && this._scrollListener && this._scrollElement.removeEventListener("scroll", this._scrollListener), this._scrollListener = null, this._resizeObserver?.disconnect(), this._resizeObserver = null, this._headerObserver?.disconnect(), this._observedThead = null, this._refitFrame != null && cancelAnimationFrame(this._refitFrame), this._refitFrame = null, this._scrollElement = null, this._filterStates.forEach((e) => this.abortFilterRequest(e));
1382
- }
1383
- refreshVirtualRange() {
1384
- if (!this._virtualScroll || !this._scrollElement) return;
1385
- const e = this._scrollElement.scrollTop, t = this._scrollElement.clientHeight;
1386
- this._viewportHeight = t;
1387
- const i = this.getEffectiveData().length, s = this._itemSize, a = Math.max(0, Math.floor(e / s) - this._virtualBuffer), r = Math.ceil(t / s), o = Math.min(i, a + r + this._virtualBuffer * 2);
1388
- (a !== this._virtualRange.startIndex || o !== this._virtualRange.endIndex) && (this._virtualRange = { startIndex: a, endIndex: o }, this.requestUpdate()), this._tree && this.maybeFetchPlaceholdersInViewport(), this.isRootWindowed() && this.maybeFetchPagesInViewport();
1389
- }
1390
- /**
1391
- * Walk the visible viewport for placeholder rows whose parent isn't cached
1392
- * and isn't already in-flight. Emit a fetch-request per such parent.
1393
- */
1394
- maybeFetchPlaceholdersInViewport() {
1395
- const e = this.getFlatList(), { startIndex: t, endIndex: i } = this._virtualRange, s = this._virtualScroll ? t : 0, a = this._virtualScroll ? i : e.length, r = /* @__PURE__ */ new Set();
1396
- for (let o = s; o < a; o++) {
1397
- const l = e[o];
1398
- !l.isPlaceholder || l.parentId == null || this._childCache.has(l.parentId) || this._pendingFetches.has(l.parentId) || r.add(l.parentId);
1399
- }
1400
- for (const o of r) this.fetchChildren(o);
1401
- }
1402
- /**
1403
- * Flat-window counterpart of `maybeFetchPlaceholdersInViewport`: scan the
1404
- * visible range for flat placeholder rows, collect the distinct pages they
1405
- * belong to that aren't cached or already in-flight, and request each once.
1406
- * Page 1 is never requested here — it lives in `_data` (seeded by the
1407
- * wrapper's first-page fetch).
1408
- */
1409
- maybeFetchPagesInViewport() {
1410
- const e = this.getFlatList(), { startIndex: t, endIndex: i } = this._virtualRange, s = this._virtualScroll ? t : 0, a = this._virtualScroll ? i : e.length, r = /* @__PURE__ */ new Set();
1411
- for (let o = s; o < a; o++) {
1412
- const l = e[o];
1413
- !l.isPlaceholder || l.page == null || l.page <= 1 || this._pageCache.has(l.page) || this._pendingPageFetches.has(l.page) || r.add(l.page);
1414
- }
1415
- for (const o of r) this.fetchWindowPage(o);
1416
- }
1417
- render() {
1418
- const e = this.computeVisibleRows(), t = this._totalRecords ?? this._data.length, i = this.pagination && !this._tree ? Math.max(1, Math.ceil(t / this._perPage)) : 1, s = this.isMulti, a = this._columns.length + (s ? 1 : 0) + (this._tree ? 1 : 0), r = this.getVirtualSpacerHeights(), o = this.hasFilterRow ? 2 : 1, l = (this._tree || this.isRootWindowed() ? this.getFlatList().length : this._data.length) + o;
1419
- return c`
1420
- ${this.liveAnnouncer.template()}
1421
- <div class="datatable-shell">
1422
- <div class="datatable-scroll ${this._virtualScroll ? "datatable-virtual" : ""}" role="presentation">
1423
- <table
1424
- role=${this._tree ? "treegrid" : this._selectionMode !== "none" ? "grid" : p}
1425
- aria-multiselectable=${this.isMulti ? "true" : p}
1426
- aria-rowcount=${l}
1427
- aria-colcount=${a}
1428
- aria-busy=${this._loading ? "true" : p}
1429
- aria-label=${this.getAttribute("aria-label") ?? this._inputLabel ?? p}
1430
- class=${this._hasMeasuredInitial ? "measured" : ""}
1431
- style=${_(this._frozenExtraWidth == null ? {} : { width: `${this.frozenTableWidth()}px` })}
1432
- >
1433
- ${this._caption ? c`<caption>${this._caption}</caption>` : p}
1434
- <thead>
1435
- <tr role="row" aria-rowindex="1">
1436
- ${this._tree ? c`<th class="tree-chevron-cell" scope="col" aria-label=${this.mergedLabels.treeChevronColumn}></th>` : p}
1437
- ${s ? c`<th class="checkbox-cell" scope="col">
1438
- <mp-checkbox
1439
- aria-label=${this.mergedLabels.deselectAll}
1440
- aria-hidden=${this._selectedIds.size === 0 ? "true" : p}
1441
- style=${_({ visibility: this._selectedIds.size > 0 ? "visible" : "hidden" })}
1442
- .checked=${!1}
1443
- .indeterminate=${this._selectedIds.size > 0}
1444
- @change=${this.onDeselectAll}
1445
- ></mp-checkbox>
1446
- </th>` : p}
1447
- ${this._columns.map((d, h) => this.renderHeader(d, h))}
1448
- </tr>
1449
- ${this.hasFilterRow ? this.renderFilterRow(s) : p}
1450
- </thead>
1451
- <tbody>
1452
- ${this._loading ? c`<tr><td colspan=${a} class="loading-state">Loading…</td></tr>` : e.length === 0 ? c`<tr><td colspan=${a} class="empty-state">${this._emptyMessage}</td></tr>` : c`
1453
- ${r.top > 0 ? c`<tr class="virtual-spacer" aria-hidden="true"><td colspan=${a} style=${_({ height: `${r.top}px`, padding: "0", border: "0" })}></td></tr>` : p}
1454
- ${F(
1455
- e,
1456
- ({ key: d }) => d,
1457
- ({ key: d, rowIndex: h, flat: u }) => this.renderRow(u, d, h, s)
1458
- )}
1459
- ${r.bottom > 0 ? c`<tr class="virtual-spacer" aria-hidden="true"><td colspan=${a} style=${_({ height: `${r.bottom}px`, padding: "0", border: "0" })}></td></tr>` : p}
1460
- `}
1461
- </tbody>
1462
- </table>
1463
- </div>
1464
- ${this._pagination && !this._tree ? this.renderFooter(i) : p}
1465
- </div>
1466
- `;
1467
- }
1468
- getVirtualSpacerHeights() {
1469
- if (!this._virtualScroll) return { top: 0, bottom: 0 };
1470
- const e = this.getEffectiveData().length, { startIndex: t, endIndex: i } = this._virtualRange;
1471
- return {
1472
- top: t * this._itemSize,
1473
- bottom: Math.max(0, (e - i) * this._itemSize)
1474
- };
1475
- }
1476
- /** True when any column opted in. No column opts in, no second row, no cost. */
1477
- get hasFilterRow() {
1478
- return this._columns.some((e) => e.filterable);
1479
- }
1480
- get filterPanelId() {
1481
- return `${this._filterUid}-filter-panel`;
1482
- }
1483
- filterTriggerId(e) {
1484
- return `${this._filterUid}-filter-trigger-${e}`;
1485
- }
1486
- createFilterState(e) {
1487
- const t = e.name, i = {
1488
- selection: {
1489
- values: e.filterSelection ? [...e.filterSelection.values] : [],
1490
- inverse: !!e.filterSelection?.inverse,
1491
- // Seeded too, or a restored comparison filter comes back empty while
1492
- // its trigger still claims to be active.
1493
- operator: e.filterSelection?.operator,
1494
- operand: e.filterSelection?.operand ?? null
1495
- },
1496
- seededFrom: e.filterSelection ?? null,
1497
- snapshot: null,
1498
- loaded: null,
1499
- view: null,
1500
- loadedTerm: null,
1501
- fromLocal: !1,
1502
- term: "",
1503
- operandText: e.filterSelection?.operand == null ? "" : String(e.filterSelection.operand),
1504
- loading: !1,
1505
- generation: 0,
1506
- controller: null,
1507
- debounce: null,
1508
- listeners: /* @__PURE__ */ new Set(),
1509
- // Assigned below: the context closes over `state`, which does not exist
1510
- // until the literal is complete.
1511
- ctx: null
1512
- };
1513
- return i.ctx = {
1514
- values: () => i.view,
1515
- loading: () => i.loading,
1516
- search: (s) => this.setFilterSearch(t, s),
1517
- apply: (s, a) => this.applyFilter(t, s, a),
1518
- // Clearing emits the shape of the column's OWN mode. A comparison column
1519
- // emitting an empty `selected` array would be reporting a values-mode
1520
- // filter it never had, and a consumer switching on `mode` would miss it.
1521
- clear: () => this.clearFilter(t),
1522
- onChange: (s) => (i.listeners.add(s), () => i.listeners.delete(s))
1523
- }, i;
1524
- }
1525
- /** State for a filterable column, created on demand. */
1526
- filterState(e) {
1527
- const t = this._filterStates.get(e);
1528
- if (t) return t;
1529
- const i = this._columns.find((a) => a.name === e);
1530
- if (!i?.filterable) return null;
1531
- const s = this.createFilterState(i);
1532
- return this._filterStates.set(e, s), s;
1533
- }
1534
- notifyFilterListeners(e) {
1535
- e.listeners.forEach((t) => t()), this.requestUpdate();
1536
- }
1537
- abortFilterRequest(e) {
1538
- e.controller?.abort(), e.controller = null, e.debounce != null && clearTimeout(e.debounce), e.debounce = null, e.loading = !1;
1539
- }
1540
- /**
1541
- * Replaces a column's selection and emits the one event the component owns.
1542
- *
1543
- * The component never filters `_data` itself — what a selection means, and
1544
- * whether it is applied here or on a server, belongs to the consumer. All it
1545
- * does locally is snapshot the value list the first time a selection becomes
1546
- * non-empty, so the list cannot collapse to the selection.
1547
- */
1548
- applyFilter(e, t, i) {
1549
- const s = this.filterState(e);
1550
- if (!s) return;
1551
- s.selection.values.length === 0 && t.length > 0 && s.snapshot == null && s.loaded && (s.snapshot = [...s.loaded.matching, ...s.loaded.remaining]), t.length === 0 && (s.snapshot = null), s.selection = { ...s.selection, values: [...t], inverse: i }, this.rebucket(s), this.notifyFilterListeners(s);
1552
- const r = this._columns.find((o) => o.name === e);
1553
- this.liveAnnouncer.announce(
1554
- this.mergedLabels.announceFilter(r ? this.columnLabel(r) : e, t.length)
1555
- ), this.dispatchEvent(
1556
- new CustomEvent("mp-datatable-filter-change", {
1557
- detail: { mode: "values", column: e, selected: [...t], inverse: i },
1558
- bubbles: !0,
1559
- composed: !0
1560
- })
1561
- );
1562
- }
1563
- /** The column's mode, defaulting to a checkbox list of distinct values. */
1564
- filterModeOf(e) {
1565
- return this._columns.find((t) => t.name === e)?.filterMode ?? "values";
1566
- }
1567
- clearFilter(e) {
1568
- if (this.filterModeOf(e) === "comparison") {
1569
- const t = this.filterState(e);
1570
- this.applyComparison(e, t?.selection.operator ?? "eq", "");
1571
- return;
1572
- }
1573
- this.applyFilter(e, [], !1);
1574
- }
1575
- /**
1576
- * Comparison mode's counterpart to `applyFilter`.
1577
- *
1578
- * It keeps the same contract: the component records what the user asked for
1579
- * and emits it, and never filters `_data`. An empty operand is a cleared
1580
- * filter, not a comparison against the empty string — otherwise every column
1581
- * would filter everything away the moment its panel opened.
1582
- */
1583
- applyComparison(e, t, i) {
1584
- const s = this.filterState(e);
1585
- if (!s) return;
1586
- const a = this._columns.find((l) => l.name === e), r = this.parseOperand(i, a?.filterInputType);
1587
- s.operandText = i, s.selection = { ...s.selection, operator: t, operand: r }, this.notifyFilterListeners(s);
1588
- const o = this.mergedLabels;
1589
- this.liveAnnouncer.announce(
1590
- o.announceComparisonFilter(
1591
- a ? this.columnLabel(a) : e,
1592
- o.filterOperatorLabel(t),
1593
- r == null ? "" : String(r)
1594
- )
1595
- ), this.dispatchEvent(
1596
- new CustomEvent("mp-datatable-filter-change", {
1597
- detail: { mode: "comparison", column: e, operator: t, operand: r },
1598
- bubbles: !0,
1599
- composed: !0
1600
- })
1601
- );
1602
- }
1603
- /**
1604
- * An empty input, and a `'number'` input holding something unparseable, both
1605
- * mean "no filter" rather than a comparison against `NaN` — which would be
1606
- * false for every row and silently empty the table.
1607
- */
1608
- parseOperand(e, t) {
1609
- if (e.trim() === "") return null;
1610
- if ((t ?? "number") === "date") return e;
1611
- const i = Number(e);
1612
- return Number.isNaN(i) ? null : i;
1613
- }
1614
- setFilterSearch(e, t) {
1615
- const i = this.filterState(e);
1616
- if (!i) return;
1617
- i.term = t, this.rebucket(i), this.notifyFilterListeners(i);
1618
- const s = i.loadedTerm ?? "";
1619
- (i.loaded?.hasMore || !t.startsWith(s)) && (i.debounce != null && clearTimeout(i.debounce), i.debounce = setTimeout(() => {
1620
- i.debounce = null, this.loadDistincts(e, t);
1621
- }, J));
1622
- }
1623
- /**
1624
- * Loads (or recomputes) one column's value list.
1625
- *
1626
- * Called on every panel open — there is no cross-open cache, because the data
1627
- * behind a list can change while the panel is closed and a stale list is worse
1628
- * than a re-query. The source is asked first; a source resolving `null` means
1629
- * it cannot answer for this column, and the local path takes over.
1630
- */
1631
- async loadDistincts(e, t) {
1632
- const i = this.filterState(e);
1633
- if (!i) return;
1634
- const s = ++i.generation;
1635
- if (i.controller?.abort(), this._distincts) {
1636
- const a = new AbortController();
1637
- i.controller = a, i.loading = !0, this.notifyFilterListeners(i);
1638
- try {
1639
- const r = await this._distincts({ column: e, search: t, signal: a.signal });
1640
- if (s !== i.generation) return;
1641
- if (i.loading = !1, i.controller = null, r) {
1642
- i.loaded = r, i.loadedTerm = t, this.rebucket(i), this.notifyFilterListeners(i);
1643
- return;
1644
- }
1645
- } catch {
1646
- if (s !== i.generation) return;
1647
- i.loading = !1, i.controller = null, i.loaded = null, i.loadedTerm = t, this.notifyFilterListeners(i);
1648
- return;
1649
- }
1650
- }
1651
- i.loaded = this.localDistincts(e), i.loadedTerm = "", i.fromLocal = !0, this.rebucket(i), this.notifyFilterListeners(i);
1652
- }
1653
- /**
1654
- * Recomputes the OPEN column's list when it is locally derived and the rows
1655
- * changed under it.
1656
- *
1657
- * This is what makes the `remaining` bucket work at all. A consumer applies a
1658
- * filter by rebinding `data` to the subset; if the list were not recomputed,
1659
- * `loaded` would still describe the pre-filter rows, every snapshot value
1660
- * would still look present, and nothing would ever be marked as having left
1661
- * the data.
1662
- *
1663
- * Only the open column, and only the local path: a closed panel reloads when
1664
- * it opens, and a consumer-supplied source owns its own freshness — re-asking
1665
- * it on every `data` assignment would be a request per keystroke of whatever
1666
- * the consumer's own filtering does.
1667
- */
1668
- refreshLocalDistincts() {
1669
- if (!this._openFilterColumn) return;
1670
- const e = this._filterStates.get(this._openFilterColumn);
1671
- !e || !e.fromLocal || (e.loaded = this.localDistincts(this._openFilterColumn), this.rebucket(e), this.notifyFilterListeners(e));
1672
- }
1673
- /**
1674
- * The value list computed from the rows this element holds — but only when it
1675
- * holds all of them.
1676
- *
1677
- * With a `fetch` callback, external paging, or loaded tree children, `_data`
1678
- * is a window onto a larger set, and a list built from a window silently omits
1679
- * values. There is no partial answer worth giving there: the column reports
1680
- * that it has no values and the consumer is expected to supply `distincts`.
1681
- */
1682
- localDistincts(e) {
1683
- if (this._fetch != null || this.isExternallyPaged() || this._childCache.size > 0) return null;
1684
- const t = this.mergedLabels, i = [];
1685
- return this._data.forEach((s) => {
1686
- const a = s?.[e];
1687
- g(i, a) || i.push({ value: a, label: t.filterValue(a) });
1688
- }), i.sort((s, a) => s.label.localeCompare(a.label)), { matching: i, remaining: [], hasMore: !1 };
1689
- }
1690
- /**
1691
- * Re-derives `matching` / `remaining` from the snapshot and the search term.
1692
- *
1693
- * `remaining` holds snapshot values the current list no longer contains: they
1694
- * stay listed (dimmed) so a selection can be widened. Search is applied to
1695
- * both buckets client-side — the debounced re-query above is the exception,
1696
- * not the rule.
1697
- */
1698
- rebucket(e) {
1699
- if (!e.loaded) {
1700
- e.view = null;
1701
- return;
1702
- }
1703
- const t = e.term.trim().toLowerCase(), i = (o) => t === "" || o.label.toLowerCase().includes(t), s = [...e.loaded.matching, ...e.loaded.remaining], a = e.snapshot ? e.snapshot.filter((o) => g(s, o.value)) : e.loaded.matching, r = e.snapshot ? e.snapshot.filter((o) => !g(s, o.value)) : e.loaded.remaining;
1704
- e.view = {
1705
- matching: a.filter(i),
1706
- remaining: r.filter(i),
1707
- hasMore: e.loaded.hasMore
1708
- };
1709
- }
1710
- /** The open column's trigger button, or null. Re-queried on every call. */
1711
- openFilterTrigger() {
1712
- return this._openFilterColumn ? this.renderRoot?.querySelector(
1713
- `tr.filter-row th[data-column="${this._openFilterColumn}"] .filter-trigger`
1714
- ) ?? null : null;
1715
- }
1716
- onFilterTriggerClick(e, t) {
1717
- if (t.preventDefault(), t.stopPropagation(), this._openFilterColumn === e.name) {
1718
- this.filterOverlay.close();
1719
- return;
1720
- }
1721
- this.filterOverlay.isOpen && this.filterOverlay.close(!1), this._openFilterColumn = e.name, this.requestUpdate(), (e.filterMode ?? "values") !== "comparison" && this.loadDistincts(e.name, ""), this.filterOverlay.open(), this.dispatchEvent(
1722
- new CustomEvent("mp-datatable-filter-open", {
1723
- detail: { column: e.name },
1724
- bubbles: !0,
1725
- composed: !0
1726
- })
1727
- );
1728
- }
1729
- /**
1730
- * Renders the open panel into the overlay pane, with a render root of its
1731
- * own. The panel is NOT part of this element's template: relocating a node
1732
- * lit rendered is unsupported, so the pane gets its own `render()` call
1733
- * whose container happens to live in `document.body`.
1734
- *
1735
- * The consumer's node is appended AFTER the template has been stamped —
1736
- * `stampScope` recurses, so stamping a subtree that already holds consumer
1737
- * DOM would brand it with our scope and let our rules match their content.
1738
- *
1739
- * ### Why this dialog is deliberately NOT `aria-modal` (#416)
1740
- *
1741
- * Tab is contained and Escape closes, but the rest of the page stays
1742
- * available to assistive tech — and it must. A column filter is anchored to
1743
- * its trigger, dismissible, and does not own the page.
1744
- *
1745
- * `aria-modal="true"` would tell a screen reader that everything outside the
1746
- * panel is unavailable while a virtual cursor could still walk into the table
1747
- * behind it. The honest way to keep that promise — marking the table `inert`
1748
- * while the panel is open — would hide the very rows whose values the user is
1749
- * picking from, which is worse than the inconsistency it fixes.
1750
- *
1751
- * So it is a non-modal dialog: the wrong claim removed rather than an
1752
- * unfinished one completed. `OverlayController` is right to refuse to guess
1753
- * whether its host is a dialog or a menu; the call belongs here, where the
1754
- * component knows what it is.
1755
- */
1756
- renderFilterPanel() {
1757
- const e = this.filterOverlay.portalContainer;
1758
- if (!e) return;
1759
- const t = this._columns.find((r) => r.name === this._openFilterColumn);
1760
- if (!t) return;
1761
- const i = this.filterState(t.name);
1762
- y(
1763
- c`
1764
- <div
1765
- class="filter-panel"
1766
- id=${this.filterPanelId}
1767
- role="dialog"
1768
- aria-label=${this.mergedLabels.filterColumn(this.columnLabel(t))}
1769
- >
1770
- <div class="filter-panel-body"></div>
1771
- </div>
1772
- `,
1773
- e
1774
- );
1775
- const s = e.querySelector(".filter-panel-body");
1776
- if (!s || !i) return;
1777
- if (this._mountedFilterColumn === t.name && s.firstChild) {
1778
- this._consumerMountedFilter || this.renderDefaultFilterPanel(t, i, s);
1779
- return;
1780
- }
1781
- const a = t.filterRenderer?.(t, i.ctx) ?? null;
1782
- if (a) {
1783
- s.replaceChildren(a), this._consumerMountedFilter = !0, this._mountedFilterColumn = t.name;
1784
- return;
1785
- }
1786
- this._consumerMountedFilter = !1, this.renderDefaultFilterPanel(t, i, s), this._mountedFilterColumn = t.name;
1787
- }
1788
- /**
1789
- * The built-in panel: clear, search, invert, checkbox list.
1790
- *
1791
- * Rendered with a `render()` of its own into the panel body, for the same
1792
- * reason the panel itself is: this is not part of the element's template, and
1793
- * lit must own the container it diffs. The checkbox list is keyed on `value`
1794
- * so a repaint after a re-query moves rows instead of rebuilding them — an
1795
- * unkeyed list would rebuild the input the user is interacting with.
1796
- */
1797
- renderDefaultFilterPanel(e, t, i) {
1798
- if ((e.filterMode ?? "values") === "comparison") {
1799
- this.renderComparisonFilterPanel(e, t, i);
1800
- return;
1801
- }
1802
- const s = this.mergedLabels, a = this.columnLabel(e), r = t.view, o = t.selection.values, l = [
1803
- ...o,
1804
- ...(r?.matching ?? []).filter((h) => !g(o, h.value)),
1805
- ...(r?.remaining ?? []).filter((h) => !g(o, h.value))
1806
- ], d = (h) => !!r && g(r.remaining, h);
1807
- y(
1808
- c`
1809
- <button
1810
- type="button"
1811
- class="filter-clear"
1812
- ?disabled=${o.length === 0 && !t.selection.inverse}
1813
- @click=${() => this.onFilterClear(e.name)}
1814
- >
1815
- ${s.filterClear(a)}
1816
- </button>
1817
- <input
1818
- type="search"
1819
- class="filter-search"
1820
- .value=${t.term}
1821
- aria-label=${s.filterSearch}
1822
- @input=${(h) => t.ctx.search(h.target.value)}
1823
- />
1824
- <button
1825
- type="button"
1826
- class="filter-invert"
1827
- aria-pressed=${t.selection.inverse ? "true" : "false"}
1828
- @click=${() => t.ctx.apply(o, !t.selection.inverse)}
1829
- >
1830
- ${s.filterInvert}
1831
- </button>
1832
- <div class="filter-options" role="group" aria-label=${s.filterGroup(a)}>
1833
- ${t.loading ? c`<span class="filter-loading">${s.loading}</span>` : p}
1834
- ${F(
1835
- l,
1836
- (h) => h.value,
1837
- (h) => c`
1838
- <label class=${x({ "filter-option": !0, "filter-remaining": d(h.value) })}>
1839
- <input
1840
- type="checkbox"
1841
- .checked=${g(o, h.value)}
1842
- @change=${(u) => this.onFilterToggle(e.name, h, u.target.checked)}
1843
- />
1844
- <span>${h.label}</span>
1845
- </label>
1846
- `
1847
- )}
1848
- ${l.length === 0 && !t.loading ? c`<span class="filter-no-values">${s.filterNoValues}</span>` : p}
1849
- </div>
1850
- ${r?.hasMore ? c`<span class="filter-has-more">${s.filterHasMore}</span>` : p}
1851
- `,
1852
- i
1853
- );
1854
- }
1855
- /**
1856
- * The `'comparison'` panel: an operator and one operand.
1857
- *
1858
- * It deliberately does NOT load distinct values — the whole point of this mode
1859
- * is that the column's values are a quantity rather than a set worth listing,
1860
- * so asking the source for them would be a round trip whose answer is never
1861
- * displayed.
1862
- */
1863
- renderComparisonFilterPanel(e, t, i) {
1864
- const s = this.mergedLabels, a = this.columnLabel(e), r = e.filterOperators?.length ? e.filterOperators : H, o = t.selection.operator ?? r[0], l = t.selection.operand, d = e.filterInputType ?? "number", h = () => i.querySelector(".filter-operand")?.value ?? "", u = () => i.querySelector(".filter-operator")?.value ?? o;
1865
- y(
1866
- c`
1867
- <button
1868
- type="button"
1869
- class="filter-clear"
1870
- ?disabled=${l == null}
1871
- @click=${() => this.onFilterClear(e.name)}
1872
- >
1873
- ${s.filterClear(a)}
1874
- </button>
1875
- <div class="filter-comparison">
1876
- <select
1877
- class="filter-operator"
1878
- aria-label=${s.filterOperator}
1879
- @change=${() => this.applyComparison(e.name, u(), h())}
1880
- >
1881
- ${r.map(
1882
- (m) => c`
1883
- <option value=${m} ?selected=${m === o}>
1884
- ${N[m]} ${s.filterOperatorLabel(m)}
1885
- </option>
1886
- `
1887
- )}
1888
- </select>
1889
- <input
1890
- class="filter-operand"
1891
- type=${d}
1892
- .value=${T(t.operandText)}
1893
- aria-label=${s.filterOperand}
1894
- @input=${() => this.applyComparison(e.name, u(), h())}
1895
- />
1896
- </div>
1897
- `,
1898
- i
1899
- );
1900
- }
1901
- onFilterToggle(e, t, i) {
1902
- const s = this.filterState(e);
1903
- if (!s) return;
1904
- const a = i ? [...s.selection.values, t] : s.selection.values.filter((r) => !k(r.value, t.value));
1905
- s.ctx.apply(a, s.selection.inverse);
1906
- }
1907
- onFilterClear(e) {
1908
- const t = this.filterState(e);
1909
- t && (t.ctx.clear(), this.filterOverlay.portalContainer?.querySelector(".filter-search, .filter-operand")?.focus({ preventScroll: !0 }));
1910
- }
1911
- /**
1912
- * The second `<thead>` row. One cell per column in the SAME order as row 1,
1913
- * gutters included — alignment is structural, not a CSS problem, and the
1914
- * empty cells for non-filterable columns are what keeps it that way.
1915
- *
1916
- * The cells deliberately carry no width. Widths live on row 1's `<th>`, and
1917
- * `table-layout: fixed` resolves columns from the first row only, so this row
1918
- * cannot perturb geometry once the measure pass has run. Before it runs the
1919
- * table is `auto`, where the row is only harmless because `.filter-trigger`
1920
- * is width-neutral — see the note on that rule in `datatable.light.scss`.
1921
- */
1922
- renderFilterRow(e) {
1923
- return c`
1924
- <tr role="row" aria-rowindex="2" class="filter-row">
1925
- ${this._tree ? c`<th class="filter-cell tree-chevron-cell"></th>` : p}
1926
- ${e ? c`<th class="filter-cell checkbox-cell"></th>` : p}
1927
- ${this._columns.map((t) => this.renderFilterCell(t))}
1928
- </tr>
1929
- `;
1930
- }
1931
- renderFilterCell(e) {
1932
- if (!e.filterable)
1933
- return c`<th class="filter-cell p-0" data-column=${e.name} scope="col"></th>`;
1934
- const t = this._openFilterColumn === e.name, i = this.mergedLabels, s = this.columnLabel(e), a = e.filterActive ? i.filterColumnActive(s, e.filterSummary) : i.filterColumn(s);
1935
- return c`
1936
- <th class="filter-cell p-0" data-column=${e.name} scope="col">
1937
- <button
1938
- type="button"
1939
- class=${x({
1940
- "filter-trigger": !0,
1941
- "p-2": !0,
1942
- "rounded-0": !0,
1943
- active: !!e.filterActive,
1944
- open: t
1945
- })}
1946
- id=${this.filterTriggerId(e.name)}
1947
- aria-expanded=${t ? "true" : "false"}
1948
- aria-controls=${t ? this.filterPanelId : p}
1949
- aria-label=${a}
1950
- @click=${(r) => this.onFilterTriggerClick(e, r)}
1951
- >
1952
- <svg class="filter-icon" viewBox="0 0 16 16" aria-hidden="true" focusable="false">
1953
- <path d="M2 3h12l-4.5 5.25V13L6.5 11.5V8.25L2 3z" />
1954
- </svg>
1955
- ${e.filterSummary ? c`<span class="filter-summary">${e.filterSummary}</span>` : p}
1956
- </button>
1957
- </th>
1958
- `;
1959
- }
1960
- /**
1961
- * The column's name in every generated string: the consumer's label, else the
1962
- * text its header renders, else its key. The header-text step is what makes a
1963
- * wrapper that only passes a header template (Angular) correct with no extra
1964
- * input, and that text is already localized because the consumer rendered it.
1965
- */
1966
- columnLabel(e) {
1967
- return e.label ?? this._derivedLabels.get(e.name) ?? e.name;
1968
- }
1969
- /**
1970
- * Caches the text of a Node header. Read during render, before lit moves a
1971
- * fragment's children into the cell, and only a non-empty text replaces the
1972
- * cache: a renderer that hands back the same, already-emptied fragment on a
1973
- * later render must not erase the name it had.
1974
- */
1975
- deriveHeaderLabel(e, t) {
1976
- if (!(t instanceof Node)) {
1977
- this._derivedLabels.delete(e.name);
1978
- return;
1979
- }
1980
- const i = t.textContent?.replace(/\s+/g, " ").trim();
1981
- i && this._derivedLabels.set(e.name, i);
1982
- }
1983
- /** Idempotent; re-attaches if the thead was replaced or the element reconnected. */
1984
- observeHeaderText() {
1985
- if (typeof MutationObserver > "u") return;
1986
- const e = this.renderRoot?.querySelector("thead") ?? null;
1987
- e !== this._observedThead && (this._headerObserver ??= new MutationObserver(() => {
1988
- this.headerTextChanged() && this.requestUpdate();
1989
- }), this._headerObserver.disconnect(), this._observedThead = e, e && this._headerObserver.observe(e, { characterData: !0, childList: !0, subtree: !0 }));
1990
- }
1991
- /**
1992
- * Whether a header now shows different text than the name derived from it.
1993
- * The gate that keeps the observer from looping: a renderer that returns
1994
- * fresh nodes on every call (a new fragment each time, the React/Vue
1995
- * render-prop shape) mutates the header on EVERY render, but its text stays
1996
- * the same, so only a real change re-renders.
1997
- */
1998
- headerTextChanged() {
1999
- return [...this._derivedLabels].some(([e, t]) => {
2000
- const s = this.headerCell(e)?.querySelector(".header-cell > span")?.textContent?.replace(/\s+/g, " ").trim();
2001
- return !!s && s !== t;
2002
- });
2003
- }
2004
- /** The column's own flag wins in either direction; absent, the table-wide one. */
2005
- isColumnResizable(e) {
2006
- return e.resizable ?? this._resizableColumns;
2007
- }
2008
- renderHeader(e, t) {
2009
- const i = e.sortable ?? !0, s = this._sortColumns.findIndex((d) => d.property === e.name), a = s >= 0 ? this._sortColumns[s].direction : null, r = this._columnWidths.get(e.name) ?? e.width, o = e.headerRenderer ? e.headerRenderer(e) : e.label ?? e.name;
2010
- this.deriveHeaderLabel(e, o);
2011
- const l = {};
2012
- return typeof r == "number" && (l.width = `${r}px`, l.minWidth = `${r}px`), c`
2013
- <th
2014
- scope="col"
2015
- data-column=${e.name}
2016
- data-sortable=${i ? "true" : "false"}
2017
- aria-sort=${a ? a === "ascending" ? "ascending" : "descending" : "none"}
2018
- style=${_(l)}
2019
- >
2020
- ${i ? c`<button
2021
- type="button"
2022
- class="header-cell header-sort"
2023
- @click=${(d) => this.onHeaderClick(e, d)}
2024
- >
2025
- <span>${S(o)}</span>
2026
- ${s >= 0 && this._sortColumns.length > 1 ? c`<span class="sort-index">${s + 1}</span>` : p}
2027
- </button>` : c`<span class="header-cell">
2028
- <span>${S(o)}</span>
2029
- </span>`}
2030
- ${this.isColumnResizable(e) ? c`<span
2031
- class="resize-handle"
2032
- role="separator"
2033
- tabindex="0"
2034
- aria-orientation="vertical"
2035
- aria-label=${this.mergedLabels.resizeColumn(this.columnLabel(e))}
2036
- aria-valuemin=${C}
2037
- aria-valuenow=${Math.round(r ?? 0) || p}
2038
- @pointerdown=${(d) => this.startColumnResize(e, d)}
2039
- @keydown=${(d) => this.onResizeHandleKeydown(e, d)}
2040
- @focus=${() => this.onResizeHandleFocus()}
2041
- ></span>` : p}
2042
- </th>
2043
- `;
2044
- }
2045
- renderRow(e, t, i, s) {
2046
- const { row: a, depth: r, isExpanded: o, isPlaceholder: l } = e, d = !l && this._selectedIds.has(t), h = !l && this._cutIds.has(t), u = !l && this._focusedRowKey === t, m = l ? 0 : this.extractChildCount(a), b = this._tree && !l && m > 0, E = !l && a != null && this.isParentIndeterminate(a, t);
2047
- return c`
2048
- <tr
2049
- role="row"
2050
- aria-rowindex=${i + 1 + (this.hasFilterRow ? 2 : 1)}
2051
- aria-level=${this._tree ? r + 1 : p}
2052
- aria-expanded=${this._tree && m > 0 ? o ? "true" : "false" : p}
2053
- aria-busy=${l ? "true" : p}
2054
- aria-selected=${!l && this._selectionMode !== "none" ? d ? "true" : "false" : p}
2055
- data-row-key=${t}
2056
- data-selected=${d ? "true" : "false"}
2057
- data-cut=${h ? "true" : "false"}
2058
- data-focused=${u ? "true" : "false"}
2059
- data-placeholder=${l ? "true" : "false"}
2060
- data-depth=${this._tree ? String(r) : p}
2061
- data-clickable=${!l && (this._selectionMode !== "none" || this.hasRowClickListeners()) ? "true" : "false"}
2062
- tabindex=${!l && (this._selectionMode !== "none" || this._tree) ? this._focusedRowKey === t || this._focusedRowKey === null && i === 0 ? "0" : "-1" : p}
2063
- @focus=${l ? null : () => {
2064
- this._focusedRowKey = t, this.requestUpdate();
2065
- }}
2066
- @click=${l ? null : (f) => this.onRowClick(a, t, i, f)}
2067
- @dblclick=${l ? null : (f) => this.onRowDblClick(a, t, i, f)}
2068
- @contextmenu=${l ? null : (f) => this.onRowContextMenu(a, t, i, f)}
2069
- @keydown=${l ? null : (f) => this.onRowKeydown(a, t, i, e.parentId, r, o, m, f)}
2070
- >
2071
- ${this._tree ? c`<td class="tree-chevron-cell" style=${_({ paddingInlineStart: `${r * this._treeIndent}rem` })}>
2072
- ${b ? c`<button
2073
- type="button"
2074
- class="tree-chevron"
2075
- aria-label=${o ? this.mergedLabels.collapseRow : this.mergedLabels.expandRow}
2076
- aria-expanded=${o ? "true" : "false"}
2077
- data-expanded=${o ? "true" : "false"}
2078
- @click=${(f) => this.toggleExpand(a, e.parentId, r, f)}
2079
- >${o ? "▾" : "▸"}</button>` : p}
2080
- </td>` : p}
2081
- ${s ? c`<td
2082
- class=${x({ "checkbox-cell": !0, "checkbox-cell-toggles": this._selectionMode === "checkbox" })}
2083
- @click=${l ? (f) => f.stopPropagation() : (f) => this.onCheckboxCellClick(a, t, f)}
2084
- @dblclick=${(f) => f.stopPropagation()}
2085
- >
2086
- ${l ? p : c`<mp-checkbox
2087
- .checked=${d}
2088
- .indeterminate=${E}
2089
- @change=${() => this.onRowCheckboxToggle(a, t)}
2090
- ></mp-checkbox>`}
2091
- </td>` : p}
2092
- ${this._rowRenderer ? this.renderRowFromRenderer(a, i, { depth: r, isExpanded: o, isPlaceholder: l }) : l ? c`<td colspan=${this._columns.length} class="tree-placeholder-cell" aria-label=${this.mergedLabels.loading}>…</td>` : this._columns.map((f) => this.renderCell(a, f, i))}
2093
- </tr>
2094
- `;
2095
- }
2096
- /**
2097
- * Names every rendered row checkbox (D14): `rowLabel(row)`, else the trimmed
2098
- * text of the row's first data cell, else the row number.
2099
- *
2100
- * Runs after each render rather than in the template because the cell text
2101
- * only exists once the cell is rendered — and it may be consumer DOM from a
2102
- * `cellRenderer` or `rowRenderer` — so a re-rendered cell renames its
2103
- * checkbox on the same update. The attribute is written only when it
2104
- * changes, so an unchanged name costs no mutation.
2105
- */
2106
- nameRowCheckboxes() {
2107
- if (!this.isMulti) return;
2108
- const e = this.mergedLabels, t = new Map(this.computeVisibleRows().map((s) => [s.key, s])), i = this.renderRoot.querySelectorAll('tbody tr[data-row-key]:not([data-placeholder="true"])');
2109
- for (const s of i) {
2110
- const a = s.querySelector(":scope > td.checkbox-cell > mp-checkbox"), r = t.get(s.dataset.rowKey ?? "");
2111
- if (!a || !r) continue;
2112
- const o = this._rowLabel?.(r.row)?.trim(), l = s.querySelector(":scope > td:not(.checkbox-cell):not(.tree-chevron-cell)")?.textContent?.trim(), d = o || l, h = d ? e.selectRowNamed(d) : e.selectRow(r.rowIndex + 1);
2113
- a.getAttribute("aria-label") !== h && a.setAttribute("aria-label", h);
2114
- }
2115
- }
2116
- renderRowFromRenderer(e, t, i) {
2117
- const s = this._rowRenderer(e, t, i);
2118
- if (s == null)
2119
- return i.isPlaceholder ? c`<td colspan=${this._columns.length} class="tree-placeholder-cell" aria-label=${this.mergedLabels.loading}>…</td>` : this._columns.map((a) => this.renderCell(e, a, t));
2120
- if (Array.isArray(s) || ie(s)) {
2121
- const a = [];
2122
- for (const r of s) a.push(r);
2123
- return a;
2124
- }
2125
- return s;
2126
- }
2127
- renderCell(e, t, i) {
2128
- const s = t.cellRenderer ? t.cellRenderer(e, t, i) : te(e, t);
2129
- return c`<td class=${t.cellClass ?? ""} data-column=${t.name}>${S(s)}</td>`;
2130
- }
2131
- renderFooter(e) {
2132
- const t = Array.from({ length: e }, (i, s) => s + 1);
2133
- return c`
2134
- <div class="datatable-footer">
2135
- <mp-pagination
2136
- class="datatable-per-page"
2137
- aria-label=${this.mergedLabels.rowsPerPage}
2138
- .pageNumbers=${this._perPageOptions}
2139
- .selectedPageNumber=${this._perPage}
2140
- .showArrows=${!1}
2141
- @mp-pagination-page-change=${(i) => this.setPerPage(i.detail.page)}
2142
- ></mp-pagination>
2143
- <mp-pagination
2144
- class="datatable-pagination"
2145
- .pageNumbers=${t}
2146
- .selectedPageNumber=${this._page}
2147
- .numberOfBoxes=${7}
2148
- .showArrows=${!0}
2149
- @mp-pagination-page-change=${(i) => this.gotoPage(i.detail.page)}
2150
- ></mp-pagination>
2151
- </div>
2152
- `;
2153
- }
2154
- setPerPage(e) {
2155
- const t = Math.max(1, Math.floor(e || 1));
2156
- this._perPage !== t && (this._perPage = t, this._page = 1, this.requestUpdate(), this.scheduleFetchReload(), this.dispatchEvent(
2157
- new CustomEvent("mp-datatable-per-page-change", {
2158
- detail: { perPage: t },
2159
- bubbles: !0,
2160
- composed: !0
2161
- })
2162
- ), this.dispatchEvent(
2163
- new CustomEvent("mp-datatable-page-change", {
2164
- detail: { page: 1 },
2165
- bubbles: !0,
2166
- composed: !0
2167
- })
2168
- ));
2169
- }
2170
- getEffectiveData() {
2171
- if (this._tree || this.isRootWindowed())
2172
- return this.getFlatList().map((t) => t.row);
2173
- let e = this._data;
2174
- if (this._autoSort && this._sortColumns.length > 0 && (e = v(e, this._sortColumns)), this._pagination && !this.isExternallyPaged()) {
2175
- const t = (this._page - 1) * this._perPage;
2176
- e = e.slice(t, t + this._perPage);
2177
- }
2178
- return e;
2179
- }
2180
- /**
2181
- * Flat list of visible rows including expansion + placeholders. Computed
2182
- * each render in tree mode; flat mode produces a trivial mapping of `_data`
2183
- * (after sort+pagination) with default metadata.
2184
- *
2185
- * Memoised via `_cachedFlatList`, cleared in `willUpdate`. Multiple calls
2186
- * during the same render cycle (`computeVisibleRows`,
2187
- * `getVirtualSpacerHeights`, aria-rowcount) share one computation.
2188
- */
2189
- getFlatList() {
2190
- if (this._cachedFlatList !== null) return this._cachedFlatList;
2191
- if (!this._tree) {
2192
- if (this.isRootWindowed()) {
2193
- const o = this._totalRecords ?? this._data.length, l = Math.max(1, this._perPage), d = new Array(o);
2194
- for (let h = 0; h < o; h++) {
2195
- const u = Math.floor(h / l) + 1, m = h % l, b = u === 1 ? this._data[m] : this._pageCache.get(u)?.[m];
2196
- d[h] = b !== void 0 ? { row: b, key: this._rowKey(b, h), depth: 0, parentId: null, isExpanded: !1, isPlaceholder: !1 } : { row: void 0, key: `__placeholder-flat-${h}`, depth: 0, parentId: null, page: u, isExpanded: !1, isPlaceholder: !0 };
2197
- }
2198
- return this._cachedFlatList = d;
2199
- }
2200
- const a = this._pagination ? (this._page - 1) * this._perPage : 0, r = this._pagination && !this.isExternallyPaged() ? this.localSortedRows().slice(a, a + this._perPage) : this.localSortedRows();
2201
- return this._cachedFlatList = r.map((o, l) => ({
2202
- row: o,
2203
- key: this._rowKey(o, a + l),
2204
- depth: 0,
2205
- parentId: null,
2206
- isExpanded: !1,
2207
- isPlaceholder: !1
2208
- }));
2209
- }
2210
- const e = [], t = Math.max(1, this._perPage), i = (a) => this._autoSort && this._sortColumns.length > 0 ? v(a, this._sortColumns) : a, s = (a, r, o) => {
2211
- const l = this.extractId(a), d = l != null && this._expandedIds.has(l), h = this.extractChildCount(a);
2212
- if (e.push({ row: a, key: this._rowKey(a, e.length), depth: r, parentId: o, isExpanded: d, isPlaceholder: !1 }), !d || h === 0 || l == null) return;
2213
- const u = this._childCache.get(l);
2214
- if (u && u.length > 0) {
2215
- for (const b of i(u)) s(b, r + 1, l);
2216
- const m = this._childTotals.get(l) ?? u.length;
2217
- for (let b = 0; b < Math.max(0, m - u.length); b++)
2218
- e.push({ row: void 0, key: `__placeholder-${String(l)}-${u.length + b}`, depth: r + 1, parentId: l, isExpanded: !1, isPlaceholder: !0 });
2219
- } else
2220
- for (let m = 0; m < h; m++)
2221
- e.push({ row: void 0, key: `__placeholder-${String(l)}-${m}`, depth: r + 1, parentId: l, isExpanded: !1, isPlaceholder: !0 });
2222
- };
2223
- if (this.isRootWindowed()) {
2224
- const a = this._totalRecords ?? this._data.length;
2225
- for (let r = 0; r < a; r++) {
2226
- const o = Math.floor(r / t) + 1, l = r % t, d = o === 1 ? this._data[l] : this._pageCache.get(o)?.[l];
2227
- d === void 0 ? e.push({ row: void 0, key: `__placeholder-root-${r}`, depth: 0, parentId: null, page: o, isExpanded: !1, isPlaceholder: !0 }) : s(d, 0, null);
2228
- }
2229
- } else {
2230
- const a = this._autoSort && this._sortColumns.length > 0 ? v(this._data, this._sortColumns) : this._data;
2231
- for (const r of a) s(r, 0, null);
2232
- }
2233
- return this._cachedFlatList = e;
2234
- }
2235
- /** `_data` in display order: client-sorted when the WC owns sorting. */
2236
- localSortedRows() {
2237
- return this._autoSort && this._sortColumns.length > 0 ? v(this._data, this._sortColumns) : this._data;
2238
- }
2239
- /**
2240
- * Drops the flat-list memo. It is otherwise reset only in `willUpdate`, so a
2241
- * path that runs between a data change and the next render (a programmatic
2242
- * setter, an event fired before the re-render) would read the old rows.
2243
- */
2244
- freshFlatList() {
2245
- return this._cachedFlatList = null, this.getFlatList();
2246
- }
2247
- /**
2248
- * Every loaded row that has a renderer-assigned key, as `[key, row]`. The keys
2249
- * are the ones the renderer uses (K1): a positional fallback key only means
2250
- * anything at the row's rendered index. With local pagination every page is
2251
- * loaded, so rows of the other pages are keyed by their global index too.
2252
- */
2253
- liveRowEntries(e) {
2254
- const t = e.filter((i) => !i.isPlaceholder).map((i) => [i.key, i.row]);
2255
- return this._tree || !this._pagination || this.isExternallyPaged() ? t : this.localSortedRows().map((i, s) => [this._rowKey(i, s), i]);
2256
- }
2257
- /**
2258
- * The key the renderer gives a row object. A row outside the live entries (a
2259
- * child of a collapsed parent, a row only the host knows) has no rendered
2260
- * index, so it falls back to an index-free `rowKey` call — exact for any
2261
- * id-based key, and a positional key is already warned about.
2262
- */
2263
- keyOfRow(e) {
2264
- const t = this.getFlatList();
2265
- return this._keyByRowMemo?.list !== t && (this._keyByRowMemo = { list: t, byRow: new Map(this.liveRowEntries(t).map(([i, s]) => [s, i])) }), this._keyByRowMemo.byRow.get(e) ?? this._rowKey(e, -1);
2266
- }
2267
- /** `keyOfRow` against the current data, for paths that may run before a re-render. */
2268
- rowKeyLookup() {
2269
- return this.freshFlatList(), (e) => this.keyOfRow(e);
2270
- }
2271
- computeVisibleRows() {
2272
- const e = this.getFlatList(), t = this._tree ? 0 : this._pagination ? (this._page - 1) * this._perPage : 0;
2273
- let i = e, s = 0;
2274
- if (this._virtualScroll) {
2275
- const { startIndex: a, endIndex: r } = this._virtualRange;
2276
- i = e.slice(a, r), s = a;
2277
- }
2278
- return i.map((a, r) => {
2279
- const o = t + s + r;
2280
- return { row: a.row, rowIndex: o, key: a.key, flat: a };
2281
- });
2282
- }
2283
- // ─── Tree-mode helpers ───────────────────────────────────────────────────
2284
- extractId(e) {
2285
- return !this._idKey || e == null || typeof e != "object" ? null : typeof this._idKey == "function" ? this._idKey(e) : e[this._idKey];
2286
- }
2287
- extractChildCount(e) {
2288
- if (!this._childCountKey || e == null || typeof e != "object") return 0;
2289
- const t = e[this._childCountKey];
2290
- return typeof t == "number" && t > 0 ? t : 0;
2291
- }
2292
- /**
2293
- * Walks the loaded subtree of `row` and returns `[key, row]` for every
2294
- * descendant — the row too, because a cascade selects it and the selection
2295
- * remembers the rows it selected.
2296
- */
2297
- collectDescendants(e) {
2298
- const t = this.extractId(e), i = t != null ? this._childCache.get(t) : void 0;
2299
- return i ? i.flatMap((s) => [[this.keyOfRow(s), s], ...this.collectDescendants(s)]) : [];
2300
- }
2301
- /** Some-but-not-all loaded descendants selected → indeterminate parent checkbox. */
2302
- isParentIndeterminate(e, t) {
2303
- return this._selectionStrategy !== "cascading" || e == null ? !1 : this.getIndeterminateKeys().has(t);
2304
- }
2305
- /**
2306
- * Per-render memo: the set of row keys whose loaded subtree is partially
2307
- * selected. Built in one DFS over `_childCache` so each loaded parent is
2308
- * visited exactly once per render. Replaces the previous
2309
- * `collectDescendantKeys`-per-visible-row recursion which was O(visible ×
2310
- * descendants) per render.
2311
- */
2312
- getIndeterminateKeys() {
2313
- if (this._cachedIndeterminateKeys !== null) return this._cachedIndeterminateKeys;
2314
- const e = /* @__PURE__ */ new Set();
2315
- if (this._selectionStrategy !== "cascading" || !this._tree)
2316
- return this._cachedIndeterminateKeys = e;
2317
- const t = (i) => {
2318
- const s = this.extractId(i);
2319
- if (s == null) return { selected: 0, total: 0 };
2320
- const a = this._childCache.get(s);
2321
- if (!a || a.length === 0) return { selected: 0, total: 0 };
2322
- let r = 0, o = 0;
2323
- for (const l of a) {
2324
- const d = this.keyOfRow(l), h = this._selectedIds.has(d) ? 1 : 0, u = t(l);
2325
- r += h + u.selected, o += 1 + u.total;
2326
- }
2327
- return o > 0 && r > 0 && r < o && e.add(this.keyOfRow(i)), { selected: r, total: o };
2328
- };
2329
- for (const i of this._data) t(i);
2330
- return this._cachedIndeterminateKeys = e;
2331
- }
2332
- /**
2333
- * Toggle a row's expanded state. On expand, fires a fetch-request event if
2334
- * children aren't cached yet so the wrapper can bridge to the consumer's
2335
- * `[fetch]` callback. Always fires `expanded-ids-change`.
2336
- */
2337
- toggleExpand(e, t, i, s) {
2338
- s.stopPropagation(), s.preventDefault();
2339
- const a = this.extractId(e);
2340
- if (a == null) return;
2341
- const r = new Set(this._expandedIds);
2342
- let o;
2343
- r.has(a) ? (r.delete(a), o = !1) : (r.add(a), o = !0), this._expandedIds = r, o ? (this.dispatchEvent(
2344
- new CustomEvent("mp-datatable-row-expand", {
2345
- detail: { row: e, depth: i, parentId: t },
2346
- bubbles: !0,
2347
- composed: !0
2348
- })
2349
- ), this.extractChildCount(e) > 0 && !this._childCache.has(a) && !this._pendingFetches.has(a) && this.fetchChildren(a)) : this.dispatchEvent(
2350
- new CustomEvent("mp-datatable-row-collapse", {
2351
- detail: { row: e, depth: i, parentId: t },
2352
- bubbles: !0,
2353
- composed: !0
2354
- })
2355
- ), this.emitExpandedIdsChange(), this.requestUpdate();
2356
- }
2357
- emitExpandedIdsChange() {
2358
- this.dispatchEvent(
2359
- new CustomEvent("mp-datatable-expanded-ids-change", {
2360
- detail: { expandedIds: new Set(this._expandedIds) },
2361
- bubbles: !0,
2362
- composed: !0
2363
- })
2364
- );
2365
- }
2366
- // ─── Fetch-callback driver (the WC owns the whole server-paged loop) ─────
2367
- /**
2368
- * Fetch a windowed root page (≥ 2) into the page cache. Called when a root
2369
- * placeholder scrolls into view. Keyed on the requested page, so a server
2370
- * that echoes a different page number can't deadlock the window.
2371
- * Generation-guarded against responses that land after an invalidation.
2372
- */
2373
- async fetchWindowPage(e) {
2374
- if (!this._fetch || e <= 1) return;
2375
- this._pendingPageFetches.add(e);
2376
- const t = this._fetchGeneration;
2377
- try {
2378
- const i = await this._fetch({ parentId: null, page: e, perPage: this._perPage, sortColumns: [...this._sortColumns] });
2379
- if (t !== this._fetchGeneration || !this._fetch) return;
2380
- this._pendingPageFetches.delete(e), this._pageCache.set(e, [...i?.data ?? []]);
2381
- const s = i?.totalRecords == null ? null : Math.max(0, Math.floor(i.totalRecords));
2382
- s != null && (this._totalRecords = s), this.requestUpdate();
2383
- } catch (i) {
2384
- this._pendingPageFetches.delete(e), console.error("[mp-datatable] fetch failed for root page", e, i);
2385
- }
2386
- }
2387
- /**
2388
- * Fetch a node's children into the child cache. Called on expand or when a
2389
- * child placeholder scrolls into view. Generation-guarded.
2390
- */
2391
- async fetchChildren(e) {
2392
- if (!this._fetch || e == null) return;
2393
- this._pendingFetches.add(e);
2394
- const t = this._fetchGeneration;
2395
- try {
2396
- const i = await this._fetch({ parentId: e, page: 1, perPage: this._perPage, sortColumns: [...this._sortColumns] });
2397
- if (t !== this._fetchGeneration || !this._fetch) return;
2398
- this._pendingFetches.delete(e), this._childCache.set(e, [...i?.data ?? []]), this._childTotals.set(e, i?.totalRecords ?? i?.data?.length ?? 0), this.requestUpdate();
2399
- } catch (i) {
2400
- this._pendingFetches.delete(e), console.error("[mp-datatable] fetch failed for children of", e, i);
2401
- }
2402
- }
2403
- /**
2404
- * Fetch a single page of roots and make it the page-1 data (initial load and
2405
- * non-virtual pagination). The grand total is read from the response —
2406
- * consumers never set `totalRecords`. Generation-guarded against stale loads.
2407
- */
2408
- async loadPage(e) {
2409
- if (!this._fetch) return;
2410
- const t = this._fetchGeneration;
2411
- let i;
2412
- try {
2413
- i = await this._fetch({ parentId: null, page: e, perPage: this._perPage, sortColumns: [...this._sortColumns] });
2414
- } catch (a) {
2415
- console.error("[mp-datatable] fetch failed for page", e, a);
2416
- return;
2417
- }
2418
- if (t !== this._fetchGeneration || !this._fetch) return;
2419
- this._data = [...i?.data ?? []];
2420
- const s = i?.totalRecords == null ? null : Math.max(0, Math.floor(i.totalRecords));
2421
- this._totalRecords = s, this._initialFetchDone = !0, this.requestUpdate();
2422
- }
2423
- /**
2424
- * Coalesce sort/perPage/page changes (which arrive both as user actions and
2425
- * as echoed property pushes) into a single reload. A microtask debounces the
2426
- * burst; a `{sort,perPage,page}` change-key skips echoes that didn't actually
2427
- * change anything.
2428
- */
2429
- scheduleFetchReload() {
2430
- !this._fetch || this._reloadScheduled || (this._reloadScheduled = !0, queueMicrotask(() => {
2431
- if (this._reloadScheduled = !1, !this._fetch) return;
2432
- const e = JSON.stringify({
2433
- s: this._sortColumns,
2434
- pp: this._perPage,
2435
- p: this._virtualScroll ? 1 : this._page
2436
- });
2437
- this._initialFetchDone && e === this._lastReloadKey || (this._lastReloadKey = e, this._fetchGeneration++, this._pageCache.clear(), this._pendingPageFetches.clear(), this._childCache.clear(), this._childTotals.clear(), this._pendingFetches.clear(), this.loadPage(this._virtualScroll ? 1 : this._page));
2438
- }));
2439
- }
2440
- /**
2441
- * Row keymap, the same in every mode: ArrowUp/Down move, ArrowRight/Left
2442
- * expand/collapse a tree row, Enter opens (row-click), Space selects.
2443
- * 'single'/'multiple': Enter and Space both select with the click modifiers
2444
- * and emit row-click. 'checkbox': Enter only emits row-click, Space only
2445
- * toggles the row's checkbox.
2446
- */
2447
- onRowKeydown(e, t, i, s, a, r, o, l) {
2448
- if (!l.altKey && l.composedPath()[0] === l.currentTarget) {
2449
- if (l.key === "ArrowDown" || l.key === "ArrowUp") {
2450
- l.preventDefault();
2451
- const d = Array.from(
2452
- this.renderRoot.querySelectorAll("tbody tr[data-row-key]")
2453
- ), h = d.findIndex((m) => m.dataset.rowKey === t), u = d[h + (l.key === "ArrowDown" ? 1 : -1)];
2454
- u && u.focus();
2455
- return;
2456
- }
2457
- if (this._tree) {
2458
- if (l.key === "ArrowRight" && o > 0 && !r) {
2459
- this.toggleExpand(e, s, a, l);
2460
- return;
2461
- }
2462
- if (l.key === "ArrowLeft" && r) {
2463
- this.toggleExpand(e, s, a, l);
2464
- return;
2465
- }
2466
- }
2467
- if ((l.key === "Enter" || l.key === " ") && this._selectionMode === "checkbox") {
2468
- if (l.preventDefault(), this._focusedRowKey = t, l.key === " ") {
2469
- l.shiftKey || this.onRowCheckboxToggle(e, t), this.requestUpdate();
2470
- return;
2471
- }
2472
- this.requestUpdate(), this.dispatchEvent(
2473
- new CustomEvent("mp-datatable-row-click", {
2474
- detail: { row: e, rowIndex: i, rowKey: t, originalEvent: l },
2475
- bubbles: !0,
2476
- composed: !0
2477
- })
2478
- );
2479
- return;
2480
- }
2481
- (l.key === "Enter" || l.key === " ") && this._selectionMode !== "none" && (l.preventDefault(), this._focusedRowKey = t, this.handleSelectionOnClick(e, t, l), this.requestUpdate(), this.dispatchEvent(
2482
- new CustomEvent("mp-datatable-row-click", {
2483
- detail: { row: e, rowIndex: i, rowKey: t, originalEvent: l },
2484
- bubbles: !0,
2485
- composed: !0
2486
- })
2487
- ));
2488
- }
2489
- }
2490
- hasRowClickListeners() {
2491
- return !0;
2492
- }
2493
- /**
2494
- * Bound only to the sort <button>, which renders only for sortable columns;
2495
- * the resize handle is the button's sibling, so its clicks never land here.
2496
- */
2497
- onHeaderClick(e, t) {
2498
- const i = G(this._sortColumns, e.name, t.shiftKey);
2499
- this._sortColumns = i, this._page = 1;
2500
- const s = i.find((a) => a.property === e.name);
2501
- this.liveAnnouncer.announce(
2502
- this.mergedLabels.announceSorted(
2503
- this.columnLabel(e),
2504
- s ? s.direction === "ascending" ? "ascending" : "descending" : "none"
2505
- )
2506
- ), this.requestUpdate(), this.scheduleFetchReload(), this.dispatchEvent(
2507
- new CustomEvent("mp-datatable-sort-change", {
2508
- detail: { sortColumns: i },
2509
- bubbles: !0,
2510
- composed: !0
2511
- })
2512
- );
2513
- }
2514
- onRowClick(e, t, i, s) {
2515
- this._focusedRowKey = t, this._selectionMode !== "checkbox" && this.handleSelectionOnClick(e, t, s), this.requestUpdate(), this.dispatchEvent(
2516
- new CustomEvent("mp-datatable-row-click", {
2517
- detail: { row: e, rowIndex: i, rowKey: t, originalEvent: s },
2518
- bubbles: !0,
2519
- composed: !0
2520
- })
2521
- );
2522
- }
2523
- onRowDblClick(e, t, i, s) {
2524
- this.dispatchEvent(
2525
- new CustomEvent("mp-datatable-row-dblclick", {
2526
- detail: { row: e, rowIndex: i, rowKey: t, originalEvent: s },
2527
- bubbles: !0,
2528
- composed: !0
2529
- })
2530
- );
2531
- }
2532
- onRowContextMenu(e, t, i, s) {
2533
- this._selectionMode !== "none" && this._selectionMode !== "checkbox" && !this._selectedIds.has(t) && (this.commitSelection([t], [[t, e]]), this._focusedRowKey = t, this.emitSelectionChange(), this.requestUpdate()), this.dispatchEvent(
2534
- new CustomEvent("mp-datatable-row-contextmenu", {
2535
- detail: { row: e, rowIndex: i, rowKey: t, originalEvent: s },
2536
- bubbles: !0,
2537
- composed: !0,
2538
- cancelable: !0
2539
- })
2540
- ) || s.preventDefault();
2541
- }
2542
- /**
2543
- * A click anywhere in the checkbox cell, in every mode. The cell is
2544
- * selection-only, so neither its click nor its double-click reaches the row
2545
- * (D12: a double-click on a checkbox used to open the row).
2546
- *
2547
- * In 'checkbox' mode the whole cell is the hit target, not just the 20px box.
2548
- * A click that went through the checkbox's own shadow root is the checkbox
2549
- * operating itself (its change handler toggles), so it is left alone; every
2550
- * other click toggles here. `closest('mp-checkbox')` cannot tell the two
2551
- * apart: a click on the checkbox host's padding is retargeted to the host yet
2552
- * fires no change, so it would be swallowed (spike S1). No focus() and no
2553
- * preventDefault(): the browser focuses the row natively, which keeps Enter,
2554
- * Space and the arrow keys working from there (spike S4).
2555
- */
2556
- onCheckboxCellClick(e, t, i) {
2557
- if (i.stopPropagation(), this._selectionMode !== "checkbox") return;
2558
- const s = i.currentTarget.querySelector("mp-checkbox")?.shadowRoot;
2559
- s && i.composedPath().includes(s) || this.onRowCheckboxToggle(e, t);
2560
- }
2561
- /** Row checkboxes render only in the multi-select modes, so this is multi-select toggling. */
2562
- onRowCheckboxToggle(e, t) {
2563
- const i = !this._selectedIds.has(t), s = [
2564
- [t, e],
2565
- ...this._tree && this._selectionStrategy === "cascading" ? this.collectDescendants(e) : []
2566
- ], a = new Set(s.map(([r]) => r));
2567
- i ? this.commitSelection([...this._selectedIds, ...a], s) : this.commitSelection([...this._selectedIds].filter((r) => !a.has(r))), this.emitSelectionChange(), this.requestUpdate();
2568
- }
2569
- /**
2570
- * Clears the entire selection. The header checkbox is only rendered when
2571
- * at least one row is selected — a true "select all" affordance would be
2572
- * misleading because the WC doesn't know about rows outside the current
2573
- * pagination slice or virtual-scroll window. Click semantics are
2574
- * therefore one-way: visible → deselect-all → hidden again.
2575
- */
2576
- onDeselectAll() {
2577
- this._selectedIds.size !== 0 && (this.commitSelection([]), this.emitSelectionChange(), this.requestUpdate());
2578
- }
2579
- handleSelectionOnClick(e, t, i) {
2580
- if (this._selectionMode !== "none") {
2581
- if (this._selectionMode === "single") {
2582
- this.commitSelection([t], [[t, e]]), this.emitSelectionChange();
2583
- return;
2584
- }
2585
- if (i.shiftKey && this._selectionAnchorKey && this._selectionAnchorKey !== t) {
2586
- const s = this.getFlatList(), a = s.findIndex((o) => !o.isPlaceholder && o.key === this._selectionAnchorKey), r = s.findIndex((o) => o.key === t);
2587
- if (a >= 0 && r >= 0) {
2588
- const [o, l] = a < r ? [a, r] : [r, a], d = s.slice(o, l + 1);
2589
- if (d.some((u) => u.isPlaceholder)) {
2590
- this.liveAnnouncer.announce(this.mergedLabels.rangeIncomplete);
2591
- return;
2592
- }
2593
- const h = d.map((u) => [u.key, u.row]);
2594
- this.commitSelection([...this._selectedIds, ...h.map(([u]) => u)], h), this.emitSelectionChange();
2595
- return;
2596
- }
2597
- }
2598
- if (i.ctrlKey || i.metaKey) {
2599
- const s = new Set(this._selectedIds);
2600
- s.has(t) ? s.delete(t) : s.add(t), this.commitSelection(s, [[t, e]]), this._selectionAnchorKey = t, this.emitSelectionChange();
2601
- return;
2602
- }
2603
- this.commitSelection([t], [[t, e]]), this._selectionAnchorKey = t, this.emitSelectionChange();
2604
- }
2605
- }
2606
- /**
2607
- * The one write path for a user-driven selection change. `rows` supplies the
2608
- * row of each key being selected; the remembered rows are then pruned to the
2609
- * new keys, so a deselected row is forgotten in the same step.
2610
- */
2611
- commitSelection(e, t = []) {
2612
- this._selectedIds = new Set(e);
2613
- for (const [i, s] of t)
2614
- s !== void 0 && this._selectedIds.has(i) && this._selectedRowCache.set(i, s);
2615
- this.pruneSelectedRowCache();
2616
- }
2617
- /**
2618
- * Every row the element holds right now, by key: the loaded rows (keyed as
2619
- * the renderer keys them, K1) plus the fetched children of collapsed parents
2620
- * (through `keyOfRow`'s index-free fallback).
2621
- */
2622
- liveRowMap() {
2623
- const e = new Map(this.liveRowEntries(this.freshFlatList()));
2624
- for (const t of this._childCache.values())
2625
- for (const i of t) {
2626
- const s = this.keyOfRow(i);
2627
- e.has(s) || e.set(s, i);
2628
- }
2629
- return e;
2630
- }
2631
- /** Remembers the loaded row of every selected key (a loaded row always wins, D2). */
2632
- rememberLiveSelectedRows() {
2633
- for (const [e, t] of this.liveRowMap())
2634
- t !== void 0 && this._selectedIds.has(e) && this._selectedRowCache.set(e, t);
2635
- }
2636
- /**
2637
- * True when `pairs` is exactly the current selection: the same keys in the
2638
- * same order, each with the row object the element would report for it.
2639
- */
2640
- isSameSelectedRows(e) {
2641
- if (e.length !== this._selectedIds.size) return !1;
2642
- const t = [...this._selectedIds];
2643
- if (!e.every(([s], a) => s === t[a])) return !1;
2644
- const i = this.resolveRows(t);
2645
- return e.every(([, s], a) => s === i[a]);
2646
- }
2647
- /** Forgets the rows of keys that left the selection. One pass, deletes in place. */
2648
- pruneSelectedRowCache() {
2649
- for (const e of this._selectedRowCache.keys())
2650
- this._selectedIds.has(e) || this._selectedRowCache.delete(e);
2651
- }
2652
- emitSelectionChange() {
2653
- const e = [...this._selectedIds];
2654
- this.liveAnnouncer.announce(this.mergedLabels.announceSelection(e.length)), this.dispatchEvent(
2655
- new CustomEvent("mp-datatable-selection-change", {
2656
- detail: { selectedIds: e, selectedRows: this.resolveRows(e) },
2657
- bubbles: !0,
2658
- composed: !0
2659
- })
2660
- );
2661
- }
2662
- /**
2663
- * Resolves keys to rows, index-aligned with `ids` (D3): the loaded row if
2664
- * there is one, else the row remembered at selection time, else `undefined`.
2665
- *
2666
- * A loaded row also refreshes the remembered one, so a re-fetched row object
2667
- * always wins over a stale copy. Loaded rows are keyed exactly as the
2668
- * renderer keys them (K1); children of collapsed parents have no rendered
2669
- * index and go through `keyOfRow`'s index-free fallback.
2670
- */
2671
- resolveRows(e) {
2672
- if (e.length === 0) return [];
2673
- const t = this.liveRowMap();
2674
- return e.map((i) => {
2675
- const s = t.get(i);
2676
- return s === void 0 ? this._selectedRowCache.get(i) : (this._selectedIds.has(i) && this._selectedRowCache.set(i, s), s);
2677
- });
2678
- }
2679
- gotoPage(e) {
2680
- const t = this._totalRecords ?? this._data.length, i = Math.max(1, Math.ceil(t / this._perPage));
2681
- this._page = Math.max(1, Math.min(i, e)), this.liveAnnouncer.announce(this.mergedLabels.announcePage(this._page, i)), this.requestUpdate(), this.scheduleFetchReload(), this.dispatchEvent(
2682
- new CustomEvent("mp-datatable-page-change", {
2683
- detail: { page: this._page },
2684
- bubbles: !0,
2685
- composed: !0
2686
- })
2687
- );
2688
- }
2689
- /**
2690
- * Every resize path ends here. A user-set width is never re-fitted when the
2691
- * scroller resizes (see `refitMeasuredWidths`): the user chose it.
2692
- */
2693
- setUserColumnWidth(e, t) {
2694
- this.freezeColumnWidths(), this._columnWidths = new Map(this._columnWidths), this._columnWidths.set(e, t), this._userWidths.add(e), this.requestUpdate();
2695
- }
2696
- currentColumnWidth(e) {
2697
- return this._columnWidths.get(e.name) ?? this.headerCell(e.name)?.getBoundingClientRect().width ?? 100;
2698
- }
2699
- /**
2700
- * Before the first user resize, pins every column at the width it RENDERS
2701
- * and gives the table that total as an explicit width.
2702
- *
2703
- * Without this the resized edge does not follow the pointer. The table is
2704
- * 100% wide with fixed layout, so whenever the pins add up to less than the
2705
- * container the slack is shared out over every column, the one being
2706
- * resized included: widening it shrinks its share (it grows slower than the
2707
- * pointer), narrowing it grows its share (it hardly moves). With an explicit
2708
- * width equal to the sum there is no slack to share, so a column is exactly
2709
- * as wide as its pin and the edge tracks the pointer 1:1. Narrowing then
2710
- * leaves room on the right, as in a spreadsheet, instead of refusing to move.
2711
- *
2712
- * Idempotent. Unfrozen again when the last user width is reset.
2713
- */
2714
- freezeColumnWidths() {
2715
- if (this._frozenExtraWidth != null || !this.renderRoot) return;
2716
- const e = this.renderRoot.querySelector("table");
2717
- if (!e) return;
2718
- const t = this._columns.map((s) => [s.name, this.headerCell(s.name)?.getBoundingClientRect().width ?? 0]).filter(([, s]) => s > 0);
2719
- if (t.length === 0) return;
2720
- const i = t.reduce((s, [, a]) => s + a, 0);
2721
- this._frozenExtraWidth = Math.max(0, e.getBoundingClientRect().width - i), this._columnWidths = new Map([...this._columnWidths, ...t]), this._frozenWidths = new Map(t);
2722
- }
2723
- frozenTableWidth() {
2724
- return this._columns.reduce((t, i) => t + (this._columnWidths.get(i.name) ?? 0), 0) + (this._frozenExtraWidth ?? 0);
2725
- }
2726
- headerCell(e) {
2727
- return this.renderRoot?.querySelector(
2728
- `thead tr:first-child th[data-column="${e}"]`
2729
- ) ?? null;
2730
- }
2731
- resizeHandle(e) {
2732
- return this.headerCell(e)?.querySelector(".resize-handle") ?? null;
2733
- }
2734
- /**
2735
- * Keyboard column resize — the same ±px model as the pointer path, same 40px
2736
- * floor. Enter opens the same options dialog a tap does, so every pointer
2737
- * path has a keyboard twin and the other way round.
2738
- */
2739
- onResizeHandleKeydown(e, t) {
2740
- if (this.isColumnResizable(e)) {
2741
- if (t.key === "Enter") {
2742
- t.preventDefault(), t.stopPropagation(), this.openResizePanel(e);
2743
- return;
2744
- }
2745
- t.key !== "ArrowLeft" && t.key !== "ArrowRight" || (t.preventDefault(), t.stopPropagation(), this.stepColumnWidth(e, t.key === "ArrowRight" ? w : -w));
2746
- }
2747
- }
2748
- stepColumnWidth(e, t) {
2749
- this.freezeColumnWidths(), this.setUserColumnWidth(e.name, M(this.currentColumnWidth(e), t));
2750
- }
2751
- /** The keymap, spoken once per element: a separator gives no hint of Enter on its own. */
2752
- onResizeHandleFocus() {
2753
- this._resizeHintAnnounced || (this._resizeHintAnnounced = !0, this.liveAnnouncer.announce(this.mergedLabels.resizeColumnHint));
2754
- }
2755
- /**
2756
- * A press on a handle is a drag only once it moves past `RESIZE_TAP_SLOP`;
2757
- * released before that it is a tap, and a tap opens the options dialog. That
2758
- * dialog is the single-pointer alternative WCAG 2.5.7 requires for the drag,
2759
- * and the arrow keys do not count as one.
2760
- *
2761
- * The gesture itself is protected by `touch-action: none` on the handle, not
2762
- * by anything here: `preventDefault()` on pointerdown does not stop a touch
2763
- * pan, and a pan the browser claims ends in `pointercancel`.
2764
- */
2765
- startColumnResize(e, t) {
2766
- if (!this.isColumnResizable(e) || t.pointerType === "mouse" && t.button !== 0) return;
2767
- t.preventDefault(), t.stopPropagation();
2768
- const i = t.currentTarget, s = i.closest("th");
2769
- s && (this.resizeState = {
2770
- column: e,
2771
- pointerId: t.pointerId,
2772
- startX: t.clientX,
2773
- startWidth: s.getBoundingClientRect().width,
2774
- handle: i,
2775
- dragging: !1
2776
- }, i.classList.add("active"), i.setPointerCapture(t.pointerId), i.addEventListener("pointermove", this.onColumnResizeMove), i.addEventListener("pointerup", this.onColumnResizeEnd), i.addEventListener("pointercancel", this.onColumnResizeEnd));
2777
- }
2778
- openResizePanel(e) {
2779
- this.filterOverlay.isOpen && this.filterOverlay.close(!1), this.resizeOverlay.isOpen && this.resizeOverlay.close(!1), this.resizeHandle(e.name)?.focus({ preventScroll: !0 }), this._openResizeColumn = e.name, this.requestUpdate(), this.resizeOverlay.open();
2780
- }
2781
- /**
2782
- * The resize options dialog: step narrower, step wider, fit, reset. Rendered
2783
- * into the overlay pane with a render() of its own, like the filter panel,
2784
- * and for the same reasons — including being a NON-modal dialog in ARIA
2785
- * terms (#416): it is anchored, dismissible and does not own the page.
2786
- *
2787
- * The readout is an `output`, whose implicit status role announces each new
2788
- * width: the only feedback a screen reader gets for a step, because the
2789
- * buttons keep focus and the separator's valuenow is not where focus is.
2790
- */
2791
- renderResizePanel() {
2792
- const e = this.resizeOverlay.portalContainer;
2793
- if (!e) return;
2794
- const t = this._columns.find((r) => r.name === this._openResizeColumn);
2795
- if (!t) return;
2796
- const i = this.mergedLabels, s = this.columnLabel(t), a = Math.round(this.currentColumnWidth(t));
2797
- y(
2798
- c`
2799
- <div class="resize-panel" role="dialog" aria-label=${i.resizeColumnOptions(s)}>
2800
- <div class="resize-panel-steps">
2801
- <button
2802
- type="button"
2803
- class="resize-panel-step"
2804
- aria-label=${i.narrowerColumn(s)}
2805
- @click=${() => this.stepColumnWidth(t, -w)}
2806
- ><span aria-hidden="true">&minus;</span></button>
2807
- <output class="resize-panel-width">${i.columnWidth(a)}</output>
2808
- <button
2809
- type="button"
2810
- class="resize-panel-step"
2811
- aria-label=${i.widerColumn(s)}
2812
- @click=${() => this.stepColumnWidth(t, w)}
2813
- ><span aria-hidden="true">+</span></button>
2814
- </div>
2815
- <button type="button" class="resize-panel-action" @click=${() => this.fitColumnWidth(t)}>
2816
- ${i.fitColumn}
2817
- </button>
2818
- <button type="button" class="resize-panel-action" @click=${() => this.resetColumnWidth(t)}>
2819
- ${i.resetColumn}
2820
- </button>
2821
- </div>
2822
- `,
2823
- e
2824
- );
2825
- }
2826
- /**
2827
- * Sizes the column to its widest RENDERED content: header plus the body rows
2828
- * currently in the DOM (one window, in virtual mode). Read with a Range,
2829
- * because a clipped cell's own box reports the column width, not its
2830
- * content's, while a range over its contents measures the text itself.
2831
- */
2832
- fitColumnWidth(e) {
2833
- const t = this.renderRoot;
2834
- if (!t) return;
2835
- const i = this.headerCell(e.name), s = i?.querySelector(".header-cell > span") ?? null, a = i?.querySelector(".header-cell") ?? null, r = [...t.querySelectorAll(
2836
- `tbody tr[data-row-key] > td[data-column="${e.name}"]`
2837
- )], o = [
2838
- s && a && i ? L(s) + R(a) + R(i) : NaN,
2839
- ...r.map((d) => L(d) + R(d))
2840
- ], l = Z(o);
2841
- l != null && this.setUserColumnWidth(e.name, l);
2842
- }
2843
- /** Back to the width the table chose: the measured one, else the column's own. */
2844
- resetColumnWidth(e) {
2845
- if (this._userWidths.delete(e.name), this._userWidths.size === 0) {
2846
- this._frozenExtraWidth = null, this._frozenWidths = /* @__PURE__ */ new Map(), this._columnWidths = new Map(
2847
- this._columns.map((i) => [i.name, this._measuredWidths.get(i.name) ?? i.width]).filter((i) => typeof i[1] == "number")
2848
- ), this.requestUpdate(), this.refitMeasuredWidths();
2849
- return;
2850
- }
2851
- const t = this._frozenWidths.get(e.name) ?? this._measuredWidths.get(e.name) ?? e.width;
2852
- this._columnWidths = new Map(this._columnWidths), typeof t == "number" ? this._columnWidths.set(e.name, t) : this._columnWidths.delete(e.name), this.requestUpdate();
2853
- }
2854
- }
2855
- function L(n) {
2856
- const e = n.ownerDocument;
2857
- if (typeof e.createRange != "function") return NaN;
2858
- const t = e.createRange();
2859
- return t.selectNodeContents(n), typeof t.getBoundingClientRect == "function" ? t.getBoundingClientRect().width : NaN;
2860
- }
2861
- function R(n) {
2862
- const e = getComputedStyle(n);
2863
- return (parseFloat(e.paddingLeft) || 0) + (parseFloat(e.paddingRight) || 0);
2864
- }
2865
- function te(n, e) {
2866
- if (n == null || typeof n != "object") return "";
2867
- const t = n[e.name];
2868
- return t == null ? "" : String(t);
2869
- }
2870
- function ie(n) {
2871
- return n != null && typeof n != "string" && typeof n[Symbol.iterator] == "function";
2872
- }
2873
- function S(n) {
2874
- return n == null || n === !1 ? p : (n instanceof Node || typeof n == "object" && "_$litType$" in n, n);
2875
- }
2876
- K("datatable", V);
2877
- typeof customElements < "u" && !customElements.get("mp-datatable") && customElements.define("mp-datatable", ee);
2878
- export {
2879
- B as D,
2880
- ee as M,
2881
- G as c,
2882
- V as d,
2883
- v as s
2884
- };