maz-ui 3.43.4 → 3.44.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/MazAccordion.d.ts +2 -2
  2. package/components/MazAccordion.mjs +84 -84
  3. package/components/MazAnimatedCounter.mjs +9 -10
  4. package/components/MazAvatar.d.ts +3 -3
  5. package/components/MazAvatar.mjs +1 -1
  6. package/components/MazBackdrop.d.ts +2 -2
  7. package/components/MazBackdrop.mjs +12 -10
  8. package/components/MazBadge.d.ts +2 -2
  9. package/components/MazBadge.mjs +3 -4
  10. package/components/MazBottomSheet.mjs +1 -1
  11. package/components/MazBtn.d.ts +7 -5
  12. package/components/MazBtn.mjs +1 -1
  13. package/components/MazCard.d.ts +3 -3
  14. package/components/MazCard.mjs +1 -1
  15. package/components/MazCardSpotlight.d.ts +2 -2
  16. package/components/MazCardSpotlight.mjs +4 -5
  17. package/components/MazCarousel.d.ts +2 -2
  18. package/components/MazCarousel.mjs +1 -1
  19. package/components/MazChart.d.ts +1 -1
  20. package/components/MazCheckbox.d.ts +2 -2
  21. package/components/MazCheckbox.mjs +10 -11
  22. package/components/MazCircularProgressBar.d.ts +1 -1
  23. package/components/MazCircularProgressBar.mjs +21 -23
  24. package/components/MazDialog.d.ts +2 -2
  25. package/components/MazDialog.mjs +1 -1
  26. package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +17 -14
  27. package/components/MazDialogPromise.mjs +1 -1
  28. package/components/MazDrawer.d.ts +2 -2
  29. package/components/MazDrawer.mjs +71 -69
  30. package/components/MazDropdown.d.ts +7 -6
  31. package/components/MazDropdown.mjs +130 -128
  32. package/components/MazDropzone.d.ts +1 -1
  33. package/components/MazDropzone.mjs +1 -1
  34. package/components/MazExpandAnimation.d.ts +2 -2
  35. package/components/MazExpandAnimation.mjs +26 -26
  36. package/components/MazFullscreenLoader.d.ts +2 -2
  37. package/components/MazFullscreenLoader.mjs +11 -10
  38. package/components/MazGallery.d.ts +2 -2
  39. package/components/MazGallery.mjs +1 -1
  40. package/components/MazIcon.mjs +45 -34
  41. package/components/MazInput.d.ts +4 -4
  42. package/components/MazInput.mjs +1 -1
  43. package/components/MazInputCode.d.ts +2 -2
  44. package/components/MazInputCode.mjs +4 -5
  45. package/components/MazInputNumber.d.ts +2 -2
  46. package/components/MazInputNumber.mjs +1 -1
  47. package/components/MazInputPrice.d.ts +2 -2
  48. package/components/MazInputPrice.mjs +1 -1
  49. package/components/MazInputTags.d.ts +7 -2
  50. package/components/MazInputTags.mjs +1 -1
  51. package/components/MazLazyImg.d.ts +2 -2
  52. package/components/MazLazyImg.mjs +1 -1
  53. package/components/MazLink.d.ts +6 -6
  54. package/components/MazLink.mjs +3 -4
  55. package/components/MazLoadingBar.d.ts +2 -2
  56. package/components/MazLoadingBar.mjs +17 -18
  57. package/components/MazPagination.d.ts +3 -3
  58. package/components/MazPagination.mjs +1 -1
  59. package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +1 -1
  60. package/components/MazPhoneNumberInput/types.d.ts +5 -5
  61. package/components/MazPhoneNumberInput/use-libphonenumber.d.ts +1 -1
  62. package/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +1 -1
  63. package/components/MazPhoneNumberInput.d.ts +8 -8
  64. package/components/MazPhoneNumberInput.mjs +1 -1
  65. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
  66. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +2 -2
  67. package/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
  68. package/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
  69. package/components/MazPicker/types.d.ts +4 -4
  70. package/components/MazPicker/utils.d.ts +4 -4
  71. package/components/MazPicker.d.ts +3 -3
  72. package/components/MazPicker.mjs +1 -1
  73. package/components/MazPullToRefresh.d.ts +2 -2
  74. package/components/MazPullToRefresh.mjs +1 -1
  75. package/components/MazRadio.mjs +8 -9
  76. package/components/MazRadioButtons.d.ts +2 -2
  77. package/components/MazRadioButtons.mjs +44 -42
  78. package/components/MazReadingProgressBar.d.ts +2 -2
  79. package/components/MazReadingProgressBar.mjs +12 -13
  80. package/components/MazSelect.d.ts +4 -4
  81. package/components/MazSelect.mjs +1 -1
  82. package/components/MazSlider/utils.d.ts +4 -4
  83. package/components/MazSlider.mjs +100 -87
  84. package/components/MazSpinner.mjs +6 -7
  85. package/components/MazStepper.d.ts +3 -3
  86. package/components/MazStepper.mjs +1 -1
  87. package/components/MazSwitch.d.ts +2 -2
  88. package/components/MazSwitch.mjs +6 -6
  89. package/components/MazTable.d.ts +13 -10
  90. package/components/MazTable.mjs +1 -1
  91. package/components/MazTableCell.mjs +4 -5
  92. package/components/MazTableRow.d.ts +2 -2
  93. package/components/MazTableRow.mjs +4 -5
  94. package/components/MazTableTitle.mjs +2 -3
  95. package/components/MazTabs.d.ts +4 -4
  96. package/components/MazTabsBar.d.ts +7 -5
  97. package/components/MazTabsBar.mjs +1 -1
  98. package/components/MazTabsContent.mjs +5 -4
  99. package/components/MazTabsContentItem.mjs +16 -17
  100. package/components/MazTextarea.d.ts +2 -2
  101. package/components/MazTextarea.mjs +19 -17
  102. package/components/MazTransitionExpand.d.ts +2 -2
  103. package/components/MazTransitionExpand.mjs +19 -18
  104. package/components/assets/MazAccordion.css +1 -1
  105. package/components/assets/MazAnimatedCounter.css +1 -1
  106. package/components/assets/MazAvatar.css +1 -1
  107. package/components/assets/MazBadge.css +1 -1
  108. package/components/assets/MazBottomSheet.css +1 -1
  109. package/components/assets/MazBtn.css +1 -1
  110. package/components/assets/MazCard.css +1 -1
  111. package/components/assets/MazCardSpotlight.css +1 -1
  112. package/components/assets/MazCarousel.css +1 -1
  113. package/components/assets/MazCheckbox.css +1 -1
  114. package/components/assets/MazCircularProgressBar.css +1 -1
  115. package/components/assets/MazDialog.css +1 -1
  116. package/components/assets/MazDialogPromise.css +1 -1
  117. package/components/assets/MazExpandAnimation.css +1 -1
  118. package/components/assets/MazGallery.css +1 -1
  119. package/components/assets/MazInput.css +1 -1
  120. package/components/assets/MazInputCode.css +1 -1
  121. package/components/assets/MazInputNumber.css +1 -1
  122. package/components/assets/MazInputPrice.css +1 -1
  123. package/components/assets/MazInputTags.css +1 -1
  124. package/components/assets/MazLazyImg.css +1 -1
  125. package/components/assets/MazLink.css +1 -1
  126. package/components/assets/MazLoadingBar.css +1 -1
  127. package/components/assets/MazPagination.css +1 -1
  128. package/components/assets/MazPhoneNumberInput.css +1 -1
  129. package/components/assets/MazPicker.css +1 -1
  130. package/components/assets/MazPickerMonthSwitcher.css +1 -1
  131. package/components/assets/MazPickerShortcuts.css +1 -1
  132. package/components/assets/MazPickerYearSwitcher.css +1 -1
  133. package/components/assets/MazPullToRefresh.css +1 -1
  134. package/components/assets/MazRadio.css +1 -1
  135. package/components/assets/MazRadioButtons.css +1 -1
  136. package/components/assets/MazReadingProgressBar.css +1 -1
  137. package/components/assets/MazSelect.css +1 -1
  138. package/components/assets/MazSlider.css +1 -1
  139. package/components/assets/MazSpinner.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-DsJvzyS9.mjs → MazAvatar-BU1nJFcV.mjs} +8 -9
  151. package/components/chunks/{MazBadge-CYJlqITD.mjs → MazBadge-CwA0md19.mjs} +4 -5
  152. package/components/chunks/{MazBottomSheet-CIlIdn-2.mjs → MazBottomSheet-DUOIusEi.mjs} +54 -52
  153. package/components/chunks/{MazBtn-CCNGs6oo.mjs → MazBtn-5BSKOcqG.mjs} +35 -36
  154. package/components/chunks/{MazBtn-Ccvl1ZWv.mjs → MazBtn-B1-sTc7F.mjs} +31 -32
  155. package/components/chunks/{MazBtn-BC5OegPu.mjs → MazBtn-BY8WCtM7.mjs} +35 -36
  156. package/components/chunks/{MazBtn-CX4OgPzp.mjs → MazBtn-C5G78zLg.mjs} +35 -36
  157. package/components/chunks/MazBtn-CeVwyYR5.mjs +150 -0
  158. package/components/chunks/{MazBtn-BqgdERYQ.mjs → MazBtn-ColLVUca.mjs} +35 -36
  159. package/components/chunks/{MazBtn-beTASOLt.mjs → MazBtn-DJhQqzja.mjs} +35 -36
  160. package/components/chunks/MazBtn-DuY28-0U.mjs +150 -0
  161. package/components/chunks/{MazBtn-BydIwD1J.mjs → MazBtn-f1mBXJeU.mjs} +31 -32
  162. package/components/chunks/MazBtn-h3WmmaEO.mjs +150 -0
  163. package/components/chunks/MazBtn-zyRLUViT.mjs +150 -0
  164. package/components/chunks/{MazCard-bmiVPg8p.mjs → MazCard-BWxV_Z-i.mjs} +25 -26
  165. package/components/chunks/{MazCarousel-CL0bMygd.mjs → MazCarousel-D5EmW7Sa.mjs} +43 -35
  166. package/components/chunks/{MazCheckbox-DsFbvpp4.mjs → MazCheckbox-BWiMbecz.mjs} +11 -12
  167. package/components/chunks/{MazCheckbox-CCa7grGF.mjs → MazCheckbox-D3PXkt75.mjs} +11 -12
  168. package/components/chunks/{MazDialog-BckFta4N.mjs → MazDialog-CLWKCphI.mjs} +56 -54
  169. package/components/chunks/{MazDialogPromise-Bb6h4hFz.mjs → MazDialogPromise-DVOJwdVp.mjs} +139 -126
  170. package/components/chunks/{MazDropzone-C_8mRUbK.mjs → MazDropzone-Dm2IirHm.mjs} +33 -54
  171. package/components/chunks/MazExpandAnimation-ChSSdQAq.mjs +58 -0
  172. package/components/chunks/{MazGallery-CcpeM_zk.mjs → MazGallery-BlfPe8WG.mjs} +103 -101
  173. package/components/chunks/{MazGallery-6UK5sH9P.mjs → MazGallery-Bn9p1gNb.mjs} +102 -100
  174. package/{modules/chunks/MazIcon-CiNswMKM.mjs → components/chunks/MazIcon-B8A0hQAH.mjs} +45 -34
  175. package/components/chunks/{MazIcon-Cxrv3_OK.mjs → MazIcon-BDGxCy9M.mjs} +45 -34
  176. package/components/chunks/{MazIcon-BKuhvwwq.mjs → MazIcon-D3umgnku.mjs} +45 -34
  177. package/components/chunks/{MazInput-DNwBL54e.mjs → MazInput-BpsE-mdg.mjs} +69 -69
  178. package/components/chunks/{MazInputNumber-BSdVF8-q.mjs → MazInputNumber-DGBYbDSX.mjs} +186 -182
  179. package/components/chunks/{MazInputPrice-osrAz4xd.mjs → MazInputPrice-j2BNMeFp.mjs} +134 -129
  180. package/components/chunks/{MazInputTags-XUWwx6p8.mjs → MazInputTags-CJofVaj5.mjs} +234 -252
  181. package/components/chunks/{MazLazyImg-6qrfqWKr.mjs → MazLazyImg-BFG6FIJZ.mjs} +6 -7
  182. package/components/chunks/{MazLazyImg-BelScAEF.mjs → MazLazyImg-Dboc6Xfz.mjs} +5 -6
  183. package/components/chunks/{MazPagination-DUiHgLAp.mjs → MazPagination-C6ZehQSZ.mjs} +118 -119
  184. package/components/chunks/{MazPhoneNumberInput-HeEEyDu0.mjs → MazPhoneNumberInput-DpWoNQfx.mjs} +707 -695
  185. package/components/chunks/MazPicker-ia2BEmm5.mjs +2531 -0
  186. package/components/chunks/{MazPickerMonthSwitcher-CoV-84J1.mjs → MazPickerMonthSwitcher-CKtfZ_m-.mjs} +19 -19
  187. package/components/chunks/{MazPickerShortcuts-5IfUIwpz.mjs → MazPickerShortcuts-Cc9VoqBw.mjs} +10 -10
  188. package/components/chunks/{MazPickerYearSwitcher-MeptqtZk.mjs → MazPickerYearSwitcher-0b5Wrem9.mjs} +10 -8
  189. package/components/chunks/{MazPullToRefresh-DWbmwlzV.mjs → MazPullToRefresh-CUazP4y2.mjs} +21 -22
  190. package/components/chunks/MazSelect-COJoKXbV.mjs +847 -0
  191. package/components/chunks/MazSpinner-9Jue6cel.mjs +37 -0
  192. package/components/chunks/{MazSpinner-BKjRRWtc.mjs → MazSpinner-BGPOws6a.mjs} +6 -7
  193. package/components/chunks/{MazSpinner-BXxULdoD.mjs → MazSpinner-BWYdqSMP.mjs} +6 -7
  194. package/components/chunks/{MazSpinner-BRgzRI07.mjs → MazSpinner-BZOjTZBN.mjs} +6 -7
  195. package/components/chunks/{MazSpinner-B-svzg-R.mjs → MazSpinner-BaAMq7LI.mjs} +6 -7
  196. package/components/chunks/MazSpinner-Bad2n-0k.mjs +37 -0
  197. package/components/chunks/MazSpinner-BxnVFqUu.mjs +37 -0
  198. package/components/chunks/{MazSpinner-Mvsi6uCt.mjs → MazSpinner-C41VyUup.mjs} +6 -7
  199. package/components/chunks/MazSpinner-C6StE-Mb.mjs +37 -0
  200. package/components/chunks/{MazSpinner-BFXwybUv.mjs → MazSpinner-CNIlbDfg.mjs} +6 -7
  201. package/components/chunks/MazSpinner-Cz2DHV6g.mjs +37 -0
  202. package/components/chunks/MazSpinner-D4CdHpP2.mjs +37 -0
  203. package/{modules/chunks/MazSpinner--jWWogVn.mjs → components/chunks/MazSpinner-DHQH6Bhz.mjs} +6 -7
  204. package/components/chunks/MazSpinner-DRj2VpGA.mjs +37 -0
  205. package/components/chunks/{MazSpinner-C1lg-Klx.mjs → MazSpinner-DkXequnp.mjs} +6 -7
  206. package/components/chunks/MazSpinner-EA5ejB8F.mjs +37 -0
  207. package/components/chunks/{MazSpinner-BtpIL60X.mjs → MazSpinner-RvDGcBng.mjs} +6 -7
  208. package/components/chunks/{MazSpinner-B_WP-2kr.mjs → MazSpinner-V-bFi71W.mjs} +6 -7
  209. package/components/chunks/MazSpinner-aPFlrc5E.mjs +37 -0
  210. package/components/chunks/{MazSpinner-CfA_KEZT.mjs → MazSpinner-nH44Htog.mjs} +6 -7
  211. package/components/chunks/MazSpinner-nOD-7_sU.mjs +37 -0
  212. package/components/chunks/MazSpinner-yZGK-AQe.mjs +37 -0
  213. package/components/chunks/{MazStepper-DDofJsdg.mjs → MazStepper-DxrzKz06.mjs} +94 -83
  214. package/components/chunks/MazTable-DRUj_PZp.mjs +1960 -0
  215. package/components/chunks/{MazTabsBar-BXDEQkZM.mjs → MazTabsBar-xcIIXHx5.mjs} +67 -68
  216. package/components/chunks/{MazTransitionExpand-BwuAIzII.mjs → MazTransitionExpand-B08cSrmL.mjs} +20 -19
  217. package/components/chunks/{examples.mobile.json-um0ibyv5.mjs → examples.mobile.json-JpNGylGv.mjs} +1 -1
  218. package/css/main.css +1 -1
  219. package/modules/assets/MazBtn.css +1 -1
  220. package/modules/assets/MazSpinner.css +1 -1
  221. package/modules/assets/index.css +1 -1
  222. package/modules/chunks/{MazBtn-Czcbhr3Z.cjs → MazBtn-BbCGGxkK.cjs} +2 -2
  223. package/modules/chunks/{MazBtn-CXcW31TK.mjs → MazBtn-UBHTKqaN.mjs} +35 -36
  224. package/modules/chunks/MazIcon-BDSXZYZ8.cjs +1 -0
  225. package/{components/chunks/MazIcon-DtG5ii8R.mjs → modules/chunks/MazIcon-C2ch3jUS.mjs} +45 -34
  226. package/modules/chunks/{MazSpinner-Cw1KnqLM.cjs → MazSpinner-BiyFRA4w.cjs} +1 -1
  227. package/modules/chunks/MazSpinner-C9_xSbZZ.mjs +37 -0
  228. package/modules/chunks/{index-CThtJOu5.mjs → index-Cwbjspv3.mjs} +621 -588
  229. package/modules/chunks/index-tnjajVkX.cjs +124 -0
  230. package/modules/index.cjs +1 -1
  231. package/modules/index.mjs +34 -35
  232. package/nuxt/index.json +2 -2
  233. package/nuxt/index.mjs +3 -4
  234. package/nuxt/types.d.mts +24 -0
  235. package/nuxt/types.d.ts +24 -0
  236. package/package.json +77 -83
  237. package/resolvers/unplugin-directives-resolver.d.ts +1 -1
  238. package/resolvers/unplugin-vue-components-resolver.d.ts +1 -1
  239. package/tailwindcss/tailwind.config.ts +9 -2
  240. package/tailwindcss/utils/colors.ts +3 -3
  241. package/tailwindcss/variables/colors.ts +12 -12
  242. package/tailwindcss/variables/utilities.ts +2 -2
  243. package/tailwindcss/variables/z-indexes.ts +12 -11
  244. package/types/components/MazAccordion.vue.d.ts +2 -2
  245. package/types/components/MazAvatar.vue.d.ts +3 -3
  246. package/types/components/MazBackdrop.vue.d.ts +2 -2
  247. package/types/components/MazBadge.vue.d.ts +2 -2
  248. package/types/components/MazBtn.vue.d.ts +7 -5
  249. package/types/components/MazCard.vue.d.ts +3 -3
  250. package/types/components/MazCardSpotlight.vue.d.ts +2 -2
  251. package/types/components/MazCarousel.vue.d.ts +2 -2
  252. package/types/components/MazChart.vue.d.ts +1 -1
  253. package/types/components/MazCheckbox.vue.d.ts +2 -2
  254. package/types/components/MazCircularProgressBar.vue.d.ts +1 -1
  255. package/types/components/MazDialog.vue.d.ts +2 -2
  256. package/types/components/MazDialogPromise/use-maz-dialog-promise.d.ts +17 -14
  257. package/types/components/MazDrawer.vue.d.ts +2 -2
  258. package/types/components/MazDropdown.vue.d.ts +7 -6
  259. package/types/components/MazDropzone.vue.d.ts +1 -1
  260. package/types/components/MazExpandAnimation.vue.d.ts +2 -2
  261. package/types/components/MazFullscreenLoader.vue.d.ts +2 -2
  262. package/types/components/MazGallery.vue.d.ts +2 -2
  263. package/types/components/MazInput.vue.d.ts +4 -4
  264. package/types/components/MazInputCode.vue.d.ts +2 -2
  265. package/types/components/MazInputNumber.vue.d.ts +2 -2
  266. package/types/components/MazInputPrice.vue.d.ts +2 -2
  267. package/types/components/MazInputTags.vue.d.ts +7 -2
  268. package/types/components/MazLazyImg.vue.d.ts +2 -2
  269. package/types/components/MazLink.vue.d.ts +6 -6
  270. package/types/components/MazLoadingBar.vue.d.ts +2 -2
  271. package/types/components/MazPagination.vue.d.ts +3 -3
  272. package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +1 -1
  273. package/types/components/MazPhoneNumberInput/types.d.ts +5 -5
  274. package/types/components/MazPhoneNumberInput/use-libphonenumber.d.ts +1 -1
  275. package/types/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +1 -1
  276. package/types/components/MazPhoneNumberInput.vue.d.ts +8 -8
  277. package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
  278. package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +2 -2
  279. package/types/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
  280. package/types/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
  281. package/types/components/MazPicker/types.d.ts +4 -4
  282. package/types/components/MazPicker/utils.d.ts +4 -4
  283. package/types/components/MazPicker.vue.d.ts +3 -3
  284. package/types/components/MazPullToRefresh.vue.d.ts +2 -2
  285. package/types/components/MazRadioButtons.vue.d.ts +2 -2
  286. package/types/components/MazReadingProgressBar.vue.d.ts +2 -2
  287. package/types/components/MazSelect.vue.d.ts +4 -4
  288. package/types/components/MazSlider/utils.d.ts +4 -4
  289. package/types/components/MazStepper.vue.d.ts +3 -3
  290. package/types/components/MazSwitch.vue.d.ts +2 -2
  291. package/types/components/MazTable.vue.d.ts +13 -10
  292. package/types/components/MazTableRow.vue.d.ts +2 -2
  293. package/types/components/MazTabs.vue.d.ts +4 -4
  294. package/types/components/MazTabsBar.vue.d.ts +7 -5
  295. package/types/components/MazTextarea.vue.d.ts +2 -2
  296. package/types/components/MazTransitionExpand.vue.d.ts +2 -2
  297. package/types/modules/composables/use-reading-time.d.ts +5 -5
  298. package/types/modules/composables/use-theme-handler.d.ts +2 -2
  299. package/types/modules/directives/closable.d.ts +2 -2
  300. package/types/modules/directives/tooltip/index.d.ts +4 -4
  301. package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +2 -2
  302. package/types/modules/directives/v-lazy-img/index.d.ts +1 -1
  303. package/types/modules/filters/capitalize.d.ts +1 -1
  304. package/types/modules/filters/currency.d.ts +1 -1
  305. package/types/modules/filters/date.d.ts +1 -1
  306. package/types/modules/filters/index.d.ts +8 -4
  307. package/types/modules/filters/number.d.ts +1 -1
  308. package/types/modules/filters/telephone.d.ts +1 -1
  309. package/types/modules/helpers/idle-timeout/idle-timeout-handler.d.ts +1 -1
  310. package/types/modules/helpers/mount-component.d.ts +2 -2
  311. package/types/modules/helpers/normalize-string.d.ts +2 -2
  312. package/types/modules/helpers/swipe-handler.d.ts +2 -2
  313. package/types/modules/helpers/user-visibility/types.d.ts +2 -2
  314. package/types/modules/plugins/aos/index.d.ts +3 -3
  315. package/types/modules/plugins/index.d.ts +2 -2
  316. package/types/modules/plugins/toaster/MazToast.vue.d.ts +3 -3
  317. package/types/modules/plugins/toaster/index.d.ts +1 -2
  318. package/types/modules/plugins/toaster/types.d.ts +6 -6
  319. package/types/modules/plugins/wait/utils.d.ts +4 -4
  320. package/types/resolvers/unplugin-directives-resolver.d.ts +1 -1
  321. package/types/resolvers/unplugin-vue-components-resolver.d.ts +1 -1
  322. package/types/tailwindcss/tailwind.config.d.ts +71 -9
  323. package/types/tailwindcss/variables/z-indexes.d.ts +11 -11
  324. package/components/chunks/MazBtn-BOb7Fg_d.mjs +0 -151
  325. package/components/chunks/MazBtn-DpkJQ_3W.mjs +0 -151
  326. package/components/chunks/MazBtn-Dw_CR_0X.mjs +0 -151
  327. package/components/chunks/MazBtn-_NGDIlQK.mjs +0 -151
  328. package/components/chunks/MazExpandAnimation-Cin7sZ3I.mjs +0 -58
  329. package/components/chunks/MazPicker-CltoTa2Z.mjs +0 -2477
  330. package/components/chunks/MazSelect-DDKbowf3.mjs +0 -835
  331. package/components/chunks/MazSpinner-2ti3NQjo.mjs +0 -38
  332. package/components/chunks/MazSpinner-BZUmasIf.mjs +0 -38
  333. package/components/chunks/MazSpinner-C-lFmcUR.mjs +0 -38
  334. package/components/chunks/MazSpinner-C75WMoEA.mjs +0 -38
  335. package/components/chunks/MazSpinner-CA38Ikqe.mjs +0 -38
  336. package/components/chunks/MazSpinner-CAHOYqvB.mjs +0 -38
  337. package/components/chunks/MazSpinner-COOp2WX8.mjs +0 -38
  338. package/components/chunks/MazSpinner-D-ONjGGv.mjs +0 -38
  339. package/components/chunks/MazSpinner-DJkziC4O.mjs +0 -38
  340. package/components/chunks/MazSpinner-Di0F6oZz.mjs +0 -38
  341. package/components/chunks/MazSpinner-EcA0uOQv.mjs +0 -38
  342. package/components/chunks/MazSpinner-s_0BLDqW.mjs +0 -38
  343. package/components/chunks/MazTable-B9JiJ2B2.mjs +0 -1950
  344. package/modules/chunks/MazIcon-DdFYd3W8.cjs +0 -1
  345. package/modules/chunks/index-RvIMpzcQ.cjs +0 -124
  346. package/nuxt/runtime/composables/{use-aos.mjs → use-aos.js} +0 -0
  347. package/nuxt/runtime/composables/{use-theme-handler.mjs → use-theme-handler.js} +1 -1
  348. package/nuxt/runtime/composables/{use-toast.mjs → use-toast.js} +0 -0
  349. package/nuxt/runtime/composables/{use-wait.mjs → use-wait.js} +0 -0
  350. package/nuxt/runtime/plugins/{aos.mjs → aos.js} +1 -1
  351. package/nuxt/runtime/plugins/{maz-icon-path.mjs → maz-icon-path.js} +0 -0
  352. package/nuxt/runtime/plugins/{toaster.mjs → toaster.js} +1 -1
  353. package/nuxt/runtime/plugins/{v-click-outside.mjs → v-click-outside.js} +1 -1
  354. package/nuxt/runtime/plugins/{v-fullscreen-img.mjs → v-fullscreen-img.js} +1 -1
  355. package/nuxt/runtime/plugins/{v-lazy-img.mjs → v-lazy-img.js} +1 -1
  356. package/nuxt/runtime/plugins/{v-tooltip.mjs → v-tooltip.js} +1 -1
  357. package/nuxt/runtime/plugins/{v-zoom-img.mjs → v-zoom-img.js} +1 -1
  358. package/nuxt/runtime/plugins/{wait.mjs → wait.js} +1 -1
@@ -1,5 +1,12 @@
1
- import '../assets/MazInputNumber.css';
2
- import { defineComponent as L, defineAsyncComponent as C, useAttrs as oe, useSlots as j, onBeforeMount as ne, computed as s, openBlock as a, createBlock as d, resolveDynamicComponent as V, normalizeClass as B, withCtx as P, createElementBlock as b, createCommentVNode as i, renderSlot as M, unref as m, getCurrentInstance as te, ref as A, onMounted as le, normalizeStyle as K, createElementVNode as N, withDirectives as ae, mergeProps as Y, toHandlers as ie, vModelDynamic as se, createTextVNode as re, toDisplayString as ue, withModifiers as q, createVNode as S, withKeys as O } from "vue";
1
+ import { defineComponent as L, defineAsyncComponent as w, useAttrs as ne, useSlots as j, onBeforeMount as oe, computed as r, openBlock as a, createBlock as u, resolveDynamicComponent as V, normalizeClass as z, withCtx as P, createElementBlock as v, createCommentVNode as i, renderSlot as C, unref as c, getCurrentInstance as te, ref as A, onMounted as le, normalizeStyle as K, createElementVNode as N, withDirectives as ae, mergeProps as Y, toHandlers as ie, vModelDynamic as re, createTextVNode as se, toDisplayString as ue, withModifiers as q, createVNode as S, withKeys as O } from "vue";
2
+ import '../assets/MazInputNumber.css';function G(m, l) {
3
+ let n;
4
+ return function(...d) {
5
+ clearTimeout(n), n = setTimeout(() => {
6
+ m.apply(this, d);
7
+ }, l);
8
+ };
9
+ }
3
10
  const de = /* @__PURE__ */ L({
4
11
  __name: "MazBtn",
5
12
  props: {
@@ -24,151 +31,143 @@ const de = /* @__PURE__ */ L({
24
31
  noElevation: { type: Boolean },
25
32
  contentClass: { default: void 0 }
26
33
  },
27
- setup(f) {
28
- const p = C(() => import("./MazSpinner-D-ONjGGv.mjs")), n = C(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: g, to: u } = oe(), $ = j(), r = f;
29
- ne(() => {
30
- r.icon && !r.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
34
+ setup(m) {
35
+ const l = m, n = w(() => import("./MazSpinner-Bad2n-0k.mjs")), d = w(() => import("./MazIcon-BDGxCy9M.mjs")), { href: s, to: M } = ne(), k = j();
36
+ oe(() => {
37
+ l.icon && !l.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
31
38
  });
32
- const t = s(() => g ? "a" : u ? "router-link" : "button"), y = s(
33
- () => r.pastel ? `--${r.color}-pastel` : r.outline ? `--${r.color}-outline` : `--${r.color}`
34
- ), h = s(
35
- () => (r.loading || r.disabled) && t.value === "button"
36
- ), z = s(() => h.value ? "--cursor-default" : "--cursor-pointer"), w = s(() => `--is-${r.variant}`), k = s(() => r.loading && r.variant === "button"), o = s(() => !!$["left-icon"] || r.leftIcon), c = s(() => !!$["right-icon"] || r.rightIcon), v = s(() => o.value || c.value), T = s(() => r.fab && (r.icon || !!$.icon)), F = s(() => t.value === "button" ? r.type : void 0);
37
- return (l, U) => (a(), d(V(t.value), {
38
- disabled: h.value || void 0,
39
- class: B(["m-btn", [
40
- `--${l.size}`,
41
- !l.fab && l.roundedSize && `--rounded-${l.roundedSize}`,
39
+ const I = r(() => s ? "a" : M ? "router-link" : "button"), B = r(
40
+ () => l.pastel ? `--${l.color}-pastel` : l.outline ? `--${l.color}-outline` : `--${l.color}`
41
+ ), b = r(
42
+ () => (l.loading || l.disabled) && I.value === "button"
43
+ ), y = r(() => b.value ? "--cursor-default" : "--cursor-pointer"), $ = r(() => `--is-${l.variant}`), h = r(() => l.loading && l.variant === "button"), o = r(() => !!k["left-icon"] || l.leftIcon), f = r(() => !!k["right-icon"] || l.rightIcon), p = r(() => o.value || f.value), T = r(() => l.fab && (l.icon || !!k.icon)), F = r(() => I.value === "button" ? l.type : void 0);
44
+ return (t, U) => (a(), u(V(I.value), {
45
+ disabled: b.value || void 0,
46
+ class: z(["m-btn", [
47
+ `--${t.size}`,
48
+ !t.fab && t.roundedSize && `--rounded-${t.roundedSize}`,
49
+ B.value,
42
50
  y.value,
43
- z.value,
44
- w.value,
51
+ $.value,
45
52
  {
46
- "--block": l.block,
47
- "--no-underline": l.noUnderline,
48
- "--fab": l.fab,
49
- "--loading": l.loading,
50
- "--disabled": h.value,
51
- "--icon": v.value,
52
- "--rounded": l.rounded,
53
- "--no-rounded": l.noRounded,
54
- "--no-padding": l.noPadding,
55
- "--no-elevation": l.noElevation
53
+ "--block": t.block,
54
+ "--no-underline": t.noUnderline,
55
+ "--fab": t.fab,
56
+ "--loading": t.loading,
57
+ "--disabled": b.value,
58
+ "--icon": p.value,
59
+ "--rounded": t.rounded,
60
+ "--no-rounded": t.noRounded,
61
+ "--no-padding": t.noPadding,
62
+ "--no-elevation": t.noElevation
56
63
  }
57
64
  ]]),
58
65
  type: F.value
59
66
  }, {
60
67
  default: P(() => [
61
- o.value ? (a(), b(
68
+ o.value ? (a(), v(
62
69
  "div",
63
70
  {
64
71
  key: 0,
65
- class: B(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": k.value }])
72
+ class: z(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": h.value }])
66
73
  },
67
74
  [
68
75
  i(`
69
76
  @slot left-icon - The icon to display on the left of the button
70
77
  `),
71
- M(l.$slots, "left-icon", {}, () => [
72
- typeof l.leftIcon == "string" ? (a(), d(m(n), {
78
+ C(t.$slots, "left-icon", {}, () => [
79
+ typeof t.leftIcon == "string" ? (a(), u(c(d), {
73
80
  key: 0,
74
- name: l.leftIcon
75
- }, null, 8, ["name"])) : l.leftIcon ? (a(), d(V(l.leftIcon), { key: 1 })) : i("v-if", !0)
81
+ name: t.leftIcon
82
+ }, null, 8, ["name"])) : t.leftIcon ? (a(), u(V(t.leftIcon), { key: 1 })) : i("v-if", !0)
76
83
  ], !0)
77
84
  ],
78
85
  2
79
86
  /* CLASS */
80
87
  )) : i("v-if", !0),
81
- T.value ? (a(), b(
88
+ T.value ? (a(), v(
82
89
  "div",
83
90
  {
84
91
  key: 1,
85
- class: B(["m-btn__icon", { "maz-invisible": k.value }])
92
+ class: z(["m-btn__icon", { "maz-invisible": h.value }])
86
93
  },
87
94
  [
88
95
  i(`
89
96
  @slot icon - The icon to display on the fab button
90
97
  `),
91
- M(l.$slots, "icon", {}, () => [
92
- typeof l.icon == "string" ? (a(), d(m(n), {
98
+ C(t.$slots, "icon", {}, () => [
99
+ typeof t.icon == "string" ? (a(), u(c(d), {
93
100
  key: 0,
94
- name: l.icon
95
- }, null, 8, ["name"])) : l.icon ? (a(), d(V(l.icon), { key: 1 })) : i("v-if", !0)
101
+ name: t.icon
102
+ }, null, 8, ["name"])) : t.icon ? (a(), u(V(t.icon), { key: 1 })) : i("v-if", !0)
96
103
  ], !0)
97
104
  ],
98
105
  2
99
106
  /* CLASS */
100
107
  )) : i("v-if", !0),
101
- l.$slots.default ? (a(), b(
108
+ t.$slots.default ? (a(), v(
102
109
  "span",
103
110
  {
104
111
  key: 2,
105
- class: B([{ "maz-invisible": k.value }, l.contentClass])
112
+ class: z([{ "maz-invisible": h.value }, t.contentClass])
106
113
  },
107
114
  [
108
115
  i(`
109
116
  @slot default - The content of the button
110
117
  `),
111
- M(l.$slots, "default", {}, void 0, !0)
118
+ C(t.$slots, "default", {}, void 0, !0)
112
119
  ],
113
120
  2
114
121
  /* CLASS */
115
122
  )) : i("v-if", !0),
116
- c.value ? (a(), b(
123
+ f.value ? (a(), v(
117
124
  "div",
118
125
  {
119
126
  key: 3,
120
- class: B(["m-btn__icon-right", { "maz-invisible": k.value }])
127
+ class: z(["m-btn__icon-right", { "maz-invisible": h.value }])
121
128
  },
122
129
  [
123
130
  i(`
124
131
  @slot right-icon - The icon to display on the right of the button
125
132
  `),
126
- M(l.$slots, "right-icon", {}, () => [
127
- typeof l.rightIcon == "string" ? (a(), d(m(n), {
133
+ C(t.$slots, "right-icon", {}, () => [
134
+ typeof t.rightIcon == "string" ? (a(), u(c(d), {
128
135
  key: 0,
129
- name: l.rightIcon
130
- }, null, 8, ["name"])) : l.rightIcon ? (a(), d(V(l.rightIcon), { key: 1 })) : i("v-if", !0)
136
+ name: t.rightIcon
137
+ }, null, 8, ["name"])) : t.rightIcon ? (a(), u(V(t.rightIcon), { key: 1 })) : i("v-if", !0)
131
138
  ], !0)
132
139
  ],
133
140
  2
134
141
  /* CLASS */
135
142
  )) : i("v-if", !0),
136
- k.value ? (a(), d(m(p), {
143
+ h.value ? (a(), u(c(n), {
137
144
  key: 4,
138
145
  class: "m-btn-loader",
139
146
  size: "2em",
140
- color: l.color
147
+ color: t.color
141
148
  }, null, 8, ["color"])) : i("v-if", !0)
142
149
  ]),
143
150
  _: 3
144
151
  /* FORWARDED */
145
152
  }, 8, ["disabled", "class", "type"]));
146
153
  }
147
- }), G = (f, p) => {
148
- const n = f.__vccOpts || f;
149
- for (const [g, u] of p)
150
- n[g] = u;
154
+ }), H = (m, l) => {
155
+ const n = m.__vccOpts || m;
156
+ for (const [d, s] of l)
157
+ n[d] = s;
151
158
  return n;
152
- }, R = /* @__PURE__ */ G(de, [["__scopeId", "data-v-4d87e490"]]), ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
159
+ }, R = /* @__PURE__ */ H(de, [["__scopeId", "data-v-48f14785"]]), fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
153
160
  __proto__: null,
154
161
  default: R
155
162
  }, Symbol.toStringTag, { value: "Module" }));
156
- function H(f, p) {
157
- let n;
158
- return function(...g) {
159
- clearTimeout(n), n = setTimeout(() => {
160
- f.apply(this, g);
161
- }, p);
162
- };
163
- }
164
- function me({
165
- componentName: f,
166
- providedId: p
163
+ function ce({
164
+ componentName: m,
165
+ providedId: l
167
166
  }) {
168
167
  const n = te();
169
- return s(() => p ?? `${f}-${n == null ? void 0 : n.uid}`);
168
+ return r(() => l ?? `${m}-${n == null ? void 0 : n.uid}`);
170
169
  }
171
- const fe = {
170
+ const me = {
172
171
  key: 0,
173
172
  class: "m-input-wrapper-left"
174
173
  }, pe = { class: "m-input-wrapper-input" }, ve = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], be = { key: 0 }, ye = {
@@ -211,81 +210,83 @@ const fe = {
211
210
  block: { type: Boolean }
212
211
  },
213
212
  emits: ["update:model-value", "focus", "blur", "click", "change"],
214
- setup(f, { emit: p }) {
215
- const n = C(() => Promise.resolve().then(() => ce)), g = C(() => import("./MazIcon-Cxrv3_OK.mjs")), u = C(() => import("./eye-slash-tjfxO0LK.mjs")), $ = C(() => import("./eye-DqO_Jx56.mjs")), r = C(() => import("./check-CL-vqe79.mjs")), t = f, y = p, h = A(!1), z = A(!1), w = A(), k = me({
213
+ setup(m, { emit: l }) {
214
+ const n = m, d = l, s = w(() => Promise.resolve().then(() => fe)), M = w(() => import("./MazIcon-BDGxCy9M.mjs")), k = w(() => import("./eye-slash-tjfxO0LK.mjs")), I = w(() => import("./eye-DqO_Jx56.mjs")), B = w(() => import("./check-CL-vqe79.mjs")), b = A(!1), y = A(!1), $ = A(), h = ce({
216
215
  componentName: "MazInput",
217
- providedId: t.id
216
+ providedId: n.id
218
217
  });
219
218
  le(() => {
220
219
  var e;
221
- t.autoFocus && ((e = w.value) == null || e.focus());
220
+ n.autoFocus && ((e = $.value) == null || e.focus());
222
221
  });
223
- const o = s(() => t.type === "password"), c = s(() => h.value ? "text" : t.type), v = s(() => {
224
- if (!t.noBorder) {
225
- if (t.error)
222
+ const o = r(() => n.type === "password"), f = r(() => b.value ? "text" : n.type), p = r(() => {
223
+ if (!n.noBorder) {
224
+ if (n.error)
226
225
  return "maz-border-danger";
227
- if (t.success)
226
+ if (n.success)
228
227
  return "maz-border-success";
229
- if (t.warning)
228
+ if (n.warning)
230
229
  return "maz-border-warning";
231
- if (z.value || t.borderActive) {
232
- if (t.color === "black")
230
+ if (y.value || n.borderActive) {
231
+ if (n.color === "black")
233
232
  return "maz-border-black";
234
- if (t.color === "danger")
233
+ if (n.color === "danger")
235
234
  return "maz-border-danger";
236
- if (t.color === "info")
235
+ if (n.color === "info")
237
236
  return "maz-border-info";
238
- if (t.color === "primary")
237
+ if (n.color === "primary")
239
238
  return "maz-border-primary";
240
- if (t.color === "secondary")
239
+ if (n.color === "secondary")
241
240
  return "maz-border-secondary";
242
- if (t.color === "success")
241
+ if (n.color === "success")
243
242
  return "maz-border-success";
244
- if (t.color === "warning")
243
+ if (n.color === "warning")
245
244
  return "maz-border-warning";
246
- if (t.color === "white")
245
+ if (n.color === "white")
247
246
  return "maz-border-white";
248
247
  }
249
248
  return "--default-border";
250
249
  }
251
- }), T = j(), F = s(() => {
252
- const { required: e, placeholder: I } = t;
253
- if (I)
254
- return e ? `${I} *` : I;
255
- }), l = s(() => D.value !== void 0 && D.value !== ""), U = H(
250
+ }), T = j(), F = r(() => {
251
+ const { required: e, placeholder: g } = n;
252
+ if (g)
253
+ return e ? `${g} *` : g;
254
+ }), t = r(() => D.value !== void 0 && D.value !== ""), U = G(
256
255
  (e) => {
257
- y("update:model-value", e);
256
+ d("update:model-value", e);
258
257
  },
259
- typeof t.debounce == "number" ? t.debounce : t.debounceDelay ?? 500
260
- ), J = (e) => {
261
- if (t.debounce)
258
+ typeof n.debounce == "number" ? n.debounce : n.debounceDelay ?? 500
259
+ );
260
+ function J(e) {
261
+ if (n.debounce)
262
262
  return U(e);
263
- y("update:model-value", e);
264
- }, D = s({
265
- get: () => t.modelValue,
263
+ d("update:model-value", e);
264
+ }
265
+ const D = r({
266
+ get: () => n.modelValue,
266
267
  set: (e) => J(e)
267
- }), Q = s(() => (!!t.label || !!t.hint) && (z.value || !!l.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), W = s(() => !!t.label || !!t.hint);
268
+ }), Q = r(() => (!!n.label || !!n.hint) && (y.value || !!t.value || !!n.placeholder || ["date", "month", "week"].includes(n.type))), W = r(() => !!n.label || !!n.hint);
268
269
  function X() {
269
- return !!T["right-icon"] || o.value || !!T["valid-button"] || t.validButton || !!t.rightIcon;
270
+ return !!T["right-icon"] || o.value || !!T["valid-button"] || n.validButton || !!n.rightIcon;
270
271
  }
271
272
  function Z() {
272
- return !!T["left-icon"] || !!t.leftIcon;
273
+ return !!T["left-icon"] || !!n.leftIcon;
273
274
  }
274
275
  function _(e) {
275
- y("focus", e), z.value = !0;
276
+ d("focus", e), y.value = !0;
276
277
  }
277
278
  function x(e) {
278
- y("blur", e), z.value = !1;
279
+ d("blur", e), y.value = !1;
279
280
  }
280
281
  function ee(e) {
281
- return y("change", e);
282
+ return d("change", e);
282
283
  }
283
- return (e, I) => (a(), b(
284
+ return (e, g) => (a(), v(
284
285
  "div",
285
286
  {
286
- class: B(["m-input", [
287
+ class: z(["m-input", [
287
288
  {
288
- "--is-focused": z.value || e.borderActive,
289
+ "--is-focused": y.value || e.borderActive,
289
290
  "--should-up": Q.value,
290
291
  "--has-label": W.value,
291
292
  "--is-disabled": e.disabled,
@@ -294,7 +295,7 @@ const fe = {
294
295
  "--has-state": e.error || e.warning || e.success,
295
296
  "--block": e.block
296
297
  },
297
- t.class,
298
+ n.class,
298
299
  `--${e.color}`,
299
300
  `--${e.size}`
300
301
  ]]),
@@ -304,23 +305,23 @@ const fe = {
304
305
  N(
305
306
  "div",
306
307
  {
307
- class: B(["m-input-wrapper", [
308
+ class: z(["m-input-wrapper", [
308
309
  e.inputClasses,
309
- v.value,
310
+ p.value,
310
311
  e.roundedSize ? `--rounded-${e.roundedSize}` : { "maz-rounded": !e.noRadius }
311
312
  ]])
312
313
  },
313
314
  [
314
- Z() ? (a(), b("div", fe, [
315
+ Z() ? (a(), v("div", me, [
315
316
  i(`
316
317
  @slot left-icon - The icon to display on the left of the input
317
318
  `),
318
- e.$slots["left-icon"] || e.leftIcon ? M(e.$slots, "left-icon", { key: 0 }, () => [
319
- typeof e.leftIcon == "string" ? (a(), d(m(g), {
319
+ e.$slots["left-icon"] || e.leftIcon ? C(e.$slots, "left-icon", { key: 0 }, () => [
320
+ typeof e.leftIcon == "string" ? (a(), u(c(M), {
320
321
  key: 0,
321
322
  name: e.leftIcon,
322
323
  class: "maz-text-xl maz-text-muted"
323
- }, null, 8, ["name"])) : e.leftIcon ? (a(), d(V(e.leftIcon), {
324
+ }, null, 8, ["name"])) : e.leftIcon ? (a(), u(V(e.leftIcon), {
324
325
  key: 1,
325
326
  class: "maz-text-xl maz-text-muted"
326
327
  })) : i("v-if", !0)
@@ -328,11 +329,11 @@ const fe = {
328
329
  ])) : i("v-if", !0),
329
330
  N("div", pe, [
330
331
  ae(N("input", Y({
331
- id: m(k),
332
+ id: c(h),
332
333
  ref_key: "input",
333
- ref: w,
334
- "onUpdate:modelValue": I[0] || (I[0] = (E) => D.value = E),
335
- type: c.value,
334
+ ref: $,
335
+ "onUpdate:modelValue": g[0] || (g[0] = (E) => D.value = E),
336
+ type: f.value,
336
337
  name: e.name
337
338
  }, e.$attrs, {
338
339
  inputmode: e.inputmode,
@@ -347,16 +348,15 @@ const fe = {
347
348
  focus: _,
348
349
  change: ee
349
350
  }, !0), {
350
- onClick: I[1] || (I[1] = (E) => e.$emit("click", E))
351
+ onClick: g[1] || (g[1] = (E) => e.$emit("click", E))
351
352
  }), null, 16, ve), [
352
- [se, D.value]
353
+ [re, D.value]
353
354
  ]),
354
- e.label || e.hint ? (a(), b(
355
+ e.label || e.hint ? (a(), v(
355
356
  "span",
356
357
  {
357
358
  key: 0,
358
- ref: "label",
359
- class: B(["m-input-label", [
359
+ class: z(["m-input-label", [
360
360
  {
361
361
  "maz-text-danger-600": e.error,
362
362
  "maz-text-success-600": e.success,
@@ -365,43 +365,43 @@ const fe = {
365
365
  ]])
366
366
  },
367
367
  [
368
- re(
368
+ se(
369
369
  ue(e.hint || e.label) + " ",
370
370
  1
371
371
  /* TEXT */
372
372
  ),
373
- e.required ? (a(), b("sup", be, "*")) : i("v-if", !0)
373
+ e.required ? (a(), v("sup", be, "*")) : i("v-if", !0)
374
374
  ],
375
375
  2
376
376
  /* CLASS */
377
377
  )) : i("v-if", !0)
378
378
  ]),
379
- X() ? (a(), b("div", ye, [
379
+ X() ? (a(), v("div", ye, [
380
380
  i(`
381
381
  @slot right-icon - The icon to display on the right of the input
382
382
  `),
383
- e.$slots["right-icon"] || e.rightIcon ? M(e.$slots, "right-icon", { key: 0 }, () => [
384
- typeof e.rightIcon == "string" ? (a(), d(m(g), {
383
+ e.$slots["right-icon"] || e.rightIcon ? C(e.$slots, "right-icon", { key: 0 }, () => [
384
+ typeof e.rightIcon == "string" ? (a(), u(c(M), {
385
385
  key: 0,
386
386
  name: e.rightIcon,
387
387
  class: "maz-text-xl maz-text-muted"
388
- }, null, 8, ["name"])) : e.rightIcon ? (a(), d(V(e.rightIcon), {
388
+ }, null, 8, ["name"])) : e.rightIcon ? (a(), u(V(e.rightIcon), {
389
389
  key: 1,
390
390
  class: "maz-text-xl maz-text-muted"
391
391
  })) : i("v-if", !0)
392
392
  ], !0) : i("v-if", !0),
393
- o.value ? (a(), d(m(n), {
393
+ o.value ? (a(), u(c(s), {
394
394
  key: 1,
395
395
  color: "transparent",
396
396
  tabindex: "-1",
397
397
  size: "mini",
398
- onClick: I[2] || (I[2] = q((E) => h.value = !h.value, ["stop"]))
398
+ onClick: g[2] || (g[2] = q((E) => b.value = !b.value, ["stop"]))
399
399
  }, {
400
400
  default: P(() => [
401
- h.value ? (a(), d(m(u), {
401
+ b.value ? (a(), u(c(k), {
402
402
  key: 0,
403
403
  class: "maz-text-xl maz-text-muted"
404
- })) : (a(), d(m($), {
404
+ })) : (a(), u(c(I), {
405
405
  key: 1,
406
406
  class: "maz-text-xl maz-text-muted"
407
407
  }))
@@ -412,8 +412,8 @@ const fe = {
412
412
  i(`
413
413
  @slot valid-button - Replace the valid button by your own
414
414
  `),
415
- e.$slots["valid-button"] || e.validButton ? M(e.$slots, "valid-button", { key: 2 }, () => [
416
- S(m(n), {
415
+ e.$slots["valid-button"] || e.validButton ? C(e.$slots, "valid-button", { key: 2 }, () => [
416
+ S(c(s), {
417
417
  color: "transparent",
418
418
  disabled: e.disabled,
419
419
  tabindex: "-1",
@@ -423,7 +423,7 @@ const fe = {
423
423
  type: "submit"
424
424
  }, {
425
425
  default: P(() => [
426
- S(m(r), { class: "maz-text-2xl maz-text-normal" })
426
+ S(c(B), { class: "maz-text-2xl maz-text-normal" })
427
427
  ]),
428
428
  _: 1
429
429
  /* STABLE */
@@ -439,7 +439,7 @@ const fe = {
439
439
  /* CLASS, STYLE */
440
440
  ));
441
441
  }
442
- }), ge = /* @__PURE__ */ G(he, [["__scopeId", "data-v-84073434"]]), ze = {
442
+ }), ge = /* @__PURE__ */ H(he, [["__scopeId", "data-v-e9affc48"]]), ze = {
443
443
  xmlns: "http://www.w3.org/2000/svg",
444
444
  width: "1em",
445
445
  height: "1em",
@@ -460,8 +460,8 @@ const fe = {
460
460
  ), Ie = [
461
461
  ke
462
462
  ];
463
- function Be(f, p) {
464
- return a(), b("svg", ze, [...Ie]);
463
+ function Be(m, l) {
464
+ return a(), v("svg", ze, [...Ie]);
465
465
  }
466
466
  const $e = { render: Be }, we = {
467
467
  xmlns: "http://www.w3.org/2000/svg",
@@ -484,8 +484,8 @@ const $e = { render: Be }, we = {
484
484
  ), Me = [
485
485
  Ce
486
486
  ];
487
- function Ve(f, p) {
488
- return a(), b("svg", we, [...Me]);
487
+ function Ve(m, l) {
488
+ return a(), v("svg", we, [...Me]);
489
489
  }
490
490
  const Te = { render: Ve }, Se = /* @__PURE__ */ L({
491
491
  inheritAttrs: !1,
@@ -505,62 +505,66 @@ const Te = { render: Ve }, Se = /* @__PURE__ */ L({
505
505
  block: { type: Boolean }
506
506
  },
507
507
  emits: ["update:model-value", "focus", "blur", "click", "change"],
508
- setup(f, { emit: p }) {
509
- const n = f, g = p, u = s({
508
+ setup(m, { emit: l }) {
509
+ const n = m, d = l, s = r({
510
510
  get: () => n.modelValue,
511
- set: (o) => y(o)
511
+ set: (o) => B(o)
512
512
  });
513
- function $(o) {
513
+ function M(o) {
514
514
  return Math.round(o / n.step) * n.step;
515
515
  }
516
- const r = (o) => {
516
+ function k(o) {
517
517
  if (typeof o == "number")
518
- return o <= n.min ? n.min : o >= n.max ? n.max : $(o);
519
- }, t = H((o) => y(o), 300), y = (o) => {
520
- o = r(o), u.value !== o && g("update:model-value", o);
521
- };
522
- y(u.value);
523
- const h = s(() => n.modelValue && n.modelValue >= n.max), z = s(() => n.modelValue && n.modelValue <= n.min), w = () => {
524
- if (!(n.disabled || h.value)) {
525
- if ((u.value === void 0 || u.value === null) && Number.isFinite(n.min)) {
526
- u.value = n.min;
518
+ return o <= n.min ? n.min : o >= n.max ? n.max : M(o);
519
+ }
520
+ const I = G((o) => B(o), 300);
521
+ function B(o) {
522
+ o = k(o), s.value !== o && d("update:model-value", o);
523
+ }
524
+ B(s.value);
525
+ const b = r(() => n.modelValue && n.modelValue >= n.max), y = r(() => n.modelValue && n.modelValue <= n.min);
526
+ function $() {
527
+ if (!(n.disabled || b.value)) {
528
+ if ((s.value === void 0 || s.value === null) && Number.isFinite(n.min)) {
529
+ s.value = n.min;
527
530
  return;
528
531
  }
529
- u.value = (u.value ?? 0) + 1 * n.step;
532
+ s.value = (s.value ?? 0) + 1 * n.step;
530
533
  }
531
- }, k = () => {
532
- if (!(n.disabled || z.value)) {
533
- if ((u.value === void 0 || u.value === null) && Number.isFinite(n.min)) {
534
- u.value = n.min;
534
+ }
535
+ function h() {
536
+ if (!(n.disabled || y.value)) {
537
+ if ((s.value === void 0 || s.value === null) && Number.isFinite(n.min)) {
538
+ s.value = n.min;
535
539
  return;
536
540
  }
537
- u.value = (u.value ?? 0) - 1 * n.step;
541
+ s.value = (s.value ?? 0) - 1 * n.step;
538
542
  }
539
- };
540
- return (o, c) => (a(), b(
543
+ }
544
+ return (o, f) => (a(), v(
541
545
  "div",
542
546
  {
543
- class: B(["m-input-number", [`m-input-number--${o.size}`, n.class, { "--block": o.block }]]),
547
+ class: z(["m-input-number", [`m-input-number--${o.size}`, n.class, { "--block": o.block }]]),
544
548
  style: K(o.style)
545
549
  },
546
550
  [
547
- o.noButtons ? i("v-if", !0) : (a(), d(R, {
551
+ o.noButtons ? i("v-if", !0) : (a(), u(R, {
548
552
  key: 0,
549
553
  color: "transparent",
550
554
  size: o.size,
551
555
  tabindex: "-1",
552
556
  class: "m-input-number__button m-input-number__decrement-button",
553
- disabled: z.value || o.disabled,
554
- onClick: k
557
+ disabled: y.value || o.disabled,
558
+ onClick: h
555
559
  }, {
556
560
  default: P(() => [
557
- S(m(Te), { class: "m-input-number__button__icon" })
561
+ S(c(Te), { class: "m-input-number__button__icon" })
558
562
  ]),
559
563
  _: 1
560
564
  /* STABLE */
561
565
  }, 8, ["size", "disabled"])),
562
566
  S(ge, Y({
563
- "model-value": u.value,
567
+ "model-value": s.value,
564
568
  type: "number",
565
569
  class: ["m-input-number__input", { "--no-buttons": o.noButtons, "--text-center": o.textCenter }],
566
570
  disabled: o.disabled,
@@ -572,27 +576,27 @@ const Te = { render: Ve }, Se = /* @__PURE__ */ L({
572
576
  size: o.size,
573
577
  block: "",
574
578
  onKeydown: [
575
- O(q(w, ["prevent"]), ["up"]),
576
- O(q(k, ["prevent"]), ["down"])
579
+ O(q($, ["prevent"]), ["up"]),
580
+ O(q(h, ["prevent"]), ["down"])
577
581
  ],
578
- onFocus: c[0] || (c[0] = (v) => o.$emit("focus", v)),
579
- onChange: c[1] || (c[1] = (v) => o.$emit("change", v)),
580
- onBlur: c[2] || (c[2] = (v) => o.$emit("blur", v)),
581
- onClick: c[3] || (c[3] = (v) => o.$emit("click", v)),
582
- "onUpdate:modelValue": c[4] || (c[4] = (v) => m(t)(v))
582
+ onFocus: f[0] || (f[0] = (p) => o.$emit("focus", p)),
583
+ onChange: f[1] || (f[1] = (p) => o.$emit("change", p)),
584
+ onBlur: f[2] || (f[2] = (p) => o.$emit("blur", p)),
585
+ onClick: f[3] || (f[3] = (p) => o.$emit("click", p)),
586
+ "onUpdate:modelValue": f[4] || (f[4] = (p) => c(I)(p))
583
587
  }), null, 16, ["model-value", "class", "disabled", "min", "max", "step", "inputmode", "size", "onKeydown"]),
584
- o.noButtons ? i("v-if", !0) : (a(), d(R, {
588
+ o.noButtons ? i("v-if", !0) : (a(), u(R, {
585
589
  key: 1,
586
590
  color: "transparent",
587
591
  "no-shadow": "",
588
592
  tabindex: "-1",
589
593
  size: o.size,
590
594
  class: "m-input-number__button m-input-number__increment-button",
591
- disabled: h.value || o.disabled,
592
- onClick: w
595
+ disabled: b.value || o.disabled,
596
+ onClick: $
593
597
  }, {
594
598
  default: P(() => [
595
- S(m($e), { class: "m-input-number__button__icon" })
599
+ S(c($e), { class: "m-input-number__button__icon" })
596
600
  ]),
597
601
  _: 1
598
602
  /* STABLE */
@@ -604,6 +608,6 @@ const Te = { render: Ve }, Se = /* @__PURE__ */ L({
604
608
  }
605
609
  });
606
610
  export {
607
- G as _,
611
+ H as _,
608
612
  Se as a
609
613
  };