@mintplayer/web-components 2.18.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 (1022) 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 +7773 -7389
  490. package/datatable/index.mjs +1 -8
  491. package/datatable/src/components/column-resize.d.ts +22 -0
  492. package/datatable/src/components/mp-datatable.d.ts +143 -3
  493. package/datatable/src/types/column-def.d.ts +13 -1
  494. package/datatable/src/types/labels.d.ts +17 -0
  495. package/datepicker/index.mjs +128 -215
  496. package/datetime-picker/index.mjs +1 -4
  497. package/dock/index.mjs +1871 -2471
  498. package/dropdown-menu/index.mjs +157 -601
  499. package/file-manager/index.mjs +771 -1180
  500. package/flags/index.mjs +1 -264
  501. package/index.mjs +0 -1
  502. package/input-group/index.mjs +1 -4
  503. package/light-dom/index.mjs +188 -11
  504. package/multi-range/index.mjs +233 -402
  505. package/navbar/index.mjs +224 -1010
  506. package/otp-input/index.mjs +249 -374
  507. package/overlay/index.mjs +1 -7
  508. package/package.json +1 -1
  509. package/pagination/index.mjs +1 -5
  510. package/phone-core/index.mjs +120 -8
  511. package/phone-input/index.mjs +380 -493
  512. package/query-builder/index.mjs +1502 -2277
  513. package/radio/index.mjs +1 -4
  514. package/radio-group/index.mjs +126 -144
  515. package/ribbon/index.mjs +1158 -1497
  516. package/scheduler/index.mjs +3456 -6576
  517. package/scheduler-core/index.mjs +1 -197
  518. package/select/index.mjs +1 -4
  519. package/shell/index.mjs +98 -572
  520. package/signature-pad/index.mjs +180 -207
  521. package/splitter/index.mjs +1 -10
  522. package/swiper-core/index.mjs +1 -184
  523. package/tab-control/index.mjs +1 -6
  524. package/theming/index.mjs +229 -317
  525. package/tile-manager/index.mjs +746 -899
  526. package/timeline/index.mjs +476 -754
  527. package/timeline-core/index.mjs +1 -23
  528. package/timepicker/index.mjs +1 -9
  529. package/toggle-button/index.mjs +1 -5
  530. package/tree-select/index.mjs +467 -769
  531. package/treeview/index.mjs +1 -5
  532. package/badge/src/styles/badge.styles.d.ts +0 -2
  533. package/chunks/ac-C5mj7mOe.mjs +0 -5
  534. package/chunks/ad-DuKUeTXh.mjs +0 -5
  535. package/chunks/ae-BFJrplpe.mjs +0 -5
  536. package/chunks/af-BIQlNFtj.mjs +0 -5
  537. package/chunks/ag-B9GDO0Ip.mjs +0 -5
  538. package/chunks/ai-pifHTP5K.mjs +0 -5
  539. package/chunks/al-CWQ3OuN9.mjs +0 -5
  540. package/chunks/all-flags-BtYcfgjy.mjs +0 -8
  541. package/chunks/all-flags.generated-B7Rctzuq.mjs +0 -493
  542. package/chunks/am-Do56ciQl.mjs +0 -5
  543. package/chunks/ao-Ci_fen-O.mjs +0 -5
  544. package/chunks/ar-BEZTIgF7.mjs +0 -5
  545. package/chunks/as-B29efaG_.mjs +0 -5
  546. package/chunks/at-c7xv31cV.mjs +0 -5
  547. package/chunks/attributes-L3eKsbdy.mjs +0 -16
  548. package/chunks/au-DK4ZROf6.mjs +0 -5
  549. package/chunks/aw-eEmOo-kc.mjs +0 -5
  550. package/chunks/ax-CF1cgQbd.mjs +0 -5
  551. package/chunks/az-BXPec7pf.mjs +0 -5
  552. package/chunks/ba-EoocSiX0.mjs +0 -5
  553. package/chunks/bb-BomyOgY0.mjs +0 -5
  554. package/chunks/bd-C2Y9A316.mjs +0 -5
  555. package/chunks/be-DcE56El1.mjs +0 -5
  556. package/chunks/bf-g7XzTHJG.mjs +0 -5
  557. package/chunks/bg-DAHpwJAh.mjs +0 -5
  558. package/chunks/bh-BiHF8vqO.mjs +0 -5
  559. package/chunks/bi-DVAoOy2o.mjs +0 -5
  560. package/chunks/bj-CB6I0T1J.mjs +0 -5
  561. package/chunks/bl-DhUObXcB.mjs +0 -5
  562. package/chunks/bm-d77E6A-Q.mjs +0 -5
  563. package/chunks/bn-CG1_6Vfv.mjs +0 -5
  564. package/chunks/bo-ulcQ_Lws.mjs +0 -5
  565. package/chunks/bq-wOjRpmJJ.mjs +0 -5
  566. package/chunks/br-BwQAEpKL.mjs +0 -5
  567. package/chunks/bs-Cmq3uDf9.mjs +0 -5
  568. package/chunks/bt-Cik-3ebf.mjs +0 -5
  569. package/chunks/bw-ZUkpxAL1.mjs +0 -5
  570. package/chunks/by-Dh-5h5x1.mjs +0 -5
  571. package/chunks/bz-DB0s7-5N.mjs +0 -5
  572. package/chunks/ca-Coq88_mc.mjs +0 -5
  573. package/chunks/cc-1.generated-CkRogBGA.mjs +0 -4
  574. package/chunks/cc-20.generated-DMpg7apl.mjs +0 -4
  575. package/chunks/cc-211.generated-DSnuuKPM.mjs +0 -4
  576. package/chunks/cc-212.generated-Dcg3rrip.mjs +0 -4
  577. package/chunks/cc-213.generated-DPwtGlxT.mjs +0 -4
  578. package/chunks/cc-216.generated-Cgber7dX.mjs +0 -4
  579. package/chunks/cc-218.generated-CZGwxl9D.mjs +0 -4
  580. package/chunks/cc-220.generated-CKmXmpGe.mjs +0 -4
  581. package/chunks/cc-221.generated-BYzgBejl.mjs +0 -4
  582. package/chunks/cc-222.generated-YwuXcbvd.mjs +0 -4
  583. package/chunks/cc-223.generated-9iiHnni6.mjs +0 -4
  584. package/chunks/cc-224.generated-Okty02TJ.mjs +0 -4
  585. package/chunks/cc-225.generated-CYkDnG14.mjs +0 -4
  586. package/chunks/cc-226.generated-GT_rqbCO.mjs +0 -4
  587. package/chunks/cc-227.generated-B1VkrgoB.mjs +0 -4
  588. package/chunks/cc-228.generated-Bhck-C6Z.mjs +0 -4
  589. package/chunks/cc-229.generated-aAR4PP7n.mjs +0 -4
  590. package/chunks/cc-230.generated-CG5TxZtb.mjs +0 -4
  591. package/chunks/cc-231.generated-BjYHl_BP.mjs +0 -4
  592. package/chunks/cc-232.generated-CFDyaA7o.mjs +0 -4
  593. package/chunks/cc-233.generated-ChwvrW0E.mjs +0 -4
  594. package/chunks/cc-234.generated-BIpIojaD.mjs +0 -4
  595. package/chunks/cc-235.generated-Dklizfb9.mjs +0 -4
  596. package/chunks/cc-236.generated-EJZlz23v.mjs +0 -4
  597. package/chunks/cc-237.generated-DwOapZWZ.mjs +0 -4
  598. package/chunks/cc-238.generated-BkCWtGDY.mjs +0 -4
  599. package/chunks/cc-239.generated-S_foXUit.mjs +0 -4
  600. package/chunks/cc-240.generated-CtKfcEWk.mjs +0 -4
  601. package/chunks/cc-241.generated-aAUw2QzS.mjs +0 -4
  602. package/chunks/cc-242.generated-D5jMR3KR.mjs +0 -4
  603. package/chunks/cc-243.generated-Bk5dwdUf.mjs +0 -4
  604. package/chunks/cc-244.generated-DywGvISM.mjs +0 -4
  605. package/chunks/cc-245.generated-Bm7wVXl5.mjs +0 -4
  606. package/chunks/cc-246.generated-CFSezynW.mjs +0 -4
  607. package/chunks/cc-247.generated-DKXGq8p1.mjs +0 -4
  608. package/chunks/cc-248.generated-CnI_kkbi.mjs +0 -4
  609. package/chunks/cc-249.generated-Zenj8WBl.mjs +0 -4
  610. package/chunks/cc-250.generated-140A9gFx.mjs +0 -4
  611. package/chunks/cc-251.generated-BYtVzI1w.mjs +0 -4
  612. package/chunks/cc-252.generated-C9By3_Ih.mjs +0 -4
  613. package/chunks/cc-253.generated-DZIADgzo.mjs +0 -4
  614. package/chunks/cc-254.generated-Bkb5VbuX.mjs +0 -4
  615. package/chunks/cc-255.generated-U_k4UlnG.mjs +0 -4
  616. package/chunks/cc-256.generated-BBGMRLJL.mjs +0 -4
  617. package/chunks/cc-257.generated-2Jiadm-X.mjs +0 -4
  618. package/chunks/cc-258.generated-CSHZFQtI.mjs +0 -4
  619. package/chunks/cc-260.generated-CWgOLjv4.mjs +0 -4
  620. package/chunks/cc-261.generated-DzpnYK1v.mjs +0 -4
  621. package/chunks/cc-262.generated-uZY0cJ08.mjs +0 -4
  622. package/chunks/cc-263.generated-D2QbPttm.mjs +0 -4
  623. package/chunks/cc-264.generated-DhUT_yRg.mjs +0 -4
  624. package/chunks/cc-265.generated-BKIU4vGv.mjs +0 -4
  625. package/chunks/cc-266.generated-O_zgqaDo.mjs +0 -4
  626. package/chunks/cc-267.generated-DpLBLCK1.mjs +0 -4
  627. package/chunks/cc-268.generated-B9Y4LS_4.mjs +0 -4
  628. package/chunks/cc-269.generated-DPQ0A8VW.mjs +0 -4
  629. package/chunks/cc-27.generated-BxeFhsuD.mjs +0 -4
  630. package/chunks/cc-290.generated-DGy2isg7.mjs +0 -4
  631. package/chunks/cc-291.generated-C4LSfffl.mjs +0 -4
  632. package/chunks/cc-297.generated-4k_1JOUj.mjs +0 -4
  633. package/chunks/cc-298.generated-A2xB0PKR.mjs +0 -4
  634. package/chunks/cc-299.generated-BwDC9B1N.mjs +0 -4
  635. package/chunks/cc-30.generated-JhyYglqU.mjs +0 -4
  636. package/chunks/cc-31.generated-5GOCJzfN.mjs +0 -4
  637. package/chunks/cc-32.generated-CpVvykA2.mjs +0 -4
  638. package/chunks/cc-33.generated-BDzHxbR_.mjs +0 -4
  639. package/chunks/cc-34.generated-P3nQfhBw.mjs +0 -4
  640. package/chunks/cc-350.generated-BGl8hYsP.mjs +0 -4
  641. package/chunks/cc-351.generated-pJBouwSG.mjs +0 -4
  642. package/chunks/cc-352.generated-8_NbdAx6.mjs +0 -4
  643. package/chunks/cc-353.generated-Cfz2tBdq.mjs +0 -4
  644. package/chunks/cc-354.generated-CEgaa6qB.mjs +0 -4
  645. package/chunks/cc-355.generated-DGZ-kJ0i.mjs +0 -4
  646. package/chunks/cc-356.generated-BZqLs86A.mjs +0 -4
  647. package/chunks/cc-357.generated-CfCB5cHL.mjs +0 -4
  648. package/chunks/cc-358.generated-wL2JzNDk.mjs +0 -4
  649. package/chunks/cc-359.generated-BxJe3xGt.mjs +0 -4
  650. package/chunks/cc-36.generated-CJdA4Rvi.mjs +0 -4
  651. package/chunks/cc-370.generated-B6SpL74q.mjs +0 -4
  652. package/chunks/cc-371.generated-Cx6lrGG9.mjs +0 -4
  653. package/chunks/cc-372.generated-Ckc30SHu.mjs +0 -4
  654. package/chunks/cc-373.generated-BK0ypz55.mjs +0 -4
  655. package/chunks/cc-374.generated-B51ogwAh.mjs +0 -4
  656. package/chunks/cc-375.generated-CMbmbMav.mjs +0 -4
  657. package/chunks/cc-376.generated-DZngLeqA.mjs +0 -4
  658. package/chunks/cc-377.generated-BYuCOf7K.mjs +0 -4
  659. package/chunks/cc-378.generated-CuNlUjOw.mjs +0 -4
  660. package/chunks/cc-380.generated-A2e4FwA4.mjs +0 -4
  661. package/chunks/cc-381.generated-Cvwf7aDo.mjs +0 -4
  662. package/chunks/cc-382.generated-B-x4jIQ_.mjs +0 -4
  663. package/chunks/cc-383.generated-B6E63WN4.mjs +0 -4
  664. package/chunks/cc-385.generated-CbYlsCsW.mjs +0 -4
  665. package/chunks/cc-386.generated-BUSyzthQ.mjs +0 -4
  666. package/chunks/cc-387.generated-IhkhnsGu.mjs +0 -4
  667. package/chunks/cc-389.generated-SNuHIdqu.mjs +0 -4
  668. package/chunks/cc-39.generated-BGZK1sVL.mjs +0 -4
  669. package/chunks/cc-40.generated-Bo8WnsNc.mjs +0 -4
  670. package/chunks/cc-41.generated-CG0098r3.mjs +0 -4
  671. package/chunks/cc-420.generated-C59jh2M8.mjs +0 -4
  672. package/chunks/cc-421.generated-BhxO-pTK.mjs +0 -4
  673. package/chunks/cc-423.generated-B4UJk2xr.mjs +0 -4
  674. package/chunks/cc-43.generated-BIdhhcvA.mjs +0 -4
  675. package/chunks/cc-44.generated-BfeK0wEP.mjs +0 -4
  676. package/chunks/cc-45.generated-BEJCwF4o.mjs +0 -4
  677. package/chunks/cc-46.generated-DeEMtTcI.mjs +0 -4
  678. package/chunks/cc-47.generated-DQy2Xk_0.mjs +0 -4
  679. package/chunks/cc-48.generated-C4yA7R1Q.mjs +0 -4
  680. package/chunks/cc-49.generated-a02djmT4.mjs +0 -4
  681. package/chunks/cc-500.generated-glAZ4AUe.mjs +0 -4
  682. package/chunks/cc-501.generated-D-GCAbI8.mjs +0 -4
  683. package/chunks/cc-502.generated-Co-n0usI.mjs +0 -4
  684. package/chunks/cc-503.generated-BM58qC_M.mjs +0 -4
  685. package/chunks/cc-504.generated-cTtfXvjR.mjs +0 -4
  686. package/chunks/cc-505.generated-DLSKmmzY.mjs +0 -4
  687. package/chunks/cc-506.generated-BMyMgwgZ.mjs +0 -4
  688. package/chunks/cc-507.generated-DWOdIJMd.mjs +0 -4
  689. package/chunks/cc-508.generated-DN3D0FwY.mjs +0 -4
  690. package/chunks/cc-509.generated-D-jyniz5.mjs +0 -4
  691. package/chunks/cc-51.generated-Bjy1G3kG.mjs +0 -4
  692. package/chunks/cc-52.generated-CDeO-q1n.mjs +0 -4
  693. package/chunks/cc-53.generated-Bg_ETBvx.mjs +0 -4
  694. package/chunks/cc-54.generated-BCfSFUZP.mjs +0 -4
  695. package/chunks/cc-55.generated-C1iLoSl1.mjs +0 -4
  696. package/chunks/cc-56.generated-ChgDDlud.mjs +0 -4
  697. package/chunks/cc-57.generated-qfDFimii.mjs +0 -4
  698. package/chunks/cc-58.generated-Cl6DzTam.mjs +0 -4
  699. package/chunks/cc-590.generated-DhG2cP7S.mjs +0 -4
  700. package/chunks/cc-591.generated-CjxsaggL.mjs +0 -4
  701. package/chunks/cc-592.generated-DnF2AtPs.mjs +0 -4
  702. package/chunks/cc-593.generated-J4b4KU_z.mjs +0 -4
  703. package/chunks/cc-594.generated-BDqHqvBX.mjs +0 -4
  704. package/chunks/cc-595.generated-Di23-NWq.mjs +0 -4
  705. package/chunks/cc-596.generated-B92oLPvz.mjs +0 -4
  706. package/chunks/cc-597.generated-pdvIpWWG.mjs +0 -4
  707. package/chunks/cc-598.generated-C9i6NuuS.mjs +0 -4
  708. package/chunks/cc-599.generated-Cot_Tjya.mjs +0 -4
  709. package/chunks/cc-60.generated-Dt21L5ED.mjs +0 -4
  710. package/chunks/cc-61.generated-CsF19uOz.mjs +0 -4
  711. package/chunks/cc-62.generated-CXe9l8jN.mjs +0 -4
  712. package/chunks/cc-63.generated-CyxqKEMz.mjs +0 -4
  713. package/chunks/cc-64.generated-B1U2VUWE.mjs +0 -4
  714. package/chunks/cc-65.generated-BqB9SL91.mjs +0 -4
  715. package/chunks/cc-66.generated-DSW4cKRJ.mjs +0 -4
  716. package/chunks/cc-670.generated-B5lMBLIA.mjs +0 -4
  717. package/chunks/cc-672.generated-rtLnRViR.mjs +0 -4
  718. package/chunks/cc-673.generated-CCfKxiHb.mjs +0 -4
  719. package/chunks/cc-674.generated-DqEenJAu.mjs +0 -4
  720. package/chunks/cc-675.generated-CDZsNVmA.mjs +0 -4
  721. package/chunks/cc-676.generated-CtuzuSpR.mjs +0 -4
  722. package/chunks/cc-677.generated-B6Vdcheb.mjs +0 -4
  723. package/chunks/cc-678.generated-Bu-wQLCv.mjs +0 -4
  724. package/chunks/cc-679.generated-C_vQNfa9.mjs +0 -4
  725. package/chunks/cc-680.generated-DgD0sTpR.mjs +0 -4
  726. package/chunks/cc-681.generated-CgCDLpTf.mjs +0 -4
  727. package/chunks/cc-682.generated-BBdb0LCA.mjs +0 -4
  728. package/chunks/cc-683.generated-BYq9qGSN.mjs +0 -4
  729. package/chunks/cc-685.generated-BeVt0xOD.mjs +0 -4
  730. package/chunks/cc-686.generated-DSuHUyGC.mjs +0 -4
  731. package/chunks/cc-687.generated-CAYCkQGn.mjs +0 -4
  732. package/chunks/cc-688.generated-BxoYuhyI.mjs +0 -4
  733. package/chunks/cc-689.generated-D1LJPuEc.mjs +0 -4
  734. package/chunks/cc-690.generated-wBJlIR_d.mjs +0 -4
  735. package/chunks/cc-691.generated-D3313DJE.mjs +0 -4
  736. package/chunks/cc-692.generated-BjRLK6LH.mjs +0 -4
  737. package/chunks/cc-7.generated-Be8Per3z.mjs +0 -4
  738. package/chunks/cc-81.generated-Bfr_1Ik4.mjs +0 -4
  739. package/chunks/cc-82.generated-CXvQgAj0.mjs +0 -4
  740. package/chunks/cc-84.generated-DsMrssxQ.mjs +0 -4
  741. package/chunks/cc-850.generated-B6dMNsJB.mjs +0 -4
  742. package/chunks/cc-852.generated-DoLs1jmz.mjs +0 -4
  743. package/chunks/cc-853.generated-C9J4qDF6.mjs +0 -4
  744. package/chunks/cc-855.generated-rriF89dH.mjs +0 -4
  745. package/chunks/cc-856.generated-DWMBTBFS.mjs +0 -4
  746. package/chunks/cc-86.generated-C8Ob3yVb.mjs +0 -4
  747. package/chunks/cc-880.generated-gteZx8SL.mjs +0 -4
  748. package/chunks/cc-886.generated-QyIDP1_q.mjs +0 -4
  749. package/chunks/cc-90.generated-DSXR50SV.mjs +0 -4
  750. package/chunks/cc-91.generated-C_cDq0Xp.mjs +0 -4
  751. package/chunks/cc-92.generated-Cxd7f_QX.mjs +0 -4
  752. package/chunks/cc-93.generated-Cyqo0e91.mjs +0 -4
  753. package/chunks/cc-94.generated-EsnmfbnH.mjs +0 -4
  754. package/chunks/cc-95.generated-D_8p55mp.mjs +0 -4
  755. package/chunks/cc-960.generated-DletKApH.mjs +0 -4
  756. package/chunks/cc-961.generated-CXVHoWFk.mjs +0 -4
  757. package/chunks/cc-962.generated-B7EPSakT.mjs +0 -4
  758. package/chunks/cc-963.generated-D71Y75mr.mjs +0 -4
  759. package/chunks/cc-964.generated-B8-RYrVD.mjs +0 -4
  760. package/chunks/cc-965.generated-tesjPkaP.mjs +0 -4
  761. package/chunks/cc-966.generated-CkCCmcR2.mjs +0 -4
  762. package/chunks/cc-967.generated-Bz1kG3rR.mjs +0 -4
  763. package/chunks/cc-968.generated-B8izDjLu.mjs +0 -4
  764. package/chunks/cc-970.generated-CKTkdIET.mjs +0 -4
  765. package/chunks/cc-971.generated-Wzj17K10.mjs +0 -4
  766. package/chunks/cc-972.generated-CJO02ZmJ.mjs +0 -4
  767. package/chunks/cc-973.generated-CL9ZE2Of.mjs +0 -4
  768. package/chunks/cc-974.generated-ZkYqGi9L.mjs +0 -4
  769. package/chunks/cc-975.generated-DP2Teiuc.mjs +0 -4
  770. package/chunks/cc-976.generated-GGNMRuFQ.mjs +0 -4
  771. package/chunks/cc-977.generated-KwvwlHUw.mjs +0 -4
  772. package/chunks/cc-98.generated-DW-Wj2k5.mjs +0 -4
  773. package/chunks/cc-992.generated-NRREmly7.mjs +0 -4
  774. package/chunks/cc-993.generated-BNlup4k-.mjs +0 -4
  775. package/chunks/cc-994.generated-BUD4e8ho.mjs +0 -4
  776. package/chunks/cc-995.generated-8P4TnVbi.mjs +0 -4
  777. package/chunks/cc-996.generated-CKCe7foO.mjs +0 -4
  778. package/chunks/cc-998.generated-CsAmnJYd.mjs +0 -4
  779. package/chunks/cc-BZdCRpNT.mjs +0 -5
  780. package/chunks/cd-9O28tBfy.mjs +0 -5
  781. package/chunks/cf-BdhmyWlv.mjs +0 -5
  782. package/chunks/cg-C-Qu4NMU.mjs +0 -5
  783. package/chunks/ch-A1RQVYLO.mjs +0 -5
  784. package/chunks/ci-DZY7fgO7.mjs +0 -5
  785. package/chunks/ck-D-2C9a72.mjs +0 -5
  786. package/chunks/cl-3HNgrmyT.mjs +0 -5
  787. package/chunks/cm-DJ4mixO9.mjs +0 -5
  788. package/chunks/cn-Cw6Qlqzd.mjs +0 -5
  789. package/chunks/co-B6rvgyRo.mjs +0 -5
  790. package/chunks/color-mode-warning-71FmlzWX.mjs +0 -13
  791. package/chunks/cr-jJzoBrc7.mjs +0 -5
  792. package/chunks/cu-BRzz3vV_.mjs +0 -5
  793. package/chunks/cv-BzZilEMp.mjs +0 -5
  794. package/chunks/cw-5PnLdxCt.mjs +0 -5
  795. package/chunks/cx-C0sAUlCS.mjs +0 -5
  796. package/chunks/cy-DeC9FFGV.mjs +0 -5
  797. package/chunks/cz-C3rh8aUO.mjs +0 -5
  798. package/chunks/de-Q2c2XZ_v.mjs +0 -5
  799. package/chunks/dj-DWAmmYDE.mjs +0 -5
  800. package/chunks/dk-FTaySAJe.mjs +0 -5
  801. package/chunks/dm-DgSJioJq.mjs +0 -5
  802. package/chunks/do-C549n3on.mjs +0 -5
  803. package/chunks/dz-CPgKocaY.mjs +0 -5
  804. package/chunks/ec-DkC-cDOb.mjs +0 -5
  805. package/chunks/ee-BQmFOHXA.mjs +0 -5
  806. package/chunks/eg-DMVarwMR.mjs +0 -5
  807. package/chunks/eh--oxmiCXh.mjs +0 -5
  808. package/chunks/er-DjB_DDiD.mjs +0 -5
  809. package/chunks/error-text-B45eDAt1.mjs +0 -17
  810. package/chunks/es-D__9e8wL.mjs +0 -5
  811. package/chunks/et-C3reU7Z2.mjs +0 -5
  812. package/chunks/fi-C1K0Kh4o.mjs +0 -5
  813. package/chunks/fj-Cs7ECsE1.mjs +0 -5
  814. package/chunks/fk-DYEJDgjs.mjs +0 -5
  815. package/chunks/fm-C7r_OFnj.mjs +0 -5
  816. package/chunks/fo-DsT-wW0Q.mjs +0 -5
  817. package/chunks/focus-restore-DxuP1Oe2.mjs +0 -94
  818. package/chunks/focus-trap-DTOLJ5bb.mjs +0 -121
  819. package/chunks/form-associated-BR-fUvZ1.mjs +0 -43
  820. package/chunks/form-check.styles-DqvBnspm.mjs +0 -172
  821. package/chunks/form-control.styles-C3j87Sn3.mjs +0 -171
  822. package/chunks/fr-oy8Uo1bo.mjs +0 -5
  823. package/chunks/ga-DESElBvk.mjs +0 -5
  824. package/chunks/gb-D5r9QI-K.mjs +0 -5
  825. package/chunks/gd-BuRviRXt.mjs +0 -5
  826. package/chunks/ge-BpGz5nUs.mjs +0 -5
  827. package/chunks/gf-BQgWe_yS.mjs +0 -5
  828. package/chunks/gg-BLNQrqls.mjs +0 -5
  829. package/chunks/gh-BzVF8tSr.mjs +0 -5
  830. package/chunks/gi-DfKOJdRQ.mjs +0 -5
  831. package/chunks/gl-C558Toee.mjs +0 -5
  832. package/chunks/gm-DNdinxnD.mjs +0 -5
  833. package/chunks/gn-DwEBOZ3-.mjs +0 -5
  834. package/chunks/gp-oy8Uo1bo.mjs +0 -5
  835. package/chunks/gq-BSkOSQWe.mjs +0 -5
  836. package/chunks/gr-CTJJbGEC.mjs +0 -5
  837. package/chunks/gt-D4BwgazI.mjs +0 -5
  838. package/chunks/gu-CQpMzEB_.mjs +0 -5
  839. package/chunks/gw-DxZDYMtv.mjs +0 -5
  840. package/chunks/gy-BWZVUGl8.mjs +0 -5
  841. package/chunks/hk-BHxjZMf4.mjs +0 -5
  842. package/chunks/hn-BEVgQ0QQ.mjs +0 -5
  843. package/chunks/host-aria-WSGs7SPQ.mjs +0 -152
  844. package/chunks/hr-BpVWlAoF.mjs +0 -5
  845. package/chunks/ht-CfzU-07O.mjs +0 -5
  846. package/chunks/hu-5Yy5WRy5.mjs +0 -5
  847. package/chunks/id-BfVg05v7.mjs +0 -5
  848. package/chunks/ie-DvpkJVl8.mjs +0 -5
  849. package/chunks/il-DDofIlI0.mjs +0 -5
  850. package/chunks/im-CW65ei4K.mjs +0 -5
  851. package/chunks/in-i60GVnCJ.mjs +0 -5
  852. package/chunks/inert-regions-DXCnn1LN.mjs +0 -48
  853. package/chunks/install-light-styles-DbCAGFOC.mjs +0 -209
  854. package/chunks/invalid-feedback.styles-he0JYrJm.mjs +0 -11
  855. package/chunks/io-Diyu5soM.mjs +0 -5
  856. package/chunks/iq-B74bFnMJ.mjs +0 -5
  857. package/chunks/ir-BWGwwJq9.mjs +0 -5
  858. package/chunks/is-CK4oIk76.mjs +0 -5
  859. package/chunks/it-Y7rj3hMY.mjs +0 -5
  860. package/chunks/je-DMoX3evy.mjs +0 -5
  861. package/chunks/jm-DZUStFkR.mjs +0 -5
  862. package/chunks/jo-DVQ6-ojE.mjs +0 -5
  863. package/chunks/jp-Y5R0MQfN.mjs +0 -5
  864. package/chunks/ke-CGq6XP7w.mjs +0 -5
  865. package/chunks/kg-DAoQwbeR.mjs +0 -5
  866. package/chunks/kh-kMI7MghQ.mjs +0 -5
  867. package/chunks/ki-Cu7fdPLn.mjs +0 -5
  868. package/chunks/km-CM7URKBO.mjs +0 -5
  869. package/chunks/kn-DBVGPz8w.mjs +0 -5
  870. package/chunks/kp-D3Ea15h2.mjs +0 -5
  871. package/chunks/kr-DKM0Jy7P.mjs +0 -5
  872. package/chunks/kw-B7J-nbX9.mjs +0 -5
  873. package/chunks/ky-p4ckNq_W.mjs +0 -5
  874. package/chunks/kz-D936idA9.mjs +0 -5
  875. package/chunks/la-CUKVKbGp.mjs +0 -5
  876. package/chunks/lb-CzUWz90e.mjs +0 -5
  877. package/chunks/lc-DuHqL5FW.mjs +0 -5
  878. package/chunks/li-DgJDzs_F.mjs +0 -5
  879. package/chunks/live-announcer-Bi0orG4n.mjs +0 -58
  880. package/chunks/lk-3zaagaQ9.mjs +0 -5
  881. package/chunks/lr-B6Vn6C_9.mjs +0 -5
  882. package/chunks/ls-DrI0Fh7Y.mjs +0 -5
  883. package/chunks/lt-PBck9Sgv.mjs +0 -5
  884. package/chunks/lu-B_xY22fB.mjs +0 -5
  885. package/chunks/lv-D16yLm3v.mjs +0 -5
  886. package/chunks/ly-C1adX4Zr.mjs +0 -5
  887. package/chunks/ma-B7rH3zoW.mjs +0 -5
  888. package/chunks/mc-Xqh4jc6i.mjs +0 -5
  889. package/chunks/md-wW4zZzbN.mjs +0 -5
  890. package/chunks/me-DCy_XMtC.mjs +0 -5
  891. package/chunks/metadata-loaders.generated-Bu_7pFwU.mjs +0 -250
  892. package/chunks/mf-DP_tIA6i.mjs +0 -5
  893. package/chunks/mg-InflpHX7.mjs +0 -5
  894. package/chunks/mh-VKf434Ww.mjs +0 -5
  895. package/chunks/mk-C64VS9I-.mjs +0 -5
  896. package/chunks/ml-BjOQYgou.mjs +0 -5
  897. package/chunks/mm-DgKeX7WQ.mjs +0 -5
  898. package/chunks/mn-BBubqCvd.mjs +0 -5
  899. package/chunks/mo-BtY-l2cE.mjs +0 -5
  900. package/chunks/mp-DlkcjH8B.mjs +0 -5
  901. package/chunks/mp-calendar.element-BIHS9SZZ.mjs +0 -433
  902. package/chunks/mp-checkbox-zV83gILn.mjs +0 -321
  903. package/chunks/mp-datatable-CEpSxlkd.mjs +0 -2541
  904. package/chunks/mp-datetime-picker.element-Cxu5-qRE.mjs +0 -527
  905. package/chunks/mp-input-group-CQ55efCq.mjs +0 -206
  906. package/chunks/mp-pagination-hGy4dL7p.mjs +0 -334
  907. package/chunks/mp-radio-BhRVNdKp.mjs +0 -304
  908. package/chunks/mp-select-CgqYFvUj.mjs +0 -537
  909. package/chunks/mp-splitter-DLehrw3Y.mjs +0 -678
  910. package/chunks/mp-tab-page-CaCzX1ym.mjs +0 -415
  911. package/chunks/mp-timepicker.element-BiB9lkgc.mjs +0 -452
  912. package/chunks/mp-toggle-button-CaS9uYLE.mjs +0 -631
  913. package/chunks/mp-treeview-CaMTDrvY.mjs +0 -497
  914. package/chunks/mq-BK7HwZSV.mjs +0 -5
  915. package/chunks/mr-C0S-6dqR.mjs +0 -5
  916. package/chunks/ms-DpwSSTE-.mjs +0 -5
  917. package/chunks/mt-B1ie-04J.mjs +0 -5
  918. package/chunks/mu-DTA25SEP.mjs +0 -5
  919. package/chunks/mv-DW49amZl.mjs +0 -5
  920. package/chunks/mw-V-bbqGPN.mjs +0 -5
  921. package/chunks/mx-CtTJw0SX.mjs +0 -5
  922. package/chunks/my-DThIQKCq.mjs +0 -5
  923. package/chunks/mz-Btgk8Li_.mjs +0 -5
  924. package/chunks/na-D08-xA7q.mjs +0 -5
  925. package/chunks/nc-hb1s2KqL.mjs +0 -5
  926. package/chunks/ne-B5vEjeNk.mjs +0 -5
  927. package/chunks/nf-DDFUS5Ht.mjs +0 -5
  928. package/chunks/ng-DBhdmXcS.mjs +0 -5
  929. package/chunks/ni-_x4RKVT8.mjs +0 -5
  930. package/chunks/nl-DBxW_qVy.mjs +0 -5
  931. package/chunks/no-LyFCuMlU.mjs +0 -5
  932. package/chunks/np-DEvIQAys.mjs +0 -5
  933. package/chunks/nr-CuzElmFx.mjs +0 -5
  934. package/chunks/nu-C6vVHkwP.mjs +0 -5
  935. package/chunks/nz-BkhNYKha.mjs +0 -5
  936. package/chunks/om-BsI3oHrd.mjs +0 -5
  937. package/chunks/overlay-controller-BHDagokg.mjs +0 -389
  938. package/chunks/pa-CtNQVaHE.mjs +0 -5
  939. package/chunks/pe-vcSV6ioD.mjs +0 -5
  940. package/chunks/pf-BOetDvnB.mjs +0 -5
  941. package/chunks/pg-BDqa4YXR.mjs +0 -5
  942. package/chunks/ph-BlAaFzEE.mjs +0 -5
  943. package/chunks/pk-2auAZIDh.mjs +0 -5
  944. package/chunks/pl-W6WZfuq9.mjs +0 -5
  945. package/chunks/pm-oy8Uo1bo.mjs +0 -5
  946. package/chunks/pr-B3p98s5J.mjs +0 -5
  947. package/chunks/ps-RET8kTuo.mjs +0 -5
  948. package/chunks/pt-Z2yfZJAz.mjs +0 -5
  949. package/chunks/pw-Dm4Y4noS.mjs +0 -5
  950. package/chunks/py-1pKD7w9y.mjs +0 -5
  951. package/chunks/qa-DpK5_Q-a.mjs +0 -5
  952. package/chunks/re-oy8Uo1bo.mjs +0 -5
  953. package/chunks/resource.service--lqLwEqk.mjs +0 -1008
  954. package/chunks/ro-VYde6hop.mjs +0 -5
  955. package/chunks/roving-focus-CrL9982a.mjs +0 -129
  956. package/chunks/rs-Dj7Wicw9.mjs +0 -5
  957. package/chunks/ru-CkWEkuTy.mjs +0 -5
  958. package/chunks/rw-DjRHPIJ_.mjs +0 -5
  959. package/chunks/sa-BBdaW-_G.mjs +0 -5
  960. package/chunks/sb-nNr9S0gd.mjs +0 -5
  961. package/chunks/sc-DcbShXuj.mjs +0 -5
  962. package/chunks/scale-B0bRUdc7.mjs +0 -91
  963. package/chunks/sd-B1jbITc6.mjs +0 -5
  964. package/chunks/se-B-CIMrxu.mjs +0 -5
  965. package/chunks/sg-BIR0OErL.mjs +0 -5
  966. package/chunks/sh-BR9c9S8h.mjs +0 -5
  967. package/chunks/si-B5HzM3z8.mjs +0 -5
  968. package/chunks/sj-LyFCuMlU.mjs +0 -5
  969. package/chunks/sk-7ZEImIK5.mjs +0 -5
  970. package/chunks/sl-DuhHodH6.mjs +0 -5
  971. package/chunks/sm-BrM5UOOM.mjs +0 -5
  972. package/chunks/sn-jptojE_-.mjs +0 -5
  973. package/chunks/so-auBJUCeE.mjs +0 -5
  974. package/chunks/sr-DqWWIG11.mjs +0 -5
  975. package/chunks/ss-BcJF0rd5.mjs +0 -5
  976. package/chunks/st-D65H7-IP.mjs +0 -5
  977. package/chunks/sv-D8EgdK15.mjs +0 -5
  978. package/chunks/sx-Cmd53qC5.mjs +0 -5
  979. package/chunks/sy-LL8b7cLC.mjs +0 -5
  980. package/chunks/sz-D-qYq589.mjs +0 -5
  981. package/chunks/tc-AIE9LFuJ.mjs +0 -5
  982. package/chunks/td-C5AP4EiN.mjs +0 -5
  983. package/chunks/tg-Dt9WAF7L.mjs +0 -5
  984. package/chunks/th-DyfDlw-o.mjs +0 -5
  985. package/chunks/tj-U7xsGAAg.mjs +0 -5
  986. package/chunks/tk-BWjKruB4.mjs +0 -5
  987. package/chunks/tl-CcXsJf98.mjs +0 -5
  988. package/chunks/tm-DTASSSkf.mjs +0 -5
  989. package/chunks/tn-DttZvPz0.mjs +0 -5
  990. package/chunks/to-ChsX5Z4Q.mjs +0 -5
  991. package/chunks/tr-C2CRhai0.mjs +0 -5
  992. package/chunks/tt-DPpP-HbL.mjs +0 -5
  993. package/chunks/tv-CiTLokZi.mjs +0 -5
  994. package/chunks/tw--J7h_fxf.mjs +0 -5
  995. package/chunks/tz-qS3mKSkx.mjs +0 -5
  996. package/chunks/ua-DiZstskV.mjs +0 -5
  997. package/chunks/ug-BxVGZUby.mjs +0 -5
  998. package/chunks/us-BvyIwpav.mjs +0 -5
  999. package/chunks/uy-Dsr4HSrP.mjs +0 -5
  1000. package/chunks/uz-D25kmTp8.mjs +0 -5
  1001. package/chunks/va-hG27DTVe.mjs +0 -5
  1002. package/chunks/validation-ChktfuxI.mjs +0 -137
  1003. package/chunks/vc-7r46jyD5.mjs +0 -5
  1004. package/chunks/ve-R8UkJHAj.mjs +0 -5
  1005. package/chunks/vg-BLSugSwb.mjs +0 -5
  1006. package/chunks/vi-DSyJsPSD.mjs +0 -5
  1007. package/chunks/view-window-DGvFiDnW.mjs +0 -263
  1008. package/chunks/vn-BwGpRkWs.mjs +0 -5
  1009. package/chunks/vu-aFyzktTY.mjs +0 -5
  1010. package/chunks/wf-Ca9RrMIP.mjs +0 -5
  1011. package/chunks/ws-DphODgja.mjs +0 -5
  1012. package/chunks/xk-sugAykhS.mjs +0 -5
  1013. package/chunks/ye-D2MZq-93.mjs +0 -5
  1014. package/chunks/yt-tAecYEDU.mjs +0 -5
  1015. package/chunks/za-DadXcfMa.mjs +0 -5
  1016. package/chunks/zm--rp7ufAJ.mjs +0 -5
  1017. package/chunks/zw-BG5nNe2I.mjs +0 -5
  1018. package/query-builder/src/mp-query-builder.element.template.d.ts +0 -2
  1019. package/query-builder/src/mp-query-group.element.template.d.ts +0 -2
  1020. package/query-builder/src/mp-query-subquery.element.template.d.ts +0 -2
  1021. package/tree-select/src/styles/tree-select.styles.d.ts +0 -2
  1022. package/treeview/src/styles/treeview.styles.d.ts +0 -2
@@ -1,2541 +0,0 @@
1
- import { unsafeCSS as E, LitElement as M, nothing as u, render as v } from "lit";
2
- import { O as L } from "./overlay-controller-BHDagokg.mjs";
3
- import { s as I, i as q } from "./install-light-styles-DbCAGFOC.mjs";
4
- import { L as z } from "./live-announcer-Bi0orG4n.mjs";
5
- import { a as K, F as A } from "./focus-restore-DxuP1Oe2.mjs";
6
- import { H as U } from "./host-aria-WSGs7SPQ.mjs";
7
- import { repeat as x } from "lit/directives/repeat.js";
8
- import { live as O } from "lit/directives/live.js";
9
- import { classMap as w } 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 T = {
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
- }, D = {
21
- eq: "=",
22
- neq: "≠",
23
- lt: "<",
24
- lte: "≤",
25
- gt: ">",
26
- gte: "≥"
27
- }, N = ["eq", "neq", "lt", "lte", "gt", "gte"], W = {
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
- selectRow: (n) => `Select row ${n}`,
37
- selectRowNamed: (n) => `Select ${n}`,
38
- filterColumn: (n) => `Filter ${n}`,
39
- filterColumnActive: (n, e) => e ? `Filter ${n}, filtered by ${e}` : `Filter ${n}, filtered`,
40
- filterClear: (n) => `Clear the filter on ${n}`,
41
- filterSearch: "Search values",
42
- filterInvert: "Exclude the selected values",
43
- filterGroup: (n) => `Values of ${n}`,
44
- filterHasMore: "More values exist — refine the search to see them",
45
- filterNoValues: "No values available",
46
- filterValue(n) {
47
- return n == null ? this.filterNone : n === "" ? this.filterEmpty : n === !0 ? this.filterTrue : n === !1 ? this.filterFalse : n instanceof Date ? n.toLocaleDateString() : String(n);
48
- },
49
- filterNone: "(none)",
50
- filterEmpty: "(empty)",
51
- filterTrue: "Yes",
52
- filterFalse: "No",
53
- announceFilter: (n, e) => e === 0 ? `Filter cleared on ${n}` : e === 1 ? `1 value selected in ${n}` : `${e} values selected in ${n}`,
54
- filterOperator: "Comparison",
55
- filterOperand: "Value to compare with",
56
- filterOperatorLabel: (n) => T[n],
57
- announceComparisonFilter: (n, e, t) => t === "" ? `Filter cleared on ${n}` : `${n} ${e} ${t}`,
58
- announceSorted: (n, e) => e === "none" ? `Sorting removed from ${n}` : `Sorted by ${n}, ${e}`,
59
- announcePage: (n, e) => `Page ${n} of ${e}`,
60
- announceSelection: (n) => n === 1 ? "1 row selected" : `${n} rows selected`,
61
- announceLoaded: (n) => n === 1 ? "Loaded 1 row" : `Loaded ${n} rows`,
62
- rangeIncomplete: "Range not selected: some rows in it have not loaded yet"
63
- }, B = E(`@charset "UTF-8";
64
- mp-datatable {
65
- display: block;
66
- width: 100%;
67
- position: relative;
68
- --mp-datatable-border-color: var(--bs-border-color, rgba(0, 0, 0, 0.125));
69
- --mp-datatable-row-hover-bg: var(--bs-table-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));
70
- --mp-datatable-row-selected-bg: var(--bs-list-group-active-bg, var(--bs-primary, #0d6efd));
71
- --mp-datatable-row-selected-color: var(--bs-list-group-active-color, #fff);
72
- --mp-datatable-cut-opacity: 0.55;
73
- --mp-datatable-resize-handle-color: var(--bs-primary, #0d6efd);
74
- }
75
-
76
- [data-mps=datatable] {
77
- box-sizing: border-box;
78
- }
79
-
80
- .datatable-shell[data-mps=datatable] {
81
- display: flex;
82
- flex-direction: column;
83
- width: 100%;
84
- height: 100%;
85
- }
86
-
87
- .datatable-scroll[data-mps=datatable] {
88
- overflow: auto;
89
- flex: 1 1 auto;
90
- }
91
-
92
- .datatable-scroll.datatable-virtual[data-mps=datatable] {
93
- max-height: var(--mp-datatable-virtual-max-height, 480px);
94
- }
95
- .datatable-scroll.datatable-virtual[data-mps=datatable] thead[data-mps=datatable] th[data-mps=datatable] {
96
- position: sticky;
97
- top: 0;
98
- z-index: 1;
99
- background-color: var(--bs-body-bg, #fff);
100
- }
101
- .datatable-scroll.datatable-virtual[data-mps=datatable] thead[data-mps=datatable] th[data-sortable=true]:hover[data-mps=datatable] {
102
- background-color: var(--bs-body-bg, #fff);
103
- background-image: linear-gradient(var(--mp-datatable-row-hover-bg), var(--mp-datatable-row-hover-bg));
104
- }
105
- .datatable-scroll.datatable-virtual[data-mps=datatable] thead[data-mps=datatable] tr.filter-row[data-mps=datatable] th[data-mps=datatable] {
106
- position: sticky;
107
- top: var(--mp-datatable-header-height, 0px);
108
- z-index: 1;
109
- background-color: var(--bs-body-bg, #fff);
110
- }
111
-
112
- tr.virtual-spacer[data-mps=datatable] {
113
- pointer-events: none;
114
- }
115
- tr.virtual-spacer[data-mps=datatable] > td {
116
- border-bottom: 0;
117
- }
118
-
119
- table[data-mps=datatable] {
120
- width: 100%;
121
- border-collapse: collapse;
122
- margin: 0;
123
- table-layout: auto;
124
- }
125
-
126
- table.measured[data-mps=datatable] {
127
- table-layout: fixed;
128
- }
129
- tbody[data-mps=datatable] > tr[data-mps=datatable] > td {
130
- white-space: nowrap;
131
- overflow: hidden;
132
- text-overflow: ellipsis;
133
- }
134
-
135
- thead[data-mps=datatable] th[data-mps=datatable] {
136
- background-color: var(--bs-table-bg, transparent);
137
- border-bottom: 1px solid var(--mp-datatable-border-color);
138
- text-align: left;
139
- font-weight: 600;
140
- padding: 0.5rem 0.75rem;
141
- white-space: nowrap;
142
- position: relative;
143
- user-select: none;
144
- }
145
-
146
- thead[data-mps=datatable] th[data-sortable=true][data-mps=datatable] {
147
- cursor: pointer;
148
- padding: 0;
149
- }
150
- thead[data-mps=datatable] th[data-sortable=true][data-mps=datatable]::before, thead[data-mps=datatable] th[data-sortable=true][data-mps=datatable]::after {
151
- position: absolute;
152
- display: block;
153
- opacity: 0.3;
154
- bottom: 0.5em;
155
- }
156
- thead[data-mps=datatable] th[data-sortable=true][data-mps=datatable]::before {
157
- content: "↑";
158
- right: 1em;
159
- }
160
- thead[data-mps=datatable] th[data-sortable=true][data-mps=datatable]::after {
161
- content: "↓";
162
- right: 0.5em;
163
- }
164
- thead[data-mps=datatable] th[data-sortable=true][aria-sort=ascending][data-mps=datatable]::after {
165
- opacity: 1;
166
- }
167
- thead[data-mps=datatable] th[data-sortable=true][aria-sort=descending][data-mps=datatable]::before {
168
- opacity: 1;
169
- }
170
-
171
- thead[data-mps=datatable] th[data-sortable=true]:hover[data-mps=datatable] {
172
- background-color: var(--mp-datatable-row-hover-bg);
173
- }
174
-
175
- .header-cell[data-mps=datatable] {
176
- display: inline-flex;
177
- align-items: center;
178
- gap: 0.4rem;
179
- }
180
-
181
- button.header-sort[data-mps=datatable] {
182
- border: 0;
183
- margin: 0;
184
- background: none;
185
- font: inherit;
186
- color: inherit;
187
- text-align: inherit;
188
- cursor: pointer;
189
- display: flex;
190
- width: 100%;
191
- box-sizing: border-box;
192
- padding: 0.5rem 2rem 0.5rem 0.75rem;
193
- }
194
-
195
- .resize-handle:focus-visible[data-mps=datatable],
196
- button.header-sort:focus-visible[data-mps=datatable] {
197
- outline: 2px solid var(--mp-datatable-resize-handle-color);
198
- outline-offset: 1px;
199
- }
200
-
201
- tbody[data-mps=datatable] tr:focus-visible[data-mps=datatable] {
202
- outline: 2px solid var(--mp-datatable-resize-handle-color);
203
- outline-offset: -2px;
204
- }
205
-
206
- .sort-index[data-mps=datatable] {
207
- position: absolute;
208
- right: 0.1em;
209
- bottom: 0.3em;
210
- font-size: 0.65em;
211
- font-weight: bold;
212
- opacity: 0.7;
213
- }
214
-
215
- .resize-handle[data-mps=datatable] {
216
- position: absolute;
217
- right: 0;
218
- top: 0;
219
- width: 6px;
220
- height: 100%;
221
- cursor: col-resize;
222
- user-select: none;
223
- z-index: 2;
224
- }
225
-
226
- .resize-handle:hover[data-mps=datatable],
227
- .resize-handle.active[data-mps=datatable] {
228
- background-color: var(--mp-datatable-resize-handle-color);
229
- }
230
- tbody[data-mps=datatable] > tr[data-mps=datatable] > td {
231
- padding: 0.5rem 0.75rem;
232
- border-bottom: 1px solid var(--mp-datatable-border-color);
233
- vertical-align: middle;
234
- }
235
- tbody[data-mps=datatable] > tr[data-mps=datatable] > td svg,
236
- tbody[data-mps=datatable] > tr[data-mps=datatable] > td img {
237
- max-width: var(--mp-datatable-cell-media-max-width, none);
238
- height: auto;
239
- vertical-align: middle;
240
- }
241
-
242
- tbody[data-mps=datatable] tr[data-mps=datatable] {
243
- cursor: default;
244
- }
245
-
246
- tbody[data-mps=datatable] tr[data-clickable=true][data-mps=datatable] {
247
- cursor: pointer;
248
- }
249
-
250
- tbody[data-mps=datatable] tr:hover[data-mps=datatable] {
251
- background-color: var(--mp-datatable-row-hover-bg);
252
- }
253
-
254
- tbody[data-mps=datatable] tr[data-selected=true][data-mps=datatable] {
255
- background-color: var(--mp-datatable-row-selected-bg);
256
- color: var(--mp-datatable-row-selected-color);
257
- }
258
-
259
- tbody[data-mps=datatable] tr[data-cut=true][data-mps=datatable] {
260
- opacity: var(--mp-datatable-cut-opacity);
261
- }
262
-
263
- tbody[data-mps=datatable] tr[data-focused=true][data-mps=datatable] {
264
- outline: 2px solid var(--bs-primary, #0d6efd);
265
- outline-offset: -2px;
266
- }
267
- tr[data-mps=datatable] > .checkbox-cell[data-mps=datatable] {
268
- width: 2.5rem;
269
- padding-inline: 0.5rem;
270
- text-align: center;
271
- text-overflow: clip;
272
- }
273
-
274
- .checkbox-cell.checkbox-cell-toggles[data-mps=datatable] {
275
- cursor: pointer;
276
- }
277
-
278
- .tree-chevron-cell[data-mps=datatable] {
279
- width: 2rem;
280
- padding-right: 0;
281
- white-space: nowrap;
282
- user-select: none;
283
- }
284
-
285
- .tree-chevron[data-mps=datatable] {
286
- appearance: none;
287
- background: transparent;
288
- border: 0;
289
- padding: 0;
290
- width: 1.5rem;
291
- height: 1.5rem;
292
- line-height: 1;
293
- cursor: pointer;
294
- color: var(--bs-body-color, inherit);
295
- font-size: 0.85em;
296
- border-radius: 0.25rem;
297
- display: inline-flex;
298
- align-items: center;
299
- justify-content: center;
300
- }
301
- .tree-chevron:hover[data-mps=datatable] {
302
- background-color: var(--mp-datatable-row-hover-bg);
303
- }
304
- .tree-chevron:focus-visible[data-mps=datatable] {
305
- outline: 2px solid var(--bs-primary, #0d6efd);
306
- outline-offset: 1px;
307
- }
308
-
309
- tbody[data-mps=datatable] tr[data-placeholder=true][data-mps=datatable] {
310
- cursor: default;
311
- opacity: 0.6;
312
- pointer-events: none;
313
- }
314
-
315
- .tree-placeholder-cell[data-mps=datatable] {
316
- color: var(--bs-secondary-color, #6c757d);
317
- font-style: italic;
318
- padding-left: 1.25rem;
319
- }
320
-
321
- .empty-state[data-mps=datatable],
322
- .loading-state[data-mps=datatable] {
323
- padding: 2rem 1rem;
324
- text-align: center;
325
- color: var(--bs-secondary-color, #6c757d);
326
- }
327
-
328
- .datatable-footer[data-mps=datatable] {
329
- display: flex;
330
- align-items: center;
331
- justify-content: space-between;
332
- padding: 0.5rem 0;
333
- gap: 1rem;
334
- flex-wrap: wrap;
335
- flex: 0 0 auto;
336
- }
337
-
338
- .datatable-per-page[data-mps=datatable],
339
- .datatable-pagination[data-mps=datatable] {
340
- flex: 0 1 auto;
341
- }
342
-
343
- tr.filter-row[data-mps=datatable] th[data-mps=datatable] {
344
- padding: 0;
345
- border-bottom: 1px solid var(--mp-datatable-border-color);
346
- font-weight: 400;
347
- user-select: none;
348
- }
349
-
350
- .filter-trigger[data-mps=datatable] {
351
- display: flex;
352
- align-items: center;
353
- justify-content: center;
354
- width: 100%;
355
- min-width: 0;
356
- box-sizing: border-box;
357
- padding: 0.5rem;
358
- border-radius: 0;
359
- background: transparent;
360
- border: 1px solid transparent;
361
- color: inherit;
362
- cursor: pointer;
363
- line-height: 1;
364
- }
365
-
366
- .filter-trigger:hover[data-mps=datatable] {
367
- background-color: var(--mp-datatable-row-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));
368
- }
369
-
370
- .filter-trigger:focus-visible[data-mps=datatable] {
371
- outline: 2px solid var(--bs-focus-ring-color, #0d6efd);
372
- outline-offset: 1px;
373
- }
374
-
375
- .filter-trigger[aria-expanded=true][data-mps=datatable] {
376
- background-color: var(--mp-datatable-row-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));
377
- border-color: var(--mp-datatable-border-color);
378
- }
379
-
380
- .filter-icon[data-mps=datatable] {
381
- width: 0.875rem;
382
- height: 0.875rem;
383
- fill: currentColor;
384
- flex: 0 0 auto;
385
- }
386
-
387
- .filter-trigger.active[data-mps=datatable] .filter-icon[data-mps=datatable] {
388
- fill: var(--bs-primary, #0d6efd);
389
- }
390
-
391
- .filter-trigger.active[data-mps=datatable]::after {
392
- content: "";
393
- width: 0.375rem;
394
- height: 0.375rem;
395
- margin-inline-start: 0.25rem;
396
- border-radius: 50%;
397
- background-color: var(--bs-primary, #0d6efd);
398
- flex: 0 0 auto;
399
- }
400
-
401
- .filter-panel[data-mps=datatable] {
402
- position: fixed;
403
- min-width: 12rem;
404
- max-width: min(22rem, 100vw - 2rem);
405
- padding: 0.5rem;
406
- background-color: var(--bs-body-bg, #fff);
407
- color: var(--bs-body-color, inherit);
408
- border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));
409
- border-radius: 0.375rem;
410
- box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
411
- }
412
-
413
- .filter-panel-body[data-mps=datatable] {
414
- display: block;
415
- max-height: min(20rem, 60vh);
416
- overflow: auto;
417
- }
418
-
419
- .filter-clear[data-mps=datatable],
420
- .filter-invert[data-mps=datatable] {
421
- display: block;
422
- width: 100%;
423
- box-sizing: border-box;
424
- padding: 0.25rem 0.5rem;
425
- margin-bottom: 0.375rem;
426
- background: transparent;
427
- border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));
428
- border-radius: 0.25rem;
429
- color: inherit;
430
- cursor: pointer;
431
- text-align: start;
432
- line-height: 1.4;
433
- }
434
-
435
- .filter-clear:disabled[data-mps=datatable] {
436
- opacity: 0.5;
437
- cursor: default;
438
- }
439
-
440
- .filter-invert[aria-pressed=true][data-mps=datatable] {
441
- background-color: var(--bs-primary, #0d6efd);
442
- border-color: var(--bs-primary, #0d6efd);
443
- color: var(--bs-primary-bg-subtle, #fff);
444
- }
445
-
446
- .filter-search[data-mps=datatable],
447
- .filter-operand[data-mps=datatable],
448
- .filter-operator[data-mps=datatable] {
449
- box-sizing: border-box;
450
- padding: 0.25rem 0.5rem;
451
- background-color: var(--bs-body-bg, #fff);
452
- color: inherit;
453
- border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));
454
- border-radius: 0.25rem;
455
- font: inherit;
456
- line-height: 1.5;
457
- }
458
-
459
- .filter-operand[type=number][data-mps=datatable] {
460
- appearance: textfield;
461
- }
462
-
463
- .filter-operand[data-mps=datatable]::-webkit-outer-spin-button,
464
- .filter-operand[data-mps=datatable]::-webkit-inner-spin-button {
465
- appearance: none;
466
- margin: 0;
467
- }
468
-
469
- .filter-search[data-mps=datatable] {
470
- display: block;
471
- width: 100%;
472
- margin-bottom: 0.375rem;
473
- }
474
-
475
- .filter-clear:focus-visible[data-mps=datatable],
476
- .filter-invert:focus-visible[data-mps=datatable],
477
- .filter-search:focus-visible[data-mps=datatable],
478
- .filter-option[data-mps=datatable] input:focus-visible[data-mps=datatable] {
479
- outline: 2px solid var(--bs-focus-ring-color, #0d6efd);
480
- outline-offset: 1px;
481
- }
482
-
483
- .filter-comparison[data-mps=datatable] {
484
- display: flex;
485
- gap: 0.375rem;
486
- align-items: stretch;
487
- }
488
-
489
- .filter-operator[data-mps=datatable] {
490
- flex: 0 0 auto;
491
- max-width: 9rem;
492
- padding-inline: 0.375rem;
493
- }
494
-
495
- .filter-operand[data-mps=datatable] {
496
- flex: 1 1 auto;
497
- min-width: 0;
498
- }
499
-
500
- .filter-operator:focus-visible[data-mps=datatable],
501
- .filter-operand:focus-visible[data-mps=datatable] {
502
- outline: 2px solid var(--bs-focus-ring-color, #0d6efd);
503
- outline-offset: 1px;
504
- }
505
-
506
- .filter-options[data-mps=datatable] {
507
- display: flex;
508
- flex-direction: column;
509
- gap: 0.125rem;
510
- }
511
-
512
- .filter-option[data-mps=datatable] {
513
- display: flex;
514
- align-items: center;
515
- gap: 0.375rem;
516
- padding: 0.125rem 0.25rem;
517
- border-radius: 0.25rem;
518
- cursor: pointer;
519
- overflow-wrap: anywhere;
520
- }
521
-
522
- .filter-option:hover[data-mps=datatable] {
523
- background-color: var(--mp-datatable-row-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));
524
- }
525
-
526
- .filter-remaining[data-mps=datatable] {
527
- color: var(--bs-secondary-color, #6c757d);
528
- }
529
-
530
- .filter-loading[data-mps=datatable],
531
- .filter-no-values[data-mps=datatable],
532
- .filter-has-more[data-mps=datatable] {
533
- display: block;
534
- padding: 0.25rem;
535
- color: var(--bs-secondary-color, #6c757d);
536
- font-size: 0.875em;
537
- }
538
-
539
- .filter-summary[data-mps=datatable] {
540
- margin-inline-start: 0.25rem;
541
- min-width: 0;
542
- overflow: hidden;
543
- text-overflow: ellipsis;
544
- white-space: nowrap;
545
- font-size: 0.875em;
546
- }
547
-
548
- @media (prefers-reduced-motion: reduce) {
549
- .resize-handle[data-mps=datatable] {
550
- transition: none !important;
551
- }
552
- }`);
553
- function H(n, e, t) {
554
- if (t) {
555
- const s = n.findIndex((i) => i.property === e);
556
- return s === -1 ? [...n, { property: e, direction: "ascending" }] : n[s].direction === "ascending" ? n.map(
557
- (i, r) => r === s ? { ...i, direction: "descending" } : i
558
- ) : n.filter((i, r) => r !== s);
559
- }
560
- const a = n.length === 1 && n[0].property === e;
561
- return [
562
- {
563
- property: e,
564
- direction: a && n[0].direction === "ascending" ? "descending" : "ascending"
565
- }
566
- ];
567
- }
568
- function y(n, e) {
569
- return e.length === 0 ? n.slice() : n.map((t, a) => ({ row: t, index: a })).sort((t, a) => {
570
- for (const s of e) {
571
- const i = S(t.row, s.property), r = S(a.row, s.property), o = V(i, r);
572
- if (o !== 0)
573
- return s.direction === "ascending" ? o : -o;
574
- }
575
- return t.index - a.index;
576
- }).map(({ row: t }) => t);
577
- }
578
- function S(n, e) {
579
- if (!(n == null || typeof n != "object"))
580
- return n[e];
581
- }
582
- function V(n, e) {
583
- 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));
584
- }
585
- const F = 40, R = 10;
586
- function $(n, e) {
587
- return Math.max(F, n + e);
588
- }
589
- const c = I("datatable");
590
- function P(n, e) {
591
- return n === e || n !== n && e !== e;
592
- }
593
- function g(n, e) {
594
- return n.some((t) => P(t.value, e));
595
- }
596
- const G = 250;
597
- let j = 0;
598
- class X extends M {
599
- constructor() {
600
- super(...arguments), this.instanceId = `mp-datatable-${++j}`, this._caption = null, this._inputLabel = null, this.hostAria = new U(this, {
601
- referenceTarget: () => this.renderRoot?.querySelector("table") ?? null
602
- }), 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 z(this), this.rowFocusRestore = new K(this, new A(
603
- () => this.renderRoot ?? null,
604
- {
605
- selector: 'tbody tr[data-row-key]:not([data-placeholder="true"])',
606
- keyOf: (e) => e.dataset.rowKey ?? null,
607
- container: () => this.renderRoot?.querySelector("table") ?? null
608
- }
609
- )), this._rowKey = (e, t) => {
610
- const a = e;
611
- return a && a.id != null ? String(a.id) : (this.warnPositionalKeyOnce(), `row-${t}`);
612
- }, this._warnedPositionalKey = !1, this._columnWidths = /* @__PURE__ */ new Map(), this._hasMeasuredInitial = !1, 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._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 L(this, {
613
- portal: !0,
614
- modal: !0,
615
- scrollStrategy: "reposition",
616
- // Resolved lazily by column name on every call: each render rebuilds the
617
- // header, so a captured element would detach under the open panel. The
618
- // trigger IS the anchor, so both read the same element — resolving the
619
- // trigger by id instead would buy nothing and cost a CSS.escape call, which
620
- // is not universally available and threw out of close() before it could
621
- // fire onClose.
622
- anchor: () => this.openFilterTrigger(),
623
- trigger: () => this.openFilterTrigger(),
624
- panel: () => this.filterOverlay.portalContainer?.querySelector(".filter-panel") ?? null,
625
- // The search box, not merely the first tabbable: Clear precedes it in the
626
- // DOM because it belongs at the top of the panel visually, and opening onto
627
- // a disabled-or-destructive button is the wrong place to land.
628
- // Returning null falls back to 'first', which is what a consumer's own
629
- // panel gets — it has no `.filter-search` to aim at.
630
- initialFocus: () => this.filterOverlay.portalContainer?.querySelector(".filter-search, .filter-operand") ?? null,
631
- onClose: () => {
632
- const e = this._openFilterColumn;
633
- if (e == null) return;
634
- const t = this._filterStates.get(e);
635
- t && (this.abortFilterRequest(t), t.term = "", this.rebucket(t)), this._openFilterColumn = null, this._mountedFilterColumn = null, this.requestUpdate(), this.dispatchEvent(
636
- new CustomEvent("mp-datatable-filter-close", {
637
- detail: { column: e },
638
- bubbles: !0,
639
- composed: !0
640
- })
641
- );
642
- }
643
- }), this._keyByRowMemo = null, this._selectionAnchorKey = null, this.resizeState = null, this.onColumnResizeMove = (e) => {
644
- if (!this.resizeState) return;
645
- const t = $(this.resizeState.startWidth, e.clientX - this.resizeState.startX);
646
- this._columnWidths = new Map(this._columnWidths), this._columnWidths.set(this.resizeState.columnName, t), this.requestUpdate();
647
- }, this.onColumnResizeEnd = (e) => {
648
- if (this.resizeState) {
649
- this.resizeState.handle.classList.remove("active"), this.resizeState.handle.removeEventListener("pointermove", this.onColumnResizeMove), this.resizeState.handle.removeEventListener("pointerup", this.onColumnResizeEnd), this.resizeState.handle.removeEventListener("pointercancel", this.onColumnResizeEnd);
650
- try {
651
- this.resizeState.handle.releasePointerCapture(e.pointerId);
652
- } catch {
653
- }
654
- this.resizeState = null;
655
- }
656
- };
657
- }
658
- /**
659
- * Light DOM. Consumer-authored row/cell/header content is mounted here by the
660
- * render callbacks, and inside a shadow root the page's stylesheets — the
661
- * consumer's own component CSS and Bootstrap's utilities alike — cannot reach
662
- * it (issue #408). Rendering in the document tree is what makes that content
663
- * style correctly; encapsulation is preserved by the build-time rescoping
664
- * instead of by the boundary.
665
- */
666
- createRenderRoot() {
667
- return this;
668
- }
669
- static get observedAttributes() {
670
- return [
671
- ...super.observedAttributes ?? [],
672
- "selection-mode",
673
- "pagination",
674
- "resizable-columns",
675
- "auto-sort",
676
- "empty-message",
677
- "virtual-scroll",
678
- "item-size",
679
- "tree",
680
- "tree-indent",
681
- "selection-strategy",
682
- // Naming for the inner <table> (the role-bearing node): caption renders a
683
- // real <caption>, the native, visible table name; aria-label / input-label
684
- // are the invisible alternative and win in the accessible-name computation
685
- // when both are present.
686
- "caption",
687
- "aria-label",
688
- "input-label",
689
- "aria-labelledby",
690
- "aria-describedby"
691
- ];
692
- }
693
- /**
694
- * Visible table caption, rendered as a real <caption> — the native way to name
695
- * a table, and the only one sighted users benefit from too. For an invisible
696
- * name use aria-label / input-label instead (they win over the caption in the
697
- * accessible-name computation when both are set).
698
- */
699
- get caption() {
700
- return this._caption;
701
- }
702
- set caption(e) {
703
- const t = e ?? null;
704
- this._caption !== t && (this._caption = t, this.requestUpdate());
705
- }
706
- /**
707
- * User-visible strings, overridable per key for localisation
708
- * (see DatatableLabels). Property-only: it holds functions. Re-renders on
709
- * assignment, so switching language on a mounted table renames every
710
- * control (row-checkbox names included) without waiting for an unrelated
711
- * update.
712
- */
713
- get labels() {
714
- return this._labels;
715
- }
716
- set labels(e) {
717
- e !== this._labels && (this._labels = e, this.requestUpdate());
718
- }
719
- /** Merged view of labels — consumer keys over the English defaults. */
720
- get mergedLabels() {
721
- return { ...W, ...this.labels ?? {} };
722
- }
723
- /** Optional invisible accessible name for the <table>. Host aria-label wins. */
724
- get inputLabel() {
725
- return this._inputLabel;
726
- }
727
- set inputLabel(e) {
728
- const t = e ?? null;
729
- this._inputLabel !== t && (this._inputLabel = t, this.requestUpdate());
730
- }
731
- /**
732
- * Warn rather than throw: a static table without ids keeps working, and only
733
- * a fetched or selectable one is actually harmed by a positional key.
734
- */
735
- warnPositionalKeyOnce() {
736
- this._warnedPositionalKey || !this._fetch && this._selectionMode === "none" || (this._warnedPositionalKey = !0, console.warn(
737
- "[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."
738
- ));
739
- }
740
- /** When true, the WC sorts `data` itself using `sortRows`. Set `false` if the consumer sorts externally. */
741
- get autoSort() {
742
- return this._autoSort;
743
- }
744
- set autoSort(e) {
745
- this._autoSort = !!e, this.requestUpdate();
746
- }
747
- /**
748
- * Per-row renderer. When set, the WC delegates row content production to
749
- * this callback (used by the Angular wrapper to host `*bsRowTemplate`
750
- * templates). Returning `undefined` falls back to per-column `cellRenderer`s.
751
- */
752
- get rowRenderer() {
753
- return this._rowRenderer;
754
- }
755
- set rowRenderer(e) {
756
- this._rowRenderer = e, this.requestUpdate();
757
- }
758
- /** Enable scroll-position-driven virtualization. Rows outside the viewport are not rendered. */
759
- get virtualScroll() {
760
- return this._virtualScroll;
761
- }
762
- set virtualScroll(e) {
763
- const t = !!e;
764
- this._virtualScroll !== t && (this._virtualScroll = t, this.requestUpdate());
765
- }
766
- /** Approximate row height in px (used by virtual scroll). Default `40`. */
767
- get itemSize() {
768
- return this._itemSize;
769
- }
770
- set itemSize(e) {
771
- const t = Number.isFinite(e) && e > 0 ? Math.max(1, Math.floor(e)) : 40;
772
- this._itemSize !== t && (this._itemSize = t, this.requestUpdate());
773
- }
774
- /** Off-screen row buffer (each side) for virtual scrolling. */
775
- get virtualBuffer() {
776
- return this._virtualBuffer;
777
- }
778
- set virtualBuffer(e) {
779
- const t = Math.max(0, Math.floor(e || 0));
780
- this._virtualBuffer !== t && (this._virtualBuffer = t, this.requestUpdate());
781
- }
782
- get columns() {
783
- return this._columns;
784
- }
785
- set columns(e) {
786
- this._columns = Array.isArray(e) ? e : [], this.syncFilterStates(), this.requestUpdate();
787
- }
788
- /**
789
- * Drops state for columns that are gone and seeds state for new ones from
790
- * `filterSelection`.
791
- *
792
- * An existing column keeps its state: the Angular wrapper rebuilds the whole
793
- * column array on every change detection, so treating a re-assignment as
794
- * "new columns" would wipe the user's selection on any unrelated input change.
795
- * A column whose `filterSelection` reference actually changed is re-seeded —
796
- * that is the consumer restoring a filter, and it is why the input is a
797
- * reference and not a value.
798
- */
799
- syncFilterStates() {
800
- const e = new Set(this._columns.map((t) => t.name));
801
- this._filterStates.forEach((t, a) => {
802
- e.has(a) || (this.abortFilterRequest(t), this._filterStates.delete(a));
803
- }), this._columns.forEach((t) => {
804
- const a = this._filterStates.get(t.name);
805
- if (!a) {
806
- t.filterable && this._filterStates.set(t.name, this.createFilterState(t));
807
- return;
808
- }
809
- t.filterSelection && t.filterSelection !== a.seededFrom && (a.seededFrom = t.filterSelection, a.selection = {
810
- values: [...t.filterSelection.values],
811
- inverse: !!t.filterSelection.inverse,
812
- operator: t.filterSelection.operator,
813
- operand: t.filterSelection.operand ?? null
814
- }, a.operandText = t.filterSelection.operand == null ? "" : String(t.filterSelection.operand), a.snapshot = null);
815
- });
816
- }
817
- get data() {
818
- return this._data;
819
- }
820
- set data(e) {
821
- this._data = Array.isArray(e) ? e : [], this.refreshLocalDistincts(), this.requestUpdate();
822
- }
823
- /**
824
- * High-level fetch callback. When set, the WC owns the entire server-paged
825
- * loop and the consumer provides nothing else — no page-1 seeding via `data`,
826
- * no separate `totalRecords`, no event bridge. Works with any framework or
827
- * none (`el.fetch = fn`). Setting it kicks off the initial page-1 load.
828
- *
829
- * Pass a STABLE function. Assigning the same function again is a no-op, but
830
- * a new closure on every render is a new callback, and each one reloads. To
831
- * re-query with an unchanged callback, call `reload()`.
832
- */
833
- get fetch() {
834
- return this._fetch;
835
- }
836
- set fetch(e) {
837
- this.assignFetch(e) && this.scheduleFetchReload();
838
- }
839
- /**
840
- * Assigns the callback without scheduling a load; true when a load is due.
841
- * Shared by the setter and `applyFetchState`, which schedules once for all
842
- * of its fields.
843
- */
844
- assignFetch(e) {
845
- const t = typeof e == "function" ? e : null;
846
- 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));
847
- }
848
- /**
849
- * Consumer-supplied source of distinct values for the filter panels.
850
- * Property-only (it holds a function), mirroring `fetch` and `labels`.
851
- *
852
- * A source that resolves `null` for a column means "compute that column
853
- * locally", so one table can mix server-backed and local filter columns.
854
- */
855
- get distincts() {
856
- return this._distincts;
857
- }
858
- set distincts(e) {
859
- this._distincts = typeof e == "function" ? e : null, this._filterStates.forEach((t) => {
860
- t.loaded = null, t.view = null, t.loadedTerm = null;
861
- }), this._openFilterColumn && this.requestUpdate();
862
- }
863
- get sortColumns() {
864
- return [...this._sortColumns];
865
- }
866
- set sortColumns(e) {
867
- this.assignSortColumns(e) && (this.requestUpdate(), this.scheduleFetchReload());
868
- }
869
- /**
870
- * Assigns without scheduling; false when the value is structurally equal. A
871
- * wrapper echoing back the array it was just given is not a sort change, and
872
- * must not cost a re-render or a request (#407).
873
- */
874
- assignSortColumns(e) {
875
- const t = Array.isArray(e) ? [...e] : [];
876
- return t.length === this._sortColumns.length && t.every((s, i) => s.property === this._sortColumns[i].property && s.direction === this._sortColumns[i].direction) ? !1 : (this._sortColumns = t, !0);
877
- }
878
- /**
879
- * Re-queries the `fetch` callback for the current sort, page and page size,
880
- * even though none of them changed (the server data did). One request,
881
- * coalesced with any change already pending in the same task.
882
- *
883
- * The loaded windows and tree children are dropped, because they may be
884
- * stale. The selection is NOT: every selected key and its remembered row
885
- * survive, so a re-fetched row simply replaces the remembered one.
886
- *
887
- * `resetPage: true` also returns to page 1 (and emits
888
- * `mp-datatable-page-change` when that moves the page). A no-op without a
889
- * `fetch` callback, apart from the page reset.
890
- */
891
- reload({ resetPage: e = !1 } = {}) {
892
- e && this.assignPage(1) && (this.requestUpdate(), this.dispatchEvent(
893
- new CustomEvent("mp-datatable-page-change", {
894
- detail: { page: 1 },
895
- bubbles: !0,
896
- composed: !0
897
- })
898
- )), this._lastReloadKey = null, this.scheduleFetchReload();
899
- }
900
- /**
901
- * Applies any of `fetch`, `sortColumns`, `page` and `perPage` as ONE change:
902
- * every provided field is assigned first, then exactly one reload is
903
- * scheduled. Assigning them one by one through the setters can split across
904
- * ticks and cost two requests; this cannot (#407). Framework wrappers that
905
- * forward several of these inputs should call this rather than the setters.
906
- *
907
- * A field that is absent (or `undefined`) is left alone, except `fetch`: a
908
- * present `fetch` key is always assigned, so `{ fetch: null }` removes the
909
- * callback. `perPage` returns to page 1 unless `page` is also given.
910
- * Unchanged values cost nothing, as with the setters.
911
- *
912
- * When `perPage` changes and the given `page` would lie past the last page
913
- * of the known row count (20 → 50 per page while on page 5 of 100 rows), the
914
- * page is clamped to the last page and `mp-datatable-page-change` reports
915
- * it, so a wrapper's page state follows. With no known count (a fetch table
916
- * before its first response, or a new `fetch` in the same call) the page is
917
- * kept as given.
918
- */
919
- applyFetchState(e) {
920
- const t = "fetch" in e && this.assignFetch(e.fetch);
921
- e.sortColumns !== void 0 && this.assignSortColumns(e.sortColumns);
922
- const a = e.perPage !== void 0 && this.assignPerPage(e.perPage);
923
- e.page !== void 0 && (this.assignPage(e.page), a && !t && this.clampPageToKnownTotal()), this.requestUpdate(), this.scheduleFetchReload();
924
- }
925
- get selectionMode() {
926
- return this._selectionMode;
927
- }
928
- set selectionMode(e) {
929
- if (this._selectionMode = e, e === "none") {
930
- this._selectionAnchorKey = null;
931
- const t = this._selectedIds.size > 0;
932
- this.commitSelection([]), t && this.emitSelectionChange();
933
- }
934
- this.requestUpdate();
935
- }
936
- /** Modes that select many rows and render the checkbox column. */
937
- get isMulti() {
938
- return this._selectionMode === "multiple" || this._selectionMode === "checkbox";
939
- }
940
- get selectedIds() {
941
- return [...this._selectedIds];
942
- }
943
- set selectedIds(e) {
944
- const t = new Set(e ?? []);
945
- t.size === this._selectedIds.size && [...t].every((a) => this._selectedIds.has(a)) || (this._selectedIds = t, this.pruneSelectedRowCache(), t.size > 0 && this.rememberLiveSelectedRows(), this.requestUpdate());
946
- }
947
- /**
948
- * The selected rows, index-aligned with `selectedIds` (`undefined` for a key
949
- * whose row the element has never seen). See `SelectionChangeEventDetail`.
950
- *
951
- * Setting it REPLACES the selection: the keys are derived through `rowKey`,
952
- * and the rows are remembered, so a host that owns row objects (the Angular
953
- * wrapper's `selection` model) can seed rows that are not loaded here — they
954
- * are reported back in `selectedRows` even while off-page.
955
- */
956
- get selectedRows() {
957
- return this.resolveRows([...this._selectedIds]);
958
- }
959
- set selectedRows(e) {
960
- const t = e ?? [], a = this.rowKeyLookup(), s = t.map((i) => [a(i), i]);
961
- this.isSameSelectedRows(s) || (this._selectedIds = new Set(s.map(([i]) => i)), this._selectedRowCache = new Map(s), this.requestUpdate());
962
- }
963
- get cutIds() {
964
- return [...this._cutIds];
965
- }
966
- set cutIds(e) {
967
- this._cutIds = new Set(e ?? []), this.requestUpdate();
968
- }
969
- get focusedRowKey() {
970
- return this._focusedRowKey;
971
- }
972
- set focusedRowKey(e) {
973
- this._focusedRowKey = e, this.requestUpdate();
974
- }
975
- /**
976
- * Names a row for its selection checkbox ("Select {label}"). Property-only (it
977
- * holds a function). When unset, or when it returns an empty string, the
978
- * trimmed text of the row's first data cell is used, and when that is empty
979
- * too, the row number ("Select row N").
980
- *
981
- * The name is a string handed to the checkbox: an `aria-labelledby` pointing
982
- * at the cell could not cross the checkbox's shadow boundary.
983
- */
984
- get rowLabel() {
985
- return this._rowLabel;
986
- }
987
- set rowLabel(e) {
988
- this._rowLabel = typeof e == "function" ? e : null, this.requestUpdate();
989
- }
990
- /**
991
- * Row identity: selection, focus and row-view reuse are keyed by it. It must
992
- * be stable, and derived from the row rather than its index: a row that is
993
- * not loaded is keyed `rowKey(row, -1)`, so an index-based key maps every
994
- * off-page row onto `row--1`. Required with `fetch`.
995
- */
996
- get rowKey() {
997
- return this._rowKey;
998
- }
999
- set rowKey(e) {
1000
- this._rowKey = typeof e == "function" ? e : this._rowKey, this.requestUpdate();
1001
- }
1002
- // ─── Tree-mode public API ────────────────────────────────────────────────
1003
- /** Enable tree mode (chevron column, nested expansion, lazy children). */
1004
- get tree() {
1005
- return this._tree;
1006
- }
1007
- set tree(e) {
1008
- const t = !!e;
1009
- this._tree !== t && (this._tree = t, this.requestUpdate());
1010
- }
1011
- /**
1012
- * Property name or function that extracts the stable row identity used as
1013
- * the expansion key and as `parentId` in `mp-datatable-fetch-request`.
1014
- * Required when `tree=true`.
1015
- */
1016
- get idKey() {
1017
- return this._idKey;
1018
- }
1019
- set idKey(e) {
1020
- this._idKey = e, this.requestUpdate();
1021
- }
1022
- /**
1023
- * Property name on the row that holds the direct-child count. Drives both
1024
- * chevron visibility AND placeholder reservation. Required when `tree=true`.
1025
- */
1026
- get childCountKey() {
1027
- return this._childCountKey;
1028
- }
1029
- set childCountKey(e) {
1030
- this._childCountKey = e || null, this.requestUpdate();
1031
- }
1032
- /** Indent in rem per depth level on the chevron cell. Default `1.25`. */
1033
- get treeIndent() {
1034
- return this._treeIndent;
1035
- }
1036
- set treeIndent(e) {
1037
- const t = Number(e);
1038
- this._treeIndent = Number.isFinite(t) && t >= 0 ? t : 1.25, this.requestUpdate();
1039
- }
1040
- /** Two-way binding target: set of expanded-row id values (per `idKey`). */
1041
- get expandedIds() {
1042
- return new Set(this._expandedIds);
1043
- }
1044
- set expandedIds(e) {
1045
- e ? e instanceof Set ? this._expandedIds = new Set(e) : this._expandedIds = new Set(e) : this._expandedIds = /* @__PURE__ */ new Set(), this.requestUpdate();
1046
- }
1047
- /** `'flat'` (default) or `'cascading'`. When `tree=true`, cascading is recommended. */
1048
- get selectionStrategy() {
1049
- return this._selectionStrategy;
1050
- }
1051
- set selectionStrategy(e) {
1052
- this._selectionStrategy = e === "cascading" ? "cascading" : "flat", this.requestUpdate();
1053
- }
1054
- get loading() {
1055
- return this._loading;
1056
- }
1057
- set loading(e) {
1058
- const t = this._loading;
1059
- this._loading = !!e, t && !this._loading && this.liveAnnouncer.announce(this.mergedLabels.announceLoaded(this._data.length)), this.requestUpdate();
1060
- }
1061
- get emptyMessage() {
1062
- return this._emptyMessage;
1063
- }
1064
- set emptyMessage(e) {
1065
- this._emptyMessage = e || "No data", this.requestUpdate();
1066
- }
1067
- get pagination() {
1068
- return this._pagination;
1069
- }
1070
- set pagination(e) {
1071
- this._pagination = !!e, this.requestUpdate();
1072
- }
1073
- get page() {
1074
- return this._page;
1075
- }
1076
- set page(e) {
1077
- this.assignPage(e) && (this.requestUpdate(), this.scheduleFetchReload());
1078
- }
1079
- /** Assigns without scheduling; true when the page changed. */
1080
- assignPage(e) {
1081
- const t = Math.max(1, Math.floor(e || 1));
1082
- return this._page === t ? !1 : (this._page = t, !0);
1083
- }
1084
- get perPage() {
1085
- return this._perPage;
1086
- }
1087
- set perPage(e) {
1088
- this.assignPerPage(e) && (this.requestUpdate(), this.scheduleFetchReload());
1089
- }
1090
- /**
1091
- * Moves a page past the end back to the last page, when the row count is
1092
- * known: the server's `totalRecords` with `fetch`, the data length without.
1093
- * Reported through `mp-datatable-page-change` when it moves the page.
1094
- */
1095
- clampPageToKnownTotal() {
1096
- const e = this._fetch ? this._totalRecords : this._data.length;
1097
- if (e == null) return;
1098
- const t = Math.max(1, Math.ceil(e / this._perPage));
1099
- this._page <= t || (this._page = t, this.dispatchEvent(
1100
- new CustomEvent("mp-datatable-page-change", {
1101
- detail: { page: t },
1102
- bubbles: !0,
1103
- composed: !0
1104
- })
1105
- ));
1106
- }
1107
- /** Assigns without scheduling (and returns to page 1); true when it changed. */
1108
- assignPerPage(e) {
1109
- const t = Math.max(1, Math.floor(e || 1));
1110
- return this._perPage === t ? !1 : (this._perPage = t, this._page = 1, !0);
1111
- }
1112
- get perPageOptions() {
1113
- return [...this._perPageOptions];
1114
- }
1115
- set perPageOptions(e) {
1116
- this._perPageOptions = Array.isArray(e) && e.length > 0 ? [...e] : [10, 20, 50], this.requestUpdate();
1117
- }
1118
- /**
1119
- * Read-only grand total. Derived by the WC from the `fetch` response (server
1120
- * paging) or `_data.length` (static data) — consumers never set it. Exposed
1121
- * so a consumer can render "row X of N" if it wants.
1122
- */
1123
- get totalRecords() {
1124
- return this._totalRecords;
1125
- }
1126
- /** True when the consumer is paging externally (totalRecords exceeds the in-memory rows). */
1127
- isExternallyPaged() {
1128
- return this._totalRecords != null && this._totalRecords > this._data.length;
1129
- }
1130
- /**
1131
- * True when virtual scrolling is driving lazy windowed fetches at the **root**
1132
- * level: the consumer pages externally and the WC pulls root pages ≥ 2 on
1133
- * demand. Applies to BOTH flat mode (the rows are the roots) and tree mode
1134
- * (the top-level rows; their children are windowed separately, keyed by
1135
- * parentId). When false (single page or no virtual scroll) the WC falls back
1136
- * to the trivial mapping of `_data`.
1137
- */
1138
- isRootWindowed() {
1139
- return this._virtualScroll && this.isExternallyPaged();
1140
- }
1141
- attributeChangedCallback(e, t, a) {
1142
- if (super.attributeChangedCallback(e, t, a), e === "caption")
1143
- this._caption = a, this.requestUpdate();
1144
- else if (e === "input-label")
1145
- this._inputLabel = a, this.requestUpdate();
1146
- else if (e === "aria-label")
1147
- this.requestUpdate();
1148
- else if (e === "aria-labelledby" || e === "aria-describedby")
1149
- this.hostAria.syncReferences();
1150
- else if (e === "selection-mode") {
1151
- const s = a ?? "none";
1152
- (s === "none" || s === "single" || s === "multiple" || s === "checkbox") && (this.selectionMode = s);
1153
- } else if (e === "pagination")
1154
- this.pagination = a !== null;
1155
- else if (e === "resizable-columns")
1156
- this.resizableColumns = a !== "false";
1157
- else if (e === "auto-sort")
1158
- this.autoSort = a !== "false";
1159
- else if (e === "empty-message")
1160
- this.emptyMessage = a ?? "No data";
1161
- else if (e === "virtual-scroll")
1162
- this.virtualScroll = a !== null;
1163
- else if (e === "item-size") {
1164
- const s = Number(a);
1165
- Number.isFinite(s) && (this.itemSize = s);
1166
- } else if (e === "tree")
1167
- this.tree = a !== null;
1168
- else if (e === "tree-indent") {
1169
- const s = a === null ? 1.25 : Number(a);
1170
- Number.isFinite(s) && (this.treeIndent = s);
1171
- } else e === "selection-strategy" && (this.selectionStrategy = a === "cascading" ? "cascading" : "flat");
1172
- }
1173
- get resizableColumns() {
1174
- return this._resizableColumns;
1175
- }
1176
- set resizableColumns(e) {
1177
- this._resizableColumns = !!e, this.requestUpdate();
1178
- }
1179
- connectedCallback() {
1180
- super.connectedCallback();
1181
- }
1182
- firstUpdated() {
1183
- 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(() => this.refreshVirtualRange()), this._resizeObserver.observe(this._scrollElement))), this.refreshVirtualRange(), this.hostAria.syncReferences();
1184
- }
1185
- willUpdate(e) {
1186
- super.willUpdate(e), this._cachedFlatList = null, this._cachedIndeterminateKeys = null;
1187
- }
1188
- updated(e) {
1189
- super.updated(e), this.refreshVirtualRange(), this.nameRowCheckboxes(), this.maybeMeasureInitialColumnWidths();
1190
- const t = this.renderRoot?.querySelectorAll(".resize-handle:not([aria-valuenow])") ?? [];
1191
- for (const a of t) {
1192
- const s = a.closest("th");
1193
- s && a.setAttribute("aria-valuenow", String(Math.round(s.getBoundingClientRect().width)));
1194
- }
1195
- this._openFilterColumn && this.renderFilterPanel(), this.publishHeaderHeight();
1196
- }
1197
- /**
1198
- * Publish header row 1's height as `--mp-datatable-header-height` for the
1199
- * filter row's sticky offset. Cheap and idempotent: it writes only on change,
1200
- * so it cannot feed back into the render loop.
1201
- */
1202
- publishHeaderHeight() {
1203
- if (!this.hasFilterRow) return;
1204
- const e = this.renderRoot?.querySelector("thead tr:first-child th"), t = this.renderRoot?.querySelector(".datatable-shell");
1205
- if (!e || !t) return;
1206
- const a = Math.round(e.getBoundingClientRect().height);
1207
- a <= 0 || t.style.getPropertyValue("--mp-datatable-header-height") !== `${a}px` && t.style.setProperty("--mp-datatable-header-height", `${a}px`);
1208
- }
1209
- /**
1210
- * Run the auto-size-once pass after the first batch of rows lands in the
1211
- * DOM. Columns with an explicit `col.width` are pinned to that value
1212
- * without measurement; the rest are measured from their natural
1213
- * (`table-layout: auto`) width via `getBoundingClientRect()` on the
1214
- * `<th>`. Once any column gets a width, `_hasMeasuredInitial` flips and
1215
- * the table renders with `table-layout: fixed` so the widths are
1216
- * authoritative and overflowing content clips with ellipsis.
1217
- */
1218
- maybeMeasureInitialColumnWidths() {
1219
- 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;
1220
- const t = new Map(this._columnWidths);
1221
- let a = !1;
1222
- for (const s of this._columns) {
1223
- if (t.has(s.name)) continue;
1224
- if (typeof s.width == "number") {
1225
- t.set(s.name, s.width), a = !0;
1226
- continue;
1227
- }
1228
- const i = this.measureColumnWidth(s.name);
1229
- i != null && (t.set(s.name, i), a = !0);
1230
- }
1231
- a && (this._columnWidths = t, this._hasMeasuredInitial = !0, this.requestUpdate());
1232
- }
1233
- measureColumnWidth(e) {
1234
- if (!this.renderRoot) return null;
1235
- const t = this.renderRoot.querySelector(
1236
- `thead tr:first-child th[data-column="${e}"]`
1237
- );
1238
- if (!t) return null;
1239
- const a = Math.ceil(t.getBoundingClientRect().width);
1240
- return a > 0 ? a : null;
1241
- }
1242
- disconnectedCallback() {
1243
- super.disconnectedCallback(), this._scrollElement && this._scrollListener && this._scrollElement.removeEventListener("scroll", this._scrollListener), this._scrollListener = null, this._resizeObserver?.disconnect(), this._resizeObserver = null, this._scrollElement = null, this._filterStates.forEach((e) => this.abortFilterRequest(e));
1244
- }
1245
- refreshVirtualRange() {
1246
- if (!this._virtualScroll || !this._scrollElement) return;
1247
- const e = this._scrollElement.scrollTop, t = this._scrollElement.clientHeight;
1248
- this._viewportHeight = t;
1249
- const a = this.getEffectiveData().length, s = this._itemSize, i = Math.max(0, Math.floor(e / s) - this._virtualBuffer), r = Math.ceil(t / s), o = Math.min(a, i + r + this._virtualBuffer * 2);
1250
- (i !== this._virtualRange.startIndex || o !== this._virtualRange.endIndex) && (this._virtualRange = { startIndex: i, endIndex: o }, this.requestUpdate()), this._tree && this.maybeFetchPlaceholdersInViewport(), this.isRootWindowed() && this.maybeFetchPagesInViewport();
1251
- }
1252
- /**
1253
- * Walk the visible viewport for placeholder rows whose parent isn't cached
1254
- * and isn't already in-flight. Emit a fetch-request per such parent.
1255
- */
1256
- maybeFetchPlaceholdersInViewport() {
1257
- const e = this.getFlatList(), { startIndex: t, endIndex: a } = this._virtualRange, s = this._virtualScroll ? t : 0, i = this._virtualScroll ? a : e.length, r = /* @__PURE__ */ new Set();
1258
- for (let o = s; o < i; o++) {
1259
- const l = e[o];
1260
- !l.isPlaceholder || l.parentId == null || this._childCache.has(l.parentId) || this._pendingFetches.has(l.parentId) || r.add(l.parentId);
1261
- }
1262
- for (const o of r) this.fetchChildren(o);
1263
- }
1264
- /**
1265
- * Flat-window counterpart of `maybeFetchPlaceholdersInViewport`: scan the
1266
- * visible range for flat placeholder rows, collect the distinct pages they
1267
- * belong to that aren't cached or already in-flight, and request each once.
1268
- * Page 1 is never requested here — it lives in `_data` (seeded by the
1269
- * wrapper's first-page fetch).
1270
- */
1271
- maybeFetchPagesInViewport() {
1272
- const e = this.getFlatList(), { startIndex: t, endIndex: a } = this._virtualRange, s = this._virtualScroll ? t : 0, i = this._virtualScroll ? a : e.length, r = /* @__PURE__ */ new Set();
1273
- for (let o = s; o < i; o++) {
1274
- const l = e[o];
1275
- !l.isPlaceholder || l.page == null || l.page <= 1 || this._pageCache.has(l.page) || this._pendingPageFetches.has(l.page) || r.add(l.page);
1276
- }
1277
- for (const o of r) this.fetchWindowPage(o);
1278
- }
1279
- render() {
1280
- const e = this.computeVisibleRows(), t = this._totalRecords ?? this._data.length, a = this.pagination && !this._tree ? Math.max(1, Math.ceil(t / this._perPage)) : 1, s = this.isMulti, i = 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;
1281
- return c`
1282
- ${this.liveAnnouncer.template()}
1283
- <div class="datatable-shell">
1284
- <div class="datatable-scroll ${this._virtualScroll ? "datatable-virtual" : ""}" role="presentation">
1285
- <table
1286
- role=${this._tree ? "treegrid" : this._selectionMode !== "none" ? "grid" : u}
1287
- aria-multiselectable=${this.isMulti ? "true" : u}
1288
- aria-rowcount=${l}
1289
- aria-colcount=${i}
1290
- aria-busy=${this._loading ? "true" : u}
1291
- aria-label=${this.getAttribute("aria-label") ?? this._inputLabel ?? u}
1292
- class=${this._hasMeasuredInitial ? "measured" : ""}
1293
- >
1294
- ${this._caption ? c`<caption>${this._caption}</caption>` : u}
1295
- <thead>
1296
- <tr role="row" aria-rowindex="1">
1297
- ${this._tree ? c`<th class="tree-chevron-cell" scope="col" aria-label=${this.mergedLabels.treeChevronColumn}></th>` : u}
1298
- ${s ? c`<th class="checkbox-cell" scope="col">
1299
- <mp-checkbox
1300
- aria-label=${this.mergedLabels.deselectAll}
1301
- aria-hidden=${this._selectedIds.size === 0 ? "true" : u}
1302
- style=${_({ visibility: this._selectedIds.size > 0 ? "visible" : "hidden" })}
1303
- .checked=${!1}
1304
- .indeterminate=${this._selectedIds.size > 0}
1305
- @change=${this.onDeselectAll}
1306
- ></mp-checkbox>
1307
- </th>` : u}
1308
- ${this._columns.map((h, d) => this.renderHeader(h, d))}
1309
- </tr>
1310
- ${this.hasFilterRow ? this.renderFilterRow(s) : u}
1311
- </thead>
1312
- <tbody>
1313
- ${this._loading ? c`<tr><td colspan=${i} class="loading-state">Loading…</td></tr>` : e.length === 0 ? c`<tr><td colspan=${i} class="empty-state">${this._emptyMessage}</td></tr>` : c`
1314
- ${r.top > 0 ? c`<tr class="virtual-spacer" aria-hidden="true"><td colspan=${i} style=${_({ height: `${r.top}px`, padding: "0", border: "0" })}></td></tr>` : u}
1315
- ${x(
1316
- e,
1317
- ({ key: h }) => h,
1318
- ({ key: h, rowIndex: d, flat: p }) => this.renderRow(p, h, d, s)
1319
- )}
1320
- ${r.bottom > 0 ? c`<tr class="virtual-spacer" aria-hidden="true"><td colspan=${i} style=${_({ height: `${r.bottom}px`, padding: "0", border: "0" })}></td></tr>` : u}
1321
- `}
1322
- </tbody>
1323
- </table>
1324
- </div>
1325
- ${this._pagination && !this._tree ? this.renderFooter(a) : u}
1326
- </div>
1327
- `;
1328
- }
1329
- getVirtualSpacerHeights() {
1330
- if (!this._virtualScroll) return { top: 0, bottom: 0 };
1331
- const e = this.getEffectiveData().length, { startIndex: t, endIndex: a } = this._virtualRange;
1332
- return {
1333
- top: t * this._itemSize,
1334
- bottom: Math.max(0, (e - a) * this._itemSize)
1335
- };
1336
- }
1337
- /** True when any column opted in. No column opts in, no second row, no cost. */
1338
- get hasFilterRow() {
1339
- return this._columns.some((e) => e.filterable);
1340
- }
1341
- get filterPanelId() {
1342
- return `${this._filterUid}-filter-panel`;
1343
- }
1344
- filterTriggerId(e) {
1345
- return `${this._filterUid}-filter-trigger-${e}`;
1346
- }
1347
- createFilterState(e) {
1348
- const t = e.name, a = {
1349
- selection: {
1350
- values: e.filterSelection ? [...e.filterSelection.values] : [],
1351
- inverse: !!e.filterSelection?.inverse,
1352
- // Seeded too, or a restored comparison filter comes back empty while
1353
- // its trigger still claims to be active.
1354
- operator: e.filterSelection?.operator,
1355
- operand: e.filterSelection?.operand ?? null
1356
- },
1357
- seededFrom: e.filterSelection ?? null,
1358
- snapshot: null,
1359
- loaded: null,
1360
- view: null,
1361
- loadedTerm: null,
1362
- fromLocal: !1,
1363
- term: "",
1364
- operandText: e.filterSelection?.operand == null ? "" : String(e.filterSelection.operand),
1365
- loading: !1,
1366
- generation: 0,
1367
- controller: null,
1368
- debounce: null,
1369
- listeners: /* @__PURE__ */ new Set(),
1370
- // Assigned below: the context closes over `state`, which does not exist
1371
- // until the literal is complete.
1372
- ctx: null
1373
- };
1374
- return a.ctx = {
1375
- values: () => a.view,
1376
- loading: () => a.loading,
1377
- search: (s) => this.setFilterSearch(t, s),
1378
- apply: (s, i) => this.applyFilter(t, s, i),
1379
- // Clearing emits the shape of the column's OWN mode. A comparison column
1380
- // emitting an empty `selected` array would be reporting a values-mode
1381
- // filter it never had, and a consumer switching on `mode` would miss it.
1382
- clear: () => this.clearFilter(t),
1383
- onChange: (s) => (a.listeners.add(s), () => a.listeners.delete(s))
1384
- }, a;
1385
- }
1386
- /** State for a filterable column, created on demand. */
1387
- filterState(e) {
1388
- const t = this._filterStates.get(e);
1389
- if (t) return t;
1390
- const a = this._columns.find((i) => i.name === e);
1391
- if (!a?.filterable) return null;
1392
- const s = this.createFilterState(a);
1393
- return this._filterStates.set(e, s), s;
1394
- }
1395
- notifyFilterListeners(e) {
1396
- e.listeners.forEach((t) => t()), this.requestUpdate();
1397
- }
1398
- abortFilterRequest(e) {
1399
- e.controller?.abort(), e.controller = null, e.debounce != null && clearTimeout(e.debounce), e.debounce = null, e.loading = !1;
1400
- }
1401
- /**
1402
- * Replaces a column's selection and emits the one event the component owns.
1403
- *
1404
- * The component never filters `_data` itself — what a selection means, and
1405
- * whether it is applied here or on a server, belongs to the consumer. All it
1406
- * does locally is snapshot the value list the first time a selection becomes
1407
- * non-empty, so the list cannot collapse to the selection.
1408
- */
1409
- applyFilter(e, t, a) {
1410
- const s = this.filterState(e);
1411
- if (!s) return;
1412
- 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: a }, this.rebucket(s), this.notifyFilterListeners(s);
1413
- const r = this._columns.find((o) => o.name === e);
1414
- this.liveAnnouncer.announce(
1415
- this.mergedLabels.announceFilter(r?.label ?? e, t.length)
1416
- ), this.dispatchEvent(
1417
- new CustomEvent("mp-datatable-filter-change", {
1418
- detail: { mode: "values", column: e, selected: [...t], inverse: a },
1419
- bubbles: !0,
1420
- composed: !0
1421
- })
1422
- );
1423
- }
1424
- /** The column's mode, defaulting to a checkbox list of distinct values. */
1425
- filterModeOf(e) {
1426
- return this._columns.find((t) => t.name === e)?.filterMode ?? "values";
1427
- }
1428
- clearFilter(e) {
1429
- if (this.filterModeOf(e) === "comparison") {
1430
- const t = this.filterState(e);
1431
- this.applyComparison(e, t?.selection.operator ?? "eq", "");
1432
- return;
1433
- }
1434
- this.applyFilter(e, [], !1);
1435
- }
1436
- /**
1437
- * Comparison mode's counterpart to `applyFilter`.
1438
- *
1439
- * It keeps the same contract: the component records what the user asked for
1440
- * and emits it, and never filters `_data`. An empty operand is a cleared
1441
- * filter, not a comparison against the empty string — otherwise every column
1442
- * would filter everything away the moment its panel opened.
1443
- */
1444
- applyComparison(e, t, a) {
1445
- const s = this.filterState(e);
1446
- if (!s) return;
1447
- const i = this._columns.find((l) => l.name === e), r = this.parseOperand(a, i?.filterInputType);
1448
- s.operandText = a, s.selection = { ...s.selection, operator: t, operand: r }, this.notifyFilterListeners(s);
1449
- const o = this.mergedLabels;
1450
- this.liveAnnouncer.announce(
1451
- o.announceComparisonFilter(
1452
- i?.label ?? e,
1453
- o.filterOperatorLabel(t),
1454
- r == null ? "" : String(r)
1455
- )
1456
- ), this.dispatchEvent(
1457
- new CustomEvent("mp-datatable-filter-change", {
1458
- detail: { mode: "comparison", column: e, operator: t, operand: r },
1459
- bubbles: !0,
1460
- composed: !0
1461
- })
1462
- );
1463
- }
1464
- /**
1465
- * An empty input, and a `'number'` input holding something unparseable, both
1466
- * mean "no filter" rather than a comparison against `NaN` — which would be
1467
- * false for every row and silently empty the table.
1468
- */
1469
- parseOperand(e, t) {
1470
- if (e.trim() === "") return null;
1471
- if ((t ?? "number") === "date") return e;
1472
- const a = Number(e);
1473
- return Number.isNaN(a) ? null : a;
1474
- }
1475
- setFilterSearch(e, t) {
1476
- const a = this.filterState(e);
1477
- if (!a) return;
1478
- a.term = t, this.rebucket(a), this.notifyFilterListeners(a);
1479
- const s = a.loadedTerm ?? "";
1480
- (a.loaded?.hasMore || !t.startsWith(s)) && (a.debounce != null && clearTimeout(a.debounce), a.debounce = setTimeout(() => {
1481
- a.debounce = null, this.loadDistincts(e, t);
1482
- }, G));
1483
- }
1484
- /**
1485
- * Loads (or recomputes) one column's value list.
1486
- *
1487
- * Called on every panel open — there is no cross-open cache, because the data
1488
- * behind a list can change while the panel is closed and a stale list is worse
1489
- * than a re-query. The source is asked first; a source resolving `null` means
1490
- * it cannot answer for this column, and the local path takes over.
1491
- */
1492
- async loadDistincts(e, t) {
1493
- const a = this.filterState(e);
1494
- if (!a) return;
1495
- const s = ++a.generation;
1496
- if (a.controller?.abort(), this._distincts) {
1497
- const i = new AbortController();
1498
- a.controller = i, a.loading = !0, this.notifyFilterListeners(a);
1499
- try {
1500
- const r = await this._distincts({ column: e, search: t, signal: i.signal });
1501
- if (s !== a.generation) return;
1502
- if (a.loading = !1, a.controller = null, r) {
1503
- a.loaded = r, a.loadedTerm = t, this.rebucket(a), this.notifyFilterListeners(a);
1504
- return;
1505
- }
1506
- } catch {
1507
- if (s !== a.generation) return;
1508
- a.loading = !1, a.controller = null, a.loaded = null, a.loadedTerm = t, this.notifyFilterListeners(a);
1509
- return;
1510
- }
1511
- }
1512
- a.loaded = this.localDistincts(e), a.loadedTerm = "", a.fromLocal = !0, this.rebucket(a), this.notifyFilterListeners(a);
1513
- }
1514
- /**
1515
- * Recomputes the OPEN column's list when it is locally derived and the rows
1516
- * changed under it.
1517
- *
1518
- * This is what makes the `remaining` bucket work at all. A consumer applies a
1519
- * filter by rebinding `data` to the subset; if the list were not recomputed,
1520
- * `loaded` would still describe the pre-filter rows, every snapshot value
1521
- * would still look present, and nothing would ever be marked as having left
1522
- * the data.
1523
- *
1524
- * Only the open column, and only the local path: a closed panel reloads when
1525
- * it opens, and a consumer-supplied source owns its own freshness — re-asking
1526
- * it on every `data` assignment would be a request per keystroke of whatever
1527
- * the consumer's own filtering does.
1528
- */
1529
- refreshLocalDistincts() {
1530
- if (!this._openFilterColumn) return;
1531
- const e = this._filterStates.get(this._openFilterColumn);
1532
- !e || !e.fromLocal || (e.loaded = this.localDistincts(this._openFilterColumn), this.rebucket(e), this.notifyFilterListeners(e));
1533
- }
1534
- /**
1535
- * The value list computed from the rows this element holds — but only when it
1536
- * holds all of them.
1537
- *
1538
- * With a `fetch` callback, external paging, or loaded tree children, `_data`
1539
- * is a window onto a larger set, and a list built from a window silently omits
1540
- * values. There is no partial answer worth giving there: the column reports
1541
- * that it has no values and the consumer is expected to supply `distincts`.
1542
- */
1543
- localDistincts(e) {
1544
- if (this._fetch != null || this.isExternallyPaged() || this._childCache.size > 0) return null;
1545
- const t = this.mergedLabels, a = [];
1546
- return this._data.forEach((s) => {
1547
- const i = s?.[e];
1548
- g(a, i) || a.push({ value: i, label: t.filterValue(i) });
1549
- }), a.sort((s, i) => s.label.localeCompare(i.label)), { matching: a, remaining: [], hasMore: !1 };
1550
- }
1551
- /**
1552
- * Re-derives `matching` / `remaining` from the snapshot and the search term.
1553
- *
1554
- * `remaining` holds snapshot values the current list no longer contains: they
1555
- * stay listed (dimmed) so a selection can be widened. Search is applied to
1556
- * both buckets client-side — the debounced re-query above is the exception,
1557
- * not the rule.
1558
- */
1559
- rebucket(e) {
1560
- if (!e.loaded) {
1561
- e.view = null;
1562
- return;
1563
- }
1564
- const t = e.term.trim().toLowerCase(), a = (o) => t === "" || o.label.toLowerCase().includes(t), s = [...e.loaded.matching, ...e.loaded.remaining], i = 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;
1565
- e.view = {
1566
- matching: i.filter(a),
1567
- remaining: r.filter(a),
1568
- hasMore: e.loaded.hasMore
1569
- };
1570
- }
1571
- /** The open column's trigger button, or null. Re-queried on every call. */
1572
- openFilterTrigger() {
1573
- return this._openFilterColumn ? this.renderRoot?.querySelector(
1574
- `tr.filter-row th[data-column="${this._openFilterColumn}"] .filter-trigger`
1575
- ) ?? null : null;
1576
- }
1577
- onFilterTriggerClick(e, t) {
1578
- if (t.preventDefault(), t.stopPropagation(), this._openFilterColumn === e.name) {
1579
- this.filterOverlay.close();
1580
- return;
1581
- }
1582
- 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(
1583
- new CustomEvent("mp-datatable-filter-open", {
1584
- detail: { column: e.name },
1585
- bubbles: !0,
1586
- composed: !0
1587
- })
1588
- );
1589
- }
1590
- /**
1591
- * Renders the open panel into the overlay pane, with a render root of its
1592
- * own. The panel is NOT part of this element's template: relocating a node
1593
- * lit rendered is unsupported, so the pane gets its own `render()` call
1594
- * whose container happens to live in `document.body`.
1595
- *
1596
- * The consumer's node is appended AFTER the template has been stamped —
1597
- * `stampScope` recurses, so stamping a subtree that already holds consumer
1598
- * DOM would brand it with our scope and let our rules match their content.
1599
- *
1600
- * ### Why this dialog is deliberately NOT `aria-modal` (#416)
1601
- *
1602
- * Tab is contained and Escape closes, but the rest of the page stays
1603
- * available to assistive tech — and it must. A column filter is anchored to
1604
- * its trigger, dismissible, and does not own the page.
1605
- *
1606
- * `aria-modal="true"` would tell a screen reader that everything outside the
1607
- * panel is unavailable while a virtual cursor could still walk into the table
1608
- * behind it. The honest way to keep that promise — marking the table `inert`
1609
- * while the panel is open — would hide the very rows whose values the user is
1610
- * picking from, which is worse than the inconsistency it fixes.
1611
- *
1612
- * So it is a non-modal dialog: the wrong claim removed rather than an
1613
- * unfinished one completed. `OverlayController` is right to refuse to guess
1614
- * whether its host is a dialog or a menu; the call belongs here, where the
1615
- * component knows what it is.
1616
- */
1617
- renderFilterPanel() {
1618
- const e = this.filterOverlay.portalContainer;
1619
- if (!e) return;
1620
- const t = this._columns.find((r) => r.name === this._openFilterColumn);
1621
- if (!t) return;
1622
- const a = this.filterState(t.name);
1623
- v(
1624
- c`
1625
- <div
1626
- class="filter-panel"
1627
- id=${this.filterPanelId}
1628
- role="dialog"
1629
- aria-label=${this.mergedLabels.filterColumn(t.label ?? t.name)}
1630
- >
1631
- <div class="filter-panel-body"></div>
1632
- </div>
1633
- `,
1634
- e
1635
- );
1636
- const s = e.querySelector(".filter-panel-body");
1637
- if (!s || !a) return;
1638
- if (this._mountedFilterColumn === t.name && s.firstChild) {
1639
- this._consumerMountedFilter || this.renderDefaultFilterPanel(t, a, s);
1640
- return;
1641
- }
1642
- const i = t.filterRenderer?.(t, a.ctx) ?? null;
1643
- if (i) {
1644
- s.replaceChildren(i), this._consumerMountedFilter = !0, this._mountedFilterColumn = t.name;
1645
- return;
1646
- }
1647
- this._consumerMountedFilter = !1, this.renderDefaultFilterPanel(t, a, s), this._mountedFilterColumn = t.name;
1648
- }
1649
- /**
1650
- * The built-in panel: clear, search, invert, checkbox list.
1651
- *
1652
- * Rendered with a `render()` of its own into the panel body, for the same
1653
- * reason the panel itself is: this is not part of the element's template, and
1654
- * lit must own the container it diffs. The checkbox list is keyed on `value`
1655
- * so a repaint after a re-query moves rows instead of rebuilding them — an
1656
- * unkeyed list would rebuild the input the user is interacting with.
1657
- */
1658
- renderDefaultFilterPanel(e, t, a) {
1659
- if ((e.filterMode ?? "values") === "comparison") {
1660
- this.renderComparisonFilterPanel(e, t, a);
1661
- return;
1662
- }
1663
- const s = this.mergedLabels, i = e.label ?? e.name, r = t.view, o = t.selection.values, l = [
1664
- ...o,
1665
- ...(r?.matching ?? []).filter((d) => !g(o, d.value)),
1666
- ...(r?.remaining ?? []).filter((d) => !g(o, d.value))
1667
- ], h = (d) => !!r && g(r.remaining, d);
1668
- v(
1669
- c`
1670
- <button
1671
- type="button"
1672
- class="filter-clear"
1673
- ?disabled=${o.length === 0 && !t.selection.inverse}
1674
- @click=${() => this.onFilterClear(e.name)}
1675
- >
1676
- ${s.filterClear(i)}
1677
- </button>
1678
- <input
1679
- type="search"
1680
- class="filter-search"
1681
- .value=${t.term}
1682
- aria-label=${s.filterSearch}
1683
- @input=${(d) => t.ctx.search(d.target.value)}
1684
- />
1685
- <button
1686
- type="button"
1687
- class="filter-invert"
1688
- aria-pressed=${t.selection.inverse ? "true" : "false"}
1689
- @click=${() => t.ctx.apply(o, !t.selection.inverse)}
1690
- >
1691
- ${s.filterInvert}
1692
- </button>
1693
- <div class="filter-options" role="group" aria-label=${s.filterGroup(i)}>
1694
- ${t.loading ? c`<span class="filter-loading">${s.loading}</span>` : u}
1695
- ${x(
1696
- l,
1697
- (d) => d.value,
1698
- (d) => c`
1699
- <label class=${w({ "filter-option": !0, "filter-remaining": h(d.value) })}>
1700
- <input
1701
- type="checkbox"
1702
- .checked=${g(o, d.value)}
1703
- @change=${(p) => this.onFilterToggle(e.name, d, p.target.checked)}
1704
- />
1705
- <span>${d.label}</span>
1706
- </label>
1707
- `
1708
- )}
1709
- ${l.length === 0 && !t.loading ? c`<span class="filter-no-values">${s.filterNoValues}</span>` : u}
1710
- </div>
1711
- ${r?.hasMore ? c`<span class="filter-has-more">${s.filterHasMore}</span>` : u}
1712
- `,
1713
- a
1714
- );
1715
- }
1716
- /**
1717
- * The `'comparison'` panel: an operator and one operand.
1718
- *
1719
- * It deliberately does NOT load distinct values — the whole point of this mode
1720
- * is that the column's values are a quantity rather than a set worth listing,
1721
- * so asking the source for them would be a round trip whose answer is never
1722
- * displayed.
1723
- */
1724
- renderComparisonFilterPanel(e, t, a) {
1725
- const s = this.mergedLabels, i = e.label ?? e.name, r = e.filterOperators?.length ? e.filterOperators : N, o = t.selection.operator ?? r[0], l = t.selection.operand, h = e.filterInputType ?? "number", d = () => a.querySelector(".filter-operand")?.value ?? "", p = () => a.querySelector(".filter-operator")?.value ?? o;
1726
- v(
1727
- c`
1728
- <button
1729
- type="button"
1730
- class="filter-clear"
1731
- ?disabled=${l == null}
1732
- @click=${() => this.onFilterClear(e.name)}
1733
- >
1734
- ${s.filterClear(i)}
1735
- </button>
1736
- <div class="filter-comparison">
1737
- <select
1738
- class="filter-operator"
1739
- aria-label=${s.filterOperator}
1740
- @change=${() => this.applyComparison(e.name, p(), d())}
1741
- >
1742
- ${r.map(
1743
- (f) => c`
1744
- <option value=${f} ?selected=${f === o}>
1745
- ${D[f]} ${s.filterOperatorLabel(f)}
1746
- </option>
1747
- `
1748
- )}
1749
- </select>
1750
- <input
1751
- class="filter-operand"
1752
- type=${h}
1753
- .value=${O(t.operandText)}
1754
- aria-label=${s.filterOperand}
1755
- @input=${() => this.applyComparison(e.name, p(), d())}
1756
- />
1757
- </div>
1758
- `,
1759
- a
1760
- );
1761
- }
1762
- onFilterToggle(e, t, a) {
1763
- const s = this.filterState(e);
1764
- if (!s) return;
1765
- const i = a ? [...s.selection.values, t] : s.selection.values.filter((r) => !P(r.value, t.value));
1766
- s.ctx.apply(i, s.selection.inverse);
1767
- }
1768
- onFilterClear(e) {
1769
- const t = this.filterState(e);
1770
- t && (t.ctx.clear(), this.filterOverlay.portalContainer?.querySelector(".filter-search, .filter-operand")?.focus({ preventScroll: !0 }));
1771
- }
1772
- /**
1773
- * The second `<thead>` row. One cell per column in the SAME order as row 1,
1774
- * gutters included — alignment is structural, not a CSS problem, and the
1775
- * empty cells for non-filterable columns are what keeps it that way.
1776
- *
1777
- * The cells deliberately carry no width. Widths live on row 1's `<th>`, and
1778
- * `table-layout: fixed` resolves columns from the first row only, so this row
1779
- * cannot perturb geometry once the measure pass has run. Before it runs the
1780
- * table is `auto`, where the row is only harmless because `.filter-trigger`
1781
- * is width-neutral — see the note on that rule in `datatable.light.scss`.
1782
- */
1783
- renderFilterRow(e) {
1784
- return c`
1785
- <tr role="row" aria-rowindex="2" class="filter-row">
1786
- ${this._tree ? c`<th class="filter-cell tree-chevron-cell"></th>` : u}
1787
- ${e ? c`<th class="filter-cell checkbox-cell"></th>` : u}
1788
- ${this._columns.map((t) => this.renderFilterCell(t))}
1789
- </tr>
1790
- `;
1791
- }
1792
- renderFilterCell(e) {
1793
- if (!e.filterable)
1794
- return c`<th class="filter-cell p-0" data-column=${e.name} scope="col"></th>`;
1795
- const t = this._openFilterColumn === e.name, a = this.mergedLabels, s = e.label ?? e.name, i = e.filterActive ? a.filterColumnActive(s, e.filterSummary) : a.filterColumn(s);
1796
- return c`
1797
- <th class="filter-cell p-0" data-column=${e.name} scope="col">
1798
- <button
1799
- type="button"
1800
- class=${w({
1801
- "filter-trigger": !0,
1802
- "p-2": !0,
1803
- "rounded-0": !0,
1804
- active: !!e.filterActive,
1805
- open: t
1806
- })}
1807
- id=${this.filterTriggerId(e.name)}
1808
- aria-expanded=${t ? "true" : "false"}
1809
- aria-controls=${t ? this.filterPanelId : u}
1810
- aria-label=${i}
1811
- @click=${(r) => this.onFilterTriggerClick(e, r)}
1812
- >
1813
- <svg class="filter-icon" viewBox="0 0 16 16" aria-hidden="true" focusable="false">
1814
- <path d="M2 3h12l-4.5 5.25V13L6.5 11.5V8.25L2 3z" />
1815
- </svg>
1816
- ${e.filterSummary ? c`<span class="filter-summary">${e.filterSummary}</span>` : u}
1817
- </button>
1818
- </th>
1819
- `;
1820
- }
1821
- renderHeader(e, t) {
1822
- const a = e.sortable ?? !0, s = this._sortColumns.findIndex((h) => h.property === e.name), i = 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, l = {};
1823
- return typeof r == "number" && (l.width = `${r}px`, l.minWidth = `${r}px`), c`
1824
- <th
1825
- scope="col"
1826
- data-column=${e.name}
1827
- data-sortable=${a ? "true" : "false"}
1828
- aria-sort=${i ? i === "ascending" ? "ascending" : "descending" : "none"}
1829
- style=${_(l)}
1830
- >
1831
- ${a ? c`<button
1832
- type="button"
1833
- class="header-cell header-sort"
1834
- @click=${(h) => this.onHeaderClick(e, h)}
1835
- >
1836
- <span>${C(o)}</span>
1837
- ${s >= 0 && this._sortColumns.length > 1 ? c`<span class="sort-index">${s + 1}</span>` : u}
1838
- </button>` : c`<span class="header-cell">
1839
- <span>${C(o)}</span>
1840
- </span>`}
1841
- ${this._resizableColumns ? c`<span
1842
- class="resize-handle"
1843
- role="separator"
1844
- tabindex="0"
1845
- aria-orientation="vertical"
1846
- aria-label=${this.mergedLabels.resizeColumn(e.label ?? e.name)}
1847
- aria-valuemin=${F}
1848
- aria-valuenow=${Math.round(r ?? 0) || u}
1849
- @pointerdown=${(h) => this.startColumnResize(e, h)}
1850
- @keydown=${(h) => this.onResizeHandleKeydown(e, h)}
1851
- ></span>` : u}
1852
- </th>
1853
- `;
1854
- }
1855
- renderRow(e, t, a, s) {
1856
- const { row: i, depth: r, isExpanded: o, isPlaceholder: l } = e, h = !l && this._selectedIds.has(t), d = !l && this._cutIds.has(t), p = !l && this._focusedRowKey === t, f = l ? 0 : this.extractChildCount(i), b = this._tree && !l && f > 0, k = !l && i != null && this.isParentIndeterminate(i, t);
1857
- return c`
1858
- <tr
1859
- role="row"
1860
- aria-rowindex=${a + 1 + (this.hasFilterRow ? 2 : 1)}
1861
- aria-level=${this._tree ? r + 1 : u}
1862
- aria-expanded=${this._tree && f > 0 ? o ? "true" : "false" : u}
1863
- aria-busy=${l ? "true" : u}
1864
- aria-selected=${!l && this._selectionMode !== "none" ? h ? "true" : "false" : u}
1865
- data-row-key=${t}
1866
- data-selected=${h ? "true" : "false"}
1867
- data-cut=${d ? "true" : "false"}
1868
- data-focused=${p ? "true" : "false"}
1869
- data-placeholder=${l ? "true" : "false"}
1870
- data-depth=${this._tree ? String(r) : u}
1871
- data-clickable=${!l && (this._selectionMode !== "none" || this.hasRowClickListeners()) ? "true" : "false"}
1872
- tabindex=${!l && (this._selectionMode !== "none" || this._tree) ? this._focusedRowKey === t || this._focusedRowKey === null && a === 0 ? "0" : "-1" : u}
1873
- @focus=${l ? null : () => {
1874
- this._focusedRowKey = t, this.requestUpdate();
1875
- }}
1876
- @click=${l ? null : (m) => this.onRowClick(i, t, a, m)}
1877
- @dblclick=${l ? null : (m) => this.onRowDblClick(i, t, a, m)}
1878
- @contextmenu=${l ? null : (m) => this.onRowContextMenu(i, t, a, m)}
1879
- @keydown=${l ? null : (m) => this.onRowKeydown(i, t, a, e.parentId, r, o, f, m)}
1880
- >
1881
- ${this._tree ? c`<td class="tree-chevron-cell" style=${_({ paddingInlineStart: `${r * this._treeIndent}rem` })}>
1882
- ${b ? c`<button
1883
- type="button"
1884
- class="tree-chevron"
1885
- aria-label=${o ? this.mergedLabels.collapseRow : this.mergedLabels.expandRow}
1886
- aria-expanded=${o ? "true" : "false"}
1887
- data-expanded=${o ? "true" : "false"}
1888
- @click=${(m) => this.toggleExpand(i, e.parentId, r, m)}
1889
- >${o ? "▾" : "▸"}</button>` : u}
1890
- </td>` : u}
1891
- ${s ? c`<td
1892
- class=${w({ "checkbox-cell": !0, "checkbox-cell-toggles": this._selectionMode === "checkbox" })}
1893
- @click=${l ? (m) => m.stopPropagation() : (m) => this.onCheckboxCellClick(i, t, m)}
1894
- @dblclick=${(m) => m.stopPropagation()}
1895
- >
1896
- ${l ? u : c`<mp-checkbox
1897
- .checked=${h}
1898
- .indeterminate=${k}
1899
- @change=${() => this.onRowCheckboxToggle(i, t)}
1900
- ></mp-checkbox>`}
1901
- </td>` : u}
1902
- ${this._rowRenderer ? this.renderRowFromRenderer(i, a, { 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((m) => this.renderCell(i, m, a))}
1903
- </tr>
1904
- `;
1905
- }
1906
- /**
1907
- * Names every rendered row checkbox (D14): `rowLabel(row)`, else the trimmed
1908
- * text of the row's first data cell, else the row number.
1909
- *
1910
- * Runs after each render rather than in the template because the cell text
1911
- * only exists once the cell is rendered — and it may be consumer DOM from a
1912
- * `cellRenderer` or `rowRenderer` — so a re-rendered cell renames its
1913
- * checkbox on the same update. The attribute is written only when it
1914
- * changes, so an unchanged name costs no mutation.
1915
- */
1916
- nameRowCheckboxes() {
1917
- if (!this.isMulti) return;
1918
- const e = this.mergedLabels, t = new Map(this.computeVisibleRows().map((s) => [s.key, s])), a = this.renderRoot.querySelectorAll('tbody tr[data-row-key]:not([data-placeholder="true"])');
1919
- for (const s of a) {
1920
- const i = s.querySelector(":scope > td.checkbox-cell > mp-checkbox"), r = t.get(s.dataset.rowKey ?? "");
1921
- if (!i || !r) continue;
1922
- const o = this._rowLabel?.(r.row)?.trim(), l = s.querySelector(":scope > td:not(.checkbox-cell):not(.tree-chevron-cell)")?.textContent?.trim(), h = o || l, d = h ? e.selectRowNamed(h) : e.selectRow(r.rowIndex + 1);
1923
- i.getAttribute("aria-label") !== d && i.setAttribute("aria-label", d);
1924
- }
1925
- }
1926
- renderRowFromRenderer(e, t, a) {
1927
- const s = this._rowRenderer(e, t, a);
1928
- if (s == null)
1929
- return a.isPlaceholder ? c`<td colspan=${this._columns.length} class="tree-placeholder-cell" aria-label=${this.mergedLabels.loading}>…</td>` : this._columns.map((i) => this.renderCell(e, i, t));
1930
- if (Array.isArray(s) || J(s)) {
1931
- const i = [];
1932
- for (const r of s) i.push(r);
1933
- return i;
1934
- }
1935
- return s;
1936
- }
1937
- renderCell(e, t, a) {
1938
- const s = t.cellRenderer ? t.cellRenderer(e, t, a) : Y(e, t);
1939
- return c`<td class=${t.cellClass ?? ""} data-column=${t.name}>${C(s)}</td>`;
1940
- }
1941
- renderFooter(e) {
1942
- const t = Array.from({ length: e }, (a, s) => s + 1);
1943
- return c`
1944
- <div class="datatable-footer">
1945
- <mp-pagination
1946
- class="datatable-per-page"
1947
- aria-label=${this.mergedLabels.rowsPerPage}
1948
- .pageNumbers=${this._perPageOptions}
1949
- .selectedPageNumber=${this._perPage}
1950
- .showArrows=${!1}
1951
- @mp-pagination-page-change=${(a) => this.setPerPage(a.detail.page)}
1952
- ></mp-pagination>
1953
- <mp-pagination
1954
- class="datatable-pagination"
1955
- .pageNumbers=${t}
1956
- .selectedPageNumber=${this._page}
1957
- .numberOfBoxes=${7}
1958
- .showArrows=${!0}
1959
- @mp-pagination-page-change=${(a) => this.gotoPage(a.detail.page)}
1960
- ></mp-pagination>
1961
- </div>
1962
- `;
1963
- }
1964
- setPerPage(e) {
1965
- const t = Math.max(1, Math.floor(e || 1));
1966
- this._perPage !== t && (this._perPage = t, this._page = 1, this.requestUpdate(), this.scheduleFetchReload(), this.dispatchEvent(
1967
- new CustomEvent("mp-datatable-per-page-change", {
1968
- detail: { perPage: t },
1969
- bubbles: !0,
1970
- composed: !0
1971
- })
1972
- ), this.dispatchEvent(
1973
- new CustomEvent("mp-datatable-page-change", {
1974
- detail: { page: 1 },
1975
- bubbles: !0,
1976
- composed: !0
1977
- })
1978
- ));
1979
- }
1980
- getEffectiveData() {
1981
- if (this._tree || this.isRootWindowed())
1982
- return this.getFlatList().map((t) => t.row);
1983
- let e = this._data;
1984
- if (this._autoSort && this._sortColumns.length > 0 && (e = y(e, this._sortColumns)), this._pagination && !this.isExternallyPaged()) {
1985
- const t = (this._page - 1) * this._perPage;
1986
- e = e.slice(t, t + this._perPage);
1987
- }
1988
- return e;
1989
- }
1990
- /**
1991
- * Flat list of visible rows including expansion + placeholders. Computed
1992
- * each render in tree mode; flat mode produces a trivial mapping of `_data`
1993
- * (after sort+pagination) with default metadata.
1994
- *
1995
- * Memoised via `_cachedFlatList`, cleared in `willUpdate`. Multiple calls
1996
- * during the same render cycle (`computeVisibleRows`,
1997
- * `getVirtualSpacerHeights`, aria-rowcount) share one computation.
1998
- */
1999
- getFlatList() {
2000
- if (this._cachedFlatList !== null) return this._cachedFlatList;
2001
- if (!this._tree) {
2002
- if (this.isRootWindowed()) {
2003
- const o = this._totalRecords ?? this._data.length, l = Math.max(1, this._perPage), h = new Array(o);
2004
- for (let d = 0; d < o; d++) {
2005
- const p = Math.floor(d / l) + 1, f = d % l, b = p === 1 ? this._data[f] : this._pageCache.get(p)?.[f];
2006
- h[d] = b !== void 0 ? { row: b, key: this._rowKey(b, d), depth: 0, parentId: null, isExpanded: !1, isPlaceholder: !1 } : { row: void 0, key: `__placeholder-flat-${d}`, depth: 0, parentId: null, page: p, isExpanded: !1, isPlaceholder: !0 };
2007
- }
2008
- return this._cachedFlatList = h;
2009
- }
2010
- const i = this._pagination ? (this._page - 1) * this._perPage : 0, r = this._pagination && !this.isExternallyPaged() ? this.localSortedRows().slice(i, i + this._perPage) : this.localSortedRows();
2011
- return this._cachedFlatList = r.map((o, l) => ({
2012
- row: o,
2013
- key: this._rowKey(o, i + l),
2014
- depth: 0,
2015
- parentId: null,
2016
- isExpanded: !1,
2017
- isPlaceholder: !1
2018
- }));
2019
- }
2020
- const e = [], t = Math.max(1, this._perPage), a = (i) => this._autoSort && this._sortColumns.length > 0 ? y(i, this._sortColumns) : i, s = (i, r, o) => {
2021
- const l = this.extractId(i), h = l != null && this._expandedIds.has(l), d = this.extractChildCount(i);
2022
- if (e.push({ row: i, key: this._rowKey(i, e.length), depth: r, parentId: o, isExpanded: h, isPlaceholder: !1 }), !h || d === 0 || l == null) return;
2023
- const p = this._childCache.get(l);
2024
- if (p && p.length > 0) {
2025
- for (const b of a(p)) s(b, r + 1, l);
2026
- const f = this._childTotals.get(l) ?? p.length;
2027
- for (let b = 0; b < Math.max(0, f - p.length); b++)
2028
- e.push({ row: void 0, key: `__placeholder-${String(l)}-${p.length + b}`, depth: r + 1, parentId: l, isExpanded: !1, isPlaceholder: !0 });
2029
- } else
2030
- for (let f = 0; f < d; f++)
2031
- e.push({ row: void 0, key: `__placeholder-${String(l)}-${f}`, depth: r + 1, parentId: l, isExpanded: !1, isPlaceholder: !0 });
2032
- };
2033
- if (this.isRootWindowed()) {
2034
- const i = this._totalRecords ?? this._data.length;
2035
- for (let r = 0; r < i; r++) {
2036
- const o = Math.floor(r / t) + 1, l = r % t, h = o === 1 ? this._data[l] : this._pageCache.get(o)?.[l];
2037
- h === void 0 ? e.push({ row: void 0, key: `__placeholder-root-${r}`, depth: 0, parentId: null, page: o, isExpanded: !1, isPlaceholder: !0 }) : s(h, 0, null);
2038
- }
2039
- } else {
2040
- const i = this._autoSort && this._sortColumns.length > 0 ? y(this._data, this._sortColumns) : this._data;
2041
- for (const r of i) s(r, 0, null);
2042
- }
2043
- return this._cachedFlatList = e;
2044
- }
2045
- /** `_data` in display order: client-sorted when the WC owns sorting. */
2046
- localSortedRows() {
2047
- return this._autoSort && this._sortColumns.length > 0 ? y(this._data, this._sortColumns) : this._data;
2048
- }
2049
- /**
2050
- * Drops the flat-list memo. It is otherwise reset only in `willUpdate`, so a
2051
- * path that runs between a data change and the next render (a programmatic
2052
- * setter, an event fired before the re-render) would read the old rows.
2053
- */
2054
- freshFlatList() {
2055
- return this._cachedFlatList = null, this.getFlatList();
2056
- }
2057
- /**
2058
- * Every loaded row that has a renderer-assigned key, as `[key, row]`. The keys
2059
- * are the ones the renderer uses (K1): a positional fallback key only means
2060
- * anything at the row's rendered index. With local pagination every page is
2061
- * loaded, so rows of the other pages are keyed by their global index too.
2062
- */
2063
- liveRowEntries(e) {
2064
- const t = e.filter((a) => !a.isPlaceholder).map((a) => [a.key, a.row]);
2065
- return this._tree || !this._pagination || this.isExternallyPaged() ? t : this.localSortedRows().map((a, s) => [this._rowKey(a, s), a]);
2066
- }
2067
- /**
2068
- * The key the renderer gives a row object. A row outside the live entries (a
2069
- * child of a collapsed parent, a row only the host knows) has no rendered
2070
- * index, so it falls back to an index-free `rowKey` call — exact for any
2071
- * id-based key, and a positional key is already warned about.
2072
- */
2073
- keyOfRow(e) {
2074
- const t = this.getFlatList();
2075
- return this._keyByRowMemo?.list !== t && (this._keyByRowMemo = { list: t, byRow: new Map(this.liveRowEntries(t).map(([a, s]) => [s, a])) }), this._keyByRowMemo.byRow.get(e) ?? this._rowKey(e, -1);
2076
- }
2077
- /** `keyOfRow` against the current data, for paths that may run before a re-render. */
2078
- rowKeyLookup() {
2079
- return this.freshFlatList(), (e) => this.keyOfRow(e);
2080
- }
2081
- computeVisibleRows() {
2082
- const e = this.getFlatList(), t = this._tree ? 0 : this._pagination ? (this._page - 1) * this._perPage : 0;
2083
- let a = e, s = 0;
2084
- if (this._virtualScroll) {
2085
- const { startIndex: i, endIndex: r } = this._virtualRange;
2086
- a = e.slice(i, r), s = i;
2087
- }
2088
- return a.map((i, r) => {
2089
- const o = t + s + r;
2090
- return { row: i.row, rowIndex: o, key: i.key, flat: i };
2091
- });
2092
- }
2093
- // ─── Tree-mode helpers ───────────────────────────────────────────────────
2094
- extractId(e) {
2095
- return !this._idKey || e == null || typeof e != "object" ? null : typeof this._idKey == "function" ? this._idKey(e) : e[this._idKey];
2096
- }
2097
- extractChildCount(e) {
2098
- if (!this._childCountKey || e == null || typeof e != "object") return 0;
2099
- const t = e[this._childCountKey];
2100
- return typeof t == "number" && t > 0 ? t : 0;
2101
- }
2102
- /**
2103
- * Walks the loaded subtree of `row` and returns `[key, row]` for every
2104
- * descendant — the row too, because a cascade selects it and the selection
2105
- * remembers the rows it selected.
2106
- */
2107
- collectDescendants(e) {
2108
- const t = this.extractId(e), a = t != null ? this._childCache.get(t) : void 0;
2109
- return a ? a.flatMap((s) => [[this.keyOfRow(s), s], ...this.collectDescendants(s)]) : [];
2110
- }
2111
- /** Some-but-not-all loaded descendants selected → indeterminate parent checkbox. */
2112
- isParentIndeterminate(e, t) {
2113
- return this._selectionStrategy !== "cascading" || e == null ? !1 : this.getIndeterminateKeys().has(t);
2114
- }
2115
- /**
2116
- * Per-render memo: the set of row keys whose loaded subtree is partially
2117
- * selected. Built in one DFS over `_childCache` so each loaded parent is
2118
- * visited exactly once per render. Replaces the previous
2119
- * `collectDescendantKeys`-per-visible-row recursion which was O(visible ×
2120
- * descendants) per render.
2121
- */
2122
- getIndeterminateKeys() {
2123
- if (this._cachedIndeterminateKeys !== null) return this._cachedIndeterminateKeys;
2124
- const e = /* @__PURE__ */ new Set();
2125
- if (this._selectionStrategy !== "cascading" || !this._tree)
2126
- return this._cachedIndeterminateKeys = e;
2127
- const t = (a) => {
2128
- const s = this.extractId(a);
2129
- if (s == null) return { selected: 0, total: 0 };
2130
- const i = this._childCache.get(s);
2131
- if (!i || i.length === 0) return { selected: 0, total: 0 };
2132
- let r = 0, o = 0;
2133
- for (const l of i) {
2134
- const h = this.keyOfRow(l), d = this._selectedIds.has(h) ? 1 : 0, p = t(l);
2135
- r += d + p.selected, o += 1 + p.total;
2136
- }
2137
- return o > 0 && r > 0 && r < o && e.add(this.keyOfRow(a)), { selected: r, total: o };
2138
- };
2139
- for (const a of this._data) t(a);
2140
- return this._cachedIndeterminateKeys = e;
2141
- }
2142
- /**
2143
- * Toggle a row's expanded state. On expand, fires a fetch-request event if
2144
- * children aren't cached yet so the wrapper can bridge to the consumer's
2145
- * `[fetch]` callback. Always fires `expanded-ids-change`.
2146
- */
2147
- toggleExpand(e, t, a, s) {
2148
- s.stopPropagation(), s.preventDefault();
2149
- const i = this.extractId(e);
2150
- if (i == null) return;
2151
- const r = new Set(this._expandedIds);
2152
- let o;
2153
- r.has(i) ? (r.delete(i), o = !1) : (r.add(i), o = !0), this._expandedIds = r, o ? (this.dispatchEvent(
2154
- new CustomEvent("mp-datatable-row-expand", {
2155
- detail: { row: e, depth: a, parentId: t },
2156
- bubbles: !0,
2157
- composed: !0
2158
- })
2159
- ), this.extractChildCount(e) > 0 && !this._childCache.has(i) && !this._pendingFetches.has(i) && this.fetchChildren(i)) : this.dispatchEvent(
2160
- new CustomEvent("mp-datatable-row-collapse", {
2161
- detail: { row: e, depth: a, parentId: t },
2162
- bubbles: !0,
2163
- composed: !0
2164
- })
2165
- ), this.emitExpandedIdsChange(), this.requestUpdate();
2166
- }
2167
- emitExpandedIdsChange() {
2168
- this.dispatchEvent(
2169
- new CustomEvent("mp-datatable-expanded-ids-change", {
2170
- detail: { expandedIds: new Set(this._expandedIds) },
2171
- bubbles: !0,
2172
- composed: !0
2173
- })
2174
- );
2175
- }
2176
- // ─── Fetch-callback driver (the WC owns the whole server-paged loop) ─────
2177
- /**
2178
- * Fetch a windowed root page (≥ 2) into the page cache. Called when a root
2179
- * placeholder scrolls into view. Keyed on the requested page, so a server
2180
- * that echoes a different page number can't deadlock the window.
2181
- * Generation-guarded against responses that land after an invalidation.
2182
- */
2183
- async fetchWindowPage(e) {
2184
- if (!this._fetch || e <= 1) return;
2185
- this._pendingPageFetches.add(e);
2186
- const t = this._fetchGeneration;
2187
- try {
2188
- const a = await this._fetch({ parentId: null, page: e, perPage: this._perPage, sortColumns: [...this._sortColumns] });
2189
- if (t !== this._fetchGeneration || !this._fetch) return;
2190
- this._pendingPageFetches.delete(e), this._pageCache.set(e, [...a?.data ?? []]);
2191
- const s = a?.totalRecords == null ? null : Math.max(0, Math.floor(a.totalRecords));
2192
- s != null && (this._totalRecords = s), this.requestUpdate();
2193
- } catch (a) {
2194
- this._pendingPageFetches.delete(e), console.error("[mp-datatable] fetch failed for root page", e, a);
2195
- }
2196
- }
2197
- /**
2198
- * Fetch a node's children into the child cache. Called on expand or when a
2199
- * child placeholder scrolls into view. Generation-guarded.
2200
- */
2201
- async fetchChildren(e) {
2202
- if (!this._fetch || e == null) return;
2203
- this._pendingFetches.add(e);
2204
- const t = this._fetchGeneration;
2205
- try {
2206
- const a = await this._fetch({ parentId: e, page: 1, perPage: this._perPage, sortColumns: [...this._sortColumns] });
2207
- if (t !== this._fetchGeneration || !this._fetch) return;
2208
- this._pendingFetches.delete(e), this._childCache.set(e, [...a?.data ?? []]), this._childTotals.set(e, a?.totalRecords ?? a?.data?.length ?? 0), this.requestUpdate();
2209
- } catch (a) {
2210
- this._pendingFetches.delete(e), console.error("[mp-datatable] fetch failed for children of", e, a);
2211
- }
2212
- }
2213
- /**
2214
- * Fetch a single page of roots and make it the page-1 data (initial load and
2215
- * non-virtual pagination). The grand total is read from the response —
2216
- * consumers never set `totalRecords`. Generation-guarded against stale loads.
2217
- */
2218
- async loadPage(e) {
2219
- if (!this._fetch) return;
2220
- const t = this._fetchGeneration;
2221
- let a;
2222
- try {
2223
- a = await this._fetch({ parentId: null, page: e, perPage: this._perPage, sortColumns: [...this._sortColumns] });
2224
- } catch (i) {
2225
- console.error("[mp-datatable] fetch failed for page", e, i);
2226
- return;
2227
- }
2228
- if (t !== this._fetchGeneration || !this._fetch) return;
2229
- this._data = [...a?.data ?? []];
2230
- const s = a?.totalRecords == null ? null : Math.max(0, Math.floor(a.totalRecords));
2231
- this._totalRecords = s, this._initialFetchDone = !0, this.requestUpdate();
2232
- }
2233
- /**
2234
- * Coalesce sort/perPage/page changes (which arrive both as user actions and
2235
- * as echoed property pushes) into a single reload. A microtask debounces the
2236
- * burst; a `{sort,perPage,page}` change-key skips echoes that didn't actually
2237
- * change anything.
2238
- */
2239
- scheduleFetchReload() {
2240
- !this._fetch || this._reloadScheduled || (this._reloadScheduled = !0, queueMicrotask(() => {
2241
- if (this._reloadScheduled = !1, !this._fetch) return;
2242
- const e = JSON.stringify({
2243
- s: this._sortColumns,
2244
- pp: this._perPage,
2245
- p: this._virtualScroll ? 1 : this._page
2246
- });
2247
- 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));
2248
- }));
2249
- }
2250
- /**
2251
- * Row keymap, the same in every mode: ArrowUp/Down move, ArrowRight/Left
2252
- * expand/collapse a tree row, Enter opens (row-click), Space selects.
2253
- * 'single'/'multiple': Enter and Space both select with the click modifiers
2254
- * and emit row-click. 'checkbox': Enter only emits row-click, Space only
2255
- * toggles the row's checkbox.
2256
- */
2257
- onRowKeydown(e, t, a, s, i, r, o, l) {
2258
- if (!l.altKey && l.composedPath()[0] === l.currentTarget) {
2259
- if (l.key === "ArrowDown" || l.key === "ArrowUp") {
2260
- l.preventDefault();
2261
- const h = Array.from(
2262
- this.renderRoot.querySelectorAll("tbody tr[data-row-key]")
2263
- ), d = h.findIndex((f) => f.dataset.rowKey === t), p = h[d + (l.key === "ArrowDown" ? 1 : -1)];
2264
- p && p.focus();
2265
- return;
2266
- }
2267
- if (this._tree) {
2268
- if (l.key === "ArrowRight" && o > 0 && !r) {
2269
- this.toggleExpand(e, s, i, l);
2270
- return;
2271
- }
2272
- if (l.key === "ArrowLeft" && r) {
2273
- this.toggleExpand(e, s, i, l);
2274
- return;
2275
- }
2276
- }
2277
- if ((l.key === "Enter" || l.key === " ") && this._selectionMode === "checkbox") {
2278
- if (l.preventDefault(), this._focusedRowKey = t, l.key === " ") {
2279
- l.shiftKey || this.onRowCheckboxToggle(e, t), this.requestUpdate();
2280
- return;
2281
- }
2282
- this.requestUpdate(), this.dispatchEvent(
2283
- new CustomEvent("mp-datatable-row-click", {
2284
- detail: { row: e, rowIndex: a, rowKey: t, originalEvent: l },
2285
- bubbles: !0,
2286
- composed: !0
2287
- })
2288
- );
2289
- return;
2290
- }
2291
- (l.key === "Enter" || l.key === " ") && this._selectionMode !== "none" && (l.preventDefault(), this._focusedRowKey = t, this.handleSelectionOnClick(e, t, l), this.requestUpdate(), this.dispatchEvent(
2292
- new CustomEvent("mp-datatable-row-click", {
2293
- detail: { row: e, rowIndex: a, rowKey: t, originalEvent: l },
2294
- bubbles: !0,
2295
- composed: !0
2296
- })
2297
- ));
2298
- }
2299
- }
2300
- hasRowClickListeners() {
2301
- return !0;
2302
- }
2303
- /**
2304
- * Bound only to the sort <button>, which renders only for sortable columns;
2305
- * the resize handle is the button's sibling, so its clicks never land here.
2306
- */
2307
- onHeaderClick(e, t) {
2308
- const a = H(this._sortColumns, e.name, t.shiftKey);
2309
- this._sortColumns = a, this._page = 1;
2310
- const s = a.find((i) => i.property === e.name);
2311
- this.liveAnnouncer.announce(
2312
- this.mergedLabels.announceSorted(
2313
- e.label ?? e.name,
2314
- s ? s.direction === "ascending" ? "ascending" : "descending" : "none"
2315
- )
2316
- ), this.requestUpdate(), this.scheduleFetchReload(), this.dispatchEvent(
2317
- new CustomEvent("mp-datatable-sort-change", {
2318
- detail: { sortColumns: a },
2319
- bubbles: !0,
2320
- composed: !0
2321
- })
2322
- );
2323
- }
2324
- onRowClick(e, t, a, s) {
2325
- this._focusedRowKey = t, this._selectionMode !== "checkbox" && this.handleSelectionOnClick(e, t, s), this.requestUpdate(), this.dispatchEvent(
2326
- new CustomEvent("mp-datatable-row-click", {
2327
- detail: { row: e, rowIndex: a, rowKey: t, originalEvent: s },
2328
- bubbles: !0,
2329
- composed: !0
2330
- })
2331
- );
2332
- }
2333
- onRowDblClick(e, t, a, s) {
2334
- this.dispatchEvent(
2335
- new CustomEvent("mp-datatable-row-dblclick", {
2336
- detail: { row: e, rowIndex: a, rowKey: t, originalEvent: s },
2337
- bubbles: !0,
2338
- composed: !0
2339
- })
2340
- );
2341
- }
2342
- onRowContextMenu(e, t, a, s) {
2343
- this._selectionMode !== "none" && this._selectionMode !== "checkbox" && !this._selectedIds.has(t) && (this.commitSelection([t], [[t, e]]), this._focusedRowKey = t, this.emitSelectionChange(), this.requestUpdate()), this.dispatchEvent(
2344
- new CustomEvent("mp-datatable-row-contextmenu", {
2345
- detail: { row: e, rowIndex: a, rowKey: t, originalEvent: s },
2346
- bubbles: !0,
2347
- composed: !0,
2348
- cancelable: !0
2349
- })
2350
- ) || s.preventDefault();
2351
- }
2352
- /**
2353
- * A click anywhere in the checkbox cell, in every mode. The cell is
2354
- * selection-only, so neither its click nor its double-click reaches the row
2355
- * (D12: a double-click on a checkbox used to open the row).
2356
- *
2357
- * In 'checkbox' mode the whole cell is the hit target, not just the 20px box.
2358
- * A click that went through the checkbox's own shadow root is the checkbox
2359
- * operating itself (its change handler toggles), so it is left alone; every
2360
- * other click toggles here. `closest('mp-checkbox')` cannot tell the two
2361
- * apart: a click on the checkbox host's padding is retargeted to the host yet
2362
- * fires no change, so it would be swallowed (spike S1). No focus() and no
2363
- * preventDefault(): the browser focuses the row natively, which keeps Enter,
2364
- * Space and the arrow keys working from there (spike S4).
2365
- */
2366
- onCheckboxCellClick(e, t, a) {
2367
- if (a.stopPropagation(), this._selectionMode !== "checkbox") return;
2368
- const s = a.currentTarget.querySelector("mp-checkbox")?.shadowRoot;
2369
- s && a.composedPath().includes(s) || this.onRowCheckboxToggle(e, t);
2370
- }
2371
- /** Row checkboxes render only in the multi-select modes, so this is multi-select toggling. */
2372
- onRowCheckboxToggle(e, t) {
2373
- const a = !this._selectedIds.has(t), s = [
2374
- [t, e],
2375
- ...this._tree && this._selectionStrategy === "cascading" ? this.collectDescendants(e) : []
2376
- ], i = new Set(s.map(([r]) => r));
2377
- a ? this.commitSelection([...this._selectedIds, ...i], s) : this.commitSelection([...this._selectedIds].filter((r) => !i.has(r))), this.emitSelectionChange(), this.requestUpdate();
2378
- }
2379
- /**
2380
- * Clears the entire selection. The header checkbox is only rendered when
2381
- * at least one row is selected — a true "select all" affordance would be
2382
- * misleading because the WC doesn't know about rows outside the current
2383
- * pagination slice or virtual-scroll window. Click semantics are
2384
- * therefore one-way: visible → deselect-all → hidden again.
2385
- */
2386
- onDeselectAll() {
2387
- this._selectedIds.size !== 0 && (this.commitSelection([]), this.emitSelectionChange(), this.requestUpdate());
2388
- }
2389
- handleSelectionOnClick(e, t, a) {
2390
- if (this._selectionMode !== "none") {
2391
- if (this._selectionMode === "single") {
2392
- this.commitSelection([t], [[t, e]]), this.emitSelectionChange();
2393
- return;
2394
- }
2395
- if (a.shiftKey && this._selectionAnchorKey && this._selectionAnchorKey !== t) {
2396
- const s = this.getFlatList(), i = s.findIndex((o) => !o.isPlaceholder && o.key === this._selectionAnchorKey), r = s.findIndex((o) => o.key === t);
2397
- if (i >= 0 && r >= 0) {
2398
- const [o, l] = i < r ? [i, r] : [r, i], h = s.slice(o, l + 1);
2399
- if (h.some((p) => p.isPlaceholder)) {
2400
- this.liveAnnouncer.announce(this.mergedLabels.rangeIncomplete);
2401
- return;
2402
- }
2403
- const d = h.map((p) => [p.key, p.row]);
2404
- this.commitSelection([...this._selectedIds, ...d.map(([p]) => p)], d), this.emitSelectionChange();
2405
- return;
2406
- }
2407
- }
2408
- if (a.ctrlKey || a.metaKey) {
2409
- const s = new Set(this._selectedIds);
2410
- s.has(t) ? s.delete(t) : s.add(t), this.commitSelection(s, [[t, e]]), this._selectionAnchorKey = t, this.emitSelectionChange();
2411
- return;
2412
- }
2413
- this.commitSelection([t], [[t, e]]), this._selectionAnchorKey = t, this.emitSelectionChange();
2414
- }
2415
- }
2416
- /**
2417
- * The one write path for a user-driven selection change. `rows` supplies the
2418
- * row of each key being selected; the remembered rows are then pruned to the
2419
- * new keys, so a deselected row is forgotten in the same step.
2420
- */
2421
- commitSelection(e, t = []) {
2422
- this._selectedIds = new Set(e);
2423
- for (const [a, s] of t)
2424
- s !== void 0 && this._selectedIds.has(a) && this._selectedRowCache.set(a, s);
2425
- this.pruneSelectedRowCache();
2426
- }
2427
- /**
2428
- * Every row the element holds right now, by key: the loaded rows (keyed as
2429
- * the renderer keys them, K1) plus the fetched children of collapsed parents
2430
- * (through `keyOfRow`'s index-free fallback).
2431
- */
2432
- liveRowMap() {
2433
- const e = new Map(this.liveRowEntries(this.freshFlatList()));
2434
- for (const t of this._childCache.values())
2435
- for (const a of t) {
2436
- const s = this.keyOfRow(a);
2437
- e.has(s) || e.set(s, a);
2438
- }
2439
- return e;
2440
- }
2441
- /** Remembers the loaded row of every selected key (a loaded row always wins, D2). */
2442
- rememberLiveSelectedRows() {
2443
- for (const [e, t] of this.liveRowMap())
2444
- t !== void 0 && this._selectedIds.has(e) && this._selectedRowCache.set(e, t);
2445
- }
2446
- /**
2447
- * True when `pairs` is exactly the current selection: the same keys in the
2448
- * same order, each with the row object the element would report for it.
2449
- */
2450
- isSameSelectedRows(e) {
2451
- if (e.length !== this._selectedIds.size) return !1;
2452
- const t = [...this._selectedIds];
2453
- if (!e.every(([s], i) => s === t[i])) return !1;
2454
- const a = this.resolveRows(t);
2455
- return e.every(([, s], i) => s === a[i]);
2456
- }
2457
- /** Forgets the rows of keys that left the selection. One pass, deletes in place. */
2458
- pruneSelectedRowCache() {
2459
- for (const e of this._selectedRowCache.keys())
2460
- this._selectedIds.has(e) || this._selectedRowCache.delete(e);
2461
- }
2462
- emitSelectionChange() {
2463
- const e = [...this._selectedIds];
2464
- this.liveAnnouncer.announce(this.mergedLabels.announceSelection(e.length)), this.dispatchEvent(
2465
- new CustomEvent("mp-datatable-selection-change", {
2466
- detail: { selectedIds: e, selectedRows: this.resolveRows(e) },
2467
- bubbles: !0,
2468
- composed: !0
2469
- })
2470
- );
2471
- }
2472
- /**
2473
- * Resolves keys to rows, index-aligned with `ids` (D3): the loaded row if
2474
- * there is one, else the row remembered at selection time, else `undefined`.
2475
- *
2476
- * A loaded row also refreshes the remembered one, so a re-fetched row object
2477
- * always wins over a stale copy. Loaded rows are keyed exactly as the
2478
- * renderer keys them (K1); children of collapsed parents have no rendered
2479
- * index and go through `keyOfRow`'s index-free fallback.
2480
- */
2481
- resolveRows(e) {
2482
- if (e.length === 0) return [];
2483
- const t = this.liveRowMap();
2484
- return e.map((a) => {
2485
- const s = t.get(a);
2486
- return s === void 0 ? this._selectedRowCache.get(a) : (this._selectedIds.has(a) && this._selectedRowCache.set(a, s), s);
2487
- });
2488
- }
2489
- gotoPage(e) {
2490
- const t = this._totalRecords ?? this._data.length, a = Math.max(1, Math.ceil(t / this._perPage));
2491
- this._page = Math.max(1, Math.min(a, e)), this.liveAnnouncer.announce(this.mergedLabels.announcePage(this._page, a)), this.requestUpdate(), this.scheduleFetchReload(), this.dispatchEvent(
2492
- new CustomEvent("mp-datatable-page-change", {
2493
- detail: { page: this._page },
2494
- bubbles: !0,
2495
- composed: !0
2496
- })
2497
- );
2498
- }
2499
- /**
2500
- * Keyboard column resize — the same ±px model as the pointer path, same 40px
2501
- * floor. The handle is a focusable role="separator"; without this it was the
2502
- * audit's pointer-only finding for the datatable.
2503
- */
2504
- onResizeHandleKeydown(e, t) {
2505
- if (!this._resizableColumns || t.key !== "ArrowLeft" && t.key !== "ArrowRight") return;
2506
- t.preventDefault(), t.stopPropagation();
2507
- const s = t.currentTarget.closest("th"), i = this._columnWidths.get(e.name) ?? s?.getBoundingClientRect().width ?? 100, r = $(
2508
- i,
2509
- t.key === "ArrowRight" ? R : -R
2510
- );
2511
- this._columnWidths = new Map(this._columnWidths), this._columnWidths.set(e.name, r), this.requestUpdate();
2512
- }
2513
- startColumnResize(e, t) {
2514
- if (!this._resizableColumns) return;
2515
- t.preventDefault(), t.stopPropagation();
2516
- const a = t.currentTarget, s = a.closest("th");
2517
- if (!s) return;
2518
- const i = s.getBoundingClientRect().width;
2519
- this.resizeState = { columnName: e.name, startX: t.clientX, startWidth: i, handle: a }, a.classList.add("active"), a.setPointerCapture(t.pointerId), a.addEventListener("pointermove", this.onColumnResizeMove), a.addEventListener("pointerup", this.onColumnResizeEnd), a.addEventListener("pointercancel", this.onColumnResizeEnd);
2520
- }
2521
- }
2522
- function Y(n, e) {
2523
- if (n == null || typeof n != "object") return "";
2524
- const t = n[e.name];
2525
- return t == null ? "" : String(t);
2526
- }
2527
- function J(n) {
2528
- return n != null && typeof n != "string" && typeof n[Symbol.iterator] == "function";
2529
- }
2530
- function C(n) {
2531
- return n == null || n === !1 ? u : (n instanceof Node || typeof n == "object" && "_$litType$" in n, n);
2532
- }
2533
- q("datatable", B);
2534
- typeof customElements < "u" && !customElements.get("mp-datatable") && customElements.define("mp-datatable", X);
2535
- export {
2536
- W as D,
2537
- X as M,
2538
- H as c,
2539
- B as d,
2540
- y as s
2541
- };