maz-ui 4.0.0-beta.4 → 4.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{MazDatePicker.CT5yJhSN.js → MazDatePicker.Bgd0WwZk.js} +30 -12
- package/dist/chunks/{MazDropdown.vue_vue_type_style_index_0_lang.De5b1GG8.js → MazDropdown.vue_vue_type_style_index_0_lang.WRjG5bff.js} +2 -2
- package/dist/chunks/{MazInputNumber.vue_vue_type_style_index_0_lang.B6DYpHfi.js → MazInputNumber.vue_vue_type_style_index_0_lang.BUOLoXtV.js} +3 -3
- package/dist/chunks/{MazInputPrice.vue_vue_type_script_setup_true_lang.GMKzSu7R.js → MazInputPrice.vue_vue_type_script_setup_true_lang.CT1Y2-_T.js} +33 -3
- package/dist/chunks/{MazPickerCalendar.RS6ZMdDK.js → MazPickerCalendar.BkmubImp.js} +1 -1
- package/dist/chunks/{MazPickerCalendarMonth.hQBSVkc9.js → MazPickerCalendarMonth.Df2qar5v.js} +1 -1
- package/dist/chunks/{MazPickerCalendarSwitcher.Cp2ux3E4.js → MazPickerCalendarSwitcher.DyrEWPLk.js} +4 -4
- package/dist/chunks/{MazPickerContainer.DnfB3Dqg.js → MazPickerContainer.B4fyKYAE.js} +1 -1
- package/dist/chunks/{MazPickerHeader.Dlz2yJ1D.js → MazPickerHeader.DoXGZZFX.js} +1 -1
- package/dist/chunks/{MazPickerMonthSwitcher.BpfCGGxQ.js → MazPickerMonthSwitcher.CXuVHGVq.js} +1 -2
- package/dist/chunks/{MazPickerTime.EuWWNfid.js → MazPickerTime.CueS5GPb.js} +1 -1
- package/dist/chunks/{MazPickerYearSwitcher.D4aO09D3.js → MazPickerYearSwitcher.DNdhvfKw.js} +1 -2
- package/dist/chunks/{MazTable.vue_vue_type_script_setup_true_lang.bm7ng8fK.js → MazTable.vue_vue_type_script_setup_true_lang.By5YbgRn.js} +7 -7
- package/dist/chunks/academic-cap.BjcfXmGu.CCSXStjO.js +24 -0
- package/dist/chunks/adjustments-horizontal.CT-QeIwW.CRspwA1D.js +24 -0
- package/dist/chunks/adjustments-vertical.BHXET8iZ.DXKjofVz.js +24 -0
- package/dist/chunks/archive-box-arrow-down.DY2jR2sP.D5q20o-C.js +24 -0
- package/dist/chunks/archive-box-x-mark.DP7eLVaB.D9lYjTGp.js +24 -0
- package/dist/chunks/archive-box.CVwekUWp.CAar5Lvs.js +24 -0
- package/dist/chunks/arrow-down-circle.DL2lvwk5.CGlJ9wP0.js +24 -0
- package/dist/chunks/arrow-down-left.C3nEVXaG.DsaJ0TwT.js +24 -0
- package/dist/chunks/arrow-down-on-square-stack.BKDRxXkf.DOjZT9_M.js +24 -0
- package/dist/chunks/arrow-down-on-square.DAMoXY4b.Brdd_BB2.js +24 -0
- package/dist/chunks/arrow-down-right.hs3isRLs.9WxtifNr.js +24 -0
- package/dist/chunks/arrow-down-tray.w1Emiyu3.yRzoHE0I.js +24 -0
- package/dist/chunks/arrow-down.DEawGjfB.CguAHec6.js +24 -0
- package/dist/chunks/arrow-left-circle.BlKwmMyr.BF9vGCFO.js +24 -0
- package/dist/chunks/arrow-left-end-on-rectangle.BwEAWEQp.D7I0qUqw.js +24 -0
- package/dist/chunks/arrow-left-on-rectangle.DabmkYhe.CmIlQ7wf.js +24 -0
- package/dist/chunks/arrow-left-start-on-rectangle.BaoR6nlq.BtEBN2A6.js +24 -0
- package/dist/chunks/arrow-left.D_6VKA-e.CmQE04VA.js +24 -0
- package/dist/chunks/arrow-long-down.5N2s8Cpw.B9JKDT7M.js +24 -0
- package/dist/chunks/arrow-long-left.B7AX0id9.CywMhkhH.js +24 -0
- package/dist/chunks/arrow-long-right.CKMPfwrE.D3pLqdNX.js +24 -0
- package/dist/chunks/arrow-long-up.CT8DU9jc.CIOIdvGB.js +24 -0
- package/dist/chunks/arrow-path-rounded-square.65lulTVg.CQh60_RA.js +24 -0
- package/dist/chunks/arrow-path.CJ9Wswu_.BlR1BJ4i.js +24 -0
- package/dist/chunks/arrow-right-circle.DDZurzmk.DPzHFj8G.js +24 -0
- package/dist/chunks/arrow-right-end-on-rectangle.jNNaV464.DfFRTcEu.js +24 -0
- package/dist/chunks/arrow-right-on-rectangle.BQLAkJlS.D4JfF9Ov.js +24 -0
- package/dist/chunks/arrow-right-start-on-rectangle.DgFTLubq.3qbrqXCj.js +24 -0
- package/dist/chunks/arrow-right.h5GY-bzG.CKBQ5VHM.js +24 -0
- package/dist/chunks/arrow-small-down.3SdgC1Fw.vODsecnG.js +24 -0
- package/dist/chunks/arrow-small-left.Dbw5rTas.C-bYHDKK.js +24 -0
- package/dist/chunks/arrow-small-right.DAmxBfl5.n7vH-w9t.js +24 -0
- package/dist/chunks/arrow-small-up.WQQD-lUO.FvbI2uG_.js +24 -0
- package/dist/chunks/arrow-top-right-on-square.DJeWWj5d.DWV1wrwq.js +24 -0
- package/dist/chunks/arrow-trending-down.CSIGp7a0.DLp5ZExP.js +24 -0
- package/dist/chunks/arrow-trending-up.BGar-3Mt.Cx6Pgj8o.js +24 -0
- package/dist/chunks/arrow-turn-down-left.C4BtwCb-.C7vbo0bi.js +24 -0
- package/dist/chunks/arrow-turn-down-right.Cxu2KBHI.J8piVbUW.js +24 -0
- package/dist/chunks/arrow-turn-left-down.BfjbBrut.D-KMuKDz.js +24 -0
- package/dist/chunks/arrow-turn-left-up.Bsm0aGLO.WVDAyWpM.js +24 -0
- package/dist/chunks/arrow-turn-right-down.DH2Wh74o.dNtSWH1C.js +24 -0
- package/dist/chunks/arrow-turn-right-up.ou0Uaevi.Buzu0SB-.js +24 -0
- package/dist/chunks/arrow-turn-up-left.Bg5YgZsj.Bkn43xjW.js +24 -0
- package/dist/chunks/arrow-turn-up-right.mBRM1THn.BNiuRqzk.js +24 -0
- package/dist/chunks/arrow-up-circle.Bzu19hQF.aerjnsXO.js +24 -0
- package/dist/chunks/arrow-up-left.IRrqyawV.CYNpIPVM.js +24 -0
- package/dist/chunks/arrow-up-on-square-stack.C1q8upHF.BtGNYi9R.js +24 -0
- package/dist/chunks/arrow-up-on-square.Zzd3wPoG.DSV_2koo.js +24 -0
- package/dist/chunks/arrow-up-right.BbJO1c1E.CgNQXpr2.js +24 -0
- package/dist/chunks/arrow-up-tray.BYRIGMnv.DVLg9Kkw.js +24 -0
- package/dist/chunks/arrow-up.DlpZOcZ-.Dc_qfm_w.js +24 -0
- package/dist/chunks/arrow-uturn-down.R4GNIFWx.1xJeI9TW.js +24 -0
- package/dist/chunks/arrow-uturn-left.C1uMohdz.DQroNRfS.js +24 -0
- package/dist/chunks/arrow-uturn-right.OoQi1rgb.D4ddYi69.js +24 -0
- package/dist/chunks/arrow-uturn-up.CA4h-qqY.CRk_dwWh.js +24 -0
- package/dist/chunks/arrows-pointing-in.BxJHq5jK.GkaFX_uo.js +24 -0
- package/dist/chunks/arrows-pointing-out.DSyAjelZ.DBsKw4zk.js +24 -0
- package/dist/chunks/arrows-right-left.CDFOwlcC.QpbG2nK3.js +24 -0
- package/dist/chunks/arrows-up-down.CzfSf__L.DQ5gcMh8.js +24 -0
- package/dist/chunks/at-symbol.DaUFyuwg.FAKonxFg.js +24 -0
- package/dist/chunks/backspace.Cu9cbNxd.DcCOHSU3.js +24 -0
- package/dist/chunks/backward.B68JN4JS.CqwNvpdK.js +24 -0
- package/dist/chunks/banknotes.Dz4gb6DH.Bc_vmzxh.js +24 -0
- package/dist/chunks/bars-2.C0E0O7Qs.BkkB9qGT.js +24 -0
- package/dist/chunks/bars-3-bottom-left.DKFMX51P.C0SPJDh6.js +24 -0
- package/dist/chunks/bars-3-bottom-right.Ct1xrw2s.KKvQgup3.js +24 -0
- package/dist/chunks/bars-3-center-left.DjUpkdr4.DbP3YQA5.js +24 -0
- package/dist/chunks/bars-3.B-K8M_78.Cf4kHUcq.js +24 -0
- package/dist/chunks/bars-4.BEt3xG4t.CUkKbYOi.js +24 -0
- package/dist/chunks/bars-arrow-down.CfQGLJeK.cH_4-4i2.js +24 -0
- package/dist/chunks/bars-arrow-up.CNsLQ8yw.Cwfjtvt4.js +24 -0
- package/dist/chunks/battery-0.C_-hFpYX.BSF335Bw.js +24 -0
- package/dist/chunks/battery-100.B69VsGq_.6MJf6W8Q.js +24 -0
- package/dist/chunks/battery-50.1CCBNwk2.xCj7wvTy.js +24 -0
- package/dist/chunks/beaker.DFKLDGeW.21Nm6WlZ.js +24 -0
- package/dist/chunks/bell-alert.BbDqk2az.D3ABDQ-w.js +24 -0
- package/dist/chunks/bell-slash.C3bKvJAV.n68SmjIt.js +24 -0
- package/dist/chunks/bell-snooze.C2COKl8x.Bca4lBpS.js +24 -0
- package/dist/chunks/bell.Fm9I5urF.DMLNQRjv.js +24 -0
- package/dist/chunks/bold.BDPvVUAR.BvlPriBT.js +23 -0
- package/dist/chunks/bolt-slash.DZlEBjB4.CEL1Y-CI.js +24 -0
- package/dist/chunks/bolt.B8RYziBX.ydwrTz2s.js +24 -0
- package/dist/chunks/book-open.CWUGLre3.DXKaHSLM.js +24 -0
- package/dist/chunks/bookmark-slash.Ff--gHir.ClEojQnD.js +24 -0
- package/dist/chunks/bookmark-square.CJBzX9qk.kdKOPQ-6.js +24 -0
- package/dist/chunks/bookmark.Cb2OSlaK.C3oubrJL.js +24 -0
- package/dist/chunks/briefcase.CTgTVSEh.DX78R1hk.js +24 -0
- package/dist/chunks/bug-ant.B0vPk3_N.Ct6xqXqe.js +24 -0
- package/dist/chunks/building-library.BqdrL-Ec.CA7EOKpn.js +24 -0
- package/dist/chunks/building-office-2.C1qF28CI.BTj9K19P.js +24 -0
- package/dist/chunks/building-office.BR20ANeD.DcYLUjuP.js +24 -0
- package/dist/chunks/building-storefront.D_Lbpsda.BBHRe1sf.js +24 -0
- package/dist/chunks/cake.Bvc4oe_S.etQ39ySd.js +24 -0
- package/dist/chunks/calculator.TIoQepn_.DCacd6Vr.js +24 -0
- package/dist/chunks/calendar-date-range.Dy5vs7S_.D2iryGH7.js +24 -0
- package/dist/chunks/calendar-days.oMae6t-4.KdXSppPh.js +24 -0
- package/dist/chunks/calendar.DxxJBJoK.CeJ8fSPb.js +24 -0
- package/dist/chunks/camera.Cm_7RSqq.B2qog63I.js +31 -0
- package/dist/chunks/chart-bar-square.C_56q4ax.D88dnWFr.js +24 -0
- package/dist/chunks/chart-bar.CR-2VE6U.BpP0YDjf.js +24 -0
- package/dist/chunks/chart-pie.CRPh8b79.DKBryPfA.js +31 -0
- package/dist/chunks/chat-bubble-bottom-center-text.ChYHSzWk.Bg8ClnIa.js +24 -0
- package/dist/chunks/chat-bubble-bottom-center.BTTqABms.D9d0N1iO.js +24 -0
- package/dist/chunks/chat-bubble-left-ellipsis.WSEjQ7jL.CjqH2if2.js +24 -0
- package/dist/chunks/chat-bubble-left-right.DqOV8vN_.BKm2s-Hz.js +24 -0
- package/dist/chunks/chat-bubble-left.BvdvHHlA.zR-JhdYC.js +24 -0
- package/dist/chunks/chat-bubble-oval-left-ellipsis.CpHCuPeS.r5W8LOR8.js +24 -0
- package/dist/chunks/chat-bubble-oval-left.CdqaR91h.BW9JRF8r.js +24 -0
- package/dist/chunks/check-badge.GjHXGEG0.C_oOCt78.js +24 -0
- package/dist/chunks/check-circle.CFcKgPZ4.DfY78EtL.js +24 -0
- package/dist/chunks/check.DfYjeOVQ.DXNsuRna.js +24 -0
- package/dist/chunks/chevron-double-down.CZMayNS1.CisfSsZ8.js +24 -0
- package/dist/chunks/chevron-double-left.De8TBs-I.DAucus_w.js +24 -0
- package/dist/chunks/chevron-double-right.XnTrUsod.Cuu5xoTt.js +24 -0
- package/dist/chunks/chevron-double-up.F7fkhaor.DRJWwQ9F.js +31 -0
- package/dist/chunks/chevron-down.ChGfmxD1.CQ7rtF0T.js +24 -0
- package/dist/chunks/chevron-left.CTBM8oHi.Ba3U4jcW.js +24 -0
- package/dist/chunks/chevron-right.BXTR7Es5.C6KI-hWC.js +24 -0
- package/dist/chunks/chevron-up-down.C7-HMAjy.DKw8M2-I.js +24 -0
- package/dist/chunks/chevron-up.cK7QDv75.B2N-Hk-6.js +24 -0
- package/dist/chunks/circle-stack.BnyTq7sI.1XtJbY6M.js +24 -0
- package/dist/chunks/clipboard-document-check.CJ3xBd7t.Br9n89F9.js +24 -0
- package/dist/chunks/clipboard-document-list.CF1likOV.D3KAtz_z.js +24 -0
- package/dist/chunks/clipboard-document.CdTKuGSv.ChOrKMSS.js +24 -0
- package/dist/chunks/clipboard.CzjWQfRH.Da-cebFK.js +24 -0
- package/dist/chunks/clock.NNdb3vyA.D3jUXhQ7.js +24 -0
- package/dist/chunks/cloud-arrow-down.CvtCNIxh.D1aF62k3.js +24 -0
- package/dist/chunks/cloud-arrow-up.D1JeGPbq.C4jLYHme.js +24 -0
- package/dist/chunks/cloud.C9fdU5-X.cydYlCh2.js +24 -0
- package/dist/chunks/code-bracket-square.BsQyTz1s.BeZZZPk2.js +24 -0
- package/dist/chunks/code-bracket.DJDL79-i.B4G6-VO6.js +24 -0
- package/dist/chunks/cog-6-tooth.BbV5JYl1.DeTgzUXG.js +31 -0
- package/dist/chunks/cog-8-tooth.BnBTLB6M.D8tH-0GQ.js +31 -0
- package/dist/chunks/cog.BXgqaz3X.CF2Pe_yh.js +24 -0
- package/dist/chunks/command-line.w_Y9_Kkc.BMaD58fF.js +24 -0
- package/dist/chunks/computer-desktop.BpRzP4fc.BWRlZKsP.js +24 -0
- package/dist/chunks/cpu-chip.ho-tmFIn.ClPQmB5Q.js +24 -0
- package/dist/chunks/credit-card.DkrZZI4D.ChD3ISF_.js +24 -0
- package/dist/chunks/cube-transparent.C8Wdi45T.CgHVrtio.js +24 -0
- package/dist/chunks/cube.B9UcKOKF.DVXGNDI0.js +24 -0
- package/dist/chunks/currency-bangladeshi.DzhT0-h5.BhxC0NCe.js +24 -0
- package/dist/chunks/currency-dollar.Bfi6fPEz.DxEvUH91.js +24 -0
- package/dist/chunks/currency-euro.Jpiq8P6z.C5ljNb5d.js +24 -0
- package/dist/chunks/currency-pound.DrqWKbpM.BxOh3Nry.js +24 -0
- package/dist/chunks/currency-rupee.DHxnpaCI.Ynrf76Aj.js +24 -0
- package/dist/chunks/currency-yen.DQVa07WN.DdpYfRy5.js +24 -0
- package/dist/chunks/cursor-arrow-rays.MVP12F6C.hM5N0ZS3.js +24 -0
- package/dist/chunks/cursor-arrow-ripple.xLXix2uM.UbRX2pFw.js +24 -0
- package/dist/chunks/device-phone-mobile.B-57CfH5.D6VQ256l.js +24 -0
- package/dist/chunks/device-tablet.Bjsa72o7.CH-OVJkh.js +24 -0
- package/dist/chunks/divide.CV4gt445.Cv9KyNuJ.js +24 -0
- package/dist/chunks/document-arrow-down.B_57Gtno.BlZeqf-M.js +24 -0
- package/dist/chunks/document-arrow-up.BF_OVDJs.CbEXCmN0.js +24 -0
- package/dist/chunks/document-chart-bar.B46OY9CL.CIBAYVab.js +24 -0
- package/dist/chunks/document-check.CvLYBdnm.DluZSYpL.js +24 -0
- package/dist/chunks/document-currency-bangladeshi.HbXz9Sub.Cew_CE25.js +24 -0
- package/dist/chunks/document-currency-dollar.DPjKxFMa.jXB-YTux.js +24 -0
- package/dist/chunks/document-currency-euro.C-L5djvR.C9UJW2-n.js +24 -0
- package/dist/chunks/document-currency-pound.BzcYNgGa.CgLXYWAs.js +24 -0
- package/dist/chunks/document-currency-rupee.DescAEsg.CzFKJayN.js +24 -0
- package/dist/chunks/document-currency-yen.CyrkAYT6.B16hPkmM.js +24 -0
- package/dist/chunks/document-duplicate.D7vGJG_8.CIombGpo.js +24 -0
- package/dist/chunks/document-magnifying-glass.Burq7Xn2.QtA02zrk.js +24 -0
- package/dist/chunks/document-minus.DxGQQWCr.kiSQpPdH.js +24 -0
- package/dist/chunks/document-plus.DKk5zAwV.H3B6AI11.js +24 -0
- package/dist/chunks/document-text.CSCb2U2T.ZDLRpT-o.js +24 -0
- package/dist/chunks/document.CS0Ohrgt.DE8cSIrm.js +24 -0
- package/dist/chunks/ellipsis-horizontal-circle.BFOXQi09.CTDaeIGM.js +24 -0
- package/dist/chunks/ellipsis-horizontal.DqhpkTUz.CclJBCQG.js +24 -0
- package/dist/chunks/ellipsis-vertical.B8W0CqqN.B7I6k_qQ.js +24 -0
- package/dist/chunks/envelope-open.BQygUrrv.LFK3EzRF.js +24 -0
- package/dist/chunks/envelope.DFplr4Iv.Da66rxN8.js +24 -0
- package/dist/chunks/equals.Y4339RW6.CKookNbc.js +24 -0
- package/dist/chunks/exclamation-circle.PMllX_sR.BiDbdO8o.js +24 -0
- package/dist/chunks/exclamation-triangle.DP_ZdqKK.D-pRZiWC.js +24 -0
- package/dist/chunks/eye-dropper.BB7xFmZf.CfuOHkRE.js +24 -0
- package/dist/chunks/eye-slash.B-Q7zAl9.Z-QG3_NS.js +24 -0
- package/dist/chunks/eye.rnBIUryK.CTGdXztX.js +31 -0
- package/dist/chunks/face-frown.BdZUKORe.CTMmkA6s.js +24 -0
- package/dist/chunks/face-smile.BgHmgpsD.BD0FSBwY.js +24 -0
- package/dist/chunks/film.CvtqcSvO.fo_u8ciz.js +24 -0
- package/dist/chunks/finger-print.BalGxdl5.lX4SOFcC.js +24 -0
- package/dist/chunks/fire.C2S-dlHW.D_I1XNHh.js +31 -0
- package/dist/chunks/flag.BDHI8kIc.9T2ghrYf.js +24 -0
- package/dist/chunks/folder-arrow-down.CMe8l5qs.CY2PCaTR.js +24 -0
- package/dist/chunks/folder-minus.BIP4kiBI.CVSaimPJ.js +24 -0
- package/dist/chunks/folder-open.vCqZvh13.CVTeu5UO.js +24 -0
- package/dist/chunks/folder-plus.UKgqnCMI.BvhuTxMF.js +24 -0
- package/dist/chunks/folder.VY6d7M0v.BjpXSXu9.js +24 -0
- package/dist/chunks/fork.Bx0SP5G0.B7BHLQyz.js +49 -0
- package/dist/chunks/forward.CJadSay_.BBS11cS_.js +24 -0
- package/dist/chunks/{fullscreen-img.directive.CyOHexcO.js → fullscreen-img.directive.ClMlhEtN.js} +4 -4
- package/dist/chunks/funnel.CI1X4xTV.C2sbt1gJ.js +24 -0
- package/dist/chunks/gif.3w8BBVap.p3RkEv10.js +24 -0
- package/dist/chunks/gift-top.DGrJVe5T.LHgvzIEw.js +24 -0
- package/dist/chunks/gift.BdjKoMjg.Bf_lfrxv.js +24 -0
- package/dist/chunks/github.DR-YREFz.BKzaMPzV.js +20 -0
- package/dist/chunks/globe-alt.Ci-4WkuA.Df2W4RpY.js +24 -0
- package/dist/chunks/globe-americas.8k4TjYg9.DwAgObeI.js +24 -0
- package/dist/chunks/globe-asia-australia.CJy-S58s.BsXl4X35.js +24 -0
- package/dist/chunks/globe-europe-africa.Ch0apA4Z.ChCxgvsh.js +24 -0
- package/dist/chunks/h1.B0UxaUz3.B-fMNckN.js +24 -0
- package/dist/chunks/h2.CoDly_Rk.xn2P59Pu.js +24 -0
- package/dist/chunks/h3.BiPu_1GK.BtUGrtqm.js +24 -0
- package/dist/chunks/hand-raised.BibTyl03.Bmxt1b7s.js +24 -0
- package/dist/chunks/hand-thumb-down.BJoc9FWD.CTxVd9E4.js +24 -0
- package/dist/chunks/hand-thumb-up.BZWQJYwr.Byh64TmW.js +24 -0
- package/dist/chunks/hashtag.EamZCy49.-5GV13nB.js +24 -0
- package/dist/chunks/heart.DvH7fa-0.DC7zVVeb.js +24 -0
- package/dist/chunks/home-modern.L4UFeQLe.Q-aoULM-.js +24 -0
- package/dist/chunks/home.QELZheLi.CQ5VBdS-.js +24 -0
- package/dist/chunks/identification.CU9KU-bX.CFRzYkwU.js +24 -0
- package/dist/chunks/inbox-arrow-down.6HTSO1kx.DaoUuGHv.js +24 -0
- package/dist/chunks/inbox-stack.BfdiokBq.mWxjLRtV.js +24 -0
- package/dist/chunks/inbox.Biazzhd4.cuiJovdp.js +24 -0
- package/dist/chunks/index.CvKh762h.js +352 -0
- package/dist/chunks/information-circle.yhJPMoUQ.CkqMaCTJ.js +24 -0
- package/dist/chunks/italic.njlz_SwH.B8t1zdyt.js +24 -0
- package/dist/chunks/key.C8y1z_Nx.CWRIUYtz.js +24 -0
- package/dist/chunks/language.1Xs8PuP5.eK68tCI2.js +24 -0
- package/dist/chunks/lifebuoy.uldI5FjH.ttPYeOpt.js +24 -0
- package/dist/chunks/light-bulb.BnZMjrix.Nn8bb3uA.js +24 -0
- package/dist/chunks/link-slash.DYM_8hTp.DbbqWpYf.js +24 -0
- package/dist/chunks/link._zvxE-ZN.DCRS1Nhm.js +24 -0
- package/dist/chunks/list-bullet.Ck8i-zl1.DYTtynEe.js +24 -0
- package/dist/chunks/lock-closed.Do5wxxfB.BoHZR_Cx.js +24 -0
- package/dist/chunks/lock-open.DmUSVzU7.CIioMjR4.js +24 -0
- package/dist/chunks/magnifying-glass-circle.BBKKo-36.D6LZubsX.js +24 -0
- package/dist/chunks/magnifying-glass-minus.D1YH2gJK.DtYqNUQw.js +24 -0
- package/dist/chunks/magnifying-glass-plus.BgJ8lfbV.BBOa_lQz.js +24 -0
- package/dist/chunks/magnifying-glass.Bi8efyWn.BLzbV1BL.js +24 -0
- package/dist/chunks/map-pin.Bxbb--MZ.ea0oLEJ4.js +31 -0
- package/dist/chunks/map.DRcXyo0s.DMK4_gRD.js +24 -0
- package/dist/chunks/megaphone.BTvu-vIj.H3XYCMYF.js +24 -0
- package/dist/chunks/microphone.BJqDhEd7.BsJEAG9l.js +24 -0
- package/dist/chunks/minus-circle.DX_Wo_R6.CfihDX_c.js +24 -0
- package/dist/chunks/minus-small.BdK3wxa2.BruhEWWT.js +24 -0
- package/dist/chunks/minus.KSG6SL-A.Ci3tO7z7.js +24 -0
- package/dist/chunks/moon.BAqSTWOk.y5qE-JgT.js +24 -0
- package/dist/chunks/musical-note.Erx2eYZM.CeYcRysR.js +24 -0
- package/dist/chunks/newspaper.BxEeFWo5.Caqcj866.js +24 -0
- package/dist/chunks/no-image.G9oAqLYN.QYfh20At.js +18 -0
- package/dist/chunks/no-symbol.v1ZxT7PS.CLiEtcjA.js +24 -0
- package/dist/chunks/numbered-list.D4--Brg5.DPb7JWAD.js +24 -0
- package/dist/chunks/paint-brush.9Oq01j7X.BaQOU4-k.js +24 -0
- package/dist/chunks/paper-airplane.DKx_Ww6M.Dx_A6-r1.js +24 -0
- package/dist/chunks/paper-clip.Cd3ICjAc.Di3lmXzN.js +24 -0
- package/dist/chunks/pause-circle.Dyaqta5w.Bf5lVO6T.js +24 -0
- package/dist/chunks/pause.Xl-ti251.BrVoKvOq.js +24 -0
- package/dist/chunks/pencil-square.83G17jv5.BieHF6-5.js +24 -0
- package/dist/chunks/pencil.Bv-2uNMw.B6t0Zv85.js +24 -0
- package/dist/chunks/percent-badge.BR-COyYt.D9uZiuV4.js +24 -0
- package/dist/chunks/phone-arrow-down-left.bgYNFdYw.DlXuTKyQ.js +24 -0
- package/dist/chunks/phone-arrow-up-right.DL8xnmCp.B6ny9DGc.js +24 -0
- package/dist/chunks/phone-x-mark.EJ8g8Io4.iD9I0F8O.js +24 -0
- package/dist/chunks/phone.C9HcOJV4.DR_ydb9P.js +24 -0
- package/dist/chunks/photo.D2i5ltv-.Bx4bun8k.js +24 -0
- package/dist/chunks/play-circle.sQgQYbxL.DIVhJ_VT.js +31 -0
- package/dist/chunks/play-pause.7fATndsv.BlbQnYtP.js +24 -0
- package/dist/chunks/play.DPQ51d76.CXxYnamK.js +24 -0
- package/dist/chunks/plus-circle.t0rIMK17.CJuEO_hV.js +24 -0
- package/dist/chunks/plus-small.q2_UTnSJ.D00Lo6Gm.js +24 -0
- package/dist/chunks/plus.B4eFPhg5.Bjb51_89.js +24 -0
- package/dist/chunks/power.DbnsGjcP.ADCLCnp1.js +24 -0
- package/dist/chunks/presentation-chart-bar.qOHPrVoA.DzoUJVBk.js +24 -0
- package/dist/chunks/presentation-chart-line.kt2UcfXU.ByalT4af.js +24 -0
- package/dist/chunks/printer.DgYbu-oZ.oyHdK_Er.js +24 -0
- package/dist/chunks/puzzle-piece.DPVPnROW.Dj5Pkwqw.js +24 -0
- package/dist/chunks/qr-code.Cz6_gY5W.BRQos2fl.js +31 -0
- package/dist/chunks/question-mark-circle.BI3Pj1lM.CUkVvnjz.js +24 -0
- package/dist/chunks/queue-list.BTtd9gV_.BZqvXCX1.js +24 -0
- package/dist/chunks/radio.NXQa70KZ.DcLeSUt8.js +24 -0
- package/dist/chunks/receipt-percent.BEffIYGJ.C5vDjent.js +24 -0
- package/dist/chunks/receipt-refund.hLJiXRl-.BvT1RelP.js +24 -0
- package/dist/chunks/rectangle-group.DUnjEoiP.9pML-9-S.js +24 -0
- package/dist/chunks/rectangle-stack.DxfbSUKM.BS0h3Qu8.js +24 -0
- package/dist/chunks/rocket-launch.X-OfcjiP.BRHh-FkZ.js +24 -0
- package/dist/chunks/rss.BLvK5jPr.CckNH6AG.js +24 -0
- package/dist/chunks/scale.DEEYJ6Zk.CXnrDRjc.js +24 -0
- package/dist/chunks/scissors.Bu_6BaOX.CgCRjlsD.js +24 -0
- package/dist/chunks/server-stack.DmncQkqn.DlXBXJ68.js +24 -0
- package/dist/chunks/server.LyXBRSxY.DiraGD0N.js +24 -0
- package/dist/chunks/share.Cf9OjBgL.RQldJRZ9.js +24 -0
- package/dist/chunks/shield-check.VQpLzd2v.Bv6XREpP.js +24 -0
- package/dist/chunks/shield-exclamation.Be0w3_jk.Czs5h8N1.js +24 -0
- package/dist/chunks/shopping-bag.CmqEq0ln.Co-ENH4J.js +24 -0
- package/dist/chunks/shopping-cart.sDo0rmyp.Dwxg9WFh.js +24 -0
- package/dist/chunks/signal-slash.Cj_p1Nk-.Bos1dz3M.js +24 -0
- package/dist/chunks/signal.CDdRnntO.zs66muqE.js +24 -0
- package/dist/chunks/slash.DLlsJ67p.BovzBFnY.js +24 -0
- package/dist/chunks/sparkles.Cl4CxIOA.CJtVBamV.js +24 -0
- package/dist/chunks/speaker-wave.Dhz2ha5o.BKHqvdzL.js +24 -0
- package/dist/chunks/speaker-x-mark.D5bJpGdc.B-98J4TH.js +24 -0
- package/dist/chunks/square-2-stack.B_K3e5Xo.BpuWW3zQ.js +24 -0
- package/dist/chunks/square-3-stack-3d.kEZ7HRU8.u3pEG_dB.js +24 -0
- package/dist/chunks/squares-2x2.DbpIJWWH.czohOArw.js +24 -0
- package/dist/chunks/squares-plus.DJoqsZG-.C56wwQo6.js +24 -0
- package/dist/chunks/star-solid.ith3udUr.fI6COBY6.js +22 -0
- package/dist/chunks/star.BOm1sCet.CrlFtkIH.js +24 -0
- package/dist/chunks/stop-circle.i8k9ENGo.Bvg3kAtp.js +31 -0
- package/dist/chunks/stop.BvbL0z5G.BzZa9cz4.js +24 -0
- package/dist/chunks/strikethrough.D9IxMEze.CG0o3e8f.js +24 -0
- package/dist/chunks/sun.DtlkYkWH.BY6FsaIr.js +24 -0
- package/dist/chunks/swatch.BQEbGG5v.mzOiKL2U.js +24 -0
- package/dist/chunks/table-cells.DgYgkJao.D_ev8kjA.js +24 -0
- package/dist/chunks/tag.9pi2-WVW.AW6frX03.js +31 -0
- package/dist/chunks/ticket.CoeaVN1f.D8B_ZCyj.js +24 -0
- package/dist/chunks/trash.CKFg-ylA.BeH6WFxu.js +24 -0
- package/dist/chunks/trophy.DqS7is9J.BqpYwRUm.js +24 -0
- package/dist/chunks/truck.CiPiMFO5.I1lYcatr.js +24 -0
- package/dist/chunks/tv.FRI46IJL.DYLIUXzl.js +24 -0
- package/dist/chunks/underline.CTS7x7HZ.BTMyDX0M.js +24 -0
- package/dist/chunks/{normalizeString.CFe2M8S_.js → useStringMatching.D5UvsCUS.js} +40 -1
- package/dist/chunks/user-circle.jg7OpkHK.BzdqSzzl.js +24 -0
- package/dist/chunks/user-group.ZzJJeNOR.DqrCBO8z.js +24 -0
- package/dist/chunks/user-minus.CFpE7tJo.Cc-_xIha.js +24 -0
- package/dist/chunks/user-plus.56xx_RZF.DeJBUlvA.js +24 -0
- package/dist/chunks/user.BHnHyDaq.DDyUV-u5.js +24 -0
- package/dist/chunks/users.CcE72INP.DbTawkoy.js +24 -0
- package/dist/chunks/{utils.BBuYjMbK.js → utils.D9NiqfdV.js} +63 -6
- package/dist/chunks/vClickOutside.C69k0jaG.js +107 -0
- package/dist/chunks/variable.D2aSg3jI.B9JN_cwv.js +24 -0
- package/dist/chunks/video-camera-slash.BwxNb0cm.SnSS7S5P.js +24 -0
- package/dist/chunks/video-camera.CoJgwP4F.BmMWt0vs.js +24 -0
- package/dist/chunks/view-columns.LoFVFzBR.CIMGv7mf.js +24 -0
- package/dist/chunks/viewfinder-circle.CaQlvTWC.CJVVM5_n.js +24 -0
- package/dist/chunks/wallet.CqM_mibw.kwMG5OEh.js +24 -0
- package/dist/chunks/wifi.DUdIKgQN.DqZ0nPHO.js +24 -0
- package/dist/chunks/window.BeFPU0ZR.Cqieba0K.js +24 -0
- package/dist/chunks/wrench-screwdriver.BcMJDiuu.Ces3a6-S.js +24 -0
- package/dist/chunks/wrench.DhPW3HZx.CNeKEI4i.js +31 -0
- package/dist/chunks/x-circle.Bv0-dC8L.BikPLDPw.js +24 -0
- package/dist/chunks/x-mark.umAR9tn5.iu8PJ4nS.js +24 -0
- package/dist/components/MazAccordion.js +2 -2
- package/dist/components/MazAvatar.js +2 -2
- package/dist/components/MazBottomSheet.js +2 -2
- package/dist/components/MazCard.js +2 -2
- package/dist/components/MazCarousel.js +3 -3
- package/dist/components/MazCheckbox.js +2 -2
- package/dist/components/MazChecklist.js +4 -5
- package/dist/components/MazDatePicker.js +1 -1
- package/dist/components/MazDialog.js +2 -2
- package/dist/components/MazDrawer.js +2 -2
- package/dist/components/MazDropdown.js +1 -1
- package/dist/components/MazDropzone.js +5 -5
- package/dist/components/MazGallery.js +3 -3
- package/dist/components/MazInput.js +3 -3
- package/dist/components/MazInputNumber.js +1 -1
- package/dist/components/MazInputPrice.js +1 -1
- package/dist/components/MazInputTags.js +2 -2
- package/dist/components/MazLink.js +2 -2
- package/dist/components/MazPagination.js +6 -6
- package/dist/components/MazPopover.js +1 -1
- package/dist/components/MazPullToRefresh.js +7 -2
- package/dist/components/MazRadioButtons.js +2 -2
- package/dist/components/MazSelect.js +10 -8
- package/dist/components/MazSelectCountry.js +7 -2
- package/dist/components/MazStepper.js +2 -2
- package/dist/components/MazTable.js +2 -2
- package/dist/components/MazTableCell.js +1 -1
- package/dist/components/MazTableRow.js +1 -1
- package/dist/components/MazTableTitle.js +1 -1
- package/dist/components/MazTextarea.js +23 -2
- package/dist/components/index.js +4 -4
- package/dist/composables/index.js +2 -2
- package/dist/composables/useFormField.js +1 -2
- package/dist/composables/useFormValidator.js +1 -1
- package/dist/composables/useIdleTimeout.js +108 -1
- package/dist/composables/useStringMatching.js +3 -40
- package/dist/composables/useSwipe.js +77 -1
- package/dist/composables/useUserVisibility.js +47 -1
- package/dist/directives/index.js +7 -7
- package/dist/directives/vClickOutside.js +4 -102
- package/dist/directives/vFullscreenImg.js +1 -1
- package/dist/index.js +1 -114
- package/dist/plugins/toast.js +7 -7
- package/dist/resolvers/MazComponentsResolver.js +7 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -3
- package/dist/chunks/TextareaAutogrow.C22LQx0k.js +0 -25
- package/dist/chunks/debounceCallback.B69vn57Q.js +0 -7
- package/dist/chunks/formatCurrency.C8NzW9Ii.js +0 -34
- package/dist/chunks/formatDate.DZ_OzdnV.js +0 -21
- package/dist/chunks/getCountryFlagUrl.dQjriBXx.js +0 -9
- package/dist/chunks/idleTimeout.-ICpdeGV.js +0 -111
- package/dist/chunks/isServer.BokzeB-Q.js +0 -6
- package/dist/chunks/isStandaloneMode.BpUpOTbA.js +0 -10
- package/dist/chunks/pascalCase.D_nuQ66I.js +0 -11
- package/dist/chunks/swipeHandler.8emelhOL.js +0 -80
- package/dist/chunks/throttleId.7PhWZjcS.js +0 -62
- package/dist/chunks/userVisibility.BbQSJASv.js +0 -50
|
@@ -1,104 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
const eventHandlers = /* @__PURE__ */ new WeakMap();
|
|
4
|
-
function getEventType() {
|
|
5
|
-
return isServer() ? "click" : document.ontouchstart === null ? "touchstart" : "click";
|
|
6
|
-
}
|
|
7
|
-
function isOptionsObject(value) {
|
|
8
|
-
return typeof value == "object" && value !== null && "callback" in value;
|
|
9
|
-
}
|
|
10
|
-
function getOptionsFromBinding(binding) {
|
|
11
|
-
const value = binding.value;
|
|
12
|
-
return isOptionsObject(value) ? {
|
|
13
|
-
ignore: [],
|
|
14
|
-
capture: !1,
|
|
15
|
-
once: !1,
|
|
16
|
-
stopPropagation: !1,
|
|
17
|
-
...value
|
|
18
|
-
} : {
|
|
19
|
-
callback: value,
|
|
20
|
-
ignore: [],
|
|
21
|
-
capture: !1,
|
|
22
|
-
once: !1,
|
|
23
|
-
stopPropagation: !1
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
function shouldIgnoreElement(target, ignoreSelectors) {
|
|
27
|
-
return isServer() ? !1 : ignoreSelectors.some((selector) => {
|
|
28
|
-
try {
|
|
29
|
-
if (target.matches && target.matches(selector) || target.closest && target.closest(selector) !== null)
|
|
30
|
-
return !0;
|
|
31
|
-
const excludedElement = document.querySelector(selector);
|
|
32
|
-
if (excludedElement) {
|
|
33
|
-
const elementId = excludedElement.getAttribute("id");
|
|
34
|
-
if (elementId && target instanceof HTMLElement && target.getAttribute("id") === elementId || excludedElement.contains(target))
|
|
35
|
-
return !0;
|
|
36
|
-
}
|
|
37
|
-
return !1;
|
|
38
|
-
} catch {
|
|
39
|
-
return !1;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
async function onMounted(el, binding) {
|
|
44
|
-
if (!isServer())
|
|
45
|
-
try {
|
|
46
|
-
onUnmounted(el);
|
|
47
|
-
const vm = binding.instance, options = getOptionsFromBinding(binding), { callback, ignore = [], capture = !1, once = !1, stopPropagation = !1 } = options, isCallbackFunction = typeof callback == "function";
|
|
48
|
-
if (!isCallbackFunction)
|
|
49
|
-
throw new Error("[maz-ui](vClickOutside) the callback should be a function");
|
|
50
|
-
await nextTick();
|
|
51
|
-
const eventHandler = (event) => {
|
|
52
|
-
stopPropagation && event.stopPropagation();
|
|
53
|
-
const target = event.target;
|
|
54
|
-
if (!target || !el)
|
|
55
|
-
return;
|
|
56
|
-
const isOutside = !el.contains(target), shouldIgnore = ignore.length > 0 && shouldIgnoreElement(target, ignore);
|
|
57
|
-
if (isOutside && !shouldIgnore && callback && isCallbackFunction)
|
|
58
|
-
return callback.call(vm, event);
|
|
59
|
-
};
|
|
60
|
-
eventHandlers.set(el, eventHandler);
|
|
61
|
-
const eventType = getEventType(), eventOptions = {
|
|
62
|
-
passive: !0,
|
|
63
|
-
capture,
|
|
64
|
-
once
|
|
65
|
-
};
|
|
66
|
-
document.addEventListener(eventType, eventHandler, eventOptions);
|
|
67
|
-
} catch (error) {
|
|
68
|
-
console.error("[maz-ui](vClickOutside)", error);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
function onUnmounted(el) {
|
|
72
|
-
if (!isServer())
|
|
73
|
-
try {
|
|
74
|
-
const eventHandler = eventHandlers.get(el);
|
|
75
|
-
if (eventHandler) {
|
|
76
|
-
const eventType = getEventType();
|
|
77
|
-
document.removeEventListener(eventType, eventHandler, !1), eventHandlers.delete(el);
|
|
78
|
-
}
|
|
79
|
-
} catch (error) {
|
|
80
|
-
console.error("[maz-ui](vClickOutside)", error);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
function onUpdated(el, binding) {
|
|
84
|
-
try {
|
|
85
|
-
if (binding.value === binding.oldValue)
|
|
86
|
-
return;
|
|
87
|
-
onMounted(el, binding);
|
|
88
|
-
} catch (error) {
|
|
89
|
-
console.error("[maz-ui](vClickOutside)", error);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
const directive = {
|
|
93
|
-
mounted: onMounted,
|
|
94
|
-
updated: onUpdated,
|
|
95
|
-
unmounted: onUnmounted
|
|
96
|
-
}, plugin = {
|
|
97
|
-
install: (app) => {
|
|
98
|
-
app.directive("click-outside", directive);
|
|
99
|
-
}
|
|
100
|
-
};
|
|
1
|
+
import "vue";
|
|
2
|
+
import { d, p } from "../chunks/vClickOutside.C69k0jaG.js";
|
|
101
3
|
export {
|
|
102
|
-
|
|
103
|
-
|
|
4
|
+
d as vClickOutside,
|
|
5
|
+
p as vClickOutsideInstall
|
|
104
6
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,114 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { c as c2 } from "./chunks/capitalize.BF6CDS_4.js";
|
|
3
|
-
import { f } from "./chunks/formatCurrency.C8NzW9Ii.js";
|
|
4
|
-
import { f as f2 } from "./chunks/formatDate.DZ_OzdnV.js";
|
|
5
|
-
import { c as c3 } from "./chunks/checkAvailability.aTpZidex.js";
|
|
6
|
-
import { t as truthyFilter } from "./chunks/truthyFilter.C2WOKUCG.js";
|
|
7
|
-
import { d } from "./chunks/debounce.Brzkn9pm.js";
|
|
8
|
-
import { d as d2 } from "./chunks/debounceCallback.B69vn57Q.js";
|
|
9
|
-
import { d as d3, i, t } from "./chunks/throttleId.7PhWZjcS.js";
|
|
10
|
-
import { g } from "./chunks/getCountryFlagUrl.dQjriBXx.js";
|
|
11
|
-
import { I } from "./chunks/idleTimeout.-ICpdeGV.js";
|
|
12
|
-
import { i as i2 } from "./chunks/isClient.WI4oSt66.js";
|
|
13
|
-
import { i as i3 } from "./chunks/isServer.BokzeB-Q.js";
|
|
14
|
-
import { i as i4 } from "./chunks/isStandaloneMode.BpUpOTbA.js";
|
|
15
|
-
import { n } from "./chunks/normalizeString.CFe2M8S_.js";
|
|
16
|
-
import { s } from "./chunks/sleep.BLRH1qZG.js";
|
|
17
|
-
import { S } from "./chunks/swipeHandler.8emelhOL.js";
|
|
18
|
-
import { T } from "./chunks/TextareaAutogrow.C22LQx0k.js";
|
|
19
|
-
import { t as t2 } from "./chunks/throttle.DN8ARw0a.js";
|
|
20
|
-
import { U } from "./chunks/userVisibility.BbQSJASv.js";
|
|
21
|
-
const DEFAULT_OPTIONS = {
|
|
22
|
-
minimumFractionDigits: 2
|
|
23
|
-
};
|
|
24
|
-
function formatNumber(number, locale, options) {
|
|
25
|
-
const filterOptions = {
|
|
26
|
-
...DEFAULT_OPTIONS,
|
|
27
|
-
...options
|
|
28
|
-
};
|
|
29
|
-
if (number === void 0)
|
|
30
|
-
throw new TypeError("[maz-ui](FilterNumber) The `number` attribute is required.");
|
|
31
|
-
if (locale === void 0)
|
|
32
|
-
throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute is required.");
|
|
33
|
-
if (typeof locale != "string")
|
|
34
|
-
throw new TypeError("[maz-ui](FilterNumber) The `locale` attribute must be a string.");
|
|
35
|
-
try {
|
|
36
|
-
return new Intl.NumberFormat(locale, filterOptions).format(Number(number));
|
|
37
|
-
} catch (error) {
|
|
38
|
-
throw new Error(`[maz-ui](FilterNumber) ${error}`);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
function countryCodeToUnicodeFlag(locale) {
|
|
42
|
-
return [...locale].map((letter) => {
|
|
43
|
-
const code = letter.codePointAt(0);
|
|
44
|
-
return code ? code % 32 + 127461 : void 0;
|
|
45
|
-
}).filter(truthyFilter).map((n2) => String.fromCodePoint(n2)).join("");
|
|
46
|
-
}
|
|
47
|
-
class ScriptLoader {
|
|
48
|
-
src;
|
|
49
|
-
script;
|
|
50
|
-
once;
|
|
51
|
-
async;
|
|
52
|
-
defer;
|
|
53
|
-
identifier;
|
|
54
|
-
constructor({ src, identifier, once = !0, async = !0, defer = !0 }) {
|
|
55
|
-
if (typeof window > "u")
|
|
56
|
-
throw new TypeError("[ScriptLoader]: Is supported only on browser side");
|
|
57
|
-
if (!src)
|
|
58
|
-
throw new Error('[ScriptLoader]: You should provide the attribut "src"');
|
|
59
|
-
if (!identifier)
|
|
60
|
-
throw new Error('[ScriptLoader]: You should provide the attribut "identifier"');
|
|
61
|
-
this.src = src, this.identifier = identifier, this.once = once, this.async = async, this.defer = defer;
|
|
62
|
-
}
|
|
63
|
-
removeTag(tag) {
|
|
64
|
-
typeof tag == "string" ? document.head.querySelector(`[data-identifier="${tag}"]`)?.remove() : tag.remove();
|
|
65
|
-
}
|
|
66
|
-
load() {
|
|
67
|
-
const windowInstance = window, scriptTags = document.head.querySelectorAll(`[data-identifier="${this.identifier}"]`);
|
|
68
|
-
if (this.once && windowInstance[this.identifier] && scriptTags.length > 0)
|
|
69
|
-
return this.script = windowInstance[this.identifier], Promise.resolve(this.script);
|
|
70
|
-
if (!this.once && scriptTags.length > 0)
|
|
71
|
-
for (const tag of scriptTags)
|
|
72
|
-
this.removeTag(tag);
|
|
73
|
-
return this.injectScript();
|
|
74
|
-
}
|
|
75
|
-
injectScript() {
|
|
76
|
-
const windowInstance = window;
|
|
77
|
-
return new Promise((resolve, reject) => {
|
|
78
|
-
try {
|
|
79
|
-
const script = document.createElement("script");
|
|
80
|
-
script.src = this.src, script.async = this.async, script.defer = this.defer, script.dataset.identifier = this.identifier, script.addEventListener("error", (error) => reject(new Error(`[ScriptLoader](injectScript) ${error.message}`))), script.addEventListener("load", (success) => (this.script = success, windowInstance[this.identifier] = success, resolve(success))), document.head.append(script);
|
|
81
|
-
} catch (error) {
|
|
82
|
-
throw new Error(`[ScriptLoader](init) ${error}`);
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
export {
|
|
88
|
-
I as IdleTimeout,
|
|
89
|
-
ScriptLoader,
|
|
90
|
-
S as Swipe,
|
|
91
|
-
T as TextareaAutogrow,
|
|
92
|
-
U as UserVisibility,
|
|
93
|
-
c as camelCase,
|
|
94
|
-
c2 as capitalize,
|
|
95
|
-
c3 as checkAvailability,
|
|
96
|
-
countryCodeToUnicodeFlag,
|
|
97
|
-
d as debounce,
|
|
98
|
-
d2 as debounceCallback,
|
|
99
|
-
d3 as debounceId,
|
|
100
|
-
f as formatCurrency,
|
|
101
|
-
f2 as formatDate,
|
|
102
|
-
formatNumber,
|
|
103
|
-
g as getCountryFlagUrl,
|
|
104
|
-
i2 as isClient,
|
|
105
|
-
i as isEqual,
|
|
106
|
-
i3 as isServer,
|
|
107
|
-
i4 as isStandaloneMode,
|
|
108
|
-
n as normalizeString,
|
|
109
|
-
p as pascalCase,
|
|
110
|
-
s as sleep,
|
|
111
|
-
t2 as throttle,
|
|
112
|
-
t as throttleId,
|
|
113
|
-
truthyFilter
|
|
114
|
-
};
|
|
1
|
+
export * from "@maz-ui/utils";
|
package/dist/plugins/toast.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMountComponent } from "../composables/useMountComponent.js";
|
|
2
2
|
import { defineComponent, defineAsyncComponent, ref, computed, watch, onMounted, createBlock, openBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, withModifiers, createCommentVNode, createElementBlock, resolveDynamicComponent, toDisplayString, Fragment, renderList, unref, mergeProps, normalizeStyle, createVNode, vShow } from "vue";
|
|
3
|
-
import {
|
|
3
|
+
import { u as ur, b as at, t as tn, w as wr, d as si, E, f as mn } from "../chunks/index.CvKh762h.js";
|
|
4
4
|
import { useTimer } from "../composables/useTimer.js";
|
|
5
5
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
6
6
|
import '../assets/toast.kunueRvo.css';const _hoisted_1 = ["textContent", "innerHTML"], _hoisted_2 = {
|
|
@@ -32,13 +32,13 @@ import '../assets/toast.kunueRvo.css';const _hoisted_1 = ["textContent", "innerH
|
|
|
32
32
|
if (__props.icon)
|
|
33
33
|
switch (__props.type) {
|
|
34
34
|
case "destructive":
|
|
35
|
-
return
|
|
35
|
+
return wr;
|
|
36
36
|
case "info":
|
|
37
|
-
return
|
|
37
|
+
return tn;
|
|
38
38
|
case "success":
|
|
39
|
-
return
|
|
39
|
+
return at;
|
|
40
40
|
case "warning":
|
|
41
|
-
return
|
|
41
|
+
return ur;
|
|
42
42
|
default:
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
@@ -116,7 +116,7 @@ import '../assets/toast.kunueRvo.css';const _hoisted_1 = ["textContent", "innerH
|
|
|
116
116
|
}
|
|
117
117
|
function getButtonRightIcon(button) {
|
|
118
118
|
if (!(!button.to && !button.href))
|
|
119
|
-
return button.target === "_blank" ?
|
|
119
|
+
return button.target === "_blank" ? E : mn;
|
|
120
120
|
}
|
|
121
121
|
return __expose({
|
|
122
122
|
/**
|
|
@@ -182,7 +182,7 @@ import '../assets/toast.kunueRvo.css';const _hoisted_1 = ["textContent", "innerH
|
|
|
182
182
|
class: "m-toast__close",
|
|
183
183
|
onClick: _cache[5] || (_cache[5] = withModifiers(($event) => click($event), ["stop"]))
|
|
184
184
|
}, [
|
|
185
|
-
createVNode(unref(
|
|
185
|
+
createVNode(unref(si), { class: "m-toast__close-icon" })
|
|
186
186
|
])
|
|
187
187
|
], 2), [
|
|
188
188
|
[vShow, isActive.value]
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as capitalize } from "../chunks/capitalize.BF6CDS_4.js";
|
|
2
|
+
function camelCase(str) {
|
|
3
|
+
return str.replaceAll(/-(\w)/g, (_, c) => c ? c.toUpperCase() : "");
|
|
4
|
+
}
|
|
5
|
+
function pascalCase(str) {
|
|
6
|
+
return capitalize(camelCase(str));
|
|
7
|
+
}
|
|
2
8
|
const a = [
|
|
3
9
|
"MazAcademicCap",
|
|
4
10
|
"MazAdjustmentsHorizontal",
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '@maz-ui/utils
|
|
1
|
+
export * from '@maz-ui/utils';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "maz-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.5",
|
|
5
5
|
"description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
|
|
6
6
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -183,7 +183,6 @@
|
|
|
183
183
|
},
|
|
184
184
|
"dependencies": {
|
|
185
185
|
"@maz-ui/cli": "4.0.0-beta.4",
|
|
186
|
-
"@maz-ui/icons": "4.0.0-beta.4",
|
|
187
186
|
"@maz-ui/themes": "4.0.0-beta.4",
|
|
188
187
|
"@maz-ui/translations": "4.0.0-beta.4",
|
|
189
188
|
"@maz-ui/utils": "4.0.0-beta.4",
|
|
@@ -237,5 +236,5 @@
|
|
|
237
236
|
"*.{js,ts,vue,mjs,mts,cjs,md}": "cross-env NODE_ENV=production eslint --fix",
|
|
238
237
|
"*.{vue,css,scss,postcss,pcss}": "stylelint --fix --allow-empty-input"
|
|
239
238
|
},
|
|
240
|
-
"gitHead": "
|
|
239
|
+
"gitHead": "79d4bf8a5170ae34773a541bb6cb141b1ca0aa04"
|
|
241
240
|
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { d as debounce } from "./debounce.Brzkn9pm.js";
|
|
2
|
-
class TextareaAutogrow {
|
|
3
|
-
element;
|
|
4
|
-
constructor(element) {
|
|
5
|
-
this.element = element, this.onFocus = this.onFocus.bind(this), this.autogrow = this.autogrow.bind(this), this.onResize = debounce(this.onResize.bind(this), 200), this.connect();
|
|
6
|
-
}
|
|
7
|
-
connect() {
|
|
8
|
-
this.element.addEventListener("focus", this.onFocus), this.element.style.resize = "none", this.element.style.boxSizing = "border-box";
|
|
9
|
-
}
|
|
10
|
-
disconnect() {
|
|
11
|
-
window.removeEventListener("resize", this.onResize), this.element.removeEventListener("input", this.autogrow);
|
|
12
|
-
}
|
|
13
|
-
onFocus() {
|
|
14
|
-
this.autogrow(), this.element.addEventListener("input", this.autogrow), window.addEventListener("resize", this.onResize), this.element.removeEventListener("focus", this.onFocus);
|
|
15
|
-
}
|
|
16
|
-
onResize() {
|
|
17
|
-
this.autogrow();
|
|
18
|
-
}
|
|
19
|
-
autogrow() {
|
|
20
|
-
this.element.style.height = "auto", this.element.style.overflow = "hidden", this.element.style.height = `${this.element.scrollHeight}px`;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
TextareaAutogrow as T
|
|
25
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
const DEFAULT_OPTIONS = {
|
|
2
|
-
style: "currency",
|
|
3
|
-
minimumFractionDigits: 2,
|
|
4
|
-
round: !1
|
|
5
|
-
};
|
|
6
|
-
function getFormattedCurrency(number, locale, options) {
|
|
7
|
-
let numberToFormat = +number;
|
|
8
|
-
return options.round && (numberToFormat = Math.floor(numberToFormat), options.minimumFractionDigits = 0), new Intl.NumberFormat(locale, options).format(numberToFormat);
|
|
9
|
-
}
|
|
10
|
-
function validRequiredAttributes(number, locale, options) {
|
|
11
|
-
if (number === void 0)
|
|
12
|
-
throw new TypeError("[maz-ui](FilterCurrency) The `number` attribute is required.");
|
|
13
|
-
if (locale === void 0)
|
|
14
|
-
throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute is required.");
|
|
15
|
-
if (typeof locale != "string")
|
|
16
|
-
throw new TypeError("[maz-ui](FilterCurrency) The `locale` attribute must be a string.");
|
|
17
|
-
if (options.currency === void 0)
|
|
18
|
-
throw new TypeError("[maz-ui](FilterCurrency) The `options.currency` attribute is required.");
|
|
19
|
-
}
|
|
20
|
-
function formatCurrency(number, locale, options) {
|
|
21
|
-
const options_ = {
|
|
22
|
-
...DEFAULT_OPTIONS,
|
|
23
|
-
...options
|
|
24
|
-
};
|
|
25
|
-
validRequiredAttributes(number, locale, options_);
|
|
26
|
-
try {
|
|
27
|
-
return getFormattedCurrency(number, locale, options_);
|
|
28
|
-
} catch (error) {
|
|
29
|
-
throw new Error(`[maz-ui](FilterCurrency) ${error}`);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
formatCurrency as f
|
|
34
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const DEFAULT_OPTIONS = {
|
|
2
|
-
month: "short",
|
|
3
|
-
day: "numeric",
|
|
4
|
-
year: "numeric"
|
|
5
|
-
};
|
|
6
|
-
function formatDate(date, locale, options) {
|
|
7
|
-
if (locale === void 0)
|
|
8
|
-
throw new TypeError("[maz-ui](FilterDate) The `locale` attribute is required.");
|
|
9
|
-
if (typeof locale != "string")
|
|
10
|
-
throw new TypeError("[maz-ui](FilterDate) The `locale` attribute must be a string.");
|
|
11
|
-
const opts = options ?? DEFAULT_OPTIONS;
|
|
12
|
-
try {
|
|
13
|
-
const usedDate = date instanceof Date ? date : new Date(date);
|
|
14
|
-
return new Intl.DateTimeFormat(locale, opts).format(usedDate);
|
|
15
|
-
} catch (error) {
|
|
16
|
-
throw new Error(`[maz-ui](FilterDate) ${error}`);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
formatDate as f
|
|
21
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const _supportedCodes = ["ad", "ae", "af", "ag", "ai", "al", "am", "ao", "aq", "ar", "as", "at", "au", "aw", "ax", "az", "ba", "bb", "bd", "be", "bf", "bg", "bh", "bi", "bj", "bl", "bm", "bn", "bo", "bq", "br", "bs", "bt", "bv", "bw", "by", "bz", "ca", "cc", "cd", "cf", "cg", "ch", "ci", "ck", "cl", "cm", "cn", "co", "cr", "cu", "cv", "cw", "cx", "cy", "cz", "de", "dj", "dk", "dm", "do", "dz", "ec", "ee", "eg", "eh", "er", "es", "et", "eu", "fi", "fj", "fk", "fm", "fo", "fr", "ga", "gb", "gb-eng", "gb-nir", "gb-sct", "gb-wls", "gd", "ge", "gf", "gg", "gh", "gi", "gl", "gm", "gn", "gp", "gq", "gr", "gs", "gt", "gu", "gw", "gy", "hk", "hm", "hn", "hr", "ht", "hu", "id", "ie", "il", "im", "in", "io", "iq", "ir", "is", "it", "je", "jm", "jo", "jp", "ke", "kg", "kh", "ki", "km", "kn", "kp", "kr", "kw", "ky", "kz", "la", "lb", "lc", "li", "lk", "lr", "ls", "lt", "lu", "lv", "ly", "ma", "mc", "md", "me", "mf", "mg", "mh", "mk", "ml", "mm", "mn", "mo", "mp", "mq", "mr", "ms", "mt", "mu", "mv", "mw", "mx", "my", "mz", "na", "nc", "ne", "nf", "ng", "ni", "nl", "no", "np", "nr", "nu", "nz", "om", "pa", "pe", "pf", "pg", "ph", "pk", "pl", "pm", "pn", "pr", "ps", "pt", "pw", "py", "qa", "re", "ro", "rs", "ru", "rw", "sa", "sb", "sc", "sd", "se", "sg", "sh", "si", "sj", "sk", "sl", "sm", "sn", "so", "sr", "ss", "st", "sv", "sx", "sy", "sz", "tc", "td", "tf", "tg", "th", "tj", "tk", "tl", "tm", "tn", "to", "tr", "tt", "tv", "tw", "tz", "ua", "ug", "um", "un", "us", "us-ak", "us-al", "us-ar", "us-az", "us-ca", "us-co", "us-ct", "us-de", "us-fl", "us-ga", "us-hi", "us-ia", "us-id", "us-il", "us-in", "us-ks", "us-ky", "us-la", "us-ma", "us-md", "us-me", "us-mi", "us-mn", "us-mo", "us-ms", "us-mt", "us-nc", "us-nd", "us-ne", "us-nh", "us-nj", "us-nm", "us-nv", "us-ny", "us-oh", "us-ok", "us-or", "us-pa", "us-ri", "us-sc", "us-sd", "us-tn", "us-tx", "us-ut", "us-va", "us-vt", "us-wa", "us-wi", "us-wv", "us-wy", "uy", "uz", "va", "vc", "ve", "vg", "vi", "vn", "vu", "wf", "ws", "xk", "ye", "yt", "za", "zm", "zw"];
|
|
2
|
-
function getCountryFlagUrl(countryIsoCode, size) {
|
|
3
|
-
const code = countryIsoCode.toLowerCase();
|
|
4
|
-
if (_supportedCodes.includes(code))
|
|
5
|
-
return size ? `https://flagcdn.com/${size}/${code}.png` : `https://flagcdn.com/${code}.svg`;
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
getCountryFlagUrl as g
|
|
9
|
-
};
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { i as isClient } from "./isClient.WI4oSt66.js";
|
|
2
|
-
class IdleTimeout {
|
|
3
|
-
constructor(callback, options) {
|
|
4
|
-
this.callback = callback, this.options = {
|
|
5
|
-
...this.defaultOptions,
|
|
6
|
-
...options
|
|
7
|
-
}, isClient() && this.start();
|
|
8
|
-
}
|
|
9
|
-
defaultOptions = {
|
|
10
|
-
element: void 0,
|
|
11
|
-
timeout: 60 * 1e3 * 5,
|
|
12
|
-
// 5 minutes
|
|
13
|
-
once: !1,
|
|
14
|
-
immediate: !0
|
|
15
|
-
};
|
|
16
|
-
options;
|
|
17
|
-
timeoutHandler;
|
|
18
|
-
isIdle = !1;
|
|
19
|
-
isDestroy = !1;
|
|
20
|
-
startTime = 0;
|
|
21
|
-
remainingTime = 0;
|
|
22
|
-
lastClientX = -1;
|
|
23
|
-
lastClientY = -1;
|
|
24
|
-
eventNames = [
|
|
25
|
-
"DOMMouseScroll",
|
|
26
|
-
"mousedown",
|
|
27
|
-
"mousemove",
|
|
28
|
-
"mousewheel",
|
|
29
|
-
"MSPointerDown",
|
|
30
|
-
"MSPointerMove",
|
|
31
|
-
"keydown",
|
|
32
|
-
"touchmove",
|
|
33
|
-
"touchstart",
|
|
34
|
-
"wheel",
|
|
35
|
-
"click"
|
|
36
|
-
];
|
|
37
|
-
get element() {
|
|
38
|
-
return this.options.element ?? document.body;
|
|
39
|
-
}
|
|
40
|
-
start() {
|
|
41
|
-
if (!isClient()) {
|
|
42
|
-
console.warn("[IdleTimeout](start) you should run this method on client side");
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
for (const eventName of this.eventNames)
|
|
46
|
-
this.element.addEventListener(eventName, this.handleEvent);
|
|
47
|
-
this.resetTimeout(), this.options.immediate && this.callback({ isIdle: !1, instance: this });
|
|
48
|
-
}
|
|
49
|
-
pause() {
|
|
50
|
-
const remainingTime = this.startTime + this.options.timeout - Date.now();
|
|
51
|
-
remainingTime <= 0 || (this.remainingTime = remainingTime, this.timeoutHandler && (clearTimeout(this.timeoutHandler), this.timeoutHandler = void 0));
|
|
52
|
-
}
|
|
53
|
-
resume() {
|
|
54
|
-
this.remainingTime <= 0 || (this.resetTimeout(), this.callback({ isIdle: this.isIdle, instance: this }), this.remainingTime = 0);
|
|
55
|
-
}
|
|
56
|
-
reset() {
|
|
57
|
-
this.isDestroy = !1, this.isIdle = !1, this.remainingTime = 0, this.resetTimeout(), this.callback({ isIdle: this.isIdle, instance: this });
|
|
58
|
-
}
|
|
59
|
-
destroy() {
|
|
60
|
-
if (!isClient()) {
|
|
61
|
-
console.warn("[IdleTimeout](destroy) you should run this method on client side");
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
this.isDestroy = !0;
|
|
65
|
-
for (const eventName of this.eventNames)
|
|
66
|
-
this.element.removeEventListener(eventName, this.handleEvent);
|
|
67
|
-
this.timeoutHandler && clearTimeout(this.timeoutHandler);
|
|
68
|
-
}
|
|
69
|
-
resetTimeout() {
|
|
70
|
-
this.isIdle = !1, this.timeoutHandler && (clearTimeout(this.timeoutHandler), this.timeoutHandler = void 0), this.timeoutHandler = setTimeout(
|
|
71
|
-
this.handleTimeout.bind(this),
|
|
72
|
-
this.remainingTime || this.options.timeout
|
|
73
|
-
), this.startTime = Date.now();
|
|
74
|
-
}
|
|
75
|
-
handleEvent = (event) => {
|
|
76
|
-
try {
|
|
77
|
-
if (this.remainingTime > 0)
|
|
78
|
-
return;
|
|
79
|
-
if (event.type === "mousemove") {
|
|
80
|
-
const { clientX, clientY } = event;
|
|
81
|
-
if (clientX === void 0 && clientY === void 0 || clientX === this.lastClientX && clientY === this.lastClientY)
|
|
82
|
-
return;
|
|
83
|
-
this.lastClientX = clientX, this.lastClientY = clientY;
|
|
84
|
-
}
|
|
85
|
-
this.resetTimeout(), this.callback({ isIdle: this.isIdle, eventType: event.type, instance: this });
|
|
86
|
-
} catch (error) {
|
|
87
|
-
throw new Error(`[IdleTimeout](handleEvent) ${error}`);
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
handleTimeout() {
|
|
91
|
-
this.isIdle = !0, this.callback({ isIdle: this.isIdle, instance: this }), this.options.once && this.destroy();
|
|
92
|
-
}
|
|
93
|
-
get destroyed() {
|
|
94
|
-
return this.isDestroy;
|
|
95
|
-
}
|
|
96
|
-
get timeout() {
|
|
97
|
-
return this.options.timeout;
|
|
98
|
-
}
|
|
99
|
-
set timeout(value) {
|
|
100
|
-
this.options.timeout = value;
|
|
101
|
-
}
|
|
102
|
-
get idle() {
|
|
103
|
-
return this.isIdle;
|
|
104
|
-
}
|
|
105
|
-
set idle(value) {
|
|
106
|
-
value ? this.handleTimeout() : this.reset(), this.callback({ isIdle: this.isIdle, instance: this });
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
export {
|
|
110
|
-
IdleTimeout as I
|
|
111
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { i as isClient } from "./isClient.WI4oSt66.js";
|
|
2
|
-
function isStandaloneMode() {
|
|
3
|
-
if (!isClient())
|
|
4
|
-
return !1;
|
|
5
|
-
const nav = navigator, isStandalone = window.matchMedia("(display-mode: standalone)").matches;
|
|
6
|
-
return nav.standalone || isStandalone;
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
isStandaloneMode as i
|
|
10
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { c as capitalize } from "./capitalize.BF6CDS_4.js";
|
|
2
|
-
function camelCase(str) {
|
|
3
|
-
return str.replaceAll(/-(\w)/g, (_, c) => c ? c.toUpperCase() : "");
|
|
4
|
-
}
|
|
5
|
-
function pascalCase(str) {
|
|
6
|
-
return capitalize(camelCase(str));
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
camelCase as c,
|
|
10
|
-
pascalCase as p
|
|
11
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
const defaultOptions = {
|
|
2
|
-
preventDefaultOnTouchMove: !1,
|
|
3
|
-
preventDefaultOnMouseWheel: !1,
|
|
4
|
-
threshold: 50,
|
|
5
|
-
immediate: !1,
|
|
6
|
-
triggerOnEnd: !1
|
|
7
|
-
};
|
|
8
|
-
class Swipe {
|
|
9
|
-
constructor(inputOption) {
|
|
10
|
-
this.inputOption = inputOption, this.options = { ...defaultOptions, ...inputOption }, this.onToucheStartCallback = this.toucheStartHandler.bind(this), this.onToucheMoveCallback = this.handleTouchMove.bind(this), this.onToucheEndCallback = this.handleTouchEnd.bind(this), this.onMouseWheelCallback = this.handleMouseWheel.bind(this), this.start = this.startListening.bind(this), this.stop = this.stopListening.bind(this), this.options.element && this.setElement(this.options.element), this.options.immediate && this.start();
|
|
11
|
-
}
|
|
12
|
-
element;
|
|
13
|
-
xStart;
|
|
14
|
-
yStart;
|
|
15
|
-
xEnd;
|
|
16
|
-
yEnd;
|
|
17
|
-
xDiff;
|
|
18
|
-
yDiff;
|
|
19
|
-
onToucheStartCallback;
|
|
20
|
-
onToucheMoveCallback;
|
|
21
|
-
onToucheEndCallback;
|
|
22
|
-
onMouseWheelCallback;
|
|
23
|
-
start;
|
|
24
|
-
stop;
|
|
25
|
-
options;
|
|
26
|
-
startListening() {
|
|
27
|
-
this.setElement(this.options.element), this.element?.addEventListener("touchstart", this.onToucheStartCallback, { passive: !0 }), this.element?.addEventListener("touchmove", this.onToucheMoveCallback, { passive: !0 }), this.options.triggerOnEnd && this.element?.addEventListener("touchend", this.onToucheEndCallback, { passive: !0 }), this.options.preventDefaultOnMouseWheel && this.element?.addEventListener("mousewheel", this.onMouseWheelCallback, { passive: !1 });
|
|
28
|
-
}
|
|
29
|
-
stopListening() {
|
|
30
|
-
this.element?.removeEventListener("touchstart", this.onToucheStartCallback), this.element?.removeEventListener("touchmove", this.onToucheMoveCallback), this.element?.removeEventListener("touchend", this.onToucheEndCallback), this.options.preventDefaultOnMouseWheel && this.element?.removeEventListener("mousewheel", this.onMouseWheelCallback);
|
|
31
|
-
}
|
|
32
|
-
setElement(element) {
|
|
33
|
-
if (!element) {
|
|
34
|
-
console.error(
|
|
35
|
-
"[maz-ui][SwipeHandler](setElement) Element should be provided. Its can be a string selector or an HTMLElement"
|
|
36
|
-
);
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
if (typeof element == "string") {
|
|
40
|
-
const foundElement = document.querySelector(element);
|
|
41
|
-
if (!(foundElement instanceof HTMLElement)) {
|
|
42
|
-
console.error("[maz-ui][SwipeHandler](setElement) String selector for element is not found");
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
this.element = foundElement;
|
|
46
|
-
} else
|
|
47
|
-
this.element = element;
|
|
48
|
-
}
|
|
49
|
-
handleMouseWheel(event) {
|
|
50
|
-
event.preventDefault();
|
|
51
|
-
}
|
|
52
|
-
toucheStartHandler(event) {
|
|
53
|
-
this.xStart = event.touches[0].clientX, this.yStart = event.touches[0].clientY, this.emitValuesChanged();
|
|
54
|
-
}
|
|
55
|
-
emitValuesChanged() {
|
|
56
|
-
this.options.onValuesChanged?.({
|
|
57
|
-
xStart: this.xStart,
|
|
58
|
-
yStart: this.yStart,
|
|
59
|
-
xEnd: this.xEnd,
|
|
60
|
-
yEnd: this.yEnd,
|
|
61
|
-
xDiff: this.xDiff,
|
|
62
|
-
yDiff: this.yDiff
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
handleTouchMove(event) {
|
|
66
|
-
this.options.preventDefaultOnTouchMove && event.cancelable && event.preventDefault(), this.xEnd = event.touches[0].clientX, this.yEnd = event.touches[0].clientY, !(!this.xStart || !this.yStart) && (this.xDiff = this.xStart - this.xEnd, this.yDiff = this.yStart - this.yEnd, this.emitValuesChanged(), this.options.triggerOnEnd || this.runCallbacks(event));
|
|
67
|
-
}
|
|
68
|
-
handleTouchEnd(event) {
|
|
69
|
-
this.runCallbacks(event), this.emitValuesChanged();
|
|
70
|
-
}
|
|
71
|
-
runCallbacks(event) {
|
|
72
|
-
typeof this.xDiff != "number" || typeof this.yDiff != "number" || Math.abs(this.xDiff) < this.options.threshold && Math.abs(this.yDiff) < this.options.threshold || (Math.abs(this.xDiff) > Math.abs(this.yDiff) ? this.xDiff > 0 ? this.options.onLeft?.(event) : this.options.onRight?.(event) : this.yDiff > 0 ? this.options.onUp?.(event) : this.options.onDown?.(event), this.resetValues());
|
|
73
|
-
}
|
|
74
|
-
resetValues() {
|
|
75
|
-
this.xStart = void 0, this.yStart = void 0, this.xEnd = void 0, this.yEnd = void 0, this.xDiff = void 0, this.yDiff = void 0, this.emitValuesChanged();
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
export {
|
|
79
|
-
Swipe as S
|
|
80
|
-
};
|