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,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
class
|
|
3
|
-
constructor(
|
|
4
|
-
this.callback =
|
|
1
|
+
import { e } from "../chunks/isClient.8V3qjGdO.js";
|
|
2
|
+
class l {
|
|
3
|
+
constructor(t, e$1) {
|
|
4
|
+
this.callback = t, this.options = {
|
|
5
5
|
...this.defaultOptions,
|
|
6
|
-
...
|
|
7
|
-
},
|
|
6
|
+
...e$1
|
|
7
|
+
}, e() && this.start();
|
|
8
8
|
}
|
|
9
9
|
defaultOptions = {
|
|
10
10
|
element: void 0,
|
|
@@ -38,17 +38,17 @@ class IdleTimeout {
|
|
|
38
38
|
return this.options.element ?? document.body;
|
|
39
39
|
}
|
|
40
40
|
start() {
|
|
41
|
-
if (!
|
|
41
|
+
if (!e()) {
|
|
42
42
|
console.warn("[IdleTimeout](start) you should run this method on client side");
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
|
-
for (const
|
|
46
|
-
this.element.addEventListener(
|
|
45
|
+
for (const t of this.eventNames)
|
|
46
|
+
this.element.addEventListener(t, this.handleEvent);
|
|
47
47
|
this.resetTimeout(), this.options.immediate && this.callback({ isIdle: !1, instance: this });
|
|
48
48
|
}
|
|
49
49
|
pause() {
|
|
50
|
-
const
|
|
51
|
-
|
|
50
|
+
const t = this.startTime + this.options.timeout - Date.now();
|
|
51
|
+
t <= 0 || (this.remainingTime = t, this.timeoutHandler && (clearTimeout(this.timeoutHandler), this.timeoutHandler = void 0));
|
|
52
52
|
}
|
|
53
53
|
resume() {
|
|
54
54
|
this.remainingTime <= 0 || (this.resetTimeout(), this.callback({ isIdle: this.isIdle, instance: this }), this.remainingTime = 0);
|
|
@@ -57,13 +57,13 @@ class IdleTimeout {
|
|
|
57
57
|
this.isDestroy = !1, this.isIdle = !1, this.remainingTime = 0, this.resetTimeout(), this.callback({ isIdle: this.isIdle, instance: this });
|
|
58
58
|
}
|
|
59
59
|
destroy() {
|
|
60
|
-
if (!
|
|
60
|
+
if (!e()) {
|
|
61
61
|
console.warn("[IdleTimeout](destroy) you should run this method on client side");
|
|
62
62
|
return;
|
|
63
63
|
}
|
|
64
64
|
this.isDestroy = !0;
|
|
65
|
-
for (const
|
|
66
|
-
this.element.removeEventListener(
|
|
65
|
+
for (const t of this.eventNames)
|
|
66
|
+
this.element.removeEventListener(t, this.handleEvent);
|
|
67
67
|
this.timeoutHandler && clearTimeout(this.timeoutHandler);
|
|
68
68
|
}
|
|
69
69
|
resetTimeout() {
|
|
@@ -72,19 +72,19 @@ class IdleTimeout {
|
|
|
72
72
|
this.remainingTime || this.options.timeout
|
|
73
73
|
), this.startTime = Date.now();
|
|
74
74
|
}
|
|
75
|
-
handleEvent = (
|
|
75
|
+
handleEvent = (t) => {
|
|
76
76
|
try {
|
|
77
77
|
if (this.remainingTime > 0)
|
|
78
78
|
return;
|
|
79
|
-
if (
|
|
80
|
-
const { clientX, clientY } =
|
|
81
|
-
if (
|
|
79
|
+
if (t.type === "mousemove") {
|
|
80
|
+
const { clientX: e2, clientY: i } = t;
|
|
81
|
+
if (e2 === void 0 && i === void 0 || e2 === this.lastClientX && i === this.lastClientY)
|
|
82
82
|
return;
|
|
83
|
-
this.lastClientX =
|
|
83
|
+
this.lastClientX = e2, this.lastClientY = i;
|
|
84
84
|
}
|
|
85
|
-
this.resetTimeout(), this.callback({ isIdle: this.isIdle, eventType:
|
|
86
|
-
} catch (
|
|
87
|
-
throw new Error(`[IdleTimeout](handleEvent) ${
|
|
85
|
+
this.resetTimeout(), this.callback({ isIdle: this.isIdle, eventType: t.type, instance: this });
|
|
86
|
+
} catch (e2) {
|
|
87
|
+
throw new Error(`[IdleTimeout](handleEvent) ${e2}`);
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
handleTimeout() {
|
|
@@ -96,21 +96,21 @@ class IdleTimeout {
|
|
|
96
96
|
get timeout() {
|
|
97
97
|
return this.options.timeout;
|
|
98
98
|
}
|
|
99
|
-
set timeout(
|
|
100
|
-
this.options.timeout =
|
|
99
|
+
set timeout(t) {
|
|
100
|
+
this.options.timeout = t;
|
|
101
101
|
}
|
|
102
102
|
get idle() {
|
|
103
103
|
return this.isIdle;
|
|
104
104
|
}
|
|
105
|
-
set idle(
|
|
106
|
-
|
|
105
|
+
set idle(t) {
|
|
106
|
+
t ? this.handleTimeout() : this.reset(), this.callback({ isIdle: this.isIdle, instance: this });
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
function useIdleTimeout({
|
|
110
110
|
callback,
|
|
111
111
|
options
|
|
112
112
|
}) {
|
|
113
|
-
return new
|
|
113
|
+
return new l(callback, options);
|
|
114
114
|
}
|
|
115
115
|
export {
|
|
116
116
|
useIdleTimeout
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useId, computed } from "vue";
|
|
2
2
|
function useInstanceUniqId({
|
|
3
3
|
componentName,
|
|
4
4
|
providedId
|
|
5
5
|
}) {
|
|
6
|
-
|
|
6
|
+
const generatedId = useId();
|
|
7
|
+
return computed(() => providedId || `${componentName}-${generatedId.replace(/:/g, "")}`);
|
|
7
8
|
}
|
|
8
9
|
export {
|
|
9
10
|
useInstanceUniqId
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { App, Component, VNodeProps, createVNode } from 'vue';
|
|
2
|
+
export declare function useMountComponent<T extends Component | string, P = Record<string, unknown>>(component: T | string, options?: {
|
|
3
|
+
props?: P & VNodeProps;
|
|
4
|
+
children?: Parameters<typeof createVNode>[2];
|
|
5
|
+
app?: App;
|
|
6
|
+
element?: HTMLElement;
|
|
7
|
+
noRender?: boolean;
|
|
8
|
+
}): {
|
|
9
|
+
vNode: import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}>;
|
|
12
|
+
destroy: () => void;
|
|
13
|
+
el: HTMLElement;
|
|
14
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
export interface ReadingTimeOptions {
|
|
3
|
+
/** Content to calculate the reading time */
|
|
4
|
+
content?: string | Ref<string>;
|
|
5
|
+
/** Selector of the content to calculate the reading time */
|
|
6
|
+
contentSelector?: string | Ref<string>;
|
|
7
|
+
/** Ref of the content to calculate the reading time */
|
|
8
|
+
contentRef?: Ref<HTMLElement | undefined>;
|
|
9
|
+
/**
|
|
10
|
+
* Words per minute
|
|
11
|
+
* @default 150
|
|
12
|
+
*/
|
|
13
|
+
velocity?: number | Ref<number>;
|
|
14
|
+
}
|
|
15
|
+
export interface ReadingTimeReturn {
|
|
16
|
+
/** Content to calculate the reading time */
|
|
17
|
+
content: ComputedRef<string | undefined | null>;
|
|
18
|
+
/** Number of words in the content */
|
|
19
|
+
wordCount: ComputedRef<number>;
|
|
20
|
+
/** Words per minute */
|
|
21
|
+
velocity: ComputedRef<number>;
|
|
22
|
+
/** Reading time in minutes */
|
|
23
|
+
duration: ComputedRef<number>;
|
|
24
|
+
}
|
|
25
|
+
export declare function useReadingTime(options: ReadingTimeOptions): ReadingTimeReturn;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
export declare function useStringMatching(string1: MaybeRefOrGetter<string>, string2: MaybeRefOrGetter<string>, threshold?: MaybeRefOrGetter<number>): {
|
|
3
|
+
isMatching: import('vue').ComputedRef<boolean>;
|
|
4
|
+
score: import('vue').ComputedRef<number>;
|
|
5
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SwipeOptions } from '@maz-ui/utils/helpers/swipeHandler';
|
|
2
|
+
import { MaybeRef } from 'vue';
|
|
3
|
+
export declare function useSwipe(options: Omit<SwipeOptions, 'onValuesChanged' | 'element'> & {
|
|
4
|
+
element: MaybeRef<HTMLElement> | string | null | undefined;
|
|
5
|
+
}): {
|
|
6
|
+
xDiff: import('vue').Ref<number | undefined, number | undefined>;
|
|
7
|
+
yDiff: import('vue').Ref<number | undefined, number | undefined>;
|
|
8
|
+
xStart: import('vue').Ref<number | undefined, number | undefined>;
|
|
9
|
+
xEnd: import('vue').Ref<number | undefined, number | undefined>;
|
|
10
|
+
yStart: import('vue').Ref<number | undefined, number | undefined>;
|
|
11
|
+
yEnd: import('vue').Ref<number | undefined, number | undefined>;
|
|
12
|
+
start: () => void;
|
|
13
|
+
stop: () => void;
|
|
14
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ref, computed, toValue } from "vue";
|
|
2
|
-
const
|
|
2
|
+
const s = {
|
|
3
3
|
preventDefaultOnTouchMove: !1,
|
|
4
4
|
preventDefaultOnMouseWheel: !1,
|
|
5
5
|
threshold: 50,
|
|
6
6
|
immediate: !1,
|
|
7
7
|
triggerOnEnd: !1
|
|
8
8
|
};
|
|
9
|
-
class
|
|
10
|
-
constructor(
|
|
11
|
-
this.inputOption =
|
|
9
|
+
class n {
|
|
10
|
+
constructor(t) {
|
|
11
|
+
this.inputOption = t, this.options = { ...s, ...t }, this.onToucheStartCallback = this.toucheStartHandler.bind(this), this.onToucheMoveCallback = this.handleTouchMove.bind(this), this.onToucheEndCallback = this.handleTouchEnd.bind(this), this.onMouseWheelCallback = this.handleMouseWheel.bind(this), this.start = this.startListening.bind(this), this.stop = this.stopListening.bind(this), this.options.element && this.setElement(this.options.element), this.options.immediate && this.start();
|
|
12
12
|
}
|
|
13
13
|
element;
|
|
14
14
|
xStart;
|
|
@@ -30,28 +30,28 @@ class Swipe {
|
|
|
30
30
|
stopListening() {
|
|
31
31
|
this.element?.removeEventListener("touchstart", this.onToucheStartCallback), this.element?.removeEventListener("touchmove", this.onToucheMoveCallback), this.element?.removeEventListener("touchend", this.onToucheEndCallback), this.options.preventDefaultOnMouseWheel && this.element?.removeEventListener("mousewheel", this.onMouseWheelCallback);
|
|
32
32
|
}
|
|
33
|
-
setElement(
|
|
34
|
-
if (!
|
|
33
|
+
setElement(t) {
|
|
34
|
+
if (!t) {
|
|
35
35
|
console.error(
|
|
36
36
|
"[maz-ui][SwipeHandler](setElement) Element should be provided. Its can be a string selector or an HTMLElement"
|
|
37
37
|
);
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
-
if (typeof
|
|
41
|
-
const
|
|
42
|
-
if (!(
|
|
40
|
+
if (typeof t == "string") {
|
|
41
|
+
const e = document.querySelector(t);
|
|
42
|
+
if (!(e instanceof HTMLElement)) {
|
|
43
43
|
console.error("[maz-ui][SwipeHandler](setElement) String selector for element is not found");
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
|
-
this.element =
|
|
46
|
+
this.element = e;
|
|
47
47
|
} else
|
|
48
|
-
this.element =
|
|
48
|
+
this.element = t;
|
|
49
49
|
}
|
|
50
|
-
handleMouseWheel(
|
|
51
|
-
|
|
50
|
+
handleMouseWheel(t) {
|
|
51
|
+
t.preventDefault();
|
|
52
52
|
}
|
|
53
|
-
toucheStartHandler(
|
|
54
|
-
this.xStart =
|
|
53
|
+
toucheStartHandler(t) {
|
|
54
|
+
this.xStart = t.touches[0].clientX, this.yStart = t.touches[0].clientY, this.emitValuesChanged();
|
|
55
55
|
}
|
|
56
56
|
emitValuesChanged() {
|
|
57
57
|
this.options.onValuesChanged?.({
|
|
@@ -63,21 +63,21 @@ class Swipe {
|
|
|
63
63
|
yDiff: this.yDiff
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
handleTouchMove(
|
|
67
|
-
this.options.preventDefaultOnTouchMove &&
|
|
66
|
+
handleTouchMove(t) {
|
|
67
|
+
this.options.preventDefaultOnTouchMove && t.cancelable && t.preventDefault(), this.xEnd = t.touches[0].clientX, this.yEnd = t.touches[0].clientY, !(!this.xStart || !this.yStart) && (this.xDiff = this.xStart - this.xEnd, this.yDiff = this.yStart - this.yEnd, this.emitValuesChanged(), this.options.triggerOnEnd || this.runCallbacks(t));
|
|
68
68
|
}
|
|
69
|
-
handleTouchEnd(
|
|
70
|
-
this.runCallbacks(
|
|
69
|
+
handleTouchEnd(t) {
|
|
70
|
+
this.runCallbacks(t), this.emitValuesChanged();
|
|
71
71
|
}
|
|
72
|
-
runCallbacks(
|
|
73
|
-
typeof this.xDiff != "number" || typeof this.yDiff != "number" || Math.abs(this.xDiff) < this.options.threshold && Math.abs(this.yDiff) < this.options.threshold || (Math.abs(this.xDiff) > Math.abs(this.yDiff) ? this.xDiff > 0 ? this.options.onLeft?.(
|
|
72
|
+
runCallbacks(t) {
|
|
73
|
+
typeof this.xDiff != "number" || typeof this.yDiff != "number" || Math.abs(this.xDiff) < this.options.threshold && Math.abs(this.yDiff) < this.options.threshold || (Math.abs(this.xDiff) > Math.abs(this.yDiff) ? this.xDiff > 0 ? this.options.onLeft?.(t) : this.options.onRight?.(t) : this.yDiff > 0 ? this.options.onUp?.(t) : this.options.onDown?.(t), this.resetValues());
|
|
74
74
|
}
|
|
75
75
|
resetValues() {
|
|
76
76
|
this.xStart = void 0, this.yStart = void 0, this.xEnd = void 0, this.yEnd = void 0, this.xDiff = void 0, this.yDiff = void 0, this.emitValuesChanged();
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
function useSwipe(options) {
|
|
80
|
-
const xDiff = ref(), yDiff = ref(), xStart = ref(), xEnd = ref(), yStart = ref(), yEnd = ref(), element = computed(() => toValue(options.element)), swiper = new
|
|
80
|
+
const xDiff = ref(), yDiff = ref(), xStart = ref(), xEnd = ref(), yStart = ref(), yEnd = ref(), element = computed(() => toValue(options.element)), swiper = new n({
|
|
81
81
|
...options,
|
|
82
82
|
element: element.value,
|
|
83
83
|
onValuesChanged(values) {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface TimerOptions {
|
|
2
|
+
/**
|
|
3
|
+
* The time in milliseconds
|
|
4
|
+
* @default 1000
|
|
5
|
+
*/
|
|
6
|
+
timeout?: number;
|
|
7
|
+
/**
|
|
8
|
+
* The callback to execute when the timer is finished
|
|
9
|
+
* @default undefined
|
|
10
|
+
*/
|
|
11
|
+
callback?: () => unknown;
|
|
12
|
+
/**
|
|
13
|
+
* The interval to update the remaining time
|
|
14
|
+
* @default 200
|
|
15
|
+
*/
|
|
16
|
+
remainingTimeUpdate?: number;
|
|
17
|
+
/**
|
|
18
|
+
* The offset time to execute the callback
|
|
19
|
+
* @default 0
|
|
20
|
+
*/
|
|
21
|
+
callbackOffsetTime?: number;
|
|
22
|
+
}
|
|
23
|
+
export declare function useTimer({ timeout, callback, remainingTimeUpdate, callbackOffsetTime }: TimerOptions): {
|
|
24
|
+
remainingTime: import('vue').Ref<number, number>;
|
|
25
|
+
start: (timeout?: number) => void;
|
|
26
|
+
pause: () => void;
|
|
27
|
+
resume: () => void;
|
|
28
|
+
stop: () => void;
|
|
29
|
+
reset: () => void;
|
|
30
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare function useToast(): {
|
|
2
|
+
message: (message: string, options?: import('../plugins').ToastOptions) => {
|
|
3
|
+
destroy: () => void;
|
|
4
|
+
close: () => any;
|
|
5
|
+
};
|
|
6
|
+
success: (message: string, options?: Omit<import('../plugins').ToastOptions, "type">) => {
|
|
7
|
+
destroy: () => void;
|
|
8
|
+
close: () => any;
|
|
9
|
+
};
|
|
10
|
+
error: (message: string, options?: Omit<import('../plugins').ToastOptions, "type">) => {
|
|
11
|
+
destroy: () => void;
|
|
12
|
+
close: () => any;
|
|
13
|
+
};
|
|
14
|
+
info: (message: string, options?: Omit<import('../plugins').ToastOptions, "type">) => {
|
|
15
|
+
destroy: () => void;
|
|
16
|
+
close: () => any;
|
|
17
|
+
};
|
|
18
|
+
warning: (message: string, options?: Omit<import('../plugins').ToastOptions, "type">) => {
|
|
19
|
+
destroy: () => void;
|
|
20
|
+
close: () => any;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UserVisibilyCallback, UserVisibilyOptions, UserVisibility } from '@maz-ui/utils/helpers/userVisibility';
|
|
2
|
+
export declare function useUserVisibility({ callback, options, }: {
|
|
3
|
+
callback: UserVisibilyCallback;
|
|
4
|
+
options?: UserVisibilyOptions;
|
|
5
|
+
}): UserVisibility;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
class
|
|
3
|
-
constructor(
|
|
4
|
-
this.callback =
|
|
1
|
+
import { e } from "../chunks/isClient.8V3qjGdO.js";
|
|
2
|
+
class o {
|
|
3
|
+
constructor(t, e$1) {
|
|
4
|
+
this.callback = t, this.options = {
|
|
5
5
|
...this.defaultOptions,
|
|
6
|
-
...
|
|
7
|
-
}, this.eventHandlerFunction = this.eventHandler.bind(this),
|
|
6
|
+
...e$1
|
|
7
|
+
}, this.eventHandlerFunction = this.eventHandler.bind(this), e() && this.start();
|
|
8
8
|
}
|
|
9
9
|
eventHandlerFunction;
|
|
10
10
|
event = "visibilitychange";
|
|
@@ -17,7 +17,7 @@ class UserVisibility {
|
|
|
17
17
|
};
|
|
18
18
|
isVisible = !1;
|
|
19
19
|
start() {
|
|
20
|
-
if (!
|
|
20
|
+
if (!e()) {
|
|
21
21
|
console.warn("[UserVisibility](start) you should run this method on client side");
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
@@ -49,7 +49,7 @@ function useUserVisibility({
|
|
|
49
49
|
callback,
|
|
50
50
|
options
|
|
51
51
|
}) {
|
|
52
|
-
return new
|
|
52
|
+
return new o(callback, options);
|
|
53
53
|
}
|
|
54
54
|
export {
|
|
55
55
|
useUserVisibility
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface UseWindowSizeOptions {
|
|
2
|
+
/**
|
|
3
|
+
* The window object to use
|
|
4
|
+
* @default window - in browser, undefined in SSR
|
|
5
|
+
*/
|
|
6
|
+
internalWindow?: Window | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Initial width of the window (useful in SSR)
|
|
9
|
+
* @default Number.POSITIVE_INFINITY
|
|
10
|
+
*/
|
|
11
|
+
initialWidth?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Initial height of the window (useful in SSR)
|
|
14
|
+
* @default Number.POSITIVE_INFINITY
|
|
15
|
+
*/
|
|
16
|
+
initialHeight?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Listen to window `orientationchange` event
|
|
19
|
+
*
|
|
20
|
+
* @default true
|
|
21
|
+
*/
|
|
22
|
+
listenOrientation?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Whether the scrollbar should be included in the width and height
|
|
25
|
+
* @default true
|
|
26
|
+
*/
|
|
27
|
+
includeScrollbar?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare function useWindowSize(options?: UseWindowSizeOptions): {
|
|
30
|
+
width: import('vue').Ref<number, number>;
|
|
31
|
+
height: import('vue').Ref<number, number>;
|
|
32
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e } from "../chunks/isClient.8V3qjGdO.js";
|
|
2
2
|
import { ref, onMounted, onUnmounted } from "vue";
|
|
3
3
|
function useWindowSize(options = {}) {
|
|
4
4
|
const {
|
|
5
|
-
internalWindow =
|
|
5
|
+
internalWindow = e() ? globalThis : void 0,
|
|
6
6
|
initialWidth = Number.POSITIVE_INFINITY,
|
|
7
7
|
initialHeight = Number.POSITIVE_INFINITY,
|
|
8
8
|
includeScrollbar = !0
|
package/dist/css/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer maz-ui-reset, maz-ui-theme, maz-ui-animations, maz-ui-utilities;@layer maz-ui-reset{.m-reset-css,.m-reset-css *,.m-reset-css:after,.m-reset-css:before{border:0 solid;box-sizing:border-box}.m-reset-css button,.m-reset-css:is(button){background-color:inherit;padding:inherit}.m-reset-css button,.m-reset-css input,.m-reset-css optgroup,.m-reset-css select,.m-reset-css textarea,.m-reset-css:is(button),.m-reset-css:is(input),.m-reset-css:is(optgroup),.m-reset-css:is(select),.m-reset-css:is(textarea){color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0}}@layer maz-ui-utilities{:root{--maz-container-padding-mobile:1rem;--maz-container-padding-tablet:2rem;--maz-container-padding-desktop:2.5rem;--maz-container-padding-value:var(--maz-container-padding-mobile);--maz-container-width:calc(100% - var(--maz-container-padding-value)*2);--maz-container-padding:calc(50% - var(--maz-container-width)/2);--maz-container-max-width:1440px}@media only screen and (width >= 1520px){:root{--maz-container-width:var(--maz-container-max-width)}}@media (min-width:576px){:root{--maz-container-padding-value:var(--maz-container-padding-tablet)}}@media (min-width:1024px){:root{--maz-container-padding-value:var(--maz-container-padding-desktop)}}}@layer maz-ui-animations{.maz-scale-enter-active,.maz-scale-leave-active{opacity:1;transition:all .2s cubic-bezier(.4,.52,.26,.9);z-index:1}.maz-scale-enter-from,.maz-scale-leave-to{opacity:.4;transform:scale(0);z-index:1}.maz-scale-fade-enter-active,.maz-scale-fade-leave-active{opacity:1;transition:all .2s cubic-bezier(.4,.52,.26,.9);z-index:1}.maz-scale-fade-enter-from,.maz-scale-fade-leave-to{opacity:0;transform:scale(.5);z-index:1}.maz-scale-loading-enter-active,.maz-scale-loading-leave-active{opacity:1;transition:all .5s cubic-bezier(.4,.52,.26,.9)}.maz-scale-loading-enter-active .app-loader__content,.maz-scale-loading-leave-active .app-loader__content{opacity:1;transform:scale(1);transition:all .5s cubic-bezier(.4,.52,.26,.9);z-index:1}.maz-scale-loading-enter-from .app-loader__content,.maz-scale-loading-leave-to .app-loader__content{opacity:.4;transform:scale(0);z-index:1}.maz-scale-loading-enter-from,.maz-scale-loading-leave-to{opacity:0;transition:all .5s cubic-bezier(.4,.52,.26,.9)}.maz-slidevnext-enter-active,.maz-slidevnext-leave-active,.maz-slidevprev-enter-active,.maz-slidevprev-leave-active{position:absolute;transition:all .2s}.maz-slidevnext-enter-from,.maz-slidevprev-leave-to{opacity:0;transform:translateY(100%)}.maz-slidevnext-leave-to,.maz-slidevprev-enter-from{opacity:0;transform:translateY(-100%)}.maz-slide-enter-active,.maz-slide-leave-active{opacity:1;transform:translateY(0);transition:all .2s ease-in-out;z-index:998}.maz-slide-enter-from,.maz-slide-leave-to{opacity:0;transform:translateY(-20px);z-index:998}.maz-slideinvert-enter-active,.maz-slideinvert-leave-active{opacity:1;transform:translateY(0);transition:all .2s ease-in-out;z-index:998}.maz-slideinvert-enter-from,.maz-slideinvert-leave-to{opacity:0;transform:translateY(40px);z-index:998}.maz-tags-enter-active,.maz-tags-leave-active{opacity:1;transform:translateX(0);transition:all .2s ease-in-out}.maz-tags-enter-from,.maz-tags-leave-to{opacity:0;transform:translateX(-100%);transition:all .2s ease-in-out}.maz-tags-invert-enter-active,.maz-tags-invert-leave-active{opacity:1;transform:translateX(0);transition:transform .2s,opacity .2s}.maz-tags-invert-enter-from,.maz-tags-invert-leave-to{opacity:0;transform:translateX(100%)}.maz-expand-enter-active,.maz-expand-leave-active{overflow:hidden;transition:all .2s ease-in-out;transition-property:opacity,height}.maz-expand-enter-from,.maz-expand-leave-to{height:0;opacity:0}.maz-tab-transition-enter-from{transform:translate(100%)}.maz-tab-transition-leave,.maz-tab-transition-leave-active{position:absolute!important;top:0}.maz-tab-transition-leave-to{position:absolute!important;transform:translate(-100%)}.maz-tab-reverse-transition-enter-from{transform:translate(-100%)}.maz-tab-reverse-transition-leave,.maz-tab-reverse-transition-leave-active{position:absolute!important;top:0}.maz-tab-reverse-transition-leave,.maz-tab-reverse-transition-leave-to{position:absolute!important;top:0;transform:translate(100%)}@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}}*,:after,:before{--maz-tw-border-spacing-x:0;--maz-tw-border-spacing-y:0;--maz-tw-translate-x:0;--maz-tw-translate-y:0;--maz-tw-rotate:0;--maz-tw-skew-x:0;--maz-tw-skew-y:0;--maz-tw-scale-x:1;--maz-tw-scale-y:1;--maz-tw-pan-x: ;--maz-tw-pan-y: ;--maz-tw-pinch-zoom: ;--maz-tw-scroll-snap-strictness:proximity;--maz-tw-gradient-from-position: ;--maz-tw-gradient-via-position: ;--maz-tw-gradient-to-position: ;--maz-tw-ordinal: ;--maz-tw-slashed-zero: ;--maz-tw-numeric-figure: ;--maz-tw-numeric-spacing: ;--maz-tw-numeric-fraction: ;--maz-tw-ring-inset: ;--maz-tw-ring-offset-width:0px;--maz-tw-ring-offset-color:#fff;--maz-tw-ring-color:rgba(59,130,246,.5);--maz-tw-ring-offset-shadow:0 0 #0000;--maz-tw-ring-shadow:0 0 #0000;--maz-tw-shadow:0 0 #0000;--maz-tw-shadow-colored:0 0 #0000;--maz-tw-blur: ;--maz-tw-brightness: ;--maz-tw-contrast: ;--maz-tw-grayscale: ;--maz-tw-hue-rotate: ;--maz-tw-invert: ;--maz-tw-saturate: ;--maz-tw-sepia: ;--maz-tw-drop-shadow: ;--maz-tw-backdrop-blur: ;--maz-tw-backdrop-brightness: ;--maz-tw-backdrop-contrast: ;--maz-tw-backdrop-grayscale: ;--maz-tw-backdrop-hue-rotate: ;--maz-tw-backdrop-invert: ;--maz-tw-backdrop-opacity: ;--maz-tw-backdrop-saturate: ;--maz-tw-backdrop-sepia: ;--maz-tw-contain-size: ;--maz-tw-contain-layout: ;--maz-tw-contain-paint: ;--maz-tw-contain-style: }::backdrop{--maz-tw-border-spacing-x:0;--maz-tw-border-spacing-y:0;--maz-tw-translate-x:0;--maz-tw-translate-y:0;--maz-tw-rotate:0;--maz-tw-skew-x:0;--maz-tw-skew-y:0;--maz-tw-scale-x:1;--maz-tw-scale-y:1;--maz-tw-pan-x: ;--maz-tw-pan-y: ;--maz-tw-pinch-zoom: ;--maz-tw-scroll-snap-strictness:proximity;--maz-tw-gradient-from-position: ;--maz-tw-gradient-via-position: ;--maz-tw-gradient-to-position: ;--maz-tw-ordinal: ;--maz-tw-slashed-zero: ;--maz-tw-numeric-figure: ;--maz-tw-numeric-spacing: ;--maz-tw-numeric-fraction: ;--maz-tw-ring-inset: ;--maz-tw-ring-offset-width:0px;--maz-tw-ring-offset-color:#fff;--maz-tw-ring-color:rgba(59,130,246,.5);--maz-tw-ring-offset-shadow:0 0 #0000;--maz-tw-ring-shadow:0 0 #0000;--maz-tw-shadow:0 0 #0000;--maz-tw-shadow-colored:0 0 #0000;--maz-tw-blur: ;--maz-tw-brightness: ;--maz-tw-contrast: ;--maz-tw-grayscale: ;--maz-tw-hue-rotate: ;--maz-tw-invert: ;--maz-tw-saturate: ;--maz-tw-sepia: ;--maz-tw-drop-shadow: ;--maz-tw-backdrop-blur: ;--maz-tw-backdrop-brightness: ;--maz-tw-backdrop-contrast: ;--maz-tw-backdrop-grayscale: ;--maz-tw-backdrop-hue-rotate: ;--maz-tw-backdrop-invert: ;--maz-tw-backdrop-opacity: ;--maz-tw-backdrop-saturate: ;--maz-tw-backdrop-sepia: ;--maz-tw-contain-size: ;--maz-tw-contain-layout: ;--maz-tw-contain-paint: ;--maz-tw-contain-style: }.maz-sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.maz-invisible{visibility:hidden}.\!maz-absolute{position:absolute!important}.maz-relative{position:relative}.\!maz-my-0{margin-bottom:0!important;margin-top:0!important}.maz-ml-2{margin-left:.5rem}.maz-flex{display:flex}.maz-inline-flex{display:inline-flex}.maz-table{display:table}.maz-hidden{display:none}.maz-size-5{height:1.25rem;width:1.25rem}.maz-size-6{height:1.5rem;width:1.5rem}.maz-size-8{height:2rem;width:2rem}.maz-size-full{height:100%;width:100%}.maz-h-5{height:1.25rem}.maz-h-full{height:100%}.maz-w-5{width:1.25rem}.maz-w-full{width:100%}.maz-min-w-0{min-width:0}.maz-max-w-full{max-width:100%}.maz-max-w-xs{max-width:20rem}.maz-flex-1{flex:1 1 0%}.maz-flex-none{flex:none}.-maz-rotate-180{--maz-tw-rotate:-180deg}.-maz-rotate-180,.maz-rotate-180{transform:translate(var(--maz-tw-translate-x),var(--maz-tw-translate-y)) rotate(var(--maz-tw-rotate)) skewX(var(--maz-tw-skew-x)) skewY(var(--maz-tw-skew-y)) scaleX(var(--maz-tw-scale-x)) scaleY(var(--maz-tw-scale-y))}.maz-rotate-180{--maz-tw-rotate:180deg}.maz-flex-col{flex-direction:column}.maz-items-center{align-items:center}.maz-justify-end{justify-content:flex-end}.maz-justify-between{justify-content:space-between}.maz-gap-2{gap:.5rem}.maz-space-x-2>:not([hidden])~:not([hidden]){--maz-tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--maz-tw-space-x-reverse)));margin-right:calc(.5rem*var(--maz-tw-space-x-reverse))}.maz-overflow-hidden{overflow:hidden}.maz-overflow-x-auto{overflow-x:auto}.maz-truncate{overflow:hidden;text-overflow:ellipsis}.maz-truncate,.maz-whitespace-nowrap{white-space:nowrap}.maz-whitespace-pre-wrap{white-space:pre-wrap}.maz-break-words{overflow-wrap:break-word}.maz-rounded{border-radius:var(--maz-radius)}.maz-rounded-xl{border-radius:calc(var(--maz-radius) + 8px)}.maz-rounded-t{border-top-left-radius:var(--maz-radius);border-top-right-radius:var(--maz-radius)}.maz-border{border-width:var(--maz-border-width)}.maz-border-b{border-bottom-width:var(--maz-border-width)}.maz-border-t{border-top-width:var(--maz-border-width)}.maz-border-solid{border-style:solid}.\!maz-border-destructive{--maz-tw-border-opacity:1!important;border-color:hsl(var(--maz-destructive)/var(--maz-tw-border-opacity,1))!important}.\!maz-border-success{--maz-tw-border-opacity:1!important;border-color:hsl(var(--maz-success)/var(--maz-tw-border-opacity,1))!important}.\!maz-border-warning{--maz-tw-border-opacity:1!important;border-color:hsl(var(--maz-warning)/var(--maz-tw-border-opacity,1))!important}.maz-border-accent{--maz-tw-border-opacity:1;border-color:hsl(var(--maz-accent)/var(--maz-tw-border-opacity,1))}.maz-border-contrast{--maz-tw-border-opacity:1;border-color:hsl(var(--maz-contrast)/var(--maz-tw-border-opacity,1))}.maz-border-destructive{--maz-tw-border-opacity:1;border-color:hsl(var(--maz-destructive)/var(--maz-tw-border-opacity,1))}.maz-border-divider{--maz-tw-border-opacity:1;border-color:hsl(var(--maz-border)/var(--maz-tw-border-opacity,1))}.maz-border-divider-400{--maz-tw-border-opacity:1;border-color:hsl(var(--maz-border-400)/var(--maz-tw-border-opacity,1))}.maz-border-info{--maz-tw-border-opacity:1;border-color:hsl(var(--maz-info)/var(--maz-tw-border-opacity,1))}.maz-border-primary{--maz-tw-border-opacity:1;border-color:hsl(var(--maz-primary)/var(--maz-tw-border-opacity,1))}.maz-border-secondary{--maz-tw-border-opacity:1;border-color:hsl(var(--maz-secondary)/var(--maz-tw-border-opacity,1))}.maz-border-success{--maz-tw-border-opacity:1;border-color:hsl(var(--maz-success)/var(--maz-tw-border-opacity,1))}.maz-border-transparent{border-color:transparent}.maz-border-warning{--maz-tw-border-opacity:1;border-color:hsl(var(--maz-warning)/var(--maz-tw-border-opacity,1))}.maz-bg-contrast-700{--maz-tw-bg-opacity:1;background-color:hsl(var(--maz-contrast-700)/var(--maz-tw-bg-opacity,1))}.maz-bg-destructive-700{--maz-tw-bg-opacity:1;background-color:hsl(var(--maz-destructive-700)/var(--maz-tw-bg-opacity,1))}.maz-bg-info-700{--maz-tw-bg-opacity:1;background-color:hsl(var(--maz-info-700)/var(--maz-tw-bg-opacity,1))}.maz-bg-success-700{--maz-tw-bg-opacity:1;background-color:hsl(var(--maz-success-700)/var(--maz-tw-bg-opacity,1))}.maz-bg-surface-400{--maz-tw-bg-opacity:1;background-color:hsl(var(--maz-background-400)/var(--maz-tw-bg-opacity,1))}.maz-bg-warning-700{--maz-tw-bg-opacity:1;background-color:hsl(var(--maz-warning-700)/var(--maz-tw-bg-opacity,1))}.maz-p-2{padding:.5rem}.maz-p-3{padding:.75rem}.maz-p-4{padding:1rem}.maz-text-center{text-align:center}.maz-text-start{text-align:start}.maz-text-end{text-align:end}.maz-text-2xl{font-size:1.5rem;line-height:2rem}.maz-text-3xl{font-size:1.875rem;line-height:2.25rem}.maz-text-base{font-size:1rem;line-height:1.5rem}.maz-text-lg{font-size:1.125rem;line-height:1.75rem}.maz-text-sm{font-size:.875rem;line-height:1.25rem}.maz-text-xl{font-size:1.25rem;line-height:1.75rem}.maz-text-xs{font-size:.75rem;line-height:1rem}.maz-font-semibold{font-weight:600}.\!maz-text-destructive-600{--maz-tw-text-opacity:1!important;color:hsl(var(--maz-destructive-600)/var(--maz-tw-text-opacity,1))!important}.\!maz-text-success-600{--maz-tw-text-opacity:1!important;color:hsl(var(--maz-success-600)/var(--maz-tw-text-opacity,1))!important}.\!maz-text-warning-600{--maz-tw-text-opacity:1!important;color:hsl(var(--maz-warning-600)/var(--maz-tw-text-opacity,1))!important}.maz-text-destructive-600{--maz-tw-text-opacity:1;color:hsl(var(--maz-destructive-600)/var(--maz-tw-text-opacity,1))}.maz-text-foreground{--maz-tw-text-opacity:1;color:hsl(var(--maz-foreground)/var(--maz-tw-text-opacity,1))}.maz-text-muted{--maz-tw-text-opacity:1;color:hsl(var(--maz-muted)/var(--maz-tw-text-opacity,1))}.maz-text-success-600{--maz-tw-text-opacity:1;color:hsl(var(--maz-success-600)/var(--maz-tw-text-opacity,1))}.maz-text-warning-600{--maz-tw-text-opacity:1;color:hsl(var(--maz-warning-600)/var(--maz-tw-text-opacity,1))}.maz-shadow-elevation{--maz-tw-shadow-color:hsl(var(--maz-shadow)/1);--maz-tw-shadow:var(--maz-tw-shadow-colored)}.maz-drop-shadow-md{--maz-tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));filter:var(--maz-tw-blur) var(--maz-tw-brightness) var(--maz-tw-contrast) var(--maz-tw-grayscale) var(--maz-tw-hue-rotate) var(--maz-tw-invert) var(--maz-tw-saturate) var(--maz-tw-sepia) var(--maz-tw-drop-shadow)}.maz-flex-center{align-items:center;justify-content:center}.maz-padded-container{padding-inline:var(--maz-container-padding);width:100%}.maz-group:hover .group-hover\:maz-block{display:block}@media (min-width:640px){.tab-s\:maz-block{display:block}}
|
|
1
|
+
@layer maz-ui-reset, maz-ui-theme, maz-ui-animations, maz-ui-utilities;@layer maz-ui-reset{.m-reset-css,.m-reset-css *,.m-reset-css:after,.m-reset-css:before{border:0 solid;box-sizing:border-box}.m-reset-css button,.m-reset-css:is(button){background-color:inherit;padding:inherit}.m-reset-css button,.m-reset-css input,.m-reset-css optgroup,.m-reset-css select,.m-reset-css textarea,.m-reset-css:is(button),.m-reset-css:is(input),.m-reset-css:is(optgroup),.m-reset-css:is(select),.m-reset-css:is(textarea){color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0}}@layer maz-ui-utilities{:root{--maz-container-padding-mobile:1rem;--maz-container-padding-tablet:2rem;--maz-container-padding-desktop:2.5rem;--maz-container-padding-value:var(--maz-container-padding-mobile);--maz-container-width:calc(100% - var(--maz-container-padding-value)*2);--maz-container-padding:calc(50% - var(--maz-container-width)/2);--maz-container-max-width:1440px}@media only screen and (width >= 1520px){:root{--maz-container-width:var(--maz-container-max-width)}}@media (min-width:576px){:root{--maz-container-padding-value:var(--maz-container-padding-tablet)}}@media (min-width:1024px){:root{--maz-container-padding-value:var(--maz-container-padding-desktop)}}}@layer maz-ui-animations{.maz-scale-enter-active,.maz-scale-leave-active{opacity:1;transition:all .2s cubic-bezier(.4,.52,.26,.9);z-index:1}.maz-scale-enter-from,.maz-scale-leave-to{opacity:.4;transform:scale(0);z-index:1}.maz-scale-fade-enter-active,.maz-scale-fade-leave-active{opacity:1;transition:all .2s cubic-bezier(.4,.52,.26,.9);z-index:1}.maz-scale-fade-enter-from,.maz-scale-fade-leave-to{opacity:0;transform:scale(.5);z-index:1}.maz-scale-loading-enter-active,.maz-scale-loading-leave-active{opacity:1;transition:all .5s cubic-bezier(.4,.52,.26,.9)}.maz-scale-loading-enter-active .app-loader__content,.maz-scale-loading-leave-active .app-loader__content{opacity:1;transform:scale(1);transition:all .5s cubic-bezier(.4,.52,.26,.9);z-index:1}.maz-scale-loading-enter-from .app-loader__content,.maz-scale-loading-leave-to .app-loader__content{opacity:.4;transform:scale(0);z-index:1}.maz-scale-loading-enter-from,.maz-scale-loading-leave-to{opacity:0;transition:all .5s cubic-bezier(.4,.52,.26,.9)}.maz-slidevnext-enter-active,.maz-slidevnext-leave-active,.maz-slidevprev-enter-active,.maz-slidevprev-leave-active{position:absolute;transition:all .2s}.maz-slidevnext-enter-from,.maz-slidevprev-leave-to{opacity:0;transform:translateY(100%)}.maz-slidevnext-leave-to,.maz-slidevprev-enter-from{opacity:0;transform:translateY(-100%)}.maz-slide-enter-active,.maz-slide-leave-active{opacity:1;transform:translateY(0);transition:all .2s ease-in-out;z-index:998}.maz-slide-enter-from,.maz-slide-leave-to{opacity:0;transform:translateY(-20px);z-index:998}.maz-slideinvert-enter-active,.maz-slideinvert-leave-active{opacity:1;transform:translateY(0);transition:all .2s ease-in-out;z-index:998}.maz-slideinvert-enter-from,.maz-slideinvert-leave-to{opacity:0;transform:translateY(40px);z-index:998}.maz-tags-enter-active,.maz-tags-leave-active{opacity:1;transform:translateX(0);transition:all .2s ease-in-out}.maz-tags-enter-from,.maz-tags-leave-to{opacity:0;transform:translateX(-100%);transition:all .2s ease-in-out}.maz-tags-invert-enter-active,.maz-tags-invert-leave-active{opacity:1;transform:translateX(0);transition:transform .2s,opacity .2s}.maz-tags-invert-enter-from,.maz-tags-invert-leave-to{opacity:0;transform:translateX(100%)}.maz-expand-enter-active,.maz-expand-leave-active{overflow:hidden;transition:all .2s ease-in-out;transition-property:opacity,height}.maz-expand-enter-from,.maz-expand-leave-to{height:0;opacity:0}.maz-tab-transition-enter-from{transform:translate(100%)}.maz-tab-transition-leave,.maz-tab-transition-leave-active{position:absolute!important;top:0}.maz-tab-transition-leave-to{position:absolute!important;transform:translate(-100%)}.maz-tab-reverse-transition-enter-from{transform:translate(-100%)}.maz-tab-reverse-transition-leave,.maz-tab-reverse-transition-leave-active{position:absolute!important;top:0}.maz-tab-reverse-transition-leave,.maz-tab-reverse-transition-leave-to{position:absolute!important;top:0;transform:translate(100%)}@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}}*,:after,:before{--maz-tw-border-spacing-x:0;--maz-tw-border-spacing-y:0;--maz-tw-translate-x:0;--maz-tw-translate-y:0;--maz-tw-rotate:0;--maz-tw-skew-x:0;--maz-tw-skew-y:0;--maz-tw-scale-x:1;--maz-tw-scale-y:1;--maz-tw-pan-x: ;--maz-tw-pan-y: ;--maz-tw-pinch-zoom: ;--maz-tw-scroll-snap-strictness:proximity;--maz-tw-gradient-from-position: ;--maz-tw-gradient-via-position: ;--maz-tw-gradient-to-position: ;--maz-tw-ordinal: ;--maz-tw-slashed-zero: ;--maz-tw-numeric-figure: ;--maz-tw-numeric-spacing: ;--maz-tw-numeric-fraction: ;--maz-tw-ring-inset: ;--maz-tw-ring-offset-width:0px;--maz-tw-ring-offset-color:#fff;--maz-tw-ring-color:rgba(59,130,246,.5);--maz-tw-ring-offset-shadow:0 0 #0000;--maz-tw-ring-shadow:0 0 #0000;--maz-tw-shadow:0 0 #0000;--maz-tw-shadow-colored:0 0 #0000;--maz-tw-blur: ;--maz-tw-brightness: ;--maz-tw-contrast: ;--maz-tw-grayscale: ;--maz-tw-hue-rotate: ;--maz-tw-invert: ;--maz-tw-saturate: ;--maz-tw-sepia: ;--maz-tw-drop-shadow: ;--maz-tw-backdrop-blur: ;--maz-tw-backdrop-brightness: ;--maz-tw-backdrop-contrast: ;--maz-tw-backdrop-grayscale: ;--maz-tw-backdrop-hue-rotate: ;--maz-tw-backdrop-invert: ;--maz-tw-backdrop-opacity: ;--maz-tw-backdrop-saturate: ;--maz-tw-backdrop-sepia: ;--maz-tw-contain-size: ;--maz-tw-contain-layout: ;--maz-tw-contain-paint: ;--maz-tw-contain-style: }::backdrop{--maz-tw-border-spacing-x:0;--maz-tw-border-spacing-y:0;--maz-tw-translate-x:0;--maz-tw-translate-y:0;--maz-tw-rotate:0;--maz-tw-skew-x:0;--maz-tw-skew-y:0;--maz-tw-scale-x:1;--maz-tw-scale-y:1;--maz-tw-pan-x: ;--maz-tw-pan-y: ;--maz-tw-pinch-zoom: ;--maz-tw-scroll-snap-strictness:proximity;--maz-tw-gradient-from-position: ;--maz-tw-gradient-via-position: ;--maz-tw-gradient-to-position: ;--maz-tw-ordinal: ;--maz-tw-slashed-zero: ;--maz-tw-numeric-figure: ;--maz-tw-numeric-spacing: ;--maz-tw-numeric-fraction: ;--maz-tw-ring-inset: ;--maz-tw-ring-offset-width:0px;--maz-tw-ring-offset-color:#fff;--maz-tw-ring-color:rgba(59,130,246,.5);--maz-tw-ring-offset-shadow:0 0 #0000;--maz-tw-ring-shadow:0 0 #0000;--maz-tw-shadow:0 0 #0000;--maz-tw-shadow-colored:0 0 #0000;--maz-tw-blur: ;--maz-tw-brightness: ;--maz-tw-contrast: ;--maz-tw-grayscale: ;--maz-tw-hue-rotate: ;--maz-tw-invert: ;--maz-tw-saturate: ;--maz-tw-sepia: ;--maz-tw-drop-shadow: ;--maz-tw-backdrop-blur: ;--maz-tw-backdrop-brightness: ;--maz-tw-backdrop-contrast: ;--maz-tw-backdrop-grayscale: ;--maz-tw-backdrop-hue-rotate: ;--maz-tw-backdrop-invert: ;--maz-tw-backdrop-opacity: ;--maz-tw-backdrop-saturate: ;--maz-tw-backdrop-sepia: ;--maz-tw-contain-size: ;--maz-tw-contain-layout: ;--maz-tw-contain-paint: ;--maz-tw-contain-style: }.maz-sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.maz-invisible{visibility:hidden}.\!maz-absolute{position:absolute!important}.maz-relative{position:relative}.\!maz-my-0{margin-bottom:0!important;margin-top:0!important}.maz-ml-2{margin-left:.5rem}.maz-flex{display:flex}.maz-inline-flex{display:inline-flex}.maz-table{display:table}.maz-hidden{display:none}.maz-size-5{height:1.25rem;width:1.25rem}.maz-size-6{height:1.5rem;width:1.5rem}.maz-size-8{height:2rem;width:2rem}.maz-size-full{height:100%;width:100%}.maz-h-5{height:1.25rem}.maz-h-full{height:100%}.maz-w-5{width:1.25rem}.maz-w-full{width:100%}.maz-min-w-0{min-width:0}.maz-max-w-full{max-width:100%}.maz-max-w-xs{max-width:20rem}.maz-flex-1{flex:1 1 0%}.maz-flex-none{flex:none}.-maz-rotate-180{--maz-tw-rotate:-180deg}.-maz-rotate-180,.maz-rotate-180{transform:translate(var(--maz-tw-translate-x),var(--maz-tw-translate-y)) rotate(var(--maz-tw-rotate)) skewX(var(--maz-tw-skew-x)) skewY(var(--maz-tw-skew-y)) scaleX(var(--maz-tw-scale-x)) scaleY(var(--maz-tw-scale-y))}.maz-rotate-180{--maz-tw-rotate:180deg}.maz-flex-col{flex-direction:column}.maz-items-center{align-items:center}.maz-justify-end{justify-content:flex-end}.maz-justify-between{justify-content:space-between}.maz-gap-2{gap:.5rem}.maz-space-x-2>:not([hidden])~:not([hidden]){--maz-tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--maz-tw-space-x-reverse)));margin-right:calc(.5rem*var(--maz-tw-space-x-reverse))}.maz-overflow-hidden{overflow:hidden}.maz-overflow-x-auto{overflow-x:auto}.maz-truncate{overflow:hidden;text-overflow:ellipsis}.maz-truncate,.maz-whitespace-nowrap{white-space:nowrap}.maz-whitespace-pre-wrap{white-space:pre-wrap}.maz-break-words{overflow-wrap:break-word}.maz-rounded{border-radius:var(--maz-radius)}.maz-rounded-xl{border-radius:calc(var(--maz-radius) + 8px)}.maz-rounded-t{border-top-left-radius:var(--maz-radius);border-top-right-radius:var(--maz-radius)}.maz-border{border-width:var(--maz-border-width)}.maz-border-b{border-bottom-width:var(--maz-border-width)}.maz-border-t{border-top-width:var(--maz-border-width)}.maz-border-solid{border-style:solid}.\!maz-border-destructive{--maz-tw-border-opacity:1!important;border-color:hsl(var(--maz-destructive)/var(--maz-tw-border-opacity,1))!important}.\!maz-border-success{--maz-tw-border-opacity:1!important;border-color:hsl(var(--maz-success)/var(--maz-tw-border-opacity,1))!important}.\!maz-border-warning{--maz-tw-border-opacity:1!important;border-color:hsl(var(--maz-warning)/var(--maz-tw-border-opacity,1))!important}.maz-border-accent{--maz-tw-border-opacity:1;border-color:hsl(var(--maz-accent)/var(--maz-tw-border-opacity,1))}.maz-border-contrast{--maz-tw-border-opacity:1;border-color:hsl(var(--maz-contrast)/var(--maz-tw-border-opacity,1))}.maz-border-destructive{--maz-tw-border-opacity:1;border-color:hsl(var(--maz-destructive)/var(--maz-tw-border-opacity,1))}.maz-border-divider{--maz-tw-border-opacity:1;border-color:hsl(var(--maz-border)/var(--maz-tw-border-opacity,1))}.maz-border-info{--maz-tw-border-opacity:1;border-color:hsl(var(--maz-info)/var(--maz-tw-border-opacity,1))}.maz-border-primary{--maz-tw-border-opacity:1;border-color:hsl(var(--maz-primary)/var(--maz-tw-border-opacity,1))}.maz-border-secondary{--maz-tw-border-opacity:1;border-color:hsl(var(--maz-secondary)/var(--maz-tw-border-opacity,1))}.maz-border-success{--maz-tw-border-opacity:1;border-color:hsl(var(--maz-success)/var(--maz-tw-border-opacity,1))}.maz-border-transparent{border-color:transparent}.maz-border-warning{--maz-tw-border-opacity:1;border-color:hsl(var(--maz-warning)/var(--maz-tw-border-opacity,1))}.maz-bg-contrast-foreground{--maz-tw-bg-opacity:1;background-color:hsl(var(--maz-contrast-foreground)/var(--maz-tw-bg-opacity,1))}.maz-bg-destructive-700{--maz-tw-bg-opacity:1;background-color:hsl(var(--maz-destructive-700)/var(--maz-tw-bg-opacity,1))}.maz-bg-info-700{--maz-tw-bg-opacity:1;background-color:hsl(var(--maz-info-700)/var(--maz-tw-bg-opacity,1))}.maz-bg-success-700{--maz-tw-bg-opacity:1;background-color:hsl(var(--maz-success-700)/var(--maz-tw-bg-opacity,1))}.maz-bg-warning-700{--maz-tw-bg-opacity:1;background-color:hsl(var(--maz-warning-700)/var(--maz-tw-bg-opacity,1))}.maz-p-2{padding:.5rem}.maz-p-3{padding:.75rem}.maz-p-4{padding:1rem}.maz-text-center{text-align:center}.maz-text-start{text-align:start}.maz-text-end{text-align:end}.maz-text-2xl{font-size:1.5rem;line-height:2rem}.maz-text-3xl{font-size:1.875rem;line-height:2.25rem}.maz-text-base{font-size:1rem;line-height:1.5rem}.maz-text-lg{font-size:1.125rem;line-height:1.75rem}.maz-text-sm{font-size:.875rem;line-height:1.25rem}.maz-text-xl{font-size:1.25rem;line-height:1.75rem}.maz-text-xs{font-size:.75rem;line-height:1rem}.maz-font-semibold{font-weight:600}.\!maz-text-destructive-600{--maz-tw-text-opacity:1!important;color:hsl(var(--maz-destructive-600)/var(--maz-tw-text-opacity,1))!important}.\!maz-text-success-600{--maz-tw-text-opacity:1!important;color:hsl(var(--maz-success-600)/var(--maz-tw-text-opacity,1))!important}.\!maz-text-warning-600{--maz-tw-text-opacity:1!important;color:hsl(var(--maz-warning-600)/var(--maz-tw-text-opacity,1))!important}.maz-text-destructive-600{--maz-tw-text-opacity:1;color:hsl(var(--maz-destructive-600)/var(--maz-tw-text-opacity,1))}.maz-text-foreground{--maz-tw-text-opacity:1;color:hsl(var(--maz-foreground)/var(--maz-tw-text-opacity,1))}.maz-text-muted{--maz-tw-text-opacity:1;color:hsl(var(--maz-muted)/var(--maz-tw-text-opacity,1))}.maz-text-success-600{--maz-tw-text-opacity:1;color:hsl(var(--maz-success-600)/var(--maz-tw-text-opacity,1))}.maz-text-warning-600{--maz-tw-text-opacity:1;color:hsl(var(--maz-warning-600)/var(--maz-tw-text-opacity,1))}.maz-shadow-elevation{--maz-tw-shadow-color:hsl(var(--maz-shadow)/1);--maz-tw-shadow:var(--maz-tw-shadow-colored)}.maz-drop-shadow-md{--maz-tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06));filter:var(--maz-tw-blur) var(--maz-tw-brightness) var(--maz-tw-contrast) var(--maz-tw-grayscale) var(--maz-tw-hue-rotate) var(--maz-tw-invert) var(--maz-tw-saturate) var(--maz-tw-sepia) var(--maz-tw-drop-shadow)}.maz-flex-center{align-items:center;justify-content:center}.maz-padded-container{padding-inline:var(--maz-container-padding);width:100%}.maz-group:hover .group-hover\:maz-block{display:block}@media (min-width:640px){.tab-s\:maz-block{display:block}}
|
package/dist/directives/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d, p } from "../chunks/vClickOutside.
|
|
1
|
+
import { d, p } from "../chunks/vClickOutside.CJBKY5no.js";
|
|
2
2
|
import { vFullscreenImgInstall } from "./vFullscreenImg.js";
|
|
3
3
|
import { vLazyImgInstall } from "./vLazyImg.js";
|
|
4
4
|
import { vTooltip, vTooltipInstall } from "./vTooltip.js";
|
|
5
5
|
import { vZoomImg, vZoomImgInstall } from "./vZoomImg.js";
|
|
6
|
-
import { d as d2 } from "../chunks/fullscreen-img.directive.
|
|
6
|
+
import { d as d2 } from "../chunks/fullscreen-img.directive.D9oQ3Gni.js";
|
|
7
7
|
import { d as d3 } from "../chunks/lazy-img.directive.BLFnGqQa.js";
|
|
8
8
|
export {
|
|
9
9
|
d as vClickOutside,
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ObjectDirective, Plugin } from 'vue';
|
|
2
|
+
interface VClickOutsideOptions {
|
|
3
|
+
/**
|
|
4
|
+
* The callback function to be called when the element is clicked outside.
|
|
5
|
+
*/
|
|
6
|
+
callback: (...args: any[]) => any;
|
|
7
|
+
/**
|
|
8
|
+
* The selectors to ignore.
|
|
9
|
+
*/
|
|
10
|
+
ignore?: string[];
|
|
11
|
+
/**
|
|
12
|
+
* Whether to capture the event.
|
|
13
|
+
*/
|
|
14
|
+
capture?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Whether to only trigger the callback once.
|
|
17
|
+
*/
|
|
18
|
+
once?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Whether to stop event propagation.
|
|
21
|
+
*/
|
|
22
|
+
stopPropagation?: boolean;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The value of the v-click-outside directive.
|
|
26
|
+
*/
|
|
27
|
+
type VClickOutsideBindingValue = ((...args: any[]) => any) | VClickOutsideOptions;
|
|
28
|
+
export type VClickOutsideDirective = ObjectDirective<HTMLElement, VClickOutsideBindingValue>;
|
|
29
|
+
declare const directive: VClickOutsideDirective;
|
|
30
|
+
declare const plugin: Plugin;
|
|
31
|
+
export { directive as vClickOutside, type VClickOutsideBindingValue, plugin as vClickOutsideInstall, type VClickOutsideOptions, };
|
|
32
|
+
declare module 'vue' {
|
|
33
|
+
interface GlobalDirectives {
|
|
34
|
+
vClickOutside: VClickOutsideDirective;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export interface MazFullscreenImgProps {
|
|
2
|
+
src: string;
|
|
3
|
+
clickedElementBounds?: {
|
|
4
|
+
top: number;
|
|
5
|
+
left: number;
|
|
6
|
+
height: number;
|
|
7
|
+
width: number;
|
|
8
|
+
};
|
|
9
|
+
offset?: number;
|
|
10
|
+
animation?: {
|
|
11
|
+
duration?: number;
|
|
12
|
+
easing?: string;
|
|
13
|
+
};
|
|
14
|
+
openInstanceClass?: string;
|
|
15
|
+
clickedElement: HTMLElement;
|
|
16
|
+
destroy?: () => void;
|
|
17
|
+
alt?: string | null;
|
|
18
|
+
zoom?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: import('vue').DefineComponent<MazFullscreenImgProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
close: (...args: any[]) => void;
|
|
22
|
+
"before-close": (...args: any[]) => void;
|
|
23
|
+
next: (...args: any[]) => void;
|
|
24
|
+
previous: (...args: any[]) => void;
|
|
25
|
+
}, string, import('vue').PublicProps, Readonly<MazFullscreenImgProps> & Readonly<{
|
|
26
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
"onBefore-close"?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
onNext?: ((...args: any[]) => any) | undefined;
|
|
29
|
+
onPrevious?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
}>, {
|
|
31
|
+
destroy: () => void;
|
|
32
|
+
offset: number;
|
|
33
|
+
animation: {
|
|
34
|
+
duration?: number;
|
|
35
|
+
easing?: string;
|
|
36
|
+
};
|
|
37
|
+
alt: string | null;
|
|
38
|
+
clickedElementBounds: {
|
|
39
|
+
top: number;
|
|
40
|
+
left: number;
|
|
41
|
+
height: number;
|
|
42
|
+
width: number;
|
|
43
|
+
};
|
|
44
|
+
openInstanceClass: string;
|
|
45
|
+
zoom: boolean;
|
|
46
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
47
|
+
FullscreenImgElement: HTMLDivElement;
|
|
48
|
+
ImgElement: HTMLImageElement;
|
|
49
|
+
}, HTMLDivElement>;
|
|
50
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ObjectDirective } from 'vue';
|
|
2
|
+
import { VFullscreenImgBindingValue } from './fullscreen-img.handler';
|
|
3
|
+
export type VFullscreenImgDirective = ObjectDirective<HTMLElement, VFullscreenImgBindingValue>;
|
|
4
|
+
declare const directive: VFullscreenImgDirective;
|
|
5
|
+
export { directive as vFullscreenImg };
|