maz-ui 3.47.2-beta.0 → 3.47.2-beta.11

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 (346) hide show
  1. package/components/MazAccordion.d.ts +3 -2
  2. package/components/MazAccordion.mjs +82 -90
  3. package/components/MazAnimatedCounter.d.ts +16 -32
  4. package/components/MazAnimatedCounter.mjs +27 -29
  5. package/components/MazAvatar.d.ts +2 -1
  6. package/components/MazAvatar.mjs +1 -1
  7. package/components/MazBackdrop.d.ts +2 -1
  8. package/components/MazBadge.d.ts +7 -2
  9. package/components/MazBadge.mjs +1 -1
  10. package/components/MazBottomSheet.d.ts +2 -1
  11. package/components/MazBottomSheet.mjs +1 -1
  12. package/components/MazBtn.d.ts +4 -3
  13. package/components/MazBtn.mjs +1 -1
  14. package/components/MazCard.d.ts +5 -4
  15. package/components/MazCard.mjs +1 -1
  16. package/components/MazCardSpotlight.d.ts +3 -2
  17. package/components/MazCardSpotlight.mjs +18 -22
  18. package/components/MazCarousel.d.ts +3 -2
  19. package/components/MazCarousel.mjs +1 -1
  20. package/components/MazChart.mjs +23 -32
  21. package/components/MazCheckbox.d.ts +4 -3
  22. package/components/MazCheckbox.mjs +74 -70
  23. package/components/MazChecklist.d.ts +2 -5
  24. package/components/MazChecklist.mjs +1 -1
  25. package/components/MazCircularProgressBar.d.ts +19 -66
  26. package/components/MazCircularProgressBar.mjs +47 -52
  27. package/components/MazDialog.d.ts +5 -3
  28. package/components/MazDialog.mjs +1 -1
  29. package/components/MazDialogPromise.mjs +1 -1
  30. package/components/MazDrawer.d.ts +2 -1
  31. package/components/MazDrawer.mjs +1 -1
  32. package/components/MazDropdown.d.ts +25 -3
  33. package/components/MazDropdown.mjs +2 -348
  34. package/components/MazDropzone.d.ts +1 -1
  35. package/components/MazExpandAnimation.d.ts +6 -5
  36. package/components/MazExpandAnimation.mjs +27 -31
  37. package/components/MazFullscreenLoader.d.ts +2 -1
  38. package/components/MazGallery.d.ts +1 -1
  39. package/components/MazGallery.mjs +1 -1
  40. package/components/MazIcon.mjs +14 -13
  41. package/components/MazInput.d.ts +16 -3
  42. package/components/MazInput.mjs +1 -1
  43. package/components/MazInputCode.d.ts +1 -1
  44. package/components/MazInputCode.mjs +26 -30
  45. package/components/MazInputNumber.d.ts +2 -2
  46. package/components/MazInputNumber.mjs +1 -1
  47. package/components/MazInputPrice.d.ts +4 -3
  48. package/components/MazInputPrice.mjs +1 -1
  49. package/components/MazInputTags.mjs +1 -1
  50. package/components/MazLazyImg.d.ts +2 -1
  51. package/components/MazLink.d.ts +2 -1
  52. package/components/MazLink.mjs +19 -31
  53. package/components/MazLoadingBar.d.ts +1 -1
  54. package/components/MazLoadingBar.mjs +31 -27
  55. package/components/MazPagination.d.ts +3 -2
  56. package/components/MazPagination.mjs +1 -1
  57. package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +29 -53
  58. package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +4 -4
  59. package/components/MazPhoneNumberInput.d.ts +6 -5
  60. package/components/MazPhoneNumberInput.mjs +1 -1
  61. package/components/MazPicker/MazPickerCalendar.vue.d.ts +1 -1
  62. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +1 -1
  63. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
  64. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +1 -1
  65. package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +1 -1
  66. package/components/MazPicker/MazPickerContainer.vue.d.ts +1 -1
  67. package/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
  68. package/components/MazPicker/MazPickerHeader.vue.d.ts +1 -1
  69. package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +1 -1
  70. package/components/MazPicker/MazPickerShortcuts.vue.d.ts +1 -1
  71. package/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
  72. package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +1 -1
  73. package/components/MazPicker.d.ts +3 -1
  74. package/components/MazPicker.mjs +1 -1
  75. package/components/MazPullToRefresh.d.ts +4 -3
  76. package/components/MazRadio.d.ts +1 -1
  77. package/components/MazRadio.mjs +27 -37
  78. package/components/MazRadioButtons.d.ts +1 -1
  79. package/components/MazRadioButtons.mjs +61 -66
  80. package/components/MazReadingProgressBar.d.ts +1 -1
  81. package/components/MazSelect.d.ts +1 -1
  82. package/components/MazSelect.mjs +1 -1
  83. package/components/MazSlider.d.ts +1 -1
  84. package/components/MazSlider.mjs +107 -116
  85. package/components/MazSpinner.d.ts +1 -1
  86. package/components/MazStepper.d.ts +3 -2
  87. package/components/MazStepper.mjs +1 -1
  88. package/components/MazSwitch.d.ts +2 -1
  89. package/components/MazSwitch.mjs +20 -27
  90. package/components/MazTable.d.ts +14 -8
  91. package/components/MazTable.mjs +3 -2
  92. package/components/MazTableCell.d.ts +3 -2
  93. package/components/MazTableCell.mjs +12 -12
  94. package/components/MazTableRow.d.ts +3 -2
  95. package/components/MazTableRow.mjs +16 -16
  96. package/components/MazTableTitle.d.ts +3 -2
  97. package/components/MazTableTitle.mjs +18 -18
  98. package/components/MazTabs.d.ts +3 -2
  99. package/components/MazTabsBar.d.ts +3 -2
  100. package/components/MazTabsBar.mjs +1 -1
  101. package/components/MazTabsContent.d.ts +3 -2
  102. package/components/MazTabsContent.mjs +4 -4
  103. package/components/MazTabsContentItem.d.ts +2 -1
  104. package/components/MazTabsContentItem.mjs +7 -7
  105. package/components/MazTextarea.d.ts +58 -32
  106. package/components/MazTextarea.mjs +130 -112
  107. package/components/MazTransitionExpand.d.ts +2 -1
  108. package/components/MazTransitionExpand.mjs +9 -9
  109. package/components/assets/MazAccordion.css +1 -1
  110. package/components/assets/MazAnimatedCounter.css +1 -1
  111. package/components/assets/MazAvatar.css +1 -1
  112. package/components/assets/MazBadge.css +1 -1
  113. package/components/assets/MazBtn.css +1 -1
  114. package/components/assets/MazCardSpotlight.css +1 -1
  115. package/components/assets/MazCheckbox.css +1 -1
  116. package/components/assets/MazChecklist.css +1 -1
  117. package/components/assets/MazCircularProgressBar.css +1 -1
  118. package/components/assets/MazDropdown.css +1 -1
  119. package/components/assets/MazExpandAnimation.css +1 -1
  120. package/components/assets/MazGallery.css +1 -1
  121. package/components/assets/MazInput.css +1 -1
  122. package/components/assets/MazInputCode.css +1 -1
  123. package/components/assets/MazInputNumber.css +1 -1
  124. package/components/assets/MazInputPrice.css +1 -1
  125. package/components/assets/MazInputTags.css +1 -1
  126. package/components/assets/MazLink.css +1 -1
  127. package/components/assets/MazLoadingBar.css +1 -1
  128. package/components/assets/MazPagination.css +1 -1
  129. package/components/assets/MazPhoneNumberInput.css +1 -1
  130. package/components/assets/MazPicker.css +1 -1
  131. package/components/assets/MazRadio.css +1 -1
  132. package/components/assets/MazSelect.css +1 -1
  133. package/components/assets/MazStepper.css +1 -1
  134. package/components/assets/MazSwitch.css +1 -1
  135. package/components/assets/MazTable.css +1 -1
  136. package/components/assets/MazTableCell.css +1 -1
  137. package/components/assets/MazTableRow.css +1 -1
  138. package/components/assets/MazTableTitle.css +1 -1
  139. package/components/assets/MazTabsBar.css +1 -1
  140. package/components/assets/MazTextarea.css +1 -1
  141. package/components/assets/MazTransitionExpand.css +1 -1
  142. package/components/chunks/{MazAvatar-DFoZvWmg.mjs → MazAvatar-CZzOIbzh.mjs} +54 -54
  143. package/components/chunks/{MazBadge-CvIiiTdM.mjs → MazBadge-CupQjB8D.mjs} +2 -2
  144. package/components/chunks/{MazBottomSheet-DqK0EOsq.mjs → MazBottomSheet-D9EPpEV8.mjs} +28 -29
  145. package/components/chunks/MazBtn-BSgCMRt0.mjs +103 -0
  146. package/components/chunks/MazBtn-BVWOyFm-.mjs +103 -0
  147. package/components/chunks/MazBtn-BfIn7glE.mjs +103 -0
  148. package/components/chunks/MazBtn-Br3xKJMD.mjs +103 -0
  149. package/components/chunks/MazBtn-CB6xVwox.mjs +103 -0
  150. package/components/chunks/MazBtn-CIAdgMGr.mjs +111 -0
  151. package/components/chunks/MazBtn-CM-xSnA5.mjs +108 -0
  152. package/components/chunks/MazBtn-CQq-U8qQ.mjs +103 -0
  153. package/components/chunks/MazBtn-Chk7DWOF.mjs +103 -0
  154. package/components/chunks/MazBtn-Ck84sP9a.mjs +103 -0
  155. package/components/chunks/MazBtn-DI80W9rl.mjs +103 -0
  156. package/components/chunks/MazBtn-DhSKmF01.mjs +103 -0
  157. package/components/chunks/MazBtn-DzwuLea3.mjs +103 -0
  158. package/components/chunks/MazBtn-tOUtVpek.mjs +103 -0
  159. package/components/chunks/{MazCard-FSXmHyhj.mjs → MazCard-XBaeDZkg.mjs} +18 -19
  160. package/components/chunks/{MazCarousel-BEl86YGW.mjs → MazCarousel-COTaKhKF.mjs} +20 -21
  161. package/components/chunks/{MazCheckbox-BmnqBHaY.mjs → MazCheckbox-B-Sw22La.mjs} +63 -60
  162. package/components/chunks/{MazCheckbox-Cq9gpTEw.mjs → MazCheckbox-DjY15PA3.mjs} +63 -58
  163. package/components/chunks/{MazCheckbox-2G4VkxDz.mjs → MazCheckbox-DxfneUvu.mjs} +63 -59
  164. package/components/chunks/{MazChecklist-CY1Cv70T.mjs → MazChecklist-DaozZlNb.mjs} +160 -166
  165. package/components/chunks/{MazDialog-CPgFpAlq.mjs → MazDialog-XiX9LEiz.mjs} +66 -81
  166. package/components/chunks/MazDialogPromise-B9_e3Ma9.mjs +488 -0
  167. package/components/chunks/MazDropdown-CKuIGitT.mjs +427 -0
  168. package/components/chunks/MazExpandAnimation-Bdf0-L85.mjs +54 -0
  169. package/components/chunks/{MazGallery-CZOokGAt.mjs → MazGallery-BooLoRWi.mjs} +64 -68
  170. package/components/chunks/{MazGallery-BknvUeo1.mjs → MazGallery-DUOQamrE.mjs} +63 -67
  171. package/components/chunks/MazIcon-BX2Gbz8R.mjs +4 -0
  172. package/components/chunks/{MazIcon-DjMuw8Bz.mjs → MazIcon-C-aPrqx2.mjs} +4 -3
  173. package/components/chunks/{MazIcon-z-jTiuyI.mjs → MazIcon-DFW4cVVf.mjs} +4 -3
  174. package/components/chunks/{MazIcon-BbvBov5G.mjs → MazIcon-_hN-Kivn.mjs} +14 -13
  175. package/components/chunks/MazInput-BWAWlxDa.mjs +314 -0
  176. package/components/chunks/MazInput-DIN1VAoX.mjs +325 -0
  177. package/components/chunks/MazInput-HLPtw5QK.mjs +313 -0
  178. package/components/chunks/MazInputNumber-7Ku2ZcG-.mjs +601 -0
  179. package/components/chunks/{MazInputPrice-BrxE5WVf.mjs → MazInputPrice-C5yErBFP.mjs} +199 -176
  180. package/components/chunks/MazInputTags-DvbQ2mK8.mjs +614 -0
  181. package/components/chunks/{MazLazyImg-C03sUOXs.mjs → MazLazyImg-DQLwaKKz.mjs} +2 -2
  182. package/components/chunks/MazLink-mrqHeBS0.mjs +67 -0
  183. package/components/chunks/MazLoadingBar-CNm3Yt6D.mjs +36 -0
  184. package/components/chunks/MazPagination-BSu0Ifkp.mjs +327 -0
  185. package/components/chunks/{MazPhoneNumberInput-Cd25AzXc.mjs → MazPhoneNumberInput-B5Up8CqL.mjs} +596 -612
  186. package/components/chunks/MazPicker-CzYUZcLy.mjs +2487 -0
  187. package/components/chunks/{MazPickerMonthSwitcher-CyHYx8TT.mjs → MazPickerMonthSwitcher-Ds5agR3Z.mjs} +1 -1
  188. package/components/chunks/{MazPickerShortcuts-Bsi8cnox.mjs → MazPickerShortcuts-BP6CY9-c.mjs} +1 -1
  189. package/components/chunks/{MazPickerYearSwitcher-DLUSMAtz.mjs → MazPickerYearSwitcher-PM8qZMzR.mjs} +1 -1
  190. package/components/chunks/MazSelect-DOexatNj.mjs +871 -0
  191. package/components/chunks/{MazSelect-uCJPMXF-.mjs → MazSelect-DaDRzcT_.mjs} +172 -188
  192. package/components/chunks/{MazSpinner-2D0ZmAQz.mjs → MazSpinner-9M_EGMpy.mjs} +1 -1
  193. package/components/chunks/{MazSpinner-C1Ip-Dwh.mjs → MazSpinner-BJpv1muf.mjs} +1 -1
  194. package/components/chunks/{MazSpinner-Cqp-BMvL.mjs → MazSpinner-BlbTztM3.mjs} +1 -1
  195. package/components/chunks/{MazSpinner-BT_717pD.mjs → MazSpinner-Bsy1nA3c.mjs} +1 -1
  196. package/components/chunks/{MazSpinner-B9OwpEP_.mjs → MazSpinner-C30YfScc.mjs} +1 -1
  197. package/components/chunks/MazSpinner-C5mnD76l.mjs +34 -0
  198. package/components/chunks/{MazSpinner-CAbYLlEZ.mjs → MazSpinner-CDx6lo7l.mjs} +1 -1
  199. package/components/chunks/MazSpinner-C_GueolV.mjs +34 -0
  200. package/components/chunks/{MazSpinner-Cb3_S0zT.mjs → MazSpinner-Cc-KlPEG.mjs} +1 -1
  201. package/components/chunks/MazSpinner-Cgg2dkzQ.mjs +34 -0
  202. package/components/chunks/{MazSpinner-Bvb-lKER.mjs → MazSpinner-CkKIUYXO.mjs} +1 -1
  203. package/components/chunks/{MazSpinner-EFo8dM46.mjs → MazSpinner-CxyUHAvm.mjs} +1 -1
  204. package/components/chunks/MazSpinner-DROgQW2M.mjs +34 -0
  205. package/components/chunks/MazSpinner-DjUU4G1h.mjs +34 -0
  206. package/components/chunks/MazSpinner-Dzs2W0kq.mjs +34 -0
  207. package/components/chunks/MazSpinner-NCtEpFMm.mjs +34 -0
  208. package/components/chunks/MazSpinner-QfPXLpa_.mjs +34 -0
  209. package/components/chunks/MazSpinner-ZPQe8ON_.mjs +34 -0
  210. package/components/chunks/{MazSpinner-C-z3-68w.mjs → MazSpinner-b90e3OQK.mjs} +1 -1
  211. package/components/chunks/MazStepper-B3fuhbye.mjs +218 -0
  212. package/components/chunks/{MazTable-Cuz5QI08.mjs → MazTable-Ci8nhgOP.mjs} +199 -239
  213. package/components/chunks/MazTableCell-BIganK6X.mjs +23 -0
  214. package/components/chunks/MazTableRow-CIO-x6Lb.mjs +30 -0
  215. package/components/chunks/{MazTableTitle-BDA9G6Zw.mjs → MazTableTitle-OEgTPQB3.mjs} +4 -4
  216. package/components/chunks/MazTabsBar-CT35SCIK.mjs +177 -0
  217. package/components/chunks/{MazTransitionExpand-C-FHhOGB.mjs → MazTransitionExpand-Bcwdl9g2.mjs} +8 -8
  218. package/components/chunks/{inject-strict-BmiaNiwC.mjs → inject-strict-DEDSuzCz.mjs} +3 -3
  219. package/css/main.css +1 -1
  220. package/modules/assets/MazBtn.css +1 -1
  221. package/modules/assets/index.css +1 -1
  222. package/modules/chunks/MazBtn-0CRjeBvn.mjs +103 -0
  223. package/modules/chunks/MazBtn-DRqCRJD-.cjs +1 -0
  224. package/modules/chunks/{MazIcon-DllGg8tw.mjs → MazIcon-CeT6HK_q.mjs} +4 -3
  225. package/modules/chunks/{MazIcon-dhyR9Q8a.cjs → MazIcon-D-Gna0vz.cjs} +1 -1
  226. package/modules/chunks/{MazSpinner-bdGjxsu6.mjs → MazSpinner-DV--lwdI.mjs} +1 -1
  227. package/modules/chunks/{MazSpinner-CiIyZ8gs.cjs → MazSpinner-DersvZQw.cjs} +1 -1
  228. package/modules/chunks/index-DvromXrX.cjs +124 -0
  229. package/modules/chunks/{index-x2F1l5sr.mjs → index-Kry9j5uD.mjs} +224 -249
  230. package/modules/index.cjs +1 -1
  231. package/modules/index.mjs +1 -1
  232. package/nuxt/index.json +1 -1
  233. package/package.json +22 -21
  234. package/tailwindcss/variables/colors.ts +2 -0
  235. package/types/components/MazAccordion.vue.d.ts +3 -2
  236. package/types/components/MazAnimatedCounter.vue.d.ts +16 -32
  237. package/types/components/MazAvatar.vue.d.ts +2 -1
  238. package/types/components/MazBackdrop.vue.d.ts +2 -1
  239. package/types/components/MazBadge.vue.d.ts +7 -2
  240. package/types/components/MazBottomSheet.vue.d.ts +2 -1
  241. package/types/components/MazBtn.vue.d.ts +4 -3
  242. package/types/components/MazCard.vue.d.ts +5 -4
  243. package/types/components/MazCardSpotlight.vue.d.ts +3 -2
  244. package/types/components/MazCarousel.vue.d.ts +3 -2
  245. package/types/components/MazCheckbox.vue.d.ts +4 -3
  246. package/types/components/MazChecklist.vue.d.ts +2 -5
  247. package/types/components/MazCircularProgressBar.vue.d.ts +19 -66
  248. package/types/components/MazDialog.vue.d.ts +5 -3
  249. package/types/components/MazDrawer.vue.d.ts +2 -1
  250. package/types/components/MazDropdown.vue.d.ts +25 -3
  251. package/types/components/MazDropzone.vue.d.ts +1 -1
  252. package/types/components/MazExpandAnimation.vue.d.ts +6 -5
  253. package/types/components/MazFullscreenLoader.vue.d.ts +2 -1
  254. package/types/components/MazGallery.vue.d.ts +1 -1
  255. package/types/components/MazInput.vue.d.ts +16 -3
  256. package/types/components/MazInputCode.vue.d.ts +1 -1
  257. package/types/components/MazInputNumber.vue.d.ts +2 -2
  258. package/types/components/MazInputPrice.vue.d.ts +4 -3
  259. package/types/components/MazLazyImg.vue.d.ts +2 -1
  260. package/types/components/MazLink.vue.d.ts +2 -1
  261. package/types/components/MazLoadingBar.vue.d.ts +1 -1
  262. package/types/components/MazPagination.vue.d.ts +3 -2
  263. package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +29 -53
  264. package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +4 -4
  265. package/types/components/MazPhoneNumberInput.vue.d.ts +6 -5
  266. package/types/components/MazPicker/MazPickerCalendar.vue.d.ts +1 -1
  267. package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +1 -1
  268. package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
  269. package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +1 -1
  270. package/types/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +1 -1
  271. package/types/components/MazPicker/MazPickerContainer.vue.d.ts +1 -1
  272. package/types/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
  273. package/types/components/MazPicker/MazPickerHeader.vue.d.ts +1 -1
  274. package/types/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +1 -1
  275. package/types/components/MazPicker/MazPickerShortcuts.vue.d.ts +1 -1
  276. package/types/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
  277. package/types/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +1 -1
  278. package/types/components/MazPicker.vue.d.ts +3 -1
  279. package/types/components/MazPullToRefresh.vue.d.ts +4 -3
  280. package/types/components/MazRadio.vue.d.ts +1 -1
  281. package/types/components/MazRadioButtons.vue.d.ts +1 -1
  282. package/types/components/MazReadingProgressBar.vue.d.ts +1 -1
  283. package/types/components/MazSelect.vue.d.ts +1 -1
  284. package/types/components/MazSlider.vue.d.ts +1 -1
  285. package/types/components/MazSpinner.vue.d.ts +1 -1
  286. package/types/components/MazStepper.vue.d.ts +3 -2
  287. package/types/components/MazSwitch.vue.d.ts +2 -1
  288. package/types/components/MazTable.vue.d.ts +14 -8
  289. package/types/components/MazTableCell.vue.d.ts +3 -2
  290. package/types/components/MazTableRow.vue.d.ts +3 -2
  291. package/types/components/MazTableTitle.vue.d.ts +3 -2
  292. package/types/components/MazTabs.vue.d.ts +3 -2
  293. package/types/components/MazTabsBar.vue.d.ts +3 -2
  294. package/types/components/MazTabsContent.vue.d.ts +3 -2
  295. package/types/components/MazTabsContentItem.vue.d.ts +2 -1
  296. package/types/components/MazTextarea.vue.d.ts +58 -32
  297. package/types/components/MazTransitionExpand.vue.d.ts +2 -1
  298. package/types/modules/composables/useFormValidator/types.d.ts +9 -5
  299. package/types/modules/composables/useFormValidator/useFormField.d.ts +3 -3
  300. package/types/modules/composables/useFormValidator/useFormValidator.d.ts +4 -4
  301. package/types/modules/composables/useFormValidator/utils.d.ts +17 -17
  302. package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +2 -2
  303. package/types/modules/helpers/inject-strict.d.ts +2 -1
  304. package/types/tailwindcss/variables/colors.d.ts +2 -0
  305. package/components/chunks/MazBtn-BO3G90L3.mjs +0 -118
  306. package/components/chunks/MazBtn-BRUaoP8j.mjs +0 -126
  307. package/components/chunks/MazBtn-BhnOApJu.mjs +0 -118
  308. package/components/chunks/MazBtn-C28vKP_v.mjs +0 -118
  309. package/components/chunks/MazBtn-C87UEsVs.mjs +0 -118
  310. package/components/chunks/MazBtn-C_l3xuAh.mjs +0 -118
  311. package/components/chunks/MazBtn-CweCwE_4.mjs +0 -118
  312. package/components/chunks/MazBtn-D7IKoL2c.mjs +0 -118
  313. package/components/chunks/MazBtn-DJOUeES7.mjs +0 -118
  314. package/components/chunks/MazBtn-DVkwISlp.mjs +0 -118
  315. package/components/chunks/MazBtn-DadFupkY.mjs +0 -118
  316. package/components/chunks/MazBtn-DzBXfedt.mjs +0 -123
  317. package/components/chunks/MazBtn-GGcGrIH4.mjs +0 -118
  318. package/components/chunks/MazBtn-Mu18egu5.mjs +0 -118
  319. package/components/chunks/MazDialogPromise-BCCdkrea.mjs +0 -522
  320. package/components/chunks/MazExpandAnimation-Bkw_wFTi.mjs +0 -58
  321. package/components/chunks/MazInput-BQoQSRyL.mjs +0 -302
  322. package/components/chunks/MazInput-CJQB68c-.mjs +0 -290
  323. package/components/chunks/MazInput-oOA7gdLO.mjs +0 -291
  324. package/components/chunks/MazInputNumber-B4mQJcVB.mjs +0 -593
  325. package/components/chunks/MazInputTags-BVCej_gW.mjs +0 -606
  326. package/components/chunks/MazLink-Dl9ePCGm.mjs +0 -79
  327. package/components/chunks/MazLoadingBar-Dwf55oHy.mjs +0 -32
  328. package/components/chunks/MazPagination-CHTMRRqE.mjs +0 -362
  329. package/components/chunks/MazPicker-C78yxilJ.mjs +0 -2477
  330. package/components/chunks/MazSelect-CQDoUpgp.mjs +0 -864
  331. package/components/chunks/MazSpinner-C23CZ_Za.mjs +0 -34
  332. package/components/chunks/MazSpinner-CViChjTw.mjs +0 -34
  333. package/components/chunks/MazSpinner-CZMBhCOJ.mjs +0 -34
  334. package/components/chunks/MazSpinner-CsEQ9EXb.mjs +0 -34
  335. package/components/chunks/MazSpinner-D4C84xZe.mjs +0 -34
  336. package/components/chunks/MazSpinner-Dyf9yb51.mjs +0 -34
  337. package/components/chunks/MazSpinner-QHjOczon.mjs +0 -34
  338. package/components/chunks/MazSpinner-u8WQTgUR.mjs +0 -34
  339. package/components/chunks/MazSpinner-w-S5uCxg.mjs +0 -34
  340. package/components/chunks/MazStepper-DRWtYHZR.mjs +0 -232
  341. package/components/chunks/MazTableCell-D_OTOJiy.mjs +0 -23
  342. package/components/chunks/MazTableRow-BTcVAyOy.mjs +0 -30
  343. package/components/chunks/MazTabsBar-JkRzMDM6.mjs +0 -203
  344. package/modules/chunks/MazBtn-BSnVxud6.mjs +0 -118
  345. package/modules/chunks/MazBtn-Bf9Cq5M7.cjs +0 -9
  346. package/modules/chunks/index-BPqjUr5e.cjs +0 -149
@@ -1,8 +1,8 @@
1
- import { computed as f, defineComponent as Ie, useCssVars as Ce, defineAsyncComponent as $, ref as b, onBeforeMount as we, nextTick as j, withDirectives as Le, openBlock as g, createElementBlock as I, normalizeClass as q, normalizeStyle as Q, createVNode as N, mergeProps as Me, unref as C, withModifiers as E, withCtx as ae, createElementVNode as O, Transition as Ee, createBlock as se, createCommentVNode as w, renderSlot as G, Fragment as ie, renderList as Te, toDisplayString as ue } from "vue";
2
- import { u as $e } from "./useInstanceUniqId-DW9jO1Sz.mjs";
3
- import re from "./MazInput-oOA7gdLO.mjs";
4
- import { _ as Ne } from "./MazTable-Cuz5QI08.mjs";
5
- import '../assets/MazSelect.css';const Oe = {
1
+ import { computed as f, defineComponent as Ie, defineAsyncComponent as T, ref as g, onBeforeMount as Le, nextTick as W, withDirectives as we, openBlock as b, createElementBlock as A, normalizeClass as q, normalizeStyle as j, createVNode as $, mergeProps as Ce, unref as I, withModifiers as M, withCtx as ne, createElementVNode as N, Transition as Me, createBlock as ie, createCommentVNode as Q, renderSlot as G, Fragment as se, renderList as Ee, toDisplayString as ue } from "vue";
2
+ import { u as Te } from "./useInstanceUniqId-DW9jO1Sz.mjs";
3
+ import re from "./MazInput-BWAWlxDa.mjs";
4
+ import { _ as $e } from "./MazTable-Ci8nhgOP.mjs";
5
+ import '../assets/MazSelect.css';const Ne = {
6
6
  removeAccents: !0,
7
7
  caseSensitive: !1,
8
8
  replaceSpaces: !0,
@@ -12,8 +12,8 @@ import '../assets/MazSelect.css';const Oe = {
12
12
  removeNumbers: !1,
13
13
  customNormalizationForms: ["NFC", "NFKD"]
14
14
  };
15
- function B(r, c) {
16
- const s = { ...Oe, ...c }, t = {
15
+ function O(r, c) {
16
+ const i = { ...Ne, ...c }, t = {
17
17
  À: "A",
18
18
  Á: "A",
19
19
  Â: "A",
@@ -62,91 +62,91 @@ function B(r, c) {
62
62
  ñ: "n",
63
63
  ó: "o"
64
64
  };
65
- let a = r.toString();
66
- if (s.trim && (a = a.trim()), s.normalizeSpaces && (a = a.replaceAll(/\s+/g, " ")), s.replaceSpaces && (a = a.replaceAll(" ", "-")), s.removeNumbers && (a = a.replaceAll(/\d/g, "")), s.removeAccents && (a = a.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (i) => t[i] || i), a = a.replaceAll(/[\u0300-\u036F]/g, "")), s.caseSensitive === !1 && (a = a.toLowerCase()), s.removeSpecialCharacters && (a = a.replaceAll(/[^\dA-Z-]/gi, "")), s.trim && (a = a.trim()), s.customNormalizationForms)
67
- for (const i of s.customNormalizationForms)
68
- a = a.normalize(i);
69
- return a;
65
+ let n = r.toString();
66
+ if (i.trim && (n = n.trim()), i.normalizeSpaces && (n = n.replaceAll(/\s+/g, " ")), i.replaceSpaces && (n = n.replaceAll(" ", "-")), i.removeNumbers && (n = n.replaceAll(/\d/g, "")), i.removeAccents && (n = n.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (s) => t[s] || s), n = n.replaceAll(/[\u0300-\u036F]/g, "")), i.caseSensitive === !1 && (n = n.toLowerCase()), i.removeSpecialCharacters && (n = n.replaceAll(/[^\dA-Z-]/gi, "")), i.trim && (n = n.trim()), i.customNormalizationForms)
67
+ for (const s of i.customNormalizationForms)
68
+ n = n.normalize(s);
69
+ return n;
70
70
  }
71
- function Be(r, c) {
72
- const s = r.length, t = c.length, a = [];
73
- for (let i = 0; i <= s; i++)
74
- a[i] = [i];
75
- for (let i = 0; i <= t; i++)
76
- a[0][i] = i;
77
- for (let i = 1; i <= s; i++)
71
+ function Oe(r, c) {
72
+ const i = r.length, t = c.length, n = [];
73
+ for (let s = 0; s <= i; s++)
74
+ n[s] = [s];
75
+ for (let s = 0; s <= t; s++)
76
+ n[0][s] = s;
77
+ for (let s = 1; s <= i; s++)
78
78
  for (let m = 1; m <= t; m++) {
79
- const V = r[i - 1] === c[m - 1] ? 0 : 1;
80
- a[i][m] = Math.min(
81
- a[i - 1][m] + 1,
82
- a[i][m - 1] + 1,
83
- a[i - 1][m - 1] + V
79
+ const V = r[s - 1] === c[m - 1] ? 0 : 1;
80
+ n[s][m] = Math.min(
81
+ n[s - 1][m] + 1,
82
+ n[s][m - 1] + 1,
83
+ n[s - 1][m - 1] + V
84
84
  );
85
85
  }
86
- return a[s][t];
86
+ return n[i][t];
87
87
  }
88
88
  function ce(r, c) {
89
- const s = Be(r, c), t = Math.max(r.length, c.length);
90
- return 1 - s / t;
89
+ const i = Oe(r, c), t = Math.max(r.length, c.length);
90
+ return 1 - i / t;
91
91
  }
92
- function De(r, c, s = 0.75) {
93
- return ce(r, c) >= s;
92
+ function xe(r, c, i = 0.75) {
93
+ return ce(r, c) >= i;
94
94
  }
95
- function Z(r, c, s = 0.75) {
95
+ function Z(r, c, i = 0.75) {
96
96
  const t = f(
97
- () => B(typeof r == "string" ? r : r.value)
98
- ), a = f(
99
- () => B(typeof c == "string" ? c : c.value)
100
- ), i = f(() => typeof s == "number" ? s : s.value), m = f(() => ce(t.value, a.value));
97
+ () => O(typeof r == "string" ? r : r.value)
98
+ ), n = f(
99
+ () => O(typeof c == "string" ? c : c.value)
100
+ ), s = f(() => typeof i == "number" ? i : i.value), m = f(() => ce(t.value, n.value));
101
101
  return {
102
102
  isMatching: f(
103
- () => De(t.value, a.value, i.value)
103
+ () => xe(t.value, n.value, s.value)
104
104
  ),
105
105
  score: m
106
106
  };
107
107
  }
108
- function de(r, c, s) {
108
+ function de(r, c, i) {
109
109
  var m;
110
110
  r.stopPropagation();
111
- const t = typeof s.value == "function" ? s.value : s.value.handler, a = typeof s.value == "object" ? s.value.exclude : void 0;
112
- let i = !1;
113
- if (a && a.length > 0) {
114
- for (const V of a)
115
- if (!i && r.target instanceof HTMLElement) {
116
- const D = (m = document.querySelector(V)) == null ? void 0 : m.getAttribute("id");
117
- i = r.target.getAttribute("id") === D;
111
+ const t = typeof i.value == "function" ? i.value : i.value.handler, n = typeof i.value == "object" ? i.value.exclude : void 0;
112
+ let s = !1;
113
+ if (n && n.length > 0) {
114
+ for (const V of n)
115
+ if (!s && r.target instanceof HTMLElement) {
116
+ const x = (m = document.querySelector(V)) == null ? void 0 : m.getAttribute("id");
117
+ s = r.target.getAttribute("id") === x;
118
118
  }
119
119
  }
120
- !c.contains(r.target) && !i && (t == null || t());
120
+ !c.contains(r.target) && !s && (t == null || t());
121
121
  }
122
122
  function pe() {
123
123
  return document.ontouchstart === null ? "touchstart" : "click";
124
124
  }
125
- function xe(r, c) {
126
- const s = pe();
127
- document.removeEventListener(s, (t) => de(t, r, c));
125
+ function Be(r, c) {
126
+ const i = pe();
127
+ document.removeEventListener(i, (t) => de(t, r, c));
128
128
  }
129
- function He(r, c) {
129
+ function De(r, c) {
130
130
  if (typeof c.value != "function" && typeof c.value == "object" && typeof c.value.handler != "function") {
131
131
  console.error("[maz-ui](vClosable) v-closable directive requires a handler function");
132
132
  return;
133
133
  }
134
- const s = pe();
135
- document.addEventListener(s, (t) => de(t, r, c));
134
+ const i = pe();
135
+ document.addEventListener(i, (t) => de(t, r, c));
136
136
  }
137
- const Pe = {
138
- mounted: He,
139
- unmounted: xe
137
+ const He = {
138
+ mounted: De,
139
+ unmounted: Be
140
140
  };
141
141
  let R = null;
142
- function Fe(r, c) {
142
+ function Pe(r, c) {
143
143
  R && clearTimeout(R), R = setTimeout(r, c);
144
144
  }
145
- const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
145
+ const Fe = ["aria-label"], Ue = { class: "m-select-list__no-results" }, We = {
146
146
  key: 2,
147
147
  class: "m-select-list__scroll-wrapper",
148
148
  tabindex: "-1"
149
- }, qe = { class: "m-select-list-optgroup" }, Qe = ["onClick"], Ge = /* @__PURE__ */ Ie({
149
+ }, qe = { class: "m-select-list-optgroup" }, je = ["onClick"], Qe = /* @__PURE__ */ Ie({
150
150
  inheritAttrs: !1,
151
151
  __name: "MazSelect",
152
152
  props: {
@@ -178,28 +178,23 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
178
178
  autocomplete: { default: "off" }
179
179
  },
180
180
  emits: ["close", "open", "blur", "focus", "change", "input", "update:model-value", "selected-option"],
181
- setup(r, { expose: c, emit: s }) {
182
- Ce((e) => ({
183
- cb149e58: ve.value,
184
- "215ff493": fe.value,
185
- "64d6cfbb": me.value
186
- }));
187
- const t = r, a = s, i = $(() => import("./MazCheckbox-BmnqBHaY.mjs")), m = $(() => import("./magnifying-glass--nBiyXot.mjs")), V = $(() => import("./chevron-down-BkvtON3b.mjs")), D = $(() => import("./no-symbol-CIgKzsrB.mjs"));
181
+ setup(r, { expose: c, emit: i }) {
182
+ const t = r, n = i, s = T(() => import("./MazCheckbox-DjY15PA3.mjs")), m = T(() => import("./magnifying-glass--nBiyXot.mjs")), V = T(() => import("./chevron-down-BkvtON3b.mjs")), x = T(() => import("./no-symbol-CIgKzsrB.mjs"));
188
183
  c({
189
184
  /** Method to open the option list */
190
- openList: A,
185
+ openList: C,
191
186
  /** Method to close the option list */
192
187
  closeList: k
193
188
  });
194
- const z = b(!1), p = b(), x = f(
189
+ const z = g(!1), p = g(), B = f(
195
190
  () => ["black", "transparent", "white"].includes(t.color)
196
191
  ), fe = f(
197
- () => x.value ? "var(--maz-color-black)" : `var(--maz-color-${t.color}-800)`
192
+ () => B.value ? "var(--maz-color-black)" : `var(--maz-color-${t.color}-800)`
198
193
  ), me = f(
199
- () => x.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-100)`
194
+ () => B.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-100)`
200
195
  ), ve = f(
201
- () => x.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-200)`
202
- ), h = f(() => z.value || t.open), ye = $e({
196
+ () => B.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-200)`
197
+ ), h = f(() => z.value || t.open), ye = Te({
203
198
  componentName: "MazSelect",
204
199
  providedId: t.id
205
200
  });
@@ -223,31 +218,31 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
223
218
  const e = [];
224
219
  if (!((o = t.options) != null && o.length))
225
220
  return [];
226
- for (const n of t.options)
227
- typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? e.push(J(n)) : typeof n == "object" && "options" in n && Array.isArray(n.options) ? e.push(
228
- { label: n.label, isOptGroup: !0 },
229
- ...n.options.map(
221
+ for (const a of t.options)
222
+ typeof a == "string" || typeof a == "number" || typeof a == "boolean" ? e.push(J(a)) : typeof a == "object" && "options" in a && Array.isArray(a.options) ? e.push(
223
+ { label: a.label, isOptGroup: !0 },
224
+ ...a.options.map(
230
225
  (l) => typeof l == "string" || typeof l == "number" || typeof l == "boolean" ? J(l) : X(l)
231
226
  )
232
- ) : e.push(X(n));
227
+ ) : e.push(X(a));
233
228
  return e;
234
- }), T = f(
229
+ }), E = f(
235
230
  () => {
236
231
  var e;
237
232
  return ((e = L.value) == null ? void 0 : e.filter((o) => t.multiple ? Array.isArray(t.modelValue) ? t.modelValue.includes(o[t.optionValueKey]) && !K(o[t.optionValueKey]) : !1 : t.modelValue === o[t.optionValueKey] && !K(o[t.optionValueKey]))) ?? [];
238
233
  }
239
234
  );
240
- we(() => {
235
+ Le(() => {
241
236
  var e;
242
- (e = t.options) != null && e.length || console.warn("[maz-ui](MazSelect) you must provide options"), W();
237
+ (e = t.options) != null && e.length || console.warn("[maz-ui](MazSelect) you must provide options"), U();
243
238
  });
244
- const Y = b(), H = b(), _ = b(), ee = b();
239
+ const Y = g(), D = g(), _ = g(), ee = g();
245
240
  function K(e) {
246
241
  return e == null;
247
242
  }
248
- function P(e) {
249
- var n;
250
- return (((n = T.value) == null ? void 0 : n.some(
243
+ function H(e) {
244
+ var a;
245
+ return (((a = E.value) == null ? void 0 : a.some(
251
246
  (l) => l[t.optionValueKey] === e[t.optionValueKey]
252
247
  )) ?? !1) && !K(e[t.optionValueKey]);
253
248
  }
@@ -255,97 +250,98 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
255
250
  var o;
256
251
  if (t.multiple && t.modelValue && Array.isArray(t.modelValue))
257
252
  return t.modelValue.map(
258
- (n) => {
253
+ (a) => {
259
254
  var l, u;
260
- return (u = (l = L.value) == null ? void 0 : l.find((d) => d[t.optionValueKey] === n)) == null ? void 0 : u[t.optionInputValueKey];
255
+ return (u = (l = L.value) == null ? void 0 : l.find((d) => d[t.optionValueKey] === a)) == null ? void 0 : u[t.optionInputValueKey];
261
256
  }
262
257
  ).join(", ");
263
258
  const e = (o = L.value) == null ? void 0 : o.find(
264
- (n) => n[t.optionValueKey] === t.modelValue
259
+ (a) => a[t.optionValueKey] === t.modelValue
265
260
  );
266
261
  return K(t.modelValue) || e == null ? void 0 : e[t.optionInputValueKey];
267
- }), be = f(
262
+ }), ge = f(
268
263
  () => t.listPosition.includes("bottom") ? "maz-slide" : "maz-slideinvert"
269
- ), M = b(""), S = b("");
270
- function F(e, o) {
271
- return o && e && B(e).includes(B(o));
264
+ ), w = g(""), S = g("");
265
+ function P(e, o) {
266
+ return o && e && O(e).includes(O(o));
272
267
  }
273
268
  function te(e) {
274
269
  var o;
275
- return e ? (o = L.value) == null ? void 0 : o.filter((n) => {
276
- const l = n[t.optionLabelKey], u = n[t.optionValueKey], d = n[t.optionInputValueKey], v = t.searchThreshold;
277
- return F(l, e) || F(d, e) || F(u, e) || typeof l == "string" && Z(l, e, v).isMatching.value || typeof d == "string" && Z(d, e, v).isMatching.value || typeof u == "string" && Z(u, e, v).isMatching.value;
270
+ return e ? (o = L.value) == null ? void 0 : o.filter((a) => {
271
+ const l = a[t.optionLabelKey], u = a[t.optionValueKey], d = a[t.optionInputValueKey], v = t.searchThreshold;
272
+ return P(l, e) || P(d, e) || P(u, e) || typeof l == "string" && Z(l, e, v).isMatching.value || typeof d == "string" && Z(d, e, v).isMatching.value || typeof u == "string" && Z(u, e, v).isMatching.value;
278
273
  }) : L.value;
279
274
  }
280
- const y = f(() => te(M.value));
275
+ const y = f(() => te(w.value));
281
276
  async function k(e) {
282
- var n, l;
277
+ var a, l;
283
278
  if (!h.value)
284
279
  return;
285
- if (e && ("relatedTarget" in e && ((n = Y.value) != null && n.contains(e.relatedTarget)) || e.type === "keydown"))
280
+ if (e && ("relatedTarget" in e && ((a = Y.value) != null && a.contains(e.relatedTarget)) || e.type === "keydown"))
286
281
  return e.preventDefault();
287
282
  const o = e && "relatedTarget" in e && e.relatedTarget instanceof HTMLElement && e.relatedTarget.getAttribute("id");
288
283
  if ((l = t.excludeSelectors) != null && l.includes(`#${o}`))
289
284
  return e == null ? void 0 : e.preventDefault();
290
- await j(), z.value = !1, p.value = 0, a("close", e);
285
+ await W(), z.value = !1, p.value = 0, n("close", e);
291
286
  }
292
- async function A(e) {
293
- t.disabled || h.value || (e == null || e.preventDefault(), z.value = !0, await U(), a("focus", e), a("open", z.value));
287
+ async function C(e) {
288
+ t.disabled || h.value || (e == null || e.preventDefault(), z.value = !0, await F(), n("focus", e), n("open", z.value));
294
289
  }
295
290
  function oe() {
296
291
  var e, o;
297
- (o = ((e = H.value) == null ? void 0 : e.$el).querySelector("input")) == null || o.focus();
292
+ (o = ((e = D.value) == null ? void 0 : e.$el).querySelector("input")) == null || o.focus();
298
293
  }
299
- function ge() {
294
+ function be() {
300
295
  var e, o;
301
- (o = ((e = H.value) == null ? void 0 : e.$el).querySelector("input")) == null || o.dispatchEvent(new Event("input"));
296
+ (o = ((e = D.value) == null ? void 0 : e.$el).querySelector("input")) == null || o.dispatchEvent(new Event("input"));
302
297
  }
303
298
  function Ve(e) {
304
299
  z.value ? k(e) : oe();
305
300
  }
306
301
  function ze(e) {
307
- var o, n;
308
- M.value = e, (n = ((o = _.value) == null ? void 0 : o.$el).querySelector("input")) == null || n.focus();
302
+ var o, a;
303
+ w.value = e, (a = ((o = _.value) == null ? void 0 : o.$el).querySelector("input")) == null || a.focus();
309
304
  }
310
305
  function Ke(e) {
311
- var n;
306
+ var a;
312
307
  e === "Backspace" && S.value.length > 0 ? S.value = S.value.slice(0, -1) : S.value += e;
313
308
  const o = te(S.value);
314
- o != null && o.length && (p.value = (n = y.value) == null ? void 0 : n.findIndex(
309
+ o != null && o.length && (p.value = (a = y.value) == null ? void 0 : a.findIndex(
315
310
  (l) => l[t.optionValueKey] === o[0][t.optionValueKey]
316
- ), typeof p.value == "number" && p.value >= 0 && U(p.value)), Fe(() => {
311
+ ), typeof p.value == "number" && p.value >= 0 && F(p.value)), Pe(() => {
317
312
  S.value = "";
318
313
  }, 1e3);
319
314
  }
320
315
  function Se(e) {
321
316
  const o = e.key;
322
- /^[\dA-Za-z\u0400-\u04FF]$/.test(o) ? (e.preventDefault(), A(e), t.search ? ze(o) : Ke(o)) : le(e);
317
+ /^[\dA-Za-z\u0400-\u04FF]$/.test(o) ? (e.preventDefault(), C(e), t.search ? ze(o) : Ke(o)) : le(e);
323
318
  }
324
319
  function le(e, o = !0) {
325
- const n = e.code, l = ["ArrowUp", "ArrowDown"].includes(n), u = (o ? ["Enter", "Space"] : ["Enter"]).includes(n), d = n === "Escape" && h.value;
320
+ const a = e.code, l = ["ArrowUp", "ArrowDown"].includes(a), u = (o ? ["Enter", "Space"] : ["Enter"]).includes(a), d = a === "Escape" && h.value;
326
321
  l ? ke(e, p.value) : u ? Ae(e, p.value) : d && k(e);
327
322
  }
328
323
  function ke(e, o) {
329
324
  var u;
330
325
  e.preventDefault();
331
- const n = e.code;
332
- h.value || A(e);
326
+ const a = e.code;
327
+ h.value || C(e);
333
328
  const l = (u = y.value) == null ? void 0 : u.length;
334
- l && (typeof o == "number" ? o === l - 1 && n === "ArrowDown" ? p.value = 0 : o === 0 && n === "ArrowUp" ? p.value = l - 1 : p.value = n === "ArrowDown" ? o + 1 : o - 1 : p.value = n === "ArrowDown" ? 0 : l - 1, U(p.value));
329
+ l && (typeof o == "number" ? o === l - 1 && a === "ArrowDown" ? p.value = 0 : o === 0 && a === "ArrowUp" ? p.value = l - 1 : p.value = a === "ArrowDown" ? o + 1 : o - 1 : p.value = a === "ArrowDown" ? 0 : l - 1, F(p.value));
335
330
  }
336
331
  function Ae(e, o) {
337
332
  var l, u, d;
338
- if (e.preventDefault(), !h.value)
339
- return A(e);
340
- const n = o ? ((l = y.value) == null ? void 0 : l[o]) ?? ((u = y.value) == null ? void 0 : u[0]) : (d = y.value) == null ? void 0 : d[0];
341
- K(n) || ne(n);
333
+ if (!h.value)
334
+ return;
335
+ e.preventDefault();
336
+ const a = o ? ((l = y.value) == null ? void 0 : l[o]) ?? ((u = y.value) == null ? void 0 : u[0]) : (d = y.value) == null ? void 0 : d[0];
337
+ K(a) || ae(a);
342
338
  }
343
- async function U(e) {
344
- var n, l;
345
- await j(), typeof e != "number" && W();
339
+ async function F(e) {
340
+ var a, l;
341
+ await W(), typeof e != "number" && U();
346
342
  const o = e ?? p.value;
347
343
  if (typeof o == "number" && o >= 0) {
348
- const u = (n = ee.value) == null ? void 0 : n.querySelectorAll(".m-select-list-item");
344
+ const u = (a = ee.value) == null ? void 0 : a.querySelectorAll(".m-select-list-item");
349
345
  (l = u == null ? void 0 : u[o]) == null || l.scrollIntoView({
350
346
  behavior: "auto",
351
347
  block: "nearest",
@@ -353,30 +349,30 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
353
349
  });
354
350
  }
355
351
  }
356
- function W(e) {
357
- var n;
358
- const o = (n = y.value) == null ? void 0 : n.findIndex((l) => {
352
+ function U(e) {
353
+ var a;
354
+ const o = (a = y.value) == null ? void 0 : a.findIndex((l) => {
359
355
  var u, d;
360
- return t.multiple && Array.isArray(t.modelValue) ? e ? e[t.optionValueKey] === l[t.optionValueKey] : [...t.modelValue].reverse()[0] === l[t.optionValueKey] : ((d = (u = T.value) == null ? void 0 : u[0]) == null ? void 0 : d[t.optionValueKey]) === l[t.optionValueKey];
356
+ return t.multiple && Array.isArray(t.modelValue) ? e ? e[t.optionValueKey] === l[t.optionValueKey] : [...t.modelValue].reverse()[0] === l[t.optionValueKey] : ((d = (u = E.value) == null ? void 0 : u[0]) == null ? void 0 : d[t.optionValueKey]) === l[t.optionValueKey];
361
357
  });
362
358
  p.value = o && o >= 0 ? o : 0;
363
359
  }
364
- function ne(e, o = !0) {
360
+ function ae(e, o = !0) {
365
361
  var d;
366
- o && !t.multiple && j(() => k()), M.value = "";
367
- const n = (d = T.value) == null ? void 0 : d.some(
362
+ o && !t.multiple && W(() => k()), w.value = "";
363
+ const a = (d = E.value) == null ? void 0 : d.some(
368
364
  (v) => v[t.optionValueKey] === e[t.optionValueKey]
369
365
  );
370
- let l = T.value;
371
- n && t.multiple ? l = l == null ? void 0 : l.filter(
366
+ let l = E.value;
367
+ a && t.multiple ? l = l == null ? void 0 : l.filter(
372
368
  (v) => v[t.optionValueKey] !== e[t.optionValueKey]
373
369
  ) : t.multiple ? l.push(e) : l = [e];
374
370
  const u = l.map((v) => v[t.optionValueKey]);
375
- a("update:model-value", t.multiple ? u : u[0]), a("selected-option", e), ge(), W(e), oe();
371
+ n("update:model-value", t.multiple ? u : u[0]), n("selected-option", e), be(), U(e), oe();
376
372
  }
377
373
  return (e, o) => {
378
- var n;
379
- return Le((g(), I(
374
+ var a;
375
+ return we((b(), A(
380
376
  "div",
381
377
  {
382
378
  ref_key: "mazSelectElement",
@@ -386,13 +382,13 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
386
382
  t.class,
387
383
  `--${e.size}`
388
384
  ]]),
389
- style: Q(e.style)
385
+ style: j([e.style, { "--keyboard-selected-bg-color": ve.value, "--selected-bg-color": me.value, "--selected-text-color": fe.value }])
390
386
  },
391
387
  [
392
- N(re, Me({
393
- id: C(ye),
388
+ $(re, Ce({
389
+ id: I(ye),
394
390
  ref_key: "mazInputComponent",
395
- ref: H,
391
+ ref: D,
396
392
  class: "m-select-input"
397
393
  }, e.$attrs, {
398
394
  required: e.required,
@@ -403,30 +399,30 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
403
399
  block: "",
404
400
  autocomplete: e.autocomplete,
405
401
  disabled: e.disabled,
406
- onFocus: E(A, ["prevent", "stop"]),
407
- onBlur: E(k, ["prevent", "stop"]),
408
- onClick: E(A, ["prevent", "stop"]),
409
- onChange: o[0] || (o[0] = (l) => a("change", l)),
410
- onInput: o[1] || (o[1] = (l) => a("input", l)),
402
+ onFocus: M(C, ["prevent", "stop"]),
403
+ onBlur: M(k, ["prevent", "stop"]),
404
+ onClick: M(C, ["prevent", "stop"]),
405
+ onChange: o[0] || (o[0] = (l) => n("change", l)),
406
+ onInput: o[1] || (o[1] = (l) => n("input", l)),
411
407
  onKeydown: Se
412
408
  }), {
413
- "right-icon": ae(() => [
414
- O("button", {
409
+ "right-icon": ne(() => [
410
+ N("button", {
415
411
  tabindex: "-1",
416
412
  type: "button",
417
413
  class: "m-select-input__toggle-button maz-custom",
418
414
  "aria-label": `${h.value ? "collapse" : "expand"} list of options`,
419
- onClick: E(Ve, ["stop"])
415
+ onClick: M(Ve, ["stop"])
420
416
  }, [
421
- N(C(V), { class: "m-select-chevron maz-text-xl" })
422
- ], 8, Ue)
417
+ $(I(V), { class: "m-select-chevron maz-text-xl" })
418
+ ], 8, Fe)
423
419
  ]),
424
420
  _: 1
425
421
  /* STABLE */
426
422
  }, 16, ["id", "required", "border-active", "color", "model-value", "size", "autocomplete", "disabled"]),
427
- N(Ee, { name: be.value }, {
428
- default: ae(() => [
429
- h.value ? (g(), I(
423
+ $(Me, { name: ge.value }, {
424
+ default: ne(() => [
425
+ h.value ? (b(), A(
430
426
  "div",
431
427
  {
432
428
  key: 0,
@@ -438,7 +434,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
438
434
  "--right": e.listPosition.includes("right"),
439
435
  "--bottom": e.listPosition.includes("bottom")
440
436
  }]),
441
- style: Q({
437
+ style: j({
442
438
  maxHeight: `${e.maxListHeight}px`,
443
439
  maxWidth: `${e.maxListWidth}px`,
444
440
  minHeight: `${e.minListHeight}px`,
@@ -446,13 +442,13 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
446
442
  })
447
443
  },
448
444
  [
449
- e.search ? (g(), se(re, {
445
+ e.search ? (b(), ie(re, {
450
446
  key: 0,
451
447
  ref_key: "searchInputComponent",
452
448
  ref: _,
453
- modelValue: M.value,
449
+ modelValue: w.value,
454
450
  "onUpdate:modelValue": [
455
- o[2] || (o[2] = (l) => M.value = l),
451
+ o[2] || (o[2] = (l) => w.value = l),
456
452
  o[4] || (o[4] = (l) => p.value = 0)
457
453
  ],
458
454
  size: "sm",
@@ -463,70 +459,58 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
463
459
  autocomplete: "off",
464
460
  tabindex: "-1",
465
461
  class: "m-select-list__search-input maz-flex-none",
466
- "left-icon": C(m),
462
+ "left-icon": I(m),
467
463
  onKeydown: o[3] || (o[3] = (l) => le(l, !1))
468
- }, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : w("v-if", !0),
469
- w(`
470
- @slot No results slot - Displayed when no results corresponding with search query
471
- `),
464
+ }, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : Q("v-if", !0),
472
465
  !y.value || y.value.length <= 0 ? G(e.$slots, "no-results", { key: 1 }, () => [
473
- O("span", We, [
474
- N(C(D), { class: "maz-h-6 maz-w-6 maz-text-normal" })
466
+ N("span", Ue, [
467
+ $(I(x), { class: "maz-h-6 maz-w-6 maz-text-normal" })
475
468
  ])
476
- ], !0) : (g(), I("div", je, [
477
- (g(!0), I(
478
- ie,
469
+ ], !0) : (b(), A("div", We, [
470
+ (b(!0), A(
471
+ se,
479
472
  null,
480
- Te(y.value, (l, u) => (g(), I(
481
- ie,
473
+ Ee(y.value, (l, u) => (b(), A(
474
+ se,
482
475
  { key: u },
483
476
  [
484
- w(`
485
- @slot Custom optgroup label
486
- @binding {String} label - the label of the optgroup
487
- `),
488
477
  l.label && l.isOptGroup ? G(e.$slots, "optgroup", {
489
478
  key: 0,
490
479
  label: l.label
491
480
  }, () => [
492
- O(
481
+ N(
493
482
  "span",
494
483
  qe,
495
484
  ue(l.label),
496
485
  1
497
486
  /* TEXT */
498
487
  )
499
- ], !0) : (g(), I("button", {
488
+ ], !0) : (b(), A("button", {
500
489
  key: 1,
501
490
  tabindex: "-1",
502
491
  type: "button",
503
492
  class: q(["m-select-list-item maz-custom maz-flex-none", [
504
493
  {
505
494
  "--is-keyboard-selected": p.value === u,
506
- "--is-selected": P(l),
495
+ "--is-selected": H(l),
507
496
  "--is-none-value": K(l[e.optionValueKey])
508
497
  }
509
498
  ]]),
510
- style: Q(e.itemHeight ? { height: `${e.itemHeight}px` } : void 0),
511
- onClick: E((d) => ne(l), ["prevent", "stop"])
499
+ style: j(e.itemHeight ? { height: `${e.itemHeight}px` } : void 0),
500
+ onClick: M((d) => ae(l), ["prevent", "stop"])
512
501
  }, [
513
- e.multiple ? (g(), se(C(i), {
502
+ e.multiple ? (b(), ie(I(s), {
514
503
  key: 0,
515
504
  tabindex: "-1",
516
- "model-value": P(l),
505
+ "model-value": H(l),
517
506
  size: "sm",
518
507
  color: e.color
519
- }, null, 8, ["model-value", "color"])) : w("v-if", !0),
520
- w(`
521
- @slot Custom option
522
- @binding {Object} option - the option object
523
- @binding {Boolean} is-selected - if the option is selected
524
- `),
508
+ }, null, 8, ["model-value", "color"])) : Q("v-if", !0),
525
509
  G(e.$slots, "default", {
526
510
  option: l,
527
- isSelected: P(l)
511
+ isSelected: H(l)
528
512
  }, () => [
529
- O(
513
+ N(
530
514
  "span",
531
515
  null,
532
516
  ue(l[e.optionLabelKey]),
@@ -534,7 +518,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
534
518
  /* TEXT */
535
519
  )
536
520
  ], !0)
537
- ], 14, Qe))
521
+ ], 14, je))
538
522
  ],
539
523
  64
540
524
  /* STABLE_FRAGMENT */
@@ -546,7 +530,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
546
530
  ],
547
531
  6
548
532
  /* CLASS, STYLE */
549
- )) : w("v-if", !0)
533
+ )) : Q("v-if", !0)
550
534
  ]),
551
535
  _: 3
552
536
  /* FORWARDED */
@@ -555,14 +539,14 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
555
539
  6
556
540
  /* CLASS, STYLE */
557
541
  )), [
558
- [C(Pe), {
559
- exclude: (n = e.excludeSelectors) != null && n.length ? e.excludeSelectors : [],
542
+ [I(He), {
543
+ exclude: (a = e.excludeSelectors) != null && a.length ? e.excludeSelectors : [],
560
544
  handler: k
561
545
  }]
562
546
  ]);
563
547
  };
564
548
  }
565
- }), Ye = /* @__PURE__ */ Ne(Ge, [["__scopeId", "data-v-e35a36a6"]]);
549
+ }), Xe = /* @__PURE__ */ $e(Qe, [["__scopeId", "data-v-961aec79"]]);
566
550
  export {
567
- Ye as default
551
+ Xe as default
568
552
  };