maz-ui 4.0.0-beta.31 → 4.0.0-beta.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{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/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.aH1IKnrR.css → MazCheckbox.Di88TJ3e.css} +1 -1
- 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/{MazPagination.C6cUh-p4.css → MazPagination.BUhf2Qr7.css} +1 -1
- package/dist/assets/MazPickerCalendarMonth.DpijYq-O.css +1 -0
- package/dist/assets/{MazPickerCalendarSwitcher.CI9Vw1sJ.css → MazPickerCalendarSwitcher.ByAVjy00.css} +1 -1
- package/dist/assets/{MazPickerHeader.C4W93yMD.css → MazPickerHeader.D7JXgA3q.css} +1 -1
- package/dist/assets/MazPickerMonthSwitcher.BJGGy53r.css +1 -0
- package/dist/assets/{MazPickerYearSwitcher.CFiH13QC.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.aTHM-mpx.css → MazRadio.B0B3P1QS.css} +1 -1
- 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.EW8fKXFX.css → MazSelectCountry.B0tlbfgr.css} +1 -1
- package/dist/assets/MazSlider.WcnBC9zc.css +1 -0
- package/dist/assets/{MazStepper.BD2gDGAX.css → MazStepper.C9R7g43I.css} +1 -1
- 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/MazTextarea.C9sZpRDZ.css +1 -0
- package/dist/assets/{PhoneInput.DCWA_-gC.css → PhoneInput.DkOXlrI9.css} +1 -1
- package/dist/assets/{fullscreen-img.Bkuz1GOX.css → fullscreen-img.Br983fLC.css} +1 -1
- package/dist/assets/{toast.DH9mbkvs.css → toast.BDNNJSjj.css} +1 -1
- package/dist/chunks/{MazDatePicker.bKFpslPf.js → MazDatePicker.B1B6gUrC.js} +24 -24
- package/dist/chunks/{MazDialogConfirm.vue_vue_type_script_setup_true_lang.Grn2kB3x.js → MazDialogConfirm.vue_vue_type_script_setup_true_lang.DuEcluOw.js} +3 -1
- package/dist/chunks/{MazDropdown.vue_vue_type_style_index_0_lang.X8ygqBUZ.js → MazDropdown.vue_vue_type_style_index_0_lang.DfR-QxYQ.js} +4 -4
- 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.BVHi0OiN.js → MazInputPhoneNumber.CDy6n_Qj.js} +10 -10
- 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.lLfvUtrb.js → MazPickerCalendar.BSBQciuG.js} +1 -1
- package/dist/chunks/{MazPickerCalendarMonth.Djzgo1tF.js → MazPickerCalendarMonth.CFJHTFp5.js} +10 -10
- package/dist/chunks/{MazPickerCalendarSwitcher.Bf24kKw6.js → MazPickerCalendarSwitcher.DC21FpTy.js} +10 -10
- package/dist/chunks/{MazPickerContainer.7hYHiOaa.js → MazPickerContainer.CRPzAbRt.js} +1 -1
- package/dist/chunks/{MazPickerHeader.B00RAQPS.js → MazPickerHeader.D7Tbm-yH.js} +14 -14
- package/dist/chunks/{MazPickerMonthSwitcher.B2ZgNJWy.js → MazPickerMonthSwitcher.DzHOKbe4.js} +10 -10
- package/dist/chunks/{MazPickerTime.Bd4khA2e.js → MazPickerTime.EZK1foEx.js} +1 -1
- package/dist/chunks/{MazPickerYearSwitcher.BIy9xGIw.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.D9vRIgS6.js → PhoneInput.DukRZp5u.js} +4 -4
- 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.CxBZzgUG.js → pristine.DMG3eBuN.js} +2 -2
- package/dist/chunks/sleep.Ci7GE4BQ.js +6 -0
- package/dist/chunks/truthyFilter.DZvXmxeK.js +6 -0
- package/dist/chunks/{useStringMatching.BBezu-6J.js → useStringMatching.DzSigyZ7.js} +27 -27
- 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.vue.d.ts +61 -0
- package/dist/components/MazBottomSheet.vue.d.ts +35 -0
- package/dist/components/MazBtn.js +2 -2
- 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 +3 -3
- 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 +242 -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.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 +15 -14
- 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 +2 -2
- 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 +10 -10
- package/dist/components/MazSelect.vue.d.ts +178 -0
- package/dist/components/MazSelectCountry.js +15 -15
- 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.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.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 +1 -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 +10 -16
- package/dist/composables/useDropzone.d.ts +27 -0
- package/dist/composables/useDropzone.js +2 -2
- package/dist/composables/useFormField.d.ts +16 -0
- package/dist/composables/useFormField.js +2 -2
- 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 +1 -1
- 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/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 +13 -19
- 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 +211 -373
- 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 +2 -2
- package/dist/plugins/wait.d.ts +33 -0
- package/dist/resolvers/MazComponentsResolver.d.ts +10 -0
- package/dist/resolvers/MazComponentsResolver.js +2 -2
- 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 +3 -3
- 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/MazCarousel.vue.d.ts +4 -4
- package/dist/types/components/MazChecklist.vue.d.ts +5 -5
- package/dist/types/components/MazDatePicker/utils.d.ts +2 -2
- package/dist/types/components/MazDatePicker.vue.d.ts +11 -3
- package/dist/types/components/MazDialog.vue.d.ts +10 -19
- package/dist/types/components/MazDialogConfirm.vue.d.ts +7 -11
- package/dist/types/components/MazDropdown.vue.d.ts +2 -2
- package/dist/types/components/MazInputNumber.vue.d.ts +1 -1
- package/dist/types/components/MazInputPhoneNumber.vue.d.ts +4 -4
- package/dist/types/components/MazInputPrice.vue.d.ts +1 -1
- package/dist/types/components/MazPopover.vue.d.ts +2 -0
- package/dist/types/components/MazSelect.vue.d.ts +3 -3
- package/dist/types/components/MazSelectCountry.vue.d.ts +4 -4
- package/dist/types/components/MazTable.vue.d.ts +5 -5
- package/dist/types/components/MazTableRow.vue.d.ts +2 -0
- package/dist/types/composables/useDisplayNames.d.ts +60 -1
- package/dist/types/composables/useFormValidator.d.ts +1 -1
- 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/plugins/maz-ui.d.ts +5 -5
- package/package.json +30 -18
- package/dist/assets/MazAnimatedText.DDqCxrFX.css +0 -1
- package/dist/assets/MazBackdrop.BnhcmjbP.css +0 -1
- package/dist/assets/MazBtn.BYOKMl_2.css +0 -1
- package/dist/assets/MazCard.D0ksni8A.css +0 -1
- package/dist/assets/MazCardSpotlight.IbPp_y0j.css +0 -1
- package/dist/assets/MazCarousel.D4zTkRsG.css +0 -1
- package/dist/assets/MazChecklist.BzF5KtZ3.css +0 -1
- package/dist/assets/MazDatePicker.BUVI9tfN.css +0 -1
- package/dist/assets/MazDropdown.C6vjLIeN.css +0 -1
- package/dist/assets/MazDropzone.C2SunLAI.css +0 -1
- package/dist/assets/MazGallery.DZ3TyggM.css +0 -1
- package/dist/assets/MazInput.BPhjbYZG.css +0 -1
- package/dist/assets/MazInputCode.FA2z4HQd.css +0 -1
- package/dist/assets/MazInputPhoneNumber.DQKElfIM.css +0 -1
- package/dist/assets/MazInputTags.KNTpDHof.css +0 -1
- package/dist/assets/MazLazyImg.NlPRN3Nk.css +0 -1
- package/dist/assets/MazPickerCalendarMonth.BRoEh_ad.css +0 -1
- package/dist/assets/MazPickerMonthSwitcher.D9lfVzYo.css +0 -1
- package/dist/assets/MazPopover.B3kR2Gsa.css +0 -1
- package/dist/assets/MazPullToRefresh.BQ64UvzA.css +0 -1
- package/dist/assets/MazRadioButtons.DN_rAzT9.css +0 -1
- package/dist/assets/MazReadingProgressBar.CwBVXE3g.css +0 -1
- package/dist/assets/MazSelect.DuRAHZGW.css +0 -1
- package/dist/assets/MazSlider.y4qpnD0N.css +0 -1
- package/dist/assets/MazSwitch.Bxmh2iFj.css +0 -1
- package/dist/assets/MazTable.DMlQdImb.css +0 -1
- package/dist/assets/MazTableRow.DgBXpK9J.css +0 -1
- package/dist/assets/MazTextarea.li9dWBax.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/pascalCase.GdDKKQ-O.js +0 -19
- 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,115 @@
|
|
|
1
|
+
import { IconComponent } from '@maz-ui/icons';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
import { RouteLocationRaw } from 'vue-router';
|
|
4
|
+
import { MazColor } from './types';
|
|
5
|
+
export interface MazLinkProps {
|
|
6
|
+
/**
|
|
7
|
+
* The class attribute of the link
|
|
8
|
+
* @default undefined
|
|
9
|
+
*/
|
|
10
|
+
class?: HTMLAttributes['class'];
|
|
11
|
+
/**
|
|
12
|
+
* The style attribute of the link
|
|
13
|
+
* @default undefined
|
|
14
|
+
*/
|
|
15
|
+
style?: HTMLAttributes['style'];
|
|
16
|
+
/**
|
|
17
|
+
* The component to use for the link - if not provided, it will be `router-link` if `to` is provided, will be `a` if `href` is provided, otherwise it will be `button`, you can force the component to be used with `as` prop
|
|
18
|
+
* @default depends on the provided props
|
|
19
|
+
* @values 'a', 'router-link', 'nuxt-link', 'button'
|
|
20
|
+
*/
|
|
21
|
+
as?: string | 'a' | 'router-link' | 'nuxt-link' | 'button';
|
|
22
|
+
/**
|
|
23
|
+
* The id of the link
|
|
24
|
+
* @default undefined
|
|
25
|
+
*/
|
|
26
|
+
id?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The title of the link
|
|
29
|
+
* @default undefined
|
|
30
|
+
*/
|
|
31
|
+
title?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The href of the link
|
|
34
|
+
* @default undefined
|
|
35
|
+
*/
|
|
36
|
+
href?: string;
|
|
37
|
+
/** The route location (router-link) of the link */
|
|
38
|
+
to?: RouteLocationRaw;
|
|
39
|
+
/**
|
|
40
|
+
* The color of the link
|
|
41
|
+
* @default 'primary'
|
|
42
|
+
*/
|
|
43
|
+
color?: MazColor;
|
|
44
|
+
/**
|
|
45
|
+
* The target of the link
|
|
46
|
+
* @default '_self'
|
|
47
|
+
* @values '_blank', '_self', '_parent', '_top'
|
|
48
|
+
*/
|
|
49
|
+
target?: '_blank' | '_self' | '_parent' | '_top' | string;
|
|
50
|
+
/**
|
|
51
|
+
* The download of the link
|
|
52
|
+
* @default undefined
|
|
53
|
+
*/
|
|
54
|
+
download?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The rel of the link
|
|
57
|
+
* @default undefined
|
|
58
|
+
*/
|
|
59
|
+
rel?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The aria-label of the link
|
|
62
|
+
* @default undefined
|
|
63
|
+
*/
|
|
64
|
+
ariaLabel?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Add an underline to the link
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
underline?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Add an underline only on hover
|
|
72
|
+
* @default true
|
|
73
|
+
*/
|
|
74
|
+
underlineHover?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Add an external icon to the link if target is '_blank'
|
|
77
|
+
* @default true
|
|
78
|
+
*/
|
|
79
|
+
autoExternal?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* The name of the icon or component to display on the left of the text
|
|
82
|
+
* `@type` `{string | FunctionalComponent | ComponentPublicInstance | Component}`
|
|
83
|
+
*/
|
|
84
|
+
leftIcon?: string | IconComponent;
|
|
85
|
+
/**
|
|
86
|
+
* The name of the icon or component to display on the right of the text
|
|
87
|
+
* `@type` `{string | FunctionalComponent | ComponentPublicInstance | Component}`
|
|
88
|
+
*/
|
|
89
|
+
rightIcon?: string | IconComponent;
|
|
90
|
+
/**
|
|
91
|
+
* The disabled state of the link if the component is a button
|
|
92
|
+
* @default false
|
|
93
|
+
*/
|
|
94
|
+
disabled?: boolean;
|
|
95
|
+
}
|
|
96
|
+
declare function __VLS_template(): {
|
|
97
|
+
attrs: Partial<{}>;
|
|
98
|
+
slots: {
|
|
99
|
+
'left-icon'?(_: {}): any;
|
|
100
|
+
default?(_: {}): any;
|
|
101
|
+
'right-icon'?(_: {}): any;
|
|
102
|
+
'external-icon'?(_: {}): any;
|
|
103
|
+
};
|
|
104
|
+
refs: {};
|
|
105
|
+
rootEl: any;
|
|
106
|
+
};
|
|
107
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
108
|
+
declare const __VLS_component: import('vue').DefineComponent<MazLinkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MazLinkProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
109
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
110
|
+
export default _default;
|
|
111
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
112
|
+
new (): {
|
|
113
|
+
$slots: S;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MazColor } from './types';
|
|
2
|
+
export interface MazLoadingBarProps {
|
|
3
|
+
/** The color of the component. */
|
|
4
|
+
color?: MazColor;
|
|
5
|
+
/** The height of the component. */
|
|
6
|
+
height?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import('vue').DefineComponent<MazLoadingBarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MazLoadingBarProps> & Readonly<{}>, {
|
|
9
|
+
height: string;
|
|
10
|
+
color: MazColor;
|
|
11
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
|
+
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, unref, createElementVNode, createVNode, mergeProps, withCtx, renderSlot, createTextVNode, toDisplayString, Fragment, renderList, createBlock, createCommentVNode } from "vue";
|
|
2
2
|
import { MazChevronDoubleLeft, MazChevronLeft, MazEllipsisHorizontal } from "@maz-ui/icons";
|
|
3
|
-
import {
|
|
3
|
+
import { useTranslations } from "@maz-ui/translations";
|
|
4
4
|
import MazBtn from "./MazBtn.js";
|
|
5
5
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
6
|
-
import '../assets/MazPagination.
|
|
6
|
+
import '../assets/MazPagination.BUhf2Qr7.css';const _hoisted_1 = ["aria-label"], _hoisted_2 = { class: "maz-sr-only" }, _hoisted_3 = { class: "maz-sr-only" }, _hoisted_4 = ["id"], _hoisted_5 = { class: "maz-sr-only" }, _hoisted_6 = { class: "maz-sr-only" }, _hoisted_7 = { class: "maz-sr-only" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "MazPagination",
|
|
8
8
|
props: {
|
|
9
9
|
modelValue: { default: 1 },
|
|
@@ -188,7 +188,7 @@ import '../assets/MazPagination.C6cUh-p4.css';const _hoisted_1 = ["aria-label"],
|
|
|
188
188
|
])
|
|
189
189
|
], 8, _hoisted_1));
|
|
190
190
|
}
|
|
191
|
-
}), MazPagination = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
191
|
+
}), MazPagination = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7b81246f"]]);
|
|
192
192
|
export {
|
|
193
193
|
MazPagination as default
|
|
194
194
|
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { MazBtnProps } from './MazBtn.vue';
|
|
2
|
+
import { MazColor, MazSize } from './types';
|
|
3
|
+
export interface MazPaginationProps {
|
|
4
|
+
/**
|
|
5
|
+
* The current page number.
|
|
6
|
+
* @model
|
|
7
|
+
* @default 1
|
|
8
|
+
*/
|
|
9
|
+
modelValue?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Props apply to the MazBtn components.
|
|
12
|
+
* @type {Partial<MazBtnProps>}
|
|
13
|
+
* @default undefined
|
|
14
|
+
*/
|
|
15
|
+
buttonProps?: Partial<MazBtnProps>;
|
|
16
|
+
/**
|
|
17
|
+
* Number of results in this page. Useful for accessibility to set aria-setsize attribute. Partial of MazBtn props.
|
|
18
|
+
* @default undefined
|
|
19
|
+
*/
|
|
20
|
+
resultsSize?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Color of the active button.
|
|
23
|
+
* @values 'contrast', 'primary', 'secondary', 'info', 'success', 'warning', 'destructive', 'accent', 'background'
|
|
24
|
+
* @default 'contrast'
|
|
25
|
+
*/
|
|
26
|
+
activeColor?: MazColor | 'background';
|
|
27
|
+
/**
|
|
28
|
+
* Size of the buttons.
|
|
29
|
+
* @values 'mini', 'xs', 'sm', 'md', 'lg', 'xl'
|
|
30
|
+
* @default 'md'
|
|
31
|
+
*/
|
|
32
|
+
size?: MazSize;
|
|
33
|
+
/**
|
|
34
|
+
* Total number of pages.
|
|
35
|
+
* @default 10
|
|
36
|
+
*/
|
|
37
|
+
totalPages: number;
|
|
38
|
+
/**
|
|
39
|
+
* Number of buttons to display before and after the current page.
|
|
40
|
+
* @default 1
|
|
41
|
+
*/
|
|
42
|
+
pageRange?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Enable loading state of current button
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
loading?: boolean;
|
|
48
|
+
}
|
|
49
|
+
declare function __VLS_template(): {
|
|
50
|
+
attrs: Partial<{}>;
|
|
51
|
+
slots: {
|
|
52
|
+
'first-page-sr'?(_: {
|
|
53
|
+
page: number;
|
|
54
|
+
}): any;
|
|
55
|
+
'previous-page-sr'?(_: {
|
|
56
|
+
page: number;
|
|
57
|
+
}): any;
|
|
58
|
+
'page-sr'?(_: {
|
|
59
|
+
page: number;
|
|
60
|
+
}): any;
|
|
61
|
+
'next-page-sr'?(_: {
|
|
62
|
+
page: number;
|
|
63
|
+
}): any;
|
|
64
|
+
'last-page-sr'?(_: {
|
|
65
|
+
page: number;
|
|
66
|
+
}): any;
|
|
67
|
+
};
|
|
68
|
+
refs: {};
|
|
69
|
+
rootEl: HTMLElement;
|
|
70
|
+
};
|
|
71
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
72
|
+
declare const __VLS_component: import('vue').DefineComponent<MazPaginationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
73
|
+
"update:model-value": (value: number) => any;
|
|
74
|
+
}, string, import('vue').PublicProps, Readonly<MazPaginationProps> & Readonly<{
|
|
75
|
+
"onUpdate:model-value"?: ((value: number) => any) | undefined;
|
|
76
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
77
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
78
|
+
export default _default;
|
|
79
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
80
|
+
new (): {
|
|
81
|
+
$slots: S;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent, mergeModels, useAttrs, useTemplateRef, computed, useModel, nextTick, watch, onMounted, onBeforeUnmount, onUnmounted, createElementBlock, openBlock, Fragment, createCommentVNode, createBlock, normalizeStyle, normalizeClass, unref, createElementVNode, mergeProps, renderSlot, Teleport, createVNode, Transition, withCtx, withDirectives } from "vue";
|
|
2
2
|
import { offset, hide, shift, autoPlacement, flip, useFloating, autoUpdate } from "@floating-ui/vue";
|
|
3
|
-
import {
|
|
3
|
+
import { e } from "../chunks/isClient.8V3qjGdO.js";
|
|
4
4
|
import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
5
|
-
import { d as directive } from "../chunks/vClickOutside.
|
|
5
|
+
import { d as directive } from "../chunks/vClickOutside.CJBKY5no.js";
|
|
6
6
|
import { g as getColor } from "../chunks/types.D0Bp_UhS.js";
|
|
7
7
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
8
|
-
import '../assets/MazPopover.
|
|
8
|
+
import '../assets/MazPopover.DIE65uVT.css';const _hoisted_1 = ["id", "aria-expanded", "aria-haspopup", "aria-describedby", "aria-labelledby"], _hoisted_2 = ["id", "role", "aria-label", "aria-labelledby", "aria-describedby", "aria-modal", "tabindex", "aria-live"], _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
9
|
name: "MazPopover",
|
|
10
10
|
inheritAttrs: !1,
|
|
11
11
|
__name: "MazPopover",
|
|
@@ -42,7 +42,7 @@ import '../assets/MazPopover.B3kR2Gsa.css';const _hoisted_1 = ["id", "aria-expan
|
|
|
42
42
|
modelValue: { type: Boolean, required: !1, default: !1 },
|
|
43
43
|
modelModifiers: {}
|
|
44
44
|
}),
|
|
45
|
-
emits: /* @__PURE__ */ mergeModels(["update:model-value", "open", "close", "toggle"], ["update:modelValue"]),
|
|
45
|
+
emits: /* @__PURE__ */ mergeModels(["update:model-value", "open", "close", "after-close-animation", "toggle"], ["update:modelValue"]),
|
|
46
46
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
47
47
|
const emits = __emit, triggerId = useInstanceUniqId({
|
|
48
48
|
componentName: "MazPopover",
|
|
@@ -73,7 +73,7 @@ import '../assets/MazPopover.B3kR2Gsa.css';const _hoisted_1 = ["id", "aria-expan
|
|
|
73
73
|
return triggerElement.value;
|
|
74
74
|
if (typeof __props.positionReference == "string") {
|
|
75
75
|
const withinTrigger = triggerElement.value?.querySelector(__props.positionReference);
|
|
76
|
-
return withinTrigger || (
|
|
76
|
+
return withinTrigger || (e() ? document.querySelector(__props.positionReference) : null);
|
|
77
77
|
}
|
|
78
78
|
return __props.positionReference;
|
|
79
79
|
}
|
|
@@ -82,7 +82,7 @@ import '../assets/MazPopover.B3kR2Gsa.css';const _hoisted_1 = ["id", "aria-expan
|
|
|
82
82
|
const panelId = computed(() => `${triggerId.value}-panel`), rootStyles = computed(() => attrs.style), panelStyles = computed(() => ({
|
|
83
83
|
...floatingStyles.value,
|
|
84
84
|
pointerEvents: isOpen.value ? "auto" : "none"
|
|
85
|
-
})), isTouchDevice = computed(() =>
|
|
85
|
+
})), isTouchDevice = computed(() => e() ? "ontouchstart" in globalThis || navigator.maxTouchPoints > 0 : !1), effectiveTrigger = computed(() => __props.trigger === "adaptive" ? isTouchDevice.value ? "click" : "hover" : __props.trigger), triggerEvents = computed(() => {
|
|
86
86
|
if (__props.disabled || effectiveTrigger.value === "manual")
|
|
87
87
|
return {};
|
|
88
88
|
const events = {};
|
|
@@ -103,7 +103,7 @@ import '../assets/MazPopover.B3kR2Gsa.css';const _hoisted_1 = ["id", "aria-expan
|
|
|
103
103
|
`--${getColor(__props.color)}`
|
|
104
104
|
]);
|
|
105
105
|
function cleanup() {
|
|
106
|
-
clearOpenTimeout(), clearCloseTimeout(),
|
|
106
|
+
clearOpenTimeout(), clearCloseTimeout(), e() && document.removeEventListener("keydown", onKeydown);
|
|
107
107
|
}
|
|
108
108
|
function open() {
|
|
109
109
|
__props.disabled || (clearCloseTimeout(), effectiveTrigger.value === "click" && (ignoreNextClickOutside = !0), __props.delay > 0 ? openTimeout = setTimeout(() => {
|
|
@@ -162,7 +162,7 @@ import '../assets/MazPopover.B3kR2Gsa.css';const _hoisted_1 = ["id", "aria-expan
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
function setupFocusTrap() {
|
|
165
|
-
__props.role === "tooltip" ||
|
|
165
|
+
__props.role === "tooltip" || effectiveTrigger.value === "hover" || !__props.trapFocus || !e() || (initialFocusElement = document.activeElement, nextTick(() => {
|
|
166
166
|
const focusableElements = panelElement.value?.querySelectorAll(
|
|
167
167
|
'a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select, [tabindex]:not([tabindex="-1"])'
|
|
168
168
|
);
|
|
@@ -170,15 +170,15 @@ import '../assets/MazPopover.B3kR2Gsa.css';const _hoisted_1 = ["id", "aria-expan
|
|
|
170
170
|
}));
|
|
171
171
|
}
|
|
172
172
|
function restoreFocus() {
|
|
173
|
-
__props.role === "tooltip" ||
|
|
173
|
+
__props.role === "tooltip" || effectiveTrigger.value === "hover" || !__props.trapFocus || !e() || nextTick(() => {
|
|
174
174
|
initialFocusElement?.focus({ preventScroll: !0 });
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
function onKeydown(event) {
|
|
178
|
-
isOpen.value && (event.key === "Escape" && __props.closeOnEscape && !__props.persistent && (event.preventDefault(), close()),
|
|
178
|
+
isOpen.value && (event.key === "Escape" && __props.closeOnEscape && !__props.persistent && (event.preventDefault(), close()), event.key === "Tab" && __props.trapFocus && handleTrapFocus(event));
|
|
179
179
|
}
|
|
180
180
|
function handleTrapFocus(event) {
|
|
181
|
-
if (!panelElement.value || !
|
|
181
|
+
if (!panelElement.value || !e())
|
|
182
182
|
return;
|
|
183
183
|
const focusableElements = panelElement.value.querySelectorAll(
|
|
184
184
|
'a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select, [tabindex]:not([tabindex="-1"])'
|
|
@@ -202,7 +202,7 @@ import '../assets/MazPopover.B3kR2Gsa.css';const _hoisted_1 = ["id", "aria-expan
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
return watch(isOpen, (value, oldValue) => {
|
|
205
|
-
!
|
|
205
|
+
!e() || value === oldValue || (value ? open() : oldValue && !value && close());
|
|
206
206
|
}, { immediate: !0 }), watch(() => __props.position, () => {
|
|
207
207
|
isOpen.value && nextTick(() => update());
|
|
208
208
|
}), onMounted(() => {
|
|
@@ -274,7 +274,8 @@ import '../assets/MazPopover.B3kR2Gsa.css';const _hoisted_1 = ["id", "aria-expan
|
|
|
274
274
|
(openBlock(), createBlock(Teleport, { to: _ctx.teleportTo }, [
|
|
275
275
|
createVNode(Transition, {
|
|
276
276
|
name: transitionName.value,
|
|
277
|
-
appear: ""
|
|
277
|
+
appear: "",
|
|
278
|
+
onAfterLeave: _cache[0] || (_cache[0] = ($event) => emits("after-close-animation"))
|
|
278
279
|
}, {
|
|
279
280
|
default: withCtx(() => [
|
|
280
281
|
isOpen.value ? withDirectives((openBlock(), createElementBlock("div", mergeProps({
|
|
@@ -313,7 +314,7 @@ import '../assets/MazPopover.B3kR2Gsa.css';const _hoisted_1 = ["id", "aria-expan
|
|
|
313
314
|
], 8, ["to"]))
|
|
314
315
|
], 64));
|
|
315
316
|
}
|
|
316
|
-
}), MazPopover = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
317
|
+
}), MazPopover = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ecc963ec"]]);
|
|
317
318
|
export {
|
|
318
319
|
MazPopover as default
|
|
319
320
|
};
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { Placement } from '@floating-ui/vue';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
import { MazColor } from './types';
|
|
4
|
+
type __VLS_Props = MazPopoverProps;
|
|
5
|
+
export type MazPopoverPosition = Placement | 'auto';
|
|
6
|
+
export type MazPopoverPreferPosition = Placement;
|
|
7
|
+
export type MazPopoverFallbackPosition = Placement;
|
|
8
|
+
export type MazPopoverTrigger = 'click' | 'hover' | 'manual' | 'adaptive';
|
|
9
|
+
export type MazPopoverRole = 'dialog' | 'tooltip' | 'menu';
|
|
10
|
+
export interface MazPopoverProps {
|
|
11
|
+
/**
|
|
12
|
+
* Controls the popover open state
|
|
13
|
+
* @model
|
|
14
|
+
* @type {boolean}
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
modelValue?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Position of the popover relative to trigger
|
|
20
|
+
* @values auto, top, bottom, left, right, top-start, top-end, bottom-start, bottom-end, left-start, left-end, right-start, right-end
|
|
21
|
+
* @default auto
|
|
22
|
+
* @description Position of the popover relative to trigger
|
|
23
|
+
*/
|
|
24
|
+
position?: MazPopoverPosition;
|
|
25
|
+
/**
|
|
26
|
+
* Preferred position of the popover relative to trigger when auto position is used
|
|
27
|
+
* @values auto, top, bottom, left, right, top-start, top-end, bottom-start, bottom-end, left-start, left-end, right-start, right-end
|
|
28
|
+
* @default 'bottom-start'
|
|
29
|
+
* @description Preferred position of the popover relative to trigger
|
|
30
|
+
*/
|
|
31
|
+
preferPosition?: MazPopoverPreferPosition;
|
|
32
|
+
/**
|
|
33
|
+
* Fallback position of the popover relative to trigger when prefer position is not visible
|
|
34
|
+
* @values auto, top, bottom, left, right, top-start, top-end, bottom-start, bottom-end, left-start, left-end, right-start, right-end
|
|
35
|
+
* @default auto
|
|
36
|
+
* @description Fallback position of the popover relative to trigger
|
|
37
|
+
*/
|
|
38
|
+
fallbackPosition?: MazPopoverFallbackPosition;
|
|
39
|
+
/**
|
|
40
|
+
* How the popover is triggered
|
|
41
|
+
* @values click, hover, manual, adaptive
|
|
42
|
+
* @default click
|
|
43
|
+
* @description How the popover is triggered. 'adaptive' uses hover on desktop and click on mobile
|
|
44
|
+
*/
|
|
45
|
+
trigger?: MazPopoverTrigger;
|
|
46
|
+
/**
|
|
47
|
+
* ARIA role for accessibility
|
|
48
|
+
* @values dialog, tooltip
|
|
49
|
+
* @default dialog
|
|
50
|
+
* @description ARIA role for accessibility
|
|
51
|
+
*/
|
|
52
|
+
role?: MazPopoverRole;
|
|
53
|
+
/**
|
|
54
|
+
* ARIA label for the popover
|
|
55
|
+
* @default undefined
|
|
56
|
+
*/
|
|
57
|
+
ariaLabel?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Announce content changes to screen readers
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
announceChanges?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Disables the popover
|
|
65
|
+
* @default false
|
|
66
|
+
* @description Disables the popover
|
|
67
|
+
*/
|
|
68
|
+
disabled?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Distance between trigger and popover in pixels
|
|
71
|
+
* @default 8
|
|
72
|
+
*/
|
|
73
|
+
offset?: number;
|
|
74
|
+
/**
|
|
75
|
+
* Delay before showing/hiding in milliseconds
|
|
76
|
+
* @default 0
|
|
77
|
+
*/
|
|
78
|
+
delay?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Delay before closing on hover in milliseconds
|
|
81
|
+
* @default 150
|
|
82
|
+
*/
|
|
83
|
+
hoverDelay?: number;
|
|
84
|
+
/**
|
|
85
|
+
* CSS transition name for animations
|
|
86
|
+
* @default popover
|
|
87
|
+
*/
|
|
88
|
+
transition?: 'scale-pop' | 'scale-fade' | string;
|
|
89
|
+
/**
|
|
90
|
+
* Teleport target selector
|
|
91
|
+
* @default body
|
|
92
|
+
*/
|
|
93
|
+
teleportTo?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Additional CSS classes for the overlay wrapper
|
|
96
|
+
* @default undefined
|
|
97
|
+
*/
|
|
98
|
+
overlayClass?: HTMLAttributes['class'];
|
|
99
|
+
/**
|
|
100
|
+
* Additional CSS classes for the popover panel
|
|
101
|
+
* @default undefined
|
|
102
|
+
*/
|
|
103
|
+
panelClass?: HTMLAttributes['class'];
|
|
104
|
+
/**
|
|
105
|
+
* Inline styles for the popover panel
|
|
106
|
+
* @default undefined
|
|
107
|
+
*/
|
|
108
|
+
panelStyle?: HTMLAttributes['style'];
|
|
109
|
+
/**
|
|
110
|
+
* Close popover when clicking outside
|
|
111
|
+
* @default true
|
|
112
|
+
*/
|
|
113
|
+
closeOnClickOutside?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Close popover when pressing Escape key
|
|
116
|
+
* @default true
|
|
117
|
+
*/
|
|
118
|
+
closeOnEscape?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Prevent auto-close (ignores click outside and escape key)
|
|
121
|
+
* @default false
|
|
122
|
+
*/
|
|
123
|
+
persistent?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Custom ID for the popover element
|
|
126
|
+
* @default undefined
|
|
127
|
+
*/
|
|
128
|
+
id?: string;
|
|
129
|
+
/**
|
|
130
|
+
* ARIA labelledby attribute for accessibility
|
|
131
|
+
* @default undefined
|
|
132
|
+
*/
|
|
133
|
+
ariaLabelledby?: string;
|
|
134
|
+
/**
|
|
135
|
+
* ARIA describedby attribute for accessibility
|
|
136
|
+
* @default undefined
|
|
137
|
+
*/
|
|
138
|
+
ariaDescribedby?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Color variant of the popover
|
|
141
|
+
* @values primary, secondary, accent, info, success, warning, destructive, contrast, background
|
|
142
|
+
* @default background
|
|
143
|
+
*/
|
|
144
|
+
color?: MazColor | 'background';
|
|
145
|
+
/**
|
|
146
|
+
* Trap focus inside the popover
|
|
147
|
+
* @default true
|
|
148
|
+
*/
|
|
149
|
+
trapFocus?: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Keep popover open when hovering over the panel
|
|
152
|
+
* @default false
|
|
153
|
+
*/
|
|
154
|
+
keepOpenOnHover?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* The popover will be full width of the trigger
|
|
157
|
+
* @default false
|
|
158
|
+
*/
|
|
159
|
+
block?: boolean;
|
|
160
|
+
/**
|
|
161
|
+
* CSS selector or element reference to use for positioning calculations
|
|
162
|
+
* @description When provided, the popover will position relative to this element instead of the trigger
|
|
163
|
+
* Useful for components with labels where you want to position relative to the actual input
|
|
164
|
+
* @type {string | HTMLElement}
|
|
165
|
+
* @default undefined
|
|
166
|
+
* @example "input" or "#my-input" or HTMLElement
|
|
167
|
+
*/
|
|
168
|
+
positionReference?: string | HTMLElement;
|
|
169
|
+
}
|
|
170
|
+
declare function open(): void;
|
|
171
|
+
declare function close(): void;
|
|
172
|
+
declare function toggle(): void;
|
|
173
|
+
type __VLS_PublicProps = {
|
|
174
|
+
modelValue?: boolean;
|
|
175
|
+
} & __VLS_Props;
|
|
176
|
+
declare function __VLS_template(): {
|
|
177
|
+
attrs: Partial<{}>;
|
|
178
|
+
slots: {
|
|
179
|
+
trigger?(_: {
|
|
180
|
+
open: typeof open;
|
|
181
|
+
close: typeof close;
|
|
182
|
+
toggle: typeof toggle;
|
|
183
|
+
isOpen: boolean;
|
|
184
|
+
trigger: "click" | "hover" | "manual";
|
|
185
|
+
}): any;
|
|
186
|
+
default?(_: {
|
|
187
|
+
open: typeof open;
|
|
188
|
+
close: typeof close;
|
|
189
|
+
toggle: typeof toggle;
|
|
190
|
+
isOpen: true;
|
|
191
|
+
}): any;
|
|
192
|
+
};
|
|
193
|
+
refs: {
|
|
194
|
+
trigger: HTMLDivElement;
|
|
195
|
+
panel: HTMLDivElement;
|
|
196
|
+
};
|
|
197
|
+
rootEl: any;
|
|
198
|
+
};
|
|
199
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
200
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
201
|
+
/**
|
|
202
|
+
* Open the popover
|
|
203
|
+
* @description Programmatically open the popover
|
|
204
|
+
* @usage `mazPopoverInstance.value?.open()`
|
|
205
|
+
*/
|
|
206
|
+
open: typeof open;
|
|
207
|
+
/**
|
|
208
|
+
* Close the popover
|
|
209
|
+
* @description Programmatically close the popover
|
|
210
|
+
* @usage `mazPopoverInstance.value?.close()`
|
|
211
|
+
*/
|
|
212
|
+
close: typeof close;
|
|
213
|
+
/**
|
|
214
|
+
* Toggle the popover
|
|
215
|
+
* @description Programmatically toggle the popover open/close state
|
|
216
|
+
* @usage `mazPopoverInstance.value?.toggle()`
|
|
217
|
+
*/
|
|
218
|
+
toggle: typeof toggle;
|
|
219
|
+
/**
|
|
220
|
+
* Check if the popover is open
|
|
221
|
+
* @type {ComputedRef<boolean>}
|
|
222
|
+
* @description Reactive reference to the popover open state
|
|
223
|
+
* @usage `const isPopoverOpen = mazPopoverInstance.value?.isOpen`
|
|
224
|
+
*/
|
|
225
|
+
isOpen: import('vue').ComputedRef<boolean>;
|
|
226
|
+
/**
|
|
227
|
+
* Update the popover position
|
|
228
|
+
* @description Manually recalculate and update the popover position
|
|
229
|
+
* @usage `mazPopoverInstance.value?.updatePosition()`
|
|
230
|
+
*/
|
|
231
|
+
updatePosition: () => void;
|
|
232
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
233
|
+
close: () => any;
|
|
234
|
+
toggle: (value: boolean) => any;
|
|
235
|
+
open: () => any;
|
|
236
|
+
"update:model-value": (value: boolean) => any;
|
|
237
|
+
"update:modelValue": (value: boolean) => any;
|
|
238
|
+
"after-close-animation": () => any;
|
|
239
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
240
|
+
onClose?: (() => any) | undefined;
|
|
241
|
+
onToggle?: ((value: boolean) => any) | undefined;
|
|
242
|
+
onOpen?: (() => any) | undefined;
|
|
243
|
+
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
244
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
245
|
+
"onAfter-close-animation"?: (() => any) | undefined;
|
|
246
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
247
|
+
trigger: HTMLDivElement;
|
|
248
|
+
panel: HTMLDivElement;
|
|
249
|
+
}, any>;
|
|
250
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
251
|
+
export default _default;
|
|
252
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
253
|
+
new (): {
|
|
254
|
+
$slots: S;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent, defineAsyncComponent, computed, ref, watch, onUnmounted, createElementBlock, openBlock, normalizeClass, createCommentVNode, renderSlot, normalizeStyle, createElementVNode, createVNode, unref } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { e as e$1 } from "../chunks/isClient.8V3qjGdO.js";
|
|
3
3
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
4
|
-
import '../assets/MazPullToRefresh.
|
|
5
|
-
if (!
|
|
4
|
+
import '../assets/MazPullToRefresh.C0HGlupm.css';function e() {
|
|
5
|
+
if (!e$1())
|
|
6
6
|
return !1;
|
|
7
|
-
const
|
|
8
|
-
return
|
|
7
|
+
const a = navigator, n = globalThis.matchMedia("(display-mode: standalone)").matches;
|
|
8
|
+
return a.standalone || n;
|
|
9
9
|
}
|
|
10
10
|
const _hoisted_1 = {
|
|
11
11
|
key: 0,
|
|
@@ -31,7 +31,7 @@ const _hoisted_1 = {
|
|
|
31
31
|
emits: ["loaded", "start", "error", "finish", "response"],
|
|
32
32
|
setup(__props, { emit: __emit }) {
|
|
33
33
|
const props = __props, emits = __emit, MazSpinner = defineAsyncComponent(() => import("./MazSpinner.js")), isDisabled = computed(
|
|
34
|
-
() => props.disabled || props.onClick === void 0 || props.standaloneMode &&
|
|
34
|
+
() => props.disabled || props.onClick === void 0 || props.standaloneMode && e$1() && !e()
|
|
35
35
|
), margin = ref({
|
|
36
36
|
top: 0,
|
|
37
37
|
bottom: 0
|
|
@@ -144,7 +144,7 @@ const _hoisted_1 = {
|
|
|
144
144
|
renderSlot(_ctx.$slots, "default", {}, void 0, !0)
|
|
145
145
|
], 2));
|
|
146
146
|
}
|
|
147
|
-
}), MazPullToRefresh = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
147
|
+
}), MazPullToRefresh = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-515facf3"]]);
|
|
148
148
|
export {
|
|
149
149
|
MazPullToRefresh as default
|
|
150
150
|
};
|