maz-ui 3.18.2 → 3.19.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/MazPhoneNumberInput/{constantes/locales.d.ts → default-locales.d.ts} +1 -2
- package/components/MazPhoneNumberInput/types.d.ts +40 -2
- package/components/MazPhoneNumberInput/use-libphonenumber.d.ts +32 -0
- package/components/MazPhoneNumberInput.d.ts +65 -14
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazSelect.d.ts +2 -0
- package/components/MazSelect.mjs +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/chunks/{MazBtn-b191eece.mjs → MazBtn-290141e9.mjs} +2 -2
- package/components/chunks/{MazBtn-875045b0.mjs → MazBtn-8d0f8eb2.mjs} +2 -2
- package/components/chunks/{MazInput-3021f55e.mjs → MazInput-4775c6de.mjs} +2 -2
- package/components/chunks/MazPhoneNumberInput-37eb2437.mjs +650 -0
- package/components/chunks/{MazSelect-d3d81ae8.mjs → MazSelect-13d3fe3a.mjs} +52 -17
- package/components/chunks/{MazSelect-c03eaaf8.mjs → MazSelect-9270ae9c.mjs} +51 -16
- package/components/chunks/{MazSpinner-87273e1f.mjs → MazSpinner-3e5a5ee0.mjs} +1 -1
- package/components/chunks/{MazSpinner-a3fe9ccb.mjs → MazSpinner-bfd1f135.mjs} +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/{MazBtn-bf5d1483.mjs → MazBtn-c57ccb54.mjs} +3 -3
- package/modules/chunks/{MazIcon-1567cfaf.mjs → MazIcon-c5f0f47e.mjs} +1 -1
- package/modules/chunks/{MazSpinner-dda0b697.mjs → MazSpinner-bb0e791a.mjs} +1 -1
- package/modules/chunks/{index-a39534c8.mjs → index-7220b7e8.mjs} +4 -4
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/types/components/MazPhoneNumberInput/{constantes/locales.d.ts → default-locales.d.ts} +1 -2
- package/types/components/MazPhoneNumberInput/types.d.ts +40 -2
- package/types/components/MazPhoneNumberInput/use-libphonenumber.d.ts +32 -0
- package/types/components/MazPhoneNumberInput.vue.d.ts +65 -14
- package/types/components/MazSelect.vue.d.ts +2 -0
- package/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +0 -2
- package/components/MazPhoneNumberInput/utils/index.d.ts +0 -12
- package/components/chunks/MazPhoneNumberInput-59aa8e06.mjs +0 -854
- package/types/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +0 -2
- package/types/components/MazPhoneNumberInput/utils/index.d.ts +0 -12
|
@@ -9,23 +9,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
validator: (prop: string) => boolean;
|
|
10
10
|
default: undefined;
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
default: undefined;
|
|
15
|
-
};
|
|
16
|
-
placeholder: {
|
|
12
|
+
/** @deprecated */
|
|
13
|
+
defaultPhoneNumber: {
|
|
17
14
|
type: StringConstructor;
|
|
18
15
|
default: undefined;
|
|
19
16
|
};
|
|
20
|
-
|
|
21
|
-
type:
|
|
17
|
+
countryCode: {
|
|
18
|
+
type: PropType<string>;
|
|
22
19
|
default: undefined;
|
|
20
|
+
validator: (code: string) => boolean;
|
|
23
21
|
};
|
|
22
|
+
/** @deprecated - use country-code or v-model:country-code */
|
|
24
23
|
defaultCountryCode: {
|
|
25
24
|
type: PropType<string>;
|
|
26
25
|
default: undefined;
|
|
27
26
|
validator: (code: string) => boolean;
|
|
28
27
|
};
|
|
28
|
+
id: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: undefined;
|
|
31
|
+
};
|
|
32
|
+
placeholder: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: undefined;
|
|
35
|
+
};
|
|
29
36
|
preferredCountries: {
|
|
30
37
|
type: PropType<CountryCode[]>;
|
|
31
38
|
default: undefined;
|
|
@@ -106,33 +113,57 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
106
113
|
type: PropType<Record<CountryCode, string>>;
|
|
107
114
|
default: undefined;
|
|
108
115
|
};
|
|
116
|
+
/**
|
|
117
|
+
* Disabled auto-format as you type
|
|
118
|
+
*/
|
|
119
|
+
noFormattingAsYouType: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* locale of country list - Ex: "fr-FR"
|
|
125
|
+
* @default browser locale
|
|
126
|
+
*/
|
|
127
|
+
countryLocale: {
|
|
128
|
+
type: StringConstructor;
|
|
129
|
+
default: undefined;
|
|
130
|
+
};
|
|
109
131
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
132
|
+
data: (...args: any[]) => void;
|
|
110
133
|
update: (...args: any[]) => void;
|
|
111
134
|
"update:model-value": (...args: any[]) => void;
|
|
112
135
|
"country-code": (...args: any[]) => void;
|
|
136
|
+
"update:country-code": (...args: any[]) => void;
|
|
113
137
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
114
138
|
modelValue: {
|
|
115
139
|
type: StringConstructor;
|
|
116
140
|
validator: (prop: string) => boolean;
|
|
117
141
|
default: undefined;
|
|
118
142
|
};
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
default: undefined;
|
|
122
|
-
};
|
|
123
|
-
placeholder: {
|
|
143
|
+
/** @deprecated */
|
|
144
|
+
defaultPhoneNumber: {
|
|
124
145
|
type: StringConstructor;
|
|
125
146
|
default: undefined;
|
|
126
147
|
};
|
|
127
|
-
|
|
128
|
-
type:
|
|
148
|
+
countryCode: {
|
|
149
|
+
type: PropType<string>;
|
|
129
150
|
default: undefined;
|
|
151
|
+
validator: (code: string) => boolean;
|
|
130
152
|
};
|
|
153
|
+
/** @deprecated - use country-code or v-model:country-code */
|
|
131
154
|
defaultCountryCode: {
|
|
132
155
|
type: PropType<string>;
|
|
133
156
|
default: undefined;
|
|
134
157
|
validator: (code: string) => boolean;
|
|
135
158
|
};
|
|
159
|
+
id: {
|
|
160
|
+
type: StringConstructor;
|
|
161
|
+
default: undefined;
|
|
162
|
+
};
|
|
163
|
+
placeholder: {
|
|
164
|
+
type: StringConstructor;
|
|
165
|
+
default: undefined;
|
|
166
|
+
};
|
|
136
167
|
preferredCountries: {
|
|
137
168
|
type: PropType<CountryCode[]>;
|
|
138
169
|
default: undefined;
|
|
@@ -213,10 +244,27 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
213
244
|
type: PropType<Record<CountryCode, string>>;
|
|
214
245
|
default: undefined;
|
|
215
246
|
};
|
|
247
|
+
/**
|
|
248
|
+
* Disabled auto-format as you type
|
|
249
|
+
*/
|
|
250
|
+
noFormattingAsYouType: {
|
|
251
|
+
type: BooleanConstructor;
|
|
252
|
+
default: boolean;
|
|
253
|
+
};
|
|
254
|
+
/**
|
|
255
|
+
* locale of country list - Ex: "fr-FR"
|
|
256
|
+
* @default browser locale
|
|
257
|
+
*/
|
|
258
|
+
countryLocale: {
|
|
259
|
+
type: StringConstructor;
|
|
260
|
+
default: undefined;
|
|
261
|
+
};
|
|
216
262
|
}>> & {
|
|
217
263
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
218
264
|
onUpdate?: ((...args: any[]) => any) | undefined;
|
|
265
|
+
onData?: ((...args: any[]) => any) | undefined;
|
|
219
266
|
"onCountry-code"?: ((...args: any[]) => any) | undefined;
|
|
267
|
+
"onUpdate:country-code"?: ((...args: any[]) => any) | undefined;
|
|
220
268
|
}, {
|
|
221
269
|
size: Size;
|
|
222
270
|
color: Color;
|
|
@@ -225,6 +273,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
225
273
|
id: string;
|
|
226
274
|
error: boolean;
|
|
227
275
|
modelValue: string;
|
|
276
|
+
countryCode: string;
|
|
228
277
|
listPosition: Position;
|
|
229
278
|
defaultPhoneNumber: string;
|
|
230
279
|
defaultCountryCode: string;
|
|
@@ -250,5 +299,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
250
299
|
noCountrySelector: boolean;
|
|
251
300
|
showCodeOnList: boolean;
|
|
252
301
|
customCountriesList: Record<CountryCode, string>;
|
|
302
|
+
noFormattingAsYouType: boolean;
|
|
303
|
+
countryLocale: string;
|
|
253
304
|
}, {}>;
|
|
254
305
|
export default _default;
|
|
@@ -80,6 +80,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
80
80
|
focus: (...args: any[]) => void;
|
|
81
81
|
open: (...args: any[]) => void;
|
|
82
82
|
"update:model-value": (...args: any[]) => void;
|
|
83
|
+
"selected-option": (...args: any[]) => void;
|
|
83
84
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
85
|
modelValue: {
|
|
85
86
|
type: PropType<ModelValueSimple>;
|
|
@@ -158,6 +159,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
158
159
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
159
160
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
160
161
|
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
162
|
+
"onSelected-option"?: ((...args: any[]) => any) | undefined;
|
|
161
163
|
}, {
|
|
162
164
|
size: Size;
|
|
163
165
|
color: Color;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type CountryCode, type Examples } from 'libphonenumber-js';
|
|
2
|
-
import type { Country, Result } from '../types';
|
|
3
|
-
export declare function getCountryName(code: CountryCode | string, customCountriesNameListByIsoCode?: Record<CountryCode, string>): string | undefined;
|
|
4
|
-
export declare function loadPhoneNumberExamplesFile(): Promise<Examples>;
|
|
5
|
-
export declare function getExamplePhoneNumber(countryCode: CountryCode): import("libphonenumber-js").PhoneNumber | undefined;
|
|
6
|
-
export declare function sanitizePhoneNumber(input?: string): string | undefined;
|
|
7
|
-
export declare function getCountriesList(customCountriesNameListByIsoCode?: Record<CountryCode, string>): Country[] | undefined;
|
|
8
|
-
export declare function browserLocale(): string | undefined;
|
|
9
|
-
export declare function isCountryAvailable(locale: string): boolean;
|
|
10
|
-
export declare const getResultsFromPhoneNumber: (countryCode?: CountryCode, phoneNumber?: string) => Result;
|
|
11
|
-
export declare function getAsYouTypeFormat(countryCode: CountryCode, phoneNumber?: string): string | undefined;
|
|
12
|
-
export declare function fetchCountryCode(): Promise<string | undefined>;
|