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,52 @@
|
|
|
1
|
+
import { MazColor } from './types';
|
|
2
|
+
export interface MazPullToRefreshProps {
|
|
3
|
+
distance?: number;
|
|
4
|
+
offset?: number;
|
|
5
|
+
onClick?: () => unknown;
|
|
6
|
+
containerSelector?: string;
|
|
7
|
+
headerClass?: string;
|
|
8
|
+
spinnerColor?: MazColor;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
standaloneMode?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare function __VLS_template(): {
|
|
13
|
+
attrs: Partial<{}>;
|
|
14
|
+
slots: {
|
|
15
|
+
'pull-before'?(_: {}): any;
|
|
16
|
+
'pull-ready'?(_: {}): any;
|
|
17
|
+
'pull-loading'?(_: {}): any;
|
|
18
|
+
default?(_: {}): any;
|
|
19
|
+
};
|
|
20
|
+
refs: {};
|
|
21
|
+
rootEl: HTMLDivElement;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
|
+
declare const __VLS_component: import('vue').DefineComponent<MazPullToRefreshProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
+
error: (...args: any[]) => void;
|
|
26
|
+
loaded: (...args: any[]) => void;
|
|
27
|
+
start: (...args: any[]) => void;
|
|
28
|
+
response: (...args: any[]) => void;
|
|
29
|
+
finish: (...args: any[]) => void;
|
|
30
|
+
}, string, import('vue').PublicProps, Readonly<MazPullToRefreshProps> & Readonly<{
|
|
31
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
32
|
+
onLoaded?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
onStart?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
onResponse?: ((...args: any[]) => any) | undefined;
|
|
35
|
+
onFinish?: ((...args: any[]) => any) | undefined;
|
|
36
|
+
}>, {
|
|
37
|
+
onClick: () => unknown;
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
offset: number;
|
|
40
|
+
distance: number;
|
|
41
|
+
containerSelector: string;
|
|
42
|
+
headerClass: string;
|
|
43
|
+
spinnerColor: MazColor;
|
|
44
|
+
standaloneMode: boolean;
|
|
45
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
46
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$slots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createElementVNode, mergeProps, renderSlot, createCommentVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
3
3
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
4
|
-
import '../assets/MazRadio.
|
|
4
|
+
import '../assets/MazRadio.B0B3P1QS.css';const _hoisted_1 = ["for", "aria-checked"], _hoisted_2 = ["id", "value", "disabled", "name", "checked"], _hoisted_3 = { class: "m-radio__text" }, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
5
|
__name: "MazRadio",
|
|
6
6
|
props: {
|
|
7
7
|
style: { default: void 0 },
|
|
@@ -97,7 +97,7 @@ import '../assets/MazRadio.aTHM-mpx.css';const _hoisted_1 = ["for", "aria-checke
|
|
|
97
97
|
])
|
|
98
98
|
], 46, _hoisted_1));
|
|
99
99
|
}
|
|
100
|
-
}), MazRadio = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
100
|
+
}), MazRadio = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c9f427c1"]]);
|
|
101
101
|
export {
|
|
102
102
|
MazRadio as default
|
|
103
103
|
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { MazColor, MazSize } from './types';
|
|
3
|
+
export interface MazRadioProps<T = string | number | boolean> {
|
|
4
|
+
/** Style attribut of the component root element */
|
|
5
|
+
style?: HTMLAttributes['style'];
|
|
6
|
+
/** Class attribut of the component root element */
|
|
7
|
+
class?: HTMLAttributes['class'];
|
|
8
|
+
/** The id of the radio */
|
|
9
|
+
id?: string;
|
|
10
|
+
/** @model The value of the radio */
|
|
11
|
+
modelValue?: T;
|
|
12
|
+
/** The value of the radio */
|
|
13
|
+
value: T;
|
|
14
|
+
/** The name of the radio */
|
|
15
|
+
name: string;
|
|
16
|
+
/** The label of the radio */
|
|
17
|
+
label?: string;
|
|
18
|
+
/** The color of the radio */
|
|
19
|
+
color?: MazColor;
|
|
20
|
+
/** The size of the radio */
|
|
21
|
+
size?: MazSize;
|
|
22
|
+
/** The disabled state of the radio */
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
/** Whether there is an error with the input. */
|
|
25
|
+
error?: boolean;
|
|
26
|
+
/** Whether the input is successful. */
|
|
27
|
+
success?: boolean;
|
|
28
|
+
/** Whether there is a warning with the input. */
|
|
29
|
+
warning?: boolean;
|
|
30
|
+
/** The hint text to display below the input. */
|
|
31
|
+
hint?: string;
|
|
32
|
+
}
|
|
33
|
+
declare const _default: <T extends string | number | boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
34
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
35
|
+
readonly onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
36
|
+
readonly onChange?: ((value: T) => any) | undefined;
|
|
37
|
+
readonly onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
38
|
+
readonly "onUpdate:model-value"?: ((value: T) => any) | undefined;
|
|
39
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:model-value"> & MazRadioProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
40
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
41
|
+
attrs: any;
|
|
42
|
+
slots: {
|
|
43
|
+
default?(_: {
|
|
44
|
+
isSelected: boolean;
|
|
45
|
+
value: T;
|
|
46
|
+
}): any;
|
|
47
|
+
};
|
|
48
|
+
emit: ((evt: "blur", value: FocusEvent) => void) & ((evt: "change", value: T) => void) & ((evt: "focus", value: FocusEvent) => void) & ((evt: "update:model-value", value: T) => void);
|
|
49
|
+
}>) => import('vue').VNode & {
|
|
50
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
51
|
+
};
|
|
52
|
+
export default _default;
|
|
53
|
+
type __VLS_PrettifyLocal<T> = {
|
|
54
|
+
[K in keyof T]: T[K];
|
|
55
|
+
} & {};
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, createElementBlock, openBlock, createElementVNode
|
|
|
2
2
|
import { MazCheck } from "@maz-ui/icons";
|
|
3
3
|
import { g as getColor } from "../chunks/types.D0Bp_UhS.js";
|
|
4
4
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
5
|
-
import '../assets/MazRadioButtons.
|
|
5
|
+
import '../assets/MazRadioButtons.CfiHq8H9.css';const _hoisted_1 = { class: "m-radio-buttons m-reset-css" }, _hoisted_2 = ["for", "aria-checked", "onKeydown", "onBlur", "onFocus"], _hoisted_3 = ["id", "name", "value", "onChange"], _hoisted_4 = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "m-radio-buttons__items__checkbox"
|
|
8
8
|
}, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -123,7 +123,7 @@ import '../assets/MazRadioButtons.DN_rAzT9.css';const _hoisted_1 = { class: "m-r
|
|
|
123
123
|
}, toDisplayString(_ctx.hint), 3)) : createCommentVNode("", !0)
|
|
124
124
|
]));
|
|
125
125
|
}
|
|
126
|
-
}), MazRadioButtons = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
126
|
+
}), MazRadioButtons = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7ffe6c1e"]]);
|
|
127
127
|
export {
|
|
128
128
|
MazRadioButtons as default
|
|
129
129
|
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { MazColor } from './types';
|
|
3
|
+
export type MazRadioButtonsOption<T = string | number | boolean> = {
|
|
4
|
+
/** The label of the option */
|
|
5
|
+
label: string;
|
|
6
|
+
/** The value of the option */
|
|
7
|
+
value: T;
|
|
8
|
+
/** The classes to apply to the option */
|
|
9
|
+
classes?: any;
|
|
10
|
+
/** The style to apply to the option */
|
|
11
|
+
style?: HTMLAttributes['style'];
|
|
12
|
+
} & Record<string, unknown>;
|
|
13
|
+
export interface MazRadioButtonsProps<T = string | number | boolean, Option extends MazRadioButtonsOption<T> = MazRadioButtonsOption<T>> {
|
|
14
|
+
/** @model The value of the selected option */
|
|
15
|
+
modelValue?: T;
|
|
16
|
+
/** The options to display */
|
|
17
|
+
options: Option[];
|
|
18
|
+
/** The name of the radio group */
|
|
19
|
+
name?: string;
|
|
20
|
+
/** The color of the selected radio buttons */
|
|
21
|
+
color?: MazColor | 'background';
|
|
22
|
+
/** Add elevation to the radio buttons */
|
|
23
|
+
elevation?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The orientation of the radio buttons
|
|
26
|
+
* @values 'row' | 'col'
|
|
27
|
+
* @default 'row'
|
|
28
|
+
*/
|
|
29
|
+
orientation?: 'row' | 'col';
|
|
30
|
+
/** Disable the wrap of the radio buttons */
|
|
31
|
+
wrap?: boolean;
|
|
32
|
+
/** Make all radio buttons the same size */
|
|
33
|
+
equalSize?: boolean;
|
|
34
|
+
/** Display a selector icon */
|
|
35
|
+
selector?: boolean;
|
|
36
|
+
/** The component will be displayed in full width */
|
|
37
|
+
block?: boolean;
|
|
38
|
+
/** Whether there is an error with the input. */
|
|
39
|
+
error?: boolean;
|
|
40
|
+
/** Whether the input is successful. */
|
|
41
|
+
success?: boolean;
|
|
42
|
+
/** Whether there is a warning with the input. */
|
|
43
|
+
warning?: boolean;
|
|
44
|
+
/** The hint text to display below the input. */
|
|
45
|
+
hint?: string;
|
|
46
|
+
}
|
|
47
|
+
declare const _default: <T extends string | number | boolean, Option extends MazRadioButtonsOption<T>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
48
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
49
|
+
readonly onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
50
|
+
readonly onChange?: ((value: Option["value"]) => any) | undefined;
|
|
51
|
+
readonly onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
52
|
+
readonly "onUpdate:model-value"?: ((value: Option["value"]) => any) | undefined;
|
|
53
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:model-value"> & MazRadioButtonsProps<T, Option> & Partial<{}>> & import('vue').PublicProps;
|
|
54
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
55
|
+
attrs: any;
|
|
56
|
+
slots: {
|
|
57
|
+
default?(_: {
|
|
58
|
+
option: Option;
|
|
59
|
+
selected: boolean;
|
|
60
|
+
}): any;
|
|
61
|
+
};
|
|
62
|
+
emit: ((evt: "blur", value: FocusEvent) => void) & ((evt: "change", value: Option["value"]) => void) & ((evt: "focus", value: FocusEvent) => void) & ((evt: "update:model-value", value: Option["value"]) => void);
|
|
63
|
+
}>) => import('vue').VNode & {
|
|
64
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
65
|
+
};
|
|
66
|
+
export default _default;
|
|
67
|
+
type __VLS_PrettifyLocal<T> = {
|
|
68
|
+
[K in keyof T]: T[K];
|
|
69
|
+
} & {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent, computed, ref, watch, onMounted, onBeforeUnmount, createBlock, openBlock, Teleport, createElementVNode, mergeProps, normalizeStyle, normalizeClass, nextTick } from "vue";
|
|
2
2
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
3
|
-
import '../assets/MazReadingProgressBar.
|
|
4
|
-
let
|
|
5
|
-
return function(...
|
|
6
|
-
|
|
7
|
-
Date.now() -
|
|
8
|
-
}, Math.max(
|
|
3
|
+
import '../assets/MazReadingProgressBar.dzfwQFNg.css';function i(e, a) {
|
|
4
|
+
let l = !1, n, t;
|
|
5
|
+
return function(...o) {
|
|
6
|
+
l ? (clearTimeout(n), n = setTimeout(() => {
|
|
7
|
+
Date.now() - t >= a && (e.apply(this, o), t = Date.now());
|
|
8
|
+
}, Math.max(a - (Date.now() - t), 0))) : (e.apply(this, o), t = Date.now(), l = !0);
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -31,7 +31,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
immediate: !0
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
|
-
const handleScroll =
|
|
34
|
+
const handleScroll = i(() => {
|
|
35
35
|
const scrollPosition = window.scrollY;
|
|
36
36
|
if (scrollPosition >= 0 && scrollPosition <= elementHeight.value) {
|
|
37
37
|
const progress = scrollPosition / elementHeight.value * 100;
|
|
@@ -68,7 +68,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
68
|
], 16)
|
|
69
69
|
], 8, ["to"]));
|
|
70
70
|
}
|
|
71
|
-
}), MazReadingProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
71
|
+
}), MazReadingProgressBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a180e792"]]);
|
|
72
72
|
export {
|
|
73
73
|
MazReadingProgressBar as default
|
|
74
74
|
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { MazColor } from './types';
|
|
3
|
+
export interface MazReadingProgressBarProps {
|
|
4
|
+
/**
|
|
5
|
+
* Height of the progress bar
|
|
6
|
+
* @default 4px
|
|
7
|
+
*/
|
|
8
|
+
height?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Color of the progress bar
|
|
11
|
+
* @default primary
|
|
12
|
+
*/
|
|
13
|
+
color?: MazColor;
|
|
14
|
+
/**
|
|
15
|
+
* Selector of the element to teleport the progress bar
|
|
16
|
+
* @default body
|
|
17
|
+
*/
|
|
18
|
+
teleportSelector?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Selector of the element to get the height
|
|
21
|
+
* @default body
|
|
22
|
+
*/
|
|
23
|
+
contentSelector?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Offset of the progress bar
|
|
26
|
+
* @default 0
|
|
27
|
+
*/
|
|
28
|
+
offset?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Class of the progress bar
|
|
31
|
+
* @default undefined
|
|
32
|
+
*/
|
|
33
|
+
barClass?: HTMLAttributes['class'];
|
|
34
|
+
/**
|
|
35
|
+
* Instead of using the height of the content with a selector, you can set a scroll distance
|
|
36
|
+
* @default undefined
|
|
37
|
+
*/
|
|
38
|
+
distance?: number;
|
|
39
|
+
}
|
|
40
|
+
declare const _default: import('vue').DefineComponent<MazReadingProgressBarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
41
|
+
begin: () => any;
|
|
42
|
+
complete: () => any;
|
|
43
|
+
}, string, import('vue').PublicProps, Readonly<MazReadingProgressBarProps> & Readonly<{
|
|
44
|
+
onBegin?: (() => any) | undefined;
|
|
45
|
+
onComplete?: (() => any) | undefined;
|
|
46
|
+
}>, {
|
|
47
|
+
height: string;
|
|
48
|
+
color: MazColor;
|
|
49
|
+
offset: number;
|
|
50
|
+
teleportSelector: string;
|
|
51
|
+
distance: number;
|
|
52
|
+
contentSelector: string;
|
|
53
|
+
barClass: HTMLAttributes["class"];
|
|
54
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
55
|
+
export default _default;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent, mergeModels, defineAsyncComponent, useTemplateRef, computed, useModel, ref, watch, createBlock, openBlock, normalizeStyle, normalizeClass, withCtx, createElementVNode, unref, createCommentVNode, renderSlot, createElementBlock, createVNode, Fragment, renderList, toDisplayString, withModifiers, mergeProps, createSlots, nextTick } from "vue";
|
|
2
2
|
import { MazMagnifyingGlass, MazNoSymbol, MazChevronDown } from "@maz-ui/icons";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { u as useStringMatching,
|
|
3
|
+
import { useTranslations } from "@maz-ui/translations";
|
|
4
|
+
import { e as e$1 } from "../chunks/isClient.8V3qjGdO.js";
|
|
5
|
+
import { u as useStringMatching, S } from "../chunks/useStringMatching.DzSigyZ7.js";
|
|
6
6
|
import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
7
7
|
import MazInput from "./MazInput.js";
|
|
8
8
|
import MazPopover from "./MazPopover.js";
|
|
9
9
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
10
|
-
import '../assets/MazSelect.
|
|
11
|
-
function
|
|
12
|
-
|
|
10
|
+
import '../assets/MazSelect.DIwjMD31.css';let e = null;
|
|
11
|
+
function o(t, l) {
|
|
12
|
+
e && clearTimeout(e), e = setTimeout(t, l);
|
|
13
13
|
}
|
|
14
14
|
const _hoisted_1 = ["aria-label"], _hoisted_2 = ["id"], _hoisted_3 = { class: "m-select-list__no-results" }, _hoisted_4 = { class: "m-select-list-optgroup" }, _hoisted_5 = ["tabindex", "onClick"], _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
15
|
inheritAttrs: !1,
|
|
@@ -112,7 +112,7 @@ const _hoisted_1 = ["aria-label"], _hoisted_2 = ["id"], _hoisted_3 = { class: "m
|
|
|
112
112
|
return props.formatInputValue ? props.formatInputValue(value) : value;
|
|
113
113
|
}), searchQuery = ref(), query = ref("");
|
|
114
114
|
function searchInValue(value, query2) {
|
|
115
|
-
return query2 && value &&
|
|
115
|
+
return query2 && value && S(value).includes(S(query2));
|
|
116
116
|
}
|
|
117
117
|
function getFilteredOptionWithQuery(query2) {
|
|
118
118
|
return query2 ? optionsNormalized.value?.filter((option) => {
|
|
@@ -147,7 +147,7 @@ const _hoisted_1 = ["aria-label"], _hoisted_2 = ["id"], _hoisted_3 = { class: "m
|
|
|
147
147
|
const optionIndex = optionList.value?.findIndex(
|
|
148
148
|
(option) => option[props.optionValueKey] === filteredOptions[0][props.optionValueKey]
|
|
149
149
|
);
|
|
150
|
-
typeof optionIndex != "number" || optionIndex === -1 || (scrollToOptionIndex(optionIndex),
|
|
150
|
+
typeof optionIndex != "number" || optionIndex === -1 || (scrollToOptionIndex(optionIndex), o(() => {
|
|
151
151
|
query.value = "";
|
|
152
152
|
}, 1e3));
|
|
153
153
|
}
|
|
@@ -209,7 +209,7 @@ const _hoisted_1 = ["aria-label"], _hoisted_2 = ["id"], _hoisted_3 = { class: "m
|
|
|
209
209
|
return watch(
|
|
210
210
|
isOpen,
|
|
211
211
|
(value) => {
|
|
212
|
-
|
|
212
|
+
e$1() && (value ? document.addEventListener("keydown", keydownHandler) : document.removeEventListener("keydown", keydownHandler));
|
|
213
213
|
},
|
|
214
214
|
{ immediate: !0 }
|
|
215
215
|
), __expose({
|
|
@@ -381,7 +381,7 @@ const _hoisted_1 = ["aria-label"], _hoisted_2 = ["id"], _hoisted_3 = { class: "m
|
|
|
381
381
|
_: 3
|
|
382
382
|
}, 8, ["modelValue", "class", "style", "block", "transition", "position"]));
|
|
383
383
|
}
|
|
384
|
-
}), MazSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
384
|
+
}), MazSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ccb6b95e"]]);
|
|
385
385
|
export {
|
|
386
386
|
MazSelect as default
|
|
387
387
|
};
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { MazUiTranslationsNestedSchema } from '@maz-ui/translations';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
import { MazInputValue } from './MazInput.vue';
|
|
4
|
+
import { MazPopoverProps } from './MazPopover.vue';
|
|
5
|
+
import { MazColor, MazSize } from './types';
|
|
6
|
+
export interface MazSelectNormalizedOption {
|
|
7
|
+
[key: string]: MazInputValue;
|
|
8
|
+
}
|
|
9
|
+
export interface MazSelectOptionWithOptGroup {
|
|
10
|
+
label: string;
|
|
11
|
+
options: (MazSelectNormalizedOption | string | number | boolean)[];
|
|
12
|
+
}
|
|
13
|
+
export type MazSelectOption = MazSelectNormalizedOption | string | number | boolean | MazSelectOptionWithOptGroup;
|
|
14
|
+
export interface MazSelectProps<Value extends MazInputValue = MazInputValue, Option extends MazSelectOption = MazSelectOption, Multiple extends boolean = false> {
|
|
15
|
+
/**
|
|
16
|
+
* Style attribut of the component root element
|
|
17
|
+
* @type {HTMLAttributes['style']}
|
|
18
|
+
*/
|
|
19
|
+
style?: HTMLAttributes['style'];
|
|
20
|
+
/**
|
|
21
|
+
* Class attribut of the component root element
|
|
22
|
+
* @type {HTMLAttributes['class']}
|
|
23
|
+
*/
|
|
24
|
+
class?: HTMLAttributes['class'];
|
|
25
|
+
/** The id of the select */
|
|
26
|
+
id?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The label of the select
|
|
29
|
+
*/
|
|
30
|
+
label?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The placeholder of the select
|
|
33
|
+
*/
|
|
34
|
+
placeholder?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The value of the select
|
|
37
|
+
* @type {Value | Value[]}
|
|
38
|
+
*/
|
|
39
|
+
modelValue?: Multiple extends true ? Value[] : Value;
|
|
40
|
+
/**
|
|
41
|
+
* The options of the select
|
|
42
|
+
* @type {Option[]}
|
|
43
|
+
*/
|
|
44
|
+
options: Option[];
|
|
45
|
+
/**
|
|
46
|
+
* The key of the option value
|
|
47
|
+
* @default 'value'
|
|
48
|
+
*/
|
|
49
|
+
optionValueKey?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The key of the option label
|
|
52
|
+
* @default 'label'
|
|
53
|
+
*/
|
|
54
|
+
optionLabelKey?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The key of the option input value
|
|
57
|
+
* @default 'label'
|
|
58
|
+
*/
|
|
59
|
+
optionInputValueKey?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The position of the list (auto by default - will switch between bottom-start and top-start)
|
|
62
|
+
* @type {MazPopoverProps['position']}
|
|
63
|
+
* @default 'auto'
|
|
64
|
+
*/
|
|
65
|
+
listPosition?: MazPopoverProps['position'];
|
|
66
|
+
/** The height of the option list item */
|
|
67
|
+
itemHeight?: number;
|
|
68
|
+
/** The max height of the option list */
|
|
69
|
+
maxListHeight?: number;
|
|
70
|
+
/** The max width of the option list */
|
|
71
|
+
maxListWidth?: number;
|
|
72
|
+
/** The min height of the option list */
|
|
73
|
+
minListHeight?: number;
|
|
74
|
+
/** The min width of the option list */
|
|
75
|
+
minListWidth?: number;
|
|
76
|
+
/**
|
|
77
|
+
* The size of the select
|
|
78
|
+
* @default 'md'
|
|
79
|
+
*/
|
|
80
|
+
size?: MazSize;
|
|
81
|
+
/**
|
|
82
|
+
* The color of the select
|
|
83
|
+
* @default 'primary'
|
|
84
|
+
*/
|
|
85
|
+
color?: MazColor;
|
|
86
|
+
/** Display search input in option list */
|
|
87
|
+
search?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Replace the default search function to provide a custom search function
|
|
90
|
+
* @default undefined
|
|
91
|
+
*/
|
|
92
|
+
searchFunction?: (query: string, options: Option[]) => Option[] | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* The threshold for the search input where 1 is a perfect match and 0 is a match with any character
|
|
95
|
+
* @default 0.75
|
|
96
|
+
*/
|
|
97
|
+
searchThreshold?: number;
|
|
98
|
+
/** Enable the multiple selection */
|
|
99
|
+
multiple?: Multiple;
|
|
100
|
+
/** Make the input required in the form */
|
|
101
|
+
required?: boolean;
|
|
102
|
+
/** Disable the component */
|
|
103
|
+
disabled?: boolean;
|
|
104
|
+
/** The input will be displayed in full width */
|
|
105
|
+
block?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* The autocomplete attribute of the input
|
|
108
|
+
* @default 'off'
|
|
109
|
+
*/
|
|
110
|
+
autocomplete?: string;
|
|
111
|
+
/**
|
|
112
|
+
* The translations of the component
|
|
113
|
+
* @type {Partial<MazUiTranslationsNestedSchema['select']>}
|
|
114
|
+
* @default {
|
|
115
|
+
* searchPlaceholder: 'Search in options',
|
|
116
|
+
* }
|
|
117
|
+
*/
|
|
118
|
+
translations?: Partial<MazUiTranslationsNestedSchema['select']>;
|
|
119
|
+
/**
|
|
120
|
+
* The function to format the input value
|
|
121
|
+
* @type {(value: Multiple extends true ? Value[] : Value) => string}
|
|
122
|
+
* @default undefined
|
|
123
|
+
*/
|
|
124
|
+
formatInputValue?: (value: Multiple extends true ? Value[] : Value) => string;
|
|
125
|
+
/**
|
|
126
|
+
* The transition name of the panel list options
|
|
127
|
+
* @type {MazPopoverProps['transition']}
|
|
128
|
+
* @default 'scale-fade'
|
|
129
|
+
*/
|
|
130
|
+
transition?: MazPopoverProps['transition'];
|
|
131
|
+
}
|
|
132
|
+
declare const _default: <Value extends MazInputValue, Option extends MazSelectOption, Multiple extends boolean>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
133
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
134
|
+
readonly onBlur?: ((value: Event) => any) | undefined;
|
|
135
|
+
readonly onChange?: ((value: Event) => any) | undefined;
|
|
136
|
+
readonly onClose?: (() => any) | undefined;
|
|
137
|
+
readonly onFocus?: ((value?: Event | undefined) => any) | undefined;
|
|
138
|
+
readonly onInput?: ((value: Event) => any) | undefined;
|
|
139
|
+
readonly onOpen?: (() => any) | undefined;
|
|
140
|
+
readonly "onUpdate:model-value"?: ((value: Multiple extends true ? Value[] : Value) => any) | undefined;
|
|
141
|
+
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
142
|
+
readonly "onSelected-option"?: ((value: Option) => any) | undefined;
|
|
143
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onInput" | "onClose" | "onOpen" | "onUpdate:model-value" | "onUpdate:open" | "onSelected-option"> & ({
|
|
144
|
+
open?: boolean;
|
|
145
|
+
} & MazSelectProps<Value, Option, Multiple>) & Partial<{}>> & import('vue').PublicProps;
|
|
146
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
147
|
+
/**
|
|
148
|
+
* Open the select
|
|
149
|
+
* @description This is used to open the list options
|
|
150
|
+
*/
|
|
151
|
+
open: () => void;
|
|
152
|
+
/**
|
|
153
|
+
* Close the select
|
|
154
|
+
* @description This is used to close the list options
|
|
155
|
+
*/
|
|
156
|
+
close: () => void;
|
|
157
|
+
}>): void;
|
|
158
|
+
attrs: any;
|
|
159
|
+
slots: {
|
|
160
|
+
'left-icon'?(_: {}): any;
|
|
161
|
+
'right-icon'?(_: {}): any;
|
|
162
|
+
'no-results'?(_: {}): any;
|
|
163
|
+
optgroup?(_: {
|
|
164
|
+
label: string | number | true;
|
|
165
|
+
}): any;
|
|
166
|
+
default?(_: {
|
|
167
|
+
option: Option;
|
|
168
|
+
isSelected: boolean;
|
|
169
|
+
}): any;
|
|
170
|
+
};
|
|
171
|
+
emit: (((evt: "blur", value: Event) => void) & ((evt: "change", value: Event) => void) & ((evt: "close") => void) & ((evt: "focus", value?: Event | undefined) => void) & ((evt: "input", value: Event) => void) & ((evt: "open") => void) & ((evt: "update:model-value", value: Multiple extends true ? Value[] : Value) => void) & ((evt: "selected-option", value: Option) => void)) & ((evt: "update:open", value: boolean) => void);
|
|
172
|
+
}>) => import('vue').VNode & {
|
|
173
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
174
|
+
};
|
|
175
|
+
export default _default;
|
|
176
|
+
type __VLS_PrettifyLocal<T> = {
|
|
177
|
+
[K in keyof T]: T[K];
|
|
178
|
+
} & {};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { defineComponent, computed, defineAsyncComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, createVNode, mergeProps, unref, withCtx, createElementVNode, createCommentVNode, renderSlot, createBlock, toDisplayString } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useTranslations } from "@maz-ui/translations";
|
|
3
|
+
import { e } from "../chunks/vClickOutside.CJBKY5no.js";
|
|
4
4
|
import { useDisplayNames } from "../composables/useDisplayNames.js";
|
|
5
5
|
import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
6
6
|
import MazSelect from "./MazSelect.js";
|
|
7
7
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
8
|
-
import '../assets/MazSelectCountry.
|
|
8
|
+
import '../assets/MazSelectCountry.B0tlbfgr.css';function t$1() {
|
|
9
9
|
try {
|
|
10
|
-
return
|
|
11
|
-
} catch (
|
|
12
|
-
throw new Error(`[MazInputPhoneNumber] (browserLocale) ${
|
|
10
|
+
return e() ? void 0 : globalThis.navigator.language;
|
|
11
|
+
} catch (r) {
|
|
12
|
+
throw new Error(`[MazInputPhoneNumber] (browserLocale) ${r}`);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
const
|
|
16
|
-
function
|
|
17
|
-
const
|
|
18
|
-
if (
|
|
19
|
-
return
|
|
15
|
+
const t = ["ad", "ae", "af", "ag", "ai", "al", "am", "ao", "aq", "ar", "as", "at", "au", "aw", "ax", "az", "ba", "bb", "bd", "be", "bf", "bg", "bh", "bi", "bj", "bl", "bm", "bn", "bo", "bq", "br", "bs", "bt", "bv", "bw", "by", "bz", "ca", "cc", "cd", "cf", "cg", "ch", "ci", "ck", "cl", "cm", "cn", "co", "cr", "cu", "cv", "cw", "cx", "cy", "cz", "de", "dj", "dk", "dm", "do", "dz", "ec", "ee", "eg", "eh", "er", "es", "et", "eu", "fi", "fj", "fk", "fm", "fo", "fr", "ga", "gb", "gb-eng", "gb-nir", "gb-sct", "gb-wls", "gd", "ge", "gf", "gg", "gh", "gi", "gl", "gm", "gn", "gp", "gq", "gr", "gs", "gt", "gu", "gw", "gy", "hk", "hm", "hn", "hr", "ht", "hu", "id", "ie", "il", "im", "in", "io", "iq", "ir", "is", "it", "je", "jm", "jo", "jp", "ke", "kg", "kh", "ki", "km", "kn", "kp", "kr", "kw", "ky", "kz", "la", "lb", "lc", "li", "lk", "lr", "ls", "lt", "lu", "lv", "ly", "ma", "mc", "md", "me", "mf", "mg", "mh", "mk", "ml", "mm", "mn", "mo", "mp", "mq", "mr", "ms", "mt", "mu", "mv", "mw", "mx", "my", "mz", "na", "nc", "ne", "nf", "ng", "ni", "nl", "no", "np", "nr", "nu", "nz", "om", "pa", "pe", "pf", "pg", "ph", "pk", "pl", "pm", "pn", "pr", "ps", "pt", "pw", "py", "qa", "re", "ro", "rs", "ru", "rw", "sa", "sb", "sc", "sd", "se", "sg", "sh", "si", "sj", "sk", "sl", "sm", "sn", "so", "sr", "ss", "st", "sv", "sx", "sy", "sz", "tc", "td", "tf", "tg", "th", "tj", "tk", "tl", "tm", "tn", "to", "tr", "tt", "tv", "tw", "tz", "ua", "ug", "um", "un", "us", "us-ak", "us-al", "us-ar", "us-az", "us-ca", "us-co", "us-ct", "us-de", "us-fl", "us-ga", "us-hi", "us-ia", "us-id", "us-il", "us-in", "us-ks", "us-ky", "us-la", "us-ma", "us-md", "us-me", "us-mi", "us-mn", "us-mo", "us-ms", "us-mt", "us-nc", "us-nd", "us-ne", "us-nh", "us-nj", "us-nm", "us-nv", "us-ny", "us-oh", "us-ok", "us-or", "us-pa", "us-ri", "us-sc", "us-sd", "us-tn", "us-tx", "us-ut", "us-va", "us-vt", "us-wa", "us-wi", "us-wv", "us-wy", "uy", "uz", "va", "vc", "ve", "vg", "vi", "vn", "vu", "wf", "ws", "xk", "ye", "yt", "za", "zm", "zw"];
|
|
16
|
+
function n(m, u) {
|
|
17
|
+
const s = m.toLowerCase();
|
|
18
|
+
if (t.includes(s))
|
|
19
|
+
return u ? `https://flagcdn.com/${u}/${s}.png` : `https://flagcdn.com/${s}.svg`;
|
|
20
20
|
}
|
|
21
21
|
const _hoisted_1 = {
|
|
22
22
|
key: 0,
|
|
@@ -75,7 +75,7 @@ const _hoisted_1 = {
|
|
|
75
75
|
const instanceId = useInstanceUniqId({
|
|
76
76
|
componentName: "MazSelectCountry",
|
|
77
77
|
providedId: __props.id
|
|
78
|
-
}), { t, locale: mazLocale } = useTranslations(), locale = computed(() => __props.locale ?? mazLocale.value ??
|
|
78
|
+
}), { t: t2, locale: mazLocale } = useTranslations(), locale = computed(() => __props.locale ?? mazLocale.value ?? t$1()), MazLazyImg = defineAsyncComponent(() => import("./MazLazyImg.js")), { getAllDisplayNames } = useDisplayNames(locale), _codesType = computed(() => __props.codesType ? __props.codesType : __props.displayNamesOptions.type === "region" ? "country" : "iso"), displayNames = getAllDisplayNames({
|
|
79
79
|
type: () => __props.displayNamesOptions.type,
|
|
80
80
|
languageDisplay: () => __props.displayNamesOptions.languageDisplay,
|
|
81
81
|
fallback: () => __props.displayNamesOptions.fallback,
|
|
@@ -85,10 +85,10 @@ const _hoisted_1 = {
|
|
|
85
85
|
preferredCodes: () => __props.preferredCodes,
|
|
86
86
|
codesType: _codesType
|
|
87
87
|
}), countriesOptions = computed(() => __props.options ? __props.options : displayNames?.value ?? []), messages = computed(() => ({
|
|
88
|
-
searchPlaceholder: __props.translations?.searchPlaceholder ??
|
|
88
|
+
searchPlaceholder: __props.translations?.searchPlaceholder ?? t2("selectCountry.searchPlaceholder")
|
|
89
89
|
}));
|
|
90
90
|
function getFlagUrl(code, size = "h20") {
|
|
91
|
-
return
|
|
91
|
+
return n(code.slice(0, 2), size) || n(code.slice(3, 5), size) || n(code, size);
|
|
92
92
|
}
|
|
93
93
|
const flagUrl = computed(() => {
|
|
94
94
|
if (__props.modelValue)
|
|
@@ -195,7 +195,7 @@ const _hoisted_1 = {
|
|
|
195
195
|
}, 16, ["id", "model-value", "option-value-key", "option-label-key", "option-input-value-key", "max-list-width", "min-list-width", "disabled", "color", "placeholder", "label", "size", "list-position", "error", "warning", "success", "search", "block", "autocomplete", "item-height", "max-list-height", "min-list-height", "required", "search-function", "format-input-value", "translations", "search-threshold", "options", "hint", "open"])
|
|
196
196
|
], 6));
|
|
197
197
|
}
|
|
198
|
-
}), MazSelectCountry = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
198
|
+
}), MazSelectCountry = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-20c13991"]]);
|
|
199
199
|
export {
|
|
200
200
|
MazSelectCountry as default
|
|
201
201
|
};
|