soma-kit 0.1.15 → 0.1.16

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 (470) hide show
  1. package/README.md +1 -1
  2. package/package.json +8 -5
  3. package/packs/ai/model-card.ts +3 -3
  4. package/packs/ops/error-budget-card.ts +3 -3
  5. package/packs/ops/release-readiness-card.ts +3 -3
  6. package/packs/security/control-evidence-card.ts +3 -3
  7. package/packs/security/finding-card.ts +3 -2
  8. package/packs/shared/card-util.ts +17 -0
  9. package/spec/generated/kit-app.schema.json +2148 -340
  10. package/spec/generated/kit-page.schema.json +1134 -139
  11. package/spec/kit-grammar.json +934 -92
  12. package/spec/kit-grammar.schema.json +167 -2
  13. package/src/app/app-config.ts +219 -186
  14. package/src/app/define-kit-actions.ts +126 -20
  15. package/src/app/define-kit-app.ts +49 -4
  16. package/src/app/index.ts +5 -0
  17. package/src/app/kit-view-context.ts +39 -1
  18. package/src/app/list-page-defaults.ts +14 -0
  19. package/src/app/server-pages.ts +239 -7
  20. package/src/app/server.ts +466 -25
  21. package/src/app/theme-endpoint.ts +67 -23
  22. package/src/app/theme-runtime.ts +414 -85
  23. package/src/app/theme-shards.ts +69 -0
  24. package/src/app/tier-compat.ts +107 -0
  25. package/src/base/action-busy.ts +215 -38
  26. package/src/base/affix.ts +137 -0
  27. package/src/base/alert.ts +104 -59
  28. package/src/base/anchored-layer.ts +7 -6
  29. package/src/base/avatar.ts +147 -61
  30. package/src/base/badge.ts +186 -0
  31. package/src/base/button-group.ts +227 -0
  32. package/src/base/button.ts +347 -50
  33. package/src/base/card.ts +233 -0
  34. package/src/base/cascader.ts +143 -32
  35. package/src/base/check-core.ts +193 -33
  36. package/src/base/checkbox.ts +67 -2
  37. package/src/base/choice.ts +132 -31
  38. package/src/base/collapse.ts +249 -0
  39. package/src/base/color-picker.ts +399 -27
  40. package/src/base/combobox.ts +6 -2
  41. package/src/base/command-palette.ts +148 -36
  42. package/src/base/context-menu.ts +23 -6
  43. package/src/base/countdown.ts +37 -15
  44. package/src/base/date-range.ts +114 -96
  45. package/src/base/date.ts +481 -74
  46. package/src/base/delta.ts +16 -9
  47. package/src/base/divider.ts +51 -33
  48. package/src/base/end-edge.ts +10 -4
  49. package/src/base/fab.ts +57 -21
  50. package/src/base/gap-value.ts +34 -15
  51. package/src/base/hint-tips.ts +99 -29
  52. package/src/base/identity-cells.ts +839 -0
  53. package/src/base/illustrations.ts +6 -4
  54. package/src/base/image.ts +40 -19
  55. package/src/base/index.ts +79 -22
  56. package/src/base/inline-error.ts +13 -7
  57. package/src/base/input.ts +135 -35
  58. package/src/base/kbd.ts +30 -17
  59. package/src/base/kit-contract.ts +400 -0
  60. package/src/base/link.ts +41 -20
  61. package/src/base/listbox-core.ts +282 -101
  62. package/src/base/loading-gate.ts +3 -0
  63. package/src/base/look.ts +197 -0
  64. package/src/base/mentions.ts +55 -22
  65. package/src/base/menu-button.ts +73 -22
  66. package/src/base/menu-core.ts +201 -24
  67. package/src/base/month-grid.ts +60 -3
  68. package/src/base/motion/aura.ts +52 -10
  69. package/src/base/motion/hover-3d.ts +7 -5
  70. package/src/base/motion/hover-gallery.ts +16 -12
  71. package/src/base/motion/limits.ts +10 -0
  72. package/src/base/motion/marquee.ts +18 -11
  73. package/src/base/motion/text-rotate.ts +34 -16
  74. package/src/base/notification.ts +292 -0
  75. package/src/base/number.ts +93 -12
  76. package/src/base/otp.ts +139 -27
  77. package/src/base/overlay-runtime.ts +30 -23
  78. package/src/base/overlay-shell.ts +59 -14
  79. package/src/base/period-picker.ts +868 -0
  80. package/src/base/popover.ts +624 -73
  81. package/src/base/popup.ts +187 -52
  82. package/src/base/portal-core.ts +99 -2
  83. package/src/base/price-text.ts +51 -17
  84. package/src/base/progress.ts +100 -18
  85. package/src/base/qr-code.ts +64 -17
  86. package/src/base/qty-stepper.ts +141 -22
  87. package/src/base/radio.ts +43 -2
  88. package/src/base/range.ts +194 -39
  89. package/src/base/rating.ts +117 -31
  90. package/src/base/reason-tip.ts +58 -16
  91. package/src/base/relation-cells.ts +541 -0
  92. package/src/base/resize-handle.ts +5 -3
  93. package/src/base/row-fresh.ts +84 -0
  94. package/src/base/section-spy.ts +79 -0
  95. package/src/base/segmented.ts +70 -26
  96. package/src/base/select.ts +8 -3
  97. package/src/base/shared.ts +482 -71
  98. package/src/base/spinner.ts +107 -0
  99. package/src/base/state-panel.ts +77 -22
  100. package/src/base/sticky-edge.ts +96 -29
  101. package/src/base/swap.ts +39 -21
  102. package/src/base/switch.ts +158 -38
  103. package/src/base/tabs.ts +292 -0
  104. package/src/base/tag-input.ts +123 -54
  105. package/src/base/tag.ts +184 -66
  106. package/src/base/text.ts +461 -71
  107. package/src/base/textarea.ts +88 -39
  108. package/src/base/time-picker.ts +335 -55
  109. package/src/base/time-range.ts +846 -0
  110. package/src/base/tree-select.ts +342 -88
  111. package/src/base/upload.ts +604 -158
  112. package/src/base/view-transition.ts +7 -3
  113. package/src/base/virtual-list.ts +49 -14
  114. package/src/biz/approval-desk/compile.ts +70 -5
  115. package/src/biz/approval-desk/index.ts +2 -0
  116. package/src/biz/approval-desk/shell.ts +52 -12
  117. package/src/biz/auth-panel/compile.ts +13 -3
  118. package/src/biz/auth-panel/shell.ts +27 -7
  119. package/src/biz/category-crud/compile.ts +51 -13
  120. package/src/biz/category-crud/index.ts +2 -0
  121. package/src/biz/category-crud/shell.ts +29 -9
  122. package/src/biz/checkout-page/compile.ts +37 -3
  123. package/src/biz/checkout-page/index.ts +1 -0
  124. package/src/biz/checkout-page/shell.ts +26 -9
  125. package/src/biz/compose.ts +6 -1
  126. package/src/biz/data-components.ts +2 -0
  127. package/src/biz/import-wizard/compile.ts +4 -1
  128. package/src/biz/import-wizard/index.ts +1 -0
  129. package/src/biz/import-wizard/shell.ts +32 -18
  130. package/src/biz/index.ts +1 -1
  131. package/src/biz/landing-page/compile.ts +3 -2
  132. package/src/biz/landing-page/shell.ts +22 -3
  133. package/src/biz/layout-contracts.ts +918 -0
  134. package/src/biz/link/hub.ts +199 -8
  135. package/src/biz/link/shared.ts +54 -15
  136. package/src/biz/master-sub/compile.ts +194 -57
  137. package/src/biz/master-sub/detail-head.ts +141 -18
  138. package/src/biz/master-sub/index.ts +3 -0
  139. package/src/biz/master-sub/shell.ts +186 -57
  140. package/src/biz/multi-board/compile.ts +87 -36
  141. package/src/biz/multi-board/composition.ts +7 -20
  142. package/src/biz/multi-board/index.ts +3 -2
  143. package/src/biz/multi-board/prose-fold.ts +15 -11
  144. package/src/biz/multi-board/shell.ts +148 -37
  145. package/src/biz/notification-center/compile.ts +20 -6
  146. package/src/biz/notification-center/index.ts +2 -0
  147. package/src/biz/notification-center/shell.ts +43 -10
  148. package/src/biz/page-templates/domain-templates.ts +145 -22
  149. package/src/biz/page-templates/result-page/compile.ts +4 -1
  150. package/src/biz/page-templates/result-page/index.ts +1 -0
  151. package/src/biz/page-templates/result-page/shell.ts +17 -4
  152. package/src/biz/page-templates/sign-in-page/compile.ts +19 -8
  153. package/src/biz/page-templates/sign-in-page/index.ts +1 -0
  154. package/src/biz/page-templates/sign-in-page/shell.ts +28 -12
  155. package/src/biz/record-detail/compile.ts +39 -11
  156. package/src/biz/record-detail/index.ts +1 -0
  157. package/src/biz/record-detail/shell.ts +41 -10
  158. package/src/biz/settings-center/compile.ts +4 -1
  159. package/src/biz/settings-center/index.ts +1 -0
  160. package/src/biz/settings-center/shell.ts +30 -9
  161. package/src/biz/shared/action-host.ts +137 -46
  162. package/src/biz/shared/compile-helpers.ts +130 -28
  163. package/src/biz/shared/coordinator.ts +628 -147
  164. package/src/biz/shared/focus-return.ts +180 -0
  165. package/src/biz/shared/object-aliases.ts +7 -1
  166. package/src/biz/shared/overlay-compile.ts +58 -10
  167. package/src/biz/shared/overlay-shell.ts +40 -10
  168. package/src/biz/shared/page-form-actions.ts +151 -0
  169. package/src/biz/shared/page-form.ts +255 -0
  170. package/src/biz/shared/pipeline.ts +74 -0
  171. package/src/biz/shared/runtime-hub.ts +101 -8
  172. package/src/biz/shared/verbs.ts +129 -0
  173. package/src/biz/single-form/compile.ts +4 -2
  174. package/src/biz/single-form/index.ts +2 -0
  175. package/src/biz/single-form/shell.ts +21 -11
  176. package/src/biz/standard-crud/compile.ts +206 -38
  177. package/src/biz/standard-crud/index.ts +2 -1
  178. package/src/biz/standard-crud/shell.ts +82 -22
  179. package/src/biz/standard-crud/summary.ts +2 -37
  180. package/src/biz/step-form/compile.ts +12 -3
  181. package/src/biz/step-form/hub.ts +165 -50
  182. package/src/biz/step-form/index.ts +1 -0
  183. package/src/biz/step-form/shell.ts +31 -15
  184. package/src/biz/types.ts +40 -4
  185. package/src/cli/kit-cli.ts +145 -26
  186. package/src/cli/kit-init.ts +3 -3
  187. package/src/cli/migrate/theme-map.ts +35 -28
  188. package/src/cli/migrate/ts-rules.ts +2 -2
  189. package/src/cli/migrate/types.ts +3 -3
  190. package/src/cli/migrate/yaml-rules.ts +11 -9
  191. package/src/cli/view-writes.ts +13 -0
  192. package/src/compile/closed-set.ts +102 -6
  193. package/src/compile/compile-page.ts +446 -53
  194. package/src/compile/component-candidates.ts +56 -4
  195. package/src/compile/danger-tier.ts +65 -0
  196. package/src/compile/hints.ts +1 -1
  197. package/src/compile/info-structure.ts +155 -0
  198. package/src/compile/layout-lint/rules-composition.ts +2 -1
  199. package/src/compile/layout-lint/rules-table.ts +4 -19
  200. package/src/compile/look-page.ts +551 -0
  201. package/src/compile/look.ts +376 -0
  202. package/src/compile/page-composition.ts +382 -46
  203. package/src/compile/page-hierarchy.ts +131 -0
  204. package/src/compile/page-pipeline-look.ts +156 -0
  205. package/src/compile/page-pipeline.ts +200 -0
  206. package/src/compile/parse.ts +12 -11
  207. package/src/compile/relation-render.ts +120 -0
  208. package/src/compile/remove-guard.ts +115 -41
  209. package/src/compile/stages.ts +645 -28
  210. package/src/compile/styles.ts +226 -26
  211. package/src/compile/types.ts +62 -5
  212. package/src/compile/view-check.ts +190 -1
  213. package/src/data/access-gate.ts +17 -9
  214. package/src/data/amount-breakdown.ts +49 -22
  215. package/src/data/anchor-nav.ts +73 -15
  216. package/src/data/approval-flow.ts +210 -124
  217. package/src/data/assignment-picker.ts +163 -85
  218. package/src/data/async-result-panel.ts +110 -46
  219. package/src/data/audit-log.ts +461 -0
  220. package/src/data/breadcrumbs.ts +141 -19
  221. package/src/data/calendar.ts +434 -96
  222. package/src/data/card-grid.ts +319 -0
  223. package/src/data/carousel.ts +72 -38
  224. package/src/data/cell-value.ts +253 -0
  225. package/src/data/chart.ts +904 -77
  226. package/src/data/checklist.ts +78 -35
  227. package/src/data/code-view.ts +106 -48
  228. package/src/data/comment-thread.ts +607 -87
  229. package/src/data/compare-view.ts +227 -0
  230. package/src/data/confirm-dialog.ts +198 -30
  231. package/src/data/context-menu.ts +95 -21
  232. package/src/data/d9-limits.ts +2 -0
  233. package/src/data/d9-util.ts +13 -5
  234. package/src/data/diff.ts +107 -50
  235. package/src/data/display-util.ts +9 -4
  236. package/src/data/dock.ts +33 -17
  237. package/src/data/embed.ts +142 -7
  238. package/src/data/engine-ports.ts +13 -4
  239. package/src/data/field-mapper.ts +104 -48
  240. package/src/data/file-list.ts +522 -0
  241. package/src/data/flow-editor.ts +603 -142
  242. package/src/data/flow-node-options.ts +24 -5
  243. package/src/data/flow-remote-options.ts +94 -19
  244. package/src/data/footer.ts +85 -27
  245. package/src/data/form-draft-registry.ts +183 -12
  246. package/src/data/gantt.ts +637 -117
  247. package/src/data/graph-view.ts +51 -0
  248. package/src/data/heat-calendar.ts +412 -0
  249. package/src/data/hero.ts +38 -15
  250. package/src/data/image-viewer.ts +261 -62
  251. package/src/data/index.ts +63 -1
  252. package/src/data/item-list.ts +217 -57
  253. package/src/data/json-view.ts +165 -100
  254. package/src/data/kanban.ts +339 -87
  255. package/src/data/kit-contract.ts +230 -0
  256. package/src/data/leaderboard.ts +343 -0
  257. package/src/data/level-class.ts +21 -0
  258. package/src/data/log-stream.ts +347 -0
  259. package/src/data/markdown-view.ts +155 -45
  260. package/src/data/matrix.ts +217 -112
  261. package/src/data/media-grid.ts +162 -38
  262. package/src/data/mega-menu.ts +39 -23
  263. package/src/data/menu-bar.ts +254 -0
  264. package/src/data/menu-dom.ts +50 -15
  265. package/src/data/menu.ts +131 -47
  266. package/src/data/mockup.ts +30 -22
  267. package/src/data/modal-dialog.ts +90 -13
  268. package/src/data/navbar.ts +143 -61
  269. package/src/data/notice-list.ts +100 -48
  270. package/src/data/notify-renderer.ts +61 -7
  271. package/src/data/object-form.ts +1389 -130
  272. package/src/data/org-chart.ts +544 -0
  273. package/src/data/outcome-watch.ts +90 -21
  274. package/src/data/pager.ts +122 -42
  275. package/src/data/panel-head.ts +237 -75
  276. package/src/data/permission-matrix.ts +371 -119
  277. package/src/data/permission-tree.ts +135 -80
  278. package/src/data/pricing-table.ts +106 -42
  279. package/src/data/prompt-dialog.ts +49 -21
  280. package/src/data/reaction-bar.ts +63 -31
  281. package/src/data/record-card.ts +239 -70
  282. package/src/data/record-picker.ts +56 -27
  283. package/src/data/redirect.ts +39 -15
  284. package/src/data/request-console.ts +131 -41
  285. package/src/data/resident.ts +11 -1
  286. package/src/data/result-panel.ts +65 -27
  287. package/src/data/rich-text.ts +206 -35
  288. package/src/data/row-confirm.ts +47 -0
  289. package/src/data/row-editor.ts +376 -102
  290. package/src/data/rule-builder.ts +129 -80
  291. package/src/data/schedule-grid.ts +238 -0
  292. package/src/data/segment-bar.ts +221 -0
  293. package/src/data/shape-util.ts +86 -43
  294. package/src/data/stage-flow.ts +244 -0
  295. package/src/data/staged-rows.ts +207 -24
  296. package/src/data/stat-group.ts +438 -86
  297. package/src/data/static-lazy.ts +18 -0
  298. package/src/data/static-registry.ts +38 -2
  299. package/src/data/status-strip.ts +171 -0
  300. package/src/data/steps.ts +63 -34
  301. package/src/data/summary-strip.ts +136 -0
  302. package/src/data/summary-util.ts +116 -0
  303. package/src/data/survey.ts +128 -47
  304. package/src/data/system-switcher.ts +40 -20
  305. package/src/data/target-progress.ts +208 -0
  306. package/src/data/text-action-button.ts +28 -7
  307. package/src/data/text-diff.ts +99 -31
  308. package/src/data/tile-grid.ts +343 -0
  309. package/src/data/timeline.ts +205 -36
  310. package/src/data/tour-guide.ts +110 -47
  311. package/src/data/transfer.ts +195 -47
  312. package/src/data/tree-table.ts +194 -112
  313. package/src/data/tree.ts +191 -70
  314. package/src/data/trend-line.ts +68 -12
  315. package/src/data/virtual-rows.ts +242 -102
  316. package/src/data/waterfall.ts +171 -0
  317. package/src/data/watermark.ts +35 -6
  318. package/src/data/wrap.ts +26 -4
  319. package/src/frames/blank-frame.ts +6 -4
  320. package/src/frames/index.ts +1 -2
  321. package/src/frames/inherited-shell.ts +54 -13
  322. package/src/frames/page-bar.ts +205 -27
  323. package/src/frames/page-status.ts +3 -2
  324. package/src/frames/resident-components.ts +0 -2
  325. package/src/frames/shared.ts +64 -21
  326. package/src/frames/single-frame.ts +20 -4
  327. package/src/frames/split-frame/shell.ts +11 -7
  328. package/src/frames/split-frame/wiring.ts +14 -10
  329. package/src/frames/tabs-frame/shell.ts +3 -2
  330. package/src/frames/tabs-frame/wiring.ts +2 -1
  331. package/src/frames/top-main-frame.ts +55 -3
  332. package/src/frames/types.ts +2 -0
  333. package/src/frames/workspace-frame/extras.ts +5 -3
  334. package/src/frames/workspace-frame/index.ts +1 -1
  335. package/src/frames/workspace-frame/pipeline-key.ts +6 -0
  336. package/src/frames/workspace-frame/shell.ts +22 -2
  337. package/src/frames/workspace-frame/state.ts +42 -14
  338. package/src/frames/workspace-frame/view.ts +697 -167
  339. package/src/generated/kit-grammar-runtime.ts +1015 -53
  340. package/src/generated/kit-page.ts +272 -0
  341. package/src/i18n/index.ts +2 -0
  342. package/src/i18n/kit-text.ts +96 -3
  343. package/src/object-renderer/action-group.ts +175 -23
  344. package/src/object-renderer/action-more.ts +48 -17
  345. package/src/object-renderer/arrange.ts +241 -29
  346. package/src/object-renderer/category-tone.ts +96 -0
  347. package/src/object-renderer/collapse-wiring.ts +19 -9
  348. package/src/object-renderer/collection-expand.ts +3 -3
  349. package/src/object-renderer/collection-parts.ts +432 -107
  350. package/src/object-renderer/collection-table.ts +347 -45
  351. package/src/object-renderer/collection.ts +291 -62
  352. package/src/object-renderer/compile-data.ts +12 -2
  353. package/src/object-renderer/defaults.ts +6 -5
  354. package/src/object-renderer/emit-events.ts +45 -19
  355. package/src/object-renderer/emit-object.ts +35 -9
  356. package/src/object-renderer/emit-static.ts +734 -159
  357. package/src/object-renderer/filter-plan.ts +3 -3
  358. package/src/object-renderer/filter-toolbar.ts +105 -18
  359. package/src/object-renderer/form-detail.ts +87 -2
  360. package/src/object-renderer/key-field.ts +21 -0
  361. package/src/object-renderer/layout-facts.ts +18 -2
  362. package/src/object-renderer/layout-plan.ts +6 -3
  363. package/src/object-renderer/overlay-decide.ts +44 -2
  364. package/src/object-renderer/pick-component.ts +8 -2
  365. package/src/object-renderer/pipeline-mode.ts +6 -0
  366. package/src/object-renderer/relation-field.ts +79 -0
  367. package/src/object-renderer/render-object.ts +71 -26
  368. package/src/object-renderer/request-actions.ts +119 -21
  369. package/src/object-renderer/table-actions.ts +424 -103
  370. package/src/object-renderer/table-gap.ts +2 -1
  371. package/src/object-renderer/table-reorder.ts +237 -0
  372. package/src/object-renderer/table-summary.ts +26 -12
  373. package/src/object-renderer/table-tools.ts +428 -128
  374. package/src/object-renderer/types.ts +91 -2
  375. package/src/object-renderer/value-present.ts +49 -0
  376. package/src/page-target/ai-surface.ts +15 -22
  377. package/src/page-target/compile.ts +5 -6
  378. package/src/page-target/drift.ts +0 -7
  379. package/src/page-target/intent-schema.ts +46 -43
  380. package/src/page-target/target.ts +4 -5
  381. package/src/page-target/writer-policy.ts +4 -5
  382. package/src/recipes/chrome-surface.ts +20 -0
  383. package/src/recipes/code-view.ts +15 -14
  384. package/src/recipes/color-role.ts +442 -0
  385. package/src/recipes/compact-group.ts +3 -2
  386. package/src/recipes/composition-projector.ts +321 -0
  387. package/src/recipes/container.ts +76 -19
  388. package/src/recipes/control.ts +64 -5
  389. package/src/recipes/desc-list.ts +101 -7
  390. package/src/recipes/divider.ts +30 -9
  391. package/src/recipes/emphasis.ts +90 -5
  392. package/src/recipes/field-text.ts +72 -0
  393. package/src/recipes/form-section.ts +177 -0
  394. package/src/recipes/frame-bleed.ts +3 -2
  395. package/src/recipes/index.ts +28 -4
  396. package/src/recipes/inherited-shell.ts +21 -15
  397. package/src/recipes/json-view.ts +6 -5
  398. package/src/recipes/look.ts +56 -0
  399. package/src/recipes/mark.ts +138 -0
  400. package/src/recipes/markdown.ts +16 -6
  401. package/src/recipes/overlay.ts +47 -19
  402. package/src/recipes/page-width.ts +31 -0
  403. package/src/recipes/pipeline-runtime.ts +366 -0
  404. package/src/recipes/placeholder.ts +37 -19
  405. package/src/recipes/rail-grid.ts +6 -3
  406. package/src/recipes/self-owned.ts +59 -0
  407. package/src/recipes/slot-align.ts +5 -3
  408. package/src/recipes/stat-state.ts +5 -5
  409. package/src/recipes/state.ts +54 -3
  410. package/src/recipes/status.ts +14 -14
  411. package/src/recipes/strip.ts +47 -5
  412. package/src/recipes/surface-edge.ts +3 -1
  413. package/src/recipes/surface.ts +33 -4
  414. package/src/recipes/table-gap.ts +3 -2
  415. package/src/recipes/table-native-edit.ts +22 -9
  416. package/src/recipes/table-row.ts +45 -12
  417. package/src/recipes/tabs.ts +54 -22
  418. package/src/recipes/text-diff.ts +15 -8
  419. package/src/recipes/text-fit.ts +132 -0
  420. package/src/recipes/title-row.ts +68 -3
  421. package/src/shared/action-func.ts +106 -0
  422. package/src/shared/color-scheme.ts +127 -0
  423. package/src/shared/confirm-decl.ts +5 -2
  424. package/src/shared/danger-facts.ts +55 -0
  425. package/src/shared/dom-attrs-registry.ts +1009 -0
  426. package/src/shared/dom-attrs.ts +743 -0
  427. package/src/shared/field-kind.ts +49 -0
  428. package/src/shared/field-value-format.ts +58 -12
  429. package/src/shared/glyphs.ts +127 -0
  430. package/src/shared/icons.ts +28 -1
  431. package/src/shared/identifier-field.ts +66 -0
  432. package/src/shared/list-pager.ts +23 -0
  433. package/src/shared/list-title.ts +29 -0
  434. package/src/shared/order-value.ts +15 -0
  435. package/src/shared/page-attrs-runtime.ts +327 -0
  436. package/src/shared/page-attrs.ts +262 -0
  437. package/src/shared/pipeline-mode.ts +64 -0
  438. package/src/shared/row-key.ts +15 -0
  439. package/src/shared/theme-runtime-shared.ts +165 -24
  440. package/src/shared/theme-usage.ts +16 -0
  441. package/src/shared/value-table-contract.ts +68 -0
  442. package/src/spatial/action-func.ts +4 -0
  443. package/src/spatial/declared-actions.ts +116 -0
  444. package/src/spatial/emit.ts +660 -0
  445. package/src/spatial/expand.ts +1482 -0
  446. package/src/spatial/field-types.ts +48 -0
  447. package/src/spatial/index.ts +82 -0
  448. package/src/spatial/layout.ts +697 -0
  449. package/src/spatial/look-apply.ts +206 -0
  450. package/src/spatial/page-decl.ts +44 -0
  451. package/src/spatial/page-object.ts +349 -0
  452. package/src/spatial/recognize.ts +491 -0
  453. package/src/spatial/self-report.ts +571 -0
  454. package/src/spatial/shape.ts +205 -0
  455. package/src/spatial/spatial-map.ts +136 -0
  456. package/src/spatial/tone.ts +145 -0
  457. package/src/theme/index.ts +11 -2
  458. package/src/theme/kit-theme-text.ts +1 -1
  459. package/src/theme/kit-theme.css +527 -16
  460. package/src/theme/kit-theme.tpl +491 -16
  461. package/src/theme/look-carrier.ts +65 -0
  462. package/src/theme/nine-dim-structure.ts +522 -185
  463. package/src/theme/private-vars.ts +153 -0
  464. package/src/theme/surface-layers.ts +3 -2
  465. package/src/theme/theme-tokens.ts +1601 -93
  466. package/src/theme/theme-types.ts +38 -59
  467. package/src/theme/value-table.ts +2379 -0
  468. package/src/frames/list-summary.ts +0 -123
  469. package/src/recipes/nowrap.ts +0 -16
  470. package/src/theme/block-theme.ts +0 -202
@@ -1,6 +1,6 @@
1
1
  // 生成物,不得改写:由 soma-kit/scripts/build-kit-grammar-runtime.mjs 从 spec/kit-grammar.json 抽出。
2
2
  // 浏览器侧只读这份运行期切片(闭集与限值);编译侧读完整真源。改真源后运行 `npm run grammar:runtime -w soma-kit` 重新生成。
3
- // 真源指纹 sha256:e690e341a595437e5bd44ef4a78b64e3673e1d8d6dd8d6e25551dd4d0f483ed2
3
+ // 真源指纹 sha256:6793a8321f898a266dccf5a2a8b9987d2024bd27cccf1e34c36c8ba36c9d4b11
4
4
 
5
5
  export const KIT_GRAMMAR_RUNTIME = {
6
6
  "i18n": {
@@ -68,6 +68,29 @@ export const KIT_GRAMMAR_RUNTIME = {
68
68
  }
69
69
  },
70
70
  "tableExt": {
71
+ "reorder": {
72
+ "key": "reorder",
73
+ "event": "order_move"
74
+ },
75
+ "expandViewport": {
76
+ "token": "--spacing-table-view"
77
+ },
78
+ "treeFixed": {},
79
+ "groupBy": {
80
+ "key": "groupBy"
81
+ },
82
+ "mergeSame": {
83
+ "key": "mergeSame"
84
+ },
85
+ "keep": {
86
+ "key": "keep"
87
+ },
88
+ "serialIndex": {
89
+ "key": "index"
90
+ },
91
+ "multiSort": {
92
+ "separator": ","
93
+ },
71
94
  "scroll": {
72
95
  "swap": {
73
96
  "drop": [
@@ -97,7 +120,7 @@ export const KIT_GRAMMAR_RUNTIME = {
97
120
  "alignClass": {
98
121
  "start": "",
99
122
  "center": "text-center justify-center",
100
- "end": "text-right justify-end"
123
+ "end": "text-end justify-end"
101
124
  }
102
125
  },
103
126
  "toolbarItems": [
@@ -197,7 +220,7 @@ export const KIT_GRAMMAR_RUNTIME = {
197
220
  },
198
221
  "toolbarDensity": {
199
222
  "levelsFrom": "soma-design/spec/pipeline/kit-nine-dim.json#dimensions.density.levels",
200
- "default": "STANDARD_BALANCED"
223
+ "default": "standard"
201
224
  }
202
225
  },
203
226
  "coreMapping": {
@@ -213,10 +236,37 @@ export const KIT_GRAMMAR_RUNTIME = {
213
236
  "enums": "tags",
214
237
  "date": "date",
215
238
  "datetime": "datetime",
216
- "daterange": "text"
239
+ "daterange": "text",
240
+ "float": "float",
241
+ "secret": "secret",
242
+ "code": "code",
243
+ "progress": "progress",
244
+ "status": "enum",
245
+ "link": "text",
246
+ "url": "url",
247
+ "tags": "tags",
248
+ "tree": "tree",
249
+ "cascade": "cascade",
250
+ "image": "image",
251
+ "file": "file",
252
+ "embed": "embed",
253
+ "richtext": "richtext",
254
+ "time_of_day": "time_of_day",
255
+ "timezone": "timezone",
256
+ "schedule": "schedule",
257
+ "exceptions": "exceptions",
258
+ "window": "window",
259
+ "limits": "limits",
260
+ "duration": "duration",
261
+ "filesize": "filesize",
262
+ "colour": "colour",
263
+ "path": "path",
264
+ "measure": "measure",
265
+ "signature": "signature"
217
266
  },
218
267
  "arrayValueTypes": [
219
268
  "enums",
269
+ "tags",
220
270
  "daterange"
221
271
  ],
222
272
  "optionKeys": {
@@ -232,7 +282,10 @@ export const KIT_GRAMMAR_RUNTIME = {
232
282
  "show",
233
283
  "edit",
234
284
  "format",
235
- "ref"
285
+ "ref",
286
+ "relation",
287
+ "display",
288
+ "to"
236
289
  ],
237
290
  "fieldCoreKeys": [
238
291
  "name",
@@ -295,12 +348,27 @@ export const KIT_GRAMMAR_RUNTIME = {
295
348
  "KIT-PAGE-005": "对象名或角色名用了保留名(frame / tabs / page / p / ctrl)或非字母数字下划线,或字段名含点号",
296
349
  "KIT-PAGE-006": "页面编译发生意外内部异常(意外抛错未携带 KitDiagnosticError);对外不泄露实现错误详情,详细信息仅记录在服务端日志中",
297
350
  "KIT-APP-001": "kit.app.yaml 非法,或其登记(组件 accept 等)与 soma.app.ts 代码登记不一致",
298
- "KIT-APP-002": "kit.app.yaml 的 theme 取值不在闭集内(只支持 9 维正交页面主题 DSL:palette、color_depth、color_saturation、font_family、font_scale、boundary、shape、surface_texture、density,加扩展维度 motion、table_style、contrast,+ mode,另可写 preset 命名预设 CLEAR / GALLERY / PRECISION / WARM_PAPER,显式写的维度压过预设);或写了已删除的旧主题链键(库配色方案、库字体方案与品牌色号 color 三类,蛇形 / 驼峰写法均算;诊断给出迁移到九维 palette / font_family 等的指引)",
299
- "KIT-APP-003": "theme 交 soma-foundation 令牌求解失败(折叠或求解阶段返回错误诊断)",
300
- "KIT-THEME-001": "块级 theme 形状非法:不是简写字符串或对象、空对象、或对象里的值不是字符串(page.theme / product.theme)",
301
- "KIT-THEME-002": "块级 theme 含未知词:对象键不在 mode / color,简写不在闭集,词条不属于该维度",
302
- "KIT-THEME-003": "块级 theme 越权或区域不可用:factors / name / 其他维度键、hex 或企业专属色号、机器不可写的光感词条、「跟随设备」;或交 foundation 求解失败",
303
- "KIT-THEME-004": "主题降级提示(告警,不是错误):九维主题组合在某个配色档下视觉区分度不足,foundation 已自动降级补救(如无边框档在浅色下卡片与画布明度差不足,自动补发丝边框);`soma kit check` 以 `[KIT-THEME-004] (规则/配色档) 详情` 输出,不阻断编译",
351
+ "KIT-THEME-001": "(工序 ⓪)kit.app.yaml#theme 写了未知键、未知取值、非字符串(emphasis.actions 的功能名不在闭集、值不是操作角色名同报本码),或已删除的旧键(palette_scheme / font_scheme / color / color_depth / color_saturation / accent_usage 等)与已并入色族的旧色板名(如 CLASSIC_TECH_BLUE):主题只有 preset + palette / shell / neutral / layering / shape / density / texture / glow / font_scale / font_family / motion / contrast + mode,取值小写短名、与真源档位 id 恒等;诊断给出新写法(迁移表读 kit-nine-dim.json#themeMigration 与 colorScheme.migration)。业务应用迁移前,themeMigration 登记的旧拼法(大写 id、驼峰键、surface_texture、boundary、table_style、旧预设名、mode: system / soft)照常接受并换成新值,不报本码",
352
+ "KIT-THEME-002": "(工序 ⓪)主题组合在排除表里:X1 色族 × 外壳(graphite / red × navy / brand / graphite、orange × brand);X2 glow: on × red / graphite;X3 texture: glass × contrast: strong;X4 font_scale: reading × density: compact;X5 font_scale: display × density: compact;X6 density: touch × font_scale: small。判据在参考实现 color-scheme.mjs#themeComboExclusions,诊断给原因与改法;不做静默降级",
353
+ "KIT-THEME-003": "(工序 ⓪)主题交 soma-foundation 令牌求解失败(折叠或求解阶段返回错误诊断)",
354
+ "KIT-THEME-004": "(工序 ⓪,排除表 X7)layering: flat 用在不适合的页面模式:工作台型(crud / master-detail / category / approval / import)报错误(挡编译),看板 / 表单 / 设置 / 步骤 / 详情型报告警;扁平档的对象面没有边界,相邻对象读不出范围。改用 paper(缺省)或 line(数据工作台);判表在真源 dimensions.layering.flatPageModes",
355
+ "KIT-PAGE-200": "(工序 ⓪ 主题求解,写错了层)页面写了 page.theme 或产品写了 product.theme:块级主题已删除(2026-11-26 DSL 第 3 关),主题只在 kit.app.yaml#theme 应用级写,同一应用一套主题,明暗只在应用级 mode;局部的紧凑交给界面规则的 rowHeight / size",
356
+ "KIT-PAGE-GATE-001": "(主题流水线页面侧门禁,生成事件,error:next 下挡页面编译,legacy 下只进旁路报告 pageAttrs)某一屏的一级主体多于一个。按报告 pageAttrs.findings 里的组件树节点编号,回页面声明的主体对象或识别规则,保证每屏恰好一个一级主体",
357
+ "KIT-PAGE-GATE-002": "(主题流水线页面侧门禁,生成事件,error)某一屏有主体对象可见却没有一级主体。按报告里的节点编号回页面声明的主体对象或识别规则,给这一屏定出唯一的一级主体",
358
+ "KIT-PAGE-GATE-003": "(主题流水线页面侧门禁,生成事件,error)某一屏的实心主色按钮多于一个。回动作的功能名(func)与配色事件的实心主色名额:每屏只有一个实心主色",
359
+ "KIT-PAGE-GATE-004": "(主题流水线页面侧门禁,生成事件,error)出现非法父子层级角色对(不在设计真源 kit-page.json#legalPairs 里,表外一律非法)。回业务组件版式契约(src/biz/layout-contracts.ts)或真源 legalPairs 修正,不在门里放行",
360
+ "KIT-PAGE-GATE-005": "(主题流水线页面侧门禁,生成事件,只有 error)动作不守恒,三条独立核对:① 动作节点数与展开从页面声明里独立数出的声明动作总数(spatial/declared-actions.ts)对不上(展开漏建或多建);② 某个动作节点没有落到产物的去处(既没有自己的锚点、也不进任何宿主的动作汇总;承载它的业务组件没有版式契约时不报本码,改报 -006);③ 某个动作没有可收纳(stowable)或按钮形态(variant),说明布局或定形漏了它。回展开(建节点)、版式契约(锚点与缺省动作)或漏写的那个事件",
361
+ "KIT-PAGE-GATE-006": "(主题流水线页面侧,只有 warn,不挡编译)动作落点告警:写完产物后动作的锚点与它要进的宿主动作汇总在产物里都找不到(编排方 compile/compile-page.ts 出,取决于模板与对象渲染器是否真画出了对应条目);或承载它的业务组件没有版式契约(应用自定义的业务组件),页面线无法给出动作落点;或声明里的动作编号重复,几个动作共用锚点与汇总键。按报告里的节点编号回模板锚点、给业务组件登记版式契约(src/biz/layout-contracts.ts),或改掉重复的动作 id",
362
+ "KIT-PAGE-GATE-900": "(主题流水线自身出错,warn,不挡编译)仅旧版(legacy)旁路:页面流水线的某个事件抛错或应用组件的自报声明写错,旁路报告里只有这一条,消息里带原始错误;不影响产物。按原始错误修流水线代码或声明,不吞异常",
363
+ "KIT-PAGE-GATE-901": "(主题流水线新模式,error,挡页面编译)新模式(next)下底层页面流水线核心异常、门禁不可恢复错误、直调页面编译传入的非法自报声明,或把属性写进产物时出错:属性没有写进产物,不出页面产物(半新半旧的页面不允许),消息里带原始错误。与 KIT-COMP-006 分工:应用装配期(assembleKitServer)检测到自定义组件契约 selfReport 声明字段或类型不合法时,隔离该组件并回落缺省自报、记 KIT-COMP-006(不中断整页编译);底层流水线核心异常或门禁不可恢复错误仍报本码 KIT-PAGE-GATE-901。按原始错误修流水线代码或声明",
364
+ "KIT-THEME-GATE-001": "(主题流水线主题侧门禁,主题求解,error:挡装配)某个合法父子层级角色对在本层级策略档下看不出分界(有 error 的档不进允许的档位)。降为告警的几种情况改记 KIT-THEME-GATE-014。回设计真源的层级策略档取值或 soma-foundation 的分界判定(arrangeBoundaryPair),不改合法对表来过门",
365
+ "KIT-THEME-GATE-002": "(主题流水线主题侧门禁,主题求解)(error,挡装配)主题样式超出体积预算(kit-nine-dim.json#structure.themeCssBudgetBytes),两种口径都按 error:只计取值表就超出;整站口径(令牌 + 保留的结构样式 + 取值表 + 按需分片,应用装配在全部页面编译完后核算)合计超出。取值表规则变多就收规则,不调预算",
366
+ "KIT-THEME-GATE-003": "(主题流水线主题侧门禁,主题求解,warn)看得出分界,但父子两个层级角色的手段词相同:求解器目前把窗格竖线与节横线记成同一个手段词、分不出方向,是已知告警,待求解器细化手段词后升级为 error",
367
+ "KIT-THEME-GATE-010": "(主题流水线组合核对,全部页面编译完,error:挡装配)应用缺省的层级策略档与某页面的版面事实,被规范(kit-nine-dim.json#dimensions.layering.flatPageModes)判为错误的组合。换应用缺省的层级策略档(报告里给了允许的档),或改该页面的版面",
368
+ "KIT-THEME-GATE-011": "(主题流水线组合核对,warn)应用缺省的层级策略档与某页面的版面事实,被规范(flatPageModes)判为告警的组合。按报告里允许的档换缺省档,或确认该页面接受这一档",
369
+ "KIT-THEME-GATE-012": "(主题流水线组合核对,warn,不挡装配)有页面缺版面事实:页面流水线没出属性报告,或编译缓存命中的页没有「缓存键 → 版面事实」旁记,这些页未参加组合核对(不代表组合合规)。运行期提交的页没有版面事实时,这一条随提交结果回报(severity: warning,不拒收);已登记的运行期提交页从绑定版本号读不出事实戳时(本改动之前提交的、或版本号放不下戳),装配同样计入,四类分片照发。查该页的页面流水线是否出了报告(是否被 KIT-PAGE-GATE-900 兜住)、缓存旁记是否写入;运行期页重新提交一次即带上事实戳",
370
+ "KIT-THEME-GATE-013": "(主题流水线组合核对,warn,不挡装配)页面的版式契约没有声明页面模式(版面事实里的页面模式集合 frameFacts.pageModes 缺失或为空):本页未按页面模式核对应用缺省的层级策略档(不代表组合合规)。在该业务组件的版式契约(src/biz/layout-contracts.ts)里补上页面模式",
371
+ "KIT-THEME-GATE-014": "(主题流水线主题侧门禁,主题求解,warn,不挡装配)某个合法父子层级角色对看不出分界、但按规则降为告警:该对在「已知的设计真源取值缺口」清单里(theme/value-table.ts#KIT_THEME_KNOWN_GAPS,预览期)、暗色(求解器的判据只有亮色阶)、或求解器缺层级角色无法判定。回设计真源修正取值后从缺口清单删掉对应项,门禁自动回到 KIT-THEME-GATE-001",
304
372
  "KIT-LAYOUT-001": "布局体检(表格):作者显式写的列宽份数换算到参考容器宽后小于该列的内容需求最小宽,列会被压窄截断;`soma kit check` 以建议通道(advisories,不是 diagnostics)输出,不影响 ok",
305
373
  "KIT-LAYOUT-002": "布局体检(表格):每一列都写了 width,且各列理想宽之和不足参考宽的 0.6 倍,均分只会把短值列拉稀;删掉 width 交给求解",
306
374
  "KIT-LAYOUT-003": "布局体检(表格):平铺的行动作文案总宽超过操作列宽,操作列放不下;把次要动作写 more: true 或缩短文案",
@@ -309,7 +377,6 @@ export const KIT_GRAMMAR_RUNTIME = {
309
377
  "KIT-LAYOUT-006": "布局体检(表格):首列是布尔 / 枚举 / 日期 / 数字,而后面有标题角色字段;把名称列放第一列",
310
378
  "KIT-LAYOUT-007": "布局体检(表格):数字 / 金额 / 百分比列显式写了不是 end 的 align;数值列缺省右对齐,删掉 align",
311
379
  "KIT-LAYOUT-008": "布局体检(表格):规则版本 0 下非 more 的行动作超过平铺封顶(3 个);升到规则版本 1 或把次要动作写 more: true",
312
- "KIT-LAYOUT-009": "布局体检(表格):可见行动作不少于 2 个而危险动作没有放进「更多」末位;危险动作放最后并写 more: true",
313
380
  "KIT-LAYOUT-010": "布局体检(动作):行动作名超过 4 个汉字 / 12 个拉丁字符,或工具栏动作名超过 6 个汉字;缩成动词",
314
381
  "KIT-LAYOUT-011": "布局体检(动作):同一对象工具栏有多个 tone: primary 的主操作;只留一个",
315
382
  "KIT-LAYOUT-012": "布局体检(表格):枚举选项带 tone 的列用纯文本展示;状态列用 Tag",
@@ -332,7 +399,7 @@ export const KIT_GRAMMAR_RUNTIME = {
332
399
  "KIT-LAYOUT-029": "布局体检(页面组合):面板 / 浮层标题与页面标题相同;删掉面板标题",
333
400
  "KIT-LAYOUT-030": "布局体检(页面组合):Hero / PricingTable / Carousel / Marquee / Aura / TextRotate / Hover3d / HoverGallery / Mockup / Dock 等展示型组件出现在非 blank-frame 的业务页",
334
401
  "KIT-LAYOUT-031": "布局体检(页面组合):标题、字段名或动作名含表情或装饰符号前缀(● ◆ ▲ ✓ ✦ ★ 等);删掉符号",
335
- "KIT-LAYOUT-032": "布局体检(页面组合):由页面框 + 业务组件模板 + surface 推出的表面嵌套深度超过 2(卡片套卡片);内层改 surface: flush 或 plain",
402
+ "KIT-LAYOUT-032": "布局体检(页面组合):由页面框 + 业务组件模板 + surface 推出的表面嵌套深度超过 2(卡片套卡片);删掉内层手写的 surface,由容器形态与层级规则自动去重框",
336
403
  "KIT-LAYOUT-033": "布局体检(页面组合):MultiObjectBoard 某一行面板 span 之和不是 12;删掉 span 交给求解",
337
404
  "KIT-LAYOUT-041": "布局体检(页面构成):顶层主体数超过上限 6(按角色数主体,概况 / 控件 / 说明与被附着者不计;未分组区与每个 group 页签各自计数),或页签嵌套超过 2 层;按主题写 group 收进页内页签",
338
405
  "KIT-LAYOUT-042": "布局体检(页面构成):控件(ScopeSwitch / SegmentedSwitch / MetaAction 等)或说明(NoticeList / Text 等)在同一页签里找不到宿主主体,不独立成块、被迫落在页头一行;补上它控制 / 说明的面板,或用 head: 指向宿主面板",
@@ -375,9 +442,9 @@ export const KIT_GRAMMAR_RUNTIME = {
375
442
  "KIT-TBL-005": "表格 expand 与 virtual 并用:展开会改变行高,与虚拟滚动的固定行高窗口定位冲突,expand 已忽略;需要行详情请改用行操作打开详情浮层,或用分页表格 + expand(columnGroups / resizable 可与 virtual 并用,不再报此码)",
376
443
  "KIT-MENU-001": "右键菜单 contextMenu 写法不对:写在没有行级动作的视图上(collectionKeys.contextMenu.collections 与 staticComponents 之外:Chart 等其它写死形状组件、summary / form / filter 视图)、不是 @动作id 列表、超过 collectionKeys.contextMenu.maxItems 项、动作 id 不在 behavior.actions 中,或动作带 targetOverlay 却不在 rowActions 里;非法项忽略",
377
444
  "KIT-OBJ-012": "behavior.require 写法不对:不是数组、含空串 / 非标识符名字,名字不是该对象 behavior.params 的键(必填参数必须先在 params 里声明),或「至少一个」分组不合法(少于 2 个名字、嵌套数组、同名在单项与分组或两个分组里重复)",
378
- "KIT-OBJ-011": "写了已删除的密度旧写法:collection.density(compact / standard / comfortable 等任何取值)或 density 工具栏项记忆里的旧值。表级、页面框级都不再单设密度,密度只在 kit.app.yaml 的 theme.density(九维枚举 COMPACT_DENSE / STANDARD_BALANCED / SPACIOUS_AIRY);该键已忽略",
445
+ "KIT-OBJ-011": "写了已删除的密度旧写法:collection.density(compact / standard / comfortable 等任何取值)或 density 工具栏项记忆里的旧值。表级、页面框级都不再单设密度,密度只在 kit.app.yaml 的 theme.density(小写四档 compact / standard / spacious / touch);该键已忽略",
379
446
  "KIT-OBJ-010": "树表 /分隔线写法不对:treeTable 的 tree 键非法(idField 等须为非空字符串、defaultExpand 须为 all / none / 正整数、childrenFrom 须有 api)、indentField 不在列里、写了 expand 详情行或字段级 action;分隔线项 divider 值非法,或分隔线写在 table / treeTable 的列里",
380
- "KIT-OBJ-009": "表格斑马纹写法不对:collection.striped 不是布尔,或 striped 写在非 table 集合上;fields[].help 不是字符串(丢弃);behavior.syncUrl 不是 true、或对象没有分页 / 排序 / 筛选可同步、或查询参数名非法;collection.page 的 mode 不在 pager / more / infinite 内、或 more / infinite 写在 treeTable 上;collection.virtual 写法不对(缺 rowHeight、rowHeight 不是 sm / md / lg 档位名或写了像素数字、有未知键、height 不在档位内)、写在 treeTable / cards / stack 上、或与 page.mode: infinite 并用(改按 more 处理);columnGroups / resizable 写在 treeTable、非 table 集合上,或与 stickyHeader 并用(滚动模式互斥),已忽略",
447
+ "KIT-OBJ-009": "product.list_layout 不在 side / top 内(取值闭集见 listLayout.values);表格斑马纹写法不对:collection.striped 不是布尔,或 striped 写在非 table 集合上;fields[].help 不是字符串(丢弃);behavior.syncUrl 不是 true、或对象没有分页 / 排序 / 筛选可同步、或查询参数名非法;collection.page 的 mode 不在 pager / more / infinite 内、或 more / infinite 写在 treeTable 上;collection.virtual 写法不对(缺 rowHeight、rowHeight 不是 sm / md / lg 档位名或写了像素数字、有未知键、height 不在档位内)、写在 treeTable / cards / stack 上、或与 page.mode: infinite 并用(改按 more 处理);columnGroups / resizable 写在 treeTable、非 table 集合上,或与 stickyHeader 并用(滚动模式互斥),已忽略;batchActions 项写法不在闭集:未知键、缺 id / name、id 重复、超过项数上限、没写 select: multi,或 builtin 写了不带点的内置名(如 builtin: remove,内联项与 `@动作id` 引用的动作同判;批量条只发具名动作 submit、声明式请求 / 下载与带点的已登记内置动作,批量删除改写具名动作,确认文案可用 {n})",
381
448
  "KIT-EVT-001": "动作 submit 引用的函数名未在 soma.app.ts 的 actions 中登记,或 @动作id 不存在,或 view.on 的动作未登记(非 data.orderMove / saved / cancel / close / reload)",
382
449
  "KIT-FORM-003": "远程选项写法不对:schema.<字段>.options 写成对象时须有 from(以 / 开头的接口路径),params 的值是字面量,valueKey / labelKey / rowsPath 须是非空字符串,只用于枚举 / 枚举多选 / 文本字段;级联(Cascader)的 lazy 与 levels 须成对、levels 在范围内,lazy / levels / leafKey / childrenKey 只用于 Cascader 字段",
383
450
  "KIT-FORM-004": "列表接口适配写法不对:behavior.list 的键不在闭集内、rowsPath / totalPath / pageParam / sizeParam 不是非空字符串",
@@ -395,7 +462,7 @@ export const KIT_GRAMMAR_RUNTIME = {
395
462
  "KIT-FORM-010": "字段初值 default / 隐藏字段 hidden 写法不对:default 须是字面量(字符串 / 数字 / 布尔 / 数组 / 对象,序列化长度不超限);hidden 须是布尔,且字段必须可提交(permission 为 w 或 create,r 报错)、不得出现在 view.form.fields 里、数量不超限",
396
463
  "KIT-VIEW-001": "视图绑定写法不是纯 view 路径:字段项 hidden / disabled / required 与 on: toolbar 动作的 disabled 只许写 view.<成员>(展示对象成员路径),不许字面量真假、谓词、表达式、取反、非 view. 前缀;page.view 须是符合命名的视图名,view.form.onDraft 须是方法名标识符;组件 props / 字段项 props / behavior.params 的值以 view. 开头却不是纯 view.<成员>[.<子成员>](表达式、比较、下标、插值)、写了取反(!view.x / !row.x)、绑定写在了对象 / 数组嵌套值里(绑定只认整个 prop 值);view.on / 浮层 events / 动作 submit 的值以 view. 开头却不是单段方法名 view.<方法>(或把 view.<方法> 写进了 { action } 对象形)",
397
464
  "KIT-VIEW-002": "页面引用的展示对象不存在或用法不对:page.view 指向未经 defineKitApp({ views }) 登记的名字、一个视图被多个页面引用;页面写了 view 路径 / onDraft 却没有 page.view;AI 生成页不能写展示对象",
398
- "KIT-VIEW-003": "view 路径指向的成员在展示对象 state 里没有声明(在 defineKitView 的 state 里声明成员与初值);组件 props / 字段项 props / behavior.params 绑的 view.<成员> 同口径核对;内置只读成员 view.query.<名> / view.params.<名> 只许写页面 page.query / page.params 声明过的键",
465
+ "KIT-VIEW-003": "view 路径指向的成员在展示对象 state 里没有声明(在 defineKitView 的 state 里声明成员与初值);组件 props / 字段项 props / behavior.params 绑的 view.<成员> 同口径核对;内置只读成员 view.query.<名> / view.params.<名> 只许写页面 page.query / page.params 声明过的键;对象名契约(viewObject.objectNames)写错的对象名同码:展示对象 ctx.form / view / data / reload / request 等的对象参数(soma kit check 扫描)与写死形状组件 props.source_object(编译期,SCON-175)写的对象名不是本页的对象,或声明名在本页有多个同名对象(须写限定名 <页签 id 或槽名>.<声明名>)",
399
466
  "KIT-VIEW-004": "view.form.onDraft、动作 submit: view.<方法>、静态组件 view.<槽>.on.<事件>: view.<方法>、浮层 events.<事件>: view.<方法> 指向的方法在展示对象 methods 里没有",
400
467
  "KIT-VIEW-005": "展示对象登记不合法:登记值不是 defineKitView 的返回值、登记键与类名不一致、类名不符合命名(^[A-Z][A-Za-z0-9]*View$)、成员或方法名与 core 页面根成员重名或以 _ 开头",
401
468
  "KIT-VIEW-006": "视图绑定写在了不支持的位置:字段项 hidden / disabled / required 只对可编辑 form 视图的字段项生效(filter 视图的字段项只认 options,其余键报本码);动作 disabled 只对 on: toolbar 的动作与被 view.form.footerActions 引用的底栏动作生效(底栏动作另支持 hidden);toolbar / field 动作不支持 hidden;on: field 动作不支持任何状态绑定;nodeOptions 只对编辑组件是 FlowEditor 的字段项生效(schema edit: FlowEditor 或字段项 component: FlowEditor),columnOptions 只对编辑组件是 RowEditor 的字段项生效,suggestions 只对编辑组件是 FlowEditor 的字段项生效,写在别的字段上也报本码;字段项 props 里的 view.<成员> / row.<字段> 绑定只对只读单元生效,可编辑单元(edit 态 form / filter)写了也报本码",
@@ -412,12 +479,14 @@ export const KIT_GRAMMAR_RUNTIME = {
412
479
  "KIT-STYLE-001": "传入的 Tailwind 类含方括号任意值或无法通过 soma-core 样式引擎编译",
413
480
  "KIT-STYLE-002": "按页裁剪样式后,页面 HTML 里出现的内置组件(data-soma-component)没有并入本页的候选类(片段 components 漏登记,运行期会缺类)",
414
481
  "KIT-STYLE-003": "应用扩展组件没有声明用到的内置组件(通过 declareKitUses 补齐声明),样式退到全部基础件类兜底",
415
- "KIT-ACT-001": "删除动作(builtin: remove)缺二次确认或写通道:对象没有声明 behavior.write.delete,或 confirm 写成空串(编译器恒追加 confirm 尾段与 tone: danger,不可关闭确认)",
416
- "KIT-ACT-002": "声明式请求 / 下载动作(request / download)写法不对:submit / builtin / request / download 同写多个、api 缺失、method 不在闭集(request 只许 POST / PUT / PATCH,download 只许 GET / POST)、动作写了 then / after / afterSave 这类已删除的顺序键(落在闭集校验 KIT-PAGE-001)、into 与页面数据对象重名",
482
+ "KIT-ACT-001": "删除动作(builtin: remove)缺二次确认或写通道:对象没有声明 behavior.write.delete,或 confirm 写成空串(编译器恒追加 confirm 尾段与 tone: danger,不可关闭确认);其它危险动作(危险级不是常规:删除类功能、cascade、停用 / 归档 / 冻结一类,危险三档为档 1)的 confirm 写成空串,同一规则(危险动作必须二次确认,legacy 与 next 同判;没写 confirm 时编译器在模板输入处补缺省确认,确认恰好一次);confirm 里的 {name} / {字段} 占位对象 schema 里没有",
483
+ "KIT-ACT-002": "声明式请求 / 下载动作(request / download)写法不对:submit / builtin / request / download 同写多个、api 缺失、method 不在闭集(request 只许 POST / PUT / PATCH,download 只许 GET / POST)、pick / bodyMap 不是纯字段名映射(request 与 download 同一判据:pick 是非空且不重复的字段名数组,bodyMap 是 { 目标键: 字段名 },写表达式 / $ 路径 / 计算一律拒收)、动作写了 then / after / afterSave 这类已删除的顺序键(落在闭集校验 KIT-PAGE-001)、into 与页面数据对象重名",
417
484
  "KIT-ACT-006": "请求超时 request.timeoutMs 写法不对(GA6):须是整数毫秒且落在 core 语法真源 write.timeoutMs 的区间内(超出不截断,报错)",
418
485
  "KIT-ACT-008": "自动触发的请求写法不对(H1d):request.on(闭集 mount)接的请求,必须声明 request.read: true(该接口只读,POST 仅为带体查询)且 method 为 POST,写类请求(PUT / PATCH,或没声明 read)一律拒收;mount 触发的请求不得写 confirm、permission",
419
486
  "KIT-ACT-010": "通用动作字段类型或格式错误(如 id / name / label / title / on / submit / tone / builtin / confirm / disabledReason / permission / to / href / url);confirm 对象形违例(未知键、level 越界、typed 缺 phrase、consent 缺 impact、phrase 写在非 typed、占位写在没有行的动作上 / {n} 写在行动作上 / {字段} 写在批量动作上 / phrase 含占位、管道符、路径形、写在 remove 或批量动作上)与 disabledReason 违例(没写 disabled、对象 / 拼值)都用此码;permission 数组使用 KIT-OBJ-006,request / download 使用 KIT-ACT-002",
420
487
  "KIT-RES-001": "请求结果槽 view.<槽>.result 写法不对(GA3):须是 request 动作 into 的名字,或 { outcome, title? };outcome 须是本页某 request 动作的 into;非 form 视图的 result 与 staticComponent / fields 等不能同写",
488
+ "KIT-REL-001": "关联类属性的只读展示不是数据组件(SCON-117 立、SCON-118 收紧)。两档:① 字段写了 relation(schema 键,闭集见 fieldRelation)却在 schema.show 或 list / summary 字段项 component 里显式写基础组件(Text / Tag / Badge / Link / Avatar / AvatarGroup / Image / Kbd,fieldRelation.forbiddenShow)= 错误(挡编译):编译器已按形态自动选数据组件,删掉 show / component;② 字段没写 relation,却在只读视图 / schema.show 显式用 Avatar 显示人员,或多值字段(type: tags / enums)显式用单值基础组件 Text / Tag / Badge / Link 逐个拼 = 警告(不挡编译):提示加 relation: person / people / tags。只判显式写出的组件,不按字段名猜",
489
+ "KIT-REL-002": "关联类属性声明不合法(SCON-118,错误):relation 不在闭集 fieldRelation.values(person / people / record / records / tags / parent / file / files / link);display 脱离 relation 单写,或不是名称键字符串(person / people 另许 { name, sub, avatar } 对象,值须非空字符串);to 脱离 relation 单写、不是非空字符串,或写在 record / records 之外的形态上",
421
490
  "KIT-OVL-001": "抽屉承载了提交动作:kind: drawer 的浮层含表单视图、behavior.write、接到具名动作或 saved 的事件、或静态组件声明了 saved 事件;填写并提交、或确认后写入的浮层改写 kind: dialog(居中模态,内容多的加 width: wide),抽屉只用于只读详情与辅助信息",
422
491
  "KIT-OVL-002": "只读内容用了居中窗口(过渡期告警,不挡编译,随 kit check 的弃用提示段带出):kind: dialog 的浮层没有表单视图、behavior.write、接到具名动作或 saved 的事件;只读内容一律抽屉,改写 kind: drawer;居中窗口只给确认与带提交的表单",
423
492
  "KIT-OVL-003": "浮层写了 width 或 class(过渡期告警,不挡编译,该键已不生效):窗口的宽度与外观由框架按内容推导(确认 400;表单窗口单列 480、两列或宽组件 640、三列或画布 800;只读抽屉 480 / 640),页面不写尺寸与外观参数,删掉即可;要换档请改内容(栏数、组件)",
@@ -445,7 +514,24 @@ export const KIT_GRAMMAR_RUNTIME = {
445
514
  "KIT-COMP-003": "组件候选类 / rootClass / slotClass 含非法 Tailwind 类(不在刻度内或带方括号任意值)",
446
515
  "KIT-COMP-004": "数据组件定义 / 包装 / 登记非法:缺 define()、accept 不是 single / list、被包装组件无控制器、登记名与契约名不一致、layer 不是 data、事件名不是 snake_case,或 composeKitDataComponents 没有子部件",
447
516
  "KIT-COMP-005": "组件 templateHtml 含脚本标签、事件属性或 javascript: 地址,拒绝挂载",
448
- "KIT-LOCALE-003": "领域包词条键非法:不以 pack. 开头,或与已登记的键重复"
517
+ "KIT-COMP-006": "组件契约顶层 selfReport(空间与主题取色静态自报声明)字段或类型不合法(非普通对象、componentPart / host 不在闭集内,自管布局 / 取色事实非布尔,或内容宽 contentWidth 不是容器档名(soma-design adaptive#containerTiers)、写在内置组件上):宿主已隔离该自定义组件自报并回退默认渲染",
518
+ "KIT-LOCALE-003": "领域包词条键非法:不以 pack. 开头,或与已登记的键重复",
519
+ "KIT-IA-002": "(告警,不挡编译)筛选区有 ≥ 2 个模糊文本条件(text / longtext 且不带 options、也没写 filterOp,会画成多个搜索框):筛选区只画一个关键词框——schema 加一个 keyword 文本字段(不进列表 / 表单)、filter.fields 只放它,由应用列表接口薄壳把关键词转成后台查询;kit 不做「一个词拆两个参数」的或查询。按字段精确匹配的条件(账号、编码一类,接口是独立参数)写 schema.<字段>.filterOp: eq(SCON-171,formLinkage.filterOptions.op):画成带字段名标签的筛选输入框,不计入本条",
520
+ "KIT-LOOK-001": "界面规则(look)选择器里有未知的节点种类 / 筛选键 / 组件名 / 部件名:节点种类与筛选键见 look.nodes,部件名见该组件契约的 look.parts",
521
+ "KIT-LOOK-002": "界面规则选择器用了不支持的写法(交互状态伪类、比较、:not / :has、> + ~、位置选择、前后缀 / 通配匹配、DOM 标签 / 类名 / data-*、!important、部件后再接后代、超过 3 段):改用名字或声明事实寻址(#名、[键=值]),判定交给业务对象返回取值名再写纯绑定",
522
+ "KIT-LOOK-003": "界面规则写了未知属性、取值不在闭集,或写了原始值(色值 #… / rgb( / oklch(、带单位的数字、类名、色相名 red):属性与取值只认 look.properties 的闭集,色调只认色名表 toneNames",
523
+ "KIT-LOOK-004": "部件的角色不接受该属性(如条带不接受 mark、单元格不接受 tone):角色 → 可写属性见 look.roles;组件契约 accept 还可再收窄(色调写错部件组另报 KIT-LOOK-504)",
524
+ "KIT-LOOK-005": "(静态:错误;运行期:开发态告警)色调绑定不合法:只有 tone 能绑定;row.<字段> 只能用在集合行里、item.<键> 只能用在条目型组件的项上、view.<成员> 须是展示对象成员;运行期取到闭集外的值按 neutral 渲染",
525
+ "KIT-LOOK-006": "(告警)界面规则从不匹配:应用规则在全应用零命中、页面规则在本页零命中——删掉它,或改选择器",
526
+ "KIT-LOOK-007": "(告警)界面规则被完全遮蔽:它命中的每个(节点, 部件, 属性)都被同层后写或更高层的规则覆盖了。同层后写胜,不比较选择器具体程度;宽规则写在前、窄规则写在后",
527
+ "KIT-LOOK-009": "(告警,AI 页为错误)界面规则预算:页面规则 > 12 条、应用规则 > 40 条,同容器分类色 > 4、一屏色相 > 6,emphasis 抬升(B2 落地)",
528
+ "KIT-LOOK-011": "AI 蓝图写了 look 或 display:界面规则与展示词本期 human-only,AI 页自动吃应用级规则(并入 KIT-AIT-002)",
529
+ "KIT-LOOK-012": "(告警,工序 ⑤)界面规则写了过渡期旧写法:照收并改写成新写法(ink: strong → ink: default + text: strong,见 look.properties.*.deprecatedValues),业务迁移后改报错",
530
+ "KIT-LOOK-504": "(工序 ⑤ 配色落位;静态:错误,运行期绑定值:开发态告警)语义色作装饰:语义词 info / success / warning / danger 写在装饰性部件(面板、标题图标、分隔、条带,look.toneGroups.decorative)上,或说明文字部件(标签、单位,look.toneGroups.none)写了任何 tone。承载数据的部件(value mark figure fill row)不拦;取代旧语义色装饰检查与 KIT-IA-003「按字段角色判」",
531
+ "KIT-IA-003": "选项色调按字段角色分两组(2026-11-25 新判据):role: status / severity 的字段可用语义色(neutral / info / success / warning / danger),写分类色 c1…c8 是错误;其余字段只可用 neutral 与分类色 c1…c8——写 warning / danger 是错误(挡编译),写 info / success 是告警;分类字段不写 tone 时由编译期按分类色自动序列取色",
532
+ "KIT-IA-004": "(告警,按生成值渲染)新建 / 编辑流程的手写文案与动词闭集生成的不同:openCreate / openEdit 动作 name、view.form.title、view.form.submitLabel 由对象名 noun(领域动词 verb)生成——入口「创建<对象>」= 新建窗口标题、主按钮「创建」,编辑入口「编辑」、窗口「编辑<对象>」、主按钮「保存」;删掉手写文案,对象上声明 noun",
533
+ "KIT-IA-006": "(告警,按事实推出的档渲染)危险三档(KT-P-danger)的事实写得自相矛盾或用不上:写了 undo 又写 confirm(可撤回的动作不确认,confirm 被忽略——删掉 confirm)、undo 指向的动作不存在或不是 request 动作(undo 被忽略)、undo 与 cascade: true 同写(不可撤回优先,按输入名称确认)、cascade 写在没有行或对象没有标题字段(title / name / label,或列表里的文本字段)的动作上(退回普通确认框)",
534
+ "KIT-IA-009": "(告警,按公式渲染)附加浮层写了 kind: dialog,但它的编辑表单按容器公式(KT-P-window,kit-arrange#editContainer:可编辑字段加权求和、重型字段、分组数)是整页表单:删掉 kind——带提交的浮层由框架推出对话框 / 同页切换的整页表单视图,只读的推出抽屉"
449
535
  },
450
536
  "viewObject": {
451
537
  "defineFunction": "defineKitView(soma-kit/app,浏览器可进,core defineSomaView 的薄封装):defineKitView({ name: 'RefG3View', state: { 成员: 初值 }, methods: { 方法(view, payload) {} } }) 返回页面根类;defineKitApp({ views: { RefG3View } }) 显式登记,键 = 类名 = 定义里的 name。",
@@ -455,6 +541,10 @@ export const KIT_GRAMMAR_RUNTIME = {
455
541
  "pathRoot": "view",
456
542
  "pathPattern": "^view\\.[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$",
457
543
  "pathCoreVar": "page",
544
+ "objectNames": {
545
+ "sourceObjectProp": "source_object",
546
+ "ai": "human-only"
547
+ },
458
548
  "bindingSites": {
459
549
  "viewScope": "view",
460
550
  "fieldsScope": "fields",
@@ -623,7 +713,9 @@ export const KIT_GRAMMAR_RUNTIME = {
623
713
  "downloadKeys": [
624
714
  "api",
625
715
  "method",
626
- "filename"
716
+ "filename",
717
+ "pick",
718
+ "bodyMap"
627
719
  ],
628
720
  "requestMethods": [
629
721
  "POST",
@@ -644,6 +736,118 @@ export const KIT_GRAMMAR_RUNTIME = {
644
736
  "RowEditor",
645
737
  "FlowEditor"
646
738
  ],
739
+ "fieldRelation": {
740
+ "values": [
741
+ "person",
742
+ "people",
743
+ "record",
744
+ "records",
745
+ "tags",
746
+ "parent",
747
+ "file",
748
+ "files",
749
+ "link"
750
+ ],
751
+ "keys": [
752
+ "relation",
753
+ "display",
754
+ "to"
755
+ ],
756
+ "pick": {
757
+ "person": {
758
+ "show": "PersonCell",
759
+ "edit": "Select",
760
+ "editNeedsOptions": true,
761
+ "multiple": false
762
+ },
763
+ "people": {
764
+ "show": "PersonCell",
765
+ "edit": "Combobox",
766
+ "editNeedsOptions": true,
767
+ "multiple": true
768
+ },
769
+ "record": {
770
+ "show": "Identifier",
771
+ "edit": "Select",
772
+ "editNeedsOptions": true,
773
+ "multiple": false,
774
+ "displayDefault": "name"
775
+ },
776
+ "records": {
777
+ "show": "RecordsCell",
778
+ "edit": "",
779
+ "editNeedsOptions": false,
780
+ "multiple": false
781
+ },
782
+ "tags": {
783
+ "show": "TagGroup",
784
+ "edit": "Combobox",
785
+ "editNeedsOptions": true,
786
+ "multiple": true
787
+ },
788
+ "parent": {
789
+ "show": "PathCell",
790
+ "edit": "TreeSelect",
791
+ "editNeedsOptions": false,
792
+ "multiple": false
793
+ },
794
+ "file": {
795
+ "show": "FileCell",
796
+ "edit": "Upload",
797
+ "editNeedsOptions": false,
798
+ "multiple": false
799
+ },
800
+ "files": {
801
+ "show": "FileCell",
802
+ "edit": "Upload",
803
+ "editNeedsOptions": false,
804
+ "multiple": true
805
+ },
806
+ "link": {
807
+ "show": "LinkCell",
808
+ "edit": "",
809
+ "editNeedsOptions": false,
810
+ "multiple": false
811
+ }
812
+ },
813
+ "displayProp": {
814
+ "person": "name_key",
815
+ "people": "name_key",
816
+ "record": "name_key",
817
+ "records": "name_key",
818
+ "tags": "label_key",
819
+ "parent": "name_key",
820
+ "file": "name_key",
821
+ "files": "name_key",
822
+ "link": "text_key"
823
+ },
824
+ "displayObjectFor": [
825
+ "person",
826
+ "people"
827
+ ],
828
+ "displayObjectProps": {
829
+ "name": "name_key",
830
+ "sub": "sub_key",
831
+ "avatar": "avatar_key"
832
+ },
833
+ "toFor": [
834
+ "record",
835
+ "records"
836
+ ],
837
+ "titleProp": {
838
+ "records": "title"
839
+ },
840
+ "forbiddenShow": [
841
+ "Text",
842
+ "Tag",
843
+ "Badge",
844
+ "Link",
845
+ "Avatar",
846
+ "AvatarGroup",
847
+ "Image",
848
+ "Kbd"
849
+ ]
850
+ },
647
851
  "rowsField": {
648
852
  "editModes": [
649
853
  "append",
@@ -1282,10 +1486,19 @@ export const KIT_GRAMMAR_RUNTIME = {
1282
1486
  "colorNames": {
1283
1487
  "themeHead": "src/theme/kit-theme.css",
1284
1488
  "map": {
1489
+ "chart-1": "--soma-chart-1",
1490
+ "chart-2": "--soma-chart-2",
1491
+ "chart-3": "--soma-chart-3",
1492
+ "chart-4": "--soma-chart-4",
1493
+ "chart-5": "--soma-chart-5",
1494
+ "chart-6": "--soma-chart-6",
1495
+ "chart-7": "--soma-chart-7",
1496
+ "chart-8": "--soma-chart-8",
1285
1497
  "surface": "--soma-surface-base",
1286
1498
  "surface-sunken": "--soma-surface-sunken",
1287
1499
  "surface-band": "--soma-surface-band",
1288
1500
  "surface-well": "--soma-surface-well",
1501
+ "label-fill": "--soma-label-fill",
1289
1502
  "surface-raised": "--soma-surface-raised",
1290
1503
  "surface-float": "--soma-surface-float",
1291
1504
  "surface-overlay": "--soma-surface-overlay",
@@ -1298,16 +1511,53 @@ export const KIT_GRAMMAR_RUNTIME = {
1298
1511
  "border": "--soma-border-control",
1299
1512
  "border-strong": "--soma-border-strong",
1300
1513
  "border-subtle": "--soma-border-hairline",
1514
+ "layer-sec": "--soma-layer-sec-line",
1515
+ "layer-head": "--soma-layer-head-band",
1516
+ "layer-head-line": "--soma-layer-head-line",
1517
+ "layer-head-top": "--soma-layer-head-top",
1518
+ "layer-head-fg": "--soma-layer-head-fg",
1519
+ "layer-between": "--soma-layer-between",
1520
+ "layer-pane": "--soma-layer-pane-line",
1521
+ "layer-pane-foot": "--soma-layer-pane-foot",
1522
+ "layer-pane-foot-line": "--soma-layer-pane-foot-line",
1523
+ "layer-sub": "--soma-layer-sub",
1524
+ "layer-sub-line": "--soma-layer-sub-line",
1525
+ "layer-sub-bar": "--soma-layer-sub-bar",
1526
+ "layer-top": "--soma-layer-top",
1527
+ "layer-top-line": "--soma-layer-top-line",
1528
+ "layer-shell-line": "--soma-layer-shell-line",
1529
+ "b2": "--soma-layer-b2-bg",
1530
+ "b2-fg": "--soma-layer-b2-fg",
1531
+ "b2-line": "--soma-layer-b2-line",
1532
+ "b2-line-hover": "--soma-layer-b2-line-hover",
1533
+ "b2-hover": "--soma-layer-b2-hover",
1534
+ "bo": "--soma-layer-bo-bg",
1535
+ "bo-fg": "--soma-layer-bo-fg",
1536
+ "bo-line": "--soma-layer-bo-line",
1537
+ "bo-hover": "--soma-layer-bo-hover",
1301
1538
  "border-container": "--soma-container-border-color",
1539
+ "tone-ink": "--kit-tone-ink",
1540
+ "tone-soft": "--kit-tone-soft",
1541
+ "tone-mark": "--kit-tone-mark",
1542
+ "border-floating": "--soma-border-floating-color",
1302
1543
  "input": "--soma-border-control",
1303
- "input-hover": "--soma-border-control",
1544
+ "input-hover": "--soma-border-strong",
1304
1545
  "button-edge": "--soma-button-border-color",
1305
1546
  "button-edge-hover": "--soma-button-border-hover-color",
1547
+ "action-edge": "--soma-border-action",
1306
1548
  "subtle": "--soma-border-hairline",
1307
1549
  "primary": "--soma-c-primary",
1308
1550
  "primary-fg": "--soma-c-primary-fg",
1309
1551
  "primary-soft": "--soma-c-primary-soft",
1552
+ "highlight": "--soma-highlight",
1553
+ "primary-edge": "--soma-c-primary-border",
1554
+ "success-edge": "--soma-c-success-border",
1555
+ "warning-edge": "--soma-c-warning-border",
1556
+ "danger-edge": "--soma-c-danger-border",
1557
+ "info-edge": "--soma-c-info-border",
1310
1558
  "primary-on-soft": "--soma-c-primary-on-soft",
1559
+ "tertiary-soft": "--soma-c-tertiary-soft",
1560
+ "tertiary-on-soft": "--soma-c-tertiary-on-soft",
1311
1561
  "primary-hover": "--soma-c-primary-hover",
1312
1562
  "primary-active": "--soma-c-primary-active",
1313
1563
  "danger-hover": "--soma-c-danger-hover",
@@ -1334,7 +1584,85 @@ export const KIT_GRAMMAR_RUNTIME = {
1334
1584
  "state-layer-row-hover": "--soma-state-layer-row-hover",
1335
1585
  "state-layer-selected": "--soma-state-layer-selected",
1336
1586
  "state-layer-tonal-hover": "--soma-state-layer-tonal-hover",
1337
- "state-layer-tonal-press": "--soma-state-layer-tonal-press"
1587
+ "state-layer-tonal-press": "--soma-state-layer-tonal-press",
1588
+ "surface-current": "--soma-surface-current",
1589
+ "surface-inverse": "--soma-surface-inverse",
1590
+ "control-track": "--soma-control-track-current",
1591
+ "control-thumb": "--soma-static-white",
1592
+ "skeleton": "--soma-skeleton-current",
1593
+ "canvas-dot": "--soma-canvas-dot-current",
1594
+ "static-white": "--soma-static-white",
1595
+ "static-black": "--soma-static-black",
1596
+ "fg-strong": "--soma-text-strong",
1597
+ "fg-inverse": "--soma-text-on-inverse",
1598
+ "link": "--soma-text-link",
1599
+ "link-hover": "--soma-text-link-hover",
1600
+ "brand": "--soma-brand-solid",
1601
+ "brand-fg": "--soma-brand-fg",
1602
+ "brand-soft": "--soma-brand-soft",
1603
+ "brand-on-soft": "--soma-brand-on-soft",
1604
+ "primary-soft-hover": "--soma-c-primary-soft-hover",
1605
+ "primary-soft-active": "--soma-c-primary-soft-active",
1606
+ "primary-mark": "--soma-c-primary-mark",
1607
+ "tertiary": "--soma-c-tertiary",
1608
+ "tertiary-fg": "--soma-c-tertiary-fg",
1609
+ "tertiary-hover": "--soma-c-tertiary-hover",
1610
+ "tertiary-active": "--soma-c-tertiary-active",
1611
+ "tertiary-soft-hover": "--soma-c-tertiary-soft-hover",
1612
+ "tertiary-soft-active": "--soma-c-tertiary-soft-active",
1613
+ "tertiary-edge": "--soma-c-tertiary-border",
1614
+ "tertiary-mark": "--soma-c-tertiary-mark",
1615
+ "second": "--soma-c-second",
1616
+ "second-fg": "--soma-c-second-fg",
1617
+ "second-soft": "--soma-c-second-soft",
1618
+ "second-on-soft": "--soma-c-second-on-soft",
1619
+ "second-edge": "--soma-c-second-border",
1620
+ "second-mark": "--soma-c-second-mark",
1621
+ "chart-idle": "--soma-chart-idle",
1622
+ "chart-caution": "--soma-chart-caution",
1623
+ "chart-overload": "--soma-chart-overload",
1624
+ "cat-1-soft": "--soma-cat-1-soft",
1625
+ "cat-1-on": "--soma-cat-1-on",
1626
+ "cat-2-soft": "--soma-cat-2-soft",
1627
+ "cat-2-on": "--soma-cat-2-on",
1628
+ "cat-3-soft": "--soma-cat-3-soft",
1629
+ "cat-3-on": "--soma-cat-3-on",
1630
+ "cat-4-soft": "--soma-cat-4-soft",
1631
+ "cat-4-on": "--soma-cat-4-on",
1632
+ "cat-5-soft": "--soma-cat-5-soft",
1633
+ "cat-5-on": "--soma-cat-5-on",
1634
+ "cat-6-soft": "--soma-cat-6-soft",
1635
+ "cat-6-on": "--soma-cat-6-on",
1636
+ "cat-7-soft": "--soma-cat-7-soft",
1637
+ "cat-7-on": "--soma-cat-7-on",
1638
+ "cat-8-soft": "--soma-cat-8-soft",
1639
+ "cat-8-on": "--soma-cat-8-on",
1640
+ "success-hover": "--soma-c-success-hover",
1641
+ "success-active": "--soma-c-success-active",
1642
+ "success-soft-hover": "--soma-c-success-soft-hover",
1643
+ "success-soft-active": "--soma-c-success-soft-active",
1644
+ "success-mark": "--soma-c-success-mark",
1645
+ "warning-hover": "--soma-c-warning-hover",
1646
+ "warning-active": "--soma-c-warning-active",
1647
+ "warning-soft-hover": "--soma-c-warning-soft-hover",
1648
+ "warning-soft-active": "--soma-c-warning-soft-active",
1649
+ "warning-mark": "--soma-c-warning-mark",
1650
+ "danger-soft-hover": "--soma-c-danger-soft-hover",
1651
+ "danger-soft-active": "--soma-c-danger-soft-active",
1652
+ "danger-mark": "--soma-c-danger-mark",
1653
+ "info-hover": "--soma-c-info-hover",
1654
+ "info-active": "--soma-c-info-active",
1655
+ "info-soft-hover": "--soma-c-info-soft-hover",
1656
+ "info-soft-active": "--soma-c-info-soft-active",
1657
+ "info-mark": "--soma-c-info-mark",
1658
+ "syntax-keyword": "--soma-syntax-keyword",
1659
+ "syntax-fn": "--soma-syntax-fn",
1660
+ "syntax-string": "--soma-syntax-string",
1661
+ "syntax-number": "--soma-syntax-number",
1662
+ "syntax-type": "--soma-syntax-type",
1663
+ "syntax-tag": "--soma-syntax-tag",
1664
+ "syntax-op": "--soma-syntax-op",
1665
+ "syntax-comment": "--soma-syntax-comment"
1338
1666
  }
1339
1667
  },
1340
1668
  "overlayEventRoles": {
@@ -1422,6 +1750,7 @@ export const KIT_GRAMMAR_RUNTIME = {
1422
1750
  "notify",
1423
1751
  "hideEmpty",
1424
1752
  "emptyText",
1753
+ "bordered",
1425
1754
  "groups",
1426
1755
  "collapsible",
1427
1756
  "defaultOpen",
@@ -1481,6 +1810,9 @@ export const KIT_GRAMMAR_RUNTIME = {
1481
1810
  "KitDelta",
1482
1811
  "Countdown",
1483
1812
  "Swap",
1813
+ "ButtonGroup",
1814
+ "PeriodPicker",
1815
+ "TimeRange",
1484
1816
  "Fab",
1485
1817
  "Image",
1486
1818
  "MenuButton",
@@ -1492,7 +1824,22 @@ export const KIT_GRAMMAR_RUNTIME = {
1492
1824
  "PriceText",
1493
1825
  "QrCode",
1494
1826
  "CommandPalette",
1495
- "GapValue"
1827
+ "GapValue",
1828
+ "PersonCell",
1829
+ "TagGroup",
1830
+ "Identifier",
1831
+ "RecordsCell",
1832
+ "FileCell",
1833
+ "LinkCell",
1834
+ "PathCell",
1835
+ "Badge",
1836
+ "Notification",
1837
+ "Card",
1838
+ "Collapse",
1839
+ "Tabs",
1840
+ "Affix",
1841
+ "HoverCard",
1842
+ "Spinner"
1496
1843
  ],
1497
1844
  "types": {
1498
1845
  "text": {
@@ -1546,6 +1893,123 @@ export const KIT_GRAMMAR_RUNTIME = {
1546
1893
  "daterange": {
1547
1894
  "show": "Text",
1548
1895
  "edit": "DateRange"
1896
+ },
1897
+ "float": {
1898
+ "show": "Text",
1899
+ "edit": "Number"
1900
+ },
1901
+ "secret": {
1902
+ "show": "Text",
1903
+ "edit": "Input",
1904
+ "format": "mask"
1905
+ },
1906
+ "code": {
1907
+ "show": "Text",
1908
+ "edit": "Textarea"
1909
+ },
1910
+ "progress": {
1911
+ "show": "Text",
1912
+ "edit": "Number",
1913
+ "format": "percent"
1914
+ },
1915
+ "status": {
1916
+ "show": "Text",
1917
+ "edit": "Select"
1918
+ },
1919
+ "link": {
1920
+ "show": "Text",
1921
+ "edit": "Input"
1922
+ },
1923
+ "url": {
1924
+ "show": "Text",
1925
+ "edit": "Input"
1926
+ },
1927
+ "tags": {
1928
+ "show": "Text",
1929
+ "edit": "Checkbox"
1930
+ },
1931
+ "tree": {
1932
+ "show": "Text",
1933
+ "edit": "TreeSelect"
1934
+ },
1935
+ "cascade": {
1936
+ "show": "Text",
1937
+ "edit": "Cascader"
1938
+ },
1939
+ "image": {
1940
+ "show": "Text",
1941
+ "edit": "Upload"
1942
+ },
1943
+ "file": {
1944
+ "show": "Text",
1945
+ "edit": "Upload"
1946
+ },
1947
+ "embed": {
1948
+ "show": "Text",
1949
+ "edit": "Input"
1950
+ },
1951
+ "richtext": {
1952
+ "show": "Text",
1953
+ "edit": "Textarea"
1954
+ },
1955
+ "time_of_day": {
1956
+ "show": "Text",
1957
+ "edit": "TimePicker",
1958
+ "format": "time_of_day"
1959
+ },
1960
+ "timezone": {
1961
+ "show": "Text",
1962
+ "edit": "Select",
1963
+ "format": "timezone"
1964
+ },
1965
+ "schedule": {
1966
+ "show": "Text",
1967
+ "edit": "Textarea",
1968
+ "format": "schedule"
1969
+ },
1970
+ "exceptions": {
1971
+ "show": "Text",
1972
+ "edit": "Textarea",
1973
+ "format": "exceptions"
1974
+ },
1975
+ "window": {
1976
+ "show": "Text",
1977
+ "edit": "Textarea",
1978
+ "format": "window"
1979
+ },
1980
+ "limits": {
1981
+ "show": "Text",
1982
+ "edit": "Textarea",
1983
+ "format": "limits"
1984
+ },
1985
+ "duration": {
1986
+ "show": "Text",
1987
+ "edit": "Number",
1988
+ "format": "duration"
1989
+ },
1990
+ "filesize": {
1991
+ "show": "Text",
1992
+ "edit": "Number",
1993
+ "format": "filesize"
1994
+ },
1995
+ "colour": {
1996
+ "show": "Text",
1997
+ "edit": "ColorPicker",
1998
+ "format": "colour"
1999
+ },
2000
+ "path": {
2001
+ "show": "Text",
2002
+ "edit": "Input",
2003
+ "format": "path"
2004
+ },
2005
+ "measure": {
2006
+ "show": "Text",
2007
+ "edit": "Number",
2008
+ "format": "measure"
2009
+ },
2010
+ "signature": {
2011
+ "show": "Text",
2012
+ "edit": "Input"
1549
2013
  }
1550
2014
  },
1551
2015
  "width": {
@@ -1686,7 +2150,10 @@ export const KIT_GRAMMAR_RUNTIME = {
1686
2150
  "control",
1687
2151
  "button",
1688
2152
  "badge",
1689
- "concentric"
2153
+ "concentric",
2154
+ "float",
2155
+ "item",
2156
+ "b1"
1690
2157
  ]
1691
2158
  },
1692
2159
  "shadow": {
@@ -1699,7 +2166,10 @@ export const KIT_GRAMMAR_RUNTIME = {
1699
2166
  "raised",
1700
2167
  "overlay",
1701
2168
  "focus-halo",
1702
- "focus-halo-button"
2169
+ "focus-halo-button",
2170
+ "glow-btn",
2171
+ "pin-r",
2172
+ "pin-l"
1703
2173
  ]
1704
2174
  }
1705
2175
  },
@@ -1727,9 +2197,20 @@ export const KIT_GRAMMAR_RUNTIME = {
1727
2197
  },
1728
2198
  "summaryEmpty": {
1729
2199
  "emptyDefault": "—",
2200
+ "emptyDefaultSlots": [
2201
+ "summary",
2202
+ "list"
2203
+ ],
1730
2204
  "placeholderComponents": [
1731
2205
  "Text",
1732
- "Tag"
2206
+ "Tag",
2207
+ "PersonCell",
2208
+ "TagGroup",
2209
+ "Identifier",
2210
+ "RecordsCell",
2211
+ "FileCell",
2212
+ "LinkCell",
2213
+ "PathCell"
1733
2214
  ],
1734
2215
  "hideEmptyForbiddenTypes": [
1735
2216
  "int",
@@ -1753,49 +2234,49 @@ export const KIT_GRAMMAR_RUNTIME = {
1753
2234
  "flexWrap": "flex flex-wrap items-end gap-4",
1754
2235
  "tableWrap": "@container w-full overflow-x-auto bg-surface",
1755
2236
  "tableInner": "min-w-72 @lg:min-w-160 flex flex-col",
1756
- "tableHead": "flex gap-x-2 @lg:gap-x-4 py-0.5 items-center text-xs font-medium text-fg-subtle",
1757
- "tableRow": "flex gap-x-2 @lg:gap-x-4 py-0.5 items-center text-sm text-fg transition-colors hover:bg-state-layer-row-hover active:bg-state-layer-press data-kit-selected:bg-primary-soft data-kit-selected:hover:bg-state-layer-tonal-hover",
2237
+ "tableHead": "flex gap-x-8 py-0.5 items-center text-sm font-medium text-fg-muted",
2238
+ "tableRow": "inset-row flex gap-x-8 py-0.5 items-center text-sm text-fg transition-colors hover:bg-state-layer-row-hover active:bg-state-layer-press data-kit-selected:bg-state-layer-selected data-kit-selected:hover:bg-state-layer-tonal-hover data-kit-fresh:bg-primary-soft",
1758
2239
  "tableRowStriped": "even:bg-surface-sunken/60 even:hover:bg-state-layer-row-hover",
1759
2240
  "tableRowStripedExpandOuter": "group/row",
1760
2241
  "tableRowStripedExpandInner": "group-even/row:hover:bg-state-layer-row-hover",
1761
2242
  "tableRowStripedAfterTemplate": "odd:bg-surface-sunken/60 odd:hover:bg-state-layer-row-hover",
1762
2243
  "tableRowStripedExpandInnerAfterTemplate": "group-odd/row:hover:bg-state-layer-row-hover",
1763
- "tableRowSelected": "data-kit-selected:bg-primary-soft",
2244
+ "tableRowSelected": "data-kit-selected:bg-state-layer-selected",
1764
2245
  "help": "text-xs text-fg-muted",
1765
2246
  "tableActions": "flex flex-wrap items-center gap-2",
1766
2247
  "toolbarSecondary": "flex flex-wrap items-center justify-end gap-2",
1767
2248
  "toolbarTitleRow": "flex flex-wrap items-center justify-between gap-3",
1768
2249
  "cardsList": "grid gap-4",
1769
- "cardsItem": "rounded-card border-edge border-border-container bg-surface p-4 shadow-xs",
2250
+ "cardsItem": "rounded-card border-edge border-border-container bg-surface p-card transition-shadow hover:shadow-sm",
1770
2251
  "stackList": "flex flex-col gap-4",
1771
2252
  "stackItem": "rounded-card border-edge border-border-container bg-surface p-3 shadow-xs",
1772
2253
  "compactList": "@container flex flex-col",
1773
- "compactItem": "flex flex-wrap items-center gap-x-3 gap-y-1 px-3 in-data-kit-axis:px-card py-2 border-b-hairline border-border-subtle last:border-b-0 text-sm text-fg transition-colors hover:bg-state-layer-row-hover active:bg-state-layer-press data-kit-selected:bg-primary-soft",
2254
+ "compactItem": "inset-row flex flex-wrap items-center gap-x-3 gap-y-1 px-3 in-data-kit-axis:px-card py-2 border-b-hairline border-border-subtle last:border-b-0 text-sm text-fg transition-colors hover:bg-state-layer-row-hover active:bg-state-layer-press data-kit-selected:bg-state-layer-selected data-kit-selected:sel-bar data-kit-selected:hover:bg-state-layer-tonal-hover data-kit-fresh:bg-primary-soft",
1774
2255
  "compactBody": "flex min-w-40 flex-1 flex-col gap-0.5",
1775
- "compactTitle": "min-w-0 truncate font-medium text-fg",
2256
+ "compactTitle": "min-w-0 truncate font-medium text-fg in-data-kit-selected:text-primary-on-soft in-data-kit-selected:*:text-primary-on-soft",
1776
2257
  "compactMeta": "flex min-w-0 items-center gap-x-2 overflow-hidden whitespace-nowrap text-fg-muted",
1777
2258
  "compactMetaItem": "inline-flex min-w-0 items-center gap-x-2 overflow-hidden **:min-w-0 **:truncate",
1778
2259
  "compactSep": "shrink-0 text-fg-subtle",
1779
2260
  "compactActions": "shrink-0",
1780
2261
  "paneList": "@container flex flex-col",
1781
- "paneItem": "relative flex cursor-pointer items-center gap-x-3 px-3 in-data-kit-axis:px-card py-2 border-b-hairline border-border-subtle last:border-b-0 text-sm text-fg transition-colors hover:bg-state-layer-row-hover active:bg-state-layer-press before:absolute before:inset-y-0 before:start-0 before:w-0.5 before:bg-transparent data-kit-selected:bg-surface data-kit-selected:before:bg-primary",
2262
+ "paneItem": "inset-row flex cursor-pointer items-center gap-x-3 px-3 in-data-kit-axis:px-card py-2 border-b-hairline border-border-subtle last:border-b-0 text-sm text-fg transition-colors hover:bg-state-layer-row-hover active:bg-state-layer-press data-kit-selected:bg-state-layer-selected data-kit-selected:text-primary-on-soft data-kit-selected:font-medium data-kit-selected:hover:bg-state-layer-tonal-hover data-kit-selected:active:bg-state-layer-tonal-press data-kit-fresh:bg-primary-soft",
1782
2263
  "paneRow": "flex min-w-0 items-center gap-x-2",
1783
- "paneTag": "ms-auto shrink-0",
2264
+ "paneTag": "shrink-0",
1784
2265
  "paneCode": "font-mono text-xs",
1785
2266
  "staticRoot": "",
1786
- "groupsWrap": "flex flex-col gap-4",
2267
+ "groupsWrap": "flex flex-col gap-6",
1787
2268
  "groupSection": "flex flex-col gap-3",
1788
2269
  "groupTitle": "text-sm font-semibold text-fg",
1789
- "groupToggle": "flex w-full items-center justify-between gap-2 rounded-md py-1 text-start text-sm font-semibold text-fg transition-colors hover:text-fg-muted focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-inset focus-visible:ring-ring",
2270
+ "groupToggle": "flex w-full items-center justify-between gap-2 rounded-md py-1 text-start text-sm font-semibold text-fg transition-colors hover:text-fg-muted focus-visible:outline-2 focus-visible:outline-solid focus-visible:outline-ring focus-visible:-outline-offset-2",
1790
2271
  "groupMark": "w-4 shrink-0 text-center text-fg-subtle",
1791
2272
  "tableScrollWrap": "overflow-x-auto bg-surface group/tbl",
1792
2273
  "tableScrollInner": "flex w-max min-w-full flex-col",
1793
- "tableScrollCell": "box-border flex min-w-0 flex-none items-center overflow-hidden px-4 first:ps-0 last:pe-0",
1794
- "tableCellSticky": "sticky z-10 bg-surface self-stretch group-hover/trow:bg-surface-sunken group-data-kit-selected/trow:bg-primary-soft",
2274
+ "tableScrollCell": "box-border flex min-w-0 flex-none items-center overflow-hidden px-4 first:ps-face-edge last:pe-face-edge",
2275
+ "tableCellSticky": "sticky z-10 bg-surface self-stretch group-hover/trow:bg-surface-sunken before:pointer-events-none before:absolute before:inset-0 before:-z-10 group-data-kit-selected/trow:before:bg-surface after:pointer-events-none after:absolute after:inset-0 after:-z-10 group-data-kit-selected/trow:after:bg-state-layer-selected",
1795
2276
  "tableCellStickyStriped": "group-even/trow:bg-surface-sunken",
1796
- "tableHeadCellSticky": "sticky z-10 bg-surface-band self-stretch",
1797
- "tableEdgeLeft": "group-data-kit-edge-l/tbl:border-r group-data-kit-edge-l/tbl:border-border-subtle group-data-kit-edge-l/tbl:shadow-sm",
1798
- "tableEdgeRight": "group-data-kit-edge-r/tbl:border-l group-data-kit-edge-r/tbl:border-border-subtle group-data-kit-edge-r/tbl:shadow-sm group-data-kit-edge-r/tbl:ps-2",
2277
+ "tableHeadCellSticky": "sticky z-10 bg-layer-head self-stretch",
2278
+ "tableEdgeLeft": "group-data-kit-edge-l/tbl:shadow-pin-r",
2279
+ "tableEdgeRight": "group-data-kit-edge-r/tbl:shadow-pin-l group-data-kit-edge-r/tbl:ps-2",
1799
2280
  "tableNarrowStickyEnd": "sticky right-0 z-10 flex items-center self-stretch bg-inherit before:absolute before:inset-0 before:-z-10 before:bg-surface after:absolute after:inset-0 after:-z-10 after:bg-inherit",
1800
2281
  "tableCellEllipsis": "min-w-0 overflow-hidden **:min-w-0 **:truncate",
1801
2282
  "tableDenseRow": "group-data-kit-dense/tbl:py-0.5",
@@ -1971,7 +2452,13 @@ export const KIT_GRAMMAR_RUNTIME = {
1971
2452
  "expandLabel": "展开",
1972
2453
  "collapseLabel": "收起",
1973
2454
  "badgeClass": "rounded-full bg-primary-soft px-2 py-0.5 text-xs font-medium text-primary-on-soft",
1974
- "toggleWrapClass": "inline-flex items-center gap-2"
2455
+ "toggleWrapClass": "inline-flex items-center gap-2",
2456
+ "op": {
2457
+ "key": "filterOp",
2458
+ "values": [
2459
+ "eq"
2460
+ ]
2461
+ }
1975
2462
  },
1976
2463
  "groupsAs": {
1977
2464
  "values": [
@@ -2546,7 +3033,8 @@ export const KIT_GRAMMAR_RUNTIME = {
2546
3033
  "lock",
2547
3034
  "moon",
2548
3035
  "grid",
2549
- "star"
3036
+ "star",
3037
+ "chart"
2550
3038
  ],
2551
3039
  "allowedGlyphFiles": [
2552
3040
  "src/base/kbd.ts",
@@ -2554,6 +3042,457 @@ export const KIT_GRAMMAR_RUNTIME = {
2554
3042
  ],
2555
3043
  "banned": "×✕✓✔▾▸▴▼▲›‹«»☰⋯⋮↗⌃⌄☑☐▣↑↓←→↕↻"
2556
3044
  },
3045
+ "look": {
3046
+ "aiLevel": "human-only",
3047
+ "limitsRef": "kit-limits#look",
3048
+ "selector": {
3049
+ "partSeparator": "::",
3050
+ "idPrefix": "#"
3051
+ },
3052
+ "nodes": {
3053
+ "product": {
3054
+ "named": false,
3055
+ "filters": [
3056
+ "kind"
3057
+ ]
3058
+ },
3059
+ "group": {
3060
+ "named": false,
3061
+ "filters": [
3062
+ "name"
3063
+ ]
3064
+ },
3065
+ "panel": {
3066
+ "named": true,
3067
+ "filters": [
3068
+ "group",
3069
+ "role"
3070
+ ]
3071
+ },
3072
+ "view": {
3073
+ "named": true,
3074
+ "filters": []
3075
+ },
3076
+ "field": {
3077
+ "named": true,
3078
+ "filters": [
3079
+ "name",
3080
+ "type",
3081
+ "role",
3082
+ "key",
3083
+ "access",
3084
+ "dict"
3085
+ ]
3086
+ },
3087
+ "collection": {
3088
+ "named": false,
3089
+ "filters": [
3090
+ "type"
3091
+ ]
3092
+ },
3093
+ "item": {
3094
+ "named": true,
3095
+ "filters": [
3096
+ "state"
3097
+ ]
3098
+ },
3099
+ "*": {
3100
+ "named": false,
3101
+ "filters": []
3102
+ }
3103
+ },
3104
+ "roles": {
3105
+ "surface": [
3106
+ "tone",
3107
+ "emphasis",
3108
+ "surface",
3109
+ "show",
3110
+ "span",
3111
+ "icon"
3112
+ ],
3113
+ "ink": [
3114
+ "tone",
3115
+ "ink",
3116
+ "overflow",
3117
+ "align",
3118
+ "show",
3119
+ "text"
3120
+ ],
3121
+ "figure": [
3122
+ "tone",
3123
+ "icon",
3124
+ "show",
3125
+ "text"
3126
+ ],
3127
+ "value": [
3128
+ "tone",
3129
+ "ink",
3130
+ "mark",
3131
+ "overflow",
3132
+ "align",
3133
+ "text"
3134
+ ],
3135
+ "mark": [
3136
+ "tone",
3137
+ "size",
3138
+ "show"
3139
+ ],
3140
+ "icon": [
3141
+ "tone",
3142
+ "icon",
3143
+ "size",
3144
+ "show"
3145
+ ],
3146
+ "fill": [
3147
+ "tone",
3148
+ "show"
3149
+ ],
3150
+ "action": [
3151
+ "emphasis",
3152
+ "size"
3153
+ ],
3154
+ "collection": [
3155
+ "striped",
3156
+ "bordered",
3157
+ "rowHeight",
3158
+ "columns"
3159
+ ],
3160
+ "row": [
3161
+ "tone",
3162
+ "ink"
3163
+ ],
3164
+ "cell": [
3165
+ "align",
3166
+ "width",
3167
+ "overflow",
3168
+ "priority"
3169
+ ],
3170
+ "strip": [
3171
+ "emphasis",
3172
+ "columns",
3173
+ "tone"
3174
+ ],
3175
+ "control": [
3176
+ "size",
3177
+ "width",
3178
+ "variant"
3179
+ ],
3180
+ "page": [
3181
+ "width"
3182
+ ]
3183
+ },
3184
+ "toneGroups": {
3185
+ "data": [
3186
+ "value",
3187
+ "mark",
3188
+ "figure",
3189
+ "fill",
3190
+ "row"
3191
+ ],
3192
+ "decorative": [
3193
+ "surface",
3194
+ "icon",
3195
+ "strip"
3196
+ ],
3197
+ "none": [
3198
+ "ink"
3199
+ ],
3200
+ "decorativeTones": [
3201
+ "neutral",
3202
+ "primary",
3203
+ "c1",
3204
+ "c2",
3205
+ "c3",
3206
+ "c4",
3207
+ "c5",
3208
+ "c6",
3209
+ "c7",
3210
+ "c8"
3211
+ ],
3212
+ "categoricalAs": {
3213
+ "value": "mark"
3214
+ }
3215
+ },
3216
+ "properties": {
3217
+ "show": {
3218
+ "stage": "3",
3219
+ "values": [
3220
+ true,
3221
+ false
3222
+ ],
3223
+ "bindable": false,
3224
+ "via": "component"
3225
+ },
3226
+ "size": {
3227
+ "stage": "3",
3228
+ "values": [
3229
+ "xs",
3230
+ "sm",
3231
+ "md"
3232
+ ],
3233
+ "bindable": false,
3234
+ "via": "recipe",
3235
+ "b2": true
3236
+ },
3237
+ "align": {
3238
+ "stage": "3",
3239
+ "values": [
3240
+ "start",
3241
+ "center",
3242
+ "end"
3243
+ ],
3244
+ "bindable": false,
3245
+ "via": "layout",
3246
+ "input": "fieldRef.align"
3247
+ },
3248
+ "span": {
3249
+ "stage": "3",
3250
+ "values": [
3251
+ "full",
3252
+ "two-thirds",
3253
+ "half",
3254
+ "third",
3255
+ "quarter"
3256
+ ],
3257
+ "bindable": false,
3258
+ "via": "layout",
3259
+ "input": "panel.span"
3260
+ },
3261
+ "width": {
3262
+ "stage": "3",
3263
+ "values": [
3264
+ "narrow",
3265
+ "medium",
3266
+ "wide",
3267
+ "xwide",
3268
+ "full",
3269
+ "short",
3270
+ "standard"
3271
+ ],
3272
+ "byRole": {
3273
+ "page": [
3274
+ "narrow",
3275
+ "medium",
3276
+ "wide",
3277
+ "xwide",
3278
+ "full"
3279
+ ],
3280
+ "control": [
3281
+ "short",
3282
+ "full"
3283
+ ],
3284
+ "cell": [
3285
+ "narrow",
3286
+ "standard",
3287
+ "wide"
3288
+ ]
3289
+ },
3290
+ "bindable": false,
3291
+ "via": "layout",
3292
+ "b2": true
3293
+ },
3294
+ "columns": {
3295
+ "stage": "3",
3296
+ "values": "limits.columns",
3297
+ "bindable": false,
3298
+ "via": "layout",
3299
+ "b2": true
3300
+ },
3301
+ "priority": {
3302
+ "stage": "3",
3303
+ "values": [
3304
+ "primary",
3305
+ "normal",
3306
+ "low"
3307
+ ],
3308
+ "bindable": false,
3309
+ "via": "layout",
3310
+ "b2": true
3311
+ },
3312
+ "rowHeight": {
3313
+ "stage": "3",
3314
+ "values": [
3315
+ "dense",
3316
+ "standard",
3317
+ "roomy"
3318
+ ],
3319
+ "bindable": false,
3320
+ "via": "layout",
3321
+ "b2": true
3322
+ },
3323
+ "striped": {
3324
+ "stage": "3",
3325
+ "values": [
3326
+ true,
3327
+ false
3328
+ ],
3329
+ "bindable": false,
3330
+ "via": "layout",
3331
+ "input": "collection.striped"
3332
+ },
3333
+ "bordered": {
3334
+ "stage": "3",
3335
+ "values": [
3336
+ true,
3337
+ false
3338
+ ],
3339
+ "bindable": false,
3340
+ "via": "layout",
3341
+ "input": "collection.bordered"
3342
+ },
3343
+ "mark": {
3344
+ "stage": "4",
3345
+ "values": [
3346
+ "text",
3347
+ "tag",
3348
+ "status",
3349
+ "code",
3350
+ "level",
3351
+ "flag"
3352
+ ],
3353
+ "bindable": false,
3354
+ "via": "recipe"
3355
+ },
3356
+ "icon": {
3357
+ "stage": "4",
3358
+ "values": "icons.names",
3359
+ "bindable": false,
3360
+ "via": "recipe"
3361
+ },
3362
+ "variant": {
3363
+ "stage": "4",
3364
+ "values": [
3365
+ "field",
3366
+ "quiet"
3367
+ ],
3368
+ "bindable": false,
3369
+ "via": "recipe",
3370
+ "b2": true
3371
+ },
3372
+ "tone": {
3373
+ "stage": "5",
3374
+ "values": "toneNames",
3375
+ "bindable": true,
3376
+ "via": "carrier"
3377
+ },
3378
+ "ink": {
3379
+ "stage": "5",
3380
+ "values": [
3381
+ "default",
3382
+ "muted",
3383
+ "subtle",
3384
+ "strong"
3385
+ ],
3386
+ "deprecatedValues": {
3387
+ "strong": {
3388
+ "ink": "default",
3389
+ "text": "strong"
3390
+ }
3391
+ },
3392
+ "bindable": false,
3393
+ "via": "recipe"
3394
+ },
3395
+ "emphasis": {
3396
+ "stage": "5",
3397
+ "values": [
3398
+ "primary",
3399
+ "secondary",
3400
+ "tertiary",
3401
+ "quiet"
3402
+ ],
3403
+ "bindable": false,
3404
+ "via": "carrier",
3405
+ "b2": true
3406
+ },
3407
+ "overflow": {
3408
+ "stage": "6",
3409
+ "values": [
3410
+ "wrap",
3411
+ "truncate",
3412
+ "clamp2",
3413
+ "middle"
3414
+ ],
3415
+ "unwiredValues": [
3416
+ "middle"
3417
+ ],
3418
+ "bindable": false,
3419
+ "via": "recipe"
3420
+ },
3421
+ "text": {
3422
+ "stage": "6",
3423
+ "values": [
3424
+ "normal",
3425
+ "strong",
3426
+ "small"
3427
+ ],
3428
+ "bindable": false,
3429
+ "via": "recipe"
3430
+ },
3431
+ "surface": {
3432
+ "stage": "removed",
3433
+ "values": [
3434
+ "card",
3435
+ "flush",
3436
+ "plain"
3437
+ ],
3438
+ "bindable": false,
3439
+ "via": "recipe",
3440
+ "b2": true
3441
+ }
3442
+ },
3443
+ "bindPrefixes": {
3444
+ "row.": "collection",
3445
+ "item.": "item",
3446
+ "view.": "any"
3447
+ },
3448
+ "carrier": {
3449
+ "attr": "data-kit-tone",
3450
+ "roleTokens": {
3451
+ "ink": "--kit-tone-ink",
3452
+ "soft": "--kit-tone-soft",
3453
+ "mark": "--kit-tone-mark"
3454
+ },
3455
+ "colorNames": {
3456
+ "tone-ink": "--kit-tone-ink",
3457
+ "tone-soft": "--kit-tone-soft",
3458
+ "tone-mark": "--kit-tone-mark"
3459
+ }
3460
+ }
3461
+ },
3462
+ "toneNames": {
3463
+ "semantic": [
3464
+ "neutral",
3465
+ "primary",
3466
+ "info",
3467
+ "success",
3468
+ "warning",
3469
+ "danger"
3470
+ ],
3471
+ "categorical": [
3472
+ "c1",
3473
+ "c2",
3474
+ "c3",
3475
+ "c4",
3476
+ "c5",
3477
+ "c6",
3478
+ "c7",
3479
+ "c8"
3480
+ ],
3481
+ "identity": [
3482
+ "identity"
3483
+ ],
3484
+ "aliases": {
3485
+ "muted": "neutral",
3486
+ "unknown": "neutral",
3487
+ "error": "danger"
3488
+ }
3489
+ },
3490
+ "fieldRole": {
3491
+ "statusRoles": [
3492
+ "status",
3493
+ "severity"
3494
+ ]
3495
+ },
2557
3496
  "dropdown": {
2558
3497
  "limitsRef": "kit-limits#dropdown",
2559
3498
  "panelGapClass": "mt-1.5",
@@ -2641,7 +3580,10 @@ export const KIT_GRAMMAR_RUNTIME = {
2641
3580
  "primaryKey",
2642
3581
  "emphasis",
2643
3582
  "surface",
2644
- "highlight"
3583
+ "highlight",
3584
+ "noun",
3585
+ "verb",
3586
+ "look"
2645
3587
  ],
2646
3588
  "recordRoleExtraKeys": [
2647
3589
  "subsLayout"
@@ -2706,13 +3648,17 @@ export const KIT_GRAMMAR_RUNTIME = {
2706
3648
  "type": "boolean",
2707
3649
  "description": "区块或字段高亮主视觉开关(布尔值,开启后以主色或高亮底色突出显示)"
2708
3650
  },
3651
+ "look": {
3652
+ "type": "object",
3653
+ "description": "就地界面规则(look L3,KT-LK):只写本节点自己的部件,如 { \"::icon\": { icon: users, tone: c3 } };不能写选择器(KIT-LOOK-002);属性与取值闭集见 look.properties"
3654
+ },
2709
3655
  "subsLayout": {
2710
3656
  "enumRef": "subsLayout",
2711
3657
  "description": "RecordDetail 从属对象布局方式(stack 垂直堆叠 / tabs 页签切换)"
2712
3658
  },
2713
3659
  "kind": {
2714
3660
  "enumRef": "overlayKind",
2715
- "description": "浮层形态(dialog 居中对话框 / drawer 侧边抽屉 / expand 行下展开的子表,仅 StandardCrud 支持,其它业务组件写了报 KIT-BIZ-003)"
3661
+ "description": "浮层形态(dialog 居中对话框 / drawer 侧边抽屉 / expand 行下展开的子表,仅 StandardCrud 支持,其它业务组件写了报 KIT-BIZ-003)。可不写:带提交(表单 / 写入 / 具名动作或 saved 事件)的浮层推出窗口,再由容器公式(KT-P-window)定对话框或同页切换的整页表单视图;只读的推出抽屉。dialog 只给确认与小表单——编辑表单按公式为整页时写了 dialog 报 KIT-IA-009(告警,按整页渲染)。新建 / 编辑主表单的容器同样由公式推出,页面没有写容器的键;编辑永不分步,公式判为分步的新建本批渲染为分节的整页表单"
2716
3662
  },
2717
3663
  "width": {
2718
3664
  "enumRef": "overlayWidth",
@@ -2806,10 +3752,11 @@ export const KIT_AI_WRITER: KitAiWriter = {
2806
3752
  "query": "human-only",
2807
3753
  "locale": "ai",
2808
3754
  "dir": "human-only",
2809
- "theme": "ai",
3755
+ "theme": "human-only",
2810
3756
  "envelope": "human-only",
2811
3757
  "inherit_layout": "human-only",
2812
- "view": "human-only"
3758
+ "view": "human-only",
3759
+ "look": "human-only"
2813
3760
  },
2814
3761
  "frame": {
2815
3762
  "kind": "ai",
@@ -2825,9 +3772,10 @@ export const KIT_AI_WRITER: KitAiWriter = {
2825
3772
  "class": "human-only",
2826
3773
  "areaClass": "human-only",
2827
3774
  "config": "human-only",
2828
- "theme": "ai",
3775
+ "theme": "human-only",
2829
3776
  "emphasis": "ai",
2830
- "surface": "ai"
3777
+ "surface": "ai",
3778
+ "list_layout": "ai"
2831
3779
  },
2832
3780
  "schema": {
2833
3781
  "name": "ai",
@@ -2845,7 +3793,12 @@ export const KIT_AI_WRITER: KitAiWriter = {
2845
3793
  "access": "ai",
2846
3794
  "readonly": "human-only",
2847
3795
  "emphasis": "ai",
2848
- "highlight": "ai"
3796
+ "highlight": "ai",
3797
+ "role": "ai",
3798
+ "relation": "ai",
3799
+ "display": "human-only",
3800
+ "to": "human-only",
3801
+ "filterOp": "human-only"
2849
3802
  },
2850
3803
  "behavior": {
2851
3804
  "from": "ai",
@@ -2903,6 +3856,7 @@ export const KIT_AI_WRITER: KitAiWriter = {
2903
3856
  "notify": "human-only",
2904
3857
  "hideEmpty": "human-only",
2905
3858
  "emptyText": "human-only",
3859
+ "bordered": "human-only",
2906
3860
  "groups": "human-only",
2907
3861
  "collapsible": "human-only",
2908
3862
  "defaultOpen": "human-only",
@@ -2944,7 +3898,9 @@ export const KIT_AI_WRITER: KitAiWriter = {
2944
3898
  "fixed": "human-only",
2945
3899
  "align": "human-only",
2946
3900
  "ellipsis": "human-only",
3901
+ "mergeSame": "human-only",
2947
3902
  "min": "human-only",
3903
+ "keep": "human-only",
2948
3904
  "editable": "human-only",
2949
3905
  "columnFilter": "human-only",
2950
3906
  "resizable": "human-only",
@@ -2956,24 +3912,30 @@ export const KIT_AI_WRITER: KitAiWriter = {
2956
3912
  "columnOptions": "human-only",
2957
3913
  "suggestions": "human-only",
2958
3914
  "emphasis": "ai",
2959
- "highlight": "ai"
3915
+ "highlight": "ai",
3916
+ "look": "human-only"
2960
3917
  },
2961
3918
  "action": {
2962
3919
  "id": "ai",
2963
3920
  "name": "ai",
3921
+ "icon": "human-only",
3922
+ "iconOnly": "human-only",
2964
3923
  "on": "ai",
2965
3924
  "submit": "human-only",
2966
3925
  "builtin": "ai",
2967
3926
  "targetOverlay": "human-only",
2968
3927
  "confirm": "compiler",
2969
3928
  "tone": "ai",
3929
+ "function": "human-only",
2970
3930
  "permission": "human-only",
2971
3931
  "more": "human-only",
2972
3932
  "request": "human-only",
2973
3933
  "download": "human-only",
2974
3934
  "disabled": "human-only",
2975
3935
  "disabledReason": "human-only",
2976
- "hidden": "human-only"
3936
+ "hidden": "human-only",
3937
+ "undo": "human-only",
3938
+ "cascade": "ai"
2977
3939
  },
2978
3940
  "frameKinds": [
2979
3941
  "single-frame",
@@ -3138,7 +4100,7 @@ export interface KitAiDisplayMap {
3138
4100
 
3139
4101
  export const KIT_AI_DISPLAY_MAP: KitAiDisplayMap = {
3140
4102
  "key": "display",
3141
- "level": "ai",
4103
+ "level": "human-only",
3142
4104
  "slots": [
3143
4105
  "list",
3144
4106
  "summary"