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.
Files changed (198) hide show
  1. package/dist/cjs/index.js +1 -0
  2. package/dist/cjs/index.js.map +1 -0
  3. package/dist/cjs/no_photo-4ae7c0fa.js +1 -0
  4. package/dist/cjs/no_photo-4ae7c0fa.js.map +1 -0
  5. package/dist/index.js +16 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/main.css +1454 -0
  8. package/dist/no_photo-a72545e4.js +2 -0
  9. package/dist/no_photo-a72545e4.js.map +1 -0
  10. package/dist/package.json +136 -0
  11. package/dist/types/components/MazArrowIcon.vue.d.ts +37 -0
  12. package/dist/types/components/MazAvatar.vue.d.ts +110 -0
  13. package/dist/types/components/MazBackDrop.vue.d.ts +90 -0
  14. package/dist/types/components/MazBottomSheet.vue.d.ts +31 -0
  15. package/dist/types/components/MazBtn.vue.d.ts +120 -0
  16. package/dist/types/components/MazCard.vue.d.ts +149 -0
  17. package/dist/types/components/MazCheckbox.vue.d.ts +40 -0
  18. package/dist/types/components/MazDialog.vue.d.ts +15 -0
  19. package/dist/types/components/MazDropzone/index.vue.d.ts +90 -0
  20. package/dist/types/components/MazGallery.vue.d.ts +117 -0
  21. package/dist/types/components/MazIcon.vue.d.ts +63 -0
  22. package/dist/types/components/MazInput.vue.d.ts +206 -0
  23. package/dist/types/components/MazInputPrice.vue.d.ts +47 -0
  24. package/dist/types/components/MazLazyImg.vue.d.ts +69 -0
  25. package/dist/types/components/MazPhoneNumberInput/constantes/locales.d.ts +11 -0
  26. package/dist/types/components/MazPhoneNumberInput/index.vue.d.ts +195 -0
  27. package/dist/types/components/MazPhoneNumberInput/types.d.ts +19 -0
  28. package/dist/types/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +3 -0
  29. package/dist/types/components/MazPhoneNumberInput/utils/index.d.ts +15 -0
  30. package/dist/types/components/MazSelect.vue.d.ts +110 -0
  31. package/dist/types/components/MazSpinner.vue.d.ts +25 -0
  32. package/dist/types/components/MazTransitionExpand.vue.d.ts +4 -0
  33. package/dist/types/components/index.d.ts +18 -0
  34. package/dist/types/components/types.d.ts +50 -0
  35. package/dist/types/components_tmp/MazCalendar/types.d.ts +16 -0
  36. package/dist/types/components_tmp/MazChart/includes.d.ts +11 -0
  37. package/dist/types/components_tmp/MazMap/map-module/create-html-marker.d.ts +18 -0
  38. package/dist/types/components_tmp/MazMap/map-module/map.d.ts +43 -0
  39. package/dist/types/components_tmp/MazMap/map-module/script-loader.d.ts +17 -0
  40. package/dist/types/components_tmp/MazPromiseDialog/use-maz-promise-dialog.d.ts +28 -0
  41. package/dist/types/components_tmp/MazSlider/utils.d.ts +15 -0
  42. package/dist/types/components_tmp/MazTabs/maz-tabs.composable.d.ts +3 -0
  43. package/dist/types/components_tmp/toaster/index.d.ts +3 -0
  44. package/dist/types/components_tmp/toaster/positions.d.ts +8 -0
  45. package/dist/types/components_tmp/toaster/timer.d.ts +11 -0
  46. package/dist/types/components_tmp/toaster/use-toast.d.ts +21 -0
  47. package/dist/types/directives/click-outside.directive.d.ts +10 -0
  48. package/dist/types/directives/closable.directive.d.ts +5 -0
  49. package/dist/types/directives/index.d.ts +4 -0
  50. package/dist/types/directives/v-lazy-img/index.d.ts +9 -0
  51. package/dist/types/directives/v-lazy-img/lazy-img-handler.d.ts +38 -0
  52. package/dist/types/directives/v-lazy-img/lazy-img.directive.d.ts +3 -0
  53. package/dist/types/directives/v-lazy-img/types.d.ts +51 -0
  54. package/dist/types/directives/zoom-img.directive.d.ts +5 -0
  55. package/dist/types/filters/capitalize.d.ts +1 -0
  56. package/dist/types/filters/currency.d.ts +5 -0
  57. package/dist/types/filters/date.d.ts +1 -0
  58. package/dist/types/filters/index.d.ts +5 -0
  59. package/dist/types/filters/number.d.ts +1 -0
  60. package/dist/types/filters/telephone.d.ts +1 -0
  61. package/dist/types/index.d.ts +7 -0
  62. package/dist/types/index.esm.d.ts +8 -0
  63. package/dist/types/utils/debounce.d.ts +7 -0
  64. package/dist/types/utils/index.d.ts +1 -0
  65. package/dist/types/utils/injectStrict.d.ts +1 -0
  66. package/package.json +103 -84
  67. package/LICENSE +0 -21
  68. package/README.md +0 -66
  69. package/bin/index.js +0 -63
  70. package/bin/lib/_constantes/default-colors.js +0 -69
  71. package/bin/lib/index.d.ts +0 -2
  72. package/bin/lib/index.js +0 -145
  73. package/bin/lib/methods/generate-root-css.js +0 -49
  74. package/bin/lib/methods/get-theme-settings.js +0 -58
  75. package/bin/lib/methods/set-css-vars.js +0 -11
  76. package/lib/css/base.css +0 -1
  77. package/lib/css/index.css +0 -1
  78. package/lib/css/maz-avatar.css +0 -1
  79. package/lib/css/maz-bottom-sheet.css +0 -1
  80. package/lib/css/maz-btn-group.css +0 -1
  81. package/lib/css/maz-btn.css +0 -0
  82. package/lib/css/maz-card.css +0 -1
  83. package/lib/css/maz-carousel.css +0 -1
  84. package/lib/css/maz-checkbox.css +0 -1
  85. package/lib/css/maz-collapse.css +0 -1
  86. package/lib/css/maz-dialog.css +0 -1
  87. package/lib/css/maz-draggable-list.css +0 -1
  88. package/lib/css/maz-dropdown.css +0 -1
  89. package/lib/css/maz-dropzone.css +0 -1
  90. package/lib/css/maz-flex.css +0 -0
  91. package/lib/css/maz-gallery.css +0 -0
  92. package/lib/css/maz-img.css +0 -1
  93. package/lib/css/maz-input-tags.css +0 -1
  94. package/lib/css/maz-input.css +0 -0
  95. package/lib/css/maz-list-item.css +0 -1
  96. package/lib/css/maz-list.css +0 -1
  97. package/lib/css/maz-loader.css +0 -0
  98. package/lib/css/maz-pagination.css +0 -1
  99. package/lib/css/maz-phone-number-input.css +0 -1
  100. package/lib/css/maz-picker.css +0 -1
  101. package/lib/css/maz-plotly.css +0 -0
  102. package/lib/css/maz-progress-bar.css +0 -1
  103. package/lib/css/maz-radio.css +0 -1
  104. package/lib/css/maz-read-more.css +0 -1
  105. package/lib/css/maz-responsive-menu.css +0 -1
  106. package/lib/css/maz-search.css +0 -1
  107. package/lib/css/maz-select.css +0 -0
  108. package/lib/css/maz-sidebar.css +0 -1
  109. package/lib/css/maz-slider.css +0 -1
  110. package/lib/css/maz-spinner.css +0 -0
  111. package/lib/css/maz-stepper.css +0 -1
  112. package/lib/css/maz-switch.css +0 -1
  113. package/lib/css/maz-tabs-bar.css +0 -1
  114. package/lib/css/maz-tabs-content-item.css +0 -1
  115. package/lib/css/maz-tabs-content.css +0 -1
  116. package/lib/css/maz-transition-expand.css +0 -0
  117. package/lib/index.d.ts +0 -1
  118. package/lib/index.js +0 -1
  119. package/lib/maz-avatar.d.ts +0 -3
  120. package/lib/maz-avatar.js +0 -430
  121. package/lib/maz-bottom-sheet.d.ts +0 -3
  122. package/lib/maz-bottom-sheet.js +0 -1046
  123. package/lib/maz-btn-group.d.ts +0 -3
  124. package/lib/maz-btn-group.js +0 -908
  125. package/lib/maz-btn.d.ts +0 -3
  126. package/lib/maz-btn.js +0 -765
  127. package/lib/maz-card.d.ts +0 -3
  128. package/lib/maz-card.js +0 -571
  129. package/lib/maz-carousel.d.ts +0 -3
  130. package/lib/maz-carousel.js +0 -569
  131. package/lib/maz-checkbox.d.ts +0 -3
  132. package/lib/maz-checkbox.js +0 -359
  133. package/lib/maz-collapse.d.ts +0 -3
  134. package/lib/maz-collapse.js +0 -1239
  135. package/lib/maz-dialog.d.ts +0 -3
  136. package/lib/maz-dialog.js +0 -1315
  137. package/lib/maz-draggable-list.d.ts +0 -3
  138. package/lib/maz-draggable-list.js +0 -439
  139. package/lib/maz-dropdown.d.ts +0 -3
  140. package/lib/maz-dropdown.js +0 -438
  141. package/lib/maz-dropzone.d.ts +0 -3
  142. package/lib/maz-dropzone.js +0 -664
  143. package/lib/maz-flex.d.ts +0 -3
  144. package/lib/maz-flex.js +0 -427
  145. package/lib/maz-gallery.d.ts +0 -3
  146. package/lib/maz-gallery.js +0 -673
  147. package/lib/maz-img.d.ts +0 -3
  148. package/lib/maz-img.js +0 -613
  149. package/lib/maz-input-tags.d.ts +0 -3
  150. package/lib/maz-input-tags.js +0 -1208
  151. package/lib/maz-input.d.ts +0 -3
  152. package/lib/maz-input.js +0 -1076
  153. package/lib/maz-list-item.d.ts +0 -3
  154. package/lib/maz-list-item.js +0 -304
  155. package/lib/maz-list.d.ts +0 -3
  156. package/lib/maz-list.js +0 -331
  157. package/lib/maz-loader.d.ts +0 -3
  158. package/lib/maz-loader.js +0 -304
  159. package/lib/maz-pagination.d.ts +0 -3
  160. package/lib/maz-pagination.js +0 -1415
  161. package/lib/maz-phone-number-input.d.ts +0 -3
  162. package/lib/maz-phone-number-input.js +0 -3778
  163. package/lib/maz-picker.d.ts +0 -3
  164. package/lib/maz-picker.js +0 -6472
  165. package/lib/maz-plotly.d.ts +0 -3
  166. package/lib/maz-plotly.js +0 -500
  167. package/lib/maz-progress-bar.d.ts +0 -3
  168. package/lib/maz-progress-bar.js +0 -398
  169. package/lib/maz-radio.d.ts +0 -3
  170. package/lib/maz-radio.js +0 -358
  171. package/lib/maz-read-more.d.ts +0 -3
  172. package/lib/maz-read-more.js +0 -344
  173. package/lib/maz-responsive-menu.d.ts +0 -3
  174. package/lib/maz-responsive-menu.js +0 -438
  175. package/lib/maz-search.d.ts +0 -3
  176. package/lib/maz-search.js +0 -1590
  177. package/lib/maz-select.d.ts +0 -3
  178. package/lib/maz-select.js +0 -2743
  179. package/lib/maz-sidebar.d.ts +0 -3
  180. package/lib/maz-sidebar.js +0 -815
  181. package/lib/maz-slider.d.ts +0 -3
  182. package/lib/maz-slider.js +0 -1014
  183. package/lib/maz-spinner.d.ts +0 -3
  184. package/lib/maz-spinner.js +0 -329
  185. package/lib/maz-stepper.d.ts +0 -3
  186. package/lib/maz-stepper.js +0 -1012
  187. package/lib/maz-switch.d.ts +0 -3
  188. package/lib/maz-switch.js +0 -375
  189. package/lib/maz-tabs-bar.d.ts +0 -3
  190. package/lib/maz-tabs-bar.js +0 -428
  191. package/lib/maz-tabs-content-item.d.ts +0 -3
  192. package/lib/maz-tabs-content-item.js +0 -376
  193. package/lib/maz-tabs-content.d.ts +0 -3
  194. package/lib/maz-tabs-content.js +0 -367
  195. package/lib/maz-transition-expand.d.ts +0 -3
  196. package/lib/maz-transition-expand.js +0 -328
  197. package/lib/maz-ui.common.d.ts +0 -1
  198. 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,3 @@
1
+ export declare const countriesNameListByIsoCode: {
2
+ [key: string]: string;
3
+ };
@@ -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,3 @@
1
+ export declare const useMazTabs: () => {
2
+ currentTab: import("vue").Ref<number | undefined>;
3
+ };
@@ -0,0 +1,3 @@
1
+ import { Plugin } from 'vue';
2
+ declare const plugin: Plugin;
3
+ export default plugin;
@@ -0,0 +1,8 @@
1
+ export declare enum Positions {
2
+ TOP_RIGHT = "top-right",
3
+ TOP = "top",
4
+ TOP_LEFT = "top-left",
5
+ BOTTOM_RIGHT = "bottom-right",
6
+ BOTTOM = "bottom",
7
+ BOTTOM_LEFT = "bottom-left"
8
+ }
@@ -0,0 +1,11 @@
1
+ export declare class Timer {
2
+ callback: Function;
3
+ delay: number;
4
+ timer: number;
5
+ startedAt: number;
6
+ constructor(callback: Function, delay: number);
7
+ pause(): void;
8
+ resume(): void;
9
+ start(): void;
10
+ stop(): void;
11
+ }
@@ -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;
@@ -0,0 +1,5 @@
1
+ import { Directive, Plugin } from 'vue';
2
+ declare const directive: Directive;
3
+ export { directive };
4
+ declare const plugin: Plugin;
5
+ export default plugin;