maz-ui 4.0.0-beta.5 → 4.0.0-beta.7
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/{MazAnimatedCounter.CTG-PC5W.css → MazAnimatedCounter.DkZNPRLp.css} +1 -1
- package/dist/assets/MazAnimatedText.DDqCxrFX.css +1 -0
- package/dist/assets/MazBackdrop.BnhcmjbP.css +1 -0
- package/dist/assets/{MazBtn.BnRxVlqS.css → MazBtn.DUBbj2mt.css} +1 -1
- package/dist/assets/{MazCardSpotlight.Dy-wuLQq.css → MazCardSpotlight.IbPp_y0j.css} +1 -1
- package/dist/assets/MazCheckbox.CFqw9ybT.css +1 -0
- package/dist/assets/MazChecklist.BzF5KtZ3.css +1 -0
- package/dist/assets/MazDatePicker.8GyrtM-j.css +1 -0
- package/dist/assets/{MazDropzone.DafxQwbq.css → MazDropzone.-8lzCrxJ.css} +1 -1
- package/dist/assets/MazInput.BcUsJg7p.css +1 -0
- package/dist/assets/MazInputPhoneNumber.CrXS7DOY.css +1 -0
- package/dist/assets/MazInputTags.DzTGy9z3.css +1 -0
- package/dist/assets/MazLink.wJoKRsCP.css +1 -0
- package/dist/assets/MazPickerCalendarMonth.Boe_8k4x.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.DzCAfuWw.css +1 -0
- package/dist/assets/MazPullToRefresh.BQ64UvzA.css +1 -0
- package/dist/assets/MazRadio.XGYnbTuB.css +1 -0
- package/dist/assets/MazReadingProgressBar.CwBVXE3g.css +1 -0
- package/dist/assets/MazSelect.Cljh3PVV.css +1 -0
- package/dist/assets/{MazSelectCountry.9RTcDxtM.css → MazSelectCountry.CdNTQPhr.css} +1 -1
- package/dist/assets/{MazSlider.D5SgmZLH.css → MazSlider.y4qpnD0N.css} +1 -1
- 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/{MazTabsBar.B9N_jdqU.css → MazTabsBar.gcS2Fc-B.css} +1 -1
- package/dist/assets/MazTextarea.DME7BHS5.css +1 -0
- package/dist/assets/{PhoneInput.CyWO76iq.css → PhoneInput.DBLH22G1.css} +1 -1
- package/dist/assets/{fullscreen-img.pvt6196l.css → fullscreen-img.Bkuz1GOX.css} +1 -1
- package/dist/assets/{toast.kunueRvo.css → toast.CC2VQab8.css} +1 -1
- package/dist/chunks/{MazDatePicker.Bgd0WwZk.js → MazDatePicker.De3Ltb2F.js} +9 -29
- package/dist/chunks/{MazDialogPromise.vue_vue_type_script_setup_true_lang.BQvDEofz.js → MazDialogConfirm.vue_vue_type_script_setup_true_lang.Df9N-wrT.js} +71 -21
- package/dist/chunks/{MazDropdown.vue_vue_type_style_index_0_lang.WRjG5bff.js → MazDropdown.vue_vue_type_style_index_0_lang.BES3jpuw.js} +8 -11
- 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/{MazInputPhoneNumber.B7mxCHgU.js → MazInputPhoneNumber.DBncAmC5.js} +14 -12
- 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.DKXNI8O4.js} +1 -1
- package/dist/chunks/{MazPickerCalendarMonth.Df2qar5v.js → MazPickerCalendarMonth.DKBqgrNp.js} +5 -5
- package/dist/chunks/{MazPickerCalendarSwitcher.DyrEWPLk.js → MazPickerCalendarSwitcher.CzIZol3Z.js} +4 -4
- package/dist/chunks/{MazPickerContainer.B4fyKYAE.js → MazPickerContainer.Mrh-Q52I.js} +1 -1
- package/dist/chunks/{MazPickerHeader.DoXGZZFX.js → MazPickerHeader.Bm9vIrtB.js} +1 -1
- package/dist/chunks/{MazPickerMonthSwitcher.CXuVHGVq.js → MazPickerMonthSwitcher.BSD2GtY6.js} +5 -5
- package/dist/chunks/{MazPickerTime.CueS5GPb.js → MazPickerTime.D0hilq5b.js} +1 -1
- package/dist/chunks/{MazPickerYearSwitcher.DNdhvfKw.js → MazPickerYearSwitcher.BIUYJMvj.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.BcTw9Tyh.js} +10 -10
- package/dist/chunks/{PhoneInput.tDA-TWr5.js → PhoneInput.iFkRoIFk.js} +5 -4
- package/dist/chunks/{utils.D9NiqfdV.js → dom-events.Bbe7wDQl.js} +163 -114
- package/dist/chunks/{fullscreen-img.directive.ClMlhEtN.js → fullscreen-img.directive.Be383en8.js} +6 -6
- package/dist/chunks/{lazy-img.directive.D5zCo3Zi.js → lazy-img.directive.BLFnGqQa.js} +1 -1
- package/dist/chunks/{useTranslations.BXuww4ux.js → useTranslations.D5aoYwD7.js} +1 -1
- package/dist/chunks/{vClickOutside.C69k0jaG.js → vClickOutside.DIOiluy0.js} +1 -1
- package/dist/components/MazAccordion.js +4 -4
- package/dist/components/MazAnimatedCounter.js +3 -3
- package/dist/components/MazAnimatedText.js +2 -2
- package/dist/components/MazAvatar.js +2 -2
- package/dist/components/MazBackdrop.js +3 -3
- package/dist/components/MazBottomSheet.js +2 -2
- package/dist/components/MazBtn.js +5 -4
- package/dist/components/MazCard.js +2 -2
- package/dist/components/MazCardSpotlight.js +4 -4
- package/dist/components/MazCarousel.js +4 -4
- package/dist/components/MazCheckbox.js +12 -14
- package/dist/components/MazChecklist.js +6 -6
- package/dist/components/MazDatePicker.js +1 -1
- package/dist/components/MazDialog.js +2 -2
- package/dist/components/MazDialogConfirm.js +6 -0
- package/dist/components/MazDrawer.js +2 -2
- package/dist/components/MazDropdown.js +1 -1
- package/dist/components/MazDropzone.js +10 -10
- package/dist/components/MazGallery.js +4 -4
- package/dist/components/MazInput.js +24 -19
- package/dist/components/MazInputNumber.js +1 -1
- package/dist/components/MazInputPhoneNumber.js +1 -1
- package/dist/components/MazInputPrice.js +1 -1
- package/dist/components/MazInputTags.js +4 -4
- package/dist/components/MazLazyImg.js +1 -1
- package/dist/components/MazLink.js +11 -7
- package/dist/components/MazPagination.js +7 -7
- package/dist/components/MazPopover.js +165 -79
- package/dist/components/MazPullToRefresh.js +3 -3
- package/dist/components/MazRadio.js +8 -16
- package/dist/components/MazRadioButtons.js +2 -2
- package/dist/components/MazReadingProgressBar.js +10 -3
- package/dist/components/MazSelect.js +23 -15
- package/dist/components/MazSelectCountry.js +9 -8
- package/dist/components/MazSlider.js +2 -2
- 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/MazTabsBar.js +6 -6
- package/dist/components/MazTextarea.js +2 -2
- package/dist/components/index.js +9 -9
- package/dist/composables/useDisplayNames.js +7 -1
- package/dist/composables/useDropzone.js +6 -6
- package/dist/composables/useFormField.js +15 -18
- package/dist/composables/useFormValidator.js +41 -28
- package/dist/composables/useWindowSize.js +1 -1
- package/dist/css/main.css +1 -1
- package/dist/directives/index.js +3 -3
- package/dist/directives/vClickOutside.js +1 -1
- package/dist/directives/vFullscreenImg.js +1 -1
- package/dist/directives/vLazyImg.js +2 -2
- package/dist/directives/vTooltip.js +96 -59
- package/dist/plugins/dialog.js +3 -3
- package/dist/plugins/maz-ui.js +121 -56
- package/dist/plugins/toast.js +15 -18
- package/dist/resolvers/MazModulesResolver.js +1 -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/MazBtn.vue.d.ts +1 -0
- package/dist/types/components/MazCheckbox.vue.d.ts +0 -6
- package/dist/types/components/MazChecklist.vue.d.ts +1 -1
- package/dist/types/components/MazDatePicker.vue.d.ts +4 -12
- package/dist/types/components/MazDialogConfirm/useMazDialogConfirm.d.ts +45 -0
- package/dist/types/components/{MazDialogPromise.vue.d.ts → MazDialogConfirm.vue.d.ts} +32 -9
- package/dist/types/components/MazInput.vue.d.ts +7 -0
- package/dist/types/components/MazInputNumber.vue.d.ts +1 -1
- package/dist/types/components/MazInputPhoneNumber.vue.d.ts +10 -2
- package/dist/types/components/MazLink.vue.d.ts +11 -0
- package/dist/types/components/MazPopover.vue.d.ts +8 -5
- package/dist/types/components/MazSelect.vue.d.ts +1 -1
- package/dist/types/components/MazSelectCountry.vue.d.ts +10 -1
- 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 +3 -3
- package/dist/types/composables/index.d.ts +1 -1
- package/dist/types/composables/useDisplayNames.d.ts +3 -3
- package/dist/types/composables/useDropzone.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/composables/useIdleTimeout.d.ts +1 -1
- package/dist/types/composables/useSwipe.d.ts +1 -1
- package/dist/types/composables/useUserVisibility.d.ts +1 -1
- package/dist/types/directives/vTooltip.d.ts +2 -2
- package/dist/types/plugins/dialog/DialogHandler.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 +19 -15
- package/dist/assets/MazAccordion.esK3rR4p.css +0 -1
- package/dist/assets/MazAnimatedText.BrOwWuqf.css +0 -1
- package/dist/assets/MazBackdrop.DNpnLh63.css +0 -1
- package/dist/assets/MazCheckbox.BFo5eYS6.css +0 -1
- package/dist/assets/MazChecklist.CWK_Gl-t.css +0 -1
- package/dist/assets/MazDatePicker.V5JwKPrQ.css +0 -1
- package/dist/assets/MazInput.DW2KOJHY.css +0 -1
- package/dist/assets/MazInputPhoneNumber.C-Nw3080.css +0 -1
- package/dist/assets/MazInputTags.B_s9J3sw.css +0 -1
- package/dist/assets/MazLink.CCfbrUs0.css +0 -1
- package/dist/assets/MazPickerCalendarMonth.zkrPVHDv.css +0 -1
- package/dist/assets/MazPickerMonthSwitcher.168v7Hs1.css +0 -1
- package/dist/assets/MazPopover.COR-tym7.css +0 -1
- package/dist/assets/MazPullToRefresh.DABqbGtK.css +0 -1
- package/dist/assets/MazRadio.DKMFWwy_.css +0 -1
- package/dist/assets/MazReadingProgressBar.n1Is8_Y3.css +0 -1
- package/dist/assets/MazSelect.DZZpDg8z.css +0 -1
- package/dist/assets/MazSwitch.Z1ZMm7tx.css +0 -1
- package/dist/assets/MazTextarea.Dz11mUeK.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/components/MazDialogPromise.js +0 -6
- package/dist/types/components/MazDialogPromise/useMazDialogPromise.d.ts +0 -54
- package/dist/types/composables/useFormValidator/utils.d.ts +0 -116
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, createVNode, TransitionGroup, withCtx, Fragment, renderList, withModifiers, unref, createTextVNode, toDisplayString, mergeProps, withKeys } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { MazTrash } from "@maz-ui/icons";
|
|
3
3
|
import { t as truthyFilter } from "../chunks/truthyFilter.C2WOKUCG.js";
|
|
4
4
|
import MazBtn from "./MazBtn.js";
|
|
5
5
|
import MazInput from "./MazInput.js";
|
|
6
6
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
7
|
-
import '../assets/MazInputTags.
|
|
7
|
+
import '../assets/MazInputTags.DzTGy9z3.css';const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
inheritAttrs: !1,
|
|
9
9
|
__name: "MazInputTags",
|
|
10
10
|
props: {
|
|
@@ -94,7 +94,7 @@ import '../assets/MazInputTags.B_s9J3sw.css';const _sfc_main = /* @__PURE__ */ d
|
|
|
94
94
|
disabled: _ctx.disabled,
|
|
95
95
|
size: buttonSize.value,
|
|
96
96
|
color: tagsHoveredId.value === id || lastIdToDelete.value === id ? "destructive" : _ctx.color,
|
|
97
|
-
"right-icon": tagsHoveredId.value === id || lastIdToDelete.value === id ? unref(
|
|
97
|
+
"right-icon": tagsHoveredId.value === id || lastIdToDelete.value === id ? unref(MazTrash) : void 0,
|
|
98
98
|
onClick: withModifiers(($event) => removeTag(id), ["stop"]),
|
|
99
99
|
onMouseenter: ($event) => tagsHoveredId.value = id,
|
|
100
100
|
onFocus: ($event) => tagsHoveredId.value = id,
|
|
@@ -139,7 +139,7 @@ import '../assets/MazInputTags.B_s9J3sw.css';const _sfc_main = /* @__PURE__ */ d
|
|
|
139
139
|
}), null, 16, ["modelValue", "placeholder", "label", "aria-label", "error", "hint", "success", "warning", "disabled", "color", "block", "size"])
|
|
140
140
|
], 38));
|
|
141
141
|
}
|
|
142
|
-
}), MazInputTags = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
142
|
+
}), MazInputTags = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-93a9594d"]]);
|
|
143
143
|
export {
|
|
144
144
|
MazInputTags as default
|
|
145
145
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, defineAsyncComponent, computed, withDirectives, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, createCommentVNode, renderSlot, Fragment, renderList, mergeProps, createVNode, unref } from "vue";
|
|
2
|
-
import { d as directive } from "../chunks/lazy-img.directive.
|
|
2
|
+
import { d as directive } from "../chunks/lazy-img.directive.BLFnGqQa.js";
|
|
3
3
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
4
4
|
import '../assets/MazLazyImg.NlPRN3Nk.css';const _hoisted_1 = ["data-lazy-srcset", "media"], _hoisted_2 = ["alt"], _hoisted_3 = {
|
|
5
5
|
key: 0,
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { defineComponent, defineAsyncComponent, computed, createBlock, openBlock, resolveDynamicComponent, mergeProps, unref, withCtx, renderSlot, createCommentVNode, createVNode } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { MazArrowTopRightOnSquare } from "@maz-ui/icons";
|
|
3
3
|
import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
4
4
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
5
|
-
import '../assets/MazLink.
|
|
5
|
+
import '../assets/MazLink.wJoKRsCP.css';const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "MazLink",
|
|
7
7
|
props: {
|
|
8
|
+
class: {},
|
|
9
|
+
style: {},
|
|
8
10
|
as: {},
|
|
9
11
|
id: {},
|
|
10
12
|
title: {},
|
|
@@ -34,7 +36,8 @@ import '../assets/MazLink.CCfbrUs0.css';const _sfc_main = /* @__PURE__ */ define
|
|
|
34
36
|
"--underline": _ctx.underline,
|
|
35
37
|
"--underline-hover": !_ctx.underline && _ctx.underlineHover
|
|
36
38
|
},
|
|
37
|
-
`--${_ctx.color}
|
|
39
|
+
`--${_ctx.color}`,
|
|
40
|
+
__props.class
|
|
38
41
|
]],
|
|
39
42
|
to: _ctx.to,
|
|
40
43
|
href: _ctx.href,
|
|
@@ -44,7 +47,8 @@ import '../assets/MazLink.CCfbrUs0.css';const _sfc_main = /* @__PURE__ */ define
|
|
|
44
47
|
download: !isButton.value && _ctx.download,
|
|
45
48
|
"aria-label": !isButton.value && _ctx.ariaLabel,
|
|
46
49
|
type: isButton.value && "button",
|
|
47
|
-
disabled: isButton.value && _ctx.disabled
|
|
50
|
+
disabled: isButton.value && _ctx.disabled,
|
|
51
|
+
style: __props.style
|
|
48
52
|
}, _ctx.$attrs), {
|
|
49
53
|
default: withCtx(() => [
|
|
50
54
|
renderSlot(_ctx.$slots, "left-icon", {}, () => [
|
|
@@ -61,13 +65,13 @@ import '../assets/MazLink.CCfbrUs0.css';const _sfc_main = /* @__PURE__ */ define
|
|
|
61
65
|
}, null, 8, ["name"])) : _ctx.rightIcon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.rightIcon), { key: 1 })) : createCommentVNode("", !0)
|
|
62
66
|
], !0),
|
|
63
67
|
_ctx.autoExternal && _ctx.target === "_blank" ? renderSlot(_ctx.$slots, "external-icon", { key: 0 }, () => [
|
|
64
|
-
createVNode(unref(
|
|
68
|
+
createVNode(unref(MazArrowTopRightOnSquare))
|
|
65
69
|
], !0) : createCommentVNode("", !0)
|
|
66
70
|
]),
|
|
67
71
|
_: 3
|
|
68
|
-
}, 16, ["id", "class", "to", "href", "title", "target", "rel", "download", "aria-label", "type", "disabled"]));
|
|
72
|
+
}, 16, ["id", "class", "to", "href", "title", "target", "rel", "download", "aria-label", "type", "disabled", "style"]));
|
|
69
73
|
}
|
|
70
|
-
}), MazLink = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
74
|
+
}), MazLink = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2e7eb49f"]]);
|
|
71
75
|
export {
|
|
72
76
|
MazLink as default
|
|
73
77
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, unref, createElementVNode, createVNode, mergeProps, withCtx, renderSlot, createTextVNode, toDisplayString, Fragment, renderList, createBlock, createCommentVNode } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { u as useTranslations } from "../chunks/useTranslations.
|
|
2
|
+
import { MazChevronDoubleLeft, MazChevronLeft, MazEllipsisHorizontal } from "@maz-ui/icons";
|
|
3
|
+
import { u as useTranslations } from "../chunks/useTranslations.D5aoYwD7.js";
|
|
4
4
|
import MazBtn from "./MazBtn.js";
|
|
5
5
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
6
6
|
import '../assets/MazPagination.C6cUh-p4.css';const _hoisted_1 = ["aria-label"], _hoisted_2 = { class: "maz-sr-only" }, _hoisted_3 = { class: "maz-sr-only" }, _hoisted_4 = ["id"], _hoisted_5 = { class: "maz-sr-only" }, _hoisted_6 = { class: "maz-sr-only" }, _hoisted_7 = { class: "maz-sr-only" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -81,7 +81,7 @@ import '../assets/MazPagination.C6cUh-p4.css';const _hoisted_1 = ["aria-label"],
|
|
|
81
81
|
createTextVNode(toDisplayString(unref(t)("pagination.screenReader.firstPage", { page: 1 })), 1)
|
|
82
82
|
], !0)
|
|
83
83
|
]),
|
|
84
|
-
createVNode(unref(
|
|
84
|
+
createVNode(unref(MazChevronDoubleLeft))
|
|
85
85
|
]),
|
|
86
86
|
_: 3
|
|
87
87
|
}, 16, ["disabled", "aria-setsize", "size"])
|
|
@@ -101,7 +101,7 @@ import '../assets/MazPagination.C6cUh-p4.css';const _hoisted_1 = ["aria-label"],
|
|
|
101
101
|
createTextVNode(toDisplayString(unref(t)("pagination.screenReader.previousPage", { page: previousPage.value })), 1)
|
|
102
102
|
], !0)
|
|
103
103
|
]),
|
|
104
|
-
createVNode(unref(
|
|
104
|
+
createVNode(unref(MazChevronLeft))
|
|
105
105
|
]),
|
|
106
106
|
_: 3
|
|
107
107
|
}, 16, ["disabled", "aria-label", "aria-setsize", "aria-posinset", "size"])
|
|
@@ -142,7 +142,7 @@ import '../assets/MazPagination.C6cUh-p4.css';const _hoisted_1 = ["aria-label"],
|
|
|
142
142
|
key: 1,
|
|
143
143
|
ref_for: !0
|
|
144
144
|
}, buttonsPropsMerged.value, { class: "flex-center flex p-2" }), [
|
|
145
|
-
createVNode(unref(
|
|
145
|
+
createVNode(unref(MazEllipsisHorizontal))
|
|
146
146
|
], 16)) : createCommentVNode("", !0)
|
|
147
147
|
], 8, _hoisted_4))), 128)),
|
|
148
148
|
createElementVNode("li", null, [
|
|
@@ -160,7 +160,7 @@ import '../assets/MazPagination.C6cUh-p4.css';const _hoisted_1 = ["aria-label"],
|
|
|
160
160
|
createTextVNode(toDisplayString(unref(t)("pagination.screenReader.nextPage", { page: nextPage.value })), 1)
|
|
161
161
|
], !0)
|
|
162
162
|
]),
|
|
163
|
-
createVNode(unref(
|
|
163
|
+
createVNode(unref(MazChevronLeft), { class: "-maz-rotate-180" })
|
|
164
164
|
]),
|
|
165
165
|
_: 3
|
|
166
166
|
}, 16, ["disabled", "aria-label", "aria-setsize", "aria-posinset", "size"])
|
|
@@ -180,7 +180,7 @@ import '../assets/MazPagination.C6cUh-p4.css';const _hoisted_1 = ["aria-label"],
|
|
|
180
180
|
createTextVNode(toDisplayString(unref(t)("pagination.screenReader.lastPage", { page: _ctx.totalPages })), 1)
|
|
181
181
|
], !0)
|
|
182
182
|
]),
|
|
183
|
-
createVNode(unref(
|
|
183
|
+
createVNode(unref(MazChevronDoubleLeft), { class: "-maz-rotate-180" })
|
|
184
184
|
]),
|
|
185
185
|
_: 3
|
|
186
186
|
}, 16, ["disabled", "aria-label", "aria-setsize", "aria-posinset", "size"])
|
|
@@ -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
|
-
import { d as directive } from "../chunks/vClickOutside.
|
|
4
|
+
import { d as directive } from "../chunks/vClickOutside.DIOiluy0.js";
|
|
6
5
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
7
|
-
import '../assets/MazPopover.
|
|
6
|
+
import '../assets/MazPopover.DzCAfuWw.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,9 +45,19 @@ 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
|
-
const panelId = computed(() => `${triggerId.value}-panel`), panelStyles = ref(), rootStyles = computed(() => attrs.style), isTouchDevice = computed(() => isClient() ? "ontouchstart" in
|
|
60
|
+
const panelId = computed(() => `${triggerId.value}-panel`), panelStyles = ref(), rootStyles = computed(() => attrs.style), isTouchDevice = computed(() => isClient() ? "ontouchstart" in globalThis || 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")
|
|
53
62
|
return {};
|
|
54
63
|
const events = {};
|
|
@@ -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 && (globalThis.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
|
|
@@ -275,7 +361,7 @@ import '../assets/MazPopover.COR-tym7.css';const _hoisted_1 = ["id", "aria-expan
|
|
|
275
361
|
toggle,
|
|
276
362
|
/**
|
|
277
363
|
* Check if the popover is open
|
|
278
|
-
* @type {
|
|
364
|
+
* @type {ComputedRef<boolean>}
|
|
279
365
|
* @description Reactive reference to the popover open state
|
|
280
366
|
* @usage `const isPopoverOpen = mazPopoverInstance.value?.isOpen`
|
|
281
367
|
*/
|
|
@@ -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-4104b159"]]);
|
|
356
442
|
export {
|
|
357
443
|
MazPopover as default
|
|
358
444
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, defineAsyncComponent, computed, ref, watch, onUnmounted, createElementBlock, openBlock, normalizeClass, createCommentVNode, renderSlot, normalizeStyle, createElementVNode, createVNode, unref } from "vue";
|
|
2
2
|
import { i as isClient } from "../chunks/isClient.WI4oSt66.js";
|
|
3
3
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
4
|
-
import '../assets/MazPullToRefresh.
|
|
4
|
+
import '../assets/MazPullToRefresh.BQ64UvzA.css';function isStandaloneMode() {
|
|
5
5
|
if (!isClient())
|
|
6
6
|
return !1;
|
|
7
|
-
const nav = navigator, isStandalone =
|
|
7
|
+
const nav = navigator, isStandalone = globalThis.matchMedia("(display-mode: standalone)").matches;
|
|
8
8
|
return nav.standalone || isStandalone;
|
|
9
9
|
}
|
|
10
10
|
const _hoisted_1 = {
|
|
@@ -144,7 +144,7 @@ const _hoisted_1 = {
|
|
|
144
144
|
renderSlot(_ctx.$slots, "default", {}, void 0, !0)
|
|
145
145
|
], 2));
|
|
146
146
|
}
|
|
147
|
-
}), MazPullToRefresh = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
147
|
+
}), MazPullToRefresh = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-67a0e41a"]]);
|
|
148
148
|
export {
|
|
149
149
|
MazPullToRefresh as default
|
|
150
150
|
};
|
|
@@ -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
|
};
|