@mhmo91/schmancy 0.4.77 → 0.4.79
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/content-drawer.md +59 -26
- package/ai/icons.md +222 -121
- package/ai/spinner.md +165 -0
- package/dist/ai/content-drawer.md +59 -26
- package/dist/ai/icons.md +222 -121
- package/dist/ai/spinner.md +165 -0
- package/dist/{animated-text-CTMDHCbw.js → animated-text-DF5iHL66.js} +3 -3
- package/dist/{animated-text-CTMDHCbw.js.map → animated-text-DF5iHL66.js.map} +1 -1
- package/dist/{animated-text-yAIb26ld.cjs → animated-text-Ra7G35tz.cjs} +2 -2
- package/dist/{animated-text-yAIb26ld.cjs.map → animated-text-Ra7G35tz.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.js +1 -1
- package/dist/{autocomplete-BYiDoFG_.cjs → autocomplete-0qgkJELR.cjs} +2 -2
- package/dist/{autocomplete-BYiDoFG_.cjs.map → autocomplete-0qgkJELR.cjs.map} +1 -1
- package/dist/{autocomplete-m-nEVE3h.js → autocomplete-DNTo7fHJ.js} +3 -3
- package/dist/{autocomplete-m-nEVE3h.js.map → autocomplete-DNTo7fHJ.js.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/{avatar-nxVn--Oo.js → avatar-CokwBO2O.js} +190 -172
- package/dist/avatar-CokwBO2O.js.map +1 -0
- package/dist/{avatar-DjCNlJz6.cjs → avatar-Cxu7EOku.cjs} +20 -20
- package/dist/avatar-Cxu7EOku.cjs.map +1 -0
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/{boat-sl3amQ3s.js → boat-BEjCaneK.js} +2 -2
- package/dist/{boat-sl3amQ3s.js.map → boat-BEjCaneK.js.map} +1 -1
- package/dist/{boat-_ZRYkQQZ.cjs → boat-CsmB4RXa.cjs} +2 -2
- package/dist/{boat-_ZRYkQQZ.cjs.map → boat-CsmB4RXa.cjs.map} +1 -1
- 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-HdmRM2Vg.cjs → checkbox-D6bUTeG8.cjs} +2 -2
- package/dist/{checkbox-HdmRM2Vg.cjs.map → checkbox-D6bUTeG8.cjs.map} +1 -1
- package/dist/{checkbox-zTyMywpJ.js → checkbox-k9tWSA4E.js} +2 -2
- package/dist/{checkbox-zTyMywpJ.js.map → checkbox-k9tWSA4E.js.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-DDDu8hh9.cjs → chips-CtbapOaS.cjs} +2 -2
- package/dist/{chips-DDDu8hh9.cjs.map → chips-CtbapOaS.cjs.map} +1 -1
- package/dist/{chips-DAkLLDRf.js → chips-DO6f95nV.js} +3 -3
- package/dist/{chips-DAkLLDRf.js.map → chips-DO6f95nV.js.map} +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +1 -1
- package/dist/code-highlight.cjs +1 -1
- package/dist/code-highlight.js +1 -1
- package/dist/{code-preview-BxO04VVx.cjs → code-preview-DGkqHYdn.cjs} +2 -2
- package/dist/{code-preview-BxO04VVx.cjs.map → code-preview-DGkqHYdn.cjs.map} +1 -1
- package/dist/{code-preview-DH3koGm9.js → code-preview-djAAzZxj.js} +2 -2
- package/dist/{code-preview-DH3koGm9.js.map → code-preview-djAAzZxj.js.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-sfDUF7dG.js → date-range-CHJqdE9Y.js} +3 -3
- package/dist/{date-range-sfDUF7dG.js.map → date-range-CHJqdE9Y.js.map} +1 -1
- package/dist/{date-range-TJXLY7Yx.cjs → date-range-Dfw7LxKv.cjs} +2 -2
- package/dist/{date-range-TJXLY7Yx.cjs.map → date-range-Dfw7LxKv.cjs.map} +1 -1
- package/dist/{date-range-inline-BSqXKZ3-.cjs → date-range-inline-CBOrdNiP.cjs} +2 -2
- package/dist/{date-range-inline-BSqXKZ3-.cjs.map → date-range-inline-CBOrdNiP.cjs.map} +1 -1
- package/dist/{date-range-inline-CUb59TOM.js → date-range-inline-dlZb5tJg.js} +3 -3
- package/dist/{date-range-inline-CUb59TOM.js.map → date-range-inline-dlZb5tJg.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-CHpGPLLr.js → delay-BP5SfQRo.js} +2 -2
- package/dist/{delay-CHpGPLLr.js.map → delay-BP5SfQRo.js.map} +1 -1
- package/dist/{delay-CbXOIuAd.cjs → delay-DFB3_NEH.cjs} +2 -2
- package/dist/{delay-CbXOIuAd.cjs.map → delay-DFB3_NEH.cjs.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/{details-Cf7zosIT.js → details-Bd0PJpSd.js} +15 -14
- package/dist/details-Bd0PJpSd.js.map +1 -0
- package/dist/{details-D6yYIQaE.cjs → details-Cv8AMues.cjs} +7 -7
- package/dist/details-Cv8AMues.cjs.map +1 -0
- package/dist/details.cjs +1 -1
- package/dist/details.js +1 -1
- package/dist/{dialog-content-BabnHd-t.js → dialog-content-8smVbEth.js} +3 -3
- package/dist/{dialog-content-BabnHd-t.js.map → dialog-content-8smVbEth.js.map} +1 -1
- package/dist/{dialog-content-BkK0XT-T.cjs → dialog-content-CURTuo8R.cjs} +2 -2
- package/dist/{dialog-content-BkK0XT-T.cjs.map → dialog-content-CURTuo8R.cjs.map} +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +1 -1
- package/dist/{divider-CQ9PTETp.cjs → divider-CVomKpEr.cjs} +2 -2
- package/dist/{divider-CQ9PTETp.cjs.map → divider-CVomKpEr.cjs.map} +1 -1
- package/dist/{divider-DyNmX5oP.js → divider-DnyRwbTs.js} +3 -3
- package/dist/{divider-DyNmX5oP.js.map → divider-DnyRwbTs.js.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/{dropdown-content-1g76XIVT.js → dropdown-content-B1tXM7Vp.js} +3 -3
- package/dist/{dropdown-content-1g76XIVT.js.map → dropdown-content-B1tXM7Vp.js.map} +1 -1
- package/dist/{dropdown-content-DwiI2xi1.cjs → dropdown-content-lZcMgCym.cjs} +2 -2
- package/dist/{dropdown-content-DwiI2xi1.cjs.map → dropdown-content-lZcMgCym.cjs.map} +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{email-recipients-BJsjr6H6.js → email-recipients-CQNYpvG7.js} +5 -5
- package/dist/{email-recipients-BJsjr6H6.js.map → email-recipients-CQNYpvG7.js.map} +1 -1
- package/dist/{email-recipients-BiPVR8Hi.cjs → email-recipients-D2bcyJAi.cjs} +2 -2
- package/dist/{email-recipients-BiPVR8Hi.cjs.map → email-recipients-D2bcyJAi.cjs.map} +1 -1
- package/dist/extra.cjs +1 -1
- package/dist/extra.js +1 -1
- package/dist/{flex-0kVSQTqk.js → flex-CQzrxgEP.js} +2 -2
- package/dist/{flex-0kVSQTqk.js.map → flex-CQzrxgEP.js.map} +1 -1
- package/dist/{flex-CYToPu65.cjs → flex-CbGwzfNX.cjs} +2 -2
- package/dist/{flex-CYToPu65.cjs.map → flex-CbGwzfNX.cjs.map} +1 -1
- package/dist/{form-BTIOJob0.cjs → form-Cid9N-2B.cjs} +2 -2
- package/dist/{form-BTIOJob0.cjs.map → form-Cid9N-2B.cjs.map} +1 -1
- package/dist/{form-CzSHXlhh.js → form-DcKKSUWi.js} +2 -2
- package/dist/{form-CzSHXlhh.js.map → form-DcKKSUWi.js.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/{formField.mixin-D3pQ9LTE.js → formField.mixin-C5U1Rh5p.js} +2 -2
- package/dist/{formField.mixin-D3pQ9LTE.js.map → formField.mixin-C5U1Rh5p.js.map} +1 -1
- package/dist/{formField.mixin-BE8yyY7E.cjs → formField.mixin-DtuGCitn.cjs} +2 -2
- package/dist/{formField.mixin-BE8yyY7E.cjs.map → formField.mixin-DtuGCitn.cjs.map} +1 -1
- package/dist/{icon-DxLigT_B.cjs → icon-7uflQBUI.cjs} +2 -2
- package/dist/{icon-DxLigT_B.cjs.map → icon-7uflQBUI.cjs.map} +1 -1
- package/dist/{icon-CB8zMasU.js → icon-DF5RpNTK.js} +2 -2
- package/dist/{icon-CB8zMasU.js.map → icon-DF5RpNTK.js.map} +1 -1
- package/dist/{icon-button-n_1iOQGQ.js → icon-button-Bol0a-v7.js} +3 -3
- package/dist/{icon-button-n_1iOQGQ.js.map → icon-button-Bol0a-v7.js.map} +1 -1
- package/dist/{icon-button-B6sa3c9D.cjs → icon-button-D41ID2Fc.cjs} +2 -2
- package/dist/{icon-button-B6sa3c9D.cjs.map → icon-button-D41ID2Fc.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 +47 -47
- package/dist/{input-FXEREBl6.cjs → input-CcwnttG1.cjs} +2 -2
- package/dist/{input-FXEREBl6.cjs.map → input-CcwnttG1.cjs.map} +1 -1
- package/dist/{input-BAJnPVSv.js → input-ClFADkhf.js} +3 -3
- package/dist/{input-BAJnPVSv.js.map → input-ClFADkhf.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-TbB9Rpwx.cjs → list-BAjh6Ucg.cjs} +2 -2
- package/dist/{list-TbB9Rpwx.cjs.map → list-BAjh6Ucg.cjs.map} +1 -1
- package/dist/{list-ZeNhyo74.js → list-CIFl0wDX.js} +2 -2
- package/dist/{list-ZeNhyo74.js.map → list-CIFl0wDX.js.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{litElement.mixin-DVZiIRUa.js → litElement.mixin-Cs2vwcM4.js} +2 -2
- package/dist/{litElement.mixin-DVZiIRUa.js.map → litElement.mixin-Cs2vwcM4.js.map} +1 -1
- package/dist/{litElement.mixin-N4BRrCeD.cjs → litElement.mixin-DiSo_YRo.cjs} +2 -2
- package/dist/{litElement.mixin-N4BRrCeD.cjs.map → litElement.mixin-DiSo_YRo.cjs.map} +1 -1
- package/dist/mailbox.cjs +1 -1
- package/dist/mailbox.js +1 -1
- package/dist/{map-ck5dlHEW.js → map-DRXTbpex.js} +2 -2
- package/dist/{map-ck5dlHEW.js.map → map-DRXTbpex.js.map} +1 -1
- package/dist/{map-DW4GhKaH.cjs → map-wFoHnuTE.cjs} +2 -2
- package/dist/{map-DW4GhKaH.cjs.map → map-wFoHnuTE.cjs.map} +1 -1
- package/dist/map.cjs +1 -1
- package/dist/map.js +1 -1
- package/dist/{media-C9Qy2mql.cjs → media-DMXDyK_t.cjs} +2 -2
- package/dist/{media-C9Qy2mql.cjs.map → media-DMXDyK_t.cjs.map} +1 -1
- package/dist/{media-CunGFwol.js → media-DdD4d518.js} +2 -2
- package/dist/{media-CunGFwol.js.map → media-DdD4d518.js.map} +1 -1
- package/dist/{menu-BkTWAEeh.cjs → menu-D6djF8D7.cjs} +2 -2
- package/dist/{menu-BkTWAEeh.cjs.map → menu-D6djF8D7.cjs.map} +1 -1
- package/dist/{menu-Cja83sLd.js → menu-vSrpyy8w.js} +3 -3
- package/dist/{menu-Cja83sLd.js.map → menu-vSrpyy8w.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/{notification-service-CKHPaK_C.js → notification-service-C5f9YdPY.js} +4 -4
- package/dist/{notification-service-CKHPaK_C.js.map → notification-service-C5f9YdPY.js.map} +1 -1
- package/dist/{notification-service-BB7pBlG6.cjs → notification-service-CnVFGj74.cjs} +2 -2
- package/dist/{notification-service-BB7pBlG6.cjs.map → notification-service-CnVFGj74.cjs.map} +1 -1
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +2 -2
- package/dist/{notify-DNNTtvHN.js → notify-CuQyUgsU.js} +2 -2
- package/dist/{notify-DNNTtvHN.js.map → notify-CuQyUgsU.js.map} +1 -1
- package/dist/{notify-CxMMHOyT.cjs → notify-DtUM_vBe.cjs} +2 -2
- package/dist/{notify-CxMMHOyT.cjs.map → notify-DtUM_vBe.cjs.map} +1 -1
- package/dist/{option-BsvqJpe9.js → option-CMyac-XQ.js} +2 -2
- package/dist/{option-BsvqJpe9.js.map → option-CMyac-XQ.js.map} +1 -1
- package/dist/{option-BWzNpqSh.cjs → option-D22bslGV.cjs} +2 -2
- package/dist/{option-BWzNpqSh.cjs.map → option-D22bslGV.cjs.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{payment-card-form-C0Rck0tO.js → payment-card-form-C2rSfNUB.js} +3 -3
- package/dist/{payment-card-form-C0Rck0tO.js.map → payment-card-form-C2rSfNUB.js.map} +1 -1
- package/dist/{payment-card-form-Q8jzlprZ.cjs → payment-card-form-CIo6Jvh4.cjs} +2 -2
- package/dist/{payment-card-form-Q8jzlprZ.cjs.map → payment-card-form-CIo6Jvh4.cjs.map} +1 -1
- package/dist/{progress-CtoQKQub.cjs → progress-Cz6acdfO.cjs} +2 -2
- package/dist/{progress-CtoQKQub.cjs.map → progress-Cz6acdfO.cjs.map} +1 -1
- package/dist/{progress-CG2bQVP8.js → progress-CzZkkBKS.js} +2 -2
- package/dist/{progress-CG2bQVP8.js.map → progress-CzZkkBKS.js.map} +1 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.js +1 -1
- package/dist/{radio-button-BSUgktLD.js → radio-button-CvhN1gWj.js} +3 -3
- package/dist/{radio-button-BSUgktLD.js.map → radio-button-CvhN1gWj.js.map} +1 -1
- package/dist/{radio-button-DnvjanKu.cjs → radio-button-XTjTthrJ.cjs} +2 -2
- package/dist/{radio-button-DnvjanKu.cjs.map → radio-button-XTjTthrJ.cjs.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/{route.component-YXwO_9vn.cjs → route.component-BMRfUQ9O.cjs} +2 -2
- package/dist/{route.component-YXwO_9vn.cjs.map → route.component-BMRfUQ9O.cjs.map} +1 -1
- package/dist/{route.component-BJEghY9L.js → route.component-D2BflZS9.js} +3 -3
- package/dist/{route.component-BJEghY9L.js.map → route.component-D2BflZS9.js.map} +1 -1
- package/dist/{schmancy-steps-container-BJdjcjfb.cjs → schmancy-steps-container-CDj0iFPm.cjs} +2 -2
- package/dist/{schmancy-steps-container-BJdjcjfb.cjs.map → schmancy-steps-container-CDj0iFPm.cjs.map} +1 -1
- package/dist/{schmancy-steps-container-DLoPUodd.js → schmancy-steps-container-DJdcHEVs.js} +2 -2
- package/dist/{schmancy-steps-container-DLoPUodd.js.map → schmancy-steps-container-DJdcHEVs.js.map} +1 -1
- package/dist/{select-t2FXt_pa.cjs → select-BZuUqcqv.cjs} +2 -2
- package/dist/{select-t2FXt_pa.cjs.map → select-BZuUqcqv.cjs.map} +1 -1
- package/dist/{select-DagDNtvt.js → select-BnLSAqtO.js} +3 -3
- package/dist/{select-DagDNtvt.js.map → select-BnLSAqtO.js.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/{sheet-mPwoKv2g.cjs → sheet-CSp5quAX.cjs} +2 -2
- package/dist/{sheet-mPwoKv2g.cjs.map → sheet-CSp5quAX.cjs.map} +1 -1
- package/dist/{sheet-CRVVJZ0R.js → sheet-CcKYre1L.js} +3 -3
- package/dist/{sheet-CRVVJZ0R.js.map → sheet-CcKYre1L.js.map} +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/{slider-pBPJS7W9.cjs → slider-CPJ-4yg4.cjs} +2 -2
- package/dist/{slider-pBPJS7W9.cjs.map → slider-CPJ-4yg4.cjs.map} +1 -1
- package/dist/{slider-B3F6JkFf.js → slider-D36miB_e.js} +3 -3
- package/dist/{slider-B3F6JkFf.js.map → slider-D36miB_e.js.map} +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{spinner-DA_-O-xo.js → spinner-1vMz2pLZ.js} +2 -2
- package/dist/{spinner-DA_-O-xo.js.map → spinner-1vMz2pLZ.js.map} +1 -1
- package/dist/{spinner-BRpfKS5O.cjs → spinner-uKeW1jVr.cjs} +2 -2
- package/dist/{spinner-BRpfKS5O.cjs.map → spinner-uKeW1jVr.cjs.map} +1 -1
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/{surface-diIElnDd.cjs → surface-DCAyIw6O.cjs} +2 -2
- package/dist/{surface-diIElnDd.cjs.map → surface-DCAyIw6O.cjs.map} +1 -1
- package/dist/{surface-Dwl538cH.js → surface-DWRvqMeW.js} +2 -2
- package/dist/{surface-Dwl538cH.js.map → surface-DWRvqMeW.js.map} +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/{table-BgKKtRLd.js → table-BYOOIwQ3.js} +2 -2
- package/dist/{table-BgKKtRLd.js.map → table-BYOOIwQ3.js.map} +1 -1
- package/dist/{table-Bov9UEcb.cjs → table-N5w5txc8.cjs} +2 -2
- package/dist/{table-Bov9UEcb.cjs.map → table-N5w5txc8.cjs.map} +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-compatibility-CPvOBfor.js → tabs-compatibility-BQZ_4rKO.js} +2 -2
- package/dist/{tabs-compatibility-CPvOBfor.js.map → tabs-compatibility-BQZ_4rKO.js.map} +1 -1
- package/dist/{tabs-compatibility-D5yIfQ_k.cjs → tabs-compatibility-B_0MOHRx.cjs} +2 -2
- package/dist/{tabs-compatibility-D5yIfQ_k.cjs.map → tabs-compatibility-B_0MOHRx.cjs.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tailwind.mixin-BPLAZH0W.cjs +2 -0
- package/dist/{tailwind.mixin-2zZHkoOm.cjs.map → tailwind.mixin-BPLAZH0W.cjs.map} +1 -1
- package/dist/tailwind.mixin-NLG6hsRk.js +43 -0
- package/dist/{tailwind.mixin-DbE6WE_l.js.map → tailwind.mixin-NLG6hsRk.js.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-CNEv2Aoz.js → textarea-B-BvDcvC.js} +2 -2
- package/dist/{textarea-CNEv2Aoz.js.map → textarea-B-BvDcvC.js.map} +1 -1
- package/dist/{textarea-CswyRsoR.cjs → textarea-CfO-1Q7I.cjs} +2 -2
- package/dist/{textarea-CswyRsoR.cjs.map → textarea-CfO-1Q7I.cjs.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-button-CRcXeIw5.js → theme-button-O8T2P7bp.js} +2 -2
- package/dist/{theme-button-CRcXeIw5.js.map → theme-button-O8T2P7bp.js.map} +1 -1
- package/dist/{theme-button-DPmEDF3P.cjs → theme-button-QgQtIkNO.cjs} +2 -2
- package/dist/{theme-button-DPmEDF3P.cjs.map → theme-button-QgQtIkNO.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.component-CamQBQHp.cjs → theme.component--fI9PP4Y.cjs} +2 -2
- package/dist/{theme.component-CamQBQHp.cjs.map → theme.component--fI9PP4Y.cjs.map} +1 -1
- package/dist/{theme.component-v5kO9gkQ.js → theme.component-z0OFbxq8.js} +2 -2
- package/dist/{theme.component-v5kO9gkQ.js.map → theme.component-z0OFbxq8.js.map} +1 -1
- package/dist/theme.js +1 -1
- package/dist/{timezone-Bk4IctLE.cjs → timezone-C8PYHpA5.cjs} +2 -2
- package/dist/{timezone-Bk4IctLE.cjs.map → timezone-C8PYHpA5.cjs.map} +1 -1
- package/dist/{timezone-Yo9Sdd5R.js → timezone-CeadXobB.js} +3 -3
- package/dist/{timezone-Yo9Sdd5R.js.map → timezone-CeadXobB.js.map} +1 -1
- package/dist/{tooltip-ZJEAlZUQ.js → tooltip-DUuT16gi.js} +2 -2
- package/dist/{tooltip-ZJEAlZUQ.js.map → tooltip-DUuT16gi.js.map} +1 -1
- package/dist/{tooltip-B-yn_OSS.cjs → tooltip-DxkXzv_5.cjs} +2 -2
- package/dist/{tooltip-B-yn_OSS.cjs.map → tooltip-DxkXzv_5.cjs.map} +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/{tree-CxBWy_Vp.cjs → tree-DD_zsKhj.cjs} +2 -2
- package/dist/{tree-CxBWy_Vp.cjs.map → tree-DD_zsKhj.cjs.map} +1 -1
- package/dist/{tree-BV-2ElOU.js → tree-YKMOXZkK.js} +2 -2
- package/dist/{tree-BV-2ElOU.js.map → tree-YKMOXZkK.js.map} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/{typewriter-C-mf2RVj.cjs → typewriter-BZQFLCSO.cjs} +2 -2
- package/dist/{typewriter-C-mf2RVj.cjs.map → typewriter-BZQFLCSO.cjs.map} +1 -1
- package/dist/{typewriter-Bsn8eoJW.js → typewriter-D0ocrgfy.js} +4 -4
- package/dist/{typewriter-Bsn8eoJW.js.map → typewriter-D0ocrgfy.js.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{typography-B5Y21osS.js → typography-B813cueV.js} +2 -2
- package/dist/{typography-B5Y21osS.js.map → typography-B813cueV.js.map} +1 -1
- package/dist/{typography-pyk5TJHO.cjs → typography-C6a_0J8h.cjs} +2 -2
- package/dist/{typography-pyk5TJHO.cjs.map → typography-C6a_0J8h.cjs.map} +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/package.json +1 -1
- package/types/src/content-drawer/drawer.d.ts +1 -1
- package/types/src/content-drawer/drawer.service.d.ts +20 -0
- package/types/src/content-drawer/index.d.ts +1 -1
- package/dist/avatar-DjCNlJz6.cjs.map +0 -1
- package/dist/avatar-nxVn--Oo.js.map +0 -1
- package/dist/details-Cf7zosIT.js.map +0 -1
- package/dist/details-D6yYIQaE.cjs.map +0 -1
- package/dist/tailwind.mixin-2zZHkoOm.cjs +0 -2
- package/dist/tailwind.mixin-DbE6WE_l.js +0 -43
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import { css as
|
|
1
|
+
import { css as O, html as c, nothing as lt } from "lit";
|
|
2
2
|
import { property as l, customElement as y, state as d, queryAssignedElements as ct, query as F } from "lit/decorators.js";
|
|
3
|
-
import { Subject as
|
|
4
|
-
import "./animated-text-
|
|
5
|
-
import { b as
|
|
6
|
-
import "./autocomplete-
|
|
3
|
+
import { Subject as V, merge as G, fromEvent as f, startWith as bt, map as v, debounceTime as R, tap as D, distinctUntilChanged as K, takeUntil as m, from as st, of as U, Observable as gt, zip as it, filter as dt, take as ft, timeout as vt, bufferTime as wt, concatMap as xt, interval as $t, throwIfEmpty as Ct } from "rxjs";
|
|
4
|
+
import "./animated-text-DF5iHL66.js";
|
|
5
|
+
import { b as rt, F as St, H as Et } from "./route.component-D2BflZS9.js";
|
|
6
|
+
import "./autocomplete-DNTo7fHJ.js";
|
|
7
7
|
import "lit/directives/class-map.js";
|
|
8
8
|
import "lit/directives/style-map.js";
|
|
9
|
-
import { T as ht } from "./tailwind.mixin-
|
|
10
|
-
import { c as
|
|
11
|
-
import "./boat-
|
|
12
|
-
import "./spinner-
|
|
13
|
-
import "./icon-button-
|
|
14
|
-
import "./media-
|
|
15
|
-
import "./checkbox-
|
|
16
|
-
import "./chips-
|
|
17
|
-
import "./code-preview-
|
|
18
|
-
import "./payment-card-form-
|
|
19
|
-
import { SchmancyEvents as
|
|
20
|
-
import { n as j, e as
|
|
21
|
-
import { $ as
|
|
9
|
+
import { T as ht } from "./tailwind.mixin-NLG6hsRk.js";
|
|
10
|
+
import { c as B, f as Dt } from "./ripple-BumgqsDT.js";
|
|
11
|
+
import "./boat-BEjCaneK.js";
|
|
12
|
+
import "./spinner-1vMz2pLZ.js";
|
|
13
|
+
import "./icon-button-Bol0a-v7.js";
|
|
14
|
+
import "./media-DdD4d518.js";
|
|
15
|
+
import "./checkbox-k9tWSA4E.js";
|
|
16
|
+
import "./chips-DO6f95nV.js";
|
|
17
|
+
import "./code-preview-djAAzZxj.js";
|
|
18
|
+
import "./payment-card-form-C2rSfNUB.js";
|
|
19
|
+
import { SchmancyEvents as p } from "./types.js";
|
|
20
|
+
import { n as j, e as W } from "./provide-tcktw8xB.js";
|
|
21
|
+
import { $ as z } from "./litElement.mixin-Cs2vwcM4.js";
|
|
22
22
|
import { c as h } from "./consume-5D1qfVWM.js";
|
|
23
|
-
import "./date-range-
|
|
24
|
-
import "./date-range-inline-
|
|
25
|
-
import "./delay-
|
|
26
|
-
import "./details-
|
|
27
|
-
import "./dialog-content-
|
|
23
|
+
import "./date-range-CHJqdE9Y.js";
|
|
24
|
+
import "./date-range-inline-dlZb5tJg.js";
|
|
25
|
+
import "./delay-BP5SfQRo.js";
|
|
26
|
+
import "./details-Bd0PJpSd.js";
|
|
27
|
+
import "./dialog-content-8smVbEth.js";
|
|
28
28
|
import "./dialog-service-DwhuICgc.js";
|
|
29
|
-
import "./divider-
|
|
30
|
-
import "./dropdown-content-
|
|
31
|
-
import "./timezone-
|
|
32
|
-
import "./form-
|
|
33
|
-
import "./icon-
|
|
34
|
-
import "./input-
|
|
35
|
-
import "./flex-
|
|
36
|
-
import "./list-
|
|
37
|
-
import "./email-recipients-
|
|
38
|
-
import "./map-
|
|
39
|
-
import "./menu-
|
|
40
|
-
import { when as
|
|
41
|
-
import "./notification-service-
|
|
42
|
-
import "./option-
|
|
43
|
-
import "./progress-
|
|
44
|
-
import "./radio-button-
|
|
29
|
+
import "./divider-DnyRwbTs.js";
|
|
30
|
+
import "./dropdown-content-B1tXM7Vp.js";
|
|
31
|
+
import "./timezone-CeadXobB.js";
|
|
32
|
+
import "./form-DcKKSUWi.js";
|
|
33
|
+
import "./icon-DF5RpNTK.js";
|
|
34
|
+
import "./input-ClFADkhf.js";
|
|
35
|
+
import "./flex-CQzrxgEP.js";
|
|
36
|
+
import "./list-CIFl0wDX.js";
|
|
37
|
+
import "./email-recipients-CQNYpvG7.js";
|
|
38
|
+
import "./map-DRXTbpex.js";
|
|
39
|
+
import "./menu-vSrpyy8w.js";
|
|
40
|
+
import { when as L } from "lit/directives/when.js";
|
|
41
|
+
import "./notification-service-C5f9YdPY.js";
|
|
42
|
+
import "./option-CMyac-XQ.js";
|
|
43
|
+
import "./progress-CzZkkBKS.js";
|
|
44
|
+
import "./radio-button-CvhN1gWj.js";
|
|
45
45
|
import "./index-CW6PhEkx.js";
|
|
46
|
-
import "./select-
|
|
47
|
-
import "./sheet-
|
|
48
|
-
import { s as
|
|
49
|
-
import "./slider-
|
|
50
|
-
import "./schmancy-steps-container-
|
|
46
|
+
import "./select-BnLSAqtO.js";
|
|
47
|
+
import "./sheet-CcKYre1L.js";
|
|
48
|
+
import { s as Y } from "./sheet.service-lXqUf6n5.js";
|
|
49
|
+
import "./slider-D36miB_e.js";
|
|
50
|
+
import "./schmancy-steps-container-DJdcHEVs.js";
|
|
51
51
|
import "./context-object-u5gBaozZ.js";
|
|
52
|
-
import { map as
|
|
53
|
-
import "./surface-
|
|
54
|
-
import "./table-
|
|
55
|
-
import "./tabs-compatibility-
|
|
56
|
-
import "./textarea-
|
|
57
|
-
import "./theme.component-
|
|
58
|
-
import "./theme-button-
|
|
59
|
-
import "./tooltip-
|
|
60
|
-
import "./tree-
|
|
61
|
-
import "./typewriter-
|
|
62
|
-
import "./typography-
|
|
63
|
-
import { S as
|
|
64
|
-
var
|
|
65
|
-
for (var n, s =
|
|
66
|
-
return
|
|
52
|
+
import { map as Ot, distinctUntilChanged as zt, take as kt } from "rxjs/operators";
|
|
53
|
+
import "./surface-DWRvqMeW.js";
|
|
54
|
+
import "./table-BYOOIwQ3.js";
|
|
55
|
+
import "./tabs-compatibility-BQZ_4rKO.js";
|
|
56
|
+
import "./textarea-B-BvDcvC.js";
|
|
57
|
+
import "./theme.component-z0OFbxq8.js";
|
|
58
|
+
import "./theme-button-O8T2P7bp.js";
|
|
59
|
+
import "./tooltip-DUuT16gi.js";
|
|
60
|
+
import "./tree-YKMOXZkK.js";
|
|
61
|
+
import "./typewriter-D0ocrgfy.js";
|
|
62
|
+
import "./typography-B813cueV.js";
|
|
63
|
+
import { S as o } from "./theme.interface-C5Kj6WjD.js";
|
|
64
|
+
var Mt = Object.defineProperty, Wt = Object.getOwnPropertyDescriptor, E = (t, e, i, r) => {
|
|
65
|
+
for (var n, s = r > 1 ? void 0 : r ? Wt(e, i) : e, a = t.length - 1; a >= 0; a--) (n = t[a]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
66
|
+
return r && s && Mt(e, i, s), s;
|
|
67
67
|
};
|
|
68
|
-
let $ = class extends ht(
|
|
68
|
+
let $ = class extends ht(O`
|
|
69
69
|
:host {
|
|
70
70
|
display: inline-flex;
|
|
71
71
|
}
|
|
@@ -174,22 +174,22 @@ let $ = class extends ht(z`
|
|
|
174
174
|
return this.size === "lg" && (t.letterSpacing = "0.03em", t.fontWeight = "500"), this.size === "sm" && (t.letterSpacing = "0.02em"), t;
|
|
175
175
|
}
|
|
176
176
|
getColorStyles() {
|
|
177
|
-
return { primary: { bg: this.outlined ? "transparent" : `color-mix(in srgb, ${
|
|
177
|
+
return { primary: { bg: this.outlined ? "transparent" : `color-mix(in srgb, ${o.sys.color.primary.container} 92%, ${o.sys.color.primary.default} 8%)`, text: this.outlined ? o.sys.color.primary.default : o.sys.color.primary.onContainer, border: this.outlined ? `color-mix(in srgb, ${o.sys.color.primary.default} 90%, ${o.sys.color.surface.highest} 10%)` : void 0 }, secondary: { bg: this.outlined ? "transparent" : `color-mix(in srgb, ${o.sys.color.secondary.container} 95%, ${o.sys.color.secondary.default} 5%)`, text: this.outlined ? o.sys.color.secondary.default : o.sys.color.secondary.onContainer, border: this.outlined ? `color-mix(in srgb, ${o.sys.color.secondary.default} 85%, ${o.sys.color.surface.highest} 15%)` : void 0 }, tertiary: { bg: this.outlined ? "transparent" : `color-mix(in srgb, ${o.sys.color.tertiary.container} 94%, ${o.sys.color.tertiary.default} 6%)`, text: this.outlined ? o.sys.color.tertiary.default : o.sys.color.tertiary.onContainer, border: this.outlined ? `color-mix(in srgb, ${o.sys.color.tertiary.default} 88%, ${o.sys.color.surface.highest} 12%)` : void 0 }, success: { bg: this.outlined ? "transparent" : `color-mix(in srgb, ${o.sys.color.success.container} 90%, ${o.sys.color.success.default} 10%)`, text: this.outlined ? o.sys.color.success.default : o.sys.color.success.onContainer, border: this.outlined ? `color-mix(in srgb, ${o.sys.color.success.default} 85%, ${o.sys.color.surface.bright} 15%)` : void 0 }, warning: { bg: this.outlined ? "transparent" : `color-mix(in srgb, ${o.sys.color.tertiary.container} 85%, ${o.sys.color.tertiary.default} 15%)`, text: this.outlined ? o.sys.color.tertiary.default : o.sys.color.tertiary.onContainer, border: this.outlined ? `color-mix(in srgb, ${o.sys.color.tertiary.default} 90%, ${o.sys.color.surface.highest} 10%)` : void 0 }, error: { bg: this.outlined ? "transparent" : `color-mix(in srgb, ${o.sys.color.error.container} 92%, ${o.sys.color.error.default} 8%)`, text: this.outlined ? o.sys.color.error.default : o.sys.color.error.onContainer, border: this.outlined ? `color-mix(in srgb, ${o.sys.color.error.default} 88%, ${o.sys.color.surface.bright} 12%)` : void 0 }, neutral: { bg: this.outlined ? "transparent" : `color-mix(in srgb, ${o.sys.color.surface.high} 95%, ${o.sys.color.outline} 5%)`, text: this.outlined ? `color-mix(in srgb, ${o.sys.color.surface.on} 95%, ${o.sys.color.surface.default} 5%)` : o.sys.color.surface.on, border: this.outlined ? `color-mix(in srgb, ${o.sys.color.outline} 85%, ${o.sys.color.surface.highest} 15%)` : void 0 } }[this.color];
|
|
178
178
|
}
|
|
179
179
|
render() {
|
|
180
|
-
const t = this.getSizeClasses(), e = this.getShapeClasses(),
|
|
180
|
+
const t = this.getSizeClasses(), e = this.getShapeClasses(), i = this.getColorStyles(), r = this.getIconSize(), n = this.getExoticStyles(), s = { "inline-flex items-center justify-center font-medium": !0, [t]: !0, [e]: !0, "animate-pulse": this.pulse, "border border-solid": this.outlined, "shadow-sm": !this.outlined && this.size === "sm", shadow: !this.outlined && this.size === "md", "shadow-md": !this.outlined && this.size === "lg" }, a = { borderColor: i.border, transition: "all 0.2s ease", ...this.outlined ? { backdropFilter: "blur(4px)", borderWidth: "1px" } : {}, ...this.size !== "lg" || this.outlined ? {} : { boxShadow: "0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.1)" }, ...n };
|
|
181
181
|
return c`
|
|
182
182
|
<div
|
|
183
183
|
part="badge"
|
|
184
184
|
class="${this.classMap(s)}"
|
|
185
185
|
style="${this.styleMap(a)}"
|
|
186
|
-
${
|
|
186
|
+
${B({ bgColor: i.bg, color: i.text })}
|
|
187
187
|
>
|
|
188
188
|
<!-- Icon slot or named icon -->
|
|
189
189
|
<slot name="icon">
|
|
190
190
|
${this.icon ? c`
|
|
191
191
|
<div part="icon" class="icon-container flex-shrink-0 flex items-center justify-center">
|
|
192
|
-
<schmancy-icon .size=${
|
|
192
|
+
<schmancy-icon .size=${r} class="flex items-center">${this.icon}</schmancy-icon>
|
|
193
193
|
</div>
|
|
194
194
|
` : ""}
|
|
195
195
|
</slot>
|
|
@@ -202,28 +202,46 @@ let $ = class extends ht(z`
|
|
|
202
202
|
`;
|
|
203
203
|
}
|
|
204
204
|
};
|
|
205
|
-
|
|
205
|
+
E([l({ type: String, reflect: !0 })], $.prototype, "color", 2), E([l({ type: String, reflect: !0 })], $.prototype, "size", 2), E([l({ type: String, reflect: !0 })], $.prototype, "shape", 2), E([l({ type: Boolean, reflect: !0 })], $.prototype, "outlined", 2), E([l({ type: String })], $.prototype, "icon", 2), E([l({ type: Boolean, reflect: !0 })], $.prototype, "pulse", 2), $ = E([y("schmancy-badge")], $);
|
|
206
206
|
let ot = class extends $ {
|
|
207
207
|
};
|
|
208
|
-
ot =
|
|
208
|
+
ot = E([y("sch-badge")], ot);
|
|
209
209
|
const os = new class {
|
|
210
210
|
constructor() {
|
|
211
|
-
this.$drawer = new
|
|
212
|
-
t.action === "dismiss" ? t.ref.dispatchEvent(new CustomEvent(
|
|
211
|
+
this.$drawer = new V(), this.lastComponent = null, this.$drawer.pipe().subscribe((t) => {
|
|
212
|
+
t.action === "dismiss" ? t.ref.dispatchEvent(new CustomEvent(p.ContentDrawerToggle, { detail: { state: "close" }, bubbles: !0, composed: !0 })) : t.action === "render" ? (t.ref.dispatchEvent(new CustomEvent(p.ContentDrawerToggle, { detail: { state: "open" }, bubbles: !0, composed: !0 })), t.ref.dispatchEvent(new CustomEvent("schmancy-content-drawer-render", { detail: { component: t.component, title: t.title }, bubbles: !0, composed: !0 }))) : t.action === "push" && this.handlePush(t.ref, t.component);
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
dimiss(t) {
|
|
216
216
|
this.$drawer.next({ action: "dismiss", ref: t });
|
|
217
217
|
}
|
|
218
|
-
render(t, e,
|
|
219
|
-
t.dispatchEvent(new CustomEvent("custom-event")), this.$drawer.next({ action: "render", ref: t, component: e, title:
|
|
218
|
+
render(t, e, i) {
|
|
219
|
+
t.dispatchEvent(new CustomEvent("custom-event")), this.$drawer.next({ action: "render", ref: t, component: e, title: i });
|
|
220
|
+
}
|
|
221
|
+
async handlePush(t, e) {
|
|
222
|
+
let i;
|
|
223
|
+
if (typeof e == "string") i = document.createElement(e);
|
|
224
|
+
else if (e instanceof HTMLElement) i = e;
|
|
225
|
+
else {
|
|
226
|
+
if (typeof e != "function") return;
|
|
227
|
+
try {
|
|
228
|
+
const r = await e();
|
|
229
|
+
r && typeof r == "object" && "default" in r ? i = new r.default() : i = r instanceof HTMLElement ? r : new r();
|
|
230
|
+
} catch {
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
this.lastComponent === i && "requestUpdate" in i && i.requestUpdate(), this.lastComponent = i, t.dispatchEvent(new CustomEvent(p.ContentDrawerToggle, { detail: { state: "open" }, bubbles: !0, composed: !0 })), t.dispatchEvent(new CustomEvent("schmancy-content-drawer-render", { detail: { component: i }, bubbles: !0, composed: !0 }));
|
|
235
|
+
}
|
|
236
|
+
push(t) {
|
|
237
|
+
this.$drawer.next({ action: "push", ref: window, component: t });
|
|
220
238
|
}
|
|
221
|
-
}(),
|
|
222
|
-
var jt = Object.defineProperty, Pt = Object.getOwnPropertyDescriptor, k = (t, e,
|
|
223
|
-
for (var n, s =
|
|
224
|
-
return
|
|
239
|
+
}(), J = j("push"), pt = j("close"), mt = j(Math.floor(Math.random() * Date.now()).toString()), Q = j("100%"), Z = j({});
|
|
240
|
+
var jt = Object.defineProperty, Pt = Object.getOwnPropertyDescriptor, k = (t, e, i, r) => {
|
|
241
|
+
for (var n, s = r > 1 ? void 0 : r ? Pt(e, i) : e, a = t.length - 1; a >= 0; a--) (n = t[a]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
242
|
+
return r && s && jt(e, i, s), s;
|
|
225
243
|
};
|
|
226
|
-
let C = class extends
|
|
244
|
+
let C = class extends z(O`
|
|
227
245
|
:host {
|
|
228
246
|
position: relative;
|
|
229
247
|
inset: 0;
|
|
@@ -235,18 +253,18 @@ let C = class extends E(z`
|
|
|
235
253
|
super(...arguments), this.minWidth = { main: 360, sheet: 576 }, this.schmancyContentDrawerID = Math.floor(Math.random() * Date.now()).toString(), this.maxHeight = "100%";
|
|
236
254
|
}
|
|
237
255
|
firstUpdated() {
|
|
238
|
-
|
|
256
|
+
G(f(window, "resize"), f(window, p.ContentDrawerResize)).pipe(bt(!0), v(() => this.clientWidth ? this.clientWidth : window.innerWidth), v((t) => t >= this.minWidth.main + this.minWidth.sheet), R(100), D(() => {
|
|
239
257
|
this.maxHeight = window.innerHeight - this.getOffsetTop(this) - 32 + "px", this.style.setProperty("max-height", this.maxHeight);
|
|
240
|
-
}), K(),
|
|
258
|
+
}), K(), m(this.disconnecting)).subscribe((t) => {
|
|
241
259
|
t ? (this.mode = "push", this.open = "open") : (this.mode = "overlay", this.open = "close");
|
|
242
|
-
}), f(window,
|
|
260
|
+
}), f(window, p.ContentDrawerToggle).pipe(D((t) => {
|
|
243
261
|
t.stopPropagation();
|
|
244
|
-
}), v((t) => t.detail.state),
|
|
262
|
+
}), v((t) => t.detail.state), m(this.disconnecting)).subscribe((t) => {
|
|
245
263
|
this.open = t;
|
|
246
|
-
}), f(window, "schmancy-content-drawer-render").pipe(
|
|
264
|
+
}), f(window, "schmancy-content-drawer-render").pipe(D((t) => {
|
|
247
265
|
t.stopPropagation();
|
|
248
|
-
}), v((t) => t.detail),
|
|
249
|
-
this.mode === "push" ? (
|
|
266
|
+
}), v((t) => t.detail), m(this.disconnecting)).subscribe(({ component: t, title: e }) => {
|
|
267
|
+
this.mode === "push" ? (rt.push({ area: this.schmancyContentDrawerID, component: "empty", historyStrategy: "silent" }), rt.push({ area: this.schmancyContentDrawerID, component: t, historyStrategy: "silent" })) : (this.mode = "overlay") && Y.open({ component: t, uid: this.schmancyContentDrawerID, title: e });
|
|
250
268
|
});
|
|
251
269
|
}
|
|
252
270
|
getOffsetTop(t) {
|
|
@@ -268,12 +286,12 @@ let C = class extends E(z`
|
|
|
268
286
|
` : lt;
|
|
269
287
|
}
|
|
270
288
|
};
|
|
271
|
-
k([
|
|
272
|
-
var It = Object.defineProperty,
|
|
273
|
-
for (var n, s =
|
|
274
|
-
return
|
|
289
|
+
k([W({ context: Z })], C.prototype, "minWidth", 2), k([W({ context: pt }), l()], C.prototype, "open", 2), k([W({ context: J }), d()], C.prototype, "mode", 2), k([W({ context: mt })], C.prototype, "schmancyContentDrawerID", 2), k([W({ context: Q })], C.prototype, "maxHeight", 2), k([ct({ flatten: !0 })], C.prototype, "assignedElements", 2), C = k([y("schmancy-content-drawer")], C);
|
|
290
|
+
var It = Object.defineProperty, Tt = Object.getOwnPropertyDescriptor, T = (t, e, i, r) => {
|
|
291
|
+
for (var n, s = r > 1 ? void 0 : r ? Tt(e, i) : e, a = t.length - 1; a >= 0; a--) (n = t[a]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
292
|
+
return r && s && It(e, i, s), s;
|
|
275
293
|
};
|
|
276
|
-
let P = class extends
|
|
294
|
+
let P = class extends z(O`
|
|
277
295
|
:host {
|
|
278
296
|
display: block;
|
|
279
297
|
overflow: hidden;
|
|
@@ -283,7 +301,7 @@ let P = class extends E(z`
|
|
|
283
301
|
super.connectedCallback(), this.minWidth ? this.drawerMinWidth.main = this.minWidth : this.minWidth = this.drawerMinWidth.main;
|
|
284
302
|
}
|
|
285
303
|
update(t) {
|
|
286
|
-
super.update(t), t.has("minWidth") && this.minWidth && (this.drawerMinWidth.main = this.minWidth, this.dispatchEvent(new CustomEvent(
|
|
304
|
+
super.update(t), t.has("minWidth") && this.minWidth && (this.drawerMinWidth.main = this.minWidth, this.dispatchEvent(new CustomEvent(p.ContentDrawerResize, { bubbles: !0, composed: !0 })));
|
|
287
305
|
}
|
|
288
306
|
render() {
|
|
289
307
|
const t = { minWidth: `${this.minWidth}px`, maxHeight: this.maxHeight };
|
|
@@ -301,17 +319,17 @@ let P = class extends E(z`
|
|
|
301
319
|
<slot></slot>
|
|
302
320
|
</section>
|
|
303
321
|
</schmancy-grid>
|
|
304
|
-
${
|
|
322
|
+
${L(this.mode === "push", () => c` <schmancy-divider class="absolute right-0 top-0" orientation="vertical"></schmancy-divider>`)}
|
|
305
323
|
</section>
|
|
306
324
|
`;
|
|
307
325
|
}
|
|
308
326
|
};
|
|
309
|
-
|
|
310
|
-
var
|
|
311
|
-
for (var n, s =
|
|
312
|
-
return
|
|
327
|
+
T([l({ type: Number })], P.prototype, "minWidth", 2), T([h({ context: Z, subscribe: !0 })], P.prototype, "drawerMinWidth", 2), T([h({ context: J, subscribe: !0 }), d()], P.prototype, "mode", 2), T([h({ context: Q, subscribe: !0 }), d()], P.prototype, "maxHeight", 2), P = T([y("schmancy-content-drawer-main")], P);
|
|
328
|
+
var Nt = Object.defineProperty, _t = Object.getOwnPropertyDescriptor, w = (t, e, i, r) => {
|
|
329
|
+
for (var n, s = r > 1 ? void 0 : r ? _t(e, i) : e, a = t.length - 1; a >= 0; a--) (n = t[a]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
330
|
+
return r && s && Nt(e, i, s), s;
|
|
313
331
|
};
|
|
314
|
-
let u = class extends
|
|
332
|
+
let u = class extends z(O`
|
|
315
333
|
:host {
|
|
316
334
|
overflow: scroll;
|
|
317
335
|
}
|
|
@@ -320,16 +338,16 @@ let u = class extends E(z`
|
|
|
320
338
|
super.connectedCallback(), this.minWidth ? this.drawerMinWidth.sheet = this.minWidth : this.minWidth = this.drawerMinWidth.sheet;
|
|
321
339
|
}
|
|
322
340
|
updated(t) {
|
|
323
|
-
super.updated(t), t.has("minWidth") && this.minWidth ? (this.drawerMinWidth.sheet = this.minWidth, this.dispatchEvent(new CustomEvent(
|
|
341
|
+
super.updated(t), t.has("minWidth") && this.minWidth ? (this.drawerMinWidth.sheet = this.minWidth, this.dispatchEvent(new CustomEvent(p.ContentDrawerResize, { bubbles: !0, composed: !0 }))) : (t.has("state") || t.has("mode")) && (this.mode === "overlay" ? this.state === "close" ? this.closeAll() : this.state : this.mode === "push" && (Y.dismiss(this.schmancyContentDrawerID), this.state === "close" ? this.closeAll() : this.state === "open" && this.open()));
|
|
324
342
|
}
|
|
325
343
|
open() {
|
|
326
344
|
this.mode === "overlay" ? this.sheet.style.position = "fixed" : this.sheet.style.position = "relative", this.sheet.style.display = "block", this.sheet.animate([{ opacity: 0, transform: "translateX(100%)" }, { opacity: 1, transform: "translateX(0%)" }], { duration: 500, easing: "cubic-bezier(0.5, 0.01, 0.25, 1)" });
|
|
327
345
|
}
|
|
328
346
|
closeAll() {
|
|
329
|
-
|
|
347
|
+
G(st(this.closeModalSheet()), st(this.closeSheet())).pipe(m(this.disconnecting)).subscribe();
|
|
330
348
|
}
|
|
331
349
|
closeModalSheet() {
|
|
332
|
-
return
|
|
350
|
+
return U(!0).pipe(D(() => Y.dismiss(this.schmancyContentDrawerID)));
|
|
333
351
|
}
|
|
334
352
|
closeSheet() {
|
|
335
353
|
return new gt((t) => {
|
|
@@ -349,11 +367,11 @@ let u = class extends E(z`
|
|
|
349
367
|
`;
|
|
350
368
|
}
|
|
351
369
|
};
|
|
352
|
-
w([l({ type: Number })], u.prototype, "minWidth", 2), w([h({ context:
|
|
370
|
+
w([l({ type: Number })], u.prototype, "minWidth", 2), w([h({ context: J, subscribe: !0 }), d()], u.prototype, "mode", 2), w([h({ context: pt, subscribe: !0 }), d()], u.prototype, "state", 2), w([h({ context: mt })], u.prototype, "schmancyContentDrawerID", 2), w([F("#sheet")], u.prototype, "sheet", 2), w([ct({ flatten: !0, slot: void 0 })], u.prototype, "defaultSlot", 2), w([h({ context: Z, subscribe: !0 })], u.prototype, "drawerMinWidth", 2), w([h({ context: Q, subscribe: !0 }), d()], u.prototype, "maxHeight", 2), u = w([y("schmancy-content-drawer-sheet")], u);
|
|
353
371
|
const Xt = new class {
|
|
354
372
|
constructor() {
|
|
355
|
-
this.$drawer = new
|
|
356
|
-
t.state ? window.dispatchEvent(new CustomEvent(
|
|
373
|
+
this.$drawer = new V(), this.$drawer.pipe(R(10)).subscribe((t) => {
|
|
374
|
+
t.state ? window.dispatchEvent(new CustomEvent(p.NavDrawer_toggle, { detail: { state: "open" }, bubbles: !0, composed: !0 })) : window.dispatchEvent(new CustomEvent(p.NavDrawer_toggle, { detail: { state: "close" }, bubbles: !0, composed: !0 }));
|
|
357
375
|
});
|
|
358
376
|
}
|
|
359
377
|
open(t) {
|
|
@@ -363,11 +381,11 @@ const Xt = new class {
|
|
|
363
381
|
this.$drawer.next({ self: t, state: !1 });
|
|
364
382
|
}
|
|
365
383
|
}(), ns = Xt, tt = j("push"), et = j("close");
|
|
366
|
-
var
|
|
367
|
-
for (var n, s =
|
|
368
|
-
return
|
|
384
|
+
var Ht = Object.defineProperty, At = Object.getOwnPropertyDescriptor, X = (t, e, i, r) => {
|
|
385
|
+
for (var n, s = r > 1 ? void 0 : r ? At(e, i) : e, a = t.length - 1; a >= 0; a--) (n = t[a]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
386
|
+
return r && s && Ht(e, i, s), s;
|
|
369
387
|
};
|
|
370
|
-
let
|
|
388
|
+
let N = class extends ht(O`
|
|
371
389
|
:host {
|
|
372
390
|
display: block;
|
|
373
391
|
}
|
|
@@ -379,14 +397,14 @@ let _ = class extends ht(z`
|
|
|
379
397
|
const t = { "block left-3 z-50": this.sidebarMode === "overlay", hidden: this.sidebarMode === "push" }, e = { "block z-50": !0, "grid gap-2 items-center": !0, "grid-cols-[auto_1fr]": this.sidebarMode === "overlay" && this.toggler, "grid-cols-1": !(this.sidebarMode === "overlay" && this.toggler) };
|
|
380
398
|
return c`
|
|
381
399
|
<div class=${this.classMap(e)}>
|
|
382
|
-
${
|
|
400
|
+
${L(this.sidebarMode === "overlay" && this.toggler, () => c`<slot name="toggler">
|
|
383
401
|
<div class="${this.classMap(t)}">
|
|
384
402
|
<schmancy-icon-button
|
|
385
403
|
@click=${() => {
|
|
386
|
-
this.dispatchEvent(new CustomEvent(
|
|
404
|
+
this.dispatchEvent(new CustomEvent(p.NavDrawer_toggle, { detail: { state: this.sidebarOpen === "open" ? "close" : "open" }, bubbles: !0, composed: !0 }));
|
|
387
405
|
}}
|
|
388
406
|
>
|
|
389
|
-
${
|
|
407
|
+
${L(this.sidebarOpen === "close", () => c`menu`, () => c`menu_open`)}
|
|
390
408
|
</schmancy-icon-button>
|
|
391
409
|
</div>
|
|
392
410
|
</slot>`)}
|
|
@@ -396,9 +414,9 @@ let _ = class extends ht(z`
|
|
|
396
414
|
`;
|
|
397
415
|
}
|
|
398
416
|
};
|
|
399
|
-
X([h({ context: tt, subscribe: !0 }), d()],
|
|
400
|
-
var
|
|
401
|
-
let nt = class extends
|
|
417
|
+
X([h({ context: tt, subscribe: !0 }), d()], N.prototype, "sidebarMode", 2), X([h({ context: et, subscribe: !0 }), d()], N.prototype, "sidebarOpen", 2), X([l({ type: Boolean })], N.prototype, "toggler", 2), N = X([y("schmancy-nav-drawer-appbar")], N);
|
|
418
|
+
var qt = Object.getOwnPropertyDescriptor;
|
|
419
|
+
let nt = class extends z(O`
|
|
402
420
|
:host {
|
|
403
421
|
display: block;
|
|
404
422
|
position: relative;
|
|
@@ -407,7 +425,7 @@ let nt = class extends E(z`
|
|
|
407
425
|
}
|
|
408
426
|
`) {
|
|
409
427
|
connectedCallback() {
|
|
410
|
-
super.connectedCallback(), f(this, "scroll").pipe(
|
|
428
|
+
super.connectedCallback(), f(this, "scroll").pipe(m(this.disconnecting)).subscribe((t) => {
|
|
411
429
|
this.parentElement.dispatchEvent(new CustomEvent("scroll", { detail: t, bubbles: !0, composed: !0 }));
|
|
412
430
|
});
|
|
413
431
|
}
|
|
@@ -415,15 +433,15 @@ let nt = class extends E(z`
|
|
|
415
433
|
return c` <slot></slot> `;
|
|
416
434
|
}
|
|
417
435
|
};
|
|
418
|
-
nt = ((t, e,
|
|
419
|
-
for (var n, s =
|
|
436
|
+
nt = ((t, e, i, r) => {
|
|
437
|
+
for (var n, s = r > 1 ? void 0 : r ? qt(e, i) : e, a = t.length - 1; a >= 0; a--) (n = t[a]) && (s = n(s) || s);
|
|
420
438
|
return s;
|
|
421
439
|
})([y("schmancy-nav-drawer-content")], nt);
|
|
422
|
-
var
|
|
423
|
-
for (var n, s =
|
|
424
|
-
return
|
|
440
|
+
var Rt = Object.defineProperty, Ut = Object.getOwnPropertyDescriptor, I = (t, e, i, r) => {
|
|
441
|
+
for (var n, s = r > 1 ? void 0 : r ? Ut(e, i) : e, a = t.length - 1; a >= 0; a--) (n = t[a]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
442
|
+
return r && s && Rt(e, i, s), s;
|
|
425
443
|
};
|
|
426
|
-
let g = class extends
|
|
444
|
+
let g = class extends z(O`
|
|
427
445
|
:host {
|
|
428
446
|
display: flex;
|
|
429
447
|
flex-grow: 1;
|
|
@@ -440,11 +458,11 @@ let g = class extends E(z`
|
|
|
440
458
|
super(...arguments), this.fullscreen = !1, this.breakpoint = "md", this._initialized = !1;
|
|
441
459
|
}
|
|
442
460
|
firstUpdated() {
|
|
443
|
-
this.updateState(window.innerWidth), this._initialized = !0, this.setAttribute("data-ready", ""), f(window, "resize").pipe(v((t) => t.target.innerWidth), v((t) => t >= g.BREAKPOINTS[this.breakpoint]), K(),
|
|
461
|
+
this.updateState(window.innerWidth), this._initialized = !0, this.setAttribute("data-ready", ""), f(window, "resize").pipe(v((t) => t.target.innerWidth), v((t) => t >= g.BREAKPOINTS[this.breakpoint]), K(), R(100), m(this.disconnecting)).subscribe((t) => {
|
|
444
462
|
t ? (this.mode = "push", this.open = "open") : (this.mode = "overlay", this.open = "close");
|
|
445
|
-
}), f(window,
|
|
463
|
+
}), f(window, p.NavDrawer_toggle).pipe(D((t) => {
|
|
446
464
|
t.stopPropagation();
|
|
447
|
-
}), v((t) => t.detail.state), K(),
|
|
465
|
+
}), v((t) => t.detail.state), K(), m(this.disconnecting), R(10)).subscribe((t) => {
|
|
448
466
|
this.mode === "push" && t === "close" || (this.open = t);
|
|
449
467
|
});
|
|
450
468
|
}
|
|
@@ -460,20 +478,20 @@ let g = class extends E(z`
|
|
|
460
478
|
flow="col"
|
|
461
479
|
justify="stretch"
|
|
462
480
|
align="stretch"
|
|
463
|
-
${
|
|
481
|
+
${Dt()}
|
|
464
482
|
>
|
|
465
483
|
<slot></slot>
|
|
466
484
|
</schmancy-grid>
|
|
467
485
|
` : lt;
|
|
468
486
|
}
|
|
469
487
|
};
|
|
470
|
-
g.BREAKPOINTS = { sm: 640, md: 768, lg: 1024, xl: 1280 }, I([l({ type: Boolean })], g.prototype, "fullscreen", 2), I([l({ type: String, attribute: "breakpoint" })], g.prototype, "breakpoint", 2), I([
|
|
471
|
-
var
|
|
472
|
-
for (var n, s =
|
|
473
|
-
return
|
|
488
|
+
g.BREAKPOINTS = { sm: 640, md: 768, lg: 1024, xl: 1280 }, I([l({ type: Boolean })], g.prototype, "fullscreen", 2), I([l({ type: String, attribute: "breakpoint" })], g.prototype, "breakpoint", 2), I([W({ context: tt }), d()], g.prototype, "mode", 2), I([W({ context: et }), l()], g.prototype, "open", 2), I([d()], g.prototype, "_initialized", 2), g = I([y("schmancy-nav-drawer")], g);
|
|
489
|
+
var Bt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, M = (t, e, i, r) => {
|
|
490
|
+
for (var n, s = r > 1 ? void 0 : r ? Ft(e, i) : e, a = t.length - 1; a >= 0; a--) (n = t[a]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
491
|
+
return r && s && Bt(e, i, s), s;
|
|
474
492
|
};
|
|
475
|
-
const
|
|
476
|
-
let S = class extends
|
|
493
|
+
const H = "cubic-bezier(0.5, 0.01, 0.25, 1)";
|
|
494
|
+
let S = class extends z() {
|
|
477
495
|
constructor() {
|
|
478
496
|
super(...arguments), this.width = "320px", this._initialized = !1;
|
|
479
497
|
}
|
|
@@ -484,25 +502,25 @@ let S = class extends E() {
|
|
|
484
502
|
this._initialized && (t.has("drawerState") || t.has("mode")) && (this.mode === "overlay" ? this.drawerState === "open" ? this.nav.style.transform !== "translateX(0)" && (this.openOverlay(), this.showNavDrawer()) : this.drawerState === "close" && this.nav.style.transform !== "translateX(-100%)" && (this.hideNavDrawer(), this.closeOverlay()) : this.mode === "push" && (this.nav.style.transform !== "translateX(0)" && this.showNavDrawer(), this.overlay.style.display !== "none" && this.closeOverlay()));
|
|
485
503
|
}
|
|
486
504
|
openOverlay() {
|
|
487
|
-
this.overlay.style.display = "block", this.overlay.animate([{ opacity: 0 }, { opacity: 0.4 }], { duration: 200, easing:
|
|
505
|
+
this.overlay.style.display = "block", this.overlay.animate([{ opacity: 0 }, { opacity: 0.4 }], { duration: 200, easing: H, fill: "forwards" });
|
|
488
506
|
}
|
|
489
507
|
closeOverlay() {
|
|
490
|
-
this.overlay.animate([{ opacity: 0.4 }, { opacity: 0 }], { duration: 150, easing:
|
|
508
|
+
this.overlay.animate([{ opacity: 0.4 }, { opacity: 0 }], { duration: 150, easing: H, fill: "forwards" }).onfinish = () => {
|
|
491
509
|
this.overlay.style.display = "none";
|
|
492
510
|
};
|
|
493
511
|
}
|
|
494
512
|
showNavDrawer() {
|
|
495
|
-
this.nav.animate([{ transform: "translateX(-100%)" }, { transform: "translateX(0)" }], { duration: 200, easing:
|
|
513
|
+
this.nav.animate([{ transform: "translateX(-100%)" }, { transform: "translateX(0)" }], { duration: 200, easing: H, fill: "forwards" }).onfinish = () => {
|
|
496
514
|
this.nav.style.transform = "translateX(0)";
|
|
497
515
|
};
|
|
498
516
|
}
|
|
499
517
|
hideNavDrawer() {
|
|
500
|
-
this.nav.animate([{ transform: "translateX(0)" }, { transform: "translateX(-100%)" }], { duration: 200, easing:
|
|
518
|
+
this.nav.animate([{ transform: "translateX(0)" }, { transform: "translateX(-100%)" }], { duration: 200, easing: H, fill: "forwards" }).onfinish = () => {
|
|
501
519
|
this.nav.style.transform = "translateX(-100%)";
|
|
502
520
|
};
|
|
503
521
|
}
|
|
504
522
|
handleOverlayClick() {
|
|
505
|
-
window.dispatchEvent(new CustomEvent(
|
|
523
|
+
window.dispatchEvent(new CustomEvent(p.NavDrawer_toggle, { detail: { state: "close" }, bubbles: !0, composed: !0 }));
|
|
506
524
|
}
|
|
507
525
|
render() {
|
|
508
526
|
const t = { "p-[16px] max-w-[360px] w-fit h-full overflow-auto": !0, block: this.mode === "push", "fixed inset-0 z-50": this.mode === "overlay" }, e = { width: this.width };
|
|
@@ -510,42 +528,42 @@ let S = class extends E() {
|
|
|
510
528
|
<nav
|
|
511
529
|
style=${this.styleMap(e)}
|
|
512
530
|
class="${this.classMap({ ...t })}"
|
|
513
|
-
${
|
|
531
|
+
${B({ bgColor: o.sys.color.surface.container })}
|
|
514
532
|
>
|
|
515
533
|
<slot></slot>
|
|
516
534
|
</nav>
|
|
517
535
|
<div
|
|
518
536
|
id="overlay"
|
|
519
|
-
${
|
|
537
|
+
${B({ bgColor: o.sys.color.scrim })}
|
|
520
538
|
@click=${this.handleOverlayClick}
|
|
521
539
|
class="${this.classMap({ "fixed inset-0 z-49 hidden": !0 })}"
|
|
522
540
|
></div>
|
|
523
541
|
`;
|
|
524
542
|
}
|
|
525
543
|
};
|
|
526
|
-
|
|
527
|
-
const yt = "whereAreYouRicky", ut = "hereMorty",
|
|
544
|
+
M([h({ context: tt, subscribe: !0 }), d()], S.prototype, "mode", 2), M([h({ context: et, subscribe: !0 }), d()], S.prototype, "drawerState", 2), M([F("#overlay")], S.prototype, "overlay", 2), M([F("nav")], S.prototype, "nav", 2), M([l({ type: String })], S.prototype, "width", 2), M([d()], S.prototype, "_initialized", 2), S = M([y("schmancy-nav-drawer-navbar")], S);
|
|
545
|
+
const yt = "whereAreYouRicky", ut = "hereMorty", A = new class {
|
|
528
546
|
constructor() {
|
|
529
|
-
this.activeTeleportations = /* @__PURE__ */ new Map(), this.flipRequests = new
|
|
547
|
+
this.activeTeleportations = /* @__PURE__ */ new Map(), this.flipRequests = new V(), this.find = (t) => it([f(window, ut).pipe(dt((e) => !!e.detail.component.uuid && !!t.id && e.detail.component.id === t.id && e.detail.component.uuid !== t.uuid), v((e) => e.detail.component), ft(1)), U(t).pipe(D(() => {
|
|
530
548
|
window.dispatchEvent(new CustomEvent(yt, { detail: { id: t.id, callerID: t.uuid } }));
|
|
531
549
|
}))]).pipe(v(([e]) => e), vt(0)), this.flip = (t) => {
|
|
532
|
-
const { from: e, to:
|
|
533
|
-
|
|
534
|
-
const n = [{ transform: `translate(${e.rect.left -
|
|
535
|
-
|
|
536
|
-
|
|
550
|
+
const { from: e, to: i } = t, r = i.element.style.zIndex;
|
|
551
|
+
i.element.style.transformOrigin = "top left", i.element.style.setProperty("visibility", "visible"), i.element.style.zIndex = "1000";
|
|
552
|
+
const n = [{ transform: `translate(${e.rect.left - i.rect.left}px, ${e.rect.top - i.rect.top}px) scale(${e.rect.width / i.rect.width}, ${e.rect.height / i.rect.height})` }, { transform: "translate(0, 0) scale(1, 1)" }];
|
|
553
|
+
i.element.animate(n, { duration: 250, delay: 10, easing: "cubic-bezier(0.455, 0.03, 0.515, 0.955)" }).onfinish = () => {
|
|
554
|
+
i.element.style.zIndex = r, i.element.style.transformOrigin = "";
|
|
537
555
|
};
|
|
538
|
-
}, this.flipRequests.pipe(wt(1), v((t) => t.map(({ from: e, to:
|
|
556
|
+
}, this.flipRequests.pipe(wt(1), v((t) => t.map(({ from: e, to: i, host: r }, n) => ({ from: e, to: i, host: r, i: n }))), xt((t) => it(t.map((e) => U(this.flip(e)))))).subscribe();
|
|
539
557
|
}
|
|
540
558
|
}();
|
|
541
559
|
function at(t) {
|
|
542
|
-
return $t(50).pipe(
|
|
560
|
+
return $t(50).pipe(Ot(() => t.getBoundingClientRect()), zt((e, i) => e.width === i.width && e.height === i.height && e.top === i.top && e.right === i.right && e.bottom === i.bottom && e.left === i.left), kt(1));
|
|
543
561
|
}
|
|
544
|
-
var Kt = Object.defineProperty,
|
|
545
|
-
for (var n, s =
|
|
546
|
-
return
|
|
562
|
+
var Kt = Object.defineProperty, Lt = Object.getOwnPropertyDescriptor, q = (t, e, i, r) => {
|
|
563
|
+
for (var n, s = r > 1 ? void 0 : r ? Lt(e, i) : e, a = t.length - 1; a >= 0; a--) (n = t[a]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
564
|
+
return r && s && Kt(e, i, s), s;
|
|
547
565
|
};
|
|
548
|
-
let
|
|
566
|
+
let _ = class extends z(O``) {
|
|
549
567
|
constructor() {
|
|
550
568
|
super(...arguments), this.uuid = Math.floor(Math.random() * Date.now()), this.delay = 0, this.debugging = !1;
|
|
551
569
|
}
|
|
@@ -554,20 +572,20 @@ let T = class extends E(z``) {
|
|
|
554
572
|
}
|
|
555
573
|
connectedCallback() {
|
|
556
574
|
if (this.id === void 0) throw new Error("id is required");
|
|
557
|
-
super.connectedCallback(),
|
|
558
|
-
this.dispatchEvent(new CustomEvent(
|
|
559
|
-
} })), f(window, yt).pipe(
|
|
575
|
+
super.connectedCallback(), G(f(window, St).pipe(D({ next: () => {
|
|
576
|
+
this.dispatchEvent(new CustomEvent(Et, { detail: { component: this }, bubbles: !0, composed: !0 }));
|
|
577
|
+
} })), f(window, yt).pipe(D({ next: (t) => {
|
|
560
578
|
t.detail.id === this.id && this.uuid && t.detail.callerID !== this.uuid && this.dispatchEvent(new CustomEvent(ut, { detail: { component: this }, bubbles: !0, composed: !0 }));
|
|
561
|
-
} }))).pipe(
|
|
579
|
+
} }))).pipe(m(this.disconnecting)).subscribe();
|
|
562
580
|
}
|
|
563
581
|
async firstUpdated() {
|
|
564
|
-
|
|
565
|
-
this.style.setProperty("visibility", "hidden"), at(this).pipe(
|
|
566
|
-
|
|
582
|
+
U(A.activeTeleportations.get(this.id)).pipe(dt((t) => !!t), m(this.disconnecting), Ct()).subscribe({ next: (t) => {
|
|
583
|
+
this.style.setProperty("visibility", "hidden"), at(this).pipe(m(this.disconnecting)).subscribe({ next: (e) => {
|
|
584
|
+
A.activeTeleportations.set(this.id, e), A.flipRequests.next({ from: { rect: t }, to: { rect: e, element: this._slottedChildren[0] }, host: this });
|
|
567
585
|
} });
|
|
568
586
|
}, error: () => {
|
|
569
|
-
this.style.setProperty("visibility", "visible"), at(this).pipe(
|
|
570
|
-
|
|
587
|
+
this.style.setProperty("visibility", "visible"), at(this).pipe(m(this.disconnecting)).subscribe({ next: (t) => {
|
|
588
|
+
A.activeTeleportations.set(this.id, t);
|
|
571
589
|
} });
|
|
572
590
|
}, complete: () => {
|
|
573
591
|
} });
|
|
@@ -576,31 +594,31 @@ let T = class extends E(z``) {
|
|
|
576
594
|
return c`<slot></slot>`;
|
|
577
595
|
}
|
|
578
596
|
};
|
|
579
|
-
|
|
580
|
-
var
|
|
581
|
-
for (var n, s =
|
|
582
|
-
return
|
|
597
|
+
q([l({ type: Number, reflect: !0 })], _.prototype, "uuid", 2), q([l({ type: String })], _.prototype, "id", 2), q([l({ type: Number })], _.prototype, "delay", 2), _ = q([y("schmancy-teleport")], _);
|
|
598
|
+
var Yt = Object.defineProperty, Vt = Object.getOwnPropertyDescriptor, x = (t, e, i, r) => {
|
|
599
|
+
for (var n, s = r > 1 ? void 0 : r ? Vt(e, i) : e, a = t.length - 1; a >= 0; a--) (n = t[a]) && (s = (r ? n(e, i, s) : n(s)) || s);
|
|
600
|
+
return r && s && Yt(e, i, s), s;
|
|
583
601
|
};
|
|
584
|
-
let b = class extends
|
|
602
|
+
let b = class extends z() {
|
|
585
603
|
constructor() {
|
|
586
604
|
super(...arguments), this.initials = "", this.src = "", this.icon = "", this.size = "md", this.color = "primary", this.shape = "circle", this.bordered = !1, this.status = "none";
|
|
587
605
|
}
|
|
588
606
|
render() {
|
|
589
607
|
let t;
|
|
590
608
|
t = this.src ? c`<img class="w-full h-full object-cover" src="${this.src}" alt="Avatar" />` : this.initials ? c`<span class="text-center font-medium">${this.initials.substring(0, 2).toUpperCase()}</span>` : this.icon ? c`<schmancy-icon>${this.icon}</schmancy-icon>` : c`<schmancy-icon>person</schmancy-icon>`;
|
|
591
|
-
const e = { "relative flex items-center justify-center overflow-hidden": !0, [{ xs: "w-6 h-6 text-xs", sm: "w-8 h-8 text-sm", md: "w-10 h-10 text-base", lg: "w-12 h-12 text-lg", xl: "w-16 h-16 text-xl" }[this.size]]: !0, [{ circle: "rounded-full", square: "rounded-md" }[this.shape]]: !0, "border-2 border-surface-container": this.bordered },
|
|
609
|
+
const e = { "relative flex items-center justify-center overflow-hidden": !0, [{ xs: "w-6 h-6 text-xs", sm: "w-8 h-8 text-sm", md: "w-10 h-10 text-base", lg: "w-12 h-12 text-lg", xl: "w-16 h-16 text-xl" }[this.size]]: !0, [{ circle: "rounded-full", square: "rounded-md" }[this.shape]]: !0, "border-2 border-surface-container": this.bordered }, i = this.getColorAttributes();
|
|
592
610
|
return c`
|
|
593
|
-
<div class="${this.classMap(e)}" ${
|
|
611
|
+
<div class="${this.classMap(e)}" ${i}>
|
|
594
612
|
${t} ${this.status !== "none" ? this.renderStatusIndicator() : ""}
|
|
595
613
|
</div>
|
|
596
614
|
`;
|
|
597
615
|
}
|
|
598
616
|
getColorAttributes() {
|
|
599
|
-
const t = { primary: { bgColor:
|
|
600
|
-
return
|
|
617
|
+
const t = { primary: { bgColor: o.sys.color.primary.container, color: o.sys.color.primary.onContainer }, secondary: { bgColor: o.sys.color.secondary.container, color: o.sys.color.secondary.onContainer }, tertiary: { bgColor: o.sys.color.tertiary.container, color: o.sys.color.tertiary.onContainer }, success: { bgColor: o.sys.color.success.container, color: o.sys.color.success.onContainer }, error: { bgColor: o.sys.color.error.container, color: o.sys.color.error.onContainer }, neutral: { bgColor: o.sys.color.surface.container, color: o.sys.color.surface.on } };
|
|
618
|
+
return B(t[this.color]);
|
|
601
619
|
}
|
|
602
620
|
renderStatusIndicator() {
|
|
603
|
-
const t = { online:
|
|
621
|
+
const t = { online: o.sys.color.success.default, offline: o.sys.color.surface.onVariant, busy: o.sys.color.error.default, away: o.sys.color.tertiary.default }, e = { "absolute bottom-0 right-0 rounded-full border-2 border-surface-default": !0, [{ xs: "w-1.5 h-1.5", sm: "w-2 h-2", md: "w-2.5 h-2.5", lg: "w-3 h-3", xl: "w-4 h-4" }[this.size]]: !0 };
|
|
604
622
|
return c`
|
|
605
623
|
<div class="${this.classMap(e)}" style="background-color: ${t[this.status]};"></div>
|
|
606
624
|
`;
|
|
@@ -613,7 +631,7 @@ export {
|
|
|
613
631
|
$ as S,
|
|
614
632
|
yt as W,
|
|
615
633
|
ot as a,
|
|
616
|
-
|
|
634
|
+
J as b,
|
|
617
635
|
pt as c,
|
|
618
636
|
mt as d,
|
|
619
637
|
Q as e,
|
|
@@ -622,15 +640,15 @@ export {
|
|
|
622
640
|
P as h,
|
|
623
641
|
u as i,
|
|
624
642
|
Xt as j,
|
|
625
|
-
|
|
643
|
+
N as k,
|
|
626
644
|
nt as l,
|
|
627
645
|
tt as m,
|
|
628
646
|
et as n,
|
|
629
647
|
g as o,
|
|
630
648
|
S as p,
|
|
631
|
-
|
|
649
|
+
_ as q,
|
|
632
650
|
b as r,
|
|
633
651
|
os as s,
|
|
634
|
-
|
|
652
|
+
A as t
|
|
635
653
|
};
|
|
636
|
-
//# sourceMappingURL=avatar-
|
|
654
|
+
//# sourceMappingURL=avatar-CokwBO2O.js.map
|