@mhmo91/schmancy 0.5.37 → 0.5.38
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/ai/boat.md +38 -106
- package/dist/ai/boat.md +38 -106
- package/dist/{animated-text-Cfs1zx2e.js → animated-text-B6BM8UAR.js} +3 -3
- package/dist/{animated-text-Cfs1zx2e.js.map → animated-text-B6BM8UAR.js.map} +1 -1
- package/dist/{animated-text-DoLx8YhT.cjs → animated-text-DMLVAWR9.cjs} +2 -2
- package/dist/{animated-text-DoLx8YhT.cjs.map → animated-text-DMLVAWR9.cjs.map} +1 -1
- package/dist/animated-text.cjs +1 -1
- package/dist/animated-text.js +1 -1
- package/dist/area.cjs +1 -1
- package/dist/{area.component-A6Xw-dfF.js → area.component-C0i1I-XN.js} +3 -3
- package/dist/{area.component-A6Xw-dfF.js.map → area.component-C0i1I-XN.js.map} +1 -1
- package/dist/{area.component-DMRF1lD-.cjs → area.component-D630N8ae.cjs} +2 -2
- package/dist/{area.component-DMRF1lD-.cjs.map → area.component-D630N8ae.cjs.map} +1 -1
- package/dist/area.js +1 -1
- package/dist/{autocomplete-C5DIxpTG.js → autocomplete-B8VgSG8j.js} +4 -4
- package/dist/{autocomplete-C5DIxpTG.js.map → autocomplete-B8VgSG8j.js.map} +1 -1
- package/dist/{autocomplete-DkJqOYTg.cjs → autocomplete-Dz24IUoU.cjs} +2 -2
- package/dist/{autocomplete-DkJqOYTg.cjs.map → autocomplete-Dz24IUoU.cjs.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/{avatar-BmcocEQ4.cjs → avatar-DqZd_LTf.cjs} +4 -4
- package/dist/{avatar-BmcocEQ4.cjs.map → avatar-DqZd_LTf.cjs.map} +1 -1
- package/dist/{avatar-BDy0wAek.js → avatar-b6tMCYC_.js} +55 -53
- package/dist/{avatar-BDy0wAek.js.map → avatar-b6tMCYC_.js.map} +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/{boat-DumUFcmT.js → boat-CQlfnrN3.js} +81 -93
- package/dist/boat-CQlfnrN3.js.map +1 -0
- package/dist/boat-CvWXHBGZ.cjs +83 -0
- package/dist/boat-CvWXHBGZ.cjs.map +1 -0
- package/dist/boat.cjs +1 -1
- package/dist/boat.js +1 -1
- package/dist/busy.cjs +1 -1
- package/dist/busy.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/{checkbox-CsMLbxBY.cjs → checkbox-BxVFUa5d.cjs} +2 -2
- package/dist/{checkbox-CsMLbxBY.cjs.map → checkbox-BxVFUa5d.cjs.map} +1 -1
- package/dist/{checkbox-CHG-gT2P.js → checkbox-IXHvFU8T.js} +2 -2
- package/dist/{checkbox-CHG-gT2P.js.map → checkbox-IXHvFU8T.js.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +2 -2
- package/dist/code-highlight.cjs +1 -1
- package/dist/code-highlight.js +1 -1
- package/dist/{code-preview-Bp4OemTD.js → code-preview-BckcSzge.js} +2 -2
- package/dist/{code-preview-Bp4OemTD.js.map → code-preview-BckcSzge.js.map} +1 -1
- package/dist/{code-preview-BgUU7bPR.cjs → code-preview-BtlXrJte.cjs} +2 -2
- package/dist/{code-preview-BgUU7bPR.cjs.map → code-preview-BtlXrJte.cjs.map} +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/content-drawer.cjs +1 -1
- package/dist/content-drawer.js +1 -1
- package/dist/{date-range-D_DBil9n.cjs → date-range-CEBvpz9I.cjs} +2 -2
- package/dist/{date-range-D_DBil9n.cjs.map → date-range-CEBvpz9I.cjs.map} +1 -1
- package/dist/{date-range-BcJ0YN2n.js → date-range-DJlpBhfg.js} +3 -3
- package/dist/{date-range-BcJ0YN2n.js.map → date-range-DJlpBhfg.js.map} +1 -1
- package/dist/{date-range-inline-Dqxqgu2s.js → date-range-inline-DUkLYZw-.js} +3 -3
- package/dist/{date-range-inline-Dqxqgu2s.js.map → date-range-inline-DUkLYZw-.js.map} +1 -1
- package/dist/{date-range-inline-DQjOVUxD.cjs → date-range-inline-svKzfEjk.cjs} +2 -2
- package/dist/{date-range-inline-DQjOVUxD.cjs.map → date-range-inline-svKzfEjk.cjs.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-BbtlKEc4.cjs → delay-dCJupQL7.cjs} +2 -2
- package/dist/{delay-BbtlKEc4.cjs.map → delay-dCJupQL7.cjs.map} +1 -1
- package/dist/{delay-CC_14mn4.js → delay-zFsG2bgS.js} +2 -2
- package/dist/{delay-CC_14mn4.js.map → delay-zFsG2bgS.js.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/{details-CTdm7rbG.cjs → details-63cgbcG4.cjs} +2 -2
- package/dist/{details-CTdm7rbG.cjs.map → details-63cgbcG4.cjs.map} +1 -1
- package/dist/{details-dk2hnRIp.js → details-zr1wF8T5.js} +2 -2
- package/dist/{details-dk2hnRIp.js.map → details-zr1wF8T5.js.map} +1 -1
- package/dist/details.cjs +1 -1
- package/dist/details.js +1 -1
- package/dist/{dialog-content-BSZ5dwnP.cjs → dialog-content-CCwZGDWl.cjs} +2 -2
- package/dist/{dialog-content-BSZ5dwnP.cjs.map → dialog-content-CCwZGDWl.cjs.map} +1 -1
- package/dist/{dialog-content-BM-lfqHq.js → dialog-content-D4hLDFG7.js} +3 -3
- package/dist/{dialog-content-BM-lfqHq.js.map → dialog-content-D4hLDFG7.js.map} +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/{divider-DgJXEKxB.cjs → divider-BDpbyVks.cjs} +2 -2
- package/dist/{divider-DgJXEKxB.cjs.map → divider-BDpbyVks.cjs.map} +1 -1
- package/dist/{divider-BWVdeJm1.js → divider-DXh9y_Nv.js} +3 -3
- package/dist/{divider-BWVdeJm1.js.map → divider-DXh9y_Nv.js.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/{dropdown-content-ZAB82v-h.cjs → dropdown-content-DGxquZCA.cjs} +2 -2
- package/dist/{dropdown-content-ZAB82v-h.cjs.map → dropdown-content-DGxquZCA.cjs.map} +1 -1
- package/dist/{dropdown-content-BgLy9dwU.js → dropdown-content-zM3fWF1d.js} +3 -3
- package/dist/{dropdown-content-BgLy9dwU.js.map → dropdown-content-zM3fWF1d.js.map} +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{email-recipients-IXQLqBaI.js → email-recipients-DqOHKxsV.js} +5 -5
- package/dist/{email-recipients-IXQLqBaI.js.map → email-recipients-DqOHKxsV.js.map} +1 -1
- package/dist/{email-recipients-R7jCXy_I.cjs → email-recipients-MvSCLUmk.cjs} +2 -2
- package/dist/{email-recipients-R7jCXy_I.cjs.map → email-recipients-MvSCLUmk.cjs.map} +1 -1
- package/dist/extra.cjs +1 -1
- package/dist/extra.js +1 -1
- package/dist/{flex-Cp1nomar.js → flex-BjpIb0Xr.js} +2 -2
- package/dist/{flex-Cp1nomar.js.map → flex-BjpIb0Xr.js.map} +1 -1
- package/dist/{flex-sAQsXdsk.cjs → flex-D1NZuZez.cjs} +2 -2
- package/dist/{flex-sAQsXdsk.cjs.map → flex-D1NZuZez.cjs.map} +1 -1
- package/dist/{form-DHTbrnEl.cjs → form-CRPFTmNd.cjs} +2 -2
- package/dist/{form-DHTbrnEl.cjs.map → form-CRPFTmNd.cjs.map} +1 -1
- package/dist/{form-Dtc128QU.js → form-UlL9mkQq.js} +2 -2
- package/dist/{form-Dtc128QU.js.map → form-UlL9mkQq.js.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/{formField.mixin-CCB_CKYb.js → formField.mixin-6_cx2CQR.js} +2 -2
- package/dist/{formField.mixin-CCB_CKYb.js.map → formField.mixin-6_cx2CQR.js.map} +1 -1
- package/dist/{formField.mixin-CZQ7alVs.cjs → formField.mixin-CXYETznz.cjs} +2 -2
- package/dist/{formField.mixin-CZQ7alVs.cjs.map → formField.mixin-CXYETznz.cjs.map} +1 -1
- package/dist/{icon-CocdSdlX.cjs → icon-BjvTgGum.cjs} +2 -2
- package/dist/{icon-CocdSdlX.cjs.map → icon-BjvTgGum.cjs.map} +1 -1
- package/dist/{icon-BHhOyVjB.js → icon-Ce_dFWKs.js} +2 -2
- package/dist/{icon-BHhOyVjB.js.map → icon-Ce_dFWKs.js.map} +1 -1
- package/dist/{icon-button-CjSaBrg0.js → icon-button-BLp0zzBs.js} +3 -3
- package/dist/{icon-button-CjSaBrg0.js.map → icon-button-BLp0zzBs.js.map} +1 -1
- package/dist/{icon-button-m8kXxOvS.cjs → icon-button-yr8UowN8.cjs} +2 -2
- package/dist/{icon-button-m8kXxOvS.cjs.map → icon-button-yr8UowN8.cjs.map} +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +49 -49
- package/dist/{input-BuDPnk5e.cjs → input-BbBgA67h.cjs} +2 -2
- package/dist/{input-BuDPnk5e.cjs.map → input-BbBgA67h.cjs.map} +1 -1
- package/dist/{input-D_gdNxxR.js → input-FbaIdP-U.js} +3 -3
- package/dist/{input-D_gdNxxR.js.map → input-FbaIdP-U.js.map} +1 -1
- package/dist/{input-chip-CDLblIp9.cjs → input-chip-B49269QA.cjs} +2 -2
- package/dist/{input-chip-CDLblIp9.cjs.map → input-chip-B49269QA.cjs.map} +1 -1
- package/dist/{input-chip-CLnR4vSR.js → input-chip-r5DIdtls.js} +2 -2
- package/dist/{input-chip-CLnR4vSR.js.map → input-chip-r5DIdtls.js.map} +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.js +1 -1
- package/dist/{list-KCakyWxw.cjs → list-BLG8XA7G.cjs} +2 -2
- package/dist/{list-KCakyWxw.cjs.map → list-BLG8XA7G.cjs.map} +1 -1
- package/dist/{list-C069T9ey.js → list-QEY7H4eL.js} +2 -2
- package/dist/{list-C069T9ey.js.map → list-QEY7H4eL.js.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{litElement.mixin-Dp4mBSNw.js → litElement.mixin-D5MC2dPM.js} +2 -2
- package/dist/{litElement.mixin-Dp4mBSNw.js.map → litElement.mixin-D5MC2dPM.js.map} +1 -1
- package/dist/{litElement.mixin-DoBMt4ia.cjs → litElement.mixin-Dmtg7y_h.cjs} +2 -2
- package/dist/{litElement.mixin-DoBMt4ia.cjs.map → litElement.mixin-Dmtg7y_h.cjs.map} +1 -1
- package/dist/mailbox.cjs +1 -1
- package/dist/mailbox.js +1 -1
- package/dist/{map-vNMrrat-.cjs → map-BygoKmAX.cjs} +2 -2
- package/dist/{map-vNMrrat-.cjs.map → map-BygoKmAX.cjs.map} +1 -1
- package/dist/{map-pn_6ziZf.js → map-DY3fXMM4.js} +2 -2
- package/dist/{map-pn_6ziZf.js.map → map-DY3fXMM4.js.map} +1 -1
- package/dist/map.cjs +1 -1
- package/dist/map.js +1 -1
- package/dist/{media-CAtXPif3.cjs → media-BFkmF0pK.cjs} +2 -2
- package/dist/{media-CAtXPif3.cjs.map → media-BFkmF0pK.cjs.map} +1 -1
- package/dist/{media-DC3r4y8-.js → media-ChpYwvB3.js} +2 -2
- package/dist/{media-DC3r4y8-.js.map → media-ChpYwvB3.js.map} +1 -1
- package/dist/{menu-C2ZKJe1g.cjs → menu-BXHjDZge.cjs} +2 -2
- package/dist/{menu-C2ZKJe1g.cjs.map → menu-BXHjDZge.cjs.map} +1 -1
- package/dist/{menu-BAs2snSu.js → menu-gLYzAVLB.js} +3 -3
- package/dist/{menu-BAs2snSu.js.map → menu-gLYzAVLB.js.map} +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.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-KdVjbO1I.js → navigation-rail-SPrrtWOS.js} +22 -20
- package/dist/{navigation-rail-KdVjbO1I.js.map → navigation-rail-SPrrtWOS.js.map} +1 -1
- package/dist/{navigation-rail-B0zofile.cjs → navigation-rail-luQXsJ36.cjs} +7 -7
- package/dist/{navigation-rail-B0zofile.cjs.map → navigation-rail-luQXsJ36.cjs.map} +1 -1
- package/dist/navigation-rail.cjs +1 -1
- package/dist/navigation-rail.js +1 -1
- package/dist/{notification-service-BOCdK7B0.js → notification-service-Bzxf4TIc.js} +4 -4
- package/dist/{notification-service-BOCdK7B0.js.map → notification-service-Bzxf4TIc.js.map} +1 -1
- package/dist/{notification-service-DXsySIdG.cjs → notification-service-uoprkE19.cjs} +2 -2
- package/dist/{notification-service-DXsySIdG.cjs.map → notification-service-uoprkE19.cjs.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +2 -2
- package/dist/{notify-Cglpgay3.js → notify-BK0mniGw.js} +2 -2
- package/dist/{notify-Cglpgay3.js.map → notify-BK0mniGw.js.map} +1 -1
- package/dist/{notify-CvDL-o79.cjs → notify-BhSCT3Xk.cjs} +2 -2
- package/dist/{notify-CvDL-o79.cjs.map → notify-BhSCT3Xk.cjs.map} +1 -1
- package/dist/{option-tDU1Z_vP.js → option-BZue6YG8.js} +2 -2
- package/dist/{option-tDU1Z_vP.js.map → option-BZue6YG8.js.map} +1 -1
- package/dist/{option-ezGy71aI.cjs → option-Kk_GQY6j.cjs} +2 -2
- package/dist/{option-ezGy71aI.cjs.map → option-Kk_GQY6j.cjs.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{payment-card-form-B5b-LA2Y.cjs → payment-card-form-BcKkjxkm.cjs} +2 -2
- package/dist/{payment-card-form-B5b-LA2Y.cjs.map → payment-card-form-BcKkjxkm.cjs.map} +1 -1
- package/dist/{payment-card-form-CZpc-zfO.js → payment-card-form-C3JgpEIE.js} +3 -3
- package/dist/{payment-card-form-CZpc-zfO.js.map → payment-card-form-C3JgpEIE.js.map} +1 -1
- package/dist/{progress-OMGbiNv5.cjs → progress-BXnQuNBd.cjs} +2 -2
- package/dist/{progress-OMGbiNv5.cjs.map → progress-BXnQuNBd.cjs.map} +1 -1
- package/dist/{progress-Bqih11TQ.js → progress-CPGV-HHh.js} +2 -2
- package/dist/{progress-Bqih11TQ.js.map → progress-CPGV-HHh.js.map} +1 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.js +1 -1
- package/dist/{radio-button-BuSpPTO4.cjs → radio-button-DDgwyanN.cjs} +2 -2
- package/dist/{radio-button-BuSpPTO4.cjs.map → radio-button-DDgwyanN.cjs.map} +1 -1
- package/dist/{radio-button-mHT1573u.js → radio-button-Dsv9rYTJ.js} +3 -3
- package/dist/{radio-button-mHT1573u.js.map → radio-button-Dsv9rYTJ.js.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/{schmancy-steps-container-Bht_BlLU.cjs → schmancy-steps-container-C7evWzAc.cjs} +2 -2
- package/dist/{schmancy-steps-container-Bht_BlLU.cjs.map → schmancy-steps-container-C7evWzAc.cjs.map} +1 -1
- package/dist/{schmancy-steps-container-DDMiJJyw.js → schmancy-steps-container-Cbzqrhes.js} +2 -2
- package/dist/{schmancy-steps-container-DDMiJJyw.js.map → schmancy-steps-container-Cbzqrhes.js.map} +1 -1
- package/dist/{select-HPtumqyg.cjs → select-BuZt9KsB.cjs} +2 -2
- package/dist/{select-HPtumqyg.cjs.map → select-BuZt9KsB.cjs.map} +1 -1
- package/dist/{select-CKtpFPTr.js → select-Ru5E-2M3.js} +3 -3
- package/dist/{select-CKtpFPTr.js.map → select-Ru5E-2M3.js.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/{sheet-B-vTiTi8.js → sheet-Cta5o1Yq.js} +3 -3
- package/dist/{sheet-B-vTiTi8.js.map → sheet-Cta5o1Yq.js.map} +1 -1
- package/dist/{sheet-DP7nFOEo.cjs → sheet-Dg6bkAGj.cjs} +2 -2
- package/dist/{sheet-DP7nFOEo.cjs.map → sheet-Dg6bkAGj.cjs.map} +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/{slider-Bu7kQ0_w.js → slider-C7pfCYir.js} +3 -3
- package/dist/{slider-Bu7kQ0_w.js.map → slider-C7pfCYir.js.map} +1 -1
- package/dist/{slider-Diqgkt3E.cjs → slider-CDhICxOr.cjs} +2 -2
- package/dist/{slider-Diqgkt3E.cjs.map → slider-CDhICxOr.cjs.map} +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{spinner-paAzgY93.js → spinner-6-lTUGhs.js} +2 -2
- package/dist/{spinner-paAzgY93.js.map → spinner-6-lTUGhs.js.map} +1 -1
- package/dist/{spinner-b6hiAljR.cjs → spinner-nAYWwwNr.cjs} +2 -2
- package/dist/{spinner-b6hiAljR.cjs.map → spinner-nAYWwwNr.cjs.map} +1 -1
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/{suggestion-chip-DnnfUAqx.js → suggestion-chip-5_s9HR2Y.js} +3 -3
- package/dist/{suggestion-chip-DnnfUAqx.js.map → suggestion-chip-5_s9HR2Y.js.map} +1 -1
- package/dist/{suggestion-chip--FVeCUSI.cjs → suggestion-chip-CsGRZal0.cjs} +2 -2
- package/dist/{suggestion-chip--FVeCUSI.cjs.map → suggestion-chip-CsGRZal0.cjs.map} +1 -1
- package/dist/{surface-BBhAIoZq.js → surface-D5c_ddsq.js} +2 -2
- package/dist/{surface-BBhAIoZq.js.map → surface-D5c_ddsq.js.map} +1 -1
- package/dist/{surface-SICYUsoB.cjs → surface-EDSS-N2K.cjs} +2 -2
- package/dist/{surface-SICYUsoB.cjs.map → surface-EDSS-N2K.cjs.map} +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/{table-CepjNGT6.js → table-5TjWY5RR.js} +2 -2
- package/dist/{table-CepjNGT6.js.map → table-5TjWY5RR.js.map} +1 -1
- package/dist/{table-yYKET4qQ.cjs → table-B_GbZCU6.cjs} +2 -2
- package/dist/{table-yYKET4qQ.cjs.map → table-B_GbZCU6.cjs.map} +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-compatibility-BWaRkr9s.cjs → tabs-compatibility-byG-7uxY.cjs} +2 -2
- package/dist/{tabs-compatibility-BWaRkr9s.cjs.map → tabs-compatibility-byG-7uxY.cjs.map} +1 -1
- package/dist/{tabs-compatibility-BXdyrybs.js → tabs-compatibility-eM8y7Hkw.js} +2 -2
- package/dist/{tabs-compatibility-BXdyrybs.js.map → tabs-compatibility-eM8y7Hkw.js.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tailwind.mixin-BOTmjQKh.js +64 -0
- package/dist/{tailwind.mixin-Cn7vup-6.js.map → tailwind.mixin-BOTmjQKh.js.map} +1 -1
- package/dist/tailwind.mixin-SjjyWekZ.cjs +2 -0
- package/dist/{tailwind.mixin-CYhJgwwb.cjs.map → tailwind.mixin-SjjyWekZ.cjs.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-BpNEwBP9.js → textarea-Ba0EbwKj.js} +2 -2
- package/dist/{textarea-BpNEwBP9.js.map → textarea-Ba0EbwKj.js.map} +1 -1
- package/dist/{textarea-Xgbs3rjA.cjs → textarea-C5G_bBP8.cjs} +2 -2
- package/dist/{textarea-Xgbs3rjA.cjs.map → textarea-C5G_bBP8.cjs.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-button-77xbTIaH.js → theme-button--FRHwiCC.js} +2 -2
- package/dist/{theme-button-77xbTIaH.js.map → theme-button--FRHwiCC.js.map} +1 -1
- package/dist/{theme-button-BsjsULjH.cjs → theme-button-BiQ-jfG4.cjs} +2 -2
- package/dist/{theme-button-BsjsULjH.cjs.map → theme-button-BiQ-jfG4.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.controls-BeNS8iSM.cjs → theme.controls-BPnEjft1.cjs} +2 -2
- package/dist/{theme.controls-BeNS8iSM.cjs.map → theme.controls-BPnEjft1.cjs.map} +1 -1
- package/dist/{theme.controls-DtcpHuz9.js → theme.controls-Bua4rENX.js} +3 -3
- package/dist/{theme.controls-DtcpHuz9.js.map → theme.controls-Bua4rENX.js.map} +1 -1
- package/dist/theme.js +1 -1
- package/dist/{timezone-D3kdUX6c.cjs → timezone-CCvqNgyF.cjs} +2 -2
- package/dist/{timezone-D3kdUX6c.cjs.map → timezone-CCvqNgyF.cjs.map} +1 -1
- package/dist/{timezone-CtH2a7Hw.js → timezone-D54Cff6x.js} +3 -3
- package/dist/{timezone-CtH2a7Hw.js.map → timezone-D54Cff6x.js.map} +1 -1
- package/dist/{tooltip-DgGZouB5.js → tooltip-C8m-rfYS.js} +2 -2
- package/dist/{tooltip-DgGZouB5.js.map → tooltip-C8m-rfYS.js.map} +1 -1
- package/dist/{tooltip-BwZ_zIEI.cjs → tooltip-CCl6ctrG.cjs} +2 -2
- package/dist/{tooltip-BwZ_zIEI.cjs.map → tooltip-CCl6ctrG.cjs.map} +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/{tree-B9fWtaGW.cjs → tree-COuLggJS.cjs} +2 -2
- package/dist/{tree-B9fWtaGW.cjs.map → tree-COuLggJS.cjs.map} +1 -1
- package/dist/{tree-BSENnhB2.js → tree-t1IWaICA.js} +2 -2
- package/dist/{tree-BSENnhB2.js.map → tree-t1IWaICA.js.map} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/{typewriter-BCXtlffJ.js → typewriter-B1SrKdhR.js} +4 -4
- package/dist/{typewriter-BCXtlffJ.js.map → typewriter-B1SrKdhR.js.map} +1 -1
- package/dist/{typewriter-DeNR2E_p.cjs → typewriter-iHUlWvZZ.cjs} +2 -2
- package/dist/{typewriter-DeNR2E_p.cjs.map → typewriter-iHUlWvZZ.cjs.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{typography-Cm7pGqRe.cjs → typography-J_EEO2HF.cjs} +2 -2
- package/dist/{typography-Cm7pGqRe.cjs.map → typography-J_EEO2HF.cjs.map} +1 -1
- package/dist/{typography-sxQLtA6a.js → typography-X_jjdG7E.js} +2 -2
- package/dist/{typography-sxQLtA6a.js.map → typography-X_jjdG7E.js.map} +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/package.json +1 -1
- package/types/src/boat/boat.d.ts +3 -3
- package/types/src/navigation-bar/navigation-bar.d.ts +2 -1
- package/types/src/navigation-rail/navigation-rail.d.ts +2 -3
- package/dist/boat-CfIXRMn-.cjs +0 -78
- package/dist/boat-CfIXRMn-.cjs.map +0 -1
- package/dist/boat-DumUFcmT.js.map +0 -1
- package/dist/tailwind.mixin-CYhJgwwb.cjs +0 -2
- package/dist/tailwind.mixin-Cn7vup-6.js +0 -64
package/dist/badge.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./avatar-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./avatar-DqZd_LTf.cjs");Object.defineProperty(exports,"ScBadgeV2",{enumerable:!0,get:()=>e.ScBadgeV2}),Object.defineProperty(exports,"SchmancyBadgeV2",{enumerable:!0,get:()=>e.SchmancyBadgeV2});
|
|
2
2
|
//# sourceMappingURL=badge.cjs.map
|
package/dist/badge.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { fromEvent as
|
|
2
|
-
import { takeUntil as
|
|
1
|
+
import { fromEvent as l, race as z, merge as A } from "rxjs";
|
|
2
|
+
import { takeUntil as x, filter as R, tap as b, take as P, map as f, switchMap as Y, finalize as D } from "rxjs/operators";
|
|
3
3
|
import "lit/directives/class-map.js";
|
|
4
4
|
import "lit/directives/style-map.js";
|
|
5
|
-
import { property as
|
|
6
|
-
import "./tailwind.mixin-
|
|
7
|
-
import { $ as
|
|
8
|
-
import { css as
|
|
9
|
-
import { createRef as
|
|
10
|
-
var
|
|
11
|
-
for (var
|
|
12
|
-
return i &&
|
|
5
|
+
import { property as y, state as g, customElement as I } from "lit/decorators.js";
|
|
6
|
+
import "./tailwind.mixin-BOTmjQKh.js";
|
|
7
|
+
import { $ as _ } from "./litElement.mixin-D5MC2dPM.js";
|
|
8
|
+
import { css as M, html as u } from "lit";
|
|
9
|
+
import { createRef as $, ref as w } from "lit/directives/ref.js";
|
|
10
|
+
var X = Object.defineProperty, F = Object.getOwnPropertyDescriptor, h = (t, e, n, i) => {
|
|
11
|
+
for (var s, a = i > 1 ? void 0 : i ? F(e, n) : e, o = t.length - 1; o >= 0; o--) (s = t[o]) && (a = (i ? s(e, n, a) : s(a)) || a);
|
|
12
|
+
return i && a && X(e, n, a), a;
|
|
13
13
|
};
|
|
14
|
-
let c = class extends
|
|
14
|
+
let c = class extends _(M`
|
|
15
15
|
:host {
|
|
16
16
|
display: contents;
|
|
17
17
|
}
|
|
18
18
|
`) {
|
|
19
19
|
constructor() {
|
|
20
|
-
super(...arguments), this.id = "default", this.containerRef =
|
|
20
|
+
super(...arguments), this.id = "default", this.containerRef = $(), this.contentRef = $(), this.iconRef = $(), this.headerRef = $(), this.ANIMATION_CONFIG = { durations: { expand: 350, minimize: 250, hide: 200, content: 300 }, easing: { emphasized: "cubic-bezier(0.2, 0.0, 0, 1.0)", decelerate: "cubic-bezier(0.05, 0.7, 0.1, 1.0)", accelerate: "cubic-bezier(0.3, 0.0, 0.8, 0.15)", standard: "cubic-bezier(0.4, 0.0, 0.2, 1)" }, shadows: { fab: "0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)", fabLowered: "0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.12)", expanded: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)" } }, this.currentState = "minimized", this.isContentVisible = !1, this.isAnimating = !1, this.isLowered = !1, this.isDragging = !1, this.position = { x: 16, y: 16 }, this.anchor = "bottom-right";
|
|
21
21
|
}
|
|
22
22
|
get state() {
|
|
23
23
|
return this.currentState;
|
|
@@ -32,9 +32,9 @@ let c = class extends Y(N`
|
|
|
32
32
|
this.isLowered = t, this.requestUpdate();
|
|
33
33
|
}
|
|
34
34
|
connectedCallback() {
|
|
35
|
-
super.connectedCallback(), typeof window < "u" && (
|
|
35
|
+
super.connectedCallback(), typeof window < "u" && (l(window, "resize").pipe(x(this.disconnecting)).subscribe(() => {
|
|
36
36
|
this.currentState === "expanded" && this.updateExpandedWidth();
|
|
37
|
-
}),
|
|
37
|
+
}), l(window, "keydown").pipe(R((t) => t.key === "Escape" && this.currentState !== "hidden"), b((t) => t.preventDefault()), x(this.disconnecting)).subscribe(() => {
|
|
38
38
|
this.currentState === "expanded" ? this.toggleState() : this.close();
|
|
39
39
|
}));
|
|
40
40
|
}
|
|
@@ -66,14 +66,14 @@ let c = class extends Y(N`
|
|
|
66
66
|
n.container && (this.currentAnimation = n.container, await n.container.finished, e !== "expanded" && (this.isContentVisible = !1));
|
|
67
67
|
}
|
|
68
68
|
createAnimations(t, e) {
|
|
69
|
-
const n = this.containerRef.value, i = this.contentRef.value,
|
|
70
|
-
if (!n) return
|
|
71
|
-
const o = this.ANIMATION_CONFIG,
|
|
72
|
-
if (
|
|
73
|
-
const
|
|
74
|
-
(
|
|
69
|
+
const n = this.containerRef.value, i = this.contentRef.value, s = this.iconRef.value, a = {};
|
|
70
|
+
if (!n) return a;
|
|
71
|
+
const o = this.ANIMATION_CONFIG, m = this.getStyleForState(t), d = this.getStyleForState(e);
|
|
72
|
+
if (a.container = e === "expanded" ? n.animate([m, d], { duration: o.durations.expand, easing: o.easing.decelerate, fill: "forwards" }) : n.animate([m, d], { duration: e === "hidden" ? o.durations.hide : o.durations.minimize, easing: o.easing.accelerate, fill: "forwards" }), i && t === "expanded" && e === "minimized" ? i.animate([{ opacity: 1, transform: "translateY(0)" }, { opacity: 0, transform: "translateY(-8px)" }], { duration: 150, easing: o.easing.standard, fill: "forwards" }) : i && e === "expanded" && i.animate([{ opacity: 0, transform: "translateY(8px)" }, { opacity: 1, transform: "translateY(0)" }], { duration: o.durations.content, easing: o.easing.standard, fill: "forwards" }), s) {
|
|
73
|
+
const p = e === "expanded";
|
|
74
|
+
(p || t === "expanded" && e === "minimized") && s.animate([{ transform: p ? "rotate(0deg)" : "rotate(180deg)" }, { transform: p ? "rotate(180deg)" : "rotate(0deg)" }], { duration: 250, easing: o.easing.emphasized, fill: "forwards" });
|
|
75
75
|
}
|
|
76
|
-
return
|
|
76
|
+
return a;
|
|
77
77
|
}
|
|
78
78
|
getStyleForState(t) {
|
|
79
79
|
const { shadows: e } = this.ANIMATION_CONFIG, n = { maxWidth: "300px", maxHeight: "auto", borderRadius: "16px" };
|
|
@@ -89,7 +89,7 @@ let c = class extends Y(N`
|
|
|
89
89
|
t && this.currentState === "expanded" && (t.style.width = this.getResponsiveWidth());
|
|
90
90
|
}
|
|
91
91
|
firstUpdated() {
|
|
92
|
-
this.initializePosition(), this.applyInitialStyles(), this.updateContainerPosition(), this.setupDragPipeline();
|
|
92
|
+
this.initializePosition(), this.applyInitialStyles(), this.updateContainerPosition(), this.setupDragPipeline(), this.querySelector('[slot="header"]') && !this.icon && this.label;
|
|
93
93
|
}
|
|
94
94
|
applyInitialStyles() {
|
|
95
95
|
const t = this.containerRef.value, e = this.contentRef.value, n = this.iconRef.value;
|
|
@@ -107,41 +107,24 @@ let c = class extends Y(N`
|
|
|
107
107
|
this.animateToState("hidden");
|
|
108
108
|
}
|
|
109
109
|
closeAndAddToNav() {
|
|
110
|
-
|
|
110
|
+
z(this.discover("schmancy-navigation-rail"), this.discover("schmancy-navigation-bar"), this.discover("schmancy-nav-drawer"), this.discover("app-navigation-rail"), this.discover("app-navigation-bar"), this.discover("app-nav-drawer")).pipe(P(1), b((t) => {
|
|
111
111
|
if (t && typeof t.addBoatItem == "function") {
|
|
112
|
-
const e = this.querySelector('[slot="header"]')
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
this.
|
|
118
|
-
|
|
112
|
+
const e = this.icon || (this.querySelector('[slot="header"]')?.querySelector("schmancy-icon")?.textContent?.trim() || "widgets"), n = this.label || (() => {
|
|
113
|
+
let a = this.querySelector('[slot="header"]')?.textContent?.trim() || "Boat";
|
|
114
|
+
return a.includes(e) && (a = a.replace(e, "").trim()), a || this.id;
|
|
115
|
+
})(), i = t.addBoatItem({ id: `boat-${this.id}`, title: n, icon: e });
|
|
116
|
+
if (i) {
|
|
117
|
+
const s = this.containerRef.value;
|
|
118
|
+
s ? s.animate([{ opacity: 1 }, { opacity: 0 }], { duration: 150, easing: "ease-out", fill: "forwards" }).finished.then(() => {
|
|
119
|
+
this.currentState = "hidden", this.isContentVisible = !1;
|
|
120
|
+
}) : (this.currentState = "hidden", this.isContentVisible = !1), l(i, "click").pipe(b(() => this.state = "expanded"), x(this.disconnecting)).subscribe();
|
|
121
|
+
}
|
|
119
122
|
} else this.close();
|
|
120
123
|
})).subscribe();
|
|
121
124
|
}
|
|
122
|
-
|
|
123
|
-
const e = this.
|
|
124
|
-
|
|
125
|
-
const n = e.getBoundingClientRect(), i = t.getBoundingClientRect();
|
|
126
|
-
this.currentAnimation?.cancel();
|
|
127
|
-
const a = [{ transform: "scale(1) translate3d(0, 0, 0)", opacity: 1, borderRadius: "8px" }, { transform: `scale(0.3) translate3d(${i.left - n.left}px, ${i.top - n.top}px, 0)`, opacity: 0.5, borderRadius: "50%" }, { transform: `scale(0) translate3d(${i.left - n.left}px, ${i.top - n.top}px, 0)`, opacity: 0, borderRadius: "50%" }];
|
|
128
|
-
this.currentAnimation = e.animate(a, { duration: 600, easing: "cubic-bezier(0.4, 0.0, 0.2, 1)", fill: "forwards" }), await this.currentAnimation.finished, this.currentState = "hidden";
|
|
129
|
-
}
|
|
130
|
-
animateFromNavItem(t) {
|
|
131
|
-
const e = this.containerRef.value;
|
|
132
|
-
if (!e) return;
|
|
133
|
-
const n = t.getBoundingClientRect();
|
|
134
|
-
e.style.transformOrigin = `${n.left}px ${n.top}px`, this.currentAnimation?.cancel();
|
|
135
|
-
const i = [{ transform: `scale(0) translate3d(${n.left}px, ${n.top}px, 0)`, opacity: 0, borderRadius: "50%" }, { transform: "scale(0.5) translate3d(0, 0, 0)", opacity: 0.5, borderRadius: "24px" }, { transform: "scale(1) translate3d(0, 0, 0)", opacity: 1, borderRadius: "8px" }];
|
|
136
|
-
this.currentAnimation = e.animate(i, { duration: 400, easing: "cubic-bezier(0.2, 0.0, 0, 1.0)", fill: "forwards" }), this.currentState = "expanded", this.isContentVisible = !0, this.bringToFront();
|
|
137
|
-
}
|
|
138
|
-
bringToFront() {
|
|
139
|
-
const t = this.containerRef.value;
|
|
140
|
-
t && (t.style.zIndex = String(1e4 + Date.now() % 1e3));
|
|
141
|
-
}
|
|
142
|
-
calculateDragPosition(t, e, n, i, a) {
|
|
143
|
-
const s = t - n, o = e - i, l = window.innerWidth, p = window.innerHeight, h = Math.max(0, Math.min(s, l - a.width)), y = Math.max(0, Math.min(o, p - a.height)), r = this.anchor.includes("right") ? l - (h + a.width) : h, x = this.anchor.includes("bottom") ? p - (y + a.height) : y;
|
|
144
|
-
return { x: Math.max(0, r), y: Math.max(0, x) };
|
|
125
|
+
calculateDragPosition(t, e, n, i, s) {
|
|
126
|
+
const a = t - n, o = e - i, m = window.innerWidth, d = window.innerHeight, p = Math.max(0, Math.min(a, m - s.width)), v = Math.max(0, Math.min(o, d - s.height)), r = this.anchor.includes("right") ? m - (p + s.width) : p, S = this.anchor.includes("bottom") ? d - (v + s.height) : v;
|
|
127
|
+
return { x: Math.max(0, r), y: Math.max(0, S) };
|
|
145
128
|
}
|
|
146
129
|
savePosition() {
|
|
147
130
|
if (typeof window > "u") return;
|
|
@@ -153,22 +136,22 @@ let c = class extends Y(N`
|
|
|
153
136
|
const t = this.headerRef.value, e = this.containerRef.value;
|
|
154
137
|
if (!t || !e) return;
|
|
155
138
|
let n = !1;
|
|
156
|
-
|
|
139
|
+
A(l(t, "mousedown").pipe(R((i) => i.button === 0), b((i) => {
|
|
157
140
|
i.preventDefault(), i.stopPropagation();
|
|
158
|
-
}), f((i) => ({ clientX: i.clientX, clientY: i.clientY, type: "mouse" }))),
|
|
141
|
+
}), f((i) => ({ clientX: i.clientX, clientY: i.clientY, type: "mouse" }))), l(t, "touchstart").pipe(f((i) => ({ clientX: i.touches[0].clientX, clientY: i.touches[0].clientY, type: "touch" })))).pipe(f(({ clientX: i, clientY: s, type: a }) => {
|
|
159
142
|
const o = e.getBoundingClientRect();
|
|
160
|
-
return n = !1, { startX: i, startY:
|
|
161
|
-
})).pipe(
|
|
162
|
-
const
|
|
163
|
-
return
|
|
164
|
-
const
|
|
165
|
-
return Math.sqrt(
|
|
166
|
-
}),
|
|
143
|
+
return n = !1, { startX: i, startY: s, offsetX: i - o.left, offsetY: s - o.top, initialRect: o, type: a };
|
|
144
|
+
})).pipe(Y(({ startX: i, startY: s, offsetX: a, offsetY: o, initialRect: m, type: d }) => {
|
|
145
|
+
const p = d === "mouse" ? l(window, "mousemove").pipe(f((r) => ({ clientX: r.clientX, clientY: r.clientY }))) : l(window, "touchmove").pipe(f((r) => ({ clientX: r.touches[0].clientX, clientY: r.touches[0].clientY }))), v = l(window, d === "mouse" ? "mouseup" : "touchend");
|
|
146
|
+
return p.pipe(f(({ clientX: r, clientY: S }) => {
|
|
147
|
+
const C = r - i, k = S - s;
|
|
148
|
+
return Math.sqrt(C * C + k * k) > 5 && !n && (n = !0, this.isDragging = !0), n ? this.calculateDragPosition(r, S, a, o, m) : null;
|
|
149
|
+
}), R((r) => r !== null), b((r) => {
|
|
167
150
|
r && (this.position = r, this.updateContainerPosition());
|
|
168
|
-
}),
|
|
151
|
+
}), x(v));
|
|
169
152
|
}), D(() => {
|
|
170
153
|
n ? (this.updateAnchor(), this.savePosition()) : this.toggleState(), this.isDragging = !1, n = !1;
|
|
171
|
-
}),
|
|
154
|
+
}), x(this.disconnecting)).subscribe();
|
|
172
155
|
}
|
|
173
156
|
updateContainerPosition() {
|
|
174
157
|
const t = this.containerRef.value;
|
|
@@ -178,18 +161,22 @@ let c = class extends Y(N`
|
|
|
178
161
|
if (typeof window > "u") return;
|
|
179
162
|
const t = this.containerRef.value;
|
|
180
163
|
if (!t) return;
|
|
181
|
-
const e = t.getBoundingClientRect(), n = window.innerWidth, i = window.innerHeight,
|
|
182
|
-
o !== this.anchor && (this.position.x =
|
|
164
|
+
const e = t.getBoundingClientRect(), n = window.innerWidth, i = window.innerHeight, s = e.left > n / 2, a = e.top > i / 2, o = `${a ? "bottom" : "top"}-${s ? "right" : "left"}`;
|
|
165
|
+
o !== this.anchor && (this.position.x = s ? n - e.right : e.left, this.position.y = a ? i - e.bottom : e.top, this.anchor = o);
|
|
183
166
|
}
|
|
184
167
|
disconnectedCallback() {
|
|
185
168
|
super.disconnectedCallback(), this.currentAnimation?.cancel();
|
|
186
169
|
}
|
|
187
170
|
render() {
|
|
188
|
-
const t = this.currentState === "minimized" ? this.isLowered ? "1" : "3" : "4", e = this.currentState === "minimized", n = { fixed: !0, "overflow-y-auto": !0, flex: !0, "flex-col": !0, "
|
|
189
|
-
return
|
|
190
|
-
<div
|
|
171
|
+
const t = this.currentState === "minimized" ? this.isLowered ? "1" : "3" : "4", e = this.currentState === "minimized", n = this.anchor.includes("bottom") ? this.anchor.includes("right") ? "bottom right" : "bottom left" : this.anchor.includes("right") ? "top right" : "top left", i = { "z-50": !0, fixed: !0, "overflow-y-auto": !0, flex: !0, "flex-col": !0, "select-none": !0, "will-change-transform": !0, "[contain:layout_style]": !0, "[transform:translate3d(0,0,0)]": !0, "[backface-visibility:hidden]": !0, "transition-shadow": !0, "opacity-95": this.isDragging, "shadow-[0_24px_48px_-8px_rgba(0,0,0,0.2),0_12px_24px_-4px_rgba(0,0,0,0.12)]": this.isDragging };
|
|
172
|
+
return u`
|
|
173
|
+
<div
|
|
174
|
+
class=${this.classMap(i)}
|
|
175
|
+
style="transform-origin: ${n}"
|
|
176
|
+
${w(this.containerRef)}
|
|
177
|
+
>
|
|
191
178
|
<!-- Header section -->
|
|
192
|
-
<section class="sticky top-0
|
|
179
|
+
<section class="sticky top-0">
|
|
193
180
|
<schmancy-surface
|
|
194
181
|
elevation="${t}"
|
|
195
182
|
rounded="${e ? "none" : "top"}"
|
|
@@ -197,10 +184,10 @@ let c = class extends Y(N`
|
|
|
197
184
|
>
|
|
198
185
|
<div
|
|
199
186
|
class="group sticky top-0 px-3 py-2 flex items-center justify-between gap-3 ${this.isDragging ? "cursor-grabbing" : "cursor-move"}"
|
|
200
|
-
${
|
|
187
|
+
${w(this.headerRef)}
|
|
201
188
|
title="Drag to move, double-click to toggle"
|
|
202
|
-
@dblclick=${(
|
|
203
|
-
|
|
189
|
+
@dblclick=${(s) => {
|
|
190
|
+
s.preventDefault(), s.stopPropagation(), this.toggleState();
|
|
204
191
|
}}
|
|
205
192
|
>
|
|
206
193
|
<!-- Drag handle indicator -->
|
|
@@ -210,42 +197,48 @@ let c = class extends Y(N`
|
|
|
210
197
|
<schmancy-icon style="font-size: 20px">drag_indicator</schmancy-icon>
|
|
211
198
|
</div>
|
|
212
199
|
|
|
213
|
-
<!-- Header content slot -->
|
|
200
|
+
<!-- Header content - use properties if provided, else fallback to slot -->
|
|
214
201
|
<div class="flex-1 min-w-fit items-center flex justify-start">
|
|
215
|
-
|
|
202
|
+
${this.icon || this.label ? u`
|
|
203
|
+
<div class="flex gap-2 items-center">
|
|
204
|
+
${this.icon ? u`<schmancy-icon>${this.icon}</schmancy-icon>` : ""}
|
|
205
|
+
${this.label ? u`<schmancy-typography type="title" token="md">${this.label}</schmancy-typography>` : ""}
|
|
206
|
+
${this.badge !== void 0 && this.badge !== null && this.badge !== "" ? u`<schmancy-badge>${this.badge}</schmancy-badge>` : ""}
|
|
207
|
+
</div>
|
|
208
|
+
` : u`<slot name="header"></slot>`}
|
|
216
209
|
</div>
|
|
217
210
|
|
|
218
211
|
<!-- Control buttons -->
|
|
219
212
|
<div class="flex items-center gap-1 flex-shrink-0">
|
|
220
|
-
${e ?
|
|
213
|
+
${e ? u`
|
|
221
214
|
<!-- Expand button (when minimized) -->
|
|
222
215
|
<schmancy-icon-button
|
|
223
216
|
variant="text"
|
|
224
|
-
@click=${(
|
|
225
|
-
|
|
217
|
+
@click=${(s) => {
|
|
218
|
+
s.stopPropagation(), this.state = "expanded";
|
|
226
219
|
}}
|
|
227
220
|
title="Expand"
|
|
228
221
|
>
|
|
229
|
-
<schmancy-icon ${
|
|
222
|
+
<schmancy-icon ${w(this.iconRef)}>expand_less</schmancy-icon>
|
|
230
223
|
</schmancy-icon-button>
|
|
231
|
-
` :
|
|
224
|
+
` : u`
|
|
232
225
|
<!-- Minimize button (when expanded) -->
|
|
233
226
|
<schmancy-icon-button
|
|
234
227
|
variant="filled tonal"
|
|
235
|
-
@click=${(
|
|
236
|
-
|
|
228
|
+
@click=${(s) => {
|
|
229
|
+
s.stopPropagation(), this.state = "minimized";
|
|
237
230
|
}}
|
|
238
231
|
title="Minimize"
|
|
239
232
|
>
|
|
240
|
-
<schmancy-icon ${
|
|
233
|
+
<schmancy-icon ${w(this.iconRef)}>expand_more</schmancy-icon>
|
|
241
234
|
</schmancy-icon-button>
|
|
242
235
|
`}
|
|
243
236
|
|
|
244
237
|
<!-- Close button -->
|
|
245
238
|
<schmancy-icon-button
|
|
246
239
|
variant="text"
|
|
247
|
-
@click=${(
|
|
248
|
-
|
|
240
|
+
@click=${(s) => {
|
|
241
|
+
s.stopPropagation(), this.closeAndAddToNav();
|
|
249
242
|
}}
|
|
250
243
|
title="Close and add to navigation"
|
|
251
244
|
>
|
|
@@ -257,20 +250,15 @@ let c = class extends Y(N`
|
|
|
257
250
|
</section>
|
|
258
251
|
|
|
259
252
|
<!-- Content section -->
|
|
260
|
-
<schmancy-surface
|
|
261
|
-
.hidden=${!this.isContentVisible}
|
|
262
|
-
type="containerLow"
|
|
263
|
-
class="z-0 flex-1"
|
|
264
|
-
${g(this.contentRef)}
|
|
265
|
-
>
|
|
253
|
+
<schmancy-surface .hidden=${!this.isContentVisible} type="containerLow" class="flex-1" ${w(this.contentRef)}>
|
|
266
254
|
<slot></slot>
|
|
267
255
|
</schmancy-surface>
|
|
268
256
|
</div>
|
|
269
257
|
`;
|
|
270
258
|
}
|
|
271
259
|
};
|
|
272
|
-
|
|
260
|
+
h([y({ type: String, reflect: !0 })], c.prototype, "state", 1), h([y({ type: String })], c.prototype, "id", 2), h([y({ type: Boolean, reflect: !0 })], c.prototype, "lowered", 1), h([y({ type: String })], c.prototype, "icon", 2), h([y({ type: String })], c.prototype, "label", 2), h([y()], c.prototype, "badge", 2), h([g()], c.prototype, "currentState", 2), h([g()], c.prototype, "isContentVisible", 2), h([g()], c.prototype, "isAnimating", 2), h([g()], c.prototype, "isLowered", 2), h([g()], c.prototype, "isDragging", 2), h([g()], c.prototype, "position", 2), h([g()], c.prototype, "anchor", 2), c = h([I("schmancy-boat")], c);
|
|
273
261
|
export {
|
|
274
262
|
c as S
|
|
275
263
|
};
|
|
276
|
-
//# sourceMappingURL=boat-
|
|
264
|
+
//# sourceMappingURL=boat-CQlfnrN3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boat-CQlfnrN3.js","sources":["../src/boat/boat.ts"],"sourcesContent":["import { $LitElement } from '@mixins/index'\nimport { html, css } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { createRef, ref, Ref } from 'lit/directives/ref.js'\nimport { fromEvent, merge, race } from 'rxjs'\nimport { filter, switchMap, takeUntil, tap, finalize, map, take } from 'rxjs/operators'\n\ntype BoatState = 'hidden' | 'minimized' | 'expanded'\n\ninterface Position {\n\tx: number\n\ty: number\n}\n\ninterface SavedPosition {\n\tx: number\n\ty: number\n\tanchor: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left'\n}\n\n@customElement('schmancy-boat')\nexport default class SchmancyBoat extends $LitElement(css`\n\t:host {\n\t\tdisplay: contents;\n\t}\n`) {\n\t@property({ type: String, reflect: true })\n\tget state(): BoatState {\n\t\treturn this.currentState\n\t}\n\tset state(value: BoatState) {\n\t\tif (this.isAnimating || value === this.currentState) return\n\t\tthis.animateToState(value)\n\t}\n\n\t@property({ type: String }) id: string = 'default'\n\n\t@property({ type: Boolean, reflect: true })\n\tget lowered(): boolean {\n\t\treturn this.isLowered\n\t}\n\tset lowered(value: boolean) {\n\t\tthis.isLowered = value\n\t\tthis.requestUpdate()\n\t}\n\n\t// New properties for simplified API\n\t@property({ type: String }) icon?: string\n\t@property({ type: String }) label?: string\n\t@property() badge?: string | number\n\n\t// Element references\n\tprivate containerRef: Ref<HTMLDivElement> = createRef()\n\tprivate contentRef: Ref<HTMLElement> = createRef()\n\tprivate iconRef: Ref<HTMLElement> = createRef()\n\tprivate headerRef: Ref<HTMLElement> = createRef()\n\n\t// Current animation reference\n\tprivate currentAnimation?: Animation\n\n\t// Animation configuration\n\tprivate readonly ANIMATION_CONFIG = {\n\t\tdurations: {\n\t\t\texpand: 350,\n\t\t\tminimize: 250,\n\t\t\thide: 200,\n\t\t\tcontent: 300,\n\t\t},\n\t\teasing: {\n\t\t\temphasized: 'cubic-bezier(0.2, 0.0, 0, 1.0)',\n\t\t\tdecelerate: 'cubic-bezier(0.05, 0.7, 0.1, 1.0)',\n\t\t\taccelerate: 'cubic-bezier(0.3, 0.0, 0.8, 0.15)',\n\t\t\tstandard: 'cubic-bezier(0.4, 0.0, 0.2, 1)',\n\t\t},\n\t\tshadows: {\n\t\t\tfab: '0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)',\n\t\t\tfabLowered:\n\t\t\t\t'0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.12)',\n\t\t\texpanded: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',\n\t\t},\n\t}\n\n\t// Reactive state for template\n\t@state() private currentState: BoatState = 'minimized'\n\t@state() private isContentVisible: boolean = false\n\t@state() private isAnimating: boolean = false\n\t@state() private isLowered: boolean = false\n\t@state() private isDragging: boolean = false\n\t@state() private position: Position = { x: 16, y: 16 }\n\t@state() private anchor: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' = 'bottom-right'\n\n\tconnectedCallback() {\n\t\tsuper.connectedCallback()\n\n\t\tif (typeof window !== 'undefined') {\n\t\t\tfromEvent(window, 'resize')\n\t\t\t\t.pipe(takeUntil(this.disconnecting))\n\t\t\t\t.subscribe(() => {\n\t\t\t\t\tif (this.currentState === 'expanded') {\n\t\t\t\t\t\tthis.updateExpandedWidth()\n\t\t\t\t\t}\n\t\t\t\t})\n\n\t\t\t// Keyboard shortcut - Escape key\n\t\t\tfromEvent<KeyboardEvent>(window, 'keydown')\n\t\t\t\t.pipe(\n\t\t\t\t\tfilter(e => e.key === 'Escape' && this.currentState !== 'hidden'),\n\t\t\t\t\ttap(e => e.preventDefault()),\n\t\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t\t)\n\t\t\t\t.subscribe(() => {\n\t\t\t\t\tif (this.currentState === 'expanded') {\n\t\t\t\t\t\tthis.toggleState() // Minimize on Esc if expanded\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.close() // Hide on Esc if minimized\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t}\n\t}\n\n\tprivate initializePosition() {\n\t\tif (typeof window === 'undefined') return\n\n\t\tconst saved = localStorage.getItem(`schmancy-boat-${this.id}`)\n\n\t\tif (saved) {\n\t\t\ttry {\n\t\t\t\tconst parsed: SavedPosition = JSON.parse(saved)\n\t\t\t\tthis.position = { x: parsed.x, y: parsed.y }\n\t\t\t\tthis.anchor = parsed.anchor\n\t\t\t\tconsole.log('📍 Loaded position:', this.id, parsed)\n\t\t\t} catch (e) {\n\t\t\t\t// Use default position on parse error\n\t\t\t}\n\t\t}\n\t\t// If no saved position, use default from @state initialization\n\t}\n\n\tprivate async animateToState(targetState: BoatState) {\n\t\tif (this.isAnimating || targetState === this.currentState) return\n\n\t\tconst previousState = this.currentState\n\t\tthis.isAnimating = true\n\n\t\ttry {\n\t\t\tawait this.performTransition(previousState, targetState)\n\t\t\tthis.currentState = targetState\n\t\t\tthis.isContentVisible = targetState === 'expanded'\n\n\t\t\t// Dispatch event\n\t\t\tthis.dispatchEvent(\n\t\t\t\tnew CustomEvent('toggle', {\n\t\t\t\t\tdetail: targetState,\n\t\t\t\t\tbubbles: true,\n\t\t\t\t\tcomposed: true,\n\t\t\t\t}),\n\t\t\t)\n\t\t} catch (err) {\n\t\t\tconsole.warn('Animation error:', err)\n\t\t\tthis.currentState = targetState\n\t\t\tthis.isContentVisible = targetState === 'expanded'\n\t\t} finally {\n\t\t\tthis.isAnimating = false\n\t\t}\n\t}\n\n\t// Simplified animation transition\n\tprivate async performTransition(fromState: BoatState, toState: BoatState): Promise<void> {\n\t\tthis.currentAnimation?.cancel()\n\n\t\tconst container = this.containerRef.value\n\t\tif (!container) return\n\n\t\t// Update content visibility before expand\n\t\tif (toState === 'expanded') {\n\t\t\tthis.isContentVisible = true\n\t\t}\n\n\t\t// Create animations\n\t\tconst animations = this.createAnimations(fromState, toState)\n\n\t\t// Wait for main animation to complete\n\t\tif (animations.container) {\n\t\t\tthis.currentAnimation = animations.container\n\t\t\tawait animations.container.finished\n\n\t\t\t// Hide content after minimize\n\t\t\tif (toState !== 'expanded') {\n\t\t\t\tthis.isContentVisible = false\n\t\t\t}\n\t\t}\n\t}\n\n\t// Create animations for state transition\n\tprivate createAnimations(fromState: BoatState, toState: BoatState) {\n\t\tconst container = this.containerRef.value\n\t\tconst content = this.contentRef.value\n\t\tconst icon = this.iconRef.value\n\t\tconst animations: { container?: Animation; content?: Animation; icon?: Animation } = {}\n\n\t\tif (!container) return animations\n\n\t\tconst config = this.ANIMATION_CONFIG\n\t\tconst fromStyles = this.getStyleForState(fromState)\n\t\tconst toStyles = this.getStyleForState(toState)\n\n\t\t// Container animation\n\t\tif (toState === 'expanded') {\n\t\t\t// Expand animation without transform\n\t\t\tanimations.container = container.animate([fromStyles, toStyles], {\n\t\t\t\tduration: config.durations.expand,\n\t\t\t\teasing: config.easing.decelerate,\n\t\t\t\tfill: 'forwards',\n\t\t\t})\n\t\t} else {\n\t\t\tanimations.container = container.animate([fromStyles, toStyles], {\n\t\t\t\tduration: toState === 'hidden' ? config.durations.hide : config.durations.minimize,\n\t\t\t\teasing: config.easing.accelerate,\n\t\t\t\tfill: 'forwards',\n\t\t\t})\n\t\t}\n\n\t\t// Content animation (only for expand/minimize transitions)\n\t\tif (content && fromState === 'expanded' && toState === 'minimized') {\n\t\t\t// Fade out content before minimizing\n\t\t\tcontent.animate(\n\t\t\t\t[\n\t\t\t\t\t{ opacity: 1, transform: 'translateY(0)' },\n\t\t\t\t\t{ opacity: 0, transform: 'translateY(-8px)' },\n\t\t\t\t],\n\t\t\t\t{\n\t\t\t\t\tduration: 150,\n\t\t\t\t\teasing: config.easing.standard,\n\t\t\t\t\tfill: 'forwards',\n\t\t\t\t},\n\t\t\t)\n\t\t} else if (content && toState === 'expanded') {\n\t\t\t// Fade in content when expanding\n\t\t\tcontent.animate(\n\t\t\t\t[\n\t\t\t\t\t{ opacity: 0, transform: 'translateY(8px)' },\n\t\t\t\t\t{ opacity: 1, transform: 'translateY(0)' },\n\t\t\t\t],\n\t\t\t\t{\n\t\t\t\t\tduration: config.durations.content,\n\t\t\t\t\teasing: config.easing.standard,\n\t\t\t\t\tfill: 'forwards',\n\t\t\t\t},\n\t\t\t)\n\t\t}\n\n\t\t// Icon rotation animation\n\t\tif (icon) {\n\t\t\tconst isExpanding = toState === 'expanded'\n\t\t\tconst isCollapsing = fromState === 'expanded' && toState === 'minimized'\n\n\t\t\tif (isExpanding || isCollapsing) {\n\t\t\t\ticon.animate(\n\t\t\t\t\t[\n\t\t\t\t\t\t{ transform: isExpanding ? 'rotate(0deg)' : 'rotate(180deg)' },\n\t\t\t\t\t\t{ transform: isExpanding ? 'rotate(180deg)' : 'rotate(0deg)' },\n\t\t\t\t\t],\n\t\t\t\t\t{\n\t\t\t\t\t\tduration: 250,\n\t\t\t\t\t\teasing: config.easing.emphasized,\n\t\t\t\t\t\tfill: 'forwards',\n\t\t\t\t\t},\n\t\t\t\t)\n\t\t\t}\n\t\t}\n\n\t\treturn animations\n\t}\n\n\t// Get styles for a specific state\n\tprivate getStyleForState(state: BoatState): Keyframe {\n\t\tconst { shadows } = this.ANIMATION_CONFIG\n\t\tconst baseStyles = {\n\t\t\tmaxWidth: '300px',\n\t\t\tmaxHeight: 'auto',\n\t\t\tborderRadius: '16px',\n\t\t}\n\n\t\tconst stateStyles: Record<BoatState, Keyframe> = {\n\t\t\thidden: {\n\t\t\t\t...baseStyles,\n\t\t\t\topacity: '0',\n\t\t\t\tpointerEvents: 'none',\n\t\t\t\tboxShadow: 'none',\n\t\t\t\tbackdropFilter: 'none',\n\t\t\t},\n\t\t\tminimized: {\n\t\t\t\t...baseStyles,\n\t\t\t\topacity: '1',\n\t\t\t\tpointerEvents: 'auto',\n\t\t\t\tboxShadow: this.isLowered ? shadows.fabLowered : shadows.fab,\n\t\t\t\tbackdropFilter: 'none',\n\t\t\t},\n\t\t\texpanded: {\n\t\t\t\topacity: '1',\n\t\t\t\tpointerEvents: 'auto',\n\t\t\t\twidth: this.getResponsiveWidth(),\n\t\t\t\tmaxWidth: '100%',\n\t\t\t\tmaxHeight: '80vh',\n\t\t\t\tboxShadow: shadows.expanded,\n\t\t\t\tborderRadius: '8px 8px 0 0',\n\t\t\t\tbackdropFilter: 'blur(12px)',\n\t\t\t},\n\t\t}\n\n\t\treturn stateStyles[state] as Keyframe\n\t}\n\n\t// Calculate responsive width based on viewport\n\tprivate getResponsiveWidth(): string {\n\t\tif (typeof window === 'undefined') return '40vw'\n\n\t\tconst vw = window.innerWidth\n\t\tif (vw < 768) return 'calc(100vw - 32px)'\n\t\tif (vw < 1024) return '70vw'\n\t\tif (vw < 1280) return '60vw'\n\t\treturn '40vw'\n\t}\n\n\t// Update expanded width on window resize\n\tprivate updateExpandedWidth() {\n\t\tconst container = this.containerRef.value\n\t\tif (container && this.currentState === 'expanded') {\n\t\t\tcontainer.style.width = this.getResponsiveWidth()\n\t\t}\n\t}\n\n\tfirstUpdated() {\n\t\tthis.initializePosition()\n\t\tthis.applyInitialStyles()\n\t\tthis.updateContainerPosition()\n\t\tthis.setupDragPipeline()\n\n\t\t// Check for deprecated header slot usage\n\t\tconst hasHeaderSlot = this.querySelector('[slot=\"header\"]')\n\t\tif (hasHeaderSlot && !this.icon && !this.label) {\n\t\t\tconsole.warn(\n\t\t\t\t'[schmancy-boat] Using slot=\"header\" is deprecated. ' +\n\t\t\t\t\t'Please use the icon, label, and badge properties instead. ' +\n\t\t\t\t\t'Example: <schmancy-boat icon=\"info\" label=\"Title\" badge=\"5\">',\n\t\t\t)\n\t\t}\n\t}\n\n\t// Apply initial styles to elements\n\tprivate applyInitialStyles() {\n\t\tconst container = this.containerRef.value\n\t\tconst content = this.contentRef.value\n\t\tconst icon = this.iconRef.value\n\n\t\tif (container) {\n\t\t\tconst initialStyle = this.getStyleForState(this.currentState)\n\t\t\tObject.assign(container.style, initialStyle)\n\n\t\t\t// Safari compatibility for backdrop filter\n\t\t\tif ('webkitBackdropFilter' in container.style) {\n\t\t\t\t;(container.style as any).webkitBackdropFilter = initialStyle.backdropFilter\n\t\t\t}\n\t\t}\n\n\t\t// Set initial content opacity\n\t\tif (content) {\n\t\t\tcontent.style.opacity = this.isContentVisible ? '1' : '0'\n\t\t}\n\n\t\t// Set initial icon rotation\n\t\tif (icon && this.currentState === 'expanded') {\n\t\t\ticon.style.transform = 'rotate(180deg)'\n\t\t}\n\t}\n\n\n\t// Public method to toggle between minimized and expanded\n\ttoggleState() {\n\t\tconst newState = this.currentState === 'minimized' ? 'expanded' : 'minimized'\n\t\tthis.animateToState(newState)\n\t}\n\n\t// Public method to close (hide) the boat\n\tclose() {\n\t\tthis.animateToState('hidden')\n\t}\n\n\tprivate closeAndAddToNav() {\n\t\trace(\n\t\t\tthis.discover<any>('schmancy-navigation-rail'),\n\t\t\tthis.discover<any>('schmancy-navigation-bar'),\n\t\t\tthis.discover<any>('schmancy-nav-drawer'),\n\t\t\tthis.discover<any>('app-navigation-rail'),\n\t\t\tthis.discover<any>('app-navigation-bar'),\n\t\t\tthis.discover<any>('app-nav-drawer'),\n\t\t)\n\t\t\t.pipe(\n\t\t\t\ttake(1),\n\t\t\t\ttap(navComponent => {\n\t\t\t\t\tif (navComponent && typeof navComponent.addBoatItem === 'function') {\n\t\t\t\t\t\t// Use properties first, fall back to slot parsing\n\t\t\t\t\t\tconst icon =\n\t\t\t\t\t\t\tthis.icon ||\n\t\t\t\t\t\t\t(() => {\n\t\t\t\t\t\t\t\tconst headerSlot = this.querySelector('[slot=\"header\"]')\n\t\t\t\t\t\t\t\tconst iconElement = headerSlot?.querySelector('schmancy-icon')\n\t\t\t\t\t\t\t\treturn iconElement?.textContent?.trim() || 'widgets'\n\t\t\t\t\t\t\t})()\n\n\t\t\t\t\t\tconst label =\n\t\t\t\t\t\t\tthis.label ||\n\t\t\t\t\t\t\t(() => {\n\t\t\t\t\t\t\t\tconst headerSlot = this.querySelector('[slot=\"header\"]')\n\t\t\t\t\t\t\t\tlet title = headerSlot?.textContent?.trim() || 'Boat'\n\t\t\t\t\t\t\t\tif (icon && title.includes(icon)) {\n\t\t\t\t\t\t\t\t\ttitle = title.replace(icon, '').trim()\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn title || this.id\n\t\t\t\t\t\t\t})()\n\n\t\t\t\t\t\t// Add the boat to navigation\n\t\t\t\t\t\tconst navItem = navComponent.addBoatItem({\n\t\t\t\t\t\t\tid: `boat-${this.id}`,\n\t\t\t\t\t\t\ttitle: label,\n\t\t\t\t\t\t\ticon: icon,\n\t\t\t\t\t\t})\n\n\t\t\t\t\t\tif (navItem) {\n\t\t\t\t\t\t\t// Simple fade out then hide\n\t\t\t\t\t\t\tconst container = this.containerRef.value\n\t\t\t\t\t\t\tif (container) {\n\t\t\t\t\t\t\t\tcontainer\n\t\t\t\t\t\t\t\t\t.animate([{ opacity: 1 }, { opacity: 0 }], { duration: 150, easing: 'ease-out', fill: 'forwards' })\n\t\t\t\t\t\t\t\t\t.finished.then(() => {\n\t\t\t\t\t\t\t\t\t\tthis.currentState = 'hidden'\n\t\t\t\t\t\t\t\t\t\tthis.isContentVisible = false\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tthis.currentState = 'hidden'\n\t\t\t\t\t\t\t\tthis.isContentVisible = false\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Set up click listener to reopen - using RxJS pattern\n\t\t\t\t\t\t\tfromEvent(navItem, 'click')\n\t\t\t\t\t\t\t\t.pipe(\n\t\t\t\t\t\t\t\t\ttap(() => this.state = 'expanded'),\n\t\t\t\t\t\t\t\t\ttakeUntil(this.disconnecting)\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t.subscribe()\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// No nav component found, just hide\n\t\t\t\t\t\tthis.close()\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.subscribe()\n\t}\n\n\n\tprivate calculateDragPosition(\n\t\tclientX: number,\n\t\tclientY: number,\n\t\toffsetX: number,\n\t\toffsetY: number,\n\t\tinitialRect: DOMRect,\n\t): Position {\n\t\tconst targetLeft = clientX - offsetX\n\t\tconst targetTop = clientY - offsetY\n\t\tconst vw = window.innerWidth\n\t\tconst vh = window.innerHeight\n\t\tconst clampedLeft = Math.max(0, Math.min(targetLeft, vw - initialRect.width))\n\t\tconst clampedTop = Math.max(0, Math.min(targetTop, vh - initialRect.height))\n\n\t\tconst newX = this.anchor.includes('right') ? vw - (clampedLeft + initialRect.width) : clampedLeft\n\n\t\tconst newY = this.anchor.includes('bottom') ? vh - (clampedTop + initialRect.height) : clampedTop\n\n\t\treturn { x: Math.max(0, newX), y: Math.max(0, newY) }\n\t}\n\n\tprivate savePosition() {\n\t\tif (typeof window === 'undefined') return\n\n\t\tconst toSave: SavedPosition = {\n\t\t\tx: this.position.x,\n\t\t\ty: this.position.y,\n\t\t\tanchor: this.anchor,\n\t\t}\n\t\tconst key = `schmancy-boat-${this.id}`\n\t\tlocalStorage.setItem(key, JSON.stringify(toSave))\n\t\tconsole.log('💾 Saved position:', key, toSave)\n\t}\n\n\tprivate setupDragPipeline() {\n\t\tif (typeof window === 'undefined') return\n\n\t\tconst header = this.headerRef.value\n\t\tconst container = this.containerRef.value\n\t\tif (!header || !container) return\n\n\t\tlet hasDragged = false\n\t\tconst DRAG_THRESHOLD = 5\n\n\t\t// Merge mouse and touch start events\n\t\tmerge(\n\t\t\tfromEvent<MouseEvent>(header, 'mousedown').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}),\n\t\t\t\tmap(e => ({\n\t\t\t\t\tclientX: e.clientX,\n\t\t\t\t\tclientY: e.clientY,\n\t\t\t\t\ttype: 'mouse' as const,\n\t\t\t\t})),\n\t\t\t),\n\t\t\tfromEvent<TouchEvent>(header, 'touchstart').pipe(\n\t\t\t\tmap(e => ({\n\t\t\t\t\tclientX: e.touches[0].clientX,\n\t\t\t\t\tclientY: e.touches[0].clientY,\n\t\t\t\t\ttype: 'touch' as const,\n\t\t\t\t})),\n\t\t\t),\n\t\t)\n\t\t\t.pipe(\n\t\t\t\tmap(({ clientX, clientY, type }) => {\n\t\t\t\t\tconst rect = container.getBoundingClientRect()\n\t\t\t\t\thasDragged = false\n\t\t\t\t\treturn {\n\t\t\t\t\t\tstartX: clientX,\n\t\t\t\t\t\tstartY: clientY,\n\t\t\t\t\t\toffsetX: clientX - rect.left,\n\t\t\t\t\t\toffsetY: clientY - rect.top,\n\t\t\t\t\t\tinitialRect: rect,\n\t\t\t\t\t\ttype,\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.pipe(\n\t\t\t\tswitchMap(({ startX, startY, offsetX, offsetY, initialRect, type }) => {\n\t\t\t\t\tconst move$ =\n\t\t\t\t\t\ttype === 'mouse'\n\t\t\t\t\t\t\t? fromEvent<MouseEvent>(window, 'mousemove').pipe(map(e => ({ clientX: e.clientX, clientY: e.clientY })))\n\t\t\t\t\t\t\t: fromEvent<TouchEvent>(window, 'touchmove').pipe(\n\t\t\t\t\t\t\t\t\tmap(e => ({ clientX: e.touches[0].clientX, clientY: e.touches[0].clientY })),\n\t\t\t\t\t\t\t\t)\n\n\t\t\t\t\tconst end$ = type === 'mouse' ? fromEvent(window, 'mouseup') : fromEvent(window, 'touchend')\n\n\t\t\t\t\treturn move$.pipe(\n\t\t\t\t\t\tmap(({ clientX, clientY }) => {\n\t\t\t\t\t\t\tconst deltaX = clientX - startX\n\t\t\t\t\t\t\tconst deltaY = clientY - startY\n\t\t\t\t\t\t\tconst distance = Math.sqrt(deltaX * deltaX + deltaY * deltaY)\n\n\t\t\t\t\t\t\tif (distance > DRAG_THRESHOLD && !hasDragged) {\n\t\t\t\t\t\t\t\thasDragged = true\n\t\t\t\t\t\t\t\tthis.isDragging = true\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (!hasDragged) return null\n\n\t\t\t\t\t\t\treturn this.calculateDragPosition(clientX, clientY, offsetX, offsetY, initialRect)\n\t\t\t\t\t\t}),\n\t\t\t\t\t\tfilter(position => position !== null),\n\t\t\t\t\t\ttap(position => {\n\t\t\t\t\t\t\tif (position) {\n\t\t\t\t\t\t\t\tthis.position = position\n\t\t\t\t\t\t\t\tthis.updateContainerPosition()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}),\n\t\t\t\t\t\ttakeUntil(end$),\n\t\t\t\t\t)\n\t\t\t\t}),\n\t\t\t\tfinalize(() => {\n\t\t\t\t\tif (hasDragged) {\n\t\t\t\t\t\tthis.updateAnchor()\n\t\t\t\t\t\tthis.savePosition()\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.toggleState()\n\t\t\t\t\t}\n\t\t\t\t\tthis.isDragging = false\n\t\t\t\t\thasDragged = false\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// Update container position based on anchor and position values\n\tprivate updateContainerPosition() {\n\t\tconst container = this.containerRef.value\n\t\tif (!container) return\n\n\t\t// Reset all position styles\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\n\t\t// Apply new position based on anchor\n\t\tif (this.anchor.includes('right')) {\n\t\t\tcontainer.style.right = `${this.position.x}px`\n\t\t} else {\n\t\t\tcontainer.style.left = `${this.position.x}px`\n\t\t}\n\n\t\tif (this.anchor.includes('bottom')) {\n\t\t\tcontainer.style.bottom = `${this.position.y}px`\n\t\t} else {\n\t\t\tcontainer.style.top = `${this.position.y}px`\n\t\t}\n\t}\n\n\t// Update anchor based on current position\n\tprivate updateAnchor() {\n\t\tif (typeof window === 'undefined') return\n\n\t\tconst container = this.containerRef.value\n\t\tif (!container) return\n\n\t\tconst rect = container.getBoundingClientRect()\n\t\tconst vw = window.innerWidth\n\t\tconst vh = window.innerHeight\n\n\t\tconst isRight = rect.left > vw / 2\n\t\tconst isBottom = rect.top > vh / 2\n\n\t\tconst newAnchor = `${isBottom ? 'bottom' : 'top'}-${isRight ? 'right' : 'left'}` as typeof this.anchor\n\n\t\tif (newAnchor !== this.anchor) {\n\t\t\t// Calculate new position values for the new anchor\n\t\t\tif (isRight) {\n\t\t\t\tthis.position.x = vw - rect.right\n\t\t\t} else {\n\t\t\t\tthis.position.x = rect.left\n\t\t\t}\n\n\t\t\tif (isBottom) {\n\t\t\t\tthis.position.y = vh - rect.bottom\n\t\t\t} else {\n\t\t\t\tthis.position.y = rect.top\n\t\t\t}\n\n\t\t\tthis.anchor = newAnchor\n\t\t}\n\t}\n\n\t// Cleanup on component disconnect\n\tdisconnectedCallback() {\n\t\tsuper.disconnectedCallback()\n\t\tthis.currentAnimation?.cancel()\n\t}\n\n\tprotected render(): unknown {\n\t\tconst surfaceElevation = this.currentState === 'minimized' ? (this.isLowered ? '1' : '3') : '4'\n\t\tconst isMinimized = this.currentState === 'minimized'\n\n\t\t// Set transform origin based on anchor for proper expansion\n\t\tconst transformOrigin = this.anchor.includes('bottom')\n\t\t\t? (this.anchor.includes('right') ? 'bottom right' : 'bottom left')\n\t\t\t: (this.anchor.includes('right') ? 'top right' : 'top left')\n\n\t\tconst containerClasses = {\n\t\t\t'z-50':true,\n\t\t\tfixed: true,\n\t\t\t'overflow-y-auto': true,\n\t\t\tflex: true,\n\t\t\t'flex-col': true,\n\t\t\t'select-none': true,\n\t\t\t'will-change-transform': true,\n\t\t\t'[contain:layout_style]': true,\n\t\t\t'[transform:translate3d(0,0,0)]': true,\n\t\t\t'[backface-visibility:hidden]': true,\n\t\t\t'transition-shadow': true,\n\t\t\t'opacity-95': this.isDragging,\n\t\t\t'shadow-[0_24px_48px_-8px_rgba(0,0,0,0.2),0_12px_24px_-4px_rgba(0,0,0,0.12)]': this.isDragging,\n\t\t}\n\n\t\treturn html`\n\t\t\t<div\n\t\t\t\tclass=${this.classMap(containerClasses)}\n\t\t\t\tstyle=\"transform-origin: ${transformOrigin}\"\n\t\t\t\t${ref(this.containerRef)}\n\t\t\t>\n\t\t\t\t<!-- Header section -->\n\t\t\t\t<section class=\"sticky top-0\">\n\t\t\t\t\t<schmancy-surface\n\t\t\t\t\t\televation=\"${surfaceElevation}\"\n\t\t\t\t\t\trounded=\"${isMinimized ? 'none' : 'top'}\"\n\t\t\t\t\t\ttype=\"containerLowest\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"group sticky top-0 px-3 py-2 flex items-center justify-between gap-3 ${this.isDragging\n\t\t\t\t\t\t\t\t? 'cursor-grabbing'\n\t\t\t\t\t\t\t\t: 'cursor-move'}\"\n\t\t\t\t\t\t\t${ref(this.headerRef)}\n\t\t\t\t\t\t\ttitle=\"Drag to move, double-click to toggle\"\n\t\t\t\t\t\t\t@dblclick=${(e: Event) => {\n\t\t\t\t\t\t\t\te.preventDefault()\n\t\t\t\t\t\t\t\te.stopPropagation()\n\t\t\t\t\t\t\t\tthis.toggleState()\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<!-- Drag handle indicator -->\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass=\"flex items-center text-surface-onVariant opacity-40 transition-opacity duration-200 group-hover:opacity-100\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<schmancy-icon style=\"font-size: 20px\">drag_indicator</schmancy-icon>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<!-- Header content - use properties if provided, else fallback to slot -->\n\t\t\t\t\t\t\t<div class=\"flex-1 min-w-fit items-center flex justify-start\">\n\t\t\t\t\t\t\t\t${this.icon || this.label\n\t\t\t\t\t\t\t\t\t? html`\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"flex gap-2 items-center\">\n\t\t\t\t\t\t\t\t\t\t\t\t${this.icon ? html`<schmancy-icon>${this.icon}</schmancy-icon>` : ''}\n\t\t\t\t\t\t\t\t\t\t\t\t${this.label\n\t\t\t\t\t\t\t\t\t\t\t\t\t? html`<schmancy-typography type=\"title\" token=\"md\">${this.label}</schmancy-typography>`\n\t\t\t\t\t\t\t\t\t\t\t\t\t: ''}\n\t\t\t\t\t\t\t\t\t\t\t\t${this.badge !== undefined && this.badge !== null && this.badge !== ''\n\t\t\t\t\t\t\t\t\t\t\t\t\t? html`<schmancy-badge>${this.badge}</schmancy-badge>`\n\t\t\t\t\t\t\t\t\t\t\t\t\t: ''}\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t`\n\t\t\t\t\t\t\t\t\t: html`<slot name=\"header\"></slot>`}\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<!-- Control buttons -->\n\t\t\t\t\t\t\t<div class=\"flex items-center gap-1 flex-shrink-0\">\n\t\t\t\t\t\t\t\t${isMinimized\n\t\t\t\t\t\t\t\t\t? html`\n\t\t\t\t\t\t\t\t\t\t\t<!-- Expand button (when minimized) -->\n\t\t\t\t\t\t\t\t\t\t\t<schmancy-icon-button\n\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"text\"\n\t\t\t\t\t\t\t\t\t\t\t\t@click=${(e: Event) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\te.stopPropagation()\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.state = 'expanded'\n\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"Expand\"\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t<schmancy-icon ${ref(this.iconRef)}>expand_less</schmancy-icon>\n\t\t\t\t\t\t\t\t\t\t\t</schmancy-icon-button>\n\t\t\t\t\t\t\t\t\t\t`\n\t\t\t\t\t\t\t\t\t: html`\n\t\t\t\t\t\t\t\t\t\t\t<!-- Minimize button (when expanded) -->\n\t\t\t\t\t\t\t\t\t\t\t<schmancy-icon-button\n\t\t\t\t\t\t\t\t\t\t\t\tvariant=\"filled tonal\"\n\t\t\t\t\t\t\t\t\t\t\t\t@click=${(e: Event) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\te.stopPropagation()\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.state = 'minimized'\n\t\t\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t\t\ttitle=\"Minimize\"\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t<schmancy-icon ${ref(this.iconRef)}>expand_more</schmancy-icon>\n\t\t\t\t\t\t\t\t\t\t\t</schmancy-icon-button>\n\t\t\t\t\t\t\t\t\t\t`}\n\n\t\t\t\t\t\t\t\t<!-- Close button -->\n\t\t\t\t\t\t\t\t<schmancy-icon-button\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.closeAndAddToNav()\n\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\ttitle=\"Close and add to navigation\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<schmancy-icon>close</schmancy-icon>\n\t\t\t\t\t\t\t\t</schmancy-icon-button>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</schmancy-surface>\n\t\t\t\t</section>\n\n\t\t\t\t<!-- Content section -->\n\t\t\t\t<schmancy-surface .hidden=${!this.isContentVisible} type=\"containerLow\" class=\"flex-1\" ${ref(this.contentRef)}>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</schmancy-surface>\n\t\t\t</div>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-boat': SchmancyBoat\n\t}\n}\n"],"names":["SchmancyBoat","$LitElement","css","super","arguments","this","id","containerRef","createRef","contentRef","iconRef","headerRef","ANIMATION_CONFIG","durations","expand","minimize","hide","content","easing","emphasized","decelerate","accelerate","standard","shadows","fab","fabLowered","expanded","currentState","isContentVisible","isAnimating","isLowered","isDragging","position","x","y","anchor","state","value","animateToState","lowered","requestUpdate","connectedCallback","window","fromEvent","pipe","takeUntil","disconnecting","subscribe","updateExpandedWidth","filter","e","key","tap","preventDefault","toggleState","close","initializePosition","saved","localStorage","getItem","parsed","JSON","parse","targetState","previousState","performTransition","dispatchEvent","CustomEvent","detail","bubbles","composed","fromState","toState","currentAnimation","cancel","animations","createAnimations","container","finished","icon","config","fromStyles","getStyleForState","toStyles","animate","duration","fill","opacity","transform","isExpanding","baseStyles","maxWidth","maxHeight","borderRadius","hidden","pointerEvents","boxShadow","backdropFilter","minimized","width","getResponsiveWidth","vw","innerWidth","style","applyInitialStyles","updateContainerPosition","setupDragPipeline","querySelector","label","initialStyle","Object","assign","webkitBackdropFilter","newState","race","discover","take","navComponent","addBoatItem","textContent","trim","title","includes","replace","navItem","then","clientX","clientY","offsetX","offsetY","initialRect","targetLeft","targetTop","vh","innerHeight","clampedLeft","Math","max","min","clampedTop","height","newX","newY","toSave","setItem","stringify","header","hasDragged","merge","button","stopPropagation","map","type","touches","rect","getBoundingClientRect","startX","startY","left","top","switchMap","move$","end$","deltaX","deltaY","sqrt","calculateDragPosition","finalize","updateAnchor","savePosition","removeProperty","right","bottom","isRight","isBottom","newAnchor","disconnectedCallback","render","surfaceElevation","isMinimized","transformOrigin","containerClasses","fixed","flex","html","classMap","ref","badge","closeAndAddToNav","__decorateClass","property","String","reflect","prototype","Boolean","customElement"],"mappings":";;;;;;;;;;;;;AAqBA,IAAqBA,IAArB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M,WAAA,MAAA,CAAA,GAGxBJ,EAAA,CADHC,EAAS,EAAEtC,MAAM0C,SAASF,SAAAA,GAAS,CAAA,CAAA,GAhBhBhM,EAiBhBiM,WAAA,WAAA,CAAA,GASwBJ,EAAA,CAA3BC,EAAS,EAAEtC,MAAMuC,OAAAA,CAAAA,CAAAA,GA1BE/L,EA0BQiM,WAAA,QAAA,CAAA,GACAJ,EAAA,CAA3BC,EAAS,EAAEtC,MAAMuC,OAAAA,CAAAA,CAAAA,GA3BE/L,EA2BQiM,WAAA,SAAA,CAAA,GAChBJ,EAAA,CAAXC,EAAAA,CAAAA,GA5BmB9L,EA4BRiM,WAAA,SAAA,CAAA,GAkCKJ,EAAA,CAAhBzJ,EAAAA,CAAAA,GA9DmBpC,EA8DHiM,WAAA,gBAAA,CAAA,GACAJ,EAAA,CAAhBzJ,EAAAA,CAAAA,GA/DmBpC,EA+DHiM,WAAA,oBAAA,CAAA,GACAJ,EAAA,CAAhBzJ,EAAAA,CAAAA,GAhEmBpC,EAgEHiM,WAAA,eAAA,CAAA,GACAJ,EAAA,CAAhBzJ,EAAAA,CAAAA,GAjEmBpC,EAiEHiM,WAAA,aAAA,CAAA,GACAJ,EAAA,CAAhBzJ,EAAAA,CAAAA,GAlEmBpC,EAkEHiM,WAAA,cAAA,CAAA,GACAJ,EAAA,CAAhBzJ,EAAAA,CAAAA,GAnEmBpC,EAmEHiM,WAAA,YAAA,IACAJ,EAAA,CAAhBzJ,EAAAA,CAAAA,GApEmBpC,EAoEHiM,WAAA,UAAA,CAAA,GApEGjM,IAArB6L,EAAA,CADCM,EAAc,eAAA,CAAA,GACMnM,CAAAA;"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";const p=require("rxjs"),r=require("rxjs/operators");require("lit/directives/class-map.js"),require("lit/directives/style-map.js");const h=require("lit/decorators.js");require("./tailwind.mixin-SjjyWekZ.cjs");const w=require("./litElement.mixin-Dmtg7y_h.cjs"),l=require("lit"),m=require("lit/directives/ref.js");var S=Object.defineProperty,R=Object.getOwnPropertyDescriptor,d=(t,e,n,i)=>{for(var a,o=i>1?void 0:i?R(e,n):e,s=t.length-1;s>=0;s--)(a=t[s])&&(o=(i?a(e,n,o):a(o))||o);return i&&o&&S(e,n,o),o};exports.SchmancyBoat=class extends w.$LitElement(l.css`
|
|
2
|
+
:host {
|
|
3
|
+
display: contents;
|
|
4
|
+
}
|
|
5
|
+
`){constructor(){super(...arguments),this.id="default",this.containerRef=m.createRef(),this.contentRef=m.createRef(),this.iconRef=m.createRef(),this.headerRef=m.createRef(),this.ANIMATION_CONFIG={durations:{expand:350,minimize:250,hide:200,content:300},easing:{emphasized:"cubic-bezier(0.2, 0.0, 0, 1.0)",decelerate:"cubic-bezier(0.05, 0.7, 0.1, 1.0)",accelerate:"cubic-bezier(0.3, 0.0, 0.8, 0.15)",standard:"cubic-bezier(0.4, 0.0, 0.2, 1)"},shadows:{fab:"0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)",fabLowered:"0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.12)",expanded:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)"}},this.currentState="minimized",this.isContentVisible=!1,this.isAnimating=!1,this.isLowered=!1,this.isDragging=!1,this.position={x:16,y:16},this.anchor="bottom-right"}get state(){return this.currentState}set state(t){this.isAnimating||t===this.currentState||this.animateToState(t)}get lowered(){return this.isLowered}set lowered(t){this.isLowered=t,this.requestUpdate()}connectedCallback(){super.connectedCallback(),typeof window<"u"&&(p.fromEvent(window,"resize").pipe(r.takeUntil(this.disconnecting)).subscribe(()=>{this.currentState==="expanded"&&this.updateExpandedWidth()}),p.fromEvent(window,"keydown").pipe(r.filter(t=>t.key==="Escape"&&this.currentState!=="hidden"),r.tap(t=>t.preventDefault()),r.takeUntil(this.disconnecting)).subscribe(()=>{this.currentState==="expanded"?this.toggleState():this.close()}))}initializePosition(){if(typeof window>"u")return;const t=localStorage.getItem(`schmancy-boat-${this.id}`);if(t)try{const e=JSON.parse(t);this.position={x:e.x,y:e.y},this.anchor=e.anchor}catch{}}async animateToState(t){if(this.isAnimating||t===this.currentState)return;const e=this.currentState;this.isAnimating=!0;try{await this.performTransition(e,t),this.currentState=t,this.isContentVisible=t==="expanded",this.dispatchEvent(new CustomEvent("toggle",{detail:t,bubbles:!0,composed:!0}))}catch{this.currentState=t,this.isContentVisible=t==="expanded"}finally{this.isAnimating=!1}}async performTransition(t,e){if(this.currentAnimation?.cancel(),!this.containerRef.value)return;e==="expanded"&&(this.isContentVisible=!0);const n=this.createAnimations(t,e);n.container&&(this.currentAnimation=n.container,await n.container.finished,e!=="expanded"&&(this.isContentVisible=!1))}createAnimations(t,e){const n=this.containerRef.value,i=this.contentRef.value,a=this.iconRef.value,o={};if(!n)return o;const s=this.ANIMATION_CONFIG,f=this.getStyleForState(t),u=this.getStyleForState(e);if(o.container=e==="expanded"?n.animate([f,u],{duration:s.durations.expand,easing:s.easing.decelerate,fill:"forwards"}):n.animate([f,u],{duration:e==="hidden"?s.durations.hide:s.durations.minimize,easing:s.easing.accelerate,fill:"forwards"}),i&&t==="expanded"&&e==="minimized"?i.animate([{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(-8px)"}],{duration:150,easing:s.easing.standard,fill:"forwards"}):i&&e==="expanded"&&i.animate([{opacity:0,transform:"translateY(8px)"},{opacity:1,transform:"translateY(0)"}],{duration:s.durations.content,easing:s.easing.standard,fill:"forwards"}),a){const y=e==="expanded";(y||t==="expanded"&&e==="minimized")&&a.animate([{transform:y?"rotate(0deg)":"rotate(180deg)"},{transform:y?"rotate(180deg)":"rotate(0deg)"}],{duration:250,easing:s.easing.emphasized,fill:"forwards"})}return o}getStyleForState(t){const{shadows:e}=this.ANIMATION_CONFIG,n={maxWidth:"300px",maxHeight:"auto",borderRadius:"16px"};return{hidden:{...n,opacity:"0",pointerEvents:"none",boxShadow:"none",backdropFilter:"none"},minimized:{...n,opacity:"1",pointerEvents:"auto",boxShadow:this.isLowered?e.fabLowered:e.fab,backdropFilter:"none"},expanded:{opacity:"1",pointerEvents:"auto",width:this.getResponsiveWidth(),maxWidth:"100%",maxHeight:"80vh",boxShadow:e.expanded,borderRadius:"8px 8px 0 0",backdropFilter:"blur(12px)"}}[t]}getResponsiveWidth(){if(typeof window>"u")return"40vw";const t=window.innerWidth;return t<768?"calc(100vw - 32px)":t<1024?"70vw":t<1280?"60vw":"40vw"}updateExpandedWidth(){const t=this.containerRef.value;t&&this.currentState==="expanded"&&(t.style.width=this.getResponsiveWidth())}firstUpdated(){this.initializePosition(),this.applyInitialStyles(),this.updateContainerPosition(),this.setupDragPipeline(),this.querySelector('[slot="header"]')&&!this.icon&&this.label}applyInitialStyles(){const t=this.containerRef.value,e=this.contentRef.value,n=this.iconRef.value;if(t){const i=this.getStyleForState(this.currentState);Object.assign(t.style,i),"webkitBackdropFilter"in t.style&&(t.style.webkitBackdropFilter=i.backdropFilter)}e&&(e.style.opacity=this.isContentVisible?"1":"0"),n&&this.currentState==="expanded"&&(n.style.transform="rotate(180deg)")}toggleState(){const t=this.currentState==="minimized"?"expanded":"minimized";this.animateToState(t)}close(){this.animateToState("hidden")}closeAndAddToNav(){p.race(this.discover("schmancy-navigation-rail"),this.discover("schmancy-navigation-bar"),this.discover("schmancy-nav-drawer"),this.discover("app-navigation-rail"),this.discover("app-navigation-bar"),this.discover("app-nav-drawer")).pipe(r.take(1),r.tap(t=>{if(t&&typeof t.addBoatItem=="function"){const e=this.icon||(this.querySelector('[slot="header"]')?.querySelector("schmancy-icon")?.textContent?.trim()||"widgets"),n=this.label||(()=>{let o=this.querySelector('[slot="header"]')?.textContent?.trim()||"Boat";return o.includes(e)&&(o=o.replace(e,"").trim()),o||this.id})(),i=t.addBoatItem({id:`boat-${this.id}`,title:n,icon:e});if(i){const a=this.containerRef.value;a?a.animate([{opacity:1},{opacity:0}],{duration:150,easing:"ease-out",fill:"forwards"}).finished.then(()=>{this.currentState="hidden",this.isContentVisible=!1}):(this.currentState="hidden",this.isContentVisible=!1),p.fromEvent(i,"click").pipe(r.tap(()=>this.state="expanded"),r.takeUntil(this.disconnecting)).subscribe()}}else this.close()})).subscribe()}calculateDragPosition(t,e,n,i,a){const o=t-n,s=e-i,f=window.innerWidth,u=window.innerHeight,y=Math.max(0,Math.min(o,f-a.width)),g=Math.max(0,Math.min(s,u-a.height)),c=this.anchor.includes("right")?f-(y+a.width):y,x=this.anchor.includes("bottom")?u-(g+a.height):g;return{x:Math.max(0,c),y:Math.max(0,x)}}savePosition(){if(typeof window>"u")return;const t={x:this.position.x,y:this.position.y,anchor:this.anchor},e=`schmancy-boat-${this.id}`;localStorage.setItem(e,JSON.stringify(t))}setupDragPipeline(){if(typeof window>"u")return;const t=this.headerRef.value,e=this.containerRef.value;if(!t||!e)return;let n=!1;p.merge(p.fromEvent(t,"mousedown").pipe(r.filter(i=>i.button===0),r.tap(i=>{i.preventDefault(),i.stopPropagation()}),r.map(i=>({clientX:i.clientX,clientY:i.clientY,type:"mouse"}))),p.fromEvent(t,"touchstart").pipe(r.map(i=>({clientX:i.touches[0].clientX,clientY:i.touches[0].clientY,type:"touch"})))).pipe(r.map(({clientX:i,clientY:a,type:o})=>{const s=e.getBoundingClientRect();return n=!1,{startX:i,startY:a,offsetX:i-s.left,offsetY:a-s.top,initialRect:s,type:o}})).pipe(r.switchMap(({startX:i,startY:a,offsetX:o,offsetY:s,initialRect:f,type:u})=>{const y=u==="mouse"?p.fromEvent(window,"mousemove").pipe(r.map(c=>({clientX:c.clientX,clientY:c.clientY}))):p.fromEvent(window,"touchmove").pipe(r.map(c=>({clientX:c.touches[0].clientX,clientY:c.touches[0].clientY}))),g=u==="mouse"?p.fromEvent(window,"mouseup"):p.fromEvent(window,"touchend");return y.pipe(r.map(({clientX:c,clientY:x})=>{const b=c-i,v=x-a;return Math.sqrt(b*b+v*v)>5&&!n&&(n=!0,this.isDragging=!0),n?this.calculateDragPosition(c,x,o,s,f):null}),r.filter(c=>c!==null),r.tap(c=>{c&&(this.position=c,this.updateContainerPosition())}),r.takeUntil(g))}),r.finalize(()=>{n?(this.updateAnchor(),this.savePosition()):this.toggleState(),this.isDragging=!1,n=!1}),r.takeUntil(this.disconnecting)).subscribe()}updateContainerPosition(){const t=this.containerRef.value;t&&(t.style.removeProperty("left"),t.style.removeProperty("right"),t.style.removeProperty("top"),t.style.removeProperty("bottom"),this.anchor.includes("right")?t.style.right=`${this.position.x}px`:t.style.left=`${this.position.x}px`,this.anchor.includes("bottom")?t.style.bottom=`${this.position.y}px`:t.style.top=`${this.position.y}px`)}updateAnchor(){if(typeof window>"u")return;const t=this.containerRef.value;if(!t)return;const e=t.getBoundingClientRect(),n=window.innerWidth,i=window.innerHeight,a=e.left>n/2,o=e.top>i/2,s=`${o?"bottom":"top"}-${a?"right":"left"}`;s!==this.anchor&&(this.position.x=a?n-e.right:e.left,this.position.y=o?i-e.bottom:e.top,this.anchor=s)}disconnectedCallback(){super.disconnectedCallback(),this.currentAnimation?.cancel()}render(){const t=this.currentState==="minimized"?this.isLowered?"1":"3":"4",e=this.currentState==="minimized",n=this.anchor.includes("bottom")?this.anchor.includes("right")?"bottom right":"bottom left":this.anchor.includes("right")?"top right":"top left",i={"z-50":!0,fixed:!0,"overflow-y-auto":!0,flex:!0,"flex-col":!0,"select-none":!0,"will-change-transform":!0,"[contain:layout_style]":!0,"[transform:translate3d(0,0,0)]":!0,"[backface-visibility:hidden]":!0,"transition-shadow":!0,"opacity-95":this.isDragging,"shadow-[0_24px_48px_-8px_rgba(0,0,0,0.2),0_12px_24px_-4px_rgba(0,0,0,0.12)]":this.isDragging};return l.html`
|
|
6
|
+
<div
|
|
7
|
+
class=${this.classMap(i)}
|
|
8
|
+
style="transform-origin: ${n}"
|
|
9
|
+
${m.ref(this.containerRef)}
|
|
10
|
+
>
|
|
11
|
+
<!-- Header section -->
|
|
12
|
+
<section class="sticky top-0">
|
|
13
|
+
<schmancy-surface
|
|
14
|
+
elevation="${t}"
|
|
15
|
+
rounded="${e?"none":"top"}"
|
|
16
|
+
type="containerLowest"
|
|
17
|
+
>
|
|
18
|
+
<div
|
|
19
|
+
class="group sticky top-0 px-3 py-2 flex items-center justify-between gap-3 ${this.isDragging?"cursor-grabbing":"cursor-move"}"
|
|
20
|
+
${m.ref(this.headerRef)}
|
|
21
|
+
title="Drag to move, double-click to toggle"
|
|
22
|
+
@dblclick=${a=>{a.preventDefault(),a.stopPropagation(),this.toggleState()}}
|
|
23
|
+
>
|
|
24
|
+
<!-- Drag handle indicator -->
|
|
25
|
+
<div
|
|
26
|
+
class="flex items-center text-surface-onVariant opacity-40 transition-opacity duration-200 group-hover:opacity-100"
|
|
27
|
+
>
|
|
28
|
+
<schmancy-icon style="font-size: 20px">drag_indicator</schmancy-icon>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<!-- Header content - use properties if provided, else fallback to slot -->
|
|
32
|
+
<div class="flex-1 min-w-fit items-center flex justify-start">
|
|
33
|
+
${this.icon||this.label?l.html`
|
|
34
|
+
<div class="flex gap-2 items-center">
|
|
35
|
+
${this.icon?l.html`<schmancy-icon>${this.icon}</schmancy-icon>`:""}
|
|
36
|
+
${this.label?l.html`<schmancy-typography type="title" token="md">${this.label}</schmancy-typography>`:""}
|
|
37
|
+
${this.badge!==void 0&&this.badge!==null&&this.badge!==""?l.html`<schmancy-badge>${this.badge}</schmancy-badge>`:""}
|
|
38
|
+
</div>
|
|
39
|
+
`:l.html`<slot name="header"></slot>`}
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<!-- Control buttons -->
|
|
43
|
+
<div class="flex items-center gap-1 flex-shrink-0">
|
|
44
|
+
${e?l.html`
|
|
45
|
+
<!-- Expand button (when minimized) -->
|
|
46
|
+
<schmancy-icon-button
|
|
47
|
+
variant="text"
|
|
48
|
+
@click=${a=>{a.stopPropagation(),this.state="expanded"}}
|
|
49
|
+
title="Expand"
|
|
50
|
+
>
|
|
51
|
+
<schmancy-icon ${m.ref(this.iconRef)}>expand_less</schmancy-icon>
|
|
52
|
+
</schmancy-icon-button>
|
|
53
|
+
`:l.html`
|
|
54
|
+
<!-- Minimize button (when expanded) -->
|
|
55
|
+
<schmancy-icon-button
|
|
56
|
+
variant="filled tonal"
|
|
57
|
+
@click=${a=>{a.stopPropagation(),this.state="minimized"}}
|
|
58
|
+
title="Minimize"
|
|
59
|
+
>
|
|
60
|
+
<schmancy-icon ${m.ref(this.iconRef)}>expand_more</schmancy-icon>
|
|
61
|
+
</schmancy-icon-button>
|
|
62
|
+
`}
|
|
63
|
+
|
|
64
|
+
<!-- Close button -->
|
|
65
|
+
<schmancy-icon-button
|
|
66
|
+
variant="text"
|
|
67
|
+
@click=${a=>{a.stopPropagation(),this.closeAndAddToNav()}}
|
|
68
|
+
title="Close and add to navigation"
|
|
69
|
+
>
|
|
70
|
+
<schmancy-icon>close</schmancy-icon>
|
|
71
|
+
</schmancy-icon-button>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</schmancy-surface>
|
|
75
|
+
</section>
|
|
76
|
+
|
|
77
|
+
<!-- Content section -->
|
|
78
|
+
<schmancy-surface .hidden=${!this.isContentVisible} type="containerLow" class="flex-1" ${m.ref(this.contentRef)}>
|
|
79
|
+
<slot></slot>
|
|
80
|
+
</schmancy-surface>
|
|
81
|
+
</div>
|
|
82
|
+
`}},d([h.property({type:String,reflect:!0})],exports.SchmancyBoat.prototype,"state",1),d([h.property({type:String})],exports.SchmancyBoat.prototype,"id",2),d([h.property({type:Boolean,reflect:!0})],exports.SchmancyBoat.prototype,"lowered",1),d([h.property({type:String})],exports.SchmancyBoat.prototype,"icon",2),d([h.property({type:String})],exports.SchmancyBoat.prototype,"label",2),d([h.property()],exports.SchmancyBoat.prototype,"badge",2),d([h.state()],exports.SchmancyBoat.prototype,"currentState",2),d([h.state()],exports.SchmancyBoat.prototype,"isContentVisible",2),d([h.state()],exports.SchmancyBoat.prototype,"isAnimating",2),d([h.state()],exports.SchmancyBoat.prototype,"isLowered",2),d([h.state()],exports.SchmancyBoat.prototype,"isDragging",2),d([h.state()],exports.SchmancyBoat.prototype,"position",2),d([h.state()],exports.SchmancyBoat.prototype,"anchor",2),exports.SchmancyBoat=d([h.customElement("schmancy-boat")],exports.SchmancyBoat);
|
|
83
|
+
//# sourceMappingURL=boat-CvWXHBGZ.cjs.map
|