soma-kit 0.1.12 → 0.1.14

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 (300) hide show
  1. package/README.md +5 -4
  2. package/bin/soma-kit.mjs +31 -1
  3. package/bin/soma.mjs +0 -0
  4. package/package.json +5 -4
  5. package/spec/generated/kit-app.schema.json +172 -4
  6. package/spec/generated/kit-page.schema.json +164 -5
  7. package/spec/kit-grammar.json +598 -96
  8. package/spec/kit-grammar.schema.json +12 -6
  9. package/src/app/app-config.ts +92 -8
  10. package/src/app/component-gate.ts +271 -13
  11. package/src/app/define-kit-app.ts +2 -2
  12. package/src/app/define-kit-view.ts +9 -5
  13. package/src/app/dev-diagnostic.ts +5 -0
  14. package/src/app/index.ts +29 -5
  15. package/src/app/kit-view-context.ts +181 -15
  16. package/src/app/render-ports.ts +18 -0
  17. package/src/app/server-pages.ts +8 -2
  18. package/src/app/server.ts +55 -8
  19. package/src/app/theme-runtime.ts +4 -0
  20. package/src/base/action-busy.ts +101 -4
  21. package/src/base/action-slots.ts +13 -2
  22. package/src/base/anchored-layer.ts +50 -0
  23. package/src/base/button.ts +62 -15
  24. package/src/base/check-core.ts +8 -0
  25. package/src/base/checkbox.ts +2 -1
  26. package/src/base/choice.ts +21 -2
  27. package/src/base/color-picker.ts +10 -5
  28. package/src/base/command-palette.ts +1 -1
  29. package/src/base/context-menu.ts +10 -7
  30. package/src/base/date-range.ts +7 -7
  31. package/src/base/date.ts +55 -16
  32. package/src/base/delta.ts +72 -0
  33. package/src/base/end-edge.ts +61 -0
  34. package/src/base/fab.ts +1 -1
  35. package/src/base/gap-value.ts +168 -0
  36. package/src/base/hint-tips.ts +170 -0
  37. package/src/base/icons.ts +8 -0
  38. package/src/base/illustrations.ts +95 -0
  39. package/src/base/index.ts +32 -9
  40. package/src/base/listbox-core.ts +6 -5
  41. package/src/base/loading-gate.ts +140 -87
  42. package/src/base/mentions.ts +2 -1
  43. package/src/base/menu-button.ts +16 -18
  44. package/src/base/menu-core.ts +37 -8
  45. package/src/base/motion/hover-3d.ts +1 -1
  46. package/src/base/motion/marquee.ts +1 -1
  47. package/src/base/otp.ts +5 -4
  48. package/src/base/overlay-runtime.ts +235 -0
  49. package/src/base/popover.ts +10 -9
  50. package/src/base/popup.ts +67 -8
  51. package/src/base/portal-core.ts +4 -0
  52. package/src/base/qty-stepper.ts +5 -5
  53. package/src/base/radio.ts +2 -1
  54. package/src/base/range.ts +19 -2
  55. package/src/base/rating.ts +11 -6
  56. package/src/base/reason-tip.ts +150 -0
  57. package/src/base/segmented.ts +36 -24
  58. package/src/base/shared.ts +180 -36
  59. package/src/base/state-panel.ts +367 -0
  60. package/src/base/status-tone.ts +27 -0
  61. package/src/base/sticky-edge.ts +116 -0
  62. package/src/base/swap.ts +6 -6
  63. package/src/base/switch.ts +10 -5
  64. package/src/base/tag-input.ts +6 -6
  65. package/src/base/tag.ts +76 -41
  66. package/src/base/text.ts +43 -14
  67. package/src/base/time-picker.ts +7 -5
  68. package/src/base/tree-select.ts +6 -4
  69. package/src/base/trend-tone.ts +9 -0
  70. package/src/base/upload.ts +15 -9
  71. package/src/base/view-transition.ts +77 -0
  72. package/src/biz/approval-desk/shell.ts +15 -11
  73. package/src/biz/auth-panel/shell.ts +9 -7
  74. package/src/biz/category-crud/compile.ts +5 -4
  75. package/src/biz/category-crud/shell.ts +5 -3
  76. package/src/biz/checkout-page/compile.ts +2 -1
  77. package/src/biz/checkout-page/shell.ts +10 -8
  78. package/src/biz/compose.ts +2 -2
  79. package/src/biz/data-components.ts +4 -0
  80. package/src/biz/import-wizard/shell.ts +13 -10
  81. package/src/biz/landing-page/shell.ts +2 -2
  82. package/src/biz/link/hub.ts +23 -5
  83. package/src/biz/link/shared.ts +23 -12
  84. package/src/biz/master-sub/compile.ts +207 -16
  85. package/src/biz/master-sub/detail-head.ts +61 -0
  86. package/src/biz/master-sub/index.ts +7 -3
  87. package/src/biz/master-sub/shell.ts +133 -24
  88. package/src/biz/multi-board/compile.ts +167 -9
  89. package/src/biz/multi-board/composition.ts +58 -0
  90. package/src/biz/multi-board/index.ts +1 -1
  91. package/src/biz/multi-board/prose-fold.ts +143 -0
  92. package/src/biz/multi-board/shell.ts +94 -23
  93. package/src/biz/notification-center/shell.ts +10 -7
  94. package/src/biz/page-templates/domain-templates.ts +2 -2
  95. package/src/biz/page-templates/result-page/shell.ts +4 -3
  96. package/src/biz/page-templates/sign-in-page/shell.ts +16 -16
  97. package/src/biz/record-detail/compile.ts +2 -2
  98. package/src/biz/record-detail/shell.ts +13 -10
  99. package/src/biz/settings-center/compile.ts +2 -1
  100. package/src/biz/settings-center/shell.ts +12 -9
  101. package/src/biz/shared/action-host.ts +6 -0
  102. package/src/biz/shared/compile-helpers.ts +97 -0
  103. package/src/biz/shared/coordinator.ts +7 -30
  104. package/src/biz/shared/index.ts +5 -0
  105. package/src/biz/shared/object-aliases.ts +154 -0
  106. package/src/biz/shared/overlay-compile.ts +281 -0
  107. package/src/biz/shared/overlay-shell.ts +142 -11
  108. package/src/biz/shared/pipes.ts +11 -5
  109. package/src/biz/shared/remove-wire.ts +4 -19
  110. package/src/biz/shared/runtime-hub.ts +10 -0
  111. package/src/biz/single-form/compile.ts +3 -2
  112. package/src/biz/single-form/shell.ts +9 -6
  113. package/src/biz/standard-crud/compile.ts +36 -161
  114. package/src/biz/standard-crud/shell.ts +23 -60
  115. package/src/biz/standard-crud/summary.ts +40 -0
  116. package/src/biz/step-form/shell.ts +15 -13
  117. package/src/biz/types.ts +6 -1
  118. package/src/cli/kit-cli.ts +138 -13
  119. package/src/cli/kit-init.ts +6 -1
  120. package/src/cli/layout-cli.ts +167 -0
  121. package/src/cli/migrate/index.ts +10 -0
  122. package/src/cli/migrate/migrate.ts +248 -0
  123. package/src/cli/migrate/text-utils.ts +306 -0
  124. package/src/cli/migrate/theme-map.ts +104 -0
  125. package/src/cli/migrate/ts-rules.ts +235 -0
  126. package/src/cli/migrate/types.ts +95 -0
  127. package/src/cli/migrate/view-skeleton.ts +159 -0
  128. package/src/cli/migrate/yaml-report.ts +376 -0
  129. package/src/cli/migrate/yaml-rules.ts +465 -0
  130. package/src/cli/view-writes.ts +69 -60
  131. package/src/compile/access-gate-attach.ts +27 -0
  132. package/src/compile/closed-set.ts +65 -4
  133. package/src/compile/compile-page.ts +66 -11
  134. package/src/compile/component-candidates.ts +14 -1
  135. package/src/compile/fragment.ts +11 -0
  136. package/src/compile/layout-lint/engine.ts +82 -0
  137. package/src/compile/layout-lint/index.ts +55 -0
  138. package/src/compile/layout-lint/rules-composition.ts +267 -0
  139. package/src/compile/layout-lint/rules-form.ts +191 -0
  140. package/src/compile/layout-lint/rules-table.ts +278 -0
  141. package/src/compile/layout-lint/score.ts +52 -0
  142. package/src/compile/layout-lint/types.ts +51 -0
  143. package/src/compile/page-composition.ts +189 -0
  144. package/src/compile/parse.ts +4 -0
  145. package/src/compile/producer-fingerprint.ts +56 -0
  146. package/src/compile/remove-guard.ts +10 -7
  147. package/src/compile/styles.ts +46 -8
  148. package/src/compile/types.ts +16 -2
  149. package/src/compile/view-check.ts +149 -16
  150. package/src/data/access-gate.ts +112 -0
  151. package/src/data/amount-breakdown.ts +9 -2
  152. package/src/data/approval-flow.ts +5 -2
  153. package/src/data/assignment-picker.ts +59 -28
  154. package/src/data/async-result-panel.ts +49 -3
  155. package/src/data/breadcrumbs.ts +3 -2
  156. package/src/data/calendar.ts +8 -3
  157. package/src/data/carousel.ts +10 -6
  158. package/src/data/chart.ts +744 -46
  159. package/src/data/checklist.ts +22 -6
  160. package/src/data/code-view.ts +8 -4
  161. package/src/data/comment-thread.ts +3 -2
  162. package/src/data/confirm-dialog.ts +72 -25
  163. package/src/data/context-menu.ts +3 -3
  164. package/src/data/dock.ts +1 -1
  165. package/src/data/embed.ts +231 -29
  166. package/src/data/field-mapper.ts +7 -4
  167. package/src/data/flow-editor-contract.ts +7 -0
  168. package/src/data/flow-editor.ts +26 -9
  169. package/src/data/flow-node-options.ts +33 -3
  170. package/src/data/footer.ts +2 -0
  171. package/src/data/gantt.ts +192 -27
  172. package/src/data/hero.ts +4 -1
  173. package/src/data/image-viewer.ts +7 -4
  174. package/src/data/index.ts +16 -4
  175. package/src/data/item-list.ts +27 -12
  176. package/src/data/kanban.ts +41 -10
  177. package/src/data/matrix.ts +391 -0
  178. package/src/data/media-grid.ts +6 -1
  179. package/src/data/mega-menu.ts +6 -4
  180. package/src/data/menu-dom.ts +4 -2
  181. package/src/data/menu.ts +60 -16
  182. package/src/data/mockup.ts +5 -1
  183. package/src/data/modal-dialog.ts +146 -26
  184. package/src/data/navbar.ts +8 -6
  185. package/src/data/notice-list.ts +301 -0
  186. package/src/data/notify-renderer.ts +21 -6
  187. package/src/data/object-form.ts +409 -87
  188. package/src/data/outcome-watch.ts +61 -2
  189. package/src/data/pager.ts +19 -8
  190. package/src/data/panel-head.ts +406 -0
  191. package/src/data/permission-matrix.ts +36 -11
  192. package/src/data/permission-tree.ts +52 -23
  193. package/src/data/pricing-table.ts +22 -11
  194. package/src/data/prompt-dialog.ts +165 -0
  195. package/src/data/reaction-bar.ts +6 -4
  196. package/src/data/record-card.ts +40 -7
  197. package/src/data/record-picker.ts +13 -7
  198. package/src/data/resident.ts +8 -0
  199. package/src/data/result-panel.ts +4 -2
  200. package/src/data/rich-text.ts +17 -1
  201. package/src/data/row-editor.ts +77 -24
  202. package/src/data/rule-builder.ts +14 -9
  203. package/src/data/shape-util.ts +27 -12
  204. package/src/data/stat-group.ts +459 -74
  205. package/src/data/static-lazy.ts +5 -0
  206. package/src/data/static-registry.ts +8 -0
  207. package/src/data/steps.ts +8 -3
  208. package/src/data/survey.ts +7 -4
  209. package/src/data/system-switcher.ts +3 -2
  210. package/src/data/text-action-button.ts +17 -0
  211. package/src/data/timeline.ts +17 -6
  212. package/src/data/tour-guide.ts +3 -2
  213. package/src/data/transfer.ts +40 -16
  214. package/src/data/tree-table.ts +65 -37
  215. package/src/data/tree.ts +22 -2
  216. package/src/data/virtual-rows.ts +21 -11
  217. package/src/data/wrapped-candidates.ts +32 -1
  218. package/src/frames/index.ts +1 -0
  219. package/src/frames/list-summary.ts +100 -0
  220. package/src/frames/page-bar.ts +7 -14
  221. package/src/frames/page-status.ts +7 -5
  222. package/src/frames/shared.ts +34 -13
  223. package/src/frames/split-frame/shell.ts +1 -1
  224. package/src/frames/tabs-frame/shell.ts +9 -6
  225. package/src/frames/tabs-frame/wiring.ts +1 -0
  226. package/src/frames/top-main-frame.ts +3 -3
  227. package/src/frames/types.ts +3 -1
  228. package/src/frames/workspace-frame/extras.ts +1 -1
  229. package/src/frames/workspace-frame/shell.ts +4 -4
  230. package/src/frames/workspace-frame/tab-scroll.ts +28 -0
  231. package/src/frames/workspace-frame/view.ts +168 -44
  232. package/src/generated/kit-grammar-runtime.ts +390 -59
  233. package/src/i18n/kit-text.ts +90 -4
  234. package/src/i18n/resolve-text-refs.ts +22 -6
  235. package/src/object-renderer/action-group.ts +139 -0
  236. package/src/object-renderer/action-more.ts +144 -0
  237. package/src/object-renderer/arrange.ts +71 -7
  238. package/src/object-renderer/candidates.ts +4 -0
  239. package/src/object-renderer/collection-parts.ts +264 -62
  240. package/src/object-renderer/collection-table.ts +177 -5
  241. package/src/object-renderer/collection.ts +188 -37
  242. package/src/object-renderer/compile-data.ts +28 -3
  243. package/src/object-renderer/defaults.ts +27 -2
  244. package/src/object-renderer/display-checks.ts +1 -1
  245. package/src/object-renderer/emit-events.ts +43 -9
  246. package/src/object-renderer/emit-object.ts +4 -0
  247. package/src/object-renderer/emit-static.ts +434 -41
  248. package/src/object-renderer/filter-plan.ts +84 -0
  249. package/src/object-renderer/form-detail.ts +1 -2
  250. package/src/object-renderer/form-notify.ts +45 -0
  251. package/src/object-renderer/index.ts +5 -0
  252. package/src/object-renderer/layout-facts.ts +394 -0
  253. package/src/object-renderer/layout-plan.ts +225 -0
  254. package/src/object-renderer/layout-plan.types.ts +59 -0
  255. package/src/object-renderer/parts.ts +6 -7
  256. package/src/object-renderer/render-object.ts +107 -46
  257. package/src/object-renderer/request-actions.ts +4 -2
  258. package/src/object-renderer/skeleton.ts +58 -19
  259. package/src/object-renderer/table-actions.ts +172 -32
  260. package/src/object-renderer/table-gap.ts +37 -0
  261. package/src/object-renderer/table-tools.ts +62 -30
  262. package/src/object-renderer/types.ts +84 -13
  263. package/src/object-renderer/view-binding.ts +205 -8
  264. package/src/page-target/intent-schema.ts +11 -0
  265. package/src/page-target/target.ts +5 -1
  266. package/src/recipes/container.ts +77 -1
  267. package/src/recipes/control.ts +76 -116
  268. package/src/recipes/emphasis.ts +56 -0
  269. package/src/recipes/frame-bleed.ts +33 -0
  270. package/src/recipes/index.ts +72 -0
  271. package/src/recipes/nowrap.ts +16 -0
  272. package/src/recipes/overlay.ts +120 -17
  273. package/src/recipes/placeholder.ts +95 -0
  274. package/src/recipes/rail-grid.ts +48 -0
  275. package/src/recipes/slot-align.ts +56 -0
  276. package/src/recipes/stat-state.ts +65 -0
  277. package/src/recipes/state.ts +40 -21
  278. package/src/recipes/status.ts +147 -0
  279. package/src/recipes/surface-edge.ts +16 -0
  280. package/src/recipes/surface.ts +40 -0
  281. package/src/recipes/table-gap.ts +80 -0
  282. package/src/recipes/table-native-edit.ts +242 -0
  283. package/src/recipes/table-row.ts +146 -3
  284. package/src/recipes/tabs.ts +49 -0
  285. package/src/recipes/title-row.ts +37 -0
  286. package/src/recipes/typography.ts +30 -37
  287. package/src/shared/confirm-decl.ts +118 -0
  288. package/src/shared/envelope.ts +2 -2
  289. package/src/shared/paged-list-adapter.ts +15 -240
  290. package/src/shared/theme-runtime-shared.ts +6 -1
  291. package/src/theme/index.ts +1 -0
  292. package/src/theme/kit-theme-text.ts +1 -1
  293. package/src/theme/kit-theme.css +384 -13
  294. package/src/theme/kit-theme.tpl +384 -13
  295. package/src/theme/nine-dim-structure.ts +244 -7
  296. package/src/theme/surface-layers.ts +10 -1
  297. package/src/theme/theme-tokens.ts +63 -16
  298. package/src/theme/theme-types.ts +32 -0
  299. package/src/theme/typography.ts +21 -17
  300. package/src/biz/shared/remove-key.ts +0 -6
@@ -165,6 +165,10 @@
165
165
  "type": "string"
166
166
  }
167
167
  },
168
+ "bleed": {
169
+ "type": "boolean",
170
+ "description": "内容区通栏:不留页边距、内容顶满(页头保留自己的水平内边距);缺省 false"
171
+ },
168
172
  "slots": {
169
173
  "type": "object",
170
174
  "description": "槽名 -> 产品声明,或页签数组 [{ id, title, product }]",
@@ -1679,9 +1683,19 @@
1679
1683
  "kind": {
1680
1684
  "enum": [
1681
1685
  "dialog",
1682
- "drawer"
1686
+ "drawer",
1687
+ "expand"
1688
+ ],
1689
+ "description": "浮层形态(dialog 居中对话框 / drawer 侧边抽屉 / expand 行下展开的子表,仅 StandardCrud 支持,其它业务组件写了报 KIT-BIZ-003)"
1690
+ },
1691
+ "width": {
1692
+ "enum": [
1693
+ "narrow",
1694
+ "default",
1695
+ "wide",
1696
+ "xwide"
1683
1697
  ],
1684
- "description": "浮层形态(dialog 居中对话框 / drawer 侧边抽屉)"
1698
+ "description": "浮层宽度档:kind: drawer 取 narrow / default / wide(px 在 design 真源 kit-limits#overlay.drawerPx);kind: dialog 取 default / wide / xwide(px 在 kit-limits#overlay.dialogPx,缺省按内容定档);档位与种类不符报 KIT-BIZ-003。抽屉只用于只读详情,带提交动作的浮层必须写 kind: dialog(KIT-OVL-001)"
1685
1699
  },
1686
1700
  "editOverlay": {
1687
1701
  "type": "string",
@@ -1701,6 +1715,14 @@
1701
1715
  "type": "string",
1702
1716
  "description": "外框 Tailwind 类串"
1703
1717
  },
1718
+ "group": {
1719
+ "type": "string",
1720
+ "description": "外框 Tailwind 类串"
1721
+ },
1722
+ "head": {
1723
+ "type": "string",
1724
+ "description": "外框 Tailwind 类串"
1725
+ },
1704
1726
  "events": {
1705
1727
  "type": "object",
1706
1728
  "description": "浮层内写死形状数据组件的事件约定(K-1):saved -> 关窗并刷新;cancel / close -> 关窗;reload -> 刷新。overlays.<名>.events 可补自定义事件名",
@@ -1841,6 +1863,9 @@
1841
1863
  "params": {
1842
1864
  "description": "kit-grammar.json#objectKeys.behavior.params"
1843
1865
  },
1866
+ "require": {
1867
+ "description": "kit-grammar.json#objectKeys.behavior.require"
1868
+ },
1844
1869
  "syncUrl": {
1845
1870
  "description": "kit-grammar.json#objectKeys.behavior.syncUrl"
1846
1871
  },
@@ -2006,6 +2031,7 @@
2006
2031
  "PermissionMatrix",
2007
2032
  "FieldMapper",
2008
2033
  "Gantt",
2034
+ "Matrix",
2009
2035
  "FlowEditor",
2010
2036
  "Kanban",
2011
2037
  "Calendar",
@@ -2020,6 +2046,10 @@
2020
2046
  "AssignmentPicker",
2021
2047
  "CodeView",
2022
2048
  "ItemList",
2049
+ "NoticeList",
2050
+ "SegmentedSwitch",
2051
+ "MetaAction",
2052
+ "ScopeSwitch",
2023
2053
  "SystemSwitcher",
2024
2054
  "RowEditor",
2025
2055
  "RecordPicker",
@@ -2064,6 +2094,9 @@
2064
2094
  "submitLabel": {
2065
2095
  "description": "kit-grammar.json#viewFormKeys.submitLabel"
2066
2096
  },
2097
+ "notify": {
2098
+ "description": "kit-grammar.json#viewFormKeys.notify"
2099
+ },
2067
2100
  "hideEmpty": {
2068
2101
  "description": "kit-grammar.json#viewFormKeys.hideEmpty"
2069
2102
  },
@@ -2161,7 +2194,8 @@
2161
2194
  "table",
2162
2195
  "treeTable",
2163
2196
  "cards",
2164
- "stack"
2197
+ "stack",
2198
+ "compact-list"
2165
2199
  ],
2166
2200
  "description": "treeTable 不是另一套表格:`type: treeTable` 等价于 `type: table` + `tree: {...}`,同一条列 / 表头 / 密度 / 三态 / 分页路径,只有表体换成 KitTreeTable(详见顶层 treeTable)。骨架屏同理:KitCollectionState 一个实现,按 table / cards / stack / single 形态参数化(顶层 skeleton)。折叠分组与手风琴同一个实现(KitCollapseWiring + accordion 参数)"
2167
2201
  },
@@ -2186,6 +2220,9 @@
2186
2220
  "bordered": {
2187
2221
  "description": "kit-grammar.json#collectionKeys.bordered。collection 的子键。三态文案键 loading / empty / error 必须是字符串(否则 KIT-OBJ-007),state: false 关闭内置兜底;expand 只允许 { view: summary } 或 {…"
2188
2222
  },
2223
+ "count": {
2224
+ "description": "kit-grammar.json#collectionKeys.count。collection 的子键。三态文案键 loading / empty / error 必须是字符串(否则 KIT-OBJ-007),state: false 关闭内置兜底;expand 只允许 { view: summary } 或 {…"
2225
+ },
2189
2226
  "tree": {
2190
2227
  "description": "collection: { type: treeTable, tree: {...} }:层级表格。行数据两种形状任选:嵌套(每行带 childrenField 数组)或平铺(每行带 parentField 指向父行主键,孤儿补在末尾)。列、选择、行操作、可排序表头、密度、斑马纹、三态与 table 同口径;不支持 expand 详情行、字段级 action(写了丢弃并报 KIT-OBJ-010)。表体由写死形状数据组件 KitTreeTable 渲染(单元格用 Text / Tag 两种展示:enum 带 tone 的字段画成 Tag,其余走 Text 的格式化;其它 component 退回 Text),缩进用定宽占位元素,不用拼接类名。展开状态留在组件内(只在一个组件内流转归该组件),数据刷新后保留;lazy 子项经 childrenFrom 按需 GET,响应行形状同 rows。键…"
2191
2228
  },
@@ -2267,6 +2304,7 @@
2267
2304
  "AvatarGroup",
2268
2305
  "Kbd",
2269
2306
  "KitProgress",
2307
+ "KitDelta",
2270
2308
  "Countdown",
2271
2309
  "Swap",
2272
2310
  "Fab",
@@ -2280,6 +2318,7 @@
2280
2318
  "PriceText",
2281
2319
  "QrCode",
2282
2320
  "CommandPalette",
2321
+ "GapValue",
2283
2322
  "RowEditor",
2284
2323
  "FlowEditor"
2285
2324
  ]
@@ -2321,7 +2360,7 @@
2321
2360
  },
2322
2361
  "help": {
2323
2362
  "type": "string",
2324
- "description": "fields[].help:表单字段说明文字,字符串(非字符串报 KIT-OBJ-009)。只在编辑态格(form / filter 的 KitObjectForm)渲染,位置写死 = 控件下、错误行上,类 classDefaults.help;只读的 summary / list 不显示(写了丢弃)。"
2363
+ "description": "fields[].help:字段说明文字,字符串(非字符串报 KIT-OBJ-009)。编辑态格(form / filter 的 KitObjectForm)渲染成控件下的说明行,位置写死 = 控件下、错误行上,类 classDefaults.help;只读的 summary / list 在列头 / 标签旁显示成小「i」说明图标钮(悬停 / 聚焦才出气泡,列头各一个键盘停靠点、行内没有;没有 help 的列不出任何节点)。同一字段说明在所有容器一致可见。"
2325
2364
  },
2326
2365
  "on": {
2327
2366
  "description": "view.on(写死形状数据组件的视图):{ 组件事件名: 动作 },把组件 emit 接到动作。事件名必须在该组件契约 emits 里(否则 KIT-STATIC-001);动作取值见 values,具名动作未登记报 KIT-EVT-001。浮层里的同类接线仍用 overlays.<名>.events"
@@ -2362,6 +2401,12 @@
2362
2401
  "nodeOptions": {
2363
2402
  "description": "kit-grammar.json#fieldRefKeys.nodeOptions"
2364
2403
  },
2404
+ "columnOptions": {
2405
+ "description": "kit-grammar.json#fieldRefKeys.columnOptions"
2406
+ },
2407
+ "suggestions": {
2408
+ "description": "kit-grammar.json#fieldRefKeys.suggestions"
2409
+ },
2365
2410
  "emphasis": {
2366
2411
  "enum": [
2367
2412
  "strong",
@@ -2400,6 +2445,9 @@
2400
2445
  },
2401
2446
  "copied_label": {
2402
2447
  "description": "Text.copied_label(kit-grammar.json#baseComponentProps.Text)"
2448
+ },
2449
+ "tone_as": {
2450
+ "description": "Text.tone_as(kit-grammar.json#baseComponentProps.Text)"
2403
2451
  }
2404
2452
  }
2405
2453
  }
@@ -3376,6 +3424,37 @@
3376
3424
  }
3377
3425
  }
3378
3426
  },
3427
+ {
3428
+ "if": {
3429
+ "properties": {
3430
+ "component": {
3431
+ "const": "KitDelta"
3432
+ }
3433
+ },
3434
+ "required": [
3435
+ "component"
3436
+ ]
3437
+ },
3438
+ "then": {
3439
+ "properties": {
3440
+ "props": {
3441
+ "type": "object",
3442
+ "description": "KitDelta 的 props(kit-grammar.json#baseComponentProps.KitDelta;未列出的键以组件契约为准)",
3443
+ "properties": {
3444
+ "value": {
3445
+ "description": "KitDelta.value(kit-grammar.json#baseComponentProps.KitDelta)"
3446
+ },
3447
+ "format": {
3448
+ "description": "KitDelta.format(kit-grammar.json#baseComponentProps.KitDelta)"
3449
+ },
3450
+ "upIs": {
3451
+ "description": "KitDelta.upIs(kit-grammar.json#baseComponentProps.KitDelta)"
3452
+ }
3453
+ }
3454
+ }
3455
+ }
3456
+ }
3457
+ },
3379
3458
  {
3380
3459
  "if": {
3381
3460
  "properties": {
@@ -4009,6 +4088,55 @@
4009
4088
  }
4010
4089
  }
4011
4090
  }
4091
+ },
4092
+ {
4093
+ "if": {
4094
+ "properties": {
4095
+ "component": {
4096
+ "const": "GapValue"
4097
+ }
4098
+ },
4099
+ "required": [
4100
+ "component"
4101
+ ]
4102
+ },
4103
+ "then": {
4104
+ "properties": {
4105
+ "props": {
4106
+ "type": "object",
4107
+ "description": "GapValue 的 props(kit-grammar.json#baseComponentProps.GapValue;未列出的键以组件契约为准)",
4108
+ "properties": {
4109
+ "value": {
4110
+ "description": "GapValue.value(kit-grammar.json#baseComponentProps.GapValue)"
4111
+ },
4112
+ "state": {
4113
+ "description": "GapValue.state(kit-grammar.json#baseComponentProps.GapValue)"
4114
+ },
4115
+ "reason": {
4116
+ "description": "GapValue.reason(kit-grammar.json#baseComponentProps.GapValue)"
4117
+ },
4118
+ "format": {
4119
+ "description": "GapValue.format(kit-grammar.json#baseComponentProps.GapValue)"
4120
+ },
4121
+ "unit": {
4122
+ "description": "GapValue.unit(kit-grammar.json#baseComponentProps.GapValue)"
4123
+ },
4124
+ "locale": {
4125
+ "description": "GapValue.locale(kit-grammar.json#baseComponentProps.GapValue)"
4126
+ },
4127
+ "compact": {
4128
+ "description": "GapValue.compact(kit-grammar.json#baseComponentProps.GapValue)"
4129
+ },
4130
+ "tooltip": {
4131
+ "description": "GapValue.tooltip(kit-grammar.json#baseComponentProps.GapValue)"
4132
+ },
4133
+ "size": {
4134
+ "description": "GapValue.size(kit-grammar.json#baseComponentProps.GapValue)"
4135
+ }
4136
+ }
4137
+ }
4138
+ }
4139
+ }
4012
4140
  }
4013
4141
  ]
4014
4142
  }
@@ -4044,7 +4172,34 @@
4044
4172
  "description": "kit-grammar.json#actionKeys.targetOverlay"
4045
4173
  },
4046
4174
  "confirm": {
4047
- "description": "kit-grammar.json#actionKeys.confirm"
4175
+ "description": "动作 confirm 两种写法:字符串 = plain 一句话确认(逐字写进 core 的 confirm 尾段,行为不变;删除动作与批量动作只收字符串);对象 { level, text, phrase?, impact?, tone? } = core 确认规格(字面量,只给普通动作),编成 core 的结构化确认段 `confirm:{…JSON}`,与 core parseConfirmSegment 解析回同一规格。判据只有 core 的 checkConfirmSpec(kit 不抄闭集 / 限值):键只能是 level / text / phrase / impact / tone;tone ∈ default / danger(danger = 破坏性确认:确认钮警示色、初始焦点落取消;删除动作与自身 tone 为 danger 的动作由 kit 自动编成 tone: da…",
4176
+ "anyOf": [
4177
+ {
4178
+ "type": "string"
4179
+ },
4180
+ {
4181
+ "type": "object",
4182
+ "additionalProperties": false,
4183
+ "required": [
4184
+ "level",
4185
+ "text"
4186
+ ],
4187
+ "properties": {
4188
+ "level": {
4189
+ "type": "string"
4190
+ },
4191
+ "text": {
4192
+ "type": "string"
4193
+ },
4194
+ "phrase": {
4195
+ "type": "string"
4196
+ },
4197
+ "impact": {
4198
+ "type": "string"
4199
+ }
4200
+ }
4201
+ }
4202
+ ]
4048
4203
  },
4049
4204
  "tone": {
4050
4205
  "description": "kit-grammar.json#actionKeys.tone",
@@ -4156,6 +4311,10 @@
4156
4311
  "disabled": {
4157
4312
  "description": "kit-grammar.json#actionKeys.disabled"
4158
4313
  },
4314
+ "disabledReason": {
4315
+ "description": "动作 disabledReason:声明「置灰时的原因文案从哪来」,呈现方式由 kit 写死。适用 on: toolbar(字面量 | view.<成员>)与 on: row(字面量 | view.<成员> | row.<字段>;覆盖行内按钮、折叠进「更多」的项、cards / stack 的行操作、右键菜单项);表单底栏动作(由 object-form 渲染)暂不支持,写了报 KIT-VIEW-006。必须与 disabled 同写,只写 disabledReason 报 KIT-ACT-010;值是对象 / 数字、含 {…} 占位(拼值)、row. / view. 前缀却不是纯路径,报 KIT-ACT-010 / KIT-ROW-001 / KIT-VIEW-001;toolbar 动作写 row. 路径报 KIT-VIEW-001;row.<字段> 不在对象 schema 里报 KI…",
4316
+ "type": "string"
4317
+ },
4159
4318
  "hidden": {
4160
4319
  "description": "kit-grammar.json#actionKeys.hidden"
4161
4320
  }