maz-ui 4.0.0-beta.9 → 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 +13 -13
- 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
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DirectiveBinding } from 'vue';
|
|
2
|
+
export interface VFullscreenImgOptions {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
scaleOnHover?: boolean;
|
|
5
|
+
blurOnHover?: boolean;
|
|
6
|
+
zoom?: boolean;
|
|
7
|
+
offset?: number;
|
|
8
|
+
animation?: {
|
|
9
|
+
duration?: number;
|
|
10
|
+
easing?: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
interface VFullscreenImgBindingOptions extends VFullscreenImgOptions {
|
|
14
|
+
src: string;
|
|
15
|
+
alt?: string | null;
|
|
16
|
+
}
|
|
17
|
+
export type VFullscreenImgBindingValue = string | VFullscreenImgBindingOptions | undefined;
|
|
18
|
+
export type VFullscreenImgBinding = DirectiveBinding<VFullscreenImgBindingValue>;
|
|
19
|
+
export declare class FullscreenImgHandler {
|
|
20
|
+
private options;
|
|
21
|
+
private defaultOptions;
|
|
22
|
+
private mouseEnterListener;
|
|
23
|
+
private mouseLeaveListener;
|
|
24
|
+
private renderPreviewListener;
|
|
25
|
+
private buildOptions;
|
|
26
|
+
get allInstances(): HTMLElement[];
|
|
27
|
+
private getImgSrc;
|
|
28
|
+
private getImgAlt;
|
|
29
|
+
create(el: HTMLElement, binding: VFullscreenImgBinding): void;
|
|
30
|
+
update(el: HTMLElement, binding: VFullscreenImgBinding): void;
|
|
31
|
+
remove(el: HTMLElement): void;
|
|
32
|
+
private renderPreview;
|
|
33
|
+
private mouseLeave;
|
|
34
|
+
private mouseEnter;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { VFullscreenImgDirective } from './vFullscreenImg/fullscreen-img.directive';
|
|
3
|
+
declare const plugin: Plugin;
|
|
4
|
+
export { plugin as vFullscreenImgInstall };
|
|
5
|
+
export { vFullscreenImg, type VFullscreenImgDirective } from './vFullscreenImg/fullscreen-img.directive';
|
|
6
|
+
export type { VFullscreenImgBindingValue, VFullscreenImgOptions } from './vFullscreenImg/fullscreen-img.handler';
|
|
7
|
+
declare module 'vue' {
|
|
8
|
+
interface GlobalDirectives {
|
|
9
|
+
vFullscreenImg: VFullscreenImgDirective;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ClassOptions, VLazyImgBinding, VLazyImgOptions } from './types';
|
|
2
|
+
export * from './types';
|
|
3
|
+
export declare const DEFAULT_OPTIONS: ClassOptions;
|
|
4
|
+
export declare class LazyImg {
|
|
5
|
+
private observers;
|
|
6
|
+
private readonly defaultOptions;
|
|
7
|
+
private options;
|
|
8
|
+
private onImgLoadedCallback;
|
|
9
|
+
private onImgErrorCallback;
|
|
10
|
+
private hasImgLoaded;
|
|
11
|
+
constructor(opts?: VLazyImgOptions);
|
|
12
|
+
private loadErrorPhoto;
|
|
13
|
+
private buildOptions;
|
|
14
|
+
private removeClass;
|
|
15
|
+
private addClass;
|
|
16
|
+
private removeAllStateClasses;
|
|
17
|
+
private setBaseClass;
|
|
18
|
+
private imageIsLoading;
|
|
19
|
+
private imageIsLoaded;
|
|
20
|
+
private imageHasError;
|
|
21
|
+
private getSrc;
|
|
22
|
+
private getImageUrl;
|
|
23
|
+
private setPictureSourceUrls;
|
|
24
|
+
private hasBgImgMode;
|
|
25
|
+
private isPictureElement;
|
|
26
|
+
private getImgElement;
|
|
27
|
+
private setDefaultPhoto;
|
|
28
|
+
private addEventListenerToImg;
|
|
29
|
+
private loadImage;
|
|
30
|
+
setImgSrc(el: HTMLElement, src: string): void;
|
|
31
|
+
private handleIntersectionObserver;
|
|
32
|
+
private createObserver;
|
|
33
|
+
private imageHandler;
|
|
34
|
+
private bindUpdateHandler;
|
|
35
|
+
add(el: HTMLElement, binding: VLazyImgBinding): Promise<void>;
|
|
36
|
+
update(el: HTMLElement, binding: VLazyImgBinding): Promise<void>;
|
|
37
|
+
remove(el: HTMLElement, binding: VLazyImgBinding): void;
|
|
38
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DirectiveBinding, ObjectDirective } from 'vue';
|
|
2
|
+
export interface ClassOptions {
|
|
3
|
+
baseClass: string;
|
|
4
|
+
loadingClass: string;
|
|
5
|
+
loadedClass: string;
|
|
6
|
+
errorClass: string;
|
|
7
|
+
fallbackClass: string;
|
|
8
|
+
observerOnce: boolean;
|
|
9
|
+
loadOnce: boolean;
|
|
10
|
+
observerOptions: {
|
|
11
|
+
root?: HTMLElement | null;
|
|
12
|
+
threshold: number;
|
|
13
|
+
rootMargin?: string;
|
|
14
|
+
};
|
|
15
|
+
fallbackSrc?: string | false;
|
|
16
|
+
onLoading?: (el: Element) => unknown;
|
|
17
|
+
onLoaded?: (el: Element) => unknown;
|
|
18
|
+
onError?: (el: Element) => unknown;
|
|
19
|
+
onIntersecting?: (el: Element) => unknown;
|
|
20
|
+
}
|
|
21
|
+
export type VLazyImgOptions = Partial<ClassOptions>;
|
|
22
|
+
interface VLazyImgBindingOptions extends VLazyImgOptions {
|
|
23
|
+
src?: string;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export type VLazyImgBindingValue = string | VLazyImgBindingOptions;
|
|
27
|
+
export type VLazyImgBinding = DirectiveBinding<VLazyImgBindingValue>;
|
|
28
|
+
export type VLazyImgDirective = ObjectDirective<HTMLElement, VLazyImgBinding>;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { VLazyImgDirective } from './vLazyImg/lazy-img.directive';
|
|
3
|
+
import { VLazyImgOptions } from './vLazyImg/types';
|
|
4
|
+
declare const plugin: Plugin<[VLazyImgOptions?]>;
|
|
5
|
+
export { vLazyImg, type VLazyImgDirective } from './vLazyImg/lazy-img.directive';
|
|
6
|
+
export { plugin as vLazyImgInstall };
|
|
7
|
+
export type { VLazyImgBindingValue, VLazyImgOptions } from './vLazyImg/types';
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
interface GlobalDirectives {
|
|
10
|
+
vLazyImg: VLazyImgDirective;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { DirectiveBinding, ObjectDirective, Plugin } from 'vue';
|
|
2
|
+
import { MazPopoverPosition, MazPopoverProps, MazPopoverTrigger } from '../components/MazPopover.vue';
|
|
3
|
+
interface VTooltipOptions extends Partial<Omit<MazPopoverProps, 'modelValue'>> {
|
|
4
|
+
/**
|
|
5
|
+
* Text to display in the tooltip
|
|
6
|
+
*/
|
|
7
|
+
text?: string;
|
|
8
|
+
/**
|
|
9
|
+
* HTML content (alternative to text)
|
|
10
|
+
*/
|
|
11
|
+
html?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Color variant of the tooltip
|
|
14
|
+
* @default contrast
|
|
15
|
+
*/
|
|
16
|
+
color?: MazPopoverProps['color'];
|
|
17
|
+
/**
|
|
18
|
+
* Position of the tooltip
|
|
19
|
+
* The preferred position is set to 'top' if no position is provided
|
|
20
|
+
* @default top
|
|
21
|
+
*/
|
|
22
|
+
position?: MazPopoverPosition;
|
|
23
|
+
/**
|
|
24
|
+
* Trigger of the tooltip
|
|
25
|
+
* @default hover
|
|
26
|
+
*/
|
|
27
|
+
trigger?: MazPopoverTrigger;
|
|
28
|
+
/**
|
|
29
|
+
* Close on click outside
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
closeOnClickOutside?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Close on escape
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
closeOnEscape?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Open the tooltip
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
open?: boolean;
|
|
43
|
+
}
|
|
44
|
+
type VTooltipBindingValue = string | VTooltipOptions;
|
|
45
|
+
export type TooltipBinding = DirectiveBinding<VTooltipBindingValue, NonNullable<MazPopoverProps['position']>>;
|
|
46
|
+
export type VTooltipDirective = ObjectDirective<HTMLElement, VTooltipBindingValue, NonNullable<MazPopoverProps['position']>>;
|
|
47
|
+
declare const directive: VTooltipDirective;
|
|
48
|
+
declare const plugin: Plugin<[Partial<VTooltipOptions>?]>;
|
|
49
|
+
export { directive as vTooltip, type VTooltipBindingValue, plugin as vTooltipInstall, type VTooltipOptions, };
|
|
50
|
+
declare module 'vue' {
|
|
51
|
+
interface GlobalDirectives {
|
|
52
|
+
vTooltip: VTooltipDirective;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -21,11 +21,11 @@ class TooltipHandler {
|
|
|
21
21
|
return typeof binding.value == "string" ? {
|
|
22
22
|
...baseOptions,
|
|
23
23
|
text: binding.value,
|
|
24
|
-
position: this.getPositionFromModifiers(binding) || baseOptions.position
|
|
24
|
+
position: this.getPositionFromModifiers(binding) || baseOptions.position || "top"
|
|
25
25
|
} : {
|
|
26
26
|
...baseOptions,
|
|
27
27
|
...binding.value,
|
|
28
|
-
position: this.getPositionFromModifiers(binding) || binding.value.position || baseOptions.position
|
|
28
|
+
position: this.getPositionFromModifiers(binding) || binding.value.position || baseOptions.position || "top"
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
getPositionFromModifiers(binding) {
|
|
@@ -49,14 +49,12 @@ class TooltipHandler {
|
|
|
49
49
|
return modifier;
|
|
50
50
|
}
|
|
51
51
|
mount(el, binding) {
|
|
52
|
-
this.unmount(el);
|
|
53
52
|
const tooltipProps = this.getTooltipProps(binding);
|
|
54
53
|
if (!tooltipProps.text && !tooltipProps.html) {
|
|
55
54
|
console.warn("[maz-ui](vTooltip) No text or html content provided");
|
|
56
55
|
return;
|
|
57
56
|
}
|
|
58
|
-
const isOpen = ref(!!tooltipProps.open)
|
|
59
|
-
document.body.appendChild(tooltipContainer);
|
|
57
|
+
const isOpen = ref(!!tooltipProps.open);
|
|
60
58
|
let vNodeInstance = null;
|
|
61
59
|
const createTooltip = () => {
|
|
62
60
|
const popoverProps = {
|
|
@@ -71,23 +69,17 @@ class TooltipHandler {
|
|
|
71
69
|
tooltipProps.panelClass
|
|
72
70
|
].filter(Boolean).join(" "),
|
|
73
71
|
modelValue: isOpen.value,
|
|
74
|
-
positionReference: el
|
|
75
|
-
|
|
72
|
+
positionReference: el,
|
|
73
|
+
onAfterCloseAnimation: () => {
|
|
74
|
+
vNodeInstance?.destroy(), vNodeInstance = null;
|
|
75
|
+
}
|
|
76
76
|
};
|
|
77
|
-
vNodeInstance
|
|
78
|
-
props:
|
|
79
|
-
...popoverProps,
|
|
80
|
-
modelValue: isOpen.value,
|
|
81
|
-
"onUpdate:modelValue": (value) => {
|
|
82
|
-
isOpen.value = value;
|
|
83
|
-
}
|
|
84
|
-
},
|
|
77
|
+
vNodeInstance = useMountComponent(MazPopover, {
|
|
78
|
+
props: popoverProps,
|
|
85
79
|
children: {
|
|
86
|
-
// Use a dummy trigger since we control positioning via positionReference
|
|
87
|
-
// trigger: () => h('div', { style: 'display: none;' }),
|
|
88
80
|
default: () => tooltipProps.html ? h("div", { innerHTML: tooltipProps.html }) : tooltipProps.text || ""
|
|
89
81
|
},
|
|
90
|
-
element:
|
|
82
|
+
element: el
|
|
91
83
|
});
|
|
92
84
|
};
|
|
93
85
|
function isTouchDevice() {
|
|
@@ -112,12 +104,12 @@ class TooltipHandler {
|
|
|
112
104
|
mouseEnterHandler && (el.removeEventListener("mouseenter", mouseEnterHandler), mouseEnterHandler = null), mouseLeaveHandler && (el.removeEventListener("mouseleave", mouseLeaveHandler), mouseLeaveHandler = null), clickHandler && (el.removeEventListener("click", clickHandler), clickHandler = null);
|
|
113
105
|
}
|
|
114
106
|
nextTick(() => {
|
|
115
|
-
|
|
116
|
-
}), watch(isOpen, () => {
|
|
117
|
-
createTooltip();
|
|
118
|
-
});
|
|
107
|
+
setupTriggers();
|
|
108
|
+
}), watch(isOpen, (value) => {
|
|
109
|
+
value ? createTooltip() : vNodeInstance && vNodeInstance?.vNode.component?.exposed?.close();
|
|
110
|
+
}, { immediate: !0 });
|
|
119
111
|
function destroy() {
|
|
120
|
-
cleanupTriggers(), vNodeInstance && (vNodeInstance.destroy(), vNodeInstance = null)
|
|
112
|
+
cleanupTriggers(), vNodeInstance && (vNodeInstance.destroy(), vNodeInstance = null);
|
|
121
113
|
}
|
|
122
114
|
function updateProps(newProps) {
|
|
123
115
|
const oldTrigger = tooltipProps.trigger;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const style = "\n.maz-zoom-img {\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 1rem;\n z-index: 1050;\n background-color: hsla(238, 15%, 40%, 0.7);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n}\n\n.maz-zoom-img,\n.maz-zoom-img * {\n box-sizing: border-box;\n}\n\n.maz-zoom-img .maz-zoom-img__wrapper {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 0;\n min-height: 0;\n max-width: 100%;\n max-height: 100%;\n transition: all 300ms ease-in-out;\n opacity: 0;\n transform: scale(0.5);\n}\n\n.maz-zoom-img.maz-animate .maz-zoom-img__wrapper {\n opacity: 1;\n transform: scale(1);\n}\n\n.maz-zoom-img.maz-animate .maz-zoom-img__loader {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: hsla(238, 15%, 40%, 0.7);\n border-radius: 1rem;\n z-index: 2;\n min-width: 60px;\n min-height: 60px;\n}\n.maz-zoom-img.maz-animate .maz-zoom-img__loader[hidden] {\n display: none;\n}\n\n@-webkit-keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n\n@keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n}\n\n.maz-zoom-img.maz-animate .maz-zoom-img__loader__svg {\n animation: spin .6s linear infinite;\n}\n\n.maz-zoom-img img {\n max-width: 100%;\n max-height: 100%;\n min-width: 0;\n border-radius: 1rem;\n}\n\n.maz-zoom-img .maz-zoom-btn {\n margin: 0 auto;\n border: none;\n background-color: hsla(0, 0%, 7%, 0.5);\n box-shadow: 0 0 0.5rem 0 hsla(0, 0%, 0%, 0.2);\n height: 2.2rem;\n min-height: 2.2rem;\n width: 2.2rem;\n min-width: 2.2rem;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 2.2rem;\n cursor: pointer;\n flex: 0 0 auto;\n outline: none;\n}\n\n.maz-zoom-img .maz-zoom-btn svg {\n fill: white;\n}\n\n.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--close {\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n z-index: 1;\n}\n\n.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--previous {\n position: absolute;\n left: 0.5rem;\n z-index: 1;\n}\n\n.maz-zoom-img .maz-zoom-btn.maz-zoom-btn--next {\n position: absolute;\n right: 0.5rem;\n z-index: 1;\n}\n\n.maz-zoom-img .maz-zoom-btn:hover {\n background-color: hsl(0, 0%, 0%);\n}";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ObjectDirective } from 'vue';
|
|
2
|
+
import { VZoomImgBindingValue } from './zoom-img.handler';
|
|
3
|
+
export type VZoomImgDirective = ObjectDirective<HTMLElement, VZoomImgBindingValue>;
|
|
4
|
+
export declare const vZoomImg: {
|
|
5
|
+
created(el: HTMLElement, binding: import('vue').DirectiveBinding<VZoomImgBindingValue, string, string>): void;
|
|
6
|
+
updated(_el: HTMLElement, binding: import('vue').DirectiveBinding<VZoomImgBindingValue, string, string>): void;
|
|
7
|
+
unmounted(el: HTMLElement): void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { DirectiveBinding } from 'vue';
|
|
2
|
+
export interface VZoomImgOptions {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
scale?: boolean;
|
|
5
|
+
blur?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface VZoomImgBindingOptions extends VZoomImgOptions {
|
|
8
|
+
src: string;
|
|
9
|
+
alt?: string;
|
|
10
|
+
}
|
|
11
|
+
export type VZoomImgBindingValue = string | VZoomImgBindingOptions;
|
|
12
|
+
export type VZoomImgBinding = DirectiveBinding<VZoomImgBindingValue>;
|
|
13
|
+
export declare class ZoomImgHandler {
|
|
14
|
+
private options;
|
|
15
|
+
private loader;
|
|
16
|
+
private wrapper;
|
|
17
|
+
private img;
|
|
18
|
+
private keydownHandler;
|
|
19
|
+
private onImgLoadedCallback;
|
|
20
|
+
private buttonsAdded;
|
|
21
|
+
private defaultOptions;
|
|
22
|
+
private mouseEnterListener;
|
|
23
|
+
private mouseLeaveListener;
|
|
24
|
+
private renderPreviewListener;
|
|
25
|
+
constructor(binding: VZoomImgBinding);
|
|
26
|
+
private buildOptions;
|
|
27
|
+
get allInstances(): HTMLElement[];
|
|
28
|
+
create(el: HTMLElement): void;
|
|
29
|
+
update(binding: VZoomImgBinding): void;
|
|
30
|
+
remove(el: HTMLElement): void;
|
|
31
|
+
private renderPreview;
|
|
32
|
+
private onImgLoaded;
|
|
33
|
+
private getLoader;
|
|
34
|
+
private mouseLeave;
|
|
35
|
+
private mouseEnter;
|
|
36
|
+
private keydownLister;
|
|
37
|
+
private getButton;
|
|
38
|
+
private closePreview;
|
|
39
|
+
private getNewInstanceIndex;
|
|
40
|
+
private nextPreviousImage;
|
|
41
|
+
private useNextInstance;
|
|
42
|
+
private addStyle;
|
|
43
|
+
private keyboardEventHandler;
|
|
44
|
+
private imgEventHandler;
|
|
45
|
+
}
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { VZoomImgDirective, vZoomImg } from './vZoomImg/zoom-img.directive';
|
|
3
|
+
declare const plugin: Plugin;
|
|
4
|
+
export { vZoomImg, type VZoomImgDirective, plugin as vZoomImgInstall };
|
|
5
|
+
export type { VZoomImgBindingValue } from './vZoomImg/zoom-img.handler';
|
|
6
|
+
declare module 'vue' {
|
|
7
|
+
interface GlobalDirectives {
|
|
8
|
+
vZoomImg: VZoomImgDirective;
|
|
9
|
+
}
|
|
10
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@maz-ui/utils';
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { Router } from 'vue-router';
|
|
3
|
+
export interface AosOptions {
|
|
4
|
+
animation?: {
|
|
5
|
+
/**
|
|
6
|
+
* The delay of the animation
|
|
7
|
+
* @default 0
|
|
8
|
+
*/
|
|
9
|
+
delay?: number;
|
|
10
|
+
/**
|
|
11
|
+
* The duration of the animation
|
|
12
|
+
* @default 300
|
|
13
|
+
*/
|
|
14
|
+
duration?: number;
|
|
15
|
+
/**
|
|
16
|
+
* If true, the animation will be triggered only once
|
|
17
|
+
* @default true
|
|
18
|
+
*/
|
|
19
|
+
once?: boolean;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* The delay before the animation starts
|
|
23
|
+
* @default 100
|
|
24
|
+
*/
|
|
25
|
+
delay?: number;
|
|
26
|
+
/**
|
|
27
|
+
* The observer options
|
|
28
|
+
* @default {
|
|
29
|
+
* root: undefined,
|
|
30
|
+
* rootMargin: '0px',
|
|
31
|
+
* threshold: 0.2,
|
|
32
|
+
* }
|
|
33
|
+
*/
|
|
34
|
+
observer?: IntersectionObserverInit;
|
|
35
|
+
/**
|
|
36
|
+
* The router instance to trigger the animation on route change
|
|
37
|
+
* @default undefined
|
|
38
|
+
*/
|
|
39
|
+
router?: Router;
|
|
40
|
+
}
|
|
41
|
+
interface ClassOptions extends Omit<AosOptions, 'router'> {
|
|
42
|
+
animation: {
|
|
43
|
+
delay: number;
|
|
44
|
+
duration: number;
|
|
45
|
+
once: boolean;
|
|
46
|
+
};
|
|
47
|
+
delay: number;
|
|
48
|
+
observer: IntersectionObserverInit & {
|
|
49
|
+
rootMargin: string;
|
|
50
|
+
threshold: number | number[];
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export declare class AosHandler {
|
|
54
|
+
options: ClassOptions;
|
|
55
|
+
constructor(options?: Omit<AosOptions, 'router'>);
|
|
56
|
+
private handleIntersect;
|
|
57
|
+
private handleObserver;
|
|
58
|
+
runAnimations(): Promise<void> | undefined;
|
|
59
|
+
}
|
|
60
|
+
export declare const AosPlugin: Plugin<[AosOptions?]>;
|
|
61
|
+
declare module '@vue/runtime-core' {
|
|
62
|
+
interface ComponentCustomProperties {
|
|
63
|
+
/**
|
|
64
|
+
* Aos handler instance
|
|
65
|
+
* @description You should install the plugin to use this property
|
|
66
|
+
* @examl
|
|
67
|
+
* ```ts
|
|
68
|
+
* import { AosPlugin } from 'maz-ui/plugins/aos'
|
|
69
|
+
* import { createApp } from 'vue'
|
|
70
|
+
*
|
|
71
|
+
* const app = createApp(App)
|
|
72
|
+
* app.use(AosPlugin)
|
|
73
|
+
*
|
|
74
|
+
* const aos = useAos()
|
|
75
|
+
* aos.runAnimations()
|
|
76
|
+
*/
|
|
77
|
+
$mazAos: AosHandler;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
export declare function getAosInstance(): AosHandler;
|
|
81
|
+
export {};
|
package/dist/plugins/aos.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { e } from "../chunks/isClient.8V3qjGdO.js";
|
|
2
|
+
import { n } from "../chunks/sleep.Ci7GE4BQ.js";
|
|
3
3
|
const DEFAULT_OPTIONS = {
|
|
4
4
|
delay: 100,
|
|
5
5
|
observer: {
|
|
@@ -56,7 +56,7 @@ class AosHandler {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
async handleObserver() {
|
|
59
|
-
await
|
|
59
|
+
await n(this.options.delay);
|
|
60
60
|
const observer = new IntersectionObserver(this.handleIntersect.bind(this), this.options.observer);
|
|
61
61
|
for (const element of document.querySelectorAll("[data-maz-aos]")) {
|
|
62
62
|
const anchorAttr = element.getAttribute("data-maz-aos-anchor");
|
|
@@ -68,7 +68,7 @@ class AosHandler {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
runAnimations() {
|
|
71
|
-
if (
|
|
71
|
+
if (e())
|
|
72
72
|
return this.handleObserver();
|
|
73
73
|
console.warn("[MazAos](runAnimations) should be executed on client side");
|
|
74
74
|
}
|
|
@@ -76,7 +76,7 @@ class AosHandler {
|
|
|
76
76
|
let instance;
|
|
77
77
|
const AosPlugin = {
|
|
78
78
|
install: (app, options) => {
|
|
79
|
-
instance = new AosHandler(options), app.provide("mazAos", instance), app.config.globalProperties.$mazAos = instance,
|
|
79
|
+
instance = new AosHandler(options), app.provide("mazAos", instance), app.config.globalProperties.$mazAos = instance, e() && (options?.router ? options.router.afterEach(() => {
|
|
80
80
|
instance.runAnimations();
|
|
81
81
|
}) : instance.runAnimations());
|
|
82
82
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { MazDialogConfirmProps } from '../../components/MazDialogConfirm.vue';
|
|
3
|
+
export type DialogOptions = Partial<Omit<MazDialogConfirmProps, 'modelValue' | 'variant' | 'justify'>> & {
|
|
4
|
+
onClose?: () => unknown;
|
|
5
|
+
onAccept?: (response: unknown) => unknown;
|
|
6
|
+
onReject?: (response: unknown) => unknown;
|
|
7
|
+
};
|
|
8
|
+
export declare class DialogHandler {
|
|
9
|
+
private readonly app;
|
|
10
|
+
readonly globalOptions: DialogOptions;
|
|
11
|
+
constructor(app: App, globalOptions?: DialogOptions);
|
|
12
|
+
open(options: DialogOptions): {
|
|
13
|
+
destroy: () => void;
|
|
14
|
+
close: () => void;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import { DialogOptions, DialogHandler } from './dialog/DialogHandler';
|
|
3
|
+
export declare const DialogPlugin: Plugin<[DialogOptions?]>;
|
|
4
|
+
declare module '@vue/runtime-core' {
|
|
5
|
+
interface ComponentCustomProperties {
|
|
6
|
+
/**
|
|
7
|
+
* Dialog handler instance
|
|
8
|
+
* @description You should install the plugin to use this property
|
|
9
|
+
* @examl
|
|
10
|
+
* ```ts
|
|
11
|
+
* import { DialogPlugin } from 'maz-ui/plugins/dialog'
|
|
12
|
+
* import { createApp } from 'vue'
|
|
13
|
+
*
|
|
14
|
+
* const app = createApp(App)
|
|
15
|
+
* app.use(DialogPlugin)
|
|
16
|
+
*
|
|
17
|
+
* const dialog = useDialog()
|
|
18
|
+
* dialog.open({
|
|
19
|
+
* title: 'Hello',
|
|
20
|
+
* message: 'This is a dialog',
|
|
21
|
+
* })
|
|
22
|
+
*/
|
|
23
|
+
$mazDialog: Omit<DialogHandler, 'app'>;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export { DialogHandler, type DialogOptions } from './dialog/DialogHandler';
|
package/dist/plugins/dialog.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _sfc_main, u as useMazDialogConfirm } from "../chunks/MazDialogConfirm.vue_vue_type_script_setup_true_lang
|
|
1
|
+
import { _ as _sfc_main, u as useMazDialogConfirm } from "../chunks/MazDialogConfirm.vue_vue_type_script_setup_true_lang.DuEcluOw.js";
|
|
2
2
|
import { useMountComponent } from "../composables/useMountComponent.js";
|
|
3
3
|
const DEFAULT_OPTIONS = {
|
|
4
4
|
identifier: "main-dialog"
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { AosHandler, type AosOptions, AosPlugin, getAosInstance } from './aos';
|
|
2
|
+
export { type DialogOptions, DialogPlugin } from './dialog';
|
|
3
|
+
export { MazUi, type MazUiOptions } from './maz-ui';
|
|
4
|
+
export { ToastHandler, type ToastOptions, ToastPlugin, type ToastPosition } from './toast';
|
|
5
|
+
export { WaitHandler, waitInstance, WaitPlugin } from './wait';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { MazUiThemeOptions } from '@maz-ui/themes/plugin';
|
|
2
|
+
import { MazUiTranslationsOptions } from '@maz-ui/translations';
|
|
3
|
+
import { Plugin } from 'vue';
|
|
4
|
+
export interface MazUiOptions {
|
|
5
|
+
/**
|
|
6
|
+
* The theme configurations
|
|
7
|
+
* Can not be disabled
|
|
8
|
+
*/
|
|
9
|
+
theme: MazUiThemeOptions;
|
|
10
|
+
/**
|
|
11
|
+
* The translations configurations
|
|
12
|
+
* Can not be disabled
|
|
13
|
+
*/
|
|
14
|
+
translations?: MazUiTranslationsOptions;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* import { MazUi } from 'maz-ui/plugins/maz-ui'
|
|
20
|
+
* import { mazUi as mazUiPreset } from '@maz-ui/themes/presets/mazUi'
|
|
21
|
+
* import 'maz-ui/styles'
|
|
22
|
+
*
|
|
23
|
+
* app.use(MazUi, {
|
|
24
|
+
* theme: {
|
|
25
|
+
* preset: mazUiPreset,
|
|
26
|
+
* strategy: 'hybrid',
|
|
27
|
+
* darkMode: 'class',
|
|
28
|
+
* },
|
|
29
|
+
* translations: {
|
|
30
|
+
* locale: 'en',
|
|
31
|
+
* translations: {
|
|
32
|
+
* en: {
|
|
33
|
+
* ...
|
|
34
|
+
* },
|
|
35
|
+
* fr: {
|
|
36
|
+
* ...
|
|
37
|
+
* },
|
|
38
|
+
* },
|
|
39
|
+
* },
|
|
40
|
+
* })
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare const MazUi: Plugin<[MazUiOptions]>;
|