@mintplayer/web-components 2.19.0 → 2.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/a11y/index.mjs +1 -29
- package/accordion/index.mjs +190 -530
- package/calendar/index.mjs +1 -4
- package/card/index.mjs +59 -328
- package/card/src/mp-card.element.d.ts +5 -13
- package/carousel/index.mjs +392 -845
- package/charts/core/index.mjs +502 -32
- package/charts/hierarchy/index.mjs +812 -1197
- package/charts/sparkline/index.mjs +127 -161
- package/charts/trend/index.mjs +306 -411
- package/checkbox/index.mjs +1 -4
- package/chunks/a11y-C6aX-lsZ.mjs +532 -0
- package/chunks/ac-aJXc45zA.mjs +4 -0
- package/chunks/ad-BTMXfwNh.mjs +4 -0
- package/chunks/ae-BrzD6osX.mjs +4 -0
- package/chunks/af-3UZ2_zTj.mjs +4 -0
- package/chunks/ag-KRBsuK2a.mjs +4 -0
- package/chunks/ai-BswLJAYs.mjs +4 -0
- package/chunks/al-wkJnSVxF.mjs +4 -0
- package/chunks/all-flags.generated-DtfbMnSZ.mjs +249 -0
- package/chunks/am-CVqI42UW.mjs +4 -0
- package/chunks/ao-85WVAZW6.mjs +4 -0
- package/chunks/ar-DJGfKADQ.mjs +4 -0
- package/chunks/as-BA11KqFF.mjs +4 -0
- package/chunks/at-BWbwtZ8t.mjs +4 -0
- package/chunks/au-gcOCUxgy.mjs +4 -0
- package/chunks/aw-cquGJK0_.mjs +4 -0
- package/chunks/ax-CqFz-_7-.mjs +4 -0
- package/chunks/az-CtGxDo7C.mjs +4 -0
- package/chunks/ba-Du5giA_b.mjs +4 -0
- package/chunks/bb-Bv08A_ob.mjs +4 -0
- package/chunks/bd-DNB5oj3n.mjs +4 -0
- package/chunks/be-CRVNdrRc.mjs +4 -0
- package/chunks/bf-CkLDaLFq.mjs +4 -0
- package/chunks/bg-5J0EZyQA.mjs +4 -0
- package/chunks/bh-Dm3fVyBc.mjs +4 -0
- package/chunks/bi-BpldTGS9.mjs +4 -0
- package/chunks/bj-Bn2B1hkk.mjs +4 -0
- package/chunks/bl-Dozbp4JI.mjs +4 -0
- package/chunks/bm-DMwDEJDn.mjs +4 -0
- package/chunks/bn-38iFiYIW.mjs +4 -0
- package/chunks/bo-C7Z0bS7Y.mjs +4 -0
- package/chunks/bq-Bp_dK3bp.mjs +4 -0
- package/chunks/br-C1y3qYTo.mjs +4 -0
- package/chunks/bs-DvapNTm6.mjs +4 -0
- package/chunks/bt-4BBK2CzL.mjs +4 -0
- package/chunks/bw-gFoFnfsO.mjs +4 -0
- package/chunks/by-BcXeEIqn.mjs +4 -0
- package/chunks/bz-DiNvPmet.mjs +4 -0
- package/chunks/ca-B6_-P3Ki.mjs +4 -0
- package/chunks/calendar-BufRj_ob.mjs +270 -0
- package/chunks/cc-1.generated-Bz6a4Z5J.mjs +575 -0
- package/chunks/cc-20.generated-B2Zbp_CG.mjs +56 -0
- package/chunks/cc-211.generated-ChWU4ZnK.mjs +27 -0
- package/chunks/cc-212.generated-rW7bueR8.mjs +77 -0
- package/chunks/cc-213.generated-Dk100iVd.mjs +52 -0
- package/chunks/cc-216.generated-Da9XXIxn.mjs +37 -0
- package/chunks/cc-218.generated-B9dPA_jz.mjs +27 -0
- package/chunks/cc-220.generated-BD583LXg.mjs +26 -0
- package/chunks/cc-221.generated-FnrRCGhQ.mjs +41 -0
- package/chunks/cc-222.generated-RIcsN1By.mjs +30 -0
- package/chunks/cc-223.generated-BJYOhmxL.mjs +30 -0
- package/chunks/cc-224.generated-ZVRf4s4P.mjs +40 -0
- package/chunks/cc-225.generated-B37F4h_L.mjs +30 -0
- package/chunks/cc-226.generated-DX6w8SIQ.mjs +26 -0
- package/chunks/cc-227.generated-DWvIJCqw.mjs +35 -0
- package/chunks/cc-228.generated-CYnF-A2j.mjs +26 -0
- package/chunks/cc-229.generated-BHENEfHM.mjs +40 -0
- package/chunks/cc-230.generated-CCkgyUCO.mjs +53 -0
- package/chunks/cc-231.generated-Cy_W19Ec.mjs +50 -0
- package/chunks/cc-232.generated-bZc5ux9j.mjs +27 -0
- package/chunks/cc-233.generated-DtiURqLW.mjs +36 -0
- package/chunks/cc-234.generated-ISth71Yl.mjs +67 -0
- package/chunks/cc-235.generated-PAizMnHl.mjs +27 -0
- package/chunks/cc-236.generated-ZPS5oQTo.mjs +31 -0
- package/chunks/cc-237.generated-fOpKOXN1.mjs +34 -0
- package/chunks/cc-238.generated-DLsZAArj.mjs +36 -0
- package/chunks/cc-239.generated-Dq7UEEQw.mjs +26 -0
- package/chunks/cc-240.generated-B5rtjDFe.mjs +35 -0
- package/chunks/cc-241.generated-C2tPOfsp.mjs +40 -0
- package/chunks/cc-242.generated-12ELhWHE.mjs +35 -0
- package/chunks/cc-243.generated-Co_QscFq.mjs +64 -0
- package/chunks/cc-244.generated-CHVaQJzk.mjs +26 -0
- package/chunks/cc-245.generated-Dlfots5d.mjs +40 -0
- package/chunks/cc-246.generated-ml5FnCdW.mjs +26 -0
- package/chunks/cc-247.generated-D8iUb2b4.mjs +30 -0
- package/chunks/cc-248.generated-ByNbG_tW.mjs +37 -0
- package/chunks/cc-249.generated-B1uFXVYg.mjs +27 -0
- package/chunks/cc-250.generated-Db4-CYfI.mjs +44 -0
- package/chunks/cc-251.generated-Dk9Nsbz4.mjs +27 -0
- package/chunks/cc-252.generated-DzLVy7Wj.mjs +62 -0
- package/chunks/cc-253.generated-BAAxb4Dd.mjs +26 -0
- package/chunks/cc-254.generated-CQb3622R.mjs +55 -0
- package/chunks/cc-255.generated-CkU7A9vn.mjs +57 -0
- package/chunks/cc-256.generated-CPuR1ls2.mjs +46 -0
- package/chunks/cc-257.generated-Bop3IKkH.mjs +26 -0
- package/chunks/cc-258.generated-CrhWzLYO.mjs +34 -0
- package/chunks/cc-260.generated-CM31-F_r.mjs +42 -0
- package/chunks/cc-261.generated-Cc1Yk2ga.mjs +37 -0
- package/chunks/cc-262.generated-iNq4Bsyg.mjs +64 -0
- package/chunks/cc-263.generated-BNSZQW1U.mjs +100 -0
- package/chunks/cc-264.generated-BYq3HF_4.mjs +57 -0
- package/chunks/cc-265.generated-55Al2n2g.mjs +32 -0
- package/chunks/cc-266.generated-CC24vRZU.mjs +30 -0
- package/chunks/cc-267.generated-Cy1cO0r8.mjs +62 -0
- package/chunks/cc-268.generated-CuFPqOA0.mjs +40 -0
- package/chunks/cc-269.generated-CCOchMHW.mjs +31 -0
- package/chunks/cc-27.generated-CgwGi0oo.mjs +77 -0
- package/chunks/cc-290.generated-WRbX8Uzp.mjs +48 -0
- package/chunks/cc-291.generated-CHqtf344.mjs +27 -0
- package/chunks/cc-297.generated-BNaG__hC.mjs +36 -0
- package/chunks/cc-298.generated-BXnC-JHy.mjs +36 -0
- package/chunks/cc-299.generated-B9EtLFYo.mjs +36 -0
- package/chunks/cc-30.generated-JiXqSdPm.mjs +58 -0
- package/chunks/cc-31.generated-T-PhKf6W.mjs +91 -0
- package/chunks/cc-32.generated-3jhsIH05.mjs +58 -0
- package/chunks/cc-33.generated-CKpraBu-.mjs +43 -0
- package/chunks/cc-34.generated-4ZOoUv3E.mjs +41 -0
- package/chunks/cc-350.generated-BZeZIKv3.mjs +26 -0
- package/chunks/cc-351.generated-Ca4DVFZ8.mjs +41 -0
- package/chunks/cc-352.generated-C5JanZQk.mjs +96 -0
- package/chunks/cc-353.generated-BgLwqLra.mjs +98 -0
- package/chunks/cc-354.generated-BgTnQRlC.mjs +41 -0
- package/chunks/cc-355.generated-DGYepZoL.mjs +69 -0
- package/chunks/cc-356.generated-BsVo-WVa.mjs +36 -0
- package/chunks/cc-357.generated-b5F9kBHS.mjs +37 -0
- package/chunks/cc-358.generated-sIEQmG3a.mjs +136 -0
- package/chunks/cc-359.generated-Djbt0V64.mjs +92 -0
- package/chunks/cc-36.generated-GYQWm_pU.mjs +51 -0
- package/chunks/cc-370.generated-CRvXymMq.mjs +62 -0
- package/chunks/cc-371.generated-BR2fz2JU.mjs +37 -0
- package/chunks/cc-372.generated-DNvOnI-D.mjs +53 -0
- package/chunks/cc-373.generated-CIFhOyHu.mjs +52 -0
- package/chunks/cc-374.generated-C3JO10F2.mjs +58 -0
- package/chunks/cc-375.generated-CdSXpaA5.mjs +77 -0
- package/chunks/cc-376.generated-JuZXGLxH.mjs +47 -0
- package/chunks/cc-377.generated-D6OxfwEg.mjs +44 -0
- package/chunks/cc-378.generated-1P6hL48M.mjs +40 -0
- package/chunks/cc-380.generated-DgzzIFUj.mjs +58 -0
- package/chunks/cc-381.generated-D_ItFJFw.mjs +65 -0
- package/chunks/cc-382.generated-DuYOeAO_.mjs +37 -0
- package/chunks/cc-383.generated-R6R6iExY.mjs +58 -0
- package/chunks/cc-385.generated-CsDeMCh1.mjs +77 -0
- package/chunks/cc-386.generated-CprplXRX.mjs +67 -0
- package/chunks/cc-387.generated-7j6TIOUR.mjs +52 -0
- package/chunks/cc-389.generated-BoKyJU1O.mjs +52 -0
- package/chunks/cc-39.generated-CD2WXEy7.mjs +144 -0
- package/chunks/cc-40.generated-BXVz6ZEf.mjs +60 -0
- package/chunks/cc-41.generated-Blq73F9R.mjs +52 -0
- package/chunks/cc-420.generated-CGBM0u2Z.mjs +59 -0
- package/chunks/cc-421.generated-TZXTbujK.mjs +68 -0
- package/chunks/cc-423.generated-0jWk7aQw.mjs +51 -0
- package/chunks/cc-43.generated-CWC77-QL.mjs +124 -0
- package/chunks/cc-44.generated-BjNEEm72.mjs +185 -0
- package/chunks/cc-45.generated-D2fAEViK.mjs +31 -0
- package/chunks/cc-46.generated-Cc7ziKiQ.mjs +151 -0
- package/chunks/cc-47.generated-BfsXOmTn.mjs +68 -0
- package/chunks/cc-48.generated-qLLhGlDM.mjs +80 -0
- package/chunks/cc-49.generated-V5s3zaiK.mjs +207 -0
- package/chunks/cc-500.generated-BthGq2Lz.mjs +22 -0
- package/chunks/cc-501.generated-D3OEBYfs.mjs +34 -0
- package/chunks/cc-502.generated-DuGMlanj.mjs +35 -0
- package/chunks/cc-503.generated-D6WQdJRe.mjs +47 -0
- package/chunks/cc-504.generated-CnaVgqYu.mjs +30 -0
- package/chunks/cc-505.generated-BymEBjCD.mjs +30 -0
- package/chunks/cc-506.generated-DECPXw0C.mjs +40 -0
- package/chunks/cc-507.generated-B3GcK3L_.mjs +48 -0
- package/chunks/cc-508.generated-Dyuwoas9.mjs +45 -0
- package/chunks/cc-509.generated-CFrvVAgw.mjs +36 -0
- package/chunks/cc-51.generated-Chb_sPYg.mjs +59 -0
- package/chunks/cc-52.generated-ByiHdoYn.mjs +42 -0
- package/chunks/cc-53.generated-DJSsiaD5.mjs +63 -0
- package/chunks/cc-54.generated-CHWQhBUJ.mjs +99 -0
- package/chunks/cc-55.generated-B1A8n_Eu.mjs +62 -0
- package/chunks/cc-56.generated-BIagT3im.mjs +86 -0
- package/chunks/cc-57.generated-BI-iKXi5.mjs +56 -0
- package/chunks/cc-58.generated-ChHB0yFM.mjs +35 -0
- package/chunks/cc-590.generated-eh5bgg8N.mjs +96 -0
- package/chunks/cc-591.generated-DtljIXWS.mjs +48 -0
- package/chunks/cc-592.generated-BFJXRJtp.mjs +36 -0
- package/chunks/cc-593.generated-BnzrDC9X.mjs +57 -0
- package/chunks/cc-594.generated-GeVqoxTf.mjs +42 -0
- package/chunks/cc-595.generated-Cb147_Es.mjs +99 -0
- package/chunks/cc-596.generated-Awrujeyi.mjs +42 -0
- package/chunks/cc-597.generated-x82tPU7m.mjs +48 -0
- package/chunks/cc-598.generated-C0CFFA9e.mjs +90 -0
- package/chunks/cc-599.generated-CBNiFVLG.mjs +57 -0
- package/chunks/cc-60.generated-BsEWXQGR.mjs +72 -0
- package/chunks/cc-61.generated-D1GBs6cI.mjs +165 -0
- package/chunks/cc-62.generated-wMxDe6Yk.mjs +121 -0
- package/chunks/cc-63.generated-CdGxow0i.mjs +90 -0
- package/chunks/cc-64.generated-RnYaXyOf.mjs +88 -0
- package/chunks/cc-65.generated-DLu3ZfUr.mjs +57 -0
- package/chunks/cc-66.generated-Bak_QXSf.mjs +55 -0
- package/chunks/cc-670.generated-C99GtcUk.mjs +36 -0
- package/chunks/cc-672.generated-CSfxhA5g.mjs +30 -0
- package/chunks/cc-673.generated-CBepp8Kp.mjs +36 -0
- package/chunks/cc-674.generated-CUruGGLX.mjs +26 -0
- package/chunks/cc-675.generated-CJAYoKiM.mjs +41 -0
- package/chunks/cc-676.generated-D0aVoKBX.mjs +48 -0
- package/chunks/cc-677.generated-CboriHtH.mjs +36 -0
- package/chunks/cc-678.generated-tV4dzsm1.mjs +36 -0
- package/chunks/cc-679.generated-r1SqDRTw.mjs +35 -0
- package/chunks/cc-680.generated-CUJSNlon.mjs +26 -0
- package/chunks/cc-681.generated-CqZqTSzv.mjs +40 -0
- package/chunks/cc-682.generated-DsTDPJJe.mjs +26 -0
- package/chunks/cc-683.generated-C46F0xza.mjs +26 -0
- package/chunks/cc-685.generated-3mzM0WBI.mjs +47 -0
- package/chunks/cc-686.generated-B7jAfSaz.mjs +32 -0
- package/chunks/cc-687.generated-DUkxCl-t.mjs +31 -0
- package/chunks/cc-688.generated-Bwg6wtz6.mjs +42 -0
- package/chunks/cc-689.generated-DIjPyQbi.mjs +52 -0
- package/chunks/cc-690.generated-BkBOgCj0.mjs +27 -0
- package/chunks/cc-691.generated-CRgqR_eS.mjs +26 -0
- package/chunks/cc-692.generated-xoIqpcZG.mjs +36 -0
- package/chunks/cc-7.generated-CVaWdxzG.mjs +99 -0
- package/chunks/cc-81.generated-BsK5UKLx.mjs +100 -0
- package/chunks/cc-82.generated-BcgfVP49.mjs +96 -0
- package/chunks/cc-84.generated-C_NDe2op.mjs +81 -0
- package/chunks/cc-850.generated-5uPEB20Q.mjs +41 -0
- package/chunks/cc-852.generated-Cmcj41zv.mjs +66 -0
- package/chunks/cc-853.generated-5Q5aYzYP.mjs +34 -0
- package/chunks/cc-855.generated-CyoP_AvI.mjs +40 -0
- package/chunks/cc-856.generated-UaGUxAVX.mjs +45 -0
- package/chunks/cc-86.generated-C76vQ-PG.mjs +131 -0
- package/chunks/cc-880.generated-DTQZvOwQ.mjs +63 -0
- package/chunks/cc-886.generated-BlEIkmSb.mjs +89 -0
- package/chunks/cc-90.generated-B6QJof50.mjs +70 -0
- package/chunks/cc-91.generated-BFtdPEFf.mjs +120 -0
- package/chunks/cc-92.generated-Dmc8JLXg.mjs +84 -0
- package/chunks/cc-93.generated-zx8cBy1Z.mjs +27 -0
- package/chunks/cc-94.generated-Blu9IgSY.mjs +40 -0
- package/chunks/cc-95.generated-DCr59wbp.mjs +103 -0
- package/chunks/cc-960.generated-D1_nf00O.mjs +39 -0
- package/chunks/cc-961.generated-DxRflmbQ.mjs +42 -0
- package/chunks/cc-962.generated-DxZQb06J.mjs +58 -0
- package/chunks/cc-963.generated-uiT34jBy.mjs +34 -0
- package/chunks/cc-964.generated-BOKCnQHJ.mjs +45 -0
- package/chunks/cc-965.generated-CxNoEz0A.mjs +34 -0
- package/chunks/cc-966.generated-DhI8Ntyw.mjs +56 -0
- package/chunks/cc-967.generated-ContxwI-.mjs +36 -0
- package/chunks/cc-968.generated-v531jzFw.mjs +47 -0
- package/chunks/cc-970.generated-ChNVoJlm.mjs +55 -0
- package/chunks/cc-971.generated-xlS_839v.mjs +65 -0
- package/chunks/cc-972.generated-C5zT9loz.mjs +87 -0
- package/chunks/cc-973.generated-GoMZ3x5A.mjs +37 -0
- package/chunks/cc-974.generated-CHoLGfhR.mjs +48 -0
- package/chunks/cc-975.generated-BILSPn9k.mjs +30 -0
- package/chunks/cc-976.generated-4w3Zjm18.mjs +66 -0
- package/chunks/cc-977.generated-QcknaTKZ.mjs +48 -0
- package/chunks/cc-98.generated-C8ajgwoF.mjs +65 -0
- package/chunks/cc-992.generated-DUtoyFJd.mjs +44 -0
- package/chunks/cc-993.generated-DA_HUZYq.mjs +42 -0
- package/chunks/cc-994.generated-Bs9TDYzb.mjs +50 -0
- package/chunks/cc-995.generated-DeCplFKG.mjs +56 -0
- package/chunks/cc-996.generated-DIoF8HI4.mjs +45 -0
- package/chunks/cc-998.generated-mB6cuCsE.mjs +26 -0
- package/chunks/cc-C0VrlA3_.mjs +4 -0
- package/chunks/cd-TfcK0f07.mjs +4 -0
- package/chunks/cf-Cr0ikDYa.mjs +4 -0
- package/chunks/cg-BeLZ5g5O.mjs +4 -0
- package/chunks/ch-cyq7xzGy.mjs +4 -0
- package/chunks/checkbox-EnxkCGiC.mjs +271 -0
- package/chunks/ci-D2pSb2Ih.mjs +4 -0
- package/chunks/ck-htfFHGea.mjs +4 -0
- package/chunks/cl-CoYa3Pmk.mjs +4 -0
- package/chunks/cm-D6uug-DA.mjs +4 -0
- package/chunks/cn-D48FvmT7.mjs +4 -0
- package/chunks/co-Dww2Azv_.mjs +4 -0
- package/chunks/color-mode-warning-BWDrpfmR.mjs +11 -0
- package/chunks/cr-T0UM2nAQ.mjs +4 -0
- package/chunks/cu-CvSN3Q4W.mjs +4 -0
- package/chunks/cv-CselBvqy.mjs +4 -0
- package/chunks/cw-DBlAOQBG.mjs +4 -0
- package/chunks/cx-CT3aGae9.mjs +4 -0
- package/chunks/cy-BgOT9gkN.mjs +4 -0
- package/chunks/cz-pyOSY6aP.mjs +4 -0
- package/chunks/datatable-qkYf-N0c.mjs +1786 -0
- package/chunks/datetime-picker-BtroFVZZ.mjs +373 -0
- package/chunks/de-KGaNXoZN.mjs +4 -0
- package/chunks/decorate-_3lQte5d.mjs +9 -0
- package/chunks/dj-erTpydIV.mjs +4 -0
- package/chunks/dk-D1JuLNfO.mjs +4 -0
- package/chunks/dm-DCecBFF5.mjs +4 -0
- package/chunks/do-DSLfzWkU.mjs +4 -0
- package/chunks/dz-Ce9xahTz.mjs +4 -0
- package/chunks/ec-Bi76lWx3.mjs +4 -0
- package/chunks/ee-bSjXh051.mjs +4 -0
- package/chunks/eg-r6ELPNF6.mjs +4 -0
- package/chunks/eh-B9fkMRyx.mjs +4 -0
- package/chunks/er-udHBJByJ.mjs +4 -0
- package/chunks/es-Bu9WWdeR.mjs +4 -0
- package/chunks/et-CXZPC0sf.mjs +4 -0
- package/chunks/fi-dNG3mnm4.mjs +4 -0
- package/chunks/fj-DRC_-qUY.mjs +4 -0
- package/chunks/fk-J-PwBKbI.mjs +4 -0
- package/chunks/flags-BklZdqf-.mjs +268 -0
- package/chunks/fm-DdlXjhk_.mjs +4 -0
- package/chunks/fo-BF6Oan5b.mjs +4 -0
- package/chunks/form-check.styles-WIzQ8Lr8.mjs +5 -0
- package/chunks/form-control.styles-xkboF3PM.mjs +5 -0
- package/chunks/fr-m5fDKirC.mjs +4 -0
- package/chunks/ga-B4EBbkUA.mjs +4 -0
- package/chunks/gb-7vN41y_W.mjs +4 -0
- package/chunks/gd-oYxJTsCo.mjs +4 -0
- package/chunks/ge-DjFzwM58.mjs +4 -0
- package/chunks/gf-QpbaNTLf.mjs +4 -0
- package/chunks/gg-DD5U9436.mjs +4 -0
- package/chunks/gh-DwVF19eS.mjs +4 -0
- package/chunks/gi-UFWuuzET.mjs +4 -0
- package/chunks/gl-D6QboaPF.mjs +4 -0
- package/chunks/gm-DBMaPUVF.mjs +4 -0
- package/chunks/gn-CgBEf8H_.mjs +4 -0
- package/chunks/gp-CzgFkpC6.mjs +4 -0
- package/chunks/gq-Bnsg80y2.mjs +4 -0
- package/chunks/gr-BZRM9aE0.mjs +4 -0
- package/chunks/gt-BUUDyd82.mjs +4 -0
- package/chunks/gu-TRJAAUWQ.mjs +4 -0
- package/chunks/gw-D9LrzBrV.mjs +4 -0
- package/chunks/gy-DH746QP0.mjs +4 -0
- package/chunks/hk-JPHzGR1f.mjs +4 -0
- package/chunks/hn-tQE5mLlb.mjs +4 -0
- package/chunks/hr-BdLlK8MT.mjs +4 -0
- package/chunks/ht-efkMBTm5.mjs +4 -0
- package/chunks/hu-BQqGjm3B.mjs +4 -0
- package/chunks/id-DaJrUhdH.mjs +4 -0
- package/chunks/ie-BNbUpzRG.mjs +4 -0
- package/chunks/il-Cg79KHAv.mjs +4 -0
- package/chunks/im-Djx9n3WT.mjs +4 -0
- package/chunks/in-B43LtLH-.mjs +4 -0
- package/chunks/input-group-CjmHKUSw.mjs +48 -0
- package/chunks/invalid-feedback.styles-BAfKyqM0.mjs +5 -0
- package/chunks/io-BnYRzBj3.mjs +4 -0
- package/chunks/iq-DUn1QbRL.mjs +4 -0
- package/chunks/ir-DlyfLEkf.mjs +4 -0
- package/chunks/is-DQ_bn71q.mjs +4 -0
- package/chunks/it-BfPMagQk.mjs +4 -0
- package/chunks/je-BLm9fJmW.mjs +4 -0
- package/chunks/jm-CxLVl0Ry.mjs +4 -0
- package/chunks/jo-Cfupva0T.mjs +4 -0
- package/chunks/jp-iR_5eVnk.mjs +4 -0
- package/chunks/ke-QUXFhgYU.mjs +4 -0
- package/chunks/kg-C0ssUmgN.mjs +4 -0
- package/chunks/kh-9A3QNvDB.mjs +4 -0
- package/chunks/ki-bFdICXHj.mjs +4 -0
- package/chunks/km-CYuiTVlZ.mjs +4 -0
- package/chunks/kn-fqURi7WO.mjs +4 -0
- package/chunks/kp-B9J1sdkG.mjs +4 -0
- package/chunks/kr-hrrgo3DJ.mjs +4 -0
- package/chunks/kw-CsK5t1uI.mjs +4 -0
- package/chunks/ky-CIIoXV1x.mjs +4 -0
- package/chunks/kz-Q6lWH-Lp.mjs +4 -0
- package/chunks/la-BqrIQzV5.mjs +4 -0
- package/chunks/lb-f1wH5q4z.mjs +4 -0
- package/chunks/lc-DiPjKtKA.mjs +4 -0
- package/chunks/li-CC9A-Eoo.mjs +4 -0
- package/chunks/lk-DBBVyq9z.mjs +4 -0
- package/chunks/lr-CYmj0qzD.mjs +4 -0
- package/chunks/ls-5eFpOHA5.mjs +4 -0
- package/chunks/lt-DuXsTfKz.mjs +4 -0
- package/chunks/lu-l81BU1X-.mjs +4 -0
- package/chunks/lv-pBWGmb6y.mjs +4 -0
- package/chunks/ly-rQGukqgk.mjs +4 -0
- package/chunks/ma-D3s8fhJY.mjs +4 -0
- package/chunks/mc-C2UgSKD0.mjs +4 -0
- package/chunks/md-Bn-lDZyQ.mjs +4 -0
- package/chunks/me-CTM23YkQ.mjs +4 -0
- package/chunks/metadata-loaders.generated-BOHjz7Pm.mjs +250 -0
- package/chunks/mf-Dw6W2U1G.mjs +4 -0
- package/chunks/mg-BvSTuxdV.mjs +4 -0
- package/chunks/mh-DlNbre6t.mjs +4 -0
- package/chunks/mk-CMQgOxwU.mjs +4 -0
- package/chunks/ml-Dr5P0Yo_.mjs +4 -0
- package/chunks/mm-C6vWhwqu.mjs +4 -0
- package/chunks/mn-D3Xmr6k_.mjs +4 -0
- package/chunks/mo-BieTAs8C.mjs +4 -0
- package/chunks/mp-CkOXp1Ru.mjs +4 -0
- package/chunks/mq-Cjhq-UJo.mjs +4 -0
- package/chunks/mr-Dnfbj6zJ.mjs +4 -0
- package/chunks/ms-CTQctbcy.mjs +4 -0
- package/chunks/mt-CU4E0kx5.mjs +4 -0
- package/chunks/mu-D-VsOyS8.mjs +4 -0
- package/chunks/mv-BLAL7NFA.mjs +4 -0
- package/chunks/mw-v7uw9vtP.mjs +4 -0
- package/chunks/mx-eDyMiM1l.mjs +4 -0
- package/chunks/my-DZwL-5pY.mjs +4 -0
- package/chunks/mz-CUtVhMFS.mjs +4 -0
- package/chunks/na-BY29xZvs.mjs +4 -0
- package/chunks/nc-DeEXGMmA.mjs +4 -0
- package/chunks/ne-CLxU921A.mjs +4 -0
- package/chunks/nf-D_JOkQkl.mjs +4 -0
- package/chunks/ng-CR5xUr0F.mjs +4 -0
- package/chunks/ni-C15mTV4Y.mjs +4 -0
- package/chunks/nl-CLg7nWke.mjs +4 -0
- package/chunks/no-D56_k2KF.mjs +4 -0
- package/chunks/np-BAP7jy8o.mjs +4 -0
- package/chunks/nr-VKzWyaNU.mjs +4 -0
- package/chunks/nu-D3XZHNZP.mjs +4 -0
- package/chunks/nz-BdvILa2x.mjs +4 -0
- package/chunks/om-BuPCo8qp.mjs +4 -0
- package/chunks/overlay-kT0nfzL-.mjs +275 -0
- package/chunks/pa-CyYPeQbr.mjs +4 -0
- package/chunks/pagination-Bcz1TwlS.mjs +184 -0
- package/chunks/pe-B-P9yq9y.mjs +4 -0
- package/chunks/pf-BEygN2Xk.mjs +4 -0
- package/chunks/pg-BbFUBN-z.mjs +4 -0
- package/chunks/ph-BwijTsiw.mjs +4 -0
- package/chunks/pk-DyS4XqKp.mjs +4 -0
- package/chunks/pl-Bs4VwV81.mjs +4 -0
- package/chunks/pm-DLEa5i47.mjs +4 -0
- package/chunks/pr-BWsOEP9w.mjs +4 -0
- package/chunks/ps-B_qECKr4.mjs +4 -0
- package/chunks/pt-C2_djybD.mjs +4 -0
- package/chunks/pw-D_NY3JPr.mjs +4 -0
- package/chunks/py-CndItMw9.mjs +4 -0
- package/chunks/qa-CD1uNFb9.mjs +4 -0
- package/chunks/radio-BO6g4B91.mjs +260 -0
- package/chunks/re-BW_tVnq3.mjs +4 -0
- package/chunks/ro-1-zfxYpt.mjs +4 -0
- package/chunks/rs-BoYWG9vg.mjs +4 -0
- package/chunks/ru-CYVEtP_y.mjs +4 -0
- package/chunks/rw-Bg3jblyd.mjs +4 -0
- package/chunks/sa-B69Q0suF.mjs +4 -0
- package/chunks/sb-BsEiWQfb.mjs +4 -0
- package/chunks/sc-DbArtz_B.mjs +4 -0
- package/chunks/scheduler-core-CoFpfrl5.mjs +867 -0
- package/chunks/sd-BBHgjmhj.mjs +4 -0
- package/chunks/se-BIv2B636.mjs +4 -0
- package/chunks/select-R-96AksV.mjs +295 -0
- package/chunks/sg-C5hxvYqk.mjs +4 -0
- package/chunks/sh-HM3W4hDH.mjs +4 -0
- package/chunks/si-DP1aBcfC.mjs +4 -0
- package/chunks/sj-BW7y-uq5.mjs +4 -0
- package/chunks/sk-i105Khwu.mjs +4 -0
- package/chunks/sl-Di2GF_yv.mjs +4 -0
- package/chunks/sm-CBa0TK4H.mjs +4 -0
- package/chunks/sn-DUHpXra8.mjs +4 -0
- package/chunks/so-BNbpnsu-.mjs +4 -0
- package/chunks/splitter-ByLyrd5H.mjs +436 -0
- package/chunks/sr-ao-a5_9y.mjs +4 -0
- package/chunks/ss-DcnzauNo.mjs +4 -0
- package/chunks/st-UM_GVNxZ.mjs +4 -0
- package/chunks/sv-DGf1zbvG.mjs +4 -0
- package/chunks/swiper-core-kwEab-Zw.mjs +145 -0
- package/chunks/sx-BswzV8CI.mjs +4 -0
- package/chunks/sy-9m1S8Kc1.mjs +4 -0
- package/chunks/sz-D85TIkXG.mjs +4 -0
- package/chunks/tab-control-CW53taeE.mjs +202 -0
- package/chunks/tc-C7PcDjFx.mjs +4 -0
- package/chunks/td-BPQVoqMT.mjs +4 -0
- package/chunks/tg-BrHdehFU.mjs +4 -0
- package/chunks/th-Dy_pGi_n.mjs +4 -0
- package/chunks/timeline-core-B9Lu8Qq4.mjs +15 -0
- package/chunks/timepicker-LaSAPnxw.mjs +326 -0
- package/chunks/tj-DMpkq8L_.mjs +4 -0
- package/chunks/tk-BnQPtoCZ.mjs +4 -0
- package/chunks/tl-ogyf_25A.mjs +4 -0
- package/chunks/tm-ftTOaKfg.mjs +4 -0
- package/chunks/tn-DH-O9SRy.mjs +4 -0
- package/chunks/to-CDqWnE6l.mjs +4 -0
- package/chunks/toggle-button-H1Ty5nnF.mjs +196 -0
- package/chunks/tr-CRzwaC_7.mjs +4 -0
- package/chunks/treeview-BuznGbcj.mjs +302 -0
- package/chunks/tt-CddKczAn.mjs +4 -0
- package/chunks/tv-b-Y36_Oq.mjs +4 -0
- package/chunks/tw-BbdD_Tku.mjs +4 -0
- package/chunks/tz-Det_pKDO.mjs +4 -0
- package/chunks/ua-CdODx9f1.mjs +4 -0
- package/chunks/ug-CTIJi1Jn.mjs +4 -0
- package/chunks/us-Dsgn127D.mjs +4 -0
- package/chunks/uy-CtFb0Nfv.mjs +4 -0
- package/chunks/uz-CqlGrq2Q.mjs +4 -0
- package/chunks/va-C-PHbkgG.mjs +4 -0
- package/chunks/vc-CtVMqDKl.mjs +4 -0
- package/chunks/ve-CBHWNLnB.mjs +4 -0
- package/chunks/vg-BN0gTtPV.mjs +4 -0
- package/chunks/vi-D91NT7D5.mjs +4 -0
- package/chunks/vn-Dz72HCr4.mjs +4 -0
- package/chunks/vu-Cmk5qbSr.mjs +4 -0
- package/chunks/wf-DAPtyg32.mjs +4 -0
- package/chunks/ws-es9JGzNi.mjs +4 -0
- package/chunks/xk-st-Xu64D.mjs +4 -0
- package/chunks/ye-Dmo8XEYa.mjs +4 -0
- package/chunks/yt-CNEu1wkH.mjs +4 -0
- package/chunks/za-CiZ4NsPE.mjs +4 -0
- package/chunks/zm-DqQAAfzp.mjs +4 -0
- package/chunks/zw-BIGE1hob.mjs +4 -0
- package/code-snippet/index.mjs +472 -820
- package/custom-elements.json +939 -1041
- package/datatable/index.mjs +1 -8
- package/datepicker/index.mjs +128 -215
- package/datetime-picker/index.mjs +1 -4
- package/dock/index.mjs +1871 -2471
- package/dropdown-menu/index.mjs +157 -601
- package/file-manager/index.mjs +771 -1180
- package/flags/index.mjs +1 -264
- package/index.mjs +0 -1
- package/input-group/index.mjs +1 -4
- package/light-dom/index.mjs +188 -11
- package/multi-range/index.mjs +233 -402
- package/navbar/index.mjs +224 -1010
- package/otp-input/index.mjs +249 -374
- package/overlay/index.mjs +1 -7
- package/package.json +1 -1
- package/pagination/index.mjs +1 -5
- package/phone-core/index.mjs +120 -8
- package/phone-input/index.mjs +380 -493
- package/query-builder/index.mjs +1502 -2277
- package/radio/index.mjs +1 -4
- package/radio-group/index.mjs +126 -144
- package/ribbon/index.mjs +1158 -1497
- package/scheduler/index.mjs +3456 -6576
- package/scheduler-core/index.mjs +1 -197
- package/select/index.mjs +1 -4
- package/shell/index.mjs +98 -572
- package/signature-pad/index.mjs +180 -207
- package/splitter/index.mjs +1 -10
- package/swiper-core/index.mjs +1 -184
- package/tab-control/index.mjs +1 -6
- package/theming/index.mjs +229 -317
- package/tile-manager/index.mjs +746 -899
- package/timeline/index.mjs +476 -754
- package/timeline-core/index.mjs +1 -23
- package/timepicker/index.mjs +1 -9
- package/toggle-button/index.mjs +1 -5
- package/tree-select/index.mjs +467 -769
- package/treeview/index.mjs +1 -5
- package/badge/src/styles/badge.styles.d.ts +0 -2
- package/chunks/ac-C5mj7mOe.mjs +0 -5
- package/chunks/ad-DuKUeTXh.mjs +0 -5
- package/chunks/ae-BFJrplpe.mjs +0 -5
- package/chunks/af-BIQlNFtj.mjs +0 -5
- package/chunks/ag-B9GDO0Ip.mjs +0 -5
- package/chunks/ai-pifHTP5K.mjs +0 -5
- package/chunks/al-CWQ3OuN9.mjs +0 -5
- package/chunks/all-flags-BtYcfgjy.mjs +0 -8
- package/chunks/all-flags.generated-B7Rctzuq.mjs +0 -493
- package/chunks/am-Do56ciQl.mjs +0 -5
- package/chunks/ao-Ci_fen-O.mjs +0 -5
- package/chunks/ar-BEZTIgF7.mjs +0 -5
- package/chunks/as-B29efaG_.mjs +0 -5
- package/chunks/at-c7xv31cV.mjs +0 -5
- package/chunks/attributes-L3eKsbdy.mjs +0 -16
- package/chunks/au-DK4ZROf6.mjs +0 -5
- package/chunks/aw-eEmOo-kc.mjs +0 -5
- package/chunks/ax-CF1cgQbd.mjs +0 -5
- package/chunks/az-BXPec7pf.mjs +0 -5
- package/chunks/ba-EoocSiX0.mjs +0 -5
- package/chunks/bb-BomyOgY0.mjs +0 -5
- package/chunks/bd-C2Y9A316.mjs +0 -5
- package/chunks/be-DcE56El1.mjs +0 -5
- package/chunks/bf-g7XzTHJG.mjs +0 -5
- package/chunks/bg-DAHpwJAh.mjs +0 -5
- package/chunks/bh-BiHF8vqO.mjs +0 -5
- package/chunks/bi-DVAoOy2o.mjs +0 -5
- package/chunks/bj-CB6I0T1J.mjs +0 -5
- package/chunks/bl-DhUObXcB.mjs +0 -5
- package/chunks/bm-d77E6A-Q.mjs +0 -5
- package/chunks/bn-CG1_6Vfv.mjs +0 -5
- package/chunks/bo-ulcQ_Lws.mjs +0 -5
- package/chunks/bq-wOjRpmJJ.mjs +0 -5
- package/chunks/br-BwQAEpKL.mjs +0 -5
- package/chunks/bs-Cmq3uDf9.mjs +0 -5
- package/chunks/bt-Cik-3ebf.mjs +0 -5
- package/chunks/bw-ZUkpxAL1.mjs +0 -5
- package/chunks/by-Dh-5h5x1.mjs +0 -5
- package/chunks/bz-DB0s7-5N.mjs +0 -5
- package/chunks/ca-Coq88_mc.mjs +0 -5
- package/chunks/cc-1.generated-CkRogBGA.mjs +0 -4
- package/chunks/cc-20.generated-DMpg7apl.mjs +0 -4
- package/chunks/cc-211.generated-DSnuuKPM.mjs +0 -4
- package/chunks/cc-212.generated-Dcg3rrip.mjs +0 -4
- package/chunks/cc-213.generated-DPwtGlxT.mjs +0 -4
- package/chunks/cc-216.generated-Cgber7dX.mjs +0 -4
- package/chunks/cc-218.generated-CZGwxl9D.mjs +0 -4
- package/chunks/cc-220.generated-CKmXmpGe.mjs +0 -4
- package/chunks/cc-221.generated-BYzgBejl.mjs +0 -4
- package/chunks/cc-222.generated-YwuXcbvd.mjs +0 -4
- package/chunks/cc-223.generated-9iiHnni6.mjs +0 -4
- package/chunks/cc-224.generated-Okty02TJ.mjs +0 -4
- package/chunks/cc-225.generated-CYkDnG14.mjs +0 -4
- package/chunks/cc-226.generated-GT_rqbCO.mjs +0 -4
- package/chunks/cc-227.generated-B1VkrgoB.mjs +0 -4
- package/chunks/cc-228.generated-Bhck-C6Z.mjs +0 -4
- package/chunks/cc-229.generated-aAR4PP7n.mjs +0 -4
- package/chunks/cc-230.generated-CG5TxZtb.mjs +0 -4
- package/chunks/cc-231.generated-BjYHl_BP.mjs +0 -4
- package/chunks/cc-232.generated-CFDyaA7o.mjs +0 -4
- package/chunks/cc-233.generated-ChwvrW0E.mjs +0 -4
- package/chunks/cc-234.generated-BIpIojaD.mjs +0 -4
- package/chunks/cc-235.generated-Dklizfb9.mjs +0 -4
- package/chunks/cc-236.generated-EJZlz23v.mjs +0 -4
- package/chunks/cc-237.generated-DwOapZWZ.mjs +0 -4
- package/chunks/cc-238.generated-BkCWtGDY.mjs +0 -4
- package/chunks/cc-239.generated-S_foXUit.mjs +0 -4
- package/chunks/cc-240.generated-CtKfcEWk.mjs +0 -4
- package/chunks/cc-241.generated-aAUw2QzS.mjs +0 -4
- package/chunks/cc-242.generated-D5jMR3KR.mjs +0 -4
- package/chunks/cc-243.generated-Bk5dwdUf.mjs +0 -4
- package/chunks/cc-244.generated-DywGvISM.mjs +0 -4
- package/chunks/cc-245.generated-Bm7wVXl5.mjs +0 -4
- package/chunks/cc-246.generated-CFSezynW.mjs +0 -4
- package/chunks/cc-247.generated-DKXGq8p1.mjs +0 -4
- package/chunks/cc-248.generated-CnI_kkbi.mjs +0 -4
- package/chunks/cc-249.generated-Zenj8WBl.mjs +0 -4
- package/chunks/cc-250.generated-140A9gFx.mjs +0 -4
- package/chunks/cc-251.generated-BYtVzI1w.mjs +0 -4
- package/chunks/cc-252.generated-C9By3_Ih.mjs +0 -4
- package/chunks/cc-253.generated-DZIADgzo.mjs +0 -4
- package/chunks/cc-254.generated-Bkb5VbuX.mjs +0 -4
- package/chunks/cc-255.generated-U_k4UlnG.mjs +0 -4
- package/chunks/cc-256.generated-BBGMRLJL.mjs +0 -4
- package/chunks/cc-257.generated-2Jiadm-X.mjs +0 -4
- package/chunks/cc-258.generated-CSHZFQtI.mjs +0 -4
- package/chunks/cc-260.generated-CWgOLjv4.mjs +0 -4
- package/chunks/cc-261.generated-DzpnYK1v.mjs +0 -4
- package/chunks/cc-262.generated-uZY0cJ08.mjs +0 -4
- package/chunks/cc-263.generated-D2QbPttm.mjs +0 -4
- package/chunks/cc-264.generated-DhUT_yRg.mjs +0 -4
- package/chunks/cc-265.generated-BKIU4vGv.mjs +0 -4
- package/chunks/cc-266.generated-O_zgqaDo.mjs +0 -4
- package/chunks/cc-267.generated-DpLBLCK1.mjs +0 -4
- package/chunks/cc-268.generated-B9Y4LS_4.mjs +0 -4
- package/chunks/cc-269.generated-DPQ0A8VW.mjs +0 -4
- package/chunks/cc-27.generated-BxeFhsuD.mjs +0 -4
- package/chunks/cc-290.generated-DGy2isg7.mjs +0 -4
- package/chunks/cc-291.generated-C4LSfffl.mjs +0 -4
- package/chunks/cc-297.generated-4k_1JOUj.mjs +0 -4
- package/chunks/cc-298.generated-A2xB0PKR.mjs +0 -4
- package/chunks/cc-299.generated-BwDC9B1N.mjs +0 -4
- package/chunks/cc-30.generated-JhyYglqU.mjs +0 -4
- package/chunks/cc-31.generated-5GOCJzfN.mjs +0 -4
- package/chunks/cc-32.generated-CpVvykA2.mjs +0 -4
- package/chunks/cc-33.generated-BDzHxbR_.mjs +0 -4
- package/chunks/cc-34.generated-P3nQfhBw.mjs +0 -4
- package/chunks/cc-350.generated-BGl8hYsP.mjs +0 -4
- package/chunks/cc-351.generated-pJBouwSG.mjs +0 -4
- package/chunks/cc-352.generated-8_NbdAx6.mjs +0 -4
- package/chunks/cc-353.generated-Cfz2tBdq.mjs +0 -4
- package/chunks/cc-354.generated-CEgaa6qB.mjs +0 -4
- package/chunks/cc-355.generated-DGZ-kJ0i.mjs +0 -4
- package/chunks/cc-356.generated-BZqLs86A.mjs +0 -4
- package/chunks/cc-357.generated-CfCB5cHL.mjs +0 -4
- package/chunks/cc-358.generated-wL2JzNDk.mjs +0 -4
- package/chunks/cc-359.generated-BxJe3xGt.mjs +0 -4
- package/chunks/cc-36.generated-CJdA4Rvi.mjs +0 -4
- package/chunks/cc-370.generated-B6SpL74q.mjs +0 -4
- package/chunks/cc-371.generated-Cx6lrGG9.mjs +0 -4
- package/chunks/cc-372.generated-Ckc30SHu.mjs +0 -4
- package/chunks/cc-373.generated-BK0ypz55.mjs +0 -4
- package/chunks/cc-374.generated-B51ogwAh.mjs +0 -4
- package/chunks/cc-375.generated-CMbmbMav.mjs +0 -4
- package/chunks/cc-376.generated-DZngLeqA.mjs +0 -4
- package/chunks/cc-377.generated-BYuCOf7K.mjs +0 -4
- package/chunks/cc-378.generated-CuNlUjOw.mjs +0 -4
- package/chunks/cc-380.generated-A2e4FwA4.mjs +0 -4
- package/chunks/cc-381.generated-Cvwf7aDo.mjs +0 -4
- package/chunks/cc-382.generated-B-x4jIQ_.mjs +0 -4
- package/chunks/cc-383.generated-B6E63WN4.mjs +0 -4
- package/chunks/cc-385.generated-CbYlsCsW.mjs +0 -4
- package/chunks/cc-386.generated-BUSyzthQ.mjs +0 -4
- package/chunks/cc-387.generated-IhkhnsGu.mjs +0 -4
- package/chunks/cc-389.generated-SNuHIdqu.mjs +0 -4
- package/chunks/cc-39.generated-BGZK1sVL.mjs +0 -4
- package/chunks/cc-40.generated-Bo8WnsNc.mjs +0 -4
- package/chunks/cc-41.generated-CG0098r3.mjs +0 -4
- package/chunks/cc-420.generated-C59jh2M8.mjs +0 -4
- package/chunks/cc-421.generated-BhxO-pTK.mjs +0 -4
- package/chunks/cc-423.generated-B4UJk2xr.mjs +0 -4
- package/chunks/cc-43.generated-BIdhhcvA.mjs +0 -4
- package/chunks/cc-44.generated-BfeK0wEP.mjs +0 -4
- package/chunks/cc-45.generated-BEJCwF4o.mjs +0 -4
- package/chunks/cc-46.generated-DeEMtTcI.mjs +0 -4
- package/chunks/cc-47.generated-DQy2Xk_0.mjs +0 -4
- package/chunks/cc-48.generated-C4yA7R1Q.mjs +0 -4
- package/chunks/cc-49.generated-a02djmT4.mjs +0 -4
- package/chunks/cc-500.generated-glAZ4AUe.mjs +0 -4
- package/chunks/cc-501.generated-D-GCAbI8.mjs +0 -4
- package/chunks/cc-502.generated-Co-n0usI.mjs +0 -4
- package/chunks/cc-503.generated-BM58qC_M.mjs +0 -4
- package/chunks/cc-504.generated-cTtfXvjR.mjs +0 -4
- package/chunks/cc-505.generated-DLSKmmzY.mjs +0 -4
- package/chunks/cc-506.generated-BMyMgwgZ.mjs +0 -4
- package/chunks/cc-507.generated-DWOdIJMd.mjs +0 -4
- package/chunks/cc-508.generated-DN3D0FwY.mjs +0 -4
- package/chunks/cc-509.generated-D-jyniz5.mjs +0 -4
- package/chunks/cc-51.generated-Bjy1G3kG.mjs +0 -4
- package/chunks/cc-52.generated-CDeO-q1n.mjs +0 -4
- package/chunks/cc-53.generated-Bg_ETBvx.mjs +0 -4
- package/chunks/cc-54.generated-BCfSFUZP.mjs +0 -4
- package/chunks/cc-55.generated-C1iLoSl1.mjs +0 -4
- package/chunks/cc-56.generated-ChgDDlud.mjs +0 -4
- package/chunks/cc-57.generated-qfDFimii.mjs +0 -4
- package/chunks/cc-58.generated-Cl6DzTam.mjs +0 -4
- package/chunks/cc-590.generated-DhG2cP7S.mjs +0 -4
- package/chunks/cc-591.generated-CjxsaggL.mjs +0 -4
- package/chunks/cc-592.generated-DnF2AtPs.mjs +0 -4
- package/chunks/cc-593.generated-J4b4KU_z.mjs +0 -4
- package/chunks/cc-594.generated-BDqHqvBX.mjs +0 -4
- package/chunks/cc-595.generated-Di23-NWq.mjs +0 -4
- package/chunks/cc-596.generated-B92oLPvz.mjs +0 -4
- package/chunks/cc-597.generated-pdvIpWWG.mjs +0 -4
- package/chunks/cc-598.generated-C9i6NuuS.mjs +0 -4
- package/chunks/cc-599.generated-Cot_Tjya.mjs +0 -4
- package/chunks/cc-60.generated-Dt21L5ED.mjs +0 -4
- package/chunks/cc-61.generated-CsF19uOz.mjs +0 -4
- package/chunks/cc-62.generated-CXe9l8jN.mjs +0 -4
- package/chunks/cc-63.generated-CyxqKEMz.mjs +0 -4
- package/chunks/cc-64.generated-B1U2VUWE.mjs +0 -4
- package/chunks/cc-65.generated-BqB9SL91.mjs +0 -4
- package/chunks/cc-66.generated-DSW4cKRJ.mjs +0 -4
- package/chunks/cc-670.generated-B5lMBLIA.mjs +0 -4
- package/chunks/cc-672.generated-rtLnRViR.mjs +0 -4
- package/chunks/cc-673.generated-CCfKxiHb.mjs +0 -4
- package/chunks/cc-674.generated-DqEenJAu.mjs +0 -4
- package/chunks/cc-675.generated-CDZsNVmA.mjs +0 -4
- package/chunks/cc-676.generated-CtuzuSpR.mjs +0 -4
- package/chunks/cc-677.generated-B6Vdcheb.mjs +0 -4
- package/chunks/cc-678.generated-Bu-wQLCv.mjs +0 -4
- package/chunks/cc-679.generated-C_vQNfa9.mjs +0 -4
- package/chunks/cc-680.generated-DgD0sTpR.mjs +0 -4
- package/chunks/cc-681.generated-CgCDLpTf.mjs +0 -4
- package/chunks/cc-682.generated-BBdb0LCA.mjs +0 -4
- package/chunks/cc-683.generated-BYq9qGSN.mjs +0 -4
- package/chunks/cc-685.generated-BeVt0xOD.mjs +0 -4
- package/chunks/cc-686.generated-DSuHUyGC.mjs +0 -4
- package/chunks/cc-687.generated-CAYCkQGn.mjs +0 -4
- package/chunks/cc-688.generated-BxoYuhyI.mjs +0 -4
- package/chunks/cc-689.generated-D1LJPuEc.mjs +0 -4
- package/chunks/cc-690.generated-wBJlIR_d.mjs +0 -4
- package/chunks/cc-691.generated-D3313DJE.mjs +0 -4
- package/chunks/cc-692.generated-BjRLK6LH.mjs +0 -4
- package/chunks/cc-7.generated-Be8Per3z.mjs +0 -4
- package/chunks/cc-81.generated-Bfr_1Ik4.mjs +0 -4
- package/chunks/cc-82.generated-CXvQgAj0.mjs +0 -4
- package/chunks/cc-84.generated-DsMrssxQ.mjs +0 -4
- package/chunks/cc-850.generated-B6dMNsJB.mjs +0 -4
- package/chunks/cc-852.generated-DoLs1jmz.mjs +0 -4
- package/chunks/cc-853.generated-C9J4qDF6.mjs +0 -4
- package/chunks/cc-855.generated-rriF89dH.mjs +0 -4
- package/chunks/cc-856.generated-DWMBTBFS.mjs +0 -4
- package/chunks/cc-86.generated-C8Ob3yVb.mjs +0 -4
- package/chunks/cc-880.generated-gteZx8SL.mjs +0 -4
- package/chunks/cc-886.generated-QyIDP1_q.mjs +0 -4
- package/chunks/cc-90.generated-DSXR50SV.mjs +0 -4
- package/chunks/cc-91.generated-C_cDq0Xp.mjs +0 -4
- package/chunks/cc-92.generated-Cxd7f_QX.mjs +0 -4
- package/chunks/cc-93.generated-Cyqo0e91.mjs +0 -4
- package/chunks/cc-94.generated-EsnmfbnH.mjs +0 -4
- package/chunks/cc-95.generated-D_8p55mp.mjs +0 -4
- package/chunks/cc-960.generated-DletKApH.mjs +0 -4
- package/chunks/cc-961.generated-CXVHoWFk.mjs +0 -4
- package/chunks/cc-962.generated-B7EPSakT.mjs +0 -4
- package/chunks/cc-963.generated-D71Y75mr.mjs +0 -4
- package/chunks/cc-964.generated-B8-RYrVD.mjs +0 -4
- package/chunks/cc-965.generated-tesjPkaP.mjs +0 -4
- package/chunks/cc-966.generated-CkCCmcR2.mjs +0 -4
- package/chunks/cc-967.generated-Bz1kG3rR.mjs +0 -4
- package/chunks/cc-968.generated-B8izDjLu.mjs +0 -4
- package/chunks/cc-970.generated-CKTkdIET.mjs +0 -4
- package/chunks/cc-971.generated-Wzj17K10.mjs +0 -4
- package/chunks/cc-972.generated-CJO02ZmJ.mjs +0 -4
- package/chunks/cc-973.generated-CL9ZE2Of.mjs +0 -4
- package/chunks/cc-974.generated-ZkYqGi9L.mjs +0 -4
- package/chunks/cc-975.generated-DP2Teiuc.mjs +0 -4
- package/chunks/cc-976.generated-GGNMRuFQ.mjs +0 -4
- package/chunks/cc-977.generated-KwvwlHUw.mjs +0 -4
- package/chunks/cc-98.generated-DW-Wj2k5.mjs +0 -4
- package/chunks/cc-992.generated-NRREmly7.mjs +0 -4
- package/chunks/cc-993.generated-BNlup4k-.mjs +0 -4
- package/chunks/cc-994.generated-BUD4e8ho.mjs +0 -4
- package/chunks/cc-995.generated-8P4TnVbi.mjs +0 -4
- package/chunks/cc-996.generated-CKCe7foO.mjs +0 -4
- package/chunks/cc-998.generated-CsAmnJYd.mjs +0 -4
- package/chunks/cc-BZdCRpNT.mjs +0 -5
- package/chunks/cd-9O28tBfy.mjs +0 -5
- package/chunks/cf-BdhmyWlv.mjs +0 -5
- package/chunks/cg-C-Qu4NMU.mjs +0 -5
- package/chunks/ch-A1RQVYLO.mjs +0 -5
- package/chunks/ci-DZY7fgO7.mjs +0 -5
- package/chunks/ck-D-2C9a72.mjs +0 -5
- package/chunks/cl-3HNgrmyT.mjs +0 -5
- package/chunks/cm-DJ4mixO9.mjs +0 -5
- package/chunks/cn-Cw6Qlqzd.mjs +0 -5
- package/chunks/co-B6rvgyRo.mjs +0 -5
- package/chunks/color-mode-warning-71FmlzWX.mjs +0 -13
- package/chunks/cr-jJzoBrc7.mjs +0 -5
- package/chunks/cu-BRzz3vV_.mjs +0 -5
- package/chunks/cv-BzZilEMp.mjs +0 -5
- package/chunks/cw-5PnLdxCt.mjs +0 -5
- package/chunks/cx-C0sAUlCS.mjs +0 -5
- package/chunks/cy-DeC9FFGV.mjs +0 -5
- package/chunks/cz-C3rh8aUO.mjs +0 -5
- package/chunks/de-Q2c2XZ_v.mjs +0 -5
- package/chunks/dj-DWAmmYDE.mjs +0 -5
- package/chunks/dk-FTaySAJe.mjs +0 -5
- package/chunks/dm-DgSJioJq.mjs +0 -5
- package/chunks/do-C549n3on.mjs +0 -5
- package/chunks/dz-CPgKocaY.mjs +0 -5
- package/chunks/ec-DkC-cDOb.mjs +0 -5
- package/chunks/ee-BQmFOHXA.mjs +0 -5
- package/chunks/eg-DMVarwMR.mjs +0 -5
- package/chunks/eh--oxmiCXh.mjs +0 -5
- package/chunks/er-DjB_DDiD.mjs +0 -5
- package/chunks/error-text-B45eDAt1.mjs +0 -17
- package/chunks/es-D__9e8wL.mjs +0 -5
- package/chunks/et-C3reU7Z2.mjs +0 -5
- package/chunks/fi-C1K0Kh4o.mjs +0 -5
- package/chunks/fj-Cs7ECsE1.mjs +0 -5
- package/chunks/fk-DYEJDgjs.mjs +0 -5
- package/chunks/fm-C7r_OFnj.mjs +0 -5
- package/chunks/fo-DsT-wW0Q.mjs +0 -5
- package/chunks/focus-restore-DxuP1Oe2.mjs +0 -94
- package/chunks/focus-trap-DTOLJ5bb.mjs +0 -121
- package/chunks/form-associated-BR-fUvZ1.mjs +0 -43
- package/chunks/form-check.styles-DqvBnspm.mjs +0 -172
- package/chunks/form-control.styles-C3j87Sn3.mjs +0 -171
- package/chunks/fr-oy8Uo1bo.mjs +0 -5
- package/chunks/ga-DESElBvk.mjs +0 -5
- package/chunks/gb-D5r9QI-K.mjs +0 -5
- package/chunks/gd-BuRviRXt.mjs +0 -5
- package/chunks/ge-BpGz5nUs.mjs +0 -5
- package/chunks/gf-BQgWe_yS.mjs +0 -5
- package/chunks/gg-BLNQrqls.mjs +0 -5
- package/chunks/gh-BzVF8tSr.mjs +0 -5
- package/chunks/gi-DfKOJdRQ.mjs +0 -5
- package/chunks/gl-C558Toee.mjs +0 -5
- package/chunks/gm-DNdinxnD.mjs +0 -5
- package/chunks/gn-DwEBOZ3-.mjs +0 -5
- package/chunks/gp-oy8Uo1bo.mjs +0 -5
- package/chunks/gq-BSkOSQWe.mjs +0 -5
- package/chunks/gr-CTJJbGEC.mjs +0 -5
- package/chunks/gt-D4BwgazI.mjs +0 -5
- package/chunks/gu-CQpMzEB_.mjs +0 -5
- package/chunks/gw-DxZDYMtv.mjs +0 -5
- package/chunks/gy-BWZVUGl8.mjs +0 -5
- package/chunks/hk-BHxjZMf4.mjs +0 -5
- package/chunks/hn-BEVgQ0QQ.mjs +0 -5
- package/chunks/host-aria-WSGs7SPQ.mjs +0 -152
- package/chunks/hr-BpVWlAoF.mjs +0 -5
- package/chunks/ht-CfzU-07O.mjs +0 -5
- package/chunks/hu-5Yy5WRy5.mjs +0 -5
- package/chunks/id-BfVg05v7.mjs +0 -5
- package/chunks/ie-DvpkJVl8.mjs +0 -5
- package/chunks/il-DDofIlI0.mjs +0 -5
- package/chunks/im-CW65ei4K.mjs +0 -5
- package/chunks/in-i60GVnCJ.mjs +0 -5
- package/chunks/inert-regions-DXCnn1LN.mjs +0 -48
- package/chunks/install-light-styles-DbCAGFOC.mjs +0 -209
- package/chunks/invalid-feedback.styles-he0JYrJm.mjs +0 -11
- package/chunks/io-Diyu5soM.mjs +0 -5
- package/chunks/iq-B74bFnMJ.mjs +0 -5
- package/chunks/ir-BWGwwJq9.mjs +0 -5
- package/chunks/is-CK4oIk76.mjs +0 -5
- package/chunks/it-Y7rj3hMY.mjs +0 -5
- package/chunks/je-DMoX3evy.mjs +0 -5
- package/chunks/jm-DZUStFkR.mjs +0 -5
- package/chunks/jo-DVQ6-ojE.mjs +0 -5
- package/chunks/jp-Y5R0MQfN.mjs +0 -5
- package/chunks/ke-CGq6XP7w.mjs +0 -5
- package/chunks/kg-DAoQwbeR.mjs +0 -5
- package/chunks/kh-kMI7MghQ.mjs +0 -5
- package/chunks/ki-Cu7fdPLn.mjs +0 -5
- package/chunks/km-CM7URKBO.mjs +0 -5
- package/chunks/kn-DBVGPz8w.mjs +0 -5
- package/chunks/kp-D3Ea15h2.mjs +0 -5
- package/chunks/kr-DKM0Jy7P.mjs +0 -5
- package/chunks/kw-B7J-nbX9.mjs +0 -5
- package/chunks/ky-p4ckNq_W.mjs +0 -5
- package/chunks/kz-D936idA9.mjs +0 -5
- package/chunks/la-CUKVKbGp.mjs +0 -5
- package/chunks/lb-CzUWz90e.mjs +0 -5
- package/chunks/lc-DuHqL5FW.mjs +0 -5
- package/chunks/li-DgJDzs_F.mjs +0 -5
- package/chunks/live-announcer-Bi0orG4n.mjs +0 -58
- package/chunks/lk-3zaagaQ9.mjs +0 -5
- package/chunks/lr-B6Vn6C_9.mjs +0 -5
- package/chunks/ls-DrI0Fh7Y.mjs +0 -5
- package/chunks/lt-PBck9Sgv.mjs +0 -5
- package/chunks/lu-B_xY22fB.mjs +0 -5
- package/chunks/lv-D16yLm3v.mjs +0 -5
- package/chunks/ly-C1adX4Zr.mjs +0 -5
- package/chunks/ma-B7rH3zoW.mjs +0 -5
- package/chunks/mc-Xqh4jc6i.mjs +0 -5
- package/chunks/md-wW4zZzbN.mjs +0 -5
- package/chunks/me-DCy_XMtC.mjs +0 -5
- package/chunks/metadata-loaders.generated-Bu_7pFwU.mjs +0 -250
- package/chunks/mf-DP_tIA6i.mjs +0 -5
- package/chunks/mg-InflpHX7.mjs +0 -5
- package/chunks/mh-VKf434Ww.mjs +0 -5
- package/chunks/mk-C64VS9I-.mjs +0 -5
- package/chunks/ml-BjOQYgou.mjs +0 -5
- package/chunks/mm-DgKeX7WQ.mjs +0 -5
- package/chunks/mn-BBubqCvd.mjs +0 -5
- package/chunks/mo-BtY-l2cE.mjs +0 -5
- package/chunks/mp-DlkcjH8B.mjs +0 -5
- package/chunks/mp-calendar.element-BIHS9SZZ.mjs +0 -433
- package/chunks/mp-checkbox-zV83gILn.mjs +0 -321
- package/chunks/mp-datatable-BeKunRfd.mjs +0 -2884
- package/chunks/mp-datetime-picker.element-Cxu5-qRE.mjs +0 -527
- package/chunks/mp-input-group-CQ55efCq.mjs +0 -206
- package/chunks/mp-pagination-hGy4dL7p.mjs +0 -334
- package/chunks/mp-radio-BhRVNdKp.mjs +0 -304
- package/chunks/mp-select-CgqYFvUj.mjs +0 -537
- package/chunks/mp-splitter-DLehrw3Y.mjs +0 -678
- package/chunks/mp-tab-page-CaCzX1ym.mjs +0 -415
- package/chunks/mp-timepicker.element-BiB9lkgc.mjs +0 -452
- package/chunks/mp-toggle-button-CaS9uYLE.mjs +0 -631
- package/chunks/mp-treeview-CaMTDrvY.mjs +0 -497
- package/chunks/mq-BK7HwZSV.mjs +0 -5
- package/chunks/mr-C0S-6dqR.mjs +0 -5
- package/chunks/ms-DpwSSTE-.mjs +0 -5
- package/chunks/mt-B1ie-04J.mjs +0 -5
- package/chunks/mu-DTA25SEP.mjs +0 -5
- package/chunks/mv-DW49amZl.mjs +0 -5
- package/chunks/mw-V-bbqGPN.mjs +0 -5
- package/chunks/mx-CtTJw0SX.mjs +0 -5
- package/chunks/my-DThIQKCq.mjs +0 -5
- package/chunks/mz-Btgk8Li_.mjs +0 -5
- package/chunks/na-D08-xA7q.mjs +0 -5
- package/chunks/nc-hb1s2KqL.mjs +0 -5
- package/chunks/ne-B5vEjeNk.mjs +0 -5
- package/chunks/nf-DDFUS5Ht.mjs +0 -5
- package/chunks/ng-DBhdmXcS.mjs +0 -5
- package/chunks/ni-_x4RKVT8.mjs +0 -5
- package/chunks/nl-DBxW_qVy.mjs +0 -5
- package/chunks/no-LyFCuMlU.mjs +0 -5
- package/chunks/np-DEvIQAys.mjs +0 -5
- package/chunks/nr-CuzElmFx.mjs +0 -5
- package/chunks/nu-C6vVHkwP.mjs +0 -5
- package/chunks/nz-BkhNYKha.mjs +0 -5
- package/chunks/om-BsI3oHrd.mjs +0 -5
- package/chunks/overlay-controller-BHDagokg.mjs +0 -389
- package/chunks/pa-CtNQVaHE.mjs +0 -5
- package/chunks/pe-vcSV6ioD.mjs +0 -5
- package/chunks/pf-BOetDvnB.mjs +0 -5
- package/chunks/pg-BDqa4YXR.mjs +0 -5
- package/chunks/ph-BlAaFzEE.mjs +0 -5
- package/chunks/pk-2auAZIDh.mjs +0 -5
- package/chunks/pl-W6WZfuq9.mjs +0 -5
- package/chunks/pm-oy8Uo1bo.mjs +0 -5
- package/chunks/pr-B3p98s5J.mjs +0 -5
- package/chunks/ps-RET8kTuo.mjs +0 -5
- package/chunks/pt-Z2yfZJAz.mjs +0 -5
- package/chunks/pw-Dm4Y4noS.mjs +0 -5
- package/chunks/py-1pKD7w9y.mjs +0 -5
- package/chunks/qa-DpK5_Q-a.mjs +0 -5
- package/chunks/re-oy8Uo1bo.mjs +0 -5
- package/chunks/resource.service--lqLwEqk.mjs +0 -1008
- package/chunks/ro-VYde6hop.mjs +0 -5
- package/chunks/roving-focus-CrL9982a.mjs +0 -129
- package/chunks/rs-Dj7Wicw9.mjs +0 -5
- package/chunks/ru-CkWEkuTy.mjs +0 -5
- package/chunks/rw-DjRHPIJ_.mjs +0 -5
- package/chunks/sa-BBdaW-_G.mjs +0 -5
- package/chunks/sb-nNr9S0gd.mjs +0 -5
- package/chunks/sc-DcbShXuj.mjs +0 -5
- package/chunks/scale-B0bRUdc7.mjs +0 -91
- package/chunks/sd-B1jbITc6.mjs +0 -5
- package/chunks/se-B-CIMrxu.mjs +0 -5
- package/chunks/sg-BIR0OErL.mjs +0 -5
- package/chunks/sh-BR9c9S8h.mjs +0 -5
- package/chunks/si-B5HzM3z8.mjs +0 -5
- package/chunks/sj-LyFCuMlU.mjs +0 -5
- package/chunks/sk-7ZEImIK5.mjs +0 -5
- package/chunks/sl-DuhHodH6.mjs +0 -5
- package/chunks/sm-BrM5UOOM.mjs +0 -5
- package/chunks/sn-jptojE_-.mjs +0 -5
- package/chunks/so-auBJUCeE.mjs +0 -5
- package/chunks/sr-DqWWIG11.mjs +0 -5
- package/chunks/ss-BcJF0rd5.mjs +0 -5
- package/chunks/st-D65H7-IP.mjs +0 -5
- package/chunks/sv-D8EgdK15.mjs +0 -5
- package/chunks/sx-Cmd53qC5.mjs +0 -5
- package/chunks/sy-LL8b7cLC.mjs +0 -5
- package/chunks/sz-D-qYq589.mjs +0 -5
- package/chunks/tc-AIE9LFuJ.mjs +0 -5
- package/chunks/td-C5AP4EiN.mjs +0 -5
- package/chunks/tg-Dt9WAF7L.mjs +0 -5
- package/chunks/th-DyfDlw-o.mjs +0 -5
- package/chunks/tj-U7xsGAAg.mjs +0 -5
- package/chunks/tk-BWjKruB4.mjs +0 -5
- package/chunks/tl-CcXsJf98.mjs +0 -5
- package/chunks/tm-DTASSSkf.mjs +0 -5
- package/chunks/tn-DttZvPz0.mjs +0 -5
- package/chunks/to-ChsX5Z4Q.mjs +0 -5
- package/chunks/tr-C2CRhai0.mjs +0 -5
- package/chunks/tt-DPpP-HbL.mjs +0 -5
- package/chunks/tv-CiTLokZi.mjs +0 -5
- package/chunks/tw--J7h_fxf.mjs +0 -5
- package/chunks/tz-qS3mKSkx.mjs +0 -5
- package/chunks/ua-DiZstskV.mjs +0 -5
- package/chunks/ug-BxVGZUby.mjs +0 -5
- package/chunks/us-BvyIwpav.mjs +0 -5
- package/chunks/uy-Dsr4HSrP.mjs +0 -5
- package/chunks/uz-D25kmTp8.mjs +0 -5
- package/chunks/va-hG27DTVe.mjs +0 -5
- package/chunks/validation-ChktfuxI.mjs +0 -137
- package/chunks/vc-7r46jyD5.mjs +0 -5
- package/chunks/ve-R8UkJHAj.mjs +0 -5
- package/chunks/vg-BLSugSwb.mjs +0 -5
- package/chunks/vi-DSyJsPSD.mjs +0 -5
- package/chunks/view-window-DGvFiDnW.mjs +0 -263
- package/chunks/vn-BwGpRkWs.mjs +0 -5
- package/chunks/vu-aFyzktTY.mjs +0 -5
- package/chunks/wf-Ca9RrMIP.mjs +0 -5
- package/chunks/ws-DphODgja.mjs +0 -5
- package/chunks/xk-sugAykhS.mjs +0 -5
- package/chunks/ye-D2MZq-93.mjs +0 -5
- package/chunks/yt-tAecYEDU.mjs +0 -5
- package/chunks/za-DadXcfMa.mjs +0 -5
- package/chunks/zm--rp7ufAJ.mjs +0 -5
- package/chunks/zw-BG5nNe2I.mjs +0 -5
- package/query-builder/src/mp-query-builder.element.template.d.ts +0 -2
- package/query-builder/src/mp-query-group.element.template.d.ts +0 -2
- package/query-builder/src/mp-query-subquery.element.template.d.ts +0 -2
- package/tree-select/src/styles/tree-select.styles.d.ts +0 -2
- package/treeview/src/styles/treeview.styles.d.ts +0 -2
|
@@ -0,0 +1,1786 @@
|
|
|
1
|
+
import { _ as e, g as t, i as n, y as r } from "./a11y-C6aX-lsZ.mjs";
|
|
2
|
+
import { installLightStyles as i, scopedHtml as a } from "../light-dom/index.mjs";
|
|
3
|
+
import "./checkbox-EnxkCGiC.mjs";
|
|
4
|
+
import { t as o } from "./overlay-kT0nfzL-.mjs";
|
|
5
|
+
import "./pagination-Bcz1TwlS.mjs";
|
|
6
|
+
import { LitElement as s, nothing as c, render as l, unsafeCSS as u } from "lit";
|
|
7
|
+
import { repeat as d } from "lit/directives/repeat.js";
|
|
8
|
+
import { styleMap as f } from "lit/directives/style-map.js";
|
|
9
|
+
import { live as p } from "lit/directives/live.js";
|
|
10
|
+
import { classMap as m } from "lit/directives/class-map.js";
|
|
11
|
+
//#region libs/mintplayer-web-components/datatable/src/types/labels.ts
|
|
12
|
+
var h = {
|
|
13
|
+
eq: "equals",
|
|
14
|
+
neq: "does not equal",
|
|
15
|
+
lt: "is less than",
|
|
16
|
+
lte: "is at most",
|
|
17
|
+
gt: "is greater than",
|
|
18
|
+
gte: "is at least"
|
|
19
|
+
}, g = {
|
|
20
|
+
eq: "=",
|
|
21
|
+
neq: "≠",
|
|
22
|
+
lt: "<",
|
|
23
|
+
lte: "≤",
|
|
24
|
+
gt: ">",
|
|
25
|
+
gte: "≥"
|
|
26
|
+
}, _ = [
|
|
27
|
+
"eq",
|
|
28
|
+
"neq",
|
|
29
|
+
"lt",
|
|
30
|
+
"lte",
|
|
31
|
+
"gt",
|
|
32
|
+
"gte"
|
|
33
|
+
], v = {
|
|
34
|
+
treeChevronColumn: "Expand or collapse",
|
|
35
|
+
deselectAll: "Deselect all",
|
|
36
|
+
selectAll: "Select all",
|
|
37
|
+
expandRow: "Expand row",
|
|
38
|
+
collapseRow: "Collapse row",
|
|
39
|
+
loading: "Loading",
|
|
40
|
+
rowsPerPage: "Rows per page",
|
|
41
|
+
resizeColumn: (e) => `Resize column ${e}`,
|
|
42
|
+
resizeColumnHint: "Left and Right arrows resize the column. Enter opens the resize options.",
|
|
43
|
+
resizeColumnOptions: (e) => `Resize options for ${e}`,
|
|
44
|
+
narrowerColumn: (e) => `Make ${e} narrower`,
|
|
45
|
+
widerColumn: (e) => `Make ${e} wider`,
|
|
46
|
+
columnWidth: (e) => `${e} px`,
|
|
47
|
+
fitColumn: "Fit to content",
|
|
48
|
+
resetColumn: "Reset width",
|
|
49
|
+
selectRow: (e) => `Select row ${e}`,
|
|
50
|
+
selectRowNamed: (e) => `Select ${e}`,
|
|
51
|
+
filterColumn: (e) => `Filter ${e}`,
|
|
52
|
+
filterColumnActive: (e, t) => t ? `Filter ${e}, filtered by ${t}` : `Filter ${e}, filtered`,
|
|
53
|
+
filterClear: (e) => `Clear the filter on ${e}`,
|
|
54
|
+
filterSearch: "Search values",
|
|
55
|
+
filterInvert: "Exclude the selected values",
|
|
56
|
+
filterGroup: (e) => `Values of ${e}`,
|
|
57
|
+
filterHasMore: "More values exist — refine the search to see them",
|
|
58
|
+
filterNoValues: "No values available",
|
|
59
|
+
filterValue(e) {
|
|
60
|
+
return e == null ? this.filterNone : e === "" ? this.filterEmpty : e === !0 ? this.filterTrue : e === !1 ? this.filterFalse : e instanceof Date ? e.toLocaleDateString() : String(e);
|
|
61
|
+
},
|
|
62
|
+
filterNone: "(none)",
|
|
63
|
+
filterEmpty: "(empty)",
|
|
64
|
+
filterTrue: "Yes",
|
|
65
|
+
filterFalse: "No",
|
|
66
|
+
announceFilter: (e, t) => t === 0 ? `Filter cleared on ${e}` : t === 1 ? `1 value selected in ${e}` : `${t} values selected in ${e}`,
|
|
67
|
+
filterOperator: "Comparison",
|
|
68
|
+
filterOperand: "Value to compare with",
|
|
69
|
+
filterOperatorLabel: (e) => h[e],
|
|
70
|
+
announceComparisonFilter: (e, t, n) => n === "" ? `Filter cleared on ${e}` : `${e} ${t} ${n}`,
|
|
71
|
+
announceSorted: (e, t) => t === "none" ? `Sorting removed from ${e}` : `Sorted by ${e}, ${t}`,
|
|
72
|
+
announcePage: (e, t) => `Page ${e} of ${t}`,
|
|
73
|
+
announceSelection: (e) => e === 1 ? "1 row selected" : `${e} rows selected`,
|
|
74
|
+
announceLoaded: (e) => e === 1 ? "Loaded 1 row" : `Loaded ${e} rows`,
|
|
75
|
+
rangeIncomplete: "Range not selected: some rows in it have not loaded yet"
|
|
76
|
+
}, y = u("@charset \"UTF-8\";\nmp-datatable {\n display: block;\n width: 100%;\n position: relative;\n --mp-datatable-border-color: var(--bs-border-color, rgba(0, 0, 0, 0.125));\n --mp-datatable-row-hover-bg: var(--bs-table-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));\n --mp-datatable-row-selected-bg: var(--bs-list-group-active-bg, var(--bs-primary, #0d6efd));\n --mp-datatable-row-selected-color: var(--bs-list-group-active-color, #fff);\n --mp-datatable-cut-opacity: 0.55;\n --mp-datatable-resize-handle-color: var(--bs-primary, #0d6efd);\n}\n\n[data-mps=datatable] {\n box-sizing: border-box;\n}\n\n.datatable-shell[data-mps=datatable] {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n}\n\n.datatable-scroll[data-mps=datatable] {\n overflow: auto;\n flex: 1 1 auto;\n}\n\n.datatable-scroll.datatable-virtual[data-mps=datatable] {\n max-height: var(--mp-datatable-virtual-max-height, 480px);\n}\n.datatable-scroll.datatable-virtual[data-mps=datatable] thead[data-mps=datatable] th[data-mps=datatable] {\n position: sticky;\n top: 0;\n z-index: 1;\n background-color: var(--bs-body-bg, #fff);\n}\n.datatable-scroll.datatable-virtual[data-mps=datatable] thead[data-mps=datatable] th[data-sortable=true]:hover[data-mps=datatable] {\n background-color: var(--bs-body-bg, #fff);\n background-image: linear-gradient(var(--mp-datatable-row-hover-bg), var(--mp-datatable-row-hover-bg));\n}\n.datatable-scroll.datatable-virtual[data-mps=datatable] thead[data-mps=datatable] tr.filter-row[data-mps=datatable] th[data-mps=datatable] {\n position: sticky;\n top: var(--mp-datatable-header-height, 0px);\n z-index: 1;\n background-color: var(--bs-body-bg, #fff);\n}\n\ntr.virtual-spacer[data-mps=datatable] {\n pointer-events: none;\n}\ntr.virtual-spacer[data-mps=datatable] > td {\n border-bottom: 0;\n}\n\ntable[data-mps=datatable] {\n width: 100%;\n border-collapse: collapse;\n margin: 0;\n table-layout: auto;\n}\n\ntable.measured[data-mps=datatable] {\n table-layout: fixed;\n}\ntbody[data-mps=datatable] > tr[data-mps=datatable] > td {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nthead[data-mps=datatable] th[data-mps=datatable] {\n background-color: var(--bs-table-bg, transparent);\n border-bottom: 1px solid var(--mp-datatable-border-color);\n text-align: left;\n font-weight: 600;\n padding: 0.5rem 0.75rem;\n white-space: nowrap;\n position: relative;\n user-select: none;\n}\n\nthead[data-mps=datatable] th[data-sortable=true][data-mps=datatable] {\n cursor: pointer;\n padding: 0;\n}\nthead[data-mps=datatable] th[data-sortable=true][data-mps=datatable]::before, thead[data-mps=datatable] th[data-sortable=true][data-mps=datatable]::after {\n position: absolute;\n display: block;\n opacity: 0.3;\n bottom: 0.5em;\n pointer-events: none;\n}\nthead[data-mps=datatable] th[data-sortable=true][data-mps=datatable]::before {\n content: \"↑\";\n right: 1em;\n}\nthead[data-mps=datatable] th[data-sortable=true][data-mps=datatable]::after {\n content: \"↓\";\n right: 0.5em;\n}\nthead[data-mps=datatable] th[data-sortable=true][aria-sort=ascending][data-mps=datatable]::after {\n opacity: 1;\n}\nthead[data-mps=datatable] th[data-sortable=true][aria-sort=descending][data-mps=datatable]::before {\n opacity: 1;\n}\n\nthead[data-mps=datatable] th[data-sortable=true]:hover[data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg);\n}\n\n.header-cell[data-mps=datatable] {\n display: inline-flex;\n align-items: center;\n gap: 0.4rem;\n}\n\nbutton.header-sort[data-mps=datatable] {\n border: 0;\n margin: 0;\n background: none;\n font: inherit;\n color: inherit;\n text-align: inherit;\n cursor: pointer;\n display: flex;\n width: 100%;\n box-sizing: border-box;\n padding: 0.5rem 2rem 0.5rem 0.75rem;\n}\n\n.resize-handle:focus-visible[data-mps=datatable],\nbutton.header-sort:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--mp-datatable-resize-handle-color);\n outline-offset: 1px;\n}\n\ntbody[data-mps=datatable] tr:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--mp-datatable-resize-handle-color);\n outline-offset: -2px;\n}\n\n.sort-index[data-mps=datatable] {\n position: absolute;\n right: 0.1em;\n bottom: 0.3em;\n font-size: 0.65em;\n font-weight: bold;\n opacity: 0.7;\n}\n\n.resize-handle[data-mps=datatable] {\n position: absolute;\n right: 0;\n top: 0;\n width: 24px;\n max-width: 50%;\n height: 100%;\n cursor: col-resize;\n user-select: none;\n z-index: 2;\n touch-action: none;\n -webkit-touch-callout: none;\n}\n\n.resize-handle[data-mps=datatable]::before {\n content: \"\";\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: 3px;\n}\n\n.resize-handle:hover[data-mps=datatable]::before,\n.resize-handle.active[data-mps=datatable]::before {\n background-color: var(--mp-datatable-resize-handle-color);\n}\n\n@media (pointer: coarse) {\n .resize-handle[data-mps=datatable] {\n width: 40px;\n }\n .resize-handle[data-mps=datatable]::before {\n background-color: var(--mp-datatable-border-color);\n }\n}\ntbody[data-mps=datatable] > tr[data-mps=datatable] > td {\n padding: 0.5rem 0.75rem;\n border-bottom: 1px solid var(--mp-datatable-border-color);\n vertical-align: middle;\n}\ntbody[data-mps=datatable] > tr[data-mps=datatable] > td svg,\ntbody[data-mps=datatable] > tr[data-mps=datatable] > td img {\n max-width: var(--mp-datatable-cell-media-max-width, none);\n height: auto;\n vertical-align: middle;\n}\n\ntbody[data-mps=datatable] tr[data-mps=datatable] {\n cursor: default;\n}\n\ntbody[data-mps=datatable] tr[data-clickable=true][data-mps=datatable] {\n cursor: pointer;\n}\n\ntbody[data-mps=datatable] tr:hover[data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg);\n}\n\ntbody[data-mps=datatable] tr[data-selected=true][data-mps=datatable] {\n background-color: var(--mp-datatable-row-selected-bg);\n color: var(--mp-datatable-row-selected-color);\n}\n\ntbody[data-mps=datatable] tr[data-cut=true][data-mps=datatable] {\n opacity: var(--mp-datatable-cut-opacity);\n}\n\ntbody[data-mps=datatable] tr[data-focused=true][data-mps=datatable] {\n outline: 2px solid var(--bs-primary, #0d6efd);\n outline-offset: -2px;\n}\ntr[data-mps=datatable] > .checkbox-cell[data-mps=datatable] {\n width: 2.5rem;\n padding-inline: 0.5rem;\n text-align: center;\n text-overflow: clip;\n}\n\n.checkbox-cell.checkbox-cell-toggles[data-mps=datatable] {\n cursor: pointer;\n}\n\n.tree-chevron-cell[data-mps=datatable] {\n width: 2rem;\n padding-right: 0;\n white-space: nowrap;\n user-select: none;\n}\n\n.tree-chevron[data-mps=datatable] {\n appearance: none;\n background: transparent;\n border: 0;\n padding: 0;\n width: 1.5rem;\n height: 1.5rem;\n line-height: 1;\n cursor: pointer;\n color: var(--bs-body-color, inherit);\n font-size: 0.85em;\n border-radius: 0.25rem;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n.tree-chevron:hover[data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg);\n}\n.tree-chevron:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--bs-primary, #0d6efd);\n outline-offset: 1px;\n}\n\ntbody[data-mps=datatable] tr[data-placeholder=true][data-mps=datatable] {\n cursor: default;\n opacity: 0.6;\n pointer-events: none;\n}\n\n.tree-placeholder-cell[data-mps=datatable] {\n color: var(--bs-secondary-color, #6c757d);\n font-style: italic;\n padding-left: 1.25rem;\n}\n\n.empty-state[data-mps=datatable],\n.loading-state[data-mps=datatable] {\n padding: 2rem 1rem;\n text-align: center;\n color: var(--bs-secondary-color, #6c757d);\n}\n\n.datatable-footer[data-mps=datatable] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0.5rem 0;\n gap: 1rem;\n flex-wrap: wrap;\n flex: 0 0 auto;\n}\n\n.datatable-per-page[data-mps=datatable],\n.datatable-pagination[data-mps=datatable] {\n flex: 0 1 auto;\n}\n\ntr.filter-row[data-mps=datatable] th[data-mps=datatable] {\n padding: 0;\n border-bottom: 1px solid var(--mp-datatable-border-color);\n font-weight: 400;\n user-select: none;\n}\n\n.filter-trigger[data-mps=datatable] {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n min-width: 0;\n box-sizing: border-box;\n padding: 0.5rem;\n border-radius: 0;\n background: transparent;\n border: 1px solid transparent;\n color: inherit;\n cursor: pointer;\n line-height: 1;\n}\n\n.filter-trigger:hover[data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));\n}\n\n.filter-trigger:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--bs-focus-ring-color, #0d6efd);\n outline-offset: 1px;\n}\n\n.filter-trigger[aria-expanded=true][data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));\n border-color: var(--mp-datatable-border-color);\n}\n\n.filter-icon[data-mps=datatable] {\n width: 0.875rem;\n height: 0.875rem;\n fill: currentColor;\n flex: 0 0 auto;\n}\n\n.filter-trigger.active[data-mps=datatable] .filter-icon[data-mps=datatable] {\n fill: var(--bs-primary, #0d6efd);\n}\n\n.filter-trigger.active[data-mps=datatable]::after {\n content: \"\";\n width: 0.375rem;\n height: 0.375rem;\n margin-inline-start: 0.25rem;\n border-radius: 50%;\n background-color: var(--bs-primary, #0d6efd);\n flex: 0 0 auto;\n}\n\n.filter-panel[data-mps=datatable] {\n position: fixed;\n min-width: 12rem;\n max-width: min(22rem, 100vw - 2rem);\n padding: 0.5rem;\n background-color: var(--bs-body-bg, #fff);\n color: var(--bs-body-color, inherit);\n border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));\n border-radius: 0.375rem;\n box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);\n}\n\n.filter-panel-body[data-mps=datatable] {\n display: block;\n max-height: min(20rem, 60vh);\n overflow: auto;\n}\n\n.resize-panel[data-mps=datatable] {\n position: fixed;\n display: flex;\n flex-direction: column;\n gap: 0.375rem;\n min-width: 12rem;\n padding: 0.5rem;\n background-color: var(--bs-body-bg, #fff);\n color: var(--bs-body-color, inherit);\n border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));\n border-radius: 0.375rem;\n box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);\n}\n\n.resize-panel-steps[data-mps=datatable] {\n display: flex;\n align-items: center;\n gap: 0.375rem;\n}\n\n.resize-panel-width[data-mps=datatable] {\n flex: 1 1 auto;\n text-align: center;\n font-variant-numeric: tabular-nums;\n}\n\n.resize-panel-step[data-mps=datatable],\n.resize-panel-action[data-mps=datatable] {\n min-height: 2.75rem;\n padding: 0.25rem 0.75rem;\n font: inherit;\n color: inherit;\n background: transparent;\n border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));\n border-radius: 0.25rem;\n cursor: pointer;\n}\n\n.resize-panel-step[data-mps=datatable] {\n flex: 0 0 2.75rem;\n font-size: 1.25rem;\n line-height: 1;\n}\n\n.resize-panel-step:hover[data-mps=datatable],\n.resize-panel-action:hover[data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));\n}\n\n.resize-panel-step:focus-visible[data-mps=datatable],\n.resize-panel-action:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--mp-datatable-resize-handle-color, var(--bs-primary, #0d6efd));\n outline-offset: 1px;\n}\n\n.filter-clear[data-mps=datatable],\n.filter-invert[data-mps=datatable] {\n display: block;\n width: 100%;\n box-sizing: border-box;\n padding: 0.25rem 0.5rem;\n margin-bottom: 0.375rem;\n background: transparent;\n border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));\n border-radius: 0.25rem;\n color: inherit;\n cursor: pointer;\n text-align: start;\n line-height: 1.4;\n}\n\n.filter-clear:disabled[data-mps=datatable] {\n opacity: 0.5;\n cursor: default;\n}\n\n.filter-invert[aria-pressed=true][data-mps=datatable] {\n background-color: var(--bs-primary, #0d6efd);\n border-color: var(--bs-primary, #0d6efd);\n color: var(--bs-primary-bg-subtle, #fff);\n}\n\n.filter-search[data-mps=datatable],\n.filter-operand[data-mps=datatable],\n.filter-operator[data-mps=datatable] {\n box-sizing: border-box;\n padding: 0.25rem 0.5rem;\n background-color: var(--bs-body-bg, #fff);\n color: inherit;\n border: 1px solid var(--mp-datatable-border-color, var(--bs-border-color, rgba(0, 0, 0, 0.125)));\n border-radius: 0.25rem;\n font: inherit;\n line-height: 1.5;\n}\n\n.filter-operand[type=number][data-mps=datatable] {\n appearance: textfield;\n}\n\n.filter-operand[data-mps=datatable]::-webkit-outer-spin-button,\n.filter-operand[data-mps=datatable]::-webkit-inner-spin-button {\n appearance: none;\n margin: 0;\n}\n\n.filter-search[data-mps=datatable] {\n display: block;\n width: 100%;\n margin-bottom: 0.375rem;\n}\n\n.filter-clear:focus-visible[data-mps=datatable],\n.filter-invert:focus-visible[data-mps=datatable],\n.filter-search:focus-visible[data-mps=datatable],\n.filter-option[data-mps=datatable] input:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--bs-focus-ring-color, #0d6efd);\n outline-offset: 1px;\n}\n\n.filter-comparison[data-mps=datatable] {\n display: flex;\n gap: 0.375rem;\n align-items: stretch;\n}\n\n.filter-operator[data-mps=datatable] {\n flex: 0 0 auto;\n max-width: 9rem;\n padding-inline: 0.375rem;\n}\n\n.filter-operand[data-mps=datatable] {\n flex: 1 1 auto;\n min-width: 0;\n}\n\n.filter-operator:focus-visible[data-mps=datatable],\n.filter-operand:focus-visible[data-mps=datatable] {\n outline: 2px solid var(--bs-focus-ring-color, #0d6efd);\n outline-offset: 1px;\n}\n\n.filter-options[data-mps=datatable] {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n}\n\n.filter-option[data-mps=datatable] {\n display: flex;\n align-items: center;\n gap: 0.375rem;\n padding: 0.125rem 0.25rem;\n border-radius: 0.25rem;\n cursor: pointer;\n overflow-wrap: anywhere;\n}\n\n.filter-option:hover[data-mps=datatable] {\n background-color: var(--mp-datatable-row-hover-bg, rgba(var(--bs-emphasis-color-rgb), 0.04));\n}\n\n.filter-remaining[data-mps=datatable] {\n color: var(--bs-secondary-color, #6c757d);\n}\n\n.filter-loading[data-mps=datatable],\n.filter-no-values[data-mps=datatable],\n.filter-has-more[data-mps=datatable] {\n display: block;\n padding: 0.25rem;\n color: var(--bs-secondary-color, #6c757d);\n font-size: 0.875em;\n}\n\n.filter-summary[data-mps=datatable] {\n margin-inline-start: 0.25rem;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 0.875em;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .resize-handle[data-mps=datatable] {\n transition: none !important;\n }\n}");
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region libs/mintplayer-web-components/datatable/src/sort/compute-next-sort.ts
|
|
79
|
+
function b(e, t, n) {
|
|
80
|
+
if (n) {
|
|
81
|
+
let n = e.findIndex((e) => e.property === t);
|
|
82
|
+
return n === -1 ? [...e, {
|
|
83
|
+
property: t,
|
|
84
|
+
direction: "ascending"
|
|
85
|
+
}] : e[n].direction === "ascending" ? e.map((e, t) => t === n ? {
|
|
86
|
+
...e,
|
|
87
|
+
direction: "descending"
|
|
88
|
+
} : e) : e.filter((e, t) => t !== n);
|
|
89
|
+
}
|
|
90
|
+
return [{
|
|
91
|
+
property: t,
|
|
92
|
+
direction: e.length === 1 && e[0].property === t && e[0].direction === "ascending" ? "descending" : "ascending"
|
|
93
|
+
}];
|
|
94
|
+
}
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region libs/mintplayer-web-components/datatable/src/sort/sort-rows.ts
|
|
97
|
+
function x(e, t) {
|
|
98
|
+
return t.length === 0 ? e.slice() : e.map((e, t) => ({
|
|
99
|
+
row: e,
|
|
100
|
+
index: t
|
|
101
|
+
})).sort((e, n) => {
|
|
102
|
+
for (let r of t) {
|
|
103
|
+
let t = C(S(e.row, r.property), S(n.row, r.property));
|
|
104
|
+
if (t !== 0) return r.direction === "ascending" ? t : -t;
|
|
105
|
+
}
|
|
106
|
+
return e.index - n.index;
|
|
107
|
+
}).map(({ row: e }) => e);
|
|
108
|
+
}
|
|
109
|
+
function S(e, t) {
|
|
110
|
+
if (typeof e == "object" && e) return e[t];
|
|
111
|
+
}
|
|
112
|
+
function C(e, t) {
|
|
113
|
+
return e === t ? 0 : e == null ? 1 : t == null ? -1 : typeof e == "number" && typeof t == "number" ? e - t : e instanceof Date && t instanceof Date ? e.getTime() - t.getTime() : String(e).localeCompare(String(t));
|
|
114
|
+
}
|
|
115
|
+
function w(e, t) {
|
|
116
|
+
return Math.max(40, e + t);
|
|
117
|
+
}
|
|
118
|
+
var T = .75;
|
|
119
|
+
function E(e) {
|
|
120
|
+
let t = Math.max(0, ...e.filter((e) => Number.isFinite(e)));
|
|
121
|
+
return t > 0 ? Math.max(40, Math.ceil(t)) : null;
|
|
122
|
+
}
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region libs/mintplayer-web-components/datatable/src/components/mp-datatable.ts
|
|
125
|
+
var D = a("datatable");
|
|
126
|
+
function O(e, t) {
|
|
127
|
+
return e === t || e !== e && t !== t;
|
|
128
|
+
}
|
|
129
|
+
function k(e, t) {
|
|
130
|
+
return e.some((e) => O(e.value, t));
|
|
131
|
+
}
|
|
132
|
+
var A = 250, j = 0, M = class extends s {
|
|
133
|
+
constructor(...i) {
|
|
134
|
+
super(...i), this.instanceId = `mp-datatable-${++j}`, this._caption = null, this._inputLabel = null, this.hostAria = new n(this, { referenceTarget: () => this.renderRoot?.querySelector("table") ?? null }), 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 r(this), this.rowFocusRestore = new e(this, new t(() => this.renderRoot ?? null, {
|
|
135
|
+
selector: "tbody tr[data-row-key]:not([data-placeholder=\"true\"])",
|
|
136
|
+
keyOf: (e) => e.dataset.rowKey ?? null,
|
|
137
|
+
container: () => this.renderRoot?.querySelector("table") ?? null
|
|
138
|
+
})), this._rowKey = (e, t) => {
|
|
139
|
+
let n = e;
|
|
140
|
+
return n && n.id != null ? String(n.id) : (this.warnPositionalKeyOnce(), `row-${t}`);
|
|
141
|
+
}, this._warnedPositionalKey = !1, this._columnWidths = /* @__PURE__ */ new Map(), this._measuredWidths = /* @__PURE__ */ new Map(), this._userWidths = /* @__PURE__ */ new Set(), this._derivedLabels = /* @__PURE__ */ new Map(), this._hasMeasuredInitial = !1, this._measuredFit = !1, this._refitFrame = null, this._loading = !1, this._emptyMessage = "No data", this._pagination = !1, this._page = 1, this._perPage = 20, this._perPageOptions = [
|
|
142
|
+
10,
|
|
143
|
+
20,
|
|
144
|
+
50
|
|
145
|
+
], this._autoSort = !0, this._totalRecords = null, this._virtualScroll = !1, this._itemSize = 40, this._virtualBuffer = 10, this._virtualRange = {
|
|
146
|
+
startIndex: 0,
|
|
147
|
+
endIndex: 0
|
|
148
|
+
}, this._scrollElement = null, this._resizeObserver = null, this._headerObserver = null, this._observedThead = null, this._scrollListener = null, this._viewportHeight = 0, this._openFilterColumn = null, this._mountedFilterColumn = null, this._consumerMountedFilter = !1, this._filterUid = `mp-dt-${Math.random().toString(36).slice(2, 9)}`, this._distincts = null, this._filterStates = /* @__PURE__ */ new Map(), this._tree = !1, this._idKey = null, this._childCountKey = null, this._treeIndent = 1.25, this._expandedIds = /* @__PURE__ */ new Set(), this._selectionStrategy = "flat", this._childCache = /* @__PURE__ */ new Map(), this._childTotals = /* @__PURE__ */ new Map(), this._pendingFetches = /* @__PURE__ */ new Set(), this._pageCache = /* @__PURE__ */ new Map(), this._pendingPageFetches = /* @__PURE__ */ new Set(), this._fetch = null, this._fetchGeneration = 0, this._initialFetchDone = !1, this._reloadScheduled = !1, this._lastReloadKey = null, this._cachedFlatList = null, this._cachedIndeterminateKeys = null, this._rowLabel = null, this._resizableColumns = !0, this.filterOverlay = new o(this, {
|
|
149
|
+
portal: !0,
|
|
150
|
+
modal: !0,
|
|
151
|
+
scrollStrategy: "reposition",
|
|
152
|
+
anchor: () => this.openFilterTrigger(),
|
|
153
|
+
trigger: () => this.openFilterTrigger(),
|
|
154
|
+
panel: () => this.filterOverlay.portalContainer?.querySelector(".filter-panel") ?? null,
|
|
155
|
+
initialFocus: () => this.filterOverlay.portalContainer?.querySelector(".filter-search, .filter-operand") ?? null,
|
|
156
|
+
onClose: () => {
|
|
157
|
+
let e = this._openFilterColumn;
|
|
158
|
+
if (e == null) return;
|
|
159
|
+
let t = this._filterStates.get(e);
|
|
160
|
+
t && (this.abortFilterRequest(t), t.term = "", this.rebucket(t)), this._openFilterColumn = null, this._mountedFilterColumn = null, this.requestUpdate(), this.dispatchEvent(new CustomEvent("mp-datatable-filter-close", {
|
|
161
|
+
detail: { column: e },
|
|
162
|
+
bubbles: !0,
|
|
163
|
+
composed: !0
|
|
164
|
+
}));
|
|
165
|
+
}
|
|
166
|
+
}), this._keyByRowMemo = null, this._selectionAnchorKey = null, this.resizeState = null, this._openResizeColumn = null, this._resizeHintAnnounced = !1, this._frozenExtraWidth = null, this._frozenWidths = /* @__PURE__ */ new Map(), this.onColumnResizeMove = (e) => {
|
|
167
|
+
let t = this.resizeState;
|
|
168
|
+
if (!t || e.pointerId !== t.pointerId) return;
|
|
169
|
+
let n = e.clientX - t.startX;
|
|
170
|
+
!t.dragging && Math.abs(n) <= 4 || (t.dragging = !0, this.setUserColumnWidth(t.column.name, w(t.startWidth, n)));
|
|
171
|
+
}, this.onColumnResizeEnd = (e) => {
|
|
172
|
+
let t = this.resizeState;
|
|
173
|
+
if (t && e.pointerId === t.pointerId) {
|
|
174
|
+
t.handle.classList.remove("active"), t.handle.removeEventListener("pointermove", this.onColumnResizeMove), t.handle.removeEventListener("pointerup", this.onColumnResizeEnd), t.handle.removeEventListener("pointercancel", this.onColumnResizeEnd);
|
|
175
|
+
try {
|
|
176
|
+
t.handle.releasePointerCapture(e.pointerId);
|
|
177
|
+
} catch {}
|
|
178
|
+
this.resizeState = null, e.type === "pointerup" && !t.dragging && this.openResizePanel(t.column);
|
|
179
|
+
}
|
|
180
|
+
}, this.resizeOverlay = new o(this, {
|
|
181
|
+
portal: !0,
|
|
182
|
+
modal: !0,
|
|
183
|
+
scrollStrategy: "reposition",
|
|
184
|
+
anchor: () => this._openResizeColumn ? this.resizeHandle(this._openResizeColumn) : null,
|
|
185
|
+
trigger: () => this._openResizeColumn ? this.resizeHandle(this._openResizeColumn) : null,
|
|
186
|
+
panel: () => this.resizeOverlay.portalContainer?.querySelector(".resize-panel") ?? null,
|
|
187
|
+
onClose: () => {
|
|
188
|
+
this._openResizeColumn = null, this.requestUpdate();
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
createRenderRoot() {
|
|
193
|
+
return this;
|
|
194
|
+
}
|
|
195
|
+
static get observedAttributes() {
|
|
196
|
+
return [
|
|
197
|
+
...super.observedAttributes ?? [],
|
|
198
|
+
"selection-mode",
|
|
199
|
+
"pagination",
|
|
200
|
+
"resizable-columns",
|
|
201
|
+
"auto-sort",
|
|
202
|
+
"empty-message",
|
|
203
|
+
"virtual-scroll",
|
|
204
|
+
"item-size",
|
|
205
|
+
"tree",
|
|
206
|
+
"tree-indent",
|
|
207
|
+
"selection-strategy",
|
|
208
|
+
"caption",
|
|
209
|
+
"aria-label",
|
|
210
|
+
"input-label",
|
|
211
|
+
"aria-labelledby",
|
|
212
|
+
"aria-describedby"
|
|
213
|
+
];
|
|
214
|
+
}
|
|
215
|
+
get caption() {
|
|
216
|
+
return this._caption;
|
|
217
|
+
}
|
|
218
|
+
set caption(e) {
|
|
219
|
+
let t = e ?? null;
|
|
220
|
+
this._caption !== t && (this._caption = t, this.requestUpdate());
|
|
221
|
+
}
|
|
222
|
+
get labels() {
|
|
223
|
+
return this._labels;
|
|
224
|
+
}
|
|
225
|
+
set labels(e) {
|
|
226
|
+
e !== this._labels && (this._labels = e, this.requestUpdate());
|
|
227
|
+
}
|
|
228
|
+
get mergedLabels() {
|
|
229
|
+
return {
|
|
230
|
+
...v,
|
|
231
|
+
...this.labels ?? {}
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
get inputLabel() {
|
|
235
|
+
return this._inputLabel;
|
|
236
|
+
}
|
|
237
|
+
set inputLabel(e) {
|
|
238
|
+
let t = e ?? null;
|
|
239
|
+
this._inputLabel !== t && (this._inputLabel = t, this.requestUpdate());
|
|
240
|
+
}
|
|
241
|
+
warnPositionalKeyOnce() {
|
|
242
|
+
this._warnedPositionalKey || !this._fetch && this._selectionMode === "none" || (this._warnedPositionalKey = !0, console.warn("[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."));
|
|
243
|
+
}
|
|
244
|
+
get autoSort() {
|
|
245
|
+
return this._autoSort;
|
|
246
|
+
}
|
|
247
|
+
set autoSort(e) {
|
|
248
|
+
this._autoSort = !!e, this.requestUpdate();
|
|
249
|
+
}
|
|
250
|
+
get rowRenderer() {
|
|
251
|
+
return this._rowRenderer;
|
|
252
|
+
}
|
|
253
|
+
set rowRenderer(e) {
|
|
254
|
+
this._rowRenderer = e, this.requestUpdate();
|
|
255
|
+
}
|
|
256
|
+
get virtualScroll() {
|
|
257
|
+
return this._virtualScroll;
|
|
258
|
+
}
|
|
259
|
+
set virtualScroll(e) {
|
|
260
|
+
let t = !!e;
|
|
261
|
+
this._virtualScroll !== t && (this._virtualScroll = t, this.requestUpdate());
|
|
262
|
+
}
|
|
263
|
+
get itemSize() {
|
|
264
|
+
return this._itemSize;
|
|
265
|
+
}
|
|
266
|
+
set itemSize(e) {
|
|
267
|
+
let t = Number.isFinite(e) && e > 0 ? Math.max(1, Math.floor(e)) : 40;
|
|
268
|
+
this._itemSize !== t && (this._itemSize = t, this.requestUpdate());
|
|
269
|
+
}
|
|
270
|
+
get virtualBuffer() {
|
|
271
|
+
return this._virtualBuffer;
|
|
272
|
+
}
|
|
273
|
+
set virtualBuffer(e) {
|
|
274
|
+
let t = Math.max(0, Math.floor(e || 0));
|
|
275
|
+
this._virtualBuffer !== t && (this._virtualBuffer = t, this.requestUpdate());
|
|
276
|
+
}
|
|
277
|
+
get columns() {
|
|
278
|
+
return this._columns;
|
|
279
|
+
}
|
|
280
|
+
set columns(e) {
|
|
281
|
+
this._columns = Array.isArray(e) ? e : [], this.syncFilterStates(), this.requestUpdate();
|
|
282
|
+
}
|
|
283
|
+
syncFilterStates() {
|
|
284
|
+
let e = new Set(this._columns.map((e) => e.name));
|
|
285
|
+
this._filterStates.forEach((t, n) => {
|
|
286
|
+
e.has(n) || (this.abortFilterRequest(t), this._filterStates.delete(n));
|
|
287
|
+
}), this._columns.forEach((e) => {
|
|
288
|
+
let t = this._filterStates.get(e.name);
|
|
289
|
+
t ? e.filterSelection && e.filterSelection !== t.seededFrom && (t.seededFrom = e.filterSelection, t.selection = {
|
|
290
|
+
values: [...e.filterSelection.values],
|
|
291
|
+
inverse: !!e.filterSelection.inverse,
|
|
292
|
+
operator: e.filterSelection.operator,
|
|
293
|
+
operand: e.filterSelection.operand ?? null
|
|
294
|
+
}, t.operandText = e.filterSelection.operand == null ? "" : String(e.filterSelection.operand), t.snapshot = null) : e.filterable && this._filterStates.set(e.name, this.createFilterState(e));
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
get data() {
|
|
298
|
+
return this._data;
|
|
299
|
+
}
|
|
300
|
+
set data(e) {
|
|
301
|
+
this._data = Array.isArray(e) ? e : [], this.refreshLocalDistincts(), this.requestUpdate();
|
|
302
|
+
}
|
|
303
|
+
get fetch() {
|
|
304
|
+
return this._fetch;
|
|
305
|
+
}
|
|
306
|
+
set fetch(e) {
|
|
307
|
+
this.assignFetch(e) && this.scheduleFetchReload();
|
|
308
|
+
}
|
|
309
|
+
assignFetch(e) {
|
|
310
|
+
let t = typeof e == "function" ? e : null;
|
|
311
|
+
return t !== this._fetch && (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));
|
|
312
|
+
}
|
|
313
|
+
get distincts() {
|
|
314
|
+
return this._distincts;
|
|
315
|
+
}
|
|
316
|
+
set distincts(e) {
|
|
317
|
+
this._distincts = typeof e == "function" ? e : null, this._filterStates.forEach((e) => {
|
|
318
|
+
e.loaded = null, e.view = null, e.loadedTerm = null;
|
|
319
|
+
}), this._openFilterColumn && this.requestUpdate();
|
|
320
|
+
}
|
|
321
|
+
get sortColumns() {
|
|
322
|
+
return [...this._sortColumns];
|
|
323
|
+
}
|
|
324
|
+
set sortColumns(e) {
|
|
325
|
+
this.assignSortColumns(e) && (this.requestUpdate(), this.scheduleFetchReload());
|
|
326
|
+
}
|
|
327
|
+
assignSortColumns(e) {
|
|
328
|
+
let t = Array.isArray(e) ? [...e] : [];
|
|
329
|
+
return t.length === this._sortColumns.length && t.every((e, t) => e.property === this._sortColumns[t].property && e.direction === this._sortColumns[t].direction) ? !1 : (this._sortColumns = t, !0);
|
|
330
|
+
}
|
|
331
|
+
reload({ resetPage: e = !1 } = {}) {
|
|
332
|
+
e && this.assignPage(1) && (this.requestUpdate(), this.dispatchEvent(new CustomEvent("mp-datatable-page-change", {
|
|
333
|
+
detail: { page: 1 },
|
|
334
|
+
bubbles: !0,
|
|
335
|
+
composed: !0
|
|
336
|
+
}))), this._lastReloadKey = null, this.scheduleFetchReload();
|
|
337
|
+
}
|
|
338
|
+
applyFetchState(e) {
|
|
339
|
+
let t = "fetch" in e && this.assignFetch(e.fetch);
|
|
340
|
+
e.sortColumns !== void 0 && this.assignSortColumns(e.sortColumns);
|
|
341
|
+
let n = e.perPage !== void 0 && this.assignPerPage(e.perPage);
|
|
342
|
+
e.page !== void 0 && (this.assignPage(e.page), n && !t && this.clampPageToKnownTotal()), this.requestUpdate(), this.scheduleFetchReload();
|
|
343
|
+
}
|
|
344
|
+
get selectionMode() {
|
|
345
|
+
return this._selectionMode;
|
|
346
|
+
}
|
|
347
|
+
set selectionMode(e) {
|
|
348
|
+
if (this._selectionMode = e, e === "none") {
|
|
349
|
+
this._selectionAnchorKey = null;
|
|
350
|
+
let e = this._selectedIds.size > 0;
|
|
351
|
+
this.commitSelection([]), e && this.emitSelectionChange();
|
|
352
|
+
}
|
|
353
|
+
this.requestUpdate();
|
|
354
|
+
}
|
|
355
|
+
get isMulti() {
|
|
356
|
+
return this._selectionMode === "multiple" || this._selectionMode === "checkbox";
|
|
357
|
+
}
|
|
358
|
+
get selectedIds() {
|
|
359
|
+
return [...this._selectedIds];
|
|
360
|
+
}
|
|
361
|
+
set selectedIds(e) {
|
|
362
|
+
let t = new Set(e ?? []);
|
|
363
|
+
t.size === this._selectedIds.size && [...t].every((e) => this._selectedIds.has(e)) || (this._selectedIds = t, this.pruneSelectedRowCache(), t.size > 0 && this.rememberLiveSelectedRows(), this.requestUpdate());
|
|
364
|
+
}
|
|
365
|
+
get selectedRows() {
|
|
366
|
+
return this.resolveRows([...this._selectedIds]);
|
|
367
|
+
}
|
|
368
|
+
set selectedRows(e) {
|
|
369
|
+
let t = e ?? [], n = this.rowKeyLookup(), r = t.map((e) => [n(e), e]);
|
|
370
|
+
this.isSameSelectedRows(r) || (this._selectedIds = new Set(r.map(([e]) => e)), this._selectedRowCache = new Map(r), this.requestUpdate());
|
|
371
|
+
}
|
|
372
|
+
get cutIds() {
|
|
373
|
+
return [...this._cutIds];
|
|
374
|
+
}
|
|
375
|
+
set cutIds(e) {
|
|
376
|
+
this._cutIds = new Set(e ?? []), this.requestUpdate();
|
|
377
|
+
}
|
|
378
|
+
get focusedRowKey() {
|
|
379
|
+
return this._focusedRowKey;
|
|
380
|
+
}
|
|
381
|
+
set focusedRowKey(e) {
|
|
382
|
+
this._focusedRowKey = e, this.requestUpdate();
|
|
383
|
+
}
|
|
384
|
+
get rowLabel() {
|
|
385
|
+
return this._rowLabel;
|
|
386
|
+
}
|
|
387
|
+
set rowLabel(e) {
|
|
388
|
+
this._rowLabel = typeof e == "function" ? e : null, this.requestUpdate();
|
|
389
|
+
}
|
|
390
|
+
get rowKey() {
|
|
391
|
+
return this._rowKey;
|
|
392
|
+
}
|
|
393
|
+
set rowKey(e) {
|
|
394
|
+
this._rowKey = typeof e == "function" ? e : this._rowKey, this.requestUpdate();
|
|
395
|
+
}
|
|
396
|
+
get tree() {
|
|
397
|
+
return this._tree;
|
|
398
|
+
}
|
|
399
|
+
set tree(e) {
|
|
400
|
+
let t = !!e;
|
|
401
|
+
this._tree !== t && (this._tree = t, this.requestUpdate());
|
|
402
|
+
}
|
|
403
|
+
get idKey() {
|
|
404
|
+
return this._idKey;
|
|
405
|
+
}
|
|
406
|
+
set idKey(e) {
|
|
407
|
+
this._idKey = e, this.requestUpdate();
|
|
408
|
+
}
|
|
409
|
+
get childCountKey() {
|
|
410
|
+
return this._childCountKey;
|
|
411
|
+
}
|
|
412
|
+
set childCountKey(e) {
|
|
413
|
+
this._childCountKey = e || null, this.requestUpdate();
|
|
414
|
+
}
|
|
415
|
+
get treeIndent() {
|
|
416
|
+
return this._treeIndent;
|
|
417
|
+
}
|
|
418
|
+
set treeIndent(e) {
|
|
419
|
+
let t = Number(e);
|
|
420
|
+
this._treeIndent = Number.isFinite(t) && t >= 0 ? t : 1.25, this.requestUpdate();
|
|
421
|
+
}
|
|
422
|
+
get expandedIds() {
|
|
423
|
+
return new Set(this._expandedIds);
|
|
424
|
+
}
|
|
425
|
+
set expandedIds(e) {
|
|
426
|
+
this._expandedIds = e ? (e instanceof Set, new Set(e)) : /* @__PURE__ */ new Set(), this.requestUpdate();
|
|
427
|
+
}
|
|
428
|
+
get selectionStrategy() {
|
|
429
|
+
return this._selectionStrategy;
|
|
430
|
+
}
|
|
431
|
+
set selectionStrategy(e) {
|
|
432
|
+
this._selectionStrategy = e === "cascading" ? "cascading" : "flat", this.requestUpdate();
|
|
433
|
+
}
|
|
434
|
+
get loading() {
|
|
435
|
+
return this._loading;
|
|
436
|
+
}
|
|
437
|
+
set loading(e) {
|
|
438
|
+
let t = this._loading;
|
|
439
|
+
this._loading = !!e, t && !this._loading && this.liveAnnouncer.announce(this.mergedLabels.announceLoaded(this._data.length)), this.requestUpdate();
|
|
440
|
+
}
|
|
441
|
+
get emptyMessage() {
|
|
442
|
+
return this._emptyMessage;
|
|
443
|
+
}
|
|
444
|
+
set emptyMessage(e) {
|
|
445
|
+
this._emptyMessage = e || "No data", this.requestUpdate();
|
|
446
|
+
}
|
|
447
|
+
get pagination() {
|
|
448
|
+
return this._pagination;
|
|
449
|
+
}
|
|
450
|
+
set pagination(e) {
|
|
451
|
+
this._pagination = !!e, this.requestUpdate();
|
|
452
|
+
}
|
|
453
|
+
get page() {
|
|
454
|
+
return this._page;
|
|
455
|
+
}
|
|
456
|
+
set page(e) {
|
|
457
|
+
this.assignPage(e) && (this.requestUpdate(), this.scheduleFetchReload());
|
|
458
|
+
}
|
|
459
|
+
assignPage(e) {
|
|
460
|
+
let t = Math.max(1, Math.floor(e || 1));
|
|
461
|
+
return this._page !== t && (this._page = t, !0);
|
|
462
|
+
}
|
|
463
|
+
get perPage() {
|
|
464
|
+
return this._perPage;
|
|
465
|
+
}
|
|
466
|
+
set perPage(e) {
|
|
467
|
+
this.assignPerPage(e) && (this.requestUpdate(), this.scheduleFetchReload());
|
|
468
|
+
}
|
|
469
|
+
clampPageToKnownTotal() {
|
|
470
|
+
let e = this._fetch ? this._totalRecords : this._data.length;
|
|
471
|
+
if (e == null) return;
|
|
472
|
+
let t = Math.max(1, Math.ceil(e / this._perPage));
|
|
473
|
+
this._page <= t || (this._page = t, this.dispatchEvent(new CustomEvent("mp-datatable-page-change", {
|
|
474
|
+
detail: { page: t },
|
|
475
|
+
bubbles: !0,
|
|
476
|
+
composed: !0
|
|
477
|
+
})));
|
|
478
|
+
}
|
|
479
|
+
assignPerPage(e) {
|
|
480
|
+
let t = Math.max(1, Math.floor(e || 1));
|
|
481
|
+
return this._perPage !== t && (this._perPage = t, this._page = 1, !0);
|
|
482
|
+
}
|
|
483
|
+
get perPageOptions() {
|
|
484
|
+
return [...this._perPageOptions];
|
|
485
|
+
}
|
|
486
|
+
set perPageOptions(e) {
|
|
487
|
+
this._perPageOptions = Array.isArray(e) && e.length > 0 ? [...e] : [
|
|
488
|
+
10,
|
|
489
|
+
20,
|
|
490
|
+
50
|
|
491
|
+
], this.requestUpdate();
|
|
492
|
+
}
|
|
493
|
+
get totalRecords() {
|
|
494
|
+
return this._totalRecords;
|
|
495
|
+
}
|
|
496
|
+
isExternallyPaged() {
|
|
497
|
+
return this._totalRecords != null && this._totalRecords > this._data.length;
|
|
498
|
+
}
|
|
499
|
+
isRootWindowed() {
|
|
500
|
+
return this._virtualScroll && this.isExternallyPaged();
|
|
501
|
+
}
|
|
502
|
+
attributeChangedCallback(e, t, n) {
|
|
503
|
+
if (super.attributeChangedCallback(e, t, n), e === "caption") this._caption = n, this.requestUpdate();
|
|
504
|
+
else if (e === "input-label") this._inputLabel = n, this.requestUpdate();
|
|
505
|
+
else if (e === "aria-label") this.requestUpdate();
|
|
506
|
+
else if (e === "aria-labelledby" || e === "aria-describedby") this.hostAria.syncReferences();
|
|
507
|
+
else if (e === "selection-mode") {
|
|
508
|
+
let e = n ?? "none";
|
|
509
|
+
(e === "none" || e === "single" || e === "multiple" || e === "checkbox") && (this.selectionMode = e);
|
|
510
|
+
} else if (e === "pagination") this.pagination = n !== null;
|
|
511
|
+
else if (e === "resizable-columns") this.resizableColumns = n !== "false";
|
|
512
|
+
else if (e === "auto-sort") this.autoSort = n !== "false";
|
|
513
|
+
else if (e === "empty-message") this.emptyMessage = n ?? "No data";
|
|
514
|
+
else if (e === "virtual-scroll") this.virtualScroll = n !== null;
|
|
515
|
+
else if (e === "item-size") {
|
|
516
|
+
let e = Number(n);
|
|
517
|
+
Number.isFinite(e) && (this.itemSize = e);
|
|
518
|
+
} else if (e === "tree") this.tree = n !== null;
|
|
519
|
+
else if (e === "tree-indent") {
|
|
520
|
+
let e = n === null ? 1.25 : Number(n);
|
|
521
|
+
Number.isFinite(e) && (this.treeIndent = e);
|
|
522
|
+
} else e === "selection-strategy" && (this.selectionStrategy = n === "cascading" ? "cascading" : "flat");
|
|
523
|
+
}
|
|
524
|
+
get resizableColumns() {
|
|
525
|
+
return this._resizableColumns;
|
|
526
|
+
}
|
|
527
|
+
set resizableColumns(e) {
|
|
528
|
+
this._resizableColumns = !!e, this.requestUpdate();
|
|
529
|
+
}
|
|
530
|
+
connectedCallback() {
|
|
531
|
+
super.connectedCallback();
|
|
532
|
+
}
|
|
533
|
+
firstUpdated() {
|
|
534
|
+
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(() => {
|
|
535
|
+
this.refreshVirtualRange(), this.scheduleRefit();
|
|
536
|
+
}), this._resizeObserver.observe(this._scrollElement))), this.refreshVirtualRange(), this.hostAria.syncReferences();
|
|
537
|
+
}
|
|
538
|
+
willUpdate(e) {
|
|
539
|
+
super.willUpdate(e), this._cachedFlatList = null, this._cachedIndeterminateKeys = null;
|
|
540
|
+
}
|
|
541
|
+
updated(e) {
|
|
542
|
+
super.updated(e), this.refreshVirtualRange(), this.nameRowCheckboxes(), this.maybeMeasureInitialColumnWidths();
|
|
543
|
+
let t = this.renderRoot?.querySelectorAll(".resize-handle:not([aria-valuenow])") ?? [];
|
|
544
|
+
for (let e of t) {
|
|
545
|
+
let t = e.closest("th");
|
|
546
|
+
t && e.setAttribute("aria-valuenow", String(Math.round(t.getBoundingClientRect().width)));
|
|
547
|
+
}
|
|
548
|
+
this._openFilterColumn && this.renderFilterPanel(), this._openResizeColumn && this.renderResizePanel(), this.observeHeaderText(), this.publishHeaderHeight();
|
|
549
|
+
}
|
|
550
|
+
publishHeaderHeight() {
|
|
551
|
+
if (!this.hasFilterRow) return;
|
|
552
|
+
let e = this.renderRoot?.querySelector("thead tr:first-child th"), t = this.renderRoot?.querySelector(".datatable-shell");
|
|
553
|
+
if (!e || !t) return;
|
|
554
|
+
let n = Math.round(e.getBoundingClientRect().height);
|
|
555
|
+
n <= 0 || t.style.getPropertyValue("--mp-datatable-header-height") !== `${n}px` && t.style.setProperty("--mp-datatable-header-height", `${n}px`);
|
|
556
|
+
}
|
|
557
|
+
maybeMeasureInitialColumnWidths() {
|
|
558
|
+
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;
|
|
559
|
+
let e = new Map(this._columnWidths), t = !1;
|
|
560
|
+
for (let n of this._columns) {
|
|
561
|
+
if (e.has(n.name)) continue;
|
|
562
|
+
if (typeof n.width == "number") {
|
|
563
|
+
e.set(n.name, n.width), t = !0;
|
|
564
|
+
continue;
|
|
565
|
+
}
|
|
566
|
+
let r = this.measureColumnWidth(n.name);
|
|
567
|
+
r != null && (e.set(n.name, r), this._measuredWidths.set(n.name, r), t = !0);
|
|
568
|
+
}
|
|
569
|
+
if (t) {
|
|
570
|
+
let t = [...this.renderRoot.querySelectorAll("thead tr:first-child th")].reduce((e, t) => e + t.getBoundingClientRect().width, 0);
|
|
571
|
+
this._measuredFit = !!this._scrollElement && t <= this._scrollElement.clientWidth + .5, this._columnWidths = e, this._hasMeasuredInitial = !0, this.requestUpdate();
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
scheduleRefit() {
|
|
575
|
+
this._refitFrame == null && typeof requestAnimationFrame < "u" && (this._refitFrame = requestAnimationFrame(() => {
|
|
576
|
+
this._refitFrame = null, this.refitMeasuredWidths();
|
|
577
|
+
}));
|
|
578
|
+
}
|
|
579
|
+
refitMeasuredWidths() {
|
|
580
|
+
if (this._frozenExtraWidth != null || !this._measuredFit || !this._scrollElement || !this.renderRoot) return;
|
|
581
|
+
let e = [...this._measuredWidths].filter(([e]) => !this._userWidths.has(e));
|
|
582
|
+
if (e.length === 0) return;
|
|
583
|
+
let t = new Set(e.map(([e]) => e)), n = [...this.renderRoot.querySelectorAll("thead tr:first-child th")].filter((e) => !t.has(e.dataset.column ?? "")).reduce((e, t) => e + t.getBoundingClientRect().width, 0), r = e.reduce((e, [, t]) => e + t, 0), i = this._scrollElement.clientWidth - n, a = Math.min(1, Math.max(T, i / r)), o = new Map(this._columnWidths);
|
|
584
|
+
e.map(([e, t]) => {
|
|
585
|
+
let n = Math.max(40, Math.floor(t * a)), r = o.get(e) !== n;
|
|
586
|
+
return o.set(e, n), r;
|
|
587
|
+
}).some(Boolean) && (this._columnWidths = o, this.requestUpdate());
|
|
588
|
+
}
|
|
589
|
+
measureColumnWidth(e) {
|
|
590
|
+
if (!this.renderRoot) return null;
|
|
591
|
+
let t = this.renderRoot.querySelector(`thead tr:first-child th[data-column="${e}"]`);
|
|
592
|
+
if (!t) return null;
|
|
593
|
+
let n = Math.floor(t.getBoundingClientRect().width);
|
|
594
|
+
return n > 0 ? n : null;
|
|
595
|
+
}
|
|
596
|
+
disconnectedCallback() {
|
|
597
|
+
super.disconnectedCallback(), this._scrollElement && this._scrollListener && this._scrollElement.removeEventListener("scroll", this._scrollListener), this._scrollListener = null, this._resizeObserver?.disconnect(), this._resizeObserver = null, this._headerObserver?.disconnect(), this._observedThead = null, this._refitFrame != null && cancelAnimationFrame(this._refitFrame), this._refitFrame = null, this._scrollElement = null, this._filterStates.forEach((e) => this.abortFilterRequest(e));
|
|
598
|
+
}
|
|
599
|
+
refreshVirtualRange() {
|
|
600
|
+
if (!this._virtualScroll || !this._scrollElement) return;
|
|
601
|
+
let e = this._scrollElement.scrollTop, t = this._scrollElement.clientHeight;
|
|
602
|
+
this._viewportHeight = t;
|
|
603
|
+
let n = this.getEffectiveData().length, r = this._itemSize, i = Math.max(0, Math.floor(e / r) - this._virtualBuffer), a = Math.ceil(t / r), o = Math.min(n, i + a + this._virtualBuffer * 2);
|
|
604
|
+
(i !== this._virtualRange.startIndex || o !== this._virtualRange.endIndex) && (this._virtualRange = {
|
|
605
|
+
startIndex: i,
|
|
606
|
+
endIndex: o
|
|
607
|
+
}, this.requestUpdate()), this._tree && this.maybeFetchPlaceholdersInViewport(), this.isRootWindowed() && this.maybeFetchPagesInViewport();
|
|
608
|
+
}
|
|
609
|
+
maybeFetchPlaceholdersInViewport() {
|
|
610
|
+
let e = this.getFlatList(), { startIndex: t, endIndex: n } = this._virtualRange, r = this._virtualScroll ? t : 0, i = this._virtualScroll ? n : e.length, a = /* @__PURE__ */ new Set();
|
|
611
|
+
for (let t = r; t < i; t++) {
|
|
612
|
+
let n = e[t];
|
|
613
|
+
n.isPlaceholder && n.parentId != null && (this._childCache.has(n.parentId) || this._pendingFetches.has(n.parentId) || a.add(n.parentId));
|
|
614
|
+
}
|
|
615
|
+
for (let e of a) this.fetchChildren(e);
|
|
616
|
+
}
|
|
617
|
+
maybeFetchPagesInViewport() {
|
|
618
|
+
let e = this.getFlatList(), { startIndex: t, endIndex: n } = this._virtualRange, r = this._virtualScroll ? t : 0, i = this._virtualScroll ? n : e.length, a = /* @__PURE__ */ new Set();
|
|
619
|
+
for (let t = r; t < i; t++) {
|
|
620
|
+
let n = e[t];
|
|
621
|
+
!n.isPlaceholder || n.page == null || n.page <= 1 || this._pageCache.has(n.page) || this._pendingPageFetches.has(n.page) || a.add(n.page);
|
|
622
|
+
}
|
|
623
|
+
for (let e of a) this.fetchWindowPage(e);
|
|
624
|
+
}
|
|
625
|
+
render() {
|
|
626
|
+
let e = this.computeVisibleRows(), t = this._totalRecords ?? this._data.length, n = this.pagination && !this._tree ? Math.max(1, Math.ceil(t / this._perPage)) : 1, r = this.isMulti, i = this._columns.length + +!!r + +!!this._tree, a = this.getVirtualSpacerHeights(), o = this.hasFilterRow ? 2 : 1, s = (this._tree || this.isRootWindowed() ? this.getFlatList().length : this._data.length) + o;
|
|
627
|
+
return D`
|
|
628
|
+
${this.liveAnnouncer.template()}
|
|
629
|
+
<div class="datatable-shell">
|
|
630
|
+
<div class="datatable-scroll ${this._virtualScroll ? "datatable-virtual" : ""}" role="presentation">
|
|
631
|
+
<table
|
|
632
|
+
role=${this._tree ? "treegrid" : this._selectionMode === "none" ? c : "grid"}
|
|
633
|
+
aria-multiselectable=${this.isMulti ? "true" : c}
|
|
634
|
+
aria-rowcount=${s}
|
|
635
|
+
aria-colcount=${i}
|
|
636
|
+
aria-busy=${this._loading ? "true" : c}
|
|
637
|
+
aria-label=${this.getAttribute("aria-label") ?? this._inputLabel ?? c}
|
|
638
|
+
class=${this._hasMeasuredInitial ? "measured" : ""}
|
|
639
|
+
style=${f(this._frozenExtraWidth == null ? {} : { width: `${this.frozenTableWidth()}px` })}
|
|
640
|
+
>
|
|
641
|
+
${this._caption ? D`<caption>${this._caption}</caption>` : c}
|
|
642
|
+
<thead>
|
|
643
|
+
<tr role="row" aria-rowindex="1">
|
|
644
|
+
${this._tree ? D`<th class="tree-chevron-cell" scope="col" aria-label=${this.mergedLabels.treeChevronColumn}></th>` : c}
|
|
645
|
+
${r ? D`<th class="checkbox-cell" scope="col">
|
|
646
|
+
<mp-checkbox
|
|
647
|
+
aria-label=${this.mergedLabels.deselectAll}
|
|
648
|
+
aria-hidden=${this._selectedIds.size === 0 ? "true" : c}
|
|
649
|
+
style=${f({ visibility: this._selectedIds.size > 0 ? "visible" : "hidden" })}
|
|
650
|
+
.checked=${!1}
|
|
651
|
+
.indeterminate=${this._selectedIds.size > 0}
|
|
652
|
+
@change=${this.onDeselectAll}
|
|
653
|
+
></mp-checkbox>
|
|
654
|
+
</th>` : c}
|
|
655
|
+
${this._columns.map((e, t) => this.renderHeader(e, t))}
|
|
656
|
+
</tr>
|
|
657
|
+
${this.hasFilterRow ? this.renderFilterRow(r) : c}
|
|
658
|
+
</thead>
|
|
659
|
+
<tbody>
|
|
660
|
+
${this._loading ? D`<tr><td colspan=${i} class="loading-state">Loading…</td></tr>` : e.length === 0 ? D`<tr><td colspan=${i} class="empty-state">${this._emptyMessage}</td></tr>` : D`
|
|
661
|
+
${a.top > 0 ? D`<tr class="virtual-spacer" aria-hidden="true"><td colspan=${i} style=${f({
|
|
662
|
+
height: `${a.top}px`,
|
|
663
|
+
padding: "0",
|
|
664
|
+
border: "0"
|
|
665
|
+
})}></td></tr>` : c}
|
|
666
|
+
${d(e, ({ key: e }) => e, ({ key: e, rowIndex: t, flat: n }) => this.renderRow(n, e, t, r))}
|
|
667
|
+
${a.bottom > 0 ? D`<tr class="virtual-spacer" aria-hidden="true"><td colspan=${i} style=${f({
|
|
668
|
+
height: `${a.bottom}px`,
|
|
669
|
+
padding: "0",
|
|
670
|
+
border: "0"
|
|
671
|
+
})}></td></tr>` : c}
|
|
672
|
+
`}
|
|
673
|
+
</tbody>
|
|
674
|
+
</table>
|
|
675
|
+
</div>
|
|
676
|
+
${this._pagination && !this._tree ? this.renderFooter(n) : c}
|
|
677
|
+
</div>
|
|
678
|
+
`;
|
|
679
|
+
}
|
|
680
|
+
getVirtualSpacerHeights() {
|
|
681
|
+
if (!this._virtualScroll) return {
|
|
682
|
+
top: 0,
|
|
683
|
+
bottom: 0
|
|
684
|
+
};
|
|
685
|
+
let e = this.getEffectiveData().length, { startIndex: t, endIndex: n } = this._virtualRange;
|
|
686
|
+
return {
|
|
687
|
+
top: t * this._itemSize,
|
|
688
|
+
bottom: Math.max(0, (e - n) * this._itemSize)
|
|
689
|
+
};
|
|
690
|
+
}
|
|
691
|
+
get hasFilterRow() {
|
|
692
|
+
return this._columns.some((e) => e.filterable);
|
|
693
|
+
}
|
|
694
|
+
get filterPanelId() {
|
|
695
|
+
return `${this._filterUid}-filter-panel`;
|
|
696
|
+
}
|
|
697
|
+
filterTriggerId(e) {
|
|
698
|
+
return `${this._filterUid}-filter-trigger-${e}`;
|
|
699
|
+
}
|
|
700
|
+
createFilterState(e) {
|
|
701
|
+
let t = e.name, n = {
|
|
702
|
+
selection: {
|
|
703
|
+
values: e.filterSelection ? [...e.filterSelection.values] : [],
|
|
704
|
+
inverse: !!e.filterSelection?.inverse,
|
|
705
|
+
operator: e.filterSelection?.operator,
|
|
706
|
+
operand: e.filterSelection?.operand ?? null
|
|
707
|
+
},
|
|
708
|
+
seededFrom: e.filterSelection ?? null,
|
|
709
|
+
snapshot: null,
|
|
710
|
+
loaded: null,
|
|
711
|
+
view: null,
|
|
712
|
+
loadedTerm: null,
|
|
713
|
+
fromLocal: !1,
|
|
714
|
+
term: "",
|
|
715
|
+
operandText: e.filterSelection?.operand == null ? "" : String(e.filterSelection.operand),
|
|
716
|
+
loading: !1,
|
|
717
|
+
generation: 0,
|
|
718
|
+
controller: null,
|
|
719
|
+
debounce: null,
|
|
720
|
+
listeners: /* @__PURE__ */ new Set(),
|
|
721
|
+
ctx: null
|
|
722
|
+
};
|
|
723
|
+
return n.ctx = {
|
|
724
|
+
values: () => n.view,
|
|
725
|
+
loading: () => n.loading,
|
|
726
|
+
search: (e) => this.setFilterSearch(t, e),
|
|
727
|
+
apply: (e, n) => this.applyFilter(t, e, n),
|
|
728
|
+
clear: () => this.clearFilter(t),
|
|
729
|
+
onChange: (e) => (n.listeners.add(e), () => n.listeners.delete(e))
|
|
730
|
+
}, n;
|
|
731
|
+
}
|
|
732
|
+
filterState(e) {
|
|
733
|
+
let t = this._filterStates.get(e);
|
|
734
|
+
if (t) return t;
|
|
735
|
+
let n = this._columns.find((t) => t.name === e);
|
|
736
|
+
if (!n?.filterable) return null;
|
|
737
|
+
let r = this.createFilterState(n);
|
|
738
|
+
return this._filterStates.set(e, r), r;
|
|
739
|
+
}
|
|
740
|
+
notifyFilterListeners(e) {
|
|
741
|
+
e.listeners.forEach((e) => e()), this.requestUpdate();
|
|
742
|
+
}
|
|
743
|
+
abortFilterRequest(e) {
|
|
744
|
+
e.controller?.abort(), e.controller = null, e.debounce != null && clearTimeout(e.debounce), e.debounce = null, e.loading = !1;
|
|
745
|
+
}
|
|
746
|
+
applyFilter(e, t, n) {
|
|
747
|
+
let r = this.filterState(e);
|
|
748
|
+
if (!r) return;
|
|
749
|
+
r.selection.values.length === 0 && t.length > 0 && r.snapshot == null && r.loaded && (r.snapshot = [...r.loaded.matching, ...r.loaded.remaining]), t.length === 0 && (r.snapshot = null), r.selection = {
|
|
750
|
+
...r.selection,
|
|
751
|
+
values: [...t],
|
|
752
|
+
inverse: n
|
|
753
|
+
}, this.rebucket(r), this.notifyFilterListeners(r);
|
|
754
|
+
let i = this._columns.find((t) => t.name === e);
|
|
755
|
+
this.liveAnnouncer.announce(this.mergedLabels.announceFilter(i ? this.columnLabel(i) : e, t.length)), this.dispatchEvent(new CustomEvent("mp-datatable-filter-change", {
|
|
756
|
+
detail: {
|
|
757
|
+
mode: "values",
|
|
758
|
+
column: e,
|
|
759
|
+
selected: [...t],
|
|
760
|
+
inverse: n
|
|
761
|
+
},
|
|
762
|
+
bubbles: !0,
|
|
763
|
+
composed: !0
|
|
764
|
+
}));
|
|
765
|
+
}
|
|
766
|
+
filterModeOf(e) {
|
|
767
|
+
return this._columns.find((t) => t.name === e)?.filterMode ?? "values";
|
|
768
|
+
}
|
|
769
|
+
clearFilter(e) {
|
|
770
|
+
if (this.filterModeOf(e) === "comparison") {
|
|
771
|
+
let t = this.filterState(e);
|
|
772
|
+
this.applyComparison(e, t?.selection.operator ?? "eq", "");
|
|
773
|
+
} else this.applyFilter(e, [], !1);
|
|
774
|
+
}
|
|
775
|
+
applyComparison(e, t, n) {
|
|
776
|
+
let r = this.filterState(e);
|
|
777
|
+
if (!r) return;
|
|
778
|
+
let i = this._columns.find((t) => t.name === e), a = this.parseOperand(n, i?.filterInputType);
|
|
779
|
+
r.operandText = n, r.selection = {
|
|
780
|
+
...r.selection,
|
|
781
|
+
operator: t,
|
|
782
|
+
operand: a
|
|
783
|
+
}, this.notifyFilterListeners(r);
|
|
784
|
+
let o = this.mergedLabels;
|
|
785
|
+
this.liveAnnouncer.announce(o.announceComparisonFilter(i ? this.columnLabel(i) : e, o.filterOperatorLabel(t), a == null ? "" : String(a))), this.dispatchEvent(new CustomEvent("mp-datatable-filter-change", {
|
|
786
|
+
detail: {
|
|
787
|
+
mode: "comparison",
|
|
788
|
+
column: e,
|
|
789
|
+
operator: t,
|
|
790
|
+
operand: a
|
|
791
|
+
},
|
|
792
|
+
bubbles: !0,
|
|
793
|
+
composed: !0
|
|
794
|
+
}));
|
|
795
|
+
}
|
|
796
|
+
parseOperand(e, t) {
|
|
797
|
+
if (e.trim() === "") return null;
|
|
798
|
+
if ((t ?? "number") === "date") return e;
|
|
799
|
+
let n = Number(e);
|
|
800
|
+
return Number.isNaN(n) ? null : n;
|
|
801
|
+
}
|
|
802
|
+
setFilterSearch(e, t) {
|
|
803
|
+
let n = this.filterState(e);
|
|
804
|
+
if (!n) return;
|
|
805
|
+
n.term = t, this.rebucket(n), this.notifyFilterListeners(n);
|
|
806
|
+
let r = n.loadedTerm ?? "";
|
|
807
|
+
(n.loaded?.hasMore || !t.startsWith(r)) && (n.debounce != null && clearTimeout(n.debounce), n.debounce = setTimeout(() => {
|
|
808
|
+
n.debounce = null, this.loadDistincts(e, t);
|
|
809
|
+
}, A));
|
|
810
|
+
}
|
|
811
|
+
async loadDistincts(e, t) {
|
|
812
|
+
let n = this.filterState(e);
|
|
813
|
+
if (!n) return;
|
|
814
|
+
let r = ++n.generation;
|
|
815
|
+
if (n.controller?.abort(), this._distincts) {
|
|
816
|
+
let i = new AbortController();
|
|
817
|
+
n.controller = i, n.loading = !0, this.notifyFilterListeners(n);
|
|
818
|
+
try {
|
|
819
|
+
let a = await this._distincts({
|
|
820
|
+
column: e,
|
|
821
|
+
search: t,
|
|
822
|
+
signal: i.signal
|
|
823
|
+
});
|
|
824
|
+
if (r !== n.generation) return;
|
|
825
|
+
if (n.loading = !1, n.controller = null, a) {
|
|
826
|
+
n.loaded = a, n.loadedTerm = t, this.rebucket(n), this.notifyFilterListeners(n);
|
|
827
|
+
return;
|
|
828
|
+
}
|
|
829
|
+
} catch {
|
|
830
|
+
if (r !== n.generation) return;
|
|
831
|
+
n.loading = !1, n.controller = null, n.loaded = null, n.loadedTerm = t, this.notifyFilterListeners(n);
|
|
832
|
+
return;
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
n.loaded = this.localDistincts(e), n.loadedTerm = "", n.fromLocal = !0, this.rebucket(n), this.notifyFilterListeners(n);
|
|
836
|
+
}
|
|
837
|
+
refreshLocalDistincts() {
|
|
838
|
+
if (!this._openFilterColumn) return;
|
|
839
|
+
let e = this._filterStates.get(this._openFilterColumn);
|
|
840
|
+
e && e.fromLocal && (e.loaded = this.localDistincts(this._openFilterColumn), this.rebucket(e), this.notifyFilterListeners(e));
|
|
841
|
+
}
|
|
842
|
+
localDistincts(e) {
|
|
843
|
+
if (this._fetch != null || this.isExternallyPaged() || this._childCache.size > 0) return null;
|
|
844
|
+
let t = this.mergedLabels, n = [];
|
|
845
|
+
return this._data.forEach((r) => {
|
|
846
|
+
let i = r?.[e];
|
|
847
|
+
k(n, i) || n.push({
|
|
848
|
+
value: i,
|
|
849
|
+
label: t.filterValue(i)
|
|
850
|
+
});
|
|
851
|
+
}), n.sort((e, t) => e.label.localeCompare(t.label)), {
|
|
852
|
+
matching: n,
|
|
853
|
+
remaining: [],
|
|
854
|
+
hasMore: !1
|
|
855
|
+
};
|
|
856
|
+
}
|
|
857
|
+
rebucket(e) {
|
|
858
|
+
if (!e.loaded) {
|
|
859
|
+
e.view = null;
|
|
860
|
+
return;
|
|
861
|
+
}
|
|
862
|
+
let t = e.term.trim().toLowerCase(), n = (e) => t === "" || e.label.toLowerCase().includes(t), r = [...e.loaded.matching, ...e.loaded.remaining], i = e.snapshot ? e.snapshot.filter((e) => k(r, e.value)) : e.loaded.matching, a = e.snapshot ? e.snapshot.filter((e) => !k(r, e.value)) : e.loaded.remaining;
|
|
863
|
+
e.view = {
|
|
864
|
+
matching: i.filter(n),
|
|
865
|
+
remaining: a.filter(n),
|
|
866
|
+
hasMore: e.loaded.hasMore
|
|
867
|
+
};
|
|
868
|
+
}
|
|
869
|
+
openFilterTrigger() {
|
|
870
|
+
return this._openFilterColumn ? this.renderRoot?.querySelector(`tr.filter-row th[data-column="${this._openFilterColumn}"] .filter-trigger`) ?? null : null;
|
|
871
|
+
}
|
|
872
|
+
onFilterTriggerClick(e, t) {
|
|
873
|
+
t.preventDefault(), t.stopPropagation(), this._openFilterColumn === e.name ? this.filterOverlay.close() : (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(new CustomEvent("mp-datatable-filter-open", {
|
|
874
|
+
detail: { column: e.name },
|
|
875
|
+
bubbles: !0,
|
|
876
|
+
composed: !0
|
|
877
|
+
})));
|
|
878
|
+
}
|
|
879
|
+
renderFilterPanel() {
|
|
880
|
+
let e = this.filterOverlay.portalContainer;
|
|
881
|
+
if (!e) return;
|
|
882
|
+
let t = this._columns.find((e) => e.name === this._openFilterColumn);
|
|
883
|
+
if (!t) return;
|
|
884
|
+
let n = this.filterState(t.name);
|
|
885
|
+
l(D`
|
|
886
|
+
<div
|
|
887
|
+
class="filter-panel"
|
|
888
|
+
id=${this.filterPanelId}
|
|
889
|
+
role="dialog"
|
|
890
|
+
aria-label=${this.mergedLabels.filterColumn(this.columnLabel(t))}
|
|
891
|
+
>
|
|
892
|
+
<div class="filter-panel-body"></div>
|
|
893
|
+
</div>
|
|
894
|
+
`, e);
|
|
895
|
+
let r = e.querySelector(".filter-panel-body");
|
|
896
|
+
if (!r || !n) return;
|
|
897
|
+
if (this._mountedFilterColumn === t.name && r.firstChild) {
|
|
898
|
+
this._consumerMountedFilter || this.renderDefaultFilterPanel(t, n, r);
|
|
899
|
+
return;
|
|
900
|
+
}
|
|
901
|
+
let i = t.filterRenderer?.(t, n.ctx) ?? null;
|
|
902
|
+
i ? (r.replaceChildren(i), this._consumerMountedFilter = !0, this._mountedFilterColumn = t.name) : (this._consumerMountedFilter = !1, this.renderDefaultFilterPanel(t, n, r), this._mountedFilterColumn = t.name);
|
|
903
|
+
}
|
|
904
|
+
renderDefaultFilterPanel(e, t, n) {
|
|
905
|
+
if ((e.filterMode ?? "values") === "comparison") {
|
|
906
|
+
this.renderComparisonFilterPanel(e, t, n);
|
|
907
|
+
return;
|
|
908
|
+
}
|
|
909
|
+
let r = this.mergedLabels, i = this.columnLabel(e), a = t.view, o = t.selection.values, s = [
|
|
910
|
+
...o,
|
|
911
|
+
...(a?.matching ?? []).filter((e) => !k(o, e.value)),
|
|
912
|
+
...(a?.remaining ?? []).filter((e) => !k(o, e.value))
|
|
913
|
+
], u = (e) => !!a && k(a.remaining, e);
|
|
914
|
+
l(D`
|
|
915
|
+
<button
|
|
916
|
+
type="button"
|
|
917
|
+
class="filter-clear"
|
|
918
|
+
?disabled=${o.length === 0 && !t.selection.inverse}
|
|
919
|
+
@click=${() => this.onFilterClear(e.name)}
|
|
920
|
+
>
|
|
921
|
+
${r.filterClear(i)}
|
|
922
|
+
</button>
|
|
923
|
+
<input
|
|
924
|
+
type="search"
|
|
925
|
+
class="filter-search"
|
|
926
|
+
.value=${t.term}
|
|
927
|
+
aria-label=${r.filterSearch}
|
|
928
|
+
@input=${(e) => t.ctx.search(e.target.value)}
|
|
929
|
+
/>
|
|
930
|
+
<button
|
|
931
|
+
type="button"
|
|
932
|
+
class="filter-invert"
|
|
933
|
+
aria-pressed=${t.selection.inverse ? "true" : "false"}
|
|
934
|
+
@click=${() => t.ctx.apply(o, !t.selection.inverse)}
|
|
935
|
+
>
|
|
936
|
+
${r.filterInvert}
|
|
937
|
+
</button>
|
|
938
|
+
<div class="filter-options" role="group" aria-label=${r.filterGroup(i)}>
|
|
939
|
+
${t.loading ? D`<span class="filter-loading">${r.loading}</span>` : c}
|
|
940
|
+
${d(s, (e) => e.value, (t) => D`
|
|
941
|
+
<label class=${m({
|
|
942
|
+
"filter-option": !0,
|
|
943
|
+
"filter-remaining": u(t.value)
|
|
944
|
+
})}>
|
|
945
|
+
<input
|
|
946
|
+
type="checkbox"
|
|
947
|
+
.checked=${k(o, t.value)}
|
|
948
|
+
@change=${(n) => this.onFilterToggle(e.name, t, n.target.checked)}
|
|
949
|
+
/>
|
|
950
|
+
<span>${t.label}</span>
|
|
951
|
+
</label>
|
|
952
|
+
`)}
|
|
953
|
+
${s.length === 0 && !t.loading ? D`<span class="filter-no-values">${r.filterNoValues}</span>` : c}
|
|
954
|
+
</div>
|
|
955
|
+
${a?.hasMore ? D`<span class="filter-has-more">${r.filterHasMore}</span>` : c}
|
|
956
|
+
`, n);
|
|
957
|
+
}
|
|
958
|
+
renderComparisonFilterPanel(e, t, n) {
|
|
959
|
+
let r = this.mergedLabels, i = this.columnLabel(e), a = e.filterOperators?.length ? e.filterOperators : _, o = t.selection.operator ?? a[0], s = t.selection.operand, c = e.filterInputType ?? "number", u = () => n.querySelector(".filter-operand")?.value ?? "", d = () => n.querySelector(".filter-operator")?.value ?? o;
|
|
960
|
+
l(D`
|
|
961
|
+
<button
|
|
962
|
+
type="button"
|
|
963
|
+
class="filter-clear"
|
|
964
|
+
?disabled=${s == null}
|
|
965
|
+
@click=${() => this.onFilterClear(e.name)}
|
|
966
|
+
>
|
|
967
|
+
${r.filterClear(i)}
|
|
968
|
+
</button>
|
|
969
|
+
<div class="filter-comparison">
|
|
970
|
+
<select
|
|
971
|
+
class="filter-operator"
|
|
972
|
+
aria-label=${r.filterOperator}
|
|
973
|
+
@change=${() => this.applyComparison(e.name, d(), u())}
|
|
974
|
+
>
|
|
975
|
+
${a.map((e) => D`
|
|
976
|
+
<option value=${e} ?selected=${e === o}>
|
|
977
|
+
${g[e]} ${r.filterOperatorLabel(e)}
|
|
978
|
+
</option>
|
|
979
|
+
`)}
|
|
980
|
+
</select>
|
|
981
|
+
<input
|
|
982
|
+
class="filter-operand"
|
|
983
|
+
type=${c}
|
|
984
|
+
.value=${p(t.operandText)}
|
|
985
|
+
aria-label=${r.filterOperand}
|
|
986
|
+
@input=${() => this.applyComparison(e.name, d(), u())}
|
|
987
|
+
/>
|
|
988
|
+
</div>
|
|
989
|
+
`, n);
|
|
990
|
+
}
|
|
991
|
+
onFilterToggle(e, t, n) {
|
|
992
|
+
let r = this.filterState(e);
|
|
993
|
+
if (!r) return;
|
|
994
|
+
let i = n ? [...r.selection.values, t] : r.selection.values.filter((e) => !O(e.value, t.value));
|
|
995
|
+
r.ctx.apply(i, r.selection.inverse);
|
|
996
|
+
}
|
|
997
|
+
onFilterClear(e) {
|
|
998
|
+
let t = this.filterState(e);
|
|
999
|
+
t && (t.ctx.clear(), this.filterOverlay.portalContainer?.querySelector(".filter-search, .filter-operand")?.focus({ preventScroll: !0 }));
|
|
1000
|
+
}
|
|
1001
|
+
renderFilterRow(e) {
|
|
1002
|
+
return D`
|
|
1003
|
+
<tr role="row" aria-rowindex="2" class="filter-row">
|
|
1004
|
+
${this._tree ? D`<th class="filter-cell tree-chevron-cell"></th>` : c}
|
|
1005
|
+
${e ? D`<th class="filter-cell checkbox-cell"></th>` : c}
|
|
1006
|
+
${this._columns.map((e) => this.renderFilterCell(e))}
|
|
1007
|
+
</tr>
|
|
1008
|
+
`;
|
|
1009
|
+
}
|
|
1010
|
+
renderFilterCell(e) {
|
|
1011
|
+
if (!e.filterable) return D`<th class="filter-cell p-0" data-column=${e.name} scope="col"></th>`;
|
|
1012
|
+
let t = this._openFilterColumn === e.name, n = this.mergedLabels, r = this.columnLabel(e), i = e.filterActive ? n.filterColumnActive(r, e.filterSummary) : n.filterColumn(r);
|
|
1013
|
+
return D`
|
|
1014
|
+
<th class="filter-cell p-0" data-column=${e.name} scope="col">
|
|
1015
|
+
<button
|
|
1016
|
+
type="button"
|
|
1017
|
+
class=${m({
|
|
1018
|
+
"filter-trigger": !0,
|
|
1019
|
+
"p-2": !0,
|
|
1020
|
+
"rounded-0": !0,
|
|
1021
|
+
active: !!e.filterActive,
|
|
1022
|
+
open: t
|
|
1023
|
+
})}
|
|
1024
|
+
id=${this.filterTriggerId(e.name)}
|
|
1025
|
+
aria-expanded=${t ? "true" : "false"}
|
|
1026
|
+
aria-controls=${t ? this.filterPanelId : c}
|
|
1027
|
+
aria-label=${i}
|
|
1028
|
+
@click=${(t) => this.onFilterTriggerClick(e, t)}
|
|
1029
|
+
>
|
|
1030
|
+
<svg class="filter-icon" viewBox="0 0 16 16" aria-hidden="true" focusable="false">
|
|
1031
|
+
<path d="M2 3h12l-4.5 5.25V13L6.5 11.5V8.25L2 3z" />
|
|
1032
|
+
</svg>
|
|
1033
|
+
${e.filterSummary ? D`<span class="filter-summary">${e.filterSummary}</span>` : c}
|
|
1034
|
+
</button>
|
|
1035
|
+
</th>
|
|
1036
|
+
`;
|
|
1037
|
+
}
|
|
1038
|
+
columnLabel(e) {
|
|
1039
|
+
return e.label ?? this._derivedLabels.get(e.name) ?? e.name;
|
|
1040
|
+
}
|
|
1041
|
+
deriveHeaderLabel(e, t) {
|
|
1042
|
+
if (!(t instanceof Node)) {
|
|
1043
|
+
this._derivedLabels.delete(e.name);
|
|
1044
|
+
return;
|
|
1045
|
+
}
|
|
1046
|
+
let n = t.textContent?.replace(/\s+/g, " ").trim();
|
|
1047
|
+
n && this._derivedLabels.set(e.name, n);
|
|
1048
|
+
}
|
|
1049
|
+
observeHeaderText() {
|
|
1050
|
+
if (typeof MutationObserver > "u") return;
|
|
1051
|
+
let e = this.renderRoot?.querySelector("thead") ?? null;
|
|
1052
|
+
e !== this._observedThead && (this._headerObserver ??= new MutationObserver(() => {
|
|
1053
|
+
this.headerTextChanged() && this.requestUpdate();
|
|
1054
|
+
}), this._headerObserver.disconnect(), this._observedThead = e, e && this._headerObserver.observe(e, {
|
|
1055
|
+
characterData: !0,
|
|
1056
|
+
childList: !0,
|
|
1057
|
+
subtree: !0
|
|
1058
|
+
}));
|
|
1059
|
+
}
|
|
1060
|
+
headerTextChanged() {
|
|
1061
|
+
return [...this._derivedLabels].some(([e, t]) => {
|
|
1062
|
+
let n = (this.headerCell(e)?.querySelector(".header-cell > span"))?.textContent?.replace(/\s+/g, " ").trim();
|
|
1063
|
+
return !!n && n !== t;
|
|
1064
|
+
});
|
|
1065
|
+
}
|
|
1066
|
+
isColumnResizable(e) {
|
|
1067
|
+
return e.resizable ?? this._resizableColumns;
|
|
1068
|
+
}
|
|
1069
|
+
renderHeader(e, t) {
|
|
1070
|
+
let n = e.sortable ?? !0, r = this._sortColumns.findIndex((t) => t.property === e.name), i = r >= 0 ? this._sortColumns[r].direction : null, a = this._columnWidths.get(e.name) ?? e.width, o = e.headerRenderer ? e.headerRenderer(e) : e.label ?? e.name;
|
|
1071
|
+
this.deriveHeaderLabel(e, o);
|
|
1072
|
+
let s = {};
|
|
1073
|
+
return typeof a == "number" && (s.width = `${a}px`, s.minWidth = `${a}px`), D`
|
|
1074
|
+
<th
|
|
1075
|
+
scope="col"
|
|
1076
|
+
data-column=${e.name}
|
|
1077
|
+
data-sortable=${n ? "true" : "false"}
|
|
1078
|
+
aria-sort=${i ? i === "ascending" ? "ascending" : "descending" : "none"}
|
|
1079
|
+
style=${f(s)}
|
|
1080
|
+
>
|
|
1081
|
+
${n ? D`<button
|
|
1082
|
+
type="button"
|
|
1083
|
+
class="header-cell header-sort"
|
|
1084
|
+
@click=${(t) => this.onHeaderClick(e, t)}
|
|
1085
|
+
>
|
|
1086
|
+
<span>${L(o)}</span>
|
|
1087
|
+
${r >= 0 && this._sortColumns.length > 1 ? D`<span class="sort-index">${r + 1}</span>` : c}
|
|
1088
|
+
</button>` : D`<span class="header-cell">
|
|
1089
|
+
<span>${L(o)}</span>
|
|
1090
|
+
</span>`}
|
|
1091
|
+
${this.isColumnResizable(e) ? D`<span
|
|
1092
|
+
class="resize-handle"
|
|
1093
|
+
role="separator"
|
|
1094
|
+
tabindex="0"
|
|
1095
|
+
aria-orientation="vertical"
|
|
1096
|
+
aria-label=${this.mergedLabels.resizeColumn(this.columnLabel(e))}
|
|
1097
|
+
aria-valuemin=${40}
|
|
1098
|
+
aria-valuenow=${Math.round(a ?? 0) || c}
|
|
1099
|
+
@pointerdown=${(t) => this.startColumnResize(e, t)}
|
|
1100
|
+
@keydown=${(t) => this.onResizeHandleKeydown(e, t)}
|
|
1101
|
+
@focus=${() => this.onResizeHandleFocus()}
|
|
1102
|
+
></span>` : c}
|
|
1103
|
+
</th>
|
|
1104
|
+
`;
|
|
1105
|
+
}
|
|
1106
|
+
renderRow(e, t, n, r) {
|
|
1107
|
+
let { row: i, depth: a, isExpanded: o, isPlaceholder: s } = e, l = !s && this._selectedIds.has(t), u = !s && this._cutIds.has(t), d = !s && this._focusedRowKey === t, p = s ? 0 : this.extractChildCount(i), h = this._tree && !s && p > 0, g = !s && i != null && this.isParentIndeterminate(i, t);
|
|
1108
|
+
return D`
|
|
1109
|
+
<tr
|
|
1110
|
+
role="row"
|
|
1111
|
+
aria-rowindex=${n + 1 + (this.hasFilterRow ? 2 : 1)}
|
|
1112
|
+
aria-level=${this._tree ? a + 1 : c}
|
|
1113
|
+
aria-expanded=${this._tree && p > 0 ? o ? "true" : "false" : c}
|
|
1114
|
+
aria-busy=${s ? "true" : c}
|
|
1115
|
+
aria-selected=${!s && this._selectionMode !== "none" ? l ? "true" : "false" : c}
|
|
1116
|
+
data-row-key=${t}
|
|
1117
|
+
data-selected=${l ? "true" : "false"}
|
|
1118
|
+
data-cut=${u ? "true" : "false"}
|
|
1119
|
+
data-focused=${d ? "true" : "false"}
|
|
1120
|
+
data-placeholder=${s ? "true" : "false"}
|
|
1121
|
+
data-depth=${this._tree ? String(a) : c}
|
|
1122
|
+
data-clickable=${!s && (this._selectionMode !== "none" || this.hasRowClickListeners()) ? "true" : "false"}
|
|
1123
|
+
tabindex=${!s && (this._selectionMode !== "none" || this._tree) ? this._focusedRowKey === t || this._focusedRowKey === null && n === 0 ? "0" : "-1" : c}
|
|
1124
|
+
@focus=${s ? null : () => {
|
|
1125
|
+
this._focusedRowKey = t, this.requestUpdate();
|
|
1126
|
+
}}
|
|
1127
|
+
@click=${s ? null : (e) => this.onRowClick(i, t, n, e)}
|
|
1128
|
+
@dblclick=${s ? null : (e) => this.onRowDblClick(i, t, n, e)}
|
|
1129
|
+
@contextmenu=${s ? null : (e) => this.onRowContextMenu(i, t, n, e)}
|
|
1130
|
+
@keydown=${s ? null : (r) => this.onRowKeydown(i, t, n, e.parentId, a, o, p, r)}
|
|
1131
|
+
>
|
|
1132
|
+
${this._tree ? D`<td class="tree-chevron-cell" style=${f({ paddingInlineStart: `${a * this._treeIndent}rem` })}>
|
|
1133
|
+
${h ? D`<button
|
|
1134
|
+
type="button"
|
|
1135
|
+
class="tree-chevron"
|
|
1136
|
+
aria-label=${o ? this.mergedLabels.collapseRow : this.mergedLabels.expandRow}
|
|
1137
|
+
aria-expanded=${o ? "true" : "false"}
|
|
1138
|
+
data-expanded=${o ? "true" : "false"}
|
|
1139
|
+
@click=${(t) => this.toggleExpand(i, e.parentId, a, t)}
|
|
1140
|
+
>${o ? "▾" : "▸"}</button>` : c}
|
|
1141
|
+
</td>` : c}
|
|
1142
|
+
${r ? D`<td
|
|
1143
|
+
class=${m({
|
|
1144
|
+
"checkbox-cell": !0,
|
|
1145
|
+
"checkbox-cell-toggles": this._selectionMode === "checkbox"
|
|
1146
|
+
})}
|
|
1147
|
+
@click=${s ? (e) => e.stopPropagation() : (e) => this.onCheckboxCellClick(i, t, e)}
|
|
1148
|
+
@dblclick=${(e) => e.stopPropagation()}
|
|
1149
|
+
>
|
|
1150
|
+
${s ? c : D`<mp-checkbox
|
|
1151
|
+
.checked=${l}
|
|
1152
|
+
.indeterminate=${g}
|
|
1153
|
+
@change=${() => this.onRowCheckboxToggle(i, t)}
|
|
1154
|
+
></mp-checkbox>`}
|
|
1155
|
+
</td>` : c}
|
|
1156
|
+
${this._rowRenderer ? this.renderRowFromRenderer(i, n, {
|
|
1157
|
+
depth: a,
|
|
1158
|
+
isExpanded: o,
|
|
1159
|
+
isPlaceholder: s
|
|
1160
|
+
}) : s ? D`<td colspan=${this._columns.length} class="tree-placeholder-cell" aria-label=${this.mergedLabels.loading}>…</td>` : this._columns.map((e) => this.renderCell(i, e, n))}
|
|
1161
|
+
</tr>
|
|
1162
|
+
`;
|
|
1163
|
+
}
|
|
1164
|
+
nameRowCheckboxes() {
|
|
1165
|
+
if (!this.isMulti) return;
|
|
1166
|
+
let e = this.mergedLabels, t = new Map(this.computeVisibleRows().map((e) => [e.key, e])), n = this.renderRoot.querySelectorAll("tbody tr[data-row-key]:not([data-placeholder=\"true\"])");
|
|
1167
|
+
for (let r of n) {
|
|
1168
|
+
let n = r.querySelector(":scope > td.checkbox-cell > mp-checkbox"), i = t.get(r.dataset.rowKey ?? "");
|
|
1169
|
+
if (!n || !i) continue;
|
|
1170
|
+
let a = this._rowLabel?.(i.row)?.trim(), o = r.querySelector(":scope > td:not(.checkbox-cell):not(.tree-chevron-cell)")?.textContent?.trim(), s = a || o, c = s ? e.selectRowNamed(s) : e.selectRow(i.rowIndex + 1);
|
|
1171
|
+
n.getAttribute("aria-label") !== c && n.setAttribute("aria-label", c);
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
renderRowFromRenderer(e, t, n) {
|
|
1175
|
+
let r = this._rowRenderer(e, t, n);
|
|
1176
|
+
if (r == null) return n.isPlaceholder ? D`<td colspan=${this._columns.length} class="tree-placeholder-cell" aria-label=${this.mergedLabels.loading}>…</td>` : this._columns.map((n) => this.renderCell(e, n, t));
|
|
1177
|
+
if (Array.isArray(r) || I(r)) {
|
|
1178
|
+
let e = [];
|
|
1179
|
+
for (let t of r) e.push(t);
|
|
1180
|
+
return e;
|
|
1181
|
+
}
|
|
1182
|
+
return r;
|
|
1183
|
+
}
|
|
1184
|
+
renderCell(e, t, n) {
|
|
1185
|
+
let r = t.cellRenderer ? t.cellRenderer(e, t, n) : F(e, t);
|
|
1186
|
+
return D`<td class=${t.cellClass ?? ""} data-column=${t.name}>${L(r)}</td>`;
|
|
1187
|
+
}
|
|
1188
|
+
renderFooter(e) {
|
|
1189
|
+
let t = Array.from({ length: e }, (e, t) => t + 1);
|
|
1190
|
+
return D`
|
|
1191
|
+
<div class="datatable-footer">
|
|
1192
|
+
<mp-pagination
|
|
1193
|
+
class="datatable-per-page"
|
|
1194
|
+
aria-label=${this.mergedLabels.rowsPerPage}
|
|
1195
|
+
.pageNumbers=${this._perPageOptions}
|
|
1196
|
+
.selectedPageNumber=${this._perPage}
|
|
1197
|
+
.showArrows=${!1}
|
|
1198
|
+
@mp-pagination-page-change=${(e) => this.setPerPage(e.detail.page)}
|
|
1199
|
+
></mp-pagination>
|
|
1200
|
+
<mp-pagination
|
|
1201
|
+
class="datatable-pagination"
|
|
1202
|
+
.pageNumbers=${t}
|
|
1203
|
+
.selectedPageNumber=${this._page}
|
|
1204
|
+
.numberOfBoxes=${7}
|
|
1205
|
+
.showArrows=${!0}
|
|
1206
|
+
@mp-pagination-page-change=${(e) => this.gotoPage(e.detail.page)}
|
|
1207
|
+
></mp-pagination>
|
|
1208
|
+
</div>
|
|
1209
|
+
`;
|
|
1210
|
+
}
|
|
1211
|
+
setPerPage(e) {
|
|
1212
|
+
let t = Math.max(1, Math.floor(e || 1));
|
|
1213
|
+
this._perPage !== t && (this._perPage = t, this._page = 1, this.requestUpdate(), this.scheduleFetchReload(), this.dispatchEvent(new CustomEvent("mp-datatable-per-page-change", {
|
|
1214
|
+
detail: { perPage: t },
|
|
1215
|
+
bubbles: !0,
|
|
1216
|
+
composed: !0
|
|
1217
|
+
})), this.dispatchEvent(new CustomEvent("mp-datatable-page-change", {
|
|
1218
|
+
detail: { page: 1 },
|
|
1219
|
+
bubbles: !0,
|
|
1220
|
+
composed: !0
|
|
1221
|
+
})));
|
|
1222
|
+
}
|
|
1223
|
+
getEffectiveData() {
|
|
1224
|
+
if (this._tree || this.isRootWindowed()) return this.getFlatList().map((e) => e.row);
|
|
1225
|
+
let e = this._data;
|
|
1226
|
+
if (this._autoSort && this._sortColumns.length > 0 && (e = x(e, this._sortColumns)), this._pagination && !this.isExternallyPaged()) {
|
|
1227
|
+
let t = (this._page - 1) * this._perPage;
|
|
1228
|
+
e = e.slice(t, t + this._perPage);
|
|
1229
|
+
}
|
|
1230
|
+
return e;
|
|
1231
|
+
}
|
|
1232
|
+
getFlatList() {
|
|
1233
|
+
if (this._cachedFlatList !== null) return this._cachedFlatList;
|
|
1234
|
+
if (!this._tree) {
|
|
1235
|
+
if (this.isRootWindowed()) {
|
|
1236
|
+
let e = this._totalRecords ?? this._data.length, t = Math.max(1, this._perPage), n = Array(e);
|
|
1237
|
+
for (let r = 0; r < e; r++) {
|
|
1238
|
+
let e = Math.floor(r / t) + 1, i = r % t, a = e === 1 ? this._data[i] : this._pageCache.get(e)?.[i];
|
|
1239
|
+
n[r] = a === void 0 ? {
|
|
1240
|
+
row: void 0,
|
|
1241
|
+
key: `__placeholder-flat-${r}`,
|
|
1242
|
+
depth: 0,
|
|
1243
|
+
parentId: null,
|
|
1244
|
+
page: e,
|
|
1245
|
+
isExpanded: !1,
|
|
1246
|
+
isPlaceholder: !0
|
|
1247
|
+
} : {
|
|
1248
|
+
row: a,
|
|
1249
|
+
key: this._rowKey(a, r),
|
|
1250
|
+
depth: 0,
|
|
1251
|
+
parentId: null,
|
|
1252
|
+
isExpanded: !1,
|
|
1253
|
+
isPlaceholder: !1
|
|
1254
|
+
};
|
|
1255
|
+
}
|
|
1256
|
+
return this._cachedFlatList = n;
|
|
1257
|
+
}
|
|
1258
|
+
let e = this._pagination ? (this._page - 1) * this._perPage : 0, t = this._pagination && !this.isExternallyPaged() ? this.localSortedRows().slice(e, e + this._perPage) : this.localSortedRows();
|
|
1259
|
+
return this._cachedFlatList = t.map((t, n) => ({
|
|
1260
|
+
row: t,
|
|
1261
|
+
key: this._rowKey(t, e + n),
|
|
1262
|
+
depth: 0,
|
|
1263
|
+
parentId: null,
|
|
1264
|
+
isExpanded: !1,
|
|
1265
|
+
isPlaceholder: !1
|
|
1266
|
+
}));
|
|
1267
|
+
}
|
|
1268
|
+
let e = [], t = Math.max(1, this._perPage), n = (e) => this._autoSort && this._sortColumns.length > 0 ? x(e, this._sortColumns) : e, r = (t, i, a) => {
|
|
1269
|
+
let o = this.extractId(t), s = o != null && this._expandedIds.has(o), c = this.extractChildCount(t);
|
|
1270
|
+
if (e.push({
|
|
1271
|
+
row: t,
|
|
1272
|
+
key: this._rowKey(t, e.length),
|
|
1273
|
+
depth: i,
|
|
1274
|
+
parentId: a,
|
|
1275
|
+
isExpanded: s,
|
|
1276
|
+
isPlaceholder: !1
|
|
1277
|
+
}), !s || c === 0 || o == null) return;
|
|
1278
|
+
let l = this._childCache.get(o);
|
|
1279
|
+
if (l && l.length > 0) {
|
|
1280
|
+
for (let e of n(l)) r(e, i + 1, o);
|
|
1281
|
+
let t = this._childTotals.get(o) ?? l.length;
|
|
1282
|
+
for (let n = 0; n < Math.max(0, t - l.length); n++) e.push({
|
|
1283
|
+
row: void 0,
|
|
1284
|
+
key: `__placeholder-${String(o)}-${l.length + n}`,
|
|
1285
|
+
depth: i + 1,
|
|
1286
|
+
parentId: o,
|
|
1287
|
+
isExpanded: !1,
|
|
1288
|
+
isPlaceholder: !0
|
|
1289
|
+
});
|
|
1290
|
+
} else for (let t = 0; t < c; t++) e.push({
|
|
1291
|
+
row: void 0,
|
|
1292
|
+
key: `__placeholder-${String(o)}-${t}`,
|
|
1293
|
+
depth: i + 1,
|
|
1294
|
+
parentId: o,
|
|
1295
|
+
isExpanded: !1,
|
|
1296
|
+
isPlaceholder: !0
|
|
1297
|
+
});
|
|
1298
|
+
};
|
|
1299
|
+
if (this.isRootWindowed()) {
|
|
1300
|
+
let n = this._totalRecords ?? this._data.length;
|
|
1301
|
+
for (let i = 0; i < n; i++) {
|
|
1302
|
+
let n = Math.floor(i / t) + 1, a = i % t, o = n === 1 ? this._data[a] : this._pageCache.get(n)?.[a];
|
|
1303
|
+
o === void 0 ? e.push({
|
|
1304
|
+
row: void 0,
|
|
1305
|
+
key: `__placeholder-root-${i}`,
|
|
1306
|
+
depth: 0,
|
|
1307
|
+
parentId: null,
|
|
1308
|
+
page: n,
|
|
1309
|
+
isExpanded: !1,
|
|
1310
|
+
isPlaceholder: !0
|
|
1311
|
+
}) : r(o, 0, null);
|
|
1312
|
+
}
|
|
1313
|
+
} else {
|
|
1314
|
+
let e = this._autoSort && this._sortColumns.length > 0 ? x(this._data, this._sortColumns) : this._data;
|
|
1315
|
+
for (let t of e) r(t, 0, null);
|
|
1316
|
+
}
|
|
1317
|
+
return this._cachedFlatList = e;
|
|
1318
|
+
}
|
|
1319
|
+
localSortedRows() {
|
|
1320
|
+
return this._autoSort && this._sortColumns.length > 0 ? x(this._data, this._sortColumns) : this._data;
|
|
1321
|
+
}
|
|
1322
|
+
freshFlatList() {
|
|
1323
|
+
return this._cachedFlatList = null, this.getFlatList();
|
|
1324
|
+
}
|
|
1325
|
+
liveRowEntries(e) {
|
|
1326
|
+
let t = e.filter((e) => !e.isPlaceholder).map((e) => [e.key, e.row]);
|
|
1327
|
+
return this._tree || !this._pagination || this.isExternallyPaged() ? t : this.localSortedRows().map((e, t) => [this._rowKey(e, t), e]);
|
|
1328
|
+
}
|
|
1329
|
+
keyOfRow(e) {
|
|
1330
|
+
let t = this.getFlatList();
|
|
1331
|
+
return this._keyByRowMemo?.list !== t && (this._keyByRowMemo = {
|
|
1332
|
+
list: t,
|
|
1333
|
+
byRow: new Map(this.liveRowEntries(t).map(([e, t]) => [t, e]))
|
|
1334
|
+
}), this._keyByRowMemo.byRow.get(e) ?? this._rowKey(e, -1);
|
|
1335
|
+
}
|
|
1336
|
+
rowKeyLookup() {
|
|
1337
|
+
return this.freshFlatList(), (e) => this.keyOfRow(e);
|
|
1338
|
+
}
|
|
1339
|
+
computeVisibleRows() {
|
|
1340
|
+
let e = this.getFlatList(), t = this._tree ? 0 : this._pagination ? (this._page - 1) * this._perPage : 0, n = e, r = 0;
|
|
1341
|
+
if (this._virtualScroll) {
|
|
1342
|
+
let { startIndex: t, endIndex: i } = this._virtualRange;
|
|
1343
|
+
n = e.slice(t, i), r = t;
|
|
1344
|
+
}
|
|
1345
|
+
return n.map((e, n) => {
|
|
1346
|
+
let i = t + r + n;
|
|
1347
|
+
return {
|
|
1348
|
+
row: e.row,
|
|
1349
|
+
rowIndex: i,
|
|
1350
|
+
key: e.key,
|
|
1351
|
+
flat: e
|
|
1352
|
+
};
|
|
1353
|
+
});
|
|
1354
|
+
}
|
|
1355
|
+
extractId(e) {
|
|
1356
|
+
return !this._idKey || typeof e != "object" || !e ? null : typeof this._idKey == "function" ? this._idKey(e) : e[this._idKey];
|
|
1357
|
+
}
|
|
1358
|
+
extractChildCount(e) {
|
|
1359
|
+
if (!this._childCountKey || typeof e != "object" || !e) return 0;
|
|
1360
|
+
let t = e[this._childCountKey];
|
|
1361
|
+
return typeof t == "number" && t > 0 ? t : 0;
|
|
1362
|
+
}
|
|
1363
|
+
collectDescendants(e) {
|
|
1364
|
+
let t = this.extractId(e), n = t == null ? void 0 : this._childCache.get(t);
|
|
1365
|
+
return n ? n.flatMap((e) => [[this.keyOfRow(e), e], ...this.collectDescendants(e)]) : [];
|
|
1366
|
+
}
|
|
1367
|
+
isParentIndeterminate(e, t) {
|
|
1368
|
+
return this._selectionStrategy !== "cascading" || e == null ? !1 : this.getIndeterminateKeys().has(t);
|
|
1369
|
+
}
|
|
1370
|
+
getIndeterminateKeys() {
|
|
1371
|
+
if (this._cachedIndeterminateKeys !== null) return this._cachedIndeterminateKeys;
|
|
1372
|
+
let e = /* @__PURE__ */ new Set();
|
|
1373
|
+
if (this._selectionStrategy !== "cascading" || !this._tree) return this._cachedIndeterminateKeys = e;
|
|
1374
|
+
let t = (n) => {
|
|
1375
|
+
let r = this.extractId(n);
|
|
1376
|
+
if (r == null) return {
|
|
1377
|
+
selected: 0,
|
|
1378
|
+
total: 0
|
|
1379
|
+
};
|
|
1380
|
+
let i = this._childCache.get(r);
|
|
1381
|
+
if (!i || i.length === 0) return {
|
|
1382
|
+
selected: 0,
|
|
1383
|
+
total: 0
|
|
1384
|
+
};
|
|
1385
|
+
let a = 0, o = 0;
|
|
1386
|
+
for (let e of i) {
|
|
1387
|
+
let n = this.keyOfRow(e), r = +!!this._selectedIds.has(n), i = t(e);
|
|
1388
|
+
a += r + i.selected, o += 1 + i.total;
|
|
1389
|
+
}
|
|
1390
|
+
return o > 0 && a > 0 && a < o && e.add(this.keyOfRow(n)), {
|
|
1391
|
+
selected: a,
|
|
1392
|
+
total: o
|
|
1393
|
+
};
|
|
1394
|
+
};
|
|
1395
|
+
for (let e of this._data) t(e);
|
|
1396
|
+
return this._cachedIndeterminateKeys = e;
|
|
1397
|
+
}
|
|
1398
|
+
toggleExpand(e, t, n, r) {
|
|
1399
|
+
r.stopPropagation(), r.preventDefault();
|
|
1400
|
+
let i = this.extractId(e);
|
|
1401
|
+
if (i == null) return;
|
|
1402
|
+
let a = new Set(this._expandedIds), o;
|
|
1403
|
+
a.has(i) ? (a.delete(i), o = !1) : (a.add(i), o = !0), this._expandedIds = a, o ? (this.dispatchEvent(new CustomEvent("mp-datatable-row-expand", {
|
|
1404
|
+
detail: {
|
|
1405
|
+
row: e,
|
|
1406
|
+
depth: n,
|
|
1407
|
+
parentId: t
|
|
1408
|
+
},
|
|
1409
|
+
bubbles: !0,
|
|
1410
|
+
composed: !0
|
|
1411
|
+
})), this.extractChildCount(e) > 0 && !this._childCache.has(i) && !this._pendingFetches.has(i) && this.fetchChildren(i)) : this.dispatchEvent(new CustomEvent("mp-datatable-row-collapse", {
|
|
1412
|
+
detail: {
|
|
1413
|
+
row: e,
|
|
1414
|
+
depth: n,
|
|
1415
|
+
parentId: t
|
|
1416
|
+
},
|
|
1417
|
+
bubbles: !0,
|
|
1418
|
+
composed: !0
|
|
1419
|
+
})), this.emitExpandedIdsChange(), this.requestUpdate();
|
|
1420
|
+
}
|
|
1421
|
+
emitExpandedIdsChange() {
|
|
1422
|
+
this.dispatchEvent(new CustomEvent("mp-datatable-expanded-ids-change", {
|
|
1423
|
+
detail: { expandedIds: new Set(this._expandedIds) },
|
|
1424
|
+
bubbles: !0,
|
|
1425
|
+
composed: !0
|
|
1426
|
+
}));
|
|
1427
|
+
}
|
|
1428
|
+
async fetchWindowPage(e) {
|
|
1429
|
+
if (!this._fetch || e <= 1) return;
|
|
1430
|
+
this._pendingPageFetches.add(e);
|
|
1431
|
+
let t = this._fetchGeneration;
|
|
1432
|
+
try {
|
|
1433
|
+
let n = await this._fetch({
|
|
1434
|
+
parentId: null,
|
|
1435
|
+
page: e,
|
|
1436
|
+
perPage: this._perPage,
|
|
1437
|
+
sortColumns: [...this._sortColumns]
|
|
1438
|
+
});
|
|
1439
|
+
if (t !== this._fetchGeneration || !this._fetch) return;
|
|
1440
|
+
this._pendingPageFetches.delete(e), this._pageCache.set(e, [...n?.data ?? []]);
|
|
1441
|
+
let r = n?.totalRecords == null ? null : Math.max(0, Math.floor(n.totalRecords));
|
|
1442
|
+
r != null && (this._totalRecords = r), this.requestUpdate();
|
|
1443
|
+
} catch (t) {
|
|
1444
|
+
this._pendingPageFetches.delete(e), console.error("[mp-datatable] fetch failed for root page", e, t);
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
async fetchChildren(e) {
|
|
1448
|
+
if (!this._fetch || e == null) return;
|
|
1449
|
+
this._pendingFetches.add(e);
|
|
1450
|
+
let t = this._fetchGeneration;
|
|
1451
|
+
try {
|
|
1452
|
+
let n = await this._fetch({
|
|
1453
|
+
parentId: e,
|
|
1454
|
+
page: 1,
|
|
1455
|
+
perPage: this._perPage,
|
|
1456
|
+
sortColumns: [...this._sortColumns]
|
|
1457
|
+
});
|
|
1458
|
+
if (t !== this._fetchGeneration || !this._fetch) return;
|
|
1459
|
+
this._pendingFetches.delete(e), this._childCache.set(e, [...n?.data ?? []]), this._childTotals.set(e, n?.totalRecords ?? n?.data?.length ?? 0), this.requestUpdate();
|
|
1460
|
+
} catch (t) {
|
|
1461
|
+
this._pendingFetches.delete(e), console.error("[mp-datatable] fetch failed for children of", e, t);
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
async loadPage(e) {
|
|
1465
|
+
if (!this._fetch) return;
|
|
1466
|
+
let t = this._fetchGeneration, n;
|
|
1467
|
+
try {
|
|
1468
|
+
n = await this._fetch({
|
|
1469
|
+
parentId: null,
|
|
1470
|
+
page: e,
|
|
1471
|
+
perPage: this._perPage,
|
|
1472
|
+
sortColumns: [...this._sortColumns]
|
|
1473
|
+
});
|
|
1474
|
+
} catch (t) {
|
|
1475
|
+
console.error("[mp-datatable] fetch failed for page", e, t);
|
|
1476
|
+
return;
|
|
1477
|
+
}
|
|
1478
|
+
if (t !== this._fetchGeneration || !this._fetch) return;
|
|
1479
|
+
this._data = [...n?.data ?? []];
|
|
1480
|
+
let r = n?.totalRecords == null ? null : Math.max(0, Math.floor(n.totalRecords));
|
|
1481
|
+
this._totalRecords = r, this._initialFetchDone = !0, this.requestUpdate();
|
|
1482
|
+
}
|
|
1483
|
+
scheduleFetchReload() {
|
|
1484
|
+
this._fetch && !this._reloadScheduled && (this._reloadScheduled = !0, queueMicrotask(() => {
|
|
1485
|
+
if (this._reloadScheduled = !1, !this._fetch) return;
|
|
1486
|
+
let e = JSON.stringify({
|
|
1487
|
+
s: this._sortColumns,
|
|
1488
|
+
pp: this._perPage,
|
|
1489
|
+
p: this._virtualScroll ? 1 : this._page
|
|
1490
|
+
});
|
|
1491
|
+
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));
|
|
1492
|
+
}));
|
|
1493
|
+
}
|
|
1494
|
+
onRowKeydown(e, t, n, r, i, a, o, s) {
|
|
1495
|
+
if (!s.altKey && s.composedPath()[0] === s.currentTarget) {
|
|
1496
|
+
if (s.key === "ArrowDown" || s.key === "ArrowUp") {
|
|
1497
|
+
s.preventDefault();
|
|
1498
|
+
let e = Array.from(this.renderRoot.querySelectorAll("tbody tr[data-row-key]")), n = e[e.findIndex((e) => e.dataset.rowKey === t) + (s.key === "ArrowDown" ? 1 : -1)];
|
|
1499
|
+
n && n.focus();
|
|
1500
|
+
} else if (this._tree && (s.key === "ArrowRight" && o > 0 && !a || s.key === "ArrowLeft" && a)) this.toggleExpand(e, r, i, s);
|
|
1501
|
+
else if ((s.key === "Enter" || s.key === " ") && this._selectionMode === "checkbox") {
|
|
1502
|
+
if (s.preventDefault(), this._focusedRowKey = t, s.key === " ") {
|
|
1503
|
+
s.shiftKey || this.onRowCheckboxToggle(e, t), this.requestUpdate();
|
|
1504
|
+
return;
|
|
1505
|
+
}
|
|
1506
|
+
this.requestUpdate(), this.dispatchEvent(new CustomEvent("mp-datatable-row-click", {
|
|
1507
|
+
detail: {
|
|
1508
|
+
row: e,
|
|
1509
|
+
rowIndex: n,
|
|
1510
|
+
rowKey: t,
|
|
1511
|
+
originalEvent: s
|
|
1512
|
+
},
|
|
1513
|
+
bubbles: !0,
|
|
1514
|
+
composed: !0
|
|
1515
|
+
}));
|
|
1516
|
+
} else (s.key === "Enter" || s.key === " ") && this._selectionMode !== "none" && (s.preventDefault(), this._focusedRowKey = t, this.handleSelectionOnClick(e, t, s), this.requestUpdate(), this.dispatchEvent(new CustomEvent("mp-datatable-row-click", {
|
|
1517
|
+
detail: {
|
|
1518
|
+
row: e,
|
|
1519
|
+
rowIndex: n,
|
|
1520
|
+
rowKey: t,
|
|
1521
|
+
originalEvent: s
|
|
1522
|
+
},
|
|
1523
|
+
bubbles: !0,
|
|
1524
|
+
composed: !0
|
|
1525
|
+
})));
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
hasRowClickListeners() {
|
|
1529
|
+
return !0;
|
|
1530
|
+
}
|
|
1531
|
+
onHeaderClick(e, t) {
|
|
1532
|
+
let n = b(this._sortColumns, e.name, t.shiftKey);
|
|
1533
|
+
this._sortColumns = n, this._page = 1;
|
|
1534
|
+
let r = n.find((t) => t.property === e.name);
|
|
1535
|
+
this.liveAnnouncer.announce(this.mergedLabels.announceSorted(this.columnLabel(e), r ? r.direction === "ascending" ? "ascending" : "descending" : "none")), this.requestUpdate(), this.scheduleFetchReload(), this.dispatchEvent(new CustomEvent("mp-datatable-sort-change", {
|
|
1536
|
+
detail: { sortColumns: n },
|
|
1537
|
+
bubbles: !0,
|
|
1538
|
+
composed: !0
|
|
1539
|
+
}));
|
|
1540
|
+
}
|
|
1541
|
+
onRowClick(e, t, n, r) {
|
|
1542
|
+
this._focusedRowKey = t, this._selectionMode !== "checkbox" && this.handleSelectionOnClick(e, t, r), this.requestUpdate(), this.dispatchEvent(new CustomEvent("mp-datatable-row-click", {
|
|
1543
|
+
detail: {
|
|
1544
|
+
row: e,
|
|
1545
|
+
rowIndex: n,
|
|
1546
|
+
rowKey: t,
|
|
1547
|
+
originalEvent: r
|
|
1548
|
+
},
|
|
1549
|
+
bubbles: !0,
|
|
1550
|
+
composed: !0
|
|
1551
|
+
}));
|
|
1552
|
+
}
|
|
1553
|
+
onRowDblClick(e, t, n, r) {
|
|
1554
|
+
this.dispatchEvent(new CustomEvent("mp-datatable-row-dblclick", {
|
|
1555
|
+
detail: {
|
|
1556
|
+
row: e,
|
|
1557
|
+
rowIndex: n,
|
|
1558
|
+
rowKey: t,
|
|
1559
|
+
originalEvent: r
|
|
1560
|
+
},
|
|
1561
|
+
bubbles: !0,
|
|
1562
|
+
composed: !0
|
|
1563
|
+
}));
|
|
1564
|
+
}
|
|
1565
|
+
onRowContextMenu(e, t, n, r) {
|
|
1566
|
+
this._selectionMode !== "none" && this._selectionMode !== "checkbox" && !this._selectedIds.has(t) && (this.commitSelection([t], [[t, e]]), this._focusedRowKey = t, this.emitSelectionChange(), this.requestUpdate()), this.dispatchEvent(new CustomEvent("mp-datatable-row-contextmenu", {
|
|
1567
|
+
detail: {
|
|
1568
|
+
row: e,
|
|
1569
|
+
rowIndex: n,
|
|
1570
|
+
rowKey: t,
|
|
1571
|
+
originalEvent: r
|
|
1572
|
+
},
|
|
1573
|
+
bubbles: !0,
|
|
1574
|
+
composed: !0,
|
|
1575
|
+
cancelable: !0
|
|
1576
|
+
})) || r.preventDefault();
|
|
1577
|
+
}
|
|
1578
|
+
onCheckboxCellClick(e, t, n) {
|
|
1579
|
+
if (n.stopPropagation(), this._selectionMode !== "checkbox") return;
|
|
1580
|
+
let r = n.currentTarget.querySelector("mp-checkbox")?.shadowRoot;
|
|
1581
|
+
r && n.composedPath().includes(r) || this.onRowCheckboxToggle(e, t);
|
|
1582
|
+
}
|
|
1583
|
+
onRowCheckboxToggle(e, t) {
|
|
1584
|
+
let n = !this._selectedIds.has(t), r = [[t, e], ...this._tree && this._selectionStrategy === "cascading" ? this.collectDescendants(e) : []], i = new Set(r.map(([e]) => e));
|
|
1585
|
+
n ? this.commitSelection([...this._selectedIds, ...i], r) : this.commitSelection([...this._selectedIds].filter((e) => !i.has(e))), this.emitSelectionChange(), this.requestUpdate();
|
|
1586
|
+
}
|
|
1587
|
+
onDeselectAll() {
|
|
1588
|
+
this._selectedIds.size !== 0 && (this.commitSelection([]), this.emitSelectionChange(), this.requestUpdate());
|
|
1589
|
+
}
|
|
1590
|
+
handleSelectionOnClick(e, t, n) {
|
|
1591
|
+
if (this._selectionMode !== "none") {
|
|
1592
|
+
if (this._selectionMode === "single") this.commitSelection([t], [[t, e]]), this.emitSelectionChange();
|
|
1593
|
+
else {
|
|
1594
|
+
if (n.shiftKey && this._selectionAnchorKey && this._selectionAnchorKey !== t) {
|
|
1595
|
+
let e = this.getFlatList(), n = e.findIndex((e) => !e.isPlaceholder && e.key === this._selectionAnchorKey), r = e.findIndex((e) => e.key === t);
|
|
1596
|
+
if (n >= 0 && r >= 0) {
|
|
1597
|
+
let [t, i] = n < r ? [n, r] : [r, n], a = e.slice(t, i + 1);
|
|
1598
|
+
if (a.some((e) => e.isPlaceholder)) {
|
|
1599
|
+
this.liveAnnouncer.announce(this.mergedLabels.rangeIncomplete);
|
|
1600
|
+
return;
|
|
1601
|
+
}
|
|
1602
|
+
let o = a.map((e) => [e.key, e.row]);
|
|
1603
|
+
this.commitSelection([...this._selectedIds, ...o.map(([e]) => e)], o), this.emitSelectionChange();
|
|
1604
|
+
return;
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
if (n.ctrlKey || n.metaKey) {
|
|
1608
|
+
let n = new Set(this._selectedIds);
|
|
1609
|
+
n.has(t) ? n.delete(t) : n.add(t), this.commitSelection(n, [[t, e]]), this._selectionAnchorKey = t, this.emitSelectionChange();
|
|
1610
|
+
} else this.commitSelection([t], [[t, e]]), this._selectionAnchorKey = t, this.emitSelectionChange();
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
commitSelection(e, t = []) {
|
|
1615
|
+
this._selectedIds = new Set(e);
|
|
1616
|
+
for (let [e, n] of t) n !== void 0 && this._selectedIds.has(e) && this._selectedRowCache.set(e, n);
|
|
1617
|
+
this.pruneSelectedRowCache();
|
|
1618
|
+
}
|
|
1619
|
+
liveRowMap() {
|
|
1620
|
+
let e = new Map(this.liveRowEntries(this.freshFlatList()));
|
|
1621
|
+
for (let t of this._childCache.values()) for (let n of t) {
|
|
1622
|
+
let t = this.keyOfRow(n);
|
|
1623
|
+
e.has(t) || e.set(t, n);
|
|
1624
|
+
}
|
|
1625
|
+
return e;
|
|
1626
|
+
}
|
|
1627
|
+
rememberLiveSelectedRows() {
|
|
1628
|
+
for (let [e, t] of this.liveRowMap()) t !== void 0 && this._selectedIds.has(e) && this._selectedRowCache.set(e, t);
|
|
1629
|
+
}
|
|
1630
|
+
isSameSelectedRows(e) {
|
|
1631
|
+
if (e.length !== this._selectedIds.size) return !1;
|
|
1632
|
+
let t = [...this._selectedIds];
|
|
1633
|
+
if (!e.every(([e], n) => e === t[n])) return !1;
|
|
1634
|
+
let n = this.resolveRows(t);
|
|
1635
|
+
return e.every(([, e], t) => e === n[t]);
|
|
1636
|
+
}
|
|
1637
|
+
pruneSelectedRowCache() {
|
|
1638
|
+
for (let e of this._selectedRowCache.keys()) this._selectedIds.has(e) || this._selectedRowCache.delete(e);
|
|
1639
|
+
}
|
|
1640
|
+
emitSelectionChange() {
|
|
1641
|
+
let e = [...this._selectedIds];
|
|
1642
|
+
this.liveAnnouncer.announce(this.mergedLabels.announceSelection(e.length)), this.dispatchEvent(new CustomEvent("mp-datatable-selection-change", {
|
|
1643
|
+
detail: {
|
|
1644
|
+
selectedIds: e,
|
|
1645
|
+
selectedRows: this.resolveRows(e)
|
|
1646
|
+
},
|
|
1647
|
+
bubbles: !0,
|
|
1648
|
+
composed: !0
|
|
1649
|
+
}));
|
|
1650
|
+
}
|
|
1651
|
+
resolveRows(e) {
|
|
1652
|
+
if (e.length === 0) return [];
|
|
1653
|
+
let t = this.liveRowMap();
|
|
1654
|
+
return e.map((e) => {
|
|
1655
|
+
let n = t.get(e);
|
|
1656
|
+
return n === void 0 ? this._selectedRowCache.get(e) : (this._selectedIds.has(e) && this._selectedRowCache.set(e, n), n);
|
|
1657
|
+
});
|
|
1658
|
+
}
|
|
1659
|
+
gotoPage(e) {
|
|
1660
|
+
let t = this._totalRecords ?? this._data.length, n = Math.max(1, Math.ceil(t / this._perPage));
|
|
1661
|
+
this._page = Math.max(1, Math.min(n, e)), this.liveAnnouncer.announce(this.mergedLabels.announcePage(this._page, n)), this.requestUpdate(), this.scheduleFetchReload(), this.dispatchEvent(new CustomEvent("mp-datatable-page-change", {
|
|
1662
|
+
detail: { page: this._page },
|
|
1663
|
+
bubbles: !0,
|
|
1664
|
+
composed: !0
|
|
1665
|
+
}));
|
|
1666
|
+
}
|
|
1667
|
+
setUserColumnWidth(e, t) {
|
|
1668
|
+
this.freezeColumnWidths(), this._columnWidths = new Map(this._columnWidths), this._columnWidths.set(e, t), this._userWidths.add(e), this.requestUpdate();
|
|
1669
|
+
}
|
|
1670
|
+
currentColumnWidth(e) {
|
|
1671
|
+
return this._columnWidths.get(e.name) ?? this.headerCell(e.name)?.getBoundingClientRect().width ?? 100;
|
|
1672
|
+
}
|
|
1673
|
+
freezeColumnWidths() {
|
|
1674
|
+
if (this._frozenExtraWidth != null || !this.renderRoot) return;
|
|
1675
|
+
let e = this.renderRoot.querySelector("table");
|
|
1676
|
+
if (!e) return;
|
|
1677
|
+
let t = this._columns.map((e) => [e.name, this.headerCell(e.name)?.getBoundingClientRect().width ?? 0]).filter(([, e]) => e > 0);
|
|
1678
|
+
if (t.length === 0) return;
|
|
1679
|
+
let n = t.reduce((e, [, t]) => e + t, 0);
|
|
1680
|
+
this._frozenExtraWidth = Math.max(0, e.getBoundingClientRect().width - n), this._columnWidths = new Map([...this._columnWidths, ...t]), this._frozenWidths = new Map(t);
|
|
1681
|
+
}
|
|
1682
|
+
frozenTableWidth() {
|
|
1683
|
+
return this._columns.reduce((e, t) => e + (this._columnWidths.get(t.name) ?? 0), 0) + (this._frozenExtraWidth ?? 0);
|
|
1684
|
+
}
|
|
1685
|
+
headerCell(e) {
|
|
1686
|
+
return this.renderRoot?.querySelector(`thead tr:first-child th[data-column="${e}"]`) ?? null;
|
|
1687
|
+
}
|
|
1688
|
+
resizeHandle(e) {
|
|
1689
|
+
return this.headerCell(e)?.querySelector(".resize-handle") ?? null;
|
|
1690
|
+
}
|
|
1691
|
+
onResizeHandleKeydown(e, t) {
|
|
1692
|
+
this.isColumnResizable(e) && (t.key === "Enter" ? (t.preventDefault(), t.stopPropagation(), this.openResizePanel(e)) : (t.key === "ArrowLeft" || t.key === "ArrowRight") && (t.preventDefault(), t.stopPropagation(), this.stepColumnWidth(e, t.key === "ArrowRight" ? 10 : -10)));
|
|
1693
|
+
}
|
|
1694
|
+
stepColumnWidth(e, t) {
|
|
1695
|
+
this.freezeColumnWidths(), this.setUserColumnWidth(e.name, w(this.currentColumnWidth(e), t));
|
|
1696
|
+
}
|
|
1697
|
+
onResizeHandleFocus() {
|
|
1698
|
+
this._resizeHintAnnounced || (this._resizeHintAnnounced = !0, this.liveAnnouncer.announce(this.mergedLabels.resizeColumnHint));
|
|
1699
|
+
}
|
|
1700
|
+
startColumnResize(e, t) {
|
|
1701
|
+
if (!this.isColumnResizable(e) || t.pointerType === "mouse" && t.button !== 0) return;
|
|
1702
|
+
t.preventDefault(), t.stopPropagation();
|
|
1703
|
+
let n = t.currentTarget, r = n.closest("th");
|
|
1704
|
+
r && (this.resizeState = {
|
|
1705
|
+
column: e,
|
|
1706
|
+
pointerId: t.pointerId,
|
|
1707
|
+
startX: t.clientX,
|
|
1708
|
+
startWidth: r.getBoundingClientRect().width,
|
|
1709
|
+
handle: n,
|
|
1710
|
+
dragging: !1
|
|
1711
|
+
}, n.classList.add("active"), n.setPointerCapture(t.pointerId), n.addEventListener("pointermove", this.onColumnResizeMove), n.addEventListener("pointerup", this.onColumnResizeEnd), n.addEventListener("pointercancel", this.onColumnResizeEnd));
|
|
1712
|
+
}
|
|
1713
|
+
openResizePanel(e) {
|
|
1714
|
+
this.filterOverlay.isOpen && this.filterOverlay.close(!1), this.resizeOverlay.isOpen && this.resizeOverlay.close(!1), this.resizeHandle(e.name)?.focus({ preventScroll: !0 }), this._openResizeColumn = e.name, this.requestUpdate(), this.resizeOverlay.open();
|
|
1715
|
+
}
|
|
1716
|
+
renderResizePanel() {
|
|
1717
|
+
let e = this.resizeOverlay.portalContainer;
|
|
1718
|
+
if (!e) return;
|
|
1719
|
+
let t = this._columns.find((e) => e.name === this._openResizeColumn);
|
|
1720
|
+
if (!t) return;
|
|
1721
|
+
let n = this.mergedLabels, r = this.columnLabel(t), i = Math.round(this.currentColumnWidth(t));
|
|
1722
|
+
l(D`
|
|
1723
|
+
<div class="resize-panel" role="dialog" aria-label=${n.resizeColumnOptions(r)}>
|
|
1724
|
+
<div class="resize-panel-steps">
|
|
1725
|
+
<button
|
|
1726
|
+
type="button"
|
|
1727
|
+
class="resize-panel-step"
|
|
1728
|
+
aria-label=${n.narrowerColumn(r)}
|
|
1729
|
+
@click=${() => this.stepColumnWidth(t, -10)}
|
|
1730
|
+
><span aria-hidden="true">−</span></button>
|
|
1731
|
+
<output class="resize-panel-width">${n.columnWidth(i)}</output>
|
|
1732
|
+
<button
|
|
1733
|
+
type="button"
|
|
1734
|
+
class="resize-panel-step"
|
|
1735
|
+
aria-label=${n.widerColumn(r)}
|
|
1736
|
+
@click=${() => this.stepColumnWidth(t, 10)}
|
|
1737
|
+
><span aria-hidden="true">+</span></button>
|
|
1738
|
+
</div>
|
|
1739
|
+
<button type="button" class="resize-panel-action" @click=${() => this.fitColumnWidth(t)}>
|
|
1740
|
+
${n.fitColumn}
|
|
1741
|
+
</button>
|
|
1742
|
+
<button type="button" class="resize-panel-action" @click=${() => this.resetColumnWidth(t)}>
|
|
1743
|
+
${n.resetColumn}
|
|
1744
|
+
</button>
|
|
1745
|
+
</div>
|
|
1746
|
+
`, e);
|
|
1747
|
+
}
|
|
1748
|
+
fitColumnWidth(e) {
|
|
1749
|
+
let t = this.renderRoot;
|
|
1750
|
+
if (!t) return;
|
|
1751
|
+
let n = this.headerCell(e.name), r = n?.querySelector(".header-cell > span") ?? null, i = n?.querySelector(".header-cell") ?? null, a = [...t.querySelectorAll(`tbody tr[data-row-key] > td[data-column="${e.name}"]`)], o = E([r && i && n ? N(r) + P(i) + P(n) : NaN, ...a.map((e) => N(e) + P(e))]);
|
|
1752
|
+
o != null && this.setUserColumnWidth(e.name, o);
|
|
1753
|
+
}
|
|
1754
|
+
resetColumnWidth(e) {
|
|
1755
|
+
if (this._userWidths.delete(e.name), this._userWidths.size === 0) {
|
|
1756
|
+
this._frozenExtraWidth = null, this._frozenWidths = /* @__PURE__ */ new Map(), this._columnWidths = new Map(this._columns.map((e) => [e.name, this._measuredWidths.get(e.name) ?? e.width]).filter((e) => typeof e[1] == "number")), this.requestUpdate(), this.refitMeasuredWidths();
|
|
1757
|
+
return;
|
|
1758
|
+
}
|
|
1759
|
+
let t = this._frozenWidths.get(e.name) ?? this._measuredWidths.get(e.name) ?? e.width;
|
|
1760
|
+
this._columnWidths = new Map(this._columnWidths), typeof t == "number" ? this._columnWidths.set(e.name, t) : this._columnWidths.delete(e.name), this.requestUpdate();
|
|
1761
|
+
}
|
|
1762
|
+
};
|
|
1763
|
+
function N(e) {
|
|
1764
|
+
let t = e.ownerDocument;
|
|
1765
|
+
if (typeof t.createRange != "function") return NaN;
|
|
1766
|
+
let n = t.createRange();
|
|
1767
|
+
return n.selectNodeContents(e), typeof n.getBoundingClientRect == "function" ? n.getBoundingClientRect().width : NaN;
|
|
1768
|
+
}
|
|
1769
|
+
function P(e) {
|
|
1770
|
+
let t = getComputedStyle(e);
|
|
1771
|
+
return (parseFloat(t.paddingLeft) || 0) + (parseFloat(t.paddingRight) || 0);
|
|
1772
|
+
}
|
|
1773
|
+
function F(e, t) {
|
|
1774
|
+
if (typeof e != "object" || !e) return "";
|
|
1775
|
+
let n = e[t.name];
|
|
1776
|
+
return n == null ? "" : String(n);
|
|
1777
|
+
}
|
|
1778
|
+
function I(e) {
|
|
1779
|
+
return e != null && typeof e != "string" && typeof e[Symbol.iterator] == "function";
|
|
1780
|
+
}
|
|
1781
|
+
function L(e) {
|
|
1782
|
+
return e == null || e === !1 ? c : (e instanceof Node || typeof e == "object" && "_$litType$" in e, e);
|
|
1783
|
+
}
|
|
1784
|
+
i("datatable", y), typeof customElements < "u" && !customElements.get("mp-datatable") && customElements.define("mp-datatable", M);
|
|
1785
|
+
//#endregion
|
|
1786
|
+
export { v as a, y as i, x as n, b as r, M as t };
|