maz-ui 3.47.2-beta.2 → 3.47.2-beta.20

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 (366) hide show
  1. package/components/MazAccordion.d.ts +3 -2
  2. package/components/MazAccordion.mjs +90 -98
  3. package/components/MazAnimatedCounter.d.ts +16 -32
  4. package/components/MazAnimatedCounter.mjs +26 -26
  5. package/components/MazAvatar.d.ts +2 -1
  6. package/components/MazAvatar.mjs +1 -1
  7. package/components/MazBackdrop.d.ts +23 -14
  8. package/components/MazBackdrop.mjs +107 -82
  9. package/components/MazBadge.d.ts +7 -2
  10. package/components/MazBadge.mjs +1 -1
  11. package/components/MazBottomSheet.d.ts +13 -25
  12. package/components/MazBottomSheet.mjs +1 -1
  13. package/components/MazBtn.d.ts +4 -3
  14. package/components/MazBtn.mjs +1 -1
  15. package/components/MazCard.d.ts +5 -4
  16. package/components/MazCard.mjs +1 -1
  17. package/components/MazCardSpotlight.d.ts +3 -2
  18. package/components/MazCardSpotlight.mjs +18 -22
  19. package/components/MazCarousel.d.ts +3 -2
  20. package/components/MazCarousel.mjs +1 -1
  21. package/components/MazCheckbox.d.ts +4 -3
  22. package/components/MazCheckbox.mjs +86 -83
  23. package/components/MazChecklist.d.ts +2 -5
  24. package/components/MazChecklist.mjs +1 -1
  25. package/components/MazCircularProgressBar.d.ts +31 -60
  26. package/components/MazCircularProgressBar.mjs +76 -74
  27. package/components/MazDialog.d.ts +24 -33
  28. package/components/MazDialog.mjs +1 -1
  29. package/components/MazDialogPromise.d.ts +3 -3
  30. package/components/MazDialogPromise.mjs +1 -1
  31. package/components/MazDrawer.d.ts +9 -5
  32. package/components/MazDrawer.mjs +2 -194
  33. package/components/MazDropdown.d.ts +25 -3
  34. package/components/MazDropdown.mjs +2 -325
  35. package/components/MazDropzone.d.ts +1 -1
  36. package/components/MazExpandAnimation.d.ts +6 -5
  37. package/components/MazExpandAnimation.mjs +22 -25
  38. package/components/MazFullscreenLoader.d.ts +2 -1
  39. package/components/MazFullscreenLoader.mjs +7 -7
  40. package/components/MazGallery.d.ts +1 -1
  41. package/components/MazGallery.mjs +1 -1
  42. package/components/MazIcon.mjs +14 -13
  43. package/components/MazInput.d.ts +16 -3
  44. package/components/MazInput.mjs +1 -1
  45. package/components/MazInputCode.d.ts +1 -1
  46. package/components/MazInputCode.mjs +36 -39
  47. package/components/MazInputNumber.d.ts +2 -2
  48. package/components/MazInputNumber.mjs +1 -1
  49. package/components/MazInputPrice.d.ts +4 -3
  50. package/components/MazInputPrice.mjs +1 -1
  51. package/components/MazInputTags.mjs +1 -1
  52. package/components/MazLazyImg.d.ts +2 -1
  53. package/components/MazLink.d.ts +2 -1
  54. package/components/MazLink.mjs +1 -1
  55. package/components/MazLoadingBar.d.ts +1 -1
  56. package/components/MazLoadingBar.mjs +31 -27
  57. package/components/MazPagination.d.ts +3 -2
  58. package/components/MazPagination.mjs +1 -1
  59. package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +31 -55
  60. package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +5 -5
  61. package/components/MazPhoneNumberInput/types.d.ts +2 -1
  62. package/components/MazPhoneNumberInput/{use-libphonenumber.d.ts → useLibphonenumber.d.ts} +4 -4
  63. package/components/MazPhoneNumberInput/{use-maz-phone-number-input.d.ts → useMazPhoneNumberInput.d.ts} +1 -1
  64. package/components/MazPhoneNumberInput.d.ts +69 -25
  65. package/components/MazPhoneNumberInput.mjs +1 -1
  66. package/components/MazPicker/MazPickerCalendar.vue.d.ts +1 -1
  67. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +1 -1
  68. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
  69. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +1 -1
  70. package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +1 -1
  71. package/components/MazPicker/MazPickerContainer.vue.d.ts +1 -1
  72. package/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
  73. package/components/MazPicker/MazPickerHeader.vue.d.ts +1 -1
  74. package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +1 -1
  75. package/components/MazPicker/MazPickerShortcuts.vue.d.ts +1 -1
  76. package/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
  77. package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +1 -1
  78. package/components/MazPicker.d.ts +3 -1
  79. package/components/MazPicker.mjs +1 -1
  80. package/components/MazPullToRefresh.d.ts +4 -3
  81. package/components/MazRadio.d.ts +1 -1
  82. package/components/MazRadio.mjs +31 -37
  83. package/components/MazRadioButtons.d.ts +1 -1
  84. package/components/MazReadingProgressBar.d.ts +1 -1
  85. package/components/MazSelect.d.ts +2 -2
  86. package/components/MazSelect.mjs +1 -1
  87. package/components/MazSlider.d.ts +1 -1
  88. package/components/MazSpinner.d.ts +1 -1
  89. package/components/MazStepper.d.ts +3 -2
  90. package/components/MazStepper.mjs +1 -1
  91. package/components/MazSwitch.d.ts +2 -1
  92. package/components/MazSwitch.mjs +29 -33
  93. package/components/MazTable.d.ts +8 -2
  94. package/components/MazTable.mjs +3 -2
  95. package/components/MazTableCell.d.ts +3 -2
  96. package/components/MazTableCell.mjs +12 -12
  97. package/components/MazTableRow.d.ts +3 -2
  98. package/components/MazTableRow.mjs +16 -16
  99. package/components/MazTableTitle.d.ts +3 -2
  100. package/components/MazTableTitle.mjs +18 -18
  101. package/components/MazTabs.d.ts +3 -2
  102. package/components/MazTabsBar.d.ts +3 -2
  103. package/components/MazTabsBar.mjs +1 -1
  104. package/components/MazTabsContent.d.ts +3 -2
  105. package/components/MazTabsContent.mjs +4 -4
  106. package/components/MazTabsContentItem.d.ts +2 -1
  107. package/components/MazTabsContentItem.mjs +11 -11
  108. package/components/MazTextarea.d.ts +58 -32
  109. package/components/MazTextarea.mjs +128 -109
  110. package/components/MazTransitionExpand.d.ts +2 -1
  111. package/components/MazTransitionExpand.mjs +9 -9
  112. package/components/assets/MazAccordion.css +1 -1
  113. package/components/assets/MazAnimatedCounter.css +1 -1
  114. package/components/assets/MazAvatar.css +1 -1
  115. package/components/assets/MazBackdrop.css +1 -1
  116. package/components/assets/MazBadge.css +1 -1
  117. package/components/assets/MazBottomSheet.css +1 -1
  118. package/components/assets/MazBtn.css +1 -1
  119. package/components/assets/MazCardSpotlight.css +1 -1
  120. package/components/assets/MazCheckbox.css +1 -1
  121. package/components/assets/MazChecklist.css +1 -1
  122. package/components/assets/MazCircularProgressBar.css +1 -1
  123. package/components/assets/MazDialog.css +1 -1
  124. package/components/assets/MazDialogPromise.css +1 -1
  125. package/components/assets/MazDrawer.css +1 -1
  126. package/components/assets/MazDropdown.css +1 -1
  127. package/components/assets/MazExpandAnimation.css +1 -1
  128. package/components/assets/MazGallery.css +1 -1
  129. package/components/assets/MazInput.css +1 -1
  130. package/components/assets/MazInputCode.css +1 -1
  131. package/components/assets/MazInputNumber.css +1 -1
  132. package/components/assets/MazInputPrice.css +1 -1
  133. package/components/assets/MazInputTags.css +1 -1
  134. package/components/assets/MazLoadingBar.css +1 -1
  135. package/components/assets/MazPagination.css +1 -1
  136. package/components/assets/MazPhoneNumberInput.css +1 -1
  137. package/components/assets/MazPicker.css +1 -1
  138. package/components/assets/MazRadio.css +1 -1
  139. package/components/assets/MazSelect.css +1 -1
  140. package/components/assets/MazStepper.css +1 -1
  141. package/components/assets/MazSwitch.css +1 -1
  142. package/components/assets/MazTable.css +1 -1
  143. package/components/assets/MazTableCell.css +1 -1
  144. package/components/assets/MazTableRow.css +1 -1
  145. package/components/assets/MazTableTitle.css +1 -1
  146. package/components/assets/MazTabsBar.css +1 -1
  147. package/components/assets/MazTabsContentItem.css +1 -1
  148. package/components/assets/MazTextarea.css +1 -1
  149. package/components/assets/MazTransitionExpand.css +1 -1
  150. package/components/chunks/{MazAvatar-DFoZvWmg.mjs → MazAvatar-CZzOIbzh.mjs} +54 -54
  151. package/components/chunks/{MazBadge-CqppWg2j.mjs → MazBadge-DCzaExPj.mjs} +2 -2
  152. package/components/chunks/MazBottomSheet-DGsGO0zo.mjs +224 -0
  153. package/components/chunks/MazBtn-B5ioqwkK.mjs +103 -0
  154. package/components/chunks/MazBtn-BS2kvd1Z.mjs +103 -0
  155. package/components/chunks/MazBtn-BVWOyFm-.mjs +103 -0
  156. package/components/chunks/MazBtn-BrfhtojY.mjs +103 -0
  157. package/components/chunks/MazBtn-C4nwxs9T.mjs +103 -0
  158. package/components/chunks/MazBtn-C60T0UDa.mjs +103 -0
  159. package/components/chunks/MazBtn-CElHmZjv.mjs +103 -0
  160. package/components/chunks/MazBtn-CM-xSnA5.mjs +108 -0
  161. package/components/chunks/MazBtn-CsLtHm4K.mjs +103 -0
  162. package/components/chunks/MazBtn-D1jMqwE1.mjs +103 -0
  163. package/components/chunks/MazBtn-D4NOcykx.mjs +103 -0
  164. package/components/chunks/MazBtn-Db6ai-Mv.mjs +103 -0
  165. package/components/chunks/MazBtn-ZAcYNusG.mjs +103 -0
  166. package/components/chunks/MazBtn-oZhhJy09.mjs +103 -0
  167. package/components/chunks/{MazCard-BYB8y1_u.mjs → MazCard-98OuVlyK.mjs} +1 -1
  168. package/components/chunks/{MazCarousel-DccWVW8H.mjs → MazCarousel-COTaKhKF.mjs} +1 -1
  169. package/components/chunks/{MazCheckbox-DMogZVHl.mjs → MazCheckbox-B5ZcWc3y.mjs} +63 -59
  170. package/components/chunks/{MazCheckbox-B22OcHt8.mjs → MazCheckbox-BDPgDiU3.mjs} +63 -59
  171. package/components/chunks/{MazCheckbox-Db6sPUbV.mjs → MazCheckbox-BeLByOEa.mjs} +64 -60
  172. package/components/chunks/{MazChecklist-C95Y4Hb-.mjs → MazChecklist-BurPprmw.mjs} +110 -111
  173. package/components/chunks/MazDialog-Ca3jJ12T.mjs +297 -0
  174. package/components/chunks/MazDialogPromise-DOnmLhui.mjs +551 -0
  175. package/components/chunks/MazDrawer-Bas9dy0D.mjs +226 -0
  176. package/components/chunks/MazDropdown-0r445NfW.mjs +426 -0
  177. package/components/chunks/MazExpandAnimation-Bdf0-L85.mjs +54 -0
  178. package/components/chunks/{MazGallery-VTZUhBKC.mjs → MazGallery-r8SBTCgJ.mjs} +42 -45
  179. package/components/chunks/{MazGallery-CXQiXWFr.mjs → MazGallery-xPp1apvO.mjs} +94 -97
  180. package/components/chunks/MazIcon-BoTByt7n.mjs +4 -0
  181. package/components/chunks/{MazIcon-DjMuw8Bz.mjs → MazIcon-C-aPrqx2.mjs} +4 -3
  182. package/components/chunks/{MazIcon-BF5TFzse.mjs → MazIcon-CaXpmvN2.mjs} +4 -3
  183. package/components/chunks/{MazIcon-BbvBov5G.mjs → MazIcon-_hN-Kivn.mjs} +14 -13
  184. package/components/chunks/MazInput-BT-mbJfZ.mjs +313 -0
  185. package/components/chunks/MazInput-BTIdtLkD.mjs +314 -0
  186. package/components/chunks/MazInput-BfWJoPre.mjs +324 -0
  187. package/components/chunks/MazInputNumber-R0RzDeyD.mjs +600 -0
  188. package/components/chunks/{MazInputPrice-DoTnDDIN.mjs → MazInputPrice-CKSdqO4X.mjs} +200 -169
  189. package/components/chunks/{MazInputTags-Dj3sW-e5.mjs → MazInputTags-D6jQ2-Ia.mjs} +248 -220
  190. package/components/chunks/{MazLazyImg-C03sUOXs.mjs → MazLazyImg-DQLwaKKz.mjs} +2 -2
  191. package/components/chunks/{MazLink-C_3Wya94.mjs → MazLink-tud3eDgU.mjs} +1 -1
  192. package/components/chunks/MazLoadingBar-D3pDBJSb.mjs +36 -0
  193. package/components/chunks/MazPagination-BSu0Ifkp.mjs +327 -0
  194. package/components/chunks/{MazPhoneNumberInput-BbssOUzo.mjs → MazPhoneNumberInput-DibUhBpk.mjs} +762 -731
  195. package/components/chunks/MazPicker-CwiuW5Pv.mjs +2486 -0
  196. package/components/chunks/{MazPickerMonthSwitcher-CmFFQoPA.mjs → MazPickerMonthSwitcher-C65el7R0.mjs} +1 -1
  197. package/components/chunks/{MazPickerShortcuts-DaELz7aq.mjs → MazPickerShortcuts-DbrOoszH.mjs} +1 -1
  198. package/components/chunks/{MazPickerYearSwitcher-m1_KXnpA.mjs → MazPickerYearSwitcher-D9lqntyR.mjs} +1 -1
  199. package/components/chunks/MazSelect-CbT4tFqV.mjs +550 -0
  200. package/components/chunks/MazSelect-CyWAOXo4.mjs +867 -0
  201. package/components/chunks/MazSpinner-BDda3YzZ.mjs +34 -0
  202. package/components/chunks/{MazSpinner-BcB0szZB.mjs → MazSpinner-BlbTztM3.mjs} +1 -1
  203. package/components/chunks/{MazSpinner-CfiIXW8y.mjs → MazSpinner-C2-JMhVh.mjs} +1 -1
  204. package/components/chunks/{MazSpinner-BsYJDmi9.mjs → MazSpinner-C6h03sqc.mjs} +1 -1
  205. package/components/chunks/MazSpinner-CS1_l-tv.mjs +34 -0
  206. package/components/chunks/{MazSpinner-DmiLBQgR.mjs → MazSpinner-Cp_nPioh.mjs} +1 -1
  207. package/components/chunks/{MazSpinner-Bb3f2t6w.mjs → MazSpinner-CwmaAuL1.mjs} +1 -1
  208. package/components/chunks/{MazSpinner-BpkPcfCt.mjs → MazSpinner-D5Sbo759.mjs} +1 -1
  209. package/components/chunks/MazSpinner-DPur0-r-.mjs +34 -0
  210. package/components/chunks/MazSpinner-DYE8e9xl.mjs +34 -0
  211. package/components/chunks/MazSpinner-DjUU4G1h.mjs +34 -0
  212. package/components/chunks/{MazSpinner-C-64WJje.mjs → MazSpinner-DqD51Fb6.mjs} +1 -1
  213. package/components/chunks/MazSpinner-DudoF-cG.mjs +34 -0
  214. package/components/chunks/MazSpinner-EAz0nFxC.mjs +34 -0
  215. package/components/chunks/{MazSpinner-DoRGA1RI.mjs → MazSpinner-N-1gjTUE.mjs} +1 -1
  216. package/components/chunks/MazSpinner-QfPXLpa_.mjs +34 -0
  217. package/components/chunks/MazSpinner-ZFhNCy24.mjs +34 -0
  218. package/components/chunks/MazSpinner-b90e3OQK.mjs +34 -0
  219. package/components/chunks/MazSpinner-mtv0dluJ.mjs +34 -0
  220. package/components/chunks/MazStepper-B3fuhbye.mjs +218 -0
  221. package/components/chunks/{MazTable-BJDPdIJB.mjs → MazTable-hA0HicaL.mjs} +85 -81
  222. package/components/chunks/MazTableCell-DkCidYWY.mjs +23 -0
  223. package/components/chunks/MazTableRow-BAl6Fzm8.mjs +30 -0
  224. package/components/chunks/{MazTableTitle-Ch-nyY1E.mjs → MazTableTitle-CY_LNDOk.mjs} +4 -4
  225. package/components/chunks/{MazTabsBar-CM-w7V97.mjs → MazTabsBar--Xq_cpuz.mjs} +62 -78
  226. package/components/chunks/{MazTransitionExpand-PmUDa51_.mjs → MazTransitionExpand-Cedz9Ree.mjs} +8 -8
  227. package/components/chunks/{inject-strict-BmiaNiwC.mjs → inject-strict-DEDSuzCz.mjs} +3 -3
  228. package/components/chunks/useInstanceUniqId-BkOfxhk8.mjs +10 -0
  229. package/css/main.css +1 -1
  230. package/modules/assets/MazBtn.css +1 -1
  231. package/modules/assets/index.css +1 -1
  232. package/modules/chunks/MazBtn-CFge_w1W.cjs +1 -0
  233. package/modules/chunks/MazBtn-yNCoLFA6.mjs +103 -0
  234. package/modules/chunks/{MazIcon-DEgoQbMj.mjs → MazIcon-C3__MBEL.mjs} +4 -3
  235. package/modules/chunks/{MazIcon-CkuzyufF.cjs → MazIcon-CqhvM2xp.cjs} +1 -1
  236. package/modules/chunks/{MazSpinner-BurN-1pb.mjs → MazSpinner-C4XtaFJk.mjs} +1 -1
  237. package/modules/chunks/{MazSpinner-jP4QsCNE.cjs → MazSpinner-DkJAN36F.cjs} +1 -1
  238. package/modules/chunks/index-Bawg2UGE.cjs +124 -0
  239. package/modules/chunks/{index-CxFUggmu.mjs → index-CXu9R01-.mjs} +1207 -962
  240. package/modules/index.cjs +1 -1
  241. package/modules/index.mjs +47 -46
  242. package/nuxt/index.json +1 -1
  243. package/package.json +23 -22
  244. package/tailwindcss/variables/colors.ts +2 -0
  245. package/types/components/MazAccordion.vue.d.ts +3 -2
  246. package/types/components/MazAnimatedCounter.vue.d.ts +16 -32
  247. package/types/components/MazAvatar.vue.d.ts +2 -1
  248. package/types/components/MazBackdrop.vue.d.ts +23 -14
  249. package/types/components/MazBadge.vue.d.ts +7 -2
  250. package/types/components/MazBottomSheet.vue.d.ts +13 -25
  251. package/types/components/MazBtn.vue.d.ts +4 -3
  252. package/types/components/MazCard.vue.d.ts +5 -4
  253. package/types/components/MazCardSpotlight.vue.d.ts +3 -2
  254. package/types/components/MazCarousel.vue.d.ts +3 -2
  255. package/types/components/MazCheckbox.vue.d.ts +4 -3
  256. package/types/components/MazChecklist.vue.d.ts +2 -5
  257. package/types/components/MazCircularProgressBar.vue.d.ts +31 -60
  258. package/types/components/MazDialog.vue.d.ts +24 -33
  259. package/types/components/MazDialogPromise.vue.d.ts +3 -3
  260. package/types/components/MazDrawer.vue.d.ts +9 -5
  261. package/types/components/MazDropdown.vue.d.ts +25 -3
  262. package/types/components/MazDropzone.vue.d.ts +1 -1
  263. package/types/components/MazExpandAnimation.vue.d.ts +6 -5
  264. package/types/components/MazFullscreenLoader.vue.d.ts +2 -1
  265. package/types/components/MazGallery.vue.d.ts +1 -1
  266. package/types/components/MazInput.vue.d.ts +16 -3
  267. package/types/components/MazInputCode.vue.d.ts +1 -1
  268. package/types/components/MazInputNumber.vue.d.ts +2 -2
  269. package/types/components/MazInputPrice.vue.d.ts +4 -3
  270. package/types/components/MazLazyImg.vue.d.ts +2 -1
  271. package/types/components/MazLink.vue.d.ts +2 -1
  272. package/types/components/MazLoadingBar.vue.d.ts +1 -1
  273. package/types/components/MazPagination.vue.d.ts +3 -2
  274. package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +31 -55
  275. package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +5 -5
  276. package/types/components/MazPhoneNumberInput/types.d.ts +2 -1
  277. package/types/components/MazPhoneNumberInput/{use-libphonenumber.d.ts → useLibphonenumber.d.ts} +4 -4
  278. package/types/components/MazPhoneNumberInput/{use-maz-phone-number-input.d.ts → useMazPhoneNumberInput.d.ts} +1 -1
  279. package/types/components/MazPhoneNumberInput.vue.d.ts +69 -25
  280. package/types/components/MazPicker/MazPickerCalendar.vue.d.ts +1 -1
  281. package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +1 -1
  282. package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
  283. package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +1 -1
  284. package/types/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +1 -1
  285. package/types/components/MazPicker/MazPickerContainer.vue.d.ts +1 -1
  286. package/types/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
  287. package/types/components/MazPicker/MazPickerHeader.vue.d.ts +1 -1
  288. package/types/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +1 -1
  289. package/types/components/MazPicker/MazPickerShortcuts.vue.d.ts +1 -1
  290. package/types/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
  291. package/types/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +1 -1
  292. package/types/components/MazPicker.vue.d.ts +3 -1
  293. package/types/components/MazPullToRefresh.vue.d.ts +4 -3
  294. package/types/components/MazRadio.vue.d.ts +1 -1
  295. package/types/components/MazRadioButtons.vue.d.ts +1 -1
  296. package/types/components/MazReadingProgressBar.vue.d.ts +1 -1
  297. package/types/components/MazSelect.vue.d.ts +2 -2
  298. package/types/components/MazSlider.vue.d.ts +1 -1
  299. package/types/components/MazSpinner.vue.d.ts +1 -1
  300. package/types/components/MazStepper.vue.d.ts +3 -2
  301. package/types/components/MazSwitch.vue.d.ts +2 -1
  302. package/types/components/MazTable.vue.d.ts +8 -2
  303. package/types/components/MazTableCell.vue.d.ts +3 -2
  304. package/types/components/MazTableRow.vue.d.ts +3 -2
  305. package/types/components/MazTableTitle.vue.d.ts +3 -2
  306. package/types/components/MazTabs.vue.d.ts +3 -2
  307. package/types/components/MazTabsBar.vue.d.ts +3 -2
  308. package/types/components/MazTabsContent.vue.d.ts +3 -2
  309. package/types/components/MazTabsContentItem.vue.d.ts +2 -1
  310. package/types/components/MazTextarea.vue.d.ts +58 -32
  311. package/types/components/MazTransitionExpand.vue.d.ts +2 -1
  312. package/types/modules/composables/useFormValidator/types.d.ts +8 -8
  313. package/types/modules/composables/useFormValidator/useFormField.d.ts +2 -2
  314. package/types/modules/composables/useFormValidator/useFormValidator.d.ts +3 -3
  315. package/types/modules/composables/useFormValidator/utils.d.ts +5 -5
  316. package/types/modules/composables/useLanguageDisplayNames.d.ts +13 -12
  317. package/types/modules/directives/closable.d.ts +1 -1
  318. package/types/modules/directives/tooltip/index.d.ts +21 -0
  319. package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +2 -2
  320. package/types/modules/helpers/inject-strict.d.ts +2 -1
  321. package/types/tailwindcss/variables/colors.d.ts +2 -0
  322. package/components/chunks/MazBottomSheet-CGRvZmGd.mjs +0 -208
  323. package/components/chunks/MazBtn-2VKM1wZu.mjs +0 -106
  324. package/components/chunks/MazBtn-40lm8-AL.mjs +0 -106
  325. package/components/chunks/MazBtn-BB1FyYWv.mjs +0 -114
  326. package/components/chunks/MazBtn-BMYXMZuX.mjs +0 -106
  327. package/components/chunks/MazBtn-BijEMn4r.mjs +0 -106
  328. package/components/chunks/MazBtn-BmrcK2af.mjs +0 -106
  329. package/components/chunks/MazBtn-C72_1uvu.mjs +0 -106
  330. package/components/chunks/MazBtn-CWloP6MI.mjs +0 -111
  331. package/components/chunks/MazBtn-CcyV4DCc.mjs +0 -106
  332. package/components/chunks/MazBtn-DENEMy-c.mjs +0 -106
  333. package/components/chunks/MazBtn-DfqRZvbB.mjs +0 -106
  334. package/components/chunks/MazBtn-UnZQuu6P.mjs +0 -106
  335. package/components/chunks/MazBtn-cDJlUVVY.mjs +0 -106
  336. package/components/chunks/MazBtn-hUslV7wO.mjs +0 -106
  337. package/components/chunks/MazDialog-khofH-7I.mjs +0 -237
  338. package/components/chunks/MazDialogPromise-ZRA2ZrO4.mjs +0 -488
  339. package/components/chunks/MazExpandAnimation-MDimlZGj.mjs +0 -57
  340. package/components/chunks/MazInput-DC3S-CVu.mjs +0 -282
  341. package/components/chunks/MazInput-DzWkS-g8.mjs +0 -293
  342. package/components/chunks/MazInput-NE6H-10w.mjs +0 -281
  343. package/components/chunks/MazInputNumber-DRXQXHRv.mjs +0 -572
  344. package/components/chunks/MazLoadingBar-DdjHRC7g.mjs +0 -32
  345. package/components/chunks/MazPagination-BkT4_LLW.mjs +0 -330
  346. package/components/chunks/MazPicker-DwWiIYAR.mjs +0 -2456
  347. package/components/chunks/MazSelect-BJ07NVXQ.mjs +0 -843
  348. package/components/chunks/MazSelect-CDV9Fx6m.mjs +0 -556
  349. package/components/chunks/MazSpinner-BymqEMBk.mjs +0 -34
  350. package/components/chunks/MazSpinner-CEFbkZkM.mjs +0 -34
  351. package/components/chunks/MazSpinner-CsEQ9EXb.mjs +0 -34
  352. package/components/chunks/MazSpinner-CykRbNHD.mjs +0 -34
  353. package/components/chunks/MazSpinner-D3-pqOh3.mjs +0 -34
  354. package/components/chunks/MazSpinner-DS58mtzm.mjs +0 -34
  355. package/components/chunks/MazSpinner-Dmkr_r9u.mjs +0 -34
  356. package/components/chunks/MazSpinner-eC03bFP5.mjs +0 -34
  357. package/components/chunks/MazSpinner-edxn0ncQ.mjs +0 -34
  358. package/components/chunks/MazSpinner-f2Mc2eRO.mjs +0 -34
  359. package/components/chunks/MazSpinner-n4Dp5ZsH.mjs +0 -34
  360. package/components/chunks/MazStepper-BREfkpUb.mjs +0 -213
  361. package/components/chunks/MazTableCell-DILuUCTe.mjs +0 -23
  362. package/components/chunks/MazTableRow-D6H6-c8J.mjs +0 -30
  363. package/components/chunks/useInstanceUniqId-DW9jO1Sz.mjs +0 -11
  364. package/modules/chunks/MazBtn-B_Xlvgbg.cjs +0 -1
  365. package/modules/chunks/MazBtn-Dsr06Zgg.mjs +0 -106
  366. package/modules/chunks/index-CUNN0eIB.cjs +0 -124
@@ -0,0 +1,600 @@
1
+ import { openBlock as a, createElementBlock as v, createElementVNode as M, defineComponent as L, defineAsyncComponent as I, useAttrs as ne, computed as i, createBlock as m, resolveDynamicComponent as C, normalizeClass as p, normalizeStyle as A, withCtx as N, renderSlot as w, unref as d, createCommentVNode as s, createVNode as S, useId as oe, ref as P, onMounted as le, useSlots as ae, toDisplayString as E, withDirectives as re, mergeProps as U, toHandlers as ie, vModelDynamic as se, createTextVNode as ue, withModifiers as D, withKeys as q } from "vue";
2
+ import '../assets/MazInputNumber.css';function R(f, l) {
3
+ let t;
4
+ return function(...u) {
5
+ clearTimeout(t), t = setTimeout(() => {
6
+ f.apply(this, u);
7
+ }, l);
8
+ };
9
+ }
10
+ const de = {
11
+ xmlns: "http://www.w3.org/2000/svg",
12
+ width: "1em",
13
+ height: "1em",
14
+ fill: "none",
15
+ viewBox: "0 0 24 24"
16
+ };
17
+ function me(f, l) {
18
+ return a(), v("svg", de, l[0] || (l[0] = [
19
+ M(
20
+ "path",
21
+ {
22
+ stroke: "currentColor",
23
+ "stroke-linecap": "round",
24
+ "stroke-linejoin": "round",
25
+ "stroke-width": "1.5",
26
+ d: "M5 12h14"
27
+ },
28
+ null,
29
+ -1
30
+ /* HOISTED */
31
+ )
32
+ ]));
33
+ }
34
+ const fe = { render: me }, pe = {
35
+ xmlns: "http://www.w3.org/2000/svg",
36
+ width: "1em",
37
+ height: "1em",
38
+ fill: "none",
39
+ viewBox: "0 0 24 24"
40
+ };
41
+ function ce(f, l) {
42
+ return a(), v("svg", pe, l[0] || (l[0] = [
43
+ M(
44
+ "path",
45
+ {
46
+ stroke: "currentColor",
47
+ "stroke-linecap": "round",
48
+ "stroke-linejoin": "round",
49
+ "stroke-width": "1.5",
50
+ d: "M12 4.5v15m7.5-7.5h-15"
51
+ },
52
+ null,
53
+ -1
54
+ /* HOISTED */
55
+ )
56
+ ]));
57
+ }
58
+ const ve = { render: ce }, be = {
59
+ key: 0,
60
+ class: "m-btn-loader-container"
61
+ }, ye = /* @__PURE__ */ L({
62
+ __name: "MazBtn",
63
+ props: {
64
+ variant: { default: "button" },
65
+ size: { default: "md" },
66
+ color: { default: "primary" },
67
+ type: { default: "button" },
68
+ rounded: { type: Boolean },
69
+ roundedSize: { default: "lg" },
70
+ noRounded: { type: Boolean },
71
+ outline: { type: Boolean },
72
+ pastel: { type: Boolean },
73
+ block: { type: Boolean },
74
+ noUnderline: { type: Boolean },
75
+ loading: { type: Boolean },
76
+ disabled: { type: Boolean },
77
+ fab: { type: Boolean },
78
+ icon: { type: [String, Function, Object], default: void 0 },
79
+ leftIcon: { type: [String, Function, Object], default: void 0 },
80
+ rightIcon: { type: [String, Function, Object], default: void 0 },
81
+ noPadding: { type: Boolean },
82
+ noElevation: { type: Boolean },
83
+ justify: { default: "center" }
84
+ },
85
+ setup(f) {
86
+ const l = f, t = I(() => import("./MazSpinner-DudoF-cG.mjs")), u = I(() => import("./MazIcon-_hN-Kivn.mjs")), { href: r, to: $ } = ne(), h = i(() => r ? "a" : $ ? "router-link" : "button"), V = i(() => l.pastel ? `--${l.color}-pastel` : l.outline ? `--${l.color}-outline` : `--${l.color}`), g = i(
87
+ () => (l.loading || l.disabled) && h.value === "button"
88
+ ), z = i(() => g.value ? "--cursor-default" : "--cursor-pointer"), b = i(() => `--is-${l.variant}`), k = i(() => l.loading && l.variant === "button"), B = i(() => h.value === "button" ? l.type : void 0), n = i(() => l.size === "xl" ? "maz-text-3xl" : l.size === "lg" ? "maz-text-2xl" : l.size === "md" ? "maz-text-xl" : l.size === "sm" ? "maz-text-lg" : l.size === "xs" ? "maz-text-base" : l.size === "mini" ? "maz-text-sm" : "maz-text-xl");
89
+ return (o, c) => (a(), m(C(h.value), {
90
+ disabled: g.value || void 0,
91
+ class: p(["m-btn", [
92
+ `--${o.size}`,
93
+ !o.fab && !o.rounded && o.roundedSize && `--rounded-${o.roundedSize}`,
94
+ V.value,
95
+ z.value,
96
+ b.value,
97
+ {
98
+ "--block": o.block,
99
+ "--no-underline": o.noUnderline,
100
+ "--fab": o.fab,
101
+ "--loading": o.loading,
102
+ "--disabled": g.value,
103
+ "--rounded": o.rounded,
104
+ "--no-rounded": o.noRounded,
105
+ "--no-padding": o.noPadding,
106
+ "--no-elevation": o.noElevation
107
+ }
108
+ ]]),
109
+ style: A([`--justify: ${o.justify}`]),
110
+ type: B.value
111
+ }, {
112
+ default: N(() => [
113
+ w(o.$slots, "left-icon", {}, () => [
114
+ typeof o.leftIcon == "string" ? (a(), m(d(u), {
115
+ key: 0,
116
+ name: o.leftIcon,
117
+ class: p([n.value])
118
+ }, null, 8, ["name", "class"])) : o.leftIcon ? (a(), m(C(o.leftIcon), {
119
+ key: 1,
120
+ class: p([n.value])
121
+ }, null, 8, ["class"])) : s("v-if", !0)
122
+ ], !0),
123
+ w(o.$slots, "icon", {}, () => [
124
+ typeof o.icon == "string" ? (a(), m(d(u), {
125
+ key: 0,
126
+ name: o.icon,
127
+ class: p([n.value])
128
+ }, null, 8, ["name", "class"])) : o.icon ? (a(), m(C(o.icon), {
129
+ key: 1,
130
+ class: p([n.value])
131
+ }, null, 8, ["class"])) : s("v-if", !0)
132
+ ], !0),
133
+ w(o.$slots, "default", {}, void 0, !0),
134
+ w(o.$slots, "right-icon", {}, () => [
135
+ typeof o.rightIcon == "string" ? (a(), m(d(u), {
136
+ key: 0,
137
+ name: o.rightIcon,
138
+ class: p([n.value])
139
+ }, null, 8, ["name", "class"])) : o.rightIcon ? (a(), m(C(o.rightIcon), {
140
+ key: 1,
141
+ class: p([n.value])
142
+ }, null, 8, ["class"])) : s("v-if", !0)
143
+ ], !0),
144
+ k.value ? (a(), v("div", be, [
145
+ S(d(t), {
146
+ size: "2em",
147
+ color: o.color
148
+ }, null, 8, ["color"])
149
+ ])) : s("v-if", !0)
150
+ ]),
151
+ _: 3
152
+ /* FORWARDED */
153
+ }, 8, ["disabled", "class", "style", "type"]));
154
+ }
155
+ }), K = (f, l) => {
156
+ const t = f.__vccOpts || f;
157
+ for (const [u, r] of l)
158
+ t[u] = r;
159
+ return t;
160
+ }, O = /* @__PURE__ */ K(ye, [["__scopeId", "data-v-bee684ff"]]), ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
161
+ __proto__: null,
162
+ default: O
163
+ }, Symbol.toStringTag, { value: "Module" }));
164
+ function ze({
165
+ componentName: f,
166
+ providedId: l
167
+ }) {
168
+ return i(() => l ?? `${f}-${oe().replace(/:/g, "")}`);
169
+ }
170
+ const he = ["for"], ke = {
171
+ key: 0,
172
+ class: "m-input-wrapper-left"
173
+ }, Be = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], Ie = { key: 0 }, we = {
174
+ key: 1,
175
+ class: "m-input-wrapper-right"
176
+ }, $e = /* @__PURE__ */ L({
177
+ inheritAttrs: !1,
178
+ __name: "MazInput",
179
+ props: {
180
+ style: { default: void 0 },
181
+ class: { default: void 0 },
182
+ modelValue: { default: void 0 },
183
+ placeholder: { default: void 0 },
184
+ label: { default: void 0 },
185
+ topLabel: {},
186
+ assistiveText: {},
187
+ name: { default: void 0 },
188
+ color: { default: "primary" },
189
+ type: { default: "text" },
190
+ required: { type: Boolean, default: !1 },
191
+ disabled: { type: Boolean, default: !1 },
192
+ readonly: { type: Boolean, default: !1 },
193
+ id: { default: void 0 },
194
+ error: { type: Boolean, default: !1 },
195
+ success: { type: Boolean, default: !1 },
196
+ warning: { type: Boolean, default: !1 },
197
+ hint: { default: void 0 },
198
+ inputClasses: { default: void 0 },
199
+ noBorder: { type: Boolean, default: !1 },
200
+ noRadius: { type: Boolean, default: !1 },
201
+ inputmode: { default: "text" },
202
+ size: { default: "md" },
203
+ debounce: { type: [Boolean, Number], default: !1 },
204
+ debounceDelay: { default: 500 },
205
+ validButton: { type: Boolean, default: !1 },
206
+ validButtonLoading: { type: Boolean, default: !1 },
207
+ autoFocus: { type: Boolean, default: !1 },
208
+ borderActive: { type: Boolean, default: !1 },
209
+ leftIcon: { type: [String, Function, Object], default: void 0 },
210
+ rightIcon: { type: [String, Function, Object], default: void 0 },
211
+ roundedSize: { default: void 0 },
212
+ block: { type: Boolean }
213
+ },
214
+ emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
215
+ setup(f, { emit: l }) {
216
+ const t = f, u = l, r = I(() => Promise.resolve().then(() => ge)), $ = I(() => import("./MazIcon-_hN-Kivn.mjs")), h = I(() => import("./eye-slash-BoO00xzs.mjs")), V = I(() => import("./eye-f8zAUc30.mjs")), g = I(() => import("./check-BmubdHc_.mjs")), z = P(!1), b = P(!1), k = P(), B = ze({
217
+ componentName: "MazInput",
218
+ providedId: t.id
219
+ });
220
+ le(() => {
221
+ var e;
222
+ t.autoFocus && ((e = k.value) == null || e.focus());
223
+ });
224
+ const n = i(() => t.type === "password"), o = i(() => z.value ? "text" : t.type), c = i(() => {
225
+ if (!t.noBorder) {
226
+ if (t.error)
227
+ return "maz-border-danger";
228
+ if (t.success)
229
+ return "maz-border-success";
230
+ if (t.warning)
231
+ return "maz-border-warning";
232
+ if (b.value || t.borderActive) {
233
+ if (t.color === "black")
234
+ return "maz-border-black";
235
+ if (t.color === "danger")
236
+ return "maz-border-danger";
237
+ if (t.color === "info")
238
+ return "maz-border-info";
239
+ if (t.color === "primary")
240
+ return "maz-border-primary";
241
+ if (t.color === "secondary")
242
+ return "maz-border-secondary";
243
+ if (t.color === "success")
244
+ return "maz-border-success";
245
+ if (t.color === "warning")
246
+ return "maz-border-warning";
247
+ if (t.color === "white")
248
+ return "maz-border-white";
249
+ }
250
+ return "--default-border";
251
+ }
252
+ }), j = ae(), Y = i(() => {
253
+ const { required: e, placeholder: y } = t;
254
+ if (y)
255
+ return e ? `${y} *` : y;
256
+ }), G = i(() => T.value !== void 0 && T.value !== ""), H = R(
257
+ (e) => {
258
+ u("update:model-value", e);
259
+ },
260
+ typeof t.debounce == "number" ? t.debounce : t.debounceDelay ?? 500
261
+ );
262
+ function J(e) {
263
+ if (t.debounce)
264
+ return H(e);
265
+ u("update:model-value", e);
266
+ }
267
+ const T = i({
268
+ get: () => t.modelValue,
269
+ set: (e) => J(e)
270
+ }), Q = i(() => (!!t.label || !!t.hint) && (b.value || !!G.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), W = i(() => !!t.label || !!t.hint);
271
+ function X() {
272
+ return !!j["right-icon"] || n.value || !!j["valid-button"] || t.validButton || !!t.rightIcon;
273
+ }
274
+ function Z() {
275
+ return !!j["left-icon"] || !!t.leftIcon;
276
+ }
277
+ function x(e) {
278
+ u("focus", e), b.value = !0;
279
+ }
280
+ function _(e) {
281
+ u("blur", e), b.value = !1;
282
+ }
283
+ function ee(e) {
284
+ return u("change", e);
285
+ }
286
+ function te(e) {
287
+ return u("input", e);
288
+ }
289
+ return (e, y) => (a(), v(
290
+ "div",
291
+ {
292
+ class: p(["m-input", [
293
+ {
294
+ "--is-focused": b.value || e.borderActive,
295
+ "--should-up": Q.value,
296
+ "--has-label": W.value,
297
+ "--is-disabled": e.disabled,
298
+ "--is-readonly": e.readonly,
299
+ "--has-z-2": e.error || e.warning || e.success,
300
+ "--has-state": e.error || e.warning || e.success,
301
+ "--block": e.block
302
+ },
303
+ t.class,
304
+ `--${e.color}`
305
+ ]]),
306
+ style: A(e.style)
307
+ },
308
+ [
309
+ e.topLabel ? (a(), v("label", {
310
+ key: 0,
311
+ for: d(B),
312
+ class: "m-input-top-label"
313
+ }, E(e.topLabel), 9, he)) : s("v-if", !0),
314
+ M(
315
+ "div",
316
+ {
317
+ class: p(["m-input-wrapper", [
318
+ e.inputClasses,
319
+ c.value,
320
+ e.roundedSize ? `--rounded-${e.roundedSize}` : { "maz-rounded": !e.noRadius },
321
+ { "--block": e.block }
322
+ ]])
323
+ },
324
+ [
325
+ Z() ? (a(), v("div", ke, [
326
+ e.$slots["left-icon"] || e.leftIcon ? w(e.$slots, "left-icon", { key: 0 }, () => [
327
+ typeof e.leftIcon == "string" ? (a(), m(d($), {
328
+ key: 0,
329
+ name: e.leftIcon,
330
+ class: "maz-text-xl maz-text-muted"
331
+ }, null, 8, ["name"])) : e.leftIcon ? (a(), m(C(e.leftIcon), {
332
+ key: 1,
333
+ class: "maz-text-xl maz-text-muted"
334
+ })) : s("v-if", !0)
335
+ ], !0) : s("v-if", !0)
336
+ ])) : s("v-if", !0),
337
+ M(
338
+ "div",
339
+ {
340
+ class: p(["m-input-wrapper-input", [`--${e.size}`, { "--top-label": !!e.topLabel }]])
341
+ },
342
+ [
343
+ re(M("input", U({
344
+ id: d(B),
345
+ ref_key: "input",
346
+ ref: k,
347
+ "onUpdate:modelValue": y[0] || (y[0] = (F) => T.value = F),
348
+ type: o.value,
349
+ name: e.name
350
+ }, e.$attrs, {
351
+ inputmode: e.inputmode,
352
+ placeholder: Y.value,
353
+ "aria-label": e.label || e.placeholder,
354
+ disabled: e.disabled,
355
+ readonly: e.readonly,
356
+ required: e.required,
357
+ class: "m-input-input"
358
+ }, ie({
359
+ blur: _,
360
+ focus: x,
361
+ change: ee,
362
+ input: te
363
+ }, !0), {
364
+ onClick: y[1] || (y[1] = (F) => e.$emit("click", F))
365
+ }), null, 16, Be), [
366
+ [se, T.value]
367
+ ]),
368
+ e.label || e.hint ? (a(), v(
369
+ "span",
370
+ {
371
+ key: 0,
372
+ class: p(["m-input-label", [
373
+ {
374
+ "maz-text-danger-600": e.error,
375
+ "maz-text-success-600": e.success,
376
+ "maz-text-warning-600": e.warning
377
+ }
378
+ ]])
379
+ },
380
+ [
381
+ ue(
382
+ E(e.hint || e.label) + " ",
383
+ 1
384
+ /* TEXT */
385
+ ),
386
+ e.required ? (a(), v("sup", Ie, "*")) : s("v-if", !0)
387
+ ],
388
+ 2
389
+ /* CLASS */
390
+ )) : s("v-if", !0)
391
+ ],
392
+ 2
393
+ /* CLASS */
394
+ ),
395
+ X() ? (a(), v("div", we, [
396
+ e.$slots["right-icon"] || e.rightIcon ? w(e.$slots, "right-icon", { key: 0 }, () => [
397
+ typeof e.rightIcon == "string" ? (a(), m(d($), {
398
+ key: 0,
399
+ name: e.rightIcon,
400
+ class: "maz-text-xl maz-text-muted"
401
+ }, null, 8, ["name"])) : e.rightIcon ? (a(), m(C(e.rightIcon), {
402
+ key: 1,
403
+ class: "maz-text-xl maz-text-muted"
404
+ })) : s("v-if", !0)
405
+ ], !0) : s("v-if", !0),
406
+ n.value ? (a(), m(d(r), {
407
+ key: 1,
408
+ color: "transparent",
409
+ tabindex: "-1",
410
+ size: "mini",
411
+ onClick: y[2] || (y[2] = D((F) => z.value = !z.value, ["stop"]))
412
+ }, {
413
+ default: N(() => [
414
+ z.value ? (a(), m(d(h), {
415
+ key: 0,
416
+ class: "maz-text-xl maz-text-muted"
417
+ })) : (a(), m(d(V), {
418
+ key: 1,
419
+ class: "maz-text-xl maz-text-muted"
420
+ }))
421
+ ]),
422
+ _: 1
423
+ /* STABLE */
424
+ })) : s("v-if", !0),
425
+ e.$slots["valid-button"] || e.validButton ? w(e.$slots, "valid-button", { key: 2 }, () => [
426
+ S(d(r), {
427
+ color: "transparent",
428
+ disabled: e.disabled,
429
+ tabindex: "-1",
430
+ loading: e.validButtonLoading,
431
+ class: "m-input-valid-button",
432
+ size: "mini",
433
+ type: "submit"
434
+ }, {
435
+ default: N(() => [
436
+ S(d(g), { class: "maz-text-2xl maz-text-normal" })
437
+ ]),
438
+ _: 1
439
+ /* STABLE */
440
+ }, 8, ["disabled", "loading"])
441
+ ], !0) : s("v-if", !0)
442
+ ])) : s("v-if", !0)
443
+ ],
444
+ 2
445
+ /* CLASS */
446
+ ),
447
+ e.assistiveText ? (a(), v(
448
+ "div",
449
+ {
450
+ key: 1,
451
+ class: p(["m-input-bottom-text", [
452
+ {
453
+ "maz-text-danger-600": e.error,
454
+ "maz-text-success-600": e.success,
455
+ "maz-text-warning-600": e.warning,
456
+ "maz-text-muted": !e.error && !e.success && !e.warning
457
+ }
458
+ ]])
459
+ },
460
+ E(e.assistiveText),
461
+ 3
462
+ /* TEXT, CLASS */
463
+ )) : s("v-if", !0)
464
+ ],
465
+ 6
466
+ /* CLASS, STYLE */
467
+ ));
468
+ }
469
+ }), Ce = /* @__PURE__ */ K($e, [["__scopeId", "data-v-2cfe0ca2"]]), Ve = /* @__PURE__ */ L({
470
+ inheritAttrs: !1,
471
+ __name: "MazInputNumber",
472
+ props: {
473
+ style: { default: void 0 },
474
+ class: { default: void 0 },
475
+ modelValue: { default: void 0 },
476
+ disabled: { type: Boolean, default: !1 },
477
+ max: { default: Number.POSITIVE_INFINITY },
478
+ min: { default: Number.NEGATIVE_INFINITY },
479
+ step: { default: 1 },
480
+ size: { default: "md" },
481
+ noButtons: { type: Boolean, default: !1 },
482
+ textCenter: { type: Boolean, default: !0 },
483
+ inputmode: { default: "numeric" },
484
+ block: { type: Boolean },
485
+ error: { type: Boolean },
486
+ hint: {},
487
+ success: { type: Boolean },
488
+ warning: { type: Boolean }
489
+ },
490
+ emits: ["update:model-value", "focus", "blur", "click", "change"],
491
+ setup(f, { emit: l }) {
492
+ const t = f, u = l, r = i({
493
+ get: () => t.modelValue,
494
+ set: (n) => g(n)
495
+ });
496
+ function $(n) {
497
+ return Math.round(n / t.step) * t.step;
498
+ }
499
+ function h(n) {
500
+ if (typeof n == "number")
501
+ return n <= t.min ? t.min : n >= t.max ? t.max : $(n);
502
+ }
503
+ const V = R((n) => g(n), 300);
504
+ function g(n) {
505
+ n = h(n), r.value !== n && u("update:model-value", n);
506
+ }
507
+ g(r.value);
508
+ const z = i(() => t.modelValue && t.modelValue >= t.max), b = i(() => t.modelValue && t.modelValue <= t.min);
509
+ function k() {
510
+ if (!(t.disabled || z.value)) {
511
+ if ((r.value === void 0 || r.value === null) && Number.isFinite(t.min)) {
512
+ r.value = t.min;
513
+ return;
514
+ }
515
+ r.value = (r.value ?? 0) + 1 * t.step;
516
+ }
517
+ }
518
+ function B() {
519
+ if (!(t.disabled || b.value)) {
520
+ if ((r.value === void 0 || r.value === null) && Number.isFinite(t.min)) {
521
+ r.value = t.min;
522
+ return;
523
+ }
524
+ r.value = (r.value ?? 0) - 1 * t.step;
525
+ }
526
+ }
527
+ return (n, o) => (a(), v(
528
+ "div",
529
+ {
530
+ class: p(["m-input-number", [`m-input-number--${n.size}`, t.class, { "--block": n.block }]]),
531
+ style: A(n.style)
532
+ },
533
+ [
534
+ n.noButtons ? s("v-if", !0) : (a(), m(O, {
535
+ key: 0,
536
+ color: "transparent",
537
+ size: n.size,
538
+ tabindex: "-1",
539
+ class: "m-input-number__button m-input-number__decrement-button",
540
+ disabled: b.value || n.disabled,
541
+ onClick: B
542
+ }, {
543
+ default: N(() => [
544
+ S(d(fe), { class: "m-input-number__button__icon" })
545
+ ]),
546
+ _: 1
547
+ /* STABLE */
548
+ }, 8, ["size", "disabled"])),
549
+ S(Ce, U({
550
+ "model-value": r.value,
551
+ type: "number",
552
+ class: ["m-input-number__input", { "--no-buttons": n.noButtons, "--text-center": n.textCenter }],
553
+ disabled: n.disabled,
554
+ min: n.min,
555
+ max: n.max,
556
+ step: n.step,
557
+ error: n.error,
558
+ success: n.success,
559
+ warning: n.warning,
560
+ hint: n.hint
561
+ }, n.$attrs, {
562
+ inputmode: n.inputmode,
563
+ size: n.size,
564
+ block: "",
565
+ onKeydown: [
566
+ q(D(k, ["prevent"]), ["up"]),
567
+ q(D(B, ["prevent"]), ["down"])
568
+ ],
569
+ onFocus: o[0] || (o[0] = (c) => n.$emit("focus", c)),
570
+ onChange: o[1] || (o[1] = (c) => n.$emit("change", c)),
571
+ onBlur: o[2] || (o[2] = (c) => n.$emit("blur", c)),
572
+ onClick: o[3] || (o[3] = (c) => n.$emit("click", c)),
573
+ "onUpdate:modelValue": o[4] || (o[4] = (c) => d(V)(c))
574
+ }), null, 16, ["model-value", "class", "disabled", "min", "max", "step", "error", "success", "warning", "hint", "inputmode", "size", "onKeydown"]),
575
+ n.noButtons ? s("v-if", !0) : (a(), m(O, {
576
+ key: 1,
577
+ color: "transparent",
578
+ "no-shadow": "",
579
+ tabindex: "-1",
580
+ size: n.size,
581
+ class: "m-input-number__button m-input-number__increment-button",
582
+ disabled: z.value || n.disabled,
583
+ onClick: k
584
+ }, {
585
+ default: N(() => [
586
+ S(d(ve), { class: "m-input-number__button__icon" })
587
+ ]),
588
+ _: 1
589
+ /* STABLE */
590
+ }, 8, ["size", "disabled"]))
591
+ ],
592
+ 6
593
+ /* CLASS, STYLE */
594
+ ));
595
+ }
596
+ });
597
+ export {
598
+ K as _,
599
+ Ve as a
600
+ };