@mintplayer/web-components 2.19.0 → 2.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-x_OgDL1V.mjs +1788 -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 +6539 -5986
- package/datatable/index.mjs +1 -8
- package/datatable/src/components/mp-datatable.d.ts +4 -0
- package/datatable/src/types/tree.d.ts +7 -0
- package/datepicker/index.mjs +128 -215
- package/datetime-picker/index.mjs +1 -4
- package/dock/index.mjs +1871 -2471
- package/dropdown-menu/index.mjs +151 -602
- package/dropdown-menu/src/components/mp-dropdown-menu.d.ts +5 -8
- package/dropdown-menu/src/index.d.ts +1 -1
- package/dropdown-menu/src/types/dropdown.d.ts +0 -2
- package/dropdown-menu/src/types/index.d.ts +1 -1
- 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 +128 -11
- package/light-dom/src/install-light-styles.d.ts +10 -22
- package/light-dom/src/scoped-html.d.ts +0 -6
- package/machine/index.d.ts +1 -0
- package/machine/index.mjs +47 -0
- package/machine/src/index.d.ts +2 -0
- package/machine/src/machine-controller.d.ts +25 -0
- package/machine/src/props-directive.d.ts +21 -0
- 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 +10 -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 +475 -769
- package/tree-select/src/components/mp-tree-select.d.ts +16 -5
- package/treeview/index.mjs +1 -5
- package/typeahead/index.d.ts +1 -0
- package/typeahead/index.mjs +220 -0
- package/typeahead/src/components/mp-typeahead.d.ts +67 -0
- package/typeahead/src/index.d.ts +3 -0
- 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
package/dock/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../chunks/
|
|
3
|
-
import "../chunks/
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { g as e, y as t } from "../chunks/a11y-C6aX-lsZ.mjs";
|
|
2
|
+
import "../chunks/tab-control-CW53taeE.mjs";
|
|
3
|
+
import "../chunks/splitter-ByLyrd5H.mjs";
|
|
4
|
+
import { LitElement as n, html as r, unsafeCSS as i } from "lit";
|
|
5
|
+
//#region libs/mintplayer-web-components/dock/src/components/mint-dock-manager.element.template.ts
|
|
6
|
+
var a = r`<div class="dock-root">
|
|
7
7
|
<div class="dock-docked"></div>
|
|
8
8
|
<div class="dock-floating-layer"></div>
|
|
9
9
|
<div class="dock-intersections-layer dock-intersection-layer"></div>
|
|
@@ -54,2468 +54,1868 @@ const ot = G`<div class="dock-root">
|
|
|
54
54
|
↓
|
|
55
55
|
</button>
|
|
56
56
|
<div class="dock-drop-joystick__spacer"></div>
|
|
57
|
-
</div>`,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
.
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
.
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
.
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
.
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
.
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
.
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.
|
|
190
|
-
.
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
.
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
.
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
.
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
.
|
|
279
|
-
|
|
280
|
-
.
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
.
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
.
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
.
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.
|
|
383
|
-
.
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
c && (c.activePane = e);
|
|
1923
|
-
}
|
|
1924
|
-
}
|
|
1925
|
-
// Commit a drop using current pointer coordinates and joystick state
|
|
1926
|
-
finalizeDropFromPoint(t, e) {
|
|
1927
|
-
if (!this.dragState)
|
|
1928
|
-
return;
|
|
1929
|
-
const i = this.findStackAtPoint(t, e), n = i ? P(i.dataset.path) : null, o = this.dropJoystick.dataset.visible === "true", r = P(this.dropJoystick.dataset.path), c = this.dropJoystickTarget, a = c ? P(c.dataset.path) : null, l = (o ? r ?? a : null) ?? n, d = this.dropJoystick.dataset.zone, u = this.isDropZone(d) ? d : i ? this.computeDropZone(i, { clientX: t, clientY: e }, null) : null;
|
|
1930
|
-
if (this.dragState && this.dragState.floatingIndex !== null && this.dragState.floatingIndex < 0 && i && l && n && B(n, this.dragState.sourcePath) && (!u || u === "center")) {
|
|
1931
|
-
const h = this.resolveStackLocation(l);
|
|
1932
|
-
if (h) {
|
|
1933
|
-
const g = this.computeHeaderInsertIndex(i, t);
|
|
1934
|
-
this.reorderPaneInLocationAtIndex(h, this.dragState.pane, g), this.renderLayout(), this.dispatchLayoutChanged(), this.dragState.dropHandled = !0;
|
|
1935
|
-
return;
|
|
1936
|
-
}
|
|
1937
|
-
}
|
|
1938
|
-
l && this.isDropZone(u) && (this.handleDrop(l, u), this.dragState.dropHandled = !0);
|
|
1939
|
-
}
|
|
1940
|
-
clearPendingDragEndTimeout() {
|
|
1941
|
-
if (this.pendingDragEndTimeout !== null) {
|
|
1942
|
-
const t = this.windowRef;
|
|
1943
|
-
t && typeof this.pendingDragEndTimeout == "number" ? t.clearTimeout(this.pendingDragEndTimeout) : globalThis.clearTimeout(this.pendingDragEndTimeout), this.pendingDragEndTimeout = null;
|
|
1944
|
-
}
|
|
1945
|
-
}
|
|
1946
|
-
scheduleDeferredDragEnd() {
|
|
1947
|
-
if (this.pendingDragEndTimeout !== null)
|
|
1948
|
-
return;
|
|
1949
|
-
const t = () => {
|
|
1950
|
-
if (this.pendingDragEndTimeout = null, this.hideDropIndicator(), !this.dragState) {
|
|
1951
|
-
this.clearPendingTabDragMetrics();
|
|
1952
|
-
return;
|
|
1953
|
-
}
|
|
1954
|
-
this.endPaneDrag(), this.clearPendingTabDragMetrics();
|
|
1955
|
-
}, e = this.windowRef;
|
|
1956
|
-
this.pendingDragEndTimeout = e ? e.setTimeout(t, 0) : setTimeout(t, 0);
|
|
1957
|
-
}
|
|
1958
|
-
handleDrop(t, e) {
|
|
1959
|
-
if (!this.dragState || !t)
|
|
1960
|
-
return;
|
|
1961
|
-
const { pane: i, sourcePath: n } = this.dragState, o = this.resolveStackLocation(n), r = this.resolveStackLocation(t);
|
|
1962
|
-
if (!r && t.type === "docked" && !this.rootLayout) {
|
|
1963
|
-
if (!o)
|
|
1964
|
-
return;
|
|
1965
|
-
this.removePaneFromLocation(o, i, !0);
|
|
1966
|
-
const a = {
|
|
1967
|
-
kind: "stack",
|
|
1968
|
-
panes: [i],
|
|
1969
|
-
activePane: i
|
|
1970
|
-
};
|
|
1971
|
-
this.rootLayout = a, this.normalizeAllLayouts(), this.renderLayout(), this.dispatchLayoutChanged(), this.dragState && (this.dragState.dropHandled = !0);
|
|
1972
|
-
return;
|
|
1973
|
-
}
|
|
1974
|
-
if (!o || !r)
|
|
1975
|
-
return;
|
|
1976
|
-
if (e === "center" && B(n, t)) {
|
|
1977
|
-
if (!o.node.panes.includes(i))
|
|
1978
|
-
return;
|
|
1979
|
-
this.reorderPaneInLocation(o, i), this.normalizeAllLayouts(), this.renderLayout(), this.dispatchLayoutChanged(), this.dragState && (this.dragState.dropHandled = !0);
|
|
1980
|
-
return;
|
|
1981
|
-
}
|
|
1982
|
-
if (this.removePaneFromLocation(o, i, !0), e === "center") {
|
|
1983
|
-
this.addPaneToLocation(r, i), this.setActivePaneForLocation(r, i), this.normalizeAllLayouts(), this.renderLayout(), this.dispatchLayoutChanged(), this.dragState && (this.dragState.dropHandled = !0);
|
|
1984
|
-
return;
|
|
1985
|
-
}
|
|
1986
|
-
const c = {
|
|
1987
|
-
kind: "stack",
|
|
1988
|
-
panes: [i],
|
|
1989
|
-
activePane: i
|
|
1990
|
-
};
|
|
1991
|
-
if (r.context === "docked")
|
|
1992
|
-
this.rootLayout = I(this.rootLayout, r.node, c, e);
|
|
1993
|
-
else {
|
|
1994
|
-
const a = this.floatingLayouts[r.index];
|
|
1995
|
-
if (!a) {
|
|
1996
|
-
this.normalizeAllLayouts(), this.renderLayout(), this.dispatchLayoutChanged();
|
|
1997
|
-
return;
|
|
1998
|
-
}
|
|
1999
|
-
a.root = I(a.root, r.node, c, e), a.activePane = i;
|
|
2000
|
-
}
|
|
2001
|
-
this.normalizeAllLayouts(), this.renderLayout(), this.dispatchLayoutChanged(), this.dragState && (this.dragState.dropHandled = !0);
|
|
2002
|
-
}
|
|
2003
|
-
handleFloatingStackDrop(t, e, i) {
|
|
2004
|
-
const n = this.floatingLayouts[t];
|
|
2005
|
-
if (!n || !n.root)
|
|
2006
|
-
return !1;
|
|
2007
|
-
const o = this.resolveStackLocation(e);
|
|
2008
|
-
if (!o && e.type === "docked" && !this.rootLayout)
|
|
2009
|
-
return this.rootLayout = F(n.root), this.removeFloatingAt(t), this.normalizeAllLayouts(), this.renderLayout(), this.dispatchLayoutChanged(), !0;
|
|
2010
|
-
if (!o || o.context === "floating" && o.index === t)
|
|
2011
|
-
return !1;
|
|
2012
|
-
if (i === "center") {
|
|
2013
|
-
const r = _(n.root);
|
|
2014
|
-
if (r.length === 0)
|
|
2015
|
-
return !1;
|
|
2016
|
-
r.forEach((a) => {
|
|
2017
|
-
this.addPaneToLocation(o, a);
|
|
2018
|
-
});
|
|
2019
|
-
const c = n.activePane && r.includes(n.activePane) ? n.activePane : E(n.root) ?? r[0];
|
|
2020
|
-
return c && this.setActivePaneForLocation(o, c), this.removeFloatingAt(t), this.normalizeAllLayouts(), this.renderLayout(), this.dispatchLayoutChanged(), !0;
|
|
2021
|
-
}
|
|
2022
|
-
if (o.context === "floating") {
|
|
2023
|
-
const r = this.floatingLayouts[o.index];
|
|
2024
|
-
return r ? (r.root = I(r.root, o.node, n.root, i), r.activePane = n.activePane ?? E(n.root) ?? void 0, this.removeFloatingAt(t), this.normalizeAllLayouts(), this.renderLayout(), this.dispatchLayoutChanged(), !0) : !1;
|
|
2025
|
-
}
|
|
2026
|
-
return this.rootLayout = I(this.rootLayout, o.node, n.root, i), this.removeFloatingAt(t), this.normalizeAllLayouts(), this.renderLayout(), this.dispatchLayoutChanged(), !0;
|
|
2027
|
-
}
|
|
2028
|
-
computeDropZone(t, e, i) {
|
|
2029
|
-
const n = this.isDropZone(i) ? i : null;
|
|
2030
|
-
if (n)
|
|
2031
|
-
return this.updateDropJoystickActiveZone(n), n;
|
|
2032
|
-
const o = e && Number.isFinite(e.clientX) && Number.isFinite(e.clientY) ? this.findDropZoneByPoint(e.clientX, e.clientY) : null;
|
|
2033
|
-
if (o)
|
|
2034
|
-
return this.updateDropJoystickActiveZone(o), o;
|
|
2035
|
-
if (this.dropJoystickTarget === t) {
|
|
2036
|
-
const r = this.dropJoystick.dataset.zone;
|
|
2037
|
-
if (this.isDropZone(r))
|
|
2038
|
-
return this.updateDropJoystickActiveZone(r), r;
|
|
2039
|
-
this.updateDropJoystickActiveZone(null);
|
|
2040
|
-
}
|
|
2041
|
-
return null;
|
|
2042
|
-
}
|
|
2043
|
-
extractDropZoneFromEvent(t) {
|
|
2044
|
-
if (!t)
|
|
2045
|
-
return null;
|
|
2046
|
-
if (typeof t.composedPath == "function") {
|
|
2047
|
-
const e = t.composedPath(), i = this.findDropZoneInTargets(e);
|
|
2048
|
-
if (i)
|
|
2049
|
-
return i;
|
|
2050
|
-
}
|
|
2051
|
-
if ("clientX" in t && "clientY" in t) {
|
|
2052
|
-
const e = t, i = this.findDropZoneByPoint(e.clientX, e.clientY);
|
|
2053
|
-
if (i)
|
|
2054
|
-
return i;
|
|
2055
|
-
}
|
|
2056
|
-
return null;
|
|
2057
|
-
}
|
|
2058
|
-
handleDragPointerUpCommon() {
|
|
2059
|
-
if (!this.dragState) {
|
|
2060
|
-
this.stopDragPointerTracking();
|
|
2061
|
-
return;
|
|
2062
|
-
}
|
|
2063
|
-
this.scheduleDeferredDragEnd();
|
|
2064
|
-
}
|
|
2065
|
-
findDropZoneInTargets(t) {
|
|
2066
|
-
for (const e of t)
|
|
2067
|
-
if (e instanceof HTMLElement && e.classList.contains("dock-drop-joystick__button")) {
|
|
2068
|
-
const i = e.dataset?.zone;
|
|
2069
|
-
if (this.isDropZone(i))
|
|
2070
|
-
return i;
|
|
2071
|
-
}
|
|
2072
|
-
return null;
|
|
2073
|
-
}
|
|
2074
|
-
findDropZoneByPoint(t, e) {
|
|
2075
|
-
if (!this.dropJoystickButtons || this.dropJoystick.dataset.visible !== "true" || !this.dropJoystickTarget)
|
|
2076
|
-
return null;
|
|
2077
|
-
const i = this.elementsAt(t, e).filter(
|
|
2078
|
-
(n) => n instanceof HTMLElement && this.dropJoystickButtons.includes(n) && n.dataset.hidden !== "true"
|
|
2079
|
-
);
|
|
2080
|
-
return this.findDropZoneInTargets(i);
|
|
2081
|
-
}
|
|
2082
|
-
updateDropJoystickActiveZone(t) {
|
|
2083
|
-
const i = this.dropJoystick.dataset.visible === "true" ? this.dropJoystick.dataset.zone : void 0, n = t ?? (this.isDropZone(i) ? i : null);
|
|
2084
|
-
this.dropJoystickButtons.forEach((o) => {
|
|
2085
|
-
n !== null && o.dataset.zone === n ? o.dataset.active = "true" : delete o.dataset.active;
|
|
2086
|
-
}), n ? this.dropJoystick.dataset.zone = n : delete this.dropJoystick.dataset.zone;
|
|
2087
|
-
}
|
|
2088
|
-
isDropZone(t) {
|
|
2089
|
-
return t === "left" || t === "right" || t === "top" || t === "bottom" || t === "center";
|
|
2090
|
-
}
|
|
2091
|
-
showDropIndicator(t, e) {
|
|
2092
|
-
const i = P(t.dataset.path), n = this.dragState?.sourcePath ?? null;
|
|
2093
|
-
if (i && n && vt(i, n))
|
|
2094
|
-
return;
|
|
2095
|
-
const o = t.getBoundingClientRect(), r = this.getBoundingClientRect(), c = this.dropIndicator, a = this.dropJoystick;
|
|
2096
|
-
a.hidden = !1;
|
|
2097
|
-
const l = P(t.dataset.path);
|
|
2098
|
-
let d = 100;
|
|
2099
|
-
l && l.type === "floating" && (d = H(this.floatingLayouts[l.index], l.index) + 100), c.style.zIndex = String(d), a.style.zIndex = String(d + 1);
|
|
2100
|
-
let u = o.left - r.left, h = o.top - r.top, g = o.width, p = o.height;
|
|
2101
|
-
const f = 0.5;
|
|
2102
|
-
if (e) {
|
|
2103
|
-
switch (e) {
|
|
2104
|
-
case "left":
|
|
2105
|
-
g = o.width * f;
|
|
2106
|
-
break;
|
|
2107
|
-
case "right":
|
|
2108
|
-
g = o.width * f, u += o.width * (1 - f);
|
|
2109
|
-
break;
|
|
2110
|
-
case "top":
|
|
2111
|
-
p = o.height * f;
|
|
2112
|
-
break;
|
|
2113
|
-
case "bottom":
|
|
2114
|
-
p = o.height * f, h += o.height * (1 - f);
|
|
2115
|
-
break;
|
|
2116
|
-
}
|
|
2117
|
-
c.style.left = `${u}px`, c.style.top = `${h}px`, c.style.width = `${g}px`, c.style.height = `${p}px`, c.dataset.visible = "true";
|
|
2118
|
-
} else
|
|
2119
|
-
c.dataset.visible = "false";
|
|
2120
|
-
a.style.left = `${o.left - r.left + o.width / 2}px`, a.style.top = `${o.top - r.top + o.height / 2}px`, a.dataset.visible = "true", this.dropJoystick.style.display = "grid", a.dataset.path = t.dataset.path ?? "";
|
|
2121
|
-
const m = this.dropJoystickTarget && this.dropJoystickTarget !== t;
|
|
2122
|
-
this.dropJoystickTarget = t, m && delete this.dropJoystick.dataset.zone;
|
|
2123
|
-
const y = !this.rootLayout && (t === this.dockedEl || i && i.type === "docked" && i.segments.length === 0), b = Array.from(this.dropJoystick.querySelectorAll(".dock-drop-joystick__spacer"));
|
|
2124
|
-
y ? (b.forEach((k) => {
|
|
2125
|
-
k.style.display = "";
|
|
2126
|
-
}), this.dropJoystickButtons.forEach((k) => {
|
|
2127
|
-
k.dataset.zone === "center" ? (k.style.visibility = "", k.style.pointerEvents = "", delete k.dataset.hidden, k.style.display = "") : (k.style.visibility = "hidden", k.style.pointerEvents = "none", k.dataset.hidden = "true", k.style.display = "");
|
|
2128
|
-
}), this.dropJoystick.style.gridTemplateColumns = "", this.dropJoystick.style.gridTemplateRows = "") : (this.dropJoystickButtons.forEach((k) => {
|
|
2129
|
-
k.style.visibility = "", k.style.pointerEvents = "", delete k.dataset.hidden, k.style.display = "";
|
|
2130
|
-
}), b.forEach((k) => k.style.display = ""), this.dropJoystick.style.gridTemplateColumns = "", this.dropJoystick.style.gridTemplateRows = ""), this.updateDropJoystickActiveZone(e);
|
|
2131
|
-
}
|
|
2132
|
-
hideDropIndicator() {
|
|
2133
|
-
this.dropIndicator.dataset.visible = "false", this.dropJoystick.dataset.visible = "false", this.dropJoystick.style.display = "none", delete this.dropJoystick.dataset.path, this.dropJoystickTarget = null, this.updateDropJoystickActiveZone(null), this.dropJoystickButtons.forEach((t) => {
|
|
2134
|
-
t.style.display = "", t.style.visibility = "", t.style.pointerEvents = "", delete t.dataset.hidden;
|
|
2135
|
-
}), Array.from(this.dropJoystick.querySelectorAll(".dock-drop-joystick__spacer")).forEach((t) => t.style.display = ""), this.dropJoystick.style.gridTemplateColumns = "", this.dropJoystick.style.gridTemplateRows = "";
|
|
2136
|
-
}
|
|
2137
|
-
/**
|
|
2138
|
-
* The dock's single hit-test: which of its own shadow elements lie under a
|
|
2139
|
-
* client point, topmost first. Every "what is the pointer over" question —
|
|
2140
|
-
* the target stack, the joystick button, the empty docked surface — is
|
|
2141
|
-
* answered from this list, so the answers can never disagree with each
|
|
2142
|
-
* other, and a test can say what is under the pointer in one place without
|
|
2143
|
-
* inventing any geometry.
|
|
2144
|
-
*/
|
|
2145
|
-
elementsAt(t, e) {
|
|
2146
|
-
return this.shadowRoot?.elementsFromPoint(t, e) ?? [];
|
|
2147
|
-
}
|
|
2148
|
-
findStackAtPoint(t, e) {
|
|
2149
|
-
const i = this.elementsAt(t, e), n = this.findStackInTargets(i);
|
|
2150
|
-
return n || (!this.rootLayout && i.includes(this.dockedEl) ? this.dockedEl : null);
|
|
2151
|
-
}
|
|
2152
|
-
findStackInTargets(t) {
|
|
2153
|
-
for (const e of t)
|
|
2154
|
-
if (e instanceof HTMLElement) {
|
|
2155
|
-
if (e.classList.contains("dock-stack"))
|
|
2156
|
-
return e;
|
|
2157
|
-
if (this.dropJoystickTarget && (e.classList.contains("dock-drop-joystick") || e.classList.contains("dock-drop-joystick__button") || e.classList.contains("dock-drop-joystick__spacer")))
|
|
2158
|
-
return this.dropJoystickTarget;
|
|
2159
|
-
}
|
|
2160
|
-
return null;
|
|
2161
|
-
}
|
|
2162
|
-
activatePane(t, e, i) {
|
|
2163
|
-
if (t.dataset.activePane = e, t.tagName === "MP-TAB-CONTROL") {
|
|
2164
|
-
const r = this.stackChildForPane(t, "dock-tab", e)?.dataset.tabId;
|
|
2165
|
-
r && t.setAttribute("active-tab", r);
|
|
2166
|
-
}
|
|
2167
|
-
const n = this.resolveStackLocation(i);
|
|
2168
|
-
if (n) {
|
|
2169
|
-
if (n.node.activePane = e, i.type === "floating") {
|
|
2170
|
-
const o = this.floatingLayouts[i.index];
|
|
2171
|
-
o && (o.activePane = e), this.updateFloatingWindowTitle(i.index);
|
|
2172
|
-
}
|
|
2173
|
-
this.dispatchLayoutChanged();
|
|
2174
|
-
}
|
|
2175
|
-
}
|
|
2176
|
-
// Layer identity of a splitter in the rendered shadow tree. Splitters inside
|
|
2177
|
-
// floating pane N are nested under `.dock-floating[data-path="f:N"]`;
|
|
2178
|
-
// docked-layer splitters have no such ancestor. Two splitters share a layer
|
|
2179
|
-
// iff their layer keys match — used by renderIntersectionHandles() to reject
|
|
2180
|
-
// coincidental cross-layer (h, v) pairs that would otherwise produce a
|
|
2181
|
-
// phantom intersection glyph between unrelated splitters.
|
|
2182
|
-
splitterLayerKey(t) {
|
|
2183
|
-
const e = t.closest(".dock-floating");
|
|
2184
|
-
return e ? e.dataset.path ?? "f:?" : "d";
|
|
2185
|
-
}
|
|
2186
|
-
resolveStackLocation(t) {
|
|
2187
|
-
if (t.type === "floating") {
|
|
2188
|
-
const i = this.floatingLayouts[t.index];
|
|
2189
|
-
if (!i || !i.root)
|
|
2190
|
-
return null;
|
|
2191
|
-
const n = M(i.root, t.segments);
|
|
2192
|
-
return !n || n.kind !== "stack" ? null : { context: "floating", index: t.index, path: [...t.segments], node: n };
|
|
2193
|
-
}
|
|
2194
|
-
const e = M(this.rootLayout, t.segments);
|
|
2195
|
-
return !e || e.kind !== "stack" ? null : { context: "docked", path: [...t.segments], node: e };
|
|
2196
|
-
}
|
|
2197
|
-
removePaneFromLocation(t, e, i = !1) {
|
|
2198
|
-
if (t.context === "docked") {
|
|
2199
|
-
const n = ht(t.node, e);
|
|
2200
|
-
return n && !i && this.normalizeAllLayouts(), n;
|
|
2201
|
-
}
|
|
2202
|
-
return this.removePaneFromFloating(t.index, t.path, e, i);
|
|
2203
|
-
}
|
|
2204
|
-
addPaneToLocation(t, e) {
|
|
2205
|
-
const i = t.node.panes, n = i.indexOf(e);
|
|
2206
|
-
n !== -1 && i.splice(n, 1), i.push(e);
|
|
2207
|
-
}
|
|
2208
|
-
setActivePaneForLocation(t, e) {
|
|
2209
|
-
if (t.node.activePane = e, t.context === "floating") {
|
|
2210
|
-
const i = this.floatingLayouts[t.index];
|
|
2211
|
-
i && (i.activePane = e);
|
|
2212
|
-
}
|
|
2213
|
-
}
|
|
2214
|
-
reorderPaneInLocation(t, e) {
|
|
2215
|
-
const i = t.node.panes, n = i.indexOf(e);
|
|
2216
|
-
if (n !== -1 && (i.splice(n, 1), i.push(e), t.node.activePane = e, t.context === "floating")) {
|
|
2217
|
-
const o = this.floatingLayouts[t.index];
|
|
2218
|
-
o && (o.activePane = e);
|
|
2219
|
-
}
|
|
2220
|
-
}
|
|
2221
|
-
removeFloatingAt(t) {
|
|
2222
|
-
t < 0 || t >= this.floatingLayouts.length || this.floatingLayouts.splice(t, 1);
|
|
2223
|
-
}
|
|
2224
|
-
/**
|
|
2225
|
-
* Keyboard handler on the dock root, registered in capture phase so it
|
|
2226
|
-
* runs before mp-tab-control's shadow-internal handlers swallow Arrow /
|
|
2227
|
-
* Home / End / Enter. M opens move mode on a focused tab; subsequent
|
|
2228
|
-
* letter keys (T/R/B/L/F) commit the move, arrows cycle enumerated drop
|
|
2229
|
-
* targets and Enter commits the highlighted one; Escape cancels.
|
|
2230
|
-
*/
|
|
2231
|
-
onRootKeyDown(t) {
|
|
2232
|
-
if (this.paneMoveMode) {
|
|
2233
|
-
this.handlePaneMoveModeKey(t);
|
|
2234
|
-
return;
|
|
2235
|
-
}
|
|
2236
|
-
if (t.altKey || t.ctrlKey || t.metaKey || t.key !== "m" && t.key !== "M") return;
|
|
2237
|
-
const e = this.findFocusedPaneOrigin();
|
|
2238
|
-
if (!e) return;
|
|
2239
|
-
t.preventDefault(), t.stopPropagation(), this.paneMoveMode = e, this.paneMoveCandidateIndex = null;
|
|
2240
|
-
const i = this.titles[e.paneName] ?? e.paneName;
|
|
2241
|
-
this.liveAnnouncer.announce(
|
|
2242
|
-
`Move mode for pane ${i}. Press T, R, B, or L to dock to top, right, bottom, or left of the current stack, F to float, arrow keys to cycle drop targets, Enter to commit, Escape to cancel.`
|
|
2243
|
-
);
|
|
2244
|
-
}
|
|
2245
|
-
/**
|
|
2246
|
-
* Cancel move mode when focus leaves the dock entirely. Moves WITHIN the
|
|
2247
|
-
* dock (tab to tab, tab to pane content) keep it armed — the commit always
|
|
2248
|
-
* applies to the pane captured at arm time, which the announcement named.
|
|
2249
|
-
*/
|
|
2250
|
-
onRootFocusOut(t) {
|
|
2251
|
-
if (!this.paneMoveMode) return;
|
|
2252
|
-
const e = t.relatedTarget instanceof Node ? t.relatedTarget : null;
|
|
2253
|
-
e && this.isWithinDock(e) || (this.clearPaneMoveState(), this.liveAnnouncer.announce("Move cancelled."));
|
|
2254
|
-
}
|
|
2255
|
-
/** Composed-tree containment: true for shadow content AND slotted light DOM. */
|
|
2256
|
-
isWithinDock(t) {
|
|
2257
|
-
for (let e = t; e; ) {
|
|
2258
|
-
if (e === this) return !0;
|
|
2259
|
-
e = e instanceof ShadowRoot ? e.host : e.parentNode;
|
|
2260
|
-
}
|
|
2261
|
-
return !1;
|
|
2262
|
-
}
|
|
2263
|
-
handlePaneMoveModeKey(t) {
|
|
2264
|
-
if (t.key === "Escape") {
|
|
2265
|
-
t.preventDefault(), t.stopPropagation(), this.clearPaneMoveState(), this.liveAnnouncer.announce("Move cancelled.");
|
|
2266
|
-
return;
|
|
2267
|
-
}
|
|
2268
|
-
const e = t.composedPath()[0];
|
|
2269
|
-
if (e instanceof HTMLElement && (e.isContentEditable || ["INPUT", "TEXTAREA", "SELECT"].includes(e.tagName)))
|
|
2270
|
-
return;
|
|
2271
|
-
const n = {
|
|
2272
|
-
ArrowRight: 1,
|
|
2273
|
-
ArrowDown: 1,
|
|
2274
|
-
ArrowLeft: -1,
|
|
2275
|
-
ArrowUp: -1
|
|
2276
|
-
}[t.key];
|
|
2277
|
-
if (n) {
|
|
2278
|
-
t.preventDefault(), t.stopPropagation(), this.cyclePaneMoveCandidate(n);
|
|
2279
|
-
return;
|
|
2280
|
-
}
|
|
2281
|
-
if (t.key === "Enter") {
|
|
2282
|
-
if (this.paneMoveCandidateIndex === null) return;
|
|
2283
|
-
t.preventDefault(), t.stopPropagation(), this.commitHighlightedPaneMoveCandidate();
|
|
2284
|
-
return;
|
|
2285
|
-
}
|
|
2286
|
-
const o = t.key.toLowerCase(), c = {
|
|
2287
|
-
t: "top",
|
|
2288
|
-
r: "right",
|
|
2289
|
-
b: "bottom",
|
|
2290
|
-
l: "left",
|
|
2291
|
-
f: "float"
|
|
2292
|
-
}[o];
|
|
2293
|
-
c && (t.preventDefault(), t.stopPropagation(), c === "float" ? this.commitPaneMoveAsFloat() : this.commitPaneMoveToZone(c));
|
|
2294
|
-
}
|
|
2295
|
-
/**
|
|
2296
|
-
* Enumerated keyboard drop targets, in cycle order: every docked leaf stack
|
|
2297
|
-
* except the one the moving pane currently sits in (T/R/B/L already split
|
|
2298
|
-
* that one), each contributing its four side zones, then a single `float`
|
|
2299
|
-
* candidate last. Rebuilt on every cycle step so it can never describe a
|
|
2300
|
-
* layout that has since changed.
|
|
2301
|
-
*
|
|
2302
|
-
* The identity carried forward is `data-path`, produced by the same
|
|
2303
|
-
* formatPath() that renderStack() stamps onto each `.dock-stack` and that the
|
|
2304
|
-
* pointer drop path parses back — which is what makes an enumerated commit
|
|
2305
|
-
* land exactly where a pointer drop on that stack would.
|
|
2306
|
-
*/
|
|
2307
|
-
buildPaneMoveCandidates() {
|
|
2308
|
-
const t = this.paneMoveMode ? w(this.paneMoveMode.sourcePath) : null, e = [];
|
|
2309
|
-
return N(this.rootLayout, (i, n) => {
|
|
2310
|
-
const o = w({ type: "docked", segments: n });
|
|
2311
|
-
o !== t && e.push({
|
|
2312
|
-
pathStr: o,
|
|
2313
|
-
targetTitles: i.panes.map((r) => this.titles[r] ?? r).join(", ")
|
|
2314
|
-
});
|
|
2315
|
-
}), [
|
|
2316
|
-
...e.flatMap(
|
|
2317
|
-
({ pathStr: i, targetTitles: n }) => z.PANE_MOVE_ZONE_ORDER.map((o) => ({ pathStr: i, zone: o, targetTitles: n }))
|
|
2318
|
-
),
|
|
2319
|
-
{ pathStr: null, zone: "float", targetTitles: "" }
|
|
2320
|
-
];
|
|
2321
|
-
}
|
|
2322
|
-
cyclePaneMoveCandidate(t) {
|
|
2323
|
-
const e = this.buildPaneMoveCandidates();
|
|
2324
|
-
if (e.length === 0) return;
|
|
2325
|
-
const i = this.paneMoveCandidateIndex, n = i === null ? t > 0 ? 0 : e.length - 1 : (i + t + e.length) % e.length;
|
|
2326
|
-
this.paneMoveCandidateIndex = n;
|
|
2327
|
-
const o = e[n];
|
|
2328
|
-
this.highlightPaneMoveCandidate(o);
|
|
2329
|
-
const r = o.zone === "float" ? "Float" : `${o.zone[0].toUpperCase()}${o.zone.slice(1)} of ${o.targetTitles}`;
|
|
2330
|
-
this.liveAnnouncer.announce(`${r}, option ${n + 1} of ${e.length}.`);
|
|
2331
|
-
}
|
|
2332
|
-
highlightPaneMoveCandidate(t) {
|
|
2333
|
-
if (this.hideDropIndicator(), t.zone === "float" || !t.pathStr) return;
|
|
2334
|
-
const e = this.shadowRoot?.querySelector(
|
|
2335
|
-
`.dock-stack[data-path="${t.pathStr}"]`
|
|
2336
|
-
);
|
|
2337
|
-
if (!e) return;
|
|
2338
|
-
const i = e.getBoundingClientRect();
|
|
2339
|
-
i.width === 0 || i.height === 0 || this.showDropIndicator(e, t.zone);
|
|
2340
|
-
}
|
|
2341
|
-
commitHighlightedPaneMoveCandidate() {
|
|
2342
|
-
const t = this.paneMoveCandidateIndex;
|
|
2343
|
-
if (t === null) return;
|
|
2344
|
-
const e = this.buildPaneMoveCandidates()[t];
|
|
2345
|
-
if (!e) {
|
|
2346
|
-
this.clearPaneMoveState();
|
|
2347
|
-
return;
|
|
2348
|
-
}
|
|
2349
|
-
if (e.zone === "float") {
|
|
2350
|
-
this.commitPaneMoveAsFloat();
|
|
2351
|
-
return;
|
|
2352
|
-
}
|
|
2353
|
-
this.commitPaneMoveToZone(e.zone, P(e.pathStr));
|
|
2354
|
-
}
|
|
2355
|
-
/** Sole exit point for move mode: drops the arming AND any highlight together. */
|
|
2356
|
-
clearPaneMoveState() {
|
|
2357
|
-
this.paneMoveMode = null, this.paneMoveCandidateIndex !== null && (this.paneMoveCandidateIndex = null, this.hideDropIndicator());
|
|
2358
|
-
}
|
|
2359
|
-
/**
|
|
2360
|
-
* Walk the focused element through nested shadow roots to find a focused
|
|
2361
|
-
* tab button, then map it back to the dock's pane name + source path via
|
|
2362
|
-
* the data attributes on the slotted .dock-tab span.
|
|
2363
|
-
*/
|
|
2364
|
-
findFocusedPaneOrigin() {
|
|
2365
|
-
if (!this.shadowRoot) return null;
|
|
2366
|
-
let t = this.shadowRoot.activeElement;
|
|
2367
|
-
for (; t && t.shadowRoot && t.shadowRoot.activeElement; )
|
|
2368
|
-
t = t.shadowRoot.activeElement;
|
|
2369
|
-
if (!t || t.getAttribute("role") !== "tab") return null;
|
|
2370
|
-
const e = t.id.replace(/-header-button$/, ""), i = this.shadowRoot.querySelector(
|
|
2371
|
-
`.dock-tab[data-tab-id="${e}"]`
|
|
2372
|
-
);
|
|
2373
|
-
if (!i) return null;
|
|
2374
|
-
const n = i.closest(".dock-stack");
|
|
2375
|
-
if (!n) return null;
|
|
2376
|
-
const o = P(n.dataset.path);
|
|
2377
|
-
return o ? { paneName: i.dataset.pane, sourcePath: o } : null;
|
|
2378
|
-
}
|
|
2379
|
-
/**
|
|
2380
|
-
* Synthesise a minimal dragState so handleDrop's existing pipeline can
|
|
2381
|
-
* commit the keyboard-driven move. handleDrop reads {pane, sourcePath,
|
|
2382
|
-
* dropHandled} — the rest of dragState is pointer-drag bookkeeping that
|
|
2383
|
-
* doesn't apply here.
|
|
2384
|
-
*/
|
|
2385
|
-
synthesiseDragStateForKeyboardMove() {
|
|
2386
|
-
this.paneMoveMode && (this.dragState = {
|
|
2387
|
-
pane: this.paneMoveMode.paneName,
|
|
2388
|
-
sourcePath: R(this.paneMoveMode.sourcePath),
|
|
2389
|
-
floatingIndex: this.paneMoveMode.sourcePath.type === "floating" ? this.paneMoveMode.sourcePath.index : null,
|
|
2390
|
-
pointerOffsetX: 0,
|
|
2391
|
-
pointerOffsetY: 0,
|
|
2392
|
-
dropHandled: !1,
|
|
2393
|
-
sourceStackEl: null,
|
|
2394
|
-
sourceHeaderBounds: null,
|
|
2395
|
-
startClientX: 0,
|
|
2396
|
-
startClientY: 0
|
|
2397
|
-
});
|
|
2398
|
-
}
|
|
2399
|
-
/**
|
|
2400
|
-
* `targetPath` omitted (the T/R/B/L keys) means the source stack is also the
|
|
2401
|
-
* target stack, and handleDrop creates a sibling split with the moved pane on
|
|
2402
|
-
* the chosen side. An enumerated candidate passes its own target instead.
|
|
2403
|
-
*/
|
|
2404
|
-
commitPaneMoveToZone(t, e) {
|
|
2405
|
-
if (!this.paneMoveMode) return;
|
|
2406
|
-
const i = this.paneMoveMode;
|
|
2407
|
-
this.synthesiseDragStateForKeyboardMove(), this.handleDrop(e ?? i.sourcePath, t);
|
|
2408
|
-
const n = this.dragState?.dropHandled === !0;
|
|
2409
|
-
this.dragState = null, this.clearPaneMoveState();
|
|
2410
|
-
const o = this.titles[i.paneName] ?? i.paneName;
|
|
2411
|
-
this.liveAnnouncer.announce(
|
|
2412
|
-
n ? `Pane ${o} docked to ${t}.` : `Move failed. Pane ${o} was not moved.`
|
|
2413
|
-
);
|
|
2414
|
-
}
|
|
2415
|
-
commitPaneMoveAsFloat() {
|
|
2416
|
-
if (!this.paneMoveMode) return;
|
|
2417
|
-
const t = this.paneMoveMode, e = this.resolveStackLocation(t.sourcePath);
|
|
2418
|
-
if (!e) {
|
|
2419
|
-
this.clearPaneMoveState();
|
|
2420
|
-
return;
|
|
2421
|
-
}
|
|
2422
|
-
this.removePaneFromLocation(e, t.paneName, !0);
|
|
2423
|
-
const i = {
|
|
2424
|
-
bounds: {
|
|
2425
|
-
left: 100 + this.floatingLayouts.length * 24,
|
|
2426
|
-
top: 100 + this.floatingLayouts.length * 24,
|
|
2427
|
-
width: 320,
|
|
2428
|
-
height: 200
|
|
2429
|
-
},
|
|
2430
|
-
root: { kind: "stack", panes: [t.paneName], activePane: t.paneName },
|
|
2431
|
-
activePane: t.paneName
|
|
2432
|
-
};
|
|
2433
|
-
this.floatingLayouts.push(i), this.normalizeAllLayouts(), this.renderLayout(), this.dispatchLayoutChanged(), this.clearPaneMoveState();
|
|
2434
|
-
const n = this.titles[t.paneName] ?? t.paneName;
|
|
2435
|
-
this.liveAnnouncer.announce(`Pane ${n} torn off into a floating window.`);
|
|
2436
|
-
}
|
|
2437
|
-
/**
|
|
2438
|
-
* Close a floating pane via the chrome's close button (or any external
|
|
2439
|
-
* caller). Announces the close to SR users, redraws the dock, and emits a
|
|
2440
|
-
* layout-changed event. Phase 4 of the WC ARIA PRD — the floating chrome
|
|
2441
|
-
* had no close affordance before this; users had to programmatically pop
|
|
2442
|
-
* the pane out of `floatingLayouts`.
|
|
2443
|
-
*/
|
|
2444
|
-
closeFloatingPane(t) {
|
|
2445
|
-
const e = this.floatingLayouts[t];
|
|
2446
|
-
if (!e) return;
|
|
2447
|
-
const i = this.getFloatingWindowTitle(e);
|
|
2448
|
-
this.removeFloatingAt(t), this.renderLayout(), this.dispatchLayoutChanged(), this.liveAnnouncer.announce(`Closed floating pane ${i}.`);
|
|
2449
|
-
}
|
|
2450
|
-
removePaneFromFloating(t, e, i, n = !1) {
|
|
2451
|
-
const o = this.floatingLayouts[t];
|
|
2452
|
-
if (!o || !o.root)
|
|
2453
|
-
return !1;
|
|
2454
|
-
const r = M(o.root, e);
|
|
2455
|
-
if (!r || r.kind !== "stack")
|
|
2456
|
-
return !1;
|
|
2457
|
-
if (r.panes = r.panes.filter((c) => c !== i), r.panes.includes(r.activePane ?? "") || (r.panes.length > 0 ? r.activePane = r.panes[0] : delete r.activePane), o.activePane === i) {
|
|
2458
|
-
const c = E(o.root);
|
|
2459
|
-
c ? o.activePane = c : delete o.activePane;
|
|
2460
|
-
}
|
|
2461
|
-
return r.panes.length > 0 ? !1 : (n || this.normalizeAllLayouts(), !0);
|
|
2462
|
-
}
|
|
2463
|
-
/**
|
|
2464
|
-
* Apply `normalizeLayoutNode` to `rootLayout` and every floating window's
|
|
2465
|
-
* root, drop floating windows whose root collapses to null, and repair
|
|
2466
|
-
* stale `activePane` references on each floating window. Run this at the
|
|
2467
|
-
* end of every public mutation entry point (drop handlers, layout setter,
|
|
2468
|
-
* pane removal) so the tree the renderer sees is always in canonical form.
|
|
2469
|
-
*/
|
|
2470
|
-
normalizeAllLayouts() {
|
|
2471
|
-
this.rootLayout = $(this.rootLayout), this.floatingLayouts = this.floatingLayouts.map((t) => {
|
|
2472
|
-
if (t.root = $(t.root), !t.root) return null;
|
|
2473
|
-
const e = _(t.root);
|
|
2474
|
-
if (!t.activePane || !e.includes(t.activePane)) {
|
|
2475
|
-
const i = E(t.root);
|
|
2476
|
-
i ? t.activePane = i : delete t.activePane;
|
|
2477
|
-
}
|
|
2478
|
-
return t;
|
|
2479
|
-
}).filter((t) => t !== null);
|
|
2480
|
-
}
|
|
2481
|
-
/**
|
|
2482
|
-
* Dev-mode integrity guard: walks every pane referenced by the current
|
|
2483
|
-
* layout and asserts that the rendered shadow DOM contains a matching
|
|
2484
|
-
* `<slot name="${pane}">`. A missing slot means the layout tree got into
|
|
2485
|
-
* a state the renderer can't display — typically a missed normalize() call
|
|
2486
|
-
* or a render bug. Opt in via the `debug-layout-integrity` attribute or
|
|
2487
|
-
* the `debugLayoutIntegrity` property; off by default.
|
|
2488
|
-
*/
|
|
2489
|
-
verifyProjectionSlots() {
|
|
2490
|
-
if (!this.debugLayoutIntegrity) return;
|
|
2491
|
-
const t = this.shadowRoot;
|
|
2492
|
-
if (!t) return;
|
|
2493
|
-
const e = new Set(
|
|
2494
|
-
Array.from(t.querySelectorAll("slot")).map((o) => o.getAttribute("name")).filter((o) => !!o)
|
|
2495
|
-
), n = [
|
|
2496
|
-
..._(this.rootLayout),
|
|
2497
|
-
...this.floatingLayouts.flatMap((o) => _(o.root))
|
|
2498
|
-
].find((o) => !e.has(o));
|
|
2499
|
-
if (n)
|
|
2500
|
-
throw new Error(
|
|
2501
|
-
`mint-dock-manager: pane "${n}" has no projection slot in the shadow DOM. The layout tree got into a state the renderer can't display — likely a missing normalize() call or a render bug.`
|
|
2502
|
-
);
|
|
2503
|
-
}
|
|
2504
|
-
dispatchLayoutChanged() {
|
|
2505
|
-
this.dispatchEvent(
|
|
2506
|
-
new CustomEvent("dock-layout-changed", {
|
|
2507
|
-
detail: this.snapshot,
|
|
2508
|
-
bubbles: !0,
|
|
2509
|
-
composed: !0
|
|
2510
|
-
})
|
|
2511
|
-
);
|
|
2512
|
-
}
|
|
2513
|
-
cloneFloatingArray(t) {
|
|
2514
|
-
return JSON.parse(JSON.stringify(t));
|
|
2515
|
-
}
|
|
2516
|
-
}
|
|
2517
|
-
const U = "mint-dock-manager";
|
|
2518
|
-
typeof customElements < "u" && !customElements.get(U) && customElements.define(U, z);
|
|
2519
|
-
export {
|
|
2520
|
-
z as MintDockManagerElement
|
|
2521
|
-
};
|
|
57
|
+
</div>`, o = i(":host {\n display: block;\n position: relative;\n width: 100%;\n height: 100%;\n contain: layout paint size style;\n box-sizing: border-box;\n font-family: inherit;\n color: inherit;\n --dock-split-gap: 0.25rem;\n}\n\n.dock-root,\n.dock-docked,\n.dock-split,\n.dock-stack,\n.dock-stack__pane {\n box-sizing: border-box;\n min-width: 0;\n min-height: 0;\n}\n\n.dock-root {\n position: relative;\n width: 100%;\n height: 100%;\n}\n\n.dock-docked {\n position: absolute;\n inset: 0;\n display: flex;\n z-index: 0;\n}\n\n.dock-floating-layer {\n position: absolute;\n inset: 0;\n pointer-events: none;\n z-index: 5;\n}\n\n.dock-intersections-layer {\n position: absolute;\n inset: 0;\n pointer-events: none;\n z-index: 120;\n}\n\n.dock-floating {\n position: absolute;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n pointer-events: auto;\n border: 1px solid var(--bs-border-color);\n border-radius: 0.5rem;\n background: var(--bs-body-bg);\n box-shadow: var(--bs-box-shadow-lg);\n overflow: hidden;\n min-width: 12rem;\n min-height: 8rem;\n}\n\n.dock-floating[data-dragging=true] {\n pointer-events: none;\n}\n\n.dock-floating__chrome {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n padding: 0.35rem 0.75rem;\n cursor: move;\n touch-action: none;\n background: linear-gradient(to bottom, rgba(var(--bs-primary-rgb), 0.15), rgba(var(--bs-primary-rgb), 0.05));\n border-bottom: 1px solid var(--bs-primary-border-subtle);\n user-select: none;\n -webkit-user-select: none;\n}\n\n.dock-floating__title {\n flex: 1 1 auto;\n font-size: 0.875rem;\n font-weight: 500;\n color: var(--bs-body-color);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.dock-floating__close {\n flex: 0 0 auto;\n appearance: none;\n background: transparent;\n border: 0;\n color: var(--bs-body-color);\n cursor: pointer;\n font-size: 1.25rem;\n line-height: 1;\n padding: 0 0.4rem;\n border-radius: 3px;\n margin-top: -1px;\n}\n.dock-floating__close:hover {\n background: rgba(var(--bs-primary-rgb), 0.15);\n}\n.dock-floating__close:focus-visible {\n outline: 2px solid var(--bs-primary);\n outline-offset: 1px;\n}\n\n.dock-floating > .dock-stack {\n flex: 1 1 auto;\n min-width: 12rem;\n min-height: 8rem;\n}\n\n.dock-floating__resizer {\n position: absolute;\n pointer-events: auto;\n z-index: 2;\n background: rgba(var(--bs-primary-rgb), 0.1);\n transition: background 120ms ease;\n touch-action: none;\n}\n\n.dock-floating__resizer:hover,\n.dock-floating__resizer[data-resizing=true] {\n background: rgba(var(--bs-primary-rgb), 0.3);\n}\n\n.dock-floating__resizer--top,\n.dock-floating__resizer--bottom {\n left: 0.75rem;\n right: 0.75rem;\n height: 0.5rem;\n}\n\n.dock-floating__resizer--top {\n top: 0;\n cursor: n-resize;\n}\n\n.dock-floating__resizer--bottom {\n bottom: 0;\n cursor: s-resize;\n}\n\n.dock-floating__resizer--left,\n.dock-floating__resizer--right {\n top: 1.75rem;\n bottom: 0.75rem;\n width: 0.5rem;\n}\n\n.dock-floating__resizer--left {\n left: 0;\n cursor: w-resize;\n}\n\n.dock-floating__resizer--right {\n right: 0;\n cursor: e-resize;\n}\n\n.dock-floating__resizer--top-left,\n.dock-floating__resizer--top-right,\n.dock-floating__resizer--bottom-left,\n.dock-floating__resizer--bottom-right {\n width: 0.75rem;\n height: 0.75rem;\n}\n\n.dock-floating__resizer--top-left {\n top: 0;\n left: 0;\n cursor: nw-resize;\n}\n\n.dock-floating__resizer--top-right {\n top: 0;\n right: 0;\n cursor: ne-resize;\n}\n\n.dock-floating__resizer--bottom-left {\n bottom: 0;\n left: 0;\n cursor: sw-resize;\n}\n\n.dock-floating__resizer--bottom-right {\n right: 0;\n bottom: 0;\n cursor: se-resize;\n}\n\n.dock-split {\n flex: 1 1 0;\n position: relative;\n}\n\n.dock-intersection-handle {\n position: absolute;\n width: 1rem;\n height: 1rem;\n margin-left: -0.5rem;\n margin-top: -0.5rem;\n border-radius: 0.375rem;\n background: rgba(var(--bs-primary-rgb), 0.4);\n border: 1px solid var(--bs-primary);\n box-shadow: var(--bs-box-shadow-sm);\n cursor: all-scroll;\n pointer-events: auto;\n touch-action: none;\n opacity: 0.6;\n transition: background 120ms ease, border-color 120ms ease, opacity 120ms ease;\n}\n\n.dock-intersection-handle:hover,\n.dock-intersection-handle:focus-visible,\n.dock-intersection-handle[data-visible=true],\n.dock-intersection-handle[data-resizing=true] {\n background: rgba(var(--bs-primary-rgb), 0.35);\n border-color: var(--bs-primary);\n opacity: 1;\n}\n\n.dock-intersection-handle:focus-visible {\n outline: 2px solid var(--bs-primary);\n outline-offset: 1px;\n}\n\n.dock-stack {\n flex: 1 1 0;\n border: 1px solid var(--bs-border-color);\n border-radius: 0.25rem;\n background: var(--bs-body-bg);\n backdrop-filter: blur(4px);\n}\n\n.dock-tab {\n cursor: grab;\n display: block;\n padding: 0.5rem 1rem;\n margin: -0.5rem -1rem;\n touch-action: none;\n user-select: none;\n -webkit-user-select: none;\n -webkit-touch-callout: none;\n}\n\n.dock-tab:active {\n cursor: grabbing;\n}\n\n.dock-tab[data-pressing=true] {\n background-color: var(--bs-secondary-bg-subtle, rgba(0, 0, 0, 0.05));\n transform: scale(1.02);\n transition: background-color 100ms ease-out, transform 100ms ease-out;\n}\n\n.dock-stack__pane {\n position: relative;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n height: 100%;\n}\n\n.dock-drop-indicator {\n position: absolute;\n pointer-events: none;\n border: 2px solid var(--bs-primary);\n background: rgba(var(--bs-primary-rgb), 0.2);\n border-radius: 0.25rem;\n opacity: 0;\n transition: opacity 120ms ease;\n z-index: 100;\n}\n\n.dock-drop-indicator[data-visible=true] {\n opacity: 1;\n}\n\n.dock-drop-joystick {\n position: absolute;\n display: grid;\n grid-template-columns: repeat(3, min-content);\n grid-template-rows: repeat(3, min-content);\n gap: 0.125rem;\n padding: 0.125rem;\n border-radius: 999px;\n background: var(--bs-tertiary-bg);\n box-shadow: var(--bs-box-shadow);\n pointer-events: none;\n transform: translate(-50%, -50%);\n z-index: 110;\n}\n\n.dock-drop-joystick__spacer {\n width: 1.75rem;\n height: 1.75rem;\n pointer-events: none;\n}\n\n.dock-drop-joystick__button {\n width: 1.75rem;\n height: 1.75rem;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n border-radius: 0.375rem;\n border: 1px solid var(--bs-primary-border-subtle);\n background: var(--bs-body-bg);\n color: var(--bs-primary);\n font-size: 0.75rem;\n line-height: 1;\n font-weight: 600;\n pointer-events: auto;\n cursor: pointer;\n transition: background 120ms ease, color 120ms ease, border-color 120ms ease;\n}\n\n.dock-drop-joystick__button[data-active=true],\n.dock-drop-joystick__button:hover,\n.dock-drop-joystick__button:focus-visible {\n background: var(--bs-primary-bg-subtle);\n border-color: var(--bs-primary);\n color: var(--bs-primary);\n}\n\n.dock-drop-joystick__button:focus-visible {\n outline: 2px solid var(--bs-primary);\n outline-offset: 1px;\n}\n\n.dock-drop-joystick__button[data-zone=center] {\n border-radius: 0.5rem;\n}\n\n::slotted(*) {\n flex: 1 1 auto;\n display: block;\n min-width: 0;\n min-height: 0;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .dock-floating,\n .dock-floating__resizer,\n .dock-floating__close,\n .dock-intersection-handle,\n .dock-drop-indicator,\n .dock-drop-joystick__button {\n transition: none !important;\n animation: none !important;\n }\n}");
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region libs/mintplayer-web-components/dock/src/core/geometry.ts
|
|
60
|
+
function s(e, t) {
|
|
61
|
+
if (t.width <= 0 || t.height <= 0) return e;
|
|
62
|
+
let n = Math.min(e.width, t.width), r = Math.min(e.height, t.height);
|
|
63
|
+
return {
|
|
64
|
+
left: Math.min(Math.max(e.left, 0), t.width - n),
|
|
65
|
+
top: Math.min(Math.max(e.top, 0), t.height - r),
|
|
66
|
+
width: n,
|
|
67
|
+
height: r
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function c(e, t, n) {
|
|
71
|
+
return t >= e.left && t <= e.right && n >= e.top && n <= e.bottom;
|
|
72
|
+
}
|
|
73
|
+
function l(e, t) {
|
|
74
|
+
return e && typeof e.zIndex == "number" && Number.isFinite(e.zIndex) ? e.zIndex : 10 + t;
|
|
75
|
+
}
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region libs/mintplayer-web-components/dock/src/core/sizes.ts
|
|
78
|
+
function u(e, t) {
|
|
79
|
+
if (t <= 0) return [];
|
|
80
|
+
if (!Array.isArray(e) || e.length !== t) return Array.from({ length: t }, () => 1 / t);
|
|
81
|
+
let n = e.map((e) => Number.isFinite(e) ? Math.max(e, 0) : 0), r = n.reduce((e, t) => e + t, 0);
|
|
82
|
+
return r <= 0 ? Array.from({ length: t }, () => 1 / t) : n.map((e) => e / r);
|
|
83
|
+
}
|
|
84
|
+
function d(e) {
|
|
85
|
+
e.sizes = u(e.sizes, e.children.length);
|
|
86
|
+
}
|
|
87
|
+
function f(e, t, n) {
|
|
88
|
+
let r = u(e, n - 1), i = 1 / n, a = 1 - i, o = [];
|
|
89
|
+
for (let e = 0; e < n; e += 1) if (e === t) o.push(i);
|
|
90
|
+
else {
|
|
91
|
+
let n = e < t ? e : e - 1;
|
|
92
|
+
o.push(r[n] * a);
|
|
93
|
+
}
|
|
94
|
+
return o;
|
|
95
|
+
}
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region libs/mintplayer-web-components/dock/src/core/intersection-sizing.ts
|
|
98
|
+
function p(e, t) {
|
|
99
|
+
let n = [];
|
|
100
|
+
if (e) try {
|
|
101
|
+
let t = JSON.parse(e);
|
|
102
|
+
Array.isArray(t) && (n = t);
|
|
103
|
+
} catch {
|
|
104
|
+
n = [];
|
|
105
|
+
}
|
|
106
|
+
if (n.length > 0) return n;
|
|
107
|
+
let r = (t ?? "").split("|");
|
|
108
|
+
if (r.length !== 2) return [];
|
|
109
|
+
let [i, a] = r, o = i.lastIndexOf(":"), s = a.lastIndexOf(":");
|
|
110
|
+
if (o <= 0 || s <= 0) return [];
|
|
111
|
+
let c = Number.parseInt(i.slice(o + 1), 10), l = Number.parseInt(a.slice(s + 1), 10);
|
|
112
|
+
return [{
|
|
113
|
+
h: {
|
|
114
|
+
pathStr: i.slice(0, o),
|
|
115
|
+
index: c
|
|
116
|
+
},
|
|
117
|
+
v: {
|
|
118
|
+
pathStr: a.slice(0, s),
|
|
119
|
+
index: l
|
|
120
|
+
}
|
|
121
|
+
}];
|
|
122
|
+
}
|
|
123
|
+
function m(e, t) {
|
|
124
|
+
let n = [...e], r = (n[t] ?? 0) + (n[t + 1] ?? 0);
|
|
125
|
+
if (r <= 0) return n;
|
|
126
|
+
n[t] = r / 2, n[t + 1] = r / 2;
|
|
127
|
+
let i = n.reduce((e, t) => e + t, 0);
|
|
128
|
+
return i > 0 ? n.map((e) => e / i) : n;
|
|
129
|
+
}
|
|
130
|
+
function h(e, t, n) {
|
|
131
|
+
let r = {
|
|
132
|
+
writes: [],
|
|
133
|
+
remember: [],
|
|
134
|
+
clearStored: !1
|
|
135
|
+
};
|
|
136
|
+
if (e.length === 0) return r;
|
|
137
|
+
let i = /* @__PURE__ */ new Set();
|
|
138
|
+
if (e.forEach((e) => {
|
|
139
|
+
i.add(e.h.pathStr), i.add(e.v.pathStr);
|
|
140
|
+
}), [...i].some((e) => t.has(e))) return t.forEach((e, t) => {
|
|
141
|
+
let i = n(t);
|
|
142
|
+
i && r.writes.push({
|
|
143
|
+
pathStr: t,
|
|
144
|
+
sizes: u(e, i.childCount)
|
|
145
|
+
});
|
|
146
|
+
}), r.clearStored = !0, r;
|
|
147
|
+
let a = /* @__PURE__ */ new Map(), o = (e) => {
|
|
148
|
+
let t = n(e);
|
|
149
|
+
if (!t) return null;
|
|
150
|
+
let r = a.get(e);
|
|
151
|
+
return {
|
|
152
|
+
childCount: t.childCount,
|
|
153
|
+
sizes: r ?? t.sizes
|
|
154
|
+
};
|
|
155
|
+
}, s = /* @__PURE__ */ new Set();
|
|
156
|
+
return e.forEach((e) => {
|
|
157
|
+
[e.h.pathStr, e.v.pathStr].forEach((e) => {
|
|
158
|
+
if (s.has(e)) return;
|
|
159
|
+
s.add(e);
|
|
160
|
+
let t = n(e);
|
|
161
|
+
t && Array.isArray(t.sizes) && r.remember.push({
|
|
162
|
+
pathStr: e,
|
|
163
|
+
sizes: [...t.sizes]
|
|
164
|
+
});
|
|
165
|
+
}), [e.h, e.v].forEach(({ pathStr: e, index: t }) => {
|
|
166
|
+
let n = o(e);
|
|
167
|
+
if (!n) return;
|
|
168
|
+
let i = m(u(n.sizes ?? [], n.childCount), t);
|
|
169
|
+
a.set(e, i), r.writes.push({
|
|
170
|
+
pathStr: e,
|
|
171
|
+
sizes: i
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
}), r;
|
|
175
|
+
}
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region libs/mintplayer-web-components/dock/src/core/layout-tree.ts
|
|
178
|
+
function g(e, t) {
|
|
179
|
+
if (!e) return null;
|
|
180
|
+
let n = e;
|
|
181
|
+
if (t.length === 0) return n;
|
|
182
|
+
for (let e of t) {
|
|
183
|
+
if (!n || n.kind !== "split") return null;
|
|
184
|
+
n = n.children[e] ?? null;
|
|
185
|
+
}
|
|
186
|
+
return n;
|
|
187
|
+
}
|
|
188
|
+
function _(e, t) {
|
|
189
|
+
if (!e || e === t || e.kind !== "split") return null;
|
|
190
|
+
let n = e.children.indexOf(t);
|
|
191
|
+
if (n !== -1) return {
|
|
192
|
+
parent: e,
|
|
193
|
+
index: n
|
|
194
|
+
};
|
|
195
|
+
for (let n = 0; n < e.children.length; n += 1) {
|
|
196
|
+
let r = _(e.children[n], t);
|
|
197
|
+
if (r) return r;
|
|
198
|
+
}
|
|
199
|
+
return null;
|
|
200
|
+
}
|
|
201
|
+
function v(e, t, n) {
|
|
202
|
+
if (!e || e === t) return n;
|
|
203
|
+
let r = _(e, t);
|
|
204
|
+
return r && (r.parent.children[r.index] = n, d(r.parent)), e;
|
|
205
|
+
}
|
|
206
|
+
function y(e, t, n, r) {
|
|
207
|
+
let i = r === "left" || r === "right" ? "horizontal" : "vertical", a = r === "left" || r === "top", o = _(e, t);
|
|
208
|
+
if (o && o.parent.direction === i) {
|
|
209
|
+
let t = a ? o.index : o.index + 1;
|
|
210
|
+
return o.parent.children.splice(t, 0, n), o.parent.sizes = f(o.parent.sizes, t, o.parent.children.length), e ?? n;
|
|
211
|
+
}
|
|
212
|
+
return v(e, t, {
|
|
213
|
+
kind: "split",
|
|
214
|
+
direction: i,
|
|
215
|
+
children: a ? [n, t] : [t, n],
|
|
216
|
+
sizes: [.5, .5]
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
function b(e, t, n = []) {
|
|
220
|
+
e && (e.kind === "stack" ? t(e, n) : e.children.forEach((e, r) => b(e, t, [...n, r])));
|
|
221
|
+
}
|
|
222
|
+
function x(e) {
|
|
223
|
+
let t = null;
|
|
224
|
+
return b(e, (e) => {
|
|
225
|
+
t || e.panes.length === 0 || (t = e.activePane && e.panes.includes(e.activePane) ? e.activePane : e.panes[0]);
|
|
226
|
+
}), t;
|
|
227
|
+
}
|
|
228
|
+
function S(e) {
|
|
229
|
+
let t = [];
|
|
230
|
+
return b(e, (e) => {
|
|
231
|
+
e.panes.forEach((e) => t.push(e));
|
|
232
|
+
}), t;
|
|
233
|
+
}
|
|
234
|
+
function C(e, t) {
|
|
235
|
+
return e.panes = e.panes.filter((e) => e !== t), e.panes.includes(e.activePane ?? "") || (e.panes.length > 0 ? e.activePane = e.panes[0] : delete e.activePane), e.panes.length === 0;
|
|
236
|
+
}
|
|
237
|
+
function w(e) {
|
|
238
|
+
if (!e) return null;
|
|
239
|
+
if (e.kind === "stack") return e.panes.length === 0 ? null : ((!e.activePane || !e.panes.includes(e.activePane)) && (e.activePane = e.panes[0]), e);
|
|
240
|
+
let t = u(e.sizes, e.children.length), n = e.children.map((e, n) => ({
|
|
241
|
+
child: w(e),
|
|
242
|
+
slot: t[n]
|
|
243
|
+
})).filter((e) => e.child !== null).flatMap(({ child: t, slot: n }) => {
|
|
244
|
+
if (t.kind === "split" && t.direction === e.direction) {
|
|
245
|
+
let e = u(t.sizes, t.children.length);
|
|
246
|
+
return t.children.map((t, r) => ({
|
|
247
|
+
child: t,
|
|
248
|
+
slot: n * e[r]
|
|
249
|
+
}));
|
|
250
|
+
}
|
|
251
|
+
return [{
|
|
252
|
+
child: t,
|
|
253
|
+
slot: n
|
|
254
|
+
}];
|
|
255
|
+
});
|
|
256
|
+
return n.length === 0 ? null : n.length === 1 ? n[0].child : (e.children = n.map((e) => e.child), e.sizes = u(n.map((e) => e.slot), n.length), e);
|
|
257
|
+
}
|
|
258
|
+
function T(e) {
|
|
259
|
+
return e ? JSON.parse(JSON.stringify(e)) : null;
|
|
260
|
+
}
|
|
261
|
+
function E(e) {
|
|
262
|
+
return e ? e.kind === "stack" ? e.panes.length : e.children.reduce((e, t) => e + E(t), 0) : 0;
|
|
263
|
+
}
|
|
264
|
+
function D(e, t, n) {
|
|
265
|
+
let r = e.type === "docked" ? t : n[e.index]?.root ?? null;
|
|
266
|
+
if (!r) return null;
|
|
267
|
+
let i = g(r, e.segments);
|
|
268
|
+
return i && i.kind === "split" ? i : null;
|
|
269
|
+
}
|
|
270
|
+
function O(e) {
|
|
271
|
+
let t = e.bounds ?? {
|
|
272
|
+
left: 0,
|
|
273
|
+
top: 0,
|
|
274
|
+
width: 320,
|
|
275
|
+
height: 200
|
|
276
|
+
};
|
|
277
|
+
return {
|
|
278
|
+
id: e.id,
|
|
279
|
+
bounds: {
|
|
280
|
+
left: Number.isFinite(t.left) ? t.left : 0,
|
|
281
|
+
top: Number.isFinite(t.top) ? t.top : 0,
|
|
282
|
+
width: Number.isFinite(t.width) ? Math.max(t.width, 160) : 320,
|
|
283
|
+
height: Number.isFinite(t.height) ? Math.max(t.height, 120) : 200
|
|
284
|
+
},
|
|
285
|
+
zIndex: e.zIndex,
|
|
286
|
+
root: e.root ? T(e.root) : null,
|
|
287
|
+
activePane: e.activePane
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
function k(e, t) {
|
|
291
|
+
return t > 0 ? Math.min(e, t) : e;
|
|
292
|
+
}
|
|
293
|
+
function A(e, t, n, r) {
|
|
294
|
+
let i = k(192, r.width), a = k(128, r.height), o = e.width, s = e.height, c = e.left, l = e.top;
|
|
295
|
+
return t.horizontal === "right" ? (o = Math.max(i, e.width + n.x), r.width > 0 && (o = Math.min(o, r.width - e.left))) : t.horizontal === "left" && (o = Math.max(i, e.width - n.x), o = Math.min(o, e.left + e.width), c = e.left + e.width - o), t.vertical === "bottom" ? (s = Math.max(a, e.height + n.y), r.height > 0 && (s = Math.min(s, r.height - e.top))) : t.vertical === "top" && (s = Math.max(a, e.height - n.y), s = Math.min(s, e.top + e.height), l = e.top + e.height - s), {
|
|
296
|
+
left: c,
|
|
297
|
+
top: l,
|
|
298
|
+
width: o,
|
|
299
|
+
height: s
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
var j = [
|
|
303
|
+
1 / 3,
|
|
304
|
+
1 / 2,
|
|
305
|
+
2 / 3
|
|
306
|
+
];
|
|
307
|
+
function M(e, t) {
|
|
308
|
+
if (t <= 0) return e;
|
|
309
|
+
let n = e / t, r = j[0], i = Math.abs(n - r);
|
|
310
|
+
for (let e = 1; e < j.length; e += 1) {
|
|
311
|
+
let t = Math.abs(n - j[e]);
|
|
312
|
+
t < i && (i = t, r = j[e]);
|
|
313
|
+
}
|
|
314
|
+
return r * t;
|
|
315
|
+
}
|
|
316
|
+
function N(e, t, n) {
|
|
317
|
+
let r = e, i = n + 1;
|
|
318
|
+
for (let n of t) {
|
|
319
|
+
let t = Math.abs(n - e);
|
|
320
|
+
t < i && (i = t, r = n);
|
|
321
|
+
}
|
|
322
|
+
return i <= n ? r : e;
|
|
323
|
+
}
|
|
324
|
+
function P(e, t, n, r, i = !1) {
|
|
325
|
+
let a = e + t, o = Math.min(Math.max(e + n, r), a - r);
|
|
326
|
+
return i && (o = M(o, a)), {
|
|
327
|
+
before: o,
|
|
328
|
+
after: a - o
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
function F(e, t, n, r, i = !1) {
|
|
332
|
+
if (t < 0 || t + 1 >= e.length) return null;
|
|
333
|
+
let a = e.reduce((e, t) => e + t, 0);
|
|
334
|
+
if (!(a > 0)) return null;
|
|
335
|
+
let { before: o, after: s } = P(e[t], e[t + 1], n, r, i), c = e.map((e, n) => n === t ? o : n === t + 1 ? s : e);
|
|
336
|
+
return {
|
|
337
|
+
pixels: c,
|
|
338
|
+
weights: c.map((e) => e / a)
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
function I(e, t, n) {
|
|
342
|
+
let { x: r, y: i } = e;
|
|
343
|
+
return {
|
|
344
|
+
x: i === null ? [] : t.filter(({ direction: e, rect: t }) => e === "horizontal" && i >= t.top && i <= t.bottom).map(({ rect: e }) => e.left + e.width / 2 - n.left),
|
|
345
|
+
y: r === null ? [] : t.filter(({ direction: e, rect: t }) => e === "vertical" && r >= t.left && r <= t.right).map(({ rect: e }) => e.top + e.height / 2 - n.top)
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
function L(e, t, n, r = 12) {
|
|
349
|
+
for (let i = 0; i < e.length; i += 1) if (t < (n !== null && e[i] >= n ? e[i] + r : e[i])) return i;
|
|
350
|
+
return e.length;
|
|
351
|
+
}
|
|
352
|
+
//#endregion
|
|
353
|
+
//#region libs/mintplayer-web-components/dock/src/core/types.ts
|
|
354
|
+
function R(e) {
|
|
355
|
+
if (e.type === "floating") {
|
|
356
|
+
let t = e.segments.length > 0 ? `/${e.segments.map((e) => e.toString()).join("/")}` : "";
|
|
357
|
+
return `f:${e.index}${t}`;
|
|
358
|
+
}
|
|
359
|
+
let t = e.segments.join("/");
|
|
360
|
+
return t.length > 0 ? `d:${t}` : "d:";
|
|
361
|
+
}
|
|
362
|
+
function z(e) {
|
|
363
|
+
if (e == null) return null;
|
|
364
|
+
if (e.startsWith("f:")) {
|
|
365
|
+
let [t, ...n] = e.slice(2).split("/"), r = Number.parseInt(t, 10);
|
|
366
|
+
return Number.isFinite(r) ? {
|
|
367
|
+
type: "floating",
|
|
368
|
+
index: r,
|
|
369
|
+
segments: n.filter((e) => e.length > 0).map((e) => Number.parseInt(e, 10)).filter((e) => Number.isFinite(e))
|
|
370
|
+
} : null;
|
|
371
|
+
}
|
|
372
|
+
let t = e.startsWith("d:") ? e.slice(2) : e;
|
|
373
|
+
return t.length === 0 ? {
|
|
374
|
+
type: "docked",
|
|
375
|
+
segments: []
|
|
376
|
+
} : {
|
|
377
|
+
type: "docked",
|
|
378
|
+
segments: t.split("/").filter((e) => e.length > 0).map((e) => Number.parseInt(e, 10)).filter((e) => Number.isFinite(e))
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
function B(e, t) {
|
|
382
|
+
if (e.type !== t.type) return !1;
|
|
383
|
+
if (e.type === "floating") {
|
|
384
|
+
let n = t;
|
|
385
|
+
return e.index !== n.index || e.segments.length !== n.segments.length ? !1 : e.segments.every((e, t) => e === n.segments[t]);
|
|
386
|
+
}
|
|
387
|
+
let n = t;
|
|
388
|
+
return e.segments.length === n.segments.length && e.segments.every((e, t) => e === n.segments[t]);
|
|
389
|
+
}
|
|
390
|
+
function V(e) {
|
|
391
|
+
return e.type === "floating" ? {
|
|
392
|
+
type: "floating",
|
|
393
|
+
index: e.index,
|
|
394
|
+
segments: [...e.segments]
|
|
395
|
+
} : {
|
|
396
|
+
type: "docked",
|
|
397
|
+
segments: [...e.segments]
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
function H(e, t) {
|
|
401
|
+
return e.type !== t.type || e.type === "floating" && t.index !== e.index || e.segments.length > t.segments.length ? !1 : e.segments.every((e, n) => e === t.segments[n]);
|
|
402
|
+
}
|
|
403
|
+
//#endregion
|
|
404
|
+
//#region libs/mintplayer-web-components/dock/src/components/mint-dock-manager.element.ts
|
|
405
|
+
var U = class i extends n {
|
|
406
|
+
static {
|
|
407
|
+
this.styles = [o];
|
|
408
|
+
}
|
|
409
|
+
static {
|
|
410
|
+
this.documentRef = typeof document < "u" ? document : null;
|
|
411
|
+
}
|
|
412
|
+
static configureDocument(e) {
|
|
413
|
+
e && (i.documentRef = e);
|
|
414
|
+
}
|
|
415
|
+
static get observedAttributes() {
|
|
416
|
+
return [
|
|
417
|
+
...super.observedAttributes ?? [],
|
|
418
|
+
"layout",
|
|
419
|
+
"debug-layout-integrity"
|
|
420
|
+
];
|
|
421
|
+
}
|
|
422
|
+
static {
|
|
423
|
+
this.instanceCounter = 0;
|
|
424
|
+
}
|
|
425
|
+
static {
|
|
426
|
+
this.TOUCH_LONG_PRESS_MS = 600;
|
|
427
|
+
}
|
|
428
|
+
static {
|
|
429
|
+
this.TOUCH_LONG_PRESS_SLOP_PX = 10;
|
|
430
|
+
}
|
|
431
|
+
static {
|
|
432
|
+
this.TOUCH_PRESS_FEEDBACK_DELAY_MS = 150;
|
|
433
|
+
}
|
|
434
|
+
static {
|
|
435
|
+
this.PANE_MOVE_ZONE_ORDER = [
|
|
436
|
+
"top",
|
|
437
|
+
"right",
|
|
438
|
+
"bottom",
|
|
439
|
+
"left"
|
|
440
|
+
];
|
|
441
|
+
}
|
|
442
|
+
constructor() {
|
|
443
|
+
super(), this.liveAnnouncer = new t(this), this.paneMoveMode = null, this.paneMoveCandidateIndex = null, this.dropJoystickTarget = null, this.rootLayout = null, this.floatingLayouts = [], this.titles = {}, this.pendingTabDragMetrics = null, this.dragState = null, this.floatingDragState = null, this.floatingResizeState = null, this.intersectionRaf = null, this.rootResizeObserver = null, this.dockedMutationObserver = null, this.cornerResizeState = null, this.pointerTrackingActive = !1, this.dragPointerTrackingActive = !1, this.lastDragPointerPosition = null, this.cornerSnapXTargets = [], this.cornerSnapYTargets = [], this.debugLayoutIntegrity = !1, this.pendingDragEndTimeout = null, this.previousSplitSizes = /* @__PURE__ */ new Map(), this.layoutFocusRestore = new e(() => this.shadowRoot, {
|
|
444
|
+
selector: ".dock-intersection-handle[data-key], mp-tab-control, .dock-tab[data-tab-id]",
|
|
445
|
+
keyOf: (e) => e.dataset.key ?? e.dataset.tabId ?? (e.id || null)
|
|
446
|
+
}), this.instanceId = `mint-dock-${++i.instanceCounter}`, this.windowRef = typeof window < "u" ? window : null, this.onPointerMove = this.onPointerMove.bind(this), this.onPointerUp = this.onPointerUp.bind(this), this.onPointerCancel = this.onPointerCancel.bind(this), this.onDragPointerMove = this.onDragPointerMove.bind(this), this.onDragPointerUp = this.onDragPointerUp.bind(this), this.onDragPointerCancel = this.onDragPointerCancel.bind(this), this.onSplitterResize = this.onSplitterResize.bind(this);
|
|
447
|
+
}
|
|
448
|
+
render() {
|
|
449
|
+
return r`${a}${this.liveAnnouncer.template()}`;
|
|
450
|
+
}
|
|
451
|
+
firstUpdated() {
|
|
452
|
+
let e = this.resolveDocument();
|
|
453
|
+
this.documentRef = e, this.windowRef = this.resolveWindow(e);
|
|
454
|
+
let t = this.shadowRoot, n = t.querySelector(".dock-root");
|
|
455
|
+
if (!n) throw Error("mint-dock-manager template is missing the root element.");
|
|
456
|
+
let r = t.querySelector(".dock-docked");
|
|
457
|
+
if (!r) throw Error("mint-dock-manager template is missing the docked surface element.");
|
|
458
|
+
let i = t.querySelector(".dock-floating-layer");
|
|
459
|
+
if (!i) throw Error("mint-dock-manager template is missing the floating layer element.");
|
|
460
|
+
let a = t.querySelector(".dock-drop-indicator");
|
|
461
|
+
if (!a) throw Error("mint-dock-manager template is missing the drop indicator element.");
|
|
462
|
+
let o = t.querySelector(".dock-drop-joystick");
|
|
463
|
+
if (!o) throw Error("mint-dock-manager template is missing the drop joystick element.");
|
|
464
|
+
let s = Array.from(o.querySelectorAll(".dock-drop-joystick__button[data-zone]"));
|
|
465
|
+
if (s.length === 0) throw Error("mint-dock-manager template is missing drop joystick buttons.");
|
|
466
|
+
this.rootEl = n, this.dockedEl = r, this.floatingLayerEl = i, this.dropIndicator = a, this.dropJoystick = o, this.dropJoystickButtons = s, this.dockedEl.dataset.path = R({
|
|
467
|
+
type: "docked",
|
|
468
|
+
segments: []
|
|
469
|
+
}), n.addEventListener("keydown", (e) => this.onRootKeyDown(e), { capture: !0 }), n.addEventListener("focusout", (e) => this.onRootFocusOut(e)), this.renderLayout(), this.rootResizeObserver = new ResizeObserver(() => {
|
|
470
|
+
this.scheduleRenderIntersectionHandles(), this.updateFloatingPanePositions();
|
|
471
|
+
}), this.rootResizeObserver.observe(this.rootEl), this.dockedMutationObserver = new MutationObserver(() => this.scheduleRenderIntersectionHandles()), this.dockedMutationObserver.observe(this.dockedEl, {
|
|
472
|
+
childList: !0,
|
|
473
|
+
subtree: !0
|
|
474
|
+
}), this.dockedEl.addEventListener("resizing", this.onSplitterResize), this.dockedEl.addEventListener("resize-end", this.onSplitterResize);
|
|
475
|
+
}
|
|
476
|
+
connectedCallback() {
|
|
477
|
+
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "region"), this.hasAttribute("aria-label") || this.setAttribute("aria-label", "Dock layout");
|
|
478
|
+
}
|
|
479
|
+
disconnectedCallback() {
|
|
480
|
+
let e = this.windowRef;
|
|
481
|
+
this.stopDragPointerTracking(), e?.removeEventListener("pointermove", this.onPointerMove), e?.removeEventListener("pointerup", this.onPointerUp), e?.removeEventListener("pointercancel", this.onPointerCancel), this.pointerTrackingActive = !1, this.rootResizeObserver?.disconnect(), this.rootResizeObserver = null, this.dockedMutationObserver?.disconnect(), this.dockedMutationObserver = null, this.dockedEl?.removeEventListener("resizing", this.onSplitterResize), this.dockedEl?.removeEventListener("resize-end", this.onSplitterResize), this.intersectionRaf !== null && (this.windowRef?.clearTimeout(this.intersectionRaf), this.intersectionRaf = null), super.disconnectedCallback();
|
|
482
|
+
}
|
|
483
|
+
attributeChangedCallback(e, t, n) {
|
|
484
|
+
super.attributeChangedCallback(e, t, n), e === "layout" ? this.layout = n ? this.parseLayout(n) : null : e === "debug-layout-integrity" && (this.debugLayoutIntegrity = n !== null && n !== "false" && n !== "0");
|
|
485
|
+
}
|
|
486
|
+
get layout() {
|
|
487
|
+
return {
|
|
488
|
+
root: T(this.rootLayout),
|
|
489
|
+
floating: this.cloneFloatingArray(this.floatingLayouts),
|
|
490
|
+
titles: { ...this.titles }
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
set layout(e) {
|
|
494
|
+
let t = this.ensureSnapshot(e);
|
|
495
|
+
this.isInteracting() || JSON.stringify({
|
|
496
|
+
root: this.rootLayout,
|
|
497
|
+
floating: this.floatingLayouts,
|
|
498
|
+
titles: this.titles
|
|
499
|
+
}) !== JSON.stringify(t) && (this.rootLayout = T(t.root), this.floatingLayouts = this.cloneFloatingArray(t.floating), this.titles = t.titles ? { ...t.titles } : {}, this.normalizeAllLayouts(), this.renderLayout());
|
|
500
|
+
}
|
|
501
|
+
isInteracting() {
|
|
502
|
+
return !!(this.dragState || this.floatingDragState || this.floatingResizeState || this.cornerResizeState);
|
|
503
|
+
}
|
|
504
|
+
get snapshot() {
|
|
505
|
+
return this.layout;
|
|
506
|
+
}
|
|
507
|
+
toJSON() {
|
|
508
|
+
return this.snapshot;
|
|
509
|
+
}
|
|
510
|
+
resolveDocument() {
|
|
511
|
+
let e = i.documentRef, t = this.ownerDocument ?? null, n = e ?? t ?? (typeof document < "u" ? document : null);
|
|
512
|
+
if (!n) throw Error("mint-dock-manager requires a Document to initialize.");
|
|
513
|
+
return i.documentRef ||= n, n;
|
|
514
|
+
}
|
|
515
|
+
resolveWindow(e) {
|
|
516
|
+
return typeof window < "u" ? window : e.defaultView ?? null;
|
|
517
|
+
}
|
|
518
|
+
parseLayout(e) {
|
|
519
|
+
try {
|
|
520
|
+
let t = JSON.parse(e);
|
|
521
|
+
return this.ensureSnapshot(t);
|
|
522
|
+
} catch (e) {
|
|
523
|
+
return console.warn("mint-dock-manager: failed to parse layout attribute", e), null;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
ensureSnapshot(e) {
|
|
527
|
+
if (!e) return {
|
|
528
|
+
root: null,
|
|
529
|
+
floating: [],
|
|
530
|
+
titles: {}
|
|
531
|
+
};
|
|
532
|
+
if (e.kind) return {
|
|
533
|
+
root: e,
|
|
534
|
+
floating: [],
|
|
535
|
+
titles: {}
|
|
536
|
+
};
|
|
537
|
+
let t = e;
|
|
538
|
+
return {
|
|
539
|
+
root: t.root ?? null,
|
|
540
|
+
floating: Array.isArray(t.floating) ? t.floating.map((e) => O(e)) : [],
|
|
541
|
+
titles: t.titles ? { ...t.titles } : {}
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
renderLayout() {
|
|
545
|
+
if (this.dockedEl) {
|
|
546
|
+
if (this.layoutFocusRestore.capture(), this.dockedEl.innerHTML = "", this.floatingLayerEl.innerHTML = "", this.hideDropIndicator(), this.rootLayout) {
|
|
547
|
+
let e = this.renderNode(this.rootLayout, []);
|
|
548
|
+
this.dockedEl.appendChild(e);
|
|
549
|
+
}
|
|
550
|
+
this.renderFloatingPanes(), this.layoutFocusRestore.restore(), this.verifyProjectionSlots();
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
renderNode(e, t, n) {
|
|
554
|
+
return e.kind === "split" ? this.renderSplit(e, t, n) : this.renderStack(e, t, n);
|
|
555
|
+
}
|
|
556
|
+
renderFloatingPanes() {
|
|
557
|
+
this.floatingLayerEl.innerHTML = "";
|
|
558
|
+
let e = this.getHostSize();
|
|
559
|
+
this.floatingLayouts.forEach((t, n) => {
|
|
560
|
+
let r = this.documentRef.createElement("div");
|
|
561
|
+
r.classList.add("dock-floating"), r.dataset.path = R({
|
|
562
|
+
type: "floating",
|
|
563
|
+
index: n,
|
|
564
|
+
segments: []
|
|
565
|
+
});
|
|
566
|
+
let i = this.getFloatingWindowTitle(t), a = `${this.instanceId}-floating-${n}-title`;
|
|
567
|
+
r.setAttribute("role", "dialog"), r.setAttribute("aria-labelledby", a), r.setAttribute("aria-modal", "false");
|
|
568
|
+
let { left: o, top: c, width: u, height: d } = s(t.bounds, e);
|
|
569
|
+
r.style.left = `${o}px`, r.style.top = `${c}px`, r.style.width = `${u}px`, r.style.height = `${d}px`, r.style.minWidth = "0", r.style.minHeight = "0";
|
|
570
|
+
let f = l(this.floatingLayouts[n], n);
|
|
571
|
+
r.style.zIndex = String(f);
|
|
572
|
+
let p = this.documentRef.createElement("div");
|
|
573
|
+
p.classList.add("dock-floating__chrome"), p.addEventListener("pointerdown", (e) => this.beginFloatingDrag(e, n, r, p));
|
|
574
|
+
let m = this.documentRef.createElement("div");
|
|
575
|
+
m.classList.add("dock-floating__title"), m.id = a, m.textContent = i, p.appendChild(m);
|
|
576
|
+
let h = this.documentRef.createElement("button");
|
|
577
|
+
if (h.type = "button", h.classList.add("dock-floating__close"), h.setAttribute("aria-label", `Close pane: ${i}`), h.textContent = "×", h.addEventListener("click", (e) => {
|
|
578
|
+
e.stopPropagation(), this.closeFloatingPane(n);
|
|
579
|
+
}), h.addEventListener("pointerdown", (e) => e.stopPropagation()), p.appendChild(h), r.appendChild(p), t.root) {
|
|
580
|
+
let e = this.renderNode(t.root, [], n);
|
|
581
|
+
e.classList.add("dock-floating__stack"), r.appendChild(e);
|
|
582
|
+
}
|
|
583
|
+
[
|
|
584
|
+
{
|
|
585
|
+
classes: ["dock-floating__resizer", "dock-floating__resizer--top-left"],
|
|
586
|
+
edges: {
|
|
587
|
+
horizontal: "left",
|
|
588
|
+
vertical: "top"
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
classes: ["dock-floating__resizer", "dock-floating__resizer--top"],
|
|
593
|
+
edges: {
|
|
594
|
+
horizontal: "none",
|
|
595
|
+
vertical: "top"
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
classes: ["dock-floating__resizer", "dock-floating__resizer--top-right"],
|
|
600
|
+
edges: {
|
|
601
|
+
horizontal: "right",
|
|
602
|
+
vertical: "top"
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
classes: ["dock-floating__resizer", "dock-floating__resizer--right"],
|
|
607
|
+
edges: {
|
|
608
|
+
horizontal: "right",
|
|
609
|
+
vertical: "none"
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
classes: ["dock-floating__resizer", "dock-floating__resizer--bottom-right"],
|
|
614
|
+
edges: {
|
|
615
|
+
horizontal: "right",
|
|
616
|
+
vertical: "bottom"
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
classes: ["dock-floating__resizer", "dock-floating__resizer--bottom"],
|
|
621
|
+
edges: {
|
|
622
|
+
horizontal: "none",
|
|
623
|
+
vertical: "bottom"
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
classes: ["dock-floating__resizer", "dock-floating__resizer--bottom-left"],
|
|
628
|
+
edges: {
|
|
629
|
+
horizontal: "left",
|
|
630
|
+
vertical: "bottom"
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
classes: ["dock-floating__resizer", "dock-floating__resizer--left"],
|
|
635
|
+
edges: {
|
|
636
|
+
horizontal: "left",
|
|
637
|
+
vertical: "none"
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
].forEach(({ classes: e, edges: t }) => {
|
|
641
|
+
let i = this.documentRef.createElement("div");
|
|
642
|
+
i.classList.add(...e), i.setAttribute("role", "separator");
|
|
643
|
+
let a = t.horizontal === "none" && t.vertical !== "none", o = t.vertical === "none" && t.horizontal !== "none";
|
|
644
|
+
a ? i.setAttribute("aria-orientation", "horizontal") : o && i.setAttribute("aria-orientation", "vertical");
|
|
645
|
+
let s = [];
|
|
646
|
+
t.vertical === "top" ? s.push("top") : t.vertical === "bottom" && s.push("bottom"), t.horizontal === "left" ? s.push("left") : t.horizontal === "right" && s.push("right"), i.setAttribute("aria-label", `Resize pane ${s.length === 2 ? "corner " : "edge "}${s.join("-")}`), i.addEventListener("pointerdown", (e) => this.beginFloatingResize(e, n, r, i, t)), i.setAttribute("tabindex", "0"), i.setAttribute("aria-valuemin", "0"), i.setAttribute("aria-valuemax", "100"), this.syncFloatingResizerValue(i, n, t), i.addEventListener("keydown", (e) => this.onFloatingResizeKeydown(e, n, r, i, t)), r.appendChild(i);
|
|
647
|
+
}), this.floatingLayerEl.appendChild(r);
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
onSplitterResize() {
|
|
651
|
+
this.scheduleRenderIntersectionHandles();
|
|
652
|
+
}
|
|
653
|
+
scheduleRenderIntersectionHandles() {
|
|
654
|
+
if (this.intersectionRaf !== null) return;
|
|
655
|
+
let e = this.windowRef;
|
|
656
|
+
e && (this.intersectionRaf = e.setTimeout(() => {
|
|
657
|
+
this.intersectionRaf = null, this.renderIntersectionHandles();
|
|
658
|
+
}, 5));
|
|
659
|
+
}
|
|
660
|
+
renderIntersectionHandles() {
|
|
661
|
+
let e = this.shadowRoot?.querySelector(".dock-intersections-layer, .dock-intersection-layer");
|
|
662
|
+
if (!e) return;
|
|
663
|
+
let t = this.rootEl.getBoundingClientRect();
|
|
664
|
+
if (this.cornerResizeState) {
|
|
665
|
+
let n = this.cornerResizeState, r = n.hs[0], i = n.vs[0], a = r ? this.getSplitterDividers(r.container)[r.index] : null, o = i ? this.getSplitterDividers(i.container)[i.index] : null;
|
|
666
|
+
if (a && o) {
|
|
667
|
+
let r = a.getBoundingClientRect(), i = o.getBoundingClientRect(), s = i.left + i.width / 2 - t.left, c = r.top + r.height / 2 - t.top;
|
|
668
|
+
n.handle.style.left = `${s}px`, n.handle.style.top = `${c}px`, Array.from(e.querySelectorAll(".dock-intersection-handle")).forEach((e) => {
|
|
669
|
+
e !== n.handle && e.remove();
|
|
670
|
+
});
|
|
671
|
+
}
|
|
672
|
+
return;
|
|
673
|
+
}
|
|
674
|
+
e.replaceChildren();
|
|
675
|
+
let n = [], r = [];
|
|
676
|
+
Array.from(this.shadowRoot?.querySelectorAll(".dock-split") ?? []).forEach((e) => {
|
|
677
|
+
let t = e.dataset.direction, i = e.dataset.path ?? "", a = this.splitterLayerKey(e);
|
|
678
|
+
this.getSplitterDividers(e).forEach((e, o) => {
|
|
679
|
+
let s = {
|
|
680
|
+
rect: e.getBoundingClientRect(),
|
|
681
|
+
pathStr: i,
|
|
682
|
+
index: o,
|
|
683
|
+
layerKey: a
|
|
684
|
+
};
|
|
685
|
+
t === "horizontal" ? r.push(s) : t === "vertical" && n.push(s);
|
|
686
|
+
});
|
|
687
|
+
});
|
|
688
|
+
let i = /* @__PURE__ */ new Map();
|
|
689
|
+
n.forEach((e) => {
|
|
690
|
+
let n = e.rect.top + e.rect.height / 2;
|
|
691
|
+
r.forEach((r) => {
|
|
692
|
+
if (e.layerKey !== r.layerKey) return;
|
|
693
|
+
let a = r.rect.left + r.rect.width / 2, o = a < e.rect.left ? e.rect.left - a : a > e.rect.right ? a - e.rect.right : 0, s = n < r.rect.top ? r.rect.top - n : n > r.rect.bottom ? n - r.rect.bottom : 0;
|
|
694
|
+
if (o > 24 || s > 24) return;
|
|
695
|
+
let c = a - t.left, l = n - t.top, u = `${Math.round(c)}:${Math.round(l)}`, d = i.get(u) ?? {
|
|
696
|
+
x: c,
|
|
697
|
+
y: l,
|
|
698
|
+
pairs: []
|
|
699
|
+
};
|
|
700
|
+
d.pairs.push({
|
|
701
|
+
h: {
|
|
702
|
+
pathStr: e.pathStr,
|
|
703
|
+
index: e.index
|
|
704
|
+
},
|
|
705
|
+
v: {
|
|
706
|
+
pathStr: r.pathStr,
|
|
707
|
+
index: r.index
|
|
708
|
+
}
|
|
709
|
+
}), i.set(u, d);
|
|
710
|
+
});
|
|
711
|
+
}), i.forEach((n, r) => {
|
|
712
|
+
let i = this.documentRef.createElement("div");
|
|
713
|
+
i.classList.add("dock-intersection-handle", "glyph"), i.setAttribute("role", "separator"), i.setAttribute("aria-label", "Resize split intersection");
|
|
714
|
+
let a = t.width > 0 ? Math.round(n.x / t.width * 100) : 0;
|
|
715
|
+
i.setAttribute("aria-valuemin", "0"), i.setAttribute("aria-valuemax", "100"), i.setAttribute("aria-valuenow", String(Math.min(100, Math.max(0, a)))), i.setAttribute("tabindex", "0");
|
|
716
|
+
let o = n.pairs[0], s = `${o.h.pathStr}:${o.h.index}|${o.v.pathStr}:${o.v.index}`;
|
|
717
|
+
i.dataset.key = s, i.dataset.pairs = JSON.stringify(n.pairs), i.style.left = `${n.x}px`, i.style.top = `${n.y}px`, i.addEventListener("pointerdown", (e) => this.beginCornerResize(e, i)), i.addEventListener("dblclick", (e) => this.onIntersectionDoubleClick(e, i)), i.addEventListener("keydown", (e) => this.onIntersectionKeyDown(e, i)), e.appendChild(i);
|
|
718
|
+
});
|
|
719
|
+
}
|
|
720
|
+
onIntersectionKeyDown(e, t) {
|
|
721
|
+
let n = e.key === "ArrowLeft" || e.key === "ArrowRight", r = e.key === "ArrowUp" || e.key === "ArrowDown", i = e.key === "Home" || e.key === "End";
|
|
722
|
+
if (!n && !r && !i) return;
|
|
723
|
+
let a = t.dataset.pairs;
|
|
724
|
+
if (!a) return;
|
|
725
|
+
let o;
|
|
726
|
+
try {
|
|
727
|
+
o = JSON.parse(a);
|
|
728
|
+
} catch {
|
|
729
|
+
return;
|
|
730
|
+
}
|
|
731
|
+
if (o.length === 0) return;
|
|
732
|
+
e.preventDefault();
|
|
733
|
+
let s = e.shiftKey, c = n || i ? o[0].v : o[0].h;
|
|
734
|
+
this.findSplitterByPath(z(c.pathStr))?.resizeDividerBy?.(c.index, e.key, s);
|
|
735
|
+
}
|
|
736
|
+
beginCornerResize(e, t) {
|
|
737
|
+
e.preventDefault();
|
|
738
|
+
let n = p(t.dataset.pairs, t.dataset.key), r = ({ pathStr: e, index: t }, n) => {
|
|
739
|
+
let r = z(e), i = this.findSplitterByPath(r), a = i ? this.getSplitterPanels(i) : [];
|
|
740
|
+
return !r || !i || a.length === 0 ? null : {
|
|
741
|
+
path: r,
|
|
742
|
+
index: t,
|
|
743
|
+
container: i,
|
|
744
|
+
initialSizes: a.map((e) => e.getBoundingClientRect()[n])
|
|
745
|
+
};
|
|
746
|
+
}, i = n.map((e) => r(e.h, "height")).filter((e) => e !== null), a = n.map((e) => r(e.v, "width")).filter((e) => e !== null);
|
|
747
|
+
if (i.length === 0 && a.length === 0) return;
|
|
748
|
+
try {
|
|
749
|
+
t.setPointerCapture(e.pointerId);
|
|
750
|
+
} catch {}
|
|
751
|
+
t.dataset.resizing = "true", t.classList.add("hovering"), this.cornerResizeState = {
|
|
752
|
+
pointerId: e.pointerId,
|
|
753
|
+
handle: t,
|
|
754
|
+
hs: i.map((t) => ({
|
|
755
|
+
path: V(t.path),
|
|
756
|
+
index: t.index,
|
|
757
|
+
container: t.container,
|
|
758
|
+
initialSizes: t.initialSizes,
|
|
759
|
+
startY: e.clientY
|
|
760
|
+
})),
|
|
761
|
+
vs: a.map((t) => ({
|
|
762
|
+
path: V(t.path),
|
|
763
|
+
index: t.index,
|
|
764
|
+
container: t.container,
|
|
765
|
+
initialSizes: t.initialSizes,
|
|
766
|
+
startX: e.clientX
|
|
767
|
+
}))
|
|
768
|
+
}, this.startPointerTracking(), t.dataset.key || (t.dataset.key = t.dataset.group ?? "");
|
|
769
|
+
let o = (e) => e ? this.getSplitterDividers(e.container)[e.index]?.getBoundingClientRect() ?? null : null, s = o(a[0]), c = o(i[0]), l = Array.from(this.shadowRoot?.querySelectorAll(".dock-split") ?? []).flatMap((e) => {
|
|
770
|
+
let t = e.dataset.direction;
|
|
771
|
+
return this.getSplitterDividers(e).map((e) => ({
|
|
772
|
+
direction: t,
|
|
773
|
+
rect: e.getBoundingClientRect()
|
|
774
|
+
}));
|
|
775
|
+
}), u = I({
|
|
776
|
+
x: s ? s.left + s.width / 2 : null,
|
|
777
|
+
y: c ? c.top + c.height / 2 : null
|
|
778
|
+
}, l, this.rootEl.getBoundingClientRect());
|
|
779
|
+
this.cornerSnapXTargets = u.x, this.cornerSnapYTargets = u.y;
|
|
780
|
+
}
|
|
781
|
+
handleCornerResizeMove(e) {
|
|
782
|
+
let t = this.cornerResizeState;
|
|
783
|
+
if (!t || t.pointerId !== e.pointerId) return;
|
|
784
|
+
let n = this.rootEl.getBoundingClientRect(), r = N(e.clientX, this.cornerSnapXTargets.map((e) => n.left + e), 10), i = N(e.clientY, this.cornerSnapYTargets.map((e) => n.top + e), 10), a = (t, n) => {
|
|
785
|
+
let r = D(t.path, this.rootLayout, this.floatingLayouts);
|
|
786
|
+
if (!r) return;
|
|
787
|
+
let i = F(t.initialSizes, t.index, n, 48, e.shiftKey);
|
|
788
|
+
i && (r.sizes = i.weights, t.container.setPanelSizes?.(i.pixels));
|
|
789
|
+
};
|
|
790
|
+
t.hs.forEach((e) => a(e, i - e.startY)), t.vs.forEach((e) => a(e, r - e.startX)), this.dispatchLayoutChanged(), this.scheduleRenderIntersectionHandles();
|
|
791
|
+
}
|
|
792
|
+
endCornerResize(e) {
|
|
793
|
+
let t = this.cornerResizeState;
|
|
794
|
+
if (t && e === t.pointerId) {
|
|
795
|
+
try {
|
|
796
|
+
t.handle.releasePointerCapture(t.pointerId);
|
|
797
|
+
} catch {}
|
|
798
|
+
t.handle.dataset.resizing = "false", this.cornerResizeState = null, this.scheduleRenderIntersectionHandles(), this.cornerSnapXTargets = [], this.cornerSnapYTargets = [];
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
onIntersectionDoubleClick(e, t) {
|
|
802
|
+
e.preventDefault();
|
|
803
|
+
let n = p(t.dataset.pairs, t.dataset.key);
|
|
804
|
+
if (n.length === 0) return;
|
|
805
|
+
let r = h(n, this.previousSplitSizes, (e) => {
|
|
806
|
+
let t = z(e), n = t ? D(t, this.rootLayout, this.floatingLayouts) : null;
|
|
807
|
+
return n ? {
|
|
808
|
+
sizes: n.sizes,
|
|
809
|
+
childCount: n.children.length
|
|
810
|
+
} : null;
|
|
811
|
+
});
|
|
812
|
+
r.remember.forEach(({ pathStr: e, sizes: t }) => this.previousSplitSizes.set(e, t)), r.writes.forEach(({ pathStr: e, sizes: t }) => {
|
|
813
|
+
let n = z(e), r = n ? D(n, this.rootLayout, this.floatingLayouts) : null;
|
|
814
|
+
r && n && (r.sizes = t, this.pushSizesToSplitter(n, t));
|
|
815
|
+
}), r.clearStored && this.previousSplitSizes.clear(), this.dispatchLayoutChanged(), this.scheduleRenderIntersectionHandles();
|
|
816
|
+
}
|
|
817
|
+
pushSizesToSplitter(e, t) {
|
|
818
|
+
let n = this.findSplitterByPath(e);
|
|
819
|
+
if (!n) return;
|
|
820
|
+
let r = (n.dataset.direction ?? "horizontal") === "horizontal" ? n.getBoundingClientRect().width : n.getBoundingClientRect().height;
|
|
821
|
+
if (!Number.isFinite(r) || r <= 0) return;
|
|
822
|
+
let i = t.reduce((e, t) => e + Math.max(t, 0), 0);
|
|
823
|
+
if (i <= 0) return;
|
|
824
|
+
let a = t.map((e) => Math.max(e, 0) / i * r);
|
|
825
|
+
n.setPanelSizes?.(a);
|
|
826
|
+
}
|
|
827
|
+
beginFloatingDrag(e, t, n, r) {
|
|
828
|
+
let i = this.floatingLayouts[t];
|
|
829
|
+
if (!i) return;
|
|
830
|
+
e.preventDefault(), e.stopPropagation(), i.bounds = s(i.bounds, this.getHostSize());
|
|
831
|
+
let { left: a, top: o } = i.bounds;
|
|
832
|
+
try {
|
|
833
|
+
r.setPointerCapture(e.pointerId);
|
|
834
|
+
} catch {}
|
|
835
|
+
this.promoteFloatingPane(t, n), n.dataset.dragging = "true", this.floatingDragState = {
|
|
836
|
+
index: t,
|
|
837
|
+
pointerId: e.pointerId,
|
|
838
|
+
startX: e.clientX,
|
|
839
|
+
startY: e.clientY,
|
|
840
|
+
startLeft: a,
|
|
841
|
+
startTop: o,
|
|
842
|
+
wrapper: n,
|
|
843
|
+
handle: r
|
|
844
|
+
}, this.startPointerTracking();
|
|
845
|
+
}
|
|
846
|
+
syncFloatingResizerValue(e, t, n) {
|
|
847
|
+
let r = this.floatingLayouts[t], i = this.getHostSize();
|
|
848
|
+
if (!r || i.width <= 0 || i.height <= 0) return;
|
|
849
|
+
let a = n.horizontal === "none" ? r.bounds.height / i.height * 100 : r.bounds.width / i.width * 100;
|
|
850
|
+
e.setAttribute("aria-valuenow", String(Math.round(Math.min(100, Math.max(0, a)))));
|
|
851
|
+
}
|
|
852
|
+
onFloatingResizeKeydown(e, t, n, r, i) {
|
|
853
|
+
if (e.altKey || e.ctrlKey || e.metaKey) return;
|
|
854
|
+
let a = e.key === "ArrowLeft" ? -1 : +(e.key === "ArrowRight"), o = e.key === "ArrowUp" ? -1 : +(e.key === "ArrowDown");
|
|
855
|
+
if (a === 0 && o === 0 || a !== 0 && i.horizontal === "none" || o !== 0 && i.vertical === "none") return;
|
|
856
|
+
let s = this.floatingLayouts[t];
|
|
857
|
+
if (!s) return;
|
|
858
|
+
e.preventDefault(), e.stopPropagation();
|
|
859
|
+
let c = e.shiftKey ? 1 : 10, l = A(s.bounds, i, {
|
|
860
|
+
x: a * c,
|
|
861
|
+
y: o * c
|
|
862
|
+
}, this.getHostSize());
|
|
863
|
+
this.applyFloatingBounds(n, t, l), this.syncFloatingResizerValue(r, t, i), this.dispatchLayoutChanged();
|
|
864
|
+
}
|
|
865
|
+
beginFloatingResize(e, t, n, r, i) {
|
|
866
|
+
let a = this.floatingLayouts[t];
|
|
867
|
+
if (a) {
|
|
868
|
+
e.preventDefault(), e.stopPropagation();
|
|
869
|
+
try {
|
|
870
|
+
r.setPointerCapture(e.pointerId);
|
|
871
|
+
} catch {}
|
|
872
|
+
r.dataset.resizing = "true", this.promoteFloatingPane(t, n), a.bounds = s(a.bounds, this.getHostSize()), this.floatingResizeState = {
|
|
873
|
+
index: t,
|
|
874
|
+
pointerId: e.pointerId,
|
|
875
|
+
startX: e.clientX,
|
|
876
|
+
startY: e.clientY,
|
|
877
|
+
startWidth: a.bounds.width,
|
|
878
|
+
startHeight: a.bounds.height,
|
|
879
|
+
startLeft: a.bounds.left,
|
|
880
|
+
startTop: a.bounds.top,
|
|
881
|
+
wrapper: n,
|
|
882
|
+
handle: r,
|
|
883
|
+
edges: i
|
|
884
|
+
}, this.startPointerTracking();
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
handleFloatingDragMove(e) {
|
|
888
|
+
let t = this.floatingDragState;
|
|
889
|
+
if (!t || e.pointerId !== t.pointerId) return;
|
|
890
|
+
let n = this.floatingLayouts[t.index];
|
|
891
|
+
if (!n) return;
|
|
892
|
+
let r = e.clientX - t.startX, i = e.clientY - t.startY, a = s({
|
|
893
|
+
left: t.startLeft + r,
|
|
894
|
+
top: t.startTop + i,
|
|
895
|
+
width: n.bounds.width,
|
|
896
|
+
height: n.bounds.height
|
|
897
|
+
}, this.getHostSize());
|
|
898
|
+
t.wrapper.style.left = `${a.left}px`, t.wrapper.style.top = `${a.top}px`, n.bounds = a, this.updateFloatingDragDropTarget(e);
|
|
899
|
+
}
|
|
900
|
+
endFloatingDrag(e) {
|
|
901
|
+
let t = this.floatingDragState;
|
|
902
|
+
if (!t || e !== t.pointerId) return;
|
|
903
|
+
try {
|
|
904
|
+
t.handle.releasePointerCapture(t.pointerId);
|
|
905
|
+
} catch {}
|
|
906
|
+
delete t.handle.dataset.resizing, delete t.wrapper.dataset.dragging;
|
|
907
|
+
let n = t.dropTarget ? this.handleFloatingStackDrop(t.index, t.dropTarget.path, t.dropTarget.zone) : !1;
|
|
908
|
+
this.floatingDragState = null, this.hideDropIndicator(), n || this.dispatchLayoutChanged();
|
|
909
|
+
}
|
|
910
|
+
updateFloatingDragDropTarget(e) {
|
|
911
|
+
let t = this.floatingDragState;
|
|
912
|
+
if (!t) return;
|
|
913
|
+
let n = this.findStackAtPoint(e.clientX, e.clientY);
|
|
914
|
+
if (!n) {
|
|
915
|
+
t.dropTarget && (delete t.dropTarget, this.hideDropIndicator());
|
|
916
|
+
return;
|
|
917
|
+
}
|
|
918
|
+
let r = z(n.dataset.path);
|
|
919
|
+
if (!r || r.type === "floating" && r.index === t.index) {
|
|
920
|
+
t.dropTarget && (delete t.dropTarget, this.hideDropIndicator());
|
|
921
|
+
return;
|
|
922
|
+
}
|
|
923
|
+
this.dropJoystickTarget && this.dropJoystickTarget !== n && (delete this.dropJoystick.dataset.zone, this.updateDropJoystickActiveZone(null));
|
|
924
|
+
let i = this.computeDropZone(n, e, this.extractDropZoneFromEvent(e));
|
|
925
|
+
i ? t.dropTarget = {
|
|
926
|
+
path: r,
|
|
927
|
+
zone: i
|
|
928
|
+
} : t.dropTarget && delete t.dropTarget, this.showDropIndicator(n, i);
|
|
929
|
+
}
|
|
930
|
+
handleFloatingResizeMove(e) {
|
|
931
|
+
let t = this.floatingResizeState;
|
|
932
|
+
if (!t || e.pointerId !== t.pointerId) return;
|
|
933
|
+
let n = A({
|
|
934
|
+
left: t.startLeft,
|
|
935
|
+
top: t.startTop,
|
|
936
|
+
width: t.startWidth,
|
|
937
|
+
height: t.startHeight
|
|
938
|
+
}, t.edges, {
|
|
939
|
+
x: e.clientX - t.startX,
|
|
940
|
+
y: e.clientY - t.startY
|
|
941
|
+
}, this.getHostSize());
|
|
942
|
+
this.applyFloatingBounds(t.wrapper, t.index, n);
|
|
943
|
+
}
|
|
944
|
+
applyFloatingBounds(e, t, n) {
|
|
945
|
+
e.style.left = `${n.left}px`, e.style.top = `${n.top}px`, e.style.width = `${n.width}px`, e.style.height = `${n.height}px`;
|
|
946
|
+
let r = this.floatingLayouts[t];
|
|
947
|
+
r && (r.bounds = n);
|
|
948
|
+
}
|
|
949
|
+
endFloatingResize(e) {
|
|
950
|
+
let t = this.floatingResizeState;
|
|
951
|
+
if (t && e === t.pointerId) {
|
|
952
|
+
try {
|
|
953
|
+
t.handle.releasePointerCapture(t.pointerId);
|
|
954
|
+
} catch {}
|
|
955
|
+
delete t.handle.dataset.resizing, this.syncFloatingResizerValue(t.handle, t.index, t.edges), this.floatingResizeState = null, this.dispatchLayoutChanged();
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
getHostSize() {
|
|
959
|
+
return {
|
|
960
|
+
width: this.rootEl.clientWidth,
|
|
961
|
+
height: this.rootEl.clientHeight
|
|
962
|
+
};
|
|
963
|
+
}
|
|
964
|
+
updateFloatingPanePositions() {
|
|
965
|
+
if (!this.floatingLayerEl) return;
|
|
966
|
+
let e = this.getHostSize();
|
|
967
|
+
this.floatingLayouts.forEach((t, n) => {
|
|
968
|
+
let r = this.floatingLayerEl.children[n];
|
|
969
|
+
if (!r) return;
|
|
970
|
+
let { left: i, top: a, width: o, height: c } = s(t.bounds, e);
|
|
971
|
+
r.style.left = `${i}px`, r.style.top = `${a}px`, r.style.width = `${o}px`, r.style.height = `${c}px`, r.style.minWidth = "0", r.style.minHeight = "0";
|
|
972
|
+
});
|
|
973
|
+
}
|
|
974
|
+
promoteFloatingPane(e, t) {
|
|
975
|
+
let n = this.floatingLayouts[e];
|
|
976
|
+
if (!n) return;
|
|
977
|
+
let r = this.floatingLayouts.reduce((t, n, r) => {
|
|
978
|
+
if (!n) return t;
|
|
979
|
+
let i = r === e ? -Infinity : l(this.floatingLayouts[r], r);
|
|
980
|
+
return Math.max(t, i);
|
|
981
|
+
}, 0), i = Math.max(r + 2, 12);
|
|
982
|
+
n.zIndex = i, t.style.zIndex = String(i);
|
|
983
|
+
}
|
|
984
|
+
getFloatingWrapper(e) {
|
|
985
|
+
let t = `.dock-floating[data-path="${R({
|
|
986
|
+
type: "floating",
|
|
987
|
+
index: e,
|
|
988
|
+
segments: []
|
|
989
|
+
})}"]`;
|
|
990
|
+
return this.floatingLayerEl.querySelector(t);
|
|
991
|
+
}
|
|
992
|
+
startPointerTracking() {
|
|
993
|
+
if (this.pointerTrackingActive) return;
|
|
994
|
+
let e = this.windowRef;
|
|
995
|
+
e?.addEventListener("pointermove", this.onPointerMove), e?.addEventListener("pointerup", this.onPointerUp), e?.addEventListener("pointercancel", this.onPointerCancel), this.pointerTrackingActive = !0;
|
|
996
|
+
}
|
|
997
|
+
stopPointerTrackingIfIdle() {
|
|
998
|
+
if (this.pointerTrackingActive && !this.floatingDragState && !this.floatingResizeState && !this.cornerResizeState) {
|
|
999
|
+
let e = this.windowRef;
|
|
1000
|
+
e?.removeEventListener("pointermove", this.onPointerMove), e?.removeEventListener("pointerup", this.onPointerUp), e?.removeEventListener("pointercancel", this.onPointerCancel), this.pointerTrackingActive = !1;
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
getFloatingWindowTitle(e) {
|
|
1004
|
+
let t = "Floating Pane";
|
|
1005
|
+
if (!e || !e.root) return t;
|
|
1006
|
+
let n = e.activePane ?? x(e.root);
|
|
1007
|
+
return n ? this.titles[n] ?? n ?? t : t;
|
|
1008
|
+
}
|
|
1009
|
+
updateFloatingWindowTitle(e) {
|
|
1010
|
+
let t = this.floatingLayouts[e];
|
|
1011
|
+
if (!t) return;
|
|
1012
|
+
let n = `.dock-floating[data-path="${R({
|
|
1013
|
+
type: "floating",
|
|
1014
|
+
index: e,
|
|
1015
|
+
segments: []
|
|
1016
|
+
})}"]`, r = this.floatingLayerEl.querySelector(n);
|
|
1017
|
+
if (!r) return;
|
|
1018
|
+
let i = r.querySelector(".dock-floating__title");
|
|
1019
|
+
i && (i.textContent = this.getFloatingWindowTitle(t));
|
|
1020
|
+
}
|
|
1021
|
+
renderSplit(e, t, n) {
|
|
1022
|
+
let r = this.documentRef.createElement("mp-splitter");
|
|
1023
|
+
r.classList.add("dock-split"), r.dataset.direction = e.direction, r.setAttribute("orientation", e.direction);
|
|
1024
|
+
let i = typeof n == "number" ? {
|
|
1025
|
+
type: "floating",
|
|
1026
|
+
index: n,
|
|
1027
|
+
segments: [...t]
|
|
1028
|
+
} : {
|
|
1029
|
+
type: "docked",
|
|
1030
|
+
segments: [...t]
|
|
1031
|
+
};
|
|
1032
|
+
r.dataset.path = R(i), e.children.forEach((e, i) => {
|
|
1033
|
+
r.appendChild(this.renderNode(e, [...t, i], n));
|
|
1034
|
+
});
|
|
1035
|
+
let a = Array.isArray(e.sizes) ? e.sizes : [];
|
|
1036
|
+
return a.length > 0 && requestAnimationFrame(() => {
|
|
1037
|
+
let t = a.reduce((e, t) => e + Math.max(t, 0), 0);
|
|
1038
|
+
if (t <= 0) return;
|
|
1039
|
+
let n = e.direction === "horizontal" ? r.getBoundingClientRect().width : r.getBoundingClientRect().height;
|
|
1040
|
+
if (!Number.isFinite(n) || n <= 0) return;
|
|
1041
|
+
let i = a.map((e) => Math.max(e, 0) / t * n);
|
|
1042
|
+
r.setPanelSizes?.(i), requestAnimationFrame(() => this.scheduleRenderIntersectionHandles());
|
|
1043
|
+
}), r.addEventListener("resize-end", (e) => {
|
|
1044
|
+
if (e.target !== r) return;
|
|
1045
|
+
let t = e.detail;
|
|
1046
|
+
if (!Array.isArray(t?.sizes) || t.sizes.length === 0) return;
|
|
1047
|
+
let n = D(i, this.rootLayout, this.floatingLayouts);
|
|
1048
|
+
if (!n) return;
|
|
1049
|
+
let a = (n.sizes ?? []).reduce((e, t) => e + Math.max(t, 0), 0), o = t.sizes.reduce((e, t) => e + Math.max(t, 0), 0), s = a > 0 ? a : t.sizes.length;
|
|
1050
|
+
o > 0 && (n.sizes = t.sizes.map((e) => Math.max(e, 0) / o * s), this.dispatchLayoutChanged());
|
|
1051
|
+
}), r;
|
|
1052
|
+
}
|
|
1053
|
+
renderStack(e, t, n) {
|
|
1054
|
+
let r = this.documentRef.createElement("mp-tab-control");
|
|
1055
|
+
r.classList.add("dock-stack"), r.setAttribute("select-first-tab", "false"), r.setAttribute("border", "top");
|
|
1056
|
+
let i = typeof n == "number" ? {
|
|
1057
|
+
type: "floating",
|
|
1058
|
+
index: n,
|
|
1059
|
+
segments: [...t]
|
|
1060
|
+
} : {
|
|
1061
|
+
type: "docked",
|
|
1062
|
+
segments: [...t]
|
|
1063
|
+
};
|
|
1064
|
+
r.dataset.path = R(i);
|
|
1065
|
+
let a = Array.from(new Set(e.panes));
|
|
1066
|
+
if (a.length === 0) {
|
|
1067
|
+
let e = this.documentRef.createElement("span");
|
|
1068
|
+
e.setAttribute("slot", "__empty__-header"), e.textContent = "(empty)";
|
|
1069
|
+
let t = this.documentRef.createElement("div");
|
|
1070
|
+
return t.setAttribute("slot", "__empty__-content"), t.classList.add("dock-stack__pane"), t.textContent = "No panes configured", r.append(e, t), r.setAttribute("active-tab", "__empty__"), r;
|
|
1071
|
+
}
|
|
1072
|
+
let o = a.includes(e.activePane ?? "") ? e.activePane : a[0], s = t.length ? t.join("-") : "root", c = typeof n == "number" ? `f${n}-${s}` : s;
|
|
1073
|
+
return a.forEach((e) => {
|
|
1074
|
+
let t = e.replace(/[^a-zA-Z0-9_-]/g, "-"), n = t.length > 0 ? t : "pane", a = `${this.instanceId}-tab-${c}-${n}`, s = `${this.instanceId}-panel-${c}-${n}`, l = this.documentRef.createElement("span");
|
|
1075
|
+
l.setAttribute("slot", `${a}-header`), l.classList.add("dock-tab"), l.dataset.pane = e, l.dataset.tabId = a, l.textContent = this.titles[e] ?? e, l.addEventListener("pointerdown", (t) => {
|
|
1076
|
+
this.captureTabDragMetrics(t, r), this.armPaneDragGesture(t, V(i), e, r), t.stopPropagation();
|
|
1077
|
+
});
|
|
1078
|
+
let u = this.documentRef.createElement("div");
|
|
1079
|
+
u.setAttribute("slot", `${a}-content`), u.classList.add("dock-stack__pane"), u.dataset.pane = e, u.dataset.tabId = a, u.id = s;
|
|
1080
|
+
let d = this.documentRef.createElement("slot");
|
|
1081
|
+
d.name = e, u.appendChild(d), r.append(l, u), e === o && r.setAttribute("active-tab", a);
|
|
1082
|
+
}), r.dataset.activePane = o, r.addEventListener("tab-activate", (e) => {
|
|
1083
|
+
let t = e.detail, n = this.stackChildren(r).find((e) => e.dataset.tabId === t.tabId)?.dataset.pane;
|
|
1084
|
+
n && (this.activatePane(r, n, V(i)), this.dispatchEvent(new CustomEvent("dock-pane-activated", {
|
|
1085
|
+
detail: { pane: n },
|
|
1086
|
+
bubbles: !0,
|
|
1087
|
+
composed: !0
|
|
1088
|
+
})));
|
|
1089
|
+
}), r;
|
|
1090
|
+
}
|
|
1091
|
+
getStackStripEl(e) {
|
|
1092
|
+
return e.tagName === "MP-TAB-CONTROL" ? e.shadowRoot?.querySelector(".tsc") ?? null : null;
|
|
1093
|
+
}
|
|
1094
|
+
getStackTabButtons(e) {
|
|
1095
|
+
return e.tagName === "MP-TAB-CONTROL" ? Array.from(e.shadowRoot?.querySelectorAll("button.nav-link") ?? []) : [];
|
|
1096
|
+
}
|
|
1097
|
+
getSplitterDividers(e) {
|
|
1098
|
+
return e.tagName === "MP-SPLITTER" ? Array.from(e.shadowRoot?.querySelectorAll(".divider") ?? []) : [];
|
|
1099
|
+
}
|
|
1100
|
+
getSplitterPanels(e) {
|
|
1101
|
+
return e.tagName === "MP-SPLITTER" ? Array.from(e.shadowRoot?.querySelectorAll(".panel-wrapper") ?? []) : [];
|
|
1102
|
+
}
|
|
1103
|
+
findSplitterByPath(e) {
|
|
1104
|
+
return e ? this.shadowRoot?.querySelector(`.dock-split[data-path="${R(e)}"]`) ?? null : null;
|
|
1105
|
+
}
|
|
1106
|
+
onPointerMove(e) {
|
|
1107
|
+
this.cornerResizeState && e.pointerId === this.cornerResizeState.pointerId && this.handleCornerResizeMove(e), this.floatingResizeState && e.pointerId === this.floatingResizeState.pointerId && this.handleFloatingResizeMove(e), this.floatingDragState && e.pointerId === this.floatingDragState.pointerId && this.handleFloatingDragMove(e);
|
|
1108
|
+
}
|
|
1109
|
+
onPointerUp(e) {
|
|
1110
|
+
this.cornerResizeState && e.pointerId === this.cornerResizeState.pointerId && this.endCornerResize(e.pointerId), this.floatingDragState && e.pointerId === this.floatingDragState.pointerId && this.endFloatingDrag(e.pointerId), this.floatingResizeState && e.pointerId === this.floatingResizeState.pointerId && this.endFloatingResize(e.pointerId), this.stopPointerTrackingIfIdle();
|
|
1111
|
+
}
|
|
1112
|
+
onPointerCancel(e) {
|
|
1113
|
+
this.floatingDragState && e.pointerId === this.floatingDragState.pointerId && (delete this.floatingDragState.dropTarget, this.endFloatingDrag(e.pointerId)), this.floatingResizeState && e.pointerId === this.floatingResizeState.pointerId && this.endFloatingResize(e.pointerId), this.cornerResizeState && e.pointerId === this.cornerResizeState.pointerId && this.endCornerResize(e.pointerId), this.stopPointerTrackingIfIdle();
|
|
1114
|
+
}
|
|
1115
|
+
captureTabDragMetrics(e, t) {
|
|
1116
|
+
if (!t || !Number.isFinite(e.clientX) || !Number.isFinite(e.clientY)) {
|
|
1117
|
+
this.pendingTabDragMetrics = null;
|
|
1118
|
+
return;
|
|
1119
|
+
}
|
|
1120
|
+
let n = this.getBoundingClientRect(), r = t.getBoundingClientRect(), i = e.clientX - r.left, a = e.clientY - r.top, o = r.left - n.left, s = r.top - n.top, c = Number.isFinite(r.width) ? r.width : 0, l = Number.isFinite(r.height) ? r.height : 0;
|
|
1121
|
+
this.pendingTabDragMetrics = {
|
|
1122
|
+
pointerOffsetX: i,
|
|
1123
|
+
pointerOffsetY: a,
|
|
1124
|
+
left: o,
|
|
1125
|
+
top: s,
|
|
1126
|
+
width: c,
|
|
1127
|
+
height: l,
|
|
1128
|
+
startClientX: e.clientX,
|
|
1129
|
+
startClientY: e.clientY
|
|
1130
|
+
};
|
|
1131
|
+
}
|
|
1132
|
+
clearPendingTabDragMetrics() {
|
|
1133
|
+
this.pendingTabDragMetrics = null;
|
|
1134
|
+
}
|
|
1135
|
+
armPaneDragGesture(e, t, n, r) {
|
|
1136
|
+
if (e.pointerType === "touch") {
|
|
1137
|
+
this.armPaneDragGestureTouch(e, t, n, r);
|
|
1138
|
+
return;
|
|
1139
|
+
}
|
|
1140
|
+
if (e.pointerType === "mouse" && e.button !== 0) return;
|
|
1141
|
+
let i = this.windowRef;
|
|
1142
|
+
if (!i) return;
|
|
1143
|
+
let a = e.clientX, o = e.clientY, s = e.pointerId, c = !1, l = () => {
|
|
1144
|
+
c = !0, i.removeEventListener("pointermove", u, !0), i.removeEventListener("pointerup", d, !0), i.removeEventListener("pointercancel", d, !0);
|
|
1145
|
+
}, u = (e) => {
|
|
1146
|
+
if (c || e.pointerId !== s) return;
|
|
1147
|
+
let i = e.clientX - a, u = e.clientY - o;
|
|
1148
|
+
Math.hypot(i, u) < 5 || (l(), this.beginPaneDrag(e, t, n, r));
|
|
1149
|
+
}, d = (e) => {
|
|
1150
|
+
c || e.pointerId !== s || (l(), this.clearPendingTabDragMetrics());
|
|
1151
|
+
};
|
|
1152
|
+
i.addEventListener("pointermove", u, !0), i.addEventListener("pointerup", d, !0), i.addEventListener("pointercancel", d, !0);
|
|
1153
|
+
}
|
|
1154
|
+
armPaneDragGestureTouch(e, t, n, r) {
|
|
1155
|
+
let a = this.windowRef;
|
|
1156
|
+
if (!a) return;
|
|
1157
|
+
let o = e.clientX, s = e.clientY, c = e.pointerId, l = o, u = s, d = o, f = !1, p = !1, m = !1, h = e.currentTarget instanceof HTMLElement ? e.currentTarget : e.target instanceof HTMLElement ? e.target.closest(".dock-tab") : null, g = r ? this.getStackStripEl(r)?.querySelector("ul.nav.nav-tabs") ?? null : null, _ = () => {
|
|
1158
|
+
f || (f = !0, a.clearTimeout(x), a.clearTimeout(S), a.removeEventListener("pointermove", v, !0), a.removeEventListener("pointerup", y, !0), a.removeEventListener("pointercancel", b, !0), m && h && h.removeAttribute("data-pressing"));
|
|
1159
|
+
}, v = (e) => {
|
|
1160
|
+
if (f || e.pointerId !== c) return;
|
|
1161
|
+
if (p) {
|
|
1162
|
+
let t = e.clientX - d;
|
|
1163
|
+
d = e.clientX, g && (g.scrollLeft -= t);
|
|
1164
|
+
return;
|
|
1165
|
+
}
|
|
1166
|
+
l = e.clientX, u = e.clientY;
|
|
1167
|
+
let t = e.clientX - o, n = e.clientY - s;
|
|
1168
|
+
if (Math.hypot(t, n) <= i.TOUCH_LONG_PRESS_SLOP_PX) return;
|
|
1169
|
+
let r = !!g && g.scrollWidth > g.clientWidth;
|
|
1170
|
+
Math.abs(t) > Math.abs(n) && r ? (a.clearTimeout(x), a.clearTimeout(S), m && h && (h.removeAttribute("data-pressing"), m = !1), p = !0, d = e.clientX, g.scrollLeft -= t, this.clearPendingTabDragMetrics()) : (_(), this.clearPendingTabDragMetrics());
|
|
1171
|
+
}, y = (e) => {
|
|
1172
|
+
f || e.pointerId !== c || (_(), this.clearPendingTabDragMetrics());
|
|
1173
|
+
}, b = (e) => {
|
|
1174
|
+
f || e.pointerId !== c || (_(), this.clearPendingTabDragMetrics());
|
|
1175
|
+
}, x = a.setTimeout(() => {
|
|
1176
|
+
if (f) return;
|
|
1177
|
+
_();
|
|
1178
|
+
try {
|
|
1179
|
+
this.setPointerCapture(c);
|
|
1180
|
+
} catch {}
|
|
1181
|
+
if (typeof navigator < "u" && typeof navigator.vibrate == "function") try {
|
|
1182
|
+
navigator.vibrate(10);
|
|
1183
|
+
} catch {}
|
|
1184
|
+
let e = new PointerEvent("pointermove", {
|
|
1185
|
+
pointerId: c,
|
|
1186
|
+
pointerType: "touch",
|
|
1187
|
+
isPrimary: !0,
|
|
1188
|
+
clientX: l,
|
|
1189
|
+
clientY: u,
|
|
1190
|
+
bubbles: !1,
|
|
1191
|
+
cancelable: !1
|
|
1192
|
+
});
|
|
1193
|
+
this.beginPaneDrag(e, t, n, r);
|
|
1194
|
+
}, i.TOUCH_LONG_PRESS_MS), S = a.setTimeout(() => {
|
|
1195
|
+
!f && h && (m = !0, h.setAttribute("data-pressing", "true"));
|
|
1196
|
+
}, i.TOUCH_PRESS_FEEDBACK_DELAY_MS);
|
|
1197
|
+
a.addEventListener("pointermove", v, !0), a.addEventListener("pointerup", y, !0), a.addEventListener("pointercancel", b, !0);
|
|
1198
|
+
}
|
|
1199
|
+
beginPaneDrag(e, t, n, r) {
|
|
1200
|
+
let { path: i, floatingIndex: a, pointerOffsetX: o, pointerOffsetY: s } = this.preparePaneDragSource(t, n, r, e), c = r ? this.getStackStripEl(r) : null, l = c ? c.getBoundingClientRect() : null, u = l ? {
|
|
1201
|
+
left: l.left,
|
|
1202
|
+
top: l.top,
|
|
1203
|
+
right: l.right,
|
|
1204
|
+
bottom: l.bottom
|
|
1205
|
+
} : null, d = this.pendingTabDragMetrics;
|
|
1206
|
+
if (this.dragState = {
|
|
1207
|
+
pane: n,
|
|
1208
|
+
sourcePath: V(i),
|
|
1209
|
+
floatingIndex: a,
|
|
1210
|
+
pointerOffsetX: o,
|
|
1211
|
+
pointerOffsetY: s,
|
|
1212
|
+
dropHandled: !1,
|
|
1213
|
+
sourceStackEl: r,
|
|
1214
|
+
sourceHeaderBounds: u,
|
|
1215
|
+
startClientX: d && Number.isFinite(d.startClientX) ? d.startClientX : e.clientX,
|
|
1216
|
+
startClientY: d && Number.isFinite(d.startClientY) ? d.startClientY : e.clientY
|
|
1217
|
+
}, this.lastDragPointerPosition = {
|
|
1218
|
+
x: this.dragState.startClientX,
|
|
1219
|
+
y: this.dragState.startClientY
|
|
1220
|
+
}, this.updateDraggedFloatingPositionFromPoint(e.clientX, e.clientY), this.startDragPointerTracking(), this.markDraggedFloatingWrapper(), this.dragState && this.dragState.floatingIndex !== null && this.dragState.floatingIndex < 0) {
|
|
1221
|
+
let t = this.resolveStackLocation(this.dragState.sourcePath);
|
|
1222
|
+
if (t && Array.isArray(t.node.panes) && t.node.panes.length === 1) {
|
|
1223
|
+
let n = !1;
|
|
1224
|
+
if (t.context === "docked") n = !0;
|
|
1225
|
+
else if (t.context === "floating") {
|
|
1226
|
+
let e = this.floatingLayouts[t.index];
|
|
1227
|
+
n = (e && e.root ? E(e.root) : 0) > 1;
|
|
1228
|
+
}
|
|
1229
|
+
n && this.convertPendingTabDragToFloating(e.clientX, e.clientY);
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
preparePaneDragSource(e, t, n, r) {
|
|
1234
|
+
let i = this.resolveStackLocation(e);
|
|
1235
|
+
if (!i || !i.node.panes.includes(t)) return {
|
|
1236
|
+
path: e,
|
|
1237
|
+
floatingIndex: null,
|
|
1238
|
+
pointerOffsetX: 0,
|
|
1239
|
+
pointerOffsetY: 0
|
|
1240
|
+
};
|
|
1241
|
+
let a = this.pendingTabDragMetrics, o = !!n && Array.from(n.querySelectorAll(".dock-tab")).some((e) => e.dataset.pane && e.dataset.pane !== t), s = i.node.panes.some((e) => e !== t), c = i.context === "floating" ? this.floatingLayouts[i.index] : null, l = c && c.root ? E(c.root) : s ? 2 : 1;
|
|
1242
|
+
if (i.context === "floating" && c && !s && !o && l <= 1) {
|
|
1243
|
+
if (c) {
|
|
1244
|
+
c.activePane = t, this.updateFloatingWindowTitle(i.index);
|
|
1245
|
+
let n = this.getFloatingWrapper(i.index);
|
|
1246
|
+
n && this.promoteFloatingPane(i.index, n);
|
|
1247
|
+
let o = this.getBoundingClientRect(), s = a && Number.isFinite(a.pointerOffsetX) && Number.isFinite(a.left) && Number.isFinite(c.bounds.left) ? a.pointerOffsetX + (a.left - c.bounds.left) : Number.isFinite(r.clientX) && Number.isFinite(c.bounds.left) ? r.clientX - o.left - c.bounds.left : c.bounds.width / 2, l = a && Number.isFinite(a.pointerOffsetY) && Number.isFinite(a.top) && Number.isFinite(c.bounds.top) ? a.pointerOffsetY + (a.top - c.bounds.top) : Number.isFinite(r.clientY) && Number.isFinite(c.bounds.top) ? r.clientY - o.top - c.bounds.top : c.bounds.height / 2;
|
|
1248
|
+
return {
|
|
1249
|
+
path: e,
|
|
1250
|
+
floatingIndex: i.index,
|
|
1251
|
+
pointerOffsetX: s,
|
|
1252
|
+
pointerOffsetY: l
|
|
1253
|
+
};
|
|
1254
|
+
}
|
|
1255
|
+
return {
|
|
1256
|
+
path: e,
|
|
1257
|
+
floatingIndex: null,
|
|
1258
|
+
pointerOffsetX: 0,
|
|
1259
|
+
pointerOffsetY: 0
|
|
1260
|
+
};
|
|
1261
|
+
}
|
|
1262
|
+
return {
|
|
1263
|
+
path: e,
|
|
1264
|
+
floatingIndex: -1,
|
|
1265
|
+
pointerOffsetX: a && Number.isFinite(a.pointerOffsetX) ? a.pointerOffsetX : 0,
|
|
1266
|
+
pointerOffsetY: a && Number.isFinite(a.pointerOffsetY) ? a.pointerOffsetY : 0
|
|
1267
|
+
};
|
|
1268
|
+
}
|
|
1269
|
+
endPaneDrag() {
|
|
1270
|
+
this.clearPendingDragEndTimeout(), this.clearHeaderDragPlaceholder(), this.clearDraggedFloatingWrapperMarkers();
|
|
1271
|
+
let e = this.dragState;
|
|
1272
|
+
this.dragState = null, this.hideDropIndicator(), this.stopDragPointerTracking(), this.lastDragPointerPosition = null, e && e.floatingIndex !== null && !e.dropHandled && this.dispatchLayoutChanged();
|
|
1273
|
+
}
|
|
1274
|
+
updateDraggedFloatingPositionFromPoint(e, t) {
|
|
1275
|
+
if (!this.dragState || !Number.isFinite(e) || !Number.isFinite(t)) return;
|
|
1276
|
+
if (this.dragState.floatingIndex !== null && this.dragState.floatingIndex < 0) {
|
|
1277
|
+
let n = this.dragState.sourceHeaderBounds, r = this.dragState.startClientX ?? e, i = this.dragState.startClientY ?? t, a = Math.hypot(e - r, t - i), o = !0, s = !n || c(n, e, t), l = this.isPointerOverSourceHeader(e, t);
|
|
1278
|
+
o = s || l, !o && a > 8 && this.convertPendingTabDragToFloating(e, t);
|
|
1279
|
+
}
|
|
1280
|
+
this.updatePaneDragDropTargetFromPoint(e, t);
|
|
1281
|
+
let { floatingIndex: n, pointerOffsetX: r, pointerOffsetY: i } = this.dragState;
|
|
1282
|
+
if (n === null || n < 0) return;
|
|
1283
|
+
let a = this.floatingLayouts[n];
|
|
1284
|
+
if (!a) return;
|
|
1285
|
+
let o = this.getBoundingClientRect(), s = e - o.left - r, l = t - o.top - i;
|
|
1286
|
+
a.bounds.left = s, a.bounds.top = l;
|
|
1287
|
+
let u = this.getFloatingWrapper(n);
|
|
1288
|
+
u && (u.style.left = `${s}px`, u.style.top = `${l}px`);
|
|
1289
|
+
}
|
|
1290
|
+
updatePaneDragDropTargetFromPoint(e, t) {
|
|
1291
|
+
if (!this.dragState) return;
|
|
1292
|
+
let n = this.findStackAtPoint(e, t), r = n ? z(n.dataset.path) : null;
|
|
1293
|
+
if (!n || !r) {
|
|
1294
|
+
this.dropJoystick.dataset.visible !== "true" && this.hideDropIndicator(), this.clearHeaderDragPlaceholder();
|
|
1295
|
+
return;
|
|
1296
|
+
}
|
|
1297
|
+
if (this.dropJoystickTarget && this.dropJoystickTarget !== n && (delete this.dropJoystick.dataset.zone, this.updateDropJoystickActiveZone(null)), this.dragState && this.dragState.floatingIndex !== null && this.dragState.floatingIndex < 0 && r && B(r, this.dragState.sourcePath)) {
|
|
1298
|
+
let r = !!this.dragState.sourceHeaderBounds && c(this.dragState.sourceHeaderBounds, e, t), i = this.isPointerOverSourceHeader(e, t);
|
|
1299
|
+
if (r || i) {
|
|
1300
|
+
this.ensureHeaderDragPlaceholder(n, this.dragState.pane);
|
|
1301
|
+
let t = this.computeHeaderInsertIndex(n, e);
|
|
1302
|
+
this.dragState.liveReorderIndex !== t && (this.updateHeaderDragPlaceholderPosition(n, t), this.dragState.liveReorderIndex = t), this.hideDropIndicator();
|
|
1303
|
+
return;
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
this.clearHeaderDragPlaceholder();
|
|
1307
|
+
let i = this.findDropZoneByPoint(e, t), a = this.computeDropZone(n, {
|
|
1308
|
+
clientX: e,
|
|
1309
|
+
clientY: t
|
|
1310
|
+
}, i);
|
|
1311
|
+
this.showDropIndicator(n, a);
|
|
1312
|
+
}
|
|
1313
|
+
isPointerOverSourceHeader(e, t) {
|
|
1314
|
+
let n = this.dragState;
|
|
1315
|
+
if (!n) return !1;
|
|
1316
|
+
let r = n.sourceStackEl ?? null, i = r ? this.getStackStripEl(r) : null;
|
|
1317
|
+
if (!i) return !0;
|
|
1318
|
+
let a = i.getBoundingClientRect();
|
|
1319
|
+
return e >= a.left && e <= a.right && t >= a.top && t <= a.bottom;
|
|
1320
|
+
}
|
|
1321
|
+
ensureHeaderDragPlaceholder(e, t) {
|
|
1322
|
+
if (e.tagName !== "MP-TAB-CONTROL" || this.dragState?.placeholderHeader === e && this.dragState.placeholderEl) return;
|
|
1323
|
+
let n = this.stackChildForPane(e, "dock-tab", t), r = this.stackChildForPane(e, "dock-stack__pane", t);
|
|
1324
|
+
if (!n || !r) return;
|
|
1325
|
+
let i = this.windowRef ? this.windowRef.getComputedStyle(n) : globalThis.getComputedStyle(n), a = parseFloat(i.paddingLeft) + parseFloat(i.paddingRight), o = Math.max(0, n.offsetWidth - a);
|
|
1326
|
+
r.setAttribute("data-hidden", "");
|
|
1327
|
+
let s = "__dock-placeholder__", c = this.documentRef.createElement("span");
|
|
1328
|
+
c.setAttribute("slot", `${s}-header`), c.classList.add("dock-tab"), c.dataset.placeholder = "true", c.dataset.tabId = s, c.setAttribute("aria-hidden", "true"), c.textContent = n.textContent, c.style.display = "inline-block", c.style.minWidth = `${o}px`, c.style.opacity = "0.5";
|
|
1329
|
+
let l = this.documentRef.createElement("div");
|
|
1330
|
+
l.setAttribute("slot", `${s}-content`), l.classList.add("dock-stack__pane"), l.dataset.placeholder = "true", e.insertBefore(c, n), e.insertBefore(l, r), this.dragState && (this.dragState.placeholderHeader = e, this.dragState.placeholderEl = c);
|
|
1331
|
+
}
|
|
1332
|
+
stackChildren(e) {
|
|
1333
|
+
return Array.from(e.children).filter((e) => e instanceof HTMLElement);
|
|
1334
|
+
}
|
|
1335
|
+
stackChildForPane(e, t, n) {
|
|
1336
|
+
return this.stackChildren(e).find((e) => e.classList.contains(t) && e.dataset.pane === n) ?? null;
|
|
1337
|
+
}
|
|
1338
|
+
stackPlaceholder(e, t) {
|
|
1339
|
+
return this.stackChildren(e).find((e) => e.classList.contains(t) && e.dataset.placeholder === "true") ?? null;
|
|
1340
|
+
}
|
|
1341
|
+
updateHeaderDragPlaceholderPosition(e, t) {
|
|
1342
|
+
if (e.tagName !== "MP-TAB-CONTROL") return;
|
|
1343
|
+
let n = this.dragState?.placeholderEl ?? null;
|
|
1344
|
+
if (!n) return;
|
|
1345
|
+
let r = this.dragState?.pane ?? null, i = this.stackChildren(e).filter((e) => e.classList.contains("dock-tab") && e !== n && (!r || e.dataset.pane !== r)), a = i[Math.max(0, Math.min(t, i.length))] ?? null;
|
|
1346
|
+
e.insertBefore(n, a);
|
|
1347
|
+
let o = this.stackPlaceholder(e, "dock-stack__pane");
|
|
1348
|
+
o && n.nextElementSibling !== o && e.insertBefore(o, n.nextElementSibling);
|
|
1349
|
+
}
|
|
1350
|
+
clearHeaderDragPlaceholder() {
|
|
1351
|
+
let e = this.dragState?.placeholderEl ?? null, t = this.dragState?.placeholderHeader ?? null;
|
|
1352
|
+
t && (this.dragState?.pane && this.stackChildForPane(t, "dock-stack__pane", this.dragState.pane)?.removeAttribute("data-hidden"), this.stackPlaceholder(t, "dock-stack__pane")?.remove()), e && e.parentElement && e.parentElement.removeChild(e), this.dragState && (this.dragState.placeholderEl = null, this.dragState.placeholderHeader = null);
|
|
1353
|
+
}
|
|
1354
|
+
startDragPointerTracking() {
|
|
1355
|
+
if (this.dragPointerTrackingActive) return;
|
|
1356
|
+
this.lastDragPointerPosition = null;
|
|
1357
|
+
let e = this.windowRef;
|
|
1358
|
+
e?.addEventListener("pointermove", this.onDragPointerMove, !0), e?.addEventListener("pointerup", this.onDragPointerUp, !0), e?.addEventListener("pointercancel", this.onDragPointerCancel, !0), this.dragPointerTrackingActive = !0;
|
|
1359
|
+
}
|
|
1360
|
+
stopDragPointerTracking() {
|
|
1361
|
+
if (!this.dragPointerTrackingActive) return;
|
|
1362
|
+
let e = this.windowRef;
|
|
1363
|
+
e?.removeEventListener("pointermove", this.onDragPointerMove, !0), e?.removeEventListener("pointerup", this.onDragPointerUp, !0), e?.removeEventListener("pointercancel", this.onDragPointerCancel, !0), this.dragPointerTrackingActive = !1, this.lastDragPointerPosition = null, this.clearPendingDragEndTimeout();
|
|
1364
|
+
}
|
|
1365
|
+
onDragPointerMove(e) {
|
|
1366
|
+
this.dragState ? (this.lastDragPointerPosition = {
|
|
1367
|
+
x: e.clientX,
|
|
1368
|
+
y: e.clientY
|
|
1369
|
+
}, this.updateDraggedFloatingPositionFromPoint(e.clientX, e.clientY)) : this.stopDragPointerTracking();
|
|
1370
|
+
}
|
|
1371
|
+
onDragPointerUp(e) {
|
|
1372
|
+
if (this.dragState) {
|
|
1373
|
+
let t = Number.isFinite(e.clientX) ? e.clientX : this.lastDragPointerPosition?.x, n = Number.isFinite(e.clientY) ? e.clientY : this.lastDragPointerPosition?.y;
|
|
1374
|
+
t !== void 0 && n !== void 0 && this.finalizeDropFromPoint(t, n);
|
|
1375
|
+
}
|
|
1376
|
+
this.handleDragPointerUpCommon();
|
|
1377
|
+
}
|
|
1378
|
+
onDragPointerCancel() {
|
|
1379
|
+
this.handleDragPointerUpCommon();
|
|
1380
|
+
}
|
|
1381
|
+
convertPendingTabDragToFloating(e, t) {
|
|
1382
|
+
if (!this.dragState) return;
|
|
1383
|
+
let n = this.dragState;
|
|
1384
|
+
if (n.floatingIndex !== null && n.floatingIndex >= 0) return;
|
|
1385
|
+
this.clearHeaderDragPlaceholder();
|
|
1386
|
+
let r = this.resolveStackLocation(n.sourcePath);
|
|
1387
|
+
if (!r) return;
|
|
1388
|
+
let i = n.pane, a = n.sourceStackEl ?? null, o = this.getBoundingClientRect(), c = a?.getBoundingClientRect() ?? null, l = this.pendingTabDragMetrics, u = l && Number.isFinite(l.width) && l.width > 0 ? l.width : c && Number.isFinite(c.width) ? c.width : 320, d = l && Number.isFinite(l.height) && l.height > 0 ? l.height : c && Number.isFinite(c.height) ? c.height : 240, f = s({
|
|
1389
|
+
left: l && Number.isFinite(l.left) ? l.left - 1 : Number.isFinite(e) ? e - o.left - u / 2 : 0,
|
|
1390
|
+
top: l && Number.isFinite(l.top) ? l.top - 1 : Number.isFinite(t) ? t - o.top - d / 2 : 0,
|
|
1391
|
+
width: u,
|
|
1392
|
+
height: d
|
|
1393
|
+
}, this.getHostSize()), p = Number.isFinite(e) ? e - o.left - f.left : f.width / 2, m = Number.isFinite(t) ? t - o.top - f.top : f.height / 2;
|
|
1394
|
+
this.removePaneFromLocation(r, i);
|
|
1395
|
+
let h = {
|
|
1396
|
+
bounds: f,
|
|
1397
|
+
root: {
|
|
1398
|
+
kind: "stack",
|
|
1399
|
+
panes: [i],
|
|
1400
|
+
activePane: i
|
|
1401
|
+
},
|
|
1402
|
+
activePane: i
|
|
1403
|
+
};
|
|
1404
|
+
this.floatingLayouts.push(h);
|
|
1405
|
+
let g = this.floatingLayouts.length - 1;
|
|
1406
|
+
this.renderLayout();
|
|
1407
|
+
let _ = this.getFloatingWrapper(g);
|
|
1408
|
+
_ && this.promoteFloatingPane(g, _), this.liveAnnouncer.announce(`Pane ${this.titles[i] ?? i} torn off into a floating window.`), n.sourcePath = {
|
|
1409
|
+
type: "floating",
|
|
1410
|
+
index: g,
|
|
1411
|
+
segments: []
|
|
1412
|
+
}, n.floatingIndex = g, n.pointerOffsetX = p, n.pointerOffsetY = m, this.markDraggedFloatingWrapper(), this.dispatchLayoutChanged();
|
|
1413
|
+
}
|
|
1414
|
+
markDraggedFloatingWrapper() {
|
|
1415
|
+
let e = this.dragState?.floatingIndex;
|
|
1416
|
+
if (e == null || e < 0) return;
|
|
1417
|
+
let t = this.getFloatingWrapper(e);
|
|
1418
|
+
t && (t.dataset.dragging = "true");
|
|
1419
|
+
}
|
|
1420
|
+
clearDraggedFloatingWrapperMarkers() {
|
|
1421
|
+
let e = this.floatingLayerEl;
|
|
1422
|
+
e && e.querySelectorAll(".dock-floating[data-dragging=\"true\"]").forEach((e) => {
|
|
1423
|
+
delete e.dataset.dragging;
|
|
1424
|
+
});
|
|
1425
|
+
}
|
|
1426
|
+
computeHeaderInsertIndex(e, t) {
|
|
1427
|
+
if (e.tagName !== "MP-TAB-CONTROL") return 0;
|
|
1428
|
+
let n = this.getStackTabButtons(e);
|
|
1429
|
+
if (n.length === 0) return 0;
|
|
1430
|
+
let r = this.stackPlaceholder(e, "dock-tab")?.dataset.tabId, i = r ? n.find((e) => e.id === `${r}-header-button`) ?? null : null, a = this.dragState?.pane ?? null, o = a ? this.stackChildForPane(e, "dock-tab", a)?.dataset.tabId ?? null : null, s = o ? n.find((e) => e.id === `${o}-header-button`) ?? null : null, c = n.filter((e) => e !== i && e !== s);
|
|
1431
|
+
if (c.length === 0) return 0;
|
|
1432
|
+
let l = i ? i.getBoundingClientRect() : null, u = l && Number.isFinite(l.width) && l.width > 0 && l ? l.left + l.width / 2 : null;
|
|
1433
|
+
return L(c.map((e) => {
|
|
1434
|
+
let t = e.getBoundingClientRect();
|
|
1435
|
+
return t.left + t.width / 2;
|
|
1436
|
+
}), t, u);
|
|
1437
|
+
}
|
|
1438
|
+
reorderPaneInLocationAtIndex(e, t, n) {
|
|
1439
|
+
let r = e.node.panes, i = r.indexOf(t);
|
|
1440
|
+
if (i === -1) return;
|
|
1441
|
+
let a = Math.max(0, Math.min(n, r.length - 1));
|
|
1442
|
+
if (a !== i && (r.splice(i, 1), r.splice(a, 0, t), e.node.activePane = t, e.context === "floating")) {
|
|
1443
|
+
let n = this.floatingLayouts[e.index];
|
|
1444
|
+
n && (n.activePane = t);
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
finalizeDropFromPoint(e, t) {
|
|
1448
|
+
if (!this.dragState) return;
|
|
1449
|
+
let n = this.findStackAtPoint(e, t), r = n ? z(n.dataset.path) : null, i = this.dropJoystick.dataset.visible === "true", a = z(this.dropJoystick.dataset.path), o = this.dropJoystickTarget, s = o ? z(o.dataset.path) : null, c = (i ? a ?? s : null) ?? r, l = this.dropJoystick.dataset.zone, u = this.isDropZone(l) ? l : n ? this.computeDropZone(n, {
|
|
1450
|
+
clientX: e,
|
|
1451
|
+
clientY: t
|
|
1452
|
+
}, null) : null;
|
|
1453
|
+
if (this.dragState && this.dragState.floatingIndex !== null && this.dragState.floatingIndex < 0 && n && c && r && B(r, this.dragState.sourcePath) && (!u || u === "center")) {
|
|
1454
|
+
let t = this.resolveStackLocation(c);
|
|
1455
|
+
if (t) {
|
|
1456
|
+
let r = this.computeHeaderInsertIndex(n, e);
|
|
1457
|
+
this.reorderPaneInLocationAtIndex(t, this.dragState.pane, r), this.renderLayout(), this.dispatchLayoutChanged(), this.dragState.dropHandled = !0;
|
|
1458
|
+
return;
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
c && this.isDropZone(u) && (this.handleDrop(c, u), this.dragState.dropHandled = !0);
|
|
1462
|
+
}
|
|
1463
|
+
clearPendingDragEndTimeout() {
|
|
1464
|
+
if (this.pendingDragEndTimeout !== null) {
|
|
1465
|
+
let e = this.windowRef;
|
|
1466
|
+
e && typeof this.pendingDragEndTimeout == "number" ? e.clearTimeout(this.pendingDragEndTimeout) : globalThis.clearTimeout(this.pendingDragEndTimeout), this.pendingDragEndTimeout = null;
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
scheduleDeferredDragEnd() {
|
|
1470
|
+
if (this.pendingDragEndTimeout !== null) return;
|
|
1471
|
+
let e = () => {
|
|
1472
|
+
this.pendingDragEndTimeout = null, this.hideDropIndicator(), this.dragState && this.endPaneDrag(), this.clearPendingTabDragMetrics();
|
|
1473
|
+
}, t = this.windowRef;
|
|
1474
|
+
this.pendingDragEndTimeout = t ? t.setTimeout(e, 0) : setTimeout(e, 0);
|
|
1475
|
+
}
|
|
1476
|
+
handleDrop(e, t) {
|
|
1477
|
+
if (!this.dragState || !e) return;
|
|
1478
|
+
let { pane: n, sourcePath: r } = this.dragState, i = this.resolveStackLocation(r), a = this.resolveStackLocation(e);
|
|
1479
|
+
if (!a && e.type === "docked" && !this.rootLayout) {
|
|
1480
|
+
if (!i) return;
|
|
1481
|
+
this.removePaneFromLocation(i, n, !0);
|
|
1482
|
+
let e = {
|
|
1483
|
+
kind: "stack",
|
|
1484
|
+
panes: [n],
|
|
1485
|
+
activePane: n
|
|
1486
|
+
};
|
|
1487
|
+
this.rootLayout = e, this.normalizeAllLayouts(), this.renderLayout(), this.dispatchLayoutChanged(), this.dragState && (this.dragState.dropHandled = !0);
|
|
1488
|
+
return;
|
|
1489
|
+
}
|
|
1490
|
+
if (!i || !a) return;
|
|
1491
|
+
if (t === "center" && B(r, e)) {
|
|
1492
|
+
if (!i.node.panes.includes(n)) return;
|
|
1493
|
+
this.reorderPaneInLocation(i, n), this.normalizeAllLayouts(), this.renderLayout(), this.dispatchLayoutChanged(), this.dragState && (this.dragState.dropHandled = !0);
|
|
1494
|
+
return;
|
|
1495
|
+
}
|
|
1496
|
+
if (this.removePaneFromLocation(i, n, !0), t === "center") {
|
|
1497
|
+
this.addPaneToLocation(a, n), this.setActivePaneForLocation(a, n), this.normalizeAllLayouts(), this.renderLayout(), this.dispatchLayoutChanged(), this.dragState && (this.dragState.dropHandled = !0);
|
|
1498
|
+
return;
|
|
1499
|
+
}
|
|
1500
|
+
let o = {
|
|
1501
|
+
kind: "stack",
|
|
1502
|
+
panes: [n],
|
|
1503
|
+
activePane: n
|
|
1504
|
+
};
|
|
1505
|
+
if (a.context === "docked") this.rootLayout = y(this.rootLayout, a.node, o, t);
|
|
1506
|
+
else {
|
|
1507
|
+
let e = this.floatingLayouts[a.index];
|
|
1508
|
+
if (!e) {
|
|
1509
|
+
this.normalizeAllLayouts(), this.renderLayout(), this.dispatchLayoutChanged();
|
|
1510
|
+
return;
|
|
1511
|
+
}
|
|
1512
|
+
e.root = y(e.root, a.node, o, t), e.activePane = n;
|
|
1513
|
+
}
|
|
1514
|
+
this.normalizeAllLayouts(), this.renderLayout(), this.dispatchLayoutChanged(), this.dragState && (this.dragState.dropHandled = !0);
|
|
1515
|
+
}
|
|
1516
|
+
handleFloatingStackDrop(e, t, n) {
|
|
1517
|
+
let r = this.floatingLayouts[e];
|
|
1518
|
+
if (!r || !r.root) return !1;
|
|
1519
|
+
let i = this.resolveStackLocation(t);
|
|
1520
|
+
if (!i && t.type === "docked" && !this.rootLayout) return this.rootLayout = T(r.root), this.removeFloatingAt(e), this.normalizeAllLayouts(), this.renderLayout(), this.dispatchLayoutChanged(), !0;
|
|
1521
|
+
if (!i || i.context === "floating" && i.index === e) return !1;
|
|
1522
|
+
if (n === "center") {
|
|
1523
|
+
let t = S(r.root);
|
|
1524
|
+
if (t.length === 0) return !1;
|
|
1525
|
+
t.forEach((e) => {
|
|
1526
|
+
this.addPaneToLocation(i, e);
|
|
1527
|
+
});
|
|
1528
|
+
let n = r.activePane && t.includes(r.activePane) ? r.activePane : x(r.root) ?? t[0];
|
|
1529
|
+
return n && this.setActivePaneForLocation(i, n), this.removeFloatingAt(e), this.normalizeAllLayouts(), this.renderLayout(), this.dispatchLayoutChanged(), !0;
|
|
1530
|
+
}
|
|
1531
|
+
if (i.context === "floating") {
|
|
1532
|
+
let t = this.floatingLayouts[i.index];
|
|
1533
|
+
return t ? (t.root = y(t.root, i.node, r.root, n), t.activePane = r.activePane ?? x(r.root) ?? void 0, this.removeFloatingAt(e), this.normalizeAllLayouts(), this.renderLayout(), this.dispatchLayoutChanged(), !0) : !1;
|
|
1534
|
+
}
|
|
1535
|
+
return this.rootLayout = y(this.rootLayout, i.node, r.root, n), this.removeFloatingAt(e), this.normalizeAllLayouts(), this.renderLayout(), this.dispatchLayoutChanged(), !0;
|
|
1536
|
+
}
|
|
1537
|
+
computeDropZone(e, t, n) {
|
|
1538
|
+
let r = this.isDropZone(n) ? n : null;
|
|
1539
|
+
if (r) return this.updateDropJoystickActiveZone(r), r;
|
|
1540
|
+
let i = t && Number.isFinite(t.clientX) && Number.isFinite(t.clientY) ? this.findDropZoneByPoint(t.clientX, t.clientY) : null;
|
|
1541
|
+
if (i) return this.updateDropJoystickActiveZone(i), i;
|
|
1542
|
+
if (this.dropJoystickTarget === e) {
|
|
1543
|
+
let e = this.dropJoystick.dataset.zone;
|
|
1544
|
+
if (this.isDropZone(e)) return this.updateDropJoystickActiveZone(e), e;
|
|
1545
|
+
this.updateDropJoystickActiveZone(null);
|
|
1546
|
+
}
|
|
1547
|
+
return null;
|
|
1548
|
+
}
|
|
1549
|
+
extractDropZoneFromEvent(e) {
|
|
1550
|
+
if (!e) return null;
|
|
1551
|
+
if (typeof e.composedPath == "function") {
|
|
1552
|
+
let t = e.composedPath(), n = this.findDropZoneInTargets(t);
|
|
1553
|
+
if (n) return n;
|
|
1554
|
+
}
|
|
1555
|
+
if ("clientX" in e && "clientY" in e) {
|
|
1556
|
+
let t = e, n = this.findDropZoneByPoint(t.clientX, t.clientY);
|
|
1557
|
+
if (n) return n;
|
|
1558
|
+
}
|
|
1559
|
+
return null;
|
|
1560
|
+
}
|
|
1561
|
+
handleDragPointerUpCommon() {
|
|
1562
|
+
this.dragState ? this.scheduleDeferredDragEnd() : this.stopDragPointerTracking();
|
|
1563
|
+
}
|
|
1564
|
+
findDropZoneInTargets(e) {
|
|
1565
|
+
for (let t of e) if (t instanceof HTMLElement && t.classList.contains("dock-drop-joystick__button")) {
|
|
1566
|
+
let e = t.dataset?.zone;
|
|
1567
|
+
if (this.isDropZone(e)) return e;
|
|
1568
|
+
}
|
|
1569
|
+
return null;
|
|
1570
|
+
}
|
|
1571
|
+
findDropZoneByPoint(e, t) {
|
|
1572
|
+
if (!this.dropJoystickButtons || this.dropJoystick.dataset.visible !== "true" || !this.dropJoystickTarget) return null;
|
|
1573
|
+
let n = this.elementsAt(e, t).filter((e) => e instanceof HTMLElement && this.dropJoystickButtons.includes(e) && e.dataset.hidden !== "true");
|
|
1574
|
+
return this.findDropZoneInTargets(n);
|
|
1575
|
+
}
|
|
1576
|
+
updateDropJoystickActiveZone(e) {
|
|
1577
|
+
let t = this.dropJoystick.dataset.visible === "true" ? this.dropJoystick.dataset.zone : void 0, n = e ?? (this.isDropZone(t) ? t : null);
|
|
1578
|
+
this.dropJoystickButtons.forEach((e) => {
|
|
1579
|
+
n !== null && e.dataset.zone === n ? e.dataset.active = "true" : delete e.dataset.active;
|
|
1580
|
+
}), n ? this.dropJoystick.dataset.zone = n : delete this.dropJoystick.dataset.zone;
|
|
1581
|
+
}
|
|
1582
|
+
isDropZone(e) {
|
|
1583
|
+
return e === "left" || e === "right" || e === "top" || e === "bottom" || e === "center";
|
|
1584
|
+
}
|
|
1585
|
+
showDropIndicator(e, t) {
|
|
1586
|
+
let n = z(e.dataset.path), r = this.dragState?.sourcePath ?? null;
|
|
1587
|
+
if (n && r && H(n, r)) return;
|
|
1588
|
+
let i = e.getBoundingClientRect(), a = this.getBoundingClientRect(), o = this.dropIndicator, s = this.dropJoystick;
|
|
1589
|
+
s.hidden = !1;
|
|
1590
|
+
let c = z(e.dataset.path), u = 100;
|
|
1591
|
+
c && c.type === "floating" && (u = l(this.floatingLayouts[c.index], c.index) + 100), o.style.zIndex = String(u), s.style.zIndex = String(u + 1);
|
|
1592
|
+
let d = i.left - a.left, f = i.top - a.top, p = i.width, m = i.height, h = .5;
|
|
1593
|
+
if (t) {
|
|
1594
|
+
switch (t) {
|
|
1595
|
+
case "left":
|
|
1596
|
+
p = i.width * h;
|
|
1597
|
+
break;
|
|
1598
|
+
case "right":
|
|
1599
|
+
p = i.width * h, d += i.width * .5;
|
|
1600
|
+
break;
|
|
1601
|
+
case "top":
|
|
1602
|
+
m = i.height * h;
|
|
1603
|
+
break;
|
|
1604
|
+
case "bottom": m = i.height * h, f += i.height * .5;
|
|
1605
|
+
}
|
|
1606
|
+
o.style.left = `${d}px`, o.style.top = `${f}px`, o.style.width = `${p}px`, o.style.height = `${m}px`, o.dataset.visible = "true";
|
|
1607
|
+
} else o.dataset.visible = "false";
|
|
1608
|
+
s.style.left = `${i.left - a.left + i.width / 2}px`, s.style.top = `${i.top - a.top + i.height / 2}px`, s.dataset.visible = "true", this.dropJoystick.style.display = "grid", s.dataset.path = e.dataset.path ?? "";
|
|
1609
|
+
let g = this.dropJoystickTarget && this.dropJoystickTarget !== e;
|
|
1610
|
+
this.dropJoystickTarget = e, g && delete this.dropJoystick.dataset.zone;
|
|
1611
|
+
let _ = !this.rootLayout && (e === this.dockedEl || n && n.type === "docked" && n.segments.length === 0), v = Array.from(this.dropJoystick.querySelectorAll(".dock-drop-joystick__spacer"));
|
|
1612
|
+
_ ? (v.forEach((e) => {
|
|
1613
|
+
e.style.display = "";
|
|
1614
|
+
}), this.dropJoystickButtons.forEach((e) => {
|
|
1615
|
+
e.dataset.zone === "center" ? (e.style.visibility = "", e.style.pointerEvents = "", delete e.dataset.hidden, e.style.display = "") : (e.style.visibility = "hidden", e.style.pointerEvents = "none", e.dataset.hidden = "true", e.style.display = "");
|
|
1616
|
+
}), this.dropJoystick.style.gridTemplateColumns = "", this.dropJoystick.style.gridTemplateRows = "") : (this.dropJoystickButtons.forEach((e) => {
|
|
1617
|
+
e.style.visibility = "", e.style.pointerEvents = "", delete e.dataset.hidden, e.style.display = "";
|
|
1618
|
+
}), v.forEach((e) => e.style.display = ""), this.dropJoystick.style.gridTemplateColumns = "", this.dropJoystick.style.gridTemplateRows = ""), this.updateDropJoystickActiveZone(t);
|
|
1619
|
+
}
|
|
1620
|
+
hideDropIndicator() {
|
|
1621
|
+
this.dropIndicator.dataset.visible = "false", this.dropJoystick.dataset.visible = "false", this.dropJoystick.style.display = "none", delete this.dropJoystick.dataset.path, this.dropJoystickTarget = null, this.updateDropJoystickActiveZone(null), this.dropJoystickButtons.forEach((e) => {
|
|
1622
|
+
e.style.display = "", e.style.visibility = "", e.style.pointerEvents = "", delete e.dataset.hidden;
|
|
1623
|
+
}), Array.from(this.dropJoystick.querySelectorAll(".dock-drop-joystick__spacer")).forEach((e) => e.style.display = ""), this.dropJoystick.style.gridTemplateColumns = "", this.dropJoystick.style.gridTemplateRows = "";
|
|
1624
|
+
}
|
|
1625
|
+
elementsAt(e, t) {
|
|
1626
|
+
return this.shadowRoot?.elementsFromPoint(e, t) ?? [];
|
|
1627
|
+
}
|
|
1628
|
+
findStackAtPoint(e, t) {
|
|
1629
|
+
let n = this.elementsAt(e, t);
|
|
1630
|
+
return this.findStackInTargets(n) || (!this.rootLayout && n.includes(this.dockedEl) ? this.dockedEl : null);
|
|
1631
|
+
}
|
|
1632
|
+
findStackInTargets(e) {
|
|
1633
|
+
for (let t of e) if (t instanceof HTMLElement) {
|
|
1634
|
+
if (t.classList.contains("dock-stack")) return t;
|
|
1635
|
+
if (this.dropJoystickTarget && (t.classList.contains("dock-drop-joystick") || t.classList.contains("dock-drop-joystick__button") || t.classList.contains("dock-drop-joystick__spacer"))) return this.dropJoystickTarget;
|
|
1636
|
+
}
|
|
1637
|
+
return null;
|
|
1638
|
+
}
|
|
1639
|
+
activatePane(e, t, n) {
|
|
1640
|
+
if (e.dataset.activePane = t, e.tagName === "MP-TAB-CONTROL") {
|
|
1641
|
+
let n = this.stackChildForPane(e, "dock-tab", t)?.dataset.tabId;
|
|
1642
|
+
n && e.setAttribute("active-tab", n);
|
|
1643
|
+
}
|
|
1644
|
+
let r = this.resolveStackLocation(n);
|
|
1645
|
+
if (r) {
|
|
1646
|
+
if (r.node.activePane = t, n.type === "floating") {
|
|
1647
|
+
let e = this.floatingLayouts[n.index];
|
|
1648
|
+
e && (e.activePane = t), this.updateFloatingWindowTitle(n.index);
|
|
1649
|
+
}
|
|
1650
|
+
this.dispatchLayoutChanged();
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
splitterLayerKey(e) {
|
|
1654
|
+
let t = e.closest(".dock-floating");
|
|
1655
|
+
return t ? t.dataset.path ?? "f:?" : "d";
|
|
1656
|
+
}
|
|
1657
|
+
resolveStackLocation(e) {
|
|
1658
|
+
if (e.type === "floating") {
|
|
1659
|
+
let t = this.floatingLayouts[e.index];
|
|
1660
|
+
if (!t || !t.root) return null;
|
|
1661
|
+
let n = g(t.root, e.segments);
|
|
1662
|
+
return !n || n.kind !== "stack" ? null : {
|
|
1663
|
+
context: "floating",
|
|
1664
|
+
index: e.index,
|
|
1665
|
+
path: [...e.segments],
|
|
1666
|
+
node: n
|
|
1667
|
+
};
|
|
1668
|
+
}
|
|
1669
|
+
let t = g(this.rootLayout, e.segments);
|
|
1670
|
+
return !t || t.kind !== "stack" ? null : {
|
|
1671
|
+
context: "docked",
|
|
1672
|
+
path: [...e.segments],
|
|
1673
|
+
node: t
|
|
1674
|
+
};
|
|
1675
|
+
}
|
|
1676
|
+
removePaneFromLocation(e, t, n = !1) {
|
|
1677
|
+
if (e.context === "docked") {
|
|
1678
|
+
let r = C(e.node, t);
|
|
1679
|
+
return r && !n && this.normalizeAllLayouts(), r;
|
|
1680
|
+
}
|
|
1681
|
+
return this.removePaneFromFloating(e.index, e.path, t, n);
|
|
1682
|
+
}
|
|
1683
|
+
addPaneToLocation(e, t) {
|
|
1684
|
+
let n = e.node.panes, r = n.indexOf(t);
|
|
1685
|
+
r !== -1 && n.splice(r, 1), n.push(t);
|
|
1686
|
+
}
|
|
1687
|
+
setActivePaneForLocation(e, t) {
|
|
1688
|
+
if (e.node.activePane = t, e.context === "floating") {
|
|
1689
|
+
let n = this.floatingLayouts[e.index];
|
|
1690
|
+
n && (n.activePane = t);
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
reorderPaneInLocation(e, t) {
|
|
1694
|
+
let n = e.node.panes, r = n.indexOf(t);
|
|
1695
|
+
if (r !== -1 && (n.splice(r, 1), n.push(t), e.node.activePane = t, e.context === "floating")) {
|
|
1696
|
+
let n = this.floatingLayouts[e.index];
|
|
1697
|
+
n && (n.activePane = t);
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
removeFloatingAt(e) {
|
|
1701
|
+
e < 0 || e >= this.floatingLayouts.length || this.floatingLayouts.splice(e, 1);
|
|
1702
|
+
}
|
|
1703
|
+
onRootKeyDown(e) {
|
|
1704
|
+
if (this.paneMoveMode) {
|
|
1705
|
+
this.handlePaneMoveModeKey(e);
|
|
1706
|
+
return;
|
|
1707
|
+
}
|
|
1708
|
+
if (e.altKey || e.ctrlKey || e.metaKey || e.key !== "m" && e.key !== "M") return;
|
|
1709
|
+
let t = this.findFocusedPaneOrigin();
|
|
1710
|
+
if (!t) return;
|
|
1711
|
+
e.preventDefault(), e.stopPropagation(), this.paneMoveMode = t, this.paneMoveCandidateIndex = null;
|
|
1712
|
+
let n = this.titles[t.paneName] ?? t.paneName;
|
|
1713
|
+
this.liveAnnouncer.announce(`Move mode for pane ${n}. Press T, R, B, or L to dock to top, right, bottom, or left of the current stack, F to float, arrow keys to cycle drop targets, Enter to commit, Escape to cancel.`);
|
|
1714
|
+
}
|
|
1715
|
+
onRootFocusOut(e) {
|
|
1716
|
+
if (!this.paneMoveMode) return;
|
|
1717
|
+
let t = e.relatedTarget instanceof Node ? e.relatedTarget : null;
|
|
1718
|
+
t && this.isWithinDock(t) || (this.clearPaneMoveState(), this.liveAnnouncer.announce("Move cancelled."));
|
|
1719
|
+
}
|
|
1720
|
+
isWithinDock(e) {
|
|
1721
|
+
for (let t = e; t;) {
|
|
1722
|
+
if (t === this) return !0;
|
|
1723
|
+
t = t instanceof ShadowRoot ? t.host : t.parentNode;
|
|
1724
|
+
}
|
|
1725
|
+
return !1;
|
|
1726
|
+
}
|
|
1727
|
+
handlePaneMoveModeKey(e) {
|
|
1728
|
+
if (e.key === "Escape") {
|
|
1729
|
+
e.preventDefault(), e.stopPropagation(), this.clearPaneMoveState(), this.liveAnnouncer.announce("Move cancelled.");
|
|
1730
|
+
return;
|
|
1731
|
+
}
|
|
1732
|
+
let t = e.composedPath()[0];
|
|
1733
|
+
if (t instanceof HTMLElement && (t.isContentEditable || [
|
|
1734
|
+
"INPUT",
|
|
1735
|
+
"TEXTAREA",
|
|
1736
|
+
"SELECT"
|
|
1737
|
+
].includes(t.tagName))) return;
|
|
1738
|
+
let n = {
|
|
1739
|
+
ArrowRight: 1,
|
|
1740
|
+
ArrowDown: 1,
|
|
1741
|
+
ArrowLeft: -1,
|
|
1742
|
+
ArrowUp: -1
|
|
1743
|
+
}[e.key];
|
|
1744
|
+
if (n) {
|
|
1745
|
+
e.preventDefault(), e.stopPropagation(), this.cyclePaneMoveCandidate(n);
|
|
1746
|
+
return;
|
|
1747
|
+
}
|
|
1748
|
+
if (e.key === "Enter") {
|
|
1749
|
+
if (this.paneMoveCandidateIndex === null) return;
|
|
1750
|
+
e.preventDefault(), e.stopPropagation(), this.commitHighlightedPaneMoveCandidate();
|
|
1751
|
+
return;
|
|
1752
|
+
}
|
|
1753
|
+
let r = {
|
|
1754
|
+
t: "top",
|
|
1755
|
+
r: "right",
|
|
1756
|
+
b: "bottom",
|
|
1757
|
+
l: "left",
|
|
1758
|
+
f: "float"
|
|
1759
|
+
}[e.key.toLowerCase()];
|
|
1760
|
+
r && (e.preventDefault(), e.stopPropagation(), r === "float" ? this.commitPaneMoveAsFloat() : this.commitPaneMoveToZone(r));
|
|
1761
|
+
}
|
|
1762
|
+
buildPaneMoveCandidates() {
|
|
1763
|
+
let e = this.paneMoveMode ? R(this.paneMoveMode.sourcePath) : null, t = [];
|
|
1764
|
+
return b(this.rootLayout, (n, r) => {
|
|
1765
|
+
let i = R({
|
|
1766
|
+
type: "docked",
|
|
1767
|
+
segments: r
|
|
1768
|
+
});
|
|
1769
|
+
i !== e && t.push({
|
|
1770
|
+
pathStr: i,
|
|
1771
|
+
targetTitles: n.panes.map((e) => this.titles[e] ?? e).join(", ")
|
|
1772
|
+
});
|
|
1773
|
+
}), [...t.flatMap(({ pathStr: e, targetTitles: t }) => i.PANE_MOVE_ZONE_ORDER.map((n) => ({
|
|
1774
|
+
pathStr: e,
|
|
1775
|
+
zone: n,
|
|
1776
|
+
targetTitles: t
|
|
1777
|
+
}))), {
|
|
1778
|
+
pathStr: null,
|
|
1779
|
+
zone: "float",
|
|
1780
|
+
targetTitles: ""
|
|
1781
|
+
}];
|
|
1782
|
+
}
|
|
1783
|
+
cyclePaneMoveCandidate(e) {
|
|
1784
|
+
let t = this.buildPaneMoveCandidates();
|
|
1785
|
+
if (t.length === 0) return;
|
|
1786
|
+
let n = this.paneMoveCandidateIndex, r = n === null ? e > 0 ? 0 : t.length - 1 : (n + e + t.length) % t.length;
|
|
1787
|
+
this.paneMoveCandidateIndex = r;
|
|
1788
|
+
let i = t[r];
|
|
1789
|
+
this.highlightPaneMoveCandidate(i);
|
|
1790
|
+
let a = i.zone === "float" ? "Float" : `${i.zone[0].toUpperCase()}${i.zone.slice(1)} of ${i.targetTitles}`;
|
|
1791
|
+
this.liveAnnouncer.announce(`${a}, option ${r + 1} of ${t.length}.`);
|
|
1792
|
+
}
|
|
1793
|
+
highlightPaneMoveCandidate(e) {
|
|
1794
|
+
if (this.hideDropIndicator(), e.zone === "float" || !e.pathStr) return;
|
|
1795
|
+
let t = this.shadowRoot?.querySelector(`.dock-stack[data-path="${e.pathStr}"]`);
|
|
1796
|
+
if (!t) return;
|
|
1797
|
+
let n = t.getBoundingClientRect();
|
|
1798
|
+
n.width !== 0 && n.height !== 0 && this.showDropIndicator(t, e.zone);
|
|
1799
|
+
}
|
|
1800
|
+
commitHighlightedPaneMoveCandidate() {
|
|
1801
|
+
let e = this.paneMoveCandidateIndex;
|
|
1802
|
+
if (e === null) return;
|
|
1803
|
+
let t = this.buildPaneMoveCandidates()[e];
|
|
1804
|
+
t ? t.zone === "float" ? this.commitPaneMoveAsFloat() : this.commitPaneMoveToZone(t.zone, z(t.pathStr)) : this.clearPaneMoveState();
|
|
1805
|
+
}
|
|
1806
|
+
clearPaneMoveState() {
|
|
1807
|
+
this.paneMoveMode = null, this.paneMoveCandidateIndex !== null && (this.paneMoveCandidateIndex = null, this.hideDropIndicator());
|
|
1808
|
+
}
|
|
1809
|
+
findFocusedPaneOrigin() {
|
|
1810
|
+
if (!this.shadowRoot) return null;
|
|
1811
|
+
let e = this.shadowRoot.activeElement;
|
|
1812
|
+
for (; e && e.shadowRoot && e.shadowRoot.activeElement;) e = e.shadowRoot.activeElement;
|
|
1813
|
+
if (!e || e.getAttribute("role") !== "tab") return null;
|
|
1814
|
+
let t = e.id.replace(/-header-button$/, ""), n = this.shadowRoot.querySelector(`.dock-tab[data-tab-id="${t}"]`);
|
|
1815
|
+
if (!n) return null;
|
|
1816
|
+
let r = n.closest(".dock-stack");
|
|
1817
|
+
if (!r) return null;
|
|
1818
|
+
let i = z(r.dataset.path);
|
|
1819
|
+
return i ? {
|
|
1820
|
+
paneName: n.dataset.pane,
|
|
1821
|
+
sourcePath: i
|
|
1822
|
+
} : null;
|
|
1823
|
+
}
|
|
1824
|
+
synthesiseDragStateForKeyboardMove() {
|
|
1825
|
+
this.paneMoveMode && (this.dragState = {
|
|
1826
|
+
pane: this.paneMoveMode.paneName,
|
|
1827
|
+
sourcePath: V(this.paneMoveMode.sourcePath),
|
|
1828
|
+
floatingIndex: this.paneMoveMode.sourcePath.type === "floating" ? this.paneMoveMode.sourcePath.index : null,
|
|
1829
|
+
pointerOffsetX: 0,
|
|
1830
|
+
pointerOffsetY: 0,
|
|
1831
|
+
dropHandled: !1,
|
|
1832
|
+
sourceStackEl: null,
|
|
1833
|
+
sourceHeaderBounds: null,
|
|
1834
|
+
startClientX: 0,
|
|
1835
|
+
startClientY: 0
|
|
1836
|
+
});
|
|
1837
|
+
}
|
|
1838
|
+
commitPaneMoveToZone(e, t) {
|
|
1839
|
+
if (!this.paneMoveMode) return;
|
|
1840
|
+
let n = this.paneMoveMode;
|
|
1841
|
+
this.synthesiseDragStateForKeyboardMove(), this.handleDrop(t ?? n.sourcePath, e);
|
|
1842
|
+
let r = this.dragState?.dropHandled === !0;
|
|
1843
|
+
this.dragState = null, this.clearPaneMoveState();
|
|
1844
|
+
let i = this.titles[n.paneName] ?? n.paneName;
|
|
1845
|
+
this.liveAnnouncer.announce(r ? `Pane ${i} docked to ${e}.` : `Move failed. Pane ${i} was not moved.`);
|
|
1846
|
+
}
|
|
1847
|
+
commitPaneMoveAsFloat() {
|
|
1848
|
+
if (!this.paneMoveMode) return;
|
|
1849
|
+
let e = this.paneMoveMode, t = this.resolveStackLocation(e.sourcePath);
|
|
1850
|
+
if (!t) {
|
|
1851
|
+
this.clearPaneMoveState();
|
|
1852
|
+
return;
|
|
1853
|
+
}
|
|
1854
|
+
this.removePaneFromLocation(t, e.paneName, !0);
|
|
1855
|
+
let n = {
|
|
1856
|
+
bounds: {
|
|
1857
|
+
left: 100 + this.floatingLayouts.length * 24,
|
|
1858
|
+
top: 100 + this.floatingLayouts.length * 24,
|
|
1859
|
+
width: 320,
|
|
1860
|
+
height: 200
|
|
1861
|
+
},
|
|
1862
|
+
root: {
|
|
1863
|
+
kind: "stack",
|
|
1864
|
+
panes: [e.paneName],
|
|
1865
|
+
activePane: e.paneName
|
|
1866
|
+
},
|
|
1867
|
+
activePane: e.paneName
|
|
1868
|
+
};
|
|
1869
|
+
this.floatingLayouts.push(n), this.normalizeAllLayouts(), this.renderLayout(), this.dispatchLayoutChanged(), this.clearPaneMoveState();
|
|
1870
|
+
let r = this.titles[e.paneName] ?? e.paneName;
|
|
1871
|
+
this.liveAnnouncer.announce(`Pane ${r} torn off into a floating window.`);
|
|
1872
|
+
}
|
|
1873
|
+
closeFloatingPane(e) {
|
|
1874
|
+
let t = this.floatingLayouts[e];
|
|
1875
|
+
if (!t) return;
|
|
1876
|
+
let n = this.getFloatingWindowTitle(t);
|
|
1877
|
+
this.removeFloatingAt(e), this.renderLayout(), this.dispatchLayoutChanged(), this.liveAnnouncer.announce(`Closed floating pane ${n}.`);
|
|
1878
|
+
}
|
|
1879
|
+
removePaneFromFloating(e, t, n, r = !1) {
|
|
1880
|
+
let i = this.floatingLayouts[e];
|
|
1881
|
+
if (!i || !i.root) return !1;
|
|
1882
|
+
let a = g(i.root, t);
|
|
1883
|
+
if (!a || a.kind !== "stack") return !1;
|
|
1884
|
+
if (a.panes = a.panes.filter((e) => e !== n), a.panes.includes(a.activePane ?? "") || (a.panes.length > 0 ? a.activePane = a.panes[0] : delete a.activePane), i.activePane === n) {
|
|
1885
|
+
let e = x(i.root);
|
|
1886
|
+
e ? i.activePane = e : delete i.activePane;
|
|
1887
|
+
}
|
|
1888
|
+
return a.panes.length > 0 ? !1 : (r || this.normalizeAllLayouts(), !0);
|
|
1889
|
+
}
|
|
1890
|
+
normalizeAllLayouts() {
|
|
1891
|
+
this.rootLayout = w(this.rootLayout), this.floatingLayouts = this.floatingLayouts.map((e) => {
|
|
1892
|
+
if (e.root = w(e.root), !e.root) return null;
|
|
1893
|
+
let t = S(e.root);
|
|
1894
|
+
if (!e.activePane || !t.includes(e.activePane)) {
|
|
1895
|
+
let t = x(e.root);
|
|
1896
|
+
t ? e.activePane = t : delete e.activePane;
|
|
1897
|
+
}
|
|
1898
|
+
return e;
|
|
1899
|
+
}).filter((e) => e !== null);
|
|
1900
|
+
}
|
|
1901
|
+
verifyProjectionSlots() {
|
|
1902
|
+
if (!this.debugLayoutIntegrity) return;
|
|
1903
|
+
let e = this.shadowRoot;
|
|
1904
|
+
if (!e) return;
|
|
1905
|
+
let t = new Set(Array.from(e.querySelectorAll("slot")).map((e) => e.getAttribute("name")).filter((e) => !!e)), n = [...S(this.rootLayout), ...this.floatingLayouts.flatMap((e) => S(e.root))].find((e) => !t.has(e));
|
|
1906
|
+
if (n) throw Error(`mint-dock-manager: pane "${n}" has no projection slot in the shadow DOM. The layout tree got into a state the renderer can't display — likely a missing normalize() call or a render bug.`);
|
|
1907
|
+
}
|
|
1908
|
+
dispatchLayoutChanged() {
|
|
1909
|
+
this.dispatchEvent(new CustomEvent("dock-layout-changed", {
|
|
1910
|
+
detail: this.snapshot,
|
|
1911
|
+
bubbles: !0,
|
|
1912
|
+
composed: !0
|
|
1913
|
+
}));
|
|
1914
|
+
}
|
|
1915
|
+
cloneFloatingArray(e) {
|
|
1916
|
+
return JSON.parse(JSON.stringify(e));
|
|
1917
|
+
}
|
|
1918
|
+
}, W = "mint-dock-manager";
|
|
1919
|
+
typeof customElements < "u" && !customElements.get(W) && customElements.define(W, U);
|
|
1920
|
+
//#endregion
|
|
1921
|
+
export { U as MintDockManagerElement };
|