maz-ui 3.11.3 → 3.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (358) hide show
  1. package/components/MazAvatar.d.ts +154 -0
  2. package/components/MazBackdrop.d.ts +91 -0
  3. package/components/MazBadge.d.ts +73 -0
  4. package/components/MazBottomSheet.d.ts +36 -0
  5. package/components/MazBtn.d.ts +195 -0
  6. package/components/MazCard.d.ts +194 -0
  7. package/components/MazCarousel.d.ts +24 -0
  8. package/components/MazChart.d.ts +95 -0
  9. package/components/MazCheckbox.d.ts +52 -0
  10. package/components/MazDialog.d.ts +91 -0
  11. package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +30 -0
  12. package/components/MazDialogPromise.d.ts +72 -0
  13. package/components/MazDrawer.d.ts +69 -0
  14. package/components/MazDropzone.d.ts +128 -0
  15. package/components/MazGallery.d.ts +125 -0
  16. package/components/MazIcon.d.ts +64 -0
  17. package/components/MazInput.d.ts +271 -0
  18. package/components/MazInputNumber.d.ts +65 -0
  19. package/components/MazInputPrice.d.ts +69 -0
  20. package/components/MazInputTags.d.ts +92 -0
  21. package/components/MazLazyImg.d.ts +77 -0
  22. package/components/MazPhoneNumberInput/constantes/locales.d.ts +12 -0
  23. package/components/MazPhoneNumberInput/types.d.ts +21 -0
  24. package/components/MazPhoneNumberInput/utils/countries-name-list-by-iso-code.d.ts +2 -0
  25. package/components/MazPhoneNumberInput/utils/index.d.ts +12 -0
  26. package/components/MazPhoneNumberInput.d.ts +251 -0
  27. package/components/MazPicker/MazPickerCalendar.vue.d.ts +135 -0
  28. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +20 -0
  29. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +112 -0
  30. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +122 -0
  31. package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +36 -0
  32. package/components/MazPicker/MazPickerContainer.vue.d.ts +210 -0
  33. package/components/MazPicker/MazPickerFooter.vue.d.ts +16 -0
  34. package/components/MazPicker/MazPickerHeader.vue.d.ts +82 -0
  35. package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +41 -0
  36. package/components/MazPicker/MazPickerShortcuts.vue.d.ts +60 -0
  37. package/components/MazPicker/MazPickerTime.vue.d.ts +127 -0
  38. package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +33 -0
  39. package/components/MazPicker/types.d.ts +15 -0
  40. package/components/MazPicker/utils.d.ts +54 -0
  41. package/components/MazPicker.d.ts +309 -0
  42. package/components/MazRadioButtons.d.ts +77 -0
  43. package/components/MazSelect.d.ts +184 -0
  44. package/components/MazSlider/utils.d.ts +15 -0
  45. package/components/MazSlider.d.ts +92 -0
  46. package/components/MazSpinner.d.ts +26 -0
  47. package/components/MazStepper.d.ts +112 -0
  48. package/components/MazSwitch.d.ts +54 -0
  49. package/components/MazTabs.d.ts +28 -0
  50. package/components/MazTabsBar.d.ts +55 -0
  51. package/components/MazTabsContent.d.ts +9 -0
  52. package/components/MazTabsContentItem.d.ts +19 -0
  53. package/components/MazTextarea/textarea-autogrow.d.ts +9 -0
  54. package/components/MazTextarea.d.ts +121 -0
  55. package/components/MazTransitionExpand.d.ts +9 -0
  56. package/components/component-list.d.ts +1 -0
  57. package/components/index.d.ts +35 -0
  58. package/components/types.d.ts +17 -0
  59. package/icons/academic-cap.svg +5 -0
  60. package/icons/adjustments-horizontal.svg +5 -0
  61. package/icons/adjustments-vertical.svg +5 -0
  62. package/icons/archive-box-arrow-down.svg +5 -0
  63. package/icons/archive-box-x-mark.svg +5 -0
  64. package/icons/archive-box.svg +5 -0
  65. package/icons/arrow-down-circle.svg +5 -0
  66. package/icons/arrow-down-left.svg +4 -0
  67. package/icons/arrow-down-on-square-stack.svg +5 -0
  68. package/icons/arrow-down-on-square.svg +5 -0
  69. package/icons/arrow-down-right.svg +4 -0
  70. package/icons/arrow-down-tray.svg +5 -0
  71. package/icons/arrow-down.svg +4 -0
  72. package/icons/arrow-left-circle.svg +5 -0
  73. package/icons/arrow-left-on-rectangle.svg +5 -0
  74. package/icons/arrow-left.svg +4 -0
  75. package/icons/arrow-long-down.svg +4 -0
  76. package/icons/arrow-long-left.svg +4 -0
  77. package/icons/arrow-long-right.svg +4 -0
  78. package/icons/arrow-long-up.svg +4 -0
  79. package/icons/arrow-path-rounded-square.svg +5 -0
  80. package/icons/arrow-path.svg +5 -0
  81. package/icons/arrow-right-circle.svg +5 -0
  82. package/icons/arrow-right-on-rectangle.svg +5 -0
  83. package/icons/arrow-right.svg +4 -0
  84. package/icons/arrow-small-down.svg +4 -0
  85. package/icons/arrow-small-left.svg +4 -0
  86. package/icons/arrow-small-right.svg +4 -0
  87. package/icons/arrow-small-up.svg +4 -0
  88. package/icons/arrow-top-right-on-square.svg +5 -0
  89. package/icons/arrow-trending-down.svg +5 -0
  90. package/icons/arrow-trending-up.svg +5 -0
  91. package/icons/arrow-up-circle.svg +5 -0
  92. package/icons/arrow-up-left.svg +4 -0
  93. package/icons/arrow-up-on-square-stack.svg +5 -0
  94. package/icons/arrow-up-on-square.svg +5 -0
  95. package/icons/arrow-up-right.svg +4 -0
  96. package/icons/arrow-up-tray.svg +5 -0
  97. package/icons/arrow-up.svg +4 -0
  98. package/icons/arrow-uturn-down.svg +4 -0
  99. package/icons/arrow-uturn-left.svg +4 -0
  100. package/icons/arrow-uturn-right.svg +4 -0
  101. package/icons/arrow-uturn-up.svg +4 -0
  102. package/icons/arrows-pointing-in.svg +5 -0
  103. package/icons/arrows-pointing-out.svg +5 -0
  104. package/icons/arrows-right-left.svg +4 -0
  105. package/icons/arrows-up-down.svg +4 -0
  106. package/icons/at-symbol.svg +5 -0
  107. package/icons/backspace.svg +5 -0
  108. package/icons/backward.svg +8 -0
  109. package/icons/banknotes.svg +5 -0
  110. package/icons/bars-2.svg +4 -0
  111. package/icons/bars-3-bottom-left.svg +4 -0
  112. package/icons/bars-3-bottom-right.svg +4 -0
  113. package/icons/bars-3-center-left.svg +4 -0
  114. package/icons/bars-3.svg +4 -0
  115. package/icons/bars-4.svg +4 -0
  116. package/icons/bars-arrow-down.svg +4 -0
  117. package/icons/bars-arrow-up.svg +4 -0
  118. package/icons/battery-0.svg +5 -0
  119. package/icons/battery-100.svg +5 -0
  120. package/icons/battery-50.svg +5 -0
  121. package/icons/beaker.svg +5 -0
  122. package/icons/bell-alert.svg +5 -0
  123. package/icons/bell-slash.svg +5 -0
  124. package/icons/bell-snooze.svg +5 -0
  125. package/icons/bell.svg +5 -0
  126. package/icons/bolt-slash.svg +5 -0
  127. package/icons/bolt.svg +4 -0
  128. package/icons/book-open.svg +5 -0
  129. package/icons/bookmark-slash.svg +5 -0
  130. package/icons/bookmark-square.svg +5 -0
  131. package/icons/bookmark.svg +5 -0
  132. package/icons/briefcase.svg +7 -0
  133. package/icons/bug-ant.svg +5 -0
  134. package/icons/building-library.svg +5 -0
  135. package/icons/building-office-2.svg +5 -0
  136. package/icons/building-office.svg +5 -0
  137. package/icons/building-storefront.svg +5 -0
  138. package/icons/cake.svg +5 -0
  139. package/icons/calculator.svg +5 -0
  140. package/icons/calendar-days.svg +5 -0
  141. package/icons/calendar.svg +5 -0
  142. package/icons/camera.svg +10 -0
  143. package/icons/chart-bar-square.svg +5 -0
  144. package/icons/chart-bar.svg +11 -0
  145. package/icons/chart-pie.svg +6 -0
  146. package/icons/chat-bubble-bottom-center-text.svg +5 -0
  147. package/icons/chat-bubble-bottom-center.svg +5 -0
  148. package/icons/chat-bubble-left-ellipsis.svg +5 -0
  149. package/icons/chat-bubble-left-right.svg +5 -0
  150. package/icons/chat-bubble-left.svg +5 -0
  151. package/icons/chat-bubble-oval-left-ellipsis.svg +5 -0
  152. package/icons/chat-bubble-oval-left.svg +5 -0
  153. package/icons/check-badge.svg +5 -0
  154. package/icons/check-circle.svg +5 -0
  155. package/icons/check.svg +4 -0
  156. package/icons/chevron-double-down.svg +4 -0
  157. package/icons/chevron-double-left.svg +4 -0
  158. package/icons/chevron-double-right.svg +4 -0
  159. package/icons/chevron-double-up.svg +4 -0
  160. package/icons/chevron-down.svg +4 -0
  161. package/icons/chevron-left.svg +4 -0
  162. package/icons/chevron-right.svg +4 -0
  163. package/icons/chevron-up-down.svg +4 -0
  164. package/icons/chevron-up.svg +4 -0
  165. package/icons/circle-stack.svg +5 -0
  166. package/icons/clipboard-document-check.svg +5 -0
  167. package/icons/clipboard-document-list.svg +5 -0
  168. package/icons/clipboard-document.svg +5 -0
  169. package/icons/clipboard.svg +5 -0
  170. package/icons/clock.svg +5 -0
  171. package/icons/cloud-arrow-down.svg +5 -0
  172. package/icons/cloud-arrow-up.svg +5 -0
  173. package/icons/cloud.svg +5 -0
  174. package/icons/code-bracket-square.svg +5 -0
  175. package/icons/code-bracket.svg +4 -0
  176. package/icons/cog-6-tooth.svg +8 -0
  177. package/icons/cog-8-tooth.svg +8 -0
  178. package/icons/cog.svg +5 -0
  179. package/icons/command-line.svg +5 -0
  180. package/icons/computer-desktop.svg +5 -0
  181. package/icons/cpu-chip.svg +5 -0
  182. package/icons/credit-card.svg +5 -0
  183. package/icons/cube-transparent.svg +5 -0
  184. package/icons/cube.svg +4 -0
  185. package/icons/currency-bangladeshi.svg +5 -0
  186. package/icons/currency-dollar.svg +5 -0
  187. package/icons/currency-euro.svg +5 -0
  188. package/icons/currency-pound.svg +5 -0
  189. package/icons/currency-rupee.svg +5 -0
  190. package/icons/currency-yen.svg +5 -0
  191. package/icons/cursor-arrow-rays.svg +5 -0
  192. package/icons/cursor-arrow-ripple.svg +5 -0
  193. package/icons/device-phone-mobile.svg +5 -0
  194. package/icons/device-tablet.svg +5 -0
  195. package/icons/document-arrow-down.svg +5 -0
  196. package/icons/document-arrow-up.svg +5 -0
  197. package/icons/document-chart-bar.svg +5 -0
  198. package/icons/document-check.svg +5 -0
  199. package/icons/document-duplicate.svg +5 -0
  200. package/icons/document-magnifying-glass.svg +5 -0
  201. package/icons/document-minus.svg +5 -0
  202. package/icons/document-plus.svg +5 -0
  203. package/icons/document-text.svg +5 -0
  204. package/icons/document.svg +5 -0
  205. package/icons/ellipsis-horizontal-circle.svg +5 -0
  206. package/icons/ellipsis-horizontal.svg +11 -0
  207. package/icons/ellipsis-vertical.svg +11 -0
  208. package/icons/envelope-open.svg +5 -0
  209. package/icons/envelope.svg +5 -0
  210. package/icons/exclamation-circle.svg +5 -0
  211. package/icons/exclamation-triangle.svg +5 -0
  212. package/icons/eye-dropper.svg +5 -0
  213. package/icons/eye-slash.svg +5 -0
  214. package/icons/eye.svg +8 -0
  215. package/icons/face-frown.svg +5 -0
  216. package/icons/face-smile.svg +5 -0
  217. package/icons/film.svg +5 -0
  218. package/icons/finger-print.svg +5 -0
  219. package/icons/fire.svg +8 -0
  220. package/icons/flag.svg +5 -0
  221. package/icons/folder-arrow-down.svg +5 -0
  222. package/icons/folder-minus.svg +5 -0
  223. package/icons/folder-open.svg +5 -0
  224. package/icons/folder-plus.svg +5 -0
  225. package/icons/folder.svg +5 -0
  226. package/icons/fork.svg +6 -0
  227. package/icons/forward.svg +8 -0
  228. package/icons/funnel.svg +5 -0
  229. package/icons/gif.svg +5 -0
  230. package/icons/gift-top.svg +5 -0
  231. package/icons/gift.svg +5 -0
  232. package/icons/github.svg +5 -0
  233. package/icons/globe-alt.svg +5 -0
  234. package/icons/globe-americas.svg +5 -0
  235. package/icons/globe-asia-australia.svg +5 -0
  236. package/icons/globe-europe-africa.svg +5 -0
  237. package/icons/hand-raised.svg +5 -0
  238. package/icons/hand-thumb-down.svg +5 -0
  239. package/icons/hand-thumb-up.svg +5 -0
  240. package/icons/hashtag.svg +4 -0
  241. package/icons/heart.svg +5 -0
  242. package/icons/home-modern.svg +5 -0
  243. package/icons/home.svg +5 -0
  244. package/icons/identification.svg +5 -0
  245. package/icons/inbox-arrow-down.svg +5 -0
  246. package/icons/inbox-stack.svg +5 -0
  247. package/icons/inbox.svg +5 -0
  248. package/icons/information-circle.svg +5 -0
  249. package/icons/key.svg +5 -0
  250. package/icons/language.svg +5 -0
  251. package/icons/lifebuoy.svg +5 -0
  252. package/icons/light-bulb.svg +5 -0
  253. package/icons/link.svg +5 -0
  254. package/icons/list-bullet.svg +5 -0
  255. package/icons/lock-closed.svg +5 -0
  256. package/icons/lock-open.svg +5 -0
  257. package/icons/magnifying-glass-circle.svg +5 -0
  258. package/icons/magnifying-glass-minus.svg +5 -0
  259. package/icons/magnifying-glass-plus.svg +5 -0
  260. package/icons/magnifying-glass.svg +5 -0
  261. package/icons/map-pin.svg +8 -0
  262. package/icons/map.svg +5 -0
  263. package/icons/megaphone.svg +5 -0
  264. package/icons/microphone.svg +5 -0
  265. package/icons/minus-circle.svg +5 -0
  266. package/icons/minus-small.svg +3 -0
  267. package/icons/minus.svg +3 -0
  268. package/icons/moon.svg +5 -0
  269. package/icons/musical-note.svg +5 -0
  270. package/icons/newspaper.svg +5 -0
  271. package/icons/no-photography.svg +10 -0
  272. package/icons/no-symbol.svg +5 -0
  273. package/icons/paint-brush.svg +5 -0
  274. package/icons/paper-airplane.svg +5 -0
  275. package/icons/paper-clip.svg +5 -0
  276. package/icons/pause-circle.svg +5 -0
  277. package/icons/pause.svg +4 -0
  278. package/icons/pencil-square.svg +5 -0
  279. package/icons/pencil.svg +5 -0
  280. package/icons/phone-arrow-down-left.svg +5 -0
  281. package/icons/phone-arrow-up-right.svg +5 -0
  282. package/icons/phone-x-mark.svg +5 -0
  283. package/icons/phone.svg +5 -0
  284. package/icons/photo.svg +5 -0
  285. package/icons/play-circle.svg +8 -0
  286. package/icons/play-pause.svg +5 -0
  287. package/icons/play.svg +5 -0
  288. package/icons/plus-circle.svg +5 -0
  289. package/icons/plus-small.svg +4 -0
  290. package/icons/plus.svg +4 -0
  291. package/icons/power.svg +5 -0
  292. package/icons/presentation-chart-bar.svg +5 -0
  293. package/icons/presentation-chart-line.svg +5 -0
  294. package/icons/printer.svg +5 -0
  295. package/icons/puzzle-piece.svg +5 -0
  296. package/icons/qr-code.svg +27 -0
  297. package/icons/question-mark-circle.svg +5 -0
  298. package/icons/queue-list.svg +5 -0
  299. package/icons/radio.svg +5 -0
  300. package/icons/receipt-percent.svg +5 -0
  301. package/icons/receipt-refund.svg +5 -0
  302. package/icons/rectangle-group.svg +11 -0
  303. package/icons/rectangle-stack.svg +5 -0
  304. package/icons/rocket-launch.svg +5 -0
  305. package/icons/rss.svg +5 -0
  306. package/icons/scale.svg +5 -0
  307. package/icons/scissors.svg +5 -0
  308. package/icons/server-stack.svg +5 -0
  309. package/icons/server.svg +5 -0
  310. package/icons/share.svg +5 -0
  311. package/icons/shield-check.svg +5 -0
  312. package/icons/shield-exclamation.svg +5 -0
  313. package/icons/shopping-bag.svg +5 -0
  314. package/icons/shopping-cart.svg +5 -0
  315. package/icons/signal-slash.svg +5 -0
  316. package/icons/signal.svg +5 -0
  317. package/icons/sparkles.svg +11 -0
  318. package/icons/speaker-wave.svg +5 -0
  319. package/icons/speaker-x-mark.svg +5 -0
  320. package/icons/square-2-stack.svg +5 -0
  321. package/icons/square-3-stack-3d.svg +5 -0
  322. package/icons/squares-2x2.svg +14 -0
  323. package/icons/squares-plus.svg +5 -0
  324. package/icons/star.svg +5 -0
  325. package/icons/stop-circle.svg +8 -0
  326. package/icons/stop.svg +5 -0
  327. package/icons/sun.svg +5 -0
  328. package/icons/swatch.svg +5 -0
  329. package/icons/table-cells.svg +5 -0
  330. package/icons/tag.svg +7 -0
  331. package/icons/ticket.svg +5 -0
  332. package/icons/trash.svg +5 -0
  333. package/icons/trophy.svg +5 -0
  334. package/icons/truck.svg +5 -0
  335. package/icons/tv.svg +5 -0
  336. package/icons/user-circle.svg +5 -0
  337. package/icons/user-group.svg +5 -0
  338. package/icons/user-minus.svg +5 -0
  339. package/icons/user-plus.svg +5 -0
  340. package/icons/user.svg +8 -0
  341. package/icons/users.svg +5 -0
  342. package/icons/variable.svg +5 -0
  343. package/icons/video-camera-slash.svg +5 -0
  344. package/icons/video-camera.svg +5 -0
  345. package/icons/view-columns.svg +5 -0
  346. package/icons/viewfinder-circle.svg +5 -0
  347. package/icons/wallet.svg +5 -0
  348. package/icons/wifi.svg +5 -0
  349. package/icons/window.svg +5 -0
  350. package/icons/wrench-screwdriver.svg +5 -0
  351. package/icons/wrench.svg +7 -0
  352. package/icons/x-circle.svg +5 -0
  353. package/icons/x-mark.svg +4 -0
  354. package/nuxt/index.ts +49 -21
  355. package/package.json +12 -8
  356. package/tailwindcss/tailwind.config.ts +2 -2
  357. package/types/nuxt/index.d.ts +12 -8
  358. package/types/tailwindcss/tailwind.config.d.ts +75 -1
@@ -0,0 +1,127 @@
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
+ }, {}, 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<{
63
+ modelValue: {
64
+ type: PropType<PickerValue>;
65
+ default: undefined;
66
+ };
67
+ calendarDate: {
68
+ type: StringConstructor;
69
+ required: true;
70
+ };
71
+ formatterOptions: {
72
+ type: PropType<DateTimeFormatOptions>;
73
+ required: true;
74
+ };
75
+ locale: {
76
+ type: StringConstructor;
77
+ required: true;
78
+ };
79
+ color: {
80
+ type: PropType<Color>;
81
+ required: true;
82
+ };
83
+ isOpen: {
84
+ type: BooleanConstructor;
85
+ required: true;
86
+ };
87
+ hasDate: {
88
+ type: BooleanConstructor;
89
+ required: true;
90
+ };
91
+ minuteInterval: {
92
+ type: NumberConstructor;
93
+ required: true;
94
+ };
95
+ disabledHours: {
96
+ type: PropType<number[]>;
97
+ default: undefined;
98
+ };
99
+ format: {
100
+ type: StringConstructor;
101
+ required: true;
102
+ };
103
+ isHour12: {
104
+ type: BooleanConstructor;
105
+ required: true;
106
+ };
107
+ minDate: {
108
+ type: StringConstructor;
109
+ default: undefined;
110
+ };
111
+ maxDate: {
112
+ type: StringConstructor;
113
+ default: undefined;
114
+ };
115
+ disabled: {
116
+ type: BooleanConstructor;
117
+ required: true;
118
+ };
119
+ }>> & {
120
+ "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
121
+ }, {
122
+ modelValue: PickerValue;
123
+ minDate: string;
124
+ maxDate: string;
125
+ disabledHours: number[];
126
+ }, {}>;
127
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import { type PropType } from 'vue';
2
+ import type { Color } from './../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
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:calendar-date")[], "close" | "update:calendar-date", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
+ color: {
18
+ type: PropType<Color>;
19
+ required: true;
20
+ };
21
+ locale: {
22
+ type: StringConstructor;
23
+ required: true;
24
+ };
25
+ calendarDate: {
26
+ type: StringConstructor;
27
+ required: true;
28
+ };
29
+ }>> & {
30
+ onClose?: ((...args: any[]) => any) | undefined;
31
+ "onUpdate:calendar-date"?: ((...args: any[]) => any) | undefined;
32
+ }, {}, {}>;
33
+ 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 {};
@@ -0,0 +1,309 @@
1
+ import { type PropType, type StyleValue } from 'vue';
2
+ import type { Color, Position } from './types';
3
+ import type { PickerValue, PickerShortcut } from './MazPicker/types';
4
+ export type { PickerValue, PickerShortcut } from './MazPicker/types';
5
+ export type { Color, Position } from './types';
6
+ declare const _default: import("vue").DefineComponent<{
7
+ modelValue: {
8
+ type: PropType<PickerValue>;
9
+ default: undefined;
10
+ };
11
+ format: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ open: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ label: {
20
+ type: StringConstructor;
21
+ default: undefined;
22
+ };
23
+ placeholder: {
24
+ type: StringConstructor;
25
+ default: undefined;
26
+ };
27
+ inputDateStyle: {
28
+ type: PropType<Intl.DateTimeFormatOptions>;
29
+ default: () => {
30
+ dateStyle: string;
31
+ };
32
+ };
33
+ locale: {
34
+ type: StringConstructor;
35
+ default: undefined;
36
+ };
37
+ style: {
38
+ type: PropType<StyleValue>;
39
+ default: undefined;
40
+ };
41
+ noHeader: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ disabled: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ firstDayOfWeek: {
50
+ type: NumberConstructor;
51
+ default: number;
52
+ validator: (value: number) => boolean;
53
+ };
54
+ autoClose: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ customElementSelector: {
59
+ type: StringConstructor;
60
+ default: undefined;
61
+ };
62
+ double: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ inline: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
70
+ color: {
71
+ type: PropType<Color>;
72
+ default: string;
73
+ };
74
+ pickerPosition: {
75
+ type: PropType<Position>;
76
+ default: undefined;
77
+ validator: (value: Position) => boolean;
78
+ };
79
+ time: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
83
+ onlyTime: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ minuteInterval: {
88
+ type: NumberConstructor;
89
+ default: number;
90
+ };
91
+ noUseBrowserLocale: {
92
+ type: BooleanConstructor;
93
+ default: boolean;
94
+ };
95
+ noFetchLocal: {
96
+ type: BooleanConstructor;
97
+ default: boolean;
98
+ };
99
+ noShortcuts: {
100
+ type: BooleanConstructor;
101
+ default: boolean;
102
+ };
103
+ shortcuts: {
104
+ type: PropType<PickerShortcut[]>;
105
+ default: () => {
106
+ label: string;
107
+ identifier: string;
108
+ value: {
109
+ start: string;
110
+ end: string;
111
+ };
112
+ }[];
113
+ };
114
+ shortcut: {
115
+ type: StringConstructor;
116
+ default: undefined;
117
+ };
118
+ minDate: {
119
+ type: StringConstructor;
120
+ default: undefined;
121
+ };
122
+ maxDate: {
123
+ type: StringConstructor;
124
+ default: undefined;
125
+ };
126
+ disabledWeekly: {
127
+ type: PropType<number[]>;
128
+ default: () => never[];
129
+ validator: (value: number) => boolean;
130
+ };
131
+ disabledDates: {
132
+ type: PropType<string[]>;
133
+ default: () => never[];
134
+ };
135
+ disabledHours: {
136
+ type: PropType<number[]>;
137
+ default: () => never[];
138
+ validator: (value: number) => boolean;
139
+ };
140
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:model-value")[], "close" | "update:model-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
141
+ modelValue: {
142
+ type: PropType<PickerValue>;
143
+ default: undefined;
144
+ };
145
+ format: {
146
+ type: StringConstructor;
147
+ default: string;
148
+ };
149
+ open: {
150
+ type: BooleanConstructor;
151
+ default: boolean;
152
+ };
153
+ label: {
154
+ type: StringConstructor;
155
+ default: undefined;
156
+ };
157
+ placeholder: {
158
+ type: StringConstructor;
159
+ default: undefined;
160
+ };
161
+ inputDateStyle: {
162
+ type: PropType<Intl.DateTimeFormatOptions>;
163
+ default: () => {
164
+ dateStyle: string;
165
+ };
166
+ };
167
+ locale: {
168
+ type: StringConstructor;
169
+ default: undefined;
170
+ };
171
+ style: {
172
+ type: PropType<StyleValue>;
173
+ default: undefined;
174
+ };
175
+ noHeader: {
176
+ type: BooleanConstructor;
177
+ default: boolean;
178
+ };
179
+ disabled: {
180
+ type: BooleanConstructor;
181
+ default: boolean;
182
+ };
183
+ firstDayOfWeek: {
184
+ type: NumberConstructor;
185
+ default: number;
186
+ validator: (value: number) => boolean;
187
+ };
188
+ autoClose: {
189
+ type: BooleanConstructor;
190
+ default: boolean;
191
+ };
192
+ customElementSelector: {
193
+ type: StringConstructor;
194
+ default: undefined;
195
+ };
196
+ double: {
197
+ type: BooleanConstructor;
198
+ default: boolean;
199
+ };
200
+ inline: {
201
+ type: BooleanConstructor;
202
+ default: boolean;
203
+ };
204
+ color: {
205
+ type: PropType<Color>;
206
+ default: string;
207
+ };
208
+ pickerPosition: {
209
+ type: PropType<Position>;
210
+ default: undefined;
211
+ validator: (value: Position) => boolean;
212
+ };
213
+ time: {
214
+ type: BooleanConstructor;
215
+ default: boolean;
216
+ };
217
+ onlyTime: {
218
+ type: BooleanConstructor;
219
+ default: boolean;
220
+ };
221
+ minuteInterval: {
222
+ type: NumberConstructor;
223
+ default: number;
224
+ };
225
+ noUseBrowserLocale: {
226
+ type: BooleanConstructor;
227
+ default: boolean;
228
+ };
229
+ noFetchLocal: {
230
+ type: BooleanConstructor;
231
+ default: boolean;
232
+ };
233
+ noShortcuts: {
234
+ type: BooleanConstructor;
235
+ default: boolean;
236
+ };
237
+ shortcuts: {
238
+ type: PropType<PickerShortcut[]>;
239
+ default: () => {
240
+ label: string;
241
+ identifier: string;
242
+ value: {
243
+ start: string;
244
+ end: string;
245
+ };
246
+ }[];
247
+ };
248
+ shortcut: {
249
+ type: StringConstructor;
250
+ default: undefined;
251
+ };
252
+ minDate: {
253
+ type: StringConstructor;
254
+ default: undefined;
255
+ };
256
+ maxDate: {
257
+ type: StringConstructor;
258
+ default: undefined;
259
+ };
260
+ disabledWeekly: {
261
+ type: PropType<number[]>;
262
+ default: () => never[];
263
+ validator: (value: number) => boolean;
264
+ };
265
+ disabledDates: {
266
+ type: PropType<string[]>;
267
+ default: () => never[];
268
+ };
269
+ disabledHours: {
270
+ type: PropType<number[]>;
271
+ default: () => never[];
272
+ validator: (value: number) => boolean;
273
+ };
274
+ }>> & {
275
+ onClose?: ((...args: any[]) => any) | undefined;
276
+ "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
277
+ }, {
278
+ label: string;
279
+ style: StyleValue;
280
+ time: boolean;
281
+ placeholder: string;
282
+ color: Color;
283
+ disabled: boolean;
284
+ format: string;
285
+ open: boolean;
286
+ modelValue: PickerValue;
287
+ locale: string;
288
+ inline: boolean;
289
+ noUseBrowserLocale: boolean;
290
+ minDate: string;
291
+ maxDate: string;
292
+ disabledWeekly: number[];
293
+ disabledDates: string[];
294
+ noShortcuts: boolean;
295
+ double: boolean;
296
+ firstDayOfWeek: number;
297
+ shortcuts: PickerShortcut[];
298
+ shortcut: string;
299
+ minuteInterval: number;
300
+ disabledHours: number[];
301
+ noHeader: boolean;
302
+ inputDateStyle: Intl.DateTimeFormatOptions;
303
+ autoClose: boolean;
304
+ customElementSelector: string;
305
+ pickerPosition: Position;
306
+ onlyTime: boolean;
307
+ noFetchLocal: boolean;
308
+ }, {}>;
309
+ export default _default;
@@ -0,0 +1,77 @@
1
+ import type { PropType } from 'vue';
2
+ import type { Color } from './types';
3
+ export interface ButtonsRadioOption {
4
+ label: string;
5
+ value: string | number;
6
+ }
7
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
8
+ modelValue: {
9
+ type: (StringConstructor | NumberConstructor)[];
10
+ default: undefined;
11
+ };
12
+ options: {
13
+ type: PropType<ButtonsRadioOption[]>;
14
+ required: true;
15
+ };
16
+ name: {
17
+ type: PropType<string>;
18
+ default: string;
19
+ };
20
+ color: {
21
+ type: PropType<Color>;
22
+ default: string;
23
+ };
24
+ noElevation: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ orientation: {
29
+ type: PropType<"col" | "row">;
30
+ default: string;
31
+ };
32
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:model-value")[], "change" | "update:model-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
+ modelValue: {
34
+ type: (StringConstructor | NumberConstructor)[];
35
+ default: undefined;
36
+ };
37
+ options: {
38
+ type: PropType<ButtonsRadioOption[]>;
39
+ required: true;
40
+ };
41
+ name: {
42
+ type: PropType<string>;
43
+ default: string;
44
+ };
45
+ color: {
46
+ type: PropType<Color>;
47
+ default: string;
48
+ };
49
+ noElevation: {
50
+ type: BooleanConstructor;
51
+ default: boolean;
52
+ };
53
+ orientation: {
54
+ type: PropType<"col" | "row">;
55
+ default: string;
56
+ };
57
+ }>> & {
58
+ onChange?: ((...args: any[]) => any) | undefined;
59
+ "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
60
+ }, {
61
+ color: Color;
62
+ name: string;
63
+ orientation: "col" | "row";
64
+ noElevation: boolean;
65
+ modelValue: string | number;
66
+ }, {}>, {
67
+ default?(_: {
68
+ option: ButtonsRadioOption;
69
+ selected: boolean;
70
+ }): any;
71
+ }>;
72
+ export default _default;
73
+ type __VLS_WithTemplateSlots<T, S> = T & {
74
+ new (): {
75
+ $slots: S;
76
+ };
77
+ };