maz-ui 4.0.0-beta.8 → 4.0.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 (384) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/{MazAnimatedCounter.DkZNPRLp.css → MazAnimatedCounter.LK7oyUrl.css} +1 -1
  3. package/dist/assets/MazAnimatedText.CHvAudRU.css +1 -0
  4. package/dist/assets/MazBackdrop.09bziTPM.css +1 -0
  5. package/dist/assets/{MazBadge.DN8tdE8_.css → MazBadge.ChI2DaTU.css} +1 -1
  6. package/dist/assets/MazBtn.BvC8ftmc.css +1 -0
  7. package/dist/assets/MazCard.Dv02b2P6.css +1 -0
  8. package/dist/assets/MazCardSpotlight.B7lFD7Pi.css +1 -0
  9. package/dist/assets/MazCarousel.BLHpZIu5.css +1 -0
  10. package/dist/assets/MazCheckbox.Di88TJ3e.css +1 -0
  11. package/dist/assets/MazChecklist.Bu8wERn6.css +1 -0
  12. package/dist/assets/MazDatePicker.G6V7jjin.css +1 -0
  13. package/dist/assets/{MazDialog.DEmRfAv7.css → MazDialog.TS06kRcu.css} +1 -1
  14. package/dist/assets/MazDropdown.D90GEKDB.css +1 -0
  15. package/dist/assets/MazDropzone._2HwHowu.css +1 -0
  16. package/dist/assets/MazGallery.BTNB3D6k.css +1 -0
  17. package/dist/assets/MazInput.BvuxfP9k.css +1 -0
  18. package/dist/assets/MazInputCode.BYi64Mof.css +1 -0
  19. package/dist/assets/MazInputPhoneNumber.Baeyskod.css +1 -0
  20. package/dist/assets/MazInputTags.is2jSJk-.css +1 -0
  21. package/dist/assets/MazLazyImg.DO7a4PDm.css +1 -0
  22. package/dist/assets/MazLink.CFscNMFr.css +1 -0
  23. package/dist/assets/{MazPagination.C6cUh-p4.css → MazPagination.BUhf2Qr7.css} +1 -1
  24. package/dist/assets/MazPickerCalendar.e-eF8E7m.css +1 -0
  25. package/dist/assets/MazPickerCalendarMonth.DpijYq-O.css +1 -0
  26. package/dist/assets/{MazPickerCalendarSwitcher.uni8vJJv.css → MazPickerCalendarSwitcher.ByAVjy00.css} +1 -1
  27. package/dist/assets/{MazPickerContainer.k3DGjyHC.css → MazPickerContainer.DmHuaFqE.css} +1 -1
  28. package/dist/assets/{MazPickerHeader.ZYCJY5bX.css → MazPickerHeader.D7JXgA3q.css} +1 -1
  29. package/dist/assets/MazPickerMonthSwitcher.BJGGy53r.css +1 -0
  30. package/dist/assets/{MazPickerYearSwitcher.Cn-nS-Vv.css → MazPickerYearSwitcher.DPD1_dfz.css} +1 -1
  31. package/dist/assets/MazPopover.DIE65uVT.css +1 -0
  32. package/dist/assets/MazPullToRefresh.C0HGlupm.css +1 -0
  33. package/dist/assets/MazRadio.B0B3P1QS.css +1 -0
  34. package/dist/assets/MazRadioButtons.CfiHq8H9.css +1 -0
  35. package/dist/assets/MazReadingProgressBar.dzfwQFNg.css +1 -0
  36. package/dist/assets/MazSelect.DIwjMD31.css +1 -0
  37. package/dist/assets/{MazSelectCountry.CdNTQPhr.css → MazSelectCountry.B0tlbfgr.css} +1 -1
  38. package/dist/assets/MazSlider.WcnBC9zc.css +1 -0
  39. package/dist/assets/MazSpinner.CsiFJ1DS.css +1 -0
  40. package/dist/assets/MazStepper.C9R7g43I.css +1 -0
  41. package/dist/assets/MazSwitch.LCcK91L7.css +1 -0
  42. package/dist/assets/MazTable.Cq7FEz09.css +1 -0
  43. package/dist/assets/MazTableRow.C0Ko4yDk.css +1 -0
  44. package/dist/assets/{MazTabsBar.gcS2Fc-B.css → MazTabsBar.BRr1XiYu.css} +1 -1
  45. package/dist/assets/{MazTabsContentItem.CHfy19ZF.css → MazTabsContentItem.C84SDmj0.css} +1 -1
  46. package/dist/assets/MazTextarea.C9sZpRDZ.css +1 -0
  47. package/dist/assets/{PhoneInput.DBLH22G1.css → PhoneInput.DkOXlrI9.css} +1 -1
  48. package/dist/assets/{fullscreen-img.Bkuz1GOX.css → fullscreen-img.Br983fLC.css} +1 -1
  49. package/dist/assets/{toast.CC2VQab8.css → toast.BDNNJSjj.css} +1 -1
  50. package/dist/chunks/{MazDatePicker.De3Ltb2F.js → MazDatePicker.B1B6gUrC.js} +49 -37
  51. package/dist/chunks/{MazDialogConfirm.vue_vue_type_script_setup_true_lang.-K3NpiFL.js → MazDialogConfirm.vue_vue_type_script_setup_true_lang.DuEcluOw.js} +23 -13
  52. package/dist/chunks/{MazDropdown.vue_vue_type_style_index_0_lang.BES3jpuw.js → MazDropdown.vue_vue_type_style_index_0_lang.DULnKQ2W.js} +16 -10
  53. package/dist/chunks/{MazInputNumber.vue_vue_type_style_index_0_lang.B6DYpHfi.js → MazInputNumber.vue_vue_type_style_index_0_lang.B0D4Zzds.js} +2 -2
  54. package/dist/chunks/{MazInputPhoneNumber.DBncAmC5.js → MazInputPhoneNumber.CDy6n_Qj.js} +25 -17
  55. package/dist/chunks/{MazInputPrice.vue_vue_type_script_setup_true_lang.BA6TDX-T.js → MazInputPrice.vue_vue_type_script_setup_true_lang.3pKYuG8H.js} +18 -18
  56. package/dist/chunks/{MazPickerCalendar.DKXNI8O4.js → MazPickerCalendar.BSBQciuG.js} +8 -8
  57. package/dist/chunks/{MazPickerCalendarMonth.DKBqgrNp.js → MazPickerCalendarMonth.CFJHTFp5.js} +14 -14
  58. package/dist/chunks/{MazPickerCalendarSwitcher.CzIZol3Z.js → MazPickerCalendarSwitcher.DC21FpTy.js} +10 -10
  59. package/dist/chunks/{MazPickerContainer.Mrh-Q52I.js → MazPickerContainer.CRPzAbRt.js} +4 -6
  60. package/dist/chunks/{MazPickerHeader.Bm9vIrtB.js → MazPickerHeader.D7Tbm-yH.js} +14 -14
  61. package/dist/chunks/{MazPickerMonthSwitcher.BSD2GtY6.js → MazPickerMonthSwitcher.DzHOKbe4.js} +10 -10
  62. package/dist/chunks/{MazPickerTime.D0hilq5b.js → MazPickerTime.EZK1foEx.js} +1 -1
  63. package/dist/chunks/{MazPickerYearSwitcher.BIUYJMvj.js → MazPickerYearSwitcher.BcT8GENl.js} +4 -4
  64. package/dist/chunks/{MazSwitch.vue_vue_type_style_index_0_lang.CU43Y1ky.js → MazSwitch.vue_vue_type_style_index_0_lang.Dz7-dIc9.js} +1 -1
  65. package/dist/chunks/{MazTable.vue_vue_type_script_setup_true_lang.BcTw9Tyh.js → MazTable.vue_vue_type_script_setup_true_lang.Ct1Gtp2Q.js} +5 -5
  66. package/dist/chunks/{MazTabsContent.vue_vue_type_script_setup_true_lang.arGqYTL5.js → MazTabsContent.vue_vue_type_script_setup_true_lang.hIwO-24k.js} +2 -2
  67. package/dist/chunks/{PhoneInput.iFkRoIFk.js → PhoneInput.DukRZp5u.js} +20 -27
  68. package/dist/chunks/capitalize.CVQ1jDrh.js +6 -0
  69. package/dist/chunks/checkAvailability.UFZSC8-1.js +16 -0
  70. package/dist/chunks/debounce.DhXdop6X.js +11 -0
  71. package/dist/chunks/{dom-events.Bbe7wDQl.js → dom-events.H9KIOv83.js} +52 -52
  72. package/dist/chunks/{fullscreen-img.directive.Be383en8.js → fullscreen-img.directive.D9oQ3Gni.js} +4 -4
  73. package/dist/chunks/{isClient.WI4oSt66.js → isClient.8V3qjGdO.js} +2 -2
  74. package/dist/chunks/{mazUi.D6UdqpTO.js → mazUi.0b7z2u9g.js} +2 -2
  75. package/dist/chunks/{obsidian.Cy0R8RHy.js → obsidian.C6upWOVF.js} +2 -2
  76. package/dist/chunks/{ocean.pHrY5H_S.js → ocean.ehMlC0HV.js} +2 -2
  77. package/dist/chunks/pascalCase.BKTE3qqE.js +19 -0
  78. package/dist/chunks/{pristine.ylgbwjxO.js → pristine.DMG3eBuN.js} +6 -6
  79. package/dist/chunks/sleep.Ci7GE4BQ.js +6 -0
  80. package/dist/chunks/truthyFilter.DZvXmxeK.js +6 -0
  81. package/dist/chunks/types.D0Bp_UhS.js +6 -0
  82. package/dist/chunks/{useStringMatching.D5UvsCUS.js → useStringMatching.DzSigyZ7.js} +40 -14
  83. package/dist/chunks/{vClickOutside.DIOiluy0.js → vClickOutside.CJBKY5no.js} +6 -6
  84. package/dist/components/MazAccordion.vue.d.ts +36 -0
  85. package/dist/components/MazAnimatedCounter.js +5 -5
  86. package/dist/components/MazAnimatedCounter.vue.d.ts +59 -0
  87. package/dist/components/MazAnimatedElement.vue.d.ts +44 -0
  88. package/dist/components/MazAnimatedText.js +4 -4
  89. package/dist/components/MazAnimatedText.vue.d.ts +57 -0
  90. package/dist/components/MazAvatar.vue.d.ts +99 -0
  91. package/dist/components/MazBackdrop.js +70 -31
  92. package/dist/components/MazBackdrop.vue.d.ts +91 -0
  93. package/dist/components/MazBadge.js +5 -4
  94. package/dist/components/MazBadge.vue.d.ts +61 -0
  95. package/dist/components/MazBottomSheet.vue.d.ts +35 -0
  96. package/dist/components/MazBtn.js +6 -5
  97. package/dist/components/MazBtn.vue.d.ts +105 -0
  98. package/dist/components/MazCard.js +3 -3
  99. package/dist/components/MazCard.vue.d.ts +77 -0
  100. package/dist/components/MazCardSpotlight.js +2 -2
  101. package/dist/components/MazCardSpotlight.vue.d.ts +57 -0
  102. package/dist/components/MazCarousel.js +12 -9
  103. package/dist/components/MazCarousel.vue.d.ts +48 -0
  104. package/dist/components/MazChart.vue.d.ts +53 -0
  105. package/dist/components/MazCheckbox.js +2 -2
  106. package/dist/components/MazCheckbox.vue.d.ts +55 -0
  107. package/dist/components/MazChecklist.js +7 -7
  108. package/dist/components/MazChecklist.vue.d.ts +87 -0
  109. package/dist/components/MazCircularProgressBar.vue.d.ts +106 -0
  110. package/dist/components/MazDatePicker/MazPickerCalendar.vue.d.ts +27 -0
  111. package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +20 -0
  112. package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +125 -0
  113. package/dist/components/MazDatePicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +134 -0
  114. package/dist/components/MazDatePicker/MazPickerCalendarSwitcher.vue.d.ts +42 -0
  115. package/dist/components/MazDatePicker/MazPickerContainer.vue.d.ts +38 -0
  116. package/dist/components/MazDatePicker/MazPickerHeader.vue.d.ts +15 -0
  117. package/dist/components/MazDatePicker/MazPickerMonthSwitcher.vue.d.ts +44 -0
  118. package/dist/components/MazDatePicker/MazPickerShortcuts.vue.d.ts +16 -0
  119. package/dist/components/MazDatePicker/MazPickerTime.vue.d.ts +107 -0
  120. package/dist/components/MazDatePicker/MazPickerYearSwitcher.vue.d.ts +36 -0
  121. package/dist/components/MazDatePicker/types.d.ts +14 -0
  122. package/dist/components/MazDatePicker/utils.d.ts +61 -0
  123. package/dist/components/MazDatePicker.js +1 -1
  124. package/dist/components/MazDatePicker.vue.d.ts +547 -0
  125. package/dist/components/MazDialog.js +9 -16
  126. package/dist/components/MazDialog.vue.d.ts +247 -0
  127. package/dist/components/MazDialogConfirm/useMazDialogConfirm.d.ts +47 -0
  128. package/dist/components/MazDialogConfirm.js +2 -2
  129. package/dist/components/MazDialogConfirm.vue.d.ts +270 -0
  130. package/dist/components/MazDrawer.vue.d.ts +52 -0
  131. package/dist/components/MazDropdown.js +1 -1
  132. package/dist/components/MazDropdown.vue.d.ts +249 -0
  133. package/dist/components/MazDropzone.js +6 -6
  134. package/dist/components/MazDropzone.vue.d.ts +305 -0
  135. package/dist/components/MazExpandAnimation.vue.d.ts +44 -0
  136. package/dist/components/MazFullscreenLoader.vue.d.ts +26 -0
  137. package/dist/components/MazGallery.js +4 -4
  138. package/dist/components/MazGallery.vue.d.ts +85 -0
  139. package/dist/components/MazIcon.vue.d.ts +26 -0
  140. package/dist/components/MazInput.js +4 -4
  141. package/dist/components/MazInput.vue.d.ts +225 -0
  142. package/dist/components/MazInputCode.js +2 -2
  143. package/dist/components/MazInputCode.vue.d.ts +49 -0
  144. package/dist/components/MazInputNumber.js +1 -1
  145. package/dist/components/MazInputNumber.vue.d.ts +125 -0
  146. package/dist/components/MazInputPhoneNumber/PhoneInput.vue.d.ts +29 -0
  147. package/dist/components/MazInputPhoneNumber/useLibphonenumber.d.ts +26 -0
  148. package/dist/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +26 -0
  149. package/dist/components/MazInputPhoneNumber.js +1 -1
  150. package/dist/components/MazInputPhoneNumber.vue.d.ts +421 -0
  151. package/dist/components/MazInputPrice.js +1 -1
  152. package/dist/components/MazInputPrice.vue.d.ts +48 -0
  153. package/dist/components/MazInputTags.js +6 -6
  154. package/dist/components/MazInputTags.vue.d.ts +51 -0
  155. package/dist/components/MazLazyImg.js +2 -2
  156. package/dist/components/MazLazyImg.vue.d.ts +78 -0
  157. package/dist/components/MazLink.js +2 -2
  158. package/dist/components/MazLink.vue.d.ts +115 -0
  159. package/dist/components/MazLoadingBar.vue.d.ts +12 -0
  160. package/dist/components/MazPagination.js +3 -3
  161. package/dist/components/MazPagination.vue.d.ts +83 -0
  162. package/dist/components/MazPopover.js +98 -222
  163. package/dist/components/MazPopover.vue.d.ts +256 -0
  164. package/dist/components/MazPullToRefresh.js +7 -7
  165. package/dist/components/MazPullToRefresh.vue.d.ts +52 -0
  166. package/dist/components/MazRadio.js +2 -2
  167. package/dist/components/MazRadio.vue.d.ts +55 -0
  168. package/dist/components/MazRadioButtons.js +8 -7
  169. package/dist/components/MazRadioButtons.vue.d.ts +69 -0
  170. package/dist/components/MazReadingProgressBar.js +8 -8
  171. package/dist/components/MazReadingProgressBar.vue.d.ts +55 -0
  172. package/dist/components/MazSelect.js +17 -14
  173. package/dist/components/MazSelect.vue.d.ts +178 -0
  174. package/dist/components/MazSelectCountry.js +19 -18
  175. package/dist/components/MazSelectCountry.vue.d.ts +171 -0
  176. package/dist/components/MazSlider/utils.d.ts +15 -0
  177. package/dist/components/MazSlider.js +36 -36
  178. package/dist/components/MazSlider.vue.d.ts +31 -0
  179. package/dist/components/MazSpinner.js +3 -4
  180. package/dist/components/MazSpinner.vue.d.ts +15 -0
  181. package/dist/components/MazStepper.js +2 -2
  182. package/dist/components/MazStepper.vue.d.ts +60 -0
  183. package/dist/components/MazSwitch.js +1 -1
  184. package/dist/components/MazSwitch.vue.d.ts +69 -0
  185. package/dist/components/MazTable.js +3 -3
  186. package/dist/components/MazTable.vue.d.ts +324 -0
  187. package/dist/components/MazTableCell.js +1 -1
  188. package/dist/components/MazTableCell.vue.d.ts +17 -0
  189. package/dist/components/MazTableRow.js +6 -5
  190. package/dist/components/MazTableRow.vue.d.ts +23 -0
  191. package/dist/components/MazTableTitle.js +1 -1
  192. package/dist/components/MazTableTitle.vue.d.ts +17 -0
  193. package/dist/components/MazTabs.vue.d.ts +30 -0
  194. package/dist/components/MazTabsBar.js +4 -4
  195. package/dist/components/MazTabsBar.vue.d.ts +96 -0
  196. package/dist/components/MazTabsContent.js +1 -1
  197. package/dist/components/MazTabsContent.vue.d.ts +17 -0
  198. package/dist/components/MazTabsContentItem.js +6 -7
  199. package/dist/components/MazTabsContentItem.vue.d.ts +31 -0
  200. package/dist/components/MazTextarea.js +6 -6
  201. package/dist/components/MazTextarea.vue.d.ts +88 -0
  202. package/dist/components/constantes.d.ts +2 -0
  203. package/dist/components/index.d.ts +109 -0
  204. package/dist/components/index.js +8 -8
  205. package/dist/components/types.d.ts +4 -0
  206. package/dist/composables/index.d.ts +21 -0
  207. package/dist/composables/index.js +3 -1
  208. package/dist/composables/useAos.d.ts +2 -0
  209. package/dist/composables/useBreakpoints.d.ts +38 -0
  210. package/dist/composables/useDialog.d.ts +2 -0
  211. package/dist/composables/useDisplayNames.d.ts +101 -0
  212. package/dist/composables/useDisplayNames.js +20 -28
  213. package/dist/composables/useDropzone.d.ts +27 -0
  214. package/dist/composables/useDropzone.js +6 -6
  215. package/dist/composables/useFormField.d.ts +16 -0
  216. package/dist/composables/useFormField.js +3 -3
  217. package/dist/composables/useFormValidator/config.d.ts +7 -0
  218. package/dist/composables/useFormValidator/dom-events.d.ts +19 -0
  219. package/dist/composables/useFormValidator/state-management.d.ts +72 -0
  220. package/dist/composables/useFormValidator/types.d.ts +98 -0
  221. package/dist/composables/useFormValidator/validation.d.ts +37 -0
  222. package/dist/composables/useFormValidator.d.ts +23 -0
  223. package/dist/composables/useFormValidator.js +19 -3
  224. package/dist/composables/useFreezeValue.d.ts +5 -0
  225. package/dist/composables/useIdleTimeout.d.ts +5 -0
  226. package/dist/composables/useIdleTimeout.js +27 -27
  227. package/dist/composables/useInjectStrict.d.ts +2 -0
  228. package/dist/composables/useInstanceUniqId.d.ts +4 -0
  229. package/dist/composables/useInstanceUniqId.js +3 -2
  230. package/dist/composables/useMountComponent.d.ts +14 -0
  231. package/dist/composables/useReadingTime.d.ts +25 -0
  232. package/dist/composables/useStringMatching.d.ts +5 -0
  233. package/dist/composables/useStringMatching.js +1 -1
  234. package/dist/composables/useSwipe.d.ts +14 -0
  235. package/dist/composables/useSwipe.js +22 -22
  236. package/dist/composables/useTimer.d.ts +30 -0
  237. package/dist/composables/useToast.d.ts +22 -0
  238. package/dist/composables/useUserVisibility.d.ts +5 -0
  239. package/dist/composables/useUserVisibility.js +8 -8
  240. package/dist/composables/useWait.d.ts +2 -0
  241. package/dist/composables/useWindowSize.d.ts +32 -0
  242. package/dist/composables/useWindowSize.js +2 -2
  243. package/dist/css/main.css +1 -1
  244. package/dist/directives/index.d.ts +5 -0
  245. package/dist/directives/index.js +2 -2
  246. package/dist/directives/vClickOutside.d.ts +36 -0
  247. package/dist/directives/vClickOutside.js +1 -1
  248. package/dist/directives/vFullscreenImg/MazFullscreenImg.vue.d.ts +50 -0
  249. package/dist/directives/vFullscreenImg/fullscreen-img.directive.d.ts +5 -0
  250. package/dist/directives/vFullscreenImg/fullscreen-img.handler.d.ts +36 -0
  251. package/dist/directives/vFullscreenImg.d.ts +11 -0
  252. package/dist/directives/vFullscreenImg.js +1 -1
  253. package/dist/directives/vLazyImg/lazy-img.directive.d.ts +5 -0
  254. package/dist/directives/vLazyImg/lazy-img.handler.d.ts +38 -0
  255. package/dist/directives/vLazyImg/types.d.ts +29 -0
  256. package/dist/directives/vLazyImg.d.ts +12 -0
  257. package/dist/directives/vTooltip.d.ts +54 -0
  258. package/dist/directives/vTooltip.js +15 -23
  259. package/dist/directives/vZoomImg/style.d.ts +1 -0
  260. package/dist/directives/vZoomImg/svgs.d.ts +3 -0
  261. package/dist/directives/vZoomImg/zoom-img.directive.d.ts +8 -0
  262. package/dist/directives/vZoomImg/zoom-img.handler.d.ts +46 -0
  263. package/dist/directives/vZoomImg.d.ts +10 -0
  264. package/dist/index.d.ts +1 -0
  265. package/dist/plugins/aos.d.ts +81 -0
  266. package/dist/plugins/aos.js +5 -5
  267. package/dist/plugins/dialog/DialogHandler.d.ts +16 -0
  268. package/dist/plugins/dialog.d.ts +26 -0
  269. package/dist/plugins/dialog.js +1 -1
  270. package/dist/plugins/index.d.ts +5 -0
  271. package/dist/plugins/maz-ui.d.ts +43 -0
  272. package/dist/plugins/maz-ui.js +245 -371
  273. package/dist/plugins/toast/MazToast.vue.d.ts +34 -0
  274. package/dist/plugins/toast/ToastHandler.d.ts +29 -0
  275. package/dist/plugins/toast/types.d.ts +104 -0
  276. package/dist/plugins/toast.d.ts +25 -0
  277. package/dist/plugins/toast.js +8 -6
  278. package/dist/plugins/wait.d.ts +33 -0
  279. package/dist/resolvers/MazComponentsResolver.d.ts +10 -0
  280. package/dist/resolvers/MazComponentsResolver.js +516 -10
  281. package/dist/resolvers/MazDirectivesResolver.d.ts +11 -0
  282. package/dist/resolvers/MazDirectivesResolver.js +2 -2
  283. package/dist/resolvers/MazModulesResolver.d.ts +11 -0
  284. package/dist/resolvers/MazModulesResolver.js +8 -5
  285. package/dist/resolvers/index.d.ts +3 -0
  286. package/dist/tailwindcss/index.d.ts +6 -0
  287. package/dist/tailwindcss/tailwind.config.d.ts +89 -0
  288. package/dist/tailwindcss/utils/colors.d.ts +7 -0
  289. package/dist/tailwindcss/variables/breakpoints.d.ts +15 -0
  290. package/dist/tailwindcss/variables/colors.d.ts +20 -0
  291. package/dist/tailwindcss/variables/design-tokens.d.ts +35 -0
  292. package/dist/tailwindcss/variables/utilities.d.ts +17 -0
  293. package/dist/tailwindcss/variables/z-indexes.d.ts +14 -0
  294. package/dist/types/components/MazAnimatedCounter.vue.d.ts +1 -1
  295. package/dist/types/components/MazBackdrop.vue.d.ts +26 -6
  296. package/dist/types/components/MazCard.vue.d.ts +1 -1
  297. package/dist/types/components/MazCarousel.vue.d.ts +8 -5
  298. package/dist/types/components/MazChecklist.vue.d.ts +5 -5
  299. package/dist/types/components/MazDatePicker/utils.d.ts +7 -6
  300. package/dist/types/components/MazDatePicker.vue.d.ts +37 -33
  301. package/dist/types/components/MazDialog.vue.d.ts +10 -19
  302. package/dist/types/components/MazDialogConfirm/useMazDialogConfirm.d.ts +8 -6
  303. package/dist/types/components/MazDialogConfirm.vue.d.ts +18 -12
  304. package/dist/types/components/MazDropdown.vue.d.ts +10 -3
  305. package/dist/types/components/MazInputNumber.vue.d.ts +4 -4
  306. package/dist/types/components/MazInputPhoneNumber/PhoneInput.vue.d.ts +1 -1
  307. package/dist/types/components/MazInputPhoneNumber/useLibphonenumber.d.ts +1 -1
  308. package/dist/types/components/MazInputPhoneNumber/useMazInputPhoneNumber.d.ts +2 -0
  309. package/dist/types/components/MazInputPhoneNumber.vue.d.ts +11 -12
  310. package/dist/types/components/MazInputPrice.vue.d.ts +3 -3
  311. package/dist/types/components/MazInputTags.vue.d.ts +1 -1
  312. package/dist/types/components/MazLink.vue.d.ts +1 -1
  313. package/dist/types/components/MazPopover.vue.d.ts +13 -8
  314. package/dist/types/components/MazRadioButtons.vue.d.ts +9 -9
  315. package/dist/types/components/MazReadingProgressBar.vue.d.ts +1 -1
  316. package/dist/types/components/MazSelect.vue.d.ts +13 -6
  317. package/dist/types/components/MazSelectCountry.vue.d.ts +9 -9
  318. package/dist/types/components/MazTable.vue.d.ts +5 -5
  319. package/dist/types/components/MazTableRow.vue.d.ts +2 -0
  320. package/dist/types/components/types.d.ts +1 -0
  321. package/dist/types/composables/index.d.ts +1 -0
  322. package/dist/types/composables/useDisplayNames.d.ts +60 -6
  323. package/dist/types/composables/useFormField.d.ts +16 -18
  324. package/dist/types/composables/useFormValidator/config.d.ts +2 -2
  325. package/dist/types/composables/useFormValidator/dom-events.d.ts +4 -4
  326. package/dist/types/composables/useFormValidator/state-management.d.ts +40 -22
  327. package/dist/types/composables/useFormValidator/types.d.ts +15 -15
  328. package/dist/types/composables/useFormValidator/validation.d.ts +10 -16
  329. package/dist/types/composables/useFormValidator.d.ts +2 -2
  330. package/dist/types/composables/useIdleTimeout.d.ts +1 -1
  331. package/dist/types/composables/useSwipe.d.ts +1 -1
  332. package/dist/types/composables/useUserVisibility.d.ts +1 -1
  333. package/dist/types/directives/vFullscreenImg/MazFullscreenImg.vue.d.ts +2 -2
  334. package/dist/types/directives/vZoomImg.d.ts +1 -1
  335. package/dist/types/plugins/maz-ui.d.ts +5 -5
  336. package/package.json +46 -36
  337. package/dist/assets/MazAnimatedText.DDqCxrFX.css +0 -1
  338. package/dist/assets/MazBackdrop.BnhcmjbP.css +0 -1
  339. package/dist/assets/MazBtn.DUBbj2mt.css +0 -1
  340. package/dist/assets/MazCard.C6nDaeIC.css +0 -1
  341. package/dist/assets/MazCardSpotlight.IbPp_y0j.css +0 -1
  342. package/dist/assets/MazCarousel.BaqN4hLP.css +0 -1
  343. package/dist/assets/MazCheckbox.CFqw9ybT.css +0 -1
  344. package/dist/assets/MazChecklist.BzF5KtZ3.css +0 -1
  345. package/dist/assets/MazDatePicker.8GyrtM-j.css +0 -1
  346. package/dist/assets/MazDropdown.C6vjLIeN.css +0 -1
  347. package/dist/assets/MazDropzone.-8lzCrxJ.css +0 -1
  348. package/dist/assets/MazGallery.DZ3TyggM.css +0 -1
  349. package/dist/assets/MazInput.BcUsJg7p.css +0 -1
  350. package/dist/assets/MazInputCode.CG6EJBEk.css +0 -1
  351. package/dist/assets/MazInputPhoneNumber.CrXS7DOY.css +0 -1
  352. package/dist/assets/MazInputTags.DzTGy9z3.css +0 -1
  353. package/dist/assets/MazLazyImg.NlPRN3Nk.css +0 -1
  354. package/dist/assets/MazLink.wJoKRsCP.css +0 -1
  355. package/dist/assets/MazPickerCalendar.CHpWIzhL.css +0 -1
  356. package/dist/assets/MazPickerCalendarMonth.Boe_8k4x.css +0 -1
  357. package/dist/assets/MazPickerMonthSwitcher.CszcpCcY.css +0 -1
  358. package/dist/assets/MazPopover.DzCAfuWw.css +0 -1
  359. package/dist/assets/MazPullToRefresh.BQ64UvzA.css +0 -1
  360. package/dist/assets/MazRadio.XGYnbTuB.css +0 -1
  361. package/dist/assets/MazRadioButtons.BA4rjgK9.css +0 -1
  362. package/dist/assets/MazReadingProgressBar.CwBVXE3g.css +0 -1
  363. package/dist/assets/MazSelect.Cljh3PVV.css +0 -1
  364. package/dist/assets/MazSlider.y4qpnD0N.css +0 -1
  365. package/dist/assets/MazSpinner.CP85N7RJ.css +0 -1
  366. package/dist/assets/MazStepper.DtWZmm-f.css +0 -1
  367. package/dist/assets/MazSwitch.Bxmh2iFj.css +0 -1
  368. package/dist/assets/MazTable.DMlQdImb.css +0 -1
  369. package/dist/assets/MazTableRow.B78Bd4Kv.css +0 -1
  370. package/dist/assets/MazTextarea.DME7BHS5.css +0 -1
  371. package/dist/chunks/capitalize.BF6CDS_4.js +0 -6
  372. package/dist/chunks/checkAvailability.aTpZidex.js +0 -16
  373. package/dist/chunks/de.B15Maq8Z.js +0 -82
  374. package/dist/chunks/debounce.Brzkn9pm.js +0 -11
  375. package/dist/chunks/en.Q_4-KljL.js +0 -157
  376. package/dist/chunks/es.BV1TlfTw.js +0 -82
  377. package/dist/chunks/fr.BVPG-7Dk.js +0 -82
  378. package/dist/chunks/it.Be9xhI4P.js +0 -82
  379. package/dist/chunks/ja.CWU7KYEA.js +0 -82
  380. package/dist/chunks/pt.CfaFSxVt.js +0 -82
  381. package/dist/chunks/sleep.BLRH1qZG.js +0 -6
  382. package/dist/chunks/truthyFilter.C2WOKUCG.js +0 -6
  383. package/dist/chunks/useTranslations.D5aoYwD7.js +0 -10
  384. package/dist/chunks/zh-CN.CCkuvk-E.js +0 -82
@@ -1,10 +1,10 @@
1
- import { defineComponent, mergeModels, useModel, ref, computed, onMounted, watch, useTemplateRef, createBlock, openBlock, mergeProps, unref } from "vue";
2
- import { u as useTranslations } from "./useTranslations.D5aoYwD7.js";
1
+ import { defineComponent, mergeModels, useModel, ref, computed, onMounted, useTemplateRef, createBlock, openBlock, mergeProps, unref } from "vue";
2
+ import { useTranslations } from "@maz-ui/translations";
3
3
  import { useInjectStrict } from "../composables/useInjectStrict.js";
4
4
  import MazInput from "../components/MazInput.js";
5
- import { u as useLibphonenumber } from "./MazInputPhoneNumber.DBncAmC5.js";
5
+ import { u as useLibphonenumber, a as useMazInputPhoneNumber } from "./MazInputPhoneNumber.CDy6n_Qj.js";
6
6
  import { _ as _export_sfc } from "./_plugin-vue_export-helper.B--vMWp3.js";
7
- import '../assets/PhoneInput.DBLH22G1.css';const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ import '../assets/PhoneInput.DkOXlrI9.css';const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  __name: "PhoneInput",
9
9
  props: /* @__PURE__ */ mergeModels({
10
10
  style: {},
@@ -40,26 +40,22 @@ import '../assets/PhoneInput.DBLH22G1.css';const _sfc_main = /* @__PURE__ */ def
40
40
  locales: {},
41
41
  example: { type: Boolean },
42
42
  hasRadius: { type: Boolean },
43
- autoFormat: { type: Boolean }
43
+ autoFormat: { type: [String, Boolean] }
44
44
  }, {
45
45
  modelValue: {},
46
46
  modelModifiers: {}
47
47
  }),
48
48
  emits: ["update:modelValue"],
49
49
  setup(__props, { expose: __expose }) {
50
- const { getPhoneNumberExample, getAsYouTypeFormat, loadExamples } = useLibphonenumber(), { results, selectedCountry } = useInjectStrict("mazInputPhoneNumberData"), modelValue = useModel(__props, "modelValue");
51
- function extractRawDigits(input) {
52
- return input ? input.replace(/\D/g, "") : "";
53
- }
54
- const rawValue = ref(extractRawDigits(modelValue.value)), inputFocused = ref(!1), asYouTypeFormatted = computed(() => {
55
- const phoneNumberToFormat = rawValue.value;
56
- return getAsYouTypeFormat(selectedCountry.value, rawValue.value) || phoneNumberToFormat;
57
- }), displayedPhoneNumber = computed(() => __props.autoFormat ? asYouTypeFormatted.value : rawValue.value);
58
- function handleInput(value) {
59
- const rawDigits = extractRawDigits(value);
60
- rawValue.value = rawDigits, modelValue.value = rawDigits;
61
- }
62
- const { t } = useTranslations();
50
+ const { getPhoneNumberExample, getAsYouTypeFormat, loadExamples } = useLibphonenumber(), { sanitizePhoneNumber } = useMazInputPhoneNumber(), { results, selectedCountry } = useInjectStrict("mazInputPhoneNumberData"), modelValue = useModel(__props, "modelValue"), inputFocused = ref(!1), asYouTypeFormatted = computed(() => {
51
+ const phoneNumberToFormat = results.value.isValid ? results.value.formatNational : modelValue.value;
52
+ return getAsYouTypeFormat(selectedCountry.value, phoneNumberToFormat) || phoneNumberToFormat;
53
+ }), displayedPhoneNumber = computed({
54
+ get: () => !inputFocused.value && __props.autoFormat === "blur" || __props.autoFormat === "typing" ? asYouTypeFormatted.value : modelValue.value,
55
+ set: (value) => {
56
+ modelValue.value = sanitizePhoneNumber(value);
57
+ }
58
+ }), { t } = useTranslations();
63
59
  function getCountryPhoneNumberExample(selectedCountry2) {
64
60
  const example = getPhoneNumberExample(selectedCountry2);
65
61
  if (example)
@@ -78,9 +74,6 @@ import '../assets/PhoneInput.DBLH22G1.css';const _sfc_main = /* @__PURE__ */ def
78
74
  }), inputProps = computed(() => __props.placeholder ? { placeholder: inputLabelOrPlaceholder.value } : { label: inputLabelOrPlaceholder.value });
79
75
  onMounted(() => {
80
76
  __props.example && loadExamples();
81
- }), watch(() => modelValue.value, (newValue) => {
82
- const newRawValue = extractRawDigits(newValue);
83
- newRawValue !== rawValue.value && (rawValue.value = newRawValue);
84
77
  });
85
78
  const inputRef = useTemplateRef("input");
86
79
  return __expose({
@@ -93,7 +86,8 @@ import '../assets/PhoneInput.DBLH22G1.css';const _sfc_main = /* @__PURE__ */ def
93
86
  }
94
87
  }), (_ctx, _cache) => (openBlock(), createBlock(MazInput, mergeProps({ id: _ctx.id }, { ..._ctx.$attrs, ...inputProps.value }, {
95
88
  ref: "input",
96
- "model-value": displayedPhoneNumber.value,
89
+ modelValue: displayedPhoneNumber.value,
90
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => displayedPhoneNumber.value = $event),
97
91
  disabled: _ctx.disabled,
98
92
  color: _ctx.color,
99
93
  error: _ctx.error,
@@ -110,12 +104,11 @@ import '../assets/PhoneInput.DBLH22G1.css';const _sfc_main = /* @__PURE__ */ def
110
104
  "--focused": inputFocused.value
111
105
  }
112
106
  ]],
113
- "onUpdate:modelValue": handleInput,
114
- onFocus: _cache[0] || (_cache[0] = ($event) => inputFocused.value = !0),
115
- onBlur: _cache[1] || (_cache[1] = ($event) => inputFocused.value = !1)
116
- }), null, 16, ["id", "model-value", "disabled", "color", "error", "size", "success", "name", "inputmode", "autocomplete", "class"]));
107
+ onFocus: _cache[1] || (_cache[1] = ($event) => inputFocused.value = !0),
108
+ onBlur: _cache[2] || (_cache[2] = ($event) => inputFocused.value = !1)
109
+ }), null, 16, ["id", "modelValue", "disabled", "color", "error", "size", "success", "name", "inputmode", "autocomplete", "class"]));
117
110
  }
118
- }), PhoneInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b22da65e"]]);
111
+ }), PhoneInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3777a81d"]]);
119
112
  export {
120
113
  PhoneInput as default
121
114
  };
@@ -0,0 +1,6 @@
1
+ function r(t) {
2
+ return typeof t != "string" ? "" : t.charAt(0).toUpperCase() + t.slice(1);
3
+ }
4
+ export {
5
+ r
6
+ };
@@ -0,0 +1,16 @@
1
+ function l(r, o, s) {
2
+ const e = {
3
+ maxAttempts: 20,
4
+ interval: 100,
5
+ ...s
6
+ };
7
+ let t = 0;
8
+ function a() {
9
+ const i = r();
10
+ i != null ? e.expectedValue !== void 0 && i !== e.expectedValue ? t < e.maxAttempts ? (t++, setTimeout(a, e.interval)) : e.onError?.(new Error(e.errorMessage || `[maz-ui](checkAvailability) Nothing found after ${e.maxAttempts} attempts`)) : o(i) : t < e.maxAttempts ? (t++, setTimeout(a, e.interval)) : e.onError?.(new Error(e.errorMessage || `[maz-ui](checkAvailability) Nothing found after ${e.maxAttempts} attempts`));
11
+ }
12
+ a();
13
+ }
14
+ export {
15
+ l
16
+ };
@@ -0,0 +1,11 @@
1
+ function i(e, o) {
2
+ let t;
3
+ return function(...u) {
4
+ clearTimeout(t), t = setTimeout(() => {
5
+ e.apply(this, u);
6
+ }, o);
7
+ };
8
+ }
9
+ export {
10
+ i
11
+ };
@@ -1,61 +1,27 @@
1
1
  import { nextTick, getCurrentInstance, inject } from "vue";
2
2
  import { useFreezeValue } from "../composables/useFreezeValue.js";
3
- function debounceId(identifier, func, delay) {
4
- const debouncedFunctions = {};
5
- return function(...args) {
6
- debouncedFunctions[identifier] || (debouncedFunctions[identifier] = { timer: null, promise: null });
7
- const debounced = debouncedFunctions[identifier];
8
- return debounced.timer && clearTimeout(debounced.timer), debounced.promise = new Promise((resolve, reject) => {
9
- debounced.timer = setTimeout(async () => {
10
- try {
11
- resolve(await func(...args));
12
- } catch (error) {
13
- reject(error);
14
- } finally {
15
- delete debouncedFunctions[identifier];
16
- }
17
- }, delay);
18
- }), debounced.promise;
19
- };
20
- }
21
- function isPrimitive(value) {
22
- return value == null || typeof value == "string" || typeof value == "number" || typeof value == "boolean" || typeof value == "symbol" || typeof value == "bigint";
3
+ function i$1(e) {
4
+ return e == null || typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
23
5
  }
24
- function isEqualArrays(a, b) {
25
- if (a.length !== b.length)
6
+ function o(e, r) {
7
+ if (e.length !== r.length)
26
8
  return !1;
27
- for (const [i, element] of a.entries())
28
- if (!isEqual(element, b[i]))
9
+ for (const [t, n] of e.entries())
10
+ if (!s(n, r[t]))
29
11
  return !1;
30
12
  return !0;
31
13
  }
32
- function isEqualObjects(a, b) {
33
- const keysA = Object.keys(a), keysB = Object.keys(b);
34
- if (keysA.length !== keysB.length)
14
+ function y(e, r) {
15
+ const t = Object.keys(e), n = Object.keys(r);
16
+ if (t.length !== n.length)
35
17
  return !1;
36
- for (const key of keysA)
37
- if (!keysB.includes(key) || !isEqual(a[key], b[key]))
18
+ for (const f of t)
19
+ if (!n.includes(f) || !s(e[f], r[f]))
38
20
  return !1;
39
21
  return !0;
40
22
  }
41
- function isEqual(a, b) {
42
- return isPrimitive(a) || isPrimitive(b) ? a === b : a instanceof Date && b instanceof Date ? a.getTime() === b.getTime() : typeof a != typeof b || Array.isArray(a) !== Array.isArray(b) ? !1 : Array.isArray(a) && Array.isArray(b) ? isEqualArrays(a, b) : typeof a == "object" && typeof b == "object" ? isEqualObjects(a, b) : !1;
43
- }
44
- function throttleId(identifier, func, interval) {
45
- const state = {};
46
- return async (...args) => {
47
- const now = Date.now();
48
- return state[identifier] || (state[identifier] = { promise: null, lastCall: 0, lastArgs: [] }), now - state[identifier].lastCall >= interval ? (state[identifier].lastCall = now, func(...args)) : (state[identifier].lastArgs = args, state[identifier].promise || (state[identifier].promise = new Promise((resolve) => {
49
- setTimeout(
50
- async () => {
51
- state[identifier].lastCall = Date.now();
52
- const result = await func(...state[identifier].lastArgs);
53
- state[identifier].promise = null, resolve(result);
54
- },
55
- interval - (now - state[identifier].lastCall)
56
- );
57
- })), state[identifier].promise);
58
- };
23
+ function s(e, r) {
24
+ return i$1(e) || i$1(r) ? e === r : e instanceof Date && r instanceof Date ? e.getTime() === r.getTime() : typeof e != typeof r || Array.isArray(e) !== Array.isArray(r) ? !1 : Array.isArray(e) && Array.isArray(r) ? o(e, r) : typeof e == "object" && typeof r == "object" ? y(e, r) : !1;
59
25
  }
60
26
  const CONFIG = {
61
27
  mode: "lazy",
@@ -63,6 +29,40 @@ const CONFIG = {
63
29
  debounceTime: 300,
64
30
  throttleTime: 1e3
65
31
  };
32
+ function i(o2, n, r) {
33
+ const t = {};
34
+ return function(...c2) {
35
+ t[o2] || (t[o2] = { timer: null, promise: null });
36
+ const e = t[o2];
37
+ return e.timer && clearTimeout(e.timer), e.promise = new Promise((u, m) => {
38
+ e.timer = setTimeout(async () => {
39
+ try {
40
+ u(await n(...c2));
41
+ } catch (s2) {
42
+ m(s2);
43
+ } finally {
44
+ delete t[o2];
45
+ }
46
+ }, r);
47
+ }), e.promise;
48
+ };
49
+ }
50
+ function c(s2, o2, t) {
51
+ const l = {};
52
+ return async (...m) => {
53
+ const a = Date.now();
54
+ return l[s2] || (l[s2] = { promise: null, lastCall: 0, lastArgs: [] }), a - l[s2].lastCall >= t ? (l[s2].lastCall = a, o2(...m)) : (l[s2].lastArgs = m, l[s2].promise || (l[s2].promise = new Promise((u) => {
55
+ setTimeout(
56
+ async () => {
57
+ l[s2].lastCall = Date.now();
58
+ const p = await o2(...l[s2].lastArgs);
59
+ l[s2].promise = null, u(p);
60
+ },
61
+ t - (a - l[s2].lastCall)
62
+ );
63
+ })), l[s2].promise);
64
+ };
65
+ }
66
66
  function isEmptyValue(value) {
67
67
  return value == null || value === "";
68
68
  }
@@ -151,11 +151,11 @@ function getValidateFunction({
151
151
  const fieldName = String(name);
152
152
  if (debouncedFields?.[fieldName] && throttledFields?.[fieldName])
153
153
  throw new Error(`The field "${String(fieldName)}" cannot be both debounced and throttled`);
154
- return debouncedFields?.[fieldName] ? debounceId(
154
+ return debouncedFields?.[fieldName] ? i(
155
155
  String(fieldName),
156
156
  setFieldValidationState,
157
157
  typeof debouncedFields[fieldName] == "number" ? debouncedFields[fieldName] : CONFIG.debounceTime
158
- ) : throttledFields?.[fieldName] ? throttleId(
158
+ ) : throttledFields?.[fieldName] ? c(
159
159
  String(fieldName),
160
160
  setFieldValidationState,
161
161
  typeof throttledFields[fieldName] == "number" ? throttledFields[fieldName] : CONFIG.throttleTime
@@ -265,7 +265,7 @@ function handleFieldBlur({
265
265
  schema,
266
266
  isSubmitted
267
267
  }) {
268
- const fieldValue = payload[name], isDirty = !isEqual(fieldValue, fieldState.initialValue);
268
+ const fieldValue = payload[name], isDirty = !s(fieldValue, fieldState.initialValue);
269
269
  if (fieldState.dirty = isDirty, fieldState.blurred = fieldState.blurred || (fieldState.mode === "eager" ? isDirty : !0), !!(force || canExecuteValidation({ eventName: "blur", fieldState, isSubmitted })))
270
270
  return fieldState.validateFunction?.({
271
271
  name,
@@ -285,7 +285,7 @@ function handleFieldInput({
285
285
  }) {
286
286
  const fieldValue = payload[name];
287
287
  fieldState.validated = !1;
288
- const isDirty = !isEqual(fieldValue, fieldState.initialValue);
288
+ const isDirty = !s(fieldValue, fieldState.initialValue);
289
289
  if (fieldState.dirty = isDirty, !!(forceValidation || canExecuteValidation({ eventName: "input", fieldState, isSubmitted })))
290
290
  return fieldState.validateFunction?.({
291
291
  name,
@@ -410,7 +410,7 @@ export {
410
410
  getInstance as g,
411
411
  hasModeIncludes as h,
412
412
  updateFieldState as i,
413
- isEqual as j,
413
+ s as j,
414
414
  setFieldValidationState as k,
415
415
  getValidationEvents as l,
416
416
  findInteractiveElements as m,
@@ -1,10 +1,10 @@
1
1
  import { useMountComponent } from "../composables/useMountComponent.js";
2
2
  import { defineComponent, ref, reactive, computed, watch, onMounted, onBeforeUnmount, createElementBlock, openBlock, withKeys, withModifiers, createCommentVNode, createElementVNode, createVNode, unref, withDirectives, normalizeClass, vShow } from "vue";
3
3
  import { MazChevronLeft, MazXMark } from "@maz-ui/icons";
4
- import { c as checkAvailability } from "./checkAvailability.aTpZidex.js";
4
+ import { l } from "./checkAvailability.UFZSC8-1.js";
5
5
  import MazSpinner from "../components/MazSpinner.js";
6
6
  import { _ as _export_sfc } from "./_plugin-vue_export-helper.B--vMWp3.js";
7
- import '../assets/fullscreen-img.Bkuz1GOX.css';const _hoisted_1 = ["onKeypress"], _hoisted_2 = { class: "m-fullscreen-img-scroller" }, _hoisted_3 = ["src", "alt"], _sfc_main = /* @__PURE__ */ defineComponent({
7
+ import '../assets/fullscreen-img.Br983fLC.css';const _hoisted_1 = ["onKeypress"], _hoisted_2 = { class: "m-fullscreen-img-scroller" }, _hoisted_3 = ["src", "alt"], _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  __name: "MazFullscreenImg",
9
9
  props: {
10
10
  src: {},
@@ -70,7 +70,7 @@ import '../assets/fullscreen-img.Bkuz1GOX.css';const _hoisted_1 = ["onKeypress"]
70
70
  );
71
71
  if (currentInstance) {
72
72
  const allInstances = getAllInstances(), currentInstanceIndex = allInstances.indexOf(currentInstance), newInstanceIndex = which === "next" ? currentInstanceIndex + 1 : currentInstanceIndex - 1, nextInstance = allInstances[getNewInstanceIndex(allInstances, newInstanceIndex)];
73
- currentClickedElement.value = nextInstance, nextInstance && useNextInstance(currentInstance, nextInstance), emits(which), imageLoaded.value = !1, showLoader.value = !0, checkAvailability(() => imageLoaded.value === !0, () => {
73
+ currentClickedElement.value = nextInstance, nextInstance && useNextInstance(currentInstance, nextInstance), emits(which), imageLoaded.value = !1, showLoader.value = !0, l(() => imageLoaded.value === !0, () => {
74
74
  hideImage.value = !1, isZoomed.value ? setZoomStyles() : setEndAnimationStyles();
75
75
  }, {
76
76
  expectedValue: !0,
@@ -231,7 +231,7 @@ import '../assets/fullscreen-img.Bkuz1GOX.css';const _hoisted_1 = ["onKeypress"]
231
231
  ])
232
232
  ], 40, _hoisted_1));
233
233
  }
234
- }), MazFullscreenImg = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c0b12968"]]), STATE_OPEN_CLASS = "m-fullscreen-is-open";
234
+ }), MazFullscreenImg = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ddad82ee"]]), STATE_OPEN_CLASS = "m-fullscreen-is-open";
235
235
  class FullscreenImgHandler {
236
236
  options = void 0;
237
237
  defaultOptions = {
@@ -1,6 +1,6 @@
1
- function isClient() {
1
+ function e() {
2
2
  return typeof document < "u";
3
3
  }
4
4
  export {
5
- isClient as i
5
+ e
6
6
  };
@@ -1,4 +1,4 @@
1
- const mazUi = {
1
+ const r = {
2
2
  name: "maz-ui",
3
3
  foundation: {
4
4
  "base-font-size": "14px",
@@ -58,5 +58,5 @@ const mazUi = {
58
58
  }
59
59
  };
60
60
  export {
61
- mazUi
61
+ r as mazUi
62
62
  };
@@ -1,4 +1,4 @@
1
- const obsidian = {
1
+ const r = {
2
2
  name: "obsidian",
3
3
  foundation: {
4
4
  "base-font-size": "14px",
@@ -61,5 +61,5 @@ const obsidian = {
61
61
  }
62
62
  };
63
63
  export {
64
- obsidian
64
+ r as obsidian
65
65
  };
@@ -1,4 +1,4 @@
1
- const ocean = {
1
+ const r = {
2
2
  name: "ocean",
3
3
  foundation: {
4
4
  "base-font-size": "16px",
@@ -59,5 +59,5 @@ const ocean = {
59
59
  }
60
60
  };
61
61
  export {
62
- ocean
62
+ r as ocean
63
63
  };
@@ -0,0 +1,19 @@
1
+ import { r } from "./capitalize.CVQ1jDrh.js";
2
+ function l(r2) {
3
+ return r2.replaceAll(/-(\w)/g, (a, e) => e ? e.toUpperCase() : "");
4
+ }
5
+ function p(e) {
6
+ if (e === e.toUpperCase()) {
7
+ if (e.includes("-"))
8
+ return e.toLowerCase().split("-").map(r).join("");
9
+ if (e.includes("_"))
10
+ return e.toLowerCase().split("_").map(r).join("");
11
+ if (e.includes(" "))
12
+ return e.toLowerCase().split(" ").map(r).join("");
13
+ }
14
+ return e.includes("-") ? e.toLowerCase().split("-").map(r).join("") : e.includes("_") ? e.toLowerCase().split("_").map(r).join("") : e.includes(" ") ? e.toLowerCase().split(" ").map(r).join("") : r(l(e));
15
+ }
16
+ export {
17
+ l,
18
+ p
19
+ };
@@ -1,4 +1,4 @@
1
- const pristine = {
1
+ const r = {
2
2
  name: "pristine",
3
3
  foundation: {
4
4
  "base-font-size": "14px",
@@ -12,8 +12,8 @@ const pristine = {
12
12
  foreground: "0 0% 10%",
13
13
  primary: "220 10% 15%",
14
14
  "primary-foreground": "0 0% 100%",
15
- contrast: "220 10% 92%",
16
- "contrast-foreground": "0 0% 10%",
15
+ contrast: "0 0% 15%",
16
+ "contrast-foreground": "0 0% 95%",
17
17
  secondary: "220 10% 92%",
18
18
  "secondary-foreground": "0 0% 10%",
19
19
  muted: "0 0% 60%",
@@ -36,8 +36,8 @@ const pristine = {
36
36
  foreground: "0 0% 95%",
37
37
  primary: "0 0% 95%",
38
38
  "primary-foreground": "0 0% 10%",
39
- contrast: "0 0% 15%",
40
- "contrast-foreground": "0 0% 95%",
39
+ contrast: "220 10% 92%",
40
+ "contrast-foreground": "0 0% 10%",
41
41
  secondary: "0 0% 18%",
42
42
  "secondary-foreground": "0 0% 95%",
43
43
  muted: "0 0% 60%",
@@ -58,5 +58,5 @@ const pristine = {
58
58
  }
59
59
  };
60
60
  export {
61
- pristine
61
+ r as pristine
62
62
  };
@@ -0,0 +1,6 @@
1
+ function n(e) {
2
+ return new Promise((t) => setTimeout(t, e));
3
+ }
4
+ export {
5
+ n
6
+ };
@@ -0,0 +1,6 @@
1
+ function r(t) {
2
+ return !!t;
3
+ }
4
+ export {
5
+ r
6
+ };
@@ -0,0 +1,6 @@
1
+ function getColor(color) {
2
+ return color === "background" ? "surface" : color;
3
+ }
4
+ export {
5
+ getColor as g
6
+ };
@@ -1,5 +1,12 @@
1
+ import { p, l } from "./pascalCase.BKTE3qqE.js";
1
2
  import { computed, toValue } from "vue";
2
- const defaultOptions = {
3
+ function a$1(e) {
4
+ return e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([A-Z])([A-Z][a-z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase().replace(/-+/g, "-").replace(/(^-)|(-$)/g, "");
5
+ }
6
+ function a(e) {
7
+ return e.replace(/([a-z])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").replace(/[\s-]+/g, "_").toLowerCase().replace(/_+/g, "_").replace(/(^_)|(_$)/g, "");
8
+ }
9
+ const n = {
3
10
  removeAccents: !0,
4
11
  caseSensitive: !1,
5
12
  replaceSpaces: !0,
@@ -7,10 +14,29 @@ const defaultOptions = {
7
14
  trim: !0,
8
15
  normalizeSpaces: !0,
9
16
  removeNumbers: !1,
17
+ case: void 0,
10
18
  customNormalizationForms: ["NFC", "NFKD"]
11
19
  };
12
- function normalizeString(input, options) {
13
- const finalOptions = { ...defaultOptions, ...options }, accentsMap = {
20
+ function u(r, s) {
21
+ switch (s) {
22
+ case "kebab-case":
23
+ return a$1(r);
24
+ case "camelCase":
25
+ return l(r);
26
+ case "PascalCase":
27
+ return p(r);
28
+ case "snake_case":
29
+ return a(r);
30
+ case "lowercase":
31
+ return r.toLowerCase();
32
+ case "UPPERCASE":
33
+ return r.toUpperCase();
34
+ default:
35
+ return r;
36
+ }
37
+ }
38
+ function S(r, s) {
39
+ const a2 = { ...n, ...s }, c = {
14
40
  À: "A",
15
41
  Á: "A",
16
42
  Â: "A",
@@ -59,11 +85,11 @@ function normalizeString(input, options) {
59
85
  ñ: "n",
60
86
  ó: "o"
61
87
  };
62
- let result = input.toString();
63
- if (finalOptions.trim && (result = result.trim()), finalOptions.normalizeSpaces && (result = result.replaceAll(/\s+/g, " ")), finalOptions.replaceSpaces && (result = result.replaceAll(" ", "-")), finalOptions.removeNumbers && (result = result.replaceAll(/\d/g, "")), finalOptions.removeAccents && (result = result.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (char) => accentsMap[char] || char), result = result.replaceAll(/[\u0300-\u036F]/g, "")), finalOptions.caseSensitive === !1 && (result = result.toLowerCase()), finalOptions.removeSpecialCharacters && (result = result.replaceAll(/[^\dA-Z-]/gi, "")), finalOptions.trim && (result = result.trim()), finalOptions.customNormalizationForms)
64
- for (const form of finalOptions.customNormalizationForms)
65
- result = result.normalize(form);
66
- return result;
88
+ let e = r.toString();
89
+ if (a2.trim && (e = e.trim()), a2.normalizeSpaces && (e = e.replaceAll(/\s+/g, " ")), a2.replaceSpaces && (e = e.replaceAll(" ", "-")), a2.removeNumbers && (e = e.replaceAll(/\d/g, "")), a2.removeAccents && (e = e.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (o) => c[o] || o), e = e.replaceAll(/[\u0300-\u036F]/g, "")), a2.case ? e = u(e, a2.case) : a2.caseSensitive === !1 && (e = e.toLowerCase()), a2.removeSpecialCharacters && (e = e.replaceAll(/[^\dA-Z-]/gi, "")), a2.trim && (e = e.trim()), a2.customNormalizationForms)
90
+ for (const o of a2.customNormalizationForms)
91
+ e = e.normalize(o);
92
+ return e;
67
93
  }
68
94
  function levenshteinDistance(string1, string2) {
69
95
  const length1 = string1.length, length2 = string2.length, matrix = [];
@@ -84,25 +110,25 @@ function levenshteinDistance(string1, string2) {
84
110
  }
85
111
  function getMatchingScore(string1, string2) {
86
112
  const distance = levenshteinDistance(string1, string2), maxLength = Math.max(string1.length, string2.length);
87
- return 1 - distance / maxLength;
113
+ return maxLength === 0 ? 1 : 1 - distance / maxLength;
88
114
  }
89
115
  function getMatchingResults(string1, string2, threshold = 0.75) {
90
116
  return getMatchingScore(string1, string2) >= threshold;
91
117
  }
92
118
  function useStringMatching(string1, string2, threshold = 0.75) {
93
119
  const _string1 = computed(
94
- () => normalizeString(toValue(string1))
120
+ () => S(toValue(string1))
95
121
  ), _string2 = computed(
96
- () => normalizeString(toValue(string2))
97
- ), _threshold = computed(() => toValue(threshold)), score = computed(() => getMatchingScore(_string1.value, _string2.value));
122
+ () => S(toValue(string2))
123
+ ), score = computed(() => getMatchingScore(_string1.value, _string2.value));
98
124
  return {
99
125
  isMatching: computed(
100
- () => getMatchingResults(_string1.value, _string2.value, _threshold.value)
126
+ () => getMatchingResults(_string1.value, _string2.value, toValue(threshold))
101
127
  ),
102
128
  score
103
129
  };
104
130
  }
105
131
  export {
106
- normalizeString as n,
132
+ S,
107
133
  useStringMatching as u
108
134
  };
@@ -1,10 +1,10 @@
1
1
  import { nextTick } from "vue";
2
- function isServer() {
2
+ function e() {
3
3
  return typeof document > "u" || typeof globalThis.window > "u";
4
4
  }
5
5
  const eventHandlers = /* @__PURE__ */ new WeakMap();
6
6
  function getEventType() {
7
- return isServer() ? "click" : document.ontouchstart === null ? "touchstart" : "click";
7
+ return e() ? "click" : document.ontouchstart === null ? "touchstart" : "click";
8
8
  }
9
9
  function isOptionsObject(value) {
10
10
  return typeof value == "object" && value !== null && "callback" in value;
@@ -26,7 +26,7 @@ function getOptionsFromBinding(binding) {
26
26
  };
27
27
  }
28
28
  function shouldIgnoreElement(target, ignoreSelectors) {
29
- return isServer() ? !1 : ignoreSelectors.some((selector) => {
29
+ return e() ? !1 : ignoreSelectors.some((selector) => {
30
30
  try {
31
31
  if (target.matches && target.matches(selector) || target.closest && target.closest(selector) !== null)
32
32
  return !0;
@@ -43,7 +43,7 @@ function shouldIgnoreElement(target, ignoreSelectors) {
43
43
  });
44
44
  }
45
45
  async function onMounted(el, binding) {
46
- if (!isServer())
46
+ if (!e())
47
47
  try {
48
48
  onUnmounted(el);
49
49
  const vm = binding.instance, options = getOptionsFromBinding(binding), { callback, ignore = [], capture = !1, once = !1, stopPropagation = !1 } = options, isCallbackFunction = typeof callback == "function";
@@ -71,7 +71,7 @@ async function onMounted(el, binding) {
71
71
  }
72
72
  }
73
73
  function onUnmounted(el) {
74
- if (!isServer())
74
+ if (!e())
75
75
  try {
76
76
  const eventHandler = eventHandlers.get(el);
77
77
  if (eventHandler) {
@@ -102,6 +102,6 @@ const directive = {
102
102
  };
103
103
  export {
104
104
  directive as d,
105
- isServer as i,
105
+ e,
106
106
  plugin as p
107
107
  };
@@ -0,0 +1,36 @@
1
+ export interface MazAccordionProps {
2
+ id?: string;
3
+ modelValue?: number;
4
+ contentClass?: unknown;
5
+ }
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: Partial<Record<`title-${number}`, (_: {
9
+ isOpen: boolean;
10
+ }) => any>> & Partial<Record<`content-${number}`, (_: {
11
+ isOpen: boolean;
12
+ }) => any>> & {
13
+ content?(_: {
14
+ isOpen: boolean;
15
+ }): any;
16
+ };
17
+ refs: {};
18
+ rootEl: HTMLDivElement;
19
+ };
20
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
+ declare const __VLS_component: import('vue').DefineComponent<MazAccordionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
+ "update:model-value": (...args: any[]) => void;
23
+ }, string, import('vue').PublicProps, Readonly<MazAccordionProps> & Readonly<{
24
+ "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
25
+ }>, {
26
+ id: string;
27
+ modelValue: number;
28
+ contentClass: undefined;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
30
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
+ export default _default;
32
+ type __VLS_WithTemplateSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };