maz-ui 3.47.2-beta.9 → 3.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. package/components/MazAccordion.mjs +76 -77
  2. package/components/MazAnimatedCounter.mjs +7 -7
  3. package/components/MazAvatar.mjs +1 -1
  4. package/components/MazBackdrop.d.ts +21 -13
  5. package/components/MazBackdrop.mjs +107 -82
  6. package/components/MazBadge.mjs +2 -2
  7. package/components/MazBottomSheet.d.ts +11 -24
  8. package/components/MazBottomSheet.mjs +1 -1
  9. package/components/MazBtn.mjs +1 -1
  10. package/components/MazCard.mjs +1 -1
  11. package/components/MazCardSpotlight.mjs +7 -7
  12. package/components/MazCarousel.mjs +1 -1
  13. package/components/MazChart.mjs +13 -13
  14. package/components/MazCheckbox.mjs +36 -37
  15. package/components/MazChecklist.mjs +1 -1
  16. package/components/MazCircularProgressBar.d.ts +18 -0
  17. package/components/MazCircularProgressBar.mjs +40 -38
  18. package/components/MazDialog.d.ts +20 -31
  19. package/components/MazDialog.mjs +1 -1
  20. package/components/MazDialogPromise.d.ts +3 -3
  21. package/components/MazDialogPromise.mjs +1 -1
  22. package/components/MazDrawer.d.ts +7 -4
  23. package/components/MazDrawer.mjs +2 -194
  24. package/components/MazDropdown.mjs +1 -1
  25. package/components/MazDropzone.mjs +1 -1
  26. package/components/MazExpandAnimation.mjs +8 -8
  27. package/components/MazFullscreenLoader.mjs +2 -40
  28. package/components/MazGallery.mjs +1 -1
  29. package/components/MazIcon.mjs +9 -8
  30. package/components/MazInput.d.ts +2 -0
  31. package/components/MazInput.mjs +1 -1
  32. package/components/MazInputCode.mjs +2 -2
  33. package/components/MazInputNumber.mjs +1 -1
  34. package/components/MazInputPrice.mjs +1 -1
  35. package/components/MazInputTags.mjs +1 -1
  36. package/components/MazLazyImg.mjs +1 -1
  37. package/components/MazLink.d.ts +2 -2
  38. package/components/MazLink.mjs +6 -6
  39. package/components/MazLoadingBar.mjs +17 -17
  40. package/components/MazPagination.mjs +1 -1
  41. package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +2 -2
  42. package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +12 -23
  43. package/components/MazPhoneNumberInput/types.d.ts +4 -2
  44. package/{types/components/MazPhoneNumberInput/use-libphonenumber.d.ts → components/MazPhoneNumberInput/useLibphonenumber.d.ts} +11 -6
  45. package/components/MazPhoneNumberInput/{use-maz-phone-number-input.d.ts → useMazPhoneNumberInput.d.ts} +1 -1
  46. package/components/MazPhoneNumberInput.mjs +1 -1
  47. package/components/MazPicker.mjs +1 -1
  48. package/components/MazPullToRefresh.mjs +1 -1
  49. package/components/MazRadio.mjs +18 -19
  50. package/components/MazRadioButtons.mjs +2 -2
  51. package/components/MazReadingProgressBar.mjs +15 -15
  52. package/components/MazSelect.d.ts +1 -1
  53. package/components/MazSelect.mjs +1 -1
  54. package/components/MazSlider.mjs +31 -31
  55. package/components/MazSpinner.mjs +7 -7
  56. package/components/MazStepper.d.ts +1 -1
  57. package/components/MazStepper.mjs +1 -1
  58. package/components/MazSwitch.mjs +19 -20
  59. package/components/MazTable.mjs +1 -1
  60. package/components/MazTableCell.mjs +12 -12
  61. package/components/MazTableRow.mjs +6 -6
  62. package/components/MazTableTitle.mjs +11 -11
  63. package/components/MazTabs.d.ts +3 -3
  64. package/components/MazTabs.mjs +7 -7
  65. package/components/MazTabsBar.mjs +1 -1
  66. package/components/MazTabsContent.mjs +4 -4
  67. package/components/MazTabsContentItem.mjs +10 -10
  68. package/components/MazTextarea.d.ts +26 -48
  69. package/components/MazTextarea.mjs +4 -5
  70. package/components/MazTransitionExpand.mjs +10 -10
  71. package/components/assets/MazAccordion.css +1 -1
  72. package/components/assets/MazAnimatedCounter.css +1 -1
  73. package/components/assets/MazAvatar.css +1 -1
  74. package/components/assets/MazBackdrop.css +1 -1
  75. package/components/assets/MazBadge.css +1 -1
  76. package/components/assets/MazBottomSheet.css +1 -1
  77. package/components/assets/MazBtn.css +1 -1
  78. package/components/assets/MazCard.css +1 -1
  79. package/components/assets/MazCardSpotlight.css +1 -1
  80. package/components/assets/MazCarousel.css +1 -1
  81. package/components/assets/MazCheckbox.css +1 -1
  82. package/components/assets/MazChecklist.css +1 -1
  83. package/components/assets/MazCircularProgressBar.css +1 -1
  84. package/components/assets/MazDialog.css +1 -1
  85. package/components/assets/MazDialogPromise.css +1 -1
  86. package/components/assets/MazDrawer.css +1 -1
  87. package/components/assets/MazExpandAnimation.css +1 -1
  88. package/components/assets/MazFullscreenLoader.css +1 -1
  89. package/components/assets/MazGallery.css +1 -1
  90. package/components/assets/MazInput.css +1 -1
  91. package/components/assets/MazInputCode.css +1 -1
  92. package/components/assets/MazInputNumber.css +1 -1
  93. package/components/assets/MazInputPrice.css +1 -1
  94. package/components/assets/MazInputTags.css +1 -1
  95. package/components/assets/MazLazyImg.css +1 -1
  96. package/components/assets/MazLink.css +1 -1
  97. package/components/assets/MazLoadingBar.css +1 -1
  98. package/components/assets/MazPagination.css +1 -1
  99. package/components/assets/MazPhoneNumberInput.css +1 -1
  100. package/components/assets/MazPicker.css +1 -1
  101. package/components/assets/MazPullToRefresh.css +1 -1
  102. package/components/assets/MazRadio.css +1 -1
  103. package/components/assets/MazRadioButtons.css +1 -1
  104. package/components/assets/MazReadingProgressBar.css +1 -1
  105. package/components/assets/MazSelect.css +1 -1
  106. package/components/assets/MazSlider.css +1 -1
  107. package/components/assets/MazSpinner.css +1 -1
  108. package/components/assets/MazStepper.css +1 -1
  109. package/components/assets/MazTable.css +1 -1
  110. package/components/assets/MazTableCell.css +1 -1
  111. package/components/assets/MazTableRow.css +1 -1
  112. package/components/assets/MazTableTitle.css +1 -1
  113. package/components/assets/MazTabsBar.css +1 -1
  114. package/components/assets/MazTabsContentItem.css +1 -1
  115. package/components/assets/MazTextarea.css +1 -1
  116. package/components/assets/MazTransitionExpand.css +1 -1
  117. package/components/chunks/{MazAvatar-CZzOIbzh.mjs → MazAvatar-CuOWgdVG.mjs} +18 -18
  118. package/components/chunks/{MazBadge-CupQjB8D.mjs → MazBadge-tPgFsG6Y.mjs} +6 -6
  119. package/components/chunks/MazBottomSheet-CMqzf-dT.mjs +224 -0
  120. package/components/chunks/MazBtn-B16x1gSu.mjs +103 -0
  121. package/components/chunks/MazBtn-BLSmc1v4.mjs +103 -0
  122. package/components/chunks/MazBtn-BcrrOaO_.mjs +103 -0
  123. package/components/chunks/MazBtn-Bje1xDu3.mjs +103 -0
  124. package/components/chunks/MazBtn-C5sb0470.mjs +103 -0
  125. package/components/chunks/MazBtn-CPwCJ1l-.mjs +103 -0
  126. package/components/chunks/{MazBtn-BVWOyFm-.mjs → MazBtn-Cf-LPT5p.mjs} +4 -4
  127. package/components/chunks/MazBtn-DCyFSkZo.mjs +103 -0
  128. package/components/chunks/{MazBtn-DhSKmF01.mjs → MazBtn-DETtZdlj.mjs} +3 -3
  129. package/components/chunks/{MazBtn-BSgCMRt0.mjs → MazBtn-DnJzOPh9.mjs} +4 -4
  130. package/components/chunks/{MazBtn-CM-xSnA5.mjs → MazBtn-DsGaq_eB.mjs} +3 -3
  131. package/components/chunks/{MazBtn-Br3xKJMD.mjs → MazBtn-S7EnZYtZ.mjs} +4 -4
  132. package/components/chunks/MazBtn-iYAY4cer.mjs +103 -0
  133. package/components/chunks/MazBtn-v4i4k53h.mjs +103 -0
  134. package/components/chunks/{MazCard-XBaeDZkg.mjs → MazCard-l54W3CUU.mjs} +3 -3
  135. package/components/chunks/{MazCarousel-COTaKhKF.mjs → MazCarousel-C16E1i1T.mjs} +3 -3
  136. package/components/chunks/{MazCheckbox-DxfneUvu.mjs → MazCheckbox-C1nh-xQt.mjs} +7 -7
  137. package/components/chunks/{MazCheckbox-B-Sw22La.mjs → MazCheckbox-CEsAHbdi.mjs} +7 -7
  138. package/components/chunks/{MazCheckbox-DjY15PA3.mjs → MazCheckbox-D-7-TdgO.mjs} +4 -4
  139. package/components/chunks/{MazChecklist-DaozZlNb.mjs → MazChecklist-DSfD55m5.mjs} +125 -126
  140. package/components/chunks/MazDialog-BjQ3ivmv.mjs +297 -0
  141. package/components/chunks/MazDialogPromise-Bg3ZOsEI.mjs +551 -0
  142. package/components/chunks/MazDrawer-BqNLfW4e.mjs +226 -0
  143. package/components/chunks/{MazDropdown-CKuIGitT.mjs → MazDropdown-DNXKdC_3.mjs} +5 -5
  144. package/components/chunks/{MazDropzone-DKFkgqqD.mjs → MazDropzone-n0JE92da.mjs} +2 -2
  145. package/components/chunks/{MazExpandAnimation-Bdf0-L85.mjs → MazExpandAnimation-B04WMwpW.mjs} +8 -8
  146. package/components/chunks/MazFullscreenLoader-XF8wIEcL.mjs +48 -0
  147. package/components/chunks/{MazGallery-BooLoRWi.mjs → MazGallery-CzlKPQFX.mjs} +67 -67
  148. package/components/chunks/{MazGallery-DUOQamrE.mjs → MazGallery-DdZ3bFvX.mjs} +68 -68
  149. package/components/chunks/{MazIcon-_hN-Kivn.mjs → MazIcon-Cq1v4J3r.mjs} +9 -8
  150. package/components/chunks/{MazIcon-C-aPrqx2.mjs → MazIcon-DQXhsxp8.mjs} +11 -10
  151. package/components/chunks/{MazIcon-DFW4cVVf.mjs → MazIcon-DR6-win-.mjs} +12 -11
  152. package/components/chunks/MazIcon-Gv6n6i4M.mjs +4 -0
  153. package/components/chunks/{MazInput-HLPtw5QK.mjs → MazInput-BjnuoFvn.mjs} +36 -36
  154. package/components/chunks/{MazInput-BWAWlxDa.mjs → MazInput-DB4HtpCQ.mjs} +13 -13
  155. package/components/chunks/{MazInput-DIN1VAoX.mjs → MazInput-yBii2AFS.mjs} +27 -28
  156. package/components/chunks/{MazInputNumber-7Ku2ZcG-.mjs → MazInputNumber-DqnLi9-C.mjs} +81 -82
  157. package/components/chunks/{MazInputPrice-C5yErBFP.mjs → MazInputPrice-Ca8mL53M.mjs} +44 -45
  158. package/components/chunks/{MazInputTags-DvbQ2mK8.mjs → MazInputTags-Bto9dVQq.mjs} +78 -79
  159. package/components/chunks/{MazLazyImg-DQLwaKKz.mjs → MazLazyImg-D9mlGTCs.mjs} +4 -4
  160. package/components/chunks/{MazLazyImg-B-6PQWEi.mjs → MazLazyImg-DnJyLBjr.mjs} +3 -3
  161. package/components/chunks/{MazLink-mrqHeBS0.mjs → MazLink-DlUG7E5K.mjs} +3 -3
  162. package/components/chunks/{MazLoadingBar-CNm3Yt6D.mjs → MazLoadingBar-DBt1Ltm5.mjs} +8 -8
  163. package/components/chunks/{MazPagination-BSu0Ifkp.mjs → MazPagination-sxkvTajI.mjs} +49 -49
  164. package/components/chunks/MazPhoneNumberInput-C3j3JyDI.mjs +1813 -0
  165. package/components/chunks/{MazPicker-CzYUZcLy.mjs → MazPicker-BUXJof_-.mjs} +19 -20
  166. package/components/chunks/{MazPickerMonthSwitcher-Ds5agR3Z.mjs → MazPickerMonthSwitcher-DW2WfonJ.mjs} +1 -1
  167. package/components/chunks/{MazPickerShortcuts-BP6CY9-c.mjs → MazPickerShortcuts-fw4-dWSv.mjs} +1 -1
  168. package/components/chunks/{MazPickerYearSwitcher-PM8qZMzR.mjs → MazPickerYearSwitcher-aHvmQBF1.mjs} +1 -1
  169. package/components/chunks/{MazPullToRefresh-CFQX0soS.mjs → MazPullToRefresh-a1rT-zWr.mjs} +3 -3
  170. package/components/chunks/{MazSelect-DOexatNj.mjs → MazSelect-BwahUlbE.mjs} +322 -326
  171. package/components/chunks/MazSelect-CBaOs6va.mjs +550 -0
  172. package/components/chunks/MazSpinner-BVQYjLWp.mjs +34 -0
  173. package/components/chunks/{MazSpinner-yr9xVdAa.mjs → MazSpinner-BYlkcKf0.mjs} +6 -6
  174. package/components/chunks/MazSpinner-B_THFs0t.mjs +34 -0
  175. package/components/chunks/MazSpinner-Bb1BgWPD.mjs +34 -0
  176. package/components/chunks/MazSpinner-Bb4B4Nz8.mjs +34 -0
  177. package/components/chunks/{MazSpinner-9M_EGMpy.mjs → MazSpinner-Bpkl7q5u.mjs} +7 -7
  178. package/components/chunks/MazSpinner-BtDo7ZEC.mjs +34 -0
  179. package/components/chunks/MazSpinner-C-DOH7ou.mjs +34 -0
  180. package/components/chunks/MazSpinner-C1Rr3w9l.mjs +34 -0
  181. package/components/chunks/MazSpinner-C47dmUu7.mjs +34 -0
  182. package/components/chunks/MazSpinner-C7_Q1K-e.mjs +34 -0
  183. package/components/chunks/MazSpinner-CBHbVSef.mjs +34 -0
  184. package/components/chunks/MazSpinner-CCThMV5o.mjs +34 -0
  185. package/components/chunks/MazSpinner-CizL97Q2.mjs +34 -0
  186. package/components/chunks/{MazSpinner-BJpv1muf.mjs → MazSpinner-Cmy2WyWY.mjs} +7 -7
  187. package/components/chunks/MazSpinner-CodOqnm1.mjs +34 -0
  188. package/components/chunks/MazSpinner-Cq0S_tbE.mjs +34 -0
  189. package/components/chunks/{MazSpinner-Bsy1nA3c.mjs → MazSpinner-D6PdYOcD.mjs} +7 -7
  190. package/components/chunks/MazSpinner-DV9-beEc.mjs +34 -0
  191. package/components/chunks/MazSpinner-DoFpeVcl.mjs +34 -0
  192. package/components/chunks/MazSpinner-Dx-3_EFZ.mjs +34 -0
  193. package/components/chunks/MazSpinner-PVTrAf5V.mjs +34 -0
  194. package/components/chunks/MazSpinner-PXSS3XT3.mjs +34 -0
  195. package/components/chunks/MazSpinner-XZrAaGeE.mjs +34 -0
  196. package/components/chunks/{MazStepper-B3fuhbye.mjs → MazStepper-DtAqtJjn.mjs} +32 -32
  197. package/components/chunks/{MazTable-Ci8nhgOP.mjs → MazTable-Soe-MrTW.mjs} +79 -74
  198. package/components/chunks/{MazTableCell-BIganK6X.mjs → MazTableCell-DtoO9MOe.mjs} +6 -6
  199. package/components/chunks/MazTableRow-ChFMulaU.mjs +30 -0
  200. package/components/chunks/{MazTableTitle-OEgTPQB3.mjs → MazTableTitle-D8El-v5p.mjs} +6 -6
  201. package/components/chunks/{MazTabsBar-CT35SCIK.mjs → MazTabsBar-8wchBiYF.mjs} +21 -21
  202. package/components/chunks/{MazTransitionExpand-Bcwdl9g2.mjs → MazTransitionExpand-CRArAQZu.mjs} +10 -10
  203. package/components/chunks/examples.mobile.json-tW3aL0qI.mjs +4 -0
  204. package/components/chunks/useInstanceUniqId-BkOfxhk8.mjs +10 -0
  205. package/css/main.css +1 -1
  206. package/modules/assets/MazBtn.css +1 -1
  207. package/modules/assets/MazSpinner.css +1 -1
  208. package/modules/assets/index.css +1 -1
  209. package/modules/chunks/MazBtn-D0bVfaLm.cjs +1 -0
  210. package/{components/chunks/MazBtn-BfIn7glE.mjs → modules/chunks/MazBtn-Z86MClP9.mjs} +4 -4
  211. package/modules/chunks/{MazIcon-D-Gna0vz.cjs → MazIcon-BwgJhGLT.cjs} +1 -1
  212. package/modules/chunks/{MazIcon-CeT6HK_q.mjs → MazIcon-XtyPgbu6.mjs} +12 -11
  213. package/{components/chunks/MazSpinner-BlbTztM3.mjs → modules/chunks/MazSpinner-BfUXTY7m.mjs} +7 -7
  214. package/modules/chunks/MazSpinner-C5Fi9q_G.cjs +1 -0
  215. package/modules/chunks/index-Bq5KVBKA.cjs +124 -0
  216. package/modules/chunks/{index-Kry9j5uD.mjs → index-YwIF5a3Q.mjs} +1187 -951
  217. package/modules/index.cjs +1 -1
  218. package/modules/index.mjs +47 -46
  219. package/nuxt/index.json +1 -1
  220. package/package.json +4 -3
  221. package/tailwindcss/tailwind.css +0 -6
  222. package/tailwindcss/utils/colors.ts +9 -5
  223. package/tailwindcss/variables/utilities.ts +3 -0
  224. package/types/components/MazBackdrop.vue.d.ts +21 -13
  225. package/types/components/MazBottomSheet.vue.d.ts +11 -24
  226. package/types/components/MazCircularProgressBar.vue.d.ts +18 -0
  227. package/types/components/MazDialog.vue.d.ts +20 -31
  228. package/types/components/MazDialogPromise.vue.d.ts +3 -3
  229. package/types/components/MazDrawer.vue.d.ts +7 -4
  230. package/types/components/MazInput.vue.d.ts +2 -0
  231. package/types/components/MazLink.vue.d.ts +2 -2
  232. package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +2 -2
  233. package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +12 -23
  234. package/types/components/MazPhoneNumberInput/types.d.ts +4 -2
  235. package/{components/MazPhoneNumberInput/use-libphonenumber.d.ts → types/components/MazPhoneNumberInput/useLibphonenumber.d.ts} +11 -6
  236. package/types/components/MazPhoneNumberInput/{use-maz-phone-number-input.d.ts → useMazPhoneNumberInput.d.ts} +1 -1
  237. package/types/components/MazSelect.vue.d.ts +1 -1
  238. package/types/components/MazStepper.vue.d.ts +1 -1
  239. package/types/components/MazTabs.vue.d.ts +3 -3
  240. package/types/components/MazTextarea.vue.d.ts +26 -48
  241. package/types/modules/composables/useFormValidator/types.d.ts +2 -2
  242. package/types/modules/composables/useFormValidator/useFormField.d.ts +56 -16
  243. package/types/modules/composables/useFormValidator/utils.d.ts +6 -6
  244. package/types/modules/composables/useLanguageDisplayNames.d.ts +13 -12
  245. package/types/modules/directives/closable.d.ts +1 -1
  246. package/types/modules/directives/tooltip/index.d.ts +21 -0
  247. package/types/tailwindcss/tailwind.config.d.ts +2 -2
  248. package/types/tailwindcss/utils/colors.d.ts +1 -1
  249. package/types/tailwindcss/variables/utilities.d.ts +3 -0
  250. package/components/MazPhoneNumberInput.d.ts +0 -240
  251. package/components/chunks/MazBottomSheet-D9EPpEV8.mjs +0 -208
  252. package/components/chunks/MazBtn-CB6xVwox.mjs +0 -103
  253. package/components/chunks/MazBtn-CIAdgMGr.mjs +0 -111
  254. package/components/chunks/MazBtn-CQq-U8qQ.mjs +0 -103
  255. package/components/chunks/MazBtn-Chk7DWOF.mjs +0 -103
  256. package/components/chunks/MazBtn-Ck84sP9a.mjs +0 -103
  257. package/components/chunks/MazBtn-DI80W9rl.mjs +0 -103
  258. package/components/chunks/MazBtn-DzwuLea3.mjs +0 -103
  259. package/components/chunks/MazBtn-tOUtVpek.mjs +0 -103
  260. package/components/chunks/MazDialog-XiX9LEiz.mjs +0 -237
  261. package/components/chunks/MazDialogPromise-B9_e3Ma9.mjs +0 -488
  262. package/components/chunks/MazIcon-BX2Gbz8R.mjs +0 -4
  263. package/components/chunks/MazPhoneNumberInput-B5Up8CqL.mjs +0 -1806
  264. package/components/chunks/MazSelect-DaDRzcT_.mjs +0 -552
  265. package/components/chunks/MazSpinner-C30YfScc.mjs +0 -34
  266. package/components/chunks/MazSpinner-C5mnD76l.mjs +0 -34
  267. package/components/chunks/MazSpinner-CDx6lo7l.mjs +0 -34
  268. package/components/chunks/MazSpinner-C_GueolV.mjs +0 -34
  269. package/components/chunks/MazSpinner-Cc-KlPEG.mjs +0 -34
  270. package/components/chunks/MazSpinner-Cgg2dkzQ.mjs +0 -34
  271. package/components/chunks/MazSpinner-CkKIUYXO.mjs +0 -34
  272. package/components/chunks/MazSpinner-CxyUHAvm.mjs +0 -34
  273. package/components/chunks/MazSpinner-DROgQW2M.mjs +0 -34
  274. package/components/chunks/MazSpinner-DjM6ktPY.mjs +0 -34
  275. package/components/chunks/MazSpinner-DjUU4G1h.mjs +0 -34
  276. package/components/chunks/MazSpinner-Du5o8JC_.mjs +0 -38
  277. package/components/chunks/MazSpinner-Dzs2W0kq.mjs +0 -34
  278. package/components/chunks/MazSpinner-NCtEpFMm.mjs +0 -34
  279. package/components/chunks/MazSpinner-QfPXLpa_.mjs +0 -34
  280. package/components/chunks/MazSpinner-XB6tX3Ld.mjs +0 -34
  281. package/components/chunks/MazSpinner-ZPQe8ON_.mjs +0 -34
  282. package/components/chunks/MazSpinner-b90e3OQK.mjs +0 -34
  283. package/components/chunks/MazSpinner-f6pBzqbu.mjs +0 -34
  284. package/components/chunks/MazTableRow-CIO-x6Lb.mjs +0 -30
  285. package/components/chunks/examples.mobile.json-JpNGylGv.mjs +0 -4
  286. package/components/chunks/useInstanceUniqId-DW9jO1Sz.mjs +0 -11
  287. package/modules/chunks/MazBtn-0CRjeBvn.mjs +0 -103
  288. package/modules/chunks/MazBtn-DRqCRJD-.cjs +0 -1
  289. package/modules/chunks/MazSpinner-DV--lwdI.mjs +0 -34
  290. package/modules/chunks/MazSpinner-DersvZQw.cjs +0 -1
  291. package/modules/chunks/index-DvromXrX.cjs +0 -124
  292. package/types/components/MazPhoneNumberInput.vue.d.ts +0 -240
@@ -1,10 +1,9 @@
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";
1
+ import { computed as p, useId as Me, defineComponent as be, defineAsyncComponent as $, ref as V, onMounted as Te, useSlots as Ee, openBlock as m, createElementBlock as k, normalizeClass as B, normalizeStyle as ee, unref as h, toDisplayString as G, createCommentVNode as b, createElementVNode as O, renderSlot as U, createBlock as A, resolveDynamicComponent as me, withDirectives as he, mergeProps as ge, toHandlers as Oe, vModelDynamic as De, createTextVNode as Ne, withModifiers as H, withCtx as te, createVNode as q, onBeforeMount as Pe, nextTick as ue, Transition as Fe, Fragment as ve, renderList as He } from "vue";
2
2
  import '../assets/MazSelect.css';function ze({
3
3
  componentName: u,
4
4
  providedId: r
5
5
  }) {
6
- const l = Me();
7
- return p(() => r ?? `${u}-${l}`);
6
+ return p(() => r ?? `${u}-${Me().replace(/:/g, "")}`);
8
7
  }
9
8
  const qe = {
10
9
  removeAccents: !0,
@@ -66,28 +65,28 @@ function oe(u, r) {
66
65
  ñ: "n",
67
66
  ó: "o"
68
67
  };
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)
68
+ let s = u.toString();
69
+ if (l.trim && (s = s.trim()), l.normalizeSpaces && (s = s.replaceAll(/\s+/g, " ")), l.replaceSpaces && (s = s.replaceAll(" ", "-")), l.removeNumbers && (s = s.replaceAll(/\d/g, "")), l.removeAccents && (s = s.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (d) => t[d] || d), s = s.replaceAll(/[\u0300-\u036F]/g, "")), l.caseSensitive === !1 && (s = s.toLowerCase()), l.removeSpecialCharacters && (s = s.replaceAll(/[^\dA-Z-]/gi, "")), l.trim && (s = s.trim()), l.customNormalizationForms)
71
70
  for (const d of l.customNormalizationForms)
72
- i = i.normalize(d);
73
- return i;
71
+ s = s.normalize(d);
72
+ return s;
74
73
  }
75
74
  function Ue(u, r) {
76
- const l = u.length, t = r.length, i = [];
75
+ const l = u.length, t = r.length, s = [];
77
76
  for (let d = 0; d <= l; d++)
78
- i[d] = [d];
77
+ s[d] = [d];
79
78
  for (let d = 0; d <= t; d++)
80
- i[0][d] = d;
79
+ s[0][d] = d;
81
80
  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] + $
81
+ for (let v = 1; v <= t; v++) {
82
+ const S = u[d - 1] === r[v - 1] ? 0 : 1;
83
+ s[d][v] = Math.min(
84
+ s[d - 1][v] + 1,
85
+ s[d][v - 1] + 1,
86
+ s[d - 1][v - 1] + S
88
87
  );
89
88
  }
90
- return i[l][t];
89
+ return s[l][t];
91
90
  }
92
91
  function ke(u, r) {
93
92
  const l = Ue(u, r), t = Math.max(u.length, r.length);
@@ -99,29 +98,29 @@ function We(u, r, l = 0.75) {
99
98
  function re(u, r, l = 0.75) {
100
99
  const t = p(
101
100
  () => oe(typeof u == "string" ? u : u.value)
102
- ), i = p(
101
+ ), s = p(
103
102
  () => oe(typeof r == "string" ? r : r.value)
104
- ), d = p(() => typeof l == "number" ? l : l.value), y = p(() => ke(t.value, i.value));
103
+ ), d = p(() => typeof l == "number" ? l : l.value), v = p(() => ke(t.value, s.value));
105
104
  return {
106
105
  isMatching: p(
107
- () => We(t.value, i.value, d.value)
106
+ () => We(t.value, s.value, d.value)
108
107
  ),
109
- score: y
108
+ score: v
110
109
  };
111
110
  }
112
111
  function Ve(u, r, l) {
113
- var y;
112
+ var v, S;
114
113
  u.stopPropagation();
115
- const t = typeof l.value == "function" ? l.value : l.value.handler, i = typeof l.value == "object" ? l.value.exclude : void 0;
114
+ const t = typeof l.value == "function" ? l.value : l.value.handler, s = typeof l.value == "object" ? l.value.exclude : void 0;
116
115
  let d = !1;
117
- if (i && i.length > 0) {
118
- for (const $ of i)
116
+ if (s && s.length > 0) {
117
+ for (const D of s)
119
118
  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;
119
+ const z = (v = document.querySelector(D)) == null ? void 0 : v.getAttribute("id");
120
+ d = (u.target.getAttribute("id") === z || ((S = document.querySelector(D)) == null ? void 0 : S.contains(u.target))) ?? !1;
122
121
  }
123
122
  }
124
- !r.contains(u.target) && !d && (t == null || t());
123
+ !r.contains(u.target) && !d && (t == null || t(u));
125
124
  }
126
125
  function Ie() {
127
126
  return document.ontouchstart === null ? "touchstart" : "click";
@@ -142,7 +141,11 @@ const Re = {
142
141
  mounted: Qe,
143
142
  unmounted: je
144
143
  };
144
+ let de = null;
145
145
  function Ge(u, r) {
146
+ de && clearTimeout(de), de = setTimeout(u, r);
147
+ }
148
+ function Ze(u, r) {
146
149
  let l;
147
150
  return function(...t) {
148
151
  clearTimeout(l), l = setTimeout(() => {
@@ -150,20 +153,10 @@ function Ge(u, r) {
150
153
  }, r);
151
154
  };
152
155
  }
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
156
  const Je = ["for"], Xe = {
164
157
  key: 0,
165
158
  class: "m-input-wrapper-left"
166
- }, Ye = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], xe = { key: 0 }, _e = {
159
+ }, Ye = ["id", "name", "placeholder", "aria-label", "type", "inputmode", "disabled", "readonly", "autocomplete", "required"], xe = { key: 0 }, _e = {
167
160
  key: 1,
168
161
  class: "m-input-wrapper-right"
169
162
  }, et = /* @__PURE__ */ be({
@@ -202,19 +195,20 @@ const Je = ["for"], Xe = {
202
195
  leftIcon: { type: [String, Function, Object], default: void 0 },
203
196
  rightIcon: { type: [String, Function, Object], default: void 0 },
204
197
  roundedSize: { default: void 0 },
205
- block: { type: Boolean }
198
+ block: { type: Boolean },
199
+ autocomplete: {}
206
200
  },
207
201
  emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
208
202
  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({
203
+ const l = u, t = r, s = $(() => import("./MazBtn-DCyFSkZo.mjs")), d = $(() => import("./MazIcon-Cq1v4J3r.mjs")), v = $(() => import("./eye-slash-BoO00xzs.mjs")), S = $(() => import("./eye-f8zAUc30.mjs")), D = $(() => import("./check-C9Q_W85g.mjs")), z = V(!1), f = V(!1), N = V(), Z = ze({
210
204
  componentName: "MazInput",
211
205
  providedId: l.id
212
206
  });
213
207
  Te(() => {
214
208
  var o;
215
- l.autoFocus && ((o = D.value) == null || o.focus());
209
+ l.autoFocus && ((o = N.value) == null || o.focus());
216
210
  });
217
- const J = p(() => l.type === "password"), le = p(() => k.value ? "text" : l.type), I = p(() => {
211
+ const J = p(() => l.type === "password"), le = p(() => z.value ? "text" : l.type), I = p(() => {
218
212
  if (!l.noBorder) {
219
213
  if (l.error)
220
214
  return "maz-border-danger";
@@ -246,20 +240,20 @@ const Je = ["for"], Xe = {
246
240
  const { required: o, placeholder: g } = l;
247
241
  if (g)
248
242
  return o ? `${g} *` : g;
249
- }), Y = p(() => M.value !== void 0 && M.value !== ""), C = Ge(
243
+ }), Y = p(() => M.value !== void 0 && M.value !== ""), C = Ze(
250
244
  (o) => {
251
245
  t("update:model-value", o);
252
246
  },
253
247
  typeof l.debounce == "number" ? l.debounce : l.debounceDelay ?? 500
254
248
  );
255
- function N(o) {
249
+ function P(o) {
256
250
  if (l.debounce)
257
251
  return C(o);
258
252
  t("update:model-value", o);
259
253
  }
260
254
  const M = p({
261
255
  get: () => l.modelValue,
262
- set: (o) => N(o)
256
+ set: (o) => P(o)
263
257
  }), 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
258
  function _() {
265
259
  return !!W["right-icon"] || J.value || !!W["valid-button"] || l.validButton || !!l.rightIcon;
@@ -279,7 +273,7 @@ const Je = ["for"], Xe = {
279
273
  function T(o) {
280
274
  return t("input", o);
281
275
  }
282
- return (o, g) => (m(), z(
276
+ return (o, g) => (m(), k(
283
277
  "div",
284
278
  {
285
279
  class: B(["m-input", [
@@ -299,7 +293,7 @@ const Je = ["for"], Xe = {
299
293
  style: ee(o.style)
300
294
  },
301
295
  [
302
- o.topLabel ? (m(), z("label", {
296
+ o.topLabel ? (m(), k("label", {
303
297
  key: 0,
304
298
  for: h(Z),
305
299
  class: "m-input-top-label"
@@ -307,7 +301,7 @@ const Je = ["for"], Xe = {
307
301
  O(
308
302
  "div",
309
303
  {
310
- class: B(["m-input-wrapper", [
304
+ class: B(["m-input-wrapper m-reset-css", [
311
305
  o.inputClasses,
312
306
  I.value,
313
307
  o.roundedSize ? `--rounded-${o.roundedSize}` : { "maz-rounded": !o.noRadius },
@@ -315,13 +309,13 @@ const Je = ["for"], Xe = {
315
309
  ]])
316
310
  },
317
311
  [
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), {
312
+ L() ? (m(), k("div", Xe, [
313
+ o.$slots["left-icon"] || o.leftIcon ? U(o.$slots, "left-icon", { key: 0 }, () => [
314
+ typeof o.leftIcon == "string" ? (m(), A(h(d), {
321
315
  key: 0,
322
316
  name: o.leftIcon,
323
317
  class: "maz-text-xl maz-text-muted"
324
- }, null, 8, ["name"])) : o.leftIcon ? (m(), K(me(o.leftIcon), {
318
+ }, null, 8, ["name"])) : o.leftIcon ? (m(), A(me(o.leftIcon), {
325
319
  key: 1,
326
320
  class: "maz-text-xl maz-text-muted"
327
321
  })) : b("v-if", !0)
@@ -333,19 +327,18 @@ const Je = ["for"], Xe = {
333
327
  class: B(["m-input-wrapper-input", [`--${o.size}`, { "--top-label": !!o.topLabel }]])
334
328
  },
335
329
  [
336
- he(O("input", ge({
337
- id: h(Z),
330
+ he(O("input", ge({ id: h(Z) }, o.$attrs, {
338
331
  ref_key: "input",
339
- ref: D,
332
+ ref: N,
340
333
  "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,
334
+ name: o.name,
345
335
  placeholder: X.value,
346
336
  "aria-label": o.label || o.placeholder,
337
+ type: le.value,
338
+ inputmode: o.inputmode,
347
339
  disabled: o.disabled,
348
340
  readonly: o.readonly,
341
+ autocomplete: o.autocomplete,
349
342
  required: o.required,
350
343
  class: "m-input-input"
351
344
  }, Oe({
@@ -358,7 +351,7 @@ const Je = ["for"], Xe = {
358
351
  }), null, 16, Ye), [
359
352
  [De, M.value]
360
353
  ]),
361
- o.label || o.hint ? (m(), z(
354
+ o.label || o.hint ? (m(), k(
362
355
  "span",
363
356
  {
364
357
  key: 0,
@@ -376,7 +369,7 @@ const Je = ["for"], Xe = {
376
369
  1
377
370
  /* TEXT */
378
371
  ),
379
- o.required ? (m(), z("sup", xe, "*")) : b("v-if", !0)
372
+ o.required ? (m(), k("sup", xe, "*")) : b("v-if", !0)
380
373
  ],
381
374
  2
382
375
  /* CLASS */
@@ -385,29 +378,29 @@ const Je = ["for"], Xe = {
385
378
  2
386
379
  /* CLASS */
387
380
  ),
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), {
381
+ _() ? (m(), k("div", _e, [
382
+ o.$slots["right-icon"] || o.rightIcon ? U(o.$slots, "right-icon", { key: 0 }, () => [
383
+ typeof o.rightIcon == "string" ? (m(), A(h(d), {
391
384
  key: 0,
392
385
  name: o.rightIcon,
393
386
  class: "maz-text-xl maz-text-muted"
394
- }, null, 8, ["name"])) : o.rightIcon ? (m(), K(me(o.rightIcon), {
387
+ }, null, 8, ["name"])) : o.rightIcon ? (m(), A(me(o.rightIcon), {
395
388
  key: 1,
396
389
  class: "maz-text-xl maz-text-muted"
397
390
  })) : b("v-if", !0)
398
391
  ], !0) : b("v-if", !0),
399
- J.value ? (m(), K(h(i), {
392
+ J.value ? (m(), A(h(s), {
400
393
  key: 1,
401
394
  color: "transparent",
402
395
  tabindex: "-1",
403
396
  size: "mini",
404
- onClick: g[2] || (g[2] = F((E) => k.value = !k.value, ["stop"]))
397
+ onClick: g[2] || (g[2] = H((E) => z.value = !z.value, ["stop"]))
405
398
  }, {
406
399
  default: te(() => [
407
- k.value ? (m(), K(h(y), {
400
+ z.value ? (m(), A(h(v), {
408
401
  key: 0,
409
402
  class: "maz-text-xl maz-text-muted"
410
- })) : (m(), K(h($), {
403
+ })) : (m(), A(h(S), {
411
404
  key: 1,
412
405
  class: "maz-text-xl maz-text-muted"
413
406
  }))
@@ -415,8 +408,8 @@ const Je = ["for"], Xe = {
415
408
  _: 1
416
409
  /* STABLE */
417
410
  })) : b("v-if", !0),
418
- o.$slots["valid-button"] || o.validButton ? q(o.$slots, "valid-button", { key: 2 }, () => [
419
- H(h(i), {
411
+ o.$slots["valid-button"] || o.validButton ? U(o.$slots, "valid-button", { key: 2 }, () => [
412
+ q(h(s), {
420
413
  color: "transparent",
421
414
  disabled: o.disabled,
422
415
  tabindex: "-1",
@@ -426,7 +419,7 @@ const Je = ["for"], Xe = {
426
419
  type: "submit"
427
420
  }, {
428
421
  default: te(() => [
429
- H(h(U), { class: "maz-text-2xl maz-text-normal" })
422
+ q(h(D), { class: "maz-text-2xl maz-text-normal" })
430
423
  ]),
431
424
  _: 1
432
425
  /* STABLE */
@@ -437,7 +430,7 @@ const Je = ["for"], Xe = {
437
430
  2
438
431
  /* CLASS */
439
432
  ),
440
- o.assistiveText ? (m(), z(
433
+ o.assistiveText ? (m(), k(
441
434
  "div",
442
435
  {
443
436
  key: 1,
@@ -459,7 +452,12 @@ const Je = ["for"], Xe = {
459
452
  /* CLASS, STYLE */
460
453
  ));
461
454
  }
462
- }), ye = /* @__PURE__ */ we(et, [["__scopeId", "data-v-2cfe0ca2"]]), tt = ["aria-label"], ot = { class: "m-select-list__no-results" }, lt = {
455
+ }), we = (u, r) => {
456
+ const l = u.__vccOpts || u;
457
+ for (const [t, s] of r)
458
+ l[t] = s;
459
+ return l;
460
+ }, ye = /* @__PURE__ */ we(et, [["__scopeId", "data-v-04e832e5"]]), tt = ["aria-label"], ot = { class: "m-select-list__no-results" }, lt = {
463
461
  key: 2,
464
462
  class: "m-select-list__scroll-wrapper",
465
463
  tabindex: "-1"
@@ -496,22 +494,22 @@ const Je = ["for"], Xe = {
496
494
  },
497
495
  emits: ["close", "open", "blur", "focus", "change", "input", "update:model-value", "selected-option"],
498
496
  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"));
497
+ const t = u, s = l, d = $(() => import("./MazCheckbox-CEsAHbdi.mjs")), v = $(() => import("./magnifying-glass--nBiyXot.mjs")), S = $(() => import("./chevron-down-BkvtON3b.mjs")), D = $(() => import("./no-symbol-CIgKzsrB.mjs"));
500
498
  r({
501
499
  /** Method to open the option list */
502
500
  openList: R,
503
501
  /** Method to close the option list */
504
- closeList: P
502
+ closeList: F
505
503
  });
506
- const k = V(!1), f = V(), D = p(
504
+ const z = V(!1), f = V(), N = p(
507
505
  () => ["black", "transparent", "white"].includes(t.color)
508
506
  ), Z = p(
509
- () => D.value ? "var(--maz-color-black)" : `var(--maz-color-${t.color}-800)`
507
+ () => N.value ? "var(--maz-color-black)" : `var(--maz-color-${t.color}-800)`
510
508
  ), J = p(
511
- () => D.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-100)`
509
+ () => N.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-100)`
512
510
  ), le = p(
513
- () => D.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-200)`
514
- ), I = p(() => k.value || t.open), W = ze({
511
+ () => N.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-200)`
512
+ ), I = p(() => z.value || t.open), W = ze({
515
513
  componentName: "MazSelect",
516
514
  providedId: t.id
517
515
  });
@@ -531,22 +529,22 @@ const Je = ["for"], Xe = {
531
529
  };
532
530
  }
533
531
  const C = p(() => {
534
- var a;
532
+ var n;
535
533
  const e = [];
536
- if (!((a = t.options) != null && a.length))
534
+ if (!((n = t.options) != null && n.length))
537
535
  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)
536
+ for (const a of t.options)
537
+ typeof a == "string" || typeof a == "number" || typeof a == "boolean" ? e.push(X(a)) : typeof a == "object" && "options" in a && Array.isArray(a.options) ? e.push(
538
+ { label: a.label, isOptGroup: !0 },
539
+ ...a.options.map(
540
+ (i) => typeof i == "string" || typeof i == "number" || typeof i == "boolean" ? X(i) : Y(i)
543
541
  )
544
- ) : e.push(Y(s));
542
+ ) : e.push(Y(a));
545
543
  return e;
546
- }), N = p(
544
+ }), P = p(
547
545
  () => {
548
546
  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]))) ?? [];
547
+ return ((e = C.value) == null ? void 0 : e.filter((n) => t.multiple ? Array.isArray(t.modelValue) ? t.modelValue.includes(n[t.optionValueKey]) && !L(n[t.optionValueKey]) : !1 : t.modelValue === n[t.optionValueKey] && !L(n[t.optionValueKey]))) ?? [];
550
548
  }
551
549
  );
552
550
  Pe(() => {
@@ -558,108 +556,108 @@ const Je = ["for"], Xe = {
558
556
  return e == null;
559
557
  }
560
558
  function Q(e) {
561
- var s;
562
- return (((s = N.value) == null ? void 0 : s.some(
563
- (n) => n[t.optionValueKey] === e[t.optionValueKey]
559
+ var a;
560
+ return (((a = P.value) == null ? void 0 : a.some(
561
+ (i) => i[t.optionValueKey] === e[t.optionValueKey]
564
562
  )) ?? !1) && !L(e[t.optionValueKey]);
565
563
  }
566
564
  const ae = p(() => {
567
- var a;
565
+ var n;
568
566
  if (t.multiple && t.modelValue && Array.isArray(t.modelValue))
569
567
  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];
568
+ (a) => {
569
+ var i, c;
570
+ return (c = (i = C.value) == null ? void 0 : i.find((y) => y[t.optionValueKey] === a)) == null ? void 0 : c[t.optionInputValueKey];
573
571
  }
574
572
  ).join(", ");
575
- const e = (a = C.value) == null ? void 0 : a.find(
576
- (s) => s[t.optionValueKey] === t.modelValue
573
+ const e = (n = C.value) == null ? void 0 : n.find(
574
+ (a) => a[t.optionValueKey] === t.modelValue
577
575
  );
578
576
  return L(t.modelValue) || e == null ? void 0 : e[t.optionInputValueKey];
579
577
  }), ne = p(
580
578
  () => t.listPosition.includes("bottom") ? "maz-slide" : "maz-slideinvert"
581
579
  ), T = V(""), o = V("");
582
- function g(e, a) {
583
- return a && e && oe(e).includes(oe(a));
580
+ function g(e, n) {
581
+ return n && e && oe(e).includes(oe(n));
584
582
  }
585
583
  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;
584
+ var n;
585
+ return e ? (n = C.value) == null ? void 0 : n.filter((a) => {
586
+ const i = a[t.optionLabelKey], c = a[t.optionValueKey], y = a[t.optionInputValueKey], w = t.searchThreshold;
587
+ return g(i, e) || g(y, e) || g(c, e) || typeof i == "string" && re(i, e, w).isMatching.value || typeof y == "string" && re(y, e, w).isMatching.value || typeof c == "string" && re(c, e, w).isMatching.value;
590
588
  }) : C.value;
591
589
  }
592
- const S = p(() => E(T.value));
593
- async function P(e) {
594
- var s, n;
590
+ const K = p(() => E(T.value));
591
+ async function F(e) {
592
+ var a, i;
595
593
  if (!I.value)
596
594
  return;
597
- if (e && ("relatedTarget" in e && ((s = M.value) != null && s.contains(e.relatedTarget)) || e.type === "keydown"))
595
+ if (e && ("relatedTarget" in e && ((a = M.value) != null && a.contains(e.relatedTarget)) || e.type === "keydown"))
598
596
  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}`))
597
+ const n = e && "relatedTarget" in e && e.relatedTarget instanceof HTMLElement && e.relatedTarget.getAttribute("id");
598
+ if ((i = t.excludeSelectors) != null && i.includes(`#${n}`))
601
599
  return e == null ? void 0 : e.preventDefault();
602
- await ue(), k.value = !1, f.value = 0, i("close", e);
600
+ await ue(), z.value = !1, f.value = 0, s("close", e);
603
601
  }
604
602
  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));
603
+ t.disabled || I.value || (e == null || e.preventDefault(), z.value = !0, await se(), s("focus", e), s("open", z.value));
606
604
  }
607
605
  function ce() {
608
- var e, a;
609
- (a = ((e = j.value) == null ? void 0 : e.$el).querySelector("input")) == null || a.focus();
606
+ var e, n;
607
+ (n = ((e = j.value) == null ? void 0 : e.$el).querySelector("input")) == null || n.focus();
610
608
  }
611
609
  function Se() {
612
- var e, a;
613
- (a = ((e = j.value) == null ? void 0 : e.$el).querySelector("input")) == null || a.dispatchEvent(new Event("input"));
610
+ var e, n;
611
+ (n = ((e = j.value) == null ? void 0 : e.$el).querySelector("input")) == null || n.dispatchEvent(new Event("input"));
614
612
  }
615
613
  function Ke(e) {
616
- k.value ? P(e) : ce();
614
+ z.value ? F(e) : ce();
617
615
  }
618
616
  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();
617
+ var n, a;
618
+ T.value = e, (a = ((n = x.value) == null ? void 0 : n.$el).querySelector("input")) == null || a.focus();
621
619
  }
622
620
  function $e(e) {
623
- var s;
621
+ var a;
624
622
  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(() => {
623
+ const n = E(o.value);
624
+ n != null && n.length && (f.value = (a = K.value) == null ? void 0 : a.findIndex(
625
+ (i) => i[t.optionValueKey] === n[0][t.optionValueKey]
626
+ ), typeof f.value == "number" && f.value >= 0 && se(f.value)), Ge(() => {
629
627
  o.value = "";
630
628
  }, 1e3);
631
629
  }
632
630
  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);
631
+ const n = e.key;
632
+ /^[\dA-Za-z\u0400-\u04FF]$/.test(n) ? (e.preventDefault(), R(e), t.search ? Ae(n) : $e(n)) : pe(e);
635
633
  }
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);
634
+ function pe(e, n = !0) {
635
+ const a = e.code, i = ["ArrowUp", "ArrowDown"].includes(a), c = (n ? ["Enter", "Space"] : ["Enter"]).includes(a), y = a === "Escape" && I.value;
636
+ i ? Be(e, f.value) : c ? Ce(e, f.value) : y && F(e);
639
637
  }
640
- function Be(e, a) {
638
+ function Be(e, n) {
641
639
  var c;
642
640
  e.preventDefault();
643
- const s = e.code;
641
+ const a = e.code;
644
642
  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));
643
+ const i = (c = K.value) == null ? void 0 : c.length;
644
+ i && (typeof n == "number" ? n === i - 1 && a === "ArrowDown" ? f.value = 0 : n === 0 && a === "ArrowUp" ? f.value = i - 1 : f.value = a === "ArrowDown" ? n + 1 : n - 1 : f.value = a === "ArrowDown" ? 0 : i - 1, se(f.value));
647
645
  }
648
- function Ce(e, a) {
649
- var n, c, v;
646
+ function Ce(e, n) {
647
+ var i, c, y;
650
648
  if (!I.value)
651
649
  return;
652
650
  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);
651
+ const a = n ? ((i = K.value) == null ? void 0 : i[n]) ?? ((c = K.value) == null ? void 0 : c[0]) : (y = K.value) == null ? void 0 : y[0];
652
+ L(a) || fe(a);
655
653
  }
656
654
  async function se(e) {
657
- var s, n;
655
+ var a, i;
658
656
  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({
657
+ const n = e ?? f.value;
658
+ if (typeof n == "number" && n >= 0) {
659
+ const c = (a = _.value) == null ? void 0 : a.querySelectorAll(".m-select-list-item");
660
+ (i = c == null ? void 0 : c[n]) == null || i.scrollIntoView({
663
661
  behavior: "auto",
664
662
  block: "nearest",
665
663
  inline: "start"
@@ -667,203 +665,201 @@ const Je = ["for"], Xe = {
667
665
  }
668
666
  }
669
667
  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];
668
+ var a;
669
+ const n = (a = K.value) == null ? void 0 : a.findIndex((i) => {
670
+ var c, y;
671
+ return t.multiple && Array.isArray(t.modelValue) ? e ? e[t.optionValueKey] === i[t.optionValueKey] : [...t.modelValue].reverse()[0] === i[t.optionValueKey] : ((y = (c = P.value) == null ? void 0 : c[0]) == null ? void 0 : y[t.optionValueKey]) === i[t.optionValueKey];
674
672
  });
675
- f.value = a && a >= 0 ? a : 0;
673
+ f.value = n && n >= 0 ? n : 0;
676
674
  }
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(
675
+ function fe(e, n = !0) {
676
+ var y;
677
+ n && !t.multiple && ue(() => F()), T.value = "";
678
+ const a = (y = P.value) == null ? void 0 : y.some(
681
679
  (w) => w[t.optionValueKey] === e[t.optionValueKey]
682
680
  );
683
- let n = N.value;
684
- s && t.multiple ? n = n == null ? void 0 : n.filter(
681
+ let i = P.value;
682
+ a && t.multiple ? i = i == null ? void 0 : i.filter(
685
683
  (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();
684
+ ) : t.multiple ? i.push(e) : i = [e];
685
+ const c = i.map((w) => w[t.optionValueKey]);
686
+ s("update:model-value", t.multiple ? c : c[0]), s("selected-option", e), Se(), ie(e), ce();
689
687
  }
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
- {
688
+ return (e, n) => he((m(), k(
689
+ "div",
690
+ {
691
+ ref_key: "mazSelectElement",
692
+ ref: M,
693
+ class: B(["m-select m-reset-css", [
694
+ { "--is-open": I.value, "--disabled": e.disabled, "--block": e.block },
695
+ t.class,
696
+ `--${e.size}`
697
+ ]]),
698
+ style: ee([e.style, { "--keyboard-selected-bg-color": le.value, "--selected-bg-color": J.value, "--selected-text-color": Z.value }])
699
+ },
700
+ [
701
+ q(ye, ge({
702
+ id: h(W),
703
+ ref_key: "mazInputComponent",
704
+ ref: j,
705
+ class: "m-select-input"
706
+ }, e.$attrs, {
707
+ required: e.required,
708
+ "border-active": z.value,
709
+ color: e.color,
710
+ "model-value": ae.value,
711
+ size: e.size,
712
+ block: "",
713
+ autocomplete: e.autocomplete,
714
+ disabled: e.disabled,
715
+ onFocus: H(R, ["prevent", "stop"]),
716
+ onBlur: H(F, ["prevent", "stop"]),
717
+ onClick: H(R, ["prevent", "stop"]),
718
+ onChange: n[0] || (n[0] = (a) => s("change", a)),
719
+ onInput: n[1] || (n[1] = (a) => s("input", a)),
720
+ onKeydown: Le
721
+ }), {
722
+ "right-icon": te(() => [
723
+ O("button", {
724
+ tabindex: "-1",
725
+ type: "button",
726
+ class: "m-select-input__toggle-button maz-custom",
727
+ "aria-label": `${I.value ? "collapse" : "expand"} list of options`,
728
+ onClick: H(Ke, ["stop"])
729
+ }, [
730
+ q(h(S), { class: "m-select-chevron maz-text-xl" })
731
+ ], 8, tt)
732
+ ]),
733
+ _: 1
734
+ /* STABLE */
735
+ }, 16, ["id", "required", "border-active", "color", "model-value", "size", "autocomplete", "disabled"]),
736
+ q(Fe, { name: ne.value }, {
737
+ default: te(() => [
738
+ I.value ? (m(), k(
739
+ "div",
740
+ {
741
+ key: 0,
742
+ ref_key: "optionsListElement",
743
+ ref: _,
744
+ class: B(["m-select-list", {
745
+ "--top": e.listPosition.includes("top"),
746
+ "--left": e.listPosition.includes("left"),
747
+ "--right": e.listPosition.includes("right"),
748
+ "--bottom": e.listPosition.includes("bottom")
749
+ }]),
750
+ style: ee({
751
+ maxHeight: `${e.maxListHeight}px`,
752
+ maxWidth: `${e.maxListWidth}px`,
753
+ minHeight: `${e.minListHeight}px`,
754
+ minWidth: `${e.minListWidth}px`
755
+ })
756
+ },
757
+ [
758
+ e.search ? (m(), A(ye, {
745
759
  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(
760
+ ref_key: "searchInputComponent",
761
+ ref: x,
762
+ modelValue: T.value,
763
+ "onUpdate:modelValue": [
764
+ n[2] || (n[2] = (a) => T.value = a),
765
+ n[4] || (n[4] = (a) => f.value = 0)
766
+ ],
767
+ size: "sm",
768
+ color: e.color,
769
+ placeholder: e.searchPlaceholder,
770
+ name: "search",
771
+ inputmode: "search",
772
+ block: "",
773
+ autocomplete: "off",
774
+ tabindex: "-1",
775
+ class: "m-select-list__search-input maz-flex-none",
776
+ "left-icon": h(v),
777
+ onKeydown: n[3] || (n[3] = (a) => pe(a, !1))
778
+ }, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : b("v-if", !0),
779
+ !K.value || K.value.length <= 0 ? U(e.$slots, "no-results", { key: 1 }, () => [
780
+ O("span", ot, [
781
+ q(h(D), { class: "maz-h-6 maz-w-6 maz-text-normal" })
782
+ ])
783
+ ], !0) : (m(), k("div", lt, [
784
+ (m(!0), k(
785
+ ve,
786
+ null,
787
+ He(K.value, (a, i) => (m(), k(
788
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", {
789
+ { key: i },
790
+ [
791
+ a.label && a.isOptGroup ? U(e.$slots, "optgroup", {
792
+ key: 0,
793
+ label: a.label
794
+ }, () => [
795
+ O(
796
+ "span",
797
+ at,
798
+ G(a.label),
799
+ 1
800
+ /* TEXT */
801
+ )
802
+ ], !0) : (m(), k("button", {
803
+ key: 1,
804
+ tabindex: "-1",
805
+ type: "button",
806
+ class: B(["m-select-list-item maz-custom maz-flex-none", [
807
+ {
808
+ "--is-keyboard-selected": f.value === i,
809
+ "--is-selected": Q(a),
810
+ "--is-none-value": L(a[e.optionValueKey])
811
+ }
812
+ ]]),
813
+ style: ee(e.itemHeight ? { height: `${e.itemHeight}px` } : void 0),
814
+ onClick: H((c) => fe(a), ["prevent", "stop"])
815
+ }, [
816
+ e.multiple ? (m(), A(h(d), {
795
817
  key: 0,
796
- label: n.label
818
+ tabindex: "-1",
819
+ "model-value": Q(a),
820
+ size: "sm",
821
+ color: e.color
822
+ }, null, 8, ["model-value", "color"])) : b("v-if", !0),
823
+ U(e.$slots, "default", {
824
+ option: a,
825
+ isSelected: Q(a)
797
826
  }, () => [
798
827
  O(
799
828
  "span",
800
- at,
801
- G(n.label),
829
+ null,
830
+ G(a[e.optionLabelKey]),
802
831
  1
803
832
  /* TEXT */
804
833
  )
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
- };
834
+ ], !0)
835
+ ], 14, nt))
836
+ ],
837
+ 64
838
+ /* STABLE_FRAGMENT */
839
+ ))),
840
+ 128
841
+ /* KEYED_FRAGMENT */
842
+ ))
843
+ ]))
844
+ ],
845
+ 6
846
+ /* CLASS, STYLE */
847
+ )) : b("v-if", !0)
848
+ ]),
849
+ _: 3
850
+ /* FORWARDED */
851
+ }, 8, ["name"])
852
+ ],
853
+ 6
854
+ /* CLASS, STYLE */
855
+ )), [
856
+ [h(Re), {
857
+ exclude: e.excludeSelectors,
858
+ handler: F
859
+ }]
860
+ ]);
865
861
  }
866
- }), ut = /* @__PURE__ */ we(st, [["__scopeId", "data-v-961aec79"]]);
862
+ }), ut = /* @__PURE__ */ we(st, [["__scopeId", "data-v-0050f306"]]);
867
863
  export {
868
864
  ut as M,
869
865
  we as _,