maz-ui 2.3.10 → 3.0.0-beta.2
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/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/no_photo-4ae7c0fa.js +1 -0
- package/dist/cjs/no_photo-4ae7c0fa.js.map +1 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/main.css +1454 -0
- package/dist/no_photo-a72545e4.js +2 -0
- package/dist/no_photo-a72545e4.js.map +1 -0
- package/dist/package.json +136 -0
- package/dist/types/components/MazArrowIcon.vue.d.ts +37 -0
- package/dist/types/components/MazAvatar.vue.d.ts +110 -0
- package/dist/types/components/MazBackDrop.vue.d.ts +90 -0
- package/dist/types/components/MazBottomSheet.vue.d.ts +31 -0
- package/dist/types/components/MazBtn.vue.d.ts +120 -0
- package/dist/types/components/MazCard.vue.d.ts +149 -0
- package/dist/types/components/MazCheckbox.vue.d.ts +40 -0
- package/dist/types/components/MazDialog.vue.d.ts +15 -0
- package/dist/types/components/MazDropzone/index.vue.d.ts +90 -0
- package/dist/types/components/MazGallery.vue.d.ts +117 -0
- package/dist/types/components/MazIcon.vue.d.ts +63 -0
- package/dist/types/components/MazInput.vue.d.ts +206 -0
- package/dist/types/components/MazInputPrice.vue.d.ts +47 -0
- package/dist/types/components/MazLazyImg.vue.d.ts +69 -0
- package/dist/types/components/MazPhoneNumberInput/constantes/locales.d.ts +11 -0
- package/dist/types/components/MazPhoneNumberInput/index.vue.d.ts +195 -0
- package/dist/types/components/MazPhoneNumberInput/types.d.ts +19 -0
- package/dist/types/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +3 -0
- package/dist/types/components/MazPhoneNumberInput/utils/index.d.ts +15 -0
- package/dist/types/components/MazSelect.vue.d.ts +110 -0
- package/dist/types/components/MazSpinner.vue.d.ts +25 -0
- package/dist/types/components/MazTransitionExpand.vue.d.ts +4 -0
- package/dist/types/components/index.d.ts +18 -0
- package/dist/types/components/types.d.ts +50 -0
- package/dist/types/components_tmp/MazCalendar/types.d.ts +16 -0
- package/dist/types/components_tmp/MazChart/includes.d.ts +11 -0
- package/dist/types/components_tmp/MazMap/map-module/create-html-marker.d.ts +18 -0
- package/dist/types/components_tmp/MazMap/map-module/map.d.ts +43 -0
- package/dist/types/components_tmp/MazMap/map-module/script-loader.d.ts +17 -0
- package/dist/types/components_tmp/MazPromiseDialog/use-maz-promise-dialog.d.ts +28 -0
- package/dist/types/components_tmp/MazSlider/utils.d.ts +15 -0
- package/dist/types/components_tmp/MazTabs/maz-tabs.composable.d.ts +3 -0
- package/dist/types/components_tmp/toaster/index.d.ts +3 -0
- package/dist/types/components_tmp/toaster/positions.d.ts +8 -0
- package/dist/types/components_tmp/toaster/timer.d.ts +11 -0
- package/dist/types/components_tmp/toaster/use-toast.d.ts +21 -0
- package/dist/types/directives/click-outside.directive.d.ts +10 -0
- package/dist/types/directives/closable.directive.d.ts +5 -0
- package/dist/types/directives/index.d.ts +4 -0
- package/dist/types/directives/v-lazy-img/index.d.ts +9 -0
- package/dist/types/directives/v-lazy-img/lazy-img-handler.d.ts +38 -0
- package/dist/types/directives/v-lazy-img/lazy-img.directive.d.ts +3 -0
- package/dist/types/directives/v-lazy-img/types.d.ts +51 -0
- package/dist/types/directives/zoom-img.directive.d.ts +5 -0
- package/dist/types/filters/capitalize.d.ts +1 -0
- package/dist/types/filters/currency.d.ts +5 -0
- package/dist/types/filters/date.d.ts +1 -0
- package/dist/types/filters/index.d.ts +5 -0
- package/dist/types/filters/number.d.ts +1 -0
- package/dist/types/filters/telephone.d.ts +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.esm.d.ts +8 -0
- package/dist/types/utils/debounce.d.ts +7 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/injectStrict.d.ts +1 -0
- package/package.json +103 -84
- package/LICENSE +0 -21
- package/README.md +0 -66
- package/bin/index.js +0 -63
- package/bin/lib/_constantes/default-colors.js +0 -69
- package/bin/lib/index.d.ts +0 -2
- package/bin/lib/index.js +0 -145
- package/bin/lib/methods/generate-root-css.js +0 -49
- package/bin/lib/methods/get-theme-settings.js +0 -58
- package/bin/lib/methods/set-css-vars.js +0 -11
- package/lib/css/base.css +0 -1
- package/lib/css/index.css +0 -1
- package/lib/css/maz-avatar.css +0 -1
- package/lib/css/maz-bottom-sheet.css +0 -1
- package/lib/css/maz-btn-group.css +0 -1
- package/lib/css/maz-btn.css +0 -0
- package/lib/css/maz-card.css +0 -1
- package/lib/css/maz-carousel.css +0 -1
- package/lib/css/maz-checkbox.css +0 -1
- package/lib/css/maz-collapse.css +0 -1
- package/lib/css/maz-dialog.css +0 -1
- package/lib/css/maz-draggable-list.css +0 -1
- package/lib/css/maz-dropdown.css +0 -1
- package/lib/css/maz-dropzone.css +0 -1
- package/lib/css/maz-flex.css +0 -0
- package/lib/css/maz-gallery.css +0 -0
- package/lib/css/maz-img.css +0 -1
- package/lib/css/maz-input-tags.css +0 -1
- package/lib/css/maz-input.css +0 -0
- package/lib/css/maz-list-item.css +0 -1
- package/lib/css/maz-list.css +0 -1
- package/lib/css/maz-loader.css +0 -0
- package/lib/css/maz-pagination.css +0 -1
- package/lib/css/maz-phone-number-input.css +0 -1
- package/lib/css/maz-picker.css +0 -1
- package/lib/css/maz-plotly.css +0 -0
- package/lib/css/maz-progress-bar.css +0 -1
- package/lib/css/maz-radio.css +0 -1
- package/lib/css/maz-read-more.css +0 -1
- package/lib/css/maz-responsive-menu.css +0 -1
- package/lib/css/maz-search.css +0 -1
- package/lib/css/maz-select.css +0 -0
- package/lib/css/maz-sidebar.css +0 -1
- package/lib/css/maz-slider.css +0 -1
- package/lib/css/maz-spinner.css +0 -0
- package/lib/css/maz-stepper.css +0 -1
- package/lib/css/maz-switch.css +0 -1
- package/lib/css/maz-tabs-bar.css +0 -1
- package/lib/css/maz-tabs-content-item.css +0 -1
- package/lib/css/maz-tabs-content.css +0 -1
- package/lib/css/maz-transition-expand.css +0 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/maz-avatar.d.ts +0 -3
- package/lib/maz-avatar.js +0 -430
- package/lib/maz-bottom-sheet.d.ts +0 -3
- package/lib/maz-bottom-sheet.js +0 -1046
- package/lib/maz-btn-group.d.ts +0 -3
- package/lib/maz-btn-group.js +0 -908
- package/lib/maz-btn.d.ts +0 -3
- package/lib/maz-btn.js +0 -765
- package/lib/maz-card.d.ts +0 -3
- package/lib/maz-card.js +0 -571
- package/lib/maz-carousel.d.ts +0 -3
- package/lib/maz-carousel.js +0 -569
- package/lib/maz-checkbox.d.ts +0 -3
- package/lib/maz-checkbox.js +0 -359
- package/lib/maz-collapse.d.ts +0 -3
- package/lib/maz-collapse.js +0 -1239
- package/lib/maz-dialog.d.ts +0 -3
- package/lib/maz-dialog.js +0 -1315
- package/lib/maz-draggable-list.d.ts +0 -3
- package/lib/maz-draggable-list.js +0 -439
- package/lib/maz-dropdown.d.ts +0 -3
- package/lib/maz-dropdown.js +0 -438
- package/lib/maz-dropzone.d.ts +0 -3
- package/lib/maz-dropzone.js +0 -664
- package/lib/maz-flex.d.ts +0 -3
- package/lib/maz-flex.js +0 -427
- package/lib/maz-gallery.d.ts +0 -3
- package/lib/maz-gallery.js +0 -673
- package/lib/maz-img.d.ts +0 -3
- package/lib/maz-img.js +0 -613
- package/lib/maz-input-tags.d.ts +0 -3
- package/lib/maz-input-tags.js +0 -1208
- package/lib/maz-input.d.ts +0 -3
- package/lib/maz-input.js +0 -1076
- package/lib/maz-list-item.d.ts +0 -3
- package/lib/maz-list-item.js +0 -304
- package/lib/maz-list.d.ts +0 -3
- package/lib/maz-list.js +0 -331
- package/lib/maz-loader.d.ts +0 -3
- package/lib/maz-loader.js +0 -304
- package/lib/maz-pagination.d.ts +0 -3
- package/lib/maz-pagination.js +0 -1415
- package/lib/maz-phone-number-input.d.ts +0 -3
- package/lib/maz-phone-number-input.js +0 -3778
- package/lib/maz-picker.d.ts +0 -3
- package/lib/maz-picker.js +0 -6472
- package/lib/maz-plotly.d.ts +0 -3
- package/lib/maz-plotly.js +0 -500
- package/lib/maz-progress-bar.d.ts +0 -3
- package/lib/maz-progress-bar.js +0 -398
- package/lib/maz-radio.d.ts +0 -3
- package/lib/maz-radio.js +0 -358
- package/lib/maz-read-more.d.ts +0 -3
- package/lib/maz-read-more.js +0 -344
- package/lib/maz-responsive-menu.d.ts +0 -3
- package/lib/maz-responsive-menu.js +0 -438
- package/lib/maz-search.d.ts +0 -3
- package/lib/maz-search.js +0 -1590
- package/lib/maz-select.d.ts +0 -3
- package/lib/maz-select.js +0 -2743
- package/lib/maz-sidebar.d.ts +0 -3
- package/lib/maz-sidebar.js +0 -815
- package/lib/maz-slider.d.ts +0 -3
- package/lib/maz-slider.js +0 -1014
- package/lib/maz-spinner.d.ts +0 -3
- package/lib/maz-spinner.js +0 -329
- package/lib/maz-stepper.d.ts +0 -3
- package/lib/maz-stepper.js +0 -1012
- package/lib/maz-switch.d.ts +0 -3
- package/lib/maz-switch.js +0 -375
- package/lib/maz-tabs-bar.d.ts +0 -3
- package/lib/maz-tabs-bar.js +0 -428
- package/lib/maz-tabs-content-item.d.ts +0 -3
- package/lib/maz-tabs-content-item.js +0 -376
- package/lib/maz-tabs-content.d.ts +0 -3
- package/lib/maz-tabs-content.js +0 -367
- package/lib/maz-transition-expand.d.ts +0 -3
- package/lib/maz-transition-expand.js +0 -328
- package/lib/maz-ui.common.d.ts +0 -1
- package/lib/maz-ui.common.js +0 -17200
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import type { CountryCode } from 'libphonenumber-js';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import { Color, Position, Size } from '../types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
validator: (prop: string) => boolean;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
10
|
+
id: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
placeholder: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
18
|
+
defaultPhoneNumber: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: undefined;
|
|
21
|
+
};
|
|
22
|
+
defaultCountryCode: {
|
|
23
|
+
type: PropType<CountryCode>;
|
|
24
|
+
default: undefined;
|
|
25
|
+
validator: (code: CountryCode) => boolean;
|
|
26
|
+
};
|
|
27
|
+
preferredCountries: {
|
|
28
|
+
type: PropType<CountryCode[]>;
|
|
29
|
+
default: undefined;
|
|
30
|
+
};
|
|
31
|
+
ignoredCountries: {
|
|
32
|
+
type: PropType<CountryCode[]>;
|
|
33
|
+
default: undefined;
|
|
34
|
+
};
|
|
35
|
+
onlyCountries: {
|
|
36
|
+
type: PropType<CountryCode[]>;
|
|
37
|
+
default: undefined;
|
|
38
|
+
};
|
|
39
|
+
translations: {
|
|
40
|
+
type: PropType<{
|
|
41
|
+
countrySelector: {
|
|
42
|
+
placeholder: string;
|
|
43
|
+
error: string;
|
|
44
|
+
};
|
|
45
|
+
phoneInput: {
|
|
46
|
+
placeholder: string;
|
|
47
|
+
example: string;
|
|
48
|
+
};
|
|
49
|
+
}>;
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
listPosition: {
|
|
53
|
+
type: PropType<Position>;
|
|
54
|
+
default: string;
|
|
55
|
+
validator: (value: Position) => boolean;
|
|
56
|
+
};
|
|
57
|
+
color: {
|
|
58
|
+
type: PropType<Color>;
|
|
59
|
+
default: string;
|
|
60
|
+
validator: (value: string) => boolean;
|
|
61
|
+
};
|
|
62
|
+
size: {
|
|
63
|
+
type: PropType<Size>;
|
|
64
|
+
default: string;
|
|
65
|
+
validator: (value: string) => boolean;
|
|
66
|
+
};
|
|
67
|
+
noFlags: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
disabled: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
noExample: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
noSearch: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
noUseBrowserLocale: {
|
|
84
|
+
type: BooleanConstructor;
|
|
85
|
+
default: boolean;
|
|
86
|
+
};
|
|
87
|
+
fetchCountry: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
noCountrySelector: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
showCodeOnList: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
error: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
103
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
104
|
+
[key: string]: any;
|
|
105
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update" | "update:model-value" | "country-code")[], "update" | "update:model-value" | "country-code", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
106
|
+
modelValue?: unknown;
|
|
107
|
+
id?: unknown;
|
|
108
|
+
placeholder?: unknown;
|
|
109
|
+
defaultPhoneNumber?: unknown;
|
|
110
|
+
defaultCountryCode?: unknown;
|
|
111
|
+
preferredCountries?: unknown;
|
|
112
|
+
ignoredCountries?: unknown;
|
|
113
|
+
onlyCountries?: unknown;
|
|
114
|
+
translations?: unknown;
|
|
115
|
+
listPosition?: unknown;
|
|
116
|
+
color?: unknown;
|
|
117
|
+
size?: unknown;
|
|
118
|
+
noFlags?: unknown;
|
|
119
|
+
disabled?: unknown;
|
|
120
|
+
noExample?: unknown;
|
|
121
|
+
noSearch?: unknown;
|
|
122
|
+
noUseBrowserLocale?: unknown;
|
|
123
|
+
fetchCountry?: unknown;
|
|
124
|
+
noCountrySelector?: unknown;
|
|
125
|
+
showCodeOnList?: unknown;
|
|
126
|
+
error?: unknown;
|
|
127
|
+
} & {
|
|
128
|
+
listPosition: Position;
|
|
129
|
+
color: Color;
|
|
130
|
+
size: Size;
|
|
131
|
+
noFlags: boolean;
|
|
132
|
+
disabled: boolean;
|
|
133
|
+
noExample: boolean;
|
|
134
|
+
noSearch: boolean;
|
|
135
|
+
noUseBrowserLocale: boolean;
|
|
136
|
+
fetchCountry: boolean;
|
|
137
|
+
noCountrySelector: boolean;
|
|
138
|
+
showCodeOnList: boolean;
|
|
139
|
+
error: boolean;
|
|
140
|
+
} & {
|
|
141
|
+
id?: string | undefined;
|
|
142
|
+
modelValue?: string | undefined;
|
|
143
|
+
placeholder?: string | undefined;
|
|
144
|
+
defaultPhoneNumber?: string | undefined;
|
|
145
|
+
defaultCountryCode?: CountryCode | undefined;
|
|
146
|
+
preferredCountries?: CountryCode[] | undefined;
|
|
147
|
+
ignoredCountries?: CountryCode[] | undefined;
|
|
148
|
+
onlyCountries?: CountryCode[] | undefined;
|
|
149
|
+
translations?: {
|
|
150
|
+
countrySelector: {
|
|
151
|
+
placeholder: string;
|
|
152
|
+
error: string;
|
|
153
|
+
};
|
|
154
|
+
phoneInput: {
|
|
155
|
+
placeholder: string;
|
|
156
|
+
example: string;
|
|
157
|
+
};
|
|
158
|
+
} | undefined;
|
|
159
|
+
}> & {
|
|
160
|
+
onUpdate?: ((...args: any[]) => any) | undefined;
|
|
161
|
+
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
162
|
+
"onCountry-code"?: ((...args: any[]) => any) | undefined;
|
|
163
|
+
}, {
|
|
164
|
+
id: string;
|
|
165
|
+
modelValue: string;
|
|
166
|
+
placeholder: string;
|
|
167
|
+
defaultPhoneNumber: string;
|
|
168
|
+
defaultCountryCode: CountryCode;
|
|
169
|
+
preferredCountries: CountryCode[];
|
|
170
|
+
ignoredCountries: CountryCode[];
|
|
171
|
+
onlyCountries: CountryCode[];
|
|
172
|
+
translations: {
|
|
173
|
+
countrySelector: {
|
|
174
|
+
placeholder: string;
|
|
175
|
+
error: string;
|
|
176
|
+
};
|
|
177
|
+
phoneInput: {
|
|
178
|
+
placeholder: string;
|
|
179
|
+
example: string;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
listPosition: Position;
|
|
183
|
+
color: Color;
|
|
184
|
+
size: Size;
|
|
185
|
+
noFlags: boolean;
|
|
186
|
+
disabled: boolean;
|
|
187
|
+
noExample: boolean;
|
|
188
|
+
noSearch: boolean;
|
|
189
|
+
noUseBrowserLocale: boolean;
|
|
190
|
+
fetchCountry: boolean;
|
|
191
|
+
noCountrySelector: boolean;
|
|
192
|
+
showCodeOnList: boolean;
|
|
193
|
+
error: boolean;
|
|
194
|
+
}>;
|
|
195
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CountryCallingCode, CountryCode, NationalNumber, NumberType } from 'libphonenumber-js';
|
|
2
|
+
import locales from './constantes/locales';
|
|
3
|
+
export declare type Result = {
|
|
4
|
+
isValid: boolean;
|
|
5
|
+
countryCode?: CountryCode;
|
|
6
|
+
countryCallingCode?: CountryCallingCode;
|
|
7
|
+
nationalNumber?: NationalNumber;
|
|
8
|
+
type?: NumberType;
|
|
9
|
+
formatInternational?: string;
|
|
10
|
+
formatNational?: string;
|
|
11
|
+
uri?: string;
|
|
12
|
+
e164?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare type Translations = typeof locales;
|
|
15
|
+
export declare type Country = {
|
|
16
|
+
iso2: CountryCode;
|
|
17
|
+
dialCode: CountryCallingCode;
|
|
18
|
+
name: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CountryCode, Examples } from 'libphonenumber-js';
|
|
2
|
+
import { Country, Result } from '../types';
|
|
3
|
+
export declare function getCountryName(code: 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(): Country[] | undefined;
|
|
8
|
+
export declare function browserLocale(): string | undefined;
|
|
9
|
+
export declare function isCountryAvailable(locale: string): boolean;
|
|
10
|
+
export declare const getResultsFromPhoneNumber: (countryCode?: CountryCode | undefined, phoneNumber?: string | undefined) => Result;
|
|
11
|
+
export declare function getAsYouTypeFormat(countryCode: CountryCode, phoneNumber?: string): string | undefined;
|
|
12
|
+
export declare function fetchCountryCode(): Promise<string | undefined>;
|
|
13
|
+
declare type Truthy<T> = T extends false | '' | 0 | null | undefined ? never : T;
|
|
14
|
+
export declare function truthyFilter<T>(value: T): value is Truthy<T>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { Color, ModelValueSimple, Position, Size } from './types';
|
|
3
|
+
export declare type MazSelectOptions = Record<string, ModelValueSimple>;
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: PropType<ModelValueSimple>;
|
|
7
|
+
default: undefined;
|
|
8
|
+
};
|
|
9
|
+
options: {
|
|
10
|
+
type: PropType<MazSelectOptions[]>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
optionValueKey: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
optionLabelKey: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
optionInputValueKey: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
listPosition: {
|
|
26
|
+
type: PropType<Position>;
|
|
27
|
+
default: string;
|
|
28
|
+
validator: (value: Position) => boolean;
|
|
29
|
+
};
|
|
30
|
+
disabled: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
open: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
color: {
|
|
39
|
+
type: PropType<Color>;
|
|
40
|
+
default: string;
|
|
41
|
+
validator: (value: string) => boolean;
|
|
42
|
+
};
|
|
43
|
+
itemHeight: {
|
|
44
|
+
type: NumberConstructor;
|
|
45
|
+
default: number;
|
|
46
|
+
};
|
|
47
|
+
maxListHeight: {
|
|
48
|
+
type: NumberConstructor;
|
|
49
|
+
default: number;
|
|
50
|
+
};
|
|
51
|
+
maxListWidth: {
|
|
52
|
+
type: NumberConstructor;
|
|
53
|
+
default: undefined;
|
|
54
|
+
};
|
|
55
|
+
size: {
|
|
56
|
+
type: PropType<Size>;
|
|
57
|
+
default: string;
|
|
58
|
+
validator: (value: string) => boolean;
|
|
59
|
+
};
|
|
60
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "open" | "update:model-value" | "blur")[], "close" | "open" | "update:model-value" | "blur", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
63
|
+
modelValue?: unknown;
|
|
64
|
+
options?: unknown;
|
|
65
|
+
optionValueKey?: unknown;
|
|
66
|
+
optionLabelKey?: unknown;
|
|
67
|
+
optionInputValueKey?: unknown;
|
|
68
|
+
listPosition?: unknown;
|
|
69
|
+
disabled?: unknown;
|
|
70
|
+
open?: unknown;
|
|
71
|
+
color?: unknown;
|
|
72
|
+
itemHeight?: unknown;
|
|
73
|
+
maxListHeight?: unknown;
|
|
74
|
+
maxListWidth?: unknown;
|
|
75
|
+
size?: unknown;
|
|
76
|
+
} & {
|
|
77
|
+
open: boolean;
|
|
78
|
+
options: MazSelectOptions[];
|
|
79
|
+
optionValueKey: string;
|
|
80
|
+
optionLabelKey: string;
|
|
81
|
+
optionInputValueKey: string;
|
|
82
|
+
listPosition: Position;
|
|
83
|
+
disabled: boolean;
|
|
84
|
+
color: Color;
|
|
85
|
+
itemHeight: number;
|
|
86
|
+
maxListHeight: number;
|
|
87
|
+
size: Size;
|
|
88
|
+
} & {
|
|
89
|
+
modelValue?: ModelValueSimple;
|
|
90
|
+
maxListWidth?: number | undefined;
|
|
91
|
+
}> & {
|
|
92
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
93
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
94
|
+
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
95
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
96
|
+
}, {
|
|
97
|
+
open: boolean;
|
|
98
|
+
modelValue: ModelValueSimple;
|
|
99
|
+
optionValueKey: string;
|
|
100
|
+
optionLabelKey: string;
|
|
101
|
+
optionInputValueKey: string;
|
|
102
|
+
listPosition: Position;
|
|
103
|
+
disabled: boolean;
|
|
104
|
+
color: Color;
|
|
105
|
+
itemHeight: number;
|
|
106
|
+
maxListHeight: number;
|
|
107
|
+
maxListWidth: number;
|
|
108
|
+
size: Size;
|
|
109
|
+
}>;
|
|
110
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { Color } from './types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
size: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
color: {
|
|
9
|
+
type: PropType<Color>;
|
|
10
|
+
default: string;
|
|
11
|
+
validator: (value: string) => boolean;
|
|
12
|
+
};
|
|
13
|
+
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
16
|
+
size?: unknown;
|
|
17
|
+
color?: unknown;
|
|
18
|
+
} & {
|
|
19
|
+
size: string;
|
|
20
|
+
color: Color;
|
|
21
|
+
} & {}>, {
|
|
22
|
+
size: string;
|
|
23
|
+
color: Color;
|
|
24
|
+
}>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { default as MazArrowIcon } from './MazArrowIcon.vue';
|
|
2
|
+
export { default as MazAvatar } from './MazAvatar.vue';
|
|
3
|
+
export { default as MazBackDrop } from './MazBackDrop.vue';
|
|
4
|
+
export { default as MazBottomSheet } from './MazBottomSheet.vue';
|
|
5
|
+
export { default as MazBtn } from './MazBtn.vue';
|
|
6
|
+
export { default as MazCheckbox } from './MazCheckbox.vue';
|
|
7
|
+
export { default as MazDialog } from './MazDialog.vue';
|
|
8
|
+
export { default as MazDropzone } from './MazDropzone/index.vue';
|
|
9
|
+
export { default as MazCard } from './MazCard.vue';
|
|
10
|
+
export { default as MazGallery } from './MazGallery.vue';
|
|
11
|
+
export { default as MazIcon } from './MazIcon.vue';
|
|
12
|
+
export { default as MazInput } from './MazInput.vue';
|
|
13
|
+
export { default as MazInputPrice } from './MazInputPrice.vue';
|
|
14
|
+
export { default as MazLazyImg } from './MazLazyImg.vue';
|
|
15
|
+
export { default as MazPhoneNumberInput } from './MazPhoneNumberInput/index.vue';
|
|
16
|
+
export { default as MazSelect } from './MazSelect.vue';
|
|
17
|
+
export { default as MazSpinner } from './MazSpinner.vue';
|
|
18
|
+
export { default as MazTransitionExpand } from './MazTransitionExpand.vue';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import Dropzone, { DropzoneFile, DropzoneOptions } from 'dropzone';
|
|
2
|
+
import { ComponentPublicInstance } from 'vue';
|
|
3
|
+
export declare type ModelValueSimple = string | number | null | undefined | boolean;
|
|
4
|
+
export declare type MazGalleryImage = {
|
|
5
|
+
slug: string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
} | string;
|
|
8
|
+
export declare type Color = 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger' | 'white' | 'black' | 'transparent';
|
|
9
|
+
export declare const colors: Color[];
|
|
10
|
+
export declare type Size = 'mini' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
11
|
+
export declare type Position = 'top' | 'top right' | 'top left' | 'bottom' | 'bottom right' | 'bottom left';
|
|
12
|
+
export interface Source {
|
|
13
|
+
srcset?: string;
|
|
14
|
+
media?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface DataImage {
|
|
17
|
+
sources?: Source[];
|
|
18
|
+
}
|
|
19
|
+
export declare type Image = DataImage | string;
|
|
20
|
+
export interface MazDropzoneOptions extends DropzoneOptions {
|
|
21
|
+
dictFilesDescriptions?: string;
|
|
22
|
+
autoRemoveOnError?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface MazDropzoneFile extends DropzoneFile {
|
|
25
|
+
manuallyAdded?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface IMazDropzone extends Dropzone {
|
|
28
|
+
options: MazDropzoneOptions;
|
|
29
|
+
}
|
|
30
|
+
export interface MazDropzoneInstance extends ComponentPublicInstance {
|
|
31
|
+
manuallyAddFile: (file: DropzoneFile, fileUrl: string) => void;
|
|
32
|
+
setOption: (option: string, value: any) => IMazDropzone['options'];
|
|
33
|
+
processQueue: IMazDropzone['processQueue'];
|
|
34
|
+
removeFile: IMazDropzone['removeFile'];
|
|
35
|
+
removeAllFiles: IMazDropzone['removeAllFiles'];
|
|
36
|
+
destroy: IMazDropzone['destroy'];
|
|
37
|
+
disable: IMazDropzone['disable'];
|
|
38
|
+
enable: IMazDropzone['enable'];
|
|
39
|
+
accept: IMazDropzone['accept'];
|
|
40
|
+
addFile: IMazDropzone['addFile'];
|
|
41
|
+
resizeImage: IMazDropzone['resizeImage'];
|
|
42
|
+
cancelUpload: IMazDropzone['cancelUpload'];
|
|
43
|
+
getAcceptedFiles: () => MazDropzoneFile[];
|
|
44
|
+
getRejectedFiles: () => MazDropzoneFile[];
|
|
45
|
+
getFilesWithStatus: IMazDropzone['getFilesWithStatus'];
|
|
46
|
+
getQueuedFiles: IMazDropzone['getQueuedFiles'];
|
|
47
|
+
getUploadingFiles: IMazDropzone['getUploadingFiles'];
|
|
48
|
+
getAddedFiles: IMazDropzone['getAddedFiles'];
|
|
49
|
+
getActiveFiles: IMazDropzone['getActiveFiles'];
|
|
50
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface DaySlot {
|
|
2
|
+
start: string;
|
|
3
|
+
end: string;
|
|
4
|
+
options?: {
|
|
5
|
+
badge?: number;
|
|
6
|
+
highlighted?: boolean;
|
|
7
|
+
warning?: boolean;
|
|
8
|
+
blocked?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
};
|
|
11
|
+
extra?: Record<string, any>;
|
|
12
|
+
}
|
|
13
|
+
export interface Day {
|
|
14
|
+
date: string;
|
|
15
|
+
slots?: DaySlot[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const chartJsEventNames: string[];
|
|
2
|
+
export declare function generateEventObject(type: string, chartRef?: HTMLCanvasElement): {
|
|
3
|
+
type: string;
|
|
4
|
+
chartRef: HTMLCanvasElement | undefined;
|
|
5
|
+
preventDefault(): void;
|
|
6
|
+
isDefaultPrevented(): boolean;
|
|
7
|
+
_defaultPrevented: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function generateChartJsEventListener(emit: (event: string, ...args: any[]) => void, event: ReturnType<typeof generateEventObject>): {
|
|
10
|
+
[x: string]: () => boolean;
|
|
11
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="google.maps" />
|
|
2
|
+
interface OffsetPosition {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
export interface HTMLMarker extends google.maps.OverlayView {
|
|
7
|
+
remove(): void;
|
|
8
|
+
getPosition(): google.maps.LatLng | null | undefined;
|
|
9
|
+
getDraggable(): boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const createHTMLMarker: (options: {
|
|
12
|
+
api: typeof google;
|
|
13
|
+
map: google.maps.Map;
|
|
14
|
+
templateHtml: string;
|
|
15
|
+
position: google.maps.LatLng | google.maps.LatLngLiteral;
|
|
16
|
+
offset?: OffsetPosition;
|
|
17
|
+
}) => HTMLMarker;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/// <reference types="google.maps" />
|
|
2
|
+
import { HTMLMarker } from './create-html-marker';
|
|
3
|
+
import { ScriptOptions } from './script-loader';
|
|
4
|
+
export declare type MapOptions = google.maps.MapOptions;
|
|
5
|
+
export interface MapMarker extends google.maps.MarkerOptions {
|
|
6
|
+
infoWindow?: google.maps.InfoWindowOptions;
|
|
7
|
+
}
|
|
8
|
+
export interface MarkerInfoWindowOptions extends google.maps.InfoWindowOptions {
|
|
9
|
+
offset?: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export interface MapHTMLMarker {
|
|
15
|
+
position: google.maps.LatLng | google.maps.LatLngLiteral;
|
|
16
|
+
templateHtml: string;
|
|
17
|
+
offset?: {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
};
|
|
21
|
+
infoWindow?: MarkerInfoWindowOptions;
|
|
22
|
+
}
|
|
23
|
+
export declare class Map {
|
|
24
|
+
private readonly mapContainerId;
|
|
25
|
+
private readonly apiKey;
|
|
26
|
+
private readonly options?;
|
|
27
|
+
private api;
|
|
28
|
+
private map;
|
|
29
|
+
private markers;
|
|
30
|
+
private htmlMarkers;
|
|
31
|
+
private mapOptions;
|
|
32
|
+
constructor(mapContainerId: string, apiKey: string, options?: google.maps.MapOptions | undefined);
|
|
33
|
+
init(options?: ScriptOptions): Promise<void>;
|
|
34
|
+
private getInfoWindow;
|
|
35
|
+
private addInfoWindowContentToMarker;
|
|
36
|
+
addMarker({ infoWindow, ...arguments_ }: MapMarker): google.maps.Marker;
|
|
37
|
+
addHTMLMarker({ position, templateHtml, offset, infoWindow, }: MapHTMLMarker): HTMLMarker;
|
|
38
|
+
get allMarkers(): (google.maps.Marker | HTMLMarker)[];
|
|
39
|
+
fitOnAllMarkers(): void;
|
|
40
|
+
removeAllMarkers(): void;
|
|
41
|
+
}
|
|
42
|
+
export * from './script-loader';
|
|
43
|
+
export * from './create-html-marker';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="google.maps" />
|
|
2
|
+
export interface ScriptOptions {
|
|
3
|
+
[key: string]: string | string[] | undefined;
|
|
4
|
+
language?: string;
|
|
5
|
+
region?: string;
|
|
6
|
+
libraries?: string[];
|
|
7
|
+
}
|
|
8
|
+
export declare class ScriptLoader {
|
|
9
|
+
private readonly apiKey;
|
|
10
|
+
private readonly options?;
|
|
11
|
+
private readonly scriptOptions;
|
|
12
|
+
private resolveScript;
|
|
13
|
+
api: typeof google;
|
|
14
|
+
constructor(apiKey: string, options?: ScriptOptions | undefined);
|
|
15
|
+
private getUrl;
|
|
16
|
+
init(): Promise<typeof google>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface ModalState {
|
|
2
|
+
id: string;
|
|
3
|
+
isActive: boolean;
|
|
4
|
+
resolve: (value: any) => void;
|
|
5
|
+
reject?: (reason?: any) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface ModalData {
|
|
8
|
+
title: string;
|
|
9
|
+
message: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const useMazPromiseDialog: () => {
|
|
12
|
+
confirmDialogData: import("vue").Ref<ModalData | undefined>;
|
|
13
|
+
modalState: import("vue").Ref<{
|
|
14
|
+
id: string;
|
|
15
|
+
isActive: boolean;
|
|
16
|
+
resolve: (value: any) => void;
|
|
17
|
+
reject?: ((reason?: any) => void) | undefined;
|
|
18
|
+
}[]>;
|
|
19
|
+
showModalAndWaitChoice: (identifier: string, callback?: (() => any) | undefined) => Promise<unknown>;
|
|
20
|
+
removeModalFromState: (identifier: string) => {
|
|
21
|
+
id: string;
|
|
22
|
+
isActive: boolean;
|
|
23
|
+
resolve: (value: any) => void;
|
|
24
|
+
reject?: ((reason?: any) => void) | undefined;
|
|
25
|
+
}[];
|
|
26
|
+
rejectModal: (currentModal: ModalState) => void;
|
|
27
|
+
resolveModal: (currentModal: ModalState) => void;
|
|
28
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface IPosObject {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const getOffset: (elem: HTMLDivElement) => IPosObject;
|
|
6
|
+
/**
|
|
7
|
+
* Get the position of the mouse/finger in the element
|
|
8
|
+
* @param e Trigger event
|
|
9
|
+
* @param elem Container element
|
|
10
|
+
* @param isReverse From the right/bottom
|
|
11
|
+
*/
|
|
12
|
+
export declare const getPos: (e: MouseEvent | TouchEvent, elem: HTMLDivElement, isReverse?: boolean) => IPosObject;
|
|
13
|
+
export declare const isBetween: (value: number, prev: number, next: number, direction: string) => boolean;
|
|
14
|
+
export declare const getOpacityCoeff: (index: number, middle: number, length: number) => number;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { Positions } from './positions';
|
|
3
|
+
export interface ToasterOptions {
|
|
4
|
+
position?: Positions;
|
|
5
|
+
timeout?: number;
|
|
6
|
+
closable?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface LocalToasterOptions extends ToasterOptions {
|
|
9
|
+
type?: 'success' | 'info' | 'warning' | 'danger';
|
|
10
|
+
}
|
|
11
|
+
export declare class Toaster {
|
|
12
|
+
private readonly app;
|
|
13
|
+
private readonly globalOptions;
|
|
14
|
+
constructor(app: App, globalOptions: ToasterOptions);
|
|
15
|
+
private show;
|
|
16
|
+
private getLocalOptions;
|
|
17
|
+
success(message: string, options?: ToasterOptions): void;
|
|
18
|
+
error(message: string, options?: ToasterOptions): void;
|
|
19
|
+
info(message: string, options?: ToasterOptions): void;
|
|
20
|
+
warning(message: string, options?: ToasterOptions): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Directive, Plugin } from 'vue';
|
|
2
|
+
declare const directive: Directive;
|
|
3
|
+
declare const mixin: {
|
|
4
|
+
directives: {
|
|
5
|
+
ClickAway: import("vue").ObjectDirective<any, any>;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export { directive, mixin };
|
|
9
|
+
declare const plugin: Plugin;
|
|
10
|
+
export default plugin;
|