@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,163 @@
1
+ import { FormState, GenericObject, ResetFormOpts, ValidationOptions } from '../../tt-validate';
2
+ import { ComponentPublicInstance } from 'vue';
3
+ import { FormActions, FormSchemaV2, SjzyFormPropsV2 } from './types/types';
4
+ import { StateHandler } from '../../../../../utils/src';
5
+ import { Store } from './shared/store';
6
+ export declare class FormApi<V = Record<string, any>> {
7
+ isMounted: boolean;
8
+ state: null | SjzyFormPropsV2;
9
+ stateHandler: StateHandler;
10
+ store: Store<SjzyFormPropsV2>;
11
+ isDirty: import('vue').Ref<boolean, boolean>;
12
+ form: FormActions;
13
+ /**
14
+ * 组件实例映射
15
+ */
16
+ private componentRefMap;
17
+ private latestSubmissionValues;
18
+ private prevState;
19
+ /**
20
+ * 记录被删除的schema字段及其值
21
+ * 只能通过removeSchemaByFields方法删除的schema才会被记录
22
+ * @type {Map<string, string>}
23
+ */
24
+ private removedSchemaMap;
25
+ /**
26
+ * 字段依赖手动触发函数映射
27
+ * 用于存储每个字段的手动触发方法
28
+ */
29
+ private dependencyTriggerMap;
30
+ /**
31
+ * 表单字段事件总线
32
+ * 在 mount 时根据 busKey 设置,避免在 validate 等方法中调用 useFormBus(需要 inject 上下文)
33
+ */
34
+ private fieldBus;
35
+ constructor(options?: SjzyFormPropsV2 | any);
36
+ /**
37
+ * 获取字段组件实例
38
+ * @param fieldName 字段名
39
+ * @returns 组件实例
40
+ */
41
+ getFieldComponentRef<T = ComponentPublicInstance>(fieldName: string): T | undefined;
42
+ /** 获取最后一次点击提交时的表单值 */
43
+ getLatestSubmissionValues(): Partial<V>;
44
+ getMeta(): Promise<import('../../tt-validate').FormMeta<GenericObject>>;
45
+ getState(): SjzyFormPropsV2 | null;
46
+ /**
47
+ * 获取表单值
48
+ * @param getFull 是否获取完整的表单值,默认为true
49
+ * 如果为false,则只获取可见状态的值
50
+ */
51
+ getValues(getFull?: boolean): Promise<Partial<V>>;
52
+ /**
53
+ * 获取删除的schema值
54
+ * 只能通过removeSchemaByFields方法删除的schema才会被记录
55
+ * @returns 返回一个对象,包含被删除的schema字段名和对应的值
56
+ */
57
+ getRemovedSchemaValues(): Record<string, any>;
58
+ isFieldValid(fieldName: string): Promise<boolean>;
59
+ /**
60
+ * 合并表单
61
+ */
62
+ merge<V2 = Record<string, any>>(formApi: FormApi<V2>): FormApi<V2> & {
63
+ submitAllForm: (needMerge?: boolean) => Promise<Partial<V & V2> | Array<Partial<V | V2>>>;
64
+ };
65
+ mount(formActions: FormActions, componentRefMap: Map<string, unknown>): void;
66
+ /**
67
+ * 根据字段名移除表单项
68
+ * @param fields
69
+ * @remarks
70
+ * 该方法会将被删除的schema字段及其值记录到removedSchemaMap中,可以通过getRemovedSchemaValues方法获取删除的value值
71
+ */
72
+ removeSchemaByFields(fields: string[]): Promise<void>;
73
+ /**
74
+ * 重置表单
75
+ */
76
+ resetForm(state?: Partial<FormState<GenericObject>> | undefined, opts?: Partial<ResetFormOpts>): Promise<void>;
77
+ /** 重置校验 */
78
+ resetValidate(): Promise<void>;
79
+ /**
80
+ * 重置单个校验
81
+ */
82
+ resetFieldValidate(field: string): Promise<void>;
83
+ /**
84
+ * 设置字段值
85
+ */
86
+ setFieldValue(field: string, value: any, shouldValidate?: boolean): Promise<void>;
87
+ /**
88
+ * 设置最后一次表单值
89
+ */
90
+ setLatestSubmissionValues(values: null | Partial<V>): void;
91
+ /**
92
+ * 设置表单状态
93
+ */
94
+ setState(stateOrFn: ((prev: SjzyFormPropsV2) => Partial<SjzyFormPropsV2>) | Partial<SjzyFormPropsV2>): void;
95
+ /**
96
+ * 设置表单值
97
+ * @param fields record
98
+ * @param filterFields 过滤不在schema中定义的字段 默认为true
99
+ * @param shouldValidate
100
+ */
101
+ setValues(fields: Partial<V>, filterFields?: boolean, shouldValidate?: boolean): Promise<void>;
102
+ submitForm(e?: Event): Promise<Partial<V>>;
103
+ unmount(): void;
104
+ updateSchema(schema: Partial<FormSchemaV2>[]): void;
105
+ validate(opts?: Partial<ValidationOptions>): Promise<import('../../tt-validate').FormValidationResult<GenericObject, GenericObject>>;
106
+ validateAndSubmitForm(): Promise<Partial<V> | undefined>;
107
+ validateField(fieldName: string, opts?: Partial<ValidationOptions>): Promise<import('../../tt-validate').ValidationResult<any>>;
108
+ /**
109
+ * 值是否有变化
110
+ */
111
+ setDirty(bool: boolean): void;
112
+ /**
113
+ * 获取脏值
114
+ * e.g { useNewMethod: true, excludeAll: [], exclude: [], xxx: { exclude: [] } }
115
+ */
116
+ getDirtyValues(option?: {
117
+ /** 不参与对比字段-全局 */
118
+ excludeAll?: string[];
119
+ /** 不参与对比字段-当前层级 */
120
+ exclude?: string[];
121
+ /** 是否使用新对比方法,list只要改变全量返回 */
122
+ useNewMethod?: boolean;
123
+ [key: string]: any;
124
+ }): Promise<Record<string, any>>;
125
+ evaluateCondition(condition: any | undefined, values: any, api: FormApi<V>, defaultValue?: boolean): Promise<boolean>;
126
+ /**
127
+ * 获取所有字段的 visible 状态
128
+ */
129
+ getVisibleStatus(): Promise<Record<string, any>>;
130
+ /**
131
+ * 注册字段的依赖手动触发函数
132
+ * @param fieldName 字段名
133
+ * @param triggerFn 触发函数
134
+ */
135
+ registerDependencyTrigger(fieldName: string, triggerFn: (changedFields?: string[]) => Promise<void>): void;
136
+ /**
137
+ * 移除字段的依赖手动触发函数
138
+ * @param fieldName 字段名
139
+ */
140
+ unregisterDependencyTrigger(fieldName: string): void;
141
+ /**
142
+ * 手动触发指定字段的依赖更新
143
+ * @param fieldNames 字段名(单个或多个)
144
+ * @param changedFields 变化的字段名数组(可选)
145
+ * @remarks
146
+ * 此方法用于手动模式 (triggerMode: 'manual') 下触发字段的依赖逻辑。
147
+ * 在自动模式下调用此方法也是安全的,但通常不需要。
148
+ * @example
149
+ * // 触发单个字段
150
+ * formApi.triggerDependency('email')
151
+ *
152
+ * // 触发多个字段
153
+ * formApi.triggerDependency(['email', 'phone'])
154
+ *
155
+ * // 指定变化字段
156
+ * formApi.triggerDependency('email', ['username'])
157
+ */
158
+ triggerDependency(fieldNames: string | string[], changedFields?: string[]): Promise<void>;
159
+ private getForm;
160
+ private handleRangeTimeValue;
161
+ private updateState;
162
+ }
163
+ //# sourceMappingURL=form-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-api.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/tt-form/src/form-api.ts"],"names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AO,CAAC,WAAW;CAYpB"}
@@ -0,0 +1,54 @@
1
+ import { ComputedRef } from 'vue';
2
+ import { FormRenderProps } from '../types/types';
3
+ export declare const injectRenderFormProps: <T extends FormRenderProps | null | undefined = FormRenderProps>(fallback?: T | undefined) => T extends null ? FormRenderProps | null : FormRenderProps, provideFormRenderProps: (contextValue: FormRenderProps) => FormRenderProps;
4
+ /**
5
+ * 用于生成 testid 的表单名前缀上下文
6
+ * 将表单名(前缀)传递给子组件,用于统一生成各层级的 testid
7
+ * 使用 ComputedRef 以支持响应式更新
8
+ */
9
+ export declare const injectFormNamePrefix: <T extends ComputedRef<string> | null | undefined = ComputedRef<string>>(fallback?: T | undefined) => T extends null ? ComputedRef<string> | null : ComputedRef<string>, provideFormNamePrefix: (contextValue: ComputedRef<string>) => ComputedRef<string>;
10
+ /**
11
+ * 表单操作按钮 testid 上下文
12
+ * 用于传递查询/重置等按钮的 testid
13
+ */
14
+ export type FormActionTestIds = {
15
+ submit?: string;
16
+ reset?: string;
17
+ };
18
+ export declare const injectFormActionTestIds: <T extends ComputedRef<FormActionTestIds> | null | undefined = ComputedRef<FormActionTestIds>>(fallback?: T | undefined) => T extends null ? ComputedRef<FormActionTestIds> | null : ComputedRef<FormActionTestIds>, provideFormActionTestIds: (contextValue: ComputedRef<FormActionTestIds>) => ComputedRef<FormActionTestIds>;
19
+ export declare const formFieldBus: import('@vueuse/core').UseEventBusReturn<import('../../../tt-validate').FormValidationResult<import('../../../tt-validate').GenericObject, import('../../../tt-validate').GenericObject>, any>;
20
+ export declare const formFilterBus: import('@vueuse/core').UseEventBusReturn<string, any>;
21
+ /**
22
+ * 创建带有自定义key的form field bus
23
+ * @param key - 自定义key
24
+ * @returns form field bus实例
25
+ */
26
+ export declare function createFormFieldBus(key?: string | symbol): import('@vueuse/core').UseEventBusReturn<import('../../../tt-validate').FormValidationResult<import('../../../tt-validate').GenericObject, import('../../../tt-validate').GenericObject>, any>;
27
+ /**
28
+ * 创建带有自定义key的form filter bus
29
+ * @param key - 自定义key
30
+ * @returns form filter bus实例
31
+ */
32
+ export declare function createFormFilterBus(key?: string | symbol): import('@vueuse/core').UseEventBusReturn<string, any>;
33
+ /**
34
+ * 获取或创建自定义bus实例(内部公共方法)
35
+ * @param busKey - 自定义key(字符串或 Symbol)
36
+ * @returns bus实例对象
37
+ */
38
+ export declare function getOrCreateCustomBus(busKey: string | symbol): {
39
+ fieldBus: any;
40
+ filterBus: any;
41
+ };
42
+ /**
43
+ * 获取当前表单的bus实例,如果有busKey则使用自定义bus,否则使用全局bus
44
+ */
45
+ export declare function useFormBus(): {
46
+ fieldBus: any;
47
+ filterBus: any;
48
+ };
49
+ export declare function useFormContext(): {
50
+ componentBindEventMap: ComputedRef<Partial<Record<keyof import('../..').BaseFormComponentMap, string>> | undefined>;
51
+ componentMap: ComputedRef<Record<keyof import('../..').BaseFormComponentMap, import('vue').Component>>;
52
+ isVertical: ComputedRef<boolean>;
53
+ };
54
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/tt-form/src/form-render/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AACtC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAMrD,eAAO,MAAO,qBAAqB,2JAAE,sBAAsB,oDACN,CAAA;AAErD;;;;GAIG;AACH,eAAO,MAAO,oBAAoB,2KAAE,qBAAqB,4DACD,CAAA;AAExD;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,eAAO,MAAO,uBAAuB,uNAAE,wBAAwB,kFACO,CAAA;AAGtE,eAAO,MAAM,YAAY,gMAAoB,CAAA;AAC7C,eAAO,MAAM,aAAa,uDAAqB,CAAA;AAE/C;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,kMAEvD;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,yDAExD;AAKD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;cAPT,GAAG;eAAa,GAAG;EAkBrE;AAED;;GAEG;AACH,wBAAgB,UAAU;cAvByB,GAAG;eAAa,GAAG;EAmCrE;AAED,wBAAgB,cAAc;;;;EAY7B"}
@@ -0,0 +1,373 @@
1
+ import { FormItemDependencies, FormSchemaRuleType, MaybeComponentProps } from '../types/types';
2
+ /**
3
+ * 表单项依赖关系处理钩子
4
+ */
5
+ export default function useDependencies(getDependencies: () => FormItemDependencies | undefined): {
6
+ dynamicComponentProps: import('vue').Ref<{
7
+ [x: Record<never, never> & string]: any;
8
+ contextmenu?: any;
9
+ style?: any;
10
+ title?: any;
11
+ dir?: any;
12
+ options?: any;
13
+ id?: any;
14
+ disabled?: any;
15
+ class?: any;
16
+ color?: any;
17
+ onCopy?: any;
18
+ onCut?: any;
19
+ onPaste?: any;
20
+ onCompositionend?: any;
21
+ onCompositionstart?: any;
22
+ onCompositionupdate?: any;
23
+ onDrag?: any;
24
+ onDragend?: any;
25
+ onDragenter?: any;
26
+ onDragexit?: any;
27
+ onDragleave?: any;
28
+ onDragover?: any;
29
+ onDragstart?: any;
30
+ onDrop?: any;
31
+ onFocus?: any;
32
+ onFocusin?: any;
33
+ onFocusout?: any;
34
+ onBlur?: any;
35
+ onChange?: any;
36
+ onBeforeinput?: any;
37
+ onInput?: any;
38
+ onReset?: any;
39
+ onSubmit?: any;
40
+ onInvalid?: any;
41
+ onLoad?: any;
42
+ onError?: any;
43
+ onKeydown?: any;
44
+ onKeypress?: any;
45
+ onKeyup?: any;
46
+ onAuxclick?: any;
47
+ onClick?: any;
48
+ onContextmenu?: any;
49
+ onDblclick?: any;
50
+ onMousedown?: any;
51
+ onMouseenter?: any;
52
+ onMouseleave?: any;
53
+ onMousemove?: any;
54
+ onMouseout?: any;
55
+ onMouseover?: any;
56
+ onMouseup?: any;
57
+ onAbort?: any;
58
+ onCanplay?: any;
59
+ onCanplaythrough?: any;
60
+ onDurationchange?: any;
61
+ onEmptied?: any;
62
+ onEncrypted?: any;
63
+ onEnded?: any;
64
+ onLoadeddata?: any;
65
+ onLoadedmetadata?: any;
66
+ onLoadstart?: any;
67
+ onPause?: any;
68
+ onPlay?: any;
69
+ onPlaying?: any;
70
+ onProgress?: any;
71
+ onRatechange?: any;
72
+ onSeeked?: any;
73
+ onSeeking?: any;
74
+ onStalled?: any;
75
+ onSuspend?: any;
76
+ onTimeupdate?: any;
77
+ onVolumechange?: any;
78
+ onWaiting?: any;
79
+ onSelect?: any;
80
+ onScroll?: any;
81
+ onScrollend?: any;
82
+ onTouchcancel?: any;
83
+ onTouchend?: any;
84
+ onTouchmove?: any;
85
+ onTouchstart?: any;
86
+ onPointerdown?: any;
87
+ onPointermove?: any;
88
+ onPointerup?: any;
89
+ onPointercancel?: any;
90
+ onPointerenter?: any;
91
+ onPointerleave?: any;
92
+ onPointerover?: any;
93
+ onPointerout?: any;
94
+ onWheel?: any;
95
+ onAnimationstart?: any;
96
+ onAnimationend?: any;
97
+ onAnimationiteration?: any;
98
+ onTransitionend?: any;
99
+ onTransitionstart?: any;
100
+ "aria-hidden"?: any;
101
+ hidden?: any;
102
+ placeholder?: any;
103
+ prefix?: any;
104
+ role?: any;
105
+ autofocus?: any;
106
+ draggable?: any;
107
+ tabindex?: any;
108
+ translate?: any;
109
+ innerHTML?: any;
110
+ accesskey?: any;
111
+ contenteditable?: any;
112
+ inert?: any;
113
+ lang?: any;
114
+ spellcheck?: any;
115
+ radiogroup?: any;
116
+ about?: any;
117
+ datatype?: any;
118
+ inlist?: any;
119
+ property?: any;
120
+ resource?: any;
121
+ typeof?: any;
122
+ vocab?: any;
123
+ autocapitalize?: any;
124
+ autocorrect?: any;
125
+ autosave?: any;
126
+ itemprop?: any;
127
+ itemscope?: any;
128
+ itemtype?: any;
129
+ itemid?: any;
130
+ itemref?: any;
131
+ results?: any;
132
+ security?: any;
133
+ unselectable?: any;
134
+ inputmode?: any;
135
+ is?: any;
136
+ "aria-activedescendant"?: any;
137
+ "aria-atomic"?: any;
138
+ "aria-autocomplete"?: any;
139
+ "aria-busy"?: any;
140
+ "aria-checked"?: any;
141
+ "aria-colcount"?: any;
142
+ "aria-colindex"?: any;
143
+ "aria-colspan"?: any;
144
+ "aria-controls"?: any;
145
+ "aria-current"?: any;
146
+ "aria-describedby"?: any;
147
+ "aria-details"?: any;
148
+ "aria-disabled"?: any;
149
+ "aria-dropeffect"?: any;
150
+ "aria-errormessage"?: any;
151
+ "aria-expanded"?: any;
152
+ "aria-flowto"?: any;
153
+ "aria-grabbed"?: any;
154
+ "aria-haspopup"?: any;
155
+ "aria-invalid"?: any;
156
+ "aria-keyshortcuts"?: any;
157
+ "aria-label"?: any;
158
+ "aria-labelledby"?: any;
159
+ "aria-level"?: any;
160
+ "aria-live"?: any;
161
+ "aria-modal"?: any;
162
+ "aria-multiline"?: any;
163
+ "aria-multiselectable"?: any;
164
+ "aria-orientation"?: any;
165
+ "aria-owns"?: any;
166
+ "aria-placeholder"?: any;
167
+ "aria-posinset"?: any;
168
+ "aria-pressed"?: any;
169
+ "aria-readonly"?: any;
170
+ "aria-relevant"?: any;
171
+ "aria-required"?: any;
172
+ "aria-roledescription"?: any;
173
+ "aria-rowcount"?: any;
174
+ "aria-rowindex"?: any;
175
+ "aria-rowspan"?: any;
176
+ "aria-selected"?: any;
177
+ "aria-setsize"?: any;
178
+ "aria-sort"?: any;
179
+ "aria-valuemax"?: any;
180
+ "aria-valuemin"?: any;
181
+ "aria-valuenow"?: any;
182
+ "aria-valuetext"?: any;
183
+ manifest?: any;
184
+ }, MaybeComponentProps | {
185
+ [x: Record<never, never> & string]: any;
186
+ contextmenu?: any;
187
+ style?: any;
188
+ title?: any;
189
+ dir?: any;
190
+ options?: any;
191
+ id?: any;
192
+ disabled?: any;
193
+ class?: any;
194
+ color?: any;
195
+ onCopy?: any;
196
+ onCut?: any;
197
+ onPaste?: any;
198
+ onCompositionend?: any;
199
+ onCompositionstart?: any;
200
+ onCompositionupdate?: any;
201
+ onDrag?: any;
202
+ onDragend?: any;
203
+ onDragenter?: any;
204
+ onDragexit?: any;
205
+ onDragleave?: any;
206
+ onDragover?: any;
207
+ onDragstart?: any;
208
+ onDrop?: any;
209
+ onFocus?: any;
210
+ onFocusin?: any;
211
+ onFocusout?: any;
212
+ onBlur?: any;
213
+ onChange?: any;
214
+ onBeforeinput?: any;
215
+ onInput?: any;
216
+ onReset?: any;
217
+ onSubmit?: any;
218
+ onInvalid?: any;
219
+ onLoad?: any;
220
+ onError?: any;
221
+ onKeydown?: any;
222
+ onKeypress?: any;
223
+ onKeyup?: any;
224
+ onAuxclick?: any;
225
+ onClick?: any;
226
+ onContextmenu?: any;
227
+ onDblclick?: any;
228
+ onMousedown?: any;
229
+ onMouseenter?: any;
230
+ onMouseleave?: any;
231
+ onMousemove?: any;
232
+ onMouseout?: any;
233
+ onMouseover?: any;
234
+ onMouseup?: any;
235
+ onAbort?: any;
236
+ onCanplay?: any;
237
+ onCanplaythrough?: any;
238
+ onDurationchange?: any;
239
+ onEmptied?: any;
240
+ onEncrypted?: any;
241
+ onEnded?: any;
242
+ onLoadeddata?: any;
243
+ onLoadedmetadata?: any;
244
+ onLoadstart?: any;
245
+ onPause?: any;
246
+ onPlay?: any;
247
+ onPlaying?: any;
248
+ onProgress?: any;
249
+ onRatechange?: any;
250
+ onSeeked?: any;
251
+ onSeeking?: any;
252
+ onStalled?: any;
253
+ onSuspend?: any;
254
+ onTimeupdate?: any;
255
+ onVolumechange?: any;
256
+ onWaiting?: any;
257
+ onSelect?: any;
258
+ onScroll?: any;
259
+ onScrollend?: any;
260
+ onTouchcancel?: any;
261
+ onTouchend?: any;
262
+ onTouchmove?: any;
263
+ onTouchstart?: any;
264
+ onPointerdown?: any;
265
+ onPointermove?: any;
266
+ onPointerup?: any;
267
+ onPointercancel?: any;
268
+ onPointerenter?: any;
269
+ onPointerleave?: any;
270
+ onPointerover?: any;
271
+ onPointerout?: any;
272
+ onWheel?: any;
273
+ onAnimationstart?: any;
274
+ onAnimationend?: any;
275
+ onAnimationiteration?: any;
276
+ onTransitionend?: any;
277
+ onTransitionstart?: any;
278
+ "aria-hidden"?: any;
279
+ hidden?: any;
280
+ placeholder?: any;
281
+ prefix?: any;
282
+ role?: any;
283
+ autofocus?: any;
284
+ draggable?: any;
285
+ tabindex?: any;
286
+ translate?: any;
287
+ innerHTML?: any;
288
+ accesskey?: any;
289
+ contenteditable?: any;
290
+ inert?: any;
291
+ lang?: any;
292
+ spellcheck?: any;
293
+ radiogroup?: any;
294
+ about?: any;
295
+ datatype?: any;
296
+ inlist?: any;
297
+ property?: any;
298
+ resource?: any;
299
+ typeof?: any;
300
+ vocab?: any;
301
+ autocapitalize?: any;
302
+ autocorrect?: any;
303
+ autosave?: any;
304
+ itemprop?: any;
305
+ itemscope?: any;
306
+ itemtype?: any;
307
+ itemid?: any;
308
+ itemref?: any;
309
+ results?: any;
310
+ security?: any;
311
+ unselectable?: any;
312
+ inputmode?: any;
313
+ is?: any;
314
+ "aria-activedescendant"?: any;
315
+ "aria-atomic"?: any;
316
+ "aria-autocomplete"?: any;
317
+ "aria-busy"?: any;
318
+ "aria-checked"?: any;
319
+ "aria-colcount"?: any;
320
+ "aria-colindex"?: any;
321
+ "aria-colspan"?: any;
322
+ "aria-controls"?: any;
323
+ "aria-current"?: any;
324
+ "aria-describedby"?: any;
325
+ "aria-details"?: any;
326
+ "aria-disabled"?: any;
327
+ "aria-dropeffect"?: any;
328
+ "aria-errormessage"?: any;
329
+ "aria-expanded"?: any;
330
+ "aria-flowto"?: any;
331
+ "aria-grabbed"?: any;
332
+ "aria-haspopup"?: any;
333
+ "aria-invalid"?: any;
334
+ "aria-keyshortcuts"?: any;
335
+ "aria-label"?: any;
336
+ "aria-labelledby"?: any;
337
+ "aria-level"?: any;
338
+ "aria-live"?: any;
339
+ "aria-modal"?: any;
340
+ "aria-multiline"?: any;
341
+ "aria-multiselectable"?: any;
342
+ "aria-orientation"?: any;
343
+ "aria-owns"?: any;
344
+ "aria-placeholder"?: any;
345
+ "aria-posinset"?: any;
346
+ "aria-pressed"?: any;
347
+ "aria-readonly"?: any;
348
+ "aria-relevant"?: any;
349
+ "aria-required"?: any;
350
+ "aria-roledescription"?: any;
351
+ "aria-rowcount"?: any;
352
+ "aria-rowindex"?: any;
353
+ "aria-rowspan"?: any;
354
+ "aria-selected"?: any;
355
+ "aria-setsize"?: any;
356
+ "aria-sort"?: any;
357
+ "aria-valuemax"?: any;
358
+ "aria-valuemin"?: any;
359
+ "aria-valuenow"?: any;
360
+ "aria-valuetext"?: any;
361
+ manifest?: any;
362
+ }>;
363
+ dynamicRules: import('vue').Ref<FormSchemaRuleType | undefined, FormSchemaRuleType | undefined>;
364
+ dynamicFormItemClass: import('vue').Ref<string | undefined, string | undefined>;
365
+ isDisabled: import('vue').Ref<boolean, boolean>;
366
+ isRequired: import('vue').Ref<boolean, boolean>;
367
+ isWarn: import('vue').Ref<boolean, boolean>;
368
+ isShow: import('vue').Ref<boolean, boolean>;
369
+ isIf: import('vue').Ref<boolean, boolean>;
370
+ /** 手动触发依赖更新(用于 manual 模式) */
371
+ triggerManually: (changedFields?: string[]) => Promise<void>;
372
+ };
373
+ //# sourceMappingURL=dependencies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/tt-form/src/form-render/dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AA+BnG;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,eAAe,EAAE,MAAM,oBAAoB,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmJ3F,6BAA6B;sCArGoB,MAAM,EAAE;EAwG5D"}
@@ -0,0 +1,10 @@
1
+ import { FormRenderProps } from '../types/types';
2
+ /**
3
+ * 动态计算行数
4
+ */
5
+ export declare function useExpandable(props: FormRenderProps): {
6
+ isCalculated: import('vue').Ref<boolean, boolean>;
7
+ keepFormItemIndex: import('vue').ComputedRef<number>;
8
+ wrapperRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
9
+ };
10
+ //# sourceMappingURL=expandable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expandable.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/tt-form/src/form-render/expandable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAGrD;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,eAAe;;;;EAsInD"}
@@ -0,0 +1,33 @@
1
+ import { FormSchemaV2, MaybeComponentProps } from '../types/types';
2
+ type Props = {
3
+ /** 组件属性 */
4
+ commonComponentProps?: MaybeComponentProps;
5
+ /** 组件参数 - 使用 any 避免 Vue 运行时类型检查联合类型的问题 */
6
+ componentProps?: any;
7
+ } & Omit<FormSchemaV2, "componentProps">;
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: Readonly<{
11
+ default: (slotProps: any) => void;
12
+ }> & {
13
+ default: (slotProps: any) => void;
14
+ };
15
+ refs: {
16
+ wrapperRef: HTMLDivElement;
17
+ fieldComponentRef: unknown;
18
+ };
19
+ rootEl: any;
20
+ };
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
23
+ wrapperRef: HTMLDivElement;
24
+ fieldComponentRef: unknown;
25
+ }, any>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
33
+ //# sourceMappingURL=form-field.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-field.vue.d.ts","sourceRoot":"","sources":["../../../../../../../../src/components/tt-form/src/form-render/form-field.vue"],"names":[],"mappings":"AA49BA,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AA0BxE,KAAK,KAAK,GAAG;IACX,WAAW;IACX,oBAAoB,CAAC,EAAE,mBAAmB,CAAC;IAC3C,0CAA0C;IAC1C,cAAc,CAAC,EAAE,GAAG,CAAC;CACtB,GAAG,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,CAAC;AAszBzC,iBAAS,cAAc;WAsVT,OAAO,IAA6B;;iBA9lCvC,CAAC,SAAS,EAAE,GAAG,KAAK,IAAI;;iBAAxB,CAAC,SAAS,EAAE,GAAG,KAAK,IAAI;;;;;;;EAmmClC;AAkDD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;OAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}