maz-ui 3.47.2-beta.20 → 3.47.2-beta.21
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/MazChecklist.mjs +1 -1
- package/components/MazInput.d.ts +2 -0
- package/components/MazInput.mjs +1 -1
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +9 -20
- package/components/MazPhoneNumberInput/types.d.ts +2 -1
- package/components/MazPhoneNumberInput/useLibphonenumber.d.ts +8 -3
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/assets/MazInput.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/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/chunks/{MazBtn-Db6ai-Mv.mjs → MazBtn-4-B-zs6Y.mjs} +2 -2
- package/components/chunks/{MazBtn-B5ioqwkK.mjs → MazBtn-C6zsmGnw.mjs} +2 -2
- package/components/chunks/MazBtn-C7yEnuOD.mjs +103 -0
- package/components/chunks/{MazBtn-CElHmZjv.mjs → MazBtn-DAXwt847.mjs} +2 -2
- package/components/chunks/{MazBtn-BrfhtojY.mjs → MazBtn-DOWVQgpN.mjs} +2 -2
- package/components/chunks/{MazBtn-C4nwxs9T.mjs → MazBtn-DZaVjTvW.mjs} +2 -2
- package/components/chunks/{MazCheckbox-B5ZcWc3y.mjs → MazCheckbox-BNvSeNBP.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BDPgDiU3.mjs → MazCheckbox-CCma_qyQ.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BeLByOEa.mjs → MazCheckbox-eOEEACaM.mjs} +1 -1
- package/components/chunks/{MazChecklist-BurPprmw.mjs → MazChecklist-Bb_70sf5.mjs} +1 -1
- package/components/chunks/{MazIcon-CaXpmvN2.mjs → MazIcon-kLACGOa2.mjs} +1 -1
- package/components/chunks/{MazInput-BT-mbJfZ.mjs → MazInput-BM4n-byz.mjs} +18 -18
- package/components/chunks/{MazInput-BTIdtLkD.mjs → MazInput-BcutbP8N.mjs} +11 -11
- package/components/chunks/{MazInput-BfWJoPre.mjs → MazInput-C9Qh4Gt3.mjs} +10 -10
- package/components/chunks/{MazInputNumber-R0RzDeyD.mjs → MazInputNumber-DgjOMiOt.mjs} +40 -40
- package/components/chunks/{MazInputPrice-CKSdqO4X.mjs → MazInputPrice-D6fJN9yv.mjs} +41 -41
- package/components/chunks/{MazInputTags-D6jQ2-Ia.mjs → MazInputTags-DthGSyHQ.mjs} +51 -51
- package/components/chunks/{MazLoadingBar-D3pDBJSb.mjs → MazLoadingBar-C2qPjfEQ.mjs} +1 -1
- package/components/chunks/MazPhoneNumberInput-BQjByOtQ.mjs +1813 -0
- package/components/chunks/{MazPicker-CwiuW5Pv.mjs → MazPicker-BljfUneI.mjs} +11 -11
- package/components/chunks/{MazPickerMonthSwitcher-C65el7R0.mjs → MazPickerMonthSwitcher-CEVb4BXw.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-DbrOoszH.mjs → MazPickerShortcuts-DayGMC9m.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-D9lqntyR.mjs → MazPickerYearSwitcher-DC1lFIbp.mjs} +1 -1
- package/components/chunks/{MazSelect-CyWAOXo4.mjs → MazSelect-CH3JdigO.mjs} +54 -54
- package/components/chunks/{MazSelect-CbT4tFqV.mjs → MazSelect-D3KXcHJS.mjs} +3 -3
- package/components/chunks/MazSpinner-B5JChIrj.mjs +34 -0
- package/components/chunks/{MazSpinner-N-1gjTUE.mjs → MazSpinner-BBZoDxwq.mjs} +1 -1
- package/components/chunks/{MazSpinner-DYE8e9xl.mjs → MazSpinner-BIPm54-3.mjs} +1 -1
- package/components/chunks/{MazSpinner-CS1_l-tv.mjs → MazSpinner-C-ln9ldX.mjs} +1 -1
- package/components/chunks/{MazSpinner-BDda3YzZ.mjs → MazSpinner-C11EOZZd.mjs} +1 -1
- package/components/chunks/{MazSpinner-CwmaAuL1.mjs → MazSpinner-CCc9ajpj.mjs} +1 -1
- package/components/chunks/{MazSpinner-C2-JMhVh.mjs → MazSpinner-CgKOIkQQ.mjs} +1 -1
- package/components/chunks/{MazSpinner-mtv0dluJ.mjs → MazSpinner-CwdlrYSt.mjs} +1 -1
- package/components/chunks/MazSpinner-DoPIk0St.mjs +34 -0
- package/components/chunks/{MazTable-hA0HicaL.mjs → MazTable-BU3Hluiu.mjs} +1 -1
- package/components/chunks/{MazTableCell-DkCidYWY.mjs → MazTableCell-DKMZAanm.mjs} +1 -1
- package/components/chunks/{MazTableRow-BAl6Fzm8.mjs → MazTableRow-CDHpmXfw.mjs} +1 -1
- package/components/chunks/{MazTableTitle-CY_LNDOk.mjs → MazTableTitle-BSFZ84Ob.mjs} +1 -1
- package/components/chunks/examples.mobile.json-tW3aL0qI.mjs +4 -0
- package/nuxt/index.json +1 -1
- package/package.json +2 -2
- package/types/components/MazInput.vue.d.ts +2 -0
- package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +9 -20
- package/types/components/MazPhoneNumberInput/types.d.ts +2 -1
- package/types/components/MazPhoneNumberInput/useLibphonenumber.d.ts +8 -3
- package/components/MazPhoneNumberInput.d.ts +0 -283
- package/components/chunks/MazBtn-D4NOcykx.mjs +0 -103
- package/components/chunks/MazPhoneNumberInput-DibUhBpk.mjs +0 -1809
- package/components/chunks/MazSpinner-DudoF-cG.mjs +0 -34
- package/components/chunks/MazSpinner-EAz0nFxC.mjs +0 -34
- package/components/chunks/examples.mobile.json-JpNGylGv.mjs +0 -4
- package/types/components/MazPhoneNumberInput.vue.d.ts +0 -283
|
@@ -1,30 +1,19 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type
|
|
1
|
+
import type { Props } from '../MazInput.vue';
|
|
2
|
+
import type { Translations } from '../MazPhoneNumberInput.vue';
|
|
3
|
+
interface PhoneInputProps extends Omit<Props, 'modelValue'> {
|
|
3
4
|
id: string;
|
|
4
|
-
color: Color;
|
|
5
|
-
size: Size;
|
|
6
5
|
locales: Translations;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
success?: boolean;
|
|
13
|
-
error?: boolean;
|
|
14
|
-
autoFormat?: boolean;
|
|
15
|
-
noFormattingAsYouType?: boolean;
|
|
16
|
-
};
|
|
6
|
+
noExample: boolean;
|
|
7
|
+
hasRadius: boolean;
|
|
8
|
+
autoFormat: boolean;
|
|
9
|
+
}
|
|
10
|
+
type __VLS_Props = PhoneInputProps;
|
|
17
11
|
type __VLS_PublicProps = {
|
|
18
12
|
modelValue?: string | undefined | null;
|
|
19
13
|
} & __VLS_Props;
|
|
20
14
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
-
"update:model-value": (phoneNumber?: string | undefined) => any;
|
|
22
15
|
"update:modelValue": (value: string | null | undefined) => any;
|
|
23
16
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
|
-
"onUpdate:model-value"?: ((phoneNumber?: string | undefined) => any) | undefined;
|
|
25
17
|
"onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
|
|
26
|
-
}>, {
|
|
27
|
-
label: string;
|
|
28
|
-
placeholder: string;
|
|
29
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
19
|
export default _default;
|
|
@@ -4,6 +4,7 @@ export interface Results {
|
|
|
4
4
|
isValid: boolean;
|
|
5
5
|
isPossible?: boolean;
|
|
6
6
|
countryCode?: CountryCode | undefined | null;
|
|
7
|
+
parsedCountryCode?: CountryCode | undefined | null;
|
|
7
8
|
countryCallingCode?: CountryCallingCode;
|
|
8
9
|
nationalNumber?: NationalNumber;
|
|
9
10
|
type?: NumberType;
|
|
@@ -13,7 +14,7 @@ export interface Results {
|
|
|
13
14
|
e164?: string;
|
|
14
15
|
rfc3966?: string;
|
|
15
16
|
possibleCountries?: CountryCode[];
|
|
16
|
-
phoneNumber?: string;
|
|
17
|
+
phoneNumber?: string | undefined | null;
|
|
17
18
|
}
|
|
18
19
|
export type Translations = typeof defaultLocales;
|
|
19
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, }: {
|
|
4
|
+
declare function getPhoneNumberResults({ phoneNumber, countryCode, checkCountryCode, }: {
|
|
5
5
|
phoneNumber?: string | undefined | null;
|
|
6
6
|
countryCode?: CountryCode | undefined | null;
|
|
7
|
+
checkCountryCode?: boolean;
|
|
7
8
|
}): Results;
|
|
8
9
|
declare function getPhoneNumberExamplesFile(): Promise<Examples>;
|
|
9
|
-
declare function getPhoneNumberExample(
|
|
10
|
+
declare function getPhoneNumberExample(countryCode?: CountryCode | undefined | null): string | undefined;
|
|
10
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 {};
|
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
import type { CountryCode } from 'libphonenumber-js';
|
|
2
|
-
import type { Results, Translations } from './MazPhoneNumberInput/types';
|
|
3
|
-
import type { Color, Position, Size } from './types';
|
|
4
|
-
import { type HTMLAttributes } from 'vue';
|
|
5
|
-
export type { Color, CountryCode, Position, Results, Results as Result, Size, Translations };
|
|
6
|
-
export interface Props {
|
|
7
|
-
/** Style attribut of the component root element */
|
|
8
|
-
style?: HTMLAttributes['style'];
|
|
9
|
-
/** Class attribut of the component root element */
|
|
10
|
-
class?: HTMLAttributes['class'];
|
|
11
|
-
/** @model Country calling code + telephone number in international format */
|
|
12
|
-
modelValue?: string | undefined | null;
|
|
13
|
-
/** @deprecated */
|
|
14
|
-
defaultPhoneNumber?: string | undefined | null;
|
|
15
|
-
/** @model Country code selected - Ex: "FR" */
|
|
16
|
-
countryCode?: CountryCode | undefined | null;
|
|
17
|
-
/** @deprecated - use country-code or v-model:country-code */
|
|
18
|
-
defaultCountryCode?: CountryCode | undefined | null;
|
|
19
|
-
/** Id of the component */
|
|
20
|
-
id?: string;
|
|
21
|
-
/** Placeholder of the input */
|
|
22
|
-
placeholder?: string;
|
|
23
|
-
/** label of the input */
|
|
24
|
-
label?: string;
|
|
25
|
-
/** List of country codes to place first in the select list - Ex: ['FR', 'BE', 'GE'] */
|
|
26
|
-
preferredCountries?: CountryCode[];
|
|
27
|
-
/** List of country codes to be removed from the select list - Ex: ['FR', 'BE', 'GE'] */
|
|
28
|
-
ignoredCountries?: CountryCode[];
|
|
29
|
-
/** List of country codes to only have the countries selected in the select list - Ex: ['FR', 'BE', 'GE'] */
|
|
30
|
-
onlyCountries?: CountryCode[];
|
|
31
|
-
/** Locale strings of the component */
|
|
32
|
-
translations?: Partial<Translations>;
|
|
33
|
-
/** Position where the list of countries will be opened */
|
|
34
|
-
listPosition?: Position;
|
|
35
|
-
/** Component color applied - Ex: "secondary" */
|
|
36
|
-
color?: Color;
|
|
37
|
-
/** Component size applied - Ex: "sm" */
|
|
38
|
-
size?: Size;
|
|
39
|
-
/** Remove flags in country list */
|
|
40
|
-
noFlags?: boolean;
|
|
41
|
-
/** Disable input */
|
|
42
|
-
disabled?: boolean;
|
|
43
|
-
/** No show the phone number example */
|
|
44
|
-
noExample?: boolean;
|
|
45
|
-
/** Disable search input in country list */
|
|
46
|
-
noSearch?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Threshold of the search input in country list where 1 is a perfect match and 0 is a match with any character
|
|
49
|
-
* @default 0.75
|
|
50
|
-
*/
|
|
51
|
-
searchThreshold?: number;
|
|
52
|
-
/** By default the component use the browser locale to set the default country code if not country code is provided */
|
|
53
|
-
noUseBrowserLocale?: boolean;
|
|
54
|
-
/** The component will make a request (https://ipwho.is) to get the location of the user and use it to set the default country code */
|
|
55
|
-
fetchCountry?: boolean;
|
|
56
|
-
/** No show the country selector */
|
|
57
|
-
noCountrySelector?: boolean;
|
|
58
|
-
/** Show country calling code in the country list */
|
|
59
|
-
showCodeOnList?: boolean;
|
|
60
|
-
/** Replace country names */
|
|
61
|
-
customCountriesList?: Record<CountryCode, string>;
|
|
62
|
-
/**
|
|
63
|
-
* Disabled auto-format when phone is valid
|
|
64
|
-
* @default true
|
|
65
|
-
*/
|
|
66
|
-
autoFormat?: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* Disabled auto-format as you type
|
|
69
|
-
* @default false
|
|
70
|
-
*/
|
|
71
|
-
noFormattingAsYouType?: boolean;
|
|
72
|
-
/**
|
|
73
|
-
* locale of country list - Ex: "fr-FR"
|
|
74
|
-
* @default {string} browser locale
|
|
75
|
-
*/
|
|
76
|
-
countryLocale?: string;
|
|
77
|
-
/** Disable validation error UI */
|
|
78
|
-
noValidationError?: boolean;
|
|
79
|
-
/** Disable validation success UI */
|
|
80
|
-
noValidationSuccess?: boolean;
|
|
81
|
-
/** Add success UI */
|
|
82
|
-
success?: boolean;
|
|
83
|
-
/** Add error UI */
|
|
84
|
-
error?: boolean;
|
|
85
|
-
/** Will replace the calling code by the country name in the country selector */
|
|
86
|
-
countrySelectorDisplayName?: boolean;
|
|
87
|
-
/** Choose the width of the country selector */
|
|
88
|
-
countrySelectorWidth?: string;
|
|
89
|
-
/** The input will be displayed in full width */
|
|
90
|
-
block?: boolean;
|
|
91
|
-
/** Exclude selectors to close country selector list - usefull when you using custom flag */
|
|
92
|
-
excludeSelectors?: string[];
|
|
93
|
-
/**
|
|
94
|
-
* Orientation of the inputs in the component
|
|
95
|
-
* @default "responsive"
|
|
96
|
-
* @values "row" | "col" | "responsive"
|
|
97
|
-
*/
|
|
98
|
-
orientation?: 'row' | 'col' | 'responsive';
|
|
99
|
-
/**
|
|
100
|
-
* Meta attributes of the country input
|
|
101
|
-
* @default `{Record<string, unknown>}` `{ autocomplete: 'off', name: 'country' }`
|
|
102
|
-
*/
|
|
103
|
-
countrySelectAttributes?: Record<string, unknown>;
|
|
104
|
-
/**
|
|
105
|
-
* Meta attributes of the phone number input
|
|
106
|
-
* @default `{Record<string, unknown>}` `{ autocomplete: 'tel', name: 'phone', inputmode: 'tel' }`
|
|
107
|
-
*/
|
|
108
|
-
phoneInputAttributes?: Record<string, unknown>;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* State
|
|
112
|
-
*/
|
|
113
|
-
declare const phoneNumber: import("vue").Ref<string | null | undefined, string | null | undefined>;
|
|
114
|
-
declare const selectedCountry: import("vue").Ref<CountryCode | null | undefined, CountryCode | null | undefined>;
|
|
115
|
-
declare const results: import("vue").Ref<{
|
|
116
|
-
isValid: boolean;
|
|
117
|
-
isPossible?: boolean | undefined;
|
|
118
|
-
countryCode?: CountryCode | undefined | null;
|
|
119
|
-
countryCallingCode?: import("libphonenumber-js").CountryCallingCode | undefined;
|
|
120
|
-
nationalNumber?: import("libphonenumber-js").NationalNumber | undefined;
|
|
121
|
-
type?: import("libphonenumber-js").NumberType;
|
|
122
|
-
formatInternational?: string | undefined;
|
|
123
|
-
formatNational?: string | undefined;
|
|
124
|
-
uri?: string | undefined;
|
|
125
|
-
e164?: string | undefined;
|
|
126
|
-
rfc3966?: string | undefined;
|
|
127
|
-
possibleCountries?: CountryCode[] | undefined;
|
|
128
|
-
phoneNumber?: string | undefined;
|
|
129
|
-
}, Results | {
|
|
130
|
-
isValid: boolean;
|
|
131
|
-
isPossible?: boolean | undefined;
|
|
132
|
-
countryCode?: CountryCode | undefined | null;
|
|
133
|
-
countryCallingCode?: import("libphonenumber-js").CountryCallingCode | undefined;
|
|
134
|
-
nationalNumber?: import("libphonenumber-js").NationalNumber | undefined;
|
|
135
|
-
type?: import("libphonenumber-js").NumberType;
|
|
136
|
-
formatInternational?: string | undefined;
|
|
137
|
-
formatNational?: string | undefined;
|
|
138
|
-
uri?: string | undefined;
|
|
139
|
-
e164?: string | undefined;
|
|
140
|
-
rfc3966?: string | undefined;
|
|
141
|
-
possibleCountries?: CountryCode[] | undefined;
|
|
142
|
-
phoneNumber?: string | undefined;
|
|
143
|
-
}>;
|
|
144
|
-
interface SelectionRange {
|
|
145
|
-
start?: number | null;
|
|
146
|
-
end?: number | null;
|
|
147
|
-
cursorAtEnd?: boolean;
|
|
148
|
-
}
|
|
149
|
-
export interface InjectedData {
|
|
150
|
-
selectedCountry: typeof selectedCountry;
|
|
151
|
-
phoneNumber: typeof phoneNumber;
|
|
152
|
-
results: typeof results;
|
|
153
|
-
selectionRange: typeof selectionRange;
|
|
154
|
-
}
|
|
155
|
-
declare const selectionRange: import("vue").Ref<{
|
|
156
|
-
start?: (number | null) | undefined;
|
|
157
|
-
end?: (number | null) | undefined;
|
|
158
|
-
cursorAtEnd?: boolean | undefined;
|
|
159
|
-
}, SelectionRange | {
|
|
160
|
-
start?: (number | null) | undefined;
|
|
161
|
-
end?: (number | null) | undefined;
|
|
162
|
-
cursorAtEnd?: boolean | undefined;
|
|
163
|
-
}>;
|
|
164
|
-
declare function __VLS_template(): {
|
|
165
|
-
attrs: Partial<{}>;
|
|
166
|
-
slots: {
|
|
167
|
-
"no-results"?(_: {}): any;
|
|
168
|
-
"selector-flag"?(_: {
|
|
169
|
-
countryCode: CountryCode;
|
|
170
|
-
}): any;
|
|
171
|
-
"country-list-flag"?(_: {
|
|
172
|
-
countryCode: import("./types").ModelValueSimple;
|
|
173
|
-
option: import("./MazSelect.vue").NormalizedOption;
|
|
174
|
-
isSelected: boolean;
|
|
175
|
-
}): any;
|
|
176
|
-
};
|
|
177
|
-
refs: {
|
|
178
|
-
PhoneInputRef: import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
179
|
-
modelValue?: string | undefined | null;
|
|
180
|
-
} & {
|
|
181
|
-
id: string;
|
|
182
|
-
color: Color;
|
|
183
|
-
size: Size;
|
|
184
|
-
locales: Translations;
|
|
185
|
-
label?: string;
|
|
186
|
-
placeholder?: string;
|
|
187
|
-
noExample?: boolean;
|
|
188
|
-
disabled?: boolean;
|
|
189
|
-
hasRadius?: boolean;
|
|
190
|
-
success?: boolean;
|
|
191
|
-
error?: boolean;
|
|
192
|
-
autoFormat?: boolean;
|
|
193
|
-
noFormattingAsYouType?: boolean;
|
|
194
|
-
}> & Readonly<{
|
|
195
|
-
"onUpdate:model-value"?: ((phoneNumber?: string | undefined) => any) | undefined;
|
|
196
|
-
"onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
|
|
197
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
198
|
-
"update:model-value": (phoneNumber?: string | undefined) => any;
|
|
199
|
-
"update:modelValue": (value: string | null | undefined) => any;
|
|
200
|
-
}, import("vue").PublicProps, {
|
|
201
|
-
label: string;
|
|
202
|
-
placeholder: string;
|
|
203
|
-
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
204
|
-
P: {};
|
|
205
|
-
B: {};
|
|
206
|
-
D: {};
|
|
207
|
-
C: {};
|
|
208
|
-
M: {};
|
|
209
|
-
Defaults: {};
|
|
210
|
-
}, Readonly<{
|
|
211
|
-
modelValue?: string | undefined | null;
|
|
212
|
-
} & {
|
|
213
|
-
id: string;
|
|
214
|
-
color: Color;
|
|
215
|
-
size: Size;
|
|
216
|
-
locales: Translations;
|
|
217
|
-
label?: string;
|
|
218
|
-
placeholder?: string;
|
|
219
|
-
noExample?: boolean;
|
|
220
|
-
disabled?: boolean;
|
|
221
|
-
hasRadius?: boolean;
|
|
222
|
-
success?: boolean;
|
|
223
|
-
error?: boolean;
|
|
224
|
-
autoFormat?: boolean;
|
|
225
|
-
noFormattingAsYouType?: boolean;
|
|
226
|
-
}> & Readonly<{
|
|
227
|
-
"onUpdate:model-value"?: ((phoneNumber?: string | undefined) => any) | undefined;
|
|
228
|
-
"onUpdate:modelValue"?: ((value: string | null | undefined) => any) | undefined;
|
|
229
|
-
}>, {}, {}, {}, {}, {
|
|
230
|
-
label: string;
|
|
231
|
-
placeholder: string;
|
|
232
|
-
}> | null;
|
|
233
|
-
};
|
|
234
|
-
rootEl: any;
|
|
235
|
-
};
|
|
236
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
237
|
-
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
238
|
-
data: (results: Results) => any;
|
|
239
|
-
"update:model-value": (value: string | null | undefined) => any;
|
|
240
|
-
update: (results: Results) => any;
|
|
241
|
-
"country-code": (countryCode?: CountryCode | null | undefined) => any;
|
|
242
|
-
"update:country-code": (countryCode?: CountryCode | null | undefined) => any;
|
|
243
|
-
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
244
|
-
onData?: ((results: Results) => any) | undefined;
|
|
245
|
-
"onUpdate:model-value"?: ((value: string | null | undefined) => any) | undefined;
|
|
246
|
-
onUpdate?: ((results: Results) => any) | undefined;
|
|
247
|
-
"onCountry-code"?: ((countryCode?: CountryCode | null | undefined) => any) | undefined;
|
|
248
|
-
"onUpdate:country-code"?: ((countryCode?: CountryCode | null | undefined) => any) | undefined;
|
|
249
|
-
}>, {
|
|
250
|
-
label: string;
|
|
251
|
-
style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
252
|
-
size: Size;
|
|
253
|
-
color: Color;
|
|
254
|
-
class: HTMLAttributes["class"];
|
|
255
|
-
id: string;
|
|
256
|
-
modelValue: string | null;
|
|
257
|
-
orientation: "row" | "col" | "responsive";
|
|
258
|
-
placeholder: string;
|
|
259
|
-
listPosition: Position;
|
|
260
|
-
searchThreshold: number;
|
|
261
|
-
excludeSelectors: string[];
|
|
262
|
-
preferredCountries: CountryCode[];
|
|
263
|
-
ignoredCountries: CountryCode[];
|
|
264
|
-
onlyCountries: CountryCode[];
|
|
265
|
-
customCountriesList: Record<CountryCode, string>;
|
|
266
|
-
countryLocale: string;
|
|
267
|
-
countryCode: CountryCode | null;
|
|
268
|
-
autoFormat: boolean;
|
|
269
|
-
noFormattingAsYouType: boolean;
|
|
270
|
-
defaultPhoneNumber: string | null;
|
|
271
|
-
defaultCountryCode: CountryCode | null;
|
|
272
|
-
translations: Partial<Translations>;
|
|
273
|
-
countrySelectorWidth: string;
|
|
274
|
-
countrySelectAttributes: Record<string, unknown>;
|
|
275
|
-
phoneInputAttributes: Record<string, unknown>;
|
|
276
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
277
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
278
|
-
export default _default;
|
|
279
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
280
|
-
new (): {
|
|
281
|
-
$slots: S;
|
|
282
|
-
};
|
|
283
|
-
};
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, defineAsyncComponent as m, useAttrs as $, computed as o, openBlock as t, createBlock as l, resolveDynamicComponent as r, normalizeClass as a, normalizeStyle as S, withCtx as j, renderSlot as i, unref as u, createCommentVNode as d, createElementBlock as M, createVNode as E } from "vue";
|
|
2
|
-
import { _ as F } from "./MazPhoneNumberInput-DibUhBpk.mjs";
|
|
3
|
-
import '../assets/MazBtn.css';const O = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "m-btn-loader-container"
|
|
6
|
-
}, A = /* @__PURE__ */ C({
|
|
7
|
-
__name: "MazBtn",
|
|
8
|
-
props: {
|
|
9
|
-
variant: { default: "button" },
|
|
10
|
-
size: { default: "md" },
|
|
11
|
-
color: { default: "primary" },
|
|
12
|
-
type: { default: "button" },
|
|
13
|
-
rounded: { type: Boolean },
|
|
14
|
-
roundedSize: { default: "lg" },
|
|
15
|
-
noRounded: { type: Boolean },
|
|
16
|
-
outline: { type: Boolean },
|
|
17
|
-
pastel: { type: Boolean },
|
|
18
|
-
block: { type: Boolean },
|
|
19
|
-
noUnderline: { type: Boolean },
|
|
20
|
-
loading: { type: Boolean },
|
|
21
|
-
disabled: { type: Boolean },
|
|
22
|
-
fab: { type: Boolean },
|
|
23
|
-
icon: { type: [String, Function, Object], default: void 0 },
|
|
24
|
-
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
25
|
-
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
26
|
-
noPadding: { type: Boolean },
|
|
27
|
-
noElevation: { type: Boolean },
|
|
28
|
-
justify: { default: "center" }
|
|
29
|
-
},
|
|
30
|
-
setup(y) {
|
|
31
|
-
const n = y, v = m(() => import("./MazSpinner-EAz0nFxC.mjs")), c = m(() => import("./MazIcon-CaXpmvN2.mjs")), { href: b, to: z } = $(), f = o(() => b ? "a" : z ? "router-link" : "button"), g = o(() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`), p = o(
|
|
32
|
-
() => (n.loading || n.disabled) && f.value === "button"
|
|
33
|
-
), B = o(() => p.value ? "--cursor-default" : "--cursor-pointer"), k = o(() => `--is-${n.variant}`), I = o(() => n.loading && n.variant === "button"), h = o(() => f.value === "button" ? n.type : void 0), s = o(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "maz-text-xl");
|
|
34
|
-
return (e, D) => (t(), l(r(f.value), {
|
|
35
|
-
disabled: p.value || void 0,
|
|
36
|
-
class: a(["m-btn", [
|
|
37
|
-
`--${e.size}`,
|
|
38
|
-
!e.fab && !e.rounded && e.roundedSize && `--rounded-${e.roundedSize}`,
|
|
39
|
-
g.value,
|
|
40
|
-
B.value,
|
|
41
|
-
k.value,
|
|
42
|
-
{
|
|
43
|
-
"--block": e.block,
|
|
44
|
-
"--no-underline": e.noUnderline,
|
|
45
|
-
"--fab": e.fab,
|
|
46
|
-
"--loading": e.loading,
|
|
47
|
-
"--disabled": p.value,
|
|
48
|
-
"--rounded": e.rounded,
|
|
49
|
-
"--no-rounded": e.noRounded,
|
|
50
|
-
"--no-padding": e.noPadding,
|
|
51
|
-
"--no-elevation": e.noElevation
|
|
52
|
-
}
|
|
53
|
-
]]),
|
|
54
|
-
style: S([`--justify: ${e.justify}`]),
|
|
55
|
-
type: h.value
|
|
56
|
-
}, {
|
|
57
|
-
default: j(() => [
|
|
58
|
-
i(e.$slots, "left-icon", {}, () => [
|
|
59
|
-
typeof e.leftIcon == "string" ? (t(), l(u(c), {
|
|
60
|
-
key: 0,
|
|
61
|
-
name: e.leftIcon,
|
|
62
|
-
class: a([s.value])
|
|
63
|
-
}, null, 8, ["name", "class"])) : e.leftIcon ? (t(), l(r(e.leftIcon), {
|
|
64
|
-
key: 1,
|
|
65
|
-
class: a([s.value])
|
|
66
|
-
}, null, 8, ["class"])) : d("v-if", !0)
|
|
67
|
-
], !0),
|
|
68
|
-
i(e.$slots, "icon", {}, () => [
|
|
69
|
-
typeof e.icon == "string" ? (t(), l(u(c), {
|
|
70
|
-
key: 0,
|
|
71
|
-
name: e.icon,
|
|
72
|
-
class: a([s.value])
|
|
73
|
-
}, null, 8, ["name", "class"])) : e.icon ? (t(), l(r(e.icon), {
|
|
74
|
-
key: 1,
|
|
75
|
-
class: a([s.value])
|
|
76
|
-
}, null, 8, ["class"])) : d("v-if", !0)
|
|
77
|
-
], !0),
|
|
78
|
-
i(e.$slots, "default", {}, void 0, !0),
|
|
79
|
-
i(e.$slots, "right-icon", {}, () => [
|
|
80
|
-
typeof e.rightIcon == "string" ? (t(), l(u(c), {
|
|
81
|
-
key: 0,
|
|
82
|
-
name: e.rightIcon,
|
|
83
|
-
class: a([s.value])
|
|
84
|
-
}, null, 8, ["name", "class"])) : e.rightIcon ? (t(), l(r(e.rightIcon), {
|
|
85
|
-
key: 1,
|
|
86
|
-
class: a([s.value])
|
|
87
|
-
}, null, 8, ["class"])) : d("v-if", !0)
|
|
88
|
-
], !0),
|
|
89
|
-
I.value ? (t(), M("div", O, [
|
|
90
|
-
E(u(v), {
|
|
91
|
-
size: "2em",
|
|
92
|
-
color: e.color
|
|
93
|
-
}, null, 8, ["color"])
|
|
94
|
-
])) : d("v-if", !0)
|
|
95
|
-
]),
|
|
96
|
-
_: 3
|
|
97
|
-
/* FORWARDED */
|
|
98
|
-
}, 8, ["disabled", "class", "style", "type"]));
|
|
99
|
-
}
|
|
100
|
-
}), R = /* @__PURE__ */ F(A, [["__scopeId", "data-v-bee684ff"]]);
|
|
101
|
-
export {
|
|
102
|
-
R as default
|
|
103
|
-
};
|