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

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 +125 -107
  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
@@ -0,0 +1,871 @@
1
+ import { useId as Me, computed as p, defineComponent as be, defineAsyncComponent as A, ref as V, onMounted as Te, useSlots as Ee, openBlock as m, createElementBlock as z, normalizeClass as B, normalizeStyle as ee, unref as h, toDisplayString as G, createCommentVNode as b, createElementVNode as O, renderSlot as q, createBlock as K, resolveDynamicComponent as me, withDirectives as he, mergeProps as ge, toHandlers as Oe, vModelDynamic as De, createTextVNode as Ne, withModifiers as F, withCtx as te, createVNode as H, onBeforeMount as Pe, nextTick as ue, Transition as Fe, Fragment as ve, renderList as He } from "vue";
2
+ import '../assets/MazSelect.css';function ze({
3
+ componentName: u,
4
+ providedId: r
5
+ }) {
6
+ const l = Me();
7
+ return p(() => r ?? `${u}-${l}`);
8
+ }
9
+ const qe = {
10
+ removeAccents: !0,
11
+ caseSensitive: !1,
12
+ replaceSpaces: !0,
13
+ removeSpecialCharacters: !1,
14
+ trim: !0,
15
+ normalizeSpaces: !0,
16
+ removeNumbers: !1,
17
+ customNormalizationForms: ["NFC", "NFKD"]
18
+ };
19
+ function oe(u, r) {
20
+ const l = { ...qe, ...r }, t = {
21
+ À: "A",
22
+ Á: "A",
23
+ Â: "A",
24
+ Ã: "A",
25
+ Ä: "A",
26
+ Å: "A",
27
+ à: "a",
28
+ á: "a",
29
+ â: "a",
30
+ ã: "a",
31
+ ä: "a",
32
+ å: "a",
33
+ È: "E",
34
+ É: "E",
35
+ Ê: "E",
36
+ Ë: "E",
37
+ è: "e",
38
+ é: "e",
39
+ ê: "e",
40
+ ë: "e",
41
+ Î: "I",
42
+ Ï: "I",
43
+ í: "I",
44
+ î: "i",
45
+ ï: "i",
46
+ Ô: "O",
47
+ Õ: "O",
48
+ Ö: "O",
49
+ Ø: "O",
50
+ ô: "o",
51
+ õ: "o",
52
+ ö: "o",
53
+ ø: "o",
54
+ Ù: "U",
55
+ Ú: "U",
56
+ Û: "U",
57
+ Ü: "U",
58
+ ù: "u",
59
+ ú: "u",
60
+ û: "u",
61
+ ü: "u",
62
+ Ç: "C",
63
+ ç: "c",
64
+ ÿ: "y",
65
+ Ñ: "N",
66
+ ñ: "n",
67
+ ó: "o"
68
+ };
69
+ let i = u.toString();
70
+ if (l.trim && (i = i.trim()), l.normalizeSpaces && (i = i.replaceAll(/\s+/g, " ")), l.replaceSpaces && (i = i.replaceAll(" ", "-")), l.removeNumbers && (i = i.replaceAll(/\d/g, "")), l.removeAccents && (i = i.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (d) => t[d] || d), i = i.replaceAll(/[\u0300-\u036F]/g, "")), l.caseSensitive === !1 && (i = i.toLowerCase()), l.removeSpecialCharacters && (i = i.replaceAll(/[^\dA-Z-]/gi, "")), l.trim && (i = i.trim()), l.customNormalizationForms)
71
+ for (const d of l.customNormalizationForms)
72
+ i = i.normalize(d);
73
+ return i;
74
+ }
75
+ function Ue(u, r) {
76
+ const l = u.length, t = r.length, i = [];
77
+ for (let d = 0; d <= l; d++)
78
+ i[d] = [d];
79
+ for (let d = 0; d <= t; d++)
80
+ i[0][d] = d;
81
+ for (let d = 1; d <= l; d++)
82
+ for (let y = 1; y <= t; y++) {
83
+ const $ = u[d - 1] === r[y - 1] ? 0 : 1;
84
+ i[d][y] = Math.min(
85
+ i[d - 1][y] + 1,
86
+ i[d][y - 1] + 1,
87
+ i[d - 1][y - 1] + $
88
+ );
89
+ }
90
+ return i[l][t];
91
+ }
92
+ function ke(u, r) {
93
+ const l = Ue(u, r), t = Math.max(u.length, r.length);
94
+ return 1 - l / t;
95
+ }
96
+ function We(u, r, l = 0.75) {
97
+ return ke(u, r) >= l;
98
+ }
99
+ function re(u, r, l = 0.75) {
100
+ const t = p(
101
+ () => oe(typeof u == "string" ? u : u.value)
102
+ ), i = p(
103
+ () => oe(typeof r == "string" ? r : r.value)
104
+ ), d = p(() => typeof l == "number" ? l : l.value), y = p(() => ke(t.value, i.value));
105
+ return {
106
+ isMatching: p(
107
+ () => We(t.value, i.value, d.value)
108
+ ),
109
+ score: y
110
+ };
111
+ }
112
+ function Ve(u, r, l) {
113
+ var y;
114
+ u.stopPropagation();
115
+ const t = typeof l.value == "function" ? l.value : l.value.handler, i = typeof l.value == "object" ? l.value.exclude : void 0;
116
+ let d = !1;
117
+ if (i && i.length > 0) {
118
+ for (const $ of i)
119
+ if (!d && u.target instanceof HTMLElement) {
120
+ const U = (y = document.querySelector($)) == null ? void 0 : y.getAttribute("id");
121
+ d = u.target.getAttribute("id") === U;
122
+ }
123
+ }
124
+ !r.contains(u.target) && !d && (t == null || t());
125
+ }
126
+ function Ie() {
127
+ return document.ontouchstart === null ? "touchstart" : "click";
128
+ }
129
+ function je(u, r) {
130
+ const l = Ie();
131
+ document.removeEventListener(l, (t) => Ve(t, u, r));
132
+ }
133
+ function Qe(u, r) {
134
+ if (typeof r.value != "function" && typeof r.value == "object" && typeof r.value.handler != "function") {
135
+ console.error("[maz-ui](vClosable) v-closable directive requires a handler function");
136
+ return;
137
+ }
138
+ const l = Ie();
139
+ document.addEventListener(l, (t) => Ve(t, u, r));
140
+ }
141
+ const Re = {
142
+ mounted: Qe,
143
+ unmounted: je
144
+ };
145
+ function Ge(u, r) {
146
+ let l;
147
+ return function(...t) {
148
+ clearTimeout(l), l = setTimeout(() => {
149
+ u.apply(this, t);
150
+ }, r);
151
+ };
152
+ }
153
+ const we = (u, r) => {
154
+ const l = u.__vccOpts || u;
155
+ for (const [t, i] of r)
156
+ l[t] = i;
157
+ return l;
158
+ };
159
+ let de = null;
160
+ function Ze(u, r) {
161
+ de && clearTimeout(de), de = setTimeout(u, r);
162
+ }
163
+ const Je = ["for"], Xe = {
164
+ key: 0,
165
+ class: "m-input-wrapper-left"
166
+ }, Ye = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], xe = { key: 0 }, _e = {
167
+ key: 1,
168
+ class: "m-input-wrapper-right"
169
+ }, et = /* @__PURE__ */ be({
170
+ inheritAttrs: !1,
171
+ __name: "MazInput",
172
+ props: {
173
+ style: { default: void 0 },
174
+ class: { default: void 0 },
175
+ modelValue: { default: void 0 },
176
+ placeholder: { default: void 0 },
177
+ label: { default: void 0 },
178
+ topLabel: {},
179
+ assistiveText: {},
180
+ name: { default: void 0 },
181
+ color: { default: "primary" },
182
+ type: { default: "text" },
183
+ required: { type: Boolean, default: !1 },
184
+ disabled: { type: Boolean, default: !1 },
185
+ readonly: { type: Boolean, default: !1 },
186
+ id: { default: void 0 },
187
+ error: { type: Boolean, default: !1 },
188
+ success: { type: Boolean, default: !1 },
189
+ warning: { type: Boolean, default: !1 },
190
+ hint: { default: void 0 },
191
+ inputClasses: { default: void 0 },
192
+ noBorder: { type: Boolean, default: !1 },
193
+ noRadius: { type: Boolean, default: !1 },
194
+ inputmode: { default: "text" },
195
+ size: { default: "md" },
196
+ debounce: { type: [Boolean, Number], default: !1 },
197
+ debounceDelay: { default: 500 },
198
+ validButton: { type: Boolean, default: !1 },
199
+ validButtonLoading: { type: Boolean, default: !1 },
200
+ autoFocus: { type: Boolean, default: !1 },
201
+ borderActive: { type: Boolean, default: !1 },
202
+ leftIcon: { type: [String, Function, Object], default: void 0 },
203
+ rightIcon: { type: [String, Function, Object], default: void 0 },
204
+ roundedSize: { default: void 0 },
205
+ block: { type: Boolean }
206
+ },
207
+ emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
208
+ setup(u, { emit: r }) {
209
+ const l = u, t = r, i = A(() => import("./MazBtn-BfIn7glE.mjs")), d = A(() => import("./MazIcon-_hN-Kivn.mjs")), y = A(() => import("./eye-slash-BoO00xzs.mjs")), $ = A(() => import("./eye-f8zAUc30.mjs")), U = A(() => import("./check-C9Q_W85g.mjs")), k = V(!1), f = V(!1), D = V(), Z = ze({
210
+ componentName: "MazInput",
211
+ providedId: l.id
212
+ });
213
+ Te(() => {
214
+ var o;
215
+ l.autoFocus && ((o = D.value) == null || o.focus());
216
+ });
217
+ const J = p(() => l.type === "password"), le = p(() => k.value ? "text" : l.type), I = p(() => {
218
+ if (!l.noBorder) {
219
+ if (l.error)
220
+ return "maz-border-danger";
221
+ if (l.success)
222
+ return "maz-border-success";
223
+ if (l.warning)
224
+ return "maz-border-warning";
225
+ if (f.value || l.borderActive) {
226
+ if (l.color === "black")
227
+ return "maz-border-black";
228
+ if (l.color === "danger")
229
+ return "maz-border-danger";
230
+ if (l.color === "info")
231
+ return "maz-border-info";
232
+ if (l.color === "primary")
233
+ return "maz-border-primary";
234
+ if (l.color === "secondary")
235
+ return "maz-border-secondary";
236
+ if (l.color === "success")
237
+ return "maz-border-success";
238
+ if (l.color === "warning")
239
+ return "maz-border-warning";
240
+ if (l.color === "white")
241
+ return "maz-border-white";
242
+ }
243
+ return "--default-border";
244
+ }
245
+ }), W = Ee(), X = p(() => {
246
+ const { required: o, placeholder: g } = l;
247
+ if (g)
248
+ return o ? `${g} *` : g;
249
+ }), Y = p(() => M.value !== void 0 && M.value !== ""), C = Ge(
250
+ (o) => {
251
+ t("update:model-value", o);
252
+ },
253
+ typeof l.debounce == "number" ? l.debounce : l.debounceDelay ?? 500
254
+ );
255
+ function N(o) {
256
+ if (l.debounce)
257
+ return C(o);
258
+ t("update:model-value", o);
259
+ }
260
+ const M = p({
261
+ get: () => l.modelValue,
262
+ set: (o) => N(o)
263
+ }), j = p(() => (!!l.label || !!l.hint) && (f.value || !!Y.value || !!l.placeholder || ["date", "month", "week"].includes(l.type))), x = p(() => !!l.label || !!l.hint);
264
+ function _() {
265
+ return !!W["right-icon"] || J.value || !!W["valid-button"] || l.validButton || !!l.rightIcon;
266
+ }
267
+ function L() {
268
+ return !!W["left-icon"] || !!l.leftIcon;
269
+ }
270
+ function Q(o) {
271
+ t("focus", o), f.value = !0;
272
+ }
273
+ function ae(o) {
274
+ t("blur", o), f.value = !1;
275
+ }
276
+ function ne(o) {
277
+ return t("change", o);
278
+ }
279
+ function T(o) {
280
+ return t("input", o);
281
+ }
282
+ return (o, g) => (m(), z(
283
+ "div",
284
+ {
285
+ class: B(["m-input", [
286
+ {
287
+ "--is-focused": f.value || o.borderActive,
288
+ "--should-up": j.value,
289
+ "--has-label": x.value,
290
+ "--is-disabled": o.disabled,
291
+ "--is-readonly": o.readonly,
292
+ "--has-z-2": o.error || o.warning || o.success,
293
+ "--has-state": o.error || o.warning || o.success,
294
+ "--block": o.block
295
+ },
296
+ l.class,
297
+ `--${o.color}`
298
+ ]]),
299
+ style: ee(o.style)
300
+ },
301
+ [
302
+ o.topLabel ? (m(), z("label", {
303
+ key: 0,
304
+ for: h(Z),
305
+ class: "m-input-top-label"
306
+ }, G(o.topLabel), 9, Je)) : b("v-if", !0),
307
+ O(
308
+ "div",
309
+ {
310
+ class: B(["m-input-wrapper", [
311
+ o.inputClasses,
312
+ I.value,
313
+ o.roundedSize ? `--rounded-${o.roundedSize}` : { "maz-rounded": !o.noRadius },
314
+ { "--block": o.block }
315
+ ]])
316
+ },
317
+ [
318
+ L() ? (m(), z("div", Xe, [
319
+ o.$slots["left-icon"] || o.leftIcon ? q(o.$slots, "left-icon", { key: 0 }, () => [
320
+ typeof o.leftIcon == "string" ? (m(), K(h(d), {
321
+ key: 0,
322
+ name: o.leftIcon,
323
+ class: "maz-text-xl maz-text-muted"
324
+ }, null, 8, ["name"])) : o.leftIcon ? (m(), K(me(o.leftIcon), {
325
+ key: 1,
326
+ class: "maz-text-xl maz-text-muted"
327
+ })) : b("v-if", !0)
328
+ ], !0) : b("v-if", !0)
329
+ ])) : b("v-if", !0),
330
+ O(
331
+ "div",
332
+ {
333
+ class: B(["m-input-wrapper-input", [`--${o.size}`, { "--top-label": !!o.topLabel }]])
334
+ },
335
+ [
336
+ he(O("input", ge({
337
+ id: h(Z),
338
+ ref_key: "input",
339
+ ref: D,
340
+ "onUpdate:modelValue": g[0] || (g[0] = (E) => M.value = E),
341
+ type: le.value,
342
+ name: o.name
343
+ }, o.$attrs, {
344
+ inputmode: o.inputmode,
345
+ placeholder: X.value,
346
+ "aria-label": o.label || o.placeholder,
347
+ disabled: o.disabled,
348
+ readonly: o.readonly,
349
+ required: o.required,
350
+ class: "m-input-input"
351
+ }, Oe({
352
+ blur: ae,
353
+ focus: Q,
354
+ change: ne,
355
+ input: T
356
+ }, !0), {
357
+ onClick: g[1] || (g[1] = (E) => o.$emit("click", E))
358
+ }), null, 16, Ye), [
359
+ [De, M.value]
360
+ ]),
361
+ o.label || o.hint ? (m(), z(
362
+ "span",
363
+ {
364
+ key: 0,
365
+ class: B(["m-input-label", [
366
+ {
367
+ "maz-text-danger-600": o.error,
368
+ "maz-text-success-600": o.success,
369
+ "maz-text-warning-600": o.warning
370
+ }
371
+ ]])
372
+ },
373
+ [
374
+ Ne(
375
+ G(o.hint || o.label) + " ",
376
+ 1
377
+ /* TEXT */
378
+ ),
379
+ o.required ? (m(), z("sup", xe, "*")) : b("v-if", !0)
380
+ ],
381
+ 2
382
+ /* CLASS */
383
+ )) : b("v-if", !0)
384
+ ],
385
+ 2
386
+ /* CLASS */
387
+ ),
388
+ _() ? (m(), z("div", _e, [
389
+ o.$slots["right-icon"] || o.rightIcon ? q(o.$slots, "right-icon", { key: 0 }, () => [
390
+ typeof o.rightIcon == "string" ? (m(), K(h(d), {
391
+ key: 0,
392
+ name: o.rightIcon,
393
+ class: "maz-text-xl maz-text-muted"
394
+ }, null, 8, ["name"])) : o.rightIcon ? (m(), K(me(o.rightIcon), {
395
+ key: 1,
396
+ class: "maz-text-xl maz-text-muted"
397
+ })) : b("v-if", !0)
398
+ ], !0) : b("v-if", !0),
399
+ J.value ? (m(), K(h(i), {
400
+ key: 1,
401
+ color: "transparent",
402
+ tabindex: "-1",
403
+ size: "mini",
404
+ onClick: g[2] || (g[2] = F((E) => k.value = !k.value, ["stop"]))
405
+ }, {
406
+ default: te(() => [
407
+ k.value ? (m(), K(h(y), {
408
+ key: 0,
409
+ class: "maz-text-xl maz-text-muted"
410
+ })) : (m(), K(h($), {
411
+ key: 1,
412
+ class: "maz-text-xl maz-text-muted"
413
+ }))
414
+ ]),
415
+ _: 1
416
+ /* STABLE */
417
+ })) : b("v-if", !0),
418
+ o.$slots["valid-button"] || o.validButton ? q(o.$slots, "valid-button", { key: 2 }, () => [
419
+ H(h(i), {
420
+ color: "transparent",
421
+ disabled: o.disabled,
422
+ tabindex: "-1",
423
+ loading: o.validButtonLoading,
424
+ class: "m-input-valid-button",
425
+ size: "mini",
426
+ type: "submit"
427
+ }, {
428
+ default: te(() => [
429
+ H(h(U), { class: "maz-text-2xl maz-text-normal" })
430
+ ]),
431
+ _: 1
432
+ /* STABLE */
433
+ }, 8, ["disabled", "loading"])
434
+ ], !0) : b("v-if", !0)
435
+ ])) : b("v-if", !0)
436
+ ],
437
+ 2
438
+ /* CLASS */
439
+ ),
440
+ o.assistiveText ? (m(), z(
441
+ "div",
442
+ {
443
+ key: 1,
444
+ class: B(["m-input-bottom-text", [
445
+ {
446
+ "maz-text-danger-600": o.error,
447
+ "maz-text-success-600": o.success,
448
+ "maz-text-warning-600": o.warning,
449
+ "maz-text-muted": !o.error && !o.success && !o.warning
450
+ }
451
+ ]])
452
+ },
453
+ G(o.assistiveText),
454
+ 3
455
+ /* TEXT, CLASS */
456
+ )) : b("v-if", !0)
457
+ ],
458
+ 6
459
+ /* CLASS, STYLE */
460
+ ));
461
+ }
462
+ }), ye = /* @__PURE__ */ we(et, [["__scopeId", "data-v-2cfe0ca2"]]), tt = ["aria-label"], ot = { class: "m-select-list__no-results" }, lt = {
463
+ key: 2,
464
+ class: "m-select-list__scroll-wrapper",
465
+ tabindex: "-1"
466
+ }, at = { class: "m-select-list-optgroup" }, nt = ["onClick"], st = /* @__PURE__ */ be({
467
+ inheritAttrs: !1,
468
+ __name: "MazSelect",
469
+ props: {
470
+ style: { default: void 0 },
471
+ class: { default: void 0 },
472
+ id: { default: void 0 },
473
+ modelValue: { default: void 0 },
474
+ options: { default: void 0 },
475
+ optionValueKey: { default: "value" },
476
+ optionLabelKey: { default: "label" },
477
+ optionInputValueKey: { default: "label" },
478
+ listPosition: { default: "bottom left" },
479
+ itemHeight: { default: void 0 },
480
+ maxListHeight: { default: 240 },
481
+ maxListWidth: { default: void 0 },
482
+ minListHeight: { default: void 0 },
483
+ minListWidth: { default: void 0 },
484
+ size: { default: "md" },
485
+ color: { default: "primary" },
486
+ search: { type: Boolean },
487
+ searchPlaceholder: { default: "Search in options" },
488
+ searchThreshold: { default: 0.75 },
489
+ open: { type: Boolean },
490
+ multiple: { type: Boolean, default: void 0 },
491
+ required: { type: Boolean },
492
+ disabled: { type: Boolean },
493
+ block: { type: Boolean },
494
+ excludeSelectors: { default: void 0 },
495
+ autocomplete: { default: "off" }
496
+ },
497
+ emits: ["close", "open", "blur", "focus", "change", "input", "update:model-value", "selected-option"],
498
+ setup(u, { expose: r, emit: l }) {
499
+ const t = u, i = l, d = A(() => import("./MazCheckbox-DxfneUvu.mjs")), y = A(() => import("./magnifying-glass--nBiyXot.mjs")), $ = A(() => import("./chevron-down-BkvtON3b.mjs")), U = A(() => import("./no-symbol-CIgKzsrB.mjs"));
500
+ r({
501
+ /** Method to open the option list */
502
+ openList: R,
503
+ /** Method to close the option list */
504
+ closeList: P
505
+ });
506
+ const k = V(!1), f = V(), D = p(
507
+ () => ["black", "transparent", "white"].includes(t.color)
508
+ ), Z = p(
509
+ () => D.value ? "var(--maz-color-black)" : `var(--maz-color-${t.color}-800)`
510
+ ), J = p(
511
+ () => D.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-100)`
512
+ ), le = p(
513
+ () => D.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-200)`
514
+ ), I = p(() => k.value || t.open), W = ze({
515
+ componentName: "MazSelect",
516
+ providedId: t.id
517
+ });
518
+ function X(e) {
519
+ return {
520
+ [t.optionValueKey]: e,
521
+ [t.optionLabelKey]: e,
522
+ [t.optionInputValueKey]: e
523
+ };
524
+ }
525
+ function Y(e) {
526
+ return {
527
+ ...e,
528
+ [t.optionValueKey]: e[t.optionValueKey],
529
+ [t.optionLabelKey]: e[t.optionLabelKey],
530
+ [t.optionInputValueKey]: e[t.optionInputValueKey]
531
+ };
532
+ }
533
+ const C = p(() => {
534
+ var a;
535
+ const e = [];
536
+ if (!((a = t.options) != null && a.length))
537
+ return [];
538
+ for (const s of t.options)
539
+ typeof s == "string" || typeof s == "number" || typeof s == "boolean" ? e.push(X(s)) : typeof s == "object" && "options" in s && Array.isArray(s.options) ? e.push(
540
+ { label: s.label, isOptGroup: !0 },
541
+ ...s.options.map(
542
+ (n) => typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? X(n) : Y(n)
543
+ )
544
+ ) : e.push(Y(s));
545
+ return e;
546
+ }), N = p(
547
+ () => {
548
+ var e;
549
+ return ((e = C.value) == null ? void 0 : e.filter((a) => t.multiple ? Array.isArray(t.modelValue) ? t.modelValue.includes(a[t.optionValueKey]) && !L(a[t.optionValueKey]) : !1 : t.modelValue === a[t.optionValueKey] && !L(a[t.optionValueKey]))) ?? [];
550
+ }
551
+ );
552
+ Pe(() => {
553
+ var e;
554
+ (e = t.options) != null && e.length || console.warn("[maz-ui](MazSelect) you must provide options"), ie();
555
+ });
556
+ const M = V(), j = V(), x = V(), _ = V();
557
+ function L(e) {
558
+ return e == null;
559
+ }
560
+ function Q(e) {
561
+ var s;
562
+ return (((s = N.value) == null ? void 0 : s.some(
563
+ (n) => n[t.optionValueKey] === e[t.optionValueKey]
564
+ )) ?? !1) && !L(e[t.optionValueKey]);
565
+ }
566
+ const ae = p(() => {
567
+ var a;
568
+ if (t.multiple && t.modelValue && Array.isArray(t.modelValue))
569
+ return t.modelValue.map(
570
+ (s) => {
571
+ var n, c;
572
+ return (c = (n = C.value) == null ? void 0 : n.find((v) => v[t.optionValueKey] === s)) == null ? void 0 : c[t.optionInputValueKey];
573
+ }
574
+ ).join(", ");
575
+ const e = (a = C.value) == null ? void 0 : a.find(
576
+ (s) => s[t.optionValueKey] === t.modelValue
577
+ );
578
+ return L(t.modelValue) || e == null ? void 0 : e[t.optionInputValueKey];
579
+ }), ne = p(
580
+ () => t.listPosition.includes("bottom") ? "maz-slide" : "maz-slideinvert"
581
+ ), T = V(""), o = V("");
582
+ function g(e, a) {
583
+ return a && e && oe(e).includes(oe(a));
584
+ }
585
+ function E(e) {
586
+ var a;
587
+ return e ? (a = C.value) == null ? void 0 : a.filter((s) => {
588
+ const n = s[t.optionLabelKey], c = s[t.optionValueKey], v = s[t.optionInputValueKey], w = t.searchThreshold;
589
+ return g(n, e) || g(v, e) || g(c, e) || typeof n == "string" && re(n, e, w).isMatching.value || typeof v == "string" && re(v, e, w).isMatching.value || typeof c == "string" && re(c, e, w).isMatching.value;
590
+ }) : C.value;
591
+ }
592
+ const S = p(() => E(T.value));
593
+ async function P(e) {
594
+ var s, n;
595
+ if (!I.value)
596
+ return;
597
+ if (e && ("relatedTarget" in e && ((s = M.value) != null && s.contains(e.relatedTarget)) || e.type === "keydown"))
598
+ return e.preventDefault();
599
+ const a = e && "relatedTarget" in e && e.relatedTarget instanceof HTMLElement && e.relatedTarget.getAttribute("id");
600
+ if ((n = t.excludeSelectors) != null && n.includes(`#${a}`))
601
+ return e == null ? void 0 : e.preventDefault();
602
+ await ue(), k.value = !1, f.value = 0, i("close", e);
603
+ }
604
+ async function R(e) {
605
+ t.disabled || I.value || (e == null || e.preventDefault(), k.value = !0, await se(), i("focus", e), i("open", k.value));
606
+ }
607
+ function ce() {
608
+ var e, a;
609
+ (a = ((e = j.value) == null ? void 0 : e.$el).querySelector("input")) == null || a.focus();
610
+ }
611
+ function Se() {
612
+ var e, a;
613
+ (a = ((e = j.value) == null ? void 0 : e.$el).querySelector("input")) == null || a.dispatchEvent(new Event("input"));
614
+ }
615
+ function Ke(e) {
616
+ k.value ? P(e) : ce();
617
+ }
618
+ function Ae(e) {
619
+ var a, s;
620
+ T.value = e, (s = ((a = x.value) == null ? void 0 : a.$el).querySelector("input")) == null || s.focus();
621
+ }
622
+ function $e(e) {
623
+ var s;
624
+ e === "Backspace" && o.value.length > 0 ? o.value = o.value.slice(0, -1) : o.value += e;
625
+ const a = E(o.value);
626
+ a != null && a.length && (f.value = (s = S.value) == null ? void 0 : s.findIndex(
627
+ (n) => n[t.optionValueKey] === a[0][t.optionValueKey]
628
+ ), typeof f.value == "number" && f.value >= 0 && se(f.value)), Ze(() => {
629
+ o.value = "";
630
+ }, 1e3);
631
+ }
632
+ function Le(e) {
633
+ const a = e.key;
634
+ /^[\dA-Za-z\u0400-\u04FF]$/.test(a) ? (e.preventDefault(), R(e), t.search ? Ae(a) : $e(a)) : pe(e);
635
+ }
636
+ function pe(e, a = !0) {
637
+ const s = e.code, n = ["ArrowUp", "ArrowDown"].includes(s), c = (a ? ["Enter", "Space"] : ["Enter"]).includes(s), v = s === "Escape" && I.value;
638
+ n ? Be(e, f.value) : c ? Ce(e, f.value) : v && P(e);
639
+ }
640
+ function Be(e, a) {
641
+ var c;
642
+ e.preventDefault();
643
+ const s = e.code;
644
+ I.value || R(e);
645
+ const n = (c = S.value) == null ? void 0 : c.length;
646
+ n && (typeof a == "number" ? a === n - 1 && s === "ArrowDown" ? f.value = 0 : a === 0 && s === "ArrowUp" ? f.value = n - 1 : f.value = s === "ArrowDown" ? a + 1 : a - 1 : f.value = s === "ArrowDown" ? 0 : n - 1, se(f.value));
647
+ }
648
+ function Ce(e, a) {
649
+ var n, c, v;
650
+ if (!I.value)
651
+ return;
652
+ e.preventDefault();
653
+ const s = a ? ((n = S.value) == null ? void 0 : n[a]) ?? ((c = S.value) == null ? void 0 : c[0]) : (v = S.value) == null ? void 0 : v[0];
654
+ L(s) || fe(s);
655
+ }
656
+ async function se(e) {
657
+ var s, n;
658
+ await ue(), typeof e != "number" && ie();
659
+ const a = e ?? f.value;
660
+ if (typeof a == "number" && a >= 0) {
661
+ const c = (s = _.value) == null ? void 0 : s.querySelectorAll(".m-select-list-item");
662
+ (n = c == null ? void 0 : c[a]) == null || n.scrollIntoView({
663
+ behavior: "auto",
664
+ block: "nearest",
665
+ inline: "start"
666
+ });
667
+ }
668
+ }
669
+ function ie(e) {
670
+ var s;
671
+ const a = (s = S.value) == null ? void 0 : s.findIndex((n) => {
672
+ var c, v;
673
+ return t.multiple && Array.isArray(t.modelValue) ? e ? e[t.optionValueKey] === n[t.optionValueKey] : [...t.modelValue].reverse()[0] === n[t.optionValueKey] : ((v = (c = N.value) == null ? void 0 : c[0]) == null ? void 0 : v[t.optionValueKey]) === n[t.optionValueKey];
674
+ });
675
+ f.value = a && a >= 0 ? a : 0;
676
+ }
677
+ function fe(e, a = !0) {
678
+ var v;
679
+ a && !t.multiple && ue(() => P()), T.value = "";
680
+ const s = (v = N.value) == null ? void 0 : v.some(
681
+ (w) => w[t.optionValueKey] === e[t.optionValueKey]
682
+ );
683
+ let n = N.value;
684
+ s && t.multiple ? n = n == null ? void 0 : n.filter(
685
+ (w) => w[t.optionValueKey] !== e[t.optionValueKey]
686
+ ) : t.multiple ? n.push(e) : n = [e];
687
+ const c = n.map((w) => w[t.optionValueKey]);
688
+ i("update:model-value", t.multiple ? c : c[0]), i("selected-option", e), Se(), ie(e), ce();
689
+ }
690
+ return (e, a) => {
691
+ var s;
692
+ return he((m(), z(
693
+ "div",
694
+ {
695
+ ref_key: "mazSelectElement",
696
+ ref: M,
697
+ class: B(["m-select", [
698
+ { "--is-open": I.value, "--disabled": e.disabled, "--block": e.block },
699
+ t.class,
700
+ `--${e.size}`
701
+ ]]),
702
+ style: ee([e.style, { "--keyboard-selected-bg-color": le.value, "--selected-bg-color": J.value, "--selected-text-color": Z.value }])
703
+ },
704
+ [
705
+ H(ye, ge({
706
+ id: h(W),
707
+ ref_key: "mazInputComponent",
708
+ ref: j,
709
+ class: "m-select-input"
710
+ }, e.$attrs, {
711
+ required: e.required,
712
+ "border-active": k.value,
713
+ color: e.color,
714
+ "model-value": ae.value,
715
+ size: e.size,
716
+ block: "",
717
+ autocomplete: e.autocomplete,
718
+ disabled: e.disabled,
719
+ onFocus: F(R, ["prevent", "stop"]),
720
+ onBlur: F(P, ["prevent", "stop"]),
721
+ onClick: F(R, ["prevent", "stop"]),
722
+ onChange: a[0] || (a[0] = (n) => i("change", n)),
723
+ onInput: a[1] || (a[1] = (n) => i("input", n)),
724
+ onKeydown: Le
725
+ }), {
726
+ "right-icon": te(() => [
727
+ O("button", {
728
+ tabindex: "-1",
729
+ type: "button",
730
+ class: "m-select-input__toggle-button maz-custom",
731
+ "aria-label": `${I.value ? "collapse" : "expand"} list of options`,
732
+ onClick: F(Ke, ["stop"])
733
+ }, [
734
+ H(h($), { class: "m-select-chevron maz-text-xl" })
735
+ ], 8, tt)
736
+ ]),
737
+ _: 1
738
+ /* STABLE */
739
+ }, 16, ["id", "required", "border-active", "color", "model-value", "size", "autocomplete", "disabled"]),
740
+ H(Fe, { name: ne.value }, {
741
+ default: te(() => [
742
+ I.value ? (m(), z(
743
+ "div",
744
+ {
745
+ key: 0,
746
+ ref_key: "optionsListElement",
747
+ ref: _,
748
+ class: B(["m-select-list", {
749
+ "--top": e.listPosition.includes("top"),
750
+ "--left": e.listPosition.includes("left"),
751
+ "--right": e.listPosition.includes("right"),
752
+ "--bottom": e.listPosition.includes("bottom")
753
+ }]),
754
+ style: ee({
755
+ maxHeight: `${e.maxListHeight}px`,
756
+ maxWidth: `${e.maxListWidth}px`,
757
+ minHeight: `${e.minListHeight}px`,
758
+ minWidth: `${e.minListWidth}px`
759
+ })
760
+ },
761
+ [
762
+ e.search ? (m(), K(ye, {
763
+ key: 0,
764
+ ref_key: "searchInputComponent",
765
+ ref: x,
766
+ modelValue: T.value,
767
+ "onUpdate:modelValue": [
768
+ a[2] || (a[2] = (n) => T.value = n),
769
+ a[4] || (a[4] = (n) => f.value = 0)
770
+ ],
771
+ size: "sm",
772
+ color: e.color,
773
+ placeholder: e.searchPlaceholder,
774
+ name: "search",
775
+ inputmode: "search",
776
+ autocomplete: "off",
777
+ tabindex: "-1",
778
+ class: "m-select-list__search-input maz-flex-none",
779
+ "left-icon": h(y),
780
+ onKeydown: a[3] || (a[3] = (n) => pe(n, !1))
781
+ }, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : b("v-if", !0),
782
+ !S.value || S.value.length <= 0 ? q(e.$slots, "no-results", { key: 1 }, () => [
783
+ O("span", ot, [
784
+ H(h(U), { class: "maz-h-6 maz-w-6 maz-text-normal" })
785
+ ])
786
+ ], !0) : (m(), z("div", lt, [
787
+ (m(!0), z(
788
+ ve,
789
+ null,
790
+ He(S.value, (n, c) => (m(), z(
791
+ ve,
792
+ { key: c },
793
+ [
794
+ n.label && n.isOptGroup ? q(e.$slots, "optgroup", {
795
+ key: 0,
796
+ label: n.label
797
+ }, () => [
798
+ O(
799
+ "span",
800
+ at,
801
+ G(n.label),
802
+ 1
803
+ /* TEXT */
804
+ )
805
+ ], !0) : (m(), z("button", {
806
+ key: 1,
807
+ tabindex: "-1",
808
+ type: "button",
809
+ class: B(["m-select-list-item maz-custom maz-flex-none", [
810
+ {
811
+ "--is-keyboard-selected": f.value === c,
812
+ "--is-selected": Q(n),
813
+ "--is-none-value": L(n[e.optionValueKey])
814
+ }
815
+ ]]),
816
+ style: ee(e.itemHeight ? { height: `${e.itemHeight}px` } : void 0),
817
+ onClick: F((v) => fe(n), ["prevent", "stop"])
818
+ }, [
819
+ e.multiple ? (m(), K(h(d), {
820
+ key: 0,
821
+ tabindex: "-1",
822
+ "model-value": Q(n),
823
+ size: "sm",
824
+ color: e.color
825
+ }, null, 8, ["model-value", "color"])) : b("v-if", !0),
826
+ q(e.$slots, "default", {
827
+ option: n,
828
+ isSelected: Q(n)
829
+ }, () => [
830
+ O(
831
+ "span",
832
+ null,
833
+ G(n[e.optionLabelKey]),
834
+ 1
835
+ /* TEXT */
836
+ )
837
+ ], !0)
838
+ ], 14, nt))
839
+ ],
840
+ 64
841
+ /* STABLE_FRAGMENT */
842
+ ))),
843
+ 128
844
+ /* KEYED_FRAGMENT */
845
+ ))
846
+ ]))
847
+ ],
848
+ 6
849
+ /* CLASS, STYLE */
850
+ )) : b("v-if", !0)
851
+ ]),
852
+ _: 3
853
+ /* FORWARDED */
854
+ }, 8, ["name"])
855
+ ],
856
+ 6
857
+ /* CLASS, STYLE */
858
+ )), [
859
+ [h(Re), {
860
+ exclude: (s = e.excludeSelectors) != null && s.length ? e.excludeSelectors : [],
861
+ handler: P
862
+ }]
863
+ ]);
864
+ };
865
+ }
866
+ }), ut = /* @__PURE__ */ we(st, [["__scopeId", "data-v-961aec79"]]);
867
+ export {
868
+ ut as M,
869
+ we as _,
870
+ ze as u
871
+ };