maz-ui 4.0.0-beta.8 → 4.0.0
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/README.md +1 -1
- package/dist/assets/{MazAnimatedCounter.DkZNPRLp.css → MazAnimatedCounter.LK7oyUrl.css} +1 -1
- package/dist/assets/MazAnimatedText.CHvAudRU.css +1 -0
- package/dist/assets/MazBackdrop.09bziTPM.css +1 -0
- package/dist/assets/{MazBadge.DN8tdE8_.css → MazBadge.ChI2DaTU.css} +1 -1
- package/dist/assets/MazBtn.BvC8ftmc.css +1 -0
- package/dist/assets/MazCard.Dv02b2P6.css +1 -0
- package/dist/assets/MazCardSpotlight.B7lFD7Pi.css +1 -0
- package/dist/assets/MazCarousel.BLHpZIu5.css +1 -0
- package/dist/assets/MazCheckbox.Di88TJ3e.css +1 -0
- package/dist/assets/MazChecklist.Bu8wERn6.css +1 -0
- package/dist/assets/MazDatePicker.G6V7jjin.css +1 -0
- package/dist/assets/{MazDialog.DEmRfAv7.css → MazDialog.TS06kRcu.css} +1 -1
- package/dist/assets/MazDropdown.D90GEKDB.css +1 -0
- package/dist/assets/MazDropzone._2HwHowu.css +1 -0
- package/dist/assets/MazGallery.BTNB3D6k.css +1 -0
- package/dist/assets/MazInput.BvuxfP9k.css +1 -0
- package/dist/assets/MazInputCode.BYi64Mof.css +1 -0
- package/dist/assets/MazInputPhoneNumber.Baeyskod.css +1 -0
- package/dist/assets/MazInputTags.is2jSJk-.css +1 -0
- package/dist/assets/MazLazyImg.DO7a4PDm.css +1 -0
- package/dist/assets/MazLink.CFscNMFr.css +1 -0
- package/dist/assets/{MazPagination.C6cUh-p4.css → MazPagination.BUhf2Qr7.css} +1 -1
- package/dist/assets/MazPickerCalendar.e-eF8E7m.css +1 -0
- package/dist/assets/MazPickerCalendarMonth.DpijYq-O.css +1 -0
- package/dist/assets/{MazPickerCalendarSwitcher.uni8vJJv.css → MazPickerCalendarSwitcher.ByAVjy00.css} +1 -1
- package/dist/assets/{MazPickerContainer.k3DGjyHC.css → MazPickerContainer.DmHuaFqE.css} +1 -1
- package/dist/assets/{MazPickerHeader.ZYCJY5bX.css → MazPickerHeader.D7JXgA3q.css} +1 -1
- package/dist/assets/MazPickerMonthSwitcher.BJGGy53r.css +1 -0
- package/dist/assets/{MazPickerYearSwitcher.Cn-nS-Vv.css → MazPickerYearSwitcher.DPD1_dfz.css} +1 -1
- package/dist/assets/MazPopover.DIE65uVT.css +1 -0
- package/dist/assets/MazPullToRefresh.C0HGlupm.css +1 -0
- package/dist/assets/MazRadio.B0B3P1QS.css +1 -0
- package/dist/assets/MazRadioButtons.CfiHq8H9.css +1 -0
- package/dist/assets/MazReadingProgressBar.dzfwQFNg.css +1 -0
- package/dist/assets/MazSelect.DIwjMD31.css +1 -0
- package/dist/assets/{MazSelectCountry.CdNTQPhr.css → MazSelectCountry.B0tlbfgr.css} +1 -1
- package/dist/assets/MazSlider.WcnBC9zc.css +1 -0
- package/dist/assets/MazSpinner.CsiFJ1DS.css +1 -0
- package/dist/assets/MazStepper.C9R7g43I.css +1 -0
- package/dist/assets/MazSwitch.LCcK91L7.css +1 -0
- package/dist/assets/MazTable.Cq7FEz09.css +1 -0
- package/dist/assets/MazTableRow.C0Ko4yDk.css +1 -0
- package/dist/assets/{MazTabsBar.gcS2Fc-B.css → MazTabsBar.BRr1XiYu.css} +1 -1
- package/dist/assets/{MazTabsContentItem.CHfy19ZF.css → MazTabsContentItem.C84SDmj0.css} +1 -1
- package/dist/assets/MazTextarea.C9sZpRDZ.css +1 -0
- package/dist/assets/{PhoneInput.DBLH22G1.css → PhoneInput.DkOXlrI9.css} +1 -1
- package/dist/assets/{fullscreen-img.Bkuz1GOX.css → fullscreen-img.Br983fLC.css} +1 -1
- package/dist/assets/{toast.CC2VQab8.css → toast.BDNNJSjj.css} +1 -1
- package/dist/chunks/{MazDatePicker.De3Ltb2F.js → MazDatePicker.B1B6gUrC.js} +49 -37
- package/dist/chunks/{MazDialogConfirm.vue_vue_type_script_setup_true_lang.-K3NpiFL.js → MazDialogConfirm.vue_vue_type_script_setup_true_lang.DuEcluOw.js} +23 -13
- package/dist/chunks/{MazDropdown.vue_vue_type_style_index_0_lang.BES3jpuw.js → MazDropdown.vue_vue_type_style_index_0_lang.DULnKQ2W.js} +16 -10
- package/dist/chunks/{MazInputNumber.vue_vue_type_style_index_0_lang.B6DYpHfi.js → MazInputNumber.vue_vue_type_style_index_0_lang.B0D4Zzds.js} +2 -2
- package/dist/chunks/{MazInputPhoneNumber.DBncAmC5.js → MazInputPhoneNumber.CDy6n_Qj.js} +25 -17
- package/dist/chunks/{MazInputPrice.vue_vue_type_script_setup_true_lang.BA6TDX-T.js → MazInputPrice.vue_vue_type_script_setup_true_lang.3pKYuG8H.js} +18 -18
- package/dist/chunks/{MazPickerCalendar.DKXNI8O4.js → MazPickerCalendar.BSBQciuG.js} +8 -8
- package/dist/chunks/{MazPickerCalendarMonth.DKBqgrNp.js → MazPickerCalendarMonth.CFJHTFp5.js} +14 -14
- package/dist/chunks/{MazPickerCalendarSwitcher.CzIZol3Z.js → MazPickerCalendarSwitcher.DC21FpTy.js} +10 -10
- package/dist/chunks/{MazPickerContainer.Mrh-Q52I.js → MazPickerContainer.CRPzAbRt.js} +4 -6
- package/dist/chunks/{MazPickerHeader.Bm9vIrtB.js → MazPickerHeader.D7Tbm-yH.js} +14 -14
- package/dist/chunks/{MazPickerMonthSwitcher.BSD2GtY6.js → MazPickerMonthSwitcher.DzHOKbe4.js} +10 -10
- package/dist/chunks/{MazPickerTime.D0hilq5b.js → MazPickerTime.EZK1foEx.js} +1 -1
- package/dist/chunks/{MazPickerYearSwitcher.BIUYJMvj.js → MazPickerYearSwitcher.BcT8GENl.js} +4 -4
- package/dist/chunks/{MazSwitch.vue_vue_type_style_index_0_lang.CU43Y1ky.js → MazSwitch.vue_vue_type_style_index_0_lang.Dz7-dIc9.js} +1 -1
- package/dist/chunks/{MazTable.vue_vue_type_script_setup_true_lang.BcTw9Tyh.js → MazTable.vue_vue_type_script_setup_true_lang.Ct1Gtp2Q.js} +5 -5
- package/dist/chunks/{MazTabsContent.vue_vue_type_script_setup_true_lang.arGqYTL5.js → MazTabsContent.vue_vue_type_script_setup_true_lang.hIwO-24k.js} +2 -2
- package/dist/chunks/{PhoneInput.iFkRoIFk.js → PhoneInput.DukRZp5u.js} +20 -27
- package/dist/chunks/capitalize.CVQ1jDrh.js +6 -0
- package/dist/chunks/checkAvailability.UFZSC8-1.js +16 -0
- package/dist/chunks/debounce.DhXdop6X.js +11 -0
- package/dist/chunks/{dom-events.Bbe7wDQl.js → dom-events.H9KIOv83.js} +52 -52
- package/dist/chunks/{fullscreen-img.directive.Be383en8.js → fullscreen-img.directive.D9oQ3Gni.js} +4 -4
- package/dist/chunks/{isClient.WI4oSt66.js → isClient.8V3qjGdO.js} +2 -2
- package/dist/chunks/{mazUi.D6UdqpTO.js → mazUi.0b7z2u9g.js} +2 -2
- package/dist/chunks/{obsidian.Cy0R8RHy.js → obsidian.C6upWOVF.js} +2 -2
- package/dist/chunks/{ocean.pHrY5H_S.js → ocean.ehMlC0HV.js} +2 -2
- package/dist/chunks/pascalCase.BKTE3qqE.js +19 -0
- package/dist/chunks/{pristine.ylgbwjxO.js → pristine.DMG3eBuN.js} +6 -6
- package/dist/chunks/sleep.Ci7GE4BQ.js +6 -0
- package/dist/chunks/truthyFilter.DZvXmxeK.js +6 -0
- package/dist/chunks/types.D0Bp_UhS.js +6 -0
- package/dist/chunks/{useStringMatching.D5UvsCUS.js → useStringMatching.DzSigyZ7.js} +40 -14
- package/dist/chunks/{vClickOutside.DIOiluy0.js → vClickOutside.CJBKY5no.js} +6 -6
- package/dist/components/MazAccordion.vue.d.ts +36 -0
- package/dist/components/MazAnimatedCounter.js +5 -5
- package/dist/components/MazAnimatedCounter.vue.d.ts +59 -0
- package/dist/components/MazAnimatedElement.vue.d.ts +44 -0
- package/dist/components/MazAnimatedText.js +4 -4
- package/dist/components/MazAnimatedText.vue.d.ts +57 -0
- package/dist/components/MazAvatar.vue.d.ts +99 -0
- package/dist/components/MazBackdrop.js +70 -31
- package/dist/components/MazBackdrop.vue.d.ts +91 -0
- package/dist/components/MazBadge.js +5 -4
- package/dist/components/MazBadge.vue.d.ts +61 -0
- package/dist/components/MazBottomSheet.vue.d.ts +35 -0
- package/dist/components/MazBtn.js +6 -5
- package/dist/components/MazBtn.vue.d.ts +105 -0
- package/dist/components/MazCard.js +3 -3
- package/dist/components/MazCard.vue.d.ts +77 -0
- package/dist/components/MazCardSpotlight.js +2 -2
- package/dist/components/MazCardSpotlight.vue.d.ts +57 -0
- package/dist/components/MazCarousel.js +12 -9
- package/dist/components/MazCarousel.vue.d.ts +48 -0
- package/dist/components/MazChart.vue.d.ts +53 -0
- package/dist/components/MazCheckbox.js +2 -2
- package/dist/components/MazCheckbox.vue.d.ts +55 -0
- package/dist/components/MazChecklist.js +7 -7
- package/dist/components/MazChecklist.vue.d.ts +87 -0
- package/dist/components/MazCircularProgressBar.vue.d.ts +106 -0
- package/dist/components/MazDatePicker/MazPickerCalendar.vue.d.ts +27 -0
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +20 -0
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +125 -0
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +134 -0
- package/dist/components/MazDatePicker/MazPickerCalendarSwitcher.vue.d.ts +42 -0
- package/dist/components/MazDatePicker/MazPickerContainer.vue.d.ts +38 -0
- package/dist/components/MazDatePicker/MazPickerHeader.vue.d.ts +15 -0
- package/dist/components/MazDatePicker/MazPickerMonthSwitcher.vue.d.ts +44 -0
- package/dist/components/MazDatePicker/MazPickerShortcuts.vue.d.ts +16 -0
- package/dist/components/MazDatePicker/MazPickerTime.vue.d.ts +107 -0
- package/dist/components/MazDatePicker/MazPickerYearSwitcher.vue.d.ts +36 -0
- package/dist/components/MazDatePicker/types.d.ts +14 -0
- package/dist/components/MazDatePicker/utils.d.ts +61 -0
- package/dist/components/MazDatePicker.js +1 -1
- package/dist/components/MazDatePicker.vue.d.ts +547 -0
- package/dist/components/MazDialog.js +9 -16
- package/dist/components/MazDialog.vue.d.ts +247 -0
- package/dist/components/MazDialogConfirm/useMazDialogConfirm.d.ts +47 -0
- package/dist/components/MazDialogConfirm.js +2 -2
- package/dist/components/MazDialogConfirm.vue.d.ts +270 -0
- package/dist/components/MazDrawer.vue.d.ts +52 -0
- package/dist/components/MazDropdown.js +1 -1
- package/dist/components/MazDropdown.vue.d.ts +249 -0
- package/dist/components/MazDropzone.js +6 -6
- package/dist/components/MazDropzone.vue.d.ts +305 -0
- package/dist/components/MazExpandAnimation.vue.d.ts +44 -0
- package/dist/components/MazFullscreenLoader.vue.d.ts +26 -0
- package/dist/components/MazGallery.js +4 -4
- package/dist/components/MazGallery.vue.d.ts +85 -0
- package/dist/components/MazIcon.vue.d.ts +26 -0
- package/dist/components/MazInput.js +4 -4
- package/dist/components/MazInput.vue.d.ts +225 -0
- package/dist/components/MazInputCode.js +2 -2
- package/dist/components/MazInputCode.vue.d.ts +49 -0
- package/dist/components/MazInputNumber.js +1 -1
- package/dist/components/MazInputNumber.vue.d.ts +125 -0
- package/dist/components/MazInputPhoneNumber/PhoneInput.vue.d.ts +29 -0
- package/dist/components/MazInputPhoneNumber/useLibphonenumber.d.ts +26 -0
- package/dist/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +26 -0
- package/dist/components/MazInputPhoneNumber.js +1 -1
- package/dist/components/MazInputPhoneNumber.vue.d.ts +421 -0
- package/dist/components/MazInputPrice.js +1 -1
- package/dist/components/MazInputPrice.vue.d.ts +48 -0
- package/dist/components/MazInputTags.js +6 -6
- package/dist/components/MazInputTags.vue.d.ts +51 -0
- package/dist/components/MazLazyImg.js +2 -2
- package/dist/components/MazLazyImg.vue.d.ts +78 -0
- package/dist/components/MazLink.js +2 -2
- package/dist/components/MazLink.vue.d.ts +115 -0
- package/dist/components/MazLoadingBar.vue.d.ts +12 -0
- package/dist/components/MazPagination.js +3 -3
- package/dist/components/MazPagination.vue.d.ts +83 -0
- package/dist/components/MazPopover.js +98 -222
- package/dist/components/MazPopover.vue.d.ts +256 -0
- package/dist/components/MazPullToRefresh.js +7 -7
- package/dist/components/MazPullToRefresh.vue.d.ts +52 -0
- package/dist/components/MazRadio.js +2 -2
- package/dist/components/MazRadio.vue.d.ts +55 -0
- package/dist/components/MazRadioButtons.js +8 -7
- package/dist/components/MazRadioButtons.vue.d.ts +69 -0
- package/dist/components/MazReadingProgressBar.js +8 -8
- package/dist/components/MazReadingProgressBar.vue.d.ts +55 -0
- package/dist/components/MazSelect.js +17 -14
- package/dist/components/MazSelect.vue.d.ts +178 -0
- package/dist/components/MazSelectCountry.js +19 -18
- package/dist/components/MazSelectCountry.vue.d.ts +171 -0
- package/dist/components/MazSlider/utils.d.ts +15 -0
- package/dist/components/MazSlider.js +36 -36
- package/dist/components/MazSlider.vue.d.ts +31 -0
- package/dist/components/MazSpinner.js +3 -4
- package/dist/components/MazSpinner.vue.d.ts +15 -0
- package/dist/components/MazStepper.js +2 -2
- package/dist/components/MazStepper.vue.d.ts +60 -0
- package/dist/components/MazSwitch.js +1 -1
- package/dist/components/MazSwitch.vue.d.ts +69 -0
- package/dist/components/MazTable.js +3 -3
- package/dist/components/MazTable.vue.d.ts +324 -0
- package/dist/components/MazTableCell.js +1 -1
- package/dist/components/MazTableCell.vue.d.ts +17 -0
- package/dist/components/MazTableRow.js +6 -5
- package/dist/components/MazTableRow.vue.d.ts +23 -0
- package/dist/components/MazTableTitle.js +1 -1
- package/dist/components/MazTableTitle.vue.d.ts +17 -0
- package/dist/components/MazTabs.vue.d.ts +30 -0
- package/dist/components/MazTabsBar.js +4 -4
- package/dist/components/MazTabsBar.vue.d.ts +96 -0
- package/dist/components/MazTabsContent.js +1 -1
- package/dist/components/MazTabsContent.vue.d.ts +17 -0
- package/dist/components/MazTabsContentItem.js +6 -7
- package/dist/components/MazTabsContentItem.vue.d.ts +31 -0
- package/dist/components/MazTextarea.js +6 -6
- package/dist/components/MazTextarea.vue.d.ts +88 -0
- package/dist/components/constantes.d.ts +2 -0
- package/dist/components/index.d.ts +109 -0
- package/dist/components/index.js +8 -8
- package/dist/components/types.d.ts +4 -0
- package/dist/composables/index.d.ts +21 -0
- package/dist/composables/index.js +3 -1
- package/dist/composables/useAos.d.ts +2 -0
- package/dist/composables/useBreakpoints.d.ts +38 -0
- package/dist/composables/useDialog.d.ts +2 -0
- package/dist/composables/useDisplayNames.d.ts +101 -0
- package/dist/composables/useDisplayNames.js +20 -28
- package/dist/composables/useDropzone.d.ts +27 -0
- package/dist/composables/useDropzone.js +6 -6
- package/dist/composables/useFormField.d.ts +16 -0
- package/dist/composables/useFormField.js +3 -3
- package/dist/composables/useFormValidator/config.d.ts +7 -0
- package/dist/composables/useFormValidator/dom-events.d.ts +19 -0
- package/dist/composables/useFormValidator/state-management.d.ts +72 -0
- package/dist/composables/useFormValidator/types.d.ts +98 -0
- package/dist/composables/useFormValidator/validation.d.ts +37 -0
- package/dist/composables/useFormValidator.d.ts +23 -0
- package/dist/composables/useFormValidator.js +19 -3
- package/dist/composables/useFreezeValue.d.ts +5 -0
- package/dist/composables/useIdleTimeout.d.ts +5 -0
- package/dist/composables/useIdleTimeout.js +27 -27
- package/dist/composables/useInjectStrict.d.ts +2 -0
- package/dist/composables/useInstanceUniqId.d.ts +4 -0
- package/dist/composables/useInstanceUniqId.js +3 -2
- package/dist/composables/useMountComponent.d.ts +14 -0
- package/dist/composables/useReadingTime.d.ts +25 -0
- package/dist/composables/useStringMatching.d.ts +5 -0
- package/dist/composables/useStringMatching.js +1 -1
- package/dist/composables/useSwipe.d.ts +14 -0
- package/dist/composables/useSwipe.js +22 -22
- package/dist/composables/useTimer.d.ts +30 -0
- package/dist/composables/useToast.d.ts +22 -0
- package/dist/composables/useUserVisibility.d.ts +5 -0
- package/dist/composables/useUserVisibility.js +8 -8
- package/dist/composables/useWait.d.ts +2 -0
- package/dist/composables/useWindowSize.d.ts +32 -0
- package/dist/composables/useWindowSize.js +2 -2
- package/dist/css/main.css +1 -1
- package/dist/directives/index.d.ts +5 -0
- package/dist/directives/index.js +2 -2
- package/dist/directives/vClickOutside.d.ts +36 -0
- package/dist/directives/vClickOutside.js +1 -1
- package/dist/directives/vFullscreenImg/MazFullscreenImg.vue.d.ts +50 -0
- package/dist/directives/vFullscreenImg/fullscreen-img.directive.d.ts +5 -0
- package/dist/directives/vFullscreenImg/fullscreen-img.handler.d.ts +36 -0
- package/dist/directives/vFullscreenImg.d.ts +11 -0
- package/dist/directives/vFullscreenImg.js +1 -1
- package/dist/directives/vLazyImg/lazy-img.directive.d.ts +5 -0
- package/dist/directives/vLazyImg/lazy-img.handler.d.ts +38 -0
- package/dist/directives/vLazyImg/types.d.ts +29 -0
- package/dist/directives/vLazyImg.d.ts +12 -0
- package/dist/directives/vTooltip.d.ts +54 -0
- package/dist/directives/vTooltip.js +15 -23
- package/dist/directives/vZoomImg/style.d.ts +1 -0
- package/dist/directives/vZoomImg/svgs.d.ts +3 -0
- package/dist/directives/vZoomImg/zoom-img.directive.d.ts +8 -0
- package/dist/directives/vZoomImg/zoom-img.handler.d.ts +46 -0
- package/dist/directives/vZoomImg.d.ts +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/plugins/aos.d.ts +81 -0
- package/dist/plugins/aos.js +5 -5
- package/dist/plugins/dialog/DialogHandler.d.ts +16 -0
- package/dist/plugins/dialog.d.ts +26 -0
- package/dist/plugins/dialog.js +1 -1
- package/dist/plugins/index.d.ts +5 -0
- package/dist/plugins/maz-ui.d.ts +43 -0
- package/dist/plugins/maz-ui.js +245 -371
- package/dist/plugins/toast/MazToast.vue.d.ts +34 -0
- package/dist/plugins/toast/ToastHandler.d.ts +29 -0
- package/dist/plugins/toast/types.d.ts +104 -0
- package/dist/plugins/toast.d.ts +25 -0
- package/dist/plugins/toast.js +8 -6
- package/dist/plugins/wait.d.ts +33 -0
- package/dist/resolvers/MazComponentsResolver.d.ts +10 -0
- package/dist/resolvers/MazComponentsResolver.js +516 -10
- package/dist/resolvers/MazDirectivesResolver.d.ts +11 -0
- package/dist/resolvers/MazDirectivesResolver.js +2 -2
- package/dist/resolvers/MazModulesResolver.d.ts +11 -0
- package/dist/resolvers/MazModulesResolver.js +8 -5
- package/dist/resolvers/index.d.ts +3 -0
- package/dist/tailwindcss/index.d.ts +6 -0
- package/dist/tailwindcss/tailwind.config.d.ts +89 -0
- package/dist/tailwindcss/utils/colors.d.ts +7 -0
- package/dist/tailwindcss/variables/breakpoints.d.ts +15 -0
- package/dist/tailwindcss/variables/colors.d.ts +20 -0
- package/dist/tailwindcss/variables/design-tokens.d.ts +35 -0
- package/dist/tailwindcss/variables/utilities.d.ts +17 -0
- package/dist/tailwindcss/variables/z-indexes.d.ts +14 -0
- package/dist/types/components/MazAnimatedCounter.vue.d.ts +1 -1
- package/dist/types/components/MazBackdrop.vue.d.ts +26 -6
- package/dist/types/components/MazCard.vue.d.ts +1 -1
- package/dist/types/components/MazCarousel.vue.d.ts +8 -5
- package/dist/types/components/MazChecklist.vue.d.ts +5 -5
- package/dist/types/components/MazDatePicker/utils.d.ts +7 -6
- package/dist/types/components/MazDatePicker.vue.d.ts +37 -33
- package/dist/types/components/MazDialog.vue.d.ts +10 -19
- package/dist/types/components/MazDialogConfirm/useMazDialogConfirm.d.ts +8 -6
- package/dist/types/components/MazDialogConfirm.vue.d.ts +18 -12
- package/dist/types/components/MazDropdown.vue.d.ts +10 -3
- package/dist/types/components/MazInputNumber.vue.d.ts +4 -4
- package/dist/types/components/MazInputPhoneNumber/PhoneInput.vue.d.ts +1 -1
- package/dist/types/components/MazInputPhoneNumber/useLibphonenumber.d.ts +1 -1
- package/dist/types/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +2 -0
- package/dist/types/components/MazInputPhoneNumber.vue.d.ts +11 -12
- package/dist/types/components/MazInputPrice.vue.d.ts +3 -3
- package/dist/types/components/MazInputTags.vue.d.ts +1 -1
- package/dist/types/components/MazLink.vue.d.ts +1 -1
- package/dist/types/components/MazPopover.vue.d.ts +13 -8
- package/dist/types/components/MazRadioButtons.vue.d.ts +9 -9
- package/dist/types/components/MazReadingProgressBar.vue.d.ts +1 -1
- package/dist/types/components/MazSelect.vue.d.ts +13 -6
- package/dist/types/components/MazSelectCountry.vue.d.ts +9 -9
- package/dist/types/components/MazTable.vue.d.ts +5 -5
- package/dist/types/components/MazTableRow.vue.d.ts +2 -0
- package/dist/types/components/types.d.ts +1 -0
- package/dist/types/composables/index.d.ts +1 -0
- package/dist/types/composables/useDisplayNames.d.ts +60 -6
- package/dist/types/composables/useFormField.d.ts +16 -18
- package/dist/types/composables/useFormValidator/config.d.ts +2 -2
- package/dist/types/composables/useFormValidator/dom-events.d.ts +4 -4
- package/dist/types/composables/useFormValidator/state-management.d.ts +40 -22
- package/dist/types/composables/useFormValidator/types.d.ts +15 -15
- package/dist/types/composables/useFormValidator/validation.d.ts +10 -16
- package/dist/types/composables/useFormValidator.d.ts +2 -2
- 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/vFullscreenImg/MazFullscreenImg.vue.d.ts +2 -2
- package/dist/types/directives/vZoomImg.d.ts +1 -1
- package/dist/types/plugins/maz-ui.d.ts +5 -5
- package/package.json +46 -36
- package/dist/assets/MazAnimatedText.DDqCxrFX.css +0 -1
- package/dist/assets/MazBackdrop.BnhcmjbP.css +0 -1
- package/dist/assets/MazBtn.DUBbj2mt.css +0 -1
- package/dist/assets/MazCard.C6nDaeIC.css +0 -1
- package/dist/assets/MazCardSpotlight.IbPp_y0j.css +0 -1
- package/dist/assets/MazCarousel.BaqN4hLP.css +0 -1
- package/dist/assets/MazCheckbox.CFqw9ybT.css +0 -1
- package/dist/assets/MazChecklist.BzF5KtZ3.css +0 -1
- package/dist/assets/MazDatePicker.8GyrtM-j.css +0 -1
- package/dist/assets/MazDropdown.C6vjLIeN.css +0 -1
- package/dist/assets/MazDropzone.-8lzCrxJ.css +0 -1
- package/dist/assets/MazGallery.DZ3TyggM.css +0 -1
- package/dist/assets/MazInput.BcUsJg7p.css +0 -1
- package/dist/assets/MazInputCode.CG6EJBEk.css +0 -1
- package/dist/assets/MazInputPhoneNumber.CrXS7DOY.css +0 -1
- package/dist/assets/MazInputTags.DzTGy9z3.css +0 -1
- package/dist/assets/MazLazyImg.NlPRN3Nk.css +0 -1
- package/dist/assets/MazLink.wJoKRsCP.css +0 -1
- package/dist/assets/MazPickerCalendar.CHpWIzhL.css +0 -1
- package/dist/assets/MazPickerCalendarMonth.Boe_8k4x.css +0 -1
- package/dist/assets/MazPickerMonthSwitcher.CszcpCcY.css +0 -1
- package/dist/assets/MazPopover.DzCAfuWw.css +0 -1
- package/dist/assets/MazPullToRefresh.BQ64UvzA.css +0 -1
- package/dist/assets/MazRadio.XGYnbTuB.css +0 -1
- package/dist/assets/MazRadioButtons.BA4rjgK9.css +0 -1
- package/dist/assets/MazReadingProgressBar.CwBVXE3g.css +0 -1
- package/dist/assets/MazSelect.Cljh3PVV.css +0 -1
- package/dist/assets/MazSlider.y4qpnD0N.css +0 -1
- package/dist/assets/MazSpinner.CP85N7RJ.css +0 -1
- package/dist/assets/MazStepper.DtWZmm-f.css +0 -1
- package/dist/assets/MazSwitch.Bxmh2iFj.css +0 -1
- package/dist/assets/MazTable.DMlQdImb.css +0 -1
- package/dist/assets/MazTableRow.B78Bd4Kv.css +0 -1
- package/dist/assets/MazTextarea.DME7BHS5.css +0 -1
- package/dist/chunks/capitalize.BF6CDS_4.js +0 -6
- package/dist/chunks/checkAvailability.aTpZidex.js +0 -16
- package/dist/chunks/de.B15Maq8Z.js +0 -82
- package/dist/chunks/debounce.Brzkn9pm.js +0 -11
- package/dist/chunks/en.Q_4-KljL.js +0 -157
- package/dist/chunks/es.BV1TlfTw.js +0 -82
- package/dist/chunks/fr.BVPG-7Dk.js +0 -82
- package/dist/chunks/it.Be9xhI4P.js +0 -82
- package/dist/chunks/ja.CWU7KYEA.js +0 -82
- package/dist/chunks/pt.CfaFSxVt.js +0 -82
- package/dist/chunks/sleep.BLRH1qZG.js +0 -6
- package/dist/chunks/truthyFilter.C2WOKUCG.js +0 -6
- package/dist/chunks/useTranslations.D5aoYwD7.js +0 -10
- package/dist/chunks/zh-CN.CCkuvk-E.js +0 -82
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, onBeforeUnmount, watch, createElementBlock, openBlock, createElementVNode, renderSlot, createTextVNode, toDisplayString } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { e } from "../chunks/isClient.8V3qjGdO.js";
|
|
3
3
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
4
|
-
import '../assets/MazAnimatedCounter.
|
|
4
|
+
import '../assets/MazAnimatedCounter.LK7oyUrl.css';const _hoisted_1 = { class: "maz-sr-only" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "MazAnimatedCounter",
|
|
6
6
|
props: {
|
|
7
7
|
count: {},
|
|
@@ -14,11 +14,11 @@ import '../assets/MazAnimatedCounter.DkZNPRLp.css';const _hoisted_1 = { class: "
|
|
|
14
14
|
setup(__props) {
|
|
15
15
|
const props = __props, currentCount = ref(0), elementRef = ref(null);
|
|
16
16
|
function getRequestAnimationFrame() {
|
|
17
|
-
return !
|
|
17
|
+
return !e() || !globalThis.requestAnimationFrame ? (callback) => (setTimeout(callback, 1e3 / 60), 0) : globalThis.requestAnimationFrame.bind(globalThis);
|
|
18
18
|
}
|
|
19
19
|
function animate(start, end, duration, delay) {
|
|
20
20
|
const requestAnim = getRequestAnimationFrame();
|
|
21
|
-
if (!
|
|
21
|
+
if (!e()) {
|
|
22
22
|
currentCount.value = end;
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
@@ -71,7 +71,7 @@ import '../assets/MazAnimatedCounter.DkZNPRLp.css';const _hoisted_1 = { class: "
|
|
|
71
71
|
], !0)
|
|
72
72
|
], 512));
|
|
73
73
|
}
|
|
74
|
-
}), MazAnimatedCounter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
74
|
+
}), MazAnimatedCounter = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-91a33c54"]]);
|
|
75
75
|
export {
|
|
76
76
|
MazAnimatedCounter as default
|
|
77
77
|
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export interface MazAnimatedCounterProps {
|
|
2
|
+
/**
|
|
3
|
+
* The number to animate
|
|
4
|
+
*/
|
|
5
|
+
count: number;
|
|
6
|
+
/**
|
|
7
|
+
* Duration of the animation in milliseconds
|
|
8
|
+
* @default 1000
|
|
9
|
+
*/
|
|
10
|
+
duration?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Suffix to display next to the number
|
|
13
|
+
*/
|
|
14
|
+
prefix?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Suffix to display next to the number
|
|
17
|
+
*/
|
|
18
|
+
suffix?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Delay before the animation starts in milliseconds
|
|
21
|
+
* @default 100
|
|
22
|
+
*/
|
|
23
|
+
delay?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Play the animation only once
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
28
|
+
once?: boolean;
|
|
29
|
+
}
|
|
30
|
+
declare function __VLS_template(): {
|
|
31
|
+
attrs: Partial<{}>;
|
|
32
|
+
slots: {
|
|
33
|
+
prefix?(_: {}): any;
|
|
34
|
+
prefix?(_: {}): any;
|
|
35
|
+
suffix?(_: {}): any;
|
|
36
|
+
suffix?(_: {}): any;
|
|
37
|
+
};
|
|
38
|
+
refs: {
|
|
39
|
+
elementRef: HTMLSpanElement;
|
|
40
|
+
};
|
|
41
|
+
rootEl: HTMLSpanElement;
|
|
42
|
+
};
|
|
43
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
44
|
+
declare const __VLS_component: import('vue').DefineComponent<MazAnimatedCounterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MazAnimatedCounterProps> & Readonly<{}>, {
|
|
45
|
+
duration: number;
|
|
46
|
+
delay: number;
|
|
47
|
+
once: boolean;
|
|
48
|
+
prefix: string;
|
|
49
|
+
suffix: string;
|
|
50
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
51
|
+
elementRef: HTMLSpanElement;
|
|
52
|
+
}, HTMLSpanElement>;
|
|
53
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
54
|
+
export default _default;
|
|
55
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface MazAnimatedElementProps {
|
|
2
|
+
/**
|
|
3
|
+
* The direction of the animation
|
|
4
|
+
* @default "up"
|
|
5
|
+
* @values "up", "down", "left", "right"
|
|
6
|
+
*/
|
|
7
|
+
direction?: 'up' | 'down' | 'left' | 'right';
|
|
8
|
+
/**
|
|
9
|
+
* The delay of the animation
|
|
10
|
+
* @default 0
|
|
11
|
+
*/
|
|
12
|
+
delay?: number;
|
|
13
|
+
/**
|
|
14
|
+
* The duration of the animation
|
|
15
|
+
* @default 2000
|
|
16
|
+
*/
|
|
17
|
+
duration?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Play the animation only once
|
|
20
|
+
* @default true
|
|
21
|
+
*/
|
|
22
|
+
once?: boolean;
|
|
23
|
+
}
|
|
24
|
+
declare function __VLS_template(): {
|
|
25
|
+
attrs: Partial<{}>;
|
|
26
|
+
slots: {
|
|
27
|
+
default?(_: {}): any;
|
|
28
|
+
};
|
|
29
|
+
refs: {
|
|
30
|
+
element: HTMLDivElement;
|
|
31
|
+
};
|
|
32
|
+
rootEl: HTMLDivElement;
|
|
33
|
+
};
|
|
34
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
35
|
+
declare const __VLS_component: import('vue').DefineComponent<MazAnimatedElementProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MazAnimatedElementProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
36
|
+
element: HTMLDivElement;
|
|
37
|
+
}, HTMLDivElement>;
|
|
38
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, onMounted, onBeforeUnmount, createElementBlock, openBlock, createBlock, resolveDynamicComponent, mergeProps, withCtx, createCommentVNode, Fragment, renderList, createElementVNode, normalizeStyle, normalizeClass, toDisplayString, createTextVNode } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { l } from "../chunks/checkAvailability.UFZSC8-1.js";
|
|
3
3
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
4
|
-
import '../assets/MazAnimatedText.
|
|
4
|
+
import '../assets/MazAnimatedText.CHvAudRU.css';const _hoisted_1 = { class: "m-reset-css m-animated-text" }, _hoisted_2 = { class: "m-animated-text__last-word-inner" }, _hoisted_3 = { class: "m-animated-text__last-word-inner-text" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "MazAnimatedText",
|
|
7
7
|
props: {
|
|
@@ -22,7 +22,7 @@ import '../assets/MazAnimatedText.DDqCxrFX.css';const _hoisted_1 = { class: "m-r
|
|
|
22
22
|
return onMounted(() => {
|
|
23
23
|
isClient.value = !0, observer = new IntersectionObserver(([entry]) => {
|
|
24
24
|
isVisible.value = entry.isIntersecting, __props.once && element.value && observer?.unobserve(element.value);
|
|
25
|
-
}),
|
|
25
|
+
}), l(() => element.value, (element2) => {
|
|
26
26
|
observer?.observe(element2);
|
|
27
27
|
});
|
|
28
28
|
}), onBeforeUnmount(() => observer?.disconnect()), (_ctx, _cache) => (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
@@ -73,7 +73,7 @@ import '../assets/MazAnimatedText.DDqCxrFX.css';const _hoisted_1 = { class: "m-r
|
|
|
73
73
|
}, 16))
|
|
74
74
|
]));
|
|
75
75
|
}
|
|
76
|
-
}), MazAnimatedText = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
76
|
+
}), MazAnimatedText = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-00727bc1"]]);
|
|
77
77
|
export {
|
|
78
78
|
MazAnimatedText as default
|
|
79
79
|
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export interface MazAnimatedTextProps {
|
|
2
|
+
/**
|
|
3
|
+
* The text to animate
|
|
4
|
+
* @example "Hello"
|
|
5
|
+
*/
|
|
6
|
+
text: string;
|
|
7
|
+
/**
|
|
8
|
+
* The last word(s) to be highlighted
|
|
9
|
+
* @example "world"
|
|
10
|
+
*/
|
|
11
|
+
lastWord?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The delay of the animation
|
|
14
|
+
* @default 0
|
|
15
|
+
*/
|
|
16
|
+
delay?: number;
|
|
17
|
+
/**
|
|
18
|
+
* The direction of the animation
|
|
19
|
+
* @default "up"
|
|
20
|
+
* @values "up", "down", "left", "right"
|
|
21
|
+
*/
|
|
22
|
+
direction?: 'up' | 'down' | 'left' | 'right';
|
|
23
|
+
/**
|
|
24
|
+
* The tag to use for the text
|
|
25
|
+
* @default "span"
|
|
26
|
+
*/
|
|
27
|
+
tag?: string;
|
|
28
|
+
/**
|
|
29
|
+
* The delay between each word
|
|
30
|
+
* @default 75
|
|
31
|
+
*/
|
|
32
|
+
wordDelay?: number;
|
|
33
|
+
/**
|
|
34
|
+
* The column gap between each word
|
|
35
|
+
* @default 0.5
|
|
36
|
+
*/
|
|
37
|
+
columnGap?: number;
|
|
38
|
+
/**
|
|
39
|
+
* The row gap between each word
|
|
40
|
+
* @default 0
|
|
41
|
+
*/
|
|
42
|
+
rowGap?: number;
|
|
43
|
+
/**
|
|
44
|
+
* The duration of the animation
|
|
45
|
+
* @default 2000
|
|
46
|
+
*/
|
|
47
|
+
duration?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Play the animation only once
|
|
50
|
+
* @default true
|
|
51
|
+
*/
|
|
52
|
+
once?: boolean;
|
|
53
|
+
}
|
|
54
|
+
declare const _default: import('vue').DefineComponent<MazAnimatedTextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MazAnimatedTextProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
55
|
+
element: unknown;
|
|
56
|
+
}, any>;
|
|
57
|
+
export default _default;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { MazColor } from './types';
|
|
3
|
+
export interface MazAvatarProps {
|
|
4
|
+
/** The style of the component */
|
|
5
|
+
style?: HTMLAttributes['style'];
|
|
6
|
+
/** The class of the component */
|
|
7
|
+
class?: HTMLAttributes['class'];
|
|
8
|
+
/** The source of the image */
|
|
9
|
+
src?: string | null;
|
|
10
|
+
/** The caption of the avatar */
|
|
11
|
+
caption?: string | null;
|
|
12
|
+
/** The link of the avatar */
|
|
13
|
+
href?: string;
|
|
14
|
+
/** The link (router-link) of the avatar */
|
|
15
|
+
to?: string | Record<string, unknown>;
|
|
16
|
+
/** The alt of the image */
|
|
17
|
+
alt?: string;
|
|
18
|
+
/** The target of the link */
|
|
19
|
+
target?: string;
|
|
20
|
+
/** The size of the avatar */
|
|
21
|
+
size?: string;
|
|
22
|
+
/** Add a border to the avatar */
|
|
23
|
+
bordered?: boolean;
|
|
24
|
+
/** Make the avatar clickable */
|
|
25
|
+
clickable?: boolean;
|
|
26
|
+
/** Make the avatar square */
|
|
27
|
+
square?: boolean;
|
|
28
|
+
/** Remove the shadow */
|
|
29
|
+
noElevation?: boolean;
|
|
30
|
+
/** Show the caption */
|
|
31
|
+
showCaption?: boolean;
|
|
32
|
+
/** Make the image height full */
|
|
33
|
+
imageHeightFull?: boolean;
|
|
34
|
+
/** Remove the loader */
|
|
35
|
+
hideLoader?: boolean;
|
|
36
|
+
/** The color of the clickable button */
|
|
37
|
+
buttonColor?: MazColor;
|
|
38
|
+
/** Remove the icon on hover when component is clickable */
|
|
39
|
+
hideClickableIcon?: boolean;
|
|
40
|
+
/** Number of letters to display in the round text */
|
|
41
|
+
letterCount?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Size of the rounded
|
|
44
|
+
* @values `'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full'`
|
|
45
|
+
*/
|
|
46
|
+
roundedSize?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
47
|
+
/** The fallback src to replace the src on loading error */
|
|
48
|
+
fallbackSrc?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The loading strategy of the image - lazy, eager or intersecting
|
|
51
|
+
* @default 'intersecting'
|
|
52
|
+
* @values `'lazy' | 'eager' | 'intersecting'`
|
|
53
|
+
*/
|
|
54
|
+
loading?: 'lazy' | 'eager' | 'intersecting';
|
|
55
|
+
}
|
|
56
|
+
declare function __VLS_template(): {
|
|
57
|
+
attrs: Partial<{}>;
|
|
58
|
+
slots: {
|
|
59
|
+
'round-text'?(_: {}): any;
|
|
60
|
+
icon?(_: {}): any;
|
|
61
|
+
caption?(_: {}): any;
|
|
62
|
+
};
|
|
63
|
+
refs: {};
|
|
64
|
+
rootEl: any;
|
|
65
|
+
};
|
|
66
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
67
|
+
declare const __VLS_component: import('vue').DefineComponent<MazAvatarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
68
|
+
click: (event: MouseEvent) => any;
|
|
69
|
+
error: (el: Element) => any;
|
|
70
|
+
loaded: (el: Element) => any;
|
|
71
|
+
loading: (el: Element) => any;
|
|
72
|
+
intersecting: (el: Element) => any;
|
|
73
|
+
}, string, import('vue').PublicProps, Readonly<MazAvatarProps> & Readonly<{
|
|
74
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
75
|
+
onError?: ((el: Element) => any) | undefined;
|
|
76
|
+
onLoaded?: ((el: Element) => any) | undefined;
|
|
77
|
+
onLoading?: ((el: Element) => any) | undefined;
|
|
78
|
+
onIntersecting?: ((el: Element) => any) | undefined;
|
|
79
|
+
}>, {
|
|
80
|
+
src: string | null;
|
|
81
|
+
size: string;
|
|
82
|
+
caption: string | null;
|
|
83
|
+
roundedSize: "none" | "sm" | "md" | "lg" | "xl" | "full";
|
|
84
|
+
loading: "lazy" | "eager" | "intersecting";
|
|
85
|
+
href: string;
|
|
86
|
+
to: string | Record<string, unknown>;
|
|
87
|
+
target: string;
|
|
88
|
+
alt: string;
|
|
89
|
+
fallbackSrc: string;
|
|
90
|
+
buttonColor: MazColor;
|
|
91
|
+
letterCount: number;
|
|
92
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
93
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
94
|
+
export default _default;
|
|
95
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
96
|
+
new (): {
|
|
97
|
+
$slots: S;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, watch, nextTick, createBlock, openBlock, Teleport, createVNode, Transition, withCtx, createElementBlock, createCommentVNode, mergeProps, createElementVNode, withModifiers, normalizeClass, renderSlot } from "vue";
|
|
2
2
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
3
|
-
import '../assets/MazBackdrop.
|
|
3
|
+
import '../assets/MazBackdrop.09bziTPM.css';const _hoisted_1 = ["aria-labelledby", "aria-describedby"], _hoisted_2 = {
|
|
4
4
|
role: "dialog",
|
|
5
5
|
class: "m-backdrop-container",
|
|
6
6
|
"aria-modal": "true"
|
|
7
|
-
},
|
|
7
|
+
}, _hoisted_3 = { class: "m-backdrop-wrapper" }, MODAL_OPENED_CLASS = "--backdrop-present", _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
inheritAttrs: !1,
|
|
9
9
|
__name: "MazBackdrop",
|
|
10
10
|
props: {
|
|
@@ -19,7 +19,9 @@ import '../assets/MazBackdrop.BnhcmjbP.css';const _hoisted_1 = {
|
|
|
19
19
|
contentPadding: { type: Boolean, default: !1 },
|
|
20
20
|
justify: { default: "none" },
|
|
21
21
|
align: { default: "none" },
|
|
22
|
-
variant: {}
|
|
22
|
+
variant: {},
|
|
23
|
+
ariaLabelledby: {},
|
|
24
|
+
ariaDescribedby: {}
|
|
23
25
|
},
|
|
24
26
|
emits: ["open", "close", "update:model-value", "before-close"],
|
|
25
27
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -36,10 +38,11 @@ import '../assets/MazBackdrop.BnhcmjbP.css';const _hoisted_1 = {
|
|
|
36
38
|
}
|
|
37
39
|
const present = ref(__props.modelValue);
|
|
38
40
|
function close() {
|
|
39
|
-
toggleModal(!1);
|
|
41
|
+
__props.persistent || toggleModal(!1);
|
|
40
42
|
}
|
|
41
43
|
async function toggleModal(value) {
|
|
42
|
-
|
|
44
|
+
const newValue = value ?? !present.value;
|
|
45
|
+
newValue || (emits("before-close"), await __props.beforeClose?.()), present.value = newValue;
|
|
43
46
|
}
|
|
44
47
|
function onBackdropAnimationEnter() {
|
|
45
48
|
emits("open");
|
|
@@ -47,28 +50,43 @@ import '../assets/MazBackdrop.BnhcmjbP.css';const _hoisted_1 = {
|
|
|
47
50
|
function onBackdropAnimationLeave() {
|
|
48
51
|
emits("update:model-value", !1), emits("close"), removeClassAndEventToDocument();
|
|
49
52
|
}
|
|
50
|
-
function onBackdropClicked() {
|
|
51
|
-
__props.persistent || close();
|
|
52
|
-
}
|
|
53
53
|
function onKeyPress(event) {
|
|
54
|
-
__props.closeOnEscape && event.key === "Escape" &&
|
|
54
|
+
__props.closeOnEscape && event.key === "Escape" && close();
|
|
55
55
|
}
|
|
56
56
|
function addClassAndEventToDocument() {
|
|
57
|
-
addClassToDocument(), document.addEventListener("keyup", onKeyPress, !1);
|
|
57
|
+
addClassToDocument(), document.addEventListener("keyup", onKeyPress, !1), document.addEventListener("keydown", trapFocus, !1);
|
|
58
58
|
}
|
|
59
59
|
function removeClassAndEventToDocument() {
|
|
60
|
-
|
|
60
|
+
try {
|
|
61
|
+
document.removeEventListener("keyup", onKeyPress), document.removeEventListener("keydown", trapFocus);
|
|
62
|
+
} catch (error) {
|
|
63
|
+
console.warn("Error removing event listeners:", error);
|
|
64
|
+
}
|
|
65
|
+
removeClassFromDocument();
|
|
61
66
|
}
|
|
62
67
|
onMounted(() => {
|
|
63
68
|
__props.modelValue ? addClassAndEventToDocument() : removeClassAndEventToDocument();
|
|
64
69
|
});
|
|
65
70
|
let initialFocusableElement = null;
|
|
71
|
+
function getAllFocusableElements(selector) {
|
|
72
|
+
const modal = document.querySelector(selector);
|
|
73
|
+
return (modal && Array.from(modal.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], input[type="email"], input[type="password"], input[type="url"], input[type="tel"], input[type="number"], input[type="search"], input[type="date"], input[type="time"], select, [tabindex]:not([tabindex="-1"]), [contenteditable="true"]')))?.filter((el) => {
|
|
74
|
+
const style = globalThis.getComputedStyle(el), isDisabled = "disabled" in el ? el.disabled : !1;
|
|
75
|
+
return style.display !== "none" && style.visibility !== "hidden" && !isDisabled && el.tabIndex !== -1;
|
|
76
|
+
}) || [];
|
|
77
|
+
}
|
|
66
78
|
function findFirstFocusableElement(selector) {
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
79
|
+
const focusableElements = getAllFocusableElements(selector);
|
|
80
|
+
return focusableElements.length > 0 ? focusableElements[0] : null;
|
|
81
|
+
}
|
|
82
|
+
function trapFocus(event) {
|
|
83
|
+
if (event.key !== "Tab")
|
|
84
|
+
return;
|
|
85
|
+
const focusableElements = getAllFocusableElements(".m-backdrop-content");
|
|
86
|
+
if (focusableElements.length === 0)
|
|
87
|
+
return;
|
|
88
|
+
const firstFocusable = focusableElements[0], lastFocusable = focusableElements[focusableElements.length - 1];
|
|
89
|
+
event.shiftKey ? document.activeElement === firstFocusable && (event.preventDefault(), lastFocusable.focus()) : document.activeElement === lastFocusable && (event.preventDefault(), firstFocusable.focus());
|
|
72
90
|
}
|
|
73
91
|
return watch(
|
|
74
92
|
() => __props.modelValue,
|
|
@@ -76,14 +94,36 @@ import '../assets/MazBackdrop.BnhcmjbP.css';const _hoisted_1 = {
|
|
|
76
94
|
present.value = value, value ? (addClassAndEventToDocument(), initialFocusableElement = document.activeElement, await nextTick(), findFirstFocusableElement(".m-backdrop-content")?.focus()) : (removeClassAndEventToDocument(), await nextTick(), initialFocusableElement?.focus());
|
|
77
95
|
}
|
|
78
96
|
), __expose({
|
|
79
|
-
|
|
97
|
+
/**
|
|
98
|
+
* Animation leave event
|
|
99
|
+
* @description This is used to handle animation leave events
|
|
100
|
+
*/
|
|
80
101
|
onBackdropAnimationLeave,
|
|
81
|
-
|
|
102
|
+
/**
|
|
103
|
+
* Close the backdrop
|
|
104
|
+
* @description This is used to close the backdrop
|
|
105
|
+
*/
|
|
82
106
|
close,
|
|
107
|
+
/**
|
|
108
|
+
* The present state of the backdrop
|
|
109
|
+
* @description This is used to check if the backdrop is present (open)
|
|
110
|
+
*/
|
|
83
111
|
present,
|
|
112
|
+
/**
|
|
113
|
+
* Toggle the backdrop
|
|
114
|
+
* @description This is used to toggle the backdrop
|
|
115
|
+
* @param {boolean} value - The value to toggle the backdrop (optional)
|
|
116
|
+
*/
|
|
84
117
|
toggleModal,
|
|
118
|
+
/**
|
|
119
|
+
* Key press event
|
|
120
|
+
* @description This is used to handle key press events
|
|
121
|
+
*/
|
|
85
122
|
onKeyPress
|
|
86
|
-
}), (_ctx, _cache) => (openBlock(), createBlock(Teleport, {
|
|
123
|
+
}), (_ctx, _cache) => (openBlock(), createBlock(Teleport, {
|
|
124
|
+
to: _ctx.teleportSelector,
|
|
125
|
+
disabled: !present.value
|
|
126
|
+
}, [
|
|
87
127
|
createVNode(Transition, {
|
|
88
128
|
appear: "",
|
|
89
129
|
name: _ctx.transitionName,
|
|
@@ -95,30 +135,29 @@ import '../assets/MazBackdrop.BnhcmjbP.css';const _hoisted_1 = {
|
|
|
95
135
|
key: 0,
|
|
96
136
|
class: "m-backdrop --present m-reset-css"
|
|
97
137
|
}, _ctx.$attrs, {
|
|
98
|
-
class: [_ctx.backdropClass, _ctx.variant && `--variant-${_ctx.variant}`, { "--persistent": _ctx.persistent }]
|
|
138
|
+
class: [_ctx.backdropClass, _ctx.variant && `--variant-${_ctx.variant}`, { "--persistent": _ctx.persistent }],
|
|
139
|
+
"aria-labelledby": _ctx.ariaLabelledby,
|
|
140
|
+
"aria-describedby": _ctx.ariaDescribedby
|
|
99
141
|
}), [
|
|
100
|
-
createElementVNode("div",
|
|
101
|
-
createElementVNode("div",
|
|
142
|
+
createElementVNode("div", _hoisted_2, [
|
|
143
|
+
createElementVNode("div", _hoisted_3, [
|
|
102
144
|
createElementVNode("div", {
|
|
103
145
|
class: normalizeClass(["m-backdrop-content", [_ctx.backdropContentClass, `--justify-${_ctx.justify}`, `--align-${_ctx.align}`, { "--padding": _ctx.contentPadding }]]),
|
|
104
146
|
role: "button",
|
|
105
147
|
tabindex: "-1",
|
|
106
|
-
|
|
148
|
+
onPointerdown: withModifiers(close, ["self"])
|
|
107
149
|
}, [
|
|
108
|
-
renderSlot(_ctx.$slots, "default", {
|
|
109
|
-
|
|
110
|
-
onBackdropClicked
|
|
111
|
-
}, void 0, !0)
|
|
112
|
-
], 2)
|
|
150
|
+
renderSlot(_ctx.$slots, "default", { close }, void 0, !0)
|
|
151
|
+
], 34)
|
|
113
152
|
])
|
|
114
153
|
])
|
|
115
|
-
], 16)) : createCommentVNode("", !0)
|
|
154
|
+
], 16, _hoisted_1)) : createCommentVNode("", !0)
|
|
116
155
|
]),
|
|
117
156
|
_: 3
|
|
118
157
|
}, 8, ["name"])
|
|
119
|
-
], 8, ["to"]));
|
|
158
|
+
], 8, ["to", "disabled"]));
|
|
120
159
|
}
|
|
121
|
-
}), MazBackdrop = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
160
|
+
}), MazBackdrop = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d23340ed"]]);
|
|
122
161
|
export {
|
|
123
162
|
MazBackdrop as default
|
|
124
163
|
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
export interface MazBackdropProps {
|
|
3
|
+
/** @model Modal's model value */
|
|
4
|
+
modelValue?: boolean;
|
|
5
|
+
/** Teleport selector */
|
|
6
|
+
teleportSelector?: string;
|
|
7
|
+
/** Function called before modal is close */
|
|
8
|
+
beforeClose?: () => Promise<void> | void;
|
|
9
|
+
/** Persistent dialog (not closable by clicking outside and remove close button) */
|
|
10
|
+
persistent?: boolean;
|
|
11
|
+
/** Prevent close on escape key */
|
|
12
|
+
closeOnEscape?: boolean;
|
|
13
|
+
/** Transition name */
|
|
14
|
+
transitionName?: string;
|
|
15
|
+
/** Backdrop class */
|
|
16
|
+
backdropClass?: HTMLAttributes['class'];
|
|
17
|
+
/** Backdrop content class */
|
|
18
|
+
backdropContentClass?: HTMLAttributes['class'];
|
|
19
|
+
/** Add padding to the content */
|
|
20
|
+
contentPadding?: boolean;
|
|
21
|
+
/** Justify content */
|
|
22
|
+
justify?: 'center' | 'end' | 'start' | 'space-between' | 'space-around' | 'none';
|
|
23
|
+
/** Align content */
|
|
24
|
+
align?: 'center' | 'end' | 'start' | 'none';
|
|
25
|
+
/** Variant */
|
|
26
|
+
variant?: 'bottom-sheet' | 'dialog' | 'drawer';
|
|
27
|
+
/** ID for aria-labelledby */
|
|
28
|
+
ariaLabelledby?: string;
|
|
29
|
+
/** ID for aria-describedby */
|
|
30
|
+
ariaDescribedby?: string;
|
|
31
|
+
}
|
|
32
|
+
declare function close(): void;
|
|
33
|
+
declare function toggleModal(value?: boolean): Promise<void>;
|
|
34
|
+
declare function onBackdropAnimationLeave(): void;
|
|
35
|
+
declare function onKeyPress(event: KeyboardEvent): void;
|
|
36
|
+
declare function __VLS_template(): {
|
|
37
|
+
attrs: Partial<{}>;
|
|
38
|
+
slots: {
|
|
39
|
+
default?(_: {
|
|
40
|
+
close: typeof close;
|
|
41
|
+
}): any;
|
|
42
|
+
};
|
|
43
|
+
refs: {};
|
|
44
|
+
rootEl: any;
|
|
45
|
+
};
|
|
46
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
47
|
+
declare const __VLS_component: import('vue').DefineComponent<MazBackdropProps, {
|
|
48
|
+
/**
|
|
49
|
+
* Animation leave event
|
|
50
|
+
* @description This is used to handle animation leave events
|
|
51
|
+
*/
|
|
52
|
+
onBackdropAnimationLeave: typeof onBackdropAnimationLeave;
|
|
53
|
+
/**
|
|
54
|
+
* Close the backdrop
|
|
55
|
+
* @description This is used to close the backdrop
|
|
56
|
+
*/
|
|
57
|
+
close: typeof close;
|
|
58
|
+
/**
|
|
59
|
+
* The present state of the backdrop
|
|
60
|
+
* @description This is used to check if the backdrop is present (open)
|
|
61
|
+
*/
|
|
62
|
+
present: import('vue').Ref<boolean, boolean>;
|
|
63
|
+
/**
|
|
64
|
+
* Toggle the backdrop
|
|
65
|
+
* @description This is used to toggle the backdrop
|
|
66
|
+
* @param {boolean} value - The value to toggle the backdrop (optional)
|
|
67
|
+
*/
|
|
68
|
+
toggleModal: typeof toggleModal;
|
|
69
|
+
/**
|
|
70
|
+
* Key press event
|
|
71
|
+
* @description This is used to handle key press events
|
|
72
|
+
*/
|
|
73
|
+
onKeyPress: typeof onKeyPress;
|
|
74
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
75
|
+
close: (value: void) => any;
|
|
76
|
+
open: (value: void) => any;
|
|
77
|
+
"update:model-value": (value: boolean) => any;
|
|
78
|
+
"before-close": (value: void) => any;
|
|
79
|
+
}, string, import('vue').PublicProps, Readonly<MazBackdropProps> & Readonly<{
|
|
80
|
+
onClose?: ((value?: void | undefined) => any) | undefined;
|
|
81
|
+
onOpen?: ((value?: void | undefined) => any) | undefined;
|
|
82
|
+
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
83
|
+
"onBefore-close"?: ((value?: void | undefined) => any) | undefined;
|
|
84
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
85
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
86
|
+
export default _default;
|
|
87
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
88
|
+
new (): {
|
|
89
|
+
$slots: S;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, renderSlot } from "vue";
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, renderSlot } from "vue";
|
|
2
|
+
import { g as getColor } from "../chunks/types.D0Bp_UhS.js";
|
|
2
3
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
3
|
-
import '../assets/MazBadge.
|
|
4
|
+
import '../assets/MazBadge.ChI2DaTU.css';const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
5
|
__name: "MazBadge",
|
|
5
6
|
props: {
|
|
6
7
|
color: { default: "primary" },
|
|
@@ -13,7 +14,7 @@ import '../assets/MazBadge.DN8tdE8_.css';const _sfc_main = /* @__PURE__ */ defin
|
|
|
13
14
|
setup(__props) {
|
|
14
15
|
return (_ctx, _cache) => (openBlock(), createElementBlock("span", {
|
|
15
16
|
class: normalizeClass(["m-badge m-reset-css", [
|
|
16
|
-
`--${_ctx.color}`,
|
|
17
|
+
`--${unref(getColor)(_ctx.color)}`,
|
|
17
18
|
{ "--outlined": _ctx.outlined, "--pastel": _ctx.pastel, "--nowrap": _ctx.nowrap },
|
|
18
19
|
`--rounded-${_ctx.roundedSize}`
|
|
19
20
|
]]),
|
|
@@ -22,7 +23,7 @@ import '../assets/MazBadge.DN8tdE8_.css';const _sfc_main = /* @__PURE__ */ defin
|
|
|
22
23
|
renderSlot(_ctx.$slots, "default", {}, void 0, !0)
|
|
23
24
|
], 6));
|
|
24
25
|
}
|
|
25
|
-
}), MazBadge = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
26
|
+
}), MazBadge = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3e5aca4b"]]);
|
|
26
27
|
export {
|
|
27
28
|
MazBadge as default
|
|
28
29
|
};
|