create-yss-spec 3.4.9 → 3.5.0

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 (287) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
  3. package/src/api/_sync-service.js +111 -18
  4. package/src/cli/args.js +1 -0
  5. package/src/cli/help.js +10 -1
  6. package/src/cli/index.js +3 -0
  7. package/src/cli/prompts.js +5 -1
  8. package/src/cli/router.js +2 -0
  9. package/src/commands/attach.js +12 -2
  10. package/src/commands/init.js +2 -0
  11. package/src/commands/skills.js +253 -0
  12. package/src/commands/sync.js +3 -0
  13. package/src/family-identity.js +1 -1
  14. package/src/template/asset-runtime.js +220 -0
  15. package/src/template/attach-planner.js +5 -0
  16. package/src/template/distribution-runtime.js +165 -0
  17. package/src/template/instance-runtime.js +76 -29
  18. package/src/template/ownership-policy.js +17 -1
  19. package/src/template/prune-planner.js +6 -1
  20. package/src/template/sync-planner.js +8 -0
  21. package/src/template/verification-runtime.js +56 -1
  22. package/src/validation/metadata.js +24 -1
  23. package/template/.agents/skills/.strategic-design-skills-manifest.json +1 -1
  24. package/template/.agents/skills/yss-cache/SKILL.md +6 -5
  25. package/template/.agents/skills/yss-cache/references/annotations.md +3 -1
  26. package/template/.agents/skills/yss-cache/references/architecture.md +4 -2
  27. package/template/.agents/skills/yss-cache/references/configuration.md +6 -3
  28. package/template/.agents/skills/yss-cache/references/jetcache.md +21 -0
  29. package/template/.agents/skills/yss-cache/references/redis-fallback.md +5 -3
  30. package/template/.agents/skills/yss-cache/references/verification.md +10 -4
  31. package/template/.agents/skills/yss-cache/scripts/verify-cache-component.sh +26 -20
  32. package/template/.agents/skills/yss-distributed-id/SKILL.md +14 -58
  33. package/template/.agents/skills/yss-distributed-id/agents/openai.yaml +2 -2
  34. package/template/.agents/skills/yss-distributed-id/references/README.md +11 -47
  35. package/template/.agents/skills/yss-implementation-contract-compiler/SKILL.md +2 -0
  36. package/template/.agents/skills/yss-mybatis/SKILL.md +14 -2
  37. package/template/.agents/skills/yss-openapi-draft-review/SKILL.md +2 -0
  38. package/template/.agents/skills/yss-openapi-governance/SKILL.md +4 -0
  39. package/template/.agents/skills/yss-product-lifecycle/SKILL.md +11 -5
  40. package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +68 -5
  41. package/template/.agents/skills/yss-product-lifecycle/references/orchestration.md +2 -2
  42. package/template/.agents/skills/yss-product-lifecycle/references/state-model.md +8 -8
  43. package/template/.agents/skills/yss-prototype-stage/SKILL.md +4 -2
  44. package/template/.agents/skills/yss-prototype-stage/scripts/visual-baseline-contract.mjs +2 -2
  45. package/template/.agents/skills/yss-repository/SKILL.md +1 -0
  46. package/template/.agents/skills/yss-stage-decision/SKILL.md +2 -0
  47. package/template/.agents/skills/yss-tactical-design/SKILL.md +2 -0
  48. package/template/.agents/skills/yss-technical-design/SKILL.md +2 -0
  49. package/template/.agents/skills/yss-technical-design/scripts/engineering-design.mjs +1 -1
  50. package/template/.agents/skills/yss-technical-design/scripts/validate-technical-design.mjs +11 -8
  51. package/template/.codex/skills/yss-cache/SKILL.md +6 -5
  52. package/template/.codex/skills/yss-cache/references/annotations.md +3 -1
  53. package/template/.codex/skills/yss-cache/references/architecture.md +4 -2
  54. package/template/.codex/skills/yss-cache/references/configuration.md +6 -3
  55. package/template/.codex/skills/yss-cache/references/jetcache.md +21 -0
  56. package/template/.codex/skills/yss-cache/references/redis-fallback.md +5 -3
  57. package/template/.codex/skills/yss-cache/references/verification.md +10 -4
  58. package/template/.codex/skills/yss-cache/scripts/verify-cache-component.sh +26 -20
  59. package/template/.codex/skills/yss-distributed-id/SKILL.md +14 -58
  60. package/template/.codex/skills/yss-distributed-id/agents/openai.yaml +2 -2
  61. package/template/.codex/skills/yss-distributed-id/references/README.md +11 -47
  62. package/template/.codex/skills/yss-implementation-contract-compiler/SKILL.md +2 -0
  63. package/template/.codex/skills/yss-mybatis/SKILL.md +14 -2
  64. package/template/.codex/skills/yss-openapi-draft-review/SKILL.md +2 -0
  65. package/template/.codex/skills/yss-openapi-governance/SKILL.md +4 -0
  66. package/template/.codex/skills/yss-product-lifecycle/SKILL.md +11 -5
  67. package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +68 -5
  68. package/template/.codex/skills/yss-product-lifecycle/references/orchestration.md +2 -2
  69. package/template/.codex/skills/yss-product-lifecycle/references/state-model.md +8 -8
  70. package/template/.codex/skills/yss-prototype-stage/SKILL.md +4 -2
  71. package/template/.codex/skills/yss-prototype-stage/scripts/visual-baseline-contract.mjs +2 -2
  72. package/template/.codex/skills/yss-repository/SKILL.md +1 -0
  73. package/template/.codex/skills/yss-stage-decision/SKILL.md +2 -0
  74. package/template/.codex/skills/yss-tactical-design/SKILL.md +2 -0
  75. package/template/.codex/skills/yss-technical-design/SKILL.md +2 -0
  76. package/template/.codex/skills/yss-technical-design/scripts/engineering-design.mjs +1 -1
  77. package/template/.codex/skills/yss-technical-design/scripts/validate-technical-design.mjs +11 -8
  78. package/template/.cursor/skills/yss-cache/SKILL.md +6 -5
  79. package/template/.cursor/skills/yss-cache/references/annotations.md +3 -1
  80. package/template/.cursor/skills/yss-cache/references/architecture.md +4 -2
  81. package/template/.cursor/skills/yss-cache/references/configuration.md +6 -3
  82. package/template/.cursor/skills/yss-cache/references/jetcache.md +21 -0
  83. package/template/.cursor/skills/yss-cache/references/redis-fallback.md +5 -3
  84. package/template/.cursor/skills/yss-cache/references/verification.md +10 -4
  85. package/template/.cursor/skills/yss-cache/scripts/verify-cache-component.sh +26 -20
  86. package/template/.cursor/skills/yss-distributed-id/SKILL.md +14 -58
  87. package/template/.cursor/skills/yss-distributed-id/agents/openai.yaml +2 -2
  88. package/template/.cursor/skills/yss-distributed-id/references/README.md +11 -47
  89. package/template/.cursor/skills/yss-implementation-contract-compiler/SKILL.md +2 -0
  90. package/template/.cursor/skills/yss-mybatis/SKILL.md +14 -2
  91. package/template/.cursor/skills/yss-openapi-draft-review/SKILL.md +2 -0
  92. package/template/.cursor/skills/yss-openapi-governance/SKILL.md +4 -0
  93. package/template/.cursor/skills/yss-product-lifecycle/SKILL.md +11 -5
  94. package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +68 -5
  95. package/template/.cursor/skills/yss-product-lifecycle/references/orchestration.md +2 -2
  96. package/template/.cursor/skills/yss-product-lifecycle/references/state-model.md +8 -8
  97. package/template/.cursor/skills/yss-prototype-stage/SKILL.md +4 -2
  98. package/template/.cursor/skills/yss-prototype-stage/scripts/visual-baseline-contract.mjs +2 -2
  99. package/template/.cursor/skills/yss-repository/SKILL.md +1 -0
  100. package/template/.cursor/skills/yss-stage-decision/SKILL.md +2 -0
  101. package/template/.cursor/skills/yss-tactical-design/SKILL.md +2 -0
  102. package/template/.cursor/skills/yss-technical-design/SKILL.md +2 -0
  103. package/template/.cursor/skills/yss-technical-design/scripts/engineering-design.mjs +1 -1
  104. package/template/.cursor/skills/yss-technical-design/scripts/validate-technical-design.mjs +11 -8
  105. package/template/.pi/skills/yss-cache/SKILL.md +6 -5
  106. package/template/.pi/skills/yss-cache/references/annotations.md +3 -1
  107. package/template/.pi/skills/yss-cache/references/architecture.md +4 -2
  108. package/template/.pi/skills/yss-cache/references/configuration.md +6 -3
  109. package/template/.pi/skills/yss-cache/references/jetcache.md +21 -0
  110. package/template/.pi/skills/yss-cache/references/redis-fallback.md +5 -3
  111. package/template/.pi/skills/yss-cache/references/verification.md +10 -4
  112. package/template/.pi/skills/yss-cache/scripts/verify-cache-component.sh +26 -20
  113. package/template/.pi/skills/yss-distributed-id/SKILL.md +14 -58
  114. package/template/.pi/skills/yss-distributed-id/agents/openai.yaml +2 -2
  115. package/template/.pi/skills/yss-distributed-id/references/README.md +11 -47
  116. package/template/.pi/skills/yss-implementation-contract-compiler/SKILL.md +2 -0
  117. package/template/.pi/skills/yss-mybatis/SKILL.md +14 -2
  118. package/template/.pi/skills/yss-openapi-draft-review/SKILL.md +2 -0
  119. package/template/.pi/skills/yss-openapi-governance/SKILL.md +4 -0
  120. package/template/.pi/skills/yss-product-lifecycle/SKILL.md +11 -5
  121. package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +68 -5
  122. package/template/.pi/skills/yss-product-lifecycle/references/orchestration.md +2 -2
  123. package/template/.pi/skills/yss-product-lifecycle/references/state-model.md +8 -8
  124. package/template/.pi/skills/yss-prototype-stage/SKILL.md +4 -2
  125. package/template/.pi/skills/yss-prototype-stage/scripts/visual-baseline-contract.mjs +2 -2
  126. package/template/.pi/skills/yss-repository/SKILL.md +1 -0
  127. package/template/.pi/skills/yss-stage-decision/SKILL.md +2 -0
  128. package/template/.pi/skills/yss-tactical-design/SKILL.md +2 -0
  129. package/template/.pi/skills/yss-technical-design/SKILL.md +2 -0
  130. package/template/.pi/skills/yss-technical-design/scripts/engineering-design.mjs +1 -1
  131. package/template/.pi/skills/yss-technical-design/scripts/validate-technical-design.mjs +11 -8
  132. package/template/AGENTS.md +2 -0
  133. package/template/CONTEXT.md +2 -1
  134. package/template/README.md +3 -5
  135. package/template/docs/agents/issue-tracker.md +7 -0
  136. package/template/docs/agents/skill-migrations.md +4 -0
  137. package/template/docs/agents/yss-skill-registry.yaml +7 -6
  138. package/template/docs/design/README.md +0 -1
  139. package/template/docs/design/design.md +2 -2
  140. package/template/docs/design/templates/interaction-spec-template.md +1 -1
  141. package/template/docs/engineering/evidence/aliyun-artifact-resolution.json +446 -0
  142. package/template/docs/process/contract-reading.md +46 -0
  143. package/template/docs/process/lifecycle-artifact-map.md +2 -2
  144. package/template/docs/process/lifecycle-registry-baseline.json +2 -1
  145. package/template/docs/process/lifecycle-registry.yaml +10 -4
  146. package/template/docs/process/schemas/api-contract-decision-v2.schema.json +198 -0
  147. package/template/docs/process/schemas/digital-human-task-package.schema.json +8 -0
  148. package/template/docs/process/schemas/lifecycle-checkpoint.schema.json +259 -0
  149. package/template/docs/process/schemas/stage-tracking.schema.json +259 -0
  150. package/template/docs/process/stage-tracking.md +62 -0
  151. package/template/docs/process/strategic-handoff-package.md +8 -0
  152. package/template/docs/user-guide//347/224/250/346/210/267/346/211/213/345/206/214.md +2 -0
  153. package/template/docs/user-guide//347/224/250/346/210/267/346/211/213/345/206/214/347/264/242/345/274/225.md +1 -0
  154. package/template/docs/user-guide//351/230/266/346/256/265/346/216/245/345/205/245/344/270/216/344/272/247/347/211/251/345/244/215/347/224/250/344/275/277/347/224/250/346/211/213/345/206/214.md +243 -0
  155. package/template/scripts/api-contract-decision +16 -0
  156. package/template/scripts/complete-backend-delivery +17 -0
  157. package/template/scripts/contract +13 -0
  158. package/template/scripts/design-md +2 -0
  159. package/template/scripts/dispatch-slice-task +13 -0
  160. package/template/scripts/lib/api-contract-decision.mjs +45 -4
  161. package/template/scripts/lib/approval-record.mjs +1 -1
  162. package/template/scripts/lib/approved-execution-context.mjs +35 -7
  163. package/template/scripts/lib/backend-architecture.mjs +2 -2
  164. package/template/scripts/lib/backend-delivery-terminal.mjs +51 -0
  165. package/template/scripts/lib/backend-platform-provenance.mjs +1 -1
  166. package/template/scripts/lib/backend-platform.mjs +1 -1
  167. package/template/scripts/lib/backend-scaffold-prerequisites.mjs +1 -1
  168. package/template/scripts/lib/context-contract.mjs +1 -1
  169. package/template/scripts/lib/context-reconciliation.mjs +1 -1
  170. package/template/scripts/lib/contract-source.mjs +22 -0
  171. package/template/scripts/lib/contract-views.mjs +109 -0
  172. package/template/scripts/lib/delivery-preflight.mjs +3 -2
  173. package/template/scripts/lib/design-md.mjs +230 -0
  174. package/template/scripts/lib/digital-human-roles.mjs +1 -1
  175. package/template/scripts/lib/existing-backend-architecture.mjs +4 -3
  176. package/template/scripts/lib/existing-ui-baseline.mjs +4 -2
  177. package/template/scripts/lib/frontend-delivery-boundary.mjs +1 -1
  178. package/template/scripts/lib/frontend-delivery.mjs +1 -1
  179. package/template/scripts/lib/harness-execution-scope.mjs +15 -1
  180. package/template/scripts/lib/implementation-contract-compiler.mjs +4 -4
  181. package/template/scripts/lib/json-schema.mjs +19 -4
  182. package/template/scripts/lib/lifecycle-context-query.mjs +5 -1
  183. package/template/scripts/lib/lifecycle-controls.mjs +1 -1
  184. package/template/scripts/lib/lifecycle-execution-scope.mjs +92 -0
  185. package/template/scripts/lib/lifecycle-registry.mjs +2 -1
  186. package/template/scripts/lib/lifecycle-transition.mjs +21 -3
  187. package/template/scripts/lib/openapi-draft-validation.mjs +2 -1
  188. package/template/scripts/lib/skill-registry.mjs +10 -3
  189. package/template/scripts/lib/skill-supply-chain.mjs +33 -14
  190. package/template/scripts/lib/slice-contract-preparation.mjs +16 -14
  191. package/template/scripts/lib/slice-contract-views.mjs +1 -1
  192. package/template/scripts/lib/slice-contract.mjs +18 -3
  193. package/template/scripts/lib/slice-execution-preflight.mjs +7 -3
  194. package/template/scripts/lib/slice-repositories.mjs +1 -1
  195. package/template/scripts/lib/slice-task-package.mjs +3 -2
  196. package/template/scripts/lib/stage-tracking-migration.mjs +176 -0
  197. package/template/scripts/lib/stage-tracking.mjs +184 -0
  198. package/template/scripts/lib/strategic-handoff-consumption.mjs +5 -4
  199. package/template/scripts/lib/strategic-handoff-io.mjs +5 -2
  200. package/template/scripts/lib/strategic-handoff-routing.mjs +31 -0
  201. package/template/scripts/lib/strategic-handoff.mjs +4 -2
  202. package/template/scripts/lib/task-package.mjs +2 -0
  203. package/template/scripts/lib/technical-design-boundary.mjs +4 -2
  204. package/template/scripts/lib/ui-baseline.mjs +1 -1
  205. package/template/scripts/lib/user-decision.mjs +1 -1
  206. package/template/scripts/lib/validation-phase.mjs +72 -0
  207. package/template/scripts/stage-tracking +25 -0
  208. package/template/scripts/strategic-consumer-entry +47 -0
  209. package/template/scripts/verify-context-reconciliation +4 -3
  210. package/template/scripts/verify-lifecycle-checkpoint +10 -0
  211. package/template/scripts/verify-project-instance +11 -10
  212. package/template/skills-lock.json +17 -32
  213. package/template.manifest.json +18 -3
  214. package/template.snapshot.json +5 -5
  215. package/template/.agents/skills/grill-me/SKILL.md +0 -7
  216. package/template/.agents/skills/grill-me/agents/openai.yaml +0 -5
  217. package/template/.agents/skills/yss-distributed-id/assets/AutoIdInterceptor.java +0 -246
  218. package/template/.agents/skills/yss-distributed-id/assets/EnableDistributedId.java +0 -25
  219. package/template/.agents/skills/yss-distributed-id/assets/LeafConf.java +0 -36
  220. package/template/.codex/skills/grill-me/SKILL.md +0 -7
  221. package/template/.codex/skills/grill-me/agents/openai.yaml +0 -5
  222. package/template/.codex/skills/yss-distributed-id/assets/AutoIdInterceptor.java +0 -246
  223. package/template/.codex/skills/yss-distributed-id/assets/EnableDistributedId.java +0 -25
  224. package/template/.codex/skills/yss-distributed-id/assets/LeafConf.java +0 -36
  225. package/template/.cursor/skills/grill-me/SKILL.md +0 -7
  226. package/template/.cursor/skills/grill-me/agents/openai.yaml +0 -5
  227. package/template/.cursor/skills/yss-distributed-id/assets/AutoIdInterceptor.java +0 -246
  228. package/template/.cursor/skills/yss-distributed-id/assets/EnableDistributedId.java +0 -25
  229. package/template/.cursor/skills/yss-distributed-id/assets/LeafConf.java +0 -36
  230. package/template/.pi/skills/grill-me/SKILL.md +0 -7
  231. package/template/.pi/skills/grill-me/agents/openai.yaml +0 -5
  232. package/template/.pi/skills/yss-distributed-id/assets/AutoIdInterceptor.java +0 -246
  233. package/template/.pi/skills/yss-distributed-id/assets/EnableDistributedId.java +0 -25
  234. package/template/.pi/skills/yss-distributed-id/assets/LeafConf.java +0 -36
  235. package/template/docs/agents/yss-plugin-dependency-contract.md +0 -45
  236. package/template/docs/api/.gitkeep +0 -0
  237. package/template/docs/api/specs/.gitkeep +0 -0
  238. package/template/docs/architecture/.gitkeep +0 -0
  239. package/template/docs/design/facts/antdv-next/1.5.2/cli-help.txt +0 -38
  240. package/template/docs/design/facts/antdv-next/1.5.2/component-list.json +0 -434
  241. package/template/docs/design/facts/antdv-next/1.5.2/components/Alert/demo-basic.json +0 -7
  242. package/template/docs/design/facts/antdv-next/1.5.2/components/Alert/info.json +0 -246
  243. package/template/docs/design/facts/antdv-next/1.5.2/components/Alert/semantic.json +0 -40
  244. package/template/docs/design/facts/antdv-next/1.5.2/components/Alert/token.json +0 -32
  245. package/template/docs/design/facts/antdv-next/1.5.2/components/Button/demo-basic.json +0 -7
  246. package/template/docs/design/facts/antdv-next/1.5.2/components/Button/info.json +0 -190
  247. package/template/docs/design/facts/antdv-next/1.5.2/components/Button/semantic.json +0 -20
  248. package/template/docs/design/facts/antdv-next/1.5.2/components/Button/token.json +0 -256
  249. package/template/docs/design/facts/antdv-next/1.5.2/components/Input/demo-basic.json +0 -7
  250. package/template/docs/design/facts/antdv-next/1.5.2/components/Input/info.json +0 -460
  251. package/template/docs/design/facts/antdv-next/1.5.2/components/Input/semantic.json +0 -70
  252. package/template/docs/design/facts/antdv-next/1.5.2/components/Input/token.json +0 -123
  253. package/template/docs/design/facts/antdv-next/1.5.2/components/Modal/demo-basic.json +0 -7
  254. package/template/docs/design/facts/antdv-next/1.5.2/components/Modal/info.json +0 -646
  255. package/template/docs/design/facts/antdv-next/1.5.2/components/Modal/semantic.json +0 -50
  256. package/template/docs/design/facts/antdv-next/1.5.2/components/Modal/token.json +0 -130
  257. package/template/docs/design/facts/antdv-next/1.5.2/components/Select/demo-basic.json +0 -7
  258. package/template/docs/design/facts/antdv-next/1.5.2/components/Select/info.json +0 -640
  259. package/template/docs/design/facts/antdv-next/1.5.2/components/Select/semantic.json +0 -70
  260. package/template/docs/design/facts/antdv-next/1.5.2/components/Select/token.json +0 -172
  261. package/template/docs/design/facts/antdv-next/1.5.2/components/Table/demo-basic.json +0 -7
  262. package/template/docs/design/facts/antdv-next/1.5.2/components/Table/info.json +0 -1010
  263. package/template/docs/design/facts/antdv-next/1.5.2/components/Table/semantic.json +0 -70
  264. package/template/docs/design/facts/antdv-next/1.5.2/components/Table/token.json +0 -263
  265. package/template/docs/design/facts/antdv-next/1.5.2/components/Tag/demo-basic.json +0 -7
  266. package/template/docs/design/facts/antdv-next/1.5.2/components/Tag/info.json +0 -321
  267. package/template/docs/design/facts/antdv-next/1.5.2/components/Tag/semantic.json +0 -25
  268. package/template/docs/design/facts/antdv-next/1.5.2/components/Tag/token.json +0 -25
  269. package/template/docs/design/facts/antdv-next/1.5.2/design-md.json +0 -3
  270. package/template/docs/design/facts/antdv-next/1.5.2/manifest.json +0 -215
  271. package/template/docs/design/facts/antdv-next/1.5.2/resolution-probe.json +0 -5
  272. package/template/docs/design/prototypes/.gitkeep +0 -1
  273. package/template/docs/implementation/.gitkeep +0 -1
  274. package/template/docs/plan/IDEATION.md +0 -96
  275. package/template/docs/process/PDCA-SCRUM.md +0 -10
  276. package/template/docs/process/harness-executive-blueprint.md +0 -10
  277. package/template/docs/releases/.gitkeep +0 -1
  278. package/template/docs/requirements/README.md +0 -85
  279. package/template/docs/requirements/tickets/.gitkeep +0 -1
  280. package/template/docs/templates/agent-brief-template.md +0 -46
  281. package/template/docs/templates/architecture-proposal-template.md +0 -18
  282. package/template/docs/templates/implementation-plan-template.md +0 -16
  283. package/template/docs/templates/implementation-routing-template.md +0 -350
  284. package/template/docs/templates/requirement-freeze-template.md +0 -63
  285. package/template/docs/templates/risk-register-template.md +0 -11
  286. package/template/docs/templates/user-story-template.md +0 -20
  287. package/template/docs/testing/README.md +0 -110
@@ -1,460 +0,0 @@
1
- {
2
- "name": "Input",
3
- "nameZh": "输入框",
4
- "description": "Through mouse or keyboard input content, it is the most basic form field wrapper.",
5
- "props": [
6
- {
7
- "name": "allowClear",
8
- "type": "boolean \\| { clearIcon: VueNode }",
9
- "default": "false",
10
- "description": "If allow to remove input content with clear icon",
11
- "descriptionZh": "可以点击清除图标删除内容"
12
- },
13
- {
14
- "name": "classes",
15
- "type": "Record<[SemanticDOM](#semantic-input), string> \\| (info: { props }) => Record<[SemanticDOM](#semantic-input), string>",
16
- "default": "-",
17
- "description": "Customize class for each semantic structure inside the component. Supports object or function.",
18
- "descriptionZh": "用于自定义组件内部各语义化结构的 class,支持对象或函数"
19
- },
20
- {
21
- "name": "count",
22
- "type": "[CountConfig](#countconfig)",
23
- "default": "-",
24
- "description": "Character count config",
25
- "descriptionZh": "字符计数配置"
26
- },
27
- {
28
- "name": "defaultValue",
29
- "type": "string",
30
- "default": "-",
31
- "description": "The initial input content",
32
- "descriptionZh": ""
33
- },
34
- {
35
- "name": "disabled",
36
- "type": "boolean",
37
- "default": "false",
38
- "description": "Whether the input is disabled",
39
- "descriptionZh": "是否禁用状态,默认为 false"
40
- },
41
- {
42
- "name": "id",
43
- "type": "string",
44
- "default": "-",
45
- "description": "The ID for input",
46
- "descriptionZh": "输入框的 id"
47
- },
48
- {
49
- "name": "maxlength",
50
- "type": "number",
51
- "default": "-",
52
- "description": "The maximum number of characters in Input",
53
- "descriptionZh": "最大长度"
54
- },
55
- {
56
- "name": "prefix",
57
- "type": "VueNode",
58
- "default": "-",
59
- "description": "The prefix icon for the Input",
60
- "descriptionZh": "带有前缀图标的 input"
61
- },
62
- {
63
- "name": "showCount",
64
- "type": "boolean \\| { formatter: (info: { value: string, count: number, maxLength?: number }) => VueNode }",
65
- "default": "false",
66
- "description": "Whether to show character count",
67
- "descriptionZh": "是否展示字数"
68
- },
69
- {
70
- "name": "status",
71
- "type": "'error' \\| 'warning'",
72
- "default": "-",
73
- "description": "Set validation status",
74
- "descriptionZh": "设置校验状态"
75
- },
76
- {
77
- "name": "styles",
78
- "type": "Record<[SemanticDOM](#semantic-input), CSSProperties> \\| (info: { props }) => Record<[SemanticDOM](#semantic-input), CSSProperties>",
79
- "default": "-",
80
- "description": "Customize inline style for each semantic structure inside the component. Supports object or function.",
81
- "descriptionZh": "用于自定义组件内部各语义化结构的行内 style,支持对象或函数"
82
- },
83
- {
84
- "name": "size",
85
- "type": "`large` \\| `middle` \\| `small`",
86
- "default": "-",
87
- "description": "The size of the input box. Note: in the context of a form, the `middle` size is used",
88
- "descriptionZh": "控件大小。注:标准表单内的输入框大小限制为 `middle`"
89
- },
90
- {
91
- "name": "suffix",
92
- "type": "VueNode",
93
- "default": "-",
94
- "description": "The suffix icon for the Input",
95
- "descriptionZh": "带有后缀图标的 input"
96
- },
97
- {
98
- "name": "type",
99
- "type": "string",
100
- "default": "`text`",
101
- "description": "The type of input, see: [MDN](https://developer.mozilla.org/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types)( use `Input.TextArea` instead of `type=\"textarea\"`)",
102
- "descriptionZh": "声明 input 类型,同原生 input 标签的 type 属性,见:[MDN](https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/input#属性)(请直接使用 `Input.TextArea` 代替 `type=\"textarea\"`)"
103
- },
104
- {
105
- "name": "value",
106
- "type": "string",
107
- "default": "-",
108
- "description": "The input content value, support `v-model:value`",
109
- "descriptionZh": "输入框内容,支持 `v-model:value`"
110
- },
111
- {
112
- "name": "variant",
113
- "type": "`outlined` \\| `borderless` \\| `filled` \\| `underlined`",
114
- "default": "`outlined`",
115
- "description": "Variants of Input",
116
- "descriptionZh": "形态变体"
117
- },
118
- {
119
- "name": "~~addonAfter~~",
120
- "type": "VueNode",
121
- "default": "-",
122
- "description": "",
123
- "descriptionZh": "带标签的 input,设置后置标签,请使用 Space.Compact 替换"
124
- },
125
- {
126
- "name": "~~addonBefore~~",
127
- "type": "VueNode",
128
- "default": "-",
129
- "description": "",
130
- "descriptionZh": "带标签的 input,设置前置标签,请使用 Space.Compact 替换"
131
- },
132
- {
133
- "name": "~~bordered~~",
134
- "type": "boolean",
135
- "default": "true",
136
- "description": "",
137
- "descriptionZh": "是否有边框, 请使用 `variant` 替换"
138
- }
139
- ],
140
- "events": [
141
- {
142
- "name": "change",
143
- "type": "function(e)",
144
- "default": "",
145
- "description": "Callback when user input",
146
- "descriptionZh": "输入框内容变化时的回调"
147
- },
148
- {
149
- "name": "pressEnter",
150
- "type": "function(e)",
151
- "default": "",
152
- "description": "The callback function that is triggered when Enter key is pressed",
153
- "descriptionZh": "按下回车的回调"
154
- },
155
- {
156
- "name": "clear",
157
- "type": "() => void",
158
- "default": "",
159
- "description": "Callback when click the clear button",
160
- "descriptionZh": "按下清除按钮的回调"
161
- }
162
- ],
163
- "slots": [
164
- {
165
- "name": "prefix",
166
- "type": "-",
167
- "default": "",
168
- "description": "Customize prefix icon",
169
- "descriptionZh": "自定义前缀图标"
170
- },
171
- {
172
- "name": "suffix",
173
- "type": "-",
174
- "default": "",
175
- "description": "Customize suffix icon",
176
- "descriptionZh": "自定义后缀图标"
177
- },
178
- {
179
- "name": "clearIcon",
180
- "type": "-",
181
- "default": "",
182
- "description": "Customize clear icon (to be used with allowClear attribute)",
183
- "descriptionZh": "自定义清除图标(需搭配allowClear属性使用)"
184
- }
185
- ],
186
- "methods": [
187
- {
188
- "name": "blur",
189
- "type": "",
190
- "default": "",
191
- "description": "Remove focus",
192
- "descriptionZh": "取消焦点"
193
- },
194
- {
195
- "name": "focus",
196
- "type": "",
197
- "default": "",
198
- "description": "Get focus",
199
- "descriptionZh": "获取焦点"
200
- }
201
- ],
202
- "subComponentProps": {
203
- "TextArea": {
204
- "properties": [
205
- {
206
- "name": "autoSize",
207
- "type": "boolean \\| object",
208
- "default": "false",
209
- "description": "Height auto size feature, can be set to true \\| false or an object { minRows: 2, maxRows: 6 }",
210
- "descriptionZh": "自适应内容高度,可设置为 true \\| false 或对象:{ minRows: 2, maxRows: 6 }"
211
- },
212
- {
213
- "name": "classes",
214
- "type": "Record<[SemanticDOM](#semantic-textarea), string> \\| (info: { props }) => Record<[SemanticDOM](#semantic-textarea), string>",
215
- "default": "-",
216
- "description": "Customize class for each semantic structure inside the component. Supports object or function.",
217
- "descriptionZh": "用于自定义组件内部各语义化结构的 class,支持对象或函数"
218
- },
219
- {
220
- "name": "styles",
221
- "type": "Record<[SemanticDOM](#semantic-textarea), CSSProperties> \\| (info: { props }) => Record<[SemanticDOM](#semantic-textarea), CSSProperties>",
222
- "default": "-",
223
- "description": "Customize inline style for each semantic structure inside the component. Supports object or function.",
224
- "descriptionZh": "用于自定义组件内部各语义化结构的行内 style,支持对象或函数"
225
- }
226
- ],
227
- "events": [],
228
- "slots": [],
229
- "methods": []
230
- },
231
- "InputSearch": {
232
- "properties": [
233
- {
234
- "name": "classes",
235
- "type": "Record<[SemanticDOM](#semantic-search), string> \\| (info: { props }) => Record<[SemanticDOM](#semantic-search), string>",
236
- "default": "-",
237
- "description": "Customize class for each semantic structure inside the component. Supports object or function.",
238
- "descriptionZh": "用于自定义组件内部各语义化结构的 class,支持对象或函数"
239
- },
240
- {
241
- "name": "enterButton",
242
- "type": "VueNode",
243
- "default": "false",
244
- "description": "false displays the default button color, true uses the primary color, or you can provide a custom button. Conflicts with addonAfter.",
245
- "descriptionZh": "是否有确认按钮,可设为按钮文字。该属性会与 `addonAfter` 冲突。"
246
- },
247
- {
248
- "name": "loading",
249
- "type": "boolean",
250
- "default": "false",
251
- "description": "Search box with loading",
252
- "descriptionZh": "搜索 loading"
253
- },
254
- {
255
- "name": "styles",
256
- "type": "Record<[SemanticDOM](#semantic-search), CSSProperties> \\| (info: { props }) => Record<[SemanticDOM](#semantic-search), CSSProperties>",
257
- "default": "-",
258
- "description": "Customize inline style for each semantic structure inside the component. Supports object or function.",
259
- "descriptionZh": "用于自定义组件内部各语义化结构的行内 style,支持对象或函数"
260
- },
261
- {
262
- "name": "variant",
263
- "type": "`outlined` \\| `borderless` \\| `filled` \\| `underlined`",
264
- "default": "`outlined`",
265
- "description": "Variants of Input",
266
- "descriptionZh": "形态变体"
267
- }
268
- ],
269
- "events": [
270
- {
271
- "name": "search",
272
- "type": "function(value, event, { source: \"input\" \\| \"clear\" })",
273
- "default": "",
274
- "description": "The callback function triggered when you click on the search-icon, the clear-icon or press the Enter key",
275
- "descriptionZh": "点击搜索图标、清除图标,或按下回车键时的回调"
276
- }
277
- ],
278
- "slots": [],
279
- "methods": []
280
- },
281
- "InputPassword": {
282
- "properties": [
283
- {
284
- "name": "classes",
285
- "type": "Record<[SemanticDOM](#semantic-password), string>",
286
- "default": "-",
287
- "description": "Semantic DOM class",
288
- "descriptionZh": "语义化结构 class"
289
- },
290
- {
291
- "name": "iconRender",
292
- "type": "(visible) => VueNode",
293
- "default": "(visible) => (visible ? <EyeOutlined /> : <EyeInvisibleOutlined />)",
294
- "description": "Custom toggle button",
295
- "descriptionZh": "自定义切换按钮"
296
- },
297
- {
298
- "name": "styles",
299
- "type": "Record<[SemanticDOM](#semantic-password), CSSProperties>",
300
- "default": "-",
301
- "description": "Semantic DOM style",
302
- "descriptionZh": "语义化结构 style"
303
- },
304
- {
305
- "name": "variant",
306
- "type": "`outlined` \\| `borderless` \\| `filled` \\| `underlined`",
307
- "default": "`outlined`",
308
- "description": "Variants of Input",
309
- "descriptionZh": "形态变体"
310
- },
311
- {
312
- "name": "visibilityToggle",
313
- "type": "boolean \\| [VisibilityToggle](#visibilitytoggle)",
314
- "default": "true",
315
- "description": "Whether show toggle button or control password visible",
316
- "descriptionZh": "是否显示切换按钮或者控制密码显隐"
317
- }
318
- ],
319
- "events": [],
320
- "slots": [],
321
- "methods": []
322
- },
323
- "InputOTP": {
324
- "properties": [
325
- {
326
- "name": "classes",
327
- "type": "Record<[SemanticDOM](#semantic-otp), string> \\| (info: { props }) => Record<[SemanticDOM](#semantic-otp), string>",
328
- "default": "-",
329
- "description": "Customize class for each semantic structure inside the component. Supports object or function.",
330
- "descriptionZh": "用于自定义组件内部各语义化结构的 class,支持对象或函数"
331
- },
332
- {
333
- "name": "defaultValue",
334
- "type": "string",
335
- "default": "-",
336
- "description": "Default value",
337
- "descriptionZh": ""
338
- },
339
- {
340
- "name": "disabled",
341
- "type": "boolean",
342
- "default": "false",
343
- "description": "Whether the input is disabled",
344
- "descriptionZh": "是否禁用"
345
- },
346
- {
347
- "name": "formatter",
348
- "type": "(value: string) => string",
349
- "default": "-",
350
- "description": "Format display, blank fields will be filled with ` `",
351
- "descriptionZh": "格式化展示,留空字段会被 ` ` 填充"
352
- },
353
- {
354
- "name": "separator",
355
- "type": "VueNode \\| ((i: number) => VueNode)",
356
- "default": "-",
357
- "description": "render the separator after the input box of the specified index",
358
- "descriptionZh": "分隔符,在指定索引的输入框后渲染分隔符"
359
- },
360
- {
361
- "name": "styles",
362
- "type": "Record<[SemanticDOM](#semantic-otp), CSSProperties> \\| (info: { props }) => Record<[SemanticDOM](#semantic-otp), CSSProperties>",
363
- "default": "-",
364
- "description": "Customize inline style for each semantic structure inside the component. Supports object or function.",
365
- "descriptionZh": "用于自定义组件内部各语义化结构的行内 style,支持对象或函数"
366
- },
367
- {
368
- "name": "mask",
369
- "type": "boolean \\| string",
370
- "default": "`false`",
371
- "description": "Custom display, the original value will not be modified",
372
- "descriptionZh": "自定义展示,和 `formatter` 的区别是不会修改原始值"
373
- },
374
- {
375
- "name": "length",
376
- "type": "number",
377
- "default": "6",
378
- "description": "The number of input elements",
379
- "descriptionZh": "输入元素数量"
380
- },
381
- {
382
- "name": "status",
383
- "type": "'error' \\| 'warning'",
384
- "default": "-",
385
- "description": "Set validation status",
386
- "descriptionZh": "设置校验状态"
387
- },
388
- {
389
- "name": "size",
390
- "type": "`small` \\| `middle` \\| `large`",
391
- "default": "`middle`",
392
- "description": "The size of the input box",
393
- "descriptionZh": "输入框大小"
394
- },
395
- {
396
- "name": "variant",
397
- "type": "`outlined` \\| `borderless` \\| `filled` \\| `underlined`",
398
- "default": "`outlined`",
399
- "description": "Variants of Input",
400
- "descriptionZh": "形态变体"
401
- },
402
- {
403
- "name": "value",
404
- "type": "string",
405
- "default": "-",
406
- "description": "The input content value",
407
- "descriptionZh": "输入框内容"
408
- }
409
- ],
410
- "events": [
411
- {
412
- "name": "change",
413
- "type": "(value: string) => void",
414
- "default": "",
415
- "description": "Trigger when all the fields are filled",
416
- "descriptionZh": "当输入框内容全部填充时触发回调"
417
- },
418
- {
419
- "name": "input",
420
- "type": "(value: string[]) => void",
421
- "default": "",
422
- "description": "Trigger when the input value changes",
423
- "descriptionZh": "输入值变化时触发的回调"
424
- }
425
- ],
426
- "slots": [],
427
- "methods": []
428
- }
429
- },
430
- "commonProps": [
431
- {
432
- "name": "style",
433
- "type": "CSSProperties",
434
- "default": "-",
435
- "description": "The additional style",
436
- "descriptionZh": "自定义样式"
437
- },
438
- {
439
- "name": "class",
440
- "type": "string",
441
- "default": "-",
442
- "description": "The additional css class",
443
- "descriptionZh": "自定义类名"
444
- },
445
- {
446
- "name": "rootClass",
447
- "type": "string",
448
- "default": "-",
449
- "description": "ClassName on the root element",
450
- "descriptionZh": "添加在组件最外层的 className"
451
- },
452
- {
453
- "name": "autoFocus",
454
- "type": "boolean",
455
- "default": "false",
456
- "description": "Auto focus when component mounted, only effective for focusable elements like forms, links, etc.",
457
- "descriptionZh": "自动获取焦点,仅对表单类、链接、交互容器等可聚焦元素生效"
458
- }
459
- ]
460
- }
@@ -1,70 +0,0 @@
1
- {
2
- "name": "Input",
3
- "semanticStructure": [
4
- {
5
- "key": "root",
6
- "description": "Root element with relative positioning, inline-block display, width, min-width, padding, colors, fonts, line-height, border-radius, transitions and other input container basic styles",
7
- "descriptionZh": "根元素,包含相对定位、行内块布局、宽度、最小宽度、内边距、颜色、字体、行高、圆角、过渡动画等输入框容器的基础样式"
8
- },
9
- {
10
- "key": "input",
11
- "description": "Input element with core interactive styles and text input related styling",
12
- "descriptionZh": "输入框元素,包含输入框的核心交互样式和文本输入相关的样式"
13
- },
14
- {
15
- "key": "prefix",
16
- "description": "Prefix wrapper element with layout and styling for prefix content",
17
- "descriptionZh": "前缀的包裹元素,包含前缀内容的布局和样式"
18
- },
19
- {
20
- "key": "suffix",
21
- "description": "Suffix wrapper element with layout and styling for suffix content",
22
- "descriptionZh": "后缀的包裹元素,包含后缀内容的布局和样式"
23
- },
24
- {
25
- "key": "count",
26
- "description": "Character count element with font and color styles for count display",
27
- "descriptionZh": "文字计数元素,包含字符计数显示的字体和颜色样式"
28
- },
29
- {
30
- "key": "clear",
31
- "description": "Clear button element with color, size, hover state and transition animation styles",
32
- "descriptionZh": "清除按钮元素,包含清除按钮的颜色、尺寸、悬浮态和过渡动画等样式"
33
- },
34
- {
35
- "key": "TextAreaRoot",
36
- "description": "Root element with textarea wrapper styles, border, border radius, transition animation and state control",
37
- "descriptionZh": "根元素,设置文本域包装器的样式、边框、圆角、过渡动画和状态控制"
38
- },
39
- {
40
- "key": "textarea",
41
- "description": "Textarea element with font, line height, padding, color, background, border, text input and multi-line text display styles",
42
- "descriptionZh": "文本域元素,设置字体、行高、内边距、颜色、背景、边框、文本输入和多行文本展示样式"
43
- },
44
- {
45
- "key": "TextAreaCount",
46
- "description": "Count element with character count display position, font, color and numeric statistics styles",
47
- "descriptionZh": "文字计数元素,设置字符计数显示的位置、字体、颜色和数值统计样式"
48
- },
49
- {
50
- "key": "button.root",
51
- "description": "Search button root element with button styles, hover effects and click interactions",
52
- "descriptionZh": "搜索按钮的根元素,设置按钮的样式、悬浮效果和点击交互"
53
- },
54
- {
55
- "key": "button.icon",
56
- "description": "Search button icon element with icon styles, hover effects and click interactions",
57
- "descriptionZh": "搜索按钮的图标元素,设置图标的样式、悬浮效果和点击交互"
58
- },
59
- {
60
- "key": "button.content",
61
- "description": "Search button content element with text styles, hover effects and click interactions",
62
- "descriptionZh": "搜索按钮的内容元素,设置文本的样式、悬浮效果和点击交互"
63
- },
64
- {
65
- "key": "OTPSeparator",
66
- "description": "Separator element, set separator display styles between OTP input boxes",
67
- "descriptionZh": "分隔符元素,设置OTP输入框之间的分隔符显示样式"
68
- }
69
- ]
70
- }
@@ -1,123 +0,0 @@
1
- {
2
- "token": [
3
- {
4
- "name": "activeBg",
5
- "type": "string",
6
- "default": "#ffffff",
7
- "description": "Background color when the input box is activated",
8
- "descriptionZh": "输入框激活状态时背景颜色"
9
- },
10
- {
11
- "name": "activeBorderColor",
12
- "type": "string",
13
- "default": "#1677ff",
14
- "description": "Active border color",
15
- "descriptionZh": "激活态边框色"
16
- },
17
- {
18
- "name": "activeShadow",
19
- "type": "string",
20
- "default": "0 0 0 2px rgba(5,145,255,0.1)",
21
- "description": "Box-shadow when active",
22
- "descriptionZh": "激活态阴影"
23
- },
24
- {
25
- "name": "addonBg",
26
- "type": "string",
27
- "default": "rgba(0,0,0,0.02)",
28
- "description": "Background color of addon",
29
- "descriptionZh": "前/后置标签背景色"
30
- },
31
- {
32
- "name": "errorActiveShadow",
33
- "type": "string",
34
- "default": "0 0 0 2px rgba(255,38,5,0.06)",
35
- "description": "Box-shadow when active in error status",
36
- "descriptionZh": "错误状态时激活态阴影"
37
- },
38
- {
39
- "name": "hoverBg",
40
- "type": "string",
41
- "default": "#ffffff",
42
- "description": "Background color when the input box hovers",
43
- "descriptionZh": "输入框hover状态时背景颜色"
44
- },
45
- {
46
- "name": "hoverBorderColor",
47
- "type": "string",
48
- "default": "#4096ff",
49
- "description": "Hover border color",
50
- "descriptionZh": "悬浮态边框色"
51
- },
52
- {
53
- "name": "inputFontSize",
54
- "type": "number",
55
- "default": "14",
56
- "description": "Font size",
57
- "descriptionZh": "字体大小"
58
- },
59
- {
60
- "name": "inputFontSizeLG",
61
- "type": "number",
62
- "default": "16",
63
- "description": "Font size of large",
64
- "descriptionZh": "大号字体大小"
65
- },
66
- {
67
- "name": "inputFontSizeSM",
68
- "type": "number",
69
- "default": "14",
70
- "description": "Font size of small",
71
- "descriptionZh": "小号字体大小"
72
- },
73
- {
74
- "name": "paddingBlock",
75
- "type": "number",
76
- "default": "4",
77
- "description": "Vertical padding of input",
78
- "descriptionZh": "输入框纵向内边距"
79
- },
80
- {
81
- "name": "paddingBlockLG",
82
- "type": "number",
83
- "default": "7",
84
- "description": "Vertical padding of large input",
85
- "descriptionZh": "大号输入框纵向内边距"
86
- },
87
- {
88
- "name": "paddingBlockSM",
89
- "type": "number",
90
- "default": "0",
91
- "description": "Vertical padding of small input",
92
- "descriptionZh": "小号输入框纵向内边距"
93
- },
94
- {
95
- "name": "paddingInline",
96
- "type": "number",
97
- "default": "11",
98
- "description": "Horizontal padding of input",
99
- "descriptionZh": "输入框横向内边距"
100
- },
101
- {
102
- "name": "paddingInlineLG",
103
- "type": "number",
104
- "default": "11",
105
- "description": "Horizontal padding of large input",
106
- "descriptionZh": "大号输入框横向内边距"
107
- },
108
- {
109
- "name": "paddingInlineSM",
110
- "type": "number",
111
- "default": "7",
112
- "description": "Horizontal padding of small input",
113
- "descriptionZh": "小号输入框横向内边距"
114
- },
115
- {
116
- "name": "warningActiveShadow",
117
- "type": "string",
118
- "default": "0 0 0 2px rgba(255,215,5,0.1)",
119
- "description": "Box-shadow when active in warning status",
120
- "descriptionZh": "警告状态时激活态阴影"
121
- }
122
- ]
123
- }
@@ -1,7 +0,0 @@
1
- {
2
- "component": "Modal",
3
- "name": "basic",
4
- "title": "Basic",
5
- "description": "Basic modal.",
6
- "code": "<script setup lang=\"ts\">\nimport { shallowRef } from 'vue'\n\nconst open = shallowRef(false)\n\nfunction handleOk() {\n open.value = false\n}\n</script>\n\n<template>\n <a-flex gap=\"small\">\n <a-button type=\"primary\" @click=\"open = true\">\n Open Modal\n </a-button>\n </a-flex>\n <a-modal\n v-model:open=\"open\"\n title=\"Basic Modal\"\n :closable=\"{ 'aria-label': 'Custom Close Button' }\"\n @ok=\"handleOk\"\n >\n <p>Some contents...</p>\n <p>Some contents...</p>\n <p>Some contents...</p>\n </a-modal>\n</template>"
7
- }