soma-kit 0.1.10 → 0.1.12

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 (302) hide show
  1. package/README.md +103 -110
  2. package/bin/soma-kit.mjs +1 -1
  3. package/bin/soma.mjs +22 -0
  4. package/package.json +13 -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 +776 -38
  8. package/spec/generated/kit-page.schema.json +1613 -224
  9. package/spec/kit-grammar.json +770 -529
  10. package/spec/kit-grammar.schema.json +1962 -392
  11. package/src/app/app-config.ts +371 -347
  12. package/src/app/component-gate.ts +12 -15
  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 +174 -31
  16. package/src/app/define-kit-view.ts +100 -0
  17. package/src/app/envelope.ts +1 -161
  18. package/src/app/index.ts +13 -2
  19. package/src/app/kit-view-context.ts +290 -0
  20. package/src/app/notify-renderer.ts +1 -115
  21. package/src/app/paged-list-adapter.ts +1 -240
  22. package/src/app/server-pages.ts +8 -2
  23. package/src/app/server.ts +491 -101
  24. package/src/app/submit.types.ts +1 -1
  25. package/src/app/theme-endpoint.ts +63 -0
  26. package/src/app/theme-runtime-shared.ts +1 -0
  27. package/src/app/theme-runtime.ts +663 -0
  28. package/src/base/action-busy.ts +2 -2
  29. package/src/base/action-gate.ts +4 -255
  30. package/src/base/action-slots.ts +47 -0
  31. package/src/base/alert.ts +5 -3
  32. package/src/base/avatar.ts +2 -2
  33. package/src/base/button.ts +46 -29
  34. package/src/base/cascader.ts +11 -12
  35. package/src/base/check-core.ts +1 -1
  36. package/src/base/choice.ts +28 -26
  37. package/src/base/class-candidates.ts +17 -0
  38. package/src/base/color-picker.ts +6 -6
  39. package/src/base/combobox.ts +5 -3
  40. package/src/base/command-palette.ts +9 -5
  41. package/src/base/countdown.ts +1 -1
  42. package/src/base/date-range.ts +25 -11
  43. package/src/base/date.ts +85 -17
  44. package/src/base/divider.ts +2 -2
  45. package/src/base/fab.ts +11 -4
  46. package/src/base/image.ts +1 -1
  47. package/src/base/index.ts +9 -3
  48. package/src/base/input.ts +42 -13
  49. package/src/base/kbd.ts +3 -1
  50. package/src/base/link.ts +4 -4
  51. package/src/base/listbox-core.ts +50 -30
  52. package/src/base/loading-gate.ts +133 -0
  53. package/src/base/mentions.ts +5 -5
  54. package/src/base/menu-button.ts +6 -1
  55. package/src/base/menu-core.ts +4 -0
  56. package/src/base/motion/aura.ts +2 -2
  57. package/src/base/motion/hover-3d.ts +2 -2
  58. package/src/base/motion/hover-gallery.ts +2 -2
  59. package/src/base/motion/marquee.ts +2 -2
  60. package/src/base/motion/text-rotate.ts +2 -2
  61. package/src/base/number.ts +93 -80
  62. package/src/base/otp.ts +4 -1
  63. package/src/base/permission-gate.ts +6 -0
  64. package/src/base/popover.ts +40 -8
  65. package/src/base/popup.ts +79 -14
  66. package/src/base/price-text.ts +2 -2
  67. package/src/base/progress.ts +2 -2
  68. package/src/base/qr-code.ts +4 -4
  69. package/src/base/qty-stepper.ts +9 -3
  70. package/src/base/range.ts +2 -2
  71. package/src/base/rating.ts +1 -1
  72. package/src/base/segmented.ts +4 -0
  73. package/src/base/select.ts +4 -3
  74. package/src/base/shared.ts +221 -29
  75. package/src/base/swap.ts +4 -1
  76. package/src/base/switch.ts +1 -1
  77. package/src/base/tag-input.ts +14 -10
  78. package/src/base/tag.ts +5 -1
  79. package/src/base/text.ts +39 -6
  80. package/src/base/textarea.ts +37 -11
  81. package/src/base/time-picker.ts +12 -9
  82. package/src/base/tree-select.ts +15 -8
  83. package/src/base/upload.ts +34 -5
  84. package/src/base/virtual-list.ts +107 -1
  85. package/src/biz/approval-desk/compile.ts +23 -41
  86. package/src/biz/auth-panel/compile.ts +37 -52
  87. package/src/biz/auth-panel/index.ts +1 -1
  88. package/src/biz/category-crud/compile.ts +22 -36
  89. package/src/biz/checkout-page/compile.ts +21 -5
  90. package/src/biz/compose.ts +13 -27
  91. package/src/biz/define.ts +5 -4
  92. package/src/biz/import-wizard/compile.ts +22 -26
  93. package/src/biz/import-wizard/hub.ts +126 -61
  94. package/src/biz/import-wizard/shell.ts +3 -3
  95. package/src/biz/index.ts +3 -3
  96. package/src/biz/landing-page/compile.ts +19 -3
  97. package/src/biz/link/hub.ts +49 -20
  98. package/src/biz/link/shared.ts +115 -118
  99. package/src/biz/master-sub/compile.ts +31 -44
  100. package/src/biz/multi-board/compile.ts +34 -49
  101. package/src/biz/multi-board/index.ts +18 -1
  102. package/src/biz/multi-board/shell.ts +24 -15
  103. package/src/biz/notification-center/compile.ts +21 -33
  104. package/src/biz/page-templates/domain-templates.ts +80 -13
  105. package/src/biz/page-templates/result-page/compile.ts +11 -2
  106. package/src/biz/page-templates/shared.ts +34 -36
  107. package/src/biz/record-detail/compile.ts +47 -42
  108. package/src/biz/record-detail/index.ts +11 -1
  109. package/src/biz/settings-center/compile.ts +6 -5
  110. package/src/biz/shared/action-host.ts +91 -211
  111. package/src/biz/shared/compile-helpers.ts +80 -0
  112. package/src/biz/shared/coordinator.ts +486 -83
  113. package/src/biz/shared/index.ts +8 -2
  114. package/src/biz/shared/overlay-shell.ts +80 -0
  115. package/src/biz/shared/pipes.ts +43 -30
  116. package/src/biz/shared/remove-key.ts +6 -0
  117. package/src/biz/shared/remove-wire.ts +29 -0
  118. package/src/biz/shared/runtime-hub.ts +216 -24
  119. package/src/biz/single-form/compile.ts +15 -37
  120. package/src/biz/standard-crud/compile.ts +62 -107
  121. package/src/biz/standard-crud/shell.ts +16 -66
  122. package/src/biz/step-form/compile.ts +26 -97
  123. package/src/biz/step-form/hub.ts +34 -41
  124. package/src/biz/types.ts +4 -3
  125. package/src/cli/core-imports.ts +54 -0
  126. package/src/cli/kit-cli.ts +130 -26
  127. package/src/cli/kit-init.ts +222 -0
  128. package/src/cli/service-endpoint-check.ts +425 -0
  129. package/src/cli/source-path-check.d.mts +17 -0
  130. package/src/cli/source-path-check.mjs +334 -0
  131. package/src/cli/view-writes.ts +752 -0
  132. package/src/compile/action-host-attach.ts +21 -29
  133. package/src/compile/closed-set.ts +509 -0
  134. package/src/compile/compile-page.ts +219 -72
  135. package/src/compile/component-candidates.ts +1 -1
  136. package/src/compile/hints.ts +30 -1
  137. package/src/compile/index.ts +1 -0
  138. package/src/compile/kit-error.ts +1 -0
  139. package/src/compile/locate.ts +21 -1
  140. package/src/compile/parse.ts +370 -41
  141. package/src/compile/redirect.ts +6 -2
  142. package/src/compile/styles.ts +35 -2
  143. package/src/compile/types.ts +18 -2
  144. package/src/compile/view-check.ts +151 -0
  145. package/src/data/amount-breakdown.ts +2 -2
  146. package/src/data/anchor-nav.ts +2 -2
  147. package/src/data/approval-flow.ts +2 -2
  148. package/src/data/assignment-picker.ts +40 -29
  149. package/src/data/async-result-panel.ts +62 -6
  150. package/src/data/breadcrumbs.ts +2 -2
  151. package/src/data/calendar.ts +22 -25
  152. package/src/data/carousel.ts +5 -2
  153. package/src/data/chart.ts +42 -34
  154. package/src/data/checklist.ts +2 -2
  155. package/src/data/code-view.ts +4 -2
  156. package/src/data/comment-thread.ts +5 -2
  157. package/src/data/confirm-dialog.ts +10 -0
  158. package/src/data/context-menu.ts +29 -37
  159. package/src/data/d9-util.ts +2 -18
  160. package/src/data/diff.ts +4 -2
  161. package/src/data/dock.ts +2 -2
  162. package/src/data/embed.ts +2 -1
  163. package/src/data/field-mapper.ts +31 -26
  164. package/src/data/flow-editor-contract.ts +1 -1
  165. package/src/data/flow-editor.ts +89 -100
  166. package/src/data/flow-node-options.ts +90 -0
  167. package/src/data/flow-remote-options.ts +0 -103
  168. package/src/data/footer.ts +2 -2
  169. package/src/data/form-draft-registry.ts +2 -4
  170. package/src/data/gantt.ts +14 -17
  171. package/src/data/hero.ts +2 -2
  172. package/src/data/image-viewer.ts +20 -26
  173. package/src/data/index.ts +0 -2
  174. package/src/data/item-list.ts +31 -22
  175. package/src/data/kanban.ts +43 -42
  176. package/src/data/media-grid.ts +14 -19
  177. package/src/data/menu.ts +2 -2
  178. package/src/data/mockup.ts +2 -2
  179. package/src/data/modal-dialog.ts +22 -18
  180. package/src/data/navbar.ts +7 -2
  181. package/src/data/notify-renderer.ts +235 -0
  182. package/src/data/object-form.ts +1036 -648
  183. package/src/data/pager.ts +65 -29
  184. package/src/data/permission-matrix.ts +20 -21
  185. package/src/data/permission-tree.ts +28 -26
  186. package/src/data/pricing-table.ts +9 -3
  187. package/src/data/reaction-bar.ts +77 -88
  188. package/src/data/read-rollback.ts +73 -0
  189. package/src/data/record-card.ts +3 -3
  190. package/src/data/record-picker.ts +93 -50
  191. package/src/data/redirect.ts +32 -32
  192. package/src/data/remote-options.ts +13 -6
  193. package/src/data/request-console.ts +5 -3
  194. package/src/data/resident.ts +2 -1
  195. package/src/data/result-panel.ts +4 -2
  196. package/src/data/rich-text.ts +45 -55
  197. package/src/data/row-editor.ts +285 -52
  198. package/src/data/rule-builder.ts +18 -12
  199. package/src/data/shape-util.ts +4 -0
  200. package/src/data/stat-group.ts +243 -101
  201. package/src/data/static-registry.ts +22 -11
  202. package/src/data/steps.ts +2 -2
  203. package/src/data/survey.ts +24 -29
  204. package/src/data/system-switcher.ts +2 -2
  205. package/src/data/timeline.ts +2 -2
  206. package/src/data/tour-guide.ts +22 -29
  207. package/src/data/transfer.ts +27 -23
  208. package/src/data/tree-table.ts +96 -48
  209. package/src/data/tree.ts +27 -34
  210. package/src/data/trend-line.ts +6 -24
  211. package/src/data/virtual-rows.ts +118 -76
  212. package/src/data/watermark.ts +2 -2
  213. package/src/data/wrap.ts +63 -38
  214. package/src/frames/blank-frame.ts +1 -0
  215. package/src/frames/index.ts +2 -2
  216. package/src/frames/page-bar.ts +12 -11
  217. package/src/frames/page-header.ts +14 -5
  218. package/src/frames/page-status.ts +2 -2
  219. package/src/frames/shared.ts +23 -17
  220. package/src/frames/single-frame.ts +1 -0
  221. package/src/frames/split-frame/shell.ts +5 -5
  222. package/src/frames/split-frame/wiring.ts +2 -2
  223. package/src/frames/tabs-frame/shell.ts +2 -13
  224. package/src/frames/tabs-frame/wiring.ts +4 -8
  225. package/src/frames/top-main-frame.ts +1 -0
  226. package/src/frames/types.ts +13 -2
  227. package/src/frames/workspace-frame/extras.ts +20 -4
  228. package/src/frames/workspace-frame/index.ts +1 -1
  229. package/src/frames/workspace-frame/shell.ts +1 -0
  230. package/src/frames/workspace-frame/state.ts +13 -6
  231. package/src/frames/workspace-frame/view.ts +119 -25
  232. package/src/generated/kit-grammar-runtime.ts +430 -366
  233. package/src/generated/page-origin.ts +0 -11
  234. package/src/i18n/kit-text.ts +23 -27
  235. package/src/index.ts +2 -1
  236. package/src/object-renderer/action-gate.ts +11 -147
  237. package/src/object-renderer/arrange.ts +71 -77
  238. package/src/object-renderer/collapse-wiring.ts +2 -2
  239. package/src/object-renderer/collection-expand.ts +2 -2
  240. package/src/object-renderer/collection-parts.ts +216 -100
  241. package/src/object-renderer/collection-table.ts +180 -42
  242. package/src/object-renderer/collection.ts +95 -79
  243. package/src/object-renderer/compile-data.ts +85 -100
  244. package/src/object-renderer/crud-bridge.ts +32 -0
  245. package/src/object-renderer/defaults.ts +8 -14
  246. package/src/object-renderer/display-checks.ts +3 -24
  247. package/src/object-renderer/emit-events.ts +186 -172
  248. package/src/object-renderer/emit-object.ts +15 -2
  249. package/src/object-renderer/emit-static.ts +174 -132
  250. package/src/object-renderer/field-value.ts +593 -396
  251. package/src/object-renderer/filter-reload.ts +70 -0
  252. package/src/object-renderer/form-detail.ts +112 -2
  253. package/src/object-renderer/index.ts +26 -0
  254. package/src/object-renderer/key-field.ts +12 -0
  255. package/src/object-renderer/linkage.ts +7 -270
  256. package/src/object-renderer/merge-class.ts +18 -1
  257. package/src/object-renderer/path-pick.ts +27 -0
  258. package/src/object-renderer/render-object.ts +405 -86
  259. package/src/object-renderer/request-actions.ts +230 -249
  260. package/src/object-renderer/table-actions.ts +195 -95
  261. package/src/object-renderer/table-summary.ts +2 -2
  262. package/src/object-renderer/table-tools.ts +418 -84
  263. package/src/object-renderer/types.ts +128 -122
  264. package/src/object-renderer/view-binding.ts +196 -0
  265. package/src/page-target/ai-surface.ts +37 -0
  266. package/src/page-target/compile.ts +48 -8
  267. package/src/page-target/index.ts +8 -1
  268. package/src/page-target/intent-schema.ts +154 -28
  269. package/src/page-target/target.ts +257 -50
  270. package/src/page-target/writer-policy.ts +14 -3
  271. package/src/recipes/container.ts +165 -0
  272. package/src/recipes/control.ts +219 -0
  273. package/src/recipes/index.ts +263 -0
  274. package/src/recipes/overlay.ts +182 -0
  275. package/src/recipes/state.ts +70 -0
  276. package/src/recipes/table-row.ts +51 -0
  277. package/src/recipes/typography.ts +87 -0
  278. package/src/shared/action-field-guard.ts +41 -0
  279. package/src/shared/envelope.ts +207 -0
  280. package/src/shared/escape.ts +57 -0
  281. package/src/shared/kit-error.ts +21 -0
  282. package/src/shared/paged-list-adapter.ts +240 -0
  283. package/src/shared/path-guard.ts +127 -0
  284. package/src/shared/theme-runtime-shared.ts +175 -0
  285. package/src/shared/view-info.ts +10 -0
  286. package/src/theme/index.ts +12 -0
  287. package/src/theme/kit-theme-text.ts +1 -1
  288. package/src/theme/kit-theme.css +38 -1
  289. package/src/theme/kit-theme.tpl +38 -1
  290. package/src/theme/nine-dim-structure.ts +77 -0
  291. package/src/theme/surface-layers.ts +97 -0
  292. package/src/theme/theme-tokens.ts +85 -79
  293. package/src/theme/theme-types.ts +71 -0
  294. package/src/theme/typography.ts +17 -17
  295. package/src/biz/shared/step-values.ts +0 -25
  296. package/src/biz/step-form/steps-ref.ts +0 -112
  297. package/src/data/options-bus.ts +0 -24
  298. package/src/data/prompt-dialog.ts +0 -235
  299. package/src/object-renderer/adopt-gate.ts +0 -333
  300. package/src/object-renderer/field-policy.ts +0 -89
  301. package/src/object-renderer/outcome-draft.ts +0 -61
  302. package/src/theme/nine-dim-palettes.ts +0 -1278
@@ -123,6 +123,9 @@
123
123
  "inherit_layout": {
124
124
  "description": "kit-grammar.json#pageKeys.inherit_layout"
125
125
  },
126
+ "view": {
127
+ "description": "kit-grammar.json#pageKeys.view"
128
+ },
126
129
  "layout": {
127
130
  "type": "object",
128
131
  "description": "应用级默认页面外框与导航继承配置"
@@ -191,135 +194,1542 @@
191
194
  "$ref": "#/definitions/product"
192
195
  }
193
196
  }
194
- }
197
+ }
198
+ }
199
+ ]
200
+ }
201
+ },
202
+ "config": {
203
+ "description": "kit-grammar.json#frameKeys.config"
204
+ }
205
+ },
206
+ "description": "kit-grammar.json#pageTopKeys.frame"
207
+ },
208
+ "product": {
209
+ "$ref": "#/definitions/product",
210
+ "description": "kit-grammar.json#pageTopKeys.product"
211
+ },
212
+ "locales": {
213
+ "description": "kit-grammar.json#pageTopKeys.locales"
214
+ }
215
+ },
216
+ "required": [
217
+ "page"
218
+ ],
219
+ "definitions": {
220
+ "product": {
221
+ "type": "object",
222
+ "additionalProperties": false,
223
+ "properties": {
224
+ "kind": {
225
+ "description": "业务组件闭集(真源:src/biz/*/index.ts 与 shell.ts)。roles 的 required / views / many 与 areas(可用 areaClass 覆写的区域名)以代码为准",
226
+ "anyOf": [
227
+ {
228
+ "enum": [
229
+ "StandardCrud",
230
+ "MasterSubWorkstation",
231
+ "CategoryCrud",
232
+ "MultiObjectBoard",
233
+ "SingleObjectForm",
234
+ "ApprovalDesk",
235
+ "RecordDetail",
236
+ "StepForm",
237
+ "SettingsCenter",
238
+ "CheckoutPage",
239
+ "LandingPage",
240
+ "NotificationCenter",
241
+ "AuthPanel",
242
+ "ResultPage",
243
+ "ImportWizard",
244
+ "SignInPage"
245
+ ]
246
+ },
247
+ {
248
+ "type": "string"
249
+ }
250
+ ]
251
+ },
252
+ "objects": {
253
+ "type": "object",
254
+ "description": "对象角色表:角色名 -> 对象声明(角色集合由业务组件决定,见 kit-grammar.json#bizComponents)",
255
+ "properties": {
256
+ "overlays": {
257
+ "type": "object",
258
+ "description": "附加浮层表:浮层名 -> 浮层对象声明",
259
+ "additionalProperties": {
260
+ "$ref": "#/definitions/object"
261
+ }
262
+ },
263
+ "entity": {
264
+ "$ref": "#/definitions/object",
265
+ "description": "对象角色(如 StandardCrud.objects.entity)"
266
+ },
267
+ "master": {
268
+ "$ref": "#/definitions/object",
269
+ "description": "对象角色(如 MasterSubWorkstation.objects.master)"
270
+ },
271
+ "subs": {
272
+ "type": "object",
273
+ "description": "多对象角色表(如 MasterSubWorkstation.objects.subs):子对象名 -> 对象声明",
274
+ "additionalProperties": {
275
+ "$ref": "#/definitions/object"
276
+ }
277
+ },
278
+ "aside": {
279
+ "$ref": "#/definitions/object",
280
+ "description": "对象角色(如 MasterSubWorkstation.objects.aside)"
281
+ },
282
+ "category": {
283
+ "$ref": "#/definitions/object",
284
+ "description": "对象角色(如 CategoryCrud.objects.category)"
285
+ },
286
+ "item": {
287
+ "$ref": "#/definitions/object",
288
+ "description": "对象角色(如 CategoryCrud.objects.item)"
289
+ },
290
+ "filter": {
291
+ "$ref": "#/definitions/object",
292
+ "description": "对象角色(如 MultiObjectBoard.objects.filter)"
293
+ },
294
+ "panels": {
295
+ "type": "object",
296
+ "description": "多对象角色表(如 MultiObjectBoard.objects.panels):子对象名 -> 对象声明",
297
+ "additionalProperties": {
298
+ "$ref": "#/definitions/object"
299
+ }
300
+ },
301
+ "target": {
302
+ "$ref": "#/definitions/object",
303
+ "description": "对象角色(如 SingleObjectForm.objects.target)"
304
+ },
305
+ "queue": {
306
+ "$ref": "#/definitions/object",
307
+ "description": "对象角色(如 ApprovalDesk.objects.queue)"
308
+ },
309
+ "request": {
310
+ "$ref": "#/definitions/object",
311
+ "description": "对象角色(如 ApprovalDesk.objects.request)"
312
+ },
313
+ "history": {
314
+ "$ref": "#/definitions/object",
315
+ "description": "对象角色(如 ApprovalDesk.objects.history)"
316
+ },
317
+ "record": {
318
+ "$ref": "#/definitions/object",
319
+ "description": "对象角色(如 RecordDetail.objects.record)"
320
+ },
321
+ "groups": {
322
+ "type": "object",
323
+ "description": "多对象角色表(如 RecordDetail.objects.groups):子对象名 -> 对象声明",
324
+ "additionalProperties": {
325
+ "$ref": "#/definitions/object"
326
+ }
327
+ },
328
+ "steps": {
329
+ "type": "object",
330
+ "description": "多对象角色表(如 StepForm.objects.steps):子对象名 -> 对象声明",
331
+ "additionalProperties": {
332
+ "$ref": "#/definitions/object"
333
+ }
334
+ },
335
+ "sections": {
336
+ "type": "object",
337
+ "description": "多对象角色表(如 SettingsCenter.objects.sections):子对象名 -> 对象声明",
338
+ "additionalProperties": {
339
+ "$ref": "#/definitions/object"
340
+ }
341
+ },
342
+ "form": {
343
+ "$ref": "#/definitions/object",
344
+ "description": "对象角色(如 CheckoutPage.objects.form)"
345
+ },
346
+ "items": {
347
+ "$ref": "#/definitions/object",
348
+ "description": "对象角色(如 CheckoutPage.objects.items)"
349
+ },
350
+ "amounts": {
351
+ "$ref": "#/definitions/object",
352
+ "description": "对象角色(如 CheckoutPage.objects.amounts)"
353
+ },
354
+ "hero": {
355
+ "$ref": "#/definitions/object",
356
+ "description": "对象角色(如 LandingPage.objects.hero)"
357
+ },
358
+ "footer": {
359
+ "$ref": "#/definitions/object",
360
+ "description": "对象角色(如 LandingPage.objects.footer)"
361
+ },
362
+ "notices": {
363
+ "$ref": "#/definitions/object",
364
+ "description": "对象角色(如 NotificationCenter.objects.notices)"
365
+ },
366
+ "user": {
367
+ "$ref": "#/definitions/object",
368
+ "description": "对象角色(如 AuthPanel.objects.user)"
369
+ },
370
+ "roles": {
371
+ "$ref": "#/definitions/object",
372
+ "description": "对象角色(如 AuthPanel.objects.roles)"
373
+ },
374
+ "matrix": {
375
+ "$ref": "#/definitions/object",
376
+ "description": "对象角色(如 AuthPanel.objects.matrix)"
377
+ },
378
+ "result": {
379
+ "$ref": "#/definitions/object",
380
+ "description": "对象角色(如 ResultPage.objects.result)"
381
+ },
382
+ "detail": {
383
+ "$ref": "#/definitions/object",
384
+ "description": "对象角色(如 ResultPage.objects.detail)"
385
+ },
386
+ "job": {
387
+ "$ref": "#/definitions/object",
388
+ "description": "对象角色(如 ImportWizard.objects.job)"
389
+ }
390
+ },
391
+ "additionalProperties": {
392
+ "anyOf": [
393
+ {
394
+ "$ref": "#/definitions/object"
395
+ },
396
+ {
397
+ "type": "object",
398
+ "additionalProperties": {
399
+ "$ref": "#/definitions/object"
400
+ }
401
+ }
402
+ ]
403
+ }
404
+ },
405
+ "class": {
406
+ "type": "string"
407
+ },
408
+ "areaClass": {
409
+ "type": "object",
410
+ "additionalProperties": {
411
+ "type": "string"
412
+ }
413
+ },
414
+ "config": {
415
+ "description": "kit-grammar.json#productKeys.config"
416
+ },
417
+ "theme": {
418
+ "description": "页面 / 产品块级主题 page.theme、product.theme 的写面(规格 Q 波第 1 项)。令牌值一律由 soma-foundation 求解,编译期发作用域类 soma-scope-<id> 的变量块,不写 CSSOM;page.theme 只管内容区(各产品根),不含页面框外壳。只收词条:块级主题的机器写面:AI 只许写光学意图——简写 inverse / dark / light,或只含 mode / color 的对象;mode 取昼夜光感词条里极性落在简写域内的、减去区域禁用词,color 取主色意向词条减去企业专属色号;factors(技术旋钮)、name(主题库名)、别的维度键、hex 一律拒收。词条域不在这里手抄:mode / color 的词条读 visual-factors 投影(维度作者键取 modeDimension / colorDimension…",
419
+ "anyOf": [
420
+ {
421
+ "enum": [
422
+ "inverse",
423
+ "dark",
424
+ "light"
425
+ ]
426
+ },
427
+ {
428
+ "type": "object",
429
+ "additionalProperties": false,
430
+ "minProperties": 1,
431
+ "properties": {
432
+ "mode": {
433
+ "type": "string",
434
+ "description": "mode 词条(取值域读 soma-design visual-factors,由编译器校验;KIT-THEME-001..003)"
435
+ },
436
+ "color": {
437
+ "type": "string",
438
+ "description": "color 词条(取值域读 soma-design visual-factors,由编译器校验;KIT-THEME-001..003)"
439
+ }
440
+ }
441
+ }
442
+ ]
443
+ },
444
+ "emphasis": {
445
+ "enum": [
446
+ "primary",
447
+ "normal",
448
+ "subtle"
449
+ ],
450
+ "description": "视觉强调级别(primary 强强调 / normal 常规 / subtle 弱化)"
451
+ },
452
+ "surface": {
453
+ "enum": [
454
+ "card",
455
+ "flush",
456
+ "plain"
457
+ ],
458
+ "description": "表面容器形态(card 卡片 / flush 贴边 / plain 极简无边框)"
459
+ }
460
+ },
461
+ "required": [
462
+ "kind",
463
+ "objects"
464
+ ],
465
+ "allOf": [
466
+ {
467
+ "if": {
468
+ "properties": {
469
+ "kind": {
470
+ "const": "StandardCrud"
471
+ }
472
+ },
473
+ "required": [
474
+ "kind"
475
+ ]
476
+ },
477
+ "then": {
478
+ "properties": {
479
+ "objects": {
480
+ "type": "object",
481
+ "description": "StandardCrud 的对象角色表(kit-grammar.json#bizComponents.StandardCrud.roles)",
482
+ "required": [
483
+ "entity"
484
+ ],
485
+ "properties": {
486
+ "overlays": {
487
+ "type": "object",
488
+ "description": "附加浮层表:浮层名 -> 浮层对象声明",
489
+ "additionalProperties": {
490
+ "$ref": "#/definitions/object"
491
+ }
492
+ },
493
+ "entity": {
494
+ "$ref": "#/definitions/object",
495
+ "description": "StandardCrud.objects.entity(必填角色对象;视图槽:filter / list / form)"
496
+ }
497
+ },
498
+ "additionalProperties": false
499
+ },
500
+ "areaClass": {
501
+ "type": "object",
502
+ "description": "StandardCrud 的区域样式覆写(允许区域:root / filter / list / dialog / drawer)",
503
+ "properties": {
504
+ "root": {
505
+ "type": "string",
506
+ "description": "StandardCrud 区域 root 的 Tailwind 类串"
507
+ },
508
+ "filter": {
509
+ "type": "string",
510
+ "description": "StandardCrud 区域 filter 的 Tailwind 类串"
511
+ },
512
+ "list": {
513
+ "type": "string",
514
+ "description": "StandardCrud 区域 list 的 Tailwind 类串"
515
+ },
516
+ "dialog": {
517
+ "type": "string",
518
+ "description": "StandardCrud 区域 dialog 的 Tailwind 类串"
519
+ },
520
+ "drawer": {
521
+ "type": "string",
522
+ "description": "StandardCrud 区域 drawer 的 Tailwind 类串"
523
+ }
524
+ },
525
+ "additionalProperties": false
526
+ }
527
+ }
528
+ }
529
+ },
530
+ {
531
+ "if": {
532
+ "properties": {
533
+ "kind": {
534
+ "const": "MasterSubWorkstation"
535
+ }
536
+ },
537
+ "required": [
538
+ "kind"
539
+ ]
540
+ },
541
+ "then": {
542
+ "properties": {
543
+ "objects": {
544
+ "type": "object",
545
+ "description": "MasterSubWorkstation 的对象角色表(kit-grammar.json#bizComponents.MasterSubWorkstation.roles)",
546
+ "required": [
547
+ "master",
548
+ "subs"
549
+ ],
550
+ "properties": {
551
+ "overlays": {
552
+ "type": "object",
553
+ "description": "附加浮层表:浮层名 -> 浮层对象声明",
554
+ "additionalProperties": {
555
+ "$ref": "#/definitions/object"
556
+ }
557
+ },
558
+ "master": {
559
+ "$ref": "#/definitions/object",
560
+ "description": "MasterSubWorkstation.objects.master(必填角色对象;视图槽:filter / list / summary / form)"
561
+ },
562
+ "subs": {
563
+ "type": "object",
564
+ "description": "MasterSubWorkstation.objects.subs(必填多对象角色表:子对象名 -> 对象声明;视图槽:list / summary)",
565
+ "additionalProperties": {
566
+ "$ref": "#/definitions/object"
567
+ }
568
+ },
569
+ "aside": {
570
+ "$ref": "#/definitions/object",
571
+ "description": "MasterSubWorkstation.objects.aside(可选角色对象;视图槽:list / summary)"
572
+ }
573
+ },
574
+ "additionalProperties": false
575
+ },
576
+ "areaClass": {
577
+ "type": "object",
578
+ "description": "MasterSubWorkstation 的区域样式覆写(允许区域:root / masterList / masterSummary / subWorkspace / subBlock / aside / dialog)",
579
+ "properties": {
580
+ "root": {
581
+ "type": "string",
582
+ "description": "MasterSubWorkstation 区域 root 的 Tailwind 类串"
583
+ },
584
+ "masterList": {
585
+ "type": "string",
586
+ "description": "MasterSubWorkstation 区域 masterList 的 Tailwind 类串"
587
+ },
588
+ "masterSummary": {
589
+ "type": "string",
590
+ "description": "MasterSubWorkstation 区域 masterSummary 的 Tailwind 类串"
591
+ },
592
+ "subWorkspace": {
593
+ "type": "string",
594
+ "description": "MasterSubWorkstation 区域 subWorkspace 的 Tailwind 类串"
595
+ },
596
+ "subBlock": {
597
+ "type": "string",
598
+ "description": "MasterSubWorkstation 区域 subBlock 的 Tailwind 类串"
599
+ },
600
+ "aside": {
601
+ "type": "string",
602
+ "description": "MasterSubWorkstation 区域 aside 的 Tailwind 类串"
603
+ },
604
+ "dialog": {
605
+ "type": "string",
606
+ "description": "MasterSubWorkstation 区域 dialog 的 Tailwind 类串"
607
+ }
608
+ },
609
+ "additionalProperties": false
610
+ }
611
+ }
612
+ }
613
+ },
614
+ {
615
+ "if": {
616
+ "properties": {
617
+ "kind": {
618
+ "const": "CategoryCrud"
619
+ }
620
+ },
621
+ "required": [
622
+ "kind"
623
+ ]
624
+ },
625
+ "then": {
626
+ "properties": {
627
+ "objects": {
628
+ "type": "object",
629
+ "description": "CategoryCrud 的对象角色表(kit-grammar.json#bizComponents.CategoryCrud.roles)",
630
+ "required": [
631
+ "category",
632
+ "item"
633
+ ],
634
+ "properties": {
635
+ "overlays": {
636
+ "type": "object",
637
+ "description": "附加浮层表:浮层名 -> 浮层对象声明",
638
+ "additionalProperties": {
639
+ "$ref": "#/definitions/object"
640
+ }
641
+ },
642
+ "category": {
643
+ "$ref": "#/definitions/object",
644
+ "description": "CategoryCrud.objects.category(必填角色对象;视图槽:filter / list / summary)"
645
+ },
646
+ "item": {
647
+ "$ref": "#/definitions/object",
648
+ "description": "CategoryCrud.objects.item(必填角色对象;视图槽:filter / list / summary / form)"
649
+ }
650
+ },
651
+ "additionalProperties": false
652
+ },
653
+ "areaClass": {
654
+ "type": "object",
655
+ "description": "CategoryCrud 的区域样式覆写(允许区域:root / categorySidebar / itemWorkspace / dialog)",
656
+ "properties": {
657
+ "root": {
658
+ "type": "string",
659
+ "description": "CategoryCrud 区域 root 的 Tailwind 类串"
660
+ },
661
+ "categorySidebar": {
662
+ "type": "string",
663
+ "description": "CategoryCrud 区域 categorySidebar 的 Tailwind 类串"
664
+ },
665
+ "itemWorkspace": {
666
+ "type": "string",
667
+ "description": "CategoryCrud 区域 itemWorkspace 的 Tailwind 类串"
668
+ },
669
+ "dialog": {
670
+ "type": "string",
671
+ "description": "CategoryCrud 区域 dialog 的 Tailwind 类串"
672
+ }
673
+ },
674
+ "additionalProperties": false
675
+ }
676
+ }
677
+ }
678
+ },
679
+ {
680
+ "if": {
681
+ "properties": {
682
+ "kind": {
683
+ "const": "MultiObjectBoard"
684
+ }
685
+ },
686
+ "required": [
687
+ "kind"
688
+ ]
689
+ },
690
+ "then": {
691
+ "properties": {
692
+ "objects": {
693
+ "type": "object",
694
+ "description": "MultiObjectBoard 的对象角色表(kit-grammar.json#bizComponents.MultiObjectBoard.roles)",
695
+ "required": [
696
+ "panels"
697
+ ],
698
+ "properties": {
699
+ "overlays": {
700
+ "type": "object",
701
+ "description": "附加浮层表:浮层名 -> 浮层对象声明",
702
+ "additionalProperties": {
703
+ "$ref": "#/definitions/object"
704
+ }
705
+ },
706
+ "filter": {
707
+ "$ref": "#/definitions/object",
708
+ "description": "MultiObjectBoard.objects.filter(可选角色对象;视图槽:filter)"
709
+ },
710
+ "panels": {
711
+ "type": "object",
712
+ "description": "MultiObjectBoard.objects.panels(必填多对象角色表:子对象名 -> 对象声明;视图槽:list / summary)",
713
+ "additionalProperties": {
714
+ "$ref": "#/definitions/object"
715
+ }
716
+ }
717
+ },
718
+ "additionalProperties": false
719
+ },
720
+ "areaClass": {
721
+ "type": "object",
722
+ "description": "MultiObjectBoard 的区域样式覆写(允许区域:root / filter / panels / panel)",
723
+ "properties": {
724
+ "root": {
725
+ "type": "string",
726
+ "description": "MultiObjectBoard 区域 root 的 Tailwind 类串"
727
+ },
728
+ "filter": {
729
+ "type": "string",
730
+ "description": "MultiObjectBoard 区域 filter 的 Tailwind 类串"
731
+ },
732
+ "panels": {
733
+ "type": "string",
734
+ "description": "MultiObjectBoard 区域 panels 的 Tailwind 类串"
735
+ },
736
+ "panel": {
737
+ "type": "string",
738
+ "description": "MultiObjectBoard 区域 panel 的 Tailwind 类串"
739
+ }
740
+ },
741
+ "additionalProperties": false
742
+ }
743
+ }
744
+ }
745
+ },
746
+ {
747
+ "if": {
748
+ "properties": {
749
+ "kind": {
750
+ "const": "SingleObjectForm"
751
+ }
752
+ },
753
+ "required": [
754
+ "kind"
755
+ ]
756
+ },
757
+ "then": {
758
+ "properties": {
759
+ "objects": {
760
+ "type": "object",
761
+ "description": "SingleObjectForm 的对象角色表(kit-grammar.json#bizComponents.SingleObjectForm.roles)",
762
+ "required": [
763
+ "target"
764
+ ],
765
+ "properties": {
766
+ "overlays": {
767
+ "type": "object",
768
+ "description": "附加浮层表:浮层名 -> 浮层对象声明",
769
+ "additionalProperties": {
770
+ "$ref": "#/definitions/object"
771
+ }
772
+ },
773
+ "target": {
774
+ "$ref": "#/definitions/object",
775
+ "description": "SingleObjectForm.objects.target(必填角色对象;视图槽:form)"
776
+ }
777
+ },
778
+ "additionalProperties": false
779
+ },
780
+ "areaClass": {
781
+ "type": "object",
782
+ "description": "SingleObjectForm 的区域样式覆写(允许区域:root / card / body / footer)",
783
+ "properties": {
784
+ "root": {
785
+ "type": "string",
786
+ "description": "SingleObjectForm 区域 root 的 Tailwind 类串"
787
+ },
788
+ "card": {
789
+ "type": "string",
790
+ "description": "SingleObjectForm 区域 card 的 Tailwind 类串"
791
+ },
792
+ "body": {
793
+ "type": "string",
794
+ "description": "SingleObjectForm 区域 body 的 Tailwind 类串"
795
+ },
796
+ "footer": {
797
+ "type": "string",
798
+ "description": "SingleObjectForm 区域 footer 的 Tailwind 类串"
799
+ }
800
+ },
801
+ "additionalProperties": false
802
+ }
803
+ }
804
+ }
805
+ },
806
+ {
807
+ "if": {
808
+ "properties": {
809
+ "kind": {
810
+ "const": "ApprovalDesk"
811
+ }
812
+ },
813
+ "required": [
814
+ "kind"
815
+ ]
816
+ },
817
+ "then": {
818
+ "properties": {
819
+ "objects": {
820
+ "type": "object",
821
+ "description": "ApprovalDesk 的对象角色表(kit-grammar.json#bizComponents.ApprovalDesk.roles)",
822
+ "required": [
823
+ "queue",
824
+ "request"
825
+ ],
826
+ "properties": {
827
+ "overlays": {
828
+ "type": "object",
829
+ "description": "附加浮层表:浮层名 -> 浮层对象声明",
830
+ "additionalProperties": {
831
+ "$ref": "#/definitions/object"
832
+ }
833
+ },
834
+ "queue": {
835
+ "$ref": "#/definitions/object",
836
+ "description": "ApprovalDesk.objects.queue(必填角色对象;视图槽:list)"
837
+ },
838
+ "request": {
839
+ "$ref": "#/definitions/object",
840
+ "description": "ApprovalDesk.objects.request(必填角色对象;视图槽:summary)"
841
+ },
842
+ "history": {
843
+ "$ref": "#/definitions/object",
844
+ "description": "ApprovalDesk.objects.history(可选角色对象;视图槽:list / summary)"
845
+ }
846
+ },
847
+ "additionalProperties": false
848
+ },
849
+ "areaClass": {
850
+ "type": "object",
851
+ "description": "ApprovalDesk 的区域样式覆写(允许区域:root / queue / request / history)",
852
+ "properties": {
853
+ "root": {
854
+ "type": "string",
855
+ "description": "ApprovalDesk 区域 root 的 Tailwind 类串"
856
+ },
857
+ "queue": {
858
+ "type": "string",
859
+ "description": "ApprovalDesk 区域 queue 的 Tailwind 类串"
860
+ },
861
+ "request": {
862
+ "type": "string",
863
+ "description": "ApprovalDesk 区域 request 的 Tailwind 类串"
864
+ },
865
+ "history": {
866
+ "type": "string",
867
+ "description": "ApprovalDesk 区域 history 的 Tailwind 类串"
868
+ }
869
+ },
870
+ "additionalProperties": false
871
+ }
872
+ }
873
+ }
874
+ },
875
+ {
876
+ "if": {
877
+ "properties": {
878
+ "kind": {
879
+ "const": "RecordDetail"
880
+ }
881
+ },
882
+ "required": [
883
+ "kind"
884
+ ]
885
+ },
886
+ "then": {
887
+ "properties": {
888
+ "objects": {
889
+ "type": "object",
890
+ "description": "RecordDetail 的对象角色表(kit-grammar.json#bizComponents.RecordDetail.roles)",
891
+ "required": [
892
+ "record"
893
+ ],
894
+ "properties": {
895
+ "overlays": {
896
+ "type": "object",
897
+ "description": "附加浮层表:浮层名 -> 浮层对象声明",
898
+ "additionalProperties": {
899
+ "$ref": "#/definitions/object"
900
+ }
901
+ },
902
+ "record": {
903
+ "$ref": "#/definitions/object",
904
+ "description": "RecordDetail.objects.record(必填角色对象;视图槽:summary / form)"
905
+ },
906
+ "groups": {
907
+ "type": "object",
908
+ "description": "RecordDetail.objects.groups(可选多对象角色表:子对象名 -> 对象声明;视图槽:summary)",
909
+ "additionalProperties": {
910
+ "$ref": "#/definitions/object"
911
+ }
912
+ },
913
+ "subs": {
914
+ "type": "object",
915
+ "description": "RecordDetail.objects.subs(可选多对象角色表:子对象名 -> 对象声明;视图槽:list / summary)",
916
+ "additionalProperties": {
917
+ "$ref": "#/definitions/object"
918
+ }
919
+ }
920
+ },
921
+ "additionalProperties": false
922
+ },
923
+ "areaClass": {
924
+ "type": "object",
925
+ "description": "RecordDetail 的区域样式覆写(允许区域:root / header / actions / groups / group / sub / dialog)",
926
+ "properties": {
927
+ "root": {
928
+ "type": "string",
929
+ "description": "RecordDetail 区域 root 的 Tailwind 类串"
930
+ },
931
+ "header": {
932
+ "type": "string",
933
+ "description": "RecordDetail 区域 header 的 Tailwind 类串"
934
+ },
935
+ "actions": {
936
+ "type": "string",
937
+ "description": "RecordDetail 区域 actions 的 Tailwind 类串"
938
+ },
939
+ "groups": {
940
+ "type": "string",
941
+ "description": "RecordDetail 区域 groups 的 Tailwind 类串"
942
+ },
943
+ "group": {
944
+ "type": "string",
945
+ "description": "RecordDetail 区域 group 的 Tailwind 类串"
946
+ },
947
+ "sub": {
948
+ "type": "string",
949
+ "description": "RecordDetail 区域 sub 的 Tailwind 类串"
950
+ },
951
+ "dialog": {
952
+ "type": "string",
953
+ "description": "RecordDetail 区域 dialog 的 Tailwind 类串"
954
+ }
955
+ },
956
+ "additionalProperties": false
957
+ }
958
+ }
959
+ }
960
+ },
961
+ {
962
+ "if": {
963
+ "properties": {
964
+ "kind": {
965
+ "const": "StepForm"
966
+ }
967
+ },
968
+ "required": [
969
+ "kind"
970
+ ]
971
+ },
972
+ "then": {
973
+ "properties": {
974
+ "objects": {
975
+ "type": "object",
976
+ "description": "StepForm 的对象角色表(kit-grammar.json#bizComponents.StepForm.roles)",
977
+ "required": [
978
+ "steps"
979
+ ],
980
+ "properties": {
981
+ "overlays": {
982
+ "type": "object",
983
+ "description": "附加浮层表:浮层名 -> 浮层对象声明",
984
+ "additionalProperties": {
985
+ "$ref": "#/definitions/object"
986
+ }
987
+ },
988
+ "steps": {
989
+ "type": "object",
990
+ "description": "StepForm.objects.steps(必填多对象角色表:子对象名 -> 对象声明;视图槽:form)",
991
+ "additionalProperties": {
992
+ "$ref": "#/definitions/object"
993
+ }
994
+ },
995
+ "target": {
996
+ "$ref": "#/definitions/object",
997
+ "description": "StepForm.objects.target(可选角色对象;视图槽:form)"
998
+ }
999
+ },
1000
+ "additionalProperties": false
1001
+ },
1002
+ "areaClass": {
1003
+ "type": "object",
1004
+ "description": "StepForm 的区域样式覆写(允许区域:root / card / steps / panel / done)",
1005
+ "properties": {
1006
+ "root": {
1007
+ "type": "string",
1008
+ "description": "StepForm 区域 root 的 Tailwind 类串"
1009
+ },
1010
+ "card": {
1011
+ "type": "string",
1012
+ "description": "StepForm 区域 card 的 Tailwind 类串"
1013
+ },
1014
+ "steps": {
1015
+ "type": "string",
1016
+ "description": "StepForm 区域 steps 的 Tailwind 类串"
1017
+ },
1018
+ "panel": {
1019
+ "type": "string",
1020
+ "description": "StepForm 区域 panel 的 Tailwind 类串"
1021
+ },
1022
+ "done": {
1023
+ "type": "string",
1024
+ "description": "StepForm 区域 done 的 Tailwind 类串"
1025
+ }
1026
+ },
1027
+ "additionalProperties": false
1028
+ }
1029
+ }
1030
+ }
1031
+ },
1032
+ {
1033
+ "if": {
1034
+ "properties": {
1035
+ "kind": {
1036
+ "const": "SettingsCenter"
1037
+ }
1038
+ },
1039
+ "required": [
1040
+ "kind"
1041
+ ]
1042
+ },
1043
+ "then": {
1044
+ "properties": {
1045
+ "objects": {
1046
+ "type": "object",
1047
+ "description": "SettingsCenter 的对象角色表(kit-grammar.json#bizComponents.SettingsCenter.roles)",
1048
+ "required": [
1049
+ "sections"
1050
+ ],
1051
+ "properties": {
1052
+ "overlays": {
1053
+ "type": "object",
1054
+ "description": "附加浮层表:浮层名 -> 浮层对象声明",
1055
+ "additionalProperties": {
1056
+ "$ref": "#/definitions/object"
1057
+ }
1058
+ },
1059
+ "sections": {
1060
+ "type": "object",
1061
+ "description": "SettingsCenter.objects.sections(必填多对象角色表:子对象名 -> 对象声明;视图槽:form)",
1062
+ "additionalProperties": {
1063
+ "$ref": "#/definitions/object"
1064
+ }
1065
+ }
1066
+ },
1067
+ "additionalProperties": false
1068
+ },
1069
+ "areaClass": {
1070
+ "type": "object",
1071
+ "description": "SettingsCenter 的区域样式覆写(允许区域:root / nav / content / section)",
1072
+ "properties": {
1073
+ "root": {
1074
+ "type": "string",
1075
+ "description": "SettingsCenter 区域 root 的 Tailwind 类串"
1076
+ },
1077
+ "nav": {
1078
+ "type": "string",
1079
+ "description": "SettingsCenter 区域 nav 的 Tailwind 类串"
1080
+ },
1081
+ "content": {
1082
+ "type": "string",
1083
+ "description": "SettingsCenter 区域 content 的 Tailwind 类串"
1084
+ },
1085
+ "section": {
1086
+ "type": "string",
1087
+ "description": "SettingsCenter 区域 section 的 Tailwind 类串"
1088
+ }
1089
+ },
1090
+ "additionalProperties": false
1091
+ }
1092
+ }
1093
+ }
1094
+ },
1095
+ {
1096
+ "if": {
1097
+ "properties": {
1098
+ "kind": {
1099
+ "const": "CheckoutPage"
1100
+ }
1101
+ },
1102
+ "required": [
1103
+ "kind"
1104
+ ]
1105
+ },
1106
+ "then": {
1107
+ "properties": {
1108
+ "objects": {
1109
+ "type": "object",
1110
+ "description": "CheckoutPage 的对象角色表(kit-grammar.json#bizComponents.CheckoutPage.roles)",
1111
+ "required": [
1112
+ "form",
1113
+ "items"
1114
+ ],
1115
+ "properties": {
1116
+ "overlays": {
1117
+ "type": "object",
1118
+ "description": "附加浮层表:浮层名 -> 浮层对象声明",
1119
+ "additionalProperties": {
1120
+ "$ref": "#/definitions/object"
1121
+ }
1122
+ },
1123
+ "form": {
1124
+ "$ref": "#/definitions/object",
1125
+ "description": "CheckoutPage.objects.form(必填角色对象;视图槽:form)"
1126
+ },
1127
+ "items": {
1128
+ "$ref": "#/definitions/object",
1129
+ "description": "CheckoutPage.objects.items(必填角色对象;视图槽:list / summary)"
1130
+ },
1131
+ "amounts": {
1132
+ "$ref": "#/definitions/object",
1133
+ "description": "CheckoutPage.objects.amounts(可选角色对象;视图槽:list / summary)"
1134
+ }
1135
+ },
1136
+ "additionalProperties": false
1137
+ },
1138
+ "areaClass": {
1139
+ "type": "object",
1140
+ "description": "CheckoutPage 的区域样式覆写(允许区域:root / form / summary / items / amounts)",
1141
+ "properties": {
1142
+ "root": {
1143
+ "type": "string",
1144
+ "description": "CheckoutPage 区域 root 的 Tailwind 类串"
1145
+ },
1146
+ "form": {
1147
+ "type": "string",
1148
+ "description": "CheckoutPage 区域 form 的 Tailwind 类串"
1149
+ },
1150
+ "summary": {
1151
+ "type": "string",
1152
+ "description": "CheckoutPage 区域 summary 的 Tailwind 类串"
1153
+ },
1154
+ "items": {
1155
+ "type": "string",
1156
+ "description": "CheckoutPage 区域 items 的 Tailwind 类串"
1157
+ },
1158
+ "amounts": {
1159
+ "type": "string",
1160
+ "description": "CheckoutPage 区域 amounts 的 Tailwind 类串"
1161
+ }
1162
+ },
1163
+ "additionalProperties": false
1164
+ }
1165
+ }
1166
+ }
1167
+ },
1168
+ {
1169
+ "if": {
1170
+ "properties": {
1171
+ "kind": {
1172
+ "const": "LandingPage"
1173
+ }
1174
+ },
1175
+ "required": [
1176
+ "kind"
1177
+ ]
1178
+ },
1179
+ "then": {
1180
+ "properties": {
1181
+ "objects": {
1182
+ "type": "object",
1183
+ "description": "LandingPage 的对象角色表(kit-grammar.json#bizComponents.LandingPage.roles)",
1184
+ "required": [
1185
+ "hero"
1186
+ ],
1187
+ "properties": {
1188
+ "overlays": {
1189
+ "type": "object",
1190
+ "description": "附加浮层表:浮层名 -> 浮层对象声明",
1191
+ "additionalProperties": {
1192
+ "$ref": "#/definitions/object"
1193
+ }
1194
+ },
1195
+ "hero": {
1196
+ "$ref": "#/definitions/object",
1197
+ "description": "LandingPage.objects.hero(必填角色对象;视图槽:summary / list)"
1198
+ },
1199
+ "sections": {
1200
+ "type": "object",
1201
+ "description": "LandingPage.objects.sections(可选多对象角色表:子对象名 -> 对象声明;视图槽:list / summary)",
1202
+ "additionalProperties": {
1203
+ "$ref": "#/definitions/object"
1204
+ }
1205
+ },
1206
+ "footer": {
1207
+ "$ref": "#/definitions/object",
1208
+ "description": "LandingPage.objects.footer(可选角色对象;视图槽:summary / list)"
1209
+ }
1210
+ },
1211
+ "additionalProperties": false
1212
+ },
1213
+ "areaClass": {
1214
+ "type": "object",
1215
+ "description": "LandingPage 的区域样式覆写(允许区域:root / hero / sections / section / footer)",
1216
+ "properties": {
1217
+ "root": {
1218
+ "type": "string",
1219
+ "description": "LandingPage 区域 root 的 Tailwind 类串"
1220
+ },
1221
+ "hero": {
1222
+ "type": "string",
1223
+ "description": "LandingPage 区域 hero 的 Tailwind 类串"
1224
+ },
1225
+ "sections": {
1226
+ "type": "string",
1227
+ "description": "LandingPage 区域 sections 的 Tailwind 类串"
1228
+ },
1229
+ "section": {
1230
+ "type": "string",
1231
+ "description": "LandingPage 区域 section 的 Tailwind 类串"
1232
+ },
1233
+ "footer": {
1234
+ "type": "string",
1235
+ "description": "LandingPage 区域 footer 的 Tailwind 类串"
1236
+ }
1237
+ },
1238
+ "additionalProperties": false
1239
+ }
1240
+ }
1241
+ }
1242
+ },
1243
+ {
1244
+ "if": {
1245
+ "properties": {
1246
+ "kind": {
1247
+ "const": "NotificationCenter"
1248
+ }
1249
+ },
1250
+ "required": [
1251
+ "kind"
1252
+ ]
1253
+ },
1254
+ "then": {
1255
+ "properties": {
1256
+ "objects": {
1257
+ "type": "object",
1258
+ "description": "NotificationCenter 的对象角色表(kit-grammar.json#bizComponents.NotificationCenter.roles)",
1259
+ "required": [
1260
+ "notices"
1261
+ ],
1262
+ "properties": {
1263
+ "overlays": {
1264
+ "type": "object",
1265
+ "description": "附加浮层表:浮层名 -> 浮层对象声明",
1266
+ "additionalProperties": {
1267
+ "$ref": "#/definitions/object"
1268
+ }
1269
+ },
1270
+ "notices": {
1271
+ "$ref": "#/definitions/object",
1272
+ "description": "NotificationCenter.objects.notices(必填角色对象;视图槽:list / summary / filter)"
1273
+ }
1274
+ },
1275
+ "additionalProperties": false
1276
+ },
1277
+ "areaClass": {
1278
+ "type": "object",
1279
+ "description": "NotificationCenter 的区域样式覆写(允许区域:root / list / detail)",
1280
+ "properties": {
1281
+ "root": {
1282
+ "type": "string",
1283
+ "description": "NotificationCenter 区域 root 的 Tailwind 类串"
1284
+ },
1285
+ "list": {
1286
+ "type": "string",
1287
+ "description": "NotificationCenter 区域 list 的 Tailwind 类串"
1288
+ },
1289
+ "detail": {
1290
+ "type": "string",
1291
+ "description": "NotificationCenter 区域 detail 的 Tailwind 类串"
1292
+ }
1293
+ },
1294
+ "additionalProperties": false
1295
+ }
1296
+ }
1297
+ }
1298
+ },
1299
+ {
1300
+ "if": {
1301
+ "properties": {
1302
+ "kind": {
1303
+ "const": "AuthPanel"
1304
+ }
1305
+ },
1306
+ "required": [
1307
+ "kind"
1308
+ ]
1309
+ },
1310
+ "then": {
1311
+ "properties": {
1312
+ "objects": {
1313
+ "type": "object",
1314
+ "description": "AuthPanel 的对象角色表(kit-grammar.json#bizComponents.AuthPanel.roles)",
1315
+ "required": [
1316
+ "roles",
1317
+ "matrix"
1318
+ ],
1319
+ "properties": {
1320
+ "overlays": {
1321
+ "type": "object",
1322
+ "description": "附加浮层表:浮层名 -> 浮层对象声明",
1323
+ "additionalProperties": {
1324
+ "$ref": "#/definitions/object"
1325
+ }
1326
+ },
1327
+ "user": {
1328
+ "$ref": "#/definitions/object",
1329
+ "description": "AuthPanel.objects.user(可选角色对象;视图槽:summary)"
1330
+ },
1331
+ "roles": {
1332
+ "$ref": "#/definitions/object",
1333
+ "description": "AuthPanel.objects.roles(必填角色对象;视图槽:list)"
1334
+ },
1335
+ "matrix": {
1336
+ "$ref": "#/definitions/object",
1337
+ "description": "AuthPanel.objects.matrix(必填角色对象;视图槽:summary)"
1338
+ }
1339
+ },
1340
+ "additionalProperties": false
1341
+ },
1342
+ "areaClass": {
1343
+ "type": "object",
1344
+ "description": "AuthPanel 的区域样式覆写(允许区域:root / user / roles / matrix)",
1345
+ "properties": {
1346
+ "root": {
1347
+ "type": "string",
1348
+ "description": "AuthPanel 区域 root 的 Tailwind 类串"
1349
+ },
1350
+ "user": {
1351
+ "type": "string",
1352
+ "description": "AuthPanel 区域 user 的 Tailwind 类串"
1353
+ },
1354
+ "roles": {
1355
+ "type": "string",
1356
+ "description": "AuthPanel 区域 roles 的 Tailwind 类串"
1357
+ },
1358
+ "matrix": {
1359
+ "type": "string",
1360
+ "description": "AuthPanel 区域 matrix 的 Tailwind 类串"
1361
+ }
1362
+ },
1363
+ "additionalProperties": false
1364
+ }
1365
+ }
1366
+ }
1367
+ },
1368
+ {
1369
+ "if": {
1370
+ "properties": {
1371
+ "kind": {
1372
+ "const": "ResultPage"
1373
+ }
1374
+ },
1375
+ "required": [
1376
+ "kind"
1377
+ ]
1378
+ },
1379
+ "then": {
1380
+ "properties": {
1381
+ "objects": {
1382
+ "type": "object",
1383
+ "description": "ResultPage 的对象角色表(kit-grammar.json#bizComponents.ResultPage.roles)",
1384
+ "required": [
1385
+ "result"
1386
+ ],
1387
+ "properties": {
1388
+ "overlays": {
1389
+ "type": "object",
1390
+ "description": "附加浮层表:浮层名 -> 浮层对象声明",
1391
+ "additionalProperties": {
1392
+ "$ref": "#/definitions/object"
1393
+ }
1394
+ },
1395
+ "result": {
1396
+ "$ref": "#/definitions/object",
1397
+ "description": "ResultPage.objects.result(必填角色对象;视图槽:summary / list)"
1398
+ },
1399
+ "detail": {
1400
+ "$ref": "#/definitions/object",
1401
+ "description": "ResultPage.objects.detail(可选角色对象;视图槽:summary / list)"
1402
+ }
1403
+ },
1404
+ "additionalProperties": false
1405
+ },
1406
+ "areaClass": {
1407
+ "type": "object",
1408
+ "description": "ResultPage 的区域样式覆写(允许区域:root / card / detail)",
1409
+ "properties": {
1410
+ "root": {
1411
+ "type": "string",
1412
+ "description": "ResultPage 区域 root 的 Tailwind 类串"
1413
+ },
1414
+ "card": {
1415
+ "type": "string",
1416
+ "description": "ResultPage 区域 card 的 Tailwind 类串"
1417
+ },
1418
+ "detail": {
1419
+ "type": "string",
1420
+ "description": "ResultPage 区域 detail 的 Tailwind 类串"
1421
+ }
1422
+ },
1423
+ "additionalProperties": false
1424
+ }
1425
+ }
1426
+ }
1427
+ },
1428
+ {
1429
+ "if": {
1430
+ "properties": {
1431
+ "kind": {
1432
+ "const": "ImportWizard"
1433
+ }
1434
+ },
1435
+ "required": [
1436
+ "kind"
1437
+ ]
1438
+ },
1439
+ "then": {
1440
+ "properties": {
1441
+ "objects": {
1442
+ "type": "object",
1443
+ "description": "ImportWizard 的对象角色表(kit-grammar.json#bizComponents.ImportWizard.roles)",
1444
+ "required": [
1445
+ "target"
1446
+ ],
1447
+ "properties": {
1448
+ "overlays": {
1449
+ "type": "object",
1450
+ "description": "附加浮层表:浮层名 -> 浮层对象声明",
1451
+ "additionalProperties": {
1452
+ "$ref": "#/definitions/object"
1453
+ }
1454
+ },
1455
+ "target": {
1456
+ "$ref": "#/definitions/object",
1457
+ "description": "ImportWizard.objects.target(必填角色对象;视图槽:form)"
1458
+ },
1459
+ "job": {
1460
+ "$ref": "#/definitions/object",
1461
+ "description": "ImportWizard.objects.job(可选角色对象;视图槽:summary / list)"
1462
+ }
1463
+ },
1464
+ "additionalProperties": false
1465
+ },
1466
+ "areaClass": {
1467
+ "type": "object",
1468
+ "description": "ImportWizard 的区域样式覆写(允许区域:root / card / steps / panel / preview / done)",
1469
+ "properties": {
1470
+ "root": {
1471
+ "type": "string",
1472
+ "description": "ImportWizard 区域 root 的 Tailwind 类串"
1473
+ },
1474
+ "card": {
1475
+ "type": "string",
1476
+ "description": "ImportWizard 区域 card 的 Tailwind 类串"
1477
+ },
1478
+ "steps": {
1479
+ "type": "string",
1480
+ "description": "ImportWizard 区域 steps 的 Tailwind 类串"
1481
+ },
1482
+ "panel": {
1483
+ "type": "string",
1484
+ "description": "ImportWizard 区域 panel 的 Tailwind 类串"
1485
+ },
1486
+ "preview": {
1487
+ "type": "string",
1488
+ "description": "ImportWizard 区域 preview 的 Tailwind 类串"
1489
+ },
1490
+ "done": {
1491
+ "type": "string",
1492
+ "description": "ImportWizard 区域 done 的 Tailwind 类串"
1493
+ }
1494
+ },
1495
+ "additionalProperties": false
195
1496
  }
196
- ]
1497
+ }
197
1498
  }
198
1499
  },
199
- "config": {
200
- "description": "kit-grammar.json#frameKeys.config"
1500
+ {
1501
+ "if": {
1502
+ "properties": {
1503
+ "kind": {
1504
+ "const": "SignInPage"
1505
+ }
1506
+ },
1507
+ "required": [
1508
+ "kind"
1509
+ ]
1510
+ },
1511
+ "then": {
1512
+ "properties": {
1513
+ "objects": {
1514
+ "type": "object",
1515
+ "description": "SignInPage 的对象角色表(kit-grammar.json#bizComponents.SignInPage.roles)",
1516
+ "required": [
1517
+ "target"
1518
+ ],
1519
+ "properties": {
1520
+ "overlays": {
1521
+ "type": "object",
1522
+ "description": "附加浮层表:浮层名 -> 浮层对象声明",
1523
+ "additionalProperties": {
1524
+ "$ref": "#/definitions/object"
1525
+ }
1526
+ },
1527
+ "target": {
1528
+ "$ref": "#/definitions/object",
1529
+ "description": "SignInPage.objects.target(必填角色对象;视图槽:form)"
1530
+ }
1531
+ },
1532
+ "additionalProperties": false
1533
+ },
1534
+ "areaClass": {
1535
+ "type": "object",
1536
+ "description": "SignInPage 的区域样式覆写(允许区域:root / card / body / footer / page / aside / brand / column / links / social)",
1537
+ "properties": {
1538
+ "root": {
1539
+ "type": "string",
1540
+ "description": "SignInPage 区域 root 的 Tailwind 类串"
1541
+ },
1542
+ "card": {
1543
+ "type": "string",
1544
+ "description": "SignInPage 区域 card 的 Tailwind 类串"
1545
+ },
1546
+ "body": {
1547
+ "type": "string",
1548
+ "description": "SignInPage 区域 body 的 Tailwind 类串"
1549
+ },
1550
+ "footer": {
1551
+ "type": "string",
1552
+ "description": "SignInPage 区域 footer 的 Tailwind 类串"
1553
+ },
1554
+ "page": {
1555
+ "type": "string",
1556
+ "description": "SignInPage 区域 page 的 Tailwind 类串"
1557
+ },
1558
+ "aside": {
1559
+ "type": "string",
1560
+ "description": "SignInPage 区域 aside 的 Tailwind 类串"
1561
+ },
1562
+ "brand": {
1563
+ "type": "string",
1564
+ "description": "SignInPage 区域 brand 的 Tailwind 类串"
1565
+ },
1566
+ "column": {
1567
+ "type": "string",
1568
+ "description": "SignInPage 区域 column 的 Tailwind 类串"
1569
+ },
1570
+ "links": {
1571
+ "type": "string",
1572
+ "description": "SignInPage 区域 links 的 Tailwind 类串"
1573
+ },
1574
+ "social": {
1575
+ "type": "string",
1576
+ "description": "SignInPage 区域 social 的 Tailwind 类串"
1577
+ }
1578
+ },
1579
+ "additionalProperties": false
1580
+ }
1581
+ }
1582
+ }
201
1583
  }
202
- },
203
- "description": "kit-grammar.json#pageTopKeys.frame"
204
- },
205
- "product": {
206
- "$ref": "#/definitions/product",
207
- "description": "kit-grammar.json#pageTopKeys.product"
1584
+ ]
208
1585
  },
209
- "locales": {
210
- "description": "kit-grammar.json#pageTopKeys.locales"
211
- }
212
- },
213
- "required": [
214
- "page"
215
- ],
216
- "definitions": {
217
- "product": {
1586
+ "object": {
218
1587
  "type": "object",
219
1588
  "additionalProperties": false,
1589
+ "description": "对象声明:schema(字段)+ behavior(取数 / 写入 / 动作)+ view(视图)",
220
1590
  "properties": {
221
- "kind": {
222
- "description": "业务组件闭集(真源:src/biz/*/index.ts 与 shell.ts)。roles 的 required / views / many 与 areas(可用 areaClass 覆写的区域名)以代码为准",
223
- "anyOf": [
224
- {
225
- "enum": [
226
- "limitsRef",
227
- "StandardCrud",
228
- "MasterSubWorkstation",
229
- "CategoryCrud",
230
- "MultiObjectBoard",
231
- "SingleObjectForm",
232
- "ApprovalDesk",
233
- "RecordDetail",
234
- "StepForm",
235
- "SettingsCenter",
236
- "CheckoutPage",
237
- "LandingPage",
238
- "ResultPage",
239
- "ImportWizard",
240
- "SignInPage"
241
- ]
242
- },
243
- {
244
- "type": "string"
245
- }
246
- ]
247
- },
248
- "objects": {
249
- "type": "object",
250
- "description": "对象角色表:角色名 -> 对象声明(角色集合由业务组件决定,见 kit-grammar.json#bizComponents)",
251
- "additionalProperties": {
252
- "$ref": "#/definitions/object"
253
- }
254
- },
255
- "class": {
256
- "type": "string"
257
- },
258
- "areaClass": {
259
- "type": "object",
260
- "additionalProperties": {
261
- "type": "string"
262
- }
263
- },
264
- "config": {
265
- "description": "kit-grammar.json#productKeys.config"
266
- },
267
- "theme": {
268
- "description": "页面 / 产品块级主题 page.theme、product.theme 的写面(规格 Q 波第 1 项)。令牌值一律由 soma-foundation 求解,编译期发作用域类 soma-scope-<id> 的变量块,不写 CSSOM;page.theme 只管内容区(各产品根),不含页面框外壳。只收词条:块级主题的机器写面:AI 只许写光学意图——简写 inverse / dark / light,或只含 mode / color 的对象;mode 取昼夜光感词条里极性落在简写域内的、减去区域禁用词,color 取主色意向词条减去企业专属色号;factors(技术旋钮)、name(主题库名)、别的维度键、hex 一律拒收。词条域不在这里手抄:mode / color 的词条读 visual-factors 投影(维度作者键取 modeDimension / colorDimension…",
1591
+ "schema": {
1592
+ "description": "kit-grammar.json#objectKeys.schema",
269
1593
  "anyOf": [
270
1594
  {
271
- "enum": [
272
- "inverse",
273
- "dark",
274
- "light"
275
- ]
1595
+ "type": "string",
1596
+ "pattern": "^\\$entity\\.[A-Za-z_][A-Za-z0-9_]*$",
1597
+ "description": "引用 kit.app.yaml#entities 声明的实体($entity.<实体名>)"
276
1598
  },
277
1599
  {
278
1600
  "type": "object",
279
1601
  "additionalProperties": false,
280
- "minProperties": 1,
1602
+ "required": [
1603
+ "$ref"
1604
+ ],
281
1605
  "properties": {
282
- "mode": {
1606
+ "$ref": {
283
1607
  "type": "string",
284
- "description": "mode 词条(取值域读 soma-design visual-factors,由编译器校验;KIT-THEME-001..003)"
1608
+ "pattern": "^\\$entity\\.[A-Za-z_][A-Za-z0-9_]*$"
285
1609
  },
286
- "color": {
287
- "type": "string",
288
- "description": "color 词条(取值域读 soma-design visual-factors,由编译器校验;KIT-THEME-001..003)"
1610
+ "pick": {
1611
+ "type": "array",
1612
+ "items": {
1613
+ "type": "string"
1614
+ }
1615
+ },
1616
+ "omit": {
1617
+ "type": "array",
1618
+ "items": {
1619
+ "type": "string"
1620
+ }
1621
+ },
1622
+ "override": {
1623
+ "type": "object",
1624
+ "additionalProperties": {
1625
+ "type": "object"
1626
+ }
289
1627
  }
290
1628
  }
1629
+ },
1630
+ {
1631
+ "type": "object",
1632
+ "additionalProperties": {
1633
+ "$ref": "#/definitions/field"
1634
+ }
291
1635
  }
292
1636
  ]
293
- }
294
- },
295
- "required": [
296
- "kind",
297
- "objects"
298
- ]
299
- },
300
- "object": {
301
- "type": "object",
302
- "description": "对象声明:schema(字段)+ behavior(取数 / 写入 / 动作)+ view(视图)",
303
- "properties": {
1637
+ },
1638
+ "behavior": {
1639
+ "$ref": "#/definitions/behavior"
1640
+ },
1641
+ "view": {
1642
+ "$ref": "#/definitions/view"
1643
+ },
304
1644
  "title": {
305
1645
  "type": "string",
306
1646
  "description": "从属对象与浮层的标题"
307
1647
  },
308
- "schema": {
1648
+ "primaryKey": {
1649
+ "type": "string",
1650
+ "description": "对象主键字段名"
1651
+ },
1652
+ "emphasis": {
1653
+ "enum": [
1654
+ "primary",
1655
+ "normal",
1656
+ "subtle"
1657
+ ],
1658
+ "description": "视觉强调级别(primary 强强调 / normal 常规 / subtle 弱化)"
1659
+ },
1660
+ "surface": {
1661
+ "enum": [
1662
+ "card",
1663
+ "flush",
1664
+ "plain"
1665
+ ],
1666
+ "description": "表面容器形态(card 卡片 / flush 贴边 / plain 极简无边框)"
1667
+ },
1668
+ "highlight": {
1669
+ "type": "boolean",
1670
+ "description": "区块或字段高亮主视觉开关(布尔值,开启后以主色或高亮底色突出显示)"
1671
+ },
1672
+ "subsLayout": {
1673
+ "enum": [
1674
+ "stack",
1675
+ "tabs"
1676
+ ],
1677
+ "description": "RecordDetail 从属对象布局方式(stack 垂直堆叠 / tabs 页签切换)"
1678
+ },
1679
+ "kind": {
1680
+ "enum": [
1681
+ "dialog",
1682
+ "drawer"
1683
+ ],
1684
+ "description": "浮层形态(dialog 居中对话框 / drawer 侧边抽屉)"
1685
+ },
1686
+ "editOverlay": {
1687
+ "type": "string",
1688
+ "description": "关联的编辑浮层名称"
1689
+ },
1690
+ "rowClick": {
1691
+ "type": "boolean",
1692
+ "description": "整行点击是否打开该浮层(布尔值)"
1693
+ },
1694
+ "span": {
1695
+ "type": "integer",
1696
+ "minimum": 1,
1697
+ "maximum": 12,
1698
+ "description": "MultiObjectBoard 面板占宽(1~12)"
1699
+ },
1700
+ "class": {
1701
+ "type": "string",
1702
+ "description": "外框 Tailwind 类串"
1703
+ },
1704
+ "events": {
309
1705
  "type": "object",
310
- "description": "kit-grammar.json#objectKeys.schema",
1706
+ "description": "浮层内写死形状数据组件的事件约定(K-1):saved -> 关窗并刷新;cancel / close -> 关窗;reload -> 刷新。overlays.<名>.events 可补自定义事件名",
311
1707
  "additionalProperties": {
312
- "$ref": "#/definitions/field"
1708
+ "anyOf": [
1709
+ {
1710
+ "enum": [
1711
+ "saved",
1712
+ "close",
1713
+ "reload"
1714
+ ]
1715
+ },
1716
+ {
1717
+ "type": "object",
1718
+ "additionalProperties": false,
1719
+ "required": [
1720
+ "action"
1721
+ ],
1722
+ "properties": {
1723
+ "action": {
1724
+ "type": "string",
1725
+ "description": "events 的值也可写 { action: 具名动作 }:事件抛出后执行 ACTION | 动作(单管道);动作之后要提示 / 重取 / 关窗,写在具名动作处理函数里(ctx.reload / ctx.notify / ctx.close),不在页面声明顺序;action 必须是应用登记的具名动作,或本对象 request / download 动作的 id(请求成功后宿主固定关掉该浮层并重取)(KIT-EVT-001)"
1726
+ }
1727
+ }
1728
+ }
1729
+ ]
313
1730
  }
314
- },
315
- "behavior": {
316
- "$ref": "#/definitions/behavior"
317
- },
318
- "view": {
319
- "$ref": "#/definitions/view"
320
1731
  }
321
- },
322
- "additionalProperties": true
1732
+ }
323
1733
  },
324
1734
  "field": {
325
1735
  "type": "object",
@@ -380,8 +1790,22 @@
380
1790
  "hidden": {
381
1791
  "description": "kit-grammar.json#objectKeys.schema.hidden"
382
1792
  },
383
- "derive": {
384
- "description": "kit-grammar.json#objectKeys.schema.derive"
1793
+ "access": {
1794
+ "description": "kit-grammar.json#objectKeys.schema.access"
1795
+ },
1796
+ "readonly": {
1797
+ "description": "kit-grammar.json#objectKeys.schema.readonly"
1798
+ },
1799
+ "emphasis": {
1800
+ "enum": [
1801
+ "strong",
1802
+ "muted"
1803
+ ],
1804
+ "description": "字段视觉强调级别(strong 加重 / muted 减淡)"
1805
+ },
1806
+ "highlight": {
1807
+ "type": "boolean",
1808
+ "description": "区块或字段高亮主视觉开关(布尔值,开启后以主色或高亮底色突出显示)"
385
1809
  }
386
1810
  }
387
1811
  },
@@ -405,9 +1829,6 @@
405
1829
  },
406
1830
  "description": "kit-grammar.json#objectKeys.behavior.actions"
407
1831
  },
408
- "poll": {
409
- "description": "D9 组数据组件(Calendar / ImageViewer / MediaGrid / EmojiReactionBar / RichTextEditor / Questionnaire(含投票用法)/ TourGuide / TrendLine,以及 CommentThread 的 chat 变体)的限值与闭集真源;代码经 src/data/d9-limits.ts 读取,不手抄"
410
- },
411
1832
  "subscribe": {
412
1833
  "description": "kit-grammar.json#objectKeys.behavior.subscribe"
413
1834
  },
@@ -417,9 +1838,6 @@
417
1838
  "leaveGuard": {
418
1839
  "description": "kit-grammar.json#objectKeys.behavior.leaveGuard"
419
1840
  },
420
- "adapter": {
421
- "description": "kit-grammar.json#objectKeys.behavior.adapter"
422
- },
423
1841
  "params": {
424
1842
  "description": "kit-grammar.json#objectKeys.behavior.params"
425
1843
  },
@@ -487,11 +1905,31 @@
487
1905
  "rowClass": {
488
1906
  "description": "kit-grammar.json#objectKeys.view.rowClass"
489
1907
  },
490
- "rowClassWhen": {
491
- "description": "kit-grammar.json#objectKeys.view.rowClassWhen"
1908
+ "rowTone": {
1909
+ "description": "kit-grammar.json#objectKeys.view.rowTone"
492
1910
  },
493
1911
  "replaceClass": {
494
1912
  "description": "kit-grammar.json#objectKeys.view.replaceClass"
1913
+ },
1914
+ "emphasis": {
1915
+ "enum": [
1916
+ "primary",
1917
+ "normal",
1918
+ "subtle"
1919
+ ],
1920
+ "description": "视觉强调级别(primary 强强调 / normal 常规 / subtle 弱化)"
1921
+ },
1922
+ "surface": {
1923
+ "enum": [
1924
+ "card",
1925
+ "flush",
1926
+ "plain"
1927
+ ],
1928
+ "description": "表面容器形态(card 卡片 / flush 贴边 / plain 极简无边框)"
1929
+ },
1930
+ "highlight": {
1931
+ "type": "boolean",
1932
+ "description": "区块或字段高亮主视觉开关(布尔值,开启后以主色或高亮底色突出显示)"
495
1933
  }
496
1934
  }
497
1935
  },
@@ -535,8 +1973,8 @@
535
1973
  "rowClass": {
536
1974
  "description": "kit-grammar.json#viewFormKeys.rowClass"
537
1975
  },
538
- "rowClassWhen": {
539
- "description": "kit-grammar.json#viewFormKeys.rowClassWhen"
1976
+ "rowTone": {
1977
+ "description": "kit-grammar.json#viewFormKeys.rowTone"
540
1978
  },
541
1979
  "replaceClass": {
542
1980
  "description": "kit-grammar.json#viewFormKeys.replaceClass"
@@ -668,9 +2106,6 @@
668
2106
  "scrollToError": {
669
2107
  "description": "kit-grammar.json#viewFormKeys.scrollToError"
670
2108
  },
671
- "afterSave": {
672
- "description": "kit-grammar.json#viewFormKeys.afterSave"
673
- },
674
2109
  "collapsedRows": {
675
2110
  "description": "kit-grammar.json#viewFormKeys.collapsedRows"
676
2111
  },
@@ -680,20 +2115,40 @@
680
2115
  "contextMenu": {
681
2116
  "description": "Q 波 G6 / B1 B 组:contextMenu 是所有“有行级动作的视图”共用的一个键,同一个 KitContextMenu、同一份实现。适用:collection 的 table(含虚拟滚动)/ treeTable(含 table + tree)/ cards / stack(写在 view.list 或 collection 上),以及写死形状组件 ItemList / Tree / Kanban 的视图(写在该视图上,staticComponents)。`@动作id` 列表,顺序即显示顺序,至多 maxItems 项;元素必须是 behavior.actions 里的动作(带 targetOverlay 的动作须同时写在 rowActions 里,写死形状组件没有 rowActions,不许带 targetOverlay)。只有页面显式声明了 contextMenu 才接管右…"
682
2117
  },
683
- "policy": {
684
- "description": "字段策略表(view.form.policy):按一个状态字段(或角色字段)的取值声明各字段的 hide / readonly / required,编译成已有的 showWhen / disabledWhen / requiredWhen(不新开运行时)。形状 { by: 字段名, table: { 取值: { hide: [字段], readonly: [字段], required: [字段] } } };表里没写的取值不施加任何限制;hide 的字段不显示、不进 model、不过校验;readonly 置灰但值保留;required 在该取值下必填。by 须是本对象 schema 里的字段(可以是不在表单里显示的只读字段,如 status / role,初值取自被编辑的行)。字段上另写的 showWhen / disabledWhen / requiredWhen 与策略表叠加(都成…"
685
- },
686
- "adopt": {
687
- "description": "采纳建议(view.form.adopt,human-only):某个 request 动作(写 into: 名字)返回一组建议值(如 AI 生成的配置草稿),用户在表单上点「采纳」才把建议写进当前草稿;采纳只改草稿,不提交,用户确认后仍要自己点保存。形状 { from, path?, map?, label? }:from = request 动作的 into;path = 建议对象在 outcome.data 里的点路径(缺省取整个 data;接口带信封时写 data 或 data.xxx);map = { 表单字段: 建议里的点路径 },缺省按『与表单字段同名的键』回填;label = 采纳按钮文案(缺省词条 soma.kit.adopt);ask = 采纳条上『获取建议』钮要发的 request 动作 id(该动作写在本对象 behavior.actions 里、不写 on,不渲染…"
688
- },
689
2118
  "footerActions": {
690
2119
  "description": "kit-grammar.json#viewFormKeys.footerActions"
691
2120
  },
692
2121
  "result": {
693
2122
  "description": "kit-grammar.json#viewFormKeys.result"
694
2123
  },
695
- "onChange": {
696
- "description": "kit-grammar.json#viewFormKeys.onChange"
2124
+ "onDraft": {
2125
+ "description": "kit-grammar.json#viewFormKeys.onDraft"
2126
+ },
2127
+ "submitDisabled": {
2128
+ "description": "kit-grammar.json#viewFormKeys.submitDisabled"
2129
+ },
2130
+ "emphasis": {
2131
+ "enum": [
2132
+ "primary",
2133
+ "normal",
2134
+ "subtle"
2135
+ ],
2136
+ "description": "视觉强调级别(primary 强强调 / normal 常规 / subtle 弱化)"
2137
+ },
2138
+ "surface": {
2139
+ "enum": [
2140
+ "card",
2141
+ "flush",
2142
+ "plain"
2143
+ ],
2144
+ "description": "表面容器形态(card 卡片 / flush 贴边 / plain 极简无边框)"
2145
+ },
2146
+ "highlight": {
2147
+ "type": "boolean",
2148
+ "description": "区块或字段高亮主视觉开关(布尔值,开启后以主色或高亮底色突出显示)"
2149
+ },
2150
+ "defaultCollapsedCount": {
2151
+ "description": "kit-grammar.json#viewFormKeys.defaultCollapsedCount"
697
2152
  }
698
2153
  }
699
2154
  },
@@ -725,14 +2180,6 @@
725
2180
  "expand": {
726
2181
  "description": "kit-grammar.json#collectionKeys.expand。collection 的子键。三态文案键 loading / empty / error 必须是字符串(否则 KIT-OBJ-007),state: false 关闭内置兜底;expand 只允许 { view: summary } 或 {…"
727
2182
  },
728
- "density": {
729
- "enum": [
730
- "compact",
731
- "standard",
732
- "comfortable"
733
- ],
734
- "description": "table 单元格上下内边距三档,只改 py 不改 px(--spacing 已随 Host 密度变化,density 只是单表局部微调,不与全局密度叠乘)(classDefaults.tableHead* / tableRow*):compact / standard(缺省)/ comfortable,非闭集内的值报 KIT-OBJ-009 并按 standard 处理;striped: true = 斑马纹(偶数行 classDefaults.tableRowStriped,含偶数行自己的悬停色 even:hover:bg-border-subtle,避免悬停色与底色相同),缺省关闭,非布尔报 KIT-OBJ-009。选中行高亮恒开:表格是无 role 的 div 结构,选中态不用 aria-selected(它只在 grid / treegrid 的 row 上合法),KitTabl…"
735
- },
736
2183
  "striped": {
737
2184
  "description": "kit-grammar.json#collectionKeys.striped。collection 的子键。三态文案键 loading / empty / error 必须是字符串(否则 KIT-OBJ-007),state: false 关闭内置兜底;expand 只允许 { view: summary } 或 {…"
738
2185
  },
@@ -876,24 +2323,9 @@
876
2323
  "type": "string",
877
2324
  "description": "fields[].help:表单字段说明文字,字符串(非字符串报 KIT-OBJ-009)。只在编辑态格(form / filter 的 KitObjectForm)渲染,位置写死 = 控件下、错误行上,类 classDefaults.help;只读的 summary / list 不显示(写了丢弃)。"
878
2325
  },
879
- "showWhen": {
880
- "description": "闭集谓词:叶子 { field, op, value? };组合 { all: [叶子...] } / { any: [叶子...] },只许一层。编成 core 谓词时 all -> all_of、any -> any_of,叶子原样。requiredWhen 编成 schema 字段的 rules[].when(core 校验时求值,记录 = 读态 ∪ model);showWhen / disabledWhen 在 KitObjectForm 里用 soma-core/predicates 的 evaluatePredicate 对草稿求值(草稿在组件里,页面没有可绑的字段值,core 对象层也没有 derived 键且 calc 不产布尔);动作 when 编进行操作 steps 的前置条件(叶子字段 field 改写成 { field: row, path: 字段 })"
881
- },
882
- "requiredWhen": {
883
- "description": "闭集谓词:叶子 { field, op, value? };组合 { all: [叶子...] } / { any: [叶子...] },只许一层。编成 core 谓词时 all -> all_of、any -> any_of,叶子原样。requiredWhen 编成 schema 字段的 rules[].when(core 校验时求值,记录 = 读态 ∪ model);showWhen / disabledWhen 在 KitObjectForm 里用 soma-core/predicates 的 evaluatePredicate 对草稿求值(草稿在组件里,页面没有可绑的字段值,core 对象层也没有 derived 键且 calc 不产布尔);动作 when 编进行操作 steps 的前置条件(叶子字段 field 改写成 { field: row, path: 字段 })"
884
- },
885
- "disabledWhen": {
886
- "description": "闭集谓词:叶子 { field, op, value? };组合 { all: [叶子...] } / { any: [叶子...] },只许一层。编成 core 谓词时 all -> all_of、any -> any_of,叶子原样。requiredWhen 编成 schema 字段的 rules[].when(core 校验时求值,记录 = 读态 ∪ model);showWhen / disabledWhen 在 KitObjectForm 里用 soma-core/predicates 的 evaluatePredicate 对草稿求值(草稿在组件里,页面没有可绑的字段值,core 对象层也没有 derived 键且 calc 不产布尔);动作 when 编进行操作 steps 的前置条件(叶子字段 field 改写成 { field: row, path: 字段 })"
887
- },
888
- "when": {
889
- "description": "闭集谓词:叶子 { field, op, value? };组合 { all: [叶子...] } / { any: [叶子...] },只许一层。编成 core 谓词时 all -> all_of、any -> any_of,叶子原样。requiredWhen 编成 schema 字段的 rules[].when(core 校验时求值,记录 = 读态 ∪ model);showWhen / disabledWhen 在 KitObjectForm 里用 soma-core/predicates 的 evaluatePredicate 对草稿求值(草稿在组件里,页面没有可绑的字段值,core 对象层也没有 derived 键且 calc 不产布尔);动作 when 编进行操作 steps 的前置条件(叶子字段 field 改写成 { field: row, path: 字段 })"
890
- },
891
2326
  "on": {
892
2327
  "description": "view.on(写死形状数据组件的视图):{ 组件事件名: 动作 },把组件 emit 接到动作。事件名必须在该组件契约 emits 里(否则 KIT-STATIC-001);动作取值见 values,具名动作未登记报 KIT-EVT-001。浮层里的同类接线仍用 overlays.<名>.events"
893
2328
  },
894
- "fill": {
895
- "description": "kit-grammar.json#fieldRefKeys.fill"
896
- },
897
2329
  "fixed": {
898
2330
  "description": "kit-grammar.json#fieldRefKeys.fixed"
899
2331
  },
@@ -914,6 +2346,32 @@
914
2346
  },
915
2347
  "resizable": {
916
2348
  "description": "kit-grammar.json#fieldRefKeys.resizable"
2349
+ },
2350
+ "hidden": {
2351
+ "description": "kit-grammar.json#fieldRefKeys.hidden"
2352
+ },
2353
+ "disabled": {
2354
+ "description": "kit-grammar.json#fieldRefKeys.disabled"
2355
+ },
2356
+ "required": {
2357
+ "description": "kit-grammar.json#fieldRefKeys.required"
2358
+ },
2359
+ "options": {
2360
+ "description": "kit-grammar.json#fieldRefKeys.options"
2361
+ },
2362
+ "nodeOptions": {
2363
+ "description": "kit-grammar.json#fieldRefKeys.nodeOptions"
2364
+ },
2365
+ "emphasis": {
2366
+ "enum": [
2367
+ "strong",
2368
+ "muted"
2369
+ ],
2370
+ "description": "字段视觉强调级别(strong 加重 / muted 减淡)"
2371
+ },
2372
+ "highlight": {
2373
+ "type": "boolean",
2374
+ "description": "区块或字段高亮主视觉开关(布尔值,开启后以主色或高亮底色突出显示)"
917
2375
  }
918
2376
  },
919
2377
  "allOf": [
@@ -2241,6 +3699,9 @@
2241
3699
  "search_delay": {
2242
3700
  "description": "Combobox.search_delay(kit-grammar.json#baseComponentProps.Combobox)"
2243
3701
  },
3702
+ "options_query": {
3703
+ "description": "Combobox.options_query(kit-grammar.json#baseComponentProps.Combobox)"
3704
+ },
2244
3705
  "multiple": {
2245
3706
  "description": "Combobox.multiple(kit-grammar.json#baseComponentProps.Combobox)"
2246
3707
  },
@@ -2607,20 +4068,11 @@
2607
4068
  "description": "kit-grammar.json#actionKeys.permission",
2608
4069
  "type": "string"
2609
4070
  },
2610
- "after": {
2611
- "description": "kit 层解释的内置动作;reload 经协调组件 kit_reload 重取(K-2)。after: reload 让具名动作成功后经协调组件重取(K-5,行操作恒自动刷新,主要给工具栏)"
2612
- },
2613
- "then": {
2614
- "description": "M 波 G3:表单与字段联动、动作后续链、远程选项、接口适配、behavior 透传、表单布局与筛选折叠。能编成 core 现有声明的编成 core(rules[].when / transform / write.validate_on / 事件 steps / NAV_STATIC / NOTIFY / SCOPE window-reload / 顶层 subscribe),core 没有的在 KitObjectForm 内用同一份闭集谓词求值,不在 core 加 kit 包络"
2615
- },
2616
- "when": {
2617
- "description": "闭集谓词:叶子 { field, op, value? };组合 { all: [叶子...] } / { any: [叶子...] },只许一层。编成 core 谓词时 all -> all_of、any -> any_of,叶子原样。requiredWhen 编成 schema 字段的 rules[].when(core 校验时求值,记录 = 读态 ∪ model);showWhen / disabledWhen 在 KitObjectForm 里用 soma-core/predicates 的 evaluatePredicate 对草稿求值(草稿在组件里,页面没有可绑的字段值,core 对象层也没有 derived 键且 calc 不产布尔);动作 when 编进行操作 steps 的前置条件(叶子字段 field 改写成 { field: row, path: 字段 })"
2618
- },
2619
4071
  "more": {
2620
4072
  "description": "kit-grammar.json#actionKeys.more"
2621
4073
  },
2622
4074
  "request": {
2623
- "description": "声明式请求 / 下载动作(P1):动作写 request 或 download(与 submit / builtin 三选一)。request = 经 core 写通道(ACTION data.submit 同一条,写入结果落 write-outcome-store)发一次 POST / PUT / PATCH,body 的值以 $ 开头是取值路径($row.字段 / $focus.字段 / $filter.字段 / $page.page / $value / $selected.字段),否则是字面量;into 给结果命名(outcome 范围名),组件用 outcome prop 订阅它的 pending / saved / failed 与响应;into 也可写 { name, key: $row.<主键字段> }(按行分开存):结果按「名字 + 行键」分槽,同一个动作在不同行上点各存…",
4075
+ "description": "声明式请求 / 下载动作(P1):动作写 request 或 download(与 submit / builtin 三选一)。request = 经 core 写通道(ACTION data.submit 同一条,写入结果落 write-outcome-store)发一次 POST / PUT / PATCH,页面声明不拼请求体、不写参数取值路径(载荷由业务对象 / 具名动作 / 接口一侧提供);into 给结果命名(outcome 范围名),组件用 outcome prop 订阅它的 pending / saved / failed 与响应;into 也可写 { name, key: $row.<主键字段> }(按行分开存):结果按「名字 + 行键」分槽,同一个动作在不同行上点各存各的(一行成功不放开别的行),行键字段必须是对象的 key: true 字段;行内动作 / 右键菜单的 o…",
2624
4076
  "type": "object",
2625
4077
  "additionalProperties": false,
2626
4078
  "required": [
@@ -2637,9 +4089,6 @@
2637
4089
  "PATCH"
2638
4090
  ]
2639
4091
  },
2640
- "body": {
2641
- "type": "object"
2642
- },
2643
4092
  "into": {
2644
4093
  "anyOf": [
2645
4094
  {
@@ -2666,57 +4115,9 @@
2666
4115
  }
2667
4116
  ]
2668
4117
  },
2669
- "ok": {
2670
- "type": "object",
2671
- "additionalProperties": false,
2672
- "properties": {
2673
- "path": {},
2674
- "equals": {},
2675
- "message": {}
2676
- }
2677
- },
2678
4118
  "notify": {
2679
4119
  "type": "string"
2680
4120
  },
2681
- "then": {
2682
- "anyOf": [
2683
- {
2684
- "enum": [
2685
- "reload",
2686
- "none"
2687
- ]
2688
- },
2689
- {
2690
- "type": "array",
2691
- "items": {
2692
- "type": "object",
2693
- "additionalProperties": false,
2694
- "required": [
2695
- "reload"
2696
- ],
2697
- "properties": {
2698
- "reload": {
2699
- "anyOf": [
2700
- {
2701
- "const": true
2702
- },
2703
- {
2704
- "type": "string"
2705
- }
2706
- ]
2707
- },
2708
- "on": {
2709
- "enum": [
2710
- "success",
2711
- "failed",
2712
- "always"
2713
- ]
2714
- }
2715
- }
2716
- }
2717
- }
2718
- ]
2719
- },
2720
4121
  "read": {
2721
4122
  "type": "boolean"
2722
4123
  },
@@ -2725,16 +4126,13 @@
2725
4126
  "mount"
2726
4127
  ]
2727
4128
  },
2728
- "prompt": {
2729
- "type": "object"
2730
- },
2731
4129
  "timeoutMs": {
2732
4130
  "type": "integer"
2733
4131
  }
2734
4132
  }
2735
4133
  },
2736
4134
  "download": {
2737
- "description": "声明式请求 / 下载动作(P1):动作写 request 或 download(与 submit / builtin 三选一)。request = 经 core 写通道(ACTION data.submit 同一条,写入结果落 write-outcome-store)发一次 POST / PUT / PATCH,body 的值以 $ 开头是取值路径($row.字段 / $focus.字段 / $filter.字段 / $page.page / $value / $selected.字段),否则是字面量;into 给结果命名(outcome 范围名),组件用 outcome prop 订阅它的 pending / saved / failed 与响应;into 也可写 { name, key: $row.<主键字段> }(按行分开存):结果按「名字 + 行键」分槽,同一个动作在不同行上点各存…",
4135
+ "description": "声明式请求 / 下载动作(P1):动作写 request 或 download(与 submit / builtin 三选一)。request = 经 core 写通道(ACTION data.submit 同一条,写入结果落 write-outcome-store)发一次 POST / PUT / PATCH,页面声明不拼请求体、不写参数取值路径(载荷由业务对象 / 具名动作 / 接口一侧提供);into 给结果命名(outcome 范围名),组件用 outcome prop 订阅它的 pending / saved / failed 与响应;into 也可写 { name, key: $row.<主键字段> }(按行分开存):结果按「名字 + 行键」分槽,同一个动作在不同行上点各存各的(一行成功不放开别的行),行键字段必须是对象的 key: true 字段;行内动作 / 右键菜单的 o…",
2738
4136
  "type": "object",
2739
4137
  "additionalProperties": false,
2740
4138
  "required": [
@@ -2750,25 +4148,16 @@
2750
4148
  "POST"
2751
4149
  ]
2752
4150
  },
2753
- "body": {
2754
- "type": "object"
2755
- },
2756
- "query": {
2757
- "type": "object"
2758
- },
2759
4151
  "filename": {
2760
4152
  "type": "string"
2761
4153
  }
2762
4154
  }
2763
4155
  },
2764
- "disabledWhen": {
2765
- "description": "闭集谓词:叶子 { field, op, value? };组合 { all: [叶子...] } / { any: [叶子...] },只许一层。编成 core 谓词时 all -> all_of、any -> any_of,叶子原样。requiredWhen 编成 schema 字段的 rules[].when(core 校验时求值,记录 = 读态 ∪ model);showWhen / disabledWhen 在 KitObjectForm 里用 soma-core/predicates 的 evaluatePredicate 对草稿求值(草稿在组件里,页面没有可绑的字段值,core 对象层也没有 derived 键且 calc 不产布尔);动作 when 编进行操作 steps 的前置条件(叶子字段 field 改写成 { field: row, path: 字段 })"
4156
+ "disabled": {
4157
+ "description": "kit-grammar.json#actionKeys.disabled"
2766
4158
  },
2767
- "hiddenWhen": {
2768
- "description": "kit-grammar.json#actionKeys.hiddenWhen"
2769
- },
2770
- "prefill": {
2771
- "description": "kit-grammar.json#actionKeys.prefill"
4159
+ "hidden": {
4160
+ "description": "kit-grammar.json#actionKeys.hidden"
2772
4161
  }
2773
4162
  }
2774
4163
  }