soma-kit 0.1.11 → 0.1.13

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 (376) hide show
  1. package/README.md +106 -112
  2. package/bin/soma-kit.mjs +32 -2
  3. package/bin/soma.mjs +22 -0
  4. package/package.json +14 -7
  5. package/packs/finance/reconcile-board.ts +5 -2
  6. package/packs/finance/reconcile-desk/compile.ts +3 -2
  7. package/spec/generated/kit-app.schema.json +929 -37
  8. package/spec/generated/kit-page.schema.json +1684 -161
  9. package/spec/kit-grammar.json +1176 -584
  10. package/spec/kit-grammar.schema.json +1971 -393
  11. package/src/app/app-config.ts +449 -347
  12. package/src/app/component-gate.ts +283 -28
  13. package/src/app/compose-apps.ts +79 -8
  14. package/src/app/define-kit-actions.ts +245 -41
  15. package/src/app/define-kit-app.ts +176 -33
  16. package/src/app/define-kit-view.ts +104 -0
  17. package/src/app/dev-diagnostic.ts +5 -0
  18. package/src/app/envelope.ts +1 -161
  19. package/src/app/index.ts +29 -6
  20. package/src/app/kit-view-context.ts +439 -0
  21. package/src/app/notify-renderer.ts +1 -115
  22. package/src/app/paged-list-adapter.ts +1 -240
  23. package/src/app/render-ports.ts +18 -0
  24. package/src/app/server-pages.ts +11 -3
  25. package/src/app/server.ts +530 -103
  26. package/src/app/submit.types.ts +1 -1
  27. package/src/app/theme-endpoint.ts +63 -0
  28. package/src/app/theme-runtime-shared.ts +1 -0
  29. package/src/app/theme-runtime.ts +667 -0
  30. package/src/base/action-busy.ts +103 -6
  31. package/src/base/action-gate.ts +4 -255
  32. package/src/base/action-slots.ts +58 -0
  33. package/src/base/alert.ts +5 -3
  34. package/src/base/anchored-layer.ts +50 -0
  35. package/src/base/avatar.ts +2 -2
  36. package/src/base/button.ts +99 -37
  37. package/src/base/cascader.ts +11 -12
  38. package/src/base/check-core.ts +9 -1
  39. package/src/base/checkbox.ts +2 -1
  40. package/src/base/choice.ts +49 -28
  41. package/src/base/class-candidates.ts +17 -0
  42. package/src/base/color-picker.ts +16 -11
  43. package/src/base/combobox.ts +5 -3
  44. package/src/base/command-palette.ts +10 -6
  45. package/src/base/context-menu.ts +10 -7
  46. package/src/base/countdown.ts +1 -1
  47. package/src/base/date-range.ts +32 -18
  48. package/src/base/date.ts +135 -28
  49. package/src/base/delta.ts +72 -0
  50. package/src/base/divider.ts +2 -2
  51. package/src/base/end-edge.ts +49 -0
  52. package/src/base/fab.ts +12 -5
  53. package/src/base/gap-value.ts +148 -0
  54. package/src/base/hint-tips.ts +170 -0
  55. package/src/base/icons.ts +8 -0
  56. package/src/base/illustrations.ts +94 -0
  57. package/src/base/image.ts +1 -1
  58. package/src/base/index.ts +35 -11
  59. package/src/base/input.ts +42 -13
  60. package/src/base/kbd.ts +3 -1
  61. package/src/base/link.ts +4 -4
  62. package/src/base/listbox-core.ts +56 -35
  63. package/src/base/loading-gate.ts +186 -0
  64. package/src/base/mentions.ts +7 -6
  65. package/src/base/menu-button.ts +28 -12
  66. package/src/base/menu-core.ts +41 -8
  67. package/src/base/motion/aura.ts +2 -2
  68. package/src/base/motion/hover-3d.ts +3 -3
  69. package/src/base/motion/hover-gallery.ts +2 -2
  70. package/src/base/motion/marquee.ts +3 -3
  71. package/src/base/motion/text-rotate.ts +2 -2
  72. package/src/base/number.ts +93 -80
  73. package/src/base/otp.ts +9 -5
  74. package/src/base/overlay-runtime.ts +235 -0
  75. package/src/base/permission-gate.ts +6 -0
  76. package/src/base/popover.ts +48 -16
  77. package/src/base/popup.ts +143 -19
  78. package/src/base/portal-core.ts +4 -0
  79. package/src/base/price-text.ts +2 -2
  80. package/src/base/progress.ts +2 -2
  81. package/src/base/qr-code.ts +4 -4
  82. package/src/base/qty-stepper.ts +14 -8
  83. package/src/base/radio.ts +2 -1
  84. package/src/base/range.ts +21 -4
  85. package/src/base/rating.ts +12 -7
  86. package/src/base/reason-tip.ts +150 -0
  87. package/src/base/segmented.ts +27 -21
  88. package/src/base/select.ts +4 -3
  89. package/src/base/shared.ts +387 -49
  90. package/src/base/state-panel.ts +346 -0
  91. package/src/base/status-tone.ts +27 -0
  92. package/src/base/sticky-edge.ts +116 -0
  93. package/src/base/swap.ts +10 -7
  94. package/src/base/switch.ts +11 -6
  95. package/src/base/tag-input.ts +20 -16
  96. package/src/base/tag.ts +68 -34
  97. package/src/base/text.ts +80 -18
  98. package/src/base/textarea.ts +37 -11
  99. package/src/base/time-picker.ts +18 -13
  100. package/src/base/tree-select.ts +21 -12
  101. package/src/base/trend-tone.ts +9 -0
  102. package/src/base/upload.ts +48 -14
  103. package/src/base/view-transition.ts +77 -0
  104. package/src/base/virtual-list.ts +107 -1
  105. package/src/biz/approval-desk/compile.ts +23 -41
  106. package/src/biz/approval-desk/shell.ts +11 -8
  107. package/src/biz/auth-panel/compile.ts +37 -52
  108. package/src/biz/auth-panel/index.ts +1 -1
  109. package/src/biz/auth-panel/shell.ts +5 -4
  110. package/src/biz/category-crud/compile.ts +23 -37
  111. package/src/biz/category-crud/shell.ts +2 -1
  112. package/src/biz/checkout-page/compile.ts +22 -5
  113. package/src/biz/checkout-page/shell.ts +4 -3
  114. package/src/biz/compose.ts +13 -27
  115. package/src/biz/define.ts +5 -4
  116. package/src/biz/import-wizard/compile.ts +22 -26
  117. package/src/biz/import-wizard/hub.ts +126 -61
  118. package/src/biz/import-wizard/shell.ts +5 -4
  119. package/src/biz/index.ts +3 -3
  120. package/src/biz/landing-page/compile.ts +19 -3
  121. package/src/biz/link/hub.ts +69 -22
  122. package/src/biz/link/shared.ts +127 -119
  123. package/src/biz/master-sub/compile.ts +127 -48
  124. package/src/biz/master-sub/index.ts +5 -2
  125. package/src/biz/master-sub/shell.ts +95 -18
  126. package/src/biz/multi-board/compile.ts +38 -50
  127. package/src/biz/multi-board/index.ts +18 -1
  128. package/src/biz/multi-board/shell.ts +32 -20
  129. package/src/biz/notification-center/compile.ts +21 -33
  130. package/src/biz/notification-center/shell.ts +6 -4
  131. package/src/biz/page-templates/domain-templates.ts +80 -13
  132. package/src/biz/page-templates/result-page/compile.ts +11 -2
  133. package/src/biz/page-templates/result-page/shell.ts +2 -1
  134. package/src/biz/page-templates/shared.ts +34 -36
  135. package/src/biz/page-templates/sign-in-page/shell.ts +2 -2
  136. package/src/biz/record-detail/compile.ts +48 -43
  137. package/src/biz/record-detail/index.ts +11 -1
  138. package/src/biz/record-detail/shell.ts +8 -6
  139. package/src/biz/settings-center/compile.ts +7 -5
  140. package/src/biz/settings-center/shell.ts +6 -4
  141. package/src/biz/shared/action-host.ts +97 -211
  142. package/src/biz/shared/compile-helpers.ts +98 -0
  143. package/src/biz/shared/coordinator.ts +472 -92
  144. package/src/biz/shared/index.ts +13 -2
  145. package/src/biz/shared/object-aliases.ts +154 -0
  146. package/src/biz/shared/overlay-compile.ts +239 -0
  147. package/src/biz/shared/overlay-shell.ts +209 -0
  148. package/src/biz/shared/pipes.ts +50 -31
  149. package/src/biz/shared/remove-wire.ts +14 -0
  150. package/src/biz/shared/runtime-hub.ts +226 -24
  151. package/src/biz/single-form/compile.ts +16 -37
  152. package/src/biz/single-form/shell.ts +4 -3
  153. package/src/biz/standard-crud/compile.ts +72 -255
  154. package/src/biz/standard-crud/shell.ts +21 -99
  155. package/src/biz/step-form/compile.ts +26 -97
  156. package/src/biz/step-form/hub.ts +34 -41
  157. package/src/biz/step-form/shell.ts +5 -5
  158. package/src/biz/types.ts +4 -3
  159. package/src/cli/core-imports.ts +54 -0
  160. package/src/cli/kit-cli.ts +254 -25
  161. package/src/cli/kit-init.ts +227 -0
  162. package/src/cli/layout-cli.ts +167 -0
  163. package/src/cli/migrate/index.ts +10 -0
  164. package/src/cli/migrate/migrate.ts +248 -0
  165. package/src/cli/migrate/text-utils.ts +306 -0
  166. package/src/cli/migrate/theme-map.ts +104 -0
  167. package/src/cli/migrate/ts-rules.ts +235 -0
  168. package/src/cli/migrate/types.ts +95 -0
  169. package/src/cli/migrate/view-skeleton.ts +159 -0
  170. package/src/cli/migrate/yaml-report.ts +376 -0
  171. package/src/cli/migrate/yaml-rules.ts +465 -0
  172. package/src/cli/service-endpoint-check.ts +425 -0
  173. package/src/cli/source-path-check.d.mts +17 -0
  174. package/src/cli/source-path-check.mjs +334 -0
  175. package/src/cli/view-writes.ts +761 -0
  176. package/src/compile/action-host-attach.ts +21 -29
  177. package/src/compile/closed-set.ts +570 -0
  178. package/src/compile/compile-page.ts +267 -76
  179. package/src/compile/component-candidates.ts +13 -2
  180. package/src/compile/hints.ts +30 -1
  181. package/src/compile/index.ts +1 -0
  182. package/src/compile/kit-error.ts +1 -0
  183. package/src/compile/layout-lint/engine.ts +82 -0
  184. package/src/compile/layout-lint/index.ts +55 -0
  185. package/src/compile/layout-lint/rules-composition.ts +218 -0
  186. package/src/compile/layout-lint/rules-form.ts +192 -0
  187. package/src/compile/layout-lint/rules-table.ts +194 -0
  188. package/src/compile/layout-lint/score.ts +52 -0
  189. package/src/compile/layout-lint/types.ts +51 -0
  190. package/src/compile/locate.ts +21 -1
  191. package/src/compile/parse.ts +370 -41
  192. package/src/compile/redirect.ts +6 -2
  193. package/src/compile/remove-guard.ts +10 -7
  194. package/src/compile/styles.ts +63 -2
  195. package/src/compile/types.ts +31 -3
  196. package/src/compile/view-check.ts +284 -0
  197. package/src/data/amount-breakdown.ts +8 -3
  198. package/src/data/anchor-nav.ts +2 -2
  199. package/src/data/approval-flow.ts +3 -3
  200. package/src/data/assignment-picker.ts +92 -55
  201. package/src/data/async-result-panel.ts +111 -9
  202. package/src/data/breadcrumbs.ts +5 -4
  203. package/src/data/calendar.ts +24 -27
  204. package/src/data/carousel.ts +13 -8
  205. package/src/data/chart.ts +183 -44
  206. package/src/data/checklist.ts +20 -7
  207. package/src/data/code-view.ts +12 -6
  208. package/src/data/comment-thread.ts +7 -4
  209. package/src/data/confirm-dialog.ts +81 -18
  210. package/src/data/context-menu.ts +29 -37
  211. package/src/data/d9-util.ts +2 -18
  212. package/src/data/diff.ts +4 -2
  213. package/src/data/dock.ts +3 -3
  214. package/src/data/embed.ts +233 -30
  215. package/src/data/field-mapper.ts +35 -30
  216. package/src/data/flow-editor-contract.ts +8 -1
  217. package/src/data/flow-editor.ts +113 -108
  218. package/src/data/flow-node-options.ts +120 -0
  219. package/src/data/flow-remote-options.ts +0 -103
  220. package/src/data/footer.ts +2 -2
  221. package/src/data/form-draft-registry.ts +2 -4
  222. package/src/data/gantt.ts +19 -19
  223. package/src/data/hero.ts +4 -3
  224. package/src/data/image-viewer.ts +27 -30
  225. package/src/data/index.ts +5 -2
  226. package/src/data/item-list.ts +48 -31
  227. package/src/data/kanban.ts +82 -52
  228. package/src/data/media-grid.ts +20 -20
  229. package/src/data/mega-menu.ts +6 -4
  230. package/src/data/menu-dom.ts +4 -2
  231. package/src/data/menu.ts +47 -15
  232. package/src/data/mockup.ts +10 -6
  233. package/src/data/modal-dialog.ts +49 -25
  234. package/src/data/navbar.ts +12 -7
  235. package/src/data/notice-list.ts +268 -0
  236. package/src/data/notify-renderer.ts +250 -0
  237. package/src/data/object-form.ts +1360 -666
  238. package/src/data/outcome-watch.ts +61 -2
  239. package/src/data/pager.ts +80 -34
  240. package/src/data/permission-matrix.ts +52 -31
  241. package/src/data/permission-tree.ts +71 -44
  242. package/src/data/pricing-table.ts +30 -14
  243. package/src/data/prompt-dialog.ts +124 -194
  244. package/src/data/reaction-bar.ts +83 -92
  245. package/src/data/read-rollback.ts +73 -0
  246. package/src/data/record-card.ts +26 -5
  247. package/src/data/record-picker.ts +104 -55
  248. package/src/data/redirect.ts +32 -32
  249. package/src/data/remote-options.ts +13 -6
  250. package/src/data/request-console.ts +5 -3
  251. package/src/data/resident.ts +2 -1
  252. package/src/data/result-panel.ts +8 -4
  253. package/src/data/rich-text.ts +61 -55
  254. package/src/data/row-editor.ts +362 -76
  255. package/src/data/rule-builder.ts +26 -20
  256. package/src/data/shape-util.ts +27 -9
  257. package/src/data/stat-group.ts +392 -109
  258. package/src/data/static-lazy.ts +1 -0
  259. package/src/data/static-registry.ts +24 -11
  260. package/src/data/steps.ts +10 -5
  261. package/src/data/survey.ts +27 -32
  262. package/src/data/system-switcher.ts +3 -3
  263. package/src/data/text-action-button.ts +17 -0
  264. package/src/data/timeline.ts +19 -8
  265. package/src/data/tour-guide.ts +23 -30
  266. package/src/data/transfer.ts +62 -38
  267. package/src/data/tree-table.ts +152 -78
  268. package/src/data/tree.ts +49 -36
  269. package/src/data/trend-line.ts +6 -24
  270. package/src/data/virtual-rows.ts +133 -82
  271. package/src/data/watermark.ts +2 -2
  272. package/src/data/wrap.ts +63 -38
  273. package/src/data/wrapped-candidates.ts +10 -0
  274. package/src/frames/blank-frame.ts +1 -0
  275. package/src/frames/index.ts +2 -2
  276. package/src/frames/page-bar.ts +26 -24
  277. package/src/frames/page-header.ts +14 -5
  278. package/src/frames/page-status.ts +9 -7
  279. package/src/frames/shared.ts +36 -25
  280. package/src/frames/single-frame.ts +1 -0
  281. package/src/frames/split-frame/shell.ts +6 -6
  282. package/src/frames/split-frame/wiring.ts +2 -2
  283. package/src/frames/tabs-frame/shell.ts +4 -14
  284. package/src/frames/tabs-frame/wiring.ts +5 -8
  285. package/src/frames/top-main-frame.ts +3 -2
  286. package/src/frames/types.ts +13 -2
  287. package/src/frames/workspace-frame/extras.ts +21 -5
  288. package/src/frames/workspace-frame/index.ts +1 -1
  289. package/src/frames/workspace-frame/shell.ts +3 -2
  290. package/src/frames/workspace-frame/state.ts +13 -6
  291. package/src/frames/workspace-frame/view.ts +250 -48
  292. package/src/generated/kit-grammar-runtime.ts +645 -397
  293. package/src/generated/page-origin.ts +0 -11
  294. package/src/i18n/kit-text.ts +84 -29
  295. package/src/i18n/resolve-text-refs.ts +22 -6
  296. package/src/index.ts +2 -1
  297. package/src/object-renderer/action-gate.ts +11 -147
  298. package/src/object-renderer/arrange.ts +112 -84
  299. package/src/object-renderer/collapse-wiring.ts +2 -2
  300. package/src/object-renderer/collection-expand.ts +2 -2
  301. package/src/object-renderer/collection-parts.ts +401 -104
  302. package/src/object-renderer/collection-table.ts +287 -45
  303. package/src/object-renderer/collection.ts +258 -104
  304. package/src/object-renderer/compile-data.ts +112 -102
  305. package/src/object-renderer/crud-bridge.ts +32 -0
  306. package/src/object-renderer/defaults.ts +38 -16
  307. package/src/object-renderer/display-checks.ts +4 -25
  308. package/src/object-renderer/emit-events.ts +224 -176
  309. package/src/object-renderer/emit-object.ts +15 -2
  310. package/src/object-renderer/emit-static.ts +533 -151
  311. package/src/object-renderer/field-value.ts +593 -396
  312. package/src/object-renderer/filter-reload.ts +70 -0
  313. package/src/object-renderer/form-detail.ts +111 -2
  314. package/src/object-renderer/form-notify.ts +45 -0
  315. package/src/object-renderer/index.ts +26 -0
  316. package/src/object-renderer/key-field.ts +12 -0
  317. package/src/object-renderer/layout-facts.ts +386 -0
  318. package/src/object-renderer/layout-plan.ts +132 -0
  319. package/src/object-renderer/layout-plan.types.ts +22 -0
  320. package/src/object-renderer/linkage.ts +7 -270
  321. package/src/object-renderer/merge-class.ts +18 -1
  322. package/src/object-renderer/parts.ts +252 -1
  323. package/src/object-renderer/path-pick.ts +27 -0
  324. package/src/object-renderer/render-object.ts +456 -89
  325. package/src/object-renderer/request-actions.ts +232 -249
  326. package/src/object-renderer/skeleton.ts +58 -19
  327. package/src/object-renderer/table-actions.ts +319 -111
  328. package/src/object-renderer/table-summary.ts +2 -2
  329. package/src/object-renderer/table-tools.ts +429 -94
  330. package/src/object-renderer/types.ts +204 -127
  331. package/src/object-renderer/view-binding.ts +393 -0
  332. package/src/page-target/ai-surface.ts +37 -0
  333. package/src/page-target/compile.ts +48 -8
  334. package/src/page-target/index.ts +8 -1
  335. package/src/page-target/intent-schema.ts +165 -28
  336. package/src/page-target/target.ts +262 -51
  337. package/src/page-target/writer-policy.ts +14 -3
  338. package/src/recipes/container.ts +210 -0
  339. package/src/recipes/control.ts +277 -0
  340. package/src/recipes/index.ts +312 -0
  341. package/src/recipes/nowrap.ts +16 -0
  342. package/src/recipes/overlay.ts +240 -0
  343. package/src/recipes/placeholder.ts +79 -0
  344. package/src/recipes/rail-grid.ts +45 -0
  345. package/src/recipes/slot-align.ts +56 -0
  346. package/src/recipes/state.ts +99 -0
  347. package/src/recipes/status.ts +139 -0
  348. package/src/recipes/surface.ts +40 -0
  349. package/src/recipes/table-row.ts +88 -0
  350. package/src/recipes/title-row.ts +37 -0
  351. package/src/recipes/typography.ts +99 -0
  352. package/src/shared/action-field-guard.ts +41 -0
  353. package/src/shared/confirm-decl.ts +118 -0
  354. package/src/shared/envelope.ts +207 -0
  355. package/src/shared/escape.ts +57 -0
  356. package/src/shared/kit-error.ts +21 -0
  357. package/src/shared/paged-list-adapter.ts +15 -0
  358. package/src/shared/path-guard.ts +127 -0
  359. package/src/shared/theme-runtime-shared.ts +180 -0
  360. package/src/shared/view-info.ts +10 -0
  361. package/src/theme/index.ts +13 -0
  362. package/src/theme/kit-theme-text.ts +1 -1
  363. package/src/theme/kit-theme.css +407 -10
  364. package/src/theme/kit-theme.tpl +407 -10
  365. package/src/theme/nine-dim-structure.ts +247 -0
  366. package/src/theme/surface-layers.ts +101 -0
  367. package/src/theme/theme-tokens.ts +130 -84
  368. package/src/theme/theme-types.ts +103 -0
  369. package/src/theme/typography.ts +17 -17
  370. package/src/biz/shared/step-values.ts +0 -25
  371. package/src/biz/step-form/steps-ref.ts +0 -112
  372. package/src/data/options-bus.ts +0 -24
  373. package/src/object-renderer/adopt-gate.ts +0 -333
  374. package/src/object-renderer/field-policy.ts +0 -89
  375. package/src/object-renderer/outcome-draft.ts +0 -61
  376. package/src/theme/nine-dim-palettes.ts +0 -1473
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "$id": "soma-kit/kit-app.schema.json",
4
4
  "title": "soma-kit 应用配置(kit.app.yaml)",
5
- "description": "键闭集对应 src/app/app-config.ts;勿手改,重新生成:npm run schema:build -w soma-kit",
5
+ "description": "键闭集读 src/app/app-config.ts,九维取值域读 soma-foundation 的 KIT_NINE_DIM_DOMAINS 投影;勿手改,重新生成:npm run schema:build -w soma-kit",
6
6
  "type": "object",
7
7
  "additionalProperties": false,
8
8
  "properties": {
@@ -10,68 +10,411 @@
10
10
  "type": "string",
11
11
  "description": "主题头文件路径(相对应用根);缺省用内置 kit-theme.css"
12
12
  },
13
- "envelope": {
14
- "type": "object",
15
- "additionalProperties": false,
16
- "description": "业务信封约定:failWhen 命中即业务失败(编进 core 的 failWhen);messagePath 失败文案位置;dataPath 成功数据位置",
17
- "properties": {
18
- "failWhen": {
19
- "type": "object",
20
- "description": "闭集谓词 { field, op, value } 或 all_of / any_of / none_of"
21
- },
22
- "messagePath": {
23
- "type": "string",
24
- "description": "失败时业务文案在响应里的点路径(须与 failWhen 一起写)"
25
- },
26
- "dataPath": {
27
- "type": "string",
28
- "description": "成功时数据在响应里的点路径(缺省不拆)"
29
- }
30
- }
31
- },
32
13
  "theme": {
33
14
  "type": "object",
34
15
  "additionalProperties": false,
35
- "description": "主题声明,交 soma-foundation 求解令牌",
16
+ "description": "主题声明(只支持九维 + mode,蛇形 / 驼峰两写法均可),交 soma-foundation 求解令牌",
36
17
  "properties": {
37
18
  "palette": {
38
- "type": "string"
19
+ "enum": [
20
+ "CLASSIC_TECH_BLUE",
21
+ "BUSINESS_INDIGO_BLUE",
22
+ "FAR_MOUNTAIN_SKY",
23
+ "GLACIER_STEEL_BLUE",
24
+ "GOVERNMENT_RED",
25
+ "PROSPEROUS_CHINA_RED",
26
+ "AMBER_TERRACOTTA",
27
+ "GILT_BUSINESS_BROWN",
28
+ "FINANCIAL_EMERALD",
29
+ "BAMBOO_FOREST_CYAN",
30
+ "TURQUOISE_LAKE",
31
+ "OLIVE_EARTH_GREEN",
32
+ "INNOVATIVE_VIOLET",
33
+ "LILAC_TWILIGHT",
34
+ "CORAL_PEACH_PINK",
35
+ "NEBULA_PLUM_PURPLE",
36
+ "MINIMAL_MONOCHROME",
37
+ "INDUSTRIAL_STEEL_GRAY",
38
+ "WARM_XUAN_PAPER",
39
+ "MATCHA_EYE_CARE",
40
+ "DEEP_OCEAN_DARK",
41
+ "GEEK_VIOLET_DARK",
42
+ "OBSIDIAN_NIGHT_DARK",
43
+ "FOREST_PINE_DARK",
44
+ "WARM_PAPER"
45
+ ],
46
+ "description": "01 配色(24 套人工精调)(取值域读 soma-design kit-nine-dim.json 的投影)"
39
47
  },
40
48
  "color_depth": {
41
- "type": "string"
49
+ "enum": [
50
+ "VERY_LIGHT",
51
+ "SLIGHTLY_LIGHT",
52
+ "STANDARD_DEPTH",
53
+ "SLIGHTLY_DEEP",
54
+ "VERY_DEEP"
55
+ ],
56
+ "description": "02 颜色深浅(取值域读 soma-design kit-nine-dim.json 的投影)"
57
+ },
58
+ "colorDepth": {
59
+ "enum": [
60
+ "VERY_LIGHT",
61
+ "SLIGHTLY_LIGHT",
62
+ "STANDARD_DEPTH",
63
+ "SLIGHTLY_DEEP",
64
+ "VERY_DEEP"
65
+ ],
66
+ "description": "02 颜色深浅(取值域读 soma-design kit-nine-dim.json 的投影)"
42
67
  },
43
68
  "color_saturation": {
44
- "type": "string"
69
+ "enum": [
70
+ "VIVID",
71
+ "STANDARD_SATURATION",
72
+ "SOFT_MUTED",
73
+ "LOW_COLOR"
74
+ ],
75
+ "description": "03 颜色鲜艳度(取值域读 soma-design kit-nine-dim.json 的投影)"
76
+ },
77
+ "colorSaturation": {
78
+ "enum": [
79
+ "VIVID",
80
+ "STANDARD_SATURATION",
81
+ "SOFT_MUTED",
82
+ "LOW_COLOR"
83
+ ],
84
+ "description": "03 颜色鲜艳度(取值域读 soma-design kit-nine-dim.json 的投影)"
45
85
  },
46
86
  "font_family": {
47
- "type": "string"
87
+ "enum": [
88
+ "SYSTEM_SANS",
89
+ "GEOMETRIC_ROUNDED",
90
+ "INDUSTRIAL_REPORT",
91
+ "EDITORIAL_SERIF",
92
+ "SERIF_DISPLAY",
93
+ "GEEK_MONO",
94
+ "BOLD_DISPLAY"
95
+ ],
96
+ "description": "04 字体类型(取值域读 soma-design kit-nine-dim.json 的投影)"
97
+ },
98
+ "fontFamily": {
99
+ "enum": [
100
+ "SYSTEM_SANS",
101
+ "GEOMETRIC_ROUNDED",
102
+ "INDUSTRIAL_REPORT",
103
+ "EDITORIAL_SERIF",
104
+ "SERIF_DISPLAY",
105
+ "GEEK_MONO",
106
+ "BOLD_DISPLAY"
107
+ ],
108
+ "description": "04 字体类型(取值域读 soma-design kit-nine-dim.json 的投影)"
48
109
  },
49
110
  "font_scale": {
50
- "type": "string"
111
+ "enum": [
112
+ "SMALL_COMPACT",
113
+ "MEDIUM_STANDARD",
114
+ "LARGE_LOOSE",
115
+ "XLARGE_DISPLAY"
116
+ ],
117
+ "description": "05 字号与行距档(取值域读 soma-design kit-nine-dim.json 的投影)"
118
+ },
119
+ "fontScale": {
120
+ "enum": [
121
+ "SMALL_COMPACT",
122
+ "MEDIUM_STANDARD",
123
+ "LARGE_LOOSE",
124
+ "XLARGE_DISPLAY"
125
+ ],
126
+ "description": "05 字号与行距档(取值域读 soma-design kit-nine-dim.json 的投影)"
51
127
  },
52
128
  "boundary": {
53
- "type": "string"
129
+ "enum": [
130
+ "HAIRLINE_BORDER",
131
+ "BORDERLESS_SHADOW",
132
+ "TONAL_FILL",
133
+ "BORDER_AND_SHADOW"
134
+ ],
135
+ "description": "06 组件边界方案(取值域读 soma-design kit-nine-dim.json 的投影)"
54
136
  },
55
137
  "shape": {
56
- "type": "string"
138
+ "enum": [
139
+ "STANDARD_ROUNDED",
140
+ "SMALL_SHARP",
141
+ "PILL_CAPSULE",
142
+ "PURE_SQUARE"
143
+ ],
144
+ "description": "07 圆角与形状(取值域读 soma-design kit-nine-dim.json 的投影)"
57
145
  },
58
146
  "surface_texture": {
59
- "type": "string"
147
+ "enum": [
148
+ "LAYERED_SOFT",
149
+ "GLASS_CHROME",
150
+ "SOLID_MATTE",
151
+ "FROSTED_GLASS",
152
+ "SUBTLE_RELIEF"
153
+ ],
154
+ "description": "08 表面质感(取值域读 soma-design kit-nine-dim.json 的投影)"
155
+ },
156
+ "surfaceTexture": {
157
+ "enum": [
158
+ "LAYERED_SOFT",
159
+ "GLASS_CHROME",
160
+ "SOLID_MATTE",
161
+ "FROSTED_GLASS",
162
+ "SUBTLE_RELIEF"
163
+ ],
164
+ "description": "08 表面质感(取值域读 soma-design kit-nine-dim.json 的投影)"
60
165
  },
61
166
  "density": {
62
- "type": "string"
167
+ "enum": [
168
+ "COMPACT_DENSE",
169
+ "STANDARD_BALANCED",
170
+ "SPACIOUS_AIRY"
171
+ ],
172
+ "description": "09 空间松紧度(取值域读 soma-design kit-nine-dim.json 的投影)"
173
+ },
174
+ "motion": {
175
+ "enum": [
176
+ "STILL_INSTANT",
177
+ "RESTRAINED_CALM",
178
+ "STANDARD_BRISK",
179
+ "EXPRESSIVE_SPRING"
180
+ ],
181
+ "description": "10 动效性格(扩展维度,折叠到 design 动效人格)(取值域读 soma-design kit-nine-dim.json 的投影)"
182
+ },
183
+ "table_style": {
184
+ "enum": [
185
+ "ROW_DIVIDER",
186
+ "ZEBRA_STRIPE",
187
+ "GRID_LINES",
188
+ "OPEN_ROWS"
189
+ ],
190
+ "description": "11 表格行风格(扩展维度)(取值域读 soma-design kit-nine-dim.json 的投影)"
191
+ },
192
+ "tableStyle": {
193
+ "enum": [
194
+ "ROW_DIVIDER",
195
+ "ZEBRA_STRIPE",
196
+ "GRID_LINES",
197
+ "OPEN_ROWS"
198
+ ],
199
+ "description": "11 表格行风格(扩展维度)(取值域读 soma-design kit-nine-dim.json 的投影)"
63
200
  },
64
- "palette_scheme": {
65
- "type": "string"
201
+ "contrast": {
202
+ "enum": [
203
+ "SOFT_CONTRAST",
204
+ "STANDARD_CONTRAST",
205
+ "STRONG_CONTRAST"
206
+ ],
207
+ "description": "12 对比度档(扩展维度,折叠到 values.palette.contrast)(取值域读 soma-design kit-nine-dim.json 的投影)"
66
208
  },
67
- "font_scheme": {
68
- "type": "string"
209
+ "accent_usage": {
210
+ "enum": [
211
+ "BRAND_ACTION",
212
+ "INK_ACTION"
213
+ ],
214
+ "description": "13 强调色用法(扩展维度,折叠到 values.palette.action_track:品牌色 / 墨色主按钮)(取值域读 soma-design kit-nine-dim.json 的投影)"
69
215
  },
70
- "color": {
71
- "type": "string"
216
+ "accentUsage": {
217
+ "enum": [
218
+ "BRAND_ACTION",
219
+ "INK_ACTION"
220
+ ],
221
+ "description": "13 强调色用法(扩展维度,折叠到 values.palette.action_track:品牌色 / 墨色主按钮)(取值域读 soma-design kit-nine-dim.json 的投影)"
222
+ },
223
+ "preset": {
224
+ "enum": [
225
+ "CLEAR",
226
+ "GALLERY",
227
+ "PRECISION",
228
+ "WARM_PAPER",
229
+ "STANDARD_ADMIN",
230
+ "DENSE_DATA",
231
+ "GOVERNMENT",
232
+ "BIG_SCREEN",
233
+ "CALM_READING"
234
+ ],
235
+ "description": "主题预设(一个名字展开成全套维度取值,显式写的维度压过预设)(取值域读 soma-design kit-nine-dim.json 的投影)"
72
236
  },
73
237
  "mode": {
74
- "type": "string"
238
+ "enum": [
239
+ "light",
240
+ "dark",
241
+ "system",
242
+ "soft"
243
+ ],
244
+ "description": "极性(light / dark / system / soft)"
245
+ }
246
+ }
247
+ },
248
+ "layout": {
249
+ "type": "object",
250
+ "additionalProperties": false,
251
+ "description": "应用级默认页面外框与导航继承配置(键名为蛇形:max_width / sticky_header)",
252
+ "properties": {
253
+ "frame": {
254
+ "type": "string",
255
+ "description": "默认页面框(非空字符串)"
256
+ },
257
+ "max_width": {
258
+ "enum": [
259
+ "narrow",
260
+ "medium",
261
+ "wide",
262
+ "full"
263
+ ],
264
+ "description": "内容最大宽度档"
265
+ },
266
+ "sticky_header": {
267
+ "type": "boolean"
268
+ },
269
+ "header": {
270
+ "type": "object",
271
+ "additionalProperties": false,
272
+ "properties": {
273
+ "brand": {
274
+ "type": "object",
275
+ "additionalProperties": false,
276
+ "required": [
277
+ "text"
278
+ ],
279
+ "properties": {
280
+ "text": {
281
+ "type": "string"
282
+ },
283
+ "href": {
284
+ "type": "string"
285
+ }
286
+ }
287
+ },
288
+ "nav": {
289
+ "type": "array",
290
+ "items": {
291
+ "type": "object",
292
+ "additionalProperties": false,
293
+ "required": [
294
+ "id",
295
+ "label"
296
+ ],
297
+ "properties": {
298
+ "id": {
299
+ "type": "string"
300
+ },
301
+ "label": {
302
+ "type": "string"
303
+ },
304
+ "href": {
305
+ "type": "string"
306
+ },
307
+ "url": {
308
+ "type": "string"
309
+ },
310
+ "icon": {
311
+ "type": "string"
312
+ }
313
+ }
314
+ }
315
+ },
316
+ "actions": {
317
+ "type": "array",
318
+ "items": {
319
+ "type": "object",
320
+ "additionalProperties": false,
321
+ "required": [
322
+ "id",
323
+ "label"
324
+ ],
325
+ "properties": {
326
+ "id": {
327
+ "type": "string"
328
+ },
329
+ "label": {
330
+ "type": "string"
331
+ },
332
+ "href": {
333
+ "type": "string"
334
+ },
335
+ "url": {
336
+ "type": "string"
337
+ },
338
+ "icon": {
339
+ "type": "string"
340
+ }
341
+ }
342
+ }
343
+ }
344
+ }
345
+ },
346
+ "sidebar": {
347
+ "type": "object",
348
+ "additionalProperties": false,
349
+ "properties": {
350
+ "title": {
351
+ "type": "string"
352
+ },
353
+ "width": {
354
+ "type": "number"
355
+ },
356
+ "menu": {
357
+ "type": "array",
358
+ "items": {
359
+ "type": "object",
360
+ "additionalProperties": false,
361
+ "required": [
362
+ "id",
363
+ "label"
364
+ ],
365
+ "properties": {
366
+ "id": {
367
+ "type": "string"
368
+ },
369
+ "label": {
370
+ "type": "string"
371
+ },
372
+ "href": {
373
+ "type": "string"
374
+ },
375
+ "url": {
376
+ "type": "string"
377
+ },
378
+ "icon": {
379
+ "type": "string"
380
+ }
381
+ }
382
+ }
383
+ }
384
+ }
385
+ },
386
+ "footer": {
387
+ "type": "object",
388
+ "additionalProperties": false,
389
+ "properties": {
390
+ "text": {
391
+ "type": "string"
392
+ },
393
+ "links": {
394
+ "type": "array",
395
+ "items": {
396
+ "type": "object",
397
+ "additionalProperties": false,
398
+ "required": [
399
+ "label",
400
+ "href"
401
+ ],
402
+ "properties": {
403
+ "label": {
404
+ "type": "string"
405
+ },
406
+ "href": {
407
+ "type": "string"
408
+ }
409
+ }
410
+ }
411
+ }
412
+ }
413
+ },
414
+ "rules": {
415
+ "type": "integer",
416
+ "minimum": 0,
417
+ "description": "布局规则版本钉:0 = 现状(缺省,12 份均分,输出逐字节不变);新应用与 AI 生成页钉最新版(RV-1117)"
75
418
  }
76
419
  }
77
420
  },
@@ -106,6 +449,555 @@
106
449
  }
107
450
  }
108
451
  }
452
+ },
453
+ "envelope": {
454
+ "type": "object",
455
+ "additionalProperties": false,
456
+ "description": "业务信封约定:failWhen 命中即业务失败(编进 core 的 failWhen);messagePath 失败文案位置;dataPath 成功数据位置",
457
+ "properties": {
458
+ "failWhen": {
459
+ "type": "object",
460
+ "description": "闭集谓词 { field, op, value } 或 all_of / any_of / none_of"
461
+ },
462
+ "messagePath": {
463
+ "type": "string",
464
+ "description": "失败时业务文案在响应里的点路径(须与 failWhen 一起写)"
465
+ },
466
+ "dataPath": {
467
+ "type": "string",
468
+ "description": "成功时数据在响应里的点路径(缺省不拆)"
469
+ }
470
+ }
471
+ },
472
+ "dicts": {
473
+ "type": "object",
474
+ "description": "应用级共享枚举字典:字典名 -> [{ value, label, tone? }],页面字段 options: \"$dict.<名>\" 引用",
475
+ "propertyNames": {
476
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
477
+ },
478
+ "additionalProperties": {
479
+ "type": "array",
480
+ "minItems": 1,
481
+ "items": {
482
+ "type": "object",
483
+ "additionalProperties": false,
484
+ "required": [
485
+ "value",
486
+ "label"
487
+ ],
488
+ "properties": {
489
+ "value": {
490
+ "type": [
491
+ "string",
492
+ "number",
493
+ "boolean"
494
+ ]
495
+ },
496
+ "label": {
497
+ "type": "string",
498
+ "minLength": 1
499
+ },
500
+ "tone": {
501
+ "type": "string",
502
+ "minLength": 1
503
+ }
504
+ }
505
+ }
506
+ }
507
+ },
508
+ "entities": {
509
+ "type": "object",
510
+ "description": "应用级共享实体字段定义:实体名 -> { 字段名: 字段声明 },页面对象 schema: \"$entity.<名>\" 引用(字段声明内部由编译器校验)",
511
+ "propertyNames": {
512
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
513
+ },
514
+ "additionalProperties": {
515
+ "type": "object"
516
+ }
517
+ },
518
+ "app": {
519
+ "type": "object",
520
+ "additionalProperties": false,
521
+ "description": "应用级配置块:与顶层同名同形的键写在这里等价(两处都写时 app 内的键覆盖顶层)",
522
+ "properties": {
523
+ "style": {
524
+ "type": "string",
525
+ "description": "主题头文件路径(相对应用根);缺省用内置 kit-theme.css"
526
+ },
527
+ "theme": {
528
+ "type": "object",
529
+ "additionalProperties": false,
530
+ "description": "主题声明(只支持九维 + mode,蛇形 / 驼峰两写法均可),交 soma-foundation 求解令牌",
531
+ "properties": {
532
+ "palette": {
533
+ "enum": [
534
+ "CLASSIC_TECH_BLUE",
535
+ "BUSINESS_INDIGO_BLUE",
536
+ "FAR_MOUNTAIN_SKY",
537
+ "GLACIER_STEEL_BLUE",
538
+ "GOVERNMENT_RED",
539
+ "PROSPEROUS_CHINA_RED",
540
+ "AMBER_TERRACOTTA",
541
+ "GILT_BUSINESS_BROWN",
542
+ "FINANCIAL_EMERALD",
543
+ "BAMBOO_FOREST_CYAN",
544
+ "TURQUOISE_LAKE",
545
+ "OLIVE_EARTH_GREEN",
546
+ "INNOVATIVE_VIOLET",
547
+ "LILAC_TWILIGHT",
548
+ "CORAL_PEACH_PINK",
549
+ "NEBULA_PLUM_PURPLE",
550
+ "MINIMAL_MONOCHROME",
551
+ "INDUSTRIAL_STEEL_GRAY",
552
+ "WARM_XUAN_PAPER",
553
+ "MATCHA_EYE_CARE",
554
+ "DEEP_OCEAN_DARK",
555
+ "GEEK_VIOLET_DARK",
556
+ "OBSIDIAN_NIGHT_DARK",
557
+ "FOREST_PINE_DARK",
558
+ "WARM_PAPER"
559
+ ],
560
+ "description": "01 配色(24 套人工精调)(取值域读 soma-design kit-nine-dim.json 的投影)"
561
+ },
562
+ "color_depth": {
563
+ "enum": [
564
+ "VERY_LIGHT",
565
+ "SLIGHTLY_LIGHT",
566
+ "STANDARD_DEPTH",
567
+ "SLIGHTLY_DEEP",
568
+ "VERY_DEEP"
569
+ ],
570
+ "description": "02 颜色深浅(取值域读 soma-design kit-nine-dim.json 的投影)"
571
+ },
572
+ "colorDepth": {
573
+ "enum": [
574
+ "VERY_LIGHT",
575
+ "SLIGHTLY_LIGHT",
576
+ "STANDARD_DEPTH",
577
+ "SLIGHTLY_DEEP",
578
+ "VERY_DEEP"
579
+ ],
580
+ "description": "02 颜色深浅(取值域读 soma-design kit-nine-dim.json 的投影)"
581
+ },
582
+ "color_saturation": {
583
+ "enum": [
584
+ "VIVID",
585
+ "STANDARD_SATURATION",
586
+ "SOFT_MUTED",
587
+ "LOW_COLOR"
588
+ ],
589
+ "description": "03 颜色鲜艳度(取值域读 soma-design kit-nine-dim.json 的投影)"
590
+ },
591
+ "colorSaturation": {
592
+ "enum": [
593
+ "VIVID",
594
+ "STANDARD_SATURATION",
595
+ "SOFT_MUTED",
596
+ "LOW_COLOR"
597
+ ],
598
+ "description": "03 颜色鲜艳度(取值域读 soma-design kit-nine-dim.json 的投影)"
599
+ },
600
+ "font_family": {
601
+ "enum": [
602
+ "SYSTEM_SANS",
603
+ "GEOMETRIC_ROUNDED",
604
+ "INDUSTRIAL_REPORT",
605
+ "EDITORIAL_SERIF",
606
+ "SERIF_DISPLAY",
607
+ "GEEK_MONO",
608
+ "BOLD_DISPLAY"
609
+ ],
610
+ "description": "04 字体类型(取值域读 soma-design kit-nine-dim.json 的投影)"
611
+ },
612
+ "fontFamily": {
613
+ "enum": [
614
+ "SYSTEM_SANS",
615
+ "GEOMETRIC_ROUNDED",
616
+ "INDUSTRIAL_REPORT",
617
+ "EDITORIAL_SERIF",
618
+ "SERIF_DISPLAY",
619
+ "GEEK_MONO",
620
+ "BOLD_DISPLAY"
621
+ ],
622
+ "description": "04 字体类型(取值域读 soma-design kit-nine-dim.json 的投影)"
623
+ },
624
+ "font_scale": {
625
+ "enum": [
626
+ "SMALL_COMPACT",
627
+ "MEDIUM_STANDARD",
628
+ "LARGE_LOOSE",
629
+ "XLARGE_DISPLAY"
630
+ ],
631
+ "description": "05 字号与行距档(取值域读 soma-design kit-nine-dim.json 的投影)"
632
+ },
633
+ "fontScale": {
634
+ "enum": [
635
+ "SMALL_COMPACT",
636
+ "MEDIUM_STANDARD",
637
+ "LARGE_LOOSE",
638
+ "XLARGE_DISPLAY"
639
+ ],
640
+ "description": "05 字号与行距档(取值域读 soma-design kit-nine-dim.json 的投影)"
641
+ },
642
+ "boundary": {
643
+ "enum": [
644
+ "HAIRLINE_BORDER",
645
+ "BORDERLESS_SHADOW",
646
+ "TONAL_FILL",
647
+ "BORDER_AND_SHADOW"
648
+ ],
649
+ "description": "06 组件边界方案(取值域读 soma-design kit-nine-dim.json 的投影)"
650
+ },
651
+ "shape": {
652
+ "enum": [
653
+ "STANDARD_ROUNDED",
654
+ "SMALL_SHARP",
655
+ "PILL_CAPSULE",
656
+ "PURE_SQUARE"
657
+ ],
658
+ "description": "07 圆角与形状(取值域读 soma-design kit-nine-dim.json 的投影)"
659
+ },
660
+ "surface_texture": {
661
+ "enum": [
662
+ "LAYERED_SOFT",
663
+ "GLASS_CHROME",
664
+ "SOLID_MATTE",
665
+ "FROSTED_GLASS",
666
+ "SUBTLE_RELIEF"
667
+ ],
668
+ "description": "08 表面质感(取值域读 soma-design kit-nine-dim.json 的投影)"
669
+ },
670
+ "surfaceTexture": {
671
+ "enum": [
672
+ "LAYERED_SOFT",
673
+ "GLASS_CHROME",
674
+ "SOLID_MATTE",
675
+ "FROSTED_GLASS",
676
+ "SUBTLE_RELIEF"
677
+ ],
678
+ "description": "08 表面质感(取值域读 soma-design kit-nine-dim.json 的投影)"
679
+ },
680
+ "density": {
681
+ "enum": [
682
+ "COMPACT_DENSE",
683
+ "STANDARD_BALANCED",
684
+ "SPACIOUS_AIRY"
685
+ ],
686
+ "description": "09 空间松紧度(取值域读 soma-design kit-nine-dim.json 的投影)"
687
+ },
688
+ "motion": {
689
+ "enum": [
690
+ "STILL_INSTANT",
691
+ "RESTRAINED_CALM",
692
+ "STANDARD_BRISK",
693
+ "EXPRESSIVE_SPRING"
694
+ ],
695
+ "description": "10 动效性格(扩展维度,折叠到 design 动效人格)(取值域读 soma-design kit-nine-dim.json 的投影)"
696
+ },
697
+ "table_style": {
698
+ "enum": [
699
+ "ROW_DIVIDER",
700
+ "ZEBRA_STRIPE",
701
+ "GRID_LINES",
702
+ "OPEN_ROWS"
703
+ ],
704
+ "description": "11 表格行风格(扩展维度)(取值域读 soma-design kit-nine-dim.json 的投影)"
705
+ },
706
+ "tableStyle": {
707
+ "enum": [
708
+ "ROW_DIVIDER",
709
+ "ZEBRA_STRIPE",
710
+ "GRID_LINES",
711
+ "OPEN_ROWS"
712
+ ],
713
+ "description": "11 表格行风格(扩展维度)(取值域读 soma-design kit-nine-dim.json 的投影)"
714
+ },
715
+ "contrast": {
716
+ "enum": [
717
+ "SOFT_CONTRAST",
718
+ "STANDARD_CONTRAST",
719
+ "STRONG_CONTRAST"
720
+ ],
721
+ "description": "12 对比度档(扩展维度,折叠到 values.palette.contrast)(取值域读 soma-design kit-nine-dim.json 的投影)"
722
+ },
723
+ "accent_usage": {
724
+ "enum": [
725
+ "BRAND_ACTION",
726
+ "INK_ACTION"
727
+ ],
728
+ "description": "13 强调色用法(扩展维度,折叠到 values.palette.action_track:品牌色 / 墨色主按钮)(取值域读 soma-design kit-nine-dim.json 的投影)"
729
+ },
730
+ "accentUsage": {
731
+ "enum": [
732
+ "BRAND_ACTION",
733
+ "INK_ACTION"
734
+ ],
735
+ "description": "13 强调色用法(扩展维度,折叠到 values.palette.action_track:品牌色 / 墨色主按钮)(取值域读 soma-design kit-nine-dim.json 的投影)"
736
+ },
737
+ "preset": {
738
+ "enum": [
739
+ "CLEAR",
740
+ "GALLERY",
741
+ "PRECISION",
742
+ "WARM_PAPER",
743
+ "STANDARD_ADMIN",
744
+ "DENSE_DATA",
745
+ "GOVERNMENT",
746
+ "BIG_SCREEN",
747
+ "CALM_READING"
748
+ ],
749
+ "description": "主题预设(一个名字展开成全套维度取值,显式写的维度压过预设)(取值域读 soma-design kit-nine-dim.json 的投影)"
750
+ },
751
+ "mode": {
752
+ "enum": [
753
+ "light",
754
+ "dark",
755
+ "system",
756
+ "soft"
757
+ ],
758
+ "description": "极性(light / dark / system / soft)"
759
+ }
760
+ }
761
+ },
762
+ "layout": {
763
+ "type": "object",
764
+ "additionalProperties": false,
765
+ "description": "应用级默认页面外框与导航继承配置(键名为蛇形:max_width / sticky_header)",
766
+ "properties": {
767
+ "frame": {
768
+ "type": "string",
769
+ "description": "默认页面框(非空字符串)"
770
+ },
771
+ "max_width": {
772
+ "enum": [
773
+ "narrow",
774
+ "medium",
775
+ "wide",
776
+ "full"
777
+ ],
778
+ "description": "内容最大宽度档"
779
+ },
780
+ "sticky_header": {
781
+ "type": "boolean"
782
+ },
783
+ "header": {
784
+ "type": "object",
785
+ "additionalProperties": false,
786
+ "properties": {
787
+ "brand": {
788
+ "type": "object",
789
+ "additionalProperties": false,
790
+ "required": [
791
+ "text"
792
+ ],
793
+ "properties": {
794
+ "text": {
795
+ "type": "string"
796
+ },
797
+ "href": {
798
+ "type": "string"
799
+ }
800
+ }
801
+ },
802
+ "nav": {
803
+ "type": "array",
804
+ "items": {
805
+ "type": "object",
806
+ "additionalProperties": false,
807
+ "required": [
808
+ "id",
809
+ "label"
810
+ ],
811
+ "properties": {
812
+ "id": {
813
+ "type": "string"
814
+ },
815
+ "label": {
816
+ "type": "string"
817
+ },
818
+ "href": {
819
+ "type": "string"
820
+ },
821
+ "url": {
822
+ "type": "string"
823
+ },
824
+ "icon": {
825
+ "type": "string"
826
+ }
827
+ }
828
+ }
829
+ },
830
+ "actions": {
831
+ "type": "array",
832
+ "items": {
833
+ "type": "object",
834
+ "additionalProperties": false,
835
+ "required": [
836
+ "id",
837
+ "label"
838
+ ],
839
+ "properties": {
840
+ "id": {
841
+ "type": "string"
842
+ },
843
+ "label": {
844
+ "type": "string"
845
+ },
846
+ "href": {
847
+ "type": "string"
848
+ },
849
+ "url": {
850
+ "type": "string"
851
+ },
852
+ "icon": {
853
+ "type": "string"
854
+ }
855
+ }
856
+ }
857
+ }
858
+ }
859
+ },
860
+ "sidebar": {
861
+ "type": "object",
862
+ "additionalProperties": false,
863
+ "properties": {
864
+ "title": {
865
+ "type": "string"
866
+ },
867
+ "width": {
868
+ "type": "number"
869
+ },
870
+ "menu": {
871
+ "type": "array",
872
+ "items": {
873
+ "type": "object",
874
+ "additionalProperties": false,
875
+ "required": [
876
+ "id",
877
+ "label"
878
+ ],
879
+ "properties": {
880
+ "id": {
881
+ "type": "string"
882
+ },
883
+ "label": {
884
+ "type": "string"
885
+ },
886
+ "href": {
887
+ "type": "string"
888
+ },
889
+ "url": {
890
+ "type": "string"
891
+ },
892
+ "icon": {
893
+ "type": "string"
894
+ }
895
+ }
896
+ }
897
+ }
898
+ }
899
+ },
900
+ "footer": {
901
+ "type": "object",
902
+ "additionalProperties": false,
903
+ "properties": {
904
+ "text": {
905
+ "type": "string"
906
+ },
907
+ "links": {
908
+ "type": "array",
909
+ "items": {
910
+ "type": "object",
911
+ "additionalProperties": false,
912
+ "required": [
913
+ "label",
914
+ "href"
915
+ ],
916
+ "properties": {
917
+ "label": {
918
+ "type": "string"
919
+ },
920
+ "href": {
921
+ "type": "string"
922
+ }
923
+ }
924
+ }
925
+ }
926
+ }
927
+ },
928
+ "rules": {
929
+ "type": "integer",
930
+ "minimum": 0,
931
+ "description": "布局规则版本钉:0 = 现状(缺省,12 份均分,输出逐字节不变);新应用与 AI 生成页钉最新版(RV-1117)"
932
+ }
933
+ }
934
+ },
935
+ "envelope": {
936
+ "type": "object",
937
+ "additionalProperties": false,
938
+ "description": "业务信封约定:failWhen 命中即业务失败(编进 core 的 failWhen);messagePath 失败文案位置;dataPath 成功数据位置",
939
+ "properties": {
940
+ "failWhen": {
941
+ "type": "object",
942
+ "description": "闭集谓词 { field, op, value } 或 all_of / any_of / none_of"
943
+ },
944
+ "messagePath": {
945
+ "type": "string",
946
+ "description": "失败时业务文案在响应里的点路径(须与 failWhen 一起写)"
947
+ },
948
+ "dataPath": {
949
+ "type": "string",
950
+ "description": "成功时数据在响应里的点路径(缺省不拆)"
951
+ }
952
+ }
953
+ },
954
+ "dicts": {
955
+ "type": "object",
956
+ "description": "应用级共享枚举字典:字典名 -> [{ value, label, tone? }],页面字段 options: \"$dict.<名>\" 引用",
957
+ "propertyNames": {
958
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
959
+ },
960
+ "additionalProperties": {
961
+ "type": "array",
962
+ "minItems": 1,
963
+ "items": {
964
+ "type": "object",
965
+ "additionalProperties": false,
966
+ "required": [
967
+ "value",
968
+ "label"
969
+ ],
970
+ "properties": {
971
+ "value": {
972
+ "type": [
973
+ "string",
974
+ "number",
975
+ "boolean"
976
+ ]
977
+ },
978
+ "label": {
979
+ "type": "string",
980
+ "minLength": 1
981
+ },
982
+ "tone": {
983
+ "type": "string",
984
+ "minLength": 1
985
+ }
986
+ }
987
+ }
988
+ }
989
+ },
990
+ "entities": {
991
+ "type": "object",
992
+ "description": "应用级共享实体字段定义:实体名 -> { 字段名: 字段声明 },页面对象 schema: \"$entity.<名>\" 引用(字段声明内部由编译器校验)",
993
+ "propertyNames": {
994
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
995
+ },
996
+ "additionalProperties": {
997
+ "type": "object"
998
+ }
999
+ }
1000
+ }
109
1001
  }
110
1002
  }
111
1003
  }