maz-ui 4.0.0-beta.5 → 4.0.0-beta.6

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 (434) hide show
  1. package/dist/assets/MazAccordion.DUQCf8vy.css +1 -0
  2. package/dist/assets/{MazBtn.BnRxVlqS.css → MazBtn.FsG6p6NF.css} +1 -1
  3. package/dist/assets/MazCheckbox.CFqw9ybT.css +1 -0
  4. package/dist/assets/MazDatePicker.8GyrtM-j.css +1 -0
  5. package/dist/assets/MazInput.WPopv89k.css +1 -0
  6. package/dist/assets/MazPickerMonthSwitcher.CszcpCcY.css +1 -0
  7. package/dist/assets/{MazPickerYearSwitcher.Dl30Dwor.css → MazPickerYearSwitcher.Cn-nS-Vv.css} +1 -1
  8. package/dist/assets/MazPopover.D-WwUjU_.css +1 -0
  9. package/dist/assets/MazRadio.XGYnbTuB.css +1 -0
  10. package/dist/assets/MazSelect.DEBsk61Q.css +1 -0
  11. package/dist/assets/{MazStepper.DYMde9uq.css → MazStepper.DtWZmm-f.css} +1 -1
  12. package/dist/assets/MazSwitch.Bxmh2iFj.css +1 -0
  13. package/dist/assets/{MazTable.B1tkeUfE.css → MazTable.DMlQdImb.css} +1 -1
  14. package/dist/assets/{toast.kunueRvo.css → toast.CC2VQab8.css} +1 -1
  15. package/dist/chunks/{MazDatePicker.Bgd0WwZk.js → MazDatePicker.EVP68BQf.js} +8 -28
  16. package/dist/chunks/{MazDropdown.vue_vue_type_style_index_0_lang.WRjG5bff.js → MazDropdown.vue_vue_type_style_index_0_lang.DjPJ9-gt.js} +3 -3
  17. package/dist/chunks/{MazInputNumber.vue_vue_type_style_index_0_lang.BUOLoXtV.js → MazInputNumber.vue_vue_type_style_index_0_lang.B6DYpHfi.js} +3 -3
  18. package/dist/chunks/{MazInputPrice.vue_vue_type_script_setup_true_lang.CT1Y2-_T.js → MazInputPrice.vue_vue_type_script_setup_true_lang.BA6TDX-T.js} +2 -2
  19. package/dist/chunks/{MazPickerCalendar.BkmubImp.js → MazPickerCalendar.CzPlAVdQ.js} +1 -1
  20. package/dist/chunks/{MazPickerCalendarMonth.Df2qar5v.js → MazPickerCalendarMonth.gZBcslia.js} +1 -1
  21. package/dist/chunks/{MazPickerCalendarSwitcher.DyrEWPLk.js → MazPickerCalendarSwitcher.CzAkb2yj.js} +4 -4
  22. package/dist/chunks/{MazPickerContainer.B4fyKYAE.js → MazPickerContainer.BodulCQp.js} +1 -1
  23. package/dist/chunks/{MazPickerHeader.DoXGZZFX.js → MazPickerHeader.ns_pHhiy.js} +1 -1
  24. package/dist/chunks/{MazPickerMonthSwitcher.CXuVHGVq.js → MazPickerMonthSwitcher.BuZuUauW.js} +5 -5
  25. package/dist/chunks/{MazPickerTime.CueS5GPb.js → MazPickerTime.DMVpW3Ha.js} +1 -1
  26. package/dist/chunks/{MazPickerYearSwitcher.DNdhvfKw.js → MazPickerYearSwitcher.METGgjem.js} +8 -26
  27. package/dist/chunks/{MazSwitch.vue_vue_type_style_index_0_lang.DQE0vFhe.js → MazSwitch.vue_vue_type_style_index_0_lang.CU43Y1ky.js} +1 -1
  28. package/dist/chunks/{MazTable.vue_vue_type_script_setup_true_lang.By5YbgRn.js → MazTable.vue_vue_type_script_setup_true_lang.CK2bk5tI.js} +9 -9
  29. package/dist/chunks/{utils.D9NiqfdV.js → dom-events.CvkK8Xn2.js} +161 -114
  30. package/dist/chunks/{fullscreen-img.directive.ClMlhEtN.js → fullscreen-img.directive.CyOHexcO.js} +4 -4
  31. package/dist/components/MazAccordion.js +4 -4
  32. package/dist/components/MazAvatar.js +2 -2
  33. package/dist/components/MazBottomSheet.js +2 -2
  34. package/dist/components/MazBtn.js +2 -3
  35. package/dist/components/MazCard.js +2 -2
  36. package/dist/components/MazCarousel.js +3 -3
  37. package/dist/components/MazCheckbox.js +12 -14
  38. package/dist/components/MazChecklist.js +3 -3
  39. package/dist/components/MazDatePicker.js +1 -1
  40. package/dist/components/MazDialog.js +2 -2
  41. package/dist/components/MazDrawer.js +2 -2
  42. package/dist/components/MazDropdown.js +1 -1
  43. package/dist/components/MazDropzone.js +5 -5
  44. package/dist/components/MazGallery.js +3 -3
  45. package/dist/components/MazInput.js +12 -13
  46. package/dist/components/MazInputNumber.js +1 -1
  47. package/dist/components/MazInputPrice.js +1 -1
  48. package/dist/components/MazInputTags.js +2 -2
  49. package/dist/components/MazLink.js +2 -2
  50. package/dist/components/MazPagination.js +6 -6
  51. package/dist/components/MazPopover.js +162 -76
  52. package/dist/components/MazRadio.js +8 -16
  53. package/dist/components/MazRadioButtons.js +2 -2
  54. package/dist/components/MazReadingProgressBar.js +9 -2
  55. package/dist/components/MazSelect.js +21 -13
  56. package/dist/components/MazStepper.js +4 -4
  57. package/dist/components/MazSwitch.js +1 -1
  58. package/dist/components/MazTable.js +3 -3
  59. package/dist/components/MazTableCell.js +1 -1
  60. package/dist/components/MazTableRow.js +1 -1
  61. package/dist/components/MazTableTitle.js +1 -1
  62. package/dist/components/index.js +5 -5
  63. package/dist/composables/useDisplayNames.js +7 -1
  64. package/dist/composables/useFormField.js +15 -18
  65. package/dist/composables/useFormValidator.js +41 -28
  66. package/dist/css/main.css +1 -1
  67. package/dist/directives/index.js +1 -1
  68. package/dist/directives/vFullscreenImg.js +1 -1
  69. package/dist/directives/vTooltip.js +96 -59
  70. package/dist/plugins/toast.js +15 -18
  71. package/dist/resolvers/MazModulesResolver.js +3 -0
  72. package/dist/tailwindcss/tailwind.config.js +5 -2
  73. package/dist/tailwindcss/variables/design-tokens.js +3 -0
  74. package/dist/types/components/MazAccordion.vue.d.ts +15 -2
  75. package/dist/types/components/MazCheckbox.vue.d.ts +0 -6
  76. package/dist/types/components/MazDatePicker.vue.d.ts +4 -12
  77. package/dist/types/components/MazInputNumber.vue.d.ts +1 -1
  78. package/dist/types/components/MazPopover.vue.d.ts +7 -4
  79. package/dist/types/components/MazStepper.vue.d.ts +13 -2
  80. package/dist/types/components/MazTable.vue.d.ts +63 -2
  81. package/dist/types/components/index.d.ts +1 -1
  82. package/dist/types/composables/index.d.ts +1 -1
  83. package/dist/types/composables/useDisplayNames.d.ts +3 -3
  84. package/dist/types/composables/useFormField.d.ts +3 -41
  85. package/dist/types/composables/useFormValidator/dom-events.d.ts +19 -0
  86. package/dist/types/composables/useFormValidator/state-management.d.ts +54 -0
  87. package/dist/types/composables/useFormValidator/types.d.ts +9 -20
  88. package/dist/types/composables/useFormValidator/validation.d.ts +43 -0
  89. package/dist/types/composables/useFormValidator.d.ts +16 -10
  90. package/dist/types/directives/vTooltip.d.ts +2 -2
  91. package/dist/types/tailwindcss/tailwind.config.d.ts +5 -0
  92. package/dist/types/tailwindcss/variables/design-tokens.d.ts +3 -0
  93. package/package.json +8 -8
  94. package/dist/assets/MazAccordion.esK3rR4p.css +0 -1
  95. package/dist/assets/MazCheckbox.BFo5eYS6.css +0 -1
  96. package/dist/assets/MazDatePicker.V5JwKPrQ.css +0 -1
  97. package/dist/assets/MazInput.DW2KOJHY.css +0 -1
  98. package/dist/assets/MazPickerMonthSwitcher.168v7Hs1.css +0 -1
  99. package/dist/assets/MazPopover.COR-tym7.css +0 -1
  100. package/dist/assets/MazRadio.DKMFWwy_.css +0 -1
  101. package/dist/assets/MazSelect.DZZpDg8z.css +0 -1
  102. package/dist/assets/MazSwitch.Z1ZMm7tx.css +0 -1
  103. package/dist/chunks/academic-cap.BjcfXmGu.CCSXStjO.js +0 -24
  104. package/dist/chunks/adjustments-horizontal.CT-QeIwW.CRspwA1D.js +0 -24
  105. package/dist/chunks/adjustments-vertical.BHXET8iZ.DXKjofVz.js +0 -24
  106. package/dist/chunks/archive-box-arrow-down.DY2jR2sP.D5q20o-C.js +0 -24
  107. package/dist/chunks/archive-box-x-mark.DP7eLVaB.D9lYjTGp.js +0 -24
  108. package/dist/chunks/archive-box.CVwekUWp.CAar5Lvs.js +0 -24
  109. package/dist/chunks/arrow-down-circle.DL2lvwk5.CGlJ9wP0.js +0 -24
  110. package/dist/chunks/arrow-down-left.C3nEVXaG.DsaJ0TwT.js +0 -24
  111. package/dist/chunks/arrow-down-on-square-stack.BKDRxXkf.DOjZT9_M.js +0 -24
  112. package/dist/chunks/arrow-down-on-square.DAMoXY4b.Brdd_BB2.js +0 -24
  113. package/dist/chunks/arrow-down-right.hs3isRLs.9WxtifNr.js +0 -24
  114. package/dist/chunks/arrow-down-tray.w1Emiyu3.yRzoHE0I.js +0 -24
  115. package/dist/chunks/arrow-down.DEawGjfB.CguAHec6.js +0 -24
  116. package/dist/chunks/arrow-left-circle.BlKwmMyr.BF9vGCFO.js +0 -24
  117. package/dist/chunks/arrow-left-end-on-rectangle.BwEAWEQp.D7I0qUqw.js +0 -24
  118. package/dist/chunks/arrow-left-on-rectangle.DabmkYhe.CmIlQ7wf.js +0 -24
  119. package/dist/chunks/arrow-left-start-on-rectangle.BaoR6nlq.BtEBN2A6.js +0 -24
  120. package/dist/chunks/arrow-left.D_6VKA-e.CmQE04VA.js +0 -24
  121. package/dist/chunks/arrow-long-down.5N2s8Cpw.B9JKDT7M.js +0 -24
  122. package/dist/chunks/arrow-long-left.B7AX0id9.CywMhkhH.js +0 -24
  123. package/dist/chunks/arrow-long-right.CKMPfwrE.D3pLqdNX.js +0 -24
  124. package/dist/chunks/arrow-long-up.CT8DU9jc.CIOIdvGB.js +0 -24
  125. package/dist/chunks/arrow-path-rounded-square.65lulTVg.CQh60_RA.js +0 -24
  126. package/dist/chunks/arrow-path.CJ9Wswu_.BlR1BJ4i.js +0 -24
  127. package/dist/chunks/arrow-right-circle.DDZurzmk.DPzHFj8G.js +0 -24
  128. package/dist/chunks/arrow-right-end-on-rectangle.jNNaV464.DfFRTcEu.js +0 -24
  129. package/dist/chunks/arrow-right-on-rectangle.BQLAkJlS.D4JfF9Ov.js +0 -24
  130. package/dist/chunks/arrow-right-start-on-rectangle.DgFTLubq.3qbrqXCj.js +0 -24
  131. package/dist/chunks/arrow-right.h5GY-bzG.CKBQ5VHM.js +0 -24
  132. package/dist/chunks/arrow-small-down.3SdgC1Fw.vODsecnG.js +0 -24
  133. package/dist/chunks/arrow-small-left.Dbw5rTas.C-bYHDKK.js +0 -24
  134. package/dist/chunks/arrow-small-right.DAmxBfl5.n7vH-w9t.js +0 -24
  135. package/dist/chunks/arrow-small-up.WQQD-lUO.FvbI2uG_.js +0 -24
  136. package/dist/chunks/arrow-top-right-on-square.DJeWWj5d.DWV1wrwq.js +0 -24
  137. package/dist/chunks/arrow-trending-down.CSIGp7a0.DLp5ZExP.js +0 -24
  138. package/dist/chunks/arrow-trending-up.BGar-3Mt.Cx6Pgj8o.js +0 -24
  139. package/dist/chunks/arrow-turn-down-left.C4BtwCb-.C7vbo0bi.js +0 -24
  140. package/dist/chunks/arrow-turn-down-right.Cxu2KBHI.J8piVbUW.js +0 -24
  141. package/dist/chunks/arrow-turn-left-down.BfjbBrut.D-KMuKDz.js +0 -24
  142. package/dist/chunks/arrow-turn-left-up.Bsm0aGLO.WVDAyWpM.js +0 -24
  143. package/dist/chunks/arrow-turn-right-down.DH2Wh74o.dNtSWH1C.js +0 -24
  144. package/dist/chunks/arrow-turn-right-up.ou0Uaevi.Buzu0SB-.js +0 -24
  145. package/dist/chunks/arrow-turn-up-left.Bg5YgZsj.Bkn43xjW.js +0 -24
  146. package/dist/chunks/arrow-turn-up-right.mBRM1THn.BNiuRqzk.js +0 -24
  147. package/dist/chunks/arrow-up-circle.Bzu19hQF.aerjnsXO.js +0 -24
  148. package/dist/chunks/arrow-up-left.IRrqyawV.CYNpIPVM.js +0 -24
  149. package/dist/chunks/arrow-up-on-square-stack.C1q8upHF.BtGNYi9R.js +0 -24
  150. package/dist/chunks/arrow-up-on-square.Zzd3wPoG.DSV_2koo.js +0 -24
  151. package/dist/chunks/arrow-up-right.BbJO1c1E.CgNQXpr2.js +0 -24
  152. package/dist/chunks/arrow-up-tray.BYRIGMnv.DVLg9Kkw.js +0 -24
  153. package/dist/chunks/arrow-up.DlpZOcZ-.Dc_qfm_w.js +0 -24
  154. package/dist/chunks/arrow-uturn-down.R4GNIFWx.1xJeI9TW.js +0 -24
  155. package/dist/chunks/arrow-uturn-left.C1uMohdz.DQroNRfS.js +0 -24
  156. package/dist/chunks/arrow-uturn-right.OoQi1rgb.D4ddYi69.js +0 -24
  157. package/dist/chunks/arrow-uturn-up.CA4h-qqY.CRk_dwWh.js +0 -24
  158. package/dist/chunks/arrows-pointing-in.BxJHq5jK.GkaFX_uo.js +0 -24
  159. package/dist/chunks/arrows-pointing-out.DSyAjelZ.DBsKw4zk.js +0 -24
  160. package/dist/chunks/arrows-right-left.CDFOwlcC.QpbG2nK3.js +0 -24
  161. package/dist/chunks/arrows-up-down.CzfSf__L.DQ5gcMh8.js +0 -24
  162. package/dist/chunks/at-symbol.DaUFyuwg.FAKonxFg.js +0 -24
  163. package/dist/chunks/backspace.Cu9cbNxd.DcCOHSU3.js +0 -24
  164. package/dist/chunks/backward.B68JN4JS.CqwNvpdK.js +0 -24
  165. package/dist/chunks/banknotes.Dz4gb6DH.Bc_vmzxh.js +0 -24
  166. package/dist/chunks/bars-2.C0E0O7Qs.BkkB9qGT.js +0 -24
  167. package/dist/chunks/bars-3-bottom-left.DKFMX51P.C0SPJDh6.js +0 -24
  168. package/dist/chunks/bars-3-bottom-right.Ct1xrw2s.KKvQgup3.js +0 -24
  169. package/dist/chunks/bars-3-center-left.DjUpkdr4.DbP3YQA5.js +0 -24
  170. package/dist/chunks/bars-3.B-K8M_78.Cf4kHUcq.js +0 -24
  171. package/dist/chunks/bars-4.BEt3xG4t.CUkKbYOi.js +0 -24
  172. package/dist/chunks/bars-arrow-down.CfQGLJeK.cH_4-4i2.js +0 -24
  173. package/dist/chunks/bars-arrow-up.CNsLQ8yw.Cwfjtvt4.js +0 -24
  174. package/dist/chunks/battery-0.C_-hFpYX.BSF335Bw.js +0 -24
  175. package/dist/chunks/battery-100.B69VsGq_.6MJf6W8Q.js +0 -24
  176. package/dist/chunks/battery-50.1CCBNwk2.xCj7wvTy.js +0 -24
  177. package/dist/chunks/beaker.DFKLDGeW.21Nm6WlZ.js +0 -24
  178. package/dist/chunks/bell-alert.BbDqk2az.D3ABDQ-w.js +0 -24
  179. package/dist/chunks/bell-slash.C3bKvJAV.n68SmjIt.js +0 -24
  180. package/dist/chunks/bell-snooze.C2COKl8x.Bca4lBpS.js +0 -24
  181. package/dist/chunks/bell.Fm9I5urF.DMLNQRjv.js +0 -24
  182. package/dist/chunks/bold.BDPvVUAR.BvlPriBT.js +0 -23
  183. package/dist/chunks/bolt-slash.DZlEBjB4.CEL1Y-CI.js +0 -24
  184. package/dist/chunks/bolt.B8RYziBX.ydwrTz2s.js +0 -24
  185. package/dist/chunks/book-open.CWUGLre3.DXKaHSLM.js +0 -24
  186. package/dist/chunks/bookmark-slash.Ff--gHir.ClEojQnD.js +0 -24
  187. package/dist/chunks/bookmark-square.CJBzX9qk.kdKOPQ-6.js +0 -24
  188. package/dist/chunks/bookmark.Cb2OSlaK.C3oubrJL.js +0 -24
  189. package/dist/chunks/briefcase.CTgTVSEh.DX78R1hk.js +0 -24
  190. package/dist/chunks/bug-ant.B0vPk3_N.Ct6xqXqe.js +0 -24
  191. package/dist/chunks/building-library.BqdrL-Ec.CA7EOKpn.js +0 -24
  192. package/dist/chunks/building-office-2.C1qF28CI.BTj9K19P.js +0 -24
  193. package/dist/chunks/building-office.BR20ANeD.DcYLUjuP.js +0 -24
  194. package/dist/chunks/building-storefront.D_Lbpsda.BBHRe1sf.js +0 -24
  195. package/dist/chunks/cake.Bvc4oe_S.etQ39ySd.js +0 -24
  196. package/dist/chunks/calculator.TIoQepn_.DCacd6Vr.js +0 -24
  197. package/dist/chunks/calendar-date-range.Dy5vs7S_.D2iryGH7.js +0 -24
  198. package/dist/chunks/calendar-days.oMae6t-4.KdXSppPh.js +0 -24
  199. package/dist/chunks/calendar.DxxJBJoK.CeJ8fSPb.js +0 -24
  200. package/dist/chunks/camera.Cm_7RSqq.B2qog63I.js +0 -31
  201. package/dist/chunks/chart-bar-square.C_56q4ax.D88dnWFr.js +0 -24
  202. package/dist/chunks/chart-bar.CR-2VE6U.BpP0YDjf.js +0 -24
  203. package/dist/chunks/chart-pie.CRPh8b79.DKBryPfA.js +0 -31
  204. package/dist/chunks/chat-bubble-bottom-center-text.ChYHSzWk.Bg8ClnIa.js +0 -24
  205. package/dist/chunks/chat-bubble-bottom-center.BTTqABms.D9d0N1iO.js +0 -24
  206. package/dist/chunks/chat-bubble-left-ellipsis.WSEjQ7jL.CjqH2if2.js +0 -24
  207. package/dist/chunks/chat-bubble-left-right.DqOV8vN_.BKm2s-Hz.js +0 -24
  208. package/dist/chunks/chat-bubble-left.BvdvHHlA.zR-JhdYC.js +0 -24
  209. package/dist/chunks/chat-bubble-oval-left-ellipsis.CpHCuPeS.r5W8LOR8.js +0 -24
  210. package/dist/chunks/chat-bubble-oval-left.CdqaR91h.BW9JRF8r.js +0 -24
  211. package/dist/chunks/check-badge.GjHXGEG0.C_oOCt78.js +0 -24
  212. package/dist/chunks/check-circle.CFcKgPZ4.DfY78EtL.js +0 -24
  213. package/dist/chunks/check.DfYjeOVQ.DXNsuRna.js +0 -24
  214. package/dist/chunks/chevron-double-down.CZMayNS1.CisfSsZ8.js +0 -24
  215. package/dist/chunks/chevron-double-left.De8TBs-I.DAucus_w.js +0 -24
  216. package/dist/chunks/chevron-double-right.XnTrUsod.Cuu5xoTt.js +0 -24
  217. package/dist/chunks/chevron-double-up.F7fkhaor.DRJWwQ9F.js +0 -31
  218. package/dist/chunks/chevron-down.ChGfmxD1.CQ7rtF0T.js +0 -24
  219. package/dist/chunks/chevron-left.CTBM8oHi.Ba3U4jcW.js +0 -24
  220. package/dist/chunks/chevron-right.BXTR7Es5.C6KI-hWC.js +0 -24
  221. package/dist/chunks/chevron-up-down.C7-HMAjy.DKw8M2-I.js +0 -24
  222. package/dist/chunks/chevron-up.cK7QDv75.B2N-Hk-6.js +0 -24
  223. package/dist/chunks/circle-stack.BnyTq7sI.1XtJbY6M.js +0 -24
  224. package/dist/chunks/clipboard-document-check.CJ3xBd7t.Br9n89F9.js +0 -24
  225. package/dist/chunks/clipboard-document-list.CF1likOV.D3KAtz_z.js +0 -24
  226. package/dist/chunks/clipboard-document.CdTKuGSv.ChOrKMSS.js +0 -24
  227. package/dist/chunks/clipboard.CzjWQfRH.Da-cebFK.js +0 -24
  228. package/dist/chunks/clock.NNdb3vyA.D3jUXhQ7.js +0 -24
  229. package/dist/chunks/cloud-arrow-down.CvtCNIxh.D1aF62k3.js +0 -24
  230. package/dist/chunks/cloud-arrow-up.D1JeGPbq.C4jLYHme.js +0 -24
  231. package/dist/chunks/cloud.C9fdU5-X.cydYlCh2.js +0 -24
  232. package/dist/chunks/code-bracket-square.BsQyTz1s.BeZZZPk2.js +0 -24
  233. package/dist/chunks/code-bracket.DJDL79-i.B4G6-VO6.js +0 -24
  234. package/dist/chunks/cog-6-tooth.BbV5JYl1.DeTgzUXG.js +0 -31
  235. package/dist/chunks/cog-8-tooth.BnBTLB6M.D8tH-0GQ.js +0 -31
  236. package/dist/chunks/cog.BXgqaz3X.CF2Pe_yh.js +0 -24
  237. package/dist/chunks/command-line.w_Y9_Kkc.BMaD58fF.js +0 -24
  238. package/dist/chunks/computer-desktop.BpRzP4fc.BWRlZKsP.js +0 -24
  239. package/dist/chunks/cpu-chip.ho-tmFIn.ClPQmB5Q.js +0 -24
  240. package/dist/chunks/credit-card.DkrZZI4D.ChD3ISF_.js +0 -24
  241. package/dist/chunks/cube-transparent.C8Wdi45T.CgHVrtio.js +0 -24
  242. package/dist/chunks/cube.B9UcKOKF.DVXGNDI0.js +0 -24
  243. package/dist/chunks/currency-bangladeshi.DzhT0-h5.BhxC0NCe.js +0 -24
  244. package/dist/chunks/currency-dollar.Bfi6fPEz.DxEvUH91.js +0 -24
  245. package/dist/chunks/currency-euro.Jpiq8P6z.C5ljNb5d.js +0 -24
  246. package/dist/chunks/currency-pound.DrqWKbpM.BxOh3Nry.js +0 -24
  247. package/dist/chunks/currency-rupee.DHxnpaCI.Ynrf76Aj.js +0 -24
  248. package/dist/chunks/currency-yen.DQVa07WN.DdpYfRy5.js +0 -24
  249. package/dist/chunks/cursor-arrow-rays.MVP12F6C.hM5N0ZS3.js +0 -24
  250. package/dist/chunks/cursor-arrow-ripple.xLXix2uM.UbRX2pFw.js +0 -24
  251. package/dist/chunks/device-phone-mobile.B-57CfH5.D6VQ256l.js +0 -24
  252. package/dist/chunks/device-tablet.Bjsa72o7.CH-OVJkh.js +0 -24
  253. package/dist/chunks/divide.CV4gt445.Cv9KyNuJ.js +0 -24
  254. package/dist/chunks/document-arrow-down.B_57Gtno.BlZeqf-M.js +0 -24
  255. package/dist/chunks/document-arrow-up.BF_OVDJs.CbEXCmN0.js +0 -24
  256. package/dist/chunks/document-chart-bar.B46OY9CL.CIBAYVab.js +0 -24
  257. package/dist/chunks/document-check.CvLYBdnm.DluZSYpL.js +0 -24
  258. package/dist/chunks/document-currency-bangladeshi.HbXz9Sub.Cew_CE25.js +0 -24
  259. package/dist/chunks/document-currency-dollar.DPjKxFMa.jXB-YTux.js +0 -24
  260. package/dist/chunks/document-currency-euro.C-L5djvR.C9UJW2-n.js +0 -24
  261. package/dist/chunks/document-currency-pound.BzcYNgGa.CgLXYWAs.js +0 -24
  262. package/dist/chunks/document-currency-rupee.DescAEsg.CzFKJayN.js +0 -24
  263. package/dist/chunks/document-currency-yen.CyrkAYT6.B16hPkmM.js +0 -24
  264. package/dist/chunks/document-duplicate.D7vGJG_8.CIombGpo.js +0 -24
  265. package/dist/chunks/document-magnifying-glass.Burq7Xn2.QtA02zrk.js +0 -24
  266. package/dist/chunks/document-minus.DxGQQWCr.kiSQpPdH.js +0 -24
  267. package/dist/chunks/document-plus.DKk5zAwV.H3B6AI11.js +0 -24
  268. package/dist/chunks/document-text.CSCb2U2T.ZDLRpT-o.js +0 -24
  269. package/dist/chunks/document.CS0Ohrgt.DE8cSIrm.js +0 -24
  270. package/dist/chunks/ellipsis-horizontal-circle.BFOXQi09.CTDaeIGM.js +0 -24
  271. package/dist/chunks/ellipsis-horizontal.DqhpkTUz.CclJBCQG.js +0 -24
  272. package/dist/chunks/ellipsis-vertical.B8W0CqqN.B7I6k_qQ.js +0 -24
  273. package/dist/chunks/envelope-open.BQygUrrv.LFK3EzRF.js +0 -24
  274. package/dist/chunks/envelope.DFplr4Iv.Da66rxN8.js +0 -24
  275. package/dist/chunks/equals.Y4339RW6.CKookNbc.js +0 -24
  276. package/dist/chunks/exclamation-circle.PMllX_sR.BiDbdO8o.js +0 -24
  277. package/dist/chunks/exclamation-triangle.DP_ZdqKK.D-pRZiWC.js +0 -24
  278. package/dist/chunks/eye-dropper.BB7xFmZf.CfuOHkRE.js +0 -24
  279. package/dist/chunks/eye-slash.B-Q7zAl9.Z-QG3_NS.js +0 -24
  280. package/dist/chunks/eye.rnBIUryK.CTGdXztX.js +0 -31
  281. package/dist/chunks/face-frown.BdZUKORe.CTMmkA6s.js +0 -24
  282. package/dist/chunks/face-smile.BgHmgpsD.BD0FSBwY.js +0 -24
  283. package/dist/chunks/film.CvtqcSvO.fo_u8ciz.js +0 -24
  284. package/dist/chunks/finger-print.BalGxdl5.lX4SOFcC.js +0 -24
  285. package/dist/chunks/fire.C2S-dlHW.D_I1XNHh.js +0 -31
  286. package/dist/chunks/flag.BDHI8kIc.9T2ghrYf.js +0 -24
  287. package/dist/chunks/folder-arrow-down.CMe8l5qs.CY2PCaTR.js +0 -24
  288. package/dist/chunks/folder-minus.BIP4kiBI.CVSaimPJ.js +0 -24
  289. package/dist/chunks/folder-open.vCqZvh13.CVTeu5UO.js +0 -24
  290. package/dist/chunks/folder-plus.UKgqnCMI.BvhuTxMF.js +0 -24
  291. package/dist/chunks/folder.VY6d7M0v.BjpXSXu9.js +0 -24
  292. package/dist/chunks/fork.Bx0SP5G0.B7BHLQyz.js +0 -49
  293. package/dist/chunks/forward.CJadSay_.BBS11cS_.js +0 -24
  294. package/dist/chunks/funnel.CI1X4xTV.C2sbt1gJ.js +0 -24
  295. package/dist/chunks/gif.3w8BBVap.p3RkEv10.js +0 -24
  296. package/dist/chunks/gift-top.DGrJVe5T.LHgvzIEw.js +0 -24
  297. package/dist/chunks/gift.BdjKoMjg.Bf_lfrxv.js +0 -24
  298. package/dist/chunks/github.DR-YREFz.BKzaMPzV.js +0 -20
  299. package/dist/chunks/globe-alt.Ci-4WkuA.Df2W4RpY.js +0 -24
  300. package/dist/chunks/globe-americas.8k4TjYg9.DwAgObeI.js +0 -24
  301. package/dist/chunks/globe-asia-australia.CJy-S58s.BsXl4X35.js +0 -24
  302. package/dist/chunks/globe-europe-africa.Ch0apA4Z.ChCxgvsh.js +0 -24
  303. package/dist/chunks/h1.B0UxaUz3.B-fMNckN.js +0 -24
  304. package/dist/chunks/h2.CoDly_Rk.xn2P59Pu.js +0 -24
  305. package/dist/chunks/h3.BiPu_1GK.BtUGrtqm.js +0 -24
  306. package/dist/chunks/hand-raised.BibTyl03.Bmxt1b7s.js +0 -24
  307. package/dist/chunks/hand-thumb-down.BJoc9FWD.CTxVd9E4.js +0 -24
  308. package/dist/chunks/hand-thumb-up.BZWQJYwr.Byh64TmW.js +0 -24
  309. package/dist/chunks/hashtag.EamZCy49.-5GV13nB.js +0 -24
  310. package/dist/chunks/heart.DvH7fa-0.DC7zVVeb.js +0 -24
  311. package/dist/chunks/home-modern.L4UFeQLe.Q-aoULM-.js +0 -24
  312. package/dist/chunks/home.QELZheLi.CQ5VBdS-.js +0 -24
  313. package/dist/chunks/identification.CU9KU-bX.CFRzYkwU.js +0 -24
  314. package/dist/chunks/inbox-arrow-down.6HTSO1kx.DaoUuGHv.js +0 -24
  315. package/dist/chunks/inbox-stack.BfdiokBq.mWxjLRtV.js +0 -24
  316. package/dist/chunks/inbox.Biazzhd4.cuiJovdp.js +0 -24
  317. package/dist/chunks/index.CvKh762h.js +0 -352
  318. package/dist/chunks/information-circle.yhJPMoUQ.CkqMaCTJ.js +0 -24
  319. package/dist/chunks/italic.njlz_SwH.B8t1zdyt.js +0 -24
  320. package/dist/chunks/key.C8y1z_Nx.CWRIUYtz.js +0 -24
  321. package/dist/chunks/language.1Xs8PuP5.eK68tCI2.js +0 -24
  322. package/dist/chunks/lifebuoy.uldI5FjH.ttPYeOpt.js +0 -24
  323. package/dist/chunks/light-bulb.BnZMjrix.Nn8bb3uA.js +0 -24
  324. package/dist/chunks/link-slash.DYM_8hTp.DbbqWpYf.js +0 -24
  325. package/dist/chunks/link._zvxE-ZN.DCRS1Nhm.js +0 -24
  326. package/dist/chunks/list-bullet.Ck8i-zl1.DYTtynEe.js +0 -24
  327. package/dist/chunks/lock-closed.Do5wxxfB.BoHZR_Cx.js +0 -24
  328. package/dist/chunks/lock-open.DmUSVzU7.CIioMjR4.js +0 -24
  329. package/dist/chunks/magnifying-glass-circle.BBKKo-36.D6LZubsX.js +0 -24
  330. package/dist/chunks/magnifying-glass-minus.D1YH2gJK.DtYqNUQw.js +0 -24
  331. package/dist/chunks/magnifying-glass-plus.BgJ8lfbV.BBOa_lQz.js +0 -24
  332. package/dist/chunks/magnifying-glass.Bi8efyWn.BLzbV1BL.js +0 -24
  333. package/dist/chunks/map-pin.Bxbb--MZ.ea0oLEJ4.js +0 -31
  334. package/dist/chunks/map.DRcXyo0s.DMK4_gRD.js +0 -24
  335. package/dist/chunks/megaphone.BTvu-vIj.H3XYCMYF.js +0 -24
  336. package/dist/chunks/microphone.BJqDhEd7.BsJEAG9l.js +0 -24
  337. package/dist/chunks/minus-circle.DX_Wo_R6.CfihDX_c.js +0 -24
  338. package/dist/chunks/minus-small.BdK3wxa2.BruhEWWT.js +0 -24
  339. package/dist/chunks/minus.KSG6SL-A.Ci3tO7z7.js +0 -24
  340. package/dist/chunks/moon.BAqSTWOk.y5qE-JgT.js +0 -24
  341. package/dist/chunks/musical-note.Erx2eYZM.CeYcRysR.js +0 -24
  342. package/dist/chunks/newspaper.BxEeFWo5.Caqcj866.js +0 -24
  343. package/dist/chunks/no-image.G9oAqLYN.QYfh20At.js +0 -18
  344. package/dist/chunks/no-symbol.v1ZxT7PS.CLiEtcjA.js +0 -24
  345. package/dist/chunks/numbered-list.D4--Brg5.DPb7JWAD.js +0 -24
  346. package/dist/chunks/paint-brush.9Oq01j7X.BaQOU4-k.js +0 -24
  347. package/dist/chunks/paper-airplane.DKx_Ww6M.Dx_A6-r1.js +0 -24
  348. package/dist/chunks/paper-clip.Cd3ICjAc.Di3lmXzN.js +0 -24
  349. package/dist/chunks/pause-circle.Dyaqta5w.Bf5lVO6T.js +0 -24
  350. package/dist/chunks/pause.Xl-ti251.BrVoKvOq.js +0 -24
  351. package/dist/chunks/pencil-square.83G17jv5.BieHF6-5.js +0 -24
  352. package/dist/chunks/pencil.Bv-2uNMw.B6t0Zv85.js +0 -24
  353. package/dist/chunks/percent-badge.BR-COyYt.D9uZiuV4.js +0 -24
  354. package/dist/chunks/phone-arrow-down-left.bgYNFdYw.DlXuTKyQ.js +0 -24
  355. package/dist/chunks/phone-arrow-up-right.DL8xnmCp.B6ny9DGc.js +0 -24
  356. package/dist/chunks/phone-x-mark.EJ8g8Io4.iD9I0F8O.js +0 -24
  357. package/dist/chunks/phone.C9HcOJV4.DR_ydb9P.js +0 -24
  358. package/dist/chunks/photo.D2i5ltv-.Bx4bun8k.js +0 -24
  359. package/dist/chunks/play-circle.sQgQYbxL.DIVhJ_VT.js +0 -31
  360. package/dist/chunks/play-pause.7fATndsv.BlbQnYtP.js +0 -24
  361. package/dist/chunks/play.DPQ51d76.CXxYnamK.js +0 -24
  362. package/dist/chunks/plus-circle.t0rIMK17.CJuEO_hV.js +0 -24
  363. package/dist/chunks/plus-small.q2_UTnSJ.D00Lo6Gm.js +0 -24
  364. package/dist/chunks/plus.B4eFPhg5.Bjb51_89.js +0 -24
  365. package/dist/chunks/power.DbnsGjcP.ADCLCnp1.js +0 -24
  366. package/dist/chunks/presentation-chart-bar.qOHPrVoA.DzoUJVBk.js +0 -24
  367. package/dist/chunks/presentation-chart-line.kt2UcfXU.ByalT4af.js +0 -24
  368. package/dist/chunks/printer.DgYbu-oZ.oyHdK_Er.js +0 -24
  369. package/dist/chunks/puzzle-piece.DPVPnROW.Dj5Pkwqw.js +0 -24
  370. package/dist/chunks/qr-code.Cz6_gY5W.BRQos2fl.js +0 -31
  371. package/dist/chunks/question-mark-circle.BI3Pj1lM.CUkVvnjz.js +0 -24
  372. package/dist/chunks/queue-list.BTtd9gV_.BZqvXCX1.js +0 -24
  373. package/dist/chunks/radio.NXQa70KZ.DcLeSUt8.js +0 -24
  374. package/dist/chunks/receipt-percent.BEffIYGJ.C5vDjent.js +0 -24
  375. package/dist/chunks/receipt-refund.hLJiXRl-.BvT1RelP.js +0 -24
  376. package/dist/chunks/rectangle-group.DUnjEoiP.9pML-9-S.js +0 -24
  377. package/dist/chunks/rectangle-stack.DxfbSUKM.BS0h3Qu8.js +0 -24
  378. package/dist/chunks/rocket-launch.X-OfcjiP.BRHh-FkZ.js +0 -24
  379. package/dist/chunks/rss.BLvK5jPr.CckNH6AG.js +0 -24
  380. package/dist/chunks/scale.DEEYJ6Zk.CXnrDRjc.js +0 -24
  381. package/dist/chunks/scissors.Bu_6BaOX.CgCRjlsD.js +0 -24
  382. package/dist/chunks/server-stack.DmncQkqn.DlXBXJ68.js +0 -24
  383. package/dist/chunks/server.LyXBRSxY.DiraGD0N.js +0 -24
  384. package/dist/chunks/share.Cf9OjBgL.RQldJRZ9.js +0 -24
  385. package/dist/chunks/shield-check.VQpLzd2v.Bv6XREpP.js +0 -24
  386. package/dist/chunks/shield-exclamation.Be0w3_jk.Czs5h8N1.js +0 -24
  387. package/dist/chunks/shopping-bag.CmqEq0ln.Co-ENH4J.js +0 -24
  388. package/dist/chunks/shopping-cart.sDo0rmyp.Dwxg9WFh.js +0 -24
  389. package/dist/chunks/signal-slash.Cj_p1Nk-.Bos1dz3M.js +0 -24
  390. package/dist/chunks/signal.CDdRnntO.zs66muqE.js +0 -24
  391. package/dist/chunks/slash.DLlsJ67p.BovzBFnY.js +0 -24
  392. package/dist/chunks/sparkles.Cl4CxIOA.CJtVBamV.js +0 -24
  393. package/dist/chunks/speaker-wave.Dhz2ha5o.BKHqvdzL.js +0 -24
  394. package/dist/chunks/speaker-x-mark.D5bJpGdc.B-98J4TH.js +0 -24
  395. package/dist/chunks/square-2-stack.B_K3e5Xo.BpuWW3zQ.js +0 -24
  396. package/dist/chunks/square-3-stack-3d.kEZ7HRU8.u3pEG_dB.js +0 -24
  397. package/dist/chunks/squares-2x2.DbpIJWWH.czohOArw.js +0 -24
  398. package/dist/chunks/squares-plus.DJoqsZG-.C56wwQo6.js +0 -24
  399. package/dist/chunks/star-solid.ith3udUr.fI6COBY6.js +0 -22
  400. package/dist/chunks/star.BOm1sCet.CrlFtkIH.js +0 -24
  401. package/dist/chunks/stop-circle.i8k9ENGo.Bvg3kAtp.js +0 -31
  402. package/dist/chunks/stop.BvbL0z5G.BzZa9cz4.js +0 -24
  403. package/dist/chunks/strikethrough.D9IxMEze.CG0o3e8f.js +0 -24
  404. package/dist/chunks/sun.DtlkYkWH.BY6FsaIr.js +0 -24
  405. package/dist/chunks/swatch.BQEbGG5v.mzOiKL2U.js +0 -24
  406. package/dist/chunks/table-cells.DgYgkJao.D_ev8kjA.js +0 -24
  407. package/dist/chunks/tag.9pi2-WVW.AW6frX03.js +0 -31
  408. package/dist/chunks/throttle.DN8ARw0a.js +0 -11
  409. package/dist/chunks/ticket.CoeaVN1f.D8B_ZCyj.js +0 -24
  410. package/dist/chunks/trash.CKFg-ylA.BeH6WFxu.js +0 -24
  411. package/dist/chunks/trophy.DqS7is9J.BqpYwRUm.js +0 -24
  412. package/dist/chunks/truck.CiPiMFO5.I1lYcatr.js +0 -24
  413. package/dist/chunks/tv.FRI46IJL.DYLIUXzl.js +0 -24
  414. package/dist/chunks/underline.CTS7x7HZ.BTMyDX0M.js +0 -24
  415. package/dist/chunks/user-circle.jg7OpkHK.BzdqSzzl.js +0 -24
  416. package/dist/chunks/user-group.ZzJJeNOR.DqrCBO8z.js +0 -24
  417. package/dist/chunks/user-minus.CFpE7tJo.Cc-_xIha.js +0 -24
  418. package/dist/chunks/user-plus.56xx_RZF.DeJBUlvA.js +0 -24
  419. package/dist/chunks/user.BHnHyDaq.DDyUV-u5.js +0 -24
  420. package/dist/chunks/users.CcE72INP.DbTawkoy.js +0 -24
  421. package/dist/chunks/variable.D2aSg3jI.B9JN_cwv.js +0 -24
  422. package/dist/chunks/video-camera-slash.BwxNb0cm.SnSS7S5P.js +0 -24
  423. package/dist/chunks/video-camera.CoJgwP4F.BmMWt0vs.js +0 -24
  424. package/dist/chunks/view-columns.LoFVFzBR.CIMGv7mf.js +0 -24
  425. package/dist/chunks/viewfinder-circle.CaQlvTWC.CJVVM5_n.js +0 -24
  426. package/dist/chunks/wallet.CqM_mibw.kwMG5OEh.js +0 -24
  427. package/dist/chunks/wifi.DUdIKgQN.DqZ0nPHO.js +0 -24
  428. package/dist/chunks/window.BeFPU0ZR.Cqieba0K.js +0 -24
  429. package/dist/chunks/wrench-screwdriver.BcMJDiuu.Ces3a6-S.js +0 -24
  430. package/dist/chunks/wrench.DhPW3HZx.CNeKEI4i.js +0 -31
  431. package/dist/chunks/x-circle.Bv0-dC8L.BikPLDPw.js +0 -24
  432. package/dist/chunks/x-mark.CTalOvvY.js +0 -23
  433. package/dist/chunks/x-mark.umAR9tn5.iu8PJ4nS.js +0 -24
  434. package/dist/types/composables/useFormValidator/utils.d.ts +0 -116
@@ -6,6 +6,9 @@ const designTokens = {
6
6
  lg: "calc(var(--maz-radius) + 4px)",
7
7
  xl: "calc(var(--maz-radius) + 8px)"
8
8
  },
9
+ borderColor: {
10
+ DEFAULT: "hsl(var(--maz-border) / <alpha-value>)"
11
+ },
9
12
  // Bordures
10
13
  borderWidth: {
11
14
  DEFAULT: "var(--maz-border-width)",
@@ -3,7 +3,20 @@ export interface MazAccordionProps {
3
3
  modelValue?: number;
4
4
  contentClass?: unknown;
5
5
  }
6
- declare function __VLS_template(): any;
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: Partial<Record<`title-${number}`, (_: {
9
+ isOpen: boolean;
10
+ }) => any>> & Partial<Record<`content-${number}`, (_: {
11
+ isOpen: boolean;
12
+ }) => any>> & {
13
+ content?(_: {
14
+ isOpen: boolean;
15
+ }): any;
16
+ };
17
+ refs: {};
18
+ rootEl: HTMLDivElement;
19
+ };
7
20
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
8
21
  declare const __VLS_component: import('vue').DefineComponent<MazAccordionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
22
  "update:model-value": (...args: any[]) => void;
@@ -13,7 +26,7 @@ declare const __VLS_component: import('vue').DefineComponent<MazAccordionProps,
13
26
  id: string;
14
27
  modelValue: number;
15
28
  contentClass: undefined;
16
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
17
30
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
31
  export default _default;
19
32
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -30,12 +30,6 @@ export interface MazCheckboxProps<T = boolean | (string | number)[]> {
30
30
  warning?: boolean;
31
31
  /** The hint text to display below the input. */
32
32
  hint?: string;
33
- /**
34
- * The tabindex of the checkbox
35
- * @default 0
36
- * @type {HTMLAttributes['tabindex']}
37
- */
38
- tabindex?: HTMLAttributes['tabindex'];
39
33
  }
40
34
  declare const _default: <T extends boolean | (string | number)[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
41
35
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
@@ -275,7 +275,7 @@ declare function __VLS_template(): {
275
275
  readonly trapFocus?: boolean | undefined;
276
276
  readonly keepOpenOnHover?: boolean | undefined;
277
277
  readonly block?: boolean | undefined;
278
- readonly positionDelay?: number | undefined;
278
+ readonly positionReference?: (string | HTMLElement) | undefined;
279
279
  readonly onClose?: (() => any) | undefined;
280
280
  readonly onToggle?: ((value: boolean) => any) | undefined;
281
281
  readonly onOpen?: (() => any) | undefined;
@@ -338,11 +338,7 @@ declare function __VLS_template(): {
338
338
  };
339
339
  $forceUpdate: () => void;
340
340
  $nextTick: typeof import('vue').nextTick;
341
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /**
342
- * CSS selector for a custom element that triggers the picker
343
- * @type {string}
344
- * @example '#my-button', '.trigger-class'
345
- */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
341
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
346
342
  } & Readonly<{}> & Omit<Readonly<{
347
343
  modelValue?: boolean;
348
344
  } & MazPopoverProps> & Readonly<{
@@ -443,7 +439,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
443
439
  readonly trapFocus?: boolean | undefined;
444
440
  readonly keepOpenOnHover?: boolean | undefined;
445
441
  readonly block?: boolean | undefined;
446
- readonly positionDelay?: number | undefined;
442
+ readonly positionReference?: (string | HTMLElement) | undefined;
447
443
  readonly onClose?: (() => any) | undefined;
448
444
  readonly onToggle?: ((value: boolean) => any) | undefined;
449
445
  readonly onOpen?: (() => any) | undefined;
@@ -506,11 +502,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
506
502
  };
507
503
  $forceUpdate: () => void;
508
504
  $nextTick: typeof import('vue').nextTick;
509
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (... /**
510
- * CSS selector for a custom element that triggers the picker
511
- * @type {string}
512
- * @example '#my-button', '.trigger-class'
513
- */args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
505
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
514
506
  } & Readonly<{}> & Omit<Readonly<{
515
507
  modelValue?: boolean;
516
508
  } & MazPopoverProps> & Readonly<{
@@ -119,7 +119,7 @@ declare const _default: import('vue').DefineComponent<MazInputNumberProps, {}, {
119
119
  step: number;
120
120
  min: number;
121
121
  max: number;
122
- inputmode: "search" | "text" | "none" | "email" | "tel" | "decimal" | "url" | "numeric";
122
+ inputmode: "search" | "text" | "none" | "decimal" | "numeric" | "email" | "url" | "tel";
123
123
  textCenter: boolean;
124
124
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
125
125
  export default _default;
@@ -155,11 +155,14 @@ export interface MazPopoverProps {
155
155
  */
156
156
  block?: boolean;
157
157
  /**
158
- * Delay before setting the position in milliseconds
159
- * @description Useful when the popover content is not immediately visible or rendered
160
- * @default 50
158
+ * CSS selector or element reference to use for positioning calculations
159
+ * @description When provided, the popover will position relative to this element instead of the trigger
160
+ * Useful for components with labels where you want to position relative to the actual input
161
+ * @type {string | HTMLElement}
162
+ * @default undefined
163
+ * @example "input" or "#my-input" or HTMLElement
161
164
  */
162
- positionDelay?: number;
165
+ positionReference?: string | HTMLElement;
163
166
  }
164
167
  declare function updatePosition(): void;
165
168
  declare function open(): void;
@@ -33,13 +33,24 @@ export interface MazStepperProps {
33
33
  /** Allow to close the steps */
34
34
  canCloseSteps?: boolean;
35
35
  }
36
- declare function __VLS_template(): any;
36
+ declare function __VLS_template(): {
37
+ attrs: Partial<{}>;
38
+ slots: Partial<Record<`icon-${number}`, (_: {}) => any>> & Partial<Record<`title-${number}`, (_: {}) => any>> & Partial<Record<`subtitle-${number}`, (_: {}) => any>> & Partial<Record<`title-info-${number}`, (_: {}) => any>> & Partial<Record<`content-${number}`, (_: {
39
+ validated: boolean;
40
+ error: boolean | undefined;
41
+ warning: boolean | undefined;
42
+ nextStep: () => void;
43
+ previousStep: () => void;
44
+ }) => any>>;
45
+ refs: {};
46
+ rootEl: HTMLDivElement;
47
+ };
37
48
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
38
49
  declare const __VLS_component: import('vue').DefineComponent<MazStepperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
39
50
  "update:model-value": (value: number) => any;
40
51
  }, string, import('vue').PublicProps, Readonly<MazStepperProps> & Readonly<{
41
52
  "onUpdate:model-value"?: ((value: number) => any) | undefined;
42
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
53
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
43
54
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
44
55
  export default _default;
45
56
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -244,10 +244,71 @@ declare const _default: <T extends MazTableRow<T>>(__VLS_props: NonNullable<Awai
244
244
  readonly "onUpdate:search-query"?: ((searchQuery: string | undefined) => any) | undefined;
245
245
  readonly "onUpdate:page"?: ((page: number) => any) | undefined;
246
246
  readonly "onUpdate:page-size"?: ((pageSize: number) => any) | undefined;
247
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:model-value" | "onUpdate:search-query" | "onUpdate:page" | "onUpdate:page-size"> & MazTableProps<T> & any> & import('vue').PublicProps;
247
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:model-value" | "onUpdate:search-query" | "onUpdate:page" | "onUpdate:page-size"> & MazTableProps<T> & Partial<{}>> & import('vue').PublicProps;
248
248
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
249
249
  attrs: any;
250
- slots: any;
250
+ slots: Partial<Record<`header-label-${string}`, (_: {
251
+ header: {
252
+ label: string;
253
+ key?: string | undefined;
254
+ sortable?: boolean | undefined;
255
+ hidden?: boolean | undefined;
256
+ srOnly?: boolean | undefined;
257
+ width?: string | undefined;
258
+ maxWidth?: string | undefined;
259
+ classes?: ThHTMLAttributes["class"];
260
+ scope?: string | undefined;
261
+ align?: "justify" | "center" | "left" | "right" | "char" | undefined;
262
+ rowspan?: (string | number) | undefined;
263
+ colspan?: (string | number) | undefined;
264
+ headers?: string | undefined;
265
+ thHeaders?: string | undefined;
266
+ sorted?: "ASC" | "DESC" | undefined;
267
+ };
268
+ label: string;
269
+ }) => any>> & Partial<Record<`cell-${string}`, (_: {
270
+ row: T;
271
+ value: any;
272
+ }) => any>> & {
273
+ title?(_: {}): any;
274
+ caption?(_: {}): any;
275
+ thead?(_: {}): any;
276
+ header?(_: {
277
+ header: {
278
+ label: string;
279
+ key?: string | undefined;
280
+ sortable?: boolean | undefined;
281
+ hidden?: boolean | undefined;
282
+ srOnly?: boolean | undefined;
283
+ width?: string | undefined;
284
+ maxWidth?: string | undefined;
285
+ classes?: ThHTMLAttributes["class"];
286
+ scope?: string | undefined;
287
+ align?: "justify" | "center" | "left" | "right" | "char" | undefined;
288
+ rowspan?: (string | number) | undefined;
289
+ colspan?: (string | number) | undefined;
290
+ headers?: string | undefined;
291
+ thHeaders?: string | undefined;
292
+ sorted?: "ASC" | "DESC" | undefined;
293
+ };
294
+ label: string;
295
+ }): any;
296
+ 'actions-header'?(_: {}): any;
297
+ default?(_: {}): any;
298
+ select?(_: {
299
+ row: T;
300
+ selected: boolean | undefined;
301
+ }): any;
302
+ cell?(_: {
303
+ row: T;
304
+ value: any;
305
+ }): any;
306
+ actions?(_: {
307
+ row: T;
308
+ }): any;
309
+ 'no-results'?(_: {}): any;
310
+ 'no-results-text'?(_: {}): any;
311
+ };
251
312
  emit: {
252
313
  (event: "update:model-value", value: (MazTableRow<T> | string | number | boolean)[] | undefined): void;
253
314
  (event: "update:search-query", searchQuery: string | undefined): void;
@@ -39,7 +39,7 @@ export type { MazDialogPromiseButton, MazDialogPromiseData, MazDialogPromiseProp
39
39
  export { default as MazDrawer } from './MazDrawer.vue';
40
40
  export type { MazDrawerProps } from './MazDrawer.vue';
41
41
  export { default as MazDropdown } from './MazDropdown.vue';
42
- export type { MazDropdownProps } from './MazDropdown.vue';
42
+ export type { MazDropdownMenuItem, MazDropdownProps } from './MazDropdown.vue';
43
43
  export { default as MazDropzone } from './MazDropzone.vue';
44
44
  export type { MazDropzoneErrorCode, MazDropzoneFileData, MazDropzoneProps } from './MazDropzone.vue';
45
45
  export { default as MazExpandAnimation } from './MazExpandAnimation.vue';
@@ -4,7 +4,7 @@ export * from './useDialog';
4
4
  export * from './useDisplayNames';
5
5
  export * from './useFormField';
6
6
  export * from './useFormValidator';
7
- export * from './useFormValidator/types';
7
+ export type { FieldsStates, FieldState, FormFieldOptions, FormSchema, FormValidatorOptions, InferOutputSchemaFormValidator, InferSchemaFormValidator } from './useFormValidator/types';
8
8
  export * from './useFreezeValue';
9
9
  export * from './useIdleTimeout';
10
10
  export * from './useInjectStrict';
@@ -2,7 +2,7 @@ import { MaybeRefOrGetter } from 'vue';
2
2
  declare const bcp47Codes: readonly ["af-ZA", "sq-AL", "ar-DZ", "ar-BH", "ar-EG", "ar-IQ", "ar-JO", "ar-KW", "ar-LB", "ar-LY", "ar-MA", "ar-OM", "ar-QA", "ar-SA", "ar-SY", "ar-TN", "ar-AE", "ar-YE", "hy-AM", "Cy-az-AZ", "Lt-az-AZ", "eu-ES", "be-BY", "bg-BG", "ca-ES", "zh-CN", "zh-HK", "zh-MO", "zh-SG", "zh-TW", "zh-CHS", "zh-CHT", "hr-HR", "cs-CZ", "da-DK", "div-MV", "nl-BE", "nl-NL", "en-AU", "en-BZ", "en-CA", "en-CB", "en-IE", "en-JM", "en-NZ", "en-PH", "en-ZA", "en-TT", "en-GB", "en-US", "en-ZW", "et-EE", "fo-FO", "fa-IR", "fi-FI", "fr-BE", "fr-CA", "fr-FR", "fr-LU", "fr-MC", "fr-CH", "gl-ES", "ka-GE", "de-AT", "de-DE", "de-LI", "de-LU", "de-CH", "el-GR", "gu-IN", "he-IL", "hi-IN", "hu-HU", "is-IS", "id-ID", "it-IT", "it-CH", "ja-JP", "kn-IN", "kk-KZ", "kok-IN", "ko-KR", "ky-KZ", "lv-LV", "lt-LT", "mk-MK", "ms-BN", "ms-MY", "mr-IN", "mn-MN", "nb-NO", "nn-NO", "pl-PL", "pt-BR", "pt-PT", "pa-IN", "ro-RO", "ru-RU", "sa-IN", "Cy-sr-SP", "Lt-sr-SP", "sk-SK", "sl-SI", "es-AR", "es-BO", "es-CL", "es-CO", "es-CR", "es-DO", "es-EC", "es-SV", "es-GT", "es-HN", "es-MX", "es-NI", "es-PA", "es-PY", "es-PE", "es-PR", "es-ES", "es-UY", "es-VE", "sw-KE", "sv-FI", "sv-SE", "syr-SY", "ta-IN", "tt-RU", "te-IN", "th-TH", "tr-TR", "uk-UA", "ur-PK", "Cy-uz-UZ", "Lt-uz-UZ", "vi-VN"];
3
3
  declare const countryCodes: readonly ["AA", "AC", "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GT", "GU", "GW", "GY", "HK", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TA", "TC", "TD", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "XK", "YE", "YT", "ZA", "ZM", "ZW"];
4
4
  declare const iso6391Codes: readonly ["aa", "ab", "ae", "af", "ak", "am", "an", "ar", "as", "av", "ay", "az", "ba", "be", "bg", "bh", "bi", "bm", "bn", "bo", "br", "bs", "ca", "ce", "ch", "co", "cr", "cs", "cu", "cv", "cy", "da", "de", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fj", "fo", "fr", "fy", "ga", "gd", "gl", "gn", "gu", "gv", "ha", "he", "hi", "ho", "hr", "ht", "hu", "hy", "hz", "ia", "id", "ie", "ig", "ii", "ik", "io", "is", "it", "iu", "ja", "jv", "ka", "kg", "ki", "kj", "kk", "kl", "km", "kn", "ko", "kr", "ks", "ku", "kv", "kw", "ky", "la", "lb", "lg", "li", "ln", "lo", "lt", "lu", "lv", "mg", "mh", "mi", "mk", "ml", "mn", "mr", "ms", "mt", "my", "na", "nb", "nd", "ne", "ng", "nl", "nn", "no", "nr", "nv", "ny", "oc", "oj", "om", "or", "os", "pa", "pi", "pl", "ps", "pt", "qu", "rm", "rn", "ro", "ru", "rw", "sa", "sc", "sd", "se", "sg", "si", "sk", "sl", "sm", "sn", "so", "sq", "sr", "ss", "st", "su", "sv", "sw", "ta", "te", "tg", "th", "ti", "tk", "tl", "tn", "to", "tr", "ts", "tt", "tw", "ty", "ug", "uk", "ur", "uz", "ve", "vi", "vo", "wa", "wo", "xh", "yi", "yo", "za", "zh", "zu"];
5
- declare const displayNamesCodes: ("sm" | "lg" | "br" | "hr" | "li" | "th" | "tr" | "to" | "mi" | "mn" | "ms" | "tt" | "el" | "is" | "ae" | "af" | "am" | "ar" | "as" | "az" | "ba" | "be" | "bg" | "bh" | "bi" | "bm" | "bn" | "bo" | "bs" | "ca" | "ch" | "co" | "cr" | "cu" | "cv" | "cy" | "de" | "dz" | "ee" | "es" | "et" | "eu" | "fi" | "fj" | "fo" | "fr" | "ga" | "gd" | "gl" | "gn" | "gu" | "ht" | "hu" | "id" | "ie" | "io" | "it" | "kg" | "ki" | "km" | "kn" | "kr" | "kw" | "ky" | "la" | "lb" | "lt" | "lu" | "lv" | "mg" | "mh" | "mk" | "ml" | "mr" | "mt" | "my" | "na" | "ne" | "ng" | "nl" | "no" | "nr" | "om" | "pa" | "pl" | "ps" | "pt" | "ro" | "ru" | "rw" | "sa" | "sc" | "sd" | "se" | "sg" | "si" | "sk" | "sl" | "sn" | "so" | "sr" | "ss" | "st" | "sv" | "tg" | "tk" | "tl" | "tn" | "tw" | "ug" | "uz" | "ve" | "vi" | "za" | "af-ZA" | "sq-AL" | "ar-DZ" | "ar-BH" | "ar-EG" | "ar-IQ" | "ar-JO" | "ar-KW" | "ar-LB" | "ar-LY" | "ar-MA" | "ar-OM" | "ar-QA" | "ar-SA" | "ar-SY" | "ar-TN" | "ar-AE" | "ar-YE" | "hy-AM" | "Cy-az-AZ" | "Lt-az-AZ" | "eu-ES" | "be-BY" | "bg-BG" | "ca-ES" | "zh-CN" | "zh-HK" | "zh-MO" | "zh-SG" | "zh-TW" | "zh-CHS" | "zh-CHT" | "hr-HR" | "cs-CZ" | "da-DK" | "div-MV" | "nl-BE" | "nl-NL" | "en-AU" | "en-BZ" | "en-CA" | "en-CB" | "en-IE" | "en-JM" | "en-NZ" | "en-PH" | "en-ZA" | "en-TT" | "en-GB" | "en-US" | "en-ZW" | "et-EE" | "fo-FO" | "fa-IR" | "fi-FI" | "fr-BE" | "fr-CA" | "fr-FR" | "fr-LU" | "fr-MC" | "fr-CH" | "gl-ES" | "ka-GE" | "de-AT" | "de-DE" | "de-LI" | "de-LU" | "de-CH" | "el-GR" | "gu-IN" | "he-IL" | "hi-IN" | "hu-HU" | "is-IS" | "id-ID" | "it-IT" | "it-CH" | "ja-JP" | "kn-IN" | "kk-KZ" | "kok-IN" | "ko-KR" | "ky-KZ" | "lv-LV" | "lt-LT" | "mk-MK" | "ms-BN" | "ms-MY" | "mr-IN" | "mn-MN" | "nb-NO" | "nn-NO" | "pl-PL" | "pt-BR" | "pt-PT" | "pa-IN" | "ro-RO" | "ru-RU" | "sa-IN" | "Cy-sr-SP" | "Lt-sr-SP" | "sk-SK" | "sl-SI" | "es-AR" | "es-BO" | "es-CL" | "es-CO" | "es-CR" | "es-DO" | "es-EC" | "es-SV" | "es-GT" | "es-HN" | "es-MX" | "es-NI" | "es-PA" | "es-PY" | "es-PE" | "es-PR" | "es-ES" | "es-UY" | "es-VE" | "sw-KE" | "sv-FI" | "sv-SE" | "syr-SY" | "ta-IN" | "tt-RU" | "te-IN" | "th-TH" | "tr-TR" | "uk-UA" | "ur-PK" | "Cy-uz-UZ" | "Lt-uz-UZ" | "vi-VN" | "AA" | "AC" | "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GT" | "GU" | "GW" | "GY" | "HK" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TA" | "TC" | "TD" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "XK" | "YE" | "YT" | "ZA" | "ZM" | "ZW" | "aa" | "ab" | "ak" | "an" | "av" | "ay" | "ce" | "cs" | "da" | "dv" | "en" | "eo" | "fa" | "ff" | "fy" | "gv" | "ha" | "he" | "hi" | "ho" | "hy" | "hz" | "ia" | "ig" | "ii" | "ik" | "iu" | "ja" | "jv" | "ka" | "kj" | "kk" | "kl" | "ko" | "ks" | "ku" | "kv" | "ln" | "lo" | "nb" | "nd" | "nn" | "nv" | "ny" | "oc" | "oj" | "or" | "os" | "pi" | "qu" | "rm" | "rn" | "sq" | "su" | "sw" | "ta" | "te" | "ti" | "ts" | "ty" | "uk" | "ur" | "vo" | "wa" | "wo" | "xh" | "yi" | "yo" | "zh" | "zu")[];
5
+ declare const displayNamesCodes: ("sm" | "lg" | "br" | "hr" | "li" | "th" | "tr" | "to" | "mi" | "mn" | "ms" | "tt" | "el" | "ae" | "af" | "am" | "ar" | "as" | "az" | "ba" | "be" | "bg" | "bh" | "bi" | "bm" | "bn" | "bo" | "bs" | "ca" | "ch" | "co" | "cr" | "cu" | "cv" | "cy" | "de" | "dz" | "ee" | "es" | "et" | "eu" | "fi" | "fj" | "fo" | "fr" | "ga" | "gd" | "gl" | "gn" | "gu" | "ht" | "hu" | "id" | "ie" | "io" | "is" | "it" | "kg" | "ki" | "km" | "kn" | "kr" | "kw" | "ky" | "la" | "lb" | "lt" | "lu" | "lv" | "mg" | "mh" | "mk" | "ml" | "mr" | "mt" | "my" | "na" | "ne" | "ng" | "nl" | "no" | "nr" | "om" | "pa" | "pl" | "ps" | "pt" | "ro" | "ru" | "rw" | "sa" | "sc" | "sd" | "se" | "sg" | "si" | "sk" | "sl" | "sn" | "so" | "sr" | "ss" | "st" | "sv" | "tg" | "tk" | "tl" | "tn" | "tw" | "ug" | "uz" | "ve" | "vi" | "za" | "af-ZA" | "sq-AL" | "ar-DZ" | "ar-BH" | "ar-EG" | "ar-IQ" | "ar-JO" | "ar-KW" | "ar-LB" | "ar-LY" | "ar-MA" | "ar-OM" | "ar-QA" | "ar-SA" | "ar-SY" | "ar-TN" | "ar-AE" | "ar-YE" | "hy-AM" | "Cy-az-AZ" | "Lt-az-AZ" | "eu-ES" | "be-BY" | "bg-BG" | "ca-ES" | "zh-CN" | "zh-HK" | "zh-MO" | "zh-SG" | "zh-TW" | "zh-CHS" | "zh-CHT" | "hr-HR" | "cs-CZ" | "da-DK" | "div-MV" | "nl-BE" | "nl-NL" | "en-AU" | "en-BZ" | "en-CA" | "en-CB" | "en-IE" | "en-JM" | "en-NZ" | "en-PH" | "en-ZA" | "en-TT" | "en-GB" | "en-US" | "en-ZW" | "et-EE" | "fo-FO" | "fa-IR" | "fi-FI" | "fr-BE" | "fr-CA" | "fr-FR" | "fr-LU" | "fr-MC" | "fr-CH" | "gl-ES" | "ka-GE" | "de-AT" | "de-DE" | "de-LI" | "de-LU" | "de-CH" | "el-GR" | "gu-IN" | "he-IL" | "hi-IN" | "hu-HU" | "is-IS" | "id-ID" | "it-IT" | "it-CH" | "ja-JP" | "kn-IN" | "kk-KZ" | "kok-IN" | "ko-KR" | "ky-KZ" | "lv-LV" | "lt-LT" | "mk-MK" | "ms-BN" | "ms-MY" | "mr-IN" | "mn-MN" | "nb-NO" | "nn-NO" | "pl-PL" | "pt-BR" | "pt-PT" | "pa-IN" | "ro-RO" | "ru-RU" | "sa-IN" | "Cy-sr-SP" | "Lt-sr-SP" | "sk-SK" | "sl-SI" | "es-AR" | "es-BO" | "es-CL" | "es-CO" | "es-CR" | "es-DO" | "es-EC" | "es-SV" | "es-GT" | "es-HN" | "es-MX" | "es-NI" | "es-PA" | "es-PY" | "es-PE" | "es-PR" | "es-ES" | "es-UY" | "es-VE" | "sw-KE" | "sv-FI" | "sv-SE" | "syr-SY" | "ta-IN" | "tt-RU" | "te-IN" | "th-TH" | "tr-TR" | "uk-UA" | "ur-PK" | "Cy-uz-UZ" | "Lt-uz-UZ" | "vi-VN" | "AA" | "AC" | "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GT" | "GU" | "GW" | "GY" | "HK" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TA" | "TC" | "TD" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "XK" | "YE" | "YT" | "ZA" | "ZM" | "ZW" | "aa" | "ab" | "ak" | "an" | "av" | "ay" | "ce" | "cs" | "da" | "dv" | "en" | "eo" | "fa" | "ff" | "fy" | "gv" | "ha" | "he" | "hi" | "ho" | "hy" | "hz" | "ia" | "ig" | "ii" | "ik" | "iu" | "ja" | "jv" | "ka" | "kj" | "kk" | "kl" | "ko" | "ks" | "ku" | "kv" | "ln" | "lo" | "nb" | "nd" | "nn" | "nv" | "ny" | "oc" | "oj" | "or" | "os" | "pi" | "qu" | "rm" | "rn" | "sq" | "su" | "sw" | "ta" | "te" | "ti" | "ts" | "ty" | "uk" | "ur" | "vo" | "wa" | "wo" | "xh" | "yi" | "yo" | "zh" | "zu")[];
6
6
  export type Bcp47Code = (typeof bcp47Codes)[number];
7
7
  export type Iso6391Code = (typeof iso6391Codes)[number];
8
8
  export type CountryCode = (typeof countryCodes)[number];
@@ -34,8 +34,8 @@ type GetAllDisplayNamesOptions<T extends CodesType> = MaybeRefOrGetter<{
34
34
  } & DynamicDisplayNamesOptions>;
35
35
  type CodeResult<T extends CodesType> = T extends 'iso' ? Iso6391Code : T extends 'bcp' ? Bcp47Code : T extends 'country' ? CountryCode : DisplayNameCode | string;
36
36
  export declare function useDisplayNames(mainLocale?: MaybeRefOrGetter<string | DisplayNameCode>): {
37
- getDisplayName: (code: Parameters<typeof getDisplayName>[0], options: GetDisplayNameOptions) => import('vue').ComputedRef<string | undefined>;
38
- getAllDisplayNames: <T extends CodesType>(options: GetAllDisplayNamesOptions<T>) => import('vue').ComputedRef<{
37
+ getDisplayName: (code: Parameters<typeof getDisplayName>[0], options?: GetDisplayNameOptions) => import('vue').ComputedRef<string | undefined>;
38
+ getAllDisplayNames: <T extends CodesType>(options?: GetAllDisplayNamesOptions<T>) => import('vue').ComputedRef<{
39
39
  name: string;
40
40
  code: CodeResult<T>;
41
41
  }[] | undefined>;
@@ -1,56 +1,18 @@
1
+ import { BaseFormPayload, ExtractModelKey, FormFieldOptions, FormSchema, InferSchemaFormValidator, ValidationIssues } from './useFormValidator/types';
1
2
  import { ComputedRef, WritableComputedRef } from 'vue';
2
- import { BaseFormPayload, ExtractModelKey, FormFieldOptions, FormSchema, ValidationIssues } from '../composables/useFormValidator/types';
3
- import { getValidationEvents } from '../composables/useFormValidator/utils';
3
+ import { getValidationEvents } from './useFormValidator/dom-events';
4
4
  interface UseFormFieldReturn<FieldType> {
5
- /**
6
- * Indicates if the field has an error
7
- */
8
5
  hasError: ComputedRef<boolean>;
9
- /**
10
- * Errors of the field
11
- */
12
6
  errors: ComputedRef<ValidationIssues>;
13
- /**
14
- * Error message of the field
15
- * It's the first error of the field
16
- */
17
7
  errorMessage: ComputedRef<string | undefined>;
18
- /**
19
- * Indicates if the field is valid
20
- */
21
8
  isValid: ComputedRef<boolean>;
22
- /**
23
- * Indicates if the field has been modified
24
- */
25
9
  isDirty: ComputedRef<boolean>;
26
- /**
27
- * Indicates if the field has been blurred
28
- */
29
10
  isBlurred: ComputedRef<boolean>;
30
- /**
31
- * Indicates if the field has been validated
32
- */
33
11
  isValidated: ComputedRef<boolean>;
34
- /**
35
- * Indicates if the field is validating
36
- */
37
12
  isValidating: ComputedRef<boolean>;
38
- /**
39
- * Validation mode of the field
40
- */
41
13
  mode: ComputedRef<FormFieldOptions<FieldType>['mode']>;
42
- /**
43
- * Value of the field
44
- */
45
14
  value: WritableComputedRef<FieldType>;
46
- /**
47
- * Validation events of the field
48
- */
49
15
  validationEvents: ComputedRef<ReturnType<typeof getValidationEvents>>;
50
- /**
51
- * Function to handle the blur event of the field
52
- */
53
- onBlur: () => void;
54
16
  }
55
- export declare function useFormField<FieldType extends Model[ExtractModelKey<FormSchema<Model>>], Model extends BaseFormPayload = BaseFormPayload>(name: ExtractModelKey<FormSchema<Model>>, options?: FormFieldOptions<FieldType>): UseFormFieldReturn<FieldType>;
17
+ export declare function useFormField<TSchema extends FormSchema<BaseFormPayload>, TName extends ExtractModelKey<FormSchema<InferSchemaFormValidator<TSchema>>> = ExtractModelKey<FormSchema<InferSchemaFormValidator<TSchema>>>>(name: TName, options?: FormFieldOptions<InferSchemaFormValidator<TSchema>[TName]>): UseFormFieldReturn<InferSchemaFormValidator<TSchema>[TName]>;
56
18
  export {};
@@ -0,0 +1,19 @@
1
+ import { BaseFormPayload, FieldState, StrictOptions } from './types';
2
+ export declare function scrollToError(selector?: string): void;
3
+ export declare function findInteractiveElements(el: HTMLElement): HTMLElement[];
4
+ export declare function addEventToInteractiveElements({ interactiveElements, onBlur, mode, }: {
5
+ interactiveElements: HTMLElement[];
6
+ onBlur: () => void;
7
+ mode: StrictOptions['mode'];
8
+ }): void;
9
+ export declare function removeEventFromInteractiveElements({ interactiveElements, onBlur, }: {
10
+ interactiveElements: HTMLElement[];
11
+ onBlur: () => void;
12
+ }): void;
13
+ export declare function getValidationEvents<Model extends BaseFormPayload>({ hasRef, fieldState, onBlur, }: {
14
+ hasRef?: boolean;
15
+ fieldState: FieldState<Model>;
16
+ onBlur: () => void;
17
+ }): {
18
+ onBlur: () => void;
19
+ } | undefined;
@@ -0,0 +1,54 @@
1
+ import { InjectionKey } from 'vue';
2
+ import { BaseFormPayload, CustomInstance, ExtractModelKey, FieldsStates, FieldState, FormContext, FormFieldOptions, FormSchema, StrictOptions } from './types';
3
+ export declare function getFieldState<Model extends BaseFormPayload = BaseFormPayload, ModelKey extends ExtractModelKey<FormSchema<Model>> = ExtractModelKey<FormSchema<Model>>>({ name, schema, initialValue, fieldState, options, }: {
4
+ name: ModelKey;
5
+ schema?: FormSchema<Model>;
6
+ initialValue?: Model[ModelKey];
7
+ fieldState: FieldState<Model>;
8
+ options?: Pick<StrictOptions<Model>, 'debouncedFields' | 'throttledFields' | 'mode'>;
9
+ }): FieldState<Model>;
10
+ export declare function fieldHasValidation<Model extends BaseFormPayload, ModelKey extends ExtractModelKey<FormSchema<Model>>>(field: ModelKey, schema: FormSchema<Model>): boolean;
11
+ export declare function getFieldsStates<Model extends BaseFormPayload, ModelKey extends ExtractModelKey<FormSchema<Model>> = ExtractModelKey<FormSchema<Model>>>({ schema, payload, options, }: {
12
+ schema: FormSchema<Model>;
13
+ payload: Partial<Model>;
14
+ options: StrictOptions<Model>;
15
+ }): FieldsStates<Model>;
16
+ export declare function updateFieldsStates<Model extends BaseFormPayload, ModelKey extends ExtractModelKey<FormSchema<Model>> = ExtractModelKey<FormSchema<Model>>>({ fieldsStates, payload, schema, options, updateMode, }: {
17
+ fieldsStates: FieldsStates<Model>;
18
+ payload: Model;
19
+ schema: FormSchema<Model>;
20
+ options: StrictOptions<Model>;
21
+ updateMode?: boolean;
22
+ }): void;
23
+ export declare function updateFieldState<Model extends BaseFormPayload, ModelKey extends ExtractModelKey<FormSchema<Model>> = ExtractModelKey<FormSchema<Model>>>({ name, fieldState, payload, schema, options, updateMode, }: {
24
+ name: ModelKey;
25
+ fieldState: FieldState<Model>;
26
+ payload: Model;
27
+ schema: FormSchema<Model>;
28
+ options: FormFieldOptions<Model[ModelKey]> & StrictOptions<Model>;
29
+ updateMode?: boolean;
30
+ }): FieldState<Model>;
31
+ export declare function canExecuteValidation<Model extends BaseFormPayload>({ eventName, fieldState, isSubmitted, }: {
32
+ eventName: 'blur' | 'input';
33
+ fieldState: FieldState<Model>;
34
+ isSubmitted: boolean;
35
+ }): boolean;
36
+ export declare function handleFieldBlur<Model extends BaseFormPayload, ModelKey extends ExtractModelKey<FormSchema<Model>> = ExtractModelKey<FormSchema<Model>>>({ name, force, payload, fieldState, schema, isSubmitted, }: {
37
+ name: ModelKey;
38
+ payload: Model;
39
+ fieldState: FieldState<Model>;
40
+ schema: FormSchema<Model>;
41
+ isSubmitted: boolean;
42
+ force?: boolean;
43
+ }): Promise<void> | undefined;
44
+ export declare function handleFieldInput<Model extends BaseFormPayload, ModelKey extends ExtractModelKey<FormSchema<Model>> = ExtractModelKey<FormSchema<Model>>>({ name, payload, fieldState, schema, isSubmitted, forceValidation, }: {
45
+ name: ModelKey;
46
+ payload: Model;
47
+ fieldState: FieldState<Model>;
48
+ schema: FormSchema<Model>;
49
+ isSubmitted: boolean;
50
+ forceValidation?: boolean;
51
+ }): Promise<void> | undefined;
52
+ export declare function hasModeIncludes(modes: StrictOptions['mode'][], value?: StrictOptions['mode']): value is StrictOptions['mode'];
53
+ export declare function getInstance<Model extends BaseFormPayload>(composableName: string): CustomInstance<Model>;
54
+ export declare function getContext<Model extends BaseFormPayload>(identifier: string | symbol | InjectionKey<FormContext<Model>>, composableName: string): FormContext<Model, Extract<keyof { [K in Extract<keyof Model, string> as Model[K] extends Required<Model>[K] ? K : never]: import('./types').Validation; }, string> | Extract<keyof { [K_1 in Extract<keyof Model, string> as Model[K_1] extends Required<Model>[K_1] ? never : K_1]?: import('./types').Validation | undefined; }, string>>;
@@ -1,15 +1,11 @@
1
- import { DeepPartial } from '@maz-ui/utils/src/ts-helpers/DeepPartial.js';
2
- import { BaseIssue, BaseSchema, BaseSchemaAsync, InferIssue, InferOutput, objectAsync } from 'valibot';
3
- import { ComponentInternalInstance, ComponentPublicInstance, InjectionKey, MaybeRef, Ref } from 'vue';
4
- import { useFormField } from './../useFormField';
5
- import { useFormValidator } from './../useFormValidator';
6
- import { getValidateFunction } from './utils';
7
- export type ValidationSync = BaseSchema<unknown, unknown, BaseIssue<unknown>>;
8
- export type ValidationAsync = ValidationSync | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>;
9
- export type Validation = ValidationAsync;
1
+ import { DeepPartial } from '@maz-ui/utils/src/index.js';
2
+ import { BaseIssue, BaseSchema, BaseSchemaAsync, InferInput, InferIssue, InferOutput, objectAsync } from 'valibot';
3
+ import { ComponentInternalInstance, ComponentPublicInstance, InjectionKey, Ref, TemplateRef } from 'vue';
4
+ import { getValidateFunction } from './validation';
5
+ export type Validation = BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>;
10
6
  export type ValidationIssues = InferIssue<Validation>[];
11
7
  export type ExtractModelKey<T> = Extract<keyof T, string>;
12
- export type FormSchema<Model> = {
8
+ export type FormSchema<Model = BaseFormPayload> = {
13
9
  [K in Extract<keyof Model, string> as Model[K] extends Required<Model>[K] ? K : never]: Validation;
14
10
  } & {
15
11
  [K in Extract<keyof Model, string> as Model[K] extends Required<Model>[K] ? never : K]?: Validation;
@@ -91,7 +87,7 @@ export interface FormFieldOptions<FieldType> {
91
87
  * Reference to the component or HTML element to associate and trigger validation events
92
88
  * Necessary for 'eager', 'progressive' and 'blur' validation modes
93
89
  */
94
- ref?: Ref<HTMLElement | ComponentPublicInstance | undefined>;
90
+ ref?: Ref<HTMLElement | ComponentPublicInstance | undefined | null> | TemplateRef<HTMLElement | ComponentPublicInstance | undefined | null>;
95
91
  /**
96
92
  * Identifier for the form
97
93
  * Useful when you have multiple forms on the same component
@@ -99,12 +95,5 @@ export interface FormFieldOptions<FieldType> {
99
95
  */
100
96
  formIdentifier?: string | symbol;
101
97
  }
102
- export type UseFormValidator<Model extends BaseFormPayload = BaseFormPayload> = typeof useFormValidator<Model>;
103
- export interface UseFormValidatorParams<Model extends BaseFormPayload> {
104
- schema: MaybeRef<FormSchema<Model>>;
105
- defaultValues?: MaybeRef<DeepPartial<Model> | undefined | null>;
106
- model?: Ref<DeepPartial<Model> | undefined | null>;
107
- options?: FormValidatorOptions<Model>;
108
- }
109
- export type UseFormField<FieldType extends Model[ExtractModelKey<FormSchema<Model>>], Model extends BaseFormPayload = BaseFormPayload> = typeof useFormField<FieldType, Model>;
110
- export type InferSchemaFormValidator<T> = T extends Ref<infer U> ? U extends Record<string, Validation> ? InferOutput<ReturnType<typeof objectAsync<U>>> : never : T extends Record<string, Validation> ? InferOutput<ReturnType<typeof objectAsync<T>>> : never;
98
+ export type InferSchemaFormValidator<T> = T extends Ref<infer U> ? U extends FormSchema<BaseFormPayload> ? DeepPartial<InferInput<ReturnType<typeof objectAsync<U>>>> : never : T extends (...args: any[]) => FormSchema<BaseFormPayload> ? DeepPartial<InferInput<ReturnType<typeof objectAsync<ReturnType<T>>>>> : T extends FormSchema<BaseFormPayload> ? DeepPartial<InferInput<ReturnType<typeof objectAsync<T>>>> : never;
99
+ export type InferOutputSchemaFormValidator<T> = T extends Ref<infer U> ? U extends FormSchema<BaseFormPayload> ? InferOutput<ReturnType<typeof objectAsync<U>>> : never : T extends (...args: any[]) => FormSchema<BaseFormPayload> ? InferOutput<ReturnType<typeof objectAsync<ReturnType<T>>>> : T extends FormSchema<BaseFormPayload> ? InferOutput<ReturnType<typeof objectAsync<T>>> : never;
@@ -0,0 +1,43 @@
1
+ import { BaseFormPayload, ExtractModelKey, FieldsStates, FieldState, FormSchema, StrictOptions, ValidationIssues } from './types';
2
+ export declare function isEmptyValue(value: unknown): value is null | undefined | '';
3
+ export declare function getValibotValidationMethod<MethodName extends keyof typeof import('valibot')>(methodName: MethodName): Promise<(typeof import('valibot'))[MethodName]>;
4
+ export declare function getValidationSchema<Model extends BaseFormPayload>(formSchema: FormSchema<Model>): Promise<import('valibot').ObjectSchemaAsync<FormSchema<Model>, undefined>>;
5
+ export declare function getFieldValidationResult<Model extends BaseFormPayload, ModelKey extends ExtractModelKey<FormSchema<Model>> = ExtractModelKey<FormSchema<Model>>>(name: ModelKey, schema: FormSchema<Model>, value: Model[ModelKey]): Promise<{
6
+ result: import('valibot').SafeParseResult<FormSchema<Model>[ModelKey]>;
7
+ isValid: boolean;
8
+ }>;
9
+ export declare function setFieldValidationState<Model extends BaseFormPayload, ModelKey extends ExtractModelKey<FormSchema<Model>> = ExtractModelKey<FormSchema<Model>>>({ name, fieldState, schema, payload, setError, setErrorIfInvalidAndNotEmpty, }: {
10
+ name: ModelKey;
11
+ fieldState: FieldState<Model>;
12
+ schema: FormSchema<Model>;
13
+ payload: Model;
14
+ setError?: boolean;
15
+ setErrorIfInvalidAndNotEmpty?: boolean;
16
+ }): Promise<void>;
17
+ export declare function validateField<Model extends BaseFormPayload, ModelKey extends ExtractModelKey<FormSchema<Model>> = ExtractModelKey<FormSchema<Model>>>({ name, fieldState, payload, schema, }: {
18
+ name: ModelKey;
19
+ fieldState: FieldState<Model>;
20
+ payload: Model;
21
+ schema: FormSchema<Model>;
22
+ }): Promise<void> | undefined;
23
+ export declare function validateForm<Model extends BaseFormPayload, ModelKey extends ExtractModelKey<FormSchema<Model>> = ExtractModelKey<FormSchema<Model>>>({ fieldsStates, payload, setErrors, schema, }: {
24
+ fieldsStates: FieldsStates<Model>;
25
+ setErrors?: boolean;
26
+ payload: Model;
27
+ schema: FormSchema<Model>;
28
+ }): Promise<void[]>;
29
+ export declare function getErrorMessages<Model extends BaseFormPayload = BaseFormPayload, ModelKey extends ExtractModelKey<FormSchema<Model>> = ExtractModelKey<FormSchema<Model>>>(errors: Record<ModelKey, ValidationIssues>, fieldsStates: FieldsStates<Model>): Record<ModelKey, string | undefined>;
30
+ export declare function getFieldsErrors<Model extends BaseFormPayload, ModelKey extends ExtractModelKey<FormSchema<Model>> = ExtractModelKey<FormSchema<Model>>>(fieldsStates: FieldsStates<Model>): Record<ModelKey, ValidationIssues>;
31
+ export declare function getValidateFunction<Model extends BaseFormPayload, ModelKey extends ExtractModelKey<FormSchema<Model>> = ExtractModelKey<FormSchema<Model>>>({ name, hasValidation, debouncedFields, throttledFields, }: {
32
+ name: ModelKey;
33
+ hasValidation: boolean;
34
+ debouncedFields?: StrictOptions<Model>['debouncedFields'];
35
+ throttledFields?: StrictOptions<Model>['throttledFields'];
36
+ }): ((args_0: {
37
+ name: ExtractModelKey<FormSchema<Model>>;
38
+ fieldState: FieldState<Model, Model[Extract<keyof { [K in Extract<keyof Model, string> as Model[K] extends Required<Model>[K] ? K : never]: import('./types').Validation; }, string> | Extract<keyof { [K_1 in Extract<keyof Model, string> as Model[K_1] extends Required<Model>[K_1] ? never : K_1]?: import('./types').Validation | undefined; }, string>]>;
39
+ schema: FormSchema<Model>;
40
+ payload: Model;
41
+ setError?: boolean;
42
+ setErrorIfInvalidAndNotEmpty?: boolean;
43
+ }) => Promise<void>) | undefined;
@@ -1,17 +1,23 @@
1
- import { Ref } from 'vue';
2
- import { BaseFormPayload, ExtractModelKey, FieldsStates, FormSchema, FormValidatorOptions, UseFormValidatorParams } from '../composables/useFormValidator/types';
3
- import { scrollToError } from '../composables/useFormValidator/utils';
4
- export declare function useFormValidator<Model extends BaseFormPayload>({ schema, defaultValues, model, options }: UseFormValidatorParams<Model>): {
1
+ import { DeepPartial } from '@maz-ui/utils/src/ts-helpers/DeepPartial.js';
2
+ import { MaybeRefOrGetter, Ref } from 'vue';
3
+ import { BaseFormPayload, ExtractModelKey, FieldsStates, FormSchema, FormValidatorOptions, InferOutputSchemaFormValidator, InferSchemaFormValidator } from './useFormValidator/types';
4
+ import { scrollToError } from './useFormValidator/dom-events';
5
+ export declare function useFormValidator<TSchema extends MaybeRefOrGetter<FormSchema<BaseFormPayload>>>({ schema, defaultValues, model, options }: {
6
+ schema: TSchema;
7
+ defaultValues?: MaybeRefOrGetter<DeepPartial<InferSchemaFormValidator<TSchema>> | undefined | null>;
8
+ model?: Ref<DeepPartial<InferSchemaFormValidator<TSchema>> | undefined | null>;
9
+ options?: FormValidatorOptions<InferSchemaFormValidator<TSchema>>;
10
+ }): {
5
11
  identifier: string | symbol;
6
12
  isDirty: import('vue').ComputedRef<boolean>;
7
13
  isSubmitting: Ref<boolean, boolean>;
8
14
  isSubmitted: Ref<boolean, boolean>;
9
15
  isValid: import('vue').ComputedRef<boolean>;
10
- errors: import('vue').ComputedRef<Record<ExtractModelKey<FormSchema<Model>>, import('.').ValidationIssues>>;
11
- model: Ref<Model, Model>;
12
- fieldsStates: Ref<FieldsStates<Model>, FieldsStates<Model>>;
13
- validateForm: (showErrors?: boolean) => Promise<void[]>;
16
+ errors: import('vue').ComputedRef<Record<ExtractModelKey<FormSchema<InferSchemaFormValidator<TSchema>>>, import('./useFormValidator/types').ValidationIssues>>;
17
+ model: Ref<InferSchemaFormValidator<TSchema>, InferSchemaFormValidator<TSchema>>;
18
+ fieldsStates: Ref<FieldsStates<InferSchemaFormValidator<TSchema>>, FieldsStates<InferSchemaFormValidator<TSchema>>>;
19
+ validateForm: (setErrors?: boolean) => Promise<void[]>;
14
20
  scrollToError: typeof scrollToError;
15
- handleSubmit: <Func extends (model: Model) => Promise<Awaited<ReturnType<Func>>> | ReturnType<Func>>(successCallback: Func, enableScrollOrSelector?: FormValidatorOptions["scrollToError"]) => (event?: Event) => Promise<ReturnType<Func> | undefined>;
16
- errorMessages: import('vue').ComputedRef<Record<ExtractModelKey<FormSchema<Model>>, string | undefined>>;
21
+ handleSubmit: <Func extends (model: InferOutputSchemaFormValidator<TSchema>) => Promise<Awaited<ReturnType<Func>>> | ReturnType<Func>>(successCallback: Func, enableScrollOrSelector?: FormValidatorOptions["scrollToError"]) => (event?: Event) => Promise<ReturnType<Func> | undefined>;
22
+ errorMessages: import('vue').ComputedRef<Record<ExtractModelKey<FormSchema<InferSchemaFormValidator<TSchema>>>, string | undefined>>;
17
23
  };