maz-ui 4.0.0-beta.8 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/assets/{MazAnimatedCounter.DkZNPRLp.css → MazAnimatedCounter.LK7oyUrl.css} +1 -1
- package/dist/assets/MazAnimatedText.CHvAudRU.css +1 -0
- package/dist/assets/MazBackdrop.09bziTPM.css +1 -0
- package/dist/assets/{MazBadge.DN8tdE8_.css → MazBadge.ChI2DaTU.css} +1 -1
- package/dist/assets/MazBtn.BvC8ftmc.css +1 -0
- package/dist/assets/MazCard.Dv02b2P6.css +1 -0
- package/dist/assets/MazCardSpotlight.B7lFD7Pi.css +1 -0
- package/dist/assets/MazCarousel.BLHpZIu5.css +1 -0
- package/dist/assets/MazCheckbox.Di88TJ3e.css +1 -0
- package/dist/assets/MazChecklist.Bu8wERn6.css +1 -0
- package/dist/assets/MazDatePicker.G6V7jjin.css +1 -0
- package/dist/assets/{MazDialog.DEmRfAv7.css → MazDialog.TS06kRcu.css} +1 -1
- package/dist/assets/MazDropdown.D90GEKDB.css +1 -0
- package/dist/assets/MazDropzone._2HwHowu.css +1 -0
- package/dist/assets/MazGallery.BTNB3D6k.css +1 -0
- package/dist/assets/MazInput.BvuxfP9k.css +1 -0
- package/dist/assets/MazInputCode.BYi64Mof.css +1 -0
- package/dist/assets/MazInputPhoneNumber.Baeyskod.css +1 -0
- package/dist/assets/MazInputTags.is2jSJk-.css +1 -0
- package/dist/assets/MazLazyImg.DO7a4PDm.css +1 -0
- package/dist/assets/MazLink.CFscNMFr.css +1 -0
- package/dist/assets/{MazPagination.C6cUh-p4.css → MazPagination.BUhf2Qr7.css} +1 -1
- package/dist/assets/MazPickerCalendar.e-eF8E7m.css +1 -0
- package/dist/assets/MazPickerCalendarMonth.DpijYq-O.css +1 -0
- package/dist/assets/{MazPickerCalendarSwitcher.uni8vJJv.css → MazPickerCalendarSwitcher.ByAVjy00.css} +1 -1
- package/dist/assets/{MazPickerContainer.k3DGjyHC.css → MazPickerContainer.DmHuaFqE.css} +1 -1
- package/dist/assets/{MazPickerHeader.ZYCJY5bX.css → MazPickerHeader.D7JXgA3q.css} +1 -1
- package/dist/assets/MazPickerMonthSwitcher.BJGGy53r.css +1 -0
- package/dist/assets/{MazPickerYearSwitcher.Cn-nS-Vv.css → MazPickerYearSwitcher.DPD1_dfz.css} +1 -1
- package/dist/assets/MazPopover.DIE65uVT.css +1 -0
- package/dist/assets/MazPullToRefresh.C0HGlupm.css +1 -0
- package/dist/assets/MazRadio.B0B3P1QS.css +1 -0
- package/dist/assets/MazRadioButtons.CfiHq8H9.css +1 -0
- package/dist/assets/MazReadingProgressBar.dzfwQFNg.css +1 -0
- package/dist/assets/MazSelect.DIwjMD31.css +1 -0
- package/dist/assets/{MazSelectCountry.CdNTQPhr.css → MazSelectCountry.B0tlbfgr.css} +1 -1
- package/dist/assets/MazSlider.WcnBC9zc.css +1 -0
- package/dist/assets/MazSpinner.CsiFJ1DS.css +1 -0
- package/dist/assets/MazStepper.C9R7g43I.css +1 -0
- package/dist/assets/MazSwitch.LCcK91L7.css +1 -0
- package/dist/assets/MazTable.Cq7FEz09.css +1 -0
- package/dist/assets/MazTableRow.C0Ko4yDk.css +1 -0
- package/dist/assets/{MazTabsBar.gcS2Fc-B.css → MazTabsBar.BRr1XiYu.css} +1 -1
- package/dist/assets/{MazTabsContentItem.CHfy19ZF.css → MazTabsContentItem.C84SDmj0.css} +1 -1
- package/dist/assets/MazTextarea.C9sZpRDZ.css +1 -0
- package/dist/assets/{PhoneInput.DBLH22G1.css → PhoneInput.DkOXlrI9.css} +1 -1
- package/dist/assets/{fullscreen-img.Bkuz1GOX.css → fullscreen-img.Br983fLC.css} +1 -1
- package/dist/assets/{toast.CC2VQab8.css → toast.BDNNJSjj.css} +1 -1
- package/dist/chunks/{MazDatePicker.De3Ltb2F.js → MazDatePicker.B1B6gUrC.js} +49 -37
- package/dist/chunks/{MazDialogConfirm.vue_vue_type_script_setup_true_lang.-K3NpiFL.js → MazDialogConfirm.vue_vue_type_script_setup_true_lang.DuEcluOw.js} +23 -13
- package/dist/chunks/{MazDropdown.vue_vue_type_style_index_0_lang.BES3jpuw.js → MazDropdown.vue_vue_type_style_index_0_lang.DULnKQ2W.js} +16 -10
- package/dist/chunks/{MazInputNumber.vue_vue_type_style_index_0_lang.B6DYpHfi.js → MazInputNumber.vue_vue_type_style_index_0_lang.B0D4Zzds.js} +2 -2
- package/dist/chunks/{MazInputPhoneNumber.DBncAmC5.js → MazInputPhoneNumber.CDy6n_Qj.js} +25 -17
- package/dist/chunks/{MazInputPrice.vue_vue_type_script_setup_true_lang.BA6TDX-T.js → MazInputPrice.vue_vue_type_script_setup_true_lang.3pKYuG8H.js} +18 -18
- package/dist/chunks/{MazPickerCalendar.DKXNI8O4.js → MazPickerCalendar.BSBQciuG.js} +8 -8
- package/dist/chunks/{MazPickerCalendarMonth.DKBqgrNp.js → MazPickerCalendarMonth.CFJHTFp5.js} +14 -14
- package/dist/chunks/{MazPickerCalendarSwitcher.CzIZol3Z.js → MazPickerCalendarSwitcher.DC21FpTy.js} +10 -10
- package/dist/chunks/{MazPickerContainer.Mrh-Q52I.js → MazPickerContainer.CRPzAbRt.js} +4 -6
- package/dist/chunks/{MazPickerHeader.Bm9vIrtB.js → MazPickerHeader.D7Tbm-yH.js} +14 -14
- package/dist/chunks/{MazPickerMonthSwitcher.BSD2GtY6.js → MazPickerMonthSwitcher.DzHOKbe4.js} +10 -10
- package/dist/chunks/{MazPickerTime.D0hilq5b.js → MazPickerTime.EZK1foEx.js} +1 -1
- package/dist/chunks/{MazPickerYearSwitcher.BIUYJMvj.js → MazPickerYearSwitcher.BcT8GENl.js} +4 -4
- package/dist/chunks/{MazSwitch.vue_vue_type_style_index_0_lang.CU43Y1ky.js → MazSwitch.vue_vue_type_style_index_0_lang.Dz7-dIc9.js} +1 -1
- package/dist/chunks/{MazTable.vue_vue_type_script_setup_true_lang.BcTw9Tyh.js → MazTable.vue_vue_type_script_setup_true_lang.Ct1Gtp2Q.js} +5 -5
- package/dist/chunks/{MazTabsContent.vue_vue_type_script_setup_true_lang.arGqYTL5.js → MazTabsContent.vue_vue_type_script_setup_true_lang.hIwO-24k.js} +2 -2
- package/dist/chunks/{PhoneInput.iFkRoIFk.js → PhoneInput.DukRZp5u.js} +20 -27
- package/dist/chunks/capitalize.CVQ1jDrh.js +6 -0
- package/dist/chunks/checkAvailability.UFZSC8-1.js +16 -0
- package/dist/chunks/debounce.DhXdop6X.js +11 -0
- package/dist/chunks/{dom-events.Bbe7wDQl.js → dom-events.H9KIOv83.js} +52 -52
- package/dist/chunks/{fullscreen-img.directive.Be383en8.js → fullscreen-img.directive.D9oQ3Gni.js} +4 -4
- package/dist/chunks/{isClient.WI4oSt66.js → isClient.8V3qjGdO.js} +2 -2
- package/dist/chunks/{mazUi.D6UdqpTO.js → mazUi.0b7z2u9g.js} +2 -2
- package/dist/chunks/{obsidian.Cy0R8RHy.js → obsidian.C6upWOVF.js} +2 -2
- package/dist/chunks/{ocean.pHrY5H_S.js → ocean.ehMlC0HV.js} +2 -2
- package/dist/chunks/pascalCase.BKTE3qqE.js +19 -0
- package/dist/chunks/{pristine.ylgbwjxO.js → pristine.DMG3eBuN.js} +6 -6
- package/dist/chunks/sleep.Ci7GE4BQ.js +6 -0
- package/dist/chunks/truthyFilter.DZvXmxeK.js +6 -0
- package/dist/chunks/types.D0Bp_UhS.js +6 -0
- package/dist/chunks/{useStringMatching.D5UvsCUS.js → useStringMatching.DzSigyZ7.js} +40 -14
- package/dist/chunks/{vClickOutside.DIOiluy0.js → vClickOutside.CJBKY5no.js} +6 -6
- package/dist/components/MazAccordion.vue.d.ts +36 -0
- package/dist/components/MazAnimatedCounter.js +5 -5
- package/dist/components/MazAnimatedCounter.vue.d.ts +59 -0
- package/dist/components/MazAnimatedElement.vue.d.ts +44 -0
- package/dist/components/MazAnimatedText.js +4 -4
- package/dist/components/MazAnimatedText.vue.d.ts +57 -0
- package/dist/components/MazAvatar.vue.d.ts +99 -0
- package/dist/components/MazBackdrop.js +70 -31
- package/dist/components/MazBackdrop.vue.d.ts +91 -0
- package/dist/components/MazBadge.js +5 -4
- package/dist/components/MazBadge.vue.d.ts +61 -0
- package/dist/components/MazBottomSheet.vue.d.ts +35 -0
- package/dist/components/MazBtn.js +6 -5
- package/dist/components/MazBtn.vue.d.ts +105 -0
- package/dist/components/MazCard.js +3 -3
- package/dist/components/MazCard.vue.d.ts +77 -0
- package/dist/components/MazCardSpotlight.js +2 -2
- package/dist/components/MazCardSpotlight.vue.d.ts +57 -0
- package/dist/components/MazCarousel.js +12 -9
- package/dist/components/MazCarousel.vue.d.ts +48 -0
- package/dist/components/MazChart.vue.d.ts +53 -0
- package/dist/components/MazCheckbox.js +2 -2
- package/dist/components/MazCheckbox.vue.d.ts +55 -0
- package/dist/components/MazChecklist.js +7 -7
- package/dist/components/MazChecklist.vue.d.ts +87 -0
- package/dist/components/MazCircularProgressBar.vue.d.ts +106 -0
- package/dist/components/MazDatePicker/MazPickerCalendar.vue.d.ts +27 -0
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +20 -0
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +125 -0
- package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +134 -0
- package/dist/components/MazDatePicker/MazPickerCalendarSwitcher.vue.d.ts +42 -0
- package/dist/components/MazDatePicker/MazPickerContainer.vue.d.ts +38 -0
- package/dist/components/MazDatePicker/MazPickerHeader.vue.d.ts +15 -0
- package/dist/components/MazDatePicker/MazPickerMonthSwitcher.vue.d.ts +44 -0
- package/dist/components/MazDatePicker/MazPickerShortcuts.vue.d.ts +16 -0
- package/dist/components/MazDatePicker/MazPickerTime.vue.d.ts +107 -0
- package/dist/components/MazDatePicker/MazPickerYearSwitcher.vue.d.ts +36 -0
- package/dist/components/MazDatePicker/types.d.ts +14 -0
- package/dist/components/MazDatePicker/utils.d.ts +61 -0
- package/dist/components/MazDatePicker.js +1 -1
- package/dist/components/MazDatePicker.vue.d.ts +547 -0
- package/dist/components/MazDialog.js +9 -16
- package/dist/components/MazDialog.vue.d.ts +247 -0
- package/dist/components/MazDialogConfirm/useMazDialogConfirm.d.ts +47 -0
- package/dist/components/MazDialogConfirm.js +2 -2
- package/dist/components/MazDialogConfirm.vue.d.ts +270 -0
- package/dist/components/MazDrawer.vue.d.ts +52 -0
- package/dist/components/MazDropdown.js +1 -1
- package/dist/components/MazDropdown.vue.d.ts +249 -0
- package/dist/components/MazDropzone.js +6 -6
- package/dist/components/MazDropzone.vue.d.ts +305 -0
- package/dist/components/MazExpandAnimation.vue.d.ts +44 -0
- package/dist/components/MazFullscreenLoader.vue.d.ts +26 -0
- package/dist/components/MazGallery.js +4 -4
- package/dist/components/MazGallery.vue.d.ts +85 -0
- package/dist/components/MazIcon.vue.d.ts +26 -0
- package/dist/components/MazInput.js +4 -4
- package/dist/components/MazInput.vue.d.ts +225 -0
- package/dist/components/MazInputCode.js +2 -2
- package/dist/components/MazInputCode.vue.d.ts +49 -0
- package/dist/components/MazInputNumber.js +1 -1
- package/dist/components/MazInputNumber.vue.d.ts +125 -0
- package/dist/components/MazInputPhoneNumber/PhoneInput.vue.d.ts +29 -0
- package/dist/components/MazInputPhoneNumber/useLibphonenumber.d.ts +26 -0
- package/dist/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +26 -0
- package/dist/components/MazInputPhoneNumber.js +1 -1
- package/dist/components/MazInputPhoneNumber.vue.d.ts +421 -0
- package/dist/components/MazInputPrice.js +1 -1
- package/dist/components/MazInputPrice.vue.d.ts +48 -0
- package/dist/components/MazInputTags.js +6 -6
- package/dist/components/MazInputTags.vue.d.ts +51 -0
- package/dist/components/MazLazyImg.js +2 -2
- package/dist/components/MazLazyImg.vue.d.ts +78 -0
- package/dist/components/MazLink.js +2 -2
- package/dist/components/MazLink.vue.d.ts +115 -0
- package/dist/components/MazLoadingBar.vue.d.ts +12 -0
- package/dist/components/MazPagination.js +3 -3
- package/dist/components/MazPagination.vue.d.ts +83 -0
- package/dist/components/MazPopover.js +98 -222
- package/dist/components/MazPopover.vue.d.ts +256 -0
- package/dist/components/MazPullToRefresh.js +7 -7
- package/dist/components/MazPullToRefresh.vue.d.ts +52 -0
- package/dist/components/MazRadio.js +2 -2
- package/dist/components/MazRadio.vue.d.ts +55 -0
- package/dist/components/MazRadioButtons.js +8 -7
- package/dist/components/MazRadioButtons.vue.d.ts +69 -0
- package/dist/components/MazReadingProgressBar.js +8 -8
- package/dist/components/MazReadingProgressBar.vue.d.ts +55 -0
- package/dist/components/MazSelect.js +17 -14
- package/dist/components/MazSelect.vue.d.ts +178 -0
- package/dist/components/MazSelectCountry.js +19 -18
- package/dist/components/MazSelectCountry.vue.d.ts +171 -0
- package/dist/components/MazSlider/utils.d.ts +15 -0
- package/dist/components/MazSlider.js +36 -36
- package/dist/components/MazSlider.vue.d.ts +31 -0
- package/dist/components/MazSpinner.js +3 -4
- package/dist/components/MazSpinner.vue.d.ts +15 -0
- package/dist/components/MazStepper.js +2 -2
- package/dist/components/MazStepper.vue.d.ts +60 -0
- package/dist/components/MazSwitch.js +1 -1
- package/dist/components/MazSwitch.vue.d.ts +69 -0
- package/dist/components/MazTable.js +3 -3
- package/dist/components/MazTable.vue.d.ts +324 -0
- package/dist/components/MazTableCell.js +1 -1
- package/dist/components/MazTableCell.vue.d.ts +17 -0
- package/dist/components/MazTableRow.js +6 -5
- package/dist/components/MazTableRow.vue.d.ts +23 -0
- package/dist/components/MazTableTitle.js +1 -1
- package/dist/components/MazTableTitle.vue.d.ts +17 -0
- package/dist/components/MazTabs.vue.d.ts +30 -0
- package/dist/components/MazTabsBar.js +4 -4
- package/dist/components/MazTabsBar.vue.d.ts +96 -0
- package/dist/components/MazTabsContent.js +1 -1
- package/dist/components/MazTabsContent.vue.d.ts +17 -0
- package/dist/components/MazTabsContentItem.js +6 -7
- package/dist/components/MazTabsContentItem.vue.d.ts +31 -0
- package/dist/components/MazTextarea.js +6 -6
- package/dist/components/MazTextarea.vue.d.ts +88 -0
- package/dist/components/constantes.d.ts +2 -0
- package/dist/components/index.d.ts +109 -0
- package/dist/components/index.js +8 -8
- package/dist/components/types.d.ts +4 -0
- package/dist/composables/index.d.ts +21 -0
- package/dist/composables/index.js +3 -1
- package/dist/composables/useAos.d.ts +2 -0
- package/dist/composables/useBreakpoints.d.ts +38 -0
- package/dist/composables/useDialog.d.ts +2 -0
- package/dist/composables/useDisplayNames.d.ts +101 -0
- package/dist/composables/useDisplayNames.js +20 -28
- package/dist/composables/useDropzone.d.ts +27 -0
- package/dist/composables/useDropzone.js +6 -6
- package/dist/composables/useFormField.d.ts +16 -0
- package/dist/composables/useFormField.js +3 -3
- package/dist/composables/useFormValidator/config.d.ts +7 -0
- package/dist/composables/useFormValidator/dom-events.d.ts +19 -0
- package/dist/composables/useFormValidator/state-management.d.ts +72 -0
- package/dist/composables/useFormValidator/types.d.ts +98 -0
- package/dist/composables/useFormValidator/validation.d.ts +37 -0
- package/dist/composables/useFormValidator.d.ts +23 -0
- package/dist/composables/useFormValidator.js +19 -3
- package/dist/composables/useFreezeValue.d.ts +5 -0
- package/dist/composables/useIdleTimeout.d.ts +5 -0
- package/dist/composables/useIdleTimeout.js +27 -27
- package/dist/composables/useInjectStrict.d.ts +2 -0
- package/dist/composables/useInstanceUniqId.d.ts +4 -0
- package/dist/composables/useInstanceUniqId.js +3 -2
- package/dist/composables/useMountComponent.d.ts +14 -0
- package/dist/composables/useReadingTime.d.ts +25 -0
- package/dist/composables/useStringMatching.d.ts +5 -0
- package/dist/composables/useStringMatching.js +1 -1
- package/dist/composables/useSwipe.d.ts +14 -0
- package/dist/composables/useSwipe.js +22 -22
- package/dist/composables/useTimer.d.ts +30 -0
- package/dist/composables/useToast.d.ts +22 -0
- package/dist/composables/useUserVisibility.d.ts +5 -0
- package/dist/composables/useUserVisibility.js +8 -8
- package/dist/composables/useWait.d.ts +2 -0
- package/dist/composables/useWindowSize.d.ts +32 -0
- package/dist/composables/useWindowSize.js +2 -2
- package/dist/css/main.css +1 -1
- package/dist/directives/index.d.ts +5 -0
- package/dist/directives/index.js +2 -2
- package/dist/directives/vClickOutside.d.ts +36 -0
- package/dist/directives/vClickOutside.js +1 -1
- package/dist/directives/vFullscreenImg/MazFullscreenImg.vue.d.ts +50 -0
- package/dist/directives/vFullscreenImg/fullscreen-img.directive.d.ts +5 -0
- package/dist/directives/vFullscreenImg/fullscreen-img.handler.d.ts +36 -0
- package/dist/directives/vFullscreenImg.d.ts +11 -0
- package/dist/directives/vFullscreenImg.js +1 -1
- package/dist/directives/vLazyImg/lazy-img.directive.d.ts +5 -0
- package/dist/directives/vLazyImg/lazy-img.handler.d.ts +38 -0
- package/dist/directives/vLazyImg/types.d.ts +29 -0
- package/dist/directives/vLazyImg.d.ts +12 -0
- package/dist/directives/vTooltip.d.ts +54 -0
- package/dist/directives/vTooltip.js +15 -23
- package/dist/directives/vZoomImg/style.d.ts +1 -0
- package/dist/directives/vZoomImg/svgs.d.ts +3 -0
- package/dist/directives/vZoomImg/zoom-img.directive.d.ts +8 -0
- package/dist/directives/vZoomImg/zoom-img.handler.d.ts +46 -0
- package/dist/directives/vZoomImg.d.ts +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/plugins/aos.d.ts +81 -0
- package/dist/plugins/aos.js +5 -5
- package/dist/plugins/dialog/DialogHandler.d.ts +16 -0
- package/dist/plugins/dialog.d.ts +26 -0
- package/dist/plugins/dialog.js +1 -1
- package/dist/plugins/index.d.ts +5 -0
- package/dist/plugins/maz-ui.d.ts +43 -0
- package/dist/plugins/maz-ui.js +245 -371
- package/dist/plugins/toast/MazToast.vue.d.ts +34 -0
- package/dist/plugins/toast/ToastHandler.d.ts +29 -0
- package/dist/plugins/toast/types.d.ts +104 -0
- package/dist/plugins/toast.d.ts +25 -0
- package/dist/plugins/toast.js +8 -6
- package/dist/plugins/wait.d.ts +33 -0
- package/dist/resolvers/MazComponentsResolver.d.ts +10 -0
- package/dist/resolvers/MazComponentsResolver.js +516 -10
- package/dist/resolvers/MazDirectivesResolver.d.ts +11 -0
- package/dist/resolvers/MazDirectivesResolver.js +2 -2
- package/dist/resolvers/MazModulesResolver.d.ts +11 -0
- package/dist/resolvers/MazModulesResolver.js +8 -5
- package/dist/resolvers/index.d.ts +3 -0
- package/dist/tailwindcss/index.d.ts +6 -0
- package/dist/tailwindcss/tailwind.config.d.ts +89 -0
- package/dist/tailwindcss/utils/colors.d.ts +7 -0
- package/dist/tailwindcss/variables/breakpoints.d.ts +15 -0
- package/dist/tailwindcss/variables/colors.d.ts +20 -0
- package/dist/tailwindcss/variables/design-tokens.d.ts +35 -0
- package/dist/tailwindcss/variables/utilities.d.ts +17 -0
- package/dist/tailwindcss/variables/z-indexes.d.ts +14 -0
- package/dist/types/components/MazAnimatedCounter.vue.d.ts +1 -1
- package/dist/types/components/MazBackdrop.vue.d.ts +26 -6
- package/dist/types/components/MazCard.vue.d.ts +1 -1
- package/dist/types/components/MazCarousel.vue.d.ts +8 -5
- package/dist/types/components/MazChecklist.vue.d.ts +5 -5
- package/dist/types/components/MazDatePicker/utils.d.ts +7 -6
- package/dist/types/components/MazDatePicker.vue.d.ts +37 -33
- package/dist/types/components/MazDialog.vue.d.ts +10 -19
- package/dist/types/components/MazDialogConfirm/useMazDialogConfirm.d.ts +8 -6
- package/dist/types/components/MazDialogConfirm.vue.d.ts +18 -12
- package/dist/types/components/MazDropdown.vue.d.ts +10 -3
- package/dist/types/components/MazInputNumber.vue.d.ts +4 -4
- package/dist/types/components/MazInputPhoneNumber/PhoneInput.vue.d.ts +1 -1
- package/dist/types/components/MazInputPhoneNumber/useLibphonenumber.d.ts +1 -1
- package/dist/types/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +2 -0
- package/dist/types/components/MazInputPhoneNumber.vue.d.ts +11 -12
- package/dist/types/components/MazInputPrice.vue.d.ts +3 -3
- package/dist/types/components/MazInputTags.vue.d.ts +1 -1
- package/dist/types/components/MazLink.vue.d.ts +1 -1
- package/dist/types/components/MazPopover.vue.d.ts +13 -8
- package/dist/types/components/MazRadioButtons.vue.d.ts +9 -9
- package/dist/types/components/MazReadingProgressBar.vue.d.ts +1 -1
- package/dist/types/components/MazSelect.vue.d.ts +13 -6
- package/dist/types/components/MazSelectCountry.vue.d.ts +9 -9
- package/dist/types/components/MazTable.vue.d.ts +5 -5
- package/dist/types/components/MazTableRow.vue.d.ts +2 -0
- package/dist/types/components/types.d.ts +1 -0
- package/dist/types/composables/index.d.ts +1 -0
- package/dist/types/composables/useDisplayNames.d.ts +60 -6
- package/dist/types/composables/useFormField.d.ts +16 -18
- package/dist/types/composables/useFormValidator/config.d.ts +2 -2
- package/dist/types/composables/useFormValidator/dom-events.d.ts +4 -4
- package/dist/types/composables/useFormValidator/state-management.d.ts +40 -22
- package/dist/types/composables/useFormValidator/types.d.ts +15 -15
- package/dist/types/composables/useFormValidator/validation.d.ts +10 -16
- package/dist/types/composables/useFormValidator.d.ts +2 -2
- package/dist/types/composables/useIdleTimeout.d.ts +1 -1
- package/dist/types/composables/useSwipe.d.ts +1 -1
- package/dist/types/composables/useUserVisibility.d.ts +1 -1
- package/dist/types/directives/vFullscreenImg/MazFullscreenImg.vue.d.ts +2 -2
- package/dist/types/directives/vZoomImg.d.ts +1 -1
- package/dist/types/plugins/maz-ui.d.ts +5 -5
- package/package.json +46 -36
- package/dist/assets/MazAnimatedText.DDqCxrFX.css +0 -1
- package/dist/assets/MazBackdrop.BnhcmjbP.css +0 -1
- package/dist/assets/MazBtn.DUBbj2mt.css +0 -1
- package/dist/assets/MazCard.C6nDaeIC.css +0 -1
- package/dist/assets/MazCardSpotlight.IbPp_y0j.css +0 -1
- package/dist/assets/MazCarousel.BaqN4hLP.css +0 -1
- package/dist/assets/MazCheckbox.CFqw9ybT.css +0 -1
- package/dist/assets/MazChecklist.BzF5KtZ3.css +0 -1
- package/dist/assets/MazDatePicker.8GyrtM-j.css +0 -1
- package/dist/assets/MazDropdown.C6vjLIeN.css +0 -1
- package/dist/assets/MazDropzone.-8lzCrxJ.css +0 -1
- package/dist/assets/MazGallery.DZ3TyggM.css +0 -1
- package/dist/assets/MazInput.BcUsJg7p.css +0 -1
- package/dist/assets/MazInputCode.CG6EJBEk.css +0 -1
- package/dist/assets/MazInputPhoneNumber.CrXS7DOY.css +0 -1
- package/dist/assets/MazInputTags.DzTGy9z3.css +0 -1
- package/dist/assets/MazLazyImg.NlPRN3Nk.css +0 -1
- package/dist/assets/MazLink.wJoKRsCP.css +0 -1
- package/dist/assets/MazPickerCalendar.CHpWIzhL.css +0 -1
- package/dist/assets/MazPickerCalendarMonth.Boe_8k4x.css +0 -1
- package/dist/assets/MazPickerMonthSwitcher.CszcpCcY.css +0 -1
- package/dist/assets/MazPopover.DzCAfuWw.css +0 -1
- package/dist/assets/MazPullToRefresh.BQ64UvzA.css +0 -1
- package/dist/assets/MazRadio.XGYnbTuB.css +0 -1
- package/dist/assets/MazRadioButtons.BA4rjgK9.css +0 -1
- package/dist/assets/MazReadingProgressBar.CwBVXE3g.css +0 -1
- package/dist/assets/MazSelect.Cljh3PVV.css +0 -1
- package/dist/assets/MazSlider.y4qpnD0N.css +0 -1
- package/dist/assets/MazSpinner.CP85N7RJ.css +0 -1
- package/dist/assets/MazStepper.DtWZmm-f.css +0 -1
- package/dist/assets/MazSwitch.Bxmh2iFj.css +0 -1
- package/dist/assets/MazTable.DMlQdImb.css +0 -1
- package/dist/assets/MazTableRow.B78Bd4Kv.css +0 -1
- package/dist/assets/MazTextarea.DME7BHS5.css +0 -1
- package/dist/chunks/capitalize.BF6CDS_4.js +0 -6
- package/dist/chunks/checkAvailability.aTpZidex.js +0 -16
- package/dist/chunks/de.B15Maq8Z.js +0 -82
- package/dist/chunks/debounce.Brzkn9pm.js +0 -11
- package/dist/chunks/en.Q_4-KljL.js +0 -157
- package/dist/chunks/es.BV1TlfTw.js +0 -82
- package/dist/chunks/fr.BVPG-7Dk.js +0 -82
- package/dist/chunks/it.Be9xhI4P.js +0 -82
- package/dist/chunks/ja.CWU7KYEA.js +0 -82
- package/dist/chunks/pt.CfaFSxVt.js +0 -82
- package/dist/chunks/sleep.BLRH1qZG.js +0 -6
- package/dist/chunks/truthyFilter.C2WOKUCG.js +0 -6
- package/dist/chunks/useTranslations.D5aoYwD7.js +0 -10
- package/dist/chunks/zh-CN.CCkuvk-E.js +0 -82
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MazUiTranslationsNestedSchema } from '@maz-ui/translations';
|
|
2
2
|
import { CountryCallingCode, CountryCode, NationalNumber, NumberType } from 'libphonenumber-js';
|
|
3
3
|
import { HTMLAttributes } from 'vue';
|
|
4
4
|
import { MazPopoverProps } from './MazPopover.vue';
|
|
@@ -82,8 +82,8 @@ export interface MazInputPhoneNumberProps {
|
|
|
82
82
|
onlyCountries?: CountryCode[];
|
|
83
83
|
/**
|
|
84
84
|
* Locale strings of the component
|
|
85
|
-
* The default values are the translations of the
|
|
86
|
-
* @type {Partial<
|
|
85
|
+
* The default values are the translations of the MazUiTranslations plugin
|
|
86
|
+
* @type {Partial<MazUiTranslationsNestedSchema['inputPhoneNumber']>}
|
|
87
87
|
* @default {
|
|
88
88
|
* countrySelect: {
|
|
89
89
|
* error: 'Choose country',
|
|
@@ -96,7 +96,7 @@ export interface MazInputPhoneNumberProps {
|
|
|
96
96
|
* },
|
|
97
97
|
* }
|
|
98
98
|
*/
|
|
99
|
-
translations?: Partial<
|
|
99
|
+
translations?: Partial<MazUiTranslationsNestedSchema['inputPhoneNumber']>;
|
|
100
100
|
/**
|
|
101
101
|
* Position where the list of countries will be opened
|
|
102
102
|
* @type {MazPopoverProps['position']}
|
|
@@ -171,12 +171,11 @@ export interface MazInputPhoneNumberProps {
|
|
|
171
171
|
customCountriesList?: Record<CountryCode, string>;
|
|
172
172
|
/**
|
|
173
173
|
* Disabled auto-format when phone is valid
|
|
174
|
-
* @default
|
|
174
|
+
* @default 'blur'
|
|
175
175
|
*/
|
|
176
|
-
autoFormat?:
|
|
176
|
+
autoFormat?: 'blur' | 'typing' | 'disabled' | false;
|
|
177
177
|
/**
|
|
178
178
|
* Locale of country list
|
|
179
|
-
* @type {string}
|
|
180
179
|
* @example "fr-FR"
|
|
181
180
|
*/
|
|
182
181
|
countryLocale?: string;
|
|
@@ -298,7 +297,7 @@ declare function __VLS_template(): {
|
|
|
298
297
|
};
|
|
299
298
|
example: boolean;
|
|
300
299
|
hasRadius: boolean;
|
|
301
|
-
autoFormat:
|
|
300
|
+
autoFormat: "blur" | "typing" | "disabled" | false;
|
|
302
301
|
}> & Readonly<{
|
|
303
302
|
"onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
|
|
304
303
|
}>, {
|
|
@@ -324,7 +323,7 @@ declare function __VLS_template(): {
|
|
|
324
323
|
};
|
|
325
324
|
example: boolean;
|
|
326
325
|
hasRadius: boolean;
|
|
327
|
-
autoFormat:
|
|
326
|
+
autoFormat: "blur" | "typing" | "disabled" | false;
|
|
328
327
|
}> & Readonly<{
|
|
329
328
|
"onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
|
|
330
329
|
}>, {
|
|
@@ -356,7 +355,7 @@ declare const __VLS_component: import('vue').DefineComponent<MazInputPhoneNumber
|
|
|
356
355
|
searchThreshold: number;
|
|
357
356
|
hideFlags: boolean;
|
|
358
357
|
showCodeInList: boolean;
|
|
359
|
-
autoFormat:
|
|
358
|
+
autoFormat: "blur" | "typing" | "disabled" | false;
|
|
360
359
|
hideCountrySelect: boolean;
|
|
361
360
|
customCountriesList: Record<CountryCode, string>;
|
|
362
361
|
countryLocale: string;
|
|
@@ -380,7 +379,7 @@ declare const __VLS_component: import('vue').DefineComponent<MazInputPhoneNumber
|
|
|
380
379
|
};
|
|
381
380
|
example: boolean;
|
|
382
381
|
hasRadius: boolean;
|
|
383
|
-
autoFormat:
|
|
382
|
+
autoFormat: "blur" | "typing" | "disabled" | false;
|
|
384
383
|
}> & Readonly<{
|
|
385
384
|
"onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
|
|
386
385
|
}>, {
|
|
@@ -406,7 +405,7 @@ declare const __VLS_component: import('vue').DefineComponent<MazInputPhoneNumber
|
|
|
406
405
|
};
|
|
407
406
|
example: boolean;
|
|
408
407
|
hasRadius: boolean;
|
|
409
|
-
autoFormat:
|
|
408
|
+
autoFormat: "blur" | "typing" | "disabled" | false;
|
|
410
409
|
}> & Readonly<{
|
|
411
410
|
"onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
|
|
412
411
|
}>, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FilterCurrencyOptions } from '@maz-ui/utils/
|
|
1
|
+
import { FilterCurrencyOptions } from '@maz-ui/utils/helpers/formatCurrency';
|
|
2
2
|
export interface MazInputPriceProps {
|
|
3
3
|
/** @model The value of the input */
|
|
4
4
|
modelValue?: number;
|
|
@@ -38,11 +38,11 @@ declare const _default: import('vue').DefineComponent<MazInputPriceProps, {}, {}
|
|
|
38
38
|
"onUpdate:model-value"?: ((value: number | undefined) => any) | undefined;
|
|
39
39
|
onFormatted?: ((value: string | undefined) => any) | undefined;
|
|
40
40
|
}>, {
|
|
41
|
+
max: number;
|
|
42
|
+
min: number;
|
|
41
43
|
currency: string;
|
|
42
44
|
locale: string;
|
|
43
45
|
modelValue: number;
|
|
44
|
-
min: number;
|
|
45
|
-
max: number;
|
|
46
46
|
noIcon: boolean;
|
|
47
47
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
48
48
|
export default _default;
|
|
@@ -44,8 +44,8 @@ declare const _default: import('vue').DefineComponent<MazInputTagsProps, {}, {},
|
|
|
44
44
|
class: HTMLAttributes["class"];
|
|
45
45
|
color: MazColor;
|
|
46
46
|
disabled: boolean;
|
|
47
|
-
modelValue: (string | number)[];
|
|
48
47
|
placeholder: string;
|
|
48
|
+
modelValue: (string | number)[];
|
|
49
49
|
addTagsOnBlur: boolean;
|
|
50
50
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
51
51
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconComponent } from '@maz-ui/icons';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
2
3
|
import { RouteLocationRaw } from 'vue-router';
|
|
3
4
|
import { MazColor } from './types';
|
|
4
|
-
import { HTMLAttributes } from 'vue';
|
|
5
5
|
export interface MazLinkProps {
|
|
6
6
|
/**
|
|
7
7
|
* The class attribute of the link
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { Placement } from '@floating-ui/vue';
|
|
1
2
|
import { HTMLAttributes } from 'vue';
|
|
2
3
|
import { MazColor } from './types';
|
|
3
4
|
type __VLS_Props = MazPopoverProps;
|
|
4
|
-
export type MazPopoverPosition =
|
|
5
|
+
export type MazPopoverPosition = Placement | 'auto';
|
|
6
|
+
export type MazPopoverPreferPosition = Placement;
|
|
7
|
+
export type MazPopoverFallbackPosition = Placement;
|
|
5
8
|
export type MazPopoverTrigger = 'click' | 'hover' | 'manual' | 'adaptive';
|
|
6
9
|
export type MazPopoverRole = 'dialog' | 'tooltip' | 'menu';
|
|
7
10
|
export interface MazPopoverProps {
|
|
@@ -25,14 +28,14 @@ export interface MazPopoverProps {
|
|
|
25
28
|
* @default 'bottom-start'
|
|
26
29
|
* @description Preferred position of the popover relative to trigger
|
|
27
30
|
*/
|
|
28
|
-
preferPosition?:
|
|
31
|
+
preferPosition?: MazPopoverPreferPosition;
|
|
29
32
|
/**
|
|
30
33
|
* Fallback position of the popover relative to trigger when prefer position is not visible
|
|
31
34
|
* @values auto, top, bottom, left, right, top-start, top-end, bottom-start, bottom-end, left-start, left-end, right-start, right-end
|
|
32
35
|
* @default auto
|
|
33
36
|
* @description Fallback position of the popover relative to trigger
|
|
34
37
|
*/
|
|
35
|
-
fallbackPosition?:
|
|
38
|
+
fallbackPosition?: MazPopoverFallbackPosition;
|
|
36
39
|
/**
|
|
37
40
|
* How the popover is triggered
|
|
38
41
|
* @values click, hover, manual, adaptive
|
|
@@ -80,9 +83,9 @@ export interface MazPopoverProps {
|
|
|
80
83
|
hoverDelay?: number;
|
|
81
84
|
/**
|
|
82
85
|
* CSS transition name for animations
|
|
83
|
-
* @default
|
|
86
|
+
* @default popover
|
|
84
87
|
*/
|
|
85
|
-
transition?: string;
|
|
88
|
+
transition?: 'scale-pop' | 'scale-fade' | string;
|
|
86
89
|
/**
|
|
87
90
|
* Teleport target selector
|
|
88
91
|
* @default body
|
|
@@ -164,12 +167,11 @@ export interface MazPopoverProps {
|
|
|
164
167
|
*/
|
|
165
168
|
positionReference?: string | HTMLElement;
|
|
166
169
|
}
|
|
167
|
-
declare function updatePosition(): void;
|
|
168
170
|
declare function open(): void;
|
|
169
171
|
declare function close(): void;
|
|
170
172
|
declare function toggle(): void;
|
|
171
173
|
type __VLS_PublicProps = {
|
|
172
|
-
|
|
174
|
+
modelValue?: boolean;
|
|
173
175
|
} & __VLS_Props;
|
|
174
176
|
declare function __VLS_template(): {
|
|
175
177
|
attrs: Partial<{}>;
|
|
@@ -179,6 +181,7 @@ declare function __VLS_template(): {
|
|
|
179
181
|
close: typeof close;
|
|
180
182
|
toggle: typeof toggle;
|
|
181
183
|
isOpen: boolean;
|
|
184
|
+
trigger: "click" | "hover" | "manual";
|
|
182
185
|
}): any;
|
|
183
186
|
default?(_: {
|
|
184
187
|
open: typeof open;
|
|
@@ -225,19 +228,21 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
225
228
|
* @description Manually recalculate and update the popover position
|
|
226
229
|
* @usage `mazPopoverInstance.value?.updatePosition()`
|
|
227
230
|
*/
|
|
228
|
-
updatePosition:
|
|
231
|
+
updatePosition: () => void;
|
|
229
232
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
230
233
|
close: () => any;
|
|
231
234
|
toggle: (value: boolean) => any;
|
|
232
235
|
open: () => any;
|
|
233
236
|
"update:model-value": (value: boolean) => any;
|
|
234
237
|
"update:modelValue": (value: boolean) => any;
|
|
238
|
+
"after-close-animation": () => any;
|
|
235
239
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
236
240
|
onClose?: (() => any) | undefined;
|
|
237
241
|
onToggle?: ((value: boolean) => any) | undefined;
|
|
238
242
|
onOpen?: (() => any) | undefined;
|
|
239
243
|
"onUpdate:model-value"?: ((value: boolean) => any) | undefined;
|
|
240
244
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
245
|
+
"onAfter-close-animation"?: (() => any) | undefined;
|
|
241
246
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
242
247
|
trigger: HTMLDivElement;
|
|
243
248
|
panel: HTMLDivElement;
|
|
@@ -10,15 +10,15 @@ export type MazRadioButtonsOption<T = string | number | boolean> = {
|
|
|
10
10
|
/** The style to apply to the option */
|
|
11
11
|
style?: HTMLAttributes['style'];
|
|
12
12
|
} & Record<string, unknown>;
|
|
13
|
-
export interface MazRadioButtonsProps<T = string | number | boolean> {
|
|
13
|
+
export interface MazRadioButtonsProps<T = string | number | boolean, Option extends MazRadioButtonsOption<T> = MazRadioButtonsOption<T>> {
|
|
14
14
|
/** @model The value of the selected option */
|
|
15
15
|
modelValue?: T;
|
|
16
16
|
/** The options to display */
|
|
17
|
-
options:
|
|
17
|
+
options: Option[];
|
|
18
18
|
/** The name of the radio group */
|
|
19
19
|
name?: string;
|
|
20
20
|
/** The color of the selected radio buttons */
|
|
21
|
-
color?: MazColor;
|
|
21
|
+
color?: MazColor | 'background';
|
|
22
22
|
/** Add elevation to the radio buttons */
|
|
23
23
|
elevation?: boolean;
|
|
24
24
|
/**
|
|
@@ -44,22 +44,22 @@ export interface MazRadioButtonsProps<T = string | number | boolean> {
|
|
|
44
44
|
/** The hint text to display below the input. */
|
|
45
45
|
hint?: string;
|
|
46
46
|
}
|
|
47
|
-
declare const _default: <T extends string | number | boolean
|
|
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
48
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
49
49
|
readonly onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
50
|
-
readonly onChange?: ((value:
|
|
50
|
+
readonly onChange?: ((value: Option["value"]) => any) | undefined;
|
|
51
51
|
readonly onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
52
|
-
readonly "onUpdate:model-value"?: ((value:
|
|
53
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:model-value"> & MazRadioButtonsProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
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
54
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
55
55
|
attrs: any;
|
|
56
56
|
slots: {
|
|
57
57
|
default?(_: {
|
|
58
|
-
option:
|
|
58
|
+
option: Option;
|
|
59
59
|
selected: boolean;
|
|
60
60
|
}): any;
|
|
61
61
|
};
|
|
62
|
-
emit: ((evt: "blur", value: FocusEvent) => void) & ((evt: "change", value:
|
|
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
63
|
}>) => import('vue').VNode & {
|
|
64
64
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
65
65
|
};
|
|
@@ -46,8 +46,8 @@ declare const _default: import('vue').DefineComponent<MazReadingProgressBarProps
|
|
|
46
46
|
}>, {
|
|
47
47
|
height: string;
|
|
48
48
|
color: MazColor;
|
|
49
|
-
teleportSelector: string;
|
|
50
49
|
offset: number;
|
|
50
|
+
teleportSelector: string;
|
|
51
51
|
distance: number;
|
|
52
52
|
contentSelector: string;
|
|
53
53
|
barClass: HTMLAttributes["class"];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MazUiTranslationsNestedSchema } from '@maz-ui/translations';
|
|
2
2
|
import { HTMLAttributes } from 'vue';
|
|
3
3
|
import { MazInputValue } from './MazInput.vue';
|
|
4
|
-
import { MazColor, MazSize } from './types';
|
|
5
4
|
import { MazPopoverProps } from './MazPopover.vue';
|
|
5
|
+
import { MazColor, MazSize } from './types';
|
|
6
6
|
export interface MazSelectNormalizedOption {
|
|
7
7
|
[key: string]: MazInputValue;
|
|
8
8
|
}
|
|
@@ -58,8 +58,9 @@ export interface MazSelectProps<Value extends MazInputValue = MazInputValue, Opt
|
|
|
58
58
|
*/
|
|
59
59
|
optionInputValueKey?: string;
|
|
60
60
|
/**
|
|
61
|
-
* The position of the list
|
|
62
|
-
* @
|
|
61
|
+
* The position of the list (auto by default - will switch between bottom-start and top-start)
|
|
62
|
+
* @type {MazPopoverProps['position']}
|
|
63
|
+
* @default 'auto'
|
|
63
64
|
*/
|
|
64
65
|
listPosition?: MazPopoverProps['position'];
|
|
65
66
|
/** The height of the option list item */
|
|
@@ -109,18 +110,24 @@ export interface MazSelectProps<Value extends MazInputValue = MazInputValue, Opt
|
|
|
109
110
|
autocomplete?: string;
|
|
110
111
|
/**
|
|
111
112
|
* The translations of the component
|
|
112
|
-
* @type {Partial<
|
|
113
|
+
* @type {Partial<MazUiTranslationsNestedSchema['select']>}
|
|
113
114
|
* @default {
|
|
114
115
|
* searchPlaceholder: 'Search in options',
|
|
115
116
|
* }
|
|
116
117
|
*/
|
|
117
|
-
translations?: Partial<
|
|
118
|
+
translations?: Partial<MazUiTranslationsNestedSchema['select']>;
|
|
118
119
|
/**
|
|
119
120
|
* The function to format the input value
|
|
120
121
|
* @type {(value: Multiple extends true ? Value[] : Value) => string}
|
|
121
122
|
* @default undefined
|
|
122
123
|
*/
|
|
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'];
|
|
124
131
|
}
|
|
125
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<{
|
|
126
133
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MazUiTranslationsNestedSchema } from '@maz-ui/translations';
|
|
2
2
|
import { HTMLAttributes } from 'vue';
|
|
3
|
-
import { MazPopoverPosition } from './MazPopover.vue';
|
|
4
|
-
import { MazColor, MazSize } from './types';
|
|
5
3
|
import { CodesType, DisplayNameCode, DisplayNamesOptions } from '../composables/useDisplayNames';
|
|
4
|
+
import { MazPopoverProps } from './MazPopover.vue';
|
|
6
5
|
import { MazSelectProps } from './MazSelect.vue';
|
|
6
|
+
import { MazColor, MazSize } from './types';
|
|
7
7
|
export interface MazSelectCountryProps<Option extends {
|
|
8
8
|
name: string;
|
|
9
9
|
code: DisplayNameCode | string;
|
|
@@ -54,10 +54,10 @@ export interface MazSelectCountryProps<Option extends {
|
|
|
54
54
|
onlyCodes?: Option['code'][];
|
|
55
55
|
/**
|
|
56
56
|
* Position of the list
|
|
57
|
-
* @type {
|
|
58
|
-
* @default
|
|
57
|
+
* @type {MazPopoverProps['position']}
|
|
58
|
+
* @default 'auto'
|
|
59
59
|
*/
|
|
60
|
-
listPosition?:
|
|
60
|
+
listPosition?: MazPopoverProps['position'];
|
|
61
61
|
/**
|
|
62
62
|
* Hide flags
|
|
63
63
|
*/
|
|
@@ -101,10 +101,10 @@ export interface MazSelectCountryProps<Option extends {
|
|
|
101
101
|
searchThreshold?: number;
|
|
102
102
|
/**
|
|
103
103
|
* Translations
|
|
104
|
-
* @type {Partial<
|
|
105
|
-
* @default
|
|
104
|
+
* @type {Partial<MazUiTranslationsNestedSchema['selectCountry']>}
|
|
105
|
+
* @default MazUiTranslationsNestedSchema['selectCountry']
|
|
106
106
|
*/
|
|
107
|
-
translations?: Partial<
|
|
107
|
+
translations?: Partial<MazUiTranslationsNestedSchema['selectCountry']>;
|
|
108
108
|
/**
|
|
109
109
|
* Hint message displayed
|
|
110
110
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes, InjectionKey, Ref, ThHTMLAttributes } from 'vue';
|
|
2
2
|
import { MazColor, MazSize } from './types';
|
|
3
|
-
import {
|
|
4
|
-
import { DeepPartial } from '@maz-ui/utils/
|
|
3
|
+
import { MazUiTranslationsNestedSchema } from '@maz-ui/translations';
|
|
4
|
+
import { DeepPartial } from '@maz-ui/utils/ts-helpers/DeepPartial';
|
|
5
5
|
export interface MazTableHeadersEnriched {
|
|
6
6
|
label: string;
|
|
7
7
|
key?: string;
|
|
@@ -129,7 +129,7 @@ export interface MazTableProps<T extends MazTableRow<T>> {
|
|
|
129
129
|
*/
|
|
130
130
|
elevation?: boolean;
|
|
131
131
|
/**
|
|
132
|
-
*
|
|
132
|
+
* add divider between rows
|
|
133
133
|
* @type {boolean}
|
|
134
134
|
* @default false
|
|
135
135
|
*/
|
|
@@ -213,10 +213,10 @@ export interface MazTableProps<T extends MazTableRow<T>> {
|
|
|
213
213
|
color?: MazColor;
|
|
214
214
|
/**
|
|
215
215
|
* Translations of the table
|
|
216
|
-
* @type {DeepPartial<
|
|
216
|
+
* @type {DeepPartial<MazUiTranslationsNestedSchema['table']>}
|
|
217
217
|
* @default Translations from @maz-ui/translations
|
|
218
218
|
*/
|
|
219
|
-
translations?: DeepPartial<
|
|
219
|
+
translations?: DeepPartial<MazUiTranslationsNestedSchema['table']>;
|
|
220
220
|
/**
|
|
221
221
|
* Size radius of the component's border
|
|
222
222
|
* @type {string}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { colors } from './constantes';
|
|
2
2
|
export type MazColor = (typeof colors)[number];
|
|
3
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";
|
|
@@ -2,6 +2,7 @@ export * from './useAos';
|
|
|
2
2
|
export * from './useBreakpoints';
|
|
3
3
|
export * from './useDialog';
|
|
4
4
|
export * from './useDisplayNames';
|
|
5
|
+
export * from './useDropzone';
|
|
5
6
|
export * from './useFormField';
|
|
6
7
|
export * from './useFormValidator';
|
|
7
8
|
export type { FieldsStates, FieldState, FormFieldOptions, FormSchema, FormValidatorOptions, InferOutputSchemaFormValidator, InferSchemaFormValidator } from './useFormValidator/types';
|
|
@@ -2,7 +2,7 @@ import { MaybeRefOrGetter } from 'vue';
|
|
|
2
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
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
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" | "
|
|
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
6
|
export type Bcp47Code = (typeof bcp47Codes)[number];
|
|
7
7
|
export type Iso6391Code = (typeof iso6391Codes)[number];
|
|
8
8
|
export type CountryCode = (typeof countryCodes)[number];
|
|
@@ -10,12 +10,36 @@ export type DisplayNameCode = (typeof displayNamesCodes)[number];
|
|
|
10
10
|
export type DisplayNamesOptions = Omit<Intl.DisplayNamesOptions, 'type'> & {
|
|
11
11
|
type?: 'region' | 'language';
|
|
12
12
|
};
|
|
13
|
-
declare function normalizeCode(code: string, type: DisplayNamesOptions['type']): string;
|
|
14
13
|
interface DynamicDisplayNamesOptions {
|
|
14
|
+
/**
|
|
15
|
+
* The type of display names to use.
|
|
16
|
+
* @property 'region' | 'language'
|
|
17
|
+
* @default 'region'
|
|
18
|
+
*/
|
|
15
19
|
type?: MaybeRefOrGetter<DisplayNamesOptions['type']>;
|
|
20
|
+
/**
|
|
21
|
+
* The language display to use.
|
|
22
|
+
* @property 'standard' | 'narrow' | 'short'
|
|
23
|
+
* @default 'standard'
|
|
24
|
+
*/
|
|
16
25
|
languageDisplay?: MaybeRefOrGetter<DisplayNamesOptions['languageDisplay']>;
|
|
26
|
+
/**
|
|
27
|
+
* The fallback to use.
|
|
28
|
+
* @property 'code' | 'none'
|
|
29
|
+
* @default 'code'
|
|
30
|
+
*/
|
|
17
31
|
fallback?: MaybeRefOrGetter<DisplayNamesOptions['fallback']>;
|
|
32
|
+
/**
|
|
33
|
+
* The style to use.
|
|
34
|
+
* @property 'long' | 'short' | 'narrow'
|
|
35
|
+
* @default 'long'
|
|
36
|
+
*/
|
|
18
37
|
style?: MaybeRefOrGetter<DisplayNamesOptions['style']>;
|
|
38
|
+
/**
|
|
39
|
+
* The locale matcher to use.
|
|
40
|
+
* @property 'lookup' | 'best fit'
|
|
41
|
+
* @default 'lookup'
|
|
42
|
+
*/
|
|
19
43
|
localeMatcher?: MaybeRefOrGetter<DisplayNamesOptions['localeMatcher']>;
|
|
20
44
|
}
|
|
21
45
|
type GetDisplayNameOptions = MaybeRefOrGetter<{
|
|
@@ -24,12 +48,46 @@ type GetDisplayNameOptions = MaybeRefOrGetter<{
|
|
|
24
48
|
export type CodesType = 'iso' | 'bcp' | 'country' | 'all';
|
|
25
49
|
declare function getDisplayName(code: MaybeRefOrGetter<DisplayNameCode | string>, options?: GetDisplayNameOptions): import('vue').ComputedRef<string | undefined>;
|
|
26
50
|
type GetAllDisplayNamesOptions<T extends CodesType> = MaybeRefOrGetter<{
|
|
51
|
+
/**
|
|
52
|
+
* The locale to use.
|
|
53
|
+
* @property string | DisplayNameCode
|
|
54
|
+
* @default undefined
|
|
55
|
+
*/
|
|
27
56
|
locale?: MaybeRefOrGetter<DisplayNameCode | string>;
|
|
57
|
+
/**
|
|
58
|
+
* The codes to include.
|
|
59
|
+
* @property string[] | undefined
|
|
60
|
+
* @default undefined
|
|
61
|
+
*/
|
|
28
62
|
onlyCodes?: MaybeRefOrGetter<DisplayNameCode[] | string[] | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* The codes to exclude.
|
|
65
|
+
* @property string[] | undefined
|
|
66
|
+
* @default undefined
|
|
67
|
+
*/
|
|
29
68
|
excludedCodes?: MaybeRefOrGetter<DisplayNameCode[] | string[] | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* The codes to prefer.
|
|
71
|
+
* @property string[] | undefined
|
|
72
|
+
* @default undefined
|
|
73
|
+
*/
|
|
30
74
|
preferredCodes?: MaybeRefOrGetter<DisplayNameCode[] | string[] | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* The type of codes to use.
|
|
77
|
+
* @property 'iso' | 'bcp' | 'country' | 'all'
|
|
78
|
+
* @default 'all'
|
|
79
|
+
*/
|
|
31
80
|
codesType?: MaybeRefOrGetter<T>;
|
|
81
|
+
/**
|
|
82
|
+
* Remove duplicates from the result.
|
|
83
|
+
* @property 'name' | 'code' | false
|
|
84
|
+
* @default 'name'
|
|
85
|
+
*/
|
|
32
86
|
removeDuplicates?: MaybeRefOrGetter<'name' | 'code' | false>;
|
|
87
|
+
/**
|
|
88
|
+
* Remove unmatched codes from the result.
|
|
89
|
+
* @default true
|
|
90
|
+
*/
|
|
33
91
|
removeUnmatched?: MaybeRefOrGetter<boolean>;
|
|
34
92
|
} & DynamicDisplayNamesOptions>;
|
|
35
93
|
type CodeResult<T extends CodesType> = T extends 'iso' ? Iso6391Code : T extends 'bcp' ? Bcp47Code : T extends 'country' ? CountryCode : DisplayNameCode | string;
|
|
@@ -39,9 +97,5 @@ export declare function useDisplayNames(mainLocale?: MaybeRefOrGetter<string | D
|
|
|
39
97
|
name: string;
|
|
40
98
|
code: CodeResult<T>;
|
|
41
99
|
}[] | undefined>;
|
|
42
|
-
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"];
|
|
43
|
-
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"];
|
|
44
|
-
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"];
|
|
45
|
-
normalizeCode: typeof normalizeCode;
|
|
46
100
|
};
|
|
47
101
|
export {};
|