@dazhicheng/ui 1.0.5 → 1.0.7

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 (299) hide show
  1. package/dist/index.js +46574 -28077
  2. package/dist/packages/ui/src/components/tt-button/index.d.ts +266 -266
  3. package/dist/packages/ui/src/components/tt-button/index.vue.d.ts +152 -152
  4. package/dist/packages/ui/src/components/tt-button/index.vue.d.ts.map +1 -1
  5. package/dist/packages/ui/src/components/tt-checkbox/index.d.ts +3 -3
  6. package/dist/packages/ui/src/components/tt-checkbox/index.vue.d.ts +3 -3
  7. package/dist/packages/ui/src/components/tt-checkbox/index.vue.d.ts.map +1 -1
  8. package/dist/packages/ui/src/components/tt-checkbox/type.d.ts +1 -1
  9. package/dist/packages/ui/src/components/tt-checkbox/type.d.ts.map +1 -1
  10. package/dist/packages/ui/src/components/tt-empty/index.d.ts +2 -2
  11. package/dist/packages/ui/src/components/tt-empty/index.d.ts.map +1 -1
  12. package/dist/packages/ui/src/components/tt-form/index.d.ts +15 -0
  13. package/dist/packages/ui/src/components/tt-form/index.d.ts.map +1 -0
  14. package/dist/packages/ui/src/components/tt-form/src/compare.d.ts +15 -0
  15. package/dist/packages/ui/src/components/tt-form/src/compare.d.ts.map +1 -0
  16. package/dist/packages/ui/src/components/tt-form/src/components/ExpandableArrow.vue.d.ts +36 -0
  17. package/dist/packages/ui/src/components/tt-form/src/components/ExpandableArrow.vue.d.ts.map +1 -0
  18. package/dist/packages/ui/src/components/tt-form/src/components/FormActions.vue.d.ts +41 -0
  19. package/dist/packages/ui/src/components/tt-form/src/components/FormActions.vue.d.ts.map +1 -0
  20. package/dist/packages/ui/src/components/tt-form/src/components/FormFilter.vue.d.ts +23 -0
  21. package/dist/packages/ui/src/components/tt-form/src/components/FormFilter.vue.d.ts.map +1 -0
  22. package/dist/packages/ui/src/components/tt-form/src/components/Slot.d.ts +8 -0
  23. package/dist/packages/ui/src/components/tt-form/src/components/Slot.d.ts.map +1 -0
  24. package/dist/packages/ui/src/components/tt-form/src/config.d.ts +10 -0
  25. package/dist/packages/ui/src/components/tt-form/src/config.d.ts.map +1 -0
  26. package/dist/packages/ui/src/components/tt-form/src/form/FormControl.vue.d.ts +20 -0
  27. package/dist/packages/ui/src/components/tt-form/src/form/FormControl.vue.d.ts.map +1 -0
  28. package/dist/packages/ui/src/components/tt-form/src/form/FormDescription.vue.d.ts +24 -0
  29. package/dist/packages/ui/src/components/tt-form/src/form/FormDescription.vue.d.ts.map +1 -0
  30. package/dist/packages/ui/src/components/tt-form/src/form/FormItem.vue.d.ts +24 -0
  31. package/dist/packages/ui/src/components/tt-form/src/form/FormItem.vue.d.ts.map +1 -0
  32. package/dist/packages/ui/src/components/tt-form/src/form/FormLabel.vue.d.ts +24 -0
  33. package/dist/packages/ui/src/components/tt-form/src/form/FormLabel.vue.d.ts.map +1 -0
  34. package/dist/packages/ui/src/components/tt-form/src/form/FormMessage.vue.d.ts +17 -0
  35. package/dist/packages/ui/src/components/tt-form/src/form/FormMessage.vue.d.ts.map +1 -0
  36. package/dist/packages/ui/src/components/tt-form/src/form/FormWarnMessage.vue.d.ts +26 -0
  37. package/dist/packages/ui/src/components/tt-form/src/form/FormWarnMessage.vue.d.ts.map +1 -0
  38. package/dist/packages/ui/src/components/tt-form/src/form/RenderContent.vue.d.ts +24 -0
  39. package/dist/packages/ui/src/components/tt-form/src/form/RenderContent.vue.d.ts.map +1 -0
  40. package/dist/packages/ui/src/components/tt-form/src/form/index.d.ts +10 -0
  41. package/dist/packages/ui/src/components/tt-form/src/form/index.d.ts.map +1 -0
  42. package/dist/packages/ui/src/components/tt-form/src/form/injectionKeys.d.ts +3 -0
  43. package/dist/packages/ui/src/components/tt-form/src/form/injectionKeys.d.ts.map +1 -0
  44. package/dist/packages/ui/src/components/tt-form/src/form/useFormField.d.ts +12 -0
  45. package/dist/packages/ui/src/components/tt-form/src/form/useFormField.d.ts.map +1 -0
  46. package/dist/packages/ui/src/components/tt-form/src/form-api.d.ts +163 -0
  47. package/dist/packages/ui/src/components/tt-form/src/form-api.d.ts.map +1 -0
  48. package/dist/packages/ui/src/components/tt-form/src/form-render/context.d.ts +54 -0
  49. package/dist/packages/ui/src/components/tt-form/src/form-render/context.d.ts.map +1 -0
  50. package/dist/packages/ui/src/components/tt-form/src/form-render/dependencies.d.ts +373 -0
  51. package/dist/packages/ui/src/components/tt-form/src/form-render/dependencies.d.ts.map +1 -0
  52. package/dist/packages/ui/src/components/tt-form/src/form-render/expandable.d.ts +10 -0
  53. package/dist/packages/ui/src/components/tt-form/src/form-render/expandable.d.ts.map +1 -0
  54. package/dist/packages/ui/src/components/tt-form/src/form-render/form-field.vue.d.ts +33 -0
  55. package/dist/packages/ui/src/components/tt-form/src/form-render/form-field.vue.d.ts.map +1 -0
  56. package/dist/packages/ui/src/components/tt-form/src/form-render/form-label.vue.d.ts +44 -0
  57. package/dist/packages/ui/src/components/tt-form/src/form-render/form-label.vue.d.ts.map +1 -0
  58. package/dist/packages/ui/src/components/tt-form/src/form-render/form.vue.d.ts +73 -0
  59. package/dist/packages/ui/src/components/tt-form/src/form-render/form.vue.d.ts.map +1 -0
  60. package/dist/packages/ui/src/components/tt-form/src/form-render/helper.d.ts +17 -0
  61. package/dist/packages/ui/src/components/tt-form/src/form-render/helper.d.ts.map +1 -0
  62. package/dist/packages/ui/src/components/tt-form/src/form-render/index.d.ts +4 -0
  63. package/dist/packages/ui/src/components/tt-form/src/form-render/index.d.ts.map +1 -0
  64. package/dist/packages/ui/src/components/tt-form/src/hooks/useEmitAsProps.d.ts +8 -0
  65. package/dist/packages/ui/src/components/tt-form/src/hooks/useEmitAsProps.d.ts.map +1 -0
  66. package/dist/packages/ui/src/components/tt-form/src/hooks/useFormFieldBus.d.ts +14 -0
  67. package/dist/packages/ui/src/components/tt-form/src/hooks/useFormFieldBus.d.ts.map +1 -0
  68. package/dist/packages/ui/src/components/tt-form/src/hooks/useForwardPriorityValues.d.ts +15 -0
  69. package/dist/packages/ui/src/components/tt-form/src/hooks/useForwardPriorityValues.d.ts.map +1 -0
  70. package/dist/packages/ui/src/components/tt-form/src/hooks/useForwardProps.d.ts +8 -0
  71. package/dist/packages/ui/src/components/tt-form/src/hooks/useForwardProps.d.ts.map +1 -0
  72. package/dist/packages/ui/src/components/tt-form/src/hooks/useForwardPropsEmits.d.ts +9 -0
  73. package/dist/packages/ui/src/components/tt-form/src/hooks/useForwardPropsEmits.d.ts.map +1 -0
  74. package/dist/packages/ui/src/components/tt-form/src/index.vue.d.ts +344 -0
  75. package/dist/packages/ui/src/components/tt-form/src/index.vue.d.ts.map +1 -0
  76. package/dist/packages/ui/src/components/tt-form/src/shared/createContext.d.ts +9 -0
  77. package/dist/packages/ui/src/components/tt-form/src/shared/createContext.d.ts.map +1 -0
  78. package/dist/packages/ui/src/components/tt-form/src/shared/global-state.d.ts +18 -0
  79. package/dist/packages/ui/src/components/tt-form/src/shared/global-state.d.ts.map +1 -0
  80. package/dist/packages/ui/src/components/tt-form/src/shared/store.d.ts +2 -0
  81. package/dist/packages/ui/src/components/tt-form/src/shared/store.d.ts.map +1 -0
  82. package/dist/packages/ui/src/components/tt-form/src/shared/zod-defaults.d.ts +55 -0
  83. package/dist/packages/ui/src/components/tt-form/src/shared/zod-defaults.d.ts.map +1 -0
  84. package/dist/packages/ui/src/components/tt-form/src/types/types.d.ts +503 -0
  85. package/dist/packages/ui/src/components/tt-form/src/types/types.d.ts.map +1 -0
  86. package/dist/packages/ui/src/components/tt-form/src/use-form-context.d.ts +41 -0
  87. package/dist/packages/ui/src/components/tt-form/src/use-form-context.d.ts.map +1 -0
  88. package/dist/packages/ui/src/components/tt-form/src/use-form-v2.d.ts +19 -0
  89. package/dist/packages/ui/src/components/tt-form/src/use-form-v2.d.ts.map +1 -0
  90. package/dist/packages/ui/src/components/tt-form-item-error-tooltip/index.d.ts +86 -0
  91. package/dist/packages/ui/src/components/tt-form-item-error-tooltip/index.d.ts.map +1 -0
  92. package/dist/packages/ui/src/components/tt-form-item-error-tooltip/index.vue.d.ts +53 -0
  93. package/dist/packages/ui/src/components/tt-form-item-error-tooltip/index.vue.d.ts.map +1 -0
  94. package/dist/packages/ui/src/components/tt-icon/index.d.ts +73 -39
  95. package/dist/packages/ui/src/components/tt-icon/index.d.ts.map +1 -1
  96. package/dist/packages/ui/src/components/tt-icon/index.vue.d.ts +30 -39
  97. package/dist/packages/ui/src/components/tt-icon/index.vue.d.ts.map +1 -1
  98. package/dist/packages/ui/src/components/tt-modal/index.d.ts +40 -40
  99. package/dist/packages/ui/src/components/tt-modal/index.d.ts.map +1 -1
  100. package/dist/packages/ui/src/components/tt-modal/src/RenderModal.vue.d.ts +25 -25
  101. package/dist/packages/ui/src/components/tt-modal/src/RenderModal.vue.d.ts.map +1 -1
  102. package/dist/packages/ui/src/components/tt-modal/src/components/ModalFooter.vue.d.ts.map +1 -1
  103. package/dist/packages/ui/src/components/tt-modal/src/components/ModalWrapper.vue.d.ts +2 -2
  104. package/dist/packages/ui/src/components/tt-modal/src/components/ModalWrapper.vue.d.ts.map +1 -1
  105. package/dist/packages/ui/src/components/tt-modal/src/hooks/useModalRender.d.ts +9 -10
  106. package/dist/packages/ui/src/components/tt-modal/src/hooks/useModalRender.d.ts.map +1 -1
  107. package/dist/packages/ui/src/components/tt-modal/src/typing.d.ts +1 -1
  108. package/dist/packages/ui/src/components/tt-modal/src/typing.d.ts.map +1 -1
  109. package/dist/packages/ui/src/components/tt-part/index.d.ts +399 -0
  110. package/dist/packages/ui/src/components/tt-part/index.d.ts.map +1 -0
  111. package/dist/packages/ui/src/components/tt-part/index.vue.d.ts +254 -0
  112. package/dist/packages/ui/src/components/tt-part/index.vue.d.ts.map +1 -0
  113. package/dist/packages/ui/src/components/tt-part/type.d.ts +101 -0
  114. package/dist/packages/ui/src/components/tt-part/type.d.ts.map +1 -0
  115. package/dist/packages/ui/src/components/tt-part-item/index.d.ts +106 -0
  116. package/dist/packages/ui/src/components/tt-part-item/index.d.ts.map +1 -0
  117. package/dist/packages/ui/src/components/tt-part-item/index.vue.d.ts +72 -0
  118. package/dist/packages/ui/src/components/tt-part-item/index.vue.d.ts.map +1 -0
  119. package/dist/packages/ui/src/components/tt-part-item/type.d.ts +82 -0
  120. package/dist/packages/ui/src/components/tt-part-item/type.d.ts.map +1 -0
  121. package/dist/packages/ui/src/components/tt-select/index.d.ts +1 -1
  122. package/dist/packages/ui/src/components/tt-select/index.d.ts.map +1 -1
  123. package/dist/packages/ui/src/components/tt-select/src/components/SelectTable.vue.d.ts.map +1 -1
  124. package/dist/packages/ui/src/components/tt-select/src/components/Table.vue.d.ts.map +1 -1
  125. package/dist/packages/ui/src/components/tt-text/index.d.ts +3 -3
  126. package/dist/packages/ui/src/components/tt-text/index.vue.d.ts +1 -1
  127. package/dist/packages/ui/src/components/tt-text/index.vue.d.ts.map +1 -1
  128. package/dist/packages/ui/src/components/tt-validate/index.d.ts +2 -0
  129. package/dist/packages/ui/src/components/tt-validate/index.d.ts.map +1 -0
  130. package/dist/packages/ui/src/components/tt-validate/src/ErrorMessage.d.ts +62 -0
  131. package/dist/packages/ui/src/components/tt-validate/src/ErrorMessage.d.ts.map +1 -0
  132. package/dist/packages/ui/src/components/tt-validate/src/Field.d.ts +431 -0
  133. package/dist/packages/ui/src/components/tt-validate/src/Field.d.ts.map +1 -0
  134. package/dist/packages/ui/src/components/tt-validate/src/FieldArray.d.ts +48 -0
  135. package/dist/packages/ui/src/components/tt-validate/src/FieldArray.d.ts.map +1 -0
  136. package/dist/packages/ui/src/components/tt-validate/src/Form.d.ts +272 -0
  137. package/dist/packages/ui/src/components/tt-validate/src/Form.d.ts.map +1 -0
  138. package/dist/packages/ui/src/components/tt-validate/src/config.d.ts +15 -0
  139. package/dist/packages/ui/src/components/tt-validate/src/config.d.ts.map +1 -0
  140. package/dist/packages/ui/src/components/tt-validate/src/defineRule.d.ts +10 -0
  141. package/dist/packages/ui/src/components/tt-validate/src/defineRule.d.ts.map +1 -0
  142. package/dist/packages/ui/src/components/tt-validate/src/index.d.ts +37 -0
  143. package/dist/packages/ui/src/components/tt-validate/src/index.d.ts.map +1 -0
  144. package/dist/packages/ui/src/components/tt-validate/src/symbols.d.ts +7 -0
  145. package/dist/packages/ui/src/components/tt-validate/src/symbols.d.ts.map +1 -0
  146. package/dist/packages/ui/src/components/tt-validate/src/types/common.d.ts +12 -0
  147. package/dist/packages/ui/src/components/tt-validate/src/types/common.d.ts.map +1 -0
  148. package/dist/packages/ui/src/components/tt-validate/src/types/forms.d.ts +281 -0
  149. package/dist/packages/ui/src/components/tt-validate/src/types/forms.d.ts.map +1 -0
  150. package/dist/packages/ui/src/components/tt-validate/src/types/index.d.ts +4 -0
  151. package/dist/packages/ui/src/components/tt-validate/src/types/index.d.ts.map +1 -0
  152. package/dist/packages/ui/src/components/tt-validate/src/types/paths.d.ts +143 -0
  153. package/dist/packages/ui/src/components/tt-validate/src/types/paths.d.ts.map +1 -0
  154. package/dist/packages/ui/src/components/tt-validate/src/types/shared.d.ts +20 -0
  155. package/dist/packages/ui/src/components/tt-validate/src/types/shared.d.ts.map +1 -0
  156. package/dist/packages/ui/src/components/tt-validate/src/useField.d.ts +31 -0
  157. package/dist/packages/ui/src/components/tt-validate/src/useField.d.ts.map +1 -0
  158. package/dist/packages/ui/src/components/tt-validate/src/useFieldArray.d.ts +4 -0
  159. package/dist/packages/ui/src/components/tt-validate/src/useFieldArray.d.ts.map +1 -0
  160. package/dist/packages/ui/src/components/tt-validate/src/useFieldError.d.ts +6 -0
  161. package/dist/packages/ui/src/components/tt-validate/src/useFieldError.d.ts.map +1 -0
  162. package/dist/packages/ui/src/components/tt-validate/src/useFieldState.d.ts +48 -0
  163. package/dist/packages/ui/src/components/tt-validate/src/useFieldState.d.ts.map +1 -0
  164. package/dist/packages/ui/src/components/tt-validate/src/useFieldValue.d.ts +6 -0
  165. package/dist/packages/ui/src/components/tt-validate/src/useFieldValue.d.ts.map +1 -0
  166. package/dist/packages/ui/src/components/tt-validate/src/useForm.d.ts +24 -0
  167. package/dist/packages/ui/src/components/tt-validate/src/useForm.d.ts.map +1 -0
  168. package/dist/packages/ui/src/components/tt-validate/src/useFormErrors.d.ts +5 -0
  169. package/dist/packages/ui/src/components/tt-validate/src/useFormErrors.d.ts.map +1 -0
  170. package/dist/packages/ui/src/components/tt-validate/src/useFormValues.d.ts +5 -0
  171. package/dist/packages/ui/src/components/tt-validate/src/useFormValues.d.ts.map +1 -0
  172. package/dist/packages/ui/src/components/tt-validate/src/useIsFieldDirty.d.ts +6 -0
  173. package/dist/packages/ui/src/components/tt-validate/src/useIsFieldDirty.d.ts.map +1 -0
  174. package/dist/packages/ui/src/components/tt-validate/src/useIsFieldTouched.d.ts +6 -0
  175. package/dist/packages/ui/src/components/tt-validate/src/useIsFieldTouched.d.ts.map +1 -0
  176. package/dist/packages/ui/src/components/tt-validate/src/useIsFieldValid.d.ts +6 -0
  177. package/dist/packages/ui/src/components/tt-validate/src/useIsFieldValid.d.ts.map +1 -0
  178. package/dist/packages/ui/src/components/tt-validate/src/useIsFormDirty.d.ts +5 -0
  179. package/dist/packages/ui/src/components/tt-validate/src/useIsFormDirty.d.ts.map +1 -0
  180. package/dist/packages/ui/src/components/tt-validate/src/useIsFormTouched.d.ts +5 -0
  181. package/dist/packages/ui/src/components/tt-validate/src/useIsFormTouched.d.ts.map +1 -0
  182. package/dist/packages/ui/src/components/tt-validate/src/useIsFormValid.d.ts +5 -0
  183. package/dist/packages/ui/src/components/tt-validate/src/useIsFormValid.d.ts.map +1 -0
  184. package/dist/packages/ui/src/components/tt-validate/src/useIsSubmitting.d.ts +5 -0
  185. package/dist/packages/ui/src/components/tt-validate/src/useIsSubmitting.d.ts.map +1 -0
  186. package/dist/packages/ui/src/components/tt-validate/src/useIsValidating.d.ts +5 -0
  187. package/dist/packages/ui/src/components/tt-validate/src/useIsValidating.d.ts.map +1 -0
  188. package/dist/packages/ui/src/components/tt-validate/src/useResetForm.d.ts +3 -0
  189. package/dist/packages/ui/src/components/tt-validate/src/useResetForm.d.ts.map +1 -0
  190. package/dist/packages/ui/src/components/tt-validate/src/useSetFieldError.d.ts +6 -0
  191. package/dist/packages/ui/src/components/tt-validate/src/useSetFieldError.d.ts.map +1 -0
  192. package/dist/packages/ui/src/components/tt-validate/src/useSetFieldTouched.d.ts +6 -0
  193. package/dist/packages/ui/src/components/tt-validate/src/useSetFieldTouched.d.ts.map +1 -0
  194. package/dist/packages/ui/src/components/tt-validate/src/useSetFieldValue.d.ts +6 -0
  195. package/dist/packages/ui/src/components/tt-validate/src/useSetFieldValue.d.ts.map +1 -0
  196. package/dist/packages/ui/src/components/tt-validate/src/useSetFormErrors.d.ts +5 -0
  197. package/dist/packages/ui/src/components/tt-validate/src/useSetFormErrors.d.ts.map +1 -0
  198. package/dist/packages/ui/src/components/tt-validate/src/useSetFormTouched.d.ts +5 -0
  199. package/dist/packages/ui/src/components/tt-validate/src/useSetFormTouched.d.ts.map +1 -0
  200. package/dist/packages/ui/src/components/tt-validate/src/useSetFormValues.d.ts +5 -0
  201. package/dist/packages/ui/src/components/tt-validate/src/useSetFormValues.d.ts.map +1 -0
  202. package/dist/packages/ui/src/components/tt-validate/src/useSubmitCount.d.ts +5 -0
  203. package/dist/packages/ui/src/components/tt-validate/src/useSubmitCount.d.ts.map +1 -0
  204. package/dist/packages/ui/src/components/tt-validate/src/useSubmitForm.d.ts +3 -0
  205. package/dist/packages/ui/src/components/tt-validate/src/useSubmitForm.d.ts.map +1 -0
  206. package/dist/packages/ui/src/components/tt-validate/src/useValidateField.d.ts +7 -0
  207. package/dist/packages/ui/src/components/tt-validate/src/useValidateField.d.ts.map +1 -0
  208. package/dist/packages/ui/src/components/tt-validate/src/useValidateForm.d.ts +6 -0
  209. package/dist/packages/ui/src/components/tt-validate/src/useValidateForm.d.ts.map +1 -0
  210. package/dist/packages/ui/src/components/tt-validate/src/utils/assertions.d.ts +55 -0
  211. package/dist/packages/ui/src/components/tt-validate/src/utils/assertions.d.ts.map +1 -0
  212. package/dist/packages/ui/src/components/tt-validate/src/utils/common.d.ts +49 -0
  213. package/dist/packages/ui/src/components/tt-validate/src/utils/common.d.ts.map +1 -0
  214. package/dist/packages/ui/src/components/tt-validate/src/utils/events.d.ts +2 -0
  215. package/dist/packages/ui/src/components/tt-validate/src/utils/events.d.ts.map +1 -0
  216. package/dist/packages/ui/src/components/tt-validate/src/utils/index.d.ts +6 -0
  217. package/dist/packages/ui/src/components/tt-validate/src/utils/index.d.ts.map +1 -0
  218. package/dist/packages/ui/src/components/tt-validate/src/utils/rules.d.ts +14 -0
  219. package/dist/packages/ui/src/components/tt-validate/src/utils/rules.d.ts.map +1 -0
  220. package/dist/packages/ui/src/components/tt-validate/src/utils/shared.d.ts +20 -0
  221. package/dist/packages/ui/src/components/tt-validate/src/utils/shared.d.ts.map +1 -0
  222. package/dist/packages/ui/src/components/tt-validate/src/utils/vnode.d.ts +23 -0
  223. package/dist/packages/ui/src/components/tt-validate/src/utils/vnode.d.ts.map +1 -0
  224. package/dist/packages/ui/src/components/tt-validate/src/validate.d.ts +22 -0
  225. package/dist/packages/ui/src/components/tt-validate/src/validate.d.ts.map +1 -0
  226. package/dist/packages/ui/src/components/tt-validate/zod/index.d.ts +2 -0
  227. package/dist/packages/ui/src/components/tt-validate/zod/index.d.ts.map +1 -0
  228. package/dist/packages/ui/src/index.d.ts +17 -2
  229. package/dist/packages/ui/src/index.d.ts.map +1 -1
  230. package/dist/style.css +1 -1
  231. package/package.json +7 -4
  232. package/dist/index.esm.d.ts +0 -6
  233. package/dist/index.esm.js +0 -30410
  234. package/dist/packages/components/__test__/TtArea.test.d.ts +0 -2
  235. package/dist/packages/components/__test__/TtArea.test.d.ts.map +0 -1
  236. package/dist/packages/components/src/TtArea/TtArea.vue.d.ts +0 -3
  237. package/dist/packages/components/src/TtArea/TtArea.vue.d.ts.map +0 -1
  238. package/dist/packages/components/src/TtArea/index.d.ts +0 -2
  239. package/dist/packages/components/src/TtArea/index.d.ts.map +0 -1
  240. package/dist/packages/components/src/index.d.ts +0 -7
  241. package/dist/packages/components/src/index.d.ts.map +0 -1
  242. package/dist/packages/hooks/src/index.d.ts +0 -6
  243. package/dist/packages/hooks/src/index.d.ts.map +0 -1
  244. package/dist/packages/hooks/src/propTypes.d.ts +0 -7
  245. package/dist/packages/hooks/src/propTypes.d.ts.map +0 -1
  246. package/dist/packages/hooks/src/tools.d.ts +0 -40
  247. package/dist/packages/hooks/src/tools.d.ts.map +0 -1
  248. package/dist/packages/hooks/src/useDesign.d.ts +0 -5
  249. package/dist/packages/hooks/src/useDesign.d.ts.map +0 -1
  250. package/dist/packages/hooks/src/useIsScroll.d.ts +0 -6
  251. package/dist/packages/hooks/src/useIsScroll.d.ts.map +0 -1
  252. package/dist/packages/hooks/src/usePriorityValue.d.ts +0 -30
  253. package/dist/packages/hooks/src/usePriorityValue.d.ts.map +0 -1
  254. package/dist/packages/ui/__test__/TtArea.test.d.ts +0 -2
  255. package/dist/packages/ui/__test__/TtArea.test.d.ts.map +0 -1
  256. package/dist/packages/ui/src/TtArea/TtArea.vue.d.ts +0 -3
  257. package/dist/packages/ui/src/TtArea/TtArea.vue.d.ts.map +0 -1
  258. package/dist/packages/ui/src/TtArea/index.d.ts +0 -2
  259. package/dist/packages/ui/src/TtArea/index.d.ts.map +0 -1
  260. package/dist/packages/ui/vite.config.d.ts +0 -3
  261. package/dist/packages/ui/vite.config.d.ts.map +0 -1
  262. package/dist/packages/utils/__test__/math.test.d.ts +0 -2
  263. package/dist/packages/utils/__test__/math.test.d.ts.map +0 -1
  264. package/dist/packages/utils/__test__/string.test.d.ts +0 -2
  265. package/dist/packages/utils/__test__/string.test.d.ts.map +0 -1
  266. package/dist/packages/utils/src/axios/error.d.ts +0 -63
  267. package/dist/packages/utils/src/axios/error.d.ts.map +0 -1
  268. package/dist/packages/utils/src/axios/index.d.ts +0 -4
  269. package/dist/packages/utils/src/axios/index.d.ts.map +0 -1
  270. package/dist/packages/utils/src/axios/loadinSvg.d.ts +0 -2
  271. package/dist/packages/utils/src/axios/loadinSvg.d.ts.map +0 -1
  272. package/dist/packages/utils/src/axios/loading.d.ts +0 -12
  273. package/dist/packages/utils/src/axios/loading.d.ts.map +0 -1
  274. package/dist/packages/utils/src/axios/status.d.ts +0 -38
  275. package/dist/packages/utils/src/axios/status.d.ts.map +0 -1
  276. package/dist/packages/utils/src/axios/type.d.ts +0 -24
  277. package/dist/packages/utils/src/axios/type.d.ts.map +0 -1
  278. package/dist/packages/utils/src/calc.d.ts +0 -58
  279. package/dist/packages/utils/src/calc.d.ts.map +0 -1
  280. package/dist/packages/utils/src/file.d.ts +0 -13
  281. package/dist/packages/utils/src/file.d.ts.map +0 -1
  282. package/dist/packages/utils/src/index.d.ts +0 -12
  283. package/dist/packages/utils/src/index.d.ts.map +0 -1
  284. package/dist/packages/utils/src/install.d.ts +0 -4
  285. package/dist/packages/utils/src/install.d.ts.map +0 -1
  286. package/dist/packages/utils/src/is.d.ts +0 -238
  287. package/dist/packages/utils/src/is.d.ts.map +0 -1
  288. package/dist/packages/utils/src/math.d.ts +0 -5
  289. package/dist/packages/utils/src/math.d.ts.map +0 -1
  290. package/dist/packages/utils/src/merge.d.ts +0 -17
  291. package/dist/packages/utils/src/merge.d.ts.map +0 -1
  292. package/dist/packages/utils/src/string.d.ts +0 -4
  293. package/dist/packages/utils/src/string.d.ts.map +0 -1
  294. package/dist/packages/utils/src/testid-helper.d.ts +0 -151
  295. package/dist/packages/utils/src/testid-helper.d.ts.map +0 -1
  296. package/dist/packages/utils/src/tool.d.ts +0 -38
  297. package/dist/packages/utils/src/tool.d.ts.map +0 -1
  298. package/dist/vitest.config.d.ts +0 -3
  299. package/dist/vitest.config.d.ts.map +0 -1
@@ -0,0 +1,24 @@
1
+ import { StandardSchemaV1 } from '@standard-schema/spec';
2
+ import { MaybeRef } from 'vue';
3
+ import { FlattenAndSetPathsType, FormContext, GenericObject, GenericValidateFunction } from './types';
4
+ type FormSchema<TValues extends Record<string, unknown>> = FlattenAndSetPathsType<TValues, GenericValidateFunction | string | GenericObject> | undefined;
5
+ export type FormOptions<TValues extends GenericObject, TOutput = TValues, TSchema extends StandardSchemaV1<TValues, TOutput> | FormSchema<TValues> = FormSchema<TValues>> = {
6
+ validationSchema?: MaybeRef<TSchema extends StandardSchemaV1 ? StandardSchemaV1<TValues, TOutput> : any>;
7
+ initialValues?: Partial<TValues> | undefined | null;
8
+ initialErrors?: FlattenAndSetPathsType<TValues, string | undefined>;
9
+ initialTouched?: FlattenAndSetPathsType<TValues, boolean>;
10
+ validateOnMount?: boolean;
11
+ keepValuesOnUnmount?: MaybeRef<boolean>;
12
+ name?: string;
13
+ /**
14
+ * 在判断 dirty 状态时需要排除的字段列表
15
+ * 这些字段的变化不会影响表单的 dirty 状态
16
+ * @example
17
+ * excludeKeys: ['_timestamp', '_validationToken']
18
+ */
19
+ excludeKeys?: string[];
20
+ };
21
+ export declare function useForm<TValues extends GenericObject = GenericObject, TOutput extends GenericObject = TValues, TSchema extends FormSchema<TValues> | StandardSchemaV1<TValues, TOutput> = FormSchema<TValues>>(opts?: FormOptions<TValues, TOutput, TSchema>): FormContext<TValues, TOutput>;
22
+ export declare function useFormContext<TValues extends GenericObject = GenericObject, TOutput extends GenericObject = TValues>(): FormContext<TValues, TOutput>;
23
+ export {};
24
+ //# sourceMappingURL=useForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useForm.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,QAAQ,EAAyB,MAAM,KAAK,CAAA;AAC1D,OAAO,KAAK,EAMV,sBAAsB,EACtB,WAAW,EAKX,aAAa,EACb,uBAAuB,EAkBxB,MAAM,SAAS,CAAA;AAwChB,KAAK,UAAU,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IACnD,sBAAsB,CAAC,OAAO,EAAE,uBAAuB,G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pC,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,CAEjC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Gives access to all form errors
3
+ */
4
+ export declare function useFormErrors<TValues extends Record<string, unknown> = Record<string, unknown>>(): import('vue').ComputedRef<Partial<Record<"" | import('./types').Path<TValues>, string | undefined>>>;
5
+ //# sourceMappingURL=useFormErrors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFormErrors.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useFormErrors.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,0GAW9F"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Gives access to a form's values
3
+ */
4
+ export declare function useFormValues<TValues extends Record<string, any> = Record<string, any>>(): import('vue').ComputedRef<Partial<TValues>>;
5
+ //# sourceMappingURL=useFormValues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFormValues.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useFormValues.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,iDAWtF"}
@@ -0,0 +1,6 @@
1
+ import { MaybeRefOrGetter } from 'vue';
2
+ /**
3
+ * If a field is dirty or not
4
+ */
5
+ export declare function useIsFieldDirty(path?: MaybeRefOrGetter<string>): import('vue').ComputedRef<boolean>;
6
+ //# sourceMappingURL=useIsFieldDirty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsFieldDirty.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useIsFieldDirty.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAI3C;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,sCAS9D"}
@@ -0,0 +1,6 @@
1
+ import { MaybeRefOrGetter } from 'vue';
2
+ /**
3
+ * If a field is touched or not
4
+ */
5
+ export declare function useIsFieldTouched(path?: MaybeRefOrGetter<string>): import('vue').ComputedRef<boolean>;
6
+ //# sourceMappingURL=useIsFieldTouched.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsFieldTouched.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useIsFieldTouched.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAI3C;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,sCAUhE"}
@@ -0,0 +1,6 @@
1
+ import { MaybeRefOrGetter } from 'vue';
2
+ /**
3
+ * If a field is validated and is valid
4
+ */
5
+ export declare function useIsFieldValid(path?: MaybeRefOrGetter<string>): import('vue').ComputedRef<boolean>;
6
+ //# sourceMappingURL=useIsFieldValid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsFieldValid.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useIsFieldValid.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAI3C;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,sCAU9D"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * If the form is dirty or not
3
+ */
4
+ export declare function useIsFormDirty(): import('vue').ComputedRef<boolean>;
5
+ //# sourceMappingURL=useIsFormDirty.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsFormDirty.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useIsFormDirty.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,cAAc,uCAW7B"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * If the form is touched or not
3
+ */
4
+ export declare function useIsFormTouched(): import('vue').ComputedRef<boolean>;
5
+ //# sourceMappingURL=useIsFormTouched.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsFormTouched.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useIsFormTouched.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,gBAAgB,uCAW/B"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * If the form has been validated and is valid
3
+ */
4
+ export declare function useIsFormValid(): import('vue').ComputedRef<boolean>;
5
+ //# sourceMappingURL=useIsFormValid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsFormValid.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useIsFormValid.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,cAAc,uCAW7B"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * If the form is submitting or not
3
+ */
4
+ export declare function useIsSubmitting(): import('vue').ComputedRef<boolean>;
5
+ //# sourceMappingURL=useIsSubmitting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsSubmitting.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useIsSubmitting.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,eAAe,uCAW9B"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * If the form is validating or not
3
+ */
4
+ export declare function useIsValidating(): import('vue').ComputedRef<boolean>;
5
+ //# sourceMappingURL=useIsValidating.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsValidating.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useIsValidating.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,eAAe,uCAW9B"}
@@ -0,0 +1,3 @@
1
+ import { FormState, ResetFormOpts } from './types';
2
+ export declare function useResetForm<TValues extends Record<string, unknown> = Record<string, unknown>>(): (state?: Partial<FormState<TValues>>, opts?: ResetFormOpts) => void;
3
+ //# sourceMappingURL=useResetForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useResetForm.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useResetForm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAIvD,wBAAgB,YAAY,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,MAQlE,QAAQ,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,EAAE,OAAO,aAAa,UAOpF"}
@@ -0,0 +1,6 @@
1
+ import { MaybeRefOrGetter } from 'vue';
2
+ /**
3
+ * Sets a field's error message
4
+ */
5
+ export declare function useSetFieldError(path?: MaybeRefOrGetter<string>): (message: string | string[] | undefined) => void;
6
+ //# sourceMappingURL=useSetFieldError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSetFieldError.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useSetFieldError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAK3C;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,IAKhC,SAAS,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,UAmBrE"}
@@ -0,0 +1,6 @@
1
+ import { MaybeRefOrGetter } from 'vue';
2
+ /**
3
+ * Sets a field's touched meta state
4
+ */
5
+ export declare function useSetFieldTouched(path?: MaybeRefOrGetter<string>): (touched: boolean) => void;
6
+ //# sourceMappingURL=useSetFieldTouched.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSetFieldTouched.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useSetFieldTouched.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAK3C;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,IAKhC,SAAS,OAAO,UAmBjD"}
@@ -0,0 +1,6 @@
1
+ import { MaybeRefOrGetter } from 'vue';
2
+ /**
3
+ * Sets a field's value
4
+ */
5
+ export declare function useSetFieldValue<TValue = unknown>(path?: MaybeRefOrGetter<string>): (value: TValue, shouldValidate?: boolean) => void;
6
+ //# sourceMappingURL=useSetFieldValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSetFieldValue.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useSetFieldValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAK3C;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,GAAG,OAAO,EAAE,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,IAKlD,OAAO,MAAM,EAAE,wBAAqB,UAmBnE"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Sets multiple fields errors
3
+ */
4
+ export declare function useSetFormErrors(): (fields: Record<string, string | string[] | undefined>) => void;
5
+ //# sourceMappingURL=useSetFormErrors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSetFormErrors.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useSetFormErrors.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,wBAAgB,gBAAgB,aAGC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC,UAc7E"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Sets multiple fields touched or all fields in the form
3
+ */
4
+ export declare function useSetFormTouched(): (fields: Record<string, boolean> | boolean) => void;
5
+ //# sourceMappingURL=useSetFormTouched.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSetFormTouched.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useSetFormTouched.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,wBAAgB,iBAAiB,aAGC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,UAclE"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Sets multiple fields values
3
+ */
4
+ export declare function useSetFormValues<TValues extends Record<string, unknown> = Record<string, unknown>>(): (fields: TValues, shouldValidate?: boolean) => void;
5
+ //# sourceMappingURL=useSetFormValues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSetFormValues.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useSetFormValues.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,cAIlC,OAAO,oCAcvC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The number of form's submission count
3
+ */
4
+ export declare function useSubmitCount(): import('vue').ComputedRef<number>;
5
+ //# sourceMappingURL=useSubmitCount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSubmitCount.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useSubmitCount.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,cAAc,sCAW7B"}
@@ -0,0 +1,3 @@
1
+ import { SubmissionHandler } from './types';
2
+ export declare function useSubmitForm<TValues extends Record<string, unknown> = Record<string, unknown>>(cb: SubmissionHandler<TValues>): (e?: Event) => Promise<unknown> | undefined;
3
+ //# sourceMappingURL=useSubmitForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSubmitForm.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useSubmitForm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAI7D,wBAAgB,aAAa,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7F,EAAE,EAAE,iBAAiB,CAAC,OAAO,CAAC,IAWH,IAAI,KAAK,kCAOrC"}
@@ -0,0 +1,7 @@
1
+ import { MaybeRefOrGetter } from 'vue';
2
+ import { ValidationResult } from './types';
3
+ /**
4
+ * Validates a single field
5
+ */
6
+ export declare function useValidateField<TOutput>(path?: MaybeRefOrGetter<string>): () => Promise<ValidationResult<TOutput>>;
7
+ //# sourceMappingURL=useValidateField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useValidateField.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useValidateField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAK/C;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,SAItC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAkBpE"}
@@ -0,0 +1,6 @@
1
+ import { FormValidationResult } from './types';
2
+ /**
3
+ * Validate multiple fields
4
+ */
5
+ export declare function useValidateForm<TValues extends Record<string, unknown> = Record<string, unknown>>(): () => Promise<FormValidationResult<TValues>>;
6
+ //# sourceMappingURL=useValidateForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useValidateForm.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/useValidateForm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAIhE;;GAEG;AACH,wBAAgB,eAAe,CAC7B,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,WAShC,OAAO,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC,CAOxE"}
@@ -0,0 +1,55 @@
1
+ import { StandardSchemaV1 } from '@standard-schema/spec';
2
+ import { Locator } from '../types';
3
+ export declare const isClient: boolean;
4
+ export declare function isLocator(value: unknown): value is Locator;
5
+ export declare function isStandardSchema(value: unknown): value is StandardSchemaV1;
6
+ export declare function hasCheckedAttr(type: unknown): type is "checkbox" | "radio";
7
+ export declare function isContainerValue(value: unknown): value is Record<string, unknown>;
8
+ /**
9
+ * True if the value is an empty object or array
10
+ */
11
+ export declare function isEmptyContainer(value: unknown): boolean;
12
+ /**
13
+ * Checks if the path opted out of nested fields using `[fieldName]` syntax
14
+ */
15
+ export declare function isNotNestedPath(path: string): boolean;
16
+ /**
17
+ * Checks if an element is a native HTML5 multi-select input element
18
+ */
19
+ export declare function isNativeMultiSelect(el: HTMLElement): el is HTMLSelectElement;
20
+ /**
21
+ * Checks if an element is a native HTML5 select input element
22
+ */
23
+ export declare function isNativeSelect(el: HTMLElement): el is HTMLSelectElement;
24
+ /**
25
+ * Checks if a tag name with attrs object will render a native multi-select element
26
+ */
27
+ export declare function isNativeMultiSelectNode(tag: string, attrs: Record<string, unknown>): boolean;
28
+ /**
29
+ * Checks if a node should have a `:value` binding or not
30
+ *
31
+ * These nodes should not have a value binding
32
+ * For files, because they are not reactive
33
+ * For multi-selects because the value binding will reset the value
34
+ */
35
+ export declare function shouldHaveValueBinding(tag: string, attrs: Record<string, unknown>): boolean;
36
+ export declare function isFormSubmitEvent(evt: unknown): evt is Event & {
37
+ target: HTMLFormElement;
38
+ };
39
+ export declare function isEvent(evt: unknown): evt is Event;
40
+ export declare function isPropPresent(obj: Record<string, unknown>, prop: string): boolean;
41
+ export declare function deepEqual<T>(a: T, b: T): boolean;
42
+ export declare const isEqual: typeof deepEqual;
43
+ /**
44
+ * 比较两个值是否相等,支持排除指定字段
45
+ * @param a - 第一个值
46
+ * @param b - 第二个值
47
+ * @param excludeKeys - 需要排除的字段数组(可选)
48
+ * @returns 是否相等
49
+ * @example
50
+ * isEqualExclude({ a: 1, b: 2 }, { a: 1, b: 3 }, ['b']) // true
51
+ * isEqualExclude({ a: 1, b: 2 }, { a: 1, b: 3 }) // false
52
+ */
53
+ export declare function isEqualExclude<T>(a: T, b: T, excludeKeys?: string[]): boolean;
54
+ export declare function isFile(a: unknown): a is File;
55
+ //# sourceMappingURL=assertions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assertions.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/tt-validate/src/utils/assertions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAIvC,eAAO,MAAM,QAAQ,SAAgC,CAAA;AAErD,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,OAAO,CAE1D;AAKD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,gBAAgB,CAE1E;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,gCAE3C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEjF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAMxD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,WAE3C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,WAAW,GAAG,EAAE,IAAI,iBAAiB,CAE5E;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,WAAW,GAAG,EAAE,IAAI,iBAAiB,CAEvE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,WAOlF;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,WAIjF;AAED,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,KAAK,GAAG;IAAE,MAAM,EAAE,eAAe,CAAA;CAAE,CAE1F;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,KAAK,CAgBlD;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,MAAM,WAEvE;AAuLD,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,OAAO,CAoChD;AAED,eAAO,MAAM,OAAO,kBAAY,CAAA;AAEhC;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CA0B7E;AAYD,wBAAgB,MAAM,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,IAAI,CAM5C"}
@@ -0,0 +1,49 @@
1
+ import { StandardSchemaV1 } from '@standard-schema/spec';
2
+ import { InjectionKey, MaybeRefOrGetter, Ref } from 'vue';
3
+ import { GenericObject, IssueCollection, MaybePromise } from '../types';
4
+ export declare function cleanupNonNestedPath(path: string): string;
5
+ type NestedRecord = GenericObject;
6
+ /**
7
+ * Gets a nested property value from an object
8
+ */
9
+ export declare function getFromPath<TValue = unknown>(object: NestedRecord | undefined, path: string): TValue | undefined;
10
+ export declare function getFromPath<TValue = unknown, TFallback = TValue>(object: NestedRecord | undefined, path: string, fallback?: TFallback): TValue | TFallback;
11
+ /**
12
+ * Sets a nested property value in a path, creates the path properties if it doesn't exist
13
+ */
14
+ export declare function setInPath(object: NestedRecord, path: string, value: unknown): void;
15
+ /**
16
+ * Removes a nested property from object
17
+ */
18
+ export declare function unsetPath(object: NestedRecord, path: string): void;
19
+ /**
20
+ * A typed version of Object.keys
21
+ */
22
+ export declare function keysOf<TRecord extends Record<string, unknown>>(record: TRecord): (keyof TRecord)[];
23
+ export declare function injectWithSelf<T>(symbol: InjectionKey<T>, def?: T | undefined): T | undefined;
24
+ export declare function warn(message: string): void;
25
+ export declare function resolveNextCheckboxValue<T>(currentValue: T, checkedValue: T, uncheckedValue: T): T;
26
+ export declare function resolveNextCheckboxValue<T>(currentValue: T[], checkedValue: T, uncheckedValue: T): T[];
27
+ type ThrottledFunction<T extends (...args: any) => any> = (...args: Parameters<T>) => ReturnType<T>;
28
+ /**
29
+ * Creates a throttled function that only invokes the provided function (`func`) at most once per within a given number of milliseconds
30
+ * (`limit`)
31
+ */
32
+ export declare function throttle<T extends (...args: any) => any>(func: T, limit: number): ThrottledFunction<T>;
33
+ export declare function debounceAsync<TFunction extends (...args: any) => Promise<any>, TResult = ReturnType<TFunction>>(inner: TFunction, ms?: number): (...args: Parameters<TFunction>) => Promise<TResult>;
34
+ export declare function applyModelModifiers<TValue = unknown>(value: TValue, modifiers: unknown): TValue;
35
+ export declare function withLatest<TFunction extends (...args: any[]) => Promise<any>, TResult = Awaited<ReturnType<TFunction>>>(fn: TFunction, onDone: (result: TResult, args: Parameters<TFunction>) => TResult): (...args: Parameters<TFunction>) => Promise<any>;
36
+ export declare function computedDeep<TValue = unknown>({ get, set, }: {
37
+ get: () => TValue;
38
+ set: (value: TValue) => void;
39
+ }): Ref<TValue>;
40
+ export declare function normalizeErrorItem(message: string | string[] | null | undefined): string[];
41
+ export declare function resolveFieldOrPathState(path?: MaybeRefOrGetter<string>): import('..').PrivateFieldContext<unknown> | import('vue').ComputedRef<import('..').PathState<any, any> | undefined> | undefined;
42
+ export declare function omit<TObj extends GenericObject>(obj: TObj, keys: (keyof GenericObject)[]): TObj;
43
+ export declare function debounceNextTick<TFunction extends (...args: any[]) => MaybePromise<any>, TResult = ReturnType<TFunction>>(inner: TFunction): (...args: Parameters<TFunction>) => Promise<TResult>;
44
+ /**
45
+ * Aggregates standard schema issues by path.
46
+ */
47
+ export declare function combineStandardIssues(issues: StandardSchemaV1.Issue[] | readonly StandardSchemaV1.Issue[]): IssueCollection[];
48
+ export {};
49
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/tt-validate/src/utils/common.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAiB5E,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,UAMhD;AAED,KAAK,YAAY,GAAG,aAAa,CAAA;AAEjC;;GAEG;AACH,wBAAgB,WAAW,CAAC,MAAM,GAAG,OAAO,EAC1C,MAAM,EAAE,YAAY,GAAG,SAAS,EAChC,IAAI,EAAE,MAAM,GACX,MAAM,GAAG,SAAS,CAAA;AACrB,wBAAgB,WAAW,CAAC,MAAM,GAAG,OAAO,EAAE,SAAS,GAAG,MAAM,EAC9D,MAAM,EAAE,YAAY,GAAG,SAAS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IAAI,EAAE,IAAI,EAAE,CAAC,MAAM,aAAa,CAAC,EAAE,QAUxF;AAED,wBAAgB,gBAAgB,CAC9B,SAAS,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,YAAY,CAAC,GAAG,CAAC,EACvD,OAAO,GAAG,UAAU,CAAC,SAAS,CAAC,EAC/B,KAAK,EAAE,SAAS,GAAG,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAyBxE;AA2BD;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,gBAAgB,CAAC,KAAK,EAAE,GAAG,SAAS,gBAAgB,CAAC,KAAK,EAAE,GACnE,eAAe,EAAE,CAEnB"}
@@ -0,0 +1,2 @@
1
+ export declare function normalizeEventValue(value: Event | unknown): unknown;
2
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/tt-validate/src/utils/events.ts"],"names":[],"mappings":"AAeA,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,GAAG,OAAO,CAgCnE"}
@@ -0,0 +1,6 @@
1
+ export * from './assertions';
2
+ export * from './common';
3
+ export * from './events';
4
+ export * from './rules';
5
+ export * from './vnode';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/tt-validate/src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { Locator } from '../types';
2
+ /**
3
+ * Normalizes the given rules expression.
4
+ */
5
+ export declare function normalizeRules(rules: undefined | string | Record<string, unknown | unknown[] | Record<string, unknown>>): Record<string, unknown[] | Record<string, unknown>>;
6
+ /**
7
+ * Parses a rule string expression.
8
+ */
9
+ export declare function parseRule(rule: string): {
10
+ name: string | undefined;
11
+ params: string[];
12
+ };
13
+ export declare function extractLocators(params: Record<string, unknown> | unknown[]): Locator[];
14
+ //# sourceMappingURL=rules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/tt-validate/src/utils/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAKvC;;GAEG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACxF,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CA6CrD;AAkDD;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM;;;EASrC;AAcD,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,EAAE,GAAG,OAAO,EAAE,CAQtF"}
@@ -0,0 +1,20 @@
1
+ export declare function isCallable(fn: unknown): fn is (...args: any[]) => any;
2
+ export declare function isObject(obj: unknown): obj is Record<string, unknown>;
3
+ export declare function isIndex(value: unknown): value is number;
4
+ export declare function isNullOrUndefined(value: unknown): value is undefined | null;
5
+ export declare function toNumber(value: string): number | string;
6
+ export declare function normalizeFormPath(path: string): string;
7
+ export declare function getTag(value: any): string;
8
+ export declare function isObjectLike(value: any): boolean;
9
+ export declare function isPlainObject(value: any): boolean;
10
+ export declare function merge(target: any, source: any): any;
11
+ /**
12
+ * 将对象扁平化为点/下标路径的键
13
+ * 例如:
14
+ * { a: { b: 1 }, arr: [{ x: 2 }] }
15
+ * => { 'a.b': 1, 'arr[0].x': 2 }
16
+ */
17
+ export declare function flattenToDotPaths(source: any, opts?: {
18
+ includeEmpty?: boolean;
19
+ }): Record<string, unknown>;
20
+ //# sourceMappingURL=shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/tt-validate/src/utils/shared.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,EAAE,EAAE,OAAO,GAAG,EAAE,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAErE;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAErE;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAEvD;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,SAAS,GAAG,IAAI,CAE3E;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAIvD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAiBtD;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,GAAG,UAKhC;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,GAAG,WAEtC;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,WAYvC;AAED,wBAAgB,KAAK,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,OAe7C;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,GAAG,EACX,IAAI,GAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAO,GACpC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA8CzB"}
@@ -0,0 +1,23 @@
1
+ import { SetupContext } from 'vue';
2
+ type HTMLElementWithValueBinding = HTMLElement & {
3
+ _value: unknown;
4
+ };
5
+ export declare function normalizeChildren(tag: string | undefined | null, context: SetupContext<any>, slotProps: () => Record<string, unknown>): import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
6
+ [key: string]: any;
7
+ }>[] | {
8
+ default: () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
9
+ [key: string]: any;
10
+ }>[] | undefined;
11
+ } | undefined;
12
+ /**
13
+ * Vue adds a `_value` prop at the moment on the input elements to store the REAL value on them, real values are different than the `value` attribute
14
+ * as they do not get casted to strings unlike `el.value` which preserves user-code behavior
15
+ */
16
+ export declare function getBoundValue(el: HTMLElement): unknown;
17
+ /**
18
+ * Vue adds a `_value` prop at the moment on the input elements to store the REAL value on them, real values are different than the `value` attribute
19
+ * as they do not get casted to strings unlike `el.value` which preserves user-code behavior
20
+ */
21
+ export declare function hasValueBinding(el: HTMLElement): el is HTMLElementWithValueBinding;
22
+ export {};
23
+ //# sourceMappingURL=vnode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vnode.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/tt-validate/src/utils/vnode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAEvC,KAAK,2BAA2B,GAAG,WAAW,GAAG;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,CAAA;AAEpE,wBAAgB,iBAAiB,CAC/B,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,EAC9B,OAAO,EAAE,YAAY,CAAC,GAAG,CAAC,EAC1B,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;cAazC;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,WAAW,GAAG,OAAO,CAMtD;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,WAAW,GAAG,EAAE,IAAI,2BAA2B,CAElF"}
@@ -0,0 +1,22 @@
1
+ import { StandardSchemaV1 } from '@standard-schema/spec';
2
+ import { FormValidationResult, GenericObject, GenericValidateFunction, RawFormSchema, ValidationResult } from './types';
3
+ type ValidationOptions = {
4
+ name?: string;
5
+ label?: string;
6
+ values?: Record<string, unknown>;
7
+ bails?: boolean;
8
+ };
9
+ /**
10
+ * Validates a value against the rules.
11
+ */
12
+ export declare function validate<TInput, TOutput>(value: TInput, rules: string | Record<string, unknown | unknown[]> | GenericValidateFunction<TInput> | GenericValidateFunction<TInput>[] | StandardSchemaV1<TInput, TOutput>, options?: ValidationOptions): Promise<ValidationResult<TOutput>>;
13
+ export declare function validateStandardSchema<TValues extends GenericObject, TOutput extends GenericObject = TValues>(schema: StandardSchemaV1<TValues, TOutput>, values: TValues): Promise<FormValidationResult<TValues, TOutput>>;
14
+ export declare function validateObjectSchema<TValues extends GenericObject, TOutput extends GenericObject>(schema: RawFormSchema<TValues>, values: TValues | undefined, opts?: Partial<{
15
+ names: Record<string, {
16
+ name: string;
17
+ label: string;
18
+ }>;
19
+ bailsMap: Record<string, boolean>;
20
+ }>): Promise<FormValidationResult<TValues, TOutput>>;
21
+ export {};
22
+ //# sourceMappingURL=validate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/src/validate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAG9D,OAAO,KAAK,EAEV,oBAAoB,EACpB,aAAa,EACb,uBAAuB,EAEvB,aAAa,EACb,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAyBjB,KAAK,iBAAiB,GAAG;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,wBAAsB,QAAQ,CAAC,MAAM,EAAE,OAAO,EAC5C,KAAK,EAAE,MAAM,EACb,KAAK,EACD,MAAM,GACN,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,EAAE,CAAC,GACnC,uBAAuB,CAAC,MAAM,CAAC,GAC/B,uBAAuB,CAAC,MAAM,CAAC,EAAE,GACjC,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,EACrC,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAgBpC;AA6MD,wBAAsB,sBAAsB,CAAC,OAAO,SAAS,aAAa,EAAE,OAAO,SAAS,aAAa,GAAG,OAAO,EACjH,MAAM,EAAE,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,EAC1C,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,oBAAoB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAgCjD;AAED,wBAAsB,oBAAoB,CAAC,OAAO,SAAS,aAAa,EAAE,OAAO,SAAS,aAAa,EACrG,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC,EAC9B,MAAM,EAAE,OAAO,GAAG,SAAS,EAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACvD,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,CAAC,GACD,OAAO,CAAC,oBAAoB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAwCjD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-validate/zod/index.ts"],"names":[],"mappings":""}
@@ -1,13 +1,28 @@
1
- import { App } from 'vue';
1
+ import { App, Component } from 'vue';
2
+ import { BaseFormComponentType } from './components/tt-form';
2
3
  export * from './components/tt-button';
3
4
  export * from './components/tt-icon';
4
5
  export * from './components/tt-modal';
5
- export * from './TtArea';
6
6
  export * from './directives';
7
7
  export * from './components/tt-select';
8
8
  export * from './components/tt-empty';
9
9
  export * from './components/tt-text';
10
10
  export * from './components/tt-checkbox';
11
+ export * from './components/tt-form-item-error-tooltip';
12
+ export * from './components/tt-form';
13
+ /**
14
+ * 表单组件适配器
15
+ * @param options 适配器选项
16
+ */
17
+ export declare function formAdapter(options: {
18
+ selectComponent?: BaseFormComponentType[];
19
+ inputComponent?: BaseFormComponentType[];
20
+ components?: Partial<Record<BaseFormComponentType, Component>>;
21
+ defineRules?: {
22
+ [key: string]: (value: any, params: any, ctx: Record<string, any>) => boolean | string;
23
+ };
24
+ modelPropNameMap?: Partial<Record<BaseFormComponentType, string>>;
25
+ }): void;
11
26
  declare const _default: {
12
27
  install: (app: App) => void;
13
28
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAU,MAAM,KAAK,CAAC;AAyBvC,OAAO,aAAa,CAAA;AACpB,OAAO,wBAAwB,CAAA;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;;mBAnBnB,GAAG;;AAqBzB,wBAEE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAU,MAAM,KAAK,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