maz-ui 3.47.2-beta.9 → 3.48.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/components/MazAccordion.mjs +76 -77
- package/components/MazAnimatedCounter.mjs +7 -7
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBackdrop.d.ts +21 -13
- package/components/MazBackdrop.mjs +107 -82
- package/components/MazBadge.mjs +2 -2
- package/components/MazBottomSheet.d.ts +11 -24
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.mjs +7 -7
- package/components/MazCarousel.mjs +1 -1
- package/components/MazChart.mjs +13 -13
- package/components/MazCheckbox.mjs +36 -37
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.d.ts +18 -0
- package/components/MazCircularProgressBar.mjs +40 -38
- package/components/MazDialog.d.ts +20 -31
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.d.ts +3 -3
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.d.ts +7 -4
- package/components/MazDrawer.mjs +2 -194
- package/components/MazDropdown.mjs +1 -1
- package/components/MazDropzone.mjs +1 -1
- package/components/MazExpandAnimation.mjs +8 -8
- package/components/MazFullscreenLoader.mjs +2 -40
- package/components/MazGallery.mjs +1 -1
- package/components/MazIcon.mjs +9 -8
- package/components/MazInput.d.ts +2 -0
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.mjs +2 -2
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLazyImg.mjs +1 -1
- package/components/MazLink.d.ts +2 -2
- package/components/MazLink.mjs +6 -6
- package/components/MazLoadingBar.mjs +17 -17
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +2 -2
- package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +12 -23
- package/components/MazPhoneNumberInput/types.d.ts +4 -2
- package/{types/components/MazPhoneNumberInput/use-libphonenumber.d.ts → components/MazPhoneNumberInput/useLibphonenumber.d.ts} +11 -6
- package/components/MazPhoneNumberInput/{use-maz-phone-number-input.d.ts → useMazPhoneNumberInput.d.ts} +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazPullToRefresh.mjs +1 -1
- package/components/MazRadio.mjs +18 -19
- package/components/MazRadioButtons.mjs +2 -2
- package/components/MazReadingProgressBar.mjs +15 -15
- package/components/MazSelect.d.ts +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.mjs +31 -31
- package/components/MazSpinner.mjs +7 -7
- package/components/MazStepper.d.ts +1 -1
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.mjs +19 -20
- package/components/MazTable.mjs +1 -1
- package/components/MazTableCell.mjs +12 -12
- package/components/MazTableRow.mjs +6 -6
- package/components/MazTableTitle.mjs +11 -11
- package/components/MazTabs.d.ts +3 -3
- package/components/MazTabs.mjs +7 -7
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTabsContent.mjs +4 -4
- package/components/MazTabsContentItem.mjs +10 -10
- package/components/MazTextarea.d.ts +26 -48
- package/components/MazTextarea.mjs +4 -5
- package/components/MazTransitionExpand.mjs +10 -10
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazAnimatedCounter.css +1 -1
- package/components/assets/MazAvatar.css +1 -1
- package/components/assets/MazBackdrop.css +1 -1
- package/components/assets/MazBadge.css +1 -1
- package/components/assets/MazBottomSheet.css +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCard.css +1 -1
- package/components/assets/MazCardSpotlight.css +1 -1
- package/components/assets/MazCarousel.css +1 -1
- package/components/assets/MazCheckbox.css +1 -1
- package/components/assets/MazChecklist.css +1 -1
- package/components/assets/MazCircularProgressBar.css +1 -1
- package/components/assets/MazDialog.css +1 -1
- package/components/assets/MazDialogPromise.css +1 -1
- package/components/assets/MazDrawer.css +1 -1
- package/components/assets/MazExpandAnimation.css +1 -1
- package/components/assets/MazFullscreenLoader.css +1 -1
- package/components/assets/MazGallery.css +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputCode.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputPrice.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazLazyImg.css +1 -1
- package/components/assets/MazLink.css +1 -1
- package/components/assets/MazLoadingBar.css +1 -1
- package/components/assets/MazPagination.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/assets/MazPullToRefresh.css +1 -1
- package/components/assets/MazRadio.css +1 -1
- package/components/assets/MazRadioButtons.css +1 -1
- package/components/assets/MazReadingProgressBar.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazSlider.css +1 -1
- package/components/assets/MazSpinner.css +1 -1
- package/components/assets/MazStepper.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTableCell.css +1 -1
- package/components/assets/MazTableRow.css +1 -1
- package/components/assets/MazTableTitle.css +1 -1
- package/components/assets/MazTabsBar.css +1 -1
- package/components/assets/MazTabsContentItem.css +1 -1
- package/components/assets/MazTextarea.css +1 -1
- package/components/assets/MazTransitionExpand.css +1 -1
- package/components/chunks/{MazAvatar-CZzOIbzh.mjs → MazAvatar-CuOWgdVG.mjs} +18 -18
- package/components/chunks/{MazBadge-CupQjB8D.mjs → MazBadge-tPgFsG6Y.mjs} +6 -6
- package/components/chunks/MazBottomSheet-CMqzf-dT.mjs +224 -0
- package/components/chunks/MazBtn-B16x1gSu.mjs +103 -0
- package/components/chunks/MazBtn-BLSmc1v4.mjs +103 -0
- package/components/chunks/MazBtn-BcrrOaO_.mjs +103 -0
- package/components/chunks/MazBtn-Bje1xDu3.mjs +103 -0
- package/components/chunks/MazBtn-C5sb0470.mjs +103 -0
- package/components/chunks/MazBtn-CPwCJ1l-.mjs +103 -0
- package/components/chunks/{MazBtn-BVWOyFm-.mjs → MazBtn-Cf-LPT5p.mjs} +4 -4
- package/components/chunks/MazBtn-DCyFSkZo.mjs +103 -0
- package/components/chunks/{MazBtn-DhSKmF01.mjs → MazBtn-DETtZdlj.mjs} +3 -3
- package/components/chunks/{MazBtn-BSgCMRt0.mjs → MazBtn-DnJzOPh9.mjs} +4 -4
- package/components/chunks/{MazBtn-CM-xSnA5.mjs → MazBtn-DsGaq_eB.mjs} +3 -3
- package/components/chunks/{MazBtn-Br3xKJMD.mjs → MazBtn-S7EnZYtZ.mjs} +4 -4
- package/components/chunks/MazBtn-iYAY4cer.mjs +103 -0
- package/components/chunks/MazBtn-v4i4k53h.mjs +103 -0
- package/components/chunks/{MazCard-XBaeDZkg.mjs → MazCard-l54W3CUU.mjs} +3 -3
- package/components/chunks/{MazCarousel-COTaKhKF.mjs → MazCarousel-C16E1i1T.mjs} +3 -3
- package/components/chunks/{MazCheckbox-DxfneUvu.mjs → MazCheckbox-C1nh-xQt.mjs} +7 -7
- package/components/chunks/{MazCheckbox-B-Sw22La.mjs → MazCheckbox-CEsAHbdi.mjs} +7 -7
- package/components/chunks/{MazCheckbox-DjY15PA3.mjs → MazCheckbox-D-7-TdgO.mjs} +4 -4
- package/components/chunks/{MazChecklist-DaozZlNb.mjs → MazChecklist-DSfD55m5.mjs} +125 -126
- package/components/chunks/MazDialog-BjQ3ivmv.mjs +297 -0
- package/components/chunks/MazDialogPromise-Bg3ZOsEI.mjs +551 -0
- package/components/chunks/MazDrawer-BqNLfW4e.mjs +226 -0
- package/components/chunks/{MazDropdown-CKuIGitT.mjs → MazDropdown-DNXKdC_3.mjs} +5 -5
- package/components/chunks/{MazDropzone-DKFkgqqD.mjs → MazDropzone-n0JE92da.mjs} +2 -2
- package/components/chunks/{MazExpandAnimation-Bdf0-L85.mjs → MazExpandAnimation-B04WMwpW.mjs} +8 -8
- package/components/chunks/MazFullscreenLoader-XF8wIEcL.mjs +48 -0
- package/components/chunks/{MazGallery-BooLoRWi.mjs → MazGallery-CzlKPQFX.mjs} +67 -67
- package/components/chunks/{MazGallery-DUOQamrE.mjs → MazGallery-DdZ3bFvX.mjs} +68 -68
- package/components/chunks/{MazIcon-_hN-Kivn.mjs → MazIcon-Cq1v4J3r.mjs} +9 -8
- package/components/chunks/{MazIcon-C-aPrqx2.mjs → MazIcon-DQXhsxp8.mjs} +11 -10
- package/components/chunks/{MazIcon-DFW4cVVf.mjs → MazIcon-DR6-win-.mjs} +12 -11
- package/components/chunks/MazIcon-Gv6n6i4M.mjs +4 -0
- package/components/chunks/{MazInput-HLPtw5QK.mjs → MazInput-BjnuoFvn.mjs} +36 -36
- package/components/chunks/{MazInput-BWAWlxDa.mjs → MazInput-DB4HtpCQ.mjs} +13 -13
- package/components/chunks/{MazInput-DIN1VAoX.mjs → MazInput-yBii2AFS.mjs} +27 -28
- package/components/chunks/{MazInputNumber-7Ku2ZcG-.mjs → MazInputNumber-DqnLi9-C.mjs} +81 -82
- package/components/chunks/{MazInputPrice-C5yErBFP.mjs → MazInputPrice-Ca8mL53M.mjs} +44 -45
- package/components/chunks/{MazInputTags-DvbQ2mK8.mjs → MazInputTags-Bto9dVQq.mjs} +78 -79
- package/components/chunks/{MazLazyImg-DQLwaKKz.mjs → MazLazyImg-D9mlGTCs.mjs} +4 -4
- package/components/chunks/{MazLazyImg-B-6PQWEi.mjs → MazLazyImg-DnJyLBjr.mjs} +3 -3
- package/components/chunks/{MazLink-mrqHeBS0.mjs → MazLink-DlUG7E5K.mjs} +3 -3
- package/components/chunks/{MazLoadingBar-CNm3Yt6D.mjs → MazLoadingBar-DBt1Ltm5.mjs} +8 -8
- package/components/chunks/{MazPagination-BSu0Ifkp.mjs → MazPagination-sxkvTajI.mjs} +49 -49
- package/components/chunks/MazPhoneNumberInput-C3j3JyDI.mjs +1813 -0
- package/components/chunks/{MazPicker-CzYUZcLy.mjs → MazPicker-BUXJof_-.mjs} +19 -20
- package/components/chunks/{MazPickerMonthSwitcher-Ds5agR3Z.mjs → MazPickerMonthSwitcher-DW2WfonJ.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-BP6CY9-c.mjs → MazPickerShortcuts-fw4-dWSv.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-PM8qZMzR.mjs → MazPickerYearSwitcher-aHvmQBF1.mjs} +1 -1
- package/components/chunks/{MazPullToRefresh-CFQX0soS.mjs → MazPullToRefresh-a1rT-zWr.mjs} +3 -3
- package/components/chunks/{MazSelect-DOexatNj.mjs → MazSelect-BwahUlbE.mjs} +322 -326
- package/components/chunks/MazSelect-CBaOs6va.mjs +550 -0
- package/components/chunks/MazSpinner-BVQYjLWp.mjs +34 -0
- package/components/chunks/{MazSpinner-yr9xVdAa.mjs → MazSpinner-BYlkcKf0.mjs} +6 -6
- package/components/chunks/MazSpinner-B_THFs0t.mjs +34 -0
- package/components/chunks/MazSpinner-Bb1BgWPD.mjs +34 -0
- package/components/chunks/MazSpinner-Bb4B4Nz8.mjs +34 -0
- package/components/chunks/{MazSpinner-9M_EGMpy.mjs → MazSpinner-Bpkl7q5u.mjs} +7 -7
- package/components/chunks/MazSpinner-BtDo7ZEC.mjs +34 -0
- package/components/chunks/MazSpinner-C-DOH7ou.mjs +34 -0
- package/components/chunks/MazSpinner-C1Rr3w9l.mjs +34 -0
- package/components/chunks/MazSpinner-C47dmUu7.mjs +34 -0
- package/components/chunks/MazSpinner-C7_Q1K-e.mjs +34 -0
- package/components/chunks/MazSpinner-CBHbVSef.mjs +34 -0
- package/components/chunks/MazSpinner-CCThMV5o.mjs +34 -0
- package/components/chunks/MazSpinner-CizL97Q2.mjs +34 -0
- package/components/chunks/{MazSpinner-BJpv1muf.mjs → MazSpinner-Cmy2WyWY.mjs} +7 -7
- package/components/chunks/MazSpinner-CodOqnm1.mjs +34 -0
- package/components/chunks/MazSpinner-Cq0S_tbE.mjs +34 -0
- package/components/chunks/{MazSpinner-Bsy1nA3c.mjs → MazSpinner-D6PdYOcD.mjs} +7 -7
- package/components/chunks/MazSpinner-DV9-beEc.mjs +34 -0
- package/components/chunks/MazSpinner-DoFpeVcl.mjs +34 -0
- package/components/chunks/MazSpinner-Dx-3_EFZ.mjs +34 -0
- package/components/chunks/MazSpinner-PVTrAf5V.mjs +34 -0
- package/components/chunks/MazSpinner-PXSS3XT3.mjs +34 -0
- package/components/chunks/MazSpinner-XZrAaGeE.mjs +34 -0
- package/components/chunks/{MazStepper-B3fuhbye.mjs → MazStepper-DtAqtJjn.mjs} +32 -32
- package/components/chunks/{MazTable-Ci8nhgOP.mjs → MazTable-Soe-MrTW.mjs} +79 -74
- package/components/chunks/{MazTableCell-BIganK6X.mjs → MazTableCell-DtoO9MOe.mjs} +6 -6
- package/components/chunks/MazTableRow-ChFMulaU.mjs +30 -0
- package/components/chunks/{MazTableTitle-OEgTPQB3.mjs → MazTableTitle-D8El-v5p.mjs} +6 -6
- package/components/chunks/{MazTabsBar-CT35SCIK.mjs → MazTabsBar-8wchBiYF.mjs} +21 -21
- package/components/chunks/{MazTransitionExpand-Bcwdl9g2.mjs → MazTransitionExpand-CRArAQZu.mjs} +10 -10
- package/components/chunks/examples.mobile.json-tW3aL0qI.mjs +4 -0
- package/components/chunks/useInstanceUniqId-BkOfxhk8.mjs +10 -0
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/assets/MazSpinner.css +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/MazBtn-D0bVfaLm.cjs +1 -0
- package/{components/chunks/MazBtn-BfIn7glE.mjs → modules/chunks/MazBtn-Z86MClP9.mjs} +4 -4
- package/modules/chunks/{MazIcon-D-Gna0vz.cjs → MazIcon-BwgJhGLT.cjs} +1 -1
- package/modules/chunks/{MazIcon-CeT6HK_q.mjs → MazIcon-XtyPgbu6.mjs} +12 -11
- package/{components/chunks/MazSpinner-BlbTztM3.mjs → modules/chunks/MazSpinner-BfUXTY7m.mjs} +7 -7
- package/modules/chunks/MazSpinner-C5Fi9q_G.cjs +1 -0
- package/modules/chunks/index-Bq5KVBKA.cjs +124 -0
- package/modules/chunks/{index-Kry9j5uD.mjs → index-YwIF5a3Q.mjs} +1187 -951
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +47 -46
- package/nuxt/index.json +1 -1
- package/package.json +4 -3
- package/tailwindcss/tailwind.css +0 -6
- package/tailwindcss/utils/colors.ts +9 -5
- package/tailwindcss/variables/utilities.ts +3 -0
- package/types/components/MazBackdrop.vue.d.ts +21 -13
- package/types/components/MazBottomSheet.vue.d.ts +11 -24
- package/types/components/MazCircularProgressBar.vue.d.ts +18 -0
- package/types/components/MazDialog.vue.d.ts +20 -31
- package/types/components/MazDialogPromise.vue.d.ts +3 -3
- package/types/components/MazDrawer.vue.d.ts +7 -4
- package/types/components/MazInput.vue.d.ts +2 -0
- package/types/components/MazLink.vue.d.ts +2 -2
- package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +2 -2
- package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +12 -23
- package/types/components/MazPhoneNumberInput/types.d.ts +4 -2
- package/{components/MazPhoneNumberInput/use-libphonenumber.d.ts → types/components/MazPhoneNumberInput/useLibphonenumber.d.ts} +11 -6
- package/types/components/MazPhoneNumberInput/{use-maz-phone-number-input.d.ts → useMazPhoneNumberInput.d.ts} +1 -1
- package/types/components/MazSelect.vue.d.ts +1 -1
- package/types/components/MazStepper.vue.d.ts +1 -1
- package/types/components/MazTabs.vue.d.ts +3 -3
- package/types/components/MazTextarea.vue.d.ts +26 -48
- package/types/modules/composables/useFormValidator/types.d.ts +2 -2
- package/types/modules/composables/useFormValidator/useFormField.d.ts +56 -16
- package/types/modules/composables/useFormValidator/utils.d.ts +6 -6
- package/types/modules/composables/useLanguageDisplayNames.d.ts +13 -12
- package/types/modules/directives/closable.d.ts +1 -1
- package/types/modules/directives/tooltip/index.d.ts +21 -0
- package/types/tailwindcss/tailwind.config.d.ts +2 -2
- package/types/tailwindcss/utils/colors.d.ts +1 -1
- package/types/tailwindcss/variables/utilities.d.ts +3 -0
- package/components/MazPhoneNumberInput.d.ts +0 -240
- package/components/chunks/MazBottomSheet-D9EPpEV8.mjs +0 -208
- package/components/chunks/MazBtn-CB6xVwox.mjs +0 -103
- package/components/chunks/MazBtn-CIAdgMGr.mjs +0 -111
- package/components/chunks/MazBtn-CQq-U8qQ.mjs +0 -103
- package/components/chunks/MazBtn-Chk7DWOF.mjs +0 -103
- package/components/chunks/MazBtn-Ck84sP9a.mjs +0 -103
- package/components/chunks/MazBtn-DI80W9rl.mjs +0 -103
- package/components/chunks/MazBtn-DzwuLea3.mjs +0 -103
- package/components/chunks/MazBtn-tOUtVpek.mjs +0 -103
- package/components/chunks/MazDialog-XiX9LEiz.mjs +0 -237
- package/components/chunks/MazDialogPromise-B9_e3Ma9.mjs +0 -488
- package/components/chunks/MazIcon-BX2Gbz8R.mjs +0 -4
- package/components/chunks/MazPhoneNumberInput-B5Up8CqL.mjs +0 -1806
- package/components/chunks/MazSelect-DaDRzcT_.mjs +0 -552
- package/components/chunks/MazSpinner-C30YfScc.mjs +0 -34
- package/components/chunks/MazSpinner-C5mnD76l.mjs +0 -34
- package/components/chunks/MazSpinner-CDx6lo7l.mjs +0 -34
- package/components/chunks/MazSpinner-C_GueolV.mjs +0 -34
- package/components/chunks/MazSpinner-Cc-KlPEG.mjs +0 -34
- package/components/chunks/MazSpinner-Cgg2dkzQ.mjs +0 -34
- package/components/chunks/MazSpinner-CkKIUYXO.mjs +0 -34
- package/components/chunks/MazSpinner-CxyUHAvm.mjs +0 -34
- package/components/chunks/MazSpinner-DROgQW2M.mjs +0 -34
- package/components/chunks/MazSpinner-DjM6ktPY.mjs +0 -34
- package/components/chunks/MazSpinner-DjUU4G1h.mjs +0 -34
- package/components/chunks/MazSpinner-Du5o8JC_.mjs +0 -38
- package/components/chunks/MazSpinner-Dzs2W0kq.mjs +0 -34
- package/components/chunks/MazSpinner-NCtEpFMm.mjs +0 -34
- package/components/chunks/MazSpinner-QfPXLpa_.mjs +0 -34
- package/components/chunks/MazSpinner-XB6tX3Ld.mjs +0 -34
- package/components/chunks/MazSpinner-ZPQe8ON_.mjs +0 -34
- package/components/chunks/MazSpinner-b90e3OQK.mjs +0 -34
- package/components/chunks/MazSpinner-f6pBzqbu.mjs +0 -34
- package/components/chunks/MazTableRow-CIO-x6Lb.mjs +0 -30
- package/components/chunks/examples.mobile.json-JpNGylGv.mjs +0 -4
- package/components/chunks/useInstanceUniqId-DW9jO1Sz.mjs +0 -11
- package/modules/chunks/MazBtn-0CRjeBvn.mjs +0 -103
- package/modules/chunks/MazBtn-DRqCRJD-.cjs +0 -1
- package/modules/chunks/MazSpinner-DV--lwdI.mjs +0 -34
- package/modules/chunks/MazSpinner-DersvZQw.cjs +0 -1
- package/modules/chunks/index-DvromXrX.cjs +0 -124
- package/types/components/MazPhoneNumberInput.vue.d.ts +0 -240
|
@@ -3,7 +3,8 @@ import type { defaultLocales } from './default-locales';
|
|
|
3
3
|
export interface Results {
|
|
4
4
|
isValid: boolean;
|
|
5
5
|
isPossible?: boolean;
|
|
6
|
-
countryCode?: CountryCode;
|
|
6
|
+
countryCode?: CountryCode | undefined | null;
|
|
7
|
+
parsedCountryCode?: CountryCode | undefined | null;
|
|
7
8
|
countryCallingCode?: CountryCallingCode;
|
|
8
9
|
nationalNumber?: NationalNumber;
|
|
9
10
|
type?: NumberType;
|
|
@@ -12,7 +13,8 @@ export interface Results {
|
|
|
12
13
|
uri?: string;
|
|
13
14
|
e164?: string;
|
|
14
15
|
rfc3966?: string;
|
|
15
|
-
|
|
16
|
+
possibleCountries?: CountryCode[];
|
|
17
|
+
phoneNumber?: string | undefined | null;
|
|
16
18
|
}
|
|
17
19
|
export type Translations = typeof defaultLocales;
|
|
18
20
|
export interface Country {
|
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
import type { Results } from './types';
|
|
2
2
|
import { type CountryCode, type Examples, getCountries, getCountryCallingCode } from 'libphonenumber-js';
|
|
3
3
|
declare function isCountryAvailable(locale: string): boolean;
|
|
4
|
-
declare function getPhoneNumberResults({ phoneNumber, countryCode, }: {
|
|
5
|
-
phoneNumber?: string;
|
|
6
|
-
countryCode?: CountryCode;
|
|
4
|
+
declare function getPhoneNumberResults({ phoneNumber, countryCode, checkCountryCode, }: {
|
|
5
|
+
phoneNumber?: string | undefined | null;
|
|
6
|
+
countryCode?: CountryCode | undefined | null;
|
|
7
|
+
checkCountryCode?: boolean;
|
|
7
8
|
}): Results;
|
|
8
|
-
declare function getAsYouTypeFormat(countryCode?: CountryCode, phoneNumber?: string): string;
|
|
9
9
|
declare function getPhoneNumberExamplesFile(): Promise<Examples>;
|
|
10
|
-
declare function getPhoneNumberExample(
|
|
10
|
+
declare function getPhoneNumberExample(countryCode?: CountryCode | undefined | null): string | undefined;
|
|
11
|
+
declare function getAsYouTypeFormat(countryCode?: CountryCode | undefined | null, phoneNumber?: string | undefined | null): string | undefined;
|
|
12
|
+
declare function isSameCountryCallingCode(countryCode: CountryCode, countryCode2: CountryCode): boolean;
|
|
13
|
+
declare function loadExamples(): Promise<void>;
|
|
11
14
|
export declare function useLibphonenumber(): {
|
|
15
|
+
examples: import("vue").Ref<Examples | undefined, Examples | undefined>;
|
|
12
16
|
getAsYouTypeFormat: typeof getAsYouTypeFormat;
|
|
13
17
|
getPhoneNumberResults: typeof getPhoneNumberResults;
|
|
14
18
|
getPhoneNumberExamplesFile: typeof getPhoneNumberExamplesFile;
|
|
15
19
|
getPhoneNumberExample: typeof getPhoneNumberExample;
|
|
16
|
-
isSameCountryCallingCode:
|
|
20
|
+
isSameCountryCallingCode: typeof isSameCountryCallingCode;
|
|
17
21
|
isCountryAvailable: typeof isCountryAvailable;
|
|
18
22
|
getCountries: typeof getCountries;
|
|
19
23
|
getCountryCallingCode: typeof getCountryCallingCode;
|
|
24
|
+
loadExamples: typeof loadExamples;
|
|
20
25
|
};
|
|
21
26
|
export {};
|
|
@@ -6,7 +6,7 @@ declare function getBrowserLocale(): {
|
|
|
6
6
|
} | undefined;
|
|
7
7
|
declare function getCountriesList(locale?: string, customCountriesNameListByIsoCode?: Record<CountryCode, string>): Country[] | undefined;
|
|
8
8
|
declare function fetchCountryCode(): Promise<string | undefined>;
|
|
9
|
-
declare function sanitizePhoneNumber(input?: string): string;
|
|
9
|
+
declare function sanitizePhoneNumber(input?: string | undefined | null): string;
|
|
10
10
|
export declare function useMazPhoneNumberInput(): {
|
|
11
11
|
sanitizePhoneNumber: typeof sanitizePhoneNumber;
|
|
12
12
|
fetchCountryCode: typeof fetchCountryCode;
|
|
@@ -88,7 +88,7 @@ export interface Props<T extends ModelValueSimple, U extends MazSelectOption> {
|
|
|
88
88
|
autocomplete?: string;
|
|
89
89
|
}
|
|
90
90
|
export type { Color, ModelValueSimple, Position, Size } from './types';
|
|
91
|
-
declare const _default: <T extends ModelValueSimple, U extends MazSelectOption
|
|
91
|
+
declare const _default: <T extends ModelValueSimple, U extends MazSelectOption>(__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<{
|
|
92
92
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
93
93
|
readonly onInput?: ((value: Event) => any) | undefined;
|
|
94
94
|
readonly onBlur?: ((value: Event) => any) | undefined;
|
|
@@ -47,7 +47,7 @@ declare function __VLS_template(): {
|
|
|
47
47
|
rootEl: HTMLDivElement;
|
|
48
48
|
};
|
|
49
49
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
50
|
-
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
50
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
51
|
"update:model-value": (value: number) => any;
|
|
52
52
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
53
53
|
"onUpdate:model-value"?: ((value: number) => any) | undefined;
|
|
@@ -16,10 +16,10 @@ declare function __VLS_template(): {
|
|
|
16
16
|
rootEl: HTMLDivElement;
|
|
17
17
|
};
|
|
18
18
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
-
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
-
"update:model-value": (
|
|
19
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
+
"update:model-value": (value: number) => any;
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
22
|
-
"onUpdate:model-value"?: ((
|
|
22
|
+
"onUpdate:model-value"?: ((value: number) => any) | undefined;
|
|
23
23
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
24
24
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
25
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { Color } from './types';
|
|
2
1
|
import { type HTMLAttributes } from 'vue';
|
|
2
|
+
import type { Color } from './types';
|
|
3
3
|
export type { Color };
|
|
4
|
-
export interface
|
|
4
|
+
export interface MazTextareaProps<T extends string | undefined | null> {
|
|
5
5
|
/** Style attribut of the component root element */
|
|
6
6
|
style?: HTMLAttributes['style'];
|
|
7
7
|
/** Class attribut of the component root element */
|
|
8
8
|
class?: HTMLAttributes['class'];
|
|
9
9
|
/** @model The value of the textarea */
|
|
10
|
-
modelValue?:
|
|
10
|
+
modelValue?: T;
|
|
11
11
|
/** The id of the textarea */
|
|
12
12
|
id?: string;
|
|
13
13
|
/** The name of the textarea */
|
|
@@ -59,55 +59,33 @@ export interface Props {
|
|
|
59
59
|
*/
|
|
60
60
|
appendJustify?: 'start' | 'end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
61
61
|
}
|
|
62
|
-
declare
|
|
63
|
-
|
|
62
|
+
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<{
|
|
63
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
64
|
+
readonly onInput?: ((value?: T | undefined) => any) | undefined;
|
|
65
|
+
readonly onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
66
|
+
readonly onChange?: ((value: Event) => any) | undefined;
|
|
67
|
+
readonly onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
68
|
+
readonly "onUpdate:model-value"?: ((value?: T | undefined) => any) | undefined;
|
|
69
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onInput" | "onUpdate:model-value"> & Partial<{}> & MazTextareaProps<T>> & import("vue").PublicProps;
|
|
70
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
71
|
+
attrs: any;
|
|
64
72
|
slots: {
|
|
65
73
|
label?(_: {}): any;
|
|
66
74
|
append?(_: {}): any;
|
|
67
75
|
};
|
|
68
|
-
|
|
69
|
-
|
|
76
|
+
emit: {
|
|
77
|
+
(event: "update:model-value", value?: T): void;
|
|
78
|
+
(event: "input", value?: T): void;
|
|
79
|
+
(event: "focus", value: FocusEvent): void;
|
|
80
|
+
(event: "blur", value: FocusEvent): void;
|
|
81
|
+
(event: "change", value: Event): void;
|
|
70
82
|
};
|
|
71
|
-
|
|
83
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
}> & {
|
|
86
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
72
87
|
};
|
|
73
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
74
|
-
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
75
|
-
input: (value?: string | undefined) => any;
|
|
76
|
-
blur: (value: FocusEvent) => any;
|
|
77
|
-
change: (value: Event) => any;
|
|
78
|
-
focus: (value: FocusEvent) => any;
|
|
79
|
-
"update:model-value": (value?: string | undefined) => any;
|
|
80
|
-
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
81
|
-
onInput?: ((value?: string | undefined) => any) | undefined;
|
|
82
|
-
onBlur?: ((value: FocusEvent) => any) | undefined;
|
|
83
|
-
onChange?: ((value: Event) => any) | undefined;
|
|
84
|
-
onFocus?: ((value: FocusEvent) => any) | undefined;
|
|
85
|
-
"onUpdate:model-value"?: ((value?: string | undefined) => any) | undefined;
|
|
86
|
-
}>, {
|
|
87
|
-
label: string;
|
|
88
|
-
style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
89
|
-
error: boolean;
|
|
90
|
-
success: boolean;
|
|
91
|
-
warning: boolean;
|
|
92
|
-
transparent: boolean;
|
|
93
|
-
color: Color;
|
|
94
|
-
class: HTMLAttributes["class"];
|
|
95
|
-
name: string;
|
|
96
|
-
disabled: boolean;
|
|
97
|
-
id: string;
|
|
98
|
-
modelValue: string;
|
|
99
|
-
required: boolean;
|
|
100
|
-
readonly: boolean;
|
|
101
|
-
padding: boolean;
|
|
102
|
-
border: boolean;
|
|
103
|
-
hint: string;
|
|
104
|
-
placeholder: string;
|
|
105
|
-
appendJustify: "start" | "end" | "center" | "space-between" | "space-around" | "space-evenly";
|
|
106
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
107
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
108
88
|
export default _default;
|
|
109
|
-
type
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
};
|
|
113
|
-
};
|
|
89
|
+
type __VLS_PrettifyLocal<T> = {
|
|
90
|
+
[K in keyof T]: T[K];
|
|
91
|
+
} & {};
|
|
@@ -101,8 +101,8 @@ export interface FormFieldOptions<FieldType> {
|
|
|
101
101
|
export type UseFormValidator<Model extends BaseFormPayload = BaseFormPayload> = typeof useFormValidator<Model>;
|
|
102
102
|
export interface UseFormValidatorParams<Model extends BaseFormPayload> {
|
|
103
103
|
schema: MaybeRef<FormSchema<Model>>;
|
|
104
|
-
defaultValues?: MaybeRef<Partial<Model
|
|
105
|
-
model?: Ref<Partial<Model
|
|
104
|
+
defaultValues?: MaybeRef<Partial<Model> | undefined>;
|
|
105
|
+
model?: Ref<Partial<Model> | undefined>;
|
|
106
106
|
options?: FormValidatorOptions<Model>;
|
|
107
107
|
}
|
|
108
108
|
export type UseFormField<FieldType extends Model[ExtractModelKey<FormSchema<Model>>], Model extends BaseFormPayload = BaseFormPayload> = typeof useFormField<FieldType, Model>;
|
|
@@ -1,16 +1,56 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import type { ComputedRef, WritableComputedRef } from 'vue';
|
|
2
|
+
import type { BaseFormPayload, ExtractModelKey, FormFieldOptions, FormSchema, ValidationIssues } from './types';
|
|
3
|
+
import { getValidationEvents } from './utils';
|
|
4
|
+
interface UseFormFieldReturn<FieldType> {
|
|
5
|
+
/**
|
|
6
|
+
* Indicates if the field has an error
|
|
7
|
+
*/
|
|
8
|
+
hasError: ComputedRef<boolean>;
|
|
9
|
+
/**
|
|
10
|
+
* Errors of the field
|
|
11
|
+
*/
|
|
12
|
+
errors: ComputedRef<ValidationIssues>;
|
|
13
|
+
/**
|
|
14
|
+
* Error message of the field
|
|
15
|
+
* It's the first error of the field
|
|
16
|
+
*/
|
|
17
|
+
errorMessage: ComputedRef<string | undefined>;
|
|
18
|
+
/**
|
|
19
|
+
* Indicates if the field is valid
|
|
20
|
+
*/
|
|
21
|
+
isValid: ComputedRef<boolean>;
|
|
22
|
+
/**
|
|
23
|
+
* Indicates if the field has been modified
|
|
24
|
+
*/
|
|
25
|
+
isDirty: ComputedRef<boolean>;
|
|
26
|
+
/**
|
|
27
|
+
* Indicates if the field has been blurred
|
|
28
|
+
*/
|
|
29
|
+
isBlurred: ComputedRef<boolean>;
|
|
30
|
+
/**
|
|
31
|
+
* Indicates if the field has been validated
|
|
32
|
+
*/
|
|
33
|
+
isValidated: ComputedRef<boolean>;
|
|
34
|
+
/**
|
|
35
|
+
* Indicates if the field is validating
|
|
36
|
+
*/
|
|
37
|
+
isValidating: ComputedRef<boolean>;
|
|
38
|
+
/**
|
|
39
|
+
* Validation mode of the field
|
|
40
|
+
*/
|
|
41
|
+
mode: ComputedRef<FormFieldOptions<FieldType>['mode']>;
|
|
42
|
+
/**
|
|
43
|
+
* Value of the field
|
|
44
|
+
*/
|
|
45
|
+
value: WritableComputedRef<FieldType>;
|
|
46
|
+
/**
|
|
47
|
+
* Validation events of the field
|
|
48
|
+
*/
|
|
49
|
+
validationEvents: ComputedRef<ReturnType<typeof getValidationEvents>>;
|
|
50
|
+
/**
|
|
51
|
+
* Function to handle the blur event of the field
|
|
52
|
+
*/
|
|
53
|
+
onBlur: () => void;
|
|
54
|
+
}
|
|
55
|
+
export declare function useFormField<FieldType extends Model[ExtractModelKey<FormSchema<Model>>], Model extends BaseFormPayload = BaseFormPayload>(name: ExtractModelKey<FormSchema<Model>>, options?: FormFieldOptions<FieldType>): UseFormFieldReturn<FieldType>;
|
|
56
|
+
export {};
|
|
@@ -46,14 +46,14 @@ export declare function updateFieldState<Model extends BaseFormPayload, ModelKey
|
|
|
46
46
|
}): FieldState<Model>;
|
|
47
47
|
export declare function getFieldsErrors<Model extends BaseFormPayload, ModelKey extends ExtractModelKey<FormSchema<Model>> = ExtractModelKey<FormSchema<Model>>>(fieldsStates: FieldsStates<Model>): Record<ModelKey, ValidationIssues>;
|
|
48
48
|
export declare function findInteractiveElements(el: HTMLElement): (HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement)[];
|
|
49
|
-
export declare function addEventToInteractiveElements({ interactiveElements,
|
|
49
|
+
export declare function addEventToInteractiveElements({ interactiveElements, onBlur, mode, }: {
|
|
50
50
|
interactiveElements: HTMLElement[];
|
|
51
|
-
|
|
51
|
+
onBlur: () => void;
|
|
52
52
|
mode: StrictOptions['mode'];
|
|
53
53
|
}): void;
|
|
54
|
-
export declare function removeEventFromInteractiveElements({ interactiveElements,
|
|
54
|
+
export declare function removeEventFromInteractiveElements({ interactiveElements, onBlur, }: {
|
|
55
55
|
interactiveElements: HTMLElement[];
|
|
56
|
-
|
|
56
|
+
onBlur: () => void;
|
|
57
57
|
}): void;
|
|
58
58
|
export declare function getFieldValidationResult<Model extends BaseFormPayload, ModelKey extends ExtractModelKey<FormSchema<Model>> = ExtractModelKey<FormSchema<Model>>>(name: ModelKey, schema: FormSchema<Model>, value: Model[ModelKey]): Promise<{
|
|
59
59
|
result: import("valibot").SafeParseResult<FormSchema<Model>[ModelKey]>;
|
|
@@ -102,10 +102,10 @@ export declare function handleFieldInput<Model extends BaseFormPayload, ModelKey
|
|
|
102
102
|
}): Promise<void> | undefined;
|
|
103
103
|
export declare function getInstance<Model extends BaseFormPayload>(composableName: string): CustomInstance<Model>;
|
|
104
104
|
export declare function getContext<Model extends BaseFormPayload>(identifier: string | symbol | InjectionKey<FormContext<Model>>, composableName: string): FormContext<Model, Extract<keyof { [K in Extract<keyof Model, string> as Model[K] extends Required<Model>[K] ? K : never]: import("./types").ValidationAsync; }, string> | Extract<keyof { [K_1 in Extract<keyof Model, string> as Model[K_1] extends Required<Model>[K_1] ? never : K_1]?: import("./types").ValidationAsync | undefined; }, string>>;
|
|
105
|
-
export declare function getValidationEvents<Model extends BaseFormPayload>({ ref, fieldState,
|
|
105
|
+
export declare function getValidationEvents<Model extends BaseFormPayload>({ ref, fieldState, onBlur, }: {
|
|
106
106
|
ref?: string;
|
|
107
107
|
fieldState: FieldState<Model>;
|
|
108
|
-
|
|
108
|
+
onBlur: () => void;
|
|
109
109
|
}): {
|
|
110
110
|
onBlur: () => void;
|
|
111
111
|
} | undefined;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { type MaybeRefOrGetter } from 'vue';
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
+
export 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"];
|
|
4
|
+
export declare const languageCodes: ("br" | "hr" | "li" | "th" | "tr" | "mi" | "mn" | "ms" | "tt" | "lg" | "sm" | "to" | "id" | "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" | "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" | "cy" | "da" | "de" | "dv" | "dz" | "ee" | "en" | "eo" | "es" | "et" | "eu" | "fa" | "ff" | "fi" | "fj" | "fo" | "fr" | "fy" | "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")[];
|
|
5
|
+
export type IsoCode = (typeof bcp47Codes)[number];
|
|
6
|
+
export type Iso6391Code = (typeof iso6391Codes)[number];
|
|
7
|
+
export type LanguageCode = (typeof languageCodes)[number];
|
|
8
|
+
export declare function useLanguageDisplayNames(mainLocale?: MaybeRefOrGetter<string | LanguageCode>): {
|
|
9
|
+
getLanguageDisplayName: ({ code, locale }: {
|
|
10
|
+
code?: MaybeRefOrGetter<string | LanguageCode>;
|
|
11
|
+
locale?: MaybeRefOrGetter<string | LanguageCode>;
|
|
8
12
|
}) => import("vue").ComputedRef<string | undefined>;
|
|
9
|
-
|
|
13
|
+
getAllLanguageDisplayNames: (locale?: MaybeRefOrGetter<string | LanguageCode>) => import("vue").ComputedRef<({
|
|
10
14
|
language: string;
|
|
11
|
-
code:
|
|
12
|
-
}[]>;
|
|
13
|
-
getLanguageDisplayNamesForIsoCodes: (locale?: MaybeRefOrGetter<string>) => import("vue").ComputedRef<({
|
|
14
|
-
language: string;
|
|
15
|
-
code: "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";
|
|
15
|
+
code: "br" | "hr" | "li" | "th" | "tr" | "mi" | "mn" | "ms" | "tt" | "lg" | "sm" | "to" | "id" | "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" | "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" | "cy" | "da" | "de" | "dv" | "dz" | "ee" | "en" | "eo" | "es" | "et" | "eu" | "fa" | "ff" | "fi" | "fj" | "fo" | "fr" | "fy" | "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";
|
|
16
16
|
} | undefined)[]>;
|
|
17
17
|
};
|
|
18
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DirectiveBinding } from 'vue';
|
|
2
|
-
type vClosableBindingValueHandler = (
|
|
2
|
+
type vClosableBindingValueHandler = (event: Event) => any;
|
|
3
3
|
interface vClosableBindingValueObject {
|
|
4
4
|
handler: vClosableBindingValueHandler;
|
|
5
5
|
exclude?: string[];
|
|
@@ -3,12 +3,33 @@ import type { Color } from '../../../components/types';
|
|
|
3
3
|
import './style.css';
|
|
4
4
|
type vTooltipColor = Exclude<Color, 'transparent'> | 'default' | 'light' | 'dark';
|
|
5
5
|
interface vTooltipOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Position of the tooltip
|
|
8
|
+
* @default 'top'
|
|
9
|
+
*/
|
|
6
10
|
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
11
|
+
/**
|
|
12
|
+
* Color of the tooltip
|
|
13
|
+
* @default 'default'
|
|
14
|
+
*/
|
|
7
15
|
color?: vTooltipColor;
|
|
8
16
|
}
|
|
9
17
|
type vTooltipBindingValue = string | ({
|
|
18
|
+
/**
|
|
19
|
+
* Text to display in the tooltip
|
|
20
|
+
* @default ''
|
|
21
|
+
*/
|
|
10
22
|
text: string;
|
|
23
|
+
/**
|
|
24
|
+
* Open the tooltip
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
11
27
|
open?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Offset of the tooltip
|
|
30
|
+
* @default '1rem'
|
|
31
|
+
*/
|
|
32
|
+
offset?: string;
|
|
12
33
|
} & vTooltipOptions);
|
|
13
34
|
export type TooltipBinding = DirectiveBinding<vTooltipBindingValue>;
|
|
14
35
|
declare const directive: {
|
|
@@ -39,7 +39,7 @@ export declare const baseConfig: {
|
|
|
39
39
|
'lap-2xl': string;
|
|
40
40
|
'lap-3xl': string;
|
|
41
41
|
};
|
|
42
|
-
colors:
|
|
42
|
+
colors: import("tailwindcss/types/config").RecursiveKeyValuePair<string, string>;
|
|
43
43
|
borderWidth: {
|
|
44
44
|
0: string;
|
|
45
45
|
1: string;
|
|
@@ -98,7 +98,7 @@ export declare const tailwindConfig: {
|
|
|
98
98
|
'lap-2xl': string;
|
|
99
99
|
'lap-3xl': string;
|
|
100
100
|
};
|
|
101
|
-
colors:
|
|
101
|
+
colors: import("tailwindcss/types/config").RecursiveKeyValuePair<string, string>;
|
|
102
102
|
borderWidth: {
|
|
103
103
|
0: string;
|
|
104
104
|
1: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getColors():
|
|
1
|
+
export declare function getColors(): import("tailwindcss/types/config").RecursiveKeyValuePair<string, string>;
|