maz-ui 4.0.0-beta.5 → 4.0.0-beta.6
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/assets/MazAccordion.DUQCf8vy.css +1 -0
- package/dist/assets/{MazBtn.BnRxVlqS.css → MazBtn.FsG6p6NF.css} +1 -1
- package/dist/assets/MazCheckbox.CFqw9ybT.css +1 -0
- package/dist/assets/MazDatePicker.8GyrtM-j.css +1 -0
- package/dist/assets/MazInput.WPopv89k.css +1 -0
- package/dist/assets/MazPickerMonthSwitcher.CszcpCcY.css +1 -0
- package/dist/assets/{MazPickerYearSwitcher.Dl30Dwor.css → MazPickerYearSwitcher.Cn-nS-Vv.css} +1 -1
- package/dist/assets/MazPopover.D-WwUjU_.css +1 -0
- package/dist/assets/MazRadio.XGYnbTuB.css +1 -0
- package/dist/assets/MazSelect.DEBsk61Q.css +1 -0
- package/dist/assets/{MazStepper.DYMde9uq.css → MazStepper.DtWZmm-f.css} +1 -1
- package/dist/assets/MazSwitch.Bxmh2iFj.css +1 -0
- package/dist/assets/{MazTable.B1tkeUfE.css → MazTable.DMlQdImb.css} +1 -1
- package/dist/assets/{toast.kunueRvo.css → toast.CC2VQab8.css} +1 -1
- package/dist/chunks/{MazDatePicker.Bgd0WwZk.js → MazDatePicker.EVP68BQf.js} +8 -28
- package/dist/chunks/{MazDropdown.vue_vue_type_style_index_0_lang.WRjG5bff.js → MazDropdown.vue_vue_type_style_index_0_lang.DjPJ9-gt.js} +3 -3
- package/dist/chunks/{MazInputNumber.vue_vue_type_style_index_0_lang.BUOLoXtV.js → MazInputNumber.vue_vue_type_style_index_0_lang.B6DYpHfi.js} +3 -3
- package/dist/chunks/{MazInputPrice.vue_vue_type_script_setup_true_lang.CT1Y2-_T.js → MazInputPrice.vue_vue_type_script_setup_true_lang.BA6TDX-T.js} +2 -2
- package/dist/chunks/{MazPickerCalendar.BkmubImp.js → MazPickerCalendar.CzPlAVdQ.js} +1 -1
- package/dist/chunks/{MazPickerCalendarMonth.Df2qar5v.js → MazPickerCalendarMonth.gZBcslia.js} +1 -1
- package/dist/chunks/{MazPickerCalendarSwitcher.DyrEWPLk.js → MazPickerCalendarSwitcher.CzAkb2yj.js} +4 -4
- package/dist/chunks/{MazPickerContainer.B4fyKYAE.js → MazPickerContainer.BodulCQp.js} +1 -1
- package/dist/chunks/{MazPickerHeader.DoXGZZFX.js → MazPickerHeader.ns_pHhiy.js} +1 -1
- package/dist/chunks/{MazPickerMonthSwitcher.CXuVHGVq.js → MazPickerMonthSwitcher.BuZuUauW.js} +5 -5
- package/dist/chunks/{MazPickerTime.CueS5GPb.js → MazPickerTime.DMVpW3Ha.js} +1 -1
- package/dist/chunks/{MazPickerYearSwitcher.DNdhvfKw.js → MazPickerYearSwitcher.METGgjem.js} +8 -26
- package/dist/chunks/{MazSwitch.vue_vue_type_style_index_0_lang.DQE0vFhe.js → MazSwitch.vue_vue_type_style_index_0_lang.CU43Y1ky.js} +1 -1
- package/dist/chunks/{MazTable.vue_vue_type_script_setup_true_lang.By5YbgRn.js → MazTable.vue_vue_type_script_setup_true_lang.CK2bk5tI.js} +9 -9
- package/dist/chunks/{utils.D9NiqfdV.js → dom-events.CvkK8Xn2.js} +161 -114
- package/dist/chunks/{fullscreen-img.directive.ClMlhEtN.js → fullscreen-img.directive.CyOHexcO.js} +4 -4
- package/dist/components/MazAccordion.js +4 -4
- package/dist/components/MazAvatar.js +2 -2
- package/dist/components/MazBottomSheet.js +2 -2
- package/dist/components/MazBtn.js +2 -3
- package/dist/components/MazCard.js +2 -2
- package/dist/components/MazCarousel.js +3 -3
- package/dist/components/MazCheckbox.js +12 -14
- package/dist/components/MazChecklist.js +3 -3
- 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 +12 -13
- 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 +162 -76
- package/dist/components/MazRadio.js +8 -16
- package/dist/components/MazRadioButtons.js +2 -2
- package/dist/components/MazReadingProgressBar.js +9 -2
- package/dist/components/MazSelect.js +21 -13
- package/dist/components/MazStepper.js +4 -4
- package/dist/components/MazSwitch.js +1 -1
- package/dist/components/MazTable.js +3 -3
- package/dist/components/MazTableCell.js +1 -1
- package/dist/components/MazTableRow.js +1 -1
- package/dist/components/MazTableTitle.js +1 -1
- package/dist/components/index.js +5 -5
- package/dist/composables/useDisplayNames.js +7 -1
- package/dist/composables/useFormField.js +15 -18
- package/dist/composables/useFormValidator.js +41 -28
- package/dist/css/main.css +1 -1
- package/dist/directives/index.js +1 -1
- package/dist/directives/vFullscreenImg.js +1 -1
- package/dist/directives/vTooltip.js +96 -59
- package/dist/plugins/toast.js +15 -18
- package/dist/resolvers/MazModulesResolver.js +3 -0
- package/dist/tailwindcss/tailwind.config.js +5 -2
- package/dist/tailwindcss/variables/design-tokens.js +3 -0
- package/dist/types/components/MazAccordion.vue.d.ts +15 -2
- package/dist/types/components/MazCheckbox.vue.d.ts +0 -6
- package/dist/types/components/MazDatePicker.vue.d.ts +4 -12
- package/dist/types/components/MazInputNumber.vue.d.ts +1 -1
- package/dist/types/components/MazPopover.vue.d.ts +7 -4
- package/dist/types/components/MazStepper.vue.d.ts +13 -2
- package/dist/types/components/MazTable.vue.d.ts +63 -2
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/composables/index.d.ts +1 -1
- package/dist/types/composables/useDisplayNames.d.ts +3 -3
- package/dist/types/composables/useFormField.d.ts +3 -41
- package/dist/types/composables/useFormValidator/dom-events.d.ts +19 -0
- package/dist/types/composables/useFormValidator/state-management.d.ts +54 -0
- package/dist/types/composables/useFormValidator/types.d.ts +9 -20
- package/dist/types/composables/useFormValidator/validation.d.ts +43 -0
- package/dist/types/composables/useFormValidator.d.ts +16 -10
- package/dist/types/directives/vTooltip.d.ts +2 -2
- package/dist/types/tailwindcss/tailwind.config.d.ts +5 -0
- package/dist/types/tailwindcss/variables/design-tokens.d.ts +3 -0
- package/package.json +8 -8
- package/dist/assets/MazAccordion.esK3rR4p.css +0 -1
- package/dist/assets/MazCheckbox.BFo5eYS6.css +0 -1
- package/dist/assets/MazDatePicker.V5JwKPrQ.css +0 -1
- package/dist/assets/MazInput.DW2KOJHY.css +0 -1
- package/dist/assets/MazPickerMonthSwitcher.168v7Hs1.css +0 -1
- package/dist/assets/MazPopover.COR-tym7.css +0 -1
- package/dist/assets/MazRadio.DKMFWwy_.css +0 -1
- package/dist/assets/MazSelect.DZZpDg8z.css +0 -1
- package/dist/assets/MazSwitch.Z1ZMm7tx.css +0 -1
- package/dist/chunks/academic-cap.BjcfXmGu.CCSXStjO.js +0 -24
- package/dist/chunks/adjustments-horizontal.CT-QeIwW.CRspwA1D.js +0 -24
- package/dist/chunks/adjustments-vertical.BHXET8iZ.DXKjofVz.js +0 -24
- package/dist/chunks/archive-box-arrow-down.DY2jR2sP.D5q20o-C.js +0 -24
- package/dist/chunks/archive-box-x-mark.DP7eLVaB.D9lYjTGp.js +0 -24
- package/dist/chunks/archive-box.CVwekUWp.CAar5Lvs.js +0 -24
- package/dist/chunks/arrow-down-circle.DL2lvwk5.CGlJ9wP0.js +0 -24
- package/dist/chunks/arrow-down-left.C3nEVXaG.DsaJ0TwT.js +0 -24
- package/dist/chunks/arrow-down-on-square-stack.BKDRxXkf.DOjZT9_M.js +0 -24
- package/dist/chunks/arrow-down-on-square.DAMoXY4b.Brdd_BB2.js +0 -24
- package/dist/chunks/arrow-down-right.hs3isRLs.9WxtifNr.js +0 -24
- package/dist/chunks/arrow-down-tray.w1Emiyu3.yRzoHE0I.js +0 -24
- package/dist/chunks/arrow-down.DEawGjfB.CguAHec6.js +0 -24
- package/dist/chunks/arrow-left-circle.BlKwmMyr.BF9vGCFO.js +0 -24
- package/dist/chunks/arrow-left-end-on-rectangle.BwEAWEQp.D7I0qUqw.js +0 -24
- package/dist/chunks/arrow-left-on-rectangle.DabmkYhe.CmIlQ7wf.js +0 -24
- package/dist/chunks/arrow-left-start-on-rectangle.BaoR6nlq.BtEBN2A6.js +0 -24
- package/dist/chunks/arrow-left.D_6VKA-e.CmQE04VA.js +0 -24
- package/dist/chunks/arrow-long-down.5N2s8Cpw.B9JKDT7M.js +0 -24
- package/dist/chunks/arrow-long-left.B7AX0id9.CywMhkhH.js +0 -24
- package/dist/chunks/arrow-long-right.CKMPfwrE.D3pLqdNX.js +0 -24
- package/dist/chunks/arrow-long-up.CT8DU9jc.CIOIdvGB.js +0 -24
- package/dist/chunks/arrow-path-rounded-square.65lulTVg.CQh60_RA.js +0 -24
- package/dist/chunks/arrow-path.CJ9Wswu_.BlR1BJ4i.js +0 -24
- package/dist/chunks/arrow-right-circle.DDZurzmk.DPzHFj8G.js +0 -24
- package/dist/chunks/arrow-right-end-on-rectangle.jNNaV464.DfFRTcEu.js +0 -24
- package/dist/chunks/arrow-right-on-rectangle.BQLAkJlS.D4JfF9Ov.js +0 -24
- package/dist/chunks/arrow-right-start-on-rectangle.DgFTLubq.3qbrqXCj.js +0 -24
- package/dist/chunks/arrow-right.h5GY-bzG.CKBQ5VHM.js +0 -24
- package/dist/chunks/arrow-small-down.3SdgC1Fw.vODsecnG.js +0 -24
- package/dist/chunks/arrow-small-left.Dbw5rTas.C-bYHDKK.js +0 -24
- package/dist/chunks/arrow-small-right.DAmxBfl5.n7vH-w9t.js +0 -24
- package/dist/chunks/arrow-small-up.WQQD-lUO.FvbI2uG_.js +0 -24
- package/dist/chunks/arrow-top-right-on-square.DJeWWj5d.DWV1wrwq.js +0 -24
- package/dist/chunks/arrow-trending-down.CSIGp7a0.DLp5ZExP.js +0 -24
- package/dist/chunks/arrow-trending-up.BGar-3Mt.Cx6Pgj8o.js +0 -24
- package/dist/chunks/arrow-turn-down-left.C4BtwCb-.C7vbo0bi.js +0 -24
- package/dist/chunks/arrow-turn-down-right.Cxu2KBHI.J8piVbUW.js +0 -24
- package/dist/chunks/arrow-turn-left-down.BfjbBrut.D-KMuKDz.js +0 -24
- package/dist/chunks/arrow-turn-left-up.Bsm0aGLO.WVDAyWpM.js +0 -24
- package/dist/chunks/arrow-turn-right-down.DH2Wh74o.dNtSWH1C.js +0 -24
- package/dist/chunks/arrow-turn-right-up.ou0Uaevi.Buzu0SB-.js +0 -24
- package/dist/chunks/arrow-turn-up-left.Bg5YgZsj.Bkn43xjW.js +0 -24
- package/dist/chunks/arrow-turn-up-right.mBRM1THn.BNiuRqzk.js +0 -24
- package/dist/chunks/arrow-up-circle.Bzu19hQF.aerjnsXO.js +0 -24
- package/dist/chunks/arrow-up-left.IRrqyawV.CYNpIPVM.js +0 -24
- package/dist/chunks/arrow-up-on-square-stack.C1q8upHF.BtGNYi9R.js +0 -24
- package/dist/chunks/arrow-up-on-square.Zzd3wPoG.DSV_2koo.js +0 -24
- package/dist/chunks/arrow-up-right.BbJO1c1E.CgNQXpr2.js +0 -24
- package/dist/chunks/arrow-up-tray.BYRIGMnv.DVLg9Kkw.js +0 -24
- package/dist/chunks/arrow-up.DlpZOcZ-.Dc_qfm_w.js +0 -24
- package/dist/chunks/arrow-uturn-down.R4GNIFWx.1xJeI9TW.js +0 -24
- package/dist/chunks/arrow-uturn-left.C1uMohdz.DQroNRfS.js +0 -24
- package/dist/chunks/arrow-uturn-right.OoQi1rgb.D4ddYi69.js +0 -24
- package/dist/chunks/arrow-uturn-up.CA4h-qqY.CRk_dwWh.js +0 -24
- package/dist/chunks/arrows-pointing-in.BxJHq5jK.GkaFX_uo.js +0 -24
- package/dist/chunks/arrows-pointing-out.DSyAjelZ.DBsKw4zk.js +0 -24
- package/dist/chunks/arrows-right-left.CDFOwlcC.QpbG2nK3.js +0 -24
- package/dist/chunks/arrows-up-down.CzfSf__L.DQ5gcMh8.js +0 -24
- package/dist/chunks/at-symbol.DaUFyuwg.FAKonxFg.js +0 -24
- package/dist/chunks/backspace.Cu9cbNxd.DcCOHSU3.js +0 -24
- package/dist/chunks/backward.B68JN4JS.CqwNvpdK.js +0 -24
- package/dist/chunks/banknotes.Dz4gb6DH.Bc_vmzxh.js +0 -24
- package/dist/chunks/bars-2.C0E0O7Qs.BkkB9qGT.js +0 -24
- package/dist/chunks/bars-3-bottom-left.DKFMX51P.C0SPJDh6.js +0 -24
- package/dist/chunks/bars-3-bottom-right.Ct1xrw2s.KKvQgup3.js +0 -24
- package/dist/chunks/bars-3-center-left.DjUpkdr4.DbP3YQA5.js +0 -24
- package/dist/chunks/bars-3.B-K8M_78.Cf4kHUcq.js +0 -24
- package/dist/chunks/bars-4.BEt3xG4t.CUkKbYOi.js +0 -24
- package/dist/chunks/bars-arrow-down.CfQGLJeK.cH_4-4i2.js +0 -24
- package/dist/chunks/bars-arrow-up.CNsLQ8yw.Cwfjtvt4.js +0 -24
- package/dist/chunks/battery-0.C_-hFpYX.BSF335Bw.js +0 -24
- package/dist/chunks/battery-100.B69VsGq_.6MJf6W8Q.js +0 -24
- package/dist/chunks/battery-50.1CCBNwk2.xCj7wvTy.js +0 -24
- package/dist/chunks/beaker.DFKLDGeW.21Nm6WlZ.js +0 -24
- package/dist/chunks/bell-alert.BbDqk2az.D3ABDQ-w.js +0 -24
- package/dist/chunks/bell-slash.C3bKvJAV.n68SmjIt.js +0 -24
- package/dist/chunks/bell-snooze.C2COKl8x.Bca4lBpS.js +0 -24
- package/dist/chunks/bell.Fm9I5urF.DMLNQRjv.js +0 -24
- package/dist/chunks/bold.BDPvVUAR.BvlPriBT.js +0 -23
- package/dist/chunks/bolt-slash.DZlEBjB4.CEL1Y-CI.js +0 -24
- package/dist/chunks/bolt.B8RYziBX.ydwrTz2s.js +0 -24
- package/dist/chunks/book-open.CWUGLre3.DXKaHSLM.js +0 -24
- package/dist/chunks/bookmark-slash.Ff--gHir.ClEojQnD.js +0 -24
- package/dist/chunks/bookmark-square.CJBzX9qk.kdKOPQ-6.js +0 -24
- package/dist/chunks/bookmark.Cb2OSlaK.C3oubrJL.js +0 -24
- package/dist/chunks/briefcase.CTgTVSEh.DX78R1hk.js +0 -24
- package/dist/chunks/bug-ant.B0vPk3_N.Ct6xqXqe.js +0 -24
- package/dist/chunks/building-library.BqdrL-Ec.CA7EOKpn.js +0 -24
- package/dist/chunks/building-office-2.C1qF28CI.BTj9K19P.js +0 -24
- package/dist/chunks/building-office.BR20ANeD.DcYLUjuP.js +0 -24
- package/dist/chunks/building-storefront.D_Lbpsda.BBHRe1sf.js +0 -24
- package/dist/chunks/cake.Bvc4oe_S.etQ39ySd.js +0 -24
- package/dist/chunks/calculator.TIoQepn_.DCacd6Vr.js +0 -24
- package/dist/chunks/calendar-date-range.Dy5vs7S_.D2iryGH7.js +0 -24
- package/dist/chunks/calendar-days.oMae6t-4.KdXSppPh.js +0 -24
- package/dist/chunks/calendar.DxxJBJoK.CeJ8fSPb.js +0 -24
- package/dist/chunks/camera.Cm_7RSqq.B2qog63I.js +0 -31
- package/dist/chunks/chart-bar-square.C_56q4ax.D88dnWFr.js +0 -24
- package/dist/chunks/chart-bar.CR-2VE6U.BpP0YDjf.js +0 -24
- package/dist/chunks/chart-pie.CRPh8b79.DKBryPfA.js +0 -31
- package/dist/chunks/chat-bubble-bottom-center-text.ChYHSzWk.Bg8ClnIa.js +0 -24
- package/dist/chunks/chat-bubble-bottom-center.BTTqABms.D9d0N1iO.js +0 -24
- package/dist/chunks/chat-bubble-left-ellipsis.WSEjQ7jL.CjqH2if2.js +0 -24
- package/dist/chunks/chat-bubble-left-right.DqOV8vN_.BKm2s-Hz.js +0 -24
- package/dist/chunks/chat-bubble-left.BvdvHHlA.zR-JhdYC.js +0 -24
- package/dist/chunks/chat-bubble-oval-left-ellipsis.CpHCuPeS.r5W8LOR8.js +0 -24
- package/dist/chunks/chat-bubble-oval-left.CdqaR91h.BW9JRF8r.js +0 -24
- package/dist/chunks/check-badge.GjHXGEG0.C_oOCt78.js +0 -24
- package/dist/chunks/check-circle.CFcKgPZ4.DfY78EtL.js +0 -24
- package/dist/chunks/check.DfYjeOVQ.DXNsuRna.js +0 -24
- package/dist/chunks/chevron-double-down.CZMayNS1.CisfSsZ8.js +0 -24
- package/dist/chunks/chevron-double-left.De8TBs-I.DAucus_w.js +0 -24
- package/dist/chunks/chevron-double-right.XnTrUsod.Cuu5xoTt.js +0 -24
- package/dist/chunks/chevron-double-up.F7fkhaor.DRJWwQ9F.js +0 -31
- package/dist/chunks/chevron-down.ChGfmxD1.CQ7rtF0T.js +0 -24
- package/dist/chunks/chevron-left.CTBM8oHi.Ba3U4jcW.js +0 -24
- package/dist/chunks/chevron-right.BXTR7Es5.C6KI-hWC.js +0 -24
- package/dist/chunks/chevron-up-down.C7-HMAjy.DKw8M2-I.js +0 -24
- package/dist/chunks/chevron-up.cK7QDv75.B2N-Hk-6.js +0 -24
- package/dist/chunks/circle-stack.BnyTq7sI.1XtJbY6M.js +0 -24
- package/dist/chunks/clipboard-document-check.CJ3xBd7t.Br9n89F9.js +0 -24
- package/dist/chunks/clipboard-document-list.CF1likOV.D3KAtz_z.js +0 -24
- package/dist/chunks/clipboard-document.CdTKuGSv.ChOrKMSS.js +0 -24
- package/dist/chunks/clipboard.CzjWQfRH.Da-cebFK.js +0 -24
- package/dist/chunks/clock.NNdb3vyA.D3jUXhQ7.js +0 -24
- package/dist/chunks/cloud-arrow-down.CvtCNIxh.D1aF62k3.js +0 -24
- package/dist/chunks/cloud-arrow-up.D1JeGPbq.C4jLYHme.js +0 -24
- package/dist/chunks/cloud.C9fdU5-X.cydYlCh2.js +0 -24
- package/dist/chunks/code-bracket-square.BsQyTz1s.BeZZZPk2.js +0 -24
- package/dist/chunks/code-bracket.DJDL79-i.B4G6-VO6.js +0 -24
- package/dist/chunks/cog-6-tooth.BbV5JYl1.DeTgzUXG.js +0 -31
- package/dist/chunks/cog-8-tooth.BnBTLB6M.D8tH-0GQ.js +0 -31
- package/dist/chunks/cog.BXgqaz3X.CF2Pe_yh.js +0 -24
- package/dist/chunks/command-line.w_Y9_Kkc.BMaD58fF.js +0 -24
- package/dist/chunks/computer-desktop.BpRzP4fc.BWRlZKsP.js +0 -24
- package/dist/chunks/cpu-chip.ho-tmFIn.ClPQmB5Q.js +0 -24
- package/dist/chunks/credit-card.DkrZZI4D.ChD3ISF_.js +0 -24
- package/dist/chunks/cube-transparent.C8Wdi45T.CgHVrtio.js +0 -24
- package/dist/chunks/cube.B9UcKOKF.DVXGNDI0.js +0 -24
- package/dist/chunks/currency-bangladeshi.DzhT0-h5.BhxC0NCe.js +0 -24
- package/dist/chunks/currency-dollar.Bfi6fPEz.DxEvUH91.js +0 -24
- package/dist/chunks/currency-euro.Jpiq8P6z.C5ljNb5d.js +0 -24
- package/dist/chunks/currency-pound.DrqWKbpM.BxOh3Nry.js +0 -24
- package/dist/chunks/currency-rupee.DHxnpaCI.Ynrf76Aj.js +0 -24
- package/dist/chunks/currency-yen.DQVa07WN.DdpYfRy5.js +0 -24
- package/dist/chunks/cursor-arrow-rays.MVP12F6C.hM5N0ZS3.js +0 -24
- package/dist/chunks/cursor-arrow-ripple.xLXix2uM.UbRX2pFw.js +0 -24
- package/dist/chunks/device-phone-mobile.B-57CfH5.D6VQ256l.js +0 -24
- package/dist/chunks/device-tablet.Bjsa72o7.CH-OVJkh.js +0 -24
- package/dist/chunks/divide.CV4gt445.Cv9KyNuJ.js +0 -24
- package/dist/chunks/document-arrow-down.B_57Gtno.BlZeqf-M.js +0 -24
- package/dist/chunks/document-arrow-up.BF_OVDJs.CbEXCmN0.js +0 -24
- package/dist/chunks/document-chart-bar.B46OY9CL.CIBAYVab.js +0 -24
- package/dist/chunks/document-check.CvLYBdnm.DluZSYpL.js +0 -24
- package/dist/chunks/document-currency-bangladeshi.HbXz9Sub.Cew_CE25.js +0 -24
- package/dist/chunks/document-currency-dollar.DPjKxFMa.jXB-YTux.js +0 -24
- package/dist/chunks/document-currency-euro.C-L5djvR.C9UJW2-n.js +0 -24
- package/dist/chunks/document-currency-pound.BzcYNgGa.CgLXYWAs.js +0 -24
- package/dist/chunks/document-currency-rupee.DescAEsg.CzFKJayN.js +0 -24
- package/dist/chunks/document-currency-yen.CyrkAYT6.B16hPkmM.js +0 -24
- package/dist/chunks/document-duplicate.D7vGJG_8.CIombGpo.js +0 -24
- package/dist/chunks/document-magnifying-glass.Burq7Xn2.QtA02zrk.js +0 -24
- package/dist/chunks/document-minus.DxGQQWCr.kiSQpPdH.js +0 -24
- package/dist/chunks/document-plus.DKk5zAwV.H3B6AI11.js +0 -24
- package/dist/chunks/document-text.CSCb2U2T.ZDLRpT-o.js +0 -24
- package/dist/chunks/document.CS0Ohrgt.DE8cSIrm.js +0 -24
- package/dist/chunks/ellipsis-horizontal-circle.BFOXQi09.CTDaeIGM.js +0 -24
- package/dist/chunks/ellipsis-horizontal.DqhpkTUz.CclJBCQG.js +0 -24
- package/dist/chunks/ellipsis-vertical.B8W0CqqN.B7I6k_qQ.js +0 -24
- package/dist/chunks/envelope-open.BQygUrrv.LFK3EzRF.js +0 -24
- package/dist/chunks/envelope.DFplr4Iv.Da66rxN8.js +0 -24
- package/dist/chunks/equals.Y4339RW6.CKookNbc.js +0 -24
- package/dist/chunks/exclamation-circle.PMllX_sR.BiDbdO8o.js +0 -24
- package/dist/chunks/exclamation-triangle.DP_ZdqKK.D-pRZiWC.js +0 -24
- package/dist/chunks/eye-dropper.BB7xFmZf.CfuOHkRE.js +0 -24
- package/dist/chunks/eye-slash.B-Q7zAl9.Z-QG3_NS.js +0 -24
- package/dist/chunks/eye.rnBIUryK.CTGdXztX.js +0 -31
- package/dist/chunks/face-frown.BdZUKORe.CTMmkA6s.js +0 -24
- package/dist/chunks/face-smile.BgHmgpsD.BD0FSBwY.js +0 -24
- package/dist/chunks/film.CvtqcSvO.fo_u8ciz.js +0 -24
- package/dist/chunks/finger-print.BalGxdl5.lX4SOFcC.js +0 -24
- package/dist/chunks/fire.C2S-dlHW.D_I1XNHh.js +0 -31
- package/dist/chunks/flag.BDHI8kIc.9T2ghrYf.js +0 -24
- package/dist/chunks/folder-arrow-down.CMe8l5qs.CY2PCaTR.js +0 -24
- package/dist/chunks/folder-minus.BIP4kiBI.CVSaimPJ.js +0 -24
- package/dist/chunks/folder-open.vCqZvh13.CVTeu5UO.js +0 -24
- package/dist/chunks/folder-plus.UKgqnCMI.BvhuTxMF.js +0 -24
- package/dist/chunks/folder.VY6d7M0v.BjpXSXu9.js +0 -24
- package/dist/chunks/fork.Bx0SP5G0.B7BHLQyz.js +0 -49
- package/dist/chunks/forward.CJadSay_.BBS11cS_.js +0 -24
- package/dist/chunks/funnel.CI1X4xTV.C2sbt1gJ.js +0 -24
- package/dist/chunks/gif.3w8BBVap.p3RkEv10.js +0 -24
- package/dist/chunks/gift-top.DGrJVe5T.LHgvzIEw.js +0 -24
- package/dist/chunks/gift.BdjKoMjg.Bf_lfrxv.js +0 -24
- package/dist/chunks/github.DR-YREFz.BKzaMPzV.js +0 -20
- package/dist/chunks/globe-alt.Ci-4WkuA.Df2W4RpY.js +0 -24
- package/dist/chunks/globe-americas.8k4TjYg9.DwAgObeI.js +0 -24
- package/dist/chunks/globe-asia-australia.CJy-S58s.BsXl4X35.js +0 -24
- package/dist/chunks/globe-europe-africa.Ch0apA4Z.ChCxgvsh.js +0 -24
- package/dist/chunks/h1.B0UxaUz3.B-fMNckN.js +0 -24
- package/dist/chunks/h2.CoDly_Rk.xn2P59Pu.js +0 -24
- package/dist/chunks/h3.BiPu_1GK.BtUGrtqm.js +0 -24
- package/dist/chunks/hand-raised.BibTyl03.Bmxt1b7s.js +0 -24
- package/dist/chunks/hand-thumb-down.BJoc9FWD.CTxVd9E4.js +0 -24
- package/dist/chunks/hand-thumb-up.BZWQJYwr.Byh64TmW.js +0 -24
- package/dist/chunks/hashtag.EamZCy49.-5GV13nB.js +0 -24
- package/dist/chunks/heart.DvH7fa-0.DC7zVVeb.js +0 -24
- package/dist/chunks/home-modern.L4UFeQLe.Q-aoULM-.js +0 -24
- package/dist/chunks/home.QELZheLi.CQ5VBdS-.js +0 -24
- package/dist/chunks/identification.CU9KU-bX.CFRzYkwU.js +0 -24
- package/dist/chunks/inbox-arrow-down.6HTSO1kx.DaoUuGHv.js +0 -24
- package/dist/chunks/inbox-stack.BfdiokBq.mWxjLRtV.js +0 -24
- package/dist/chunks/inbox.Biazzhd4.cuiJovdp.js +0 -24
- package/dist/chunks/index.CvKh762h.js +0 -352
- package/dist/chunks/information-circle.yhJPMoUQ.CkqMaCTJ.js +0 -24
- package/dist/chunks/italic.njlz_SwH.B8t1zdyt.js +0 -24
- package/dist/chunks/key.C8y1z_Nx.CWRIUYtz.js +0 -24
- package/dist/chunks/language.1Xs8PuP5.eK68tCI2.js +0 -24
- package/dist/chunks/lifebuoy.uldI5FjH.ttPYeOpt.js +0 -24
- package/dist/chunks/light-bulb.BnZMjrix.Nn8bb3uA.js +0 -24
- package/dist/chunks/link-slash.DYM_8hTp.DbbqWpYf.js +0 -24
- package/dist/chunks/link._zvxE-ZN.DCRS1Nhm.js +0 -24
- package/dist/chunks/list-bullet.Ck8i-zl1.DYTtynEe.js +0 -24
- package/dist/chunks/lock-closed.Do5wxxfB.BoHZR_Cx.js +0 -24
- package/dist/chunks/lock-open.DmUSVzU7.CIioMjR4.js +0 -24
- package/dist/chunks/magnifying-glass-circle.BBKKo-36.D6LZubsX.js +0 -24
- package/dist/chunks/magnifying-glass-minus.D1YH2gJK.DtYqNUQw.js +0 -24
- package/dist/chunks/magnifying-glass-plus.BgJ8lfbV.BBOa_lQz.js +0 -24
- package/dist/chunks/magnifying-glass.Bi8efyWn.BLzbV1BL.js +0 -24
- package/dist/chunks/map-pin.Bxbb--MZ.ea0oLEJ4.js +0 -31
- package/dist/chunks/map.DRcXyo0s.DMK4_gRD.js +0 -24
- package/dist/chunks/megaphone.BTvu-vIj.H3XYCMYF.js +0 -24
- package/dist/chunks/microphone.BJqDhEd7.BsJEAG9l.js +0 -24
- package/dist/chunks/minus-circle.DX_Wo_R6.CfihDX_c.js +0 -24
- package/dist/chunks/minus-small.BdK3wxa2.BruhEWWT.js +0 -24
- package/dist/chunks/minus.KSG6SL-A.Ci3tO7z7.js +0 -24
- package/dist/chunks/moon.BAqSTWOk.y5qE-JgT.js +0 -24
- package/dist/chunks/musical-note.Erx2eYZM.CeYcRysR.js +0 -24
- package/dist/chunks/newspaper.BxEeFWo5.Caqcj866.js +0 -24
- package/dist/chunks/no-image.G9oAqLYN.QYfh20At.js +0 -18
- package/dist/chunks/no-symbol.v1ZxT7PS.CLiEtcjA.js +0 -24
- package/dist/chunks/numbered-list.D4--Brg5.DPb7JWAD.js +0 -24
- package/dist/chunks/paint-brush.9Oq01j7X.BaQOU4-k.js +0 -24
- package/dist/chunks/paper-airplane.DKx_Ww6M.Dx_A6-r1.js +0 -24
- package/dist/chunks/paper-clip.Cd3ICjAc.Di3lmXzN.js +0 -24
- package/dist/chunks/pause-circle.Dyaqta5w.Bf5lVO6T.js +0 -24
- package/dist/chunks/pause.Xl-ti251.BrVoKvOq.js +0 -24
- package/dist/chunks/pencil-square.83G17jv5.BieHF6-5.js +0 -24
- package/dist/chunks/pencil.Bv-2uNMw.B6t0Zv85.js +0 -24
- package/dist/chunks/percent-badge.BR-COyYt.D9uZiuV4.js +0 -24
- package/dist/chunks/phone-arrow-down-left.bgYNFdYw.DlXuTKyQ.js +0 -24
- package/dist/chunks/phone-arrow-up-right.DL8xnmCp.B6ny9DGc.js +0 -24
- package/dist/chunks/phone-x-mark.EJ8g8Io4.iD9I0F8O.js +0 -24
- package/dist/chunks/phone.C9HcOJV4.DR_ydb9P.js +0 -24
- package/dist/chunks/photo.D2i5ltv-.Bx4bun8k.js +0 -24
- package/dist/chunks/play-circle.sQgQYbxL.DIVhJ_VT.js +0 -31
- package/dist/chunks/play-pause.7fATndsv.BlbQnYtP.js +0 -24
- package/dist/chunks/play.DPQ51d76.CXxYnamK.js +0 -24
- package/dist/chunks/plus-circle.t0rIMK17.CJuEO_hV.js +0 -24
- package/dist/chunks/plus-small.q2_UTnSJ.D00Lo6Gm.js +0 -24
- package/dist/chunks/plus.B4eFPhg5.Bjb51_89.js +0 -24
- package/dist/chunks/power.DbnsGjcP.ADCLCnp1.js +0 -24
- package/dist/chunks/presentation-chart-bar.qOHPrVoA.DzoUJVBk.js +0 -24
- package/dist/chunks/presentation-chart-line.kt2UcfXU.ByalT4af.js +0 -24
- package/dist/chunks/printer.DgYbu-oZ.oyHdK_Er.js +0 -24
- package/dist/chunks/puzzle-piece.DPVPnROW.Dj5Pkwqw.js +0 -24
- package/dist/chunks/qr-code.Cz6_gY5W.BRQos2fl.js +0 -31
- package/dist/chunks/question-mark-circle.BI3Pj1lM.CUkVvnjz.js +0 -24
- package/dist/chunks/queue-list.BTtd9gV_.BZqvXCX1.js +0 -24
- package/dist/chunks/radio.NXQa70KZ.DcLeSUt8.js +0 -24
- package/dist/chunks/receipt-percent.BEffIYGJ.C5vDjent.js +0 -24
- package/dist/chunks/receipt-refund.hLJiXRl-.BvT1RelP.js +0 -24
- package/dist/chunks/rectangle-group.DUnjEoiP.9pML-9-S.js +0 -24
- package/dist/chunks/rectangle-stack.DxfbSUKM.BS0h3Qu8.js +0 -24
- package/dist/chunks/rocket-launch.X-OfcjiP.BRHh-FkZ.js +0 -24
- package/dist/chunks/rss.BLvK5jPr.CckNH6AG.js +0 -24
- package/dist/chunks/scale.DEEYJ6Zk.CXnrDRjc.js +0 -24
- package/dist/chunks/scissors.Bu_6BaOX.CgCRjlsD.js +0 -24
- package/dist/chunks/server-stack.DmncQkqn.DlXBXJ68.js +0 -24
- package/dist/chunks/server.LyXBRSxY.DiraGD0N.js +0 -24
- package/dist/chunks/share.Cf9OjBgL.RQldJRZ9.js +0 -24
- package/dist/chunks/shield-check.VQpLzd2v.Bv6XREpP.js +0 -24
- package/dist/chunks/shield-exclamation.Be0w3_jk.Czs5h8N1.js +0 -24
- package/dist/chunks/shopping-bag.CmqEq0ln.Co-ENH4J.js +0 -24
- package/dist/chunks/shopping-cart.sDo0rmyp.Dwxg9WFh.js +0 -24
- package/dist/chunks/signal-slash.Cj_p1Nk-.Bos1dz3M.js +0 -24
- package/dist/chunks/signal.CDdRnntO.zs66muqE.js +0 -24
- package/dist/chunks/slash.DLlsJ67p.BovzBFnY.js +0 -24
- package/dist/chunks/sparkles.Cl4CxIOA.CJtVBamV.js +0 -24
- package/dist/chunks/speaker-wave.Dhz2ha5o.BKHqvdzL.js +0 -24
- package/dist/chunks/speaker-x-mark.D5bJpGdc.B-98J4TH.js +0 -24
- package/dist/chunks/square-2-stack.B_K3e5Xo.BpuWW3zQ.js +0 -24
- package/dist/chunks/square-3-stack-3d.kEZ7HRU8.u3pEG_dB.js +0 -24
- package/dist/chunks/squares-2x2.DbpIJWWH.czohOArw.js +0 -24
- package/dist/chunks/squares-plus.DJoqsZG-.C56wwQo6.js +0 -24
- package/dist/chunks/star-solid.ith3udUr.fI6COBY6.js +0 -22
- package/dist/chunks/star.BOm1sCet.CrlFtkIH.js +0 -24
- package/dist/chunks/stop-circle.i8k9ENGo.Bvg3kAtp.js +0 -31
- package/dist/chunks/stop.BvbL0z5G.BzZa9cz4.js +0 -24
- package/dist/chunks/strikethrough.D9IxMEze.CG0o3e8f.js +0 -24
- package/dist/chunks/sun.DtlkYkWH.BY6FsaIr.js +0 -24
- package/dist/chunks/swatch.BQEbGG5v.mzOiKL2U.js +0 -24
- package/dist/chunks/table-cells.DgYgkJao.D_ev8kjA.js +0 -24
- package/dist/chunks/tag.9pi2-WVW.AW6frX03.js +0 -31
- package/dist/chunks/throttle.DN8ARw0a.js +0 -11
- package/dist/chunks/ticket.CoeaVN1f.D8B_ZCyj.js +0 -24
- package/dist/chunks/trash.CKFg-ylA.BeH6WFxu.js +0 -24
- package/dist/chunks/trophy.DqS7is9J.BqpYwRUm.js +0 -24
- package/dist/chunks/truck.CiPiMFO5.I1lYcatr.js +0 -24
- package/dist/chunks/tv.FRI46IJL.DYLIUXzl.js +0 -24
- package/dist/chunks/underline.CTS7x7HZ.BTMyDX0M.js +0 -24
- package/dist/chunks/user-circle.jg7OpkHK.BzdqSzzl.js +0 -24
- package/dist/chunks/user-group.ZzJJeNOR.DqrCBO8z.js +0 -24
- package/dist/chunks/user-minus.CFpE7tJo.Cc-_xIha.js +0 -24
- package/dist/chunks/user-plus.56xx_RZF.DeJBUlvA.js +0 -24
- package/dist/chunks/user.BHnHyDaq.DDyUV-u5.js +0 -24
- package/dist/chunks/users.CcE72INP.DbTawkoy.js +0 -24
- package/dist/chunks/variable.D2aSg3jI.B9JN_cwv.js +0 -24
- package/dist/chunks/video-camera-slash.BwxNb0cm.SnSS7S5P.js +0 -24
- package/dist/chunks/video-camera.CoJgwP4F.BmMWt0vs.js +0 -24
- package/dist/chunks/view-columns.LoFVFzBR.CIMGv7mf.js +0 -24
- package/dist/chunks/viewfinder-circle.CaQlvTWC.CJVVM5_n.js +0 -24
- package/dist/chunks/wallet.CqM_mibw.kwMG5OEh.js +0 -24
- package/dist/chunks/wifi.DUdIKgQN.DqZ0nPHO.js +0 -24
- package/dist/chunks/window.BeFPU0ZR.Cqieba0K.js +0 -24
- package/dist/chunks/wrench-screwdriver.BcMJDiuu.Ces3a6-S.js +0 -24
- package/dist/chunks/wrench.DhPW3HZx.CNeKEI4i.js +0 -31
- package/dist/chunks/x-circle.Bv0-dC8L.BikPLDPw.js +0 -24
- package/dist/chunks/x-mark.CTalOvvY.js +0 -23
- package/dist/chunks/x-mark.umAR9tn5.iu8PJ4nS.js +0 -24
- package/dist/types/composables/useFormValidator/utils.d.ts +0 -116
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { defineComponent, mergeModels, useAttrs, useTemplateRef, useModel, ref, computed, nextTick, watch, onMounted, onUnmounted, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createElementVNode, createBlock, mergeProps, renderSlot, Teleport, createVNode, Transition, withCtx, withDirectives, createCommentVNode } from "vue";
|
|
1
|
+
import { defineComponent, mergeModels, useAttrs, useTemplateRef, useModel, ref, computed, nextTick, watch, onMounted, onBeforeUnmount, onUnmounted, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createElementVNode, createBlock, mergeProps, renderSlot, Teleport, createVNode, Transition, withCtx, withDirectives, createCommentVNode } from "vue";
|
|
2
2
|
import { i as isClient } from "../chunks/isClient.WI4oSt66.js";
|
|
3
|
-
import { t as throttle } from "../chunks/throttle.DN8ARw0a.js";
|
|
4
3
|
import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
5
4
|
import { d as directive } from "../chunks/vClickOutside.C69k0jaG.js";
|
|
6
5
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
7
|
-
import '../assets/MazPopover.
|
|
6
|
+
import '../assets/MazPopover.D-WwUjU_.css';const _hoisted_1 = ["id", "aria-expanded", "aria-haspopup", "aria-describedby", "aria-labelledby"], _hoisted_2 = ["id", "role", "aria-label", "aria-labelledby", "aria-describedby", "aria-modal", "tabindex", "aria-live"], _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
7
|
name: "MazPopover",
|
|
9
8
|
inheritAttrs: !1,
|
|
10
9
|
__name: "MazPopover",
|
|
@@ -36,7 +35,7 @@ import '../assets/MazPopover.COR-tym7.css';const _hoisted_1 = ["id", "aria-expan
|
|
|
36
35
|
trapFocus: { type: Boolean, default: !0 },
|
|
37
36
|
keepOpenOnHover: { type: Boolean, default: !1 },
|
|
38
37
|
block: { type: Boolean, default: !1 },
|
|
39
|
-
|
|
38
|
+
positionReference: {}
|
|
40
39
|
}, {
|
|
41
40
|
modelValue: { type: Boolean, required: !1, default: !1 },
|
|
42
41
|
modelModifiers: {}
|
|
@@ -46,7 +45,17 @@ import '../assets/MazPopover.COR-tym7.css';const _hoisted_1 = ["id", "aria-expan
|
|
|
46
45
|
const emits = __emit, triggerId = useInstanceUniqId({
|
|
47
46
|
componentName: "MazPopover",
|
|
48
47
|
providedId: __props.id
|
|
49
|
-
}), attrs = useAttrs(), triggerElement = useTemplateRef("trigger"), panelElement = useTemplateRef("panel")
|
|
48
|
+
}), attrs = useAttrs(), triggerElement = useTemplateRef("trigger"), panelElement = useTemplateRef("panel");
|
|
49
|
+
function getPositionReference() {
|
|
50
|
+
if (!__props.positionReference)
|
|
51
|
+
return triggerElement.value;
|
|
52
|
+
if (typeof __props.positionReference == "string") {
|
|
53
|
+
const withinTrigger = triggerElement.value?.querySelector(__props.positionReference);
|
|
54
|
+
return withinTrigger || document.querySelector(__props.positionReference);
|
|
55
|
+
}
|
|
56
|
+
return __props.positionReference;
|
|
57
|
+
}
|
|
58
|
+
const isOpen = useModel(__props, "modelValue"), computedPosition = ref(__props.position === "auto" ? "bottom" : __props.position);
|
|
50
59
|
let openTimeout = null, closeTimeout = null, initialFocusElement = null, ignoreNextClickOutside = !1;
|
|
51
60
|
const panelId = computed(() => `${triggerId.value}-panel`), panelStyles = ref(), rootStyles = computed(() => attrs.style), isTouchDevice = computed(() => isClient() ? "ontouchstart" in window || navigator.maxTouchPoints > 0 : !1), effectiveTrigger = computed(() => __props.trigger === "adaptive" ? isTouchDevice.value ? "click" : "hover" : __props.trigger), triggerEvents = computed(() => {
|
|
52
61
|
if (__props.disabled || effectiveTrigger.value === "manual")
|
|
@@ -68,33 +77,72 @@ import '../assets/MazPopover.COR-tym7.css';const _hoisted_1 = ["id", "aria-expan
|
|
|
68
77
|
`--position-${computedPosition.value}`,
|
|
69
78
|
`--${__props.color}`
|
|
70
79
|
]);
|
|
71
|
-
let resizeObserver = null, mutationObserver = null,
|
|
80
|
+
let resizeObserver = null, mutationObserver = null, isPositioning = !1, positioningFrame = null;
|
|
81
|
+
function calculateAndApplyPosition(options = {}) {
|
|
82
|
+
if (!triggerElement.value || !panelElement.value || isPositioning)
|
|
83
|
+
return null;
|
|
84
|
+
const { applyStyles = !0, forAnimation = !1 } = options;
|
|
85
|
+
applyStyles && (isPositioning = !0, positioningFrame && cancelAnimationFrame(positioningFrame));
|
|
86
|
+
const doCalculation = () => {
|
|
87
|
+
if (!triggerElement.value || !panelElement.value)
|
|
88
|
+
return applyStyles && (isPositioning = !1), null;
|
|
89
|
+
try {
|
|
90
|
+
const viewport = { width: window.innerWidth, height: window.innerHeight }, positionRef = getPositionReference();
|
|
91
|
+
if (!positionRef)
|
|
92
|
+
return applyStyles && (isPositioning = !1), null;
|
|
93
|
+
const triggerRect = positionRef.getBoundingClientRect();
|
|
94
|
+
let wasHidden = !1;
|
|
95
|
+
forAnimation && (wasHidden = panelElement.value.style.visibility === "hidden", panelElement.value.style.visibility = "hidden", panelElement.value.style.display = "block");
|
|
96
|
+
let newPosition;
|
|
97
|
+
if (__props.position === "auto" ? newPosition = getBestPosition(triggerRect, viewport) : newPosition = __props.position, computedPosition.value = newPosition, applyStyles) {
|
|
98
|
+
const panelRect = panelElement.value.getBoundingClientRect(), styles = calculatePosition(newPosition, triggerRect, panelRect);
|
|
99
|
+
panelStyles.value = styles;
|
|
100
|
+
}
|
|
101
|
+
return forAnimation && !applyStyles && (wasHidden ? panelElement.value.style.visibility = "hidden" : panelElement.value.style.display = ""), newPosition;
|
|
102
|
+
} catch (error) {
|
|
103
|
+
return console.warn("[MazPopover] Error calculating position:", error), null;
|
|
104
|
+
} finally {
|
|
105
|
+
applyStyles && (isPositioning = !1, positioningFrame = null);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
return applyStyles ? (positioningFrame = requestAnimationFrame(doCalculation), null) : doCalculation();
|
|
109
|
+
}
|
|
72
110
|
function updatePosition() {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
__props.position === "auto"
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
111
|
+
calculateAndApplyPosition({ applyStyles: !0 });
|
|
112
|
+
}
|
|
113
|
+
function schedulePositionUpdate() {
|
|
114
|
+
isOpen.value && !isPositioning && updatePosition();
|
|
115
|
+
}
|
|
116
|
+
function preparePositionForAnimation() {
|
|
117
|
+
if (__props.position === "auto" && triggerElement.value) {
|
|
118
|
+
const positionRef = getPositionReference();
|
|
119
|
+
if (positionRef) {
|
|
120
|
+
const triggerRect = positionRef.getBoundingClientRect(), viewport = { width: window.innerWidth, height: window.innerHeight }, newPosition = getBestPosition(triggerRect, viewport);
|
|
121
|
+
computedPosition.value = newPosition;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return calculateAndApplyPosition({ applyStyles: !1, forAnimation: !0 });
|
|
87
125
|
}
|
|
88
|
-
const trottledUpdatePosition = throttle(() => {
|
|
89
|
-
isOpen.value && !isUpdatingPosition && nextTick(updatePosition);
|
|
90
|
-
}, 16);
|
|
91
126
|
function setupObservers() {
|
|
92
|
-
panelElement.value
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
127
|
+
if (!panelElement.value || !triggerElement.value)
|
|
128
|
+
return;
|
|
129
|
+
const positionRef = getPositionReference();
|
|
130
|
+
positionRef && (window.ResizeObserver && (resizeObserver = new ResizeObserver((entries) => {
|
|
131
|
+
for (const entry of entries)
|
|
132
|
+
if (entry.target === panelElement.value || entry.target === triggerElement.value || entry.target === positionRef) {
|
|
133
|
+
schedulePositionUpdate();
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
}), resizeObserver.observe(panelElement.value), resizeObserver.observe(triggerElement.value), positionRef !== triggerElement.value && resizeObserver.observe(positionRef), resizeObserver.observe(document.documentElement)), mutationObserver = new MutationObserver((mutations) => {
|
|
137
|
+
if (isPositioning)
|
|
96
138
|
return;
|
|
97
|
-
|
|
139
|
+
let shouldUpdate = !1;
|
|
140
|
+
for (const mutation of mutations)
|
|
141
|
+
if (!(mutation.target === panelElement.value && mutation.type === "attributes" && mutation.attributeName === "style") && (mutation.type === "childList" || mutation.type === "attributes" && mutation.attributeName === "class")) {
|
|
142
|
+
shouldUpdate = !0;
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
shouldUpdate && schedulePositionUpdate();
|
|
98
146
|
}), mutationObserver.observe(panelElement.value, {
|
|
99
147
|
childList: !0,
|
|
100
148
|
subtree: !0,
|
|
@@ -103,10 +151,10 @@ import '../assets/MazPopover.COR-tym7.css';const _hoisted_1 = ["id", "aria-expan
|
|
|
103
151
|
}));
|
|
104
152
|
}
|
|
105
153
|
function cleanupObservers() {
|
|
106
|
-
resizeObserver && (resizeObserver.disconnect(), resizeObserver = null), mutationObserver && (mutationObserver.disconnect(), mutationObserver = null);
|
|
154
|
+
positioningFrame && (cancelAnimationFrame(positioningFrame), positioningFrame = null), resizeObserver && (resizeObserver.disconnect(), resizeObserver = null), mutationObserver && (mutationObserver.disconnect(), mutationObserver = null);
|
|
107
155
|
}
|
|
108
156
|
function open() {
|
|
109
|
-
__props.disabled || (clearCloseTimeout(), ignoreNextClickOutside = !0, __props.delay > 0 ? openTimeout = setTimeout(() => {
|
|
157
|
+
__props.disabled || (clearCloseTimeout(), effectiveTrigger.value === "click" && (ignoreNextClickOutside = !0), __props.delay > 0 ? openTimeout = setTimeout(() => {
|
|
110
158
|
setOpen(!0);
|
|
111
159
|
}, __props.delay) : setOpen(!0));
|
|
112
160
|
}
|
|
@@ -121,11 +169,15 @@ import '../assets/MazPopover.COR-tym7.css';const _hoisted_1 = ["id", "aria-expan
|
|
|
121
169
|
isOpen.value ? close() : open();
|
|
122
170
|
}
|
|
123
171
|
function setOpen(value) {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
updatePosition(), setupObservers();
|
|
127
|
-
}
|
|
128
|
-
})) : (
|
|
172
|
+
value ? (emits("open"), nextTick(() => {
|
|
173
|
+
triggerElement.value && panelElement.value && preparePositionForAnimation(), (() => {
|
|
174
|
+
isOpen.value = value, emits("toggle", value), updatePosition(), setupObservers(), setupFocusTrap();
|
|
175
|
+
})();
|
|
176
|
+
})) : (isOpen.value = value, emits("toggle", value), emits("close"), panelStyles.value = {
|
|
177
|
+
position: "fixed",
|
|
178
|
+
visibility: "hidden",
|
|
179
|
+
pointerEvents: "none"
|
|
180
|
+
}, ignoreNextClickOutside = !1, cleanupObservers(), __props.trapFocus && restoreFocus());
|
|
129
181
|
}
|
|
130
182
|
function clearOpenTimeout() {
|
|
131
183
|
openTimeout && (clearTimeout(openTimeout), openTimeout = null);
|
|
@@ -133,39 +185,15 @@ import '../assets/MazPopover.COR-tym7.css';const _hoisted_1 = ["id", "aria-expan
|
|
|
133
185
|
function clearCloseTimeout() {
|
|
134
186
|
closeTimeout && (clearTimeout(closeTimeout), closeTimeout = null);
|
|
135
187
|
}
|
|
136
|
-
function getIsVisible(coords, panelRect, viewport, scrollTop, scrollLeft) {
|
|
137
|
-
return coords.left >= scrollLeft && coords.left + panelRect.width <= scrollLeft + viewport.width && coords.top >= scrollTop && coords.top + panelRect.height <= scrollTop + viewport.height;
|
|
138
|
-
}
|
|
139
|
-
function isPositionVisible(position, triggerRect, panelRect, viewport, scrollTop, scrollLeft) {
|
|
140
|
-
const coords = calculatePosition(position, triggerRect, panelRect, scrollTop, scrollLeft);
|
|
141
|
-
return getIsVisible(coords, panelRect, viewport, scrollTop, scrollLeft);
|
|
142
|
-
}
|
|
143
|
-
function getValidPositions(positions, triggerRect, panelRect, viewport, scrollTop, scrollLeft) {
|
|
144
|
-
const spaces = {
|
|
145
|
-
bottom: viewport.height + scrollTop - triggerRect.bottom,
|
|
146
|
-
top: triggerRect.top - scrollTop,
|
|
147
|
-
right: viewport.width + scrollLeft - triggerRect.right,
|
|
148
|
-
left: triggerRect.left - scrollLeft
|
|
149
|
-
};
|
|
150
|
-
return positions.reduce((acc, pos) => {
|
|
151
|
-
if (isPositionVisible(pos, triggerRect, panelRect, viewport, scrollTop, scrollLeft)) {
|
|
152
|
-
let positionBonus = 0;
|
|
153
|
-
pos === "bottom" ? positionBonus = 1e3 : pos === "top" ? positionBonus = 800 : pos === "right" ? positionBonus = 600 : pos === "left" && (positionBonus = 400);
|
|
154
|
-
const score = spaces[pos] + positionBonus;
|
|
155
|
-
acc.push({ position: pos, score });
|
|
156
|
-
}
|
|
157
|
-
return acc;
|
|
158
|
-
}, []);
|
|
159
|
-
}
|
|
160
188
|
function getBestPosition(triggerRect, viewport) {
|
|
161
189
|
if (!panelElement.value)
|
|
162
190
|
return "bottom";
|
|
163
|
-
const panelRect = panelElement.value.getBoundingClientRect()
|
|
164
|
-
if (__props.preferPosition && isPositionVisible(__props.preferPosition, triggerRect, panelRect, viewport
|
|
191
|
+
const panelRect = panelElement.value.getBoundingClientRect();
|
|
192
|
+
if (__props.preferPosition && isPositionVisible(__props.preferPosition, triggerRect, panelRect, viewport))
|
|
165
193
|
return __props.preferPosition;
|
|
166
194
|
if (__props.preferPosition && __props.fallbackPosition)
|
|
167
195
|
return __props.fallbackPosition;
|
|
168
|
-
const positions = ["bottom", "top", "right", "left"], validPositions = getValidPositions(positions, triggerRect, panelRect, viewport
|
|
196
|
+
const positions = ["bottom", "top", "right", "left"], validPositions = getValidPositions(positions, triggerRect, panelRect, viewport);
|
|
169
197
|
if (validPositions.length === 0) {
|
|
170
198
|
const spaces = {
|
|
171
199
|
top: triggerRect.top,
|
|
@@ -177,31 +205,87 @@ import '../assets/MazPopover.COR-tym7.css';const _hoisted_1 = ["id", "aria-expan
|
|
|
177
205
|
}
|
|
178
206
|
return validPositions.sort((a, b) => b.score - a.score)[0].position;
|
|
179
207
|
}
|
|
180
|
-
function calculatePosition(position, triggerRect,
|
|
181
|
-
|
|
208
|
+
function calculatePosition(position, triggerRect, _panelRect) {
|
|
209
|
+
const viewport = { width: window.innerWidth, height: window.innerHeight }, styles = {
|
|
210
|
+
position: "fixed",
|
|
211
|
+
visibility: "visible",
|
|
212
|
+
transformOrigin: getTransformOrigin(position)
|
|
213
|
+
};
|
|
182
214
|
switch (position) {
|
|
183
215
|
case "top":
|
|
184
216
|
case "top-start":
|
|
185
217
|
case "top-end":
|
|
186
|
-
|
|
218
|
+
styles.bottom = `${viewport.height - triggerRect.top + __props.offset}px`, position === "top-start" ? styles.left = `${triggerRect.left}px` : position === "top-end" ? styles.right = `${viewport.width - triggerRect.right}px` : styles.left = `${triggerRect.left + triggerRect.width / 2 - _panelRect.width / 2}px`;
|
|
187
219
|
break;
|
|
188
220
|
case "bottom":
|
|
189
221
|
case "bottom-start":
|
|
190
222
|
case "bottom-end":
|
|
191
|
-
top = triggerRect.bottom +
|
|
223
|
+
styles.top = `${triggerRect.bottom + __props.offset}px`, position === "bottom-start" ? styles.left = `${triggerRect.left}px` : position === "bottom-end" ? styles.right = `${viewport.width - triggerRect.right}px` : styles.left = `${triggerRect.left + triggerRect.width / 2 - _panelRect.width / 2}px`;
|
|
192
224
|
break;
|
|
193
225
|
case "left":
|
|
194
226
|
case "left-start":
|
|
195
227
|
case "left-end":
|
|
196
|
-
|
|
228
|
+
styles.right = `${viewport.width - triggerRect.left + __props.offset}px`, position === "left-start" ? styles.top = `${triggerRect.top}px` : position === "left-end" ? styles.bottom = `${viewport.height - triggerRect.bottom}px` : styles.top = `${triggerRect.top + triggerRect.height / 2 - _panelRect.height / 2}px`;
|
|
197
229
|
break;
|
|
198
230
|
case "right":
|
|
199
231
|
case "right-start":
|
|
200
232
|
case "right-end":
|
|
201
|
-
left = triggerRect.right +
|
|
233
|
+
styles.left = `${triggerRect.right + __props.offset}px`, position === "right-start" ? styles.top = `${triggerRect.top}px` : position === "right-end" ? styles.bottom = `${viewport.height - triggerRect.bottom}px` : styles.top = `${triggerRect.top + triggerRect.height / 2 - _panelRect.height / 2}px`;
|
|
202
234
|
break;
|
|
203
235
|
}
|
|
204
|
-
return
|
|
236
|
+
return styles;
|
|
237
|
+
}
|
|
238
|
+
function getTransformOrigin(position) {
|
|
239
|
+
switch (position) {
|
|
240
|
+
case "top":
|
|
241
|
+
return "center bottom";
|
|
242
|
+
case "top-start":
|
|
243
|
+
return "left bottom";
|
|
244
|
+
case "top-end":
|
|
245
|
+
return "right bottom";
|
|
246
|
+
case "bottom":
|
|
247
|
+
return "center top";
|
|
248
|
+
case "bottom-start":
|
|
249
|
+
return "left top";
|
|
250
|
+
case "bottom-end":
|
|
251
|
+
return "right top";
|
|
252
|
+
case "left":
|
|
253
|
+
return "right center";
|
|
254
|
+
case "left-start":
|
|
255
|
+
return "right top";
|
|
256
|
+
case "left-end":
|
|
257
|
+
return "right bottom";
|
|
258
|
+
case "right":
|
|
259
|
+
return "left center";
|
|
260
|
+
case "right-start":
|
|
261
|
+
return "left top";
|
|
262
|
+
case "right-end":
|
|
263
|
+
return "left bottom";
|
|
264
|
+
default:
|
|
265
|
+
return "center";
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
function isPositionVisible(position, triggerRect, panelRect, viewport) {
|
|
269
|
+
const styles = calculatePosition(position, triggerRect, panelRect);
|
|
270
|
+
let top = 0, left = 0;
|
|
271
|
+
return styles.top ? top = Number.parseInt(styles.top) : styles.bottom && (top = viewport.height - Number.parseInt(styles.bottom) - panelRect.height), styles.left ? left = Number.parseInt(styles.left) : styles.right && (left = viewport.width - Number.parseInt(styles.right) - panelRect.width), styles.transform?.includes("translateX(-50%)") && (left -= panelRect.width / 2), styles.transform?.includes("translateY(-50%)") && (top -= panelRect.height / 2), left >= 0 && left + panelRect.width <= viewport.width && top >= 0 && top + panelRect.height <= viewport.height;
|
|
272
|
+
}
|
|
273
|
+
function getValidPositions(positions, triggerRect, panelRect, viewport) {
|
|
274
|
+
const spaces = {
|
|
275
|
+
bottom: viewport.height - triggerRect.bottom,
|
|
276
|
+
top: triggerRect.top,
|
|
277
|
+
right: viewport.width - triggerRect.right,
|
|
278
|
+
left: triggerRect.left
|
|
279
|
+
};
|
|
280
|
+
return positions.reduce((acc, pos) => {
|
|
281
|
+
if (isPositionVisible(pos, triggerRect, panelRect, viewport)) {
|
|
282
|
+
let positionBonus = 0;
|
|
283
|
+
pos === "bottom" ? positionBonus = 1e3 : pos === "top" ? positionBonus = 800 : pos === "right" ? positionBonus = 600 : pos === "left" && (positionBonus = 400);
|
|
284
|
+
const score = spaces[pos] + positionBonus;
|
|
285
|
+
acc.push({ position: pos, score });
|
|
286
|
+
}
|
|
287
|
+
return acc;
|
|
288
|
+
}, []);
|
|
205
289
|
}
|
|
206
290
|
function setupFocusTrap() {
|
|
207
291
|
__props.role === "tooltip" || __props.role === "menu" || effectiveTrigger.value === "hover" || !__props.trapFocus || (initialFocusElement = document.activeElement, nextTick(() => {
|
|
@@ -243,17 +327,19 @@ import '../assets/MazPopover.COR-tym7.css';const _hoisted_1 = ["id", "aria-expan
|
|
|
243
327
|
}
|
|
244
328
|
}
|
|
245
329
|
}
|
|
246
|
-
function
|
|
247
|
-
isOpen.value &&
|
|
330
|
+
function onScrollThrottled() {
|
|
331
|
+
isOpen.value && schedulePositionUpdate();
|
|
248
332
|
}
|
|
249
333
|
return watch(isOpen, (value, oldValue) => {
|
|
250
334
|
!isClient() || value === oldValue || (value ? open() : oldValue && !value && close());
|
|
251
|
-
}, { immediate: !0 }), watch(() => __props.position, () => {
|
|
252
|
-
isOpen.value && nextTick(updatePosition);
|
|
335
|
+
}, { immediate: !0 }), watch(() => __props.position, (newPosition) => {
|
|
336
|
+
newPosition !== "auto" && (computedPosition.value = newPosition), isOpen.value && nextTick(updatePosition);
|
|
253
337
|
}), onMounted(() => {
|
|
254
|
-
document.addEventListener("keydown", onKeydown), window.addEventListener("scroll",
|
|
338
|
+
document.addEventListener("keydown", onKeydown), window.addEventListener("scroll", onScrollThrottled, { passive: !0, capture: !0 }), window.addEventListener("resize", onScrollThrottled, { passive: !0 });
|
|
339
|
+
}), onBeforeUnmount(() => {
|
|
340
|
+
cleanupObservers(), clearOpenTimeout(), clearCloseTimeout();
|
|
255
341
|
}), onUnmounted(() => {
|
|
256
|
-
document.removeEventListener("keydown", onKeydown), window.removeEventListener("scroll",
|
|
342
|
+
document.removeEventListener("keydown", onKeydown), window.removeEventListener("scroll", onScrollThrottled, !0), window.removeEventListener("resize", onScrollThrottled);
|
|
257
343
|
}), __expose({
|
|
258
344
|
/**
|
|
259
345
|
* Open the popover
|
|
@@ -352,7 +438,7 @@ import '../assets/MazPopover.COR-tym7.css';const _hoisted_1 = ["id", "aria-expan
|
|
|
352
438
|
], 8, ["to", "disabled"]))
|
|
353
439
|
], 6));
|
|
354
440
|
}
|
|
355
|
-
}), MazPopover = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
441
|
+
}), MazPopover = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2e23bfe3"]]);
|
|
356
442
|
export {
|
|
357
443
|
MazPopover as default
|
|
358
444
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, ref, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createElementVNode, mergeProps, renderSlot, createCommentVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
3
3
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
4
|
-
import '../assets/MazRadio.
|
|
4
|
+
import '../assets/MazRadio.XGYnbTuB.css';const _hoisted_1 = ["for", "aria-checked"], _hoisted_2 = ["id", "value", "disabled", "name", "checked"], _hoisted_3 = { class: "m-radio__text" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "MazRadio",
|
|
6
6
|
props: {
|
|
7
7
|
style: { default: void 0 },
|
|
@@ -24,7 +24,7 @@ import '../assets/MazRadio.DKMFWwy_.css';const _hoisted_1 = ["for", "aria-checke
|
|
|
24
24
|
const props = __props, emits = __emit, instanceId = useInstanceUniqId({
|
|
25
25
|
componentName: "MazRadio",
|
|
26
26
|
providedId: props.id
|
|
27
|
-
}), isSelected = computed(() => props.modelValue === props.value), radioSize = computed(() => {
|
|
27
|
+
}), inputRef = ref(), isFocused = ref(!1), isSelected = computed(() => props.modelValue === props.value), radioSize = computed(() => {
|
|
28
28
|
switch (props.size) {
|
|
29
29
|
case "xl":
|
|
30
30
|
return "2.25rem";
|
|
@@ -39,30 +39,22 @@ import '../assets/MazRadio.DKMFWwy_.css';const _hoisted_1 = ["for", "aria-checke
|
|
|
39
39
|
default:
|
|
40
40
|
return "1.625rem";
|
|
41
41
|
}
|
|
42
|
-
}), radioSelectedColor = computed(() => `hsl(var(--maz-${props.color}))`), radioBoxShadow = computed(() => {
|
|
43
|
-
if (props.error)
|
|
44
|
-
return "hsl(var(--maz-destructive))";
|
|
45
|
-
if (props.warning)
|
|
46
|
-
return "hsl(var(--maz-warning))";
|
|
47
|
-
if (props.success)
|
|
48
|
-
return "hsl(var(--maz-success))";
|
|
49
|
-
});
|
|
42
|
+
}), radioSelectedColor = computed(() => `hsl(var(--maz-${props.color}))`), radioBoxShadow = computed(() => props.error && !isFocused.value ? "hsl(var(--maz-destructive))" : props.warning && !isFocused.value ? "hsl(var(--maz-warning))" : props.success && !isFocused.value ? "hsl(var(--maz-success))" : ["transparent", "contrast"].includes(props.color) ? "hsl(var(--maz-muted))" : `hsl(var(--maz-${props.color}) / 60%)`);
|
|
50
43
|
function keyboardHandler(event) {
|
|
51
44
|
["Space"].includes(event.code) && (event.preventDefault(), emitValue());
|
|
52
45
|
}
|
|
53
46
|
function emitValue() {
|
|
54
47
|
emits("update:model-value", props.value), emits("change", props.value);
|
|
55
48
|
}
|
|
56
|
-
const inputRef = ref();
|
|
57
49
|
function onBlur(event) {
|
|
58
|
-
inputRef.value?.dispatchEvent(new Event("blur")), emits("blur", event);
|
|
50
|
+
isFocused.value = !1, inputRef.value?.dispatchEvent(new Event("blur")), emits("blur", event);
|
|
59
51
|
}
|
|
60
52
|
function onFocus(event) {
|
|
61
|
-
inputRef.value?.dispatchEvent(new Event("focus")), emits("focus", event);
|
|
53
|
+
isFocused.value = !0, inputRef.value?.dispatchEvent(new Event("focus")), emits("focus", event);
|
|
62
54
|
}
|
|
63
55
|
return (_ctx, _cache) => (openBlock(), createElementBlock("label", {
|
|
64
56
|
for: unref(instanceId),
|
|
65
|
-
class: normalizeClass(["m-radio m-reset-css", [{ "--
|
|
57
|
+
class: normalizeClass(["m-radio m-reset-css", [{ "--selected": isSelected.value, "--error": _ctx.error, "--warning": _ctx.warning, "--success": _ctx.success }, props.class]]),
|
|
66
58
|
tabindex: "0",
|
|
67
59
|
role: "radio",
|
|
68
60
|
style: normalizeStyle([_ctx.style, { "--radio-size": radioSize.value, "--radio-selected-color": radioSelectedColor.value, "--radio-box-shadow": radioBoxShadow.value }]),
|
|
@@ -105,7 +97,7 @@ import '../assets/MazRadio.DKMFWwy_.css';const _hoisted_1 = ["for", "aria-checke
|
|
|
105
97
|
])
|
|
106
98
|
], 46, _hoisted_1));
|
|
107
99
|
}
|
|
108
|
-
}), MazRadio = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
100
|
+
}), MazRadio = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bd84ba83"]]);
|
|
109
101
|
export {
|
|
110
102
|
MazRadio as default
|
|
111
103
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, createElementBlock, openBlock, createElementVNode, createCommentVNode, normalizeClass, Fragment, renderList, normalizeStyle, renderSlot, createVNode, Transition, withCtx, withDirectives, unref, vShow, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { MazCheck } from "@maz-ui/icons";
|
|
3
3
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
4
4
|
import '../assets/MazRadioButtons.BA4rjgK9.css';const _hoisted_1 = { class: "m-radio-buttons m-reset-css" }, _hoisted_2 = ["for", "aria-checked", "onKeydown", "onBlur", "onFocus"], _hoisted_3 = ["id", "name", "value", "onChange"], _hoisted_4 = {
|
|
5
5
|
key: 0,
|
|
@@ -96,7 +96,7 @@ import '../assets/MazRadioButtons.BA4rjgK9.css';const _hoisted_1 = { class: "m-r
|
|
|
96
96
|
}, [
|
|
97
97
|
createVNode(Transition, { name: "maz-radio-buttons-scale" }, {
|
|
98
98
|
default: withCtx(() => [
|
|
99
|
-
withDirectives(createVNode(unref(
|
|
99
|
+
withDirectives(createVNode(unref(MazCheck), { class: "maz-size-full" }, null, 512), [
|
|
100
100
|
[vShow, isSelected(option.value)]
|
|
101
101
|
])
|
|
102
102
|
]),
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, watch, onMounted, onBeforeUnmount, createBlock, openBlock, Teleport, createElementVNode, mergeProps, normalizeStyle, normalizeClass, nextTick } from "vue";
|
|
2
|
-
import { t as throttle } from "../chunks/throttle.DN8ARw0a.js";
|
|
3
2
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
4
|
-
import '../assets/MazReadingProgressBar.n1Is8_Y3.css';
|
|
3
|
+
import '../assets/MazReadingProgressBar.n1Is8_Y3.css';function throttle(func, limit) {
|
|
4
|
+
let inThrottle = !1, lastFunc, lastRan;
|
|
5
|
+
return function(...args) {
|
|
6
|
+
inThrottle ? (clearTimeout(lastFunc), lastFunc = setTimeout(() => {
|
|
7
|
+
Date.now() - lastRan >= limit && (func.apply(this, args), lastRan = Date.now());
|
|
8
|
+
}, Math.max(limit - (Date.now() - lastRan), 0))) : (func.apply(this, args), lastRan = Date.now(), inThrottle = !0);
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
12
|
__name: "MazReadingProgressBar",
|
|
6
13
|
props: {
|
|
7
14
|
height: { default: "4px" },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent, mergeModels, defineAsyncComponent, useTemplateRef, computed, useModel, ref, watch, createBlock, openBlock, normalizeStyle, normalizeClass, withCtx, createElementVNode, unref, createCommentVNode, renderSlot, createElementBlock, createVNode, Fragment, renderList, toDisplayString, withModifiers, mergeProps, nextTick } from "vue";
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, mergeModels, defineAsyncComponent, useTemplateRef, computed, useModel, ref, watch, createBlock, openBlock, normalizeStyle, normalizeClass, withCtx, createElementVNode, unref, createCommentVNode, renderSlot, createElementBlock, createVNode, Fragment, renderList, toDisplayString, withModifiers, mergeProps, createSlots, nextTick } from "vue";
|
|
2
|
+
import { MazMagnifyingGlass, MazNoSymbol, MazChevronDown } from "@maz-ui/icons";
|
|
3
3
|
import { u as useTranslations } from "../chunks/useTranslations.BXuww4ux.js";
|
|
4
4
|
import { i as isClient } from "../chunks/isClient.WI4oSt66.js";
|
|
5
5
|
import { u as useStringMatching, n as normalizeString } from "../chunks/useStringMatching.D5UvsCUS.js";
|
|
@@ -7,7 +7,7 @@ import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
|
7
7
|
import MazInput from "./MazInput.js";
|
|
8
8
|
import MazPopover from "./MazPopover.js";
|
|
9
9
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
10
|
-
import '../assets/MazSelect.
|
|
10
|
+
import '../assets/MazSelect.DEBsk61Q.css';let timeout = null;
|
|
11
11
|
function debounceCallback(callback, delay) {
|
|
12
12
|
timeout && clearTimeout(timeout), timeout = setTimeout(callback, delay);
|
|
13
13
|
}
|
|
@@ -151,6 +151,8 @@ const _hoisted_1 = ["aria-label"], _hoisted_2 = ["id"], _hoisted_3 = { class: "m
|
|
|
151
151
|
}, 1e3));
|
|
152
152
|
}
|
|
153
153
|
function mainInputKeyboardHandler(event) {
|
|
154
|
+
if (event.ctrlKey || event.metaKey || event.altKey)
|
|
155
|
+
return;
|
|
154
156
|
const keyPressed = event.key;
|
|
155
157
|
(keyPressed === "ArrowDown" || keyPressed === "ArrowUp" || /^[\dA-Za-z\u0400-\u04FF]$/.test(keyPressed)) && !isOpen.value && (event.preventDefault(), popoverComponent.value?.open()), /^[\dA-Za-z\u0400-\u04FF]$/.test(keyPressed) && props.search && focusSearchInputAndSetQuery(keyPressed);
|
|
156
158
|
}
|
|
@@ -240,6 +242,7 @@ const _hoisted_1 = ["aria-label"], _hoisted_2 = ["id"], _hoisted_3 = { class: "m
|
|
|
240
242
|
offset: 0,
|
|
241
243
|
"prefer-position": _ctx.listPosition,
|
|
242
244
|
"fallback-position": "top-start",
|
|
245
|
+
"position-reference": ".m-input-wrapper",
|
|
243
246
|
onClose: onCloseList,
|
|
244
247
|
onOpen: onOpenList
|
|
245
248
|
}, {
|
|
@@ -266,10 +269,7 @@ const _hoisted_1 = ["aria-label"], _hoisted_2 = ["id"], _hoisted_3 = { class: "m
|
|
|
266
269
|
onFocus: _cache[2] || (_cache[2] = ($event) => emits("focus", $event)),
|
|
267
270
|
onBlur: _cache[3] || (_cache[3] = ($event) => emits("blur", $event)),
|
|
268
271
|
onKeydown: mainInputKeyboardHandler
|
|
269
|
-
}), {
|
|
270
|
-
"left-icon": withCtx(() => [
|
|
271
|
-
renderSlot(_ctx.$slots, "left-icon", {}, void 0, !0)
|
|
272
|
-
]),
|
|
272
|
+
}), createSlots({
|
|
273
273
|
"right-icon": withCtx(() => [
|
|
274
274
|
renderSlot(_ctx.$slots, "right-icon", {}, () => [
|
|
275
275
|
createElementVNode("button", {
|
|
@@ -278,12 +278,20 @@ const _hoisted_1 = ["aria-label"], _hoisted_2 = ["id"], _hoisted_3 = { class: "m
|
|
|
278
278
|
class: "m-select-input__toggle-button maz-custom",
|
|
279
279
|
"aria-label": `${isOpen.value ? "collapse" : "expand"} list of options`
|
|
280
280
|
}, [
|
|
281
|
-
createVNode(unref(
|
|
281
|
+
createVNode(unref(MazChevronDown), { class: "m-select-chevron" })
|
|
282
282
|
], 8, _hoisted_1)
|
|
283
283
|
], !0)
|
|
284
284
|
]),
|
|
285
|
-
_:
|
|
286
|
-
},
|
|
285
|
+
_: 2
|
|
286
|
+
}, [
|
|
287
|
+
_ctx.$slots["left-icon"] ? {
|
|
288
|
+
name: "left-icon",
|
|
289
|
+
fn: withCtx(() => [
|
|
290
|
+
renderSlot(_ctx.$slots, "left-icon", {}, void 0, !0)
|
|
291
|
+
]),
|
|
292
|
+
key: "0"
|
|
293
|
+
} : void 0
|
|
294
|
+
]), 1040, ["id", "required", "border-active", "color", "model-value", "size", "block", "placeholder", "label", "autocomplete", "disabled"])
|
|
287
295
|
]),
|
|
288
296
|
default: withCtx(() => [
|
|
289
297
|
createElementVNode("div", {
|
|
@@ -318,11 +326,11 @@ const _hoisted_1 = ["aria-label"], _hoisted_2 = ["id"], _hoisted_3 = { class: "m
|
|
|
318
326
|
autocomplete: "off",
|
|
319
327
|
block: "",
|
|
320
328
|
class: "m-select-list__search-input maz-flex-none",
|
|
321
|
-
"left-icon": unref(
|
|
329
|
+
"left-icon": unref(MazMagnifyingGlass)
|
|
322
330
|
}, null, 8, ["modelValue", "disabled", "color", "placeholder", "left-icon"])) : createCommentVNode("", !0),
|
|
323
331
|
!optionList.value || optionList.value.length <= 0 ? renderSlot(_ctx.$slots, "no-results", { key: 1 }, () => [
|
|
324
332
|
createElementVNode("span", _hoisted_3, [
|
|
325
|
-
createVNode(unref(
|
|
333
|
+
createVNode(unref(MazNoSymbol), { class: "maz-size-6 maz-text-foreground" })
|
|
326
334
|
])
|
|
327
335
|
], !0) : (openBlock(), createElementBlock("div", {
|
|
328
336
|
key: 2,
|
|
@@ -370,7 +378,7 @@ const _hoisted_1 = ["aria-label"], _hoisted_2 = ["id"], _hoisted_3 = { class: "m
|
|
|
370
378
|
_: 3
|
|
371
379
|
}, 8, ["modelValue", "class", "style", "block", "prefer-position"]));
|
|
372
380
|
}
|
|
373
|
-
}), MazSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
381
|
+
}), MazSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-40bc7a9e"]]);
|
|
374
382
|
export {
|
|
375
383
|
MazSelect as default
|
|
376
384
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, computed, useSlots, ref, createElementBlock, openBlock, normalizeStyle, Fragment, renderList, createCommentVNode, createElementVNode, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, createTextVNode, toDisplayString, createVNode, withCtx } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { MazCheckCircle, MazExclamationTriangle, MazExclamationCircle } from "@maz-ui/icons";
|
|
3
3
|
import MazExpandAnimation from "./MazExpandAnimation.js";
|
|
4
4
|
import MazIcon from "./MazIcon.js";
|
|
5
5
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
6
|
-
import '../assets/MazStepper.
|
|
6
|
+
import '../assets/MazStepper.DtWZmm-f.css';const _hoisted_1 = ["id", "disabled", "onClick"], _hoisted_2 = { class: "m-stepper__header__wrapper" }, _hoisted_3 = { class: "m-stepper__count --primary" }, _hoisted_4 = { class: "m-stepper__count__circle" }, _hoisted_5 = { class: "m-stepper__header__content" }, _hoisted_6 = { class: "m-stepper__title" }, _hoisted_7 = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "m-stepper__subtitle"
|
|
9
9
|
}, _hoisted_8 = {
|
|
@@ -33,7 +33,7 @@ import '../assets/MazStepper.DYMde9uq.css';const _hoisted_1 = ["id", "disabled",
|
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
function getStepStateData(step) {
|
|
36
|
-
return isStepSuccess(step) ? { icon:
|
|
36
|
+
return isStepSuccess(step) ? { icon: MazCheckCircle, class: "--success" } : isStepWarning(step) ? { icon: MazExclamationTriangle, class: "--warning" } : isStepError(step) ? { icon: MazExclamationCircle, class: "--error" } : { class: "--normal" };
|
|
37
37
|
}
|
|
38
38
|
function getStepIcon(step) {
|
|
39
39
|
return __props.steps?.[step - 1]?.icon;
|
|
@@ -148,7 +148,7 @@ import '../assets/MazStepper.DYMde9uq.css';const _hoisted_1 = ["id", "disabled",
|
|
|
148
148
|
], 64))), 128))
|
|
149
149
|
], 4));
|
|
150
150
|
}
|
|
151
|
-
}), MazStepper = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
151
|
+
}), MazStepper = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c6fcb131"]]);
|
|
152
152
|
export {
|
|
153
153
|
MazStepper as default
|
|
154
154
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as _sfc_main } from "../chunks/MazTable.vue_vue_type_script_setup_true_lang.
|
|
2
|
-
import { m } from "../chunks/MazTable.vue_vue_type_script_setup_true_lang.
|
|
1
|
+
import { _ as _sfc_main } from "../chunks/MazTable.vue_vue_type_script_setup_true_lang.CK2bk5tI.js";
|
|
2
|
+
import { m } from "../chunks/MazTable.vue_vue_type_script_setup_true_lang.CK2bk5tI.js";
|
|
3
3
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
4
|
-
import '../assets/MazTable.
|
|
4
|
+
import '../assets/MazTable.DMlQdImb.css';const MazTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3f352ade"]]);
|
|
5
5
|
export {
|
|
6
6
|
MazTable as default,
|
|
7
7
|
m as mazTableKey
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { useInjectStrict } from "../composables/useInjectStrict.js";
|
|
3
|
-
import { m as mazTableKey } from "../chunks/MazTable.vue_vue_type_script_setup_true_lang.
|
|
3
|
+
import { m as mazTableKey } from "../chunks/MazTable.vue_vue_type_script_setup_true_lang.CK2bk5tI.js";
|
|
4
4
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
5
5
|
import '../assets/MazTableCell.BPgmqAMD.css';const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "MazTableCell",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { useInjectStrict } from "../composables/useInjectStrict.js";
|
|
3
|
-
import { m as mazTableKey } from "../chunks/MazTable.vue_vue_type_script_setup_true_lang.
|
|
3
|
+
import { m as mazTableKey } from "../chunks/MazTable.vue_vue_type_script_setup_true_lang.CK2bk5tI.js";
|
|
4
4
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
5
5
|
import '../assets/MazTableRow.B78Bd4Kv.css';const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "MazTableRow",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
2
|
import { useInjectStrict } from "../composables/useInjectStrict.js";
|
|
3
|
-
import { m as mazTableKey } from "../chunks/MazTable.vue_vue_type_script_setup_true_lang.
|
|
3
|
+
import { m as mazTableKey } from "../chunks/MazTable.vue_vue_type_script_setup_true_lang.CK2bk5tI.js";
|
|
4
4
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
5
5
|
import '../assets/MazTableTitle.BjJMgQFY.css';const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "MazTableTitle",
|