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

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 (905) hide show
  1. package/dist/index.d.ts +116 -0
  2. package/dist/index.js +139842 -0
  3. package/dist/lowcode-agent/icons.d.ts +11 -0
  4. package/dist/lowcode-agent/icons.js +134 -0
  5. package/{packages/ui/lowcode-agent/index.ts → dist/lowcode-agent/index.d.ts} +1 -2
  6. package/dist/lowcode-agent/index.js +37008 -0
  7. package/dist/style.css +1 -0
  8. package/package.json +91 -85
  9. package/.claude/settings.local.json +0 -7
  10. package/.hermes/plans/datapicker-object-mode.md +0 -57
  11. package/.hermes/plans/design-spec-fusion-5175-v2.md +0 -146
  12. package/.hermes/plans/design-spec-fusion-5175.md +0 -88
  13. package/.hermes/plans/file-upload-chip-redesign.md +0 -66
  14. package/.hermes/plans/form-image-upload-modelvalue-fix.md +0 -38
  15. package/.hermes/plans/form-layout-responsive-span-plan.md +0 -137
  16. package/.hermes/plans/global-audit-report.md +0 -728
  17. package/.hermes/plans/global-audit-report.v1.md +0 -604
  18. package/.hermes/plans/global-audit-report.v3.md +0 -777
  19. package/.hermes/plans/image-file-erp-redesign.md +0 -173
  20. package/.hermes/plans/location-picker-baidu-modal.md +0 -173
  21. package/.hermes/plans/new-document-3b-color-componentization-plan.md +0 -155
  22. package/.hermes/plans/new-document-form-layout-rebuild-plan.md +0 -150
  23. package/.hermes/plans/new-document-fullwidth-3col-plan.md +0 -177
  24. package/.hermes/plans/picker-quick-options-range-mode.md +0 -143
  25. package/.hermes/plans/region-picker-mock-contract.md +0 -202
  26. package/.hermes/plans/zero-div-component-contracts.md +0 -466
  27. package/components.json +0 -19
  28. package/docs/DEVELOPMENT.md +0 -315
  29. package/docs/PRD.md +0 -170
  30. package/docs/ai-api-layering.md +0 -141
  31. package/docs/anchor-component-plan.md +0 -165
  32. package/docs/components-analysis.md +0 -2911
  33. package/docs/demo-scan-report.md +0 -142
  34. package/docs/editable-table-research.md +0 -8
  35. package/docs/form-panorama-plan.md +0 -141
  36. package/docs/lowcode-agent-component-registry.sample.json +0 -36364
  37. package/docs/tf-form-table-modification-plan.md +0 -503
  38. package/docs/token-compliance-audit-report.md +0 -542
  39. package/env.d.ts +0 -5
  40. package/eslint.config.js +0 -66
  41. package/packages/ui/__tests__/package-exports.test.ts +0 -23
  42. package/packages/ui/components/affix/README.md +0 -78
  43. package/packages/ui/components/affix/__tests__/affix.test.ts +0 -204
  44. package/packages/ui/components/affix/index.ts +0 -13
  45. package/packages/ui/components/affix/src/affix.vue +0 -216
  46. package/packages/ui/components/affix/src/types.ts +0 -47
  47. package/packages/ui/components/affix/styles/affix.css +0 -17
  48. package/packages/ui/components/ai-overlay/README.md +0 -180
  49. package/packages/ui/components/ai-overlay/__tests__/ai-action-menu.test.ts +0 -133
  50. package/packages/ui/components/ai-overlay/__tests__/ai-overlay.test.ts +0 -117
  51. package/packages/ui/components/ai-overlay/index.ts +0 -32
  52. package/packages/ui/components/ai-overlay/src/ai-action-menu-types.ts +0 -22
  53. package/packages/ui/components/ai-overlay/src/ai-action-menu.vue +0 -200
  54. package/packages/ui/components/ai-overlay/src/ai-overlay.vue +0 -329
  55. package/packages/ui/components/ai-overlay/src/types.ts +0 -84
  56. package/packages/ui/components/ai-overlay/styles/ai-overlay.css +0 -306
  57. package/packages/ui/components/ai-state-flow/README.md +0 -111
  58. package/packages/ui/components/ai-state-flow/__tests__/ai-state-flow.test.ts +0 -69
  59. package/packages/ui/components/ai-state-flow/ai-state-flow.ts +0 -16
  60. package/packages/ui/components/ai-state-flow/ai-state-flow.vue +0 -67
  61. package/packages/ui/components/ai-state-flow/index.ts +0 -24
  62. package/packages/ui/components/ai-state-flow/styles/ai-state-flow.css +0 -144
  63. package/packages/ui/components/alert/README.md +0 -83
  64. package/packages/ui/components/alert/__tests__/alert.test.ts +0 -155
  65. package/packages/ui/components/alert/index.ts +0 -13
  66. package/packages/ui/components/alert/src/alert.ts +0 -90
  67. package/packages/ui/components/alert/src/alert.vue +0 -87
  68. package/packages/ui/components/alert/styles/alert.css +0 -158
  69. package/packages/ui/components/anchor/README.md +0 -50
  70. package/packages/ui/components/anchor/__tests__/anchor.test.ts +0 -284
  71. package/packages/ui/components/anchor/index.ts +0 -13
  72. package/packages/ui/components/anchor/src/anchor.vue +0 -94
  73. package/packages/ui/components/anchor/src/types.ts +0 -55
  74. package/packages/ui/components/anchor/src/use-anchor.ts +0 -253
  75. package/packages/ui/components/anchor/styles/anchor.css +0 -90
  76. package/packages/ui/components/avatar/README.md +0 -118
  77. package/packages/ui/components/avatar/__tests__/avatar.test.ts +0 -83
  78. package/packages/ui/components/avatar/index.ts +0 -12
  79. package/packages/ui/components/avatar/src/avatar.ts +0 -62
  80. package/packages/ui/components/avatar/src/avatar.vue +0 -106
  81. package/packages/ui/components/back-top/README.md +0 -63
  82. package/packages/ui/components/back-top/__tests__/back-top.test.ts +0 -215
  83. package/packages/ui/components/back-top/index.ts +0 -13
  84. package/packages/ui/components/back-top/src/back-top.ts +0 -51
  85. package/packages/ui/components/back-top/src/back-top.vue +0 -104
  86. package/packages/ui/components/back-top/styles/back-top.css +0 -24
  87. package/packages/ui/components/badge/README.md +0 -71
  88. package/packages/ui/components/badge/__tests__/badge.test.ts +0 -142
  89. package/packages/ui/components/badge/index.ts +0 -13
  90. package/packages/ui/components/badge/src/badge.ts +0 -64
  91. package/packages/ui/components/badge/src/badge.vue +0 -76
  92. package/packages/ui/components/badge/styles/badge.css +0 -45
  93. package/packages/ui/components/batch-action-button/README.md +0 -68
  94. package/packages/ui/components/batch-action-button/__tests__/batch-action-button.test.ts +0 -30
  95. package/packages/ui/components/batch-action-button/index.ts +0 -11
  96. package/packages/ui/components/batch-action-button/src/batch-action-button.vue +0 -59
  97. package/packages/ui/components/batch-action-button/src/types.ts +0 -9
  98. package/packages/ui/components/breadcrumb/README.md +0 -115
  99. package/packages/ui/components/breadcrumb/__tests__/breadcrumb.test.ts +0 -168
  100. package/packages/ui/components/breadcrumb/index.ts +0 -13
  101. package/packages/ui/components/breadcrumb/src/breadcrumb.ts +0 -60
  102. package/packages/ui/components/breadcrumb/src/breadcrumb.vue +0 -86
  103. package/packages/ui/components/business/document/action-header/index.ts +0 -14
  104. package/packages/ui/components/business/document/action-header/src/context.ts +0 -10
  105. package/packages/ui/components/business/document/action-header/src/document-action-header.vue +0 -296
  106. package/packages/ui/components/business/document/action-header/src/types.ts +0 -100
  107. package/packages/ui/components/business/document/ai-toolbar/index.ts +0 -12
  108. package/packages/ui/components/business/document/ai-toolbar/src/document-ai-toolbar.vue +0 -72
  109. package/packages/ui/components/business/document/form-page/index.ts +0 -16
  110. package/packages/ui/components/business/document/form-page/src/composables/use-document-ai-toolbar.ts +0 -37
  111. package/packages/ui/components/business/document/form-page/src/composables/use-document-layout-mode.ts +0 -24
  112. package/packages/ui/components/business/document/form-page/src/composables/use-document-recognition.ts +0 -55
  113. package/packages/ui/components/business/document/form-page/src/composables/use-document-save.ts +0 -243
  114. package/packages/ui/components/business/document/form-page/src/composables/use-document-sections.ts +0 -234
  115. package/packages/ui/components/business/document/form-page/src/context.ts +0 -15
  116. package/packages/ui/components/business/document/form-page/src/document-form-page.vue +0 -251
  117. package/packages/ui/components/business/document/form-page/src/document-section-card.vue +0 -187
  118. package/packages/ui/components/business/document/form-page/src/types.ts +0 -245
  119. package/packages/ui/components/business/document/form-page/styles/document-form-page.css +0 -40
  120. package/packages/ui/components/business/enum-select/index.ts +0 -18
  121. package/packages/ui/components/business/enum-select/src/enum-select.vue +0 -171
  122. package/packages/ui/components/business/enum-select/src/types.ts +0 -33
  123. package/packages/ui/components/button/README.md +0 -155
  124. package/packages/ui/components/button/__tests__/button.test.ts +0 -261
  125. package/packages/ui/components/button/index.ts +0 -14
  126. package/packages/ui/components/button/src/button.ts +0 -168
  127. package/packages/ui/components/button/src/button.vue +0 -341
  128. package/packages/ui/components/button/styles/button.css +0 -149
  129. package/packages/ui/components/carousel/README.md +0 -48
  130. package/packages/ui/components/carousel/__tests__/carousel.test.ts +0 -82
  131. package/packages/ui/components/carousel/index.ts +0 -11
  132. package/packages/ui/components/carousel/src/carousel.ts +0 -38
  133. package/packages/ui/components/carousel/src/carousel.vue +0 -101
  134. package/packages/ui/components/carousel/styles/carousel.css +0 -40
  135. package/packages/ui/components/chart/README.md +0 -120
  136. package/packages/ui/components/chart/__tests__/chart.test.ts +0 -86
  137. package/packages/ui/components/chart/__tests__/simple-charts.test.ts +0 -130
  138. package/packages/ui/components/chart/index.ts +0 -22
  139. package/packages/ui/components/chart/src/bar-chart.vue +0 -83
  140. package/packages/ui/components/chart/src/chart.ts +0 -135
  141. package/packages/ui/components/chart/src/chart.vue +0 -147
  142. package/packages/ui/components/chart/src/donut-chart.vue +0 -96
  143. package/packages/ui/components/chart/src/line-chart.vue +0 -101
  144. package/packages/ui/components/chart/src/metric-grid.vue +0 -55
  145. package/packages/ui/components/chart/src/types.ts +0 -91
  146. package/packages/ui/components/chart/src/utils.ts +0 -68
  147. package/packages/ui/components/chart/styles/bar-chart.css +0 -134
  148. package/packages/ui/components/chart/styles/chart.css +0 -48
  149. package/packages/ui/components/chart/styles/donut-chart.css +0 -114
  150. package/packages/ui/components/chart/styles/line-chart.css +0 -61
  151. package/packages/ui/components/chart/styles/metric-grid.css +0 -115
  152. package/packages/ui/components/code-block/README.md +0 -56
  153. package/packages/ui/components/code-block/__tests__/code-block.test.ts +0 -166
  154. package/packages/ui/components/code-block/index.ts +0 -13
  155. package/packages/ui/components/code-block/src/code-block.vue +0 -216
  156. package/packages/ui/components/code-block/src/types.ts +0 -31
  157. package/packages/ui/components/code-block/styles/code-block.css +0 -192
  158. package/packages/ui/components/data-grid/CellRendererActions.vue +0 -77
  159. package/packages/ui/components/data-grid/CellRendererButton.vue +0 -51
  160. package/packages/ui/components/data-grid/CellRendererCsCheckbox.vue +0 -16
  161. package/packages/ui/components/data-grid/CellRendererCsInput.vue +0 -29
  162. package/packages/ui/components/data-grid/CellRendererCsSelect.vue +0 -19
  163. package/packages/ui/components/data-grid/CellRendererInput.vue +0 -120
  164. package/packages/ui/components/data-grid/CellRendererText.vue +0 -94
  165. package/packages/ui/components/data-grid/ColumnSettings.vue +0 -40
  166. package/packages/ui/components/data-grid/ColumnSettingsDialog.vue +0 -367
  167. package/packages/ui/components/data-grid/DataGrid.vue +0 -850
  168. package/packages/ui/components/data-grid/DataGridFilter.vue +0 -242
  169. package/packages/ui/components/data-grid/column-settings-api.ts +0 -62
  170. package/packages/ui/components/data-grid/index.ts +0 -29
  171. package/packages/ui/components/data-grid/props.ts +0 -246
  172. package/packages/ui/components/data-grid/variants.ts +0 -26
  173. package/packages/ui/components/divider/README.md +0 -84
  174. package/packages/ui/components/divider/__tests__/divider.test.ts +0 -105
  175. package/packages/ui/components/divider/index.ts +0 -13
  176. package/packages/ui/components/divider/src/divider.ts +0 -50
  177. package/packages/ui/components/divider/src/divider.vue +0 -76
  178. package/packages/ui/components/divider/styles/divider.css +0 -65
  179. package/packages/ui/components/drawer/README.md +0 -90
  180. package/packages/ui/components/drawer/__tests__/drawer.test.ts +0 -218
  181. package/packages/ui/components/drawer/index.ts +0 -13
  182. package/packages/ui/components/drawer/src/drawer.ts +0 -88
  183. package/packages/ui/components/drawer/src/drawer.vue +0 -157
  184. package/packages/ui/components/drawer/styles/drawer.css +0 -164
  185. package/packages/ui/components/dropdown/README.md +0 -51
  186. package/packages/ui/components/dropdown/__tests__/dropdown.test.ts +0 -143
  187. package/packages/ui/components/dropdown/index.ts +0 -11
  188. package/packages/ui/components/dropdown/src/dropdown.ts +0 -47
  189. package/packages/ui/components/dropdown/src/dropdown.vue +0 -75
  190. package/packages/ui/components/dropdown/styles/dropdown.css +0 -16
  191. package/packages/ui/components/dropdown-button/README.md +0 -78
  192. package/packages/ui/components/dropdown-button/__tests__/dropdown-button.test.ts +0 -75
  193. package/packages/ui/components/dropdown-button/index.ts +0 -11
  194. package/packages/ui/components/dropdown-button/src/dropdown-button-menu-items.vue +0 -79
  195. package/packages/ui/components/dropdown-button/src/dropdown-button.vue +0 -152
  196. package/packages/ui/components/dropdown-button/src/types.ts +0 -98
  197. package/packages/ui/components/dropdown-button/styles/dropdown-button.css +0 -171
  198. package/packages/ui/components/empty/README.md +0 -48
  199. package/packages/ui/components/empty/__tests__/empty.test.ts +0 -37
  200. package/packages/ui/components/empty/index.ts +0 -13
  201. package/packages/ui/components/empty/src/empty.vue +0 -73
  202. package/packages/ui/components/empty/src/types.ts +0 -32
  203. package/packages/ui/components/empty/styles/empty.css +0 -69
  204. package/packages/ui/components/error/README.md +0 -44
  205. package/packages/ui/components/error/__tests__/error.test.ts +0 -34
  206. package/packages/ui/components/error/index.ts +0 -13
  207. package/packages/ui/components/error/src/error.vue +0 -65
  208. package/packages/ui/components/error/src/types.ts +0 -28
  209. package/packages/ui/components/error/styles/error.css +0 -69
  210. package/packages/ui/components/filter-button/README.md +0 -68
  211. package/packages/ui/components/filter-button/__tests__/filter-button.test.ts +0 -30
  212. package/packages/ui/components/filter-button/index.ts +0 -11
  213. package/packages/ui/components/filter-button/src/filter-button.vue +0 -59
  214. package/packages/ui/components/filter-button/src/types.ts +0 -9
  215. package/packages/ui/components/form/README.md +0 -750
  216. package/packages/ui/components/form/__tests__/form-ai-registry-integration.test.ts +0 -214
  217. package/packages/ui/components/form/__tests__/form-field.test.ts +0 -377
  218. package/packages/ui/components/form/__tests__/form-item-ai-actions.test.ts +0 -299
  219. package/packages/ui/components/form/__tests__/form-item.test.ts +0 -110
  220. package/packages/ui/components/form/__tests__/form-wrapper-reject-forward.test.ts +0 -269
  221. package/packages/ui/components/form/__tests__/form.test.ts +0 -148
  222. package/packages/ui/components/form/base/cascader/README.md +0 -75
  223. package/packages/ui/components/form/base/cascader/__tests__/ai-capability.test.ts +0 -507
  224. package/packages/ui/components/form/base/cascader/__tests__/cascader.test.ts +0 -203
  225. package/packages/ui/components/form/base/cascader/index.ts +0 -14
  226. package/packages/ui/components/form/base/cascader/src/cascader.vue +0 -505
  227. package/packages/ui/components/form/base/cascader/src/types.ts +0 -168
  228. package/packages/ui/components/form/base/cascader/styles/cascader.css +0 -186
  229. package/packages/ui/components/form/base/checkbox/README.md +0 -110
  230. package/packages/ui/components/form/base/checkbox/__tests__/ai-capability.test.ts +0 -465
  231. package/packages/ui/components/form/base/checkbox/__tests__/checkbox.test.ts +0 -98
  232. package/packages/ui/components/form/base/checkbox/__tests__/group-integration.test.ts +0 -192
  233. package/packages/ui/components/form/base/checkbox/index.ts +0 -18
  234. package/packages/ui/components/form/base/checkbox/src/checkbox-group.vue +0 -311
  235. package/packages/ui/components/form/base/checkbox/src/checkbox.ts +0 -210
  236. package/packages/ui/components/form/base/checkbox/src/checkbox.vue +0 -368
  237. package/packages/ui/components/form/base/checkbox/styles/checkbox.css +0 -24
  238. package/packages/ui/components/form/base/data-picker/README.md +0 -192
  239. package/packages/ui/components/form/base/data-picker/__tests__/ai-capability.test.ts +0 -566
  240. package/packages/ui/components/form/base/data-picker/__tests__/data-picker.test.ts +0 -628
  241. package/packages/ui/components/form/base/data-picker/index.ts +0 -23
  242. package/packages/ui/components/form/base/data-picker/src/data-picker.ts +0 -192
  243. package/packages/ui/components/form/base/data-picker/src/data-picker.vue +0 -1267
  244. package/packages/ui/components/form/base/data-picker/styles/data-picker.css +0 -174
  245. package/packages/ui/components/form/base/date-picker/README.md +0 -94
  246. package/packages/ui/components/form/base/date-picker/__tests__/ai-capability.test.ts +0 -462
  247. package/packages/ui/components/form/base/date-picker/__tests__/date-picker.test.ts +0 -115
  248. package/packages/ui/components/form/base/date-picker/index.ts +0 -13
  249. package/packages/ui/components/form/base/date-picker/src/date-picker.ts +0 -212
  250. package/packages/ui/components/form/base/date-picker/src/date-picker.vue +0 -871
  251. package/packages/ui/components/form/base/date-picker/styles/date-picker.css +0 -210
  252. package/packages/ui/components/form/base/datetime-picker/README.md +0 -197
  253. package/packages/ui/components/form/base/datetime-picker/__tests__/ai-capability.test.ts +0 -368
  254. package/packages/ui/components/form/base/datetime-picker/__tests__/datetime-picker.test.ts +0 -445
  255. package/packages/ui/components/form/base/datetime-picker/index.ts +0 -13
  256. package/packages/ui/components/form/base/datetime-picker/src/datetime-picker.ts +0 -149
  257. package/packages/ui/components/form/base/datetime-picker/src/datetime-picker.vue +0 -1158
  258. package/packages/ui/components/form/base/datetime-picker/styles/datetime-picker.css +0 -570
  259. package/packages/ui/components/form/base/file-upload/README.md +0 -73
  260. package/packages/ui/components/form/base/file-upload/__tests__/ai-capability.test.ts +0 -223
  261. package/packages/ui/components/form/base/file-upload/__tests__/file-upload.spec.ts +0 -199
  262. package/packages/ui/components/form/base/file-upload/index.ts +0 -11
  263. package/packages/ui/components/form/base/file-upload/src/file-upload.ts +0 -95
  264. package/packages/ui/components/form/base/file-upload/src/file-upload.vue +0 -451
  265. package/packages/ui/components/form/base/file-upload/styles/file-upload.css +0 -57
  266. package/packages/ui/components/form/base/image-upload/README.md +0 -70
  267. package/packages/ui/components/form/base/image-upload/__tests__/ai-capability.test.ts +0 -149
  268. package/packages/ui/components/form/base/image-upload/__tests__/image-upload.spec.ts +0 -282
  269. package/packages/ui/components/form/base/image-upload/index.ts +0 -11
  270. package/packages/ui/components/form/base/image-upload/src/image-upload.ts +0 -76
  271. package/packages/ui/components/form/base/image-upload/src/image-upload.vue +0 -657
  272. package/packages/ui/components/form/base/index.ts +0 -24
  273. package/packages/ui/components/form/base/input/README.md +0 -63
  274. package/packages/ui/components/form/base/input/__tests__/ai-capability.test.ts +0 -143
  275. package/packages/ui/components/form/base/input/__tests__/input.test.ts +0 -195
  276. package/packages/ui/components/form/base/input/index.ts +0 -37
  277. package/packages/ui/components/form/base/input/src/input.ts +0 -104
  278. package/packages/ui/components/form/base/input/src/input.vue +0 -384
  279. package/packages/ui/components/form/base/input/styles/input.css +0 -198
  280. package/packages/ui/components/form/base/location-picker/README.md +0 -92
  281. package/packages/ui/components/form/base/location-picker/__tests__/ai-capability.test.ts +0 -147
  282. package/packages/ui/components/form/base/location-picker/__tests__/location-picker.test.ts +0 -161
  283. package/packages/ui/components/form/base/location-picker/index.ts +0 -13
  284. package/packages/ui/components/form/base/location-picker/src/location-picker.ts +0 -99
  285. package/packages/ui/components/form/base/location-picker/src/location-picker.vue +0 -558
  286. package/packages/ui/components/form/base/radio/README.md +0 -95
  287. package/packages/ui/components/form/base/radio/__tests__/ai-capability.test.ts +0 -578
  288. package/packages/ui/components/form/base/radio/__tests__/group-integration.test.ts +0 -191
  289. package/packages/ui/components/form/base/radio/__tests__/radio.test.ts +0 -64
  290. package/packages/ui/components/form/base/radio/index.ts +0 -18
  291. package/packages/ui/components/form/base/radio/src/radio-group.vue +0 -270
  292. package/packages/ui/components/form/base/radio/src/radio.ts +0 -154
  293. package/packages/ui/components/form/base/radio/src/radio.vue +0 -141
  294. package/packages/ui/components/form/base/radio/styles/radio.css +0 -12
  295. package/packages/ui/components/form/base/region-picker/README.md +0 -166
  296. package/packages/ui/components/form/base/region-picker/__tests__/ai-capability.test.ts +0 -147
  297. package/packages/ui/components/form/base/region-picker/__tests__/region-picker.spec.ts +0 -556
  298. package/packages/ui/components/form/base/region-picker/index.ts +0 -19
  299. package/packages/ui/components/form/base/region-picker/src/region-picker.ts +0 -333
  300. package/packages/ui/components/form/base/region-picker/src/region-picker.vue +0 -552
  301. package/packages/ui/components/form/base/select/README.md +0 -66
  302. package/packages/ui/components/form/base/select/__tests__/ai-capability.test.ts +0 -463
  303. package/packages/ui/components/form/base/select/__tests__/select.test.ts +0 -167
  304. package/packages/ui/components/form/base/select/index.ts +0 -15
  305. package/packages/ui/components/form/base/select/src/select.ts +0 -173
  306. package/packages/ui/components/form/base/select/src/select.vue +0 -534
  307. package/packages/ui/components/form/base/select/styles/select.css +0 -206
  308. package/packages/ui/components/form/base/signature/README.md +0 -96
  309. package/packages/ui/components/form/base/signature/__tests__/ai-capability.test.ts +0 -147
  310. package/packages/ui/components/form/base/signature/__tests__/signature.spec.ts +0 -156
  311. package/packages/ui/components/form/base/signature/index.ts +0 -14
  312. package/packages/ui/components/form/base/signature/src/signature.ts +0 -100
  313. package/packages/ui/components/form/base/signature/src/signature.vue +0 -871
  314. package/packages/ui/components/form/base/switch/README.md +0 -102
  315. package/packages/ui/components/form/base/switch/__tests__/ai-capability.test.ts +0 -545
  316. package/packages/ui/components/form/base/switch/__tests__/switch.test.ts +0 -105
  317. package/packages/ui/components/form/base/switch/index.ts +0 -12
  318. package/packages/ui/components/form/base/switch/src/switch.ts +0 -133
  319. package/packages/ui/components/form/base/switch/src/switch.vue +0 -385
  320. package/packages/ui/components/form/base/switch/styles/switch.css +0 -35
  321. package/packages/ui/components/form/base/text-area/README.md +0 -89
  322. package/packages/ui/components/form/base/text-area/__tests__/ai-capability.test.ts +0 -176
  323. package/packages/ui/components/form/base/text-area/__tests__/text-area.test.ts +0 -152
  324. package/packages/ui/components/form/base/text-area/index.ts +0 -37
  325. package/packages/ui/components/form/base/text-area/src/text-area.ts +0 -137
  326. package/packages/ui/components/form/base/text-area/src/text-area.vue +0 -405
  327. package/packages/ui/components/form/base/text-area/styles/text-area.css +0 -137
  328. package/packages/ui/components/form/base/time-picker/README.md +0 -75
  329. package/packages/ui/components/form/base/time-picker/__tests__/ai-capability.test.ts +0 -135
  330. package/packages/ui/components/form/base/time-picker/__tests__/time-picker.test.ts +0 -258
  331. package/packages/ui/components/form/base/time-picker/index.ts +0 -13
  332. package/packages/ui/components/form/base/time-picker/src/time-picker.ts +0 -141
  333. package/packages/ui/components/form/base/time-picker/src/time-picker.vue +0 -844
  334. package/packages/ui/components/form/base/time-picker/styles/time-picker.css +0 -124
  335. package/packages/ui/components/form/base/upload/README.md +0 -126
  336. package/packages/ui/components/form/base/upload/__tests__/ai-capability.test.ts +0 -145
  337. package/packages/ui/components/form/base/upload/__tests__/upload.spec.ts +0 -288
  338. package/packages/ui/components/form/base/upload/index.ts +0 -11
  339. package/packages/ui/components/form/base/upload/src/upload.ts +0 -171
  340. package/packages/ui/components/form/base/upload/src/upload.vue +0 -890
  341. package/packages/ui/components/form/base/upload/styles/upload.css +0 -116
  342. package/packages/ui/components/form/index.ts +0 -138
  343. package/packages/ui/components/form/items/form-array/README.md +0 -61
  344. package/packages/ui/components/form/items/form-array/__tests__/form-array.test.ts +0 -122
  345. package/packages/ui/components/form/items/form-array/index.ts +0 -2
  346. package/packages/ui/components/form/items/form-array/src/form-array.vue +0 -80
  347. package/packages/ui/components/form/items/form-array/src/types.ts +0 -27
  348. package/packages/ui/components/form/items/form-array/styles/form-array.css +0 -99
  349. package/packages/ui/components/form/items/form-cascader/README.md +0 -132
  350. package/packages/ui/components/form/items/form-cascader/__tests__/form-cascader.test.ts +0 -99
  351. package/packages/ui/components/form/items/form-cascader/index.ts +0 -1
  352. package/packages/ui/components/form/items/form-cascader/src/form-cascader.ts +0 -7
  353. package/packages/ui/components/form/items/form-cascader/src/form-cascader.vue +0 -15
  354. package/packages/ui/components/form/items/form-checkbox/README.md +0 -121
  355. package/packages/ui/components/form/items/form-checkbox/__tests__/form-checkbox.test.ts +0 -93
  356. package/packages/ui/components/form/items/form-checkbox/index.ts +0 -1
  357. package/packages/ui/components/form/items/form-checkbox/src/form-checkbox.ts +0 -7
  358. package/packages/ui/components/form/items/form-checkbox/src/form-checkbox.vue +0 -15
  359. package/packages/ui/components/form/items/form-data-picker/README.md +0 -111
  360. package/packages/ui/components/form/items/form-data-picker/__tests__/form-data-picker.test.ts +0 -98
  361. package/packages/ui/components/form/items/form-data-picker/index.ts +0 -1
  362. package/packages/ui/components/form/items/form-data-picker/src/form-data-picker.ts +0 -7
  363. package/packages/ui/components/form/items/form-data-picker/src/form-data-picker.vue +0 -17
  364. package/packages/ui/components/form/items/form-date-picker/README.md +0 -119
  365. package/packages/ui/components/form/items/form-date-picker/__tests__/form-date-picker.test.ts +0 -104
  366. package/packages/ui/components/form/items/form-date-picker/index.ts +0 -1
  367. package/packages/ui/components/form/items/form-date-picker/src/form-date-picker.ts +0 -7
  368. package/packages/ui/components/form/items/form-date-picker/src/form-date-picker.vue +0 -17
  369. package/packages/ui/components/form/items/form-datetime-picker/README.md +0 -112
  370. package/packages/ui/components/form/items/form-datetime-picker/__tests__/form-datetime-picker.test.ts +0 -105
  371. package/packages/ui/components/form/items/form-datetime-picker/index.ts +0 -1
  372. package/packages/ui/components/form/items/form-datetime-picker/src/form-datetime-picker.ts +0 -7
  373. package/packages/ui/components/form/items/form-datetime-picker/src/form-datetime-picker.vue +0 -17
  374. package/packages/ui/components/form/items/form-dynamic/README.md +0 -105
  375. package/packages/ui/components/form/items/form-dynamic/__tests__/form-dynamic.test.ts +0 -172
  376. package/packages/ui/components/form/items/form-dynamic/index.ts +0 -2
  377. package/packages/ui/components/form/items/form-dynamic/src/form-dynamic.vue +0 -222
  378. package/packages/ui/components/form/items/form-dynamic/src/types.ts +0 -63
  379. package/packages/ui/components/form/items/form-file-upload/README.md +0 -92
  380. package/packages/ui/components/form/items/form-file-upload/__tests__/form-file-upload.test.ts +0 -99
  381. package/packages/ui/components/form/items/form-file-upload/index.ts +0 -1
  382. package/packages/ui/components/form/items/form-file-upload/src/form-file-upload.ts +0 -7
  383. package/packages/ui/components/form/items/form-file-upload/src/form-file-upload.vue +0 -15
  384. package/packages/ui/components/form/items/form-group/README.md +0 -57
  385. package/packages/ui/components/form/items/form-group/__tests__/form-group.test.ts +0 -108
  386. package/packages/ui/components/form/items/form-group/index.ts +0 -2
  387. package/packages/ui/components/form/items/form-group/src/form-group.vue +0 -85
  388. package/packages/ui/components/form/items/form-group/src/types.ts +0 -37
  389. package/packages/ui/components/form/items/form-group/styles/form-group.css +0 -92
  390. package/packages/ui/components/form/items/form-image-upload/README.md +0 -92
  391. package/packages/ui/components/form/items/form-image-upload/__tests__/form-image-upload.test.ts +0 -109
  392. package/packages/ui/components/form/items/form-image-upload/index.ts +0 -1
  393. package/packages/ui/components/form/items/form-image-upload/src/form-image-upload.ts +0 -7
  394. package/packages/ui/components/form/items/form-image-upload/src/form-image-upload.vue +0 -37
  395. package/packages/ui/components/form/items/form-input/README.md +0 -110
  396. package/packages/ui/components/form/items/form-input/__tests__/form-input.test.ts +0 -87
  397. package/packages/ui/components/form/items/form-input/index.ts +0 -1
  398. package/packages/ui/components/form/items/form-input/src/form-input.ts +0 -7
  399. package/packages/ui/components/form/items/form-input/src/form-input.vue +0 -15
  400. package/packages/ui/components/form/items/form-location-picker/README.md +0 -119
  401. package/packages/ui/components/form/items/form-location-picker/__tests__/form-location-picker.test.ts +0 -98
  402. package/packages/ui/components/form/items/form-location-picker/index.ts +0 -1
  403. package/packages/ui/components/form/items/form-location-picker/src/form-location-picker.ts +0 -7
  404. package/packages/ui/components/form/items/form-location-picker/src/form-location-picker.vue +0 -15
  405. package/packages/ui/components/form/items/form-radio/README.md +0 -125
  406. package/packages/ui/components/form/items/form-radio/__tests__/form-radio.test.ts +0 -104
  407. package/packages/ui/components/form/items/form-radio/index.ts +0 -1
  408. package/packages/ui/components/form/items/form-radio/src/form-radio.ts +0 -7
  409. package/packages/ui/components/form/items/form-radio/src/form-radio.vue +0 -15
  410. package/packages/ui/components/form/items/form-region-picker/README.md +0 -111
  411. package/packages/ui/components/form/items/form-region-picker/__tests__/form-region-picker.test.ts +0 -95
  412. package/packages/ui/components/form/items/form-region-picker/index.ts +0 -1
  413. package/packages/ui/components/form/items/form-region-picker/src/form-region-picker.ts +0 -7
  414. package/packages/ui/components/form/items/form-region-picker/src/form-region-picker.vue +0 -15
  415. package/packages/ui/components/form/items/form-select/README.md +0 -117
  416. package/packages/ui/components/form/items/form-select/__tests__/form-select.test.ts +0 -80
  417. package/packages/ui/components/form/items/form-select/index.ts +0 -1
  418. package/packages/ui/components/form/items/form-select/src/form-select.ts +0 -7
  419. package/packages/ui/components/form/items/form-select/src/form-select.vue +0 -15
  420. package/packages/ui/components/form/items/form-signature/README.md +0 -89
  421. package/packages/ui/components/form/items/form-signature/__tests__/form-signature.test.ts +0 -109
  422. package/packages/ui/components/form/items/form-signature/index.ts +0 -1
  423. package/packages/ui/components/form/items/form-signature/src/form-signature.ts +0 -7
  424. package/packages/ui/components/form/items/form-signature/src/form-signature.vue +0 -15
  425. package/packages/ui/components/form/items/form-slider/README.md +0 -125
  426. package/packages/ui/components/form/items/form-slider/__tests__/form-slider.test.ts +0 -95
  427. package/packages/ui/components/form/items/form-slider/index.ts +0 -1
  428. package/packages/ui/components/form/items/form-slider/src/form-slider.ts +0 -7
  429. package/packages/ui/components/form/items/form-slider/src/form-slider.vue +0 -15
  430. package/packages/ui/components/form/items/form-subform/README.md +0 -71
  431. package/packages/ui/components/form/items/form-subform/__tests__/form-subform.test.ts +0 -116
  432. package/packages/ui/components/form/items/form-subform/index.ts +0 -2
  433. package/packages/ui/components/form/items/form-subform/src/form-subform.vue +0 -92
  434. package/packages/ui/components/form/items/form-subform/src/types.ts +0 -32
  435. package/packages/ui/components/form/items/form-subform/styles/form-subform.css +0 -127
  436. package/packages/ui/components/form/items/form-switch/README.md +0 -118
  437. package/packages/ui/components/form/items/form-switch/__tests__/form-switch.test.ts +0 -88
  438. package/packages/ui/components/form/items/form-switch/index.ts +0 -1
  439. package/packages/ui/components/form/items/form-switch/src/form-switch.ts +0 -7
  440. package/packages/ui/components/form/items/form-switch/src/form-switch.vue +0 -15
  441. package/packages/ui/components/form/items/form-table/OPTIMIZATION_REPORT.md +0 -205
  442. package/packages/ui/components/form/items/form-table/README.md +0 -144
  443. package/packages/ui/components/form/items/form-table/__tests__/form-table.test.ts +0 -373
  444. package/packages/ui/components/form/items/form-table/index.ts +0 -3
  445. package/packages/ui/components/form/items/form-table/src/column-filter-popover.vue +0 -149
  446. package/packages/ui/components/form/items/form-table/src/form-table.vue +0 -1315
  447. package/packages/ui/components/form/items/form-table/src/types.ts +0 -165
  448. package/packages/ui/components/form/items/form-table/styles/column-filter-popover.css +0 -138
  449. package/packages/ui/components/form/items/form-table/styles/form-table.css +0 -393
  450. package/packages/ui/components/form/items/form-textarea/README.md +0 -123
  451. package/packages/ui/components/form/items/form-textarea/__tests__/form-textarea.test.ts +0 -93
  452. package/packages/ui/components/form/items/form-textarea/index.ts +0 -1
  453. package/packages/ui/components/form/items/form-textarea/src/form-textarea.ts +0 -7
  454. package/packages/ui/components/form/items/form-textarea/src/form-textarea.vue +0 -15
  455. package/packages/ui/components/form/items/form-time-picker/README.md +0 -117
  456. package/packages/ui/components/form/items/form-time-picker/__tests__/form-time-picker.test.ts +0 -105
  457. package/packages/ui/components/form/items/form-time-picker/index.ts +0 -1
  458. package/packages/ui/components/form/items/form-time-picker/src/form-time-picker.ts +0 -7
  459. package/packages/ui/components/form/items/form-time-picker/src/form-time-picker.vue +0 -17
  460. package/packages/ui/components/form/items/form-upload/README.md +0 -92
  461. package/packages/ui/components/form/items/form-upload/__tests__/form-upload.test.ts +0 -137
  462. package/packages/ui/components/form/items/form-upload/index.ts +0 -1
  463. package/packages/ui/components/form/items/form-upload/src/form-upload.ts +0 -7
  464. package/packages/ui/components/form/items/form-upload/src/form-upload.vue +0 -15
  465. package/packages/ui/components/form/shared/types.ts +0 -82
  466. package/packages/ui/components/form/src/form-field.ts +0 -96
  467. package/packages/ui/components/form/src/form-field.vue +0 -404
  468. package/packages/ui/components/form/src/form-item.vue +0 -646
  469. package/packages/ui/components/form/src/form.ts +0 -11
  470. package/packages/ui/components/form/src/form.vue +0 -156
  471. package/packages/ui/components/form/src/types.ts +0 -337
  472. package/packages/ui/components/form/src/use-form-field.ts +0 -190
  473. package/packages/ui/components/form/styles/form-ai-actions.css +0 -41
  474. package/packages/ui/components/form/styles/form-field.css +0 -123
  475. package/packages/ui/components/form/styles/form-item-ai-status.css +0 -212
  476. package/packages/ui/components/form/styles/form-item.css +0 -218
  477. package/packages/ui/components/form/styles/form.css +0 -132
  478. package/packages/ui/components/form-ai-status/README.md +0 -86
  479. package/packages/ui/components/form-ai-status/__tests__/form-ai-status.test.ts +0 -183
  480. package/packages/ui/components/form-ai-status/index.ts +0 -12
  481. package/packages/ui/components/form-ai-status/src/form-ai-status.vue +0 -254
  482. package/packages/ui/components/form-ai-status/src/types.ts +0 -36
  483. package/packages/ui/components/form-ai-status/styles/form-ai-status.css +0 -238
  484. package/packages/ui/components/form-ai-toolbar/README.md +0 -100
  485. package/packages/ui/components/form-ai-toolbar/__tests__/form-ai-toolbar.test.ts +0 -344
  486. package/packages/ui/components/form-ai-toolbar/index.ts +0 -13
  487. package/packages/ui/components/form-ai-toolbar/src/form-ai-toolbar.vue +0 -598
  488. package/packages/ui/components/form-ai-toolbar/src/types.ts +0 -130
  489. package/packages/ui/components/form-ai-toolbar/styles/form-ai-toolbar.css +0 -281
  490. package/packages/ui/components/icon/README.md +0 -137
  491. package/packages/ui/components/icon/__tests__/icon.test.ts +0 -125
  492. package/packages/ui/components/icon/index.ts +0 -13
  493. package/packages/ui/components/icon/src/icon.ts +0 -67
  494. package/packages/ui/components/icon/src/icon.vue +0 -69
  495. package/packages/ui/components/icon/styles/icon.css +0 -41
  496. package/packages/ui/components/image-preview/README.md +0 -90
  497. package/packages/ui/components/image-preview/__tests__/image-preview.test.ts +0 -183
  498. package/packages/ui/components/image-preview/index.ts +0 -13
  499. package/packages/ui/components/image-preview/src/image-preview.vue +0 -71
  500. package/packages/ui/components/image-preview/src/index.ts +0 -11
  501. package/packages/ui/components/image-preview/src/preview-layer.vue +0 -90
  502. package/packages/ui/components/image-preview/src/types.ts +0 -63
  503. package/packages/ui/components/image-preview/styles/image-preview.css +0 -39
  504. package/packages/ui/components/layout/app-bar/README.md +0 -59
  505. package/packages/ui/components/layout/app-bar/__tests__/app-bar.test.ts +0 -124
  506. package/packages/ui/components/layout/app-bar/index.ts +0 -13
  507. package/packages/ui/components/layout/app-bar/src/app-bar.vue +0 -106
  508. package/packages/ui/components/layout/app-bar/src/types.ts +0 -43
  509. package/packages/ui/components/layout/app-bar/styles/app-bar.css +0 -175
  510. package/packages/ui/components/layout/card/README.md +0 -90
  511. package/packages/ui/components/layout/card/__tests__/card.test.ts +0 -321
  512. package/packages/ui/components/layout/card/index.ts +0 -13
  513. package/packages/ui/components/layout/card/src/card.vue +0 -210
  514. package/packages/ui/components/layout/card/src/types.ts +0 -79
  515. package/packages/ui/components/layout/card/styles/card.css +0 -334
  516. package/packages/ui/components/layout/container/README.md +0 -29
  517. package/packages/ui/components/layout/container/__tests__/container.test.ts +0 -74
  518. package/packages/ui/components/layout/container/index.ts +0 -13
  519. package/packages/ui/components/layout/container/src/container.vue +0 -35
  520. package/packages/ui/components/layout/container/src/types.ts +0 -15
  521. package/packages/ui/components/layout/container/styles/container.css +0 -50
  522. package/packages/ui/components/layout/detail-layout/README.md +0 -30
  523. package/packages/ui/components/layout/detail-layout/__tests__/detail-layout.test.ts +0 -75
  524. package/packages/ui/components/layout/detail-layout/index.ts +0 -13
  525. package/packages/ui/components/layout/detail-layout/src/detail-layout.vue +0 -53
  526. package/packages/ui/components/layout/detail-layout/src/types.ts +0 -22
  527. package/packages/ui/components/layout/detail-layout/styles/detail-layout.css +0 -71
  528. package/packages/ui/components/layout/form-layout/README.md +0 -59
  529. package/packages/ui/components/layout/form-layout/__tests__/form-layout.test.ts +0 -140
  530. package/packages/ui/components/layout/form-layout/index.ts +0 -13
  531. package/packages/ui/components/layout/form-layout/src/form-layout.vue +0 -93
  532. package/packages/ui/components/layout/form-layout/src/types.ts +0 -64
  533. package/packages/ui/components/layout/form-layout/styles/form-layout.css +0 -98
  534. package/packages/ui/components/layout/grid/README.md +0 -41
  535. package/packages/ui/components/layout/grid/__tests__/grid.test.ts +0 -77
  536. package/packages/ui/components/layout/grid/index.ts +0 -13
  537. package/packages/ui/components/layout/grid/src/grid.vue +0 -79
  538. package/packages/ui/components/layout/grid/src/types.ts +0 -44
  539. package/packages/ui/components/layout/grid/styles/grid.css +0 -46
  540. package/packages/ui/components/layout/hero/README.md +0 -59
  541. package/packages/ui/components/layout/hero/__tests__/hero.test.ts +0 -112
  542. package/packages/ui/components/layout/hero/index.ts +0 -13
  543. package/packages/ui/components/layout/hero/src/hero.vue +0 -143
  544. package/packages/ui/components/layout/hero/src/types.ts +0 -44
  545. package/packages/ui/components/layout/hero/styles/hero.css +0 -129
  546. package/packages/ui/components/layout/inline/README.md +0 -30
  547. package/packages/ui/components/layout/inline/__tests__/inline.test.ts +0 -154
  548. package/packages/ui/components/layout/inline/index.ts +0 -13
  549. package/packages/ui/components/layout/inline/src/inline.vue +0 -99
  550. package/packages/ui/components/layout/inline/src/types.ts +0 -23
  551. package/packages/ui/components/layout/inline/styles/inline.css +0 -150
  552. package/packages/ui/components/layout/master-detail/README.md +0 -36
  553. package/packages/ui/components/layout/master-detail/__tests__/master-detail.test.ts +0 -104
  554. package/packages/ui/components/layout/master-detail/index.ts +0 -13
  555. package/packages/ui/components/layout/master-detail/src/master-detail.vue +0 -72
  556. package/packages/ui/components/layout/master-detail/src/types.ts +0 -28
  557. package/packages/ui/components/layout/master-detail/styles/master-detail.css +0 -82
  558. package/packages/ui/components/layout/page/README.md +0 -35
  559. package/packages/ui/components/layout/page/__tests__/page.test.ts +0 -136
  560. package/packages/ui/components/layout/page/index.ts +0 -13
  561. package/packages/ui/components/layout/page/src/page.vue +0 -85
  562. package/packages/ui/components/layout/page/src/types.ts +0 -39
  563. package/packages/ui/components/layout/page/styles/page.css +0 -177
  564. package/packages/ui/components/layout/page-header/README.md +0 -39
  565. package/packages/ui/components/layout/page-header/__tests__/page-header.test.ts +0 -198
  566. package/packages/ui/components/layout/page-header/index.ts +0 -13
  567. package/packages/ui/components/layout/page-header/src/page-header.vue +0 -133
  568. package/packages/ui/components/layout/page-header/src/types.ts +0 -56
  569. package/packages/ui/components/layout/page-header/styles/page-header.css +0 -155
  570. package/packages/ui/components/layout/section/README.md +0 -40
  571. package/packages/ui/components/layout/section/__tests__/section.test.ts +0 -121
  572. package/packages/ui/components/layout/section/index.ts +0 -13
  573. package/packages/ui/components/layout/section/src/section.vue +0 -79
  574. package/packages/ui/components/layout/section/src/types.ts +0 -28
  575. package/packages/ui/components/layout/section/styles/section.css +0 -103
  576. package/packages/ui/components/layout/sidebar-layout/README.md +0 -60
  577. package/packages/ui/components/layout/sidebar-layout/__tests__/sidebar-layout.test.ts +0 -220
  578. package/packages/ui/components/layout/sidebar-layout/index.ts +0 -13
  579. package/packages/ui/components/layout/sidebar-layout/src/sidebar-layout.vue +0 -113
  580. package/packages/ui/components/layout/sidebar-layout/src/types.ts +0 -54
  581. package/packages/ui/components/layout/sidebar-layout/styles/sidebar-layout.css +0 -211
  582. package/packages/ui/components/layout/split/README.md +0 -40
  583. package/packages/ui/components/layout/split/__tests__/split.test.ts +0 -99
  584. package/packages/ui/components/layout/split/index.ts +0 -13
  585. package/packages/ui/components/layout/split/src/split.vue +0 -65
  586. package/packages/ui/components/layout/split/src/types.ts +0 -49
  587. package/packages/ui/components/layout/split/styles/split.css +0 -40
  588. package/packages/ui/components/layout/stack/README.md +0 -29
  589. package/packages/ui/components/layout/stack/__tests__/stack.test.ts +0 -66
  590. package/packages/ui/components/layout/stack/index.ts +0 -13
  591. package/packages/ui/components/layout/stack/src/stack.vue +0 -31
  592. package/packages/ui/components/layout/stack/src/types.ts +0 -14
  593. package/packages/ui/components/layout/stack/styles/stack.css +0 -61
  594. package/packages/ui/components/layout/state-container/README.md +0 -45
  595. package/packages/ui/components/layout/state-container/__tests__/state-container.test.ts +0 -123
  596. package/packages/ui/components/layout/state-container/index.ts +0 -13
  597. package/packages/ui/components/layout/state-container/src/state-container.vue +0 -72
  598. package/packages/ui/components/layout/state-container/src/types.ts +0 -46
  599. package/packages/ui/components/layout/state-container/styles/state-container.css +0 -71
  600. package/packages/ui/components/layout/toolbar/README.md +0 -34
  601. package/packages/ui/components/layout/toolbar/__tests__/toolbar.test.ts +0 -90
  602. package/packages/ui/components/layout/toolbar/index.ts +0 -13
  603. package/packages/ui/components/layout/toolbar/src/toolbar.vue +0 -50
  604. package/packages/ui/components/layout/toolbar/src/types.ts +0 -19
  605. package/packages/ui/components/layout/toolbar/styles/toolbar.css +0 -80
  606. package/packages/ui/components/loading/README.md +0 -39
  607. package/packages/ui/components/loading/__tests__/loading.test.ts +0 -37
  608. package/packages/ui/components/loading/index.ts +0 -13
  609. package/packages/ui/components/loading/src/loading.vue +0 -59
  610. package/packages/ui/components/loading/src/types.ts +0 -27
  611. package/packages/ui/components/loading/styles/loading.css +0 -59
  612. package/packages/ui/components/menu/README.md +0 -51
  613. package/packages/ui/components/menu/__tests__/menu.test.ts +0 -80
  614. package/packages/ui/components/menu/index.ts +0 -11
  615. package/packages/ui/components/menu/src/menu.ts +0 -49
  616. package/packages/ui/components/menu/src/menu.vue +0 -103
  617. package/packages/ui/components/menu/styles/menu.css +0 -19
  618. package/packages/ui/components/message/README.md +0 -69
  619. package/packages/ui/components/message/__tests__/message.test.ts +0 -98
  620. package/packages/ui/components/message/index.ts +0 -13
  621. package/packages/ui/components/message/src/message.ts +0 -87
  622. package/packages/ui/components/message/src/message.vue +0 -88
  623. package/packages/ui/components/message/styles/message.css +0 -70
  624. package/packages/ui/components/metric/README.md +0 -63
  625. package/packages/ui/components/metric/__tests__/metric.test.ts +0 -166
  626. package/packages/ui/components/metric/index.ts +0 -13
  627. package/packages/ui/components/metric/src/metric.vue +0 -107
  628. package/packages/ui/components/metric/src/types.ts +0 -50
  629. package/packages/ui/components/metric/styles/metric.css +0 -233
  630. package/packages/ui/components/modal/README.md +0 -91
  631. package/packages/ui/components/modal/__tests__/modal.test.ts +0 -145
  632. package/packages/ui/components/modal/index.ts +0 -13
  633. package/packages/ui/components/modal/src/modal.ts +0 -153
  634. package/packages/ui/components/modal/src/modal.vue +0 -234
  635. package/packages/ui/components/modal/styles/modal.css +0 -104
  636. package/packages/ui/components/more-action-button/README.md +0 -68
  637. package/packages/ui/components/more-action-button/__tests__/more-action-button.test.ts +0 -30
  638. package/packages/ui/components/more-action-button/index.ts +0 -11
  639. package/packages/ui/components/more-action-button/src/more-action-button.vue +0 -59
  640. package/packages/ui/components/more-action-button/src/types.ts +0 -9
  641. package/packages/ui/components/navigation/side-nav/README.md +0 -59
  642. package/packages/ui/components/navigation/side-nav/__tests__/side-nav.test.ts +0 -105
  643. package/packages/ui/components/navigation/side-nav/index.ts +0 -13
  644. package/packages/ui/components/navigation/side-nav/src/side-nav.vue +0 -147
  645. package/packages/ui/components/navigation/side-nav/src/types.ts +0 -50
  646. package/packages/ui/components/navigation/side-nav/styles/side-nav.css +0 -171
  647. package/packages/ui/components/notification/README.md +0 -82
  648. package/packages/ui/components/notification/__tests__/notification.test.ts +0 -150
  649. package/packages/ui/components/notification/index.ts +0 -30
  650. package/packages/ui/components/notification/src/notification.vue +0 -114
  651. package/packages/ui/components/notification/src/types.ts +0 -67
  652. package/packages/ui/components/notification/src/use-notification.ts +0 -136
  653. package/packages/ui/components/notification/styles/notification.css +0 -4
  654. package/packages/ui/components/pagination/README.md +0 -82
  655. package/packages/ui/components/pagination/__tests__/pagination.test.ts +0 -210
  656. package/packages/ui/components/pagination/index.ts +0 -13
  657. package/packages/ui/components/pagination/src/pagination.ts +0 -86
  658. package/packages/ui/components/pagination/src/pagination.vue +0 -270
  659. package/packages/ui/components/pagination/styles/pagination.css +0 -143
  660. package/packages/ui/components/progress/README.md +0 -132
  661. package/packages/ui/components/progress/__tests__/progress.test.ts +0 -81
  662. package/packages/ui/components/progress/index.ts +0 -12
  663. package/packages/ui/components/progress/src/progress.ts +0 -80
  664. package/packages/ui/components/progress/src/progress.vue +0 -202
  665. package/packages/ui/components/skeleton/README.md +0 -71
  666. package/packages/ui/components/skeleton/__tests__/skeleton.test.ts +0 -138
  667. package/packages/ui/components/skeleton/index.ts +0 -13
  668. package/packages/ui/components/skeleton/src/skeleton.ts +0 -46
  669. package/packages/ui/components/skeleton/src/skeleton.vue +0 -67
  670. package/packages/ui/components/skeleton/styles/skeleton.css +0 -75
  671. package/packages/ui/components/slider/README.md +0 -87
  672. package/packages/ui/components/slider/__tests__/ai-capability.test.ts +0 -469
  673. package/packages/ui/components/slider/__tests__/slider.test.ts +0 -235
  674. package/packages/ui/components/slider/index.ts +0 -26
  675. package/packages/ui/components/slider/src/slider.ts +0 -192
  676. package/packages/ui/components/slider/src/slider.vue +0 -504
  677. package/packages/ui/components/slider/src/use-slider.ts +0 -399
  678. package/packages/ui/components/slider/styles/slider.css +0 -344
  679. package/packages/ui/components/split-button/README.md +0 -71
  680. package/packages/ui/components/split-button/__tests__/split-button.test.ts +0 -32
  681. package/packages/ui/components/split-button/index.ts +0 -11
  682. package/packages/ui/components/split-button/src/split-button.vue +0 -69
  683. package/packages/ui/components/split-button/src/types.ts +0 -34
  684. package/packages/ui/components/split-button/styles/split-button.css +0 -15
  685. package/packages/ui/components/status-dot/README.md +0 -42
  686. package/packages/ui/components/status-dot/__tests__/status-dot.test.ts +0 -53
  687. package/packages/ui/components/status-dot/index.ts +0 -13
  688. package/packages/ui/components/status-dot/src/status-dot.vue +0 -39
  689. package/packages/ui/components/status-dot/src/types.ts +0 -23
  690. package/packages/ui/components/status-dot/styles/status-dot.css +0 -65
  691. package/packages/ui/components/steps/README.md +0 -101
  692. package/packages/ui/components/steps/__tests__/steps.test.ts +0 -261
  693. package/packages/ui/components/steps/index.ts +0 -15
  694. package/packages/ui/components/steps/src/step.vue +0 -99
  695. package/packages/ui/components/steps/src/steps.ts +0 -93
  696. package/packages/ui/components/steps/src/steps.vue +0 -143
  697. package/packages/ui/components/steps/styles/step.css +0 -116
  698. package/packages/ui/components/steps/styles/steps.css +0 -200
  699. package/packages/ui/components/table/README.md +0 -81
  700. package/packages/ui/components/table/__tests__/table.test.ts +0 -162
  701. package/packages/ui/components/table/index.ts +0 -13
  702. package/packages/ui/components/table/src/table.ts +0 -195
  703. package/packages/ui/components/table/src/table.vue +0 -453
  704. package/packages/ui/components/table/styles/table.css +0 -88
  705. package/packages/ui/components/tabs/README.md +0 -88
  706. package/packages/ui/components/tabs/__tests__/tabs.test.ts +0 -161
  707. package/packages/ui/components/tabs/index.ts +0 -19
  708. package/packages/ui/components/tabs/src/tab-pane.ts +0 -18
  709. package/packages/ui/components/tabs/src/tab-pane.vue +0 -11
  710. package/packages/ui/components/tabs/src/tabs-content.vue +0 -58
  711. package/packages/ui/components/tabs/src/tabs-list.vue +0 -36
  712. package/packages/ui/components/tabs/src/tabs-trigger.vue +0 -70
  713. package/packages/ui/components/tabs/src/tabs.ts +0 -94
  714. package/packages/ui/components/tabs/src/tabs.vue +0 -101
  715. package/packages/ui/components/tabs/src/types.ts +0 -126
  716. package/packages/ui/components/tabs/styles/tabs.css +0 -239
  717. package/packages/ui/components/tag/README.md +0 -67
  718. package/packages/ui/components/tag/__tests__/tag.test.ts +0 -222
  719. package/packages/ui/components/tag/index.ts +0 -13
  720. package/packages/ui/components/tag/src/tag.ts +0 -87
  721. package/packages/ui/components/tag/src/tag.vue +0 -163
  722. package/packages/ui/components/tag/styles/tag.css +0 -47
  723. package/packages/ui/components/timeline/README.md +0 -80
  724. package/packages/ui/components/timeline/__tests__/timeline.test.ts +0 -78
  725. package/packages/ui/components/timeline/index.ts +0 -15
  726. package/packages/ui/components/timeline/src/timeline-item.vue +0 -38
  727. package/packages/ui/components/timeline/src/timeline.ts +0 -76
  728. package/packages/ui/components/timeline/src/timeline.vue +0 -30
  729. package/packages/ui/components/timeline/styles/timeline-item.css +0 -49
  730. package/packages/ui/components/timeline/styles/timeline.css +0 -43
  731. package/packages/ui/components/tooltip/README.md +0 -134
  732. package/packages/ui/components/tooltip/__tests__/tooltip.test.ts +0 -125
  733. package/packages/ui/components/tooltip/index.ts +0 -12
  734. package/packages/ui/components/tooltip/src/tooltip.ts +0 -66
  735. package/packages/ui/components/tooltip/src/tooltip.vue +0 -189
  736. package/packages/ui/components/tree/README.md +0 -54
  737. package/packages/ui/components/tree/__tests__/tree.test.ts +0 -80
  738. package/packages/ui/components/tree/index.ts +0 -11
  739. package/packages/ui/components/tree/src/tree.ts +0 -51
  740. package/packages/ui/components/tree/src/tree.vue +0 -242
  741. package/packages/ui/components/tree/styles/tree.css +0 -31
  742. package/packages/ui/components/typography/README.md +0 -120
  743. package/packages/ui/components/typography/__tests__/typography.test.ts +0 -164
  744. package/packages/ui/components/typography/index.ts +0 -13
  745. package/packages/ui/components/typography/src/typography.ts +0 -95
  746. package/packages/ui/components/typography/src/typography.vue +0 -94
  747. package/packages/ui/components/typography/styles/typography.css +0 -47
  748. package/packages/ui/components/upload/README.md +0 -103
  749. package/packages/ui/components/upload/__tests__/upload.test.ts +0 -181
  750. package/packages/ui/components/upload/index.ts +0 -11
  751. package/packages/ui/components/upload/src/upload.ts +0 -92
  752. package/packages/ui/components/upload/src/upload.vue +0 -382
  753. package/packages/ui/components/upload/styles/upload.css +0 -283
  754. package/packages/ui/components/watermark/README.md +0 -94
  755. package/packages/ui/components/watermark/__tests__/watermark.test.ts +0 -252
  756. package/packages/ui/components/watermark/index.ts +0 -13
  757. package/packages/ui/components/watermark/src/index.ts +0 -13
  758. package/packages/ui/components/watermark/src/types.ts +0 -86
  759. package/packages/ui/components/watermark/src/use-watermark.ts +0 -132
  760. package/packages/ui/components/watermark/src/watermark.vue +0 -181
  761. package/packages/ui/components/watermark/styles/watermark.css +0 -27
  762. package/packages/ui/index.ts +0 -338
  763. package/packages/ui/lib/utils.ts +0 -6
  764. package/packages/ui/lowcode-agent/icons.ts +0 -148
  765. package/packages/ui/lowcode-agent/registry.json +0 -37004
  766. package/packages/ui/src/composables/__tests__/use-floating-popup.test.ts +0 -275
  767. package/packages/ui/src/composables/__tests__/use-form-ai-actions.test.ts +0 -101
  768. package/packages/ui/src/composables/__tests__/use-form-ai-registry.test.ts +0 -92
  769. package/packages/ui/src/composables/__tests__/use-form-ai.test.ts +0 -116
  770. package/packages/ui/src/composables/index.ts +0 -10
  771. package/packages/ui/src/composables/use-ai-state-machine.ts +0 -142
  772. package/packages/ui/src/composables/use-floating-popup.ts +0 -237
  773. package/packages/ui/src/composables/use-form-ai-registry.ts +0 -198
  774. package/packages/ui/src/composables/use-form-ai.ts +0 -280
  775. package/packages/ui/src/composables/useLightbox.ts +0 -51
  776. package/packages/ui/src/request/document.ts +0 -53
  777. package/packages/ui/src/request/enum.ts +0 -18
  778. package/packages/ui/src/request/index.ts +0 -4
  779. package/packages/ui/src/request/request.ts +0 -200
  780. package/packages/ui/src/request/types.ts +0 -27
  781. package/packages/ui/src/types/form-ai-registry.ts +0 -70
  782. package/packages/ui/src/types/form-ai.ts +0 -84
  783. package/packages/ui/src/utils/date-format.ts +0 -60
  784. package/packages/ui/styles/design-tokens.css +0 -383
  785. package/packages/ui/styles/tailwind.css +0 -76
  786. package/packages/ui/styles/tokens.css +0 -7
  787. package/playground/index.html +0 -12
  788. package/playground/postcss.config.cjs +0 -5
  789. package/playground/src/App.vue +0 -3
  790. package/playground/src/__tests__/__debug-input.test.ts +0 -29
  791. package/playground/src/__tests__/button-ai-confirm.test.ts +0 -41
  792. package/playground/src/__tests__/home-render.test.ts +0 -87
  793. package/playground/src/__tests__/icon-library.test.ts +0 -107
  794. package/playground/src/__tests__/input-ai-confirm.test.ts +0 -113
  795. package/playground/src/__tests__/textarea-ai-button.test.ts +0 -87
  796. package/playground/src/__tests__/textarea-wordlimit.test.ts +0 -66
  797. package/playground/src/chart-theme.ts +0 -22
  798. package/playground/src/components/AiStateFlow.vue +0 -59
  799. package/playground/src/components/ComponentShowcase.vue +0 -180
  800. package/playground/src/composables/useAiStateMachine.ts +0 -111
  801. package/playground/src/data/component-api.ts +0 -187
  802. package/playground/src/data/component-meta.ts +0 -84
  803. package/playground/src/layouts/DefaultLayout.vue +0 -318
  804. package/playground/src/main.ts +0 -18
  805. package/playground/src/router/index.ts +0 -101
  806. package/playground/src/views/AffixDemo.vue +0 -133
  807. package/playground/src/views/AiStateFlowDemo.vue +0 -170
  808. package/playground/src/views/AlertDemo.vue +0 -554
  809. package/playground/src/views/AnchorDemo.vue +0 -150
  810. package/playground/src/views/AppBarDemo.vue +0 -722
  811. package/playground/src/views/AvatarDemo.vue +0 -266
  812. package/playground/src/views/BackTopDemo.vue +0 -71
  813. package/playground/src/views/BadgeDemo.vue +0 -109
  814. package/playground/src/views/BatchActionButtonDemo.vue +0 -65
  815. package/playground/src/views/BreadcrumbDemo.vue +0 -248
  816. package/playground/src/views/ButtonDemo.vue +0 -344
  817. package/playground/src/views/CardDemo.vue +0 -254
  818. package/playground/src/views/CarouselDemo.vue +0 -158
  819. package/playground/src/views/CascaderDemo.vue +0 -425
  820. package/playground/src/views/ChartDemo.vue +0 -232
  821. package/playground/src/views/CheckboxDemo.vue +0 -339
  822. package/playground/src/views/DataGridDemo.vue +0 -518
  823. package/playground/src/views/DataPickerDemo.vue +0 -240
  824. package/playground/src/views/DatePickerDemo.vue +0 -292
  825. package/playground/src/views/DateTimePickerDemo.vue +0 -208
  826. package/playground/src/views/DesignSpecDemo.vue +0 -1647
  827. package/playground/src/views/DividerDemo.vue +0 -77
  828. package/playground/src/views/DocumentActionHeaderDemo.vue +0 -113
  829. package/playground/src/views/DocumentFormPageDemo.vue +0 -200
  830. package/playground/src/views/DrawerDemo.vue +0 -166
  831. package/playground/src/views/DropdownButtonDemo.vue +0 -74
  832. package/playground/src/views/DropdownDemo.vue +0 -306
  833. package/playground/src/views/EmptyDemo.vue +0 -104
  834. package/playground/src/views/ErrorDemo.vue +0 -111
  835. package/playground/src/views/FileUploadDemo.vue +0 -241
  836. package/playground/src/views/FilterButtonDemo.vue +0 -65
  837. package/playground/src/views/FormFieldAiDemo.vue +0 -364
  838. package/playground/src/views/FormFieldBasicDemo.vue +0 -174
  839. package/playground/src/views/FormFieldBusinessDemo.vue +0 -245
  840. package/playground/src/views/FormFieldDemo.vue +0 -178
  841. package/playground/src/views/FormFieldLayoutDemo.vue +0 -183
  842. package/playground/src/views/FormFieldValidationDemo.vue +0 -163
  843. package/playground/src/views/FormItemAiDemo.vue +0 -371
  844. package/playground/src/views/FormSelectDemo.vue +0 -519
  845. package/playground/src/views/FormUploadDemo.vue +0 -536
  846. package/playground/src/views/HeroDemo.vue +0 -836
  847. package/playground/src/views/Home.vue +0 -213
  848. package/playground/src/views/IconDemo.vue +0 -186
  849. package/playground/src/views/IconLibraryView.vue +0 -370
  850. package/playground/src/views/IconRenderTest.vue +0 -86
  851. package/playground/src/views/ImagePreviewDemo.vue +0 -368
  852. package/playground/src/views/ImageUploadDemo.vue +0 -199
  853. package/playground/src/views/InputDemo.vue +0 -348
  854. package/playground/src/views/LayoutDemo.vue +0 -946
  855. package/playground/src/views/LoadingDemo.vue +0 -95
  856. package/playground/src/views/LocationPickerDemo.vue +0 -218
  857. package/playground/src/views/MenuDemo.vue +0 -283
  858. package/playground/src/views/MessageDemo.vue +0 -201
  859. package/playground/src/views/MetricDemo.vue +0 -535
  860. package/playground/src/views/ModalDemo.vue +0 -291
  861. package/playground/src/views/MoreActionButtonDemo.vue +0 -65
  862. package/playground/src/views/NewDocumentDemo.vue +0 -973
  863. package/playground/src/views/NotificationDemo.vue +0 -255
  864. package/playground/src/views/PaginationDemo.vue +0 -292
  865. package/playground/src/views/ProgressDemo.vue +0 -356
  866. package/playground/src/views/RadioDemo.vue +0 -414
  867. package/playground/src/views/RegionPickerDemo.vue +0 -249
  868. package/playground/src/views/ScalingRulesDemo.vue +0 -333
  869. package/playground/src/views/SelectDemo.vue +0 -453
  870. package/playground/src/views/SideNavDemo.vue +0 -769
  871. package/playground/src/views/SignatureDemo.vue +0 -205
  872. package/playground/src/views/SkeletonDemo.vue +0 -109
  873. package/playground/src/views/SliderDemo.vue +0 -312
  874. package/playground/src/views/SplitButtonDemo.vue +0 -65
  875. package/playground/src/views/StatusDotDemo.vue +0 -131
  876. package/playground/src/views/StepsDemo.vue +0 -587
  877. package/playground/src/views/SwitchDemo.vue +0 -442
  878. package/playground/src/views/TableDemo.vue +0 -438
  879. package/playground/src/views/TabsDemo.vue +0 -246
  880. package/playground/src/views/TagDemo.vue +0 -113
  881. package/playground/src/views/TextAreaDemo.vue +0 -317
  882. package/playground/src/views/TimePickerDemo.vue +0 -291
  883. package/playground/src/views/TimelineDemo.vue +0 -133
  884. package/playground/src/views/TooltipDemo.vue +0 -102
  885. package/playground/src/views/TreeDemo.vue +0 -521
  886. package/playground/src/views/TypographyDemo.vue +0 -175
  887. package/playground/src/views/UploadDemo.vue +0 -331
  888. package/playground/src/views/WatermarkDemo.vue +0 -112
  889. package/playground/src/views/_mocks/new-document.mock.ts +0 -506
  890. package/playground/src/views/data/form-field-events-table.ts +0 -243
  891. package/playground/src/views/data/form-field-options.ts +0 -77
  892. package/playground/src/views/data/form-field-props-table.ts +0 -227
  893. package/playground/src/views/data/form-field-snippets.ts +0 -149
  894. package/playground/src/views/data/slider-snippets.ts +0 -100
  895. package/playground/src/views/inner/FormFieldEventsDoc.vue +0 -147
  896. package/playground/src/views/inner/FormFieldPropsDoc.vue +0 -138
  897. package/playground/vite.config.ts +0 -25
  898. package/pnpm-workspace.yaml +0 -3
  899. package/postcss.config.cjs +0 -5
  900. package/scripts/check-design-token-compliance.mjs +0 -223
  901. package/scripts/generate-package-dts.mjs +0 -105
  902. package/tsconfig.json +0 -35
  903. package/tsconfig.node.json +0 -13
  904. package/vite.config.ts +0 -68
  905. /package/{packages/ui/lowcode-agent/types.ts → dist/lowcode-agent/types.d.ts} +0 -0
@@ -1,558 +0,0 @@
1
- <script setup lang="ts">
2
- /**
3
- * TfLocationPicker 定位选点组件
4
- *
5
- * 高德地图 AMap JS API 2.0 弹窗选点
6
- * - 输入框只读,点击打开弹窗
7
- * - 弹窗内嵌高德地图,点击地图选点
8
- * - 搜索地点 → 高德地图 AutoComplete 定位
9
- * - 确认/取消 控制弹窗
10
- * - v-model 双向绑定
11
- */
12
- import { ref, watch, onUnmounted, nextTick, computed } from 'vue'
13
- import { cn } from '../../../../../lib/utils'
14
- import { useAiStateMachine } from '../../../../../src/composables/use-ai-state-machine'
15
- import type { AiState } from '../../../../../src/composables/use-ai-state-machine'
16
- import type { LocationPickerProps, LocationPickerEmits, LocationData, AiConfig } from './location-picker'
17
-
18
- const props = withDefaults(defineProps<LocationPickerProps>(), {
19
- modelValue: null,
20
- disabled: false,
21
- clearable: true,
22
- placeholder: '点击选择位置',
23
- modalTitle: '选择位置',
24
- mapHeight: 400,
25
- zoom: 13,
26
- center: () => ({ lng: 116.397428, lat: 39.90923 }),
27
- size: 'md'
28
- })
29
-
30
- const emit = defineEmits<LocationPickerEmits>()
31
-
32
- // ========== 高德地图全局加载 ==========
33
- const AMAP_KEY = 'e7880fc41298b63615c186c42b63befa'
34
- const AMAP_SECURITY = 'e5f440ebeab6a3601333f5349b13874c'
35
- let globalScriptPromise: Promise<void> | null = null
36
-
37
- function loadAMap(): Promise<void> {
38
- if ((window as any).AMap) return Promise.resolve()
39
- if (globalScriptPromise) return globalScriptPromise
40
- globalScriptPromise = new Promise((resolve, reject) => {
41
- // 安全密钥必须在脚本加载前设置
42
- ;(window as any)._AMapSecurityConfig = { securityJsCode: AMAP_SECURITY }
43
- const script = document.createElement('script')
44
- script.src = `https://webapi.amap.com/maps?v=2.0&key=${AMAP_KEY}&plugin=AMap.Geocoder,AMap.AutoComplete`
45
- script.onload = () => resolve()
46
- script.onerror = () => reject(new Error('AMap script load failed'))
47
- document.head.appendChild(script)
48
- })
49
- return globalScriptPromise
50
- }
51
-
52
- // ========== Refs ==========
53
- const mapRef = ref<HTMLDivElement>()
54
- const modalVisible = ref(false)
55
- const tempLng = ref<number | null>(null)
56
- const tempLat = ref<number | null>(null)
57
- const tempAddress = ref('')
58
- const searchQuery = ref('')
59
- let mapInstance: any = null
60
- let markerInstance: any = null
61
-
62
- // ========== Computed ==========
63
- const displayText = computed(() => {
64
- if (!props.modelValue?.lng && !props.modelValue?.lat) return ''
65
- // 有地址文本 → 显示地址;否则显示简化坐标占位
66
- if (props.modelValue.address) return props.modelValue.address
67
- return `${props.modelValue.lng?.toFixed(6) ?? '--'}, ${props.modelValue.lat?.toFixed(6) ?? '--'}`
68
- })
69
-
70
- const hasValue = computed(() => {
71
- return props.modelValue != null && typeof props.modelValue.lng === 'number' && typeof props.modelValue.lat === 'number'
72
- })
73
-
74
- const sizeClasses = computed(() => {
75
- switch (props.size) {
76
- case 'sm': return 'px-2.5 py-1 text-xs'
77
- case 'lg': return 'px-4 py-2.5 text-base'
78
- default: return 'px-3 py-2 text-sm'
79
- }
80
- })
81
-
82
- // ========== 打开弹窗 ==========
83
- async function openModal() {
84
- if (props.disabled) return
85
- // 初始化临时值
86
- tempLng.value = props.modelValue?.lng ?? null
87
- tempLat.value = props.modelValue?.lat ?? null
88
- tempAddress.value = props.modelValue?.address ?? ''
89
- searchQuery.value = ''
90
- modalVisible.value = true
91
- await nextTick()
92
- try {
93
- await loadAMap()
94
- } catch {
95
- // 加载失败,静默关闭
96
- modalVisible.value = false
97
- return
98
- }
99
- await nextTick()
100
- initMap()
101
- }
102
-
103
- function initMap() {
104
- if (!mapRef.value) return
105
- const AMap = (window as any).AMap
106
- if (!AMap) return
107
-
108
- const center: [number, number] =
109
- tempLng.value != null && tempLat.value != null
110
- ? [tempLng.value, tempLat.value]
111
- : [props.center.lng, props.center.lat]
112
-
113
- mapInstance = new AMap.Map(mapRef.value, {
114
- zoom: props.zoom,
115
- center: center,
116
- scrollWheel: true
117
- })
118
-
119
- // 点击地图选点
120
- mapInstance.on('click', (e: any) => {
121
- tempLng.value = e.lnglat.getLng()
122
- tempLat.value = e.lnglat.getLat()
123
- tempAddress.value = ''
124
- updateMarker([tempLng.value, tempLat.value])
125
- reverseGeocode(tempLng.value!, tempLat.value!)
126
- })
127
-
128
- // 初始标记
129
- if (tempLng.value != null && tempLat.value != null) {
130
- updateMarker([tempLng.value, tempLat.value])
131
- }
132
- }
133
-
134
- function updateMarker(pos: [number, number]) {
135
- if (!mapInstance) return
136
- if (markerInstance) {
137
- mapInstance.remove(markerInstance)
138
- }
139
- markerInstance = new (window as any).AMap.Marker({ position: pos })
140
- mapInstance.add(markerInstance)
141
- }
142
-
143
- function reverseGeocode(lng: number, lat: number) {
144
- const AMap = (window as any).AMap
145
- if (!AMap || !mapInstance) return
146
- const geocoder = new AMap.Geocoder()
147
- geocoder.getAddress([lng, lat], (status: string, result: any) => {
148
- if (status === 'complete' && result.regeocode?.formattedAddress) {
149
- tempAddress.value = result.regeocode.formattedAddress
150
- }
151
- })
152
- }
153
-
154
- // ========== 搜索地点 ==========
155
- async function searchLocation() {
156
- const q = searchQuery.value.trim()
157
- if (!q || !mapInstance) return
158
- const AMap = (window as any).AMap
159
-
160
- const auto = new AMap.AutoComplete({ citylimit: false })
161
- auto.search(q, (status: string, result: any) => {
162
- if (status === 'complete' && result.tips?.length > 0) {
163
- const tip = result.tips[0]
164
- if (tip.location) {
165
- const lng = tip.location.lng
166
- const lat = tip.location.lat
167
- mapInstance!.setZoomAndCenter(17, [lng, lat])
168
- tempLng.value = lng
169
- tempLat.value = lat
170
- tempAddress.value = tip.name || tip.district || ''
171
- updateMarker([lng, lat])
172
- }
173
- }
174
- })
175
- }
176
-
177
- function handleSearchKeydown(e: KeyboardEvent) {
178
- if (e.key === 'Enter') {
179
- searchLocation()
180
- }
181
- }
182
-
183
- // ========== 确认/取消 ==========
184
- function confirm() {
185
- if (tempLng.value == null || tempLat.value == null) return
186
- const result: LocationData = { lng: tempLng.value, lat: tempLat.value }
187
- if (tempAddress.value) result.address = tempAddress.value
188
- emit('update:modelValue', result)
189
- emit('change', result)
190
- closeModal()
191
- }
192
-
193
- function cancel() {
194
- closeModal()
195
- }
196
-
197
- function closeModal() {
198
- if (mapInstance) {
199
- mapInstance.destroy()
200
- mapInstance = null
201
- markerInstance = null
202
- }
203
- modalVisible.value = false
204
- searchQuery.value = ''
205
- }
206
-
207
- function clearValue() {
208
- if (props.disabled || !props.clearable) return
209
- emit('update:modelValue', null)
210
- emit('change', null)
211
- emit('clear')
212
- }
213
-
214
- // ========== Watch modelValue (外部变更) ==========
215
- watch(
216
- () => props.modelValue,
217
- (val) => {
218
- if (mapInstance && val) {
219
- const AMap = (window as any).AMap
220
- if (AMap) {
221
- mapInstance.setZoomAndCenter(mapInstance.getZoom() || props.zoom, [val.lng, val.lat])
222
- updateMarker([val.lng, val.lat])
223
- }
224
- }
225
- }
226
- )
227
-
228
- // ========== Cleanup ==========
229
- onUnmounted(() => {
230
- if (mapInstance) {
231
- mapInstance.destroy()
232
- mapInstance = null
233
- markerInstance = null
234
- }
235
- })
236
-
237
- // ============== AI 状态机集成 ==============
238
- const aiEnabled = computed(() => !!props.ai)
239
-
240
- const preset = computed(() => props.ai?.preset ?? 'complete')
241
-
242
- const defaultLabels = computed(() => {
243
- switch (preset.value) {
244
- case 'search':
245
- return { trigger: 'AI 搜索', retry: '重新搜索', confirm: '✓ 应用' }
246
- case 'recommend':
247
- return { trigger: 'AI 推荐', retry: '再次推荐', confirm: '✓ 应用' }
248
- case 'complete':
249
- default:
250
- return { trigger: 'AI 补全', retry: '再次补全', confirm: '✓ 应用' }
251
- }
252
- })
253
-
254
- const triggerLabel = computed(() => props.ai?.triggerLabel ?? defaultLabels.value.trigger)
255
- const retryLabel = computed(() => props.ai?.retryLabel ?? defaultLabels.value.retry)
256
- const confirmLabel = computed(() => props.ai?.confirmLabel ?? defaultLabels.value.confirm)
257
-
258
- const ai = useAiStateMachine({
259
- needConfirm: props.ai?.needConfirm ?? true,
260
- errorRate: props.ai?.errorRate ?? 0,
261
- runningDuration: props.ai?.runningDuration ?? 1500,
262
- autoReset: props.ai?.autoReset ?? 0
263
- })
264
-
265
- const aiStateLabels: Record<AiState, string> = {
266
- idle: '空闲',
267
- running: 'AI 处理中',
268
- confirming: '⚠ 等待确认',
269
- done: '✓ 已完成',
270
- error: '✗ 失败'
271
- }
272
- const aiStateClasses: Record<AiState, string> = {
273
- idle: 'tf-location-picker__ai-state--idle',
274
- running: 'bg-[var(--info-50)] text-[var(--info-600)] animate-pulse',
275
- confirming: 'bg-[var(--warning-50)] text-[var(--warning-700)]',
276
- done: 'bg-[var(--success-50)] text-[var(--success-700)]',
277
- error: 'bg-[var(--error-50)] text-[var(--error-600)]'
278
- }
279
- const aiStateLabel = computed(() => aiStateLabels[ai.state.value])
280
- const aiStateClass = computed(() => aiStateClasses[ai.state.value])
281
-
282
- const currentTriggerLabel = computed(() => {
283
- const s = ai.state.value
284
- if (s === 'error') return retryLabel.value
285
- if (s === 'done') return retryLabel.value
286
- return triggerLabel.value
287
- })
288
-
289
- const defaultApply = (result: any): LocationData | null => {
290
- if (result == null) return props.modelValue
291
- if (result.lng != null && result.lat != null) return result as LocationData
292
- if (typeof result.address === 'string' && props.modelValue) {
293
- return { ...props.modelValue, address: result.address }
294
- }
295
- return props.modelValue
296
- }
297
-
298
- const applyAndConfirm = () => {
299
- const r = ai.result.value
300
- const applyFn = props.ai?.applyResult ?? defaultApply
301
- const next = applyFn(r, props.modelValue ?? null)
302
- if (next) {
303
- emit('update:modelValue', next)
304
- emit('change', next)
305
- }
306
- ai.confirm()
307
- }
308
-
309
- const handleAiTrigger = () => {
310
- if (typeof props.ai?.onTrigger === 'function') {
311
- ai.trigger(() => props.ai!.onTrigger(props.modelValue ?? null))
312
- }
313
- }
314
-
315
- watch(
316
- () => ai.state.value,
317
- (s) => {
318
- if (!aiEnabled.value) return
319
- emit('ai-state-change', s, ai.result.value, ai.error.value)
320
- }
321
- )
322
- </script>
323
-
324
- <template>
325
- <div
326
- :class="cn(
327
- 'tf-location-picker tf-form-control inline-flex items-center gap-2',
328
- props.disabled && 'opacity-50 pointer-events-none'
329
- )"
330
- >
331
- <!-- 只读输入框 -->
332
- <div class="relative flex-1">
333
- <input
334
- type="text"
335
- readonly
336
- :value="displayText"
337
- :placeholder="placeholder"
338
- :disabled="disabled"
339
- :class="cn(
340
- 'tf-location-picker__input w-full rounded-lg border',
341
- 'outline-none transition-colors',
342
- 'focus:border-brand focus:ring-2 focus:ring-brand/20',
343
- 'cursor-pointer select-none',
344
- sizeClasses,
345
- hasValue ? 'tf-location-picker__input-value' : 'tf-location-picker__input-placeholder'
346
- )"
347
- @click="openModal"
348
- />
349
- <!-- 清空按钮 -->
350
- <button
351
- v-if="clearable && hasValue && !disabled"
352
- type="button"
353
- class="tf-location-picker__clear absolute right-2 top-1/2 -translate-y-1/2 transition-colors p-0.5"
354
- @click.stop="clearValue"
355
- >
356
- <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
357
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
358
- </svg>
359
- </button>
360
- </div>
361
-
362
- <!-- 弹窗:Teleport to body -->
363
- <Teleport to="body">
364
- <div
365
- v-if="modalVisible"
366
- class="fixed inset-0 z-50 flex items-center justify-center"
367
- >
368
- <div class="tf-location-picker__backdrop absolute inset-0 backdrop-blur-sm" @click="cancel"></div>
369
- <div
370
- class="tf-location-picker__panel relative z-10 rounded-xl shadow-2xl w-full max-w-2xl mx-4 overflow-hidden flex flex-col"
371
- :style="{ maxHeight: '90vh' }"
372
- @click.stop
373
- >
374
- <div class="tf-location-picker__header flex items-center justify-between px-5 py-4 border-b">
375
- <h3 class="tf-location-picker__title text-base font-semibold">{{ modalTitle }}</h3>
376
- <button type="button" class="tf-location-picker__close transition-colors p-1" @click="cancel">
377
- <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
378
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
379
- </svg>
380
- </button>
381
- </div>
382
- <div class="tf-location-picker__search flex items-center gap-2 px-5 py-3 border-b">
383
- <svg class="tf-location-picker__search-icon w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
384
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
385
- </svg>
386
- <input v-model="searchQuery" type="text" placeholder="搜索地点..." class="tf-location-picker__search-input flex-1 outline-none text-sm" @keydown="handleSearchKeydown" />
387
- <button type="button" class="tf-location-picker__primary-btn shrink-0 text-xs px-3 py-1 rounded-md transition-colors" @click="searchLocation">搜索</button>
388
- </div>
389
- <div ref="mapRef" class="w-full flex-shrink-0" :style="{ height: mapHeight + 'px' }"></div>
390
- <div class="tf-location-picker__footer flex items-center justify-between px-5 py-3 border-t">
391
- <span :class="cn('font-mono text-xs', tempLng != null && tempLat != null ? 'tf-location-picker__coords' : 'tf-location-picker__coords--empty')">
392
- 经度: {{ tempLng != null ? tempLng.toFixed(6) : '--' }}
393
- &nbsp;&nbsp;
394
- 纬度: {{ tempLat != null ? tempLat.toFixed(6) : '--' }}
395
- <span v-if="tempAddress" class="tf-location-picker__address ml-2">{{ tempAddress }}</span>
396
- </span>
397
- <div class="flex items-center gap-2">
398
- <button type="button" class="tf-location-picker__cancel px-4 py-1.5 text-sm rounded-lg border transition-colors" @click="cancel">取消</button>
399
- <button type="button" class="tf-location-picker__confirm px-4 py-1.5 text-sm rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed" :disabled="tempLng == null || tempLat == null" @click="confirm">确认</button>
400
- </div>
401
- </div>
402
- </div>
403
- </div>
404
- </Teleport>
405
-
406
- <!-- AI 状态栏 -->
407
- <div
408
- v-if="aiEnabled"
409
- class="tf-location-picker__ai-bar basis-full flex items-center justify-between gap-2 mt-1.5 text-[10px]"
410
- >
411
- <div class="flex items-center gap-2 min-w-0 flex-1 overflow-hidden">
412
- <span
413
- :class="['px-2 py-0.5 rounded-full font-medium whitespace-nowrap shrink-0 inline-flex items-center leading-none h-5', aiStateClass]"
414
- >
415
- {{ aiStateLabel }}
416
- </span>
417
- <span
418
- v-if="ai.state.value === 'error' && ai.error.value"
419
- class="text-[var(--tf-color-error)] truncate min-w-0"
420
- >
421
- {{ ai.error.value }}
422
- </span>
423
- </div>
424
- <div class="flex items-center gap-1.5 shrink-0 h-5">
425
- <button
426
- v-if="ai.state.value === 'idle' || ai.state.value === 'error' || ai.state.value === 'done'"
427
- type="button"
428
- :disabled="disabled"
429
- class="tf-location-picker__ai-btn tf-location-picker__ai-btn--primary px-2 py-0.5 rounded disabled:opacity-50 disabled:cursor-not-allowed transition inline-flex items-center leading-none h-5"
430
- @click="handleAiTrigger"
431
- >
432
- {{ currentTriggerLabel }}
433
- </button>
434
- <button
435
- v-else-if="ai.state.value === 'confirming'"
436
- type="button"
437
- :disabled="disabled"
438
- class="tf-location-picker__ai-btn tf-location-picker__ai-btn--confirm px-2 py-0.5 rounded disabled:opacity-50 disabled:cursor-not-allowed transition inline-flex items-center leading-none h-5"
439
- @click="applyAndConfirm"
440
- >
441
- {{ confirmLabel }}
442
- </button>
443
- <button
444
- v-else-if="ai.state.value === 'running'"
445
- type="button"
446
- :disabled="disabled"
447
- class="tf-location-picker__ai-btn tf-location-picker__ai-btn--muted px-2 py-0.5 rounded disabled:opacity-50 disabled:cursor-not-allowed transition inline-flex items-center leading-none h-5"
448
- @click="ai.reset()"
449
- >
450
- 取消
451
- </button>
452
- </div>
453
- </div>
454
- </div>
455
- </template>
456
-
457
- <style scoped>
458
- .tf-location-picker__input {
459
- color: var(--neutral-700);
460
- border-color: var(--neutral-300);
461
- background: var(--tf-color-bg-primary, var(--tf-color-white));
462
- }
463
-
464
- .tf-location-picker__input-value,
465
- .tf-location-picker__search-input,
466
- .tf-location-picker__coords {
467
- color: var(--neutral-700);
468
- }
469
-
470
- .tf-location-picker__input-placeholder,
471
- .tf-location-picker__search-input::placeholder,
472
- .tf-location-picker__coords--empty,
473
- .tf-location-picker__clear,
474
- .tf-location-picker__close,
475
- .tf-location-picker__search-icon {
476
- color: var(--neutral-400);
477
- }
478
-
479
- .tf-location-picker__clear:hover,
480
- .tf-location-picker__close:hover {
481
- color: var(--neutral-600);
482
- }
483
-
484
- .tf-location-picker__backdrop {
485
- background: color-mix(in srgb, var(--tf-color-black) 40%, transparent);
486
- }
487
-
488
- .tf-location-picker__panel {
489
- background: var(--tf-color-bg-primary, var(--tf-color-white));
490
- }
491
-
492
- .tf-location-picker__header,
493
- .tf-location-picker__search {
494
- border-color: var(--neutral-100);
495
- }
496
-
497
- .tf-location-picker__title {
498
- color: var(--neutral-800);
499
- }
500
-
501
- .tf-location-picker__search-input {
502
- background: transparent;
503
- }
504
-
505
- .tf-location-picker__footer {
506
- border-color: var(--neutral-100);
507
- background: color-mix(in srgb, var(--neutral-50) 50%, transparent);
508
- }
509
-
510
- .tf-location-picker__address {
511
- color: var(--neutral-500);
512
- }
513
-
514
- .tf-location-picker__cancel {
515
- color: var(--neutral-600);
516
- border-color: var(--neutral-300);
517
- }
518
-
519
- .tf-location-picker__cancel:hover {
520
- background: var(--neutral-50);
521
- }
522
-
523
- .tf-location-picker__primary-btn,
524
- .tf-location-picker__confirm,
525
- .tf-location-picker__ai-btn--primary {
526
- color: var(--tf-color-bg-primary, var(--tf-color-white));
527
- background: var(--tf-color-ai-primary);
528
- }
529
-
530
- .tf-location-picker__primary-btn:hover,
531
- .tf-location-picker__confirm:hover,
532
- .tf-location-picker__ai-btn--primary:hover {
533
- background: var(--ai-600);
534
- }
535
-
536
- .tf-location-picker__ai-state--idle {
537
- color: var(--neutral-500);
538
- background: var(--neutral-100);
539
- }
540
-
541
- .tf-location-picker__ai-btn--confirm {
542
- color: var(--tf-color-bg-primary, var(--tf-color-white));
543
- background: var(--emerald-500);
544
- }
545
-
546
- .tf-location-picker__ai-btn--confirm:hover {
547
- background: var(--emerald-600);
548
- }
549
-
550
- .tf-location-picker__ai-btn--muted {
551
- color: var(--neutral-600);
552
- background: var(--neutral-200);
553
- }
554
-
555
- .tf-location-picker__ai-btn--muted:hover {
556
- background: var(--neutral-300);
557
- }
558
- </style>
@@ -1,95 +0,0 @@
1
- # TfRadio 单选框
2
-
3
- 在一组备选项中进行单选。
4
-
5
- ## 基础用法
6
-
7
- 由于选项默认可见,不宜过多,若选项过多,建议使用 Select 选择器。
8
-
9
- ```vue
10
- <TfRadio v-model="radio" value="1">选项 1</TfRadio>
11
- <TfRadio v-model="radio" value="2">选项 2</TfRadio>
12
- ```
13
-
14
- ## 禁用状态
15
-
16
- 单选框不可用状态。
17
-
18
- ```vue
19
- <TfRadio v-model="radio" value="1" disabled>禁用</TfRadio>
20
- <TfRadio v-model="radio" value="2">可用</TfRadio>
21
- ```
22
-
23
- ## 单选框组
24
-
25
- 适用于在多个互斥的选项中选择的场景。
26
-
27
- ```vue
28
- <TfRadioGroup v-model="radio">
29
- <TfRadio value="1">选项 A</TfRadio>
30
- <TfRadio value="2">选项 B</TfRadio>
31
- <TfRadio value="3">选项 C</TfRadio>
32
- </TfRadioGroup>
33
- ```
34
-
35
- ## 不同尺寸
36
-
37
- 提供三种尺寸:`sm` / `md` / `lg`
38
-
39
- ```vue
40
- <TfRadio size="sm" v-model="radio" value="1">小尺寸</TfRadio>
41
- <TfRadio size="md" v-model="radio" value="2">中尺寸</TfRadio>
42
- <TfRadio size="lg" v-model="radio" value="3">大尺寸</TfRadio>
43
- ```
44
-
45
- ## Radio API
46
-
47
- ### Props
48
-
49
- | 属性名 | 说明 | 类型 | 可选值 | 默认值 |
50
- | ------ | ---- | ---- | ------ | ------ |
51
- | modelValue / v-model | 绑定值 | `string \| number \| boolean` | — | — |
52
- | checked | 是否选中 | `boolean` | — | false |
53
- | disabled | 是否禁用 | `boolean` | — | false |
54
- | size | 尺寸 | `string` | `sm / md / lg` | `md` |
55
- | value | 单选框的值 | `string \| number \| boolean` | — | — |
56
- | label | 标签文本 | `string` | — | — |
57
-
58
- ### Events
59
-
60
- | 事件名 | 说明 | 回调参数 |
61
- | ------ | ---- | -------- |
62
- | update:modelValue | 绑定值变化时触发 | `(value: string \| number \| boolean)` |
63
- | change | 选中状态变化时触发 | `(value: string \| number \| boolean)` |
64
-
65
- ### Slots
66
-
67
- | 插槽名 | 说明 |
68
- | ------ | ---- |
69
- | default | 自定义标签内容 |
70
- | icon | 自定义未选中图标 |
71
- | checkedIcon | 自定义选中图标 |
72
-
73
- ## RadioGroup API
74
-
75
- ### Props
76
-
77
- | 属性名 | 说明 | 类型 | 可选值 | 默认值 |
78
- | ------ | ---- | ---- | ------ | ------ |
79
- | modelValue / v-model | 绑定值 | `string \| number \| boolean` | — | — |
80
- | disabled | 是否禁用所有单选框 | `boolean` | — | false |
81
- | size | 尺寸 | `string` | `sm / md / lg` | `md` |
82
- | button | 按钮风格 | `boolean` | — | false |
83
-
84
- ### Events
85
-
86
- | 事件名 | 说明 | 回调参数 |
87
- | ------ | ---- | -------- |
88
- | update:modelValue | 绑定值变化时触发 | `(value: string \| number \| boolean)` |
89
- | change | 选中值变化时触发 | `(value: string \| number \| boolean)` |
90
-
91
- ### Slots
92
-
93
- | 插槽名 | 说明 |
94
- | ------ | ---- |
95
- | default | 单选框组内容 |