@mhmo91/schmancy 0.4.53 → 0.4.55
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/map.md +232 -0
- package/ai/notification.md +158 -45
- package/dist/ai/map.md +232 -0
- package/dist/ai/notification.md +158 -45
- package/dist/{animated-text-D26Fv13t.js → animated-text-Bns9oiIU.js} +3 -3
- package/dist/{animated-text-D26Fv13t.js.map → animated-text-Bns9oiIU.js.map} +1 -1
- package/dist/{animated-text-CtXY3MHV.cjs → animated-text-CHUcj2G2.cjs} +2 -2
- package/dist/{animated-text-CtXY3MHV.cjs.map → animated-text-CHUcj2G2.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-BCcq9Nb7.js → area.component-Aur5h5TN.js} +10 -10
- package/dist/{area.component-BCcq9Nb7.js.map → area.component-Aur5h5TN.js.map} +1 -1
- package/dist/{area.component-DQ_erV9e.cjs → area.component-BTZcyqR5.cjs} +2 -2
- package/dist/{area.component-DQ_erV9e.cjs.map → area.component-BTZcyqR5.cjs.map} +1 -1
- package/dist/area.js +1 -1
- package/dist/{autocomplete-CkycjWy4.js → autocomplete-BhjrqWor.js} +3 -3
- package/dist/{autocomplete-CkycjWy4.js.map → autocomplete-BhjrqWor.js.map} +1 -1
- package/dist/{autocomplete-CrhgxhFI.cjs → autocomplete-CleoNM85.cjs} +2 -2
- package/dist/{autocomplete-CrhgxhFI.cjs.map → autocomplete-CleoNM85.cjs.map} +1 -1
- package/dist/autocomplete.cjs +1 -1
- package/dist/autocomplete.js +1 -1
- package/dist/{avatar-nwqyt3uc.cjs → avatar-DoUVCqad.cjs} +2 -2
- package/dist/{avatar-nwqyt3uc.cjs.map → avatar-DoUVCqad.cjs.map} +1 -1
- package/dist/{avatar-BXx1oJMG.js → avatar-j733KoCV.js} +53 -51
- package/dist/{avatar-BXx1oJMG.js.map → avatar-j733KoCV.js.map} +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.js +1 -1
- package/dist/{boat-C_BvtlNQ.js → boat-CIA-nk8V.js} +2 -2
- package/dist/{boat-C_BvtlNQ.js.map → boat-CIA-nk8V.js.map} +1 -1
- package/dist/{boat-B_xZilsk.cjs → boat-DU_GhEJ2.cjs} +2 -2
- package/dist/{boat-B_xZilsk.cjs.map → boat-DU_GhEJ2.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-c3DzDvWH.js → checkbox-BCTABF4s.js} +6 -6
- package/dist/{checkbox-c3DzDvWH.js.map → checkbox-BCTABF4s.js.map} +1 -1
- package/dist/{checkbox-BAuVXvYL.cjs → checkbox-DblOhLz_.cjs} +2 -2
- package/dist/{checkbox-BAuVXvYL.cjs.map → checkbox-DblOhLz_.cjs.map} +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/{chips-Dn8RpKCE.js → chips-BbMM2s8r.js} +3 -3
- package/dist/{chips-Dn8RpKCE.js.map → chips-BbMM2s8r.js.map} +1 -1
- package/dist/{chips-Dg2otqDI.cjs → chips-LAtr3to0.cjs} +2 -2
- package/dist/{chips-Dg2otqDI.cjs.map → chips-LAtr3to0.cjs.map} +1 -1
- package/dist/chips.cjs +1 -1
- package/dist/chips.js +1 -1
- package/dist/{circular-progress-DZUJU-z3.cjs → circular-progress-BKwcIgEZ.cjs} +2 -2
- package/dist/{circular-progress-DZUJU-z3.cjs.map → circular-progress-BKwcIgEZ.cjs.map} +1 -1
- package/dist/{circular-progress-B1RjFzcp.js → circular-progress-DtAG2JJn.js} +3 -3
- package/dist/{circular-progress-B1RjFzcp.js.map → circular-progress-DtAG2JJn.js.map} +1 -1
- package/dist/circular-progress.cjs +1 -1
- package/dist/circular-progress.js +1 -1
- package/dist/code-highlight.cjs +1 -1
- package/dist/code-highlight.js +1 -1
- package/dist/{code-preview-JlSLKkKg.js → code-preview-BgwAlMc_.js} +2 -2
- package/dist/{code-preview-JlSLKkKg.js.map → code-preview-BgwAlMc_.js.map} +1 -1
- package/dist/{code-preview-CYHNaPek.cjs → code-preview-Bn6-jpNm.cjs} +2 -2
- package/dist/{code-preview-CYHNaPek.cjs.map → code-preview-Bn6-jpNm.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-8o_f5N7V.js → date-range-CBfV-vU_.js} +4 -4
- package/dist/{date-range-8o_f5N7V.js.map → date-range-CBfV-vU_.js.map} +1 -1
- package/dist/{date-range-9NUFmKqd.cjs → date-range-CNsf8eFb.cjs} +2 -2
- package/dist/{date-range-9NUFmKqd.cjs.map → date-range-CNsf8eFb.cjs.map} +1 -1
- package/dist/{date-range-inline-Czq1wHs1.cjs → date-range-inline-ECHd558D.cjs} +2 -2
- package/dist/{date-range-inline-Czq1wHs1.cjs.map → date-range-inline-ECHd558D.cjs.map} +1 -1
- package/dist/{date-range-inline-B_K4YPtB.js → date-range-inline-VA3xdfyl.js} +3 -3
- package/dist/{date-range-inline-B_K4YPtB.js.map → date-range-inline-VA3xdfyl.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-DtVBjjLV.js → delay-B_3yscDy.js} +2 -2
- package/dist/{delay-DtVBjjLV.js.map → delay-B_3yscDy.js.map} +1 -1
- package/dist/{delay-FgtrEHdo.cjs → delay-DtUJwLKe.cjs} +2 -2
- package/dist/{delay-FgtrEHdo.cjs.map → delay-DtUJwLKe.cjs.map} +1 -1
- package/dist/delay.cjs +1 -1
- package/dist/delay.js +1 -1
- package/dist/details-Bkt6fV0b.js +134 -0
- package/dist/details-Bkt6fV0b.js.map +1 -0
- package/dist/details-X-ciBYba.cjs +109 -0
- package/dist/details-X-ciBYba.cjs.map +1 -0
- package/dist/details.cjs +2 -0
- package/dist/details.cjs.map +1 -0
- package/dist/details.js +5 -0
- package/dist/details.js.map +1 -0
- package/dist/{dialog-content-C_paCOeM.js → dialog-content-Y4RvMloi.js} +4 -4
- package/dist/{dialog-content-C_paCOeM.js.map → dialog-content-Y4RvMloi.js.map} +1 -1
- package/dist/{dialog-content-tGl9B67L.cjs → dialog-content-puP-JDoT.cjs} +2 -2
- package/dist/{dialog-content-tGl9B67L.cjs.map → dialog-content-puP-JDoT.cjs.map} +1 -1
- package/dist/{dialog-service-JNWTLfAy.cjs → dialog-service-BCfRtG2U.cjs} +2 -2
- package/dist/{dialog-service-JNWTLfAy.cjs.map → dialog-service-BCfRtG2U.cjs.map} +1 -1
- package/dist/{dialog-service-DZv4KB89.js → dialog-service-CY9yBEhe.js} +2 -2
- package/dist/{dialog-service-DZv4KB89.js.map → dialog-service-CY9yBEhe.js.map} +1 -1
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.js +2 -2
- package/dist/{divider-Dn26vIou.js → divider-BZq3k_da.js} +3 -3
- package/dist/{divider-Dn26vIou.js.map → divider-BZq3k_da.js.map} +1 -1
- package/dist/{divider-2yg9r1tF.cjs → divider-t1KWAOnw.cjs} +2 -2
- package/dist/{divider-2yg9r1tF.cjs.map → divider-t1KWAOnw.cjs.map} +1 -1
- package/dist/divider.cjs +1 -1
- package/dist/divider.js +1 -1
- package/dist/{dropdown-content-DJ4CA3ug.cjs → dropdown-content-D834SoZi.cjs} +2 -2
- package/dist/{dropdown-content-DJ4CA3ug.cjs.map → dropdown-content-D834SoZi.cjs.map} +1 -1
- package/dist/{dropdown-content-DNJhJCdV.js → dropdown-content-JvpnX2RS.js} +3 -3
- package/dist/{dropdown-content-DNJhJCdV.js.map → dropdown-content-JvpnX2RS.js.map} +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/extra.cjs +1 -1
- package/dist/extra.js +1 -1
- package/dist/{flex-DV2W2Zgu.js → flex-CAsda_Fe.js} +2 -2
- package/dist/{flex-DV2W2Zgu.js.map → flex-CAsda_Fe.js.map} +1 -1
- package/dist/{flex-DWnX0ZPR.cjs → flex-LjqLwPhI.cjs} +2 -2
- package/dist/{flex-DWnX0ZPR.cjs.map → flex-LjqLwPhI.cjs.map} +1 -1
- package/dist/{form-Dpokur4M.cjs → form-CpIQ4L1j.cjs} +2 -2
- package/dist/{form-Dpokur4M.cjs.map → form-CpIQ4L1j.cjs.map} +1 -1
- package/dist/{form-Cots2cbN.js → form-czxHWLos.js} +2 -2
- package/dist/{form-Cots2cbN.js.map → form-czxHWLos.js.map} +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +1 -1
- package/dist/{formField.mixin-ySoLTrgX.cjs → formField.mixin-BD-_Rnyy.cjs} +2 -2
- package/dist/{formField.mixin-ySoLTrgX.cjs.map → formField.mixin-BD-_Rnyy.cjs.map} +1 -1
- package/dist/{formField.mixin-DdTDdv9g.js → formField.mixin-bSNupTkm.js} +2 -2
- package/dist/{formField.mixin-DdTDdv9g.js.map → formField.mixin-bSNupTkm.js.map} +1 -1
- package/dist/{icon-BZxC9aoA.js → icon-B8LhF-rS.js} +2 -2
- package/dist/{icon-BZxC9aoA.js.map → icon-B8LhF-rS.js.map} +1 -1
- package/dist/{icon-mhchC8Qw.cjs → icon-DgnS9IuB.cjs} +2 -2
- package/dist/{icon-mhchC8Qw.cjs.map → icon-DgnS9IuB.cjs.map} +1 -1
- package/dist/{icon-button-DbvjV5zJ.cjs → icon-button-CK0UyXcE.cjs} +2 -2
- package/dist/{icon-button-DbvjV5zJ.cjs.map → icon-button-CK0UyXcE.cjs.map} +1 -1
- package/dist/{icon-button-BGvSPuE-.js → icon-button-DdvdiQga.js} +3 -3
- package/dist/{icon-button-BGvSPuE-.js.map → icon-button-DdvdiQga.js.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 +166 -159
- package/dist/index.js.map +1 -1
- package/dist/{input-DzNoI9qU.cjs → input-DJKVCqiL.cjs} +2 -2
- package/dist/{input-DzNoI9qU.cjs.map → input-DJKVCqiL.cjs.map} +1 -1
- package/dist/{input-Cpo-ws8k.js → input-rNxC53BQ.js} +3 -3
- package/dist/{input-Cpo-ws8k.js.map → input-rNxC53BQ.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-BTyoQ42F.js → list-ccMISKKN.js} +2 -2
- package/dist/{list-BTyoQ42F.js.map → list-ccMISKKN.js.map} +1 -1
- package/dist/{list-DRbkWHho.cjs → list-e54Aokyk.cjs} +2 -2
- package/dist/{list-DRbkWHho.cjs.map → list-e54Aokyk.cjs.map} +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/{litElement.mixin-BH9PTyUD.js → litElement.mixin-BMewYv9c.js} +2 -2
- package/dist/{litElement.mixin-BH9PTyUD.js.map → litElement.mixin-BMewYv9c.js.map} +1 -1
- package/dist/{litElement.mixin-B01R2oT7.cjs → litElement.mixin-Brn_lsa3.cjs} +2 -2
- package/dist/{litElement.mixin-B01R2oT7.cjs.map → litElement.mixin-Brn_lsa3.cjs.map} +1 -1
- package/dist/map-CsuRRLbB.js +175 -0
- package/dist/map-CsuRRLbB.js.map +1 -0
- package/dist/map-D3nhiTCn.cjs +81 -0
- package/dist/map-D3nhiTCn.cjs.map +1 -0
- package/dist/map.cjs +2 -0
- package/dist/map.cjs.map +1 -0
- package/dist/map.js +5 -0
- package/dist/map.js.map +1 -0
- package/dist/{media-BO-aZBTp.js → media-BtAS-xyw.js} +2 -2
- package/dist/{media-BO-aZBTp.js.map → media-BtAS-xyw.js.map} +1 -1
- package/dist/{media-CIuTybvD.cjs → media-Dd0PTrZ3.cjs} +2 -2
- package/dist/{media-CIuTybvD.cjs.map → media-Dd0PTrZ3.cjs.map} +1 -1
- package/dist/{menu-DWCDQvGY.js → menu-CAhuu8Ei.js} +3 -3
- package/dist/{menu-DWCDQvGY.js.map → menu-CAhuu8Ei.js.map} +1 -1
- package/dist/{menu-DEbZxoXr.cjs → menu-CFqp1aH7.cjs} +2 -2
- package/dist/{menu-DEbZxoXr.cjs.map → menu-CFqp1aH7.cjs.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-L_h9_d4v.js → notification-service-Byz67oln.js} +142 -113
- package/dist/notification-service-Byz67oln.js.map +1 -0
- package/dist/notification-service-KWQfnc6d.cjs +143 -0
- package/dist/notification-service-KWQfnc6d.cjs.map +1 -0
- package/dist/notification.cjs +1 -1
- package/dist/notification.js +7 -4
- package/dist/notification.js.map +1 -1
- package/dist/notify-BIdXyvMf.js +35 -0
- package/dist/notify-BIdXyvMf.js.map +1 -0
- package/dist/notify-DDzsX0lt.cjs +2 -0
- package/dist/notify-DDzsX0lt.cjs.map +1 -0
- package/dist/number-B7aCRYnH.cjs.map +1 -1
- package/dist/number-BhTiptLA.js.map +1 -1
- package/dist/{option-vRGeXw_u.js → option-BCg6S7Jj.js} +2 -2
- package/dist/{option-vRGeXw_u.js.map → option-BCg6S7Jj.js.map} +1 -1
- package/dist/{option-BPmOG_Hw.cjs → option-DarGe_f3.cjs} +2 -2
- package/dist/{option-BPmOG_Hw.cjs.map → option-DarGe_f3.cjs.map} +1 -1
- package/dist/option.cjs +1 -1
- package/dist/option.js +1 -1
- package/dist/{payment-card-form-Cs5bP5Di.js → payment-card-form-C1W2DPu4.js} +3 -3
- package/dist/{payment-card-form-Cs5bP5Di.js.map → payment-card-form-C1W2DPu4.js.map} +1 -1
- package/dist/{payment-card-form-ccF9dfGC.cjs → payment-card-form-CW3KC9QK.cjs} +2 -2
- package/dist/{payment-card-form-ccF9dfGC.cjs.map → payment-card-form-CW3KC9QK.cjs.map} +1 -1
- package/dist/{progress-BqZ7yHQe.cjs → progress-B-ZZ40CK.cjs} +2 -2
- package/dist/{progress-BqZ7yHQe.cjs.map → progress-B-ZZ40CK.cjs.map} +1 -1
- package/dist/{progress-DM_jha7D.js → progress-BSJSsYj7.js} +2 -2
- package/dist/{progress-DM_jha7D.js.map → progress-BSJSsYj7.js.map} +1 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.js +1 -1
- package/dist/{radio-button-WmbuT_YW.cjs → radio-button-CsIIrM_C.cjs} +2 -2
- package/dist/{radio-button-WmbuT_YW.cjs.map → radio-button-CsIIrM_C.cjs.map} +1 -1
- package/dist/{radio-button-YDzqdRA-.js → radio-button-DX4XSjAy.js} +3 -3
- package/dist/{radio-button-YDzqdRA-.js.map → radio-button-DX4XSjAy.js.map} +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/{schmancy-steps-container-CoARMXfB.js → schmancy-steps-container-8RdoKtdK.js} +2 -2
- package/dist/{schmancy-steps-container-CoARMXfB.js.map → schmancy-steps-container-8RdoKtdK.js.map} +1 -1
- package/dist/{schmancy-steps-container-CjAsrjKf.cjs → schmancy-steps-container-DADzK9o0.cjs} +2 -2
- package/dist/{schmancy-steps-container-CjAsrjKf.cjs.map → schmancy-steps-container-DADzK9o0.cjs.map} +1 -1
- package/dist/{select-rwocpGs2.js → select-C-KLPYEJ.js} +3 -3
- package/dist/{select-rwocpGs2.js.map → select-C-KLPYEJ.js.map} +1 -1
- package/dist/{select-CPnSionr.cjs → select-CF9aojhZ.cjs} +2 -2
- package/dist/{select-CPnSionr.cjs.map → select-CF9aojhZ.cjs.map} +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.js +1 -1
- package/dist/{sheet-Cw2qLdzN.js → sheet-BQ2PhU-0.js} +4 -4
- package/dist/{sheet-Cw2qLdzN.js.map → sheet-BQ2PhU-0.js.map} +1 -1
- package/dist/{sheet-eCDoMdHF.cjs → sheet-CzCiJ3yC.cjs} +2 -2
- package/dist/{sheet-eCDoMdHF.cjs.map → sheet-CzCiJ3yC.cjs.map} +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/{slider-C7Z1bPq7.js → slider-Bo0_X0Xt.js} +3 -3
- package/dist/{slider-C7Z1bPq7.js.map → slider-Bo0_X0Xt.js.map} +1 -1
- package/dist/{slider-DBNoXRWS.cjs → slider-C4fwo5P3.cjs} +2 -2
- package/dist/{slider-DBNoXRWS.cjs.map → slider-C4fwo5P3.cjs.map} +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/{spinner-CbA-FXRK.js → spinner-CKnK4QHu.js} +2 -2
- package/dist/{spinner-CbA-FXRK.js.map → spinner-CKnK4QHu.js.map} +1 -1
- package/dist/{spinner-CV62BBoF.cjs → spinner-DMoZTIMe.cjs} +2 -2
- package/dist/{spinner-CV62BBoF.cjs.map → spinner-DMoZTIMe.cjs.map} +1 -1
- package/dist/steps.cjs +1 -1
- package/dist/steps.js +1 -1
- package/dist/{surface-By8o7nWa.js → surface-BEaRxAZt.js} +2 -2
- package/dist/{surface-By8o7nWa.js.map → surface-BEaRxAZt.js.map} +1 -1
- package/dist/{surface-ClfeUI6q.cjs → surface-Bcy2LzAX.cjs} +2 -2
- package/dist/{surface-ClfeUI6q.cjs.map → surface-Bcy2LzAX.cjs.map} +1 -1
- package/dist/surface.cjs +1 -1
- package/dist/surface.js +1 -1
- package/dist/{table-Rqnb4AJl.cjs → table-9AyLMNRe.cjs} +2 -2
- package/dist/{table-Rqnb4AJl.cjs.map → table-9AyLMNRe.cjs.map} +1 -1
- package/dist/{table-CvMo5lOi.js → table-MzCzXjAC.js} +2 -2
- package/dist/{table-CvMo5lOi.js.map → table-MzCzXjAC.js.map} +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.js +1 -1
- package/dist/{tabs-compatibility-BEXurIiZ.js → tabs-compatibility-D5xv33oo.js} +2 -2
- package/dist/{tabs-compatibility-BEXurIiZ.js.map → tabs-compatibility-D5xv33oo.js.map} +1 -1
- package/dist/{tabs-compatibility-B1bE7hSG.cjs → tabs-compatibility-N1qxOCYJ.cjs} +2 -2
- package/dist/{tabs-compatibility-B1bE7hSG.cjs.map → tabs-compatibility-N1qxOCYJ.cjs.map} +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tailwind.mixin-BTGoGfEI.js +43 -0
- package/dist/{tailwind.mixin-CaIkmP6j.js.map → tailwind.mixin-BTGoGfEI.js.map} +1 -1
- package/dist/tailwind.mixin-KC3Nl9kj.cjs +2 -0
- package/dist/{tailwind.mixin-DVKI3qb9.cjs.map → tailwind.mixin-KC3Nl9kj.cjs.map} +1 -1
- package/dist/teleport.cjs +1 -1
- package/dist/teleport.js +1 -1
- package/dist/{textarea-DM3lgEUp.js → textarea-BHGIbEBY.js} +2 -2
- package/dist/{textarea-DM3lgEUp.js.map → textarea-BHGIbEBY.js.map} +1 -1
- package/dist/{textarea-Dlnyyrbq.cjs → textarea-DUBjaAfu.cjs} +2 -2
- package/dist/{textarea-Dlnyyrbq.cjs.map → textarea-DUBjaAfu.cjs.map} +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/{theme-button-Cao8AH8r.cjs → theme-button-C2-L23sJ.cjs} +2 -2
- package/dist/{theme-button-Cao8AH8r.cjs.map → theme-button-C2-L23sJ.cjs.map} +1 -1
- package/dist/{theme-button-C4JWRMiC.js → theme-button-FU1OUOBA.js} +2 -2
- package/dist/{theme-button-C4JWRMiC.js.map → theme-button-FU1OUOBA.js.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-RtV3l-Ns.cjs → theme.component-BQr3n0fE.cjs} +3 -3
- package/dist/{theme.component-RtV3l-Ns.cjs.map → theme.component-BQr3n0fE.cjs.map} +1 -1
- package/dist/{theme.component-ColRTbY5.js → theme.component-BYGB9dTb.js} +2 -2
- package/dist/{theme.component-ColRTbY5.js.map → theme.component-BYGB9dTb.js.map} +1 -1
- package/dist/theme.js +1 -1
- package/dist/{timezone-Cvsd--fr.js → timezone-BgX3qSF-.js} +3 -3
- package/dist/{timezone-Cvsd--fr.js.map → timezone-BgX3qSF-.js.map} +1 -1
- package/dist/{timezone-UBBApQoU.cjs → timezone-DexhNs9f.cjs} +2 -2
- package/dist/{timezone-UBBApQoU.cjs.map → timezone-DexhNs9f.cjs.map} +1 -1
- package/dist/{tooltip-nwQwCEgl.js → tooltip-CkGy17kd.js} +2 -2
- package/dist/{tooltip-nwQwCEgl.js.map → tooltip-CkGy17kd.js.map} +1 -1
- package/dist/{tooltip-WpE4e-fO.cjs → tooltip-xj7RGLlB.cjs} +2 -2
- package/dist/{tooltip-WpE4e-fO.cjs.map → tooltip-xj7RGLlB.cjs.map} +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/{tree-BDmB7KmQ.js → tree-BeU8nzGP.js} +2 -2
- package/dist/{tree-BDmB7KmQ.js.map → tree-BeU8nzGP.js.map} +1 -1
- package/dist/{tree-Dn0t7MUR.cjs → tree-DSpkwuOO.cjs} +2 -2
- package/dist/{tree-Dn0t7MUR.cjs.map → tree-DSpkwuOO.cjs.map} +1 -1
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/{typewriter-Fq4uV6Gm.cjs → typewriter-Bn7fe4nG.cjs} +2 -2
- package/dist/{typewriter-Fq4uV6Gm.cjs.map → typewriter-Bn7fe4nG.cjs.map} +1 -1
- package/dist/{typewriter-CXadCi-4.js → typewriter-CbONIeGA.js} +7 -7
- package/dist/{typewriter-CXadCi-4.js.map → typewriter-CbONIeGA.js.map} +1 -1
- package/dist/typewriter.cjs +1 -1
- package/dist/typewriter.js +1 -1
- package/dist/{typography-BhCrqK_b.cjs → typography-CJ5-RiNW.cjs} +2 -2
- package/dist/{typography-BhCrqK_b.cjs.map → typography-CJ5-RiNW.cjs.map} +1 -1
- package/dist/{typography-DYCOngD7.js → typography-D1m-mdd7.js} +2 -2
- package/dist/{typography-DYCOngD7.js.map → typography-D1m-mdd7.js.map} +1 -1
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/package.json +1 -1
- package/types/src/details/details.d.ts +14 -0
- package/types/src/details/index.d.ts +1 -0
- package/types/src/index.d.ts +2 -0
- package/types/src/map/index.d.ts +1 -0
- package/types/src/map/map.d.ts +129 -0
- package/types/src/notification/index.d.ts +2 -0
- package/types/src/notification/notification-container.d.ts +3 -0
- package/types/src/notification/notification-service.d.ts +19 -0
- package/types/src/notification/notification.d.ts +2 -0
- package/types/src/notification/notify.d.ts +100 -0
- package/types/src/utils/number.d.ts +2 -0
- package/dist/notification-service-B6nHqzq5.cjs +0 -141
- package/dist/notification-service-B6nHqzq5.cjs.map +0 -1
- package/dist/notification-service-L_h9_d4v.js.map +0 -1
- package/dist/tailwind.mixin-CaIkmP6j.js +0 -43
- package/dist/tailwind.mixin-DVKI3qb9.cjs +0 -2
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { fromEvent as
|
|
2
|
-
import { classMap as
|
|
3
|
-
import { styleMap as
|
|
4
|
-
import { $ as
|
|
5
|
-
import "./tailwind.mixin-
|
|
6
|
-
import { property as h, state as g, customElement as
|
|
7
|
-
import { c as
|
|
1
|
+
import { fromEvent as x, takeUntil as T } from "rxjs";
|
|
2
|
+
import { classMap as _ } from "lit/directives/class-map.js";
|
|
3
|
+
import { styleMap as A } from "lit/directives/style-map.js";
|
|
4
|
+
import { $ as S } from "./litElement.mixin-BMewYv9c.js";
|
|
5
|
+
import "./tailwind.mixin-BTGoGfEI.js";
|
|
6
|
+
import { property as h, state as g, customElement as C } from "lit/decorators.js";
|
|
7
|
+
import { c as V } from "./ripple-BumgqsDT.js";
|
|
8
8
|
import { S as l } from "./theme.interface-C5Kj6WjD.js";
|
|
9
9
|
import { html as p } from "lit";
|
|
10
|
+
import "./progress-BSJSsYj7.js";
|
|
10
11
|
import { repeat as k } from "lit/directives/repeat.js";
|
|
11
|
-
var $ = Object.defineProperty, R = Object.getOwnPropertyDescriptor, d = (
|
|
12
|
-
for (var
|
|
12
|
+
var $ = Object.defineProperty, R = Object.getOwnPropertyDescriptor, d = (o, t, e, i) => {
|
|
13
|
+
for (var s, n = i > 1 ? void 0 : i ? R(t, e) : t, r = o.length - 1; r >= 0; r--) (s = o[r]) && (n = (i ? s(t, e, n) : s(n)) || n);
|
|
13
14
|
return i && n && $(t, e, n), n;
|
|
14
15
|
};
|
|
15
|
-
let u = class extends
|
|
16
|
+
let u = class extends S(':host{display:block;margin-bottom:10px}:host:last-child{margin-bottom:0}.notification{width:100%;max-width:400px;box-shadow:var(--schmancy-sys-elevation-2);overflow:hidden;transform:translate(0);opacity:1;transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .3s cubic-bezier(.4,0,.2,1);background-color:var(--schmancy-sys-color-surface-container);color:var(--schmancy-sys-color-surface-on);border-radius:16px;position:relative}.notification:before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(180deg,#ffffff14,#fff0);z-index:1}.notification.info{border-left:4px solid var(--schmancy-sys-color-primary-default);background-color:color-mix(in srgb,var(--schmancy-sys-color-surface-container) 90%,var(--schmancy-sys-color-primary-container) 10%)}.notification.success{border-left:4px solid var(--schmancy-sys-color-success-default);background-color:color-mix(in srgb,var(--schmancy-sys-color-surface-container) 90%,var(--schmancy-sys-color-success-container) 10%)}.notification.warning{border-left:4px solid var(--schmancy-sys-color-tertiary-default);background-color:color-mix(in srgb,var(--schmancy-sys-color-surface-container) 90%,var(--schmancy-sys-color-tertiary-container) 10%)}.notification.error{border-left:4px solid var(--schmancy-sys-color-error-default);background-color:color-mix(in srgb,var(--schmancy-sys-color-surface-container) 90%,var(--schmancy-sys-color-error-container) 10%)}.notification.closing{transform:translate(120%);opacity:0}.notification .notification-content{display:flex;padding:18px 20px;align-items:flex-start;position:relative;z-index:2}.notification .icon-container{flex-shrink:0;margin-right:14px;display:flex;align-items:center;justify-content:center;border-radius:50%;width:28px;height:28px;position:relative}.notification .content{flex:1;min-width:0;display:flex;flex-direction:column}.notification .title{font-weight:500;font-size:16px;line-height:1.5;margin-bottom:2px;word-break:break-word;letter-spacing:.15px}.notification .message{font-size:14px;line-height:1.5;word-break:break-word;letter-spacing:.25px;opacity:.92}.notification .close-button{background:transparent;border:none;cursor:pointer;color:var(--schmancy-sys-color-surface-onVariant);padding:8px;margin-left:8px;margin-right:-4px;margin-top:-4px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .2s ease}.notification .close-button:hover{background-color:color-mix(in srgb,var(--schmancy-sys-color-surface-onVariant) 8%,transparent);transform:scale(1.05)}.notification .close-button:active{transform:scale(.95)}.notification .close-button:focus-visible{outline:none;box-shadow:0 0 0 2px var(--schmancy-sys-color-primary-default)}') {
|
|
16
17
|
constructor() {
|
|
17
|
-
super(...arguments), this.title = "", this.message = "", this.type = "info", this.closable = !0, this.duration = 5e3, this.id = `notification-${Date.now()}-${Math.floor(1e4 * Math.random())}`, this.playSound = !0, this._visible = !0, this._progress = 100, this._hovered = !1, this._closing = !1;
|
|
18
|
+
super(...arguments), this.title = "", this.message = "", this.type = "info", this.closable = !0, this.duration = 5e3, this.id = `notification-${Date.now()}-${Math.floor(1e4 * Math.random())}`, this.playSound = !0, this.showProgress = !1, this._visible = !0, this._progress = 100, this._hovered = !1, this._closing = !1;
|
|
18
19
|
}
|
|
19
20
|
connectedCallback() {
|
|
20
21
|
super.connectedCallback(), this.duration > 0 && this._startAutoCloseTimer(), this.playSound && this._playSound();
|
|
@@ -22,17 +23,17 @@ let u = class extends _(':host{display:block;margin-bottom:10px}:host:last-child
|
|
|
22
23
|
disconnectedCallback() {
|
|
23
24
|
this._clearTimers(), super.disconnectedCallback();
|
|
24
25
|
}
|
|
25
|
-
updated(
|
|
26
|
-
super.updated(
|
|
26
|
+
updated(o) {
|
|
27
|
+
super.updated(o), o.has("duration") && this.duration > 0 && (this._clearTimers(), this._startAutoCloseTimer());
|
|
27
28
|
}
|
|
28
29
|
_startAutoCloseTimer() {
|
|
29
30
|
if (this.duration <= 0) return;
|
|
30
|
-
const
|
|
31
|
+
const o = Date.now() + this.duration;
|
|
31
32
|
this._autoCloseTimer = window.setTimeout(() => {
|
|
32
33
|
this.close();
|
|
33
34
|
}, this.duration), this._progressTimer = window.setInterval(() => {
|
|
34
35
|
if (this._hovered) return;
|
|
35
|
-
const t = Date.now(), e = Math.max(0,
|
|
36
|
+
const t = Date.now(), e = Math.max(0, o - t);
|
|
36
37
|
this._progress = e / this.duration * 100, e <= 0 && this._clearTimers();
|
|
37
38
|
}, 16);
|
|
38
39
|
}
|
|
@@ -44,16 +45,16 @@ let u = class extends _(':host{display:block;margin-bottom:10px}:host:last-child
|
|
|
44
45
|
}
|
|
45
46
|
_resumeTimers() {
|
|
46
47
|
if (this.duration > 0) {
|
|
47
|
-
const
|
|
48
|
-
if (
|
|
48
|
+
const o = this._progress / 100 * this.duration;
|
|
49
|
+
if (o > 0) {
|
|
49
50
|
this._autoCloseTimer = window.setTimeout(() => {
|
|
50
51
|
this.close();
|
|
51
|
-
},
|
|
52
|
-
const t = Date.now() +
|
|
52
|
+
}, o);
|
|
53
|
+
const t = Date.now() + o;
|
|
53
54
|
this._progressTimer = window.setInterval(() => {
|
|
54
55
|
if (this._hovered) return;
|
|
55
56
|
const e = Date.now(), i = Math.max(0, t - e);
|
|
56
|
-
this._progress = i /
|
|
57
|
+
this._progress = i / o * 100, i <= 0 && this._clearTimers();
|
|
57
58
|
}, 16);
|
|
58
59
|
}
|
|
59
60
|
}
|
|
@@ -74,28 +75,28 @@ let u = class extends _(':host{display:block;margin-bottom:10px}:host:last-child
|
|
|
74
75
|
}
|
|
75
76
|
render() {
|
|
76
77
|
if (!this._visible && this._closing) return p``;
|
|
77
|
-
const
|
|
78
|
+
const o = this._getTypeStyles(), t = this._hovered ? "3" : "2";
|
|
78
79
|
return p`
|
|
79
80
|
<div
|
|
80
|
-
class=${
|
|
81
|
+
class=${_({ notification: !0, closing: this._closing, [this.type]: !0 })}
|
|
81
82
|
role="alert"
|
|
82
|
-
style=${
|
|
83
|
+
style=${A({ transform: this._closing ? "translateX(120%)" : "translateX(0)", opacity: this._closing ? "0" : "1", boxShadow: `var(--schmancy-sys-elevation-${t})`, transition: "transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease" })}
|
|
83
84
|
@mouseenter=${this._handleMouseEnter}
|
|
84
85
|
@mouseleave=${this._handleMouseLeave}
|
|
85
86
|
>
|
|
86
87
|
<div class="notification-content">
|
|
87
88
|
<div
|
|
88
89
|
class="icon-container"
|
|
89
|
-
${
|
|
90
|
+
${V({ color: o.iconColor, bgColor: `color-mix(in srgb, ${o.iconColor} 10%, transparent)` })}
|
|
90
91
|
>
|
|
91
|
-
${
|
|
92
|
+
${o.icon}
|
|
92
93
|
</div>
|
|
93
94
|
|
|
94
95
|
<div class="content">
|
|
95
96
|
${this.title ? p`
|
|
96
97
|
<div
|
|
97
98
|
class="title"
|
|
98
|
-
style=${
|
|
99
|
+
style=${A({ color: this.type === "info" ? `color-mix(in srgb, ${l.sys.color.primary.default} 90%, ${l.sys.color.surface.on} 10%)` : this.type === "success" ? `color-mix(in srgb, ${l.sys.color.success.default} 90%, ${l.sys.color.surface.on} 10%)` : this.type === "warning" ? `color-mix(in srgb, ${l.sys.color.tertiary.default} 90%, ${l.sys.color.surface.on} 10%)` : `color-mix(in srgb, ${l.sys.color.error.default} 90%, ${l.sys.color.surface.on} 10%)` })}
|
|
99
100
|
>
|
|
100
101
|
${this.title}
|
|
101
102
|
</div>
|
|
@@ -109,7 +110,7 @@ let u = class extends _(':host{display:block;margin-bottom:10px}:host:last-child
|
|
|
109
110
|
class="close-button"
|
|
110
111
|
aria-label="Close notification"
|
|
111
112
|
@click=${this.close}
|
|
112
|
-
style=${
|
|
113
|
+
style=${A({ color: this.type === "info" ? l.sys.color.surface.onVariant : `color-mix(in srgb, ${o.iconColor} 80%, ${l.sys.color.surface.onVariant} 20%)` })}
|
|
113
114
|
>
|
|
114
115
|
<svg
|
|
115
116
|
width="18"
|
|
@@ -128,14 +129,15 @@ let u = class extends _(':host{display:block;margin-bottom:10px}:host:last-child
|
|
|
128
129
|
` : ""}
|
|
129
130
|
</div>
|
|
130
131
|
|
|
131
|
-
${this.duration > 0 ? p`
|
|
132
|
-
<
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
132
|
+
${this.showProgress || this.duration > 0 ? p`
|
|
133
|
+
<schmancy-progress
|
|
134
|
+
style="position: absolute; bottom: 0; left: 0; right: 0; width: 100%;"
|
|
135
|
+
size="sm"
|
|
136
|
+
.color=${this.type === "error" ? "error" : this.type === "success" ? "success" : "primary"}
|
|
137
|
+
?indeterminate=${this.showProgress}
|
|
138
|
+
.value=${this.showProgress ? 0 : this._progress}
|
|
139
|
+
.max=${100}
|
|
140
|
+
></schmancy-progress>
|
|
139
141
|
` : ""}
|
|
140
142
|
</div>
|
|
141
143
|
`;
|
|
@@ -212,7 +214,7 @@ let u = class extends _(':host{display:block;margin-bottom:10px}:host:last-child
|
|
|
212
214
|
}
|
|
213
215
|
}
|
|
214
216
|
};
|
|
215
|
-
d([h({ type: String })], u.prototype, "title", 2), d([h({ type: String })], u.prototype, "message", 2), d([h({ type: String })], u.prototype, "type", 2), d([h({ type: Boolean })], u.prototype, "closable", 2), d([h({ type: Number })], u.prototype, "duration", 2), d([h({ type: String })], u.prototype, "id", 2), d([h({ type: Boolean })], u.prototype, "playSound", 2), d([g()], u.prototype, "_visible", 2), d([g()], u.prototype, "_progress", 2), d([g()], u.prototype, "_hovered", 2), d([g()], u.prototype, "_closing", 2), d([g()], u.prototype, "_autoCloseTimer", 2), d([g()], u.prototype, "_progressTimer", 2), u = d([
|
|
217
|
+
d([h({ type: String })], u.prototype, "title", 2), d([h({ type: String })], u.prototype, "message", 2), d([h({ type: String })], u.prototype, "type", 2), d([h({ type: Boolean })], u.prototype, "closable", 2), d([h({ type: Number })], u.prototype, "duration", 2), d([h({ type: String })], u.prototype, "id", 2), d([h({ type: Boolean })], u.prototype, "playSound", 2), d([h({ type: Boolean })], u.prototype, "showProgress", 2), d([g()], u.prototype, "_visible", 2), d([g()], u.prototype, "_progress", 2), d([g()], u.prototype, "_hovered", 2), d([g()], u.prototype, "_closing", 2), d([g()], u.prototype, "_autoCloseTimer", 2), d([g()], u.prototype, "_progressTimer", 2), u = d([C("sch-notification")], u);
|
|
216
218
|
class O {
|
|
217
219
|
constructor() {
|
|
218
220
|
this.audioContext = null;
|
|
@@ -225,79 +227,79 @@ class O {
|
|
|
225
227
|
return this.audioContext;
|
|
226
228
|
}
|
|
227
229
|
playInfoSound(t = 0.2) {
|
|
228
|
-
const e = this.getAudioContext(), i = e.currentTime,
|
|
229
|
-
|
|
230
|
+
const e = this.getAudioContext(), i = e.currentTime, s = e.createOscillator(), n = e.createGain(), r = e.createBiquadFilter();
|
|
231
|
+
s.type = "sine", s.frequency.setValueAtTime(392, i), s.frequency.exponentialRampToValueAtTime(523.25, i + 0.25), r.type = "lowpass", r.frequency.value = 1500, n.gain.setValueAtTime(1e-4, i), n.gain.exponentialRampToValueAtTime(t, i + 0.15), n.gain.exponentialRampToValueAtTime(1e-4, i + 0.4), s.connect(r).connect(n).connect(e.destination), s.start(i), s.stop(i + 0.45);
|
|
230
232
|
}
|
|
231
233
|
playSuccessSound(t = 0.2) {
|
|
232
|
-
const e = this.getAudioContext(), i = e.currentTime,
|
|
233
|
-
const c = e.createOscillator(),
|
|
234
|
-
c.type = "sine", c.frequency.setValueAtTime(n, i), v.type = "lowpass", v.frequency.value = 4 * n,
|
|
234
|
+
const e = this.getAudioContext(), i = e.currentTime, s = (n, r, a) => {
|
|
235
|
+
const c = e.createOscillator(), w = e.createGain(), v = e.createBiquadFilter();
|
|
236
|
+
c.type = "sine", c.frequency.setValueAtTime(n, i), v.type = "lowpass", v.frequency.value = 4 * n, w.gain.setValueAtTime(1e-4, i), w.gain.exponentialRampToValueAtTime(t, i + 0.1), w.gain.exponentialRampToValueAtTime(1e-4, i + a), c.connect(v).connect(w).connect(e.destination), c.start(i + r), c.stop(i + a);
|
|
235
237
|
};
|
|
236
|
-
|
|
238
|
+
s(659.25, 0, 0.6), s(523.25, 0.05, 0.55);
|
|
237
239
|
}
|
|
238
240
|
playWarningSound(t = 0.25) {
|
|
239
|
-
const e = this.getAudioContext(), i = e.currentTime,
|
|
240
|
-
|
|
241
|
+
const e = this.getAudioContext(), i = e.currentTime, s = e.createOscillator(), n = e.createOscillator(), r = e.createGain(), a = e.createBiquadFilter();
|
|
242
|
+
s.type = "sine", n.type = "sine", s.frequency.setValueAtTime(349.23, i), n.frequency.setValueAtTime(440, i), a.type = "lowpass", a.frequency.value = 1e3, r.gain.setValueAtTime(1e-4, i), r.gain.exponentialRampToValueAtTime(t, i + 0.08), r.gain.exponentialRampToValueAtTime(1e-4, i + 0.5), s.connect(a), n.connect(a), a.connect(r).connect(e.destination), s.start(i), n.start(i), s.stop(i + 0.55), n.stop(i + 0.55);
|
|
241
243
|
}
|
|
242
244
|
playErrorSound(t = 0.25) {
|
|
243
|
-
const e = this.getAudioContext(), i = e.currentTime,
|
|
244
|
-
|
|
245
|
+
const e = this.getAudioContext(), i = e.currentTime, s = e.createOscillator(), n = e.createGain(), r = e.createBiquadFilter();
|
|
246
|
+
s.type = "triangle", s.frequency.setValueAtTime(220, i), s.frequency.exponentialRampToValueAtTime(1760, i + 0.3), r.type = "lowpass", r.frequency.value = 800, r.Q.value = 0.5, n.gain.setValueAtTime(1e-4, i), n.gain.exponentialRampToValueAtTime(0.8 * t, i + 0.1), n.gain.exponentialRampToValueAtTime(1e-4, i + 0.7), s.connect(r).connect(n).connect(e.destination), s.start(i), s.stop(i + 0.75);
|
|
245
247
|
}
|
|
246
248
|
async generateAudioFiles(t = 0.25) {
|
|
247
249
|
const i = {};
|
|
248
|
-
return i.info = await this.generateAudioFile(async (
|
|
249
|
-
const n =
|
|
250
|
+
return i.info = await this.generateAudioFile(async (s) => {
|
|
251
|
+
const n = s.createOscillator();
|
|
250
252
|
n.type = "sine", n.frequency.setValueAtTime(320, 0), n.frequency.exponentialRampToValueAtTime(520, 0.3);
|
|
251
|
-
const r =
|
|
252
|
-
r.gain.setValueAtTime(0, 0), r.gain.linearRampToValueAtTime(t, 0.1), r.gain.linearRampToValueAtTime(0, 0.5), n.connect(r), r.connect(
|
|
253
|
-
}, 44100, 1), i.success = await this.generateAudioFile(async (
|
|
254
|
-
const n =
|
|
253
|
+
const r = s.createGain();
|
|
254
|
+
r.gain.setValueAtTime(0, 0), r.gain.linearRampToValueAtTime(t, 0.1), r.gain.linearRampToValueAtTime(0, 0.5), n.connect(r), r.connect(s.destination), n.start(), n.stop(0.5);
|
|
255
|
+
}, 44100, 1), i.success = await this.generateAudioFile(async (s) => {
|
|
256
|
+
const n = s.createOscillator();
|
|
255
257
|
n.type = "sine", n.frequency.setValueAtTime(660, 0);
|
|
256
|
-
const r =
|
|
258
|
+
const r = s.createOscillator();
|
|
257
259
|
r.type = "sine", r.frequency.setValueAtTime(440, 0);
|
|
258
|
-
const a =
|
|
260
|
+
const a = s.createGain();
|
|
259
261
|
a.gain.setValueAtTime(0, 0), a.gain.linearRampToValueAtTime(t, 0.1), a.gain.linearRampToValueAtTime(0, 0.5);
|
|
260
|
-
const c =
|
|
261
|
-
c.gain.setValueAtTime(0, 0), c.gain.linearRampToValueAtTime(0.6 * t, 0.15), c.gain.linearRampToValueAtTime(0, 0.7), n.connect(a), a.connect(
|
|
262
|
-
}, 44100, 1), i.warning = await this.generateAudioFile(async (
|
|
263
|
-
const n =
|
|
262
|
+
const c = s.createGain();
|
|
263
|
+
c.gain.setValueAtTime(0, 0), c.gain.linearRampToValueAtTime(0.6 * t, 0.15), c.gain.linearRampToValueAtTime(0, 0.7), n.connect(a), a.connect(s.destination), r.connect(c), c.connect(s.destination), n.start(), r.start(0.15), n.stop(0.5), r.stop(0.7);
|
|
264
|
+
}, 44100, 1), i.warning = await this.generateAudioFile(async (s) => {
|
|
265
|
+
const n = s.createOscillator();
|
|
264
266
|
n.type = "sine", n.frequency.setValueAtTime(293.66, 0);
|
|
265
|
-
const r =
|
|
267
|
+
const r = s.createOscillator();
|
|
266
268
|
r.type = "sine", r.frequency.setValueAtTime(349.23, 0);
|
|
267
|
-
const a =
|
|
268
|
-
a.gain.setValueAtTime(0, 0), a.gain.linearRampToValueAtTime(t, 0.1), a.gain.linearRampToValueAtTime(0.6 * t, 0.2), a.gain.linearRampToValueAtTime(0.8 * t, 0.3), a.gain.linearRampToValueAtTime(0, 0.6), n.connect(a), r.connect(a), a.connect(
|
|
269
|
-
}, 44100, 1), i.error = await this.generateAudioFile(async (
|
|
270
|
-
const n =
|
|
269
|
+
const a = s.createGain();
|
|
270
|
+
a.gain.setValueAtTime(0, 0), a.gain.linearRampToValueAtTime(t, 0.1), a.gain.linearRampToValueAtTime(0.6 * t, 0.2), a.gain.linearRampToValueAtTime(0.8 * t, 0.3), a.gain.linearRampToValueAtTime(0, 0.6), n.connect(a), r.connect(a), a.connect(s.destination), n.start(), r.start(), n.stop(0.6), r.stop(0.6);
|
|
271
|
+
}, 44100, 1), i.error = await this.generateAudioFile(async (s) => {
|
|
272
|
+
const n = s.createOscillator();
|
|
271
273
|
n.type = "sine", n.frequency.setValueAtTime(196, 0);
|
|
272
|
-
const r =
|
|
274
|
+
const r = s.createGain();
|
|
273
275
|
r.gain.setValueAtTime(0, 0), r.gain.linearRampToValueAtTime(t, 0.1), r.gain.linearRampToValueAtTime(0.4 * t, 0.2), r.gain.linearRampToValueAtTime(0.6 * t, 0.3), r.gain.linearRampToValueAtTime(0, 0.7);
|
|
274
|
-
const a =
|
|
275
|
-
a.type = "lowpass", a.frequency.value = 600, a.Q.value = 0.7, n.connect(a), a.connect(r), r.connect(
|
|
276
|
+
const a = s.createBiquadFilter();
|
|
277
|
+
a.type = "lowpass", a.frequency.value = 600, a.Q.value = 0.7, n.connect(a), a.connect(r), r.connect(s.destination), n.start(), n.stop(0.7);
|
|
276
278
|
}, 44100, 1), i;
|
|
277
279
|
}
|
|
278
280
|
async generateAudioFile(t, e = 44100, i = 1) {
|
|
279
|
-
const
|
|
280
|
-
await t(
|
|
281
|
-
const n = await
|
|
281
|
+
const s = new OfflineAudioContext(2, e * i, e);
|
|
282
|
+
await t(s);
|
|
283
|
+
const n = await s.startRendering(), r = this.audioBufferToWav(n);
|
|
282
284
|
return URL.createObjectURL(r);
|
|
283
285
|
}
|
|
284
286
|
audioBufferToWav(t) {
|
|
285
|
-
const e = t.numberOfChannels, i = t.sampleRate,
|
|
286
|
-
return this.writeString(c, 0, "RIFF"), c.setUint32(4, 36 + r, !0), this.writeString(c, 8, "WAVE"), this.writeString(c, 12, "fmt "), c.setUint32(16, 16, !0), c.setUint16(20, 1, !0), c.setUint16(22, e, !0), c.setUint32(24, i, !0), c.setUint32(28, i *
|
|
287
|
+
const e = t.numberOfChannels, i = t.sampleRate, s = 2 * e, n = this.getAudioSamples(t, 16), r = 2 * n.length, a = new ArrayBuffer(44 + r), c = new DataView(a);
|
|
288
|
+
return this.writeString(c, 0, "RIFF"), c.setUint32(4, 36 + r, !0), this.writeString(c, 8, "WAVE"), this.writeString(c, 12, "fmt "), c.setUint32(16, 16, !0), c.setUint16(20, 1, !0), c.setUint16(22, e, !0), c.setUint32(24, i, !0), c.setUint32(28, i * s, !0), c.setUint16(32, s, !0), c.setUint16(34, 16, !0), this.writeString(c, 36, "data"), c.setUint32(40, r, !0), this.writeInt16Samples(c, 44, n), new Blob([a], { type: "audio/wav" });
|
|
287
289
|
}
|
|
288
290
|
getAudioSamples(t, e) {
|
|
289
|
-
const i = t.numberOfChannels,
|
|
290
|
-
for (let a = 0; a <
|
|
291
|
-
const
|
|
291
|
+
const i = t.numberOfChannels, s = t.length, n = [], r = e === 16 ? 32768 : 128;
|
|
292
|
+
for (let a = 0; a < s; a++) for (let c = 0; c < i; c++) {
|
|
293
|
+
const w = t.getChannelData(c)[a], v = Math.max(-1, Math.min(1, w));
|
|
292
294
|
n.push(v * r);
|
|
293
295
|
}
|
|
294
296
|
return n;
|
|
295
297
|
}
|
|
296
298
|
writeInt16Samples(t, e, i) {
|
|
297
|
-
for (let
|
|
299
|
+
for (let s = 0; s < i.length; s++) t.setInt16(e + 2 * s, i[s], !0);
|
|
298
300
|
}
|
|
299
301
|
writeString(t, e, i) {
|
|
300
|
-
for (let
|
|
302
|
+
for (let s = 0; s < i.length; s++) t.setUint8(e + s, i.charCodeAt(s));
|
|
301
303
|
}
|
|
302
304
|
}
|
|
303
305
|
class B {
|
|
@@ -333,8 +335,8 @@ class B {
|
|
|
333
335
|
async loadSound(t) {
|
|
334
336
|
const e = this.soundUrls[t], i = await fetch(e);
|
|
335
337
|
if (!i.ok) throw new Error(`Failed to load sound from ${e}: ${i.statusText}`);
|
|
336
|
-
const
|
|
337
|
-
return await this.getAudioContext().decodeAudioData(
|
|
338
|
+
const s = await i.arrayBuffer();
|
|
339
|
+
return await this.getAudioContext().decodeAudioData(s);
|
|
338
340
|
}
|
|
339
341
|
async playSound(t) {
|
|
340
342
|
if (!this.muted) try {
|
|
@@ -348,10 +350,10 @@ class B {
|
|
|
348
350
|
}
|
|
349
351
|
const i = this.soundBuffers.get(t);
|
|
350
352
|
if (!i) throw new Error(`Sound buffer for ${t} not available`);
|
|
351
|
-
const
|
|
352
|
-
|
|
353
|
+
const s = e.createBufferSource();
|
|
354
|
+
s.buffer = i;
|
|
353
355
|
const n = e.createGain();
|
|
354
|
-
n.gain.value = this.volume,
|
|
356
|
+
n.gain.value = this.volume, s.connect(n), n.connect(e.destination), s.start(0);
|
|
355
357
|
} catch {
|
|
356
358
|
this.playDirectGeneratedSound(t);
|
|
357
359
|
}
|
|
@@ -408,46 +410,55 @@ class B {
|
|
|
408
410
|
return this.soundUrls[t];
|
|
409
411
|
}
|
|
410
412
|
}
|
|
411
|
-
var U = Object.defineProperty, q = Object.getOwnPropertyDescriptor, b = (
|
|
412
|
-
for (var
|
|
413
|
+
var U = Object.defineProperty, q = Object.getOwnPropertyDescriptor, b = (o, t, e, i) => {
|
|
414
|
+
for (var s, n = i > 1 ? void 0 : i ? q(t, e) : t, r = o.length - 1; r >= 0; r--) (s = o[r]) && (n = (i ? s(t, e, n) : s(n)) || n);
|
|
413
415
|
return i && n && U(t, e, n), n;
|
|
414
416
|
};
|
|
415
|
-
let
|
|
417
|
+
let y = class extends S(":host{display:block}.notification-container{position:fixed;z-index:9999;padding:12px;pointer-events:none;width:100%;max-width:424px}.notification-container sch-notification{pointer-events:auto}.notification-container.top-right{top:0;right:0;display:flex;flex-direction:column-reverse}.notification-container.top-left{top:0;left:0;display:flex;flex-direction:column-reverse}.notification-container.bottom-right{bottom:0;right:0;display:flex;flex-direction:column}.notification-container.bottom-left{bottom:0;left:0;display:flex;flex-direction:column}.notification-container.top-center{top:0;left:50%;transform:translate(-50%);display:flex;flex-direction:column-reverse}.notification-container.bottom-center{bottom:0;left:50%;transform:translate(-50%);display:flex;flex-direction:column}") {
|
|
416
418
|
constructor() {
|
|
417
419
|
super(...arguments), this.position = "top-right", this.maxVisibleNotifications = 2, this.playSound = !1, this.audioVolume = 0.1, this._notifications = [], this._audioService = new B();
|
|
418
420
|
}
|
|
419
421
|
connectedCallback() {
|
|
420
|
-
super.connectedCallback(), this._audioService.setVolume(this.audioVolume),
|
|
421
|
-
this.addNotification(
|
|
422
|
-
}),
|
|
423
|
-
this.
|
|
422
|
+
super.connectedCallback(), this._audioService.setVolume(this.audioVolume), x(window, "schmancy-notification").pipe(T(this.disconnecting)).subscribe((o) => {
|
|
423
|
+
this.addNotification(o.detail);
|
|
424
|
+
}), x(window, "schmancy-notification-dismiss").pipe(T(this.disconnecting)).subscribe((o) => {
|
|
425
|
+
this.removeNotification(o.detail.id);
|
|
426
|
+
}), x(window, "schmancy-notification-update").pipe(T(this.disconnecting)).subscribe((o) => {
|
|
427
|
+
this.updateNotification(o.detail.id, o.detail);
|
|
428
|
+
}), this.addEventListener("playsound", (o) => {
|
|
429
|
+
this.playSound && this._audioService.playSound(o.detail.type);
|
|
424
430
|
});
|
|
425
431
|
}
|
|
426
|
-
addNotification(
|
|
427
|
-
const t =
|
|
432
|
+
addNotification(o) {
|
|
433
|
+
const t = o.id || `notification-${Date.now()}-${Math.floor(1e4 * Math.random())}`, e = { id: t, title: o.title || "", message: o.message, type: o.type || "info", duration: o.duration !== void 0 ? o.duration : 750, closable: o.closable === void 0 || o.closable, playSound: o.playSound !== void 0 ? o.playSound : this.playSound, showProgress: o.showProgress !== void 0 && o.showProgress };
|
|
428
434
|
return this.position.startsWith("top") ? this._notifications = [...this._notifications, e] : this._notifications = [e, ...this._notifications], this._notifications.length > this.maxVisibleNotifications && (this._notifications = this._notifications.slice(-this.maxVisibleNotifications)), e.playSound && this._audioService.playSound(e.type), t;
|
|
429
435
|
}
|
|
430
|
-
removeNotification(
|
|
431
|
-
this._notifications = this._notifications.filter((t) => t.id !==
|
|
436
|
+
removeNotification(o) {
|
|
437
|
+
this._notifications = this._notifications.filter((t) => t.id !== o);
|
|
432
438
|
}
|
|
433
|
-
|
|
434
|
-
const
|
|
439
|
+
updateNotification(o, t) {
|
|
440
|
+
const e = this._notifications.findIndex((i) => i.id === o);
|
|
441
|
+
e !== -1 && (this._notifications[e] = { ...this._notifications[e], ...t }, this.requestUpdate());
|
|
442
|
+
}
|
|
443
|
+
_handleClose(o) {
|
|
444
|
+
const t = o.detail.id;
|
|
435
445
|
this.removeNotification(t);
|
|
436
446
|
}
|
|
437
447
|
render() {
|
|
438
448
|
return p`
|
|
439
449
|
<div
|
|
440
|
-
class=${
|
|
450
|
+
class=${_({ "notification-container": !0, [this.position]: !0 })}
|
|
441
451
|
>
|
|
442
|
-
${k(this._notifications, (
|
|
452
|
+
${k(this._notifications, (o) => o.id, (o) => p`
|
|
443
453
|
<sch-notification
|
|
444
|
-
.id=${
|
|
445
|
-
.title=${
|
|
446
|
-
.message=${
|
|
447
|
-
.type=${
|
|
448
|
-
.duration=${
|
|
449
|
-
?closable=${
|
|
450
|
-
?playSound=${!1}
|
|
454
|
+
.id=${o.id}
|
|
455
|
+
.title=${o.title}
|
|
456
|
+
.message=${o.message}
|
|
457
|
+
.type=${o.type}
|
|
458
|
+
.duration=${o.duration}
|
|
459
|
+
?closable=${o.closable}
|
|
460
|
+
?playSound=${!1}
|
|
461
|
+
?showProgress=${o.showProgress}
|
|
451
462
|
@close=${this._handleClose}
|
|
452
463
|
></sch-notification>
|
|
453
464
|
`)}
|
|
@@ -455,16 +466,34 @@ let f = class extends _(":host{display:block}.notification-container{position:fi
|
|
|
455
466
|
`;
|
|
456
467
|
}
|
|
457
468
|
};
|
|
458
|
-
b([h({ type: String })],
|
|
459
|
-
const
|
|
469
|
+
b([h({ type: String })], y.prototype, "position", 2), b([h({ type: Number })], y.prototype, "maxVisibleNotifications", 2), b([h({ type: Boolean })], y.prototype, "playSound", 2), b([h({ type: Number })], y.prototype, "audioVolume", 2), b([g()], y.prototype, "_notifications", 2), y = b([C("sch-notification-container")], y);
|
|
470
|
+
const f = class f {
|
|
460
471
|
constructor() {
|
|
472
|
+
this.notificationStack = [];
|
|
461
473
|
}
|
|
462
474
|
static getInstance() {
|
|
463
|
-
return
|
|
475
|
+
return f.instance || (f.instance = new f()), f.instance;
|
|
464
476
|
}
|
|
465
477
|
notify(t) {
|
|
466
|
-
const e = { ...
|
|
467
|
-
|
|
478
|
+
const e = { ...f.DEFAULT_OPTIONS, ...t, duration: t.duration ?? f.DEFAULT_OPTIONS.duration }, i = e.id || `notification-${Date.now()}-${Math.floor(1e4 * Math.random())}`;
|
|
479
|
+
this.notificationStack.push(i);
|
|
480
|
+
const s = new CustomEvent("schmancy-notification", { bubbles: !0, composed: !0, detail: { ...e, id: i } });
|
|
481
|
+
return window.dispatchEvent(s), i;
|
|
482
|
+
}
|
|
483
|
+
dismiss(t) {
|
|
484
|
+
let e;
|
|
485
|
+
if (t) {
|
|
486
|
+
const i = this.notificationStack.indexOf(t);
|
|
487
|
+
i > -1 && (this.notificationStack.splice(i, 1), e = t);
|
|
488
|
+
} else e = this.notificationStack.pop();
|
|
489
|
+
if (e) {
|
|
490
|
+
const i = new CustomEvent("schmancy-notification-dismiss", { bubbles: !0, composed: !0, detail: { id: e } });
|
|
491
|
+
window.dispatchEvent(i);
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
update(t, e) {
|
|
495
|
+
const i = new CustomEvent("schmancy-notification-update", { bubbles: !0, composed: !0, detail: { id: t, ...e } });
|
|
496
|
+
window.dispatchEvent(i);
|
|
468
497
|
}
|
|
469
498
|
info(t, e = {}) {
|
|
470
499
|
return this.notify({ message: t ?? "", type: "info", duration: t ? e.duration : 1, ...e });
|
|
@@ -485,13 +514,13 @@ const y = class y {
|
|
|
485
514
|
return this.notify({ message: t, duration: 0, ...e });
|
|
486
515
|
}
|
|
487
516
|
};
|
|
488
|
-
|
|
489
|
-
let m =
|
|
490
|
-
const W = { show: (
|
|
517
|
+
f.DEFAULT_OPTIONS = { duration: 1e3, closable: !0, playSound: !0 };
|
|
518
|
+
let m = f;
|
|
519
|
+
const W = { show: (o) => m.getInstance().notify(o), info: (o, t = {}) => m.getInstance().info(o, t), success: (o, t = {}) => m.getInstance().success(o, t), warning: (o, t = {}) => m.getInstance().warning(o, t), error: (o, t = {}) => m.getInstance().error(o, t), customDuration: (o, t, e = {}) => m.getInstance().customDuration(o, t, e), persistent: (o, t = {}) => m.getInstance().persistent(o, t), dismiss: (o) => m.getInstance().dismiss(o), update: (o, t) => m.getInstance().update(o, t) };
|
|
491
520
|
export {
|
|
492
521
|
W as $,
|
|
493
522
|
B as N,
|
|
494
523
|
u as S,
|
|
495
|
-
|
|
524
|
+
y as a
|
|
496
525
|
};
|
|
497
|
-
//# sourceMappingURL=notification-service-
|
|
526
|
+
//# sourceMappingURL=notification-service-Byz67oln.js.map
|