@mhmo91/schmancy 0.10.25 → 0.10.26
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/dist/agent/{overlay.confirm-body-DozUyDYx.js → overlay.confirm-body-DJrL6tio.js} +1 -1
- package/dist/agent/{overlay.confirm-body-DozUyDYx.js.map → overlay.confirm-body-DJrL6tio.js.map} +1 -1
- package/dist/agent/schmancy.agent.js +1779 -1792
- package/dist/agent/schmancy.agent.js.map +1 -1
- package/dist/{area-DrVE5pXW.cjs → area-DkvO_oiO.cjs} +1 -1
- package/dist/{area-DrVE5pXW.cjs.map → area-DkvO_oiO.cjs.map} +1 -1
- package/dist/{area-1EG1LrkX.js → area-fC1_kvAW.js} +1 -1
- package/dist/{area-1EG1LrkX.js.map → area-fC1_kvAW.js.map} +1 -1
- package/dist/area.cjs +1 -1
- package/dist/area.js +1 -1
- package/dist/{autocomplete-6pdZxEab.cjs → autocomplete-Aa2IstyX.cjs} +1 -1
- package/dist/{autocomplete-6pdZxEab.cjs.map → autocomplete-Aa2IstyX.cjs.map} +1 -1
- package/dist/{autocomplete-nrIcCilw.js → autocomplete-Hb-C11a3.js} +2 -2
- package/dist/{autocomplete-nrIcCilw.js.map → autocomplete-Hb-C11a3.js.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.js +2 -2
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/boat-BEq-AHmL.cjs +85 -0
- package/dist/boat-BEq-AHmL.cjs.map +1 -0
- package/dist/{boat--fLgbDAE.js → boat-BW6aRcdY.js} +27 -21
- package/dist/boat-BW6aRcdY.js.map +1 -0
- package/dist/boat.cjs +1 -1
- package/dist/boat.js +1 -1
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/{busy-DVCIxBVf.cjs → busy-CKpIblIO.cjs} +1 -1
- package/dist/{busy-DVCIxBVf.cjs.map → busy-CKpIblIO.cjs.map} +1 -1
- package/dist/{busy-DshZcVZ4.js → busy-D-ucQFSB.js} +1 -1
- package/dist/{busy-DshZcVZ4.js.map → busy-D-ucQFSB.js.map} +1 -1
- package/dist/busy.cjs +1 -1
- package/dist/busy.js +1 -1
- package/dist/{button-D9UJ7I6Z.js → button-BU-X0a0S.js} +1 -1
- package/dist/{button-D9UJ7I6Z.js.map → button-BU-X0a0S.js.map} +1 -1
- package/dist/{button-JrTMzwHY.cjs → button-HzLpB3NP.cjs} +1 -1
- package/dist/{button-JrTMzwHY.cjs.map → button-HzLpB3NP.cjs.map} +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/{card-CTotavhH.cjs → card-CcrUlgd3.cjs} +1 -1
- package/dist/{card-CTotavhH.cjs.map → card-CcrUlgd3.cjs.map} +1 -1
- package/dist/{card-BvCFuX3J.js → card-ueXBeJ6q.js} +1 -1
- package/dist/{card-BvCFuX3J.js.map → card-ueXBeJ6q.js.map} +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/{checkbox-GPsdCUbs.js → checkbox-CW1kk4Tu.js} +1 -1
- package/dist/{checkbox-GPsdCUbs.js.map → checkbox-CW1kk4Tu.js.map} +1 -1
- package/dist/{checkbox-By4fFmjt.cjs → checkbox-qsp-I5C6.cjs} +1 -1
- package/dist/{checkbox-By4fFmjt.cjs.map → checkbox-qsp-I5C6.cjs.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-27umqnat.js → chips-C_F6-gfe.js} +2 -2
- package/dist/{chips-27umqnat.js.map → chips-C_F6-gfe.js.map} +1 -1
- package/dist/{chips-BZf9sGA8.cjs → chips-Dluk6RV4.cjs} +1 -1
- package/dist/{chips-BZf9sGA8.cjs.map → chips-Dluk6RV4.cjs.map} +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +2 -2
- package/dist/connectivity.cjs +1 -1
- package/dist/connectivity.js +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/{date-range-wDVHcr0u.js → date-range-ASZ8h_Il.js} +2 -2
- package/dist/{date-range-wDVHcr0u.js.map → date-range-ASZ8h_Il.js.map} +1 -1
- package/dist/{date-range-BJnLWCRF.cjs → date-range-BFOqXAI2.cjs} +1 -1
- package/dist/{date-range-BJnLWCRF.cjs.map → date-range-BFOqXAI2.cjs.map} +1 -1
- package/dist/{date-range-inline-B6uKUliV.cjs → date-range-inline-BNmNOpL0.cjs} +1 -1
- package/dist/{date-range-inline-B6uKUliV.cjs.map → date-range-inline-BNmNOpL0.cjs.map} +1 -1
- package/dist/{date-range-inline-BNbbRfIA.js → date-range-inline-DHrgolLn.js} +1 -1
- package/dist/{date-range-inline-BNbbRfIA.js.map → date-range-inline-DHrgolLn.js.map} +1 -1
- package/dist/date-range-inline.cjs +1 -1
- package/dist/date-range-inline.js +1 -1
- package/dist/date-range.cjs +1 -1
- package/dist/date-range.js +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/{details-Ckxpwacj.js → details-B9RgRw6c.js} +1 -1
- package/dist/{details-Ckxpwacj.js.map → details-B9RgRw6c.js.map} +1 -1
- package/dist/{details-DNrWIes6.cjs → details-Bx9c4XQR.cjs} +1 -1
- package/dist/{details-DNrWIes6.cjs.map → details-Bx9c4XQR.cjs.map} +1 -1
- package/dist/details.cjs +1 -1
- package/dist/details.js +1 -1
- package/dist/{directives-F15SJZUR.cjs → directives-Dq0zi2KR.cjs} +13 -11
- package/dist/{directives-F15SJZUR.cjs.map → directives-Dq0zi2KR.cjs.map} +1 -1
- package/dist/{directives-BBMqe8x3.js → directives-sWKTEJDb.js} +27 -46
- package/dist/{directives-BBMqe8x3.js.map → directives-sWKTEJDb.js.map} +1 -1
- package/dist/directives.cjs +1 -1
- package/dist/directives.js +1 -1
- package/dist/{divider-BzcZGo4S.js → divider-C7BtzDcK.js} +1 -1
- package/dist/{divider-BzcZGo4S.js.map → divider-C7BtzDcK.js.map} +1 -1
- package/dist/{divider-Cde33ivs.cjs → divider-DH0BvTOv.cjs} +1 -1
- package/dist/{divider-Cde33ivs.cjs.map → divider-DH0BvTOv.cjs.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{expand-Db4V0jj-.cjs → expand-CPMF44eL.cjs} +1 -1
- package/dist/{expand-Db4V0jj-.cjs.map → expand-CPMF44eL.cjs.map} +1 -1
- package/dist/{expand-DI144OzN.js → expand-DcMx9dHY.js} +2 -2
- package/dist/{expand-DI144OzN.js.map → expand-DcMx9dHY.js.map} +1 -1
- package/dist/expand.cjs +1 -1
- package/dist/expand.js +1 -1
- package/dist/{float--RScf9BZ.cjs → float-CgBN4H3g.cjs} +1 -1
- package/dist/{float--RScf9BZ.cjs.map → float-CgBN4H3g.cjs.map} +1 -1
- package/dist/{float-DIyzy1c2.js → float-DkUw5TN4.js} +1 -1
- package/dist/{float-DIyzy1c2.js.map → float-DkUw5TN4.js.map} +1 -1
- package/dist/float.cjs +1 -1
- package/dist/float.js +1 -1
- package/dist/{form-DWNpOsIU.cjs → form-DxApnyVx.cjs} +1 -1
- package/dist/{form-DWNpOsIU.cjs.map → form-DxApnyVx.cjs.map} +1 -1
- package/dist/{form-RtXH8UHQ.js → form-kSgJf_h4.js} +8 -8
- package/dist/{form-RtXH8UHQ.js.map → form-kSgJf_h4.js.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +6 -6
- package/dist/handover/agent-runtime-followups.md +1 -1
- package/dist/handover/agent-runtime-v1.md +3 -3
- package/dist/{icons-bNxlWLlk.cjs → icons-3F1nQAn_.cjs} +1 -1
- package/dist/{icons-bNxlWLlk.cjs.map → icons-3F1nQAn_.cjs.map} +1 -1
- package/dist/{icons-DXanGDZ_.js → icons-DsfpmrVO.js} +1 -1
- package/dist/{icons-DXanGDZ_.js.map → icons-DsfpmrVO.js.map} +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +1 -1
- package/dist/{iframe-BlHK0cjy.js → iframe-KrV4Cak-.js} +1 -1
- package/dist/{iframe-BlHK0cjy.js.map → iframe-KrV4Cak-.js.map} +1 -1
- package/dist/{iframe-B1XWRaLC.cjs → iframe-sTXBw6zB.cjs} +1 -1
- package/dist/{iframe-B1XWRaLC.cjs.map → iframe-sTXBw6zB.cjs.map} +1 -1
- package/dist/iframe.cjs +1 -1
- package/dist/iframe.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +28 -28
- package/dist/{input-C-_XU9AX.cjs → input-DMoggdSN.cjs} +1 -1
- package/dist/{input-C-_XU9AX.cjs.map → input-DMoggdSN.cjs.map} +1 -1
- package/dist/{input-chip-5aYnuRZ_.cjs → input-chip-B1iNQW2m.cjs} +1 -1
- package/dist/{input-chip-5aYnuRZ_.cjs.map → input-chip-B1iNQW2m.cjs.map} +1 -1
- package/dist/{input-chip-l--zCMGR.js → input-chip-DHbfUatc.js} +1 -1
- package/dist/{input-chip-l--zCMGR.js.map → input-chip-DHbfUatc.js.map} +1 -1
- package/dist/{input-CiGa8Dkl.js → input-zj3eaZM_.js} +1 -1
- package/dist/{input-CiGa8Dkl.js.map → input-zj3eaZM_.js.map} +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/json.cjs +1 -1
- package/dist/json.js +2 -2
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.js +1 -1
- package/dist/{lightbox-CfRDkeeb.cjs → lightbox-86F2RgXy.cjs} +1 -1
- package/dist/{lightbox-CfRDkeeb.cjs.map → lightbox-86F2RgXy.cjs.map} +1 -1
- package/dist/{lightbox-D9oiu1Nv.js → lightbox-CAcXlJlv.js} +1 -1
- package/dist/{lightbox-D9oiu1Nv.js.map → lightbox-CAcXlJlv.js.map} +1 -1
- package/dist/lightbox.cjs +1 -1
- package/dist/lightbox.js +1 -1
- package/dist/{list-BOlRka4v.js → list-BIjJ6T1c.js} +1 -1
- package/dist/{list-BOlRka4v.js.map → list-BIjJ6T1c.js.map} +1 -1
- package/dist/{list-CDJi3_Ut.cjs → list-CUbI0RM6.cjs} +1 -1
- package/dist/{list-CDJi3_Ut.cjs.map → list-CUbI0RM6.cjs.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{menu-XyrLmCi_.js → menu-CtFcvxgU.js} +2 -2
- package/dist/{menu-XyrLmCi_.js.map → menu-CtFcvxgU.js.map} +1 -1
- package/dist/{menu-CJaDL2cd.cjs → menu-DGMrjR_a.cjs} +1 -1
- package/dist/{menu-CJaDL2cd.cjs.map → menu-DGMrjR_a.cjs.map} +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/mixins-CKbQ6BJo.js +642 -0
- package/dist/{mixins-DySzfmal.js.map → mixins-CKbQ6BJo.js.map} +1 -1
- package/dist/mixins-DSy-enUd.cjs +254 -0
- package/dist/{mixins-CsYsIJOI.cjs.map → mixins-DSy-enUd.cjs.map} +1 -1
- package/dist/mixins.cjs +1 -1
- package/dist/mixins.js +1 -1
- package/dist/nav-drawer.cjs +1 -1
- package/dist/nav-drawer.js +1 -1
- package/dist/navigation-bar.cjs +1 -1
- package/dist/navigation-bar.js +1 -1
- package/dist/navigation-rail.cjs +1 -1
- package/dist/navigation-rail.js +1 -1
- package/dist/{notification-CHrEY4u8.js → notification-BqyMYtP7.js} +2 -2
- package/dist/{notification-CHrEY4u8.js.map → notification-BqyMYtP7.js.map} +1 -1
- package/dist/{notification-DKp4tjaB.cjs → notification-D5eOdsMT.cjs} +1 -1
- package/dist/{notification-DKp4tjaB.cjs.map → notification-D5eOdsMT.cjs.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +1 -1
- package/dist/{option-Vpy4UQ-D.js → option-C3UyYQi_.js} +1 -1
- package/dist/{option-Vpy4UQ-D.js.map → option-C3UyYQi_.js.map} +1 -1
- package/dist/{option-nRk4MuXH.cjs → option-DJ3R-2Wn.cjs} +1 -1
- package/dist/{option-nRk4MuXH.cjs.map → option-DJ3R-2Wn.cjs.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{overlay-jlkcrt8F.js → overlay-D1hFkcFA.js} +3 -3
- package/dist/{overlay-jlkcrt8F.js.map → overlay-D1hFkcFA.js.map} +1 -1
- package/dist/{overlay-HNrWZ4sB.cjs → overlay-D7nQaT5U.cjs} +1 -1
- package/dist/{overlay-HNrWZ4sB.cjs.map → overlay-D7nQaT5U.cjs.map} +1 -1
- package/dist/overlay.cjs +1 -1
- package/dist/{overlay.confirm-body-CYShkjI6.js → overlay.confirm-body-B4eCDLmU.js} +1 -1
- package/dist/{overlay.confirm-body-CYShkjI6.js.map → overlay.confirm-body-B4eCDLmU.js.map} +1 -1
- package/dist/{overlay.confirm-body-B8dFI3cj.cjs → overlay.confirm-body-P18SmJL2.cjs} +1 -1
- package/dist/{overlay.confirm-body-B8dFI3cj.cjs.map → overlay.confirm-body-P18SmJL2.cjs.map} +1 -1
- package/dist/overlay.js +3 -3
- package/dist/{overlay.service-BqhhxVJp.js → overlay.service-02ZLZ8Ib.js} +2 -2
- package/dist/{overlay.service-BqhhxVJp.js.map → overlay.service-02ZLZ8Ib.js.map} +1 -1
- package/dist/{overlay.service-BTPn7Uv7.cjs → overlay.service-m-8omCA-.cjs} +1 -1
- package/dist/{overlay.service-BTPn7Uv7.cjs.map → overlay.service-m-8omCA-.cjs.map} +1 -1
- package/dist/{progress-CAp_4jtq.cjs → progress-CY-UbvOB.cjs} +1 -1
- package/dist/{progress-CAp_4jtq.cjs.map → progress-CY-UbvOB.cjs.map} +1 -1
- package/dist/{progress-8Bn88GK_.js → progress-YjdEWDI5.js} +1 -1
- package/dist/{progress-8Bn88GK_.js.map → progress-YjdEWDI5.js.map} +1 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.js +1 -1
- package/dist/{radio-group-CN44mAoc.cjs → radio-group--UamzqAm.cjs} +1 -1
- package/dist/{radio-group-CN44mAoc.cjs.map → radio-group--UamzqAm.cjs.map} +1 -1
- package/dist/{radio-group-GNHA7qJR.js → radio-group-aKXKHqUp.js} +1 -1
- package/dist/{radio-group-GNHA7qJR.js.map → radio-group-aKXKHqUp.js.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/range.cjs +1 -1
- package/dist/range.js +1 -1
- package/dist/{select-BnuXRHS4.js → select-B0Qk4PfT.js} +2 -2
- package/dist/{select-BnuXRHS4.js.map → select-B0Qk4PfT.js.map} +1 -1
- package/dist/{select-DZNns5Pa.cjs → select-CIquL8LY.cjs} +1 -1
- package/dist/{select-DZNns5Pa.cjs.map → select-CIquL8LY.cjs.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.js +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{splash-screen-CUP_elaT.js → splash-screen-CP_Idse2.js} +1 -1
- package/dist/{splash-screen-CUP_elaT.js.map → splash-screen-CP_Idse2.js.map} +1 -1
- package/dist/{splash-screen-DeoPRrOu.cjs → splash-screen-rg56AXCf.cjs} +1 -1
- package/dist/{splash-screen-DeoPRrOu.cjs.map → splash-screen-rg56AXCf.cjs.map} +1 -1
- package/dist/splash-screen.cjs +1 -1
- package/dist/splash-screen.js +1 -1
- package/dist/{src-DQ4wr0qq.cjs → src-BAaNnqwc.cjs} +1 -1
- package/dist/{src-DQ4wr0qq.cjs.map → src-BAaNnqwc.cjs.map} +1 -1
- package/dist/{src-B1VkLX3l.js → src-Do0IGupa.js} +34 -34
- package/dist/{src-B1VkLX3l.js.map → src-Do0IGupa.js.map} +1 -1
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/{surface-LkaZQXZn.cjs → surface-B7a2O5-9.cjs} +1 -1
- package/dist/{surface-LkaZQXZn.cjs.map → surface-B7a2O5-9.cjs.map} +1 -1
- package/dist/{surface-hOvkrjGN.js → surface-DGewe6IV.js} +1 -1
- package/dist/{surface-hOvkrjGN.js.map → surface-DGewe6IV.js.map} +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.js +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-CfwIHhHo.js → tabs-g2aM43TH.js} +1 -1
- package/dist/{tabs-CfwIHhHo.js.map → tabs-g2aM43TH.js.map} +1 -1
- package/dist/{tabs-bplzstz6.cjs → tabs-n4dO5fo1.cjs} +1 -1
- package/dist/{tabs-bplzstz6.cjs.map → tabs-n4dO5fo1.cjs.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-C1A5xuw9.js → textarea-D5hw4jsP.js} +1 -1
- package/dist/{textarea-C1A5xuw9.js.map → textarea-D5hw4jsP.js.map} +1 -1
- package/dist/{textarea-hrDp5gQq.cjs → textarea-DDx_7AfQ.cjs} +1 -1
- package/dist/{textarea-hrDp5gQq.cjs.map → textarea-DDx_7AfQ.cjs.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-BniFOMEo.js → theme-BMYkheaA.js} +1 -1
- package/dist/{theme-BniFOMEo.js.map → theme-BMYkheaA.js.map} +1 -1
- package/dist/{theme-DmR6PKV8.cjs → theme-BdZAj0CO.cjs} +1 -1
- package/dist/{theme-DmR6PKV8.cjs.map → theme-BdZAj0CO.cjs.map} +1 -1
- package/dist/{theme-button--ruZIb0T.js → theme-button-DdI6kxY3.js} +1 -1
- package/dist/{theme-button--ruZIb0T.js.map → theme-button-DdI6kxY3.js.map} +1 -1
- package/dist/{theme-button-a0LgZ7hQ.cjs → theme-button-R2f_kLEl.cjs} +1 -1
- package/dist/{theme-button-a0LgZ7hQ.cjs.map → theme-button-R2f_kLEl.cjs.map} +1 -1
- package/dist/theme-button.cjs +1 -1
- package/dist/theme-button.js +1 -1
- package/dist/theme.cjs +1 -1
- package/dist/theme.js +2 -2
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/dist/visually-hidden.cjs +1 -1
- package/dist/visually-hidden.js +1 -1
- package/dist/{window-Bp7zWZpu.cjs → window-LOGPpN8K.cjs} +1 -1
- package/dist/{window-Bp7zWZpu.cjs.map → window-LOGPpN8K.cjs.map} +1 -1
- package/dist/{window-BT9JecWy.js → window-MQxhTodp.js} +1 -1
- package/dist/{window-BT9JecWy.js.map → window-MQxhTodp.js.map} +1 -1
- package/dist/window.cjs +1 -1
- package/dist/window.js +1 -1
- package/package.json +1 -1
- package/src/boat/boat.ts +33 -23
- package/src/directives/nebula.ts +64 -61
- package/types/src/directives/nebula.d.ts +1 -1
- package/dist/boat--fLgbDAE.js.map +0 -1
- package/dist/boat-BIB-gPqy.cjs +0 -80
- package/dist/boat-BIB-gPqy.cjs.map +0 -1
- package/dist/mixins-CsYsIJOI.cjs +0 -254
- package/dist/mixins-DySzfmal.js +0 -642
package/src/directives/nebula.ts
CHANGED
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
|
+
import type { ElementPart } from 'lit'
|
|
35
36
|
import { noChange } from 'lit'
|
|
36
37
|
import { AsyncDirective, directive } from 'lit/async-directive.js'
|
|
37
|
-
import type
|
|
38
|
-
import {
|
|
38
|
+
import { EMPTY, type Subscription, from, fromEvent, timer } from 'rxjs'
|
|
39
|
+
import { catchError, take, tap } from 'rxjs/operators'
|
|
40
|
+
import { SPRING_GENTLE, SPRING_SMOOTH, getEasing } from '../utils/animation'
|
|
39
41
|
import { reducedMotion$ } from './reduced-motion'
|
|
40
|
-
import { Subscription, timer, fromEvent, from, EMPTY } from 'rxjs'
|
|
41
|
-
import { take, tap, catchError } from 'rxjs/operators'
|
|
42
42
|
|
|
43
43
|
export interface NebulaOptions {
|
|
44
44
|
/** Whether the nebula is active/visible. Default: true (auto-shows, auto-hides after autoHideDuration) */
|
|
@@ -94,7 +94,7 @@ const DEFAULTS: Required<NebulaOptions> = {
|
|
|
94
94
|
idleBreathe: true,
|
|
95
95
|
temperature: 0,
|
|
96
96
|
chromaticAberration: 1,
|
|
97
|
-
particleCount:
|
|
97
|
+
particleCount: 8,
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
// =============================================================================
|
|
@@ -139,10 +139,11 @@ function injectGlobalStyles(): void {
|
|
|
139
139
|
75% { transform: translate3d(calc(var(--nebula-aberration, 3px) * -1.8), 0, 0); }
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
/* Iridescent core -
|
|
142
|
+
/* Iridescent core - compositor-only rotation. filter is static (baked inline) to avoid
|
|
143
|
+
per-frame raster cost of animated blur/hue-rotate under mix-blend-mode: screen. */
|
|
143
144
|
@keyframes nebula-iridescent {
|
|
144
|
-
0% {
|
|
145
|
-
100% {
|
|
145
|
+
0% { transform: translateZ(0) rotate(0deg); }
|
|
146
|
+
100% { transform: translateZ(0) rotate(360deg); }
|
|
146
147
|
}
|
|
147
148
|
|
|
148
149
|
/* Bioluminescent tendrils - organic breathing */
|
|
@@ -161,17 +162,17 @@ function injectGlobalStyles(): void {
|
|
|
161
162
|
85% { opacity: 0.6; }
|
|
162
163
|
}
|
|
163
164
|
|
|
164
|
-
/* Idle breathing -
|
|
165
|
+
/* Idle breathing - compositor-only pulse when dimmed.
|
|
166
|
+
filter: blur is intentionally static (baked on layers) — animating it here
|
|
167
|
+
would keep re-rasterizing the dimmed overlay forever for no visual gain. */
|
|
165
168
|
@keyframes nebula-idle-breathe {
|
|
166
169
|
0%, 100% {
|
|
167
170
|
opacity: var(--nebula-idle-opacity, 0.08);
|
|
168
|
-
|
|
169
|
-
transform: scale(1);
|
|
171
|
+
transform: scale(1) translateZ(0);
|
|
170
172
|
}
|
|
171
173
|
50% {
|
|
172
174
|
opacity: calc(var(--nebula-idle-opacity, 0.08) * 1.4);
|
|
173
|
-
|
|
174
|
-
transform: scale(1.005);
|
|
175
|
+
transform: scale(1.005) translateZ(0);
|
|
175
176
|
}
|
|
176
177
|
}
|
|
177
178
|
|
|
@@ -185,7 +186,8 @@ function injectGlobalStyles(): void {
|
|
|
185
186
|
isolation: isolate;
|
|
186
187
|
}
|
|
187
188
|
|
|
188
|
-
.nebula-overlay.paused .nebula-layer
|
|
189
|
+
.nebula-overlay.paused .nebula-layer,
|
|
190
|
+
.nebula-overlay.dimmed .nebula-layer {
|
|
189
191
|
animation-play-state: paused !important;
|
|
190
192
|
}
|
|
191
193
|
|
|
@@ -216,6 +218,7 @@ interface State {
|
|
|
216
218
|
originalContain: string
|
|
217
219
|
isDimmed: boolean
|
|
218
220
|
autoHideSub: Subscription | null
|
|
221
|
+
fadeFinishedSub: Subscription | null
|
|
219
222
|
options: Required<NebulaOptions>
|
|
220
223
|
reducedMotion: boolean
|
|
221
224
|
isVisible: boolean
|
|
@@ -352,6 +355,8 @@ class NebulaDirective extends AsyncDirective {
|
|
|
352
355
|
if (this.state?.overlay && this.state.isDimmed) {
|
|
353
356
|
this.state.isDimmed = false
|
|
354
357
|
this.state.options = opts
|
|
358
|
+
this.state.fadeFinishedSub?.unsubscribe()
|
|
359
|
+
this.state.fadeFinishedSub = null
|
|
355
360
|
this.awakenOverlay(opts, reducedMotion)
|
|
356
361
|
this.scheduleAutoHide(opts)
|
|
357
362
|
return
|
|
@@ -372,28 +377,26 @@ class NebulaDirective extends AsyncDirective {
|
|
|
372
377
|
if (!this.state?.overlay) return
|
|
373
378
|
|
|
374
379
|
const overlay = this.state.overlay
|
|
375
|
-
const awakenDuration = reducedMotion ? 0 : opts.fadeInDuration * 0.6
|
|
376
|
-
const easing = reducedMotion ? 'linear' : getEasing(SPRING_SMOOTH)
|
|
377
|
-
|
|
378
|
-
// Update CSS custom properties
|
|
379
380
|
overlay.style.setProperty('--nebula-intensity', String(opts.intensity))
|
|
380
381
|
|
|
381
382
|
overlay.animate(
|
|
382
383
|
[
|
|
383
|
-
{ opacity: opts.idleOpacity, transform: 'scale(0.98)
|
|
384
|
-
{ opacity: opts.intensity * 0.7, transform: 'scale(1.01)
|
|
385
|
-
{ opacity: opts.intensity, transform: 'scale(1)
|
|
384
|
+
{ opacity: opts.idleOpacity, transform: 'scale(0.98) translateZ(0)' },
|
|
385
|
+
{ opacity: opts.intensity * 0.7, transform: 'scale(1.01) translateZ(0)' },
|
|
386
|
+
{ opacity: opts.intensity, transform: 'scale(1) translateZ(0)' },
|
|
386
387
|
] as Keyframe[],
|
|
387
388
|
{
|
|
388
|
-
duration:
|
|
389
|
-
easing,
|
|
389
|
+
duration: reducedMotion ? 0 : opts.fadeInDuration * 0.6,
|
|
390
|
+
easing: reducedMotion ? 'linear' : getEasing(SPRING_SMOOTH),
|
|
390
391
|
fill: 'forwards',
|
|
391
392
|
},
|
|
392
393
|
)
|
|
393
394
|
|
|
394
|
-
//
|
|
395
|
-
|
|
395
|
+
// Clear the dimmed gate + any container-level idle-breathe animation hide() installed,
|
|
396
|
+
// then resume the per-layer CSS animations.
|
|
397
|
+
overlay.classList.remove('paused', 'dimmed')
|
|
396
398
|
overlay.classList.add('running')
|
|
399
|
+
overlay.style.animation = ''
|
|
397
400
|
}
|
|
398
401
|
|
|
399
402
|
private createOverlay(element: HTMLElement, opts: Required<NebulaOptions>, reducedMotion: boolean): void {
|
|
@@ -568,7 +571,11 @@ class NebulaDirective extends AsyncDirective {
|
|
|
568
571
|
transparent 100%)`,
|
|
569
572
|
mixBlendMode: 'screen',
|
|
570
573
|
transform: 'translateZ(0)',
|
|
571
|
-
|
|
574
|
+
transformOrigin: '50% 50%',
|
|
575
|
+
// Static filter — animating hue-rotate + blur every frame is a GPU pig
|
|
576
|
+
// under mix-blend-mode: screen. Compositor-only rotation gets the iridescent
|
|
577
|
+
// shimmer "for free" by sliding the gradient across the blend stack.
|
|
578
|
+
filter: `blur(${12 * opts.blur}px) saturate(1.6)`,
|
|
572
579
|
animation: `nebula-iridescent ${28000 / opts.speed}ms linear infinite`,
|
|
573
580
|
})
|
|
574
581
|
overlay.appendChild(iridescentLayer)
|
|
@@ -635,13 +642,14 @@ class NebulaDirective extends AsyncDirective {
|
|
|
635
642
|
const fadeInDuration = reducedMotion ? 0 : opts.fadeInDuration
|
|
636
643
|
const entranceEasing = reducedMotion ? 'linear' : getEasing(SPRING_SMOOTH)
|
|
637
644
|
|
|
645
|
+
// Compositor-only entrance — opacity + transform reach the same "rising into focus"
|
|
646
|
+
// feel without animating `filter: blur`, which re-rasterizes the full filtered
|
|
647
|
+
// region every frame under mix-blend-mode: screen.
|
|
638
648
|
overlay.animate(
|
|
639
649
|
[
|
|
640
|
-
{ opacity: 0, transform: 'scale(0.85)
|
|
641
|
-
{ opacity: opts.intensity * 0.
|
|
642
|
-
{ opacity: opts.intensity
|
|
643
|
-
{ opacity: opts.intensity * 0.85, transform: 'scale(1.005)', filter: `blur(${1 * opts.blur}px) saturate(1.05)` },
|
|
644
|
-
{ opacity: opts.intensity, transform: 'scale(1)', filter: 'blur(0px) saturate(1)' },
|
|
650
|
+
{ opacity: 0, transform: 'scale(0.85) translateZ(0)' },
|
|
651
|
+
{ opacity: opts.intensity * 0.4, transform: 'scale(0.97) translateZ(0)' },
|
|
652
|
+
{ opacity: opts.intensity, transform: 'scale(1) translateZ(0)' },
|
|
645
653
|
] as Keyframe[],
|
|
646
654
|
{
|
|
647
655
|
duration: fadeInDuration,
|
|
@@ -658,6 +666,7 @@ class NebulaDirective extends AsyncDirective {
|
|
|
658
666
|
originalContain,
|
|
659
667
|
isDimmed: false,
|
|
660
668
|
autoHideSub: null,
|
|
669
|
+
fadeFinishedSub: null,
|
|
661
670
|
options: opts,
|
|
662
671
|
reducedMotion,
|
|
663
672
|
isVisible: document.visibilityState === 'visible',
|
|
@@ -695,53 +704,46 @@ class NebulaDirective extends AsyncDirective {
|
|
|
695
704
|
const overlay = this.state.overlay
|
|
696
705
|
const currentOpts = this.state.options
|
|
697
706
|
const reducedMotion = this.state.reducedMotion
|
|
698
|
-
|
|
699
|
-
const
|
|
700
|
-
const exitEasing = reducedMotion ? 'linear' : getEasing(SPRING_GENTLE)
|
|
707
|
+
const duration = reducedMotion ? 0 : opts.fadeOutDuration
|
|
708
|
+
const easing = reducedMotion ? 'linear' : getEasing(SPRING_GENTLE)
|
|
701
709
|
|
|
702
710
|
// Full hide (idleOpacity = 0)
|
|
703
711
|
if (opts.idleOpacity <= 0) {
|
|
704
712
|
overlay.animate(
|
|
705
713
|
[
|
|
706
|
-
{ opacity: currentOpts.intensity, transform: 'scale(1)
|
|
707
|
-
{ opacity: currentOpts.intensity * 0.4, transform: 'scale(0.95)
|
|
708
|
-
{ opacity: 0, transform: 'scale(0.9)
|
|
714
|
+
{ opacity: currentOpts.intensity, transform: 'scale(1) translateZ(0)' },
|
|
715
|
+
{ opacity: currentOpts.intensity * 0.4, transform: 'scale(0.95) translateZ(0)' },
|
|
716
|
+
{ opacity: 0, transform: 'scale(0.9) translateZ(0)' },
|
|
709
717
|
] as Keyframe[],
|
|
710
|
-
{
|
|
711
|
-
duration: fadeOutDuration,
|
|
712
|
-
easing: exitEasing,
|
|
713
|
-
fill: 'forwards',
|
|
714
|
-
},
|
|
718
|
+
{ duration, easing, fill: 'forwards' },
|
|
715
719
|
)
|
|
716
720
|
return
|
|
717
721
|
}
|
|
718
722
|
|
|
719
|
-
// Fade to idle with CSS animation for breathing
|
|
720
723
|
const fadeDown = overlay.animate(
|
|
721
724
|
[
|
|
722
|
-
{ opacity: currentOpts.intensity, transform: 'scale(1)
|
|
723
|
-
{ opacity: currentOpts.intensity * 0.5, transform: 'scale(0.99)
|
|
724
|
-
{ opacity: opts.idleOpacity, transform: 'scale(1)
|
|
725
|
+
{ opacity: currentOpts.intensity, transform: 'scale(1) translateZ(0)' },
|
|
726
|
+
{ opacity: currentOpts.intensity * 0.5, transform: 'scale(0.99) translateZ(0)' },
|
|
727
|
+
{ opacity: opts.idleOpacity, transform: 'scale(1) translateZ(0)' },
|
|
725
728
|
] as Keyframe[],
|
|
726
|
-
{
|
|
727
|
-
duration: fadeOutDuration,
|
|
728
|
-
easing: exitEasing,
|
|
729
|
-
fill: 'forwards',
|
|
730
|
-
},
|
|
729
|
+
{ duration, easing, fill: 'forwards' },
|
|
731
730
|
)
|
|
732
731
|
|
|
733
|
-
//
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
732
|
+
// After fade-down, gate per-layer animations off via the `dimmed` class — without
|
|
733
|
+
// this, chromatic/iridescent/tendril/particle keyframes keep burning GPU under
|
|
734
|
+
// mix-blend-mode: screen forever even though the stack is visually idle.
|
|
735
|
+
this.state.fadeFinishedSub?.unsubscribe()
|
|
736
|
+
this.state.fadeFinishedSub = from(fadeDown.finished).pipe(
|
|
737
|
+
take(1),
|
|
738
|
+
tap(() => {
|
|
739
|
+
if (!this.state?.overlay) return
|
|
740
|
+
this.state.overlay.classList.add('dimmed')
|
|
741
|
+
if (opts.idleBreathe && !reducedMotion) {
|
|
741
742
|
this.state.overlay.style.animation = `nebula-idle-breathe ${12000 / currentOpts.speed}ms ${BREATHING_EASING} infinite`
|
|
742
743
|
}
|
|
743
|
-
})
|
|
744
|
-
|
|
744
|
+
}),
|
|
745
|
+
catchError(() => EMPTY),
|
|
746
|
+
).subscribe()
|
|
745
747
|
}
|
|
746
748
|
|
|
747
749
|
private cleanup(): void {
|
|
@@ -750,6 +752,7 @@ class NebulaDirective extends AsyncDirective {
|
|
|
750
752
|
this.coordinator.unregister(this, this.state.element)
|
|
751
753
|
|
|
752
754
|
this.state.autoHideSub?.unsubscribe()
|
|
755
|
+
this.state.fadeFinishedSub?.unsubscribe()
|
|
753
756
|
|
|
754
757
|
this.state.overlay?.remove()
|
|
755
758
|
this.state.element.style.position = this.state.originalPosition
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
* html`<div ${nebula({ active: true, temperature: -0.5 })}>Content</div>`
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
|
-
import { AsyncDirective } from 'lit/async-directive.js';
|
|
35
34
|
import type { ElementPart } from 'lit';
|
|
35
|
+
import { AsyncDirective } from 'lit/async-directive.js';
|
|
36
36
|
export interface NebulaOptions {
|
|
37
37
|
/** Whether the nebula is active/visible. Default: true (auto-shows, auto-hides after autoHideDuration) */
|
|
38
38
|
active?: boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boat--fLgbDAE.js","names":[],"sources":["../src/boat/boat.ts"],"sourcesContent":["import { SchmancyElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { classMap } from 'lit/directives/class-map.js'\nimport { createRef, ref } from 'lit/directives/ref.js'\nimport { styleMap } from 'lit/directives/style-map.js'\nimport { when } from 'lit/directives/when.js'\nimport { filter, finalize, fromEvent, map, merge, switchMap, takeUntil, tap } from 'rxjs'\nimport { SPRING_SMOOTH, SPRING_SNAPPY } from '../utils/animation.js'\nimport { reducedMotion$ } from '../directives/reduced-motion'\nimport { theme } from '../theme/theme.service.js'\n\nconst FAB_HEIGHT = 44\nconst DRAG_THRESHOLD = 5\nconst POSITION_STORAGE_KEY_PREFIX = 'schmancy-boat-'\n\ntype Corner = 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left'\ntype BoatState = 'collapsed' | 'expanded'\ninterface Position {\n\tx: number\n\ty: number\n}\n\n@customElement('schmancy-boat')\nexport default class SchmancyBoat extends SchmancyElement {\n\tstatic styles = [css`\n\t:host {\n\t\tdisplay: contents;\n\t\tposition: relative;\n\t\tz-index: 1000;\n\t}\n\t:host([hidden]) {\n\t\tdisplay: none !important;\n\t}\n`]\n\n\t@property({ type: String }) id: string = 'default'\n\t@property({ type: String }) icon?: string\n\t@property({ type: String }) label?: string\n\t/** Override the expanded panel width (e.g. '320px', '24rem'). Defaults to responsive sizing. */\n\t@property({ type: String }) expandedWidth?: string\n\t/** When true, uses a lower elevation shadow in the minimized (FAB) state. */\n\t@property({ type: Boolean, reflect: true }) lowered: boolean = false\n\t/** Corner the boat is anchored to. */\n\t@property({ type: String }) corner: Corner = 'bottom-right'\n\t/** Whether the panel is open. */\n\t@property({ type: Boolean, reflect: true }) open: boolean = false\n\n\t/**\n\t * State property.\n\t * Maps 'expanded' → open=true, 'collapsed' → open=false (FAB visible).\n\t */\n\tget state(): BoatState {\n\t\treturn this.open ? 'expanded' : 'collapsed'\n\t}\n\tset state(val: BoatState) {\n\t\tif (val === 'expanded') {\n\t\t\tthis.expand()\n\t\t} else {\n\t\t\t// collapsed\n\t\t\tthis.close()\n\t\t}\n\t}\n\n\t// Internal drag state (triggers re-render for cursor class)\n\t@state() private isDragging = false\n\n\t// Internal position — plain fields, updated directly during drag (no re-render needed)\n\tprivate _position: Position = { x: 16, y: 16 }\n\t@state() private _currentCorner: Corner = 'bottom-right'\n\n\t// Refs\n\tprivate _containerRef = createRef<HTMLElement>()\n\tprivate _contentRef = createRef<HTMLElement>()\n\tprivate _headerRef = createRef<HTMLElement>()\n\tprivate _currentAnimation?: Animation\n\n\t// ============================================\n\t// COMPUTED\n\t// ============================================\n\n\tprivate get panelWidth(): string {\n\t\treturn this.expandedWidth ?? 'min(360px, calc(100vw - 32px))'\n\t}\n\n\tprivate get isBottomCorner(): boolean {\n\t\treturn this._currentCorner.startsWith('bottom')\n\t}\n\n\tprivate get closedClipPath(): string {\n\t\treturn this.isBottomCorner\n\t\t\t? `inset(calc(100% - ${FAB_HEIGHT}px) 0px 0px 0px round 22px)`\n\t\t\t: `inset(0px 0px calc(100% - ${FAB_HEIGHT}px) 0px round 22px)`\n\t}\n\n\tprivate get openClipPath(): string {\n\t\treturn 'inset(0px 0px 0px 0px round 12px)'\n\t}\n\n\tprivate get elevation(): 0 | 1 | 2 | 3 | 4 | 5 {\n\t\tif (this.open) return 4\n\t\treturn this.lowered ? 1 : 3\n\t}\n\n\t// ============================================\n\t// POSITION MANAGEMENT\n\t// ============================================\n\n\tprivate _applyContainerPosition() {\n\t\tconst container = this._containerRef.value\n\t\tif (!container) return\n\t\tcontainer.style.removeProperty('left')\n\t\tcontainer.style.removeProperty('right')\n\t\tcontainer.style.removeProperty('top')\n\t\tcontainer.style.removeProperty('bottom')\n\t\tconst { x, y } = this._position\n\t\tif (this._currentCorner.includes('right')) {\n\t\t\tcontainer.style.right = `${x}px`\n\t\t} else {\n\t\t\tcontainer.style.left = `${x}px`\n\t\t}\n\t\tif (this._currentCorner.includes('bottom')) {\n\t\t\tcontainer.style.bottom = `${y + theme.bottomOffset}px`\n\t\t} else {\n\t\t\tcontainer.style.top = `${y}px`\n\t\t}\n\t}\n\n\tprivate _loadPosition() {\n\t\ttry {\n\t\t\tconst saved = localStorage.getItem(POSITION_STORAGE_KEY_PREFIX + this.id)\n\t\t\tif (saved) {\n\t\t\t\tconst parsed = JSON.parse(saved) as { x: number; y: number; anchor: Corner }\n\t\t\t\tthis._position = { x: parsed.x, y: parsed.y }\n\t\t\t\tthis._currentCorner = parsed.anchor\n\t\t\t}\n\t\t} catch {\n\t\t\t// ignore localStorage errors\n\t\t}\n\t}\n\n\tprivate _savePosition() {\n\t\ttry {\n\t\t\tlocalStorage.setItem(\n\t\t\t\tPOSITION_STORAGE_KEY_PREFIX + this.id,\n\t\t\t\tJSON.stringify({ ...this._position, anchor: this._currentCorner }),\n\t\t\t)\n\t\t} catch {\n\t\t\t// ignore localStorage errors\n\t\t}\n\t}\n\n\tprivate _validateBounds() {\n\t\tconst container = this._containerRef.value\n\t\tif (!container) return\n\t\tconst rect = container.getBoundingClientRect()\n\t\tif (rect.width === 0) return\n\t\tconst vw = window.innerWidth\n\t\tconst vh = window.innerHeight\n\t\tconst isRight = this._currentCorner.includes('right')\n\t\tconst isBottom = this._currentCorner.includes('bottom')\n\t\tconst actualLeft = isRight ? vw - this._position.x - rect.width : this._position.x\n\t\tconst actualTop = isBottom ? vh - this._position.y - rect.height : this._position.y\n\t\tconst newLeft = Math.max(0, Math.min(actualLeft, vw - rect.width))\n\t\tconst newTop = Math.max(0, Math.min(actualTop, vh - rect.height))\n\t\tthis._position = {\n\t\t\tx: isRight ? vw - newLeft - rect.width : newLeft,\n\t\t\ty: isBottom ? vh - newTop - rect.height : newTop,\n\t\t}\n\t\tthis._applyContainerPosition()\n\t}\n\n\n\t// ============================================\n\t// CORNER SNAPPING\n\t// ============================================\n\n\tprivate _reorientToNearestCorner(skipAnimation = false): void {\n\t\tconst container = this._containerRef.value\n\t\tif (!container) return\n\n\t\t// F — record current screen position before DOM mutation\n\t\tconst rect = container.getBoundingClientRect()\n\n\t\t// L — calculate nearest corner using FAB visual center (container is always collapsed during drag)\n\t\tconst currentIsBottom = this._currentCorner.includes('bottom')\n\t\tconst fabCenterX = rect.left + rect.width / 2\n\t\tconst fabCenterY = currentIsBottom\n\t\t\t? rect.bottom - FAB_HEIGHT / 2\n\t\t\t: rect.top + FAB_HEIGHT / 2\n\t\tconst side = fabCenterX > window.innerWidth / 2 ? 'right' : 'left'\n\t\tconst vert = fabCenterY > window.innerHeight / 2 ? 'bottom' : 'top'\n\t\tconst newCorner: Corner = `${vert}-${side}` as Corner\n\n\t\t// Snap corner and reset offset to standard edge gap\n\t\tthis._currentCorner = newCorner\n\t\tthis._position = { x: 16, y: 16 }\n\t\tthis._applyContainerPosition()\n\t\t// Sync clip-path to new corner — managed imperatively, not via styleMap\n\t\tif (!this.open) {\n\t\t\tcontainer.style.clipPath = this.closedClipPath\n\t\t}\n\n\t\tif (skipAnimation || reducedMotion$.value) {\n\t\t\tthis._savePosition()\n\t\t\treturn\n\t\t}\n\n\t\t// I — invert: shift element back to its original visual position\n\t\tconst newRect = container.getBoundingClientRect()\n\t\tconst dx = rect.left - newRect.left\n\t\tconst dy = rect.top - newRect.top\n\t\tcontainer.style.transform = `translate(${dx}px, ${dy}px)`\n\n\t\t// P — play: animate from the inverse offset to natural resting position\n\t\tthis._currentAnimation?.cancel()\n\t\tconst anim = container.animate(\n\t\t\t[{ transform: container.style.transform }, { transform: 'translate(0,0)' }],\n\t\t\t{\n\t\t\t\tduration: SPRING_SMOOTH.duration,\n\t\t\t\teasing: SPRING_SMOOTH.easingFallback,\n\t\t\t\tfill: 'forwards',\n\t\t\t},\n\t\t)\n\t\tthis._currentAnimation = anim\n\t\tanim.finished.then(() => {\n\t\t\tif (container.isConnected) {\n\t\t\t\tcontainer.style.transform = ''\n\t\t\t}\n\t\t\treturn\n\t\t})\n\n\t\tthis._savePosition()\n\t}\n\n\t// ============================================\n\t// DRAG PIPELINE\n\t// ============================================\n\n\tprivate _setupDrag() {\n\t\tconst header = this._headerRef.value\n\t\tconst container = this._containerRef.value\n\t\tif (!header || !container) return\n\n\t\tlet didDrag = false\n\n\t\tfromEvent<PointerEvent>(header, 'pointerdown')\n\t\t\t.pipe(\n\t\t\t\tfilter(e => e.button === 0),\n\t\t\t\ttap(e => {\n\t\t\t\t\te.preventDefault()\n\t\t\t\t\te.stopPropagation()\n\t\t\t\t\theader.setPointerCapture(e.pointerId)\n\t\t\t\t}),\n\t\t\t\tmap(e => {\n\t\t\t\t\tconst rect = container.getBoundingClientRect()\n\t\t\t\t\tconst isBottom = this._currentCorner.includes('bottom')\n\t\t\t\t\tconst wasOpen = this.open\n\t\t\t\t\tdidDrag = false\n\t\t\t\t\treturn {\n\t\t\t\t\t\tpointerId: e.pointerId,\n\t\t\t\t\t\tstartX: e.clientX,\n\t\t\t\t\t\tstartY: e.clientY,\n\t\t\t\t\t\toffsetX: e.clientX - rect.left,\n\t\t\t\t\t\toffsetY: e.clientY - rect.top,\n\t\t\t\t\t\trect,\n\t\t\t\t\t\tisBottom,\n\t\t\t\t\t\twasOpen,\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t\tswitchMap(({ pointerId, startX, startY, offsetX, offsetY, rect, isBottom, wasOpen }) => {\n\t\t\t\t\tconst sameId = (e: PointerEvent) => e.pointerId === pointerId\n\t\t\t\t\tconst move$ = fromEvent<PointerEvent>(window, 'pointermove').pipe(filter(sameId))\n\t\t\t\t\tconst end$ = merge(\n\t\t\t\t\t\tfromEvent<PointerEvent>(window, 'pointerup'),\n\t\t\t\t\t\tfromEvent<PointerEvent>(window, 'pointercancel'),\n\t\t\t\t\t).pipe(filter(sameId))\n\n\t\t\t\t\treturn move$.pipe(\n\t\t\t\t\t\ttap(({ clientX, clientY }) => {\n\t\t\t\t\t\t\tconst dx = clientX - startX\n\t\t\t\t\t\t\tconst dy = clientY - startY\n\t\t\t\t\t\t\tif (Math.sqrt(dx * dx + dy * dy) > DRAG_THRESHOLD && !didDrag) {\n\t\t\t\t\t\t\t\tdidDrag = true\n\t\t\t\t\t\t\t\tthis.isDragging = true\n\t\t\t\t\t\t\t\t// Collapse on first confirmed drag move (not on click)\n\t\t\t\t\t\t\t\tif (wasOpen) {\n\t\t\t\t\t\t\t\t\tthis._currentAnimation?.cancel()\n\t\t\t\t\t\t\t\t\tthis.open = false\n\t\t\t\t\t\t\t\t\tcontainer.style.clipPath = this.closedClipPath\n\t\t\t\t\t\t\t\t\tcontainer.style.overflow = 'hidden'\n\t\t\t\t\t\t\t\t\tconst content = this._contentRef.value\n\t\t\t\t\t\t\t\t\tif (content) {\n\t\t\t\t\t\t\t\t\t\tcontent.inert = true\n\t\t\t\t\t\t\t\t\t\tcontent.style.visibility = 'hidden'\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (!didDrag) return\n\n\t\t\t\t\t\t\tconst vw = window.innerWidth\n\t\t\t\t\t\t\tconst vh = window.innerHeight\n\t\t\t\t\t\t\tconst left = Math.max(0, Math.min(clientX - offsetX, vw - rect.width))\n\t\t\t\t\t\t\t// Allow container to go partially off-screen so FAB stays reachable at all edges\n\t\t\t\t\t\t\tconst minTop = isBottom ? FAB_HEIGHT - rect.height : 0\n\t\t\t\t\t\t\tconst maxTop = isBottom ? vh - rect.height : vh - FAB_HEIGHT\n\t\t\t\t\t\t\tconst top = Math.max(minTop, Math.min(clientY - offsetY, maxTop))\n\n\t\t\t\t\t\t\tthis._position = {\n\t\t\t\t\t\t\t\tx: this._currentCorner.includes('right') ? vw - left - rect.width : left,\n\t\t\t\t\t\t\t\ty: isBottom ? vh - top - rect.height : top,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis._applyContainerPosition()\n\t\t\t\t\t\t}),\n\t\t\t\t\t\ttakeUntil(end$),\n\t\t\t\t\t\tfinalize(() => {\n\t\t\t\t\t\t\tif (didDrag) {\n\t\t\t\t\t\t\t\tthis._reorientToNearestCorner()\n\t\t\t\t\t\t\t\tthis.isDragging = false\n\t\t\t\t\t\t\t\tdidDrag = false\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tthis.isDragging = false\n\t\t\t\t\t\t\t\tdidDrag = false\n\t\t\t\t\t\t\t\tthis.toggle()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}),\n\t\t\t\t\t)\n\t\t\t\t}),\n\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t)\n\t\t\t.subscribe()\n\t}\n\n\t// ============================================\n\t// LIFECYCLE\n\t// ============================================\n\n\tconnectedCallback() {\n\t\tsuper.connectedCallback()\n\n\t\tfromEvent(window, 'resize')\n\t\t\t.pipe(takeUntil(this.disconnecting))\n\t\t\t.subscribe(() => this._validateBounds())\n\n\t\ttheme.bottomOffset$.pipe(\n\t\t\ttap(() => this._applyContainerPosition()),\n\t\t\ttakeUntil(this.disconnecting),\n\t\t).subscribe()\n\t}\n\n\tfirstUpdated() {\n\t\t// Initialize corner from property\n\t\tthis._currentCorner = this.corner\n\n\t\t// Load saved drag position from localStorage\n\t\tthis._loadPosition()\n\n\t\tconst container = this._containerRef.value\n\t\tconst content = this._contentRef.value\n\t\tif (!container) return\n\n\t\t// Apply initial position\n\t\tthis._applyContainerPosition()\n\n\t\t// Set initial open/closed visual state\n\t\tif (this.open) {\n\t\t\tcontainer.style.overflow = ''\n\t\t\tif (content) {\n\t\t\t\tcontent.inert = false\n\t\t\t\tcontent.style.visibility = 'visible'\n\t\t\t}\n\t\t} else {\n\t\t\tcontainer.style.clipPath = this.closedClipPath\n\t\t\tcontainer.style.overflow = 'hidden'\n\t\t\tif (content) {\n\t\t\t\tcontent.inert = true\n\t\t\t\tcontent.style.visibility = 'hidden'\n\t\t\t}\n\t\t}\n\n\t\t// Set up drag\n\t\tthis._setupDrag()\n\t}\n\n\tdisconnectedCallback() {\n\t\tsuper.disconnectedCallback()\n\t\tthis._currentAnimation?.cancel()\n\t}\n\n\t// ============================================\n\t// ANIMATION\n\t// ============================================\n\n\tprivate async _animateOpen(): Promise<void> {\n\t\tconst container = this._containerRef.value\n\t\tconst content = this._contentRef.value\n\t\tif (!container) return\n\n\t\tif (content) {\n\t\t\tcontent.style.visibility = 'visible'\n\t\t\tcontent.inert = false\n\t\t}\n\n\t\tthis.open = true\n\t\tawait this.updateComplete\n\n\t\tif (reducedMotion$.value) {\n\t\t\tcontainer.style.clipPath = ''\n\t\t\tcontainer.style.overflow = ''\n\t\t\tthis.dispatchScopedEvent('toggle', 'expanded')\n\t\t\treturn\n\t\t}\n\n\t\tthis._currentAnimation?.cancel()\n\t\tcontainer.style.overflow = 'hidden'\n\n\t\tconst openKeyframes: Keyframe[] = [\n\t\t\t{ clipPath: this.closedClipPath, opacity: 0.95 },\n\t\t\t{ clipPath: this.openClipPath, opacity: 1 },\n\t\t]\n\t\tconst anim = container.animate(openKeyframes, {\n\t\t\tduration: SPRING_SMOOTH.duration,\n\t\t\teasing: SPRING_SMOOTH.easingFallback,\n\t\t\tfill: 'forwards',\n\t\t})\n\t\tthis._currentAnimation = anim\n\n\t\t// Clear clip-path so overflow/scroll work normally after animation\n\t\tanim.finished.then(() => {\n\t\t\tif (container.isConnected) {\n\t\t\t\tcontainer.style.clipPath = ''\n\t\t\t\tcontainer.style.overflow = ''\n\t\t\t}\n\t\t\treturn\n\t\t})\n\n\t\tthis.dispatchScopedEvent('toggle', 'expanded')\n\t}\n\n\tprivate async _animateClose(): Promise<void> {\n\t\tconst container = this._containerRef.value\n\t\tif (!container) return\n\n\t\tif (reducedMotion$.value) {\n\t\t\tcontainer.style.clipPath = this.closedClipPath\n\t\t\tcontainer.style.overflow = 'hidden'\n\t\t\tthis.open = false\n\t\t\tconst content = this._contentRef.value\n\t\t\tif (content) {\n\t\t\t\tcontent.inert = true\n\t\t\t\tcontent.style.visibility = 'hidden'\n\t\t\t}\n\t\t\tthis.dispatchScopedEvent('toggle', 'collapsed')\n\t\t\treturn\n\t\t}\n\n\t\tthis._currentAnimation?.cancel()\n\t\tcontainer.style.overflow = 'hidden'\n\n\t\tconst closeKeyframes: Keyframe[] = [\n\t\t\t{ clipPath: this.openClipPath, opacity: 1 },\n\t\t\t{ clipPath: this.closedClipPath, opacity: 0.95 },\n\t\t]\n\t\tconst anim = container.animate(closeKeyframes, {\n\t\t\tduration: Math.round(SPRING_SNAPPY.duration * 0.9),\n\t\t\teasing: 'cubic-bezier(0.4, 0, 0.8, 0.15)',\n\t\t\tfill: 'forwards',\n\t\t})\n\t\tthis._currentAnimation = anim\n\n\t\tawait anim.finished\n\n\t\tthis.open = false\n\n\t\tconst content = this._contentRef.value\n\t\tif (content) {\n\t\t\tcontent.inert = true\n\t\t\tcontent.style.visibility = 'hidden'\n\t\t}\n\n\t\tthis.dispatchScopedEvent('toggle', 'collapsed')\n\t}\n\n\t// ============================================\n\t// PUBLIC API\n\t// ============================================\n\n\ttoggle() {\n\t\tif (this.open) this._animateClose()\n\t\telse this._animateOpen()\n\t}\n\n\texpand() {\n\t\tif (this.open) return\n\t\tthis.removeAttribute('hidden')\n\t\tif (!this._containerRef.value) {\n\t\t\tthis.open = true\n\t\t\treturn\n\t\t}\n\t\tthis._animateOpen()\n\t}\n\n\t/** Alias for expand() — kept for backwards compatibility. */\n\tshow() {\n\t\tthis.expand()\n\t}\n\n\tclose() {\n\t\tif (!this.open) return\n\t\tif (!this._containerRef.value) {\n\t\t\tthis.open = false\n\t\t\treturn\n\t\t}\n\t\tthis._animateClose()\n\t}\n\n\t// ============================================\n\t// RENDER\n\t// ============================================\n\n\tprotected render(): unknown {\n\t\tconst isBottom = this._currentCorner.startsWith('bottom')\n\n\t\tconst containerClasses = classMap({\n\t\t\tflex: true,\n\t\t\t'flex-col': isBottom,\n\t\t\t'flex-col-reverse': !isBottom,\n\t\t\t'will-change-[clip-path]': true,\n\t\t\t'z-1000': true,\n\t\t\t'rounded-2xl': this.open,\n\t\t\t'rounded-[22px]': !this.open,\n\t\t\t'overflow-hidden': true,\n\t\t\t'opacity-95': this.isDragging,\n\t\t})\n\n\t\tconst containerStyles = styleMap({\n\t\t\tposition: 'fixed',\n\t\t\twidth: this.panelWidth,\n\t\t\t'max-height': 'calc(100vh - 32px)',\n\t\t\t'pointer-events': 'none',\n\t\t})\n\n\t\tconst contentStyles = styleMap({\n\t\t\t'pointer-events': this.open ? 'auto' : 'none',\n\t\t})\n\n\t\tconst headerClasses = classMap({\n\t\t\t'h-full': true,\n\t\t\t'px-3': true,\n\t\t\tflex: true,\n\t\t\t'items-center': true,\n\t\t\t'gap-2': true,\n\t\t\t'select-none': true,\n\t\t\t'touch-none': true,\n\t\t\t'cursor-grabbing': this.isDragging,\n\t\t\t'cursor-move': !this.isDragging,\n\t\t\t'transition-opacity': true,\n\t\t\t'duration-200': true,\n\t\t})\n\n\t\treturn html`\n\t\t\t<!-- schmancy-surface owns background color and elevation-based shadow.\n\t\t\t Position is managed imperatively via _applyContainerPosition(). -->\n\t\t\t<schmancy-surface\n\t\t\t\t${ref(this._containerRef)}\n\t\t\t\ttype=\"glass\"\n\t\t\t\t.elevation=${this.elevation}\n\t\t\t\tclass=${containerClasses}\n\t\t\t\tstyle=${containerStyles}\n\t\t\t\taria-expanded=${this.open}\n\t\t\t>\n\t\t\t\t<!-- Content section (visually above header for bottom corners) -->\n\t\t\t\t<section\n\t\t\t\t\t${ref(this._contentRef)}\n\t\t\t\t\tclass=\"flex-1 min-h-0 overflow-hidden flex flex-col\"\n\t\t\t\t\tstyle=${contentStyles}\n\t\t\t\t\trole=\"dialog\"\n\t\t\t\t\taria-label=\"${this.label ?? 'Floating panel'}\"\n\t\t\t\t>\n\t\t\t\t\t<schmancy-surface type=\"solid\" class=\"flex flex-col flex-1 min-h-0 overflow-hidden\">\n\t\t\t\t\t\t<schmancy-scroll hide class=\"flex-1\">\n\t\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t\t</schmancy-scroll>\n\t\t\t\t\t</schmancy-surface>\n\t\t\t\t</section>\n\n\t\t\t\t<!-- Gradient separator between header and content — only when open -->\n\t\t\t\t${when(\n\t\t\t\t\tthis.open,\n\t\t\t\t\t() =>\n\t\t\t\t\t\thtml`<div\n\t\t\t\t\t\t\tclass=\"h-px shrink-0 bg-linear-to-r from-transparent via-primary-default/30 to-transparent\"\n\t\t\t\t\t\t></div>`,\n\t\t\t\t)}\n\n\t\t\t\t<!-- Header / FAB section — always interactive, always visible -->\n\t\t\t\t<section\n\t\t\t\t\tclass=\"shrink-0 bg-surface-containerLowest\"\n\t\t\t\t\tstyle=${styleMap({ 'pointer-events': 'auto', height: `${FAB_HEIGHT}px` })}\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\t${ref(this._headerRef)}\n\t\t\t\t\t\tclass=${headerClasses}\n\t\t\t\t\t\ttitle=\"Drag to move\"\n\t\t\t\t\t\taria-label=\"Drag to reposition panel\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<!-- Summary slot rendered once — avoids DOM teardown on toggle -->\n\t\t\t\t\t\t<div class=\"flex-1 min-w-0\">\n\t\t\t\t\t\t\t<slot name=\"summary\"></slot>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<!-- Toggle button: collapse when open, expand when closed -->\n\t\t\t\t\t\t${when(\n\t\t\t\t\t\t\tthis.open,\n\t\t\t\t\t\t\t() => html`\n\t\t\t\t\t\t\t\t<schmancy-icon-button\n\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\tvariant=\"text\"\n\t\t\t\t\t\t\t\t\t@click=${(e: Event) => {\n\t\t\t\t\t\t\t\t\t\te.stopPropagation()\n\t\t\t\t\t\t\t\t\t\tthis.close()\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\ttitle=\"Collapse\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\tclose_fullscreen\n\t\t\t\t\t\t\t\t</schmancy-icon-button>\n\t\t\t\t\t\t\t`,\n\t\t\t\t\t\t\t() => html`\n\t\t\t\t\t\t\t\t<schmancy-icon-button\n\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\tvariant=\"text\"\n\t\t\t\t\t\t\t\t\t@click=${(e: Event) => {\n\t\t\t\t\t\t\t\t\t\te.stopPropagation()\n\t\t\t\t\t\t\t\t\t\tthis.expand()\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\ttitle=\"Expand\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\tfullscreen\n\t\t\t\t\t\t\t\t</schmancy-icon-button>\n\t\t\t\t\t\t\t`,\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</section>\n\t\t\t</schmancy-surface>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-boat': SchmancyBoat\n\t}\n}\n"],"mappings":";;;;;;;;;;;;AAYA,IAAM,IAAa,IAEb,IAA8B,kBAUrB,IAAA,cAA2B,EAAA;CAAA,YAAA,GAAA,GAAA;EAAA,MAAA,GAAA,EAAA,EAAA,KAAA,KAYA,WAAA,KAAA,UAAA,CAMsB,GAAA,KAAA,SAElB,gBAAA,KAAA,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;IAAA;;;;;;;;;;;;GArlBb,EAAS,EAAE,MAAM,QAAA,CAAA,CAAA,EAAS,EAAA,WAAA,MAAA,KAAA,EAAA,EAAA,EAAA,CAC1B,EAAS,EAAE,MAAM,QAAA,CAAA,CAAA,EAAS,EAAA,WAAA,QAAA,KAAA,EAAA,EAAA,EAAA,CAC1B,EAAS,EAAE,MAAM,QAAA,CAAA,CAAA,EAAS,EAAA,WAAA,SAAA,KAAA,EAAA,EAAA,EAAA,CAE1B,EAAS,EAAE,MAAM,QAAA,CAAA,CAAA,EAAS,EAAA,WAAA,iBAAA,KAAA,EAAA,EAAA,EAAA,CAE1B,EAAS;CAAE,MAAM;CAAS,SAAA,CAAS;CAAA,CAAA,CAAA,EAAO,EAAA,WAAA,WAAA,KAAA,EAAA,EAAA,EAAA,CAE1C,EAAS,EAAE,MAAM,QAAA,CAAA,CAAA,EAAS,EAAA,WAAA,UAAA,KAAA,EAAA,EAAA,EAAA,CAE1B,EAAS;CAAE,MAAM;CAAS,SAAA,CAAS;CAAA,CAAA,CAAA,EAAO,EAAA,WAAA,QAAA,KAAA,EAAA,EAAA,EAAA,CAmB1C,GAAA,CAAA,EAAO,EAAA,WAAA,cAAA,KAAA,EAAA,EAAA,EAAA,CAIP,GAAA,CAAA,EAAO,EAAA,WAAA,kBAAA,KAAA,EAAA;AAAA,IAAA,IAAA,IAAA,EAAA,CA9CR,EAAc,gBAAA,CAAA,EAAgB,EAAA;AAAA,SAAA,KAAA"}
|
package/dist/boat-BIB-gPqy.cjs
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
require(`./chunk-CncqDLb2.cjs`);const e=require(`./mixins-CsYsIJOI.cjs`),t=require(`./active-host-jH3iloCR.cjs`),n=require(`./animation-CCOIW4wJ.cjs`),r=require(`./reduced-motion-Ds-HjMzn.cjs`),i=require(`./theme.service-Y-e8b331.cjs`);let a=require(`rxjs`),o=require(`lit/directives/class-map.js`),s=require(`lit/directives/style-map.js`),c=require(`lit/decorators.js`),l=require(`lit`),u=require(`lit/directives/ref.js`),d=require(`lit/directives/when.js`);var f=44,p=`schmancy-boat-`,m=class extends e.c{constructor(...e){super(...e),this.id=`default`,this.lowered=!1,this.corner=`bottom-right`,this.open=!1,this.isDragging=!1,this._position={x:16,y:16},this._currentCorner=`bottom-right`,this._containerRef=(0,u.createRef)(),this._contentRef=(0,u.createRef)(),this._headerRef=(0,u.createRef)()}static{this.styles=[l.css`
|
|
2
|
-
:host {
|
|
3
|
-
display: contents;
|
|
4
|
-
position: relative;
|
|
5
|
-
z-index: 1000;
|
|
6
|
-
}
|
|
7
|
-
:host([hidden]) {
|
|
8
|
-
display: none !important;
|
|
9
|
-
}
|
|
10
|
-
`]}get state(){return this.open?`expanded`:`collapsed`}set state(e){e===`expanded`?this.expand():this.close()}get panelWidth(){return this.expandedWidth??`min(360px, calc(100vw - 32px))`}get isBottomCorner(){return this._currentCorner.startsWith(`bottom`)}get closedClipPath(){return this.isBottomCorner?`inset(calc(100% - 44px) 0px 0px 0px round 22px)`:`inset(0px 0px calc(100% - 44px) 0px round 22px)`}get openClipPath(){return`inset(0px 0px 0px 0px round 12px)`}get elevation(){return this.open?4:this.lowered?1:3}_applyContainerPosition(){let e=this._containerRef.value;if(!e)return;e.style.removeProperty(`left`),e.style.removeProperty(`right`),e.style.removeProperty(`top`),e.style.removeProperty(`bottom`);let{x:t,y:n}=this._position;this._currentCorner.includes(`right`)?e.style.right=`${t}px`:e.style.left=`${t}px`,this._currentCorner.includes(`bottom`)?e.style.bottom=`${n+i.n.bottomOffset}px`:e.style.top=`${n}px`}_loadPosition(){try{let e=localStorage.getItem(p+this.id);if(e){let t=JSON.parse(e);this._position={x:t.x,y:t.y},this._currentCorner=t.anchor}}catch{}}_savePosition(){try{localStorage.setItem(p+this.id,JSON.stringify({...this._position,anchor:this._currentCorner}))}catch{}}_validateBounds(){let e=this._containerRef.value;if(!e)return;let t=e.getBoundingClientRect();if(t.width===0)return;let n=window.innerWidth,r=window.innerHeight,i=this._currentCorner.includes(`right`),a=this._currentCorner.includes(`bottom`),o=i?n-this._position.x-t.width:this._position.x,s=a?r-this._position.y-t.height:this._position.y,c=Math.max(0,Math.min(o,n-t.width)),l=Math.max(0,Math.min(s,r-t.height));this._position={x:i?n-c-t.width:c,y:a?r-l-t.height:l},this._applyContainerPosition()}_reorientToNearestCorner(e=!1){let t=this._containerRef.value;if(!t)return;let i=t.getBoundingClientRect(),a=this._currentCorner.includes(`bottom`),o=i.left+i.width/2,s=a?i.bottom-22:i.top+22,c=o>window.innerWidth/2?`right`:`left`,l=`${s>window.innerHeight/2?`bottom`:`top`}-${c}`;if(this._currentCorner=l,this._position={x:16,y:16},this._applyContainerPosition(),this.open||(t.style.clipPath=this.closedClipPath),e||r.t.value)return void this._savePosition();let u=t.getBoundingClientRect(),d=i.left-u.left,f=i.top-u.top;t.style.transform=`translate(${d}px, ${f}px)`,this._currentAnimation?.cancel();let p=t.animate([{transform:t.style.transform},{transform:`translate(0,0)`}],{duration:n.d.duration,easing:n.d.easingFallback,fill:`forwards`});this._currentAnimation=p,p.finished.then(()=>{t.isConnected&&(t.style.transform=``)}),this._savePosition()}_setupDrag(){let e=this._headerRef.value,t=this._containerRef.value;if(!e||!t)return;let n=!1;(0,a.fromEvent)(e,`pointerdown`).pipe((0,a.filter)(e=>e.button===0),(0,a.tap)(t=>{t.preventDefault(),t.stopPropagation(),e.setPointerCapture(t.pointerId)}),(0,a.map)(e=>{let r=t.getBoundingClientRect(),i=this._currentCorner.includes(`bottom`),a=this.open;return n=!1,{pointerId:e.pointerId,startX:e.clientX,startY:e.clientY,offsetX:e.clientX-r.left,offsetY:e.clientY-r.top,rect:r,isBottom:i,wasOpen:a}}),(0,a.switchMap)(({pointerId:e,startX:r,startY:i,offsetX:o,offsetY:s,rect:c,isBottom:l,wasOpen:u})=>{let d=t=>t.pointerId===e,p=(0,a.fromEvent)(window,`pointermove`).pipe((0,a.filter)(d)),m=(0,a.merge)((0,a.fromEvent)(window,`pointerup`),(0,a.fromEvent)(window,`pointercancel`)).pipe((0,a.filter)(d));return p.pipe((0,a.tap)(({clientX:e,clientY:a})=>{let d=e-r,p=a-i;if(Math.sqrt(d*d+p*p)>5&&!n&&(n=!0,this.isDragging=!0,u)){this._currentAnimation?.cancel(),this.open=!1,t.style.clipPath=this.closedClipPath,t.style.overflow=`hidden`;let e=this._contentRef.value;e&&(e.inert=!0,e.style.visibility=`hidden`)}if(!n)return;let m=window.innerWidth,h=window.innerHeight,g=Math.max(0,Math.min(e-o,m-c.width)),_=l?f-c.height:0,v=l?h-c.height:h-f,y=Math.max(_,Math.min(a-s,v));this._position={x:this._currentCorner.includes(`right`)?m-g-c.width:g,y:l?h-y-c.height:y},this._applyContainerPosition()}),(0,a.takeUntil)(m),(0,a.finalize)(()=>{n?(this._reorientToNearestCorner(),this.isDragging=!1,n=!1):(this.isDragging=!1,n=!1,this.toggle())}))}),(0,a.takeUntil)(this.disconnecting)).subscribe()}connectedCallback(){super.connectedCallback(),(0,a.fromEvent)(window,`resize`).pipe((0,a.takeUntil)(this.disconnecting)).subscribe(()=>this._validateBounds()),i.n.bottomOffset$.pipe((0,a.tap)(()=>this._applyContainerPosition()),(0,a.takeUntil)(this.disconnecting)).subscribe()}firstUpdated(){this._currentCorner=this.corner,this._loadPosition();let e=this._containerRef.value,t=this._contentRef.value;e&&(this._applyContainerPosition(),this.open?(e.style.overflow=``,t&&(t.inert=!1,t.style.visibility=`visible`)):(e.style.clipPath=this.closedClipPath,e.style.overflow=`hidden`,t&&(t.inert=!0,t.style.visibility=`hidden`)),this._setupDrag())}disconnectedCallback(){super.disconnectedCallback(),this._currentAnimation?.cancel()}async _animateOpen(){let e=this._containerRef.value,t=this._contentRef.value;if(!e)return;if(t&&(t.style.visibility=`visible`,t.inert=!1),this.open=!0,await this.updateComplete,r.t.value)return e.style.clipPath=``,e.style.overflow=``,void this.dispatchScopedEvent(`toggle`,`expanded`);this._currentAnimation?.cancel(),e.style.overflow=`hidden`;let i=[{clipPath:this.closedClipPath,opacity:.95},{clipPath:this.openClipPath,opacity:1}],a=e.animate(i,{duration:n.d.duration,easing:n.d.easingFallback,fill:`forwards`});this._currentAnimation=a,a.finished.then(()=>{e.isConnected&&(e.style.clipPath=``,e.style.overflow=``)}),this.dispatchScopedEvent(`toggle`,`expanded`)}async _animateClose(){let e=this._containerRef.value;if(!e)return;if(r.t.value){e.style.clipPath=this.closedClipPath,e.style.overflow=`hidden`,this.open=!1;let t=this._contentRef.value;t&&(t.inert=!0,t.style.visibility=`hidden`),this.dispatchScopedEvent(`toggle`,`collapsed`);return}this._currentAnimation?.cancel(),e.style.overflow=`hidden`;let t=[{clipPath:this.openClipPath,opacity:1},{clipPath:this.closedClipPath,opacity:.95}],i=e.animate(t,{duration:Math.round(.9*n.f.duration),easing:`cubic-bezier(0.4, 0, 0.8, 0.15)`,fill:`forwards`});this._currentAnimation=i,await i.finished,this.open=!1;let a=this._contentRef.value;a&&(a.inert=!0,a.style.visibility=`hidden`),this.dispatchScopedEvent(`toggle`,`collapsed`)}toggle(){this.open?this._animateClose():this._animateOpen()}expand(){this.open||(this.removeAttribute(`hidden`),this._containerRef.value?this._animateOpen():this.open=!0)}show(){this.expand()}close(){this.open&&(this._containerRef.value?this._animateClose():this.open=!1)}render(){let e=this._currentCorner.startsWith(`bottom`),t=(0,o.classMap)({flex:!0,"flex-col":e,"flex-col-reverse":!e,"will-change-[clip-path]":!0,"z-1000":!0,"rounded-2xl":this.open,"rounded-[22px]":!this.open,"overflow-hidden":!0,"opacity-95":this.isDragging}),n=(0,s.styleMap)({position:`fixed`,width:this.panelWidth,"max-height":`calc(100vh - 32px)`,"pointer-events":`none`}),r=(0,s.styleMap)({"pointer-events":this.open?`auto`:`none`}),i=(0,o.classMap)({"h-full":!0,"px-3":!0,flex:!0,"items-center":!0,"gap-2":!0,"select-none":!0,"touch-none":!0,"cursor-grabbing":this.isDragging,"cursor-move":!this.isDragging,"transition-opacity":!0,"duration-200":!0});return l.html`
|
|
11
|
-
<!-- schmancy-surface owns background color and elevation-based shadow.
|
|
12
|
-
Position is managed imperatively via _applyContainerPosition(). -->
|
|
13
|
-
<schmancy-surface
|
|
14
|
-
${(0,u.ref)(this._containerRef)}
|
|
15
|
-
type="glass"
|
|
16
|
-
.elevation=${this.elevation}
|
|
17
|
-
class=${t}
|
|
18
|
-
style=${n}
|
|
19
|
-
aria-expanded=${this.open}
|
|
20
|
-
>
|
|
21
|
-
<!-- Content section (visually above header for bottom corners) -->
|
|
22
|
-
<section
|
|
23
|
-
${(0,u.ref)(this._contentRef)}
|
|
24
|
-
class="flex-1 min-h-0 overflow-hidden flex flex-col"
|
|
25
|
-
style=${r}
|
|
26
|
-
role="dialog"
|
|
27
|
-
aria-label="${this.label??`Floating panel`}"
|
|
28
|
-
>
|
|
29
|
-
<schmancy-surface type="solid" class="flex flex-col flex-1 min-h-0 overflow-hidden">
|
|
30
|
-
<schmancy-scroll hide class="flex-1">
|
|
31
|
-
<slot></slot>
|
|
32
|
-
</schmancy-scroll>
|
|
33
|
-
</schmancy-surface>
|
|
34
|
-
</section>
|
|
35
|
-
|
|
36
|
-
<!-- Gradient separator between header and content — only when open -->
|
|
37
|
-
${(0,d.when)(this.open,()=>l.html`<div
|
|
38
|
-
class="h-px shrink-0 bg-linear-to-r from-transparent via-primary-default/30 to-transparent"
|
|
39
|
-
></div>`)}
|
|
40
|
-
|
|
41
|
-
<!-- Header / FAB section — always interactive, always visible -->
|
|
42
|
-
<section
|
|
43
|
-
class="shrink-0 bg-surface-containerLowest"
|
|
44
|
-
style=${(0,s.styleMap)({"pointer-events":`auto`,height:`44px`})}
|
|
45
|
-
>
|
|
46
|
-
<div
|
|
47
|
-
${(0,u.ref)(this._headerRef)}
|
|
48
|
-
class=${i}
|
|
49
|
-
title="Drag to move"
|
|
50
|
-
aria-label="Drag to reposition panel"
|
|
51
|
-
>
|
|
52
|
-
<!-- Summary slot rendered once — avoids DOM teardown on toggle -->
|
|
53
|
-
<div class="flex-1 min-w-0">
|
|
54
|
-
<slot name="summary"></slot>
|
|
55
|
-
</div>
|
|
56
|
-
|
|
57
|
-
<!-- Toggle button: collapse when open, expand when closed -->
|
|
58
|
-
${(0,d.when)(this.open,()=>l.html`
|
|
59
|
-
<schmancy-icon-button
|
|
60
|
-
size="sm"
|
|
61
|
-
variant="text"
|
|
62
|
-
@click=${e=>{e.stopPropagation(),this.close()}}
|
|
63
|
-
title="Collapse"
|
|
64
|
-
>
|
|
65
|
-
close_fullscreen
|
|
66
|
-
</schmancy-icon-button>
|
|
67
|
-
`,()=>l.html`
|
|
68
|
-
<schmancy-icon-button
|
|
69
|
-
size="sm"
|
|
70
|
-
variant="text"
|
|
71
|
-
@click=${e=>{e.stopPropagation(),this.expand()}}
|
|
72
|
-
title="Expand"
|
|
73
|
-
>
|
|
74
|
-
fullscreen
|
|
75
|
-
</schmancy-icon-button>
|
|
76
|
-
`)}
|
|
77
|
-
</div>
|
|
78
|
-
</section>
|
|
79
|
-
</schmancy-surface>
|
|
80
|
-
`}};t.a([(0,c.property)({type:String})],m.prototype,`id`,void 0),t.a([(0,c.property)({type:String})],m.prototype,`icon`,void 0),t.a([(0,c.property)({type:String})],m.prototype,`label`,void 0),t.a([(0,c.property)({type:String})],m.prototype,`expandedWidth`,void 0),t.a([(0,c.property)({type:Boolean,reflect:!0})],m.prototype,`lowered`,void 0),t.a([(0,c.property)({type:String})],m.prototype,`corner`,void 0),t.a([(0,c.property)({type:Boolean,reflect:!0})],m.prototype,`open`,void 0),t.a([(0,c.state)()],m.prototype,`isDragging`,void 0),t.a([(0,c.state)()],m.prototype,`_currentCorner`,void 0);var h=m=t.a([(0,c.customElement)(`schmancy-boat`)],m);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boat-BIB-gPqy.cjs","names":[],"sources":["../src/boat/boat.ts"],"sourcesContent":["import { SchmancyElement } from '@mixins/index'\nimport { css, html } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { classMap } from 'lit/directives/class-map.js'\nimport { createRef, ref } from 'lit/directives/ref.js'\nimport { styleMap } from 'lit/directives/style-map.js'\nimport { when } from 'lit/directives/when.js'\nimport { filter, finalize, fromEvent, map, merge, switchMap, takeUntil, tap } from 'rxjs'\nimport { SPRING_SMOOTH, SPRING_SNAPPY } from '../utils/animation.js'\nimport { reducedMotion$ } from '../directives/reduced-motion'\nimport { theme } from '../theme/theme.service.js'\n\nconst FAB_HEIGHT = 44\nconst DRAG_THRESHOLD = 5\nconst POSITION_STORAGE_KEY_PREFIX = 'schmancy-boat-'\n\ntype Corner = 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left'\ntype BoatState = 'collapsed' | 'expanded'\ninterface Position {\n\tx: number\n\ty: number\n}\n\n@customElement('schmancy-boat')\nexport default class SchmancyBoat extends SchmancyElement {\n\tstatic styles = [css`\n\t:host {\n\t\tdisplay: contents;\n\t\tposition: relative;\n\t\tz-index: 1000;\n\t}\n\t:host([hidden]) {\n\t\tdisplay: none !important;\n\t}\n`]\n\n\t@property({ type: String }) id: string = 'default'\n\t@property({ type: String }) icon?: string\n\t@property({ type: String }) label?: string\n\t/** Override the expanded panel width (e.g. '320px', '24rem'). Defaults to responsive sizing. */\n\t@property({ type: String }) expandedWidth?: string\n\t/** When true, uses a lower elevation shadow in the minimized (FAB) state. */\n\t@property({ type: Boolean, reflect: true }) lowered: boolean = false\n\t/** Corner the boat is anchored to. */\n\t@property({ type: String }) corner: Corner = 'bottom-right'\n\t/** Whether the panel is open. */\n\t@property({ type: Boolean, reflect: true }) open: boolean = false\n\n\t/**\n\t * State property.\n\t * Maps 'expanded' → open=true, 'collapsed' → open=false (FAB visible).\n\t */\n\tget state(): BoatState {\n\t\treturn this.open ? 'expanded' : 'collapsed'\n\t}\n\tset state(val: BoatState) {\n\t\tif (val === 'expanded') {\n\t\t\tthis.expand()\n\t\t} else {\n\t\t\t// collapsed\n\t\t\tthis.close()\n\t\t}\n\t}\n\n\t// Internal drag state (triggers re-render for cursor class)\n\t@state() private isDragging = false\n\n\t// Internal position — plain fields, updated directly during drag (no re-render needed)\n\tprivate _position: Position = { x: 16, y: 16 }\n\t@state() private _currentCorner: Corner = 'bottom-right'\n\n\t// Refs\n\tprivate _containerRef = createRef<HTMLElement>()\n\tprivate _contentRef = createRef<HTMLElement>()\n\tprivate _headerRef = createRef<HTMLElement>()\n\tprivate _currentAnimation?: Animation\n\n\t// ============================================\n\t// COMPUTED\n\t// ============================================\n\n\tprivate get panelWidth(): string {\n\t\treturn this.expandedWidth ?? 'min(360px, calc(100vw - 32px))'\n\t}\n\n\tprivate get isBottomCorner(): boolean {\n\t\treturn this._currentCorner.startsWith('bottom')\n\t}\n\n\tprivate get closedClipPath(): string {\n\t\treturn this.isBottomCorner\n\t\t\t? `inset(calc(100% - ${FAB_HEIGHT}px) 0px 0px 0px round 22px)`\n\t\t\t: `inset(0px 0px calc(100% - ${FAB_HEIGHT}px) 0px round 22px)`\n\t}\n\n\tprivate get openClipPath(): string {\n\t\treturn 'inset(0px 0px 0px 0px round 12px)'\n\t}\n\n\tprivate get elevation(): 0 | 1 | 2 | 3 | 4 | 5 {\n\t\tif (this.open) return 4\n\t\treturn this.lowered ? 1 : 3\n\t}\n\n\t// ============================================\n\t// POSITION MANAGEMENT\n\t// ============================================\n\n\tprivate _applyContainerPosition() {\n\t\tconst container = this._containerRef.value\n\t\tif (!container) return\n\t\tcontainer.style.removeProperty('left')\n\t\tcontainer.style.removeProperty('right')\n\t\tcontainer.style.removeProperty('top')\n\t\tcontainer.style.removeProperty('bottom')\n\t\tconst { x, y } = this._position\n\t\tif (this._currentCorner.includes('right')) {\n\t\t\tcontainer.style.right = `${x}px`\n\t\t} else {\n\t\t\tcontainer.style.left = `${x}px`\n\t\t}\n\t\tif (this._currentCorner.includes('bottom')) {\n\t\t\tcontainer.style.bottom = `${y + theme.bottomOffset}px`\n\t\t} else {\n\t\t\tcontainer.style.top = `${y}px`\n\t\t}\n\t}\n\n\tprivate _loadPosition() {\n\t\ttry {\n\t\t\tconst saved = localStorage.getItem(POSITION_STORAGE_KEY_PREFIX + this.id)\n\t\t\tif (saved) {\n\t\t\t\tconst parsed = JSON.parse(saved) as { x: number; y: number; anchor: Corner }\n\t\t\t\tthis._position = { x: parsed.x, y: parsed.y }\n\t\t\t\tthis._currentCorner = parsed.anchor\n\t\t\t}\n\t\t} catch {\n\t\t\t// ignore localStorage errors\n\t\t}\n\t}\n\n\tprivate _savePosition() {\n\t\ttry {\n\t\t\tlocalStorage.setItem(\n\t\t\t\tPOSITION_STORAGE_KEY_PREFIX + this.id,\n\t\t\t\tJSON.stringify({ ...this._position, anchor: this._currentCorner }),\n\t\t\t)\n\t\t} catch {\n\t\t\t// ignore localStorage errors\n\t\t}\n\t}\n\n\tprivate _validateBounds() {\n\t\tconst container = this._containerRef.value\n\t\tif (!container) return\n\t\tconst rect = container.getBoundingClientRect()\n\t\tif (rect.width === 0) return\n\t\tconst vw = window.innerWidth\n\t\tconst vh = window.innerHeight\n\t\tconst isRight = this._currentCorner.includes('right')\n\t\tconst isBottom = this._currentCorner.includes('bottom')\n\t\tconst actualLeft = isRight ? vw - this._position.x - rect.width : this._position.x\n\t\tconst actualTop = isBottom ? vh - this._position.y - rect.height : this._position.y\n\t\tconst newLeft = Math.max(0, Math.min(actualLeft, vw - rect.width))\n\t\tconst newTop = Math.max(0, Math.min(actualTop, vh - rect.height))\n\t\tthis._position = {\n\t\t\tx: isRight ? vw - newLeft - rect.width : newLeft,\n\t\t\ty: isBottom ? vh - newTop - rect.height : newTop,\n\t\t}\n\t\tthis._applyContainerPosition()\n\t}\n\n\n\t// ============================================\n\t// CORNER SNAPPING\n\t// ============================================\n\n\tprivate _reorientToNearestCorner(skipAnimation = false): void {\n\t\tconst container = this._containerRef.value\n\t\tif (!container) return\n\n\t\t// F — record current screen position before DOM mutation\n\t\tconst rect = container.getBoundingClientRect()\n\n\t\t// L — calculate nearest corner using FAB visual center (container is always collapsed during drag)\n\t\tconst currentIsBottom = this._currentCorner.includes('bottom')\n\t\tconst fabCenterX = rect.left + rect.width / 2\n\t\tconst fabCenterY = currentIsBottom\n\t\t\t? rect.bottom - FAB_HEIGHT / 2\n\t\t\t: rect.top + FAB_HEIGHT / 2\n\t\tconst side = fabCenterX > window.innerWidth / 2 ? 'right' : 'left'\n\t\tconst vert = fabCenterY > window.innerHeight / 2 ? 'bottom' : 'top'\n\t\tconst newCorner: Corner = `${vert}-${side}` as Corner\n\n\t\t// Snap corner and reset offset to standard edge gap\n\t\tthis._currentCorner = newCorner\n\t\tthis._position = { x: 16, y: 16 }\n\t\tthis._applyContainerPosition()\n\t\t// Sync clip-path to new corner — managed imperatively, not via styleMap\n\t\tif (!this.open) {\n\t\t\tcontainer.style.clipPath = this.closedClipPath\n\t\t}\n\n\t\tif (skipAnimation || reducedMotion$.value) {\n\t\t\tthis._savePosition()\n\t\t\treturn\n\t\t}\n\n\t\t// I — invert: shift element back to its original visual position\n\t\tconst newRect = container.getBoundingClientRect()\n\t\tconst dx = rect.left - newRect.left\n\t\tconst dy = rect.top - newRect.top\n\t\tcontainer.style.transform = `translate(${dx}px, ${dy}px)`\n\n\t\t// P — play: animate from the inverse offset to natural resting position\n\t\tthis._currentAnimation?.cancel()\n\t\tconst anim = container.animate(\n\t\t\t[{ transform: container.style.transform }, { transform: 'translate(0,0)' }],\n\t\t\t{\n\t\t\t\tduration: SPRING_SMOOTH.duration,\n\t\t\t\teasing: SPRING_SMOOTH.easingFallback,\n\t\t\t\tfill: 'forwards',\n\t\t\t},\n\t\t)\n\t\tthis._currentAnimation = anim\n\t\tanim.finished.then(() => {\n\t\t\tif (container.isConnected) {\n\t\t\t\tcontainer.style.transform = ''\n\t\t\t}\n\t\t\treturn\n\t\t})\n\n\t\tthis._savePosition()\n\t}\n\n\t// ============================================\n\t// DRAG PIPELINE\n\t// ============================================\n\n\tprivate _setupDrag() {\n\t\tconst header = this._headerRef.value\n\t\tconst container = this._containerRef.value\n\t\tif (!header || !container) return\n\n\t\tlet didDrag = false\n\n\t\tfromEvent<PointerEvent>(header, 'pointerdown')\n\t\t\t.pipe(\n\t\t\t\tfilter(e => e.button === 0),\n\t\t\t\ttap(e => {\n\t\t\t\t\te.preventDefault()\n\t\t\t\t\te.stopPropagation()\n\t\t\t\t\theader.setPointerCapture(e.pointerId)\n\t\t\t\t}),\n\t\t\t\tmap(e => {\n\t\t\t\t\tconst rect = container.getBoundingClientRect()\n\t\t\t\t\tconst isBottom = this._currentCorner.includes('bottom')\n\t\t\t\t\tconst wasOpen = this.open\n\t\t\t\t\tdidDrag = false\n\t\t\t\t\treturn {\n\t\t\t\t\t\tpointerId: e.pointerId,\n\t\t\t\t\t\tstartX: e.clientX,\n\t\t\t\t\t\tstartY: e.clientY,\n\t\t\t\t\t\toffsetX: e.clientX - rect.left,\n\t\t\t\t\t\toffsetY: e.clientY - rect.top,\n\t\t\t\t\t\trect,\n\t\t\t\t\t\tisBottom,\n\t\t\t\t\t\twasOpen,\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t\tswitchMap(({ pointerId, startX, startY, offsetX, offsetY, rect, isBottom, wasOpen }) => {\n\t\t\t\t\tconst sameId = (e: PointerEvent) => e.pointerId === pointerId\n\t\t\t\t\tconst move$ = fromEvent<PointerEvent>(window, 'pointermove').pipe(filter(sameId))\n\t\t\t\t\tconst end$ = merge(\n\t\t\t\t\t\tfromEvent<PointerEvent>(window, 'pointerup'),\n\t\t\t\t\t\tfromEvent<PointerEvent>(window, 'pointercancel'),\n\t\t\t\t\t).pipe(filter(sameId))\n\n\t\t\t\t\treturn move$.pipe(\n\t\t\t\t\t\ttap(({ clientX, clientY }) => {\n\t\t\t\t\t\t\tconst dx = clientX - startX\n\t\t\t\t\t\t\tconst dy = clientY - startY\n\t\t\t\t\t\t\tif (Math.sqrt(dx * dx + dy * dy) > DRAG_THRESHOLD && !didDrag) {\n\t\t\t\t\t\t\t\tdidDrag = true\n\t\t\t\t\t\t\t\tthis.isDragging = true\n\t\t\t\t\t\t\t\t// Collapse on first confirmed drag move (not on click)\n\t\t\t\t\t\t\t\tif (wasOpen) {\n\t\t\t\t\t\t\t\t\tthis._currentAnimation?.cancel()\n\t\t\t\t\t\t\t\t\tthis.open = false\n\t\t\t\t\t\t\t\t\tcontainer.style.clipPath = this.closedClipPath\n\t\t\t\t\t\t\t\t\tcontainer.style.overflow = 'hidden'\n\t\t\t\t\t\t\t\t\tconst content = this._contentRef.value\n\t\t\t\t\t\t\t\t\tif (content) {\n\t\t\t\t\t\t\t\t\t\tcontent.inert = true\n\t\t\t\t\t\t\t\t\t\tcontent.style.visibility = 'hidden'\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (!didDrag) return\n\n\t\t\t\t\t\t\tconst vw = window.innerWidth\n\t\t\t\t\t\t\tconst vh = window.innerHeight\n\t\t\t\t\t\t\tconst left = Math.max(0, Math.min(clientX - offsetX, vw - rect.width))\n\t\t\t\t\t\t\t// Allow container to go partially off-screen so FAB stays reachable at all edges\n\t\t\t\t\t\t\tconst minTop = isBottom ? FAB_HEIGHT - rect.height : 0\n\t\t\t\t\t\t\tconst maxTop = isBottom ? vh - rect.height : vh - FAB_HEIGHT\n\t\t\t\t\t\t\tconst top = Math.max(minTop, Math.min(clientY - offsetY, maxTop))\n\n\t\t\t\t\t\t\tthis._position = {\n\t\t\t\t\t\t\t\tx: this._currentCorner.includes('right') ? vw - left - rect.width : left,\n\t\t\t\t\t\t\t\ty: isBottom ? vh - top - rect.height : top,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis._applyContainerPosition()\n\t\t\t\t\t\t}),\n\t\t\t\t\t\ttakeUntil(end$),\n\t\t\t\t\t\tfinalize(() => {\n\t\t\t\t\t\t\tif (didDrag) {\n\t\t\t\t\t\t\t\tthis._reorientToNearestCorner()\n\t\t\t\t\t\t\t\tthis.isDragging = false\n\t\t\t\t\t\t\t\tdidDrag = false\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tthis.isDragging = false\n\t\t\t\t\t\t\t\tdidDrag = false\n\t\t\t\t\t\t\t\tthis.toggle()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}),\n\t\t\t\t\t)\n\t\t\t\t}),\n\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t)\n\t\t\t.subscribe()\n\t}\n\n\t// ============================================\n\t// LIFECYCLE\n\t// ============================================\n\n\tconnectedCallback() {\n\t\tsuper.connectedCallback()\n\n\t\tfromEvent(window, 'resize')\n\t\t\t.pipe(takeUntil(this.disconnecting))\n\t\t\t.subscribe(() => this._validateBounds())\n\n\t\ttheme.bottomOffset$.pipe(\n\t\t\ttap(() => this._applyContainerPosition()),\n\t\t\ttakeUntil(this.disconnecting),\n\t\t).subscribe()\n\t}\n\n\tfirstUpdated() {\n\t\t// Initialize corner from property\n\t\tthis._currentCorner = this.corner\n\n\t\t// Load saved drag position from localStorage\n\t\tthis._loadPosition()\n\n\t\tconst container = this._containerRef.value\n\t\tconst content = this._contentRef.value\n\t\tif (!container) return\n\n\t\t// Apply initial position\n\t\tthis._applyContainerPosition()\n\n\t\t// Set initial open/closed visual state\n\t\tif (this.open) {\n\t\t\tcontainer.style.overflow = ''\n\t\t\tif (content) {\n\t\t\t\tcontent.inert = false\n\t\t\t\tcontent.style.visibility = 'visible'\n\t\t\t}\n\t\t} else {\n\t\t\tcontainer.style.clipPath = this.closedClipPath\n\t\t\tcontainer.style.overflow = 'hidden'\n\t\t\tif (content) {\n\t\t\t\tcontent.inert = true\n\t\t\t\tcontent.style.visibility = 'hidden'\n\t\t\t}\n\t\t}\n\n\t\t// Set up drag\n\t\tthis._setupDrag()\n\t}\n\n\tdisconnectedCallback() {\n\t\tsuper.disconnectedCallback()\n\t\tthis._currentAnimation?.cancel()\n\t}\n\n\t// ============================================\n\t// ANIMATION\n\t// ============================================\n\n\tprivate async _animateOpen(): Promise<void> {\n\t\tconst container = this._containerRef.value\n\t\tconst content = this._contentRef.value\n\t\tif (!container) return\n\n\t\tif (content) {\n\t\t\tcontent.style.visibility = 'visible'\n\t\t\tcontent.inert = false\n\t\t}\n\n\t\tthis.open = true\n\t\tawait this.updateComplete\n\n\t\tif (reducedMotion$.value) {\n\t\t\tcontainer.style.clipPath = ''\n\t\t\tcontainer.style.overflow = ''\n\t\t\tthis.dispatchScopedEvent('toggle', 'expanded')\n\t\t\treturn\n\t\t}\n\n\t\tthis._currentAnimation?.cancel()\n\t\tcontainer.style.overflow = 'hidden'\n\n\t\tconst openKeyframes: Keyframe[] = [\n\t\t\t{ clipPath: this.closedClipPath, opacity: 0.95 },\n\t\t\t{ clipPath: this.openClipPath, opacity: 1 },\n\t\t]\n\t\tconst anim = container.animate(openKeyframes, {\n\t\t\tduration: SPRING_SMOOTH.duration,\n\t\t\teasing: SPRING_SMOOTH.easingFallback,\n\t\t\tfill: 'forwards',\n\t\t})\n\t\tthis._currentAnimation = anim\n\n\t\t// Clear clip-path so overflow/scroll work normally after animation\n\t\tanim.finished.then(() => {\n\t\t\tif (container.isConnected) {\n\t\t\t\tcontainer.style.clipPath = ''\n\t\t\t\tcontainer.style.overflow = ''\n\t\t\t}\n\t\t\treturn\n\t\t})\n\n\t\tthis.dispatchScopedEvent('toggle', 'expanded')\n\t}\n\n\tprivate async _animateClose(): Promise<void> {\n\t\tconst container = this._containerRef.value\n\t\tif (!container) return\n\n\t\tif (reducedMotion$.value) {\n\t\t\tcontainer.style.clipPath = this.closedClipPath\n\t\t\tcontainer.style.overflow = 'hidden'\n\t\t\tthis.open = false\n\t\t\tconst content = this._contentRef.value\n\t\t\tif (content) {\n\t\t\t\tcontent.inert = true\n\t\t\t\tcontent.style.visibility = 'hidden'\n\t\t\t}\n\t\t\tthis.dispatchScopedEvent('toggle', 'collapsed')\n\t\t\treturn\n\t\t}\n\n\t\tthis._currentAnimation?.cancel()\n\t\tcontainer.style.overflow = 'hidden'\n\n\t\tconst closeKeyframes: Keyframe[] = [\n\t\t\t{ clipPath: this.openClipPath, opacity: 1 },\n\t\t\t{ clipPath: this.closedClipPath, opacity: 0.95 },\n\t\t]\n\t\tconst anim = container.animate(closeKeyframes, {\n\t\t\tduration: Math.round(SPRING_SNAPPY.duration * 0.9),\n\t\t\teasing: 'cubic-bezier(0.4, 0, 0.8, 0.15)',\n\t\t\tfill: 'forwards',\n\t\t})\n\t\tthis._currentAnimation = anim\n\n\t\tawait anim.finished\n\n\t\tthis.open = false\n\n\t\tconst content = this._contentRef.value\n\t\tif (content) {\n\t\t\tcontent.inert = true\n\t\t\tcontent.style.visibility = 'hidden'\n\t\t}\n\n\t\tthis.dispatchScopedEvent('toggle', 'collapsed')\n\t}\n\n\t// ============================================\n\t// PUBLIC API\n\t// ============================================\n\n\ttoggle() {\n\t\tif (this.open) this._animateClose()\n\t\telse this._animateOpen()\n\t}\n\n\texpand() {\n\t\tif (this.open) return\n\t\tthis.removeAttribute('hidden')\n\t\tif (!this._containerRef.value) {\n\t\t\tthis.open = true\n\t\t\treturn\n\t\t}\n\t\tthis._animateOpen()\n\t}\n\n\t/** Alias for expand() — kept for backwards compatibility. */\n\tshow() {\n\t\tthis.expand()\n\t}\n\n\tclose() {\n\t\tif (!this.open) return\n\t\tif (!this._containerRef.value) {\n\t\t\tthis.open = false\n\t\t\treturn\n\t\t}\n\t\tthis._animateClose()\n\t}\n\n\t// ============================================\n\t// RENDER\n\t// ============================================\n\n\tprotected render(): unknown {\n\t\tconst isBottom = this._currentCorner.startsWith('bottom')\n\n\t\tconst containerClasses = classMap({\n\t\t\tflex: true,\n\t\t\t'flex-col': isBottom,\n\t\t\t'flex-col-reverse': !isBottom,\n\t\t\t'will-change-[clip-path]': true,\n\t\t\t'z-1000': true,\n\t\t\t'rounded-2xl': this.open,\n\t\t\t'rounded-[22px]': !this.open,\n\t\t\t'overflow-hidden': true,\n\t\t\t'opacity-95': this.isDragging,\n\t\t})\n\n\t\tconst containerStyles = styleMap({\n\t\t\tposition: 'fixed',\n\t\t\twidth: this.panelWidth,\n\t\t\t'max-height': 'calc(100vh - 32px)',\n\t\t\t'pointer-events': 'none',\n\t\t})\n\n\t\tconst contentStyles = styleMap({\n\t\t\t'pointer-events': this.open ? 'auto' : 'none',\n\t\t})\n\n\t\tconst headerClasses = classMap({\n\t\t\t'h-full': true,\n\t\t\t'px-3': true,\n\t\t\tflex: true,\n\t\t\t'items-center': true,\n\t\t\t'gap-2': true,\n\t\t\t'select-none': true,\n\t\t\t'touch-none': true,\n\t\t\t'cursor-grabbing': this.isDragging,\n\t\t\t'cursor-move': !this.isDragging,\n\t\t\t'transition-opacity': true,\n\t\t\t'duration-200': true,\n\t\t})\n\n\t\treturn html`\n\t\t\t<!-- schmancy-surface owns background color and elevation-based shadow.\n\t\t\t Position is managed imperatively via _applyContainerPosition(). -->\n\t\t\t<schmancy-surface\n\t\t\t\t${ref(this._containerRef)}\n\t\t\t\ttype=\"glass\"\n\t\t\t\t.elevation=${this.elevation}\n\t\t\t\tclass=${containerClasses}\n\t\t\t\tstyle=${containerStyles}\n\t\t\t\taria-expanded=${this.open}\n\t\t\t>\n\t\t\t\t<!-- Content section (visually above header for bottom corners) -->\n\t\t\t\t<section\n\t\t\t\t\t${ref(this._contentRef)}\n\t\t\t\t\tclass=\"flex-1 min-h-0 overflow-hidden flex flex-col\"\n\t\t\t\t\tstyle=${contentStyles}\n\t\t\t\t\trole=\"dialog\"\n\t\t\t\t\taria-label=\"${this.label ?? 'Floating panel'}\"\n\t\t\t\t>\n\t\t\t\t\t<schmancy-surface type=\"solid\" class=\"flex flex-col flex-1 min-h-0 overflow-hidden\">\n\t\t\t\t\t\t<schmancy-scroll hide class=\"flex-1\">\n\t\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t\t</schmancy-scroll>\n\t\t\t\t\t</schmancy-surface>\n\t\t\t\t</section>\n\n\t\t\t\t<!-- Gradient separator between header and content — only when open -->\n\t\t\t\t${when(\n\t\t\t\t\tthis.open,\n\t\t\t\t\t() =>\n\t\t\t\t\t\thtml`<div\n\t\t\t\t\t\t\tclass=\"h-px shrink-0 bg-linear-to-r from-transparent via-primary-default/30 to-transparent\"\n\t\t\t\t\t\t></div>`,\n\t\t\t\t)}\n\n\t\t\t\t<!-- Header / FAB section — always interactive, always visible -->\n\t\t\t\t<section\n\t\t\t\t\tclass=\"shrink-0 bg-surface-containerLowest\"\n\t\t\t\t\tstyle=${styleMap({ 'pointer-events': 'auto', height: `${FAB_HEIGHT}px` })}\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\t${ref(this._headerRef)}\n\t\t\t\t\t\tclass=${headerClasses}\n\t\t\t\t\t\ttitle=\"Drag to move\"\n\t\t\t\t\t\taria-label=\"Drag to reposition panel\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<!-- Summary slot rendered once — avoids DOM teardown on toggle -->\n\t\t\t\t\t\t<div class=\"flex-1 min-w-0\">\n\t\t\t\t\t\t\t<slot name=\"summary\"></slot>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<!-- Toggle button: collapse when open, expand when closed -->\n\t\t\t\t\t\t${when(\n\t\t\t\t\t\t\tthis.open,\n\t\t\t\t\t\t\t() => html`\n\t\t\t\t\t\t\t\t<schmancy-icon-button\n\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\tvariant=\"text\"\n\t\t\t\t\t\t\t\t\t@click=${(e: Event) => {\n\t\t\t\t\t\t\t\t\t\te.stopPropagation()\n\t\t\t\t\t\t\t\t\t\tthis.close()\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\ttitle=\"Collapse\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\tclose_fullscreen\n\t\t\t\t\t\t\t\t</schmancy-icon-button>\n\t\t\t\t\t\t\t`,\n\t\t\t\t\t\t\t() => html`\n\t\t\t\t\t\t\t\t<schmancy-icon-button\n\t\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t\tvariant=\"text\"\n\t\t\t\t\t\t\t\t\t@click=${(e: Event) => {\n\t\t\t\t\t\t\t\t\t\te.stopPropagation()\n\t\t\t\t\t\t\t\t\t\tthis.expand()\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\ttitle=\"Expand\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\tfullscreen\n\t\t\t\t\t\t\t\t</schmancy-icon-button>\n\t\t\t\t\t\t\t`,\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</section>\n\t\t\t</schmancy-surface>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-boat': SchmancyBoat\n\t}\n}\n"],"mappings":"2cAYA,IAAM,EAAa,GAEb,EAA8B,iBAUrB,EAAA,cAA2B,EAAA,CAAA,CAAA,YAAA,GAAA,EAAA,CAAA,MAAA,GAAA,EAAA,CAAA,KAAA,GAYA,UAAA,KAAA,QAAA,CAMsB,EAAA,KAAA,OAElB,eAAA,KAAA,KAAA,CAEe,EAAA,KAAA,WAAA,CAmB9B,EAAA,KAAA,UAGA,CAAE,EAAG,GAAI,EAAG,GAAA,CAAA,KAAA,eACA,eAAA,KAAA,eAAA,EAAA,EAAA,YAAA,CAAA,KAAA,aAAA,EAAA,EAAA,YAAA,CAAA,KAAA,YAAA,EAAA,EAAA,YAAA,CAAA,OAAA,KAAA,OA5C1B,CAAC,EAAA,GAAG;;;;;;;;;GA2BpB,IAAA,OAAI,CACH,OAAO,KAAK,KAAO,WAAa,YAEjC,IAAA,MAAU,EAAA,CACL,IAAQ,WACX,KAAK,QAAA,CAGL,KAAK,OAAA,CAqBP,IAAA,YAAY,CACX,OAAO,KAAK,eAAiB,iCAG9B,IAAA,gBAAY,CACX,OAAO,KAAK,eAAe,WAAW,SAAA,CAGvC,IAAA,gBAAY,CACX,OAAO,KAAK,eACT,kDACA,kDAGJ,IAAA,cAAY,CACX,MAAO,oCAGR,IA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