maz-ui 2.3.13 → 2.4.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 (237) hide show
  1. package/components/MazArrowIcon.d.ts +43 -0
  2. package/components/MazArrowIcon.js +1 -0
  3. package/components/MazAvatar.d.ts +149 -0
  4. package/components/MazAvatar.js +3 -0
  5. package/components/MazBackdrop.d.ts +89 -0
  6. package/components/MazBackdrop.js +3 -0
  7. package/components/MazBadge.d.ts +68 -0
  8. package/components/MazBadge.js +1 -0
  9. package/components/MazBottomSheet.d.ts +29 -0
  10. package/components/MazBottomSheet.js +3 -0
  11. package/components/MazBtn.d.ts +171 -0
  12. package/components/MazBtn.js +3 -0
  13. package/components/MazCard.d.ts +183 -0
  14. package/components/MazCard.js +3 -0
  15. package/components/MazCarousel.d.ts +16 -0
  16. package/components/MazCarousel.js +3 -0
  17. package/components/MazChart/includes.d.ts +11 -0
  18. package/components/MazChart.d.ts +114 -0
  19. package/components/MazChart.js +1 -0
  20. package/components/MazCheckbox.d.ts +49 -0
  21. package/components/MazCheckbox.js +1 -0
  22. package/components/MazDialog.d.ts +29 -0
  23. package/components/MazDialog.js +3 -0
  24. package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +30 -0
  25. package/components/MazDialogPromise.d.ts +28 -0
  26. package/components/MazDialogPromise.js +3 -0
  27. package/components/MazDrawer.d.ts +59 -0
  28. package/components/MazDrawer.js +3 -0
  29. package/components/MazDropzone.d.ts +128 -0
  30. package/components/MazDropzone.js +3 -0
  31. package/components/MazGallery.d.ts +144 -0
  32. package/components/MazGallery.js +3 -0
  33. package/components/MazIcon.d.ts +66 -0
  34. package/components/MazIcon.js +3 -0
  35. package/components/MazInput.d.ts +276 -0
  36. package/components/MazInput.js +3 -0
  37. package/components/MazInputNumber.d.ts +67 -0
  38. package/components/MazInputNumber.js +3 -0
  39. package/components/MazInputPrice.d.ts +64 -0
  40. package/components/MazInputPrice.js +3 -0
  41. package/components/MazInputTags.d.ts +96 -0
  42. package/components/MazInputTags.js +3 -0
  43. package/components/MazLazyImg.d.ts +80 -0
  44. package/components/MazLazyImg.js +3 -0
  45. package/components/MazPhoneNumberInput/constantes/locales.d.ts +12 -0
  46. package/components/MazPhoneNumberInput/types.d.ts +21 -0
  47. package/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +2 -0
  48. package/components/MazPhoneNumberInput/utils/index.d.ts +12 -0
  49. package/components/MazPhoneNumberInput.d.ts +255 -0
  50. package/components/MazPhoneNumberInput.js +3 -0
  51. package/components/MazPicker/MazPickerCalendar.vue.d.ts +137 -0
  52. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +22 -0
  53. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +114 -0
  54. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +124 -0
  55. package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +38 -0
  56. package/components/MazPicker/MazPickerContainer.vue.d.ts +212 -0
  57. package/components/MazPicker/MazPickerHeader.vue.d.ts +84 -0
  58. package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +43 -0
  59. package/components/MazPicker/MazPickerShortcuts.vue.d.ts +62 -0
  60. package/components/MazPicker/MazPickerTime.vue.d.ts +129 -0
  61. package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +35 -0
  62. package/components/MazPicker/types.d.ts +15 -0
  63. package/components/MazPicker/utils.d.ts +54 -0
  64. package/components/MazPicker.d.ts +313 -0
  65. package/components/MazPicker.js +3 -0
  66. package/components/MazRadioButtons.d.ts +69 -0
  67. package/components/MazRadioButtons.js +1 -0
  68. package/components/MazSelect.d.ts +176 -0
  69. package/components/MazSelect.js +3 -0
  70. package/components/MazSlider/utils.d.ts +15 -0
  71. package/components/MazSlider.d.ts +96 -0
  72. package/components/MazSlider.js +3 -0
  73. package/components/MazSpinner.d.ts +30 -0
  74. package/components/MazSpinner.js +1 -0
  75. package/components/MazStepper.d.ts +73 -0
  76. package/components/MazStepper.js +1 -0
  77. package/components/MazSwitch.d.ts +56 -0
  78. package/components/MazSwitch.js +1 -0
  79. package/components/MazTabsBar.d.ts +49 -0
  80. package/components/MazTabsBar.js +3 -0
  81. package/components/MazTabsContent.d.ts +16 -0
  82. package/components/MazTabsContent.js +1 -0
  83. package/components/MazTabsContentItem.d.ts +14 -0
  84. package/components/MazTabsContentItem.js +3 -0
  85. package/components/MazTextarea/textarea-autogrow.d.ts +9 -0
  86. package/components/MazTextarea.d.ts +125 -0
  87. package/components/MazTextarea.js +1 -0
  88. package/components/MazTransitionExpand.d.ts +4 -0
  89. package/components/MazTransitionExpand.js +1 -0
  90. package/components/index.d.ts +34 -0
  91. package/components/index.js +36 -0
  92. package/components/no_photo-a72545e4.js +1 -0
  93. package/components/types.d.ts +17 -0
  94. package/css/aos.css +1 -0
  95. package/css/main.css +1 -0
  96. package/maz-ui.d.ts +307 -0
  97. package/modules/index.js +3 -0
  98. package/modules/no_photo-a72545e4.js +1 -0
  99. package/package.json +145 -81
  100. package/tailwindcss/tailwind.config.js +65 -0
  101. package/tailwindcss/utils/colors.js +28 -0
  102. package/tailwindcss/variables/breakpoints.js +15 -0
  103. package/tailwindcss/variables/colors.js +44 -0
  104. package/tailwindcss/variables/utilities.js +20 -0
  105. package/tailwindcss/variables/z-indexes.js +15 -0
  106. package/LICENSE +0 -21
  107. package/README.md +0 -66
  108. package/bin/index.js +0 -63
  109. package/bin/lib/_constantes/default-colors.js +0 -69
  110. package/bin/lib/index.d.ts +0 -2
  111. package/bin/lib/index.js +0 -145
  112. package/bin/lib/methods/generate-root-css.js +0 -49
  113. package/bin/lib/methods/get-theme-settings.js +0 -58
  114. package/bin/lib/methods/set-css-vars.js +0 -11
  115. package/lib/css/base.css +0 -1
  116. package/lib/css/index.css +0 -1
  117. package/lib/css/maz-avatar.css +0 -1
  118. package/lib/css/maz-bottom-sheet.css +0 -1
  119. package/lib/css/maz-btn-group.css +0 -1
  120. package/lib/css/maz-btn.css +0 -0
  121. package/lib/css/maz-card.css +0 -1
  122. package/lib/css/maz-carousel.css +0 -1
  123. package/lib/css/maz-checkbox.css +0 -1
  124. package/lib/css/maz-collapse.css +0 -1
  125. package/lib/css/maz-dialog.css +0 -1
  126. package/lib/css/maz-draggable-list.css +0 -1
  127. package/lib/css/maz-dropdown.css +0 -1
  128. package/lib/css/maz-dropzone.css +0 -1
  129. package/lib/css/maz-flex.css +0 -0
  130. package/lib/css/maz-gallery.css +0 -0
  131. package/lib/css/maz-img.css +0 -1
  132. package/lib/css/maz-input-tags.css +0 -1
  133. package/lib/css/maz-input.css +0 -0
  134. package/lib/css/maz-list-item.css +0 -1
  135. package/lib/css/maz-list.css +0 -1
  136. package/lib/css/maz-loader.css +0 -0
  137. package/lib/css/maz-pagination.css +0 -1
  138. package/lib/css/maz-phone-number-input.css +0 -1
  139. package/lib/css/maz-picker.css +0 -1
  140. package/lib/css/maz-plotly.css +0 -0
  141. package/lib/css/maz-progress-bar.css +0 -1
  142. package/lib/css/maz-radio.css +0 -1
  143. package/lib/css/maz-read-more.css +0 -1
  144. package/lib/css/maz-responsive-menu.css +0 -1
  145. package/lib/css/maz-search.css +0 -1
  146. package/lib/css/maz-select.css +0 -0
  147. package/lib/css/maz-sidebar.css +0 -1
  148. package/lib/css/maz-slider.css +0 -1
  149. package/lib/css/maz-spinner.css +0 -0
  150. package/lib/css/maz-stepper.css +0 -1
  151. package/lib/css/maz-switch.css +0 -1
  152. package/lib/css/maz-tabs-bar.css +0 -1
  153. package/lib/css/maz-tabs-content-item.css +0 -1
  154. package/lib/css/maz-tabs-content.css +0 -1
  155. package/lib/css/maz-transition-expand.css +0 -0
  156. package/lib/index.d.ts +0 -1
  157. package/lib/index.js +0 -1
  158. package/lib/maz-avatar.d.ts +0 -3
  159. package/lib/maz-avatar.js +0 -430
  160. package/lib/maz-bottom-sheet.d.ts +0 -3
  161. package/lib/maz-bottom-sheet.js +0 -1045
  162. package/lib/maz-btn-group.d.ts +0 -3
  163. package/lib/maz-btn-group.js +0 -907
  164. package/lib/maz-btn.d.ts +0 -3
  165. package/lib/maz-btn.js +0 -764
  166. package/lib/maz-card.d.ts +0 -3
  167. package/lib/maz-card.js +0 -572
  168. package/lib/maz-carousel.d.ts +0 -3
  169. package/lib/maz-carousel.js +0 -569
  170. package/lib/maz-checkbox.d.ts +0 -3
  171. package/lib/maz-checkbox.js +0 -359
  172. package/lib/maz-collapse.d.ts +0 -3
  173. package/lib/maz-collapse.js +0 -1238
  174. package/lib/maz-dialog.d.ts +0 -3
  175. package/lib/maz-dialog.js +0 -1315
  176. package/lib/maz-draggable-list.d.ts +0 -3
  177. package/lib/maz-draggable-list.js +0 -439
  178. package/lib/maz-dropdown.d.ts +0 -3
  179. package/lib/maz-dropdown.js +0 -438
  180. package/lib/maz-dropzone.d.ts +0 -3
  181. package/lib/maz-dropzone.js +0 -664
  182. package/lib/maz-flex.d.ts +0 -3
  183. package/lib/maz-flex.js +0 -427
  184. package/lib/maz-gallery.d.ts +0 -3
  185. package/lib/maz-gallery.js +0 -672
  186. package/lib/maz-img.d.ts +0 -3
  187. package/lib/maz-img.js +0 -612
  188. package/lib/maz-input-tags.d.ts +0 -3
  189. package/lib/maz-input-tags.js +0 -1207
  190. package/lib/maz-input.d.ts +0 -3
  191. package/lib/maz-input.js +0 -1076
  192. package/lib/maz-list-item.d.ts +0 -3
  193. package/lib/maz-list-item.js +0 -304
  194. package/lib/maz-list.d.ts +0 -3
  195. package/lib/maz-list.js +0 -331
  196. package/lib/maz-loader.d.ts +0 -3
  197. package/lib/maz-loader.js +0 -304
  198. package/lib/maz-pagination.d.ts +0 -3
  199. package/lib/maz-pagination.js +0 -1414
  200. package/lib/maz-phone-number-input.d.ts +0 -3
  201. package/lib/maz-phone-number-input.js +0 -3776
  202. package/lib/maz-picker.d.ts +0 -3
  203. package/lib/maz-picker.js +0 -6474
  204. package/lib/maz-plotly.d.ts +0 -3
  205. package/lib/maz-plotly.js +0 -500
  206. package/lib/maz-progress-bar.d.ts +0 -3
  207. package/lib/maz-progress-bar.js +0 -398
  208. package/lib/maz-radio.d.ts +0 -3
  209. package/lib/maz-radio.js +0 -358
  210. package/lib/maz-read-more.d.ts +0 -3
  211. package/lib/maz-read-more.js +0 -344
  212. package/lib/maz-responsive-menu.d.ts +0 -3
  213. package/lib/maz-responsive-menu.js +0 -438
  214. package/lib/maz-search.d.ts +0 -3
  215. package/lib/maz-search.js +0 -1590
  216. package/lib/maz-select.d.ts +0 -3
  217. package/lib/maz-select.js +0 -2740
  218. package/lib/maz-sidebar.d.ts +0 -3
  219. package/lib/maz-sidebar.js +0 -815
  220. package/lib/maz-slider.d.ts +0 -3
  221. package/lib/maz-slider.js +0 -1014
  222. package/lib/maz-spinner.d.ts +0 -3
  223. package/lib/maz-spinner.js +0 -328
  224. package/lib/maz-stepper.d.ts +0 -3
  225. package/lib/maz-stepper.js +0 -1011
  226. package/lib/maz-switch.d.ts +0 -3
  227. package/lib/maz-switch.js +0 -375
  228. package/lib/maz-tabs-bar.d.ts +0 -3
  229. package/lib/maz-tabs-bar.js +0 -428
  230. package/lib/maz-tabs-content-item.d.ts +0 -3
  231. package/lib/maz-tabs-content-item.js +0 -376
  232. package/lib/maz-tabs-content.d.ts +0 -3
  233. package/lib/maz-tabs-content.js +0 -367
  234. package/lib/maz-transition-expand.d.ts +0 -3
  235. package/lib/maz-transition-expand.js +0 -328
  236. package/lib/maz-ui.common.d.ts +0 -1
  237. package/lib/maz-ui.common.js +0 -17202
@@ -0,0 +1,84 @@
1
+ import { type PropType } from 'vue';
2
+ import type { Color } from '../types';
3
+ import type { PickerValue } from './types';
4
+ import type { DateTimeFormatOptions } from './utils';
5
+ declare const _default: import("vue").DefineComponent<{
6
+ modelValue: {
7
+ type: PropType<PickerValue>;
8
+ default: undefined;
9
+ };
10
+ color: {
11
+ type: PropType<Color>;
12
+ required: true;
13
+ };
14
+ locale: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ noShortcuts: {
19
+ type: BooleanConstructor;
20
+ required: true;
21
+ };
22
+ double: {
23
+ type: BooleanConstructor;
24
+ required: true;
25
+ };
26
+ hasDate: {
27
+ type: BooleanConstructor;
28
+ required: true;
29
+ };
30
+ hasTime: {
31
+ type: BooleanConstructor;
32
+ required: true;
33
+ };
34
+ formatterOptions: {
35
+ type: PropType<DateTimeFormatOptions>;
36
+ required: true;
37
+ };
38
+ calendarDate: {
39
+ type: StringConstructor;
40
+ required: true;
41
+ };
42
+ }, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
43
+ [key: string]: any;
44
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
45
+ modelValue: {
46
+ type: PropType<PickerValue>;
47
+ default: undefined;
48
+ };
49
+ color: {
50
+ type: PropType<Color>;
51
+ required: true;
52
+ };
53
+ locale: {
54
+ type: StringConstructor;
55
+ required: true;
56
+ };
57
+ noShortcuts: {
58
+ type: BooleanConstructor;
59
+ required: true;
60
+ };
61
+ double: {
62
+ type: BooleanConstructor;
63
+ required: true;
64
+ };
65
+ hasDate: {
66
+ type: BooleanConstructor;
67
+ required: true;
68
+ };
69
+ hasTime: {
70
+ type: BooleanConstructor;
71
+ required: true;
72
+ };
73
+ formatterOptions: {
74
+ type: PropType<DateTimeFormatOptions>;
75
+ required: true;
76
+ };
77
+ calendarDate: {
78
+ type: StringConstructor;
79
+ required: true;
80
+ };
81
+ }>>, {
82
+ modelValue: PickerValue;
83
+ }>;
84
+ export default _default;
@@ -0,0 +1,43 @@
1
+ import type { PropType } from 'vue';
2
+ import type { Color } from '../types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ calendarDate: {
5
+ type: StringConstructor;
6
+ required: true;
7
+ };
8
+ color: {
9
+ type: PropType<Color>;
10
+ required: true;
11
+ };
12
+ locale: {
13
+ type: StringConstructor;
14
+ required: true;
15
+ };
16
+ double: {
17
+ type: BooleanConstructor;
18
+ required: true;
19
+ };
20
+ }, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
21
+ [key: string]: any;
22
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:calendar-date" | "close")[], "update:calendar-date" | "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
+ calendarDate: {
24
+ type: StringConstructor;
25
+ required: true;
26
+ };
27
+ color: {
28
+ type: PropType<Color>;
29
+ required: true;
30
+ };
31
+ locale: {
32
+ type: StringConstructor;
33
+ required: true;
34
+ };
35
+ double: {
36
+ type: BooleanConstructor;
37
+ required: true;
38
+ };
39
+ }>> & {
40
+ "onUpdate:calendar-date"?: ((...args: any[]) => any) | undefined;
41
+ onClose?: ((...args: any[]) => any) | undefined;
42
+ }, {}>;
43
+ export default _default;
@@ -0,0 +1,62 @@
1
+ import { type PropType } from 'vue';
2
+ import type { Color } from '../types';
3
+ import type { PickerShortcut, PickerValue } from './types';
4
+ declare const _default: import("vue").DefineComponent<{
5
+ color: {
6
+ type: PropType<Color>;
7
+ required: true;
8
+ };
9
+ modelValue: {
10
+ type: PropType<PickerValue>;
11
+ default: undefined;
12
+ };
13
+ shortcuts: {
14
+ type: PropType<PickerShortcut[]>;
15
+ required: true;
16
+ };
17
+ double: {
18
+ type: BooleanConstructor;
19
+ required: true;
20
+ };
21
+ shortcut: {
22
+ type: StringConstructor;
23
+ default: undefined;
24
+ };
25
+ disabled: {
26
+ type: BooleanConstructor;
27
+ required: true;
28
+ };
29
+ }, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
30
+ [key: string]: any;
31
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:model-value"[], "update:model-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
+ color: {
33
+ type: PropType<Color>;
34
+ required: true;
35
+ };
36
+ modelValue: {
37
+ type: PropType<PickerValue>;
38
+ default: undefined;
39
+ };
40
+ shortcuts: {
41
+ type: PropType<PickerShortcut[]>;
42
+ required: true;
43
+ };
44
+ double: {
45
+ type: BooleanConstructor;
46
+ required: true;
47
+ };
48
+ shortcut: {
49
+ type: StringConstructor;
50
+ default: undefined;
51
+ };
52
+ disabled: {
53
+ type: BooleanConstructor;
54
+ required: true;
55
+ };
56
+ }>> & {
57
+ "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
58
+ }, {
59
+ modelValue: PickerValue;
60
+ shortcut: string;
61
+ }>;
62
+ export default _default;
@@ -0,0 +1,129 @@
1
+ import { type PropType } from 'vue';
2
+ import { type DateTimeFormatOptions } from './utils';
3
+ import type { PickerValue } from './types';
4
+ import type { Color } from '../types';
5
+ declare const _default: import("vue").DefineComponent<{
6
+ modelValue: {
7
+ type: PropType<PickerValue>;
8
+ default: undefined;
9
+ };
10
+ calendarDate: {
11
+ type: StringConstructor;
12
+ required: true;
13
+ };
14
+ formatterOptions: {
15
+ type: PropType<DateTimeFormatOptions>;
16
+ required: true;
17
+ };
18
+ locale: {
19
+ type: StringConstructor;
20
+ required: true;
21
+ };
22
+ color: {
23
+ type: PropType<Color>;
24
+ required: true;
25
+ };
26
+ isOpen: {
27
+ type: BooleanConstructor;
28
+ required: true;
29
+ };
30
+ hasDate: {
31
+ type: BooleanConstructor;
32
+ required: true;
33
+ };
34
+ minuteInterval: {
35
+ type: NumberConstructor;
36
+ required: true;
37
+ };
38
+ disabledHours: {
39
+ type: PropType<number[]>;
40
+ default: undefined;
41
+ };
42
+ format: {
43
+ type: StringConstructor;
44
+ required: true;
45
+ };
46
+ isHour12: {
47
+ type: BooleanConstructor;
48
+ required: true;
49
+ };
50
+ minDate: {
51
+ type: StringConstructor;
52
+ default: undefined;
53
+ };
54
+ maxDate: {
55
+ type: StringConstructor;
56
+ default: undefined;
57
+ };
58
+ disabled: {
59
+ type: BooleanConstructor;
60
+ required: true;
61
+ };
62
+ }, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
63
+ [key: string]: any;
64
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:model-value"[], "update:model-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
65
+ modelValue: {
66
+ type: PropType<PickerValue>;
67
+ default: undefined;
68
+ };
69
+ calendarDate: {
70
+ type: StringConstructor;
71
+ required: true;
72
+ };
73
+ formatterOptions: {
74
+ type: PropType<DateTimeFormatOptions>;
75
+ required: true;
76
+ };
77
+ locale: {
78
+ type: StringConstructor;
79
+ required: true;
80
+ };
81
+ color: {
82
+ type: PropType<Color>;
83
+ required: true;
84
+ };
85
+ isOpen: {
86
+ type: BooleanConstructor;
87
+ required: true;
88
+ };
89
+ hasDate: {
90
+ type: BooleanConstructor;
91
+ required: true;
92
+ };
93
+ minuteInterval: {
94
+ type: NumberConstructor;
95
+ required: true;
96
+ };
97
+ disabledHours: {
98
+ type: PropType<number[]>;
99
+ default: undefined;
100
+ };
101
+ format: {
102
+ type: StringConstructor;
103
+ required: true;
104
+ };
105
+ isHour12: {
106
+ type: BooleanConstructor;
107
+ required: true;
108
+ };
109
+ minDate: {
110
+ type: StringConstructor;
111
+ default: undefined;
112
+ };
113
+ maxDate: {
114
+ type: StringConstructor;
115
+ default: undefined;
116
+ };
117
+ disabled: {
118
+ type: BooleanConstructor;
119
+ required: true;
120
+ };
121
+ }>> & {
122
+ "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
123
+ }, {
124
+ modelValue: PickerValue;
125
+ disabledHours: number[];
126
+ minDate: string;
127
+ maxDate: string;
128
+ }>;
129
+ export default _default;
@@ -0,0 +1,35 @@
1
+ import { type PropType } from 'vue';
2
+ import type { Color } from '@components/types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ color: {
5
+ type: PropType<Color>;
6
+ required: true;
7
+ };
8
+ locale: {
9
+ type: StringConstructor;
10
+ required: true;
11
+ };
12
+ calendarDate: {
13
+ type: StringConstructor;
14
+ required: true;
15
+ };
16
+ }, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
17
+ [key: string]: any;
18
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:calendar-date" | "close")[], "update:calendar-date" | "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ color: {
20
+ type: PropType<Color>;
21
+ required: true;
22
+ };
23
+ locale: {
24
+ type: StringConstructor;
25
+ required: true;
26
+ };
27
+ calendarDate: {
28
+ type: StringConstructor;
29
+ required: true;
30
+ };
31
+ }>> & {
32
+ "onUpdate:calendar-date"?: ((...args: any[]) => any) | undefined;
33
+ onClose?: ((...args: any[]) => any) | undefined;
34
+ }, {}>;
35
+ export default _default;
@@ -0,0 +1,15 @@
1
+ export type SimpleValue = string | undefined;
2
+ export type RangeValue = {
3
+ start: string;
4
+ end: string;
5
+ };
6
+ export type PartialRangeValue = Partial<RangeValue>;
7
+ export type PickerValue = SimpleValue | PartialRangeValue;
8
+ export type PickerShortcut = {
9
+ identifier: string;
10
+ label: string;
11
+ value: {
12
+ start: string;
13
+ end: string;
14
+ };
15
+ };
@@ -0,0 +1,54 @@
1
+ import type { ConfigType, OpUnitType } from 'dayjs';
2
+ import type { PartialRangeValue } from './types';
3
+ export type DateTimeFormatOptions = Pick<Intl.DateTimeFormatOptions, 'hour12' | 'dateStyle' | 'timeStyle' | 'timeZone'>;
4
+ export declare function getFormattedDate({ value, locale, options, }: {
5
+ value?: string;
6
+ locale: string;
7
+ options?: Intl.DateTimeFormatOptions;
8
+ }): string | undefined;
9
+ export declare function getRangeFormattedDate({ value, locale, options, }: {
10
+ value: PartialRangeValue;
11
+ locale: string;
12
+ options: Intl.DateTimeFormatOptions;
13
+ }): string | undefined;
14
+ export declare function getFirstDayOfMonth(value: ConfigType): number;
15
+ export declare function getWeekDays(locale: string, offset?: number): {
16
+ label: string;
17
+ dayNumber: number;
18
+ }[];
19
+ export declare function getDaysInMonth(date: ConfigType): number;
20
+ export declare function isToday(date: ConfigType): boolean;
21
+ export declare function isSameDate(date: ConfigType, date2: ConfigType, unit: OpUnitType): boolean;
22
+ export declare function isSmaller(date: ConfigType, date2: ConfigType): boolean;
23
+ export declare function isSameDay(date: ConfigType, dayNumber: number): boolean;
24
+ export declare function getISODate(value?: ConfigType, format?: string): string | undefined;
25
+ export declare function getRangeISODate(value: PartialRangeValue, format?: string): {
26
+ start: string | undefined;
27
+ end: string | undefined;
28
+ };
29
+ type CheckValueResponse = {
30
+ newValue?: string;
31
+ newCurrentDate?: string;
32
+ };
33
+ export declare function checkValueWithMinMaxDates({ value, minDate, maxDate, format, }: {
34
+ value: string;
35
+ minDate?: string;
36
+ maxDate?: string;
37
+ format: string;
38
+ }): CheckValueResponse;
39
+ export declare function isValueDisabledWeekly({ value, disabledWeekly, }: {
40
+ value: string;
41
+ disabledWeekly: number[];
42
+ }): boolean;
43
+ export declare function isValueDisabledDate({ value, disabledDates, }: {
44
+ value: string;
45
+ disabledDates: string[];
46
+ }): boolean;
47
+ export declare const scrollToTarget: (scrollContainer: HTMLElement, target: HTMLElement, offset?: number, hasSmoothEffect?: boolean) => void;
48
+ export declare const findNearestNumberInList: (list: number[], number: number) => number;
49
+ export declare function convertHour24to12Format(baseHour: number): number;
50
+ export declare function convertHour12to24Format(baseHour: number): number;
51
+ export declare const convert12To24TimeFormat: (timeStr: string) => string;
52
+ export declare function getBrowserLocale(): string | undefined;
53
+ export declare function fetchLocale(): Promise<string | undefined>;
54
+ export {};