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,27 +1,29 @@
1
- import '../assets/MazInputTags.css';
2
- import { getCurrentInstance as ae, computed as u, defineComponent as N, defineAsyncComponent as V, ref as M, onMounted as le, useSlots as H, openBlock as r, createElementBlock as b, normalizeClass as T, normalizeStyle as K, createElementVNode as E, createCommentVNode as s, renderSlot as L, createBlock as p, unref as v, resolveDynamicComponent as P, withDirectives as G, mergeProps as X, toHandlers as re, vModelDynamic as se, createTextVNode as J, toDisplayString as Q, withModifiers as W, withCtx as D, createVNode as S, useAttrs as ie, onBeforeMount as ue, TransitionGroup as de, Fragment as ce, renderList as fe, Transition as me, vShow as pe, withKeys as O } from "vue";
3
- function ve(f, y) {
4
- let n;
5
- return function(...h) {
6
- clearTimeout(n), n = setTimeout(() => {
7
- f.apply(this, h);
8
- }, y);
9
- };
1
+ import { getCurrentInstance as ne, computed as u, defineComponent as N, defineAsyncComponent as V, ref as C, onMounted as ae, useSlots as H, openBlock as a, createElementBlock as y, normalizeClass as w, normalizeStyle as K, createElementVNode as E, createCommentVNode as r, renderSlot as S, createBlock as f, unref as b, resolveDynamicComponent as D, withDirectives as le, mergeProps as G, toHandlers as re, vModelDynamic as ie, createTextVNode as J, toDisplayString as Q, withModifiers as W, withCtx as F, createVNode as P, useAttrs as se, onBeforeMount as ue, TransitionGroup as de, Fragment as ce, renderList as fe, withKeys as U } from "vue";
2
+ import '../assets/MazInputTags.css';function j(p) {
3
+ return !!p;
10
4
  }
11
- function be({
12
- componentName: f,
13
- providedId: y
5
+ function pe({
6
+ componentName: p,
7
+ providedId: l
14
8
  }) {
15
- const n = ae();
16
- return u(() => y ?? `${f}-${n == null ? void 0 : n.uid}`);
9
+ const o = ne();
10
+ return u(() => l ?? `${p}-${o == null ? void 0 : o.uid}`);
11
+ }
12
+ function me(p, l) {
13
+ let o;
14
+ return function(...c) {
15
+ clearTimeout(o), o = setTimeout(() => {
16
+ p.apply(this, c);
17
+ }, l);
18
+ };
17
19
  }
18
- const ye = {
20
+ const ve = {
19
21
  key: 0,
20
22
  class: "m-input-wrapper-left"
21
- }, he = { class: "m-input-wrapper-input" }, ge = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], ze = { key: 0 }, ke = {
23
+ }, be = { class: "m-input-wrapper-input" }, ye = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], ge = { key: 0 }, he = {
22
24
  key: 1,
23
25
  class: "m-input-wrapper-right"
24
- }, Ie = /* @__PURE__ */ N({
26
+ }, ze = /* @__PURE__ */ N({
25
27
  inheritAttrs: !1,
26
28
  __name: "MazInput",
27
29
  props: {
@@ -58,16 +60,16 @@ const ye = {
58
60
  block: { type: Boolean }
59
61
  },
60
62
  emits: ["update:model-value", "focus", "blur", "click", "change"],
61
- setup(f, { emit: y }) {
62
- const n = V(() => Promise.resolve().then(() => $e)), h = V(() => import("./MazIcon-Cxrv3_OK.mjs")), g = V(() => import("./eye-slash-tjfxO0LK.mjs")), z = V(() => import("./eye-DqO_Jx56.mjs")), l = V(() => import("./check-CL-vqe79.mjs")), o = f, k = y, m = M(!1), w = M(!1), F = M(), $ = be({
63
+ setup(p, { emit: l }) {
64
+ const o = p, c = l, z = V(() => Promise.resolve().then(() => Ie)), h = V(() => import("./MazIcon-BDGxCy9M.mjs")), g = V(() => import("./eye-slash-tjfxO0LK.mjs")), v = V(() => import("./eye-DqO_Jx56.mjs")), M = V(() => import("./check-CL-vqe79.mjs")), m = C(!1), k = C(!1), L = C(), $ = pe({
63
65
  componentName: "MazInput",
64
66
  providedId: o.id
65
67
  });
66
- le(() => {
68
+ ae(() => {
67
69
  var e;
68
- o.autoFocus && ((e = F.value) == null || e.focus());
70
+ o.autoFocus && ((e = L.value) == null || e.focus());
69
71
  });
70
- const C = u(() => o.type === "password"), a = u(() => m.value ? "text" : o.type), i = u(() => {
72
+ const T = u(() => o.type === "password"), n = u(() => m.value ? "text" : o.type), i = u(() => {
71
73
  if (!o.noBorder) {
72
74
  if (o.error)
73
75
  return "maz-border-danger";
@@ -75,7 +77,7 @@ const ye = {
75
77
  return "maz-border-success";
76
78
  if (o.warning)
77
79
  return "maz-border-warning";
78
- if (w.value || o.borderActive) {
80
+ if (k.value || o.borderActive) {
79
81
  if (o.color === "black")
80
82
  return "maz-border-black";
81
83
  if (o.color === "danger")
@@ -95,46 +97,48 @@ const ye = {
95
97
  }
96
98
  return "--default-border";
97
99
  }
98
- }), d = H(), c = u(() => {
99
- const { required: e, placeholder: B } = o;
100
- if (B)
101
- return e ? `${B} *` : B;
102
- }), t = u(() => A.value !== void 0 && A.value !== ""), I = ve(
100
+ }), s = H(), d = u(() => {
101
+ const { required: e, placeholder: I } = o;
102
+ if (I)
103
+ return e ? `${I} *` : I;
104
+ }), t = u(() => A.value !== void 0 && A.value !== ""), B = me(
103
105
  (e) => {
104
- k("update:model-value", e);
106
+ c("update:model-value", e);
105
107
  },
106
108
  typeof o.debounce == "number" ? o.debounce : o.debounceDelay ?? 500
107
- ), R = (e) => {
109
+ );
110
+ function R(e) {
108
111
  if (o.debounce)
109
- return I(e);
110
- k("update:model-value", e);
111
- }, A = u({
112
+ return B(e);
113
+ c("update:model-value", e);
114
+ }
115
+ const A = u({
112
116
  get: () => o.modelValue,
113
117
  set: (e) => R(e)
114
- }), Z = u(() => (!!o.label || !!o.hint) && (w.value || !!t.value || !!o.placeholder || ["date", "month", "week"].includes(o.type))), _ = u(() => !!o.label || !!o.hint);
118
+ }), Y = u(() => (!!o.label || !!o.hint) && (k.value || !!t.value || !!o.placeholder || ["date", "month", "week"].includes(o.type))), Z = u(() => !!o.label || !!o.hint);
119
+ function _() {
120
+ return !!s["right-icon"] || T.value || !!s["valid-button"] || o.validButton || !!o.rightIcon;
121
+ }
115
122
  function x() {
116
- return !!d["right-icon"] || C.value || !!d["valid-button"] || o.validButton || !!o.rightIcon;
123
+ return !!s["left-icon"] || !!o.leftIcon;
117
124
  }
118
- function ee() {
119
- return !!d["left-icon"] || !!o.leftIcon;
125
+ function ee(e) {
126
+ c("focus", e), k.value = !0;
120
127
  }
121
128
  function oe(e) {
122
- k("focus", e), w.value = !0;
129
+ c("blur", e), k.value = !1;
123
130
  }
124
131
  function te(e) {
125
- k("blur", e), w.value = !1;
132
+ return c("change", e);
126
133
  }
127
- function ne(e) {
128
- return k("change", e);
129
- }
130
- return (e, B) => (r(), b(
134
+ return (e, I) => (a(), y(
131
135
  "div",
132
136
  {
133
- class: T(["m-input", [
137
+ class: w(["m-input", [
134
138
  {
135
- "--is-focused": w.value || e.borderActive,
136
- "--should-up": Z.value,
137
- "--has-label": _.value,
139
+ "--is-focused": k.value || e.borderActive,
140
+ "--should-up": Y.value,
141
+ "--has-label": Z.value,
138
142
  "--is-disabled": e.disabled,
139
143
  "--is-readonly": e.readonly,
140
144
  "--has-z-2": e.error || e.warning || e.success,
@@ -151,59 +155,58 @@ const ye = {
151
155
  E(
152
156
  "div",
153
157
  {
154
- class: T(["m-input-wrapper", [
158
+ class: w(["m-input-wrapper", [
155
159
  e.inputClasses,
156
160
  i.value,
157
161
  e.roundedSize ? `--rounded-${e.roundedSize}` : { "maz-rounded": !e.noRadius }
158
162
  ]])
159
163
  },
160
164
  [
161
- ee() ? (r(), b("div", ye, [
162
- s(`
165
+ x() ? (a(), y("div", ve, [
166
+ r(`
163
167
  @slot left-icon - The icon to display on the left of the input
164
168
  `),
165
- e.$slots["left-icon"] || e.leftIcon ? L(e.$slots, "left-icon", { key: 0 }, () => [
166
- typeof e.leftIcon == "string" ? (r(), p(v(h), {
169
+ e.$slots["left-icon"] || e.leftIcon ? S(e.$slots, "left-icon", { key: 0 }, () => [
170
+ typeof e.leftIcon == "string" ? (a(), f(b(h), {
167
171
  key: 0,
168
172
  name: e.leftIcon,
169
173
  class: "maz-text-xl maz-text-muted"
170
- }, null, 8, ["name"])) : e.leftIcon ? (r(), p(P(e.leftIcon), {
174
+ }, null, 8, ["name"])) : e.leftIcon ? (a(), f(D(e.leftIcon), {
171
175
  key: 1,
172
176
  class: "maz-text-xl maz-text-muted"
173
- })) : s("v-if", !0)
174
- ], !0) : s("v-if", !0)
175
- ])) : s("v-if", !0),
176
- E("div", he, [
177
- G(E("input", X({
178
- id: v($),
177
+ })) : r("v-if", !0)
178
+ ], !0) : r("v-if", !0)
179
+ ])) : r("v-if", !0),
180
+ E("div", be, [
181
+ le(E("input", G({
182
+ id: b($),
179
183
  ref_key: "input",
180
- ref: F,
181
- "onUpdate:modelValue": B[0] || (B[0] = (q) => A.value = q),
182
- type: a.value,
184
+ ref: L,
185
+ "onUpdate:modelValue": I[0] || (I[0] = (q) => A.value = q),
186
+ type: n.value,
183
187
  name: e.name
184
188
  }, e.$attrs, {
185
189
  inputmode: e.inputmode,
186
- placeholder: c.value,
190
+ placeholder: d.value,
187
191
  "aria-label": e.label || e.placeholder,
188
192
  disabled: e.disabled,
189
193
  readonly: e.readonly,
190
194
  required: e.required,
191
195
  class: "m-input-input"
192
196
  }, re({
193
- blur: te,
194
- focus: oe,
195
- change: ne
197
+ blur: oe,
198
+ focus: ee,
199
+ change: te
196
200
  }, !0), {
197
- onClick: B[1] || (B[1] = (q) => e.$emit("click", q))
198
- }), null, 16, ge), [
199
- [se, A.value]
201
+ onClick: I[1] || (I[1] = (q) => e.$emit("click", q))
202
+ }), null, 16, ye), [
203
+ [ie, A.value]
200
204
  ]),
201
- e.label || e.hint ? (r(), b(
205
+ e.label || e.hint ? (a(), y(
202
206
  "span",
203
207
  {
204
208
  key: 0,
205
- ref: "label",
206
- class: T(["m-input-label", [
209
+ class: w(["m-input-label", [
207
210
  {
208
211
  "maz-text-danger-600": e.error,
209
212
  "maz-text-success-600": e.success,
@@ -217,50 +220,50 @@ const ye = {
217
220
  1
218
221
  /* TEXT */
219
222
  ),
220
- e.required ? (r(), b("sup", ze, "*")) : s("v-if", !0)
223
+ e.required ? (a(), y("sup", ge, "*")) : r("v-if", !0)
221
224
  ],
222
225
  2
223
226
  /* CLASS */
224
- )) : s("v-if", !0)
227
+ )) : r("v-if", !0)
225
228
  ]),
226
- x() ? (r(), b("div", ke, [
227
- s(`
229
+ _() ? (a(), y("div", he, [
230
+ r(`
228
231
  @slot right-icon - The icon to display on the right of the input
229
232
  `),
230
- e.$slots["right-icon"] || e.rightIcon ? L(e.$slots, "right-icon", { key: 0 }, () => [
231
- typeof e.rightIcon == "string" ? (r(), p(v(h), {
233
+ e.$slots["right-icon"] || e.rightIcon ? S(e.$slots, "right-icon", { key: 0 }, () => [
234
+ typeof e.rightIcon == "string" ? (a(), f(b(h), {
232
235
  key: 0,
233
236
  name: e.rightIcon,
234
237
  class: "maz-text-xl maz-text-muted"
235
- }, null, 8, ["name"])) : e.rightIcon ? (r(), p(P(e.rightIcon), {
238
+ }, null, 8, ["name"])) : e.rightIcon ? (a(), f(D(e.rightIcon), {
236
239
  key: 1,
237
240
  class: "maz-text-xl maz-text-muted"
238
- })) : s("v-if", !0)
239
- ], !0) : s("v-if", !0),
240
- C.value ? (r(), p(v(n), {
241
+ })) : r("v-if", !0)
242
+ ], !0) : r("v-if", !0),
243
+ T.value ? (a(), f(b(z), {
241
244
  key: 1,
242
245
  color: "transparent",
243
246
  tabindex: "-1",
244
247
  size: "mini",
245
- onClick: B[2] || (B[2] = W((q) => m.value = !m.value, ["stop"]))
248
+ onClick: I[2] || (I[2] = W((q) => m.value = !m.value, ["stop"]))
246
249
  }, {
247
- default: D(() => [
248
- m.value ? (r(), p(v(g), {
250
+ default: F(() => [
251
+ m.value ? (a(), f(b(g), {
249
252
  key: 0,
250
253
  class: "maz-text-xl maz-text-muted"
251
- })) : (r(), p(v(z), {
254
+ })) : (a(), f(b(v), {
252
255
  key: 1,
253
256
  class: "maz-text-xl maz-text-muted"
254
257
  }))
255
258
  ]),
256
259
  _: 1
257
260
  /* STABLE */
258
- })) : s("v-if", !0),
259
- s(`
261
+ })) : r("v-if", !0),
262
+ r(`
260
263
  @slot valid-button - Replace the valid button by your own
261
264
  `),
262
- e.$slots["valid-button"] || e.validButton ? L(e.$slots, "valid-button", { key: 2 }, () => [
263
- S(v(n), {
265
+ e.$slots["valid-button"] || e.validButton ? S(e.$slots, "valid-button", { key: 2 }, () => [
266
+ P(b(z), {
264
267
  color: "transparent",
265
268
  disabled: e.disabled,
266
269
  tabindex: "-1",
@@ -269,14 +272,14 @@ const ye = {
269
272
  size: "mini",
270
273
  type: "submit"
271
274
  }, {
272
- default: D(() => [
273
- S(v(l), { class: "maz-text-2xl maz-text-normal" })
275
+ default: F(() => [
276
+ P(b(M), { class: "maz-text-2xl maz-text-normal" })
274
277
  ]),
275
278
  _: 1
276
279
  /* STABLE */
277
280
  }, 8, ["disabled", "loading"])
278
- ], !0) : s("v-if", !0)
279
- ])) : s("v-if", !0)
281
+ ], !0) : r("v-if", !0)
282
+ ])) : r("v-if", !0)
280
283
  ],
281
284
  2
282
285
  /* CLASS */
@@ -286,12 +289,12 @@ const ye = {
286
289
  /* CLASS, STYLE */
287
290
  ));
288
291
  }
289
- }), U = (f, y) => {
290
- const n = f.__vccOpts || f;
291
- for (const [h, g] of y)
292
- n[h] = g;
293
- return n;
294
- }, Be = /* @__PURE__ */ U(Ie, [["__scopeId", "data-v-84073434"]]), we = /* @__PURE__ */ N({
292
+ }), O = (p, l) => {
293
+ const o = p.__vccOpts || p;
294
+ for (const [c, z] of l)
295
+ o[c] = z;
296
+ return o;
297
+ }, ke = /* @__PURE__ */ O(ze, [["__scopeId", "data-v-e9affc48"]]), Be = /* @__PURE__ */ N({
295
298
  __name: "MazBtn",
296
299
  props: {
297
300
  variant: { default: "button" },
@@ -315,24 +318,24 @@ const ye = {
315
318
  noElevation: { type: Boolean },
316
319
  contentClass: { default: void 0 }
317
320
  },
318
- setup(f) {
319
- const y = V(() => import("./MazSpinner-s_0BLDqW.mjs")), n = V(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: h, to: g } = ie(), z = H(), l = f;
321
+ setup(p) {
322
+ const l = p, o = V(() => import("./MazSpinner-D4CdHpP2.mjs")), c = V(() => import("./MazIcon-BDGxCy9M.mjs")), { href: z, to: h } = se(), g = H();
320
323
  ue(() => {
321
324
  l.icon && !l.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
322
325
  });
323
- const o = u(() => h ? "a" : g ? "router-link" : "button"), k = u(
326
+ const v = u(() => z ? "a" : h ? "router-link" : "button"), M = u(
324
327
  () => l.pastel ? `--${l.color}-pastel` : l.outline ? `--${l.color}-outline` : `--${l.color}`
325
328
  ), m = u(
326
- () => (l.loading || l.disabled) && o.value === "button"
327
- ), w = u(() => m.value ? "--cursor-default" : "--cursor-pointer"), F = u(() => `--is-${l.variant}`), $ = u(() => l.loading && l.variant === "button"), C = u(() => !!z["left-icon"] || l.leftIcon), a = u(() => !!z["right-icon"] || l.rightIcon), i = u(() => C.value || a.value), d = u(() => l.fab && (l.icon || !!z.icon)), c = u(() => o.value === "button" ? l.type : void 0);
328
- return (t, I) => (r(), p(P(o.value), {
329
+ () => (l.loading || l.disabled) && v.value === "button"
330
+ ), k = u(() => m.value ? "--cursor-default" : "--cursor-pointer"), L = u(() => `--is-${l.variant}`), $ = u(() => l.loading && l.variant === "button"), T = u(() => !!g["left-icon"] || l.leftIcon), n = u(() => !!g["right-icon"] || l.rightIcon), i = u(() => T.value || n.value), s = u(() => l.fab && (l.icon || !!g.icon)), d = u(() => v.value === "button" ? l.type : void 0);
331
+ return (t, B) => (a(), f(D(v.value), {
329
332
  disabled: m.value || void 0,
330
- class: T(["m-btn", [
333
+ class: w(["m-btn", [
331
334
  `--${t.size}`,
332
335
  !t.fab && t.roundedSize && `--rounded-${t.roundedSize}`,
336
+ M.value,
333
337
  k.value,
334
- w.value,
335
- F.value,
338
+ L.value,
336
339
  {
337
340
  "--block": t.block,
338
341
  "--no-underline": t.noUnderline,
@@ -346,105 +349,105 @@ const ye = {
346
349
  "--no-elevation": t.noElevation
347
350
  }
348
351
  ]]),
349
- type: c.value
352
+ type: d.value
350
353
  }, {
351
- default: D(() => [
352
- C.value ? (r(), b(
354
+ default: F(() => [
355
+ T.value ? (a(), y(
353
356
  "div",
354
357
  {
355
358
  key: 0,
356
- class: T(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": $.value }])
359
+ class: w(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": $.value }])
357
360
  },
358
361
  [
359
- s(`
362
+ r(`
360
363
  @slot left-icon - The icon to display on the left of the button
361
364
  `),
362
- L(t.$slots, "left-icon", {}, () => [
363
- typeof t.leftIcon == "string" ? (r(), p(v(n), {
365
+ S(t.$slots, "left-icon", {}, () => [
366
+ typeof t.leftIcon == "string" ? (a(), f(b(c), {
364
367
  key: 0,
365
368
  name: t.leftIcon
366
- }, null, 8, ["name"])) : t.leftIcon ? (r(), p(P(t.leftIcon), { key: 1 })) : s("v-if", !0)
369
+ }, null, 8, ["name"])) : t.leftIcon ? (a(), f(D(t.leftIcon), { key: 1 })) : r("v-if", !0)
367
370
  ], !0)
368
371
  ],
369
372
  2
370
373
  /* CLASS */
371
- )) : s("v-if", !0),
372
- d.value ? (r(), b(
374
+ )) : r("v-if", !0),
375
+ s.value ? (a(), y(
373
376
  "div",
374
377
  {
375
378
  key: 1,
376
- class: T(["m-btn__icon", { "maz-invisible": $.value }])
379
+ class: w(["m-btn__icon", { "maz-invisible": $.value }])
377
380
  },
378
381
  [
379
- s(`
382
+ r(`
380
383
  @slot icon - The icon to display on the fab button
381
384
  `),
382
- L(t.$slots, "icon", {}, () => [
383
- typeof t.icon == "string" ? (r(), p(v(n), {
385
+ S(t.$slots, "icon", {}, () => [
386
+ typeof t.icon == "string" ? (a(), f(b(c), {
384
387
  key: 0,
385
388
  name: t.icon
386
- }, null, 8, ["name"])) : t.icon ? (r(), p(P(t.icon), { key: 1 })) : s("v-if", !0)
389
+ }, null, 8, ["name"])) : t.icon ? (a(), f(D(t.icon), { key: 1 })) : r("v-if", !0)
387
390
  ], !0)
388
391
  ],
389
392
  2
390
393
  /* CLASS */
391
- )) : s("v-if", !0),
392
- t.$slots.default ? (r(), b(
394
+ )) : r("v-if", !0),
395
+ t.$slots.default ? (a(), y(
393
396
  "span",
394
397
  {
395
398
  key: 2,
396
- class: T([{ "maz-invisible": $.value }, t.contentClass])
399
+ class: w([{ "maz-invisible": $.value }, t.contentClass])
397
400
  },
398
401
  [
399
- s(`
402
+ r(`
400
403
  @slot default - The content of the button
401
404
  `),
402
- L(t.$slots, "default", {}, void 0, !0)
405
+ S(t.$slots, "default", {}, void 0, !0)
403
406
  ],
404
407
  2
405
408
  /* CLASS */
406
- )) : s("v-if", !0),
407
- a.value ? (r(), b(
409
+ )) : r("v-if", !0),
410
+ n.value ? (a(), y(
408
411
  "div",
409
412
  {
410
413
  key: 3,
411
- class: T(["m-btn__icon-right", { "maz-invisible": $.value }])
414
+ class: w(["m-btn__icon-right", { "maz-invisible": $.value }])
412
415
  },
413
416
  [
414
- s(`
417
+ r(`
415
418
  @slot right-icon - The icon to display on the right of the button
416
419
  `),
417
- L(t.$slots, "right-icon", {}, () => [
418
- typeof t.rightIcon == "string" ? (r(), p(v(n), {
420
+ S(t.$slots, "right-icon", {}, () => [
421
+ typeof t.rightIcon == "string" ? (a(), f(b(c), {
419
422
  key: 0,
420
423
  name: t.rightIcon
421
- }, null, 8, ["name"])) : t.rightIcon ? (r(), p(P(t.rightIcon), { key: 1 })) : s("v-if", !0)
424
+ }, null, 8, ["name"])) : t.rightIcon ? (a(), f(D(t.rightIcon), { key: 1 })) : r("v-if", !0)
422
425
  ], !0)
423
426
  ],
424
427
  2
425
428
  /* CLASS */
426
- )) : s("v-if", !0),
427
- $.value ? (r(), p(v(y), {
429
+ )) : r("v-if", !0),
430
+ $.value ? (a(), f(b(o), {
428
431
  key: 4,
429
432
  class: "m-btn-loader",
430
433
  size: "2em",
431
434
  color: t.color
432
- }, null, 8, ["color"])) : s("v-if", !0)
435
+ }, null, 8, ["color"])) : r("v-if", !0)
433
436
  ]),
434
437
  _: 3
435
438
  /* FORWARDED */
436
439
  }, 8, ["disabled", "class", "type"]));
437
440
  }
438
- }), Y = /* @__PURE__ */ U(we, [["__scopeId", "data-v-4d87e490"]]), $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
441
+ }), X = /* @__PURE__ */ O(Be, [["__scopeId", "data-v-48f14785"]]), Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
439
442
  __proto__: null,
440
- default: Y
441
- }, Symbol.toStringTag, { value: "Module" })), Te = {
443
+ default: X
444
+ }, Symbol.toStringTag, { value: "Module" })), $e = {
442
445
  xmlns: "http://www.w3.org/2000/svg",
443
446
  width: "1em",
444
447
  height: "1em",
445
448
  fill: "none",
446
449
  viewBox: "0 0 24 24"
447
- }, Ce = /* @__PURE__ */ E(
450
+ }, we = /* @__PURE__ */ E(
448
451
  "path",
449
452
  {
450
453
  stroke: "currentColor",
@@ -456,17 +459,13 @@ const ye = {
456
459
  null,
457
460
  -1
458
461
  /* HOISTED */
459
- ), Me = [
460
- Ce
462
+ ), Te = [
463
+ we
461
464
  ];
462
- function Ve(f, y) {
463
- return r(), b("svg", Te, [...Me]);
464
- }
465
- const Se = { render: Ve };
466
- function j(f) {
467
- return !!f;
465
+ function Ce(p, l) {
466
+ return a(), y("svg", $e, [...Te]);
468
467
  }
469
- const Le = /* @__PURE__ */ N({
468
+ const Me = { render: Ce }, Ve = /* @__PURE__ */ N({
470
469
  inheritAttrs: !1,
471
470
  __name: "MazInputTags",
472
471
  props: {
@@ -481,126 +480,108 @@ const Le = /* @__PURE__ */ N({
481
480
  warning: { type: Boolean, default: !1 },
482
481
  size: { default: "md" },
483
482
  color: { default: "primary" },
484
- block: { type: Boolean }
483
+ block: { type: Boolean },
484
+ addTagsOnBlur: { type: Boolean, default: !0 }
485
485
  },
486
486
  emits: ["update:model-value"],
487
- setup(f, { emit: y }) {
488
- const n = f, h = M(!1), g = M(), z = M(), l = M(), o = M(), k = y, m = u(
487
+ setup(p, { emit: l }) {
488
+ const o = p, c = l, z = C(!1), h = C(), g = C(), v = C(), M = C(), m = u(
489
489
  () => {
490
- var a;
491
- return (a = n.modelValue) == null ? void 0 : a.map((i) => ({
490
+ var n;
491
+ return (n = o.modelValue) == null ? void 0 : n.map((i) => ({
492
492
  tag: i,
493
493
  id: Math.random().toString(36).slice(2, 11)
494
494
  }));
495
495
  }
496
- ), w = (a) => {
497
- if (g.value) {
498
- l.value = void 0, a.preventDefault();
499
- const d = g.value.trim().split(",").map((c) => c.trim() === "," ? void 0 : c.trim()).filter(j).filter(
500
- (c) => {
501
- var t, I;
502
- return !((I = (t = n.modelValue) == null ? void 0 : t.filter(j)) != null && I.some((R) => R === c));
496
+ );
497
+ function k(n) {
498
+ if (h.value) {
499
+ v.value = void 0, n.preventDefault();
500
+ const s = h.value.trim().split(",").map((d) => d.trim() === "," ? void 0 : d.trim()).filter(j).filter(
501
+ (d) => {
502
+ var t, B;
503
+ return !((B = (t = o.modelValue) == null ? void 0 : t.filter(j)) != null && B.some((R) => R === d));
503
504
  }
504
505
  );
505
- k(
506
+ c(
506
507
  "update:model-value",
507
- n.modelValue ? [...n.modelValue, ...d] : [...d]
508
- ), g.value = void 0;
508
+ o.modelValue ? [...o.modelValue, ...s] : [...s]
509
+ ), h.value = void 0;
509
510
  }
510
- }, F = u(() => {
511
- if (n.error)
511
+ }
512
+ const L = u(() => {
513
+ if (o.error)
512
514
  return "maz-border-danger";
513
- if (n.success)
515
+ if (o.success)
514
516
  return "maz-border-success";
515
- if (n.warning)
517
+ if (o.warning)
516
518
  return "maz-border-warning";
517
- if (h.value) {
518
- if (n.color === "primary")
519
+ if (z.value) {
520
+ if (o.color === "primary")
519
521
  return "maz-border-primary";
520
- if (n.color === "secondary")
522
+ if (o.color === "secondary")
521
523
  return "maz-border-secondary";
522
- if (n.color === "info")
524
+ if (o.color === "info")
523
525
  return "maz-border-info";
524
- if (n.color === "danger")
526
+ if (o.color === "danger")
525
527
  return "maz-border-danger";
526
- if (n.color === "success")
528
+ if (o.color === "success")
527
529
  return "maz-border-success";
528
- if (n.color === "warning")
530
+ if (o.color === "warning")
529
531
  return "maz-border-warning";
530
- if (n.color === "black")
532
+ if (o.color === "black")
531
533
  return "maz-border-black";
532
- if (n.color === "white")
534
+ if (o.color === "white")
533
535
  return "maz-border-white";
534
536
  }
535
537
  return "maz-border-border dark:maz-border-color-lighter";
536
- }), $ = () => {
537
- var a, i, d;
538
- g.value || m.value && ((a = m.value) == null ? void 0 : a.length) === 0 || (o.value && clearTimeout(o.value), l.value ? (C(l.value), l.value = void 0) : (l.value = (d = (i = m.value) == null ? void 0 : i[m.value.length - 1]) == null ? void 0 : d.id, o.value = setTimeout(() => {
539
- l.value = void 0;
538
+ });
539
+ function $() {
540
+ var n, i, s;
541
+ h.value || m.value && ((n = m.value) == null ? void 0 : n.length) === 0 || (M.value && clearTimeout(M.value), v.value ? (T(v.value), v.value = void 0) : (v.value = (s = (i = m.value) == null ? void 0 : i[m.value.length - 1]) == null ? void 0 : s.id, M.value = setTimeout(() => {
542
+ v.value = void 0;
540
543
  }, 2e3)));
541
- }, C = (a) => {
542
- var d;
543
- const i = (d = m.value) == null ? void 0 : d.filter((c) => c.id !== a).map((c) => c.tag);
544
- k("update:model-value", i);
545
- };
546
- return (a, i) => (r(), b(
544
+ }
545
+ function T(n) {
546
+ var s;
547
+ const i = (s = m.value) == null ? void 0 : s.filter((d) => d.id !== n).map((d) => d.tag);
548
+ c("update:model-value", i);
549
+ }
550
+ return (n, i) => (a(), y(
547
551
  "div",
548
552
  {
549
- class: T(["m-input-tags", [F.value, `--${a.color}`, `--${a.size}`, n.class, { "--block": a.block }]]),
550
- style: K(a.style),
551
- onFocusCapture: i[3] || (i[3] = (d) => h.value = !0),
552
- onBlurCapture: i[4] || (i[4] = (d) => h.value = !1)
553
+ class: w(["m-input-tags", [L.value, `--${n.color}`, `--${n.size}`, o.class, { "--block": n.block }]]),
554
+ style: K(n.style),
555
+ onFocusCapture: i[4] || (i[4] = (s) => z.value = !0),
556
+ onBlurCapture: i[5] || (i[5] = (s) => z.value = !1)
553
557
  },
554
558
  [
555
- S(de, { name: "maz-tags" }, {
556
- default: D(() => [
557
- (r(!0), b(
559
+ P(de, { name: "maz-tags" }, {
560
+ default: F(() => [
561
+ (a(!0), y(
558
562
  ce,
559
563
  null,
560
- fe(m.value, ({ tag: d, id: c }, t) => (r(), b("div", {
564
+ fe(m.value, ({ tag: s, id: d }, t) => (a(), y("div", {
561
565
  key: `tag-${t}`,
562
566
  class: "m-input-tags__wrapper"
563
567
  }, [
564
- S(Y, {
568
+ P(X, {
565
569
  class: "m-input-tags__tag",
566
- disabled: a.disabled,
567
- size: a.size,
568
- color: z.value === c || l.value === c ? "danger" : a.color,
569
- onClick: W((I) => C(c), ["stop"]),
570
- onMouseenter: (I) => z.value = c,
571
- onFocus: (I) => z.value = c,
572
- onMouseleave: i[0] || (i[0] = (I) => z.value = void 0),
573
- onBlur: i[1] || (i[1] = (I) => z.value = void 0)
570
+ disabled: n.disabled,
571
+ size: n.size,
572
+ color: g.value === d || v.value === d ? "danger" : n.color,
573
+ onClick: W((B) => T(d), ["stop"]),
574
+ onMouseenter: (B) => g.value = d,
575
+ onFocus: (B) => g.value = d,
576
+ onMouseleave: i[0] || (i[0] = (B) => g.value = void 0),
577
+ onBlur: i[1] || (i[1] = (B) => g.value = void 0)
574
578
  }, {
575
- "right-icon": D(() => [
576
- S(
577
- me,
578
- {
579
- name: "maz-scale",
580
- persisted: ""
581
- },
582
- {
583
- default: D(() => [
584
- G(S(
585
- v(Se),
586
- null,
587
- null,
588
- 512
589
- /* NEED_PATCH */
590
- ), [
591
- [pe, z.value === c || l.value === c]
592
- ])
593
- ]),
594
- _: 2
595
- /* DYNAMIC */
596
- },
597
- 1024
598
- /* DYNAMIC_SLOTS */
599
- )
579
+ "right-icon": F(() => [
580
+ g.value === d || v.value === d ? (a(), f(b(Me), { key: 0 })) : r("v-if", !0)
600
581
  ]),
601
- default: D(() => [
582
+ default: F(() => [
602
583
  J(
603
- Q(d) + " ",
584
+ Q(s) + " ",
604
585
  1
605
586
  /* TEXT */
606
587
  )
@@ -616,33 +597,34 @@ const Le = /* @__PURE__ */ N({
616
597
  _: 1
617
598
  /* STABLE */
618
599
  }),
619
- S(Be, X({
600
+ P(ke, G({
620
601
  key: "input-tags",
621
- modelValue: g.value,
622
- "onUpdate:modelValue": i[2] || (i[2] = (d) => g.value = d)
623
- }, a.$attrs, {
624
- placeholder: a.placeholder,
625
- label: a.label,
626
- "aria-label": a.label || a.placeholder,
627
- error: a.error,
628
- disabled: a.disabled,
629
- color: a.color,
630
- block: a.block,
631
- size: a.size,
602
+ modelValue: h.value,
603
+ "onUpdate:modelValue": i[2] || (i[2] = (s) => h.value = s)
604
+ }, n.$attrs, {
605
+ placeholder: n.placeholder,
606
+ label: n.label,
607
+ "aria-label": n.label || n.placeholder,
608
+ error: n.error,
609
+ disabled: n.disabled,
610
+ color: n.color,
611
+ block: n.block,
612
+ size: n.size,
632
613
  "no-border": "",
633
614
  class: "m-input-tags__input",
634
615
  onKeydown: [
635
- O(w, ["enter"]),
636
- O($, ["delete"])
637
- ]
616
+ U(k, ["enter"]),
617
+ U($, ["delete"])
618
+ ],
619
+ onBlur: i[3] || (i[3] = (s) => n.addTagsOnBlur ? k(s) : void 0)
638
620
  }), null, 16, ["modelValue", "placeholder", "label", "aria-label", "error", "disabled", "color", "block", "size"])
639
621
  ],
640
622
  38
641
623
  /* CLASS, STYLE, NEED_HYDRATION */
642
624
  ));
643
625
  }
644
- }), Fe = /* @__PURE__ */ U(Le, [["__scopeId", "data-v-20fb03c8"]]);
626
+ }), Le = /* @__PURE__ */ O(Ve, [["__scopeId", "data-v-2915bccf"]]);
645
627
  export {
646
- Fe as M,
647
- U as _
628
+ Le as M,
629
+ O as _
648
630
  };