@tongfun/ui 0.0.0-alpha.3 → 0.0.1-alpha.2

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 (910) hide show
  1. package/.claude/settings.local.json +7 -0
  2. package/.hermes/plans/datapicker-object-mode.md +57 -0
  3. package/.hermes/plans/design-spec-fusion-5175-v2.md +146 -0
  4. package/.hermes/plans/design-spec-fusion-5175.md +88 -0
  5. package/.hermes/plans/file-upload-chip-redesign.md +66 -0
  6. package/.hermes/plans/form-image-upload-modelvalue-fix.md +38 -0
  7. package/.hermes/plans/form-layout-responsive-span-plan.md +137 -0
  8. package/.hermes/plans/global-audit-report.md +728 -0
  9. package/.hermes/plans/global-audit-report.v1.md +604 -0
  10. package/.hermes/plans/global-audit-report.v3.md +777 -0
  11. package/.hermes/plans/image-file-erp-redesign.md +173 -0
  12. package/.hermes/plans/location-picker-baidu-modal.md +173 -0
  13. package/.hermes/plans/new-document-3b-color-componentization-plan.md +155 -0
  14. package/.hermes/plans/new-document-form-layout-rebuild-plan.md +150 -0
  15. package/.hermes/plans/new-document-fullwidth-3col-plan.md +177 -0
  16. package/.hermes/plans/picker-quick-options-range-mode.md +143 -0
  17. package/.hermes/plans/region-picker-mock-contract.md +202 -0
  18. package/.hermes/plans/zero-div-component-contracts.md +466 -0
  19. package/README.md +110 -0
  20. package/components.json +19 -0
  21. package/docs/DEVELOPMENT.md +315 -0
  22. package/docs/PRD.md +170 -0
  23. package/docs/ai-api-layering.md +141 -0
  24. package/docs/anchor-component-plan.md +165 -0
  25. package/docs/components-analysis.md +2911 -0
  26. package/docs/demo-scan-report.md +142 -0
  27. package/docs/editable-table-research.md +8 -0
  28. package/docs/form-panorama-plan.md +141 -0
  29. package/docs/lowcode-agent-component-registry.sample.json +36364 -0
  30. package/docs/tf-form-table-modification-plan.md +503 -0
  31. package/docs/token-compliance-audit-report.md +542 -0
  32. package/env.d.ts +5 -0
  33. package/eslint.config.js +66 -0
  34. package/package.json +85 -38
  35. package/packages/ui/__tests__/package-exports.test.ts +23 -0
  36. package/packages/ui/components/affix/README.md +78 -0
  37. package/packages/ui/components/affix/__tests__/affix.test.ts +204 -0
  38. package/packages/ui/components/affix/index.ts +13 -0
  39. package/packages/ui/components/affix/src/affix.vue +216 -0
  40. package/packages/ui/components/affix/src/types.ts +47 -0
  41. package/packages/ui/components/affix/styles/affix.css +17 -0
  42. package/packages/ui/components/ai-overlay/README.md +180 -0
  43. package/packages/ui/components/ai-overlay/__tests__/ai-action-menu.test.ts +133 -0
  44. package/packages/ui/components/ai-overlay/__tests__/ai-overlay.test.ts +117 -0
  45. package/packages/ui/components/ai-overlay/index.ts +32 -0
  46. package/packages/ui/components/ai-overlay/src/ai-action-menu-types.ts +22 -0
  47. package/packages/ui/components/ai-overlay/src/ai-action-menu.vue +200 -0
  48. package/packages/ui/components/ai-overlay/src/ai-overlay.vue +329 -0
  49. package/packages/ui/components/ai-overlay/src/types.ts +84 -0
  50. package/packages/ui/components/ai-overlay/styles/ai-overlay.css +306 -0
  51. package/packages/ui/components/ai-state-flow/README.md +111 -0
  52. package/packages/ui/components/ai-state-flow/__tests__/ai-state-flow.test.ts +69 -0
  53. package/packages/ui/components/ai-state-flow/ai-state-flow.ts +16 -0
  54. package/packages/ui/components/ai-state-flow/ai-state-flow.vue +67 -0
  55. package/packages/ui/components/ai-state-flow/index.ts +24 -0
  56. package/packages/ui/components/ai-state-flow/styles/ai-state-flow.css +144 -0
  57. package/packages/ui/components/alert/README.md +83 -0
  58. package/packages/ui/components/alert/__tests__/alert.test.ts +155 -0
  59. package/packages/ui/components/alert/index.ts +13 -0
  60. package/packages/ui/components/alert/src/alert.ts +90 -0
  61. package/packages/ui/components/alert/src/alert.vue +87 -0
  62. package/packages/ui/components/alert/styles/alert.css +158 -0
  63. package/packages/ui/components/anchor/README.md +50 -0
  64. package/packages/ui/components/anchor/__tests__/anchor.test.ts +284 -0
  65. package/packages/ui/components/anchor/index.ts +13 -0
  66. package/packages/ui/components/anchor/src/anchor.vue +94 -0
  67. package/packages/ui/components/anchor/src/types.ts +55 -0
  68. package/packages/ui/components/anchor/src/use-anchor.ts +253 -0
  69. package/packages/ui/components/anchor/styles/anchor.css +90 -0
  70. package/packages/ui/components/avatar/README.md +118 -0
  71. package/packages/ui/components/avatar/__tests__/avatar.test.ts +83 -0
  72. package/packages/ui/components/avatar/index.ts +12 -0
  73. package/packages/ui/components/avatar/src/avatar.ts +62 -0
  74. package/packages/ui/components/avatar/src/avatar.vue +106 -0
  75. package/packages/ui/components/back-top/README.md +63 -0
  76. package/packages/ui/components/back-top/__tests__/back-top.test.ts +215 -0
  77. package/packages/ui/components/back-top/index.ts +13 -0
  78. package/packages/ui/components/back-top/src/back-top.ts +51 -0
  79. package/packages/ui/components/back-top/src/back-top.vue +104 -0
  80. package/packages/ui/components/back-top/styles/back-top.css +24 -0
  81. package/packages/ui/components/badge/README.md +71 -0
  82. package/packages/ui/components/badge/__tests__/badge.test.ts +142 -0
  83. package/packages/ui/components/badge/index.ts +13 -0
  84. package/packages/ui/components/badge/src/badge.ts +64 -0
  85. package/packages/ui/components/badge/src/badge.vue +76 -0
  86. package/packages/ui/components/badge/styles/badge.css +45 -0
  87. package/packages/ui/components/batch-action-button/README.md +68 -0
  88. package/packages/ui/components/batch-action-button/__tests__/batch-action-button.test.ts +30 -0
  89. package/packages/ui/components/batch-action-button/index.ts +11 -0
  90. package/packages/ui/components/batch-action-button/src/batch-action-button.vue +59 -0
  91. package/packages/ui/components/batch-action-button/src/types.ts +9 -0
  92. package/packages/ui/components/breadcrumb/README.md +115 -0
  93. package/packages/ui/components/breadcrumb/__tests__/breadcrumb.test.ts +168 -0
  94. package/packages/ui/components/breadcrumb/index.ts +13 -0
  95. package/packages/ui/components/breadcrumb/src/breadcrumb.ts +60 -0
  96. package/packages/ui/components/breadcrumb/src/breadcrumb.vue +86 -0
  97. package/packages/ui/components/business/document/action-header/index.ts +14 -0
  98. package/packages/ui/components/business/document/action-header/src/context.ts +10 -0
  99. package/packages/ui/components/business/document/action-header/src/document-action-header.vue +296 -0
  100. package/packages/ui/components/business/document/action-header/src/types.ts +100 -0
  101. package/packages/ui/components/business/document/ai-toolbar/index.ts +12 -0
  102. package/packages/ui/components/business/document/ai-toolbar/src/document-ai-toolbar.vue +72 -0
  103. package/packages/ui/components/business/document/form-page/index.ts +16 -0
  104. package/packages/ui/components/business/document/form-page/src/composables/use-document-ai-toolbar.ts +37 -0
  105. package/packages/ui/components/business/document/form-page/src/composables/use-document-layout-mode.ts +24 -0
  106. package/packages/ui/components/business/document/form-page/src/composables/use-document-recognition.ts +55 -0
  107. package/packages/ui/components/business/document/form-page/src/composables/use-document-save.ts +243 -0
  108. package/packages/ui/components/business/document/form-page/src/composables/use-document-sections.ts +234 -0
  109. package/packages/ui/components/business/document/form-page/src/context.ts +15 -0
  110. package/packages/ui/components/business/document/form-page/src/document-form-page.vue +251 -0
  111. package/packages/ui/components/business/document/form-page/src/document-section-card.vue +187 -0
  112. package/packages/ui/components/business/document/form-page/src/types.ts +245 -0
  113. package/packages/ui/components/business/document/form-page/styles/document-form-page.css +40 -0
  114. package/packages/ui/components/business/enum-select/index.ts +18 -0
  115. package/packages/ui/components/business/enum-select/src/enum-select.vue +171 -0
  116. package/packages/ui/components/business/enum-select/src/types.ts +33 -0
  117. package/packages/ui/components/button/README.md +155 -0
  118. package/packages/ui/components/button/__tests__/button.test.ts +261 -0
  119. package/packages/ui/components/button/index.ts +14 -0
  120. package/packages/ui/components/button/src/button.ts +168 -0
  121. package/packages/ui/components/button/src/button.vue +341 -0
  122. package/packages/ui/components/button/styles/button.css +149 -0
  123. package/packages/ui/components/carousel/README.md +48 -0
  124. package/packages/ui/components/carousel/__tests__/carousel.test.ts +82 -0
  125. package/packages/ui/components/carousel/index.ts +11 -0
  126. package/packages/ui/components/carousel/src/carousel.ts +38 -0
  127. package/packages/ui/components/carousel/src/carousel.vue +101 -0
  128. package/packages/ui/components/carousel/styles/carousel.css +40 -0
  129. package/packages/ui/components/chart/README.md +120 -0
  130. package/packages/ui/components/chart/__tests__/chart.test.ts +86 -0
  131. package/packages/ui/components/chart/__tests__/simple-charts.test.ts +130 -0
  132. package/packages/ui/components/chart/index.ts +22 -0
  133. package/packages/ui/components/chart/src/bar-chart.vue +83 -0
  134. package/packages/ui/components/chart/src/chart.ts +135 -0
  135. package/packages/ui/components/chart/src/chart.vue +147 -0
  136. package/packages/ui/components/chart/src/donut-chart.vue +96 -0
  137. package/packages/ui/components/chart/src/line-chart.vue +101 -0
  138. package/packages/ui/components/chart/src/metric-grid.vue +55 -0
  139. package/packages/ui/components/chart/src/types.ts +91 -0
  140. package/packages/ui/components/chart/src/utils.ts +68 -0
  141. package/packages/ui/components/chart/styles/bar-chart.css +134 -0
  142. package/packages/ui/components/chart/styles/chart.css +48 -0
  143. package/packages/ui/components/chart/styles/donut-chart.css +114 -0
  144. package/packages/ui/components/chart/styles/line-chart.css +61 -0
  145. package/packages/ui/components/chart/styles/metric-grid.css +115 -0
  146. package/packages/ui/components/code-block/README.md +56 -0
  147. package/packages/ui/components/code-block/__tests__/code-block.test.ts +166 -0
  148. package/packages/ui/components/code-block/index.ts +13 -0
  149. package/packages/ui/components/code-block/src/code-block.vue +216 -0
  150. package/packages/ui/components/code-block/src/types.ts +31 -0
  151. package/packages/ui/components/code-block/styles/code-block.css +192 -0
  152. package/packages/ui/components/data-grid/CellRendererActions.vue +77 -0
  153. package/packages/ui/components/data-grid/CellRendererButton.vue +51 -0
  154. package/packages/ui/components/data-grid/CellRendererCsCheckbox.vue +16 -0
  155. package/packages/ui/components/data-grid/CellRendererCsInput.vue +29 -0
  156. package/packages/ui/components/data-grid/CellRendererCsSelect.vue +19 -0
  157. package/packages/ui/components/data-grid/CellRendererInput.vue +120 -0
  158. package/packages/ui/components/data-grid/CellRendererText.vue +94 -0
  159. package/packages/ui/components/data-grid/ColumnSettings.vue +40 -0
  160. package/packages/ui/components/data-grid/ColumnSettingsDialog.vue +367 -0
  161. package/packages/ui/components/data-grid/DataGrid.vue +850 -0
  162. package/packages/ui/components/data-grid/DataGridFilter.vue +242 -0
  163. package/packages/ui/components/data-grid/column-settings-api.ts +62 -0
  164. package/packages/ui/components/data-grid/index.ts +29 -0
  165. package/packages/ui/components/data-grid/props.ts +246 -0
  166. package/packages/ui/components/data-grid/variants.ts +26 -0
  167. package/packages/ui/components/divider/README.md +84 -0
  168. package/packages/ui/components/divider/__tests__/divider.test.ts +105 -0
  169. package/packages/ui/components/divider/index.ts +13 -0
  170. package/packages/ui/components/divider/src/divider.ts +50 -0
  171. package/packages/ui/components/divider/src/divider.vue +76 -0
  172. package/packages/ui/components/divider/styles/divider.css +65 -0
  173. package/packages/ui/components/drawer/README.md +90 -0
  174. package/packages/ui/components/drawer/__tests__/drawer.test.ts +218 -0
  175. package/packages/ui/components/drawer/index.ts +13 -0
  176. package/packages/ui/components/drawer/src/drawer.ts +88 -0
  177. package/packages/ui/components/drawer/src/drawer.vue +157 -0
  178. package/packages/ui/components/drawer/styles/drawer.css +164 -0
  179. package/packages/ui/components/dropdown/README.md +51 -0
  180. package/packages/ui/components/dropdown/__tests__/dropdown.test.ts +143 -0
  181. package/packages/ui/components/dropdown/index.ts +11 -0
  182. package/packages/ui/components/dropdown/src/dropdown.ts +47 -0
  183. package/packages/ui/components/dropdown/src/dropdown.vue +75 -0
  184. package/packages/ui/components/dropdown/styles/dropdown.css +16 -0
  185. package/packages/ui/components/dropdown-button/README.md +78 -0
  186. package/packages/ui/components/dropdown-button/__tests__/dropdown-button.test.ts +75 -0
  187. package/packages/ui/components/dropdown-button/index.ts +11 -0
  188. package/packages/ui/components/dropdown-button/src/dropdown-button-menu-items.vue +79 -0
  189. package/packages/ui/components/dropdown-button/src/dropdown-button.vue +152 -0
  190. package/packages/ui/components/dropdown-button/src/types.ts +98 -0
  191. package/packages/ui/components/dropdown-button/styles/dropdown-button.css +171 -0
  192. package/packages/ui/components/empty/README.md +48 -0
  193. package/packages/ui/components/empty/__tests__/empty.test.ts +37 -0
  194. package/packages/ui/components/empty/index.ts +13 -0
  195. package/packages/ui/components/empty/src/empty.vue +73 -0
  196. package/packages/ui/components/empty/src/types.ts +32 -0
  197. package/packages/ui/components/empty/styles/empty.css +69 -0
  198. package/packages/ui/components/error/README.md +44 -0
  199. package/packages/ui/components/error/__tests__/error.test.ts +34 -0
  200. package/packages/ui/components/error/index.ts +13 -0
  201. package/packages/ui/components/error/src/error.vue +65 -0
  202. package/packages/ui/components/error/src/types.ts +28 -0
  203. package/packages/ui/components/error/styles/error.css +69 -0
  204. package/packages/ui/components/filter-button/README.md +68 -0
  205. package/packages/ui/components/filter-button/__tests__/filter-button.test.ts +30 -0
  206. package/packages/ui/components/filter-button/index.ts +11 -0
  207. package/packages/ui/components/filter-button/src/filter-button.vue +59 -0
  208. package/packages/ui/components/filter-button/src/types.ts +9 -0
  209. package/packages/ui/components/form/README.md +750 -0
  210. package/packages/ui/components/form/__tests__/form-ai-registry-integration.test.ts +214 -0
  211. package/packages/ui/components/form/__tests__/form-field.test.ts +377 -0
  212. package/packages/ui/components/form/__tests__/form-item-ai-actions.test.ts +299 -0
  213. package/packages/ui/components/form/__tests__/form-item.test.ts +110 -0
  214. package/packages/ui/components/form/__tests__/form-wrapper-reject-forward.test.ts +269 -0
  215. package/packages/ui/components/form/__tests__/form.test.ts +148 -0
  216. package/packages/ui/components/form/base/cascader/README.md +75 -0
  217. package/packages/ui/components/form/base/cascader/__tests__/ai-capability.test.ts +507 -0
  218. package/packages/ui/components/form/base/cascader/__tests__/cascader.test.ts +203 -0
  219. package/packages/ui/components/form/base/cascader/index.ts +14 -0
  220. package/packages/ui/components/form/base/cascader/src/cascader.vue +505 -0
  221. package/packages/ui/components/form/base/cascader/src/types.ts +168 -0
  222. package/packages/ui/components/form/base/cascader/styles/cascader.css +186 -0
  223. package/packages/ui/components/form/base/checkbox/README.md +110 -0
  224. package/packages/ui/components/form/base/checkbox/__tests__/ai-capability.test.ts +465 -0
  225. package/packages/ui/components/form/base/checkbox/__tests__/checkbox.test.ts +98 -0
  226. package/packages/ui/components/form/base/checkbox/__tests__/group-integration.test.ts +192 -0
  227. package/packages/ui/components/form/base/checkbox/index.ts +18 -0
  228. package/packages/ui/components/form/base/checkbox/src/checkbox-group.vue +311 -0
  229. package/packages/ui/components/form/base/checkbox/src/checkbox.ts +210 -0
  230. package/packages/ui/components/form/base/checkbox/src/checkbox.vue +368 -0
  231. package/packages/ui/components/form/base/checkbox/styles/checkbox.css +24 -0
  232. package/packages/ui/components/form/base/data-picker/README.md +192 -0
  233. package/packages/ui/components/form/base/data-picker/__tests__/ai-capability.test.ts +566 -0
  234. package/packages/ui/components/form/base/data-picker/__tests__/data-picker.test.ts +628 -0
  235. package/packages/ui/components/form/base/data-picker/index.ts +23 -0
  236. package/packages/ui/components/form/base/data-picker/src/data-picker.ts +192 -0
  237. package/packages/ui/components/form/base/data-picker/src/data-picker.vue +1267 -0
  238. package/packages/ui/components/form/base/data-picker/styles/data-picker.css +174 -0
  239. package/packages/ui/components/form/base/date-picker/README.md +94 -0
  240. package/packages/ui/components/form/base/date-picker/__tests__/ai-capability.test.ts +462 -0
  241. package/packages/ui/components/form/base/date-picker/__tests__/date-picker.test.ts +115 -0
  242. package/packages/ui/components/form/base/date-picker/index.ts +13 -0
  243. package/packages/ui/components/form/base/date-picker/src/date-picker.ts +212 -0
  244. package/packages/ui/components/form/base/date-picker/src/date-picker.vue +871 -0
  245. package/packages/ui/components/form/base/date-picker/styles/date-picker.css +210 -0
  246. package/packages/ui/components/form/base/datetime-picker/README.md +197 -0
  247. package/packages/ui/components/form/base/datetime-picker/__tests__/ai-capability.test.ts +368 -0
  248. package/packages/ui/components/form/base/datetime-picker/__tests__/datetime-picker.test.ts +445 -0
  249. package/packages/ui/components/form/base/datetime-picker/index.ts +13 -0
  250. package/packages/ui/components/form/base/datetime-picker/src/datetime-picker.ts +149 -0
  251. package/packages/ui/components/form/base/datetime-picker/src/datetime-picker.vue +1158 -0
  252. package/packages/ui/components/form/base/datetime-picker/styles/datetime-picker.css +570 -0
  253. package/packages/ui/components/form/base/file-upload/README.md +73 -0
  254. package/packages/ui/components/form/base/file-upload/__tests__/ai-capability.test.ts +223 -0
  255. package/packages/ui/components/form/base/file-upload/__tests__/file-upload.spec.ts +199 -0
  256. package/packages/ui/components/form/base/file-upload/index.ts +11 -0
  257. package/packages/ui/components/form/base/file-upload/src/file-upload.ts +95 -0
  258. package/packages/ui/components/form/base/file-upload/src/file-upload.vue +451 -0
  259. package/packages/ui/components/form/base/file-upload/styles/file-upload.css +57 -0
  260. package/packages/ui/components/form/base/image-upload/README.md +70 -0
  261. package/packages/ui/components/form/base/image-upload/__tests__/ai-capability.test.ts +149 -0
  262. package/packages/ui/components/form/base/image-upload/__tests__/image-upload.spec.ts +282 -0
  263. package/packages/ui/components/form/base/image-upload/index.ts +11 -0
  264. package/packages/ui/components/form/base/image-upload/src/image-upload.ts +76 -0
  265. package/packages/ui/components/form/base/image-upload/src/image-upload.vue +657 -0
  266. package/packages/ui/components/form/base/index.ts +24 -0
  267. package/packages/ui/components/form/base/input/README.md +63 -0
  268. package/packages/ui/components/form/base/input/__tests__/ai-capability.test.ts +143 -0
  269. package/packages/ui/components/form/base/input/__tests__/input.test.ts +195 -0
  270. package/packages/ui/components/form/base/input/index.ts +37 -0
  271. package/packages/ui/components/form/base/input/src/input.ts +104 -0
  272. package/packages/ui/components/form/base/input/src/input.vue +384 -0
  273. package/packages/ui/components/form/base/input/styles/input.css +198 -0
  274. package/packages/ui/components/form/base/location-picker/README.md +92 -0
  275. package/packages/ui/components/form/base/location-picker/__tests__/ai-capability.test.ts +147 -0
  276. package/packages/ui/components/form/base/location-picker/__tests__/location-picker.test.ts +161 -0
  277. package/packages/ui/components/form/base/location-picker/index.ts +13 -0
  278. package/packages/ui/components/form/base/location-picker/src/location-picker.ts +99 -0
  279. package/packages/ui/components/form/base/location-picker/src/location-picker.vue +558 -0
  280. package/packages/ui/components/form/base/radio/README.md +95 -0
  281. package/packages/ui/components/form/base/radio/__tests__/ai-capability.test.ts +578 -0
  282. package/packages/ui/components/form/base/radio/__tests__/group-integration.test.ts +191 -0
  283. package/packages/ui/components/form/base/radio/__tests__/radio.test.ts +64 -0
  284. package/packages/ui/components/form/base/radio/index.ts +18 -0
  285. package/packages/ui/components/form/base/radio/src/radio-group.vue +270 -0
  286. package/packages/ui/components/form/base/radio/src/radio.ts +154 -0
  287. package/packages/ui/components/form/base/radio/src/radio.vue +141 -0
  288. package/packages/ui/components/form/base/radio/styles/radio.css +12 -0
  289. package/packages/ui/components/form/base/region-picker/README.md +166 -0
  290. package/packages/ui/components/form/base/region-picker/__tests__/ai-capability.test.ts +147 -0
  291. package/packages/ui/components/form/base/region-picker/__tests__/region-picker.spec.ts +556 -0
  292. package/packages/ui/components/form/base/region-picker/index.ts +19 -0
  293. package/packages/ui/components/form/base/region-picker/src/region-picker.ts +333 -0
  294. package/packages/ui/components/form/base/region-picker/src/region-picker.vue +552 -0
  295. package/packages/ui/components/form/base/select/README.md +66 -0
  296. package/packages/ui/components/form/base/select/__tests__/ai-capability.test.ts +463 -0
  297. package/packages/ui/components/form/base/select/__tests__/select.test.ts +167 -0
  298. package/packages/ui/components/form/base/select/index.ts +15 -0
  299. package/packages/ui/components/form/base/select/src/select.ts +173 -0
  300. package/packages/ui/components/form/base/select/src/select.vue +534 -0
  301. package/packages/ui/components/form/base/select/styles/select.css +206 -0
  302. package/packages/ui/components/form/base/signature/README.md +96 -0
  303. package/packages/ui/components/form/base/signature/__tests__/ai-capability.test.ts +147 -0
  304. package/packages/ui/components/form/base/signature/__tests__/signature.spec.ts +156 -0
  305. package/packages/ui/components/form/base/signature/index.ts +14 -0
  306. package/packages/ui/components/form/base/signature/src/signature.ts +100 -0
  307. package/packages/ui/components/form/base/signature/src/signature.vue +871 -0
  308. package/packages/ui/components/form/base/switch/README.md +102 -0
  309. package/packages/ui/components/form/base/switch/__tests__/ai-capability.test.ts +545 -0
  310. package/packages/ui/components/form/base/switch/__tests__/switch.test.ts +105 -0
  311. package/packages/ui/components/form/base/switch/index.ts +12 -0
  312. package/packages/ui/components/form/base/switch/src/switch.ts +133 -0
  313. package/packages/ui/components/form/base/switch/src/switch.vue +385 -0
  314. package/packages/ui/components/form/base/switch/styles/switch.css +35 -0
  315. package/packages/ui/components/form/base/text-area/README.md +89 -0
  316. package/packages/ui/components/form/base/text-area/__tests__/ai-capability.test.ts +176 -0
  317. package/packages/ui/components/form/base/text-area/__tests__/text-area.test.ts +152 -0
  318. package/packages/ui/components/form/base/text-area/index.ts +37 -0
  319. package/packages/ui/components/form/base/text-area/src/text-area.ts +137 -0
  320. package/packages/ui/components/form/base/text-area/src/text-area.vue +405 -0
  321. package/packages/ui/components/form/base/text-area/styles/text-area.css +137 -0
  322. package/packages/ui/components/form/base/time-picker/README.md +75 -0
  323. package/packages/ui/components/form/base/time-picker/__tests__/ai-capability.test.ts +135 -0
  324. package/packages/ui/components/form/base/time-picker/__tests__/time-picker.test.ts +258 -0
  325. package/packages/ui/components/form/base/time-picker/index.ts +13 -0
  326. package/packages/ui/components/form/base/time-picker/src/time-picker.ts +141 -0
  327. package/packages/ui/components/form/base/time-picker/src/time-picker.vue +844 -0
  328. package/packages/ui/components/form/base/time-picker/styles/time-picker.css +124 -0
  329. package/packages/ui/components/form/base/upload/README.md +126 -0
  330. package/packages/ui/components/form/base/upload/__tests__/ai-capability.test.ts +145 -0
  331. package/packages/ui/components/form/base/upload/__tests__/upload.spec.ts +288 -0
  332. package/packages/ui/components/form/base/upload/index.ts +11 -0
  333. package/packages/ui/components/form/base/upload/src/upload.ts +171 -0
  334. package/packages/ui/components/form/base/upload/src/upload.vue +890 -0
  335. package/packages/ui/components/form/base/upload/styles/upload.css +116 -0
  336. package/packages/ui/components/form/index.ts +138 -0
  337. package/packages/ui/components/form/items/form-array/README.md +61 -0
  338. package/packages/ui/components/form/items/form-array/__tests__/form-array.test.ts +122 -0
  339. package/packages/ui/components/form/items/form-array/index.ts +2 -0
  340. package/packages/ui/components/form/items/form-array/src/form-array.vue +80 -0
  341. package/packages/ui/components/form/items/form-array/src/types.ts +27 -0
  342. package/packages/ui/components/form/items/form-array/styles/form-array.css +99 -0
  343. package/packages/ui/components/form/items/form-cascader/README.md +132 -0
  344. package/packages/ui/components/form/items/form-cascader/__tests__/form-cascader.test.ts +99 -0
  345. package/packages/ui/components/form/items/form-cascader/index.ts +1 -0
  346. package/packages/ui/components/form/items/form-cascader/src/form-cascader.ts +7 -0
  347. package/packages/ui/components/form/items/form-cascader/src/form-cascader.vue +15 -0
  348. package/packages/ui/components/form/items/form-checkbox/README.md +121 -0
  349. package/packages/ui/components/form/items/form-checkbox/__tests__/form-checkbox.test.ts +93 -0
  350. package/packages/ui/components/form/items/form-checkbox/index.ts +1 -0
  351. package/packages/ui/components/form/items/form-checkbox/src/form-checkbox.ts +7 -0
  352. package/packages/ui/components/form/items/form-checkbox/src/form-checkbox.vue +15 -0
  353. package/packages/ui/components/form/items/form-data-picker/README.md +111 -0
  354. package/packages/ui/components/form/items/form-data-picker/__tests__/form-data-picker.test.ts +98 -0
  355. package/packages/ui/components/form/items/form-data-picker/index.ts +1 -0
  356. package/packages/ui/components/form/items/form-data-picker/src/form-data-picker.ts +7 -0
  357. package/packages/ui/components/form/items/form-data-picker/src/form-data-picker.vue +17 -0
  358. package/packages/ui/components/form/items/form-date-picker/README.md +119 -0
  359. package/packages/ui/components/form/items/form-date-picker/__tests__/form-date-picker.test.ts +104 -0
  360. package/packages/ui/components/form/items/form-date-picker/index.ts +1 -0
  361. package/packages/ui/components/form/items/form-date-picker/src/form-date-picker.ts +7 -0
  362. package/packages/ui/components/form/items/form-date-picker/src/form-date-picker.vue +17 -0
  363. package/packages/ui/components/form/items/form-datetime-picker/README.md +112 -0
  364. package/packages/ui/components/form/items/form-datetime-picker/__tests__/form-datetime-picker.test.ts +105 -0
  365. package/packages/ui/components/form/items/form-datetime-picker/index.ts +1 -0
  366. package/packages/ui/components/form/items/form-datetime-picker/src/form-datetime-picker.ts +7 -0
  367. package/packages/ui/components/form/items/form-datetime-picker/src/form-datetime-picker.vue +17 -0
  368. package/packages/ui/components/form/items/form-dynamic/README.md +105 -0
  369. package/packages/ui/components/form/items/form-dynamic/__tests__/form-dynamic.test.ts +172 -0
  370. package/packages/ui/components/form/items/form-dynamic/index.ts +2 -0
  371. package/packages/ui/components/form/items/form-dynamic/src/form-dynamic.vue +222 -0
  372. package/packages/ui/components/form/items/form-dynamic/src/types.ts +63 -0
  373. package/packages/ui/components/form/items/form-file-upload/README.md +92 -0
  374. package/packages/ui/components/form/items/form-file-upload/__tests__/form-file-upload.test.ts +99 -0
  375. package/packages/ui/components/form/items/form-file-upload/index.ts +1 -0
  376. package/packages/ui/components/form/items/form-file-upload/src/form-file-upload.ts +7 -0
  377. package/packages/ui/components/form/items/form-file-upload/src/form-file-upload.vue +15 -0
  378. package/packages/ui/components/form/items/form-group/README.md +57 -0
  379. package/packages/ui/components/form/items/form-group/__tests__/form-group.test.ts +108 -0
  380. package/packages/ui/components/form/items/form-group/index.ts +2 -0
  381. package/packages/ui/components/form/items/form-group/src/form-group.vue +85 -0
  382. package/packages/ui/components/form/items/form-group/src/types.ts +37 -0
  383. package/packages/ui/components/form/items/form-group/styles/form-group.css +92 -0
  384. package/packages/ui/components/form/items/form-image-upload/README.md +92 -0
  385. package/packages/ui/components/form/items/form-image-upload/__tests__/form-image-upload.test.ts +109 -0
  386. package/packages/ui/components/form/items/form-image-upload/index.ts +1 -0
  387. package/packages/ui/components/form/items/form-image-upload/src/form-image-upload.ts +7 -0
  388. package/packages/ui/components/form/items/form-image-upload/src/form-image-upload.vue +37 -0
  389. package/packages/ui/components/form/items/form-input/README.md +110 -0
  390. package/packages/ui/components/form/items/form-input/__tests__/form-input.test.ts +87 -0
  391. package/packages/ui/components/form/items/form-input/index.ts +1 -0
  392. package/packages/ui/components/form/items/form-input/src/form-input.ts +7 -0
  393. package/packages/ui/components/form/items/form-input/src/form-input.vue +15 -0
  394. package/packages/ui/components/form/items/form-location-picker/README.md +119 -0
  395. package/packages/ui/components/form/items/form-location-picker/__tests__/form-location-picker.test.ts +98 -0
  396. package/packages/ui/components/form/items/form-location-picker/index.ts +1 -0
  397. package/packages/ui/components/form/items/form-location-picker/src/form-location-picker.ts +7 -0
  398. package/packages/ui/components/form/items/form-location-picker/src/form-location-picker.vue +15 -0
  399. package/packages/ui/components/form/items/form-radio/README.md +125 -0
  400. package/packages/ui/components/form/items/form-radio/__tests__/form-radio.test.ts +104 -0
  401. package/packages/ui/components/form/items/form-radio/index.ts +1 -0
  402. package/packages/ui/components/form/items/form-radio/src/form-radio.ts +7 -0
  403. package/packages/ui/components/form/items/form-radio/src/form-radio.vue +15 -0
  404. package/packages/ui/components/form/items/form-region-picker/README.md +111 -0
  405. package/packages/ui/components/form/items/form-region-picker/__tests__/form-region-picker.test.ts +95 -0
  406. package/packages/ui/components/form/items/form-region-picker/index.ts +1 -0
  407. package/packages/ui/components/form/items/form-region-picker/src/form-region-picker.ts +7 -0
  408. package/packages/ui/components/form/items/form-region-picker/src/form-region-picker.vue +15 -0
  409. package/packages/ui/components/form/items/form-select/README.md +117 -0
  410. package/packages/ui/components/form/items/form-select/__tests__/form-select.test.ts +80 -0
  411. package/packages/ui/components/form/items/form-select/index.ts +1 -0
  412. package/packages/ui/components/form/items/form-select/src/form-select.ts +7 -0
  413. package/packages/ui/components/form/items/form-select/src/form-select.vue +15 -0
  414. package/packages/ui/components/form/items/form-signature/README.md +89 -0
  415. package/packages/ui/components/form/items/form-signature/__tests__/form-signature.test.ts +109 -0
  416. package/packages/ui/components/form/items/form-signature/index.ts +1 -0
  417. package/packages/ui/components/form/items/form-signature/src/form-signature.ts +7 -0
  418. package/packages/ui/components/form/items/form-signature/src/form-signature.vue +15 -0
  419. package/packages/ui/components/form/items/form-slider/README.md +125 -0
  420. package/packages/ui/components/form/items/form-slider/__tests__/form-slider.test.ts +95 -0
  421. package/packages/ui/components/form/items/form-slider/index.ts +1 -0
  422. package/packages/ui/components/form/items/form-slider/src/form-slider.ts +7 -0
  423. package/packages/ui/components/form/items/form-slider/src/form-slider.vue +15 -0
  424. package/packages/ui/components/form/items/form-subform/README.md +71 -0
  425. package/packages/ui/components/form/items/form-subform/__tests__/form-subform.test.ts +116 -0
  426. package/packages/ui/components/form/items/form-subform/index.ts +2 -0
  427. package/packages/ui/components/form/items/form-subform/src/form-subform.vue +92 -0
  428. package/packages/ui/components/form/items/form-subform/src/types.ts +32 -0
  429. package/packages/ui/components/form/items/form-subform/styles/form-subform.css +127 -0
  430. package/packages/ui/components/form/items/form-switch/README.md +118 -0
  431. package/packages/ui/components/form/items/form-switch/__tests__/form-switch.test.ts +88 -0
  432. package/packages/ui/components/form/items/form-switch/index.ts +1 -0
  433. package/packages/ui/components/form/items/form-switch/src/form-switch.ts +7 -0
  434. package/packages/ui/components/form/items/form-switch/src/form-switch.vue +15 -0
  435. package/packages/ui/components/form/items/form-table/OPTIMIZATION_REPORT.md +205 -0
  436. package/packages/ui/components/form/items/form-table/README.md +144 -0
  437. package/packages/ui/components/form/items/form-table/__tests__/form-table.test.ts +373 -0
  438. package/packages/ui/components/form/items/form-table/index.ts +3 -0
  439. package/packages/ui/components/form/items/form-table/src/column-filter-popover.vue +149 -0
  440. package/packages/ui/components/form/items/form-table/src/form-table.vue +1315 -0
  441. package/packages/ui/components/form/items/form-table/src/types.ts +165 -0
  442. package/packages/ui/components/form/items/form-table/styles/column-filter-popover.css +138 -0
  443. package/packages/ui/components/form/items/form-table/styles/form-table.css +393 -0
  444. package/packages/ui/components/form/items/form-textarea/README.md +123 -0
  445. package/packages/ui/components/form/items/form-textarea/__tests__/form-textarea.test.ts +93 -0
  446. package/packages/ui/components/form/items/form-textarea/index.ts +1 -0
  447. package/packages/ui/components/form/items/form-textarea/src/form-textarea.ts +7 -0
  448. package/packages/ui/components/form/items/form-textarea/src/form-textarea.vue +15 -0
  449. package/packages/ui/components/form/items/form-time-picker/README.md +117 -0
  450. package/packages/ui/components/form/items/form-time-picker/__tests__/form-time-picker.test.ts +105 -0
  451. package/packages/ui/components/form/items/form-time-picker/index.ts +1 -0
  452. package/packages/ui/components/form/items/form-time-picker/src/form-time-picker.ts +7 -0
  453. package/packages/ui/components/form/items/form-time-picker/src/form-time-picker.vue +17 -0
  454. package/packages/ui/components/form/items/form-upload/README.md +92 -0
  455. package/packages/ui/components/form/items/form-upload/__tests__/form-upload.test.ts +137 -0
  456. package/packages/ui/components/form/items/form-upload/index.ts +1 -0
  457. package/packages/ui/components/form/items/form-upload/src/form-upload.ts +7 -0
  458. package/packages/ui/components/form/items/form-upload/src/form-upload.vue +15 -0
  459. package/packages/ui/components/form/shared/types.ts +82 -0
  460. package/packages/ui/components/form/src/form-field.ts +96 -0
  461. package/packages/ui/components/form/src/form-field.vue +404 -0
  462. package/packages/ui/components/form/src/form-item.vue +646 -0
  463. package/packages/ui/components/form/src/form.ts +11 -0
  464. package/packages/ui/components/form/src/form.vue +156 -0
  465. package/packages/ui/components/form/src/types.ts +337 -0
  466. package/packages/ui/components/form/src/use-form-field.ts +190 -0
  467. package/packages/ui/components/form/styles/form-ai-actions.css +41 -0
  468. package/packages/ui/components/form/styles/form-field.css +123 -0
  469. package/packages/ui/components/form/styles/form-item-ai-status.css +212 -0
  470. package/packages/ui/components/form/styles/form-item.css +218 -0
  471. package/packages/ui/components/form/styles/form.css +132 -0
  472. package/packages/ui/components/form-ai-status/README.md +86 -0
  473. package/packages/ui/components/form-ai-status/__tests__/form-ai-status.test.ts +183 -0
  474. package/packages/ui/components/form-ai-status/index.ts +12 -0
  475. package/packages/ui/components/form-ai-status/src/form-ai-status.vue +254 -0
  476. package/packages/ui/components/form-ai-status/src/types.ts +36 -0
  477. package/packages/ui/components/form-ai-status/styles/form-ai-status.css +238 -0
  478. package/packages/ui/components/form-ai-toolbar/README.md +100 -0
  479. package/packages/ui/components/form-ai-toolbar/__tests__/form-ai-toolbar.test.ts +344 -0
  480. package/packages/ui/components/form-ai-toolbar/index.ts +13 -0
  481. package/packages/ui/components/form-ai-toolbar/src/form-ai-toolbar.vue +598 -0
  482. package/packages/ui/components/form-ai-toolbar/src/types.ts +130 -0
  483. package/packages/ui/components/form-ai-toolbar/styles/form-ai-toolbar.css +281 -0
  484. package/packages/ui/components/icon/README.md +137 -0
  485. package/packages/ui/components/icon/__tests__/icon.test.ts +125 -0
  486. package/packages/ui/components/icon/index.ts +13 -0
  487. package/packages/ui/components/icon/src/icon.ts +67 -0
  488. package/packages/ui/components/icon/src/icon.vue +69 -0
  489. package/packages/ui/components/icon/styles/icon.css +41 -0
  490. package/packages/ui/components/image-preview/README.md +90 -0
  491. package/packages/ui/components/image-preview/__tests__/image-preview.test.ts +183 -0
  492. package/packages/ui/components/image-preview/index.ts +13 -0
  493. package/packages/ui/components/image-preview/src/image-preview.vue +71 -0
  494. package/packages/ui/components/image-preview/src/index.ts +11 -0
  495. package/packages/ui/components/image-preview/src/preview-layer.vue +90 -0
  496. package/packages/ui/components/image-preview/src/types.ts +63 -0
  497. package/packages/ui/components/image-preview/styles/image-preview.css +39 -0
  498. package/packages/ui/components/layout/app-bar/README.md +59 -0
  499. package/packages/ui/components/layout/app-bar/__tests__/app-bar.test.ts +124 -0
  500. package/packages/ui/components/layout/app-bar/index.ts +13 -0
  501. package/packages/ui/components/layout/app-bar/src/app-bar.vue +106 -0
  502. package/packages/ui/components/layout/app-bar/src/types.ts +43 -0
  503. package/packages/ui/components/layout/app-bar/styles/app-bar.css +175 -0
  504. package/packages/ui/components/layout/card/README.md +90 -0
  505. package/packages/ui/components/layout/card/__tests__/card.test.ts +321 -0
  506. package/packages/ui/components/layout/card/index.ts +13 -0
  507. package/packages/ui/components/layout/card/src/card.vue +210 -0
  508. package/packages/ui/components/layout/card/src/types.ts +79 -0
  509. package/packages/ui/components/layout/card/styles/card.css +334 -0
  510. package/packages/ui/components/layout/container/README.md +29 -0
  511. package/packages/ui/components/layout/container/__tests__/container.test.ts +74 -0
  512. package/packages/ui/components/layout/container/index.ts +13 -0
  513. package/packages/ui/components/layout/container/src/container.vue +35 -0
  514. package/packages/ui/components/layout/container/src/types.ts +15 -0
  515. package/packages/ui/components/layout/container/styles/container.css +50 -0
  516. package/packages/ui/components/layout/detail-layout/README.md +30 -0
  517. package/packages/ui/components/layout/detail-layout/__tests__/detail-layout.test.ts +75 -0
  518. package/packages/ui/components/layout/detail-layout/index.ts +13 -0
  519. package/packages/ui/components/layout/detail-layout/src/detail-layout.vue +53 -0
  520. package/packages/ui/components/layout/detail-layout/src/types.ts +22 -0
  521. package/packages/ui/components/layout/detail-layout/styles/detail-layout.css +71 -0
  522. package/packages/ui/components/layout/form-layout/README.md +59 -0
  523. package/packages/ui/components/layout/form-layout/__tests__/form-layout.test.ts +140 -0
  524. package/packages/ui/components/layout/form-layout/index.ts +13 -0
  525. package/packages/ui/components/layout/form-layout/src/form-layout.vue +93 -0
  526. package/packages/ui/components/layout/form-layout/src/types.ts +64 -0
  527. package/packages/ui/components/layout/form-layout/styles/form-layout.css +98 -0
  528. package/packages/ui/components/layout/grid/README.md +41 -0
  529. package/packages/ui/components/layout/grid/__tests__/grid.test.ts +77 -0
  530. package/packages/ui/components/layout/grid/index.ts +13 -0
  531. package/packages/ui/components/layout/grid/src/grid.vue +79 -0
  532. package/packages/ui/components/layout/grid/src/types.ts +44 -0
  533. package/packages/ui/components/layout/grid/styles/grid.css +46 -0
  534. package/packages/ui/components/layout/hero/README.md +59 -0
  535. package/packages/ui/components/layout/hero/__tests__/hero.test.ts +112 -0
  536. package/packages/ui/components/layout/hero/index.ts +13 -0
  537. package/packages/ui/components/layout/hero/src/hero.vue +143 -0
  538. package/packages/ui/components/layout/hero/src/types.ts +44 -0
  539. package/packages/ui/components/layout/hero/styles/hero.css +129 -0
  540. package/packages/ui/components/layout/inline/README.md +30 -0
  541. package/packages/ui/components/layout/inline/__tests__/inline.test.ts +154 -0
  542. package/packages/ui/components/layout/inline/index.ts +13 -0
  543. package/packages/ui/components/layout/inline/src/inline.vue +99 -0
  544. package/packages/ui/components/layout/inline/src/types.ts +23 -0
  545. package/packages/ui/components/layout/inline/styles/inline.css +150 -0
  546. package/packages/ui/components/layout/master-detail/README.md +36 -0
  547. package/packages/ui/components/layout/master-detail/__tests__/master-detail.test.ts +104 -0
  548. package/packages/ui/components/layout/master-detail/index.ts +13 -0
  549. package/packages/ui/components/layout/master-detail/src/master-detail.vue +72 -0
  550. package/packages/ui/components/layout/master-detail/src/types.ts +28 -0
  551. package/packages/ui/components/layout/master-detail/styles/master-detail.css +82 -0
  552. package/packages/ui/components/layout/page/README.md +35 -0
  553. package/packages/ui/components/layout/page/__tests__/page.test.ts +136 -0
  554. package/packages/ui/components/layout/page/index.ts +13 -0
  555. package/packages/ui/components/layout/page/src/page.vue +85 -0
  556. package/packages/ui/components/layout/page/src/types.ts +39 -0
  557. package/packages/ui/components/layout/page/styles/page.css +177 -0
  558. package/packages/ui/components/layout/page-header/README.md +39 -0
  559. package/packages/ui/components/layout/page-header/__tests__/page-header.test.ts +198 -0
  560. package/packages/ui/components/layout/page-header/index.ts +13 -0
  561. package/packages/ui/components/layout/page-header/src/page-header.vue +133 -0
  562. package/packages/ui/components/layout/page-header/src/types.ts +56 -0
  563. package/packages/ui/components/layout/page-header/styles/page-header.css +155 -0
  564. package/packages/ui/components/layout/section/README.md +40 -0
  565. package/packages/ui/components/layout/section/__tests__/section.test.ts +121 -0
  566. package/packages/ui/components/layout/section/index.ts +13 -0
  567. package/packages/ui/components/layout/section/src/section.vue +79 -0
  568. package/packages/ui/components/layout/section/src/types.ts +28 -0
  569. package/packages/ui/components/layout/section/styles/section.css +103 -0
  570. package/packages/ui/components/layout/sidebar-layout/README.md +60 -0
  571. package/packages/ui/components/layout/sidebar-layout/__tests__/sidebar-layout.test.ts +220 -0
  572. package/packages/ui/components/layout/sidebar-layout/index.ts +13 -0
  573. package/packages/ui/components/layout/sidebar-layout/src/sidebar-layout.vue +113 -0
  574. package/packages/ui/components/layout/sidebar-layout/src/types.ts +54 -0
  575. package/packages/ui/components/layout/sidebar-layout/styles/sidebar-layout.css +211 -0
  576. package/packages/ui/components/layout/split/README.md +40 -0
  577. package/packages/ui/components/layout/split/__tests__/split.test.ts +99 -0
  578. package/packages/ui/components/layout/split/index.ts +13 -0
  579. package/packages/ui/components/layout/split/src/split.vue +65 -0
  580. package/packages/ui/components/layout/split/src/types.ts +49 -0
  581. package/packages/ui/components/layout/split/styles/split.css +40 -0
  582. package/packages/ui/components/layout/stack/README.md +29 -0
  583. package/packages/ui/components/layout/stack/__tests__/stack.test.ts +66 -0
  584. package/packages/ui/components/layout/stack/index.ts +13 -0
  585. package/packages/ui/components/layout/stack/src/stack.vue +31 -0
  586. package/packages/ui/components/layout/stack/src/types.ts +14 -0
  587. package/packages/ui/components/layout/stack/styles/stack.css +61 -0
  588. package/packages/ui/components/layout/state-container/README.md +45 -0
  589. package/packages/ui/components/layout/state-container/__tests__/state-container.test.ts +123 -0
  590. package/packages/ui/components/layout/state-container/index.ts +13 -0
  591. package/packages/ui/components/layout/state-container/src/state-container.vue +72 -0
  592. package/packages/ui/components/layout/state-container/src/types.ts +46 -0
  593. package/packages/ui/components/layout/state-container/styles/state-container.css +71 -0
  594. package/packages/ui/components/layout/toolbar/README.md +34 -0
  595. package/packages/ui/components/layout/toolbar/__tests__/toolbar.test.ts +90 -0
  596. package/packages/ui/components/layout/toolbar/index.ts +13 -0
  597. package/packages/ui/components/layout/toolbar/src/toolbar.vue +50 -0
  598. package/packages/ui/components/layout/toolbar/src/types.ts +19 -0
  599. package/packages/ui/components/layout/toolbar/styles/toolbar.css +80 -0
  600. package/packages/ui/components/loading/README.md +39 -0
  601. package/packages/ui/components/loading/__tests__/loading.test.ts +37 -0
  602. package/packages/ui/components/loading/index.ts +13 -0
  603. package/packages/ui/components/loading/src/loading.vue +59 -0
  604. package/packages/ui/components/loading/src/types.ts +27 -0
  605. package/packages/ui/components/loading/styles/loading.css +59 -0
  606. package/packages/ui/components/menu/README.md +51 -0
  607. package/packages/ui/components/menu/__tests__/menu.test.ts +80 -0
  608. package/packages/ui/components/menu/index.ts +11 -0
  609. package/packages/ui/components/menu/src/menu.ts +49 -0
  610. package/packages/ui/components/menu/src/menu.vue +103 -0
  611. package/packages/ui/components/menu/styles/menu.css +19 -0
  612. package/packages/ui/components/message/README.md +69 -0
  613. package/packages/ui/components/message/__tests__/message.test.ts +98 -0
  614. package/packages/ui/components/message/index.ts +13 -0
  615. package/packages/ui/components/message/src/message.ts +87 -0
  616. package/packages/ui/components/message/src/message.vue +88 -0
  617. package/packages/ui/components/message/styles/message.css +70 -0
  618. package/packages/ui/components/metric/README.md +63 -0
  619. package/packages/ui/components/metric/__tests__/metric.test.ts +166 -0
  620. package/packages/ui/components/metric/index.ts +13 -0
  621. package/packages/ui/components/metric/src/metric.vue +107 -0
  622. package/packages/ui/components/metric/src/types.ts +50 -0
  623. package/packages/ui/components/metric/styles/metric.css +233 -0
  624. package/packages/ui/components/modal/README.md +91 -0
  625. package/packages/ui/components/modal/__tests__/modal.test.ts +145 -0
  626. package/packages/ui/components/modal/index.ts +13 -0
  627. package/packages/ui/components/modal/src/modal.ts +153 -0
  628. package/packages/ui/components/modal/src/modal.vue +234 -0
  629. package/packages/ui/components/modal/styles/modal.css +104 -0
  630. package/packages/ui/components/more-action-button/README.md +68 -0
  631. package/packages/ui/components/more-action-button/__tests__/more-action-button.test.ts +30 -0
  632. package/packages/ui/components/more-action-button/index.ts +11 -0
  633. package/packages/ui/components/more-action-button/src/more-action-button.vue +59 -0
  634. package/packages/ui/components/more-action-button/src/types.ts +9 -0
  635. package/packages/ui/components/navigation/side-nav/README.md +59 -0
  636. package/packages/ui/components/navigation/side-nav/__tests__/side-nav.test.ts +105 -0
  637. package/packages/ui/components/navigation/side-nav/index.ts +13 -0
  638. package/packages/ui/components/navigation/side-nav/src/side-nav.vue +147 -0
  639. package/packages/ui/components/navigation/side-nav/src/types.ts +50 -0
  640. package/packages/ui/components/navigation/side-nav/styles/side-nav.css +171 -0
  641. package/packages/ui/components/notification/README.md +82 -0
  642. package/packages/ui/components/notification/__tests__/notification.test.ts +150 -0
  643. package/packages/ui/components/notification/index.ts +30 -0
  644. package/packages/ui/components/notification/src/notification.vue +114 -0
  645. package/packages/ui/components/notification/src/types.ts +67 -0
  646. package/packages/ui/components/notification/src/use-notification.ts +136 -0
  647. package/packages/ui/components/notification/styles/notification.css +4 -0
  648. package/packages/ui/components/pagination/README.md +82 -0
  649. package/packages/ui/components/pagination/__tests__/pagination.test.ts +210 -0
  650. package/packages/ui/components/pagination/index.ts +13 -0
  651. package/packages/ui/components/pagination/src/pagination.ts +86 -0
  652. package/packages/ui/components/pagination/src/pagination.vue +270 -0
  653. package/packages/ui/components/pagination/styles/pagination.css +143 -0
  654. package/packages/ui/components/progress/README.md +132 -0
  655. package/packages/ui/components/progress/__tests__/progress.test.ts +81 -0
  656. package/packages/ui/components/progress/index.ts +12 -0
  657. package/packages/ui/components/progress/src/progress.ts +80 -0
  658. package/packages/ui/components/progress/src/progress.vue +202 -0
  659. package/packages/ui/components/skeleton/README.md +71 -0
  660. package/packages/ui/components/skeleton/__tests__/skeleton.test.ts +138 -0
  661. package/packages/ui/components/skeleton/index.ts +13 -0
  662. package/packages/ui/components/skeleton/src/skeleton.ts +46 -0
  663. package/packages/ui/components/skeleton/src/skeleton.vue +67 -0
  664. package/packages/ui/components/skeleton/styles/skeleton.css +75 -0
  665. package/packages/ui/components/slider/README.md +87 -0
  666. package/packages/ui/components/slider/__tests__/ai-capability.test.ts +469 -0
  667. package/packages/ui/components/slider/__tests__/slider.test.ts +235 -0
  668. package/packages/ui/components/slider/index.ts +26 -0
  669. package/packages/ui/components/slider/src/slider.ts +192 -0
  670. package/packages/ui/components/slider/src/slider.vue +504 -0
  671. package/packages/ui/components/slider/src/use-slider.ts +399 -0
  672. package/packages/ui/components/slider/styles/slider.css +344 -0
  673. package/packages/ui/components/split-button/README.md +71 -0
  674. package/packages/ui/components/split-button/__tests__/split-button.test.ts +32 -0
  675. package/packages/ui/components/split-button/index.ts +11 -0
  676. package/packages/ui/components/split-button/src/split-button.vue +69 -0
  677. package/packages/ui/components/split-button/src/types.ts +34 -0
  678. package/packages/ui/components/split-button/styles/split-button.css +15 -0
  679. package/packages/ui/components/status-dot/README.md +42 -0
  680. package/packages/ui/components/status-dot/__tests__/status-dot.test.ts +53 -0
  681. package/packages/ui/components/status-dot/index.ts +13 -0
  682. package/packages/ui/components/status-dot/src/status-dot.vue +39 -0
  683. package/packages/ui/components/status-dot/src/types.ts +23 -0
  684. package/packages/ui/components/status-dot/styles/status-dot.css +65 -0
  685. package/packages/ui/components/steps/README.md +101 -0
  686. package/packages/ui/components/steps/__tests__/steps.test.ts +261 -0
  687. package/packages/ui/components/steps/index.ts +15 -0
  688. package/packages/ui/components/steps/src/step.vue +99 -0
  689. package/packages/ui/components/steps/src/steps.ts +93 -0
  690. package/packages/ui/components/steps/src/steps.vue +143 -0
  691. package/packages/ui/components/steps/styles/step.css +116 -0
  692. package/packages/ui/components/steps/styles/steps.css +200 -0
  693. package/packages/ui/components/table/README.md +81 -0
  694. package/packages/ui/components/table/__tests__/table.test.ts +162 -0
  695. package/packages/ui/components/table/index.ts +13 -0
  696. package/packages/ui/components/table/src/table.ts +195 -0
  697. package/packages/ui/components/table/src/table.vue +453 -0
  698. package/packages/ui/components/table/styles/table.css +88 -0
  699. package/packages/ui/components/tabs/README.md +88 -0
  700. package/packages/ui/components/tabs/__tests__/tabs.test.ts +161 -0
  701. package/packages/ui/components/tabs/index.ts +19 -0
  702. package/packages/ui/components/tabs/src/tab-pane.ts +18 -0
  703. package/packages/ui/components/tabs/src/tab-pane.vue +11 -0
  704. package/packages/ui/components/tabs/src/tabs-content.vue +58 -0
  705. package/packages/ui/components/tabs/src/tabs-list.vue +36 -0
  706. package/packages/ui/components/tabs/src/tabs-trigger.vue +70 -0
  707. package/packages/ui/components/tabs/src/tabs.ts +94 -0
  708. package/packages/ui/components/tabs/src/tabs.vue +101 -0
  709. package/packages/ui/components/tabs/src/types.ts +126 -0
  710. package/packages/ui/components/tabs/styles/tabs.css +239 -0
  711. package/packages/ui/components/tag/README.md +67 -0
  712. package/packages/ui/components/tag/__tests__/tag.test.ts +222 -0
  713. package/packages/ui/components/tag/index.ts +13 -0
  714. package/packages/ui/components/tag/src/tag.ts +87 -0
  715. package/packages/ui/components/tag/src/tag.vue +163 -0
  716. package/packages/ui/components/tag/styles/tag.css +47 -0
  717. package/packages/ui/components/timeline/README.md +80 -0
  718. package/packages/ui/components/timeline/__tests__/timeline.test.ts +78 -0
  719. package/packages/ui/components/timeline/index.ts +15 -0
  720. package/packages/ui/components/timeline/src/timeline-item.vue +38 -0
  721. package/packages/ui/components/timeline/src/timeline.ts +76 -0
  722. package/packages/ui/components/timeline/src/timeline.vue +30 -0
  723. package/packages/ui/components/timeline/styles/timeline-item.css +49 -0
  724. package/packages/ui/components/timeline/styles/timeline.css +43 -0
  725. package/packages/ui/components/tooltip/README.md +134 -0
  726. package/packages/ui/components/tooltip/__tests__/tooltip.test.ts +125 -0
  727. package/packages/ui/components/tooltip/index.ts +12 -0
  728. package/packages/ui/components/tooltip/src/tooltip.ts +66 -0
  729. package/packages/ui/components/tooltip/src/tooltip.vue +189 -0
  730. package/packages/ui/components/tree/README.md +54 -0
  731. package/packages/ui/components/tree/__tests__/tree.test.ts +80 -0
  732. package/packages/ui/components/tree/index.ts +11 -0
  733. package/packages/ui/components/tree/src/tree.ts +51 -0
  734. package/packages/ui/components/tree/src/tree.vue +242 -0
  735. package/packages/ui/components/tree/styles/tree.css +31 -0
  736. package/packages/ui/components/typography/README.md +120 -0
  737. package/packages/ui/components/typography/__tests__/typography.test.ts +164 -0
  738. package/packages/ui/components/typography/index.ts +13 -0
  739. package/packages/ui/components/typography/src/typography.ts +95 -0
  740. package/packages/ui/components/typography/src/typography.vue +94 -0
  741. package/packages/ui/components/typography/styles/typography.css +47 -0
  742. package/packages/ui/components/upload/README.md +103 -0
  743. package/packages/ui/components/upload/__tests__/upload.test.ts +181 -0
  744. package/packages/ui/components/upload/index.ts +11 -0
  745. package/packages/ui/components/upload/src/upload.ts +92 -0
  746. package/packages/ui/components/upload/src/upload.vue +382 -0
  747. package/packages/ui/components/upload/styles/upload.css +283 -0
  748. package/packages/ui/components/watermark/README.md +94 -0
  749. package/packages/ui/components/watermark/__tests__/watermark.test.ts +252 -0
  750. package/packages/ui/components/watermark/index.ts +13 -0
  751. package/packages/ui/components/watermark/src/index.ts +13 -0
  752. package/packages/ui/components/watermark/src/types.ts +86 -0
  753. package/packages/ui/components/watermark/src/use-watermark.ts +132 -0
  754. package/packages/ui/components/watermark/src/watermark.vue +181 -0
  755. package/packages/ui/components/watermark/styles/watermark.css +27 -0
  756. package/packages/ui/index.ts +338 -0
  757. package/packages/ui/lib/utils.ts +6 -0
  758. package/packages/ui/lowcode-agent/icons.ts +148 -0
  759. package/packages/ui/lowcode-agent/index.ts +26 -0
  760. package/packages/ui/lowcode-agent/registry.json +37004 -0
  761. package/packages/ui/lowcode-agent/types.ts +312 -0
  762. package/packages/ui/src/composables/__tests__/use-floating-popup.test.ts +275 -0
  763. package/packages/ui/src/composables/__tests__/use-form-ai-actions.test.ts +101 -0
  764. package/packages/ui/src/composables/__tests__/use-form-ai-registry.test.ts +92 -0
  765. package/packages/ui/src/composables/__tests__/use-form-ai.test.ts +116 -0
  766. package/packages/ui/src/composables/index.ts +10 -0
  767. package/packages/ui/src/composables/use-ai-state-machine.ts +142 -0
  768. package/packages/ui/src/composables/use-floating-popup.ts +237 -0
  769. package/packages/ui/src/composables/use-form-ai-registry.ts +198 -0
  770. package/packages/ui/src/composables/use-form-ai.ts +280 -0
  771. package/packages/ui/src/composables/useLightbox.ts +51 -0
  772. package/packages/ui/src/request/document.ts +53 -0
  773. package/packages/ui/src/request/enum.ts +18 -0
  774. package/packages/ui/src/request/index.ts +4 -0
  775. package/packages/ui/src/request/request.ts +200 -0
  776. package/packages/ui/src/request/types.ts +27 -0
  777. package/packages/ui/src/types/form-ai-registry.ts +70 -0
  778. package/packages/ui/src/types/form-ai.ts +84 -0
  779. package/packages/ui/src/utils/date-format.ts +60 -0
  780. package/packages/ui/styles/design-tokens.css +383 -0
  781. package/packages/ui/styles/tailwind.css +76 -0
  782. package/packages/ui/styles/tokens.css +7 -0
  783. package/playground/index.html +12 -0
  784. package/playground/postcss.config.cjs +5 -0
  785. package/playground/src/App.vue +3 -0
  786. package/playground/src/__tests__/__debug-input.test.ts +29 -0
  787. package/playground/src/__tests__/button-ai-confirm.test.ts +41 -0
  788. package/playground/src/__tests__/home-render.test.ts +87 -0
  789. package/playground/src/__tests__/icon-library.test.ts +107 -0
  790. package/playground/src/__tests__/input-ai-confirm.test.ts +113 -0
  791. package/playground/src/__tests__/textarea-ai-button.test.ts +87 -0
  792. package/playground/src/__tests__/textarea-wordlimit.test.ts +66 -0
  793. package/playground/src/chart-theme.ts +22 -0
  794. package/playground/src/components/AiStateFlow.vue +59 -0
  795. package/playground/src/components/ComponentShowcase.vue +180 -0
  796. package/playground/src/composables/useAiStateMachine.ts +111 -0
  797. package/playground/src/data/component-api.ts +187 -0
  798. package/playground/src/data/component-meta.ts +84 -0
  799. package/playground/src/layouts/DefaultLayout.vue +318 -0
  800. package/playground/src/main.ts +18 -0
  801. package/playground/src/router/index.ts +101 -0
  802. package/playground/src/views/AffixDemo.vue +133 -0
  803. package/playground/src/views/AiStateFlowDemo.vue +170 -0
  804. package/playground/src/views/AlertDemo.vue +554 -0
  805. package/playground/src/views/AnchorDemo.vue +150 -0
  806. package/playground/src/views/AppBarDemo.vue +722 -0
  807. package/playground/src/views/AvatarDemo.vue +266 -0
  808. package/playground/src/views/BackTopDemo.vue +71 -0
  809. package/playground/src/views/BadgeDemo.vue +109 -0
  810. package/playground/src/views/BatchActionButtonDemo.vue +65 -0
  811. package/playground/src/views/BreadcrumbDemo.vue +248 -0
  812. package/playground/src/views/ButtonDemo.vue +344 -0
  813. package/playground/src/views/CardDemo.vue +254 -0
  814. package/playground/src/views/CarouselDemo.vue +158 -0
  815. package/playground/src/views/CascaderDemo.vue +425 -0
  816. package/playground/src/views/ChartDemo.vue +232 -0
  817. package/playground/src/views/CheckboxDemo.vue +339 -0
  818. package/playground/src/views/DataGridDemo.vue +518 -0
  819. package/playground/src/views/DataPickerDemo.vue +240 -0
  820. package/playground/src/views/DatePickerDemo.vue +292 -0
  821. package/playground/src/views/DateTimePickerDemo.vue +208 -0
  822. package/playground/src/views/DesignSpecDemo.vue +1647 -0
  823. package/playground/src/views/DividerDemo.vue +77 -0
  824. package/playground/src/views/DocumentActionHeaderDemo.vue +113 -0
  825. package/playground/src/views/DocumentFormPageDemo.vue +200 -0
  826. package/playground/src/views/DrawerDemo.vue +166 -0
  827. package/playground/src/views/DropdownButtonDemo.vue +74 -0
  828. package/playground/src/views/DropdownDemo.vue +306 -0
  829. package/playground/src/views/EmptyDemo.vue +104 -0
  830. package/playground/src/views/ErrorDemo.vue +111 -0
  831. package/playground/src/views/FileUploadDemo.vue +241 -0
  832. package/playground/src/views/FilterButtonDemo.vue +65 -0
  833. package/playground/src/views/FormFieldAiDemo.vue +364 -0
  834. package/playground/src/views/FormFieldBasicDemo.vue +174 -0
  835. package/playground/src/views/FormFieldBusinessDemo.vue +245 -0
  836. package/playground/src/views/FormFieldDemo.vue +178 -0
  837. package/playground/src/views/FormFieldLayoutDemo.vue +183 -0
  838. package/playground/src/views/FormFieldValidationDemo.vue +163 -0
  839. package/playground/src/views/FormItemAiDemo.vue +371 -0
  840. package/playground/src/views/FormSelectDemo.vue +519 -0
  841. package/playground/src/views/FormUploadDemo.vue +536 -0
  842. package/playground/src/views/HeroDemo.vue +836 -0
  843. package/playground/src/views/Home.vue +213 -0
  844. package/playground/src/views/IconDemo.vue +186 -0
  845. package/playground/src/views/IconLibraryView.vue +370 -0
  846. package/playground/src/views/IconRenderTest.vue +86 -0
  847. package/playground/src/views/ImagePreviewDemo.vue +368 -0
  848. package/playground/src/views/ImageUploadDemo.vue +199 -0
  849. package/playground/src/views/InputDemo.vue +348 -0
  850. package/playground/src/views/LayoutDemo.vue +946 -0
  851. package/playground/src/views/LoadingDemo.vue +95 -0
  852. package/playground/src/views/LocationPickerDemo.vue +218 -0
  853. package/playground/src/views/MenuDemo.vue +283 -0
  854. package/playground/src/views/MessageDemo.vue +201 -0
  855. package/playground/src/views/MetricDemo.vue +535 -0
  856. package/playground/src/views/ModalDemo.vue +291 -0
  857. package/playground/src/views/MoreActionButtonDemo.vue +65 -0
  858. package/playground/src/views/NewDocumentDemo.vue +973 -0
  859. package/playground/src/views/NotificationDemo.vue +255 -0
  860. package/playground/src/views/PaginationDemo.vue +292 -0
  861. package/playground/src/views/ProgressDemo.vue +356 -0
  862. package/playground/src/views/RadioDemo.vue +414 -0
  863. package/playground/src/views/RegionPickerDemo.vue +249 -0
  864. package/playground/src/views/ScalingRulesDemo.vue +333 -0
  865. package/playground/src/views/SelectDemo.vue +453 -0
  866. package/playground/src/views/SideNavDemo.vue +769 -0
  867. package/playground/src/views/SignatureDemo.vue +205 -0
  868. package/playground/src/views/SkeletonDemo.vue +109 -0
  869. package/playground/src/views/SliderDemo.vue +312 -0
  870. package/playground/src/views/SplitButtonDemo.vue +65 -0
  871. package/playground/src/views/StatusDotDemo.vue +131 -0
  872. package/playground/src/views/StepsDemo.vue +587 -0
  873. package/playground/src/views/SwitchDemo.vue +442 -0
  874. package/playground/src/views/TableDemo.vue +438 -0
  875. package/playground/src/views/TabsDemo.vue +246 -0
  876. package/playground/src/views/TagDemo.vue +113 -0
  877. package/playground/src/views/TextAreaDemo.vue +317 -0
  878. package/playground/src/views/TimePickerDemo.vue +291 -0
  879. package/playground/src/views/TimelineDemo.vue +133 -0
  880. package/playground/src/views/TooltipDemo.vue +102 -0
  881. package/playground/src/views/TreeDemo.vue +521 -0
  882. package/playground/src/views/TypographyDemo.vue +175 -0
  883. package/playground/src/views/UploadDemo.vue +331 -0
  884. package/playground/src/views/WatermarkDemo.vue +112 -0
  885. package/playground/src/views/_mocks/new-document.mock.ts +506 -0
  886. package/playground/src/views/data/form-field-events-table.ts +243 -0
  887. package/playground/src/views/data/form-field-options.ts +77 -0
  888. package/playground/src/views/data/form-field-props-table.ts +227 -0
  889. package/playground/src/views/data/form-field-snippets.ts +149 -0
  890. package/playground/src/views/data/slider-snippets.ts +100 -0
  891. package/playground/src/views/inner/FormFieldEventsDoc.vue +147 -0
  892. package/playground/src/views/inner/FormFieldPropsDoc.vue +138 -0
  893. package/playground/vite.config.ts +25 -0
  894. package/pnpm-workspace.yaml +3 -0
  895. package/postcss.config.cjs +5 -0
  896. package/scripts/check-design-token-compliance.mjs +223 -0
  897. package/scripts/generate-package-dts.mjs +105 -0
  898. package/tsconfig.json +35 -0
  899. package/tsconfig.node.json +13 -0
  900. package/vite.config.ts +68 -0
  901. package/Button/button-props.d.ts +0 -9
  902. package/Button/button-variants.d.ts +0 -5
  903. package/Button/index.d.ts +0 -20
  904. package/Button/index.js +0 -111
  905. package/index.css +0 -596
  906. package/index.d.ts +0 -15
  907. package/index.js +0 -19
  908. package/utils/forward-attrs.d.ts +0 -6
  909. package/utils/install.d.ts +0 -6
  910. package/utils/utils.d.ts +0 -2
@@ -0,0 +1,132 @@
1
+ /*
2
+ * TfForm 表单组件样式
3
+ */
4
+
5
+ .tf-form {
6
+ font-family: var(--tf-font-family, system-ui, sans-serif);
7
+ }
8
+
9
+ .tf-form-vertical .tf-form-item {
10
+ display: flex;
11
+ flex-direction: column;
12
+ margin-bottom: 16px;
13
+ }
14
+
15
+ .tf-form-horizontal .tf-form-item {
16
+ display: flex;
17
+ align-items: flex-start;
18
+ margin-bottom: 16px;
19
+ }
20
+
21
+ .tf-form-inline {
22
+ display: flex;
23
+ flex-wrap: wrap;
24
+ gap: 16px;
25
+ }
26
+
27
+ .tf-form-inline .tf-form-item {
28
+ display: flex;
29
+ align-items: center;
30
+ margin-bottom: 0;
31
+ }
32
+
33
+ .tf-form-item-label {
34
+ display: inline-block;
35
+ flex-shrink: 0;
36
+ padding-right: 12px;
37
+ font-size: 14px;
38
+ color: var(--neutral-700);
39
+ line-height: var(--tf-form-control-h-sm);
40
+ }
41
+
42
+ .tf-form-vertical .tf-form-item-label {
43
+ line-height: 1.5;
44
+ padding-bottom: 6px;
45
+ padding-right: 0;
46
+ text-align: left;
47
+ }
48
+
49
+ .tf-form-item-content {
50
+ flex: 1;
51
+ min-width: 0;
52
+ }
53
+
54
+ .tf-form-item-error .tf-input-inner {
55
+ border-color: var(--tf-color-error) !important;
56
+ }
57
+
58
+ .tf-form-item-error .tf-input-inner:focus {
59
+ box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
60
+ }
61
+
62
+ /*
63
+ * 独立模式 (无 TfForm 父容器时使用 .tf-form-item-vertical class)
64
+ * 当 TfFormItem 被 TfFormXxx wrapper 直接使用时, 不会触发 .tf-form-vertical .tf-form-item
65
+ * 因为这些 class 在物品自己身上而非祖先上
66
+ */
67
+ .tf-form-item-vertical {
68
+ display: flex;
69
+ flex-direction: column;
70
+ }
71
+
72
+ .tf-form-item-vertical .tf-form-item-label {
73
+ line-height: 1.5;
74
+ padding-bottom: 6px;
75
+ padding-right: 0;
76
+ text-align: left;
77
+ }
78
+
79
+ .tf-form-item-vertical .tf-form-item-content {
80
+ flex: 1;
81
+ min-width: 0;
82
+ }
83
+
84
+ .tf-form-item-horizontal {
85
+ display: flex;
86
+ align-items: flex-start;
87
+ }
88
+
89
+ .tf-form-item-horizontal .tf-form-item-label {
90
+ line-height: var(--tf-form-control-h-sm);
91
+ padding-right: 12px;
92
+ text-align: right;
93
+ flex-shrink: 0;
94
+ }
95
+
96
+ .tf-form-item-horizontal .tf-form-item-content {
97
+ flex: 1;
98
+ min-width: 0;
99
+ }
100
+
101
+ /*
102
+ * 响应式 span(grid-column):
103
+ * 当 TfFormItem 处于 <TfFormLayout> 的 grid 内时,根据 5 个断点 CSS 变量按 fallback 链
104
+ * 设置 grid-column: span N。变量由 TfFormItem 的 :style 注入(spanStyle computed)。
105
+ */
106
+ .tf-form-item {
107
+ grid-column: span var(--tf-form-item-span-base, 1);
108
+ }
109
+
110
+ @media (min-width: 640px) {
111
+ .tf-form-item {
112
+ grid-column: span var(--tf-form-item-span-sm, var(--tf-form-item-span-base, 1));
113
+ }
114
+ }
115
+
116
+ @media (min-width: 768px) {
117
+ .tf-form-item {
118
+ grid-column: span var(--tf-form-item-span-md, var(--tf-form-item-span-sm, var(--tf-form-item-span-base, 1)));
119
+ }
120
+ }
121
+
122
+ @media (min-width: 1024px) {
123
+ .tf-form-item {
124
+ grid-column: span var(--tf-form-item-span-lg, var(--tf-form-item-span-md, var(--tf-form-item-span-sm, var(--tf-form-item-span-base, 1))));
125
+ }
126
+ }
127
+
128
+ @media (min-width: 1280px) {
129
+ .tf-form-item {
130
+ grid-column: span var(--tf-form-item-span-xl, var(--tf-form-item-span-lg, var(--tf-form-item-span-md, var(--tf-form-item-span-sm, var(--tf-form-item-span-base, 1)))));
131
+ }
132
+ }
@@ -0,0 +1,86 @@
1
+ # TfFormAiStatus
2
+
3
+ 表单级 AI 状态汇总徽章。inject `<TfForm>` provide 的 `FormAiRegistry` 并以 7 个 chip 呈现各状态字段计数;点击徽章可展开 popover 列出对应字段。
4
+
5
+ > ⚠️ **必须放在 `<TfForm>` 内**。否则会渲染禁用占位 `AI 状态: 未在 TfForm 内`。
6
+
7
+ ## 基本用法
8
+
9
+ ```vue
10
+ <template>
11
+ <TfForm :model="model">
12
+ <template #header-actions>
13
+ <TfFormAiStatus
14
+ @click-status="onStatus"
15
+ @click-field="onField"
16
+ />
17
+ </template>
18
+
19
+ <TfFormItem field="name" label="姓名" :ai="aiActions">
20
+ <TfFormInput v-model="model.name" />
21
+ </TfFormItem>
22
+ </TfForm>
23
+ </template>
24
+ ```
25
+
26
+ 或挂在 `TfPageHeader` 的 actions 槽:
27
+
28
+ ```vue
29
+ <TfPageHeader title="客户档案">
30
+ <template #actions>
31
+ <TfFormAiStatus compact />
32
+ </template>
33
+ <TfForm :model="model">
34
+ <!-- ... -->
35
+ </TfForm>
36
+ </TfPageHeader>
37
+ ```
38
+
39
+ ## Props
40
+
41
+ | Prop | 类型 | 默认 | 说明 |
42
+ |--------------|--------------------------------------|---------------------------------------------------|---------------------------------------------------|
43
+ | `layout` | `'inline' \| 'stack'` | `'inline'` | chip 排版方向 |
44
+ | `show` | `FormAiStatusKey[]` | 全 7 类 | 显示哪些状态(子集) |
45
+ | `expandable` | `boolean` | `true` | 点击徽章是否展开 popover 列出字段 |
46
+ | `compact` | `boolean` | `false` | 紧凑模式:仅渲染颜色点 + 数字,不显示图标和文字 |
47
+ | `labels` | `Partial<Record<FormAiStatusKey, string>>` | `{}` | 自定义状态文案 |
48
+
49
+ `FormAiStatusKey = 'enhanced' | 'suggestion' | 'issue-warn' | 'issue-error' | 'confirmed' | 'rejected' | 'modified'`
50
+
51
+ ## Events
52
+
53
+ | Event | 参数 | 说明 |
54
+ |-----------------|-----------------------|------------------------------|
55
+ | `click-status` | `(status: FormAiStatusKey)` | 点击 chip |
56
+ | `click-field` | `(field: string)` | 在 panel 中点击具体字段 |
57
+
58
+ ## Slots
59
+
60
+ 无。
61
+
62
+ ## 状态颜色含义
63
+
64
+ | 状态 | 图标 | 颜色 | 含义 |
65
+ |----------------|------|-----------|-------------------------------------|
66
+ | `enhanced` | ✨ | sky | 已配置 AI 但未触发 |
67
+ | `suggestion` | 💡 | violet | AI 给了推荐值,等待用户采纳(pulse 动效) |
68
+ | `issue-warn` | ⚠️ | amber | AI 检查发现警告(pulse 动效) |
69
+ | `issue-error` | ❌ | rose | AI 检查发现错误(pulse 动效) |
70
+ | `confirmed` | ✓ | emerald | 用户已采纳/已修复 |
71
+ | `rejected` | ✗ | slate | 用户已拒绝 AI 建议 |
72
+ | `modified` | ✎ | yellow | confirmed 后又被手动修改 |
73
+
74
+ `n=0` 的 chip 半透明显示。
75
+
76
+ ## 紧凑示例
77
+
78
+ ```vue
79
+ <TfFormAiStatus compact :show="['suggestion', 'issue-error']" />
80
+ ```
81
+
82
+ ## 备注
83
+
84
+ - 数据来源:`inject(AI_REGISTRY_KEY)` → `registry.snapshot.value` (computed);`<TfForm>` 内部聚合所有 `<TfFormItem :ai>` 的状态。
85
+ - 不在 `<TfForm>` 内时不会抛错,只渲染降级占位文本。
86
+ - v3 状态机 7 档 chip;仍以面向用户的 enhanced/suggestion/issue-warn/issue-error/confirmed/rejected/modified 为准(不含 idle 内部态)。
@@ -0,0 +1,183 @@
1
+ import { mount, flushPromises } from '@vue/test-utils'
2
+ import { describe, it, expect, afterEach } from 'vitest'
3
+ import { ref, computed } from 'vue'
4
+ import TfFormAiStatus from '../src/form-ai-status.vue'
5
+ import { AI_REGISTRY_KEY } from '../../../src/types/form-ai-registry'
6
+ import type {
7
+ FormAiRegistry,
8
+ AiFieldEntry,
9
+ AiRegistrySnapshot
10
+ } from '../../../src/types/form-ai-registry'
11
+ import type { AiFieldStatus } from '../../../src/types/form-ai'
12
+
13
+ function makeRegistry(initial: Array<Partial<AiFieldEntry> & { field: string }> = []): FormAiRegistry {
14
+ const fields = ref<Map<string, AiFieldEntry>>(
15
+ new Map(
16
+ initial.map((e) => [
17
+ e.field,
18
+ {
19
+ field: e.field,
20
+ label: e.label ?? e.field,
21
+ status: (e.status ?? 'enhanced') as AiFieldStatus,
22
+ actions: e.actions ?? []
23
+ } as AiFieldEntry
24
+ ])
25
+ )
26
+ )
27
+ const snapshot = computed<AiRegistrySnapshot>(() => {
28
+ const s: AiRegistrySnapshot = {
29
+ enhanced: 0,
30
+ suggestion: 0,
31
+ issueWarn: 0,
32
+ issueError: 0,
33
+ confirmed: 0,
34
+ rejected: 0,
35
+ modified: 0,
36
+ total: 0
37
+ }
38
+ fields.value.forEach((entry) => {
39
+ s.total++
40
+ if (entry.status === 'enhanced') s.enhanced++
41
+ else if (entry.status === 'suggestion') s.suggestion++
42
+ else if (entry.status === 'issue-warn') s.issueWarn++
43
+ else if (entry.status === 'issue-error') s.issueError++
44
+ else if (entry.status === 'confirmed') s.confirmed++
45
+ else if (entry.status === 'rejected') s.rejected++
46
+ else if (entry.status === 'modified') s.modified++
47
+ })
48
+ return s
49
+ })
50
+ return {
51
+ fields,
52
+ snapshot,
53
+ register: () => {},
54
+ unregister: () => {},
55
+ updateStatus: () => {},
56
+ applyAll: async () => {},
57
+ confirmAll: () => {},
58
+ rejectAll: () => {},
59
+ checkAll: async () => ({ passCount: 0, warnCount: 0, errorCount: 0, items: [] })
60
+ }
61
+ }
62
+
63
+ function mountWith(registry: FormAiRegistry | null, props: Record<string, any> = {}) {
64
+ return mount(TfFormAiStatus, {
65
+ props,
66
+ global: registry
67
+ ? { provide: { [AI_REGISTRY_KEY as symbol]: registry } }
68
+ : {},
69
+ attachTo: document.body
70
+ })
71
+ }
72
+
73
+ describe('TfFormAiStatus', () => {
74
+ afterEach(() => {
75
+ document.body.innerHTML = ''
76
+ })
77
+
78
+ it('T1: 不在 TfForm 内 (无 inject) 渲染禁用占位', () => {
79
+ const wrapper = mountWith(null)
80
+ expect(wrapper.find('.tf-form-ai-status--disabled').exists()).toBe(true)
81
+ expect(wrapper.find('.tf-form-ai-status__placeholder').text()).toContain('AI 状态')
82
+ // 不应渲染 chip
83
+ expect(wrapper.find('.tf-form-ai-status__chip').exists()).toBe(false)
84
+ })
85
+
86
+ it('T2: 在 TfForm 内 + 0 字段 → 7 个 chip 全 0 (半透明 data-zero=true)', () => {
87
+ const wrapper = mountWith(makeRegistry([]))
88
+ const chips = wrapper.findAll('.tf-form-ai-status__chip')
89
+ expect(chips.length).toBe(7)
90
+ chips.forEach((c) => {
91
+ expect(c.attributes('data-zero')).toBe('true')
92
+ expect(c.text()).toContain('0')
93
+ })
94
+ })
95
+
96
+ it('T3: 注册 1 个 enhanced 字段 → enhanced=1 显示且非 zero', () => {
97
+ const reg = makeRegistry([{ field: 'a', label: 'A', status: 'enhanced' }])
98
+ const wrapper = mountWith(reg)
99
+ const enhancedChip = wrapper.find('.tf-form-ai-status__chip--enhanced')
100
+ expect(enhancedChip.exists()).toBe(true)
101
+ expect(enhancedChip.attributes('data-zero')).toBe('false')
102
+ expect(enhancedChip.text()).toContain('1')
103
+ // 其他 6 个仍为 0
104
+ const suggestionChip = wrapper.find('.tf-form-ai-status__chip--suggestion')
105
+ expect(suggestionChip.attributes('data-zero')).toBe('true')
106
+ })
107
+
108
+ it('T4: 点击 chip → emit("click-status", key)', async () => {
109
+ const wrapper = mountWith(makeRegistry([{ field: 'a', status: 'enhanced' }]))
110
+ await wrapper.find('.tf-form-ai-status__chip--enhanced').trigger('click')
111
+ await flushPromises()
112
+ const events = wrapper.emitted('click-status')
113
+ expect(events).toBeTruthy()
114
+ expect(events![0]).toEqual(['enhanced'])
115
+ })
116
+
117
+ it('T5: expandable=false → 不渲染 panel 且无 trigger button', async () => {
118
+ const wrapper = mountWith(
119
+ makeRegistry([{ field: 'a', status: 'suggestion' }]),
120
+ { expandable: false }
121
+ )
122
+ expect(wrapper.find('.tf-form-ai-status__trigger').exists()).toBe(false)
123
+ // 即使点击 chip 也不展开
124
+ await wrapper.find('.tf-form-ai-status__chip--suggestion').trigger('click')
125
+ await flushPromises()
126
+ expect(wrapper.find('.tf-form-ai-status__panel').exists()).toBe(false)
127
+ })
128
+
129
+ it('T6: compact=true → 渲染 dot 而非 icon/label 文本', () => {
130
+ const wrapper = mountWith(makeRegistry([{ field: 'a', status: 'enhanced' }]), {
131
+ compact: true
132
+ })
133
+ expect(wrapper.find('.tf-form-ai-status--compact').exists()).toBe(true)
134
+ expect(wrapper.find('.tf-form-ai-status__chip-dot').exists()).toBe(true)
135
+ // compact 下不渲染文本 label 元素
136
+ expect(wrapper.find('.tf-form-ai-status__chip-label').exists()).toBe(false)
137
+ // 数字仍要展示
138
+ expect(wrapper.find('.tf-form-ai-status__chip-num').exists()).toBe(true)
139
+ })
140
+
141
+ it('T7: expandable + 点击展开 panel + 点击字段 emit("click-field") + issue-warn 计数', async () => {
142
+ const reg = makeRegistry([
143
+ { field: 'name', label: '姓名', status: 'enhanced' },
144
+ { field: 'addr', label: '地址', status: 'issue-warn' }
145
+ ])
146
+ const wrapper = mountWith(reg)
147
+ // issueWarn snapshot 计数 → chip --issue-warn count=1
148
+ const warnChip = wrapper.find('.tf-form-ai-status__chip--issue-warn')
149
+ expect(warnChip.exists()).toBe(true)
150
+ expect(warnChip.attributes('data-zero')).toBe('false')
151
+ expect(warnChip.text()).toContain('1')
152
+
153
+ // 点击 trigger button 而非 chip 内部
154
+ await wrapper.find('.tf-form-ai-status__trigger').trigger('click')
155
+ await flushPromises()
156
+ expect(wrapper.find('.tf-form-ai-status__panel').exists()).toBe(true)
157
+ const fieldBtns = wrapper.findAll('.tf-form-ai-status__field')
158
+ expect(fieldBtns.length).toBe(2)
159
+ await fieldBtns[0].trigger('click')
160
+ await flushPromises()
161
+ const events = wrapper.emitted('click-field')
162
+ expect(events).toBeTruthy()
163
+ expect(events![0][0]).toBeDefined()
164
+ })
165
+
166
+ it('T8: show prop 过滤 → 仅渲染指定 chips', () => {
167
+ const wrapper = mountWith(makeRegistry([]), {
168
+ show: ['enhanced', 'suggestion']
169
+ })
170
+ const chips = wrapper.findAll('.tf-form-ai-status__chip')
171
+ expect(chips.length).toBe(2)
172
+ expect(wrapper.find('.tf-form-ai-status__chip--enhanced').exists()).toBe(true)
173
+ expect(wrapper.find('.tf-form-ai-status__chip--suggestion').exists()).toBe(true)
174
+ expect(wrapper.find('.tf-form-ai-status__chip--confirmed').exists()).toBe(false)
175
+ })
176
+
177
+ it('T9: labels 自定义文案', () => {
178
+ const wrapper = mountWith(makeRegistry([]), {
179
+ labels: { enhanced: 'AI智能' }
180
+ })
181
+ expect(wrapper.find('.tf-form-ai-status__chip--enhanced').text()).toContain('AI智能')
182
+ })
183
+ })
@@ -0,0 +1,12 @@
1
+ /**
2
+ * TfFormAiStatus 入口
3
+ *
4
+ * 表单级 AI 状态汇总徽章。
5
+ * 必须放在 TfForm 内(依赖 provide 的 FormAiRegistry)。
6
+ */
7
+ export { default as TfFormAiStatus } from './src/form-ai-status.vue'
8
+ export type {
9
+ FormAiStatusProps,
10
+ FormAiStatusEmits,
11
+ FormAiStatusKey
12
+ } from './src/types'
@@ -0,0 +1,254 @@
1
+ <script setup lang="ts">
2
+ /**
3
+ * TfFormAiStatus —— 表单级 AI 状态汇总徽章
4
+ *
5
+ * 必须放在 <TfForm> 内(依赖 inject AI_REGISTRY_KEY)。
6
+ * v3 状态机:渲染 7 个状态 chip:
7
+ * enhanced / suggestion / issue-warn / issue-error / confirmed / rejected / modified
8
+ * expandable=true 时支持点击展开 popover,按状态分组列出字段。
9
+ */
10
+ import { computed, inject, ref, onBeforeUnmount, onMounted } from 'vue'
11
+ import { AI_REGISTRY_KEY } from '../../../src/types/form-ai-registry'
12
+ import type { AiFieldStatus } from '../../../src/types/form-ai'
13
+ import type { FormAiStatusProps, FormAiStatusEmits, FormAiStatusKey } from './types'
14
+
15
+ const props = withDefaults(defineProps<FormAiStatusProps>(), {
16
+ layout: 'inline',
17
+ show: () => [
18
+ 'enhanced',
19
+ 'suggestion',
20
+ 'issue-warn',
21
+ 'issue-error',
22
+ 'confirmed',
23
+ 'rejected',
24
+ 'modified'
25
+ ],
26
+ expandable: true,
27
+ compact: false,
28
+ labels: () => ({})
29
+ })
30
+
31
+ const emit = defineEmits<FormAiStatusEmits>()
32
+
33
+ const registry = inject(AI_REGISTRY_KEY, null)
34
+
35
+ const DEFAULT_LABELS: Record<FormAiStatusKey, string> = {
36
+ enhanced: '已增强',
37
+ suggestion: '推荐待采纳',
38
+ 'issue-warn': '警告',
39
+ 'issue-error': '错误',
40
+ confirmed: '已确认',
41
+ rejected: '已拒绝',
42
+ modified: '已修改'
43
+ }
44
+
45
+ const ICONS: Record<FormAiStatusKey, string> = {
46
+ enhanced: '✨',
47
+ suggestion: '💡',
48
+ 'issue-warn': '⚠️',
49
+ 'issue-error': '❌',
50
+ confirmed: '✓',
51
+ rejected: '✗',
52
+ modified: '✎'
53
+ }
54
+
55
+ const ALL_KEYS: FormAiStatusKey[] = [
56
+ 'enhanced',
57
+ 'suggestion',
58
+ 'issue-warn',
59
+ 'issue-error',
60
+ 'confirmed',
61
+ 'rejected',
62
+ 'modified'
63
+ ]
64
+
65
+ const visibleKeys = computed<FormAiStatusKey[]>(() => {
66
+ const set = new Set(props.show ?? ALL_KEYS)
67
+ return ALL_KEYS.filter((k) => set.has(k))
68
+ })
69
+
70
+ const snapshot = computed(() => {
71
+ if (!registry) {
72
+ return {
73
+ enhanced: 0,
74
+ suggestion: 0,
75
+ issueWarn: 0,
76
+ issueError: 0,
77
+ confirmed: 0,
78
+ rejected: 0,
79
+ modified: 0,
80
+ total: 0
81
+ }
82
+ }
83
+ return registry.snapshot.value
84
+ })
85
+
86
+ function labelOf(k: FormAiStatusKey): string {
87
+ return props.labels?.[k] ?? DEFAULT_LABELS[k]
88
+ }
89
+
90
+ function countOf(k: FormAiStatusKey): number {
91
+ if (k === 'issue-warn') return snapshot.value.issueWarn ?? 0
92
+ if (k === 'issue-error') return snapshot.value.issueError ?? 0
93
+ return (snapshot.value as any)[k] ?? 0
94
+ }
95
+
96
+ /* ============== expand panel ============== */
97
+ const open = ref(false)
98
+ const rootEl = ref<HTMLElement | null>(null)
99
+
100
+ function toggleOpen() {
101
+ if (!props.expandable) return
102
+ open.value = !open.value
103
+ }
104
+
105
+ function onChipClick(k: FormAiStatusKey, ev: MouseEvent) {
106
+ // 阻止与 trigger 冒泡冲突:仍允许 toggle,因为 chip 在 trigger 内部
107
+ ev.stopPropagation()
108
+ emit('click-status', k)
109
+ if (props.expandable) {
110
+ open.value = !open.value
111
+ }
112
+ }
113
+
114
+ function onFieldClick(field: string) {
115
+ emit('click-field', field)
116
+ open.value = false
117
+ }
118
+
119
+ function onDocClick(ev: MouseEvent) {
120
+ if (!open.value) return
121
+ const root = rootEl.value
122
+ if (root && !root.contains(ev.target as Node)) {
123
+ open.value = false
124
+ }
125
+ }
126
+
127
+ onMounted(() => {
128
+ document.addEventListener('click', onDocClick, true)
129
+ })
130
+ onBeforeUnmount(() => {
131
+ document.removeEventListener('click', onDocClick, true)
132
+ })
133
+
134
+ /* ============== panel grouping ============== */
135
+ interface FieldRow {
136
+ field: string
137
+ label: string
138
+ status: AiFieldStatus
139
+ }
140
+
141
+ const groupedFields = computed<Array<{ key: FormAiStatusKey; rows: FieldRow[] }>>(() => {
142
+ if (!registry) return []
143
+ const fields = registry.fields.value
144
+ const buckets: Record<FormAiStatusKey, FieldRow[]> = {
145
+ enhanced: [],
146
+ suggestion: [],
147
+ 'issue-warn': [],
148
+ 'issue-error': [],
149
+ confirmed: [],
150
+ rejected: [],
151
+ modified: []
152
+ }
153
+ fields.forEach((entry, key) => {
154
+ const s = entry.status as AiFieldStatus
155
+ if (s in buckets) {
156
+ buckets[s as FormAiStatusKey].push({
157
+ field: key,
158
+ label: entry.label || key,
159
+ status: s
160
+ })
161
+ }
162
+ })
163
+ return ALL_KEYS.filter((k) => visibleKeys.value.includes(k) && buckets[k].length > 0).map(
164
+ (k) => ({ key: k, rows: buckets[k] })
165
+ )
166
+ })
167
+
168
+ const hasAnyField = computed(() => groupedFields.value.length > 0)
169
+
170
+ const rootClass = computed(() => [
171
+ 'tf-form-ai-status',
172
+ `tf-form-ai-status--${props.layout}`,
173
+ props.compact ? 'tf-form-ai-status--compact' : null
174
+ ])
175
+ </script>
176
+
177
+ <template>
178
+ <span v-if="!registry" class="tf-form-ai-status tf-form-ai-status--disabled">
179
+ <span class="tf-form-ai-status__placeholder">AI 状态: 未在 TfForm 内</span>
180
+ </span>
181
+
182
+ <span v-else ref="rootEl" :class="rootClass">
183
+ <!-- expandable: 包 button -->
184
+ <button
185
+ v-if="expandable"
186
+ type="button"
187
+ class="tf-form-ai-status__trigger"
188
+ :aria-expanded="open"
189
+ @click="toggleOpen"
190
+ >
191
+ <span
192
+ v-for="k in visibleKeys"
193
+ :key="k"
194
+ :class="['tf-form-ai-status__chip', `tf-form-ai-status__chip--${k}`]"
195
+ :data-zero="countOf(k) === 0"
196
+ :data-status="k"
197
+ :title="labelOf(k)"
198
+ @click="(e) => onChipClick(k, e)"
199
+ >
200
+ <span v-if="compact" class="tf-form-ai-status__chip-dot" aria-hidden="true" />
201
+ <span v-else class="tf-form-ai-status__chip-icon" aria-hidden="true">{{ ICONS[k] }}</span>
202
+ <span class="tf-form-ai-status__chip-num">{{ countOf(k) }}</span>
203
+ <span v-if="!compact" class="tf-form-ai-status__chip-label">{{ labelOf(k) }}</span>
204
+ </span>
205
+ </button>
206
+
207
+ <!-- non-expandable: 直接渲染 chips -->
208
+ <template v-else>
209
+ <span
210
+ v-for="k in visibleKeys"
211
+ :key="k"
212
+ :class="['tf-form-ai-status__chip', `tf-form-ai-status__chip--${k}`]"
213
+ :data-zero="countOf(k) === 0"
214
+ :data-status="k"
215
+ :title="labelOf(k)"
216
+ @click="(e) => onChipClick(k, e)"
217
+ >
218
+ <span v-if="compact" class="tf-form-ai-status__chip-dot" aria-hidden="true" />
219
+ <span v-else class="tf-form-ai-status__chip-icon" aria-hidden="true">{{ ICONS[k] }}</span>
220
+ <span class="tf-form-ai-status__chip-num">{{ countOf(k) }}</span>
221
+ <span v-if="!compact" class="tf-form-ai-status__chip-label">{{ labelOf(k) }}</span>
222
+ </span>
223
+ </template>
224
+
225
+ <!-- popover panel -->
226
+ <div v-if="expandable && open" class="tf-form-ai-status__panel" role="dialog">
227
+ <div v-if="!hasAnyField" class="tf-form-ai-status__panel-empty">暂无 AI 字段</div>
228
+ <div
229
+ v-for="group in groupedFields"
230
+ :key="group.key"
231
+ class="tf-form-ai-status__group"
232
+ >
233
+ <div class="tf-form-ai-status__group-title">
234
+ {{ labelOf(group.key) }} ({{ group.rows.length }})
235
+ </div>
236
+ <button
237
+ v-for="row in group.rows"
238
+ :key="row.field"
239
+ type="button"
240
+ :class="['tf-form-ai-status__field', `tf-form-ai-status__field--${group.key}`]"
241
+ :data-field="row.field"
242
+ @click.stop="onFieldClick(row.field)"
243
+ >
244
+ <span class="tf-form-ai-status__field-icon" aria-hidden="true">
245
+ {{ ICONS[group.key] }}
246
+ </span>
247
+ <span class="tf-form-ai-status__field-label">{{ row.label }}</span>
248
+ </button>
249
+ </div>
250
+ </div>
251
+ </span>
252
+ </template>
253
+
254
+ <style src="../styles/form-ai-status.css"></style>