maz-ui 3.43.4 → 3.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (358) hide show
  1. package/components/MazAccordion.d.ts +2 -2
  2. package/components/MazAccordion.mjs +84 -84
  3. package/components/MazAnimatedCounter.mjs +9 -10
  4. package/components/MazAvatar.d.ts +3 -3
  5. package/components/MazAvatar.mjs +1 -1
  6. package/components/MazBackdrop.d.ts +2 -2
  7. package/components/MazBackdrop.mjs +12 -10
  8. package/components/MazBadge.d.ts +2 -2
  9. package/components/MazBadge.mjs +3 -4
  10. package/components/MazBottomSheet.mjs +1 -1
  11. package/components/MazBtn.d.ts +7 -5
  12. package/components/MazBtn.mjs +1 -1
  13. package/components/MazCard.d.ts +3 -3
  14. package/components/MazCard.mjs +1 -1
  15. package/components/MazCardSpotlight.d.ts +2 -2
  16. package/components/MazCardSpotlight.mjs +4 -5
  17. package/components/MazCarousel.d.ts +2 -2
  18. package/components/MazCarousel.mjs +1 -1
  19. package/components/MazChart.d.ts +1 -1
  20. package/components/MazCheckbox.d.ts +2 -2
  21. package/components/MazCheckbox.mjs +10 -11
  22. package/components/MazCircularProgressBar.d.ts +1 -1
  23. package/components/MazCircularProgressBar.mjs +21 -23
  24. package/components/MazDialog.d.ts +2 -2
  25. package/components/MazDialog.mjs +1 -1
  26. package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +17 -14
  27. package/components/MazDialogPromise.mjs +1 -1
  28. package/components/MazDrawer.d.ts +2 -2
  29. package/components/MazDrawer.mjs +71 -69
  30. package/components/MazDropdown.d.ts +7 -6
  31. package/components/MazDropdown.mjs +130 -128
  32. package/components/MazDropzone.d.ts +1 -1
  33. package/components/MazDropzone.mjs +1 -1
  34. package/components/MazExpandAnimation.d.ts +2 -2
  35. package/components/MazExpandAnimation.mjs +26 -26
  36. package/components/MazFullscreenLoader.d.ts +2 -2
  37. package/components/MazFullscreenLoader.mjs +11 -10
  38. package/components/MazGallery.d.ts +2 -2
  39. package/components/MazGallery.mjs +1 -1
  40. package/components/MazIcon.mjs +45 -34
  41. package/components/MazInput.d.ts +4 -4
  42. package/components/MazInput.mjs +1 -1
  43. package/components/MazInputCode.d.ts +2 -2
  44. package/components/MazInputCode.mjs +4 -5
  45. package/components/MazInputNumber.d.ts +2 -2
  46. package/components/MazInputNumber.mjs +1 -1
  47. package/components/MazInputPrice.d.ts +2 -2
  48. package/components/MazInputPrice.mjs +1 -1
  49. package/components/MazInputTags.d.ts +7 -2
  50. package/components/MazInputTags.mjs +1 -1
  51. package/components/MazLazyImg.d.ts +2 -2
  52. package/components/MazLazyImg.mjs +1 -1
  53. package/components/MazLink.d.ts +6 -6
  54. package/components/MazLink.mjs +3 -4
  55. package/components/MazLoadingBar.d.ts +2 -2
  56. package/components/MazLoadingBar.mjs +17 -18
  57. package/components/MazPagination.d.ts +3 -3
  58. package/components/MazPagination.mjs +1 -1
  59. package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +1 -1
  60. package/components/MazPhoneNumberInput/types.d.ts +5 -5
  61. package/components/MazPhoneNumberInput/use-libphonenumber.d.ts +1 -1
  62. package/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +1 -1
  63. package/components/MazPhoneNumberInput.d.ts +8 -8
  64. package/components/MazPhoneNumberInput.mjs +1 -1
  65. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
  66. package/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +2 -2
  67. package/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
  68. package/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
  69. package/components/MazPicker/types.d.ts +4 -4
  70. package/components/MazPicker/utils.d.ts +4 -4
  71. package/components/MazPicker.d.ts +3 -3
  72. package/components/MazPicker.mjs +1 -1
  73. package/components/MazPullToRefresh.d.ts +2 -2
  74. package/components/MazPullToRefresh.mjs +1 -1
  75. package/components/MazRadio.mjs +8 -9
  76. package/components/MazRadioButtons.d.ts +2 -2
  77. package/components/MazRadioButtons.mjs +44 -42
  78. package/components/MazReadingProgressBar.d.ts +2 -2
  79. package/components/MazReadingProgressBar.mjs +12 -13
  80. package/components/MazSelect.d.ts +4 -4
  81. package/components/MazSelect.mjs +1 -1
  82. package/components/MazSlider/utils.d.ts +4 -4
  83. package/components/MazSlider.mjs +100 -87
  84. package/components/MazSpinner.mjs +6 -7
  85. package/components/MazStepper.d.ts +3 -3
  86. package/components/MazStepper.mjs +1 -1
  87. package/components/MazSwitch.d.ts +2 -2
  88. package/components/MazSwitch.mjs +6 -6
  89. package/components/MazTable.d.ts +13 -10
  90. package/components/MazTable.mjs +1 -1
  91. package/components/MazTableCell.mjs +4 -5
  92. package/components/MazTableRow.d.ts +2 -2
  93. package/components/MazTableRow.mjs +4 -5
  94. package/components/MazTableTitle.mjs +2 -3
  95. package/components/MazTabs.d.ts +4 -4
  96. package/components/MazTabsBar.d.ts +7 -5
  97. package/components/MazTabsBar.mjs +1 -1
  98. package/components/MazTabsContent.mjs +5 -4
  99. package/components/MazTabsContentItem.mjs +16 -17
  100. package/components/MazTextarea.d.ts +2 -2
  101. package/components/MazTextarea.mjs +19 -17
  102. package/components/MazTransitionExpand.d.ts +2 -2
  103. package/components/MazTransitionExpand.mjs +19 -18
  104. package/components/assets/MazAccordion.css +1 -1
  105. package/components/assets/MazAnimatedCounter.css +1 -1
  106. package/components/assets/MazAvatar.css +1 -1
  107. package/components/assets/MazBadge.css +1 -1
  108. package/components/assets/MazBottomSheet.css +1 -1
  109. package/components/assets/MazBtn.css +1 -1
  110. package/components/assets/MazCard.css +1 -1
  111. package/components/assets/MazCardSpotlight.css +1 -1
  112. package/components/assets/MazCarousel.css +1 -1
  113. package/components/assets/MazCheckbox.css +1 -1
  114. package/components/assets/MazCircularProgressBar.css +1 -1
  115. package/components/assets/MazDialog.css +1 -1
  116. package/components/assets/MazDialogPromise.css +1 -1
  117. package/components/assets/MazExpandAnimation.css +1 -1
  118. package/components/assets/MazGallery.css +1 -1
  119. package/components/assets/MazInput.css +1 -1
  120. package/components/assets/MazInputCode.css +1 -1
  121. package/components/assets/MazInputNumber.css +1 -1
  122. package/components/assets/MazInputPrice.css +1 -1
  123. package/components/assets/MazInputTags.css +1 -1
  124. package/components/assets/MazLazyImg.css +1 -1
  125. package/components/assets/MazLink.css +1 -1
  126. package/components/assets/MazLoadingBar.css +1 -1
  127. package/components/assets/MazPagination.css +1 -1
  128. package/components/assets/MazPhoneNumberInput.css +1 -1
  129. package/components/assets/MazPicker.css +1 -1
  130. package/components/assets/MazPickerMonthSwitcher.css +1 -1
  131. package/components/assets/MazPickerShortcuts.css +1 -1
  132. package/components/assets/MazPickerYearSwitcher.css +1 -1
  133. package/components/assets/MazPullToRefresh.css +1 -1
  134. package/components/assets/MazRadio.css +1 -1
  135. package/components/assets/MazRadioButtons.css +1 -1
  136. package/components/assets/MazReadingProgressBar.css +1 -1
  137. package/components/assets/MazSelect.css +1 -1
  138. package/components/assets/MazSlider.css +1 -1
  139. package/components/assets/MazSpinner.css +1 -1
  140. package/components/assets/MazStepper.css +1 -1
  141. package/components/assets/MazSwitch.css +1 -1
  142. package/components/assets/MazTable.css +1 -1
  143. package/components/assets/MazTableCell.css +1 -1
  144. package/components/assets/MazTableRow.css +1 -1
  145. package/components/assets/MazTableTitle.css +1 -1
  146. package/components/assets/MazTabsBar.css +1 -1
  147. package/components/assets/MazTabsContentItem.css +1 -1
  148. package/components/assets/MazTextarea.css +1 -1
  149. package/components/assets/MazTransitionExpand.css +1 -1
  150. package/components/chunks/{MazAvatar-DsJvzyS9.mjs → MazAvatar-BU1nJFcV.mjs} +8 -9
  151. package/components/chunks/{MazBadge-CYJlqITD.mjs → MazBadge-CwA0md19.mjs} +4 -5
  152. package/components/chunks/{MazBottomSheet-CIlIdn-2.mjs → MazBottomSheet-DUOIusEi.mjs} +54 -52
  153. package/components/chunks/{MazBtn-CCNGs6oo.mjs → MazBtn-5BSKOcqG.mjs} +35 -36
  154. package/components/chunks/{MazBtn-Ccvl1ZWv.mjs → MazBtn-B1-sTc7F.mjs} +31 -32
  155. package/components/chunks/{MazBtn-BC5OegPu.mjs → MazBtn-BY8WCtM7.mjs} +35 -36
  156. package/components/chunks/{MazBtn-CX4OgPzp.mjs → MazBtn-C5G78zLg.mjs} +35 -36
  157. package/components/chunks/MazBtn-CeVwyYR5.mjs +150 -0
  158. package/components/chunks/{MazBtn-BqgdERYQ.mjs → MazBtn-ColLVUca.mjs} +35 -36
  159. package/components/chunks/{MazBtn-beTASOLt.mjs → MazBtn-DJhQqzja.mjs} +35 -36
  160. package/components/chunks/MazBtn-DuY28-0U.mjs +150 -0
  161. package/components/chunks/{MazBtn-BydIwD1J.mjs → MazBtn-f1mBXJeU.mjs} +31 -32
  162. package/components/chunks/MazBtn-h3WmmaEO.mjs +150 -0
  163. package/components/chunks/MazBtn-zyRLUViT.mjs +150 -0
  164. package/components/chunks/{MazCard-bmiVPg8p.mjs → MazCard-BWxV_Z-i.mjs} +25 -26
  165. package/components/chunks/{MazCarousel-CL0bMygd.mjs → MazCarousel-D5EmW7Sa.mjs} +43 -35
  166. package/components/chunks/{MazCheckbox-DsFbvpp4.mjs → MazCheckbox-BWiMbecz.mjs} +11 -12
  167. package/components/chunks/{MazCheckbox-CCa7grGF.mjs → MazCheckbox-D3PXkt75.mjs} +11 -12
  168. package/components/chunks/{MazDialog-BckFta4N.mjs → MazDialog-CLWKCphI.mjs} +56 -54
  169. package/components/chunks/{MazDialogPromise-Bb6h4hFz.mjs → MazDialogPromise-DVOJwdVp.mjs} +139 -126
  170. package/components/chunks/{MazDropzone-C_8mRUbK.mjs → MazDropzone-Dm2IirHm.mjs} +33 -54
  171. package/components/chunks/MazExpandAnimation-ChSSdQAq.mjs +58 -0
  172. package/components/chunks/{MazGallery-CcpeM_zk.mjs → MazGallery-BlfPe8WG.mjs} +103 -101
  173. package/components/chunks/{MazGallery-6UK5sH9P.mjs → MazGallery-Bn9p1gNb.mjs} +102 -100
  174. package/{modules/chunks/MazIcon-CiNswMKM.mjs → components/chunks/MazIcon-B8A0hQAH.mjs} +45 -34
  175. package/components/chunks/{MazIcon-Cxrv3_OK.mjs → MazIcon-BDGxCy9M.mjs} +45 -34
  176. package/components/chunks/{MazIcon-BKuhvwwq.mjs → MazIcon-D3umgnku.mjs} +45 -34
  177. package/components/chunks/{MazInput-DNwBL54e.mjs → MazInput-BpsE-mdg.mjs} +69 -69
  178. package/components/chunks/{MazInputNumber-BSdVF8-q.mjs → MazInputNumber-DGBYbDSX.mjs} +186 -182
  179. package/components/chunks/{MazInputPrice-osrAz4xd.mjs → MazInputPrice-j2BNMeFp.mjs} +134 -129
  180. package/components/chunks/{MazInputTags-XUWwx6p8.mjs → MazInputTags-CJofVaj5.mjs} +234 -252
  181. package/components/chunks/{MazLazyImg-6qrfqWKr.mjs → MazLazyImg-BFG6FIJZ.mjs} +6 -7
  182. package/components/chunks/{MazLazyImg-BelScAEF.mjs → MazLazyImg-Dboc6Xfz.mjs} +5 -6
  183. package/components/chunks/{MazPagination-DUiHgLAp.mjs → MazPagination-C6ZehQSZ.mjs} +118 -119
  184. package/components/chunks/{MazPhoneNumberInput-HeEEyDu0.mjs → MazPhoneNumberInput-DpWoNQfx.mjs} +707 -695
  185. package/components/chunks/MazPicker-ia2BEmm5.mjs +2531 -0
  186. package/components/chunks/{MazPickerMonthSwitcher-CoV-84J1.mjs → MazPickerMonthSwitcher-CKtfZ_m-.mjs} +19 -19
  187. package/components/chunks/{MazPickerShortcuts-5IfUIwpz.mjs → MazPickerShortcuts-Cc9VoqBw.mjs} +10 -10
  188. package/components/chunks/{MazPickerYearSwitcher-MeptqtZk.mjs → MazPickerYearSwitcher-0b5Wrem9.mjs} +10 -8
  189. package/components/chunks/{MazPullToRefresh-DWbmwlzV.mjs → MazPullToRefresh-CUazP4y2.mjs} +21 -22
  190. package/components/chunks/MazSelect-COJoKXbV.mjs +847 -0
  191. package/components/chunks/MazSpinner-9Jue6cel.mjs +37 -0
  192. package/components/chunks/{MazSpinner-BKjRRWtc.mjs → MazSpinner-BGPOws6a.mjs} +6 -7
  193. package/components/chunks/{MazSpinner-BXxULdoD.mjs → MazSpinner-BWYdqSMP.mjs} +6 -7
  194. package/components/chunks/{MazSpinner-BRgzRI07.mjs → MazSpinner-BZOjTZBN.mjs} +6 -7
  195. package/components/chunks/{MazSpinner-B-svzg-R.mjs → MazSpinner-BaAMq7LI.mjs} +6 -7
  196. package/components/chunks/MazSpinner-Bad2n-0k.mjs +37 -0
  197. package/components/chunks/MazSpinner-BxnVFqUu.mjs +37 -0
  198. package/components/chunks/{MazSpinner-Mvsi6uCt.mjs → MazSpinner-C41VyUup.mjs} +6 -7
  199. package/components/chunks/MazSpinner-C6StE-Mb.mjs +37 -0
  200. package/components/chunks/{MazSpinner-BFXwybUv.mjs → MazSpinner-CNIlbDfg.mjs} +6 -7
  201. package/components/chunks/MazSpinner-Cz2DHV6g.mjs +37 -0
  202. package/components/chunks/MazSpinner-D4CdHpP2.mjs +37 -0
  203. package/{modules/chunks/MazSpinner--jWWogVn.mjs → components/chunks/MazSpinner-DHQH6Bhz.mjs} +6 -7
  204. package/components/chunks/MazSpinner-DRj2VpGA.mjs +37 -0
  205. package/components/chunks/{MazSpinner-C1lg-Klx.mjs → MazSpinner-DkXequnp.mjs} +6 -7
  206. package/components/chunks/MazSpinner-EA5ejB8F.mjs +37 -0
  207. package/components/chunks/{MazSpinner-BtpIL60X.mjs → MazSpinner-RvDGcBng.mjs} +6 -7
  208. package/components/chunks/{MazSpinner-B_WP-2kr.mjs → MazSpinner-V-bFi71W.mjs} +6 -7
  209. package/components/chunks/MazSpinner-aPFlrc5E.mjs +37 -0
  210. package/components/chunks/{MazSpinner-CfA_KEZT.mjs → MazSpinner-nH44Htog.mjs} +6 -7
  211. package/components/chunks/MazSpinner-nOD-7_sU.mjs +37 -0
  212. package/components/chunks/MazSpinner-yZGK-AQe.mjs +37 -0
  213. package/components/chunks/{MazStepper-DDofJsdg.mjs → MazStepper-DxrzKz06.mjs} +94 -83
  214. package/components/chunks/MazTable-DRUj_PZp.mjs +1960 -0
  215. package/components/chunks/{MazTabsBar-BXDEQkZM.mjs → MazTabsBar-xcIIXHx5.mjs} +67 -68
  216. package/components/chunks/{MazTransitionExpand-BwuAIzII.mjs → MazTransitionExpand-B08cSrmL.mjs} +20 -19
  217. package/components/chunks/{examples.mobile.json-um0ibyv5.mjs → examples.mobile.json-JpNGylGv.mjs} +1 -1
  218. package/css/main.css +1 -1
  219. package/modules/assets/MazBtn.css +1 -1
  220. package/modules/assets/MazSpinner.css +1 -1
  221. package/modules/assets/index.css +1 -1
  222. package/modules/chunks/{MazBtn-Czcbhr3Z.cjs → MazBtn-BbCGGxkK.cjs} +2 -2
  223. package/modules/chunks/{MazBtn-CXcW31TK.mjs → MazBtn-UBHTKqaN.mjs} +35 -36
  224. package/modules/chunks/MazIcon-BDSXZYZ8.cjs +1 -0
  225. package/{components/chunks/MazIcon-DtG5ii8R.mjs → modules/chunks/MazIcon-C2ch3jUS.mjs} +45 -34
  226. package/modules/chunks/{MazSpinner-Cw1KnqLM.cjs → MazSpinner-BiyFRA4w.cjs} +1 -1
  227. package/modules/chunks/MazSpinner-C9_xSbZZ.mjs +37 -0
  228. package/modules/chunks/{index-CThtJOu5.mjs → index-Cwbjspv3.mjs} +621 -588
  229. package/modules/chunks/index-tnjajVkX.cjs +124 -0
  230. package/modules/index.cjs +1 -1
  231. package/modules/index.mjs +34 -35
  232. package/nuxt/index.json +2 -2
  233. package/nuxt/index.mjs +3 -4
  234. package/nuxt/types.d.mts +24 -0
  235. package/nuxt/types.d.ts +24 -0
  236. package/package.json +77 -83
  237. package/resolvers/unplugin-directives-resolver.d.ts +1 -1
  238. package/resolvers/unplugin-vue-components-resolver.d.ts +1 -1
  239. package/tailwindcss/tailwind.config.ts +9 -2
  240. package/tailwindcss/utils/colors.ts +3 -3
  241. package/tailwindcss/variables/colors.ts +12 -12
  242. package/tailwindcss/variables/utilities.ts +2 -2
  243. package/tailwindcss/variables/z-indexes.ts +12 -11
  244. package/types/components/MazAccordion.vue.d.ts +2 -2
  245. package/types/components/MazAvatar.vue.d.ts +3 -3
  246. package/types/components/MazBackdrop.vue.d.ts +2 -2
  247. package/types/components/MazBadge.vue.d.ts +2 -2
  248. package/types/components/MazBtn.vue.d.ts +7 -5
  249. package/types/components/MazCard.vue.d.ts +3 -3
  250. package/types/components/MazCardSpotlight.vue.d.ts +2 -2
  251. package/types/components/MazCarousel.vue.d.ts +2 -2
  252. package/types/components/MazChart.vue.d.ts +1 -1
  253. package/types/components/MazCheckbox.vue.d.ts +2 -2
  254. package/types/components/MazCircularProgressBar.vue.d.ts +1 -1
  255. package/types/components/MazDialog.vue.d.ts +2 -2
  256. package/types/components/MazDialogPromise/use-maz-dialog-promise.d.ts +17 -14
  257. package/types/components/MazDrawer.vue.d.ts +2 -2
  258. package/types/components/MazDropdown.vue.d.ts +7 -6
  259. package/types/components/MazDropzone.vue.d.ts +1 -1
  260. package/types/components/MazExpandAnimation.vue.d.ts +2 -2
  261. package/types/components/MazFullscreenLoader.vue.d.ts +2 -2
  262. package/types/components/MazGallery.vue.d.ts +2 -2
  263. package/types/components/MazInput.vue.d.ts +4 -4
  264. package/types/components/MazInputCode.vue.d.ts +2 -2
  265. package/types/components/MazInputNumber.vue.d.ts +2 -2
  266. package/types/components/MazInputPrice.vue.d.ts +2 -2
  267. package/types/components/MazInputTags.vue.d.ts +7 -2
  268. package/types/components/MazLazyImg.vue.d.ts +2 -2
  269. package/types/components/MazLink.vue.d.ts +6 -6
  270. package/types/components/MazLoadingBar.vue.d.ts +2 -2
  271. package/types/components/MazPagination.vue.d.ts +3 -3
  272. package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +1 -1
  273. package/types/components/MazPhoneNumberInput/types.d.ts +5 -5
  274. package/types/components/MazPhoneNumberInput/use-libphonenumber.d.ts +1 -1
  275. package/types/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +1 -1
  276. package/types/components/MazPhoneNumberInput.vue.d.ts +8 -8
  277. package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarGrid.vue.d.ts +1 -1
  278. package/types/components/MazPicker/MazPickerCalendarMonth/MazPickerCalendarMonth.vue.d.ts +2 -2
  279. package/types/components/MazPicker/MazPickerFooter.vue.d.ts +1 -1
  280. package/types/components/MazPicker/MazPickerTime.vue.d.ts +1 -1
  281. package/types/components/MazPicker/types.d.ts +4 -4
  282. package/types/components/MazPicker/utils.d.ts +4 -4
  283. package/types/components/MazPicker.vue.d.ts +3 -3
  284. package/types/components/MazPullToRefresh.vue.d.ts +2 -2
  285. package/types/components/MazRadioButtons.vue.d.ts +2 -2
  286. package/types/components/MazReadingProgressBar.vue.d.ts +2 -2
  287. package/types/components/MazSelect.vue.d.ts +4 -4
  288. package/types/components/MazSlider/utils.d.ts +4 -4
  289. package/types/components/MazStepper.vue.d.ts +3 -3
  290. package/types/components/MazSwitch.vue.d.ts +2 -2
  291. package/types/components/MazTable.vue.d.ts +13 -10
  292. package/types/components/MazTableRow.vue.d.ts +2 -2
  293. package/types/components/MazTabs.vue.d.ts +4 -4
  294. package/types/components/MazTabsBar.vue.d.ts +7 -5
  295. package/types/components/MazTextarea.vue.d.ts +2 -2
  296. package/types/components/MazTransitionExpand.vue.d.ts +2 -2
  297. package/types/modules/composables/use-reading-time.d.ts +5 -5
  298. package/types/modules/composables/use-theme-handler.d.ts +2 -2
  299. package/types/modules/directives/closable.d.ts +2 -2
  300. package/types/modules/directives/tooltip/index.d.ts +4 -4
  301. package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +2 -2
  302. package/types/modules/directives/v-lazy-img/index.d.ts +1 -1
  303. package/types/modules/filters/capitalize.d.ts +1 -1
  304. package/types/modules/filters/currency.d.ts +1 -1
  305. package/types/modules/filters/date.d.ts +1 -1
  306. package/types/modules/filters/index.d.ts +8 -4
  307. package/types/modules/filters/number.d.ts +1 -1
  308. package/types/modules/filters/telephone.d.ts +1 -1
  309. package/types/modules/helpers/idle-timeout/idle-timeout-handler.d.ts +1 -1
  310. package/types/modules/helpers/mount-component.d.ts +2 -2
  311. package/types/modules/helpers/normalize-string.d.ts +2 -2
  312. package/types/modules/helpers/swipe-handler.d.ts +2 -2
  313. package/types/modules/helpers/user-visibility/types.d.ts +2 -2
  314. package/types/modules/plugins/aos/index.d.ts +3 -3
  315. package/types/modules/plugins/index.d.ts +2 -2
  316. package/types/modules/plugins/toaster/MazToast.vue.d.ts +3 -3
  317. package/types/modules/plugins/toaster/index.d.ts +1 -2
  318. package/types/modules/plugins/toaster/types.d.ts +6 -6
  319. package/types/modules/plugins/wait/utils.d.ts +4 -4
  320. package/types/resolvers/unplugin-directives-resolver.d.ts +1 -1
  321. package/types/resolvers/unplugin-vue-components-resolver.d.ts +1 -1
  322. package/types/tailwindcss/tailwind.config.d.ts +71 -9
  323. package/types/tailwindcss/variables/z-indexes.d.ts +11 -11
  324. package/components/chunks/MazBtn-BOb7Fg_d.mjs +0 -151
  325. package/components/chunks/MazBtn-DpkJQ_3W.mjs +0 -151
  326. package/components/chunks/MazBtn-Dw_CR_0X.mjs +0 -151
  327. package/components/chunks/MazBtn-_NGDIlQK.mjs +0 -151
  328. package/components/chunks/MazExpandAnimation-Cin7sZ3I.mjs +0 -58
  329. package/components/chunks/MazPicker-CltoTa2Z.mjs +0 -2477
  330. package/components/chunks/MazSelect-DDKbowf3.mjs +0 -835
  331. package/components/chunks/MazSpinner-2ti3NQjo.mjs +0 -38
  332. package/components/chunks/MazSpinner-BZUmasIf.mjs +0 -38
  333. package/components/chunks/MazSpinner-C-lFmcUR.mjs +0 -38
  334. package/components/chunks/MazSpinner-C75WMoEA.mjs +0 -38
  335. package/components/chunks/MazSpinner-CA38Ikqe.mjs +0 -38
  336. package/components/chunks/MazSpinner-CAHOYqvB.mjs +0 -38
  337. package/components/chunks/MazSpinner-COOp2WX8.mjs +0 -38
  338. package/components/chunks/MazSpinner-D-ONjGGv.mjs +0 -38
  339. package/components/chunks/MazSpinner-DJkziC4O.mjs +0 -38
  340. package/components/chunks/MazSpinner-Di0F6oZz.mjs +0 -38
  341. package/components/chunks/MazSpinner-EcA0uOQv.mjs +0 -38
  342. package/components/chunks/MazSpinner-s_0BLDqW.mjs +0 -38
  343. package/components/chunks/MazTable-B9JiJ2B2.mjs +0 -1950
  344. package/modules/chunks/MazIcon-DdFYd3W8.cjs +0 -1
  345. package/modules/chunks/index-RvIMpzcQ.cjs +0 -124
  346. package/nuxt/runtime/composables/{use-aos.mjs → use-aos.js} +0 -0
  347. package/nuxt/runtime/composables/{use-theme-handler.mjs → use-theme-handler.js} +1 -1
  348. package/nuxt/runtime/composables/{use-toast.mjs → use-toast.js} +0 -0
  349. package/nuxt/runtime/composables/{use-wait.mjs → use-wait.js} +0 -0
  350. package/nuxt/runtime/plugins/{aos.mjs → aos.js} +1 -1
  351. package/nuxt/runtime/plugins/{maz-icon-path.mjs → maz-icon-path.js} +0 -0
  352. package/nuxt/runtime/plugins/{toaster.mjs → toaster.js} +1 -1
  353. package/nuxt/runtime/plugins/{v-click-outside.mjs → v-click-outside.js} +1 -1
  354. package/nuxt/runtime/plugins/{v-fullscreen-img.mjs → v-fullscreen-img.js} +1 -1
  355. package/nuxt/runtime/plugins/{v-lazy-img.mjs → v-lazy-img.js} +1 -1
  356. package/nuxt/runtime/plugins/{v-tooltip.mjs → v-tooltip.js} +1 -1
  357. package/nuxt/runtime/plugins/{v-zoom-img.mjs → v-zoom-img.js} +1 -1
  358. package/nuxt/runtime/plugins/{wait.mjs → wait.js} +1 -1
@@ -0,0 +1,1960 @@
1
+ import { openBlock as r, createElementBlock as y, createElementVNode as C, getCurrentInstance as xe, computed as p, defineComponent as x, defineAsyncComponent as Z, ref as L, onMounted as et, useSlots as Pe, normalizeClass as S, normalizeStyle as ie, createCommentVNode as c, renderSlot as I, createBlock as V, unref as b, resolveDynamicComponent as pe, withDirectives as He, mergeProps as Le, toHandlers as tt, vModelDynamic as ot, createTextVNode as re, toDisplayString as Y, withModifiers as ce, withCtx as P, createVNode as M, useCssVars as we, onBeforeMount as Oe, nextTick as Ce, Transition as lt, Fragment as ve, renderList as ke, useAttrs as at, inject as nt, pushScopeId as Ue, popScopeId as qe, toRefs as st, provide as rt, watch as ge } from "vue";
2
+ import '../assets/MazTable.css';const it = {
3
+ xmlns: "http://www.w3.org/2000/svg",
4
+ width: "1em",
5
+ height: "1em",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24"
8
+ }, ut = /* @__PURE__ */ C(
9
+ "path",
10
+ {
11
+ stroke: "currentColor",
12
+ "stroke-linecap": "round",
13
+ "stroke-linejoin": "round",
14
+ "stroke-width": "1.5",
15
+ d: "m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607"
16
+ },
17
+ null,
18
+ -1
19
+ /* HOISTED */
20
+ ), dt = [
21
+ ut
22
+ ];
23
+ function Re(u, n) {
24
+ return r(), y("svg", it, [...dt]);
25
+ }
26
+ const Qe = { render: Re }, ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27
+ __proto__: null,
28
+ default: Qe,
29
+ render: Re
30
+ }, Symbol.toStringTag, { value: "Module" })), pt = {
31
+ xmlns: "http://www.w3.org/2000/svg",
32
+ width: "1em",
33
+ height: "1em",
34
+ fill: "none",
35
+ viewBox: "0 0 24 24"
36
+ }, ft = /* @__PURE__ */ C(
37
+ "path",
38
+ {
39
+ stroke: "currentColor",
40
+ "stroke-linecap": "round",
41
+ "stroke-linejoin": "round",
42
+ "stroke-width": "1.5",
43
+ d: "M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"
44
+ },
45
+ null,
46
+ -1
47
+ /* HOISTED */
48
+ ), mt = [
49
+ ft
50
+ ];
51
+ function vt(u, n) {
52
+ return r(), y("svg", pt, [...mt]);
53
+ }
54
+ const bt = { render: vt }, ht = {
55
+ xmlns: "http://www.w3.org/2000/svg",
56
+ width: "1em",
57
+ height: "1em",
58
+ fill: "none",
59
+ viewBox: "0 0 24 24"
60
+ }, yt = /* @__PURE__ */ C(
61
+ "path",
62
+ {
63
+ stroke: "currentColor",
64
+ "stroke-linecap": "round",
65
+ "stroke-linejoin": "round",
66
+ "stroke-width": "1.5",
67
+ d: "M15.75 19.5 8.25 12l7.5-7.5"
68
+ },
69
+ null,
70
+ -1
71
+ /* HOISTED */
72
+ ), gt = [
73
+ yt
74
+ ];
75
+ function zt(u, n) {
76
+ return r(), y("svg", ht, [...gt]);
77
+ }
78
+ const je = { render: zt }, kt = {
79
+ xmlns: "http://www.w3.org/2000/svg",
80
+ width: "1em",
81
+ height: "1em",
82
+ fill: "none",
83
+ viewBox: "0 0 24 24"
84
+ }, $t = /* @__PURE__ */ C(
85
+ "path",
86
+ {
87
+ stroke: "currentColor",
88
+ "stroke-linecap": "round",
89
+ "stroke-linejoin": "round",
90
+ "stroke-width": "1.5",
91
+ d: "m18.75 4.5-7.5 7.5 7.5 7.5m-6-15L5.25 12l7.5 7.5"
92
+ },
93
+ null,
94
+ -1
95
+ /* HOISTED */
96
+ ), wt = [
97
+ $t
98
+ ];
99
+ function It(u, n) {
100
+ return r(), y("svg", kt, [...wt]);
101
+ }
102
+ const De = { render: It };
103
+ function Ne({
104
+ componentName: u,
105
+ providedId: n
106
+ }) {
107
+ const e = xe();
108
+ return p(() => n ?? `${u}-${e == null ? void 0 : e.uid}`);
109
+ }
110
+ let Be = null;
111
+ function Vt(u, n) {
112
+ Be && clearTimeout(Be), Be = setTimeout(u, n);
113
+ }
114
+ const St = {
115
+ removeAccents: !0,
116
+ caseSensitive: !1,
117
+ replaceSpaces: !0,
118
+ removeSpecialCharacters: !1,
119
+ trim: !0,
120
+ normalizeSpaces: !0,
121
+ removeNumbers: !1,
122
+ customNormalizationForms: ["NFC", "NFKD"]
123
+ };
124
+ function $e(u, n) {
125
+ const e = { ...St, ...n }, o = {
126
+ À: "A",
127
+ Á: "A",
128
+ Â: "A",
129
+ Ã: "A",
130
+ Ä: "A",
131
+ Å: "A",
132
+ à: "a",
133
+ á: "a",
134
+ â: "a",
135
+ ã: "a",
136
+ ä: "a",
137
+ å: "a",
138
+ È: "E",
139
+ É: "E",
140
+ Ê: "E",
141
+ Ë: "E",
142
+ è: "e",
143
+ é: "e",
144
+ ê: "e",
145
+ ë: "e",
146
+ Î: "I",
147
+ Ï: "I",
148
+ í: "I",
149
+ î: "i",
150
+ ï: "i",
151
+ Ô: "O",
152
+ Õ: "O",
153
+ Ö: "O",
154
+ Ø: "O",
155
+ ô: "o",
156
+ õ: "o",
157
+ ö: "o",
158
+ ø: "o",
159
+ Ù: "U",
160
+ Ú: "U",
161
+ Û: "U",
162
+ Ü: "U",
163
+ ù: "u",
164
+ ú: "u",
165
+ û: "u",
166
+ ü: "u",
167
+ Ç: "C",
168
+ ç: "c",
169
+ ÿ: "y",
170
+ Ñ: "N",
171
+ ñ: "n",
172
+ ó: "o"
173
+ };
174
+ let d = u.toString();
175
+ if (e.trim && (d = d.trim()), e.normalizeSpaces && (d = d.replaceAll(/\s+/g, " ")), e.replaceSpaces && (d = d.replaceAll(" ", "-")), e.removeNumbers && (d = d.replaceAll(/\d/g, "")), e.removeAccents && (d = d.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (v) => o[v] || v), d = d.replaceAll(/[\u0300-\u036F]/g, "")), e.caseSensitive === !1 && (d = d.toLowerCase()), e.removeSpecialCharacters && (d = d.replaceAll(/[^\dA-Z-]/gi, "")), e.trim && (d = d.trim()), e.customNormalizationForms)
176
+ for (const v of e.customNormalizationForms)
177
+ d = d.normalize(v);
178
+ return d;
179
+ }
180
+ function Ct(u, n) {
181
+ const e = u.length, o = n.length, d = [];
182
+ for (let v = 0; v <= e; v++)
183
+ d[v] = [v];
184
+ for (let v = 0; v <= o; v++)
185
+ d[0][v] = v;
186
+ for (let v = 1; v <= e; v++)
187
+ for (let B = 1; B <= o; B++) {
188
+ const N = u[v - 1] === n[B - 1] ? 0 : 1;
189
+ d[v][B] = Math.min(
190
+ d[v - 1][B] + 1,
191
+ d[v][B - 1] + 1,
192
+ d[v - 1][B - 1] + N
193
+ );
194
+ }
195
+ return d[e][o];
196
+ }
197
+ function We(u, n) {
198
+ const e = Ct(u, n), o = Math.max(u.length, n.length);
199
+ return 1 - e / o;
200
+ }
201
+ function Bt(u, n, e = 0.75) {
202
+ return We(u, n) >= e;
203
+ }
204
+ function Ae(u, n, e = 0.75) {
205
+ const o = p(
206
+ () => $e(typeof u == "string" ? u : u.value)
207
+ ), d = p(
208
+ () => $e(typeof n == "string" ? n : n.value)
209
+ ), v = p(() => typeof e == "number" ? e : e.value), B = p(() => We(o.value, d.value));
210
+ return {
211
+ isMatching: p(
212
+ () => Bt(o.value, d.value, v.value)
213
+ ),
214
+ score: B
215
+ };
216
+ }
217
+ function Ge(u, n, e) {
218
+ var B;
219
+ u.stopPropagation();
220
+ const o = typeof e.value == "function" ? e.value : e.value.handler, d = typeof e.value == "object" ? e.value.exclude : void 0;
221
+ let v = !1;
222
+ if (d && d.length > 0) {
223
+ for (const N of d)
224
+ if (!v && u.target instanceof HTMLElement) {
225
+ const Q = (B = document.querySelector(N)) == null ? void 0 : B.getAttribute("id");
226
+ v = u.target.getAttribute("id") === Q;
227
+ }
228
+ }
229
+ !n.contains(u.target) && !v && (o == null || o());
230
+ }
231
+ function Ye() {
232
+ return document.ontouchstart === null ? "touchstart" : "click";
233
+ }
234
+ function At(u, n) {
235
+ const e = Ye();
236
+ document.removeEventListener(e, (o) => Ge(o, u, n));
237
+ }
238
+ function Mt(u, n) {
239
+ if (typeof n.value != "function" && typeof n.value == "object" && typeof n.value.handler != "function") {
240
+ console.error("[maz-ui](vClosable) v-closable directive requires a handler function");
241
+ return;
242
+ }
243
+ const e = Ye();
244
+ document.addEventListener(e, (o) => Ge(o, u, n));
245
+ }
246
+ const _t = {
247
+ mounted: Mt,
248
+ unmounted: At
249
+ }, ee = (u, n) => {
250
+ const e = u.__vccOpts || u;
251
+ for (const [o, d] of n)
252
+ e[o] = d;
253
+ return e;
254
+ };
255
+ function Tt(u, n) {
256
+ let e;
257
+ return function(...o) {
258
+ clearTimeout(e), e = setTimeout(() => {
259
+ u.apply(this, o);
260
+ }, n);
261
+ };
262
+ }
263
+ const Kt = {
264
+ key: 0,
265
+ class: "m-input-wrapper-left"
266
+ }, Pt = { class: "m-input-wrapper-input" }, Lt = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], Ot = { key: 0 }, Nt = {
267
+ key: 1,
268
+ class: "m-input-wrapper-right"
269
+ }, Et = /* @__PURE__ */ x({
270
+ inheritAttrs: !1,
271
+ __name: "MazInput",
272
+ props: {
273
+ style: { default: void 0 },
274
+ class: { default: void 0 },
275
+ modelValue: { default: void 0 },
276
+ placeholder: { default: void 0 },
277
+ label: { default: void 0 },
278
+ name: { default: void 0 },
279
+ color: { default: "primary" },
280
+ type: { default: "text" },
281
+ required: { type: Boolean, default: !1 },
282
+ disabled: { type: Boolean, default: !1 },
283
+ readonly: { type: Boolean, default: !1 },
284
+ id: { default: void 0 },
285
+ error: { type: Boolean, default: !1 },
286
+ success: { type: Boolean, default: !1 },
287
+ warning: { type: Boolean, default: !1 },
288
+ hint: { default: void 0 },
289
+ inputClasses: { default: void 0 },
290
+ noBorder: { type: Boolean, default: !1 },
291
+ noRadius: { type: Boolean, default: !1 },
292
+ inputmode: { default: "text" },
293
+ size: { default: "md" },
294
+ debounce: { type: [Boolean, Number], default: !1 },
295
+ debounceDelay: { default: 500 },
296
+ validButton: { type: Boolean, default: !1 },
297
+ validButtonLoading: { type: Boolean, default: !1 },
298
+ autoFocus: { type: Boolean, default: !1 },
299
+ borderActive: { type: Boolean, default: !1 },
300
+ leftIcon: { default: void 0 },
301
+ rightIcon: { default: void 0 },
302
+ roundedSize: { default: void 0 },
303
+ block: { type: Boolean }
304
+ },
305
+ emits: ["update:model-value", "focus", "blur", "click", "change"],
306
+ setup(u, { emit: n }) {
307
+ const e = u, o = n, d = Z(() => Promise.resolve().then(() => Qt)), v = Z(() => import("./MazIcon-D3umgnku.mjs")), B = Z(() => import("./eye-slash-tjfxO0LK.mjs")), N = Z(() => import("./eye-DqO_Jx56.mjs")), Q = Z(() => Promise.resolve().then(() => no)), _ = L(!1), k = L(!1), j = L(), A = Ne({
308
+ componentName: "MazInput",
309
+ providedId: e.id
310
+ });
311
+ et(() => {
312
+ var a;
313
+ e.autoFocus && ((a = j.value) == null || a.focus());
314
+ });
315
+ const U = p(() => e.type === "password"), z = p(() => _.value ? "text" : e.type), $ = p(() => {
316
+ if (!e.noBorder) {
317
+ if (e.error)
318
+ return "maz-border-danger";
319
+ if (e.success)
320
+ return "maz-border-success";
321
+ if (e.warning)
322
+ return "maz-border-warning";
323
+ if (k.value || e.borderActive) {
324
+ if (e.color === "black")
325
+ return "maz-border-black";
326
+ if (e.color === "danger")
327
+ return "maz-border-danger";
328
+ if (e.color === "info")
329
+ return "maz-border-info";
330
+ if (e.color === "primary")
331
+ return "maz-border-primary";
332
+ if (e.color === "secondary")
333
+ return "maz-border-secondary";
334
+ if (e.color === "success")
335
+ return "maz-border-success";
336
+ if (e.color === "warning")
337
+ return "maz-border-warning";
338
+ if (e.color === "white")
339
+ return "maz-border-white";
340
+ }
341
+ return "--default-border";
342
+ }
343
+ }), O = Pe(), W = p(() => {
344
+ const { required: a, placeholder: K } = e;
345
+ if (K)
346
+ return a ? `${K} *` : K;
347
+ }), h = p(() => X.value !== void 0 && X.value !== ""), J = Tt(
348
+ (a) => {
349
+ o("update:model-value", a);
350
+ },
351
+ typeof e.debounce == "number" ? e.debounce : e.debounceDelay ?? 500
352
+ );
353
+ function te(a) {
354
+ if (e.debounce)
355
+ return J(a);
356
+ o("update:model-value", a);
357
+ }
358
+ const X = p({
359
+ get: () => e.modelValue,
360
+ set: (a) => te(a)
361
+ }), G = p(() => (!!e.label || !!e.hint) && (k.value || !!h.value || !!e.placeholder || ["date", "month", "week"].includes(e.type))), D = p(() => !!e.label || !!e.hint);
362
+ function q() {
363
+ return !!O["right-icon"] || U.value || !!O["valid-button"] || e.validButton || !!e.rightIcon;
364
+ }
365
+ function H() {
366
+ return !!O["left-icon"] || !!e.leftIcon;
367
+ }
368
+ function ne(a) {
369
+ o("focus", a), k.value = !0;
370
+ }
371
+ function se(a) {
372
+ o("blur", a), k.value = !1;
373
+ }
374
+ function oe(a) {
375
+ return o("change", a);
376
+ }
377
+ return (a, K) => (r(), y(
378
+ "div",
379
+ {
380
+ class: S(["m-input", [
381
+ {
382
+ "--is-focused": k.value || a.borderActive,
383
+ "--should-up": G.value,
384
+ "--has-label": D.value,
385
+ "--is-disabled": a.disabled,
386
+ "--is-readonly": a.readonly,
387
+ "--has-z-2": a.error || a.warning || a.success,
388
+ "--has-state": a.error || a.warning || a.success,
389
+ "--block": a.block
390
+ },
391
+ e.class,
392
+ `--${a.color}`,
393
+ `--${a.size}`
394
+ ]]),
395
+ style: ie(a.style)
396
+ },
397
+ [
398
+ C(
399
+ "div",
400
+ {
401
+ class: S(["m-input-wrapper", [
402
+ a.inputClasses,
403
+ $.value,
404
+ a.roundedSize ? `--rounded-${a.roundedSize}` : { "maz-rounded": !a.noRadius }
405
+ ]])
406
+ },
407
+ [
408
+ H() ? (r(), y("div", Kt, [
409
+ c(`
410
+ @slot left-icon - The icon to display on the left of the input
411
+ `),
412
+ a.$slots["left-icon"] || a.leftIcon ? I(a.$slots, "left-icon", { key: 0 }, () => [
413
+ typeof a.leftIcon == "string" ? (r(), V(b(v), {
414
+ key: 0,
415
+ name: a.leftIcon,
416
+ class: "maz-text-xl maz-text-muted"
417
+ }, null, 8, ["name"])) : a.leftIcon ? (r(), V(pe(a.leftIcon), {
418
+ key: 1,
419
+ class: "maz-text-xl maz-text-muted"
420
+ })) : c("v-if", !0)
421
+ ], !0) : c("v-if", !0)
422
+ ])) : c("v-if", !0),
423
+ C("div", Pt, [
424
+ He(C("input", Le({
425
+ id: b(A),
426
+ ref_key: "input",
427
+ ref: j,
428
+ "onUpdate:modelValue": K[0] || (K[0] = (E) => X.value = E),
429
+ type: z.value,
430
+ name: a.name
431
+ }, a.$attrs, {
432
+ inputmode: a.inputmode,
433
+ placeholder: W.value,
434
+ "aria-label": a.label || a.placeholder,
435
+ disabled: a.disabled,
436
+ readonly: a.readonly,
437
+ required: a.required,
438
+ class: "m-input-input"
439
+ }, tt({
440
+ blur: se,
441
+ focus: ne,
442
+ change: oe
443
+ }, !0), {
444
+ onClick: K[1] || (K[1] = (E) => a.$emit("click", E))
445
+ }), null, 16, Lt), [
446
+ [ot, X.value]
447
+ ]),
448
+ a.label || a.hint ? (r(), y(
449
+ "span",
450
+ {
451
+ key: 0,
452
+ class: S(["m-input-label", [
453
+ {
454
+ "maz-text-danger-600": a.error,
455
+ "maz-text-success-600": a.success,
456
+ "maz-text-warning-600": a.warning
457
+ }
458
+ ]])
459
+ },
460
+ [
461
+ re(
462
+ Y(a.hint || a.label) + " ",
463
+ 1
464
+ /* TEXT */
465
+ ),
466
+ a.required ? (r(), y("sup", Ot, "*")) : c("v-if", !0)
467
+ ],
468
+ 2
469
+ /* CLASS */
470
+ )) : c("v-if", !0)
471
+ ]),
472
+ q() ? (r(), y("div", Nt, [
473
+ c(`
474
+ @slot right-icon - The icon to display on the right of the input
475
+ `),
476
+ a.$slots["right-icon"] || a.rightIcon ? I(a.$slots, "right-icon", { key: 0 }, () => [
477
+ typeof a.rightIcon == "string" ? (r(), V(b(v), {
478
+ key: 0,
479
+ name: a.rightIcon,
480
+ class: "maz-text-xl maz-text-muted"
481
+ }, null, 8, ["name"])) : a.rightIcon ? (r(), V(pe(a.rightIcon), {
482
+ key: 1,
483
+ class: "maz-text-xl maz-text-muted"
484
+ })) : c("v-if", !0)
485
+ ], !0) : c("v-if", !0),
486
+ U.value ? (r(), V(b(d), {
487
+ key: 1,
488
+ color: "transparent",
489
+ tabindex: "-1",
490
+ size: "mini",
491
+ onClick: K[2] || (K[2] = ce((E) => _.value = !_.value, ["stop"]))
492
+ }, {
493
+ default: P(() => [
494
+ _.value ? (r(), V(b(B), {
495
+ key: 0,
496
+ class: "maz-text-xl maz-text-muted"
497
+ })) : (r(), V(b(N), {
498
+ key: 1,
499
+ class: "maz-text-xl maz-text-muted"
500
+ }))
501
+ ]),
502
+ _: 1
503
+ /* STABLE */
504
+ })) : c("v-if", !0),
505
+ c(`
506
+ @slot valid-button - Replace the valid button by your own
507
+ `),
508
+ a.$slots["valid-button"] || a.validButton ? I(a.$slots, "valid-button", { key: 2 }, () => [
509
+ M(b(d), {
510
+ color: "transparent",
511
+ disabled: a.disabled,
512
+ tabindex: "-1",
513
+ loading: a.validButtonLoading,
514
+ class: "m-input-valid-button",
515
+ size: "mini",
516
+ type: "submit"
517
+ }, {
518
+ default: P(() => [
519
+ M(b(Q), { class: "maz-text-2xl maz-text-normal" })
520
+ ]),
521
+ _: 1
522
+ /* STABLE */
523
+ }, 8, ["disabled", "loading"])
524
+ ], !0) : c("v-if", !0)
525
+ ])) : c("v-if", !0)
526
+ ],
527
+ 2
528
+ /* CLASS */
529
+ )
530
+ ],
531
+ 6
532
+ /* CLASS, STYLE */
533
+ ));
534
+ }
535
+ }), Te = /* @__PURE__ */ ee(Et, [["__scopeId", "data-v-e9affc48"]]), jt = ["aria-label"], Dt = { class: "m-select-list__no-results" }, Ft = {
536
+ key: 2,
537
+ class: "m-select-list__scroll-wrapper",
538
+ tabindex: "-1"
539
+ }, Ht = { class: "m-select-list-optgroup" }, Ut = ["onClick"], qt = /* @__PURE__ */ x({
540
+ inheritAttrs: !1,
541
+ __name: "MazSelect",
542
+ props: {
543
+ style: { default: void 0 },
544
+ class: { default: void 0 },
545
+ id: { default: void 0 },
546
+ modelValue: { default: void 0 },
547
+ options: { default: void 0 },
548
+ optionValueKey: { default: "value" },
549
+ optionLabelKey: { default: "label" },
550
+ optionInputValueKey: { default: "label" },
551
+ listPosition: { default: "bottom left" },
552
+ itemHeight: { default: void 0 },
553
+ maxListHeight: { default: 240 },
554
+ maxListWidth: { default: void 0 },
555
+ size: { default: "md" },
556
+ color: { default: "primary" },
557
+ search: { type: Boolean },
558
+ searchPlaceholder: { default: "Search in options" },
559
+ open: { type: Boolean },
560
+ multiple: { type: Boolean, default: void 0 },
561
+ required: { type: Boolean },
562
+ disabled: { type: Boolean },
563
+ block: { type: Boolean },
564
+ excludeSelectors: { default: void 0 }
565
+ },
566
+ emits: ["close", "open", "blur", "focus", "change", "update:model-value", "selected-option"],
567
+ setup(u, { expose: n, emit: e }) {
568
+ we((t) => ({
569
+ "10a6fdb0": z.value,
570
+ "3653166f": A.value,
571
+ "44a0b897": U.value
572
+ }));
573
+ const o = u, d = e, v = Z(() => Promise.resolve().then(() => uo)), B = Z(() => Promise.resolve().then(() => ct)), N = Z(() => import("./chevron-down-CzMH-gFW.mjs")), Q = Z(() => import("./no-symbol-QAqP9IlR.mjs"));
574
+ n({
575
+ /** Method to open the option list */
576
+ openList: ae,
577
+ /** Method to close the option list */
578
+ closeList: le
579
+ });
580
+ const _ = L(!1), k = L(), j = p(
581
+ () => ["black", "transparent", "white"].includes(o.color)
582
+ ), A = p(
583
+ () => j.value ? "var(--maz-color-black)" : `var(--maz-color-${o.color}-800)`
584
+ ), U = p(
585
+ () => j.value ? "var(--maz-color-muted)" : `var(--maz-color-${o.color}-100)`
586
+ ), z = p(
587
+ () => j.value ? "var(--maz-color-muted)" : `var(--maz-color-${o.color}-200)`
588
+ ), $ = p(() => _.value || o.open), O = Ne({
589
+ componentName: "MazSelect",
590
+ providedId: o.id
591
+ });
592
+ function W(t) {
593
+ return {
594
+ [o.optionValueKey]: t,
595
+ [o.optionLabelKey]: t,
596
+ [o.optionInputValueKey]: t
597
+ };
598
+ }
599
+ function h(t) {
600
+ return {
601
+ ...t,
602
+ [o.optionValueKey]: t[o.optionValueKey],
603
+ [o.optionLabelKey]: t[o.optionLabelKey],
604
+ [o.optionInputValueKey]: t[o.optionInputValueKey]
605
+ };
606
+ }
607
+ const J = p(() => {
608
+ var s;
609
+ const t = [];
610
+ if (!((s = o.options) != null && s.length))
611
+ return [];
612
+ for (const m of o.options)
613
+ typeof m == "string" || typeof m == "number" || typeof m == "boolean" ? t.push(W(m)) : typeof m == "object" && "options" in m && Array.isArray(m.options) ? t.push(
614
+ { label: m.label, isOptGroup: !0 },
615
+ ...m.options.map(
616
+ (i) => typeof i == "string" || typeof i == "number" || typeof i == "boolean" ? W(i) : h(i)
617
+ )
618
+ ) : t.push(h(m));
619
+ return t;
620
+ }), te = p(
621
+ () => {
622
+ var t;
623
+ return ((t = J.value) == null ? void 0 : t.filter((s) => o.multiple ? Array.isArray(o.modelValue) ? o.modelValue.includes(s[o.optionValueKey]) && !H(s[o.optionValueKey]) : !1 : o.modelValue === s[o.optionValueKey] && !H(s[o.optionValueKey]))) ?? [];
624
+ }
625
+ );
626
+ Oe(() => {
627
+ var t;
628
+ (t = o.options) != null && t.length || console.warn("[maz-ui](MazSelect) you must provide options"), f();
629
+ });
630
+ const X = L(), G = L(), D = L(), q = L();
631
+ function H(t) {
632
+ return t == null;
633
+ }
634
+ function ne(t) {
635
+ var m;
636
+ return (((m = te.value) == null ? void 0 : m.some(
637
+ (i) => i[o.optionValueKey] === t[o.optionValueKey]
638
+ )) ?? !1) && !H(t[o.optionValueKey]);
639
+ }
640
+ const se = p(() => {
641
+ var s;
642
+ if (o.multiple && o.modelValue && Array.isArray(o.modelValue))
643
+ return o.modelValue.map(
644
+ (m) => {
645
+ var i, w;
646
+ return (w = (i = J.value) == null ? void 0 : i.find((F) => F[o.optionValueKey] === m)) == null ? void 0 : w[o.optionInputValueKey];
647
+ }
648
+ ).join(", ");
649
+ const t = (s = J.value) == null ? void 0 : s.find(
650
+ (m) => m[o.optionValueKey] === o.modelValue
651
+ );
652
+ return H(o.modelValue) || t == null ? void 0 : t[o.optionInputValueKey];
653
+ }), oe = p(
654
+ () => o.listPosition.includes("bottom") ? "maz-slide" : "maz-slideinvert"
655
+ ), a = L(""), K = L("");
656
+ function E(t, s) {
657
+ return s && t && $e(t).includes($e(s));
658
+ }
659
+ function be(t) {
660
+ var s;
661
+ return t ? (s = J.value) == null ? void 0 : s.filter((m) => {
662
+ const i = m[o.optionLabelKey], w = m[o.optionValueKey], F = m[o.optionInputValueKey];
663
+ return E(i, t) || E(F, t) || E(w, t) || typeof i == "string" && Ae(i, t, 0.5).isMatching.value || typeof F == "string" && Ae(F, t, 0.5).isMatching.value || typeof w == "string" && Ae(w, t, 0.5).isMatching.value;
664
+ }) : J.value;
665
+ }
666
+ const R = p(() => be(a.value));
667
+ async function le(t) {
668
+ var m, i;
669
+ if (!$.value)
670
+ return;
671
+ if (t && ("relatedTarget" in t && ((m = X.value) != null && m.contains(t.relatedTarget)) || t.type === "keydown"))
672
+ return t.preventDefault();
673
+ const s = t && "relatedTarget" in t && t.relatedTarget instanceof HTMLElement && t.relatedTarget.getAttribute("id");
674
+ if ((i = o.excludeSelectors) != null && i.includes(`#${s}`))
675
+ return t == null ? void 0 : t.preventDefault();
676
+ await Ce(), _.value = !1, k.value = 0, d("close", t);
677
+ }
678
+ async function ae(t) {
679
+ o.disabled || $.value || (t == null || t.preventDefault(), _.value = !0, await g(), d("focus", t), d("open", _.value));
680
+ }
681
+ function fe() {
682
+ var t, s;
683
+ (s = ((t = G.value) == null ? void 0 : t.$el).querySelector("input")) == null || s.focus();
684
+ }
685
+ function Ie(t) {
686
+ _.value ? le(t) : fe();
687
+ }
688
+ function he(t) {
689
+ var s, m;
690
+ a.value = t, (m = ((s = D.value) == null ? void 0 : s.$el).querySelector("input")) == null || m.focus();
691
+ }
692
+ function Ve(t) {
693
+ var m;
694
+ t === "Backspace" && K.value.length > 0 ? K.value = K.value.slice(0, -1) : K.value += t;
695
+ const s = be(K.value);
696
+ s != null && s.length && (k.value = (m = R.value) == null ? void 0 : m.findIndex(
697
+ (i) => i[o.optionValueKey] === s[0][o.optionValueKey]
698
+ ), typeof k.value == "number" && k.value >= 0 && g(k.value)), Vt(() => {
699
+ K.value = "";
700
+ }, 1e3);
701
+ }
702
+ function Se(t) {
703
+ const s = t.key;
704
+ /^[\dA-Za-z\u0400-\u04FF]$/.test(s) ? (t.preventDefault(), ae(t), o.search ? he(s) : Ve(s)) : ue(t);
705
+ }
706
+ function ue(t) {
707
+ const s = t.code, m = ["ArrowUp", "ArrowDown"].includes(s), i = ["Enter", "Space"].includes(s), w = s === "Escape" && $.value;
708
+ m ? ye(t, k.value) : i ? l(t, k.value) : w && le(t);
709
+ }
710
+ function ye(t, s) {
711
+ var w;
712
+ t.preventDefault();
713
+ const m = t.code;
714
+ $.value || ae(t);
715
+ const i = (w = R.value) == null ? void 0 : w.length;
716
+ i && (typeof s == "number" ? s === i - 1 && m === "ArrowDown" ? k.value = 0 : s === 0 && m === "ArrowUp" ? k.value = i - 1 : k.value = m === "ArrowDown" ? s + 1 : s - 1 : k.value = m === "ArrowDown" ? 0 : i - 1, g(k.value));
717
+ }
718
+ function l(t, s) {
719
+ var i, w, F;
720
+ if (t.preventDefault(), !$.value)
721
+ return ae(t);
722
+ const m = s ? ((i = R.value) == null ? void 0 : i[s]) ?? ((w = R.value) == null ? void 0 : w[0]) : (F = R.value) == null ? void 0 : F[0];
723
+ H(m) || T(m);
724
+ }
725
+ async function g(t) {
726
+ var m, i;
727
+ await Ce(), typeof t != "number" && f();
728
+ const s = t ?? k.value;
729
+ if (typeof s == "number" && s >= 0) {
730
+ const w = (m = q.value) == null ? void 0 : m.querySelectorAll(".m-select-list-item");
731
+ (i = w == null ? void 0 : w[s]) == null || i.scrollIntoView({
732
+ behavior: "auto",
733
+ block: "nearest",
734
+ inline: "start"
735
+ });
736
+ }
737
+ }
738
+ function f(t) {
739
+ var m;
740
+ const s = (m = R.value) == null ? void 0 : m.findIndex((i) => {
741
+ var w, F;
742
+ return o.multiple && Array.isArray(o.modelValue) ? t ? t[o.optionValueKey] === i[o.optionValueKey] : [...o.modelValue].reverse()[0] === i[o.optionValueKey] : ((F = (w = te.value) == null ? void 0 : w[0]) == null ? void 0 : F[o.optionValueKey]) === i[o.optionValueKey];
743
+ });
744
+ k.value = s && s >= 0 ? s : 0;
745
+ }
746
+ function T(t, s = !0) {
747
+ var F;
748
+ s && !o.multiple && Ce(() => le()), a.value = "";
749
+ const m = (F = te.value) == null ? void 0 : F.some(
750
+ (de) => de[o.optionValueKey] === t[o.optionValueKey]
751
+ );
752
+ let i = te.value;
753
+ m && o.multiple ? i = i == null ? void 0 : i.filter(
754
+ (de) => de[o.optionValueKey] !== t[o.optionValueKey]
755
+ ) : o.multiple ? i.push(t) : i = [t];
756
+ const w = i.map((de) => de[o.optionValueKey]);
757
+ d("update:model-value", o.multiple ? w : w[0]), d("selected-option", t), f(t), fe();
758
+ }
759
+ return (t, s) => {
760
+ var m;
761
+ return He((r(), y(
762
+ "div",
763
+ {
764
+ ref_key: "mazSelectElement",
765
+ ref: X,
766
+ class: S(["m-select", [
767
+ { "--is-open": $.value, "--disabled": t.disabled, "--block": t.block },
768
+ o.class,
769
+ `--${t.size}`
770
+ ]]),
771
+ style: ie(t.style)
772
+ },
773
+ [
774
+ M(Te, Le({
775
+ id: b(O),
776
+ ref_key: "mazInputComponent",
777
+ ref: G,
778
+ class: "m-select-input"
779
+ }, t.$attrs, {
780
+ required: t.required,
781
+ "border-active": _.value,
782
+ color: t.color,
783
+ "model-value": se.value,
784
+ autocomplete: "off",
785
+ size: t.size,
786
+ block: "",
787
+ disabled: t.disabled,
788
+ onFocus: ce(ae, ["prevent", "stop"]),
789
+ onBlur: ce(le, ["prevent", "stop"]),
790
+ onClick: ce(ae, ["prevent", "stop"]),
791
+ onChange: s[0] || (s[0] = (i) => d("change", i)),
792
+ onKeydown: Se
793
+ }), {
794
+ "right-icon": P(() => [
795
+ C("button", {
796
+ tabindex: "-1",
797
+ type: "button",
798
+ class: "m-select-input__toggle-button maz-custom",
799
+ "aria-label": `${$.value ? "collapse" : "expand"} list of options`,
800
+ onClick: ce(Ie, ["stop"])
801
+ }, [
802
+ M(b(N), { class: "m-select-chevron maz-text-xl" })
803
+ ], 8, jt)
804
+ ]),
805
+ _: 1
806
+ /* STABLE */
807
+ }, 16, ["id", "required", "border-active", "color", "model-value", "size", "disabled"]),
808
+ M(lt, { name: oe.value }, {
809
+ default: P(() => [
810
+ $.value ? (r(), y(
811
+ "div",
812
+ {
813
+ key: 0,
814
+ ref_key: "optionsListElement",
815
+ ref: q,
816
+ class: S(["m-select-list", {
817
+ "--top": t.listPosition.includes("top"),
818
+ "--left": t.listPosition.includes("left"),
819
+ "--right": t.listPosition.includes("right"),
820
+ "--bottom": t.listPosition.includes("bottom")
821
+ }]),
822
+ style: ie({
823
+ maxHeight: `${t.maxListHeight}px`,
824
+ maxWidth: `${t.maxListWidth}px`
825
+ })
826
+ },
827
+ [
828
+ t.search ? (r(), V(Te, {
829
+ key: 0,
830
+ ref_key: "searchInputComponent",
831
+ ref: D,
832
+ modelValue: a.value,
833
+ "onUpdate:modelValue": [
834
+ s[1] || (s[1] = (i) => a.value = i),
835
+ s[2] || (s[2] = (i) => k.value = 0)
836
+ ],
837
+ size: "sm",
838
+ color: t.color,
839
+ placeholder: t.searchPlaceholder,
840
+ name: "search",
841
+ autocomplete: "off",
842
+ tabindex: "-1",
843
+ class: "m-select-list__search-input maz-flex-none",
844
+ "left-icon": b(B),
845
+ onKeydown: ue
846
+ }, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : c("v-if", !0),
847
+ c(`
848
+ @slot No results slot - Displayed when no results corresponding with search query
849
+ `),
850
+ !R.value || R.value.length <= 0 ? I(t.$slots, "no-results", { key: 1 }, () => [
851
+ C("span", Dt, [
852
+ M(b(Q), { class: "maz-h-6 maz-w-6 maz-text-normal" })
853
+ ])
854
+ ], !0) : (r(), y("div", Ft, [
855
+ (r(!0), y(
856
+ ve,
857
+ null,
858
+ ke(R.value, (i, w) => (r(), y(
859
+ ve,
860
+ { key: w },
861
+ [
862
+ c(`
863
+ @slot Custom optgroup label
864
+ @binding {String} label - the label of the optgroup
865
+ `),
866
+ i.label && i.isOptGroup ? I(t.$slots, "optgroup", {
867
+ key: 0,
868
+ label: i.label
869
+ }, () => [
870
+ C(
871
+ "span",
872
+ Ht,
873
+ Y(i.label),
874
+ 1
875
+ /* TEXT */
876
+ )
877
+ ], !0) : (r(), y("button", {
878
+ key: 1,
879
+ tabindex: "-1",
880
+ type: "button",
881
+ class: S(["m-select-list-item maz-custom maz-flex-none", [
882
+ {
883
+ "--is-keyboard-selected": k.value === w,
884
+ "--is-selected": ne(i),
885
+ "--is-none-value": H(i[t.optionValueKey])
886
+ }
887
+ ]]),
888
+ style: ie(t.itemHeight ? { height: `${t.itemHeight}px` } : void 0),
889
+ onClick: ce((F) => T(i), ["prevent", "stop"])
890
+ }, [
891
+ t.multiple ? (r(), V(b(v), {
892
+ key: 0,
893
+ tabindex: "-1",
894
+ "model-value": ne(i),
895
+ size: "sm",
896
+ color: t.color
897
+ }, null, 8, ["model-value", "color"])) : c("v-if", !0),
898
+ c(`
899
+ @slot Custom option
900
+ @binding {Object} option - the option object
901
+ @binding {Boolean} is-selected - if the option is selected
902
+ `),
903
+ I(t.$slots, "default", {
904
+ option: i,
905
+ isSelected: ne(i)
906
+ }, () => [
907
+ C(
908
+ "span",
909
+ null,
910
+ Y(i[t.optionLabelKey]),
911
+ 1
912
+ /* TEXT */
913
+ )
914
+ ], !0)
915
+ ], 14, Ut))
916
+ ],
917
+ 64
918
+ /* STABLE_FRAGMENT */
919
+ ))),
920
+ 128
921
+ /* KEYED_FRAGMENT */
922
+ ))
923
+ ]))
924
+ ],
925
+ 6
926
+ /* CLASS, STYLE */
927
+ )) : c("v-if", !0)
928
+ ]),
929
+ _: 3
930
+ /* FORWARDED */
931
+ }, 8, ["name"])
932
+ ],
933
+ 6
934
+ /* CLASS, STYLE */
935
+ )), [
936
+ [b(_t), {
937
+ exclude: (m = t.excludeSelectors) != null && m.length ? t.excludeSelectors : [],
938
+ handler: le
939
+ }]
940
+ ]);
941
+ };
942
+ }
943
+ }), Fe = /* @__PURE__ */ ee(qt, [["__scopeId", "data-v-fe0403c3"]]), Rt = /* @__PURE__ */ x({
944
+ __name: "MazBtn",
945
+ props: {
946
+ variant: { default: "button" },
947
+ size: { default: "md" },
948
+ color: { default: "primary" },
949
+ type: { default: "button" },
950
+ rounded: { type: Boolean },
951
+ roundedSize: { default: "lg" },
952
+ noRounded: { type: Boolean },
953
+ outline: { type: Boolean },
954
+ pastel: { type: Boolean },
955
+ block: { type: Boolean },
956
+ noUnderline: { type: Boolean },
957
+ loading: { type: Boolean },
958
+ disabled: { type: Boolean },
959
+ fab: { type: Boolean },
960
+ icon: { default: void 0 },
961
+ leftIcon: { default: void 0 },
962
+ rightIcon: { default: void 0 },
963
+ noPadding: { type: Boolean },
964
+ noElevation: { type: Boolean },
965
+ contentClass: { default: void 0 }
966
+ },
967
+ setup(u) {
968
+ const n = u, e = Z(() => import("./MazSpinner-C41VyUup.mjs")), o = Z(() => import("./MazIcon-D3umgnku.mjs")), { href: d, to: v } = at(), B = Pe();
969
+ Oe(() => {
970
+ n.icon && !n.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
971
+ });
972
+ const N = p(() => d ? "a" : v ? "router-link" : "button"), Q = p(
973
+ () => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
974
+ ), _ = p(
975
+ () => (n.loading || n.disabled) && N.value === "button"
976
+ ), k = p(() => _.value ? "--cursor-default" : "--cursor-pointer"), j = p(() => `--is-${n.variant}`), A = p(() => n.loading && n.variant === "button"), U = p(() => !!B["left-icon"] || n.leftIcon), z = p(() => !!B["right-icon"] || n.rightIcon), $ = p(() => U.value || z.value), O = p(() => n.fab && (n.icon || !!B.icon)), W = p(() => N.value === "button" ? n.type : void 0);
977
+ return (h, J) => (r(), V(pe(N.value), {
978
+ disabled: _.value || void 0,
979
+ class: S(["m-btn", [
980
+ `--${h.size}`,
981
+ !h.fab && h.roundedSize && `--rounded-${h.roundedSize}`,
982
+ Q.value,
983
+ k.value,
984
+ j.value,
985
+ {
986
+ "--block": h.block,
987
+ "--no-underline": h.noUnderline,
988
+ "--fab": h.fab,
989
+ "--loading": h.loading,
990
+ "--disabled": _.value,
991
+ "--icon": $.value,
992
+ "--rounded": h.rounded,
993
+ "--no-rounded": h.noRounded,
994
+ "--no-padding": h.noPadding,
995
+ "--no-elevation": h.noElevation
996
+ }
997
+ ]]),
998
+ type: W.value
999
+ }, {
1000
+ default: P(() => [
1001
+ U.value ? (r(), y(
1002
+ "div",
1003
+ {
1004
+ key: 0,
1005
+ class: S(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": A.value }])
1006
+ },
1007
+ [
1008
+ c(`
1009
+ @slot left-icon - The icon to display on the left of the button
1010
+ `),
1011
+ I(h.$slots, "left-icon", {}, () => [
1012
+ typeof h.leftIcon == "string" ? (r(), V(b(o), {
1013
+ key: 0,
1014
+ name: h.leftIcon
1015
+ }, null, 8, ["name"])) : h.leftIcon ? (r(), V(pe(h.leftIcon), { key: 1 })) : c("v-if", !0)
1016
+ ], !0)
1017
+ ],
1018
+ 2
1019
+ /* CLASS */
1020
+ )) : c("v-if", !0),
1021
+ O.value ? (r(), y(
1022
+ "div",
1023
+ {
1024
+ key: 1,
1025
+ class: S(["m-btn__icon", { "maz-invisible": A.value }])
1026
+ },
1027
+ [
1028
+ c(`
1029
+ @slot icon - The icon to display on the fab button
1030
+ `),
1031
+ I(h.$slots, "icon", {}, () => [
1032
+ typeof h.icon == "string" ? (r(), V(b(o), {
1033
+ key: 0,
1034
+ name: h.icon
1035
+ }, null, 8, ["name"])) : h.icon ? (r(), V(pe(h.icon), { key: 1 })) : c("v-if", !0)
1036
+ ], !0)
1037
+ ],
1038
+ 2
1039
+ /* CLASS */
1040
+ )) : c("v-if", !0),
1041
+ h.$slots.default ? (r(), y(
1042
+ "span",
1043
+ {
1044
+ key: 2,
1045
+ class: S([{ "maz-invisible": A.value }, h.contentClass])
1046
+ },
1047
+ [
1048
+ c(`
1049
+ @slot default - The content of the button
1050
+ `),
1051
+ I(h.$slots, "default", {}, void 0, !0)
1052
+ ],
1053
+ 2
1054
+ /* CLASS */
1055
+ )) : c("v-if", !0),
1056
+ z.value ? (r(), y(
1057
+ "div",
1058
+ {
1059
+ key: 3,
1060
+ class: S(["m-btn__icon-right", { "maz-invisible": A.value }])
1061
+ },
1062
+ [
1063
+ c(`
1064
+ @slot right-icon - The icon to display on the right of the button
1065
+ `),
1066
+ I(h.$slots, "right-icon", {}, () => [
1067
+ typeof h.rightIcon == "string" ? (r(), V(b(o), {
1068
+ key: 0,
1069
+ name: h.rightIcon
1070
+ }, null, 8, ["name"])) : h.rightIcon ? (r(), V(pe(h.rightIcon), { key: 1 })) : c("v-if", !0)
1071
+ ], !0)
1072
+ ],
1073
+ 2
1074
+ /* CLASS */
1075
+ )) : c("v-if", !0),
1076
+ A.value ? (r(), V(b(e), {
1077
+ key: 4,
1078
+ class: "m-btn-loader",
1079
+ size: "2em",
1080
+ color: h.color
1081
+ }, null, 8, ["color"])) : c("v-if", !0)
1082
+ ]),
1083
+ _: 3
1084
+ /* FORWARDED */
1085
+ }, 8, ["disabled", "class", "type"]));
1086
+ }
1087
+ }), me = /* @__PURE__ */ ee(Rt, [["__scopeId", "data-v-48f14785"]]), Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1088
+ __proto__: null,
1089
+ default: me
1090
+ }, Symbol.toStringTag, { value: "Module" }));
1091
+ function Ee(u, n) {
1092
+ const e = nt(u, n);
1093
+ if (!e)
1094
+ throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${u}`);
1095
+ return e;
1096
+ }
1097
+ const Wt = /* @__PURE__ */ x({
1098
+ __name: "MazTableRow",
1099
+ props: {
1100
+ noHoverable: { type: Boolean }
1101
+ },
1102
+ setup(u) {
1103
+ const { hoverable: n, backgroundEven: e, backgroundOdd: o } = Ee("maz-table");
1104
+ return (d, v) => (r(), y(
1105
+ "tr",
1106
+ {
1107
+ class: S(["m-table-row", {
1108
+ "--hoverable": b(n) && !d.noHoverable,
1109
+ "--background-odd": b(o),
1110
+ "--background-even": b(e)
1111
+ }])
1112
+ },
1113
+ [
1114
+ I(d.$slots, "default", {}, void 0, !0)
1115
+ ],
1116
+ 2
1117
+ /* CLASS */
1118
+ ));
1119
+ }
1120
+ }), Me = /* @__PURE__ */ ee(Wt, [["__scopeId", "data-v-f9d9120a"]]), Gt = /* @__PURE__ */ x({
1121
+ __name: "MazTableCell",
1122
+ setup(u) {
1123
+ const { size: n } = Ee("maz-table");
1124
+ return (e, o) => (r(), y(
1125
+ "td",
1126
+ {
1127
+ class: S(["m-table-cell", `--${b(n)}`])
1128
+ },
1129
+ [
1130
+ I(e.$slots, "default", {}, void 0, !0)
1131
+ ],
1132
+ 2
1133
+ /* CLASS */
1134
+ ));
1135
+ }
1136
+ }), ze = /* @__PURE__ */ ee(Gt, [["__scopeId", "data-v-28c38d00"]]), Yt = /* @__PURE__ */ x({
1137
+ __name: "MazTableTitle",
1138
+ setup(u) {
1139
+ const { size: n } = Ee("maz-table");
1140
+ return (e, o) => (r(), y(
1141
+ "th",
1142
+ {
1143
+ class: S(["m-table-title", `--${b(n)}`])
1144
+ },
1145
+ [
1146
+ I(e.$slots, "default", {}, void 0, !0)
1147
+ ],
1148
+ 2
1149
+ /* CLASS */
1150
+ ));
1151
+ }
1152
+ }), _e = /* @__PURE__ */ ee(Yt, [["__scopeId", "data-v-cd769807"]]), Zt = (u) => (Ue("data-v-be315052"), u = u(), qe(), u), Jt = { class: "m-loading-bar" }, Xt = /* @__PURE__ */ Zt(() => /* @__PURE__ */ C(
1153
+ "div",
1154
+ null,
1155
+ null,
1156
+ -1
1157
+ /* HOISTED */
1158
+ )), xt = [
1159
+ Xt
1160
+ ], eo = /* @__PURE__ */ x({
1161
+ __name: "MazLoadingBar",
1162
+ props: {
1163
+ color: { default: "primary" },
1164
+ height: { default: "0.125rem" }
1165
+ },
1166
+ setup(u) {
1167
+ we((o) => ({
1168
+ "6349f7b6": o.height,
1169
+ "02343323": e.value.alpha,
1170
+ c6029158: e.value.main
1171
+ }));
1172
+ const n = u, e = p(() => ({
1173
+ alpha: `var(--maz-color-${n.color}-alpha-20)`,
1174
+ main: `var(--maz-color-${n.color})`
1175
+ }));
1176
+ return (o, d) => (r(), y("div", Jt, xt));
1177
+ }
1178
+ }), to = /* @__PURE__ */ ee(eo, [["__scopeId", "data-v-be315052"]]), oo = {
1179
+ xmlns: "http://www.w3.org/2000/svg",
1180
+ width: "1em",
1181
+ height: "1em",
1182
+ fill: "none",
1183
+ viewBox: "0 0 24 24"
1184
+ }, lo = /* @__PURE__ */ C(
1185
+ "path",
1186
+ {
1187
+ stroke: "currentColor",
1188
+ "stroke-linecap": "round",
1189
+ "stroke-linejoin": "round",
1190
+ "stroke-width": "1.5",
1191
+ d: "m4.5 12.75 6 6 9-13.5"
1192
+ },
1193
+ null,
1194
+ -1
1195
+ /* HOISTED */
1196
+ ), ao = [
1197
+ lo
1198
+ ];
1199
+ function Ze(u, n) {
1200
+ return r(), y("svg", oo, [...ao]);
1201
+ }
1202
+ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1203
+ __proto__: null,
1204
+ default: Je,
1205
+ render: Ze
1206
+ }, Symbol.toStringTag, { value: "Module" })), so = ["for", "aria-checked"], ro = ["id", "checked", "disabled", "name"], io = /* @__PURE__ */ x({
1207
+ inheritAttrs: !1,
1208
+ __name: "MazCheckbox",
1209
+ props: {
1210
+ style: { default: void 0 },
1211
+ class: { default: void 0 },
1212
+ modelValue: { type: [Boolean, Array], default: void 0 },
1213
+ id: { default: void 0 },
1214
+ color: { default: "primary" },
1215
+ value: { type: [String, Number, Boolean], default: void 0 },
1216
+ name: { default: "m-checkbox" },
1217
+ size: { default: "md" },
1218
+ label: { default: void 0 },
1219
+ disabled: { type: Boolean, default: !1 }
1220
+ },
1221
+ emits: [
1222
+ /* emitted when value change */
1223
+ "update:model-value",
1224
+ /* emited when value change */
1225
+ "change"
1226
+ ],
1227
+ setup(u, { emit: n }) {
1228
+ we((z) => ({
1229
+ "30ad0e00": Q.value,
1230
+ "46bd1cbc": B.value,
1231
+ "7c7c6907": _.value,
1232
+ "47a52c6c": k.value
1233
+ }));
1234
+ const e = u, o = n, d = Ne({
1235
+ componentName: "MazCheckbox",
1236
+ providedId: e.id
1237
+ }), v = p(
1238
+ () => typeof e.value != "boolean" && Array.isArray(e.modelValue) ? e.modelValue.includes(e.value) : typeof e.modelValue == "boolean" ? e.modelValue : !1
1239
+ ), B = p(() => {
1240
+ switch (e.size) {
1241
+ case "xl":
1242
+ return "2.25rem";
1243
+ case "lg":
1244
+ return "2rem";
1245
+ case "sm":
1246
+ return "1.425rem";
1247
+ case "xs":
1248
+ return "1.325rem";
1249
+ case "mini":
1250
+ return "1.2rem";
1251
+ default:
1252
+ return "1.625rem";
1253
+ }
1254
+ }), N = p(() => {
1255
+ switch (e.size) {
1256
+ case "xl":
1257
+ return "maz-text-2xl";
1258
+ case "lg":
1259
+ return "maz-text-xl";
1260
+ case "sm":
1261
+ return "maz-text-base";
1262
+ case "xs":
1263
+ return "maz-text-sm";
1264
+ case "mini":
1265
+ return "maz-text-xs";
1266
+ default:
1267
+ return "maz-text-lg";
1268
+ }
1269
+ }), Q = p(() => `var(--maz-color-${e.color}-contrast)`), _ = p(() => `var(--maz-color-${e.color})`), k = p(
1270
+ () => ["black", "transparent"].includes(e.color) ? "var(--maz-color-muted)" : `var(--maz-color-${e.color}-alpha)`
1271
+ );
1272
+ function j(z) {
1273
+ ["Space"].includes(z.code) && (z.preventDefault(), U(e.value ?? !e.modelValue));
1274
+ }
1275
+ function A(z) {
1276
+ return typeof z == "boolean" && (typeof e.modelValue == "boolean" || e.modelValue === void 0 || e.modelValue === null) ? !e.modelValue : Array.isArray(e.modelValue) && typeof z != "boolean" ? e.modelValue.includes(z) ? e.modelValue.filter(($) => $ !== z) : [...e.modelValue, z] : [z];
1277
+ }
1278
+ function U(z) {
1279
+ const $ = A(z);
1280
+ o("update:model-value", $), o("change", $);
1281
+ }
1282
+ return (z, $) => (r(), y("label", {
1283
+ for: b(d),
1284
+ class: S(["m-checkbox", [{ "--disabled": z.disabled }, e.class]]),
1285
+ tabindex: "0",
1286
+ style: ie(z.style),
1287
+ role: "checkbox",
1288
+ "aria-checked": v.value,
1289
+ onKeydown: j
1290
+ }, [
1291
+ C("input", Le({
1292
+ id: b(d),
1293
+ checked: v.value
1294
+ }, z.$attrs, {
1295
+ tabindex: "-1",
1296
+ disabled: z.disabled,
1297
+ name: z.name,
1298
+ type: "checkbox",
1299
+ onChange: $[0] || ($[0] = (O) => {
1300
+ var W;
1301
+ return U(z.value ?? ((W = O == null ? void 0 : O.target) == null ? void 0 : W.checked));
1302
+ })
1303
+ }), null, 16, ro),
1304
+ C("span", null, [
1305
+ M(b(Je), {
1306
+ class: S(["check-icon", N.value])
1307
+ }, null, 8, ["class"])
1308
+ ]),
1309
+ I(z.$slots, "default", {}, () => [
1310
+ re(
1311
+ Y(z.label),
1312
+ 1
1313
+ /* TEXT */
1314
+ )
1315
+ ], !0)
1316
+ ], 46, so));
1317
+ }
1318
+ }), Ke = /* @__PURE__ */ ee(io, [["__scopeId", "data-v-85c875a9"]]), uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1319
+ __proto__: null,
1320
+ default: Ke
1321
+ }, Symbol.toStringTag, { value: "Module" })), Xe = (u) => (Ue("data-v-6b3a886f"), u = u(), qe(), u), co = {
1322
+ key: 0,
1323
+ class: "m-table-header"
1324
+ }, po = { class: "m-table-spacer" }, fo = { class: "m-table-header-title" }, mo = {
1325
+ key: 0,
1326
+ class: "m-table-header-search"
1327
+ }, vo = { key: 0 }, bo = { key: 1 }, ho = {
1328
+ key: 0,
1329
+ class: "m-table-sort-icon-wrapper"
1330
+ }, yo = { class: "maz-text-center maz-text-muted" }, go = {
1331
+ key: 1,
1332
+ class: "m-table-footer"
1333
+ }, zo = /* @__PURE__ */ Xe(() => /* @__PURE__ */ C(
1334
+ "div",
1335
+ { class: "m-table-spacer" },
1336
+ null,
1337
+ -1
1338
+ /* HOISTED */
1339
+ )), ko = {
1340
+ key: 0,
1341
+ class: "m-table-footer-pagination"
1342
+ }, $o = { class: "m-table-footer-pagination-items-per-page" }, wo = /* @__PURE__ */ Xe(() => /* @__PURE__ */ C(
1343
+ "span",
1344
+ { class: "maz-hidden maz-text-sm maz-text-muted tab-s:maz-block" },
1345
+ " Item per page ",
1346
+ -1
1347
+ /* HOISTED */
1348
+ )), Io = {
1349
+ key: 0,
1350
+ class: "maz-whitespace-nowrap maz-text-sm"
1351
+ }, Vo = { class: "m-table-footer-pagination-buttons" }, So = /* @__PURE__ */ x({
1352
+ __name: "MazTable",
1353
+ props: {
1354
+ tableClass: { default: void 0 },
1355
+ tableStyle: { default: void 0 },
1356
+ modelValue: { default: void 0 },
1357
+ size: { default: "md" },
1358
+ title: { default: void 0 },
1359
+ headers: { default: void 0 },
1360
+ sortable: { type: Boolean },
1361
+ headersAlign: { default: "left" },
1362
+ rows: { default: void 0 },
1363
+ hoverable: { type: Boolean },
1364
+ search: { type: Boolean },
1365
+ noSearchInRow: { type: Boolean },
1366
+ searchPlaceholder: { default: "Search" },
1367
+ noSearchBy: { type: Boolean },
1368
+ searchByPlaceholder: { default: "Search by" },
1369
+ searchByAllLabel: { default: "All" },
1370
+ searchQuery: { default: void 0 },
1371
+ backgroundOdd: { type: Boolean },
1372
+ backgroundEven: { type: Boolean },
1373
+ elevation: { type: Boolean },
1374
+ divider: { type: Boolean },
1375
+ caption: { default: void 0 },
1376
+ captionSide: { default: "bottom" },
1377
+ pagination: { type: Boolean },
1378
+ page: { default: 1 },
1379
+ pageSize: { default: 20 },
1380
+ totalPages: { default: void 0 },
1381
+ paginationAllLabel: { default: "All" },
1382
+ noPaginateRows: { type: Boolean },
1383
+ totalItems: { default: void 0 },
1384
+ loading: { type: Boolean },
1385
+ selectable: { type: Boolean },
1386
+ selectedKey: { default: void 0 },
1387
+ tableLayout: { default: void 0 },
1388
+ color: { default: "primary" }
1389
+ },
1390
+ emits: ["update:model-value", "update:search-query", "update:page", "update:page-size"],
1391
+ setup(u, { emit: n }) {
1392
+ we((l) => ({
1393
+ c76cc88c: e.tableLayout,
1394
+ "23d9937f": e.captionSide
1395
+ }));
1396
+ const e = u, o = n, d = p(
1397
+ () => e.divider && !e.backgroundEven && !e.backgroundOdd
1398
+ ), { size: v, hoverable: B, backgroundEven: N, backgroundOdd: Q } = st(e);
1399
+ rt("maz-table", {
1400
+ size: v,
1401
+ hoverable: B,
1402
+ backgroundEven: N,
1403
+ backgroundOdd: Q
1404
+ });
1405
+ const _ = L(fe()), k = p(() => e.selectable || !!e.selectedKey), j = L(e.page);
1406
+ ge(
1407
+ () => e.page,
1408
+ (l) => {
1409
+ j.value = l;
1410
+ }
1411
+ );
1412
+ const A = p({
1413
+ get: () => j.value,
1414
+ set: (l) => {
1415
+ j.value = l, o("update:page", l);
1416
+ }
1417
+ }), U = p(() => [
1418
+ { label: e.paginationAllLabel, value: Number.POSITIVE_INFINITY },
1419
+ { label: 5, value: 5 },
1420
+ { label: 10, value: 10 },
1421
+ { label: 20, value: 20 },
1422
+ { label: 50, value: 50 },
1423
+ { label: 100, value: 100 },
1424
+ { label: 200, value: 200 }
1425
+ ]), z = L(e.pageSize);
1426
+ ge(
1427
+ () => e.pageSize,
1428
+ (l) => {
1429
+ z.value = l;
1430
+ }
1431
+ );
1432
+ const $ = p({
1433
+ get: () => z.value,
1434
+ set: (l) => {
1435
+ z.value = l, o("update:page-size", l);
1436
+ }
1437
+ }), O = p(() => {
1438
+ var l;
1439
+ return e.totalPages ?? ($.value === Number.POSITIVE_INFINITY || !((l = e.rows) != null && l.length)) ? 1 : Math.ceil(e.rows.length / $.value);
1440
+ });
1441
+ function W() {
1442
+ A.value = 1;
1443
+ }
1444
+ function h() {
1445
+ A.value = O.value;
1446
+ }
1447
+ function J() {
1448
+ A.value = A.value - 1;
1449
+ }
1450
+ function te() {
1451
+ A.value = A.value + 1;
1452
+ }
1453
+ const X = p(() => {
1454
+ if (!e.pagination || e.noPaginateRows || $.value === Number.POSITIVE_INFINITY)
1455
+ return _.value;
1456
+ const l = (j.value - 1) * $.value, g = l + $.value;
1457
+ return _.value.slice(l, g);
1458
+ });
1459
+ ge(
1460
+ () => [e.rows, e.modelValue],
1461
+ () => {
1462
+ _.value = fe();
1463
+ }
1464
+ );
1465
+ const G = L(), D = L(), q = L(ae()), H = L(), ne = p(() => [
1466
+ { label: e.searchByAllLabel, value: null },
1467
+ ...q.value.map((l) => ({
1468
+ label: l.label,
1469
+ value: l.key
1470
+ }))
1471
+ ]), se = L(e.searchQuery);
1472
+ ge(
1473
+ () => e.searchQuery,
1474
+ (l) => {
1475
+ se.value = l;
1476
+ }
1477
+ );
1478
+ const oe = p({
1479
+ get: () => se.value,
1480
+ set: (l) => {
1481
+ se.value = l, o("update:search-query", l);
1482
+ }
1483
+ });
1484
+ function a(l) {
1485
+ return [...l].sort((g, f) => {
1486
+ if (G.value === void 0 || D.value === void 0)
1487
+ return 0;
1488
+ const T = g[q.value[G.value].key], t = f[q.value[G.value].key];
1489
+ return typeof T == "string" && typeof t == "string" ? D.value === "ASC" ? T.localeCompare(t) : t.localeCompare(T) : D.value === "ASC" ? T - t : t - T;
1490
+ });
1491
+ }
1492
+ function K(l) {
1493
+ if (e.noSearchInRow || typeof oe.value != "string")
1494
+ return X.value;
1495
+ const g = oe.value.toLowerCase();
1496
+ return [...l].filter((f) => H.value ? String(f[H.value]).toLowerCase().includes(g) : Object.values(f).some((T) => typeof T == "string" || typeof T == "number" || typeof T == "boolean" ? String(T).toLowerCase().includes(g) : !1));
1497
+ }
1498
+ const E = p(() => {
1499
+ const l = K(X.value);
1500
+ return a(l);
1501
+ }), be = Pe(), R = p(() => e.search || !!e.title || !!be.title), le = p(() => e.pagination);
1502
+ function ae() {
1503
+ var l;
1504
+ return ((l = e.headers) == null ? void 0 : l.map(
1505
+ (g) => typeof g == "string" ? { label: g, align: e.headersAlign } : { align: e.headersAlign, thHeaders: g.headers, ...g }
1506
+ )) ?? [];
1507
+ }
1508
+ function fe() {
1509
+ var l;
1510
+ return ((l = e.rows) == null ? void 0 : l.map((g) => {
1511
+ var f;
1512
+ return {
1513
+ selected: (f = e.modelValue) == null ? void 0 : f.includes(e.selectedKey ? g[e.selectedKey] : g),
1514
+ ...g
1515
+ };
1516
+ })) ?? [];
1517
+ }
1518
+ function Ie(l) {
1519
+ l === G.value ? D.value = D.value === void 0 ? "DESC" : D.value === "DESC" ? "ASC" : void 0 : D.value = "DESC", G.value = D.value === void 0 ? void 0 : l;
1520
+ }
1521
+ const he = p({
1522
+ get: () => E.value.every((l) => l.selected) ?? !1,
1523
+ set: Ve
1524
+ });
1525
+ function Ve(l) {
1526
+ for (const g of E.value)
1527
+ g.selected = l;
1528
+ ue();
1529
+ }
1530
+ function Se(l, g) {
1531
+ E.value[g].selected = l, ue();
1532
+ }
1533
+ function ue(l) {
1534
+ l = l ?? ye();
1535
+ const g = l != null && l.length ? l : void 0;
1536
+ o("update:model-value", g);
1537
+ }
1538
+ function ye() {
1539
+ return E.value.filter((l) => l.selected).map((l) => e.selectedKey ? l[e.selectedKey] : l);
1540
+ }
1541
+ return Oe(() => {
1542
+ const l = ye();
1543
+ l != null && l.length && ue(l);
1544
+ }), (l, g) => (r(), y(
1545
+ "div",
1546
+ {
1547
+ class: S(["m-table", { "--has-header": R.value }])
1548
+ },
1549
+ [
1550
+ R.value ? (r(), y("div", co, [
1551
+ C("div", po, [
1552
+ l.title || l.$slots.title ? I(l.$slots, "title", { key: 0 }, () => [
1553
+ C(
1554
+ "span",
1555
+ fo,
1556
+ Y(l.title),
1557
+ 1
1558
+ /* TEXT */
1559
+ )
1560
+ ], !0) : c("v-if", !0)
1561
+ ]),
1562
+ l.search ? (r(), y("div", mo, [
1563
+ l.noSearchBy ? c("v-if", !0) : (r(), V(Fe, {
1564
+ key: 0,
1565
+ modelValue: H.value,
1566
+ "onUpdate:modelValue": g[0] || (g[0] = (f) => H.value = f),
1567
+ color: l.color,
1568
+ style: { width: "8rem" },
1569
+ placeholder: l.searchByPlaceholder,
1570
+ size: b(v),
1571
+ options: ne.value
1572
+ }, null, 8, ["modelValue", "color", "placeholder", "size", "options"])),
1573
+ M(Te, {
1574
+ modelValue: oe.value,
1575
+ "onUpdate:modelValue": g[1] || (g[1] = (f) => oe.value = f),
1576
+ size: b(v),
1577
+ color: l.color,
1578
+ placeholder: l.searchPlaceholder,
1579
+ "left-icon": b(Qe)
1580
+ }, null, 8, ["modelValue", "size", "color", "placeholder", "left-icon"])
1581
+ ])) : c("v-if", !0)
1582
+ ])) : c("v-if", !0),
1583
+ C(
1584
+ "table",
1585
+ {
1586
+ class: S([{ "--elevation": l.elevation, "--has-layout": l.tableLayout }, l.tableClass]),
1587
+ style: ie(l.tableStyle)
1588
+ },
1589
+ [
1590
+ l.caption || l.$slots.caption ? (r(), y("caption", vo, [
1591
+ c(`
1592
+ @slot caption - add caption on top or bottom of the table
1593
+ `),
1594
+ I(l.$slots, "caption", {}, () => [
1595
+ re(
1596
+ Y(l.caption),
1597
+ 1
1598
+ /* TEXT */
1599
+ )
1600
+ ], !0)
1601
+ ])) : c("v-if", !0),
1602
+ q.value ? (r(), y("thead", bo, [
1603
+ c(`
1604
+ @slot thead - content in thead element
1605
+ `),
1606
+ I(l.$slots, "thead", {}, () => [
1607
+ M(Me, { "no-hoverable": "" }, {
1608
+ default: P(() => [
1609
+ k.value ? (r(), V(_e, {
1610
+ key: 0,
1611
+ align: "left",
1612
+ class: S([`--${b(v)}`, "m-table-select-column"])
1613
+ }, {
1614
+ default: P(() => [
1615
+ M(Ke, {
1616
+ modelValue: he.value,
1617
+ "onUpdate:modelValue": g[2] || (g[2] = (f) => he.value = f),
1618
+ size: "xs"
1619
+ }, null, 8, ["modelValue"])
1620
+ ]),
1621
+ _: 1
1622
+ /* STABLE */
1623
+ }, 8, ["class"])) : c("v-if", !0),
1624
+ (r(!0), y(
1625
+ ve,
1626
+ null,
1627
+ ke(q.value, (f, T) => (r(), V(_e, {
1628
+ key: T,
1629
+ scope: f.scope,
1630
+ align: f.align,
1631
+ rowspan: f.rowspan,
1632
+ colspan: f.colspan,
1633
+ headers: f.thHeaders,
1634
+ style: ie({ width: f.width, textAlign: f.align }),
1635
+ class: S(["maz-group", [
1636
+ { "--hidden": f.hidden, "--sortable": f.sortable ?? l.sortable },
1637
+ f.classes,
1638
+ `--${b(v)}`
1639
+ ]]),
1640
+ onClick: (t) => (f.sortable ?? l.sortable) && Ie(T)
1641
+ }, {
1642
+ default: P(() => [
1643
+ C(
1644
+ "span",
1645
+ {
1646
+ class: S({ "maz-sr-only": f.srOnly })
1647
+ },
1648
+ [
1649
+ c(`
1650
+ @slot header - replace column header
1651
+ @binding {Object} header - header data
1652
+ @binding {String} label - header label
1653
+ `),
1654
+ I(l.$slots, "header", {
1655
+ header: f,
1656
+ label: f.label
1657
+ }, () => [
1658
+ c(`
1659
+ @slot header-label-{key} - replace column header label
1660
+ @binding {Object} header - header data
1661
+ @binding {String} label - header label
1662
+ `),
1663
+ I(l.$slots, `header-label-${f.key}`, {
1664
+ header: f,
1665
+ label: f.label
1666
+ }, () => [
1667
+ re(
1668
+ Y(f.label),
1669
+ 1
1670
+ /* TEXT */
1671
+ )
1672
+ ], !0),
1673
+ f.sortable ?? l.sortable ? (r(), y("div", ho, [
1674
+ M(b(bt), {
1675
+ class: S(["m-table-sort-icon maz-hidden group-hover:maz-block", {
1676
+ "--sorted": T === G.value,
1677
+ "--up": D.value === "DESC",
1678
+ "--down": D.value === "ASC"
1679
+ }])
1680
+ }, null, 8, ["class"])
1681
+ ])) : c("v-if", !0)
1682
+ ], !0)
1683
+ ],
1684
+ 2
1685
+ /* CLASS */
1686
+ )
1687
+ ]),
1688
+ _: 2
1689
+ /* DYNAMIC */
1690
+ }, 1032, ["scope", "align", "rowspan", "colspan", "headers", "style", "class", "onClick"]))),
1691
+ 128
1692
+ /* KEYED_FRAGMENT */
1693
+ )),
1694
+ l.$slots.actions ? (r(), V(_e, {
1695
+ key: 1,
1696
+ align: "left",
1697
+ class: S(`--${b(v)}`)
1698
+ }, {
1699
+ default: P(() => [
1700
+ c(`
1701
+ @slot actions-header - replace text of actions header
1702
+ `),
1703
+ I(l.$slots, "actions-header", {}, () => [
1704
+ re(" Actions ")
1705
+ ], !0)
1706
+ ]),
1707
+ _: 3
1708
+ /* FORWARDED */
1709
+ }, 8, ["class"])) : c("v-if", !0)
1710
+ ]),
1711
+ _: 3
1712
+ /* FORWARDED */
1713
+ })
1714
+ ], !0)
1715
+ ])) : c("v-if", !0),
1716
+ l.loading ? (r(), V(to, {
1717
+ key: 2,
1718
+ color: l.color,
1719
+ class: "!maz-absolute"
1720
+ }, null, 8, ["color"])) : c("v-if", !0),
1721
+ C(
1722
+ "tbody",
1723
+ {
1724
+ class: S({ "--divider": d.value })
1725
+ },
1726
+ [
1727
+ I(l.$slots, "default", {}, () => [
1728
+ E.value.length > 0 ? (r(!0), y(
1729
+ ve,
1730
+ { key: 0 },
1731
+ ke(E.value, (f, T) => (r(), V(Me, {
1732
+ key: T,
1733
+ class: S(f.classes),
1734
+ onClick: (t) => f.action && f.action(f)
1735
+ }, {
1736
+ default: P(() => [
1737
+ k.value ? (r(), V(
1738
+ ze,
1739
+ {
1740
+ key: 0,
1741
+ class: "m-table-select-column"
1742
+ },
1743
+ {
1744
+ default: P(() => [
1745
+ c(`
1746
+ @slot select - replace checkbox component
1747
+ @binding {Object} row - row data
1748
+ @binding {Boolean} selected - if selected or not
1749
+ `),
1750
+ I(l.$slots, "select", {
1751
+ row: f,
1752
+ selected: f.selected
1753
+ }, () => [
1754
+ M(Ke, {
1755
+ size: "xs",
1756
+ "model-value": f.selected,
1757
+ "onUpdate:modelValue": (t) => Se(t, T)
1758
+ }, null, 8, ["model-value", "onUpdate:modelValue"])
1759
+ ], !0)
1760
+ ]),
1761
+ _: 2
1762
+ /* DYNAMIC */
1763
+ },
1764
+ 1024
1765
+ /* DYNAMIC_SLOTS */
1766
+ )) : c("v-if", !0),
1767
+ (r(!0), y(
1768
+ ve,
1769
+ null,
1770
+ ke(q.value, ({ key: t, align: s, classes: m }, i) => (r(), V(ze, {
1771
+ key: i,
1772
+ align: s,
1773
+ class: S(m)
1774
+ }, {
1775
+ default: P(() => [
1776
+ c(`
1777
+ @slot cell - replace all row cells
1778
+ @binding {Object} row - row data
1779
+ @binding {Boolean} value - cell value
1780
+ `),
1781
+ t ? I(l.$slots, "cell", {
1782
+ key: 0,
1783
+ row: f,
1784
+ value: f[t]
1785
+ }, () => [
1786
+ c(`
1787
+ @slot cell-{key} - replace row cells of column
1788
+ @binding {Object} row - row data
1789
+ @binding {Boolean} value - cell value
1790
+ `),
1791
+ I(l.$slots, `cell-${t}`, {
1792
+ row: f,
1793
+ value: f[t]
1794
+ }, () => [
1795
+ re(
1796
+ Y(f[t]),
1797
+ 1
1798
+ /* TEXT */
1799
+ )
1800
+ ], !0)
1801
+ ], !0) : c("v-if", !0)
1802
+ ]),
1803
+ _: 2
1804
+ /* DYNAMIC */
1805
+ }, 1032, ["align", "class"]))),
1806
+ 128
1807
+ /* KEYED_FRAGMENT */
1808
+ )),
1809
+ l.$slots.actions ? (r(), V(
1810
+ ze,
1811
+ { key: 1 },
1812
+ {
1813
+ default: P(() => [
1814
+ c(`
1815
+ @slot actions - will add actions column
1816
+ @binding {Object} row - row data
1817
+ `),
1818
+ I(l.$slots, "actions", { row: f }, void 0, !0)
1819
+ ]),
1820
+ _: 2
1821
+ /* DYNAMIC */
1822
+ },
1823
+ 1024
1824
+ /* DYNAMIC_SLOTS */
1825
+ )) : c("v-if", !0)
1826
+ ]),
1827
+ _: 2
1828
+ /* DYNAMIC */
1829
+ }, 1032, ["class", "onClick"]))),
1830
+ 128
1831
+ /* KEYED_FRAGMENT */
1832
+ )) : (r(), V(Me, { key: 1 }, {
1833
+ default: P(() => [
1834
+ M(ze, {
1835
+ colspan: q.value.length + (k.value ? 1 : 0) + (l.$slots.actions ? 1 : 0)
1836
+ }, {
1837
+ default: P(() => [
1838
+ c(`
1839
+ @slot no-results - replace no results
1840
+ `),
1841
+ I(l.$slots, "no-results", {}, () => [
1842
+ C("p", yo, [
1843
+ c(`
1844
+ @slot no-results-text - replace no results test only
1845
+ `),
1846
+ I(l.$slots, "no-results-text", {}, () => [
1847
+ re(" No results ")
1848
+ ], !0)
1849
+ ])
1850
+ ], !0)
1851
+ ]),
1852
+ _: 3
1853
+ /* FORWARDED */
1854
+ }, 8, ["colspan"])
1855
+ ]),
1856
+ _: 3
1857
+ /* FORWARDED */
1858
+ }))
1859
+ ], !0)
1860
+ ],
1861
+ 2
1862
+ /* CLASS */
1863
+ )
1864
+ ],
1865
+ 6
1866
+ /* CLASS, STYLE */
1867
+ ),
1868
+ le.value ? (r(), y("div", go, [
1869
+ zo,
1870
+ l.pagination ? (r(), y("div", ko, [
1871
+ C("div", $o, [
1872
+ wo,
1873
+ M(Fe, {
1874
+ modelValue: $.value,
1875
+ "onUpdate:modelValue": g[3] || (g[3] = (f) => $.value = f),
1876
+ options: U.value,
1877
+ size: b(v),
1878
+ color: l.color,
1879
+ "list-position": "top",
1880
+ style: { width: "5rem" }
1881
+ }, null, 8, ["modelValue", "options", "size", "color"])
1882
+ ]),
1883
+ O.value ? (r(), y(
1884
+ "span",
1885
+ Io,
1886
+ Y(A.value) + " - " + Y(E.value.length) + " of " + Y(O.value),
1887
+ 1
1888
+ /* TEXT */
1889
+ )) : c("v-if", !0),
1890
+ C("div", Vo, [
1891
+ M(me, {
1892
+ disabled: A.value === 1,
1893
+ size: b(v),
1894
+ color: "transparent",
1895
+ fab: "",
1896
+ "no-elevation": "",
1897
+ onClick: W
1898
+ }, {
1899
+ default: P(() => [
1900
+ M(b(De), { class: "maz-text-base" })
1901
+ ]),
1902
+ _: 1
1903
+ /* STABLE */
1904
+ }, 8, ["disabled", "size"]),
1905
+ M(me, {
1906
+ disabled: A.value === 1,
1907
+ size: b(v),
1908
+ color: "transparent",
1909
+ fab: "",
1910
+ "no-elevation": "",
1911
+ onClick: J
1912
+ }, {
1913
+ default: P(() => [
1914
+ M(b(je), { class: "maz-text-base" })
1915
+ ]),
1916
+ _: 1
1917
+ /* STABLE */
1918
+ }, 8, ["disabled", "size"]),
1919
+ M(me, {
1920
+ disabled: A.value === O.value,
1921
+ size: b(v),
1922
+ color: "transparent",
1923
+ fab: "",
1924
+ "no-elevation": "",
1925
+ onClick: te
1926
+ }, {
1927
+ default: P(() => [
1928
+ M(b(je), { class: "maz-rotate-180 maz-text-base" })
1929
+ ]),
1930
+ _: 1
1931
+ /* STABLE */
1932
+ }, 8, ["disabled", "size"]),
1933
+ M(me, {
1934
+ disabled: A.value === O.value,
1935
+ size: b(v),
1936
+ color: "transparent",
1937
+ fab: "",
1938
+ "no-elevation": "",
1939
+ onClick: h
1940
+ }, {
1941
+ default: P(() => [
1942
+ M(b(De), { class: "maz-rotate-180 maz-text-base" })
1943
+ ]),
1944
+ _: 1
1945
+ /* STABLE */
1946
+ }, 8, ["disabled", "size"])
1947
+ ])
1948
+ ])) : c("v-if", !0)
1949
+ ])) : c("v-if", !0)
1950
+ ],
1951
+ 2
1952
+ /* CLASS */
1953
+ ));
1954
+ }
1955
+ }), Bo = /* @__PURE__ */ ee(So, [["__scopeId", "data-v-6b3a886f"]]);
1956
+ export {
1957
+ Bo as M,
1958
+ ee as _,
1959
+ Ee as i
1960
+ };