maz-ui 3.47.1 → 3.47.2-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) hide show
  1. package/components/MazAccordion.d.ts +3 -2
  2. package/components/MazAccordion.mjs +82 -90
  3. package/components/MazAnimatedCounter.d.ts +16 -32
  4. package/components/MazAnimatedCounter.mjs +27 -29
  5. package/components/MazAvatar.d.ts +2 -1
  6. package/components/MazAvatar.mjs +1 -1
  7. package/components/MazBackdrop.d.ts +2 -1
  8. package/components/MazBadge.d.ts +7 -2
  9. package/components/MazBadge.mjs +1 -1
  10. package/components/MazBottomSheet.d.ts +2 -1
  11. package/components/MazBottomSheet.mjs +1 -1
  12. package/components/MazBtn.d.ts +4 -3
  13. package/components/MazBtn.mjs +1 -1
  14. package/components/MazCard.d.ts +5 -4
  15. package/components/MazCard.mjs +1 -1
  16. package/components/MazCardSpotlight.d.ts +3 -2
  17. package/components/MazCardSpotlight.mjs +18 -22
  18. package/components/MazCarousel.d.ts +3 -2
  19. package/components/MazCarousel.mjs +1 -1
  20. package/components/MazChart.d.ts +1 -1
  21. package/components/MazChart.mjs +23 -32
  22. package/components/MazCheckbox.d.ts +4 -3
  23. package/components/MazCheckbox.mjs +74 -70
  24. package/components/MazChecklist.d.ts +2 -5
  25. package/components/MazChecklist.mjs +1 -1
  26. package/components/MazCircularProgressBar.d.ts +19 -66
  27. package/components/MazCircularProgressBar.mjs +47 -52
  28. package/components/MazDialog.d.ts +5 -3
  29. package/components/MazDialog.mjs +1 -1
  30. package/components/MazDialogPromise.mjs +1 -1
  31. package/components/MazDrawer.d.ts +2 -1
  32. package/components/MazDrawer.mjs +1 -1
  33. package/components/MazDropdown.d.ts +25 -3
  34. package/components/MazDropdown.mjs +2 -348
  35. package/components/MazDropzone.d.ts +1 -1
  36. package/components/MazExpandAnimation.d.ts +6 -5
  37. package/components/MazExpandAnimation.mjs +27 -31
  38. package/components/MazFullscreenLoader.d.ts +2 -1
  39. package/components/MazGallery.d.ts +1 -1
  40. package/components/MazGallery.mjs +1 -1
  41. package/components/MazIcon.mjs +14 -13
  42. package/components/MazInput.d.ts +16 -3
  43. package/components/MazInput.mjs +1 -1
  44. package/components/MazInputCode.d.ts +1 -1
  45. package/components/MazInputCode.mjs +26 -30
  46. package/components/MazInputNumber.d.ts +2 -2
  47. package/components/MazInputNumber.mjs +1 -1
  48. package/components/MazInputPrice.d.ts +4 -3
  49. package/components/MazInputPrice.mjs +1 -1
  50. package/components/MazInputTags.mjs +1 -1
  51. package/components/MazLazyImg.d.ts +2 -1
  52. package/components/MazLink.d.ts +2 -1
  53. package/components/MazLink.mjs +19 -31
  54. package/components/MazLoadingBar.d.ts +1 -1
  55. package/components/MazLoadingBar.mjs +31 -27
  56. package/components/MazPagination.d.ts +3 -2
  57. package/components/MazPagination.mjs +1 -1
  58. package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +29 -53
  59. package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +4 -4
  60. package/components/MazPhoneNumberInput.d.ts +6 -5
  61. package/components/MazPhoneNumberInput.mjs +1 -1
  62. package/components/MazPicker/MazPickerCalendar.vue.d.ts +1 -1
  63. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +1 -1
  64. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
  65. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +1 -1
  66. package/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +1 -1
  67. package/components/MazPicker/MazPickerContainer.vue.d.ts +1 -1
  68. package/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
  69. package/components/MazPicker/MazPickerHeader.vue.d.ts +1 -1
  70. package/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +1 -1
  71. package/components/MazPicker/MazPickerShortcuts.vue.d.ts +1 -1
  72. package/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
  73. package/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +1 -1
  74. package/components/MazPicker.d.ts +3 -1
  75. package/components/MazPicker.mjs +1 -1
  76. package/components/MazPullToRefresh.d.ts +4 -3
  77. package/components/MazRadio.d.ts +1 -1
  78. package/components/MazRadio.mjs +27 -37
  79. package/components/MazRadioButtons.d.ts +1 -1
  80. package/components/MazRadioButtons.mjs +61 -66
  81. package/components/MazReadingProgressBar.d.ts +1 -1
  82. package/components/MazSelect.d.ts +1 -1
  83. package/components/MazSelect.mjs +1 -1
  84. package/components/MazSlider.d.ts +1 -1
  85. package/components/MazSlider.mjs +107 -116
  86. package/components/MazSpinner.d.ts +1 -1
  87. package/components/MazStepper.d.ts +3 -2
  88. package/components/MazStepper.mjs +1 -1
  89. package/components/MazSwitch.d.ts +2 -1
  90. package/components/MazSwitch.mjs +20 -27
  91. package/components/MazTable.d.ts +38 -55
  92. package/components/MazTable.mjs +3 -2
  93. package/components/MazTableCell.d.ts +3 -2
  94. package/components/MazTableCell.mjs +12 -12
  95. package/components/MazTableRow.d.ts +3 -2
  96. package/components/MazTableRow.mjs +16 -16
  97. package/components/MazTableTitle.d.ts +3 -2
  98. package/components/MazTableTitle.mjs +18 -18
  99. package/components/MazTabs.d.ts +3 -2
  100. package/components/MazTabsBar.d.ts +3 -2
  101. package/components/MazTabsBar.mjs +1 -1
  102. package/components/MazTabsContent.d.ts +3 -2
  103. package/components/MazTabsContent.mjs +4 -4
  104. package/components/MazTabsContentItem.d.ts +2 -1
  105. package/components/MazTabsContentItem.mjs +7 -7
  106. package/components/MazTextarea.d.ts +58 -32
  107. package/components/MazTextarea.mjs +125 -107
  108. package/components/MazTransitionExpand.d.ts +2 -1
  109. package/components/MazTransitionExpand.mjs +9 -9
  110. package/components/assets/MazAccordion.css +1 -1
  111. package/components/assets/MazAnimatedCounter.css +1 -1
  112. package/components/assets/MazAvatar.css +1 -1
  113. package/components/assets/MazBadge.css +1 -1
  114. package/components/assets/MazBtn.css +1 -1
  115. package/components/assets/MazCardSpotlight.css +1 -1
  116. package/components/assets/MazCheckbox.css +1 -1
  117. package/components/assets/MazChecklist.css +1 -1
  118. package/components/assets/MazCircularProgressBar.css +1 -1
  119. package/components/assets/MazDropdown.css +1 -1
  120. package/components/assets/MazExpandAnimation.css +1 -1
  121. package/components/assets/MazGallery.css +1 -1
  122. package/components/assets/MazInput.css +1 -1
  123. package/components/assets/MazInputCode.css +1 -1
  124. package/components/assets/MazInputNumber.css +1 -1
  125. package/components/assets/MazInputPrice.css +1 -1
  126. package/components/assets/MazInputTags.css +1 -1
  127. package/components/assets/MazLink.css +1 -1
  128. package/components/assets/MazLoadingBar.css +1 -1
  129. package/components/assets/MazPagination.css +1 -1
  130. package/components/assets/MazPhoneNumberInput.css +1 -1
  131. package/components/assets/MazPicker.css +1 -1
  132. package/components/assets/MazRadio.css +1 -1
  133. package/components/assets/MazSelect.css +1 -1
  134. package/components/assets/MazStepper.css +1 -1
  135. package/components/assets/MazSwitch.css +1 -1
  136. package/components/assets/MazTable.css +1 -1
  137. package/components/assets/MazTableCell.css +1 -1
  138. package/components/assets/MazTableRow.css +1 -1
  139. package/components/assets/MazTableTitle.css +1 -1
  140. package/components/assets/MazTabsBar.css +1 -1
  141. package/components/assets/MazTextarea.css +1 -1
  142. package/components/assets/MazTransitionExpand.css +1 -1
  143. package/components/chunks/{MazAvatar-DFoZvWmg.mjs → MazAvatar-CZzOIbzh.mjs} +54 -54
  144. package/components/chunks/{MazBadge-CNSfzYq-.mjs → MazBadge-CupQjB8D.mjs} +2 -2
  145. package/components/chunks/{MazBottomSheet-DqK0EOsq.mjs → MazBottomSheet-D9EPpEV8.mjs} +28 -29
  146. package/components/chunks/MazBtn-BSgCMRt0.mjs +103 -0
  147. package/components/chunks/MazBtn-BVWOyFm-.mjs +103 -0
  148. package/components/chunks/MazBtn-BfIn7glE.mjs +103 -0
  149. package/components/chunks/MazBtn-Br3xKJMD.mjs +103 -0
  150. package/components/chunks/MazBtn-CB6xVwox.mjs +103 -0
  151. package/components/chunks/MazBtn-CIAdgMGr.mjs +111 -0
  152. package/components/chunks/MazBtn-CM-xSnA5.mjs +108 -0
  153. package/components/chunks/MazBtn-CQq-U8qQ.mjs +103 -0
  154. package/components/chunks/MazBtn-Chk7DWOF.mjs +103 -0
  155. package/components/chunks/MazBtn-Ck84sP9a.mjs +103 -0
  156. package/components/chunks/MazBtn-DI80W9rl.mjs +103 -0
  157. package/components/chunks/MazBtn-DhSKmF01.mjs +103 -0
  158. package/components/chunks/MazBtn-DzwuLea3.mjs +103 -0
  159. package/components/chunks/MazBtn-tOUtVpek.mjs +103 -0
  160. package/components/chunks/{MazCard-CfkvpcGL.mjs → MazCard-XBaeDZkg.mjs} +18 -19
  161. package/components/chunks/{MazCarousel-BEl86YGW.mjs → MazCarousel-COTaKhKF.mjs} +20 -21
  162. package/components/chunks/{MazCheckbox-Byqz8JJB.mjs → MazCheckbox-B-Sw22La.mjs} +63 -60
  163. package/components/chunks/{MazCheckbox-CI8ml-P8.mjs → MazCheckbox-DjY15PA3.mjs} +63 -58
  164. package/components/chunks/{MazCheckbox-BKCo6EzO.mjs → MazCheckbox-DxfneUvu.mjs} +63 -59
  165. package/components/chunks/{MazChecklist-BLxsNHMP.mjs → MazChecklist-DaozZlNb.mjs} +160 -166
  166. package/components/chunks/{MazDialog-CPgFpAlq.mjs → MazDialog-XiX9LEiz.mjs} +66 -81
  167. package/components/chunks/MazDialogPromise-B9_e3Ma9.mjs +488 -0
  168. package/components/chunks/MazDropdown-CKuIGitT.mjs +427 -0
  169. package/components/chunks/MazExpandAnimation-Bdf0-L85.mjs +54 -0
  170. package/components/chunks/{MazGallery-BKL7gfrz.mjs → MazGallery-BooLoRWi.mjs} +247 -208
  171. package/components/chunks/{MazGallery-BMFwld84.mjs → MazGallery-DUOQamrE.mjs} +265 -226
  172. package/components/chunks/MazIcon-BX2Gbz8R.mjs +4 -0
  173. package/components/chunks/{MazIcon-DjMuw8Bz.mjs → MazIcon-C-aPrqx2.mjs} +4 -3
  174. package/components/chunks/{MazIcon-D8V8ixhf.mjs → MazIcon-DFW4cVVf.mjs} +4 -3
  175. package/components/chunks/{MazIcon-BbvBov5G.mjs → MazIcon-_hN-Kivn.mjs} +14 -13
  176. package/components/chunks/MazInput-BWAWlxDa.mjs +314 -0
  177. package/components/chunks/MazInput-DIN1VAoX.mjs +325 -0
  178. package/components/chunks/MazInput-HLPtw5QK.mjs +313 -0
  179. package/components/chunks/MazInputNumber-7Ku2ZcG-.mjs +601 -0
  180. package/components/chunks/{MazInputPrice-DZD7ZZpm.mjs → MazInputPrice-C5yErBFP.mjs} +199 -176
  181. package/components/chunks/MazInputTags-DvbQ2mK8.mjs +614 -0
  182. package/components/chunks/{MazLazyImg-C03sUOXs.mjs → MazLazyImg-DQLwaKKz.mjs} +2 -2
  183. package/components/chunks/MazLink-mrqHeBS0.mjs +67 -0
  184. package/components/chunks/MazLoadingBar-CNm3Yt6D.mjs +36 -0
  185. package/components/chunks/MazPagination-BSu0Ifkp.mjs +327 -0
  186. package/components/chunks/{MazPhoneNumberInput-C4TX1tGw.mjs → MazPhoneNumberInput-B5Up8CqL.mjs} +597 -613
  187. package/components/chunks/MazPicker-CzYUZcLy.mjs +2487 -0
  188. package/components/chunks/{MazPickerMonthSwitcher-hCAkEd5r.mjs → MazPickerMonthSwitcher-Ds5agR3Z.mjs} +1 -1
  189. package/components/chunks/{MazPickerShortcuts-vpLyw1de.mjs → MazPickerShortcuts-BP6CY9-c.mjs} +1 -1
  190. package/components/chunks/{MazPickerYearSwitcher-DvC79vrt.mjs → MazPickerYearSwitcher-PM8qZMzR.mjs} +1 -1
  191. package/components/chunks/MazSelect-DOexatNj.mjs +871 -0
  192. package/components/chunks/{MazSelect-Baj2BQH7.mjs → MazSelect-DaDRzcT_.mjs} +172 -188
  193. package/components/chunks/{MazSpinner-DwSGm0-X.mjs → MazSpinner-9M_EGMpy.mjs} +1 -1
  194. package/components/chunks/MazSpinner-BJpv1muf.mjs +34 -0
  195. package/components/chunks/{MazSpinner-Cqp-BMvL.mjs → MazSpinner-BlbTztM3.mjs} +1 -1
  196. package/components/chunks/{MazSpinner-C1SiKhfK.mjs → MazSpinner-Bsy1nA3c.mjs} +1 -1
  197. package/components/chunks/MazSpinner-C30YfScc.mjs +34 -0
  198. package/components/chunks/MazSpinner-C5mnD76l.mjs +34 -0
  199. package/components/chunks/{MazSpinner-CAbYLlEZ.mjs → MazSpinner-CDx6lo7l.mjs} +1 -1
  200. package/components/chunks/MazSpinner-C_GueolV.mjs +34 -0
  201. package/components/chunks/{MazSpinner-Cb3_S0zT.mjs → MazSpinner-Cc-KlPEG.mjs} +1 -1
  202. package/components/chunks/MazSpinner-Cgg2dkzQ.mjs +34 -0
  203. package/components/chunks/{MazSpinner-B5lezvu4.mjs → MazSpinner-CkKIUYXO.mjs} +1 -1
  204. package/components/chunks/{MazSpinner-B8akphXs.mjs → MazSpinner-CxyUHAvm.mjs} +1 -1
  205. package/components/chunks/MazSpinner-DROgQW2M.mjs +34 -0
  206. package/components/chunks/{MazSpinner-Bvb-lKER.mjs → MazSpinner-DjUU4G1h.mjs} +1 -1
  207. package/components/chunks/MazSpinner-Dzs2W0kq.mjs +34 -0
  208. package/components/chunks/MazSpinner-NCtEpFMm.mjs +34 -0
  209. package/components/chunks/MazSpinner-QfPXLpa_.mjs +34 -0
  210. package/components/chunks/MazSpinner-ZPQe8ON_.mjs +34 -0
  211. package/components/chunks/{MazSpinner-C-z3-68w.mjs → MazSpinner-b90e3OQK.mjs} +1 -1
  212. package/components/chunks/MazStepper-B3fuhbye.mjs +218 -0
  213. package/components/chunks/{MazTable-CulBGLaj.mjs → MazTable-Ci8nhgOP.mjs} +199 -239
  214. package/components/chunks/MazTableCell-BIganK6X.mjs +23 -0
  215. package/components/chunks/MazTableRow-CIO-x6Lb.mjs +30 -0
  216. package/components/chunks/{MazTableTitle-uirsgvk_.mjs → MazTableTitle-OEgTPQB3.mjs} +4 -4
  217. package/components/chunks/MazTabsBar-CT35SCIK.mjs +177 -0
  218. package/components/chunks/{MazTransitionExpand-4Ll_5LDO.mjs → MazTransitionExpand-Bcwdl9g2.mjs} +8 -8
  219. package/components/chunks/{inject-strict-BmiaNiwC.mjs → inject-strict-DEDSuzCz.mjs} +3 -3
  220. package/css/main.css +1 -1
  221. package/modules/assets/MazBtn.css +1 -1
  222. package/modules/assets/index.css +1 -1
  223. package/modules/chunks/MazBtn-0CRjeBvn.mjs +103 -0
  224. package/modules/chunks/MazBtn-DRqCRJD-.cjs +1 -0
  225. package/modules/chunks/{MazIcon-BB0DMfOc.mjs → MazIcon-CeT6HK_q.mjs} +4 -3
  226. package/modules/chunks/{MazIcon-BtomZnkQ.cjs → MazIcon-D-Gna0vz.cjs} +1 -1
  227. package/modules/chunks/{MazSpinner-CDJhmIRl.mjs → MazSpinner-DV--lwdI.mjs} +1 -1
  228. package/modules/chunks/{MazSpinner-BASKjaLe.cjs → MazSpinner-DersvZQw.cjs} +1 -1
  229. package/modules/chunks/index-DvromXrX.cjs +124 -0
  230. package/modules/chunks/{index-C2yAjM0P.mjs → index-Kry9j5uD.mjs} +948 -944
  231. package/modules/index.cjs +1 -1
  232. package/modules/index.mjs +1 -1
  233. package/nuxt/index.json +1 -1
  234. package/package.json +22 -21
  235. package/tailwindcss/variables/colors.ts +2 -0
  236. package/types/components/MazAccordion.vue.d.ts +3 -2
  237. package/types/components/MazAnimatedCounter.vue.d.ts +16 -32
  238. package/types/components/MazAvatar.vue.d.ts +2 -1
  239. package/types/components/MazBackdrop.vue.d.ts +2 -1
  240. package/types/components/MazBadge.vue.d.ts +7 -2
  241. package/types/components/MazBottomSheet.vue.d.ts +2 -1
  242. package/types/components/MazBtn.vue.d.ts +4 -3
  243. package/types/components/MazCard.vue.d.ts +5 -4
  244. package/types/components/MazCardSpotlight.vue.d.ts +3 -2
  245. package/types/components/MazCarousel.vue.d.ts +3 -2
  246. package/types/components/MazChart.vue.d.ts +1 -1
  247. package/types/components/MazCheckbox.vue.d.ts +4 -3
  248. package/types/components/MazChecklist.vue.d.ts +2 -5
  249. package/types/components/MazCircularProgressBar.vue.d.ts +19 -66
  250. package/types/components/MazDialog.vue.d.ts +5 -3
  251. package/types/components/MazDrawer.vue.d.ts +2 -1
  252. package/types/components/MazDropdown.vue.d.ts +25 -3
  253. package/types/components/MazDropzone.vue.d.ts +1 -1
  254. package/types/components/MazExpandAnimation.vue.d.ts +6 -5
  255. package/types/components/MazFullscreenLoader.vue.d.ts +2 -1
  256. package/types/components/MazGallery.vue.d.ts +1 -1
  257. package/types/components/MazInput.vue.d.ts +16 -3
  258. package/types/components/MazInputCode.vue.d.ts +1 -1
  259. package/types/components/MazInputNumber.vue.d.ts +2 -2
  260. package/types/components/MazInputPrice.vue.d.ts +4 -3
  261. package/types/components/MazLazyImg.vue.d.ts +2 -1
  262. package/types/components/MazLink.vue.d.ts +2 -1
  263. package/types/components/MazLoadingBar.vue.d.ts +1 -1
  264. package/types/components/MazPagination.vue.d.ts +3 -2
  265. package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +29 -53
  266. package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +4 -4
  267. package/types/components/MazPhoneNumberInput.vue.d.ts +6 -5
  268. package/types/components/MazPicker/MazPickerCalendar.vue.d.ts +1 -1
  269. package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarDays.vue.d.ts +1 -1
  270. package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
  271. package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +1 -1
  272. package/types/components/MazPicker/MazPickerCalendarSwitcher.vue.d.ts +1 -1
  273. package/types/components/MazPicker/MazPickerContainer.vue.d.ts +1 -1
  274. package/types/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
  275. package/types/components/MazPicker/MazPickerHeader.vue.d.ts +1 -1
  276. package/types/components/MazPicker/MazPickerMonthSwitcher.vue.d.ts +1 -1
  277. package/types/components/MazPicker/MazPickerShortcuts.vue.d.ts +1 -1
  278. package/types/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
  279. package/types/components/MazPicker/MazPickerYearSwitcher.vue.d.ts +1 -1
  280. package/types/components/MazPicker.vue.d.ts +3 -1
  281. package/types/components/MazPullToRefresh.vue.d.ts +4 -3
  282. package/types/components/MazRadio.vue.d.ts +1 -1
  283. package/types/components/MazRadioButtons.vue.d.ts +1 -1
  284. package/types/components/MazReadingProgressBar.vue.d.ts +1 -1
  285. package/types/components/MazSelect.vue.d.ts +1 -1
  286. package/types/components/MazSlider.vue.d.ts +1 -1
  287. package/types/components/MazSpinner.vue.d.ts +1 -1
  288. package/types/components/MazStepper.vue.d.ts +3 -2
  289. package/types/components/MazSwitch.vue.d.ts +2 -1
  290. package/types/components/MazTable.vue.d.ts +38 -55
  291. package/types/components/MazTableCell.vue.d.ts +3 -2
  292. package/types/components/MazTableRow.vue.d.ts +3 -2
  293. package/types/components/MazTableTitle.vue.d.ts +3 -2
  294. package/types/components/MazTabs.vue.d.ts +3 -2
  295. package/types/components/MazTabsBar.vue.d.ts +3 -2
  296. package/types/components/MazTabsContent.vue.d.ts +3 -2
  297. package/types/components/MazTabsContentItem.vue.d.ts +2 -1
  298. package/types/components/MazTextarea.vue.d.ts +58 -32
  299. package/types/components/MazTransitionExpand.vue.d.ts +2 -1
  300. package/types/modules/composables/useFormValidator/types.d.ts +9 -5
  301. package/types/modules/composables/useFormValidator/useFormField.d.ts +3 -3
  302. package/types/modules/composables/useFormValidator/useFormValidator.d.ts +4 -4
  303. package/types/modules/composables/useFormValidator/utils.d.ts +17 -17
  304. package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +7 -7
  305. package/types/modules/helpers/check-availability.d.ts +1 -0
  306. package/types/modules/helpers/inject-strict.d.ts +2 -1
  307. package/types/tailwindcss/variables/colors.d.ts +2 -0
  308. package/components/chunks/MazBtn-BRUaoP8j.mjs +0 -126
  309. package/components/chunks/MazBtn-BRnLMzhy.mjs +0 -118
  310. package/components/chunks/MazBtn-BhnOApJu.mjs +0 -118
  311. package/components/chunks/MazBtn-C28vKP_v.mjs +0 -118
  312. package/components/chunks/MazBtn-CnqRnXh_.mjs +0 -118
  313. package/components/chunks/MazBtn-CweCwE_4.mjs +0 -118
  314. package/components/chunks/MazBtn-D6Jxw9Nr.mjs +0 -118
  315. package/components/chunks/MazBtn-D7IKoL2c.mjs +0 -118
  316. package/components/chunks/MazBtn-DlD5m7T4.mjs +0 -118
  317. package/components/chunks/MazBtn-Dt8lr0GH.mjs +0 -118
  318. package/components/chunks/MazBtn-DzBXfedt.mjs +0 -123
  319. package/components/chunks/MazBtn-Mu18egu5.mjs +0 -118
  320. package/components/chunks/MazBtn-TkePGm5o.mjs +0 -118
  321. package/components/chunks/MazBtn-igor8wRn.mjs +0 -118
  322. package/components/chunks/MazDialogPromise-BCCdkrea.mjs +0 -522
  323. package/components/chunks/MazExpandAnimation-Bkw_wFTi.mjs +0 -58
  324. package/components/chunks/MazInput-CBiCdd0F.mjs +0 -302
  325. package/components/chunks/MazInput-Dx2cCzFS.mjs +0 -290
  326. package/components/chunks/MazInput-O6Q41Fm0.mjs +0 -291
  327. package/components/chunks/MazInputNumber-DYPVUz4k.mjs +0 -593
  328. package/components/chunks/MazInputTags-CxXBsTdM.mjs +0 -605
  329. package/components/chunks/MazLink-Dl9ePCGm.mjs +0 -79
  330. package/components/chunks/MazLoadingBar-Di2OIrPD.mjs +0 -32
  331. package/components/chunks/MazPagination-CHTMRRqE.mjs +0 -362
  332. package/components/chunks/MazPicker-BcQ_-AJH.mjs +0 -2477
  333. package/components/chunks/MazSelect-BXzgSKmL.mjs +0 -863
  334. package/components/chunks/MazSpinner-Cg26sBU2.mjs +0 -34
  335. package/components/chunks/MazSpinner-CsEQ9EXb.mjs +0 -34
  336. package/components/chunks/MazSpinner-CvT-9sC7.mjs +0 -34
  337. package/components/chunks/MazSpinner-DH6C15pU.mjs +0 -34
  338. package/components/chunks/MazSpinner-DlMKBtyt.mjs +0 -34
  339. package/components/chunks/MazSpinner-Dyf9yb51.mjs +0 -34
  340. package/components/chunks/MazSpinner-M4r0cykl.mjs +0 -34
  341. package/components/chunks/MazSpinner-QHjOczon.mjs +0 -34
  342. package/components/chunks/MazSpinner-cqcpf_FX.mjs +0 -34
  343. package/components/chunks/MazSpinner-yPkPj7Q8.mjs +0 -34
  344. package/components/chunks/MazStepper-DRWtYHZR.mjs +0 -232
  345. package/components/chunks/MazTableCell-BXDbkEJq.mjs +0 -23
  346. package/components/chunks/MazTableRow-Ds3CDEit.mjs +0 -30
  347. package/components/chunks/MazTabsBar-MZYefBb8.mjs +0 -204
  348. package/modules/chunks/MazBtn-CTqI4qhg.mjs +0 -118
  349. package/modules/chunks/MazBtn-D_CpNgpD.cjs +0 -9
  350. package/modules/chunks/index-BIX1NMzX.cjs +0 -149
@@ -1,21 +1,34 @@
1
- import '../assets/MazGallery.css';var ye = Object.defineProperty;
2
- var be = (o, e, t) => e in o ? ye(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
- var f = (o, e, t) => be(o, typeof e != "symbol" ? e + "" : e, t);
4
- import { createVNode as x, render as B, defineComponent as oe, defineAsyncComponent as _, ref as y, computed as E, watch as Ae, onMounted as Ie, onBeforeUnmount as Ee, openBlock as b, createElementBlock as A, withModifiers as S, withKeys as Le, withDirectives as R, unref as L, vShow as we, createCommentVNode as O, createElementVNode as P, normalizeClass as F, useCssVars as Ce, onBeforeMount as ze, normalizeStyle as ee, Fragment as te, renderList as se, toDisplayString as xe } from "vue";
5
- import { _ as ae } from "./MazCard-CfkvpcGL.mjs";
1
+ import '../assets/MazGallery.css';var Ae = Object.defineProperty;
2
+ var Ie = (o, e, t) => e in o ? Ae(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
+ var g = (o, e, t) => Ie(o, typeof e != "symbol" ? e + "" : e, t);
4
+ import { createVNode as z, render as M, defineComponent as re, defineAsyncComponent as N, ref as p, reactive as Ee, computed as C, watch as we, onMounted as Ce, onBeforeUnmount as Le, openBlock as b, createElementBlock as A, withModifiers as O, withKeys as xe, unref as w, createCommentVNode as S, createElementVNode as k, normalizeClass as R, withDirectives as T, vShow as ze, onBeforeMount as ke, normalizeStyle as se, Fragment as ne, renderList as oe, toDisplayString as Pe } from "vue";
5
+ import { _ as ie } from "./MazCard-XBaeDZkg.mjs";
6
6
  function Oe(o, e) {
7
7
  let t = e == null ? void 0 : e.element;
8
8
  function s() {
9
- t && B(null, t);
9
+ t && M(null, t);
10
10
  }
11
- const r = { ...e == null ? void 0 : e.props, destroy: s }, l = x(
11
+ const r = { ...e == null ? void 0 : e.props, destroy: s }, l = z(
12
12
  o,
13
13
  r,
14
14
  e == null ? void 0 : e.children
15
15
  );
16
- return e != null && e.app ? (l.appContext = e.app._context, t ? B(l, t) : typeof document < "u" && (t = document.createElement("div"), B(l, t))) : (t = t ?? document.body, B(l, t)), { vNode: l, destroy: s, el: t };
16
+ return e != null && e.app ? (l.appContext = e.app._context, t ? M(l, t) : typeof document < "u" && (t = document.createElement("div"), M(l, t))) : (t = t ?? document.body, M(l, t)), { vNode: l, destroy: s, el: t };
17
17
  }
18
- const Pe = ["onKeypress"], Se = { class: "m-fullscreen-img-scroller" }, ke = ["src", "alt"], He = /* @__PURE__ */ oe({
18
+ function Se(o, e, t) {
19
+ const s = {
20
+ maxAttempts: 20,
21
+ interval: 100,
22
+ ...t
23
+ };
24
+ let r = 0;
25
+ function l() {
26
+ const u = o();
27
+ u != null ? s.expectedValue !== void 0 && u !== s.expectedValue ? r < s.maxAttempts ? (r++, setTimeout(l, s.interval)) : console.warn(s.errorMessage || `[maz-ui](checkAvailability) Nothing found after ${s.maxAttempts} attempts for ref ${u}`) : e(u) : r < s.maxAttempts ? (r++, setTimeout(l, s.interval)) : console.warn(s.errorMessage || `[maz-ui](checkAvailability) Nothing found or expected value after ${s.maxAttempts} attempts for ref ${u}`);
28
+ }
29
+ l();
30
+ }
31
+ const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["src", "alt"], Me = /* @__PURE__ */ re({
19
32
  __name: "MazFullscreenImg",
20
33
  props: {
21
34
  src: {},
@@ -33,200 +46,229 @@ const Pe = ["onKeypress"], Se = { class: "m-fullscreen-img-scroller" }, ke = ["s
33
46
  },
34
47
  emits: ["close", "previous", "next", "before-close"],
35
48
  setup(o, { emit: e }) {
36
- const t = o, s = e, r = _(() => import("./MazSpinner-DwSGm0-X.mjs")), l = _(() => import("./x-mark-CnZwVvA7.mjs")), p = _(() => import("./chevron-left-BqVOLRdC.mjs")), g = y(!1), C = y(!1), w = y(!1), m = y(!1), d = y(!1), c = y(t.clickedElement), u = E(() => t.clickedElement.getBoundingClientRect()), re = E(
37
- () => u.value.height < u.value.width
38
- ), W = y(t.src), Z = y(t.alt), j = y(), z = y(), ie = E(() => d.value ? "--is-zoomed maz-cursor-zoom-out" : "maz-cursor-zoom-in");
39
- function le() {
40
- g.value = !0, C.value = !1, w.value = !0;
49
+ const t = o, s = e, r = N(() => import("./MazSpinner-9M_EGMpy.mjs")), l = N(() => import("./x-mark-CnZwVvA7.mjs")), u = N(() => import("./chevron-left-BqVOLRdC.mjs")), y = p(!1), x = p(!1), L = p(!1), h = p(!1), m = p(!1), c = Ee({
50
+ running: !1,
51
+ ended: !1
52
+ }), d = p(t.clickedElement), le = C(() => t.clickedElement.getBoundingClientRect()), H = p(), D = p(t.src), q = p(t.alt), j = p(), v = p(), $ = p(!0), ce = C(() => ({
53
+ "--is-zoomed": m.value,
54
+ "--invisible": $.value,
55
+ "--absolute": !m.value
56
+ }));
57
+ function ue() {
58
+ var n, a;
59
+ v.value && (H.value = ((n = v.value) == null ? void 0 : n.naturalWidth) > ((a = v.value) == null ? void 0 : a.naturalHeight)), y.value = !0, x.value = !1, L.value = !0;
41
60
  }
42
- Ae(
43
- () => w.value,
44
- (n) => {
45
- n && fe();
46
- }
61
+ we(
62
+ L,
63
+ async (n) => {
64
+ n && ge();
65
+ },
66
+ { immediate: !0 }
47
67
  );
48
- function k() {
49
- s("before-close"), ge();
68
+ function B() {
69
+ s("before-close"), pe();
50
70
  }
51
- function q(n) {
52
- n.key === "Escape" && (n.preventDefault(), k()), (n.key === "ArrowLeft" || n.key === "ArrowRight") && (n.preventDefault(), N(n.key === "ArrowRight" ? "next" : "previous"));
71
+ function G(n) {
72
+ n.key === "Escape" && (n.preventDefault(), B()), (n.key === "ArrowLeft" || n.key === "ArrowRight") && (n.preventDefault(), U(n.key === "ArrowRight" ? "next" : "previous"));
53
73
  }
54
- function ce() {
74
+ function me() {
55
75
  document.documentElement.classList.add("--m-fullscreen-open");
56
76
  }
57
- function ue() {
77
+ function de() {
58
78
  document.documentElement.classList.remove("--m-fullscreen-open");
59
79
  }
60
- function V() {
80
+ function Y() {
61
81
  return [...document.querySelectorAll(".m-fullscreen-img-instance")];
62
82
  }
63
- function me(n, a) {
83
+ function he(n, a) {
64
84
  return a < 0 ? n.length - 1 : a >= n.length ? 0 : a;
65
85
  }
66
- async function de(n, a) {
86
+ async function fe(n, a) {
67
87
  n.classList.remove(t.openInstanceClass), a.classList.add(t.openInstanceClass);
68
- const i = a.getAttribute("data-src"), h = a.getAttribute("data-alt");
69
- Z.value = h, i && (W.value = i), g.value = !1, g.value || (C.value = !0);
88
+ const i = a.getAttribute("data-src"), f = a.getAttribute("data-alt");
89
+ q.value = f, D.value = i ?? D.value;
70
90
  }
71
- function N(n) {
91
+ function U(n) {
92
+ $.value = !0;
72
93
  const a = document.querySelector(
73
94
  `.m-fullscreen-img-instance.${t.openInstanceClass}`
74
95
  );
75
96
  if (a) {
76
- const i = V(), h = i.indexOf(a), I = n === "next" ? h + 1 : h - 1, v = i[me(i, I)];
77
- c.value = v, v && de(a, v), s(n), d.value ? Y(z.value) : H();
97
+ const i = Y(), f = i.indexOf(a), I = n === "next" ? f + 1 : f - 1, E = i[he(i, I)];
98
+ d.value = E, E && fe(a, E), s(n), y.value = !1, x.value = !0, Se(() => y.value === !0, () => {
99
+ $.value = !1, m.value ? K() : P();
100
+ }, {
101
+ expectedValue: !0,
102
+ interval: 100,
103
+ maxAttempts: 50
104
+ });
78
105
  }
79
106
  }
80
- function Y(n) {
81
- re.value ? (n.style.width = `${window.innerWidth}px`, n.style.removeProperty("height")) : (n.style.height = `${window.innerHeight}px`, n.style.removeProperty("width")), n.style.removeProperty("top"), n.style.removeProperty("left");
107
+ function K() {
108
+ const n = v.value;
109
+ if (!n) {
110
+ console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
111
+ return;
112
+ }
113
+ n.style.removeProperty("max-width"), n.style.removeProperty("max-height"), n == null || n.style.removeProperty("top"), n == null || n.style.removeProperty("left"), H.value ? (n.style.height = "100vh", n.style.removeProperty("width")) : (n.style.width = "100vw", n.style.removeProperty("height"));
82
114
  }
83
- async function he() {
84
- const n = z.value;
85
- d.value ? (d.value = !d.value, H()) : (d.value = !d.value, Y(n));
115
+ async function ve() {
116
+ m.value ? (m.value = !m.value, P()) : (m.value = !m.value, K());
86
117
  }
87
- function G(n) {
88
- var a;
89
- return (a = z.value) == null ? void 0 : a.animate(n, {
118
+ function X(n) {
119
+ var i;
120
+ c.running = !0, $.value = !1;
121
+ const a = (i = v.value) == null ? void 0 : i.animate(n, {
90
122
  duration: t.animation.duration,
91
- // Durée de l'animation en millisecondes
92
123
  easing: t.animation.easing
93
- // Fonction d'interpolation pour l'animation inverse
94
124
  });
125
+ if (!a) {
126
+ console.error("[maz-ui](vFullscreenImg) animation is not defined"), c.running = !1, c.ended = !0;
127
+ return;
128
+ }
129
+ return a;
95
130
  }
96
- function X(n = t.offset ?? 0) {
97
- const a = (c.value instanceof HTMLImageElement ? c.value.naturalWidth : c.value.clientWidth) || 1, i = (c.value instanceof HTMLImageElement ? c.value.naturalHeight : c.value.clientHeight) || 1, h = window.innerWidth, I = window.innerHeight, v = Math.min(
98
- (h - 2 * n) / a,
131
+ function Q(n = t.offset ?? 0) {
132
+ const a = d.value.clientWidth || 1, i = d.value.clientHeight || 1, f = window.innerWidth, I = window.innerHeight, E = Math.min(
133
+ (f - 2 * n) / a,
99
134
  (I - 2 * n) / i
100
- ), T = (h - a * v) / 2, D = (I - i * v) / 2;
135
+ ), W = (f - a * E) / 2, Z = (I - i * E) / 2;
101
136
  return {
102
- centerX: T,
103
- centerY: D,
104
- originalWidth: a,
105
- originalHeight: i,
106
- scale: v
137
+ centerX: W,
138
+ centerY: Z,
139
+ width: a,
140
+ height: i,
141
+ scale: E
107
142
  };
108
143
  }
109
- function K({ trigger: n }) {
110
- const { originalWidth: a, originalHeight: i, scale: h, centerX: I, centerY: v } = X(), { top: T, left: D, width: ve, height: pe } = u.value, J = [
144
+ function J({ trigger: n }) {
145
+ const { width: a, height: i, scale: f, centerX: I, centerY: E } = Q(), { top: W, left: Z, width: ye, height: be } = le.value, te = [
111
146
  {
112
- top: `${T}px`,
113
- left: `${D}px`,
114
- width: `${ve}px`,
115
- height: `${pe}px`,
147
+ top: `${W}px`,
148
+ left: `${Z}px`,
149
+ width: `${ye}px`,
150
+ height: `${be}px`,
116
151
  opacity: 0
117
152
  },
118
153
  {
119
- top: `${v}px`,
154
+ top: `${E}px`,
120
155
  left: `${I}px`,
121
- width: `${a * h}px`,
122
- height: `${i * h}px`,
156
+ width: `${a * f}px`,
157
+ height: `${i * f}px`,
123
158
  opacity: 1
124
159
  }
125
160
  ];
126
161
  return {
127
- frames: n === "open" ? J : J.reverse()
162
+ frames: n === "open" ? te : te.reverse()
128
163
  };
129
164
  }
130
- function H() {
131
- const { centerX: n, centerY: a, originalHeight: i, originalWidth: h, scale: I } = X(), v = {
132
- top: `${a}px`,
133
- left: `${n}px`,
134
- width: `${h * I}px`,
135
- height: `${i * I}px`
165
+ function P() {
166
+ const { height: n, width: a, scale: i } = Q(), f = H.value ? {
167
+ width: `${a * i}px`,
168
+ maxHeight: `${n * i}px`
169
+ } : {
170
+ height: `${n * i}px`,
171
+ maxWidth: `${a * i}px`
136
172
  };
137
- if (!z.value)
138
- throw console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
139
- Object.assign(z.value.style, v);
173
+ if (!v.value) {
174
+ console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
175
+ return;
176
+ }
177
+ H.value ? (v.value.style.removeProperty("height"), v.value.style.removeProperty("maxHeight")) : (v.value.style.removeProperty("width"), v.value.style.removeProperty("maxWidth")), Object.assign(v.value.style, f);
140
178
  }
141
- function fe() {
142
- const { frames: n } = K({
179
+ function ge() {
180
+ const { frames: n } = J({
143
181
  trigger: "open"
144
- }), a = G(n);
145
- if (!a)
146
- throw console.error("[maz-ui](vFullscreenImg) open animation is not defined");
182
+ }), a = X(n);
183
+ if (!a) {
184
+ console.error("[maz-ui](vFullscreenImg) open animation is not defined"), P();
185
+ return;
186
+ }
147
187
  a.onfinish = () => {
148
- H();
188
+ P(), c.running = !1, c.ended = !0;
149
189
  };
150
190
  }
151
- function ge() {
152
- const { frames: n } = K({
191
+ function pe() {
192
+ const { frames: n } = J({
153
193
  trigger: "close"
154
- }), a = G(n);
155
- if (!a)
156
- throw console.error("[maz-ui](vFullscreenImg) close animation is not defined");
157
- a.onfinish = () => {
158
- var i, h;
159
- s("close"), (i = j.value) == null || i.remove(), (h = t.destroy) == null || h.call(t);
160
- };
194
+ }), a = X(n);
195
+ function i() {
196
+ var f, I;
197
+ s("close"), (f = j.value) == null || f.remove(), (I = t.destroy) == null || I.call(t), c.running = !1, c.ended = !0;
198
+ }
199
+ if (!a) {
200
+ console.error("[maz-ui](vFullscreenImg) close animation is not defined"), i();
201
+ return;
202
+ }
203
+ a.onfinish = i;
161
204
  }
162
- function Q() {
163
- d.value || H();
205
+ function ee() {
206
+ m.value || P();
164
207
  }
165
- return Ie(() => {
166
- C.value = !0, document.addEventListener("keydown", q), window.addEventListener("resize", Q), ce(), m.value = V().length > 1;
167
- }), Ee(() => {
168
- document.removeEventListener("keydown", q), window.removeEventListener("resize", Q), ue();
208
+ return Ce(() => {
209
+ x.value = !0, document.addEventListener("keydown", G), window.addEventListener("resize", ee), me(), h.value = Y().length > 1;
210
+ }), Le(() => {
211
+ document.removeEventListener("keydown", G), window.removeEventListener("resize", ee), de();
169
212
  }), (n, a) => (b(), A("div", {
170
213
  ref_key: "FullscreenImgElement",
171
214
  ref: j,
172
215
  role: "button",
173
216
  class: "m-fullscreen-img",
174
217
  tabindex: "0",
175
- onClick: S(k, ["stop"]),
176
- onKeypress: Le(S(k, ["prevent"]), ["esc"])
218
+ onClick: O(B, ["stop"]),
219
+ onKeypress: xe(O(B, ["prevent"]), ["esc"])
177
220
  }, [
178
- R(x(
179
- L(r),
180
- { class: "m-fullscreen-img-loader maz-h-16" },
181
- null,
182
- 512
183
- /* NEED_PATCH */
184
- ), [
185
- [we, C.value]
186
- ]),
187
- w.value && m.value ? (b(), A("button", {
221
+ L.value && h.value ? (b(), A("button", {
188
222
  key: 0,
189
223
  type: "button",
190
224
  class: "m-fullscreen-btn --next",
191
- onClick: a[0] || (a[0] = S((i) => N("next"), ["stop"]))
225
+ onClick: a[0] || (a[0] = O((i) => U("next"), ["stop"]))
192
226
  }, [
193
- x(L(p), { class: "maz-rotate-180 maz-text-3xl" })
194
- ])) : O("v-if", !0),
195
- w.value && m.value ? (b(), A("button", {
227
+ z(w(u), { class: "maz-rotate-180" })
228
+ ])) : S("v-if", !0),
229
+ L.value && h.value ? (b(), A("button", {
196
230
  key: 1,
197
231
  type: "button",
198
232
  class: "m-fullscreen-btn --previous",
199
- onClick: a[1] || (a[1] = S((i) => N("previous"), ["stop"]))
233
+ onClick: a[1] || (a[1] = O((i) => U("previous"), ["stop"]))
200
234
  }, [
201
- x(L(p), { class: "maz-text-3xl" })
202
- ])) : O("v-if", !0),
203
- P("button", {
235
+ z(w(u))
236
+ ])) : S("v-if", !0),
237
+ k("button", {
204
238
  type: "button",
205
239
  class: "m-fullscreen-btn --close",
206
- onClick: k
240
+ onClick: B
207
241
  }, [
208
- x(L(l), { class: "maz-text-3xl" })
242
+ z(w(l))
209
243
  ]),
210
- P("div", Se, [
211
- O(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions, vuejs-accessibility/click-events-have-key-events "),
212
- P("img", {
244
+ k("div", $e, [
245
+ k("img", {
213
246
  ref_key: "ImgElement",
214
- ref: z,
215
- src: W.value,
216
- alt: Z.value ?? void 0,
247
+ ref: v,
248
+ src: D.value,
249
+ alt: q.value ?? void 0,
217
250
  tabindex: "0",
218
- class: F([ie.value]),
219
- onLoad: le,
220
- onClick: a[2] || (a[2] = S((i) => n.zoom ? he() : void 0, ["stop"]))
221
- }, null, 42, ke)
251
+ class: R([ce.value]),
252
+ onLoad: ue,
253
+ onClick: a[2] || (a[2] = O((i) => n.zoom && ve(), ["stop"]))
254
+ }, null, 42, Be),
255
+ T(z(
256
+ w(r),
257
+ { class: "m-fullscreen-img-loader" },
258
+ null,
259
+ 512
260
+ /* NEED_PATCH */
261
+ ), [
262
+ [ze, x.value]
263
+ ])
222
264
  ])
223
- ], 40, Pe));
265
+ ], 40, He));
224
266
  }
225
- }), Be = /* @__PURE__ */ ae(He, [["__scopeId", "data-v-42226ee7"]]), ne = "m-fullscreen-is-open";
226
- class $e {
267
+ }), _e = /* @__PURE__ */ ie(Me, [["__scopeId", "data-v-037cf196"]]), ae = "m-fullscreen-is-open";
268
+ class Fe {
227
269
  constructor() {
228
- f(this, "options");
229
- f(this, "defaultOptions", {
270
+ g(this, "options");
271
+ g(this, "defaultOptions", {
230
272
  scaleOnHover: !1,
231
273
  blurOnHover: !1,
232
274
  disabled: !1,
@@ -237,9 +279,9 @@ class $e {
237
279
  easing: "ease-in-out"
238
280
  }
239
281
  });
240
- f(this, "mouseEnterListener");
241
- f(this, "mouseLeaveListener");
242
- f(this, "renderPreviewListener");
282
+ g(this, "mouseEnterListener");
283
+ g(this, "mouseLeaveListener");
284
+ g(this, "renderPreviewListener");
243
285
  }
244
286
  buildOptions(e, t) {
245
287
  const s = typeof t.value == "object" ? t.value : { src: t.value, alt: void 0 }, r = (s == null ? void 0 : s.src) ?? this.getImgSrc(e), l = (s == null ? void 0 : s.alt) ?? this.getImgAlt(e);
@@ -280,10 +322,10 @@ class $e {
280
322
  e.removeEventListener("mouseenter", this.mouseEnterListener), e.removeEventListener("mouseleave", this.mouseLeaveListener), e.removeEventListener("click", this.renderPreviewListener), e.classList.remove("m-fullscreen-img-instance"), e.style.cursor = "";
281
323
  }
282
324
  renderPreview(e) {
283
- return e.classList.add(ne), Oe(Be, {
325
+ return e.classList.add(ae), Oe(_e, {
284
326
  props: {
285
327
  ...this.options,
286
- openInstanceClass: ne,
328
+ openInstanceClass: ae,
287
329
  clickedElement: e,
288
330
  clickedElementBounds: e.getBoundingClientRect()
289
331
  },
@@ -297,18 +339,18 @@ class $e {
297
339
  e.style.zIndex = "1", this.options.scaleOnHover && (e.style.transform = "scale(1.04)"), this.options.blurOnHover && (e.style.filter = "blur(3px)");
298
340
  }
299
341
  }
300
- let $;
301
- const U = {
342
+ let _;
343
+ const V = {
302
344
  mounted(o, e) {
303
- return $ = new $e(), $.create(o, e);
345
+ return _ = new Fe(), _.create(o, e);
304
346
  },
305
347
  updated(o, e) {
306
- return $.update(o, e);
348
+ return _.update(o, e);
307
349
  },
308
350
  unmounted(o) {
309
- return $.remove(o);
351
+ return _.remove(o);
310
352
  }
311
- }, Me = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", _e = {
353
+ }, Ne = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", Re = {
312
354
  baseClass: "m-lazy-img",
313
355
  loadedClass: "m-lazy-loaded",
314
356
  loadingClass: "m-lazy-loading",
@@ -322,14 +364,14 @@ const U = {
322
364
  threshold: 0.1
323
365
  }
324
366
  };
325
- class Re {
367
+ class Te {
326
368
  constructor(e = {}) {
327
- f(this, "observers", []);
328
- f(this, "defaultOptions", _e);
329
- f(this, "options");
330
- f(this, "onImgLoadedCallback");
331
- f(this, "onImgErrorCallback");
332
- f(this, "hasImgLoaded", !1);
369
+ g(this, "observers", []);
370
+ g(this, "defaultOptions", Re);
371
+ g(this, "options");
372
+ g(this, "onImgLoadedCallback");
373
+ g(this, "onImgErrorCallback");
374
+ g(this, "hasImgLoaded", !1);
333
375
  this.options = this.buildOptions(e), this.onImgLoadedCallback = this.imageIsLoaded.bind(this), this.onImgErrorCallback = this.imageHasError.bind(this);
334
376
  }
335
377
  async loadErrorPhoto() {
@@ -435,18 +477,18 @@ class Re {
435
477
  s.src = t;
436
478
  }
437
479
  handleIntersectionObserver(e, t, s, r) {
438
- var l, p;
480
+ var l, u;
439
481
  this.observers.push(r);
440
- for (const g of s)
441
- if (g.isIntersecting) {
442
- if ((p = (l = this.options).onIntersecting) == null || p.call(l, g.target), this.options.observerOnce && r.unobserve(e), this.options.loadOnce && this.hasImgLoaded)
482
+ for (const y of s)
483
+ if (y.isIntersecting) {
484
+ if ((u = (l = this.options).onIntersecting) == null || u.call(l, y.target), this.options.observerOnce && r.unobserve(e), this.options.loadOnce && this.hasImgLoaded)
443
485
  return;
444
486
  this.loadImage(e, t);
445
487
  }
446
488
  }
447
489
  createObserver(e, t) {
448
- const s = (p, g) => {
449
- this.handleIntersectionObserver(e, t, p, g);
490
+ const s = (u, y) => {
491
+ this.handleIntersectionObserver(e, t, u, y);
450
492
  }, r = this.options.observerOptions;
451
493
  new IntersectionObserver(s, r).observe(e);
452
494
  }
@@ -463,7 +505,7 @@ class Re {
463
505
  async add(e, t) {
464
506
  if (this.hasBgImgMode(t) && this.isPictureElement(e))
465
507
  throw new Error(`[MazLazyImg] You can't use the "bg-image" mode with "<picture />" element`);
466
- setTimeout(() => this.setBaseClass(e), 0), e.getAttribute("src") || this.setImgSrc(e, Me), await this.bindUpdateHandler(e, t, "bind");
508
+ setTimeout(() => this.setBaseClass(e), 0), e.getAttribute("src") || this.setImgSrc(e, Ne), await this.bindUpdateHandler(e, t, "bind");
467
509
  }
468
510
  async update(e, t) {
469
511
  t.value !== t.oldValue && (this.hasImgLoaded = !1, this.removeAllStateClasses(e), await this.bindUpdateHandler(e, t, "update"));
@@ -475,22 +517,22 @@ class Re {
475
517
  this.observers = [];
476
518
  }
477
519
  }
478
- let M;
479
- const Fe = {
520
+ let F;
521
+ const De = {
480
522
  created(o, e) {
481
523
  const t = typeof e.value == "object" ? e.value : {};
482
- M = new Re(t), M.add(o, e);
524
+ F = new Te(t), F.add(o, e);
483
525
  },
484
526
  updated(o, e) {
485
- M.update(o, e);
527
+ F.update(o, e);
486
528
  },
487
529
  unmounted(o, e) {
488
- M.remove(o, e);
530
+ F.remove(o, e);
489
531
  }
490
- }, Ne = { class: "m-gallery__wrapper maz-flex maz-flex-1" }, Te = ["alt"], De = {
532
+ }, Ue = { class: "m-gallery__wrapper maz-flex maz-flex-1" }, We = ["alt"], Ze = {
491
533
  key: 0,
492
534
  class: "m-gallery__remaining-layer maz-flex maz-bg-overlay maz-flex-center"
493
- }, Ue = { class: "maz-text-2xl maz-text-white" }, We = /* @__PURE__ */ oe({
535
+ }, Ve = { class: "maz-text-2xl maz-text-white" }, qe = /* @__PURE__ */ re({
494
536
  __name: "MazGallery",
495
537
  props: {
496
538
  /**
@@ -528,82 +570,79 @@ const Fe = {
528
570
  separatorColor: { type: String, default: "transparent" }
529
571
  },
530
572
  setup(o) {
531
- Ce((m) => ({
532
- "37b3f3e3": o.separatorColor
533
- }));
534
- const e = o, t = _(() => import("./no-photography-PGT8fxs_.mjs"));
535
- ze(() => {
573
+ const e = o, t = N(() => import("./no-photography-PGT8fxs_.mjs"));
574
+ ke(() => {
536
575
  e.imagesShownCount > 5 && console.warn('[MazUI](m-gallery) The maximum of "images-shown-count" is 5');
537
576
  });
538
- const s = E(() => {
539
- const m = e.noWidth, d = e.width, c = e.noHeight, u = e.height;
577
+ const s = C(() => {
578
+ const h = e.noWidth, m = e.width, c = e.noHeight, d = e.height;
540
579
  return {
541
- ...m ? {} : {
542
- flex: `0 0 ${typeof d}` == "number" ? `${d}px` : d,
543
- width: typeof d == "number" ? `${d}px` : d
580
+ ...h ? {} : {
581
+ flex: `0 0 ${typeof m}` == "number" ? `${m}px` : m,
582
+ width: typeof m == "number" ? `${m}px` : m
544
583
  },
545
584
  ...c ? {} : {
546
- height: typeof u == "number" ? `${u}px` : `${u}`,
547
- minHeight: typeof u == "number" ? `${u}px` : `${u}`
585
+ height: typeof d == "number" ? `${d}px` : `${d}`,
586
+ minHeight: typeof d == "number" ? `${d}px` : `${d}`
548
587
  }
549
588
  };
550
- }), r = E(() => e.imagesShownCount <= 5 ? e.imagesShownCount : 5), l = E(() => e.images.length - (e.images.length < r.value ? e.images.length : r.value)), p = E(() => e.images.map(
551
- (m) => typeof m == "object" ? { ...m, thumbnail: m.thumbnail ?? m.src } : { src: m, thumbnail: m, alt: void 0 }
552
- )), g = E(() => p.value.slice(0, r.value)), C = E(() => p.value.slice(r.value, e.images.length));
553
- function w(m) {
554
- return e.noRemaining ? !1 : (l.value && m + 1) === g.value.length;
589
+ }), r = C(() => e.imagesShownCount <= 5 ? e.imagesShownCount : 5), l = C(() => e.images.length - (e.images.length < r.value ? e.images.length : r.value)), u = C(() => e.images.map(
590
+ (h) => typeof h == "object" ? { ...h, thumbnail: h.thumbnail ?? h.src } : { src: h, thumbnail: h, alt: void 0 }
591
+ )), y = C(() => u.value.slice(0, r.value)), x = C(() => u.value.slice(r.value, e.images.length));
592
+ function L(h) {
593
+ return e.noRemaining ? !1 : (l.value && h + 1) === y.value.length;
555
594
  }
556
- return (m, d) => o.images.length > 0 || o.hasEmptyLayer ? (b(), A(
595
+ return (h, m) => o.images.length > 0 || o.hasEmptyLayer ? (b(), A(
557
596
  "div",
558
597
  {
559
598
  key: 0,
560
- class: F(["m-gallery maz-flex", { "maz-rounded": !o.noRadius }]),
561
- style: ee([s.value])
599
+ class: R(["m-gallery maz-flex", { "maz-rounded": !o.noRadius }]),
600
+ style: se([s.value, { "--gallery-separator-color": o.separatorColor }])
562
601
  },
563
602
  [
564
- P("section", Ne, [
603
+ k("section", Ue, [
565
604
  (b(!0), A(
566
- te,
605
+ ne,
567
606
  null,
568
- se(g.value, (c, u) => (b(), A(
607
+ oe(y.value, (c, d) => (b(), A(
569
608
  "figure",
570
609
  {
571
- key: u,
572
- class: F(["m-gallery__item !maz-my-0 maz-flex maz-flex-center", [`m-gallery__item--${u + 1}`]])
610
+ key: d,
611
+ class: R(["m-gallery__item !maz-my-0 maz-flex maz-flex-center", [`m-gallery__item--${d + 1}`]])
573
612
  },
574
613
  [
575
- R(P("img", {
614
+ T(k("img", {
576
615
  class: "m-gallery__item__image maz-flex-1",
577
616
  src: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
578
617
  alt: c.alt,
579
618
  loading: "lazy"
580
- }, null, 8, Te), [
581
- [L(Fe), { src: c.thumbnail, disabled: !o.lazy }, "bg-image"],
582
- [L(U), {
619
+ }, null, 8, We), [
620
+ [w(De), { src: c.thumbnail, disabled: !o.lazy }, "bg-image"],
621
+ [w(V), {
583
622
  src: c.src,
584
623
  alt: c.alt,
585
- disabled: o.noZoom || w(u),
624
+ disabled: o.noZoom || L(d),
586
625
  blurOnHover: o.blur,
587
626
  scaleOnHover: o.scale
588
627
  }]
589
628
  ]),
590
- w(u) ? R((b(), A("div", De, [
591
- P(
629
+ L(d) ? T((b(), A("div", Ze, [
630
+ k(
592
631
  "span",
593
- Ue,
594
- "+" + xe(l.value),
632
+ Ve,
633
+ "+" + Pe(l.value),
595
634
  1
596
635
  /* TEXT */
597
636
  )
598
637
  ])), [
599
- [L(U), {
638
+ [w(V), {
600
639
  src: c.src,
601
640
  alt: c.alt,
602
641
  disabled: o.noZoom,
603
642
  blurOnHover: !1,
604
643
  scaleOnHover: o.scale
605
644
  }]
606
- ]) : O("v-if", !0)
645
+ ]) : S("v-if", !0)
607
646
  ],
608
647
  2
609
648
  /* CLASS */
@@ -615,24 +654,24 @@ const Fe = {
615
654
  "div",
616
655
  {
617
656
  key: 0,
618
- class: F(["empty-layer maz-flex maz-w-full maz-bg-color-light maz-text-normal maz-flex-center", { "maz-rounded-xl": !o.noRadius }]),
619
- style: ee([s.value])
657
+ class: R(["empty-layer maz-flex maz-w-full maz-bg-color-light maz-text-normal maz-flex-center", { "maz-rounded-xl": !o.noRadius }]),
658
+ style: se([s.value])
620
659
  },
621
660
  [
622
- x(L(t), { class: "maz-h-8 maz-w-8" })
661
+ z(w(t), { class: "maz-h-8 maz-w-8" })
623
662
  ],
624
663
  6
625
664
  /* CLASS, STYLE */
626
- )) : O("v-if", !0)
665
+ )) : S("v-if", !0)
627
666
  ]),
628
667
  (b(!0), A(
629
- te,
668
+ ne,
630
669
  null,
631
- se(C.value, (c, u) => R((b(), A("div", {
632
- key: u,
670
+ oe(x.value, (c, d) => T((b(), A("div", {
671
+ key: d,
633
672
  class: "m-gallery__hidden"
634
673
  })), [
635
- [L(U), { src: c.src, disabled: o.noZoom }]
674
+ [w(V), { src: c.src, disabled: o.noZoom }]
636
675
  ])),
637
676
  128
638
677
  /* KEYED_FRAGMENT */
@@ -640,9 +679,9 @@ const Fe = {
640
679
  ],
641
680
  6
642
681
  /* CLASS, STYLE */
643
- )) : O("v-if", !0);
682
+ )) : S("v-if", !0);
644
683
  }
645
- }), Ve = /* @__PURE__ */ ae(We, [["__scopeId", "data-v-d7c3127b"]]);
684
+ }), Ke = /* @__PURE__ */ ie(qe, [["__scopeId", "data-v-3b59e0cd"]]);
646
685
  export {
647
- Ve as default
686
+ Ke as default
648
687
  };