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,20 +1,33 @@
1
- import '../assets/MazGallery.css';var ye = Object.defineProperty;
2
- var be = (n, e, t) => e in n ? ye(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var f = (n, e, t) => be(n, 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 P, withKeys as Le, withDirectives as R, unref as L, vShow as we, createCommentVNode as O, createElementVNode as k, normalizeClass as F, useCssVars as Ce, onBeforeMount as ze, normalizeStyle as ee, Fragment as te, renderList as se, toDisplayString as xe } from "vue";
5
- function Oe(n, e) {
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
+ function Oe(o, e) {
6
6
  let t = e == null ? void 0 : e.element;
7
7
  function s() {
8
- t && B(null, t);
8
+ t && M(null, t);
9
9
  }
10
- const r = { ...e == null ? void 0 : e.props, destroy: s }, l = x(
11
- n,
10
+ const r = { ...e == null ? void 0 : e.props, destroy: s }, l = z(
11
+ o,
12
12
  r,
13
13
  e == null ? void 0 : e.children
14
14
  );
15
- 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 };
15
+ 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 };
16
16
  }
17
- const ke = ["onKeypress"], Pe = { class: "m-fullscreen-img-scroller" }, Se = ["src", "alt"], He = /* @__PURE__ */ oe({
17
+ function Se(o, e, t) {
18
+ const s = {
19
+ maxAttempts: 20,
20
+ interval: 100,
21
+ ...t
22
+ };
23
+ let r = 0;
24
+ function l() {
25
+ const u = o();
26
+ 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}`);
27
+ }
28
+ l();
29
+ }
30
+ const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["src", "alt"], Me = /* @__PURE__ */ re({
18
31
  __name: "MazFullscreenImg",
19
32
  props: {
20
33
  src: {},
@@ -31,206 +44,235 @@ const ke = ["onKeypress"], Pe = { class: "m-fullscreen-img-scroller" }, Se = ["s
31
44
  zoom: { type: Boolean, default: !0 }
32
45
  },
33
46
  emits: ["close", "previous", "next", "before-close"],
34
- setup(n, { emit: e }) {
35
- const t = n, s = e, r = _(() => import("./MazSpinner-DlMKBtyt.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(
36
- () => u.value.height < u.value.width
37
- ), 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");
38
- function le() {
39
- g.value = !0, C.value = !1, w.value = !0;
47
+ setup(o, { emit: e }) {
48
+ const t = o, s = e, r = N(() => import("./MazSpinner-Cgg2dkzQ.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({
49
+ running: !1,
50
+ ended: !1
51
+ }), 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(() => ({
52
+ "--is-zoomed": m.value,
53
+ "--invisible": $.value,
54
+ "--absolute": !m.value
55
+ }));
56
+ function ue() {
57
+ var n, a;
58
+ 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;
40
59
  }
41
- Ae(
42
- () => w.value,
43
- (o) => {
44
- o && fe();
45
- }
60
+ we(
61
+ L,
62
+ async (n) => {
63
+ n && ge();
64
+ },
65
+ { immediate: !0 }
46
66
  );
47
- function S() {
48
- s("before-close"), ge();
67
+ function B() {
68
+ s("before-close"), pe();
49
69
  }
50
- function q(o) {
51
- o.key === "Escape" && (o.preventDefault(), S()), (o.key === "ArrowLeft" || o.key === "ArrowRight") && (o.preventDefault(), N(o.key === "ArrowRight" ? "next" : "previous"));
70
+ function G(n) {
71
+ n.key === "Escape" && (n.preventDefault(), B()), (n.key === "ArrowLeft" || n.key === "ArrowRight") && (n.preventDefault(), U(n.key === "ArrowRight" ? "next" : "previous"));
52
72
  }
53
- function ce() {
73
+ function me() {
54
74
  document.documentElement.classList.add("--m-fullscreen-open");
55
75
  }
56
- function ue() {
76
+ function de() {
57
77
  document.documentElement.classList.remove("--m-fullscreen-open");
58
78
  }
59
- function V() {
79
+ function Y() {
60
80
  return [...document.querySelectorAll(".m-fullscreen-img-instance")];
61
81
  }
62
- function me(o, a) {
63
- return a < 0 ? o.length - 1 : a >= o.length ? 0 : a;
82
+ function he(n, a) {
83
+ return a < 0 ? n.length - 1 : a >= n.length ? 0 : a;
64
84
  }
65
- async function de(o, a) {
66
- o.classList.remove(t.openInstanceClass), a.classList.add(t.openInstanceClass);
67
- const i = a.getAttribute("data-src"), h = a.getAttribute("data-alt");
68
- Z.value = h, i && (W.value = i), g.value = !1, g.value || (C.value = !0);
85
+ async function fe(n, a) {
86
+ n.classList.remove(t.openInstanceClass), a.classList.add(t.openInstanceClass);
87
+ const i = a.getAttribute("data-src"), f = a.getAttribute("data-alt");
88
+ q.value = f, D.value = i ?? D.value;
69
89
  }
70
- function N(o) {
90
+ function U(n) {
91
+ $.value = !0;
71
92
  const a = document.querySelector(
72
93
  `.m-fullscreen-img-instance.${t.openInstanceClass}`
73
94
  );
74
95
  if (a) {
75
- const i = V(), h = i.indexOf(a), I = o === "next" ? h + 1 : h - 1, v = i[me(i, I)];
76
- c.value = v, v && de(a, v), s(o), d.value ? Y(z.value) : H();
96
+ const i = Y(), f = i.indexOf(a), I = n === "next" ? f + 1 : f - 1, E = i[he(i, I)];
97
+ d.value = E, E && fe(a, E), s(n), y.value = !1, x.value = !0, Se(() => y.value === !0, () => {
98
+ $.value = !1, m.value ? K() : P();
99
+ }, {
100
+ expectedValue: !0,
101
+ interval: 100,
102
+ maxAttempts: 50
103
+ });
77
104
  }
78
105
  }
79
- function Y(o) {
80
- re.value ? (o.style.width = `${window.innerWidth}px`, o.style.removeProperty("height")) : (o.style.height = `${window.innerHeight}px`, o.style.removeProperty("width")), o.style.removeProperty("top"), o.style.removeProperty("left");
106
+ function K() {
107
+ const n = v.value;
108
+ if (!n) {
109
+ console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
110
+ return;
111
+ }
112
+ 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"));
81
113
  }
82
- async function he() {
83
- const o = z.value;
84
- d.value ? (d.value = !d.value, H()) : (d.value = !d.value, Y(o));
114
+ async function ve() {
115
+ m.value ? (m.value = !m.value, P()) : (m.value = !m.value, K());
85
116
  }
86
- function G(o) {
87
- var a;
88
- return (a = z.value) == null ? void 0 : a.animate(o, {
117
+ function X(n) {
118
+ var i;
119
+ c.running = !0, $.value = !1;
120
+ const a = (i = v.value) == null ? void 0 : i.animate(n, {
89
121
  duration: t.animation.duration,
90
- // Durée de l'animation en millisecondes
91
122
  easing: t.animation.easing
92
- // Fonction d'interpolation pour l'animation inverse
93
123
  });
124
+ if (!a) {
125
+ console.error("[maz-ui](vFullscreenImg) animation is not defined"), c.running = !1, c.ended = !0;
126
+ return;
127
+ }
128
+ return a;
94
129
  }
95
- function X(o = t.offset ?? 0) {
96
- 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(
97
- (h - 2 * o) / a,
98
- (I - 2 * o) / i
99
- ), T = (h - a * v) / 2, D = (I - i * v) / 2;
130
+ function Q(n = t.offset ?? 0) {
131
+ const a = d.value.clientWidth || 1, i = d.value.clientHeight || 1, f = window.innerWidth, I = window.innerHeight, E = Math.min(
132
+ (f - 2 * n) / a,
133
+ (I - 2 * n) / i
134
+ ), W = (f - a * E) / 2, Z = (I - i * E) / 2;
100
135
  return {
101
- centerX: T,
102
- centerY: D,
103
- originalWidth: a,
104
- originalHeight: i,
105
- scale: v
136
+ centerX: W,
137
+ centerY: Z,
138
+ width: a,
139
+ height: i,
140
+ scale: E
106
141
  };
107
142
  }
108
- function K({ trigger: o }) {
109
- const { originalWidth: a, originalHeight: i, scale: h, centerX: I, centerY: v } = X(), { top: T, left: D, width: ve, height: pe } = u.value, J = [
143
+ function J({ trigger: n }) {
144
+ const { width: a, height: i, scale: f, centerX: I, centerY: E } = Q(), { top: W, left: Z, width: ye, height: be } = le.value, te = [
110
145
  {
111
- top: `${T}px`,
112
- left: `${D}px`,
113
- width: `${ve}px`,
114
- height: `${pe}px`,
146
+ top: `${W}px`,
147
+ left: `${Z}px`,
148
+ width: `${ye}px`,
149
+ height: `${be}px`,
115
150
  opacity: 0
116
151
  },
117
152
  {
118
- top: `${v}px`,
153
+ top: `${E}px`,
119
154
  left: `${I}px`,
120
- width: `${a * h}px`,
121
- height: `${i * h}px`,
155
+ width: `${a * f}px`,
156
+ height: `${i * f}px`,
122
157
  opacity: 1
123
158
  }
124
159
  ];
125
160
  return {
126
- frames: o === "open" ? J : J.reverse()
161
+ frames: n === "open" ? te : te.reverse()
127
162
  };
128
163
  }
129
- function H() {
130
- const { centerX: o, centerY: a, originalHeight: i, originalWidth: h, scale: I } = X(), v = {
131
- top: `${a}px`,
132
- left: `${o}px`,
133
- width: `${h * I}px`,
134
- height: `${i * I}px`
164
+ function P() {
165
+ const { height: n, width: a, scale: i } = Q(), f = H.value ? {
166
+ width: `${a * i}px`,
167
+ maxHeight: `${n * i}px`
168
+ } : {
169
+ height: `${n * i}px`,
170
+ maxWidth: `${a * i}px`
135
171
  };
136
- if (!z.value)
137
- throw console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
138
- Object.assign(z.value.style, v);
172
+ if (!v.value) {
173
+ console.error("[maz-ui](vFullscreenImg) ImgElement is not defined");
174
+ return;
175
+ }
176
+ 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);
139
177
  }
140
- function fe() {
141
- const { frames: o } = K({
178
+ function ge() {
179
+ const { frames: n } = J({
142
180
  trigger: "open"
143
- }), a = G(o);
144
- if (!a)
145
- throw console.error("[maz-ui](vFullscreenImg) open animation is not defined");
181
+ }), a = X(n);
182
+ if (!a) {
183
+ console.error("[maz-ui](vFullscreenImg) open animation is not defined"), P();
184
+ return;
185
+ }
146
186
  a.onfinish = () => {
147
- H();
187
+ P(), c.running = !1, c.ended = !0;
148
188
  };
149
189
  }
150
- function ge() {
151
- const { frames: o } = K({
190
+ function pe() {
191
+ const { frames: n } = J({
152
192
  trigger: "close"
153
- }), a = G(o);
154
- if (!a)
155
- throw console.error("[maz-ui](vFullscreenImg) close animation is not defined");
156
- a.onfinish = () => {
157
- var i, h;
158
- s("close"), (i = j.value) == null || i.remove(), (h = t.destroy) == null || h.call(t);
159
- };
193
+ }), a = X(n);
194
+ function i() {
195
+ var f, I;
196
+ s("close"), (f = j.value) == null || f.remove(), (I = t.destroy) == null || I.call(t), c.running = !1, c.ended = !0;
197
+ }
198
+ if (!a) {
199
+ console.error("[maz-ui](vFullscreenImg) close animation is not defined"), i();
200
+ return;
201
+ }
202
+ a.onfinish = i;
160
203
  }
161
- function Q() {
162
- d.value || H();
204
+ function ee() {
205
+ m.value || P();
163
206
  }
164
- return Ie(() => {
165
- C.value = !0, document.addEventListener("keydown", q), window.addEventListener("resize", Q), ce(), m.value = V().length > 1;
166
- }), Ee(() => {
167
- document.removeEventListener("keydown", q), window.removeEventListener("resize", Q), ue();
168
- }), (o, a) => (b(), A("div", {
207
+ return Ce(() => {
208
+ x.value = !0, document.addEventListener("keydown", G), window.addEventListener("resize", ee), me(), h.value = Y().length > 1;
209
+ }), Le(() => {
210
+ document.removeEventListener("keydown", G), window.removeEventListener("resize", ee), de();
211
+ }), (n, a) => (b(), A("div", {
169
212
  ref_key: "FullscreenImgElement",
170
213
  ref: j,
171
214
  role: "button",
172
215
  class: "m-fullscreen-img",
173
216
  tabindex: "0",
174
- onClick: P(S, ["stop"]),
175
- onKeypress: Le(P(S, ["prevent"]), ["esc"])
217
+ onClick: O(B, ["stop"]),
218
+ onKeypress: xe(O(B, ["prevent"]), ["esc"])
176
219
  }, [
177
- R(x(
178
- L(r),
179
- { class: "m-fullscreen-img-loader maz-h-16" },
180
- null,
181
- 512
182
- /* NEED_PATCH */
183
- ), [
184
- [we, C.value]
185
- ]),
186
- w.value && m.value ? (b(), A("button", {
220
+ L.value && h.value ? (b(), A("button", {
187
221
  key: 0,
188
222
  type: "button",
189
223
  class: "m-fullscreen-btn --next",
190
- onClick: a[0] || (a[0] = P((i) => N("next"), ["stop"]))
224
+ onClick: a[0] || (a[0] = O((i) => U("next"), ["stop"]))
191
225
  }, [
192
- x(L(p), { class: "maz-rotate-180 maz-text-3xl" })
193
- ])) : O("v-if", !0),
194
- w.value && m.value ? (b(), A("button", {
226
+ z(w(u), { class: "maz-rotate-180" })
227
+ ])) : S("v-if", !0),
228
+ L.value && h.value ? (b(), A("button", {
195
229
  key: 1,
196
230
  type: "button",
197
231
  class: "m-fullscreen-btn --previous",
198
- onClick: a[1] || (a[1] = P((i) => N("previous"), ["stop"]))
232
+ onClick: a[1] || (a[1] = O((i) => U("previous"), ["stop"]))
199
233
  }, [
200
- x(L(p), { class: "maz-text-3xl" })
201
- ])) : O("v-if", !0),
234
+ z(w(u))
235
+ ])) : S("v-if", !0),
202
236
  k("button", {
203
237
  type: "button",
204
238
  class: "m-fullscreen-btn --close",
205
- onClick: S
239
+ onClick: B
206
240
  }, [
207
- x(L(l), { class: "maz-text-3xl" })
241
+ z(w(l))
208
242
  ]),
209
- k("div", Pe, [
210
- O(" eslint-disable-next-line vuejs-accessibility/no-static-element-interactions, vuejs-accessibility/click-events-have-key-events "),
243
+ k("div", $e, [
211
244
  k("img", {
212
245
  ref_key: "ImgElement",
213
- ref: z,
214
- src: W.value,
215
- alt: Z.value ?? void 0,
246
+ ref: v,
247
+ src: D.value,
248
+ alt: q.value ?? void 0,
216
249
  tabindex: "0",
217
- class: F([ie.value]),
218
- onLoad: le,
219
- onClick: a[2] || (a[2] = P((i) => o.zoom ? he() : void 0, ["stop"]))
220
- }, null, 42, Se)
250
+ class: R([ce.value]),
251
+ onLoad: ue,
252
+ onClick: a[2] || (a[2] = O((i) => n.zoom && ve(), ["stop"]))
253
+ }, null, 42, Be),
254
+ T(z(
255
+ w(r),
256
+ { class: "m-fullscreen-img-loader" },
257
+ null,
258
+ 512
259
+ /* NEED_PATCH */
260
+ ), [
261
+ [ze, x.value]
262
+ ])
221
263
  ])
222
- ], 40, ke));
264
+ ], 40, He));
223
265
  }
224
- }), ae = (n, e) => {
225
- const t = n.__vccOpts || n;
266
+ }), ie = (o, e) => {
267
+ const t = o.__vccOpts || o;
226
268
  for (const [s, r] of e)
227
269
  t[s] = r;
228
270
  return t;
229
- }, Be = /* @__PURE__ */ ae(He, [["__scopeId", "data-v-42226ee7"]]), ne = "m-fullscreen-is-open";
230
- class $e {
271
+ }, _e = /* @__PURE__ */ ie(Me, [["__scopeId", "data-v-037cf196"]]), ae = "m-fullscreen-is-open";
272
+ class Fe {
231
273
  constructor() {
232
- f(this, "options");
233
- f(this, "defaultOptions", {
274
+ g(this, "options");
275
+ g(this, "defaultOptions", {
234
276
  scaleOnHover: !1,
235
277
  blurOnHover: !1,
236
278
  disabled: !1,
@@ -241,9 +283,9 @@ class $e {
241
283
  easing: "ease-in-out"
242
284
  }
243
285
  });
244
- f(this, "mouseEnterListener");
245
- f(this, "mouseLeaveListener");
246
- f(this, "renderPreviewListener");
286
+ g(this, "mouseEnterListener");
287
+ g(this, "mouseLeaveListener");
288
+ g(this, "renderPreviewListener");
247
289
  }
248
290
  buildOptions(e, t) {
249
291
  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);
@@ -284,10 +326,10 @@ class $e {
284
326
  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 = "";
285
327
  }
286
328
  renderPreview(e) {
287
- return e.classList.add(ne), Oe(Be, {
329
+ return e.classList.add(ae), Oe(_e, {
288
330
  props: {
289
331
  ...this.options,
290
- openInstanceClass: ne,
332
+ openInstanceClass: ae,
291
333
  clickedElement: e,
292
334
  clickedElementBounds: e.getBoundingClientRect()
293
335
  },
@@ -301,18 +343,18 @@ class $e {
301
343
  e.style.zIndex = "1", this.options.scaleOnHover && (e.style.transform = "scale(1.04)"), this.options.blurOnHover && (e.style.filter = "blur(3px)");
302
344
  }
303
345
  }
304
- let $;
305
- const U = {
306
- mounted(n, e) {
307
- return $ = new $e(), $.create(n, e);
346
+ let _;
347
+ const V = {
348
+ mounted(o, e) {
349
+ return _ = new Fe(), _.create(o, e);
308
350
  },
309
- updated(n, e) {
310
- return $.update(n, e);
351
+ updated(o, e) {
352
+ return _.update(o, e);
311
353
  },
312
- unmounted(n) {
313
- return $.remove(n);
354
+ unmounted(o) {
355
+ return _.remove(o);
314
356
  }
315
- }, Me = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", _e = {
357
+ }, Ne = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", Re = {
316
358
  baseClass: "m-lazy-img",
317
359
  loadedClass: "m-lazy-loaded",
318
360
  loadingClass: "m-lazy-loading",
@@ -326,14 +368,14 @@ const U = {
326
368
  threshold: 0.1
327
369
  }
328
370
  };
329
- class Re {
371
+ class Te {
330
372
  constructor(e = {}) {
331
- f(this, "observers", []);
332
- f(this, "defaultOptions", _e);
333
- f(this, "options");
334
- f(this, "onImgLoadedCallback");
335
- f(this, "onImgErrorCallback");
336
- f(this, "hasImgLoaded", !1);
373
+ g(this, "observers", []);
374
+ g(this, "defaultOptions", Re);
375
+ g(this, "options");
376
+ g(this, "onImgLoadedCallback");
377
+ g(this, "onImgErrorCallback");
378
+ g(this, "hasImgLoaded", !1);
337
379
  this.options = this.buildOptions(e), this.onImgLoadedCallback = this.imageIsLoaded.bind(this), this.onImgErrorCallback = this.imageHasError.bind(this);
338
380
  }
339
381
  async loadErrorPhoto() {
@@ -439,18 +481,18 @@ class Re {
439
481
  s.src = t;
440
482
  }
441
483
  handleIntersectionObserver(e, t, s, r) {
442
- var l, p;
484
+ var l, u;
443
485
  this.observers.push(r);
444
- for (const g of s)
445
- if (g.isIntersecting) {
446
- if ((p = (l = this.options).onIntersecting) == null || p.call(l, g.target), this.options.observerOnce && r.unobserve(e), this.options.loadOnce && this.hasImgLoaded)
486
+ for (const y of s)
487
+ if (y.isIntersecting) {
488
+ if ((u = (l = this.options).onIntersecting) == null || u.call(l, y.target), this.options.observerOnce && r.unobserve(e), this.options.loadOnce && this.hasImgLoaded)
447
489
  return;
448
490
  this.loadImage(e, t);
449
491
  }
450
492
  }
451
493
  createObserver(e, t) {
452
- const s = (p, g) => {
453
- this.handleIntersectionObserver(e, t, p, g);
494
+ const s = (u, y) => {
495
+ this.handleIntersectionObserver(e, t, u, y);
454
496
  }, r = this.options.observerOptions;
455
497
  new IntersectionObserver(s, r).observe(e);
456
498
  }
@@ -467,7 +509,7 @@ class Re {
467
509
  async add(e, t) {
468
510
  if (this.hasBgImgMode(t) && this.isPictureElement(e))
469
511
  throw new Error(`[MazLazyImg] You can't use the "bg-image" mode with "<picture />" element`);
470
- setTimeout(() => this.setBaseClass(e), 0), e.getAttribute("src") || this.setImgSrc(e, Me), await this.bindUpdateHandler(e, t, "bind");
512
+ setTimeout(() => this.setBaseClass(e), 0), e.getAttribute("src") || this.setImgSrc(e, Ne), await this.bindUpdateHandler(e, t, "bind");
471
513
  }
472
514
  async update(e, t) {
473
515
  t.value !== t.oldValue && (this.hasImgLoaded = !1, this.removeAllStateClasses(e), await this.bindUpdateHandler(e, t, "update"));
@@ -479,22 +521,22 @@ class Re {
479
521
  this.observers = [];
480
522
  }
481
523
  }
482
- let M;
483
- const Fe = {
484
- created(n, e) {
524
+ let F;
525
+ const De = {
526
+ created(o, e) {
485
527
  const t = typeof e.value == "object" ? e.value : {};
486
- M = new Re(t), M.add(n, e);
528
+ F = new Te(t), F.add(o, e);
487
529
  },
488
- updated(n, e) {
489
- M.update(n, e);
530
+ updated(o, e) {
531
+ F.update(o, e);
490
532
  },
491
- unmounted(n, e) {
492
- M.remove(n, e);
533
+ unmounted(o, e) {
534
+ F.remove(o, e);
493
535
  }
494
- }, Ne = { class: "m-gallery__wrapper maz-flex maz-flex-1" }, Te = ["alt"], De = {
536
+ }, Ue = { class: "m-gallery__wrapper maz-flex maz-flex-1" }, We = ["alt"], Ze = {
495
537
  key: 0,
496
538
  class: "m-gallery__remaining-layer maz-flex maz-bg-overlay maz-flex-center"
497
- }, Ue = { class: "maz-text-2xl maz-text-white" }, We = /* @__PURE__ */ oe({
539
+ }, Ve = { class: "maz-text-2xl maz-text-white" }, qe = /* @__PURE__ */ re({
498
540
  __name: "MazGallery",
499
541
  props: {
500
542
  /**
@@ -531,83 +573,80 @@ const Fe = {
531
573
  /** Choose color of borders between images - Should be a CSS color or CSS variable - Ex: `#000` or `var(--maz-color-bg-light)` */
532
574
  separatorColor: { type: String, default: "transparent" }
533
575
  },
534
- setup(n) {
535
- Ce((m) => ({
536
- "37b3f3e3": n.separatorColor
537
- }));
538
- const e = n, t = _(() => import("./no-photography-PGT8fxs_.mjs"));
539
- ze(() => {
576
+ setup(o) {
577
+ const e = o, t = N(() => import("./no-photography-PGT8fxs_.mjs"));
578
+ ke(() => {
540
579
  e.imagesShownCount > 5 && console.warn('[MazUI](m-gallery) The maximum of "images-shown-count" is 5');
541
580
  });
542
- const s = E(() => {
543
- const m = e.noWidth, d = e.width, c = e.noHeight, u = e.height;
581
+ const s = C(() => {
582
+ const h = e.noWidth, m = e.width, c = e.noHeight, d = e.height;
544
583
  return {
545
- ...m ? {} : {
546
- flex: `0 0 ${typeof d}` == "number" ? `${d}px` : d,
547
- width: typeof d == "number" ? `${d}px` : d
584
+ ...h ? {} : {
585
+ flex: `0 0 ${typeof m}` == "number" ? `${m}px` : m,
586
+ width: typeof m == "number" ? `${m}px` : m
548
587
  },
549
588
  ...c ? {} : {
550
- height: typeof u == "number" ? `${u}px` : `${u}`,
551
- minHeight: typeof u == "number" ? `${u}px` : `${u}`
589
+ height: typeof d == "number" ? `${d}px` : `${d}`,
590
+ minHeight: typeof d == "number" ? `${d}px` : `${d}`
552
591
  }
553
592
  };
554
- }), 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(
555
- (m) => typeof m == "object" ? { ...m, thumbnail: m.thumbnail ?? m.src } : { src: m, thumbnail: m, alt: void 0 }
556
- )), g = E(() => p.value.slice(0, r.value)), C = E(() => p.value.slice(r.value, e.images.length));
557
- function w(m) {
558
- return e.noRemaining ? !1 : (l.value && m + 1) === g.value.length;
593
+ }), 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(
594
+ (h) => typeof h == "object" ? { ...h, thumbnail: h.thumbnail ?? h.src } : { src: h, thumbnail: h, alt: void 0 }
595
+ )), y = C(() => u.value.slice(0, r.value)), x = C(() => u.value.slice(r.value, e.images.length));
596
+ function L(h) {
597
+ return e.noRemaining ? !1 : (l.value && h + 1) === y.value.length;
559
598
  }
560
- return (m, d) => n.images.length > 0 || n.hasEmptyLayer ? (b(), A(
599
+ return (h, m) => o.images.length > 0 || o.hasEmptyLayer ? (b(), A(
561
600
  "div",
562
601
  {
563
602
  key: 0,
564
- class: F(["m-gallery maz-flex", { "maz-rounded": !n.noRadius }]),
565
- style: ee([s.value])
603
+ class: R(["m-gallery maz-flex", { "maz-rounded": !o.noRadius }]),
604
+ style: se([s.value, { "--gallery-separator-color": o.separatorColor }])
566
605
  },
567
606
  [
568
- k("section", Ne, [
607
+ k("section", Ue, [
569
608
  (b(!0), A(
570
- te,
609
+ ne,
571
610
  null,
572
- se(g.value, (c, u) => (b(), A(
611
+ oe(y.value, (c, d) => (b(), A(
573
612
  "figure",
574
613
  {
575
- key: u,
576
- class: F(["m-gallery__item !maz-my-0 maz-flex maz-flex-center", [`m-gallery__item--${u + 1}`]])
614
+ key: d,
615
+ class: R(["m-gallery__item !maz-my-0 maz-flex maz-flex-center", [`m-gallery__item--${d + 1}`]])
577
616
  },
578
617
  [
579
- R(k("img", {
618
+ T(k("img", {
580
619
  class: "m-gallery__item__image maz-flex-1",
581
620
  src: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
582
621
  alt: c.alt,
583
622
  loading: "lazy"
584
- }, null, 8, Te), [
585
- [L(Fe), { src: c.thumbnail, disabled: !n.lazy }, "bg-image"],
586
- [L(U), {
623
+ }, null, 8, We), [
624
+ [w(De), { src: c.thumbnail, disabled: !o.lazy }, "bg-image"],
625
+ [w(V), {
587
626
  src: c.src,
588
627
  alt: c.alt,
589
- disabled: n.noZoom || w(u),
590
- blurOnHover: n.blur,
591
- scaleOnHover: n.scale
628
+ disabled: o.noZoom || L(d),
629
+ blurOnHover: o.blur,
630
+ scaleOnHover: o.scale
592
631
  }]
593
632
  ]),
594
- w(u) ? R((b(), A("div", De, [
633
+ L(d) ? T((b(), A("div", Ze, [
595
634
  k(
596
635
  "span",
597
- Ue,
598
- "+" + xe(l.value),
636
+ Ve,
637
+ "+" + Pe(l.value),
599
638
  1
600
639
  /* TEXT */
601
640
  )
602
641
  ])), [
603
- [L(U), {
642
+ [w(V), {
604
643
  src: c.src,
605
644
  alt: c.alt,
606
- disabled: n.noZoom,
645
+ disabled: o.noZoom,
607
646
  blurOnHover: !1,
608
- scaleOnHover: n.scale
647
+ scaleOnHover: o.scale
609
648
  }]
610
- ]) : O("v-if", !0)
649
+ ]) : S("v-if", !0)
611
650
  ],
612
651
  2
613
652
  /* CLASS */
@@ -615,28 +654,28 @@ const Fe = {
615
654
  128
616
655
  /* KEYED_FRAGMENT */
617
656
  )),
618
- n.hasEmptyLayer && n.images.length === 0 ? (b(), A(
657
+ o.hasEmptyLayer && o.images.length === 0 ? (b(), A(
619
658
  "div",
620
659
  {
621
660
  key: 0,
622
- class: F(["empty-layer maz-flex maz-w-full maz-bg-color-light maz-text-normal maz-flex-center", { "maz-rounded-xl": !n.noRadius }]),
623
- style: ee([s.value])
661
+ class: R(["empty-layer maz-flex maz-w-full maz-bg-color-light maz-text-normal maz-flex-center", { "maz-rounded-xl": !o.noRadius }]),
662
+ style: se([s.value])
624
663
  },
625
664
  [
626
- x(L(t), { class: "maz-h-8 maz-w-8" })
665
+ z(w(t), { class: "maz-h-8 maz-w-8" })
627
666
  ],
628
667
  6
629
668
  /* CLASS, STYLE */
630
- )) : O("v-if", !0)
669
+ )) : S("v-if", !0)
631
670
  ]),
632
671
  (b(!0), A(
633
- te,
672
+ ne,
634
673
  null,
635
- se(C.value, (c, u) => R((b(), A("div", {
636
- key: u,
674
+ oe(x.value, (c, d) => T((b(), A("div", {
675
+ key: d,
637
676
  class: "m-gallery__hidden"
638
677
  })), [
639
- [L(U), { src: c.src, disabled: n.noZoom }]
678
+ [w(V), { src: c.src, disabled: o.noZoom }]
640
679
  ])),
641
680
  128
642
681
  /* KEYED_FRAGMENT */
@@ -644,10 +683,10 @@ const Fe = {
644
683
  ],
645
684
  6
646
685
  /* CLASS, STYLE */
647
- )) : O("v-if", !0);
686
+ )) : S("v-if", !0);
648
687
  }
649
- }), qe = /* @__PURE__ */ ae(We, [["__scopeId", "data-v-d7c3127b"]]);
688
+ }), Ye = /* @__PURE__ */ ie(qe, [["__scopeId", "data-v-3b59e0cd"]]);
650
689
  export {
651
- qe as M,
652
- ae as _
690
+ Ye as M,
691
+ ie as _
653
692
  };