maz-ui 4.0.0-beta.8 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/assets/{MazAnimatedCounter.DkZNPRLp.css → MazAnimatedCounter.LK7oyUrl.css} +1 -1
- package/dist/assets/MazAnimatedText.CHvAudRU.css +1 -0
- package/dist/assets/MazBackdrop.09bziTPM.css +1 -0
- package/dist/assets/{MazBadge.DN8tdE8_.css → MazBadge.ChI2DaTU.css} +1 -1
- package/dist/assets/MazBtn.BvC8ftmc.css +1 -0
- package/dist/assets/MazCard.Dv02b2P6.css +1 -0
- package/dist/assets/MazCardSpotlight.B7lFD7Pi.css +1 -0
- package/dist/assets/MazCarousel.BLHpZIu5.css +1 -0
- package/dist/assets/MazCheckbox.Di88TJ3e.css +1 -0
- package/dist/assets/MazChecklist.Bu8wERn6.css +1 -0
- package/dist/assets/MazDatePicker.G6V7jjin.css +1 -0
- package/dist/assets/{MazDialog.DEmRfAv7.css → MazDialog.TS06kRcu.css} +1 -1
- package/dist/assets/MazDropdown.D90GEKDB.css +1 -0
- package/dist/assets/MazDropzone._2HwHowu.css +1 -0
- package/dist/assets/MazGallery.BTNB3D6k.css +1 -0
- package/dist/assets/MazInput.BvuxfP9k.css +1 -0
- package/dist/assets/MazInputCode.BYi64Mof.css +1 -0
- package/dist/assets/MazInputPhoneNumber.Baeyskod.css +1 -0
- package/dist/assets/MazInputTags.is2jSJk-.css +1 -0
- package/dist/assets/MazLazyImg.DO7a4PDm.css +1 -0
- package/dist/assets/MazLink.CFscNMFr.css +1 -0
- package/dist/assets/{MazPagination.C6cUh-p4.css → MazPagination.BUhf2Qr7.css} +1 -1
- package/dist/assets/MazPickerCalendar.e-eF8E7m.css +1 -0
- package/dist/assets/MazPickerCalendarMonth.DpijYq-O.css +1 -0
- package/dist/assets/{MazPickerCalendarSwitcher.uni8vJJv.css → MazPickerCalendarSwitcher.ByAVjy00.css} +1 -1
- package/dist/assets/{MazPickerContainer.k3DGjyHC.css → MazPickerContainer.DmHuaFqE.css} +1 -1
- package/dist/assets/{MazPickerHeader.ZYCJY5bX.css → MazPickerHeader.D7JXgA3q.css} +1 -1
- package/dist/assets/MazPickerMonthSwitcher.BJGGy53r.css +1 -0
- package/dist/assets/{MazPickerYearSwitcher.Cn-nS-Vv.css → MazPickerYearSwitcher.DPD1_dfz.css} +1 -1
- package/dist/assets/MazPopover.DIE65uVT.css +1 -0
- package/dist/assets/MazPullToRefresh.C0HGlupm.css +1 -0
- package/dist/assets/MazRadio.B0B3P1QS.css +1 -0
- package/dist/assets/MazRadioButtons.CfiHq8H9.css +1 -0
- package/dist/assets/MazReadingProgressBar.dzfwQFNg.css +1 -0
- package/dist/assets/MazSelect.DIwjMD31.css +1 -0
- package/dist/assets/{MazSelectCountry.CdNTQPhr.css → MazSelectCountry.B0tlbfgr.css} +1 -1
- package/dist/assets/MazSlider.WcnBC9zc.css +1 -0
- package/dist/assets/MazSpinner.CsiFJ1DS.css +1 -0
- package/dist/assets/MazStepper.C9R7g43I.css +1 -0
- package/dist/assets/MazSwitch.LCcK91L7.css +1 -0
- package/dist/assets/MazTable.Cq7FEz09.css +1 -0
- package/dist/assets/MazTableRow.C0Ko4yDk.css +1 -0
- package/dist/assets/{MazTabsBar.gcS2Fc-B.css → MazTabsBar.BRr1XiYu.css} +1 -1
- package/dist/assets/{MazTabsContentItem.CHfy19ZF.css → MazTabsContentItem.C84SDmj0.css} +1 -1
- package/dist/assets/MazTextarea.C9sZpRDZ.css +1 -0
- package/dist/assets/{PhoneInput.DBLH22G1.css → PhoneInput.DkOXlrI9.css} +1 -1
- package/dist/assets/{fullscreen-img.Bkuz1GOX.css → fullscreen-img.Br983fLC.css} +1 -1
- package/dist/assets/{toast.CC2VQab8.css → toast.BDNNJSjj.css} +1 -1
- package/dist/chunks/{MazDatePicker.De3Ltb2F.js → MazDatePicker.B1B6gUrC.js} +49 -37
- package/dist/chunks/{MazDialogConfirm.vue_vue_type_script_setup_true_lang.-K3NpiFL.js → MazDialogConfirm.vue_vue_type_script_setup_true_lang.DuEcluOw.js} +23 -13
- package/dist/chunks/{MazDropdown.vue_vue_type_style_index_0_lang.BES3jpuw.js → MazDropdown.vue_vue_type_style_index_0_lang.DULnKQ2W.js} +16 -10
- package/dist/chunks/{MazInputNumber.vue_vue_type_style_index_0_lang.B6DYpHfi.js → MazInputNumber.vue_vue_type_style_index_0_lang.B0D4Zzds.js} +2 -2
- package/dist/chunks/{MazInputPhoneNumber.DBncAmC5.js → MazInputPhoneNumber.CDy6n_Qj.js} +25 -17
- package/dist/chunks/{MazInputPrice.vue_vue_type_script_setup_true_lang.BA6TDX-T.js → MazInputPrice.vue_vue_type_script_setup_true_lang.3pKYuG8H.js} +18 -18
- package/dist/chunks/{MazPickerCalendar.DKXNI8O4.js → MazPickerCalendar.BSBQciuG.js} +8 -8
- package/dist/chunks/{MazPickerCalendarMonth.DKBqgrNp.js → MazPickerCalendarMonth.CFJHTFp5.js} +14 -14
- package/dist/chunks/{MazPickerCalendarSwitcher.CzIZol3Z.js → MazPickerCalendarSwitcher.DC21FpTy.js} +10 -10
- package/dist/chunks/{MazPickerContainer.Mrh-Q52I.js → MazPickerContainer.CRPzAbRt.js} +4 -6
- package/dist/chunks/{MazPickerHeader.Bm9vIrtB.js → MazPickerHeader.D7Tbm-yH.js} +14 -14
- package/dist/chunks/{MazPickerMonthSwitcher.BSD2GtY6.js → MazPickerMonthSwitcher.DzHOKbe4.js} +10 -10
- package/dist/chunks/{MazPickerTime.D0hilq5b.js → MazPickerTime.EZK1foEx.js} +1 -1
- package/dist/chunks/{MazPickerYearSwitcher.BIUYJMvj.js → MazPickerYearSwitcher.BcT8GENl.js} +4 -4
- package/dist/chunks/{MazSwitch.vue_vue_type_style_index_0_lang.CU43Y1ky.js → MazSwitch.vue_vue_type_style_index_0_lang.Dz7-dIc9.js} +1 -1
- package/dist/chunks/{MazTable.vue_vue_type_script_setup_true_lang.BcTw9Tyh.js → MazTable.vue_vue_type_script_setup_true_lang.Ct1Gtp2Q.js} +5 -5
- package/dist/chunks/{MazTabsContent.vue_vue_type_script_setup_true_lang.arGqYTL5.js → MazTabsContent.vue_vue_type_script_setup_true_lang.hIwO-24k.js} +2 -2
- package/dist/chunks/{PhoneInput.iFkRoIFk.js → PhoneInput.DukRZp5u.js} +20 -27
- package/dist/chunks/capitalize.CVQ1jDrh.js +6 -0
- package/dist/chunks/checkAvailability.UFZSC8-1.js +16 -0
- package/dist/chunks/debounce.DhXdop6X.js +11 -0
- package/dist/chunks/{dom-events.Bbe7wDQl.js → dom-events.H9KIOv83.js} +52 -52
- package/dist/chunks/{fullscreen-img.directive.Be383en8.js → fullscreen-img.directive.D9oQ3Gni.js} +4 -4
- package/dist/chunks/{isClient.WI4oSt66.js → isClient.8V3qjGdO.js} +2 -2
- package/dist/chunks/{mazUi.D6UdqpTO.js → mazUi.0b7z2u9g.js} +2 -2
- package/dist/chunks/{obsidian.Cy0R8RHy.js → obsidian.C6upWOVF.js} +2 -2
- package/dist/chunks/{ocean.pHrY5H_S.js → ocean.ehMlC0HV.js} +2 -2
- package/dist/chunks/pascalCase.BKTE3qqE.js +19 -0
- package/dist/chunks/{pristine.ylgbwjxO.js → pristine.DMG3eBuN.js} +6 -6
- package/dist/chunks/sleep.Ci7GE4BQ.js +6 -0
- package/dist/chunks/truthyFilter.DZvXmxeK.js +6 -0
- package/dist/chunks/types.D0Bp_UhS.js +6 -0
- package/dist/chunks/{useStringMatching.D5UvsCUS.js → useStringMatching.DzSigyZ7.js} +40 -14
- package/dist/chunks/{vClickOutside.DIOiluy0.js → vClickOutside.CJBKY5no.js} +6 -6
- package/dist/components/MazAccordion.vue.d.ts +36 -0
- package/dist/components/MazAnimatedCounter.js +5 -5
- package/dist/components/MazAnimatedCounter.vue.d.ts +59 -0
- package/dist/components/MazAnimatedElement.vue.d.ts +44 -0
- package/dist/components/MazAnimatedText.js +4 -4
- package/dist/components/MazAnimatedText.vue.d.ts +57 -0
- package/dist/components/MazAvatar.vue.d.ts +99 -0
- package/dist/components/MazBackdrop.js +70 -31
- package/dist/components/MazBackdrop.vue.d.ts +91 -0
- package/dist/components/MazBadge.js +5 -4
- package/dist/components/MazBadge.vue.d.ts +61 -0
- package/dist/components/MazBottomSheet.vue.d.ts +35 -0
- package/dist/components/MazBtn.js +6 -5
- package/dist/components/MazBtn.vue.d.ts +105 -0
- package/dist/components/MazCard.js +3 -3
- package/dist/components/MazCard.vue.d.ts +77 -0
- package/dist/components/MazCardSpotlight.js +2 -2
- package/dist/components/MazCardSpotlight.vue.d.ts +57 -0
- package/dist/components/MazCarousel.js +12 -9
- package/dist/components/MazCarousel.vue.d.ts +48 -0
- package/dist/components/MazChart.vue.d.ts +53 -0
- package/dist/components/MazCheckbox.js +2 -2
- package/dist/components/MazCheckbox.vue.d.ts +55 -0
- package/dist/components/MazChecklist.js +7 -7
- package/dist/components/MazChecklist.vue.d.ts +87 -0
- package/dist/components/MazCircularProgressBar.vue.d.ts +106 -0
- package/dist/components/MazDatePicker/MazPickerCalendar.vue.d.ts +27 -0
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +20 -0
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +125 -0
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +134 -0
- package/dist/components/MazDatePicker/MazPickerCalendarSwitcher.vue.d.ts +42 -0
- package/dist/components/MazDatePicker/MazPickerContainer.vue.d.ts +38 -0
- package/dist/components/MazDatePicker/MazPickerHeader.vue.d.ts +15 -0
- package/dist/components/MazDatePicker/MazPickerMonthSwitcher.vue.d.ts +44 -0
- package/dist/components/MazDatePicker/MazPickerShortcuts.vue.d.ts +16 -0
- package/dist/components/MazDatePicker/MazPickerTime.vue.d.ts +107 -0
- package/dist/components/MazDatePicker/MazPickerYearSwitcher.vue.d.ts +36 -0
- package/dist/components/MazDatePicker/types.d.ts +14 -0
- package/dist/components/MazDatePicker/utils.d.ts +61 -0
- package/dist/components/MazDatePicker.js +1 -1
- package/dist/components/MazDatePicker.vue.d.ts +547 -0
- package/dist/components/MazDialog.js +9 -16
- package/dist/components/MazDialog.vue.d.ts +247 -0
- package/dist/components/MazDialogConfirm/useMazDialogConfirm.d.ts +47 -0
- package/dist/components/MazDialogConfirm.js +2 -2
- package/dist/components/MazDialogConfirm.vue.d.ts +270 -0
- package/dist/components/MazDrawer.vue.d.ts +52 -0
- package/dist/components/MazDropdown.js +1 -1
- package/dist/components/MazDropdown.vue.d.ts +249 -0
- package/dist/components/MazDropzone.js +6 -6
- package/dist/components/MazDropzone.vue.d.ts +305 -0
- package/dist/components/MazExpandAnimation.vue.d.ts +44 -0
- package/dist/components/MazFullscreenLoader.vue.d.ts +26 -0
- package/dist/components/MazGallery.js +4 -4
- package/dist/components/MazGallery.vue.d.ts +85 -0
- package/dist/components/MazIcon.vue.d.ts +26 -0
- package/dist/components/MazInput.js +4 -4
- package/dist/components/MazInput.vue.d.ts +225 -0
- package/dist/components/MazInputCode.js +2 -2
- package/dist/components/MazInputCode.vue.d.ts +49 -0
- package/dist/components/MazInputNumber.js +1 -1
- package/dist/components/MazInputNumber.vue.d.ts +125 -0
- package/dist/components/MazInputPhoneNumber/PhoneInput.vue.d.ts +29 -0
- package/dist/components/MazInputPhoneNumber/useLibphonenumber.d.ts +26 -0
- package/dist/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +26 -0
- package/dist/components/MazInputPhoneNumber.js +1 -1
- package/dist/components/MazInputPhoneNumber.vue.d.ts +421 -0
- package/dist/components/MazInputPrice.js +1 -1
- package/dist/components/MazInputPrice.vue.d.ts +48 -0
- package/dist/components/MazInputTags.js +6 -6
- package/dist/components/MazInputTags.vue.d.ts +51 -0
- package/dist/components/MazLazyImg.js +2 -2
- package/dist/components/MazLazyImg.vue.d.ts +78 -0
- package/dist/components/MazLink.js +2 -2
- package/dist/components/MazLink.vue.d.ts +115 -0
- package/dist/components/MazLoadingBar.vue.d.ts +12 -0
- package/dist/components/MazPagination.js +3 -3
- package/dist/components/MazPagination.vue.d.ts +83 -0
- package/dist/components/MazPopover.js +98 -222
- package/dist/components/MazPopover.vue.d.ts +256 -0
- package/dist/components/MazPullToRefresh.js +7 -7
- package/dist/components/MazPullToRefresh.vue.d.ts +52 -0
- package/dist/components/MazRadio.js +2 -2
- package/dist/components/MazRadio.vue.d.ts +55 -0
- package/dist/components/MazRadioButtons.js +8 -7
- package/dist/components/MazRadioButtons.vue.d.ts +69 -0
- package/dist/components/MazReadingProgressBar.js +8 -8
- package/dist/components/MazReadingProgressBar.vue.d.ts +55 -0
- package/dist/components/MazSelect.js +17 -14
- package/dist/components/MazSelect.vue.d.ts +178 -0
- package/dist/components/MazSelectCountry.js +19 -18
- package/dist/components/MazSelectCountry.vue.d.ts +171 -0
- package/dist/components/MazSlider/utils.d.ts +15 -0
- package/dist/components/MazSlider.js +36 -36
- package/dist/components/MazSlider.vue.d.ts +31 -0
- package/dist/components/MazSpinner.js +3 -4
- package/dist/components/MazSpinner.vue.d.ts +15 -0
- package/dist/components/MazStepper.js +2 -2
- package/dist/components/MazStepper.vue.d.ts +60 -0
- package/dist/components/MazSwitch.js +1 -1
- package/dist/components/MazSwitch.vue.d.ts +69 -0
- package/dist/components/MazTable.js +3 -3
- package/dist/components/MazTable.vue.d.ts +324 -0
- package/dist/components/MazTableCell.js +1 -1
- package/dist/components/MazTableCell.vue.d.ts +17 -0
- package/dist/components/MazTableRow.js +6 -5
- package/dist/components/MazTableRow.vue.d.ts +23 -0
- package/dist/components/MazTableTitle.js +1 -1
- package/dist/components/MazTableTitle.vue.d.ts +17 -0
- package/dist/components/MazTabs.vue.d.ts +30 -0
- package/dist/components/MazTabsBar.js +4 -4
- package/dist/components/MazTabsBar.vue.d.ts +96 -0
- package/dist/components/MazTabsContent.js +1 -1
- package/dist/components/MazTabsContent.vue.d.ts +17 -0
- package/dist/components/MazTabsContentItem.js +6 -7
- package/dist/components/MazTabsContentItem.vue.d.ts +31 -0
- package/dist/components/MazTextarea.js +6 -6
- package/dist/components/MazTextarea.vue.d.ts +88 -0
- package/dist/components/constantes.d.ts +2 -0
- package/dist/components/index.d.ts +109 -0
- package/dist/components/index.js +8 -8
- package/dist/components/types.d.ts +4 -0
- package/dist/composables/index.d.ts +21 -0
- package/dist/composables/index.js +3 -1
- package/dist/composables/useAos.d.ts +2 -0
- package/dist/composables/useBreakpoints.d.ts +38 -0
- package/dist/composables/useDialog.d.ts +2 -0
- package/dist/composables/useDisplayNames.d.ts +101 -0
- package/dist/composables/useDisplayNames.js +20 -28
- package/dist/composables/useDropzone.d.ts +27 -0
- package/dist/composables/useDropzone.js +6 -6
- package/dist/composables/useFormField.d.ts +16 -0
- package/dist/composables/useFormField.js +3 -3
- package/dist/composables/useFormValidator/config.d.ts +7 -0
- package/dist/composables/useFormValidator/dom-events.d.ts +19 -0
- package/dist/composables/useFormValidator/state-management.d.ts +72 -0
- package/dist/composables/useFormValidator/types.d.ts +98 -0
- package/dist/composables/useFormValidator/validation.d.ts +37 -0
- package/dist/composables/useFormValidator.d.ts +23 -0
- package/dist/composables/useFormValidator.js +19 -3
- package/dist/composables/useFreezeValue.d.ts +5 -0
- package/dist/composables/useIdleTimeout.d.ts +5 -0
- package/dist/composables/useIdleTimeout.js +27 -27
- package/dist/composables/useInjectStrict.d.ts +2 -0
- package/dist/composables/useInstanceUniqId.d.ts +4 -0
- package/dist/composables/useInstanceUniqId.js +3 -2
- package/dist/composables/useMountComponent.d.ts +14 -0
- package/dist/composables/useReadingTime.d.ts +25 -0
- package/dist/composables/useStringMatching.d.ts +5 -0
- package/dist/composables/useStringMatching.js +1 -1
- package/dist/composables/useSwipe.d.ts +14 -0
- package/dist/composables/useSwipe.js +22 -22
- package/dist/composables/useTimer.d.ts +30 -0
- package/dist/composables/useToast.d.ts +22 -0
- package/dist/composables/useUserVisibility.d.ts +5 -0
- package/dist/composables/useUserVisibility.js +8 -8
- package/dist/composables/useWait.d.ts +2 -0
- package/dist/composables/useWindowSize.d.ts +32 -0
- package/dist/composables/useWindowSize.js +2 -2
- package/dist/css/main.css +1 -1
- package/dist/directives/index.d.ts +5 -0
- package/dist/directives/index.js +2 -2
- package/dist/directives/vClickOutside.d.ts +36 -0
- package/dist/directives/vClickOutside.js +1 -1
- package/dist/directives/vFullscreenImg/MazFullscreenImg.vue.d.ts +50 -0
- package/dist/directives/vFullscreenImg/fullscreen-img.directive.d.ts +5 -0
- package/dist/directives/vFullscreenImg/fullscreen-img.handler.d.ts +36 -0
- package/dist/directives/vFullscreenImg.d.ts +11 -0
- package/dist/directives/vFullscreenImg.js +1 -1
- package/dist/directives/vLazyImg/lazy-img.directive.d.ts +5 -0
- package/dist/directives/vLazyImg/lazy-img.handler.d.ts +38 -0
- package/dist/directives/vLazyImg/types.d.ts +29 -0
- package/dist/directives/vLazyImg.d.ts +12 -0
- package/dist/directives/vTooltip.d.ts +54 -0
- package/dist/directives/vTooltip.js +15 -23
- package/dist/directives/vZoomImg/style.d.ts +1 -0
- package/dist/directives/vZoomImg/svgs.d.ts +3 -0
- package/dist/directives/vZoomImg/zoom-img.directive.d.ts +8 -0
- package/dist/directives/vZoomImg/zoom-img.handler.d.ts +46 -0
- package/dist/directives/vZoomImg.d.ts +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/plugins/aos.d.ts +81 -0
- package/dist/plugins/aos.js +5 -5
- package/dist/plugins/dialog/DialogHandler.d.ts +16 -0
- package/dist/plugins/dialog.d.ts +26 -0
- package/dist/plugins/dialog.js +1 -1
- package/dist/plugins/index.d.ts +5 -0
- package/dist/plugins/maz-ui.d.ts +43 -0
- package/dist/plugins/maz-ui.js +245 -371
- package/dist/plugins/toast/MazToast.vue.d.ts +34 -0
- package/dist/plugins/toast/ToastHandler.d.ts +29 -0
- package/dist/plugins/toast/types.d.ts +104 -0
- package/dist/plugins/toast.d.ts +25 -0
- package/dist/plugins/toast.js +8 -6
- package/dist/plugins/wait.d.ts +33 -0
- package/dist/resolvers/MazComponentsResolver.d.ts +10 -0
- package/dist/resolvers/MazComponentsResolver.js +516 -10
- package/dist/resolvers/MazDirectivesResolver.d.ts +11 -0
- package/dist/resolvers/MazDirectivesResolver.js +2 -2
- package/dist/resolvers/MazModulesResolver.d.ts +11 -0
- package/dist/resolvers/MazModulesResolver.js +8 -5
- package/dist/resolvers/index.d.ts +3 -0
- package/dist/tailwindcss/index.d.ts +6 -0
- package/dist/tailwindcss/tailwind.config.d.ts +89 -0
- package/dist/tailwindcss/utils/colors.d.ts +7 -0
- package/dist/tailwindcss/variables/breakpoints.d.ts +15 -0
- package/dist/tailwindcss/variables/colors.d.ts +20 -0
- package/dist/tailwindcss/variables/design-tokens.d.ts +35 -0
- package/dist/tailwindcss/variables/utilities.d.ts +17 -0
- package/dist/tailwindcss/variables/z-indexes.d.ts +14 -0
- package/dist/types/components/MazAnimatedCounter.vue.d.ts +1 -1
- package/dist/types/components/MazBackdrop.vue.d.ts +26 -6
- package/dist/types/components/MazCard.vue.d.ts +1 -1
- package/dist/types/components/MazCarousel.vue.d.ts +8 -5
- package/dist/types/components/MazChecklist.vue.d.ts +5 -5
- package/dist/types/components/MazDatePicker/utils.d.ts +7 -6
- package/dist/types/components/MazDatePicker.vue.d.ts +37 -33
- package/dist/types/components/MazDialog.vue.d.ts +10 -19
- package/dist/types/components/MazDialogConfirm/useMazDialogConfirm.d.ts +8 -6
- package/dist/types/components/MazDialogConfirm.vue.d.ts +18 -12
- package/dist/types/components/MazDropdown.vue.d.ts +10 -3
- package/dist/types/components/MazInputNumber.vue.d.ts +4 -4
- package/dist/types/components/MazInputPhoneNumber/PhoneInput.vue.d.ts +1 -1
- package/dist/types/components/MazInputPhoneNumber/useLibphonenumber.d.ts +1 -1
- package/dist/types/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +2 -0
- package/dist/types/components/MazInputPhoneNumber.vue.d.ts +11 -12
- package/dist/types/components/MazInputPrice.vue.d.ts +3 -3
- package/dist/types/components/MazInputTags.vue.d.ts +1 -1
- package/dist/types/components/MazLink.vue.d.ts +1 -1
- package/dist/types/components/MazPopover.vue.d.ts +13 -8
- package/dist/types/components/MazRadioButtons.vue.d.ts +9 -9
- package/dist/types/components/MazReadingProgressBar.vue.d.ts +1 -1
- package/dist/types/components/MazSelect.vue.d.ts +13 -6
- package/dist/types/components/MazSelectCountry.vue.d.ts +9 -9
- package/dist/types/components/MazTable.vue.d.ts +5 -5
- package/dist/types/components/MazTableRow.vue.d.ts +2 -0
- package/dist/types/components/types.d.ts +1 -0
- package/dist/types/composables/index.d.ts +1 -0
- package/dist/types/composables/useDisplayNames.d.ts +60 -6
- package/dist/types/composables/useFormField.d.ts +16 -18
- package/dist/types/composables/useFormValidator/config.d.ts +2 -2
- package/dist/types/composables/useFormValidator/dom-events.d.ts +4 -4
- package/dist/types/composables/useFormValidator/state-management.d.ts +40 -22
- package/dist/types/composables/useFormValidator/types.d.ts +15 -15
- package/dist/types/composables/useFormValidator/validation.d.ts +10 -16
- package/dist/types/composables/useFormValidator.d.ts +2 -2
- package/dist/types/composables/useIdleTimeout.d.ts +1 -1
- package/dist/types/composables/useSwipe.d.ts +1 -1
- package/dist/types/composables/useUserVisibility.d.ts +1 -1
- package/dist/types/directives/vFullscreenImg/MazFullscreenImg.vue.d.ts +2 -2
- package/dist/types/directives/vZoomImg.d.ts +1 -1
- package/dist/types/plugins/maz-ui.d.ts +5 -5
- package/package.json +46 -36
- package/dist/assets/MazAnimatedText.DDqCxrFX.css +0 -1
- package/dist/assets/MazBackdrop.BnhcmjbP.css +0 -1
- package/dist/assets/MazBtn.DUBbj2mt.css +0 -1
- package/dist/assets/MazCard.C6nDaeIC.css +0 -1
- package/dist/assets/MazCardSpotlight.IbPp_y0j.css +0 -1
- package/dist/assets/MazCarousel.BaqN4hLP.css +0 -1
- package/dist/assets/MazCheckbox.CFqw9ybT.css +0 -1
- package/dist/assets/MazChecklist.BzF5KtZ3.css +0 -1
- package/dist/assets/MazDatePicker.8GyrtM-j.css +0 -1
- package/dist/assets/MazDropdown.C6vjLIeN.css +0 -1
- package/dist/assets/MazDropzone.-8lzCrxJ.css +0 -1
- package/dist/assets/MazGallery.DZ3TyggM.css +0 -1
- package/dist/assets/MazInput.BcUsJg7p.css +0 -1
- package/dist/assets/MazInputCode.CG6EJBEk.css +0 -1
- package/dist/assets/MazInputPhoneNumber.CrXS7DOY.css +0 -1
- package/dist/assets/MazInputTags.DzTGy9z3.css +0 -1
- package/dist/assets/MazLazyImg.NlPRN3Nk.css +0 -1
- package/dist/assets/MazLink.wJoKRsCP.css +0 -1
- package/dist/assets/MazPickerCalendar.CHpWIzhL.css +0 -1
- package/dist/assets/MazPickerCalendarMonth.Boe_8k4x.css +0 -1
- package/dist/assets/MazPickerMonthSwitcher.CszcpCcY.css +0 -1
- package/dist/assets/MazPopover.DzCAfuWw.css +0 -1
- package/dist/assets/MazPullToRefresh.BQ64UvzA.css +0 -1
- package/dist/assets/MazRadio.XGYnbTuB.css +0 -1
- package/dist/assets/MazRadioButtons.BA4rjgK9.css +0 -1
- package/dist/assets/MazReadingProgressBar.CwBVXE3g.css +0 -1
- package/dist/assets/MazSelect.Cljh3PVV.css +0 -1
- package/dist/assets/MazSlider.y4qpnD0N.css +0 -1
- package/dist/assets/MazSpinner.CP85N7RJ.css +0 -1
- package/dist/assets/MazStepper.DtWZmm-f.css +0 -1
- package/dist/assets/MazSwitch.Bxmh2iFj.css +0 -1
- package/dist/assets/MazTable.DMlQdImb.css +0 -1
- package/dist/assets/MazTableRow.B78Bd4Kv.css +0 -1
- package/dist/assets/MazTextarea.DME7BHS5.css +0 -1
- package/dist/chunks/capitalize.BF6CDS_4.js +0 -6
- package/dist/chunks/checkAvailability.aTpZidex.js +0 -16
- package/dist/chunks/de.B15Maq8Z.js +0 -82
- package/dist/chunks/debounce.Brzkn9pm.js +0 -11
- package/dist/chunks/en.Q_4-KljL.js +0 -157
- package/dist/chunks/es.BV1TlfTw.js +0 -82
- package/dist/chunks/fr.BVPG-7Dk.js +0 -82
- package/dist/chunks/it.Be9xhI4P.js +0 -82
- package/dist/chunks/ja.CWU7KYEA.js +0 -82
- package/dist/chunks/pt.CfaFSxVt.js +0 -82
- package/dist/chunks/sleep.BLRH1qZG.js +0 -6
- package/dist/chunks/truthyFilter.C2WOKUCG.js +0 -6
- package/dist/chunks/useTranslations.D5aoYwD7.js +0 -10
- package/dist/chunks/zh-CN.CCkuvk-E.js +0 -82
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {
|
|
7
|
+
MazTabsContentItem: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
|
+
tab: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
18
|
+
tab: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
23
|
+
MazTabsContentItem: HTMLDivElement;
|
|
24
|
+
}, any>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, onMounted, onBeforeUnmount, useSlots, createElementBlock, openBlock, normalizeStyle, unref, normalizeClass, createCommentVNode, withDirectives, renderSlot, createTextVNode, toDisplayString, createElementVNode, mergeProps, toHandlers, vModelText } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { i } from "../chunks/debounce.DhXdop6X.js";
|
|
3
3
|
import { useInstanceUniqId } from "../composables/useInstanceUniqId.js";
|
|
4
4
|
import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper.B--vMWp3.js";
|
|
5
|
-
import '../assets/MazTextarea.
|
|
5
|
+
import '../assets/MazTextarea.C9sZpRDZ.css';class o {
|
|
6
6
|
element;
|
|
7
|
-
constructor(
|
|
8
|
-
this.element =
|
|
7
|
+
constructor(e) {
|
|
8
|
+
this.element = e, this.onFocus = this.onFocus.bind(this), this.autogrow = this.autogrow.bind(this), this.onResize = i(this.onResize.bind(this), 200), this.connect();
|
|
9
9
|
}
|
|
10
10
|
connect() {
|
|
11
11
|
this.element.addEventListener("focus", this.onFocus), this.element.style.resize = "none", this.element.style.boxSizing = "border-box";
|
|
@@ -60,7 +60,7 @@ const _hoisted_1 = ["for"], _hoisted_2 = ["for"], _hoisted_3 = { key: 1 }, _hois
|
|
|
60
60
|
providedId: props.id
|
|
61
61
|
}), TextareaElement = ref(), isFocused = ref(!1), hasValue = computed(() => props.modelValue !== void 0 && props.modelValue !== "");
|
|
62
62
|
onMounted(() => {
|
|
63
|
-
TextareaElement.value && (textareaAutogrow = new
|
|
63
|
+
TextareaElement.value && (textareaAutogrow = new o(TextareaElement.value));
|
|
64
64
|
}), onBeforeUnmount(() => {
|
|
65
65
|
textareaAutogrow?.disconnect();
|
|
66
66
|
});
|
|
@@ -162,7 +162,7 @@ const _hoisted_1 = ["for"], _hoisted_2 = ["for"], _hoisted_3 = { key: 1 }, _hois
|
|
|
162
162
|
])) : createCommentVNode("", !0)
|
|
163
163
|
], 14, _hoisted_1));
|
|
164
164
|
}
|
|
165
|
-
}), MazTextarea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
165
|
+
}), MazTextarea = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c8fc6be7"]]);
|
|
166
166
|
export {
|
|
167
167
|
MazTextarea as default
|
|
168
168
|
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { MazColor } from './types';
|
|
3
|
+
export interface MazTextareaProps<T extends string | undefined | null> {
|
|
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
|
+
/** @model The value of the textarea */
|
|
9
|
+
modelValue?: T;
|
|
10
|
+
/** The id of the textarea */
|
|
11
|
+
id?: string;
|
|
12
|
+
/** The name of the textarea */
|
|
13
|
+
name?: string;
|
|
14
|
+
/** The label of the textarea */
|
|
15
|
+
label?: string;
|
|
16
|
+
/** The placeholder of the textarea */
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
/** If the textarea is required */
|
|
19
|
+
required?: boolean;
|
|
20
|
+
/** If the textarea is disabled */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/** If the textarea is readonly */
|
|
23
|
+
readonly?: boolean;
|
|
24
|
+
/** If the textarea has an error */
|
|
25
|
+
error?: boolean;
|
|
26
|
+
/** If the textarea has a success */
|
|
27
|
+
success?: boolean;
|
|
28
|
+
/** If the textarea has a warning */
|
|
29
|
+
warning?: boolean;
|
|
30
|
+
/** The hint of the textarea */
|
|
31
|
+
hint?: string;
|
|
32
|
+
/** The color of the textarea */
|
|
33
|
+
color?: MazColor;
|
|
34
|
+
/**
|
|
35
|
+
* Size radius of the component's border
|
|
36
|
+
* @values `'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full'`
|
|
37
|
+
*/
|
|
38
|
+
roundedSize?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
39
|
+
/**
|
|
40
|
+
* If the textarea has a padding
|
|
41
|
+
* @default true
|
|
42
|
+
*/
|
|
43
|
+
padding?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* If the textarea has a transparent background
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
transparent?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* If the textarea has no border
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
border?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* The alignment of the append slot
|
|
56
|
+
* @values `'start' | 'end' | 'center' | 'space-between' | 'space-around' | 'space-evenly'`
|
|
57
|
+
* @default 'end'
|
|
58
|
+
*/
|
|
59
|
+
appendJustify?: 'start' | 'end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
60
|
+
}
|
|
61
|
+
declare const _default: <T extends string | undefined | null>(__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<{
|
|
62
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
63
|
+
readonly onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
64
|
+
readonly onChange?: ((value: Event) => any) | undefined;
|
|
65
|
+
readonly onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
66
|
+
readonly onInput?: ((value?: T | undefined) => any) | undefined;
|
|
67
|
+
readonly "onUpdate:model-value"?: ((value?: T | undefined) => any) | undefined;
|
|
68
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onInput" | "onUpdate:model-value"> & MazTextareaProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
69
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
70
|
+
attrs: any;
|
|
71
|
+
slots: {
|
|
72
|
+
label?(_: {}): any;
|
|
73
|
+
append?(_: {}): any;
|
|
74
|
+
};
|
|
75
|
+
emit: {
|
|
76
|
+
(event: "update:model-value", value?: T): void;
|
|
77
|
+
(event: "input", value?: T): void;
|
|
78
|
+
(event: "focus", value: FocusEvent): void;
|
|
79
|
+
(event: "blur", value: FocusEvent): void;
|
|
80
|
+
(event: "change", value: Event): void;
|
|
81
|
+
};
|
|
82
|
+
}>) => import('vue').VNode & {
|
|
83
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
84
|
+
};
|
|
85
|
+
export default _default;
|
|
86
|
+
type __VLS_PrettifyLocal<T> = {
|
|
87
|
+
[K in keyof T]: T[K];
|
|
88
|
+
} & {};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export { default as MazAccordion } from './MazAccordion.vue';
|
|
2
|
+
export type { MazAccordionProps } from './MazAccordion.vue';
|
|
3
|
+
export { default as MazAnimatedCounter } from './MazAnimatedCounter.vue';
|
|
4
|
+
export type { MazAnimatedCounterProps } from './MazAnimatedCounter.vue';
|
|
5
|
+
export { default as MazAnimatedElement } from './MazAnimatedElement.vue';
|
|
6
|
+
export type { MazAnimatedElementProps } from './MazAnimatedElement.vue';
|
|
7
|
+
export { default as MazAnimatedText } from './MazAnimatedText.vue';
|
|
8
|
+
export type { MazAnimatedTextProps } from './MazAnimatedText.vue';
|
|
9
|
+
export { default as MazAvatar } from './MazAvatar.vue';
|
|
10
|
+
export type { MazAvatarProps } from './MazAvatar.vue';
|
|
11
|
+
export { default as MazBackdrop } from './MazBackdrop.vue';
|
|
12
|
+
export type { MazBackdropProps } from './MazBackdrop.vue';
|
|
13
|
+
export { default as MazBadge } from './MazBadge.vue';
|
|
14
|
+
export type { MazBadgeColor, MazBadgeProps, MazBadgeRoundedSize } from './MazBadge.vue';
|
|
15
|
+
export { default as MazBottomSheet } from './MazBottomSheet.vue';
|
|
16
|
+
export type { MazBottomSheetProps } from './MazBottomSheet.vue';
|
|
17
|
+
export { default as MazBtn } from './MazBtn.vue';
|
|
18
|
+
export type { MazBtnProps } from './MazBtn.vue';
|
|
19
|
+
export { default as MazCard } from './MazCard.vue';
|
|
20
|
+
export type { MazCardProps } from './MazCard.vue';
|
|
21
|
+
export { default as MazCardSpotlight } from './MazCardSpotlight.vue';
|
|
22
|
+
export type { MazCardSpotlightProps } from './MazCardSpotlight.vue';
|
|
23
|
+
export { default as MazCarousel } from './MazCarousel.vue';
|
|
24
|
+
export type { MazCarouselProps } from './MazCarousel.vue';
|
|
25
|
+
export { default as MazChart } from './MazChart.vue';
|
|
26
|
+
export type { MazChartData, MazChartDefaultDataPoint, MazChartPlugin, MazChartProps, MazChartType, MazChartUpdateMode } from './MazChart.vue';
|
|
27
|
+
export { default as MazCheckbox } from './MazCheckbox.vue';
|
|
28
|
+
export type { MazCheckboxProps, MazCheckboxValue } from './MazCheckbox.vue';
|
|
29
|
+
export { default as MazChecklist } from './MazChecklist.vue';
|
|
30
|
+
export type { MazChecklistItemOption, MazChecklistProps } from './MazChecklist.vue';
|
|
31
|
+
export { default as MazCircularProgressBar } from './MazCircularProgressBar.vue';
|
|
32
|
+
export type { MazCircularProgressBarProps } from './MazCircularProgressBar.vue';
|
|
33
|
+
export { default as MazDatePicker } from './MazDatePicker.vue';
|
|
34
|
+
export type { MazDatePickerPartialRangeValue, MazDatePickerProps, MazDatePickerRangeValue, MazDatePickerShortcut, MazDatePickerValue } from './MazDatePicker.vue';
|
|
35
|
+
export { default as MazDialog } from './MazDialog.vue';
|
|
36
|
+
export type { MazDialogProps } from './MazDialog.vue';
|
|
37
|
+
export { default as MazDialogConfirm, useMazDialogConfirm } from './MazDialogConfirm.vue';
|
|
38
|
+
export type { MazDialogConfirmButton, MazDialogConfirmData, MazDialogConfirmProps } from './MazDialogConfirm.vue';
|
|
39
|
+
export { default as MazDrawer } from './MazDrawer.vue';
|
|
40
|
+
export type { MazDrawerProps } from './MazDrawer.vue';
|
|
41
|
+
export { default as MazDropdown } from './MazDropdown.vue';
|
|
42
|
+
export type { MazDropdownMenuItem, MazDropdownProps } from './MazDropdown.vue';
|
|
43
|
+
export { default as MazDropzone } from './MazDropzone.vue';
|
|
44
|
+
export type { MazDropzoneErrorCode, MazDropzoneFileData, MazDropzoneProps } from './MazDropzone.vue';
|
|
45
|
+
export { default as MazExpandAnimation } from './MazExpandAnimation.vue';
|
|
46
|
+
export type { MazExpandAnimationProps } from './MazExpandAnimation.vue';
|
|
47
|
+
export { default as MazFullscreenLoader } from './MazFullscreenLoader.vue';
|
|
48
|
+
export type { MazFullscreenLoaderProps } from './MazFullscreenLoader.vue';
|
|
49
|
+
export { default as MazGallery } from './MazGallery.vue';
|
|
50
|
+
export type { MazGalleryImage, MazGalleryProps } from './MazGallery.vue';
|
|
51
|
+
export { default as MazIcon } from './MazIcon.vue';
|
|
52
|
+
export type { MazIconProps } from './MazIcon.vue';
|
|
53
|
+
export { default as MazInput } from './MazInput.vue';
|
|
54
|
+
export type { MazInputProps } from './MazInput.vue';
|
|
55
|
+
export { default as MazInputCode } from './MazInputCode.vue';
|
|
56
|
+
export type { MazInputCodeProps, MazInputCodeSize } from './MazInputCode.vue';
|
|
57
|
+
export { default as MazInputNumber } from './MazInputNumber.vue';
|
|
58
|
+
export type { MazInputNumberProps } from './MazInputNumber.vue';
|
|
59
|
+
export { default as MazInputPhoneNumber } from './MazInputPhoneNumber.vue';
|
|
60
|
+
export type { MazInputPhoneNumberProps } from './MazInputPhoneNumber.vue';
|
|
61
|
+
export { default as MazInputPrice } from './MazInputPrice.vue';
|
|
62
|
+
export type { MazInputPriceProps } from './MazInputPrice.vue';
|
|
63
|
+
export { default as MazInputTags } from './MazInputTags.vue';
|
|
64
|
+
export type { MazInputTagsProps } from './MazInputTags.vue';
|
|
65
|
+
export { default as MazLazyImg } from './MazLazyImg.vue';
|
|
66
|
+
export type { MazLazyImgProps } from './MazLazyImg.vue';
|
|
67
|
+
export { default as MazLink } from './MazLink.vue';
|
|
68
|
+
export type { MazLinkProps } from './MazLink.vue';
|
|
69
|
+
export { default as MazLoadingBar } from './MazLoadingBar.vue';
|
|
70
|
+
export type { MazLoadingBarProps } from './MazLoadingBar.vue';
|
|
71
|
+
export { default as MazPagination } from './MazPagination.vue';
|
|
72
|
+
export type { MazPaginationProps } from './MazPagination.vue';
|
|
73
|
+
export { default as MazPopover } from './MazPopover.vue';
|
|
74
|
+
export type { MazPopoverPosition, MazPopoverProps, MazPopoverRole, MazPopoverTrigger } from './MazPopover.vue';
|
|
75
|
+
export { default as MazPullToRefresh } from './MazPullToRefresh.vue';
|
|
76
|
+
export type { MazPullToRefreshProps } from './MazPullToRefresh.vue';
|
|
77
|
+
export { default as MazRadio } from './MazRadio.vue';
|
|
78
|
+
export type { MazRadioProps } from './MazRadio.vue';
|
|
79
|
+
export { default as MazRadioButtons } from './MazRadioButtons.vue';
|
|
80
|
+
export type { MazRadioButtonsOption, MazRadioButtonsProps } from './MazRadioButtons.vue';
|
|
81
|
+
export { default as MazReadingProgressBar } from './MazReadingProgressBar.vue';
|
|
82
|
+
export type { MazReadingProgressBarProps } from './MazReadingProgressBar.vue';
|
|
83
|
+
export { default as MazSelect } from './MazSelect.vue';
|
|
84
|
+
export type { MazSelectOption, MazSelectOptionWithOptGroup, MazSelectProps } from './MazSelect.vue';
|
|
85
|
+
export { default as MazSelectCountry } from './MazSelectCountry.vue';
|
|
86
|
+
export type { MazSelectCountryProps } from './MazSelectCountry.vue';
|
|
87
|
+
export { default as MazSlider } from './MazSlider.vue';
|
|
88
|
+
export type { MazSliderProps } from './MazSlider.vue';
|
|
89
|
+
export { default as MazSpinner } from './MazSpinner.vue';
|
|
90
|
+
export type { MazSpinnerProps } from './MazSpinner.vue';
|
|
91
|
+
export { default as MazStepper } from './MazStepper.vue';
|
|
92
|
+
export type { MazStepperProps, MazStepperStep } from './MazStepper.vue';
|
|
93
|
+
export { default as MazSwitch } from './MazSwitch.vue';
|
|
94
|
+
export type { MazSwitchProps } from './MazSwitch.vue';
|
|
95
|
+
export { default as MazTable } from './MazTable.vue';
|
|
96
|
+
export type { MazTableHeader, MazTableHeadersEnriched, MazTableProps, MazTableRow as MazTableTableRow } from './MazTable.vue';
|
|
97
|
+
export { default as MazTableCell } from './MazTableCell.vue';
|
|
98
|
+
export { default as MazTableRow } from './MazTableRow.vue';
|
|
99
|
+
export type { MazTableRowProps } from './MazTableRow.vue';
|
|
100
|
+
export { default as MazTableTitle } from './MazTableTitle.vue';
|
|
101
|
+
export { default as MazTabs } from './MazTabs.vue';
|
|
102
|
+
export type { MazTabsProps } from './MazTabs.vue';
|
|
103
|
+
export { default as MazTabsBar } from './MazTabsBar.vue';
|
|
104
|
+
export type { MazTabsBarItem, MazTabsBarProps } from './MazTabsBar.vue';
|
|
105
|
+
export { default as MazTabsContent } from './MazTabsContent.vue';
|
|
106
|
+
export { default as MazTabsContentItem } from './MazTabsContentItem.vue';
|
|
107
|
+
export { default as MazTextarea } from './MazTextarea.vue';
|
|
108
|
+
export type { MazTextareaProps } from './MazTextarea.vue';
|
|
109
|
+
export type { MazColor, MazSize } from './types';
|
package/dist/components/index.js
CHANGED
|
@@ -14,11 +14,11 @@ import { _ } from "../chunks/MazChart.vue_vue_type_script_setup_true_lang.JSYXGy
|
|
|
14
14
|
import { default as default14 } from "./MazCheckbox.js";
|
|
15
15
|
import { default as default15 } from "./MazChecklist.js";
|
|
16
16
|
import { default as default16 } from "./MazCircularProgressBar.js";
|
|
17
|
-
import { M } from "../chunks/MazDatePicker.
|
|
17
|
+
import { M } from "../chunks/MazDatePicker.B1B6gUrC.js";
|
|
18
18
|
import { default as default17 } from "./MazDialog.js";
|
|
19
|
-
import { _ as _2, u } from "../chunks/MazDialogConfirm.vue_vue_type_script_setup_true_lang
|
|
19
|
+
import { _ as _2, u } from "../chunks/MazDialogConfirm.vue_vue_type_script_setup_true_lang.DuEcluOw.js";
|
|
20
20
|
import { default as default18 } from "./MazDrawer.js";
|
|
21
|
-
import { _ as _3 } from "../chunks/MazDropdown.vue_vue_type_style_index_0_lang.
|
|
21
|
+
import { _ as _3 } from "../chunks/MazDropdown.vue_vue_type_style_index_0_lang.DULnKQ2W.js";
|
|
22
22
|
import { default as default19 } from "./MazDropzone.js";
|
|
23
23
|
import { default as default20 } from "./MazExpandAnimation.js";
|
|
24
24
|
import { default as default21 } from "./MazFullscreenLoader.js";
|
|
@@ -26,9 +26,9 @@ import { default as default22 } from "./MazGallery.js";
|
|
|
26
26
|
import { default as default23 } from "./MazIcon.js";
|
|
27
27
|
import { default as default24 } from "./MazInput.js";
|
|
28
28
|
import { default as default25 } from "./MazInputCode.js";
|
|
29
|
-
import { _ as _4 } from "../chunks/MazInputNumber.vue_vue_type_style_index_0_lang.
|
|
30
|
-
import { M as M2 } from "../chunks/MazInputPhoneNumber.
|
|
31
|
-
import { _ as _5 } from "../chunks/MazInputPrice.vue_vue_type_script_setup_true_lang.
|
|
29
|
+
import { _ as _4 } from "../chunks/MazInputNumber.vue_vue_type_style_index_0_lang.B0D4Zzds.js";
|
|
30
|
+
import { M as M2 } from "../chunks/MazInputPhoneNumber.CDy6n_Qj.js";
|
|
31
|
+
import { _ as _5 } from "../chunks/MazInputPrice.vue_vue_type_script_setup_true_lang.3pKYuG8H.js";
|
|
32
32
|
import { default as default26 } from "./MazInputTags.js";
|
|
33
33
|
import { default as default27 } from "./MazLazyImg.js";
|
|
34
34
|
import { default as default28 } from "./MazLink.js";
|
|
@@ -44,14 +44,14 @@ import { default as default37 } from "./MazSelectCountry.js";
|
|
|
44
44
|
import { default as default38 } from "./MazSlider.js";
|
|
45
45
|
import { default as default39 } from "./MazSpinner.js";
|
|
46
46
|
import { default as default40 } from "./MazStepper.js";
|
|
47
|
-
import { _ as _6 } from "../chunks/MazSwitch.vue_vue_type_style_index_0_lang.
|
|
47
|
+
import { _ as _6 } from "../chunks/MazSwitch.vue_vue_type_style_index_0_lang.Dz7-dIc9.js";
|
|
48
48
|
import { default as default41 } from "./MazTable.js";
|
|
49
49
|
import { default as default42 } from "./MazTableCell.js";
|
|
50
50
|
import { default as default43 } from "./MazTableRow.js";
|
|
51
51
|
import { default as default44 } from "./MazTableTitle.js";
|
|
52
52
|
import { _ as _7 } from "../chunks/MazTabs.vue_vue_type_script_setup_true_lang.CvFvUU0o.js";
|
|
53
53
|
import { default as default45 } from "./MazTabsBar.js";
|
|
54
|
-
import { _ as _8 } from "../chunks/MazTabsContent.vue_vue_type_script_setup_true_lang.
|
|
54
|
+
import { _ as _8 } from "../chunks/MazTabsContent.vue_vue_type_script_setup_true_lang.hIwO-24k.js";
|
|
55
55
|
import { default as default46 } from "./MazTabsContentItem.js";
|
|
56
56
|
import { default as default47 } from "./MazTextarea.js";
|
|
57
57
|
export {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { colors } from './constantes';
|
|
2
|
+
export type MazColor = (typeof colors)[number];
|
|
3
|
+
export type MazSize = 'mini' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
export declare function getColor(color: MazColor | 'background'): "primary" | "secondary" | "accent" | "info" | "success" | "warning" | "destructive" | "contrast" | "transparent" | "surface";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './useAos';
|
|
2
|
+
export * from './useBreakpoints';
|
|
3
|
+
export * from './useDialog';
|
|
4
|
+
export * from './useDisplayNames';
|
|
5
|
+
export * from './useDropzone';
|
|
6
|
+
export * from './useFormField';
|
|
7
|
+
export * from './useFormValidator';
|
|
8
|
+
export type { FieldsStates, FieldState, FormFieldOptions, FormSchema, FormValidatorOptions, InferOutputSchemaFormValidator, InferSchemaFormValidator } from './useFormValidator/types';
|
|
9
|
+
export * from './useFreezeValue';
|
|
10
|
+
export * from './useIdleTimeout';
|
|
11
|
+
export * from './useInjectStrict';
|
|
12
|
+
export * from './useInstanceUniqId';
|
|
13
|
+
export * from './useMountComponent';
|
|
14
|
+
export * from './useReadingTime';
|
|
15
|
+
export * from './useStringMatching';
|
|
16
|
+
export * from './useSwipe';
|
|
17
|
+
export * from './useTimer';
|
|
18
|
+
export * from './useToast';
|
|
19
|
+
export * from './useUserVisibility';
|
|
20
|
+
export * from './useWait';
|
|
21
|
+
export * from './useWindowSize';
|
|
@@ -2,6 +2,7 @@ import { useAos } from "./useAos.js";
|
|
|
2
2
|
import { useBreakpoints } from "./useBreakpoints.js";
|
|
3
3
|
import { useDialog } from "./useDialog.js";
|
|
4
4
|
import { useDisplayNames } from "./useDisplayNames.js";
|
|
5
|
+
import { useDropzone } from "./useDropzone.js";
|
|
5
6
|
import { useFormField } from "./useFormField.js";
|
|
6
7
|
import { useFormValidator } from "./useFormValidator.js";
|
|
7
8
|
import { useFreezeValue } from "./useFreezeValue.js";
|
|
@@ -10,7 +11,7 @@ import { useInjectStrict } from "./useInjectStrict.js";
|
|
|
10
11
|
import { useInstanceUniqId } from "./useInstanceUniqId.js";
|
|
11
12
|
import { useMountComponent } from "./useMountComponent.js";
|
|
12
13
|
import { useReadingTime } from "./useReadingTime.js";
|
|
13
|
-
import { u } from "../chunks/useStringMatching.
|
|
14
|
+
import { u } from "../chunks/useStringMatching.DzSigyZ7.js";
|
|
14
15
|
import { useSwipe } from "./useSwipe.js";
|
|
15
16
|
import { useTimer } from "./useTimer.js";
|
|
16
17
|
import { useToast } from "./useToast.js";
|
|
@@ -22,6 +23,7 @@ export {
|
|
|
22
23
|
useBreakpoints,
|
|
23
24
|
useDialog,
|
|
24
25
|
useDisplayNames,
|
|
26
|
+
useDropzone,
|
|
25
27
|
useFormField,
|
|
26
28
|
useFormValidator,
|
|
27
29
|
useFreezeValue,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { UseWindowSizeOptions } from './useWindowSize';
|
|
2
|
+
export interface UseBreakpointsOptions extends UseWindowSizeOptions {
|
|
3
|
+
initialWidth?: number;
|
|
4
|
+
initialHeight?: number;
|
|
5
|
+
/**
|
|
6
|
+
* Listen to window `orientationchange` event
|
|
7
|
+
*
|
|
8
|
+
* @default true
|
|
9
|
+
*/
|
|
10
|
+
listenOrientation?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Whether the scrollbar should be included in the width and height
|
|
13
|
+
* @default true
|
|
14
|
+
*/
|
|
15
|
+
includeScrollbar?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* List of breakpoints in format `{ [key: string]: string }` (e.g. `{ 'sm': '640px', 'md': '768px' }`)
|
|
18
|
+
*/
|
|
19
|
+
breakpoints: Record<string, string> | Record<string, number>;
|
|
20
|
+
/**
|
|
21
|
+
* Is the breakpoint when the screen is considered not medium (tablet - e.g. `md`)
|
|
22
|
+
* @default 'md'
|
|
23
|
+
*/
|
|
24
|
+
mediumBreakPoint?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Is the breakpoint when the screen is considered not medium (laptop - e.g. `lg`)
|
|
27
|
+
* @default 'lg'
|
|
28
|
+
*/
|
|
29
|
+
largeBreakPoint?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function useBreakpoints({ initialWidth, initialHeight, includeScrollbar, internalWindow, listenOrientation, breakpoints, mediumBreakPoint, largeBreakPoint, }: UseBreakpointsOptions): {
|
|
32
|
+
width: import('vue').Ref<number, number>;
|
|
33
|
+
numericBreakpoints: Record<string, number>;
|
|
34
|
+
isSmallScreen: import('vue').ComputedRef<boolean>;
|
|
35
|
+
isLargeScreen: import('vue').ComputedRef<boolean>;
|
|
36
|
+
isMediumScreen: import('vue').ComputedRef<boolean>;
|
|
37
|
+
breakpoints: Record<string, string> | Record<string, number>;
|
|
38
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { MaybeRefOrGetter } from 'vue';
|
|
2
|
+
declare const bcp47Codes: readonly ["af-ZA", "sq-AL", "ar-DZ", "ar-BH", "ar-EG", "ar-IQ", "ar-JO", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-OM", "ar-QA", "ar-SA", "ar-SY", "ar-TN", "ar-AE", "ar-YE", "hy-AM", "Cy-az-AZ", "Lt-az-AZ", "eu-ES", "be-BY", "bg-BG", "ca-ES", "zh-CN", "zh-HK", "zh-MO", "zh-SG", "zh-TW", "zh-CHS", "zh-CHT", "hr-HR", "cs-CZ", "da-DK", "div-MV", "nl-BE", "nl-NL", "en-AU", "en-BZ", "en-CA", "en-CB", "en-IE", "en-JM", "en-NZ", "en-PH", "en-ZA", "en-TT", "en-GB", "en-US", "en-ZW", "et-EE", "fo-FO", "fa-IR", "fi-FI", "fr-BE", "fr-CA", "fr-FR", "fr-LU", "fr-MC", "fr-CH", "gl-ES", "ka-GE", "de-AT", "de-DE", "de-LI", "de-LU", "de-CH", "el-GR", "gu-IN", "he-IL", "hi-IN", "hu-HU", "is-IS", "id-ID", "it-IT", "it-CH", "ja-JP", "kn-IN", "kk-KZ", "kok-IN", "ko-KR", "ky-KZ", "lv-LV", "lt-LT", "mk-MK", "ms-BN", "ms-MY", "mr-IN", "mn-MN", "nb-NO", "nn-NO", "pl-PL", "pt-BR", "pt-PT", "pa-IN", "ro-RO", "ru-RU", "sa-IN", "Cy-sr-SP", "Lt-sr-SP", "sk-SK", "sl-SI", "es-AR", "es-BO", "es-CL", "es-CO", "es-CR", "es-DO", "es-EC", "es-SV", "es-GT", "es-HN", "es-MX", "es-NI", "es-PA", "es-PY", "es-PE", "es-PR", "es-ES", "es-UY", "es-VE", "sw-KE", "sv-FI", "sv-SE", "syr-SY", "ta-IN", "tt-RU", "te-IN", "th-TH", "tr-TR", "uk-UA", "ur-PK", "Cy-uz-UZ", "Lt-uz-UZ", "vi-VN"];
|
|
3
|
+
declare const countryCodes: readonly ["AA", "AC", "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "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", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GT", "GU", "GW", "GY", "HK", "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", "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", "TA", "TC", "TD", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "XK", "YE", "YT", "ZA", "ZM", "ZW"];
|
|
4
|
+
declare const iso6391Codes: readonly ["aa", "ab", "ae", "af", "ak", "am", "an", "ar", "as", "av", "ay", "az", "ba", "be", "bg", "bh", "bi", "bm", "bn", "bo", "br", "bs", "ca", "ce", "ch", "co", "cr", "cs", "cu", "cv", "cy", "da", "de", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fj", "fo", "fr", "fy", "ga", "gd", "gl", "gn", "gu", "gv", "ha", "he", "hi", "ho", "hr", "ht", "hu", "hy", "hz", "ia", "id", "ie", "ig", "ii", "ik", "io", "is", "it", "iu", "ja", "jv", "ka", "kg", "ki", "kj", "kk", "kl", "km", "kn", "ko", "kr", "ks", "ku", "kv", "kw", "ky", "la", "lb", "lg", "li", "ln", "lo", "lt", "lu", "lv", "mg", "mh", "mi", "mk", "ml", "mn", "mr", "ms", "mt", "my", "na", "nb", "nd", "ne", "ng", "nl", "nn", "no", "nr", "nv", "ny", "oc", "oj", "om", "or", "os", "pa", "pi", "pl", "ps", "pt", "qu", "rm", "rn", "ro", "ru", "rw", "sa", "sc", "sd", "se", "sg", "si", "sk", "sl", "sm", "sn", "so", "sq", "sr", "ss", "st", "su", "sv", "sw", "ta", "te", "tg", "th", "ti", "tk", "tl", "tn", "to", "tr", "ts", "tt", "tw", "ty", "ug", "uk", "ur", "uz", "ve", "vi", "vo", "wa", "wo", "xh", "yi", "yo", "za", "zh", "zu"];
|
|
5
|
+
declare const displayNamesCodes: ("sm" | "lg" | "br" | "hr" | "li" | "th" | "tr" | "to" | "mi" | "mn" | "ms" | "tt" | "id" | "cy" | "fy" | "el" | "is" | "af-ZA" | "sq-AL" | "ar-DZ" | "ar-BH" | "ar-EG" | "ar-IQ" | "ar-JO" | "ar-KW" | "ar-LB" | "ar-LY" | "ar-MA" | "ar-OM" | "ar-QA" | "ar-SA" | "ar-SY" | "ar-TN" | "ar-AE" | "ar-YE" | "hy-AM" | "Cy-az-AZ" | "Lt-az-AZ" | "eu-ES" | "be-BY" | "bg-BG" | "ca-ES" | "zh-CN" | "zh-HK" | "zh-MO" | "zh-SG" | "zh-TW" | "zh-CHS" | "zh-CHT" | "hr-HR" | "cs-CZ" | "da-DK" | "div-MV" | "nl-BE" | "nl-NL" | "en-AU" | "en-BZ" | "en-CA" | "en-CB" | "en-IE" | "en-JM" | "en-NZ" | "en-PH" | "en-ZA" | "en-TT" | "en-GB" | "en-US" | "en-ZW" | "et-EE" | "fo-FO" | "fa-IR" | "fi-FI" | "fr-BE" | "fr-CA" | "fr-FR" | "fr-LU" | "fr-MC" | "fr-CH" | "gl-ES" | "ka-GE" | "de-AT" | "de-DE" | "de-LI" | "de-LU" | "de-CH" | "el-GR" | "gu-IN" | "he-IL" | "hi-IN" | "hu-HU" | "is-IS" | "id-ID" | "it-IT" | "it-CH" | "ja-JP" | "kn-IN" | "kk-KZ" | "kok-IN" | "ko-KR" | "ky-KZ" | "lv-LV" | "lt-LT" | "mk-MK" | "ms-BN" | "ms-MY" | "mr-IN" | "mn-MN" | "nb-NO" | "nn-NO" | "pl-PL" | "pt-BR" | "pt-PT" | "pa-IN" | "ro-RO" | "ru-RU" | "sa-IN" | "Cy-sr-SP" | "Lt-sr-SP" | "sk-SK" | "sl-SI" | "es-AR" | "es-BO" | "es-CL" | "es-CO" | "es-CR" | "es-DO" | "es-EC" | "es-SV" | "es-GT" | "es-HN" | "es-MX" | "es-NI" | "es-PA" | "es-PY" | "es-PE" | "es-PR" | "es-ES" | "es-UY" | "es-VE" | "sw-KE" | "sv-FI" | "sv-SE" | "syr-SY" | "ta-IN" | "tt-RU" | "te-IN" | "th-TH" | "tr-TR" | "uk-UA" | "ur-PK" | "Cy-uz-UZ" | "Lt-uz-UZ" | "vi-VN" | "AA" | "AC" | "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "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" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GT" | "GU" | "GW" | "GY" | "HK" | "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" | "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" | "TA" | "TC" | "TD" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "XK" | "YE" | "YT" | "ZA" | "ZM" | "ZW" | "aa" | "ab" | "ae" | "af" | "ak" | "am" | "an" | "ar" | "as" | "av" | "ay" | "az" | "ba" | "be" | "bg" | "bh" | "bi" | "bm" | "bn" | "bo" | "bs" | "ca" | "ce" | "ch" | "co" | "cr" | "cs" | "cu" | "cv" | "da" | "de" | "dv" | "dz" | "ee" | "en" | "eo" | "es" | "et" | "eu" | "fa" | "ff" | "fi" | "fj" | "fo" | "fr" | "ga" | "gd" | "gl" | "gn" | "gu" | "gv" | "ha" | "he" | "hi" | "ho" | "ht" | "hu" | "hy" | "hz" | "ia" | "ie" | "ig" | "ii" | "ik" | "io" | "it" | "iu" | "ja" | "jv" | "ka" | "kg" | "ki" | "kj" | "kk" | "kl" | "km" | "kn" | "ko" | "kr" | "ks" | "ku" | "kv" | "kw" | "ky" | "la" | "lb" | "ln" | "lo" | "lt" | "lu" | "lv" | "mg" | "mh" | "mk" | "ml" | "mr" | "mt" | "my" | "na" | "nb" | "nd" | "ne" | "ng" | "nl" | "nn" | "no" | "nr" | "nv" | "ny" | "oc" | "oj" | "om" | "or" | "os" | "pa" | "pi" | "pl" | "ps" | "pt" | "qu" | "rm" | "rn" | "ro" | "ru" | "rw" | "sa" | "sc" | "sd" | "se" | "sg" | "si" | "sk" | "sl" | "sn" | "so" | "sq" | "sr" | "ss" | "st" | "su" | "sv" | "sw" | "ta" | "te" | "tg" | "ti" | "tk" | "tl" | "tn" | "ts" | "tw" | "ty" | "ug" | "uk" | "ur" | "uz" | "ve" | "vi" | "vo" | "wa" | "wo" | "xh" | "yi" | "yo" | "za" | "zh" | "zu")[];
|
|
6
|
+
export type Bcp47Code = (typeof bcp47Codes)[number];
|
|
7
|
+
export type Iso6391Code = (typeof iso6391Codes)[number];
|
|
8
|
+
export type CountryCode = (typeof countryCodes)[number];
|
|
9
|
+
export type DisplayNameCode = (typeof displayNamesCodes)[number];
|
|
10
|
+
export type DisplayNamesOptions = Omit<Intl.DisplayNamesOptions, 'type'> & {
|
|
11
|
+
type?: 'region' | 'language';
|
|
12
|
+
};
|
|
13
|
+
interface DynamicDisplayNamesOptions {
|
|
14
|
+
/**
|
|
15
|
+
* The type of display names to use.
|
|
16
|
+
* @property 'region' | 'language'
|
|
17
|
+
* @default 'region'
|
|
18
|
+
*/
|
|
19
|
+
type?: MaybeRefOrGetter<DisplayNamesOptions['type']>;
|
|
20
|
+
/**
|
|
21
|
+
* The language display to use.
|
|
22
|
+
* @property 'standard' | 'narrow' | 'short'
|
|
23
|
+
* @default 'standard'
|
|
24
|
+
*/
|
|
25
|
+
languageDisplay?: MaybeRefOrGetter<DisplayNamesOptions['languageDisplay']>;
|
|
26
|
+
/**
|
|
27
|
+
* The fallback to use.
|
|
28
|
+
* @property 'code' | 'none'
|
|
29
|
+
* @default 'code'
|
|
30
|
+
*/
|
|
31
|
+
fallback?: MaybeRefOrGetter<DisplayNamesOptions['fallback']>;
|
|
32
|
+
/**
|
|
33
|
+
* The style to use.
|
|
34
|
+
* @property 'long' | 'short' | 'narrow'
|
|
35
|
+
* @default 'long'
|
|
36
|
+
*/
|
|
37
|
+
style?: MaybeRefOrGetter<DisplayNamesOptions['style']>;
|
|
38
|
+
/**
|
|
39
|
+
* The locale matcher to use.
|
|
40
|
+
* @property 'lookup' | 'best fit'
|
|
41
|
+
* @default 'lookup'
|
|
42
|
+
*/
|
|
43
|
+
localeMatcher?: MaybeRefOrGetter<DisplayNamesOptions['localeMatcher']>;
|
|
44
|
+
}
|
|
45
|
+
type GetDisplayNameOptions = MaybeRefOrGetter<{
|
|
46
|
+
locale?: MaybeRefOrGetter<DisplayNameCode | string>;
|
|
47
|
+
} & DynamicDisplayNamesOptions>;
|
|
48
|
+
export type CodesType = 'iso' | 'bcp' | 'country' | 'all';
|
|
49
|
+
declare function getDisplayName(code: MaybeRefOrGetter<DisplayNameCode | string>, options?: GetDisplayNameOptions): import('vue').ComputedRef<string | undefined>;
|
|
50
|
+
type GetAllDisplayNamesOptions<T extends CodesType> = MaybeRefOrGetter<{
|
|
51
|
+
/**
|
|
52
|
+
* The locale to use.
|
|
53
|
+
* @property string | DisplayNameCode
|
|
54
|
+
* @default undefined
|
|
55
|
+
*/
|
|
56
|
+
locale?: MaybeRefOrGetter<DisplayNameCode | string>;
|
|
57
|
+
/**
|
|
58
|
+
* The codes to include.
|
|
59
|
+
* @property string[] | undefined
|
|
60
|
+
* @default undefined
|
|
61
|
+
*/
|
|
62
|
+
onlyCodes?: MaybeRefOrGetter<DisplayNameCode[] | string[] | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* The codes to exclude.
|
|
65
|
+
* @property string[] | undefined
|
|
66
|
+
* @default undefined
|
|
67
|
+
*/
|
|
68
|
+
excludedCodes?: MaybeRefOrGetter<DisplayNameCode[] | string[] | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* The codes to prefer.
|
|
71
|
+
* @property string[] | undefined
|
|
72
|
+
* @default undefined
|
|
73
|
+
*/
|
|
74
|
+
preferredCodes?: MaybeRefOrGetter<DisplayNameCode[] | string[] | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* The type of codes to use.
|
|
77
|
+
* @property 'iso' | 'bcp' | 'country' | 'all'
|
|
78
|
+
* @default 'all'
|
|
79
|
+
*/
|
|
80
|
+
codesType?: MaybeRefOrGetter<T>;
|
|
81
|
+
/**
|
|
82
|
+
* Remove duplicates from the result.
|
|
83
|
+
* @property 'name' | 'code' | false
|
|
84
|
+
* @default 'name'
|
|
85
|
+
*/
|
|
86
|
+
removeDuplicates?: MaybeRefOrGetter<'name' | 'code' | false>;
|
|
87
|
+
/**
|
|
88
|
+
* Remove unmatched codes from the result.
|
|
89
|
+
* @default true
|
|
90
|
+
*/
|
|
91
|
+
removeUnmatched?: MaybeRefOrGetter<boolean>;
|
|
92
|
+
} & DynamicDisplayNamesOptions>;
|
|
93
|
+
type CodeResult<T extends CodesType> = T extends 'iso' ? Iso6391Code : T extends 'bcp' ? Bcp47Code : T extends 'country' ? CountryCode : DisplayNameCode | string;
|
|
94
|
+
export declare function useDisplayNames(mainLocale?: MaybeRefOrGetter<string | DisplayNameCode>): {
|
|
95
|
+
getDisplayName: (code: Parameters<typeof getDisplayName>[0], options?: GetDisplayNameOptions) => import('vue').ComputedRef<string | undefined>;
|
|
96
|
+
getAllDisplayNames: <T extends CodesType>(options?: GetAllDisplayNamesOptions<T>) => import('vue').ComputedRef<{
|
|
97
|
+
name: string;
|
|
98
|
+
code: CodeResult<T>;
|
|
99
|
+
}[] | undefined>;
|
|
100
|
+
};
|
|
101
|
+
export {};
|